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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47f7910cf8070d85bb3cace4dd86ebafc45ee25e | 9b4f4ad42b82800c65f12ae507d2eece02935ff6 | /header/Parser/FileParser/SZSParser.h | dbd68f0be24ce86e7292d48667336f2aa5be4f3f | [] | no_license | github188/SClass | f5ef01247a8bcf98d64c54ee383cad901adf9630 | ca1b7efa6181f78d6f01a6129c81f0a9dd80770b | refs/heads/main | 2023-07-03T01:25:53.067293 | 2021-08-06T18:19:22 | 2021-08-06T18:19:22 | 393,572,232 | 0 | 1 | null | 2021-08-07T03:57:17 | 2021-08-07T03:57:16 | null | UTF-8 | C++ | false | false | 598 | h | #ifndef _SM_PARSER_FILEPARSER_SZSPARSER
#define _SM_PARSER_FILEPARSER_SZSPARSER
#include "IO/FileParser.h"
namespace Parser
{
namespace FileParser
{
class SZSParser : public IO::FileParser
{
public:
SZSParser();
virtual ~SZSParser();
virtual Int32 GetName();
virtual void PrepareSelector(IO::IFileSelector *selector, IO::ParsedObject::ParserType t);
virtual IO::ParsedObject::ParserType GetParserType();
virtual IO::ParsedObject *ParseFile(IO::IStreamData *fd, IO::PackageFile *pkgFile, IO::ParsedObject::ParserType targetType);
};
};
};
#endif
| [
"sswroom@yahoo.com"
] | sswroom@yahoo.com |
458497015d72a266a6bfc2480606b4745c96ea6d | ed18292e442122fcca0364da0b5169a8ef94f80c | /idba/src/assembly/SimpleAlgorithm.cpp | 11778cd06bae81925b9db29a1874b86c6c4e68f6 | [] | no_license | brettin/hku-idba | 1e296b1501fc375bf109df3ce93a5570f826c53f | 8330c0b4f1ead0ad2372881b09497fe3bb07be2c | refs/heads/master | 2021-01-22T20:43:56.793463 | 2010-08-09T02:40:54 | 2010-08-09T02:40:54 | 34,426,512 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,623 | cpp | #include "globals.h"
#include "Log.h"
#include "Sequence.h"
#include "Utils.h"
#include "HashGraph.h"
#include "ContigGraph.h"
#include "HashAlign.h"
#include "MapGraph.h"
#include "SimpleAlgorithm.h"
#include "Reader.h"
#include "Writer.h"
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <vector>
#include <cmath>
#include <string>
using namespace std;
SimpleAlgorithm::SimpleAlgorithm()
{
prefixLength = 3;
minCount = 2;
trim = 0;
cover = 0;
isScaffold = false;
minPairs = 5;
fill_n(hits, MaxDistance, 0);
offset = 10;
minContig = 100;
prefix = "out";
mink = 25;
maxk = 50;
minPairs = 5;
minLength = 100;
}
int64 SimpleAlgorithm::GenerateKmers()
{
int64 totalKmer = 0;
int64 maximum = 0;
for (int prefix = 0; prefix < (1 << prefixLength); ++prefix)
{
#pragma omp parallel for
for (int i = 0; i < (int64)numReads; ++i)
{
Sequence seq;
seq = reads[i];
hashGraph.InsertSequence(seq, prefix, mask);
}
#pragma omp parallel for
for (int i = 0; i < (int)longReads.size(); ++i)
{
hashGraph.InsertSequence(longReads[i], prefix, mask);
}
hashGraph.RefreshVertices(minCount);
totalKmer = hashGraph.NumNodes();
if (hashGraph.NumNodes() > maximum)
maximum = hashGraph.NumNodes();
//hashGraph.Save(caches[prefix]);
}
LogMessage("total kmer %d\n", hashGraph.NumNodes());
return hashGraph.NumNodes();
}
void SimpleAlgorithm::AddbackInternalKmers()
{
#pragma omp parallel for
for (int i = 0; i < (int64)numReads; ++i)
{
Sequence seq;
//seq.SetContent(&reads[i]);
seq = reads[i];
hashGraph.AddInternalKmers(seq, minCount);
}
LogMessage("after addback total kmer %d\n", hashGraph.NumNodes());
}
void SimpleAlgorithm::RemoveLowCoverageContigs()
{
if (cover == 0)
{
cover = hashGraph.MedianCoverage();
cover = sqrt(cover);
if (cover < 2)
cover = 2;
int lowCoverageContigs = hashGraph.RemoveLowCoverageContigs(cover);
LogMessage("c = %.2f remove %d low coverage contigs\n", cover, lowCoverageContigs);
}
else
hashGraph.RemoveLowCoverageContigs(cover);
hashGraph.Refresh();
}
void SimpleAlgorithm::Iterate()
{
ContigGraph contigGraph(contigs);
LogMessage("start iteration from mink = %d to maxk = %d\n", kmerLength, maxk);
while (kmerLength <= maxk)
{
contigGraph.Initialize(contigs);
//contigGraph.BuildVertices();
#pragma omp parallel for
for (int64 i = 0; i < (int64)numReads; ++i)
{
if (reads[i].IsActive())
{
Sequence seq;
seq = reads[i];
if (!contigGraph.BuildEdgesFromSequence(seq))
reads[i].Inactivate();
}
}
#pragma omp parallel for
for (int i = 0; i < (int)longReads.size(); ++i)
contigGraph.BuildEdgesFromSequence(longReads[i]);
contigGraph.Refresh();
int minLength = kmerLength * 2;
if (minLength < 75)
minLength = 75;
int deadend = 0;
if (kmerLength < maxk)
{
deadend = contigGraph.RemoveDeadEnd(minLength);
// if (kmerLength == mink)
// {
// LogMessage("remove %d deadend\n", deadend);
//// int low = contigGraph.RemoveLowCoverageContigs(cover);
//// LogMessage("remove %d low coverage contigs\n", low);
// while (deadend > 0)
// {
// deadend = contigGraph.RemoveDeadEnd(minLength);
// LogMessage("remove %d deadend\n", deadend);
// }
// }
}
//contigGraph.Refresh();
if (kmerLength == maxk)
{
int bubbles = contigGraph.RemoveBubble();
LogMessage("remove %d bubbles\n", bubbles);
}
contigGraph.MergeContigs();
//int branches = contigGraph.BuildContigsFromEdges();
//LogMessage("k = %d, remove %d deadend, remain %d branches\n", kmerLength, deadend, branches);
++kmerLength;
}
//contigGraph.GetContigs(contigs);
contigGraph.Clear();
}
void SimpleAlgorithm::IDBA(FILE *freadFile, vector<Contig> &contigs)
{
LogMessage("minK = %d, # of reads = %lld\n", kmerLength, numReads);
GenerateKmers();
AddbackInternalKmers();
Sequence seq;
hashGraph.RefreshEdges();
// hashGraph.RemoveDeadEnd(kmerLength*2);
// RemoveLowCoverageContigs();
cover = hashGraph.MedianCoverage();
cover = sqrt(cover);
if (cover < 2)
cover = 2;
cout << cover << endl;
hashGraph.Assemble(contigs);
LogMessage("total kmer %d, Initial contigs %d\n", hashGraph.NumNodes(), contigs.size());
hashGraph.Clear();
// int tmp = 0;
// for (int i = 0; i < contigs.size(); ++i)
// {
// if (contigs[i].Coverage() < cover)
// ++tmp;
// }
// cout << tmp << endl;
ContigGraph contigGraph(contigs);
{
contigGraph.Initialize(contigs);
//contigGraph.BuildVertices();
#pragma omp parallel for
for (int64 i = 0; i < (int64)numReads; ++i)
{
if (reads[i].IsActive())
{
Sequence seq;
seq = reads[i];
if (!contigGraph.BuildEdgesFromSequence(seq))
reads[i].Inactivate();
}
}
#pragma omp parallel for
for (int i = 0; i < (int)longReads.size(); ++i)
contigGraph.BuildEdgesFromSequence(longReads[i]);
contigGraph.Refresh();
int minLength = kmerLength * 2;
if (minLength < 75)
minLength = 75;
// {
// int low = contigGraph.RemoveLowCoverageContigs(cover);
// LogMessage("remove %d low coverage contigs\n", low);
// }
int deadend = 0;
deadend = contigGraph.RemoveDeadEnd(minLength);
LogMessage("remove %d deadend\n", deadend);
contigGraph.MergeContigs();
while (deadend > 0)
{
deadend = contigGraph.RemoveDeadEnd(minLength);
LogMessage("remove %d deadend\n", deadend);
contigGraph.MergeContigs();
}
int low = contigGraph.RemoveLowCoverageContigs(cover);
LogMessage("remove %d low coverage contigs\n", low);
contigGraph.MergeContigs();
deadend = contigGraph.RemoveDeadEnd(minLength);
LogMessage("remove %d deadend\n", deadend);
contigGraph.MergeContigs();
while (deadend > 0)
{
deadend = contigGraph.RemoveDeadEnd(minLength);
LogMessage("remove %d deadend\n", deadend);
contigGraph.MergeContigs();
}
contigGraph.MergeContigs();
}
//contigGraph.GetContigs(contigs);
contigGraph.Clear();
return;
Iterate();
if (kmerLength == maxk)
{
hashGraph.Clear();
#pragma omp parallel for
for (int i = 0; i < (int)contigs.size(); ++i)
{
hashGraph.InsertSequence(contigs[i]);
}
#pragma omp parallel for
for (int i= 0; i < (int64)numReads; ++i)
{
Sequence seq;
seq = reads[i];
hashGraph.AddEdgesFromSequence(seq);
}
#pragma omp parallel for
for (int i = 0; i < (int)longReads.size(); ++i)
hashGraph.AddEdgesFromSequence(longReads[i]);
hashGraph.Refresh();
LogMessage("k = %d, remain %lld kmers, %lld edges\n", kmerLength, hashGraph.NumNodes(), hashGraph.NumEdges());
//hashGraph.RemoveDeadEnd(kmerLength*2);
if (kmerLength == maxk)
{
int bubble = hashGraph.RemoveBubble();
LogMessage("remove %d bubbles\n", bubble);
}
hashGraph.Assemble(contigs);
hashGraph.Clear();
}
kmerLength = maxk;
vector<Read>().swap(reads);
}
void SimpleAlgorithm::Run()
{
minContig = minLength;
kmerLength = mink;
contigfile = prefix + "-contig.fa";
scaffile = prefix + "-contig-mate.fa";
mask = (1 << prefixLength) - 1;
FILE *freadFile = OpenFile(readfile.c_str(), "rb");
numReads = LoadReads(readfile);
IDBA(freadFile, contigs);
FastAWriter writer(contigfile);
for (unsigned i = 0; i < contigs.size(); ++i)
{
contigs[i].Decode();
writer.WriteFormat(contigs[i], "contig%d", i);//, i);
contigs[i].Encode();
}
}
| [
"zhliu.hku@2a974227-cb7b-d489-209f-dbef0414b48d"
] | zhliu.hku@2a974227-cb7b-d489-209f-dbef0414b48d |
5c797fcfd1cffe10f6f7997c63f416fefdeb1ca1 | 9325a96c916328eb12397287d1ba7e78c01aa9b7 | /foo_spider_monkey_panel/utils/zip_utils.h | e8c0ebdd30d3ab9606e4f3a157e32d48ce85fd14 | [
"Unlicense",
"MS-PL",
"HPND",
"BSL-1.0",
"MIT"
] | permissive | BudiAribowo/foo_spider_monkey_panel | 662b5cc72891520a9ff2e415deac9361de02a8a9 | 718c07024a842ef137eef2b1d91976805944c3a5 | refs/heads/master | 2023-03-07T05:50:11.966201 | 2021-02-07T15:04:26 | 2021-02-07T15:04:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 782 | h | #pragma once
#include <filesystem>
struct mz_zip_archive;
namespace smp
{
class ZipPacker
{
public:
/// @throw SmpException
ZipPacker( const std::filesystem::path& zipFile );
/// @remark Deletes zip file on error
~ZipPacker();
/// @throw SmpException
void AddFile( const std::filesystem::path& srcFile, const std::u8string& destFileName );
/// @throw SmpException
void AddFolder( const std::filesystem::path& srcFolder, const std::u8string& destFolderName = "" );
/// @throw SmpException
void Finish();
private:
std::unique_ptr<mz_zip_archive> pZip_;
std::filesystem::path zipFile_;
};
/// @throw SmpException
void UnpackZip( const std::filesystem::path& zipFile, const std::filesystem::path& dstFolder );
} // namespace smp
| [
"qwertiest@mail.ru"
] | qwertiest@mail.ru |
63b53ea19dc0ea1c4c85b4193b8ae3edc121e5a1 | fa9fb33d857538bd27d811a5880f044a55205a59 | /855.cpp | 497feea7ed1e16fb46b7da164a1d5b9b265defd0 | [] | no_license | Mukit09/UVA_Solution | 15b7aa8c60a9aa59a7e11a8a0163bcf437917661 | b2659637fe9ecb1cdbc164f0d1172e86f71a72d7 | refs/heads/master | 2020-12-25T17:29:17.655229 | 2020-03-18T03:56:34 | 2020-03-18T03:56:34 | 28,819,638 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | #include<stdio.h>
#include<algorithm>
using namespace std;
long s[50005];
long a[50005];
int main()
{
long i,j,t,st,av,f;
scanf("%ld",&t);
while(t--)
{
scanf("%ld%ld%ld",&st,&av,&f);
for(i=0;i<f;i++)
scanf("%ld%ld",&s[i],&a[i]);
sort(s,s+f);
sort(a,a+f);
if(f%2==0)
i=s[f/2-1],j=a[f/2-1];
else
i=s[f/2],j=a[f/2];
printf("\(Street: %ld, Avenue: %ld\)\n",i,j);
}
return 0;
} | [
"mukitmkbs25@yahoo.com"
] | mukitmkbs25@yahoo.com |
ceac1d4ec88acc54566d761557df528dde7c1bae | 103d2fd12bac4fb267c3e729ff94cc0475530c85 | /src/main/resources/cpp/secrets.cpp | 7b911987ef81223c36dd9896f47338f967173e48 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | stramek/hidden-secrets-gradle-plugin | 880be41e6e611d0e73fda85b6b4a619ea0f38f72 | 5f42e29c9a5f4ca5c6216efb0cc49853e297954e | refs/heads/master | 2023-01-23T20:34:58.596416 | 2020-11-26T17:58:35 | 2020-11-26T17:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,530 | cpp | #include "secrets.hpp"
#include <jni.h>
#include "sha256.hpp"
#include "sha256.cpp"
/* Copyright (c) 2020-present Klaxit SAS
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
void customDecode(char *str) {
/* Add your own logic here
* To improve your key security you can encode it before to integrate it in the app.
* And then decode it with your own logic in this function.
*/
}
jstring getOriginalKey(
char *obfuscatedSecret,
int obfuscatedSecretSize,
jstring obfuscatingJStr,
JNIEnv *pEnv) {
// Get the obfuscating string SHA256 as the obfuscator
const char *obfuscatingStr = pEnv->GetStringUTFChars(obfuscatingJStr, NULL);
const char *obfuscator = sha256(obfuscatingStr);
// Apply a XOR between the obfuscated key and the obfuscating string to get original sting
char out[obfuscatedSecretSize + 1];
for (int i = 0; i < obfuscatedSecretSize; i++) {
out[i] = obfuscatedSecret[i] ^ obfuscator[i % strlen(obfuscator)];
}
// Add string terminal delimiter
out[obfuscatedSecretSize] = 0x0;
//(Optional) To improve key security
customDecode(out);
return pEnv->NewStringUTF(out);
}
extern "C"
JNIEXPORT jstring JNICALL
Java_YOUR_PACKAGE_GOES_HERE_Secrets_getYOUR_KEY_NAME_GOES_HERE(
JNIEnv *pEnv,
jobject pThis,
jstring packageName) {
char obfuscatedSecret[] = {YOUR_KEY_GOES_HERE};
return getOriginalKey(obfuscatedSecret, sizeof(obfuscatedSecret), packageName, pEnv);
}
| [
"benjamin.aimone@gmail.com"
] | benjamin.aimone@gmail.com |
406cf0bc599d1ac439f7e6bee804371d8328a7f7 | 094341b6829d6fecb26769dd122255716367f968 | /cppChallenge/HighwayToHell/Car.cpp | 823fd11896adf839d20fc98aec61a63b0b7ab062 | [] | no_license | dennisSaadeddin/CandCpp | 83a8787c723bb62e61f9bd8c1e35a03980921f2e | dc4a38a9e1ba46da1e4a6b5f22e2a1c209aadbf8 | refs/heads/master | 2021-11-05T17:34:15.457613 | 2021-11-04T17:21:38 | 2021-11-04T17:21:38 | 97,703,947 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 941 | cpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Car.cpp
* Author: denniss
*
* Created on July 17, 2017, 1:57 PM
*/
#include "Car/Car.h"
#include "Vehicle/Vehicle.h"
#include <iostream>
#include <string.h>
using namespace std;
Car::Car(colour_t colour_type, int no_of_seats, car_t car_model) : Vehicle(colour_type) {
seats = no_of_seats;
model = car_model;
}
Car::car_t Car::get_car_model() {
return model;
}
int Car::get_num_seats() {
return seats;
}
int Car::get_num_wheels() {
return 4;
}
void Car::print_vehicle_details() {
std::cout << "Here are the details of your car: \n";
std::cout << "Car model: " << model << "\n";
std::cout << "Number of wheels: " << get_num_wheels() << "\n";
std::cout << "Number of seats: " << seats << "\n";
} | [
"denniss@ies-denniss-co67.ies.mentorg.com"
] | denniss@ies-denniss-co67.ies.mentorg.com |
f441cff673a5f78763a8b39bd62cdb7dbbb1e02f | 2b448c61a302f7623fdcbb9094f6d14242199d78 | /project/main/cpp/ctrl/Controller.h | 4e246f53cfa7f80d7fede56fff6581e1281af7b1 | [] | no_license | iosifsecheleadan/movie-collection-manager | 71b75704e95d631bd2f54571f1e0929e2d468e70 | 04aeb22179fa512628d62684d629eec29226d92e | refs/heads/master | 2023-03-21T10:43:32.759410 | 2020-06-01T06:56:06 | 2020-06-01T06:56:06 | 346,054,712 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,419 | h | //
// Created by sechelea on 3/27/20.
//
#pragma once
#include "../repo/Repository.h"
#include "ControllerException.h"
#include "../repo/DynamicVector.h"
#include "../domain/validator/Validator.h"
template <typename Type>
class Controller{
protected:
Repository<Type>* repository;
Validator<Type>* validator;
public:
Controller<Type>(Validator<Type>* validator) {
this->repository = new DynamicVector<Type>();
this->validator = validator;
}
explicit Controller(Validator<Type>* validator, Repository<Type>* repo){
this->repository = repo;
this->validator = validator;
};
~Controller() {
delete this->repository;
};
/**
* Load all data from CSV formatted file at given location
* @param location string
* @throws RepositoryException for duplicate elements
* <br> ValidatorException for invalid line formatting
*/
void loadCSV(std::string location) {
std::ifstream in(location);
this->repository->loadCSV(in);
in.close();
}
/**
* Save all data in CSV format in file at given location
* @param location string
*/
void saveCSV(std::string location) {
std::ofstream out(location);
this->repository->saveCSV(out);
out.close();
}
/**
* Save all data in HTML Table format in file at given location
* @param location string
*/
void saveHTML(std::string location) {
std::ofstream out(location);
this->repository->saveHTML(out);
out.close();
}
/**
* Add given element to repository
* @param element
* @throws RepositoryException if element is a duplicate
* <br> ValidatorException if element is invalid
*/
void add(Type element) {
this->validator->validate(element);
this->repository->add(element);
}
/**
* Remove given element from repository
* @param element
* @throws RepositoryException if element is not present
*/
void remove(Type element) {
this->repository->remove(element);
}
/**
* Remove oldElement and add newElement
* @param oldElement
* @param newElement
* @throws ControllerException if oldElement is not present
* or if newElement is a duplicate
*/
void update(Type oldElement, Type newElement) {
this->validator->validate(newElement);
if (this->repository->has(oldElement)) {
this->repository->remove(oldElement);
if (this->repository->has(newElement)) {
this->repository->add(oldElement);
throw ControllerException("Entity " + newElement.toString(", ") + " already exists in the Repository.");
} else {
this->repository->add(newElement);
}
} else {
throw ControllerException("Entity " + oldElement.toString(", ") + " does not exist in the Repository.");
}
}
int size() {
return this->repository->size();
}
std::string getToString(int index) {
return this->repository->get(index).toString(",");
}
/**
* Return string containing all repository elements on new lines
*/
std::string toString() {
return this->repository->toString("\n") + "\n";
}
Type get(int index) {
return this->repository->get(index);
}
};
| [
"iosifsecheleadan@gmail.com"
] | iosifsecheleadan@gmail.com |
b677eb70029a41d3a4a0797ff2837540082b1607 | cea9694f8d1d1cc15a8dd0b4b36be480bf54fa99 | /regExp/testRegExp.cpp | eb99b3432a83ff0cfb01e35b3cf9c4d5e7c31a69 | [] | no_license | alexliang1975/algorithm_study | d017a18bffc7834ae2327027f7bdfe9d9f9a7dc5 | 200c5863a4fd3cfb0b9383694b08c8e1310b9aa1 | refs/heads/master | 2021-01-21T12:07:33.232391 | 2012-10-31T12:23:36 | 2012-10-31T12:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,907 | cpp | /*
* testRegExp.cpp
*
*/
#include "FiniteAutomata.h"
#include "isMatch.h"
#include <gtest/gtest.h>
#include <utility>
#include <string>
using namespace std;
using ::testing::TestWithParam;
using ::testing::ValuesIn;
class RegExpTestData
{
public:
string pattern;
string value;
bool expectedResult;
RegExpTestData(string p , string v, bool r) : pattern(p), value(v), expectedResult(r) { } ;
friend ostream & operator<< ( ostream & os , const RegExpTestData & data );
};
ostream & operator << ( ostream & os , const RegExpTestData & data )
{
return os << " value [" << data.value << "] pattern [" << data.pattern << "] expected result [" << data.expectedResult <<"]";
}
char * longString="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab";
RegExpTestData testData[]= {
// null pattern
RegExpTestData("","",true),
RegExpTestData("","a",false),
// no */. pattern
RegExpTestData("abc","abc",true),
RegExpTestData("abc","abd",false),
RegExpTestData("abc","abcd",false),
RegExpTestData("abc","ab",false),
RegExpTestData("abc","",false),
/// single *
RegExpTestData("*","a",true),
RegExpTestData("*","abc",true),
RegExpTestData("*","",true),
// * in the middle
RegExpTestData("a*b","ab",true),
RegExpTestData("a*b","acdeb",true),
RegExpTestData("a*b","ac",false),
RegExpTestData("a*b","abe",false),
RegExpTestData("a*b","a",false),
// start with *
RegExpTestData("*ab","ab",true),
RegExpTestData("*ab","ababdab",true),
RegExpTestData("*ab","ababdaa",false),
RegExpTestData("*ab","a",false),
// end with *
RegExpTestData("ab*","ab",true),
RegExpTestData("ab*","ababdab",true),
RegExpTestData("ab*","baabdaa",false),
RegExpTestData("ab*","a",false),
/// single .
RegExpTestData(".","a",true),
RegExpTestData(".","abc",false),
RegExpTestData(".","",false),
// . pattern in the middle
RegExpTestData("a.b","ab",false),
RegExpTestData("a.b","acdeb",false),
RegExpTestData("a.b","acb",true),
RegExpTestData("a.b","a",false),
RegExpTestData("a.b","acbe",false),
// . pattern at the start
RegExpTestData(".ab","ab",false),
RegExpTestData(".ab","bcab",false),
RegExpTestData(".ab","cab",true),
RegExpTestData(".ab","b",false),
// . pattern at the end
RegExpTestData("ab.","ab",false),
RegExpTestData("ab.","abcd",false),
RegExpTestData("ab.","abc",true),
RegExpTestData("ab.","a",false),
// .* pattern
RegExpTestData(".*","acbe",true),
RegExpTestData(".*","a",true),
RegExpTestData(".*","",false),
// .* in the middle
RegExpTestData("a.*b","ab",false),
RegExpTestData("a.*b","aababb",true),
RegExpTestData("a.*b","aababa",false),
RegExpTestData("a.*b","",false),
// *. pattern
RegExpTestData("*.","acbe",true),
RegExpTestData("*.","a",true),
RegExpTestData("*.","",false),
// *. in the middle
RegExpTestData("a*.b","ab",false),
RegExpTestData("a*.b","aababb",true),
RegExpTestData("a*.b","aababa",false),
RegExpTestData("a*.b","",false),
// ... pattern
RegExpTestData("...","abc",true),
RegExpTestData("...","ab",false),
RegExpTestData("...","abcd",false),
RegExpTestData("...","",false),
// *** pattern
RegExpTestData("***","abc",true),
RegExpTestData("***","ab",true),
RegExpTestData("***","abcd",true),
RegExpTestData("***","",true),
RegExpTestData("*abc*","abc",true),
RegExpTestData("*abc*","ababcab",true),
RegExpTestData("*abc*","ababab",false),
// long string test
RegExpTestData("a*b",longString,true),
RegExpTestData(longString,longString,true)
};
class RegExpTest : public TestWithParam<RegExpTestData> {
};
TEST_P(RegExpTest , FiniteAutomata) {
RegExpTestData d = GetParam();
FiniteAutomata fa ;
fa.compile(d.pattern);
EXPECT_EQ(fa.match(d.value), d.expectedResult) << d;
}
TEST_P(RegExpTest ,isMatch) {
RegExpTestData d = GetParam();
EXPECT_EQ(isMatch(d.value.c_str(),d.pattern.c_str()), d.expectedResult) << d;
}
INSTANTIATE_TEST_CASE_P(
BathRegExpTest,
RegExpTest,
ValuesIn(testData));
TEST(RegExpTest, FiniteAutomataInvalidPattern) {
FiniteAutomata fa ;
string p ="*ABD";
EXPECT_ANY_THROW(fa.compile(p));
}
| [
"alex.liang@deepnetsecurity.com"
] | alex.liang@deepnetsecurity.com |
4fd18cd0a6109e044f32db6fba8ccd812110e5e2 | e5d928c1439ad22bfa42707d3ca51862353c0502 | /cs-101/storage_types/linked_list.cpp | d62e1a33c9ea48add47cfaa2a93ceaf7c3e689a5 | [] | no_license | judesantos/algo-cpp | c858b03af0ddf86352eaf814df5454868ea46591 | 47e5f9a523c58e0daa93f03621274bbebb43a24f | refs/heads/master | 2021-06-29T22:03:27.187936 | 2017-09-14T16:25:44 | 2017-09-14T16:25:44 | 103,554,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,647 | cpp | #include <iostream>
using namespace std;
template <typename T>
struct node {
node(T data):data(data),next(0){}
~node() {
cout << "deleting " << data << endl;
}
node<T>* next;
T data;
void addNode(T data)
{
node<T>* curr = this;
while(curr->next) {
curr = curr->next;
}
curr->next = new node(data);
}
};
template <typename T>
bool removeNode(node<T>* head, int data) {
node<T>* tmp = 0;
if (head->data == data) {
tmp = head;
head = head->next;
}
else
{
node<T>* curr = head->next;
node<T>* prev = head;
while (curr) {
if (curr->data == data) {
tmp = curr;
prev->next = curr->next;
break;
}
else
{
prev = curr;
curr = curr->next;
}
}
}
if (tmp) {
delete tmp;
return true;
}
return false;
}
bool removeDuplicates(node<int>* head, int data) {
if (!head)
return false;
node<int>* tmp = 0;
node<int>* ref = head;
bool found = false;
// find first node with same value as input data
// make then as reference - do not remove, but remove duplicates
while (ref) {
if (ref->data == data) {
ref = ref->next;
break;
}
ref = ref->next;
}
while (ref) {
if (ref->data == data) {
tmp = ref->next;
delete ref;
ref = tmp;
found = true;
}
else
{
ref = ref->next;
}
}
return found;
}
bool removeDuplicates(node<int>* head) {
if (!head)
return false;
node<int>* curr = head;
bool found = false;
while (curr) {
found = removeDuplicates(curr, curr->data);
curr = curr->next;
}
return found;
}
int main() {
node<int>* head = new node<int>(1);
head->addNode(2);
cout << "removenode 2" << endl;
removeNode<int>(head, 2);
node<int>* t = head;
while (t) {
cout << t->data << endl;
t = t->next;
}
cout << "add nodes" << endl;
head->addNode(2);
head->addNode(3);
head->addNode(2);
t = head;
while (t) {
cout << t->data << endl;
t = t->next;
}
cout << "removedups 2" << endl;
removeDuplicates(head);
t = head;
while(t)
{
node<int>* tmp = t->next;
delete t;
t = tmp;
}
return 0;
}
| [
"jude@yourtechy.com"
] | jude@yourtechy.com |
bb35787a54765cdf038361a1d9d9cfa7ca868b9a | 188fb8ded33ad7a2f52f69975006bb38917437ef | /Fluid/processor5/0.35/pointDisplacement | f250fd6eea362cd7e7e6871c9536182cca7f16ee | [] | no_license | abarcaortega/Tuto_2 | 34a4721f14725c20471ff2dc8d22b52638b8a2b3 | 4a84c22efbb9cd2eaeda92883343b6910e0941e2 | refs/heads/master | 2020-08-05T16:11:57.674940 | 2019-10-04T09:56:09 | 2019-10-04T09:56:09 | 212,573,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,623 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class pointVectorField;
location "0.35";
object pointDisplacement;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 0 0 0 0 0];
internalField nonuniform List<vector>
1034
(
(0.0399645 0 0)
(0.0395353 0 0)
(0.0389979 0 0)
(0.0383548 0 0)
(0.0376054 0 0)
(0.0367464 0 0)
(0.0357715 0 0)
(0.0346718 0 0)
(0.0334352 0 0)
(0.0320474 0 0)
(0.0304913 0 0)
(0.0287471 0 0)
(0.0267924 0 0)
(0.0246023 0 0)
(0.0221485 0 0)
(0.0193998 0 0)
(0.0163215 0 0)
(0.0128748 0 0)
(0.00901701 0 0)
(0.00469923 0 0)
(0 0 0)
(0.0399715 0 0.000718592)
(0.0395348 0 0.000808764)
(0.0389923 0 0.000887041)
(0.0383457 0 0.000951022)
(0.0375941 0 0.000999276)
(0.036734 0 0.00103127)
(0.0357587 0 0.00104719)
(0.0346591 0 0.00104772)
(0.0334229 0 0.00103384)
(0.0320358 0 0.00100667)
(0.0304804 0 0.000967307)
(0.0287371 0 0.000916732)
(0.0267834 0 0.000855743)
(0.0245942 0 0.000784893)
(0.0221414 0 0.000704463)
(0.0193937 0 0.000614432)
(0.0163163 0 0.000514455)
(0.0128708 0 0.000403848)
(0.00901408 0 0.000281572)
(0.0046975 0 0.000146187)
(0 0 0)
(0.0399889 0 0.00145844)
(0.039531 0 0.0016376)
(0.0389736 0 0.0017925)
(0.0383171 0 0.00191843)
(0.0375596 0 0.00201268)
(0.0366963 0 0.00207437)
(0.0357201 0 0.00210401)
(0.0346208 0 0.00210306)
(0.0333861 0 0.00207354)
(0.0320011 0 0.00201771)
(0.0304482 0 0.00193775)
(0.0287076 0 0.00183562)
(0.0267567 0 0.00171287)
(0.0245704 0 0.0015706)
(0.0221205 0 0.00140933)
(0.0193759 0 0.00122898)
(0.0163017 0 0.00102886)
(0.0128595 0 0.000807572)
(0.00900624 0 0.000563013)
(0.00469345 0 0.000292293)
(0 0 0)
(0.0400077 0 0.00224385)
(0.0395174 0 0.00250932)
(0.0389374 0 0.00273711)
(0.0382661 0 0.00292047)
(0.0374997 0 0.00305584)
(0.0366321 0 0.00314232)
(0.0356548 0 0.00318103)
(0.0345567 0 0.00317438)
(0.0333247 0 0.00312556)
(0.0319433 0 0.00303796)
(0.0303946 0 0.00291485)
(0.0286586 0 0.00275911)
(0.0267125 0 0.00257302)
(0.024531 0 0.00235812)
(0.0220861 0 0.00211513)
(0.0193465 0 0.00184388)
(0.0162776 0 0.00154325)
(0.0128408 0 0.00121109)
(0.00899334 0 0.000844224)
(0.00468679 0 0.00043825)
(0 0 0)
(0.0400141 0 0.00309275)
(0.0394844 0 0.00344021)
(0.0388771 0 0.00373488)
(0.0381882 0 0.00396864)
(0.0374118 0 0.0041377)
(0.0365397 0 0.00424169)
(0.035562 0 0.00428272)
(0.0344663 0 0.00426441)
(0.0332386 0 0.00419116)
(0.0318626 0 0.00406757)
(0.03032 0 0.00389794)
(0.0285905 0 0.00368597)
(0.026651 0 0.00343458)
(0.0244764 0 0.00314567)
(0.0220384 0 0.00282007)
(0.0193058 0 0.00245742)
(0.0162441 0 0.00205612)
(0.0128149 0 0.00161321)
(0.00897552 0 0.00112435)
(0.00467761 0 0.000583617)
(0 0 0)
(0.0399913 0 0.00402402)
(0.0394198 0 0.00444708)
(0.038784 0 0.00479995)
(0.0380776 0 0.00507421)
(0.037292 0 0.00526679)
(0.0364169 0 0.00537858)
(0.0354405 0 0.00541312)
(0.0343491 0 0.00537546)
(0.0331276 0 0.00527136)
(0.0317591 0 0.00510654)
(0.0302246 0 0.00488626)
(0.0285035 0 0.00461496)
(0.0265727 0 0.00429601)
(0.0244067 0 0.00393158)
(0.0219775 0 0.00352246)
(0.019254 0 0.00306803)
(0.0162015 0 0.00256608)
(0.012782 0 0.00201279)
(0.00895283 0 0.0014026)
(0.00466592 0 0.000727979)
(0 0 0)
(0.0399213 0 0.00506104)
(0.0393103 0 0.00555019)
(0.0386491 0 0.00594898)
(0.0379281 0 0.00625036)
(0.0371364 0 0.0064532)
(0.0362613 0 0.00656042)
(0.035289 0 0.00657747)
(0.0342046 0 0.00651107)
(0.0329918 0 0.00636831)
(0.0316329 0 0.00615599)
(0.0301087 0 0.00588019)
(0.028398 0 0.00554588)
(0.0264777 0 0.00515676)
(0.0243224 0 0.00471506)
(0.0219039 0 0.00422141)
(0.0191912 0 0.00367478)
(0.0161499 0 0.00307229)
(0.0127421 0 0.00240913)
(0.00892535 0 0.00167846)
(0.00465178 0 0.000871065)
(0 0 0)
(0.0397856 0 0.00622893)
(0.0391427 0 0.00676975)
(0.038463 0 0.0071975)
(0.0377338 0 0.00750852)
(0.0369414 0 0.00770498)
(0.0360708 0 0.00779263)
(0.0351066 0 0.00777919)
(0.0340325 0 0.00767313)
(0.0328312 0 0.00748281)
(0.0314845 0 0.00721594)
(0.0299728 0 0.00687918)
(0.0282746 0 0.00647783)
(0.0263667 0 0.00601569)
(0.0242238 0 0.00549486)
(0.0218177 0 0.00491567)
(0.0191177 0 0.00427651)
(0.0160895 0 0.0035737)
(0.0126954 0 0.00280138)
(0.00889317 0 0.00195132)
(0.00463521 0 0.00101256)
(0 0 0)
(0.0395667 0 0.00755481)
(0.0389048 0 0.00812574)
(0.0382179 0 0.00855947)
(0.0374899 0 0.00885799)
(0.0367042 0 0.00902796)
(0.0358442 0 0.00907854)
(0.0348929 0 0.00901987)
(0.0338328 0 0.00886202)
(0.0326463 0 0.00861444)
(0.0313145 0 0.00828543)
(0.0298174 0 0.00788195)
(0.0281337 0 0.00740935)
(0.0262402 0 0.00687127)
(0.0241114 0 0.00626949)
(0.0217196 0 0.00560381)
(0.0190339 0 0.00487191)
(0.0160206 0 0.00406921)
(0.0126421 0 0.00318865)
(0.0088564 0 0.00222055)
(0.00461627 0 0.00115212)
(0 0 0)
(0.0392498 0 0.00906577)
(0.0385875 0 0.00963559)
(0.0379083 0 0.0100453)
(0.0371933 0 0.0103042)
(0.0364237 0 0.0104244)
(0.0355813 0 0.0104183)
(0.0346482 0 0.0102984)
(0.0336065 0 0.010076)
(0.032438 0 0.00976104)
(0.0311237 0 0.00936215)
(0.0296436 0 0.00888616)
(0.0279764 0 0.00833816)
(0.0260989 0 0.00772135)
(0.0239859 0 0.00703694)
(0.0216098 0 0.00628402)
(0.0189403 0 0.00545942)
(0.0159435 0 0.00455748)
(0.0125823 0 0.0035699)
(0.00881517 0 0.00248544)
(0.00459503 0 0.0012894)
(0 0 0)
(0.038825 0 0.0107865)
(0.0381856 0 0.0113123)
(0.0375323 0 0.0116604)
(0.0368438 0 0.0118482)
(0.0361004 0 0.0118925)
(0.0352832 0 0.011809)
(0.0343741 0 0.0116113)
(0.033355 0 0.0113112)
(0.0322077 0 0.010919)
(0.0309135 0 0.0104427)
(0.0294524 0 0.00988865)
(0.0278034 0 0.00926139)
(0.0259435 0 0.00856335)
(0.0238479 0 0.00779492)
(0.0214891 0 0.00695431)
(0.018837 0 0.00603731)
(0.0158584 0 0.00503712)
(0.0125163 0 0.00394404)
(0.00876959 0 0.00274521)
(0.00457152 0 0.00142398)
(0 0 0)
(0.0382898 0 0.0127353)
(0.0376999 0 0.0131619)
(0.0370918 0 0.0134041)
(0.0364441 0 0.0134857)
(0.0357371 0 0.013427)
(0.0349525 0 0.0132447)
(0.0340727 0 0.0129528)
(0.0330802 0 0.0125626)
(0.0319572 0 0.0120836)
(0.0306853 0 0.0115229)
(0.0292452 0 0.0108858)
(0.0276159 0 0.0101759)
(0.0257751 0 0.00939453)
(0.023698 0 0.00854108)
(0.0213578 0 0.00761266)
(0.0187247 0 0.0066039)
(0.0157657 0 0.00550673)
(0.0124443 0 0.00430999)
(0.00871977 0 0.00299915)
(0.0045458 0 0.00155549)
(0 0 0)
(0.037653 0 0.014913)
(0.0371389 0 0.0151766)
(0.0365945 0 0.015265)
(0.0360005 0 0.0152047)
(0.035339 0 0.0150161)
(0.0345935 0 0.0147151)
(0.0337475 0 0.014314)
(0.0327849 0 0.0138225)
(0.0316886 0 0.0132484)
(0.0304411 0 0.0125973)
(0.0290233 0 0.011873)
(0.0274151 0 0.0110778)
(0.0255944 0 0.0102116)
(0.0235371 0 0.00927265)
(0.0212166 0 0.00825675)
(0.0186036 0 0.00715728)
(0.0156656 0 0.00596477)
(0.0123664 0 0.00466659)
(0.00866584 0 0.00324643)
(0.00451792 0 0.00168353)
(0 0 0)
(0.0369358 0 0.0172945)
(0.0365192 0 0.0173297)
(0.0360532 0 0.0172187)
(0.0355227 0 0.016984)
(0.0349135 0 0.0166422)
(0.0342117 0 0.0162055)
(0.033403 0 0.0156827)
(0.0324726 0 0.0150809)
(0.0314048 0 0.0144052)
(0.0301828 0 0.0136592)
(0.0287886 0 0.0128448)
(0.0272024 0 0.0119624)
(0.0254027 0 0.0110108)
(0.023366 0 0.00998645)
(0.0210662 0 0.00888395)
(0.0184744 0 0.00769528)
(0.0155585 0 0.00640955)
(0.012283 0 0.00501254)
(0.00860791 0 0.00348618)
(0.00448794 0 0.00180762)
(0 0 0)
(0.0361684 0 0.0198333)
(0.0358626 0 0.019583)
(0.0354834 0 0.0192341)
(0.0350221 0 0.0187986)
(0.0344689 0 0.0182854)
(0.0338133 0 0.0177001)
(0.0330437 0 0.0170466)
(0.0321469 0 0.0163279)
(0.0311084 0 0.015546)
(0.0299128 0 0.0147021)
(0.0285426 0 0.0137958)
(0.0269789 0 0.0128256)
(0.0252009 0 0.0117885)
(0.0231855 0 0.0106796)
(0.0209071 0 0.00949191)
(0.0183374 0 0.00821601)
(0.0154447 0 0.00683953)
(0.0121941 0 0.00534667)
(0.00854606 0 0.0037176)
(0.00445587 0 0.00192737)
(0 0 0)
(0.0354667 0 0.0230461)
(0.035377 0 0.0224936)
(0.0351858 0 0.0219128)
(0.0348958 0 0.0212962)
(0.0345052 0 0.0206395)
(0.0340091 0 0.0199409)
(0.0334005 0 0.0191974)
(0.0326706 0 0.0184059)
(0.0318077 0 0.0175651)
(0.0307991 0 0.0166735)
(0.0296301 0 0.0157292)
(0.0282844 0 0.0147295)
(0.0267437 0 0.0136709)
(0.0249879 0 0.0125483)
(0.0229944 0 0.0113554)
(0.0207382 0 0.0100836)
(0.0181915 0 0.00872211)
(0.0153233 0 0.00725693)
(0.0120989 0 0.00567072)
(0.00847971 0 0.00394187)
(0.00442137 0 0.00204336)
(0 0 0)
(0.0399645 0 0)
(0.0395353 0 0)
(0.0389979 0 0)
(0.0383548 0 0)
(0.0376054 0 0)
(0.0367464 0 0)
(0.0357715 0 0)
(0.0346718 0 0)
(0.0334352 0 0)
(0.0320474 0 0)
(0.0304913 0 0)
(0.0287471 0 0)
(0.0267924 0 0)
(0.0246023 0 0)
(0.0221485 0 0)
(0.0193998 0 0)
(0.0163215 0 0)
(0.0128748 0 0)
(0.00901701 0 0)
(0.00469923 0 0)
(0 0 0)
(0.0399715 0 0.000718592)
(0.0395348 0 0.000808764)
(0.0389923 0 0.000887041)
(0.0383457 0 0.000951022)
(0.0375941 0 0.000999276)
(0.036734 0 0.00103127)
(0.0357587 0 0.00104719)
(0.0346591 0 0.00104772)
(0.0334229 0 0.00103384)
(0.0320358 0 0.00100667)
(0.0304804 0 0.000967307)
(0.0287371 0 0.000916732)
(0.0267834 0 0.000855743)
(0.0245942 0 0.000784893)
(0.0221414 0 0.000704463)
(0.0193937 0 0.000614432)
(0.0163163 0 0.000514455)
(0.0128708 0 0.000403848)
(0.00901408 0 0.000281572)
(0.0046975 0 0.000146187)
(0 0 0)
(0.0399889 0 0.00145844)
(0.039531 0 0.0016376)
(0.0389736 0 0.0017925)
(0.0383171 0 0.00191843)
(0.0375596 0 0.00201268)
(0.0366963 0 0.00207437)
(0.0357201 0 0.00210401)
(0.0346208 0 0.00210306)
(0.0333861 0 0.00207354)
(0.0320011 0 0.00201771)
(0.0304482 0 0.00193775)
(0.0287076 0 0.00183562)
(0.0267567 0 0.00171287)
(0.0245704 0 0.0015706)
(0.0221205 0 0.00140933)
(0.0193759 0 0.00122898)
(0.0163017 0 0.00102886)
(0.0128595 0 0.000807572)
(0.00900624 0 0.000563013)
(0.00469345 0 0.000292293)
(0 0 0)
(0.0400077 0 0.00224385)
(0.0395174 0 0.00250932)
(0.0389374 0 0.00273711)
(0.0382661 0 0.00292047)
(0.0374997 0 0.00305584)
(0.0366321 0 0.00314232)
(0.0356548 0 0.00318103)
(0.0345567 0 0.00317438)
(0.0333247 0 0.00312556)
(0.0319433 0 0.00303796)
(0.0303946 0 0.00291485)
(0.0286586 0 0.00275911)
(0.0267125 0 0.00257302)
(0.024531 0 0.00235812)
(0.0220861 0 0.00211513)
(0.0193465 0 0.00184388)
(0.0162776 0 0.00154325)
(0.0128408 0 0.00121109)
(0.00899334 0 0.000844224)
(0.00468679 0 0.00043825)
(0 0 0)
(0.0400141 0 0.00309275)
(0.0394844 0 0.00344021)
(0.0388771 0 0.00373488)
(0.0381882 0 0.00396864)
(0.0374118 0 0.0041377)
(0.0365397 0 0.00424169)
(0.035562 0 0.00428272)
(0.0344663 0 0.00426441)
(0.0332386 0 0.00419116)
(0.0318626 0 0.00406757)
(0.03032 0 0.00389794)
(0.0285905 0 0.00368597)
(0.026651 0 0.00343458)
(0.0244764 0 0.00314567)
(0.0220384 0 0.00282007)
(0.0193058 0 0.00245742)
(0.0162441 0 0.00205612)
(0.0128149 0 0.00161321)
(0.00897552 0 0.00112435)
(0.00467761 0 0.000583617)
(0 0 0)
(0.0399913 0 0.00402402)
(0.0394198 0 0.00444708)
(0.038784 0 0.00479995)
(0.0380776 0 0.00507421)
(0.037292 0 0.00526679)
(0.0364169 0 0.00537858)
(0.0354405 0 0.00541312)
(0.0343491 0 0.00537546)
(0.0331276 0 0.00527136)
(0.0317591 0 0.00510654)
(0.0302246 0 0.00488626)
(0.0285035 0 0.00461496)
(0.0265727 0 0.00429601)
(0.0244067 0 0.00393158)
(0.0219775 0 0.00352246)
(0.019254 0 0.00306803)
(0.0162015 0 0.00256608)
(0.012782 0 0.00201279)
(0.00895283 0 0.0014026)
(0.00466592 0 0.000727979)
(0 0 0)
(0.0399213 0 0.00506104)
(0.0393103 0 0.00555019)
(0.0386491 0 0.00594898)
(0.0379281 0 0.00625036)
(0.0371364 0 0.0064532)
(0.0362613 0 0.00656042)
(0.035289 0 0.00657747)
(0.0342046 0 0.00651107)
(0.0329918 0 0.00636831)
(0.0316329 0 0.00615599)
(0.0301087 0 0.00588019)
(0.028398 0 0.00554588)
(0.0264777 0 0.00515676)
(0.0243224 0 0.00471506)
(0.0219039 0 0.00422141)
(0.0191912 0 0.00367478)
(0.0161499 0 0.00307229)
(0.0127421 0 0.00240913)
(0.00892535 0 0.00167846)
(0.00465178 0 0.000871065)
(0 0 0)
(0.0397856 0 0.00622893)
(0.0391427 0 0.00676975)
(0.038463 0 0.0071975)
(0.0377338 0 0.00750852)
(0.0369414 0 0.00770498)
(0.0360708 0 0.00779263)
(0.0351066 0 0.00777919)
(0.0340325 0 0.00767313)
(0.0328312 0 0.00748281)
(0.0314845 0 0.00721594)
(0.0299728 0 0.00687918)
(0.0282746 0 0.00647783)
(0.0263667 0 0.00601569)
(0.0242238 0 0.00549486)
(0.0218177 0 0.00491567)
(0.0191177 0 0.00427651)
(0.0160895 0 0.0035737)
(0.0126954 0 0.00280138)
(0.00889317 0 0.00195132)
(0.00463521 0 0.00101256)
(0 0 0)
(0.0395667 0 0.00755481)
(0.0389048 0 0.00812574)
(0.0382179 0 0.00855947)
(0.0374899 0 0.00885799)
(0.0367042 0 0.00902796)
(0.0358442 0 0.00907854)
(0.0348929 0 0.00901987)
(0.0338328 0 0.00886202)
(0.0326463 0 0.00861444)
(0.0313145 0 0.00828543)
(0.0298174 0 0.00788195)
(0.0281337 0 0.00740935)
(0.0262402 0 0.00687127)
(0.0241114 0 0.00626949)
(0.0217196 0 0.00560381)
(0.0190339 0 0.00487191)
(0.0160206 0 0.00406921)
(0.0126421 0 0.00318865)
(0.0088564 0 0.00222055)
(0.00461627 0 0.00115212)
(0 0 0)
(0.0392498 0 0.00906577)
(0.0385875 0 0.00963559)
(0.0379083 0 0.0100453)
(0.0371933 0 0.0103042)
(0.0364237 0 0.0104244)
(0.0355813 0 0.0104183)
(0.0346482 0 0.0102984)
(0.0336065 0 0.010076)
(0.032438 0 0.00976104)
(0.0311237 0 0.00936215)
(0.0296436 0 0.00888616)
(0.0279764 0 0.00833816)
(0.0260989 0 0.00772135)
(0.0239859 0 0.00703694)
(0.0216098 0 0.00628402)
(0.0189403 0 0.00545942)
(0.0159435 0 0.00455748)
(0.0125823 0 0.0035699)
(0.00881517 0 0.00248544)
(0.00459503 0 0.0012894)
(0 0 0)
(0.038825 0 0.0107865)
(0.0381856 0 0.0113123)
(0.0375323 0 0.0116604)
(0.0368438 0 0.0118482)
(0.0361004 0 0.0118925)
(0.0352832 0 0.011809)
(0.0343741 0 0.0116113)
(0.033355 0 0.0113112)
(0.0322077 0 0.010919)
(0.0309135 0 0.0104427)
(0.0294524 0 0.00988865)
(0.0278034 0 0.00926139)
(0.0259435 0 0.00856335)
(0.0238479 0 0.00779492)
(0.0214891 0 0.00695431)
(0.018837 0 0.00603731)
(0.0158584 0 0.00503712)
(0.0125163 0 0.00394404)
(0.00876959 0 0.00274521)
(0.00457152 0 0.00142398)
(0 0 0)
(0.0382898 0 0.0127353)
(0.0376999 0 0.0131619)
(0.0370918 0 0.0134041)
(0.0364441 0 0.0134857)
(0.0357371 0 0.013427)
(0.0349525 0 0.0132447)
(0.0340727 0 0.0129528)
(0.0330802 0 0.0125626)
(0.0319572 0 0.0120836)
(0.0306853 0 0.0115229)
(0.0292452 0 0.0108858)
(0.0276159 0 0.0101759)
(0.0257751 0 0.00939453)
(0.023698 0 0.00854108)
(0.0213578 0 0.00761266)
(0.0187247 0 0.0066039)
(0.0157657 0 0.00550673)
(0.0124443 0 0.00430999)
(0.00871977 0 0.00299915)
(0.0045458 0 0.00155549)
(0 0 0)
(0.037653 0 0.014913)
(0.0371389 0 0.0151766)
(0.0365945 0 0.015265)
(0.0360005 0 0.0152047)
(0.035339 0 0.0150161)
(0.0345935 0 0.0147151)
(0.0337475 0 0.014314)
(0.0327849 0 0.0138225)
(0.0316886 0 0.0132484)
(0.0304411 0 0.0125973)
(0.0290233 0 0.011873)
(0.0274151 0 0.0110778)
(0.0255944 0 0.0102116)
(0.0235371 0 0.00927265)
(0.0212166 0 0.00825675)
(0.0186036 0 0.00715728)
(0.0156656 0 0.00596477)
(0.0123664 0 0.00466659)
(0.00866584 0 0.00324643)
(0.00451792 0 0.00168353)
(0 0 0)
(0.0369358 0 0.0172945)
(0.0365192 0 0.0173297)
(0.0360532 0 0.0172187)
(0.0355227 0 0.016984)
(0.0349135 0 0.0166422)
(0.0342117 0 0.0162055)
(0.033403 0 0.0156827)
(0.0324726 0 0.0150809)
(0.0314048 0 0.0144052)
(0.0301828 0 0.0136592)
(0.0287886 0 0.0128448)
(0.0272024 0 0.0119624)
(0.0254027 0 0.0110108)
(0.023366 0 0.00998645)
(0.0210662 0 0.00888395)
(0.0184744 0 0.00769528)
(0.0155585 0 0.00640955)
(0.012283 0 0.00501254)
(0.00860791 0 0.00348618)
(0.00448794 0 0.00180762)
(0 0 0)
(0.0361684 0 0.0198333)
(0.0358626 0 0.019583)
(0.0354834 0 0.0192341)
(0.0350221 0 0.0187986)
(0.0344689 0 0.0182854)
(0.0338133 0 0.0177001)
(0.0330437 0 0.0170466)
(0.0321469 0 0.0163279)
(0.0311084 0 0.015546)
(0.0299128 0 0.0147021)
(0.0285426 0 0.0137958)
(0.0269789 0 0.0128256)
(0.0252009 0 0.0117885)
(0.0231855 0 0.0106796)
(0.0209071 0 0.00949191)
(0.0183374 0 0.00821601)
(0.0154447 0 0.00683953)
(0.0121941 0 0.00534667)
(0.00854606 0 0.0037176)
(0.00445587 0 0.00192737)
(0 0 0)
(0.0354667 0 0.0230461)
(0.035377 0 0.0224936)
(0.0351858 0 0.0219128)
(0.0348958 0 0.0212962)
(0.0345052 0 0.0206395)
(0.0340091 0 0.0199409)
(0.0334005 0 0.0191974)
(0.0326706 0 0.0184059)
(0.0318077 0 0.0175651)
(0.0307991 0 0.0166735)
(0.0296301 0 0.0157292)
(0.0282844 0 0.0147295)
(0.0267437 0 0.0136709)
(0.0249879 0 0.0125483)
(0.0229944 0 0.0113554)
(0.0207382 0 0.0100836)
(0.0181915 0 0.00872211)
(0.0153233 0 0.00725693)
(0.0120989 0 0.00567072)
(0.00847971 0 0.00394187)
(0.00442137 0 0.00204336)
(0 0 0)
(0.0345373 0 0.0262421)
(0.0345851 0 0.0252405)
(0.0345012 0 0.0243058)
(0.0342963 0 0.023404)
(0.033974 0 0.0225124)
(0.0335337 0 0.0216168)
(0.0329718 0 0.020706)
(0.0322814 0 0.0197701)
(0.0314525 0 0.0188024)
(0.0304738 0 0.0177974)
(0.0293317 0 0.0167501)
(0.0280108 0 0.0156552)
(0.0264936 0 0.0145069)
(0.0247606 0 0.0132982)
(0.0227899 0 0.0120212)
(0.020557 0 0.0106656)
(0.0180346 0 0.00921916)
(0.0151922 0 0.00766638)
(0.011996 0 0.00598828)
(0.00840776 0 0.00416148)
(0.00438391 0 0.00215691)
(0 0 0)
(0.0336793 0 0.0293874)
(0.0338307 0 0.027967)
(0.0338337 0 0.0266925)
(0.033701 0 0.0255112)
(0.0334392 0 0.0243864)
(0.0330503 0 0.023292)
(0.0325322 0 0.0222106)
(0.0318791 0 0.021128)
(0.0310829 0 0.0200315)
(0.0301332 0 0.0189118)
(0.0290176 0 0.0177604)
(0.0277214 0 0.0165694)
(0.026228 0 0.0153309)
(0.0245183 0 0.0140361)
(0.022571 0 0.0126751)
(0.0203623 0 0.0112364)
(0.0178655 0 0.00970594)
(0.0150507 0 0.00806686)
(0.0118845 0 0.00629853)
(0.00832957 0 0.00437583)
(0.00434309 0 0.00226764)
(0 0 0)
(0.0332109 0 0.0289754)
(0.0331314 0 0.0275432)
(0.0329173 0 0.0262037)
(0.0325706 0 0.0249239)
(0.0320897 0 0.0236807)
(0.0314695 0 0.0224562)
(0.0307029 0 0.0212341)
(0.0297803 0 0.0200017)
(0.0286899 0 0.0187477)
(0.0274178 0 0.017462)
(0.0259478 0 0.0161345)
(0.0242616 0 0.0147548)
(0.0223383 0 0.0133113)
(0.0201546 0 0.0117909)
(0.0176845 0 0.0101783)
(0.0148986 0 0.00845497)
(0.0117644 0 0.00659886)
(0.00824512 0 0.0045831)
(0.00429886 0 0.00237463)
(0 0 0)
(0.0324191 0 0.0279171)
(0.0321032 0 0.0264732)
(0.0316512 0 0.0250842)
(0.0310582 0 0.0237286)
(0.0303171 0 0.0223887)
(0.0294187 0 0.0210492)
(0.0283517 0 0.0196971)
(0.0271023 0 0.0183203)
(0.0256551 0 0.0169069)
(0.023992 0 0.015445)
(0.0220928 0 0.0139217)
(0.0199348 0 0.0123225)
(0.0174923 0 0.0106306)
(0.0147367 0 0.00882624)
(0.0116362 0 0.00688586)
(0.00815474 0 0.004781)
(0.00425145 0 0.00247672)
(0 0 0)
(0.0316539 0 0.0279109)
(0.0312222 0 0.0263947)
(0.0306499 0 0.0249224)
(0.0299295 0 0.0234754)
(0.0290518 0 0.0220375)
(0.0280055 0 0.020594)
(0.0267772 0 0.0191315)
(0.0253515 0 0.0176371)
(0.0237111 0 0.0160974)
(0.0218359 0 0.0144983)
(0.0197037 0 0.0128242)
(0.0172895 0 0.0110571)
(0.0145654 0 0.00917598)
(0.0115001 0 0.00715595)
(0.00805866 0 0.00496706)
(0.00420097 0 0.00257264)
(0 0 0)
(0.0302473 0 0.0260197)
(0.0295424 0 0.0244791)
(0.0286813 0 0.0229531)
(0.0276528 0 0.0214268)
(0.0264435 0 0.0198859)
(0.0250381 0 0.0183165)
(0.0234194 0 0.0167045)
(0.0215678 0 0.0150348)
(0.0194617 0 0.0132907)
(0.0170765 0 0.0114533)
(0.0143849 0 0.00950053)
(0.0113564 0 0.00740628)
(0.00795687 0 0.00513929)
(0.0041474 0 0.00266135)
(0 0 0)
(0.0283091 0 0.0237833)
(0.0272952 0 0.0221843)
(0.0261025 0 0.0205734)
(0.0247157 0 0.0189365)
(0.0231177 0 0.0172588)
(0.0212894 0 0.0155245)
(0.0192093 0 0.0137163)
(0.0168535 0 0.0118145)
(0.0141953 0 0.00979604)
(0.011205 0 0.00763389)
(0.00784941 0 0.00529563)
(0.00409073 0 0.00274179)
(0 0 0)
(0.0269341 0 0.0228556)
(0.0257554 0 0.0211845)
(0.0243853 0 0.0194885)
(0.0228069 0 0.0177526)
(0.0210011 0 0.0159609)
(0.0189469 0 0.0140954)
(0.0166209 0 0.0121358)
(0.013997 0 0.0100586)
(0.0110462 0 0.00783569)
(0.00773645 0 0.00543397)
(0.00403105 0 0.00281283)
(0 0 0)
(0.0240483 0 0.0199641)
(0.0224879 0 0.0181785)
(0.0207039 0 0.0163372)
(0.0186753 0 0.0144221)
(0.0163793 0 0.0124124)
(0.0137904 0 0.010284)
(0.0108804 0 0.00800858)
(0.0076182 0 0.00555215)
(0.00396847 0 0.00287337)
(0 0 0)
(0.0221621 0 0.0185292)
(0.0203988 0 0.016647)
(0.0183954 0 0.0146906)
(0.0161294 0 0.0126392)
(0.0135761 0 0.0104684)
(0.010708 0 0.00814942)
(0.00749499 0 0.005648)
(0.00390316 0 0.00292229)
(0 0 0)
(0.0181081 0 0.0148956)
(0.0158721 0 0.0128115)
(0.0133548 0 0.0106076)
(0.0105295 0 0.00825509)
(0.00736722 0 0.00571937)
(0.00383532 0 0.00295848)
(0 0 0)
(0.0156086 0 0.0129248)
(0.0131275 0 0.010698)
(0.0103457 0 0.00832259)
(0.00723537 0 0.00576415)
(0.00376523 0 0.00298086)
(0 0 0)
(0.0101575 0 0.0083492)
(0.00710006 0 0.0057804)
(0.00369318 0 0.00298838)
(0 0 0)
(0.00696205 0 0.00576631)
(0.00361958 0 0.0029801)
(0 0 0)
(0.00354486 0 0.00295513)
(0 0 0)
(0.0345373 0 0.0262421)
(0.0345851 0 0.0252405)
(0.0345012 0 0.0243058)
(0.0342963 0 0.023404)
(0.033974 0 0.0225124)
(0.0335337 0 0.0216168)
(0.0329718 0 0.020706)
(0.0322814 0 0.0197701)
(0.0314525 0 0.0188024)
(0.0304738 0 0.0177974)
(0.0293317 0 0.0167501)
(0.0280108 0 0.0156552)
(0.0264936 0 0.0145069)
(0.0247606 0 0.0132982)
(0.0227899 0 0.0120212)
(0.020557 0 0.0106656)
(0.0180346 0 0.00921916)
(0.0151922 0 0.00766638)
(0.011996 0 0.00598828)
(0.00840776 0 0.00416148)
(0.00438391 0 0.00215691)
(0 0 0)
(0.0336793 0 0.0293874)
(0.0338307 0 0.027967)
(0.0338337 0 0.0266925)
(0.033701 0 0.0255112)
(0.0334392 0 0.0243864)
(0.0330503 0 0.023292)
(0.0325322 0 0.0222106)
(0.0318791 0 0.021128)
(0.0310829 0 0.0200315)
(0.0301332 0 0.0189118)
(0.0290176 0 0.0177604)
(0.0277214 0 0.0165694)
(0.026228 0 0.0153309)
(0.0245183 0 0.0140361)
(0.022571 0 0.0126751)
(0.0203623 0 0.0112364)
(0.0178655 0 0.00970594)
(0.0150507 0 0.00806686)
(0.0118845 0 0.00629853)
(0.00832957 0 0.00437583)
(0.00434309 0 0.00226764)
(0 0 0)
(0.0332109 0 0.0289754)
(0.0331314 0 0.0275432)
(0.0329173 0 0.0262037)
(0.0325706 0 0.0249239)
(0.0320897 0 0.0236807)
(0.0314695 0 0.0224562)
(0.0307029 0 0.0212341)
(0.0297803 0 0.0200017)
(0.0286899 0 0.0187477)
(0.0274178 0 0.017462)
(0.0259478 0 0.0161345)
(0.0242616 0 0.0147548)
(0.0223383 0 0.0133113)
(0.0201546 0 0.0117909)
(0.0176845 0 0.0101783)
(0.0148986 0 0.00845497)
(0.0117644 0 0.00659886)
(0.00824512 0 0.0045831)
(0.00429886 0 0.00237463)
(0 0 0)
(0.0324191 0 0.0279171)
(0.0321032 0 0.0264732)
(0.0316512 0 0.0250842)
(0.0310582 0 0.0237286)
(0.0303171 0 0.0223887)
(0.0294187 0 0.0210492)
(0.0283517 0 0.0196971)
(0.0271023 0 0.0183203)
(0.0256551 0 0.0169069)
(0.023992 0 0.015445)
(0.0220928 0 0.0139217)
(0.0199348 0 0.0123225)
(0.0174923 0 0.0106306)
(0.0147367 0 0.00882624)
(0.0116362 0 0.00688586)
(0.00815474 0 0.004781)
(0.00425145 0 0.00247672)
(0 0 0)
(0.0316539 0 0.0279109)
(0.0312222 0 0.0263947)
(0.0306499 0 0.0249224)
(0.0299295 0 0.0234754)
(0.0290518 0 0.0220375)
(0.0280055 0 0.020594)
(0.0267772 0 0.0191315)
(0.0253515 0 0.0176371)
(0.0237111 0 0.0160974)
(0.0218359 0 0.0144983)
(0.0197037 0 0.0128242)
(0.0172895 0 0.0110571)
(0.0145654 0 0.00917598)
(0.0115001 0 0.00715595)
(0.00805866 0 0.00496706)
(0.00420097 0 0.00257264)
(0 0 0)
(0.0302473 0 0.0260197)
(0.0295424 0 0.0244791)
(0.0286813 0 0.0229531)
(0.0276528 0 0.0214268)
(0.0264435 0 0.0198859)
(0.0250381 0 0.0183165)
(0.0234194 0 0.0167045)
(0.0215678 0 0.0150348)
(0.0194617 0 0.0132907)
(0.0170765 0 0.0114533)
(0.0143849 0 0.00950053)
(0.0113564 0 0.00740628)
(0.00795687 0 0.00513929)
(0.0041474 0 0.00266135)
(0 0 0)
(0.0283091 0 0.0237833)
(0.0272952 0 0.0221843)
(0.0261025 0 0.0205734)
(0.0247157 0 0.0189365)
(0.0231177 0 0.0172588)
(0.0212894 0 0.0155245)
(0.0192093 0 0.0137163)
(0.0168535 0 0.0118145)
(0.0141953 0 0.00979604)
(0.011205 0 0.00763389)
(0.00784941 0 0.00529563)
(0.00409073 0 0.00274179)
(0 0 0)
(0.0269341 0 0.0228556)
(0.0257554 0 0.0211845)
(0.0243853 0 0.0194885)
(0.0228069 0 0.0177526)
(0.0210011 0 0.0159609)
(0.0189469 0 0.0140954)
(0.0166209 0 0.0121358)
(0.013997 0 0.0100586)
(0.0110462 0 0.00783569)
(0.00773645 0 0.00543397)
(0.00403105 0 0.00281283)
(0 0 0)
(0.0240483 0 0.0199641)
(0.0224879 0 0.0181785)
(0.0207039 0 0.0163372)
(0.0186753 0 0.0144221)
(0.0163793 0 0.0124124)
(0.0137904 0 0.010284)
(0.0108804 0 0.00800858)
(0.0076182 0 0.00555215)
(0.00396847 0 0.00287337)
(0 0 0)
(0.0221621 0 0.0185292)
(0.0203988 0 0.016647)
(0.0183954 0 0.0146906)
(0.0161294 0 0.0126392)
(0.0135761 0 0.0104684)
(0.010708 0 0.00814942)
(0.00749499 0 0.005648)
(0.00390316 0 0.00292229)
(0 0 0)
(0.0181081 0 0.0148956)
(0.0158721 0 0.0128115)
(0.0133548 0 0.0106076)
(0.0105295 0 0.00825509)
(0.00736722 0 0.00571937)
(0.00383532 0 0.00295848)
(0 0 0)
(0.0156086 0 0.0129248)
(0.0131275 0 0.010698)
(0.0103457 0 0.00832259)
(0.00723537 0 0.00576415)
(0.00376523 0 0.00298086)
(0 0 0)
(0.0101575 0 0.0083492)
(0.00710006 0 0.0057804)
(0.00369318 0 0.00298838)
(0 0 0)
(0.00696205 0 0.00576631)
(0.00361958 0 0.0029801)
(0 0 0)
(0.00354486 0 0.00295513)
(0 0 0)
)
;
boundaryField
{
inlet
{
type fixedValue;
value nonuniform 0();
}
outlet
{
type fixedValue;
value uniform (0 0 0);
}
flap
{
type fixedValue;
value nonuniform 0();
}
upperWall
{
type slip;
}
lowerWall
{
type slip;
}
frontAndBack
{
type empty;
}
procBoundary5to2
{
type processor;
}
procBoundary5to4
{
type processor;
}
}
// ************************************************************************* //
| [
"aldo.abarca.ortega@gmail.com"
] | aldo.abarca.ortega@gmail.com | |
c2915f6a83145c13926a4e622a980ab89c417b26 | 72fd41f7c7b7eeaf1107a38e80f6893f9440fba5 | /Ryprint/ModuleDlg.h | 5f13eef7f54934cfb6ddc668b954778bc44f6e8a | [] | no_license | tzous/RyPrint | a9b1672325c59df33e304788a62093daba5c318d | b1c78d67416a3fb7245e5fb0ca0f0e036555a4f5 | refs/heads/master | 2020-04-17T00:25:54.520072 | 2019-02-12T14:21:56 | 2019-02-12T14:21:56 | 166,048,780 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,497 | h | #pragma once
#include "explorer1.h"
#include "XPButton.h"
#include "DesignView.h"
#include "MyDocument.h"
#include "Voucher.h"
// CModuleDlg 对话框
class CModuleDlg : public CDialogEx
{
DECLARE_DYNAMIC(CModuleDlg)
public:
CModuleDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CModuleDlg();
// 对话框数据
enum { IDD = IDD_MODULE_DIALOG };
protected:
HICON m_hIcon;
virtual BOOL OnInitDialog();
virtual void OnCancel();
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
DECLARE_MESSAGE_MAP()
public:
// 主菜单
HMENU m_hMenu1;
// 广告条
CExplorer1 m_hBrowser;
// 对话框主窗口大小
CRect m_rect;
// 根据窗口大小改变控件位置,left、right、top、bottom为4个改变维度
int MoveCtlWindow(int handler, int cx, int cy,int left, int right, int top, int bottom);
// 根据窗口大小改变控件位置,rect为新的窗口位置
int MoveCtlWindow(int handler, CRect rect);
afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI);
// 状态栏
CEdit m_edtStatus;
// 主窗口分组
CStatic m_grpmain;
// 凭证窗口大小
CRect m_mainRect;
// 编辑状态 0-否 1-是
int m_nMode;
//当前凭证模板
CVoucher m_voucher;
//主画板滚动视图
CDesignView * pView;
//主画板文档
CCreateContext pContext;
// 新增字段
CXPButton m_btnNewItem;
// 导入背景
CXPButton m_btnLoadJpg;
// 删除背景
CXPButton m_btnDelJpg;
// 左对齐
CXPButton m_btnAdjustLeft;
// 右对齐
CXPButton m_btnAdjustRight;
// 上对齐
CXPButton m_btnAdjustTop;
// 下对齐
CXPButton m_btnAdjustBottom;
// 相同宽度
CXPButton m_btnSameWidth;
// 相同高度
CXPButton m_btnSameHeight;
// 新建模板
CXPButton m_btnNewMod;
// 保存模板
CXPButton m_btnSaveMod;
// 测试打印按钮
CXPButton m_btnTestPrint;
// Cancel按钮
CButton m_btnCancel;
// 离开退出返回按钮
CXPButton m_btnExit;
// 设置按钮状态
int SetButtonStatus(int imode);
afx_msg void OnBnClickedBtnNewitem();
afx_msg void OnBnClickedBtnLoadjpg();
afx_msg void OnBnClickedBtnTestprint();
afx_msg void OnBnClickedBtnNewmod();
afx_msg void OnBnClickedBtnSavemod();
afx_msg void OnBnClickedBtnExit();
// 绘制当前模板
int DrawModule(void);
// 设置按钮风格
int SetButtonStyles(void);
};
| [
"tzous@126.com"
] | tzous@126.com |
4d319a96e7c48676912bec07b33e80bbb3bbc6f6 | 8d782214cc09f43db64c49d5d646509de3e86b64 | /Pc/transform/ExprTransform.h | f31105f189068c248f11084c5e6babf1f09d5425 | [] | no_license | Aardvajk/OPx | f8c39a9b3d2a3c7edae8d48d29480cee01aaf9f6 | 1f450602a5f0e69c1956e48e915c0a893a31aa29 | refs/heads/master | 2022-03-26T08:28:14.561146 | 2019-12-14T08:31:43 | 2019-12-14T08:31:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | h | #ifndef EXPRTRANSFORM_H
#define EXPRTRANSFORM_H
#include "nodes/Node.h"
#include "visitors/Visitor.h"
class Context;
class Type;
class ExprTransform : public Visitor
{
public:
ExprTransform(Context &c, Type *expectedType);
NodePtr result(){ return rn; }
virtual void visit(IdNode &node) override;
virtual void visit(CharLiteralNode &node) override;
virtual void visit(IntLiteralNode &node) override;
virtual void visit(SizeLiteralNode &node) override;
virtual void visit(BoolLiteralNode &node) override;
virtual void visit(CallNode &node) override;
virtual void visit(ProxyCallNode &node) override;
virtual void visit(ConstructNode &node) override;
virtual void visit(AddrOfNode &node) override;
virtual void visit(DerefNode &node) override;
virtual void visit(AssignNode &node) override;
virtual void visit(UnaryNode &node) override;
virtual void visit(BinaryNode &node) override;
virtual void visit(LogicalNode &node) override;
virtual void visit(PreIncDecNode &node) override;
virtual void visit(PostIncDecNode &node) override;
virtual void visit(CommaNode &node) override;
virtual void visit(InlineVarNode &node) override;
virtual void visit(TernaryNode &node) override;
virtual void visit(TypeCastNode &node) override;
static NodePtr transform(Context &c, NodePtr &node, Type *expectedType = nullptr);
private:
Context &c;
Type *expectedType;
NodePtr rn;
};
#endif // EXPRTRANSFORM_H
| [
"aardvajk@live.co.uk"
] | aardvajk@live.co.uk |
33a0b1f7efd3c00f056d06e0ff638b2f0d0de04d | b1e187a6af0cf011e1aaf4409d20a52f6eead7d9 | /httpd/RequestHandler.cc | 3ad12860e6b1c461791987943d0303d19e2c97d9 | [] | no_license | nestal/SimpleHttpd | 63e77d1a47a4074a7f2ae909aa2b6c4877174abf | 3fd29d707a70c7c6106bac66c72b2c7b45dc51eb | refs/heads/master | 2021-08-22T15:51:35.254170 | 2017-11-29T17:25:51 | 2017-11-29T17:25:51 | 107,999,319 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,752 | cc | /*
Copyright © 2017 Wan Wai Ho <me@nestal.net>
This file is subject to the terms and conditions of the GNU General Public
License. See the file COPYING in the main directory of the SimpleHttp
distribution for more details.
*/
//
// Created by nestal on 11/8/17.
//
#include "RequestHandler.hh"
#include <fstream>
#include <iostream>
namespace http {
class FileUpload : public ContentHandler
{
public:
explicit FileUpload(const std::string& path, UploadCallback&& response) :
m_file{path, std::ios::in|std::ios::out|std::ios::trunc},
m_response{std::move(response)}
{
if (!m_file)
std::cerr << "cannot open " << path << "! " << strerror(errno) << std::endl;
}
boost::optional<http::Response> OnContent(Request&, const char *data, std::size_t size) override
{
m_file.rdbuf()->sputn(data, size);
return {};
}
boost::optional<http::Response> ReplyNow(Request& req) override
{
return m_response(req, m_file);
}
future<Response> ReplyLater(Request& request) override
{
return {};
}
private:
std::fstream m_file;
UploadCallback m_response;
};
ContentHandlerPtr SaveContentToFile(const std::string& path, UploadCallback&& response)
{
return std::make_unique<FileUpload>(path, std::move(response));
}
Response RequestHandler::operator()(Request& req) const
{
return m_func(req);
}
RequestHandler::Function RequestHandler::Adapt(Response&& response)
{
return [response=std::move(response)](Request&){return response;};
}
RequestHandler::Function RequestHandler::Adapt(const Response& response)
{
return [response](Request&){return response;};
}
RequestHandler::Function RequestHandler::Adapt(Status status)
{
return [status](Request&){return Response{status};};
}
} // end of namespace
| [
"me@nestal.net"
] | me@nestal.net |
e8014db081cc90255f5864cd9cd7979435f73136 | efa1caa97ae5b4246128a9ff10ad443e6b28a41c | /TheWalkingDead/TheWalkingDead/ZombieList.cpp | 318c3576f0ae2c597b439d1308799f535e49b328 | [] | no_license | gregorydhughes/SUNYACC_DataStructures | fbb8d9a799995a5df94e32edb79dd917f6976a6c | 07eb815eb56db5de81689adc68d1779f417aae48 | refs/heads/master | 2020-04-14T13:31:24.978576 | 2016-09-12T23:10:27 | 2016-09-12T23:10:27 | 68,054,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,862 | cpp | //******************************************************************
// IMPLEMENTATION FILE (ZombieList.cpp)
// This file implements the ZList class member functions
// List representation: a one-dimensional array and a length
// variable
//******************************************************************
#include "ZombieList.h"
/*
Private members of class:
ZombieArr list; //stores the items in the list
int length; //# of values currently in the list
int currPos; //position of current element
int numZombies; //active number of zombies
*/
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
ZListClass::ZListClass() //default constructor
{
length = 0;
currPos = 0;
numZombies = 0;
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
bool ZListClass::IsFull() const
{
if (length == MAX_LENGTH) // is the list full?
return true;
else
return false;
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
void ZListClass::Insert(/*in*/ ZombieRec item)// Item to be inserted
{
if (length < MAX_LENGTH) // if there is room?
{
list[length] = item; // insert it
length++;
if (item.livingDead)
numZombies++;
}
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
bool ZListClass::Find(/*in*/ZombieRec zom)//Zombie to be found by znum
{
int ind = 0;
while (ind < length) // while more items to look at
{
// if found
if (list[ind].zombieNum == zom.zombieNum && list[ind].livingDead)
{
currPos = ind; //set currpos and return
return true;
}
ind++;
}
currPos = 0;
return false; //not found
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
bool ZListClass::Find(/*in*/LocationRec loc)//zombie to be found @ location
{
int ind = 0;
while (ind < length) // while more items to look at
{
if (list[ind].loc.col == loc.col && list[ind].loc.row == loc.row) // if found
{
currPos = ind; //set currpos and return
return true;
}
ind++;
}
currPos = 0;
return false; //not found
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
bool ZListClass::FindNext(/*in*/LocationRec loc)//zombie to be found @ location
{
int ind = currPos + 1;
while (ind < length) // while more items to look at
{
if (list[ind].loc.col == loc.col && list[ind].loc.row == loc.row && list[ind].livingDead) // if found
{
currPos = ind; //set currpos and return
return true;
}
ind++;
}
currPos = 0;
return false; //not found
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
void ZListClass::Delete()
{
length--;
numZombies--;
list[currPos] = list[length];
/*for(int ind = currPos; ind < length - 1; ind++) //shuffle up to delete
list[ind] = list[ind+1];
length--;*/
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
void ZListClass::FirstPosition()
{
currPos = 0;
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
void ZListClass::NextPosition()
{
currPos++;
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
bool ZListClass::EndOfList() const
{
return (currPos == length - 1);
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
ZombieRec ZListClass::Retrieve() const
{
return list[currPos];
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
bool ZListClass::IsZombieLivingDead() const
{
return list[currPos].livingDead;
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
void ZListClass::SetZombieStrength(/*in*/int newStrength, // new Strength
/*in*/int battleRound) // Round if killed
{
if (newStrength > 0)
{
list[currPos].strength = newStrength;
}
else
{
list[currPos].strength = 0;
list[currPos].roundKilled = battleRound;
list[currPos].livingDead = false;
numZombies--;
}
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
//Never used in client - Omitted
//void ZListClass::KillZombie(int battleRound)
//{
// list[currPos].livingDead = false;
// list[currPos].roundKilled = battleRound;
// numZombies--;
//}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
int ZListClass::GetNumZombies() const
{
return numZombies;
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
void ZListClass::AddDeadHuman(int playerID) // PlayerID of dead human to add
{
list[currPos].killsList[list[currPos].killCount] = playerID;
list[currPos].killCount++;
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
int ZListClass::GetHumanKillCount() const
{
return list[currPos].killCount;
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
void ZListClass::AddBitenHuman(int playerID) // PlayerID of dead human to add
{
list[currPos].bitenList[list[currPos].biteCount] = playerID;
list[currPos].biteCount++;
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
int ZListClass::GetHumanBiteCount() const
{
return list[currPos].biteCount;
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
ZListClass ZListClass:: operator = (
/*in*/ const ZListClass& orig) // list to be copied
{
length = orig.length; //copy length
for (int ind = 0; ind < length; ind++) //iterate thru original
list[ind] = orig.list[ind]; //copy item
currPos = orig.currPos; //copy currpos
return *this;
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
int ZListClass::ReturnLength() const
{
return length;
}
| [
"gregorydhughes@gmail.com"
] | gregorydhughes@gmail.com |
519056537e8d4e10f2b79faf31dc7b7ab1cbc3c6 | 20a6bf6f14bd86de59149b58791ed475706c219b | /src/function.cpp | 0293e93d76ff10297fb7e8ebf43de43259ac8488 | [] | no_license | BlackMorgot/Calculator_TPRO_Project | a1dff81b1418c6a71b5d1dfe06aee24f0566dae5 | 38e3106454199eef89f6fc0efbbe8a8ac1eabab7 | refs/heads/master | 2020-03-18T06:51:55.292011 | 2018-05-22T12:46:45 | 2018-05-22T12:46:45 | 134,418,730 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,197 | cpp | #include <iostream>
#include <math.h>
#include <iomanip>
#include "function.h"
using namespace std;
bool ShowMenu()
{
short menu;
cout << "1. Addition 2. Computation 3. Multiplication 4. Division" << endl;
cout << "5. Square root extraction 6. Root of any degree 7. Exponentiation " << endl;
cin >> menu;
if (menu == 1)
Sum();
else if (menu == 2)
Sub();
else if (menu == 3)
Mul();
else if (menu == 4)
Div();
else if (menu == 5)
Sqrt();
else if (menu == 6)
Radical();
else if (menu == 7)
Power();
else if (menu == 8)
Percent();
else if (menu == 9)
return true;
else
Error();
return false;
}
void Error()
{
cout << "Invalid input, try again" << endl;
}
void Sum()
{
double a, b;
cout << "Enter the first number: ";
cin >> a;
cout << "Enter the second number: ";
cin >> b;
cout << a << " + " << b << " = " << setprecision(8) << a + b << endl;
}
void Sub()
{
double a, b;
cout << "Enter the first number: ";
cin >> a;
cout << "Enter the second number: ";
cin >> b;
cout << a << " - " << b << " = " << setprecision(8) << a - b << endl;
}
void Mul()
{
double a, b;
cout << "Enter the first number: ";
cin >> a;
cout << "Enter the second number: ";
cin >> b;
cout << a << " * " << b << " = " << setprecision(8) << a * b << endl;
}
void Div()
{
double a, b;
cout << "Enter the first number: ";
cin >> a;
cout << "Enter the second number: ";
cin >> b;
cout << a << " / " << b << " = " << setprecision(8) << a / b << endl;
}
void Sqrt()
{
double a;
cout << "Enter the number: ";
cin >> a;
cout << "sqrt(" << a << ") = " << sqrt(a) << endl;
}
void Radical()
{
double a, b;
cout << "Enter the number: ";
cin >> a;
cout << "The root of which degree one must extract? ";
cin >> b;
cout << "Root " << b << " of degree " << a << " is equal to " << pow(a, 1 / b) << endl;
}
void Power()
{
double a, b;
cout << "Enter the number ";
cin >> a;
cout << "Enter the degree: ";
cin >> b;
cout << a << "^" << b << " = " << pow(a, b) << endl;
}
void Percent() {
double a, b;
cout << "Enter the number ";
cin >> a;
cout << "Enter percent ";
cin >> b;
cout << "%" << b << " ot " << a << " = " << (a * b) / 100 << endl;
}
| [
"trolologhost3@gmail.com"
] | trolologhost3@gmail.com |
11b601e536fb65d6cb3f4aafd73f65095429fd00 | f5ef2adabb3b1fbc42a87f5b6ffda96929a42a1f | /src/chainparams.h | 3bd2397fa674a6ae5cb7be39b44eddcd6398a72c | [
"MIT"
] | permissive | SocialNodeProtocol/smn-coin | 864026b6923a5318abb279514ded6e8443b9a6b6 | 8de65eac391751415a49ec54a62f7bc2296c9327 | refs/heads/master | 2020-06-04T08:14:25.678905 | 2019-06-21T07:32:27 | 2019-06-21T07:32:27 | 191,940,754 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,006 | h | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_CHAINPARAMS_H
#define BITCOIN_CHAINPARAMS_H
#include "chainparamsbase.h"
#include "checkpoints.h"
#include "primitives/block.h"
#include "protocol.h"
#include "uint256.h"
#include "libzerocoin/Params.h"
#include <vector>
typedef unsigned char MessageStartChars[MESSAGE_START_SIZE];
struct CDNSSeedData {
std::string name, host;
CDNSSeedData(const std::string& strName, const std::string& strHost) : name(strName), host(strHost) {}
};
/**
* CChainParams defines various tweakable parameters of a given instance of the
* SocialNode system. There are three: the main network on which people trade goods
* and services, the public test network which gets reset from time to time and
* a regression test mode which is intended for private networks only. It has
* minimal difficulty to ensure that blocks can be found instantly.
*/
class CChainParams
{
public:
enum Base58Type {
PUBKEY_ADDRESS,
SCRIPT_ADDRESS,
SECRET_KEY, // BIP16
EXT_PUBLIC_KEY, // BIP32
EXT_SECRET_KEY, // BIP32
EXT_COIN_TYPE, // BIP44
MAX_BASE58_TYPES
};
const uint256& HashGenesisBlock() const { return hashGenesisBlock; }
const MessageStartChars& MessageStart() const { return pchMessageStart; }
const std::vector<unsigned char>& AlertKey() const { return vAlertPubKey; }
int GetDefaultPort() const { return nDefaultPort; }
const uint256& ProofOfWorkLimit() const { return bnProofOfWorkLimit; }
int SubsidyHalvingInterval() const { return nSubsidyHalvingInterval; }
/** Used to check majorities for block version upgrade */
int EnforceBlockUpgradeMajority() const { return nEnforceBlockUpgradeMajority; }
int RejectBlockOutdatedMajority() const { return nRejectBlockOutdatedMajority; }
int ToCheckBlockUpgradeMajority() const { return nToCheckBlockUpgradeMajority; }
int MaxReorganizationDepth() const { return nMaxReorganizationDepth; }
/** Used if GenerateBitcoins is called with a negative number of threads */
int DefaultMinerThreads() const { return nMinerThreads; }
const CBlock& GenesisBlock() const { return genesis; }
bool RequireRPCPassword() const { return fRequireRPCPassword; }
/** Make miner wait to have peers to avoid wasting work */
bool MiningRequiresPeers() const { return fMiningRequiresPeers; }
/** Headers first syncing is disabled */
bool HeadersFirstSyncingActive() const { return fHeadersFirstSyncingActive; };
/** Default value for -checkmempool and -checkblockindex argument */
bool DefaultConsistencyChecks() const { return fDefaultConsistencyChecks; }
/** Allow mining of a min-difficulty block */
bool AllowMinDifficultyBlocks() const { return fAllowMinDifficultyBlocks; }
/** Skip proof-of-work check: allow mining of any difficulty block */
bool SkipProofOfWorkCheck() const { return fSkipProofOfWorkCheck; }
/** Make standard checks */
bool RequireStandard() const { return fRequireStandard; }
int64_t TargetTimespan() const { return nTargetTimespan; }
int64_t TargetSpacing() const { return nTargetSpacing; }
int64_t TargetSpacingSlowLaunch() const { return nTargetSpacingSlowLaunch; }
int64_t Interval() const { return nTargetTimespan / nTargetSpacing; }
int COINBASE_MATURITY() const { return nMaturity; }
CAmount MaxMoneyOut() const { return nMaxMoneyOut; }
/** The masternode count that we will allow the see-saw reward payments to be off by */
int MasternodeCountDrift() const { return nMasternodeCountDrift; }
/** Make miner stop after a block is found. In RPC, don't return until nGenProcLimit blocks are generated */
bool MineBlocksOnDemand() const { return fMineBlocksOnDemand; }
/** In the future use NetworkIDString() for RPC fields */
bool TestnetToBeDeprecatedFieldRPC() const { return fTestnetToBeDeprecatedFieldRPC; }
/** Return the BIP70 network string (main, test or regtest) */
std::string NetworkIDString() const { return strNetworkID; }
const std::vector<CDNSSeedData>& DNSSeeds() const { return vSeeds; }
const std::vector<unsigned char>& Base58Prefix(Base58Type type) const { return base58Prefixes[type]; }
const std::vector<CAddress>& FixedSeeds() const { return vFixedSeeds; }
virtual const Checkpoints::CCheckpointData& Checkpoints() const = 0;
int PoolMaxTransactions() const { return nPoolMaxTransactions; }
std::string SporkKey() const { return strSporkKey; }
std::string ObfuscationPoolDummyAddress() const { return strObfuscationPoolDummyAddress; }
int64_t StartMasternodePayments() const { return nStartMasternodePayments; }
int64_t Budget_Fee_Confirmations() const { return nBudget_Fee_Confirmations; }
CBaseChainParams::Network NetworkID() const { return networkID; }
/** Zerocoin **/
std::string Zerocoin_Modulus() const { return zerocoinModulus; }
libzerocoin::ZerocoinParams* Zerocoin_Params() const;
int Zerocoin_MaxSpendsPerTransaction() const { return nMaxZerocoinSpendsPerTransaction; }
CAmount Zerocoin_MintFee() const { return nMinZerocoinMintFee; }
int Zerocoin_MintRequiredConfirmations() const { return nMintRequiredConfirmations; }
int Zerocoin_RequiredAccumulation() const { return nRequiredAccumulation; }
int Zerocoin_DefaultSpendSecurity() const { return nDefaultSecurityLevel; }
int Zerocoin_HeaderVersion() const { return nZerocoinHeaderVersion; }
/** Height or Time Based Activations **/
int ModifierUpgradeBlock() const { return nModifierUpdateBlock; }
int LAST_POW_BLOCK() const { return nLastPOWBlock; }
int Zerocoin_StartHeight() const { return nZerocoinStartHeight; }
int Zerocoin_Block_EnforceSerialRange() const { return nBlockEnforceSerialRange; }
int Zerocoin_Block_RecalculateAccumulators() const { return nBlockRecalculateAccumulators; }
int Zerocoin_Block_FirstFraudulent() const { return nBlockFirstFraudulent; }
int Zerocoin_Block_LastGoodCheckpoint() const { return nBlockLastGoodCheckpoint; }
int Zerocoin_StartTime() const { return nZerocoinStartTime; }
int Zerocoin_AccumulatorStartHeight() const { return nAccumulatorStartHeight; }
protected:
CChainParams() {}
uint256 hashGenesisBlock;
MessageStartChars pchMessageStart;
//! Raw pub key bytes for the broadcast alert signing key.
std::vector<unsigned char> vAlertPubKey;
int nDefaultPort;
uint256 bnProofOfWorkLimit;
int nMaxReorganizationDepth;
int nSubsidyHalvingInterval;
int nEnforceBlockUpgradeMajority;
int nRejectBlockOutdatedMajority;
int nToCheckBlockUpgradeMajority;
int64_t nTargetTimespan;
int64_t nTargetSpacing;
int64_t nTargetSpacingSlowLaunch;
int nLastPOWBlock;
int nMasternodeCountDrift;
int nMaturity;
int nModifierUpdateBlock;
CAmount nMaxMoneyOut;
int nMinerThreads;
std::vector<CDNSSeedData> vSeeds;
std::vector<unsigned char> base58Prefixes[MAX_BASE58_TYPES];
CBaseChainParams::Network networkID;
std::string strNetworkID;
CBlock genesis;
std::vector<CAddress> vFixedSeeds;
bool fRequireRPCPassword;
bool fMiningRequiresPeers;
bool fAllowMinDifficultyBlocks;
bool fDefaultConsistencyChecks;
bool fRequireStandard;
bool fMineBlocksOnDemand;
bool fSkipProofOfWorkCheck;
bool fTestnetToBeDeprecatedFieldRPC;
bool fHeadersFirstSyncingActive;
int nPoolMaxTransactions;
std::string strSporkKey;
std::string strObfuscationPoolDummyAddress;
int64_t nStartMasternodePayments;
std::string zerocoinModulus;
int nMaxZerocoinSpendsPerTransaction;
CAmount nMinZerocoinMintFee;
int nMintRequiredConfirmations;
int nRequiredAccumulation;
int nDefaultSecurityLevel;
int nZerocoinHeaderVersion;
int64_t nBudget_Fee_Confirmations;
int nZerocoinStartHeight;
int nBlockEnforceSerialRange;
int nBlockRecalculateAccumulators;
int nBlockFirstFraudulent;
int nBlockLastGoodCheckpoint;
int nZerocoinStartTime;
int nAccumulatorStartHeight;
};
/**
* Modifiable parameters interface is used by test cases to adapt the parameters in order
* to test specific features more easily. Test cases should always restore the previous
* values after finalization.
*/
class CModifiableParams
{
public:
//! Published setters to allow changing values in unit test cases
virtual void setSubsidyHalvingInterval(int anSubsidyHalvingInterval) = 0;
virtual void setEnforceBlockUpgradeMajority(int anEnforceBlockUpgradeMajority) = 0;
virtual void setRejectBlockOutdatedMajority(int anRejectBlockOutdatedMajority) = 0;
virtual void setToCheckBlockUpgradeMajority(int anToCheckBlockUpgradeMajority) = 0;
virtual void setDefaultConsistencyChecks(bool aDefaultConsistencyChecks) = 0;
virtual void setAllowMinDifficultyBlocks(bool aAllowMinDifficultyBlocks) = 0;
virtual void setSkipProofOfWorkCheck(bool aSkipProofOfWorkCheck) = 0;
};
/**
* Return the currently selected parameters. This won't change after app startup
* outside of the unit tests.
*/
const CChainParams& Params();
/** Return parameters for the given network. */
CChainParams& Params(CBaseChainParams::Network network);
/** Get modifiable network parameters (UNITTEST only) */
CModifiableParams* ModifiableParams();
/** Sets the params returned by Params() to those for the given network. */
void SelectParams(CBaseChainParams::Network network);
/**
* Looks for -regtest or -testnet and then calls SelectParams as appropriate.
* Returns false if an invalid combination is given.
*/
bool SelectParamsFromCommandLine();
#endif // BITCOIN_CHAINPARAMS_H
| [
"nero@gmail.com"
] | nero@gmail.com |
cf025e88647e16fdc89fe43acaf1a811dfff8768 | ab41c2c63e554350ca5b93e41d7321ca127d8d3a | /glm/gtx/matrix_access.hpp | ba03ba8c11e1ca21459874792122a44076671ab5 | [] | no_license | burner/e3rt | 2dc3bac2b7face3b1606ee1430e7ecfd4523bf2e | 775470cc9b912a8c1199dd1069d7e7d4fc997a52 | refs/heads/master | 2021-01-11T08:08:00.665300 | 2010-04-26T11:42:42 | 2010-04-26T11:42:42 | 337,021 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,607 | hpp | ///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2009 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2005-12-27
// Updated : 2006-12-06
// Licence : This source is under MIT License
// File : glm/gtx/matrix_access.hpp
///////////////////////////////////////////////////////////////////////////////////////////////////
// Dependency:
// - GLM core
///////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef glm_gtx_matrix_access
#define glm_gtx_matrix_access
// Dependency:
#include "../glm.hpp"
namespace glm{
namespace gtx{
//! GLM_GTX_matrix_access extension: Set a column or a row of a matrix
namespace matrix_access
{
//! Set a specific row to a matrix.
//! From GLM_GTX_matrix_access extension.
template <typename genType>
genType row(
const genType& m,
int index,
typename genType::row_type const & x);
//! Set a specific column to a matrix.
//! From GLM_GTX_matrix_access extension.
template <typename genType>
genType column(
const genType& m,
int index,
typename genType::col_type const & x);
}//namespace matrix_access
}//namespace gtx
}//namespace glm
#define GLM_GTX_matrix_access namespace gtx::matrix_access
#ifndef GLM_GTX_GLOBAL
namespace glm {using GLM_GTX_matrix_access;}
#endif//GLM_GTX_GLOBAL
#include "matrix_access.inl"
#endif//glm_gtx_matrix_access
| [
"realburner@gmx.de"
] | realburner@gmx.de |
a267e9def1b08a8df358256d35da7461a36b131d | a2d3c8acc1ce84badab107ae9330b350b8af23a6 | /uploadwindow.cpp | 29de9de9810df0ab4b89db3799fbcc2c9825d87f | [] | no_license | VictoriaOtm/Accord | 85ac30bc8b03de821895ddbf799b3204bb055819 | 045029508faba002ebe374fdbdb8148a5ce5066f | refs/heads/master | 2021-09-02T21:47:03.632883 | 2017-12-09T11:07:50 | 2017-12-09T11:07:50 | 105,677,669 | 0 | 4 | null | 2017-12-21T14:14:01 | 2017-10-03T16:53:53 | C++ | UTF-8 | C++ | false | false | 61 | cpp | #include "uploadwindow.h"
UploadWindow::UploadWindow()
{
}
| [
"ppro100takk@mail.ru"
] | ppro100takk@mail.ru |
183be2c1f01f6ea7988b85c67587f96591b4a103 | 82416b3d30dc6812c00679c307736436c8d6eb4c | /module_00/ex01/PhoneBook.hpp | ce0367f521656b50c5b85f197318c95266a0879b | [] | no_license | Cardiox12/piscine_cpp | 0bfd93f89fa8011bb79299ec1349119b7f24be8a | 3f39b4b7496940d2da1e912d1a5203fb9b336c9a | refs/heads/master | 2023-06-01T20:59:55.467886 | 2021-06-18T14:34:12 | 2021-06-18T14:34:12 | 302,767,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,306 | hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* PhoneBook.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bbellavi <bbellavi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/10/10 03:09:57 by bbellavi #+# #+# */
/* Updated: 2020/11/01 02:29:46 by bbellavi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef _PHONE_BOOK_HPP
# define _PHONE_BOOK_HPP
# include <array>
# include <iomanip>
# include "Contact.hpp"
# define MAX_CONTACT 8
# define MAX_FIELD_SIZE 10
# define NB_COLUMNS 4
# define COL_SEP '|'
# define _Contact_to_array(index, contact) ( \
std::array<std::string, 4>{ \
index, \
contact.first_name, \
contact.last_name, \
contact.nickname \
} \
)
class PhoneBook
{
public:
PhoneBook() : _index(0) {};
void
addContact(Contact contact);
void
search();
void
searchContact(int index);
private:
std::array<std::string, NB_COLUMNS> _header = {
"Index", "Name", "Last Name", "Pseudo"
};
std::array<Contact, MAX_CONTACT> contacts;
int _index;
void
writeColumns(std::array<std::string, NB_COLUMNS> columns){
for (int index = 0 ; index < NB_COLUMNS ; index++) {
std::string column = columns[index];
if (column.size() > MAX_FIELD_SIZE) {
column = column.substr(0, MAX_FIELD_SIZE - 1);
column.append(".");
}
std::cout << std::setw(MAX_FIELD_SIZE) << column << '|';
}
std::cout << std::endl;
}
};
#endif | [
"cardiox1212@hotmail.fr"
] | cardiox1212@hotmail.fr |
f2ec136968fe04925b42028a1a99b69dfacde834 | 6cd1bf6544347c85cabaf672a5ed2dad94a18b63 | /ARC/ARC119/A.cpp | b4d4ce8f952e62217cf1e635be065c2d3d3b0a4c | [] | no_license | Shell-Wataru/AtCoder | 0a35f12478ac0ab54711171f653ce7bed5189c92 | 0ba32250f4e4a44459a4cd231ff47a5f46c4fe87 | refs/heads/master | 2023-01-10T04:21:25.199532 | 2023-01-09T04:16:30 | 2023-01-09T04:16:30 | 89,144,933 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <deque>
#include <queue>
#include <set>
#include <iomanip>
#include <cmath>
#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
using ll = long long;
namespace mp = boost::multiprecision;
int main()
{
ll N;
cin >> N;
ll ans = numeric_limits<ll>::max();
for(int i = 0;i <= 60;i++){
ll c = N % (1ll<<i);
ll a = (N-c )/(1ll<<i);
ans = min(ans,a+i+c);
}
cout << ans << endl;
return 0;
} | [
"world.excite.8.enjoy@gmail.com"
] | world.excite.8.enjoy@gmail.com |
13609e1963fa889420c17fa3a033f2d11b31c1ac | 303e592c312459bf9eb3ce231b1357c4de91124b | /aoj/1312/1312.cpp | 2823ae07cf97d4d5dc01418c92c12e37193f1e51 | [] | no_license | kohyatoh/contests | 866c60a1687f8a59d440da3356c6117f9596e8ce | b3dffeaf15564d57aec5c306f5f84bd448bc791f | refs/heads/master | 2021-01-17T15:06:23.216232 | 2016-07-18T14:06:05 | 2016-07-18T14:06:05 | 2,369,261 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,953 | cpp | #include <stdio.h>
#include <string.h>
#define rep(i, n) for(int i=0; i<(int)(n); i++)
#define P (3)
int b64(char ch) {
if('A'<=ch && ch<='Z') return ch-'A';
if('a'<=ch && ch<='z') return ch-'a'+26;
if('0'<=ch && ch<='9') return ch-'0'+52;
return ch=='+' ? 62 : 63;
}
int w, h, p, f[1024][1024], m[128][128], tmp[128][128];
char tf[1000][200], tm[100][20];
typedef unsigned long long hash;
hash hori[1024][1024], hs[8];
int main() {
for(;;) {
scanf("%d%d%d", &w, &h, &p);
if(w==0 && h==0 && p==0) return 0;
rep(i, h) scanf(" %s", tf[i]);
rep(i, p) scanf(" %s", tm[i]);
memset(f, 0, sizeof(f));
rep(i, h) for(int j=0; tf[i][j]; j++) {
const int x = b64(tf[i][j]);
rep(k, 6) if(x&(1<<k)) f[i][j*6+5-k] = 1;
}
memset(m, 0, sizeof(m));
rep(i, p) for(int j=0; tm[i][j]; j++) {
const int x = b64(tm[i][j]);
rep(k, 6) if(x&(1<<k)) m[i][j*6+5-k] = 1;
}
rep(d, 8) {
memcpy(tmp, m, sizeof(m));
rep(i, p) rep(j, p) m[p-1-j][i] = tmp[i][j];
if(d==4) {
memcpy(tmp, m, sizeof(m));
rep(i, p) rep(j, p) m[i][p-1-j] = tmp[i][j];
}
hs[d] = 0;
rep(i, p) rep(j, p) hs[d] = hs[d]*P+m[i][j];
}
hash t = 1;
rep(i, p) t *= P;
rep(i, h) {
hash k = 0;
rep(j, w) {
k = k*P+f[i][j];
if(j>=p) k -= t*f[i][j-p];
hori[i][j] = k;
}
}
hash tt = 1;
rep(i, p) tt *= t;
int ans = 0;
for(int i=p-1; i<w; i++) {
hash k = 0;
rep(j, h) {
k = k*t+hori[j][i];
if(j>=p) k -= tt*hori[j-p][i];
if(j>=p-1) rep(z, 8) if(hs[z]==k) { ans++; break; }
}
}
printf("%d\n", ans);
}
}
| [
"kohyatoh@yahoo.co.jp"
] | kohyatoh@yahoo.co.jp |
c95d202bc02cdb18f516e8c51769a3573f175f17 | c4017216b4c773c181bdec4bc867abc6a21db741 | /google_apis/gaia/oauth2_access_token_manager.h | 42710653ee8f1e7b4306cd644a7eef87170b9c1d | [
"BSD-3-Clause"
] | permissive | Saarule/chromium | 7c73e22b5b2b2f2779837430a883a2e05e330c91 | 5d4e6a8d4840dce682877d4bac28459f0363db8f | refs/heads/master | 2023-02-23T10:22:51.093908 | 2019-06-24T15:12:28 | 2019-06-24T15:12:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,994 | h | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_MANAGER_H_
#define GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_MANAGER_H_
#include "base/sequence_checker.h"
#include "google_apis/gaia/core_account_id.h"
#include "google_apis/gaia/oauth2_access_token_consumer.h"
// TODO(https://crbug.com/967598): Remove this once OAuth2AccessTokenManager's
// separated from OAuth2TokenService.
#include "google_apis/gaia/oauth2_token_service.h"
class OAuth2AccessTokenFetcher;
class OAuth2TokenServiceDelegate;
// Class that manages requests for OAuth2 access tokens.
class OAuth2AccessTokenManager {
public:
// TODO(https://crbug.com/967598): Remove |token_service| parameter once
// OAuth2AccessTokenManager fully manages access tokens independently of
// OAuth2TokenService and replace |delegate| with
// OAuth2AccessTokenManagerDelegate.
explicit OAuth2AccessTokenManager(OAuth2TokenService* token_service,
OAuth2TokenServiceDelegate* delegate);
virtual ~OAuth2AccessTokenManager();
OAuth2TokenServiceDelegate* GetDelegate();
const OAuth2TokenServiceDelegate* GetDelegate() const;
// Add or remove observers of this token manager.
void AddDiagnosticsObserver(AccessTokenDiagnosticsObserver* observer);
void RemoveDiagnosticsObserver(AccessTokenDiagnosticsObserver* observer);
// Checks in the cache for a valid access token for a specified |account_id|
// and |scopes|, and if not found starts a request for an OAuth2 access token
// using the OAuth2 refresh token maintained by this instance for that
// |account_id|. The caller owns the returned Request.
// |scopes| is the set of scopes to get an access token for, |consumer| is
// the object that will be called back with results if the returned request
// is not deleted.
std::unique_ptr<OAuth2TokenService::Request> StartRequest(
const CoreAccountId& account_id,
const OAuth2TokenService::ScopeSet& scopes,
OAuth2TokenService::Consumer* consumer);
// This method does the same as |StartRequest| except it uses |client_id| and
// |client_secret| to identify OAuth client app instead of using
// Chrome's default values.
std::unique_ptr<OAuth2TokenService::Request> StartRequestForClient(
const CoreAccountId& account_id,
const std::string& client_id,
const std::string& client_secret,
const OAuth2TokenService::ScopeSet& scopes,
OAuth2TokenService::Consumer* consumer);
// This method does the same as |StartRequest| except it uses the
// URLLoaderfactory given by |url_loader_factory| instead of using the one
// returned by |GetURLLoaderFactory| implemented by the delegate.
std::unique_ptr<OAuth2TokenService::Request> StartRequestWithContext(
const CoreAccountId& account_id,
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
const OAuth2TokenService::ScopeSet& scopes,
OAuth2TokenService::Consumer* consumer);
// Fetches an OAuth token for the specified client/scopes.
void FetchOAuth2Token(
OAuth2TokenService::RequestImpl* request,
const CoreAccountId& account_id,
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
const std::string& client_id,
const std::string& client_secret,
const OAuth2TokenService::ScopeSet& scopes);
// Add a new entry to the cache.
void RegisterTokenResponse(
const std::string& client_id,
const CoreAccountId& account_id,
const OAuth2TokenService::ScopeSet& scopes,
const OAuth2AccessTokenConsumer::TokenResponse& token_response);
// Returns a currently valid OAuth2 access token for the given set of scopes,
// or NULL if none have been cached. Note the user of this method should
// ensure no entry with the same |client_scopes| is added before the usage of
// the returned entry is done.
const OAuth2AccessTokenConsumer::TokenResponse* GetCachedTokenResponse(
const OAuth2TokenService::RequestParameters& client_scopes);
// Clears the internal token cache.
void ClearCache();
// Clears all of the tokens belonging to |account_id| from the internal token
// cache. It does not matter what other parameters, like |client_id| were
// used to request the tokens.
void ClearCacheForAccount(const CoreAccountId& account_id);
// Cancels all requests that are currently in progress.
void CancelAllRequests();
// Cancels all requests related to a given |account_id|.
void CancelRequestsForAccount(const CoreAccountId& account_id);
void set_max_authorization_token_fetch_retries_for_testing(int max_retries);
// Returns the current number of pending fetchers matching given params.
size_t GetNumPendingRequestsForTesting(
const std::string& client_id,
const CoreAccountId& account_id,
const OAuth2TokenService::ScopeSet& scopes) const;
private:
// TODO(https://crbug.com/967598): Remove this once |token_cache_| management
// is moved to OAuth2AccessTokenManager.
friend class OAuth2TokenService;
class Fetcher;
friend class Fetcher;
OAuth2TokenService::TokenCache& token_cache() { return token_cache_; }
// Create an access token fetcher for the given account id.
std::unique_ptr<OAuth2AccessTokenFetcher> CreateAccessTokenFetcher(
const CoreAccountId& account_id,
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
OAuth2AccessTokenConsumer* consumer);
// This method does the same as |StartRequestWithContext| except it
// uses |client_id| and |client_secret| to identify OAuth
// client app instead of using Chrome's default values.
std::unique_ptr<OAuth2TokenService::Request> StartRequestForClientWithContext(
const CoreAccountId& account_id,
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
const std::string& client_id,
const std::string& client_secret,
const OAuth2TokenService::ScopeSet& scopes,
OAuth2TokenService::Consumer* consumer);
// Posts a task to fire the Consumer callback with the cached token response.
void InformConsumerWithCachedTokenResponse(
const OAuth2AccessTokenConsumer::TokenResponse* token_response,
OAuth2TokenService::RequestImpl* request,
const OAuth2TokenService::RequestParameters& client_scopes);
// Removes an access token for the given set of scopes from the cache.
// Returns true if the entry was removed, otherwise false.
bool RemoveCachedTokenResponse(
const OAuth2TokenService::RequestParameters& client_scopes,
const std::string& token_to_remove);
// Called when |fetcher| finishes fetching.
void OnFetchComplete(Fetcher* fetcher);
// Called when a number of fetchers need to be canceled.
void CancelFetchers(std::vector<Fetcher*> fetchers_to_cancel);
// The cache of currently valid tokens.
OAuth2TokenService::TokenCache token_cache_;
// List of observers to notify when access token status changes.
base::ObserverList<AccessTokenDiagnosticsObserver, true>::Unchecked
diagnostics_observer_list_;
// TODO(https://crbug.com/967598): Remove this once OAuth2AccessTokenManager
// fully manages access tokens independently of OAuth2TokenService.
OAuth2TokenService* token_service_;
// TODO(https://crbug.com/967598): Replace it with
// OAuth2AccessTokenManagerDelegate.
OAuth2TokenServiceDelegate* delegate_;
// A map from fetch parameters to a fetcher that is fetching an OAuth2 access
// token using these parameters.
std::map<OAuth2TokenService::RequestParameters, std::unique_ptr<Fetcher>>
pending_fetchers_;
// Maximum number of retries in fetching an OAuth2 access token.
static int max_fetch_retry_num_;
SEQUENCE_CHECKER(sequence_checker_);
DISALLOW_COPY_AND_ASSIGN(OAuth2AccessTokenManager);
};
#endif // GOOGLE_APIS_GAIA_OAUTH2_ACCESS_TOKEN_MANAGER_H_
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
da4e611ac13077c07b1458fbb42caf665d1773bc | 824d120205cc9ff56eeadd2b3ca8809b1546ee6f | /src/aes.cpp | 87186f102e783f8a66860d7439b543940e4a7134 | [] | no_license | 0000duck/server_for_360 | 3727dd1a83190f4fc1d87955d94cb62c1fd41308 | cae54e8d1fd4272840f2b350e7a1f17faca957cc | refs/heads/main | 2023-07-25T18:26:22.622973 | 2021-09-07T08:29:19 | 2021-09-07T08:29:19 | 461,689,352 | 1 | 0 | null | 2022-02-21T03:18:16 | 2022-02-21T03:18:15 | null | UTF-8 | C++ | false | false | 7,385 | cpp | #include "aes.h"
AES::AES(unsigned char* key)
{
unsigned char sBox[] =
{ /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76, /*0*/
0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0, /*1*/
0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15, /*2*/
0x04,0xc7,0x23,0xc3,0x18,0x96,0x05,0x9a,0x07,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75, /*3*/
0x09,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84, /*4*/
0x53,0xd1,0x00,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf, /*5*/
0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x02,0x7f,0x50,0x3c,0x9f,0xa8, /*6*/
0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2, /*7*/
0xcd,0x0c,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73, /*8*/
0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0x0b,0xdb, /*9*/
0xe0,0x32,0x3a,0x0a,0x49,0x06,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79, /*a*/
0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x08, /*b*/
0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a, /*c*/
0x70,0x3e,0xb5,0x66,0x48,0x03,0xf6,0x0e,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e, /*d*/
0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf, /*e*/
0x8c,0xa1,0x89,0x0d,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0x0f,0xb0,0x54,0xbb,0x16 /*f*/
};
unsigned char invsBox[256] =
{ /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
0x52,0x09,0x6a,0xd5,0x30,0x36,0xa5,0x38,0xbf,0x40,0xa3,0x9e,0x81,0xf3,0xd7,0xfb, /*0*/
0x7c,0xe3,0x39,0x82,0x9b,0x2f,0xff,0x87,0x34,0x8e,0x43,0x44,0xc4,0xde,0xe9,0xcb, /*1*/
0x54,0x7b,0x94,0x32,0xa6,0xc2,0x23,0x3d,0xee,0x4c,0x95,0x0b,0x42,0xfa,0xc3,0x4e, /*2*/
0x08,0x2e,0xa1,0x66,0x28,0xd9,0x24,0xb2,0x76,0x5b,0xa2,0x49,0x6d,0x8b,0xd1,0x25, /*3*/
0x72,0xf8,0xf6,0x64,0x86,0x68,0x98,0x16,0xd4,0xa4,0x5c,0xcc,0x5d,0x65,0xb6,0x92, /*4*/
0x6c,0x70,0x48,0x50,0xfd,0xed,0xb9,0xda,0x5e,0x15,0x46,0x57,0xa7,0x8d,0x9d,0x84, /*5*/
0x90,0xd8,0xab,0x00,0x8c,0xbc,0xd3,0x0a,0xf7,0xe4,0x58,0x05,0xb8,0xb3,0x45,0x06, /*6*/
0xd0,0x2c,0x1e,0x8f,0xca,0x3f,0x0f,0x02,0xc1,0xaf,0xbd,0x03,0x01,0x13,0x8a,0x6b, /*7*/
0x3a,0x91,0x11,0x41,0x4f,0x67,0xdc,0xea,0x97,0xf2,0xcf,0xce,0xf0,0xb4,0xe6,0x73, /*8*/
0x96,0xac,0x74,0x22,0xe7,0xad,0x35,0x85,0xe2,0xf9,0x37,0xe8,0x1c,0x75,0xdf,0x6e, /*9*/
0x47,0xf1,0x1a,0x71,0x1d,0x29,0xc5,0x89,0x6f,0xb7,0x62,0x0e,0xaa,0x18,0xbe,0x1b, /*a*/
0xfc,0x56,0x3e,0x4b,0xc6,0xd2,0x79,0x20,0x9a,0xdb,0xc0,0xfe,0x78,0xcd,0x5a,0xf4, /*b*/
0x1f,0xdd,0xa8,0x33,0x88,0x07,0xc7,0x31,0xb1,0x12,0x10,0x59,0x27,0x80,0xec,0x5f, /*c*/
0x60,0x51,0x7f,0xa9,0x19,0xb5,0x4a,0x0d,0x2d,0xe5,0x7a,0x9f,0x93,0xc9,0x9c,0xef, /*d*/
0xa0,0xe0,0x3b,0x4d,0xae,0x2a,0xf5,0xb0,0xc8,0xeb,0xbb,0x3c,0x83,0x53,0x99,0x61, /*e*/
0x17,0x2b,0x04,0x7e,0xba,0x77,0xd6,0x26,0xe1,0x69,0x14,0x63,0x55,0x21,0x0c,0x7d /*f*/
};
memcpy(Sbox, sBox, 256);
memcpy(InvSbox, invsBox, 256);
KeyExpansion(key, w);
}
AES::~AES()
{
}
unsigned char* AES::Cipher(unsigned char* input)
{
unsigned char state[4][4];
int i, r, c;
for (r = 0; r < 4; r++)
{
for (c = 0; c < 4;c++)
{
state[r][c] = input[c * 4 + r];
}
}
AddRoundKey(state, w[0]);
for (i = 1; i <= 10; i++)
{
SubBytes(state);
ShiftRows(state);
if (i != 10)MixColumns(state);
AddRoundKey(state, w[i]);
}
for (r = 0; r < 4; r++)
{
for (c = 0; c < 4;c++)
{
input[c * 4 + r] = state[r][c];
}
}
return input;
}
unsigned char* AES::InvCipher(unsigned char* input)
{
unsigned char state[4][4];
int i, r, c;
for (r = 0; r < 4; r++)
{
for (c = 0; c < 4;c++)
{
state[r][c] = input[c * 4 + r];
}
}
AddRoundKey(state, w[10]);
for (i = 9; i >= 0; i--)
{
InvShiftRows(state);
InvSubBytes(state);
AddRoundKey(state, w[i]);
if (i)
{
InvMixColumns(state);
}
}
for (r = 0; r < 4; r++)
{
for (c = 0; c < 4;c++)
{
input[c * 4 + r] = state[r][c];
}
}
return input;
}
void* AES::Cipher(void* input, int length)
{
unsigned char* in = (unsigned char*)input;
int i;
if (!length) // 如果是0则当做字符串处理
{
while (*(in + length++));
in = (unsigned char*)input;
}
for (i = 0; i < length; i += 16)
{
Cipher(in + i);
}
return input;
}
void* AES::InvCipher(void* input, int length)
{
unsigned char* in = (unsigned char*)input;
int i;
for (i = 0; i < length; i += 16)
{
InvCipher(in + i);
}
return input;
}
void AES::KeyExpansion(unsigned char* key, unsigned char w[][4][4])
{
int i, j, r, c;
unsigned char rc[] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36 };
for (r = 0; r < 4; r++)
{
for (c = 0; c < 4; c++)
{
w[0][r][c] = key[r + c * 4];
}
}
for (i = 1; i <= 10; i++)
{
for (j = 0; j < 4; j++)
{
unsigned char t[4];
for (r = 0; r < 4; r++)
{
t[r] = j ? w[i][r][j - 1] : w[i - 1][r][3];
}
if (j == 0)
{
unsigned char temp = t[0];
for (r = 0; r < 3; r++)
{
t[r] = Sbox[t[(r + 1) % 4]];
}
t[3] = Sbox[temp];
t[0] ^= rc[i - 1];
}
for (r = 0; r < 4; r++)
{
w[i][r][j] = w[i - 1][r][j] ^ t[r];
}
}
}
}
unsigned char AES::FFmul(unsigned char a, unsigned char b)
{
unsigned char bw[4];
unsigned char res = 0;
int i;
bw[0] = b;
for (i = 1; i < 4; i++)
{
bw[i] = bw[i - 1] << 1;
if (bw[i - 1] & 0x80)
{
bw[i] ^= 0x1b;
}
}
for (i = 0; i < 4; i++)
{
if ((a >> i) & 0x01)
{
res ^= bw[i];
}
}
return res;
}
void AES::SubBytes(unsigned char state[][4])
{
int r, c;
for (r = 0; r < 4; r++)
{
for (c = 0; c < 4; c++)
{
state[r][c] = Sbox[state[r][c]];
}
}
}
void AES::ShiftRows(unsigned char state[][4])
{
unsigned char t[4];
int r, c;
for (r = 1; r < 4; r++)
{
for (c = 0; c < 4; c++)
{
t[c] = state[r][(c + r) % 4];
}
for (c = 0; c < 4; c++)
{
state[r][c] = t[c];
}
}
}
void AES::MixColumns(unsigned char state[][4])
{
unsigned char t[4];
int r, c;
for (c = 0; c < 4; c++)
{
for (r = 0; r < 4; r++)
{
t[r] = state[r][c];
}
for (r = 0; r < 4; r++)
{
state[r][c] = FFmul(0x02, t[r])
^ FFmul(0x03, t[(r + 1) % 4])
^ FFmul(0x01, t[(r + 2) % 4])
^ FFmul(0x01, t[(r + 3) % 4]);
}
}
}
void AES::AddRoundKey(unsigned char state[][4], unsigned char k[][4])
{
int r, c;
for (c = 0; c < 4; c++)
{
for (r = 0; r < 4; r++)
{
state[r][c] ^= k[r][c];
}
}
}
void AES::InvSubBytes(unsigned char state[][4])
{
int r, c;
for (r = 0; r < 4; r++)
{
for (c = 0; c < 4; c++)
{
state[r][c] = InvSbox[state[r][c]];
}
}
}
void AES::InvShiftRows(unsigned char state[][4])
{
unsigned char t[4];
int r, c;
for (r = 1; r < 4; r++)
{
for (c = 0; c < 4; c++)
{
t[c] = state[r][(c - r + 4) % 4];
}
for (c = 0; c < 4; c++)
{
state[r][c] = t[c];
}
}
}
void AES::InvMixColumns(unsigned char state[][4])
{
unsigned char t[4];
int r, c;
for (c = 0; c < 4; c++)
{
for (r = 0; r < 4; r++)
{
t[r] = state[r][c];
}
for (r = 0; r < 4; r++)
{
state[r][c] = FFmul(0x0e, t[r])
^ FFmul(0x0b, t[(r + 1) % 4])
^ FFmul(0x0d, t[(r + 2) % 4])
^ FFmul(0x09, t[(r + 3) % 4]);
}
}
} | [
"warmth147@gamil.com"
] | warmth147@gamil.com |
aa7d232b06ec91de0fa16597f9c354adbd320bd8 | 8961968d43b4e387e1e50306f253bc961800d7b1 | /src/libgbemu/include/ppu.h | 2aadee01eff7fe79044ed4f44254a0bd23e33927 | [
"ISC"
] | permissive | ruthearagard/gbemu | 6e20631c4f2b45760665994343f0c94ff4e16f93 | 9146f683e8dcc40446d169d7e713adf879c180dc | refs/heads/master | 2023-01-01T00:13:44.632619 | 2020-10-17T16:15:07 | 2020-10-17T16:15:07 | 288,534,398 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,349 | h | // Copyright 2020 Michael Rodriguez
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS.IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#pragma once
#include <array>
#include <cstdint>
#include <vector>
namespace GameBoy
{
class SystemBus;
/// @brief The maximum length of a line.
constexpr auto SCREEN_X{ 160 };
/// @brief The maximum height of the screen.
constexpr auto SCREEN_Y{ 144 };
/// @brief Alias for the screen data.
using ScreenData = std::array<uint32_t, SCREEN_X * SCREEN_Y>;
/// @brief Defines the picture processing unit (PPU).
class PPU final
{
public:
/// @brief Initializes the picture processing unit (PPU).
/// @param bus The system bus instance.
explicit PPU(SystemBus& bus) noexcept;
/// @brief Returns the value of the LCDC register.
/// @return The LCDC register.
auto get_LCDC() noexcept -> uint8_t;
/// @brief Updates LCDC and changes the state of the scanline renderer.
/// @param data The new LCDC value.
auto set_LCDC(const uint8_t data) noexcept -> void;
/// @brief Resets the PPU to the startup state.
auto reset() noexcept -> void;
/// @brief Advances the PPU by 1 m-cycle.
auto step() noexcept -> void;
/// @brief Scroll Y
//
// Specifies the Y position in the 256x256 pixels BG map (32x32 tiles)
// which is to be displayed on the LCD.
uint8_t SCY;
/// @brief Scroll X
//
// Specifies the X position in the 256x256 pixels BG map (32x32 tiles)
// which is to be displayed on the LCD.
uint8_t SCX;
/// @brief Current vertical line (R)
///
/// Indicates the vertical line to which the present data is transferred
/// to the LCD. It can take on any value between 0 and 153. Values
/// between 144 and 153 indicate the V-Blank period.
uint8_t LY;
/// @brief Defines assignments of gray shades to color numbers.
///
/// The four possible gray shades are:
/// 0 - White
/// 1 - Light gray
/// 2 - Dark gray
/// 3 - Black
union Palette
{
struct
{
// Bit 1-0: Shade for Color Number 0
unsigned int c0 : 2;
// Bit 3-2: Shade for Color Number 1
unsigned int c1 : 2;
// Bit 5-4: Shade for Color Number 2
unsigned int c2 : 2;
// Bit 7-6: Shade for Color Number 3
unsigned int c3 : 2;
};
uint8_t byte;
};
/// @brief LCDC Status
union
{
struct
{
/// @brief Bit 1-0: Mode Flag
//
// 0: In H-Blank
// 1: In V-Blank
// 2: Searching OAM
// 3: Transfering Data to LCD
unsigned int mode : 2;
/// @brief Bit 2 - Coincidence Flag (0:LYC!=LY, 1:LYC=LY)
unsigned int lyc_eq_ly : 1;
/// @brief Bit 3 - Mode 0 H-Blank Interrupt
unsigned int hblank_interrupt : 1;
/// @brief Bit 4 - Mode 1 V-Blank Interrupt
unsigned int vblank_interrupt : 1;
/// @brief Bit 5 - Mode 2 OAM Interrupt
unsigned int oam_interrupt : 1;
/// @brief Bit 6 - LYC=LY Coincidence Interrupt
unsigned int lyc_eq_ly_interrupt : 1;
};
uint8_t byte;
} STAT;
/// @brief This register assigns gray shades to the color numbers of
/// the BG and Window tiles.
Palette BGP;
/// @brief This register assigns gray shades for sprite palette 0. It
/// works exactly as BGP ($FF47), except that the lower two bits aren't
/// used because sprite data 00 is transparent.
Palette OBP0;
/// @brief This register assigns gray shades for sprite palette 0. It
/// works exactly as BGP ($FF47), except that the lower two bits aren't
/// used because sprite data 00 is transparent.
Palette OBP1;
// $FF4A - WY - Window Y Position (R/W)
uint8_t WY;
// $FF4B - WX - Window X Position minus 7 (R/W)
uint8_t WX;
// [$8000 - $9FFF] - 8KB Video RAM (VRAM)
std::array<uint8_t, 8192> vram;
// [$FE00 - $FE9F]: Sprite Attribute Table (OAM)
std::array<uint8_t, 160> oam;
/// @brief Addresses of OAM entries that we must render
std::vector<uint16_t> oam_entries;
/// @brief Screen data to be displayed to the host machine (RGBA32)
ScreenData screen_data;
/// @brief The cycle counter for the scanline state machine.
unsigned int ly_counter;
private:
/// @brief Returns a byte from VRAM using an absolute memory address.
/// @param index The absolute memory address.
/// @return The byte from VRAM.
auto vram_access(const unsigned int index) noexcept -> uint8_t;
/// @brief Returns a byte from OAM using an absolute memory address.
/// @param index The absolute memory address.
/// @return The byte from OAM.
auto oam_access(const unsigned int index) noexcept -> uint8_t;
/// @brief Renders the current scanline.
auto draw_scanline() noexcept -> void;
/// @brief Puts a pixel on the screen data.
/// @param lo The low byte of the tile data.
/// @param hi The high byte of the tile data.
/// @param bit The pixel bit to use.
/// @param palette The palette to use for color translation.
/// @param sprite Ignore color 0 if `true`.
auto pixel(const uint8_t hi,
const uint8_t lo,
const unsigned int bit,
const Palette palette,
const bool sprite) noexcept -> void;
/// @brief LCD Control
union
{
struct
{
/// @brief Bit 0 - BG Enabled (0=Off, 1=On)
unsigned int bg_enabled : 1;
/// @brief Bit 1 - OBJ (Sprite) Display Enable (0=Off, 1=On)
unsigned int sprites_enabled : 1;
/// @brief Bit 2 - OBJ(Sprite) Size (0=8x8, 1=8x16)
unsigned int sprite_size : 1;
/// @brief Bit 3 - BG Tile Map Area
/// (0=$9800-$9BFF, 1=$9C00-$9FFF)
unsigned int bg_tile_map : 1;
/// @brief Bit 4 - BG & Window Tile Data
/// (0=$8800-$97FF, 1=$8000-$8FFF)
unsigned int bg_win_tile_data : 1;
/// @brief Bit 5 - Window Display Enable (0=Off, 1=On)
unsigned int window_enabled : 1;
/// @brief Bit 6 - Window Tile Map Area
/// (0=$9800-$9BFF, 1=$9C00-$9FFF)
unsigned int window_tile_map : 1;
/// @brief Bit 7 - LCD Display Enable (0=Off, 1=On)
unsigned int enabled : 1;
};
uint8_t byte;
} LCDC;
/// @brief Current X position of the scanline being drawn.
unsigned int screen_x;
// @brief RGBA32 color values used for the screen data.
enum Colors : uint32_t
{
White = 0x00FFFFFF,
LightGray = 0x00D3D3D3,
DarkGray = 0x00A9A9A9,
Black = 0x00000000
};
/// @brief Scanline state machine modes.
enum Mode
{
HBlank,
VBlankOrDisabled,
OAMSearch,
Drawing
};
/// @brief Render state set up by the call to `set_LCDC()`.
struct
{
/// @brief Beginning address of background tile map
/// (must be $9800 or $9C00).
uint16_t bg_tile_map;
/// @brief Beginning address of window tile map
/// (must be $9800 or $9C00).
uint16_t window_tile_map;
/// @brief Beginning address of tile data for both the window and
/// background (must be $8000 or $8800). In the latter case, the
/// tile IDs are signed.
uint16_t bg_win_tile_data;
/// @brief Size of sprites (must be 8 or 16).
unsigned int sprite_size;
/// @brief Will the tile IDs in background/window tile data area be
/// signed?
bool signed_tile_id;
} render_state;
/// @brief System bus instance
SystemBus& m_bus;
};
}
| [
"ruthearagard@gmail.com"
] | ruthearagard@gmail.com |
46707ebb49248d60030a5804e8d6eaa606339029 | be460e66f05c0259cf45e6c0cdb653fc2913972d | /acm/Online-Judge/cf/code/266B.cpp | 2478195ba4721bd4fdf20f314cd2062de2ce2ec1 | [] | no_license | Salvare219/CodeLibrary | 3247aee350402dac3d94e059a8dc97d5d5436524 | 8961a6d1718c58d12c21a857b23e825c16bdab14 | refs/heads/master | 2021-06-16T18:38:21.693960 | 2017-05-09T12:47:36 | 2017-05-09T12:47:36 | 81,569,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 528 | cpp | #include<cstdio>
#include<cstring>
#include<cmath>
#include<cstdlib>
#include<algorithm>
#include<string>
#include<vector>
#include<iostream>
#include<map>
using namespace std;
char str[1000];
int main()
{
// freopen("1.txt","r",stdin);
int n,t;
scanf("%d%d%s",&n,&t,str);
for(int i=0;i<t;i++)
{
for(int j=0;j<n-1;j++)
{
if(str[j]=='B' && str[j+1]=='G')
{
str[j]='G';
str[j+1]='B';
j++;
}
}
}
printf("%s\n",str);
return 0;
} | [
"635149007@qq.com"
] | 635149007@qq.com |
03e64f4485bd04ae39e2a429164792b1696caafa | af0ecafb5428bd556d49575da2a72f6f80d3d14b | /CodeJamCrawler/dataset/11_998_70.cpp | 386691a25cd85f8743c192bf3bae507ef99f2729 | [] | no_license | gbrlas/AVSP | 0a2a08be5661c1b4a2238e875b6cdc88b4ee0997 | e259090bf282694676b2568023745f9ffb6d73fd | refs/heads/master | 2021-06-16T22:25:41.585830 | 2017-06-09T06:32:01 | 2017-06-09T06:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | cpp | #include <cstdio>
#include <algorithm>
using namespace std;
#define FOR(i,a,b) for(int i=a,_b=b;i<=_b;i++)
#define REP(i,a) FOR(i,0,a-1)
#define FORD(i,a,b) for(int i=a,_b=b;i>=_b;i--)
#define REPD(i,a) FORD(i,a-1,0)
#define _m(a,b) memset(a,b,sizeof(a))
#define MAX 1010
int main (void) {
int T; scanf("%d", &T);
int N;
int V[MAX];
int R;
int S, Sum;
FOR(iT, 1, T) {
scanf("%d", &N);
REP(i, N) scanf("%d", &V[i]);
sort(V, V+N);
R = -1;
S = Sum = 0;
REP(i, N) {
S ^= V[i];
Sum += V[i];
}
if(S == 0) R = Sum - V[0];
printf("Case #%d: ", iT);
if(R == -1) puts("NO");
else printf("%d\n", R);
}
return 0;
}
| [
"nikola.mrzljak@fer.hr"
] | nikola.mrzljak@fer.hr |
d5af18ea5cc95dcfc2d26b042fcfb8c807d0245d | e217eaf05d0dab8dd339032b6c58636841aa8815 | /IfcAlignment/src/OpenInfraPlatform/IfcAlignment/entity/IfcRevolvedAreaSolidTapered.cpp | d780dbe65f1f69211adf7d74a302cd5df2f8dad6 | [] | no_license | bigdoods/OpenInfraPlatform | f7785ebe4cb46e24d7f636e1b4110679d78a4303 | 0266e86a9f25f2ea9ec837d8d340d31a58a83c8e | refs/heads/master | 2021-01-21T03:41:20.124443 | 2016-01-26T23:20:21 | 2016-01-26T23:20:21 | 57,377,206 | 0 | 1 | null | 2016-04-29T10:38:19 | 2016-04-29T10:38:19 | null | UTF-8 | C++ | false | false | 3,821 | cpp | /*! \verbatim
* \copyright Copyright (c) 2015 Julian Amann. All rights reserved.
* \author Julian Amann <julian.amann@tum.de> (https://www.cms.bgu.tum.de/en/team/amann)
* \brief This file is part of the BlueFramework.
* \endverbatim
*/
#include <sstream>
#include <limits>
#include "OpenInfraPlatform/IfcAlignment/model/IfcAlignmentP6Exception.h"
#include "OpenInfraPlatform/IfcAlignment/reader/ReaderUtil.h"
#include "OpenInfraPlatform/IfcAlignment/writer/WriterUtil.h"
#include "OpenInfraPlatform/IfcAlignment/IfcAlignmentP6EntityEnums.h"
#include "include/IfcAxis1Placement.h"
#include "include/IfcAxis2Placement3D.h"
#include "include/IfcPlaneAngleMeasure.h"
#include "include/IfcPresentationLayerAssignment.h"
#include "include/IfcProfileDef.h"
#include "include/IfcRevolvedAreaSolidTapered.h"
#include "include/IfcStyledItem.h"
namespace OpenInfraPlatform
{
namespace IfcAlignment
{
// ENTITY IfcRevolvedAreaSolidTapered
IfcRevolvedAreaSolidTapered::IfcRevolvedAreaSolidTapered() { m_entity_enum = IFCREVOLVEDAREASOLIDTAPERED; }
IfcRevolvedAreaSolidTapered::IfcRevolvedAreaSolidTapered( int id ) { m_id = id; m_entity_enum = IFCREVOLVEDAREASOLIDTAPERED; }
IfcRevolvedAreaSolidTapered::~IfcRevolvedAreaSolidTapered() {}
// method setEntity takes over all attributes from another instance of the class
void IfcRevolvedAreaSolidTapered::setEntity( shared_ptr<IfcAlignmentP6Entity> other_entity )
{
shared_ptr<IfcRevolvedAreaSolidTapered> other = dynamic_pointer_cast<IfcRevolvedAreaSolidTapered>(other_entity);
if( !other) { return; }
m_SweptArea = other->m_SweptArea;
m_Position = other->m_Position;
m_Axis = other->m_Axis;
m_Angle = other->m_Angle;
m_EndSweptArea = other->m_EndSweptArea;
}
void IfcRevolvedAreaSolidTapered::getStepLine( std::stringstream& stream ) const
{
stream << "#" << m_id << "=IFCREVOLVEDAREASOLIDTAPERED" << "(";
if( m_SweptArea ) { stream << "#" << m_SweptArea->getId(); } else { stream << "$"; }
stream << ",";
if( m_Position ) { stream << "#" << m_Position->getId(); } else { stream << "$"; }
stream << ",";
if( m_Axis ) { stream << "#" << m_Axis->getId(); } else { stream << "$"; }
stream << ",";
if( m_Angle ) { m_Angle->getStepParameter( stream ); } else { stream << "$"; }
stream << ",";
if( m_EndSweptArea ) { stream << "#" << m_EndSweptArea->getId(); } else { stream << "$"; }
stream << ");";
}
void IfcRevolvedAreaSolidTapered::getStepParameter( std::stringstream& stream, bool ) const { stream << "#" << m_id; }
void IfcRevolvedAreaSolidTapered::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcAlignmentP6Entity> >& map )
{
const int num_args = (int)args.size();
if( num_args<5 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcRevolvedAreaSolidTapered, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcAlignmentP6Exception( strserr.str().c_str() ); }
#ifdef _DEBUG
if( num_args>5 ){ std::cout << "Wrong parameter count for entity IfcRevolvedAreaSolidTapered, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; }
#endif
readEntityReference( args[0], m_SweptArea, map );
readEntityReference( args[1], m_Position, map );
readEntityReference( args[2], m_Axis, map );
m_Angle = IfcPlaneAngleMeasure::readStepData( args[3] );
readEntityReference( args[4], m_EndSweptArea, map );
}
void IfcRevolvedAreaSolidTapered::setInverseCounterparts( shared_ptr<IfcAlignmentP6Entity> ptr_self_entity )
{
IfcRevolvedAreaSolid::setInverseCounterparts( ptr_self_entity );
}
void IfcRevolvedAreaSolidTapered::unlinkSelf()
{
IfcRevolvedAreaSolid::unlinkSelf();
}
} // end namespace IfcAlignment
} // end namespace OpenInfraPlatform
| [
"planung.cms.bv@tum.de"
] | planung.cms.bv@tum.de |
5502e0a023fcd9957712e24df575138c2790a6c2 | 6979ba29151a30031f9f60da6bd853ac89f08452 | /Week2/Solution B/SolutionB.cpp | bf02764ddd85c0ec98eb515aed14b1100e45b627 | [] | no_license | shiv-pratap2002/IECSE-Code-Winter-20 | 0f6bd3f6cf298fd1c2b2df0125ce472177412e87 | a3285ce5320f7d4cd77b855d2a83337c8439f620 | refs/heads/main | 2023-03-04T02:54:50.833925 | 2021-02-13T11:20:01 | 2021-02-13T11:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 339 | cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main()
{
ll n;
cin>>n;
if(n%2!=0)
{
cout<<0<<endl;
}
else
{
if(n%4==0)
{
cout<<(n/4)-1<<endl;
}
else
{
cout<<n/4<<endl;
}
}
}
| [
"rheaadhikari@pop-os.localdomain"
] | rheaadhikari@pop-os.localdomain |
f094aa6ec807808aedd668f3dd3d8093e89b374a | ac227cc22d5f5364e5d029a2cef83816a6954590 | /applications/physbam/physbam-lib/External_Libraries/src/fltk/src/filename_match.cxx | c2a0d12329dcda1333e1880e9a54e26c64ad5b0c | [
"BSD-3-Clause"
] | permissive | schinmayee/nimbus | 597185bc8bac91a2480466cebc8b337f5d96bd2e | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | refs/heads/master | 2020-03-11T11:42:39.262834 | 2018-04-18T01:28:23 | 2018-04-18T01:28:23 | 129,976,755 | 0 | 0 | BSD-3-Clause | 2018-04-17T23:33:23 | 2018-04-17T23:33:23 | null | UTF-8 | C++ | false | false | 3,801 | cxx | //
// "$Id: filename_match.cxx,v 1.1 2011/12/10 04:53:51 rbsheth Exp $"
//
// Pattern matching routines for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2010 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Library General Public License for more details.
//
// You should have received a copy of the GNU Library General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA.
//
// Please report all bugs and problems on the following page:
//
// http://www.fltk.org/str.php
//
/* Adapted from Rich Salz. */
#include <FL/filename.H>
#include <ctype.h>
/**
Checks if a string \p s matches a pattern \p p.
The following syntax is used for the pattern:
- * matches any sequence of 0 or more characters.
- ? matches any single character.
- [set] matches any character in the set. Set can contain any single characters, or a-z to represent a range.
To match ] or - they must be the first characters. To match ^ or ! they must not be the first characters.
- [^set] or [!set] matches any character not in the set.
- {X|Y|Z} or {X,Y,Z} matches any one of the subexpressions literally.
- \\x quotes the character x so it has no special meaning.
- x all other characters must be matched exactly.
\b Include:
\code
#include <FL/filename.H>
\endcode
\param[in] s the string to check for a match
\param[in] p the string pattern
\return non zero if the string matches the pattern
*/
int fl_filename_match(const char *s, const char *p) {
int matched;
for (;;) {
switch(*p++) {
case '?' : // match any single character
if (!*s++) return 0;
break;
case '*' : // match 0-n of any characters
if (!*p) return 1; // do trailing * quickly
while (!fl_filename_match(s, p)) if (!*s++) return 0;
return 1;
case '[': { // match one character in set of form [abc-d] or [^a-b]
if (!*s) return 0;
int reverse = (*p=='^' || *p=='!'); if (reverse) p++;
matched = 0;
char last = 0;
while (*p) {
if (*p=='-' && last) {
if (*s <= *++p && *s >= last ) matched = 1;
last = 0;
} else {
if (*s == *p) matched = 1;
}
last = *p++;
if (*p==']') break;
}
if (matched == reverse) return 0;
s++; p++;}
break;
case '{' : // {pattern1|pattern2|pattern3}
NEXTCASE:
if (fl_filename_match(s,p)) return 1;
for (matched = 0;;) {
switch (*p++) {
case '\\': if (*p) p++; break;
case '{': matched++; break;
case '}': if (!matched--) return 0; break;
case '|': case ',': if (matched==0) goto NEXTCASE;
case 0: return 0;
}
}
case '|': // skip rest of |pattern|pattern} when called recursively
case ',':
for (matched = 0; *p && matched >= 0;) {
switch (*p++) {
case '\\': if (*p) p++; break;
case '{': matched++; break;
case '}': matched--; break;
}
}
break;
case '}':
break;
case 0: // end of pattern
return !*s;
case '\\': // quote next character
if (*p) p++;
/* FALLTHROUGH */
default:
if (tolower(*s) != tolower(*(p-1))) return 0;
s++;
break;
}
}
}
//
// End of "$Id: filename_match.cxx,v 1.1 2011/12/10 04:53:51 rbsheth Exp $".
//
| [
"quhang@stanford.edu"
] | quhang@stanford.edu |
2145ce12f364e4876b9008487cbd605dbab174f5 | 23ce47567588e05b7a8344327662cbe44b0f5af4 | /CSES/Introductory Problems/factory_machines.cpp | 81d3b610a01290cf549fdf9e712351954a0ff082 | [] | no_license | AnsharShampoo/Problems_CP | 95b3ff3579903286dc36706262b8cce137744241 | 94774e662378a6e43d5075a977696aa29d1884d8 | refs/heads/master | 2023-08-28T13:03:19.835562 | 2021-10-08T02:34:09 | 2021-10-08T02:34:09 | 409,830,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 81 | cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
return 0;
} | [
"anshar@ciencias.unam.mx"
] | anshar@ciencias.unam.mx |
d395f915516690efc86a58e5e7ec89a6e16924de | dd6147bf9433298a64bbceb7fdccaa4cc477fba6 | /8304/Melnikova_Olga/lab6/log/proxy.cpp | 2b5bfe5e7852daafaa17be30e94d8d63a3275cf3 | [] | no_license | moevm/oop | 64a89677879341a3e8e91ba6d719ab598dcabb49 | faffa7e14003b13c658ccf8853d6189b51ee30e6 | refs/heads/master | 2023-03-16T15:48:35.226647 | 2020-06-08T16:16:31 | 2020-06-08T16:16:31 | 85,785,460 | 42 | 304 | null | 2023-03-06T23:46:08 | 2017-03-22T04:37:01 | C++ | UTF-8 | C++ | false | false | 20 | cpp | #include "proxy.h"
| [
"melnikova.oa00@gmail.com"
] | melnikova.oa00@gmail.com |
f2e8696a352a9fda0348697c04299434e1396626 | fd39cc0e78c1bbe97ab3e5588ac46f6925a30309 | /staggered_grid/src/HH16Quantity.cpp | 20703fcf7829e6ac0c919b5806fa2fababaf6f8c | [] | no_license | LawrenceShum/staggered_grid | cbcee2a340db6eda338ba46ab9113828deb4dc72 | 9d1eddd827ae531a9d54c46ee42ff5c646cea4b2 | refs/heads/master | 2023-01-22T09:40:41.654228 | 2020-11-25T06:01:41 | 2020-11-25T06:01:41 | 315,841,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,386 | cpp | # include "../include/HH16Quantity.h"
HH16Quantity::HH16Quantity(std::string attributeName, size_t nPhi, size_t nTheta, fReal gridLen)
: nPhi(nPhi), nTheta(nTheta), gridLen(gridLen), invGridLen(1.0 / gridLen), attrName(attributeName)
{
thisStep = new fReal[nPhi * nTheta];
nextStep = new fReal[nPhi * nTheta];
}
HH16Quantity::~HH16Quantity()
{
delete[] thisStep;
delete[] nextStep;
}
std::string HH16Quantity::getName()
{
return this->attrName;
}
size_t HH16Quantity::getNPhi()
{
return this->nPhi;
}
size_t HH16Quantity::getNTheta()
{
return this->nTheta;
}
void HH16Quantity::swapBuffer()
{
fReal* tempPtr = this->thisStep;
this->thisStep = this->nextStep;
this->nextStep = tempPtr;
}
fReal HH16Quantity::getValueAt(size_t x, size_t y)
{
return this->accessValueAt(x, y);
}
void HH16Quantity::setValueAt(size_t x, size_t y, fReal val)
{
this->accessValueAt(x, y) = val;
}
fReal& HH16Quantity::accessValueAt(size_t x, size_t y)
{
return this->thisStep[getIndex(x, y)];
}
void HH16Quantity::writeValueTo(size_t x, size_t y, fReal val)
{
this->nextStep[getIndex(x, y)] = val;
}
size_t HH16Quantity::getIndex(size_t x, size_t y)
{
# ifdef DEBUGBUILD
if (x >= this->nPhi || y >= this->nTheta)
{
std::cerr << "Index out of bound at x: " << x << " y: " << y << std::endl;
}
# endif
return y * nPhi + x;
}
fReal HH16Quantity::getPhiCoordAtIndex(size_t x)
{
fReal xFloat = static_cast<fReal>(x);
return xFloat * this->gridLen;
}
size_t HH16Quantity::getPhiIndexAtCoord(fReal phi)
{
fReal phiInt = phi * this->invGridLen;
return static_cast<size_t>(phiInt);
}
fReal HH16Quantity::getThetaCoordAtIndex(size_t y)
{
fReal yFloat = static_cast<fReal>(y);
return yFloat * this->gridLen;
}
size_t HH16Quantity::getThetaIndexAtCoord(fReal theta)
{
fReal thetaInt = theta * this->invGridLen;
return static_cast<size_t>(thetaInt);
}
/*
Bilinear interpolated for now.
*/
// ?? PROBLEM ??
fReal HH16Quantity::sampleAt(fReal x, fReal y, fReal uNorthP[2], fReal uSouthP[2])
{
fReal phi = x;
fReal theta = y;
// should restore phi and theta that are out of bounds
bool isFlippedPole = validatePhiTheta(phi, theta);
if (phi > M_2PI || phi < 0 || theta > M_PI || theta < 0) {
std::cout << "problem" << std::endl;
}
// get phi/theta indices
fReal normedPhi = phi * invGridLen;
fReal normedTheta = theta * invGridLen;
int phiIndex = static_cast<int>(std::floor(normedPhi));
int thetaIndex = static_cast<int>(std::floor(normedTheta));
// fractional distance vals for bilinear interpolation
fReal alphaPhi = normedPhi - static_cast<fReal>(phiIndex);
fReal alphaTheta = normedTheta - static_cast<fReal>(thetaIndex);
size_t phiLower = phiIndex % nPhi;
size_t phiHigher = (phiLower + 1) % nPhi;;
size_t thetaLower = thetaIndex;
size_t thetaHigher = thetaIndex + 1;
fReal lowerBelt = Lerp<fReal>(getValueAt(phiLower, thetaLower), getValueAt(phiHigher, thetaLower), alphaPhi);
fReal higherBelt = Lerp<fReal>(getValueAt(phiLower, thetaHigher), getValueAt(phiHigher, thetaHigher), alphaPhi);
fReal lerped = Lerp<fReal>(lowerBelt, higherBelt, alphaTheta);
return lerped;
/*
if (thetaIndex == 0 && isFlippedPole) // If it's not flipped the theta+1 belt would just be belt 1
{
if (attrName == "u")
{
alphaTheta = 2.0 * alphaTheta;
size_t phiLower = (phiIndex + nPhi / 2) % nPhi;
size_t phiHigher = (phiLower + 1) % nPhi;
fReal lowerBelt = Lerp(getValueAt(phiLower, 0), getValueAt(phiHigher, 0), alphaPhi);
fReal lowerPhi = (phiLower - 0.5) * gridLen;
fReal higherPhi = (phiLower + 0.5) * gridLen;
fReal loweruPhi = -uNorthP[0] * std::cos(lowerPhi) + uNorthP[1] * std::sin(lowerPhi);
fReal higheruPhi = -uNorthP[0] * std::cos(higherPhi) + uNorthP[1] * std::sin(higherPhi);
fReal higherBelt = Lerp(loweruPhi, higheruPhi, alphaPhi);
fReal lerped = Lerp(lowerBelt, higherBelt, alphaTheta);
return lerped;
}
else
{
//Lower is to the opposite, higher is on this side
alphaTheta = 1.0 - alphaTheta;
size_t phiLower = phiIndex % nPhi;
size_t phiHigher = (phiLower + 1) % nPhi;
size_t phiLowerOppo = (phiLower + nPhi / 2) % nPhi;
size_t phiHigherOppo = (phiHigher + nPhi / 2) % nPhi;
fReal lowerBelt = Lerp<fReal>(getValueAt(phiLower, 0), getValueAt(phiHigher, 0), alphaPhi);
fReal higherBelt = Lerp<fReal>(getValueAt(phiLowerOppo, 0), getValueAt(phiHigherOppo, 0), alphaPhi);
fReal lerped = Lerp<fReal>(lowerBelt, higherBelt, alphaTheta);
return lerped;
}
}
else if (thetaIndex == nTheta - 1)
{
if (attrName == "u")
{
alphaTheta = 2.0 * alphaTheta;
size_t phiLower = phiIndex % nPhi;
size_t phiHigher = (phiLower + 1) % nPhi;
fReal lowerBelt = Lerp(getValueAt(phiLower, thetaIndex), getValueAt(phiHigher, thetaIndex), alphaPhi);
fReal lowerPhi = (phiLower - 0.5) * gridLen;
fReal higherPhi = (phiLower + 0.5) * gridLen;
fReal loweruPhi = -uSouthP[0] * std::cos(lowerPhi) + uSouthP[1] * std::sin(lowerPhi);
fReal higheruPhi = -uSouthP[0] * std::cos(higherPhi) + uSouthP[1] * std::sin(higherPhi);
fReal higherBelt = Lerp(loweruPhi, higheruPhi, alphaPhi);
fReal lerped = Lerp(lowerBelt, higherBelt, alphaTheta);
return lerped;
}
else
{
//Lower is on this side, higher is to the opposite
size_t phiLower = phiIndex % nPhi;
size_t phiHigher = (phiLower + 1) % nPhi;
size_t phiLowerOppo = (phiLower + nPhi / 2) % nPhi;
size_t phiHigherOppo = (phiHigher + nPhi / 2) % nPhi;
fReal lowerBelt = Lerp<fReal>(getValueAt(phiLower, nTheta - 1), getValueAt(phiHigher, nTheta - 1), alphaPhi);
fReal higherBelt = Lerp<fReal>(getValueAt(phiLowerOppo, nTheta - 1), getValueAt(phiHigherOppo, nTheta - 1), alphaTheta);
fReal lerped = Lerp<fReal>(lowerBelt, higherBelt, alphaTheta);
return lerped;
}
}
else
{
size_t phiLower = phiIndex % nPhi;
size_t phiHigher = (phiLower + 1) % nPhi;
size_t thetaLower = thetaIndex;
size_t thetaHigher = thetaIndex + 1;
fReal lowerBelt = Lerp<fReal>(getValueAt(phiLower, thetaLower), getValueAt(phiHigher, thetaLower), alphaPhi);
fReal higherBelt = Lerp<fReal>(getValueAt(phiLower, thetaHigher), getValueAt(phiHigher, thetaHigher), alphaPhi);
fReal lerped = Lerp<fReal>(lowerBelt, higherBelt, alphaTheta);
return lerped;
}
*/
}
// Phi: 0 - 2pi Theta: 0 - pi
bool HH16Quantity::validatePhiTheta(fReal & phi, fReal & theta)
{
int loops = static_cast<int>(std::floor(theta / M_2PI));
theta = theta - loops * M_2PI;
// Now theta is in 0-2pi range
bool isFlipped = false;
if (theta > M_PI)
{
theta = M_2PI - theta;
phi += M_PI;
isFlipped = true;
// Now theta is in 0-pi range
}
loops = static_cast<int>(std::floor(phi / M_2PI));
phi = phi - loops * M_2PI;
// Now phi is in 0-2pi range
return isFlipped;
} | [
"lawrencesom1104@gmail.com"
] | lawrencesom1104@gmail.com |
f9daff2766adbd2454abefd1c0139590839fecfc | 85af3e305e5bcd7e42ea9c269afbeb8d8049e8fe | /GEDecompressor/MonacoDecoder.h | a3954b56d0e9c920dd54d6669a3ebb51e8ec230d | [
"Unlicense"
] | permissive | jombo23/N64-Tools | d5729bf7c2c0b898b0ee66d610bfd34fdd83d9fb | 4d935fdd48230ddd0cb5bd3739106e6765cac01e | refs/heads/master | 2023-05-11T20:31:30.723225 | 2023-05-09T01:23:39 | 2023-05-09T01:23:39 | 148,819,274 | 229 | 150 | Unlicense | 2022-11-26T17:00:56 | 2018-09-14T17:11:31 | C++ | UTF-8 | C++ | false | false | 397 | h | // BY ZOINKITY
#pragma once
class MonacoDecoder
{
public:
MonacoDecoder(void);
~MonacoDecoder(void);
int header(unsigned char* data, int& compressedSize);
unsigned long GetBits(int numBits, unsigned char* data, int& inputPosition, int compressedSize);
int dec(unsigned char* data, int compressedSize, int dec_s, unsigned char* output);
unsigned long bitRegister;
int numBitsInRegister;
};
| [
"SubDragger@hotmail.com"
] | SubDragger@hotmail.com |
88fca211554d4e2aed355585ca15fade53654b04 | 4c23be1a0ca76f68e7146f7d098e26c2bbfb2650 | /h2/2.1/polyMesh/neighbour | 8221545d9b07503019ff70ce8c233357aa43979d | [] | no_license | labsandy/OpenFOAM_workspace | a74b473903ddbd34b31dc93917e3719bc051e379 | 6e0193ad9dabd613acf40d6b3ec4c0536c90aed4 | refs/heads/master | 2022-02-25T02:36:04.164324 | 2019-08-23T02:27:16 | 2019-08-23T02:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 767 | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class labelList;
note "nPoints:8 nCells:1 nFaces:6 nInternalFaces:0";
location "2.1/polyMesh";
object neighbour;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
0()
// ************************************************************************* //
| [
"jfeatherstone123@gmail.com"
] | jfeatherstone123@gmail.com | |
1f954327f392cf069e3f506a9a129a9422ec3f0f | 8db0a445ef36caf16c88a200698fb2c7b92deaa8 | /euler/seven.hpp | 54fa9ce70664268947961d8cc8776de6f4e17ee3 | [
"MIT"
] | permissive | alwynwan/ProjectEuler | d68b64320762a42b4cbf5ba47ec8b747cb370942 | d4ac74f3fbcedbd4558f6ce6ff75dea16a548141 | refs/heads/master | 2020-09-25T23:33:22.736612 | 2019-12-05T14:06:56 | 2019-12-05T14:06:56 | 226,114,114 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | hpp | #pragma once
// works
uintptr_t seven() {
auto is_prime = [](int input) {
if (input < 2)
return false;
for (auto i = 2; i * i <= input; i++) {
if (!(input % i))
return false;
}
return true;
};
int prime = 0, count = 0;
// continue incrementing until we get to
for (auto i = 0; count < 10001; i++) {
if (is_prime(i)) {
prime = i;
count++;
}
}
return prime;
} | [
"ewalwynwan@live.com"
] | ewalwynwan@live.com |
9591f54138fa0da19e7270d97c07caf32c100b48 | 3eaf6c9eb8f847be5e1207f17c0326d8f0297aa6 | /05_Class-and-Inheritance/07_Virtual-Inheritance/Worker.h | bad8066325059c0f4df8dfece3acb674c3cc85f8 | [] | no_license | WilliamCharlieBlue/Cplusplus-Basic | 4ef80065bf5adde72a939b72192638a2dd14c8c3 | 4ccce274eb7454c55365380fb632928bc1b00cb1 | refs/heads/master | 2023-03-28T16:43:17.811892 | 2021-04-08T12:43:57 | 2021-04-08T12:43:57 | 355,899,810 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 241 | h | #include <string>
#include "Person.h"
using namespace std;
class Worker: virtual public Person{
public:
Worker(string code="001", string color="pale yellow");
virtual ~Worker();
void carry();
protected:
string m_strCode;
}; | [
"pydata@2ndedition.com"
] | pydata@2ndedition.com |
3313462910a7fe4375efeffb1fcb776c771b8067 | d3bd964354ef8d662cd9857e245b0ff393b00b9c | /include/openspace/interaction/externalcontrol/externalcontrol.h | 10dad0815e0738acf1a3c22dfb015a358384938a | [
"MIT"
] | permissive | emiax/OpenSpace | 5da75a56b684885e1e573177686e8aad03a6a3e4 | 17540472f5bd23f5c38ee4dd6c9e00b439b241a0 | refs/heads/master | 2021-01-12T08:08:45.232711 | 2016-12-12T12:50:55 | 2016-12-12T12:50:55 | 76,476,293 | 0 | 0 | null | 2016-12-14T16:18:18 | 2016-12-14T16:18:18 | null | UTF-8 | C++ | false | false | 533 | h | #ifndef EXTERNALCONTROL_H
#define EXTERNALCONTROL_H
#include <openspace/util/powerscaledscalar.h>
#include <ghoul/glm.h>
#include <glm/gtc/quaternion.hpp>
namespace openspace {
class ExternalControl {
public:
// constructors & destructor
ExternalControl();
virtual ~ExternalControl();
virtual void update();
void rotate(const glm::quat &rotation);
void orbit(const glm::quat &rotation);
void distance(const PowerScaledScalar &distance);
protected:
};
} // namespace openspace
#endif
| [
"alexander.bock@liu.se"
] | alexander.bock@liu.se |
7470d05aa96c048a9c77caf3af031945d0772adc | 34273edbce4304a7fac87117d1f1b7d50a2e9960 | /Tarea 2/Factory.h | 2b5f1ca8ead0893b743cff2c8617299bff9ea528 | [] | no_license | maxsegovia/An-lisis-y-Modelaci-n-de-Software | cb7103111d56c2bbc245d11029b5b332231125f0 | 3b1ae554dc3218d4807f5195e4c8be9b833cf256 | refs/heads/master | 2020-04-12T12:05:29.413758 | 2016-10-21T13:33:08 | 2016-10-21T13:33:08 | 65,292,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 547 | h | #ifndef FCTRY
#define FCTRY
#include "Computer.h"
class Factory{
public:
//Constructor
Factory();
//Destructor
~Factory();
//Methods
virtual Computer* factory_method(int a);
Computer* create(int a);
};
Factory::Factory()
{
//Constructor goes here.
}
Factory::~Factory()
{
//Destructor goes here.
}
Computer* Factory::create(int a)
{
Computer* computer_type = factory_method(a);
computer_type->selected();
return computer_type;
}
Computer * Factory::factory_method(int a)
{
return NULL;
}
#endif | [
"maxsegoviamtz@gmail.com"
] | maxsegoviamtz@gmail.com |
f7f5a3236d6b39d031f357cfb0b7584d42c6993c | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/old_hunk_3072.cpp | 0720ef77f6ad74eb90a12eb59627228942017223 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | cpp | return split_in_progress;
}
static void show_rebase_in_progress(struct wt_status *s,
struct wt_status_state *state,
const char *color)
{
struct stat st;
if (has_unmerged(s)) {
if (state->branch)
status_printf_ln(s, color,
_("You are currently rebasing branch '%s' on '%s'."),
state->branch,
state->onto);
else
status_printf_ln(s, color,
_("You are currently rebasing."));
if (s->hints) {
status_printf_ln(s, color,
_(" (fix conflicts and then run \"git rebase --continue\")"));
| [
"993273596@qq.com"
] | 993273596@qq.com |
b434b52415ceba68135aa0f00facbd8a9fae676e | b1aa918340af37f519d6e92219e3978dcf8cff43 | /sloeber.ino.cpp | c66c24656893fae28df7cd9c1d316234a420538c | [] | no_license | apgrc/PID_Motor | 21e2d8941e574d9bbfab6658cc6f14c6b279b018 | 4d12e62579f221b44fbc870e11d51b4510e60ac5 | refs/heads/master | 2020-04-12T01:08:20.991348 | 2018-12-18T03:11:06 | 2018-12-18T03:11:06 | 162,222,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 592 | cpp | #ifdef __IN_ECLIPSE__
//This is a automatic generated file
//Please do not modify this file
//If you touch this file your change will be overwritten during the next build
//This file has been generated on 2018-05-25 09:05:51
#include "Arduino.h"
#include "PID_Motor.h"
void encoder() ;
void setup() ;
void loop() ;
void PID_position() ;
void PID_setup() ;
void RPM(double* r1) ;
void Smooth_RPM(double* r1) ;
void recvWithEndMarker() ;
void showNewNumber() ;
#include "PID_Motor.ino"
#include "Encoder.ino"
#include "PID_Position.ino"
#include "PID_RPM.ino"
#include "Serial.ino"
#endif
| [
"alejandro.perez.garcia@uabc.edu.mx"
] | alejandro.perez.garcia@uabc.edu.mx |
85a212eafd616d83e71f2d7edc22b96389a3ea02 | f5ffab38ba16c51b3e4d01598d01f4ee17ae93ae | /NinjaGaiden/NodeIdLevelParse.cpp | f157280cb6277b3ed59ed74b0ee9a7fbf5dd119f | [] | no_license | thanhgit/NinjaGaiden | b497c8477907193ada397630c5cbe6a08ab91547 | d475c671cddbb80c6c544f2a9c487dedd2d4567a | refs/heads/master | 2021-06-19T11:59:01.074268 | 2021-01-24T01:27:53 | 2021-01-24T01:45:49 | 176,050,004 | 0 | 0 | null | 2021-01-29T20:31:04 | 2019-03-17T03:03:56 | C++ | UTF-8 | C++ | false | false | 294 | cpp | #include"NodeIdLevelParse.h"
#include<vector>
NodeIdLevelParse::NodeIdLevelParse(string line, QNode* node):QParse(node)
{
vector<string> strs = split(line);
this->node->setNodeId(strs.at(0));
this->node->setLevel(std::atoi(strs.at(1).c_str()));
}
NodeIdLevelParse::~NodeIdLevelParse()
{
}
| [
"thanh29695@gmail.com"
] | thanh29695@gmail.com |
708527ca847407f28cd434b3a8bdbb419708873f | e8c8d8fa32c4a32adf8e26009e26aea0c562a901 | /tnolisting.cpp | 14d3103bba170c380491cb078e449b32200fd348 | [] | no_license | harishr1308/opensourcerebra | dda15c946722b00c783a4cf553c2b56d9f115ff4 | fc8f0c68a14c1be13721ae9021f6db0eaa403ce6 | refs/heads/master | 2021-01-01T03:57:33.455054 | 2016-10-13T12:24:35 | 2016-10-13T12:24:35 | 57,366,942 | 1 | 1 | null | 2016-10-13T12:24:36 | 2016-04-29T08:03:11 | C++ | UTF-8 | C++ | false | false | 945 | cpp | #include <fstream>
#include <iostream>
#include <string>
#include <cstdio>
#include <vector>
#include <cstring>
#include <dirent.h>
#include <cstdlib>
using namespace std;
vector<string> open(string path = ".")
{
DIR* dir;
dirent* pdir;
vector<string> files;
dir = opendir(path.c_str());
while (pdir = readdir(dir))
{
string fn = pdir->d_name;
if(fn.substr(fn.find_last_of(".") + 1) == "txt" && fn[0]=='T')
files.push_back(fn);
}
return files;
}
int main()
{
vector<string> files;
files = open(); // or pass which dir to open
fstream file;
fstream tfile;
tfile.open("tnolist.txt",fstream::in|fstream::out|fstream::trunc);
for(int p=0;p<files.size();p++)
{
string temp = files[p];
//T1234567890
for(int i=0;i<11;i++)
{
tfile<<temp[i];
}
tfile<<endl;
cout<<file.good()<<endl;
}
tfile.close();
//system("g++ tnolistsort.cpp && ./a.out");
//system("g++ tag.cpp && ./a.out");
return 0;
} | [
"harishr1308@users.noreply.github.com"
] | harishr1308@users.noreply.github.com |
4c9b600f87e7ec4383484610ae72acef96934182 | 62cfb3670073a31cf4b74c5e6d37a06573159f6f | /src/NewPingESP8266/NewPingESP8266.cpp | 686aab54359c7baab44ed51fc4a8312caaa75810 | [
"MIT",
"GPL-3.0-only"
] | permissive | martinius96/hladinomer-studna-scripty | c7e2b0febc429e83fdaf4c1f4cc06022b3dcee22 | 55ba0bed6035b3349417705dfb5a1c28b4321649 | refs/heads/master | 2023-09-06T02:59:26.366414 | 2023-08-29T16:07:22 | 2023-08-29T16:07:22 | 212,859,833 | 14 | 1 | MIT | 2021-03-21T00:07:54 | 2019-10-04T16:37:23 | C++ | UTF-8 | C++ | false | false | 10,577 | cpp | // ---------------------------------------------------------------------------
// Created by Tim Eckel - teckel@leethost.com
// Copyright 2016 License: GNU GPL v3 http://www.gnu.org/licenses/gpl.html
//
// See "NewPingESP8266.h" for purpose, syntax, version history, links, and more.
// ---------------------------------------------------------------------------
#include "NewPingESP8266.h"
// ---------------------------------------------------------------------------
// NewPingESP8266 constructor
// ---------------------------------------------------------------------------
NewPingESP8266::NewPingESP8266(uint32_t trigger_pin, uint32_t echo_pin, unsigned int max_cm_distance) {
#if DO_BITWISE == true
_triggerBit = digitalPinToBitMask(trigger_pin); // Get the port register bitmask for the trigger pin.
_echoBit = digitalPinToBitMask(echo_pin); // Get the port register bitmask for the echo pin.
_triggerOutput = portOutputRegister(digitalPinToPort(trigger_pin)); // Get the output port register for the trigger pin.
_echoInput = portInputRegister(digitalPinToPort(echo_pin)); // Get the input port register for the echo pin.
_triggerMode = (uint32_t *) portModeRegister(digitalPinToPort(trigger_pin)); // Get the port mode register for the trigger pin.
#else
_triggerPin = trigger_pin;
_echoPin = echo_pin;
#endif
set_max_distance(max_cm_distance); // Call function to set the max sensor distance.
#if (defined (__arm__) && defined (TEENSYDUINO)) || DO_BITWISE != true
pinMode(echo_pin, INPUT); // Set echo pin to input (on Teensy 3.x (ARM), pins default to disabled, at least one pinMode() is needed for GPIO mode).
pinMode(trigger_pin, OUTPUT); // Set trigger pin to output (on Teensy 3.x (ARM), pins default to disabled, at least one pinMode() is needed for GPIO mode).
#endif
#if defined (ARDUINO_AVR_YUN)
pinMode(echo_pin, INPUT); // Set echo pin to input for the Arduino Yun, not sure why it doesn't default this way.
#endif
#if ONE_PIN_ENABLED != true && DO_BITWISE == true
*_triggerMode |= _triggerBit; // Set trigger pin to output.
#endif
}
// ---------------------------------------------------------------------------
// Standard ping methods
// ---------------------------------------------------------------------------
unsigned int NewPingESP8266::ping(unsigned int max_cm_distance) {
if (max_cm_distance > 0) set_max_distance(max_cm_distance); // Call function to set a new max sensor distance.
if (!ping_trigger()) return NO_ECHO; // Trigger a ping, if it returns false, return NO_ECHO to the calling function.
#if URM37_ENABLED == true
#if DO_BITWISE == true
while (!(*_echoInput & _echoBit)) // Wait for the ping echo.
#else
while (!digitalRead(_echoPin)) // Wait for the ping echo.
#endif
if (micros() > _max_time) return NO_ECHO; // Stop the loop and return NO_ECHO (false) if we're beyond the set maximum distance.
#else
#if DO_BITWISE == true
while (*_echoInput & _echoBit) // Wait for the ping echo.
#else
while (digitalRead(_echoPin)) // Wait for the ping echo.
#endif
if (micros() > _max_time) return NO_ECHO; // Stop the loop and return NO_ECHO (false) if we're beyond the set maximum distance.
#endif
return (micros() - (_max_time - _maxEchoTime) - PING_OVERHEAD); // Calculate ping time, include overhead.
}
unsigned long NewPingESP8266::ping_cm(unsigned int max_cm_distance) {
unsigned long echoTime = NewPingESP8266::ping(max_cm_distance); // Calls the ping method and returns with the ping echo distance in uS.
#if ROUNDING_ENABLED == false
return (echoTime / US_ROUNDTRIP_CM); // Call the ping method and returns the distance in centimeters (no rounding).
#else
return NewPingESP8266Convert(echoTime, US_ROUNDTRIP_CM); // Convert uS to centimeters.
#endif
}
unsigned long NewPingESP8266::ping_in(unsigned int max_cm_distance) {
unsigned long echoTime = NewPingESP8266::ping(max_cm_distance); // Calls the ping method and returns with the ping echo distance in uS.
#if ROUNDING_ENABLED == false
return (echoTime / US_ROUNDTRIP_IN); // Call the ping method and returns the distance in inches (no rounding).
#else
return NewPingESP8266Convert(echoTime, US_ROUNDTRIP_IN); // Convert uS to inches.
#endif
}
unsigned long NewPingESP8266::ping_median(uint32_t it, unsigned int max_cm_distance) {
unsigned int uS[it], last;
uint32_t j, i = 0;
unsigned long t;
uS[0] = NO_ECHO;
while (i < it) {
t = micros(); // Start ping timestamp.
last = ping(max_cm_distance); // Send ping.
if (last != NO_ECHO) { // Ping in range, include as part of median.
if (i > 0) { // Don't start sort till second ping.
for (j = i; j > 0 && uS[j - 1] < last; j--) // Insertion sort loop.
uS[j] = uS[j - 1]; // Shift ping array to correct position for sort insertion.
} else j = 0; // First ping is sort starting point.
uS[j] = last; // Add last ping to array in sorted position.
i++; // Move to next ping.
} else it--; // Ping out of range, skip and don't include as part of median.
if (i < it && micros() - t < PING_MEDIAN_DELAY)
delay((PING_MEDIAN_DELAY + t - micros()) / 1000); // Millisecond delay between pings.
}
return (uS[it >> 1]); // Return the ping distance median.
}
// ---------------------------------------------------------------------------
// Standard and timer interrupt ping method support functions (not called directly)
// ---------------------------------------------------------------------------
boolean NewPingESP8266::ping_trigger() {
#if DO_BITWISE == true
#if ONE_PIN_ENABLED == true
*_triggerMode |= _triggerBit; // Set trigger pin to output.
#endif
*_triggerOutput &= ~_triggerBit; // Set the trigger pin low, should already be low, but this will make sure it is.
delayMicroseconds(4); // Wait for pin to go low.
*_triggerOutput |= _triggerBit; // Set trigger pin high, this tells the sensor to send out a ping.
delayMicroseconds(10); // Wait long enough for the sensor to realize the trigger pin is high. Sensor specs say to wait 10uS.
*_triggerOutput &= ~_triggerBit; // Set trigger pin back to low.
#if ONE_PIN_ENABLED == true
*_triggerMode &= ~_triggerBit; // Set trigger pin to input (when using one Arduino pin, this is technically setting the echo pin to input as both are tied to the same Arduino pin).
#endif
#if URM37_ENABLED == true
if (!(*_echoInput & _echoBit)) return false; // Previous ping hasn't finished, abort.
_max_time = micros() + _maxEchoTime + MAX_SENSOR_DELAY; // Maximum time we'll wait for ping to start (most sensors are <450uS, the SRF06 can take up to 34,300uS!)
while (*_echoInput & _echoBit) // Wait for ping to start.
if (micros() > _max_time) return false; // Took too long to start, abort.
#else
if (*_echoInput & _echoBit) return false; // Previous ping hasn't finished, abort.
_max_time = micros() + _maxEchoTime + MAX_SENSOR_DELAY; // Maximum time we'll wait for ping to start (most sensors are <450uS, the SRF06 can take up to 34,300uS!)
while (!(*_echoInput & _echoBit)) // Wait for ping to start.
if (micros() > _max_time) return false; // Took too long to start, abort.
#endif
#else
#if ONE_PIN_ENABLED == true
pinMode(_triggerPin, OUTPUT); // Set trigger pin to output.
#endif
digitalWrite(_triggerPin, LOW); // Set the trigger pin low, should already be low, but this will make sure it is.
delayMicroseconds(4); // Wait for pin to go low.
digitalWrite(_triggerPin, HIGH); // Set trigger pin high, this tells the sensor to send out a ping.
delayMicroseconds(10); // Wait long enough for the sensor to realize the trigger pin is high. Sensor specs say to wait 10uS.
digitalWrite(_triggerPin, LOW); // Set trigger pin back to low.
#if ONE_PIN_ENABLED == true
pinMode(_triggerPin, INPUT); // Set trigger pin to input (when using one Arduino pin, this is technically setting the echo pin to input as both are tied to the same Arduino pin).
#endif
#if URM37_ENABLED == true
if (!digitalRead(_echoPin)) return false; // Previous ping hasn't finished, abort.
_max_time = micros() + _maxEchoTime + MAX_SENSOR_DELAY; // Maximum time we'll wait for ping to start (most sensors are <450uS, the SRF06 can take up to 34,300uS!)
while (digitalRead(_echoPin)) // Wait for ping to start.
if (micros() > _max_time) return false; // Took too long to start, abort.
#else
if (digitalRead(_echoPin)) return false; // Previous ping hasn't finished, abort.
_max_time = micros() + _maxEchoTime + MAX_SENSOR_DELAY; // Maximum time we'll wait for ping to start (most sensors are <450uS, the SRF06 can take up to 34,300uS!)
while (!digitalRead(_echoPin)) // Wait for ping to start.
if (micros() > _max_time) return false; // Took too long to start, abort.
#endif
#endif
_max_time = micros() + _maxEchoTime; // Ping started, set the time-out.
return true; // Ping started successfully.
}
void NewPingESP8266::set_max_distance(unsigned int max_cm_distance) {
#if ROUNDING_ENABLED == false
_maxEchoTime = min(max_cm_distance + 1, (unsigned int) MAX_SENSOR_DISTANCE + 1) * US_ROUNDTRIP_CM; // Calculate the maximum distance in uS (no rounding).
#else
_maxEchoTime = min(max_cm_distance, (unsigned int) MAX_SENSOR_DISTANCE) * US_ROUNDTRIP_CM + (US_ROUNDTRIP_CM / 2); // Calculate the maximum distance in uS.
#endif
}
// ---------------------------------------------------------------------------
// Conversion methods (rounds result to nearest cm or inch).
// ---------------------------------------------------------------------------
unsigned int NewPingESP8266::convert_cm(unsigned int echoTime) {
#if ROUNDING_ENABLED == false
return (echoTime / US_ROUNDTRIP_CM); // Convert uS to centimeters (no rounding).
#else
return NewPingESP8266Convert(echoTime, US_ROUNDTRIP_CM); // Convert uS to centimeters.
#endif
}
unsigned int NewPingESP8266::convert_in(unsigned int echoTime) {
#if ROUNDING_ENABLED == false
return (echoTime / US_ROUNDTRIP_IN); // Convert uS to inches (no rounding).
#else
return NewPingESP8266Convert(echoTime, US_ROUNDTRIP_IN); // Convert uS to inches.
#endif
}
| [
"martin.chlebovec.2@student.tuke.sk"
] | martin.chlebovec.2@student.tuke.sk |
0c7c5196a15bb13b6930f47e6fb55aadfb8defb1 | a152be0070eaeabffd171636bfe278d3409d9f86 | /Node.hpp | ff91b45ecd2b4893c3d9576b3a3d58baf6c88430 | [] | no_license | revoulce/oop_lab1 | 0b469471711017c01f68439a9556cbc2097d4355 | f823cd5308a6b9b641d40e1dee8df4b2cf07c3d4 | refs/heads/main | 2023-01-27T17:29:42.445410 | 2020-12-06T16:26:33 | 2020-12-06T16:26:33 | 318,865,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 714 | hpp | //
// Created by letih on 12/3/2020.
//
#pragma once
#ifndef OOP_LAB1__NODE_HPP_
#define OOP_LAB1__NODE_HPP_
template<class T> class Node {
public:
/**
* @brief Данные элемента
*/
T data;
/**
* @brief Указатель на следующий элемент
*/
Node* next;
/**
* @brief Указатель на предыдущий элемент
*/
Node* prev;
Node(const T& data = T(), Node* next = nullptr, Node* prev = nullptr) : data(data), next(next), prev(prev) {}
Node(const Node& other_node) : data(other_node.data), next(other_node.next), prev(other_node.prev) {}
~Node() = default;
};
#endif//OOP_LAB1__NODE_HPP_
| [
"revoulce@gmail.com"
] | revoulce@gmail.com |
054bc66b0e5b431b60d060c7f51d20de37c13705 | 365913e8996cfb374fb64542bc8188d10d8165ca | /c++script/concenatedstring.cpp | e84558d51256b8fe0a4dc90e707487ee9fc87d89 | [
"MIT"
] | permissive | JKawohl/c- | 23136ebb7ca95d75ae7a72a8e210abc2de1187c4 | 4ca0c3eb69419d33ef96586d58ec6a1b9d41663e | refs/heads/master | 2021-06-12T18:10:23.571193 | 2016-12-04T16:46:32 | 2016-12-04T16:46:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | #include <iostream>
#include <string>
using namespace std;
int main()
{
string message( " I Have learned something new again!\n"),
prompt ("Please input two lines of Text:"),
str1, str2,sum;
cout << message << endl;
cout << prompt << endl;
getline (cin, str1);
getline (cin, str2);
sum = str1 + " + " + str2;
cout << sum << endl;
return 0;
}
| [
"john@owncloud.com"
] | john@owncloud.com |
7c0e418a5452faf0071077b7a44639ab2f7d20f1 | 09403b9998277567edb91e237ef9a29e5265a279 | /applications/bootloader/targets/bare.armv7m.ek-tm4c123gxl.dg/NodeId.cxx | bb22ebb5a3aca0bc72bb1fea4b07956a6935587e | [
"BSD-2-Clause"
] | permissive | bakerstu/openmrn | 9a07d3a72fad1d0447c1e59acfeeff61c9c76c5a | ca333ec4b35e1ffc1323aa62936db0bd043ef6df | refs/heads/master | 2023-08-31T12:11:46.046315 | 2023-08-31T00:53:31 | 2023-08-31T00:54:05 | 6,500,256 | 45 | 42 | BSD-2-Clause | 2023-09-10T10:39:52 | 2012-11-02T02:20:12 | C++ | UTF-8 | C++ | false | false | 311 | cxx | #include "openlcb/If.hxx"
#include "address.h"
extern const openlcb::NodeID NODE_ID;
const openlcb::NodeID NODE_ID = 0x050101011800ULL | NODEID_LOW_BITS;
extern const uint16_t DEFAULT_ALIAS;
const uint16_t DEFAULT_ALIAS = 0x400 | NODEID_LOW_BITS;
#define BOOTLOADER_DATAGRAM
#include "openlcb/Bootloader.hxx"
| [
"balazs.racz@gmail.com"
] | balazs.racz@gmail.com |
1433a23f3d837d17873e5974d8aaa9ff7f33e8c9 | f4336f24d94354989c670e59d08d53327ea51b27 | /src/net.h | 190403e26bdde7c747319f34a660fe3498330188 | [
"MIT"
] | permissive | zahidaliayub/Pennies | e5b494b4a9a8b3f7ae4b08cec029044c30b0203b | f4b59b3d865459cf3d841c118ae5ed24dc0309af | refs/heads/master | 2021-08-19T02:44:03.770763 | 2014-10-26T13:02:13 | 2014-10-26T13:02:13 | 111,927,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,229 | h | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_NET_H
#define BITCOIN_NET_H
#include "bloom.h"
#include <deque>
#include <boost/array.hpp>
#include <boost/foreach.hpp>
#include <openssl/rand.h>
#ifndef WIN32
#include <arpa/inet.h>
#endif
#include "mruset.h"
#include "netbase.h"
#include "protocol.h"
#include "addrman.h"
class CRequestTracker;
class CNode;
class CBlockIndex;
extern int nBestHeight;
extern int64 nBestHeightTime;
inline unsigned int ReceiveBufferSize() { return 1000*GetArg("-maxreceivebuffer", 5*1000); }
inline unsigned int SendBufferSize() { return 1000*GetArg("-maxsendbuffer", 1*1000); }
void AddOneShot(std::string strDest);
bool RecvLine(SOCKET hSocket, std::string& strLine);
bool GetMyExternalIP(CNetAddr& ipRet);
void AddressCurrentlyConnected(const CService& addr);
CNode* FindNode(const CNetAddr& ip);
CNode* FindNode(const CService& ip);
CNode* ConnectNode(CAddress addrConnect, const char *strDest = NULL, int64 nTimeout=0);
void MapPort();
unsigned short GetListenPort();
bool BindListenPort(const CService &bindAddr, std::string& strError=REF(std::string()));
void StartNode(void* parg);
bool StopNode();
CNode * getNodeSync();
enum
{
LOCAL_NONE, // unknown
LOCAL_IF, // address a local interface listens on
LOCAL_BIND, // address explicit bound to
LOCAL_UPNP, // address reported by UPnP
LOCAL_IRC, // address reported by IRC (deprecated)
LOCAL_HTTP, // address reported by whatismyip.com and similar
LOCAL_MANUAL, // address explicitly specified (-externalip=)
LOCAL_MAX
};
void SetLimited(enum Network net, bool fLimited = true);
bool IsLimited(enum Network net);
bool IsLimited(const CNetAddr& addr);
bool AddLocal(const CService& addr, int nScore = LOCAL_NONE);
bool AddLocal(const CNetAddr& addr, int nScore = LOCAL_NONE);
bool SeenLocal(const CService& addr);
bool IsLocal(const CService& addr);
bool GetLocal(CService &addr, const CNetAddr *paddrPeer = NULL);
bool IsReachable(const CNetAddr &addr);
void SetReachable(enum Network net, bool fFlag = true);
CAddress GetLocalAddress(const CNetAddr *paddrPeer = NULL);
enum
{
MSG_TX = 1,
MSG_BLOCK,
// Nodes may always request a MSG_FILTERED_BLOCK in a getdata, however,
// MSG_FILTERED_BLOCK should not appear in any invs except as a part of getdata.
MSG_FILTERED_BLOCK,
};
class CRequestTracker
{
public:
void (*fn)(void*, CDataStream&);
void* param1;
explicit CRequestTracker(void (*fnIn)(void*, CDataStream&)=NULL, void* param1In=NULL)
{
fn = fnIn;
param1 = param1In;
}
bool IsNull()
{
return fn == NULL;
}
};
/** Thread types */
enum threadId
{
THREAD_SOCKETHANDLER,
THREAD_OPENCONNECTIONS,
THREAD_MESSAGEHANDLER,
THREAD_MINER,
THREAD_RPCLISTENER,
THREAD_UPNP,
THREAD_DNSSEED,
THREAD_ADDEDCONNECTIONS,
THREAD_DUMPADDRESS,
THREAD_RPCHANDLER,
THREAD_MINTER,
THREAD_MAX
};
extern bool fClient;
extern bool fDiscover;
extern bool fUseUPnP;
extern uint64 nLocalServices;
extern uint64 nLocalHostNonce;
extern CAddress addrSeenByPeer;
extern boost::array<int, THREAD_MAX> vnThreadsRunning;
extern CAddrMan addrman;
extern std::vector<CNode*> vNodes;
extern CCriticalSection cs_vNodes;
extern std::map<CInv, CDataStream> mapRelay;
extern std::deque<std::pair<int64, CInv> > vRelayExpiration;
extern CCriticalSection cs_mapRelay;
extern std::map<CInv, int64> mapAlreadyAskedFor;
class CNodeStats
{
public:
uint64 nServices;
int64 nLastSend;
int64 nLastRecv;
int64 nTimeConnected;
std::string addrName;
int nVersion;
std::string strSubVer;
bool fInbound;
int64 nReleaseTime;
int nStartingHeight;
int nMisbehavior;
};
enum{
RESET_IDLE,
RESET_WAITING_FOR_DISCONNECT,
RESET_WAITING_FOR_CLEAR_MSG,
RESET_WAITING_FOR_CONNECTED
};
/** Information about a peer */
class CNode
{
public:
// socket
uint64 nServices;
SOCKET hSocket;
CDataStream vSend;
CDataStream vRecv;
size_t nSendSize;
CCriticalSection cs_vSend;
std::deque<CInv> vRecvGetData;
CCriticalSection cs_vRecv;
int64 nLastSend;
int64 nLastRecv;
int64 nLastSendEmpty;
int64 nTimeConnected;
int nHeaderStart;
unsigned int nMessageStart;
CAddress addr;
std::string addrName;
CService addrLocal;
int nVersion;
std::string strSubVer;
bool fOneShot;
bool fClient;
bool fInbound;
bool fNetworkNode;
bool fSuccessfullyConnected;
bool fDisconnect;
int nReset;
// We use fRelayTxes for two purposes -
// a) it allows us to not relay tx invs before receiving the peer's version message
// b) the peer may tell us in their version message that we should not relay tx invs
// until they have initialized their bloom filter.
bool fRelayTxes;
CSemaphoreGrant grantOutbound;
CCriticalSection cs_filter;
CBloomFilter* pfilter;
protected:
int nRefCount;
// Denial-of-service detection/prevention
// Key is IP address, value is banned-until-time
static std::map<CNetAddr, int64> setBanned;
static CCriticalSection cs_setBanned;
int nMisbehavior;
public:
int64 nReleaseTime;
std::map<uint256, CRequestTracker> mapRequests;
CCriticalSection cs_mapRequests;
uint256 hashContinue;
CBlockIndex* pindexLastGetBlocksBegin;
uint256 hashLastGetBlocksEnd;
int nStartingHeight;
bool fStartSync;
int64 nSyncTime;
int64 nSyncLastCheckTime;
int nSyncHeight;
int nSyncLastHeight;
bool bUsed;
bool bHeaderUsed;
int nSpeed;
int nDownloaded;
int nHeaderSpeed;
int nHeaderDownloaded;
int64 nCheckSpeedTime;
// flood relay
std::vector<CAddress> vAddrToSend;
std::set<CAddress> setAddrKnown;
bool fGetAddr;
std::set<uint256> setKnown;
uint256 hashCheckpointKnown; // ppcoin: known sent sync-checkpoint
// inventory based relay
mruset<CInv> setInventoryKnown;
std::vector<CInv> vInventoryToSend;
CCriticalSection cs_inventory;
std::multimap<int64, CInv> mapAskFor;
//concurrent sync
int64 nSendGetHeadersTime;
int64 nSendGetDataTime;
uint256 getHeadersHashBegin;
uint256 getHeadersHashEnd;
uint256 getDataHashBegin;
uint256 getDataHashEnd;
CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : vSend(SER_NETWORK, MIN_PROTO_VERSION), vRecv(SER_NETWORK, MIN_PROTO_VERSION)
{
nServices = 0;
hSocket = hSocketIn;
nLastSend = 0;
nLastRecv = 0;
nLastSendEmpty = GetTime();
nTimeConnected = GetTime();
nHeaderStart = -1;
nMessageStart = -1;
addr = addrIn;
addrName = addrNameIn == "" ? addr.ToStringIPPort() : addrNameIn;
nVersion = 0;
strSubVer = "";
fOneShot = false;
fClient = false; // set by version message
fInbound = fInboundIn;
fNetworkNode = false;
fSuccessfullyConnected = false;
fDisconnect = false;
nReset = RESET_IDLE;
nRefCount = 0;
nReleaseTime = 0;
nSendSize = 0;
hashContinue = 0;
pindexLastGetBlocksBegin = 0;
hashLastGetBlocksEnd = 0;
nStartingHeight = -1;
fStartSync = false;
nSyncTime = 0;
nSyncLastCheckTime = 0;
nSyncHeight = 0;
nSyncLastHeight = 0;
bUsed = false;
bHeaderUsed = false;
nSpeed = 0;
nHeaderSpeed = 0;
nDownloaded = 0;
nHeaderDownloaded = 0;
nCheckSpeedTime = 0;
fGetAddr = false;
fRelayTxes = false;
nMisbehavior = 0;
hashCheckpointKnown = 0;
setInventoryKnown.max_size(SendBufferSize() / 1000);
pfilter = new CBloomFilter();
nSendGetHeadersTime = 0;
nSendGetDataTime = 0;
getHeadersHashBegin = uint256(0);
getHeadersHashEnd = uint256(0);
getDataHashBegin = uint256(0);
getDataHashEnd = uint256(0);
// Be shy and don't send version until we hear
if (!fInbound)
PushVersion();
}
~CNode()
{
if (hSocket != INVALID_SOCKET)
{
closesocket(hSocket);
hSocket = INVALID_SOCKET;
}
if (pfilter)
delete pfilter;
}
private:
CNode(const CNode&);
void operator=(const CNode&);
public:
int GetRefCount()
{
return std::max(nRefCount, 0) + (GetTime() < nReleaseTime ? 1 : 0);
}
CNode* AddRef(int64 nTimeout=0)
{
if (nTimeout != 0)
nReleaseTime = std::max(nReleaseTime, GetTime() + nTimeout);
else
nRefCount++;
return this;
}
void Release()
{
nRefCount--;
}
void AddAddressKnown(const CAddress& addr)
{
setAddrKnown.insert(addr);
}
void PushAddress(const CAddress& addr)
{
// Known checking here is only to save space from duplicates.
// SendMessages will filter it again for knowns that were added
// after addresses were pushed.
if (addr.IsValid() && !setAddrKnown.count(addr))
vAddrToSend.push_back(addr);
}
void AddInventoryKnown(const CInv& inv)
{
{
LOCK(cs_inventory);
setInventoryKnown.insert(inv);
}
}
void PushInventory(const CInv& inv)
{
{
LOCK(cs_inventory);
if (!setInventoryKnown.count(inv))
vInventoryToSend.push_back(inv);
}
}
void AskFor(const CInv& inv)
{
// We're using mapAskFor as a priority queue,
// the key is the earliest time the request can be sent
int64& nRequestTime = mapAlreadyAskedFor[inv];
if (fDebugNet)
printf("askfor %s %"PRI64d" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
// Make sure not to reuse time indexes to keep things in the same order
int64 nNow = (GetTime() - 1) * 1000000;
static int64 nLastTime;
++nLastTime;
nNow = std::max(nNow, nLastTime);
nLastTime = nNow;
// Each retry is 2 minutes after the last
nRequestTime = std::max(nRequestTime + 2 * 60 * 1000000, nNow);
mapAskFor.insert(std::make_pair(nRequestTime, inv));
}
void BeginMessage(const char* pszCommand)
{
ENTER_CRITICAL_SECTION(cs_vSend);
if (nHeaderStart != -1)
AbortMessage();
nHeaderStart = vSend.size();
vSend << CMessageHeader(pszCommand, 0);
nMessageStart = vSend.size();
if (fDebug)
printf("sending: %s, ip:%s ", pszCommand, addr.ToString().c_str());
}
void AbortMessage()
{
if (nHeaderStart < 0)
return;
vSend.resize(nHeaderStart);
nHeaderStart = -1;
nMessageStart = -1;
LEAVE_CRITICAL_SECTION(cs_vSend);
if (fDebug)
printf("(aborted)\n");
}
void EndMessage()
{
if (mapArgs.count("-dropmessagestest") && GetRand(atoi(mapArgs["-dropmessagestest"])) == 0)
{
printf("dropmessages DROPPING SEND MESSAGE\n");
AbortMessage();
return;
}
if (nHeaderStart < 0)
return;
// Set the size
unsigned int nSize = vSend.size() - nMessageStart;
memcpy((char*)&vSend[nHeaderStart] + CMessageHeader::MESSAGE_SIZE_OFFSET, &nSize, sizeof(nSize));
// Set the checksum
uint256 hash = Hash(vSend.begin() + nMessageStart, vSend.end());
unsigned int nChecksum = 0;
memcpy(&nChecksum, &hash, sizeof(nChecksum));
assert(nMessageStart - nHeaderStart >= CMessageHeader::CHECKSUM_OFFSET + sizeof(nChecksum));
memcpy((char*)&vSend[nHeaderStart] + CMessageHeader::CHECKSUM_OFFSET, &nChecksum, sizeof(nChecksum));
if (fDebug) {
printf("(%d bytes)\n", nSize);
}
nHeaderStart = -1;
nMessageStart = -1;
LEAVE_CRITICAL_SECTION(cs_vSend);
}
void EndMessageAbortIfEmpty()
{
if (nHeaderStart < 0)
return;
int nSize = vSend.size() - nMessageStart;
if (nSize > 0)
EndMessage();
else
AbortMessage();
}
void PushVersion();
void PushMessage(const char* pszCommand)
{
try
{
BeginMessage(pszCommand);
EndMessage();
}
catch (...)
{
AbortMessage();
throw;
}
}
template<typename T1>
void PushMessage(const char* pszCommand, const T1& a1)
{
try
{
BeginMessage(pszCommand);
vSend << a1;
EndMessage();
}
catch (...)
{
AbortMessage();
throw;
}
}
template<typename T1, typename T2>
void PushMessage(const char* pszCommand, const T1& a1, const T2& a2)
{
try
{
BeginMessage(pszCommand);
vSend << a1 << a2;
EndMessage();
}
catch (...)
{
AbortMessage();
throw;
}
}
template<typename T1, typename T2, typename T3>
void PushMessage(const char* pszCommand, const T1& a1, const T2& a2, const T3& a3)
{
try
{
BeginMessage(pszCommand);
vSend << a1 << a2 << a3;
EndMessage();
}
catch (...)
{
AbortMessage();
throw;
}
}
template<typename T1, typename T2, typename T3, typename T4>
void PushMessage(const char* pszCommand, const T1& a1, const T2& a2, const T3& a3, const T4& a4)
{
try
{
BeginMessage(pszCommand);
vSend << a1 << a2 << a3 << a4;
EndMessage();
}
catch (...)
{
AbortMessage();
throw;
}
}
template<typename T1, typename T2, typename T3, typename T4, typename T5>
void PushMessage(const char* pszCommand, const T1& a1, const T2& a2, const T3& a3, const T4& a4, const T5& a5)
{
try
{
BeginMessage(pszCommand);
vSend << a1 << a2 << a3 << a4 << a5;
EndMessage();
}
catch (...)
{
AbortMessage();
throw;
}
}
template<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
void PushMessage(const char* pszCommand, const T1& a1, const T2& a2, const T3& a3, const T4& a4, const T5& a5, const T6& a6)
{
try
{
BeginMessage(pszCommand);
vSend << a1 << a2 << a3 << a4 << a5 << a6;
EndMessage();
}
catch (...)
{
AbortMessage();
throw;
}
}
template<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7>
void PushMessage(const char* pszCommand, const T1& a1, const T2& a2, const T3& a3, const T4& a4, const T5& a5, const T6& a6, const T7& a7)
{
try
{
BeginMessage(pszCommand);
vSend << a1 << a2 << a3 << a4 << a5 << a6 << a7;
EndMessage();
}
catch (...)
{
AbortMessage();
throw;
}
}
template<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
void PushMessage(const char* pszCommand, const T1& a1, const T2& a2, const T3& a3, const T4& a4, const T5& a5, const T6& a6, const T7& a7, const T8& a8)
{
try
{
BeginMessage(pszCommand);
vSend << a1 << a2 << a3 << a4 << a5 << a6 << a7 << a8;
EndMessage();
}
catch (...)
{
AbortMessage();
throw;
}
}
template<typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9>
void PushMessage(const char* pszCommand, const T1& a1, const T2& a2, const T3& a3, const T4& a4, const T5& a5, const T6& a6, const T7& a7, const T8& a8, const T9& a9)
{
try
{
BeginMessage(pszCommand);
vSend << a1 << a2 << a3 << a4 << a5 << a6 << a7 << a8 << a9;
EndMessage();
}
catch (...)
{
AbortMessage();
throw;
}
}
void PushRequest(const char* pszCommand,
void (*fn)(void*, CDataStream&), void* param1)
{
uint256 hashReply;
RAND_bytes((unsigned char*)&hashReply, sizeof(hashReply));
{
LOCK(cs_mapRequests);
mapRequests[hashReply] = CRequestTracker(fn, param1);
}
PushMessage(pszCommand, hashReply);
}
template<typename T1>
void PushRequest(const char* pszCommand, const T1& a1,
void (*fn)(void*, CDataStream&), void* param1)
{
uint256 hashReply;
RAND_bytes((unsigned char*)&hashReply, sizeof(hashReply));
{
LOCK(cs_mapRequests);
mapRequests[hashReply] = CRequestTracker(fn, param1);
}
PushMessage(pszCommand, hashReply, a1);
}
template<typename T1, typename T2>
void PushRequest(const char* pszCommand, const T1& a1, const T2& a2,
void (*fn)(void*, CDataStream&), void* param1)
{
uint256 hashReply;
RAND_bytes((unsigned char*)&hashReply, sizeof(hashReply));
{
LOCK(cs_mapRequests);
mapRequests[hashReply] = CRequestTracker(fn, param1);
}
PushMessage(pszCommand, hashReply, a1, a2);
}
void PushGetBlocks(CBlockIndex* pindexBegin, uint256 hashEnd);
bool IsSubscribed(unsigned int nChannel);
void Subscribe(unsigned int nChannel, unsigned int nHops=0);
void CancelSubscribe(unsigned int nChannel);
void CloseSocketDisconnect();
bool OpenSocket();
bool DisconnectWhenReset();
bool ConnectWhenReset();
void Cleanup();
// Denial-of-service detection/prevention
// The idea is to detect peers that are behaving
// badly and disconnect/ban them, but do it in a
// one-coding-mistake-won't-shatter-the-entire-network
// way.
// IMPORTANT: There should be nothing I can give a
// node that it will forward on that will make that
// node's peers drop it. If there is, an attacker
// can isolate a node and/or try to split the network.
// Dropping a node for sending stuff that is invalid
// now but might be valid in a later version is also
// dangerous, because it can cause a network split
// between nodes running old code and nodes running
// new code.
static void ClearBanned(); // needed for unit testing
static bool IsBanned(CNetAddr ip);
bool Misbehaving(int howmuch); // 1 == a little, 100 == a lot
void copyStats(CNodeStats &stats);
};
class CTransaction;
void RelayTransaction(const CTransaction& tx, const uint256& hash);
void RelayTransaction(const CTransaction& tx, const uint256& hash, const CDataStream& ss);
/*inline void RelayInventory(const CInv& inv)
{
// Put on lists to offer to the other nodes
{
LOCK(cs_vNodes);
BOOST_FOREACH(CNode* pnode, vNodes)
pnode->PushInventory(inv);
}
}
template<typename T>
void RelayMessage(const CInv& inv, const T& a)
{
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
ss.reserve(10000);
ss << a;
RelayMessage(inv, ss);
}
template<>
inline void RelayMessage<>(const CInv& inv, const CDataStream& ss)
{
{
LOCK(cs_mapRelay);
// Expire old relay messages
while (!vRelayExpiration.empty() && vRelayExpiration.front().first < GetTime())
{
mapRelay.erase(vRelayExpiration.front().second);
vRelayExpiration.pop_front();
}
// Save original serialized message so newer versions are preserved
mapRelay.insert(std::make_pair(inv, ss));
vRelayExpiration.push_back(std::make_pair(GetTime() + 15 * 60, inv));
}
LOCK(cs_vNodes);
BOOST_FOREACH(CNode* pnode, vNodes)
{
if(!pnode->fRelayTxes)
continue;
LOCK(pnode->cs_filter);
if (pnode->pfilter)
{
if (pnode->pfilter->IsRelevantAndUpdate(tx, hash))
pnode->PushInventory(inv);
} else
pnode->PushInventory(inv);
}
//RelayInventory(inv);
}*/
class SyncPoint{
public:
int startHeight;
int endHeight;
SyncPoint(int start, int end)
{
startHeight = start;
endHeight = end;
}
};
class CLightWalletBlock;
typedef std::map<int, CLightWalletBlock*> MapBlockHeaders;
extern std::vector<SyncPoint*> vSyncHeadersPoints;
extern std::vector<SyncPoint*> vSyncBlocksPoints;
extern MapBlockHeaders mapBlockHeaders;
extern std::map<int, uint256> mapSyncHeight2Hash;
extern std::map<uint256, int> mapSyncHash2Height;
#endif
| [
"pengruidago@gmail.com"
] | pengruidago@gmail.com |
e1a4f6d034c28a2ea139324346c2abdaa482d5fd | bdcad863cb0ebdc4ba81bc5d677d7bbf412c6b63 | /gr-capture_tools/include/capture_tools/vector_source_X.h.t | 6478431104b8af876cbd0b8d8f2127782a321636 | [] | no_license | JeffreyRoseMei/capture-tools | 3505ca5d57a7475729a92089c9e96cbd59029e86 | 6e09b1105bc19aa4b4e3a2b934fa612b1a937a8e | refs/heads/master | 2020-04-16T15:34:00.705657 | 2018-10-23T06:39:03 | 2018-10-23T06:39:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,212 | t | /* -*- c++ -*- */
/*
* Copyright 2004,2008,2012-2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio 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, or (at your option)
* any later version.
*
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
// @WARNING@
#ifndef @GUARD_NAME@
#define @GUARD_NAME@
#include <capture_tools/api.h>
#include <gnuradio/sync_block.h>
namespace gr {
namespace capture_tools {
/*!
* \brief Source that streams @TYPE@ items based on the input \p data vector. (with end tag)
* \ingroup misc_blk
*
* \details
* This block produces a stream of samples based on an input
* vector. In C++, this is a std::vector<@TYPE@>, and in Python,
* this is either a list or tuple. The data can repeat infinitely
* until the flowgraph is terminated by some other event or, the
* default, run the data once and stop.
*
* The vector source can also produce stream tags with the
* data. Pass in a vector of gr::tag_t objects and they will be
* emitted based on the specified offset of the tag.
*
* GNU Radio provides a utility Python module in gr.tag_utils to
* convert between tags and Python objects:
* gr.tag_utils.python_to_tag.
*
* We can create tags as Python lists (or tuples) using the list
* structure [int offset, pmt key, pmt value, pmt srcid]. It is
* important to define the list/tuple with the values in the
* correct order and with the correct data type. A python
* dictionary can also be used using the keys: "offset", "key",
* "value", and "srcid" with the same data types as for the lists.
*
* When given a list of tags, the vector source will emit the tags
* repeatedly by updating the offset relative to the vector stream
* length. That is, if the vector has 500 items and a tag has an
* offset of 0, that tag will be placed on item 0, 500, 1000,
* 1500, etc.
*/
class CAPTURE_TOOLS_API @NAME@ : virtual public gr::sync_block
{
public:
// gr::blocks::@NAME@::sptr
typedef boost::shared_ptr<@NAME@> sptr;
static sptr make(const std::vector<@TYPE@> &data,
bool repeat=false, int vlen=1,
const std::vector<tag_t> &tags=std::vector<tag_t>());
virtual void rewind() = 0;
virtual void set_data(const std::vector<@TYPE@> &data,
const std::vector<tag_t> &tags=std::vector<tag_t>()) = 0;
virtual void set_repeat(bool repeat) = 0;
};
} /* namespace blocks */
} /* namespace gr */
#endif /* @GUARD_NAME@ */
| [
"ruben.undheim@gmail.com"
] | ruben.undheim@gmail.com |
ecfac682926e5d8a86782bbeb98be7722c9e31c5 | 501cac00aa84d8656e3ed7c3c4f188be572df752 | /src/3DGL/Gizmos/Gizmo.cpp | 1b70d79f40376b0e855689d954cd8af395de9d56 | [] | no_license | visanalexandru/3DGL | 92604196964dd0e21a5c6b677d42fd6729e51476 | 5e58b8c1396d310c1e1dd56e99d3b08dc25e3264 | refs/heads/master | 2020-06-23T14:01:13.818276 | 2020-03-13T10:06:39 | 2020-03-13T10:06:39 | 198,642,285 | 2 | 0 | null | 2019-11-02T06:47:01 | 2019-07-24T13:35:30 | C | UTF-8 | C++ | false | false | 767 | cpp | //
// Created by gvisan on 11.01.2020.
//
#include "Gizmo.h"
namespace gl3d {
Gizmo::Gizmo(glm::vec3 col) : gizmo_color(col) {
}
glm::vec3 Gizmo::get_color() const {
return gizmo_color;
}
const Mesh &Gizmo::get_mesh() const {
return gizmo_mesh;
}
glm::mat4 Gizmo::get_model_matrix() const {
glm::mat4 to_return(1);
to_return = glm::translate(to_return, position);
to_return = glm::scale(to_return, scale);
return to_return;
}
void Gizmo::set_position(glm::vec3 newpos) {
position = newpos;
}
void Gizmo::set_scale(glm::vec3 newscale) {
scale = newscale;
}
void Gizmo::set_color(glm::vec3 newcolor) {
gizmo_color = newcolor;
}
} | [
"alexandruvisan44@yahoo.com"
] | alexandruvisan44@yahoo.com |
ed675e4f64615b88abd04beca5be388744700989 | 90047daeb462598a924d76ddf4288e832e86417c | /ui/compositor/canvas_painter.cc | a12e85ab06efe118dfddcef8d0cac1ca04b90f4a | [
"BSD-3-Clause"
] | permissive | massbrowser/android | 99b8c21fa4552a13c06bbedd0f9c88dd4a4ad080 | a9c4371682c9443d6e1d66005d4db61a24a9617c | refs/heads/master | 2022-11-04T21:15:50.656802 | 2017-06-08T12:31:39 | 2017-06-08T12:31:39 | 93,747,579 | 2 | 2 | BSD-3-Clause | 2022-10-31T10:34:25 | 2017-06-08T12:36:07 | null | UTF-8 | C++ | false | false | 1,159 | cc | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/compositor/canvas_painter.h"
#include "cc/paint/display_item_list.h"
namespace ui {
CanvasPainter::CanvasPainter(SkBitmap* output,
const gfx::Size& paint_size,
float raster_scale,
SkColor clear_color)
: output_(output),
paint_size_(paint_size),
raster_scale_(raster_scale),
clear_color_(clear_color),
list_(new cc::DisplayItemList),
context_(list_.get(), raster_scale, gfx::Rect(paint_size_)) {}
CanvasPainter::~CanvasPainter() {
gfx::Size pixel_size = gfx::ScaleToCeiledSize(paint_size_, raster_scale_);
SkImageInfo info = SkImageInfo::MakeN32(
pixel_size.width(), pixel_size.height(), kPremul_SkAlphaType);
if (!output_->tryAllocPixels(info))
return;
SkCanvas canvas(*output_);
canvas.clear(clear_color_);
canvas.scale(raster_scale_, raster_scale_);
list_->Finalize();
list_->Raster(&canvas, nullptr);
}
} // namespace ui
| [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com |
4307301f86cb067b371618c8c4cd87069c9ba6df | 923106e80f1bd0a3a5134fb4ed40dbdf8bed733c | /src/Application.hpp | 060b0f28b481259dda61791b0f3f0a3ed80b07d7 | [
"MIT"
] | permissive | kondrak/quake_bsp_vulkan | bba623021d56288990dc89c8748854745cfee2b7 | bb149b8f15ee02417c183f9421ce8c5aae06f7fc | refs/heads/master | 2021-05-11T02:24:40.654540 | 2020-10-16T19:02:47 | 2020-10-16T19:02:47 | 118,361,772 | 86 | 8 | MIT | 2018-09-06T17:10:31 | 2018-01-21T18:27:53 | C++ | UTF-8 | C++ | false | false | 1,538 | hpp | #ifndef APPLICATION_INCLUDED
#define APPLICATION_INCLUDED
#include <map>
#include <string>
#include "InputHandlers.hpp"
#include "Math.hpp"
class BspMap;
class StatsUI;
/*
* main application
*/
class Application
{
public:
void OnWindowResize(int newWidth, int newHeight);
void OnWindowMinimized(bool minimized);
void OnStart(int argc, char **argv);
void OnRender();
void OnUpdate(float dt);
void UpdateStats();
void OnTerminate();
inline bool Running() const { return m_running; }
inline void Terminate() { m_running = false; }
bool KeyPressed(KeyCode key);
void OnKeyPress(KeyCode key);
void OnKeyRelease(KeyCode key);
void OnMouseMove(int x, int y);
private:
enum DebugRender : uint8_t
{
None = 0,
RenderMapStats = 1 << 0,
PrintThreadStats = 1 << 1
};
void UpdateCamera(float dt);
inline void SetKeyPressed(KeyCode key, bool pressed) { m_keyStates[key] = pressed; }
// helper functions for parsing Quake entities
Math::Vector3f FindPlayerStart(const char *entities);
bool FindEntityAttribute(const std::string &entity, const char *entityName, const char *attribName, std::string &output);
bool m_running = true; // application is running
bool m_noRedraw = false; // do not perform window redraw
BspMap *m_q3map = nullptr; // loaded map
StatsUI *m_q3stats = nullptr; // map stats UI
uint8_t m_debugRenderState = RenderMapStats;
std::map<KeyCode, bool> m_keyStates;
};
#endif
| [
"krzysztof.kondrak@gmail.com"
] | krzysztof.kondrak@gmail.com |
234f69c677ea4e604d5dbb5b6b8360addc562c4d | 88d58ec86b7f186c83ba2086948f1a43b9a06f78 | /src/test/DoS_tests.cpp | 08e99399eeec20b81b4364f7cffadad1c10d3d2f | [
"MIT"
] | permissive | peopleproject/PeopleCore | ef512a11728cf1687091d38c1ccf1b5c09812294 | db2801c29a325ed9d27914ead006affd605defc5 | refs/heads/master | 2020-03-10T07:50:09.832480 | 2018-04-12T16:29:31 | 2018-04-12T16:29:31 | 129,271,920 | 0 | 0 | MIT | 2018-04-12T16:29:32 | 2018-04-12T15:23:18 | C++ | UTF-8 | C++ | false | false | 7,159 | cpp | // Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// Unit tests for denial-of-service detection/prevention code
#include "chainparams.h"
#include "keystore.h"
#include "net.h"
#include "net_processing.h"
#include "pow.h"
#include "script/sign.h"
#include "serialize.h"
#include "util.h"
#include "test/test_people.h"
#include <stdint.h>
#include <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp>
// Tests this internal-to-main.cpp method:
extern bool AddOrphanTx(const CTransaction& tx, NodeId peer);
extern void EraseOrphansFor(NodeId peer);
extern unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans);
struct COrphanTx {
CTransaction tx;
NodeId fromPeer;
};
extern std::map<uint256, COrphanTx> mapOrphanTransactions;
extern std::map<uint256, std::set<uint256> > mapOrphanTransactionsByPrev;
CService ip(uint32_t i)
{
struct in_addr s;
s.s_addr = i;
return CService(CNetAddr(s), Params().GetDefaultPort());
}
static NodeId id = 0;
BOOST_FIXTURE_TEST_SUITE(DoS_tests, TestingSetup)
BOOST_AUTO_TEST_CASE(DoS_banning)
{
std::atomic<bool> interruptDummy(false);
connman->ClearBanned();
CAddress addr1(ip(0xa0b0c001), NODE_NONE);
CNode dummyNode1(id++, NODE_NETWORK, 0, INVALID_SOCKET, addr1, "", true);
dummyNode1.SetSendVersion(PROTOCOL_VERSION);
GetNodeSignals().InitializeNode(&dummyNode1, *connman);
dummyNode1.nVersion = 1;
dummyNode1.fSuccessfullyConnected = true;
Misbehaving(dummyNode1.GetId(), 100); // Should get banned
SendMessages(&dummyNode1, *connman, interruptDummy);
BOOST_CHECK(connman->IsBanned(addr1));
BOOST_CHECK(!connman->IsBanned(ip(0xa0b0c001|0x0000ff00))); // Different IP, not banned
CAddress addr2(ip(0xa0b0c002), NODE_NONE);
CNode dummyNode2(id++, NODE_NETWORK, 0, INVALID_SOCKET, addr2, "", true);
dummyNode2.SetSendVersion(PROTOCOL_VERSION);
GetNodeSignals().InitializeNode(&dummyNode2, *connman);
dummyNode2.nVersion = 1;
dummyNode2.fSuccessfullyConnected = true;
Misbehaving(dummyNode2.GetId(), 50);
SendMessages(&dummyNode2, *connman, interruptDummy);
BOOST_CHECK(!connman->IsBanned(addr2)); // 2 not banned yet...
BOOST_CHECK(connman->IsBanned(addr1)); // ... but 1 still should be
Misbehaving(dummyNode2.GetId(), 50);
SendMessages(&dummyNode2, *connman, interruptDummy);
BOOST_CHECK(connman->IsBanned(addr2));
}
BOOST_AUTO_TEST_CASE(DoS_banscore)
{
std::atomic<bool> interruptDummy(false);
connman->ClearBanned();
mapArgs["-banscore"] = "111"; // because 11 is my favorite number
CAddress addr1(ip(0xa0b0c001), NODE_NONE);
CNode dummyNode1(id++, NODE_NETWORK, 0, INVALID_SOCKET, addr1, "", true);
dummyNode1.SetSendVersion(PROTOCOL_VERSION);
GetNodeSignals().InitializeNode(&dummyNode1, *connman);
dummyNode1.nVersion = 1;
dummyNode1.fSuccessfullyConnected = true;
Misbehaving(dummyNode1.GetId(), 100);
SendMessages(&dummyNode1, *connman, interruptDummy);
BOOST_CHECK(!connman->IsBanned(addr1));
Misbehaving(dummyNode1.GetId(), 10);
SendMessages(&dummyNode1, *connman, interruptDummy);
BOOST_CHECK(!connman->IsBanned(addr1));
Misbehaving(dummyNode1.GetId(), 1);
SendMessages(&dummyNode1, *connman, interruptDummy);
BOOST_CHECK(connman->IsBanned(addr1));
mapArgs.erase("-banscore");
}
BOOST_AUTO_TEST_CASE(DoS_bantime)
{
std::atomic<bool> interruptDummy(false);
connman->ClearBanned();
int64_t nStartTime = GetTime();
SetMockTime(nStartTime); // Overrides future calls to GetTime()
CAddress addr(ip(0xa0b0c001), NODE_NONE);
CNode dummyNode(id++, NODE_NETWORK, 0, INVALID_SOCKET, addr, "", true);
dummyNode.SetSendVersion(PROTOCOL_VERSION);
GetNodeSignals().InitializeNode(&dummyNode, *connman);
dummyNode.nVersion = 1;
dummyNode.fSuccessfullyConnected = true;
Misbehaving(dummyNode.GetId(), 100);
SendMessages(&dummyNode, *connman, interruptDummy);
BOOST_CHECK(connman->IsBanned(addr));
SetMockTime(nStartTime+60*60);
BOOST_CHECK(connman->IsBanned(addr));
SetMockTime(nStartTime+60*60*24+1);
BOOST_CHECK(!connman->IsBanned(addr));
}
CTransaction RandomOrphan()
{
std::map<uint256, COrphanTx>::iterator it;
it = mapOrphanTransactions.lower_bound(GetRandHash());
if (it == mapOrphanTransactions.end())
it = mapOrphanTransactions.begin();
return it->second.tx;
}
BOOST_AUTO_TEST_CASE(DoS_mapOrphans)
{
CKey key;
key.MakeNewKey(true);
CBasicKeyStore keystore;
keystore.AddKey(key);
// 50 orphan transactions:
for (int i = 0; i < 50; i++)
{
CMutableTransaction tx;
tx.vin.resize(1);
tx.vin[0].prevout.n = 0;
tx.vin[0].prevout.hash = GetRandHash();
tx.vin[0].scriptSig << OP_1;
tx.vout.resize(1);
tx.vout[0].nValue = 1*CENT;
tx.vout[0].scriptPubKey = GetScriptForDestination(key.GetPubKey().GetID());
AddOrphanTx(tx, i);
}
// ... and 50 that depend on other orphans:
for (int i = 0; i < 50; i++)
{
CTransaction txPrev = RandomOrphan();
CMutableTransaction tx;
tx.vin.resize(1);
tx.vin[0].prevout.n = 0;
tx.vin[0].prevout.hash = txPrev.GetHash();
tx.vout.resize(1);
tx.vout[0].nValue = 1*CENT;
tx.vout[0].scriptPubKey = GetScriptForDestination(key.GetPubKey().GetID());
SignSignature(keystore, txPrev, tx, 0);
AddOrphanTx(tx, i);
}
// This really-big orphan should be ignored:
for (int i = 0; i < 10; i++)
{
CTransaction txPrev = RandomOrphan();
CMutableTransaction tx;
tx.vout.resize(1);
tx.vout[0].nValue = 1*CENT;
tx.vout[0].scriptPubKey = GetScriptForDestination(key.GetPubKey().GetID());
tx.vin.resize(500);
for (unsigned int j = 0; j < tx.vin.size(); j++)
{
tx.vin[j].prevout.n = j;
tx.vin[j].prevout.hash = txPrev.GetHash();
}
SignSignature(keystore, txPrev, tx, 0);
// Re-use same signature for other inputs
// (they don't have to be valid for this test)
for (unsigned int j = 1; j < tx.vin.size(); j++)
tx.vin[j].scriptSig = tx.vin[0].scriptSig;
BOOST_CHECK(!AddOrphanTx(tx, i));
}
// Test EraseOrphansFor:
for (NodeId i = 0; i < 3; i++)
{
size_t sizeBefore = mapOrphanTransactions.size();
EraseOrphansFor(i);
BOOST_CHECK(mapOrphanTransactions.size() < sizeBefore);
}
// Test LimitOrphanTxSize() function:
LimitOrphanTxSize(40);
BOOST_CHECK(mapOrphanTransactions.size() <= 40);
LimitOrphanTxSize(10);
BOOST_CHECK(mapOrphanTransactions.size() <= 10);
LimitOrphanTxSize(0);
BOOST_CHECK(mapOrphanTransactions.empty());
BOOST_CHECK(mapOrphanTransactionsByPrev.empty());
}
BOOST_AUTO_TEST_SUITE_END()
| [
"stomass2015@gmail.com"
] | stomass2015@gmail.com |
de57c5ae8f4713fec2d3173c11f103fd65b5e364 | 87929efca3d762486e086f222efef55b29256eca | /contracts/cubetrainlib/optional.hpp | 02895e8acd3cd68bfcfd4f4b2737fca58de62f21 | [
"MIT"
] | permissive | ProbeChain/cubetrain | d4650865ae1a821d78aaf6712d7bdf8937e562ab | f02f9b67ef0d3e6d46d3aa96e6f9974ae72b13ff | refs/heads/master | 2022-12-13T12:12:41.137518 | 2019-11-30T10:09:02 | 2019-11-30T10:09:02 | 224,988,171 | 1 | 0 | MIT | 2022-12-11T18:49:23 | 2019-11-30T09:24:26 | C++ | UTF-8 | C++ | false | false | 16,861 | hpp | #pragma once
#include <utility>
namespace cubetrain {
/**
* @defgroup optionaltype Optional Type
* @brief Defines otional type which is similar to boost::optional
* @ingroup types
* @{
*/
/**
* Provides stack-based nullable value similar to boost::optional
*
* @brief Provides stack-based nullable value similar to boost::optional
*/
template<typename T>
class optional {
public:
typedef T value_type;
typedef typename std::aligned_storage<sizeof(T), alignof(T)>::type storage_type;
/**
* Default constructor
*
* @brief Construct a new optional object
*/
optional():_valid(false){}
/**
* Destructor
*
* @brief Destroy the optional object
*/
~optional(){ reset(); }
/**
* Construct a new optional object from another optional object
*
* @brief Construct a new optional object
*/
optional( optional& o )
:_valid(false)
{
if( o._valid ) new (ptr()) T( *o );
_valid = o._valid;
}
/**
* Copy constructor
*
* @brief Construct a new optional object
*/
optional( const optional& o )
:_valid(false)
{
if( o._valid ) new (ptr()) T( *o );
_valid = o._valid;
}
/**
* Move constructor
*
* @brief Construct a new optional object
*/
optional( optional&& o )
:_valid(false)
{
if( o._valid ) new (ptr()) T( std::move(*o) );
_valid = o._valid;
o.reset();
}
/**
* Construct a new optional object from another type of optional object
*
* @brief Construct a new optional object from another type of optional object
*/
template<typename U>
optional( const optional<U>& o )
:_valid(false)
{
if( o._valid ) new (ptr()) T( *o );
_valid = o._valid;
}
/**
* Construct a new optional object from another type of optional object
*
* @brief Construct a new optional object from another type of optional object
*/
template<typename U>
optional( optional<U>& o )
:_valid(false)
{
if( o._valid )
{
new (ptr()) T( *o );
}
_valid = o._valid;
}
/**
* Construct a new optional object from another type of optional object
*
* @brief Construct a new optional object from another type of optional object
*/
template<typename U>
optional( optional<U>&& o )
:_valid(false)
{
if( o._valid ) new (ptr()) T( std::move(*o) );
_valid = o._valid;
o.reset();
}
/**
* Construct a new optional object from another object
*
* @brief Construct a new optional object from another object
*/
template<typename U>
optional( U&& u )
:_valid(true)
{
new ((char*)ptr()) T( std::forward<U>(u) );
}
/**
* Construct a new optional object from another object
*
* @brief Construct a new optional object from another object
*/
template<typename U>
optional& operator=( U&& u )
{
reset();
new (ptr()) T( std::forward<U>(u) );
_valid = true;
return *this;
}
/**
* Construct the contained value in place
*
* @brief Construct the contained value in place
* @tparam Args - Type of the contained value
* @param args - The value to be assigned as contained value
*/
template<typename ...Args>
void emplace(Args&& ... args) {
if (_valid) {
reset();
}
new ((char*)ptr()) T( std::forward<Args>(args)... );
_valid = true;
}
/**
* Assignment Operator
*
* @brief Assignment Operator
* @tparam U - Type of the contained value of the optional object to be assigned from
* @param o - The other optional object to be assigned from
* @return optional& - The reference to this object
*/
template<typename U>
optional& operator=( optional<U>& o ) {
if (this != &o) {
if( _valid && o._valid ) {
ref() = *o;
} else if( !_valid && o._valid ) {
new (ptr()) T( *o );
_valid = true;
} else if (_valid) {
reset();
}
}
return *this;
}
/**
* Assignment Operator
*
* @brief Assignment Operator
* @tparam U - Type of the contained value of the optional object to be assigned from
* @param o - The other optional object to be assigned from
* @return optional& - The reference to this object
*/
template<typename U>
optional& operator=( const optional<U>& o ) {
if (this != &o) {
if( _valid && o._valid ) {
ref() = *o;
} else if( !_valid && o._valid ) {
new (ptr()) T( *o );
_valid = true;
} else if (_valid) {
reset();
}
}
return *this;
}
/**
* Assignment Operator
*
* @brief Assignment Operator
* @param o - The other optional object to be assigned from
* @return optional& - The reference to this object
*/
optional& operator=( optional& o ) {
if (this != &o) {
if( _valid && o._valid ) {
ref() = *o;
} else if( !_valid && o._valid ) {
new (ptr()) T( *o );
_valid = true;
} else if (_valid) {
reset();
}
}
return *this;
}
/**
* Assignment Operator
*
* @brief Assignment Operator
* @param o - The other optional object to be assigned from
* @return optional& - The reference to this object
*/
optional& operator=( const optional& o ) {
if (this != &o) {
if( _valid && o._valid ) {
ref() = *o;
} else if( !_valid && o._valid ) {
new (ptr()) T( *o );
_valid = true;
} else if (_valid) {
reset();
}
}
return *this;
}
/**
* Assignment Operator
*
* @brief Assignment Operator
* @tparam U - Type of the contained value of the optional object to be assigned from
* @param o - The other optional object to be assigned from
* @return optional& - The reference to this object
*/
template<typename U>
optional& operator=( optional<U>&& o )
{
if (this != &o)
{
if( _valid && o._valid )
{
ref() = std::move(*o);
o.reset();
} else if ( !_valid && o._valid ) {
*this = std::move(*o);
} else if (_valid) {
reset();
}
}
return *this;
}
/**
* Assignment Operator
*
* @brief Assignment Operator
* @param o - The other optional object to be assigned from
* @return optional& - The reference to this object
*/
optional& operator=( optional&& o )
{
if (this != &o)
{
if( _valid && o._valid )
{
ref() = std::move(*o);
o.reset();
} else if ( !_valid && o._valid ) {
*this = std::move(*o);
} else if (_valid) {
reset();
}
}
return *this;
}
/**
* Check if this optional has valid contained value
*
* @brief Check if this optional has valid contained value
* @return true - if this optional has valid contained value
* @return false - otherwise
*/
bool valid()const { return _valid; }
/**
* Logical Negation operator
*
* @brief Logical Negation Operator
* @return true - if this optional has invalid contained value
* @return false - otherwise
*/
bool operator!()const { return !_valid; }
/**
* Similar to valid(). However, this operation is not safe and can result in unintential
* casts and comparisons, use valid() or !!
*
* @brief Check if this optional has valid contained value
* @return true - if this optional has valid contained value
* @return false - otherwise
*/
explicit operator bool()const { return _valid; }
/**
* Get contained value of this optional
*
* @brief Pointer Dereference operator
* @return T& - Contained value
*/
T& operator*() { cubetrain_assert(_valid, "dereference of empty optional"); return ref(); }
/**
* Get contained value of this optional
*
* @brief Pointer Dereference operator
* @return T& - Contained value
*/
const T& operator*()const { cubetrain_assert(_valid, "dereference of empty optional"); return ref(); }
/**
* Get pointer to the contained value
*
* @brief Member Access Through Pointer Operator
* @return T& - The pointer to the contained value
*/
T* operator->()
{
cubetrain_assert(_valid, "dereference of empty optional");
return ptr();
}
/**
* Get pointer to the contained value
*
* @brief Member Access Through Pointer Operator
* @return T& - The pointer to the contained value
*/
const T* operator->()const
{
cubetrain_assert(_valid, "dereference of empty optional");
return ptr();
}
/**
* Assignment Operator with nullptr
*
* @brief Assignment Operator with nullptr
* @return optional& - The reference to this object
*/
optional& operator=(std::nullptr_t)
{
reset();
return *this;
}
/**
* Call the destructor fot he contained value and mark this optional as valid
*
* @brief Reset the optional object
*/
void reset()
{
if( _valid ) {
ref().~T(); // cal destructor
}
_valid = false;
}
/**
* Check if a contained value is less than b contained value
*
* @brief Less than operator
* @param a - First object to compare
* @param b - Second object to compare
* @return true - if a contained value is less than b contained value
* @return false - otherwise
*/
friend bool operator < ( const optional a, optional b )
{
if( a.valid() && b.valid() ) return *a < *b;
return a.valid() < b.valid();
}
/**
* Check if a contained value is equal to b contained value
*
* @brief Equality operator
* @param a - First object to compare
* @param b - Second object to compare
* @return true - if contained value is equal to b contained value
* @return false - otherwise
*/
friend bool operator == ( const optional a, optional b )
{
if( a.valid() && b.valid() ) return *a == *b;
return a.valid() == b.valid();
}
/**
* Serialize an optional object
*
* @brief Serialize an optional object
* @param ds - The stream to write
* @param op - The value to serialize
* @tparam Stream - Type of datastream
* @return cubetrain::datastream<Stream>& - Reference to the datastream
*/
template<typename Stream>
friend inline cubetrain::datastream<Stream>& operator>> (cubetrain::datastream<Stream>& ds, optional& op)
{
char valid = 0;
ds >> valid;
if (valid) {
op._valid = true;
ds >> *op;
}
return ds;
}
/**
* Deserialize an optional object
*
* @brief Deserialize an optional object
* @param ds - The stream to read
* @param op - The destination for deserialized value
* @tparam Stream - Type of datastream
* @return cubetrain::datastream<Stream>& - Reference to the datastream
*/
template<typename Stream>
friend inline cubetrain::datastream<Stream>& operator<< (cubetrain::datastream<Stream>& ds, const optional& op)
{
char valid = op._valid;
ds << valid;
if (valid) ds << *op;
return ds;
}
private:
template<typename U> friend class optional;
T& ref() { return *ptr(); }
const T& ref()const { return *ptr(); }
T* ptr() { return reinterpret_cast<T*>(&_value); }
const T* ptr()const { return reinterpret_cast<const T*>(&_value); }
bool _valid;
storage_type _value;
};
/**
* Check equality between two optional object that shares same type of contained value
*
* @brief Equality Operator
* @tparam T - Type of contained value of the optional objects
* @param left - First object to be compared
* @param right - Second object to be compared
* @return true - if both optional objects are equal
* @return false
*/
template<typename T>
bool operator == ( const optional<T>& left, const optional<T>& right ) {
return (!left == !right) || (!!left && *left == *right);
}
/**
* Check equality between an optional object with another object
*
* @brief Equality Operator
* @tparam T - Type of contained value of the optional object
* @tparam U - Type of the other object to be compared
* @param left - First object to be compared
* @param u - Second object to be compared
* @return true - if the optional objects contained value is equal with the compared object
* @return false
*/
template<typename T, typename U>
bool operator == ( const optional<T>& left, const U& u ) {
return !!left && *left == u;
}
/**
* Check inequality between two optional object that shares same type of contained value
*
* @brief Inquality Operator
* @tparam T - Type of contained value of the optional objects
* @param left - First object to be compared
* @param right - Second object to be compared
* @return true - if both optional objects are unequal
* @return false
*/
template<typename T>
bool operator != ( const optional<T>& left, const optional<T>& right ) {
return (!left != !right) || (!!left && *left != *right);
}
/**
* Check inequality between an optional object with another object
*
* @brief Inqquality Operator
* @tparam T - Type of contained value of the optional object
* @tparam U - Type of the other object to be compared
* @param left - First object to be compared
* @param u - Second object to be compared
* @return true - if the optional objects contained value is unequal with the compared object
* @return false
*/
template<typename T, typename U>
bool operator != ( const optional<T>& left, const U& u ) {
return !left || *left != u;
}
///@} optional
} // namespace cubetrain
| [
"qf_wu@shanchain.com"
] | qf_wu@shanchain.com |
cdd2f3604861d2e77677576f2c935318bf0e415a | 72b441939e97689da6257a36b6eb1204afb5aab3 | /DataStructs/Stack/dynStack.cpp | 3f1cf44e19929528b18ee0d28f58cff0bd248845 | [] | no_license | ovielma/Data-Structures-And-Algorithms | dc079829b67f0726bec1e0b3c90e6f2087f878f4 | 2111e764c0e111eba6ad780e37b67ed58bcc2501 | refs/heads/master | 2022-12-02T17:39:49.537088 | 2020-08-23T15:29:29 | 2020-08-23T15:29:29 | 280,492,891 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cpp | #include "dynamicStack.cpp"
#include <iostream>
#include <string>
using namespace std;
void pushItem(DynamicStack<string> &);
void popItem(DynamicStack<string> &);
int main() {
DynamicStack<string> stack;
pushItem(stack);
popItem(stack);
return 0;
}
void pushItem(DynamicStack<string> &stack) {
string item;
// push item on the stack
cout << "\nEnter the value to push onto the stack: ";
getline(cin, item);
stack.push(item);
}
void popItem(DynamicStack<string> &stack) {
string item = "";
stack.pop(item);
if(item != "")
cout << item << " was popped from the stack\n";
} | [
"ozviis11@gmail.com"
] | ozviis11@gmail.com |
dd305d929006592ccc6df61982c345ca371c7e60 | f8db933eda02b9a1349730ae23b25861e913bc0b | /src/uvmsc/reg/uvm_reg_field.cpp | 0cecff7fb11240e5a231aeae4df2ae0870985889 | [
"Apache-2.0"
] | permissive | kopinions/uvm-systemc | 6dfeede5d177fa68fae0d351de5ebab550dce496 | c8171a98bc75b3ff3ec207d369e1b724ae64632f | refs/heads/main | 2023-07-02T20:18:59.529805 | 2021-08-12T10:40:48 | 2021-08-12T10:40:48 | 323,860,120 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 64,980 | cpp | //----------------------------------------------------------------------
// Copyright 2013-2020 NXP B.V.
// Copyright 2004-2009 Synopsys, Inc.
// Copyright 2010-2011 Mentor Graphics Corporation
// Copyright 2010-2011 Cadence Design Systems, Inc.
// Copyright 2014 Fraunhofer-Gesellschaft zur Foerderung
// der angewandten Forschung e.V.
// Copyright 2014 Université Pierre et Marie Curie, Paris
// Copyright 2018 Intel Corp.
// All Rights Reserved Worldwide
//
// 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 <iomanip>
#include "uvmsc/reg/uvm_reg_field.h"
#include "uvmsc/reg/uvm_reg_model.h"
#include "uvmsc/reg/uvm_reg_item.h"
#include "uvmsc/reg/uvm_reg_map.h"
#include "uvmsc/reg/uvm_reg_adapter.h"
#include "uvmsc/reg/uvm_reg_block.h"
#include "uvmsc/reg/uvm_reg_cbs.h"
//////////////
namespace uvm {
//------------------------------------------------------------------------------
// static data member initialization
//------------------------------------------------------------------------------
bool uvm_reg_field::m_predefined = false;
bool uvm_reg_field::m_predefined_policies = uvm_reg_field::m_predefine_policies();
unsigned int uvm_reg_field::m_max_size = 0;
//----------------------------------------------------------------------
// Constructor
//
//! Create a new field instance
//!
//! This method should not be used directly.
//! The uvm_reg_field::type_id::create() factory method
//! should be used instead.
//----------------------------------------------------------------------
uvm_reg_field::uvm_reg_field( const std::string& name ) : uvm_object(name)
{
m_parent = NULL;
m_mirrored = 0;
m_desired = 0;
m_access = "";
m_lsb = 0;
m_size = 0;
m_volatile = false;
m_reset.clear();
m_written = false;
m_read_in_progress = false;
m_write_in_progress = false;
std::string m_fname = "";
m_lineno = 0;
m_cover_on = 0;
m_individually_accessible = false;
m_check = UVM_NO_CHECK;
}
//----------------------------------------------------------------------
// member function: configure
//
//! Instance-specific configuration
//!
//! Specify the \p parent register of this field, its
//! \p size in bits, the position of its least-significant bit
//! within the register relative to the least-significant bit
//! of the register, its \p access policy, volatility,
//! "HARD" \p reset value,
//! whether the field value is actually reset
//! (the \p reset value is ignored if false),
//! whether the field value may be randomized and
//! whether the field is the only one to occupy a byte lane in the register.
//!
//! See #set_access for a specification of the pre-defined
//! field access policies.
//!
//! If the field access policy is a pre-defined policy and NOT one of
//! "RW", "WRC", "WRS", "WO", "W1", or "WO1",
//! the value of ~is_rand~ is ignored and the rand_mode() for the
//! field instance is turned off since it cannot be written.
//----------------------------------------------------------------------
void uvm_reg_field::configure( uvm_reg* parent,
unsigned int size,
unsigned int lsb_pos,
const std::string& access,
bool is_volatile, // renamed icw UVM-SV
uvm_reg_data_t reset,
bool has_reset,
bool is_rand,
bool individually_accessible )
{
m_parent = parent;
if(size == 0)
{
UVM_ERROR("RegModel",
"Field '" + get_full_name() + "' cannot have 0 bits");
size = 1;
}
m_size = size;
m_volatile = is_volatile;
m_access = uvm_toupper(access);
m_lsb = lsb_pos;
m_cover_on = UVM_NO_COVERAGE;
m_written = false;
m_check = is_volatile ? UVM_NO_CHECK : UVM_CHECK;
m_individually_accessible = individually_accessible;
if(has_reset)
set_reset(reset);
/* TODO add support in resource container for const& values
else
uvm_resource_db<bool>::set("REG::"+get_full_name(),
"NO_REG_HW_RESET_TEST", true);
*/
m_parent->add_field(this);
if(m_policy_names().find(m_access) == m_policy_names().end()) // not exists
{
UVM_ERROR("RegModel", "Access policy '" + access +
"' for field '" + get_full_name() + "' is not defined. Setting to RW");
m_access = "RW";
}
if (size > m_max_size)
m_max_size = size;
// Ignore is_rand if the field is known not to be writeable
// i.e. not "RW", "WRC", "WRS", "WO", "W1", "WO1"
if( (access == "RO") || (access == "RC") || (access == "RS") ||
(access == "WC") || (access == "WS") || (access == "W1C") ||
(access == "W1S") || (access == "W1T") || (access == "W0C") ||
(access == "W0S") || (access == "W0T") || (access == "W1SRC") ||
(access == "W1CRS") || (access == "W0SRC") || (access == "W0CRS") ||
(access == "WSRC") || (access == "WCRS") || (access == "WOC") ||
(access == "WOS") )
is_rand = false;
/* TODO randomization
if (!is_rand)
m_value.rand_mode(0);
*/
}
//----------------------------------------------------------------------
// Group: Introspection
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// member function: get_name
//
//! Get the simple name
//!
//! Return the simple object name of this field
//----------------------------------------------------------------------
// Inherit from base class
//----------------------------------------------------------------------
// member function: get_full_name
//
//! Get the hierarchical name
//!
//! Return the hierarchical name of this field
//! The base of the hierarchical name is the root block.
//----------------------------------------------------------------------
const std::string uvm_reg_field::get_full_name() const
{
return m_parent->get_full_name() + "." + get_name();
}
//----------------------------------------------------------------------
// member function: get_parent
//
//! Get the parent register
//----------------------------------------------------------------------
uvm_reg* uvm_reg_field::get_parent() const
{
return m_parent;
}
//----------------------------------------------------------------------
// member function: get_lsb_pos
//
//! Return the position of the field
//!
//! Returns the index of the least significant bit of the field
//! in the register that instantiates it.
//! An offset of 0 indicates a field that is aligned with the
//! least-significant bit of the register.
//----------------------------------------------------------------------
unsigned int uvm_reg_field::get_lsb_pos() const
{
return m_lsb;
}
//----------------------------------------------------------------------
// member function: get_n_bits
//
//! Returns the width, in number of bits, of the field.
//----------------------------------------------------------------------
unsigned int uvm_reg_field::get_n_bits() const
{
return m_size;
}
//----------------------------------------------------------------------
// member function: get_max_size
//
//! Returns the width, in number of bits, of the largest field.
//----------------------------------------------------------------------
unsigned int uvm_reg_field::get_max_size()
{
return m_max_size;
}
//----------------------------------------------------------------------
// member function: set_access
//
//! Modify the access policy of the field
//!
//! Modify the access policy of the field to the specified one and
//! return the previous access policy.
//!
//! The pre-defined access policies are as follows.
//! The effect of a read operation are applied after the current
//! value of the field is sampled.
//! The read operation will return the current value,
//! not the value affected by the read operation (if any).
//!
//! "RO" - W: no effect, R: no effect
//! "RW" - W: as-is, R: no effect
//! "RC" - W: no effect, R: clears all bits
//! "RS" - W: no effect, R: sets all bits
//! "WRC" - W: as-is, R: clears all bits
//! "WRS" - W: as-is, R: sets all bits
//! "WC" - W: clears all bits, R: no effect
//! "WS" - W: sets all bits, R: no effect
//! "WSRC" - W: sets all bits, R: clears all bits
//! "WCRS" - W: clears all bits, R: sets all bits
//! "W1C" - W: 1/0 clears/no effect on matching bit, R: no effect
//! "W1S" - W: 1/0 sets/no effect on matching bit, R: no effect
//! "W1T" - W: 1/0 toggles/no effect on matching bit, R: no effect
//! "W0C" - W: 1/0 no effect on/clears matching bit, R: no effect
//! "W0S" - W: 1/0 no effect on/sets matching bit, R: no effect
//! "W0T" - W: 1/0 no effect on/toggles matching bit, R: no effect
//! "W1SRC" - W: 1/0 sets/no effect on matching bit, R: clears all bits
//! "W1CRS" - W: 1/0 clears/no effect on matching bit, R: sets all bits
//! "W0SRC" - W: 1/0 no effect on/sets matching bit, R: clears all bits
//! "W0CRS" - W: 1/0 no effect on/clears matching bit, R: sets all bits
//! "WO" - W: as-is, R: error
//! "WOC" - W: clears all bits, R: error
//! "WOS" - W: sets all bits, R: error
//! "W1" - W: first one after ~HARD~ reset is as-is, other W have no effects, R: no effect
//! "WO1" - W: first one after ~HARD~ reset is as-is, other W have no effects, R: error
//!
//! It is important to remember that modifying the access of a field
//! will make the register model diverge from the specification
//! that was used to create it.
//----------------------------------------------------------------------
std::string uvm_reg_field::set_access( const std::string& mode )
{
std::string access = m_access;
m_access = uvm_toupper(mode);
if (m_policy_names().find(m_access) == m_policy_names().end()) // not exists
{
UVM_ERROR("RegModel", "Access policy '" + m_access +
"' is not a defined field access policy");
m_access = access;
}
return access;
}
//----------------------------------------------------------------------
// member function: define_access (static)
//
//! Define a new access policy value
//!
//! Because field access policies are specified using string values,
//! there is no way for SystemVerilog to verify if a specific access
//! value is valid or not.
//! To help catch typing errors, user-defined access values
//! must be defined using this method to avoid being reported as an
//! invalid access policy.
//!
//! The name of field access policies are always converted to all uppercase.
//!
//! Returns TRUE if the new access policy was not previously
//! defined.
//! Returns FALSE otherwise but does not issue an error message.
//----------------------------------------------------------------------
bool uvm_reg_field::define_access( std::string name )
{
if (!m_predefined)
m_predefined = m_predefine_policies();
name = uvm_toupper(name);
if (m_policy_names().find(name) != m_policy_names().end()) // exists
return false;
m_policy_names()[name] = true;
return true;
}
//----------------------------------------------------------------------
// member function: get_access
//
//! Get the access policy of the field
//!
//! Returns the current access policy of the field
//! when written and read through the specified address \p map.
//! If the register containing the field is mapped in multiple
//! address map, an address map must be specified.
//! The access policy of a field from a specific
//! address map may be restricted by the register's access policy in that
//! address map.
//! For example, a RW field may only be writable through one of
//! the address maps and read-only through all of the other maps.
//----------------------------------------------------------------------
std::string uvm_reg_field::get_access( uvm_reg_map* map ) const
{
std::string _access = m_access;
std::string _rights = m_parent->get_rights(map);
if( map == uvm_reg_map::backdoor() )
return _access;
// Is the register restricted in this map?
if (_rights == "RW") // No restrictions
return _access;
if (_rights == "RO")
{
if ( (_access == "RW") || (_access == "RO") ||
(_access == "WC") || (_access == "WS") ||
(_access == "W1C") || (_access == "W1S") ||
(_access == "W1T") || (_access == "W0C") ||
(_access == "W0S") || (_access == "W0T") ||
(_access == "W1") )
_access = "RO";
if ( (_access == "RC") || (_access == "WRC") ||
(_access == "W1SRC") || (_access == "W0SRC") ||
(_access == "WSRC") )
_access = "RC";
if ( (_access == "RS") || (_access == "WRS") ||
(_access == "W1CRS") || (_access == "W0CRS") ||
(_access == "WCRS") )
_access = "RS";
if ( (_access == "WO") || (_access == "WOC") ||
(_access == "WOS") || (_access == "WO1") )
{
UVM_ERROR("RegModel",
_access + " field '" + get_name() + "' restricted to RO in map '"
+ map->get_full_name() + "'");
}
} // if "RO"
else
if (_rights == "WO")
{
if ( (_access == "RW") || (_access == "WO") )
_access = "WO";
else // No change f|| the other modes
{
UVM_ERROR("RegModel",
_access + " field '" + get_full_name() + "' restricted to WO in map '"
+ map->get_full_name() + "'");
}
} // if "WO"
else // default to error
UVM_ERROR("RegModel",
"Register '" + m_parent->get_full_name() +
"' containing field '" + get_name() + "' is mapped in map '" +
map->get_full_name() + "' with unknown access right '" +
m_parent->get_rights(map) + "'");
return _access;
}
//----------------------------------------------------------------------
// member function: is_known_access
//
//! Check if access policy is a built-in one.
//!
//! Returns TRUE if the current access policy of the field,
//! when written and read through the specified address \p map,
//! is a built-in access policy.
//----------------------------------------------------------------------
bool uvm_reg_field::is_known_access( uvm_reg_map* map ) const
{
std::string acc = get_access(map);
if( (acc == "RO") || (acc == "RW") || (acc == "RC") ||
(acc == "RS") || (acc == "WC") || (acc == "WS") ||
(acc == "W1C") || (acc == "W1S") || (acc == "W1T") ||
(acc == "W0C") || (acc == "W0S") || (acc == "W0T") ||
(acc == "WRC") || (acc == "WRS") || (acc == "W1SRC") ||
(acc == "W1CRS") || (acc == "W0SRC") || (acc == "W0CRS") ||
(acc == "WSRC") || (acc == "WCRS") || (acc == "WO") || (acc == "WOC") ||
(acc == "WOS") || (acc == "W1") || (acc == "WO1" ) )
return true;
return false;
}
//----------------------------------------------------------------------
// member function: set_volatility
//
//! Modify the volatility of the field to the specified one.
//!
//! It is important to remember that modifying the volatility of a field
//! will make the register model diverge from the specification
//! that was used to create it.
//----------------------------------------------------------------------
void uvm_reg_field::set_volatility( bool is_volatile )
{
m_volatile = is_volatile;
}
//----------------------------------------------------------------------
// member function: is_volatile
//
//! Indicates if the field value is volatile
//!
//! UVM uses the IEEE 1685-2009 IP-XACT definition of "volatility".
//! If TRUE, the value of the register is not predictable because it
//! may change between consecutive accesses.
//! This typically indicates a field whose value is updated by the DUT.
//! The nature or cause of the change is not specified.
//! If FALSE, the value of the register is not modified between
//! consecutive accesses.
//----------------------------------------------------------------------
bool uvm_reg_field::is_volatile() const
{
return m_volatile;
}
//----------------------------------------------------------------------
// Group: Access
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// member function: set
//
//! Set the desired value for this field
//!
//! It sets the desired value of the field to the specified \p value
//! modified by the field access policy.
//! It does not actually set the value of the field in the design,
//! only the desired value in the abstraction class.
//! Use the uvm_reg::update() method to update the actual register
//! with the desired value or the <uvm_reg_field::write()> method
//! to actually write the field and update its mirrored value.
//!
//! The final desired value in the mirror is a function of the field access
//! policy and the set value, just like a normal physical write operation
//! to the corresponding bits in the hardware.
//! As such, this method (when eventually followed by a call to
//! uvm_reg::update() )
//! is a zero-time functional replacement for the uvm_reg_field::write()
//! method.
//! For example, the desired value of a read-only field is not modified
//! by this method and the desired value of a write-once field can only
//! be set if the field has not yet been
//! written to using a physical (for example, front-door) write operation.
//!
//! Use the uvm_reg_field::predict() to modify the mirrored value of
//! the field.
//----------------------------------------------------------------------
void uvm_reg_field::set( uvm_reg_data_t value,
const std::string& fname,
int lineno )
{
uvm_reg_data_t mask = (1 << m_size)-1;
m_fname = fname;
m_lineno = lineno;
if (value >> m_size)
{
std::ostringstream str;
str << "Specified value (0x"
<< value
<< ") greater than field '"
<< get_name()
<< "' size ("
<< m_size
<< " bits)";
UVM_WARNING("RegModel", str.str() );
value &= mask;
}
if (m_parent->is_busy())
{
UVM_WARNING("UVM/FLD/SET/BSY",
"Setting the value of field '" + get_name() +
" while containing register '" + m_parent->get_full_name() +
"' is being accessed may result in loss of desired field value. A race condition between threads concurrently accessing the register model is the likely cause of the problem.");
}
if( m_access == "RO" ) m_desired = m_desired; // TODO original UVM-SV code! remove?
if( m_access == "RW" ) m_desired = value;
if( m_access == "RC" ) m_desired = m_desired; // TODO original UVM-SV code! remove?
if( m_access == "RS" ) m_desired = m_desired; // TODO original UVM-SV code! remove?
if( m_access == "WC" ) m_desired = 0;
if( m_access == "WS" ) m_desired = mask;
if( m_access == "WRC" ) m_desired = value;
if( m_access == "WRS" ) m_desired = value;
if( m_access == "WSRC" ) m_desired = mask;
if( m_access == "WCRS" ) m_desired = 0;
if( m_access == "W1C" ) m_desired = m_desired & (~value);
if( m_access == "W1S" ) m_desired = m_desired | value;
if( m_access == "W1T" ) m_desired = m_desired ^ value;
if( m_access == "W0C" ) m_desired = m_desired & value;
if( m_access == "W0S" ) m_desired = m_desired | (~value & mask);
if( m_access == "W0T" ) m_desired = m_desired ^ (~value & mask);
if( m_access == "W1SRC" ) m_desired = m_desired | value;
if( m_access == "W1CRS" ) m_desired = m_desired & (~value);
if( m_access == "W0SRC" ) m_desired = m_desired | (~value & mask);
if( m_access == "W0CRS" ) m_desired = m_desired & value;
if( m_access == "WO" ) m_desired = value;
if( m_access == "WOC" ) m_desired = 0;
if( m_access == "WOS" ) m_desired = mask;
if( m_access == "W1" ) m_desired = (m_written) ? m_desired : value;
if( m_access == "WO1" ) m_desired = (m_written) ? m_desired : value;
// default:
m_desired = value;
m_value = m_desired;
}
//----------------------------------------------------------------------
// member function: get
//
//! Return the desired value of the field
//!
//! It does not actually read the value
//! of the field in the design, only the desired value
//! in the abstraction class. Unless set to a different value
//! using the uvm_reg_field::set(), the desired value
//! and the mirrored value are identical.
//!
//! Use the uvm_reg_field::read() or uvm_reg_field::peek()
//! method to get the actual field value.
//!
//! If the field is write-only, the desired/mirrored
//! value is the value last written and assumed
//! to reside in the bits implementing it.
//! Although a physical read operation would something different,
//! the returned value is the actual content.
//----------------------------------------------------------------------
uvm_reg_data_t uvm_reg_field::get( const std::string& fname,
int lineno ) const
{
m_fname = fname;
m_lineno = lineno;
return m_desired;
}
//----------------------------------------------------------------------
// member function: get_mirrored_value
//
//! Return the mirrored value of the field
//!
//! It does not actually read the value of the field in the design, only the
//! mirrored value in the abstraction class.
//!
//! If the field is write-only, the desired/mirrored
//! value is the value last written and assumed
//! to reside in the bits implementing it.
//! Although a physical read operation would something different,
//! the returned value is the actual content.
//----------------------------------------------------------------------
uvm_reg_data_t uvm_reg_field::get_mirrored_value( const std::string& fname,
int lineno ) const
{
m_fname = fname;
m_lineno = lineno;
return m_mirrored;
}
//----------------------------------------------------------------------
// member function: reset
//
//! Reset the desired/mirrored value for this field.
//!
//! It sets the desired and mirror value of the field
//! to the reset event specified by \p kind.
//! If the field does not have a reset value specified for the
//! specified reset ~kind~ the field is unchanged.
//!
//! It does not actually reset the value of the field in the design,
//! only the value mirrored in the field abstraction class.
//!
//! Write-once fields can be modified after
//! a "HARD" reset operation.
//----------------------------------------------------------------------
void uvm_reg_field::reset( const std::string& kind )
{
if (m_reset.find(kind) == m_reset.end()) // not exists
return;
m_mirrored = m_reset[kind];
m_desired = m_mirrored;
m_value = m_mirrored;
if (kind == "HARD")
m_written = false;
}
//----------------------------------------------------------------------
// member function: get_reset
//
//! Get the specified reset value for this field
//!
//! Return the reset value for this field
//! for the specified reset \p kind.
//! Returns the current field value is no reset value has been
//! specified for the specified reset event.
//----------------------------------------------------------------------
uvm_reg_data_t uvm_reg_field::get_reset( const std::string& kind ) const
{
if (m_reset.find(kind) == m_reset.end()) // not exists
return m_desired;
return m_reset.find(kind)->second;
}
//----------------------------------------------------------------------
// member function: has_reset
//
//! Check if the field has a reset value specified
//!
//! Return TRUE if this field has a reset value specified
//! for the specified reset \p kind.
//! If \p delete is true, removes the reset value, if any.
//----------------------------------------------------------------------
bool uvm_reg_field::has_reset( const std::string& kind,
bool do_delete )
{
if (m_reset.find(kind) == m_reset.end()) // not exists
return false;
if (do_delete)
m_reset.erase(kind);
return true;
}
//----------------------------------------------------------------------
// member function: set_reset
//
//! Specify or modify the reset value for this field
//!
//! Specify or modify the reset value for this field corresponding
//! to the cause specified by \p kind.
//----------------------------------------------------------------------
void uvm_reg_field::set_reset( uvm_reg_data_t value,
const std::string& kind )
{
m_reset[kind] = value & ((1<<m_size) - 1);
}
//----------------------------------------------------------------------
// member function: needs_update
//
//! Check if the abstract model contains different desired and mirrored values.
//!
//! If a desired field value has been modified in the abstraction class
//! without actually updating the field in the DUT,
//! the state of the DUT (more specifically what the abstraction class
//! thinks the state of the DUT is) is outdated.
//! This method returns TRUE
//! if the state of the field in the DUT needs to be updated
//! to match the desired value.
//! The mirror values or actual content of DUT field are not modified.
//! Use the uvm_reg::update() to actually update the DUT field.
//----------------------------------------------------------------------
bool uvm_reg_field::needs_update() const
{
return (m_mirrored != m_desired);
}
//----------------------------------------------------------------------
// member function: write
//
//! Write the specified value in this field
//!
//! Write \p value in the DUT field that corresponds to this
//! abstraction class instance using the specified access
//! \p path.
//! If the register containing this field is mapped in more
//! than one address map,
//! an address \p map must be
//! specified if a physical access is used (front-door access).
//! If a back-door access path is used, the effect of writing
//! the field through a physical access is mimicked. For
//! example, read-only bits in the field will not be written.
//!
//! The mirrored value will be updated using the uvm_reg_field::predict()
//! method.
//!
//! If a front-door access is used, and
//! if the field is the only field in a byte lane and
//! if the physical interface corresponding to the address map used
//! to access the field support byte-enabling,
//! then only the field is written.
//! Otherwise, the entire register containing the field is written,
//! and the mirrored values of the other fields in the same register
//! are used in a best-effort not to modify their value.
//!
//! If a backdoor access is used, a peek-modify-poke process is used.
//! in a best-effort not to modify the value of the other fields in the
//! register.
//----------------------------------------------------------------------
void uvm_reg_field::write( uvm_status_e& status,
uvm_reg_data_t value,
uvm_path_e path,
uvm_reg_map* map,
uvm_sequence_base* parent,
int prior,
uvm_object* extension,
const std::string& fname,
int lineno )
{
uvm_reg_item* rw;
rw = uvm_reg_item::type_id::create("field_write_item", NULL, get_full_name());
rw->element = this;
rw->element_kind = UVM_FIELD;
rw->access_kind = UVM_WRITE;
rw->value[0] = value;
rw->path = path;
rw->map = map;
rw->parent = parent;
rw->prior = prior;
rw->extension = extension;
rw->fname = fname;
rw->lineno = lineno;
do_write(rw);
status = rw->status;
uvm_reg_item::type_id::destroy(rw);
}
//----------------------------------------------------------------------
// member function: read
//
//! Read the current value from this field
//!
//! Read and return \p value from the DUT field that corresponds to this
//! abstraction class instance using the specified access
//! \p path.
//! If the register containing this field is mapped in more
//! than one address map, an address \p map must be
//! specified if a physical access is used (front-door access).
//! If a back-door access path is used, the effect of reading
//! the field through a physical access is mimicked. For
//! example, clear-on-read bits in the filed will be set to zero.
//!
//! The mirrored value will be updated using the uvm_reg_field::predict()
//! method.
//!
//! If a front-door access is used, and
//! if the field is the only field in a byte lane and
//! if the physical interface corresponding to the address map used
//! to access the field support byte-enabling,
//! then only the field is read.
//! Otherwise, the entire register containing the field is read,
//! and the mirrored values of the other fields in the same register
//! are updated.
//!
//! If a backdoor access is used, the entire containing register is peeked
//! and the mirrored value of the other fields in the register is updated.
//----------------------------------------------------------------------
void uvm_reg_field::read( uvm_status_e& status, // output
uvm_reg_data_t& value, // output
uvm_path_e path,
uvm_reg_map* map,
uvm_sequence_base* parent,
int prior,
uvm_object* extension,
const std::string& fname,
int lineno )
{
uvm_reg_item* rw;
rw = uvm_reg_item::type_id::create("field_read_item", NULL, get_full_name());
rw->element = this;
rw->element_kind = UVM_FIELD;
rw->access_kind = UVM_READ;
rw->value[0] = 0;
rw->path = path;
rw->map = map;
rw->parent = parent;
rw->prior = prior;
rw->extension = extension;
rw->fname = fname;
rw->lineno = lineno;
do_read(rw);
value = rw->value[0];
status = rw->status;
uvm_reg_item::type_id::destroy(rw);
}
//----------------------------------------------------------------------
// member function: poke
//
//! Deposit the specified value in this field
//!
//! Deposit the value in the DUT field corresponding to this
//! abstraction class instance, as-is, using a back-door access.
//! A peek-modify-poke process is used
//! in a best-effort not to modify the value of the other fields in the
//! register.
//!
//! The mirrored value will be updated using the uvm_reg_field::predict()
//! method.
//----------------------------------------------------------------------
void uvm_reg_field::poke( uvm_status_e& status, // output
uvm_reg_data_t value,
const std::string& kind,
uvm_sequence_base* parent,
uvm_object* extension,
const std::string& fname,
int lineno )
{
uvm_reg_data_t tmp;
m_fname = fname;
m_lineno = lineno;
if (value >> m_size)
{
UVM_WARNING("RegModel",
"uvm_reg_field::poke(): Value exceeds size of field '" +
get_name() + "'");
value &= value & ((1<<m_size)-1);
}
m_parent->m_atomic_check_lock(1);
m_parent->m_is_locked_by_field = true;
tmp = 0;
// What is the current values of the other fields???
m_parent->peek(status, tmp, kind, parent, extension, fname, lineno);
if (status == UVM_NOT_OK)
{
std::ostringstream str;
str << "uvm_reg_field::poke(): Peek of register '"
<< m_parent->get_full_name()
<< "' returned status "
<< uvm_status_name[status];
UVM_ERROR("RegModel",str.str());
m_parent->m_atomic_check_lock(0);
m_parent->m_is_locked_by_field = false;
return;
}
// Force the value for this field then poke the resulting value
tmp &= ~(((1<<m_size)-1) << m_lsb);
tmp |= value << m_lsb;
m_parent->poke(status, tmp, kind, parent, extension, fname, lineno);
m_parent->m_atomic_check_lock(0);
m_parent->m_is_locked_by_field = false;
}
//----------------------------------------------------------------------
// member function: peek
//
//! Read the current value from this field
//!
//! Sample the value in the DUT field corresponding to this
//! abstraction class instance using a back-door access.
//! The field value is sampled, not modified.
//!
//! Uses the HDL path for the design abstraction specified by \p kind.
//!
//! The entire containing register is peeked
//! and the mirrored value of the other fields in the register
//! are updated using the uvm_reg_field::predict() method.
//----------------------------------------------------------------------
void uvm_reg_field::peek( uvm_status_e& status, // output
uvm_reg_data_t& value, // output
const std::string& kind,
uvm_sequence_base* parent,
uvm_object* extension,
const std::string& fname,
int lineno )
{
uvm_reg_data_t reg_value = 0;
m_fname = fname;
m_lineno = lineno;
m_parent->peek(status, reg_value, kind, parent, extension, fname, lineno);
value = (reg_value >> m_lsb) & ((1<<m_size)-1); // TODO check, moved parenthesis
}
//----------------------------------------------------------------------
// member function: mirror
//
//! Read the field and update/check its mirror value
//!
//! Read the field and optionally compared the readback value
//! with the current mirrored value if \p check is UVM_CHECK.
//! The mirrored value will be updated using the predict()
//! method based on the readback value.
//!
//! The \p path argument specifies whether to mirror using
//! the UVM_FRONTDOOR> (read) or
//! or UVM_BACKDOOR> (peek()).
//!
//! If \p check is specified as UVM_CHECK,
//! an error message is issued if the current mirrored value
//! does not match the readback value, unless #set_compare was used
//! disable the check.
//!
//! If the containing register is mapped in multiple address maps and physical
//! access is used (front-door access), an address \p map must be specified.
//! For write-only fields, their content is mirrored and optionally
//! checked only if a UVM_BACKDOOR
//! access path is used to read the field.
//----------------------------------------------------------------------
void uvm_reg_field::mirror( uvm_status_e& status, // output
uvm_check_e check,
uvm_path_e path,
uvm_reg_map* map,
uvm_sequence_base* parent,
int prior,
uvm_object* extension,
const std::string& fname,
int lineno )
{
m_fname = fname;
m_lineno = lineno;
m_parent->mirror( status, check, path, map, parent, prior, extension,
fname, lineno);
}
//----------------------------------------------------------------------
// member function: set_compare
//
//! Sets the compare policy during a mirror update.
//! The field value is checked against its mirror only when both the
//! \p check argument in uvm_reg_block::mirror, uvm_reg::mirror,
//! or uvm_reg_field::mirror and the compare policy for the
//! field is UVM_CHECK.
//----------------------------------------------------------------------
void uvm_reg_field::set_compare( uvm_check_e check )
{
m_check = check;
}
//----------------------------------------------------------------------
// member function: get_compare
//
//! Returns the compare policy for this field.
//----------------------------------------------------------------------
uvm_check_e uvm_reg_field::get_compare() const
{
return m_check;
}
//----------------------------------------------------------------------
// member function: is_indv_accessible
//
//! Check if this field can be written individually, i.e. without
//! affecting other fields in the containing register.
//----------------------------------------------------------------------
bool uvm_reg_field::is_indv_accessible( uvm_path_e path,
uvm_reg_map* local_map ) const
{
if (path == UVM_BACKDOOR)
{
UVM_WARNING("RegModel",
"Individual BACKDOOR field access not available for field '" +
get_full_name() + "'. Accessing complete register instead.");
return false;
}
if (!m_individually_accessible)
{
UVM_WARNING("RegModel",
"Individual field access not available for field '" +
get_full_name() + "'. Accessing complete register instead.");
return false;
}
// Cannot access individual fields if the container register
// has a user-defined front-door
if (m_parent->get_frontdoor(local_map) != NULL)
{
UVM_WARNING("RegModel",
"Individual field access not available for field '" +
get_name() + "' because register '" +
m_parent->get_full_name() +
"' has a user-defined front-door. Accessing complete register instead.");
return false;
}
uvm_reg_map* system_map = local_map->get_root_map();
uvm_reg_adapter* adapter = system_map->get_adapter();
if (adapter->supports_byte_enable)
return true;
int bus_width = local_map->get_n_bytes();
std::vector<uvm_reg_field *>fields;
m_parent->get_fields(fields);
if (fields.size() != 1)
{
unsigned int fld_idx = 0;
int bus_sz = bus_width*8;
for( unsigned int i = 0; i < fields.size(); i++ )
{
if (fields[i] == this)
{
fld_idx = i;
break;
}
}
int this_lsb = fields[fld_idx]->get_lsb_pos();
int prev_lsb = this_lsb;
int next_lsb = this_lsb;
int this_sz = fields[fld_idx]->get_n_bits();
int prev_sz = this_sz;
if (fld_idx > 0)
{
prev_lsb = fields[fld_idx-1]->get_lsb_pos();
prev_sz = fields[fld_idx-1]->get_n_bits();
}
if (fld_idx < fields.size()-1)
next_lsb = fields[fld_idx+1]->get_lsb_pos();
// if first field in register
if (fld_idx == 0 &&
((next_lsb % bus_sz) == 0 ||
(next_lsb - this_sz) > (next_lsb % bus_sz)))
return true;
// if last field in register
else
if (fld_idx == (fields.size()-1) &&
((this_lsb % bus_sz) == 0 ||
(this_lsb - (prev_lsb + prev_sz)) >= (this_lsb % bus_sz)))
return true;
// if somewhere in between
else
{
if((this_lsb % bus_sz) == 0)
{
if((next_lsb % bus_sz) == 0 ||
(next_lsb - (this_lsb + this_sz)) >= (next_lsb % bus_sz))
return true;
}
else
{
if( (next_lsb - (this_lsb + this_sz)) >= (next_lsb % bus_sz) &&
((this_lsb - (prev_lsb + prev_sz)) >= (this_lsb % bus_sz)) )
return true;
}
} // else this_lsb % bus_sz
} // else field-size
UVM_WARNING("RegModel",
"Target bus does not support byte enabling, and the field '" +
get_full_name() + "' is not the only field within the entire bus width. " +
"Individual field access will not be available. " +
"Accessing complete register instead.");
return false;
}
//----------------------------------------------------------------------
// member function: predict
//
//! Update the mirrored value for this field.
//!
//! Predict the mirror value of the field based on the specified
//! observed \p value on a bus using the specified address \p map.
//!
//! If \p kind is specified as UVM_PREDICT_READ, the value
//! was observed in a read transaction on the specified address \p map or
//! backdoor (if \p path is UVM_BACKDOOR).
//! If \p kind is specified as UVM_PREDICT_WRITE, the value
//! was observed in a write transaction on the specified address \p map or
//! backdoor (if \p path is UVM_BACKDOOR).
//! If \p kind is specified as UVM_PREDICT_DIRECT, the value
//! was computed and is updated as-is, without regard to any access policy.
//! For example, the mirrored value of a read-only field is modified
//! by this method if \p kind is specified as UVM_PREDICT_DIRECT.
//!
//! This method does not allow an update of the mirror
//! when the register containing this field is busy executing
//! a transaction because the results are unpredictable and
//! indicative of a race condition in the testbench.
//!
//! Returns TRUE if the prediction was successful.
//----------------------------------------------------------------------
bool uvm_reg_field::predict( uvm_reg_data_t value,
uvm_reg_byte_en_t be,
uvm_predict_e kind,
uvm_path_e path,
uvm_reg_map* map,
const std::string& fname,
int lineno )
{
uvm_reg_item* rw = new uvm_reg_item();
rw->value[0] = value;
rw->path = path;
rw->map = map;
rw->fname = fname;
rw->lineno = lineno;
rw->status = UVM_NOT_OK;
do_predict(rw, kind, be);
return (rw->status != UVM_NOT_OK);
}
//----------------------------------------------------------------------
// Group: Callbacks
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// member function: pre_write
//
//! Called before field write.
//!
//! If the specified data value, access \p path or address \p map are modified,
//! the updated data value, access path or address map will be used
//! to perform the register operation.
//! If the \p status is modified to anything other than UVM_IS_OK,
//! the operation is aborted.
//!
//! The field callback methods are invoked after the callback methods
//! on the containing register.
//! The registered callback methods are invoked after the invocation
//! of this method.
//----------------------------------------------------------------------
void uvm_reg_field::pre_write( uvm_reg_item* rw )
{}
//----------------------------------------------------------------------
// member function: post_write
//
//! Called after field write.
//!
//! If the specified \p status is modified,
//! the updated status will be
//! returned by the register operation.
//!
//! The field callback methods are invoked after the callback methods
//! on the containing register.
//! The registered callback methods are invoked before the invocation
//! of this method.
//----------------------------------------------------------------------
void uvm_reg_field::post_write( uvm_reg_item* rw )
{}
//----------------------------------------------------------------------
// member function: pre_read
//
//! Called before field read.
//!
//! If the access \p path or address \p map in the \p rw argument are modified,
//! the updated access path or address map will be used to perform
//! the register operation.
//! If the \p status is modified to anything other than UVM_IS_OK,
//! the operation is aborted.
//!
//! The field callback methods are invoked after the callback methods
//! on the containing register.
//! The registered callback methods are invoked after the invocation
//! of this method.
//----------------------------------------------------------------------
void uvm_reg_field::pre_read( uvm_reg_item* rw )
{}
//----------------------------------------------------------------------
// member function: post_read
//
//! Called after field read.
//!
//! If the specified readback data or \p status in the \p rw argument is
//! modified, the updated readback data or status will be
//! returned by the register operation.
//!
//! The field callback methods are invoked after the callback methods
//! on the containing register.
//! The registered callback methods are invoked before the invocation
//! of this method.
//----------------------------------------------------------------------
void uvm_reg_field::post_read( uvm_reg_item* rw )
{}
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
//////// Implementation-defined member functions start here ////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
//----------------------------------------------------------------------
// member function: get_register
//
// Implementation defined
//----------------------------------------------------------------------
uvm_reg* uvm_reg_field::get_register() const
{
return m_parent;
}
//----------------------------------------------------------------------
// member function: m_predefined_policies
//
// Implementation defined
//----------------------------------------------------------------------
bool uvm_reg_field::m_predefine_policies()
{
if (m_predefined)
return true;
m_predefined = true;
define_access("RO");
define_access("RW");
define_access("RC");
define_access("RS");
define_access("WRC");
define_access("WRS");
define_access("WC");
define_access("WS");
define_access("WSRC");
define_access("WCRS");
define_access("W1C");
define_access("W1S");
define_access("W1T");
define_access("W0C");
define_access("W0S");
define_access("W0T");
define_access("W1SRC");
define_access("W1CRS");
define_access("W0SRC");
define_access("W0CRS");
define_access("WO");
define_access("WOC");
define_access("WOS");
define_access("W1");
define_access("WO1");
return true;
}
//----------------------------------------------------------------------
// member function: m_predict
//
// Implementation defined
//----------------------------------------------------------------------
uvm_reg_data_t uvm_reg_field::m_predict( uvm_reg_data_t cur_val,
uvm_reg_data_t wr_val,
uvm_reg_map* map )
{
uvm_reg_data_t mask = (1 << m_size)-1;
std::string access = get_access(map);
if( access == "RO" ) return cur_val;
if( access == "RW" ) return wr_val;
if( access == "RC" ) return cur_val;
if( access == "RS" ) return cur_val;
if( access == "WC" ) return 0;
if( access == "WS" ) return mask;
if( access == "WRC" ) return wr_val;
if( access == "WRS" ) return wr_val;
if( access == "WSRC" ) return mask;
if( access == "WCRS" ) return 0;
if( access == "W1C" ) return cur_val & (~wr_val);
if( access == "W1S" ) return cur_val | wr_val;
if( access == "W1T" ) return cur_val ^ wr_val;
if( access == "W0C" ) return cur_val & wr_val;
if( access == "W0S" ) return cur_val | (~wr_val & mask);
if( access == "W0T" ) return cur_val ^ (~wr_val & mask);
if( access == "W1SRC" ) return cur_val | wr_val;
if( access == "W1CRS" ) return cur_val & (~wr_val);
if( access == "W0SRC" ) return cur_val | (~wr_val & mask);
if( access == "W0CRS" ) return cur_val & wr_val;
if( access == "WO" ) return wr_val;
if( access == "WOC" ) return 0;
if( access == "WOS" ) return mask;
if( access == "W1" ) return (m_written) ? cur_val : wr_val;
if( access == "WO1" ) return (m_written) ? cur_val : wr_val;
//default:
return wr_val;
}
//----------------------------------------------------------------------
// member function: m_update
//
// Implementation defined
//----------------------------------------------------------------------
uvm_reg_data_t uvm_reg_field::m_update()
{
// Figure out which value must be written to get the desired value
// given what we think is the current value in the hardware
uvm_reg_data_t update = 0;
if( m_access == "RO" ) update = m_desired;
if( m_access == "RW" ) update = m_desired;
if( m_access == "RC" ) update = m_desired;
if( m_access == "RS" ) update = m_desired;
if( m_access == "WRC" ) update = m_desired;
if( m_access == "WRS" ) update = m_desired;
if( m_access == "WC" ) update = m_desired; // Warn if != 0
if( m_access == "WS" ) update = m_desired; // Warn if != 1
if( m_access == "WSRC" ) update = m_desired; // Warn if != 1
if( m_access == "WCRS" ) update = m_desired; // Warn if != 0
if( m_access == "W1C" ) update = ~m_desired;
if( m_access == "W1S" ) update = m_desired;
if( m_access == "W1T" ) update = m_desired ^ m_mirrored;
if( m_access == "W0C" ) update = m_desired;
if( m_access == "W0S" ) update = ~m_desired;
if( m_access == "W0T" ) update = ~(m_desired ^ m_mirrored);
if( m_access == "W1SRC" ) update = m_desired;
if( m_access == "W1CRS" ) update = ~m_desired;
if( m_access == "W0SRC" ) update = ~m_desired;
if( m_access == "W0CRS" ) update = m_desired;
if( m_access == "WO" ) update = m_desired;
if( m_access == "WOC" ) update = m_desired; // Warn if != 0
if( m_access == "WOS" ) update = m_desired; // Warn if != 1
if( m_access == "W1" ) update = m_desired;
if( m_access == "WO1" ) update = m_desired;
// default:
update = m_desired;
update &= (1 << m_size) - 1;
return update;
}
//----------------------------------------------------------------------
// member function: m_check_access
//
// Implementation defined
//----------------------------------------------------------------------
bool uvm_reg_field::m_check_access( uvm_reg_item* rw,
uvm_reg_map_info*& map_info, // output
const std::string& caller)
{
if (rw->path == UVM_DEFAULT_PATH)
{
uvm_reg_block* blk = m_parent->get_block();
rw->path = blk->get_default_path();
}
if (rw->path == UVM_BACKDOOR)
{
if (m_parent->get_backdoor() == NULL && !m_parent->has_hdl_path())
{
UVM_WARNING("RegModel",
"No backdoor access available for field '" + get_full_name() +
"' . Using frontdoor instead.");
rw->path = UVM_FRONTDOOR;
}
else
rw->map = uvm_reg_map::backdoor();
}
if (rw->path != UVM_BACKDOOR)
{
rw->local_map = m_parent->get_local_map(rw->map, caller);
if (rw->local_map == NULL)
{
UVM_ERROR(get_type_name(),
"No transactor available to physically access memory from map '" +
rw->map->get_full_name() + "'");
rw->status = UVM_NOT_OK;
return false;
}
map_info = rw->local_map->get_reg_map_info(m_parent);
if (map_info->frontdoor == NULL && map_info->unmapped)
{
UVM_ERROR("RegModel",
"Field '" + get_full_name() +
"' in register that is unmapped in map '" +
rw->map->get_full_name() +
"' and does not have a user-defined frontdoor");
rw->status = UVM_NOT_OK;
return false;
}
if (rw->map == NULL)
rw->map = rw->local_map;
}
return true;
}
//----------------------------------------------------------------------
// member function: do_write
//
// Implementation defined
//----------------------------------------------------------------------
void uvm_reg_field::do_write( uvm_reg_item* rw )
{
uvm_reg_data_t value_adjust;
uvm_reg_map_info* map_info;
std::vector<uvm_reg_field*> fields;
bool bad_side_effect = false;
m_parent->m_atomic_check_lock(true);
m_fname = rw->fname;
m_lineno = rw->lineno;
if (!m_check_access(rw, map_info, "write()"))
return;
m_write_in_progress = true;
if (rw->value[0] >> m_size)
{
UVM_WARNING("RegModel",
"uvm_reg_field::write(): Value greater than field '" +
get_full_name() + "'");
rw->value[0] &= (( 1 << m_size)-1);
}
// Get values to write to the other fields in register
m_parent->get_fields(fields);
for( unsigned int i = 0; i < fields.size(); i++ )
{
if (fields[i] == this)
{
value_adjust |= rw->value[0] << m_lsb;
continue;
}
// It depends on what kind of bits they are made of...
std::string acc = fields[i]->get_access(rw->local_map);
if( (acc == "RO") || (acc == "RC") || (acc == "RS") ||
(acc == "W1C") || (acc == "W1S") || (acc == "W1T") ||
(acc == "W1SRC") || (acc == "W1CRC") )
{
// Use all 0's
value_adjust |= 0;
}
if( (acc == "W0C") || (acc == "W0S") || (acc == "W0T") ||
(acc == "W0SRC") || (acc == "W0CRS") )
{
// Use all 1's
value_adjust |= ((1 << fields[i]->get_n_bits())-1) << fields[i]->get_lsb_pos();
}
if( (acc == "WC") || (acc == "WS") || (acc == "WCRS") ||
(acc == "WSRC") || (acc == "WOC") || (acc == "WOS") )
{
// These might have side effects! Bad!
bad_side_effect = true;
}
//default:
value_adjust |= fields[i]->m_mirrored << fields[i]->get_lsb_pos();
} // for-loop
#ifdef UVM_REG_NO_INDIVIDUAL_FIELD_ACCESS
rw->element_kind = UVM_REG;
rw->element = m_parent;
rw->value[0] = value_adjust;
m_parent->do_write(rw);
#else
if (!is_indv_accessible(rw->path, rw->local_map))
{
rw->element_kind = UVM_REG;
rw->element = m_parent;
rw->value[0] = value_adjust;
m_parent->do_write(rw);
if (bad_side_effect)
UVM_WARNING("RegModel",
"Writing field '" + this->get_full_name() +
"' will cause unintended side effects in adjoining Write-to-Clear or Write-to-Set fields in the same register");
}
else
{
uvm_reg_map* system_map = rw->local_map->get_root_map();
uvm_reg_field_cb_iter* cbs = new uvm_reg_field_cb_iter(this);
m_parent->m_set_busy(1);
rw->status = UVM_IS_OK;
pre_write(rw);
for( uvm_reg_cbs* cb = cbs->first(); cb != NULL; cb = cbs->next() )
cb->pre_write(rw);
if (rw->status != UVM_IS_OK)
{
m_write_in_progress = false;
m_parent->m_set_busy(0);
m_parent->m_atomic_check_lock(0);
return;
}
rw->local_map->do_write(rw);
if (system_map->get_auto_predict())
// TODO from UVM-SV: Call parent.m_sample();
do_predict(rw, UVM_PREDICT_WRITE);
post_write(rw);
for( uvm_reg_cbs* cb = cbs->first(); cb != NULL; cb = cbs->next())
cb->post_write(rw);
m_parent->m_set_busy(false);
delete cbs;
}
#endif
m_write_in_progress = false;
m_parent->m_atomic_check_lock(false);
}
//----------------------------------------------------------------------
// member function: do_read
//
// Implementation defined
//----------------------------------------------------------------------
void uvm_reg_field::do_read( uvm_reg_item* rw )
{
uvm_reg_map_info* map_info;
bool bad_side_effect = false;
m_parent->m_atomic_check_lock(true);
m_fname = rw->fname;
m_lineno = rw->lineno;
m_read_in_progress = true;
if (!m_check_access(rw, map_info, "read()"))
return;
#ifdef UVM_REG_NO_INDIVIDUAL_FIELD_ACCESS
rw->element_kind = UVM_REG;
rw->element = m_parent;
m_parent->do_read(rw);
rw->value[0] = (rw->value[0] >> m_lsb) & (( 1 << m_size))-1;
bad_side_effect = true;
#else
if (!is_indv_accessible(rw->path,rw->local_map))
{
rw->element_kind = UVM_REG;
rw->element = m_parent;
bad_side_effect = true;
m_parent->do_read(rw);
rw->value[0] = (rw->value[0] >> m_lsb) & ((1<<m_size)-1); // TODO check -1 within brackets?
}
else
{
uvm_reg_map* system_map = rw->local_map->get_root_map();
uvm_reg_field_cb_iter* cbs = new uvm_reg_field_cb_iter(this);
m_parent->m_set_busy(true);
rw->status = UVM_IS_OK;
pre_read(rw);
for( uvm_reg_cbs* cb = cbs->first(); cb != NULL; cb = cbs->next())
cb->pre_read(rw);
if (rw->status != UVM_IS_OK)
{
m_read_in_progress = false;
m_parent->m_set_busy(false);
m_parent->m_atomic_check_lock(false);
return;
}
rw->local_map->do_read(rw);
if (system_map->get_auto_predict())
// TODO from UVM-SV: Call parent.m_sample();
do_predict(rw, UVM_PREDICT_READ);
post_read(rw);
for( uvm_reg_cbs* cb = cbs->first(); cb != NULL; cb = cbs->next() )
cb->post_read(rw);
m_parent->m_set_busy(0);
delete cbs;
} // else
#endif
m_read_in_progress = false;
m_parent->m_atomic_check_lock(false);
if (bad_side_effect)
{
std::vector<uvm_reg_field*> fields;
m_parent->get_fields(fields);
for( unsigned int i = 0; i < fields.size(); i++ )
{
std::string mode;
if (fields[i] == this)
continue;
mode = fields[i]->get_access();
if( mode == "RC" ||
mode == "RS" ||
mode == "WRC" ||
mode == "WRS" ||
mode == "WSRC" ||
mode == "WCRS" ||
mode == "W1SRC" ||
mode == "W1CRS" ||
mode == "W0SRC" ||
mode == "W0CRS")
{
UVM_WARNING("RegModel", "Reading field '" + get_full_name() +
"' will cause unintended side effects in adjoining " +
"Read-to-Clear or Read-to-Set fields in the same register");
} // if
} // for
}
}
//----------------------------------------------------------------------
// member function: do_predict
//
// Implementation defined
//----------------------------------------------------------------------
void uvm_reg_field::do_predict( uvm_reg_item* rw,
uvm_predict_e kind,
uvm_reg_byte_en_t be )
{
uvm_reg_data_t field_val = rw->value[0] & ((1 << m_size)-1);
if (rw->status != UVM_NOT_OK)
rw->status = UVM_IS_OK;
// Assume that the entire field is enabled
if (!be[0].to_bool()) // TODO check was !be[0]
return;
m_fname = rw->fname;
m_lineno = rw->lineno;
switch (kind)
{
case UVM_PREDICT_WRITE:
{
uvm_reg_field_cb_iter* cbs = new uvm_reg_field_cb_iter(this);
if (rw->path == UVM_FRONTDOOR || rw->path == UVM_PREDICT)
field_val = m_predict(m_mirrored, field_val, rw->map);
m_written = 1;
for( uvm_reg_cbs* cb = cbs->first(); cb != NULL; cb = cbs->next())
cb->post_predict(this, m_mirrored, field_val,
UVM_PREDICT_WRITE, rw->path, rw->map);
field_val &= ( 1 << m_size )-1;
delete cbs;
break;
}
case UVM_PREDICT_READ:
{
uvm_reg_field_cb_iter* cbs = new uvm_reg_field_cb_iter(this);
if (rw->path == UVM_FRONTDOOR || rw->path == UVM_PREDICT)
{
std::string acc = get_access(rw->map);
if( acc == "RC" ||
acc == "WRC" ||
acc == "WSRC" ||
acc == "W1SRC" ||
acc == "W0SRC" )
field_val = 0; // (clear)
else if (acc == "RS" ||
acc == "WRS" ||
acc == "WCRS" ||
acc == "W1CRS" ||
acc == "W0CRS")
field_val = (1 << m_size)-1; // all 1's (set)
else if (acc == "WO" ||
acc == "WOC" ||
acc == "WOS" ||
acc == "WO1")
return;
} // if
for( uvm_reg_cbs* cb = cbs->first(); cb != NULL; cb = cbs->next() )
cb->post_predict(this, m_mirrored, field_val,
UVM_PREDICT_READ, rw->path, rw->map);
field_val &= (1 << m_size)-1;
delete cbs;
break;
} // case
case UVM_PREDICT_DIRECT:
{
if (m_parent->is_busy())
{
UVM_WARNING("RegModel", "Trying to predict value of field '" +
get_name() + "' while register '" + m_parent->get_full_name() +
"' is being accessed");
rw->status = UVM_NOT_OK;
}
break;
} // case
} // switch
// update the mirror with predicted value
m_mirrored = field_val;
m_desired = field_val;
m_value = field_val;
}
//----------------------------------------------------------------------
// member function: pre_randomize
//
// Implementation defined
//----------------------------------------------------------------------
void uvm_reg_field::pre_randomize()
{
// Update the only publicly known property with the current
// desired value so it can be used as a state variable should
// the rand_mode of the field be turned off.
m_value = m_desired;
}
//----------------------------------------------------------------------
// member function: post_randomize
//
// Implementation defined
//----------------------------------------------------------------------
void uvm_reg_field::post_randomize()
{
m_desired = m_value;
}
//----------------------------------------------------------------------
// Implementation defined - member functions for UVM object
//----------------------------------------------------------------------
//----------------------------------------------------------------------
// member function: do_print
//
// Implementation defined
//----------------------------------------------------------------------
void uvm_reg_field::do_print( const uvm_printer& printer ) const
{
printer.print_generic(get_name(), get_type_name(), -1, convert2string());
}
//----------------------------------------------------------------------
// member function: convert2string
//
// Implementation defined
//----------------------------------------------------------------------
std::string uvm_reg_field::convert2string() const
{
std::string fmt;
std::ostringstream res_str;
std::ostringstream cvt_str;
std::ostringstream m_str;
std::string t_str;
//bool with_debug_info;
std::string prefix;
uvm_reg* reg_ = get_register();
if (m_desired != m_mirrored)
m_str << " (Mirror: 0x" << std::hex << m_mirrored.to_uint64() << ")";
else
m_str << "";
cvt_str << prefix << " " << get_access() << " " << reg_->get_name()
<< "[" << get_lsb_pos() + get_n_bits() - 1
<< ":" << get_lsb_pos()
<< "] = 0x"
<< std::hex << m_desired.to_uint64()
<< " (0b" << m_desired.range(get_n_bits()-1,0).to_string(sc_dt::SC_BIN_US, false)
<< ")"<< m_str.str();
if(m_read_in_progress)
{
if (!m_fname.empty() && m_lineno != 0)
res_str << " from " << m_fname << ":" << m_lineno;
cvt_str << std::endl << "currently being read" << res_str.str();
}
if(m_write_in_progress)
{
if (!m_fname.empty() && m_lineno != 0)
res_str << " from " << m_fname << ":" << m_lineno;
cvt_str << std::endl << "currently being written" << res_str.str();
}
return cvt_str.str();
}
//----------------------------------------------------------------------
// member function: clone
//
// Implementation defined
//----------------------------------------------------------------------
uvm_object* uvm_reg_field::clone()
{
UVM_FATAL("RegModel","RegModel field cannot be cloned");
return NULL;
}
//----------------------------------------------------------------------
// member function: do_copy
//
// Implementation defined
//----------------------------------------------------------------------
void uvm_reg_field::do_copy( const uvm_object& rhs )
{
UVM_WARNING("RegModel","RegModel field copy not yet implemented");
// TODO just a set(rhs.get()) ?
}
//----------------------------------------------------------------------
// member function: do_compare
//
// Implementation defined
//----------------------------------------------------------------------
bool uvm_reg_field::do_compare( const uvm_object& rhs,
const uvm_comparer* comparer ) const
{
UVM_WARNING("RegModel","RegModel field compare not yet implemented");
// TODO just a return (get() == rhs.get()) ?
return false;
}
//----------------------------------------------------------------------
// member function: do_pack
//
// Implementation defined
//----------------------------------------------------------------------
void uvm_reg_field::do_pack( uvm_packer& packer ) const
{
UVM_WARNING("RegModel","RegModel field cannot be packed");
}
//----------------------------------------------------------------------
// member function: do_unpack
//
// Implementation defined
//----------------------------------------------------------------------
void uvm_reg_field::do_unpack( uvm_packer& packer )
{
UVM_WARNING("RegModel","RegModel field cannot be unpacked");
}
//----------------------------------------------------------------------
// member function: do_unpack
//
// Implementation defined
//----------------------------------------------------------------------
std::map<std::string, bool>& uvm_reg_field::m_policy_names()
{
static std::map<std::string, bool> policy_names;
return policy_names;
}
} // namespace uvm
| [
"sjkyspa@gmail.com"
] | sjkyspa@gmail.com |
b008dda72f47a76176d4aca234add200516476b6 | a8001d9d7b18d44137972525d81a3decbba54d21 | /pa4/submitted/UnionGraph.hpp | 24f65c2d526f5d3f3dc1f1c86daeef9a11530769 | [] | no_license | ykw1225/CSE-100 | 871eccdc341731df3c294b85a071a3bdc2a0058c | e5849c6997ba7ede691e2a59004a92533ecc2e3f | refs/heads/master | 2021-07-12T07:10:17.946805 | 2017-10-16T22:13:19 | 2017-10-16T22:13:19 | 107,187,864 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,696 | hpp | /*
* Name: Chao Huang, Yeung-Kit Wong
* Date: Aug 30, 2016
* File: UnionGraph.hpp
* Description: Header file of UnionGraph object for uFind
* declares class member, functions prototype
*/
#ifndef UNIONGRAPH_HPP
#define UNIONGRAPH_HPP
#include <unordered_map>
#include <set>
#include <fstream>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include "UnionActor.hpp"
#include "UnionMovie.hpp"
using namespace std;
/** a class that represents all the data and connections between
* movies and actors
*/
class UnionGraph {
private:
// unordered_map to store ptrs to all the actors
unordered_map<string, UnionActor*> allActors;
// unordered_map to store ptrs to all the movies
unordered_map<string, UnionMovie*> allMovies;
// set to store all the movie ptrs in increasing order of year
set<UnionMovie*, UnionMovie::MovPtrComp> sortedMovies;
public:
// constructor
UnionGraph(){}
// destructor
~UnionGraph(){deleteAll();}
/**
* Function name: buildGraph
* Description: function to build the graph
*/
void buildGraph(ifstream&);
/**
* Function name: addActor
* Description: add a new actor to allActors field
*/
void addActor(string name, UnionActor* actor){
allActors.insert( pair<string, UnionActor*>(name, actor) );
}
/**
* Function name: addMovie
* Description: add a new movie to allMovies field
*/
void addMovie(string name, UnionMovie* movie){
allMovies.insert( pair<string, UnionMovie*>(name, movie) );
}
/**
* Function name: addSortMovie
* Description: add a new movie to the sortedMovies field
*/
void addSortMovie(UnionMovie* movie){
sortedMovies.insert( movie );
}
/**
* Function name: findActor
* Description: find the actor in all actors field and return an iterator
* Return Value: the iterator point to the UnionActor, otherwise end()
*/
unordered_map<string, UnionActor*>::iterator findActor(string actor){
return allActors.find(actor);
}
/**
* Function name: findMovie
* Description: find the movie in all movies field and return an iterator
* Return Value: the iterator point to the UnionMovie, otherwise end()
*/
unordered_map<string, UnionMovie*>::iterator findMovie(string movie){
return allMovies.find(movie);
}
/**
* Function name: uFind
* Description: use union find to search earliest year two actors gets
* connected. returns the connected year
*/
int uFind( string fromActor, string toActor );
/** Function name: findRoot
* Description: find and return the root actor of an actor
*/
UnionActor* findRoot(UnionActor* actor);
/** Function name: unionNodes
* Description: Function to union two disjoint set
*/
void unionNodes( UnionActor* actorA, UnionActor* actorB);
/*
* Function name: getAllActors
* Description: get all actors
* Return Value: the copy of map contains all actors
*/
unordered_map<string, UnionActor*> getAllActors(){return allActors;}
/** Function name: getSortedMovies
* Description: return the sorted UnionMovie* set
*/
set<UnionMovie*, UnionMovie::MovPtrComp> getSortedMovies()
{return sortedMovies;}
/**
* Function name: getAllMovies
* Description: function to return all the movies stored in the graph
*/
unordered_map<string, UnionMovie*> getAllMovies(){return allMovies;}
/** Function name: cleanParent
* Description: futnion to reset parent actor of all the actors
*/
void cleanParent();
/**
* Function name: deleteAll
* Description: delete all alocation of all objects
*/
void deleteAll();
};
#endif // ACTORGRAPH_HPP
| [
"ykw005@ucsd.edu"
] | ykw005@ucsd.edu |
bdaca5c008f5342750ab17ac5c53365109144e08 | 9dfd290dfc21d001c6e3b07697c2cacd105ec93e | /project4/common/src/tokenizer.cpp | f9238324d15a9316fc17c7480f654cdbb2f75f0a | [] | no_license | akira-jeoung/Calculator | 7e4ae1a09b79ec552b9c93d3c910599a897b00fc | 5a96c223f4509cbf631a3acdd3a8330bee4132eb | refs/heads/master | 2021-01-22T02:34:45.296185 | 2017-02-09T02:45:59 | 2017-02-09T02:45:59 | 81,057,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,326 | cpp | /** @file: tokenizer.cpp
@author Garth Santor/Trinh Han
@author garth.santor@sympatico.ca
@author http://www.gats.ca/
@version 0.2.0
@date 2012-11-16
@note Compiles under Visaul C++ v110
@brief Tokenizer class implementation.
*/
/*
Bill Jeoung
2016-11-24
*/
#include "tokenizer.hpp"
#include "boolean.hpp"
#include "function.hpp"
#include "integer.hpp"
#include "operator.hpp"
#include "pseudo_operation.hpp"
#include "real.hpp"
#include "variable.hpp"
#include <exception>
#include <limits>
#include <sstream>
#include <stack>
#include <string>
using namespace std;
/** Default constructor loads the keyword dictionary. */
Tokenizer::Tokenizer() {
keywords_["abs"] = keywords_["Abs"] = keywords_["ABS"] = make<Abs>();
keywords_["mod"] = keywords_["MOD"] = keywords_["Mod"] = make<Modulus>();
keywords_["arccos"] = keywords_["ARCCOS"] = keywords_["Arccos"] = make<Arccos>();
keywords_["arcsin"] = keywords_["ARCSIN"] = keywords_["Arcsin"] = make<Arcsin>();
keywords_["arctan"] = keywords_["ARCTAN"] = keywords_["Arctan"] = make<Arctan>();
keywords_["ceil"] = keywords_["CEIL"] = keywords_["Ceil"] = make<Ceil>();
keywords_["cos"] = keywords_["COS"] = keywords_["Cos"] = make<Cos>();
keywords_["exp"] = keywords_["EXP"] = keywords_["Exp"] = make<Exp>();
keywords_["floor"] = keywords_["FLOOR"] = keywords_["Floor"] = make<Floor>();
keywords_["lb"] = keywords_["LB"] = keywords_["Lb"] = make<Lb>();
keywords_["ln"] = keywords_["LN"] = keywords_["Ln"] = make<Ln>();
keywords_["log"] = keywords_["LOG"] = keywords_["Log"] = make<Log>();
keywords_["sin"] = keywords_["SIN"] = keywords_["Sin"] = make<Sin>();
keywords_["sqrt"] = keywords_["SQRT"] = keywords_["Sqrt"] = make<Sqrt>();
keywords_["tan"] = keywords_["TAN"] = keywords_["Tan"] = make<Tan>();
keywords_["NOT"] = keywords_["not"] = keywords_["Not"] = make<Not>();
keywords_["TRUE"] = keywords_["true"] = keywords_["True"] = make<True>();
keywords_["false"] = keywords_["FALSE"] = keywords_["False"] = make<False>();
keywords_["AND"] = keywords_["and"] = keywords_["And"] = make<And>();
keywords_["OR"] = keywords_["or"] = keywords_["Or"] = make<Or>();
keywords_["XOR"] = keywords_["xor"] = keywords_["Xor"] = make<Xor>();
keywords_["NAND"] = keywords_["nand"] = keywords_["Nand"] = make<Nand>();
keywords_["NOR"] = keywords_["nor"] = keywords_["Nor"] = make<Nor>();
keywords_["XNOR"] = keywords_["xnor"] = keywords_["Xnor"] = make<Xnor>();
keywords_["PI"] = keywords_["pi"] = keywords_["Pi"] = make<Pi>();
keywords_["E"] = keywords_["e"] = make<E>();
keywords_["arctan2"] = keywords_["Arctan2"] = keywords_["ARCTAN2"] = make<Arctan2>();
keywords_["MIN"] = keywords_["min"] = keywords_["Min"] = make<Min>();
keywords_["MAX"] = keywords_["max"] = keywords_["Max"] = make<Max>();
keywords_["POW"] = keywords_["pow"] = keywords_["Pow"] = make<Pow>();
keywords_["GREG"] = keywords_["greg"] = keywords_["Greg"] = make<Greg>();
keywords_["JULIAN"] = keywords_["julian"] = keywords_["Julian"] =
keywords_["JULI"] = keywords_["juli"] = keywords_["Juli"] = make<Julian>();
keywords_["JDN"] = keywords_["jdn"] = keywords_["Jdn"] = make<Jdn>();
keywords_["YEAR"] = keywords_["year"] = keywords_["Year"] = make<Year>();
keywords_["MONTH"] = keywords_["month"] = keywords_["Month"] = make<Month>();
keywords_["DAY"] = keywords_["day"] = keywords_["Day"] = make<Day>();
keywords_["RESULT"] = keywords_["result"] = keywords_["Result"] = make<Result>();
keywords_["TODAY"] = keywords_["today"] = keywords_["Today"] = make<Today>();
}
/** Get an identifier from the expression.
Assumes that the currentChar is pointing to a alphabetic.
*/
Token::pointer_type Tokenizer::_get_identifier( Tokenizer::string_type::const_iterator& currentChar, Tokenizer::string_type const& expression ) {
// accumulate identifier
string_type ident;
do
ident += *currentChar++;
while( currentChar != end(expression) && isalnum( *currentChar ) );
// check for predefined identifier
dictionary_type::iterator iter = keywords_.find(ident);
if( iter != end(keywords_) )
return iter->second;
else
{
iter = variables_.find(ident);
if(iter != end(variables_))
return iter->second;
else
return variables_[ident]= make<Variable>();
}
throw XBadCharacter(expression, currentChar - begin(expression));
}
/** Get a number token from the expression.
@return One of BinaryInteger, Integer, or Real.
@param currentChar [in,out] an iterator to the current character. Assumes that the currentChar is pointing to a digit.
@param expression [in] the expression being scanned.
*/
Token::pointer_type Tokenizer::_get_number( Tokenizer::string_type::const_iterator& currentChar, Tokenizer::string_type const& expression )
{
assert( isdigit( *currentChar ) && "currentChar must pointer to a digit" );
string number="";
bool isReal = false;
while (currentChar!=end(expression)&& isdigit(*currentChar))
{
number += *currentChar;
++currentChar;
if (currentChar != end(expression) && *currentChar == '.') {
number += *currentChar;
isReal = true;
++currentChar;
}
}
if(isReal) return make<Real>(Real::value_type(number));
else return make<Integer>(Integer::value_type(number));
}
/** Tokenize the expression.
@return a TokenList containing the tokens from 'expression'.
@param expression [in] The expression to tokenize.
@note Tokenizer dictionary may be updated if expression contains variables.
@note Will throws 'BadCharacter' if the expression contains an un-tokenizable character.
*/
TokenList Tokenizer::tokenize(string_type const& expression) {
TokenList tokenizedExpression;
auto currentChar = expression.cbegin();
for(;;)
{
// strip whitespace
while( currentChar != end(expression) && isspace(*currentChar) )
++currentChar;
// check of end of expression
if( currentChar == end(expression) ) break;
// check for a number
else if( isdigit( *currentChar ) ) {
tokenizedExpression.push_back( _get_number( currentChar, expression ) );
continue;
}
// check Addition + (plus-sign)
if (*currentChar == '+' ) {
++currentChar;
if (!tokenizedExpression.empty() && ( is<RightParenthesis>(tokenizedExpression.back()) || is<Operand>(tokenizedExpression.back()) || is<Factorial>(tokenizedExpression.back()))) {
tokenizedExpression.push_back(make<Addition>());
continue;
}
else {
tokenizedExpression.push_back(make<Identity>());
continue;
}
}
// check Subtraction - (dash)
if (*currentChar == '-') {
++currentChar;
if (!tokenizedExpression.empty() && (is<RightParenthesis>(tokenizedExpression.back()) || is<Operand>(tokenizedExpression.back()) || is<Factorial>(tokenizedExpression.back()))) {
tokenizedExpression.push_back(make<Subtraction>());
continue;
}
else {
tokenizedExpression.push_back(make<Negation>());
continue;
}
}
// check Factorial !
if (*currentChar == '!') {
++currentChar;
if (currentChar != end(expression) && *currentChar == '=') {
++currentChar;
tokenizedExpression.push_back(make<Inequality>());
continue;
}
else {
tokenizedExpression.push_back(make<Factorial>());
continue;
}
}
// check Multiplication *
if (*currentChar == '*') {
++currentChar;
tokenizedExpression.push_back(make<Multiplication>());
continue;
}
// check Division /
if (*currentChar == '/') {
++currentChar;
tokenizedExpression.push_back(make<Division>());
continue;
}
// check Modulus %
if (*currentChar == '%') {
++currentChar;
tokenizedExpression.push_back(make<Modulus>());
continue;
}
// check Power #
if (*currentChar == '#') {
++currentChar;
tokenizedExpression.push_back(make<Power>());
continue;
}
// alphabetic
if (isalpha(*currentChar)) {
tokenizedExpression.push_back(_get_identifier(currentChar, expression));
continue;
}
// LeftParenthesis
if (*currentChar == '(') {
++currentChar;
tokenizedExpression.push_back(make<LeftParenthesis>());
continue;
}
// RightParenthesis
if (*currentChar == ')') {
++currentChar;
tokenizedExpression.push_back(make<RightParenthesis>());
continue;
}
// ArgumentSeparator
if (*currentChar == ',') {
++currentChar;
tokenizedExpression.push_back(make<ArgumentSeparator>());
continue;
}
// Equality
if (*currentChar == '=') {
++currentChar;
if (currentChar != end(expression) && *currentChar == '=') {
++currentChar;
tokenizedExpression.push_back(make<Equality>());
continue;
}
else {
tokenizedExpression.push_back(make<Assignment>());
continue;
}
}
// Greater
if (*currentChar == '>') {
++currentChar;
if (currentChar != end(expression) && *currentChar == '=') {
++currentChar;
tokenizedExpression.push_back(make<GreaterEqual>());
continue;
}
else {
tokenizedExpression.push_back(make<Greater>());
continue;
}
}
// Less
if (*currentChar == '<') {
++currentChar;
if (currentChar != end(expression) && *currentChar == '=') {
++currentChar;
tokenizedExpression.push_back(make<LessEqual>());
continue;
}
else {
tokenizedExpression.push_back(make<Less>());
continue;
}
}
// not a recognized token
throw XBadCharacter( expression, currentChar - begin(expression) );
}
return tokenizedExpression;
}
/*=============================================================
Revision History
Version 0.2.0: 2012-11-16
Added BitAnd, BitNot, BitOr, BitXOr, BitShiftLeft, BitShiftRight
Simplified CHECK_OP macros
Version 0.1.0: 2012-11-15
Replaced BadCharacter with XTokenizer, XBadCharacter, and XNumericOverflow
Added BinaryInteger, Binary <function>
Version 0.0.1: 2012-11-13
C++ 11 cleanup
Version 0.0.0: 2009-11-25
Alpha release.
=============================================================
Copyright Garth Santor/Trinh Han
The copyright to the computer program(s) herein
is the property of Garth Santor/Trinh Han of Canada.
The program(s) may be used and/or copied only with
the written permission of Garth Santor/Trinh Han
or in accordance with the terms and conditions
stipulated in the agreement/contract under which
the program(s) have been supplied.
=============================================================*/
| [
"binggiry@gmail.com"
] | binggiry@gmail.com |
3957a0fdb692439776c61c09b4179b1f3b87fdd7 | a026a4060d30813ab4e15b9ff0904381a7e74290 | /Chess/Bishop.h | a2474f7e34d612783f3bb0182d9c33334fa548af | [
"Apache-2.0"
] | permissive | NanoBreeze/TCP-Chess | 259e7bea085af7538a9c7bfb4590b3d46397fd8a | 2cf51a8b6991dbeced7714b18429640394b04641 | refs/heads/master | 2021-01-17T21:41:17.101749 | 2016-03-27T17:44:18 | 2016-03-27T17:44:18 | 52,834,417 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | h | #pragma once
#include "Piece.h"
#include "Board.h"
class Bishop : public Piece
{
public:
Bishop(Coordinate coordinate);
void setIsWhite(const bool) override;
protected :
//called every time the bishop moves to a new square or is newly made because that's when its movable squares change.
std::vector<Coordinate> computeMoves() override;
//experimental
Board board = Board::getInstance();
private:
//helps with computeMoves
bool addPartOne(const Coordinate&);
};
| [
"dreambigbebigger@gmail.com"
] | dreambigbebigger@gmail.com |
95b95b1d6b7f984f01d8956d30e3cfb4321450eb | 42b8e673d1dab1da352cb1cb9e847eaed51ee130 | /ligate/src/ligater/ligater_management.cpp | 908b930a3dab3aee607b5b2599f095884233675f | [
"MIT"
] | permissive | simrub/GLIMPSE | 824d682ce4f05c9f2b1743f58a68b50ce62085d4 | cf91d27f9aded8fd8298e667d3bf6746b7eb477f | refs/heads/master | 2022-12-23T22:56:16.929733 | 2020-07-31T11:13:09 | 2020-07-31T11:13:09 | 299,339,286 | 0 | 0 | MIT | 2020-09-28T14:43:23 | 2020-09-28T14:43:22 | null | UTF-8 | C++ | false | false | 1,724 | cpp | /*******************************************************************************
* Copyright (C) 2020 Olivier Delaneau, University of Lausanne
* Copyright (C) 2020 Simone Rubinacci, University of Lausanne
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
******************************************************************************/
#include <ligater/ligater_header.h>
ligater::ligater() {
body_hs_fields = NULL;
buffer_hs_fields = NULL;
}
ligater::~ligater() {
}
void ligater::ligate(vector < string > & args) {
declare_options();
parse_command_line(args);
check_options();
verbose_files();
verbose_options();
read_files_and_initialise();
ligate();
write_files_and_finalise();
}
| [
"olivier.delaneau@gmail.com"
] | olivier.delaneau@gmail.com |
60721ea8792091207c44e0c79ec03ff52f95f648 | 1b73955197836915b6fe69cc03b57a88c17e28e2 | /part_1_the_basics/chapter_9/patron.cpp | e17c6ad3a1ee922357dd7c14559ac2325a93a0d3 | [] | no_license | vocasle/principles_and_practice_using_cpp | 7213f5914014039d31571562492b202a1bbf59e9 | a6e4d0b42373fef419ae2fbf53d6dc39ef76ea31 | refs/heads/master | 2022-09-16T14:06:21.342871 | 2022-08-26T15:48:14 | 2022-08-26T15:48:14 | 247,622,270 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 907 | cpp | // This file contains definitions of Patron class methods and helper functions
// Rev 1:
// - Definition of Patron class' methods
// - Definitions of owes_fees helper function
//
#include "patron.h"
Patron::Patron(const std::string& name, const std::string& card_number, double fees)
: name{ name }, card_number{ card_number }, fees{ fees }
{
}
std::string Patron::get_card_number() const
{
return card_number;
}
std::string Patron::get_name() const
{
return name;
}
double Patron::get_fees() const
{
return fees;
}
void Patron::set_fees(double new_fees)
{
fees = new_fees;
}
// ------------------------------------------------
// helper functions
// ------------------------------------------------
bool owes_fees(const Patron& patron)
{
return !(patron.get_fees() < 0.001);
}
bool operator==(const Patron& lhs, const Patron& rhs)
{
return lhs.get_card_number() == rhs.get_card_number();
} | [
"vocasle@gmail.com"
] | vocasle@gmail.com |
8e30f87dec6adca8130e7a5f01355e7205e498f7 | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/499/Ua | 29e580569d1fadd0ef86b76ce954c1da0fc5f0fe | [] | no_license | asAmrita/adjoinShapOptimization | 6d47c89fb14d090941da706bd7c39004f515cfea | 079cbec87529be37f81cca3ea8b28c50b9ceb8c5 | refs/heads/master | 2020-08-06T21:32:45.429939 | 2019-10-06T09:58:20 | 2019-10-06T09:58:20 | 213,144,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 248,372 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "499";
object Ua;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField nonuniform List<vector>
6400
(
(6.91539205202e-05 9.31865968359e-05 0)
(0.000188775768395 7.13906429514e-05 0)
(0.000275691902691 5.83742564867e-05 0)
(0.000372046549979 5.28269334778e-05 0)
(0.000443301127951 3.55671480675e-05 0)
(0.000495372911527 2.18035481114e-05 0)
(0.000523697111084 1.66281306719e-05 0)
(0.000547021786956 2.44135058291e-05 0)
(0.000613186008954 3.45990057775e-05 0)
(0.000681754645657 3.40977338124e-05 0)
(0.000712581292018 3.11091984258e-05 0)
(0.000776811383437 3.38641811401e-05 0)
(0.000836736843359 3.24278926826e-05 0)
(0.000887917259302 2.86578828323e-05 0)
(0.000928627808375 2.70719513589e-05 0)
(0.00097226049819 3.01626290965e-05 0)
(0.00102619234455 3.15804865456e-05 0)
(0.00107493789534 2.94184512505e-05 0)
(0.00111412504268 2.57838149197e-05 0)
(0.00115218167999 2.44706440405e-05 0)
(0.00120005024825 3.02172022264e-05 0)
(0.00125857265023 3.66481677875e-05 0)
(0.0013215675597 3.86284747789e-05 0)
(0.00138096735403 3.8507889768e-05 0)
(0.00143841962554 3.69827678073e-05 0)
(0.00149467851238 3.5051460162e-05 0)
(0.00155184883643 3.47008768562e-05 0)
(0.0016070127905 3.39344642958e-05 0)
(0.00165756110014 3.22680978628e-05 0)
(0.00170406191197 3.09610530622e-05 0)
(0.00174657745166 3.11153231063e-05 0)
(0.00179122890879 3.08424770601e-05 0)
(0.00183740392117 2.96719902919e-05 0)
(0.00188078038146 3.05801898199e-05 0)
(0.00192404567543 3.11891006043e-05 0)
(0.00197507045111 3.1871891128e-05 0)
(0.00202433867629 3.33718196928e-05 0)
(0.00205853780372 3.26594643293e-05 0)
(0.00210543572855 3.11338366169e-05 0)
(0.00216146048075 3.14926225015e-05 0)
(0.00221006505786 3.60649282765e-05 0)
(0.00224706596693 3.61525677107e-05 0)
(0.00228050659868 2.77878162137e-05 0)
(0.00231060206816 2.20444433549e-05 0)
(0.00233405677687 1.97233053127e-05 0)
(0.00235310790446 1.72247984755e-05 0)
(0.00236724555294 1.47176928862e-05 0)
(0.00237491037086 1.13589792323e-05 0)
(0.0023765910186 8.33449298063e-06 0)
(0.00237289097373 9.55521027104e-06 0)
(0.00236980812704 1.55363280328e-05 0)
(0.00238176630323 1.49984199601e-05 0)
(0.00237434790477 -1.95436972476e-06 0)
(0.00235911420345 -1.01293071176e-05 0)
(0.00232126576166 -1.71404291296e-05 0)
(0.00223218990557 -3.26043234812e-05 0)
(0.00213957813165 -2.87174988926e-05 0)
(0.00209317805527 -1.61618751981e-05 0)
(0.00207455432358 -2.18083193731e-05 0)
(0.0019741734464 -2.62403276838e-05 0)
(0.00192276629284 -4.78173830966e-06 0)
(0.0018449608868 -1.7743961348e-05 0)
(0.00203368097992 -9.23889808808e-05 0)
(0.00166306774404 -0.000114723134599 0)
(0.00134083319752 -7.92559268477e-05 0)
(0.00120998556163 -5.1931503297e-05 0)
(0.00112993159256 -4.96122566807e-05 0)
(0.00106770736058 -4.89880343089e-05 0)
(0.00100188154817 -5.02525507172e-05 0)
(0.00090825525654 -5.32873529808e-05 0)
(0.000808831066449 -5.44935531284e-05 0)
(0.000694936701697 -5.29158039409e-05 0)
(0.000585329911111 -5.24672258149e-05 0)
(0.000509581107684 -5.60244684467e-05 0)
(0.00037747512109 -4.47405729271e-05 0)
(0.000324658116853 -3.92666200144e-05 0)
(0.000212139189513 -2.43209901842e-05 0)
(0.000216296241054 -3.28889000795e-05 0)
(9.274073336e-05 -2.29409533752e-05 0)
(6.91836726877e-05 -4.24739527236e-05 0)
(2.63272366397e-05 0.000129254366799 0)
(0.000113007759277 0.000145060016392 0)
(0.000196534551756 0.000131660682483 0)
(0.000250564645986 0.000105814207753 0)
(0.000363312390679 0.000104545627158 0)
(0.000467669256051 7.5618945152e-05 0)
(0.000530776945447 4.99833630791e-05 0)
(0.000576502041311 6.52462363665e-05 0)
(0.000625895757324 8.46669953698e-05 0)
(0.000681254716549 8.41341490008e-05 0)
(0.000734951327903 8.01734441431e-05 0)
(0.000785613828182 7.98298766034e-05 0)
(0.000834380271254 7.3989605136e-05 0)
(0.000880359868558 6.60167061678e-05 0)
(0.000927516701449 6.36046602827e-05 0)
(0.000975301838181 7.52752309028e-05 0)
(0.00102502616847 8.06967471104e-05 0)
(0.00106831535774 6.39549823418e-05 0)
(0.00108007793467 5.14033087711e-05 0)
(0.00112445808999 5.41032197417e-05 0)
(0.00118304819944 7.11803751434e-05 0)
(0.00124878437226 9.15388356208e-05 0)
(0.00132122810149 9.62475331356e-05 0)
(0.00138536909892 8.90690614396e-05 0)
(0.00143074025142 8.33971795263e-05 0)
(0.00149308910079 8.16190526796e-05 0)
(0.00155312333906 7.87012894041e-05 0)
(0.00160550127978 7.40455292958e-05 0)
(0.001654545067 6.93465709083e-05 0)
(0.00170196568177 6.58193770553e-05 0)
(0.00174705932392 6.49065886718e-05 0)
(0.00178379365057 6.30747348336e-05 0)
(0.00182941780724 5.85610196484e-05 0)
(0.00187121731713 6.16079595007e-05 0)
(0.00191073658614 6.62319295078e-05 0)
(0.00197190363957 6.41823959695e-05 0)
(0.00201532023721 6.62240107556e-05 0)
(0.00205034605958 6.86099800113e-05 0)
(0.00210449638335 6.59067548836e-05 0)
(0.00217346502899 6.11986416221e-05 0)
(0.00222501399447 5.21677269396e-05 0)
(0.0021932061556 4.13833305246e-05 0)
(0.00219219850953 3.55139356757e-05 0)
(0.00222806072585 3.27592904959e-05 0)
(0.00225537748514 2.96772684183e-05 0)
(0.00228551610575 2.50730914548e-05 0)
(0.00231523315588 1.83131781088e-05 0)
(0.00233397324417 9.87387786837e-06 0)
(0.00235535447502 9.81103582034e-07 0)
(0.0023671132603 -6.314469364e-06 0)
(0.00235500204625 -9.81866919623e-06 0)
(0.00230398682504 -1.30356054351e-05 0)
(0.00226194358082 -1.88608615477e-05 0)
(0.00235628655615 -3.78348553707e-05 0)
(0.00230054342535 -7.36442129362e-05 0)
(0.00224502259724 -9.67568365523e-05 0)
(0.00225302626048 -8.97522143749e-05 0)
(0.00222338945632 -7.53691209406e-05 0)
(0.00217857273375 -8.51152699427e-05 0)
(0.00214180518797 -9.90507527836e-05 0)
(0.00213630022266 -0.00010941928429 0)
(0.00180323557998 -0.000118867772804 0)
(0.00199339980396 -0.000268765914322 0)
(0.00164768696851 -0.000338365580355 0)
(0.00135821103284 -0.000271269207822 0)
(0.00114524863937 -0.000183837584606 0)
(0.00103464176015 -0.000132945452323 0)
(0.00101927429555 -0.000121772185389 0)
(0.000960641920849 -0.000134208325501 0)
(0.000889134143702 -0.000155463933766 0)
(0.000782681257306 -0.000166887266368 0)
(0.000665604236491 -0.000162795433813 0)
(0.000543760698363 -0.000142582266681 0)
(0.000483982917502 -0.000137999593336 0)
(0.000408134183751 -0.000127372373566 0)
(0.000340967389953 -0.000114982713295 0)
(0.000274005243548 -9.72052604351e-05 0)
(0.000213675806062 -9.81503926851e-05 0)
(0.000131511141001 -0.000103006071025 0)
(6.02969078938e-05 -0.000165623296987 0)
(3.79659598723e-05 0.00022420534343 0)
(0.000108317012246 0.000242588301009 0)
(0.000166941454429 0.000226984431435 7.33171568786e-29)
(0.000283468955783 0.00023051076645 -6.86389113497e-29)
(0.000392832447583 0.000228481544268 -6.1022346816e-29)
(0.000461086136233 0.000186171639316 5.58043569053e-29)
(0.000511122489698 0.000106991722414 -5.62333254036e-29)
(0.000558501799481 0.00011613395286 5.48898076753e-29)
(0.000610296661983 0.00014071022197 0)
(0.00066873422067 0.000144821076403 0)
(0.000726790585046 0.000138536184041 0)
(0.000779177307696 0.000130475547517 0)
(0.000827516450479 0.000120954709353 0)
(0.000872189177585 0.000115318812168 0)
(0.000919184594243 0.00011439496918 0)
(0.000967358500832 0.000108817645799 0)
(0.000905430695156 8.82836304419e-05 0)
(0.000894394515686 7.6435496652e-05 0)
(0.00093931293058 8.80191419e-05 0)
(0.00102045063413 0.000122644488584 0)
(0.00117147119381 0.000160986183516 0)
(0.00126238976681 0.000171540196898 0)
(0.00130701827622 0.000162732513877 0)
(0.00137052161035 0.000152346619295 0)
(0.00143640321026 0.000146027173453 0)
(0.0014922313226 0.000141711932726 0)
(0.00154541401157 0.000134764296715 0)
(0.00159805796793 0.000127146607228 0)
(0.00164781245521 0.000120425981517 0)
(0.00169356937671 0.00011540450362 1.08462506716e-28)
(0.00174176743076 0.00011114661844 -1.05121123594e-28)
(0.00177213211042 0.000107148947985 0)
(0.00181397251885 0.000103380864016 0)
(0.0018737143801 0.000102492026533 0)
(0.00188190161785 0.000112465056245 0)
(0.00194346668054 0.000120100782917 0)
(0.00202013896697 0.000117037574156 0)
(0.00203283356235 0.000119188986582 0)
(0.00209307793534 0.000126144201129 0)
(0.00216861292431 0.00011711812806 0)
(0.00222191021182 8.736073116e-05 0)
(0.00225420058695 6.4000400233e-05 0)
(0.0022830349395 6.21305536424e-05 0)
(0.00231142898384 6.32676578719e-05 0)
(0.00233486989092 5.9380079693e-05 0)
(0.00235345671301 5.2397436468e-05 0)
(0.00236780954728 4.16774559351e-05 0)
(0.00237801196847 2.91080208113e-05 0)
(0.00238441107316 1.47361211087e-05 0)
(0.00238663373416 -3.30295333259e-06 0)
(0.00238441729283 -2.17932101908e-05 0)
(0.00237761708709 -3.05618624301e-05 0)
(0.00236547260566 -2.65060819962e-05 0)
(0.00232909358518 -5.1054321025e-05 0)
(0.00227263641523 -9.36164713547e-05 0)
(0.00226640229109 -0.000110124798638 0)
(0.00224897241333 -0.000110763415581 0)
(0.00220723054462 -0.000114831785374 0)
(0.0021562567244 -0.00012659394759 0)
(0.00210299200892 -0.000151096035275 0)
(0.00202529871473 -0.000213274660035 0)
(0.00193295993226 -0.000290236992095 0)
(0.00188766436699 -0.000513542159841 0)
(0.00148537829335 -0.000574509149473 0)
(0.00115564062219 -0.000408639730861 0)
(0.00106954615249 -0.000288935307803 0)
(0.0010269733541 -0.000223061647157 0)
(0.000955007717251 -0.000199235728764 0)
(0.000883407095256 -0.000218765375538 0)
(0.000799508396102 -0.000249392172607 0)
(0.000697621461266 -0.000259932476476 0)
(0.000603607444823 -0.000245093153034 0)
(0.000542952386062 -0.000226096247375 0)
(0.000482950700703 -0.000218336088459 0)
(0.000404802418017 -0.000209977993212 0)
(0.000325194137422 -0.000191504339976 0)
(0.000251511538176 -0.000170290601446 0)
(0.00019094585853 -0.000179308944692 0)
(0.000131095297913 -0.000228814428329 0)
(3.3478413391e-05 -0.000225955009347 0)
(3.64371285997e-05 0.000332407761589 0)
(5.15465317918e-05 0.000225557640575 0)
(0.000135480653128 0.000341155327658 0)
(0.000244401079909 0.000342049215409 0)
(0.000339263470218 0.000292939693919 0)
(0.000198923862851 0.000117801878894 0)
(0.00025087740293 0.000121696721269 0)
(0.000466195535433 0.000219244574855 0)
(0.000571592984975 0.000230688030454 0)
(0.000643490716396 0.000213377690408 0)
(0.000710817647785 0.000199616264085 0)
(0.000768566236444 0.000183768480489 0)
(0.000818872504588 0.000168804240834 0)
(0.000856810438851 0.00014681546179 0)
(0.000828045173626 0.000113161773339 0)
(0.000800785894339 8.96799026835e-05 0)
(0.000815442084758 8.97439926259e-05 0)
(0.000881078444883 0.000124674077802 0)
(0.00101037879697 0.000183745017732 0)
(0.00113550276635 0.000239278834668 0)
(0.00119052049659 0.000250356038092 0)
(0.00124794195044 0.000237212543673 0)
(0.00131179199747 0.000224556563421 0)
(0.0013713153322 0.000214708359948 0)
(0.00142746700547 0.000204511820469 0)
(0.00148116816527 0.000194673314767 0)
(0.00153290755098 0.000185800677076 0)
(0.00158852397284 0.000177064780897 0)
(0.00163468051025 0.00016800270611 0)
(0.00168783547706 0.000160864891977 0)
(0.00172120093892 0.000153518983272 0)
(0.00177312553524 0.000146673911749 0)
(0.00178859997067 0.000137454165145 0)
(0.00183698819196 0.000142739373926 0)
(0.00191305311171 0.000158941223809 0)
(0.00193036697221 0.00017132079786 0)
(0.00200441400363 0.000175672346062 0)
(0.00208161925374 0.000177761583362 0)
(0.00213059561068 0.000179755678631 0)
(0.00217414920821 0.000163869291797 0)
(0.0022160594988 0.000132180111573 0)
(0.00225232669925 0.000104892335899 0)
(0.00228438664293 9.24102854419e-05 0)
(0.00231282264007 8.59225753723e-05 0)
(0.00233608458857 7.7603172535e-05 0)
(0.00235444875871 6.62379794941e-05 -9.98343979237e-29)
(0.00236846403605 5.19330468955e-05 1.0058603167e-28)
(0.00237826135113 3.54212904183e-05 0)
(0.00238393272081 1.68145522626e-05 0)
(0.00238524686526 -3.82391262722e-06 0)
(0.0023815724679 -2.39805180809e-05 0)
(0.00237120715411 -4.08057814477e-05 0)
(0.00235175784998 -5.95132984902e-05 0)
(0.00232116769284 -9.0372573135e-05 0)
(0.0022875747133 -0.000119404021071 0)
(0.00225819351739 -0.000136380687925 0)
(0.00222278388913 -0.000151912110935 0)
(0.00217231502012 -0.000170240971419 -2.04270018443e-28)
(0.00210610312298 -0.000196617601172 2.38880672864e-28)
(0.00202005721259 -0.000243224420809 0)
(0.00190210330521 -0.00032548595883 0)
(0.00175258722554 -0.000463858308998 0)
(0.00159972691361 -0.000696306797182 0)
(0.00141982423567 -0.00079573698847 0)
(0.00122885625887 -0.000616109755896 0)
(0.00101448732809 -0.000377753294763 0)
(0.000927196927551 -0.000289371685129 0)
(0.000867608602249 -0.000275635777377 0)
(0.00080459183126 -0.000299244770627 0)
(0.000746833531297 -0.00034091621512 0)
(0.000670801201547 -0.000355616361252 0)
(0.000591780790975 -0.000335531567214 0)
(0.000511478534685 -0.000310414117008 0)
(0.000411020535229 -0.000286981052017 0)
(0.000335663911354 -0.000278713330794 0)
(0.0002658529047 -0.00027341507595 0)
(0.000190132470272 -0.000248126390606 0)
(0.000110393649829 -0.000201557275255 0)
(8.03844715613e-05 -0.000254557856143 0)
(2.68330843462e-05 -0.000292933013199 0)
(2.76074875517e-06 0.000331830368797 0)
(2.64549757287e-05 0.000274246831748 0)
(0.000120361050606 0.000444023592864 0)
(0.000206392188713 0.000412799534714 0)
(0.000224308315691 0.000276955263535 0)
(0.000180292346857 0.000158663898759 0)
(0.000308957001611 0.000257626692251 0)
(0.000465882325678 0.00035533036108 0)
(0.000531837238847 0.000323559021646 0)
(0.00061080387356 0.000289506475292 0)
(0.000683213898649 0.000270880384524 0)
(0.000745408277599 0.000244284969183 0)
(0.000761762695329 0.000188710121329 0)
(0.000712813800783 0.000127626621219 0)
(0.000736290737772 0.000110232564879 0)
(0.000793221314948 0.00012628635071 0)
(0.00088532101855 0.000171214949952 0)
(0.000997145272713 0.000236390324473 0)
(0.00108165845578 0.000285360012229 0)
(0.00111970502346 0.000297107028381 0)
(0.00117592822042 0.000301601140396 0)
(0.00124255645618 0.000299677855541 0)
(0.0013019573964 0.000287340652888 0)
(0.00135960600836 0.00027240985166 0)
(0.00141435042476 0.000258795619917 0)
(0.00146591136539 0.000247928325782 0)
(0.00152284294381 0.000237908885041 0)
(0.00156709254618 0.000226429308491 0)
(0.0016273887258 0.000216491858468 0)
(0.00165826842018 0.000204042516269 0)
(0.00172083227238 0.000195887951188 1.03952389304e-28)
(0.00171929848779 0.000182665706661 -9.82613785899e-29)
(0.00179131096911 0.000184578455769 0)
(0.00186040297916 0.000193252925196 0)
(0.00188627136515 0.000208569063647 0)
(0.00197092342132 0.000232798103048 0)
(0.00203263825528 0.000244198306603 0)
(0.00208563893537 0.000236755816472 0)
(0.00213186575852 0.000222359264314 0)
(0.00217419914553 0.000201089384157 0)
(0.00221516318999 0.00017177851292 0)
(0.00225289215756 0.000143885823775 0)
(0.00228632060889 0.000124859348234 0)
(0.00231500889079 0.000111242820202 0)
(0.00233835099813 9.75225733874e-05 0)
(0.00235669015856 8.15842671122e-05 0)
(0.0023704347336 6.31050954146e-05 0)
(0.0023796671695 4.23392838587e-05 0)
(0.0023842505176 1.93317837922e-05 0)
(0.0023837734408 -5.72261333723e-06 0)
(0.00237741057596 -3.16240514141e-05 0)
(0.00236357613959 -5.77296315994e-05 0)
(0.00234062813331 -8.66511150785e-05 0)
(0.00230870241595 -0.000120285462521 0)
(0.00227230546856 -0.000151740951887 0)
(0.00223332792175 -0.000178484061657 0)
(0.00218411553666 -0.000207532511853 0)
(0.00211552073346 -0.000244903410995 0)
(0.00202129416221 -0.000297471170228 0)
(0.00189579277992 -0.000376072296454 0)
(0.00173868685573 -0.000490569582777 0)
(0.00157190058292 -0.000645894284988 0)
(0.00141502535722 -0.000829873113404 0)
(0.00134435914928 -0.00092609296731 0)
(0.00122073233864 -0.000777588651385 0)
(0.00102600431409 -0.000535488443769 0)
(0.000904516058422 -0.00040995995513 0)
(0.000805727358597 -0.00036381333186 0)
(0.00072710017942 -0.000370324968195 0)
(0.00066854306704 -0.000406881295776 0)
(0.00061081439391 -0.000435173550232 0)
(0.000531387156875 -0.000423312908695 0)
(0.000426045560328 -0.000381391182733 0)
(0.000351060641838 -0.000365705970179 0)
(0.000280198347914 -0.000363785916837 0)
(0.00020863771326 -0.000354503762259 0)
(0.000139497303067 -0.000297616421911 0)
(8.92201012123e-05 -0.000256424070264 0)
(5.63643602919e-05 -0.000316767102683 0)
(1.42165744386e-05 -0.000326595884056 0)
(-1.32974429854e-06 0.000309762900554 0)
(3.14953464285e-05 0.000332232630949 0)
(0.000119465703415 0.000504923675997 0)
(0.000168866354999 0.000427761950644 0)
(0.000128950678197 0.000218217503094 0)
(0.000179239910563 0.000225969719224 0)
(0.000376015703094 0.000409885874612 0)
(0.000441486609594 0.000428180439327 0)
(0.000500581447084 0.000395954340641 0)
(0.000571920517585 0.000367016378204 0)
(0.000644180313219 0.000326557372785 0)
(0.000613929911367 0.000238792291856 0)
(0.000569184241348 0.000156635112551 0)
(0.000619921794834 0.000144759304089 0)
(0.000687289139163 0.000169229762935 0)
(0.000805209365138 0.00022448350883 0)
(0.000926593053652 0.000283502132529 0)
(0.00101117800808 0.000317950501059 0)
(0.00103740792735 0.000324814434791 0)
(0.00109933094331 0.000347167188194 0)
(0.00117108281575 0.000365305562001 0)
(0.00122947073907 0.000360750078118 0)
(0.00128619279039 0.000346007202306 0)
(0.00134117097681 0.000329429860851 0)
(0.0014008985233 0.000314903082958 0)
(0.00145258468824 0.000298739403409 0)
(0.00148763416468 0.000286659823728 0)
(0.00156092565847 0.000278697572376 0)
(0.00158072913957 0.000259495538579 0)
(0.00165945254156 0.000246843389675 0)
(0.00164003953469 0.000225898722953 0)
(0.00173296352738 0.000232087162494 0)
(0.00172776276652 0.000232339514122 0)
(0.00182709989007 0.000252987954528 0)
(0.00192292545871 0.000281623460902 0)
(0.00198640273695 0.000301120827074 0)
(0.00203838647159 0.000298688367072 0)
(0.00208664700446 0.000284581542991 0)
(0.00213181106288 0.00026515906015 0)
(0.00217479015054 0.000240829413006 0)
(0.00221593899302 0.00021145877345 0)
(0.00225426054332 0.000182056537177 0)
(0.00228845942816 0.000157607407199 0)
(0.00231755889046 0.000137281307442 0)
(0.00234122435072 0.000117692076956 0)
(0.00235966006672 9.67249723756e-05 0)
(0.00237317273624 7.36176540858e-05 0)
(0.00238166505187 4.81596532836e-05 0)
(0.00238472091326 2.01576900086e-05 0)
(0.0023817601002 -1.04044793137e-05 0)
(0.00237192560717 -4.3150982055e-05 0)
(0.00235396243172 -7.80359737823e-05 0)
(0.00232689597906 -0.000115731107606 0)
(0.00229115561953 -0.000155464082329 0)
(0.00224832433432 -0.000194432769348 0)
(0.00219648839984 -0.000234600753097 0)
(0.00212763897023 -0.000283339372288 0)
(0.00203311524095 -0.000347282182774 0)
(0.00190873815565 -0.000431519638462 0)
(0.00175491767777 -0.000537999656156 0)
(0.0015866156325 -0.000665407954039 0)
(0.00143098777591 -0.000800991389995 0)
(0.00123441973887 -0.000884938131542 0)
(0.00128066027604 -0.00105306009615 0)
(0.00108035247694 -0.000877147326409 0)
(0.000924090455776 -0.000641117623909 0)
(0.000835755417316 -0.000524317480591 0)
(0.00073766541586 -0.000459525872412 0)
(0.000649055863952 -0.000440927045193 0)
(0.000598756971494 -0.000480967621774 0)
(0.000543124911109 -0.000522247167942 0)
(0.000446067479457 -0.000488243374568 0)
(0.000365391623436 -0.000452989534689 0)
(0.000299843155545 -0.000448272638938 0)
(0.000224669476732 -0.000442197268378 0)
(0.000164878410852 -0.000419662929541 0)
(0.000107676017729 -0.00033543384434 0)
(6.77477608833e-05 -0.000299114000292 0)
(3.96609132642e-05 -0.000353357553752 0)
(1.09978274384e-05 -0.000351144356408 0)
(1.01726759895e-05 0.000335552484055 0)
(6.88982368488e-05 0.000429602421163 0)
(0.000151685030485 0.000547559814431 0)
(0.000170532141853 0.00051558117213 0)
(0.000119273035458 0.00027417551066 0)
(0.000251560879775 0.000392206905015 0)
(0.000378384075634 0.000495785916467 0)
(0.000416576217669 0.000481418402075 0)
(0.000472434367992 0.000453000027113 0)
(0.0005143725977 0.000420650396385 0)
(0.00060253848805 0.000364297668432 -2.56940928081e-28)
(0.000481342324792 0.00020326979905 1.5783274149e-28)
(0.000552343429144 0.000192048238834 0)
(0.000598701012911 0.000210160686223 0)
(0.000705270362903 0.000271234736341 0)
(0.000838846025876 0.000348800935923 0)
(0.000927919855685 0.000375253893956 0)
(0.000938856522688 0.000355613440161 0)
(0.00100708285244 0.000378372366181 0)
(0.00109313015067 0.000417350985424 0)
(0.00115080804831 0.00042715985979 0)
(0.00121022125568 0.000419195359031 0)
(0.0012688746922 0.000404497777986 0)
(0.00132571415746 0.000385557733015 0)
(0.00137281156624 0.000363476719565 0)
(0.00141169586166 0.000343197938747 0)
(0.00148133526939 0.000335357436309 0)
(0.00148901873189 0.00032098182905 0)
(0.00158532708751 0.000308704737206 0)
(0.0015570211339 0.000268852192778 0)
(0.00165947373295 0.000273546658047 0)
(0.00166018974156 0.00027864174938 -9.59749352771e-29)
(0.00175970010699 0.000299905361788 9.88766749122e-29)
(0.00182967634424 0.000334189624622 0)
(0.00193351267871 0.000362803330806 0)
(0.00199059830841 0.000362089717204 0)
(0.00203854638422 0.00034877013586 0)
(0.00208566404149 0.000330460054636 0)
(0.00213190589018 0.000308364510019 0)
(0.00217613362037 0.00028196803923 0)
(0.00221784223954 0.000251430733359 0)
(0.00225666688644 0.000219822079478 0)
(0.00229142335479 0.000190563067492 0)
(0.00232101346793 0.000164022406322 0)
(0.00234507658017 0.000138392012815 0)
(0.0023637047881 0.000111929159737 0)
(0.00237695451093 8.35833047621e-05 0)
(0.00238444001994 5.26974475659e-05 0)
(0.00238550111288 1.87832416307e-05 0)
(0.00237946020765 -1.84155926698e-05 0)
(0.00236552580789 -5.89004315977e-05 0)
(0.00234270367251 -0.000102605033212 0)
(0.00231026662045 -0.000149319390271 0)
(0.00226800243039 -0.000198347773908 0)
(0.00221489803253 -0.000250135779138 0)
(0.00214645548465 -0.000309548501091 0)
(0.0020547098659 -0.000383637239851 0)
(0.00193409581909 -0.000475923899232 0)
(0.00178809249729 -0.000584104518479 0)
(0.00163188576496 -0.000701745556155 0)
(0.0014821221706 -0.000820119879148 0)
(0.0013500833711 -0.000929857812682 0)
(0.00124986318227 -0.00103653208771 0)
(0.00120184601166 -0.00114332778856 0)
(0.00103237255327 -0.00100631363483 0)
(0.000807919635351 -0.000718522097443 0)
(0.000757403262613 -0.000618214671644 0)
(0.000681100782463 -0.000562146599588 0)
(0.000597029909809 -0.000537199184227 0)
(0.000534049335629 -0.000565582431308 0)
(0.000467041715441 -0.000583730394636 0)
(0.000385085106566 -0.000546312213082 0)
(0.000321912120704 -0.0005344639119 0)
(0.000246916209462 -0.000528200887497 0)
(0.000177429047062 -0.000513829127754 0)
(0.000124534775485 -0.000453130480847 0)
(8.38013264994e-05 -0.000385098585652 0)
(4.10490532574e-05 -0.000336124611794 0)
(1.95000479463e-05 -0.000373328845127 0)
(6.87957165782e-06 -0.00037637989916 0)
(2.1383807693e-05 0.000388969603854 0)
(9.57859110885e-05 0.000520075305405 0)
(0.000166613157617 0.00056823918971 0)
(0.000107371624678 0.000353070951109 0)
(0.000122971327581 0.000338668558495 0)
(0.000284849993982 0.000533505904997 0)
(0.000343444389699 0.000547255000874 0)
(0.000394518906835 0.000533163342006 0)
(0.0004272202334 0.000493754629714 0)
(0.000486103227617 0.000462222728308 0)
(0.000405358160047 0.000288726769567 0)
(0.000463287851035 0.00024009123547 0)
(0.000527643938514 0.000248604620016 0)
(0.000587311166298 0.000289551947144 0)
(0.000737654550407 0.000392582450072 0)
(0.000839375651934 0.000440007974989 0)
(0.000842281563967 0.000405387390306 0)
(0.000900168645537 0.000410324331049 0)
(0.000998909331723 0.000458651709654 0)
(0.00107055289647 0.000485258638646 0)
(0.00112524441931 0.000485420724883 0)
(0.00118096363307 0.000475863016509 0)
(0.00124377828187 0.000464230810221 0)
(0.00129973960107 0.000442932898389 0)
(0.00136021835204 0.000412492442898 0)
(0.00138001607997 0.000392031439585 0)
(0.00146327937137 0.000383499128683 0)
(0.0014862134034 0.000361431023952 0)
(0.00149736945348 0.000335087845592 0)
(0.00155471365088 0.000325524672644 0)
(0.00166967105004 0.000336296731043 0)
(0.0016820243897 0.00033332929221 0)
(0.00173192966912 0.000371026008632 0)
(0.00186995730684 0.000423999063623 0)
(0.00193209667567 0.000434388353647 0)
(0.00198581890098 0.000418515788874 0)
(0.00203616302586 0.000398359066052 0)
(0.00208457911808 0.000377134055774 0)
(0.00213218220049 0.000353020911448 0)
(0.00217792240074 0.000324591609357 0)
(0.00222068798584 0.000292058995323 0)
(0.00226013060335 0.000257618449001 0)
(0.00229550087615 0.000223768110457 0)
(0.00232575334565 0.000191352720102 0)
(0.00235037034296 0.000159593869605 -9.63624413308e-29)
(0.00236926876376 0.00012717532151 9.61407140211e-29)
(0.00238218535256 9.28507442578e-05 0)
(0.00238840489985 5.55964640375e-05 0)
(0.00238705902408 1.46941334691e-05 0)
(0.00237743196205 -3.02558208455e-05 0)
(0.00235876639639 -7.93933816688e-05 0)
(0.00233019794732 -0.000132701662129 0)
(0.00229092382634 -0.000190061771491 0)
(0.00223968322862 -0.00025203591768 0)
(0.00217345858862 -0.000321677587583 0)
(0.00208634470627 -0.000404958976917 0)
(0.00197215286977 -0.000506073071897 0)
(0.00183182161115 -0.000621306288163 0)
(0.00167882676135 -0.000740160420869 0)
(0.00153174050807 -0.000852845288268 0)
(0.00139964968046 -0.000951440559202 0)
(0.00129065390653 -0.00103609261972 0)
(0.00121108317563 -0.00111736354042 0)
(0.00114584490357 -0.00120344146339 0)
(0.00115901391333 -0.00126829533853 0)
(0.00080304341751 -0.000869376189507 0)
(0.000662420447547 -0.000702206115367 0)
(0.000593187753122 -0.000640959794474 0)
(0.000515123482429 -0.000609895547097 0)
(0.000459258882871 -0.00062406960238 0)
(0.000405879889486 -0.000629107054147 0)
(0.000343792112685 -0.000614008439821 0)
(0.000275799162451 -0.000616186826999 0)
(0.000196856489978 -0.000606432858255 0)
(0.000132703393581 -0.000571542526604 0)
(8.35406925452e-05 -0.000492086508003 0)
(4.56788363556e-05 -0.00043234304895 0)
(7.25817235366e-06 -0.000377657625312 0)
(-9.95410555984e-06 -0.00038158593361 0)
(-4.60227193862e-06 -0.000388310763331 0)
(2.93383232905e-05 0.000455444958651 0)
(0.00010659143303 0.000591144423292 0)
(0.000136635892475 0.000584115973091 0)
(0.000100332173382 0.000385684306787 0)
(0.000167665304412 0.000442566018262 0)
(0.000286655164652 0.000599370579455 0)
(0.000310255184832 0.000594477388396 0)
(0.000373028481487 0.000580549963255 0)
(0.000362821225814 0.000494624538226 0)
(0.000469853928242 0.000518329981637 0)
(0.000380462690641 0.000319266750546 0)
(0.000456471676891 0.000299716083988 0)
(0.000509169204862 0.000315223229795 0)
(0.000612604275351 0.000400580439202 0)
(0.000738351048541 0.000498279407318 0)
(0.000806288118375 0.000499938242253 0)
(0.000806824933887 0.000454129572326 0)
(0.000886442361462 0.000487170163971 0)
(0.00097321593851 0.000534425792213 0)
(0.00103850761773 0.000549293934363 0)
(0.00109946901939 0.000544588343361 0)
(0.00115096141826 0.00053068875851 0)
(0.00121057319533 0.000518017052144 0)
(0.00125148350889 0.00049367177809 0)
(0.00128764104825 0.000451014932719 0)
(0.00137606928594 0.00044158396083 0)
(0.00135509123809 0.000417812636244 0)
(0.00149575186507 0.000414943945538 0)
(0.00146922634782 0.000387075673097 0)
(0.00160234395009 0.000401716613448 0)
(0.00157872810262 0.00038005959526 0)
(0.00171645758036 0.000409974184202 0)
(0.00179443997066 0.000461310803224 -1.04714510345e-28)
(0.00186693180743 0.000498004201171 1.05799361335e-28)
(0.00192539802064 0.000493640773456 0)
(0.00197993868914 0.000473214758365 0)
(0.002032978119 0.000449893517621 0)
(0.00208359240074 0.000425847195842 0)
(0.00213269598799 0.000399432497079 0)
(0.00217991164569 0.000368782871567 0)
(0.00222415161669 0.00033372685576 0)
(0.00226472882844 0.000295946742861 0)
(0.00230098195445 0.000257490198396 0)
(0.00233211235938 0.00021937185048 0)
(0.00235756302193 0.000181369532447 0)
(0.00237688978822 0.000142466653928 0)
(0.00238943166656 0.000101304285675 0)
(0.00239420638926 5.66034072698e-05 0)
(0.00239019682074 7.51116080111e-06 0)
(0.00237658119948 -4.63941629406e-05 0)
(0.00235262248713 -0.000105375185897 0)
(0.00231748854471 -0.000169666016576 0)
(0.0022701105384 -0.000239951958167 0)
(0.00220834546329 -0.000318452624702 0)
(0.002127804342 -0.000409754003576 0)
(0.00202246704558 -0.000519016408432 0)
(0.00188930243187 -0.000644687074986 0)
(0.00173638542842 -0.000774287794023 0)
(0.00158378089672 -0.000893800818166 0)
(0.00144472423147 -0.000996527905658 0)
(0.00131931161855 -0.0010742036861 0)
(0.0012116784133 -0.00112801436791 0)
(0.00113516262692 -0.00118036805836 0)
(0.00108787440814 -0.00124174295664 0)
(0.00110811080199 -0.00131693474751 0)
(0.000991683213703 -0.00119244176504 0)
(0.000621313639309 -0.000804825874947 0)
(0.000498999983941 -0.000721474331821 0)
(0.000446579070896 -0.000683329164116 0)
(0.000404498312837 -0.000669882555562 0)
(0.000363225087956 -0.000671432974838 0)
(0.000309037235911 -0.000688438675419 0)
(0.00023167623259 -0.000701238240239 0)
(0.000149112264991 -0.00068266230112 0)
(8.14633574908e-05 -0.000623414205698 0)
(2.79800128e-05 -0.000543118052024 0)
(-1.40162760933e-05 -0.000471991687812 0)
(-4.16036448075e-05 -0.000413882995407 0)
(-4.44391593622e-05 -0.000379875218719 0)
(-1.86373439886e-05 -0.000366908836091 0)
(3.50064299973e-05 0.000536004432052 0)
(0.000116291512323 0.000642211765477 0)
(0.000122504240805 0.000578781820288 0)
(9.95863318207e-05 0.000414797022635 0)
(0.000209304965181 0.000587125614248 0)
(0.000252920112908 0.00061747183609 0)
(0.000280546917959 0.000635420881702 0)
(0.00032992730552 0.000620925986901 0)
(0.000307319169706 0.000486052753794 0)
(0.00039005959618 0.000496682205148 0)
(0.000353154147671 0.000351390482953 0)
(0.000437228896967 0.000360765968025 0)
(0.000488817159215 0.000389893284212 0)
(0.000615046817394 0.000508077116269 0)
(0.000711212112316 0.000574163807428 0)
(0.000706899870702 0.000512753294902 0)
(0.000764465170807 0.000509860200247 0)
(0.000858698591117 0.000566740754201 0)
(0.00093564252528 0.00060635993697 0)
(0.000997895001432 0.000613485899745 0)
(0.00106673777385 0.00060725347703 0)
(0.00112323945541 0.000587800590666 0)
(0.00118862389061 0.000567065237249 0)
(0.00122625062493 0.000539023834406 0)
(0.00122172188971 0.00049875869034 0)
(0.00136659901685 0.000498184532578 0)
(0.00134416815377 0.000466400000882 0)
(0.00138451519104 0.00044680045343 0)
(0.00145104566754 0.000443943915106 0)
(0.00150451723005 0.000455047478818 0)
(0.00162654456807 0.000473683164943 0)
(0.00167030001528 0.000492015932198 0)
(0.0017988708984 0.000541625727867 0)
(0.00186098819295 0.000561828968166 0)
(0.00191658718673 0.000550854323403 0)
(0.00197375800757 0.00052867419737 0)
(0.00202951768648 0.000503489688143 0)
(0.00208270996189 0.000476809997668 0)
(0.00213367588872 0.000447784279777 0)
(0.00218237131397 0.000414694265824 0)
(0.00222819616715 0.000376826707172 0)
(0.00227037091724 0.000335351805279 0)
(0.00230803177612 0.000292147946746 0)
(0.00234042704372 0.000248339667101 0)
(0.00236702129267 0.000203918729967 0)
(0.00238711461127 0.000157949508206 0)
(0.00239950315102 0.000108972997808 0)
(0.00240284854076 5.56085167953e-05 0)
(0.00239606659126 -2.98797431079e-06 0)
(0.00237830210892 -6.72287368697e-05 0)
(0.00234870759763 -0.00013747892806 0)
(0.00230646957984 -0.000214496407093 0)
(0.00225041306589 -0.000300098118114 0)
(0.00217763204856 -0.000397829427033 0)
(0.00208341901508 -0.000512634646642 0)
(0.00196242561978 -0.000647262356021 0)
(0.00181471588538 -0.000793781486307 0)
(0.00165459765466 -0.000933827737315 0)
(0.00149953840802 -0.00105423122131 0)
(0.00135457419259 -0.00114398152394 0)
(0.0012222935678 -0.00119378602466 0)
(0.00111165208558 -0.00121781415256 0)
(0.00103422451643 -0.00124423331795 0)
(0.000989390375905 -0.00127002493274 0)
(0.000986057161892 -0.00130328459277 0)
(0.00102070820486 -0.00136274809074 0)
(0.000909917718993 -0.0012943519295 0)
(0.000457938485332 -0.00078359996549 0)
(0.00036989713472 -0.00069457578103 0)
(0.000356449853995 -0.000690065545249 0)
(0.000334456223634 -0.000719520543086 0)
(0.000280000847587 -0.000767280908604 0)
(0.000194638768865 -0.000790593597624 0)
(0.000103143879979 -0.000764330662603 0)
(2.06496680253e-05 -0.000690495633336 0)
(-4.85332552747e-05 -0.000602324873694 0)
(-9.16163538437e-05 -0.00050364952733 0)
(-0.000100831694706 -0.000419430245308 0)
(-7.80979217684e-05 -0.000349895298752 0)
(-2.93799518968e-05 -0.000312345424093 0)
(3.20886848528e-05 0.000613500306643 0)
(0.000107393201416 0.000681960216001 0)
(9.96228572563e-05 0.000512931614715 0)
(0.000119888822011 0.000479436295339 0)
(0.000208824555448 0.000665942759817 0)
(0.000209987143653 0.000650305612363 0)
(0.000254993804762 0.00067512488396 0)
(0.000269587291131 0.000630736397171 0)
(0.000308260016785 0.000571705715246 0)
(0.000319564366437 0.000464282329496 0)
(0.000345011593967 0.000408233457963 0)
(0.00041844030601 0.000429037831471 0)
(0.000469129717558 0.000466346852261 0)
(0.000598384501584 0.000601781547724 0)
(0.000675794827202 0.00063235561857 0)
(0.00065675971669 0.000552734963785 0)
(0.000732037569154 0.000581894798656 0)
(0.000820388102447 0.000644789409469 0)
(0.000891209721976 0.000675991956162 0)
(0.000953199991944 0.000678845810274 0)
(0.00101647359631 0.000668912416488 0)
(0.0010883719421 0.000654770758276 0)
(0.00115824753622 0.000619408823195 0)
(0.00121355234226 0.000581115315589 0)
(0.00120209408286 0.000546998114365 0)
(0.00123798165108 0.000516293525823 0)
(0.00136253210464 0.000523960157589 0)
(0.00135769594066 0.000511625030588 0)
(0.00150952151429 0.000532170166322 0)
(0.00148500700347 0.000513704762087 0)
(0.00154226857218 0.000529237602196 0)
(0.001660363809 0.000585118945697 0)
(0.00178688880385 0.00063522978611 0)
(0.00184732748393 0.00062872666314 0)
(0.00190584872271 0.000609007693778 0)
(0.00196626230614 0.000585850281079 0)
(0.0020250774803 0.000559432487867 0)
(0.00208131653997 0.000530276798306 0)
(0.00213500888846 0.000498331193493 0)
(0.00218553533287 0.000462474425879 0)
(0.00223296759717 0.000421680210541 0)
(0.00227711094184 0.00037638898598 0)
(0.00231674245826 0.000328270285987 0)
(0.0023509394176 0.000278675682528 0)
(0.00237919934653 0.000227634850791 0)
(0.00240054561017 0.000174003051677 0)
(0.00241325023479 0.000116159446602 0)
(0.00241559604378 5.27896267973e-05 0)
(0.00240638601247 -1.67758431905e-05 0)
(0.00238465136197 -9.28742257393e-05 0)
(0.00234950446865 -0.000176033117153 0)
(0.00230023512127 -0.000267643832705 0)
(0.00223543876528 -0.000370513031398 0)
(0.00215204453697 -0.000488909144145 0)
(0.00204625747673 -0.00062612485312 0)
(0.00191437283395 -0.00078306667911 0)
(0.00175980678064 -0.000951889103985 0)
(0.00159165938337 -0.00111526776351 0)
(0.00140800100217 -0.00123477259075 0)
(0.0012421883745 -0.00129334782463 0)
(0.00110413084898 -0.00130779397106 0)
(0.000991341454816 -0.0013107923321 0)
(0.000899573696497 -0.00131956358194 0)
(0.000830899145219 -0.00131093639984 0)
(0.000804034515512 -0.0012963456487 0)
(0.000827042672355 -0.00131023635202 0)
(0.000893516287493 -0.00140636583443 0)
(0.000724618258966 -0.00130608569157 0)
(0.000368364172761 -0.00077213990859 0)
(0.000327113013995 -0.000685756143303 0)
(0.00031392407903 -0.000757617715508 0)
(0.000262616934577 -0.00084981530624 0)
(0.000167560174495 -0.000893272781807 0)
(5.73066482308e-05 -0.000868000263973 0)
(-5.13547486662e-05 -0.0007891677356 0)
(-0.000144696462031 -0.000673869223099 0)
(-0.000183669190932 -0.00051624869298 0)
(-0.000168130482237 -0.00039748556264 0)
(-0.000119290285563 -0.000295909419225 0)
(-4.20187087078e-05 -0.000243224727142 0)
(2.19437050325e-05 0.000674604829009 0)
(7.29617165065e-05 0.000712683600675 0)
(8.88944528967e-05 0.00053571298855 0)
(0.000143375734631 0.000541217277799 0)
(0.000170611737333 0.000616000681407 0)
(0.000178565451229 0.000678613134024 0)
(0.000236921937409 0.00071460105198 0)
(0.000229896051598 0.000630682854852 0)
(0.00029541582385 0.000653755370605 0)
(0.000296179816588 0.000489508708919 0)
(0.000339178213487 0.000461448328556 0)
(0.000399434813505 0.000493276130067 0)
(0.000454834290954 0.000547605843966 0)
(0.000570552567611 0.000680538990155 0)
(0.000625733846203 0.00068071420315 0)
(0.00060719281669 0.000596983452445 0)
(0.000694836023561 0.000655988879639 0)
(0.00077559889388 0.000719157781965 0)
(0.000841367985989 0.000742797090457 0)
(0.000905678987635 0.000745322149695 0)
(0.000965322240505 0.000735970310063 0)
(0.00104656482242 0.000725019705707 0)
(0.00107184506667 0.000658418777225 0)
(0.00118305816324 0.000630778650889 0)
(0.00119347112178 0.00059132365076 0)
(0.00120676910621 0.000580198979552 0)
(0.00135677812345 0.000601193468957 0)
(0.00132838181542 0.000565137537185 0)
(0.00138773725337 0.000567600593263 0)
(0.00151869644368 0.000598963512096 0)
(0.00157077034579 0.000631033961725 0)
(0.00169995884628 0.000696162788169 0)
(0.0017623194079 0.000711325555318 0)
(0.00182890861111 0.000694281132716 0)
(0.00189330297096 0.000671256033586 0)
(0.00195670291046 0.00064617988846 0)
(0.00201893946995 0.0006182079809 0)
(0.00207872232008 0.000586916039822 0)
(0.00213637674173 0.000551936364777 0)
(0.00218998150327 0.000512606238963 0)
(0.00223899389164 0.00046841588387 0)
(0.00228475089193 0.000419351952259 0)
(0.00232693170491 0.000366461189697 0)
(0.00236380351234 0.000311037478562 0)
(0.00239445712776 0.000253152696761 0)
(0.0024177976977 0.00019130191771 0)
(0.00243168716862 0.000123564362477 0)
(0.00243400892122 4.87943660177e-05 0)
(0.00242331955888 -3.33123886868e-05 0)
(0.00239853523006 -0.000122934974259 0)
(0.00235876355081 -0.000220815043394 0)
(0.00230304819339 -0.000328879572389 0)
(0.00222970358233 -0.00045060221045 0)
(0.00213589247486 -0.00058927611393 0)
(0.00202180670252 -0.000742868969021 0)
(0.00189079094992 -0.00091707530647 0)
(0.00174429099709 -0.00112702793718 0)
(0.00154296931726 -0.00133615765135 0)
(0.00129466758924 -0.00144142368611 0)
(0.00111227730447 -0.00143625971764 0)
(0.00098379075182 -0.00141225659297 0)
(0.000871522351337 -0.00141449454455 0)
(0.000750148760921 -0.00142352899194 0)
(0.000636947731698 -0.00137542221608 0)
(0.000579853379841 -0.00129578045832 0)
(0.000600876958553 -0.00123811350072 0)
(0.000682716148292 -0.00127502784283 0)
(0.000803356595511 -0.00144501258266 0)
(0.000487263102788 -0.000951403292485 0)
(0.000362606338647 -0.000704796212248 0)
(0.000327638986835 -0.000749365730094 0)
(0.00026940233891 -0.000893341638683 0)
(0.000156186651503 -0.000968396956629 0)
(1.26449856552e-05 -0.000964397943785 0)
(-0.000135640492138 -0.000886268693702 0)
(-0.000272867325607 -0.000745200248983 0)
(-0.00030396506603 -0.000492807253205 0)
(-0.000257108514427 -0.00036138536816 0)
(-0.000185314740184 -0.000211336940775 0)
(-6.37528240096e-05 -0.000142414546692 0)
(1.27679982576e-05 0.000711471177091 0)
(3.90692779229e-05 0.000733888229156 0)
(7.93516030296e-05 0.000575367362765 0)
(0.000141792665555 0.000585932236216 0)
(0.000148247569623 0.000604050657784 0)
(0.000176451142406 0.00071699110878 0)
(0.000225344610963 0.000748158068481 0)
(0.000194631585112 0.000587172828015 0)
(0.000282833857017 0.000712781142668 0)
(0.000269899621055 0.000510125321037 0)
(0.000322840139189 0.000507647920053 0)
(0.000375754585509 0.000551104872085 0)
(0.000429490199717 0.000621219820186 0)
(0.000535624996983 0.000745858112283 0)
(0.000515682394318 0.000651415956131 0)
(0.000550921605467 0.000640416838975 0)
(0.000651208092701 0.000735361925805 0)
(0.000724705513819 0.000790795523936 0)
(0.000787313741406 0.000806751910004 0)
(0.000851348933395 0.000808937747041 0)
(0.000913369239751 0.000804660305426 0)
(0.00100359977089 0.000798342550448 0)
(0.00100489600629 0.000702852762847 0)
(0.00104680732007 0.000640981682062 0)
(0.00118608963213 0.000664018701929 0)
(0.00117435780484 0.000635701620699 0)
(0.00122574677353 0.000614517318439 0)
(0.00132031196154 0.000627294507379 0)
(0.00135844562924 0.000648139134549 0)
(0.00142622865143 0.000663477992038 0)
(0.00152336330142 0.000712968005897 0)
(0.00167875739945 0.000787492810917 0)
(0.00174110363541 0.000783735262392 0)
(0.00180943233967 0.000762010255123 0)
(0.00187885043319 0.000737565336375 1.01088627792e-28)
(0.00194616974059 0.000710722636512 -9.93300719752e-29)
(0.00201252000971 0.000680672271209 0)
(0.00207505825952 0.000646681685589 0)
(0.00213566560318 0.000608837785411 0)
(0.00219421490561 0.00056606428069 0)
(0.00224684536731 0.00051774712728 0)
(0.00229434512676 0.000464505529728 0)
(0.00233861265254 0.000407080006279 0)
(0.00237875172955 0.00034615826284 0)
(0.00241292553468 0.00028144344813 0)
(0.00243943684399 0.000210958074072 0)
(0.00245587379604 0.00013241464023 0)
(0.00245981426461 4.49275995653e-05 0)
(0.00244957291417 -5.12201122903e-05 0)
(0.00242390893396 -0.000156097148004 0)
(0.00238163624375 -0.000270681913131 0)
(0.00232085318917 -0.000397539487646 0)
(0.00223864626783 -0.000539855953534 0)
(0.00213183281143 -0.000696915211661 0)
(0.00201254107622 -0.00085368090205 0)
(0.00190981516767 -0.00103440005843 0)
(0.00178744304304 -0.00133711670035 0)
(0.00150735314442 -0.00172046203686 0)
(0.00113399097474 -0.00178304062482 0)
(0.000943762603117 -0.0016097453323 0)
(0.000860088761305 -0.00157479072706 0)
(0.000761728374855 -0.00160854001715 0)
(0.000607505118497 -0.00161107695476 0)
(0.000427704168618 -0.00149469149247 0)
(0.000325498910069 -0.00128108766715 0)
(0.000344461642375 -0.00117988236678 0)
(0.000467789285914 -0.00144972706091 0)
(0.000686246207134 -0.00195747497688 0)
(0.000654708137375 -0.00181133798583 0)
(0.00050477846329 -0.00112516325418 0)
(0.000452810873125 -0.00124875077307 0)
(0.00033716041485 -0.00139484848249 0)
(0.000187947718483 -0.00151731091526 0)
(-1.02724590106e-05 -0.00147356490193 0)
(-0.000221566576793 -0.00133117850239 0)
(-0.000444414787262 -0.00112310865598 0)
(-0.000456139708158 -0.000438598629496 0)
(-0.000368126227672 -0.000321522156677 0)
(-0.000284219975609 -6.71225300628e-05 0)
(-9.19950565695e-05 1.5987072791e-05 0)
(1.34229116251e-05 0.00074498635826 0)
(4.74369550865e-05 0.000754923794492 0)
(8.19666208601e-05 0.000746225977625 0)
(0.000104254556353 0.000619503227701 0)
(0.00013346968995 0.000639680585519 0)
(0.00017549174124 0.000754986666416 0)
(0.000211110859582 0.000774401855478 0)
(0.000194888304283 0.000620309918986 0)
(0.000279576126464 0.000752877875572 0)
(0.000247230582593 0.000536038424444 0)
(0.000304224479048 0.000552933920866 0)
(0.000351993765288 0.000603251993754 0)
(0.000401724025019 0.000682177149158 0)
(0.000495560273065 0.000800579461771 0)
(0.000468192680298 0.000677599144661 0)
(0.000528783364337 0.000707395408471 0)
(0.000613834732375 0.000807161136521 0)
(0.000674906438448 0.000855236798461 0)
(0.000733245599218 0.000868199485777 0)
(0.000792811503908 0.000868543890314 0)
(0.000857019749391 0.000869847761496 0)
(0.000951159389765 0.000862885411087 0)
(0.000955238042353 0.000749606957173 0)
(0.00101034729507 0.000711203656045 0)
(0.0011544238132 0.000737197901713 0)
(0.0011364171977 0.000682146700341 0)
(0.00118861916334 0.000685353507631 0)
(0.00133319327726 0.000719352006927 0)
(0.00133606476766 0.000699711490751 0)
(0.00141972647773 0.000756577003333 0)
(0.00157976379858 0.00085354564158 0)
(0.0016469728995 0.00087029711508 0)
(0.00171591277581 0.000853254661578 0)
(0.00178874339295 0.000831921435474 0)
(0.00186286194448 0.000807809868983 0)
(0.00193286634006 0.000778788171953 0)
(0.00200315386444 0.000746814010107 0)
(0.00207229171486 0.000710849870419 0)
(0.00213581045127 0.000669552805676 0)
(0.0021968589903 0.000623054709229 0)
(0.00225436013658 0.000570532409548 0)
(0.00230567313108 0.000512574651324 0)
(0.00235247924473 0.000450489047868 0)
(0.00239583505268 0.000384619726715 0)
(0.00243438370663 0.000313665894381 0)
(0.00246567177734 0.000234608762862 0)
(0.0024867691327 0.000144682306467 0)
(0.00249500946752 4.3424217582e-05 0)
(0.00248828774273 -6.80231674539e-05 0)
(0.00246548991312 -0.000189433750242 0)
(0.00242542201993 -0.000323006466409 0)
(0.00236219555051 -0.000472552902983 0)
(0.00226947699587 -0.000638962089416 0)
(0.00213804770512 -0.000816753063252 0)
(0.00201350212911 -0.000943025295793 0)
(0.00200570667185 -0.00109524818149 0)
(0.00201257788832 -0.00154524409845 0)
(0.00172135011351 -0.0012088172193 0)
(0.00121332793432 -0.000552397158813 0)
(0.00107018969955 0.000130095825059 0)
(0.00121507335363 0.000723987195302 0)
(0.00119134596277 0.00151738975532 0)
(0.00103169386676 0.00286628195113 0)
(0.000544879432163 0.00486874163807 0)
(0.000559949858111 0.00831515352203 0)
(0.00198016488173 0.0103538914275 0)
(0.00197293819695 0.00745773253487 0)
(0.00154097961931 0.00627627043235 0)
(0.0012936796137 0.00581453655545 0)
(0.00191633441263 0.00596205535223 0)
(0.00109230573092 0.00309556059272 0)
(0.000696155164518 0.00267402013458 0)
(0.000387588355953 0.00232264761742 0)
(5.11371240783e-05 0.00201557026602 0)
(-0.000355190735851 0.00168714006317 0)
(-0.00102541335479 0.00119181046447 0)
(-0.000929506245612 0.000281189977647 0)
(-0.000523250256959 -0.000523903542827 0)
(-0.000435125446358 0.000154636376168 0)
(-0.000119668961923 0.000227719070678 0)
(1.39881538417e-05 0.000777566392268 0)
(6.22138974142e-05 0.000779893249953 0)
(5.49189881815e-05 0.0006354165833 0)
(6.61321004235e-05 0.000654969211982 0)
(0.000113724524808 0.000677649587295 0)
(0.000166737901107 0.000790475204376 0)
(0.000197821754823 0.000791772246801 0)
(0.000201928663515 0.000657317888245 0)
(0.000268059697882 0.00078050605202 0)
(0.00022350410539 0.000568095349168 0)
(0.000284179750692 0.000599128381225 0)
(0.000329850467736 0.000652397292055 0)
(0.000379005973424 0.000736385208975 0)
(0.00045854798401 0.000841105011789 0)
(0.000441202917437 0.000717574367496 0)
(0.000508809572048 0.000770129556526 0)
(0.000578603462444 0.000867005551317 0)
(0.000628874992317 0.000911667669846 0)
(0.000681450525238 0.000926183743377 0)
(0.000738786801414 0.000929577127672 0)
(0.000800358477297 0.000931673255821 0)
(0.000887662321886 0.000925983322354 0)
(0.000933507008256 0.00083210087848 0)
(0.000974368667718 0.000765277643052 0)
(0.00102345514805 0.000736154737775 0)
(0.0011292310601 0.000763519942229 0)
(0.00115363650987 0.000755369574832 0)
(0.00120725650012 0.000752194859103 0)
(0.00137618587985 0.000830485502081 0)
(0.0014674636493 0.000893332211697 0)
(0.00155280725368 0.000934306978962 0)
(0.00162211154334 0.000939577175481 0)
(0.001694500007 0.000926268552925 0)
(0.00176921381878 0.000905570408697 0)
(0.00184382811229 0.00088000001517 0)
(0.00191925337655 0.000851138483148 9.63854951477e-29)
(0.00199337961297 0.000817612352714 -9.47764789956e-29)
(0.00206550876094 0.000778670361525 0)
(0.00213617889168 0.000734578253019 0)
(0.00220073900069 0.000684119884613 0)
(0.00226135208638 0.000627234703579 0)
(0.00231719804996 0.000564401888615 0)
(0.00236797058416 0.000497264270215 0)
(0.00241505639388 0.000426830664167 0)
(0.00245840932616 0.000351078504666 0)
(0.00249643611245 0.000264722475865 0)
(0.00252520766285 0.000163212687986 0)
(0.00254046237911 4.70836123619e-05 0)
(0.00254145355743 -7.94569386022e-05 0)
(0.00252942512744 -0.000216892204904 0)
(0.00250034673276 -0.000372148736091 0)
(0.00244061723281 -0.000550030732545 0)
(0.0023386325946 -0.000750380312357 0)
(0.00214682970587 -0.000961543205921 0)
(0.00199698617304 -0.00110607236979 0)
(0.00225606773642 -0.000790240205439 0)
(0.00245574464885 0.000159461108125 -1.10703971038e-28)
(0.0157691781892 0.00286221562498 6.45706540411e-28)
(0.027619223753 -0.000158812761924 0)
(0.0301490039344 -0.00216917864156 0)
(0.0341616314997 -0.00405331655383 0)
(0.0366359718547 -0.00615138674759 0)
(0.0392241878121 -0.00878783290807 0)
(0.0414000034839 -0.011339861226 0)
(0.0429906016172 -0.0130240837027 0)
(0.0440563701093 -0.0130090897568 0)
(0.0453112377873 -0.0116575447176 0)
(0.0466320803435 -0.00993309623188 0)
(0.0470626499719 -0.00805230521952 0)
(0.0466792680612 -0.00609077123637 0)
(0.0453874151646 -0.00422030440557 0)
(0.042955225597 -0.00289693208793 0)
(0.0389024816979 -0.00198909913886 0)
(0.0336630203745 -0.00122355948965 0)
(0.0277234997912 -0.000552782449283 0)
(0.0205616255199 -0.000465937092532 0)
(0.00455533649411 0.00245303362116 0)
(0.000404759382276 0.00182505616282 0)
(-0.000880266384665 0.000914741314935 0)
(-0.000136029115046 0.000596368719984 0)
(1.05061243961e-05 0.000810417946389 0)
(5.05656060823e-05 0.000810676684303 0)
(4.51424654101e-05 0.000652004430463 0)
(5.64106831733e-05 0.000695693829361 1.62107596213e-29)
(0.00010414582604 0.000733265424674 -1.68131095171e-29)
(0.000154565618885 0.00082093608551 0)
(0.000174909751658 0.000806501833897 0)
(0.000199652986108 0.000702793487048 0)
(0.000222491051341 0.000697716791136 0)
(0.000209492192366 0.00060500395189 0)
(0.000265281687679 0.000647569695384 0)
(0.000309954438821 0.000700404243171 0)
(0.000361186705105 0.00078910677178 0)
(0.000425496280611 0.000873663605942 0)
(0.000411688580518 0.000758649550975 0)
(0.00048154571984 0.000828914534028 0)
(0.000540167345047 0.000917755341737 0)
(0.000583695892626 0.000960689920065 0)
(0.000631256845394 0.000980425747137 0)
(0.000685501228502 0.00098899020995 0)
(0.000745203411949 0.000993674192512 0)
(0.000820902480697 0.000986875421615 0)
(0.000899249475364 0.000917072788751 0)
(0.000935987652255 0.000818478913059 0)
(0.000975829652508 0.000790161187494 0)
(0.00112471034609 0.000858604967621 0)
(0.00111184986578 0.000821371764884 0)
(0.00117899398156 0.000847628725375 0)
(0.00125667196758 0.000888528081892 0)
(0.0014028308498 0.000979471599373 0)
(0.00150731354318 0.00102349369141 0)
(0.00158835333896 0.00101888386531 0)
(0.00166650371442 0.00100232030891 0)
(0.00174352075275 0.000980918543945 0)
(0.00182641744327 0.000957875688228 0)
(0.00190426378204 0.000927333489061 0)
(0.00198354629184 0.000892873298111 0)
(0.00205944147526 0.000851486916566 0)
(0.00213423285074 0.000803955689902 0)
(0.00220457237138 0.000749448006891 0)
(0.00226891436057 0.000687960583537 0)
(0.00232860494301 0.00062054945605 0)
(0.00238444437758 0.00054857935079 0)
(0.0024364909135 0.000473614351703 0)
(0.00248487774506 0.000394290987343 0)
(0.00252882129111 0.000302389731976 0)
(0.00256645587736 0.000190326587101 0)
(0.0025934575219 6.08893410709e-05 0)
(0.00261254150731 -7.75564109666e-05 0)
(0.00262232960286 -0.000229007136825 0)
(0.00261506118862 -0.000406880008981 0)
(0.00257705441509 -0.000623526895159 0)
(0.00247486633473 -0.00087374268903 0)
(0.00224599562411 -0.00137408133747 0)
(0.00210362668634 2.83379018494e-05 0)
(0.0168501300683 0.0065302305631 0)
(0.0339505865112 0.0102160236927 0)
(0.0342633000243 0.00983276776126 0)
(0.0395678162263 0.00757281648864 0)
(0.0439623793422 0.00587051836961 0)
(0.0499808681212 0.00569377816344 0)
(0.0559333582279 0.00552662127295 0)
(0.06240388842 0.0054828384548 0)
(0.068699390774 0.00539583343274 0)
(0.0744591088133 0.00499750239895 0)
(0.0794610922205 0.00380023707243 0)
(0.0838367003197 0.00181278490015 0)
(0.0872978831515 -0.00036452864047 0)
(0.089345036115 -0.002843553531 0)
(0.0897803502716 -0.00557590506321 0)
(0.0892048943564 -0.00850951710738 0)
(0.086838067937 -0.0113921186939 0)
(0.0824777020829 -0.0143856812325 0)
(0.0759454670398 -0.0174928094655 0)
(0.0672080342136 -0.0204466266965 0)
(0.056103930218 -0.0222400191115 0)
(0.0430918344393 -0.0197904963737 0)
(0.0288385375385 -0.0103217806412 0)
(0.00399868149181 0.00171963875376 0)
(0.000123767435531 0.000505955679438 0)
(7.10766607225e-06 0.000837452939334 0)
(4.41824334549e-05 0.000837759601229 0)
(3.63597755535e-05 0.000627958926821 0)
(4.95011287693e-05 0.000733466986174 0)
(9.88596100248e-05 0.000794827444636 0)
(0.000139862351324 0.000845459534001 0)
(0.000149901353577 0.000822327400203 0)
(0.000182419882063 0.000754501133601 0)
(0.000208394939551 0.000703338177177 0)
(0.000207955289335 0.000635458892882 0)
(0.000252361780485 0.00069125362947 0)
(0.000292567489527 0.000746477555284 0)
(0.00034622455897 0.000838609115576 0)
(0.000391322695452 0.000898982362546 0)
(0.000376349673807 0.000799524801693 0)
(0.00044672347776 0.00088469056469 0)
(0.000497708166025 0.000963602056516 0)
(0.000536918003314 0.0010043260683 0)
(0.000579826578516 0.00103044278691 0)
(0.000630214160625 0.00104497911168 0)
(0.000687722447012 0.00105517761791 0)
(0.000758526888345 0.00105468302459 0)
(0.000844727342251 0.00100002690917 0)
(0.000887720451479 0.000884750548159 0)
(0.000935892461423 0.000843342758658 0)
(0.000995403484836 0.000853272706141 0)
(0.00108624066173 0.000898960993466 0)
(0.00114273747881 0.000922436725356 0)
(0.00123497709545 0.000994352076705 0)
(0.00138858278594 0.00110670879923 0)
(0.0014588994475 0.0011125945838 0)
(0.00154413025533 0.00109859450434 0)
(0.00162427901244 0.00107971566033 0)
(0.00171298475548 0.00106312069134 0)
(0.00180026402571 0.00103922942805 0)
(0.00188807984122 0.0010101258689 0)
(0.00196986655761 0.000972352031688 -9.16496912975e-29)
(0.00205296375906 0.000929391213934 9.0092392654e-29)
(0.00213187978199 0.000878017337328 0)
(0.00220728414058 0.000819376201848 0)
(0.0022774836888 0.000753789461306 0)
(0.00234115792179 0.000681101748384 0)
(0.0023981866911 0.000602895990239 0)
(0.00245424665004 0.000523086934674 0)
(0.00250825631044 0.000443932303339 0)
(0.00256102027076 0.000354912574718 0)
(0.00261062235353 0.000236195460215 0)
(0.00265323733545 8.9998530644e-05 0)
(0.00269495710692 -5.70242978695e-05 0)
(0.0027368219424 -0.000211619120927 0)
(0.0027764839626 -0.000402676454914 0)
(0.00279998660323 -0.000634412142267 0)
(0.00297552746948 -0.00098876885474 0)
(0.00245538980345 0.00104787313359 0)
(0.0364134688703 0.0168046571191 0)
(0.0389038818761 0.0173487251114 0)
(0.0454632180783 0.0172221386963 0)
(0.0483148483495 0.0139690214925 0)
(0.0542033397312 0.0120620504457 0)
(0.0602971061746 0.0107921554058 0)
(0.0676704847919 0.0106464631974 0)
(0.0752669761758 0.0105758150846 0)
(0.0831844407293 0.0106677760022 0)
(0.0908684307013 0.0107054407411 0)
(0.0980955050851 0.0105040911172 0)
(0.104685122881 0.00979871696059 0)
(0.110587232496 0.00856986747279 0)
(0.115609002609 0.00697223810852 0)
(0.119478035835 0.00490518072423 0)
(0.121899753007 0.00217895924625 0)
(0.122634067282 -0.00137068971236 0)
(0.121800286524 -0.00571674820341 0)
(0.118729648009 -0.0106411977033 0)
(0.113247780364 -0.0162635246099 0)
(0.104931239337 -0.0223682116887 0)
(0.0934217126128 -0.0281076773868 0)
(0.0788861509543 -0.0314505525279 0)
(0.0620464673577 -0.0306391824685 0)
(0.0412353457658 -0.0264096831978 0)
(-0.00501146135269 -0.0282272440525 0)
(2.77353196983e-06 0.00085804443927 0)
(2.88505001935e-05 0.00085975926106 0)
(2.67245639236e-05 0.000607029839648 0)
(5.37298969294e-05 0.000764721020778 0)
(9.84421060363e-05 0.000838037685904 0)
(0.000127786849541 0.000864227118398 0)
(0.000130940332654 0.000826238685697 0)
(0.00017137228004 0.000825440175462 0)
(0.000190270403182 0.000705615768363 0)
(0.000199000744154 0.000661313066457 0)
(0.00023682848858 0.000729639322016 0)
(0.000271572213949 0.000790225466745 0)
(0.000327219381948 0.00088256095834 0)
(0.000341804921307 0.000884055816852 0)
(0.000342271834065 0.000844124893191 1.20413738614e-28)
(0.000406197855607 0.000936578629292 -1.29964557104e-28)
(0.000452340408258 0.00100454491527 0)
(0.000486999531653 0.0010421013043 0)
(0.000526164199304 0.00107728809638 0)
(0.000571941746844 0.00109741837728 0)
(0.000626000077257 0.00111435075144 0)
(0.000692904407563 0.00112180223414 0)
(0.000779477084374 0.00107952732608 0)
(0.000828261655877 0.000954091753934 0)
(0.000891948230008 0.000902984033641 0)
(0.000941673051841 0.000912290572465 0)
(0.00109093073989 0.00102697986451 0)
(0.00113789436256 0.0010505561983 0)
(0.00124845068353 0.00113736448086 0)
(0.00133827866434 0.00119392812723 0)
(0.00141702512288 0.00120079147167 0)
(0.00149678139955 0.00118265579681 0)
(0.00158409230718 0.0011658719764 0)
(0.00167985141716 0.00115303204674 0)
(0.00177346103441 0.00112875406035 0)
(0.00185852441086 0.00109363403388 0)
(0.00195433351798 0.00105964444444 0)
(0.00204338523094 0.00101385386117 0)
(0.00212917821099 0.000958403521555 0)
(0.00221118185914 0.000894715123995 0)
(0.00228321708775 0.000822360775693 0)
(0.00235074951425 0.000744571265773 -8.26800997401e-29)
(0.00241266120344 0.000662708795281 8.08436420076e-29)
(0.00247414868869 0.000579088163543 0)
(0.00252910349157 0.000491314715561 0)
(0.0025395531178 0.000386910461988 0)
(0.00252361011052 0.000265569288588 0)
(0.00256590332757 0.000145932860636 0)
(0.00270989319716 1.96592061055e-05 0)
(0.0028079835431 -0.000138318338047 0)
(0.00290423279585 -0.000324064240114 0)
(0.00307772465529 -0.0006193478952 0)
(0.00307690235431 0.00244090391597 0)
(0.0441599153811 0.0276090004626 0)
(0.0451093249022 0.0275963360384 0)
(0.0514162795215 0.0228999188994 0)
(0.0565791567312 0.0213554317134 0)
(0.0618934819688 0.0189997399581 0)
(0.0690673614491 0.0185465446167 0)
(0.0767642353186 0.0184023622832 0)
(0.0852742647069 0.0186935760276 0)
(0.0939135941812 0.0187064121228 0)
(0.102620117384 0.0184660181245 0)
(0.111012163773 0.0177931229998 0)
(0.118957854753 0.0165959349846 0)
(0.126326727675 0.0147707553788 0)
(0.133028326439 0.012324088602 0)
(0.138907186046 0.00930804432169 0)
(0.143785218002 0.00571594611245 0)
(0.14742400334 0.0014883947833 0)
(0.1495107799 -0.00346381701167 0)
(0.150036654656 -0.00924753000325 0)
(0.148123416744 -0.0160048449587 0)
(0.143509751034 -0.0235442729457 0)
(0.135448583685 -0.0317374931916 0)
(0.122981691332 -0.0397481373383 0)
(0.105727413683 -0.0453696326659 0)
(0.0854923627898 -0.0449300354299 0)
(0.0614341880539 -0.0351446742792 0)
(0.00423941726822 0.00129830040157 0)
(-9.61297717114e-07 0.000870385802552 0)
(1.28190794982e-05 0.00087219765057 0)
(2.04749407997e-05 0.000634100118476 0)
(6.09267176402e-05 0.000822737230046 0)
(9.45043154687e-05 0.000866787864384 0)
(0.000114166094334 0.000881084490831 0)
(0.000117342526602 0.000827962360561 0)
(0.000154293741986 0.000870298468183 0)
(0.000165344403511 0.000714808208036 0)
(0.000181736289689 0.000683210524863 0)
(0.000215906646655 0.000762693215342 0)
(0.000244544671719 0.000828642213135 0)
(0.00029672476591 0.000925086590525 0)
(0.000294444650359 0.000860216803608 0)
(0.000316511865527 0.000882035776519 0)
(0.000366683589301 0.000981262690855 0)
(0.000406940613113 0.00104256408793 0)
(0.000432481582156 0.00106285824153 0)
(0.000472907208574 0.00111741830421 0)
(0.000512417440127 0.00114438279083 0)
(0.000560520941831 0.00117002463335 0)
(0.000623974530565 0.00118910983142 0)
(0.000706756226777 0.0011553935338 0)
(0.000759259510265 0.00102969863554 0)
(0.000834887485884 0.00097802959669 0)
(0.000885956458682 0.000973571777305 0)
(0.00096351922419 0.00104161117814 0)
(0.00102969762068 0.00110362449542 0)
(0.00113087261194 0.00118949857193 0)
(0.00126896728353 0.00128876127033 0)
(0.00135856161355 0.00129310567104 0)
(0.00143271778437 0.00126640385632 0)
(0.00154458748238 0.00126986631531 0)
(0.00164360573804 0.00125462630814 0)
(0.00172713744012 0.00121464804627 0)
(0.00183371221733 0.00118921448732 0)
(0.00193359304357 0.00115398684864 0)
(0.00202932057563 0.00110472897077 -8.63159603783e-29)
(0.00212149988569 0.0010446689751 8.47056498587e-29)
(0.00220995940368 0.000975170535164 0)
(0.00229320362637 0.000898042209034 0)
(0.00236363066093 0.000813027659181 0)
(0.00242289675386 0.000719920772541 0)
(0.00245484114238 0.000611714514464 0)
(0.00246012859301 0.000492364958967 0)
(0.0024465091987 0.000383916380704 0)
(0.00246922315542 0.000303827537838 0)
(0.00257403603934 0.000236375575377 0)
(0.00267683141637 0.000125150313309 0)
(0.00274926244328 -2.21696486806e-05 0)
(0.00291881008609 -0.000295865243349 0)
(0.00280445606219 0.0030098886906 0)
(0.0510266726149 0.0349912341735 0)
(0.0516208107044 0.0393915977947 0)
(0.0564166610365 0.0317497245264 0)
(0.0623529585229 0.0278068538066 0)
(0.0682914328276 0.0266993415907 0)
(0.075610710328 0.0260304670288 0)
(0.0841570083497 0.0267108987405 0)
(0.0932729916187 0.0273830711247 0)
(0.102904039996 0.027992204588 0)
(0.112630270221 0.0280549349687 0)
(0.122364981611 0.0275778532005 0)
(0.131873637413 0.026447246667 0)
(0.141066401003 0.0246301967179 0)
(0.14982654062 0.0220854578773 0)
(0.158035123376 0.018806617181 0)
(0.165522680847 0.0147691487008 0)
(0.172093803059 0.00990720741203 0)
(0.177489327797 0.00410618145866 0)
(0.181365765564 -0.00280544859177 0)
(0.183434567871 -0.0110162799141 0)
(0.183396169367 -0.0208917483671 0)
(0.180370013209 -0.0322822004093 0)
(0.173502587537 -0.04537189119 0)
(0.160969684515 -0.059805544619 0)
(0.14079562102 -0.0737778839873 0)
(0.113039798001 -0.0830062302972 0)
(0.0766084939429 -0.0833584846466 0)
(0.00182002460951 -0.0786033441989 0)
(-2.86422339354e-06 0.000877001412961 0)
(5.5668849064e-06 0.000877798003982 0)
(1.90874023421e-05 0.00066363249603 0)
(6.02938285681e-05 0.000865799680064 0)
(7.87785126371e-05 0.000883129790771 0)
(9.1019273872e-05 0.000897334811521 0)
(0.000101088992132 0.000833543432811 0)
(0.000133201309745 0.00089458721381 0)
(0.000138977230506 0.000732311276157 0)
(0.000160791968588 0.000704999594459 0)
(0.000192740285666 0.000791910331168 0)
(0.000217020518173 0.000860376871299 0)
(0.00026044952604 0.000960086642708 0)
(0.000267240971752 0.000889103154928 0)
(0.000293955470257 0.000914966075228 0)
(0.000332307553255 0.00101763981483 0)
(0.000363121328953 0.00107724573578 0)
(0.000385042960461 0.00109400019701 0)
(0.000421791716342 0.00115128232881 0)
(0.000455042608375 0.00118245405808 0)
(0.000493095200692 0.00121688403798 0)
(0.00055278760076 0.00125765710301 0)
(0.000627768485496 0.00122731122985 0)
(0.000683714962339 0.00110664001143 0)
(0.000768258677857 0.00105798520667 0)
(0.000824119383002 0.00103890056093 0)
(0.000897951222867 0.00110839899715 0)
(0.000983786370854 0.00121386914417 0)
(0.0011204708473 0.00134979049357 0)
(0.00119866868942 0.0013785764646 0)
(0.00128748613777 0.00137842718395 0)
(0.00136735546326 0.00135595958309 0)
(0.00146933506593 0.00134863809665 0)
(0.00157572494276 0.0013403710388 0)
(0.0016835429069 0.00131907469273 0)
(0.00180499873419 0.00129676679477 0)
(0.00191018733212 0.0012563587106 0)
(0.00201105649566 0.00120132168804 0)
(0.0021104740211 0.00113752384536 0)
(0.00220491440257 0.00106299046261 0)
(0.00229485142213 0.000977265589639 -8.0252979493e-29)
(0.00236831194308 0.000877098449467 7.79442978822e-29)
(0.00241383445296 0.000754939334102 0)
(0.0024042241176 0.000611829618914 0)
(0.0024094624844 0.000496601380279 0)
(0.00247407091905 0.000430099616407 0)
(0.00253851650807 0.000390487982459 0)
(0.00263354258784 0.000317096417831 0)
(0.00261203639617 0.000168309472851 0)
(0.00269478895031 -8.57706759107e-05 0)
(0.0023708686959 0.00305825615334 0)
(0.0559788728272 0.0407335862139 0)
(0.0582146935646 0.0490505078251 0)
(0.0616981921695 0.0422059437372 0)
(0.0669658148262 0.0360308799799 0)
(0.0733662392016 0.0340119836357 0)
(0.0808806113454 0.0339980868612 0)
(0.0898554704203 0.0347381703632 0)
(0.0997612101672 0.0361762344183 0)
(0.110223678615 0.0373590430989 0)
(0.121096530097 0.0381602112265 0)
(0.132135631991 0.0382667188313 0)
(0.143260967836 0.0376704189876 0)
(0.154319126586 0.0362912492225 0)
(0.165220139348 0.0340985491453 0)
(0.175835229915 0.0310410489748 0)
(0.186018636156 0.027069478127 0)
(0.195585786906 0.0221092850159 0)
(0.204331236389 0.016058204884 0)
(0.212006395524 0.00877957675861 0)
(0.218286503642 8.60120376585e-05 0)
(0.222809400797 -0.0102578262663 0)
(0.225846828423 -0.0226716287545 0)
(0.226396343347 -0.0376842039551 0)
(0.223821690204 -0.055676183871 0)
(0.215966374039 -0.0770740291717 0)
(0.199980965808 -0.101336320376 0)
(0.176257625363 -0.126666666346 0)
(0.149051323099 -0.15342045793 0)
(0.0707799397596 -0.194969266815 0)
(-3.85329058396e-06 0.000880016922035 0)
(2.80826547308e-06 0.000880259642135 0)
(2.050227626e-05 0.000705936260358 0)
(5.56501251758e-05 0.000889478769008 0)
(5.90082365793e-05 0.000890894353435 0)
(6.35969068962e-05 0.000910833916317 0)
(8.3730144031e-05 0.000872711263081 0)
(0.000104272346087 0.000903411991481 0)
(0.00011071220287 0.000757546374253 0)
(0.000138781937485 0.000726928761753 0)
(0.000168855181918 0.00081765625934 0)
(0.000189901346667 0.000887306139698 0)
(0.000226603041788 0.000986428649467 0)
(0.000236400197087 0.000912483392362 0)
(0.000264680945444 0.00094341412704 0)
(0.000297371139911 0.00104462311175 0)
(0.000320299056261 0.00110411135768 0)
(0.000336054914072 0.00112123482911 0)
(0.000369825171758 0.00118489531461 0)
(0.000399170879199 0.00121403981483 0)
(0.000424934521102 0.00125062633636 0)
(0.000476558510569 0.0013201073972 0)
(0.000542006557877 0.00129414548458 0)
(0.00060302965156 0.00118452473846 0)
(0.000691131590278 0.001140059998 0)
(0.000755109381062 0.00111121057826 0)
(0.00084108011208 0.00118368453019 0)
(0.000941062945739 0.00131409562274 0)
(0.00106282943713 0.00145205238169 0)
(0.00113276295733 0.00147772367805 0)
(0.00120817620074 0.00146064915609 0)
(0.00132279734896 0.00148113672735 0)
(0.00143467571637 0.00148539270518 0)
(0.00154233567187 0.00146367028963 0)
(0.00163220439132 0.00141997037622 0)
(0.00176298797218 0.00140394832809 0)
(0.00187604162125 0.00136306413979 0)
(0.00199117742446 0.00130952282665 0)
(0.00209929828525 0.00123950728334 0)
(0.00219789961684 0.00115553743847 0)
(0.00229119402259 0.00105843206835 0)
(0.00237102314027 0.000934242176972 0)
(0.00236948348234 0.000762242174815 0)
(0.00234337645057 0.000608101059473 0)
(0.00238908787225 0.000529935729581 0)
(0.00243599639242 0.000488867938347 0)
(0.0024809608337 0.000451779294954 0)
(0.00243561294671 0.000313308901951 0)
(0.00242362331236 6.31145117611e-05 0)
(0.00206530388835 0.00297974598681 0)
(0.059852359176 0.0453972868914 0)
(0.0637587430188 0.056840247172 0)
(0.0671145167126 0.0518392700607 0)
(0.0711856432501 0.0451783807323 0)
(0.077241490277 0.0418748431994 0)
(0.0850122661876 0.0417285238618 0)
(0.094208562513 0.0430256336937 0)
(0.104682145759 0.0449092369686 0)
(0.115956459359 0.0469819033828 0)
(0.127786756155 0.0486114977571 0)
(0.140021605711 0.0496579311185 0)
(0.152502160127 0.0499222277437 0)
(0.165137392983 0.0493825096638 0)
(0.177792246631 0.0479727619575 0)
(0.190351323826 0.0456518534733 0)
(0.202668771136 0.0423558641588 0)
(0.214590141749 0.0380118407968 0)
(0.225946939148 0.0325215006173 0)
(0.236574223046 0.0257609588563 0)
(0.246301077216 0.0175727272369 0)
(0.25492036965 0.00774123715484 0)
(0.262199121238 -0.00403636572264 0)
(0.268473512064 -0.018069803244 0)
(0.273741007539 -0.0353273818716 0)
(0.277444623026 -0.0562470544369 0)
(0.278065222023 -0.0817697386636 0)
(0.273839826501 -0.112780530267 0)
(0.268581690713 -0.151363298125 0)
(0.275132382896 -0.203839091835 0)
(0.278324322339 -0.280743415168 0)
(-4.64702420689e-06 0.000880473650876 0)
(2.99834231262e-06 0.000883422787649 0)
(2.36908498905e-05 0.000745557487984 0)
(4.93971450038e-05 0.000898466059158 0)
(3.96931943173e-05 0.000887920347091 0)
(4.03657095562e-05 0.000919984595832 0)
(6.24256485204e-05 0.00090770493244 0)
(6.82162574052e-05 0.000892017068716 0)
(8.24725396107e-05 0.000803642931947 0)
(0.00011591442018 0.000754004670572 0)
(0.000143311640421 0.000839967009515 0)
(0.000161257267621 0.000910505574382 0)
(0.000191439658494 0.00100844605336 0)
(0.000201981305237 0.0009370410852 0)
(0.000231003652603 0.000970912705173 0)
(0.000261199039966 0.00106537174726 0)
(0.000277277606684 0.0011226545706 0)
(0.000283479748913 0.00114245298915 0)
(0.000314692620086 0.00121827654235 0)
(0.00034166480283 0.00124105328394 0)
(0.000356399727938 0.00127056619444 0)
(0.000395740078368 0.00137073672028 0)
(0.000453813300466 0.00136168031208 0)
(0.000519059497534 0.00126207757258 0)
(0.000606270253539 0.00122358649372 0)
(0.000680802782709 0.00119912944787 0)
(0.00076841194744 0.00126924776966 0)
(0.000880977785723 0.00141386993823 0)
(0.000952939966302 0.00148678876284 0)
(0.00105084058302 0.00156642488096 0)
(0.00112452170852 0.00156301070457 0)
(0.00122403896869 0.00156170747319 0)
(0.00132489319627 0.00154886764335 0)
(0.00148356249598 0.00158655173537 0)
(0.0016036449188 0.00155935147607 0)
(0.00170965389489 0.00151069026863 0)
(0.00184221611212 0.0014782267687 0)
(0.00195687116307 0.00141883516281 0)
(0.00207856621321 0.00134803377005 0)
(0.00219198416508 0.00125805176679 -7.61612424207e-29)
(0.00229371778965 0.00114028355833 7.39633356892e-29)
(0.00232818366024 0.000958222640767 0)
(0.00228400032145 0.000748857196217 0)
(0.00230393042861 0.000618909725486 0)
(0.00233990721112 0.000543057560605 0)
(0.0022917284524 0.000457332202893 0)
(0.0021700851386 0.000407011452848 0)
(0.00211825769879 0.000218444439467 0)
(0.00171472914977 0.00257719472107 0)
(0.0626647384526 0.0492823174211 0)
(0.0680829516822 0.0629342467051 0)
(0.0717748797463 0.060038951503 0)
(0.0751637280469 0.0540465532308 0)
(0.0802986013163 0.050112143805 0)
(0.0878703855721 0.0494066308991 0)
(0.0972372340853 0.0510138120166 0)
(0.108002897169 0.0536071327478 0)
(0.119860109792 0.0564785133891 0)
(0.132431726013 0.0591762361418 0)
(0.145520423839 0.0612806388385 0)
(0.158967442051 0.0626594049669 0)
(0.172624076763 0.0631764333586 0)
(0.186363073707 0.0627934329445 0)
(0.200033955145 0.0614460522997 0)
(0.213499168785 0.0590824370005 0)
(0.226618980756 0.0556342095855 0)
(0.239274352162 0.0510246511076 0)
(0.251370892628 0.0451577485924 0)
(0.262850435639 0.0379175571663 0)
(0.273690633158 0.0291626498484 0)
(0.283899663123 0.0187079498021 0)
(0.293507858648 0.00627337998875 0)
(0.302577610743 -0.00854788955338 0)
(0.312119753207 -0.0261094428755 0)
(0.321318544396 -0.0471339995479 0)
(0.329474986865 -0.071935248605 0)
(0.336709073537 -0.101400885564 0)
(0.350273595506 -0.137779827304 0)
(0.384731066127 -0.185038313752 0)
(0.427961616421 -0.244103641403 0)
(-5.2914450333e-06 0.000875696474205 0)
(2.72400766037e-06 0.000888371946106 0)
(2.5275837944e-05 0.000781030649071 0)
(3.97097625703e-05 0.000884343109178 0)
(2.43274056507e-05 0.000869739253256 0)
(2.44768593547e-05 0.000924455583864 0)
(3.8158456738e-05 0.000924647126912 0)
(3.61354818331e-05 0.000863073618025 0)
(5.87496822676e-05 0.000840391599707 0)
(9.3998577346e-05 0.000776376142523 0)
(0.000116364484519 0.000857193482197 0)
(0.000130876624777 0.00092974131812 0)
(0.000154339936871 0.00102604389165 0)
(0.000164385914876 0.000961060053369 0)
(0.000192332344618 0.000998730672997 0)
(0.00022291760068 0.00108388557583 0)
(0.000231194261038 0.00112608521494 0)
(0.000229313715731 0.00115557848427 1.01697082233e-28)
(0.000257929480693 0.00124982886158 -1.06553780632e-28)
(0.000280000650708 0.00126328791555 0)
(0.000289026414478 0.00127766085489 0)
(0.000316707331848 0.00140201560195 0)
(0.000366791927581 0.00142953824978 0)
(0.000432676383238 0.00133612736455 0)
(0.000518392989316 0.00130311717716 0)
(0.00059970631328 0.00129163854341 0)
(0.000682380329655 0.00135365404243 0)
(0.000803311359897 0.00152031022643 0)
(0.000872267882502 0.00156525179276 0)
(0.000967963752308 0.00163271813789 0)
(0.00103539858108 0.00164341948861 0)
(0.00116830102369 0.00171539535987 0)
(0.00128355847001 0.00171646087116 0)
(0.00139236535601 0.00168185388674 0)
(0.00154139104228 0.00168014924619 0)
(0.00167146901106 0.00164670492965 0)
(0.00180194508677 0.0016014175772 0)
(0.001930391593 0.0015420533685 0)
(0.0020522467726 0.00146320558447 0)
(0.00217952266031 0.00136248587568 0)
(0.00226416421913 0.00119596158868 0)
(0.00223190692872 0.000949579216227 0)
(0.00222974024635 0.000755223701177 0)
(0.00226842177606 0.000624011728718 0)
(0.00223842991587 0.000468370849158 0)
(0.00199144429733 0.00026525433445 0)
(0.00182645633622 0.000401138999715 0)
(0.00142342847834 0.00205684746171 0)
(0.0647761317797 0.0528938775434 0)
(0.0712331149115 0.067474205631 0)
(0.075230932635 0.0666689373737 0)
(0.0783973310154 0.0619595195395 0)
(0.0827142037471 0.0581613248956 0)
(0.0896336328195 0.0570410249512 0)
(0.0988806381125 0.0586296478694 0)
(0.109776823549 0.0618351233845 0)
(0.121926730455 0.0655991154411 0)
(0.134985238525 0.0693195555503 0)
(0.148639980369 0.0725868907724 0)
(0.162695074651 0.0751034178298 0)
(0.17697387278 0.0767397476314 0)
(0.191315228041 0.0773820723174 0)
(0.205573405793 0.0769715628844 0)
(0.219609100254 0.0754394765958 0)
(0.233314404255 0.0727298285331 0)
(0.246612675523 0.068784065469 0)
(0.259473577551 0.0635468335868 0)
(0.271911297132 0.0569586387252 0)
(0.283980186333 0.0489535048339 0)
(0.295769159832 0.0394566712426 0)
(0.30741627636 0.0283744674157 0)
(0.319129879402 0.0155513924713 0)
(0.331146128558 0.000706665202347 0)
(0.343841136555 -0.0164286259265 0)
(0.357463373249 -0.0363959109332 0)
(0.37112903552 -0.0594706109654 0)
(0.386564547373 -0.0862289149065 0)
(0.41183033078 -0.118435296083 0)
(0.45737227465 -0.157429269338 0)
(0.506312865268 -0.199065797891 0)
(-3.81775315196e-06 0.000866582860097 0)
(2.81331471524e-06 0.000893905465245 0)
(1.88866155674e-05 0.000810343760914 0)
(2.74771243991e-05 0.000851228694259 0)
(2.03255029703e-05 0.000865935437645 1.21284618643e-29)
(1.94868215116e-05 0.000922085857512 -1.29189005805e-29)
(2.23525644878e-05 0.000937998339335 0)
(2.11903294689e-05 0.000866214892484 0)
(4.14332282798e-05 0.000914006162004 0)
(6.74436070507e-05 0.000801035614842 0)
(8.7158061241e-05 0.000869718253833 0)
(9.9290252873e-05 0.000945009639397 0)
(0.000116155470202 0.00103875131763 0)
(0.00012476592403 0.000982790633773 0)
(0.00014851116448 0.00102544831953 0)
(0.000176143636329 0.00110618576997 0)
(0.000179057961377 0.00110186114539 0)
(0.000182610530155 0.00115706614186 0)
(0.000206099988841 0.00127292183712 0)
(0.000216238982354 0.00127502341119 0)
(0.000228589060543 0.00129235560694 0)
(0.000254347173949 0.00140696362223 0)
(0.000287956690134 0.00150407297129 1.04820793065e-28)
(0.000344307992594 0.00140735534865 0)
(0.000430769665774 0.00137402638758 0)
(0.000513394368231 0.00137990478927 0)
(0.000593335700222 0.00143840507437 0)
(0.000710668804838 0.00161728095023 0)
(0.000791056129506 0.00166166976102 0)
(0.0008859308606 0.00170666547279 0)
(0.000965602202218 0.00173215317536 0)
(0.00108769132977 0.00182288662176 0)
(0.00118793274135 0.0018301615792 0)
(0.00133333151162 0.00183985661266 0)
(0.00146611568395 0.0018069236588 0)
(0.00160616498886 0.00177240687843 0)
(0.00175101034561 0.00173231290253 0)
(0.00189442469601 0.00167394851608 0)
(0.00203326274826 0.00159272986669 0)
(0.00215290564131 0.00145451549516 0)
(0.00216322914958 0.00120516157449 0)
(0.00214873115341 0.00095453135172 0)
(0.00219289816074 0.000776502919947 0)
(0.00222746058679 0.000588379089136 0)
(0.0021446268489 0.000261194948588 0)
(0.00161189384338 -0.00038789136653 0)
(0.000910234189606 0.00125706908319 0)
(0.0665052343802 0.0563198755884 0)
(0.0733237315812 0.0705963737195 0)
(0.0772570124399 0.0715792004217 0)
(0.0805121074561 0.0686295899702 0)
(0.0842897489199 0.0655361611768 0)
(0.0904593846769 0.0643744512307 0)
(0.0992451049206 0.0658560364066 0)
(0.110047804851 0.0694386708463 0)
(0.122284439158 0.0740320167654 0)
(0.135565346269 0.0787832176501 0)
(0.149547320868 0.0831800504223 0)
(0.163950745139 0.0868737089365 0)
(0.178571263919 0.0896347364288 0)
(0.193227295883 0.0913404170618 0)
(0.207766618023 0.0918966503629 0)
(0.222068800629 0.0912527191524 0)
(0.236049030223 0.0893697544828 0)
(0.249671399779 0.0862328979358 0)
(0.262946912474 0.0818402468809 0)
(0.275934823864 0.0762005261731 0)
(0.288732020006 0.0693201673519 0)
(0.301458807581 0.0611911441028 0)
(0.314249248018 0.0517788971477 0)
(0.327284085384 0.0410130979654 0)
(0.340854208888 0.0287672366876 0)
(0.35532000685 0.0148193644258 0)
(0.370816607824 -0.00114322139412 0)
(0.387525576192 -0.0190749427589 0)
(0.405442367705 -0.0392259544459 0)
(0.426784821647 -0.0621526419525 0)
(0.459258658112 -0.0887216118702 0)
(0.508897663128 -0.11856016825 0)
(0.556599805783 -0.146750425804 0)
(-1.71316023501e-06 0.000870297850705 0)
(2.40451541232e-06 0.000895931662338 0)
(6.0556626058e-06 0.000831250185528 0)
(1.66595897775e-05 0.000857916549592 0)
(2.04486574187e-05 0.0008707962414 0)
(1.73362928997e-05 0.000914883138749 0)
(1.52464047203e-05 0.000939489697419 0)
(1.61729114675e-05 0.00086236890098 0)
(2.17636897216e-05 0.000922673370182 0)
(3.62954340517e-05 0.000824533008225 0)
(5.58350655022e-05 0.00088202732194 0)
(6.70221366877e-05 0.000957552094978 0)
(7.82872991533e-05 0.00104661469495 0)
(8.5204763007e-05 0.0010009213853 0)
(0.000104317619088 0.00104701561991 0)
(0.000124095433624 0.0011259697609 0)
(0.000133076930485 0.00112021820009 0)
(0.000144541175677 0.0011727174782 0)
(0.000159673827104 0.00128737662322 0)
(0.000157272240413 0.0012759263072 0)
(0.000179276067422 0.0013192890269 0)
(0.000214550505564 0.00143106369758 0)
(0.000224334987465 0.0015083533617 -9.93689231441e-29)
(0.000269847290212 0.00154612370455 0)
(0.000331892622969 0.00144852336483 0)
(0.000420876072745 0.00145741048006 0)
(0.000500942295916 0.0015180021369 0)
(0.000608137394352 0.00170732674643 0)
(0.000694583630917 0.00175870893745 0)
(0.00079953553897 0.00180021072162 0)
(0.000892195648988 0.00182565865473 0)
(0.000984666799149 0.00188747124155 0)
(0.00111537502756 0.00198611170209 0)
(0.00124758807408 0.00199278742916 0)
(0.00138811314815 0.0019544924865 0)
(0.0015355289043 0.00191256891377 0)
(0.00169166321524 0.00187040251494 0)
(0.00184237966465 0.00180792973489 0)
(0.00199899114431 0.0017152033707 0)
(0.00205941149982 0.00149411592054 0)
(0.00205507387438 0.00121358581222 0)
(0.00209461014695 0.000994545212002 0)
(0.00218924733442 0.000833380970972 0)
(0.00231197901838 0.000646958276356 0)
(0.00261362232724 0.000382034502202 0)
(0.00119711877326 0.00133838954609 0)
(0.0258909678999 0.075985981061 0)
(0.0753391526336 0.0752273866598 0)
(0.0765349569113 0.0753375460931 0)
(0.0813978603877 0.073820754056 0)
(0.0847723406603 0.0719918572351 0)
(0.0903476293031 0.0711220614573 0)
(0.0984945431467 0.0725863636019 0)
(0.108944990691 0.0763639705599 0)
(0.121079717065 0.0816137057406 0)
(0.134391975613 0.0873427962938 0)
(0.148499606085 0.0928545057209 0)
(0.163076875199 0.0977136079029 0)
(0.177867334498 0.101631214562 0)
(0.192674789876 0.104428412996 0)
(0.207340955396 0.106008332605 0)
(0.221753611492 0.106316239021 0)
(0.235848207891 0.105342527202 0)
(0.24960895017 0.10310379808 0)
(0.263068640532 0.0996426518005 0)
(0.276299898559 0.0950127787687 0)
(0.289408446109 0.0892679566168 0)
(0.302522065854 0.0824465035263 0)
(0.315779907068 0.0745598071897 0)
(0.329330306251 0.0655843224203 0)
(0.343373742982 0.0554617321743 0)
(0.358243840519 0.0441054544909 0)
(0.374383125045 0.0314033047696 0)
(0.392032629315 0.0172198219392 0)
(0.410908535819 0.00142552898733 0)
(0.431440532421 -0.0157354981293 0)
(0.456551030267 -0.0342563759107 0)
(0.492617911394 -0.0547991390018 0)
(0.542745220374 -0.076001997129 0)
(0.587751685009 -0.0938772782962 0)
(-2.76806712062e-06 0.000880230394227 0)
(-2.2959476168e-06 0.000890952266912 0)
(-8.13182903742e-06 0.000839522161893 0)
(3.58287912518e-06 0.000866315453772 0)
(1.33713717608e-05 0.000870674975038 0)
(8.11739104578e-06 0.000906543907107 0)
(3.36153438348e-06 0.000938489514903 0)
(4.69834079074e-06 0.000859982592331 0)
(5.77163017704e-06 0.000912258818788 0)
(1.39024858707e-05 0.000844682698638 0)
(2.74145443697e-05 0.00089169560023 0)
(3.5531730555e-05 0.000967339283518 0)
(4.14164798018e-05 0.0010500084871 0)
(4.6526049998e-05 0.00101555970445 0)
(6.22214583915e-05 0.00106368468077 0)
(7.63058600646e-05 0.00113706410707 0)
(8.83501622363e-05 0.00113717286103 0)
(0.000103747597909 0.00118594118286 0)
(0.000115744531701 0.0012929473285 0)
(0.00011464102754 0.00128742411547 0)
(0.000141911238895 0.00139559407986 0)
(0.00016279735104 0.00145390917928 0)
(0.000171047241419 0.00152297940158 0)
(0.000194949976339 0.00155763127464 0)
(0.000247429106601 0.00157061312977 0)
(0.000321979031703 0.00160093959884 0)
(0.000388902597858 0.00161582731083 0)
(0.000487321321045 0.00179359913033 0)
(0.000589875832714 0.00187881676823 0)
(0.000697067987261 0.00190357440539 0)
(0.000796363454504 0.00192796823261 0)
(0.000892124581527 0.00197602430681 0)
(0.0010126002433 0.00208153039475 0)
(0.00114489912364 0.00213549410534 0)
(0.00130045967165 0.00213053671066 0)
(0.00146483785124 0.002094429546 0)
(0.00162988677929 0.00203260692151 0)
(0.00178638533909 0.00194614180704 0)
(0.00192657786686 0.00180187447051 0)
(0.00195036516618 0.00151909053718 0)
(0.00198082820585 0.00125361186607 0)
(0.00205618407696 0.0010626407625 0)
(0.00216761967545 0.000902333625138 0)
(0.00227683619026 0.000731508070267 0)
(0.00170099936883 0.000258217193309 0)
(0.00333771120474 0.0121933193517 0)
(0.083795398497 0.0927327870048 0)
(0.0717402367825 0.0851737234304 0)
(0.0806463624568 0.0780423697175 0)
(0.084310129215 0.0775091491329 0)
(0.0891815687061 0.0771766602535 0)
(0.0967621394165 0.0787035306285 0)
(0.106652393147 0.0825854962104 0)
(0.118488532787 0.0882879609104 0)
(0.131674611229 0.0948674209542 0)
(0.145757222418 0.101456244917 0)
(0.160370710821 0.107478187887 0)
(0.175217335661 0.112569980539 0)
(0.190069963504 0.116504302443 0)
(0.204762185604 0.119155810833 0)
(0.219179716325 0.120473753801 0)
(0.233263721806 0.120457399537 0)
(0.24700706401 0.119149309761 0)
(0.260448324462 0.116617241937 0)
(0.273663395927 0.112943911648 0)
(0.286755186301 0.108210228282 0)
(0.299847999632 0.102483871184 0)
(0.313082730808 0.0958102066238 0)
(0.326612906625 0.0882096437599 0)
(0.340607697773 0.0796782364875 0)
(0.355292534897 0.0701951749286 0)
(0.371016981067 0.059738285936 0)
(0.388227581621 0.0483037744203 0)
(0.407197868722 0.0359294359368 0)
(0.427767461636 0.0226625321723 0)
(0.450098736278 0.00848241344254 0)
(0.476913357514 -0.00653629024529 0)
(0.514198568772 -0.0215194813432 0)
(0.56291541574 -0.034985046117 0)
(0.604692961382 -0.0446788346127 0)
(-5.95680942629e-06 0.000879780804706 0)
(-1.05067024989e-05 0.000883464882494 0)
(-1.85026982064e-05 0.000839867378045 0)
(-1.20124994535e-05 0.000904769189907 0)
(-5.19078969007e-06 0.000871932765204 0)
(-9.14009409598e-06 0.000902459637258 0)
(-1.53803430852e-05 0.000936055684317 0)
(-1.35214040309e-05 0.000868468756644 0)
(-1.11843812487e-05 0.000917528018633 0)
(-5.07170828178e-06 0.000857330976465 0)
(1.23731097998e-06 0.000895842851663 0)
(4.60449367754e-06 0.000973683221346 0)
(5.2173999391e-06 0.00104851942529 0)
(7.98577505901e-06 0.00102711082751 0)
(2.02971140316e-05 0.00107696201659 0)
(3.02343318335e-05 0.00114376019942 0)
(4.41316781437e-05 0.00115579813044 0)
(6.08919822917e-05 0.00119742763531 0)
(7.16006176327e-05 0.00129711558417 0)
(7.73757042506e-05 0.00129155440248 0)
(9.40698441396e-05 0.00140133127967 0)
(9.94990250213e-05 0.00144844948177 0)
(0.000100448637323 0.00154447170201 0)
(0.000119386382832 0.00158719946113 0)
(0.000161024901217 0.00156903207517 0)
(0.000207900750122 0.00160808250855 0)
(0.000262389500193 0.00170964501489 0)
(0.00034559775348 0.0018879062223 0)
(0.000464149166821 0.00199998287884 0)
(0.000575009760034 0.00200599231015 0)
(0.000678594853268 0.00203686323052 0)
(0.000786125156747 0.00208993262533 0)
(0.000894015566172 0.00216189468861 0)
(0.00103498595336 0.0022638270607 0)
(0.00116961215262 0.00224996210899 0)
(0.00135891105452 0.00226133131057 0)
(0.00154857916269 0.00221161132156 0)
(0.00172006871836 0.00208932057902 0)
(0.00183372763075 0.00186866130917 0)
(0.00187059804597 0.00156784142793 0)
(0.0019463573242 0.0013371052451 0)
(0.00208371080134 0.00120105329261 0)
(0.00232058187956 0.00117481156983 0)
(0.00328173329921 0.00137283837841 0)
(0.000911278184634 0.00355571165787 0)
(0.0438858169996 0.0999649733983 0)
(0.0813187592064 0.110403470035 0)
(0.07298017073 0.0882240718839 0)
(0.0842409791712 0.0819569560127 0)
(0.0870940855645 0.0827777953098 0)
(0.094122466963 0.0841917878322 0)
(0.103387183524 0.0881029755068 0)
(0.114718259153 0.0940660320045 0)
(0.127626539032 0.101309632053 0)
(0.14155912863 0.108886440332 0)
(0.156103861982 0.116053848214 0)
(0.170923074657 0.122336094082 0)
(0.185757319037 0.127443248613 0)
(0.200419953151 0.131214211989 0)
(0.214789746573 0.133583953614 0)
(0.228804706771 0.134557710337 0)
(0.242458475102 0.134189685448 0)
(0.255791069604 0.132568960498 0)
(0.268878382809 0.129800853599 0)
(0.281821706417 0.125994022411 0)
(0.29473973669 0.121247940887 0)
(0.307766042545 0.115647189883 0)
(0.321048058053 0.109260171016 0)
(0.334745319904 0.102142152192 0)
(0.349032400712 0.0943375317238 0)
(0.364131623281 0.0858853093825 0)
(0.380366238605 0.0768323069787 0)
(0.398130124683 0.0672494289021 0)
(0.417658176171 0.0572509215883 0)
(0.438834781416 0.0469622840568 0)
(0.461900726746 0.0364619742883 0)
(0.489289636856 0.0259626436198 0)
(0.525792979213 0.0161123901287 0)
(0.571669189735 0.00837540917191 0)
(0.610142764284 0.00490822782432 0)
(-5.82896445039e-06 0.000871624397029 0)
(-1.5987905304e-05 0.000874354796435 0)
(-2.51768655195e-05 0.000842775283884 0)
(-2.61831766789e-05 0.000900106904321 0)
(-2.89545850901e-05 0.000873071823778 0)
(-3.1165596864e-05 0.000901126189016 0)
(-3.75933592192e-05 0.000931329883245 0)
(-3.53198288067e-05 0.000877992184375 0)
(-3.48634792924e-05 0.000917372032701 0)
(-2.8649828503e-05 0.000867010503938 0)
(-2.55003733376e-05 0.000894319703053 0)
(-2.78784535027e-05 0.000976379893755 0)
(-3.13774329673e-05 0.00104146684789 0)
(-3.01919573796e-05 0.00103487143482 0)
(-2.25701486963e-05 0.00108646966937 0)
(-1.75891204909e-05 0.00114789351708 0)
(-1.54004709985e-06 0.00117342099216 0)
(1.62652612069e-05 0.0012059029773 0)
(2.15095263399e-05 0.00130194242209 0)
(2.99208952108e-05 0.00130367212845 0)
(3.74704458252e-05 0.0014043137456 0)
(3.7988063544e-05 0.00143729411139 0)
(3.94669189709e-05 0.00151046994152 0)
(4.17485529011e-05 0.00163488765794 0)
(7.29934113616e-05 0.00163275525389 0)
(0.000124416111318 0.00164712593948 0)
(0.000151488773481 0.00172101076207 0)
(0.000208236735802 0.00196985477032 0)
(0.000321634049632 0.00212740932923 0)
(0.000438664470948 0.0021097558369 0)
(0.000553350731616 0.00213713288898 0)
(0.000673101033187 0.00223199646425 0)
(0.000782852748468 0.00231591918248 0)
(0.000911587015473 0.00240687894305 0)
(0.00105849680291 0.00242827702585 0)
(0.00124773718677 0.00244561809902 0)
(0.00144921603555 0.00239731777893 0)
(0.00163817014029 0.00223773013283 0)
(0.00174165164144 0.00194191455607 0)
(0.00180200461821 0.00163922503267 0)
(0.00190088540091 0.00144393211872 0)
(0.00203763243457 0.00135666850811 -4.33364325411e-29)
(0.00224596349724 0.00140428082409 0)
(0.00134693501524 0.00100391122437 0)
(0.0022970530016 0.0158108343578 0)
(0.100833123317 0.122301802613 0)
(0.0712695105593 0.115262886693 0)
(0.0781308995962 0.0893986236129 0)
(0.0865323336424 0.0873706293627 0)
(0.0904086069109 0.0893912095224 0)
(0.099417934502 0.0929117391197 0)
(0.110006752759 0.0990083126774 0)
(0.12247115498 0.106685082078 0)
(0.136131341595 0.11510405723 0)
(0.15051431544 0.123363856093 0)
(0.165239882738 0.130843437917 0)
(0.180011004322 0.137159327759 0)
(0.194614641008 0.142099112276 0)
(0.208912646522 0.145572100236 0)
(0.222834132379 0.147576969407 0)
(0.236366477606 0.148175564562 0)
(0.249545837912 0.147470738201 0)
(0.262444630497 0.145588478453 0)
(0.275159897375 0.142660499415 0)
(0.28780405824 0.138812833449 0)
(0.300499806574 0.134157965752 0)
(0.313379749951 0.128792743674 0)
(0.326587017346 0.12279953369 0)
(0.340274328465 0.116249376493 0)
(0.35460674904 0.10920360495 0)
(0.369788008754 0.10171961023 0)
(0.386103394642 0.0938674828359 0)
(0.40389377106 0.0857486882537 0)
(0.423360735443 0.0775082193879 0)
(0.444396121127 0.0693028636005 0)
(0.467162900885 0.061285770568 0)
(0.493690009234 0.053866120412 0)
(0.528137312492 0.0481002256565 0)
(0.570753867514 0.0455276654345 0)
(0.606430465369 0.0469337202529 0)
(-6.71542997168e-06 0.000861996948107 0)
(-1.71708655055e-05 0.000833781366892 0)
(-2.93636083254e-05 0.000845880672818 0)
(-3.62647493917e-05 0.000885058722373 0)
(-4.56584568964e-05 0.000868435352791 0)
(-5.18044517764e-05 0.000897663737552 0)
(-6.04904578396e-05 0.000924424119285 0)
(-6.00966213438e-05 0.000884226416886 0)
(-6.35653470822e-05 0.000913674800497 0)
(-5.71035899134e-05 0.000879672966492 0)
(-5.39653900544e-05 0.000887275666189 0)
(-6.32591974722e-05 0.000974764649952 0)
(-6.90336572562e-05 0.00103294943814 0)
(-6.72692825197e-05 0.00104233156409 0)
(-6.51742220025e-05 0.00108992797016 0)
(-6.66674576064e-05 0.00115321282155 0)
(-5.25767208354e-05 0.00120367616808 0)
(-3.36593090493e-05 0.00121234326343 0)
(-3.38449016695e-05 0.00130127592047 0)
(-2.69470076185e-05 0.00131878737704 0)
(-2.16242023156e-05 0.00139097344081 0)
(-2.33996270106e-05 0.00145574138423 0)
(-1.25768264096e-05 0.00152096301523 0)
(-9.56878754975e-06 0.0015941137403 0)
(3.78668650398e-06 0.00169306674526 0)
(4.17346964769e-05 0.00172234851502 0)
(6.20810637578e-05 0.00174805691794 0)
(8.30283782789e-05 0.00208094832365 0)
(0.00015100065065 0.00224248875391 0)
(0.000279636397589 0.00224687015319 0)
(0.000411137432082 0.00224539339613 0)
(0.000532324761687 0.00232038942004 0)
(0.000635857885802 0.00239495289537 0)
(0.000770044680348 0.00255097034936 0)
(0.000917834607584 0.00260371476364 0)
(0.00110625583022 0.00263313104129 0)
(0.0013299665336 0.00260424054653 0)
(0.00154345218875 0.00240496537761 0)
(0.00165645400533 0.0020381485605 0)
(0.00175844742133 0.00175015287602 0)
(0.00192195378528 0.00162754741422 0)
(0.00230272892821 0.00172187945436 4.53334780174e-29)
(0.0032233420209 0.00179358038246 0)
(0.00041879214267 0.00264691221033 0)
(0.0310462972425 0.123224986641 0)
(0.0919967790824 0.140641982046 0)
(0.0687830549818 0.11240516984 0)
(0.0826890152847 0.0923471279959 0)
(0.0881125665917 0.0939475041575 0)
(0.0942905208382 0.0973237359585 0)
(0.104758017746 0.103103901813 0)
(0.116411745804 0.111071465581 0)
(0.129700919136 0.120109612331 0)
(0.143817430808 0.129366071073 0)
(0.158386662117 0.138024032743 -6.35360441052e-29)
(0.173057300132 0.145579980008 6.13848716622e-29)
(0.18758401383 0.151741104645 0)
(0.201804038295 0.15637553662 0)
(0.215629786368 0.159463557392 0)
(0.229037609441 0.161065142462 0)
(0.242055341782 0.16129227261 0)
(0.254749365371 0.160285863432 0)
(0.267211472048 0.158197354009 0)
(0.279548461471 0.155174127498 0)
(0.29187534597 0.151351261796 0)
(0.304312773296 0.146847783454 0)
(0.316988136288 0.141767476594 0)
(0.330037239989 0.136202149443 0)
(0.343604226985 0.130236194939 0)
(0.357843976923 0.123950142503 0)
(0.372942132669 0.117428352927 0)
(0.389149780653 0.110776501872 0)
(0.406766532018 0.104136760123 0)
(0.425979667971 0.0976865578894 0)
(0.446691321707 0.0915966806155 0)
(0.46893945606 0.0860227542087 0)
(0.494267393279 0.0813746305612 0)
(0.526214902389 0.0786981664537 0)
(0.565296766865 0.0794017352174 0)
(0.598269487169 0.083917378216 0)
(-9.96064481569e-06 0.000852397275235 0)
(-1.7912555203e-05 0.000825361234421 0)
(-3.05481079993e-05 0.000837813290872 0)
(-4.36900168763e-05 0.00087003396146 0)
(-5.61813627093e-05 0.000858132165206 0)
(-6.86896690225e-05 0.000888304922356 0)
(-8.19107155448e-05 0.000914667218812 0)
(-8.5507589915e-05 0.000886049359406 0)
(-9.41207038018e-05 0.000906350753359 0)
(-8.97069993206e-05 0.000893226468092 0)
(-8.37279201454e-05 0.000876781131392 0)
(-9.97404767286e-05 0.000966012113346 0)
(-0.000109988853726 0.00102977945153 0)
(-0.000105276971998 0.00104555040977 0)
(-0.00010531822672 0.00108350057248 0)
(-0.000114071810522 0.00115364233629 0)
(-0.000110406619321 0.00122696805009 0)
(-9.49899157678e-05 0.00122209749559 0)
(-9.44548620379e-05 0.00129182203501 0)
(-8.77356626372e-05 0.00133188554742 0)
(-7.84249289518e-05 0.00139597367326 0)
(-7.04395964269e-05 0.00145303405424 -7.00100214777e-29)
(-6.46433394841e-05 0.00156838432184 7.32070857626e-29)
(-6.05222860636e-05 0.00163300387167 0)
(-6.06488638874e-05 0.00171806700619 0)
(-4.31456175359e-05 0.00171794009086 0)
(-1.60989462151e-05 0.00175684849765 0)
(-2.97088367996e-05 0.00202295867661 0)
(-2.08988339937e-05 0.00234030525366 0)
(8.76392373017e-05 0.00239187186983 0)
(0.000231380581862 0.00237258645993 0)
(0.000371692705 0.00241963511785 0)
(0.000500295559316 0.0025207619866 0)
(0.000617140191888 0.00266913728746 0)
(0.000750098042487 0.00279015161116 0)
(0.000923898639283 0.0028249211289 0)
(0.00117263571853 0.00283023954466 0)
(0.00142100542777 0.00260143156345 0)
(0.00155968089388 0.00216041293392 0)
(0.0016776322569 0.00189024489781 0)
(0.00193789558692 0.00193620383886 0)
(0.00237155875197 0.00220062404699 0)
(0.00238825651213 0.00239464625188 0)
(0.000207563170535 0.0100025719635 0)
(0.0974818806048 0.147679189676 0)
(0.0745327770079 0.146862599669 0)
(0.0726890525511 0.109275495892 0)
(0.0852200655674 0.0978096545768 -1.3493006968e-28)
(0.0899375124257 0.101510152247 0)
(0.0984720796057 0.106587756714 0)
(0.109913995686 0.114481989915 0)
(0.122418078598 0.123972883472 0)
(0.136233464632 0.134040378712 0)
(0.150553223462 0.143829139775 0)
(0.165088126515 0.15263775476 0)
(0.17952113003 0.160074036053 0)
(0.193664474951 0.165936142988 0)
(0.207405094609 0.170172151034 0)
(0.22070270256 0.172829463498 0)
(0.233573120325 0.17402222283 0)
(0.24607401878 0.173902626606 0)
(0.258290883187 0.172638546573 0)
(0.270325145969 0.170397040042 0)
(0.282286027247 0.167333615611 0)
(0.294286179544 0.163587650921 0)
(0.306440875218 0.159282126332 0)
(0.318869852467 0.154526722604 0)
(0.331699404531 0.149422580623 0)
(0.345062576003 0.144067646367 0)
(0.359100272194 0.138560870869 0)
(0.373974953428 0.133009436726 0)
(0.38989868947 0.127543916983 0)
(0.40712744191 0.122330197081 0)
(0.425833502136 0.117563812503 0)
(0.44592847422 0.113430189703 0)
(0.467342303729 0.110094129085 0)
(0.491213791222 0.107925374485 0)
(0.520617426449 0.107816992226 0)
(0.556422353332 0.110911176334 0)
(0.586964253319 0.117414404556 0)
(-1.19523830284e-05 0.000838735888949 0)
(-2.14276233149e-05 0.000815147223804 0)
(-3.55929255596e-05 0.000825511016788 0)
(-5.12632382422e-05 0.000855882589739 0)
(-6.55795679294e-05 0.000843918038562 0)
(-8.34680877961e-05 0.000872826095554 0)
(-0.000101493196285 0.000901311879086 0)
(-0.000109055558695 0.000881767461757 0)
(-0.000122538360576 0.00089385712001 0)
(-0.000125757188854 0.000909205516861 0)
(-0.000115582405701 0.000867692002404 0)
(-0.000135183058166 0.000949241768466 0)
(-0.000153132206133 0.00102429820525 0)
(-0.000150018670598 0.00105841881149 0)
(-0.000146518977607 0.00107062560122 0)
(-0.00016080053247 0.00114542244563 0)
(-0.000169738059579 0.00123220539275 0)
(-0.000163218678666 0.00123016913737 0)
(-0.000162965562877 0.00129807873263 0)
(-0.000151444235826 0.00134270145762 0)
(-0.000144044756471 0.00140505331148 0)
(-0.000125853447393 0.00146126766113 0)
(-0.000112524832385 0.00152531759431 0)
(-0.000115855400857 0.00159990590979 0)
(-0.000120018137099 0.00168832109556 0)
(-0.000114424894238 0.00177581955068 0)
(-8.46098936428e-05 0.00178293075146 0)
(-9.89982258852e-05 0.00199292266743 0)
(-0.000154952411555 0.00239263582747 0)
(-0.000113368260965 0.00251424115127 0)
(1.67978831798e-05 0.00256341000053 0)
(0.000172451705229 0.00256869595879 0)
(0.000319548832437 0.00262745876046 0)
(0.00044410379279 0.00271416170158 0)
(0.000569204704333 0.00291228986636 0)
(0.000717925292433 0.0030479380389 0)
(0.000952201870904 0.00308636516249 0)
(0.0012649619697 0.0028456771667 0)
(0.00144363814607 0.00232655558117 0)
(0.00160055825488 0.00207911042576 0)
(0.00198354502662 0.0022203783315 0)
(0.00243989066882 0.00222828401248 0)
(0.000749284327321 0.000979924278209 0)
(0.00722445409355 0.0554213432758 0)
(0.121244710621 0.168864533082 0)
(0.0630207612028 0.144015876169 0)
(0.0781319048345 0.109228905813 0)
(0.0864207049869 0.104948758761 1.19994379035e-28)
(0.0923758575853 0.110016376635 0)
(0.102643150996 0.117058448713 -8.78352810445e-29)
(0.114743570925 0.126747759805 0)
(0.127872452893 0.137432790816 0)
(0.14194584726 0.148219852595 0)
(0.156261983334 0.158274375888 0)
(0.17058875396 0.167027387722 0)
(0.184653270608 0.17419082046 0)
(0.198324508001 0.17965276121 0)
(0.211535136725 0.183436498119 0)
(0.224285414853 0.185649164235 0)
(0.236621283615 0.186449341874 0)
(0.248620384705 0.18601886468 0)
(0.260378552196 0.1845428176 0)
(0.272000138896 0.182196386887 0)
(0.283592142409 0.179138141322 0)
(0.295261705968 0.175508741035 0)
(0.307116250475 0.171433159727 0)
(0.319265393368 0.16702513636 0)
(0.331822940016 0.162392526329 0)
(0.344907005038 0.157642707686 0)
(0.358639834914 0.152886785868 0)
(0.37315656763 0.148245886841 0)
(0.388628812425 0.143863811267 0)
(0.405269618191 0.139916993574 0)
(0.423234295884 0.136609106006 0)
(0.442439552298 0.134137548046 0)
(0.462728789809 0.132678284908 0)
(0.484930739662 0.132559485359 0)
(0.511806190631 0.134521162195 0)
(0.544625775178 0.13947401559 0)
(0.573046513374 0.147480232268 0)
(-1.34565276066e-05 0.000820529815799 0)
(-2.65057078811e-05 0.000801614864729 0)
(-4.21413702099e-05 0.00080896544072 0)
(-5.9679135037e-05 0.00083951285829 0)
(-7.70020444571e-05 0.000826557090044 0)
(-9.85034288453e-05 0.000851290648634 0)
(-0.000121072599054 0.0008848012719 -9.82112937359e-30)
(-0.000129883265911 0.00087143281579 9.41467540056e-30)
(-0.000142610273092 0.000874402008433 0)
(-0.000163258507119 0.000927231547181 0)
(-0.000152494095789 0.000863718197115 0)
(-0.000169562635824 0.00092789463871 0)
(-0.000191338157359 0.00100963091346 0)
(-0.000202294698477 0.00107967590355 0)
(-0.000196190106621 0.00106022839332 0)
(-0.00021049881601 0.0011339634771 0)
(-0.000227393179416 0.00122421600617 0)
(-0.000228731647982 0.00123009878531 0)
(-0.000235546418184 0.00130452001148 0)
(-0.000223445154037 0.0013594951599 0)
(-0.000212280648622 0.00140423368762 0)
(-0.000211120512009 0.00151697531703 0)
(-0.000190913615297 0.00154192466033 0)
(-0.000181476404651 0.00160843852367 0)
(-0.000170834888063 0.0016895649063 0)
(-0.000162328504495 0.00175995311877 0)
(-0.000137338019117 0.00180950799156 0)
(-0.000128830381249 0.00193164576226 0)
(-0.000223517708054 0.00232119105378 0)
(-0.000286707587033 0.00260150689114 0)
(-0.000203257459202 0.00269421243106 0)
(-6.60923982377e-05 0.00277056042144 0)
(8.19662238059e-05 0.00281421181489 0)
(0.000233612788098 0.00291232654263 0)
(0.000366574212856 0.00296729811401 0)
(0.000498388173819 0.00318595395398 0)
(0.000662137649552 0.00334159539324 0)
(0.00104075545263 0.00322349486228 0)
(0.00125675019387 0.00251390504499 0)
(0.0016210233575 0.00244434255222 0)
(0.00230072611232 0.00301209065197 0)
(0.0043334369629 0.00356697378655 0)
(6.41010689985e-05 0.00537455940448 0)
(0.0573549685061 0.146697730176 0)
(0.101530006871 0.185709064299 0)
(0.0616479310919 0.137990358622 0)
(0.0821298761225 0.112566849299 0)
(0.0873153738622 0.113002007853 0)
(0.0952520354211 0.11945366625 0)
(0.106560922555 0.128490493691 8.22464812165e-29)
(0.119138315118 0.139620710797 0)
(0.132654305147 0.151206300275 -6.38757699752e-29)
(0.146765142509 0.162433793655 0)
(0.160914787258 0.172531216531 0)
(0.174905155306 0.181064538002 0)
(0.188515912211 0.187843451844 0)
(0.201666722335 0.192842041087 0)
(0.214330019904 0.196150920882 0)
(0.226538245669 0.19792753152 0)
(0.23835844119 0.198364539807 0)
(0.249879993892 0.197663802205 0)
(0.261202486295 0.196019875712 0)
(0.272428353452 0.19361068594 0)
(0.283658827878 0.19059439915 0)
(0.294992613488 0.187110666754 0)
(0.306526367224 0.1832844205 0)
(0.318356404359 0.179230993503 0)
(0.330580534936 0.175061648296 0)
(0.34329832564 0.170888968456 0)
(0.356610314924 0.166831216434 0)
(0.3706235801 0.163018052435 0)
(0.38547249428 0.159601145642 0)
(0.401332615523 0.15676260875 0)
(0.41834456918 0.154710288133 0)
(0.436430586272 0.15364832304 0)
(0.455369142472 0.153754694585 0)
(0.475751222723 0.155310231721 0)
(0.500125178633 0.158921426559 0)
(0.53018494996 0.165328539354 0)
(0.556728307391 0.174508639065 0)
(-1.49557028164e-05 0.000798972217546 0)
(-3.13478746502e-05 0.000784636094662 0)
(-4.89696294178e-05 0.000796607538131 0)
(-6.99939209212e-05 0.000819648863193 0)
(-9.22457990905e-05 0.000806785507913 0)
(-0.000115273656503 0.000826686229958 0)
(-0.000141075507816 0.000865622510251 0)
(-0.000154152310337 0.000868300064061 0)
(-0.000161002458156 0.000848865889408 0)
(-0.000192296577925 0.000903774107145 0)
(-0.000190486284978 0.000863262213603 0)
(-0.00020226053411 0.000905697354382 0)
(-0.000225953781677 0.000988817537996 0)
(-0.000250159961124 0.00106720348146 0)
(-0.000250848113745 0.00105289358608 0)
(-0.000263537318611 0.00112249303366 0)
(-0.000283462797833 0.00120663423846 0)
(-0.000288540127768 0.00122276051578 0)
(-0.000299283469561 0.00129877165563 0)
(-0.000304332697221 0.00139293314651 0)
(-0.000285565147805 0.00140193191221 0)
(-0.000294777988318 0.00150858716795 0)
(-0.00028450257025 0.00155749202735 0)
(-0.000266644256051 0.00163153865182 0)
(-0.000247609916024 0.00171095816284 0)
(-0.000226008705936 0.00178249236303 0)
(-0.00019035199635 0.00183749198573 0)
(-0.000155568977731 0.00191786296608 0)
(-0.000203139332164 0.00212533830916 0)
(-0.000365306164998 0.00262340859008 0)
(-0.000394715420181 0.00279798008963 0)
(-0.000313399976863 0.00290678714591 0)
(-0.000176613195727 0.00292473639359 0)
(-2.86158260178e-05 0.00307916242757 0)
(0.000116840706365 0.00318319774223 0)
(0.000249984613817 0.00328362119283 0)
(0.00035849234338 0.00345718706005 0)
(0.000581692974298 0.00366095071749 0)
(0.000947318188526 0.00274552060756 0)
(0.00147047101608 0.00286835591481 0)
(0.00179976267361 0.00347604042284 0)
(0.0018856542433 0.00560317593891 0)
(-0.000954839201524 0.0185177851486 0)
(0.122478884698 0.186252855207 0)
(0.0763335325635 0.190957343069 0)
(0.067479538874 0.133229493285 0)
(0.0839239968354 0.118390540943 0)
(0.0885648351244 0.121657184878 0)
(0.0982221979333 0.129765416989 0)
(0.110082013162 0.140608648715 0)
(0.123001954624 0.152859535112 0)
(0.136679237726 0.165084616359 6.13402949613e-29)
(0.150659654954 0.176512052545 -5.27312536125e-29)
(0.164520349568 0.186474065251 0)
(0.178087558496 0.194663948403 0)
(0.191196458569 0.200983812014 0)
(0.20380887002 0.205486781515 0)
(0.21593008115 0.208321167621 0)
(0.227616126597 0.209684604394 0)
(0.238947238943 0.209794016148 0)
(0.250017902894 0.208863075202 0)
(0.26092634875 0.207089652023 0)
(0.271769267373 0.204650154179 0)
(0.282639056834 0.201699304787 0)
(0.29362320414 0.198373212737 0)
(0.304804881502 0.194794173314 0)
(0.31626446439 0.191076239715 0)
(0.328081361143 0.187331010008 0)
(0.340334627476 0.183673302711 0)
(0.353102034033 0.180225959219 0)
(0.366463492454 0.177125304693 0)
(0.380519805791 0.174530100703 0)
(0.39541383092 0.172628650242 0)
(0.411274249919 0.171634170241 0)
(0.428032644716 0.171756675681 0)
(0.445424449971 0.173172336586 0)
(0.463859110996 0.176116745383 0)
(0.485744704977 0.181083875534 0)
(0.513219682522 0.188680469606 0)
(0.538092336403 0.198816340552 0)
(-1.60718609473e-05 0.000775403242366 0)
(-3.28830609203e-05 0.000764865938703 0)
(-5.44937237096e-05 0.000782859533635 0)
(-8.34797293549e-05 0.000794587955651 0)
(-0.000110279163367 0.000784718731865 0)
(-0.000133641368983 0.000804963342683 0)
(-0.000160499936274 0.000842278005921 0)
(-0.000183802032953 0.000862984560705 0)
(-0.000189850077615 0.000832619731985 0)
(-0.00022016640926 0.000876604245957 0)
(-0.000228194632928 0.000867294822006 0)
(-0.000235582670954 0.000882215724551 0)
(-0.000264907194523 0.000966028742633 0)
(-0.00029469647957 0.0010398190573 0)
(-0.000302985114971 0.00104389078934 0)
(-0.000319695338322 0.0011090781851 0)
(-0.000340260102197 0.00118127577466 0)
(-0.000346289253322 0.0012157118948 0)
(-0.000356195583946 0.00128214836673 0)
(-0.000378755408697 0.00138286440134 0)
(-0.000371034474118 0.00140773736789 0)
(-0.000378323276823 0.0014991877016 0)
(-0.000371450027182 0.00156740188036 0)
(-0.000363132184984 0.00166198464927 5.80182248959e-29)
(-0.000345908485807 0.00172384133922 -5.61062960816e-29)
(-0.000320479797286 0.00181274124592 0)
(-0.000274946687735 0.00187475529631 0)
(-0.000223212582831 0.00194201341921 0)
(-0.000189567657651 0.00202401256267 0)
(-0.000283277564198 0.00232873471167 0)
(-0.000482244895487 0.00284847544137 0)
(-0.000502668206928 0.00294971007005 0)
(-0.000432118429837 0.0031391789607 0)
(-0.000296364353412 0.00316013939367 0)
(-0.000158082113909 0.00326762169743 0)
(-1.24842695664e-05 0.00340415631662 0)
(0.000119818700235 0.00354051874562 0)
(0.00021437790284 0.00372769451613 0)
(0.000677066793622 0.00389627462377 0)
(0.00110870046461 0.00307221363246 0)
(0.0015237776163 0.00320656204572 0)
(-0.000294932065347 0.00223930614005 0)
(0.00400016721384 0.0647997872158 0)
(0.150095554843 0.213298855694 0)
(0.0594762212923 0.184979210929 0)
(0.0752243149124 0.131550654853 0)
(0.0842288162301 0.125493726564 0)
(0.0902959968955 0.130806264617 0)
(0.100979905655 0.14079951561 0)
(0.113127839418 0.153160608487 0)
(0.126251705523 0.16626608643 0)
(0.1399001754 0.178898323198 0)
(0.153629840077 0.190327523273 5.11575018588e-29)
(0.167115420298 0.200017144642 0)
(0.180208208032 0.207776001532 3.95299577288e-29)
(0.192795777717 0.213593211405 0)
(0.204873339148 0.217591696501 0)
(0.216471947849 0.219967304067 0)
(0.227663356037 0.220948007888 0)
(0.238534475664 0.220766314357 0)
(0.249179673611 0.219640998576 0)
(0.259691912053 0.217768456501 0)
(0.270159104366 0.215320303359 0)
(0.280662242137 0.212445435359 0)
(0.2912751972 0.209274434389 0)
(0.302065335877 0.205925079099 0)
(0.31309491057 0.202508278766 0)
(0.324422968945 0.199134117649 0)
(0.336106458359 0.195917775642 0)
(0.348199509778 0.192984597649 0)
(0.360755555201 0.190475219588 0)
(0.373844705739 0.188553304354 0)
(0.387581321446 0.187412187896 0)
(0.402086239189 0.187271073114 0)
(0.417307099106 0.188347960194 0)
(0.432955913577 0.190823488838 0)
(0.449303135476 0.194908475165 0)
(0.468678739495 0.201020889095 0)
(0.49371286208 0.209659944829 0)
(0.51712708716 0.220650438442 0)
(-1.66477158291e-05 0.000749684131058 0)
(-3.48267809343e-05 0.000751459078283 0)
(-6.18328120453e-05 0.00075493189074 0)
(-9.67499604158e-05 0.000755451767897 0)
(-0.000126099296132 0.000759742164728 0)
(-0.000150560072059 0.000780394015244 0)
(-0.00017914028992 0.000813811115801 0)
(-0.000210399896594 0.000840652138727 -7.30055939236e-29)
(-0.000224187559762 0.000822836915576 0)
(-0.000251432844323 0.000849996587182 0)
(-0.000269694313797 0.000865400763636 0)
(-0.000271983748235 0.000857278023775 0)
(-0.000308559119476 0.000938510694421 0)
(-0.000342582317086 0.00101000397082 0)
(-0.000354776872434 0.00103112816832 0)
(-0.000375780520347 0.00108616701287 0)
(-0.000407299220313 0.00116726795965 0)
(-0.000412775440877 0.00120816648841 0)
(-0.000420786809989 0.00126069598585 0)
(-0.000450902863727 0.00135638275661 0)
(-0.000454980636115 0.00140724235242 0)
(-0.000467598560416 0.00149460014048 0)
(-0.00046497036586 0.00157512469269 0)
(-0.000457179479342 0.00165072708121 0)
(-0.0004509821754 0.00174059213984 0)
(-0.000441405676022 0.00187262186792 0)
(-0.000402488913823 0.00193314055057 0)
(-0.000349046151531 0.00201474924812 0)
(-0.000277407113517 0.0020917681191 0)
(-0.000241599975414 0.00216663692771 0)
(-0.000351309923717 0.00250397346214 0)
(-0.000536965167306 0.00303775658029 0)
(-0.000583247561737 0.00321225386104 0)
(-0.000539222469088 0.00338185150664 0)
(-0.000407191289679 0.00349606702691 0)
(-0.000254719218619 0.00361305245985 0)
(-9.79303793538e-05 0.00376658290674 0)
(5.89500455588e-05 0.00397644200954 0)
(0.000352173841655 0.00433358900785 0)
(0.00097905261944 0.00445455459101 0)
(0.00353053777257 0.00430400140827 0)
(-0.000844228372763 0.00288136361622 0)
(0.0452726960125 0.179421435283 0)
(0.12466440123 0.231347372529 0)
(0.0543540933235 0.17403963951 0)
(0.0807516088638 0.13291597107 0)
(0.0838888032012 0.133116049854 0)
(0.0921986923571 0.14042475964 0)
(0.103297495698 0.152354066591 0)
(0.11563732628 0.165940297126 0)
(0.128822858585 0.179681803015 0)
(0.142302356482 0.19251806209 0)
(0.155700191783 0.203792288754 0)
(0.168756400087 0.213108399287 0)
(0.181351930377 0.220379135651 -3.87012269141e-29)
(0.193419474963 0.225674088151 -3.25274743467e-29)
(0.204979814931 0.229175543278 0)
(0.216082938106 0.231116974751 0)
(0.226809527086 0.231747635083 0)
(0.237247873295 0.231308215343 0)
(0.247488027897 0.230017103302 0)
(0.257614468566 0.228065296488 0)
(0.267703703691 0.225616722386 0)
(0.277823029105 0.222812001217 0)
(0.288030654762 0.219773774472 0)
(0.298376408806 0.21661269118 0)
(0.308903165625 0.213433645023 0)
(0.319648989233 0.210342171879 0)
(0.330648847838 0.207450891049 0)
(0.34193431093 0.204885318634 0)
(0.353534542085 0.202789538402 0)
(0.365491956725 0.201334152656 0)
(0.377894823799 0.200724190385 0)
(0.390857011909 0.201197066893 0)
(0.404343165407 0.202995017288 0)
(0.41804692322 0.206322181016 0)
(0.432119597208 0.211392996719 0)
(0.448877117876 0.218588330076 0)
(0.471553090965 0.228309828414 0)
(0.493728455214 0.24023176198 0)
(-1.74923258492e-05 0.000721296039785 0)
(-4.3287902879e-05 0.000725926568053 0)
(-7.18055743105e-05 0.000704829155039 0)
(-0.000104892824546 0.000717202596739 0)
(-0.000137285745991 0.000731951605481 0)
(-0.000166209281252 0.000752969990052 0)
(-0.000197933505274 0.000781277431162 0)
(-0.000233426649844 0.000810725327103 7.12383904059e-29)
(-0.000254990516846 0.000804127874649 0)
(-0.000279807108022 0.00081681988441 0)
(-0.000316412905891 0.00086554166111 6.71436418029e-29)
(-0.000314455011031 0.000838131501175 0)
(-0.000351295025732 0.000902010052837 0)
(-0.000395549615577 0.000983996060694 0)
(-0.000415928731005 0.00102455457158 0)
(-0.000430275289963 0.00105165860444 0)
(-0.000473382480547 0.00114229584405 0)
(-0.000501142739582 0.00122309848382 0)
(-0.000500063262889 0.00124080134987 0)
(-0.000536375163923 0.00133914353207 0)
(-0.000544079798279 0.00140010625356 0)
(-0.000553154098005 0.00147176655729 0)
(-0.000584279121448 0.00160882628082 0)
(-0.000566571229989 0.00164913121469 0)
(-0.000563914148554 0.00175015016375 0)
(-0.000556166127785 0.00185349769073 0)
(-0.000543796530134 0.00196478089601 0)
(-0.000504377116588 0.00207563987037 0)
(-0.000442867051882 0.00217445669234 0)
(-0.000360947135954 0.00227448567155 0)
(-0.000304316191768 0.00237743143274 0)
(-0.00037845245417 0.00268557877375 0)
(-0.000511061508274 0.0031129337243 0)
(-0.000575772483881 0.00349995245606 0)
(-0.000548264344911 0.00373988323153 0)
(-0.000464432475951 0.00392546042698 0)
(-0.000351955892779 0.00404797889104 0)
(-0.000242237968853 0.0042493751254 0)
(-0.000134987688065 0.00470159646279 0)
(-3.81107437575e-05 0.00558983837222 0)
(0.00433090316439 0.00953151579259 0)
(-0.00257655879964 0.0161956006463 0)
(0.0968687573234 0.228479641957 0)
(0.0911531768677 0.240812311289 0)
(0.0573308983971 0.163908890791 0)
(0.0832023075066 0.136906537641 0)
(0.0834710034412 0.141111870089 0)
(0.093910428017 0.150544826326 0)
(0.105051727992 0.164252060818 0)
(0.117557652602 0.178798828012 0)
(0.130675517122 0.192986454644 0)
(0.143896469259 0.205852944335 0)
(0.156912746426 0.216852008428 0)
(0.169512418592 0.225722999687 0)
(0.181609202614 0.232472671435 0)
(0.193172187289 0.237242968101 3.19663068306e-29)
(0.204241202033 0.240264903797 -2.64619356794e-29)
(0.214878956974 0.241800322849 0)
(0.225169564677 0.24211171303 0)
(0.235198585636 0.241441766508 0)
(0.245048631557 0.240004018076 0)
(0.254793444164 0.237980907177 0)
(0.264496466206 0.235526359832 0)
(0.274210102449 0.232770901767 0)
(0.283976103559 0.229827779178 0)
(0.293826306593 0.22679947887 0)
(0.303783958985 0.223784467608 0)
(0.313865769163 0.22088418768 0)
(0.324083793038 0.218210202578 0)
(0.3344451816 0.215890696658 0)
(0.344951847334 0.214076262898 0)
(0.355613943234 0.212947232951 0)
(0.366487269898 0.212721920986 0)
(0.377673163306 0.213656036611 0)
(0.389154072304 0.216013504346 0)
(0.400611941099 0.220015909524 0)
(0.412091959979 0.22588625684 0)
(0.425976894335 0.234024969802 0)
(0.446322223952 0.244837042592 0)
(0.467548093734 0.257832932968 0)
(-1.96493231948e-05 0.000689961817448 0)
(-5.20516288219e-05 0.000692287084836 0)
(-8.55043925327e-05 0.00069496990863 0)
(-0.000114838474878 0.000687612579332 0)
(-0.000150580562486 0.000702295721056 0)
(-0.000184713207457 0.000722575064232 0)
(-0.000218697787229 0.000745539618732 0)
(-0.000257518314285 0.000778469827383 0)
(-0.000283506184907 0.000779061267615 0)
(-0.000305975186589 0.000782566855646 0)
(-0.000351866576847 0.000834297748149 -6.58740854188e-29)
(-0.000362011809226 0.000826502642735 0)
(-0.000387648708324 0.000857242750293 0)
(-0.000440645473318 0.000944069394838 0)
(-0.000484507166511 0.00101934816542 6.36868493427e-29)
(-0.000489971957825 0.00102130757888 0)
(-0.00053290522018 0.00110280027019 0)
(-0.000578436668063 0.00119547269648 0)
(-0.000585639372457 0.00122267736876 0)
(-0.000619735162354 0.00131156478946 0)
(-0.000655497235413 0.00141662358319 0)
(-0.000646792441274 0.00144368379363 0)
(-0.000689952018239 0.00157402329674 0)
(-0.000692737970727 0.00165684378856 0)
(-0.00070140980083 0.00176928506163 0)
(-0.000691925145416 0.00185846486417 0)
(-0.000690228086787 0.00198543724865 0)
(-0.000672492558873 0.00211610643577 0)
(-0.000631493022657 0.00223748562654 0)
(-0.000569272338154 0.00236565310637 0)
(-0.000482110923669 0.00252075918802 0)
(-0.000407641247601 0.00263697786869 0)
(-0.000412011228285 0.00288635180231 0)
(-0.000467517841254 0.0032123248729 0)
(-0.000515295565621 0.00349903407786 0)
(-0.000516602033455 0.00370702799934 0)
(-0.000500935051947 0.00386892087643 0)
(-0.000548361869151 0.00401231542191 0)
(-0.000987011718956 0.00413717475861 0)
(-0.00150466834339 0.00413182287141 0)
(-0.00614583380926 0.0109614931541 0)
(-0.00418344012918 0.0323148629566 0)
(0.174962040136 0.25967279812 0)
(0.0629492955245 0.236544013488 0)
(0.0663609787663 0.156274909353 0)
(0.082908004002 0.142742149264 0)
(0.0833281905552 0.149500446248 0)
(0.0951811327838 0.161164396809 0)
(0.106212961007 0.176359299929 0)
(0.118854215975 0.191637085359 0)
(0.131800233001 0.206095650235 0)
(0.144713435215 0.21884638882 0)
(0.157322504473 0.229479591755 0)
(0.169459980852 0.237856954961 0)
(0.181071371438 0.244070459207 0)
(0.192154019032 0.248324851068 0)
(0.202761412398 0.250889695295 2.60729823141e-29)
(0.21296360428 0.252046785757 0)
(0.222843828778 0.252064905838 -1.86713796158e-29)
(0.232481736843 0.251183673445 0)
(0.24195012004 0.24960819365 0)
(0.251310224862 0.247509837038 0)
(0.260611008568 0.245030641221 0)
(0.269888716831 0.242289413932 0)
(0.279167344033 0.239388359148 0)
(0.288459255634 0.236419838939 0)
(0.297766287459 0.233473236163 0)
(0.307081676646 0.230642047974 0)
(0.316392343689 0.228031182535 0)
(0.325679471503 0.225763801644 0)
(0.334918011547 0.22398750798 0)
(0.344088428373 0.222882496986 0)
(0.353217843264 0.222673909626 0)
(0.362401030322 0.223641317541 0)
(0.371650210762 0.22610079256 0)
(0.380637759136 0.230354181797 0)
(0.389247095607 0.236733030248 0)
(0.399883198943 0.245831006441 0)
(0.417694656667 0.25830691325 0)
(0.438171611179 0.273368580273 0)
(-2.08642912036e-05 0.000655323738129 0)
(-5.41433312428e-05 0.000656262347273 0)
(-9.37680374384e-05 0.000662702585915 0)
(-0.000130200379402 0.000656351893174 0)
(-0.000167836225368 0.000666870784203 0)
(-0.000205660461908 0.000687961876949 0)
(-0.00024153785474 0.000709344526784 0)
(-0.000282725585439 0.000743348074286 0)
(-0.000316806880487 0.000757799430526 0)
(-0.000337467519745 0.00075105676272 0)
(-0.000384012837841 0.000795070409112 0)
(-0.000413898722278 0.000814781758979 0)
(-0.00042263440836 0.000811665976769 0)
(-0.000480090143617 0.000892893894552 0)
(-0.000535814362415 0.000971528534577 -6.15380572689e-29)
(-0.000554633842507 0.000994322006945 0)
(-0.000591871165723 0.00105731882849 0)
(-0.000648902410315 0.00115278740163 5.81072372321e-29)
(-0.000669976544587 0.00119985610807 0)
(-0.000695500261535 0.00126625444488 0)
(-0.000750039051002 0.00137650870707 0)
(-0.000759688637502 0.00143028695772 0)
(-0.000799802628699 0.00154387782595 0)
(-0.000822572211104 0.00164706573056 0)
(-0.000833670486679 0.00174306617153 0)
(-0.000847073499775 0.00186322195013 0)
(-0.000850286379517 0.00198748025126 0)
(-0.000850746867263 0.00212394442405 0)
(-0.000834171927243 0.00227375822649 0)
(-0.000793178897791 0.00241446733406 0)
(-0.000753738159581 0.00261226219299 0)
(-0.000674598027148 0.00276782834541 0)
(-0.000608746291986 0.00296833677576 0)
(-0.000572976801917 0.00314213008085 0)
(-0.000583437847728 0.00342146041754 0)
(-0.000569463749807 0.00363547345063 0)
(-0.000538187855131 0.00379519763982 0)
(-0.000545503035599 0.00374657194663 0)
(-0.000807138552855 0.00340338850898 0)
(-0.00151463439402 0.00263808336586 0)
(-0.00265184496168 0.00108811231559 0)
(-0.00344133878242 0.123624648749 0)
(0.148179773109 0.273550164188 0)
(0.049155253341 0.220639484156 0)
(0.0735394095286 0.152061403044 0)
(0.0804316585023 0.149505540594 0)
(0.0833885106563 0.158278937828 0)
(0.0958362245179 0.17220573646 0)
(0.106792023621 0.18857173115 0)
(0.119512154284 0.204387938278 0)
(0.132215980414 0.218954460791 0)
(0.14479981071 0.231469380677 0)
(0.156993918803 0.241668656288 0)
(0.168679050756 0.249521175457 0)
(0.179827636974 0.255195525989 0)
(0.190458665328 0.258948871781 0)
(0.200634723086 0.261079939493 0)
(0.210428783088 0.261882925324 0)
(0.219919970722 0.261627009811 1.84414185126e-29)
(0.22917973442 0.260544569558 0)
(0.238269490165 0.258829366585 0)
(0.247237040065 0.256639616395 0)
(0.256116366265 0.254103805888 0)
(0.264927491263 0.251327498829 0)
(0.27367702784 0.248400317019 0)
(0.282358771725 0.24540297042 0)
(0.290954693389 0.242414541874 0)
(0.299436757042 0.23952035531 0)
(0.307769308316 0.236820644699 0)
(0.315909752966 0.23443960807 0)
(0.32380639831 0.232534428376 0)
(0.331404551712 0.231306149698 0)
(0.338683516814 0.231015772448 0)
(0.345691490612 0.232001487878 0)
(0.35241541151 0.234669773731 0)
(0.358448511505 0.23943065322 0)
(0.363373773528 0.246680682359 0)
(0.36949694008 0.257020311132 0)
(0.383762521277 0.271174880802 0)
(0.404327790725 0.288123295827 0)
(-2.22614964913e-05 0.000617335717934 0)
(-5.76140415056e-05 0.000618590066159 0)
(-9.96647100251e-05 0.000617143938497 0)
(-0.000141906897535 0.000612853119255 0)
(-0.000182899622878 0.000625795188545 0)
(-0.000223671367025 0.000648865659079 0)
(-0.000263151416859 0.000671093810827 0)
(-0.000306701629816 0.000703423463017 0)
(-0.000348966759651 0.000727154638863 0)
(-0.000375170489373 0.000723060002813 0)
(-0.000412876519581 0.000747241698414 0)
(-0.000471762201303 0.000803827601379 0)
(-0.00047541669021 0.000786783731628 0)
(-0.00052059995727 0.000836201424675 0)
(-0.000589895660406 0.000926033837214 0)
(-0.000631203274761 0.000977715383183 0)
(-0.000653662790698 0.0010073441739 0)
(-0.000720653819368 0.00110576307 -5.68295214582e-29)
(-0.000773480042042 0.00119276904042 0)
(-0.000785794767092 0.00122873797954 0)
(-0.000848657331801 0.00133579061118 0)
(-0.000876873839274 0.00140614046873 0)
(-0.000906851549341 0.00149460337147 0)
(-0.000974134970142 0.00164783566318 0)
(-0.000975927919474 0.00172229882578 0)
(-0.00102423824599 0.0018737151293 0)
(-0.0010229139114 0.00196346463705 0)
(-0.00104775382046 0.00212813087485 0)
(-0.00105648794346 0.00229709735985 0)
(-0.00103794355026 0.00244075594926 0)
(-0.00102409389295 0.00262596265541 0)
(-0.000995617912272 0.0028346512929 0)
(-0.000952129260247 0.0030689177704 0)
(-0.000893422700249 0.00329787802442 0)
(-0.000835420063102 0.00355202753123 0)
(-0.000762795083832 0.00381205517267 0)
(-0.000631843629739 0.00397643284287 0)
(-0.000400448149339 0.00392763957387 0)
(-8.52963373368e-05 0.00351581961716 0)
(0.00107254909718 0.00253821516199 0)
(-0.00200230312338 -0.000709617530924 0)
(0.032150597397 0.238265685291 0)
(0.109489373625 0.277574622324 0)
(0.0430938108344 0.205500712735 0)
(0.0766551590928 0.152038133446 0)
(0.0768082379336 0.156879115291 0)
(0.0833325805808 0.167549519216 0)
(0.095774289312 0.183583401172 0)
(0.106805488441 0.200819526375 0)
(0.119535035326 0.217005738731 0)
(0.131963288369 0.231530702594 0)
(0.144213288363 0.243712825315 0)
(0.155997689642 0.253427161475 -3.006028237e-29)
(0.167250177102 0.260736104479 2.95642032634e-29)
(0.17796326891 0.265875704662 0)
(0.188172635277 0.269145085772 0)
(0.197946007678 0.270863663941 0)
(0.207355806192 0.271331381851 0)
(0.216474705284 0.270812897149 0)
(0.225364377402 0.269529993705 1.19182921788e-29)
(0.234073915493 0.267662824688 0)
(0.242637166833 0.265354889892 0)
(0.251072855702 0.262719933965 0)
(0.259384495605 0.259849226207 0)
(0.267560705797 0.256818748243 0)
(0.275575329954 0.253696389689 0)
(0.283387705012 0.25054946727 0)
(0.290943505152 0.24745283105 0)
(0.298176131772 0.244497542925 0)
(0.305006607253 0.241799476553 0)
(0.311340151561 0.239506757444 0)
(0.317069069948 0.237806642484 0)
(0.322108924126 0.236934938191 0)
(0.326453345442 0.237190656984 0)
(0.330088327658 0.238945092012 0)
(0.332640550961 0.242622282604 0)
(0.333607755256 0.248693565355 0)
(0.335447526168 0.25786219352 0)
(0.347644335551 0.271424532328 0)
(0.372489160253 0.291457305042 0)
(-2.42742984991e-05 0.000575891647118 0)
(-6.52495689081e-05 0.000578763837651 0)
(-0.000109373992607 0.00056970304362 0)
(-0.000149944548264 0.000564610490405 0)
(-0.000194182456246 0.000584963625059 0)
(-0.000238744230856 0.000606367643279 0)
(-0.000283076366449 0.000628546288182 0)
(-0.000330017111153 0.000658619450362 0)
(-0.000378367620011 0.00068718757173 0)
(-0.000411559326646 0.000689627619133 0)
(-0.000444186130518 0.000700272388313 0)
(-0.00050431342107 0.000748690012489 0)
(-0.000541828094701 0.000769549431041 0)
(-0.000557537860776 0.000773090609701 0)
(-0.000635574607365 0.000862666626053 0)
(-0.00070461754523 0.000942340861488 0)
(-0.000722102510931 0.000960371845409 0)
(-0.000783403969503 0.00104032909355 0)
(-0.000858291246073 0.00114070870397 0)
(-0.000884177930653 0.00118729393795 0)
(-0.000940410712229 0.00127707525509 0)
(-0.00100900550092 0.00138844337524 0)
(-0.00102205051112 0.00144557583974 0)
(-0.00109816433678 0.00158600420424 0)
(-0.0011299217706 0.00168922577087 0)
(-0.00117164446321 0.00181084008619 0)
(-0.00121394343076 0.0019490763245 -4.19273575118e-29)
(-0.00125417339376 0.00211292919857 4.09846702666e-29)
(-0.00128226249325 0.00227356975092 0)
(-0.00130355040811 0.00245483647104 0)
(-0.00131165780587 0.00264701506097 0)
(-0.00131681089076 0.0028683304949 0)
(-0.00130577754812 0.00311480843245 0)
(-0.00126830212559 0.00336951738377 0)
(-0.00119320644594 0.00365709557101 0)
(-0.00106548074307 0.00396863453096 0)
(-0.000829816673717 0.00427623024973 0)
(-0.000340181001346 0.0044949969559 0)
(0.000419219292209 0.00450535895589 0)
(0.00319550282162 0.00429634170566 0)
(-0.00303892578909 0.00217600049692 0)
(0.0467198304396 0.290544588909 0)
(0.068981571795 0.28536022494 0)
(0.0410739170744 0.19626329965 0)
(0.0765157183099 0.155933916761 0)
(0.0729961542577 0.165033333579 0)
(0.0829555804653 0.177483444771 0)
(0.0950377121146 0.195248077546 0)
(0.106291970431 0.213068830289 0)
(0.118952597874 0.22946200646 0)
(0.131099190751 0.243809525449 0)
(0.143019223562 0.255580815015 0)
(0.154407775991 0.264771942557 0)
(0.165252306925 0.271527245915 0)
(0.17555854349 0.276140286186 0)
(0.185375101547 0.278942231839 0)
(0.194771404079 0.280265652433 0)
(0.203816702952 0.280410469551 0)
(0.212575579716 0.279632773249 0)
(0.22109895191 0.278141073462 -1.18047259267e-29)
(0.229423147038 0.276100122136 -7.9286769687e-30)
(0.237567976701 0.273637398606 0)
(0.24553703668 0.270850703828 0)
(0.253317571541 0.267815569779 0)
(0.260880546752 0.264592325595 0)
(0.268180511997 0.261233137337 0)
(0.275155757816 0.257789452477 0)
(0.281729382728 0.254320089393 0)
(0.287811550958 0.250899998531 0)
(0.293301197807 0.247629561431 0)
(0.298084772496 0.244644606331 0)
(0.302039650416 0.242128940884 0)
(0.305067455963 0.240333997258 0)
(0.307143722728 0.239616685646 0)
(0.308209687268 0.240517614145 0)
(0.307720155513 0.243894467634 0)
(0.30468368679 0.251027942888 0)
(0.300775346196 0.263422532652 0)
(0.304791713639 0.282231765001 0)
(0.313882892017 0.309656127758 0)
(-2.64302092705e-05 0.000529937153674 0)
(-7.318585204e-05 0.000533569521977 0)
(-0.000122863693764 0.00053021767858 0)
(-0.000163881934044 0.000528655152775 0)
(-0.00020575919285 0.000539653495154 0)
(-0.000254951369 0.000559692199129 0)
(-0.000304041801814 0.000581902008076 0)
(-0.000353960332056 0.000608858188285 0)
(-0.000407730493233 0.000641551153672 0)
(-0.000451493302049 0.000656701114354 0)
(-0.000485150689469 0.000660456739569 0)
(-0.000534029975963 0.000690307195632 0)
(-0.000609048603475 0.00074741387739 0)
(-0.000620830443304 0.000739292505756 0)
(-0.000674946314406 0.00078817615068 0)
(-0.000763471581013 0.000881318035094 0)
(-0.000814477129806 0.000934017776441 0)
(-0.000849049750314 0.000974442014411 0)
(-0.000937166671718 0.00107775241528 0)
(-0.00100160320238 0.00116121105669 0)
(-0.00103063311647 0.00121105057444 -4.9513880324e-29)
(-0.00112283918239 0.00132974165704 0)
(-0.00116073323465 0.00140367403424 0)
(-0.00121488456959 0.00150842059424 0)
(-0.00131332285921 0.00167485630811 0)
(-0.00133925146288 0.0017658426195 0)
(-0.00140491458446 0.00190735746171 0)
(-0.00145206418375 0.00205420192131 0)
(-0.00151405257873 0.00224224332938 0)
(-0.00156839909271 0.00243965910837 0)
(-0.00159354725089 0.00261510065294 0)
(-0.00163443790452 0.00285112721883 0)
(-0.00165889910222 0.00311011301073 0)
(-0.00166012322311 0.00340136637639 0)
(-0.00163087975377 0.00377073313216 0)
(-0.00150068762517 0.00416137168438 0)
(-0.00123169255525 0.00467124055989 0)
(-0.000629507885097 0.00526298284336 0)
(0.000227118859599 0.00581275420659 0)
(0.00457631683791 0.00732610914842 0)
(-0.00542222681337 0.00601445213966 0)
(0.0652159182082 0.338497457248 0)
(0.0317390664141 0.298111784179 0)
(0.0432786557712 0.192456444204 0)
(0.0746460269594 0.162758354567 0)
(0.0696382583728 0.174045734939 0)
(0.0822451747426 0.188113230428 0)
(0.0937792628966 0.207141675635 0)
(0.1053178617 0.225295620108 0)
(0.117822499252 0.241736211531 0)
(0.129692646376 0.25578676435 0)
(0.141287803071 0.26708478901 0)
(0.152298760165 0.275724274227 0)
(0.162761179377 0.281921690445 0)
(0.172688158974 0.286017603995 0)
(0.182138117353 0.28836627199 0)
(0.191179191571 0.289306796826 0)
(0.199875562531 0.28913418822 0)
(0.208282624862 0.288092695534 0)
(0.216440036961 0.286375439627 7.91931989116e-30)
(0.22437130629 0.284130373292 7.86695581643e-30)
(0.232082421827 0.281467894404 0)
(0.239562167684 0.278468801492 0)
(0.246781762027 0.275191603914 0)
(0.253694478564 0.271679404498 0)
(0.260234920065 0.267966984831 0)
(0.266318344996 0.26408870995 0)
(0.271840236504 0.260087516932 0)
(0.276675485722 0.256024937305 0)
(0.280673544947 0.251992038447 0)
(0.283643866785 0.248121469386 0)
(0.285334327057 0.244600710147 0)
(0.285419051307 0.241684969995 0)
(0.283457551747 0.239712304375 0)
(0.278597680076 0.239144504961 0)
(0.268828748755 0.240619933892 0)
(0.250880622024 0.244683221947 0)
(0.223285186437 0.250400454031 0)
(0.185089741903 0.253460189188 0)
(0.0610649841603 0.255361216134 0)
(-2.73380284725e-05 0.000479637911588 0)
(-7.68448955565e-05 0.000482917224874 0)
(-0.000128858347533 0.000479875646544 0)
(-0.000183433506046 0.000499468566832 0)
(-0.000224349373218 0.000495672788374 0)
(-0.000274250548818 0.000509979856776 0)
(-0.000326887237322 0.000531583213463 0)
(-0.000378981936326 0.000555875809327 0)
(-0.00043757443734 0.000590842043567 0)
(-0.000490347598984 0.000614983696198 0)
(-0.000528606643382 0.000619911860282 0)
(-0.00056872290589 0.000632321162028 0)
(-0.000638338874328 0.000678167609028 0)
(-0.000697932607389 0.000713572927937 0)
(-0.000719220173406 0.000720931332498 0)
(-0.000806264788114 0.000800414388234 0)
(-0.000896224239736 0.000885181606218 0)
(-0.000923397130357 0.000911034032856 0)
(-0.000997323035402 0.000987886349342 0)
(-0.00110184262885 0.00110097473767 0)
(-0.00113357554728 0.00114524469772 4.88554246931e-29)
(-0.00121429600771 0.00123996349145 0)
(-0.00131303778612 0.00136350405276 0)
(-0.00135626360802 0.00144409966552 0)
(-0.00144927520178 0.00158036889481 0)
(-0.00152414855529 0.001710586833 0)
(-0.00158466151611 0.00183387756121 0)
(-0.0016659953779 0.00199879680541 0)
(-0.00173571074597 0.00217133419488 0)
(-0.00180969166367 0.00236225842174 0)
(-0.00187782358253 0.00256471072135 0)
(-0.00195310501781 0.00280749910856 0)
(-0.00201897320297 0.0030742959123 0)
(-0.00207250500472 0.00338740859918 0)
(-0.00210742721069 0.00377939970445 0)
(-0.0021041557691 0.00431473435588 0)
(-0.00195686186866 0.00500650781054 0)
(-0.00149362638477 0.00598079036422 0)
(-0.000714455892697 0.00734533624787 0)
(0.00555769720741 0.0122398683981 0)
(-0.00873062707377 0.0124299109172 0)
(0.0937080523229 0.375138165563 0)
(0.00018434217016 0.309752721416 0)
(0.0495082855552 0.191312468449 0)
(0.0718464596748 0.17126533056 0)
(0.0669915044099 0.183682210699 0)
(0.0812503744042 0.19927220971 0)
(0.0921594469609 0.21915886752 0)
(0.103952878156 0.237458749001 0)
(0.116216162817 0.253805347092 0)
(0.127816415558 0.267461963933 0)
(0.139090125827 0.278238789157 0)
(0.149743174419 0.286306551492 0)
(0.159848037401 0.291945688623 0)
(0.169420905112 0.295533497075 0)
(0.178526983727 0.297439601316 0)
(0.187230646079 0.298003931577 0)
(0.195589646891 0.297512545179 9.65882282704e-30)
(0.203649489182 0.296195250715 0)
(0.211438358206 0.294228132097 -7.85921218855e-30)
(0.218967008146 0.291741238788 0)
(0.226227708581 0.288826945019 0)
(0.233194263829 0.285547916229 0)
(0.239821010737 0.281944029152 0)
(0.246041389879 0.278038845414 0)
(0.251765719128 0.273846469003 0)
(0.256878236849 0.269379243556 0)
(0.261233002174 0.264655933194 0)
(0.26464712335 0.259709177911 0)
(0.26688643318 0.254590283499 0)
(0.267637073329 0.249368766021 0)
(0.26646775727 0.244122415801 0)
(0.262801986667 0.238908763325 0)
(0.255852156298 0.233708725471 0)
(0.244283335209 0.228347306225 0)
(0.225600806163 0.222316047227 0)
(0.196839951607 0.21406014684 0)
(0.158330054652 0.199294779452 0)
(0.10795625129 0.171537552049 0)
(-0.0317236507409 0.13691707725 0)
(-2.80209973397e-05 0.000427619026126 0)
(-7.95818754062e-05 0.000430470447136 0)
(-0.000130073599686 0.00042237304432 0)
(-0.000190062938352 0.000439403095749 0)
(-0.00024234110404 0.000446695525252 0)
(-0.000293264963311 0.000457867236805 0)
(-0.000349454870865 0.000477691241724 0)
(-0.000405338309467 0.000500960023785 0)
(-0.000467120977278 0.00053393309809 0)
(-0.000527541789006 0.000564434030033 0)
(-0.000577666422065 0.000580269837565 0)
(-0.000617991891622 0.000586557294051 0)
(-0.00066904857047 0.000608373198229 0)
(-0.000749932806148 0.000658412301169 0)
(-0.000796253806681 0.000681515033856 0)
(-0.000840400001189 0.000709033374624 0)
(-0.000949583969324 0.000802413769796 0)
(-0.0010435555701 0.000881933350162 0)
(-0.00106996176907 0.000905714808018 0)
(-0.0011846370148 0.00101406489608 0)
(-0.00128244187405 0.00111073227272 0)
(-0.001319992552 0.00115705178606 0)
(-0.00143535734812 0.00127621502314 0)
(-0.00150837911851 0.00137310592749 0)
(-0.00159479465215 0.00149113552783 0)
(-0.00170803227467 0.00164002815786 0)
(-0.00178264067869 0.00176279381389 0)
(-0.00188214636314 0.00192072052443 0)
(-0.00196647542911 0.00208740973732 0)
(-0.00207177242885 0.00229003570443 0)
(-0.00216642382319 0.0024923633287 0)
(-0.00225954117221 0.00271140324323 0)
(-0.00236388561414 0.00297278273166 0)
(-0.00248396621701 0.00329226393557 0)
(-0.00262408329169 0.00368801147186 0)
(-0.00279392237053 0.00421328239579 0)
(-0.00297292080658 0.00504465640926 0)
(-0.0031821339579 0.00645524388619 0)
(-0.00249705551066 0.00886959558513 0)
(0.00445552119059 0.019911488885 0)
(-0.0116190411671 0.0249733981667 0)
(0.140654014997 0.402905824822 0)
(-0.0267936943394 0.316102230913 0)
(0.0588867913138 0.190629020131 0)
(0.0681227229245 0.180492678273 0)
(0.0650130131777 0.193561299771 0)
(0.0799597017331 0.210704383475 0)
(0.0902730159535 0.231167824453 0)
(0.102242967008 0.24950123371 0)
(0.114199942257 0.265643248711 0)
(0.125537954583 0.278835534918 0)
(0.136493796486 0.289057122389 0)
(0.146809068098 0.296540424922 0)
(0.156578695741 0.301623287492 0)
(0.165819566344 0.304710520891 0)
(0.174600702839 0.306180747324 0)
(0.182980805862 0.306369919428 -9.45974106935e-30)
(0.191010248399 0.305551877972 -9.58063848321e-30)
(0.198724178911 0.30393992022 0)
(0.206139175818 0.301691738155 0)
(0.21325314751 0.298918418299 0)
(0.220044254842 0.29569309981 0)
(0.226470190121 0.292058471021 0)
(0.232465958791 0.288032794723 0)
(0.23794072712 0.283615422829 0)
(0.242773382607 0.278792666889 0)
(0.246806756851 0.273543989154 0)
(0.249840064015 0.267847224338 0)
(0.251618480461 0.261680505374 0)
(0.251816058925 0.25501762318 0)
(0.250007643763 0.247812683491 0)
(0.245640390901 0.239969185273 0)
(0.238033428468 0.231287425182 0)
(0.226360915516 0.221381046776 0)
(0.20940244441 0.209545353073 0)
(0.185204664 0.194462936429 0)
(0.152303084793 0.173532913221 0)
(0.113132842558 0.142309248568 0)
(0.066335949263 0.0988921175943 0)
(-0.0388254026101 0.0578558865556 0)
(-2.91481282329e-05 0.000374797236978 0)
(-8.40354447724e-05 0.000377784348681 0)
(-0.000136797199027 0.000371426460461 0)
(-0.00019286784937 0.000376135663952 0)
(-0.00025901488574 0.000396857608674 0)
(-0.000311612836138 0.000403178893333 0)
(-0.000370991357156 0.000420509757477 0)
(-0.000430640750672 0.000442221358028 0)
(-0.000492835719671 0.000470258721651 0)
(-0.000561121222122 0.000505077200034 0)
(-0.000624276513035 0.000531568898172 0)
(-0.000671331398606 0.00053995901827 0)
(-0.000720204780656 0.000550853024538 0)
(-0.000784463738648 0.000582422548406 0)
(-0.000877473644178 0.000637361295553 0)
(-0.000905530635791 0.000645199678845 0)
(-0.000978992392635 0.000694244368835 0)
(-0.00110773210368 0.000793511794716 0)
(-0.00116219362515 0.000837253842843 0)
(-0.0012443780308 0.000905481902276 0)
(-0.00137508002552 0.00101604251904 0)
(-0.00143991374108 0.00107932718718 0)
(-0.00153928334541 0.00117258050819 0)
(-0.00164756494592 0.00128365204203 0)
(-0.0017451661127 0.0013949028335 0)
(-0.00184876603278 0.00151936718475 0)
(-0.0019757408978 0.00166904428575 0)
(-0.00206643055538 0.00180103259018 0)
(-0.00219884665815 0.00198652792028 0)
(-0.00233775614692 0.00219461472214 0)
(-0.00243112601824 0.00236676870869 0)
(-0.00256448426348 0.0025909706974 0)
(-0.00269890078922 0.00284107928582 0)
(-0.00288117261828 0.00314202035405 0)
(-0.00309564281287 0.00345900658591 0)
(-0.00347422936821 0.00390298518208 0)
(-0.00404929719566 0.00453654940596 0)
(-0.00558382949983 0.00569927445346 0)
(-0.00525882925788 0.00846327849884 0)
(-0.00179922285461 0.0199473972369 0)
(-0.00956180186711 0.047254143716 0)
(0.205014663209 0.414148479982 0)
(-0.0468542900442 0.310028228466 0)
(0.0706577251695 0.189494513033 0)
(0.0631319701961 0.189682870807 0)
(0.0635555976099 0.203346275848 0)
(0.0782761427449 0.222190193935 0)
(0.0881426515761 0.243058761389 0)
(0.100203825573 0.261373017904 0)
(0.111826016874 0.277229758903 0)
(0.1229148551 0.289911029561 0)
(0.133560332809 0.299554651859 0)
(0.143558665338 0.306446346647 0)
(0.153013191206 0.310975857515 0)
(0.161941110853 0.313567718364 1.12605956986e-29)
(0.170412519983 0.314604399352 0)
(0.178479175059 0.314413875829 9.38418104217e-30)
(0.186183385391 0.313255136109 0)
(0.193549571977 0.311323231473 0)
(0.200582427593 0.308756160185 0)
(0.207266463838 0.305644705549 0)
(0.21356448676 0.302040845474 0)
(0.219415598656 0.297964165152 0)
(0.224731210132 0.293406381182 0)
(0.22938975749 0.288335395174 0)
(0.233230121723 0.282699816954 0)
(0.236044077172 0.276433496179 0)
(0.237568025272 0.269458223923 0)
(0.237474504704 0.261682264651 0)
(0.235362322833 0.252992060025 0)
(0.230743684326 0.243233166451 0)
(0.22304130688 0.232176395592 0)
(0.211631486324 0.219471713093 0)
(0.195908648496 0.204592695964 0)
(0.175181889291 0.186731150221 0)
(0.148560054427 0.164485631176 0)
(0.116272771399 0.135523988114 0)
(0.0826401105986 0.0975166687661 0)
(0.0480585242084 0.0553117727846 0)
(-0.0184873606396 0.0326897971409 0)
(-3.02684448525e-05 0.000318899321504 0)
(-8.73293532811e-05 0.000321577546702 0)
(-0.000146579563058 0.000323325724654 0)
(-0.00019843948967 0.000316565456054 0)
(-0.000269944782988 0.000337536783834 0)
(-0.00032960718048 0.000346834857269 0)
(-0.000390545120149 0.000360980838988 0)
(-0.000453578581413 0.000380971120803 0)
(-0.000516071083245 0.000404203918737 0)
(-0.000589759715634 0.000437908654515 0)
(-0.000658395089263 0.000467539766134 0)
(-0.000729273118662 0.000492550907643 0)
(-0.000776464015501 0.00049722712656 0)
(-0.000830361791382 0.000509777627915 0)
(-0.000918072721456 0.000555290422287 0)
(-0.00101098378781 0.00060272361241 0)
(-0.00104717997638 0.000615565778035 0)
(-0.00115285725431 0.000685496856089 0)
(-0.0012721459424 0.000769965177553 0)
(-0.00132988845737 0.00081372737485 0)
(-0.00144117677451 0.000897946054076 0)
(-0.00156617519455 0.000994913702168 0)
(-0.00165405282586 0.00107012948963 0)
(-0.00177108687838 0.00117008949345 0)
(-0.00189082793862 0.00128469398687 0)
(-0.00201513325189 0.00140845359675 0)
(-0.00213956498935 0.00153882990683 0)
(-0.00227376143472 0.00168669077886 0)
(-0.00241810861712 0.0018587248007 0)
(-0.00255711055706 0.00204490468285 -3.30507061917e-29)
(-0.00270791018048 0.0022509868283 3.17822877777e-29)
(-0.00286245882178 0.00247351248919 0)
(-0.00301583611981 0.00270851088984 0)
(-0.00318755589689 0.00294781749583 0)
(-0.00341009673209 0.00317366416965 0)
(-0.00376611329642 0.00335388686668 0)
(-0.00447939859746 0.00349999433951 0)
(-0.00694543161542 0.00345429360497 0)
(-0.00366191479237 0.0025388717713 0)
(-0.0256635520316 0.0265920134238 0)
(-0.00504531652319 0.0663103847035 0)
(0.246469675884 0.412765305543 0)
(-0.0564984777973 0.289981420393 0)
(0.0790324907661 0.188873418346 0)
(0.0565649066331 0.198341258672 0)
(0.0622265336854 0.212937543396 0)
(0.0760284877709 0.233630004005 0)
(0.085743434635 0.254786810477 0)
(0.0978330058765 0.273054789159 0)
(0.109136036423 0.288561528337 0)
(0.11999681134 0.300699264732 1.95568405003e-29)
(0.130345708226 0.309748286524 -1.92822577893e-29)
(0.140048660411 0.316043888812 0)
(0.149206196871 0.320022137342 -1.11049462342e-29)
(0.157837202581 0.322120698982 -1.1165503088e-29)
(0.166010526131 0.322721577081 0)
(0.173770312423 0.322141361993 0)
(0.181150262605 0.320621945819 0)
(0.188163629295 0.318338477754 0)
(0.194802586253 0.315407712599 0)
(0.201037025876 0.311898145979 0)
(0.206812136714 0.307837552727 0)
(0.212044669758 0.303217684612 0)
(0.216616930765 0.297996881706 0)
(0.220369652748 0.2921027386 0)
(0.223094557805 0.285436069208 0)
(0.224527909104 0.277875555153 0)
(0.224346474062 0.269281064257 0)
(0.22216824771 0.259493844343 0)
(0.217560286646 0.248332576949 0)
(0.210055408247 0.23558242753 0)
(0.199187649783 0.220972089644 0)
(0.184578414352 0.204149141329 0)
(0.16608548091 0.184691386168 0)
(0.143895972052 0.162125015346 0)
(0.11857664866 0.135674105648 0)
(0.0918652937907 0.104138703289 0)
(0.0686631503754 0.068086053378 0)
(0.0466488817468 0.0384445158839 0)
(0.00211760824113 0.0017729504884 0)
(-3.04079430996e-05 0.000259941428582 0)
(-8.805596629e-05 0.000262037269498 0)
(-0.000149891332935 0.000264594180694 0)
(-0.000203108279454 0.000256873118215 0)
(-0.000264143464093 0.000262997328205 7.85055716035e-30)
(-0.000336361997192 0.000280976437943 -9.17049264429e-33)
(-0.000403554645457 0.00029714801949 -8.06733244797e-30)
(-0.000471336667496 0.000316732671017 0)
(-0.00053786571231 0.000337418122378 0)
(-0.00061018841826 0.000365006168892 0)
(-0.000687833712856 0.000396434454435 0)
(-0.000761289493785 0.000422838271215 0)
(-0.000831404084422 0.0004412512106 0)
(-0.000886574478764 0.000446993682294 0)
(-0.000949754930982 0.00046489345893 0)
(-0.00106088510499 0.00051558797407 0)
(-0.00113863013413 0.000549099297947 0)
(-0.00120990727254 0.00058296773438 0)
(-0.00132975520917 0.000656879718201 0)
(-0.00145563344542 0.000739304858784 0)
(-0.00152617480726 0.000787934862069 0)
(-0.00164734816146 0.000866925130225 0)
(-0.00178733057163 0.000966218254745 0)
(-0.00189555693664 0.00105028503919 0)
(-0.00202884584166 0.00115416164348 0)
(-0.00217704966308 0.00127828915902 0)
(-0.00231635294553 0.00140696866157 0)
(-0.00247341156624 0.00155569316377 0)
(-0.00260286444529 0.00170785272069 0)
(-0.002769138667 0.00190148794644 0)
(-0.00291668533033 0.00209034621404 0)
(-0.00305586881136 0.00228393447508 0)
(-0.00323149434979 0.00252090284013 0)
(-0.00339193542379 0.00275372261578 0)
(-0.00353028129666 0.00294152923575 0)
(-0.00368464888187 0.00305672498414 0)
(-0.00376124085122 0.00292671105553 0)
(-0.00378328736108 0.00230033709973 0)
(-0.00212355100896 8.50399776319e-06 0)
(-0.00210870001246 0.00047006504161 0)
(-0.00192213355162 0.324944904549 0)
(0.184912914731 0.40789603811 0)
(-0.0573808418965 0.270211905212 0)
(0.0798456020336 0.191345647906 0)
(0.0488361870051 0.206898875684 0)
(0.0605427512307 0.222671493007 0)
(0.0730987771589 0.245099852044 0)
(0.0830569239918 0.266395412547 0)
(0.0951373455183 0.284568362711 0)
(0.106173807043 0.29965608285 0)
(0.116832303617 0.311219624658 0)
(0.126903385417 0.319657308819 0)
(0.136331834916 0.325351671181 0)
(0.145208045336 0.328778191642 1.10112870598e-29)
(0.1535549726 0.330381709004 0)
(0.161438338957 0.330539786081 0)
(0.168894438282 0.329554530397 0)
(0.175947801296 0.327648611859 0)
(0.182599856664 0.324975438279 0)
(0.188829139667 0.321628455921 0)
(0.194588969572 0.317650997315 0)
(0.199803756732 0.313042333813 0)
(0.204363338681 0.307760199425 0)
(0.208115309548 0.301721591551 0)
(0.210857355699 0.294805067543 0)
(0.21233170667 0.286856273729 0)
(0.21222448884 0.27769613201 0)
(0.210172741838 0.267129647801 0)
(0.205782283197 0.254953958807 0)
(0.198660399336 0.240966945395 0)
(0.188467111133 0.224978102151 0)
(0.174983503506 0.206816697045 0)
(0.158187227251 0.186343129883 0)
(0.138350042998 0.163526539747 0)
(0.116187108449 0.138639652663 0)
(0.092863356642 0.11213714664 0)
(0.0687455729179 0.0838892439008 0)
(0.0423256943311 0.0530761093755 0)
(0.00361251600869 0.000192235472021 0)
(0.00025811819933 0.00110975610815 0)
(-3.05087126512e-05 0.000200392921002 0)
(-8.94474583989e-05 0.000202472441771 0)
(-0.000150447311111 0.000203308249121 0)
(-0.00020879165587 0.000201050122266 0)
(-0.000265886761793 0.000200403500637 0)
(-0.000335717524453 0.000210156956581 0)
(-0.000407530540759 0.000226453059225 0)
(-0.000481677220795 0.000247583008118 0)
(-0.000554130344604 0.000267386025936 0)
(-0.000625579786725 0.00028866765759 0)
(-0.000712002677774 0.000319298796272 0)
(-0.00078895228197 0.000345260124534 0)
(-0.000878975114246 0.000372621384952 0)
(-0.000945309787847 0.000384471242677 0)
(-0.00101079296209 0.000391003887183 0)
(-0.00108866338704 0.000414049269017 0)
(-0.0012088018807 0.000462218091239 0)
(-0.00128412409514 0.00049250477174 0)
(-0.00138590398858 0.000538338518194 0)
(-0.00151566025773 0.000613427018477 0)
(-0.00166165052591 0.000698538073216 0)
(-0.00174376314002 0.000747368822218 0)
(-0.00187997595385 0.00082618926276 0)
(-0.00202580341851 0.000922005911856 0)
(-0.00216851879405 0.00101766036805 0)
(-0.00230680053241 0.00112404110862 0)
(-0.00247914230387 0.00126023310562 0)
(-0.00261138179552 0.00138939181686 0)
(-0.00279452069455 0.00155668245669 0)
(-0.00293848744663 0.00171669046149 0)
(-0.00313686843761 0.00191556670945 -2.84422191719e-29)
(-0.00331951744657 0.00212375344202 2.72070271787e-29)
(-0.00351301599436 0.00236460423994 0)
(-0.00367074874727 0.00261368752874 0)
(-0.00380379786554 0.00286319233233 0)
(-0.0038401672912 0.00307208418799 0)
(-0.00358838891675 0.00313139735017 0)
(-0.00299077795352 0.00297508697745 0)
(-0.00065671559377 0.00303263204361 0)
(-0.00138502772373 0.00142195224352 0)
(0.023236346387 0.327242643129 0)
(0.128530120998 0.405758928302 0)
(-0.0549606408888 0.260463933965 0)
(0.0762444139381 0.197758336504 0)
(0.0412906946318 0.216130982132 0)
(0.0584315330068 0.233035562792 0)
(0.0696182973138 0.256760804856 0)
(0.0801430470082 0.277980871467 0)
(0.092165815508 0.295960642167 0)
(0.102999331454 0.310543789723 1.76404634855e-29)
(0.113475640602 0.321495837076 0)
(0.123287541403 0.32930117331 0)
(0.132458791238 0.334386208116 0)
(0.141065753442 0.337256920058 0)
(0.149137724569 0.338359501728 0)
(0.15673565112 0.338063045047 0)
(0.163887856707 0.336652125115 0)
(0.170608939769 0.334327915736 0)
(0.176887508356 0.331219812877 0)
(0.182686812181 0.327395149729 0)
(0.187941053125 0.322868197927 0)
(0.192550274339 0.317604267433 0)
(0.196373094405 0.311520023029 0)
(0.199218642569 0.304483481997 0)
(0.200840954081 0.296318349589 0)
(0.200939323574 0.286814917212 0)
(0.199168616813 0.275747061368 0)
(0.195162610688 0.262893432685 0)
(0.188570834129 0.248060813992 0)
(0.179106988428 0.231110094911 0)
(0.166609730459 0.211988663425 0)
(0.151108057941 0.190762146604 0)
(0.132830884768 0.16760906719 0)
(0.112108712764 0.142756696333 0)
(0.0893887593914 0.116514722167 0)
(0.0656578779043 0.0892668946332 0)
(0.0399551952849 0.059583708859 0)
(0.00436335563278 0.00148813466315 0)
(-0.000258440184488 0.000202225462981 0)
(0.000129337994058 0.00042436977274 0)
(-3.07730883905e-05 0.000140929159922 0)
(-9.17690894652e-05 0.000143152192796 0)
(-0.000152115542803 0.000142954326686 0)
(-0.000215243128456 0.000143998932036 0)
(-0.000273403436357 0.000140803705329 0)
(-0.000334172558731 0.000140450619901 0)
(-0.000401832190934 0.000150459250198 0)
(-0.000483905447544 0.000171409593434 0)
(-0.000563456809987 0.000191520719102 0)
(-0.000642302872882 0.000210440538848 0)
(-0.000725069932629 0.000233743096129 0)
(-0.000821262656142 0.000261522856984 0)
(-0.000903010452487 0.000284164061668 0)
(-0.0010070142874 0.000311074905602 0)
(-0.00108399029127 0.000322641140046 0)
(-0.00115216758729 0.000328055383059 0)
(-0.00124567779362 0.000353097137007 0)
(-0.00137464059081 0.000400342722883 0)
(-0.0014612723549 0.0004329939852 0)
(-0.0015772039232 0.000481722248229 0)
(-0.00171862089214 0.000555754752473 0)
(-0.00188260536676 0.000638940777442 0)
(-0.00198254718319 0.000691927653314 0)
(-0.002138471523 0.000771322686451 0)
(-0.00230075391141 0.000870270569806 0)
(-0.0024511681601 0.00097365307393 0)
(-0.00260982344385 0.00109050684386 0)
(-0.0027955267221 0.00122501725779 0)
(-0.00297852334937 0.00136829136366 0)
(-0.00319632393441 0.00153874982434 0)
(-0.00343037185771 0.00173732055324 0)
(-0.00364000636722 0.00194922285257 0)
(-0.00382441006836 0.00217083557024 0)
(-0.00403648250372 0.00244077592487 0)
(-0.00426356143021 0.00276582019341 0)
(-0.00433392957944 0.00306599582254 0)
(-0.00428154670933 0.00345224088832 0)
(-0.00427234231148 0.00384199630503 0)
(-0.00045528308163 0.00485506283268 0)
(-0.0128963972429 0.0195434663756 0)
(0.0705982962995 0.32527631657 0)
(0.0801873204161 0.407850654862 0)
(-0.0513762365791 0.258137189518 0)
(0.0710790262291 0.206639427839 0)
(0.0345886641369 0.226303141258 0)
(0.0560303872414 0.244213018885 0)
(0.0658734217985 0.268690993001 0)
(0.0771246430978 0.289615041681 0)
(0.0890108161621 0.307268313687 -1.8750783425e-29)
(0.0996905416163 0.321250711958 -3.18561063256e-29)
(0.109988761051 0.331547472394 1.42010252026e-29)
(0.11955397279 0.338695289521 0)
(0.128478601272 0.343159854569 0)
(0.136823496143 0.345467171747 0)
(0.144625359832 0.346059039105 0)
(0.151938666369 0.345291852264 0)
(0.15878345291 0.343429516613 0)
(0.165163303506 0.340649132634 0)
(0.171052649817 0.337053284793 0)
(0.17639743005 0.332679677409 0)
(0.181109982515 0.32750890537 0)
(0.185062704601 0.321466495856 0)
(0.188080089596 0.31442171603 0)
(0.189932287493 0.306189010633 0)
(0.190334716787 0.296538273539 0)
(0.188957771172 0.285215931868 0)
(0.185450058189 0.271975348529 0)
(0.179476857816 0.256613407474 0)
(0.170770181793 0.239007252665 0)
(0.159178817686 0.219141739735 0)
(0.144713347692 0.197124409139 0)
(0.127604713253 0.173194979767 0)
(0.108344804246 0.147682457142 0)
(0.0875131132065 0.120745090965 0)
(0.0653081795013 0.0921176026585 0)
(0.0420216354721 0.06186065027 0)
(0.0186434865992 0.0329969000342 0)
(0.000123335266288 0.000206317694207 0)
(0.000320736699862 2.88228750667e-05 0)
(5.7433896391e-05 0.000306806246951 0)
(-3.11019133308e-05 8.00487274293e-05 0)
(-9.415356233e-05 8.20727997191e-05 0)
(-0.000157295952323 8.2381148499e-05 0)
(-0.000221215849647 8.2457888205e-05 0)
(-0.000286371448435 8.19475472332e-05 -6.444967237e-29)
(-0.000346217779275 7.88583164966e-05 0)
(-0.000405523214952 7.89899312459e-05 0)
(-0.000489261674133 9.22249362417e-05 0)
(-0.000571954594352 0.000110363355819 0)
(-0.000656621548988 0.000127870971157 0)
(-0.000740136944066 0.000145812627059 0)
(-0.000838970002482 0.000170116083091 0)
(-0.000926543498719 0.00019076277045 0)
(-0.00102837546837 0.000212695387269 0)
(-0.00112942853681 0.000234057187289 0)
(-0.00123252081724 0.000248584191162 0)
(-0.00130006870572 0.000254940990646 0)
(-0.00140864241596 0.000280743733781 0)
(-0.00154943627498 0.00032566802103 0)
(-0.00165296768729 0.000361826934127 0)
(-0.00178609227947 0.000411436531219 0)
(-0.00193875235881 0.000480751323264 0)
(-0.00212127528603 0.000560266904462 0)
(-0.00224956511165 0.000621796094466 0)
(-0.00241311575374 0.000703771828421 0)
(-0.00259417274985 0.000807794200667 0)
(-0.00278208329019 0.000916031555131 0)
(-0.00299116241971 0.00103587820657 0)
(-0.00319412075046 0.00116743076933 0)
(-0.00344282004771 0.00133341001462 0)
(-0.00362245996529 0.00149569944467 0)
(-0.00388035683488 0.00169544943364 0)
(-0.00415885562166 0.00192525771302 0)
(-0.00447965936446 0.00220295052436 0)
(-0.00476717180068 0.00252182198788 0)
(-0.00508859294259 0.00291303632027 0)
(-0.0053638195975 0.00335987172567 0)
(-0.00660849303155 0.00394172126606 0)
(0.000212842392241 0.0040250223896 0)
(-0.131743532277 0.0378851877199 0)
(0.0778885982269 0.341670492805 0)
(0.0335431742675 0.418215838943 0)
(-0.0484523550895 0.260388074785 0)
(0.0653548598614 0.217242011713 0)
(0.0286957809897 0.237419139897 0)
(0.0535294676776 0.256100905235 0)
(0.0621368867761 0.280854433629 0)
(0.0741302239261 0.301305067723 0)
(0.085782309624 0.318493295687 1.85578190208e-29)
(0.0963315902387 0.331784124774 0)
(0.106436299176 0.341382089632 0)
(0.115757678281 0.347846950427 0)
(0.124437770518 0.351678826664 0)
(0.132522182115 0.353412921902 0)
(0.140054289152 0.35348124896 0)
(0.147080180777 0.352223200335 0)
(0.153610853691 0.349878779697 0)
(0.159637397637 0.34659807986 0)
(0.16511835639 0.342453536317 0)
(0.169980087598 0.337449113585 0)
(0.174110428943 0.331526757166 0)
(0.177351679287 0.324566743415 0)
(0.179493370453 0.316386469006 0)
(0.180269924401 0.306746547097 0)
(0.179368747974 0.295371411055 0)
(0.176452224523 0.281984244706 0)
(0.171194599789 0.266351108834 0)
(0.163333760322 0.24832874422 0)
(0.152734987011 0.22790827815 0)
(0.139448374835 0.205237988575 0)
(0.123729825543 0.180612371631 0)
(0.106053400421 0.154466305755 0)
(0.0872111256144 0.127417556062 0)
(0.0681989414988 0.100095950887 0)
(0.0487459156638 0.0724301058782 0)
(0.0268893215797 0.0436057439112 0)
(0.000407171559412 5.22806891074e-05 0)
(-0.00200204068005 -0.000561397404259 0)
(-0.000545336764541 0.00012492691982 0)
(-0.000153127642578 0.000370444589223 0)
(-3.07840464607e-05 1.77487315528e-05 0)
(-9.56282062523e-05 1.85317942842e-05 0)
(-0.000160843321329 1.82760480872e-05 -6.76506819658e-29)
(-0.000226694920943 1.79486094349e-05 0)
(-0.000294483507504 1.75177565568e-05 6.61776744419e-29)
(-0.00036150940561 1.53903976045e-05 0)
(-0.000424696874878 1.06858355284e-05 0)
(-0.000496831595552 1.3773442409e-05 0)
(-0.000583242760834 2.72062969638e-05 0)
(-0.000669085952232 4.20951064428e-05 0)
(-0.000758516024675 5.67845644676e-05 0)
(-0.000848141987822 7.41776355662e-05 0)
(-0.000959828784341 9.54436095616e-05 0)
(-0.00104833487782 0.00011169853812 0)
(-0.00116751886938 0.0001328865227 0)
(-0.00125606792584 0.000150086260719 0)
(-0.00136939946655 0.000161830986794 0)
(-0.00145887854798 0.000169409591142 0)
(-0.00157903959139 0.000193545698332 0)
(-0.00173119955765 0.000233361712399 0)
(-0.00186281015253 0.000275836146512 0)
(-0.00200602798038 0.000323892646457 0)
(-0.0021695092628 0.000386030194063 0)
(-0.00236222655864 0.000465142631515 0)
(-0.00251801088126 0.000533677934724 0)
(-0.00269672733471 0.000614159000814 0)
(-0.00293114745188 0.000717934873345 0)
(-0.00311445074399 0.000819401390111 0)
(-0.00336168325371 0.000952512241345 0)
(-0.00354322288971 0.00108354448172 0)
(-0.00384607899665 0.00123966547941 0)
(-0.00416958061313 0.00141000354508 0)
(-0.00452013117666 0.00162255780991 0)
(-0.00487564989146 0.00188589650923 0)
(-0.00521035503735 0.00221786155491 0)
(-0.00546595441438 0.0026425033521 0)
(-0.00542628521614 0.0032545747481 0)
(-0.00460366560167 0.00451339332175 0)
(0.00203073023023 0.00494366624958 0)
(-0.0102954507025 0.00674537247151 0)
(0.103944853607 0.369311427354 0)
(-0.00608628684174 0.427340204529 0)
(-0.0424468952817 0.266111935744 0)
(0.0597124093995 0.229385169676 0)
(0.0238835485717 0.249325414851 -3.42034964017e-29)
(0.0511912327892 0.268504035403 0)
(0.0586226739428 0.293157234271 0)
(0.071270412943 0.313002007091 0)
(0.0825840886543 0.329601694873 0)
(0.0929989348911 0.342128617873 0)
(0.102877918757 0.35099232967 0)
(0.111948603364 0.356753614881 0)
(0.120378083039 0.359942411436 0)
(0.128198393372 0.361093071821 0)
(0.135457023817 0.360623138389 0)
(0.142189590468 0.358850840789 0)
(0.148396811599 0.355989053683 0)
(0.154055507624 0.352157664657 0)
(0.159106486027 0.347395299825 0)
(0.163454431227 0.341667949824 0)
(0.166960806511 0.334874468338 0)
(0.169437126187 0.326846200663 0)
(0.170640428243 0.317348056938 0)
(0.170277867774 0.306093211365 0)
(0.168026589422 0.292778466191 0)
(0.163570786436 0.277135891559 0)
(0.156651585825 0.258990141988 0)
(0.147123434691 0.238313759322 0)
(0.135015067904 0.215277902746 0)
(0.120579294404 0.190279918258 0)
(0.10426561664 0.163891247153 0)
(0.0865862692258 0.136689752334 0)
(0.0681470460844 0.109140666852 0)
(0.0499389982159 0.0816931433438 0)
(0.0310126402006 0.0534801725183 0)
(0.00272348502802 0.00246661151961 0)
(-0.00196379019594 0.00191286604732 0)
(-0.00134748580267 0.000760166262558 0)
(-0.00070733995272 0.000759365349705 0)
(-0.000210300815987 0.000762610324796 0)
(-3.03983906569e-05 -4.44423379051e-05 0)
(-9.65834658325e-05 -4.66045961437e-05 0)
(-0.000162766844134 -4.76708876968e-05 6.8710663332e-29)
(-0.000230630694043 -4.88228314216e-05 0)
(-0.000299660668546 -5.01200513008e-05 0)
(-0.000370298306731 -5.24703529158e-05 0)
(-0.000439052827117 -5.79750753839e-05 0)
(-0.000503349023495 -6.17070897028e-05 0)
(-0.000590595826111 -5.72406026951e-05 0)
(-0.000679715178903 -4.61379206045e-05 0)
(-0.000771670106681 -3.45719819409e-05 0)
(-0.000866749031116 -2.29923357046e-05 0)
(-0.000965435680396 -8.13591627746e-06 0)
(-0.00108584502966 7.6881709228e-06 0)
(-0.00117650257694 2.48987311049e-05 0)
(-0.00131334311177 4.49517764307e-05 0)
(-0.00140687337092 5.30755968151e-05 0)
(-0.00153977182624 6.07165574517e-05 0)
(-0.00163799363921 7.26452818288e-05 0)
(-0.00177290121762 9.024609922e-05 0)
(-0.00191736868545 0.000123890770983 0)
(-0.00210979121334 0.000175054830488 0)
(-0.00223330551397 0.000222643412762 0)
(-0.00241629282205 0.000284184740766 0)
(-0.00260241196565 0.000353124801448 0)
(-0.00279351006258 0.000419718479669 0)
(-0.00299659894273 0.000503279892051 0)
(-0.00322611246392 0.00060851003543 0)
(-0.00341449620647 0.000709573028883 0)
(-0.0037160176257 0.000815529333601 0)
(-0.00407505323 0.000933385274666 0)
(-0.00436981132259 0.00106821045744 0)
(-0.00474288962869 0.00124330396415 0)
(-0.0051638015875 0.00147121029031 0)
(-0.00564936407868 0.00177529866175 0)
(-0.00624912900427 0.00223165664314 0)
(-0.0071629535691 0.0030362747467 0)
(-0.00686867858235 0.00444213302794 0)
(-0.000181233970226 -0.00263182612792 0)
(-0.255778789765 0.0569545282032 0)
(0.0870266115063 0.361645962789 0)
(-0.041124471356 0.44187483379 0)
(-0.0410209716387 0.275796691897 0)
(0.0546491281414 0.242322582766 0)
(0.020354605139 0.261709954286 3.35310808865e-29)
(0.0492155409019 0.28118861379 0)
(0.0554902977167 0.305465648834 0)
(0.0686335286154 0.324616663958 0)
(0.0795001174667 0.340533160669 0)
(0.0897520831748 0.352250062334 0)
(0.09936191345 0.360357954858 0)
(0.108167653403 0.365404045555 0)
(0.116334369925 0.367943795974 0)
(0.123883187122 0.368502166196 0)
(0.130861624944 0.367478451757 0)
(0.137292712301 0.365165915994 0)
(0.143165221783 0.361747197846 0)
(0.148439736679 0.357308653772 0)
(0.153037439612 0.351851337454 0)
(0.156839532496 0.345299245614 0)
(0.159680078824 0.337504678232 0)
(0.161340942348 0.328248604977 0)
(0.161552365669 0.317247032433 0)
(0.160007120478 0.30417875426 0)
(0.156393811975 0.288739588174 0)
(0.150448160492 0.270712273293 0)
(0.142009782114 0.250032346786 0)
(0.131065605359 0.22683469078 0)
(0.117782726517 0.201479684468 0)
(0.102565503248 0.174554154897 0)
(0.086120485188 0.146759452398 0)
(0.0693127910791 0.118535768418 0)
(0.052602928661 0.0897187686221 0)
(0.035524676 0.0606822106562 0)
(0.0158961674394 0.034688462206 0)
(-0.000586937608041 0.00180074009008 0)
(-0.00109583091313 0.00153378500979 0)
(-0.0010655238918 0.00127086607047 0)
(-0.000665841123766 0.00124445616336 0)
(-0.000214786495671 0.00123002327173 0)
(-3.07440549989e-05 -0.000107157629867 0)
(-9.7029055562e-05 -0.000112064867608 0)
(-0.000163508965365 -0.000114689176443 0)
(-0.000231724455803 -0.00011710517008 0)
(-0.000302391389707 -0.000119996675041 0)
(-0.00037389026142 -0.0001236603695 0)
(-0.00045279706042 -0.000130213642698 0)
(-0.000516418840752 -0.000135118029512 0)
(-0.000591707298014 -0.000139537599753 0)
(-0.000685886515017 -0.000136702791019 0)
(-0.000780675492196 -0.000128998365027 0)
(-0.000879252154441 -0.000120982665138 0)
(-0.000979281889559 -0.000112483254111 0)
(-0.00109182280293 -9.9923071947e-05 0)
(-0.00119745621841 -8.83162219402e-05 0)
(-0.0013202194331 -7.80045686436e-05 0)
(-0.00147209208789 -6.80139027664e-05 0)
(-0.00157055325343 -5.98005054925e-05 0)
(-0.00170952784533 -5.19780335996e-05 0)
(-0.00185968485242 -4.41143065236e-05 0)
(-0.001964792649 -2.74456462295e-05 0)
(-0.00213657693591 1.08290186758e-05 0)
(-0.00231427824576 6.20211670266e-05 0)
(-0.0024751468841 0.00010914441785 0)
(-0.00266189213075 0.00016070086303 0)
(-0.00287051845938 0.000221654646778 0)
(-0.00307450772513 0.000296773381987 0)
(-0.00327930787939 0.000376913148847 0)
(-0.00355543811556 0.000446668547631 0)
(-0.00390372210598 0.00051739447499 0)
(-0.00414801228665 0.000604192969659 0)
(-0.00451042757835 0.000712127784705 0)
(-0.00492851257397 0.0008261296198 0)
(-0.0054438198417 0.000959405732378 0)
(-0.00612466915015 0.00112356639683 0)
(-0.00712468271809 0.00131672636219 0)
(-0.00867891781791 0.00162195340318 0)
(-0.0082231048542 0.00182578497174 0)
(0.00533485298688 -0.154574844701 0)
(-0.281111930459 0.013157422692 0)
(0.111073378289 0.407578008594 0)
(-0.0741658974006 0.476818825477 -8.51451297603e-30)
(-0.0354659421405 0.28818212259 0)
(0.0518306593112 0.255800571903 0)
(0.0180333808805 0.274385523632 0)
(0.047725935044 0.293898554108 0)
(0.0528280621977 0.317611903867 0)
(0.0662673743307 0.336032351641 0)
(0.0765824822258 0.351211005806 0)
(0.0866273910223 0.362102587343 0)
(0.0959208893357 0.369450681378 0)
(0.104444027894 0.373781461942 0)
(0.112332983591 0.375672215272 0)
(0.119601281588 0.375631922276 0)
(0.126291391078 0.37403882986 0)
(0.132411850124 0.371157922289 0)
(0.137937613236 0.367138726784 0)
(0.142811181395 0.362030828506 0)
(0.146932642733 0.355794263177 0)
(0.150158891631 0.348308027082 0)
(0.152297426997 0.339376783371 0)
(0.153104696944 0.328734218329 0)
(0.152294265669 0.316058562566 0)
(0.149562263449 0.30101773385 0)
(0.144633802044 0.283343745548 0)
(0.137327916342 0.26291587145 0)
(0.127624760419 0.239822831231 0)
(0.115704545091 0.214379225862 0)
(0.10195219966 0.187111950539 0)
(0.0870143323866 0.158789818372 0)
(0.071999160987 0.130474202513 0)
(0.0583117785473 0.103211208149 0)
(0.0455750132997 0.0767943259504 0)
(0.0284588627994 0.0492749691875 0)
(-6.94969761446e-05 0.00118373203426 0)
(-0.00227640089285 0.00116987904286 0)
(-0.00141313857771 0.00157173791237 0)
(-0.0010750442007 0.00166570208186 0)
(-0.000637759542512 0.00168869175416 0)
(-0.000197343694346 0.00164334713625 0)
(-3.09283981901e-05 -0.000171344251223 0)
(-9.64253787187e-05 -0.000176560825462 0)
(-0.000162481645114 -0.00018149664791 0)
(-0.000230100590882 -0.000185535764784 0)
(-0.00030025407665 -0.000190517241784 0)
(-0.000374112117165 -0.000196983809175 0)
(-0.000447415249775 -0.000202681620972 0)
(-0.000530102249688 -0.000212500479507 0)
(-0.000597948945862 -0.000219092944836 0)
(-0.000686239815012 -0.000227042834304 0)
(-0.000785707649613 -0.00022617634087 0)
(-0.000886596130325 -0.000221740892838 0)
(-0.000992288660686 -0.000217516640898 0)
(-0.00109862445709 -0.00021075121753 0)
(-0.0012277531925 -0.000206878308413 0)
(-0.00133501999589 -0.000203461463823 0)
(-0.00147623722393 -0.000197139722431 0)
(-0.00160073754197 -0.000188264855838 0)
(-0.00174023875117 -0.000188335045913 0)
(-0.00188046114081 -0.000181771300682 0)
(-0.00203989936431 -0.000173515710504 0)
(-0.00217223037332 -0.000147714278565 0)
(-0.00234977863851 -0.000108320298431 0)
(-0.00252097360493 -6.85599750373e-05 0)
(-0.00272545040076 -3.08774335926e-05 0)
(-0.00290329858182 1.59735212263e-05 0)
(-0.00313425540348 7.68183244695e-05 0)
(-0.00336454887056 0.000127380467604 0)
(-0.00367402911507 0.000169820394523 0)
(-0.00388688404935 0.000228873896485 0)
(-0.00420353514438 0.00029329618201 0)
(-0.00454127537642 0.000335519790459 0)
(-0.00496260922547 0.000356905295348 0)
(-0.00550752266999 0.000340448311434 0)
(-0.00623613722906 0.000235541194507 0)
(-0.00751813886019 -6.96612748004e-05 0)
(-0.00912759669331 -0.000848421800677 0)
(-0.0101590398416 -0.00422813445066 0)
(-0.00288169843475 -0.116887726563 0)
(-0.0813876421243 -0.0105904939415 0)
(0.159010743874 0.480124552198 0)
(-0.0950522712241 0.503722304606 7.96717472604e-30)
(-0.0175354423369 0.297210320314 0)
(0.0511040051384 0.269304595352 0)
(0.0171740182304 0.286891656448 0)
(0.0468971138514 0.306312674912 0)
(0.0506576107323 0.329408987524 -1.03636137777e-29)
(0.0641713403927 0.347121876604 1.02322164476e-29)
(0.0738447417097 0.361554661588 0)
(0.0836348546384 0.37163752522 0)
(0.0925697128612 0.378240458777 0)
(0.100794206051 0.381867771126 0)
(0.10839132323 0.383115857357 0)
(0.115370892757 0.382473275122 0)
(0.121764916206 0.380295347451 0)
(0.127565993287 0.376816020762 0)
(0.132733388615 0.372149160833 0)
(0.137189936309 0.366304656674 0)
(0.140813534193 0.359198756845 0)
(0.143436520514 0.350663843796 0)
(0.14484149117 0.340458290849 0)
(0.144765023108 0.328274953429 0)
(0.142916331689 0.31376915822 0)
(0.139016499707 0.296623792533 0)
(0.132859596256 0.276642713466 0)
(0.12439211801 0.25384473683 0)
(0.113792900124 0.228524595871 0)
(0.101491303869 0.201250727939 0)
(0.0880367610222 0.172813740307 0)
(0.0739048770733 0.144221951448 0)
(0.0596847942462 0.116592137178 0)
(0.0466097221148 0.090293987117 0)
(0.0334776913216 0.0629104704886 0)
(0.00190607693981 0.00283070691383 0)
(-0.00178856989981 0.00255157038303 0)
(-0.00150282265675 0.00191097941571 0)
(-0.0011666432474 0.00194303312401 0)
(-0.000874019601753 0.0020295058781 0)
(-0.000537586854296 0.00210408466355 0)
(-0.0001637343001 0.00205749135233 0)
(-2.97063367833e-05 -0.000234519169166 0)
(-9.45473186058e-05 -0.000240844446147 0)
(-0.000159600938264 -0.000247104183001 0)
(-0.000226899970709 -0.000253545261423 0)
(-0.000296408964501 -0.000260715322682 0)
(-0.000369450708618 -0.000269635504666 0)
(-0.00044743463689 -0.000280306395729 0)
(-0.000522915284436 -0.000288660962515 0)
(-0.00061263751064 -0.000304263639277 0)
(-0.000684417218294 -0.000312580619732 0)
(-0.000781141193547 -0.000323068030835 0)
(-0.000886875303897 -0.000325745278772 0)
(-0.000995307319745 -0.000326305619318 0)
(-0.00110917727669 -0.000327243374158 0)
(-0.00122734431527 -0.000326827260571 0)
(-0.00136574940987 -0.00032939605325 0)
(-0.00147321222391 -0.000325195699399 0)
(-0.0016313641109 -0.000329003342145 0)
(-0.00175908165525 -0.000329033484958 0)
(-0.00193279812093 -0.000333301912002 0)
(-0.00205532127086 -0.000318624566126 0)
(-0.00220521095411 -0.000302401959873 0)
(-0.00237618822407 -0.000279259557571 0)
(-0.00256437661635 -0.000253455465967 0)
(-0.00275485948602 -0.000223733068296 0)
(-0.00295555126031 -0.000187118609637 0)
(-0.00313581024576 -0.000150607241349 0)
(-0.00341111761789 -0.000119135121309 0)
(-0.00360350170204 -7.55134517325e-05 0)
(-0.00387853890391 -3.68667216526e-05 0)
(-0.00414296260497 -2.17639587568e-05 0)
(-0.00449516692155 -3.73433166295e-05 0)
(-0.00489702898997 -0.00010552860061 0)
(-0.00538649503325 -0.000268773836094 0)
(-0.00602505637285 -0.000629420819536 -1.7747083237e-29)
(-0.00688048840626 -0.00134676000558 1.80908411433e-29)
(-0.00779636742487 -0.0027674751565 0)
(-0.00703145068333 -0.00637916530174 -1.69109388178e-29)
(0.0117644808585 -0.11055511889 0)
(-0.0303796737144 -0.00500270500513 0)
(0.174377740354 0.501994174765 0)
(-0.109522928259 0.502972129112 0)
(0.00288122737138 0.29956671679 0)
(0.0496403717903 0.281159780124 0)
(0.0176000117829 0.298220567555 0)
(0.0465680625712 0.318027842963 0)
(0.0488708302658 0.340658246606 0)
(0.062286444251 0.357764877366 0)
(0.0712605079454 0.371493981975 0)
(0.0807592008311 0.380813519832 0)
(0.0893064422587 0.386702281792 0)
(0.0972228737773 0.389648083589 0)
(0.104518573319 0.390264939924 0)
(0.111204319073 0.38901853514 0)
(0.117296581607 0.386240123913 0)
(0.122771272179 0.382130351792 0)
(0.127570377633 0.376765215971 0)
(0.131596086923 0.370112452141 0)
(0.134703994188 0.362042747877 0)
(0.136703407066 0.352342279263 0)
(0.137357111294 0.340728304219 0)
(0.136393603543 0.326866247294 0)
(0.133539789938 0.310415837263 0)
(0.128574913215 0.291121395981 0)
(0.121399281989 0.268926215392 0)
(0.112110521067 0.24407117236 0)
(0.101072563594 0.217136723662 0)
(0.0889000668563 0.188964404521 0)
(0.0762059056512 0.160378251592 0)
(0.0633191206081 0.131756771864 0)
(0.0507321896561 0.102796441008 0)
(0.0385563887972 0.0734409149068 0)
(0.0211720823814 0.0484624730824 0)
(-0.000502646131248 0.00233855392476 0)
(-0.000834556692015 0.0021535262622 0)
(-0.00102089463308 0.00211028742805 0)
(-0.000861937878079 0.00218530124706 0)
(-0.000644406010147 0.00229742183982 0)
(-0.000409621932818 0.00237311611993 0)
(-0.000129881407002 0.00229470664442 0)
(-2.77276592716e-05 -0.000294432677595 0)
(-9.17826737548e-05 -0.000305310541871 0)
(-0.000155869877568 -0.000311710771817 0)
(-0.000223298692897 -0.000320907613163 0)
(-0.000292807581442 -0.000330799787303 0)
(-0.000365719809592 -0.000342958591365 0)
(-0.000443694412591 -0.000357392032003 0)
(-0.000525286907669 -0.00037236101276 0)
(-0.000604825046743 -0.000384277930655 0)
(-0.000696807266392 -0.000402659431726 0)
(-0.000768449208878 -0.00041114631102 0)
(-0.000874894173867 -0.000428255137571 0)
(-0.000986886070237 -0.00043872286069 0)
(-0.00110324911004 -0.000444965910816 0)
(-0.00122549982809 -0.000451491202007 0)
(-0.00135102584374 -0.000455150200802 0)
(-0.00149968383088 -0.000464397585512 0)
(-0.00161805164832 -0.000466762384754 0)
(-0.00178533365606 -0.000479800453108 0)
(-0.00191145684073 -0.000473920098299 0)
(-0.00208048384148 -0.000471225950154 0)
(-0.00221821009948 -0.000460308607942 0)
(-0.00239212201164 -0.000452815147149 0)
(-0.00257842629781 -0.000436747095518 0)
(-0.00276053685632 -0.0004111481924 0)
(-0.00293247826338 -0.00038265063285 0)
(-0.00315119928593 -0.000362339687495 0)
(-0.00332931186053 -0.000331674873685 0)
(-0.0035686542252 -0.000306750470438 0)
(-0.00379310215137 -0.000297245267106 0)
(-0.00407498662005 -0.000315343791053 0)
(-0.00434871600745 -0.000372561281333 0)
(-0.0046740915481 -0.000504773444372 0)
(-0.00503421346116 -0.000754539063095 0)
(-0.00544776732407 -0.00119495280855 0)
(-0.00576906243227 -0.00190081385408 -1.77578062916e-29)
(-0.00596949281805 -0.00306445363516 0)
(-0.00485218878194 -0.00556154717771 1.52480149056e-29)
(0.018365599598 -0.0816052089346 0)
(-0.0276922257504 -0.00193317136919 0)
(0.177676190987 0.497983082106 0)
(-0.123212417345 0.489213922992 0)
(0.0186201518727 0.298671824483 0)
(0.0454835651013 0.290808290705 0)
(0.018397172153 0.307898527302 0)
(0.0461179645291 0.328838414687 8.32862472368e-30)
(0.0472143999796 0.351228194559 -8.23385916642e-30)
(0.0604869521469 0.367883233277 0)
(0.068766475896 0.380986650791 0)
(0.0779651050162 0.389606584414 0)
(0.0861162283698 0.394822386997 0)
(0.093725747753 0.397114667217 0)
(0.100717605869 0.397114369077 0)
(0.107109257777 0.395263277301 0)
(0.112897538663 0.391867806918 0)
(0.118041803752 0.387093413752 0)
(0.122465682578 0.380976418563 0)
(0.126050483891 0.373440758625 0)
(0.128630207672 0.364311448277 0)
(0.129993379344 0.353331907657 0)
(0.129888244194 0.340188241668 0)
(0.128045224148 0.32453806951 0)
(0.124224625833 0.306077365594 0)
(0.118282712915 0.284651324571 0)
(0.110246762759 0.26036971749 0)
(0.100396905691 0.233679354964 0)
(0.0893797219356 0.205352197322 0)
(0.0783458859396 0.176333794544 0)
(0.0688802963852 0.147269339596 0)
(0.0623011262119 0.11778819091 0)
(0.0575625061479 0.0883582650077 0)
(0.0430109808888 0.0664451926469 0)
(-0.00020179666925 0.00167411710405 0)
(-0.00200759074678 0.00164723193794 0)
(-0.00120307221521 0.00213117837243 0)
(-0.000926293592739 0.00227992110915 0)
(-0.000683513292367 0.00239991486021 0)
(-0.000477304295422 0.0025066781172 0)
(-0.000299462218693 0.00257661071534 0)
(-9.67873580281e-05 0.0026195944291 0)
(-2.62919899176e-05 -0.000348791131818 0)
(-8.94147986218e-05 -0.000366742881439 0)
(-0.00015378172896 -0.000375339999296 0)
(-0.000221593932551 -0.000387132559813 0)
(-0.000291443745233 -0.000400829370758 0)
(-0.000363981253504 -0.000416335815677 0)
(-0.000439751691466 -0.00043409947305 0)
(-0.000523233400484 -0.000454430838754 0)
(-0.000600129855987 -0.000467497486134 0)
(-0.000693030799943 -0.000488752315915 0)
(-0.000778327859466 -0.00050589199968 0)
(-0.000858335221975 -0.000521001793669 0)
(-0.000964392860172 -0.000545595577957 0)
(-0.00108329271051 -0.000563072768904 0)
(-0.00120843625981 -0.000576993605647 0)
(-0.00133821233674 -0.000588813073146 0)
(-0.0014696414713 -0.000597258475195 0)
(-0.00162504048462 -0.000613731872493 0)
(-0.00174776426002 -0.000616853665131 0)
(-0.00191649936395 -0.000629231203479 0)
(-0.0020543813851 -0.00062409614517 0)
(-0.00222005701045 -0.000625501805842 0)
(-0.00238687553448 -0.000622591688075 0)
(-0.00254741759074 -0.000607524791163 0)
(-0.00273025445584 -0.00059093802209 0)
(-0.00291328305437 -0.0005713705729 0)
(-0.00307558065289 -0.000548247768297 0)
(-0.00328632753883 -0.000535062152754 0)
(-0.00347699933725 -0.000524074506573 0)
(-0.00371217887998 -0.000534507838029 0)
(-0.00391025694877 -0.000564761771697 0)
(-0.00416680592474 -0.000648549340271 0)
(-0.00442170483729 -0.000805272786417 0)
(-0.00464572932036 -0.00105360491841 0)
(-0.00478691353397 -0.0014174702768 0)
(-0.00477556693359 -0.0019742536983 1.71257297693e-29)
(-0.00472318781953 -0.00290044851345 0)
(-0.00351282042913 -0.00459310965989 0)
(0.0179601779805 -0.0618822283429 0)
(-0.0283205346438 0.000821480182954 0)
(0.175753236415 0.49542572804 0)
(-0.136379380002 0.476819020817 0)
(0.0302662827634 0.298950664889 0)
(0.0392421857855 0.299462784952 0)
(0.0190223906158 0.316532586985 0)
(0.0450606507128 0.338943694773 0)
(0.0454671945586 0.361158776409 0)
(0.0586326608345 0.377485935517 0)
(0.066286835312 0.390035676439 0)
(0.0752096554594 0.398018268146 0)
(0.0829783671746 0.402602544165 0)
(0.0902939922382 0.404269504693 0)
(0.0969877415892 0.403665473149 0)
(0.103090568801 0.401207652658 0)
(0.108576815579 0.39717671092 0)
(0.113390279955 0.391701171045 0)
(0.117435700628 0.384776209697 0)
(0.120574004343 0.376281135141 0)
(0.122619289476 0.365996732249 0)
(0.123343287293 0.353629591 0)
(0.122489551869 0.338848154466 0)
(0.119811999651 0.321327055146 0)
(0.115146955837 0.30084086307 0)
(0.108505376715 0.277398395569 0)
(0.100165912467 0.251368177642 0)
(0.0907655842649 0.22356504147 0)
(0.0814257248121 0.195265147665 0)
(0.0739792220175 0.168032024221 0)
(0.0707496293425 0.143122707476 0)
(0.070341805032 0.120109687721 0)
(0.0554386339274 0.0953674966791 0)
(0.00188096881469 0.00370531636411 0)
(-0.0019836744557 0.00318309199866 0)
(-0.00141805429694 0.00250540235735 0)
(-0.00101205200144 0.00251956496376 0)
(-0.000719511069024 0.00255789570815 0)
(-0.000491898046642 0.00262536917569 0)
(-0.00033059089052 0.00269737455496 0)
(-0.000195903997878 0.00275083073021 -1.32237257793e-29)
(-5.10172212601e-05 0.00275113084555 0)
(-2.57852035026e-05 -0.000404320448531 0)
(-9.05160903743e-05 -0.00042669439729 0)
(-0.000157558500444 -0.000441446681144 0)
(-0.000224670995177 -0.000454280871544 0)
(-0.000293311332089 -0.000470519579725 0)
(-0.000363909730227 -0.00048907715232 0)
(-0.000436978383428 -0.000509880373629 0)
(-0.000514818928371 -0.000533011171864 0)
(-0.00059917595977 -0.000556271764561 0)
(-0.000678293676848 -0.000572617483416 0)
(-0.000775953265693 -0.000598268444766 0)
(-0.000854799393402 -0.000612762305609 0)
(-0.000948029934256 -0.000641413929542 0)
(-0.00105796305782 -0.00067482562185 0)
(-0.00117914383557 -0.000699657220307 0)
(-0.00130972552741 -0.000720265981905 0)
(-0.00144125494521 -0.000735236288902 0)
(-0.00157701346915 -0.000749184958762 0)
(-0.00173499896342 -0.000768573568845 0)
(-0.00186454406702 -0.000771948205128 0)
(-0.0020310986506 -0.00078361190326 0)
(-0.00217540219877 -0.00078227549697 0)
(-0.00233551143456 -0.000780197757345 0)
(-0.00250079907418 -0.000772982381904 0)
(-0.00267565195316 -0.00076356657492 0)
(-0.0028380049178 -0.000745680501841 0)
(-0.00303899095564 -0.000736876113203 0)
(-0.00319459254898 -0.000721119166367 0)
(-0.00340606101678 -0.000725920036258 0)
(-0.00357887698739 -0.000737230190969 0)
(-0.00379172820977 -0.000781159085799 0)
(-0.00395467894438 -0.000857534843697 0)
(-0.0041309959839 -0.000993317937395 0)
(-0.00419880430269 -0.00116791545497 0)
(-0.00418222398714 -0.00143727999432 0)
(-0.00413459213848 -0.0018930866068 0)
(-0.00380906548145 -0.00241232329557 0)
(-0.00238377132665 -0.0030613966141 0)
(0.0146039190439 -0.0437327895888 0)
(-0.0299532471533 0.00295665298734 0)
(0.170737528972 0.497389103245 0)
(-0.148404664762 0.468453637987 0)
(0.0398997819154 0.30153288994 0)
(0.0322216559459 0.308168238795 0)
(0.0195076926181 0.324937079405 0)
(0.0433504520705 0.348701543273 0)
(0.0435796453014 0.370619982921 0)
(0.0566446099065 0.386661649059 0)
(0.0637715905667 0.398688295819 0)
(0.072460156488 0.406075975404 0)
(0.0798755064435 0.410060274216 0)
(0.0869194299933 0.411124527753 0)
(0.0933278128906 0.409926323004 0)
(0.0991521766407 0.406856804715 0)
(0.104342586258 0.402169343337 0)
(0.108829033857 0.395953731061 0)
(0.112497569466 0.388162917669 0)
(0.115190387997 0.378631995447 0)
(0.116705113457 0.367101668238 0)
(0.116803237403 0.353253068751 0)
(0.115237381441 0.336760475629 0)
(0.111807183113 0.317357962965 0)
(0.106454930159 0.294968836296 0)
(0.0993673058232 0.269860668394 0)
(0.0910308996025 0.24273965838 0)
(0.0822236438269 0.21476880474 0)
(0.0740395152584 0.187442089626 0)
(0.0679422316347 0.161833908684 0)
(0.0647511542508 0.137032078556 0)
(0.056432983374 0.107867825383 0)
(0.0084735194938 0.0106253349192 0)
(-0.00108226157958 0.0040363743149 0)
(-0.000961117883154 0.00316562996403 0)
(-0.000897034967206 0.002843847265 0)
(-0.000687364141106 0.00278402128571 0)
(-0.000488366581228 0.00279461483186 0)
(-0.000308528996952 0.00277995330628 0)
(-0.000203522557136 0.0027921554602 0)
(-0.000123581091557 0.0028664337626 1.16724799805e-29)
(-2.21983135069e-05 0.00286477668929 0)
(-2.70334249121e-05 -0.000467379185308 0)
(-9.68724994915e-05 -0.00050507780548 0)
(-0.000162641722998 -0.000512949286163 0)
(-0.000228495946272 -0.000523308197181 0)
(-0.00029458719896 -0.000539515283598 0)
(-0.000361468723712 -0.00055964498035 0)
(-0.000430590129644 -0.000583079171034 0)
(-0.000502243669534 -0.000609192054878 0)
(-0.000583963455517 -0.000639281254357 0)
(-0.000658835041948 -0.000655161213107 0)
(-0.000752824907523 -0.000683675813766 0)
(-0.000849467127512 -0.000716085862956 0)
(-0.000978681525765 -0.000770833709963 0)
(-0.00103140421611 -0.000768024036884 0)
(-0.00115004603464 -0.00080937023355 0)
(-0.00126510190538 -0.000840680115075 0)
(-0.00139656061481 -0.000867700221066 0)
(-0.00153478251383 -0.000892328711596 0)
(-0.00167362691603 -0.000907798814143 0)
(-0.0018311386263 -0.000927657481316 0)
(-0.00196891929837 -0.000932919549666 0)
(-0.00213707675574 -0.000945144253978 0)
(-0.00228162313791 -0.000939451351869 0)
(-0.00243861372849 -0.00093479551917 0)
(-0.00261733020984 -0.000935381422977 0)
(-0.00278435397173 -0.000923584322662 0)
(-0.00293985871379 -0.000905401385391 0)
(-0.00312994807523 -0.000903334186481 0)
(-0.0032900683075 -0.00090115907311 0)
(-0.00348008625549 -0.000919045927376 -2.65030475087e-29)
(-0.00360724348578 -0.000938512754949 0)
(-0.00375804407886 -0.00099697561972 0)
(-0.00383314777934 -0.0010659089987 0)
(-0.00376352914628 -0.00115289185315 0)
(-0.00372282192323 -0.0013549084736 0)
(-0.00348084152233 -0.00158759145397 0)
(-0.00314302533113 -0.00183465601368 0)
(-0.001786223343 -0.00211204713654 1.47050557407e-29)
(0.0106320405175 -0.0311860580835 -1.53068591938e-28)
(-0.0320260084987 0.00416209240415 0)
(0.165445513272 0.500766084497 0)
(-0.159248830773 0.462715032203 0)
(0.0484658148106 0.305621228634 0)
(0.025122927404 0.317048557149 0)
(0.0199695534736 0.333435007767 0)
(0.041152582871 0.358307912673 0)
(0.0416119576507 0.379769047727 0)
(0.0545152250866 0.395514725364 0)
(0.0612116829615 0.407009913266 0)
(0.0697045372001 0.413821963066 0)
(0.0768004031532 0.417223707029 0)
(0.0835986619621 0.417699143219 0)
(0.0897386570924 0.41591058296 0)
(0.0952986279649 0.412220492031 0)
(0.100203118298 0.406852606312 0)
(0.104370429418 0.399856120929 0)
(0.107668519347 0.391141233741 0)
(0.109922911527 0.380500746781 0)
(0.110918137965 0.367642152357 0)
(0.110411187009 0.352236655226 0)
(0.108177327104 0.333992095933 0)
(0.10408385094 0.312742762842 0)
(0.0982132559632 0.288612351176 0)
(0.090998451127 0.262173897537 0)
(0.0832519858329 0.234456360711 0)
(0.0760154204354 0.206813294099 0)
(0.0705172962247 0.180847935619 0)
(0.0677889555497 0.157681542953 0)
(0.0640046696294 0.134443533732 0)
(0.042642073567 0.101522518483 0)
(0.00055103238751 0.00375553814832 0)
(0.000249655948523 0.00316938986997 0)
(-0.000394031159315 0.00304101236144 0)
(-0.000486769924443 0.00294183932033 0)
(-0.000422098594983 0.00292232281891 0)
(-0.000320047666658 0.00291887819735 8.6653441783e-30)
(-0.000206632500824 0.0028774919314 0)
(-0.000124740569569 0.00276362405882 0)
(-9.17523662594e-05 0.00290923897464 0)
(-2.51403314451e-05 0.00279248714542 0)
(-2.95583679855e-05 -0.0005328583698 0)
(-9.93880629358e-05 -0.000570142295127 0)
(-0.000161534738963 -0.000579642379845 0)
(-0.000226143919378 -0.000590172019226 0)
(-0.000288378744707 -0.000605171439465 0)
(-0.000350662995265 -0.000626241035369 0)
(-0.000414874976336 -0.000651775881742 0)
(-0.000482529468535 -0.000681357610681 1.05558556605e-29)
(-0.000554522943269 -0.000713916004792 -1.0361960381e-29)
(-0.000640527892214 -0.000753246461278 0)
(-0.000722540951816 -0.000776932295004 0)
(-0.000812717702692 -0.000806315519809 0)
(-0.000923617221004 -0.000853747195086 0)
(-0.00103274596663 -0.000893305634346 0)
(-0.00113135681495 -0.000926518371252 0)
(-0.00122199124411 -0.000950531240652 0)
(-0.001334639932 -0.000985807751389 0)
(-0.00147737821118 -0.00103133519193 0)
(-0.00160534878177 -0.00105180014504 0)
(-0.00175093472523 -0.00107146409337 0)
(-0.00191270584298 -0.00109361731669 0)
(-0.00205101155721 -0.00109347677768 0)
(-0.00219673301514 -0.00108992947296 0)
(-0.00236114421651 -0.00109559739029 0)
(-0.00253244869305 -0.00109858172276 0)
(-0.00269158484823 -0.00108718662208 0)
(-0.00288163722244 -0.00108368888707 0)
(-0.00302723920992 -0.00106654942919 0)
(-0.0032179596654 -0.00107316214661 0)
(-0.00336318762176 -0.001069037872 2.60780654123e-29)
(-0.00350396905386 -0.00106998421737 0)
(-0.00355963415197 -0.00105917720899 0)
(-0.00354132049906 -0.00105108909225 0)
(-0.00350122778061 -0.00109259635329 0)
(-0.0033676292345 -0.00117501011178 0)
(-0.00308287081578 -0.00127956059246 0)
(-0.00285448901027 -0.00145585505706 0)
(-0.00156888704837 -0.00166998750798 0)
(0.00796501063043 -0.0212957569962 0)
(-0.0341921037735 0.00451105956871 0)
(0.162304498989 0.50416442889 0)
(-0.169374816635 0.458767473782 0)
(0.0562527690793 0.310445374119 0)
(0.0181198455265 0.325879185957 0)
(0.0203916999645 0.341989135916 0)
(0.0386025548589 0.367777835848 0)
(0.0396210300733 0.388685332205 0)
(0.0522673628409 0.404116567534 0)
(0.0586239267037 0.415056845209 0)
(0.0669479813069 0.421298490188 0)
(0.0737564200705 0.42412359677 0)
(0.0803341879319 0.424015979112 0)
(0.0862240505427 0.421635240652 0)
(0.0915356722554 0.417311923181 0)
(0.096166987733 0.41123722696 0)
(0.100026815128 0.403417872768 0)
(0.10296610766 0.393721371383 0)
(0.104796947276 0.381901704482 0)
(0.105296494252 0.367643017621 0)
(0.10422829837 0.350628068225 0)
(0.10141885903 0.33063827546 0)
(0.0968459134343 0.307671855203 0)
(0.0907760971969 0.282142932801 0)
(0.0839169219684 0.255057485861 0)
(0.0773513005408 0.227908189378 0)
(0.0718455580009 0.202062648607 0)
(0.0672182331751 0.177875403887 0)
(0.0634560568944 0.153656832518 0)
(0.0553244756905 0.122464381284 0)
(0.00271999597342 0.00445362465837 0)
(-0.00207868504312 0.00242808226582 0)
(-0.000522889512891 0.00287455649443 0)
(-0.000432144943818 0.0029474883302 0)
(-0.000360649387705 0.00297647657257 0)
(-0.000297929621195 0.00299045016801 7.39268006842e-30)
(-0.000239691765243 0.00299172204273 -8.18519836575e-30)
(-0.00018101478309 0.00298184027013 0)
(-0.00010812127021 0.00283730763827 0)
(-8.1936684604e-05 0.002910608394 0)
(-3.53757881204e-05 0.0029473374412 0)
(-3.23661870153e-05 -0.000592229421069 0)
(-0.000101406188196 -0.000624208323459 0)
(-0.000159275637801 -0.000640268851311 0)
(-0.000217659727271 -0.000650088977368 0)
(-0.000272406057746 -0.000664183747939 0)
(-0.000328497684119 -0.000686606562212 0)
(-0.000387651363972 -0.000715336334985 0)
(-0.000450876403815 -0.000748819303967 0)
(-0.000518984763597 -0.000786979145142 0)
(-0.000594517660474 -0.000829968494847 0)
(-0.000681545133808 -0.000877245310651 0)
(-0.000768424138914 -0.000908679132105 0)
(-0.000848695377518 -0.000930523209544 0)
(-0.000964261648455 -0.000986337776018 0)
(-0.00106997655175 -0.00103024987686 0)
(-0.00117389256762 -0.00106870878126 0)
(-0.00127311781026 -0.00110285431593 0)
(-0.00138874426391 -0.00114409626126 0)
(-0.00150374395634 -0.00117366560757 0)
(-0.00166704558892 -0.00122534970559 0)
(-0.0018073355206 -0.00123882222527 0)
(-0.00195754249196 -0.00124509662096 0)
(-0.0021067622625 -0.00124858455865 0)
(-0.0022727313231 -0.00125908427987 0)
(-0.00245521628381 -0.0012716916381 0)
(-0.00262512011991 -0.00126476198437 -3.59270525411e-29)
(-0.00278177031098 -0.00124583899131 0)
(-0.0029741128213 -0.00124559324887 0)
(-0.00312996588532 -0.00123133028859 0)
(-0.00329615062225 -0.00121097564474 0)
(-0.00333466281604 -0.00113475886539 0)
(-0.00338775632501 -0.00107390572928 0)
(-0.00336768817098 -0.00102402953019 0)
(-0.00330767690385 -0.000989739893356 0)
(-0.00312931815849 -0.000965526726074 0)
(-0.00289924051918 -0.000995612815935 0)
(-0.00254828604231 -0.00104738231438 0)
(-0.00140379253743 -0.00122741869924 0)
(0.00769101534435 -0.0135989113543 0)
(-0.0363266496164 0.00417141098677 0)
(0.162714604782 0.506519278142 -2.37446775547e-29)
(-0.17910004317 0.456180186773 1.76961573268e-29)
(0.0634637392168 0.315516764748 0)
(0.011226957914 0.3345174645 0)
(0.0207039097846 0.350522388902 0)
(0.0357756007869 0.377087552705 0)
(0.0376307467986 0.39740587108 0)
(0.0499272113839 0.412507523576 0)
(0.0560327593629 0.4228689199 0)
(0.0642042592206 0.428539706859 0)
(0.0707537509537 0.430787342271 0)
(0.0771328455419 0.430097013003 0)
(0.0827901405888 0.427118277364 0)
(0.0878701576092 0.422146546785 0)
(0.0922433362525 0.415337469935 0)
(0.0958112746675 0.406653834024 0)
(0.0984094196844 0.395921779271 0)
(0.099840207293 0.382862779388 0)
(0.0998785840227 0.36715243692 0)
(0.0983008628514 0.348514148072 0)
(0.0950024281859 0.326851760038 0)
(0.0900821836372 0.302387963804 0)
(0.0839497715099 0.275848720929 0)
(0.0774887377648 0.248567742755 0)
(0.0721833628675 0.222179839277 0)
(0.0695787467365 0.197196525253 0)
(0.0699548884208 0.17069410953 0)
(0.0697328974654 0.138703010709 0)
(0.0493571663425 0.108695693524 0)
(-3.49124540564e-05 0.00396426480723 0)
(0.000132865084285 0.00294205862348 0)
(-0.000250329769485 0.00299598849846 0)
(-0.000277298096591 0.00299877692481 6.16081574365e-30)
(-0.000250907983173 0.00302498887617 0)
(-0.0002143535155 0.00303916826497 -7.13406791166e-30)
(-0.000180522023 0.00304194580378 0)
(-0.000150990457952 0.00303954007022 0)
(-0.000101743309364 0.00295000973181 0)
(-6.15164710615e-05 0.00296813894836 0)
(-1.81015717726e-05 0.0030307728535 0)
(-3.4194632921e-05 -0.000665553929915 0)
(-0.000103354503354 -0.000676883872125 0)
(-0.000156691296766 -0.000695755268484 0)
(-0.000202619613222 -0.000699499752193 0)
(-0.000247718801591 -0.00071339990211 0)
(-0.00029754417633 -0.000739484291594 0)
(-0.000351429529428 -0.000772693745027 0)
(-0.000409811326807 -0.000811525586786 0)
(-0.000472971040412 -0.000854715923419 0)
(-0.000541458616325 -0.000902598626262 0)
(-0.000617357731834 -0.000954678617939 0)
(-0.000704370729144 -0.00100791761715 0)
(-0.000794541046224 -0.00104472763733 0)
(-0.000867778055782 -0.00105315951892 0)
(-0.000974236606156 -0.00110921499405 0)
(-0.00109108480262 -0.00117102798796 0)
(-0.00119787120179 -0.00121949802804 0)
(-0.00130709966636 -0.00126582537324 0)
(-0.00142527573478 -0.00131080710259 0)
(-0.00155228903272 -0.00134870109793 0)
(-0.00168068407892 -0.00136935558766 0)
(-0.00185496904754 -0.00140604923161 0)
(-0.0020051865774 -0.00141237750728 0)
(-0.00217620236252 -0.00142906401972 0)
(-0.00235753212555 -0.00144208091304 0)
(-0.00252759645389 -0.00143406712733 3.56050387686e-29)
(-0.00271850410445 -0.00143143898527 0)
(-0.00287457990563 -0.00140907954804 0)
(-0.00307282681585 -0.00139366002661 0)
(-0.00313704050807 -0.00128764009398 0)
(-0.0031834552617 -0.00117846338971 0)
(-0.00326548676963 -0.0011006693045 0)
(-0.00328481111009 -0.000996425771337 0)
(-0.00319063048241 -0.000870091067378 0)
(-0.00305613764515 -0.000760775178814 0)
(-0.00275796562865 -0.000646616864216 0)
(-0.00235631391613 -0.000598565972383 0)
(-0.00123158213192 -0.00087739798871 0)
(0.0104436981288 -0.00539402836088 0)
(-0.0383443670958 0.00264283433831 0)
(0.167747824832 0.50846696307 0)
(-0.189642619053 0.454601602737 0)
(0.0700587012932 0.320665538482 0)
(0.00427278618136 0.34300543948 0)
(0.0208351719336 0.3590498297 0)
(0.032726652458 0.386259771534 0)
(0.0356572653571 0.405970320791 0)
(0.047525754021 0.420718143432 0)
(0.0534653506836 0.430475467411 0)
(0.061491122452 0.435571156586 0)
(0.067805823352 0.437236780898 0)
(0.0740033938321 0.435961371594 0)
(0.0794438088934 0.432377010915 0)
(0.0843086691019 0.426740964995 0)
(0.0884402079709 0.419170390488 0)
(0.0917347982033 0.409583131649 0)
(0.0940137135511 0.397766208806 0)
(0.0950737360295 0.383416453892 0)
(0.0946940289231 0.366217421744 0)
(0.09267527339 0.345962535896 0)
(0.0890279878226 0.322725292998 0)
(0.0840703575271 0.29701977942 0)
(0.0785409448759 0.269953665983 0)
(0.073830238006 0.243282573452 0)
(0.0726510642477 0.219248801541 0)
(0.07891082275 0.19918392537 0)
(0.0905584684491 0.180398975735 0)
(0.0768495931171 0.159373306873 0)
(0.00154253048421 0.00418196747815 0)
(-0.00261526230297 0.0027022207782 0)
(-0.000690140507948 0.00297471246678 0)
(-0.000406543335712 0.00304577236767 0)
(-0.000261061613344 0.00305162040533 -6.05019354754e-30)
(-0.000193068487693 0.00306657297568 -5.48106655303e-30)
(-0.000153238790132 0.00307213701025 0)
(-0.00012615489419 0.00307011819707 0)
(-0.000107113176801 0.00306349451523 0)
(-7.72781915437e-05 0.00298190206077 0)
(-3.81886004142e-05 0.00300540672953 0)
(-9.31580883766e-07 0.00306059708287 0)
(-2.87248098832e-05 -0.000748829352492 0)
(-9.517469526e-05 -0.000738830735833 0)
(-0.000142195163732 -0.000740381829803 0)
(-0.00017752336635 -0.000731553746802 0)
(-0.000218632669148 -0.00075148747566 0)
(-0.000263970833968 -0.000783232132854 0)
(-0.000312493033164 -0.000823262558483 0)
(-0.000364039840845 -0.000867612624263 0)
(-0.000420626877607 -0.000916979654065 0)
(-0.000482145668668 -0.00096986619658 0)
(-0.000549551917869 -0.00102691973729 0)
(-0.000626509620221 -0.00108775564702 0)
(-0.000713916171948 -0.00114086185179 0)
(-0.000810164465344 -0.00118362947769 0)
(-0.00089380453151 -0.00120117701582 0)
(-0.00100269002438 -0.0012629296175 0)
(-0.00109255120538 -0.00131160181312 0)
(-0.00121262764408 -0.00138312809378 0)
(-0.00132704749137 -0.00143739284687 0)
(-0.00145457039118 -0.00149034593767 0)
(-0.00158180541076 -0.00152268892403 0)
(-0.00173116520628 -0.00155496437772 0)
(-0.00189898706443 -0.00158349162284 4.46434440991e-29)
(-0.00206887218611 -0.00160400852218 0)
(-0.00225436713954 -0.00162234050806 0)
(-0.00243702684919 -0.00162206585739 0)
(-0.00260122447991 -0.00160140067361 0)
(-0.00281300999565 -0.00159529695789 0)
(-0.00290718323542 -0.00148730081773 0)
(-0.00298104731436 -0.00135809862325 0)
(-0.00314818341586 -0.00128147821615 0)
(-0.0032301970342 -0.00115640810769 0)
(-0.00326894924435 -0.00098689824329 0)
(-0.00324931718147 -0.00078589498576 0)
(-0.00311465758852 -0.0005372395526 0)
(-0.00275065524354 -0.000240229847979 0)
(-0.00216851354104 3.67650725211e-05 0)
(-0.00113780308511 7.39190400402e-05 0)
(0.0113106700196 0.00327099506009 0)
(-0.0400282443969 0.000420740573624 0)
(0.176781781654 0.503840981834 0)
(-0.200569813044 0.452573858047 0)
(0.0758735266153 0.325550817074 0)
(-0.00283336900049 0.351462552887 0)
(0.0207989467603 0.367641681105 0)
(0.0295386379513 0.395356407421 0)
(0.0337384554339 0.414426985528 0)
(0.0451087396472 0.428776435744 0)
(0.0509545620345 0.437898635309 0)
(0.0588297292855 0.442410525844 0)
(0.0649272949074 0.443487653954 0)
(0.0709545026344 0.441624357269 0)
(0.0761910698688 0.437427205296 0)
(0.0808565538875 0.431112381958 0)
(0.0847647039589 0.422755816648 0)
(0.0878089589317 0.412230294151 0)
(0.0897989541367 0.399287969348 0)
(0.0905326340001 0.383613453832 0)
(0.0898053631932 0.364924892517 0)
(0.0874610500125 0.343136763247 0)
(0.0836730562854 0.318582366756 0)
(0.0790211399235 0.292216044574 0)
(0.0745258824925 0.265729208136 0)
(0.0715484993968 0.241376221836 0)
(0.0722578313421 0.221319256456 0)
(0.0788337841085 0.205508191569 0)
(0.0762442189588 0.182781543173 0)
(0.0327048772408 0.0481522649556 0)
(-0.000692545251471 0.00510027496539 0)
(-0.000109744645518 0.00357260087921 0)
(-0.000255004197304 0.00329352433039 0)
(-0.000206601899502 0.00317339151204 0)
(-0.000155249374297 0.00311847165207 0)
(-0.000115991801736 0.00310251570025 5.325167898e-30)
(-9.05006900806e-05 0.00309337550102 0)
(-7.31761249167e-05 0.00308381670157 4.76822567085e-30)
(-6.55816730094e-05 0.00306972056373 0)
(-4.70678298978e-05 0.00301099149173 0)
(-1.4439961017e-05 0.00303874853825 0)
(8.754819408e-06 0.0030459232852 0)
(-1.83305900211e-05 -0.000797907421767 0)
(-7.44680474556e-05 -0.000794083921202 0)
(-0.000116393685576 -0.000770812274273 0)
(-0.000153920827233 -0.000771073108949 0)
(-0.000192177569741 -0.000795549604956 0)
(-0.000231577834559 -0.000827631916675 0)
(-0.000272127735287 -0.000865177177318 0)
(-0.000316558305818 -0.000914835076957 0)
(-0.000364480534589 -0.000970611883253 0)
(-0.000417518094589 -0.00103043834053 0)
(-0.000476691062315 -0.00109355390502 0)
(-0.000543009674119 -0.00116016591967 0)
(-0.000623772384507 -0.00123057221913 0)
(-0.000710737497249 -0.00127719079913 0)
(-0.000825056538865 -0.0013471012897 0)
(-0.000891368040953 -0.00135181868607 0)
(-0.00098565343757 -0.00140489101299 0)
(-0.00109569473261 -0.00148622056227 0)
(-0.00119716975569 -0.00154760636768 0)
(-0.00132190815667 -0.00161101382628 0)
(-0.00145271598411 -0.00165998249602 0)
(-0.00160966718974 -0.00171671522714 0)
(-0.00177003509047 -0.00175297674213 -4.44683374118e-29)
(-0.00194517673082 -0.00178324276877 0)
(-0.00213080590428 -0.00180501274116 0)
(-0.00229149067465 -0.00179139704632 0)
(-0.00249779565444 -0.00179194721638 0)
(-0.00263934477203 -0.00171280751411 0)
(-0.00277173881871 -0.00160386749566 0)
(-0.00296710351493 -0.00152604505037 0)
(-0.0031348465579 -0.00141646429981 0)
(-0.0032810606458 -0.00125687824127 0)
(-0.00335706713727 -0.00103118007645 0)
(-0.00339600797918 -0.000740431006757 0)
(-0.00330317145145 -0.000346568262617 0)
(-0.00309434289496 0.00016014699256 0)
(-0.00252423458449 0.000908622143265 0)
(-0.0013509803558 0.00212937494759 0)
(0.0090623409043 0.00837989618496 0)
(-0.0396287571384 0.00602548376651 0)
(0.189789118172 0.502023198096 0)
(-0.2179688048 0.451220462659 0)
(0.0794543862734 0.331510444261 0)
(-0.01058812527 0.360374187174 0)
(0.0206356860364 0.376447101872 0)
(0.0263103873402 0.404464139076 0)
(0.0319393109624 0.422817743291 0)
(0.0427386470932 0.436699390302 0)
(0.0485396972984 0.445149083294 0)
(0.0562436254474 0.449065679459 0)
(0.0621321751825 0.449548554509 0)
(0.0679927676382 0.447096749095 0)
(0.0730351089328 0.442282631186 0)
(0.0775158060767 0.435278376964 0)
(0.0812198478495 0.426116234183 0)
(0.0840393118031 0.414624737845 0)
(0.0857733133677 0.400527074933 0)
(0.0862239523981 0.38351044841 0)
(0.0852057633747 0.363356361202 0)
(0.0826069564299 0.340148071212 0)
(0.0787773873614 0.314534587474 0)
(0.0745050896239 0.287915847711 0)
(0.0709794560507 0.262381983833 0)
(0.0693584978072 0.239999200325 0)
(0.070308604075 0.220881239718 0)
(0.0713666842824 0.201251403766 0)
(0.0485951541702 0.177232495154 0)
(0.00246436689196 0.00426477164424 0)
(0.000784640784582 0.00320832461979 0)
(0.00026541655702 0.00326257626719 0)
(5.14371114969e-05 0.00322151729414 0)
(-2.56686554194e-05 0.00317124174129 0)
(-4.21458247452e-05 0.00313663740745 0)
(-3.65771774469e-05 0.00311551891471 0)
(-2.9516603486e-05 0.00310016860857 0)
(-2.22254049204e-05 0.0030839149276 -4.665268471e-30)
(-2.20786438289e-05 0.00306287840951 0)
(-1.53159745407e-05 0.00303686080968 4.0370205435e-30)
(3.60434758791e-06 0.00305687135054 0)
(1.37494866178e-05 0.00303621701474 0)
(-1.10191440822e-05 -0.000831445738922 0)
(-5.37519209564e-05 -0.000835967430654 0)
(-9.49759238019e-05 -0.000815791346223 0)
(-0.000132657156117 -0.000807311528158 0)
(-0.000162849632658 -0.000831455650821 0)
(-0.000193956605717 -0.000865466118535 0)
(-0.000227780436713 -0.000907106054612 0)
(-0.000264193515069 -0.000955177358827 0)
(-0.000303638813184 -0.00101263139016 0)
(-0.000347279536891 -0.0010802752826 0)
(-0.00039587858745 -0.00115110659064 0)
(-0.000451603150711 -0.00122471832036 0)
(-0.000513463101265 -0.00129897884914 0)
(-0.000592959181177 -0.00137720478104 0)
(-0.000668248934062 -0.00139884249156 0)
(-0.000754983203929 -0.00142659857226 0)
(-0.000874560388712 -0.00152758291553 0)
(-0.000953060193804 -0.00157847023941 0)
(-0.00105147380955 -0.00164412565445 0)
(-0.00118112129984 -0.00173900075609 -5.38243948046e-29)
(-0.00131289010594 -0.0018172426481 0)
(-0.00145983040356 -0.00187461050958 0)
(-0.00161333459773 -0.00191167330088 0)
(-0.00180085974941 -0.00196698444868 0)
(-0.0019589503684 -0.00197217702752 0)
(-0.00214962308619 -0.00197740492007 0)
(-0.00234042881014 -0.00195406921883 0)
(-0.0025230414036 -0.00188987957859 0)
(-0.00272187689641 -0.00180660974269 0)
(-0.00293825268552 -0.00171927360675 0)
(-0.00317162095065 -0.00160475402881 0)
(-0.00330845177215 -0.00138931958043 0)
(-0.00347755288137 -0.00113082317935 0)
(-0.00356559962076 -0.000780657918117 0)
(-0.00370030947293 -0.000342909294086 0)
(-0.00383849600803 0.000318643604103 0)
(-0.00380926941104 0.00140351881885 0)
(-0.00299278535023 0.00371644293763 0)
(-0.00215121542925 0.00980566949686 0)
(-0.0394781724732 0.0110010438659 0)
(0.227318602929 0.457661660889 0)
(-0.231350855351 0.450041893887 0)
(0.0814127159874 0.339351424022 0)
(-0.0178794388875 0.369894911834 0)
(0.020776081324 0.385601795379 0)
(0.0232334741312 0.413650805843 0)
(0.0303709859051 0.431151356418 0)
(0.0404924781217 0.444478399945 0)
(0.0462624422785 0.452218173122 0)
(0.0537548089191 0.455530944929 0)
(0.059430596686 0.455419176048 0)
(0.0651201651699 0.452384015775 0)
(0.0699742800709 0.446954714736 0)
(0.0742837863137 0.439256785771 0)
(0.0778048895824 0.429276809335 0)
(0.0804302111893 0.416801093162 0)
(0.0819514758719 0.40153209852 0)
(0.0821833430445 0.383178824502 0)
(0.0809755441234 0.361623134586 0)
(0.0782962369205 0.337182023809 0)
(0.0747683641185 0.310908943255 0)
(0.0714450566106 0.284692765882 0)
(0.0697404639607 0.260895243362 0)
(0.0709815179557 0.241199146709 0)
(0.0750144101971 0.223987771077 0)
(0.0732355903227 0.199264791353 0)
(0.0569670564193 0.13510930003 0)
(0.000287947490826 0.00221292080512 0)
(0.000460563229704 0.00272838148006 0)
(0.000241438916915 0.0030348966245 0)
(0.000135348895074 0.00311897082715 0)
(7.32117301596e-05 0.00312488550816 0)
(4.64037455976e-05 0.00313072486508 0)
(3.60802868941e-05 0.00311664109398 0)
(2.9245306509e-05 0.00310328372252 0)
(2.3665100649e-05 0.00308707725611 0)
(2.07930873575e-05 0.0030431515941 0)
(2.34201269095e-05 0.00303404709117 -4.06826766959e-30)
(2.51799366137e-05 0.00306914367011 0)
(1.92863150216e-05 0.00302240778032 0)
(-6.77750701648e-06 -0.000858981964764 0)
(-3.9862361228e-05 -0.000870411192757 0)
(-7.6502623789e-05 -0.000865660723954 0)
(-0.00010675582316 -0.000833603228394 0)
(-0.000127724085821 -0.000857206458368 0)
(-0.000149885424016 -0.000893484223533 0)
(-0.000174935517562 -0.000938489649705 0)
(-0.000203437695186 -0.000991164887103 0)
(-0.000235328744764 -0.0010504248226 0)
(-0.000269415945004 -0.00111517134735 0)
(-0.000308204455622 -0.00119502848951 0)
(-0.00035043148154 -0.00127609266526 0)
(-0.000398199151879 -0.00135646959474 0)
(-0.000451637191698 -0.00143338047783 0)
(-0.000523802457828 -0.00151164973642 0)
(-0.000620607042786 -0.00156229196523 0)
(-0.000701507327853 -0.00157880411224 0)
(-0.000794789507948 -0.00166489606119 0)
(-0.00091200117275 -0.00178831172267 0)
(-0.00100418770914 -0.00184967605059 5.35099318603e-29)
(-0.00112381055954 -0.00192291773603 0)
(-0.00128371759543 -0.00202352265207 0)
(-0.00145312986785 -0.0021077624169 0)
(-0.00159993793599 -0.00213039444366 0)
(-0.00177135492074 -0.00214172502846 0)
(-0.00200036911238 -0.00218872973923 0)
(-0.00219538649527 -0.00216315125289 0)
(-0.00239593366172 -0.00209214372081 0)
(-0.00264168454495 -0.00203419903223 0)
(-0.00292571563157 -0.00197251323041 0)
(-0.00312323618294 -0.00179279756868 0)
(-0.00332904628416 -0.00157022878205 0)
(-0.00357047146129 -0.00131445124009 0)
(-0.00382077290646 -0.00100059788574 0)
(-0.00422211178971 -0.000610735683994 0)
(-0.004611921484 -2.64940986226e-05 0)
(-0.00571220547793 0.00078758244029 0)
(-0.00547017541613 0.00229132714403 0)
(-0.0132195248998 -0.0126497124811 0)
(-0.618539102466 0.0477841331175 0)
(0.25952661283 0.473137379726 0)
(-0.286195569287 0.472957613809 0)
(0.0799078909214 0.351042743538 0)
(-0.0245462497079 0.380482720836 0)
(0.021322978382 0.395257207398 0)
(0.0205127451013 0.422895810348 0)
(0.0291666832385 0.439370824326 0)
(0.0384453734908 0.452064977519 0)
(0.0441571248911 0.459071664144 0)
(0.0513769309256 0.461784527273 0)
(0.0568241964156 0.461089451979 0)
(0.0623308015067 0.457486160735 0)
(0.0669995800686 0.451452766636 0)
(0.0711508248959 0.443066102952 0)
(0.0745118575089 0.432265936952 0)
(0.0769767340796 0.418799599101 0)
(0.0783308564613 0.402359020284 0)
(0.0784034221265 0.382696123576 0)
(0.077075386293 0.359827466825 0)
(0.074383231736 0.334350018205 0)
(0.0712368563366 0.307750195259 0)
(0.0688663822003 0.282279323712 0)
(0.0687391285154 0.260043093761 0)
(0.0721098550318 0.241114921099 0)
(0.0792942345758 0.221090335709 0)
(0.0754105648635 0.19159210145 0)
(0.00295703272999 0.00415508209897 0)
(-0.00258468284935 0.00274076276865 0)
(-0.000282621833848 0.00294615389065 0)
(3.04015057296e-05 0.00307827132499 0)
(0.000134007929074 0.00309635881456 0)
(0.000141068545617 0.00311443079946 0)
(0.000129022774599 0.00312421107692 0)
(0.000116537483194 0.00311470382277 0)
(0.000101584043191 0.00310471694346 0)
(8.39795496546e-05 0.00309569703755 0)
(7.06695001669e-05 0.00308777936349 0)
(5.67055436087e-05 0.00306776096126 0)
(3.39816643254e-05 0.00307356182406 0)
(1.77159483557e-05 0.0029937179695 0)
(-3.72646508043e-06 -0.000881915564102 0)
(-2.87286722075e-05 -0.000896359611093 0)
(-5.40509439504e-05 -0.00090410525676 0)
(-7.39125505155e-05 -0.000849880268166 0)
(-8.65985048403e-05 -0.00087303356951 0)
(-9.94710600213e-05 -0.000911914713496 0)
(-0.00011528758435 -0.000960334473849 0)
(-0.000134660204839 -0.00101678270946 0)
(-0.00015750041359 -0.00108030986509 0)
(-0.000183961748261 -0.00115056678938 0)
(-0.000212162979584 -0.00122523320368 0)
(-0.000242551101985 -0.00130981395024 0)
(-0.000276026667667 -0.00139966875826 0)
(-0.00031476213574 -0.00148725995922 0)
(-0.000364400033758 -0.00157228779579 0)
(-0.000432816260454 -0.00165544323978 0)
(-0.000516640137173 -0.00169461074212 0)
(-0.000613994914749 -0.00175498998693 0)
(-0.000711696601463 -0.00186440510892 0)
(-0.000799139589473 -0.00194446377873 0)
(-0.000950292895498 -0.00210995781354 0)
(-0.00108123806403 -0.00218818650512 0)
(-0.00120361671809 -0.00222290418777 0)
(-0.00136857165204 -0.00227886210116 0)
(-0.00160692659453 -0.00238454225292 0)
(-0.00179037290261 -0.00237920115501 0)
(-0.00199268216428 -0.00235399974788 0)
(-0.00227506425803 -0.00236210003064 0)
(-0.00254931715912 -0.00231228171127 0)
(-0.00280108779828 -0.00218867763659 0)
(-0.00305001981692 -0.00202040457054 0)
(-0.00337868484975 -0.00185374879481 0)
(-0.00367376106439 -0.00161863305831 0)
(-0.00406889611886 -0.00136247598541 0)
(-0.00442947758182 -0.00102923898282 0)
(-0.00503243888407 -0.000690315558044 0)
(-0.00615611509833 -0.000366472925918 0)
(-0.00363930105424 -0.00147145565591 0)
(-0.0150103926359 -0.234027090091 0)
(-0.100240051009 -0.00202878816245 0)
(0.274863608428 0.562684289905 0)
(-0.300291491281 0.507888492297 0)
(0.0977223431554 0.364849831774 0)
(-0.0278621696376 0.392575617018 0)
(0.0231137390586 0.405328829697 0)
(0.0185120525942 0.432013157156 0)
(0.0284502633901 0.447335700619 0)
(0.0366449693412 0.459365179178 0)
(0.0422363166835 0.465648737819 0)
(0.0491066007834 0.467789515065 0)
(0.0543008040566 0.466540551355 0)
(0.059607469405 0.462398599915 0)
(0.0640921913573 0.455784437971 0)
(0.0680986214444 0.446725727929 0)
(0.0713256323244 0.435115225617 0)
(0.0736702878489 0.420665979559 0)
(0.074916069769 0.403071822846 0)
(0.0749206912224 0.382154277109 0)
(0.0736265603651 0.358112405582 0)
(0.0712225816832 0.331911766084 0)
(0.0691731080858 0.305651312095 0)
(0.0693512487575 0.282236095005 0)
(0.0743690370574 0.264044277781 0)
(0.0861859482248 0.250753576483 0)
(0.0966947075375 0.233937574906 0)
(0.074234353104 0.189225586666 0)
(0.000575723830194 0.00556469288431 0)
(0.000738631328565 0.00346637963455 0)
(0.000284180160394 0.00327397059296 0)
(0.000262722346402 0.00317666988612 0)
(0.000265568930458 0.00312816111423 0)
(0.000256790492289 0.00309395970033 0)
(0.000240278804053 0.00311419357232 0)
(0.000217777930254 0.0031013582595 0)
(0.000191371834759 0.00308637247152 0)
(0.000161389423553 0.00307045780488 0)
(0.00012740320619 0.00305210089551 0)
(8.39537314371e-05 0.00302163308874 0)
(3.21324961751e-05 0.00304238785866 0)
(9.64214908043e-06 0.00297267426449 0)
(-1.28009546237e-06 -0.00089576109293 0)
(-1.57524015701e-05 -0.000910146668721 0)
(-2.41332706871e-05 -0.000925832970787 0)
(-3.62544717911e-05 -0.000856334831788 0)
(-4.13528047469e-05 -0.000879052132345 0)
(-4.33309692716e-05 -0.000920879591054 0)
(-4.96023581138e-05 -0.000973254203872 0)
(-5.98040002089e-05 -0.00103333265767 0)
(-7.31882436339e-05 -0.00110015009618 0)
(-8.89380365662e-05 -0.00117323481976 0)
(-0.000106535757667 -0.00125227303122 0)
(-0.000125295277324 -0.00133544301691 0)
(-0.000144988775681 -0.00142038596487 0)
(-0.000168998671703 -0.00151734450947 8.79473497628e-29)
(-0.000197935656769 -0.00161642605036 0)
(-0.000232454123137 -0.00170902881638 0)
(-0.000293758415678 -0.00180773273391 0)
(-0.000382207203575 -0.00186767018041 0)
(-0.000473712633048 -0.00193276766234 0)
(-0.000585288835123 -0.00207989408483 0)
(-0.000698236216088 -0.00220647028979 0)
(-0.00080801539325 -0.00228218390407 0)
(-0.000951918997234 -0.00236337754493 0)
(-0.0011799807785 -0.00253281959398 0)
(-0.00135996122046 -0.00256190315091 0)
(-0.00154434119969 -0.00257277065634 0)
(-0.00181509197026 -0.00263470937589 0)
(-0.00210362450959 -0.00263130364228 0)
(-0.00238100744726 -0.00256220809742 0)
(-0.00270837895534 -0.00249759860469 0)
(-0.00301981081596 -0.00235397370777 0)
(-0.00335748855071 -0.00218016602598 0)
(-0.00373863564117 -0.00199215307542 0)
(-0.00413753411755 -0.00176283350909 0)
(-0.00463315844165 -0.00155394893195 0)
(-0.00526345146728 -0.00138085509792 0)
(-0.00626788592125 -0.00122467043567 0)
(-0.00369444849474 -0.00185060566517 0)
(0.0105299250464 -0.121851515376 0)
(-0.0636030385816 0.00119715710323 0)
(0.266372569755 0.587872173064 0)
(-0.296969886354 0.515362649313 0)
(0.122177615426 0.373311878324 0)
(-0.0293058406474 0.403773473242 0)
(0.026814707108 0.414664092185 0)
(0.0174602013865 0.440508374256 0)
(0.0282504339373 0.454803985228 0)
(0.0350825673743 0.466242151988 0)
(0.0404763486272 0.471869052408 0)
(0.0469154704453 0.473498954201 0)
(0.0518303507132 0.471748708152 0)
(0.0569191440691 0.467114439821 0)
(0.0612216999106 0.459957696853 0)
(0.0650983832803 0.450257647018 0)
(0.0682209901985 0.437861793692 0)
(0.070490661003 0.42245522819 0)
(0.0716906187087 0.403750266795 0)
(0.0717109455336 0.381674561277 0)
(0.070549937015 0.356677340669 0)
(0.068517425392 0.330195601382 0)
(0.0675704744299 0.305086651967 0)
(0.0698016126398 0.284851393807 0)
(0.0778089687877 0.270469994116 0)
(0.0930865475804 0.255878172488 0)
(0.0955956525471 0.226344348752 0)
(0.0051150027136 0.00652726548792 0)
(-0.00299692054734 0.00371178007057 0)
(-4.01791951866e-05 0.00348049061846 0)
(0.000263640802635 0.00332786974704 0)
(0.000393480458698 0.00321006668155 0)
(0.000412806596084 0.00312520185337 0)
(0.000403716500857 0.00308490897324 0)
(0.0003795587145 0.00308892632412 0)
(0.000337196309734 0.00307121200767 0)
(0.000290712684375 0.00305134838599 0)
(0.000240810348488 0.00303168193643 0)
(0.000183453885337 0.00300250224649 0)
(0.00012117920928 0.00296231143143 0)
(5.83565367613e-05 0.00298471848046 0)
(2.01570626242e-05 0.00299493501504 0)
(9.97354613802e-07 -0.000903354029507 0)
(-5.7085464839e-07 -0.00090207042565 0)
(8.63001139114e-06 -0.000931264925796 0)
(3.76097445964e-06 -0.000864448469036 0)
(1.01547371507e-05 -0.000873752703271 0)
(2.02551268275e-05 -0.00091932966893 0)
(2.26183099206e-05 -0.000975495629496 0)
(2.03417779675e-05 -0.00103785962807 0)
(1.59630022793e-05 -0.00110569323392 0)
(1.1357477125e-05 -0.00117917305136 0)
(7.23297087518e-06 -0.00125869575857 0)
(3.3909117127e-06 -0.00134415047974 0)
(-1.89639674749e-06 -0.00143600206232 0)
(-8.87876233887e-06 -0.00153155714304 -8.96504342712e-29)
(-1.61691694909e-05 -0.00162536216143 0)
(-2.78042262328e-05 -0.00172723144302 0)
(-5.34176797849e-05 -0.00185127317387 0)
(-0.000107146293992 -0.00198211755739 0)
(-0.000193576768871 -0.00207036338534 0)
(-0.000299681943861 -0.0021565821689 0)
(-0.000413215347377 -0.002295484666 0)
(-0.000537900276949 -0.0024205937686 0)
(-0.000716381578139 -0.00258938005717 0)
(-0.000905430895958 -0.00270636835318 0)
(-0.00106956880866 -0.00272563809958 0)
(-0.00129826735506 -0.00281045513319 0)
(-0.00160331717868 -0.0029381989657 0)
(-0.00190606701636 -0.00295221607468 0)
(-0.00222254875998 -0.00290716538175 0)
(-0.00253617651377 -0.00279336926945 0)
(-0.00290080415604 -0.00268629246353 0)
(-0.00332318148684 -0.00258648323851 0)
(-0.00373533444781 -0.00241902209914 0)
(-0.00413837944112 -0.00222320008677 0)
(-0.00474674093465 -0.00213775263106 0)
(-0.0053625544647 -0.00203837710845 0)
(-0.00620580072422 -0.00191519842261 0)
(-0.0035437834225 -0.00233377012178 0)
(0.010501369186 -0.141733225905 0)
(-0.0637187549796 0.00241166831961 0)
(0.259433277133 0.580531697783 0)
(-0.293698374506 0.505768649463 0)
(0.140809461524 0.376026996157 0)
(-0.0322352899332 0.411705786277 0)
(0.0313571092703 0.421960805413 0)
(0.0168104282849 0.447831766848 0)
(0.0283349243024 0.461503910493 0)
(0.033646168708 0.472551878877 0)
(0.038801951986 0.477651291871 0)
(0.044745444729 0.478867805201 0)
(0.049362675247 0.476690479743 0)
(0.0542195678763 0.471627609423 0)
(0.0583443430967 0.463980955363 0)
(0.0621089596629 0.453685682458 0)
(0.0651605811532 0.440545823497 0)
(0.0674061202869 0.424227308731 0)
(0.068629776592 0.40447789457 0)
(0.0687637752647 0.381369906902 0)
(0.0679077097321 0.355680984418 0)
(0.0666453131427 0.329437715763 0)
(0.0678772688087 0.306385006458 0)
(0.0754631080864 0.29096334837 0)
(0.0950335478591 0.284076533357 0)
(0.118099518151 0.273825865926 0)
(0.0838251329298 0.240986407841 0)
(0.00160220926257 0.00589404884456 0)
(0.00201839099795 0.00393666927078 0)
(0.000946435905901 0.00364174277418 0)
(0.000771139686581 0.00337231984631 0)
(0.000693396583435 0.0031913156742 0)
(0.000644938356233 0.0031076905873 0)
(0.000596097529068 0.00306302371007 0)
(0.000540293965574 0.00303946825949 0)
(0.000470199976626 0.00301552096854 0)
(0.000398390946825 0.0029926709775 0)
(0.000325438974644 0.0029733422081 0)
(0.000241083646828 0.00293850128022 0)
(0.000163979954782 0.00290795254625 0)
(0.00010014195242 0.00292540407978 0)
(4.04677778735e-05 0.00291960493328 0)
(6.32018043288e-06 -0.000900586168661 0)
(1.55228130581e-05 -0.000872430618974 0)
(3.67361186232e-05 -0.000927599810346 0)
(5.04789973639e-05 -0.000860640497565 0)
(7.45659375019e-05 -0.000846987867261 0)
(9.3134077625e-05 -0.000895084602833 0)
(0.000100921875404 -0.000951106687554 0)
(0.000104086843917 -0.00101112900588 0)
(0.000108398312793 -0.00107606225263 0)
(0.000116550991099 -0.00114799310471 0)
(0.00012878882236 -0.00122852181391 0)
(0.000143896835801 -0.00131822881323 0)
(0.000159809511455 -0.00141677975997 0)
(0.000175321845797 -0.00152142325791 0)
(0.000190509467454 -0.0016279545138 0)
(0.000201353082273 -0.00174081038874 0)
(0.000197508407832 -0.00186608520484 0)
(0.000171642080427 -0.00199913231364 0)
(0.000115894777248 -0.00215705744778 0)
(2.71945269336e-05 -0.00233071811625 0)
(-8.45043150062e-05 -0.00244475785743 0)
(-0.000226823321216 -0.00257437811783 0)
(-0.000402390418821 -0.00275242303596 0)
(-0.000573252185081 -0.00287148476644 0)
(-0.000763745966028 -0.00295721306277 0)
(-0.00101553881448 -0.00310685307843 0)
(-0.00131503643705 -0.00323018571504 0)
(-0.00163200240008 -0.00323215099134 0)
(-0.00196992251701 -0.00319209461512 0)
(-0.00238552823621 -0.00320519870822 0)
(-0.00278164399211 -0.00312828117522 0)
(-0.00316999335271 -0.00299282020322 0)
(-0.00361468981221 -0.00285314027924 0)
(-0.00413163702516 -0.00277155197604 0)
(-0.00480564065597 -0.00277588119285 0)
(-0.005486436874 -0.00271403384395 0)
(-0.00650680271924 -0.0025336323654 0)
(-0.0037024655761 -0.00221950658913 0)
(0.016123898507 -0.116391609467 0)
(-0.0619950066236 0.0021869011506 0)
(0.259470847217 0.571051989066 0)
(-0.292743841046 0.496156380505 0)
(0.153099432966 0.377534747782 0)
(-0.0371419037321 0.417020613595 0)
(0.0356165055609 0.42728095816 0)
(0.0157924664363 0.453898429053 0)
(0.0283426126512 0.467328181455 0)
(0.032145197419 0.478213544239 0)
(0.0370958105873 0.482946421929 0)
(0.0425141769787 0.483862946578 0)
(0.0468322985201 0.481350455468 0)
(0.0514499235129 0.475935032874 0)
(0.0554051249213 0.46786767897 0)
(0.0590775037843 0.457039211029 0)
(0.062095292018 0.44321647571 0)
(0.0643746078495 0.426053050773 0)
(0.0657060212759 0.405355975146 0)
(0.0660690074557 0.38139297572 0)
(0.0656975600444 0.355405320833 0)
(0.0655830128212 0.330304726173 0)
(0.0691821511315 0.310994393135 0)
(0.0796273102406 0.301979905971 0)
(0.101026230433 0.302085419095 0)
(0.101073418496 0.286725784092 0)
(0.0121933520867 0.0153189705205 0)
(-0.00272396785804 0.00438025125439 0)
(0.00100611941529 0.00379263093931 0)
(0.00110819105875 0.00350393416133 0)
(0.00107032798606 0.00327518064478 0)
(0.000988503462643 0.00314276906536 0)
(0.00089128053016 0.0030186175896 0)
(0.000810204880101 0.002993511996 0)
(0.000709117078775 0.00295248801299 0)
(0.000607167815155 0.0029254590291 0)
(0.000506201750192 0.00290167289404 0)
(0.000405309634044 0.00287421043732 0)
(0.00029898458387 0.00281686005825 0)
(0.000214848676361 0.00283495341068 0)
(0.000140706809683 0.00285575802929 0)
(5.83538215685e-05 0.00284700049557 0)
(2.10336701956e-05 -0.000891251618653 0)
(3.58740790228e-05 -0.000837874290911 0)
(6.44755088207e-05 -0.000913468440009 0)
(0.000101894597712 -0.000807675340237 0)
(0.000143286578485 -0.000813314519155 0)
(0.000166580408117 -0.000884451308798 0)
(0.000182982639957 -0.000962300905293 0)
(0.000198886429435 -0.00103535098704 0)
(0.000223921949906 -0.00110736798023 0)
(0.000258255860101 -0.00118212873498 0)
(0.000298385673522 -0.00126167859609 0)
(0.000340540588143 -0.00134684315332 0)
(0.000381452791484 -0.00143805914882 0)
(0.000418677669879 -0.0015287896222 0)
(0.000447273644934 -0.00161003183938 0)
(0.00046464441716 -0.0017104478283 0)
(0.000472235743082 -0.00186443677349 0)
(0.000457307781745 -0.00203272389852 0)
(0.00042113430106 -0.0022058949247 0)
(0.000370694621216 -0.00238254631821 0)
(0.000291155793667 -0.00258256486129 0)
(0.000162965418792 -0.00279131937445 0)
(4.59285020352e-06 -0.00295840300909 0)
(-0.000169393707173 -0.00304104632017 0)
(-0.000383769473572 -0.003159677127 0)
(-0.000653047606299 -0.00331835187575 0)
(-0.000995733056701 -0.00354732909835 0)
(-0.00135217172796 -0.00362450202694 0)
(-0.00173995497118 -0.00364795591904 0)
(-0.00211845391914 -0.0035940472369 0)
(-0.00248800030626 -0.00349000166031 0)
(-0.00293952567704 -0.00342764912572 0)
(-0.00351084340308 -0.00342090310358 0)
(-0.00405474216678 -0.00338758235335 0)
(-0.00480208270511 -0.00349484420266 0)
(-0.00560433195455 -0.00354508545946 0)
(-0.0070312579476 -0.00348855848438 0)
(-0.00412309423331 -0.00338535091155 0)
(0.0230379413121 -0.0967768997043 0)
(-0.0616870393759 -0.000544608258154 0)
(0.265136741235 0.564330656011 0)
(-0.293668077254 0.490558429826 0)
(0.162221989471 0.379850145761 0)
(-0.0428943722617 0.421205611397 0)
(0.0393086750801 0.431502100219 0)
(0.0140700159287 0.45906721639 0)
(0.0280572950921 0.47237890615 0)
(0.0304206398994 0.483265949525 0)
(0.0352421751015 0.487752786971 0)
(0.0401352235241 0.488483336597 0)
(0.0441639083354 0.485720897816 0)
(0.0485405091597 0.480039974753 0)
(0.0523345978183 0.471626904445 0)
(0.0559363491673 0.460344392367 0)
(0.0589601748134 0.445916984748 0)
(0.0613364634981 0.428003866045 0)
(0.0628613902066 0.406493910882 0)
(0.0635362737126 0.381904252501 0)
(0.0636428983402 0.355996483474 0)
(0.0646005221349 0.332611976484 0)
(0.0703616499624 0.317373014902 0)
(0.0814819530501 0.311149367144 0)
(0.0934440599087 0.302730911124 0)
(0.049074238614 0.280270881683 0)
(0.00525712988177 0.00759170682215 0)
(0.00421384881156 0.00398098721711 0)
(0.00227858757343 0.00360059665624 0)
(0.00174871778093 0.00331529575015 0)
(0.00147704220153 0.00312052729031 0)
(0.00130457586991 0.00299977929386 0)
(0.0011627316301 0.0029262293601 0)
(0.00102694556852 0.00286628879865 0)
(0.000885944978161 0.00282709467531 0)
(0.000748271546311 0.00280249633639 0)
(0.000614650818017 0.00278111846613 0)
(0.000483096898758 0.0027531885787 0)
(0.000364508480848 0.00271994259109 0)
(0.000269180325949 0.00274787080297 0)
(0.000174990497003 0.00275979691122 0)
(7.02218471724e-05 0.00270210342421 0)
(4.39851107514e-05 -0.000861173998807 0)
(6.80728606962e-05 -0.000836251561316 0)
(9.5079380669e-05 -0.000890982940381 0)
(0.000145165125495 -0.000766111608247 0)
(0.000218516103691 -0.000825499199248 0)
(0.000248198504038 -0.000888623446644 0)
(0.000273749610323 -0.00096056047843 0)
(0.000310671117498 -0.0010164240453 0)
(0.00036491370027 -0.00106706310825 0)
(0.000428090799866 -0.0011250643177 0)
(0.000493212351758 -0.00119331042203 0)
(0.000557044713288 -0.00127402722949 0)
(0.000617413851027 -0.00136842528524 0)
(0.000673286338419 -0.00147123071555 0)
(0.000721876378723 -0.00158652985752 0)
(0.000757127185403 -0.00172811797596 0)
(0.000778140661679 -0.00189651244867 0)
(0.000786152411065 -0.00207872955684 0)
(0.000775028749997 -0.00225464885159 0)
(0.000734789000318 -0.0024178176708 0)
(0.000675685697845 -0.00263578014709 0)
(0.000585170534899 -0.00286903185133 0)
(0.000465080952355 -0.00309126402699 0)
(0.000294559658396 -0.0032675839255 0)
(5.88604429128e-05 -0.00345449036359 0)
(-0.000252947505779 -0.00371824483368 0)
(-0.000609853612033 -0.00393711022774 0)
(-0.000963452007641 -0.00397456201346 0)
(-0.00134107035661 -0.00399796769134 0)
(-0.00171663820038 -0.00394247840065 0)
(-0.00214904769489 -0.0039227223873 0)
(-0.00273540345392 -0.00402455050972 0)
(-0.00326015999779 -0.00397689638082 0)
(-0.00387372788004 -0.0040512694143 0)
(-0.00464754474571 -0.00427604902101 0)
(-0.00549216304441 -0.00449838249125 0)
(-0.00687939241755 -0.00476654657421 0)
(-0.00491172364366 -0.00561863934131 0)
(0.0237711840538 -0.0500471804779 0)
(-0.0622260504882 -0.0047346652826 0)
(0.270466243999 0.558177954774 0)
(-0.296924541785 0.486870176225 0)
(0.169888199444 0.382381565481 0)
(-0.048858977787 0.424928703477 0)
(0.0424827074292 0.435313546395 0)
(0.0116774151626 0.46368666373 0)
(0.0274527470633 0.476867585874 0)
(0.0283953379512 0.487778782061 0)
(0.0331703745064 0.492116166403 0)
(0.0375380119927 0.492721520872 0)
(0.0412933597088 0.489808411487 0)
(0.0454223337319 0.483939369533 0)
(0.0490629728012 0.475283284886 0)
(0.052609118909 0.463640947847 0)
(0.0556760131893 0.448722186404 0)
(0.0582077320201 0.430175321394 0)
(0.060020200857 0.407998756989 0)
(0.0611713628852 0.382978407884 0)
(0.0620488656395 0.357412997657 0)
(0.0647827067113 0.335938248183 0)
(0.0752996278482 0.325063465473 0)
(0.0946566398187 0.323557308711 0)
(0.107630636842 0.307399204398 0)
(0.0778687533249 0.225441409226 0)
(0.00233072543174 0.000482916399442 0)
(0.0022126164704 0.00263463682658 0)
(0.00219486565398 0.00302958923913 0)
(0.00197443955076 0.00302791424791 0)
(0.00178969273382 0.00295067612761 0)
(0.00158902254952 0.00282079865373 0)
(0.00142749552231 0.00276580348948 0)
(0.00124865551974 0.0027083854921 0)
(0.00107494476261 0.00267013355636 0)
(0.000902557813 0.00265114821094 0)
(0.000733757829805 0.00263923610805 0)
(0.000571800935708 0.00261340525893 0)
(0.00043679254646 0.00261355842996 0)
(0.000316810910243 0.00263335840552 0)
(0.000199334687388 0.00265774224286 0)
(7.47211071264e-05 0.00256719005857 0)
(5.65597487539e-05 -0.000783571949752 0)
(0.000110709087272 -0.000852986768857 0)
(0.000141277751009 -0.000859956115399 0)
(0.000169575545185 -0.000670702118289 0)
(0.000252943514033 -0.00073983146778 0)
(0.000310576741612 -0.000838260396273 0)
(0.000360643335526 -0.000910605208276 0)
(0.000434431339683 -0.000947216139191 -2.26199406916e-29)
(0.00051955987854 -0.000987441924357 2.0644699241e-29)
(0.000603710135753 -0.00104799863595 0)
(0.000684137376909 -0.00112362292843 0)
(0.000760983818396 -0.00121052703292 0)
(0.000831686377933 -0.00130605007219 0)
(0.000894396695082 -0.00140461775916 0)
(0.000947668010192 -0.0015108558861 0)
(0.00100678304508 -0.00166184434671 0)
(0.00105931810066 -0.00183961474425 0)
(0.00110419523161 -0.00203175109529 0)
(0.00113431656064 -0.00223672163309 0)
(0.00113926526125 -0.00246826166767 0)
(0.00111089708373 -0.00272096880732 0)
(0.00104572811288 -0.00296951620187 0)
(0.000945231113142 -0.00321349350748 0)
(0.000785214686279 -0.0034447517105 0)
(0.000562758237268 -0.00374533935326 0)
(0.000264959032482 -0.00406767671783 0)
(-7.42607402941e-05 -0.00429059324313 0)
(-0.000437631832966 -0.00437092708317 0)
(-0.000833955385726 -0.00436353953534 0)
(-0.00127373494354 -0.00437859485664 0)
(-0.00179174062307 -0.00448081017045 0)
(-0.00238362849846 -0.00460077111079 0)
(-0.00290182373705 -0.00454516548464 0)
(-0.00359391638138 -0.00475558307527 0)
(-0.00435454141504 -0.00505114081877 0)
(-0.00511343318155 -0.00536252782286 0)
(-0.00600345331726 -0.00580251439499 0)
(-0.0052593525772 -0.00700017908272 0)
(0.0140714863265 -0.0237392102711 0)
(-0.063951072881 -0.00583242365983 0)
(0.270063291095 0.553380185639 0)
(-0.303030172739 0.483502839421 0)
(0.176400124296 0.384508331377 0)
(-0.0551901270097 0.428300273205 0)
(0.0452020096926 0.438811481397 0)
(0.00876642425772 0.467973916725 0)
(0.0265990675823 0.480855729138 0)
(0.0260816208969 0.491895439626 0)
(0.0308473178313 0.49604345013 0)
(0.0346806771237 0.496636214084 0)
(0.0381475514045 0.493593775246 0)
(0.0420156311958 0.487648575447 0)
(0.0454879662703 0.478812472944 0)
(0.0489900286399 0.466931647361 0)
(0.0521371176155 0.45162847321 0)
(0.0549171483305 0.432612524911 0)
(0.0571763289329 0.409978202415 0)
(0.0590729984805 0.384901413411 0)
(0.0611763908265 0.360383947285 0)
(0.0660485085232 0.34195643493 0)
(0.0793969187379 0.336340339777 0)
(0.101412290532 0.34038148212 0)
(0.0982538050428 0.322282047216 0)
(0.00900200517079 0.0100730231225 0)
(-0.0029908143984 0.00451244706066 0)
(0.00153440948502 0.00338957252437 0)
(0.00207856599486 0.00311366554839 0)
(0.00216419102503 0.0029065174892 0)
(0.00206252525607 0.00277135477317 0)
(0.00189422641359 0.00266990705298 0)
(0.00169279309087 0.00257968173135 0)
(0.00148541252447 0.00252146620608 2.56059149888e-31)
(0.00127826744742 0.00248401106828 0)
(0.00106791952495 0.0024602671074 0)
(0.000863928364915 0.00244982450368 0)
(0.000679085039453 0.00244538379658 0)
(0.000521703436038 0.00247614564126 0)
(0.000373750458369 0.00250724366647 0)
(0.000227405868922 0.00253498885439 0)
(7.80992622738e-05 0.00242823304505 0)
(4.72526348079e-05 -0.000649971334852 0)
(0.000134045679214 -0.000793967636317 0)
(0.000210764795795 -0.000803351854206 -2.63212017961e-29)
(0.000198692594272 -0.000569556559335 0)
(0.000239014289508 -0.000610026932267 0)
(0.000357797230524 -0.000801242259875 0)
(0.000461458890557 -0.000840454635171 0)
(0.000567634291642 -0.000865337527746 0)
(0.000665211577078 -0.000908253804998 0)
(0.000750030016661 -0.000964868143885 0)
(0.000820703682512 -0.00102001101823 0)
(0.0008936452401 -0.00109039003263 0)
(0.000990208059166 -0.00120129887809 0)
(0.00108420048745 -0.00132020352034 0)
(0.001174751491 -0.00145153934426 0)
(0.00126195224356 -0.00160486783055 0)
(0.00134737356738 -0.00178310672541 0)
(0.00142840348705 -0.00198390022287 0)
(0.00149647025025 -0.00220763807376 0)
(0.00154398633339 -0.00245882205013 0)
(0.00156532287456 -0.00274264375578 0)
(0.00155254952724 -0.00304691495782 0)
(0.00148942152172 -0.0033484978549 0)
(0.00135775415922 -0.00364875233485 0)
(0.00114286971635 -0.0039578599028 0)
(0.000882451074602 -0.00435138334378 0)
(0.000552266477591 -0.00459130861993 0)
(0.000178990153862 -0.00474243234781 0)
(-0.000251115107169 -0.00485710704595 0)
(-0.000734499504695 -0.00491924277603 0)
(-0.00128493535893 -0.0050198435406 0)
(-0.00188181174454 -0.00512230722097 0)
(-0.00249069142023 -0.00518856275164 0)
(-0.00325258644099 -0.00548736798172 0)
(-0.00404036617277 -0.00579913528305 0)
(-0.00474075660724 -0.00605441381103 0)
(-0.00527775661316 -0.00633665295287 0)
(-0.00519073690271 -0.00689943317303 0)
(0.00599838163825 -0.0107051399463 0)
(-0.0669077111252 -0.00324880058037 0)
(0.265514702893 0.550585657701 0)
(-0.310611625646 0.481441563177 0)
(0.181735136575 0.38674871247 0)
(-0.0619668899676 0.431637676384 0)
(0.0474220465868 0.442387846738 0)
(0.00540525435271 0.471838894303 0)
(0.025545434658 0.484587178261 0)
(0.0234602688726 0.495461994983 0)
(0.0282902934609 0.499622308495 0)
(0.031523983502 0.500074933663 0)
(0.0347120315535 0.497103329888 0)
(0.0382654210976 0.491088807074 0)
(0.0415632512822 0.48228316866 0)
(0.0449958802259 0.470279097412 0)
(0.0482394692937 0.454838083829 0)
(0.0512952164526 0.435560340833 0)
(0.0540555790124 0.412761122749 0)
(0.0566880188873 0.387861565887 0)
(0.0599770047964 0.364648811038 0)
(0.067434091527 0.349324742538 0)
(0.0822362837636 0.346158590995 4.08919001679e-30)
(0.095745835814 0.34037346662 0)
(0.046876583431 0.316792618081 0)
(0.00649289978587 0.00954533964618 0)
(0.00522324366334 0.00470517212249 0)
(0.00317713282849 0.0036870463134 0)
(0.00276211342053 0.00310744875188 0)
(0.00257428368616 0.0027872736756 0)
(0.00240105247619 0.0025843887586 0)
(0.00220242569698 0.00245420316151 0)
(0.00197363088971 0.00236243075079 0)
(0.00173457796091 0.00230206453608 -2.57336494455e-31)
(0.00149128104923 0.0022588646488 0)
(0.00125085444401 0.00223366286748 0)
(0.00103641131439 0.00226853687863 -2.64970523041e-31)
(0.000819505284637 0.00229237782515 0)
(0.000618340897082 0.00232321364122 0)
(0.000438025064659 0.00235189937545 0)
(0.000260465178134 0.0023716116958 0)
(8.2808738983e-05 0.00227164261218 0)
(2.87825039382e-05 -0.000552668654955 0)
(0.000117749720228 -0.000692063663373 0)
(0.000230720196939 -0.000731306930759 2.90235157037e-29)
(0.000269281336139 -0.000657396712554 0)
(0.000330998370986 -0.000677474798273 0)
(0.000439275580203 -0.000702170846149 0)
(0.000556537471392 -0.000723687877215 0)
(0.000650663553352 -0.000745333984476 0)
(0.000717201491128 -0.000760959340023 0)
(0.000826873783412 -0.00083871546588 0)
(0.000937590626379 -0.000927306963495 1.39271814016e-29)
(0.0010483370843 -0.00101908399435 0)
(0.00116025290592 -0.00111854747622 0)
(0.00127333291389 -0.00122922652387 0)
(0.00138667269557 -0.00135605868979 0)
(0.0015001452475 -0.00150772577451 0)
(0.00161507704044 -0.00168564894963 0)
(0.00173110983659 -0.00188947021273 0)
(0.00184164986382 -0.00212259916409 0)
(0.00194110341706 -0.00239335624566 0)
(0.00202089871396 -0.00270202841539 0)
(0.00206673819884 -0.00303300364626 0)
(0.00205791159765 -0.00337435592366 0)
(0.00199324058817 -0.00376367546523 0)
(0.00184486603425 -0.00420602431746 0)
(0.00161033702253 -0.00464351141991 0)
(0.00128576790609 -0.00496527695718 0)
(0.000889615479458 -0.00516033678222 0)
(0.000443849218387 -0.005276015457 4.46561233491e-30)
(-6.72293383351e-05 -0.00540070371331 0)
(-0.000664880959315 -0.00565147261912 0)
(-0.00128437861265 -0.0058160863653 0)
(-0.00197969381954 -0.00593680387449 0)
(-0.00288865501877 -0.00629631764033 0)
(-0.00378726816739 -0.00659483785842 0)
(-0.00457608524409 -0.00671073328594 0)
(-0.00516788755496 -0.00670930967998 0)
(-0.00535738019762 -0.00648767639819 0)
(0.00277466614385 -0.00762934991522 0)
(-0.0704376528772 -0.000319345569857 0)
(0.259897056687 0.55268521613 0)
(-0.319679751942 0.479871041205 0)
(0.18688267775 0.389285392179 0)
(-0.0692296044638 0.435022866482 0)
(0.0496161605239 0.445219807044 0)
(0.00188172204217 0.475721182548 0)
(0.0244273468401 0.487515932675 0)
(0.0206995497358 0.498973849722 0)
(0.025469455621 0.502579642201 0)
(0.0280926736576 0.503391936072 0)
(0.0308496552636 0.500160608764 0)
(0.0340614239172 0.494394381328 0)
(0.0370610810578 0.485461420714 0)
(0.0404049412123 0.473567584964 0)
(0.0437135247107 0.457985819193 0)
(0.0471584926661 0.438737992657 0)
(0.0507107034388 0.416065138021 0)
(0.0546481630494 0.392032553079 0)
(0.0599674769705 0.370890079164 0)
(0.0729378247836 0.360179985232 0)
(0.098308527718 0.363062532815 -4.30413216934e-30)
(0.115961029609 0.349954607263 0)
(0.0915631847774 0.2618987174 0)
(0.00262467986516 0.000845489768886 0)
(0.00297375441897 0.00303273899642 0)
(0.00311567177475 0.00320250366329 0)
(0.00304926802973 0.00294480486721 0)
(0.002873891826 0.00259934910671 0)
(0.00274197850588 0.00238809630987 0)
(0.00251037072116 0.00221544726094 0)
(0.00226166816099 0.00210797063637 0)
(0.00199704167088 0.00204545494561 0)
(0.00172672934619 0.00201334864065 0)
(0.00145917964489 0.00199799213479 0)
(0.00120290784852 0.00200858277139 2.72595086588e-31)
(0.000953007634257 0.00203608079893 0)
(0.000718921572288 0.00210352299982 0)
(0.000511481264434 0.00217597897387 0)
(0.000300573038418 0.0021569704953 0)
(9.65222402271e-05 0.00209875643253 0)
(1.74385737571e-05 -0.000526218383051 0)
(9.10615511868e-05 -0.00059194813182 0)
(0.000207826790658 -0.000647228993192 -3.30255632782e-29)
(0.000274753979774 -0.000598307992508 0)
(0.000352675674928 -0.000520531217376 0)
(0.000456634529559 -0.000519152561065 0)
(0.000555562764063 -0.000546922204105 0)
(0.00068847136591 -0.00062050023596 0)
(0.000810278039843 -0.000687656196218 0)
(0.000930916600309 -0.000751959765142 0)
(0.00105354602815 -0.000822839233713 -1.36565741146e-29)
(0.00117798388094 -0.000903521438544 0)
(0.00130372882791 -0.000998038668396 0)
(0.00143170087157 -0.00110620888338 0)
(0.00156212216415 -0.00123139729057 0)
(0.00169523717596 -0.00137625045559 0)
(0.00183340572032 -0.00153762080152 0)
(0.00198299862549 -0.00172554506445 0)
(0.00215969715965 -0.00196887802319 0)
(0.00233328646969 -0.00225637524614 0)
(0.00249584694827 -0.00259105764919 -6.24060481804e-29)
(0.00263190786447 -0.00296992319631 5.95563011068e-29)
(0.00271972451077 -0.003388026342 0)
(0.00273757117572 -0.0038500934274 6.95630905596e-30)
(0.00266936115029 -0.00437022713492 0)
(0.00248788151974 -0.00490605143306 0)
(0.00216591260901 -0.00532124651463 0)
(0.0017431141254 -0.00557426923757 0)
(0.00126414699618 -0.00575625210419 -4.66100473341e-30)
(0.000721915545354 -0.00599958620814 0)
(0.000118296855809 -0.00623756015857 0)
(-0.000472573513567 -0.00634417154408 0)
(-0.00131533028862 -0.00687759705889 0)
(-0.00245458339371 -0.00731528761042 0)
(-0.0035446229135 -0.0074781513863 0)
(-0.00462617494948 -0.00751734916087 0)
(-0.00550655612567 -0.00736560967466 0)
(-0.00658322751272 -0.00668576125016 0)
(-0.000619352558279 -0.00512182619719 0)
(-0.0739324569916 0.00143249976701 0)
(0.256125434273 0.550905183677 0)
(-0.32577116193 0.483042281587 0)
(0.190978751516 0.393632163763 0)
(-0.0760639621929 0.438984554949 0)
(0.0513694258051 0.449907804494 0)
(-0.00201809197992 0.478355179024 0)
(0.0232344798004 0.491194621221 0)
(0.0175115622011 0.50090381343 0)
(0.0225437406442 0.505579758217 0)
(0.0242577247425 0.505391055605 0)
(0.0267714975224 0.503080904249 0)
(0.0294173907703 0.49694357474 0)
(0.0321972092059 0.488802103797 0)
(0.0352827442575 0.476944023855 0)
(0.0386398866673 0.462079803453 0)
(0.0422833623559 0.443143997815 0)
(0.0464546921616 0.421391447945 0)
(0.0515437454377 0.398459811526 0)
(0.0586780177811 0.379610359016 0)
(0.0772006527009 0.37204247512 0)
(0.110216227487 0.383994139708 0)
(0.105552374651 0.375973773296 0)
(0.0126724544281 0.0137292534979 0)
(-0.00293378473082 0.00566903591948 0)
(0.00261615809861 0.00420481943352 0)
(0.00326493762122 0.00344143050939 0)
(0.00339294541601 0.00289979069166 6.4511270258e-31)
(0.00324943653616 0.0024734937097 0)
(0.00304918394294 0.0021596702263 0)
(0.00282984293765 0.0019613641214 0)
(0.00255254650656 0.00183485501577 0)
(0.00227348001589 0.00176742187951 0)
(0.00198338361292 0.00173989009837 0)
(0.0016855886948 0.00173230130172 0)
(0.00140160152971 0.00175812072434 0)
(0.00111983430072 0.00179467684388 0)
(0.000840915696755 0.0018429140783 0)
(0.000613216650005 0.00197924144359 0)
(0.000361511945523 0.00192118959702 0)
(0.000130081063696 0.00190103143969 0)
(1.84108023465e-05 -0.000506007962791 0)
(8.32347775402e-05 -0.000485286200334 0)
(0.000203589811634 -0.00055235579069 3.5932975393e-29)
(0.000315330957584 -0.0005293706845 0)
(0.0003699855727 -0.000381631569892 0)
(0.00049701212933 -0.000414995910503 0)
(0.000626263747163 -0.00047044974399 0)
(0.000750329935658 -0.00051750501101 0)
(0.000877758153133 -0.000566402947026 0)
(0.00100636686977 -0.000624511174897 0)
(0.00113765863832 -0.000692514012265 0)
(0.00127190567534 -0.00077136513431 0)
(0.00140951253335 -0.000862278545158 0)
(0.00155170359786 -0.000965514865945 0)
(0.00169498708345 -0.00107745829313 0)
(0.00185741578046 -0.00120696765688 0)
(0.00206214921301 -0.0013678099958 0)
(0.00228149964443 -0.0015524342731 7.00423513754e-29)
(0.00251708994974 -0.00177925054745 -6.72794807897e-29)
(0.00276416421202 -0.00206322600029 0)
(0.00301207314593 -0.00240773631783 0)
(0.00324552073148 -0.00281372822172 6.21209102193e-29)
(0.00344718305181 -0.00327821994933 -5.96589123944e-29)
(0.00359688822106 -0.00381275770284 -7.22098247623e-30)
(0.00366390583303 -0.00444619257513 0)
(0.00357771234583 -0.00513971716 0)
(0.00326566439841 -0.00572688398674 0)
(0.00276943233693 -0.00605775906144 0)
(0.00224217376776 -0.00628106167877 0)
(0.00169916150776 -0.00654970753799 0)
(0.00113049166798 -0.00679492042271 0)
(0.000584824880227 -0.00698435827835 0)
(-0.000404654808105 -0.00795372364153 0)
(-0.00178237532203 -0.00848574234758 0)
(-0.00332632102024 -0.00876280699475 0)
(-0.00468366655184 -0.00849752336504 0)
(-0.00599977340567 -0.00856387083908 0)
(-0.00811678551905 -0.00783914857539 0)
(-0.0040076326096 -0.00567816969256 0)
(-0.077556147129 0.00261688320055 0)
(0.249255514046 0.56696774392 0)
(-0.33878094878 0.479520181266 0)
(0.198831823583 0.39583207379 -2.08551780842e-30)
(-0.0836581680129 0.442708648474 0)
(0.0549536111122 0.449332076182 0)
(-0.00498585227624 0.483246822371 0)
(0.0223743703222 0.491133643933 0)
(0.0149483735117 0.505194597085 0)
(0.0191657926321 0.506468379356 0)
(0.0204004051718 0.509056280725 0)
(0.0217871797499 0.504672677984 0)
(0.0241047339213 0.500182653492 0)
(0.0260092291879 0.490829495775 0)
(0.0288870763109 0.479929920704 0)
(0.0319304119048 0.464439380693 0)
(0.0359988146074 0.446409383598 0)
(0.0412633405913 0.425244200898 0)
(0.0489136543016 0.405702536456 0)
(0.060794748229 0.392774371175 0)
(0.0829218532559 0.393935668591 0)
(0.103514081016 0.39801927023 0)
(0.051899604556 0.371019832258 0)
(0.010370429601 0.0135106812605 0)
(0.00791058214452 0.00619256754268 0)
(0.00519821669477 0.00438991622937 0)
(0.00442215318286 0.00336171851925 0)
(0.00401819586095 0.0027175423587 -6.44837577001e-31)
(0.00371078221377 0.00225847535489 0)
(0.00331282767696 0.00186877694525 5.06189303396e-31)
(0.00313106926698 0.00168337529357 0)
(0.00282737849609 0.0015421821749 0)
(0.00252244881781 0.00146345468308 0)
(0.00222872549147 0.0014378802791 0)
(0.0019111367061 0.00143327430999 0)
(0.00161450777593 0.00146652022287 0)
(0.00131067942524 0.00151752361376 0)
(0.000993725242712 0.00157105756155 0)
(0.00073831272517 0.00171419977209 0)
(0.000451825480187 0.00170495820687 0)
(0.000160314807127 0.00163890413949 0)
(3.22794879213e-05 -0.000415947979018 0)
(7.25843426087e-05 -0.000323107994908 0)
(0.00019506126323 -0.000427452464051 -3.81855424498e-29)
(0.000382064564224 -0.000447482025007 0)
(0.00038797164843 -0.000280732611905 0)
(0.00054065597798 -0.000314931417598 0)
(0.000657090688237 -0.00034736010369 0)
(0.000780623944456 -0.000389085146695 0)
(0.000909019553468 -0.000436615875132 0)
(0.00104253758212 -0.0004916502135 0)
(0.00118278359761 -0.000555000026031 0)
(0.00133081227426 -0.000628625669019 0)
(0.00148804842944 -0.00071422893452 0)
(0.00164930371977 -0.000806570990807 0)
(0.00182793147551 -0.000907609454761 0)
(0.00204323181492 -0.00102156957503 0)
(0.00228142260839 -0.0011437230832 0)
(0.00254722174684 -0.00129600174563 0)
(0.00284302116155 -0.00150166625043 0)
(0.00316691521615 -0.00176943840154 0)
(0.0035156366967 -0.0021115320819 0)
(0.00387131592898 -0.00253498255617 0)
(0.00422476392374 -0.0030301286202 0)
(0.00456889533495 -0.00360205233354 0)
(0.00486574845949 -0.00434390097412 0)
(0.00499095734013 -0.00527879179018 0)
(0.00470941246248 -0.0061299340576 0)
(0.00401933884025 -0.00659501832849 0)
(0.00339027962819 -0.00688861305136 0)
(0.00289582676539 -0.0070572762309 0)
(0.002446517476 -0.00730954960849 0)
(0.0020339075137 -0.00734046764817 0)
(0.00096559507761 -0.00998357721778 0)
(-0.000700152363818 -0.00932957917419 0)
(-0.00283670314203 -0.0115142152086 0)
(-0.00435338834821 -0.00924100813103 0)
(-0.00616256955273 -0.0108977554238 3.15323759368e-30)
(-0.00944956213793 -0.0103543849905 0)
(-0.00853958626809 -0.00913065038266 0)
(-0.0845519793761 0.00314178564557 0)
(0.25229594338 0.542973108025 0)
(-0.328958599884 0.500531355801 0)
(0.199031201485 0.406232981027 2.08797176199e-30)
(-0.0879149998129 0.44784500654 0)
(0.0556120709376 0.462730352934 0)
(-0.00984265396814 0.480129400837 0)
(0.0213885379811 0.499350726631 0)
(0.0104029634273 0.500547545575 0)
(0.0164439555301 0.510915500594 0)
(0.0154374499039 0.505767339439 0)
(0.017637270274 0.50785083462 0)
(0.0184261921265 0.49952257393 0)
(0.0206307931581 0.494933485734 0)
(0.0224971054174 0.482924944164 0)
(0.0255647228112 0.471596620685 0)
(0.0289654859075 0.454406925709 0)
(0.0336446785104 0.437555595395 0)
(0.0399874975698 0.419113626409 0)
(0.0521985181272 0.4090968929 0)
(0.0934344371921 0.401729504986 0)
(0.140918036746 0.393499087291 0)
(0.11760079525 0.322354831293 0)
(0.0059076904741 0.000631849385938 0)
(0.00596221032501 0.00329833612711 0)
(0.00546264717326 0.00331118876666 0)
(0.00494134283467 0.00282752200636 0)
(0.00449776009632 0.00232735198881 0)
(0.00410343136403 0.00191302427599 0)
(0.00367314933817 0.00158417009579 -5.04976301788e-31)
(0.00335780325699 0.00135788921289 0)
(0.00306956600937 0.00122309500395 0)
(0.00273649892137 0.00115071568904 4.79286676872e-31)
(0.0024478255532 0.00112917826265 0)
(0.00214157191339 0.0011329641667 0)
(0.00180826736819 0.00114826653648 0)
(0.00150992814944 0.00120980167435 0)
(0.00119970072129 0.00131140065166 0)
(0.000890370307557 0.00146304771561 0)
(0.000481728909302 0.00141537857874 0)
(0.000131946784892 0.00124144911535 0)
(5.94372987829e-05 -0.000400638358565 0)
(0.000149739025185 -0.000344260713374 0)
(0.000259976067906 -0.00032388464862 4.26616841628e-29)
(0.000366836651356 -0.000281669993065 0)
(0.000389767480386 -0.000191182135191 0)
(0.000527766678743 -0.000200581326789 0)
(0.000641028644846 -0.000224091170962 0)
(0.00076206228728 -0.000262847583043 0)
(0.000886499908714 -0.000303949300639 0)
(0.00102138629963 -0.0003484246191 0)
(0.00117114203283 -0.000398309237495 0)
(0.00134025485776 -0.000459466448228 0)
(0.00152226223606 -0.000532351464809 0)
(0.00172875116899 -0.000618515456484 0)
(0.00194274256079 -0.000706525997715 0)
(0.00217908884921 -0.000789529584951 0)
(0.00245128350197 -0.000873802515016 0)
(0.00276470631784 -0.000989900128727 0)
(0.00311758514715 -0.00115760518113 0)
(0.00352644155963 -0.00138483465332 0)
(0.00398546882251 -0.00169536711562 0)
(0.00448192152287 -0.00209622607426 0)
(0.00502424296128 -0.00252388384426 0)
(0.0056639092851 -0.00304115082523 0)
(0.00638635430912 -0.00388641557971 0)
(0.00699497464207 -0.00518251091243 0)
(0.00709088548483 -0.00663493279578 0)
(0.00610301233089 -0.00720934414882 0)
(0.00460755160604 -0.00687279913248 0)
(0.00434747317647 -0.00718031286333 0)
(0.00424364334642 -0.00656036639721 0)
(0.00516850250382 -0.00714232066206 0)
(0.00271293874849 -0.00711176447551 0)
(0.00231074428206 -0.00926000130974 0)
(-0.00103636687864 -0.00780629632722 0)
(-0.00378679860898 -0.00903125563927 0)
(-0.00467783915003 -0.0100889739671 -3.15380574695e-30)
(-0.00985453364507 -0.014827059372 0)
(-0.0147160300269 -0.0214148233276 0)
(-0.0941930870579 0.000627728073032 0)
(0.228284791321 0.656702500205 0)
(-0.374302792058 0.450381143438 0)
(0.226165268597 0.392855483657 0)
(-0.0991010931631 0.456252659033 0)
(0.0676128403366 0.431981797008 0)
(-0.00810642853405 0.502156192448 0)
(0.021767967225 0.478093742686 0)
(0.0112743373563 0.520898100807 0)
(0.0113993481578 0.499843624028 0)
(0.0125302195007 0.520868100702 0)
(0.0096646737164 0.502309721097 0)
(0.0117385087814 0.508704908064 0)
(0.0102193569152 0.49063417352 0)
(0.0123247661806 0.486054932729 0)
(0.013095548408 0.465539301846 0)
(0.0170262818117 0.45254884693 0)
(0.0237089144992 0.430893882337 0)
(0.0363136508685 0.422785303227 0)
(0.0675289035371 0.425665267615 0)
(0.134849870602 0.483967492414 0)
(0.100438667246 0.526977230885 0)
(0.024580568494 0.0240753922429 0)
(-0.00152259975092 0.00443620305714 0)
(0.00501235297873 0.00422902734531 0)
(0.00566847779097 0.00313155889372 0)
(0.00540892549924 0.00240583762074 0)
(0.00493447628842 0.0018763835283 0)
(0.00445498755303 0.00149318501862 0)
(0.00398172458739 0.00121477239115 0)
(0.00354192470932 0.000992283249387 0)
(0.00326782216357 0.000883282592493 0)
(0.00292909941133 0.000844446933627 -4.7377262558e-31)
(0.00263219068965 0.000827185986893 0)
(0.00232856614566 0.000821556823811 0)
(0.00200164248917 0.000843013010911 0)
(0.00165739013891 0.000882224701943 0)
(0.00129517166444 0.000934077012646 0)
(0.000908394673255 0.000995228492186 0)
(0.00044190665901 0.00094114940811 0)
(0.000126101585841 0.000994598166747 0)
(8.06915419806e-05 -0.00025158870918 0)
(0.000256898855147 -0.000213670563513 0)
(0.000291542867829 -0.000196239272455 3.47344788369e-29)
(0.000503259698452 -0.000267102838493 0)
(0.000377935087463 -0.000125419420669 0)
(0.000493892803744 -8.95145740006e-05 0)
(0.000599320180923 -9.69170280429e-05 0)
(0.000720184949638 -0.000135934995173 0)
(0.000838968102163 -0.00016348756748 0)
(0.000992724011091 -0.000192485854742 0)
(0.00116414370448 -0.000226401943163 0)
(0.00135478109136 -0.000272703285424 0)
(0.00155986298532 -0.000334036234498 0)
(0.00177082289529 -0.00040705484622 0)
(0.0019823398829 -0.000480558419268 0)
(0.00223071591931 -0.000527518944886 0)
(0.00251649860337 -0.000544052181113 0)
(0.00287567411686 -0.000597663329666 0)
(0.00333646425825 -0.000723368308236 0)
(0.00385795852496 -0.000887689884877 0)
(0.00445151366138 -0.00110322853167 0)
(0.00524874103862 -0.00143337807671 0)
(0.00649354496576 -0.00191504149888 0)
(0.00749790443003 -0.00233742825474 0)
(0.00849890405912 -0.00302048133007 0)
(0.00995865975828 -0.00461523071713 0)
(0.0113775361458 -0.00739948144224 0)
(0.0117947187013 -0.00951762313303 0)
(0.0092450446242 -0.0093886476524 0)
(0.00608496172149 -0.00701820200102 0)
(0.0127899839882 -0.00986499137134 0)
(0.00544831667201 -0.00377977588276 0)
(0.0630213177341 -0.0384140298533 0)
(0.0037896422107 -0.00525721755099 0)
(0.0550748281847 -0.0639772433024 0)
(0.00353308166292 -0.00784647414286 0)
(0.0060466152235 -0.0246084940232 0)
(0.00233242293602 -0.0115202761655 0)
(-0.0200517557059 -0.0185210022518 0)
(-0.137707095481 -0.0326396165078 0)
(0.298326752038 0.473913608345 0)
(-0.239735189725 0.551643698999 0)
(0.174699206254 0.456075276542 0)
(-0.0897914739059 0.471011859256 0)
(0.0581400724702 0.498590771991 0)
(-0.0249929447652 0.47519410896 0)
(0.0246192873216 0.513492332447 0)
(-0.00484414187379 0.487373682738 0)
(0.0152827461183 0.513921732191 0)
(0.00130963426496 0.494325177354 0)
(0.012201701109 0.508901905224 0)
(0.00437384805438 0.495126981077 0)
(0.0111419103129 0.501097559005 0)
(0.00729155642996 0.490260805629 0)
(0.0116781596809 0.490282435266 0)
(0.0109730895256 0.480042325403 0)
(0.0128353231353 0.478367939585 0)
(0.011628365618 0.471219285677 0)
(-0.00835186379424 0.470072810806 0)
(0.02418272651 0.408568253824 0)
(0.0743174252461 0.276684934618 0)
(0.0330662097939 0.00636625074408 0)
(0.0192793621264 0.00263452938903 0)
(0.0073638829016 0.00506355132328 0)
(0.00728490475857 0.00266640382017 0)
(0.0062006823451 0.00178468155196 0)
(0.00541234582756 0.00128296852341 0)
(0.00476600536523 0.000976281247104 0)
(0.00422806062522 0.000775620456234 0)
(0.00365230491886 0.000594220914864 0)
(0.00344256714138 0.000530464367773 0)
(0.00306406593101 0.000519433771427 0)
(0.00271950402175 0.000506427645872 0)
(0.00240202531895 0.000491445068537 0)
(0.00207338593739 0.000493070057041 0)
(0.00171230409706 0.000512968824932 0)
(0.00134661387461 0.000548128461509 0)
(0.00098112345048 0.000592717883432 0)
(0.000553844502468 0.000596769197015 0)
(0.00021335205275 0.000759849517829 0)
(0.000140728028629 -0.000100996854689 0)
(0.000184476898158 -3.63598692699e-05 0)
(0.000353588161217 -8.11209514368e-05 -3.41402407243e-29)
(0.00057604620957 -0.000115117554254 0)
(0.000786715114602 -0.000109836899917 0)
(0.000872674753183 -2.90836144616e-05 0)
(0.000836773199852 -2.1014135157e-05 0)
(0.000960496043948 -4.53449632325e-05 0)
(0.00106136350159 -5.45891001224e-05 0)
(0.00117441252884 -5.89216582974e-05 0)
(0.00130202416406 -6.72347536516e-05 0)
(0.00145325000679 -8.32832944919e-05 0)
(0.00164989475253 -0.000110046896086 0)
(0.00190590864904 -0.000148445780376 0)
(0.00223885069829 -0.000192721300649 0)
(0.00270602866144 -0.000217723474575 0)
(0.00312670419879 -0.000201866727247 0)
(0.00343807770682 -0.000194787515077 0)
(0.00388192743127 -0.000233068356981 0)
(0.00444744924848 -0.000290181729903 0)
(0.00508513156768 -0.000351287152301 0)
(0.00591002937183 -0.000430430443144 0)
(0.00710562185397 -0.000576960931494 0)
(0.00871487017017 -0.000781962513084 0)
(0.0103528586974 -0.00107394213197 0)
(0.0129054952011 -0.00183143389977 0)
(0.0171470959328 -0.00379554561999 0)
(0.031904270988 -0.00675457492051 0)
(0.0383386327757 -0.00689497749866 0)
(0.058299758306 0.0028928425772 0)
(0.0547677621421 0.0134081141294 0)
(0.0528856257306 0.0358335151799 0)
(0.0142074742077 0.00132044059562 0)
(0.0935397014036 0.0346633655722 0)
(0.0215251468306 0.000230180899755 0)
(0.190394090112 0.0300256711334 0)
(0.0165776672732 -0.00576222453798 0)
(0.321397910519 0.0285916462158 0)
(0.207356618307 -0.0595451215165 0)
(-0.15349043538 -0.0245566595229 0)
(1.29818313938 1.2529446748 0)
(-2.10516892203 0.10323099867 0)
(2.5298888498 0.315040927257 0)
(-2.0406989995 0.550567818368 0)
(2.18793098453 0.215909183176 0)
(-1.31752043672 0.672773424351 0)
(1.54898428231 0.308900277388 0)
(-0.705613154246 0.662939270611 0)
(1.02890785605 0.394235613389 0)
(-0.306426048077 0.618418490606 0)
(0.678246387904 0.437848067765 0)
(-0.058764170407 0.565510368668 0)
(0.468366457543 0.443940513986 0)
(0.109809987646 0.506896804099 0)
(0.369296239031 0.41762527011 0)
(0.262050929922 0.441532857255 0)
(0.356931350738 0.368359917609 0)
(0.459351843064 0.393319689762 0)
(0.368189617926 0.359272004929 0)
(0.791326983435 0.631570221056 0)
(0.0480725114481 1.01968602943 0)
(0.0191336280427 0.021429201672 0)
(0.00741108399546 -0.0153634265784 0)
(0.00536705608539 0.00207568642091 0)
(0.00893617505573 0.000996960662634 0)
(0.00678761601496 0.000642546259247 0)
(0.00573714824971 0.000443648644195 0)
(0.00495673270454 0.000329327315055 0)
(0.00437139189871 0.000257400889637 0)
(0.00371991368503 0.000188952999288 0)
(0.00359004452743 0.000167571300516 0)
(0.00321814493165 0.000170392223921 0)
(0.00284574669596 0.000169070144424 0)
(0.00251093981402 0.000161623959612 0)
(0.00219430078485 0.000159968167149 0)
(0.00186284541008 0.000171544399558 0)
(0.00150677747157 0.000192265103355 0)
(0.00112865887949 0.000208109417717 0)
(0.000669255266249 0.000197396423668 0)
(0.000335102870628 0.000302035165579 0)
)
;
boundaryField
{
frontAndBack
{
type empty;
}
upperWall
{
type noSlip;
}
lowerWall
{
type noSlip;
}
inlet
{
type fixedValue;
value uniform (0 0.5 0);
}
outlet
{
type adjointOutletVelocityPower;
value nonuniform List<vector>
20
(
(0.164801281147 -0.35704368804 0)
(0.393158189515 -0.300199451429 0)
(0.493375200694 -0.230313033026 0)
(0.551977358159 -0.166021830906 0)
(0.587075687501 -0.105482927332 0)
(0.605597086094 -0.0500078469572 0)
(0.611481248395 0.00448508270599 0)
(0.607934134348 0.0501044097013 0)
(0.599378968323 0.0897751877899 0)
(0.587421955852 0.124877972332 0)
(0.572740264178 0.15613048216 0)
(0.555567225367 0.184069102234 0)
(0.53597619394 0.209090095912 0)
(0.513914294914 0.231542398676 0)
(0.489173611323 0.251792907282 0)
(0.461212212823 0.270179513889 0)
(0.429108573332 0.286941168317 0)
(0.391726387959 0.302977398653 0)
(0.351213106888 0.320483800975 0)
(0.25642024088 0.330406874263 0)
)
;
}
}
// ************************************************************************* //
| [
"as998@snu.edu.in"
] | as998@snu.edu.in | |
e807acee4ccf525dbdab6952fff7d713fdb29d1d | 47a72d0664cbded5bc44b2f43f864b5d54558971 | /Homework/Assignment_4/Savitch_7thEd_Chap4_Prob4/main.cpp | 42608d9ddeaf5a692c22fadf4f50a609e823d513 | [] | no_license | davmac909/MaciasDavid_CSC5_41202 | 080e851f334d093ade9cae318aa75735734820fc | 0e2fc7ca53e6b4961b66a453e80bccca0f2a0e2a | refs/heads/master | 2021-01-10T11:51:33.946302 | 2016-02-11T11:37:55 | 2016-02-11T11:37:55 | 49,084,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,486 | cpp | /*
* Author: David Macias
* Created on January 24, 2016, 6:39 PM
* Purpose: Caculate the Inflation rate of an item
*/
//System Libraries
#include <iostream>
using namespace std;
//User Libraries
//Global Constants
//Function Prototypes
float inRate(float yearAgo, float yearNow);
//Function returns the rate of inflation
//for the price of a hotdog a year ago and
//the price for a hot dog now
//Execution Begins Here
int main(int argc, char** argv) {
//Introduce program
cout <<"Hello. This program computes the rate of inflation for any item" <<endl;
cout <<"when the price a year ago and the price now are inputted." <<endl <<endl;
//Declare and Initialize variables
float costOld; //Price of an item a year ago
float costNow; //Price of an item now
char rpt; //Input to repeat program
do {
//Input the prices for the item
cout <<"What was the price of any item a year ago?" <<endl;
cin >>costOld;
cout <<"What is the price for the item now?" <<endl;
cin >>costNow;
//Output results
cout <<inRate(costOld, costNow) <<"% is the Rate of inflation for this item." <<endl <<endl;
//Exit stage right
cout <<"Enter anything to repeat or '0' to stop" <<endl;
cin >>rpt;
}while(rpt != '0');
return 0;
}
//Function Definition
float inRate(float yearAgo, float yearNow){
return ((yearNow-yearAgo)/yearAgo);
} | [
"davmac909@gmail.com"
] | davmac909@gmail.com |
7caac06271d85bb6505d0dfcc049997d0080526a | 6ca3b5baa4c4d152f8adc5f130283097c3cf806d | /Injectora/JuceLibraryCode/modules/juce_events/messages/juce_MessageListener.h | 12f35c2c0b454881307e2c73b010ba768df25476 | [
"MIT"
] | permissive | fengjixuchui/Injectora | 3ee5458d2f95e9b945eac221098d5b1e4150251d | 4bc3443e5b49168422c6448add9d9176333d8478 | refs/heads/master | 2021-07-11T14:18:40.225481 | 2020-07-10T02:54:44 | 2020-07-10T02:54:44 | 173,973,031 | 0 | 0 | MIT | 2020-07-10T02:54:45 | 2019-03-05T15:34:09 | C++ | UTF-8 | C++ | false | false | 2,489 | h | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2013 - Raw Material Software Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL v3
Details of these licenses can be found at: www.gnu.org/licenses
JUCE 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.
------------------------------------------------------------------------------
To release a closed-source product which uses JUCE, commercial licenses are
available: visit www.juce.com for more information.
==============================================================================
*/
#ifndef JUCE_MESSAGELISTENER_H_INCLUDED
#define JUCE_MESSAGELISTENER_H_INCLUDED
//==============================================================================
/**
MessageListener subclasses can post and receive Message objects.
@see Message, MessageManager, ActionListener, ChangeListener
*/
class JUCE_API MessageListener
{
public:
//==============================================================================
MessageListener() noexcept;
/** Destructor. */
virtual ~MessageListener();
//==============================================================================
/** This is the callback method that receives incoming messages.
This is called by the MessageManager from its dispatch loop.
@see postMessage
*/
virtual void handleMessage (const Message& message) = 0;
//==============================================================================
/** Sends a message to the message queue, for asynchronous delivery to this listener
later on.
This method can be called safely by any thread.
@param message the message object to send - this will be deleted
automatically by the message queue, so make sure it's
allocated on the heap, not the stack!
@see handleMessage
*/
void postMessage (Message* message) const;
private:
WeakReference<MessageListener>::Master masterReference;
friend class WeakReference<MessageListener>;
};
#endif // JUCE_MESSAGELISTENER_H_INCLUDED
| [
"blood_099@hotmail.com"
] | blood_099@hotmail.com |
5da86c26e1b2c4d09f6145b61034208c9574809f | c0177f6ee9ed5fcd549ce48af2a6b2eab14219f6 | /OOP With C++/Chapter 11 'Working with Files'/debug/11.2/main.cpp | e3b4caca74be6d1341d1a2547ab7a9cfc911e651 | [
"MIT"
] | permissive | idesign0/robotics | 99d8f9be5690485a0b78120d815521a2617429b5 | 69a7961a563276fbf021814c0b4577d4c45f3eb8 | refs/heads/master | 2021-07-09T18:26:27.739304 | 2020-10-29T12:59:52 | 2020-10-29T12:59:52 | 210,374,010 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 379 | cpp | #include<iostream>
#include<fstream>
#include<stdlib.h>
#include<cstring>
using namespace std;
int main(){
char buf[80];
ifstream fin;
ofstream fout("chll_2.cpp");
fout << "aasdasdasdas";;
fout.close();
fin.open("chll_2.cpp");
if(fin.fail()){
cout << "....";
exit(1);
}
fin.getline(buf,80);
cout<<buf;
return 0;
}
| [
"dhruvpatel2991998@gmail.com"
] | dhruvpatel2991998@gmail.com |
8acf718296217d4d64cfcfbed0a4687bba1a98fb | 6e57bdc0a6cd18f9f546559875256c4570256c45 | /hardware/qcom/camera/msm8998/QCamera2/HAL/QCameraMem.h | c0d5669d75c61e0bbb575f839d90cad9e51241d7 | [] | no_license | dongdong331/test | 969d6e945f7f21a5819cd1d5f536d12c552e825c | 2ba7bcea4f9d9715cbb1c4e69271f7b185a0786e | refs/heads/master | 2023-03-07T06:56:55.210503 | 2020-12-07T04:15:33 | 2020-12-07T04:15:33 | 134,398,935 | 2 | 1 | null | 2022-11-21T07:53:41 | 2018-05-22T10:26:42 | null | UTF-8 | C++ | false | false | 12,284 | h | /* Copyright (c) 2012-2017, The Linux Foundation. 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 The Linux Foundation 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 "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
* 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.
*
*/
#ifndef __QCAMERA2HWI_MEM_H__
#define __QCAMERA2HWI_MEM_H__
// System dependencies
#include <linux/msm_ion.h>
#include <utils/Mutex.h>
#include <utils/List.h>
//Media depedancies
#include "OMX_QCOMExtns.h"
// Display dependencies
#include "qdMetaData.h"
// Camera dependencies
#include "camera.h"
extern "C" {
#include "mm_camera_interface.h"
}
namespace qcamera {
class QCameraMemoryPool;
//Buffer identity
//Note that this macro might have already been
//defined in OMX_QCOMExtns.h, in which case
//the local value below will not be used.
#ifndef VIDEO_METADATA_NUM_COMMON_INTS
#define VIDEO_METADATA_NUM_COMMON_INTS 1
#endif
enum QCameraMemType {
QCAMERA_MEM_TYPE_DEFAULT = 0,
QCAMERA_MEM_TYPE_SECURE = 1,
QCAMERA_MEM_TYPE_BATCH = (1 << 1),
QCAMERA_MEM_TYPE_COMPRESSED = (1 << 2),
};
enum QCameraVideoMetaBufInts {
VIDEO_META_OFFSET = MetaBufferUtil::INT_OFFSET,
VIDEO_META_SIZE = MetaBufferUtil::INT_SIZE,
VIDEO_META_USAGE = MetaBufferUtil::INT_USAGE,
VIDEO_META_TIMESTAMP = MetaBufferUtil::INT_TIMESTAMP,
VIDEO_META_FORMAT = MetaBufferUtil::INT_COLORFORMAT,
VIDEO_META_BUFIDX = MetaBufferUtil::INT_BUFINDEX,
VIDEO_META_EVENT = MetaBufferUtil::INT_BUFEVENT,
//Add per frame Ints before this
VIDEO_METADATA_NUM_INTS = MetaBufferUtil::INT_TOTAL,
};
typedef enum {
STATUS_IDLE,
STATUS_SKIPPED
} BufferStatus;
// Base class for all memory types. Abstract.
class QCameraMemory {
public:
int cleanCache(uint32_t index)
{
return cacheOps(index, ION_IOC_CLEAN_CACHES);
}
int invalidateCache(uint32_t index)
{
return cacheOps(index, ION_IOC_INV_CACHES);
}
int cleanInvalidateCache(uint32_t index)
{
return cacheOps(index, ION_IOC_CLEAN_INV_CACHES);
}
int getFd(uint32_t index) const;
ssize_t getSize(uint32_t index) const;
uint8_t getCnt() const;
virtual uint8_t getMappable() const;
virtual uint8_t checkIfAllBuffersMapped() const;
virtual int allocate(uint8_t count, size_t size) = 0;
virtual void deallocate() = 0;
virtual int allocateMore(uint8_t count, size_t size) = 0;
virtual int cacheOps(uint32_t index, unsigned int cmd) = 0;
virtual int getRegFlags(uint8_t *regFlags) const = 0;
virtual camera_memory_t *getMemory(uint32_t index,
bool metadata) const = 0;
virtual int getMatchBufIndex(const void *opaque, bool metadata) const = 0;
virtual void *getPtr(uint32_t index) const= 0;
QCameraMemory(bool cached,
QCameraMemoryPool *pool = NULL,
cam_stream_type_t streamType = CAM_STREAM_TYPE_DEFAULT,
QCameraMemType buf_Type = QCAMERA_MEM_TYPE_DEFAULT);
virtual ~QCameraMemory();
virtual void reset();
void getBufDef(const cam_frame_len_offset_t &offset,
mm_camera_buf_def_t &bufDef, uint32_t index) const;
int32_t getUserBufDef(const cam_stream_user_buf_info_t &buf_info,
mm_camera_buf_def_t &bufDef, uint32_t index,
const cam_frame_len_offset_t &plane_offset,
mm_camera_buf_def_t *planebufDef, QCameraMemory *bufs) const;
protected:
friend class QCameraMemoryPool;
struct QCameraMemInfo {
int fd;
int main_ion_fd;
ion_user_handle_t handle;
size_t size;
bool cached;
unsigned int heap_id;
};
int alloc(int count, size_t size, unsigned int heap_id);
void dealloc();
static int allocOneBuffer(struct QCameraMemInfo &memInfo,
unsigned int heap_id, size_t size, bool cached, bool is_secure);
static void deallocOneBuffer(struct QCameraMemInfo &memInfo);
int cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr);
bool m_bCached;
uint8_t mBufferCount;
struct QCameraMemInfo mMemInfo[MM_CAMERA_MAX_NUM_FRAMES];
QCameraMemoryPool *mMemoryPool;
cam_stream_type_t mStreamType;
QCameraMemType mBufType;
};
class QCameraMemoryPool {
public:
QCameraMemoryPool();
virtual ~QCameraMemoryPool();
int allocateBuffer(struct QCameraMemory::QCameraMemInfo &memInfo,
unsigned int heap_id, size_t size, bool cached,
cam_stream_type_t streamType, bool is_secure);
void releaseBuffer(struct QCameraMemory::QCameraMemInfo &memInfo,
cam_stream_type_t streamType);
void clear();
protected:
int findBufferLocked(struct QCameraMemory::QCameraMemInfo &memInfo,
unsigned int heap_id, size_t size, bool cached,
cam_stream_type_t streamType);
android::List<QCameraMemory::QCameraMemInfo> mPools[CAM_STREAM_TYPE_MAX];
pthread_mutex_t mLock;
};
// Internal heap memory is used for memories used internally
// They are allocated from /dev/ion.
class QCameraHeapMemory : public QCameraMemory {
public:
QCameraHeapMemory(bool cached);
virtual ~QCameraHeapMemory();
virtual int allocate(uint8_t count, size_t size);
virtual int allocateMore(uint8_t count, size_t size);
virtual void deallocate();
virtual int cacheOps(uint32_t index, unsigned int cmd);
virtual int getRegFlags(uint8_t *regFlags) const;
virtual camera_memory_t *getMemory(uint32_t index, bool metadata) const;
virtual int getMatchBufIndex(const void *opaque, bool metadata) const;
virtual void *getPtr(uint32_t index) const;
private:
void *mPtr[MM_CAMERA_MAX_NUM_FRAMES];
};
class QCameraMetadataStreamMemory : public QCameraHeapMemory {
public:
QCameraMetadataStreamMemory(bool cached);
virtual ~QCameraMetadataStreamMemory();
virtual int getRegFlags(uint8_t *regFlags) const;
};
// Externel heap memory is used for memories shared with
// framework. They are allocated from /dev/ion or gralloc.
class QCameraStreamMemory : public QCameraMemory {
public:
QCameraStreamMemory(camera_request_memory getMemory,
void* cbCookie,
bool cached,
QCameraMemoryPool *pool = NULL,
cam_stream_type_t streamType = CAM_STREAM_TYPE_DEFAULT,
QCameraMemType buf_Type = QCAMERA_MEM_TYPE_DEFAULT);
virtual ~QCameraStreamMemory();
virtual int allocate(uint8_t count, size_t size);
virtual int allocateMore(uint8_t count, size_t size);
virtual void deallocate();
virtual int cacheOps(uint32_t index, unsigned int cmd);
virtual int getRegFlags(uint8_t *regFlags) const;
virtual camera_memory_t *getMemory(uint32_t index, bool metadata) const;
virtual int getMatchBufIndex(const void *opaque, bool metadata) const;
virtual void *getPtr(uint32_t index) const;
protected:
camera_request_memory mGetMemory;
camera_memory_t *mCameraMemory[MM_CAMERA_MAX_NUM_FRAMES];
void* mCallbackCookie;
};
// Externel heap memory is used for memories shared with
// framework. They are allocated from /dev/ion or gralloc.
class QCameraVideoMemory : public QCameraStreamMemory {
public:
QCameraVideoMemory(camera_request_memory getMemory, void* cbCookie, bool cached,
QCameraMemType bufType = QCAMERA_MEM_TYPE_DEFAULT);
virtual ~QCameraVideoMemory();
virtual int allocate(uint8_t count, size_t size);
virtual int allocateMore(uint8_t count, size_t size);
virtual void deallocate();
virtual camera_memory_t *getMemory(uint32_t index, bool metadata) const;
virtual int getMatchBufIndex(const void *opaque, bool metadata) const;
int allocateMeta(uint8_t buf_cnt, int numFDs);
void deallocateMeta();
void setVideoInfo(int usage, cam_format_t format);
int getUsage(){return mUsage;};
int getFormat(){return mFormat;};
int convCamtoOMXFormat(cam_format_t format);
int closeNativeHandle(const void *data, bool metadata = true);
native_handle_t *getNativeHandle(uint32_t index, bool metadata = true);
static int closeNativeHandle(const void *data);
int32_t updateNativeHandle(native_handle_t *nh,
int batch_idx, int fd, int size, int ts = 0);
bool needPerfEvent(const void *data, bool metadata = true);
private:
camera_memory_t *mMetadata[MM_CAMERA_MAX_NUM_FRAMES];
uint8_t mMetaBufCount;
int mUsage, mFormat;
native_handle_t *mNativeHandle[MM_CAMERA_MAX_NUM_FRAMES];
};
// Gralloc Memory is acquired from preview window
class QCameraGrallocMemory : public QCameraMemory {
enum {
BUFFER_NOT_OWNED,
BUFFER_OWNED,
};
public:
QCameraGrallocMemory(camera_request_memory getMemory, void* cbCookie,
QCameraMemType buf_Type = QCAMERA_MEM_TYPE_DEFAULT);
void setNativeWindow(preview_stream_ops_t *anw);
virtual ~QCameraGrallocMemory();
virtual int allocate(uint8_t count, size_t size);
virtual int allocateMore(uint8_t count, size_t size);
virtual void deallocate();
virtual int cacheOps(uint32_t index, unsigned int cmd);
virtual int getRegFlags(uint8_t *regFlags) const;
virtual camera_memory_t *getMemory(uint32_t index, bool metadata) const;
virtual int getMatchBufIndex(const void *opaque, bool metadata) const;
virtual void *getPtr(uint32_t index) const;
virtual void setMappable(uint8_t mappable);
virtual uint8_t getMappable() const;
virtual uint8_t checkIfAllBuffersMapped() const;
void setWindowInfo(preview_stream_ops_t *window, int width, int height,
int stride, int scanline, int format, int maxFPS, int usage = 0);
// Enqueue/display buffer[index] onto the native window,
// and dequeue one buffer from it.
// Returns the buffer index of the dequeued buffer.
int displayBuffer(uint32_t index);
void setMaxFPS(int maxFPS);
int32_t enqueueBuffer(uint32_t index, nsecs_t timeStamp = 0);
int32_t dequeueBuffer();
inline bool isBufSkipped(uint32_t index){return (mBufferStatus[index] == STATUS_SKIPPED);};
void setBufferStatus(uint32_t index, BufferStatus status);
private:
buffer_handle_t *mBufferHandle[MM_CAMERA_MAX_NUM_FRAMES];
int mLocalFlag[MM_CAMERA_MAX_NUM_FRAMES];
bool mBufferStatus[MM_CAMERA_MAX_NUM_FRAMES];
struct private_handle_t *mPrivateHandle[MM_CAMERA_MAX_NUM_FRAMES];
preview_stream_ops_t *mWindow;
int mWidth, mHeight, mFormat, mStride, mScanline, mUsage;
typeof (MetaData_t::refreshrate) mMaxFPS;
camera_request_memory mGetMemory;
void* mCallbackCookie;
camera_memory_t *mCameraMemory[MM_CAMERA_MAX_NUM_FRAMES];
int mMinUndequeuedBuffers;
enum ColorSpace_t mColorSpace;
uint8_t mMappableBuffers;
pthread_mutex_t mLock;
uint8_t mEnqueuedBuffers;
};
}; // namespace qcamera
#endif /* __QCAMERA2HWI_MEM_H__ */
| [
"dongdong331@163.com"
] | dongdong331@163.com |
7828be096fea0123789b07f9302d040f6b338929 | fc0d6d6b9ef1b9c3631a17962eec24b8e72dccd0 | /usart.cpp | 6f9d3421f2a884564f6489761fd1f08067fbe2d8 | [] | no_license | analityk/Prototyp_1_0 | cc66efd213b4f5fa8df31e61be51f72313647aa2 | 684c26baeced81eb473a77badfe033d2c689871e | refs/heads/master | 2021-01-17T06:30:27.718984 | 2019-07-11T20:28:07 | 2019-07-11T20:28:07 | 59,957,561 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 968 | cpp | #include <usart.h>
serial::serial(void){
this->Enable();
this->SetUbrr(29); // 38.4kbps
};
void serial::SetUbrr(uint16_t ubrr){
UBRR0H = (uint8_t)(ubrr >> 8);
UBRR0L = (uint8_t)(ubrr);
};
void serial::Enable(void)
{
PRR0 &=~(1<<PRUSART0);
UCSR0B = (1<<TXEN0)|(1<<RXEN0)|(1<<RXCIE0);
}
void serial::Disable(void)
{
UCSR0B = (0<<TXEN0)|(0<<RXEN0);
}
void serial::write(uint8_t* buff, uint8_t size){
for(uint8_t i=0; i<size; i++){
while(!(UCSR0A & (1<<UDRE0))){};
UDR0 =buff[i];
};
};
void serial::write(const char* s, uint8_t size){
write( (uint8_t*)s, size);
};
void serial::write(char* t){
while(*t){
while(!(UCSR0A & (1<<UDRE0))){};
UDR0 = *t++;
};
};
void serial::write(const char* s){
while(*s){
while(!(UCSR0A & (1<<UDRE0))){};
UDR0 = *s++;
};
};
void serial::write(uint8_t byte)
{
while(!(UCSR0A & (1<<UDRE0))){};
UDR0 = byte;
}
uint8_t serial::readByte(){
while(!(UCSR0A & (1<<RXC0))){};
return(UDR0);
};
serial Serial; | [
"romanowskis1at@interia.pl"
] | romanowskis1at@interia.pl |
42e9adcd58b45d1bf190f0bd4b0e188c457bb9b2 | 6b0a8aac6915abde00c0042be963e583f7694e8b | /cpp/src/scene/scene-graph.cc | 2f9d82e01133f2d4d1cbfbf20439ff30f00c09b9 | [
"MIT"
] | permissive | deets/raspberry-racer | 19ac2b987e8b5b5544cc96ef3a2c022dc64b70f8 | cd482b0be73a3da7bb629fc7ba524baa23091db7 | refs/heads/master | 2021-01-18T14:19:20.058106 | 2013-12-25T11:04:41 | 2013-12-25T11:04:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,830 | cc | #include <boost/bind.hpp>
#include <boost/foreach.hpp>
#include <boost/range.hpp>
#include <boost/range/algorithm_ext.hpp>
#include "gfx/openvg-companion.hh"
#include "scene-graph.hh"
namespace rracer {
//================================================
SceneRoot::SceneRoot(function<void (SceneNode*, SceneNode*)> on_object_added_callback)
: SceneNode()
, _on_object_added_callback(on_object_added_callback)
{
}
void SceneRoot::on_object_added(SceneNode* parent, SceneNode* child) {
_on_object_added_callback(parent, child);
}
//================================================
SceneGraph::SceneGraph(WindowAdapter &window_adapter, OpenVGAdapter &ovg_adapter)
: _window_adapter(window_adapter)
, _ovg_adapter(ovg_adapter)
, _has_ended(false)
, _debug_renderer(0)
, _fixed_frame_rate(0.0)
, _time_info()
{
b2Vec2 gravity(.0, 0);
_world = new b2World(gravity);
_root = shared_ptr<SceneRoot>(new SceneRoot(boost::bind(&SceneGraph::on_object_added, this, _1, _2)));
}
void SceneGraph::on_object_added(SceneNode* parent, SceneNode* child) {
child->setup_within_world(_world);
}
SceneGraph::~SceneGraph() {
delete _world;
}
void SceneGraph::set_debug_renderer(DebugRenderer* dr) {
_debug_renderer = dr;
_world->SetDebugDraw(dr);
}
Real SceneGraph::fixed_frame_rate() const {
return _fixed_frame_rate;
}
void SceneGraph::fixed_frame_rate(Real fixed_frame_rate) {
_fixed_frame_rate = fixed_frame_rate;
}
b2World* SceneGraph::world() const {
return _world;
}
Rect SceneGraph::screen_rect() const {
pair<int, int> window_dims = _window_adapter.window_dimensions();
return Rect(0, 0, window_dims.first, window_dims.second);
}
void SceneGraph::start_frame(const GameEventVector& events, const Real elapsed) {
_window_adapter.start();
BOOST_FOREACH(const GameEvent event, events) {
if(boost::get<KeyEvent>(event.event).key == K_ESC) {
_has_ended = true;
}
}
const Real step_size = _fixed_frame_rate == 0.0 ? elapsed : 1.0 / _fixed_frame_rate;
_time_info = TimeInfo(_time_info.when() + step_size, step_size);
// prepare the event-vectors.
GameEventVector this_frame_events(events);
boost::range::push_back(this_frame_events, _next_frame_events);
_next_frame_events.clear();
EventEmitter emit_event = boost::bind(&GameEventVector::push_back, &_next_frame_events, _1);
for(SceneNode::iterator it = _root->begin(); it != _root->end(); ++it) {
(*it).dispatch_frame_events(this_frame_events, _time_info, emit_event);
}
// simulate physics
_world->Step(_time_info.elapsed(), WORLD_VELOCITY_ITERATIONS, WORLD_POSITION_ITERATIONS);
// render the game objects
render();
}
void SceneGraph::render() {
OpenVGCompanion vgc(_ovg_adapter);
VGint ww = _window_adapter.window_dimensions().first;
VGint wh = _window_adapter.window_dimensions().second;
VGfloat black[] = {0.0,0,0,1.0};
VGfloat red[] = {1.0,0,0,1.0};
_ovg_adapter.vgSetfv(VG_CLEAR_COLOR, 4, black);
_ovg_adapter.vgClear(0, 0, ww, wh);
_ovg_adapter.vgLoadIdentity();
for(SceneNode::iterator it = _root->begin(); it != _root->end(); ++it) {
(*it).dispatch_render(vgc);
}
if(_debug_renderer) {
_debug_renderer->render(_world);
for(SceneGraph::iterator it = begin(); it != end(); ++it) {
(*it).debug_render(*_debug_renderer);
}
}
}
OpenVGAdapter& SceneGraph::vg() const {
return _ovg_adapter;
}
void SceneGraph::end_frame() {
_window_adapter.end();
}
void SceneGraph::add_object(SceneNode* obj) {
_root->add_object(obj);
}
SceneGraph::iterator SceneGraph::begin() {
return iterator(_root->begin(), _root->end());
}
SceneGraph::iterator SceneGraph::end() {
return iterator(_root->end(), _root->end());
}
//===== iterator ========
SceneGraph::iterator::iterator(wo_iterator begin, wo_iterator end)
{
if(begin == end) {
return;
}
_iterators.push(make_pair(begin, end));
}
SceneGraph::iterator::iterator(const iterator& other) {
this->_iterators = other._iterators;
}
SceneGraph::iterator::~iterator() {
}
SceneGraph::iterator& SceneGraph::iterator::operator=(const iterator& rhs) {
this->_iterators = rhs._iterators;
return *this;
}
bool SceneGraph::iterator::operator==(const iterator& rhs) const {
return _iterators.size() == 0 && rhs._iterators.size() == 0;
}
bool SceneGraph::iterator::operator!=(const iterator& rhs) const {
return !(*this==rhs);
}
SceneGraph::iterator& SceneGraph::iterator::operator++() {
if(_iterators.size()) {
reference current = **this;
// if we *have* children,
// the first of them is the next current
if(current.begin() != current.end()) {
_iterators.push(make_pair(current.begin(), current.end()));
} else {
// we don't have children, so advance the top
// begin iterator until
// - it's not the end, then it's the next current
// - it's the end, then pop and re-do
// - we're out of iterators, then we're finished
while(true) {
++(_iterators.top().first);
if(_iterators.top().first != _iterators.top().second) {
return *this; // we're pointing to the next child
}
_iterators.pop();
if(_iterators.size() == 0) {
// we are finished, because
// there is no iterator to come.
return *this;
}
}
}
}
return *this;
}
SceneGraph::iterator::reference SceneGraph::iterator::operator*() const {
return *_iterators.top().first;
}
SceneGraph::iterator::pointer SceneGraph::iterator::operator->() const {
}
// ===== iterator const =====
// SceneGraph::const_iterator::const_iterator(bool end)
// : _end(end)
// {
// }
// SceneGraph::const_iterator::const_iterator(const const_iterator& other) {
// this->_end = other._end;
// }
// SceneGraph::const_iterator::~const_iterator() {
// }
// SceneGraph::const_iterator& SceneGraph::const_iterator::operator=(const const_iterator& rhs) {
// this->_end = rhs._end;
// return *this;
// }
// bool SceneGraph::const_iterator::operator==(const const_iterator& rhs) const {
// return _end == rhs._end;
// }
// bool SceneGraph::const_iterator::operator!=(const const_iterator& rhs) const {
// return !(*this==rhs);
// }
// SceneGraph::const_iterator& SceneGraph::const_iterator::operator++() {
// return *this;
// }
// SceneGraph::const_iterator::reference SceneGraph::const_iterator::operator*() const {
// return *const_cast<value_type*>(_current);
// }
// SceneGraph::const_iterator::pointer SceneGraph::const_iterator::operator->() const {
// }
}; // ns::rracer
| [
"deets@web.de"
] | deets@web.de |
169c93cdc220c1bb34f691b697e059b85927b052 | 4e52883fc4a00cb3b18207a9ba006cff0f726a7f | /plugins/wallet_plugin/include/eosio/wallet_plugin/wallet_manager.hpp | 0426505da0ea300330dccdab4fa3dcc605c75aa5 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | linapex/eos-chinese | 10043cb9c09de9824a5e66568e26b89e2586f985 | 33539709c30940b6489cec1ed2d982ff76da5cc5 | refs/heads/master | 2020-04-29T07:49:08.835415 | 2019-03-16T12:18:38 | 2019-03-16T12:18:38 | 175,965,734 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,681 | hpp |
//<developer>
// <name>linapex 曹一峰</name>
// <email>linapex@163.com</email>
// <wx>superexc</wx>
// <qqgroup>128148617</qqgroup>
// <url>https://jsq.ink</url>
// <role>pku engineer</role>
// <date>2019-03-16 19:44:18</date>
//</624457054177726464>
/*
*@文件
*@eos/license中定义的版权
**/
#pragma once
#include <eosio/chain/transaction.hpp>
#include <eosio/wallet_plugin/wallet_api.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/interprocess/sync/file_lock.hpp>
#include <chrono>
namespace fc { class variant; }
namespace eosio {
namespace wallet {
///将钱包名称关联到钱包,并管理与每个钱包的交互。
///
///the name of the wallet is also used as part of the file name by software_wallet.请参见Wallet_Manager::Create。
///no const方法,因为超时可能导致调用lock_all()。
class wallet_manager {
public:
wallet_manager();
wallet_manager(const wallet_manager&) = delete;
wallet_manager(wallet_manager&&) = delete;
wallet_manager& operator=(const wallet_manager&) = delete;
wallet_manager& operator=(wallet_manager&&) = delete;
~wallet_manager();
///设置钱包文件的位置路径。
///@param p覆盖默认值的路径。/钱包文件的位置。
void set_dir(const boost::filesystem::path& p) {
dir = p;
initialize_lock();
}
///设置锁定所有钱包的超时。
///if set then after t seconds of inactive then lock_all()。
///activity定义为下面的任何wallet_manager方法调用。
void set_timeout(const std::chrono::seconds& t);
///@请参阅wallet_manager::set_timeout(const std::chrono::seconds&t)
//
void set_timeout(int64_t secs) { set_timeout(std::chrono::seconds(secs)); }
///使用通过其公钥指定的私钥签署事务。
///使用chain_controller::get_required_keys来确定txn需要哪些密钥。
///@param txn要签名的事务。
///@param键对应私钥的公钥,用于签署事务
///@param id要与之签署事务的链\u id。
///@返回已签名的txn
///@throws fc::如果在未锁定的钱包中找不到相应的私钥,则出现异常
chain::signed_transaction sign_transaction(const chain::signed_transaction& txn, const flat_set<public_key_type>& keys,
const chain::chain_id_type& id);
///使用通过其公钥指定的私钥对摘要进行签名。
///@param消化要签名的摘要。
///@param key对应私钥的公钥,用于签署摘要
///@在摘要上返回签名
///@throws fc::如果在未锁定的钱包中找不到相应的私钥,则出现异常
chain::signature_type sign_digest(const chain::digest_type& digest, const public_key_type& key);
///创建新钱包。
///在文件dir/name中创建一个新钱包。钱包请参见设置_dir。
///新钱包在创建后解锁。
///@param钱包的名称和不带ext.wallet的文件名。
///@返回解锁钱包所需的明文密码。调用方负责保存密码,否则
///他们无法打开钱包。注意:不支持用户提供的密码。
///@throws fc::exception如果名为的钱包已经存在(或文件名已经存在)
std::string create(const std::string& name);
///打开现有钱包文件dir/name.wallet。
///注意,这不会解锁钱包,请参见钱包\u manager::unlock。
///@param要打开的钱包文件名(减去ext.wallet)。
///@throws fc::exception如果找不到/打开钱包文件。
void open(const std::string& name);
///@如果钱包未锁定,返回一个附加“*”的钱包名称列表。
std::vector<std::string> list_wallets();
///@从钱包中返回一份私人钥匙列表,前提是所述钱包的密码正确。
map<public_key_type,private_key_type> list_keys(const string& name, const string& pw);
///@从所有未锁定的钱包中返回一组公钥,与链\控制器::获取\所需的\密钥一起使用。
flat_set<public_key_type> get_public_keys();
///锁定所有未锁定的钱包。
void lock_all();
///锁定指定的钱包。
///no op如果钱包已经锁定。
///@param name要锁定的钱包的名称。
///@throws fc::exception if wallet with name not found.
void lock(const std::string& name);
///解锁指定的钱包。
///Wallet保持解锁状态,直到调用::lock或程序退出。
///@param name要锁定的钱包的名称。
///@param password从::create返回的明文密码。
///@throws fc::如果钱包未找到或密码无效或已解锁,则出现异常。
void unlock(const std::string& name, const std::string& password);
///将私钥导入指定的钱包。
///将WIF私钥导入指定的钱包。
///钱包必须打开并解锁。
///@param name要导入的钱包的名称。
///@param wif_key要导入的wif私钥,例如5KQWRPWDL6phxujxw37fssqz1jiwsst4cqzdeyxtp79zkvfd3
///@throws fc::exception if wallet not found or locked.
void import_key(const std::string& name, const std::string& wif_key);
///从指定的钱包中取出一把钥匙。
///钱包必须打开并解锁。
///@param name要从中删除密钥的钱包的名称。
///@param password从::create返回的明文密码。
///@param key要删除的公钥,如eos6mryajqqq8ud7hvnycfnvpjqcpscn5so8bhthugyqet5gdw5cv
///@throws fc::如果没有找到或锁定钱包或钥匙未被取下,则出现异常。
void remove_key(const std::string& name, const std::string& password, const std::string& key);
///在指定的钱包中创建密钥。
///钱包必须打开和解锁
///@param要创建密钥的钱包的名称
//要创建的键的/@param类型
///@throws fc::如果没有找到或锁定钱包,或钱包无法创建所述类型的密钥,则出现异常
///@返回创建的密钥的公钥
string create_key(const std::string& name, const std::string& key_type);
///拥有钱包使用权
void own_and_use_wallet(const string& name, std::unique_ptr<wallet_api>&& wallet);
private:
///verify未发生超时,否则重置超时。
///calls lock_all()(如果超时时间已过)。
void check_timeout();
private:
using timepoint_t = std::chrono::time_point<std::chrono::system_clock>;
std::map<std::string, std::unique_ptr<wallet_api>> wallets;
std::chrono::seconds timeout = std::chrono::seconds::max(); ///<在调用lock_all()之前等待多长时间
mutable timepoint_t timeout_time = timepoint_t::max(); ///<何时调用lock_all()
boost::filesystem::path dir = ".";
boost::filesystem::path lock_path = dir / "wallet.lock";
std::unique_ptr<boost::interprocess::file_lock> wallet_dir_lock;
void initialize_lock();
};
} //命名空间钱包
} //命名空间EOSIO
| [
"229660767@qq.com"
] | 229660767@qq.com |
575b0e3c6ad6aeeabaedee6bcbcca0199ebce9ba | ce6229f5915f9e6de1238861b4a940d61e56960b | /Sonder/Temp/il2cppOutput/il2cppOutput/mscorlib_Mono_Math_Prime_PrimalityTest572679901.h | ddc945f667708d8eaed52d6e1a99d4bb3526bf82 | [
"Apache-2.0"
] | permissive | HackingForGood/GoogleyEyes | d9e36e3dffb4edbd0736ab49a764736a91ecebcf | a92b962ab220686794350560a47e88191e165c05 | refs/heads/master | 2021-04-15T10:03:59.093464 | 2017-06-25T17:32:52 | 2017-06-25T17:32:52 | 94,575,021 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_MulticastDelegate3201952435.h"
#include "mscorlib_Mono_Math_Prime_ConfidenceFactor1997037801.h"
// Mono.Math.BigInteger
struct BigInteger_t925946152;
// System.IAsyncResult
struct IAsyncResult_t1999651008;
// System.AsyncCallback
struct AsyncCallback_t163412349;
// System.Object
struct Il2CppObject;
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Mono.Math.Prime.PrimalityTest
struct PrimalityTest_t572679901 : public MulticastDelegate_t3201952435
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
| [
"anishdhesikan@gmail.com"
] | anishdhesikan@gmail.com |
8eea11d2120476cc3ad410f278ce6d2bbb2f3e3a | b031522dbf9b9a612221a6d35b4867600d5417e5 | /server/include/Camera.h | fd4df4de0b8b09feb83e8dd88fefaf9596379c59 | [] | no_license | lambdabaa/finkel | 8869e4fccad537ce43cc1ebf437744523a1d48d0 | 8e73cb6b3b6193c428d86796ce93e88eea83d613 | refs/heads/master | 2021-05-01T12:31:05.858160 | 2013-05-13T02:15:27 | 2013-05-13T02:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | h |
/**
* @fileoverview Grab screenshots from window handles and convert them
* into 2D arrays of pixels.
*/
#ifndef Camera_H
#define Camera_H
#include "Finkel.h"
#include <vector>
#include <windows.h>
class Camera {
public:
Camera();
/**
* Take a screenshot.
* @param windowHandle Take a picture of the window on the handle.
* Cannot be null.
* @param _return The 2D pixel array to write into.
*/
void TakeScreenshot(
HWND windowHandle,
std::vector<std::vector<int8_t>> & _return
);
private:
/**
* Convert a BITMAP to a 2D pixel array.
* @param bitmap Some bitmap.
* @param _return The 2D pixel array to write into.
*/
void _Serialize(
BITMAP bitmap,
std::vector<std::vector<int8_t>> & _return
);
};
#endif
| [
"gareth.aye@gmail.com"
] | gareth.aye@gmail.com |
87e032e54a3d9653d124ad6f2ae5a49e09c14dc1 | 544da2e44178007f0601d27448623d2893ce7cb7 | /ROOT/bin/EventWeightsIterativeNick.cc | d8e39ac232e10bacfbc465b01e76f8a3985bc818 | [] | no_license | lmdodd/MonoHTauTau | 35d16524c17be93d759d59174d507623607b12f5 | 0a4d80c5d6fd082e279592239a18212c1d753e0c | refs/heads/master | 2021-01-13T09:06:13.955030 | 2018-02-27T18:24:50 | 2018-02-27T18:24:50 | 69,682,121 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,596 | cc | #include "PhysicsTools/FWLite/interface/CommandLineParser.h"
#include "TFile.h"
#include "TROOT.h"
#include "TKey.h"
#include "TTree.h"
#include "TH2D.h"
#include "TMath.h"
#include "TFileMerger.h"
#include <iostream>
using namespace std;
void readdir(TDirectory *dir,optutl::CommandLineParser parser,TH2D* hist,bool isOne);
int main (int argc, char* argv[])
{
optutl::CommandLineParser parser ("Sets Event Weights in the ntuple");
parser.addOption("histoName",optutl::CommandLineParser::kString,"Counter Histogram Name","EventSummary");
parser.addOption("isOne",optutl::CommandLineParser::kDouble,"isOne, sets output to 1",1.0);
parser.parseArguments (argc, argv);
std::cout << "EXTRA COMMANDS:"
<< "\n --- isOne: " << parser.doubleValue("isOne")
<< std::endl;
bool isOne = parser.doubleValue("isOne");
TFile *fZpt = new TFile("zzKfactorGenPt.root","UPDATE");
TH2D* hZpt = 0;
if(fZpt!=0 && fZpt->IsOpen()) {
hZpt = (TH2D*)fZpt->Get("zzKfactorGenPt");;
printf("ENABLING W WEIGHTING USING HISTOGRAM\n");
}
else{
printf("ERROR!!! WEIGHT FILE NOT FOUND!!! EXITING!!!\n");
return 0;
}
TFile *f0 = new TFile(parser.stringValue("outputFile").c_str(),"UPDATE");
readdir(f0,parser,hZpt,isOne);
f0->Close();
if(fZpt!=0 && fZpt->IsOpen())
fZpt->Close();
}
void readdir(TDirectory *dir,optutl::CommandLineParser parser, TH2D* hist, bool isOne)
{
TDirectory *dirsav = gDirectory;
TIter next(dir->GetListOfKeys());
TKey *key;
while ((key = (TKey*)next())) {
printf("Found key=%s \n",key->GetName());
TObject *obj = key->ReadObj();
if (obj->IsA()->InheritsFrom(TDirectory::Class())) {
dir->cd(key->GetName());
TDirectory *subdir = gDirectory;
readdir(subdir,parser,hist,isOne);
dirsav->cd();
}
else if(obj->IsA()->InheritsFrom(TTree::Class())) {
TTree *t = (TTree*)obj;
float weight;
float weightUp;
float weightDown;
TBranch *newBranch = t->Branch("ZZ_kfactor",&weight,"ZZ_kfactor/F");
TBranch *newBranch1 = t->Branch("ZZ_kfactorUp",&weightUp,"ZZ_kfactorUp/F");
TBranch *newBranch2 = t->Branch("ZZ_kfactorDown",&weightDown,"ZZ_kfactorDown/F");
float genPt=0;
t->SetBranchAddress("PtReweight",&genPt); //InvMass
for(Int_t i=0;i<t->GetEntries();++i){
t->GetEntry(i);
weight = 1.0;
weightUp = 1.0;
weightDown = 1.0;
if(!isOne){
float xval = hist->GetXaxis()->FindBin(genPt);
if (genPt>2000)
xval = 1999.;
float yval0 = hist->GetBinContent(xval,1);
float yval1 = hist->GetBinContent(xval,2);
float yval2 = hist->GetBinContent(xval,3);
float yval3 = hist->GetBinContent(xval,4);
if (!(yval0>0)){
yval0=1;
yval1=1;
yval2=1;
yval3=1;
}
weight = yval1/yval0;
weightUp = yval2/yval1;
weightDown = yval3/yval1;
}
newBranch->Fill();
newBranch1->Fill();
newBranch2->Fill();
}
t->Write("",TObject::kOverwrite);
}
}
}
| [
"ldodd@cern.ch"
] | ldodd@cern.ch |
40c7be592ab3d8df651ad5a3fb3ac8247ee045d7 | c13602d273d975bd4d5bb67ef0e140acfeb2d4ac | /src/qt/multisigdialog.cpp | 92627b96c7c872bf6c561e1b9e5f4ca2e65ede9a | [
"MIT"
] | permissive | not-a-dev0/kodcoin | 08c8b68e3868ba1704d11b5c46064e8b5f6f7508 | 314028ce9f0a982dc5926ecfa26ee215a8516054 | refs/heads/master | 2020-04-19T15:55:06.533187 | 2019-01-17T07:06:24 | 2019-01-17T07:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 37,491 | cpp | // Copyright (c) 2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "multisigdialog.h"
#include "forms/ui_multisigdialog.h"
#include "askpassphrasedialog.h"
#include "primitives/transaction.h"
#include "addressbookpage.h"
#include "utilstrencodings.h"
#include "core_io.h"
#include "script/script.h"
#include "base58.h"
#include "coins.h"
#include "keystore.h"
#include "init.h"
#include "wallet.h"
#include "script/sign.h"
#include "script/interpreter.h"
#include "utilmoneystr.h"
#include "guiutil.h"
#include "qvalidatedlineedit.h"
#include "bitcoinamountfield.h"
#include <QtCore/QVariant>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpinBox>
#include <QClipboard>
MultisigDialog::MultisigDialog(QWidget* parent) : QDialog(parent),
ui(new Ui::MultisigDialog),
model(0)
{
ui->setupUi(this);
multisigTx = CMutableTransaction();
//flag to show keyScrollArea on first priv key added
isFirstPrivKey = true;
isFirstRawTx = true;
ui->keyScrollArea->hide();
ui->txInputsScrollArea->hide();
connect(ui->commitButton, SIGNAL(clicked()), this, SLOT(commitMultisigTx()));
//populate lists with initial objects
on_addAddressButton_clicked();
on_addAddressButton_clicked();
on_addDestinationButton_clicked();
this->setStyleSheet(GUIUtil::loadStyleSheet());
}
MultisigDialog::~MultisigDialog()
{
delete ui;
}
void MultisigDialog::setModel(WalletModel *model)
{
this->model = model;
}
void MultisigDialog::showTab(int index)
{
ui->multisigTabWidget->setCurrentIndex(index);
this->show();
}
void MultisigDialog::updateCoinControl(CAmount nAmount, unsigned int nQuantity)
{
ui->labelAmount_int->setText(QString::fromStdString(FormatMoney(nAmount)));
ui->labelQuantity_int->setText(QString::number(nQuantity));
}
/**
* Private Slots
*/
//slot for pasting addresses
void MultisigDialog::pasteText()
{
QWidget* pasteButton = qobject_cast<QWidget*>(sender());
if(!pasteButton)return;
QFrame* addressFrame = qobject_cast<QFrame*>(pasteButton->parentWidget());
if(!addressFrame)return;
QValidatedLineEdit* vle = addressFrame->findChild<QValidatedLineEdit*>("address");
if(!vle)return;
vle->setText(QApplication::clipboard()->text());
}
//slot for deleting QFrames with the delete buttons
void MultisigDialog::deleteFrame()
{
QWidget *buttonWidget = qobject_cast<QWidget*>(sender());
if(!buttonWidget)return;
//if deleting last raw input/priv key, hide scroll area
if(buttonWidget->objectName() == "inputDeleteButton" && ui->inputsList->count() == 1){
isFirstRawTx = true;
ui->txInputsScrollArea->hide();
}else if(buttonWidget->objectName() == "keyDeleteButton" && ui->keyList->count() == 1){
isFirstPrivKey = true;
ui->keyScrollArea->hide();
}
QFrame* frame = qobject_cast<QFrame*>(buttonWidget->parentWidget());
if(!frame)return;
delete frame;
}
//slot to open address book dialog
void MultisigDialog::addressBookButtonReceiving()
{
QWidget* addressButton = qobject_cast<QWidget*>(sender());
if(!addressButton)return;
QFrame* addressFrame = qobject_cast<QFrame*>(addressButton->parentWidget());
if(!addressFrame)return;
QValidatedLineEdit* vle = addressFrame->findChild<QValidatedLineEdit*>("address");
if(!vle)return;
if (model && model->getAddressTableModel()) {
AddressBookPage dlg(AddressBookPage::ForSelection, AddressBookPage::ReceivingTab, this);
dlg.setModel(model->getAddressTableModel());
if (dlg.exec()) {
vle->setText(dlg.getReturnValue());
}
}
}
//create address
void MultisigDialog::on_addMultisigButton_clicked()
{
if(!model)
return;
int m = ui->enterMSpinbox->value();
vector<string> keys;
for (int i = 0; i < ui->addressList->count(); i++) {
QWidget* address = qobject_cast<QWidget*>(ui->addressList->itemAt(i)->widget());
QValidatedLineEdit* vle = address->findChild<QValidatedLineEdit*>("address");
if(!vle->text().isEmpty()){
keys.push_back(vle->text().toStdString());
}
}
addMultisig(m, keys);
}
void MultisigDialog::on_importAddressButton_clicked(){
if(!model)
return;
string sRedeem = ui->importRedeem->text().toStdString();
if(sRedeem.empty()){
ui->addMultisigStatus->setStyleSheet("QLabel { color: red; }");
ui->addMultisigStatus->setText("Import box empty!");
return;
}
vector<string> vRedeem;
size_t pos = 0;
//search redeem input delimited by space
while ((pos = sRedeem.find(" ")) != std::string::npos) {
vRedeem.push_back(sRedeem.substr(0, pos));
sRedeem.erase(0, pos + 1);
}
vector<string> keys(vRedeem.begin()+1, vRedeem.end()-1);
addMultisig(stoi(vRedeem[0]), keys);
// rescan to find txs associated with imported address
pwalletMain->ScanForWalletTransactions(chainActive.Genesis(), true);
pwalletMain->ReacceptWalletTransactions();
}
bool MultisigDialog::addMultisig(int m, vector<string> keys){
try{
string error;
CScript redeem;
if(!createRedeemScript(m, keys, redeem, error)){
throw runtime_error(error.data());
}
if (::IsMine(*pwalletMain, redeem) == ISMINE_SPENDABLE){
throw runtime_error("The wallet already contains this script");
}
if(!pwalletMain->AddCScript(redeem)){
throw runtime_error("Failure: address invalid or already exists");
}
CScriptID innerID(redeem);
string label = ui->multisigAddressLabel->text().toStdString();
pwalletMain->SetAddressBook(innerID, label, "receive");
if (!pwalletMain->AddMultiSig(redeem)){
throw runtime_error("Failure: unable to add address as watch only");
}
ui->addMultisigStatus->setStyleSheet("QLabel { color: black; }");
ui->addMultisigStatus->setText("Multisignature address " +
QString::fromStdString(CBitcoinAddress(innerID).ToString()) +
" has been added to the wallet.\nSend the redeem below for other owners to import:\n" +
QString::fromStdString(redeem.ToString()));
}catch(const runtime_error& e) {
ui->addMultisigStatus->setStyleSheet("QLabel { color: red; }");
ui->addMultisigStatus->setText(tr(e.what()));
return false;
}
return true;
}
//spend
void MultisigDialog::on_createButton_clicked()
{
if(!model)
return;
vector<CTxIn> vUserIn;
vector<CTxOut> vUserOut;
try{
//Add inputs from Coin Control if any are selected
if (CoinControlDialog::coinControl->HasSelected()) {
vector<COutPoint> vSelected;
CoinControlDialog::coinControl->ListSelected(vSelected);
for (auto outpoint : vSelected)
vUserIn.emplace_back(CTxIn(outpoint));
}else{//check for raw inputs
for(int i = 0; i < ui->inputsList->count(); i++){
QWidget* input = qobject_cast<QWidget*>(ui->inputsList->itemAt(i)->widget());
QLineEdit* txIdLine = input->findChild<QLineEdit*>("txInputId");
if(txIdLine->text().isEmpty()){
ui->createButtonStatus->setStyleSheet("QLabel { color: red; }");
ui->createButtonStatus->setText(tr("Invalid Tx Hash."));
return;
}
QSpinBox* txVoutLine = input->findChild<QSpinBox*>("txInputVout");
int nOutput = txVoutLine->value();
if(nOutput < 0){
ui->createButtonStatus->setStyleSheet("QLabel { color: red; }");
ui->createButtonStatus->setText(tr("Vout position must be positive."));
return;
}
uint256 txid = uint256S(txIdLine->text().toStdString());
CTxIn in(COutPoint(txid, nOutput));
vUserIn.emplace_back(in);
}
}
//validate destinations
bool validInput = true;
for(int i = 0; i < ui->destinationsList->count(); i++){
QWidget* dest = qobject_cast<QWidget*>(ui->destinationsList->itemAt(i)->widget());
QValidatedLineEdit* addr = dest->findChild<QValidatedLineEdit*>("destinationAddress");
BitcoinAmountField* amt = dest->findChild<BitcoinAmountField*>("destinationAmount");
CBitcoinAddress address;
bool validDest = true;
if(!model->validateAddress(addr->text())){
addr->setValid(false);
validDest = false;
}else{
address = CBitcoinAddress(addr->text().toStdString());
}
if(!amt->validate()){
amt->setValid(false);
validDest = false;
}
if(!validDest){
validInput = false;
continue;
}
CScript scriptPubKey = GetScriptForDestination(address.Get());
CTxOut out(amt->value(), scriptPubKey);
vUserOut.push_back(out);
}
//if all user data valid create a multisig tx
if(validInput){
//clear member variable
multisigTx = CMutableTransaction();
string error;
string fee;
if(!createMultisigTransaction(vUserIn, vUserOut, fee, error)){
throw runtime_error(error);
}
//display status string
ui->createButtonStatus->setStyleSheet("QTextEdit{ color: black }");
QString status(strprintf("Transaction has successfully created with a fee of %s.\n"
"The transaction has been automatically imported to the sign tab.\n"
"Please continue on to sign the tx from this wallet, to access the hex to send to other owners.", fee).c_str());
ui->createButtonStatus->setText(status);
ui->transactionHex->setText(QString::fromStdString(EncodeHexTx(multisigTx)));
}
}catch(const runtime_error& e){
ui->createButtonStatus->setStyleSheet("QTextEdit{ color: red }");
ui->createButtonStatus->setText(tr(e.what()));
}
}
bool MultisigDialog::createMultisigTransaction(vector<CTxIn> vUserIn, vector<CTxOut> vUserOut, string& feeStringRet, string& errorRet)
{
try{
//attempt to access the given inputs
CCoinsViewCache view = getInputsCoinsViewCache(vUserIn);
//retrieve total input val and change dest
CAmount totalIn = 0;
vector<CAmount> vInputVals;
CScript changePubKey;
bool fFirst = true;
for(CTxIn in : vUserIn){
const CCoins* coins = view.AccessCoins(in.prevout.hash);
if(!coins->IsAvailable(in.prevout.n) || coins == NULL){
continue;
}
CTxOut prevout = coins->vout[in.prevout.n];
CScript privKey = prevout.scriptPubKey;
vInputVals.push_back(prevout.nValue);
totalIn += prevout.nValue;
if(!fFirst){
if(privKey != changePubKey){
throw runtime_error("Address mismatch! Inputs must originate from the same multisignature address.");
}
}else{
fFirst = false;
changePubKey = privKey;
}
}
CAmount totalOut = 0;
//retrieve total output val
for(CTxOut out : vUserOut){
totalOut += out.nValue;
}
if(totalIn < totalOut){
throw runtime_error("Not enough KOD provided as input to complete transaction (including fee).");
}
//calculate change amount
CAmount changeAmount = totalIn - totalOut;
CTxOut change(changeAmount, changePubKey);
//generate random position for change
unsigned int changeIndex = rand() % (vUserOut.size() + 1);
//insert change into random position
if(changeIndex < vUserOut.size()){
vUserOut.insert(vUserOut.begin() + changeIndex, change);
}else{
vUserOut.emplace_back(change);
}
//populate tx
CMutableTransaction tx;
tx.vin = vUserIn;
tx.vout = vUserOut;
const CCoins* coins = view.AccessCoins(tx.vin[0].prevout.hash);
if(coins == NULL || !coins->IsAvailable(tx.vin[0].prevout.n)){
throw runtime_error("Coins unavailable (unconfirmed/spent)");
}
CScript prevPubKey = coins->vout[tx.vin[0].prevout.n].scriptPubKey;
//get payment destination
CTxDestination address;
if(!ExtractDestination(prevPubKey, address)){
throw runtime_error("Could not find address for destination.");
}
CScriptID hash = boost::get<CScriptID>(address);
CScript redeemScript;
if (!pwalletMain->GetCScript(hash, redeemScript)){
throw runtime_error("could not redeem");
}
txnouttype type;
vector<CTxDestination> addresses;
int nReq;
if(!ExtractDestinations(redeemScript, type, addresses, nReq)){
throw runtime_error("Could not extract destinations from redeem script.");
}
for(CTxIn& in : tx.vin){
in.scriptSig.clear();
//scale estimate to account for multisig scriptSig
for(unsigned int i = 0; i < 50*(nReq+addresses.size()); i++){
in.scriptSig << INT64_MAX;
}
}
//calculate fee
unsigned int nBytes = tx.GetSerializeSize(SER_NETWORK, PROTOCOL_VERSION);
CAmount fee = ::minRelayTxFee.GetFee(nBytes);
if(tx.vout.at(changeIndex).nValue > fee){
tx.vout.at(changeIndex).nValue -= fee;
feeStringRet = strprintf("%d",((double)fee)/COIN).c_str();
}else{
throw runtime_error("Not enough KOD provided to cover fee");
}
//clear junk from script sigs
for(CTxIn& in : tx.vin){
in.scriptSig.clear();
}
multisigTx = tx;
}catch(const runtime_error& e){
errorRet = e.what();
return false;
}
return true;
}
//sign
void MultisigDialog::on_signButton_clicked()
{
if(!model)
return;
try{
//parse tx hex
CTransaction txRead;
if(!DecodeHexTx(txRead, ui->transactionHex->text().toStdString())){
throw runtime_error("Failed to decode transaction hex!");
}
CMutableTransaction tx(txRead);
//check if transaction is already fully verified
if(isFullyVerified(tx)){
this->multisigTx = tx;
ui->commitButton->setEnabled(true);
ui->signButtonStatus->setText("This transaction is ready to commit. \nThe commit button in now enabled.");
return;
}
string errorOut = string();
bool fComplete = signMultisigTx(tx, errorOut, ui->keyList);
if(!errorOut.empty()){
throw runtime_error(errorOut.data());
}else{
this->multisigTx = tx;
}
ui->signButtonStatus->setStyleSheet("QTextEdit{ color: black }");
ui->signButtonStatus->setText(buildMultisigTxStatusString(fComplete, tx));
}catch(const runtime_error& e){
ui->signButtonStatus->setStyleSheet("QTextEdit{ color: red }");
ui->signButtonStatus->setText(tr(e.what()));
}
}
/***
*private helper functions
*/
QString MultisigDialog::buildMultisigTxStatusString(bool fComplete, const CMutableTransaction& tx)
{
string sTxHex = EncodeHexTx(tx);
if(fComplete){
ui->commitButton->setEnabled(true);
string sTxId = tx.GetHash().GetHex();
string sTxComplete = "Complete: true!\n"
"The commit button has now been enabled for you to finalize the transaction.\n"
"Once the commit button is clicked, the transaction will be published and coins transferred "
"to their destinations.\nWARNING: THE ACTIONS OF THE COMMIT BUTTON ARE FINAL AND CANNOT BE REVERSED.";
return QString(strprintf("%s\nTx Id:\n%s\nTx Hex:\n%s",sTxComplete, sTxId, sTxHex).c_str());
} else {
string sTxIncomplete = "Complete: false.\n"
"You may now send the hex below to another owner to sign.\n"
"Keep in mind the transaction must be passed from one owner to the next for signing.\n"
"Ensure all owners have imported the redeem before trying to sign. (besides creator)";
return QString(strprintf("%s\nTx Hex: %s", sTxIncomplete, sTxHex).c_str());
}
}
CCoinsViewCache MultisigDialog::getInputsCoinsViewCache(const vector<CTxIn>& vin)
{
CCoinsView viewDummy;
CCoinsViewCache view(&viewDummy);
{
LOCK(mempool.cs);
CCoinsViewCache& viewChain = *pcoinsTip;
CCoinsViewMemPool viewMempool(&viewChain, mempool);
view.SetBackend(viewMempool); // temporarily switch cache backend to db+mempool view
for(const CTxIn& txin : vin) {
const uint256& prevHash = txin.prevout.hash;
view.AccessCoins(prevHash); // this is certainly allowed to fail
}
view.SetBackend(viewDummy); // switch back to avoid locking mempool for too long
}
return view;
}
bool MultisigDialog::signMultisigTx(CMutableTransaction& tx, string& errorOut, QVBoxLayout* keyList)
{
//will be set false if all inputs are not fully signed(valid)
bool fComplete = true;
//if keyslist is not default value AND has items in list then true
bool fGivenKeys = (keyList != nullptr) && (keyList->count() > 0);
try{
//copy of vin for reference before vin is mutated
vector<CTxIn> oldVin(tx.vin);
CBasicKeyStore privKeystore;
//if keys were given, attempt to collect redeem and scriptpubkey
if(fGivenKeys){
for(int i = 0; i < keyList->count(); i++){
QWidget* keyFrame = qobject_cast<QWidget*>(keyList->itemAt(i)->widget());
QLineEdit* key = keyFrame->findChild<QLineEdit*>("key");
CBitcoinSecret vchSecret;
if (!vchSecret.SetString(key->text().toStdString()))
throw runtime_error("Invalid private key");
CKey cKey = vchSecret.GetKey();
if (!cKey.IsValid())
throw runtime_error("Private key outside allowed range");
privKeystore.AddKey(cKey);
}
for(CTxIn& txin : tx.vin){
//get inputs
CTransaction txVin;
uint256 hashBlock;
if (!GetTransaction(txin.prevout.hash, txVin, hashBlock, true))
throw runtime_error("txin could not be found");
if (hashBlock == 0)
throw runtime_error("txin is unconfirmed");
//get pubkey from input
CScript prevPubKey = txVin.vout[txin.prevout.n].scriptPubKey;
//get payment destination
CTxDestination address;
if(!ExtractDestination(prevPubKey, address)){
throw runtime_error("Could not find address for destination.");
}
//get redeem script related to destination
CScriptID hash = boost::get<CScriptID>(address);
CScript redeemScript;
if (!pwalletMain->GetCScript(hash, redeemScript)){
errorOut = "could not redeem";
}
privKeystore.AddCScript(redeemScript);
}
}else{
if (model->getEncryptionStatus() == model->Locked) {
if (!model->requestUnlock(true).isValid()) {
// Unlock wallet was cancelled
throw runtime_error("Error: Your wallet is locked. Please enter the wallet passphrase first.");
}
}
}
//choose between local wallet and provided
const CKeyStore& keystore = fGivenKeys ? privKeystore : *pwalletMain;
//attempt to sign each input from local wallet
int nIn = 0;
for(CTxIn& txin : tx.vin){
//get inputs
CTransaction txVin;
uint256 hashBlock;
if (!GetTransaction(txin.prevout.hash, txVin, hashBlock, true))
throw runtime_error("txin could not be found");
if (hashBlock == 0)
throw runtime_error("txin is unconfirmed");
txin.scriptSig.clear();
CScript prevPubKey = txVin.vout[txin.prevout.n].scriptPubKey;
//sign what we can
SignSignature(keystore, prevPubKey, tx, nIn);
//merge in any previous signatures
txin.scriptSig = CombineSignatures(prevPubKey, tx, nIn, txin.scriptSig, oldVin[nIn].scriptSig);
if (!VerifyScript(txin.scriptSig, prevPubKey, STANDARD_SCRIPT_VERIFY_FLAGS, MutableTransactionSignatureChecker(&tx, nIn))){
fComplete = false;
}
nIn++;
}
ui->signButtonStatus->setText(buildMultisigTxStatusString(fComplete, tx));
}catch(const runtime_error& e){
errorOut = string(e.what());
fComplete = false;
}
return fComplete;
}
// quick check for an already fully signed tx
bool MultisigDialog::isFullyVerified(CMutableTransaction& tx){
try{
int nIn = 0;
for(CTxIn& txin : tx.vin){
CTransaction txVin;
uint256 hashBlock;
if (!GetTransaction(txin.prevout.hash, txVin, hashBlock, true)){
throw runtime_error("txin could not be found");
}
if (hashBlock == 0){
throw runtime_error("txin is unconfirmed");
}
//get pubkey from this input as output in last tx
CScript prevPubKey = txVin.vout[txin.prevout.n].scriptPubKey;
if (!VerifyScript(txin.scriptSig, prevPubKey, STANDARD_SCRIPT_VERIFY_FLAGS, MutableTransactionSignatureChecker(&tx, nIn))){
return false;
}
nIn++;
}
}catch(const runtime_error& e){
return false;
}
return true;
}
void MultisigDialog::commitMultisigTx()
{
CMutableTransaction tx(multisigTx);
try{
#ifdef ENABLE_WALLET
CWalletTx wtx(pwalletMain, tx);
CReserveKey keyChange(pwalletMain);
if (!pwalletMain->CommitTransaction(wtx, keyChange))
throw runtime_error(string("Transaction rejected - Failed to commit"));
#else
uint256 hashTx = tx.GetHash();
CCoinsViewCache& view = *pcoinsTip;
const CCoins* existingCoins = view.AccessCoins(hashTx);
bool fOverrideFees = false;
bool fHaveMempool = mempool.exists(hashTx);
bool fHaveChain = existingCoins && existingCoins->nHeight < 1000000000;
if (!fHaveMempool && !fHaveChain) {
// push to local node and sync with wallets
CValidationState state;
if (!AcceptToMemoryPool(mempool, state, tx, false, NULL, !fOverrideFees)) {
if (state.IsInvalid())
throw runtime_error(strprintf("Transaction rejected - %i: %s", state.GetRejectCode(), state.GetRejectReason()));
else
throw runtime_error(string("Transaction rejected - ") + state.GetRejectReason());
}
} else if (fHaveChain) {
throw runtime_error("transaction already in block chain");
}
RelayTransaction(tx);
#endif
//disable commit if successfully committed
ui->commitButton->setEnabled(false);
ui->signButtonStatus->setText(strprintf("Transaction has been successfully published with transaction ID:\n %s", tx.GetHash().GetHex()).c_str());
}catch(const runtime_error& e){
ui->signButtonStatus->setText(e.what());
}
}
bool MultisigDialog::createRedeemScript(int m, vector<string> vKeys, CScript& redeemRet, string& errorRet)
{
try{
int n = vKeys.size();
//gather pub keys
if (n < 1)
throw runtime_error("a Multisignature address must require at least one key to redeem");
if (n < m)
throw runtime_error(
strprintf("not enough keys supplied "
"(got %d keys, but need at least %d to redeem)",
m, n));
if (n > 15)
throw runtime_error("Number of addresses involved in the Multisignature address creation > 15\nReduce the number");
vector<CPubKey> pubkeys;
pubkeys.resize(n);
int i = 0;
for(vector<string>::iterator it = vKeys.begin(); it != vKeys.end(); ++it) {
string keyString = *it;
#ifdef ENABLE_WALLET
// Case 1: Kodcoin address and we have full public key:
CBitcoinAddress address(keyString);
if (pwalletMain && address.IsValid()) {
CKeyID keyID;
if (!address.GetKeyID(keyID)) {
throw runtime_error(
strprintf("%s does not refer to a key", keyString));
}
CPubKey vchPubKey;
if (!pwalletMain->GetPubKey(keyID, vchPubKey))
throw runtime_error(
strprintf("no full public key for address %s", keyString));
if (!vchPubKey.IsFullyValid()){
string sKey = keyString.empty()?"(empty)":keyString;
throw runtime_error(" Invalid public key: " + sKey );
}
pubkeys[i++] = vchPubKey;
}
//case 2: hex pub key
else
#endif
if (IsHex(keyString)) {
CPubKey vchPubKey(ParseHex(keyString));
if (!vchPubKey.IsFullyValid()){
throw runtime_error(" Invalid public key: " + keyString);
}
pubkeys[i++] = vchPubKey;
} else {
throw runtime_error(" Invalid public key: " + keyString);
}
}
//populate redeem script
//OP_N for required signatures
redeemRet << redeemRet.EncodeOP_N(m);
//public keys
for(CPubKey& key : pubkeys){
vector<unsigned char> vKey= ToByteVector(key);
redeemRet << vKey;
}
//OP_N for total pubkeys
redeemRet << redeemRet.EncodeOP_N(pubkeys.size());
redeemRet << OP_CHECKMULTISIG;
return true;
}catch(const runtime_error& e){
errorRet = string(e.what());
return false;
}
}
/***
* Begin QFrame object creation methods
*/
//creates an address object on the create tab
void MultisigDialog::on_addAddressButton_clicked()
{
//max addresses 15
if(ui->addressList->count() > 14){
ui->addMultisigStatus->setStyleSheet("QLabel { color: red; }");
ui->addMultisigStatus->setText(tr("Maximum possible addresses reached. (16)"));
return;
}
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
QFrame* addressFrame = new QFrame();
sizePolicy.setHeightForWidth(addressFrame->sizePolicy().hasHeightForWidth());
addressFrame->setSizePolicy(sizePolicy);
addressFrame->setFrameShape(QFrame::StyledPanel);
addressFrame->setFrameShadow(QFrame::Raised);
addressFrame->setObjectName(QStringLiteral("addressFrame"));
QVBoxLayout* frameLayout = new QVBoxLayout(addressFrame);
frameLayout->setSpacing(1);
frameLayout->setObjectName(QStringLiteral("frameLayout"));
frameLayout->setContentsMargins(6, 6, 6, 6);
QHBoxLayout* addressLayout = new QHBoxLayout();
addressLayout->setSpacing(0);
addressLayout->setObjectName(QStringLiteral("addressLayout"));
QLabel* addressLabel = new QLabel(addressFrame);
addressLabel->setObjectName(QStringLiteral("addressLabel"));
addressLabel->setText(QApplication::translate("MultisigDialog", strprintf("Address / Key %i:", ui->addressList->count()+1).c_str() , 0));
addressLayout->addWidget(addressLabel);
QValidatedLineEdit* address = new QValidatedLineEdit(addressFrame);
address->setObjectName(QStringLiteral("address"));
addressLayout->addWidget(address);
QPushButton* addressBookButton = new QPushButton(addressFrame);
addressBookButton->setObjectName(QStringLiteral("addressBookButton"));
QIcon icon3;
icon3.addFile(QStringLiteral(":/icons/address-book"), QSize(), QIcon::Normal, QIcon::Off);
addressBookButton->setIcon(icon3);
addressBookButton->setAutoDefault(false);
connect(addressBookButton, SIGNAL(clicked()), this, SLOT(addressBookButtonReceiving()));
addressLayout->addWidget(addressBookButton);
QPushButton* addressPasteButton = new QPushButton(addressFrame);
addressPasteButton->setObjectName(QStringLiteral("addressPasteButton"));
QIcon icon4;
icon4.addFile(QStringLiteral(":/icons/editpaste"), QSize(), QIcon::Normal, QIcon::Off);
addressPasteButton->setIcon(icon4);
addressPasteButton->setAutoDefault(false);
connect(addressPasteButton, SIGNAL(clicked()), this, SLOT(pasteText()));
addressLayout->addWidget(addressPasteButton);
QPushButton* addressDeleteButton = new QPushButton(addressFrame);
addressDeleteButton->setObjectName(QStringLiteral("addressDeleteButton"));
QIcon icon5;
icon5.addFile(QStringLiteral(":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
addressDeleteButton->setIcon(icon5);
addressDeleteButton->setAutoDefault(false);
connect(addressDeleteButton, SIGNAL(clicked()), this, SLOT(deleteFrame()));
addressLayout->addWidget(addressDeleteButton);
frameLayout->addLayout(addressLayout);
ui->addressList->addWidget(addressFrame);
}
void MultisigDialog::on_pushButtonCoinControl_clicked()
{
CoinControlDialog coinControlDialog(this, true);
coinControlDialog.setModel(model);
coinControlDialog.exec();
}
void MultisigDialog::on_addInputButton_clicked()
{
if(isFirstRawTx){
isFirstRawTx = false;
ui->txInputsScrollArea->show();
}
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
QFrame* txInputFrame = new QFrame(ui->txInputsWidget);
sizePolicy.setHeightForWidth(txInputFrame->sizePolicy().hasHeightForWidth());
txInputFrame->setFrameShape(QFrame::StyledPanel);
txInputFrame->setFrameShadow(QFrame::Raised);
txInputFrame->setObjectName(QStringLiteral("txInputFrame"));
QVBoxLayout* frameLayout = new QVBoxLayout(txInputFrame);
frameLayout->setSpacing(1);
frameLayout->setObjectName(QStringLiteral("txInputFrameLayout"));
frameLayout->setContentsMargins(6, 6, 6, 6);
QHBoxLayout* txInputLayout = new QHBoxLayout();
txInputLayout->setObjectName(QStringLiteral("txInputLayout"));
QLabel* txInputIdLabel = new QLabel(txInputFrame);
txInputIdLabel->setObjectName(QStringLiteral("txInputIdLabel"));
txInputIdLabel->setText(QApplication::translate("MultisigDialog", strprintf("%i. Tx Hash: ", ui->inputsList->count()+1).c_str(), 0));
txInputLayout->addWidget(txInputIdLabel);
QLineEdit* txInputId = new QLineEdit(txInputFrame);
txInputId->setObjectName(QStringLiteral("txInputId"));
txInputLayout->addWidget(txInputId);
QSpacerItem* horizontalSpacer = new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
txInputLayout->addItem(horizontalSpacer);
QLabel* txInputVoutLabel = new QLabel(txInputFrame);
txInputVoutLabel->setObjectName(QStringLiteral("txInputVoutLabel"));
txInputVoutLabel->setText(QApplication::translate("MultisigDialog", "Vout Position: ", 0));
txInputLayout->addWidget(txInputVoutLabel);
QSpinBox* txInputVout = new QSpinBox(txInputFrame);
txInputVout->setObjectName("txInputVout");
sizePolicy.setHeightForWidth(txInputVout->sizePolicy().hasHeightForWidth());
txInputVout->setSizePolicy(sizePolicy);
txInputLayout->addWidget(txInputVout);
QPushButton* inputDeleteButton = new QPushButton(txInputFrame);
inputDeleteButton->setObjectName(QStringLiteral("inputDeleteButton"));
QIcon icon;
icon.addFile(QStringLiteral(":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
inputDeleteButton->setIcon(icon);
inputDeleteButton->setAutoDefault(false);
connect(inputDeleteButton, SIGNAL(clicked()), this, SLOT(deleteFrame()));
txInputLayout->addWidget(inputDeleteButton);
frameLayout->addLayout(txInputLayout);
ui->inputsList->addWidget(txInputFrame);
}
void MultisigDialog::on_addDestinationButton_clicked()
{
QFrame* destinationFrame = new QFrame(ui->destinationsScrollAreaContents);
destinationFrame->setObjectName(QStringLiteral("destinationFrame"));
destinationFrame->setFrameShape(QFrame::StyledPanel);
destinationFrame->setFrameShadow(QFrame::Raised);
QVBoxLayout* frameLayout = new QVBoxLayout(destinationFrame);
frameLayout->setObjectName(QStringLiteral("destinationFrameLayout"));
QHBoxLayout* destinationLayout = new QHBoxLayout();
destinationLayout->setSpacing(0);
destinationLayout->setObjectName(QStringLiteral("destinationLayout"));
QLabel* destinationAddressLabel = new QLabel(destinationFrame);
destinationAddressLabel->setObjectName(QStringLiteral("destinationAddressLabel"));
destinationLayout->addWidget(destinationAddressLabel);
QValidatedLineEdit* destinationAddress = new QValidatedLineEdit(destinationFrame);
destinationAddress->setObjectName(QStringLiteral("destinationAddress"));
destinationLayout->addWidget(destinationAddress);
QSpacerItem* horizontalSpacer = new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
destinationLayout->addItem(horizontalSpacer);
QLabel* destinationAmountLabel = new QLabel(destinationFrame);
destinationAmountLabel->setObjectName(QStringLiteral("destinationAmountLabel"));
destinationLayout->addWidget(destinationAmountLabel);
BitcoinAmountField* destinationAmount = new BitcoinAmountField(destinationFrame);
destinationAmount->setObjectName(QStringLiteral("destinationAmount"));
destinationAddressLabel->setText(QApplication::translate("MultisigDialog", strprintf("%i. Address: ", ui->destinationsList->count()+1).c_str(), 0));
destinationAmountLabel->setText(QApplication::translate("MultisigDialog", "Amount: ", 0));
destinationLayout->addWidget(destinationAmount);
QPushButton* destinationDeleteButton = new QPushButton(destinationFrame);
destinationDeleteButton->setObjectName(QStringLiteral("destinationDeleteButton"));
QIcon icon;
icon.addFile(QStringLiteral(":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
destinationDeleteButton->setIcon(icon);
destinationDeleteButton->setAutoDefault(false);
connect(destinationDeleteButton, SIGNAL(clicked()), this, SLOT(deleteFrame()));
destinationLayout->addWidget(destinationDeleteButton);
frameLayout->addLayout(destinationLayout);
ui->destinationsList->addWidget(destinationFrame);
}
void MultisigDialog::on_addPrivKeyButton_clicked()
{
if(isFirstPrivKey){//on first click the scroll area must show
isFirstPrivKey = false;
ui->keyScrollArea->show();
}
if(ui->keyList->count() > 14){
ui->signButtonStatus->setStyleSheet("QTextEdit{ color: red }");
ui->signButtonStatus->setText(tr("Maximum (15)"));
return;
}
QFrame* keyFrame = new QFrame(ui->keyScrollAreaContents);
keyFrame->setObjectName(QStringLiteral("keyFrame"));
keyFrame->setFrameShape(QFrame::StyledPanel);
keyFrame->setFrameShadow(QFrame::Raised);
QHBoxLayout* keyLayout = new QHBoxLayout(keyFrame);
keyLayout->setObjectName(QStringLiteral("keyLayout"));
QLabel* keyLabel = new QLabel(keyFrame);
keyLabel->setObjectName(QStringLiteral("keyLabel"));
keyLabel->setText(QApplication::translate("MultisigDialog", strprintf("Key %i: ", (ui->keyList->count()+1)).c_str(), 0));
keyLayout->addWidget(keyLabel);
QLineEdit* key = new QLineEdit(keyFrame);
key->setObjectName(QStringLiteral("key"));
key->setEchoMode(QLineEdit::Password);
keyLayout->addWidget(key);
QPushButton* keyDeleteButton = new QPushButton(keyFrame);
keyDeleteButton->setObjectName(QStringLiteral("keyDeleteButton"));
QIcon icon;
icon.addFile(QStringLiteral(":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
keyDeleteButton->setIcon(icon);
keyDeleteButton->setAutoDefault(false);
connect(keyDeleteButton, SIGNAL(clicked()), this, SLOT(deleteFrame()));
keyLayout->addWidget(keyDeleteButton);
ui->keyList->addWidget(keyFrame);
}
| [
"kech1004@gmail.com"
] | kech1004@gmail.com |
8f280f3facec3256a62e3d9ae65654d8de3063a1 | 580d6412fae02f32747093d93674a8ffaaf6fdf7 | /superhw3.cpp | d48c6dec9a913d6a44a6b11c82bd680762acff64 | [] | no_license | JoyLin8126/git-homework | c6e49e946830ab084d9c3d28c6252a69979d2171 | 6835df4418e121f5a65e65e6ee687639540057db | refs/heads/master | 2023-07-14T01:40:26.348390 | 2021-08-29T06:04:14 | 2021-08-29T06:04:14 | 388,514,467 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,405 | cpp | #define BUTTON1_PIN 7 // 按鈕1的接腳
#define BUTTON2_PIN 8 // 按鈕2的接腳
#define buzzer 3 // buzzer的接腳
#define Do 523 // Do頻率
#define Re 587 // Re頻率
/*#define Mi 659
#define Fa 698
#define So 784
#define La 880
#define Si 988*/
int buttonState1 = 0; // 按鈕1的狀態
int buttonState2 = 0; // 按鈕2的狀態
////////////////////////////////////////
#include <LedControl.h>
#define DIN 12 // din的接腳
#define CLK 11 // clk的接腳
#define CS 10 // cs的接腳
LedControl LC = LedControl(DIN,CLK,CS,1);
void Update(int Map[8][8])
{
for(int i=0;i<8;i++)
{
for(int j=0;j<8;j++)
{
LC.setLed(0,i,j,Map[i][j]); //更新亮暗
}
}
}
int Doled[8][8]={{0,0,0,0,0,0,0,0}, // 顯示圖形
{1,1,0,0,0,0,0,0},
{1,0,1,0,0,0,0,0},
{1,0,0,1,0,0,0,0},
{1,0,0,1,0,1,1,1},
{1,0,0,1,0,1,0,1},
{1,0,0,1,0,1,0,1},
{1,1,1,0,0,1,1,1}};
int Reled[8][8]={{0,0,0,0,0,0,0,0}, // 顯示圖形
{1,1,1,0,0,0,0,0},
{1,0,0,1,0,0,0,0},
{1,0,0,1,0,1,1,1},
{1,0,1,0,0,1,0,1},
{1,1,0,0,0,1,1,1},
{1,0,1,0,0,1,0,0},
{1,0,0,1,0,1,1,1}};
////////////////////////////////////////////////////
void setup() {
pinMode(buzzer, OUTPUT); //設定buzzer的PIN腳
pinMode(BUTTON1_PIN, INPUT); //設定按鈕1的接腳
pinMode(BUTTON2_PIN, INPUT); //設定按鈕2的接腳
pinMode(DIN,OUTPUT); //設定CIN的PIN腳
pinMode(CS,OUTPUT); //設定CS的PIN腳
pinMode(CLK,OUTPUT); //設定CLK的PIN腳
LC.shutdown(0,false); //供不供電
LC.setIntensity(0,8); //設定亮暗 (0~15)
LC.clearDisplay(0); //清除顯示
}
////////////////////////////////////////////////////////
void loop() {
buttonState1 = digitalRead(BUTTON1_PIN); //讀取按鍵1的狀態
buttonState2 = digitalRead(BUTTON2_PIN); //讀取按鍵2的狀態
if(buttonState1 == HIGH){ //如果按鍵1按了
tone(buzzer,Do); //發出Do音
Update(Doled); //顯示Do
}
else if(buttonState2 == HIGH){ //如果按鍵2按了
tone(buzzer,Re); //發出Re音
Update(Reled); //顯示Re
}
else{ //如果按鍵是未按下
noTone(buzzer); //不發聲
LC.clearDisplay(0); //清除顯示
}
}
| [
"abcdef@gmail.com"
] | abcdef@gmail.com |
1d99cf9540a3dd7a52160165ed306d4b6dcde872 | bb90b236126c237a0b8ec6d8fdd66ca1f1570997 | /src/qt/sendcoinsdialog.cpp | 2fbdb59ca4feaef8e96b32647ce98708eee77dda | [
"MIT"
] | permissive | cluckd/cluckd | 49d53c7aaf067a8165346e977366aea073067ee1 | 44988698375d0824ac4113ef773abb5275ff2ce9 | refs/heads/master | 2021-01-17T11:33:13.794855 | 2015-06-18T02:37:59 | 2015-06-18T02:37:59 | 37,633,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,406 | cpp | // Copyright (c) 2011-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sendcoinsdialog.h"
#include "ui_sendcoinsdialog.h"
#include "addresstablemodel.h"
#include "bitcoinunits.h"
#include "coincontroldialog.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include "sendcoinsentry.h"
#include "walletmodel.h"
#include "base58.h"
#include "coincontrol.h"
#include "ui_interface.h"
#include <QMessageBox>
#include <QScrollBar>
#include <QTextDocument>
SendCoinsDialog::SendCoinsDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::SendCoinsDialog),
model(0)
{
ui->setupUi(this);
#ifdef Q_OS_MAC // Icons on push buttons are very uncommon on Mac
ui->addButton->setIcon(QIcon());
ui->clearButton->setIcon(QIcon());
ui->sendButton->setIcon(QIcon());
#endif
GUIUtil::setupAddressWidget(ui->lineEditCoinControlChange, this);
addEntry();
connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addEntry()));
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear()));
// Coin Control
connect(ui->pushButtonCoinControl, SIGNAL(clicked()), this, SLOT(coinControlButtonClicked()));
connect(ui->checkBoxCoinControlChange, SIGNAL(stateChanged(int)), this, SLOT(coinControlChangeChecked(int)));
connect(ui->lineEditCoinControlChange, SIGNAL(textEdited(const QString &)), this, SLOT(coinControlChangeEdited(const QString &)));
// Coin Control: clipboard actions
QAction *clipboardQuantityAction = new QAction(tr("Copy quantity"), this);
QAction *clipboardAmountAction = new QAction(tr("Copy amount"), this);
QAction *clipboardFeeAction = new QAction(tr("Copy fee"), this);
QAction *clipboardAfterFeeAction = new QAction(tr("Copy after fee"), this);
QAction *clipboardBytesAction = new QAction(tr("Copy bytes"), this);
QAction *clipboardPriorityAction = new QAction(tr("Copy priority"), this);
QAction *clipboardLowOutputAction = new QAction(tr("Copy low output"), this);
QAction *clipboardChangeAction = new QAction(tr("Copy change"), this);
connect(clipboardQuantityAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardQuantity()));
connect(clipboardAmountAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardAmount()));
connect(clipboardFeeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardFee()));
connect(clipboardAfterFeeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardAfterFee()));
connect(clipboardBytesAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardBytes()));
connect(clipboardPriorityAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardPriority()));
connect(clipboardLowOutputAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardLowOutput()));
connect(clipboardChangeAction, SIGNAL(triggered()), this, SLOT(coinControlClipboardChange()));
ui->labelCoinControlQuantity->addAction(clipboardQuantityAction);
ui->labelCoinControlAmount->addAction(clipboardAmountAction);
ui->labelCoinControlFee->addAction(clipboardFeeAction);
ui->labelCoinControlAfterFee->addAction(clipboardAfterFeeAction);
ui->labelCoinControlBytes->addAction(clipboardBytesAction);
ui->labelCoinControlPriority->addAction(clipboardPriorityAction);
ui->labelCoinControlLowOutput->addAction(clipboardLowOutputAction);
ui->labelCoinControlChange->addAction(clipboardChangeAction);
fNewRecipientAllowed = true;
}
void SendCoinsDialog::setModel(WalletModel *model)
{
this->model = model;
if(model && model->getOptionsModel())
{
for(int i = 0; i < ui->entries->count(); ++i)
{
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
if(entry)
{
entry->setModel(model);
}
}
setBalance(model->getBalance(), model->getUnconfirmedBalance(), model->getImmatureBalance());
connect(model, SIGNAL(balanceChanged(qint64, qint64, qint64)), this, SLOT(setBalance(qint64, qint64, qint64)));
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
// Coin Control
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(coinControlUpdateLabels()));
connect(model->getOptionsModel(), SIGNAL(coinControlFeaturesChanged(bool)), this, SLOT(coinControlFeatureChanged(bool)));
connect(model->getOptionsModel(), SIGNAL(transactionFeeChanged(qint64)), this, SLOT(coinControlUpdateLabels()));
ui->frameCoinControl->setVisible(model->getOptionsModel()->getCoinControlFeatures());
coinControlUpdateLabels();
}
}
SendCoinsDialog::~SendCoinsDialog()
{
delete ui;
}
void SendCoinsDialog::on_sendButton_clicked()
{
if(!model || !model->getOptionsModel())
return;
QList<SendCoinsRecipient> recipients;
bool valid = true;
for(int i = 0; i < ui->entries->count(); ++i)
{
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
if(entry)
{
if(entry->validate())
{
recipients.append(entry->getValue());
}
else
{
valid = false;
}
}
}
if(!valid || recipients.isEmpty())
{
return;
}
// Format confirmation message
QStringList formatted;
foreach(const SendCoinsRecipient &rcp, recipients)
{
// generate bold amount string
QString amount = "<b>" + BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), rcp.amount);
amount.append("</b>");
// generate monospace address string
QString address = "<span style='font-family: monospace;'>" + rcp.address;
address.append("</span>");
QString recipientElement;
if (!rcp.paymentRequest.IsInitialized()) // normal payment
{
if(rcp.label.length() > 0) // label with address
{
recipientElement = tr("%1 to %2").arg(amount, GUIUtil::HtmlEscape(rcp.label));
recipientElement.append(QString(" (%1)").arg(address));
}
else // just address
{
recipientElement = tr("%1 to %2").arg(amount, address);
}
}
else if(!rcp.authenticatedMerchant.isEmpty()) // secure payment request
{
recipientElement = tr("%1 to %2").arg(amount, GUIUtil::HtmlEscape(rcp.authenticatedMerchant));
}
else // insecure payment request
{
recipientElement = tr("%1 to %2").arg(amount, address);
}
formatted.append(recipientElement);
}
fNewRecipientAllowed = false;
WalletModel::UnlockContext ctx(model->requestUnlock());
if(!ctx.isValid())
{
// Unlock wallet was cancelled
fNewRecipientAllowed = true;
return;
}
// prepare transaction for getting txFee earlier
WalletModelTransaction currentTransaction(recipients);
WalletModel::SendCoinsReturn prepareStatus;
if (model->getOptionsModel()->getCoinControlFeatures()) // coin control enabled
prepareStatus = model->prepareTransaction(currentTransaction, CoinControlDialog::coinControl);
else
prepareStatus = model->prepareTransaction(currentTransaction);
// process prepareStatus and on error generate message shown to user
processSendCoinsReturn(prepareStatus,
BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), currentTransaction.getTransactionFee()));
if(prepareStatus.status != WalletModel::OK) {
fNewRecipientAllowed = true;
return;
}
qint64 txFee = currentTransaction.getTransactionFee();
QString questionString = tr("Are you sure you want to send?");
questionString.append("<br /><br />%1");
if(txFee > 0)
{
// append fee string if a fee is required
questionString.append("<hr /><span style='color:#aa0000;'>");
questionString.append(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), txFee));
questionString.append("</span> ");
questionString.append(tr("added as transaction fee"));
}
// add total amount in all subdivision units
questionString.append("<hr />");
qint64 totalAmount = currentTransaction.getTotalTransactionAmount() + txFee;
QStringList alternativeUnits;
foreach(BitcoinUnits::Unit u, BitcoinUnits::availableUnits())
{
if(u != model->getOptionsModel()->getDisplayUnit())
alternativeUnits.append(BitcoinUnits::formatWithUnit(u, totalAmount));
}
questionString.append(tr("Total Amount %1 (= %2)")
.arg(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), totalAmount))
.arg(alternativeUnits.join(" " + tr("or") + " ")));
QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm send coins"),
questionString.arg(formatted.join("<br />")),
QMessageBox::Yes | QMessageBox::Cancel,
QMessageBox::Cancel);
if(retval != QMessageBox::Yes)
{
fNewRecipientAllowed = true;
return;
}
// now send the prepared transaction
WalletModel::SendCoinsReturn sendStatus = model->sendCoins(currentTransaction);
// process sendStatus and on error generate message shown to user
processSendCoinsReturn(sendStatus);
if (sendStatus.status == WalletModel::OK)
{
accept();
CoinControlDialog::coinControl->UnSelectAll();
coinControlUpdateLabels();
}
fNewRecipientAllowed = true;
}
void SendCoinsDialog::clear()
{
// Remove entries until only one left
while(ui->entries->count())
{
ui->entries->takeAt(0)->widget()->deleteLater();
}
addEntry();
updateTabsAndLabels();
}
void SendCoinsDialog::reject()
{
clear();
}
void SendCoinsDialog::accept()
{
clear();
}
SendCoinsEntry *SendCoinsDialog::addEntry()
{
SendCoinsEntry *entry = new SendCoinsEntry(this);
entry->setModel(model);
ui->entries->addWidget(entry);
connect(entry, SIGNAL(removeEntry(SendCoinsEntry*)), this, SLOT(removeEntry(SendCoinsEntry*)));
connect(entry, SIGNAL(payAmountChanged()), this, SLOT(coinControlUpdateLabels()));
updateTabsAndLabels();
// Focus the field, so that entry can start immediately
entry->clear();
entry->setFocus();
ui->scrollAreaWidgetContents->resize(ui->scrollAreaWidgetContents->sizeHint());
qApp->processEvents();
QScrollBar* bar = ui->scrollArea->verticalScrollBar();
if(bar)
bar->setSliderPosition(bar->maximum());
return entry;
}
void SendCoinsDialog::updateTabsAndLabels()
{
setupTabChain(0);
coinControlUpdateLabels();
}
void SendCoinsDialog::removeEntry(SendCoinsEntry* entry)
{
entry->hide();
// If the last entry is about to be removed add an empty one
if (ui->entries->count() == 1)
addEntry();
entry->deleteLater();
updateTabsAndLabels();
}
QWidget *SendCoinsDialog::setupTabChain(QWidget *prev)
{
for(int i = 0; i < ui->entries->count(); ++i)
{
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
if(entry)
{
prev = entry->setupTabChain(prev);
}
}
QWidget::setTabOrder(prev, ui->sendButton);
QWidget::setTabOrder(ui->sendButton, ui->clearButton);
QWidget::setTabOrder(ui->clearButton, ui->addButton);
return ui->addButton;
}
void SendCoinsDialog::setAddress(const QString &address)
{
SendCoinsEntry *entry = 0;
// Replace the first entry if it is still unused
if(ui->entries->count() == 1)
{
SendCoinsEntry *first = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(0)->widget());
if(first->isClear())
{
entry = first;
}
}
if(!entry)
{
entry = addEntry();
}
entry->setAddress(address);
}
void SendCoinsDialog::pasteEntry(const SendCoinsRecipient &rv)
{
if(!fNewRecipientAllowed)
return;
SendCoinsEntry *entry = 0;
// Replace the first entry if it is still unused
if(ui->entries->count() == 1)
{
SendCoinsEntry *first = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(0)->widget());
if(first->isClear())
{
entry = first;
}
}
if(!entry)
{
entry = addEntry();
}
entry->setValue(rv);
updateTabsAndLabels();
}
bool SendCoinsDialog::handlePaymentRequest(const SendCoinsRecipient &rv)
{
QString strSendCoins = tr("Send Coins");
if (rv.paymentRequest.IsInitialized()) {
// Expired payment request?
const payments::PaymentDetails& details = rv.paymentRequest.getDetails();
if (details.has_expires() && (int64_t)details.expires() < GetTime())
{
emit message(strSendCoins, tr("Payment request expired"),
CClientUIInterface::MSG_WARNING);
return false;
}
}
else {
CBitcoinAddress address(rv.address.toStdString());
if (!address.IsValid()) {
emit message(strSendCoins, tr("Invalid payment address %1").arg(rv.address),
CClientUIInterface::MSG_WARNING);
return false;
}
}
pasteEntry(rv);
return true;
}
void SendCoinsDialog::setBalance(qint64 balance, qint64 unconfirmedBalance, qint64 immatureBalance)
{
Q_UNUSED(unconfirmedBalance);
Q_UNUSED(immatureBalance);
if(model && model->getOptionsModel())
{
ui->labelBalance->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), balance));
}
}
void SendCoinsDialog::updateDisplayUnit()
{
setBalance(model->getBalance(), 0, 0);
}
void SendCoinsDialog::processSendCoinsReturn(const WalletModel::SendCoinsReturn &sendCoinsReturn, const QString &msgArg)
{
QPair<QString, CClientUIInterface::MessageBoxFlags> msgParams;
// Default to a warning message, override if error message is needed
msgParams.second = CClientUIInterface::MSG_WARNING;
// This comment is specific to SendCoinsDialog usage of WalletModel::SendCoinsReturn.
// WalletModel::TransactionCommitFailed is used only in WalletModel::sendCoins()
// all others are used only in WalletModel::prepareTransaction()
switch(sendCoinsReturn.status)
{
case WalletModel::InvalidAddress:
msgParams.first = tr("The recipient address is not valid, please recheck.");
break;
case WalletModel::InvalidAmount:
msgParams.first = tr("The amount to pay must be larger than 0.");
break;
case WalletModel::AmountExceedsBalance:
msgParams.first = tr("The amount exceeds your balance.");
break;
case WalletModel::AmountWithFeeExceedsBalance:
msgParams.first = tr("The total exceeds your balance when the %1 transaction fee is included.").arg(msgArg);
break;
case WalletModel::DuplicateAddress:
msgParams.first = tr("Duplicate address found, can only send to each address once per send operation.");
break;
case WalletModel::TransactionCreationFailed:
msgParams.first = tr("Transaction creation failed!");
msgParams.second = CClientUIInterface::MSG_ERROR;
break;
case WalletModel::TransactionCommitFailed:
msgParams.first = tr("The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.");
msgParams.second = CClientUIInterface::MSG_ERROR;
break;
// included to prevent a compiler warning.
case WalletModel::OK:
default:
return;
}
emit message(tr("Send Coins"), msgParams.first, msgParams.second);
}
// Coin Control: copy label "Quantity" to clipboard
void SendCoinsDialog::coinControlClipboardQuantity()
{
GUIUtil::setClipboard(ui->labelCoinControlQuantity->text());
}
// Coin Control: copy label "Amount" to clipboard
void SendCoinsDialog::coinControlClipboardAmount()
{
GUIUtil::setClipboard(ui->labelCoinControlAmount->text().left(ui->labelCoinControlAmount->text().indexOf(" ")));
}
// Coin Control: copy label "Fee" to clipboard
void SendCoinsDialog::coinControlClipboardFee()
{
GUIUtil::setClipboard(ui->labelCoinControlFee->text().left(ui->labelCoinControlFee->text().indexOf(" ")));
}
// Coin Control: copy label "After fee" to clipboard
void SendCoinsDialog::coinControlClipboardAfterFee()
{
GUIUtil::setClipboard(ui->labelCoinControlAfterFee->text().left(ui->labelCoinControlAfterFee->text().indexOf(" ")));
}
// Coin Control: copy label "Bytes" to clipboard
void SendCoinsDialog::coinControlClipboardBytes()
{
GUIUtil::setClipboard(ui->labelCoinControlBytes->text());
}
// Coin Control: copy label "Priority" to clipboard
void SendCoinsDialog::coinControlClipboardPriority()
{
GUIUtil::setClipboard(ui->labelCoinControlPriority->text());
}
// Coin Control: copy label "Low output" to clipboard
void SendCoinsDialog::coinControlClipboardLowOutput()
{
GUIUtil::setClipboard(ui->labelCoinControlLowOutput->text());
}
// Coin Control: copy label "Change" to clipboard
void SendCoinsDialog::coinControlClipboardChange()
{
GUIUtil::setClipboard(ui->labelCoinControlChange->text().left(ui->labelCoinControlChange->text().indexOf(" ")));
}
// Coin Control: settings menu - coin control enabled/disabled by user
void SendCoinsDialog::coinControlFeatureChanged(bool checked)
{
ui->frameCoinControl->setVisible(checked);
if (!checked && model) // coin control features disabled
CoinControlDialog::coinControl->SetNull();
if (checked)
coinControlUpdateLabels();
}
// Coin Control: button inputs -> show actual coin control dialog
void SendCoinsDialog::coinControlButtonClicked()
{
CoinControlDialog dlg;
dlg.setModel(model);
dlg.exec();
coinControlUpdateLabels();
}
// Coin Control: checkbox custom change address
void SendCoinsDialog::coinControlChangeChecked(int state)
{
if (state == Qt::Unchecked)
{
CoinControlDialog::coinControl->destChange = CNoDestination();
ui->labelCoinControlChangeLabel->clear();
}
else
// use this to re-validate an already entered address
coinControlChangeEdited(ui->lineEditCoinControlChange->text());
ui->lineEditCoinControlChange->setEnabled((state == Qt::Checked));
}
// Coin Control: custom change address changed
void SendCoinsDialog::coinControlChangeEdited(const QString& text)
{
if (model && model->getAddressTableModel())
{
// Default to no change address until verified
CoinControlDialog::coinControl->destChange = CNoDestination();
ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:red;}");
CBitcoinAddress addr = CBitcoinAddress(text.toStdString());
if (text.isEmpty()) // Nothing entered
{
ui->labelCoinControlChangeLabel->setText("");
}
else if (!addr.IsValid()) // Invalid address
{
ui->labelCoinControlChangeLabel->setText(tr("Warning: Invalid darkestdimecoin address"));
}
else // Valid address
{
CPubKey pubkey;
CKeyID keyid;
addr.GetKeyID(keyid);
if (!model->getPubKey(keyid, pubkey)) // Unknown change address
{
ui->labelCoinControlChangeLabel->setText(tr("Warning: Unknown change address"));
}
else // Known change address
{
ui->labelCoinControlChangeLabel->setStyleSheet("QLabel{color:black;}");
// Query label
QString associatedLabel = model->getAddressTableModel()->labelForAddress(text);
if (!associatedLabel.isEmpty())
ui->labelCoinControlChangeLabel->setText(associatedLabel);
else
ui->labelCoinControlChangeLabel->setText(tr("(no label)"));
CoinControlDialog::coinControl->destChange = addr.Get();
}
}
}
}
// Coin Control: update labels
void SendCoinsDialog::coinControlUpdateLabels()
{
if (!model || !model->getOptionsModel() || !model->getOptionsModel()->getCoinControlFeatures())
return;
// set pay amounts
CoinControlDialog::payAmounts.clear();
for(int i = 0; i < ui->entries->count(); ++i)
{
SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget());
if(entry)
CoinControlDialog::payAmounts.append(entry->getValue().amount);
}
if (CoinControlDialog::coinControl->HasSelected())
{
// actual coin control calculation
CoinControlDialog::updateLabels(model, this);
// show coin control stats
ui->labelCoinControlAutomaticallySelected->hide();
ui->widgetCoinControl->show();
}
else
{
// hide coin control stats
ui->labelCoinControlAutomaticallySelected->show();
ui->widgetCoinControl->hide();
ui->labelCoinControlInsuffFunds->hide();
}
}
| [
"darkestdimecoin@mail.com"
] | darkestdimecoin@mail.com |
c10e0325006c9156f7163b17ea0c2b522b6a09ed | f798e5955febcbb5e053604dde0056225954e956 | /TODO/BoobTheBear.cpp | 88357d9207aacbbba9d5348016559d8fc087a621 | [] | no_license | atulRanaa/problem-solving-directory | bd129da93f205602fd1b596a80d98ca3c164020f | 3c261a7a57591203d0fb502859a0e388f9b09ae1 | refs/heads/master | 2022-09-02T00:22:02.199595 | 2022-08-22T07:14:56 | 2022-08-22T07:15:41 | 177,447,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,398 | cpp | #include "bits/stdc++.h"
using namespace std;
typedef long long int ll;
const int MAX = 1005;
ll len[MAX], tim[MAX];
//int mapp[MAX][1005];
int main(){
int n; scanf("%d",&n);
for(int i=0;i<n;i++) scanf("%lld",&len[i]);//cin>>len[i];
for(int i=0;i<n;i++) scanf("%lld",&tim[i]);//cin>>tim[i];
/*set< ll > s;
for(int i=0;i<n;i++){
s.insert(tim[i]), s.insert(tim[i]+len[i]);
}*/
int k=0;
bitset<1001> mapp[MAX];
//int ma = 0,ind;
for(int i=0;i<n;i++){
//int temp=0,temp1=0;
//string S="",S1="";
for(int j=0;j<n;j++){
if(tim[i] >= tim[j] && tim[i] <= (tim[j]+len[j])) mapp[k][j]=1;//,temp++;
if((tim[i]+len[i]) >= tim[j] && (tim[i]+len[i]) <= (tim[j]+len[j])) mapp[k+1][j]=1;//,temp1++;
}
/*if(temp > ma) ma=temp,ind=k;
if(temp1 > ma) ma=temp1,ind=k+1;*/
k+=2;
}
int N = 2*n,ans = 0;
//cout<<ind<<"\n";
//for(int i=0;i<N;i++) cout<<mapp[i]<<"\n";
for(int i=0;i<N;i++){
for(int j=i+1;j<N;j++){
bitset<1001> c = mapp[i] | mapp[j];
ans = max(ans,(int)c.count());
}
}
printf("%d\n",ans);
//cout<<ans<<"\n";
//for(int i=0;i<2*n;i++) cout<<mapp[i]<<"\n";
/*int start[n],fin[n];
for(int i=0;i<n;i++){
start[i] = distance(s.begin(),s.find(tim[i]));
fin[i] = distance(s.begin(),s.find(tim[i],len[i]));
}
int dp[5000]={0};
for(int i=0;i<n;i++){
dp[ start[i] ] += 1, dp[fin[i] +1] -= 1;
}
for(int i=1;i<5000;i++) dp[i]+= dp[i-1];*/
} | [
"ranaatul61@gmail.com"
] | ranaatul61@gmail.com |
5db27512e4c4c380e4be701b944370e00f011957 | 705efd7c696314e5a02f4f9fce27ef135391a2c6 | /ImageProcessing/IJSFilterThresholding.cpp | 73b8640cf9e313f9e41078919618f4600b2fd3ff | [] | no_license | sergru/Image-Processing | 7535495fad2ce8af1bf93a117a13da2774aa19c8 | 0e930a0cf3f1265b9cfd41e8a2c42eb46eb3ab38 | refs/heads/master | 2020-06-15T22:02:16.816719 | 2019-07-06T01:40:45 | 2019-07-06T01:40:45 | 195,403,625 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,294 | cpp | #include "stdafx.h"
#include "IJSFilterThresholding.h"
const BYTE THRESHOLD = 128;
// ====================================================================================================================
CIJSFilterThresholding::CIJSFilterThresholding()
{
SetThresshold(THRESHOLD);
}
// ====================================================================================================================
CIJSFilterThresholding::~CIJSFilterThresholding()
{
}
// ====================================================================================================================
void CIJSFilterThresholding::GetIterationLimits(ULONG& firstX, ULONG& lastX, ULONG& firstY, ULONG& lastY)
{
firstX = 0;
lastX = m_InImage.GetWidth() - 1;
firstY = 0;
lastY = m_InImage.GetHeight() - 1;
}
// ====================================================================================================================
void CIJSFilterThresholding::SetThresshold(BYTE bVal)
{
m_bThreshold = bVal;
}
// ====================================================================================================================
void CIJSFilterThresholding::DoAction(ULONG x, ULONG y)
{
BYTE bVal = m_InImage.GetPixel(x, y);
bVal = (bVal >= m_bThreshold) ? 255 : 0;
m_OutImage.SetPixel(x, y, bVal);
}
| [
"Sergey.Orlov@am.sony.com"
] | Sergey.Orlov@am.sony.com |
42c02166a36f48a712f80ddc17b26444bdeee74e | e4910797da1edcefa87d9f088c92b6637dfae5a7 | /CPP/etc/Gold I/1033.cpp | a12f8d66dd19e48fa9bc5e6867028bd3c9a6247c | [] | no_license | VSFe/Algorithm | b9fb4241636d74291b7a6b3e2e86270f6a5039b8 | 6270f7147f4c29c5d83628b54fc043f99ec0cb31 | refs/heads/master | 2023-07-28T01:33:57.114279 | 2021-09-13T05:55:22 | 2021-09-13T05:55:22 | 224,992,253 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,476 | cpp | /**
* Problem: 칵테일 (1033)
* Comment: 비율을 트리로 변환해 gcd, lcm 구해서 조물딱 조물딱.
* /
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<pair<ll, pair<ll, ll>>> graph[10];
ll numerator[11];
ll denominator[11];
int visited[11];
int N;
void dfs(int node) {
visited[node] = 1;
for (auto next : graph[node]) {
if (visited[next.first]) continue;
numerator[next.first] = next.second.first * numerator[node];
denominator[next.first] = next.second.second * denominator[node];
dfs(next.first);
}
}
ll get_gcd(ll x, ll y) {
return x % y ? get_gcd(y, x % y) : y;
}
ll get_lcm(ll x, ll y) {
ll gcd = get_gcd(max(x, y), min(x, y));
return x / gcd * y;
}
int main() {
cin >> N;
for (int i = 1; i < N; i++) {
int a, b, p, q; cin >> a >> b >> p >> q;
int gcd = get_gcd(p, q);
p /= gcd; q /= gcd;
graph[a].push_back({b, {q, p}});
graph[b].push_back({a, {p, q}});
}
numerator[0] = 1;
denominator[0] = 1;
dfs(0);
ll pres_lcm = 1;
for (int i = 1; i < N; i++) {
ll gcd = get_gcd(max(denominator[i], numerator[i]), min(denominator[i], numerator[i]));
denominator[i] /= gcd;
numerator[i] /= gcd;
pres_lcm = get_lcm(denominator[i], pres_lcm);
}
for (int i = 0; i < N; i++) {
cout << pres_lcm / denominator[i] * numerator[i] << ' ';
}
return 0;
} | [
"klm03025@gmail.com"
] | klm03025@gmail.com |
892c73d7d03d6a11678a8f44829e886877c0f874 | c4a44ff65d2657c9fa68ba7acb7770ee9f468aaa | /main.3023383217752506243.cpp | 22e0ccc8b5abb8582d279be252a3e05a61a8eca5 | [] | no_license | huynguy97/IP-Week12 | acac2f73c1ff3b3043b0915bffb2bfc6a36c583f | 96f70993b4b4ec9eab1735334822a5c63fb43767 | refs/heads/master | 2020-05-22T08:39:44.899958 | 2019-05-12T17:25:54 | 2019-05-12T17:25:54 | 186,283,217 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,237 | cpp | //
//
#include <iostream>
#include <fstream>
#include <cassert>
#include <vector>
using namespace std;
typedef struct Gifts;
typedef string Wish;
struct Gifts
{
int price; //
string article; //
};
void read_wishlist_and_budget(ifstream& infile1, vector<Wish>& wishlist, int& budget)
{
//
assert(true);
//
//
//
string wishl;
cout << "Please enter the file name of your wish list: ";
cin >> wishl;
infile1.open(wishl.c_str());
if (infile1.is_open())
cout << "Wish list opened" << endl;
else
{
cout << "Failed" << endl;
return;
}
int money;
infile1 >> money;
budget = money;
string object;
string object2;
while(!infile1.eof())
{
getline(infile1, object);
object2 = object + "\n";
wishlist.push_back(object2); //
}
//
//
//
}
//
ostream& operator<< (ostream& out, const Gifts gift)
{
//
assert (true) ;
//
//
out << gift.price << endl;
out << gift.article << endl;
return out ;
}
void read_giftshop(ifstream& infile2, vector<Gifts>& gift)
{
//
assert(true);
//
//
infile2.open("giftstore.txt");
if (infile2.is_open())
cout << "Gift shop opened" << endl;
if (!infile2.is_open())
{
cout << "Failed" << endl;
return;
}
while (!infile2.eof())
{
Gifts present;
infile2 >> present.price;
infile2.get();
getline(infile2, present.article);
if (infile2)
gift.push_back(present);
}
//
//
//
}
int size(vector<Gifts>& gift)
{
//
assert(true);
//
//
return static_cast<int>(gift.size());
}
void show(vector<Gifts>& gift)
{
//
assert(true);
//
//
const int NUMBER_ELEMENTS = size(gift);
if (NUMBER_ELEMENTS > 0)
{
for(int i = 0; i < NUMBER_ELEMENTS-1; i++)
cout << gift[i].article << ",";
cout << gift[NUMBER_ELEMENTS-1].article;
}
}
int sum(vector<Gifts>& gift, int from)
{
//
assert(from >= 0 && from <= size(gift));
//
//
int sum = 0;
for(int i = from; i < size(gift); i++)
sum = sum + gift[i].price;
return sum;
}
int sum(vector<Gifts>& gift)
{
//
assert(true);
//
//
return sum (gift,0);
}
void improve(vector<Gifts>& current, vector<Gifts>& best)
{
//
assert(true);
//
//
if (sum(current) > sum(best))
best = current;
}
int minimum (vector<Gifts>& gift, int from)
{
//
assert (from >= 0 && from <= size(gift));
//
//
if (from == size(gift))
return 0;
int m = gift[from].price;
for (int i = from+1; i < size(gift); i++)
if (gift[i].price < m)
m = gift[i].price;
return m;
}
int number_of_gifts(vector<Gifts>& attempt, vector<Gifts>& best, vector<Gifts>& gift, vector<Wish>& wishlist, int current_gift, int budget)
{
//
assert(current_gift >= 0 && budget >= 0);
//
//
int w = current_gift;
if (budget == 0)
{
best = attempt;
return budget;
}
else if (budget < minimum(gift, 0))
{
best = attempt;
return budget;
}
else if (budget < 0)
{
return 0;
}
else if (current_gift >= size(gift))
{
improve(attempt, best);
return 0;
}
else if (sum(attempt) + sum(gift, current_gift) <= sum(best))
{
return 0;
}
else if (sum(gift, current_gift) < budget)
{
return 0;
}
else if (minimum(gift, current_gift) > budget)
{
return 0;
}
else
{
for (int i = 0; i < size(gift); i++)
{
if (wishlist[w] == gift[i].article && w < wishlist.size())
{
w++;
attempt.push_back(gift[i]);
int with_current_gift = number_of_gifts(attempt, best, gift, wishlist, current_gift+1, budget - gift[i].price);
attempt.pop_back();
int without_current_gift = number_of_gifts(attempt, best, gift, wishlist, current_gift+1, budget);
return with_current_gift, without_current_gift;
}
else if (i == size(gift))
w++;
}
}
return 0;
}
int main()
{
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
cout << "Reading wish list" << endl;
vector<Wish> wishlistt;
int budget;
ifstream infile1;
read_wishlist_and_budget(infile1, wishlistt, budget);
cout << endl;
cout << "Reading gift shop" << endl;
vector<Gifts> giftt;
ifstream infile2;
read_giftshop(infile2, giftt);
cout << endl;
cout << "Test vector" << endl;
vector<Gifts> gift = {{20, "article1"}, {10, "article2"}, {25, "article3"}, {10, "article 4"}};
vector<Gifts> attempt;
vector<Gifts> best;
vector<Wish> wishlist = {"article1", "article2", "article3", "article 4"};
number_of_gifts(attempt, best, gift, wishlist, 0, 40);
show(best);
cout << endl;
return 0;
}
| [
"h.nguyen@student.science.ru.nl"
] | h.nguyen@student.science.ru.nl |
7f9e5c0eaa47b7b9794e2ab7af1a00143096fb85 | 7e46fcc7081927f0c231168f15098783ff41013c | /cpp/cpp_features/src/control_flow.hpp | 2729c8e5a5ae34910ee0fde2fb2aee822160af4a | [] | no_license | Trietptm-on-Coding-Algorithms/prog | 94b8fbb8907dfe64858e85f575ac7c57fb174fb1 | 3c4d146aacaae3540f82411ab46066dbc6292fa0 | refs/heads/master | 2021-01-19T17:32:00.233793 | 2017-02-17T04:58:43 | 2017-02-17T04:58:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63 | hpp |
namespace controlflow {
void demo();
bool run = true;
}
| [
"bartonleland@gmail.com"
] | bartonleland@gmail.com |
ec0511f1445c886bb418f0628efb53852683b3ac | a0d843d76a2c35de0a090dfc2ca94da03c183c45 | /arm-eabi2/lib/ezx-z6/include/ZMessageDlg.h | 1c4a3763d9d3171920c0f759b1fc845a78cee944 | [] | no_license | a1batross/motomagx_toolchain | cda3a44272234812bdae34c635189ad93526bfbf | fb0cc4ecd31373d18f09c32a4dd4d592b084a4be | refs/heads/master | 2020-09-05T12:53:55.073727 | 2019-11-06T23:29:00 | 2019-11-06T23:29:00 | 220,109,439 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 809 | h | #ifndef _ZMESSAGEDLG_H
#define _ZMESSAGEDLG_H
#include <ZPopup.h>
/* Size 216 = 54*4 */
class ZMessageDlg : public ZPopup
{
Q_OBJECT
unsigned int data[54 - sizeof(ZPopup)/4];
public:
enum MessageDlgType
{
ok_cancel, //choose
yes_no, //confirm
just_ok, //ok
NONE //custom
};
ZMessageDlg(QWidget* parent = NULL, char const* name = 0, bool modal, WFlags f = 0);
ZMessageDlg(QString const& header, QString const& message, MessageDlgType type, int timeout_ms = 0, QWidget* parent = NULL, char const* name = 0, bool modal, WFlags f = 0); //TODO: fix if parent and name parameters are correct
~ZMessageDlg();
void initialize();
void setMsgIcon(QString const&);
void keyPressEvent(QKeyEvent*);
void keyReleaseEvent(QKeyEvent*);
void setType(ZMessageDlg::MessageDlgType);
};
#endif
| [
"a1ba.omarov@gmail.com"
] | a1ba.omarov@gmail.com |
a436b4ef5203459c6a91bef2e6ab3a555f3943f7 | a6f69a579b957e2446b0943ac7a336ff44336bde | /main.cpp | 38978e360033a1ad3d9e75449e9b068e8b12f353 | [] | no_license | Ariel-Reyes/2 | 7fa5dd25531c8a0aabc0482ff4b22c12701c9b47 | 687409a4832853f0d8067dc5fcb7a34e7e8936d4 | refs/heads/main | 2023-02-27T20:43:09.277171 | 2021-02-05T23:32:52 | 2021-02-05T23:32:52 | null | 0 | 0 | null | null | null | null | ISO-8859-10 | C++ | false | false | 2,705 | cpp | #include <iostream>
#include <string.h>
#include <vector>
using namespace std;
// Ariel Fernando Reyes Castellanos (11921023)
vector<char> letras_unicas(string palabra)
{
vector<char> letras;
int help;
help = 0;
char arre[palabra.size()];
for (int i = 0; i < palabra.size(); i++)
{
arre[i] = palabra[i];
letras.push_back(arre[i]); // se le pasa el indice de valores a nuestro vector
}
for (int i = letras.size() - 1; i + 1 > 0; i--)
{
help = 0; // con una variable de ayuda iremos incrementando y lo usaremos para ver si hay repetidas
for (int j = letras.size() - 1; j + 1 > 0; j--)
{
if (letras.at(j) == palabra[i]) // hacemos la comparacion
{
help++; // aummenta nuestro auxiliar
}
}
if (help > 1)
{
letras.erase(letras.begin() + i); // borrarmos ese letra de nuestro vector
}
}
return letras;
}
int *cuenta_cara(string palabra, vector<char> vec)
{
int tam;
int help;
tam = vec.size();
int *pala;
pala = new int[vec.size()];
for (int i = tam - 1; i + 1 > 0; i--) // hacemos un for para que recorra el tamaņo del vector
{
help = 0; // auxiliar para cambio
for (int j = palabra.length() - 1; j + 1 > 0; j--)
{
if (palabra[j] != vec.at(i)) // validamos que si son diferentes no se haga nada
{
}
else
{
help++; // si lo son que cambien y a la posicion se le agrega el auxiliar
pala[i] = help;
}
}
}
return pala;
}
/*for(int i=0; i<letras.size(); i++){
for(int j=0; j< letras.size()-1; j++){
if(letras[i]==letras[j]){
letras.erase(letras.begin() + i);
}
} */
int main()
{
int opc = 2;
while (opc != 5) // creacion del menu
{
cout << "------------Menu------------" << endl;
cout << "1....................... Retorna letras unicas" << endl;
cout << "2.........................Cuenta de cada caracter" << endl;
cout << "3.........................De mayor a menor" << endl;
cout << "4..........................Frecuencia de letras" << endl;
cout << "5..........................Salir" << endl;
cin >> opc;
switch (opc)
{
case 1:
{ // ejercicio de retorno de letras unicas
string palabra;
cout << "Ingrese una palabra: " << endl;
cin >> palabra;
vector<char> letra;
letra = letras_unicas(palabra);
for (int i = 0; i < letra.size(); i++)
{
cout << "[" << letra[i] << "]" << endl;
}
break;
}
case 2:
{
string pala;
cout << "Ingrese una palabra: " << '\n';
cin >> pala;
vector<char> redu;
redu = letras_unicas(pala);
int *p = cuenta_cara(pala, redu);
for (int i = 0; i < redu.size(); i++)
{
cout << "[" << p[i] << "]";
}
break;
}
case 3:
{
break;
}
}
}
return 0;
}
| [
"73078760+Ariel-Reyes@users.noreply.github.com"
] | 73078760+Ariel-Reyes@users.noreply.github.com |
b89d2f9201e513fd3b18d912d27deb102ff08294 | bd1fea86d862456a2ec9f56d57f8948456d55ee6 | /000/076/373/CWE126_Buffer_Overread__malloc_char_memmove_74a.cpp | 6e740704cffa1af4dfd862c2389cbc8cf687c8ed | [] | no_license | CU-0xff/juliet-cpp | d62b8485104d8a9160f29213368324c946f38274 | d8586a217bc94cbcfeeec5d39b12d02e9c6045a2 | refs/heads/master | 2021-03-07T15:44:19.446957 | 2020-03-10T12:45:40 | 2020-03-10T12:45:40 | 246,275,244 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,530 | cpp | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE126_Buffer_Overread__malloc_char_memmove_74a.cpp
Label Definition File: CWE126_Buffer_Overread__malloc.label.xml
Template File: sources-sink-74a.tmpl.cpp
*/
/*
* @description
* CWE: 126 Buffer Over-read
* BadSource: Use a small buffer
* GoodSource: Use a large buffer
* Sinks: memmove
* BadSink : Copy data to string using memmove
* Flow Variant: 74 Data flow: data passed in a map from one function to another in different source files
*
* */
#include "std_testcase.h"
#include <map>
#include <wchar.h>
using namespace std;
namespace CWE126_Buffer_Overread__malloc_char_memmove_74
{
#ifndef OMITBAD
/* bad function declaration */
void badSink(map<int, char *> dataMap);
void bad()
{
char * data;
map<int, char *> dataMap;
data = NULL;
/* FLAW: Use a small buffer */
data = (char *)malloc(50*sizeof(char));
memset(data, 'A', 50-1); /* fill with 'A's */
data[50-1] = '\0'; /* null terminate */
/* Put data in a map */
dataMap[0] = data;
dataMap[1] = data;
dataMap[2] = data;
badSink(dataMap);
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* good function declarations */
/* goodG2B uses the GoodSource with the BadSink */
void goodG2BSink(map<int, char *> dataMap);
static void goodG2B()
{
char * data;
map<int, char *> dataMap;
data = NULL;
/* FIX: Use a large buffer */
data = (char *)malloc(100*sizeof(char));
memset(data, 'A', 100-1); /* fill with 'A's */
data[100-1] = '\0'; /* null terminate */
/* Put data in a map */
dataMap[0] = data;
dataMap[1] = data;
dataMap[2] = data;
goodG2BSink(dataMap);
}
void good()
{
goodG2B();
}
#endif /* OMITGOOD */
} /* close namespace */
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
#ifdef INCLUDEMAIN
using namespace CWE126_Buffer_Overread__malloc_char_memmove_74; /* so that we can use good and bad easily */
int main(int argc, char * argv[])
{
/* seed randomness */
srand( (unsigned)time(NULL) );
#ifndef OMITGOOD
printLine("Calling good()...");
good();
printLine("Finished good()");
#endif /* OMITGOOD */
#ifndef OMITBAD
printLine("Calling bad()...");
bad();
printLine("Finished bad()");
#endif /* OMITBAD */
return 0;
}
#endif
| [
"frank@fischer.com.mt"
] | frank@fischer.com.mt |
1703d33f0643f2f56515e15108df9ad329c193ab | bdc9b0972c241b12637abc8602c59ae1bffcde44 | /apps/dynamicsearch/RandomSortingIDA.cpp | e8e158c31970a727d6afecb15b104a5e7e9ac00b | [
"MIT"
] | permissive | carolyn-y/hog2 | eb0a3361b0d9247d1b7a4891fc1e1095b3eabf44 | 96616b40f4173959b127011c76f3e649688e1a99 | refs/heads/master | 2023-07-09T05:28:49.342432 | 2015-08-19T22:00:37 | 2015-08-19T22:00:37 | 277,397,436 | 0 | 0 | MIT | 2020-08-13T16:17:02 | 2020-07-05T23:02:04 | null | UTF-8 | C++ | false | false | 69 | cpp | #include "RandomSortingIDA.h"
#include <math.h>
#include "FPUtil.h"
| [
"rick.valenzano@3e291e08-dd2d-0410-9de5-7df0620fb8d4"
] | rick.valenzano@3e291e08-dd2d-0410-9de5-7df0620fb8d4 |
b3c8e69e57188d2ffd5c8f82f97194dbcc6e0fe8 | 794894f3cac99b0753d3addf95f44df5421d62d3 | /src/rpcblockchain.cpp | 74e93ca117fb6b8a66d841faca42e59f9dba3832 | [
"MIT"
] | permissive | newarroncoin/newarroncoin | aad211b5bacf402aaf2538d658c7f5d49d3a0ccb | 8e487c2b6d474d9b92f08c89d467193f40782892 | refs/heads/master | 2021-01-19T00:13:42.868570 | 2017-08-17T06:21:31 | 2017-08-17T06:21:31 | 100,567,589 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,050 | cpp | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "rpcserver.h"
#include "init.h"
#include "txdb.h"
#include "kernel.h"
#include "checkpoints.h"
#include <errno.h>
using namespace json_spirit;
using namespace std;
extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, json_spirit::Object& entry);
double BitsToDouble(unsigned int nBits)
{
// Floating point number that is a multiple of the minimum difficulty,
// minimum difficulty = 1.0.
int nShift = (nBits >> 24) & 0xff;
double dDiff = (double)0x0000ffff / (double)(nBits & 0x00ffffff);
while (nShift < 29)
{
dDiff *= 256.0;
nShift++;
}
while (nShift > 29)
{
dDiff /= 256.0;
nShift--;
}
return dDiff;
}
double GetDifficulty(const CBlockIndex* blockindex)
{
if (blockindex == NULL)
{
if (pindexBest == NULL)
return 1.0;
else
blockindex = GetLastBlockIndex(pindexBest, false);
};
return BitsToDouble(blockindex->nBits);
}
double GetHeaderDifficulty(const CBlockThinIndex* blockindex)
{
if (blockindex == NULL)
{
if (pindexBest == NULL)
return 1.0;
else
blockindex = GetLastBlockThinIndex(pindexBestHeader, false);
};
return BitsToDouble(blockindex->nBits);
}
double GetPoWMHashPS()
{
if (pindexBest->nHeight >= Params().LastPOWBlock())
return 0;
int nPoWInterval = 72;
int64_t nTargetSpacingWorkMin = 30, nTargetSpacingWork = 30;
CBlockIndex* pindex = pindexGenesisBlock;
CBlockIndex* pindexPrevWork = pindexGenesisBlock;
while (pindex)
{
if (pindex->IsProofOfWork())
{
int64_t nActualSpacingWork = pindex->GetBlockTime() - pindexPrevWork->GetBlockTime();
nTargetSpacingWork = ((nPoWInterval - 1) * nTargetSpacingWork + nActualSpacingWork + nActualSpacingWork) / (nPoWInterval + 1);
nTargetSpacingWork = max(nTargetSpacingWork, nTargetSpacingWorkMin);
pindexPrevWork = pindex;
}
pindex = pindex->pnext;
}
return GetDifficulty() * 4294.967296 / nTargetSpacingWork;
}
double GetPoSKernelPS()
{
int nPoSInterval = 72;
double dStakeKernelsTriedAvg = 0;
int nStakesHandled = 0, nStakesTime = 0;
if (nNodeMode == NT_THIN)
{
CBlockThinIndex* pindex = pindexBestHeader;;
CBlockThinIndex* pindexPrevStake = NULL;
while (pindex && nStakesHandled < nPoSInterval)
{
if (pindex->IsProofOfStake())
{
if (pindexPrevStake)
{
dStakeKernelsTriedAvg += GetHeaderDifficulty(pindex) * 4294967296.0;
nStakesTime += pindexPrevStake ? (pindexPrevStake->nTime - pindex->nTime) : 0;
nStakesHandled++;
};
pindexPrevStake = pindex;
};
pindex = pindex->pprev;
};
} else
{
CBlockIndex* pindex = pindexBest;;
CBlockIndex* pindexPrevStake = NULL;
while (pindex && nStakesHandled < nPoSInterval)
{
if (pindex->IsProofOfStake())
{
if (pindexPrevStake)
{
dStakeKernelsTriedAvg += GetDifficulty(pindex) * 4294967296.0;
nStakesTime += pindexPrevStake ? (pindexPrevStake->nTime - pindex->nTime) : 0;
nStakesHandled++;
}
pindexPrevStake = pindex;
}
pindex = pindex->pprev;
}
}
double result = 0;
if (nStakesTime)
result = dStakeKernelsTriedAvg / nStakesTime;
if (Params().IsProtocolV2(nBestHeight))
result *= STAKE_TIMESTAMP_MASK + 1;
return result;
}
Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool fPrintTransactionDetail)
{
Object result;
result.push_back(Pair("hash", block.GetHash().GetHex()));
CMerkleTx txGen(block.vtx[0]);
txGen.SetMerkleBranch(&block);
result.push_back(Pair("confirmations", (int)txGen.GetDepthInMainChain()));
result.push_back(Pair("size", (int)::GetSerializeSize(block, SER_NETWORK, PROTOCOL_VERSION)));
result.push_back(Pair("height", blockindex->nHeight));
result.push_back(Pair("version", block.nVersion));
result.push_back(Pair("merkleroot", block.hashMerkleRoot.GetHex()));
result.push_back(Pair("mint", ValueFromAmount(blockindex->nMint)));
result.push_back(Pair("time", (int64_t)block.GetBlockTime()));
result.push_back(Pair("nonce", (uint64_t)block.nNonce));
result.push_back(Pair("bits", HexBits(block.nBits)));
result.push_back(Pair("difficulty", GetDifficulty(blockindex)));
result.push_back(Pair("blocktrust", leftTrim(blockindex->GetBlockTrust().GetHex(), '0')));
result.push_back(Pair("chaintrust", leftTrim(blockindex->nChainTrust.GetHex(), '0')));
if (blockindex->pprev)
result.push_back(Pair("previousblockhash", blockindex->pprev->GetBlockHash().GetHex()));
if (blockindex->pnext)
result.push_back(Pair("nextblockhash", blockindex->pnext->GetBlockHash().GetHex()));
result.push_back(Pair("flags", strprintf("%s%s", blockindex->IsProofOfStake()? "proof-of-stake" : "proof-of-work", blockindex->GeneratedStakeModifier()? " stake-modifier": "")));
result.push_back(Pair("proofhash", blockindex->hashProof.GetHex()));
result.push_back(Pair("entropybit", (int)blockindex->GetStakeEntropyBit()));
result.push_back(Pair("modifier", strprintf("%016x", blockindex->nStakeModifier)));
result.push_back(Pair("modifierv2", blockindex->bnStakeModifierV2.GetHex()));
Array txinfo;
BOOST_FOREACH (const CTransaction& tx, block.vtx)
{
if (fPrintTransactionDetail)
{
Object entry;
entry.push_back(Pair("txid", tx.GetHash().GetHex()));
TxToJSON(tx, 0, entry);
txinfo.push_back(entry);
}
else
txinfo.push_back(tx.GetHash().GetHex());
}
result.push_back(Pair("tx", txinfo));
if (block.IsProofOfStake())
result.push_back(Pair("signature", HexStr(block.vchBlockSig.begin(), block.vchBlockSig.end())));
return result;
}
Object blockHeaderToJSON(const CBlockThin& block, const CBlockThinIndex* blockindex)
{
Object result;
result.push_back(Pair("hash", block.GetHash().GetHex()));
//CMerkleTx txGen(block.vtx[0]);
//txGen.SetMerkleBranch(&block);
//result.push_back(Pair("confirmations", (int)txGen.GetDepthInMainChain()));
result.push_back(Pair("size", (int)::GetSerializeSize(block, SER_NETWORK, PROTOCOL_VERSION)));
result.push_back(Pair("height", blockindex->nHeight));
result.push_back(Pair("version", block.nVersion));
result.push_back(Pair("merkleroot", block.hashMerkleRoot.GetHex()));
//result.push_back(Pair("mint", ValueFromAmount(blockindex->nMint)));
result.push_back(Pair("time", (int64_t)block.GetBlockTime()));
result.push_back(Pair("nonce", (uint64_t)block.nNonce));
result.push_back(Pair("bits", HexBits(block.nBits)));
result.push_back(Pair("difficulty", GetHeaderDifficulty(blockindex)));
result.push_back(Pair("blocktrust", leftTrim(blockindex->GetBlockTrust().GetHex(), '0')));
result.push_back(Pair("chaintrust", leftTrim(blockindex->nChainTrust.GetHex(), '0')));
if (blockindex->pprev)
result.push_back(Pair("previousblockhash", blockindex->pprev->GetBlockHash().GetHex()));
if (blockindex->pnext)
result.push_back(Pair("nextblockhash", blockindex->pnext->GetBlockHash().GetHex()));
result.push_back(Pair("flags", strprintf("%s%s", blockindex->IsProofOfStake()? "proof-of-stake" : "proof-of-work", blockindex->GeneratedStakeModifier()? " stake-modifier": "")));
result.push_back(Pair("proofhash", blockindex->hashProof.GetHex()));
result.push_back(Pair("entropybit", (int)blockindex->GetStakeEntropyBit()));
result.push_back(Pair("modifier", strprintf("%016x", blockindex->nStakeModifier)));
//result.push_back(Pair("modifierv2", blockindex->bnStakeModifierV2.GetHex()));
//if (block.IsProofOfStake())
// result.push_back(Pair("signature", HexStr(block.vchBlockSig.begin(), block.vchBlockSig.end())));
return result;
}
Object diskBlockThinIndexToJSON(CDiskBlockThinIndex& diskBlock)
{
CBlock block = diskBlock.GetBlock();
Object result;
result.push_back(Pair("hash", block.GetHash().GetHex()));
//CMerkleTx txGen(block.vtx[0]);
//txGen.SetMerkleBranch(&block);
//result.push_back(Pair("confirmations", (int)txGen.GetDepthInMainChain()));
//result.push_back(Pair("size", (int)::GetSerializeSize(block, SER_NETWORK, PROTOCOL_VERSION)));
result.push_back(Pair("height", diskBlock.nHeight));
result.push_back(Pair("version", block.nVersion));
result.push_back(Pair("merkleroot", block.hashMerkleRoot.GetHex()));
//result.push_back(Pair("mint", ValueFromAmount(blockindex->nMint)));
result.push_back(Pair("time", (int64_t)block.GetBlockTime()));
result.push_back(Pair("nonce", (uint64_t)block.nNonce));
result.push_back(Pair("bits", HexBits(block.nBits)));
result.push_back(Pair("difficulty", BitsToDouble(diskBlock.nBits)));
result.push_back(Pair("blocktrust", leftTrim(diskBlock.GetBlockTrust().GetHex(), '0')));
result.push_back(Pair("chaintrust", leftTrim(diskBlock.nChainTrust.GetHex(), '0')));
result.push_back(Pair("previousblockhash", diskBlock.hashPrev.GetHex()));
result.push_back(Pair("nextblockhash", diskBlock.hashNext.GetHex()));
result.push_back(Pair("flags", strprintf("%s%s", diskBlock.IsProofOfStake()? "proof-of-stake" : "proof-of-work", diskBlock.GeneratedStakeModifier()? " stake-modifier": "")));
result.push_back(Pair("proofhash", diskBlock.hashProof.GetHex()));
result.push_back(Pair("entropybit", (int)diskBlock.GetStakeEntropyBit()));
result.push_back(Pair("modifier", strprintf("%016x", diskBlock.nStakeModifier)));
//result.push_back(Pair("modifierv2", diskBlock.bnStakeModifierV2.GetHex()));
//result.push_back(Pair("modifierchecksum", strprintf("%08x", diskBlock.nStakeModifierChecksum)));
//if (block.IsProofOfStake())
// result.push_back(Pair("signature", HexStr(block.vchBlockSig.begin(), block.vchBlockSig.end())));
return result;
}
Value getbestblockhash(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getbestblockhash\n"
"Returns the hash of the best block in the longest block chain.");
return hashBestChain.GetHex();
}
Value getblockcount(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getblockcount\n"
"Returns the number of blocks in the longest block chain.");
return nBestHeight;
}
Value getdifficulty(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getdifficulty\n"
"Returns the difficulty as a multiple of the minimum difficulty.");
Object obj;
obj.push_back(Pair("proof-of-work", GetDifficulty()));
obj.push_back(Pair("proof-of-stake", GetDifficulty(GetLastBlockIndex(pindexBest, true))));
obj.push_back(Pair("search-interval", (int)nLastCoinStakeSearchInterval));
return obj;
}
Value settxfee(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 1 || AmountFromValue(params[0]) < MIN_TX_FEE)
throw runtime_error(
"settxfee <amount>\n"
"<amount> is a real and is rounded to the nearest 0.01");
nTransactionFee = AmountFromValue(params[0]);
nTransactionFee = (nTransactionFee / CENT) * CENT; // round to cent
return true;
}
Value getrawmempool(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getrawmempool\n"
"Returns all transaction ids in memory pool.");
vector<uint256> vtxid;
mempool.queryHashes(vtxid);
Array a;
BOOST_FOREACH(const uint256& hash, vtxid)
a.push_back(hash.ToString());
return a;
}
Value getblockhash(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"getblockhash <index>\n"
"Returns hash of block in best-block-chain at <index>.");
int nHeight = params[0].get_int();
if (nHeight < 0 || nHeight > nBestHeight)
throw runtime_error("Block number out of range.");
CBlockIndex* pblockindex = FindBlockByHeight(nHeight);
return pblockindex->phashBlock->GetHex();
}
Value getblock(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"getblock <hash> [txinfo]\n"
"txinfo optional to print more detailed tx info\n"
"Returns details of a block with given block-hash.");
std::string strHash = params[0].get_str();
uint256 hash(strHash);
if (nNodeMode == NT_THIN)
{
CDiskBlockThinIndex diskindex;
CTxDB txdb("r");
if (txdb.ReadBlockThinIndex(hash, diskindex))
return diskBlockThinIndexToJSON(diskindex);
throw runtime_error("Read header from db failed.\n");
};
if (mapBlockIndex.count(hash) == 0)
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Block not found");
CBlock block;
CBlockIndex* pblockindex = mapBlockIndex[hash];
block.ReadFromDisk(pblockindex, true);
return blockToJSON(block, pblockindex, params.size() > 1 ? params[1].get_bool() : false);
}
Value getblockbynumber(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"getblockbynumber <number> [txinfo]\n"
"txinfo optional to print more detailed tx info\n"
"Returns details of a block with given block-number.");
int nHeight = params[0].get_int();
if (nHeight < 0 || nHeight > nBestHeight)
throw runtime_error("Block number out of range.");
if (nNodeMode == NT_THIN)
{
if (!fThinFullIndex
&& pindexRear
&& nHeight < pindexRear->nHeight)
{
CDiskBlockThinIndex diskindex;
uint256 hashPrev = pindexRear->GetBlockHash();
// -- find closest checkpoint
Checkpoints::MapCheckpoints& checkpoints = (fTestNet ? Checkpoints::mapCheckpointsTestnet : Checkpoints::mapCheckpoints);
Checkpoints::MapCheckpoints::reverse_iterator rit;
for (rit = checkpoints.rbegin(); rit != checkpoints.rend(); ++rit)
{
if (rit->first < nHeight)
break;
hashPrev = rit->second;
};
CTxDB txdb("r");
while (hashPrev != 0)
{
if (!txdb.ReadBlockThinIndex(hashPrev, diskindex))
throw runtime_error("Read header from db failed.\n");
if (diskindex.nHeight == nHeightFilteredNeeded)
return diskBlockThinIndexToJSON(diskindex);
hashPrev = diskindex.hashPrev;
};
throw runtime_error("block not found.");
};
CBlockThin block;
std::map<uint256, CBlockThinIndex*>::iterator mi = mapBlockThinIndex.find(hashBestChain);
if (mi != mapBlockThinIndex.end())
{
CBlockThinIndex* pblockindex = mi->second;
while (pblockindex->pprev && pblockindex->nHeight > nHeight)
pblockindex = pblockindex->pprev;
if (nHeight != pblockindex->nHeight)
{
throw runtime_error("block not in chain index.");
}
return blockHeaderToJSON(block, pblockindex);
} else
{
throw runtime_error("hashBestChain not in chain index.");
}
}
CBlock block;
CBlockIndex* pblockindex = mapBlockIndex[hashBestChain];
while (pblockindex->nHeight > nHeight)
pblockindex = pblockindex->pprev;
uint256 hash = *pblockindex->phashBlock;
pblockindex = mapBlockIndex[hash];
block.ReadFromDisk(pblockindex, true);
return blockToJSON(block, pblockindex, params.size() > 1 ? params[1].get_bool() : false);
}
Value setbestblockbyheight(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"setbestblockbyheight <height>\n"
"Sets the tip of the chain th block at <height>.");
int nHeight = params[0].get_int();
if (nHeight < 0 || nHeight > nBestHeight)
throw runtime_error("Block height out of range.");
if (nNodeMode == NT_THIN)
{
throw runtime_error("Must be in full mode.");
};
CBlock block;
CBlockIndex* pblockindex = mapBlockIndex[hashBestChain];
while (pblockindex->nHeight > nHeight)
pblockindex = pblockindex->pprev;
uint256 hash = *pblockindex->phashBlock;
pblockindex = mapBlockIndex[hash];
block.ReadFromDisk(pblockindex, true);
Object result;
CTxDB txdb;
{
LOCK(cs_main);
if (!block.SetBestChain(txdb, pblockindex))
result.push_back(Pair("result", "failure"));
else
result.push_back(Pair("result", "success"));
};
return result;
}
Value rewindchain(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"rewindchain <number>\n"
"Remove <number> blocks from the chain.");
int nNumber = params[0].get_int();
if (nNumber < 0 || nNumber > nBestHeight)
throw runtime_error("Block number out of range.");
if (nNodeMode == NT_THIN)
{
throw runtime_error("Must be in full mode.");
};
Object result;
int nRemoved = 0;
{
LOCK2(cs_main, pwalletMain->cs_wallet);
uint32_t nFileRet = 0;
uint8_t buffer[512];
LogPrintf("rewindchain %d\n", nNumber);
void* nFind;
for (int i = 0; i < nNumber; ++i)
{
memset(buffer, 0, sizeof(buffer));
FILE* fp = AppendBlockFile(false, nFileRet, "r+b");
if (!fp)
{
LogPrintf("AppendBlockFile failed.\n");
break;
};
errno = 0;
if (fseek(fp, 0, SEEK_END) != 0)
{
LogPrintf("fseek failed: %s\n", strerror(errno));
break;
};
long int fpos = ftell(fp);
if (fpos == -1)
{
LogPrintf("ftell failed: %s\n", strerror(errno));
break;
};
long int foundPos = -1;
long int readSize = sizeof(buffer) / 2;
while (fpos > 0)
{
if (fpos < (long int)sizeof(buffer) / 2)
readSize = fpos;
memcpy(buffer+readSize, buffer, readSize); // move last read data (incase token crosses a boundary)
fpos -= readSize;
if (fseek(fp, fpos, SEEK_SET) != 0)
{
LogPrintf("fseek failed: %s\n", strerror(errno));
break;
};
errno = 0;
if (fread(buffer, sizeof(uint8_t), readSize, fp) != (size_t)readSize)
{
if (errno != 0)
LogPrintf("fread failed: %s\n", strerror(errno));
else
LogPrintf("End of file.\n");
break;
};
uint32_t findPos = sizeof(buffer);
while (findPos > MESSAGE_START_SIZE)
{
if ((nFind = ryb::memrchr(buffer, Params().MessageStart()[0], findPos-MESSAGE_START_SIZE)))
{
if (memcmp(nFind, Params().MessageStart(), MESSAGE_START_SIZE) == 0)
{
foundPos = ((uint8_t*)nFind - buffer) + MESSAGE_START_SIZE;
break;
} else
{
findPos = ((uint8_t*)nFind - buffer);
// -- step over matched char that wasn't pchMessageStart
if (findPos > 0) // prevent findPos < 0 (unsigned)
findPos--;
};
} else
{
break; // pchMessageStart[0] not found in buffer
};
};
if (foundPos > -1)
break;
};
LogPrintf("fpos %d, foundPos %d.\n", fpos, foundPos);
if (foundPos < 0)
{
LogPrintf("block start not found.\n");
fclose(fp);
break;
};
CAutoFile blkdat(fp, SER_DISK, CLIENT_VERSION);
if (fseek(blkdat, fpos+foundPos, SEEK_SET) != 0)
{
LogPrintf("fseek blkdat failed: %s\n", strerror(errno));
break;
};
unsigned int nSize;
blkdat >> nSize;
LogPrintf("nSize %u .\n", nSize);
if (nSize < 1 || nSize > MAX_BLOCK_SIZE)
{
LogPrintf("block size error %u\n", nSize);
};
CBlock block;
blkdat >> block;
uint256 hashblock = block.GetHash();
LogPrintf("hashblock %s .\n", hashblock.ToString().c_str());
std::map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashblock);
if (mi != mapBlockIndex.end() && (*mi).second)
{
LogPrintf("block is in main chain.\n");
if (!mi->second->pprev)
{
LogPrintf("! mi->second.pprev\n");
} else
{
{
CBlock blockPrev; // strange way SetBestChain works, TODO: does it need the full block?
if (!blockPrev.ReadFromDisk(mi->second->pprev))
{
LogPrintf("blockPrev.ReadFromDisk failed %s.\n", mi->second->pprev->GetBlockHash().ToString().c_str());
//break;
};
CTxDB txdb;
if (!blockPrev.SetBestChain(txdb, mi->second->pprev))
{
LogPrintf("SetBestChain failed.\n");
};
}
mi->second->pprev->pnext = NULL;
};
delete mi->second;
mapBlockIndex.erase(mi);
};
std::map<uint256, COrphanBlock*>::iterator miOph = mapOrphanBlocks.find(hashblock);
if (miOph != mapOrphanBlocks.end())
{
LogPrintf("block is an orphan.\n");
mapOrphanBlocks.erase(miOph);
};
CTxDB txdb;
for (vector<CTransaction>::iterator it = block.vtx.begin(); it != block.vtx.end(); ++it)
{
LogPrintf("EraseTxIndex().\n");
txdb.EraseTxIndex(*it);
};
LogPrintf("EraseBlockIndex().\n");
txdb.EraseBlockIndex(hashblock);
errno = 0;
if (ftruncate(fileno(fp), fpos+foundPos-MESSAGE_START_SIZE) != 0)
{
LogPrintf("ftruncate failed: %s\n", strerror(errno));
};
LogPrintf("hashBestChain %s, nBestHeight %d\n", hashBestChain.ToString().c_str(), nBestHeight);
//fclose(fp); // ~CAutoFile() will close the file
nRemoved++;
};
}
result.push_back(Pair("no. blocks removed", itostr(nRemoved)));
result.push_back(Pair("hashBestChain", hashBestChain.ToString()));
result.push_back(Pair("nBestHeight", itostr(nBestHeight)));
// -- need restart, setStakeSeen etc
if (nRemoved > 0)
result.push_back(Pair("Please restart arroncoin", ""));
if (nRemoved == nNumber)
result.push_back(Pair("result", "success"));
else
result.push_back(Pair("result", "failure"));
return result;
}
Value nextorphan(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw runtime_error(
"nextorphan [connecthash]\n"
"displays orphan blocks that connect to current best block.\n"
"if [connecthash] is set try to connect that block (must be nextorphan).\n");
if (nNodeMode == NT_THIN)
{
throw runtime_error("Must be in full mode.");
};
if (!pindexBest)
throw runtime_error("No best index.");
throw runtime_error("Not working."); // too few blocks in mapOrphan!?
Object result;
std::map<uint256, COrphanBlock*> mapNextOrphanBlocks;
LOCK(cs_main);
//mapOrphanBlocks.clear();
uint256 besthash = *pindexBest->phashBlock;
std::map<uint256, COrphanBlock*>::iterator it;
for (it = mapOrphanBlocks.begin(); it != mapOrphanBlocks.end(); ++it)
{
if (it->second->hashPrev == besthash)
{
mapNextOrphanBlocks[it->first] = it->second;
};
};
if (params.size() > 0)
{
} else
{
std::map<uint256, COrphanBlock*>::iterator it;
for (it = mapNextOrphanBlocks.begin(); it != mapNextOrphanBlocks.end(); ++it)
{
result.push_back(Pair("block", it->first.ToString()));
};
};
result.push_back(Pair("result", "done"));
return result;
}
// ppcoin: get information of sync-checkpoint
Value getcheckpoint(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getcheckpoint\n"
"Show info of synchronized checkpoint.\n");
Object result;
const CBlockIndex* pindexCheckpoint = Checkpoints::AutoSelectSyncCheckpoint();
result.push_back(Pair("synccheckpoint", pindexCheckpoint->GetBlockHash().ToString().c_str()));
result.push_back(Pair("height", pindexCheckpoint->nHeight));
result.push_back(Pair("timestamp", DateTimeStrFormat(pindexCheckpoint->GetBlockTime()).c_str()));
result.push_back(Pair("policy", "rolling"));
return result;
}
Value thinscanmerkleblocks(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"thinscanmerkleblocks <height>\n"
"Request and rescan merkle blocks from peers starting from <height>.");
int nHeight = params[0].get_int();
if (nHeight < 0 || nHeight > nBestHeight)
throw runtime_error("Block height out of range.");
if (nNodeMode != NT_THIN)
throw runtime_error("Must be in thin mode.");
if (nNodeState == NS_GET_FILTERED_BLOCKS)
throw runtime_error("Wait for current merkle block scan to complete.");
{
LOCK2(cs_main, pwalletMain->cs_wallet);
pwalletMain->nLastFilteredHeight = nHeight;
nHeightFilteredNeeded = nHeight;
CWalletDB walletdb(pwalletMain->strWalletFile);
walletdb.WriteLastFilteredHeight(nHeight);
ChangeNodeState(NS_GET_FILTERED_BLOCKS, false);
}
Object result;
result.push_back(Pair("result", "Success."));
result.push_back(Pair("startheight", nHeight));
return result;
}
Value thinforcestate(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"thinforcestate <state>\n"
"force into state <state>.\n"
"2 get headers, 3 get filtered blocks, 4 ready");
if (nNodeMode != NT_THIN)
throw runtime_error("Must be in thin mode.");
int nState = params[0].get_int();
if (nState <= NS_STARTUP || nState >= NS_UNKNOWN)
throw runtime_error("unknown state.");
Object result;
if (ChangeNodeState(nState))
result.push_back(Pair("result", "Success."));
else
result.push_back(Pair("result", "Failed."));
return result;
}
| [
"820421292@qq.com"
] | 820421292@qq.com |
95619284b96eb4e9332c72c5a790fdb8232794ce | e412262aecdafbf5f108048b4b1064e28fc8ae78 | /Kamek/src/randtiles.cpp | f1b23926b475dd5789db9b28aceacae81fce2445 | [
"MIT"
] | permissive | aboood40091/NewerSMBW | 17a322223ce9a2203df05194c0e36c873cebf9ec | 468b88d614ff2543225ba260ce77381c59247576 | refs/heads/master | 2023-02-10T14:28:56.017592 | 2020-05-19T16:35:08 | 2020-05-19T16:35:08 | 265,211,684 | 4 | 1 | MIT | 2020-11-06T11:13:45 | 2020-05-19T10:04:52 | C++ | UTF-8 | C++ | false | false | 4,635 | cpp | #include <game.h>
class RandomTileData {
public:
enum Type {
CHECK_NONE = 0,
CHECK_HORZ = 1,
CHECK_VERT = 2,
CHECK_BOTH = 3
};
enum Special {
SP_NONE = 0,
SP_VDOUBLE_TOP = 1,
SP_VDOUBLE_BOTTOM = 2
};
class NameList {
public:
u32 count;
u32 offsets[1]; // variable size
const char *getName(int index) {
return ((char*)this) + offsets[index];
}
bool contains(const char *name) {
for (int i = 0; i < count; i++) {
if (strcmp(name, getName(i)) == 0)
return true;
}
return false;
}
};
class Entry {
public:
u8 lowerBound, upperBound;
u8 count, type;
u32 tileNumOffset;
u8 *getTileNums() {
return ((u8*)this) + tileNumOffset;
}
};
class Section {
public:
u32 nameListOffset;
u32 entryCount;
Entry entries[1]; // variable size
NameList *getNameList() {
return (NameList*)(((u32)this) + nameListOffset);
}
};
u32 magic;
u32 sectionCount;
u32 offsets[1]; // variable size
Section *getSection(int id) {
return (Section*)(((char*)this) + offsets[id]);
}
Section *getSection(const char *name);
static RandomTileData *instance;
};
class RTilemapClass : public TilemapClass {
public:
// NEWER ADDITIONS
RandomTileData::Section *sections[4];
};
RandomTileData::Section *RandomTileData::getSection(const char *name) {
for (int i = 0; i < sectionCount; i++) {
RandomTileData::Section *sect = getSection(i);
if (sect->getNameList()->contains(name))
return sect;
}
return 0;
}
// Real tile handling code
RandomTileData *RandomTileData::instance = 0;
dDvdLoader_c RandTileLoader;
// This is a bit hacky but I'm lazy
bool LoadLevelInfo();
extern "C" bool RandTileLoadHook() {
// OSReport("Trying to load...");
void *buf = RandTileLoader.load("/NewerRes/RandTiles.bin");
bool LIresult = LoadLevelInfo();
if (buf == 0) {
// OSReport("Failed.\n");
return false;
} else {
// OSReport("Successfully loaded RandTiles.bin [%p].\n", buf);
RandomTileData::instance = (RandomTileData*)buf;
return LIresult;
}
}
extern "C" void IdentifyTilesets(RTilemapClass *self) {
self->_C0C = 0xFFFFFFFF;
for (int i = 0; i < 4; i++) {
const char *tilesetName = BGDatClass::instance->getTilesetName(self->areaID, i);
self->sections[i] = RandomTileData::instance->getSection(tilesetName);
// OSReport("[%d] Chose %p for %s\n", i, self->sections[i], tilesetName);
}
}
extern "C" void TryAndRandomise(RTilemapClass *self, BGRender *bgr) {
int fullTile = bgr->tileToPlace & 0x3FF;
int tile = fullTile & 0xFF;
int tileset = fullTile >> 8;
RandomTileData::Section *rtSect = self->sections[tileset];
if (rtSect == 0)
return;
for (int i = 0; i < rtSect->entryCount; i++) {
RandomTileData::Entry *entry = &rtSect->entries[i];
if (tile >= entry->lowerBound && tile <= entry->upperBound) {
// Found it!!
// Try to make one until we meet the conditions
u8 type = entry->type & 3;
u8 special = entry->type >> 2;
u8 *tileNums = entry->getTileNums();
u16 chosen = 0xFF;
// If it's the top special, then ignore this tile, we'll place that one
// once we choose the bottom one
if (special == RandomTileData::SP_VDOUBLE_TOP)
break;
u16 *top = 0, *left = 0, *right = 0, *bottom = 0;
if (type == RandomTileData::CHECK_HORZ || type == RandomTileData::CHECK_BOTH) {
left = self->getPointerToTile((bgr->curX - 1) * 16, bgr->curY * 16);
right = self->getPointerToTile((bgr->curX + 1) * 16, bgr->curY * 16);
}
if (type == RandomTileData::CHECK_VERT || type == RandomTileData::CHECK_BOTH) {
top = self->getPointerToTile(bgr->curX * 16, (bgr->curY - 1) * 16);
bottom = self->getPointerToTile(bgr->curX * 16, (bgr->curY + 1) * 16);
}
int attempts = 0;
while (true) {
// is there even a point to using that special random function?
chosen = (tileset << 8) | tileNums[MakeRandomNumberForTiles(entry->count)];
// avoid infinite loops
attempts++;
if (attempts > 5)
break;
if (top != 0 && *top == chosen)
continue;
if (bottom != 0 && *bottom == chosen)
continue;
if (left != 0 && *left == chosen)
continue;
if (right != 0 && *right == chosen)
continue;
break;
}
bgr->tileToPlace = chosen;
if (special == RandomTileData::SP_VDOUBLE_BOTTOM) {
if (top == 0)
top = self->getPointerToTile(bgr->curX * 16, (bgr->curY - 1) * 16);
*top = (chosen - 0x10);
}
return;
}
}
}
| [
"treeki@gmail.com"
] | treeki@gmail.com |
1ff15b9f9860a40fcc1a5fadfdc9b77d1bda868c | 57c70c7fa7b2a4a2f2f5b17c2add2f1ddec34f05 | /DataCreation/Core/Math/UnitTests/VectorTests.cpp | f3adf4250e1607dccf49320c1296e3f6d2339511 | [] | no_license | jcnast/DataCreation | e9ab72cb3f2bb2326f5db351262b52bb243e9a6c | 4ab57a923f4362451dd85e233e939255af650d14 | refs/heads/master | 2023-04-28T08:44:51.462433 | 2021-06-02T00:17:28 | 2021-06-02T00:17:28 | 111,367,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,559 | cpp | #include "VectorTests.h"
#include "Core/Debugging/Headers/Macros.h"
#include "Core/Math/Headers/MathDefs.h"
#include "Core/Math/Headers/Vector.h"
#include "Core/Math/Headers/Vector2.h"
#include "Core/Math/Headers/Vector3.h"
#include "Core/Math/Headers/Vector4.h"
#define GLOBAL_EXPLICIT 1
namespace Core
{
namespace Math
{
bool RunVectorTests()
{
std::cout << "Starting vector tests..." << std::endl;
std::cout << "Starting SIMPLE tests..." << std::endl;
bool simple = VERIFY(SimpleVectorTests());
std::cout << "Starting STANDARD tests..." << std::endl;
bool standard = VERIFY(StandardVectorTests());
std::cout << "Starting DIFFICULT tests..." << std::endl;
bool difficult = VERIFY(DifficultVectorTests());
return VERIFY(simple && standard && difficult);
}
bool SimpleVectorTests()
{
auto float2_single = Float2(1.0f);
auto float2_double = Float2(1.0f, 2.0f);
auto float2_float2(float2_double);
auto float2_copy = float2_float2;
return true;
}
bool StandardVectorTests()
{
auto float3_double = Float3(1.0f, 2.0f, 3.0f);
auto xEqual = VERIFY(float3_double.X == 1.0f);
auto yEqual = VERIFY(float3_double.Y == 2.0f);
auto zEqual = VERIFY(float3_double.Z == 3.0f);
auto axisX = float3_double[XAxis()];
auto i0 = float3_double[0];
auto accessorsEqual = VERIFY(axisX == i0);
auto float2_fromfloat3 = float3_double.XY;
auto equalityTest = VERIFY(float2_fromfloat3 == float3_double.XY);
return true;
}
bool DifficultVectorTests()
{
return true;
}
}
} | [
"j.nast@hotmail.com"
] | j.nast@hotmail.com |
05600d47370aaa76f17379d3403c88f82f5f8842 | d317dc269b0eb7fccbcf951c88351e6d71cf9cb2 | /dlgsetup.cpp | f59c96d335953a1f6b8e66c03bd816f6fc3321f5 | [] | no_license | alezz/serialsurveyor | 22f552c9aa3b3ec7dbe8f27735f930035182a4c5 | 71b6cbe1f2bc5e58e759e75dadb362f375235e6d | refs/heads/master | 2021-01-10T14:26:38.894811 | 2015-10-19T06:55:56 | 2015-10-19T06:55:56 | 44,608,711 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,261 | cpp | #include "dlgsetup.h"
#include "ui_dlgsetup.h"
dlgSetup::dlgSetup(QWidget *parent) :
QDialog(parent),
ui(new Ui::dlgSetup)
{
ui->setupUi(this);
ui->comboBaud->insertItems(0,QStringList()
<<"300"
<<"1200"
<<"2400"
<<"4800"
<<"9600"
<<"19200"
<<"38400"
<<"57600"
<<"115200"
<<"230400");
ui->comboBaud->setCurrentIndex(4); // 9600
refresh();
connect(ui->btnRefresh,SIGNAL(clicked()),this,SLOT(refresh()));
connect(ui->btnClose,SIGNAL(clicked()),this,SLOT(accept()));
connect(ui->editTerminator,SIGNAL(textEdited(QString)),this,SLOT(calcHex(QString)));
connect(ui->editTermHex,SIGNAL(textEdited(QString)),this,SLOT(calcAscii(QString)));
}
dlgSetup::~dlgSetup()
{
delete ui;
}
QStringList dlgSetup::getSelectedDevices()
{
QStringList devList;
for (int i =0; i<ui->list->count();i++)
if (ui->list->item(i)->checkState()==Qt::Checked)
devList.append(ui->list->item(i)->text());
return devList;
}
int dlgSetup::getTimeout()
{
return ui->spinTimeout->value();
}
QByteArray dlgSetup::getTerminator()
{
return ui->editTerminator->text().toLatin1();
}
qint32 dlgSetup::getBaudrate()
{
return (qint32)ui->comboBaud->currentText().toInt();
}
void dlgSetup::refresh()
{
foreach (QSerialPortInfo info, QSerialPortInfo::availablePorts())
{
//QListWidgetItem * item = new QListWidgetItem( info.portName(),this->ui->list);
QListWidgetItem * item = new QListWidgetItem( info.portName());
this->ui->list->addItem(item);
item->setFlags(Qt::ItemIsUserCheckable|Qt::ItemIsEnabled|Qt::ItemIsSelectable);
item->setCheckState(Qt::Checked);
}
}
void dlgSetup::calcHex(QString ascii)
{
ui->editTermHex->setText(ascii.toLatin1().toHex());
}
void dlgSetup::calcAscii(QByteArray hex)
{
ui->editTerminator->setText(QByteArray::fromHex(hex));
}
void dlgSetup::calcAscii(QString hex)
{
this->calcAscii(hex.toLatin1());
}
| [
"alez@localhost.localdomain"
] | alez@localhost.localdomain |
3175e5dc0cc20b1a5c698c82b25b5f0108d82515 | f8853c17bd18fc7a9e625a98e1ffd20cee02ee63 | /src/gauss_inte.h | 5b76e3f929cda6d8d2db6a0aade62913896b6062 | [
"MIT"
] | permissive | okamumu/mapfit | 9005f612df3c79301dd7a72a55b7881dd2cf8445 | 77fc2ab0b450fafdb8ae2ace348f79322d43296b | refs/heads/main | 2023-03-16T12:52:05.978437 | 2022-11-23T02:36:47 | 2022-11-23T02:36:47 | 495,679,672 | 2 | 0 | NOASSERTION | 2022-11-23T02:36:48 | 2022-05-24T05:19:18 | C++ | UTF-8 | C++ | false | false | 3,065 | h | #ifndef MAPFIT_GAUSS_INTE
#define MAPFIT_GAUSS_INTE
/**
Description: Gauss quadrature for the following integral
| b
| f(x) dx
| a
gauss_inte_w: make points and weights for n discrete points
n (in): the number of points. This is the size of both x and w.
x (out): x-axis points in the interval [-1, 1].
w (out): weights for the points.
eps (in): tolerance error.
gauss_inte_fx: make x points for the interval [a,b]
n (in): the number of points.
x (in): the x points for interval [-1, 1].
a, b (in): lower and upper points for the integral
fx (out): x point for the interval [a, b]
return value: (b-a)/2
gauss_inte_fv: compute the integral
n (in): the number of points.
w (in): weights for the x points in [-1,1]
c (in): (b-a)/2 ?
fv (in): function values at x points derived by gauss_inte_fx
return value: the interal value
*/
#include "traits.h"
namespace gauss_inte {
static double PI = 3.14159265358979324;
template <typename Tv>
void w(Tv& x0, Tv& w0, double eps) {
const int n = stride_vector_traits<Tv>::size(x0);
double* x = stride_vector_traits<Tv>::value(x0);
double* w = stride_vector_traits<Tv>::value(w0);
int i, l, m;
double p0, p1, p2;
double q0, q1, q2;
double tmp, dt;
switch(n) {
case 1:
x[0] = 0.0;
w[0] = 2.0;
return;
case 2:
x[0] = std::sqrt(1.0/3.0);
w[0] = 1.0;
x[1] = -x[0];
w[1] = w[0];
return;
case 3:
x[0] = std::sqrt(0.6);
w[0] = 5.0/9.0;
x[1] = 0.0;
w[1] = 8.0/9.0;
x[2] = -x[0];
w[2] = w[0];
return;
}
m = n/2;
for (i=0; i<m; i++) {
tmp = std::cos((i+1.0-1.0/4.0)/(n+1.0/2.0)*PI);
do {
p1 = tmp;
p2 = (3.0*tmp*tmp-1.0)/2.0;
q1 = 1.0;
q2 = 3.0*tmp;
for (l=3; l<=n; l++) {
p0 = p1;
p1 = p2;
p2 = ((2.0*l-1)*tmp*p1-(l-1)*p0)/l;
q0 = q1;
q1 = q2;
q2 = ((2.0*l-1)*(tmp*q1+p1)-(l-1)*q0)/l;
}
dt = p2/q2;
tmp = tmp - dt;
} while(std::abs(dt) > std::abs(tmp)*eps);
x[i] = tmp;
w[i] = 2.0/(n*p1*q2);
}
if (n % 2 != 0) {
x[n/2] = 0.0;
tmp = (double) n;
for (i=1; i<=m; i++)
tmp = tmp*(0.5 - i)/i;
w[n/2] = 2.0/(tmp*tmp);
}
for (i=0; i<m; i++) {
x[n-1-i] = -x[i];
w[n-1-i] = w[i];
}
return;
}
template <typename Tv1, typename Tv2>
double fx(const Tv1& x0, double a, double b, Tv2& fx0) {
const int n = stride_vector_traits<Tv1>::size(x0);
const double* x = stride_vector_traits<Tv1>::value(x0);
double* fx = stride_vector_traits<Tv2>::value(fx0);
double t1 = (b - a)/2.0;
double t2 = (b + a)/2.0;
for (int i=0; i<n; i++) {
fx[i] = t1 * x[i] + t2;
}
return t1;
}
template <typename Tv1, typename Tv2>
double fv(const Tv1& w0, double c, Tv2& fv0) {
const int n = stride_vector_traits<Tv1>::size(w0);
const double* w = stride_vector_traits<Tv1>::value(w0);
double* fv = stride_vector_traits<Tv2>::value(fv0);
double sum = 0.0;
for (int i=0; i<n; i++) {
sum += w[i]* fv[i];
}
sum *= c;
return sum;
}
}
#endif
| [
"okamu@hiroshima-u.ac.jp"
] | okamu@hiroshima-u.ac.jp |
5f52bb2005743516e2616d9f5dc38a2a7920171f | 7a4838ea7e0e341b8a6c39f8fe6d5a9e6b709ecc | /Agent.hpp | 84d45f28a1afd576094d3670b6abb22cb6561f26 | [] | no_license | Pieter-Jacobs/RL-Practical-2 | 521630e2bc09745277e94904850ec3f55cd5100d | e1303fecce07c78506cf610c3b149126d491f0fa | refs/heads/main | 2023-02-21T20:08:32.348196 | 2021-01-22T15:50:49 | 2021-01-22T15:50:49 | 323,894,673 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | hpp | #include "Maze.hpp"
#include "Field.hpp"
#include<stack>
#include<vector>
#include<array>
#include<iostream>
#pragma once
class Agent
{
protected:
Maze* maze_;
Field* currentField_;
std::array<int,2> getUpdatedCoordinates(int move);
std::array<int,2> getUpdatedCoordinates(std::array<int,2> coordinates, int move);
Maze* getMaze() const;
double getReward(Field* state);
void move(int move);
public:
Agent();
Agent(Maze* maze, Field* currentField);
};
| [
"pieternee@gmail.com"
] | pieternee@gmail.com |
e627bb5b6e7d8bab23de08e46c3610831e5fc0e0 | 7b275d60ad5c122c5a9ea8befce766c980388771 | /UVALive/6418/16802798_AC_3ms_0kB.cpp | 561c833accf962419c9a1e654eff3846873ef04c | [] | no_license | FahadAminShovon/Solved-Problems | 706d4b45769f0c959d892882be00cc6fb1f10ad8 | 25d3206886172e252365e73dd2002c12ad3324df | refs/heads/master | 2020-04-13T05:25:55.104149 | 2018-12-29T17:24:09 | 2018-12-29T17:24:09 | 162,991,852 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 241 | cpp | #include <bits/stdc++.h>
#define sc scanf
#define pf printf
using namespace std;
int main() {
int a,b,m;
while(sc("%d%d%d",&a,&b,&m)==3){
for(int i=m;i>=1;i--){
if((a%i)==(b%i)){
pf("%d\n",i);
break;
}
}
}
return 0;
} | [
"bm.amin.fahad@gamil.com"
] | bm.amin.fahad@gamil.com |
2833ec6bbe62608247ed930cef3b999a92a17a55 | c60a810d25bb8e5d614daeb37212568f614a4401 | /simulacros/Regionals 2007 - North America - Rocky Mountain/3828.cpp | fbb94af627208f3b0c45412ba09af7685c8f970a | [] | no_license | jonasla/icpc | f5d0af087a54b7bb57bc92e4191ddc09e2669d5b | 4f464de0b374f4c5b756b1a87322f87b08d9551a | refs/heads/master | 2021-01-24T03:42:37.957660 | 2018-03-17T15:30:05 | 2018-03-17T15:30:05 | 122,900,491 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,639 | cpp | #include <iostream>
#include <vector>
#include <string>
#include <vector>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <cmath>
#include <algorithm>
#include <cassert>
#include <tuple>
#include <functional>
#include <unordered_set>
#include <unordered_map>
#include <sstream>
#include <stdio.h>
#define forn(i,n) for(int i=0;i<(int)(n); i++)
#define forsn(i,s,n) for(int i=(s);i<(int)(n); i++)
#define esta(x,v) (find((v).begin(),(v).end(),(x)) != (v).end())
#define index(x,v) (find((v).begin(),(v).end(),(x)) - (v).begin())
#define debug(x) cout << #x << " = " << x << endl
typedef long long tint;
typedef unsigned long long utint;
using namespace std;
void imprimirVector (vector<int> v)
{
if (!v.empty())
{
int p = v.size();
cout << "[";
forn(i,p-1)
cout << v[i] << ",";
cout << v[p-1] << "]" << endl;
}
else
cout << "[]" << endl;
}
int log2(int n)
{
int k = 0;
int p = 1;
while(p < n)
{
k++;
p*= 2;
}
return k;
}
vector<int> f (vector<int> a, vector<int> b)
{
vector<int> d;
int n = a.size();
forn(i,n)
{
d.push_back((a[i]+b[i])/2);
d.push_back((a[i]-b[i])/2);
}
return d;
}
int main()
{
int n;
cin >> n;
while(n != 0)
{
int first;
cin >> first;
if (n == 1)
cout << first << endl;
else
{
vector<vector<int> > sb (log2(n));
int k = 1;
forn(i,log2(n))
{
forn(j,k)
{
int aux;
cin >> aux;
sb[i].push_back(aux);
}
k*=2;
}
vector<int> a = {first};
forn(i,log2(n))
a = f(a,sb[i]);
forn(i,n-1)
cout << a[i] << " ";
cout << a[n-1];
cout << endl;
}
cin >> n;
}
return 0;
}
| [
"jonaslevy5@gmail.com"
] | jonaslevy5@gmail.com |
1e6469ba2fca369ccf1fc3430574692485ee82c9 | b90a96f487dfc62377dab3d93f3044cf63d05b65 | /ZRXSDK/2012/inc/zaduiHeaderCtrl.h | 34789855045de52b6e1902a5e7ad2e18abd591e8 | [
"MIT"
] | permissive | yaochq/ZRXSDKMod | bde5bd5248c3d303565a704c47a096792b55f048 | 2d2de60ab45db535439e6608fb4764835fd72ff7 | refs/heads/master | 2021-01-22T08:28:29.168802 | 2014-05-04T01:01:35 | 2014-05-04T01:01:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,636 | h |
#ifndef _zduiHeaderCtrl_h
#define _zduiHeaderCtrl_h
#pragma pack (push, 8)
#pragma once
#pragma warning(push)
#pragma warning(disable : 4275)
class ZDUI_PORT CZdUiHeaderCtrl : public CHeaderCtrl {
DECLARE_DYNAMIC(CZdUiHeaderCtrl)
public:
CZdUiHeaderCtrl ();
virtual ~CZdUiHeaderCtrl ();
protected:
CPoint m_lastMousePoint;
int m_tipItem;
CRect m_tipRect;
public:
virtual void GetContentExtent (
int item, LPCTSTR text, int& width, int& height
);
int GetItemAtPoint (CPoint& p);
BOOL GetItemRect (int idx, CRect& rItem);
BOOL GetText (int idx, CString& text);
void GetTextExtent (LPCTSTR text, int& width, int& height);
BOOL IsOwnerDraw (int idx);
protected:
CWnd *m_zduiParent;
virtual ZDUI_REPLY DoZdUiMessage (
ZDUI_NOTIFY notifyCode, UINT controlId, LPARAM lParam
);
virtual void OnDrawTip (CDC& dc);
virtual BOOL OnDrawTipText (CZdUiDrawTipText& dtt);
virtual ZDUI_REPLY OnGetTipSupport (CPoint& p);
virtual BOOL OnGetTipRect (CRect& r);
virtual BOOL OnGetTipText (CString& text);
virtual BOOL OnHitTipRect (CPoint& p);
public:
CWnd *GetZdUiParent ();
void SetZdUiParent (CWnd *w);
public:
protected:
afx_msg LRESULT OnZdUiMessage (WPARAM wParam, LPARAM lParam);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
DECLARE_MESSAGE_MAP()
};
#pragma warning(pop)
#pragma pack (pop)
#endif
| [
"kevinzhwl@gmail.com"
] | kevinzhwl@gmail.com |
ec5a1f81ccfeeb55724b3c4238a4a67ec89f3408 | 74ca630af506045e799e1ace6c46a0d4abd4a699 | /test/BackgroundSubtraction/main.cpp | c7d035a435e80c63459e9e77aba6d402421bdbe0 | [] | no_license | kaas-/mta15341-software | 0877d00ee39aca9ff11c99155570c897e91b4942 | b344bb7c9f7d86bb2e1200d26ca166e00ac9e19a | refs/heads/master | 2021-03-12T20:07:06.640216 | 2016-01-22T12:00:36 | 2016-01-22T12:00:36 | 42,162,582 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,097 | cpp | #include <opencv2/core/core.hpp>
#include "opencv2/opencv.hpp"
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/video/background_segm.hpp>
#include <opencv\cv.h>
#include <iostream>
#include <sstream>
using namespace cv;
using namespace std;
Mat frame;
int keyboard;
//current frame
Mat fgMaskMOG; //fg mask generated by MOG method
int frameNum = 0;
Ptr<BackgroundSubtractor> pMOG2; //MOG2 Background subtractor
Mat buildBlurringKernel();
int buildGaussianFilter(Mat kernel);
Mat gaussianBlur(Mat image, Mat kernel, int blurringKernelSum);
int main(int, char)
{
Mat kernel = buildBlurringKernel();
int gaussSum = buildGaussianFilter(kernel);
//pMOG = new BackgroundSubtractorMOG(); //MOG approach
pMOG2 = createBackgroundSubtractorMOG2(20, 16, false); //MOG2 approach
/*
Mat frame = imread("C:/Dropbox/lena.jpg", 0);
imshow("orig", frame);
Mat blurredFrame = gaussianBlur(frame, kernel, gaussSum);
imshow("blurred", blurredFrame);
*/
VideoCapture cap(0); // open the default camera
if (!cap.isOpened()) // check if we succeeded
return -1;
for (;;)
{
cap >> frame; // get a new frame from camera
if (!cap.read(frame)) {
cerr << "Unable to read next frame." << endl;
continue;
}
cvtColor(frame, frame, CV_BGR2GRAY);
imshow("orig", frame);
Mat blurredImage = gaussianBlur(frame, kernel, gaussSum);
imshow("blurred", blurredImage);
++frameNum;
int frameRecordNo = 200;
/*if (frameNum < frameRecordNo)
{
ostringstream name;
name << "C:\Dropbox\aau\3rd semester\Programming\imageoutputbg_" << frameNum << ".png";
cout << "Recording video...";
//pMOG2->apply(frame, fgMaskMOG, -1);
imwrite(name.str(),fgMaskMOG);
frameNum++;
imshow("frame", fgMaskM
}OG);
else {
cout << "Recording has stopped";
imshow("frame", frame);
}*/
if (waitKey(30) >= 0)
break;
}
// the camera will be deinitialized automatically in VideoCapture destructor
waitKey(0);
return 0;
}
/*
void processImages(char* firstFrameFilename)
{
frame = imread(firstFrameFilename);
if (frame.empty()){
//error in opening the first image
cerr << "Unable to open first image frame: " << firstFrameFilename << endl;
exit(EXIT_FAILURE);
}
string fn(firstFrameFilename);
while ((char)keyboard != 'q' && (char)keyboard != 27)
{
pMOG2->apply(frame, fgMaskMOG);
size_t index = fn.find_last_of("/");
if (index == string::npos)
{
index = fn.find_last_of("\\");
}
size_t index2 = fn.find_last_of(".");
string prefix = fn.substr(0, index + 1);
string suffix = fn.substr(index2);
string frameNumberString = fn.substr(index + 1, index2 - index - 1);
istringstream iss(frameNumberString);
int frameNo = 0;
iss >> frameNo;
rectangle(frame, Point(10, 2), Point(100, 20),Scalar(255), -1);
putText(frame, frameNumberString.c_str(), Point(15, 15), FONT_HERSHEY_SIMPLEX, 0.5, Scalar(0, 0, 0));
imshow("frame", frame);
imshow("fgmask", fgMaskMOG);
keyboard = waitKey(30);
ostringstream oss;
oss << (frameNo + 1);
string nextFrameNumberString = oss.str();
string nextFrameFilename = prefix + nextFrameNumberString + suffix;
//read the next frame
frame = imread(nextFrameFilename);
if (frame.empty()){
//error in opening the next image in the sequence
cerr << "Unable to open image frame: " << nextFrameFilename << endl;
exit(EXIT_FAILURE);
}
//update the path of the current frame
fn.assign(nextFrameFilename);
}
}
*/
Mat buildBlurringKernel(){
//definition of 5x5 gaussian kernel
Mat blurringKernel(5, 5, CV_8SC1);
//first collumn
blurringKernel.at<char>(0, 0) = 1;
blurringKernel.at<char>(1, 0) = 4;
blurringKernel.at<char>(2, 0) = 7;
blurringKernel.at<char>(3, 0) = 4;
blurringKernel.at<char>(4, 0) = 1;
//second collumn
blurringKernel.at<char>(0, 1) = 4;
blurringKernel.at<char>(1, 1) = 16;
blurringKernel.at<char>(2, 1) = 26;
blurringKernel.at<char>(3, 1) = 16;
blurringKernel.at<char>(4, 1) = 4;
//third collumn
blurringKernel.at<char>(0, 2) = 7;
blurringKernel.at<char>(1, 2) = 26;
blurringKernel.at<char>(2, 2) = 41;
blurringKernel.at<char>(3, 2) = 26;
blurringKernel.at<char>(4, 2) = 7;
//fourth collumn
blurringKernel.at<char>(0, 3) = 4;
blurringKernel.at<char>(1, 3) = 16;
blurringKernel.at<char>(2, 3) = 26;
blurringKernel.at<char>(3, 3) = 16;
blurringKernel.at<char>(4, 3) = 4;
//fifth collumn
blurringKernel.at<char>(0, 4) = 1;
blurringKernel.at<char>(1, 4) = 4;
blurringKernel.at<char>(2, 4) = 7;
blurringKernel.at<char>(3, 4) = 4;
blurringKernel.at<char>(4, 4) = 1;
return blurringKernel;
}
int buildGaussianFilter(Mat blurringKernel){
int blurringKernelSum = 0;
for (size_t i = 0; i < blurringKernel.rows; ++i){
for (size_t j = 0; j < blurringKernel.cols; ++j){
blurringKernelSum += blurringKernel.at<unsigned char>(i, j);
}
}
return blurringKernelSum;
}
Mat gaussianBlur(Mat image, Mat blurringKernel, int blurringKernelSum){
//we assume that the blurring kernel is always a 3x3 kernel
//we assume the image is larger than the blurring kernel
if (blurringKernel.rows > image.rows || blurringKernel.cols > image.cols){
cout << "The image is the wrong size, try giving it a larger image!" << endl;
exit(-1);
}
Mat blurredImage = image.clone();
int imagePixel;
int kernelValue;
int newPixel = 0;
//defining so the program can run through the pixels
for (size_t i = 2; i < image.rows - 2; ++i){
for (size_t j = 2; j < image.cols - 2; ++j){
//defining where the kernel will run
for (size_t k = 0; k < blurringKernel.rows; ++k){
for (size_t l = 0; l < blurringKernel.cols; ++l){
//we subtract 1 from i and j, because they start in 1 postion ahead than the kernel
imagePixel = image.at<unsigned char>((i - 2) + k, (j - 2) + l);
kernelValue = blurringKernel.at<unsigned char>(k, l);
newPixel += imagePixel * kernelValue;
}
}
newPixel = newPixel / blurringKernelSum;
//insert the processed pixel into the new image
blurredImage.at<unsigned char>(i, j) = newPixel;
//resets newPixel for the next iteration
newPixel = 0;
}
}
return blurredImage;
} | [
"eutrapely@gmail.com"
] | eutrapely@gmail.com |
b9170727ce865647e708f7be6f85640c39e43b9b | e75b9b221aa731489ca8dd952a4e1ae1482bd3d1 | /OpenGL/GL262Labs/external/glm/test/gtx/gtx_polar_coordinates.cpp | f85be2b4674a07db3ec7cf97284421391f8c0b26 | [
"MIT"
] | permissive | antonioplmborges/Projects | acb6f94e9111df3e1cb5a0dc72db25dbad3b0e9c | 420839d1f4dcca843cab64cd499fcaa25d303326 | refs/heads/master | 2021-07-04T04:31:31.248062 | 2017-09-27T23:17:38 | 2017-09-27T23:17:38 | 105,059,948 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cpp | ///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2013-10-25
// Updated : 2013-10-25
// Licence : This source is under MIT licence
// File : test/gtx/polar_coordinates.cpp
///////////////////////////////////////////////////////////////////////////////////////////////////
#include <glm/glm.hpp>
#include <glm/gtc/type_precision.hpp>
#include <glm/gtx/polar_coordinates.hpp>
int main()
{
int Error(0);
return Error;
}
| [
"apborges@umass.edu"
] | apborges@umass.edu |
84ee8137413ace79bee8a8568991aa011ee6db14 | 04251e142abab46720229970dab4f7060456d361 | /lib/rosetta/source/src/protocols/environment/CoMTrackerCM.cc | 1063b3011e750624f4a310e2ca9b71f97daa6258 | [] | no_license | sailfish009/binding_affinity_calculator | 216257449a627d196709f9743ca58d8764043f12 | 7af9ce221519e373aa823dadc2005de7a377670d | refs/heads/master | 2022-12-29T11:15:45.164881 | 2020-10-22T09:35:32 | 2020-10-22T09:35:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,551 | cc | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
// (c) addressed to University of Washington CoMotion, email: license@uw.edu.
/// @file src/protocols/rigid/CoMTrackerCM.cc
/// @author Justin R. Porter
/// @author Brian D. Weitzner
/// @author Oliver F. Lange
// Unit Headers
#include <protocols/environment/CoMTrackerCM.hh>
#include <protocols/environment/CoMTrackerCMCreator.hh>
// Package headers
#include <core/environment/DofPassport.hh>
#include <core/environment/LocalPosition.hh>
#include <protocols/environment/DofUnlock.hh>
#include <protocols/environment/claims/JumpClaim.hh>
#include <protocols/environment/claims/VirtResClaim.hh>
// Project headers
#include <core/id/NamedStubID.hh>
#include <core/kinematics/MoveMap.hh>
#include <core/kinematics/Jump.hh>
#include <core/kinematics/AtomTree.hh>
#include <core/kinematics/tree/Atom.hh>
#include <core/chemical/ResidueTypeSet.hh>
#include <core/conformation/Atom.hh>
#include <core/conformation/ResidueFactory.hh>
#include <core/select/residue_selector/ResidueSelector.hh>
#include <core/pose/util.hh>
//Utility Headers
#include <utility>
#include <utility/excn/Exceptions.hh>
#include <utility/tag/Tag.hh>
#include <utility/string_util.hh>
#include <utility/vector1.hh>
#include <numeric/random/random.hh>
#include <numeric/xyz.functions.hh>
#include <numeric/xyzVector.io.hh>
#include <basic/datacache/DataMap.hh>
// tracer
#include <basic/Tracer.hh>
// XSD XRW Includes
#include <utility/tag/XMLSchemaGeneration.hh>
#include <protocols/moves/mover_schemas.hh>
#ifdef WIN32
#include <basic/datacache/WriteableCacheableMap.hh>
#endif
// C++ Headers
// ObjexxFCL Headers
namespace protocols {
namespace environment {
std::string const GENERATE_STATIONARY_ATTACHMENT_POINT = "[NOT_SET]";
static basic::Tracer tr( "protocols.rigid.CoMTrackerCM", basic::t_info );
using namespace core::environment;
using namespace protocols::environment;
// creator
CoMTrackerCM::CoMTrackerCM():
ClientMover()
{}
CoMTrackerCM::CoMTrackerCM( std::string const & name,
core::select::residue_selector::ResidueSelectorCOP mobile_selector,
std::string const & stationary_label ):
ClientMover(),
name_( name ),
stationary_label_( stationary_label ),
mobile_selector_(std::move( mobile_selector ))
{}
CoMTrackerCM::CoMTrackerCM( std::string const & name,
core::select::residue_selector::ResidueSelectorCOP mobile_selector ):
ClientMover(),
name_( name ),
stationary_label_( GENERATE_STATIONARY_ATTACHMENT_POINT ),
mobile_selector_(std::move( mobile_selector ))
{}
void CoMTrackerCM::passport_updated(){
if ( this->has_passport() ) {
EnvironmentCOP env( active_environment() );
SequenceAnnotationCOP ann = env->annotations();
// utility::vector1< core::Size > mobile_residues = ann->resolve_seq( mobile_label_ );
// com_residues_ = std::set< core::Size >( mobile_residues.begin(), mobile_residues.end() );
} else {
//configure a null moveset.
}
}
numeric::xyzVector< core::Real > com_calc( core::pose::Pose const& pose,
utility::vector1_bool const& rsds ) {
using namespace numeric;
using namespace core::conformation;
utility::vector1< xyzVector< core::Real > > coords;
for ( core::Size i = 1; i <= rsds.size(); ++i ) {
if ( rsds[i] ) {
for ( auto it = pose.residue( i ).atom_begin();
it != pose.residue( i ).heavyAtoms_end(); ++it ) {
coords.push_back( it->xyz() );
}
}
}
debug_assert( coords.size() > 0 );
return center_of_mass( coords );
}
void CoMTrackerCM::update_tracking_residue( core::kinematics::RT::Vector new_position,
core::Size tracking_residue_id,
core::pose::Pose & pose ) const {
using core::Size;
using core::kinematics::Jump;
using core::kinematics::RT;
using core::kinematics::Stub;
using utility::vector1;
// TODO: Update this to guarantee test_point is downstream from the tracking_residue.
// Get the initial position of a (presumably) downstream atom to compare after the tracking resiude is updated.
if ( mobile_residues_.index( false ) == 0 ||
mobile_residues_.index( false ) >= (int) pose.size() ) {
std::ostringstream ss;
ss << "The CoMTrackerCM '" << name() << "' was configured to move all the residues in the pose. "
<< "This probably isn't what you meant, check your selectors and input pose." << std::endl;
throw CREATE_EXCEPTION(utility::excn::BadInput, ss.str() );
}
debug_assert( (core::Size) mobile_residues_.index( false ) <= pose.size() );
RT::Vector test_point = pose.residue( mobile_residues_.index( false ) ).xyz( 1 );
// TODO: throw an excpetion here instead of using an assert
// Make sure only virutal residues are being used as tracking residues
debug_assert( pose.residue( tracking_residue_id ).name() == "VRT" );
debug_assert( pose.fold_tree().root() != tracking_residue_id );
// By definition, the virtual residue we are placing must be the downstream partner in exactly one jump.
// We refer to this jump as the "positioning_jump".
// It can be the upstream partner in zero or more jumps, so the first thing we are going to do is list the jumps
// in which the virtual residue is participating.
// We refer to these jumps as "positioned_jumps".
vector1< core::Size > positioned_jump_ids;
core::Size positioning_jump_id = 0;
for ( core::Size i = 1; i <= pose.fold_tree().num_jump(); ++i ) {
if ( pose.fold_tree().downstream_jump_residue( i ) == tracking_residue_id ) {
debug_assert( positioning_jump_id == 0 );
positioning_jump_id = i;
} else if ( pose.fold_tree().upstream_jump_residue( i ) == tracking_residue_id ) {
positioned_jump_ids.push_back( i );
}
}
// TODO: throw an excpetion instead of using an assert
// Make sure the tracking residue's jump was detected properly, then make the jump number const
debug_assert( positioning_jump_id != 0 );
// Get the stubs from the jump that is responsible for positioning the tracking residue and set the center of the
// tracking residue's stub to the new location.
Stub tracking_res_stub = pose.conformation().downstream_jump_stub( positioning_jump_id );
Stub upstream_postioning_stub = pose.conformation().upstream_jump_stub( positioning_jump_id );
tracking_res_stub.v = new_position;
// Update all of the jumps the tracking residue positions.
// It is critical that this is done prior to actually adjusting the position of the tracking residue so the
// downstream stubs are still in the correct positions.
for ( vector1< core::Size >::const_iterator it = positioned_jump_ids.begin(); it != positioned_jump_ids.end(); ++it ) {
if ( passport()->has_jump_access( *it ) ) {
//We don't nessecarily always have access to all jumps that are built by this guy, and sometimes that's ok.
pose.set_jump( *it, Jump( RT( tracking_res_stub, pose.conformation().downstream_jump_stub( *it ) ) ) );
} else {
core::Size non_vrt_residue = pose.fold_tree().downstream_jump_residue( *it );
debug_assert( mobile_residues_.size() < non_vrt_residue || mobile_residues_[ non_vrt_residue ] != true );
}
}
// TODO: throw an excpetion here instead of using an assert
// Update the position of the tracking residue and ensure that it ends up where we want it
pose.set_jump( positioning_jump_id, Jump( RT( upstream_postioning_stub, tracking_res_stub ) ) );
debug_assert( pose.residue( tracking_residue_id ).xyz( "ORIG" ).distance_squared( new_position ) < 1e-10 );
debug_assert( pose.residue( mobile_residues_.index( false ) ).xyz( 1 ).distance_squared( test_point ) < 1e-10 );
}
void CoMTrackerCM::update_com( core::pose::Pose& pose ) const {
using namespace numeric;
using core::kinematics::Jump;
using core::kinematics::RT;
// active_environment() returns NULL without a valid Passport!
EnvironmentCOP env( active_environment() );
SequenceAnnotationCOP ann = env->annotations();
// get the sequence number of the virtual residue that should track the CoM
core::Size const vrt_resid = ann->resolve_seq( LocalPosition( com_name_, 1 ) );
//calculate the center of mass in laboratory coordinate frame
RT::Vector com = com_calc( pose, mobile_residues_ );
update_tracking_residue( com, vrt_resid, pose );
}
void CoMTrackerCM::initialize( core::pose::Pose& pose ){
DofUnlock activeation( pose.conformation(), passport() );
core::environment::DofPassportCOP pp = passport();
update_com( pose );
}
void CoMTrackerCM::apply( core::pose::Pose& pose ){
DofUnlock activation( pose.conformation(), passport() );
update_com( pose );
}
void CoMTrackerCM::parse_my_tag( utility::tag::TagCOP tag,
basic::datacache::DataMap& datamap
) {
// mobile_label_ = tag->getOption< std::string >( "mobile_label" );
stationary_label_ = tag->getOption< std::string >( "stationary_label", GENERATE_STATIONARY_ATTACHMENT_POINT );
name_ = tag->getOption< std::string >( "name" );
// the mobile selector is inverted during brokering to determine which residues are stationary
using namespace core::select::residue_selector;
mobile_selector_ = datamap.get_ptr< ResidueSelector >( "ResidueSelector", tag->getOption<std::string>( "mobile_selector" ) );
}
claims::EnvClaims CoMTrackerCM::yield_claims( core::pose::Pose const& pose,
basic::datacache::WriteableCacheableMapOP ){
using core::Size;
using core::select::residue_selector::ResidueSubset;
claims::EnvClaims claim_list;
// com_name_ = mobile_label_ + "CoM";
com_name_ = name();
com_jump_name_ = name() + "_jump";
// Get the position of the first residue in the "Mobile Selection"
mobile_residues_ = mobile_selector_->apply( pose );
core::Size mobile_connection_point = mobile_residues_.index( true )+1;
if ( std::find( mobile_residues_.begin(), mobile_residues_.end(), true ) == mobile_residues_.end() ) {
std::ostringstream ss;
ss << "The mobile_selector for '" << this->get_name() << "' made an empty selection. This is not allowed.";
throw CREATE_EXCEPTION(utility::excn::BadInput, ss.str() );
}
debug_assert( std::find( mobile_residues_.begin(), mobile_residues_.end(), true ) != mobile_residues_.end() );
moves::MoverOP this_ptr = get_self_ptr();
claims::VirtResClaimOP vclaim( new claims::VirtResClaim( utility::pointer::static_pointer_cast< ClientMover >(this_ptr),
LocalPosition( "BASE", mobile_connection_point ),
com_jump_name_,
com_name_ ) );
vclaim->jump().strength( claims::MUST_CONTROL, claims::MUST_CONTROL );
claim_list.push_back( vclaim );
LocalPosition stationary_attchmnt_pt;
if ( stationary_label_ == GENERATE_STATIONARY_ATTACHMENT_POINT ) {
ResidueSubset stationary_residues = mobile_residues_.invert();
stationary_attchmnt_pt = LocalPosition( "BASE", stationary_residues.index( true ) );
} else {
stationary_attchmnt_pt = LocalPosition( stationary_label_, 1 );
}
return claim_list;
}
moves::MoverOP CoMTrackerCM::fresh_instance() const {
return utility::pointer::make_shared< CoMTrackerCM >();
}
moves::MoverOP CoMTrackerCM::clone() const{
return utility::pointer::make_shared< CoMTrackerCM >( *this );
}
std::string CoMTrackerCM::get_name() const {
return mover_name();
}
std::string CoMTrackerCM::mover_name() {
return "CoMTrackerCM";
}
void CoMTrackerCM::provide_xml_schema( utility::tag::XMLSchemaDefinition & xsd )
{
using namespace utility::tag;
AttributeList attlist;
attlist + XMLSchemaAttribute::attribute_w_default(
"stationary_label", xs_string,
"Label for stationary residues",
GENERATE_STATIONARY_ATTACHMENT_POINT);
attlist + XMLSchemaAttribute::required_attribute(
"name", xs_string,
"Required unique ID for this mover");
attlist + XMLSchemaAttribute::required_attribute(
"mobile_selector", xs_string,
"Residue selector specifying mobile residues");
protocols::moves::xsd_type_definition_w_attributes(
xsd, mover_name(),
"Claim mover that tracks the center of mass",
attlist );
}
std::string CoMTrackerCMCreator::keyname() const {
return CoMTrackerCM::mover_name();
}
protocols::moves::MoverOP
CoMTrackerCMCreator::create_mover() const {
return utility::pointer::make_shared< CoMTrackerCM >();
}
void CoMTrackerCMCreator::provide_xml_schema( utility::tag::XMLSchemaDefinition & xsd ) const
{
CoMTrackerCM::provide_xml_schema( xsd );
}
} // rigid
} // protocols
| [
"lzhangbk@connect.ust.hk"
] | lzhangbk@connect.ust.hk |
2d95c960d46c38266dfe5e4a5043593178b2b5a6 | f5f89b267f87b42244db9db874550d56bc01668e | /Lab3/Matrix/sparse_matrix.cpp | e68d057f27b90622e35c889e98e2370c2b15bd52 | [] | no_license | AntonAsmirko/Optimization-Methods | 8a3ede4940b34a4da154e91f7d19a9c7c3296639 | 76fe2d69c6ef40ea98a5fd254b5a33f7eca1175f | refs/heads/main | 2023-06-04T01:42:49.500893 | 2021-06-14T20:22:44 | 2021-06-14T20:22:44 | 342,860,390 | 0 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,984 | cpp | //
// Created by NelosG.
//
#include <sparse_matrix.h>
constexpr const static double eps = 1E-35;
sparse_matrix::sparse_matrix(std::vector<double> di, std::vector<double> al, std::vector<double> au,
std::vector<int> ia, std::vector<int> ja) {
this->al = std::move(al);
this->au = std::move(au);
this->diagonal = std::move(di);
this->ia = std::move(ia);
this->ja = std::move(ja);
}
sparse_matrix::sparse_matrix(const matrix &mt) {
diagonal.assign(mt.size(), 0);
ia.assign(mt.size() + 2, 0);
std::vector<double> alList;
std::vector<double> auList;
std::vector<int> jaList;
for (int i = 0; i < mt.size(); i++) {
diagonal[i] = mt.get(i, i);
}
ia[0] = 0;
ia[1] = 0;
for (int i = 1; i < mt.size(); i++) {
ia[i + 1] = ia[i] + get_row_profile_length(mt, i, alList, auList, jaList);
}
al.assign(alList.size(), 0);
au.assign(auList.size(), 0);
ja.assign(jaList.size(), 0);
for (int i = 0; i < alList.size(); i++) {
al[i] = alList[i];
au[i] = auList[i];
ja[i] = jaList[i];
}
}
int find(std::vector<int> &vec, int value) {
for (int i = 0; i < vec.size(); ++i) {
if (vec[i] == value) {
return i + 1;
}
}
return 0;
}
double sparse_matrix::get(int a, int b) const {
if (a == b) {
return diagonal[a];
}
bool flag = true;
if (b > a) {
int temp = b;
b = a;
a = temp;
flag = false;
}
std::vector<int> all_columns;
for (int i = ia[a]; i < ia[a + 1]; i++) {
all_columns.emplace_back(ja[i]);
}
if (find(all_columns, b)) {
if (flag) {
return al[ia[a] + find(all_columns, b) - 1];
} else {
return au[ia[a] + find(all_columns, b) - 1];
}
} else {
return 0;
}
}
std::vector<double> sparse_matrix::multiply(std::vector<double> &vector) const {
int leftBorderInJa = 0;
std::vector<double> result(vector.size(), 0);
for (int i = 0; i < diagonal.size(); i++) {
int cnt = ia[i + 1] - ia[i];
result[i] += diagonal[i] * vector[i];
for (int j = 0; j < cnt; j++) {
int column = ja[leftBorderInJa + j];
result[i] += al[leftBorderInJa + j] * vector[column];
result[column] += au[leftBorderInJa + j] * vector[i];
}
leftBorderInJa += cnt;
}
return result;
}
int sparse_matrix::get_row_profile_length(const matrix &mt, int row,
std::vector<double> &alList, std::vector<double> &auList, std::vector<int> &jaList) {
int index = 0;
int count = 0;
while (index != row) {
if (abs(mt.get(row, index)) >= eps) {
alList.emplace_back(mt.get(row, index));
auList.emplace_back(mt.get(index, row));
jaList.emplace_back(index);
count++;
}
index++;
}
return count;
}
| [
"gleb.pushkarev@mail.ru"
] | gleb.pushkarev@mail.ru |
d37e4b1be0469696317ec00ea6c7f090ec6e612d | ce296179bde696fbfd7392291acbbf2530348f12 | /AsyncTaskManager/TaskManager.h | 1a0cebb462dddb1ff608daa05ebe4bf067cda519 | [] | no_license | staring/AsyncTaskManager | fbd5a3b4f825ef09bbe35537f6c5d77d939465c9 | f8a2877bc3b4cf7315574b502d3204c0f0b54586 | refs/heads/master | 2021-01-17T10:15:29.990157 | 2015-07-09T10:32:09 | 2015-07-09T10:32:09 | 58,213,353 | 1 | 1 | null | 2016-05-06T14:35:56 | 2016-05-06T14:35:56 | null | UTF-8 | C++ | false | false | 730 | h | #pragma once
#include <boost/thread.hpp>
#include <boost/asio.hpp>
#include "Task.h"
#include "TaskEventsBroadcaster.h"
enum TasksExecutionState { NONE, RUNNING, FINISHED, SUSPENDED };
class TaskManager {
public:
TaskManager();
~TaskManager();
void postTask(Task *task);
void execute();
void pause();
void resume();
void finish();
float getProgress() const;
TaskEventsBroadcaster *getTaskEventsBroadcaster();
TasksExecutionState getExecutionState() const;
unsigned getTaskCount() const;
private:
TasksExecutionState state;
boost::asio::io_service service;
boost::thread_group threadpool;
boost::asio::io_service::work work;
unsigned taskCount;
TaskEventsBroadcaster stats;
};
| [
"dexterous.programmer@gmail.com"
] | dexterous.programmer@gmail.com |
0659fd9d90657f8af9d1960a1f441004de76aa71 | 7bad63752ca277e79ecb89336d2b854ec6870107 | /camdroid/device/softwinner/tiger-cdr/app/ccdr/src/misc/CdrTimer.cpp | 3070ed69210927198b9c8d9c6ac3e42d3792a6bf | [] | no_license | wangweigang0/-v3s-camdriod | 8da473ecdc22f18feba8a8ba409bafe0e4555f23 | a4532cac0cea06cd1001ab602f30b2a13dbc74ed | refs/heads/master | 2023-02-18T16:15:16.347672 | 2018-04-17T02:15:41 | 2018-04-17T02:15:41 | 329,496,374 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,528 | cpp |
#include "CdrTimer.h"
#undef LOG_TAG
#define LOG_TAG "CdrTimer"
#include "debug.h"
CdrTimer::CdrTimer(void* context, int idx)
{
mTimerData.context = context;
mTimerData.id = 0;
mTimerData.time = 1;
mTimerData.idx = idx;
}
CdrTimer::~CdrTimer()
{
deleteTimer(mTimerData.id);
}
void CdrTimer::init(void(*callback)(sigval_t))
{
createTimer((void*)&mTimerData, &mTimerData.id, callback);
}
void CdrTimer::startOneShot(unsigned int time_sec)
{
if(mTimerData.id != 0) {
mTimerData.time = time_sec;
setOneShotTimer(time_sec, 0, mTimerData.id);
} else {
db_error("Timer not init");
}
}
void CdrTimer::startPeriod(unsigned int time_sec)
{
if(mTimerData.id != 0) {
mTimerData.time = time_sec;
setPeriodTimer(time_sec, 0, mTimerData.id);
} else {
db_error("Timer not init");
}
}
void CdrTimer::startOneShot(void)
{
if(mTimerData.id != 0) {
setOneShotTimer(mTimerData.time, 0, mTimerData.id);
} else {
db_error("Timer not init");
}
}
void CdrTimer::startPeriod(void)
{
if(mTimerData.id != 0) {
setPeriodTimer(mTimerData.time, 0, mTimerData.id);
} else {
db_error("Timer not init");
}
}
void CdrTimer::stop()
{
if(mTimerData.id != 0) {
stopTimer(mTimerData.id);
}
}
bool CdrTimer::timerStoped()
{
time_t sec = 0;
long int nsec = 0;
if(mTimerData.id != 0) {
getExpirationTime(&sec, &nsec, mTimerData.id);
db_msg("sec %ld, nsec %ld", sec, nsec);
if (sec == 0 && nsec == 0) {
return true;
}
}
return false;
}
void* CdrTimer::getContext(void)
{
return mTimerData.context;
}
| [
"252915145@qq.com"
] | 252915145@qq.com |
695d1838fa36146dd165564b3c71e8e058c7cfe7 | 9be246df43e02fba30ee2595c8cec14ac2b355d1 | /dlls/ai_hint.h | f0560db7ccc415df797110875fad97857c724daf | [] | no_license | Clepoy3/LeakNet | 6bf4c5d5535b3824a350f32352f457d8be87d609 | 8866efcb9b0bf9290b80f7263e2ce2074302640a | refs/heads/master | 2020-05-30T04:53:22.193725 | 2019-04-12T16:06:26 | 2019-04-12T16:06:26 | 189,544,338 | 18 | 5 | null | 2019-05-31T06:59:39 | 2019-05-31T06:59:39 | null | WINDOWS-1252 | C++ | false | false | 6,575 | h | //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
//
// Purpose: Hint node utilities and functions.
//
// $NoKeywords: $
//=============================================================================
#ifndef AI_HINT_H
#define AI_HINT_H
#pragma once
//Flags for FindHintNode
#define bits_HINT_NODE_NONE 0x00000000
#define bits_HINT_NODE_VISIBLE 0x00000001
#define bits_HINT_NODE_NEAREST 0x00000002
// Find a random hintnode meeting other criteria
#define bits_HINT_NODE_RANDOM 0x00000004
//=========================================================
// hints - these MUST coincide with the HINTS listed under
// info_node in the FGD file!
//=========================================================
enum Hint_e
{
HINT_ANY = -1,
HINT_NONE = 0,
HINT_NOT_USED_WORLD_DOOR,
HINT_WORLD_WINDOW,
HINT_NOT_USED_WORLD_BUTTON,
HINT_NOT_USED_WORLD_MACHINERY,
HINT_NOT_USED_WORLD_LEDGE,
HINT_NOT_USED_WORLD_LIGHT_SOURCE,
HINT_NOT_USED_WORLD_HEAT_SOURCE,
HINT_NOT_USED_WORLD_BLINKING_LIGHT,
HINT_NOT_USED_WORLD_BRIGHT_COLORS,
HINT_NOT_USED_WORLD_HUMAN_BLOOD,
HINT_NOT_USED_WORLD_ALIEN_BLOOD,
HINT_WORLD_WORK_POSITION,
HINT_WORLD_VISUALLY_INTERESTING,
HINT_TACTICAL_COVER_MED = 100,
HINT_TACTICAL_COVER_LOW,
HINT_TACTICAL_SPAWN,
HINT_TACTICAL_PINCH, // Exit / entrance to an arena
HINT_NOT_USED_TACTICAL_GUARD,
HINT_TACTICAL_ENEMY_DISADVANTAGED, //Disadvantageous position for the enemy
HINT_HEALTH_KIT,
HINT_TACTICAL_BOOBY_TRAP, // good place for a booby trap device (combine soldier)
HINT_NOT_USED_URBAN_STREETCORNER = 200,
HINT_NOT_USED_URBAN_STREETLAMP,
HINT_NOT_USED_URBAN_DARK_SPOT,
HINT_NOT_USED_URBAN_POSTER,
HINT_URBAN_SHELTER,
HINT_NOT_USED_ASSASSIN_SECLUDED = 300,
HINT_NOT_USED_ASSASSIN_RAFTERS,
HINT_NOT_USED_ASSASSIN_GROUND,
HINT_NOT_USED_ASSASSIN_MONKEYBARS,
HINT_ANTLION_BURROW_POINT = 400,
HINT_ROLLER_PATROL_POINT = 500,
HINT_ROLLER_CLEANUP_POINT,
HINT_NOT_USED_PSTORM_ROCK_SPAWN = 600,
HINT_CROW_FLYTO_POINT = 700,
// TF2 Hints
HINT_BUG_PATROL_POINT = 800,
HINT_FOLLOW_WAIT_POINT = 900,
// HL1 port hints
HINT_HL1_WORLD_MACHINERY = 1000,
HINT_HL1_WORLD_BLINKING_LIGHT,
HINT_HL1_WORLD_HUMAN_BLOOD,
HINT_HL1_WORLD_ALIEN_BLOOD,
};
//==================================================
// CHintCriteria
//==================================================
class CHintCriteria
{
public:
CHintCriteria();
~CHintCriteria();
int HasFlag( int bitmask ) const { return ( m_iFlags & bitmask ); }
void SetFlag( int bitmask );
void SetGroup( string_t group );
string_t GetGroup( void ) const { return m_strGroup; }
int GetHintType( void ) const { return m_iHintType; }
bool HasIncludeZones( void ) const { return ( m_zoneInclude.Count() != 0 ); }
bool HasExcludeZones( void ) const { return ( m_zoneExclude.Count() != 0 ); }
void AddIncludePosition( const Vector &position, float radius );
void AddExcludePosition( const Vector &position, float radius );
void SetHintType( int hintType );
bool InIncludedZone( const Vector &testPosition );
bool InExcludedZone( const Vector &testPosition );
private:
struct hintZone_t
{
Vector position;
float radius;
};
typedef CUtlVector < hintZone_t > zoneList_t;
void AddZone( zoneList_t &list, const Vector &position, float radius );
bool InZone( zoneList_t &zone, const Vector &testPosition );
int m_iFlags;
int m_iHintType;
string_t m_strGroup;
zoneList_t m_zoneInclude;
zoneList_t m_zoneExclude;
};
class CAI_Node;
//==================================================
// CHintCriteria
//==================================================
class CAI_Hint : public CBaseEntity
{
DECLARE_CLASS( CAI_Hint, CBaseEntity );
public:
DECLARE_DATADESC();
CAI_Hint( void );
~CAI_Hint( void );
static CAI_Hint *FindHint( CAI_BaseNPC *pNPC, const Vector &position, CHintCriteria *pHintCriteria );
static CAI_Hint *FindHint( CAI_BaseNPC *pNPC, CHintCriteria *pHintCriteria );
static CAI_Hint *FindHint( const Vector &position, CHintCriteria *pHintCriteria );
static CAI_Hint *FindHint( CAI_BaseNPC *pNPC, Hint_e nHintType, int nFlags, float flMaxDist, const Vector *pMaxDistFrom = NULL );
// Purpose: Finds a random suitable hint within the requested radious of the npc
static CAI_Hint *FindHintRandom( CAI_BaseNPC *pNPC, Hint_e nHintType, int nFlags, float flMaxDist, const Vector *pMaxDistFrom = NULL );
static CAI_Hint *CreateHint(string_t nName, const Vector &pos, Hint_e nHintType, int nNodeID, string_t strGroup);
static void DrawHintOverlays(float flDrawDuration);
static CAI_Hint *m_pLastFoundHint; // Last used hint
static CAI_Hint *m_pAllHints; // A linked list of all hints
static int GetFlags( const char *token );
void Spawn( void );
bool Lock( CBaseEntity *pNPC ); // Makes unavailable for hints
void Unlock( float delay = 0.0 ); // Makes available for hints after delay
bool IsLocked(void); // Whether this node is available for use.
bool IsLockedBy( CBaseEntity *pNPC ); // Whether this node is available for use.
void GetPosition(CBaseCombatCharacter *pBCC, Vector *vPosition);
void GetPosition( Hull_t hull, Vector *vPosition );
Vector GetDirection( );
float Yaw(void);
bool IsViewable( void );
string_t GetGroup( void ) const { return m_strGroup; }
Hint_e HintType(void) const { return m_nHintType; };
CBaseEntity *User(void) { return m_hHintOwner; };
// Input handlers
void InputEnableHint( inputdata_t &inputdata );
void InputDisableHint( inputdata_t &inputdata );
int DrawDebugTextOverlays(void);
CAI_Node *GetNode( void );
virtual int ObjectCaps( void ) { return (BaseClass::ObjectCaps() & ~FCAP_ACROSS_TRANSITION); }
// The next hint in list of all hints
CAI_Hint *m_pNextHint;
private:
Hint_e m_nHintType; // there is something interesting in the world at this node's position
EHANDLE m_hHintOwner; // Is hint locked (being used by NPC)
int m_nNodeID; // What nodes is this hint attached to
int m_iDisabled; // Initial state
// float m_flRadius; // range to search // UNDONE
float m_flNextUseTime; // When can I be used again?
string_t m_strGroup; // Group name (if any) for this hint
COutputEvent m_OnNPCArrival; // Triggered when the door is told to open.
};
#endif //AI_HINT_H
| [
"uavxp29@gmail.com"
] | uavxp29@gmail.com |
a0449eb1b3bbbeee8098cbc8f970e463983093c1 | f97b80641f6a7a789b004bffda779893aec81502 | /src/runtime/src/coreclr/pal/tests/palsuite/c_runtime/_vsnprintf_s/test12/test12.cpp | 5509667a715fd68dc94d97b66d7e92676727000a | [
"MIT"
] | permissive | hassanhabib/dotnet | eacc65b9a418ec94ec7988f31704615434665781 | 069184f9786e6aff59c823332d32746eb0fb4b3a | refs/heads/main | 2023-03-16T09:07:49.977710 | 2023-02-04T00:36:09 | 2023-02-04T00:36:09 | 597,627,293 | 0 | 1 | null | 2023-02-05T05:38:27 | 2023-02-05T05:38:27 | null | UTF-8 | C++ | false | false | 1,353 | cpp | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*=====================================================================
**
** Source: test12.c
**
** Purpose: Test #12 for the _vsnprintf function.
**
**
**===================================================================*/
#include <palsuite.h>
#include "../_vsnprintf_s.h"
/*
* Notes: memcmp is used, as is strlen.
*/
PALTEST(c_runtime__vsnprintf_s_test12_paltest_vsnprintf_test12, "c_runtime/_vsnprintf_s/test12/paltest_vsnprintf_test12")
{
int neg = -42;
int pos = 0x1234ab;
if (PAL_Initialize(argc, argv) != 0)
{
return (FAIL);
}
DoNumTest("foo %x", pos, "foo 1234ab");
DoNumTest("foo %lx", pos, "foo 1234ab");
DoNumTest("foo %hx", pos, "foo 34ab");
DoNumTest("foo %7x", pos, "foo 1234ab");
DoNumTest("foo %-7x", pos, "foo 1234ab ");
DoNumTest("foo %.1x", pos, "foo 1234ab");
DoNumTest("foo %.7x", pos, "foo 01234ab");
DoNumTest("foo %07x", pos, "foo 01234ab");
DoNumTest("foo %#x", pos, "foo 0x1234ab");
DoNumTest("foo %+x", pos, "foo 1234ab");
DoNumTest("foo % x", pos, "foo 1234ab");
DoNumTest("foo %+x", neg, "foo ffffffd6");
DoNumTest("foo % x", neg, "foo ffffffd6");
PAL_Terminate();
return PASS;
}
| [
"dotnet-maestro[bot]@users.noreply.github.com"
] | dotnet-maestro[bot]@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.