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
0c870a44a2a3f3543fd3d317db7653b79db2de73
d564787650beac7c8d0272c4c46ca09ec86d93e4
/src/alert.cpp
0ba050db12552912eb9b62a649e22d8138fa08d8
[ "MIT" ]
permissive
Findblocks/quant
f3de9a18fbe4caa5e1c3925bb96e4e289fde1fc4
c0c1d7cb82b6cc82cbc1f444fc4063891cf12593
refs/heads/master
2021-01-19T13:19:40.295465
2017-02-18T12:26:32
2017-02-18T12:26:32
82,385,082
1
0
null
null
null
null
UTF-8
C++
false
false
7,387
cpp
// // Alert system // #include <algorithm> #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/replace.hpp> #include <boost/foreach.hpp> #include <map> #include "alert.h" #include "key.h" #include "net.h" #include "sync.h" #include "ui_interface.h" using namespace std; map<uint256, CAlert> mapAlerts; CCriticalSection cs_mapAlerts; static const char* pszMainKey = "049403ad8299cd7698085a5c4a2a7c9b0c7d90e1e1562b59cfdbf118fcc66c18cdbbe872363d5267cee36a2ba5a2ed403cfce9c469db3d5409c493b06a8ee25ed6"; static const char* pszTestKey = "040ab60889d4e48d2f39c14cbbc219424d871c4a5aa76e170f51760b53ad381ee125751006b3291f191b04c946b675c5ccd92c58e87ec6840a5701bb7d8830efad"; void CUnsignedAlert::SetNull() { nVersion = 1; nRelayUntil = 0; nExpiration = 0; nID = 0; nCancel = 0; setCancel.clear(); nMinVer = 0; nMaxVer = 0; setSubVer.clear(); nPriority = 0; strComment.clear(); strStatusBar.clear(); strReserved.clear(); } std::string CUnsignedAlert::ToString() const { std::string strSetCancel; BOOST_FOREACH(int n, setCancel) strSetCancel += strprintf("%d ", n); std::string strSetSubVer; BOOST_FOREACH(std::string str, setSubVer) strSetSubVer += "\"" + str + "\" "; return strprintf( "CAlert(\n" " nVersion = %d\n" " nRelayUntil = %"PRI64d"\n" " nExpiration = %"PRI64d"\n" " nID = %d\n" " nCancel = %d\n" " setCancel = %s\n" " nMinVer = %d\n" " nMaxVer = %d\n" " setSubVer = %s\n" " nPriority = %d\n" " strComment = \"%s\"\n" " strStatusBar = \"%s\"\n" ")\n", nVersion, nRelayUntil, nExpiration, nID, nCancel, strSetCancel.c_str(), nMinVer, nMaxVer, strSetSubVer.c_str(), nPriority, strComment.c_str(), strStatusBar.c_str()); } void CUnsignedAlert::print() const { printf("%s", ToString().c_str()); } void CAlert::SetNull() { CUnsignedAlert::SetNull(); vchMsg.clear(); vchSig.clear(); } bool CAlert::IsNull() const { return (nExpiration == 0); } uint256 CAlert::GetHash() const { return Hash(this->vchMsg.begin(), this->vchMsg.end()); } bool CAlert::IsInEffect() const { return (GetAdjustedTime() < nExpiration); } bool CAlert::Cancels(const CAlert& alert) const { if (!IsInEffect()) return false; // this was a no-op before 31403 return (alert.nID <= nCancel || setCancel.count(alert.nID)); } bool CAlert::AppliesTo(int nVersion, std::string strSubVerIn) const { // TODO: rework for client-version-embedded-in-strSubVer ? return (IsInEffect() && nMinVer <= nVersion && nVersion <= nMaxVer && (setSubVer.empty() || setSubVer.count(strSubVerIn))); } bool CAlert::AppliesToMe() const { return AppliesTo(PROTOCOL_VERSION, FormatSubVersion(CLIENT_NAME, CLIENT_VERSION, std::vector<std::string>())); } bool CAlert::RelayTo(CNode* pnode) const { if (!IsInEffect()) return false; // returns true if wasn't already contained in the set if (pnode->setKnown.insert(GetHash()).second) { if (AppliesTo(pnode->nVersion, pnode->strSubVer) || AppliesToMe() || GetAdjustedTime() < nRelayUntil) { pnode->PushMessage("alert", *this); return true; } } return false; } bool CAlert::CheckSignature() const { CPubKey key(ParseHex(fTestNet ? pszTestKey : pszMainKey)); if (!key.Verify(Hash(vchMsg.begin(), vchMsg.end()), vchSig)) return error("CAlert::CheckSignature() : verify signature failed"); // Now unserialize the data CDataStream sMsg(vchMsg, SER_NETWORK, PROTOCOL_VERSION); sMsg >> *(CUnsignedAlert*)this; return true; } CAlert CAlert::getAlertByHash(const uint256 &hash) { CAlert retval; { LOCK(cs_mapAlerts); map<uint256, CAlert>::iterator mi = mapAlerts.find(hash); if(mi != mapAlerts.end()) retval = mi->second; } return retval; } bool CAlert::ProcessAlert(bool fThread) { if (!CheckSignature()) return false; if (!IsInEffect()) return false; // alert.nID=max is reserved for if the alert key is // compromised. It must have a pre-defined message, // must never expire, must apply to all versions, // and must cancel all previous // alerts or it will be ignored (so an attacker can't // send an "everything is OK, don't panic" version that // cannot be overridden): int maxInt = std::numeric_limits<int>::max(); if (nID == maxInt) { if (!( nExpiration == maxInt && nCancel == (maxInt-1) && nMinVer == 0 && nMaxVer == maxInt && setSubVer.empty() && nPriority == maxInt && strStatusBar == "URGENT: Alert key compromised, upgrade required" )) return false; } { LOCK(cs_mapAlerts); // Cancel previous alerts for (map<uint256, CAlert>::iterator mi = mapAlerts.begin(); mi != mapAlerts.end();) { const CAlert& alert = (*mi).second; if (Cancels(alert)) { printf("cancelling alert %d\n", alert.nID); uiInterface.NotifyAlertChanged((*mi).first, CT_DELETED); mapAlerts.erase(mi++); } else if (!alert.IsInEffect()) { printf("expiring alert %d\n", alert.nID); uiInterface.NotifyAlertChanged((*mi).first, CT_DELETED); mapAlerts.erase(mi++); } else mi++; } // Check if this alert has been cancelled BOOST_FOREACH(PAIRTYPE(const uint256, CAlert)& item, mapAlerts) { const CAlert& alert = item.second; if (alert.Cancels(*this)) { printf("alert already cancelled by %d\n", alert.nID); return false; } } // Add to mapAlerts mapAlerts.insert(make_pair(GetHash(), *this)); // Notify UI and -alertnotify if it applies to me if(AppliesToMe()) { uiInterface.NotifyAlertChanged(GetHash(), CT_NEW); std::string strCmd = GetArg("-alertnotify", ""); if (!strCmd.empty()) { // Alert text should be plain ascii coming from a trusted source, but to // be safe we first strip anything not in safeChars, then add single quotes around // the whole string before passing it to the shell: std::string singleQuote("'"); std::string safeStatus = SanitizeString(strStatusBar); safeStatus = singleQuote+safeStatus+singleQuote; boost::replace_all(strCmd, "%s", safeStatus); if (fThread) boost::thread t(runCommand, strCmd); // thread runs free else runCommand(strCmd); } } } printf("accepted alert %d, AppliesToMe()=%d\n", nID, AppliesToMe()); return true; }
[ "findblocks@gmail.com" ]
findblocks@gmail.com
1f9204deed12fce5b923672e8d39bf400e7ca6e3
9f520bcbde8a70e14d5870fd9a88c0989a8fcd61
/pitzDaily/279/alpha
3294c3f041fd8806e229b272560b3612d34e7ae8
[]
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
69,186
/*--------------------------------*- 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 volScalarField; location "279"; object alpha; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 -1 0 0 0 0]; internalField nonuniform List<scalar> 6400 ( 0.840396066072 1.27431902459 1.964352351 2.2885282654 2.61082157541 2.96853419959 3.54883540876 4.22568637256 4.39098831479 4.7542406374 5.87747351837 6.42097875252 6.83116947977 7.37027323762 8.1636379302 8.9805294957 9.60214730981 10.1984341804 10.7254620787 10.9560201592 10.890300096 10.8602149001 11.1124930412 11.6986435503 12.3827392062 12.9589584885 13.3444611438 13.681826918 14.104207891 14.6231979878 15.1856130958 15.530464754 15.5926821825 15.5439780264 15.3965308418 15.0534849625 14.8985724869 15.1538848157 14.9367001517 14.3908899084 14.2932166481 14.8196002181 15.3907214236 15.6630714791 15.722042687 15.6308802977 15.4661216428 15.2922529244 15.1162596227 14.9492070184 14.6370546543 13.7924257631 12.8751533308 11.8268105296 11.222233443 11.2893237007 10.8657709837 9.37324003795 7.66191086934 6.88378480367 5.87518920998 4.79221718425 3.70263787925 5.36598513992 9.46354890744 14.4333387105 17.4494007753 17.1796752369 15.1946561868 13.5263953128 12.582158527 12.6693540715 13.0961399978 12.9075113827 14.8263020035 14.2273524776 16.0261923617 9.93154685846 12.8806711326 4.8193034212 3.09062250213 2.4055455827 2.9488037893 4.1480590009 3.83910284462 3.47232225686 3.50115790106 3.78987649584 4.24087893325 4.83744397944 5.59736138664 6.35485270359 6.99931969421 7.61407961101 8.2273461251 8.94746939896 9.700470499 10.4598397624 11.4985201975 11.5145064306 11.1772007011 11.0527300313 11.1862791112 11.7128648944 12.6475390843 13.1024064633 13.4287288372 13.8369711544 14.2937357685 14.7753563587 15.2800748264 15.8112167801 15.8776873603 15.8465895843 15.7818084048 15.2270194933 15.2008280538 15.4671822466 15.1108439715 14.2614449729 14.0966158945 16.1030439528 17.40446325 17.5160161556 17.4632539136 17.1408500876 16.661797757 16.2588122207 15.6558856993 15.1229561165 14.9801387021 15.3535893013 14.9643125083 12.0498202012 11.7097535996 11.2183084956 9.48056143534 8.08202311971 6.89411354672 5.74346473665 4.81001675387 5.18116122054 3.97936012889 5.59366084436 9.52891183378 15.3633313823 19.1085978235 17.9365988671 15.7851584047 13.8440499987 13.0578248827 13.3597211282 14.3293325412 13.7058248036 13.4883694304 12.9096580605 11.662740635 9.79077387279 8.20780719633 4.29612277059 3.06865944707 2.61366350417 3.10239838039 3.20749972554 3.499282309 3.81266977479 3.73610995961 3.73060168877 4.1656028068 4.82141658901 5.57411712543 6.35083845935 7.04923888561 7.67768167471 8.15291315023 8.79611301263 11.8902907854 14.0086305102 14.2409409513 13.2462474208 11.0251928433 10.541804947 11.385302148 11.9745420923 12.461115609 13.0533128348 13.5625535355 13.9764057074 14.4108624076 14.9139414599 15.3535621769 16.0526721896 16.167665592 15.6970497992 16.3311803574 15.7983229416 15.0457541015 15.794610437 15.3986464446 14.5179370435 14.3381277663 14.9118197691 15.5260552252 15.8243249064 15.906708328 15.859234825 15.7175857354 15.5025173957 15.2149783884 14.8809575558 14.504924395 13.9905921561 13.2427769721 12.6709913261 12.2560204047 10.8579049106 9.39023351117 8.1450072009 7.02727170871 6.03292794114 5.27983375223 4.5687852511 4.14962190443 6.44065600495 11.5472679472 16.2299227865 18.5484572634 18.6840024987 17.0945667993 15.3916888634 14.6335395737 14.4644268174 13.7623479028 13.1233658455 13.0262279719 12.6109917996 11.5708964104 9.92034359143 7.48849897013 7.6475372826 2.87937493209 5.33624087971 3.23398335615 3.2119603486 3.84058717519 11.712613647 10.0311226009 4.50988712857 4.17890997188 4.84594078374 5.59839590228 6.3822892722 7.05784124229 7.77060678231 9.72433607224 12.0204971614 13.6650489168 13.7989995862 12.0672187356 10.4914347752 10.5272590886 10.8160438164 11.228984674 11.8591244379 12.5551321648 13.2127450715 13.7732608158 14.1407078107 14.6447647759 14.9973206433 15.7462758871 15.9916336015 16.7015252398 16.3750602698 15.4969185561 16.014759221 15.3866681825 14.717800339 14.6320739097 14.6022749486 14.7038132426 15.090954648 15.5428831553 15.8343817486 15.9537881587 15.9399740222 15.8232066139 15.6248917812 15.3549316924 15.0246059425 14.6286826682 14.1334422969 13.5239994809 12.8599777348 12.0272899034 10.8607188863 9.54233222624 8.32913427363 7.29232720817 6.45026361386 5.82184602706 5.38065896435 5.43967345061 7.15308539584 10.8017134164 16.5345376423 20.1217913443 20.3367695443 18.6783136246 16.3294090486 14.6968598318 13.8563963986 13.9545678595 15.2501965703 15.1194245322 13.744693829 13.5417904044 16.7668701803 13.1966467428 11.2368414677 5.31718141552 7.33041130293 3.73039409508 4.05041069311 6.19049412215 11.5926355623 7.73979028648 4.69197503591 4.66943235362 5.06853475152 5.7515112663 6.5650908895 8.02876573331 10.6431212992 11.6113282388 11.7856805441 11.3846464721 10.5710475911 10.1512693236 10.5549474181 10.6739186326 10.7918895109 11.2950157317 11.9669107511 12.7037957941 13.4220985435 13.9067542085 14.5324272912 14.7581026287 15.5602890417 15.7248038023 17.150224223 16.5507759736 15.707702661 15.8917640384 15.0187560427 14.7273265362 14.6775028707 14.7251230886 14.8047833327 14.9554647243 15.2534274471 15.6085230895 15.8806162534 16.0208287514 16.0336315504 15.9397982157 15.760820444 15.5113056468 15.1980731275 14.8140629606 14.3428963155 13.7745359548 13.0908848372 12.192712056 11.0307980466 9.77833745516 8.65280507232 7.74993875167 7.08587019528 6.65754152196 6.51255891033 6.93975913304 7.88893956201 10.7296514458 15.975892433 20.1689177106 21.5788859276 20.4008463168 17.6421071047 15.1691826362 14.7972929858 16.9331477955 17.7319437113 16.640565792 15.6726999623 18.2447966108 21.2093831497 16.5662515378 15.6868269385 9.65805284428 8.77507050128 4.62317979033 5.39660302967 11.8516334049 11.2698101436 5.64208283717 5.15987124607 5.22248737212 5.39957682724 6.06300646263 9.00611947663 12.4882318385 12.7842065106 12.2033859226 10.7819457506 9.78422186907 9.65807493665 10.528224028 10.567154252 10.4598230269 10.8329515341 11.4449068395 12.1859855124 12.8173594848 13.5604780788 14.5292080027 14.5952141939 15.6850378472 15.5108028247 17.3678711843 16.7213146034 17.8045565945 16.2536724752 14.8447228048 14.5111453494 14.5977243143 14.7438271909 14.8780238953 15.0046624348 15.1769648089 15.4336270747 15.7293243561 15.9784815921 16.1254053673 16.1568108266 16.0829505676 15.9254153109 15.702574545 15.4195511606 15.0671549361 14.6282122812 14.0776097962 13.3683352271 12.4384806771 11.3152767423 10.1698826699 9.175985029 8.40444615856 7.89110527714 7.64330240076 7.86285881912 9.01970564716 8.38263761684 12.1288917351 17.6452231297 21.3562070593 22.7734033011 21.8400636844 18.4990616345 16.3359702486 18.0565554314 20.1804079495 19.6089646636 18.5592880939 18.5847174346 23.0424872212 24.5838956668 19.6278521451 19.4251401014 11.7225396155 8.37080709926 5.62653066098 5.32276599507 11.7189594539 7.73022152366 5.57596524631 5.65611309914 5.72858527616 6.41046471793 6.7443342438 12.4342437994 12.9224080347 12.820372746 11.044229309 9.36164622195 9.16824490173 10.5656656487 10.570922569 10.1389564972 10.4657732677 10.9441534464 11.5544332977 12.2919670177 13.2484421018 14.2267378761 14.496316103 16.0152618313 15.6028917382 17.6692936455 16.8227549545 18.0737404115 16.8530544496 15.9158162936 14.4467010209 14.3362122481 14.6162019975 14.8687370577 15.0423322368 15.1963233667 15.3867716536 15.6269025986 15.8894359183 16.1194923638 16.2672063806 16.3107168877 16.2555191807 16.1243001834 15.9369667448 15.6957818265 15.3859856087 14.9814689069 14.4432611934 13.7236125381 12.8028504907 11.7548733278 10.7380555344 9.87839937846 9.20934891701 8.73870530007 8.60257794848 8.9070341523 9.13381303059 9.61499035989 13.2573594788 20.0144073254 22.6214062089 23.0573958878 22.0066396844 19.7675003607 19.5337673092 22.0298270566 22.4220389296 21.5292917912 20.8911341174 22.7698906158 25.426384414 26.8309395083 22.2834127755 21.1492011408 11.30951989 7.71123306851 6.67111664637 11.7256272132 11.6926420741 6.24501609458 6.12739518489 6.21312324823 6.39528583359 6.91298103258 12.2556064273 13.1221654144 13.0225963012 12.3221040331 9.49136186048 8.70230263747 10.4170127237 10.793121737 10.0389766339 9.97299155106 10.5187220211 11.1777482313 11.7872980929 12.6074095386 13.3115087562 14.7281681845 14.6290568538 15.9453227848 17.5809920786 17.7109718222 16.3108288202 17.2512435613 17.1189840081 14.7823977015 14.3412509334 14.445478254 14.7221888732 14.9997559597 15.2083569842 15.3884608943 15.5950566706 15.8348717346 16.08202739 16.2980346428 16.4434620033 16.495948992 16.4609065413 16.3624738635 16.2198357307 16.0303602674 15.7715790269 15.4066176077 14.8885542124 14.1829266173 13.3096562402 12.3661619442 11.476058789 10.6910502635 9.98771733264 9.44737636211 9.34902661618 9.71005534654 10.3054040985 11.216326966 12.1341390542 19.9386408385 24.2168785215 24.3780663415 23.8396512521 22.96699881 23.8528626809 25.1852203063 24.4572077518 23.7104356397 23.8454790759 26.0527810779 26.6434759451 27.1654484904 24.2934646415 22.1637306619 10.3958527075 7.34056629918 7.31029567013 12.629184027 10.35607987 6.58178603137 6.7224148564 6.91971259182 8.49335308587 6.8777736406 13.0288933618 13.5531747018 13.0054825295 10.7662311178 8.80747548801 8.82411907541 10.543411478 10.3616611514 9.84587613833 10.0011849981 10.5045983712 11.303265431 12.0596006569 13.4275919683 14.6398448624 14.5675778243 16.874443614 15.5883000533 17.9129705282 16.5266795641 18.2302136002 16.1035694221 15.1958998207 14.5888417404 14.4664007184 14.6116641255 14.8586447181 15.1345850972 15.3754331726 15.5890310647 15.8138002663 16.0584788592 16.3015554326 16.510087758 16.6520676433 16.71286566 16.7022965924 16.6442515783 16.5545552105 16.4254855577 16.2264420799 15.9103899518 15.4281363453 14.7645994758 13.9708048483 13.1430398699 12.3374840644 11.4961039114 10.5620423271 9.85378189014 9.94945774275 10.8518421457 11.9640913906 12.9178151732 13.6593768643 16.5112333148 24.295744851 26.0300077922 26.1919069937 26.9652551541 28.0872787972 27.7312625419 26.6577332816 26.361399563 27.2219574273 28.27800441 28.028922926 27.3573190415 26.3118790953 24.9277194748 9.58220087249 7.53209273738 8.50190036223 12.6229824535 7.82916885693 7.59014092489 7.31780022904 7.56573482187 11.236178897 9.75388977387 13.8562531451 13.7506132496 12.981392916 9.76472022699 8.69681307125 10.5847020855 10.8135191133 10.0108128364 9.7861487131 10.1838138613 10.6291396781 11.3689436248 11.9757313045 13.6117654856 16.0175845054 14.4034988875 16.7694265307 17.8967420646 18.1581788047 18.4741734448 16.8438745914 16.6819685596 14.6800727596 14.4321792154 14.6038187515 14.78878234 15.0118169114 15.2752637443 15.539900548 15.7935444928 16.0470541452 16.3027907175 16.5465106424 16.7522975827 16.8937505784 16.9635582143 16.980828221 16.9709680523 16.9429471143 16.882329975 16.752225258 16.4978047647 16.0713059393 15.4784589721 14.7887008777 14.0634866092 13.2306457193 12.0722200746 10.7030621982 10.0366529986 10.8288616601 12.4930339386 13.9852608697 15.096656551 15.8667125439 15.758653178 16.7408205791 27.8188327037 30.6976358669 31.8964803337 31.8455336135 30.4128893409 29.3913114515 29.5068002949 30.459275856 30.6208457345 30.2478284632 29.8728761625 30.1612448839 30.3180988254 9.23927573288 8.17847689686 12.1803675567 12.5715598068 7.56850074447 8.2768677939 7.88457008343 8.58860223257 10.4427388794 13.5007217117 14.5593091712 13.9020048835 13.0792054056 9.50507056643 8.77953448645 11.1810692779 10.8215073779 9.90093446572 9.79750077062 10.3351929723 11.0845997267 11.7045426815 12.1686920282 13.1664192312 16.1567047632 17.2990702778 16.0391840997 18.0631998723 16.2760779333 18.5208467774 18.5275347423 16.5170605328 14.5484041385 14.5222993672 14.7752435968 14.9760736362 15.1860984162 15.4348855938 15.7055771375 15.9969874555 16.292334559 16.5685601498 16.8174784194 17.0238561572 17.167688538 17.2505057802 17.3002297453 17.3433148802 17.3827145831 17.3976811144 17.3460344149 17.167696517 16.8207346814 16.3300044086 15.7593828244 15.0677437811 13.9161021614 12.0685139399 10.543447718 10.5802920673 12.5342152631 14.9261517255 16.6588681443 17.8332534055 18.3900834662 18.1659282236 17.4407872176 19.0614106295 32.3996039283 37.6612834803 36.4371803055 34.0233323522 33.0116379092 33.2078670502 33.6971720411 33.777435744 33.9048455928 34.320104944 34.8708008864 35.5198684939 9.29896693303 8.90979923513 13.7404246571 13.029847007 10.8092855819 9.40629709974 8.6419017332 10.1167119812 9.59829311407 14.4295509209 15.0673704647 14.1071872747 12.9505646527 9.89120795617 9.54749402615 11.6897604809 10.7361865162 9.90621707828 9.90475665525 10.3738725591 11.276263366 12.1464273217 14.0487427287 13.3117918355 15.5466815894 17.6880363989 15.7112797177 18.379490613 18.8993343854 17.1666388034 17.1229090303 15.1535197611 14.8724703171 14.8454224299 14.9969159286 15.1911438209 15.3930525225 15.6285165078 15.8820014522 16.1866452804 16.5360584444 16.8597604234 17.1202494841 17.3253733213 17.474665867 17.5764209415 17.6632496255 17.7612692369 17.8693185624 17.9625789709 17.9943604696 17.9071614369 17.673624042 17.3197807088 16.8454897359 15.9350695061 13.9395365444 11.5680012661 10.6248742823 12.0197029426 15.4106279893 18.2584310853 20.0862705233 21.4675381999 22.0307951922 21.6188510296 20.5863831764 19.1664514192 28.6910885391 38.8429181481 41.6593510806 38.8864849202 37.7969906403 37.7655521884 37.9476547618 37.9303734027 38.6349859175 39.355195607 39.2891188241 39.5079211647 9.7037084138 9.45858960084 13.3412222793 13.3368097617 13.2786155706 10.3354037684 9.53462110725 13.1979489573 9.70154112928 15.2687114414 15.4504189658 14.3277968891 12.8418634015 10.322744338 12.6997936084 12.7881557364 10.7872512725 10.0494956931 10.1429117059 10.5299970683 11.2413215471 12.0932129109 15.5701130573 16.5600799354 14.807407073 17.7880053255 18.5624902734 17.8043766832 18.8715334423 18.8759609982 17.6608459467 15.1041349544 15.059855443 15.164953088 15.2676411743 15.4253166469 15.600931396 15.851060972 16.1212401404 16.4014150979 16.7637833562 17.1474100004 17.4519578879 17.6647162062 17.8186946322 17.9439290513 18.0725908775 18.2245830414 18.395148212 18.557992611 18.6691919833 18.6903109662 18.6142585735 18.418930154 17.9120439889 16.2711816356 13.1521979494 10.8620719741 11.3436803761 15.0201771554 19.6728488059 22.5832748377 24.3599621064 26.2876887542 26.3974187794 25.1654225963 23.5039218767 21.5588251916 25.2568752056 36.2848519244 43.4287031984 44.5774816295 42.4598748355 42.3120801771 42.2681120461 42.7113631699 43.7812921943 44.4914380838 44.5590375225 44.8316047194 10.1658920239 10.0248696442 9.73451937438 13.5543542812 13.6638178047 10.8823178188 10.3564628463 14.0336734355 10.1356524357 16.1038948461 15.7766400753 14.5566740866 12.8604591882 10.4966412452 13.8973487339 13.1467629997 11.0310053887 10.3507643975 10.4539321135 10.8621953038 11.3319211449 12.0058066248 16.1791602615 17.566890745 15.0618571325 17.8994399373 19.0912901504 16.8526570083 18.4870162896 18.1858281025 15.6407221807 15.4599225007 15.4902330504 15.5177137252 15.5572852086 15.7192636396 15.8770789736 16.0533678091 16.3495342892 16.6756945147 17.0306256451 17.4336807913 17.7883035662 18.034750492 18.2060522883 18.359470482 18.5308213955 18.7276870824 18.9471237493 19.1611222886 19.3239814678 19.469677053 19.6049160352 19.5795133921 18.7087055967 15.4424201993 11.5257082101 10.9137543562 14.6407374508 20.9618153389 26.0193749497 27.1171854682 25.1809958151 22.9207826968 19.6607002748 17.6619115835 17.3069060525 16.9430649118 15.5545725784 16.9652558507 42.3682704564 46.491261527 47.0319602748 44.3121412714 44.0590762968 47.0092352738 48.8787680448 49.8299645013 51.0701216047 51.8663986757 10.797077686 10.8579571104 14.1341028678 14.0532184245 13.9398518195 11.3220639449 11.3002987037 14.6814554304 10.9941322196 16.7946904381 16.0658169281 14.7920491191 12.9395596263 10.7783857189 14.0782245753 13.1109116115 11.2811487413 10.6949102953 10.7705238762 11.1298436536 11.5703403435 12.0931491602 15.3529614027 18.3480312033 18.436985731 16.993516862 19.2757958121 19.8807049471 16.5353118993 15.743531077 15.4950264554 15.6400626017 15.7609966184 15.8285682703 15.9150126246 16.0129189067 16.1619413818 16.3577104489 16.5817918664 16.9357963416 17.3386880105 17.7551989565 18.1349573856 18.4208515409 18.634619879 18.8256208452 19.035700842 19.2828664324 19.5342556117 19.7292114754 19.8908806213 20.1678197393 20.5482537331 20.5998342598 18.5633567292 13.1831123072 11.3691234669 14.4936061744 20.0217894459 24.7191328757 24.1499438609 12.5680529298 0.0637298419418 1.10315150162e-06 8.62888377545e-07 2.094894556e-06 1.41212455968e-05 6.61431259765e-05 0.000244333037522 0.00155269827026 0.00121572808468 0.105471021137 32.3253671511 50.5369579457 48.4765516599 48.698641548 52.7418275676 56.3127973047 58.9066232489 59.5543143365 11.362674001 11.5433457039 15.6622641196 14.5102681871 13.7539415831 11.7892336624 12.242983152 15.1563855814 15.1508599916 17.6148318416 16.3835637129 15.094393094 13.0618553778 11.2118461743 14.2633953839 13.0313518641 11.5470283974 11.0528842445 11.0711882467 11.3613180091 11.7898895374 12.3922840012 14.6217325858 18.5848193732 19.8397010944 16.3034879029 18.8340003529 19.7786135999 19.0660392948 16.40537706 15.6316580355 15.8422956276 16.0780384735 16.2315091499 16.2045523836 16.322977171 16.4394716989 16.6485533576 16.8816256232 17.212210776 17.6545204849 18.1138328546 18.5006554715 18.8002426522 19.0756493695 19.3859793039 19.6933154634 19.9625114658 20.1086662564 20.2099874632 20.3821004535 20.698523805 21.3336376857 21.2438541305 15.936303731 10.9909791614 11.2905002106 11.2490710113 1.43616401059 0.02090791539 1.69872394281e-05 2.83448368993e-08 1.99804056141e-09 0 0 0 0 0 0 0 0 2.77893368488e-13 9.37276801375e-11 1.40196631562e-08 8.13375959594e-06 0.0113608659936 51.0158348096 62.4376151034 56.4647214094 64.1345405002 11.808040329 12.0142206534 17.9186981379 14.8103608991 13.2391050201 12.2133354431 12.8908867391 14.9486329899 16.7115201655 18.5632782854 16.8392760853 15.5075468403 13.4068144705 11.9681573439 14.6595463887 13.1207178847 11.9109468165 11.4724568329 11.4115863044 11.6262258428 11.9917090052 12.5606236137 14.2954465355 18.4377488129 20.8030612367 19.8101817283 18.1468710763 19.090561756 18.5190022423 15.8836411928 16.0908651905 16.3576762434 16.6788857004 16.6879251501 16.6735232212 16.639603991 16.7919757453 16.9434803039 17.198525212 17.5304628945 17.9618345367 18.4670543965 18.9587753063 19.2861156341 19.6139639093 20.046981914 20.4797829917 20.7514424605 20.8089317813 20.846286922 20.9605343906 21.135242121 21.2057907786 20.0842060759 12.275121426 5.55793123994 0.00582294624679 0.000235455897195 3.21037027822e-06 8.80370778889e-09 0 0 0 0 0 0 0 0 0 0 0 0 0 3.58065573555e-12 3.55816018173e-11 7.80025806076e-10 3.78223727147e-08 0.000210036314523 77.7325406297 0.325091581322 12.141748317 12.3341679641 20.0626796167 15.0007331848 13.0489023352 12.6203713698 13.675993782 13.8802554135 17.6612298249 19.2277376771 17.2890912938 15.9363965708 13.9707548735 14.0648184001 15.2103858928 13.4654507463 12.4857443754 12.1121528823 11.8608368902 11.9817781313 12.2491872848 12.750560549 14.2007583667 18.3000297538 21.1757179294 21.4787291052 17.2411495728 17.4515235363 16.4318057596 15.9769264212 16.3041158762 16.8781951231 17.1620935362 17.151531557 17.1305784757 17.2771409887 17.1817912791 17.3066946811 17.5276168102 17.8284914839 18.3520845516 18.9127506735 19.4253134986 19.7063622519 20.110919312 21.8047455359 24.1811060588 24.8879037024 23.2346445672 22.8960745455 22.9250985663 22.9852957988 22.2188112086 19.6083362594 16.0568482281 6.35268383309e-10 6.41946571181e-07 1.04747989481e-08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5.53200085253e-11 3.74617960548e-10 6.90826578471e-08 58.7654260139 12.46012081 12.6225853675 19.7580081855 14.0290870544 13.0220796635 12.9594151708 14.5667535535 13.5785834653 18.4396551278 19.8660820893 17.7328820923 16.3458506022 14.3837177763 16.522299624 16.0173388552 14.0204930907 13.1611329454 13.2192039757 12.5384342596 12.5111590486 12.6114275122 12.9593316189 14.268163793 18.1454868253 21.0146574096 22.5962319745 20.7218829525 19.321137221 18.0790136944 16.3040584786 16.6245227991 17.6725911071 17.469965785 17.5744094661 18.046622382 17.7678127854 17.6813740724 17.7859166603 18.0001048006 18.2780572801 18.6502517016 19.2680394647 19.9812173809 21.0716501478 22.6658453729 24.9615025682 26.6933637198 26.5796550437 26.6335132645 27.7228208144 29.3785799291 32.0980472403 31.2694284448 25.9034099149 0.0512616586639 0.000696231578847 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.7021877443e-10 12.3894351503 12.8786405571 13.0274838542 19.2264636554 13.3557321078 13.1791600599 13.219168681 15.302236899 13.8695364464 19.064180684 20.4900039324 18.1841754542 16.7782444287 14.7405405128 17.137498813 16.7516707664 14.6506728233 13.8174031274 14.0316756154 13.3692329987 13.271748627 13.20129251 13.1770912047 14.5094872939 18.1102144962 20.7070693194 22.948409776 21.9682174049 19.5661666561 16.6516192498 16.8410837661 17.2638991266 18.261813193 18.640130956 18.8139770255 18.8518540317 18.3269551633 18.2360819249 18.3681437006 18.5670828659 18.8582230599 19.2040067345 19.8959247774 21.1284573075 23.3125557241 24.7656710975 25.0449594849 25.9968668514 26.8826744774 30.182868129 34.0243642986 39.6400652941 43.8678723923 37.7601668525 0.0891480693682 0.000182847281168 4.42708440332e-06 1.48602196163e-08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.86058375377e-11 3.78481358601e-11 13.5613877858 13.714287535 18.6389034308 13.4158489076 13.6615365533 13.5905078855 15.0182272978 14.5400609689 19.4436600444 21.0693904795 18.6760209508 17.2708676992 15.245890476 17.7165391534 17.4331842733 15.4151199481 14.5612344273 14.8376087903 14.1628912348 14.1858153089 14.1176639191 13.5761617085 14.9662968646 18.2403424951 20.5556857845 23.0427407563 22.426541205 19.948427114 16.9055111705 16.9820020535 18.0489883345 18.0739431242 18.236884103 18.732008597 19.8011022448 19.3112330215 19.1267058155 19.0043247069 19.1417506729 19.5338124009 20.0056371805 20.7779554111 23.3426168993 25.7876440904 25.8369772728 26.0029921947 27.5939353808 32.4017748311 38.6427377927 43.5700177069 47.5595568201 18.3995750786 0.000764665608638 2.50708757714e-07 1.5730630031e-09 3.18847122583e-09 4.89630201905e-10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.11434140528e-12 9.60060304643e-12 14.6405556762 14.7301821083 18.6520712407 14.2364488391 14.8190501667 14.3475694933 15.0388335736 15.9583092962 19.2228552487 21.4396397082 19.242074473 17.8476449468 15.8767261157 18.3784753562 18.1477870938 16.3709848155 15.5304597586 15.8280539798 14.9572958138 15.2144239281 15.4082528726 14.2611805457 15.4477815891 18.5265282549 20.5815087828 22.8264195364 22.6083656913 20.3422000895 19.4628981985 17.8904653095 18.5173253663 19.2707927163 20.2674438602 19.2072918823 19.6183657559 20.4103876296 20.0396391153 20.1104524622 20.0511957039 20.2461276333 20.8353957413 23.1537545413 26.8750314909 27.7639712192 27.2430404298 28.7902983609 34.8696973622 43.3014052315 48.9867375755 45.987635405 0.279952684317 2.61374003048e-06 1.78840709127e-08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16.2097034761 15.9849995786 19.1890507954 16.1954198127 16.8813011212 15.5333316135 15.8176064896 18.0794154039 19.1957987076 21.9266418379 19.9476756975 18.523353591 16.6146741998 19.0750478986 18.8564458282 17.4441277705 17.0821879599 17.1718156208 15.836616531 16.3725084187 17.0508775307 15.3389060655 15.7475659317 18.8733678885 20.783026392 22.5888890433 22.7650409161 20.3038150746 20.6445886032 19.5827593232 19.7280792461 18.4883964664 19.3300669174 20.7316079751 20.5142142295 20.8389443323 20.9684048913 20.9880907232 21.2016320076 21.357205689 22.8720925463 27.3177269709 30.0123081522 30.0553855333 30.7317861323 35.5801649998 44.6478948866 50.522321469 36.576903028 0.00249834625562 4.36763657173e-06 1.9998850974e-08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 17.9072408339 17.1520587308 19.8222651309 18.9241644438 18.5736854499 16.9627186293 16.6991753852 19.1634711433 17.8869557536 22.2637242038 20.7789380406 19.2910726968 17.4529211766 19.788779668 19.5122050885 18.3215294563 19.4267760714 18.8170242942 16.8504428271 17.7149630582 18.4230780315 16.7725679418 15.6338315026 18.7689584765 20.8968943393 22.3787790997 22.7745019322 20.2937189983 20.8899720171 20.8872892118 20.9296669585 19.1624425791 19.7135468387 20.2340140754 21.4317100446 22.0499068112 22.1639785785 22.0841718547 22.1867451475 23.1481639293 27.2682095102 31.6562158854 33.3297335177 33.9744028115 36.7287044681 43.168830258 45.9787639021 26.7818804539 0.00672701371078 9.73877161794e-06 3.41070569788e-08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18.6598452279 17.9697677728 20.1902223278 19.8814122025 19.5509183735 18.3498220309 17.8218257736 20.5206449854 18.8299988102 22.7341588962 21.6162884236 20.1114733861 18.3840625338 20.5398522065 20.1960286543 19.0628560982 20.3243921144 19.831660819 17.8615073064 19.0804522579 19.0514820543 17.4163266668 16.7555999006 16.9260824131 20.3617867586 21.8203709663 22.5049619821 20.222526693 20.8749194755 21.3224249409 21.8503055992 21.2736090104 19.580675888 20.0972154408 21.5435820062 22.8536825658 23.474975605 23.7262380617 23.8200801868 27.1626389623 32.3577356324 35.7517420678 36.9374706514 38.2854355077 41.8517837758 40.5196867317 24.4202107182 0.0355378351478 3.20124923149e-05 9.11732354299e-08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18.6228417288 18.5173191376 20.4294761372 20.0011159611 20.1852983471 19.4444796644 18.816554211 21.850254295 20.5506347616 23.3672281682 22.5119884782 20.9684634833 19.4002538849 21.3422148524 20.9586031029 19.9638328878 21.0482535238 20.7212984677 18.9662390455 20.0434635958 18.3087166166 18.0628307694 17.7428780098 18.0991141946 19.0140821454 19.8487169433 21.6014321624 20.0760705043 20.1956908107 21.2519394703 22.2171408982 22.611398947 21.1954010182 20.794809637 21.4381870655 22.6687111771 24.1548295559 25.4245496847 26.9271631238 32.0802926899 36.8220209942 39.2675714736 39.6858227296 40.0231394648 35.7056538956 27.1107077767 0.241033299589 0.000111197175568 2.49092075297e-07 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18.822403279 18.920999418 20.6764628123 18.7592206951 20.4298434915 20.0298758457 19.4902495637 22.3728447623 21.3235460394 24.0509868195 23.4696596495 21.8406948085 20.5144919395 22.1837181933 21.7717324721 21.0094068974 21.8250783774 21.7241099001 20.1903552382 21.3925126846 19.6228260239 19.8219658071 18.9642335955 19.3312950626 21.0218631462 21.606352481 21.2025659633 19.8846994272 19.5410266001 21.1727357857 22.1937940288 22.7721699461 22.8021632245 21.8393309288 23.132686858 23.3886993521 24.7279242711 27.0870683407 30.9182805826 36.6986231787 40.5626884793 41.7517212987 39.5725408476 32.8505851127 30.4597118948 9.12120156914 0.000933084647706 2.12421285893e-06 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 19.526465866 19.6000355289 20.9097612376 19.1471038504 20.6313461043 20.3241389884 19.9736597815 22.4769458473 21.8860519479 24.5489604238 24.4381869205 22.6774637249 21.723034161 23.0251826065 22.5632974652 22.0340573551 22.5632604831 22.8241319416 21.467054652 22.7282892541 21.4052502733 22.0141521371 21.6559316965 20.0973951907 21.5555548485 22.6255870856 22.6909420788 19.7578416562 18.779899117 21.0637339582 22.3201630023 22.108946625 22.2627550863 22.0874651252 23.1612109861 23.8181029259 25.4626119637 28.8695877926 34.9621031729 41.0739225555 43.7950099994 42.5412147406 33.8642228765 31.7153879366 27.4390199181 0.0106092401263 1.48023502882e-05 6.0023859515e-08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 20.423566606 21.7030327546 21.2773473455 20.1648215166 21.1402027899 20.679725544 20.4456779954 22.5641384061 22.4184039264 24.6764690507 25.4073428378 23.448867176 22.8019221863 23.6863210921 23.3357227337 22.7867556514 22.6548903083 23.8403209948 22.8541606462 23.8860773831 23.4775863987 23.254432264 22.9832172002 22.512597339 21.5499744922 22.4278989903 23.642644534 18.9338586321 18.2609869992 20.2100379141 22.3238959665 22.8107873896 23.3337069447 22.0650214672 22.8983470725 24.0298365177 25.8312987803 30.521794809 38.8094078417 45.0953641749 46.4482036987 38.9653244254 33.4879995489 32.9225589263 0.800238198167 0.000100331673001 2.56070561934e-07 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 21.0972476199 22.4077345873 21.9630310772 21.0809359717 21.8387778086 21.2442407339 20.9945998439 22.7486895272 22.9527645009 24.5234623405 26.2879177585 24.231049007 23.4273515659 24.2349577086 24.2239742692 23.4775785877 22.7303599359 24.5538058674 24.3448045413 24.8909845687 24.7761635294 24.8334192407 23.1779529751 23.1347450399 22.5750438961 24.191358452 24.988910385 21.4030635818 17.8371623698 19.096915243 21.6719976471 23.1051394994 23.3596593508 22.6861913695 22.4510348564 24.0062221252 25.7469303067 31.8143537372 42.3380827805 49.0838471018 46.1288574066 34.2328855811 35.0376249379 30.757971574 0.00343996492443 2.95832069068e-06 9.94163757703e-09 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 21.6122778145 22.7827806714 22.5803760186 21.7185832688 22.5405918894 21.975347176 21.6327968561 23.1168276427 23.5547442572 23.9796733349 26.8894083923 25.1061544544 23.8806752739 24.1099247581 25.1610152602 24.3423571855 23.2667096315 25.1502959622 25.1106939772 25.7047984027 25.7201036025 26.0170228145 26.0046817976 25.8876550552 25.3827679602 24.8467428931 26.210635941 23.4167909677 17.9022762629 18.2273310574 19.5761477643 21.8804349513 23.3100408644 24.4041934284 23.1905974951 23.2609597805 25.00572427 32.0191993585 45.5263884769 51.8889110806 43.883794551 36.4501649739 35.8498447863 0.767847433315 4.23865488147e-05 1.15893058363e-07 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 22.1230743229 23.1345632997 23.1050910199 22.1812892458 23.1673501685 22.8280532139 22.2880313938 23.6184713789 24.3762608786 23.2898263755 27.2286739265 26.0879761251 24.5619642755 23.5409730796 25.9668692217 25.2840723202 24.1877374075 25.9309826666 25.6664203899 26.0340835293 26.7567163699 25.6639490295 27.3042337557 27.6839392401 27.4956196148 27.455916773 27.8000520827 26.5328306008 20.4619203178 17.8794964897 18.6233640744 19.6719488671 21.6763925064 22.7391400853 24.7105521115 23.7613842455 24.3076293139 29.1150545357 49.9157881344 53.4150003817 38.6747392524 38.8040536259 34.5836204271 0.00408971592773 1.43809919548e-06 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 22.6204290512 23.4667033505 23.140276591 22.5386733425 23.6938526925 23.6285813719 22.8536726509 23.6068607708 25.4523464688 24.3313479909 27.4294247113 27.1274278563 25.5204673787 24.2895927117 26.726935024 26.2134495991 25.4454123907 26.9573938412 26.5620273434 25.784328596 27.8696434112 27.133671648 28.3259077833 28.6539654665 28.8976119541 29.3543196242 29.8640116678 29.723129317 26.7390986781 19.0134287543 18.5076545651 19.2314804991 21.5989728581 21.7719983647 23.1400418753 24.6311261646 25.2434556406 25.4117807745 47.6844015324 51.1471126613 39.7467337759 37.2437054589 10.3719010412 7.19461667731e-05 1.18393813544e-07 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 23.0641153078 23.7484395467 23.0667903376 23.0740356428 24.2241373347 24.1336764613 23.3979239007 23.463440199 25.9674460647 25.4370491132 27.2432506471 28.1723267621 26.535016885 25.6597771771 27.4891665812 27.0967235773 26.8678565253 27.8908723634 27.8208938021 27.0080706158 28.8424531269 28.7223813551 29.4336545461 29.2963511978 30.4480817188 30.7648356469 31.7829389908 32.6644318513 32.9875111685 27.6963895364 19.9630459235 20.848896855 20.1448307198 22.5623257455 23.6557000285 24.4029458901 25.2496223241 25.7095645051 24.1030574385 44.0834087307 42.0131818539 33.9540153315 0.0153771984581 2.94441670132e-06 3.60647465775e-09 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 23.5261689896 23.6694984332 23.8646296265 24.4259782163 24.8657188507 24.6655831479 24.0697851679 23.9312390888 25.9193782253 26.1840137427 26.9462022289 29.0646478066 27.4860735397 26.8040639758 28.0122437259 28.0009992665 27.5150964356 28.4112415757 29.0516907434 28.6540956647 29.7762532038 29.8487578056 30.3190661706 31.087737349 31.7235476996 31.1601961287 32.90083989 34.1091558632 35.4232618028 36.5110023513 30.5001081107 22.0997271877 21.6938087855 21.4663016397 21.9237566695 22.5082465719 22.8159953329 22.7517442762 21.0436851402 24.5433364849 38.6358188117 30.3442830367 0.00027489513336 2.2004775364e-07 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 24.013340076 24.0829724687 25.7078729467 25.5957707169 25.4186997975 25.1784605754 24.8427232232 24.6400783225 26.137332642 27.0221811949 26.2879310992 29.4172871271 28.4876301782 27.3145615171 27.7384397554 28.9835665443 28.0996863687 27.7076193295 29.9050519384 29.5208650043 30.3959022471 31.1484001246 30.1519673728 32.4693860121 32.9263598589 33.6569020465 34.3853577121 35.2685392561 36.7366196699 38.3139143134 39.3111666177 34.2733467879 27.8208481102 22.9830054467 21.5137181289 21.1730490233 22.184794627 22.5911685497 22.7566950488 27.3860743577 36.5352405318 0.481544432761 1.07053531541e-05 2.78190224649e-08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8.43901491558e-13 24.4014427407 24.6000060993 24.8355529506 25.7514080449 25.6895348322 25.5925139398 25.5874037356 25.2322055762 26.4588367053 27.7488701818 26.887668933 29.1466835599 29.6998567773 28.0858760888 27.2119426699 29.725874496 29.0846323433 28.4306570795 30.4793899693 30.3401773809 29.9305200515 32.4959296733 31.8962658882 33.1967316376 33.5802068902 35.1990346361 35.6678235066 36.4983178778 37.8787106956 39.3485842517 40.4602799645 42.4523522473 40.1910831141 36.3841486723 34.0568345341 33.4353323661 33.3480064418 33.1149359274 34.5591716498 41.9849994427 37.0160753895 0.00282068138602 8.962919456e-07 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.11434140528e-12 24.72580092 24.9705437813 24.8279188662 25.8162402741 26.1444767445 26.043285035 26.0994353379 25.6349600331 26.2170866711 28.0618016372 27.6549527537 28.4887887347 30.8272001663 29.2636740763 28.4377832501 30.1351826182 30.2375724601 29.621349111 30.8716392647 31.6038190276 31.226768003 33.1463210958 33.234994192 33.9080837159 35.1314612642 35.9392091149 36.9339820988 38.0608904594 39.0084689075 40.6694435505 41.3286411387 43.7953243454 45.0629607292 46.8597315138 45.5700303009 45.2458460056 44.790251603 46.4150442612 49.6390086895 48.2396204179 41.7852789207 7.71683522729e-05 1.21116201656e-07 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.11434140528e-12 2.11434140528e-12 25.1035481562 25.3767788228 25.8752153702 26.8398165443 26.9328846277 26.5634851622 26.4494040454 25.9870373138 26.1248601186 27.9007356372 28.4838043521 27.4785370748 30.6442907883 30.6157421383 29.2648887825 29.6252761777 31.3329191872 30.4762146062 30.2622822767 32.4369669565 32.2511868277 33.57373601 34.5999390837 33.7916698978 36.0446274785 35.9688409897 38.4147785602 38.8469124061 39.624952385 41.6057488679 42.918732681 44.2163073344 45.4252699097 47.0992016574 47.9537375877 48.0025258151 48.7693987995 50.7864063708 52.3620334128 48.15117612 42.1475679378 2.54770433807e-06 1.68573827242e-08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.03193045241e-12 2.11434140528e-12 2.11434140528e-12 25.4883737382 25.7169976246 26.8933505912 28.0178611067 27.3715929629 26.9575206925 26.7633449737 26.3916464554 26.3276555208 27.786940961 29.0171946382 28.5008835452 29.6244787343 32.0495742512 30.359860698 29.6121723484 31.9454047458 31.6685603574 31.1017101526 32.9660104357 33.3382724691 33.2797749581 35.6091895883 35.3569174969 36.7064223408 37.7177967157 38.7536298156 39.3527966202 40.6339994411 41.67580078 43.0122880637 44.1252092748 45.2475899404 46.7964748971 48.0620753547 48.9659556644 49.6242945456 50.4235167836 50.6210551691 43.8626948515 0.870464231591 4.34863899112e-07 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.28469118012e-12 2.11434140528e-12 3.3898605336e-11 3.57693188672e-11 25.8610533532 25.9977694137 26.732862159 27.4966729429 27.4815276316 27.1917671715 27.0121635186 26.8331958733 26.5232244379 27.2756063736 28.8882684502 29.3934354283 28.4773526461 31.5773623269 31.8504719174 30.4451123126 31.1621220554 32.7876462958 32.0408588377 32.3717574154 34.4274079747 34.1304128683 35.9166630806 36.8445933155 36.0195162352 38.3072352972 39.1846508256 40.4907690816 40.9728640414 41.7019948966 43.6454494951 44.5103238329 45.6527005734 46.9565742056 47.5699180759 49.1109481904 49.8346887811 50.7505310584 51.0070732128 45.1500936443 0.000226351359396 1.3362995195e-07 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.63128183737e-11 8.88175947906e-11 1.32375803027e-10 26.2666449583 26.3344680141 26.8968257994 25.897604434 27.1889461633 27.3162183162 27.1782728423 27.1333398461 26.5969793224 26.8929465218 28.5001531269 29.8967396976 29.6876527838 30.3437952094 32.9172563703 31.8533907042 31.1285931561 33.4472017393 33.5902203029 32.7784861882 35.0720545498 35.5207461534 35.3267454686 37.1590677197 37.4737049676 38.4971286065 40.0472111843 40.7501685723 41.7961037083 42.8283473176 43.9431105629 44.8019841166 46.1285875535 47.4092107773 48.4762508184 49.1783216545 50.7687713443 52.4763127184 52.891025937 40.903916892 3.01637659572e-06 3.9633833398e-08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.19797247449e-11 4.29169093984e-11 6.03370445688e-10 4.09146882719e-06 26.5222881813 26.5990097249 27.6304740132 26.6722380483 27.1028075431 27.3536100553 27.2825182782 27.2220458957 26.7685154936 26.7544170673 27.7215725968 29.4927625582 30.7071670668 30.4167171276 31.9756609266 33.6526322975 32.2343165205 31.8044521549 34.5670104204 33.7063072088 33.6144315973 36.1227277016 36.0140064483 37.3483876798 38.2822946868 38.5258866265 40.1354782013 41.0695924627 42.3691233447 42.8135618354 44.0344100479 45.8329593323 47.3220194843 48.3354182335 49.4762460212 51.037565344 52.0067774043 52.1387633566 54.1851053245 33.9085710011 4.47713697818e-08 1.05663202431e-09 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7.55916210838e-12 2.5127543993e-11 2.41079776178e-09 6.98819308115e-07 74.8877510524 26.4754384613 26.5500347601 27.5094228653 27.7031371394 26.6190579072 27.311907031 27.3899945955 27.379273045 27.2342787138 26.8309721447 27.1491974157 28.7769737707 30.4502222297 31.2576379321 30.8189685674 33.6262999857 34.1734735422 32.6578839588 34.4864204347 35.1141656664 34.3535957835 36.2467988258 37.0628721166 37.6795182077 38.7501037872 39.8018892781 40.3820888794 42.16731979 42.45589408 42.7939395302 45.2362299582 46.7005125873 48.0338972511 48.8342840222 50.7532259716 51.8699680539 53.1267721178 53.547037068 58.1471819167 32.5528995067 8.2577182033e-08 7.25999890781e-11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.4293333283e-11 3.00832985828e-09 6.91808612978e-07 0.0259796674319 73.30853015 26.4830254199 26.537649295 26.6095838317 28.0968650796 26.8093974566 27.3610768048 27.6120634006 27.6447299765 27.7134694923 27.1660715649 27.2430144372 27.6577812331 29.7244866791 31.4762715134 31.4932016001 31.6133009132 34.2864282646 34.120919322 33.6262097656 35.5262615284 35.8088015065 35.9842646856 37.5384753331 38.3787598008 39.2223444107 40.1000784102 41.2482579533 42.1672132839 42.8848665387 44.2322160194 45.5528113946 46.8446344469 48.2998082021 50.0293513486 52.2759902454 54.7959135975 55.4437768972 58.8342452031 64.6732438656 34.9411929666 4.23756845151e-08 1.7659960109e-10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7.55916210838e-12 1.79326971466e-09 4.03870153003e-07 0.00597850790869 83.5442113225 81.7587690101 26.932125892 26.9943435508 27.0075150973 28.8459004765 29.1620868691 28.2824833895 28.1358119583 28.0546722707 28.0713511843 27.8135437032 27.5110350909 27.8733031918 28.8634993374 30.8118411152 32.31400614 31.9062222017 33.2124070886 34.8700219897 34.6456818829 34.4250305314 36.4090732774 37.0568877776 37.3213337697 38.7894768576 39.7001176809 40.3504354104 41.4415801436 42.3719636641 44.2266289481 45.3835391702 47.3046471816 49.5363867476 50.718668205 52.3585436323 54.5398595262 55.7780909485 58.5180255201 65.2083537474 75.9357237221 66.7057369325 1.90450656105e-08 1.7659960109e-10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3.76733928276e-10 1.23402814217e-07 0.000590092842662 75.2021466248 77.4234122458 78.3559183002 27.5779862018 27.6193182848 28.0508067975 29.0844509442 30.01837595 29.5965231654 29.2960409447 28.808386087 28.577945546 28.5691686252 27.9660030806 28.1863533451 28.2728047988 29.7985920457 31.5834783032 32.8738537036 32.8295001145 34.6137820624 35.5125776005 35.4142953394 35.2184110453 37.3349350424 38.1657904434 38.8176419478 39.8463504178 41.2059471304 42.0170927723 44.1027855032 45.3004666835 47.6259226509 48.8282601444 50.3820440488 51.6998958273 53.3936855176 54.4007860959 56.0428034366 61.4690507263 67.193357988 80.5297981478 57.1677302884 9.185065456e-10 4.74115166155e-13 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.89373655897e-11 1.75605870914e-08 4.59503185975e-05 12.2483487274 71.2711425 70.7373030892 70.3097015631 27.9502432061 27.859981709 28.4520079971 28.5631266858 29.7648871519 30.9677883115 31.273494931 30.0223590393 29.2709748087 29.0194255043 28.7620220657 28.2089665321 28.6903123057 28.644705993 30.089533379 32.2480089959 33.4909479414 33.6237955997 35.3075502911 36.1891392127 36.3085486529 36.2470794759 38.3223581795 39.1838313123 40.0787525419 41.6350014624 43.2795753837 44.6304464635 46.3693356789 47.4831442739 48.4433204627 50.350975028 52.8916456396 54.1488915522 54.4266160918 57.8698798338 59.2336879039 60.9688627059 63.9203721563 1.28126157429e-06 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3.65651133446e-10 1.93018375003e-06 0.0889189678289 59.227924128 62.7991575826 60.6892153531 60.2055245483 28.1077435744 27.6857709139 27.8050788626 28.039516914 28.6297575482 30.4776624277 32.0861198039 30.8827291515 29.9361213317 29.4266161942 29.2709755619 28.6997119519 29.0026494862 29.0986713269 29.5912844712 30.6141507557 33.186647764 34.3391414847 34.4996409457 36.0198953196 36.8908969208 37.280718489 37.370308066 39.2698921443 40.710357449 41.9060910112 43.2150898775 44.5105822949 46.22953337 47.3953977731 50.4431787093 52.2184172313 53.5080674947 54.1167114444 55.8080835846 56.9181350651 57.1444778145 57.8362847057 53.3831467369 9.38316523503 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.68932641782e-08 0.000754747121829 50.8802574889 53.125901175 51.8139731996 49.9438867273 49.445006334 28.4002492947 27.4229641972 27.335253961 27.5424977677 27.9675938523 29.1604205459 30.9200207703 31.3517085839 30.3987682543 29.8069696893 29.5085930642 29.4291278461 28.7772442479 29.3911247302 29.3867671753 30.8179287804 31.9769853314 34.0725104657 35.2233774493 35.5490971038 36.6845942003 37.7582274773 38.5414206337 39.0914956464 40.9967788561 42.6011454459 43.2569429831 45.4200911638 46.8841505659 49.9956730496 51.0626761352 52.1267935644 53.2015684012 54.6654148314 56.7099895776 59.0198944799 61.1049331244 61.8324287485 58.5136691469 26.3227589093 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.02376845321e-11 2.94952259851e-06 2.93322258716 48.5776338504 45.1580627587 42.5871810428 38.984270441 39.5028582228 28.7855286388 27.280642671 27.0573976368 27.0946881598 27.4151466517 28.1462549662 29.7022678408 31.4375084569 30.8895692036 30.1755263607 29.7582637989 29.5951719379 29.4889187715 29.0536741747 30.0094246495 29.9264252632 31.5705611376 32.5846743834 34.6332039705 35.9042203456 36.8801814482 36.9512203753 38.9630655373 40.033784022 41.314552586 42.9226924197 44.5867406596 46.277069619 49.2218408838 50.1562043461 50.6260859628 53.1894682129 55.1764888298 57.2307123722 59.362348119 60.5446310582 60.2266039258 59.7336372525 50.2744199475 6.81832994424 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.44810840089e-10 0.000656618679735 48.1719746248 45.9040200084 36.8208747764 33.8473136021 30.702615707 30.1625582479 28.4396829601 27.2540353116 26.8844037546 26.8791031063 27.0054358639 27.490805578 28.0915267817 30.3532740795 31.3588502127 30.6439569817 30.0663698665 29.7635554559 29.7183623485 29.5914646005 30.1475717939 30.4070412987 30.3705819335 32.3305676771 33.4243726801 34.5057509092 36.9605886219 37.8283540553 38.6695291244 40.3443711394 41.8495696252 43.2904689831 45.3180106117 47.7126674788 48.8731009902 49.3030395633 52.4869746072 54.4905895433 56.535643693 58.6017284871 60.2186522024 61.1530894199 59.4559702827 57.8965828503 48.8830242911 39.4429767078 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.88899781393e-07 28.9487750316 50.511246687 42.1102666368 32.7058207647 26.0514710644 24.0011307994 24.831861044 27.7689530525 27.3003217271 26.8469213727 26.8130074707 26.8575127119 27.0395755995 27.8377866441 28.6824647717 30.7347568189 31.0828323374 30.4573223171 30.0113478695 29.8197580839 29.8981912847 29.6651401361 30.479175408 30.7413807386 31.8824156859 33.052979827 34.4519551964 35.8968157633 38.0148022257 39.1184093163 40.5380832338 41.8550193834 44.2058629111 45.8576675103 47.612689531 48.3635203306 51.4614468481 53.5265823498 56.0616712551 58.4280134955 60.6094144695 62.4057679821 61.591381549 62.3398818261 61.3563366388 59.5977354816 63.9269291212 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5.48675738627e-12 0.000215364299242 49.9510237745 49.2495382432 39.637112119 30.7619171255 23.3235578849 19.2681398119 20.3134379718 27.4492485629 27.1855904695 26.8843937526 26.7215591768 26.7238700688 26.7584954739 27.0714035605 28.1814985435 28.9856140271 30.8997971124 31.0401670583 30.440296281 30.0645625227 29.9403131725 29.9594986357 29.8739524367 31.0447366104 31.3698864187 32.6992157796 33.4845514338 35.8538236939 37.8841942943 39.2836726795 40.4667705672 42.0939229289 44.1412835656 46.7916035061 47.7844197321 50.6063648784 52.6005781544 55.410152353 57.3741805519 59.4534887043 61.3214054686 62.2772285381 62.4164721544 64.0565929613 68.5877841899 62.6871849009 75.0208111706 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.71122926119e-10 31.559214212 53.2670055024 45.4832882522 37.0650032285 29.2891056671 22.5804156396 18.5422276132 20.6237179973 27.6065600786 26.972045475 26.8301791394 26.5167144986 26.3950928218 26.3339380763 26.3666423834 26.9772221357 28.1826190768 29.2103831777 31.2492221859 31.1432490933 30.5914632852 30.2739528541 30.1967989065 30.3338349483 30.3702054252 31.5736320382 32.0840320804 33.8663638309 35.3091406605 37.6740528273 39.2608534414 40.5619096142 42.4053250482 44.9545950556 46.9282334501 49.7414208394 51.6701914397 54.2804128906 56.3022016415 58.8740260071 61.0425492625 62.9102376306 63.9222124892 65.613399475 67.6605836716 71.5434145038 56.9454557666 83.5026777167 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7.26653721462e-06 47.0011715534 50.1642689713 41.789596683 34.7642025324 28.2948247947 22.8539140878 19.284883848 16.9905847461 27.8499087038 26.7535220303 26.4319442138 26.0341225668 25.743371731 25.6297303374 25.6357925233 25.8496371919 27.1269361431 27.9286408535 29.4853293609 31.2118088941 31.3705439471 30.9552531451 30.64044569 30.6424188065 30.9228034312 31.1252414207 32.544238683 33.4730765247 35.5199325875 37.3607722827 39.2099024401 41.1822491521 42.9801582507 45.2838833139 48.324588701 50.5234677197 53.1628621382 55.2517738371 58.2428028995 60.1165252701 61.9486916465 64.0664489611 66.5107420773 69.1229527323 69.2746686314 70.9176502346 58.4637189526 95.9231810674 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.2088116134e-11 36.7933322954 51.3464777722 46.6033300468 39.1656752598 33.3256573173 28.2027342411 23.8207312413 20.9104803315 20.1209361368 26.9459490659 25.7535024389 25.1579245305 24.9139270841 24.6875245921 24.6151480094 24.70352307 24.9193874554 25.6562735045 27.088229063 27.8925513766 29.6367085413 31.0230507472 31.4950850478 31.3333445662 31.153200521 31.3383506038 31.7816960567 32.2626936279 33.9256411455 35.3577496976 37.6488153498 39.7581596229 41.7001883287 43.7254813928 46.3844991793 48.6115138938 51.8041152206 53.9149947067 56.7803637165 58.8385153474 61.5024575049 63.5202883295 66.7376117891 69.6035211053 70.0949203344 72.6322164812 76.5771866916 65.5564099972 99.9315090387 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 30.5449739387 49.7969774048 49.1592131375 43.9051812661 37.8801444598 32.9486243582 30.7631042795 28.654465715 25.2234162521 24.8200446599 25.0631278555 23.2756777203 23.2727717713 23.3594149313 23.3852659619 23.4769410645 23.6808610885 24.0041775897 24.4446402169 26.0862331906 27.3011488216 28.0850916584 28.0782799925 30.8887750464 31.5395237638 31.928467745 31.9552104391 32.2147179616 32.9009885281 33.762301186 35.6929947207 37.513553713 40.0219783423 42.2616999748 44.1837975556 46.7751074722 49.8847852989 52.3072303734 55.2041606026 57.4569474917 60.6991090696 62.8103581131 65.7210065539 70.4480281919 72.2054072889 74.9786078519 78.0470484623 80.6564732175 62.0716468779 99.9906070649 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8.26224971498e-11 46.5059186781 48.6822670051 46.8885120337 42.53810695 38.168223551 35.1151508173 34.7208240399 37.5660599248 32.0013623935 35.9237164818 23.7118534993 22.1657770387 22.0506617609 22.1288116059 22.3159072455 22.5292318737 22.8243767256 23.2016852954 23.6608677893 24.3145482805 26.142340413 27.8724913459 28.2257142605 28.7492717744 30.165059391 31.859683293 32.7174101226 32.7953280603 33.5805627157 34.4386095352 35.637660936 38.0363644642 40.6163998234 42.7715078764 44.9396876138 47.7058510387 50.0913274989 53.3891073996 55.60779026 58.5456908569 61.1702277529 64.9194929565 69.2758508938 72.3530702586 75.1122329274 78.4224913933 78.5696743252 80.0831531799 54.9986003544 99.9992657396 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 43.8621688405 46.8052897967 47.4140106634 45.8138429059 42.4591889308 39.4850356233 37.5498835894 36.6648949541 40.9897516401 38.0559823052 36.4808158406 23.1058368964 21.9976781476 21.5421187967 21.5811913266 21.8120395387 22.0320440469 22.2943828432 22.6422999237 23.0650056982 23.5467844964 24.4344867238 26.4648167568 28.8716457945 29.2947039738 29.7984535684 30.9163150185 32.4796080732 33.6071280939 34.8056783727 35.1537578332 36.5012999569 38.4466842513 41.0217758331 43.2747077206 45.2428916565 47.8907635287 51.0488239386 53.3734257044 56.3215223995 58.9398150869 63.8660942953 67.5607281445 71.7607559042 74.9623756878 78.1617138158 78.8914934799 80.7077801744 80.7088892139 50.6416470718 99.9999608711 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5.2163357388e-05 52.4044763275 49.2728403426 47.5054735096 45.821158038 43.209493851 41.0334203715 39.4881886715 38.4162719636 40.6837939225 39.674121223 36.8274536826 21.5853449308 21.6081236829 21.2377255201 21.5970894708 21.8841599734 22.0033836139 22.1210146947 22.3265499113 22.6612998398 23.0984879061 23.6741056862 24.7541715307 26.9677837378 29.9911252724 30.9253013464 31.1409455624 32.0698100518 33.3453407471 34.730572322 36.1910291404 37.8624742845 38.968807178 41.3587447535 43.6494652152 45.8130752693 48.5105075896 51.0184867992 54.2939609723 56.6066215626 61.8160462836 67.177917668 70.4338370455 73.7966838388 78.1432866327 79.9893704728 81.9750671156 83.5348393061 81.6615643626 45.3774223862 99.9999985444 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 47.7455369194 47.8070649046 49.2095665505 47.5625545261 46.3947621606 44.4503181217 42.799805858 41.5246163203 40.5958875434 42.4538518513 41.1169319226 38.5952643883 19.6606216455 20.5475183986 21.0444641234 21.9493710458 22.1559037055 22.1802086452 22.1432211709 22.1989415592 22.376743621 22.730708464 23.2146396403 23.8701255763 25.1969542048 27.4253390638 30.3514364497 31.5122266809 32.6631150601 33.2763864133 34.5301019857 35.9851580518 37.9713781852 39.7738218449 41.620995333 43.9425724345 46.1831976773 48.7967484787 52.0252459368 54.3580201492 59.6377396516 65.4609904508 68.2640720343 72.4084427063 76.324216541 79.2753296341 81.7352712716 85.2440300131 83.5225862307 82.5946601879 44.4346342697 99.9999999198 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 35.1649336833 58.7117156603 53.4991677301 50.6760792484 48.6927707976 47.466448647 45.9327235681 44.6275036841 43.5962374658 42.9211729352 44.0000111535 42.4169753225 41.6799581123 18.9843029107 19.6350513191 20.92649996 21.563035574 21.7290709949 21.8869225137 22.0784349661 22.1196654501 22.2022529324 22.419535396 22.8213259244 23.3702856639 24.119648864 25.8497619814 27.6929193247 30.9586246684 32.6727678351 33.6212021115 35.0010574772 36.2834020938 38.1164589525 39.8927157606 42.0133413218 44.2520441144 46.6643142513 49.9676456201 52.580906452 57.1717275534 62.3132236666 65.7492436516 69.5124501401 73.2690973518 77.8742124146 81.4534812875 85.3739971156 86.5507614524 85.8227836455 87.2031438914 45.4049560459 99.9999999892 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 62.999147247 58.3176665404 54.9499167269 51.6203116015 49.7341083295 48.2611525981 46.9547327139 45.8554375265 45.0749119792 44.6908938509 44.5722684068 43.2231459698 43.4849597951 18.683211389 18.9778663371 20.0160728596 20.7972330714 21.0449251959 21.2853335991 21.5534627847 21.8407981383 22.060058025 22.2168365219 22.5135226092 22.9958906838 23.6974588642 24.683121169 27.2114935095 30.2159732158 31.5429510908 33.6745992925 35.4696530199 36.5645032093 38.0910043696 40.0409139926 42.5245814808 44.6104874508 47.827225158 50.777729796 54.289349657 58.5243721503 62.7504275239 66.5295692723 69.825051883 75.5920542816 80.0532877017 85.6988987712 87.7524760055 87.2189250536 89.9587085818 90.4215907887 59.1190375752 99.9999999783 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 22.1872876657 52.5796857468 56.4058104237 54.0171496597 51.9022631174 50.2630213366 48.1561333896 46.7769382476 45.5739524803 44.7149086552 45.0593607273 44.3430455871 42.5757027333 43.8230317954 18.1471157907 18.2165513666 18.7230049707 20.0242213225 20.3665458332 20.651512582 20.9538524714 21.2929880599 21.6611851287 22.0578873719 22.3038892252 22.7228941809 23.374752144 24.3199541315 25.6644663891 28.0136496749 31.5057780488 33.4780854637 34.5345791343 36.9430242632 39.0367728732 40.5593505904 42.4202073536 45.6979178282 49.0666748809 51.3621473307 55.2120021767 59.8719770131 63.6858954529 66.652424065 72.3606592458 78.3327606851 83.2869749544 87.4356910839 87.35238253 90.371130856 93.6531208785 94.420358813 64.070351024 99.9999996782 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 69.6376216212 60.4220048857 56.9655806873 53.4404962025 52.066250909 49.6693043743 47.2621338773 45.5403577767 44.0200858178 42.7225873961 41.6750176704 41.3909946769 40.7773718841 43.3075869587 17.3807115887 17.3712371686 17.610422607 19.3487573866 19.7460347767 20.0531395947 20.3697651164 20.7144939062 21.101921992 21.5347378777 22.0364484487 22.5170368852 23.0951660942 23.9215880558 25.0130120073 26.5983522613 29.6775323265 32.7628037625 34.771475963 37.3097997822 38.2313971859 40.8503358057 44.296764988 47.2537995677 48.8991920146 52.9228922961 57.3003956997 60.2935065142 64.219018259 69.437445882 75.3510413512 79.4598912008 84.7481318172 87.1958467585 90.6709629234 94.2603387778 96.1032123866 93.8120506391 42.039825884 99.9999995528 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.90063722746e-09 55.7697177731 59.0667203773 56.3277418252 53.7105927834 51.6435182694 49.7025276871 46.2222020262 44.1938216637 42.5910498219 41.3754024578 40.5768630628 40.6738805476 39.5210717644 41.5093386042 16.6056981996 16.5887108782 16.7485010576 18.6939919781 19.1304932283 19.4711917057 19.7987910076 20.1405846299 20.5140036677 20.9444637165 21.4658888944 22.0976777332 22.8826149888 23.6755853952 24.6817046841 26.1196510644 27.9723596586 31.1164225493 34.6481672978 36.6990240853 39.0001433893 42.246430257 45.4196255141 46.6060167872 50.4016199025 54.6356301564 57.5429510436 61.3962168017 66.355100814 70.4519359374 75.9062286923 81.3898065248 86.0667443758 89.7323424098 93.5799941636 96.7204210915 96.5875449326 90.1050564888 20.4938378473 99.9999998035 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 72.1068107225 56.1891041804 59.550284731 56.861897754 54.3481313843 51.9382114185 49.1270780832 45.5037308299 43.2479462036 41.6058526799 40.4286906179 39.9795862743 40.3733789429 38.9740639442 38.0013368808 15.7388845211 16.0083132578 15.9535196815 17.6388355656 18.4823921564 18.8893049701 19.2362027247 19.5630739996 19.9061260784 20.3127558272 20.8240116707 21.4791536436 22.2856827465 23.2891935524 24.6025930378 26.1490011537 27.7493716853 29.7500392096 32.903841722 36.3768123977 39.2535544769 42.285499139 44.3776390796 47.2389127578 52.0547809487 55.4834979664 57.7549414106 61.8434479997 66.6944489224 72.73125804 78.0145304175 82.1425426482 87.3780451835 92.1624466115 96.2779515871 99.2807595344 97.9491103009 89.2107344252 20.8913619101 99.9999999084 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 78.8900635706 68.7003460914 63.0723662021 59.0937408037 56.2713682764 52.3278090114 48.5700803794 45.3532522116 43.0211035718 41.3442942719 40.1058563953 39.8486771618 39.8366805917 38.5149430757 37.9194943222 14.6096488673 15.4371964699 14.892009063 16.3891666188 17.8034712702 18.1247974905 18.3415850937 18.5209241022 18.7539460927 19.1105118517 19.6332169022 20.3572874529 21.3130131157 22.5646986811 24.1840582332 26.0902579386 28.0857149948 30.1491410993 32.1458643754 34.3616671966 37.8300059673 41.2084523358 43.9470933813 47.8671726852 52.3139131846 55.4605058855 58.6081724984 63.437292573 68.8799006133 72.5999596356 78.1013642141 84.792015178 90.4049599794 93.715384817 99.0799496523 99.9997981171 99.2679634457 91.791105841 40.25211942 99.9999999062 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 64.7969991915 59.3105602628 68.4463218326 65.0802701232 61.743397619 56.9310404659 53.9123859384 48.9588597487 46.0032893204 43.6047893375 41.9149504397 40.9617890389 41.4738854697 39.8106320913 38.429471738 38.0268804424 12.9718800286 14.3083869818 13.4269985643 15.4143861828 16.2702749946 15.979891201 15.5881428215 15.3919249616 15.5068951338 15.9719312911 16.78937655 17.9613190632 19.4854271452 21.426426124 23.8817681642 26.384354396 28.2777530278 30.1081422886 32.0995728438 34.4978710151 36.995428616 39.5889367791 43.1026662695 48.1233304116 52.7020486622 56.5068213611 58.6751556774 62.8900544121 67.8624208724 74.2549163689 81.6883226381 87.7904167919 90.7095225649 96.5474537326 99.9999998173 99.9999999941 99.9999999933 97.8381148481 50.3972134209 99.9999997872 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 99.1728029996 83.9394267466 74.344820879 68.9564937149 64.4630414583 59.2644265501 54.1871704802 50.3130440434 47.0740641833 44.4622964956 42.6810632319 41.8049236221 41.5906510126 39.6967073546 38.7387521996 40.0185471796 11.3288817681 12.1937426826 11.7784734299 13.8984680049 13.545024294 13.3010358182 12.8304822706 12.8789961 13.4667226529 14.4849398316 15.8654760176 17.5633359995 19.5229090612 21.7016982552 23.9679078864 26.0065200802 27.8285257496 29.7818817536 32.2370172246 35.2325927312 37.7395609293 40.3857578745 43.5949747771 47.5861981385 51.4329133355 54.2583570845 57.5147500095 63.3479007819 69.6528114134 77.5334495655 84.418217186 87.5725304574 93.2367782316 99.9913126445 99.9999999936 99.9999999964 99.9999999944 99.9931134121 55.4155285724 99.9999994334 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3.85072880353e-10 71.4856273534 82.1252717835 77.455589983 71.6322949277 64.9269404382 60.9891975644 55.2091809791 51.2446032751 47.8556953797 44.9460250293 42.8625846572 41.9526786045 40.6583357401 39.2211491071 38.0123594463 40.4729408787 10.7258262692 10.2481700479 10.5523292722 14.0178607354 13.112044235 11.6954342633 11.114212884 11.6573268731 12.8234708155 14.3733019918 16.1988130637 18.2593986031 20.4364193639 22.7005959423 24.9796840115 26.7846143156 28.5960925754 30.7024991231 33.1153910819 35.5307934929 38.0016046668 40.9023981579 44.1802248335 47.7775133085 50.7265500054 53.5526136837 57.7780615758 63.9025099017 71.5356117565 79.0698027539 84.8086564352 89.1814730812 96.5598796159 99.9999999928 99.9999999957 99.9999999953 99.9999999934 99.9999999842 58.7391407049 99.9999982866 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 95.098009077 74.891109846 81.3457586083 79.7795613337 74.8560227367 67.3614172508 60.6095448518 55.7498205346 51.5255085481 48.0593110034 45.2387034556 42.9570699164 41.3005904546 39.1454135434 37.5911587749 36.3298745618 39.3044423872 11.7506308922 9.69508402223 9.85865876343 14.0967031421 12.7929825239 9.67011503567 10.0302378516 11.4399837335 13.3379101394 15.5182493591 17.9111092013 20.2059819711 21.9183248243 23.6638491831 25.433859657 27.2379110373 29.2189444315 31.4247969212 33.7756507544 36.1447659016 38.6019367433 41.3129240035 44.4737420185 47.9025308083 51.4361931453 54.4716966499 59.3369974575 65.2457198473 71.7935324174 79.170277564 85.8779338502 92.1792801062 98.8636371059 99.9999999956 99.9999999965 99.9999999966 99.9999999965 99.9999999835 69.5623332843 99.9999945711 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 99.9999853143 99.9437996383 91.1567715175 83.466881613 77.5711837379 70.4017245973 62.555098933 56.2661731512 51.4211679491 47.998762875 45.2456273557 41.320879803 38.7314058319 36.7099655135 35.4927344051 34.5719381644 37.2123973125 12.1108858588 9.43139542337 8.872321893 9.25672691937 8.43012173628 8.96831622357 10.7752157211 13.2004185529 16.0169054511 17.684167275 19.1790538226 20.6982462858 22.2949451507 24.0437412947 25.9178001742 27.9374681592 30.1235866287 32.4304721575 34.7551748391 37.0473232853 39.4724034464 42.2465121883 45.4200252346 48.5239549407 51.593069463 55.2299138549 60.1775344114 66.3103881382 73.4330722733 80.5620589013 86.0256425005 92.5980051332 99.8212920275 99.9854330171 99.9999999985 99.9999999983 99.999999997 99.9999999795 67.1382791191 99.9999881354 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.91766374513e-09 87.3186720147 99.886813634 96.2808611005 87.3163440565 79.2969317439 72.3347956858 64.8213205945 57.4505594876 51.3949787525 46.9797831252 43.8429017905 40.9444478637 38.3783833337 35.2680054402 32.8345735099 33.1912269825 34.2777954741 9.90530481426 8.66433487741 7.72234211869 7.6734726393 9.01760705179 11.6414995299 14.2353932915 15.5151459353 16.7850250042 18.1073694432 19.5692660525 21.1594901415 22.898786375 24.8074976909 26.9036545832 29.1735445126 31.522273532 33.7896455067 35.7484714872 37.8274529247 40.1344971573 42.7081613645 45.50918709 48.5265610801 51.8406057702 55.8305197766 61.0008132086 67.4088677177 74.3778149226 80.6429242499 87.062312037 95.4482506936 99.388615098 99.5661859034 99.9381104529 99.9999999996 99.9999999987 99.9999999714 70.6013116409 99.9999912938 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 99.9999999564 99.9943880995 99.9998098039 99.9272506559 93.6700618149 84.2285120835 75.0473529683 66.5488558195 58.5726381948 51.2255230548 45.6197376471 41.8469962081 38.4420854817 35.9373768714 33.7890215491 29.5418848575 31.0714163071 30.9013612634 7.69358891555 8.26229749076 7.01009783859 7.09795094371 11.2845479226 13.774759534 14.8532813977 16.0130713341 17.31474882 18.7523639453 20.3258116251 22.0407891089 23.9142127807 25.9848697823 28.2818605289 30.3964283657 32.0704881326 33.8729882933 35.8504571727 37.9919701734 40.306390557 42.8017237096 45.5076472734 48.545174241 52.0288336464 56.1744300325 61.3973907011 67.92255636 74.622525318 81.0402531669 88.0690955691 96.3521125088 98.76846909 98.8026489778 99.1191216747 99.902916381 99.9999999992 99.9999999941 89.7059718532 99.9999952038 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 99.9999999989 99.9999999979 99.9999999451 99.9999605049 99.8684808197 90.396653542 79.0055790494 68.6156867631 59.7087998815 51.794813754 44.7741333715 40.3326627384 36.1380683736 32.8151767895 30.7827976966 26.6794570649 27.2216901277 29.1780685572 6.53916543374 8.87744110625 6.50478853099 6.71964728829 13.1598720305 14.5248840141 15.6555635272 16.9599714944 18.3654583851 19.8763186265 21.4970067625 23.2292985182 25.0817658193 27.103404877 28.9540210128 30.4074278836 32.0092557504 33.9317050689 36.0491426171 38.2549101948 40.514769138 42.8789229263 45.4445743634 48.4754893541 52.0768046214 56.2387415687 61.4627625216 68.0560713531 74.8681112733 81.5106764478 88.8383976685 97.376525429 97.9472777808 97.6604172211 97.5892304186 98.1425072098 99.878670919 99.9999999938 96.4698859871 99.9999980545 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4.4478221075e-10 99.9999999923 99.9999999996 99.9999999937 99.999999032 99.9989285552 96.6000312141 83.6147208703 71.5447210926 61.1676585063 52.54437059 44.1419263068 38.2778651828 34.7681406566 30.5067480115 26.5716741044 22.6974193306 24.8547115923 31.2108812657 3.78565277393 4.57477977305 5.7747102551 8.52251620115 14.655305844 16.0269758684 17.340007843 18.7641690347 20.2699874265 21.7966855004 23.3207499871 24.8317562896 26.4013853578 27.7568609685 29.0916477945 30.41117456 32.0239866236 34.068118518 36.3110957989 38.4941554031 40.7004150936 42.8815002471 45.1263438995 47.9994482444 51.7178457854 55.8449766887 60.5708688048 67.2657651607 75.66050431 82.0222575183 89.5568902232 97.4045934705 96.9634621732 95.9715277648 94.6293432547 93.3366980783 93.2719842047 96.1109402375 99.9986118256 99.999999226 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 100 100 100 99.9999999998 99.9999999056 99.9999717214 99.9123808266 87.571682398 73.086844509 62.0578875541 52.2127903026 43.4756917013 36.8637210276 32.4850752556 29.3672918885 26.7122947824 24.6662744909 26.9099975726 25.9164244141 2.64473029304 3.60215276271 7.09365674747 6.97490916871 15.691783435 17.9123968812 19.7317038593 21.1715065451 22.6125084407 23.5256570559 24.5985215945 25.8242774039 27.12814374 28.4741114375 29.7420898026 30.7872989271 32.4503906889 34.5379048759 36.3970349669 38.4046809099 40.4753308397 41.5877313143 42.3236255895 45.915143898 51.0266741269 55.4316112123 59.7502612926 65.6990148905 73.8761281067 82.5979141475 89.9784595239 96.7244917759 95.7563553267 93.673223046 90.3607240676 85.1216306101 73.4699095755 85.8002435123 76.5012367129 99.9999994732 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7.20109653482e-12 99.9999999997 100 100 100 99.9999999989 99.9999980244 99.9906946212 90.977449911 74.9897130435 60.9249210631 51.6539292819 44.4350320416 37.9008896997 33.0143030257 30.00458941 27.3400569174 24.5318297937 23.2721387213 16.8215139773 1.63182164759 7.20982127143 7.17320987338 6.4764039664 7.19056826049 9.87701542282 14.8969344001 16.8426377726 18.5443196556 20.5493016918 22.8182622503 25.1084689427 26.8871410446 27.797135801 27.5935372256 26.8278883442 28.0883360055 31.2837085707 34.0449873226 36.3228044288 38.5902309174 40.3065886725 42.0006717921 45.3466734808 50.67955902 55.5759487162 59.8149018398 65.569475198 73.9465210586 82.6913333517 89.3618203528 96.1451320843 94.8857456664 91.8680480023 86.7434706699 69.3609880153 81.4488059786 0.00340740284492 0.0215408548034 99.9999993553 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.19797247449e-11 100 3.56531248816 100 100 99.9999999998 99.9999996608 99.9980815968 94.3757655449 75.668258974 57.7731410308 47.9742126565 42.1086069051 36.3745455424 31.0459019152 27.0471122747 24.104042416 21.9063213119 21.007521986 12.1533389034 ) ; boundaryField { frontAndBack { type empty; } upperWall { type calculated; value uniform 0; } lowerWall { type calculated; value uniform 0; } inlet { type calculated; value uniform 4.2815413457e-09; } outlet { type calculated; value nonuniform List<scalar> 20 ( 2.46563070136e-11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.11434140528e-12 4.79251902554e-11 ) ; } } // ************************************************************************* //
[ "as998@snu.edu.in" ]
as998@snu.edu.in
ffaa8aa33f1501d5d4e04ae521ff35c98bbea1d7
d3dfd46bde7d1c9f1d4d377c063090c6141aeeb4
/C++ 自用测试/左值.cpp
91e7405459be2404af57cd5c36e5ba737c19df42
[]
no_license
sola1121/CPP_PrimerPlus_and_VisualCPP
c58e346e75662ca4c351fe5adc8ef55f271da09d
cfc2f01769cda1eb371a8932e21658c9d395b8fa
refs/heads/master
2021-02-12T17:17:03.972749
2020-04-03T10:48:49
2020-04-03T10:48:49
244,610,904
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
212
cpp
//×óÖµ²âÊÔ #include <iostream> int main(){ double system("pause"); return 0; } double square1(double * po){ return po*po*po; } double square2(double & pi){ return pi*pi*pi; }
[ "sola1121@foxmail.com" ]
sola1121@foxmail.com
a1555c6ff22e0fb0feacea77c1407db670f410ca
ec5275cf4057ede9c112cc487f2662cd4b1a04ea
/STL_array.cpp
2541f32ea88569ea0cdb0f9300de58ded46f3b8f
[]
no_license
huynhtritaiml2/C-forBeginner
879c1018650f14a1ce1aa3a2f8fbd3abf65e9aa0
849421d95eaa609156ad5d30587f4025a7f5c28c
refs/heads/main
2023-03-21T04:09:55.431599
2021-03-03T08:48:25
2021-03-03T08:48:25
344,039,217
0
0
null
null
null
null
UTF-8
C++
false
false
2,933
cpp
#include <iostream> #include <array> using std::cout; /* templatized array == STL array == generic array : have a type inside tempalte mark template mark: <> Array : stastic array Vectors: dynamically array templatize array: stastic array Array pass to the function: do not remember the size() Vectors: Remember the size templatize array: Remember the size Array: pass by pointer to function Vectors: pass by value to function, a copy templatize array: a copy Templatize array is Object which have array + sthing */ /* COMPARASION: 1. std::vector<int> stuff; std::vector<int> things = stuff; // things is copied of original stuff NOTE: we cannot do it for array, because array is pointer, and we just copy a point or address NOTE 2: when copy array, we must use loop to copy each element from original array to new array NOTE: Use Vector because it EASYYYYYYYYYYYYYYYYYYYYYYYY ******* NOTE: when choose C-style array. we should schoose templatized array ******************** Because Vector, and templatized array can copy to new ____ and Because C-style array, templatized array have a fixed size, stastically size ********** NOTE 2: C-style array pass by pointer, so it forget its size, and we must pass the second arguments is its size ************** NOTE: Vector, templatized array ,we should pass by pointer, because we can change it value, and it save memory in STACK NOTE: Coi khúc cuối có bảng tổng hợp: C++ Programming Tutorial 57 - Array Vs Vector Vs STL Array https://www.youtube.com/watch?v=VW8eDxB0c-s&list=PL_c9BZzLwBRJVJsIfe97ey45V4LP_HXiG&index=59 */ // void print_array(std::array<int, 20> &data, int size) // ORIGINAL ARRAY { for(int i = 0; i < size; i++) { std::cout << data[i] << '\t'; } std::cout << '\n'; } int main() { std::array<int, 20> data = {1, 2, 3}; print_array(data, 3); // 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } /* // Print size which is number element in array void print_array(std::array<int, 20> data, int size) // copied array of orginal array { for(int i = 0; i < size; i++) { std::cout << data[i] << '\t'; } std::cout << '\n'; } int main() { std::array<int, 20> data = {1, 2, 3}; print_array(data, 3); // 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } */ // Print all the array /* void print_array(std::array<int, 20> data) // copied array of orginal array { for(int i = 0; i < data.size(); i++) { std::cout << data[i] << '\t'; } std::cout << '\n'; } int main() { std::array<int, 20> data = {1, 2, 3}; print_array(data); // 1 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 } */
[ "huynhtritaiml2@gmail.com" ]
huynhtritaiml2@gmail.com
beac4f5d37c85c72a8ff22638d74074a688c02b9
b9b2a0bf8afa18c8295eb40ae94cce4f5b904fd6
/211/p6/main.cpp
c09a6f3e0379714716f3988416aa61a38a9fd875
[]
no_license
vmartinez40/school
7bea26e0dcab0db10a4886378c3ad51eaaa31423
344d96fe1addd86a8758a265dfe8c2a8259b7a65
refs/heads/master
2020-03-09T14:53:23.254718
2016-09-08T05:12:10
2016-09-08T05:12:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,305
cpp
/*** main() program for the 211 drawing program (p6) (1) Reads in shape descriptions, for example square 10 10 4 (2) Creates a shape object for each shape description, for example new Square(10, 10, 4) (3) Puts all the shape objects into a vector of Shape * (4) After all the input has been read, all the shapes are drawn onto a grid object. ***/ #include <iostream> #include <vector> using namespace std; // you have to provide all of these files // they can be empty to start with so you can get the Makefile to work #include "shape.h" #include "triangle.h" #include "circle.h" #include "square.h" #include "point.h" #include "grid.h" #include "smile.h" int main() { string shape; int x, y; int size; char letter; // a vector to hold all the shapes created from the commands in stdin vector<Shape*> shapes; // while there are more shapes to read in standard input while (cin >> shape) { // if the shape is a square, read in the parameters for a square if (shape == "square") { cin >> x; cin >> y; cin >> size; // create a new Square object and insert it into the vector shapes.push_back(new Square(x, y, size)); } if (shape == "triangle") { cin >> x; cin >> y; shapes.push_back(new Triangle(x, y)); } if (shape == "circle") { cin >> x; cin >> y; shapes.push_back(new Circle(x, y)); } if (shape == "point") { cin >> x; cin >> y; cin >> letter; shapes.push_back(new Point(x, y, letter)); } if (shape == "smile") { cin >> x; cin >> y; shapes.push_back(new Smile(x, y)); } } // Instantiate a Grid object to draw all the shapes into Grid grid; // tell all the shapes in the shapes vector to draw themselves // into our grid object for (unsigned int i = 0; i < shapes.size(); i++) { shapes[i]->draw(grid); } // now that all the shapes have been drawn in the grid, print the grid grid.print(); return 0; }
[ "pvaldivia1@ecc-jaguar.csuchico.edu" ]
pvaldivia1@ecc-jaguar.csuchico.edu
70877c96433ef849ef5546d96155b141d3bed1cc
cca1812578170c3a66b5c6893ea039b306d69df9
/src/qt/sendcoinsdialog.cpp
a80f133d12d5b9458dc645768b9cd2eb2be7bcdc
[ "MIT" ]
permissive
DeCrypt0/mnos
d4e596743e838aad966b535a0436de4cff7c9e3d
07bf0b6d1477daa895319be4b6a69a42aa2110ac
refs/heads/master
2020-03-24T15:27:52.224360
2018-07-17T13:35:47
2018-07-17T13:35:47
null
0
0
null
null
null
null
UTF-8
C++
false
false
37,104
cpp
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2018 The MNOS Core developers // Distributed under the MIT 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 "clientmodel.h" #include "coincontroldialog.h" #include "guiutil.h" #include "optionsmodel.h" #include "platformstyle.h" #include "sendcoinsentry.h" #include "walletmodel.h" #include "base58.h" #include "coincontrol.h" #include "validation.h" // mempool and minRelayTxFee #include "ui_interface.h" #include "txmempool.h" #include "wallet/wallet.h" #include "privatesend.h" #include <QMessageBox> #include <QScrollBar> #include <QSettings> #include <QTextDocument> SendCoinsDialog::SendCoinsDialog(const PlatformStyle *platformStyle, QWidget *parent) : QDialog(parent), ui(new Ui::SendCoinsDialog), clientModel(0), model(0), fNewRecipientAllowed(true), fFeeMinimized(true), platformStyle(platformStyle) { ui->setupUi(this); QString theme = GUIUtil::getThemeName(); if (!platformStyle->getImagesOnButtons()) { ui->addButton->setIcon(QIcon()); ui->clearButton->setIcon(QIcon()); ui->sendButton->setIcon(QIcon()); } else { ui->addButton->setIcon(QIcon(":/icons/" + theme + "/add")); ui->clearButton->setIcon(QIcon(":/icons/" + theme + "/remove")); ui->sendButton->setIcon(QIcon(":/icons/" + theme + "/send")); } 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 &))); // MNOS specific QSettings settings; if (!settings.contains("bUseDarkSend")) settings.setValue("bUseDarkSend", false); if (!settings.contains("bUseInstantX")) settings.setValue("bUseInstantX", false); bool fUsePrivateSend = settings.value("bUseDarkSend").toBool(); bool fUseInstantSend = settings.value("bUseInstantX").toBool(); if(fLiteMode) { ui->checkUsePrivateSend->setChecked(false); ui->checkUsePrivateSend->setVisible(false); ui->checkUseInstantSend->setVisible(false); CoinControlDialog::coinControl->fUsePrivateSend = false; CoinControlDialog::coinControl->fUseInstantSend = false; } else{ ui->checkUsePrivateSend->setChecked(fUsePrivateSend); ui->checkUseInstantSend->setChecked(fUseInstantSend); CoinControlDialog::coinControl->fUsePrivateSend = fUsePrivateSend; CoinControlDialog::coinControl->fUseInstantSend = fUseInstantSend; } connect(ui->checkUsePrivateSend, SIGNAL(stateChanged ( int )), this, SLOT(updateDisplayUnit())); connect(ui->checkUseInstantSend, SIGNAL(stateChanged ( int )), this, SLOT(updateInstantSend())); // 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 *clipboardLowOutputAction = new QAction(tr("Copy dust"), 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(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->labelCoinControlLowOutput->addAction(clipboardLowOutputAction); ui->labelCoinControlChange->addAction(clipboardChangeAction); // init transaction fee section if (!settings.contains("fFeeSectionMinimized")) settings.setValue("fFeeSectionMinimized", true); if (!settings.contains("nFeeRadio") && settings.contains("nTransactionFee") && settings.value("nTransactionFee").toLongLong() > 0) // compatibility settings.setValue("nFeeRadio", 1); // custom if (!settings.contains("nFeeRadio")) settings.setValue("nFeeRadio", 0); // recommended if (!settings.contains("nCustomFeeRadio") && settings.contains("nTransactionFee") && settings.value("nTransactionFee").toLongLong() > 0) // compatibility settings.setValue("nCustomFeeRadio", 1); // total at least if (!settings.contains("nCustomFeeRadio")) settings.setValue("nCustomFeeRadio", 0); // per kilobyte if (!settings.contains("nSmartFeeSliderPosition")) settings.setValue("nSmartFeeSliderPosition", 0); if (!settings.contains("nTransactionFee")) settings.setValue("nTransactionFee", (qint64)DEFAULT_TRANSACTION_FEE); if (!settings.contains("fPayOnlyMinFee")) settings.setValue("fPayOnlyMinFee", false); if (!settings.contains("fSendFreeTransactions")) settings.setValue("fSendFreeTransactions", false); ui->groupFee->setId(ui->radioSmartFee, 0); ui->groupFee->setId(ui->radioCustomFee, 1); ui->groupFee->button((int)std::max(0, std::min(1, settings.value("nFeeRadio").toInt())))->setChecked(true); ui->groupCustomFee->setId(ui->radioCustomPerKilobyte, 0); ui->groupCustomFee->setId(ui->radioCustomAtLeast, 1); ui->groupCustomFee->button((int)std::max(0, std::min(1, settings.value("nCustomFeeRadio").toInt())))->setChecked(true); ui->sliderSmartFee->setValue(settings.value("nSmartFeeSliderPosition").toInt()); ui->customFee->setValue(settings.value("nTransactionFee").toLongLong()); ui->checkBoxMinimumFee->setChecked(settings.value("fPayOnlyMinFee").toBool()); ui->checkBoxFreeTx->setChecked(settings.value("fSendFreeTransactions").toBool()); minimizeFeeSection(settings.value("fFeeSectionMinimized").toBool()); } void SendCoinsDialog::setClientModel(ClientModel *clientModel) { this->clientModel = clientModel; if (clientModel) { connect(clientModel, SIGNAL(numBlocksChanged(int,QDateTime,double,bool)), this, SLOT(updateSmartFeeLabel())); } } 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(), model->getAnonymizedBalance(), model->getWatchBalance(), model->getWatchUnconfirmedBalance(), model->getWatchImmatureBalance()); connect(model, SIGNAL(balanceChanged(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount,CAmount)), this, SLOT(setBalance(CAmount,CAmount,CAmount,CAmount,CAmount,CAmount,CAmount))); connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit())); updateDisplayUnit(); // Coin Control connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(coinControlUpdateLabels())); connect(model->getOptionsModel(), SIGNAL(coinControlFeaturesChanged(bool)), this, SLOT(coinControlFeatureChanged(bool))); ui->frameCoinControl->setVisible(model->getOptionsModel()->getCoinControlFeatures()); coinControlUpdateLabels(); // fee section connect(ui->sliderSmartFee, SIGNAL(valueChanged(int)), this, SLOT(updateSmartFeeLabel())); connect(ui->sliderSmartFee, SIGNAL(valueChanged(int)), this, SLOT(updateGlobalFeeVariables())); connect(ui->sliderSmartFee, SIGNAL(valueChanged(int)), this, SLOT(coinControlUpdateLabels())); connect(ui->groupFee, SIGNAL(buttonClicked(int)), this, SLOT(updateFeeSectionControls())); connect(ui->groupFee, SIGNAL(buttonClicked(int)), this, SLOT(updateGlobalFeeVariables())); connect(ui->groupFee, SIGNAL(buttonClicked(int)), this, SLOT(coinControlUpdateLabels())); connect(ui->groupCustomFee, SIGNAL(buttonClicked(int)), this, SLOT(updateGlobalFeeVariables())); connect(ui->groupCustomFee, SIGNAL(buttonClicked(int)), this, SLOT(coinControlUpdateLabels())); connect(ui->customFee, SIGNAL(valueChanged()), this, SLOT(updateGlobalFeeVariables())); connect(ui->customFee, SIGNAL(valueChanged()), this, SLOT(coinControlUpdateLabels())); connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(setMinimumFee())); connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateFeeSectionControls())); connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(updateGlobalFeeVariables())); connect(ui->checkBoxMinimumFee, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels())); connect(ui->checkBoxFreeTx, SIGNAL(stateChanged(int)), this, SLOT(updateGlobalFeeVariables())); connect(ui->checkBoxFreeTx, SIGNAL(stateChanged(int)), this, SLOT(coinControlUpdateLabels())); ui->customFee->setSingleStep(CWallet::GetRequiredFee(1000)); updateFeeSectionControls(); updateMinFeeLabel(); updateSmartFeeLabel(); updateGlobalFeeVariables(); } } SendCoinsDialog::~SendCoinsDialog() { QSettings settings; settings.setValue("fFeeSectionMinimized", fFeeMinimized); settings.setValue("nFeeRadio", ui->groupFee->checkedId()); settings.setValue("nCustomFeeRadio", ui->groupCustomFee->checkedId()); settings.setValue("nSmartFeeSliderPosition", ui->sliderSmartFee->value()); settings.setValue("nTransactionFee", (qint64)ui->customFee->value()); settings.setValue("fPayOnlyMinFee", ui->checkBoxMinimumFee->isChecked()); settings.setValue("fSendFreeTransactions", ui->checkBoxFreeTx->isChecked()); 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; } QString strFunds = tr("using") + " <b>" + tr("anonymous funds") + "</b>"; QString strFee = ""; recipients[0].inputType = ONLY_DENOMINATED; if(ui->checkUsePrivateSend->isChecked()) { recipients[0].inputType = ONLY_DENOMINATED; strFunds = tr("using") + " <b>" + tr("anonymous funds") + "</b>"; QString strNearestAmount( BitcoinUnits::formatWithUnit( model->getOptionsModel()->getDisplayUnit(), CPrivateSend::GetSmallestDenomination())); strFee = QString(tr( "(privatesend requires this amount to be rounded up to the nearest %1)." ).arg(strNearestAmount)); } else { recipients[0].inputType = ALL_COINS; strFunds = tr("using") + " <b>" + tr("any available funds (not anonymous)") + "</b>"; } if(ui->checkUseInstantSend->isChecked()) { recipients[0].fUseInstantSend = true; strFunds += " "; strFunds += tr("and InstantSend"); } else { recipients[0].fUseInstantSend = false; } fNewRecipientAllowed = false; // request unlock only if was locked or unlocked for mixing: // this way we let users unlock by walletpassphrase or by menu // and make many transactions while unlocking through this dialog // will call relock WalletModel::EncryptionStatus encStatus = model->getEncryptionStatus(); if(encStatus == model->Locked || encStatus == model->UnlockedForMixingOnly) { WalletModel::UnlockContext ctx(model->requestUnlock()); if(!ctx.isValid()) { // Unlock wallet was cancelled fNewRecipientAllowed = true; return; } send(recipients, strFee, strFunds); return; } // already unlocked or not encrypted at all send(recipients, strFee, strFunds); } void SendCoinsDialog::send(QList<SendCoinsRecipient> recipients, QString strFee, QString strFunds) { // 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; } CAmount txFee = currentTransaction.getTransactionFee(); // Format confirmation message QStringList formatted; Q_FOREACH(const SendCoinsRecipient &rcp, currentTransaction.getRecipients()) { // generate bold amount string QString amount = "<b>" + BitcoinUnits::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), rcp.amount); amount.append("</b> ").append(strFunds); // 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()) // authenticated payment request { recipientElement = tr("%1 to %2").arg(amount, GUIUtil::HtmlEscape(rcp.authenticatedMerchant)); } else // unauthenticated payment request { recipientElement = tr("%1 to %2").arg(amount, address); } formatted.append(recipientElement); } 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::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), txFee)); questionString.append("</span> "); questionString.append(tr("are added as transaction fee")); questionString.append(" "); questionString.append(strFee); // append transaction size questionString.append(" (" + QString::number((double)currentTransaction.getTransactionSize() / 1000) + " kB)"); } // add total amount in all subdivision units questionString.append("<hr />"); CAmount totalAmount = currentTransaction.getTotalTransactionAmount() + txFee; QStringList alternativeUnits; Q_FOREACH(BitcoinUnits::Unit u, BitcoinUnits::availableUnits()) { if(u != model->getOptionsModel()->getDisplayUnit()) alternativeUnits.append(BitcoinUnits::formatHtmlWithUnit(u, totalAmount)); } // Show total amount + all alternative units questionString.append(tr("Total Amount = <b>%1</b><br />= %2") .arg(BitcoinUnits::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), totalAmount)) .arg(alternativeUnits.join("<br />= "))); // Limit number of displayed entries int messageEntries = formatted.size(); int displayedEntries = 0; for(int i = 0; i < formatted.size(); i++){ if(i >= MAX_SEND_POPUP_ENTRIES){ formatted.removeLast(); i--; } else{ displayedEntries = i+1; } } questionString.append("<hr />"); questionString.append(tr("<b>(%1 of %2 entries displayed)</b>").arg(displayedEntries).arg(messageEntries)); // Display message box 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(platformStyle, this); entry->setModel(model); ui->entries->addWidget(entry); connect(entry, SIGNAL(removeEntry(SendCoinsEntry*)), this, SLOT(removeEntry(SendCoinsEntry*))); connect(entry, SIGNAL(payAmountChanged()), this, SLOT(coinControlUpdateLabels())); connect(entry, SIGNAL(subtractFeeFromAmountChanged()), this, SLOT(coinControlUpdateLabels())); // 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()); updateTabsAndLabels(); 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) { // Just paste the entry, all pre-checks // are done in paymentserver.cpp. pasteEntry(rv); return true; } void SendCoinsDialog::setBalance(const CAmount& balance, const CAmount& unconfirmedBalance, const CAmount& immatureBalance, const CAmount& anonymizedBalance, const CAmount& watchBalance, const CAmount& watchUnconfirmedBalance, const CAmount& watchImmatureBalance) { Q_UNUSED(unconfirmedBalance); Q_UNUSED(immatureBalance); Q_UNUSED(anonymizedBalance); Q_UNUSED(watchBalance); Q_UNUSED(watchUnconfirmedBalance); Q_UNUSED(watchImmatureBalance); if(model && model->getOptionsModel()) { uint64_t bal = 0; QSettings settings; settings.setValue("bUseDarkSend", ui->checkUsePrivateSend->isChecked()); if(ui->checkUsePrivateSend->isChecked()) { bal = anonymizedBalance; } else { bal = balance; } ui->labelBalance->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), bal)); } } void SendCoinsDialog::updateDisplayUnit() { setBalance(model->getBalance(), model->getUnconfirmedBalance(), model->getImmatureBalance(), model->getAnonymizedBalance(), model->getWatchBalance(), model->getWatchUnconfirmedBalance(), model->getWatchImmatureBalance()); CoinControlDialog::coinControl->fUsePrivateSend = ui->checkUsePrivateSend->isChecked(); coinControlUpdateLabels(); ui->customFee->setDisplayUnit(model->getOptionsModel()->getDisplayUnit()); updateMinFeeLabel(); updateSmartFeeLabel(); } void SendCoinsDialog::updateInstantSend() { QSettings settings; settings.setValue("bUseInstantX", ui->checkUseInstantSend->isChecked()); CoinControlDialog::coinControl->fUseInstantSend = ui->checkUseInstantSend->isChecked(); coinControlUpdateLabels(); } 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: addresses should only be used once each."); 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; case WalletModel::AbsurdFee: msgParams.first = tr("A fee higher than %1 is considered an absurdly high fee.").arg(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), maxTxFee)); break; case WalletModel::PaymentRequestExpired: msgParams.first = tr("Payment request expired."); msgParams.second = CClientUIInterface::MSG_ERROR; break; // included to prevent a compiler warning. case WalletModel::OK: default: return; } Q_EMIT message(tr("Send Coins"), msgParams.first, msgParams.second); } void SendCoinsDialog::minimizeFeeSection(bool fMinimize) { ui->labelFeeMinimized->setVisible(fMinimize); ui->buttonChooseFee ->setVisible(fMinimize); ui->buttonMinimizeFee->setVisible(!fMinimize); ui->frameFeeSelection->setVisible(!fMinimize); ui->horizontalLayoutSmartFee->setContentsMargins(0, (fMinimize ? 0 : 6), 0, 0); fFeeMinimized = fMinimize; } void SendCoinsDialog::on_buttonChooseFee_clicked() { minimizeFeeSection(false); } void SendCoinsDialog::on_buttonMinimizeFee_clicked() { updateFeeMinimizedLabel(); minimizeFeeSection(true); } void SendCoinsDialog::setMinimumFee() { ui->radioCustomPerKilobyte->setChecked(true); ui->customFee->setValue(CWallet::GetRequiredFee(1000)); } void SendCoinsDialog::updateFeeSectionControls() { ui->sliderSmartFee ->setEnabled(ui->radioSmartFee->isChecked()); ui->labelSmartFee ->setEnabled(ui->radioSmartFee->isChecked()); ui->labelSmartFee2 ->setEnabled(ui->radioSmartFee->isChecked()); ui->labelSmartFee3 ->setEnabled(ui->radioSmartFee->isChecked()); ui->labelFeeEstimation ->setEnabled(ui->radioSmartFee->isChecked()); ui->labelSmartFeeNormal ->setEnabled(ui->radioSmartFee->isChecked()); ui->labelSmartFeeFast ->setEnabled(ui->radioSmartFee->isChecked()); ui->checkBoxMinimumFee ->setEnabled(ui->radioCustomFee->isChecked()); ui->labelMinFeeWarning ->setEnabled(ui->radioCustomFee->isChecked()); ui->radioCustomPerKilobyte ->setEnabled(ui->radioCustomFee->isChecked() && !ui->checkBoxMinimumFee->isChecked()); ui->radioCustomAtLeast ->setEnabled(ui->radioCustomFee->isChecked() && !ui->checkBoxMinimumFee->isChecked() && CoinControlDialog::coinControl->HasSelected()); ui->customFee ->setEnabled(ui->radioCustomFee->isChecked() && !ui->checkBoxMinimumFee->isChecked()); } void SendCoinsDialog::updateGlobalFeeVariables() { if (ui->radioSmartFee->isChecked()) { nTxConfirmTarget = defaultConfirmTarget - ui->sliderSmartFee->value(); payTxFee = CFeeRate(0); // set nMinimumTotalFee to 0 to not accidentally pay a custom fee CoinControlDialog::coinControl->nMinimumTotalFee = 0; } else { nTxConfirmTarget = defaultConfirmTarget; payTxFee = CFeeRate(ui->customFee->value()); // if user has selected to set a minimum absolute fee, pass the value to coincontrol // set nMinimumTotalFee to 0 in case of user has selected that the fee is per KB CoinControlDialog::coinControl->nMinimumTotalFee = ui->radioCustomAtLeast->isChecked() ? ui->customFee->value() : 0; } fSendFreeTransactions = ui->checkBoxFreeTx->isChecked(); } void SendCoinsDialog::updateFeeMinimizedLabel() { if(!model || !model->getOptionsModel()) return; if (ui->radioSmartFee->isChecked()) ui->labelFeeMinimized->setText(ui->labelSmartFee->text()); else { ui->labelFeeMinimized->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), ui->customFee->value()) + ((ui->radioCustomPerKilobyte->isChecked()) ? "/kB" : "")); } } void SendCoinsDialog::updateMinFeeLabel() { if (model && model->getOptionsModel()) ui->checkBoxMinimumFee->setText(tr("Pay only the required fee of %1").arg( BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), CWallet::GetRequiredFee(1000)) + "/kB") ); } void SendCoinsDialog::updateSmartFeeLabel() { if(!model || !model->getOptionsModel()) return; int nBlocksToConfirm = defaultConfirmTarget - ui->sliderSmartFee->value(); int estimateFoundAtBlocks = nBlocksToConfirm; CFeeRate feeRate = mempool.estimateSmartFee(nBlocksToConfirm, &estimateFoundAtBlocks); if (feeRate <= CFeeRate(0)) // not enough data => minfee { ui->labelSmartFee->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), std::max(CWallet::fallbackFee.GetFeePerK(), CWallet::GetRequiredFee(1000))) + "/kB"); ui->labelSmartFee2->show(); // (Smart fee not initialized yet. This usually takes a few blocks...) ui->labelFeeEstimation->setText(""); } else { ui->labelSmartFee->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), std::max(feeRate.GetFeePerK(), CWallet::GetRequiredFee(1000))) + "/kB"); ui->labelSmartFee2->hide(); ui->labelFeeEstimation->setText(tr("Estimated to begin confirmation within %n block(s).", "", estimateFoundAtBlocks)); } updateFeeMinimizedLabel(); } // 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(" ")).replace(ASYMP_UTF8, "")); } // Coin Control: copy label "After fee" to clipboard void SendCoinsDialog::coinControlClipboardAfterFee() { GUIUtil::setClipboard(ui->labelCoinControlAfterFee->text().left(ui->labelCoinControlAfterFee->text().indexOf(" ")).replace(ASYMP_UTF8, "")); } // Coin Control: copy label "Bytes" to clipboard void SendCoinsDialog::coinControlClipboardBytes() { GUIUtil::setClipboard(ui->labelCoinControlBytes->text().replace(ASYMP_UTF8, "")); } // Coin Control: copy label "Dust" 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(" ")).replace(ASYMP_UTF8, "")); } // 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(); coinControlUpdateLabels(); } // Coin Control: button inputs -> show actual coin control dialog void SendCoinsDialog::coinControlButtonClicked() { CoinControlDialog dlg(platformStyle); 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 MNOS address")); } else // Valid address { CKeyID keyid; addr.GetKeyID(keyid); if (!model->havePrivKey(keyid)) // 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()) return; if (model->getOptionsModel()->getCoinControlFeatures()) { // enable minimum absolute fee UI controls ui->radioCustomAtLeast->setVisible(true); // only enable the feature if inputs are selected ui->radioCustomAtLeast->setEnabled(ui->radioCustomFee->isChecked() && !ui->checkBoxMinimumFee->isChecked() &&CoinControlDialog::coinControl->HasSelected()); } else { // in case coin control is disabled (=default), hide minimum absolute fee UI controls ui->radioCustomAtLeast->setVisible(false); return; } // set pay amounts CoinControlDialog::payAmounts.clear(); CoinControlDialog::fSubtractFeeFromAmount = false; for(int i = 0; i < ui->entries->count(); ++i) { SendCoinsEntry *entry = qobject_cast<SendCoinsEntry*>(ui->entries->itemAt(i)->widget()); if(entry && !entry->isHidden()) { SendCoinsRecipient rcp = entry->getValue(); CoinControlDialog::payAmounts.append(rcp.amount); if (rcp.fSubtractFeeFromAmount) CoinControlDialog::fSubtractFeeFromAmount = true; } } ui->checkUsePrivateSend->setChecked(CoinControlDialog::coinControl->fUsePrivateSend); 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(); } }
[ "contact@mnos.io" ]
contact@mnos.io
fd1404e8eaf46dc0836c71914ecd05c7180efab6
189f52bf5454e724d5acc97a2fa000ea54d0e102
/ras/fluidisedBed/1.88/U.air
10eb10ef6414cc5a8a44eb7d54a03074c79a57f5
[]
no_license
pyotr777/openfoam_samples
5399721dd2ef57545ffce68215d09c49ebfe749d
79c70ac5795decff086dd16637d2d063fde6ed0d
refs/heads/master
2021-01-12T16:52:18.126648
2016-11-05T08:30:29
2016-11-05T08:30:29
71,456,654
0
0
null
null
null
null
UTF-8
C++
false
false
138,535
air
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1606+ | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "1.88"; object U.air; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField nonuniform List<vector> 6000 ( (-0.0166835 0.264935 0) (0.00976247 0.168723 0) (0.0352237 0.166297 0) (0.0663427 0.176452 0) (0.097329 0.187315 0) (0.0964784 0.193968 0) (0.0298547 0.224517 0) (-0.0361857 0.213277 0) (-0.0655815 0.199278 0) (-0.0799122 0.187552 0) (-0.0746463 0.177258 0) (-0.0573435 0.173035 0) (-0.0405058 0.179052 0) (-0.0282716 0.172694 0) (-0.0153258 0.162799 0) (-0.00375108 0.160291 0) (-0.00169079 0.1781 0) (-0.0173526 0.204856 0) (-0.0435437 0.220743 0) (-0.0604013 0.237975 0) (-0.0675452 0.235916 0) (-0.0784204 0.227413 0) (-0.0924759 0.219142 0) (-0.108568 0.217764 0) (-0.123794 0.200263 0) (-0.144881 0.20711 0) (-0.163504 0.216022 0) (-0.129342 0.196854 0) (-0.0567384 0.167058 0) (0.0114344 0.257595 0) (0.0193406 1.01805 0) (0.000298846 1.04297 0) (-0.00411225 1.02922 0) (0.00451514 1.00822 0) (-0.000341044 0.990105 0) (-0.0154915 1.03995 0) (-0.0104215 1.06386 0) (0.0249624 1.01063 0) (0.0395888 1.01166 0) (0.0382279 1.01299 0) (0.0152135 1.01118 0) (-0.0150258 1.01937 0) (-0.0210595 1.04095 0) (-0.0209052 1.0511 0) (-0.0185377 1.04805 0) (-0.0137231 1.05916 0) (-0.0382953 1.08096 0) (-0.0961903 1.10055 0) (-0.168234 1.06978 0) (-0.228472 1.01934 0) (-0.26868 0.989567 0) (-0.281683 0.977187 0) (-0.257925 0.971972 0) (-0.199657 0.966271 0) (-0.135481 0.980722 0) (-0.0965426 0.997094 0) (-0.0785728 0.965198 0) (-0.0527641 0.921522 0) (-0.0207199 0.927691 0) (-0.0262256 0.957546 0) (-0.0265392 0.81849 0) (-0.0425045 0.757611 0) (-0.0516923 0.728782 0) (-0.056269 0.726981 0) (-0.0678525 0.73296 0) (-0.0552126 0.763175 0) (0.00981876 0.73066 0) (0.0860017 0.70647 0) (0.136612 0.725485 0) (0.171373 0.755931 0) (0.161776 0.777291 0) (0.114903 0.776634 0) (0.0526697 0.763046 0) (-0.0209471 0.77587 0) (-0.0532962 0.755419 0) (-0.0493784 0.775582 0) (-0.102158 0.837892 0) (-0.208466 0.893183 0) (-0.326775 0.884788 0) (-0.431789 0.855509 0) (-0.487975 0.800424 0) (-0.474725 0.734809 0) (-0.405915 0.681356 0) (-0.30893 0.648286 0) (-0.208365 0.655676 0) (-0.103305 0.701011 0) (-0.0470206 0.73709 0) (-0.0222051 0.675654 0) (-0.0152199 0.680108 0) (-0.00683401 0.792853 0) (-0.0107844 0.854214 0) (-0.0395637 0.820625 0) (-0.0861004 0.803309 0) (-0.111941 0.781714 0) (-0.101132 0.755947 0) (-0.0419865 0.73156 0) (0.0641096 0.6932 0) (0.162218 0.678739 0) (0.247542 0.707644 0) (0.310906 0.76302 0) (0.339102 0.840075 0) (0.292225 0.897641 0) (0.169969 0.930962 0) (0.0183521 0.93994 0) (-0.0872688 0.833271 0) (-0.16618 0.876805 0) (-0.283266 0.995991 0) (-0.403616 1.05683 0) (-0.511428 1.02884 0) (-0.60051 0.942765 0) (-0.615157 0.820357 0) (-0.571952 0.704473 0) (-0.490761 0.622273 0) (-0.387279 0.573568 0) (-0.280159 0.581821 0) (-0.16939 0.620767 0) (-0.0670948 0.670365 0) (-0.00849986 0.681796 0) (-0.00548955 0.690163 0) (-0.0203101 0.74209 0) (-0.0193787 0.834479 0) (-0.0595262 0.816213 0) (-0.102161 0.782844 0) (-0.104225 0.743156 0) (-0.0627715 0.676713 0) (0.025718 0.620663 0) (0.107936 0.572273 0) (0.189956 0.559846 0) (0.270734 0.601611 0) (0.340195 0.680361 0) (0.382122 0.795764 0) (0.357201 0.935523 0) (0.22768 1.02715 0) (0.0778178 1.02745 0) (-0.078294 0.919649 0) (-0.249604 0.961488 0) (-0.379396 1.05563 0) (-0.446987 1.06295 0) (-0.511922 1.04596 0) (-0.547368 0.912506 0) (-0.511678 0.746623 0) (-0.435842 0.605306 0) (-0.35142 0.520572 0) (-0.276788 0.474616 0) (-0.214549 0.477847 0) (-0.153687 0.51843 0) (-0.0919265 0.587102 0) (-0.0251765 0.609242 0) (0.0268073 0.683534 0) (0.00360757 0.726475 0) (-0.0284912 0.896249 0) (-0.0694971 0.873747 0) (-0.0745957 0.816912 0) (-0.0279885 0.715707 0) (0.026864 0.622291 0) (0.0662437 0.571258 0) (0.0909259 0.543927 0) (0.116248 0.530385 0) (0.156104 0.553887 0) (0.217322 0.622066 0) (0.27934 0.7593 0) (0.289962 0.977313 0) (0.186792 1.13938 0) (0.0555794 1.11467 0) (-0.0844438 1.06431 0) (-0.237023 1.07036 0) (-0.340393 1.09797 0) (-0.399758 1.09609 0) (-0.437745 1.0616 0) (-0.400201 0.86447 0) (-0.304167 0.650075 0) (-0.213161 0.516025 0) (-0.154597 0.468898 0) (-0.124927 0.458177 0) (-0.108396 0.474671 0) (-0.0882783 0.508552 0) (-0.0805781 0.574954 0) (-0.0507959 0.57646 0) (-0.00343242 0.662205 0) (0.0121056 0.798101 0) (-0.0189198 0.978134 0) (-0.0238938 0.905749 0) (0.0278307 0.801452 0) (0.0645121 0.717385 0) (0.068814 0.663184 0) (0.0531154 0.623797 0) (0.0381165 0.585748 0) (0.0235773 0.553805 0) (0.0191345 0.545201 0) (0.0440225 0.570463 0) (0.107147 0.69135 0) (0.157149 0.987272 0) (0.111222 1.23211 0) (-0.00225913 1.21116 0) (-0.107591 1.16533 0) (-0.199549 1.15187 0) (-0.28072 1.14601 0) (-0.335554 1.12032 0) (-0.313642 1.00834 0) (-0.187376 0.745989 0) (-0.0731151 0.548753 0) (-0.0242194 0.474393 0) (-0.0189355 0.466482 0) (-0.0288335 0.470977 0) (-0.0371133 0.489327 0) (-0.0348209 0.527858 0) (-0.0237794 0.597242 0) (-0.0184 0.629149 0) (-0.0142754 0.691732 0) (-0.0515474 0.865641 0) (-0.00320091 1.09702 0) (0.0436046 0.965363 0) (0.0806963 0.879724 0) (0.0643127 0.814883 0) (0.0305698 0.750013 0) (-0.00337317 0.695224 0) (-0.0340814 0.637935 0) (-0.062352 0.594202 0) (-0.0898024 0.569143 0) (-0.102163 0.564749 0) (-0.0713167 0.641207 0) (-0.00856338 0.952474 0) (0.0053574 1.30275 0) (-0.0740518 1.29152 0) (-0.159101 1.2332 0) (-0.199475 1.19694 0) (-0.234155 1.18107 0) (-0.230176 1.11893 0) (-0.119543 0.880261 0) (0.0306222 0.623556 0) (0.105244 0.512065 0) (0.0974377 0.491257 0) (0.0607044 0.497744 0) (0.0243316 0.498647 0) (0.00375767 0.505135 0) (0.00529823 0.53344 0) (0.032224 0.601763 0) (0.0522927 0.68374 0) (0.0277864 0.802514 0) (0.0016172 0.919357 0) (0.00234454 1.07856 0) (0.0456808 0.935109 0) (0.076475 0.930087 0) (0.0295462 0.919986 0) (-0.0552506 0.868523 0) (-0.117635 0.778729 0) (-0.137247 0.679901 0) (-0.148578 0.633146 0) (-0.179187 0.608609 0) (-0.217257 0.59898 0) (-0.231413 0.644654 0) (-0.195347 0.914647 0) (-0.148617 1.33156 0) (-0.174069 1.37498 0) (-0.228767 1.2719 0) (-0.215013 1.20124 0) (-0.159224 1.16216 0) (-0.0483267 1.04046 0) (0.101566 0.741619 0) (0.217172 0.57147 0) (0.23043 0.537889 0) (0.179848 0.551617 0) (0.109859 0.560972 0) (0.050537 0.543491 0) (0.0232922 0.520164 0) (0.0371104 0.517987 0) (0.088715 0.565742 0) (0.138101 0.673504 0) (0.126548 0.902933 0) (0.0987505 1.08347 0) (0.0260764 0.969614 0) (0.0776395 0.792023 0) (0.11215 0.813139 0) (0.072049 0.845181 0) (-0.0234263 0.827044 0) (-0.135095 0.792077 0) (-0.200404 0.738397 0) (-0.218312 0.681192 0) (-0.239652 0.654652 0) (-0.288323 0.662281 0) (-0.348306 0.710354 0) (-0.361534 0.932696 0) (-0.328791 1.34351 0) (-0.280592 1.4385 0) (-0.264017 1.28503 0) (-0.176879 1.13618 0) (-0.0303827 1.06648 0) (0.149898 0.924376 0) (0.284374 0.662919 0) (0.357166 0.580852 0) (0.325008 0.60733 0) (0.249898 0.642322 0) (0.141785 0.67325 0) (0.0393228 0.62147 0) (0.000211935 0.540982 0) (0.0314542 0.477831 0) (0.0942224 0.501174 0) (0.173035 0.674794 0) (0.156976 0.800313 0) (0.0769524 0.997115 0) (0.0463898 0.863731 0) (0.121139 0.692685 0) (0.230635 0.791803 0) (0.261459 0.902921 0) (0.206026 0.942704 0) (0.0884024 0.849455 0) (-0.0462999 0.699758 0) (-0.156824 0.689075 0) (-0.213953 0.733573 0) (-0.279396 0.776044 0) (-0.380092 0.848245 0) (-0.461039 1.03779 0) (-0.435806 1.36773 0) (-0.328737 1.44274 0) (-0.229465 1.25164 0) (-0.0885103 1.02127 0) (0.0775649 0.952123 0) (0.280494 0.820773 0) (0.41747 0.622339 0) (0.449578 0.62561 0) (0.411405 0.678475 0) (0.345432 0.728657 0) (0.169983 0.830065 0) (-0.0318545 0.722907 0) (-0.0978763 0.566755 0) (-0.0693837 0.454979 0) (0.00227623 0.50416 0) (0.024468 0.533633 0) (0.0553112 0.869888 0) (0.0193462 1.09041 0) (0.031898 0.736889 0) (0.083135 0.50024 0) (0.210039 0.601437 0) (0.312984 0.770451 0) (0.366926 0.870219 0) (0.376611 0.890472 0) (0.311173 0.869733 0) (0.165116 0.768643 0) (0.0194618 0.709132 0) (-0.122234 0.769191 0) (-0.267945 0.909903 0) (-0.402162 1.10715 0) (-0.424076 1.36731 0) (-0.311094 1.4164 0) (-0.188739 1.21626 0) (-0.0461753 0.928741 0) (0.105428 0.852554 0) (0.325597 0.688108 0) (0.45225 0.596379 0) (0.490181 0.642828 0) (0.479515 0.703103 0) (0.430026 0.806868 0) (0.132546 1.01128 0) (-0.19882 0.866108 0) (-0.333693 0.659728 0) (-0.347502 0.520066 0) (-0.392964 0.50524 0) (-0.358601 0.591971 0) (-0.25984 0.721879 0) (-0.0910545 0.947098 0) (0.0356761 0.725898 0) (0.0524053 0.431833 0) (0.0964469 0.505511 0) (0.185859 0.674423 0) (0.280257 0.792779 0) (0.346377 0.813549 0) (0.403165 0.818243 0) (0.424108 0.844966 0) (0.362587 0.881684 0) (0.221058 0.95056 0) (0.0509229 1.02259 0) (-0.11697 1.10218 0) (-0.190062 1.21712 0) (-0.192534 1.27236 0) (-0.142952 1.11788 0) (-0.0747835 0.823917 0) (0.0805341 0.714994 0) (0.294965 0.529274 0) (0.437478 0.539054 0) (0.477626 0.619267 0) (0.458412 0.71335 0) (0.271298 0.873268 0) (-0.16551 1.29149 0) (-0.561913 1.00488 0) (-0.72659 0.634474 0) (-0.71103 0.531155 0) (-0.608631 0.540207 0) (-0.47164 0.49275 0) (-0.32068 0.552532 0) (-0.143773 0.74773 0) (0.0529872 0.70267 0) (0.0423212 0.475521 0) (0.0104134 0.522364 0) (0.00724546 0.624663 0) (0.0721715 0.725057 0) (0.139732 0.751603 0) (0.210042 0.740388 0) (0.300176 0.748793 0) (0.380819 0.821145 0) (0.385348 0.901041 0) (0.334906 1.05025 0) (0.234529 1.18418 0) (0.127836 1.29125 0) (0.0613825 1.22454 0) (0.00626745 1.01526 0) (-0.0283834 0.69204 0) (0.0636557 0.535308 0) (0.266855 0.360343 0) (0.397147 0.454604 0) (0.410964 0.606427 0) (0.237397 0.743805 0) (-0.0677422 1.21952 0) (-0.357399 1.4994 0) (-0.527091 1.16102 0) (-0.604176 0.612713 0) (-0.5303 0.394101 0) (-0.398891 0.402052 0) (-0.294655 0.435669 0) (-0.205855 0.5107 0) (-0.0993615 0.635781 0) (0.0602769 0.695937 0) (0.0247123 0.574837 0) (-0.0498815 0.622013 0) (-0.0910549 0.68719 0) (-0.1053 0.733841 0) (-0.0762001 0.730552 0) (-0.0373947 0.687182 0) (0.0317253 0.652727 0) (0.155615 0.713744 0) (0.305293 0.883954 0) (0.3589 1.00842 0) (0.353142 1.1109 0) (0.307719 1.16408 0) (0.278488 1.17298 0) (0.216876 1.06973 0) (0.149374 0.68784 0) (0.200357 0.382747 0) (0.319016 0.230587 0) (0.363725 0.388206 0) (0.25989 0.672073 0) (-0.0590553 0.986618 0) (-0.264584 1.30717 0) (-0.286495 1.42988 0) (-0.285655 1.11069 0) (-0.263098 0.468902 0) (-0.213289 0.240981 0) (-0.16675 0.319515 0) (-0.143442 0.424025 0) (-0.1254 0.521596 0) (-0.05729 0.621024 0) (0.0266078 0.695158 0) (-0.0108801 0.683067 0) (-0.10262 0.729874 0) (-0.17094 0.780222 0) (-0.195045 0.820405 0) (-0.21294 0.788998 0) (-0.211214 0.708299 0) (-0.193102 0.622957 0) (-0.126599 0.596714 0) (0.0321537 0.704416 0) (0.242388 0.971835 0) (0.323181 1.12335 0) (0.285807 1.14648 0) (0.280304 1.09247 0) (0.315172 0.932712 0) (0.368901 0.632589 0) (0.428223 0.298264 0) (0.446333 0.206898 0) (0.309426 0.424608 0) (0.0763893 0.900881 0) (-0.165638 1.10031 0) (-0.198507 1.27301 0) (-0.104454 1.35313 0) (0.0107876 1.04612 0) (0.0298157 0.41075 0) (0.0318256 0.198561 0) (0.0165541 0.321736 0) (-0.0160569 0.454852 0) (-0.0444696 0.555091 0) (-0.0255882 0.609267 0) (0.00189509 0.713123 0) (-0.0383453 0.776901 0) (-0.121746 0.839716 0) (-0.210075 0.881372 0) (-0.260411 0.894168 0) (-0.278607 0.875058 0) (-0.299176 0.784575 0) (-0.315109 0.669593 0) (-0.306626 0.580495 0) (-0.232323 0.573365 0) (-0.0489086 0.763424 0) (0.164722 1.1148 0) (0.204554 1.15424 0) (0.203798 1.05625 0) (0.303796 0.900902 0) (0.424783 0.554832 0) (0.467029 0.290273 0) (0.398819 0.281608 0) (0.226635 0.653143 0) (-0.0368437 1.01444 0) (-0.111316 1.12532 0) (-0.0346499 1.20149 0) (0.140003 1.23317 0) (0.333727 1.03586 0) (0.327858 0.473702 0) (0.249422 0.287999 0) (0.183654 0.399843 0) (0.103742 0.541629 0) (0.0207405 0.643604 0) (-0.00765761 0.650804 0) (0.00349152 0.73446 0) (-0.0285204 0.862973 0) (-0.116786 0.939198 0) (-0.205114 0.968642 0) (-0.275439 0.971181 0) (-0.323232 0.941268 0) (-0.350875 0.850131 0) (-0.375953 0.735403 0) (-0.396815 0.627703 0) (-0.38222 0.561708 0) (-0.295441 0.632089 0) (-0.126818 0.957296 0) (0.0238423 1.17972 0) (0.0914844 1.06148 0) (0.227701 0.77866 0) (0.341705 0.517438 0) (0.342599 0.333646 0) (0.237056 0.357794 0) (0.102058 0.833212 0) (-0.0442084 1.09208 0) (-0.0132991 1.08343 0) (0.183332 1.11572 0) (0.442031 1.12486 0) (0.623155 1.0099 0) (0.577953 0.6643 0) (0.419231 0.485871 0) (0.240685 0.506065 0) (0.0948004 0.585371 0) (-0.0254001 0.613173 0) (-0.0329484 0.544019 0) (0.0411706 0.718082 0) (0.0159908 0.988382 0) (-0.112686 1.07575 0) (-0.187665 1.06602 0) (-0.264735 1.03557 0) (-0.335501 0.995196 0) (-0.391687 0.908006 0) (-0.437516 0.799312 0) (-0.470088 0.678973 0) (-0.477589 0.6009 0) (-0.445344 0.63237 0) (-0.364277 0.871974 0) (-0.197594 1.09017 0) (-0.0275417 0.964767 0) (0.108481 0.683731 0) (0.182845 0.514441 0) (0.162941 0.39312 0) (0.0603111 0.464105 0) (-0.00202091 0.905592 0) (0.0154979 1.10106 0) (0.140599 1.01193 0) (0.389878 0.876726 0) (0.629879 1.00654 0) (0.745897 1.02793 0) (0.630159 0.766726 0) (0.414172 0.579499 0) (0.194604 0.607132 0) (0.00274224 0.715778 0) (-0.121785 0.706284 0) (-0.0664409 0.476929 0) (0.0125833 0.70318 0) (0.0688732 0.957161 0) (-0.0636175 0.97015 0) (-0.14072 1.01367 0) (-0.212422 1.0633 0) (-0.277385 1.0748 0) (-0.371974 1.02065 0) (-0.483649 0.890089 0) (-0.537734 0.725682 0) (-0.538616 0.635421 0) (-0.521166 0.670178 0) (-0.46592 0.859508 0) (-0.309024 1.00855 0) (-0.113637 0.889069 0) (-0.0155891 0.664706 0) (0.00388313 0.535273 0) (-0.0429209 0.452786 0) (-0.117409 0.540039 0) (-0.0787844 0.849311 0) (0.112674 1.06062 0) (0.344377 0.867324 0) (0.506492 0.742122 0) (0.673809 0.946979 0) (0.65408 0.989239 0) (0.562637 0.946895 0) (0.352098 0.80053 0) (0.134096 0.747859 0) (-0.0214136 0.743543 0) (-0.106506 0.590205 0) (-0.0612823 0.283217 0) (0.00151708 0.479671 0) (0.0448728 1.01821 0) (-0.00929153 1.09364 0) (-0.0724538 1.07019 0) (-0.137339 1.00478 0) (-0.207654 0.957863 0) (-0.338164 0.945952 0) (-0.512785 0.937329 0) (-0.609104 0.776999 0) (-0.589667 0.640929 0) (-0.53235 0.676575 0) (-0.461478 0.836958 0) (-0.321101 0.930507 0) (-0.163662 0.84136 0) (-0.101377 0.684266 0) (-0.121492 0.578611 0) (-0.173936 0.522031 0) (-0.209543 0.568729 0) (-0.132635 0.718061 0) (0.12079 0.861604 0) (0.420958 0.739755 0) (0.519365 0.662822 0) (0.55122 0.891455 0) (0.479146 1.05319 0) (0.336055 0.927623 0) (0.226446 0.824786 0) (0.110525 0.803472 0) (0.00412269 0.790753 0) (-0.0650488 0.654969 0) (-0.0277398 0.182601 0) (-0.0332428 0.554275 0) (0.00301852 0.824428 0) (0.0587254 0.903446 0) (0.0440797 0.957609 0) (-0.0158709 1.00924 0) (-0.134558 1.05914 0) (-0.334096 1.14676 0) (-0.524314 0.971511 0) (-0.637399 0.71609 0) (-0.654366 0.590035 0) (-0.52302 0.620313 0) (-0.417409 0.776657 0) (-0.316029 0.851776 0) (-0.219292 0.796829 0) (-0.17751 0.694966 0) (-0.187457 0.61701 0) (-0.218664 0.578039 0) (-0.229962 0.592248 0) (-0.16891 0.635237 0) (0.00651231 0.67088 0) (0.245315 0.575861 0) (0.302449 0.571463 0) (0.315383 0.883496 0) (0.246198 0.959146 0) (0.213148 0.923456 0) (0.160704 0.897066 0) (0.0801914 0.892183 0) (-0.00376154 0.869873 0) (-0.0110795 0.636441 0) (0.0081228 0.157713 0) (0.0426998 0.442564 0) (0.117062 0.732759 0) (0.13362 0.891093 0) (0.0899602 0.950357 0) (0.0277793 1.00237 0) (-0.0687158 1.04297 0) (-0.174502 1.08102 0) (-0.341829 1.04975 0) (-0.528462 0.777915 0) (-0.571585 0.478317 0) (-0.516785 0.516095 0) (-0.372278 0.687867 0) (-0.312484 0.779805 0) (-0.252072 0.741743 0) (-0.21321 0.679611 0) (-0.205096 0.632567 0) (-0.217447 0.607734 0) (-0.225852 0.605134 0) (-0.20263 0.602395 0) (-0.132618 0.568587 0) (-0.0368399 0.466352 0) (-0.00573792 0.52082 0) (0.0524028 0.802568 0) (0.137348 0.91948 0) (0.15371 0.925738 0) (0.129792 0.947717 0) (0.0688095 0.956616 0) (0.0235258 0.898711 0) (0.0406636 0.601209 0) (0.0299878 0.187802 0) (0.0499492 0.334459 0) (0.171325 0.71802 0) (0.207268 0.912914 0) (0.159781 1.00218 0) (0.101849 1.08601 0) (0.0221039 1.14359 0) (-0.0550762 1.14048 0) (-0.108082 1.06112 0) (-0.237901 0.835062 0) (-0.304584 0.478977 0) (-0.422349 0.447606 0) (-0.326665 0.620655 0) (-0.284236 0.714827 0) (-0.236021 0.680691 0) (-0.198467 0.651264 0) (-0.186965 0.633341 0) (-0.196837 0.623916 0) (-0.217114 0.618765 0) (-0.236344 0.602224 0) (-0.250077 0.55241 0) (-0.268354 0.474052 0) (-0.253771 0.497665 0) (-0.172995 0.66219 0) (0.043829 0.884704 0) (0.137982 0.919601 0) (0.139043 0.967622 0) (0.0951278 0.985157 0) (0.0869851 0.963774 0) (0.099599 0.596031 0) (0.0463448 0.254152 0) (0.0150143 0.264142 0) (0.109178 0.585063 0) (0.248266 0.958444 0) (0.242942 1.0271 0) (0.195246 1.13497 0) (0.136027 1.19378 0) (0.0951665 1.24073 0) (0.099813 1.07931 0) (0.0173684 0.917253 0) (-0.0832942 0.596133 0) (-0.266314 0.491345 0) (-0.27541 0.57191 0) (-0.21912 0.648154 0) (-0.172359 0.625738 0) (-0.144488 0.626957 0) (-0.142582 0.636442 0) (-0.163505 0.64609 0) (-0.204195 0.652456 0) (-0.257907 0.641189 0) (-0.31703 0.60041 0) (-0.376102 0.550093 0) (-0.387561 0.535787 0) (-0.325351 0.566046 0) (-0.155566 0.697766 0) (0.0527501 0.889659 0) (0.161627 1.03811 0) (0.173758 1.07051 0) (0.179555 0.954893 0) (0.163005 0.639606 0) (0.0643497 0.358793 0) (-0.0079369 0.260059 0) (0.00935176 0.46993 0) (0.172666 0.841597 0) (0.276557 1.08794 0) (0.280699 1.2406 0) (0.264962 1.29078 0) (0.267298 1.24534 0) (0.248041 1.1126 0) (0.149416 1.01767 0) (0.0293489 0.745554 0) (-0.151107 0.57881 0) (-0.151403 0.559259 0) (-0.106261 0.58282 0) (-0.0764149 0.590608 0) (-0.0657811 0.619662 0) (-0.0809867 0.653184 0) (-0.118996 0.673989 0) (-0.179594 0.698798 0) (-0.267832 0.706149 0) (-0.355234 0.672344 0) (-0.422489 0.632098 0) (-0.454613 0.60392 0) (-0.421764 0.591859 0) (-0.324489 0.607754 0) (-0.164325 0.728032 0) (0.0512739 0.928359 0) (0.20246 1.05982 0) (0.245979 0.987776 0) (0.200949 0.727101 0) (0.0825713 0.495363 0) (-0.0307908 0.307534 0) (-0.0410866 0.420429 0) (0.0578638 0.713278 0) (0.208313 1.01656 0) (0.303148 1.21108 0) (0.355667 1.28682 0) (0.358488 1.28038 0) (0.26958 1.20946 0) (0.144683 1.12336 0) (0.0333183 0.890634 0) (-0.0663452 0.624348 0) (-0.00445711 0.534942 0) (0.0106664 0.551477 0) (0.0210504 0.581669 0) (0.0123184 0.62449 0) (-0.0376063 0.680022 0) (-0.0993696 0.684092 0) (-0.144499 0.725223 0) (-0.259447 0.768078 0) (-0.382452 0.728822 0) (-0.456165 0.68151 0) (-0.49057 0.647056 0) (-0.484577 0.622762 0) (-0.426806 0.623198 0) (-0.311678 0.662958 0) (-0.143531 0.785625 0) (0.0851585 0.969267 0) (0.211323 1.02328 0) (0.21053 0.818524 0) (0.0916562 0.657967 0) (-0.031327 0.367841 0) (-0.0729632 0.423766 0) (-0.0203944 0.625714 0) (0.119983 0.923988 0) (0.271241 1.14378 0) (0.358267 1.29009 0) (0.312368 1.36102 0) (0.163486 1.34766 0) (0.0353853 1.22883 0) (0.0058651 0.960882 0) (0.067324 0.594278 0) (0.112649 0.529729 0) (0.107073 0.551426 0) (0.0983331 0.581913 0) (0.0428176 0.657554 0) (-0.0681604 0.741218 0) (-0.126536 0.697374 0) (-0.138887 0.752961 0) (-0.241762 0.875141 0) (-0.376923 0.782075 0) (-0.468162 0.697192 0) (-0.505215 0.653302 0) (-0.49904 0.626051 0) (-0.462559 0.620055 0) (-0.388739 0.650262 0) (-0.267695 0.719384 0) (-0.102338 0.846371 0) (0.075915 0.977914 0) (0.164224 0.872929 0) (0.0853291 0.831692 0) (-0.0279042 0.429653 0) (-0.0829455 0.461604 0) (-0.0824134 0.576382 0) (0.022673 0.818608 0) (0.186839 1.04248 0) (0.266046 1.31217 0) (0.168953 1.48978 0) (-0.00258596 1.50056 0) (-0.040757 1.27432 0) (0.077178 0.857507 0) (0.200948 0.574863 0) (0.195963 0.551198 0) (0.170269 0.56407 0) (0.12871 0.596492 0) (0.0210357 0.748532 0) (-0.130484 0.81257 0) (-0.139453 0.697615 0) (-0.184355 0.779117 0) (-0.245835 0.956306 0) (-0.353765 0.831749 0) (-0.44541 0.696704 0) (-0.482324 0.631087 0) (-0.480682 0.595874 0) (-0.4431 0.59331 0) (-0.39033 0.619621 0) (-0.312062 0.681243 0) (-0.205599 0.782561 0) (-0.0610642 0.887707 0) (0.0768896 0.863679 0) (0.0436376 0.979975 0) (-0.0250502 0.485994 0) (-0.0862985 0.520928 0) (-0.121521 0.574018 0) (-0.0638162 0.727901 0) (0.070345 0.948729 0) (0.114727 1.35718 0) (-0.0153563 1.64399 0) (-0.104889 1.58571 0) (0.0142703 1.18074 0) (0.2058 0.742614 0) (0.275779 0.599388 0) (0.238981 0.589924 0) (0.184576 0.590628 0) (0.095008 0.655066 0) (-0.0506052 0.867244 0) (-0.158382 0.862907 0) (-0.166459 0.744637 0) (-0.239495 0.86269 0) (-0.270708 0.99273 0) (-0.293305 0.858 0) (-0.37293 0.68667 0) (-0.404565 0.609873 0) (-0.426973 0.55194 0) (-0.396503 0.551782 0) (-0.350074 0.575991 0) (-0.293041 0.632394 0) (-0.216387 0.721984 0) (-0.10331 0.807254 0) (-0.00118327 0.845615 0) (0.00602889 1.04842 0) (-0.0205973 0.540098 0) (-0.0851373 0.591191 0) (-0.141472 0.59872 0) (-0.123797 0.675392 0) (-0.0483206 0.889877 0) (-0.0495126 1.44857 0) (-0.163667 1.75758 0) (-0.0842423 1.5352 0) (0.155469 1.008 0) (0.315668 0.70535 0) (0.31009 0.648898 0) (0.241739 0.642437 0) (0.141519 0.656302 0) (0.00211624 0.783176 0) (-0.153684 0.939751 0) (-0.188464 0.899364 0) (-0.193483 0.785335 0) (-0.289103 0.938083 0) (-0.265815 0.984731 0) (-0.188438 0.859123 0) (-0.229902 0.719453 0) (-0.293479 0.6194 0) (-0.338151 0.5236 0) (-0.330514 0.514379 0) (-0.29822 0.534719 0) (-0.253277 0.579317 0) (-0.189608 0.650801 0) (-0.100289 0.725509 0) (-0.0269728 0.809844 0) (-0.0106253 1.06115 0) (-0.00813768 0.584474 0) (-0.0803831 0.683576 0) (-0.15616 0.631156 0) (-0.156429 0.662414 0) (-0.152856 0.903641 0) (-0.219429 1.55514 0) (-0.212842 1.76978 0) (0.0329256 1.34507 0) (0.294906 0.876436 0) (0.363234 0.727544 0) (0.311452 0.712016 0) (0.213649 0.719634 0) (0.0757064 0.77411 0) (-0.0940539 0.94645 0) (-0.175114 1.03188 0) (-0.212496 1.00154 0) (-0.238076 0.945808 0) (-0.25135 1.04885 0) (-0.156529 0.978668 0) (-0.135078 0.81027 0) (-0.111151 0.781296 0) (-0.193702 0.673635 0) (-0.248969 0.529961 0) (-0.264105 0.495253 0) (-0.247336 0.504107 0) (-0.213153 0.53415 0) (-0.160606 0.586023 0) (-0.0906856 0.652387 0) (-0.0387201 0.767371 0) (-0.0164588 1.03226 0) (0.00331811 0.606425 0) (-0.0700269 0.815579 0) (-0.163906 0.66429 0) (-0.168083 0.678335 0) (-0.232046 0.998505 0) (-0.336037 1.60988 0) (-0.157395 1.62687 0) (0.188422 1.10959 0) (0.37054 0.830949 0) (0.369179 0.778071 0) (0.289745 0.789836 0) (0.170276 0.831638 0) (0.0303823 0.943661 0) (-0.0930338 1.1016 0) (-0.136673 1.12798 0) (-0.157382 1.11844 0) (-0.19394 1.06259 0) (-0.172215 1.09153 0) (-0.121172 1.016 0) (-0.108315 0.854434 0) (-0.118223 0.796602 0) (-0.143052 0.711858 0) (-0.187189 0.557585 0) (-0.215569 0.491011 0) (-0.206986 0.482468 0) (-0.180393 0.497645 0) (-0.137459 0.533317 0) (-0.0825719 0.593855 0) (-0.0471789 0.72974 0) (-0.0170207 0.983893 0) (-0.00232251 0.600122 0) (-0.0152391 0.909856 0) (-0.127731 0.731961 0) (-0.184828 0.749509 0) (-0.312855 1.1496 0) (-0.348716 1.56994 0) (-0.00679258 1.33468 0) (0.311356 0.947634 0) (0.396349 0.840071 0) (0.356922 0.8431 0) (0.269938 0.885158 0) (0.155462 0.965456 0) (0.0411752 1.09461 0) (-0.0336385 1.22733 0) (-0.0812057 1.26302 0) (-0.142238 1.27986 0) (-0.19768 1.25733 0) (-0.194341 1.23506 0) (-0.138212 1.12096 0) (-0.125905 0.932451 0) (-0.136465 0.812125 0) (-0.135769 0.721743 0) (-0.154759 0.585154 0) (-0.185426 0.491253 0) (-0.179791 0.465145 0) (-0.158241 0.467491 0) (-0.123353 0.489827 0) (-0.0785952 0.544268 0) (-0.048963 0.696236 0) (-0.0116913 0.933854 0) (-0.0365333 0.584919 0) (0.00523381 0.907361 0) (-0.0474847 0.816042 0) (-0.200198 0.836422 0) (-0.349825 1.22804 0) (-0.195794 1.37534 0) (0.184593 1.03231 0) (0.387797 0.881087 0) (0.409148 0.871898 0) (0.361564 0.910653 0) (0.289003 0.979862 0) (0.200602 1.09177 0) (0.0991219 1.24982 0) (-0.00591135 1.37326 0) (-0.110164 1.40252 0) (-0.205237 1.40086 0) (-0.267562 1.36351 0) (-0.277767 1.2905 0) (-0.237562 1.1562 0) (-0.188747 0.987844 0) (-0.158098 0.832229 0) (-0.1382 0.720272 0) (-0.144547 0.609635 0) (-0.168258 0.490997 0) (-0.162267 0.449624 0) (-0.145252 0.44283 0) (-0.118081 0.454134 0) (-0.0802551 0.499715 0) (-0.0453701 0.658543 0) (-0.00458038 0.891741 0) (-0.0341381 0.619783 0) (-0.0246496 0.832333 0) (-0.0200142 0.919073 0) (-0.156045 0.987306 0) (-0.218849 1.20534 0) (0.0651595 1.06249 0) (0.349644 0.88127 0) (0.437963 0.866449 0) (0.430316 0.905399 0) (0.395377 0.967222 0) (0.352472 1.05471 0) (0.301093 1.19285 0) (0.173615 1.40176 0) (-0.0355347 1.51695 0) (-0.211371 1.51695 0) (-0.31173 1.47398 0) (-0.362879 1.39679 0) (-0.37238 1.28362 0) (-0.325993 1.13104 0) (-0.247214 0.976739 0) (-0.179879 0.83006 0) (-0.141403 0.709295 0) (-0.143515 0.632761 0) (-0.162021 0.491839 0) (-0.151763 0.438097 0) (-0.138207 0.42506 0) (-0.11889 0.426688 0) (-0.0865313 0.460375 0) (-0.0468308 0.612926 0) (-0.000520236 0.861296 0) (-0.0423943 0.677671 0) (-0.055292 0.763656 0) (-0.0119964 0.943838 0) (-0.0458551 1.04019 0) (0.0555005 1.06089 0) (0.306413 0.861504 0) (0.451229 0.828101 0) (0.473798 0.869975 0) (0.465304 0.931027 0) (0.44586 0.997754 0) (0.440211 1.07172 0) (0.429127 1.221 0) (0.224267 1.57837 0) (-0.172016 1.71823 0) (-0.423972 1.64922 0) (-0.508783 1.51386 0) (-0.52726 1.36293 0) (-0.493245 1.19306 0) (-0.392764 1.02296 0) (-0.27194 0.90579 0) (-0.196451 0.813569 0) (-0.175488 0.730766 0) (-0.174039 0.697153 0) (-0.153683 0.502043 0) (-0.146988 0.434101 0) (-0.13799 0.415292 0) (-0.123597 0.406505 0) (-0.0957955 0.426612 0) (-0.0546651 0.561172 0) (-0.00367151 0.834898 0) (-0.0282192 0.752838 0) (-0.0585774 0.737559 0) (-0.0128936 0.919218 0) (0.0860383 1.02798 0) (0.263888 0.89052 0) (0.445304 0.792293 0) (0.496039 0.81552 0) (0.506399 0.874643 0) (0.495641 0.941956 0) (0.475698 0.994978 0) (0.492487 1.01914 0) (0.464294 1.27657 0) (-0.0963357 1.8178 0) (-0.675502 1.86181 0) (-1.01612 1.60542 0) (-1.06545 1.43655 0) (-0.926033 1.35004 0) (-0.715618 1.22452 0) (-0.509338 1.10783 0) (-0.362175 1.0385 0) (-0.25276 0.964716 0) (-0.224385 0.857846 0) (-0.235732 0.691525 0) (-0.156176 0.496618 0) (-0.154006 0.431353 0) (-0.149147 0.40809 0) (-0.133006 0.389131 0) (-0.106018 0.396277 0) (-0.0642959 0.508644 0) (-0.0135403 0.804438 0) (0.00246879 0.796423 0) (-0.0298942 0.744678 0) (0.0135252 0.858502 0) (0.175971 0.914122 0) (0.375208 0.798133 0) (0.476081 0.762054 0) (0.514041 0.800192 0) (0.528186 0.865231 0) (0.496923 0.947145 0) (0.454495 0.973931 0) (0.458623 0.970711 0) (0.10733 1.62719 0) (-0.68761 2.38682 0) (-1.26676 2.21994 0) (-1.67552 1.6948 0) (-1.79954 1.19915 0) (-1.69036 0.936361 0) (-1.43034 0.847873 0) (-1.11957 0.846083 0) (-0.829043 0.852531 0) (-0.578927 0.837428 0) (-0.427934 0.837319 0) (-0.273202 0.637714 0) (-0.175117 0.466597 0) (-0.164631 0.426528 0) (-0.163305 0.395261 0) (-0.144036 0.369134 0) (-0.114287 0.366603 0) (-0.0717844 0.457741 0) (-0.0252796 0.764145 0) (0.0194448 0.799296 0) (0.0218382 0.751148 0) (0.0656729 0.796732 0) (0.224316 0.777925 0) (0.378816 0.720437 0) (0.465275 0.715773 0) (0.521506 0.759187 0) (0.534933 0.840316 0) (0.470231 0.951402 0) (0.418071 0.960264 0) (0.183428 1.1998 0) (-0.668491 2.34789 0) (-1.30266 2.73801 0) (-1.63193 2.37273 0) (-1.8493 1.73048 0) (-1.87363 1.1129 0) (-1.76469 0.788264 0) (-1.5164 0.665678 0) (-1.18991 0.676967 0) (-0.871666 0.729058 0) (-0.638441 0.758892 0) (-0.448277 0.723895 0) (-0.240046 0.479918 0) (-0.173689 0.429415 0) (-0.17332 0.423719 0) (-0.173365 0.37623 0) (-0.14984 0.344044 0) (-0.117436 0.336185 0) (-0.0750885 0.409563 0) (-0.0333131 0.714643 0) (0.0356125 0.762682 0) (0.0547418 0.74118 0) (0.112375 0.696405 0) (0.23715 0.65251 0) (0.355849 0.628317 0) (0.451505 0.640216 0) (0.520032 0.691258 0) (0.521025 0.798784 0) (0.447933 0.958128 0) (0.218895 1.10113 0) (-0.514218 1.93777 0) (-1.32122 2.89953 0) (-1.62625 2.95801 0) (-1.68776 2.41773 0) (-1.57865 1.59592 0) (-1.37398 0.850729 0) (-1.17339 0.462874 0) (-0.99086 0.337298 0) (-0.814371 0.380308 0) (-0.649206 0.485684 0) (-0.523989 0.571859 0) (-0.343752 0.496391 0) (-0.210867 0.386209 0) (-0.186415 0.406618 0) (-0.183203 0.421807 0) (-0.177257 0.352429 0) (-0.149864 0.315183 0) (-0.115837 0.305473 0) (-0.0757498 0.364193 0) (-0.0370134 0.658417 0) (0.041115 0.716568 0) (0.0741371 0.713707 0) (0.137715 0.604508 0) (0.230432 0.546213 0) (0.334035 0.530738 0) (0.433741 0.545855 0) (0.500248 0.606301 0) (0.487519 0.753038 0) (0.281592 1.05608 0) (-0.304512 1.65495 0) (-1.15823 2.70101 0) (-1.63109 3.25342 0) (-1.66546 3.02951 0) (-1.48237 2.2809 0) (-1.10965 1.29345 0) (-0.845189 0.593751 0) (-0.710806 0.300219 0) (-0.657313 0.239731 0) (-0.60705 0.29756 0) (-0.539276 0.391525 0) (-0.432214 0.454787 0) (-0.309282 0.367616 0) (-0.238538 0.343268 0) (-0.217936 0.385517 0) (-0.190404 0.405456 0) (-0.174643 0.327113 0) (-0.147829 0.285229 0) (-0.112988 0.275659 0) (-0.0769184 0.322407 0) (-0.0390316 0.599764 0) (0.0411283 0.660605 0) (0.0832434 0.673549 0) (0.141089 0.539689 0) (0.205182 0.464727 0) (0.298426 0.434663 0) (0.402525 0.438642 0) (0.474449 0.502413 0) (0.397014 0.779684 0) (-0.0579562 1.46154 0) (-0.735284 2.34365 0) (-1.30959 3.0973 0) (-1.52196 3.31889 0) (-1.39609 2.84141 0) (-1.07202 1.90729 0) (-0.725278 0.987835 0) (-0.571969 0.455339 0) (-0.536757 0.26621 0) (-0.547171 0.234053 0) (-0.534149 0.26658 0) (-0.487782 0.321033 0) (-0.399198 0.34294 0) (-0.327034 0.304328 0) (-0.285383 0.304858 0) (-0.249508 0.347144 0) (-0.193836 0.366309 0) (-0.171526 0.30497 0) (-0.147559 0.255181 0) (-0.111108 0.24541 0) (-0.0772236 0.284948 0) (-0.0401679 0.536584 0) (0.040446 0.590742 0) (0.0896905 0.653969 0) (0.110063 0.511935 0) (0.147754 0.404502 0) (0.231922 0.337893 0) (0.35153 0.306756 0) (0.489694 0.414106 0) (0.330691 1.05216 0) (-0.149473 1.87148 0) (-0.644789 2.71297 0) (-1.00347 3.29992 0) (-1.09596 3.25791 0) (-0.949864 2.62253 0) (-0.697818 1.60941 0) (-0.523458 0.815234 0) (-0.474137 0.40425 0) (-0.47564 0.273317 0) (-0.494672 0.242371 0) (-0.495673 0.241898 0) (-0.466027 0.262289 0) (-0.41621 0.27365 0) (-0.369937 0.26142 0) (-0.328185 0.261376 0) (-0.276679 0.286222 0) (-0.203793 0.313695 0) (-0.172508 0.285683 0) (-0.153293 0.222116 0) (-0.113037 0.211073 0) (-0.07584 0.247092 0) (-0.038055 0.470526 0) (0.073962 0.602108 0) (0.0669864 0.703657 0) (0.0286005 0.499918 0) (0.0554846 0.358193 0) (0.118894 0.256303 0) (0.23564 0.178089 0) (0.409453 0.373752 0) (0.483436 1.2536 0) (0.172573 2.16533 0) (-0.171492 2.98033 0) (-0.416646 3.42941 0) (-0.48896 3.2048 0) (-0.43955 2.46023 0) (-0.388076 1.48141 0) (-0.392006 0.759478 0) (-0.406101 0.390984 0) (-0.423277 0.283903 0) (-0.445735 0.254319 0) (-0.466959 0.235842 0) (-0.4672 0.231157 0) (-0.443967 0.226797 0) (-0.405482 0.215675 0) (-0.358884 0.209383 0) (-0.300187 0.209612 0) (-0.22926 0.237543 0) (-0.181577 0.260679 0) (-0.167334 0.181244 0) (-0.12251 0.169176 0) (-0.0821367 0.204827 0) (-0.0379412 0.40085 0) (0.0784337 0.460502 0) (-0.0303219 0.808762 0) (-0.079586 0.466002 0) (-0.0293159 0.306397 0) (0.0245711 0.195022 0) (0.0670379 0.0854124 0) (0.283227 0.165827 0) (0.50918 1.2191 0) (0.586406 2.33227 0) (0.392877 3.17143 0) (0.225575 3.54444 0) (0.138811 3.22868 0) (0.071118 2.46112 0) (-0.0646284 1.51975 0) (-0.226352 0.785847 0) (-0.32117 0.409613 0) (-0.372406 0.313584 0) (-0.41229 0.283832 0) (-0.465608 0.257829 0) (-0.504134 0.224134 0) (-0.487206 0.19941 0) (-0.438362 0.179119 0) (-0.38508 0.168162 0) (-0.323265 0.157464 0) (-0.261127 0.180148 0) (-0.198777 0.221275 0) (-0.185357 0.128023 0) (-0.13775 0.120932 0) (-0.0969567 0.161464 0) (-0.0432388 0.319929 0) (-0.0213671 0.380103 0) (-0.066314 0.825571 0) (-0.118398 0.427359 0) (-0.0569199 0.249381 0) (-0.0201312 0.140324 0) (0.0180269 0.0504023 0) (0.0784575 0.109335 0) (0.395602 0.830433 0) (0.768205 2.27893 0) (0.832046 3.24154 0) (0.781427 3.62213 0) (0.716067 3.30507 0) (0.568088 2.51518 0) (0.34453 1.67286 0) (0.0568752 0.896271 0) (-0.157669 0.467713 0) (-0.293991 0.348161 0) (-0.401525 0.33193 0) (-0.515265 0.308711 0) (-0.604695 0.232279 0) (-0.624246 0.153137 0) (-0.573711 0.125591 0) (-0.486598 0.140328 0) (-0.390501 0.131887 0) (-0.30868 0.142368 0) (-0.214791 0.170534 0) (-0.191908 0.0668769 0) (-0.141292 0.0730787 0) (-0.114374 0.127687 0) (-0.0532814 0.228285 0) (-0.0524687 0.368878 0) (0.0514471 0.778922 0) (-0.0650347 0.389777 0) (-0.078878 0.224516 0) (-0.0188701 0.13021 0) (0.0019738 0.09229 0) (-0.0426393 0.161069 0) (0.168665 0.668176 0) (0.67489 2.02644 0) (1.06383 3.12969 0) (1.17643 3.60929 0) (1.17874 3.3704 0) (1.03677 2.67573 0) (0.808165 1.89344 0) (0.487232 1.1152 0) (0.168719 0.60515 0) (-0.102383 0.406258 0) (-0.328598 0.385194 0) (-0.52723 0.373864 0) (-0.658209 0.280144 0) (-0.69196 0.13991 0) (-0.658836 0.0543291 0) (-0.570563 0.0329857 0) (-0.469995 0.0304802 0) (-0.398066 0.025498 0) (-0.257212 0.0769167 0) (-0.179 -0.000555704 0) (-0.122346 0.0311593 0) (-0.122252 0.126111 0) (-0.0720734 0.14379 0) (-0.0194727 0.277468 0) (0.147693 0.657651 0) (0.0680269 0.533547 0) (-0.0331086 0.187533 0) (-0.0338239 0.145078 0) (0.0419808 0.110382 0) (-0.0541421 0.24586 0) (0.0606873 0.355602 0) (0.396253 1.48797 0) (1.01697 2.77712 0) (1.31348 3.43993 0) (1.41575 3.34147 0) (1.34923 2.77539 0) (1.15559 2.0277 0) (0.863687 1.30818 0) (0.536109 0.864321 0) (0.192385 0.632554 0) (-0.106822 0.555166 0) (-0.358302 0.461797 0) (-0.548957 0.298425 0) (-0.64944 0.126021 0) (-0.653888 0.0101834 0) (-0.593617 -0.0241803 0) (-0.516933 -0.0146019 0) (-0.462741 -0.0398518 0) (-0.272436 -0.0359626 0) (-0.149988 -0.0631495 0) (-0.0801011 -0.0103646 0) (-0.117129 0.205677 0) (-0.0970309 0.0603704 0) (0.00804266 0.149348 0) (0.12852 0.624368 0) (0.108534 0.487152 0) (0.122083 0.291737 0) (0.128913 0.102395 0) (0.179546 0.100511 0) (0.154394 0.361634 0) (0.0449007 0.358372 0) (0.170197 1.065 0) (0.748751 2.32087 0) (1.18341 3.10855 0) (1.41976 3.18901 0) (1.46599 2.78289 0) (1.35141 2.15133 0) (1.10192 1.51518 0) (0.77769 1.05164 0) (0.451857 0.792001 0) (0.162347 0.678727 0) (-0.105384 0.582372 0) (-0.351198 0.401888 0) (-0.528003 0.155188 0) (-0.613168 -0.0159319 0) (-0.5844 -0.109458 0) (-0.525777 -0.115481 0) (-0.479199 -0.165966 0) (-0.308566 -0.184728 0) (-0.170346 -0.109304 0) (-0.0405455 -0.0666156 0) (-0.0602492 0.311884 0) (-0.10566 -0.0878695 0) (-0.0289097 0.0752564 0) (0.0982108 0.596439 0) (0.110508 0.43073 0) (0.17737 0.209584 0) (0.240826 0.0844772 0) (0.304052 0.0515887 0) (0.340613 0.327319 0) (0.197513 0.54863 0) (0.139327 0.764196 0) (0.439963 1.85058 0) (0.905998 2.65107 0) (1.2604 2.90714 0) (1.413 2.69045 0) (1.38701 2.21619 0) (1.21111 1.69655 0) (0.945657 1.28424 0) (0.659798 1.01526 0) (0.398396 0.848858 0) (0.156591 0.705633 0) (-0.117318 0.512468 0) (-0.327966 0.242992 0) (-0.477755 0.00909735 0) (-0.511275 -0.147145 0) (-0.483527 -0.18005 0) (-0.442642 -0.235941 0) (-0.37358 -0.280159 0) (-0.282259 -0.165483 0) (0.0530945 -0.141751 0) (0.0649847 0.426197 0) (0.0318548 -0.145633 0) (-0.0482276 0.031673 0) (0.0860919 0.519962 0) (0.131554 0.373139 0) (0.195846 0.140553 0) (0.250836 -0.0116151 0) (0.325733 -0.0508736 0) (0.387525 0.263518 0) (0.349399 0.577707 0) (0.231195 0.747652 0) (0.300156 1.51595 0) (0.675405 2.19274 0) (1.0531 2.55499 0) (1.27122 2.51801 0) (1.32436 2.22195 0) (1.22964 1.83474 0) (1.04132 1.49207 0) (0.812707 1.23621 0) (0.589674 1.04767 0) (0.385893 0.868083 0) (0.157075 0.640297 0) (-0.106626 0.345707 0) (-0.257604 0.059898 0) (-0.378832 -0.125694 0) (-0.39685 -0.213927 0) (-0.357988 -0.270951 0) (-0.321682 -0.315203 0) (-0.212948 -0.36115 0) (-0.0298575 -0.387286 0) (0.0142718 0.436 0) (0.102434 -0.110247 0) (-0.0834201 -0.0120955 0) (0.0805477 0.413257 0) (0.155449 0.289757 0) (0.210233 0.0898634 0) (0.238445 -0.0718834 0) (0.287507 -0.141719 0) (0.363474 0.176508 0) (0.41691 0.551541 0) (0.351279 0.766054 0) (0.330018 1.25336 0) (0.579205 1.80729 0) (0.894621 2.21218 0) (1.12135 2.31916 0) (1.21984 2.17572 0) (1.19692 1.91617 0) (1.08082 1.65153 0) (0.913208 1.42482 0) (0.733359 1.23163 0) (0.563966 1.03927 0) (0.389738 0.798551 0) (0.147246 0.495375 0) (-0.0755516 0.164839 0) (-0.229541 -0.0749528 0) (-0.28154 -0.223461 0) (-0.256431 -0.324545 0) (-0.226787 -0.381181 0) (-0.185128 -0.392856 0) (-0.114436 -0.349998 0) (-0.102455 0.336695 0) (0.106794 -0.103989 0) (-0.106791 -0.0276933 0) (0.0680235 0.291584 0) (0.168643 0.204619 0) (0.200511 0.0564114 0) (0.187134 -0.110012 0) (0.210632 -0.215832 0) (0.272134 0.0377577 0) (0.406767 0.440327 0) (0.463342 0.74905 0) (0.476233 1.13195 0) (0.607785 1.54689 0) (0.823945 1.92977 0) (1.01648 2.12613 0) (1.12673 2.09964 0) (1.14388 1.94837 0) (1.08142 1.75673 0) (0.967354 1.56742 0) (0.831988 1.38293 0) (0.696236 1.18865 0) (0.560816 0.951381 0) (0.385883 0.648856 0) (0.156548 0.315934 0) (-0.0186017 0.00274991 0) (-0.14163 -0.191218 0) (-0.179003 -0.334709 0) (-0.164598 -0.424053 0) (-0.165825 -0.446941 0) (-0.127396 -0.402414 0) (-0.135764 0.215659 0) (0.122916 -0.118975 0) (-0.11871 0.00746208 0) (0.0484241 0.100732 0) (0.138197 0.128809 0) (0.155909 0.0701925 0) (0.111537 -0.102596 0) (0.107676 -0.261756 0) (0.169895 -0.0675276 0) (0.359684 0.276897 0) (0.532979 0.638442 0) (0.632376 1.0281 0) (0.716234 1.38841 0) (0.840099 1.73192 0) (0.97611 1.96914 0) (1.06867 2.02359 0) (1.09567 1.95298 0) (1.06294 1.82156 0) (0.987561 1.6674 0) (0.890597 1.49825 0) (0.78503 1.30775 0) (0.676548 1.08061 0) (0.546726 0.794006 0) (0.356632 0.463222 0) (0.150477 0.152505 0) (-0.0254616 -0.124177 0) (-0.120564 -0.314525 0) (-0.120147 -0.43814 0) (-0.133284 -0.458142 0) (-0.123544 -0.413051 0) (-0.134029 0.0651094 0) (0.140187 -0.157734 0) (-0.0321486 0.0128745 0) (0.00284233 0.0127484 0) (0.0586637 0.0330147 0) (0.0945129 0.100761 0) (0.0634173 -0.0815645 0) (0.0395851 -0.255975 0) (0.0259884 -0.197604 0) (0.224855 0.0622794 0) (0.510416 0.455965 0) (0.718289 0.895136 0) (0.82194 1.28528 0) (0.893541 1.6156 0) (0.974465 1.86295 0) (1.03718 1.96651 0) (1.05647 1.94964 0) (1.0361 1.86265 0) (0.985599 1.7366 0) (0.917922 1.58382 0) (0.838175 1.40279 0) (0.74961 1.18558 0) (0.647859 0.921043 0) (0.504673 0.609826 0) (0.314982 0.300251 0) (0.1372 0.0268852 0) (-0.0359886 -0.256178 0) (-0.0752423 -0.442871 0) (-0.0820742 -0.45923 0) (-0.0945157 -0.412897 0) (-0.114734 -0.115791 0) (0.18867 -0.125462 0) (-0.00854815 0.0301327 0) (-0.00949206 -0.0207987 0) (0.0131845 -0.0154294 0) (0.0753427 0.0605252 0) (0.0865319 -0.0730495 0) (0.0473787 -0.200402 0) (-0.00315324 -0.2164 0) (0.0557564 -0.149852 0) (0.311924 0.198737 0) (0.642967 0.709072 0) (0.823638 1.18255 0) (0.896632 1.54401 0) (0.951811 1.79977 0) (0.994042 1.93154 0) (1.00573 1.94963 0) (0.992068 1.89119 0) (0.961016 1.78447 0) (0.917132 1.64723 0) (0.85931 1.47894 0) (0.787109 1.2742 0) (0.699526 1.02829 0) (0.582577 0.742369 0) (0.414247 0.443002 0) (0.234592 0.173435 0) (0.0288058 -0.127855 0) (-0.057034 -0.441754 0) (-0.0545842 -0.482473 0) (-0.0557538 -0.446778 0) (-0.0275877 -0.250557 0) (0.0380082 -0.0896227 0) (0.00560866 0.0373842 0) (0.0106224 -0.0427241 0) (0.0294016 -0.0692837 0) (0.0853635 -0.000451698 0) (0.113282 -0.0767987 0) (0.0718806 -0.159905 0) (0.023677 -0.166571 0) (-0.0244814 -0.135927 0) (0.0445217 -0.0759685 0) (0.33007 0.44942 0) (0.6392 1.04235 0) (0.77385 1.47288 0) (0.848357 1.75441 0) (0.896279 1.91093 0) (0.912472 1.95308 0) (0.910778 1.90994 0) (0.901816 1.81467 0) (0.883598 1.69126 0) (0.848675 1.53854 0) (0.793033 1.35131 0) (0.716596 1.12549 0) (0.612051 0.866523 0) (0.463322 0.589894 0) (0.28016 0.321273 0) (0.0745626 0.0500497 0) (-0.0377956 -0.419838 0) (-0.0414495 -0.511145 0) (-0.0185221 -0.498403 0) (-0.0188624 -0.314822 0) (0.000243828 -0.0748413 0) (0.0225621 0.0321774 0) (0.0418814 -0.061484 0) (0.0700891 -0.0972368 0) (0.0975111 -0.0708808 0) (0.117316 -0.0806115 0) (0.0797658 -0.147159 0) (0.0445976 -0.133703 0) (-0.0119987 -0.0667907 0) (-0.0849781 -0.0149406 0) (-0.0402104 0.215846 0) (0.231657 0.856779 0) (0.478082 1.37927 0) (0.618295 1.70186 0) (0.707023 1.89009 0) (0.748151 1.95344 0) (0.77146 1.91611 0) (0.79427 1.82476 0) (0.809062 1.71443 0) (0.801717 1.58146 0) (0.767173 1.41682 0) (0.70428 1.21693 0) (0.610135 0.986113 0) (0.476386 0.738845 0) (0.288029 0.481819 0) (0.103398 0.183934 0) (-0.0447521 -0.332858 0) (-0.0305081 -0.530433 0) (-0.0044986 -0.526095 0) (-0.0105482 -0.324051 0) (-0.00233929 -0.0454171 0) (0.0609684 0.00805009 0) (0.0658239 -0.0764468 0) (0.0997839 -0.113902 0) (0.116632 -0.109271 0) (0.123554 -0.0976302 0) (0.103737 -0.13912 0) (0.0607113 -0.0946162 0) (-0.0129669 -0.0146497 0) (-0.141957 0.106612 0) (-0.257262 0.25206 0) (-0.162724 0.704266 0) (0.0614744 1.25293 0) (0.260027 1.61476 0) (0.408174 1.84856 0) (0.496037 1.93775 0) (0.563716 1.90178 0) (0.630678 1.81134 0) (0.686786 1.7165 0) (0.713523 1.60905 0) (0.706196 1.47392 0) (0.667548 1.30489 0) (0.595252 1.10756 0) (0.486135 0.886928 0) (0.336315 0.635716 0) (0.202264 0.312749 0) (0.0582347 -0.228789 0) (0.0120306 -0.453144 0) (0.0321306 -0.427262 0) (-0.0132121 -0.22088 0) (-0.022678 -0.0217514 0) (0.0462193 -0.0473194 0) (0.0573727 -0.0992683 0) (0.0947066 -0.131921 0) (0.125164 -0.133518 0) (0.143062 -0.114917 0) (0.173924 -0.121561 0) (0.126629 -0.00570925 0) (-0.0250729 0.121534 0) (-0.205001 0.278943 0) (-0.363261 0.41852 0) (-0.405277 0.766278 0) (-0.301189 1.24603 0) (-0.127913 1.53232 0) (0.0376133 1.78915 0) (0.181199 1.90506 0) (0.309442 1.87099 0) (0.425993 1.78544 0) (0.524025 1.71412 0) (0.587381 1.63901 0) (0.613732 1.53889 0) (0.614266 1.39894 0) (0.583818 1.22998 0) (0.511563 1.03 0) (0.43638 0.790802 0) (0.377137 0.45739 0) (0.374357 0.129226 0) (0.188854 -0.15473 0) (0.0637101 -0.211567 0) (-0.126816 -0.058704 0) (-0.151472 0.00432979 0) (0.0261806 -0.0585309 0) (0.0427072 -0.133987 0) (0.0879541 -0.163032 0) (0.132652 -0.162078 0) (0.183477 -0.15586 0) (0.284506 -0.121969 0) (0.252938 0.143105 0) (-0.0145872 0.332645 0) (-0.3 0.406055 0) (-0.551891 0.450933 0) (-0.690189 0.7264 0) (-0.645103 1.21027 0) (-0.496151 1.53519 0) (-0.309251 1.77115 0) (-0.0987321 1.84276 0) (0.0788701 1.81137 0) (0.232677 1.73814 0) (0.362245 1.69568 0) (0.458957 1.65132 0) (0.520769 1.57982 0) (0.557669 1.45873 0) (0.591805 1.35466 0) (0.595048 1.17735 0) (0.557698 0.876682 0) (0.581402 0.641396 0) (0.408446 0.227204 0) (0.248632 0.157214 0) (0.114884 0.0128347 0) (-0.0765811 0.218154 0) (-0.113724 -0.265273 0) (0.0260008 -0.0975354 0) (0.0458763 -0.174377 0) (0.102646 -0.204067 0) (0.149303 -0.208751 0) (0.289981 -0.215682 0) (0.360514 -0.146906 0) (0.227329 0.216322 0) (0.0589308 0.452373 0) (-0.16057 0.611253 0) (-0.490089 0.707826 0) (-0.807946 0.835663 0) (-0.881878 1.09402 0) (-0.744365 1.44221 0) (-0.513512 1.64991 0) (-0.270481 1.78535 0) (-0.0540403 1.77357 0) (0.125203 1.72541 0) (0.269976 1.71231 0) (0.387646 1.69556 0) (0.4809 1.6489 0) (0.554339 1.53532 0) (0.62459 1.37993 0) (0.688203 1.25166 0) (0.517885 1.01754 0) (0.246459 0.769972 0) (-0.0273577 0.59698 0) (-0.0485145 0.261964 0) (0.0133592 0.0319352 0) (-0.0567297 0.226958 0) (0.0248482 -0.267732 0) (0.0402594 -0.151789 0) (0.0647093 -0.221075 0) (0.133355 -0.25066 0) (0.196602 -0.289089 0) (0.339369 -0.347838 0) (0.3559 -0.114329 0) (0.193641 0.226269 0) (0.0952451 0.504881 0) (-0.0417239 0.681828 0) (-0.246887 0.804543 0) (-0.526583 0.930576 0) (-0.739797 1.0111 0) (-0.769235 1.21177 0) (-0.593689 1.44231 0) (-0.335796 1.62255 0) (-0.0957105 1.65126 0) (0.0843461 1.64572 0) (0.215224 1.65264 0) (0.322782 1.64644 0) (0.42384 1.60804 0) (0.520457 1.49429 0) (0.541239 1.35156 0) (0.429232 1.29391 0) (0.0638316 1.38245 0) (-0.448504 1.20002 0) (-0.568606 0.565465 0) (-0.310666 0.000108984 0) (-0.0993778 -0.0148388 0) (-0.0897979 0.181579 0) (0.0513097 -0.305364 0) (0.0581972 -0.235965 0) (0.0898293 -0.280901 0) (0.171914 -0.305086 0) (0.275701 -0.352173 0) (0.366712 -0.423178 0) (0.326377 -0.0851929 0) (0.210656 0.301058 0) (0.133285 0.612959 0) (0.0306857 0.813637 0) (-0.087216 0.920869 0) (-0.21903 0.994805 0) (-0.380348 1.0717 0) (-0.505816 1.12738 0) (-0.493379 1.16563 0) (-0.362917 1.33984 0) (-0.178665 1.41188 0) (-0.0398779 1.4652 0) (0.056024 1.50906 0) (0.12896 1.51342 0) (0.186217 1.48355 0) (0.191512 1.37596 0) (0.0796184 1.44627 0) (-0.189692 1.59507 0) (-0.5357 1.72689 0) (-0.804344 1.30691 0) (-0.672467 0.299167 0) (-0.397537 -0.305697 0) (-0.171386 -0.155715 0) (-0.0957594 0.089968 0) (0.0528677 -0.370572 0) (0.065591 -0.365167 0) (0.109702 -0.376356 0) (0.217835 -0.388314 0) (0.369947 -0.443793 0) (0.470422 -0.431557 0) (0.352502 -0.0288241 0) (0.243735 0.375565 0) (0.161011 0.70239 0) (0.0704584 0.914604 0) (-0.0145384 1.01762 0) (-0.0842998 1.05386 0) (-0.148507 1.05992 0) (-0.219544 1.08097 0) (-0.286181 1.1282 0) (-0.29725 1.20358 0) (-0.253817 1.28137 0) (-0.209916 1.36367 0) (-0.176681 1.42393 0) (-0.163108 1.45066 0) (-0.183054 1.46441 0) (-0.276076 1.4865 0) (-0.436866 1.5724 0) (-0.610406 1.68658 0) (-0.698689 1.69385 0) (-0.708664 1.16538 0) (-0.542003 0.0342949 0) (-0.383789 -0.551812 0) (-0.210848 -0.314421 0) (-0.101118 0.00185274 0) (0.0832913 -0.399249 0) (0.113456 -0.448697 0) (0.148168 -0.467015 0) (0.284926 -0.499095 0) (0.503241 -0.508708 0) (0.609929 -0.383491 0) (0.399217 0.0591532 0) (0.265023 0.468514 0) (0.162408 0.792544 0) (0.0718814 0.996478 0) (-0.000183159 1.08825 0) (-0.0564477 1.11147 0) (-0.102946 1.09044 0) (-0.150218 1.05369 0) (-0.207883 1.03785 0) (-0.264195 1.07064 0) (-0.305979 1.12886 0) (-0.334181 1.2002 0) (-0.353106 1.26323 0) (-0.379678 1.31044 0) (-0.426271 1.3561 0) (-0.499821 1.4196 0) (-0.573037 1.5342 0) (-0.60535 1.64489 0) (-0.559501 1.59845 0) (-0.488347 1.031 0) (-0.417796 -0.0692839 0) (-0.335803 -0.704348 0) (-0.223133 -0.457446 0) (-0.0823728 -0.11313 0) (0.0822817 -0.424546 0) (0.0540315 -0.616982 0) (0.104849 -0.488897 0) (0.414965 -0.535085 0) (0.570213 -0.692587 0) (0.608145 -0.299157 0) (0.367465 0.179081 0) (0.229797 0.581108 0) (0.118589 0.889698 0) (0.0318128 1.07212 0) (-0.0285798 1.14662 0) (-0.0752519 1.16143 0) (-0.117396 1.14112 0) (-0.162846 1.10434 0) (-0.217625 1.07475 0) (-0.278022 1.07478 0) (-0.333237 1.10394 0) (-0.375558 1.15692 0) (-0.405347 1.21831 0) (-0.431984 1.28038 0) (-0.460509 1.34945 0) (-0.488263 1.43381 0) (-0.494575 1.5363 0) (-0.454651 1.60158 0) (-0.350957 1.48946 0) (-0.275047 0.938354 0) (-0.269524 -0.143873 0) (-0.256784 -0.791579 0) (-0.192606 -0.589674 0) (-0.063071 -0.270675 0) (0.120795 -0.406845 0) (-0.100975 -0.566759 0) (0.0242312 -0.593006 0) (0.225905 -0.853408 0) (0.433267 -0.680429 0) (0.405124 -0.220259 0) (0.245902 0.286263 0) (0.134141 0.688297 0) (0.0381502 0.980004 0) (-0.0323311 1.13694 0) (-0.0788367 1.19417 0) (-0.114938 1.20195 0) (-0.14821 1.18353 0) (-0.184424 1.15648 0) (-0.228868 1.13806 0) (-0.279387 1.13786 0) (-0.326062 1.15832 0) (-0.360978 1.19849 0) (-0.382999 1.25028 0) (-0.39569 1.30708 0) (-0.399881 1.36908 0) (-0.38961 1.43506 0) (-0.348456 1.49776 0) (-0.267966 1.51583 0) (-0.148493 1.37835 0) (-0.0629412 0.880353 0) (-0.121002 -0.159234 0) (-0.185063 -0.820316 0) (-0.134201 -0.687381 0) (-0.0417471 -0.437888 0) (0.126927 -0.369292 0) (-0.0707871 -0.455791 0) (0.0239 -0.655383 0) (0.0800065 -0.876641 0) (0.146572 -0.767446 0) (0.192197 -0.203402 0) (0.0976606 0.353235 0) (0.0148971 0.767279 0) (-0.053168 1.04686 0) (-0.100074 1.18418 0) (-0.132754 1.22917 0) (-0.158661 1.23204 0) (-0.180465 1.21283 0) (-0.201455 1.19019 0) (-0.228535 1.1802 0) (-0.261923 1.1829 0) (-0.292964 1.19693 0) (-0.31293 1.22507 0) (-0.32033 1.26439 0) (-0.31564 1.30879 0) (-0.297897 1.3549 0) (-0.262096 1.39656 0) (-0.198401 1.42555 0) (-0.101368 1.41176 0) (0.0192785 1.2698 0) (0.115138 0.846496 0) (0.00412259 -0.0453387 0) (-0.137704 -0.820087 0) (-0.0970029 -0.775587 0) (-0.0259885 -0.59207 0) (0.110257 -0.338433 0) (-0.0485225 -0.43401 0) (0.0104127 -0.672396 0) (-0.000304199 -0.916602 0) (0.0134968 -0.836319 0) (0.0487025 -0.204653 0) (-0.0213344 0.398314 0) (-0.0842638 0.820535 0) (-0.126959 1.08587 0) (-0.153521 1.21409 0) (-0.175142 1.2526 0) (-0.192044 1.25119 0) (-0.20247 1.22811 0) (-0.208342 1.20684 0) (-0.217461 1.20254 0) (-0.232576 1.2078 0) (-0.246923 1.21569 0) (-0.251176 1.23267 0) (-0.243816 1.26016 0) (-0.224729 1.29128 0) (-0.192488 1.32153 0) (-0.143935 1.34161 0) (-0.0735268 1.34241 0) (0.0232987 1.30467 0) (0.135642 1.16829 0) (0.225328 0.82583 0) (0.128948 0.113659 0) (-0.097953 -0.765708 0) (-0.104369 -0.860157 0) (-0.0408326 -0.708724 0) (0.0072932 -0.315257 0) (-0.0463047 -0.412076 0) (-0.023502 -0.700388 0) (-0.039866 -0.910532 0) (-0.0475352 -0.856712 0) (-0.0426367 -0.196949 0) (-0.1024 0.435116 0) (-0.148778 0.85698 0) (-0.174054 1.10917 0) (-0.187857 1.23142 0) (-0.200375 1.26662 0) (-0.209018 1.26115 0) (-0.209255 1.23217 0) (-0.203338 1.20935 0) (-0.197865 1.20858 0) (-0.196922 1.21649 0) (-0.196594 1.21927 0) (-0.188054 1.226 0) (-0.169304 1.24306 0) (-0.140639 1.26203 0) (-0.100921 1.2786 0) (-0.049351 1.28255 0) (0.0160691 1.26313 0) (0.0996886 1.20799 0) (0.191114 1.08054 0) (0.256712 0.811247 0) (0.19372 0.268624 0) (-0.0925689 -0.568933 0) (-0.155193 -0.88216 0) (-0.10549 -0.762472 0) (-0.0763568 -0.37187 0) (-0.0466919 -0.389444 0) (-0.0428547 -0.699473 0) (-0.0662495 -0.892245 0) (-0.0765211 -0.843589 0) (-0.0977131 -0.170259 0) (-0.150796 0.466968 0) (-0.180995 0.880346 0) (-0.194203 1.12149 0) (-0.200089 1.24045 0) (-0.205905 1.27376 0) (-0.207835 1.26271 0) (-0.200874 1.22648 0) (-0.187552 1.1999 0) (-0.172192 1.20059 0) (-0.158908 1.21096 0) (-0.146884 1.21073 0) (-0.129485 1.20886 0) (-0.103453 1.21753 0) (-0.069771 1.22697 0) (-0.0280816 1.23369 0) (0.0202111 1.22804 0) (0.0743377 1.19719 0) (0.137121 1.13235 0) (0.200178 1.01755 0) (0.236879 0.802936 0) (0.195494 0.384937 0) (-0.0577625 -0.362416 0) (-0.138772 -0.87207 0) (-0.108321 -0.778262 0) (-0.0678101 -0.488013 0) (-0.0407548 -0.360634 0) (-0.0562082 -0.688765 0) (-0.0880967 -0.869301 0) (-0.0994872 -0.81154 0) (-0.135597 -0.133821 0) (-0.175173 0.490418 0) (-0.188944 0.893305 0) (-0.191523 1.12699 0) (-0.191869 1.24337 0) (-0.193005 1.275 0) (-0.190472 1.25742 0) (-0.179016 1.21388 0) (-0.162427 1.18387 0) (-0.142509 1.18389 0) (-0.121003 1.19494 0) (-0.100245 1.19365 0) (-0.0771894 1.18528 0) (-0.04746 1.18749 0) (-0.0122087 1.19036 0) (0.0277466 1.1914 0) (0.0695568 1.18255 0) (0.110233 1.14893 0) (0.150458 1.08273 0) (0.184626 0.983127 0) (0.194468 0.808204 0) (0.158738 0.464085 0) (0.019164 -0.213795 0) (-0.0169485 -0.824113 0) (-0.0440792 -0.78597 0) (0.0139352 -0.508674 0) (-0.0311906 -0.332628 0) (-0.0690696 -0.648451 0) (-0.114664 -0.83522 0) (-0.13142 -0.765695 0) (-0.170184 -0.102009 0) (-0.184592 0.501743 0) (-0.179563 0.892593 0) (-0.170381 1.12426 0) (-0.164778 1.24057 0) (-0.162322 1.27177 0) (-0.157859 1.24927 0) (-0.146688 1.2003 0) (-0.13098 1.16657 0) (-0.110197 1.16287 0) (-0.0845389 1.17193 0) (-0.0579347 1.1708 0) (-0.0313489 1.15846 0) (-0.000509507 1.15607 0) (0.0340988 1.15517 0) (0.0703512 1.15439 0) (0.104915 1.14747 0) (0.132967 1.11845 0) (0.152633 1.05791 0) (0.160159 0.97507 0) (0.144136 0.829823 0) (0.0925246 0.513342 0) (0.0655695 -0.175115 0) (0.0703086 -0.772318 0) (0.012572 -0.765092 0) (0.0130899 -0.500885 0) (-0.0402764 -0.301851 0) (-0.0930596 -0.597981 0) (-0.149748 -0.797035 0) (-0.167262 -0.715087 0) (-0.200772 -0.0802325 0) (-0.18476 0.495015 0) (-0.158142 0.875996 0) (-0.134146 1.11293 0) (-0.122019 1.23458 0) (-0.117434 1.26844 0) (-0.114473 1.2432 0) (-0.107657 1.18921 0) (-0.0959503 1.1505 0) (-0.0766894 1.14114 0) (-0.0504388 1.14594 0) (-0.0208898 1.14462 0) (0.00790686 1.13079 0) (0.038446 1.1253 0) (0.0714269 1.12293 0) (0.10383 1.12322 0) (0.132537 1.12168 0) (0.151053 1.10293 0) (0.15616 1.05565 0) (0.14441 0.991068 0) (0.108736 0.86977 0) (0.0437326 0.552552 0) (0.0751499 -0.206716 0) (0.0789844 -0.724553 0) (0.0101462 -0.701001 0) (-0.0360158 -0.475842 0) (-0.0718169 -0.26382 0) (-0.10855 -0.545341 0) (-0.161312 -0.768692 0) (-0.181361 -0.66497 0) (-0.217936 -0.0711442 0) (-0.182772 0.468419 0) (-0.133828 0.84279 0) (-0.0921362 1.09227 0) (-0.0708868 1.22499 0) (-0.0641251 1.2659 0) (-0.0645194 1.24154 0) (-0.065024 1.184 0) (-0.0597062 1.13842 0) (-0.0437193 1.1213 0) (-0.0192848 1.12023 0) (0.010346 1.11684 0) (0.0401033 1.10333 0) (0.0698764 1.09586 0) (0.101227 1.09346 0) (0.131065 1.09626 0) (0.156457 1.10192 0) (0.170379 1.09646 0) (0.168877 1.06486 0) (0.149524 1.01978 0) (0.107908 0.91689 0) (0.0574279 0.579481 0) (0.108027 -0.243672 0) (0.0827152 -0.673964 0) (0.014091 -0.615372 0) (-0.0459621 -0.518203 0) (-0.0770358 -0.216034 0) (-0.0932233 -0.507448 0) (-0.12744 -0.754059 0) (-0.169662 -0.599183 0) (-0.220049 -0.0536822 0) (-0.184136 0.428297 0) (-0.11623 0.791971 0) (-0.0545798 1.05795 0) (-0.0206844 1.20987 0) (-0.0103585 1.26452 0) (-0.0138621 1.24638 0) (-0.0223595 1.18691 0) (-0.0245225 1.13233 0) (-0.0134375 1.10511 0) (0.00769996 1.09746 0) (0.0350053 1.09002 0) (0.0640898 1.07691 0) (0.0931986 1.06812 0) (0.123636 1.06604 0) (0.152982 1.07154 0) (0.178121 1.08454 0) (0.193125 1.09278 0) (0.193034 1.07659 0) (0.174109 1.04958 0) (0.134045 0.958455 0) (0.108083 0.590185 0) (0.157245 -0.232666 0) (0.139603 -0.612973 0) (0.0728101 -0.541163 0) (0.05946 -0.501009 0) (-0.0244479 -0.195354 0) (-0.064581 -0.486456 0) (-0.0670793 -0.72877 0) (-0.153606 -0.513937 0) (-0.210588 -0.0275711 0) (-0.183748 0.38235 0) (-0.106517 0.726327 0) (-0.028893 1.00862 0) (0.0189293 1.18743 0) (0.035431 1.26304 0) (0.0311811 1.2569 0) (0.0167215 1.19812 0) (0.00754381 1.1335 0) (0.0122869 1.09426 0) (0.028767 1.07898 0) (0.0521816 1.06639 0) (0.0788556 1.05206 0) (0.107294 1.04156 0) (0.137806 1.03903 0) (0.168713 1.04632 0) (0.196664 1.06511 0) (0.217757 1.08496 0) (0.225206 1.08531 0) (0.213505 1.07597 0) (0.178923 0.994439 0) (0.161563 0.594011 0) (0.167775 -0.250412 0) (0.162992 -0.577047 0) (0.0974082 -0.476813 0) (0.119122 -0.417311 0) (0.00307693 -0.1826 0) (-0.0547132 -0.462899 0) (-0.0375271 -0.68316 0) (-0.147417 -0.41846 0) (-0.187146 0.000267054 0) (-0.173153 0.338306 0) (-0.0991341 0.655312 0) (-0.0158341 0.948122 0) (0.0433143 1.15649 0) (0.0678735 1.25874 0) (0.065759 1.26997 0) (0.0488 1.21575 0) (0.0340877 1.14189 0) (0.0319894 1.09027 0) (0.0423666 1.06533 0) (0.0607476 1.04738 0) (0.0838436 1.02959 0) (0.111238 1.01591 0) (0.142705 1.01116 0) (0.176766 1.01838 0) (0.21063 1.04032 0) (0.241771 1.06847 0) (0.263023 1.08351 0) (0.266186 1.09146 0) (0.248802 1.02667 0) (0.233618 0.626453 0) (0.175837 -0.213022 0) (0.149862 -0.580038 0) (0.12038 -0.447365 0) (0.0952253 -0.34847 0) (0.00451807 -0.150675 0) (-0.0387242 -0.419399 0) (-0.0290834 -0.620846 0) (-0.128875 -0.373823 0) (-0.156503 0.022412 0) (-0.152102 0.302198 0) (-0.0915547 0.589834 0) (-0.0128456 0.884171 0) (0.0524671 1.1182 0) (0.0852206 1.25001 0) (0.0874117 1.28262 0) (0.0710113 1.23706 0) (0.0523124 1.15669 0) (0.0440283 1.0938 0) (0.0478107 1.05898 0) (0.0601749 1.03385 0) (0.0791953 1.01023 0) (0.105094 0.991014 0) (0.137808 0.981472 0) (0.175912 0.985837 0) (0.217381 1.00706 0) (0.260453 1.03881 0) (0.298345 1.06556 0) (0.321608 1.08906 0) (0.329093 1.0469 0) (0.312556 0.683126 0) (0.207146 -0.115362 0) (0.148534 -0.584571 0) (0.118979 -0.392348 0) (0.117752 -0.294599 0) (0.00168089 -0.130616 0) (-0.015752 -0.386633 0) (-0.00397235 -0.56914 0) (-0.0863662 -0.313672 0) (-0.129228 0.0390573 0) (-0.131011 0.278769 0) (-0.0880571 0.535874 0) (-0.0193643 0.823174 0) (0.0476002 1.0751 0) (0.0872575 1.23662 0) (0.095126 1.29353 0) (0.0811458 1.25997 0) (0.0598708 1.1767 0) (0.046665 1.1038 0) (0.0446995 1.05941 0) (0.0511255 1.02585 0) (0.0658396 0.99422 0) (0.0898713 0.966936 0) (0.123459 0.949707 0) (0.16556 0.948163 0) (0.214333 0.964981 0) (0.268045 0.995688 0) (0.320185 1.02981 0) (0.36149 1.06456 0) (0.389003 1.04908 0) (0.371903 0.76045 0) (0.238546 -0.00838726 0) (0.109199 -0.585081 0) (0.129693 -0.352797 0) (0.12006 -0.217931 0) (0.00598162 -0.129376 0) (-0.000588465 -0.368601 0) (0.0251913 -0.530521 0) (-0.038693 -0.225107 0) (-0.10009 0.068652 0) (-0.114227 0.270712 0) (-0.0891705 0.496687 0) (-0.0341347 0.76835 0) (0.029656 1.02959 0) (0.074356 1.21821 0) (0.0884098 1.30067 0) (0.0779236 1.28272 0) (0.0560188 1.20015 0) (0.0394006 1.11805 0) (0.0329929 1.06381 0) (0.0344376 1.02265 0) (0.0452769 0.981406 0) (0.0673861 0.943895 0) (0.10124 0.916382 0) (0.14652 0.906059 0) (0.200477 0.915899 0) (0.261057 0.943252 0) (0.320646 0.982376 0) (0.37014 1.02829 0) (0.39927 1.04551 0) (0.377551 0.841046 0) (0.239797 0.175116 0) (0.0629022 -0.556584 0) (0.0927543 -0.34518 0) (0.0788385 -0.157708 0) (0.00430703 -0.149436 0) (0.00494118 -0.363797 0) (0.0242359 -0.497671 0) (-0.0347994 -0.164729 0) (-0.0852444 0.104936 0) (-0.105217 0.273575 0) (-0.0940847 0.471887 0) (-0.054656 0.723031 0) (0.000763956 0.984688 0) (0.047544 1.19462 0) (0.067532 1.30226 0) (0.0613726 1.30323 0) (0.0414946 1.22482 0) (0.0230932 1.13533 0) (0.0134083 1.07285 0) (0.0115767 1.02309 0) (0.0199175 0.971034 0) (0.0406126 0.921801 0) (0.0744569 0.882237 0) (0.121433 0.860992 0) (0.178629 0.86336 0) (0.241533 0.88722 0) (0.302175 0.932446 0) (0.350614 0.994075 0) (0.370206 1.04884 0) (0.325565 0.915934 0) (0.187256 0.334604 0) (0.00683531 -0.486039 0) (0.0653735 -0.333787 0) (0.0276737 -0.12427 0) (-0.00613033 -0.16093 0) (0.00562104 -0.357321 0) (0.0185044 -0.449644 0) (-0.0518959 -0.0992754 0) (-0.0836547 0.133494 0) (-0.102998 0.281415 0) (-0.101712 0.459259 0) (-0.0766367 0.689388 0) (-0.0326749 0.944289 0) (0.0113445 1.16794 0) (0.034403 1.29912 0) (0.0334494 1.31904 0) (0.0178276 1.24765 0) (-0.000175602 1.1537 0) (-0.0113096 1.08422 0) (-0.0144831 1.02511 0) (-0.00697399 0.961767 0) (0.0132212 0.900256 0) (0.0469242 0.847751 0) (0.0945291 0.81472 0) (0.153072 0.809783 0) (0.216716 0.831823 0) (0.276007 0.88506 0) (0.321841 0.967294 0) (0.33455 1.06793 0) (0.274286 1.02053 0) (0.140192 0.497208 0) (-0.0442203 -0.412651 0) (0.0182619 -0.331469 0) (0.000619972 -0.125441 0) (-0.00800457 -0.178828 0) (0.0141336 -0.364181 0) (0.0201555 -0.399229 0) (-0.0661083 -0.0528466 0) (-0.0874772 0.152508 0) (-0.104684 0.290973 0) (-0.109556 0.454248 0) (-0.094094 0.665542 0) (-0.0617597 0.910855 0) (-0.026031 1.14198 0) (-0.00442579 1.29275 0) (-0.00148995 1.32915 0) (-0.0117529 1.26643 0) (-0.0270738 1.17097 0) (-0.0376811 1.09511 0) (-0.0403056 1.0268 0) (-0.031943 0.952248 0) (-0.0113147 0.878675 0) (0.0222699 0.81344 0) (0.0694817 0.76845 0) (0.128023 0.755699 0) (0.191708 0.776986 0) (0.250976 0.839057 0) (0.298205 0.941947 0) (0.319283 1.08747 0) (0.280484 1.11933 0) (0.198796 0.630977 0) (-0.0191487 -0.310834 0) (0.00303342 -0.350045 0) (0.00938595 -0.152495 0) (-0.00421861 -0.20044 0) (0.033883 -0.373601 0) (0.0239494 -0.328779 0) (-0.0702024 0.0138537 0) (-0.0904406 0.17113 0) (-0.108562 0.300865 0) (-0.115986 0.451784 0) (-0.1053 0.647761 0) (-0.0821499 0.885703 0) (-0.0576164 1.12099 0) (-0.0421108 1.28513 0) (-0.0378439 1.33407 0) (-0.0423378 1.28005 0) (-0.052698 1.18554 0) (-0.061836 1.10385 0) (-0.0625249 1.02679 0) (-0.0520039 0.94139 0) (-0.0302964 0.856783 0) (0.00280306 0.779697 0) (0.0482479 0.723434 0) (0.105 0.702379 0) (0.166301 0.722623 0) (0.225228 0.79036 0) (0.275825 0.907727 0) (0.311824 1.07946 0) (0.320157 1.17233 0) (0.290525 0.76034 0) (0.0347187 -0.145431 0) (-0.00881512 -0.351178 0) (0.025353 -0.164592 0) (0.018843 -0.219673 0) (0.0651529 -0.372391 0) (0.024543 -0.22925 0) (-0.0810611 0.046259 0) (-0.111777 0.187456 0) (-0.126668 0.309537 0) (-0.128049 0.447973 0) (-0.115546 0.631927 0) (-0.0964495 0.867205 0) (-0.0798052 1.10758 0) (-0.0719529 1.27882 0) (-0.0689085 1.33473 0) (-0.0686413 1.28674 0) (-0.0732601 1.19557 0) (-0.0799938 1.11092 0) (-0.0782071 1.02367 0) (-0.0646903 0.928476 0) (-0.0419217 0.834662 0) (-0.0101519 0.74769 0) (0.0317975 0.681232 0) (0.0834525 0.652531 0) (0.138959 0.671477 0) (0.193758 0.741296 0) (0.242023 0.867103 0) (0.283185 1.04499 0) (0.320026 1.17936 0) (0.31465 0.892933 0) (0.0335488 0.0880495 0) (-0.0701049 -0.347676 0) (0.00348567 -0.200814 0) (0.0449712 -0.248327 0) (0.0269235 -0.364697 0) (-0.0327404 -0.135897 0) (-0.107653 0.108957 0) (-0.162601 0.205049 0) (-0.169006 0.309843 0) (-0.157242 0.436134 0) (-0.134489 0.612245 0) (-0.110114 0.848473 0) (-0.0916967 1.09734 0) (-0.0860354 1.27694 0) (-0.0857301 1.33606 0) (-0.0848522 1.28724 0) (-0.0855363 1.20144 0) (-0.0900847 1.1139 0) (-0.0850533 1.01743 0) (-0.0686749 0.913536 0) (-0.0452396 0.812801 0) (-0.0157612 0.718709 0) (0.0209357 0.644176 0) (0.0641328 0.610104 0) (0.110739 0.626904 0) (0.156697 0.697759 0) (0.197386 0.829471 0) (0.233402 1.00539 0) (0.281942 1.15983 0) (0.29706 0.996009 0) (0.0572124 0.308368 0) (-0.0890066 -0.334941 0) (-0.0469423 -0.222177 0) (0.010541 -0.215281 0) (-0.0303631 -0.287829 0) (-0.0817018 -0.0609802 0) (-0.145661 0.187236 0) (-0.2178 0.233479 0) (-0.233263 0.307927 0) (-0.208674 0.412867 0) (-0.167164 0.582867 0) (-0.125699 0.821048 0) (-0.0929986 1.08151 0) (-0.0800632 1.27412 0) (-0.082005 1.33955 0) (-0.0867453 1.28984 0) (-0.0892213 1.20613 0) (-0.0899512 1.11665 0) (-0.0820247 1.00791 0) (-0.0634615 0.897074 0) (-0.0400351 0.791808 0) (-0.0134571 0.69381 0) (0.0164564 0.614571 0) (0.049589 0.577416 0) (0.0846921 0.592206 0) (0.118064 0.665486 0) (0.148673 0.801104 0) (0.177815 0.972834 0) (0.218944 1.12425 0) (0.257756 1.04748 0) (0.0976644 0.505172 0) (-0.0445913 -0.233872 0) (-0.112595 -0.266955 0) (0.0100389 -0.158432 0) (-0.0317649 -0.227176 0) (-0.126942 0.00820485 0) (-0.199862 0.2482 0) (-0.282874 0.27598 0) (-0.309696 0.302647 0) (-0.2717 0.371983 0) (-0.208879 0.532547 0) (-0.140352 0.774244 0) (-0.0853989 1.05149 0) (-0.0548219 1.26574 0) (-0.0590696 1.34511 0) (-0.0770929 1.2981 0) (-0.0860284 1.20922 0) (-0.0811334 1.11413 0) (-0.0697287 0.995423 0) (-0.0498677 0.879674 0) (-0.0266849 0.772096 0) (-0.00323399 0.673414 0) (0.0194013 0.593316 0) (0.0422726 0.554545 0) (0.0638006 0.571027 0) (0.0846055 0.644239 0) (0.105077 0.779991 0) (0.130673 0.948519 0) (0.167641 1.09011 0) (0.22433 1.06665 0) (0.165964 0.6226 0) (0.0285531 -0.0782313 0) (-0.0598176 -0.298027 0) (0.0227355 -0.113897 0) (-0.0601077 -0.12009 0) (-0.18435 0.127388 0) (-0.278691 0.325028 0) (-0.34507 0.355574 0) (-0.362124 0.284845 0) (-0.325967 0.312441 0) (-0.248178 0.461532 0) (-0.153683 0.709647 0) (-0.0774108 1.00045 0) (-0.0272395 1.25151 0) (-0.0274402 1.35929 0) (-0.0591783 1.31744 0) (-0.0774727 1.21109 0) (-0.066633 1.10457 0) (-0.0500298 0.981729 0) (-0.0293252 0.861311 0) (-0.00602207 0.75383 0) (0.0142737 0.657712 0) (0.0302199 0.580148 0) (0.0425605 0.544209 0) (0.0517918 0.562023 0) (0.0593732 0.635193 0) (0.0694801 0.766891 0) (0.0918922 0.927131 0) (0.129676 1.04951 0) (0.196036 1.04458 0) (0.203691 0.695349 0) (0.0882327 0.0516327 0) (-0.0192625 -0.245687 0) (0.0159661 -0.0409688 0) (-0.0992315 0.026325 0) (-0.23585 0.266877 0) (-0.331643 0.396385 0) (-0.373629 0.382557 0) (-0.376298 0.30969 0) (-0.333396 0.282066 0) (-0.254764 0.378497 0) (-0.167484 0.630871 0) (-0.0863066 0.935973 0) (-0.0253538 1.22685 0) (-0.0117824 1.37915 0) (-0.0411263 1.34866 0) (-0.065832 1.21392 0) (-0.0497469 1.09118 0) (-0.0249422 0.965842 0) (-0.00245516 0.841986 0) (0.0207182 0.737362 0) (0.0380154 0.646589 0) (0.0477293 0.574957 0) (0.0506883 0.543766 0) (0.048772 0.565743 0) (0.0441482 0.638066 0) (0.0444206 0.762579 0) (0.0621774 0.904652 0) (0.102438 1.01012 0) (0.167144 1.00164 0) (0.214733 0.734965 0) (0.10211 0.182692 0) (-0.00704976 -0.212769 0) (-0.0289158 0.0606761 0) (-0.173041 0.180079 0) (-0.270336 0.380029 0) (-0.334164 0.452059 0) (-0.343644 0.387471 0) (-0.325565 0.275361 0) (-0.290031 0.206871 0) (-0.236155 0.348221 0) (-0.179223 0.57466 0) (-0.118881 0.880819 0) (-0.0612275 1.18986 0) (-0.0276858 1.37961 0) (-0.0327614 1.37808 0) (-0.0468429 1.21893 0) (-0.029583 1.06802 0) (0.00417585 0.946295 0) (0.029072 0.82233 0) (0.0515878 0.723263 0) (0.0660508 0.639952 0) (0.0702931 0.577183 0) (0.0648093 0.551934 0) (0.0534172 0.57845 0) (0.0385446 0.651492 0) (0.0304223 0.765397 0) (0.0430975 0.886424 0) (0.0829661 0.974689 0) (0.145904 0.951141 0) (0.213301 0.750716 0) (0.152298 0.319058 0) (0.0439606 -0.140811 0) (-0.0802262 0.219562 0) (-0.205136 0.303279 0) (-0.255324 0.445368 0) (-0.265807 0.46588 0) (-0.262466 0.381481 0) (-0.261592 0.268566 0) (-0.262283 0.191771 0) (-0.244062 0.306076 0) (-0.216037 0.539112 0) (-0.183089 0.841866 0) (-0.129323 1.14962 0) (-0.0754218 1.35541 0) (-0.038373 1.37929 0) (-0.025692 1.21568 0) (-0.00479368 1.04398 0) (0.033286 0.921984 0) (0.0622351 0.803661 0) (0.0831038 0.712408 0) (0.0954563 0.637572 0) (0.0946463 0.587956 0) (0.0814149 0.570617 0) (0.0624613 0.602004 0) (0.0386755 0.675133 0) (0.0245138 0.774164 0) (0.0327843 0.872994 0) (0.0655086 0.937821 0) (0.124994 0.90485 0) (0.177028 0.737935 0) (0.164213 0.394758 0) (0.0799946 -0.00793326 0) (-0.0796011 0.369253 0) (-0.164778 0.363528 0) (-0.178006 0.453742 0) (-0.172227 0.471895 0) (-0.180198 0.395707 0) (-0.216697 0.294682 0) (-0.258509 0.22124 0) (-0.303642 0.312832 0) (-0.300543 0.574549 0) (-0.262856 0.816992 0) (-0.204431 1.10524 0) (-0.127782 1.30365 0) (-0.0514503 1.34246 0) (-0.00649483 1.19942 0) (0.0228217 1.0181 0) (0.0621262 0.896142 0) (0.0934801 0.786261 0) (0.112092 0.705613 0) (0.123746 0.636461 0) (0.118813 0.59393 0) (0.0972711 0.579782 0) (0.0737326 0.616243 0) (0.0403522 0.692598 0) (0.0235367 0.782635 0) (0.0348275 0.870304 0) (0.0590495 0.910229 0) (0.121169 0.870105 0) (0.155064 0.721584 0) (0.143449 0.436024 0) (0.0606024 0.117674 0) (-0.0311737 0.463921 0) (-0.0927181 0.404837 0) (-0.110642 0.460533 0) (-0.109636 0.481936 0) (-0.127873 0.433947 0) (-0.191193 0.369556 0) (-0.281653 0.316073 0) (-0.364954 0.36399 0) (-0.368777 0.558064 0) (-0.318825 0.781313 0) (-0.26275 1.05002 0) (-0.170176 1.23396 0) (-0.0679833 1.27814 0) (0.00613012 1.16738 0) (0.0487603 0.991528 0) (0.0868502 0.873027 0) (0.117608 0.770185 0) (0.128683 0.696802 0) (0.122803 0.630724 0) (0.12296 0.643384 0) (0.110787 0.635048 0) (0.0932126 0.678098 0) (0.0717467 0.76091 0) (0.0523684 0.780507 0) (0.0462009 0.855888 0) (0.0688818 0.87387 0) (0.110805 0.817315 0) (0.16246 0.768541 0) (0.160344 0.476053 0) (0.0470234 0.225279 0) (-0.00247871 0.495783 0) (-0.0332347 0.438132 0) (-0.0562365 0.481581 0) (-0.0698526 0.508945 0) (-0.103881 0.499489 0) (-0.178943 0.478037 0) (-0.279098 0.45012 0) (-0.372952 0.451128 0) (-0.400575 0.563255 0) (-0.366887 0.800016 0) (-0.298899 0.994658 0) (-0.208191 1.15819 0) (-0.0891564 1.20432 0) (0.00700271 1.12345 0) (0.0662057 0.961553 0) (0.0987635 0.849177 0) (0.110056 0.754502 0) (0.12211 0.741641 0) (0.113178 0.676579 0) (0.104282 0.641953 0) (0.0965109 0.639036 0) (0.083451 0.683607 0) (0.0794701 0.766518 0) (0.072091 0.843534 0) (0.0544843 0.912311 0) (0.0756005 0.902997 0) (0.135241 0.839004 0) (0.19853 0.738433 0) (0.197911 0.539188 0) (0.0598069 0.35703 0) (0.0156916 0.503758 0) (-0.00168138 0.473432 0) (-0.0321089 0.516069 0) (-0.0619309 0.548886 0) (-0.110296 0.566293 0) (-0.188954 0.572555 0) (-0.285352 0.566226 0) (-0.369524 0.567491 0) (-0.422127 0.618563 0) (-0.40727 0.784148 0) (-0.33825 1.00239 0) (-0.229098 1.07777 0) (-0.112605 1.11173 0) (-0.00953038 1.0572 0) (0.0502457 0.926922 0) (0.0883096 0.88686 0) (0.0999407 0.797647 0) (0.105377 0.74096 0) (0.102859 0.69204 0) (0.0848781 0.667008 0) (0.0611285 0.669544 0) (0.0409593 0.708433 0) (0.0350561 0.779727 0) (0.0398284 0.852767 0) (0.0470197 0.910538 0) (0.074221 0.866085 0) (0.142531 0.766982 0) (0.219839 0.729235 0) (0.224624 0.621983 0) (0.0790627 0.516904 0) (0.0191975 0.505274 0) (0.00649334 0.511565 0) (-0.0230441 0.559557 0) (-0.0687782 0.604702 0) (-0.137815 0.643242 0) (-0.234944 0.670597 0) (-0.340924 0.676031 0) (-0.417036 0.675723 0) (-0.456623 0.712064 0) (-0.44829 0.811949 0) (-0.374602 0.957943 0) (-0.257103 1.05887 0) (-0.134536 1.08959 0) (-0.0221565 1.05669 0) (0.0426177 0.952827 0) (0.0796908 0.871499 0) (0.101239 0.806872 0) (0.100438 0.76831 0) (0.0838369 0.737714 0) (0.0530953 0.719348 0) (0.0167347 0.720401 0) (-0.0104884 0.745384 0) (-0.0167568 0.798526 0) (0.000784807 0.864627 0) (0.0345419 0.920636 0) (0.0765046 0.861185 0) (0.112371 0.750092 0) (0.161048 0.714538 0) (0.185367 0.70942 0) (0.0802354 0.694129 0) (0.0116275 0.501266 0) (0.000687075 0.545739 0) (-0.0350463 0.599917 0) (-0.0964069 0.661574 0) (-0.193002 0.718916 0) (-0.305343 0.764345 0) (-0.37527 0.75272 0) (-0.417333 0.742106 0) (-0.433184 0.771521 0) (-0.41224 0.849175 0) (-0.341375 0.942098 0) (-0.231303 0.999836 0) (-0.113909 1.01777 0) (-0.00992224 1.00499 0) (0.0575109 0.944175 0) (0.0876003 0.891563 0) (0.0949686 0.853056 0) (0.0836443 0.827842 0) (0.0583587 0.809448 0) (0.0222042 0.797288 0) (-0.0174734 0.79512 0) (-0.0492885 0.804808 0) (-0.058943 0.833878 0) (-0.0368507 0.877497 0) (0.0166053 0.926535 0) (0.0737242 0.881362 0) (0.0803951 0.786576 0) (0.0705021 0.749812 0) (0.0981877 0.726051 0) (0.0756207 0.862733 0) (0.0030769 0.500799 0) (-0.0205167 0.577873 0) (-0.0833397 0.640935 0) (-0.168941 0.731358 0) (-0.274506 0.809057 0) (-0.313894 0.819446 0) (-0.316289 0.759871 0) (-0.304411 0.748865 0) (-0.306511 0.792148 0) (-0.297084 0.872027 0) (-0.247479 0.951362 0) (-0.163048 1.00037 0) (-0.072257 1.01966 0) (0.00685209 1.0171 0) (0.0601216 0.985283 0) (0.0816966 0.954004 0) (0.0820678 0.931523 0) (0.0680693 0.91688 0) (0.0429901 0.904845 0) (0.00915136 0.895567 0) (-0.0279369 0.890744 0) (-0.0599072 0.890586 0) (-0.0758372 0.897382 0) (-0.0636063 0.909849 0) (-0.0154542 0.925911 0) (0.040956 0.901969 0) (0.0453247 0.838754 0) (0.0158441 0.791313 0) (0.00503252 0.760939 0) (-0.000547537 0.973514 0) (-0.0171659 0.506972 0) (-0.0653396 0.63119 0) (-0.160356 0.708788 0) (-0.236641 0.814368 0) (-0.259155 0.829285 0) (-0.201555 0.777444 0) (-0.164397 0.723927 0) (-0.162216 0.747207 0) (-0.172768 0.810428 0) (-0.180817 0.892368 0) (-0.163966 0.966894 0) (-0.117472 1.02365 0) (-0.0551129 1.05718 0) (0.00676279 1.0665 0) (0.0527304 1.05244 0) (0.0748573 1.032 0) (0.0774359 1.01271 0) (0.0657411 0.997543 0) (0.0433165 0.985644 0) (0.0128326 0.977255 0) (-0.0214821 0.971628 0) (-0.0530914 0.966874 0) (-0.0731462 0.961862 0) (-0.072908 0.954063 0) (-0.0471691 0.940275 0) (-0.0123334 0.909688 0) (0.000339223 0.869729 0) (-0.0080936 0.825348 0) (-0.0232209 0.801 0) (-0.0225595 0.981152 0) (-0.0551138 0.548033 0) (-0.118138 0.71297 0) (-0.218708 0.7862 0) (-0.193616 0.82229 0) (-0.11488 0.764911 0) (-0.0618563 0.731906 0) (-0.0509528 0.731321 0) (-0.0659185 0.774552 0) (-0.0864724 0.838148 0) (-0.0976804 0.907243 0) (-0.0921203 0.970439 0) (-0.0695938 1.02528 0) (-0.0335735 1.0644 0) (0.00828382 1.08312 0) (0.0441137 1.08154 0) (0.0652809 1.06912 0) (0.0713624 1.0545 0) (0.0651233 1.04215 0) (0.0490804 1.0339 0) (0.0246161 1.02938 0) (-0.00649359 1.02605 0) (-0.0398316 1.01917 0) (-0.0681613 1.00538 0) (-0.083089 0.982565 0) (-0.079697 0.950984 0) (-0.0624954 0.914815 0) (-0.0445147 0.87821 0) (-0.0297664 0.832678 0) (-0.0198905 0.8123 0) (-0.0155349 0.990278 0) (-0.0793557 0.647495 0) (-0.139501 0.807034 0) (-0.141351 0.765537 0) (-0.0454192 0.748757 0) (0.0027978 0.739194 0) (0.0206483 0.743007 0) (0.0107434 0.761441 0) (-0.0137803 0.806031 0) (-0.0346439 0.862533 0) (-0.0446464 0.918613 0) (-0.0430642 0.969606 0) (-0.0315454 1.01485 0) (-0.0117009 1.04928 0) (0.0125321 1.06899 0) (0.0353466 1.07347 0) (0.0520277 1.06819 0) (0.0612844 1.05998 0) (0.0635106 1.0536 0) (0.0582093 1.05125 0) (0.0438635 1.05436 0) (0.0182095 1.05883 0) (-0.0177144 1.05646 0) (-0.057012 1.04037 0) (-0.0876295 1.00519 0) (-0.102174 0.960813 0) (-0.0998202 0.916329 0) (-0.0829941 0.874735 0) (-0.0595744 0.82387 0) (-0.0342506 0.79774 0) (-0.0223975 0.965707 0) (-0.0643734 0.766538 0) (-0.0582458 0.792566 0) (-0.00305373 0.72851 0) (0.0345935 0.742898 0) (0.0550902 0.751059 0) (0.0551528 0.762418 0) (0.0378865 0.789352 0) (0.0157617 0.832243 0) (-0.00149065 0.880932 0) (-0.0106926 0.927705 0) (-0.0126991 0.970477 0) (-0.00872841 1.00771 0) (0.000354207 1.03572 0) (0.0128016 1.05261 0) (0.0263562 1.05891 0) (0.0394089 1.05759 0) (0.0514231 1.05275 0) (0.0623824 1.04955 0) (0.0704056 1.05179 0) (0.071089 1.0624 0) (0.0562548 1.07953 0) (0.019946 1.09018 0) (-0.0355671 1.08296 0) (-0.0868744 1.03544 0) (-0.116019 0.977839 0) (-0.12471 0.919381 0) (-0.114254 0.866779 0) (-0.0924561 0.810569 0) (-0.0642476 0.775249 0) (-0.0395048 0.927721 0) (-0.00955599 0.815092 0) (0.00919848 0.762097 0) (0.0517592 0.7346 0) (0.067796 0.746121 0) (0.075029 0.757938 0) (0.0682249 0.778463 0) (0.0525391 0.810998 0) (0.0355242 0.852169 0) (0.021979 0.895522 0) (0.0128657 0.937074 0) (0.00730042 0.975325 0) (0.00475516 1.00809 0) (0.00500143 1.03265 0) (0.00789086 1.04689 0) (0.0134428 1.05113 0) (0.022178 1.04775 0) (0.0349253 1.0403 0) (0.0523311 1.03358 0) (0.0742944 1.03486 0) (0.0966888 1.04894 0) (0.106215 1.07999 0) (0.0845041 1.11126 0) (0.00957828 1.13136 0) (-0.0744985 1.07089 0) (-0.124564 0.999621 0) (-0.143906 0.923258 0) (-0.138214 0.857199 0) (-0.120893 0.797499 0) (-0.0985368 0.756878 0) (-0.0614387 0.868989 0) (0.0148768 0.821485 0) (0.0371849 0.746849 0) (0.0667721 0.731834 0) (0.0801003 0.743605 0) (0.0823582 0.762948 0) (0.0753549 0.791037 0) (0.0637367 0.826853 0) (0.0516476 0.867262 0) (0.0410061 0.90843 0) (0.031461 0.948312 0) (0.0222503 0.985183 0) (0.0131584 1.01642 0) (0.00454353 1.03919 0) (-0.00235698 1.05073 0) (-0.0057773 1.05127 0) (-0.00369261 1.0428 0) (0.00573265 1.02864 0) (0.024177 1.0131 0) (0.0535917 1.00338 0) (0.0941235 1.00997 0) (0.139201 1.04732 0) (0.160351 1.1095 0) (0.0985034 1.16945 0) (-0.0151445 1.10786 0) (-0.110473 1.02731 0) (-0.157023 0.926383 0) (-0.157695 0.845168 0) (-0.137652 0.783417 0) (-0.113957 0.740193 0) (-0.0657669 0.794505 0) (0.0274402 0.805875 0) (0.0533133 0.72466 0) (0.0751913 0.721777 0) (0.0852618 0.740067 0) (0.0864493 0.766625 0) (0.0819986 0.799786 0) (0.0750237 0.837955 0) (0.0673912 0.878997 0) (0.0590556 0.92087 0) (0.0488108 0.962194 0) (0.0355697 1.00077 0) (0.0191233 1.03334 0) (0.000540154 1.05558 0) (-0.017413 1.06481 0) (-0.0310449 1.06059 0) (-0.0374168 1.04523 0) (-0.0347962 1.02259 0) (-0.0217004 0.996563 0) (0.00411874 0.971876 0) (0.0461458 0.958428 0) (0.107063 0.977223 0) (0.172142 1.06488 0) (0.209324 1.19403 0) (0.116932 1.16699 0) (-0.0355465 1.06538 0) (-0.136578 0.935226 0) (-0.165807 0.828594 0) (-0.145163 0.761575 0) (-0.108166 0.714939 0) (-0.0528023 0.719584 0) (0.0356437 0.767388 0) (0.0639578 0.706798 0) (0.0796768 0.711964 0) (0.0877164 0.736313 0) (0.0904229 0.767953 0) (0.0899908 0.804507 0) (0.0880625 0.844892 0) (0.0847496 0.888034 0) (0.0786136 0.933068 0) (0.0675379 0.978716 0) (0.0495475 1.02244 0) (0.0241088 1.05963 0) (-0.0066268 1.08388 0) (-0.0373705 1.09016 0) (-0.0618046 1.07861 0) (-0.0762796 1.05442 0) (-0.0802401 1.02282 0) (-0.0739303 0.987489 0) (-0.0568813 0.951372 0) (-0.0262789 0.919738 0) (0.0234234 0.907887 0) (0.100585 0.965392 0) (0.20749 1.11405 0) (0.236525 1.22975 0) (0.105322 1.14842 0) (-0.039137 0.969146 0) (-0.134017 0.819847 0) (-0.141926 0.728076 0) (-0.099439 0.677927 0) (-0.0405756 0.649527 0) (0.033872 0.723946 0) (0.0642194 0.691127 0) (0.0792262 0.70231 0) (0.0889037 0.730789 0) (0.0954081 0.765708 0) (0.100151 0.804778 0) (0.103677 0.847589 0) (0.104762 0.893998 0) (0.101098 0.944124 0) (0.0894627 0.997276 0) (0.0661957 1.05042 0) (0.0294073 1.09575 0) (-0.0173441 1.1232 0) (-0.0643098 1.12513 0) (-0.100481 1.10298 0) (-0.12114 1.06729 0) (-0.128154 1.02583 0) (-0.124904 0.982456 0) (-0.113651 0.939321 0) (-0.0940607 0.898328 0) (-0.0605657 0.867034 0) (0.001452 0.87797 0) (0.110775 0.991753 0) (0.225023 1.18839 0) (0.228084 1.20255 0) (0.106089 1.05735 0) (-0.0315314 0.850184 0) (-0.106821 0.695885 0) (-0.0897175 0.633233 0) (-0.0339047 0.585059 0) (0.0278345 0.681591 0) (0.058579 0.672346 0) (0.0768256 0.689819 0) (0.0905667 0.721595 0) (0.102183 0.758879 0) (0.112698 0.800015 0) (0.121802 0.845209 0) (0.127845 0.895523 0) (0.127642 0.952475 0) (0.115848 1.01534 0) (0.0853733 1.08083 0) (0.0330644 1.13644 0) (-0.0339958 1.16712 0) (-0.100547 1.16368 0) (-0.149198 1.12735 0) (-0.17353 1.07755 0) (-0.179656 1.02607 0) (-0.175071 0.976298 0) (-0.164356 0.928899 0) (-0.149391 0.884075 0) (-0.128418 0.844447 0) (-0.0873672 0.824332 0) (-0.00925984 0.87372 0) (0.146349 1.0883 0) (0.23931 1.18762 0) (0.224219 1.12014 0) (0.0968776 0.943304 0) (-0.00883799 0.701648 0) (-0.0608073 0.59494 0) (-0.0316467 0.525532 0) (0.0228917 0.641969 0) (0.0533909 0.649562 0) (0.0753537 0.673293 0) (0.0938168 0.707881 0) (0.110774 0.746876 0) (0.126939 0.789463 0) (0.141777 0.83678 0) (0.153407 0.891318 0) (0.155931 0.954674 0) (0.139827 1.02766 0) (0.0938286 1.10569 0) (0.0209194 1.1646 0) (-0.0622852 1.19234 0) (-0.1412 1.18519 0) (-0.200196 1.13953 0) (-0.228479 1.07617 0) (-0.231856 1.01748 0) (-0.223522 0.964502 0) (-0.210516 0.915947 0) (-0.195749 0.87093 0) (-0.17967 0.829486 0) (-0.15789 0.796293 0) (-0.105861 0.799366 0) (0.0132599 0.921747 0) (0.197397 1.12235 0) (0.248384 1.12378 0) (0.213423 1.00931 0) (0.103651 0.766031 0) (0.000476448 0.600019 0) (-0.0172581 0.468115 0) (0.0199535 0.605536 0) (0.0504712 0.624046 0) (0.0756524 0.652878 0) (0.0985486 0.689467 0) (0.120414 0.729463 0) (0.141705 0.773067 0) (0.16204 0.822456 0) (0.175564 0.879854 0) (0.170099 0.950424 0) (0.130142 1.03269 0) (0.0536836 1.11414 0) (-0.0345086 1.17339 0) (-0.107312 1.19909 0) (-0.165059 1.18476 0) (-0.224493 1.13228 0) (-0.264942 1.06025 0) (-0.273086 0.997204 0) (-0.264163 0.945037 0) (-0.249603 0.898462 0) (-0.234323 0.85593 0) (-0.218825 0.817269 0) (-0.203127 0.781953 0) (-0.175217 0.761593 0) (-0.0977912 0.805541 0) (0.0664654 0.963197 0) (0.222693 1.08213 0) (0.231761 1.02908 0) (0.190746 0.852173 0) (0.0418213 0.675932 0) (0.0251604 0.436955 0) (0.0183994 0.571307 0) (0.0494227 0.596505 0) (0.0775676 0.62875 0) (0.104302 0.666496 0) (0.130291 0.707193 0) (0.156077 0.752457 0) (0.176125 0.802994 0) (0.177293 0.866126 0) (0.136385 0.950097 0) (0.0482617 1.04618 0) (-0.0502887 1.14141 0) (-0.127786 1.19192 0) (-0.166389 1.19249 0) (-0.185387 1.16918 0) (-0.213818 1.1314 0) (-0.256951 1.0391 0) (-0.286167 0.971151 0) (-0.287912 0.919984 0) (-0.276961 0.877303 0) (-0.262699 0.838395 0) (-0.248265 0.803407 0) (-0.23289 0.771632 0) (-0.216811 0.743384 0) (-0.173646 0.741056 0) (-0.0695497 0.810154 0) (0.115068 0.975341 0) (0.19966 1.00896 0) (0.198633 0.910362 0) (0.0825817 0.748528 0) (0.0603067 0.457004 0) (0.0177003 0.537918 0) (0.0497694 0.56697 0) (0.0806755 0.60118 0) (0.110783 0.639507 0) (0.141092 0.682027 0) (0.165075 0.729775 0) (0.169923 0.785315 0) (0.132284 0.864938 0) (0.0391275 0.983364 0) (-0.0849335 1.09772 0) (-0.169651 1.16451 0) (-0.204696 1.18972 0) (-0.204517 1.17083 0) (-0.200252 1.13295 0) (-0.190427 1.10611 0) (-0.224472 1.03334 0) (-0.263496 0.951409 0) (-0.287696 0.895845 0) (-0.288559 0.854975 0) (-0.279307 0.819483 0) (-0.267449 0.787501 0) (-0.253832 0.760264 0) (-0.238723 0.73299 0) (-0.218881 0.71308 0) (-0.159032 0.725654 0) (-0.0362023 0.815675 0) (0.131285 0.961374 0) (0.180763 0.920441 0) (0.113753 0.830816 0) (0.0705009 0.526382 0) (0.0175517 0.504387 0) (0.0509808 0.535321 0) (0.0845557 0.570414 0) (0.119154 0.609577 0) (0.150512 0.654894 0) (0.15914 0.713281 0) (0.123428 0.784992 0) (0.0350658 0.900692 0) (-0.0974879 1.05968 0) (-0.207364 1.1472 0) (-0.246159 1.18194 0) (-0.248401 1.18653 0) (-0.235472 1.15468 0) (-0.212721 1.11043 0) (-0.193449 1.0855 0) (-0.196816 1.02763 0) (-0.229603 0.946876 0) (-0.264274 0.880466 0) (-0.282884 0.835742 0) (-0.2834 0.80132 0) (-0.276003 0.771388 0) (-0.265169 0.746103 0) (-0.251267 0.72328 0) (-0.236735 0.699826 0) (-0.210325 0.687984 0) (-0.135992 0.719193 0) (-0.0055965 0.829798 0) (0.135879 0.902738 0) (0.11595 0.866852 0) (0.0725498 0.628462 0) (0.0175805 0.470131 0) (0.0524681 0.501673 0) (0.089345 0.536637 0) (0.127676 0.57591 0) (0.153612 0.625667 0) (0.124688 0.718974 0) (0.0304007 0.821828 0) (-0.103371 0.983786 0) (-0.229819 1.13373 0) (-0.285678 1.18205 0) (-0.295002 1.1836 0) (-0.277171 1.17307 0) (-0.249666 1.12898 0) (-0.219863 1.08954 0) (-0.202098 1.06524 0) (-0.188029 1.01726 0) (-0.201693 0.949411 0) (-0.232005 0.876935 0) (-0.261835 0.823614 0) (-0.274955 0.785907 0) (-0.274245 0.756065 0) (-0.267427 0.731361 0) (-0.256452 0.711243 0) (-0.242745 0.690411 0) (-0.229076 0.671325 0) (-0.194186 0.671603 0) (-0.107125 0.725325 0) (0.0232322 0.818259 0) (0.103511 0.873896 0) (0.0618955 0.721142 0) (0.0174714 0.435397 0) (0.0535772 0.46682 0) (0.0923923 0.50003 0) (0.126764 0.536558 0) (0.137416 0.597047 0) (0.064984 0.766884 0) (-0.0919478 0.913655 0) (-0.242498 1.07135 0) (-0.31867 1.18125 0) (-0.327973 1.19079 0) (-0.312985 1.17178 0) (-0.282805 1.14368 0) (-0.247761 1.10267 0) (-0.222153 1.07132 0) (-0.207406 1.04455 0) (-0.188615 1.00453 0) (-0.186043 0.943434 0) (-0.204703 0.881093 0) (-0.232976 0.819835 0) (-0.255617 0.775526 0) (-0.263529 0.742972 0) (-0.261116 0.717616 0) (-0.253621 0.69761 0) (-0.242472 0.680365 0) (-0.230427 0.662029 0) (-0.215379 0.651001 0) (-0.168509 0.666791 0) (-0.0793396 0.727743 0) (0.0418024 0.830798 0) (0.0557894 0.805452 0) (0.0172236 0.401529 0) (0.0519442 0.432703 0) (0.0834952 0.461785 0) (0.102159 0.499443 0) (0.0729648 0.597756 0) (-0.0291461 0.874521 0) (-0.197312 1.02508 0) (-0.327485 1.15117 0) (-0.348097 1.18846 0) (-0.326383 1.17297 0) (-0.297942 1.14456 0) (-0.2663 1.11243 0) (-0.238191 1.08022 0) (-0.221765 1.05749 0) (-0.210993 1.02463 0) (-0.191335 0.987419 0) (-0.18117 0.932965 0) (-0.183991 0.881266 0) (-0.205005 0.821458 0) (-0.228945 0.770896 0) (-0.24463 0.733172 0) (-0.247956 0.705786 0) (-0.243845 0.68482 0) (-0.235452 0.668536 0) (-0.224349 0.653491 0) (-0.213036 0.640029 0) (-0.193085 0.639565 0) (-0.140096 0.670209 0) (-0.041573 0.745913 0) (0.0180607 0.854146 0) (0.0157099 0.370733 0) (0.0404236 0.4023 0) (0.0543895 0.429641 0) (0.0529768 0.477533 0) (-0.00770041 0.652746 0) (-0.142225 0.949373 0) (-0.274575 1.15626 0) (-0.337086 1.182 0) (-0.32411 1.16508 0) (-0.291658 1.14304 0) (-0.263308 1.11841 0) (-0.240313 1.09232 0) (-0.22065 1.06676 0) (-0.218033 1.04707 0) (-0.209959 1.00487 0) (-0.191783 0.96517 0) (-0.177808 0.916637 0) (-0.170892 0.87246 0) (-0.179487 0.82299 0) (-0.199435 0.770833 0) (-0.218717 0.727943 0) (-0.228452 0.696683 0) (-0.228399 0.673889 0) (-0.222542 0.656677 0) (-0.213039 0.643153 0) (-0.201975 0.63092 0) (-0.189404 0.624862 0) (-0.161339 0.637166 0) (-0.0985171 0.690879 0) (-0.0329511 0.840637 0) (0.00745224 0.344184 0) (0.0114239 0.386742 0) (-0.00387827 0.414553 0) (-0.0201383 0.477538 0) (-0.126844 0.751731 0) (-0.248767 1.04768 0) (-0.297808 1.212 0) (-0.300096 1.17252 0) (-0.270668 1.13451 0) (-0.245432 1.11851 0) (-0.223198 1.10042 0) (-0.200748 1.07525 0) (-0.199079 1.06444 0) (-0.207873 1.03843 0) (-0.197739 0.984822 0) (-0.181874 0.939718 0) (-0.165786 0.896759 0) (-0.155846 0.857832 0) (-0.155724 0.817185 0) (-0.168415 0.771865 0) (-0.187625 0.727658 0) (-0.203269 0.691404 0) (-0.208393 0.665229 0) (-0.205456 0.646043 0) (-0.197575 0.631755 0) (-0.186627 0.620661 0) (-0.174311 0.613164 0) (-0.157 0.615982 0) (-0.117667 0.652308 0) (-0.0580081 0.789125 0) (-0.0123106 0.335912 0) (-0.0377378 0.427013 0) (-0.116603 0.459258 0) (-0.204395 0.548183 0) (-0.265023 0.822976 0) (-0.244082 1.06082 0) (-0.244659 1.20716 0) (-0.226195 1.15098 0) (-0.210303 1.11567 0) (-0.194639 1.10362 0) (-0.170314 1.08057 0) (-0.158548 1.0677 0) (-0.17666 1.06738 0) (-0.179793 1.02264 0) (-0.164111 0.961385 0) (-0.147317 0.914453 0) (-0.132213 0.879577 0) (-0.124145 0.845456 0) (-0.124126 0.811353 0) (-0.133715 0.771187 0) (-0.15257 0.731903 0) (-0.17358 0.690832 0) (-0.184389 0.659575 0) (-0.185275 0.637023 0) (-0.179221 0.620658 0) (-0.168722 0.608942 0) (-0.155205 0.600924 0) (-0.138806 0.598706 0) (-0.109712 0.621732 0) (-0.0583764 0.724493 0) (-0.0406912 0.359611 0) (-0.0701016 0.47975 0) (-0.207128 0.554575 0) (-0.278745 0.655862 0) (-0.262679 0.779235 0) (-0.145917 1.03992 0) (-0.122029 1.20632 0) (-0.137051 1.15369 0) (-0.145859 1.11552 0) (-0.133399 1.08753 0) (-0.111779 1.06009 0) (-0.130099 1.07505 0) (-0.14429 1.06355 0) (-0.134835 0.997794 0) (-0.113418 0.934606 0) (-0.0932803 0.891841 0) (-0.0818497 0.867954 0) (-0.0769646 0.839612 0) (-0.0808068 0.813048 0) (-0.0943392 0.774929 0) (-0.114309 0.740461 0) (-0.137986 0.696623 0) (-0.156638 0.658031 0) (-0.162485 0.630202 0) (-0.158998 0.610212 0) (-0.149418 0.596261 0) (-0.135056 0.587002 0) (-0.11733 0.58126 0) (-0.092136 0.59286 0) (-0.0479452 0.654323 0) (-0.0546201 0.4224 0) (-0.109015 0.535088 0) (-0.179705 0.640767 0) (-0.174333 0.679732 0) (-0.109102 0.752984 0) (-0.0666725 1.06214 0) (-0.0151617 1.25134 0) (-0.0532029 1.1972 0) (-0.0752951 1.12208 0) (-0.0589459 1.06418 0) (-0.0780017 1.07093 0) (-0.103363 1.07983 0) (-0.100154 1.04572 0) (-0.0769809 0.967989 0) (-0.0499313 0.90781 0) (-0.0319423 0.875701 0) (-0.0262199 0.862091 0) (-0.0257139 0.839218 0) (-0.0350889 0.820013 0) (-0.0498594 0.784447 0) (-0.0710259 0.750994 0) (-0.0978873 0.710508 0) (-0.122823 0.662857 0) (-0.137044 0.626584 0) (-0.137471 0.60116 0) (-0.129574 0.583502 0) (-0.115574 0.571636 0) (-0.0971095 0.562914 0) (-0.0733887 0.564835 0) (-0.0358839 0.594381 0) (-0.0388018 0.463692 0) (-0.0574392 0.553717 0) (-0.0603172 0.618853 0) (-0.0435954 0.692749 0) (-0.0470795 0.817317 0) (-0.000784021 1.09787 0) (-0.0311216 1.32146 0) (0.0011201 1.23684 0) (-0.00497841 1.11407 0) (-0.0292525 1.07847 0) (-0.0646174 1.08997 0) (-0.0741329 1.07568 0) (-0.0498526 1.01523 0) (-0.0127447 0.935797 0) (0.0123255 0.888034 0) (0.0224707 0.868432 0) (0.0230278 0.860565 0) (0.0206257 0.842226 0) (0.014768 0.827353 0) (0.00329297 0.797283 0) (-0.019587 0.76728 0) (-0.0528629 0.727177 0) (-0.0821584 0.678368 0) (-0.106609 0.628507 0) (-0.114487 0.594293 0) (-0.109478 0.571673 0) (-0.0972429 0.556 0) (-0.0794358 0.544462 0) (-0.057378 0.538542 0) (-0.0262467 0.546894 0) (0.00525097 0.492951 0) (-0.0085693 0.539812 0) (0.0170106 0.630711 0) (0.0220962 0.733331 0) (-0.0091649 0.872929 0) (-0.0416717 1.18671 0) (-0.0807503 1.35485 0) (0.00650567 1.22691 0) (-0.00497023 1.12891 0) (-0.0420733 1.10798 0) (-0.0629849 1.09445 0) (-0.0432367 1.05319 0) (0.00460792 0.972839 0) (0.0422662 0.911432 0) (0.0570332 0.87876 0) (0.0599474 0.8678 0) (0.056833 0.862138 0) (0.0534324 0.847599 0) (0.0530038 0.835353 0) (0.0509058 0.813629 0) (0.0375499 0.794158 0) (0.00460794 0.748971 0) (-0.037152 0.697596 0) (-0.0676693 0.641524 0) (-0.0882035 0.590837 0) (-0.0882991 0.561966 0) (-0.0796462 0.54155 0) (-0.0642066 0.527099 0) (-0.0443614 0.515236 0) (-0.0191323 0.510444 0) (0.0250805 0.468811 0) (0.0330475 0.546291 0) (0.0493089 0.655396 0) (0.0522579 0.772915 0) (-0.0292012 0.948942 0) (-0.159329 1.24087 0) (-0.102748 1.30243 0) (-0.0522643 1.20065 0) (-0.0530648 1.14377 0) (-0.0649669 1.11457 0) (-0.0537342 1.07658 0) (-0.00469656 1.00325 0) (0.0496625 0.932227 0) (0.0742705 0.899768 0) (0.0805987 0.876701 0) (0.0804283 0.873072 0) (0.0742533 0.873142 0) (0.0642462 0.864571 0) (0.0580299 0.845252 0) (0.0602878 0.822803 0) (0.0606602 0.810483 0) (0.0507249 0.779053 0) (0.0149641 0.726056 0) (-0.0263321 0.667175 0) (-0.0523202 0.595704 0) (-0.0644186 0.556131 0) (-0.0618015 0.530139 0) (-0.0504422 0.511909 0) (-0.0337335 0.49568 0) (-0.0139528 0.482807 0) (0.017974 0.461148 0) (0.0425021 0.55293 0) (0.0725782 0.662341 0) (0.0331327 0.813077 0) (-0.100419 1.09706 0) (-0.199051 1.21631 0) (-0.151268 1.23441 0) (-0.119573 1.16757 0) (-0.0977085 1.12605 0) (-0.0737786 1.08988 0) (-0.0283641 1.02774 0) (0.0330087 0.943461 0) (0.0736067 0.904555 0) (0.0881218 0.894237 0) (0.0923558 0.87659 0) (0.0938572 0.881143 0) (0.0889088 0.894723 0) (0.0710028 0.89292 0) (0.0565641 0.866072 0) (0.048249 0.838051 0) (0.0467814 0.816906 0) (0.0538982 0.790887 0) (0.0507104 0.75487 0) (0.0174763 0.688138 0) (-0.0141248 0.611614 0) (-0.0367835 0.557004 0) (-0.0420373 0.523516 0) (-0.0370923 0.499875 0) (-0.0251421 0.480248 0) (-0.0100872 0.462042 0) (0.0165668 0.450614 0) (0.051304 0.543492 0) (0.0468145 0.653079 0) (-0.0428186 0.900494 0) (-0.184239 1.15389 0) (-0.199162 1.20439 0) (-0.192259 1.18244 0) (-0.156605 1.12232 0) (-0.11415 1.08285 0) (-0.0615113 1.03504 0) (0.00326924 0.962954 0) (0.0538463 0.896693 0) (0.0772312 0.88403 0) (0.0921726 0.88741 0) (0.0987034 0.87724 0) (0.10555 0.888381 0) (0.107205 0.924905 0) (0.0836244 0.929039 0) (0.0596956 0.891775 0) (0.0434973 0.857666 0) (0.036105 0.828212 0) (0.040644 0.797375 0) (0.0532277 0.761735 0) (0.0479615 0.719902 0) (0.0183652 0.632361 0) (-0.00707545 0.564597 0) (-0.0202362 0.522675 0) (-0.0235329 0.491891 0) (-0.0180738 0.468811 0) (-0.00701734 0.446685 0) (0.0183659 0.434109 0) (0.0133821 0.540917 0) (-0.0556624 0.674009 0) (-0.138607 1.00023 0) (-0.196141 1.15975 0) (-0.189659 1.19559 0) (-0.185931 1.14313 0) (-0.15437 1.068 0) (-0.0998351 1.0206 0) (-0.0339299 0.966576 0) (0.0218687 0.907421 0) (0.0500782 0.867794 0) (0.0633291 0.864575 0) (0.0778961 0.871591 0) (0.0922432 0.869483 0) (0.101469 0.88474 0) (0.105835 0.944328 0) (0.0979507 0.961537 0) (0.0714466 0.91613 0) (0.0552 0.872109 0) (0.0473411 0.837391 0) (0.046081 0.805482 0) (0.0480341 0.769217 0) (0.0534702 0.726528 0) (0.0402687 0.664531 0) (0.016947 0.581236 0) (-0.00139717 0.528338 0) (-0.0107578 0.489536 0) (-0.0114198 0.46065 0) (-0.00474424 0.435358 0) (-0.0173012 0.414829 0) (-0.0602349 0.590228 0) (-0.159535 0.718232 0) (-0.149531 1.01084 0) (-0.16283 1.15261 0) (-0.161553 1.17696 0) (-0.156846 1.111 0) (-0.121016 1.01192 0) (-0.0629643 0.954741 0) (-0.00675857 0.910008 0) (0.0272543 0.874265 0) (0.0399158 0.852638 0) (0.0463734 0.849921 0) (0.0576753 0.85374 0) (0.0725065 0.857502 0) (0.0763361 0.875872 0) (0.0791957 0.935515 0) (0.102366 0.963591 0) (0.102444 0.932964 0) (0.0868463 0.881631 0) (0.0783287 0.839238 0) (0.0764032 0.810398 0) (0.0727308 0.782291 0) (0.066916 0.743733 0) (0.056059 0.686363 0) (0.0342968 0.6091 0) (0.0110486 0.54249 0) (-0.00258332 0.493379 0) (-0.00682321 0.45611 0) (-0.00353323 0.426517 0) (-0.103032 0.472526 0) (-0.115945 0.661161 0) (-0.167524 0.702084 0) (-0.136249 1.00215 0) (-0.133529 1.14914 0) (-0.140228 1.16548 0) (-0.120717 1.07298 0) (-0.0692311 0.953756 0) (-0.0205711 0.901102 0) (0.0135055 0.874383 0) (0.0291585 0.857213 0) (0.0325977 0.844927 0) (0.0334035 0.84051 0) (0.0393589 0.840108 0) (0.0505468 0.846546 0) (0.0577637 0.873453 0) (0.0710606 0.910664 0) (0.0997851 0.931145 0) (0.137285 0.925483 0) (0.137753 0.891881 0) (0.124726 0.840218 0) (0.123767 0.809219 0) (0.121628 0.792519 0) (0.108979 0.763617 0) (0.0868759 0.715294 0) (0.0527033 0.647343 0) (0.0183551 0.569344 0) (-0.00116547 0.503296 0) (-0.00627396 0.455254 0) (-0.00355345 0.418766 0) (-0.0677093 0.58054 0) (-0.1136 0.664226 0) (-0.140537 0.709711 0) (-0.131798 0.98606 0) (-0.121401 1.14432 0) (-0.114114 1.14746 0) (-0.0677347 1.01161 0) (-0.0137983 0.904842 0) (0.0142759 0.870568 0) (0.0275309 0.858475 0) (0.0314381 0.851169 0) (0.0298098 0.844045 0) (0.0259468 0.838352 0) (0.0243593 0.833679 0) (0.0275593 0.837005 0) (0.0403969 0.858426 0) (0.0667415 0.879253 0) (0.10322 0.890835 0) (0.14649 0.884308 0) (0.182326 0.892667 0) (0.178926 0.847141 0) (0.178416 0.802749 0) (0.183971 0.796023 0) (0.174882 0.780812 0) (0.147471 0.746786 0) (0.0869977 0.700911 0) (0.0179279 0.612881 0) (-0.0115802 0.515586 0) (-0.0122125 0.454852 0) (-0.00471563 0.410198 0) (-0.0522911 0.654779 0) (-0.0961645 0.699552 0) (-0.134714 0.740339 0) (-0.144037 0.970267 0) (-0.114908 1.12926 0) (-0.0669552 1.09611 0) (-0.0034514 0.950122 0) (0.0310304 0.878222 0) (0.0390144 0.860169 0) (0.0391329 0.855122 0) (0.0364096 0.851634 0) (0.0319953 0.847187 0) (0.0257652 0.84217 0) (0.0187184 0.836509 0) (0.0145204 0.835215 0) (0.0229495 0.841721 0) (0.050344 0.846686 0) (0.0934457 0.8467 0) (0.14059 0.838868 0) (0.186745 0.855982 0) (0.223831 0.846614 0) (0.227406 0.794943 0) (0.237914 0.788154 0) (0.239768 0.793374 0) (0.222045 0.805144 0) (0.143505 0.812643 0) (0.0115172 0.698324 0) (-0.0352425 0.522685 0) (-0.025792 0.447292 0) (-0.00667135 0.398135 0) (-0.03517 0.723188 0) (-0.0775466 0.742089 0) (-0.130182 0.780692 0) (-0.148211 0.950532 0) (-0.0880487 1.07964 0) (-0.00457658 1.02371 0) (0.0490391 0.913341 0) (0.0593847 0.872287 0) (0.0549523 0.862114 0) (0.048954 0.858505 0) (0.0434821 0.855544 0) (0.0383808 0.851853 0) (0.032612 0.848068 0) (0.0254198 0.843656 0) (0.0184936 0.839668 0) (0.0184436 0.834461 0) (0.0336665 0.822951 0) (0.0677252 0.806585 0) (0.114583 0.79061 0) (0.167333 0.798579 0) (0.223313 0.808337 0) (0.255988 0.794474 0) (0.272778 0.802974 0) (0.270444 0.814394 0) (0.22064 0.822493 0) (0.135382 0.871087 0) (0.0153666 0.775951 0) (-0.0562944 0.534228 0) (-0.0402963 0.42669 0) (-0.00706007 0.38212 0) (-0.0207727 0.763662 0) (-0.0572846 0.785504 0) (-0.103125 0.813178 0) (-0.105729 0.922509 0) (-0.0331218 1.00816 0) (0.0452067 0.966682 0) (0.07417 0.903676 0) (0.0705074 0.87875 0) (0.061932 0.86911 0) (0.0551205 0.864045 0) (0.0501503 0.859989 0) (0.0467094 0.856042 0) (0.0436386 0.852899 0) (0.0394432 0.849605 0) (0.0340793 0.845245 0) (0.0295204 0.8353 0) (0.0311179 0.812937 0) (0.0461974 0.779163 0) (0.0800172 0.747722 0) (0.130562 0.73548 0) (0.205735 0.749615 0) (0.262072 0.742138 0) (0.285306 0.764007 0) (0.261441 0.805433 0) (0.208289 0.871742 0) (0.165384 0.926991 0) (0.11406 0.870262 0) (-0.0259968 0.561551 0) (-0.0469503 0.39339 0) (-0.00798652 0.362806 0) (-0.00895919 0.778179 0) (-0.034729 0.804235 0) (-0.0396407 0.827241 0) (-0.0276658 0.898341 0) (0.0202473 0.956972 0) (0.0633828 0.940638 0) (0.0724962 0.907768 0) (0.065885 0.887661 0) (0.0594524 0.875797 0) (0.0556289 0.86848 0) (0.0540867 0.862562 0) (0.0542331 0.856994 0) (0.0551152 0.854227 0) (0.0546076 0.852595 0) (0.0519087 0.849455 0) (0.046533 0.839033 0) (0.0383917 0.813403 0) (0.0354479 0.770853 0) (0.048723 0.71992 0) (0.0846845 0.679329 0) (0.148823 0.669608 0) (0.223684 0.69249 0) (0.25715 0.753183 0) (0.25289 0.843959 0) (0.218014 0.870137 0) (0.208796 0.899409 0) (0.205873 0.908474 0) (0.121444 0.696129 0) (-0.0319449 0.407044 0) (-0.0105134 0.332808 0) (0.0110164 0.778094 0) (0.00945533 0.795347 0) (0.0238897 0.843685 0) (0.0255307 0.899993 0) (0.03647 0.939888 0) (0.0485821 0.934755 0) (0.050368 0.913141 0) (0.0483116 0.892781 0) (0.0482699 0.878048 0) (0.0502971 0.868341 0) (0.0537797 0.860447 0) (0.0587952 0.853668 0) (0.0640571 0.851392 0) (0.067323 0.851481 0) (0.0675315 0.850453 0) (0.062433 0.845548 0) (0.0476218 0.827143 0) (0.0254276 0.782018 0) (0.0194479 0.709147 0) (0.0355876 0.650431 0) (0.063744 0.607399 0) (0.111228 0.622214 0) (0.159377 0.691112 0) (0.216215 0.804393 0) (0.245041 0.858916 0) (0.244734 0.884227 0) (0.246116 0.901795 0) (0.211072 0.821385 0) (0.0399469 0.512975 0) (-0.0171179 0.323464 0) (0.0633641 0.761524 0) (0.0487978 0.794271 0) (0.0467885 0.875416 0) (0.0208369 0.92557 0) (0.0070299 0.945885 0) (0.0062411 0.936541 0) (0.0106521 0.914189 0) (0.0178045 0.890632 0) (0.0276363 0.872805 0) (0.0384891 0.861955 0) (0.0489411 0.853101 0) (0.0589867 0.846139 0) (0.0673522 0.845137 0) (0.0727073 0.847751 0) (0.0752548 0.850605 0) (0.0665337 0.857185 0) (0.0474373 0.847109 0) (0.0182118 0.804735 0) (-0.000130137 0.708848 0) (-0.00179959 0.639109 0) (0.00337333 0.591768 0) (0.0179538 0.580275 0) (0.0609041 0.631255 0) (0.135014 0.729196 0) (0.213438 0.817287 0) (0.256285 0.869208 0) (0.268263 0.890122 0) (0.257226 0.882962 0) (0.173269 0.66633 0) (0.0282943 0.373617 0) (0.0549811 0.708196 0) (0.0429293 0.839699 0) (0.00549351 0.925022 0) (-0.0335166 0.961618 0) (-0.0540037 0.958719 0) (-0.054122 0.937846 0) (-0.0432648 0.907353 0) (-0.0252132 0.878007 0) (-0.00380896 0.856758 0) (0.0184254 0.846261 0) (0.0385845 0.839113 0) (0.0543783 0.836843 0) (0.0640935 0.838301 0) (0.0702098 0.84215 0) (0.0727604 0.853437 0) (0.0594561 0.87354 0) (0.0423082 0.865542 0) (0.0282163 0.819361 0) (0.0039471 0.716818 0) (-0.0113673 0.637324 0) (-0.018524 0.59519 0) (-0.0223386 0.571383 0) (-0.005186 0.592399 0) (0.0429994 0.659159 0) (0.119236 0.739405 0) (0.201223 0.816603 0) (0.253394 0.868649 0) (0.265872 0.892681 0) (0.241661 0.759332 0) (0.0776894 0.497692 0) (0.0163531 0.713299 0) (-0.0132274 0.903962 0) (-0.0651487 0.973824 0) (-0.10471 0.993944 0) (-0.12257 0.969332 0) (-0.118565 0.934238 0) (-0.10262 0.893098 0) (-0.0770238 0.855696 0) (-0.0447005 0.82956 0) (-0.0104746 0.819893 0) (0.0202739 0.817378 0) (0.042975 0.822965 0) (0.0531723 0.830689 0) (0.0607498 0.838053 0) (0.0631359 0.856164 0) (0.0571867 0.889588 0) (0.0493532 0.872285 0) (0.0446405 0.828453 0) (0.0244085 0.736218 0) (-0.00304254 0.648432 0) (-0.017588 0.602864 0) (-0.0241546 0.57161 0) (-0.0229705 0.579023 0) (-0.00666629 0.619622 0) (0.0373456 0.674415 0) (0.105829 0.737333 0) (0.179399 0.818993 0) (0.229389 0.884685 0) (0.202185 0.84103 0) (0.069091 0.673442 0) (-0.00360187 0.754847 0) (-0.071003 1.0031 0) (-0.157363 1.02008 0) (-0.185165 1.01724 0) (-0.191017 0.970397 0) (-0.18117 0.923533 0) (-0.160563 0.873988 0) (-0.130997 0.827967 0) (-0.0930578 0.793961 0) (-0.0495477 0.783853 0) (-0.00990885 0.78917 0) (0.0161323 0.807385 0) (0.0283807 0.824579 0) (0.0388718 0.83301 0) (0.0489066 0.853894 0) (0.0575444 0.888723 0) (0.0631857 0.878056 0) (0.0568449 0.845119 0) (0.042462 0.771256 0) (0.0128321 0.683241 0) (-0.00784624 0.611364 0) (-0.00829711 0.567143 0) (-0.00673875 0.574851 0) (-0.00707781 0.610314 0) (0.00135315 0.652402 0) (0.0341501 0.704482 0) (0.0835871 0.783467 0) (0.132448 0.864825 0) (0.100984 0.930703 0) (0.0234546 0.756852 0) (-0.0512969 0.79611 0) (-0.146142 1.12554 0) (-0.269145 1.04992 0) (-0.254357 1.02197 0) (-0.248031 0.963634 0) (-0.23287 0.908068 0) (-0.209952 0.851063 0) (-0.180225 0.798613 0) (-0.140879 0.754499 0) (-0.0920486 0.740259 0) (-0.0434173 0.7547 0) (-0.0103903 0.786852 0) (0.00706554 0.811922 0) (0.0216145 0.821662 0) (0.0383815 0.836954 0) (0.0645789 0.876303 0) (0.0856194 0.893203 0) (0.07692 0.875899 0) (0.0520624 0.813414 0) (0.0175437 0.723374 0) (0.000443732 0.619864 0) (0.0156681 0.556132 0) (0.030054 0.5697 0) (0.0273743 0.616054 0) (0.0214401 0.666564 0) (0.0222383 0.719879 0) (0.0185899 0.785467 0) (0.0290119 0.8492 0) (0.0199446 0.973851 0) (0.00278742 0.787556 0) (-0.170163 0.809641 0) (-0.166576 1.09616 0) (-0.263999 0.936022 0) (-0.253433 0.945984 0) (-0.263606 0.937767 0) (-0.251995 0.902471 0) (-0.24232 0.842444 0) (-0.221529 0.776392 0) (-0.181851 0.715181 0) (-0.128472 0.690856 0) (-0.0689321 0.709504 0) (-0.0265997 0.760656 0) (-0.00115946 0.79516 0) (0.0225375 0.809819 0) (0.0528278 0.821314 0) (0.0925284 0.86825 0) (0.119489 0.920248 0) (0.10218 0.920038 0) (0.0525455 0.873547 0) (-0.003537 0.771751 0) (-0.0204556 0.628871 0) (0.0252868 0.52399 0) (0.0647745 0.558247 0) (0.0690828 0.639979 0) (0.0184813 0.647585 0) (-0.0180362 0.635235 0) (-0.033233 0.66264 0) (-0.0274626 0.69607 0) (-0.000141611 0.832075 0) (0.0434619 0.602816 0) (-0.136215 0.892854 0) (-0.140054 1.10231 0) (-0.218793 0.874625 0) (-0.232134 0.842828 0) (-0.231372 0.787266 0) (-0.211681 0.769133 0) (-0.227741 0.783625 0) (-0.241205 0.755419 0) (-0.215387 0.680519 0) (-0.154048 0.634766 0) (-0.0795947 0.661349 0) (-0.0345694 0.743352 0) (-0.00881345 0.782047 0) (0.0292306 0.792227 0) (0.0797264 0.782523 0) (0.101691 0.790737 0) (0.0926671 0.8049 0) (0.0729387 0.819005 0) (0.0286866 0.799384 0) (-0.0167394 0.71713 0) (-0.0223384 0.583494 0) (0.00734797 0.47075 0) (0.0293707 0.521524 0) (-0.0122964 0.546343 0) (-0.026741 0.5987 0) (-0.0597397 0.59979 0) (-0.0595974 0.613175 0) (-0.0648816 0.634336 0) (-0.0551736 0.71738 0) (0.0619588 0.665882 0) (-0.107197 0.960967 0) (-0.0717488 1.03526 0) (-0.0943458 0.882289 0) (-0.126271 0.826836 0) (-0.15026 0.788263 0) (-0.171193 0.756375 0) (-0.197642 0.738263 0) (-0.192852 0.646365 0) (-0.193307 0.606533 0) (-0.152855 0.566609 0) (-0.0758956 0.599049 0) (-0.0337498 0.68366 0) (-0.0272604 0.6831 0) (0.0105535 0.656845 0) (0.0531297 0.634359 0) (0.075141 0.734665 0) (0.0500168 0.79982 0) (0.0115919 0.840169 0) (-0.0372024 0.836253 0) (-0.071384 0.715775 0) (-0.0734158 0.544143 0) (-0.0889408 0.405332 0) (-0.0986921 0.527438 0) (-0.126924 0.588157 0) (-0.145475 0.584557 0) (-0.152584 0.540897 0) (-0.134818 0.519847 0) (-0.124185 0.543439 0) (-0.120154 0.584489 0) (0.0064565 0.482412 0) (-0.0893671 0.949784 0) (-0.0563587 0.915935 0) (-0.0388644 0.785727 0) (-0.0396398 0.726135 0) (-0.0413131 0.691945 0) (-0.0560227 0.688855 0) (-0.076019 0.693902 0) (-0.109361 0.652474 0) (-0.127882 0.566725 0) (-0.0966463 0.468587 0) (-0.0795327 0.488996 0) (-0.0329465 0.624637 0) (-0.0208985 0.643652 0) (-0.00751513 0.6245 0) (-0.0198197 0.632591 0) (-0.0491903 0.696252 0) (-0.0744849 0.736775 0) (-0.0942714 0.756716 0) (-0.107173 0.748254 0) (-0.120677 0.657325 0) (-0.151731 0.538196 0) (-0.216729 0.461599 0) (-0.246892 0.486595 0) (-0.246142 0.475486 0) (-0.222082 0.456916 0) (-0.194681 0.430158 0) (-0.166591 0.419127 0) (-0.132928 0.430269 0) (-0.0859324 0.43636 0) (0.0126029 0.379318 0) (-0.0607847 1.02739 0) (-0.0283348 0.910684 0) (-0.00843479 0.786387 0) (0.00229595 0.719361 0) (0.0114447 0.674243 0) (0.014436 0.647636 0) (0.0199295 0.628623 0) (0.0159022 0.591274 0) (-0.00914249 0.535594 0) (-0.033652 0.460407 0) (-0.0684427 0.482931 0) (-0.0648009 0.5689 0) (-0.0651052 0.568281 0) (-0.077699 0.55495 0) (-0.107782 0.562904 0) (-0.132888 0.616767 0) (-0.141803 0.670325 0) (-0.144832 0.705393 0) (-0.141969 0.702817 0) (-0.148006 0.631938 0) (-0.178262 0.534631 0) (-0.230321 0.453302 0) (-0.258631 0.437132 0) (-0.25009 0.439248 0) (-0.227063 0.43108 0) (-0.201099 0.410102 0) (-0.170775 0.394374 0) (-0.128999 0.391399 0) (-0.071312 0.381517 0) (0.00174832 0.349896 0) (-0.0143124 1.05478 0) (0.0181136 0.89114 0) (0.0372479 0.770119 0) (0.0505383 0.703684 0) (0.0618488 0.665664 0) (0.0698723 0.642764 0) (0.0767302 0.622292 0) (0.0768149 0.583874 0) (0.0607625 0.525456 0) (0.0173078 0.466039 0) (-0.0380293 0.460593 0) (-0.0655532 0.504652 0) (-0.0773861 0.52239 0) (-0.10058 0.540023 0) (-0.131331 0.573221 0) (-0.154946 0.628894 0) (-0.162635 0.679351 0) (-0.160073 0.709314 0) (-0.150894 0.705198 0) (-0.151092 0.648955 0) (-0.172792 0.562414 0) (-0.210277 0.485321 0) (-0.236921 0.451045 0) (-0.237335 0.429272 0) (-0.22261 0.405424 0) (-0.200285 0.377048 0) (-0.171374 0.352338 0) (-0.131006 0.333767 0) (-0.0786757 0.312689 0) (-0.0210121 0.303319 0) (0.0165208 1.0201 0) (0.0678496 0.860477 0) (0.087001 0.752924 0) (0.0997697 0.692399 0) (0.108123 0.658671 0) (0.112761 0.638666 0) (0.114276 0.620958 0) (0.10936 0.593737 0) (0.0896266 0.552152 0) (0.0457925 0.507005 0) (-0.00952387 0.498806 0) (-0.0501246 0.528045 0) (-0.0765271 0.548872 0) (-0.104933 0.571804 0) (-0.134167 0.604572 0) (-0.155512 0.647521 0) (-0.163291 0.685826 0) (-0.160245 0.70666 0) (-0.150595 0.700027 0) (-0.146191 0.655739 0) (-0.157737 0.586345 0) (-0.182617 0.515043 0) (-0.204832 0.464281 0) (-0.211501 0.425031 0) (-0.204607 0.389675 0) (-0.18854 0.354613 0) (-0.164399 0.322474 0) (-0.130358 0.29412 0) (-0.0889778 0.268414 0) (-0.0431269 0.260203 0) (0.0515116 0.940226 0) (0.101059 0.816835 0) (0.122997 0.730348 0) (0.135697 0.680676 0) (0.141128 0.652882 0) (0.141164 0.637283 0) (0.136475 0.625082 0) (0.124913 0.608169 0) (0.101037 0.582748 0) (0.0598285 0.556514 0) (0.00932825 0.550508 0) (-0.0341785 0.565999 0) (-0.068413 0.583773 0) (-0.09998 0.604815 0) (-0.127891 0.63147 0) (-0.147416 0.662292 0) (-0.155546 0.688378 0) (-0.153415 0.700544 0) (-0.145078 0.691032 0) (-0.138767 0.654879 0) (-0.142194 0.598394 0) (-0.155834 0.534822 0) (-0.171235 0.477678 0) (-0.179428 0.427625 0) (-0.178071 0.381544 0) (-0.167552 0.337048 0) (-0.147891 0.294239 0) (-0.119133 0.254249 0) (-0.0847131 0.216612 0) (-0.0441736 0.182072 0) (0.0667421 0.859707 0) (0.112393 0.771387 0) (0.138629 0.707528 0) (0.15221 0.670361 0) (0.156236 0.650293 0) (0.153234 0.640746 0) (0.144214 0.634792 0) (0.127961 0.626954 0) (0.101799 0.61396 0) (0.0638661 0.600249 0) (0.01922 0.596652 0) (-0.0226235 0.605088 0) (-0.0586581 0.618073 0) (-0.0904144 0.63462 0) (-0.116676 0.65455 0) (-0.134739 0.675523 0) (-0.142877 0.691417 0) (-0.142297 0.695893 0) (-0.136082 0.683493 0) (-0.129778 0.651215 0) (-0.12874 0.602467 0) (-0.134417 0.544951 0) (-0.142923 0.486706 0) (-0.14859 0.430468 0) (-0.148014 0.375924 0) (-0.139767 0.322486 0) (-0.123334 0.270809 0) (-0.0991091 0.221995 0) (-0.0698603 0.175143 0) (-0.0356203 0.126144 0) (0.067739 0.778523 0) (0.109685 0.726064 0) (0.138075 0.685231 0) (0.152302 0.6616 0) (0.155768 0.650453 0) (0.151553 0.647376 0) (0.140283 0.648586 0) (0.121897 0.64877 0) (0.0956702 0.644919 0) (0.0614365 0.639285 0) (0.0225031 0.637862 0) (-0.015549 0.642731 0) (-0.0498242 0.651364 0) (-0.079687 0.662762 0) (-0.10378 0.675865 0) (-0.120394 0.688264 0) (-0.128519 0.695572 0) (-0.129266 0.69337 0) (-0.124894 0.677742 0) (-0.119219 0.646803 0) (-0.115907 0.602289 0) (-0.116447 0.548651 0) (-0.119216 0.490785 0) (-0.120932 0.431294 0) (-0.118827 0.371116 0) (-0.111248 0.310999 0) (-0.0974675 0.252395 0) (-0.0776858 0.196757 0) (-0.053993 0.143157 0) (-0.0266757 0.0854716 0) (0.0602466 0.702406 0) (0.0988925 0.682244 0) (0.12681 0.662785 0) (0.141386 0.652975 0) (0.145287 0.651283 0) (0.140194 0.655871 0) (0.128033 0.664029 0) (0.109613 0.67101 0) (0.0849974 0.673894 0) (0.0547977 0.673685 0) (0.021295 0.674053 0) (-0.0120604 0.677007 0) (-0.0428131 0.682051 0) (-0.0696081 0.688528 0) (-0.0910907 0.695294 0) (-0.106032 0.700248 0) (-0.113866 0.700301 0) (-0.115389 0.692204 0) (-0.112281 0.673225 0) (-0.10718 0.642054 0) (-0.102626 0.59953 0) (-0.0999172 0.548163 0) (-0.0985505 0.490884 0) (-0.0968254 0.429695 0) (-0.0929479 0.365944 0) (-0.085621 0.301158 0) (-0.0741391 0.237457 0) (-0.0584911 0.176718 0) (-0.0401393 0.118145 0) (-0.0193084 0.0544852 0) (0.0487331 0.63666 0) (0.0841217 0.64257 0) (0.109033 0.641197 0) (0.122841 0.643968 0) (0.126568 0.651958 0) (0.121879 0.664469 0) (0.110462 0.679046 0) (0.0934439 0.691738 0) (0.0715143 0.699678 0) (0.0455635 0.703265 0) (0.0172473 0.705051 0) (-0.0111509 0.706859 0) (-0.0376534 0.709004 0) (-0.060811 0.711167 0) (-0.0793737 0.712413 0) (-0.09239 0.711094 0) (-0.099505 0.704982 0) (-0.101221 0.691747 0) (-0.0987906 0.669442 0) (-0.0940411 0.637101 0) (-0.0887698 0.595074 0) (-0.0840777 0.544751 0) (-0.0800357 0.487862 0) (-0.0759277 0.42584 0) (-0.0707884 0.36006 0) (-0.0637881 0.29242 0) (-0.0543709 0.225444 0) (-0.0423933 0.161291 0) (-0.0287567 0.0993235 0) (-0.0135028 0.031808 0) (0.037742 0.583622 0) (0.0674105 0.609078 0) (0.0886111 0.621985 0) (0.100957 0.635675 0) (0.104452 0.652445 0) (0.100393 0.672105 0) (0.0903074 0.692492 0) (0.0754346 0.709964 0) (0.0567091 0.721767 0) (0.0350346 0.728102 0) (0.0116409 0.730973 0) (-0.0118726 0.732003 0) (-0.033945 0.73182 0) (-0.053268 0.730361 0) (-0.0687521 0.726966 0) (-0.0796274 0.720428 0) (-0.0856157 0.709149 0) (-0.0870456 0.691465 0) (-0.0848108 0.665995 0) (-0.0801974 0.632008 0) (-0.0745129 0.589602 0) (-0.0686949 0.539542 0) (-0.0631067 0.482855 0) (-0.0576241 0.420549 0) (-0.0518773 0.353879 0) (-0.0454452 0.284838 0) (-0.0379503 0.216108 0) (-0.029185 0.149964 0) (-0.0196104 0.0858646 0) (-0.00894949 0.015925 0) (0.0276777 0.54284 0) (0.0512252 0.582141 0) (0.0683581 0.605816 0) (0.0786649 0.628423 0) (0.0816406 0.652729 0) (0.0782018 0.67863 0) (0.0696566 0.703995 0) (0.0572178 0.725321 0) (0.0418359 0.740057 0) (0.0242954 0.748409 0) (0.00550619 0.752083 0) (-0.0133716 0.75253 0) (-0.0311196 0.75048 0) (-0.0466381 0.746048 0) (-0.0590138 0.738831 0) (-0.0676145 0.727992 0) (-0.0722001 0.712416 0) (-0.0729815 0.690933 0) (-0.070591 0.662573 0) (-0.065952 0.626793 0) (-0.0600472 0.583589 0) (-0.0536836 0.533392 0) (-0.0473637 0.476835 0) (-0.0413064 0.414639 0) (-0.0355329 0.347897 0) (-0.0299255 0.278531 0) (-0.0242594 0.209201 0) (-0.0183079 0.142188 0) (-0.0122102 0.0769566 0) (-0.00528078 0.00541853 0) (0.0191745 0.51296 0) (0.0368685 0.561529 0) (0.0499152 0.593009 0) (0.0578814 0.622582 0) (0.0600709 0.653041 0) (0.0571046 0.684097 0) (0.0500684 0.713479 0) (0.0400598 0.737767 0) (0.0279151 0.754667 0) (0.0142378 0.764481 0) (-0.00032025 0.768724 0) (-0.0149098 0.768698 0) (-0.0285914 0.765148 0) (-0.0404775 0.758308 0) (-0.0498243 0.747985 0) (-0.0561174 0.733642 0) (-0.0591482 0.71453 0) (-0.0590509 0.689857 0) (-0.056279 0.658961 0) (-0.0515145 0.621465 0) (-0.0455225 0.577348 0) (-0.0390055 0.526885 0) (-0.0325201 0.470496 0) (-0.0264707 0.408727 0) (-0.0211165 0.342504 0) (-0.0165429 0.273586 0) (-0.0126404 0.204502 0) (-0.00917474 0.137456 0) (-0.00604086 0.0718999 0) (-0.00220018 -0.000679118 0) (0.0124063 0.492308 0) (0.0248832 0.546699 0) (0.0341063 0.583583 0) (0.039687 0.618357 0) (0.040939 0.653581 0) (0.0382849 0.688641 0) (0.0326175 0.721048 0) (0.0248765 0.747451 0) (0.0157218 0.765857 0) (0.00555735 0.776681 0) (-0.00518156 0.781291 0) (-0.015884 0.780855 0) (-0.0258392 0.776094 0) (-0.0343531 0.76732 0) (-0.0408373 0.754502 0) (-0.0448825 0.737338 0) (-0.0463165 0.715362 0) (-0.0452292 0.688069 0) (-0.0419578 0.655038 0) (-0.0370255 0.616043 0) (-0.0310487 0.571095 0) (-0.0246451 0.520409 0) (-0.0183779 0.464312 0) (-0.0127388 0.40324 0) (-0.00811822 0.337974 0) (-0.00472808 0.270066 0) (-0.00253852 0.201838 0) (-0.00131022 0.135371 0) (-0.000715471 0.0700733 0) (0.000505184 -0.00300861 0) (0.00726171 0.479054 0) (0.0153533 0.536855 0) (0.0212198 0.577295 0) (0.0245783 0.615765 0) (0.0248749 0.654468 0) (0.0224219 0.692417 0) (0.0179605 0.726887 0) (0.0122605 0.754628 0) (0.00578631 0.773962 0) (-0.00125057 0.785409 0) (-0.00859811 0.790207 0) (-0.0158385 0.789394 0) (-0.0224486 0.783649 0) (-0.0279034 0.773333 0) (-0.0317535 0.758535 0) (-0.0336862 0.739136 0) (-0.033571 0.714886 0) (-0.0314796 0.685503 0) (-0.027677 0.650761 0) (-0.0225825 0.610564 0) (-0.0167093 0.564982 0) (-0.0106046 0.51423 0) (-0.00481204 0.458599 0) (0.000148864 0.398469 0) (0.00382653 0.334496 0) (0.00593607 0.268009 0) (0.00645286 0.201084 0) (0.00562292 0.135644 0) (0.00396962 0.071025 0) (0.00290216 -0.00199069 0) (0.0035353 0.471455 0) (0.0081311 0.531089 0) (0.0112206 0.573729 0) (0.0126651 0.614667 0) (0.0121043 0.655725 0) (0.00981284 0.695543 0) (0.00641846 0.731195 0) (0.00252701 0.75958 0) (-0.00158689 0.779343 0) (-0.00588171 0.791081 0) (-0.0102608 0.795905 0) (-0.0144685 0.79473 0) (-0.0181297 0.788179 0) (-0.0208656 0.776641 0) (-0.0223502 0.760297 0) (-0.0223605 0.739164 0) (-0.0208116 0.713161 0) (-0.0177751 0.682178 0) (-0.0134744 0.646145 0) (-0.00826079 0.605083 0) (-0.00257417 0.559129 0) (0.0030976 0.508526 0) (0.0082444 0.453567 0) (0.0123537 0.394603 0) (0.0149564 0.332188 0) (0.0157299 0.267434 0) (0.0146102 0.202146 0) (0.0118533 0.138071 0) (0.00814429 0.0744807 0) (0.00505077 0.0019259 0) (0.0009953 0.467986 0) (0.00295987 0.528487 0) (0.00388813 0.572369 0) (0.00381425 0.61481 0) (0.00258377 0.65728 0) (0.000482484 0.698082 0) (-0.0019399 0.734147 0) (-0.00422908 0.762587 0) (-0.00628531 0.782354 0) (-0.00820482 0.794101 0) (-0.0100154 0.798817 0) (-0.0116183 0.797282 0) (-0.01272 0.790058 0) (-0.0130826 0.77756 0) (-0.0124903 0.760034 0) (-0.0108026 0.7376 0) (-0.00798202 0.710302 0) (-0.00411052 0.678167 0) (0.000609927 0.641249 0) (0.00587256 0.59967 0) (0.0112913 0.553634 0) (0.0164288 0.503423 0) (0.0208149 0.449353 0) (0.0239637 0.391759 0) (0.0254146 0.331119 0) (0.0248291 0.26834 0) (0.0221126 0.20495 0) (0.017531 0.142502 0) (0.0119165 0.0802159 0) (0.00699595 0.00845677 0) (-0.00057194 0.467395 0) (-0.000444444 0.528178 0) (-0.00107979 0.572656 0) (-0.002239 0.615878 0) (-0.00389599 0.659001 0) (-0.0057217 0.700044 0) (-0.00721853 0.735873 0) (-0.0080717 0.763874 0) (-0.0083481 0.783263 0) (-0.00823674 0.794792 0) (-0.00794817 0.799318 0) (-0.00728138 0.797427 0) (-0.00617721 0.789641 0) (-0.00449528 0.776407 0) (-0.00211711 0.758013 0) (0.00102677 0.734652 0) (0.0049297 0.706465 0) (0.00949357 0.673584 0) (0.0145263 0.636162 0) (0.0197507 0.594405 0) (0.0248216 0.548581 0) (0.0293452 0.499013 0) (0.0328933 0.446042 0) (0.0350162 0.390006 0) (0.0352773 0.33132 0) (0.0333353 0.27071 0) (0.0290696 0.20943 0) (0.0227514 0.148817 0) (0.0153519 0.0880473 0) (0.00875662 0.017353 0) (-0.00132168 0.468328 0) (-0.00238855 0.529369 0) (-0.00401658 0.574056 0) (-0.00582786 0.617527 0) (-0.00763912 0.660702 0) (-0.00906132 0.701369 0) (-0.00965835 0.736423 0) (-0.00924307 0.763617 0) (-0.00805992 0.78251 0) (-0.00635314 0.793685 0) (-0.00411943 0.797811 0) (-0.00150742 0.795501 0) (0.00147673 0.787258 0) (0.00488583 0.773489 0) (0.00876134 0.754502 0) (0.0131134 0.730543 0) (0.0178956 0.701827 0) (0.022992 0.668565 0) (0.0282137 0.630989 0) (0.0333039 0.589375 0) (0.0379496 0.544045 0) (0.0417953 0.49536 0) (0.044454 0.44369 0) (0.0455164 0.389378 0) (0.0445772 0.332795 0) (0.0413017 0.27451 0) (0.035545 0.215517 0) (0.0275766 0.156916 0) (0.0184943 0.097825 0) (0.010343 0.0283918 0) (-0.00154031 0.470224 0) (-0.00316371 0.531403 0) (-0.00527262 0.576057 0) (-0.00733049 0.619404 0) (-0.00902356 0.662166 0) (-0.00990085 0.702003 0) (-0.00965836 0.735991 0) (-0.00821663 0.762238 0) (-0.00569376 0.780319 0) (-0.00239784 0.790845 0) (0.00142951 0.794508 0) (0.00563797 0.791824 0) (0.0101699 0.783234 0) (0.014993 0.769108 0) (0.0200834 0.74977 0) (0.0253981 0.725502 0) (0.0308545 0.696574 0) (0.0363184 0.663256 0) (0.0416006 0.625843 0) (0.0464592 0.584666 0) (0.0506075 0.540092 0) (0.0537241 0.492514 0) (0.0554612 0.442328 0) (0.0554504 0.389885 0) (0.0533212 0.335526 0) (0.0487513 0.279693 0) (0.0415739 0.223134 0) (0.0320482 0.166701 0) (0.0213785 0.109422 0) (0.0117696 0.0413761 0) (-0.00127734 0.472225 0) (-0.00301222 0.533684 0) (-0.00518894 0.578219 0) (-0.0071553 0.621198 0) (-0.00850508 0.663231 0) (-0.00883688 0.701958 0) (-0.00773541 0.734649 0) (-0.00511535 0.759579 0) (-0.00132543 0.776684 0) (0.00327397 0.786552 0) (0.00842571 0.789747 0) (0.0139545 0.786726 0) (0.0197408 0.777877 0) (0.0256949 0.763552 0) (0.031739 0.744074 0) (0.037785 0.71975 0) (0.0437189 0.690887 0) (0.0493901 0.657802 0) (0.0546078 0.620836 0) (0.059142 0.58036 0) (0.0627285 0.536777 0) (0.0650765 0.490508 0) (0.0658748 0.441967 0) (0.0647945 0.391519 0) (0.0615014 0.339481 0) (0.0556897 0.286195 0) (0.0471733 0.232195 0) (0.0361934 0.178072 0) (0.0240353 0.122721 0) (0.0130577 0.0561321 0) (-0.00067562 0.473808 0) (-0.00216903 0.535767 0) (-0.00406572 0.580183 0) (-0.00563927 0.622659 0) (-0.00647177 0.663756 0) (-0.00602069 0.701136 0) (-0.00392415 0.732228 0) (-0.000267497 0.75578 0) (0.00460745 0.771877 0) (0.0103199 0.781053 0) (0.0165853 0.783787 0) (0.023194 0.780471 0) (0.0299839 0.771458 0) (0.0368214 0.757076 0) (0.0435858 0.737648 0) (0.0501531 0.713493 0) (0.0563839 0.684941 0) (0.0621143 0.652343 0) (0.0671523 0.616073 0) (0.0712784 0.576532 0) (0.0742487 0.534149 0) (0.0757999 0.489364 0) (0.0756547 0.442608 0) (0.0735221 0.394257 0) (0.0691035 0.344614 0) (0.0621126 0.293945 0) (0.0523486 0.242601 0) (0.0400279 0.190917 0) (0.0264904 0.13761 0) (0.0142329 0.0725132 0) (0.000139132 0.474596 0) (-0.000847254 0.537302 0) (-0.00218138 0.581641 0) (-0.00311655 0.623529 0) (-0.00317981 0.663536 0) (-0.00183119 0.699374 0) (0.0012336 0.728812 0) (0.00588323 0.750964 0) (0.0117375 0.766043 0) (0.0184132 0.77453 0) (0.0256114 0.77683 0) (0.0330975 0.773283 0) (0.0406775 0.764205 0) (0.0481844 0.749906 0) (0.0554652 0.7307 0) (0.0623689 0.706913 0) (0.0687365 0.67889 0) (0.0743946 0.647002 0) (0.0791517 0.611645 0) (0.0827982 0.573243 0) (0.0851091 0.53224 0) (0.0858466 0.489092 0) (0.0847644 0.444237 0) (0.0816071 0.398065 0) (0.076111 0.350868 0) (0.0680113 0.302861 0) (0.0570969 0.254245 0) (0.043557 0.205112 0) (0.028761 0.153968 0) (0.015319 0.0903976 0) (0.00102784 0.474388 0) (0.000780554 0.538031 0) (0.000210759 0.582356 0) (0.000102524 0.623605 0) (0.000945413 0.662409 0) (0.00328538 0.696634 0) (0.00735506 0.72441 0) (0.0129635 0.745196 0) (0.019715 0.75929 0) (0.0272335 0.767127 0) (0.0352152 0.769047 0) (0.0434086 0.765349 0) (0.0515979 0.756314 0) (0.0595922 0.742233 0) (0.0672153 0.72341 0) (0.0742966 0.700171 0) (0.0806636 0.672869 0) (0.0861372 0.641886 0) (0.0905282 0.607633 0) (0.0936376 0.570544 0) (0.095258 0.531076 0) (0.0951757 0.48969 0) (0.0931727 0.446833 0) (0.0890271 0.402899 0) (0.0825084 0.35818 0) (0.0733746 0.312857 0) (0.0614105 0.267015 0) (0.0467767 0.220527 0) (0.0308529 0.171669 0) (0.016332 0.109679 0) (0.00199676 0.472989 0) (0.00257396 0.53778 0) (0.00290429 0.582159 0) (0.00376209 0.622745 0) (0.00562577 0.660283 0) (0.00902166 0.692866 0) (0.0141086 0.719026 0) (0.0206418 0.738522 0) (0.0282222 0.751706 0) (0.0364844 0.758963 0) (0.0451252 0.760584 0) (0.0538845 0.756829 0) (0.0625323 0.74795 0) (0.0708619 0.734219 0) (0.0786815 0.715928 0) (0.0858077 0.6934 0) (0.0920598 0.66699 0) (0.0972565 0.637083 0) (0.101213 0.604097 0) (0.103742 0.568472 0) (0.104653 0.530668 0) (0.103755 0.491149 0) (0.100855 0.450364 0) (0.0957643 0.40871 0) (0.0882826 0.366484 0) (0.0781918 0.323845 0) (0.0652783 0.280795 0) (0.0496762 0.237024 0) (0.0327606 0.190573 0) (0.0172771 0.130255 0) (0.00292881 0.470369 0) (0.00439487 0.536457 0) (0.00571809 0.580935 0) (0.00763949 0.620837 0) (0.0106077 0.657074 0) (0.0151031 0.688036 0) (0.0212063 0.712673 0) (0.0286296 0.730988 0) (0.0369785 0.743365 0) (0.0459009 0.750138 0) (0.055098 0.751559 0) (0.0643062 0.747852 0) (0.0732882 0.739248 0) (0.0818279 0.725996 0) (0.0897245 0.708379 0) (0.0967875 0.686711 0) (0.102833 0.661344 0) (0.10768 0.632663 0) (0.111151 0.601085 0) (0.11307 0.56705 0) (0.113263 0.531017 0) (0.111561 0.493449 0) (0.107797 0.454791 0) (0.101808 0.415444 0) (0.0934245 0.375708 0) (0.0824539 0.335735 0) (0.0686883 0.295473 0) (0.0522404 0.254467 0) (0.0344708 0.210538 0) (0.0181495 0.152013 0) (0.00376323 0.466573 0) (0.00614198 0.53402 0) (0.00850672 0.57861 0) (0.011553 0.617804 0) (0.0156804 0.652728 0) (0.0212981 0.682129 0) (0.0284055 0.705369 0) (0.0366828 0.722639 0) (0.0457459 0.734331 0) (0.0552575 0.740735 0) (0.0649252 0.742068 0) (0.0744861 0.738526 0) (0.0837009 0.730316 0) (0.0923494 0.717672 0) (0.100227 0.700862 0) (0.107141 0.68019 0) (0.112907 0.656002 0) (0.11735 0.628677 0) (0.120299 0.598627 0) (0.121591 0.566289 0) (0.12107 0.532116 0) (0.118584 0.496563 0) (0.113991 0.460073 0) (0.107154 0.423044 0) (0.0979314 0.385784 0) (0.0861558 0.348442 0) (0.0716304 0.31094 0) (0.0544533 0.272721 0) (0.0359656 0.231414 0) (0.0189383 0.174831 0) (0.00447607 0.461681 0) (0.00774476 0.530473 0) (0.0111639 0.575149 0) (0.0153653 0.613598 0) (0.0206801 0.647212 0) (0.0274231 0.675146 0) (0.0355125 0.697137 0) (0.0446058 0.713514 0) (0.0543332 0.724659 0) (0.0643722 0.730822 0) (0.0744384 0.732191 0) (0.084273 0.728936 0) (0.0936382 0.721244 0) (0.102314 0.709332 0) (0.110097 0.693454 0) (0.116796 0.673904 0) (0.122229 0.651015 0) (0.126228 0.625161 0) (0.128633 0.596743 0) (0.129293 0.56619 0) (0.128067 0.533946 0) (0.124825 0.50046 0) (0.119443 0.466164 0) (0.111809 0.431454 0) (0.101808 0.396641 0) (0.0892984 0.361884 0) (0.0740982 0.327095 0) (0.0562995 0.291655 0) (0.0372243 0.253049 0) (0.0196281 0.198575 0) (0.00504912 0.455827 0) (0.0091593 0.525857 0) (0.0136217 0.570543 0) (0.0189846 0.608196 0) (0.0254918 0.64052 0) (0.0333449 0.667102 0) (0.0423845 0.688008 0) (0.0522537 0.703653 0) (0.0625977 0.714397 0) (0.0731089 0.720457 0) (0.0835121 0.721991 0) (0.0935546 0.719149 0) (0.103004 0.712099 0) (0.111643 0.701041 0) (0.119272 0.686214 0) (0.125705 0.6679 0) (0.130767 0.64642 0) (0.134298 0.622135 0) (0.136147 0.595438 0) (0.136178 0.566744 0) (0.134266 0.536486 0) (0.130297 0.505102 0) (0.124169 0.473015 0) (0.115789 0.440615 0) (0.105069 0.408216 0) (0.0918903 0.375987 0) (0.0760916 0.343846 0) (0.0577676 0.31115 0) (0.0382251 0.27529 0) (0.0201987 0.223096 0) (0.00547934 0.449161 0) (0.0103697 0.520233 0) (0.0158496 0.564805 0) (0.0223635 0.601594 0) (0.0300489 0.63266 0) (0.0389814 0.658024 0) (0.0489303 0.678014 0) (0.0595316 0.693094 0) (0.0704454 0.703591 0) (0.0813781 0.709689 0) (0.0920641 0.711522 0) (0.102259 0.709221 0) (0.111737 0.702935 0) (0.120287 0.692848 0) (0.127718 0.679185 0) (0.133848 0.662212 0) (0.138512 0.642238 0) (0.141559 0.619611 0) (0.142851 0.594708 0) (0.142265 0.567933 0) (0.139689 0.539706 0) (0.135027 0.51045 0) (0.128196 0.480579 0) (0.119122 0.450473 0) (0.107738 0.420446 0) (0.0939506 0.390682 0) (0.0776204 0.361112 0) (0.0588543 0.331096 0) (0.0389499 0.297988 0) (0.0206269 0.248219 0) (0.00577808 0.441831 0) (0.0113859 0.513664 0) (0.0178529 0.557955 0) (0.0254967 0.593802 0) (0.0343313 0.623658 0) (0.0442994 0.647948 0) (0.0551087 0.667194 0) (0.0663941 0.681877 0) (0.0778302 0.69228 0) (0.0891354 0.69856 0) (0.100055 0.700829 0) (0.110353 0.699196 0) (0.119812 0.693794 0) (0.128233 0.684791 0) (0.135428 0.672396 0) (0.141228 0.656862 0) (0.145477 0.638481 0) (0.148034 0.617587 0) (0.148774 0.594543 0) (0.147585 0.569736 0) (0.144372 0.543573 0) (0.139054 0.516463 0) (0.131564 0.488805 0) (0.121846 0.460972 0) (0.109851 0.433276 0) (0.0955103 0.405909 0) (0.078708 0.378823 0) (0.0595699 0.3514 0) (0.0393909 0.321004 0) (0.0208924 0.273747 0) (0.00596974 0.43397 0) (0.0122422 0.506209 0) (0.0196689 0.550015 0) (0.0284169 0.584841 0) (0.0383604 0.613547 0) (0.0493107 0.636916 0) (0.0609253 0.655592 0) (0.0728426 0.670041 0) (0.0847505 0.680505 0) (0.0963789 0.687112 0) (0.107483 0.68995 0) (0.117839 0.689111 0) (0.127239 0.68471 0) (0.135492 0.676899 0) (0.142423 0.665871 0) (0.147873 0.651863 0) (0.151695 0.635153 0) (0.153762 0.616058 0) (0.153958 0.594925 0) (0.152188 0.572127 0) (0.148367 0.548053 0) (0.14243 0.523097 0) (0.134324 0.497646 0) (0.12401 0.472061 0) (0.111456 0.44665 0) (0.0966134 0.421612 0) (0.0793925 0.396919 0) (0.0599421 0.371985 0) (0.0395588 0.344213 0) (0.0209862 0.299472 0) (0.00609023 0.425676 0) (0.0129935 0.497908 0) (0.0213634 0.541002 0) (0.0311895 0.574733 0) (0.0421953 0.60237 0) (0.0540678 0.624975 0) (0.0664277 0.643251 0) (0.07892 0.657628 0) (0.0912453 0.668306 0) (0.103145 0.675383 0) (0.114385 0.678923 0) (0.124753 0.679 0) (0.134053 0.675712 0) (0.142106 0.669194 0) (0.148747 0.659624 0) (0.153829 0.647223 0) (0.157218 0.632253 0) (0.158796 0.615012 0) (0.158462 0.595835 0) (0.15613 0.575076 0) (0.151732 0.553108 0) (0.145213 0.530309 0) (0.136535 0.507052 0) (0.125674 0.483688 0) (0.11261 0.460516 0) (0.0973158 0.43774 0) (0.0797261 0.415348 0) (0.0600166 0.392785 0) (0.0394854 0.367511 0) (0.0209169 0.325194 0) (0.00618574 0.417003 0) (0.0137142 0.488771 0) (0.0230267 0.530918 0) (0.0339085 0.563506 0) (0.0459272 0.590174 0) (0.0586585 0.612174 0) (0.0716991 0.630219 0) (0.0847041 0.644684 0) (0.0973871 0.655726 0) (0.109501 0.663412 0) (0.120825 0.667784 0) (0.131157 0.668896 0) (0.140316 0.666827 0) (0.148135 0.661697 0) (0.154462 0.653669 0) (0.15916 0.642946 0) (0.162109 0.629774 0) (0.163202 0.614437 0) (0.16235 0.597251 0) (0.15948 0.578553 0) (0.154535 0.558701 0) (0.147472 0.538056 0) (0.138265 0.516977 0) (0.126902 0.495802 0) (0.113378 0.474823 0) (0.0976818 0.454241 0) (0.0797717 0.434057 0) (0.0598523 0.413746 0) (0.0392205 0.390816 0) (0.0207117 0.350751 0) (0.00631227 0.407944 0) (0.0144961 0.478767 0) (0.0247714 0.51975 0) (0.0366933 0.551184 0) (0.049675 0.577003 0) (0.0631988 0.598563 0) (0.0768512 0.616544 0) (0.0903006 0.631256 0) (0.103275 0.642811 0) (0.11554 0.651243 0) (0.126888 0.656572 0) (0.137133 0.658831 0) (0.146107 0.658082 0) (0.153656 0.654428 0) (0.159641 0.648016 0) (0.16394 0.639034 0) (0.166442 0.627712 0) (0.167054 0.614318 0) (0.165698 0.599149 0) (0.162311 0.582528 0) (0.156847 0.564794 0) (0.149276 0.546294 0) (0.139582 0.527372 0) (0.127763 0.508353 0) (0.113827 0.489518 0) (0.0977788 0.471065 0) (0.0795962 0.452998 0) (0.0595134 0.434816 0) (0.0388229 0.414066 0) (0.0204105 0.37603 0) (0.00653567 0.398419 0) (0.0154467 0.467822 0) (0.0267285 0.507463 0) (0.0396828 0.537781 0) (0.0535787 0.5629 0) (0.0678263 0.584193 0) (0.0820162 0.602279 0) (0.0958342 0.617397 0) (0.109024 0.629611 0) (0.121369 0.638924 0) (0.132676 0.64533 0) (0.142775 0.648842 0) (0.151514 0.649506 0) (0.158752 0.647408 0) (0.164367 0.642678 0) (0.168248 0.635491 0) (0.170296 0.626061 0) (0.170429 0.614639 0) (0.168579 0.601506 0) (0.164696 0.586969 0) (0.158743 0.571351 0) (0.150698 0.554982 0) (0.140556 0.538191 0) (0.128325 0.521291 0) (0.114025 0.504551 0) (0.0976724 0.48816 0) (0.0792645 0.472124 0) (0.0590608 0.45595 0) (0.0383486 0.437217 0) (0.0200549 0.400972 0) (0.00693123 0.388262 0) (0.016685 0.455805 0) (0.0290407 0.494 0) (0.0430291 0.523303 0) (0.0577912 0.547899 0) (0.0726917 0.569113 0) (0.0873379 0.58748 0) (0.101439 0.603164 0) (0.114761 0.616184 0) (0.127103 0.626509 0) (0.138294 0.634108 0) (0.148181 0.638973 0) (0.156628 0.641134 0) (0.163512 0.640661 0) (0.168722 0.637671 0) (0.172163 0.632322 0) (0.173747 0.624817 0) (0.173401 0.615389 0) (0.171068 0.604303 0) (0.166708 0.591849 0) (0.160291 0.578336 0) (0.151806 0.564078 0) (0.141254 0.549389 0) (0.128654 0.534567 0) (0.114034 0.519871 0) (0.0974224 0.505478 0) (0.0788337 0.491387 0) (0.0585481 0.477107 0) (0.0378425 0.460231 0) (0.0196788 0.425544 0) (0.00758284 0.377203 0) (0.0183379 0.442536 0) (0.0318564 0.479288 0) (0.04689 0.507744 0) (0.0624709 0.532031 0) (0.0779478 0.553374 0) (0.09296 0.572207 0) (0.107248 0.588624 0) (0.120604 0.602597 0) (0.132852 0.614061 0) (0.143842 0.622962 0) (0.153442 0.629272 0) (0.161534 0.633006 0) (0.168013 0.634219 0) (0.172782 0.633013 0) (0.175759 0.629535 0) (0.176867 0.623978 0) (0.17604 0.616556 0) (0.173233 0.607517 0) (0.168413 0.597139 0) (0.161558 0.585714 0) (0.152664 0.573543 0) (0.141739 0.560923 0) (0.128808 0.548138 0) (0.113909 0.535431 0) (0.0970806 0.52297 0) (0.0783508 0.510743 0) (0.0580173 0.498254 0) (0.0373415 0.483091 0) (0.0193085 0.44973 0) (0.00858479 0.36486 0) (0.0205415 0.427786 0) (0.035326 0.463243 0) (0.0514203 0.4911 0) (0.0677686 0.51533 0) (0.0837362 0.537033 0) (0.0990122 0.556532 0) (0.113378 0.573855 0) (0.126658 0.588928 0) (0.138707 0.601655 0) (0.149402 0.611959 0) (0.158634 0.619797 0) (0.166303 0.625167 0) (0.172321 0.628114 0) (0.176608 0.628728 0) (0.179095 0.627142 0) (0.179713 0.623543 0) (0.178406 0.61813 0) (0.175131 0.611129 0) (0.169869 0.602812 0) (0.162601 0.593454 0) (0.153328 0.583339 0) (0.142064 0.572752 0) (0.128839 0.561958 0) (0.113699 0.551189 0) (0.0966898 0.540596 0) (0.0778524 0.530157 0) (0.0574976 0.519361 0) (0.0368695 0.505786 0) (0.0189633 0.473559 0) (0.0100422 0.350708 0) (0.0234401 0.411289 0) (0.0395951 0.44577 0) (0.0567573 0.473365 0) (0.0738106 0.497842 0) (0.0901703 0.520161 0) (0.105594 0.540542 0) (0.119913 0.558949 0) (0.132996 0.575268 0) (0.144733 0.589375 0) (0.15503 0.601175 0) (0.163805 0.61061 0) (0.170981 0.617669 0) (0.176483 0.622385 0) (0.180247 0.624837 0) (0.182214 0.625139 0) (0.18232 0.623509 0) (0.180542 0.620104 0) (0.176808 0.615122 0) (0.171123 0.608842 0) (0.163467 0.601522 0) (0.153844 0.59343 0) (0.142274 0.584836 0) (0.12879 0.575989 0) (0.113443 0.567104 0) (0.0962847 0.55832 0) (0.0773663 0.549595 0) (0.057009 0.540408 0) (0.0364375 0.528308 0) (0.01865 0.497052 0) (0.0120552 0.334096 0) (0.0271609 0.392767 0) (0.0447783 0.426778 0) (0.0629966 0.454544 0) (0.0806765 0.479623 0) (0.097314 0.502844 0) (0.112753 0.524338 0) (0.126891 0.544014 0) (0.139644 0.561722 0) (0.150947 0.577319 0) (0.160741 0.590695 0) (0.16897 0.601783 0) (0.175579 0.610566 0) (0.180512 0.617071 0) (0.183716 0.621373 0) (0.185136 0.623586 0) (0.184716 0.623869 0) (0.182476 0.62245 0) (0.178294 0.619472 0) (0.172206 0.615201 0) (0.164189 0.609885 0) (0.154248 0.60378 0) (0.142405 0.597136 0) (0.128696 0.590191 0) (0.113173 0.583142 0) (0.0958934 0.576109 0) (0.0769147 0.569036 0) (0.0565664 0.56138 0) (0.0360537 0.550662 0) (0.0183728 0.520229 0) (0.0146974 0.314315 0) (0.0317627 0.371993 0) (0.0509115 0.406218 0) (0.0701553 0.43467 0) (0.0883689 0.460756 0) (0.105157 0.485195 0) (0.12047 0.508047 0) (0.134281 0.529177 0) (0.146568 0.548412 0) (0.157314 0.565595 0) (0.166499 0.580611 0) (0.174095 0.593391 0) (0.18007 0.603916 0) (0.184385 0.612213 0) (0.186997 0.618354 0) (0.187862 0.622452 0) (0.186932 0.624658 0) (0.184194 0.625164 0) (0.179599 0.624158 0) (0.173134 0.621859 0) (0.164788 0.618509 0) (0.154565 0.614349 0) (0.142486 0.609616 0) (0.128586 0.60453 0) (0.112918 0.59927 0) (0.09554 0.59394 0) (0.0765165 0.588462 0) (0.0561818 0.582273 0) (0.0357221 0.572858 0) (0.0181275 0.543144 0) (0.0179388 0.29085 0) (0.0371593 0.348847 0) (0.0578979 0.384093 0) (0.0781316 0.413816 0) (0.0967835 0.441356 0) (0.113592 0.467352 0) (0.128633 0.491815 0) (0.141972 0.514582 0) (0.153659 0.53547 0) (0.163732 0.55432 0) (0.172211 0.571021 0) (0.179099 0.585511 0) (0.184385 0.597776 0) (0.188044 0.607849 0) (0.190044 0.615802 0) (0.190347 0.621748 0) (0.188913 0.625834 0) (0.185716 0.628239 0) (0.180724 0.629151 0) (0.173915 0.628781 0) (0.165278 0.627353 0) (0.154813 0.625098 0) (0.142537 0.622235 0) (0.128482 0.618968 0) (0.1127 0.615458 0) (0.0952472 0.611788 0) (0.0761908 0.60786 0) (0.0558695 0.603086 0) (0.0354535 0.594909 0) (0.017926 0.565797 0) (0.0215996 0.263706 0) (0.0430973 0.323306 0) (0.0654902 0.36044 0) (0.0866899 0.392083 0) (0.105695 0.421565 0) (0.122399 0.449479 0) (0.137031 0.47581 0) (0.149763 0.500389 0) (0.160731 0.523037 0) (0.170031 0.543612 0) (0.177725 0.562021 0) (0.183849 0.578217 0) (0.188408 0.5922 0) (0.191394 0.604012 0) (0.19278 0.613733 0) (0.192533 0.621477 0) (0.190616 0.62739 0) (0.186998 0.631643 0) (0.181648 0.634421 0) (0.174541 0.635927 0) (0.165661 0.636376 0) (0.155002 0.635981 0) (0.142576 0.634949 0) (0.128408 0.633467 0) (0.112545 0.631675 0) (0.09504 0.629635 0) (0.0759592 0.627224 0) (0.055644 0.623829 0) (0.0352495 0.616846 0) (0.0177494 0.58831 0) (0.0253798 0.232973 0) (0.0492359 0.295382 0) (0.0733316 0.335333 0) (0.0954804 0.3696 0) (0.114763 0.401553 0) (0.131254 0.431763 0) (0.145353 0.460218 0) (0.157366 0.486766 0) (0.167519 0.511259 0) (0.175973 0.533592 0) (0.182834 0.553704 0) (0.188165 0.571576 0) (0.19199 0.58723 0) (0.194308 0.600724 0) (0.195102 0.61215 0) (0.194338 0.621629 0) (0.191979 0.629302 0) (0.187991 0.63534 0) (0.182338 0.639924 0) (0.174992 0.643251 0) (0.165929 0.645525 0) (0.155138 0.646948 0) (0.142618 0.647712 0) (0.128388 0.647985 0) (0.112484 0.647889 0) (0.0949514 0.647461 0) (0.075854 0.646551 0) (0.0555349 0.644511 0) (0.0351382 0.638676 0) (0.0176505 0.610576 0) (0.0288604 0.198747 0) (0.055146 0.265187 0) (0.0809736 0.308911 0) (0.104063 0.346543 0) (0.12356 0.381524 0) (0.139742 0.414417 0) (0.15321 0.445237 0) (0.164419 0.473886 0) (0.173696 0.500279 0) (0.181269 0.52437 0) (0.187287 0.546149 0) (0.191833 0.565641 0) (0.194948 0.582896 0) (0.196639 0.597996 0) (0.196889 0.611047 0) (0.195665 0.62218 0) (0.192927 0.631538 0) (0.188636 0.639287 0) (0.182754 0.64561 0) (0.175243 0.650695 0) (0.166075 0.654741 0) (0.155225 0.657938 0) (0.142684 0.660465 0) (0.128454 0.662474 0) (0.112557 0.664065 0) (0.0950277 0.665248 0) (0.0759199 0.665843 0) (0.0555746 0.665163 0) (0.035119 0.660488 0) (0.0175611 0.632991 0) (0.0315706 0.161718 0) (0.0603023 0.233037 0) (0.0879077 0.281386 0) (0.111948 0.323131 0) (0.131608 0.361714 0) (0.147401 0.397671 0) (0.160161 0.431074 0) (0.170515 0.461921 0) (0.178898 0.490229 0) (0.185603 0.516041 0) (0.190811 0.539422 0) (0.194627 0.56045 0) (0.197096 0.579216 0) (0.198229 0.595826 0) (0.198013 0.610404 0) (0.196414 0.623102 0) (0.193381 0.634054 0) (0.188876 0.643432 0) (0.182854 0.651417 0) (0.175272 0.658194 0) (0.166091 0.663954 0) (0.155275 0.668881 0) (0.142799 0.673143 0) (0.128648 0.676875 0) (0.112824 0.680159 0) (0.0953403 0.682974 0) (0.0762345 0.685104 0) (0.0558426 0.685808 0) (0.0352898 0.682271 0) (0.017627 0.654999 0) (0.0331234 0.123161 0) (0.0642049 0.199347 0) (0.0936874 0.252978 0) (0.118706 0.299608 0) (0.138465 0.342387 0) (0.153774 0.381778 0) (0.16576 0.417944 0) (0.175241 0.451038 0) (0.18276 0.481228 0) (0.18866 0.508685 0) (0.193148 0.533568 0) (0.196333 0.556024 0) (0.198263 0.576191 0) (0.198946 0.594203 0) (0.19836 0.61019 0) (0.196498 0.624352 0) (0.193277 0.636803 0) (0.188663 0.647719 0) (0.182608 0.657281 0) (0.175061 0.665674 0) (0.165976 0.673086 0) (0.155303 0.679697 0) (0.143001 0.685666 0) (0.129031 0.691118 0) (0.113368 0.696116 0) (0.09599 0.700612 0) (0.0769036 0.704347 0) (0.0564221 0.706527 0) (0.0356433 0.704273 0) (0.0176488 0.67792 0) (0.0333323 0.0845651 0) (0.0666805 0.164233 0) (0.0981728 0.223682 0) (0.124134 0.276133 0) (0.14381 0.323822 0) (0.158461 0.367026 0) (0.169592 0.406079 0) (0.178217 0.441398 0) (0.184956 0.473378 0) (0.190177 0.502358 0) (0.194088 0.528613 0) (0.196794 0.552368 0) (0.198335 0.57381 0) (0.198712 0.593104 0) (0.197908 0.610386 0) (0.195876 0.625901 0) (0.192582 0.639743 0) (0.187974 0.652096 0) (0.182 0.663141 0) (0.174607 0.673066 0) (0.165739 0.682058 0) (0.155338 0.690298 0) (0.14334 0.697943 0) (0.129683 0.705114 0) (0.114302 0.711862 0) (0.0971284 0.718116 0) (0.0781144 0.723572 0) (0.0575328 0.727349 0) (0.0364781 0.726381 0) (0.0180957 0.699849 0) (0.0322911 0.0474208 0) (0.0681839 0.127701 0) (0.101558 0.193689 0) (0.128103 0.2531 0) (0.147298 0.306417 0) (0.161051 0.353732 0) (0.171274 0.395707 0) (0.179127 0.433145 0) (0.18525 0.466757 0) (0.189989 0.497095 0) (0.193526 0.524567 0) (0.195944 0.549477 0) (0.197272 0.57206 0) (0.197503 0.592511 0) (0.196619 0.610994 0) (0.194554 0.627732 0) (0.19131 0.642848 0) (0.186824 0.656525 0) (0.181047 0.668948 0) (0.173927 0.680305 0) (0.165404 0.69079 0) (0.155412 0.700587 0) (0.143872 0.709864 0) (0.130692 0.718747 0) (0.115761 0.727289 0) (0.0989435 0.735414 0) (0.0800931 0.742782 0) (0.059377 0.748448 0) (0.03778 0.749304 0) (0.0183901 0.724878 0) (0.0315419 0.0116378 0) (0.071183 0.0893841 0) (0.10479 0.163759 0) (0.130629 0.231561 0) (0.148562 0.291042 0) (0.161117 0.342424 0) (0.170479 0.387083 0) (0.177784 0.42639 0) (0.183571 0.461409 0) (0.188107 0.49291 0) (0.191523 0.521432 0) (0.193874 0.547351 0) (0.195176 0.570943 0) (0.195419 0.592426 0) (0.194579 0.61199 0) (0.192628 0.629827 0) (0.189544 0.646094 0) (0.185283 0.660972 0) (0.179805 0.674648 0) (0.173062 0.687319 0) (0.165002 0.699182 0) (0.155556 0.710436 0) (0.144639 0.721266 0) (0.132137 0.731824 0) (0.117894 0.74219 0) (0.10169 0.752309 0) (0.0832391 0.76184 0) (0.0625308 0.769735 0) (0.0404057 0.772478 0) (0.0199079 0.747187 0) (0.0362609 -0.0260459 0) (0.0786768 0.0503684 0) (0.107403 0.136407 0) (0.130098 0.213104 0) (0.146298 0.278544 0) (0.157953 0.333541 0) (0.166965 0.380407 0) (0.174234 0.4212 0) (0.180126 0.457357 0) (0.184818 0.489831 0) (0.188395 0.519252 0) (0.190899 0.546049 0) (0.192348 0.570528 0) (0.192741 0.592923 0) (0.192067 0.613435 0) (0.190314 0.632251 0) (0.187467 0.64954 0) (0.183498 0.665484 0) (0.178382 0.680276 0) (0.172085 0.694113 0) (0.164569 0.707206 0) (0.155779 0.719771 0) (0.145639 0.732019 0) (0.134034 0.744146 0) (0.120787 0.756297 0) (0.105595 0.768509 0) (0.0879689 0.780562 0) (0.0674853 0.791525 0) (0.044393 0.798107 0) (0.0212002 0.778489 0) (0.034086 -0.0728017 0) (0.0785031 0.0144358 0) (0.0997033 0.111442 0) (0.120319 0.196324 0) (0.137613 0.267658 0) (0.150683 0.32624 0) (0.160868 0.375283 0) (0.169049 0.417517 0) (0.175634 0.454753 0) (0.18085 0.488141 0) (0.184828 0.518402 0) (0.187647 0.546013 0) (0.189353 0.571308 0) (0.189971 0.59454 0) (0.189514 0.615917 0) (0.187987 0.635629 0) (0.18539 0.653852 0) (0.181716 0.670769 0) (0.176955 0.686572 0) (0.171095 0.701463 0) (0.164121 0.715655 0) (0.156007 0.729378 0) (0.146711 0.742869 0) (0.136164 0.756363 0) (0.124239 0.770082 0) (0.110679 0.784191 0) (0.094943 0.798666 0) (0.0762575 0.812738 0) (0.0537876 0.822265 0) (0.0258046 0.802179 0) (-0.0151551 -0.104714 0) (0.0408592 -0.028252 0) (0.0702648 0.081216 0) (0.0998482 0.172956 0) (0.124072 0.253097 0) (0.141624 0.318016 0) (0.154489 0.370923 0) (0.164276 0.415491 0) (0.171854 0.454242 0) (0.177708 0.488738 0) (0.182117 0.519916 0) (0.185241 0.548362 0) (0.187174 0.574474 0) (0.187977 0.598538 0) (0.187684 0.62078 0) (0.186315 0.6414 0) (0.183884 0.660579 0) (0.180399 0.678503 0) (0.175862 0.695363 0) (0.170278 0.71136 0) (0.16365 0.726711 0) (0.155979 0.741652 0) (0.147259 0.756441 0) (0.13748 0.771353 0) (0.126602 0.786699 0) (0.114511 0.802852 0) (0.100874 0.820375 0) (0.0850315 0.840369 0) (0.0658594 0.864315 0) (0.0363925 0.872606 0) ) ; boundaryField { inlet { type interstitialInletVelocity; alpha alpha.air; inletVelocity uniform (0 0.25 0); value nonuniform List<vector> 30 ( (0 0.438068 0) (0 0.438069 0) (0 0.43807 0) (0 0.43807 0) (0 0.43807 0) (0 0.438069 0) (0 0.415902 0) (0 0.416142 0) (0 0.416156 0) (0 0.416178 0) (0 0.416192 0) (0 0.416195 0) (0 0.416195 0) (0 0.416195 0) (0 0.416192 0) (0 0.416178 0) (0 0.416157 0) (0 0.416144 0) (0 0.416126 0) (0 0.416121 0) (0 0.416113 0) (0 0.4161 0) (0 0.414149 0) (0 0.406125 0) (0 0.409811 0) (0 0.416767 0) (0 0.416765 0) (0 0.416762 0) (0 0.416759 0) (0 0.416755 0) ) ; } outlet { type pressureInletOutletVelocity; phi phi.air; value nonuniform List<vector> 30 ( (0 -0.104714 0) (0 -0.028252 0) (0.0702648 0.081216 0) (0.0998482 0.172956 0) (0.124072 0.253097 0) (0.141624 0.318016 0) (0.154489 0.370923 0) (0.164276 0.415491 0) (0.171854 0.454242 0) (0.177708 0.488738 0) (0.182117 0.519916 0) (0.185241 0.548362 0) (0.187174 0.574474 0) (0.187977 0.598538 0) (0.187684 0.62078 0) (0.186315 0.6414 0) (0.183884 0.660579 0) (0.180399 0.678503 0) (0.175862 0.695363 0) (0.170278 0.71136 0) (0.16365 0.726711 0) (0.155979 0.741652 0) (0.147259 0.756441 0) (0.13748 0.771353 0) (0.126602 0.786699 0) (0.114511 0.802852 0) (0.100874 0.820375 0) (0.0850315 0.840369 0) (0.0658594 0.864315 0) (0.0363925 0.872606 0) ) ; } walls { type noSlip; } frontAndBackPlanes { type empty; } } // ************************************************************************* //
[ "peterbryz@yahoo.com" ]
peterbryz@yahoo.com
cf3b8f7ef069c76ec86d2fb372ec3db9742b2f40
27e94d122c2ad23d0218575120e901bf27eb0a39
/src/test.cpp
b942aed7f693f30c4429350c17f111509fc1ce66
[]
no_license
bthwaites3/BitReader
66951aa252a85f5f973dbc2a79a2dffb88a068bf
2d750c95327d2dc4e3fd1e3fb2685452d03e0c10
refs/heads/master
2021-05-27T21:18:28.548944
2014-06-20T05:08:44
2014-06-20T05:08:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
972
cpp
#include "bitreader.h" #include "bitreader.tcc" #define ELEMENTS 10 using namespace std; int main() { char filename[] = "../inputs/testfile.bin"; bitreader<char> reader; reader.open(filename, "r"); char* returnBuffer = (char*)malloc(8 * sizeof(char)); for (int ii = 0; ii < 8; ii++) { returnBuffer[ii] = 0; } size_t result; reader.seek(320, SEEK_SET); result = reader.read(returnBuffer, 8*ELEMENTS); for (int ii = 0; ii < ELEMENTS; ii++) { cout << "Result " << hex << ii << ": " << returnBuffer[ii] << endl; } cout << "######" << endl; reader.seek(-80, SEEK_CUR); result = reader.read(returnBuffer, 8*ELEMENTS); for (int ii = 0; ii < ELEMENTS; ii++) { cout << "Result " << hex << ii << ": " << returnBuffer[ii] << endl; } cout << "######" << endl; reader.seek(496, SEEK_CUR); result = reader.read(returnBuffer, 48); for (int ii = 0; ii < 6; ii++) { cout << "Result " << hex << ii << ": " << returnBuffer[ii] << endl; } return 0; }
[ "bthwaites@gatech.edu" ]
bthwaites@gatech.edu
c52694603ae1ab8c68ca997b8629fae82594c0bc
0de34458753db121340aea25350b4447cd5771a3
/code/src/common/src/Triangle.cpp
3a882c63b35e7cfcd09cb6e1473afe508eff0d3d
[ "MIT" ]
permissive
AntipovaA/rk9students
4a7998e9bd8cc257cfc31be0ca76e8fba4d6a132
f80fd469c492331c814c45a817a637ec5e8510fd
refs/heads/master
2021-05-03T11:45:36.603134
2017-01-22T22:41:33
2017-01-22T22:41:33
69,470,456
0
0
null
2016-09-28T14:15:20
2016-09-28T14:15:18
null
WINDOWS-1251
C++
false
false
1,092
cpp
#include <limits> #include "common/Triangle.h" using namespace std; namespace rk9 { Vector3 Triangle::GetNormal() { Plane p = GetPlane(); return Vector3{ p.A, p.B, p.C }; }; Plane Triangle::GetPlane() { //find coordinates of vectors of triangle's vertices Vector3 v01{ Verts[0], Verts[1] }; Vector3 v02{ Verts[0], Verts[2] }; Vector3 product = Vector3::CrossProduct(v01, v02); double A, B, C, D; A = product.A; B = product.B; C = product.C; D = -A * Verts[1].X - B * Verts[1].Y - C * Verts[1].Z; return Plane{ A, B, C, D }; } // Вспомогательная функция для расчета длины гипотенузы (расстояния между точками) double hypot(Point a, Point b) { return sqrt(pow(a.X - b.X, 2) + pow(a.Y - b.Y, 2) + pow(a.Z - b.Z, 2)); } bool Triangle::IsPointInsideTriangle(Point p) { Triangle t1{ A, B, p }, t2{ A, C, p }, t3{ B, C, p }; double diff = t1.GetArea() + t2.GetArea() + t3.GetArea() - this->GetArea(); return diff < std::numeric_limits<double>::epsilon(); }; }
[ "s.khrykov@gmail.com" ]
s.khrykov@gmail.com
ab9d79240657cd7eb1dbcf93976adc360a03c76e
e19ab2d7e6805909a9a32eb1b8315a59ec399813
/Cerberus.cpp
736397b3c6432787917072c02b2602778dd289f2
[]
no_license
AprilCastaneda/Welcome_to_Hell
249a59d2a3a9aa50cb957aab8e8df48b7cae0000
a7e394c29697e0d289d946982a5256789adb7596
refs/heads/master
2020-08-26T22:56:54.406219
2019-10-24T00:08:41
2019-10-24T00:08:41
217,174,314
0
0
null
null
null
null
UTF-8
C++
false
false
3,679
cpp
/****************************************************************************** ** Program name: Cerberus.cpp ** Author: April Castaneda ** Date: 06.12.2019 ** Description: Cerberus.cpp is the Cerberus class implementation file. Cerberus ** class is a derived class of Character class. ******************************************************************************/ #include "Cerberus.hpp" #include <iostream> using std::cout; using std::endl; /****************************************************************************** ** Description: Constructor that sends default Cerberus values to Character. ** Attack: 1d10, Defense: 2d6, Armor: 2, Strength: 12 ******************************************************************************/ Cerberus::Cerberus(string name) : Character(1, 10, 2, 6, 3, 15, name) { } /****************************************************************************** ** Description: Function that determines how Cerberus attack. Rolls die and ** calculates damage done based on Character die rolls. Returns ** the value for damage done. ******************************************************************************/ int Cerberus::attack(int scene) { int dieValue = 0; // Stores die value // Roll attack die dieValue = rollDie(aDie, aSides); // Display attack die value cout << "One of Cerberus's heads tries to take a bite: " << dieValue << endl; return dieValue; } /****************************************************************************** ** Description: Function that determines how Cerberus defends. Cerberus take ** parameter of attack power. Determines if it is an instant kill ** attack(Glare) or a regular attack. If glare, strength is ** depleted and Character dies. Else, calculates damage. This is ** done by rolling a die with defense attributes. Then, damage is ** determined using this formula: damage = attackPow - defenseDie ** - armor. Then, this damage is subtracted from Character's ** strength. Also, for every four points of damage, Cerberus lose ** one die. So the die mod is calculated as follows: dieMod = ** damage / 4; Then, if dieMod is greater than 0, dieMod is ** subtracted from dDie. ******************************************************************************/ bool Cerberus::defense(int attackPow) { int damage = 0; // Variable to calculate total damage int defense = 0; // Variable to store defense die roll int dieMod = 0; // Determines if dDie is modified int dead = 0; // Variable to see if Character is dead // Is attack an instant kill? (Glare from Medusa) if(attackPow == -1) { damage = strength; } else // Regular attack { defense = rollDie(dDie, dSides); // Roll die with defense attributes // Display defense die cout << "Cerberus defends: " << defense << endl; // Calculate damage damage = attackPow - defense; // Calculate armor into damage if damage greater than 0 if(damage > 0) { damage -= armor; } } // If damage is >= 0, subtract damage from strength if(damage >= 0) { strength -= damage; } // Modify defense die based on strength if((strength > 4) && (strength <= 8)) { dieMod = 1; } else if((strength > 0) && (strength <= 4)) { dieMod = 2; } // Subtract dieMod from dDie if(dieMod >= 1) { dDie -= dieMod; } // Return if Character is dead or not if(strength <= 0) { dead = 1; } else { dead = 0; } return dead; } /****************************************************************************** ** Description: Function that displays Character type. ******************************************************************************/ void Cerberus::displayType() { cout << "Cerberus"; }
[ "[castanap@oregonstate.edu]" ]
[castanap@oregonstate.edu]
81a7e7a4428a37000a8c02ecfee85bb70b1a2744
4707400f71b9004b47380581a76b279329a160e3
/Sprawdzarka UAM/Zrobione zadania/Planety/Palnety.cpp
a7e10d30de72e2625331781f823a871c085563fe
[]
no_license
swacisko/CODES
e5c73594374608ee8b3688f4e51e5ca4867d79f9
5e492c9711c93be493c7952bb08e30f9ad7a57b6
refs/heads/master
2021-01-19T00:37:03.262832
2017-01-09T21:00:04
2017-01-09T21:00:04
73,085,634
0
0
null
null
null
null
UTF-8
C++
false
false
2,061
cpp
#include<iostream> #include<map> using namespace std; int main() { ios_base::sync_with_stdio(0); int N; int tab[3000][2]; cin>>N; map< int, map <int,int> > mymap; map< int, map <int,int> >:: iterator it; map<int,int>::iterator iter; for(int i=0; i<N; i++) { cin>>tab[i][0] >> tab[i][1]; } if( N <= 1 ) { cout << 0 << endl; } else{ int x,y; for(int i=0; i<N; i++) { for(int k=i+1; k<N; k++) { x = tab[i][0] - tab[k][0]; y = tab[i][1] - tab[k][1] ; if( ( it = mymap.find( x ) ) != mymap.end() && ( iter = it->second.find( y ) ) != it->second.end() ){ iter->second++; } else{ map<int,int> t = map<int,int>(); t.insert( pair<int,int>(y,1) ); mymap.insert( pair<int, map<int,int> >( x, t ) ); } /* x = -x; y = -y; if( ( it = mymap.find( x ) ) != mymap.end() && ( iter = it->second.find( y ) ) != it->second.end() ){ iter->second++; } else{ map<int,int> t = map<int,int>(); t.insert( pair<int,int>(y,1) ); mymap.insert( pair<int, map<int,int> >( x, t ) ); } */ } } int max = 0; int d; /* cout << "To wektory jakie mozesz stworzyc:" << endl; for( it = mymap.begin(); it!=mymap.end(); it++ ){ for( iter = it->second.begin(); iter != it->second.end(); iter++ ){ cout << "x = " << it->first << ", y = " << iter->first << " ilosc wystapien = " << iter->second << endl; } }*/ for( it = mymap.begin(); it!=mymap.end(); it++ ){ for( iter = it->second.begin(); iter != it->second.end(); iter++ ){ d = iter->second; if( d > max ) max = d; } } cout << max << endl; } }
[ "swatsylwester@gmail.com" ]
swatsylwester@gmail.com
8c1af6425590129989036bfde9926da5223cc7db
7a2908d7204750c0ff508e2d462f5d37c87df1f2
/frameworks/cocos2d-x/cocos/ui/UITextAtlas.cpp
6e5433fed7618e7f3890c6d74df6b7c751628402
[ "MIT" ]
permissive
atom-chen/M2_CLIENT
7fe097c565c93dfb6e0c27bfd8229fa245c2c494
bfedfa8667916330c092f1f3ceca691d41df9b56
refs/heads/master
2020-06-21T19:05:07.385296
2018-07-25T11:29:51
2018-07-25T11:29:51
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,996
cpp
/**************************************************************************** Copyright (c) 2013-2017 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS 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 "ui/UITextAtlas.h" #include "2d/CCLabel.h" #include "editor-support/cocostudio/CocosStudioExtension.h" NS_CC_BEGIN namespace ui { static const int LABELATLAS_RENDERER_Z = (-1); IMPLEMENT_CLASS_GUI_INFO(TextAtlas) TextAtlas::TextAtlas(): _labelAtlasRenderer(nullptr), _stringValue(""), _charMapFileName(""), _itemWidth(0), _itemHeight(0), _startCharMap(""), _labelAtlasRendererAdaptDirty(true) { } TextAtlas::~TextAtlas() { } TextAtlas* TextAtlas::create() { TextAtlas* widget = new (std::nothrow) TextAtlas(); if (widget && widget->init()) { widget->autorelease(); return widget; } CC_SAFE_DELETE(widget); return nullptr; } void TextAtlas::initRenderer() { _labelAtlasRenderer = Label::create(); _labelAtlasRenderer->setAnchorPoint(Point::ANCHOR_MIDDLE); addProtectedChild(_labelAtlasRenderer, LABELATLAS_RENDERER_Z, -1); } TextAtlas* TextAtlas::create(const std::string &stringValue, const std::string &charMapFile, int itemWidth, int itemHeight, const std::string &startCharMap) { TextAtlas* widget = new (std::nothrow) TextAtlas(); if (widget && widget->init()) { widget->autorelease(); widget->setProperty(stringValue, charMapFile, itemWidth, itemHeight, startCharMap); return widget; } CC_SAFE_DELETE(widget); return nullptr; } void TextAtlas::setProperty(const std::string& stringValue, const std::string& charMapFile, int itemWidth, int itemHeight, const std::string& startCharMap) { _stringValue = stringValue; _charMapFileName = charMapFile; _itemWidth = itemWidth; _itemHeight = itemHeight; _startCharMap = startCharMap; _labelAtlasRenderer->setCharMap(_charMapFileName, _itemWidth, _itemHeight, (int)(_startCharMap[0])); _labelAtlasRenderer->setString(stringValue); updateContentSizeWithTextureSize(_labelAtlasRenderer->getContentSize()); _labelAtlasRendererAdaptDirty = true; // CCLOG("cs w %f, h %f", _contentSize.width, _contentSize.height); } void TextAtlas::setString(const std::string& value) { if (value == _labelAtlasRenderer->getString()) { return; } _stringValue = value; _labelAtlasRenderer->setString(value); updateContentSizeWithTextureSize(_labelAtlasRenderer->getContentSize()); _labelAtlasRendererAdaptDirty = true; // CCLOG("cssss w %f, h %f", _contentSize.width, _contentSize.height); } const std::string& TextAtlas::getString() const { return _labelAtlasRenderer->getString(); } ssize_t TextAtlas::getStringLength()const { return _labelAtlasRenderer->getStringLength(); } void TextAtlas::onSizeChanged() { Widget::onSizeChanged(); _labelAtlasRendererAdaptDirty = true; } void TextAtlas::adaptRenderers() { if (_labelAtlasRendererAdaptDirty) { labelAtlasScaleChangedWithSize(); _labelAtlasRendererAdaptDirty = false; } } Size TextAtlas::getVirtualRendererSize() const { return _labelAtlasRenderer->getContentSize(); } Node* TextAtlas::getVirtualRenderer() { return _labelAtlasRenderer; } void TextAtlas::labelAtlasScaleChangedWithSize() { if (_ignoreSize) { _labelAtlasRenderer->setScale(1.0f); } else { Size textureSize = _labelAtlasRenderer->getContentSize(); if (textureSize.width <= 0.0f || textureSize.height <= 0.0f) { _labelAtlasRenderer->setScale(1.0f); return; } float scaleX = _contentSize.width / textureSize.width; float scaleY = _contentSize.height / textureSize.height; _labelAtlasRenderer->setScaleX(scaleX); _labelAtlasRenderer->setScaleY(scaleY); } _labelAtlasRenderer->setPosition(_contentSize.width / 2.0f, _contentSize.height / 2.0f); } std::string TextAtlas::getDescription() const { return "TextAtlas"; } Widget* TextAtlas::createCloneInstance() { return TextAtlas::create(); } void TextAtlas::copySpecialProperties(Widget *widget) { TextAtlas* labelAtlas = dynamic_cast<TextAtlas*>(widget); if (labelAtlas) { setProperty(labelAtlas->_stringValue, labelAtlas->_charMapFileName, labelAtlas->_itemWidth, labelAtlas->_itemHeight, labelAtlas->_startCharMap); } } ResourceData TextAtlas::getRenderFile() { ResourceData rData; rData.type = 0; rData.file = _charMapFileName; return rData; } } NS_CC_END
[ "2716332985@qq.com" ]
2716332985@qq.com
88e2e76fe81bdc92cd14ac641ad87712ee32d6ce
f63d474920da211e0a8c03edda958fc6b62b4ab3
/BitmapProcessing/src/Bitmap.cpp
eb7998a706ed56cb561f4fe9a2a0be94cc6e5956
[ "MIT" ]
permissive
anhhuu/BitmapProcessing
092faade5b3bfbf1bdd71d756d6da6dcdc6e36d4
646c5b78b2761d608ae5a19ad553c51df6171682
refs/heads/master
2021-06-24T18:59:08.555927
2018-08-28T16:07:26
2018-08-28T16:07:26
95,630,782
0
0
null
null
null
null
UTF-8
C++
false
false
2,318
cpp
// // Bitmap library Source Code // Copyright (c) 2016 panhhuu. // // 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 "Bitmap.h" Bitmap::Bitmap() { } bool Bitmap::readImageBMP(const char * filePath, unsigned char *& data) { FILE *fileBMP; fileBMP = fopen(filePath, "rb"); if (fileBMP == nullptr) { return false; } fread(&m_Header, sizeof(BitMapHeader), 1, fileBMP); fread(&m_Information, sizeof(BitMapInformation), 1, fileBMP); int rowSize = (m_Information.m_BitDepth * m_Information.m_Width + 31) / 32 * 4; if (data != nullptr) { delete[] data; data = nullptr; } data = new unsigned char[rowSize * m_Information.m_Width]; fseek(fileBMP, m_Header.m_DataOffset, SEEK_SET); fread(data, rowSize * m_Information.m_Width, 1, fileBMP); fclose(fileBMP); return true; } void Bitmap::saveImageBMP(const char * filePath, unsigned char *& data) { FILE * imageFile; imageFile = fopen(filePath, "wb"); fwrite(&m_Header, sizeof(BitMapHeader), 1, imageFile); fwrite(&m_Information, sizeof(BitMapInformation), 1, imageFile); int size = (m_Information.m_BitDepth * m_Information.m_Width + 31) / 32 * 4; fseek(imageFile, m_Header.m_DataOffset, SEEK_SET); fwrite(data, size * m_Information.m_Width, 1, imageFile); fclose(imageFile); } Bitmap::~Bitmap() { }
[ "panhhuu@gmail.com" ]
panhhuu@gmail.com
67f7cb00a027bb496cdf66c6ccd88bb45233a871
3c2b37fe805a9bad26b221b543bb2b4031da15bf
/Lab8++/Source.cpp
56773ff88d563b5cdfbcb3ba3905f7d0ed39a2ef
[]
no_license
khmelinin/OOPLabs
8e0e682484bb1d83758051043d4746a4f4ef5910
6263656b70efafec975844feae022528fd35bd83
refs/heads/master
2021-01-02T05:44:51.340091
2020-05-27T19:44:54
2020-05-27T19:44:54
239,515,232
0
0
null
null
null
null
UTF-8
C++
false
false
667
cpp
#include <iostream> #include <string> #include "MyList.h" using namespace std; bool Function(const char str[]); bool (*F)(const char str[]); int main() { F = Function; cout << F("d432432432432423423423ads123324dsasdsa") << endl; //MyList mylist ("adsad"); //mylist.Clear(); } bool Function(const char str[]) { int n = 0, s = 0; for (int i = 0; i < strlen(str); i++) { if (str[i] >= 67 && str[i] <= 90 || str[i] >= 97 && str[i] <= 122) { s++; } else if (str[i] >= 48 && str[i] <= 57) { n++; } } if (s > n) return 1; else return 0; }
[ "khmelinin2001@gmail.com" ]
khmelinin2001@gmail.com
68ee8e51843a5f07a8fac36a23ed398fd1789426
1cb38256ac644d1673ba56d85b04bc2c65a4f160
/src/scripting/daedalus/DaedalusVMWithExternals.cpp
8bf2cc6f0a1616ea3a4cf636a8a2e0f47c71d443
[ "MIT" ]
permissive
Zmorra/REGoth-bs
4973006af85e52a9650eb7f29847c2b00d889c7a
8f785ce6ffcd969bee93685236e7cac0e23fafcb
refs/heads/master
2020-05-16T18:32:00.672185
2019-04-24T08:38:15
2019-04-24T08:38:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,359
cpp
#include "DaedalusVMWithExternals.hpp" #include "DaedalusClassVarResolver.hpp" #include <Scene/BsSceneObject.h> #include <components/Character.hpp> #include <components/VisualCharacter.hpp> #include <world/GameWorld.hpp> namespace REGoth { namespace Scripting { DaedalusVMWithExternals::DaedalusVMWithExternals(const Daedalus::DATFile& datFile) : DaedalusVM(datFile) { } ScriptObjectHandle DaedalusVMWithExternals::instanciateClass(const bs::String& className, const bs::String& instanceName, bs::HSceneObject mappedSceneObject) { // To instanciate a class the following has to happen: // // 1. Create a blank object of that class, // 2. Save `self` and *Current Instance*, // 3. Assign the new object to `self` and *Current Instance*, // 4. Run the instance constructor // 5. Restore `self` and *Current Instance*, // 6. Assign the newly created object to the instances symbol // // *Current Instance* must be set so the class-members are resolved correctly. // `self` must be set so that the constructor can refer to the object being created // in function calls. // // The last created instance is also assigned to the instance symbol in step 6 so that // it can be referred to by name inside the scripts. Though, this only makes sense for // instances where there is usually only one instance active. // // Since the constructor *can* call externals which refer to the scene object, we need // to also map the objects *before* executing the constructor. ScriptObjectHandle obj = instanciateBlankObjectOfClass(className); SymbolInstance& symbol = mScriptSymbols.getSymbol<SymbolInstance>(instanceName); // Constructor might call an external and refer to the scene object, so map before doing // anything. mapping().map(obj, mappedSceneObject); symbol.instance = obj; ScriptObjectHandle oldCurrentInstance = mClassVarResolver->getCurrentInstance(); ScriptObjectHandle oldSelf = getInstance("SELF"); setInstance("SELF", obj); mClassVarResolver->setCurrentInstance(obj); executeScriptFunction(symbol.constructorAddress); mClassVarResolver->setCurrentInstance(oldCurrentInstance); setInstance("SELF", oldSelf); ScriptObject& objData = mScriptObjects.get(obj); // debugLogScriptObject(objData); return obj; } void DaedalusVMWithExternals::setHero(ScriptObjectHandle hero) { setInstance("HERO", hero); } void DaedalusVMWithExternals::setInstance(const bs::String& instance, ScriptObjectHandle scriptObject) { SymbolInstance& symbol = mScriptSymbols.getSymbol<SymbolInstance>(instance); symbol.instance = scriptObject; } ScriptObjectHandle DaedalusVMWithExternals::getInstance(const bs::String& instance) const { const SymbolInstance& symbol = mScriptSymbols.getSymbol<SymbolInstance>(instance); return symbol.instance; } HCharacter DaedalusVMWithExternals::popCharacterInstance() { ScriptObjectHandle scriptObject = popInstanceScriptObject(); bs::HSceneObject characterSO = mapping().getMappedSceneObject(scriptObject); HCharacter character = characterSO->getComponent<Character>(); if (!character) { REGOTH_THROW(InvalidParametersException, "Expected to find a character instance on the stack, but the scene object does " "not have a character-component!"); } return character; } void DaedalusVMWithExternals::initializeWorld(const bs::String& worldName) { // FIXME: Do STARTUP_* only on first load? executeScriptFunction("STARTUP_" + worldName); executeScriptFunction("INIT_" + worldName); } void DaedalusVMWithExternals::registerAllExternals() { using This = DaedalusVMWithExternals; registerExternal("PRINT", (externalCallback)&This::external_Print); registerExternal("HLP_RANDOM", (externalCallback)&This::external_HLP_Random); registerExternal("HLP_GETNPC", (externalCallback)&This::external_HLP_GetNpc); registerExternal("INTTOSTRING", (externalCallback)&This::external_IntToString); registerExternal("NPC_ISPLAYER", (externalCallback)&This::external_NPC_IsPlayer); registerExternal("WLD_INSERTNPC", (externalCallback)&This::external_WLD_InsertNpc); registerExternal("CONCATSTRINGS", (externalCallback)&This::external_ConcatStrings); registerExternal("WLD_INSERTITEM", (externalCallback)&This::external_WLD_InsertItem); registerExternal("NPC_SETTALENTSKILL", (externalCallback)&This::external_NPC_SetTalentSkill); registerExternal("EQUIPITEM", (externalCallback)&This::external_NPC_EquipItem); registerExternal("CREATEINVITEMS", (externalCallback)&This::external_NPC_CreateInventoryItems); registerExternal("CREATEINVITEM", (externalCallback)&This::external_NPC_CreateInventoryItem); registerExternal("MDL_SETVISUAL", (externalCallback)&This::external_MDL_SetVisual); registerExternal("MDL_SETVISUALBODY", (externalCallback)&This::external_MDL_SetVisualBody); } void DaedalusVMWithExternals::external_Print() { print(popStringValue()); } void DaedalusVMWithExternals::external_HLP_Random() { mStack.pushInt(HLP_Random(popIntValue())); } void DaedalusVMWithExternals::external_HLP_GetNpc() { bs::INT32 symbolIndex = popIntValue(); mStack.pushInstance((SymbolIndex)symbolIndex); } void DaedalusVMWithExternals::external_IntToString() { mStack.pushString(IntToString(popIntValue())); } void DaedalusVMWithExternals::external_ConcatStrings() { bs::String b = popStringValue(); bs::String a = popStringValue(); mStack.pushString(ConcatStrings(a, b)); } void DaedalusVMWithExternals::external_WLD_InsertItem() { bs::String spawnpoint = popStringValue(); SymbolIndex instance = popIntValue(); gWorld().insertItem(mScriptSymbols.getSymbolName(instance), spawnpoint); } void DaedalusVMWithExternals::external_WLD_InsertNpc() { bs::String waypoint = popStringValue(); SymbolIndex instance = popIntValue(); gWorld().insertCharacter(mScriptSymbols.getSymbolName(instance), waypoint); } void DaedalusVMWithExternals::external_NPC_IsPlayer() { HCharacter character = popCharacterInstance(); mStack.pushInt(character->isPlayer() ? 1 : 0); } void DaedalusVMWithExternals::external_NPC_SetTalentSkill() { bs::INT32 skill = popIntValue(); bs::INT32 talent = popIntValue(); HCharacter character = popCharacterInstance(); bs::gDebug().logWarning("[External] Using external stub: NPC_SetTalentSkill"); } void DaedalusVMWithExternals::external_NPC_EquipItem() { bs::String instance = popStringValue(); HCharacter character = popCharacterInstance(); character->equipItem(instance); } void DaedalusVMWithExternals::external_NPC_CreateInventoryItems() { bs::INT32 num = popIntValue(); bs::String instance = popStringValue(); HCharacter character = popCharacterInstance(); character->createInventoryItem(instance, num); } void DaedalusVMWithExternals::external_NPC_CreateInventoryItem() { bs::String instance = popStringValue(); HCharacter character = popCharacterInstance(); character->createInventoryItem(instance, 1); } void DaedalusVMWithExternals::external_MDL_SetVisual() { bs::String visual = popStringValue(); HCharacter character = popCharacterInstance(); HVisualCharacter characterVisual; // if (!character->SO()->hasComponent<VisualCharacter>()) // { // characterVisual = character->SO()->addComponent<VisualCharacter>(); // } // else // { characterVisual = character->SO()->getComponent<VisualCharacter>(); // } bs::StringUtil::toUpperCase(visual); characterVisual->setVisual(visual); } void DaedalusVMWithExternals::external_MDL_SetVisualBody() { bs::INT32 armorInstance = popIntValue(); bs::INT32 teethTexIndex = popIntValue(); bs::INT32 headTexIndex = popIntValue(); bs::String headMesh = popStringValue(); bs::INT32 bodyTexColor = popIntValue(); bs::INT32 bodyTexIndex = popIntValue(); bs::String bodyMesh = popStringValue(); HCharacter character = popCharacterInstance(); HVisualCharacter characterVisual = character->SO()->getComponent<VisualCharacter>(); bs::StringUtil::toUpperCase(bodyMesh); characterVisual->setBodyMesh(bodyMesh); bs::StringUtil::toUpperCase(headMesh); characterVisual->setHeadMesh(headMesh); } void DaedalusVMWithExternals::script_PrintPlus(const bs::String& text) { mStack.pushString(text); executeScriptFunction("PrintPlus"); } } // namespace Scripting } // namespace REGoth
[ "a.taulien@live.de" ]
a.taulien@live.de
8af31258bdb37efc378e75e0beebf2ef010f62b8
877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a
/app/src/main/cpp/dir7941/dir22441/dir26975/dir27120/dir27263/file27314.cpp
9b0f7e67a30d326ff220433229eddaf13b110db1
[]
no_license
tgeng/HugeProject
829c3bdfb7cbaf57727c41263212d4a67e3eb93d
4488d3b765e8827636ce5e878baacdf388710ef2
refs/heads/master
2022-08-21T16:58:54.161627
2020-05-28T01:54:03
2020-05-28T01:54:03
267,468,475
0
0
null
null
null
null
UTF-8
C++
false
false
115
cpp
#ifndef file27314 #error "macro file27314 must be defined" #endif static const char* file27314String = "file27314";
[ "tgeng@google.com" ]
tgeng@google.com
2ae58172b0346e10769fba328a1e523ea9b2bf54
6874887b6390e36bb4f38100cc3231fb6a17a4af
/diners_host/Inc/test_transaction_message.h
9d935fe40e01d375fcaab4730aa301a3e8a4afe2
[]
no_license
pprmno1/sandbox
c24ccd60f80d2a79891528a014412e998100e66c
6b11010aa3c88f3ad8697c44ce9e2f2932ab4b38
refs/heads/master
2021-01-01T18:09:45.287308
2017-07-25T08:51:07
2017-07-25T08:51:07
98,264,250
0
0
null
null
null
null
UTF-8
C++
false
false
2,179
h
/* ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ INGENICO Technical Software Department ------------------------------------------------------------------------------ Copyright (c) 2015 INGENICO S.A. 28-32 boulevard de Grenelle 75015 Paris, France. All rights reserved. This source program is the property of the INGENICO Company mentioned above and may not be copied in any form or by any means, whether in part or in whole, except under license expressly granted by such INGENICO company. All copies of this source program, whether in part or in whole, and whether modified or not, must display this and all other embedded copyright and ownership notices in full. ------------------------------------------------------------------------------ */ #ifndef DINERS__ECHO_TEST_MESSAGE_H_ #define DINERS__ECHO_TEST_MESSAGE_H_ #include <diners/diners_transaction.h> #include <diners/test_transaction.h> #include <vector> #include <cstdint> #include <memory> #include <ctime> #include <stdx/optional> #include <iso8583/apdu.h> #include <types/pan.h> #include <types/amount.h> #include <types/pos_entry_mode.h> #include <types/pos_condition_code.h> #include <emv/track2_equivalent_data.h> namespace diners { class EchoTestRequest { public: EchoTestRequest(); void SetProcessingCode(const std::string processing_code); void SetNii(uint32_t nii); void SetTid(const std::string tid); void SetMid(const std::string mid); iso8583::Apdu GetApdu() const; private: iso8583::Apdu apdu_; }; class EchoTestResponse { public: EchoTestResponse(const uint8_t *data, size_t size); bool IsValid() const; iso8583::Apdu GetApdu() const; std::string GetProcessingCode() const; time_t GetHostDatetime() const; uint32_t GetNii() const; std::string GetTid() const; private: iso8583::Apdu apdu_; }; iso8583::Apdu BuildEchoTestRequest(TestTransaction& tx); bool ReadEchoTestResponse(const std::vector<uint8_t>& data, TestTransaction& tx); } #endif
[ "Aji.Pramono@ingenico.com" ]
Aji.Pramono@ingenico.com
5e3461bbeb47083f3e0e50a709f07a32573d4f7d
09ff7ad666589ce1a81ee088be2eddacde43291d
/Smart_Sensors_for_Retail_World/Node_num_ATMEGA/Node_num_ATMEGA.ino
c7a1886fa14551deab81ef2109a2609ce8fae653
[]
no_license
shashankheda/smart_sensors
d7a815284d5ebd616097103eeee3136e6cbf2a53
1e2334d6f8ebbde7bf7444f23087a331c3682508
refs/heads/master
2016-09-06T11:04:05.305753
2014-03-14T17:49:14
2014-03-14T17:49:14
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,466
ino
/* This program has been written for 'Smart Sensors for Retail World' Project by Shashank Heda, Intern, Shopsense Retail Pvt. Ltd. This program connects the 3 components involved in the sensor module developed during the course of the intern. Components: 1. ATMEGA 328P-PU Microcontroller chip programmed using Arduino 2. nRF24L01+ Transceiver 3. Infrared Nodule (3-pin) Connnections: 1. [GND] nRF pin 1: GND 2. [Vcc 3V3] nRF pin 2: 3.3 V Vcc 3. [CE] nRF pin 3: Pin no. 15 of ATMEGA 328P-PU (Digital Pin 9 of Arduino) 4. [CSN] nRF pin 4: Pin no. 16 of ATMEGA 328P-PU (Digital Pin 10 of Arduino) 5. [SCK] nRF pin 5: Pin no. 19 of ATMEGA 328P-PU (Digital Pin 13 of Arduino) 6. [MOSI] nRF pin 6: Pin no. 17 of ATMEGA 328P-PU (Digital Pin 11 of Arduino) 7. [MISO] nRF pin 7: Pin no. 18 of ATMEGA 328P-PU (Digital Pin 12 of Arduino) 8. [INT] nRF pin 8: Interrupt pin isn't connected to any pin /* This Program is for Node Number 1 for the Smart Sensor Project*/ /* Including all the required files SPI.h is to interface the in-out Pins, RF24.h is for interfacing any kind of RF module with a microcontroller nRF24L01.h is for specific nRF module related commands printf.h is in order that printf() function may be used for printing anything if needed (It is more flexible than Serial.print) */ #include <SPI.h> #include "nRF24L01.h" #include "RF24.h" #include "printf.h" //define your node number here #define nodenum 1 //Configuring pin 9 and 10 (as per Digital Pin no.) to act as CE (Chip enable) and CSN (Chip Select Not) RF24 radio(9,10); // Radio pipe addresses for the 2 nodes to communicate (These pipe addresses must be the same on both TX and RX pins) const uint64_t pipes[2] = { 0xF0F0F0F0E1LL, 0xF0F0F0F0E2LL }; // The setup of the current running sketch (one time setup) void setup(void) { Serial.begin(57600); //Serial Monitor bps pinMode(2, INPUT); //The digital Pin 2 on Arduino (Pin 4 on ATMEGA 328P-PU) is used to take the IR Sensor module output (to process IR Sensor Module value output) pinMode(7, OUTPUT); //The digital Pin 7 on Arduino (Pin 13 on ATMEGA 328P-PU is used to give VCC to IR Sensor Module (controls IR sensor module power) radio.begin(); //Begin nRF module radio.setRetries(15,15); //No. of Retries radio.openWritingPipe(pipes[nodenum]); //Pipe from which transmission would be done to the receiver on the other hand. radio.openReadingPipe(1,pipes[nodenum-1]); //Pipe from which the values may be received from other transmitters radio.startListening(); //Starts listening for any value, i.e., checks if anything is being recieved at the Reading Pipe 0 with address 0xF0F0F0F0E1LL } unsigned long t1 = 0; //unsigned long variable to calculate the start time when a person comes in front of the module int counter=1; //counter variable (a logic variable) is one of the dummy variables involved in time calculation process int trigger_off = 1; //Another dummy variable to take care of the Power Saving Feature of the Modules //CAUTION: The power may be controlled depending on other variables. I used it in a way suitable for my use. It must be changed based on conditions and future products of Shopsense //Part of the Program which runs continuously (loop) void loop() { if(radio.available()) //Initially, it is to be checked if anything is being received at pipe 0 { receive_confirm(); //To confirm by sending back a confirmation message (bits) to the transmitter who sent the information to this receiver } if(digitalRead(2) == 1) //If sensor output from IR Sensor module is high { if(counter == 1) //If counter (dummy logic variable) is 1 t1 = millis()/1000; //Mark the start of the timing, store initation time in t1 counter = 0; //counter = 0 (dummy logic variable) } else //If sensor output from IR Sensor module is low { if(counter == 0) { unsigned long t2 = millis()/1000;//t2 variable to store if((t2 - t1 > 5)) //If there was a transition in output from IR sensor from HIGH to LOW, and if the time spent > seconds data_sending(t2-t1); //call data sending function to send data to the receiver on the RPi end } counter = 1; //counter = 1 (dummy logic variable) } } //Function to send data logged (time in seconds about the person standing in front) to the receiver (attached to Raspberry Pi in my case) and get confirmation about the same void data_sending(unsigned long timing) { unsigned long response; int count = 0; while((response != 1000*timing + nodenum) && count<=10) //Keeps sending data to the receiver (on raspberry end) until it sends a confirmation back or until data is sent 10 times [whichever occurs first] { count++; //Counting to see if no. of times data is sent exceeds 10 radio.stopListening(); //stopping the radio to first load data to be sent to the receiver (on Rpi end) unsigned long data = 1000*timing + nodenum; //Format in which data is sent: timing * 1000 + node number (this node is 1) so that it may be known at receiver end about who sent the data bool ok = radio.write( &data, sizeof(unsigned long) ); //Writing the data to send it to the receiver radio.startListening(); //Start listening for confirmation (which may be sent by RPi end receiver) if(ok) printf("Sent"); //Double-check to ensure if the data is written or not to the TX pin so that it might be sent from there else printf("failed"); //Waits for 200 ms for getting back the confirmation, otherwise declares timeout and the loop starts again unsigned long started_waiting_at = millis(); bool timeout = false; while ( ! radio.available() && ! timeout ) if (millis() - started_waiting_at > 200 ) timeout = true; if (timeout ) {} else radio.read( &response, sizeof(unsigned long) ); //If not timeout, reads the confirmation received from RPi end receiver (that receiver acts as transmitter now) delay(500); } trigger_off = 0; //Sensor module remains activated => trigger_off 0 depicts that state } //Function to confirm receival of data whenever a command is received from the transmitter on RPi end void receive_confirm() { unsigned long got_data; bool done = false; while (!done) //while loop keeps running until some command (data) is received from the Raspberry pi Transmitter { done = radio.read( &got_data, sizeof(unsigned long) ); //radio.read returns true if a data is available and successfully read which breaks the loop delay(20); } if(got_data == 1615230518) //If data received is 1615230518 (Short form for "Power" [nos. are the respective postions of alphabets]) if(trigger_off == 1) //If the sensor module had been previously deactivated power_on(); //Its time to activate (power_on function called) else if(got_data == 19082120) //If data received is 19082120 (Short form for "Shut" [nos. are the respective postions of alphabets]) if(trigger_off == 0) //If the sensor module had been previously activated power_off(); //Its time to deactivate (power_off function called) } //Power_on function to power on the module void power_on() { unsigned long got_data = nodenum; //Send confirmation number 1 whenever power on command is received to signify receival of the command radio.stopListening(); //Stop listening so that data may be loaded for writing out the confirmation to the RPi receiver (was transmitter before) radio.write( &got_data, sizeof(unsigned long) ); //Writing out the confirmation bit 1 digitalWrite(7,HIGH); //Start providing power to the IR Sensor module radio.startListening(); //Now, resume listening so we catch the next packets. trigger_off = 0; //Activate the sensor module (dummy variable) } //Power_off function to power off the module void power_off() { unsigned long got_data = nodenum; //Send confirmation number 1 whenever shutdown command is received to signify receival of the command radio.stopListening(); //Stop listening so that data may be loaded for writing out the confirmation to the RPi receiver (was transmitter before) radio.write( &got_data, sizeof(unsigned long) ); //Writing out the confirmation bit 1 digitalWrite(7,LOW); //Stop providing power to the IR Sensor module to save power delay(360000); //Delay of one hour when there would be no activity, minimum power supply from battery radio.startListening(); //Now, resume listening so we catch the next packets. trigger_off = 1; //Deactivating the sensor module (dummy variable) }
[ "shashankheda@iitgn.ac.in" ]
shashankheda@iitgn.ac.in
98740b186b0a1abca2aad954427f6efa6b64aad6
fcdea24e6466d4ec8d7798555358a9af8acf9b35
/Plugins/mrayParticles/PARotationInterpolater.cpp
6b08e0660cfaaf3dd46d26f783cdf1d87a8c2cbb
[]
no_license
yingzhang536/mrayy-Game-Engine
6634afecefcb79c2117cecf3e4e635d3089c9590
6b6fcbab8674a6169e26f0f20356d0708620b828
refs/heads/master
2021-01-17T07:59:30.135446
2014-11-30T16:10:54
2014-11-30T16:10:54
27,630,181
2
0
null
null
null
null
UTF-8
C++
false
false
1,296
cpp
#include "stdafx.h" #include "PARotationInterpolater.h" #include "ParticleEmitter.h" #include "IParticle.h" namespace mray{ namespace scene{ PARotationInterpolater::PARotationInterpolater(){ } PARotationInterpolater::~PARotationInterpolater(){ m_rotateKeys.clear(); } void PARotationInterpolater::applyOnParticle(IParticle*p,float dt){ float time=1-p->lifeSpawn/p->mainLifeSpawn; p->AngleZ=m_rotateKeys.getInterpolatedKey(time).lerp(p->randVal.x); } void PARotationInterpolater::addKey(float time,float angle){ m_rotateKeys.addKey(time,math::MinMaxPair<float>(angle,angle)); } void PARotationInterpolater::addKey(float time,float minAngle,float maxAngle){ m_rotateKeys.addKey(time,math::MinMaxPair<float>(minAngle,maxAngle)); } void PARotationInterpolater::removeKey(int index){ m_rotateKeys.removeKey(index); } //////////////////////////////////////////////////// const core::string g_type=mT("RotationInterpolater"); core::string RotationInterpolaterFactory::getType(){ return g_type.c_str(); } bool RotationInterpolaterFactory::canCreate(const core::string&type){ return g_type.equals_ignore_case(type); } IParticleAffector* RotationInterpolaterFactory::createAffector(){ return new PARotationInterpolater(); } } }
[ "mrayyamen@gmail.com" ]
mrayyamen@gmail.com
3b407a5908b9217c718990f92894c8661f8dbae6
e5d388e8679ad1562d6f560153b07b192d565f48
/week-06/day-1/namespace/01.cpp
0139ff105eb0236b1cd7d52e321fb3e7eba2e96f
[]
no_license
green-fox-academy/paff-tm
1629278c96778563cc2ef852bb9bb85c52b58008
21dff1831b2287a6bc46606678fe03a4f3bbfd37
refs/heads/master
2021-09-15T05:29:55.802453
2018-05-26T20:45:43
2018-05-26T20:45:43
105,658,279
0
0
null
null
null
null
UTF-8
C++
false
false
163
cpp
#include <iostream> // Make it work, without using namespace globally int main() { using namespace std; cout << "Hello world!" << endl; return 0; }
[ "4ndras@gmail.com" ]
4ndras@gmail.com
60ed81cd0b01cc7160798c91257433c785250e1e
2fbf96bb69f954dbf6bbf13661b0492de9b3b4b1
/notebook/Math/Combinatorics/C.cpp
0028533b509089248f537ed568470c6282e99c45
[]
no_license
timothywangdev/Programming-Contests
432d0e6719cf2c910d24416dfacb46abb046a735
dcd58694bd66536222f2ffd78b025af5a38aab4f
refs/heads/master
2023-08-02T06:57:22.724822
2021-10-08T19:06:32
2021-10-08T19:06:32
16,039,238
0
0
null
null
null
null
UTF-8
C++
false
false
758
cpp
/* C(n,k) Assumes factorial[n]=n! Time Complexity: O(1) */ LL C(LL n, LL k){ return factorial[n]/(factorial[n-k]*factorial[k]); } /* C(n,k,mod) (a.k.a C(n,k) MOD mod) Assumptions: factorial[n]=(n!)MOD mod gcd(n!,mod)=1 and mod is a prime (Euler's theorem) Requires: inv() Time Complexity: O(log(mod)) */ LL C(LL n, LL k, LL mod){ if(n<k)return 0; return factorial[n]*inv(factorial[n-k],mod)%mod*inv(factorial[k],mod)%mod; } /* C(n,k,mod) (a.k.a C(n,k) MOD mod) Assumptions: finv[n]=inv(factorial[n],mod) where factorial[n]=(n!)MOD mod finv[] can be calculated in O(n) see 'ModularInverse.cpp' */ LL C(LL n, LL k, LL mod){ if(n<k)return 0; return factorial[n]*finv[n-k]%mod*finv[k]%mod; }
[ "wanghujie@gmail.com" ]
wanghujie@gmail.com
3bd546641875c4b3e254d89e303962c5b3ddfdde
1f63dde39fcc5f8be29f2acb947c41f1b6f1683e
/Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/video_coding/codecs/test/videoprocessor.h
0a01dd1c6ff407fdd56721c1d78ab569c0064b11
[ "LicenseRef-scancode-google-patent-license-webrtc", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "GPL-1.0-or-later", "LicenseRef-scancode-takuya-ooura", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown", "MS-LPL", "MIT", "LicenseRef-scancode-google-patent-licen...
permissive
koobonil/Boss2D
09ca948823e0df5a5a53b64a10033c4f3665483a
e5eb355b57228a701495f2660f137bd05628c202
refs/heads/master
2022-10-20T09:02:51.341143
2019-07-18T02:13:44
2019-07-18T02:13:44
105,999,368
7
2
MIT
2022-10-04T23:31:12
2017-10-06T11:57:07
C++
UTF-8
C++
false
false
10,147
h
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ #define MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ #include <map> #include <memory> #include <string> #include <vector> #include BOSS_WEBRTC_U_api__video__video_frame_h //original-code:"api/video/video_frame.h" #include "common_video/libyuv/include/webrtc_libyuv.h" #include BOSS_WEBRTC_U_modules__video_coding__codecs__h264__include__h264_globals_h //original-code:"modules/video_coding/codecs/h264/include/h264_globals.h" #include "modules/video_coding/codecs/test/packet_manipulator.h" #include "modules/video_coding/codecs/test/stats.h" #include "modules/video_coding/codecs/test/test_config.h" #include "modules/video_coding/include/video_codec_interface.h" #include "modules/video_coding/utility/ivf_file_writer.h" #include "modules/video_coding/utility/vp8_header_parser.h" #include "modules/video_coding/utility/vp9_uncompressed_header_parser.h" #include BOSS_WEBRTC_U_rtc_base__buffer_h //original-code:"rtc_base/buffer.h" #include BOSS_WEBRTC_U_rtc_base__checks_h //original-code:"rtc_base/checks.h" #include BOSS_WEBRTC_U_rtc_base__constructormagic_h //original-code:"rtc_base/constructormagic.h" #include BOSS_WEBRTC_U_rtc_base__sequenced_task_checker_h //original-code:"rtc_base/sequenced_task_checker.h" #include BOSS_WEBRTC_U_rtc_base__task_queue_h //original-code:"rtc_base/task_queue.h" #include "test/testsupport/frame_reader.h" #include "test/testsupport/frame_writer.h" namespace webrtc { class VideoBitrateAllocator; namespace test { // Handles encoding/decoding of video using the VideoEncoder/VideoDecoder // interfaces. This is done in a sequential manner in order to be able to // measure times properly. // The class processes a frame at the time for the configured input file. // It maintains state of where in the source input file the processing is at. // // Regarding packet loss: Note that keyframes are excluded (first or all // depending on the ExcludeFrameTypes setting). This is because if key frames // would be altered, all the following delta frames would be pretty much // worthless. VP8 has an error-resilience feature that makes it able to handle // packet loss in key non-first keyframes, which is why only the first is // excluded by default. // Packet loss in such important frames is handled on a higher level in the // Video Engine, where signaling would request a retransmit of the lost packets, // since they're so important. // // Note this class is not thread safe and is meant for simple testing purposes. class VideoProcessor { public: VideoProcessor(webrtc::VideoEncoder* encoder, webrtc::VideoDecoder* decoder, FrameReader* analysis_frame_reader, PacketManipulator* packet_manipulator, const TestConfig& config, Stats* stats, IvfFileWriter* encoded_frame_writer, FrameWriter* decoded_frame_writer); ~VideoProcessor(); // Reads a frame from the analysis frame reader and sends it to the encoder. // When the encode callback is received, the encoded frame is sent to the // decoder. The decoded frame is written to disk by the analysis frame writer. // Objective video quality metrics can thus be calculated after the fact. void ProcessFrame(); // Updates the encoder with target rates. Must be called at least once. void SetRates(int bitrate_kbps, int framerate_fps); // Returns the number of dropped frames. std::vector<int> NumberDroppedFramesPerRateUpdate() const; // Returns the number of spatial resizes. std::vector<int> NumberSpatialResizesPerRateUpdate() const; private: class VideoProcessorEncodeCompleteCallback : public webrtc::EncodedImageCallback { public: explicit VideoProcessorEncodeCompleteCallback( VideoProcessor* video_processor) : video_processor_(video_processor), task_queue_(rtc::TaskQueue::Current()) {} Result OnEncodedImage( const webrtc::EncodedImage& encoded_image, const webrtc::CodecSpecificInfo* codec_specific_info, const webrtc::RTPFragmentationHeader* fragmentation) override { RTC_CHECK(codec_specific_info); if (task_queue_ && !task_queue_->IsCurrent()) { task_queue_->PostTask( std::unique_ptr<rtc::QueuedTask>(new EncodeCallbackTask( video_processor_, encoded_image, codec_specific_info))); return Result(Result::OK, 0); } video_processor_->FrameEncoded(codec_specific_info->codecType, encoded_image); return Result(Result::OK, 0); } private: class EncodeCallbackTask : public rtc::QueuedTask { public: EncodeCallbackTask(VideoProcessor* video_processor, const webrtc::EncodedImage& encoded_image, const webrtc::CodecSpecificInfo* codec_specific_info) : video_processor_(video_processor), buffer_(encoded_image._buffer, encoded_image._length), encoded_image_(encoded_image), codec_specific_info_(*codec_specific_info) { encoded_image_._buffer = buffer_.data(); } bool Run() override { video_processor_->FrameEncoded(codec_specific_info_.codecType, encoded_image_); return true; } private: VideoProcessor* const video_processor_; rtc::Buffer buffer_; webrtc::EncodedImage encoded_image_; const webrtc::CodecSpecificInfo codec_specific_info_; }; VideoProcessor* const video_processor_; rtc::TaskQueue* const task_queue_; }; class VideoProcessorDecodeCompleteCallback : public webrtc::DecodedImageCallback { public: explicit VideoProcessorDecodeCompleteCallback( VideoProcessor* video_processor) : video_processor_(video_processor), task_queue_(rtc::TaskQueue::Current()) {} int32_t Decoded(webrtc::VideoFrame& image) override { if (task_queue_ && !task_queue_->IsCurrent()) { task_queue_->PostTask( [this, image]() { video_processor_->FrameDecoded(image); }); return 0; } video_processor_->FrameDecoded(image); return 0; } int32_t Decoded(webrtc::VideoFrame& image, int64_t decode_time_ms) override { return Decoded(image); } void Decoded(webrtc::VideoFrame& image, rtc::Optional<int32_t> decode_time_ms, rtc::Optional<uint8_t> qp) override { Decoded(image); } private: VideoProcessor* const video_processor_; rtc::TaskQueue* const task_queue_; }; // Invoked by the callback adapter when a frame has completed encoding. void FrameEncoded(webrtc::VideoCodecType codec, const webrtc::EncodedImage& encodedImage); // Invoked by the callback adapter when a frame has completed decoding. void FrameDecoded(const webrtc::VideoFrame& image); void WriteDecodedFrameToFile(rtc::Buffer* buffer); bool ExcludeFrame(const EncodedImage& encoded_image); TestConfig config_ RTC_GUARDED_BY(sequence_checker_); webrtc::VideoEncoder* const encoder_; webrtc::VideoDecoder* const decoder_; const std::unique_ptr<VideoBitrateAllocator> bitrate_allocator_; // Adapters for the codec callbacks. VideoProcessorEncodeCompleteCallback encode_callback_; VideoProcessorDecodeCompleteCallback decode_callback_; // Fake network. PacketManipulator* const packet_manipulator_; // Input frames. Used as reference at frame quality evaluation. // Async codecs might queue frames. To handle that we keep input frame // and release it after corresponding coded frame is decoded and quality // measurement is done. std::map<int, std::unique_ptr<VideoFrame>> input_frames_ RTC_GUARDED_BY(sequence_checker_); // These (mandatory) file manipulators are used for, e.g., objective PSNR and // SSIM calculations at the end of a test run. FrameReader* const analysis_frame_reader_; // These (optional) file writers are used to persistently store the encoded // and decoded bitstreams. The purpose is to give the experimenter an option // to subjectively evaluate the quality of the processing. Each frame writer // is enabled by being non-null. IvfFileWriter* const encoded_frame_writer_; FrameWriter* const decoded_frame_writer_; // Keep track of inputed/encoded/decoded frames, so we can detect frame drops. int last_inputed_frame_num_ RTC_GUARDED_BY(sequence_checker_); int last_encoded_frame_num_ RTC_GUARDED_BY(sequence_checker_); int last_decoded_frame_num_ RTC_GUARDED_BY(sequence_checker_); // Store an RTP timestamp -> frame number map, since the timestamps are // based off of the frame rate, which can change mid-test. std::map<uint32_t, int> rtp_timestamp_to_frame_num_ RTC_GUARDED_BY(sequence_checker_); // Keep track of if we have excluded the first key frame from packet loss. bool first_key_frame_has_been_excluded_ RTC_GUARDED_BY(sequence_checker_); // Keep track of the last successfully decoded frame, since we write that // frame to disk when decoding fails. rtc::Buffer last_decoded_frame_buffer_ RTC_GUARDED_BY(sequence_checker_); // Statistics. Stats* stats_; std::vector<int> num_dropped_frames_ RTC_GUARDED_BY(sequence_checker_); std::vector<int> num_spatial_resizes_ RTC_GUARDED_BY(sequence_checker_); int rate_update_index_ RTC_GUARDED_BY(sequence_checker_); rtc::SequencedTaskChecker sequence_checker_; RTC_DISALLOW_COPY_AND_ASSIGN(VideoProcessor); }; } // namespace test } // namespace webrtc #endif // MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
[ "slacealic@nate.com" ]
slacealic@nate.com
defff60ca8223cba88c469ac4ac9c61ff456ac66
5521a03064928d63cc199e8034e4ea76264f76da
/fboss/agent/DsfSubscriber.h
81f6462f999a16cee86a44ac0128e6c93a2d2802
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
facebook/fboss
df190fd304e0bf5bfe4b00af29f36b55fa00efad
81e02db57903b4369200eec7ef22d882da93c311
refs/heads/main
2023-09-01T18:21:22.565059
2023-09-01T15:53:39
2023-09-01T15:53:39
31,927,407
925
353
NOASSERTION
2023-09-14T05:44:49
2015-03-09T23:04:15
C++
UTF-8
C++
false
false
2,279
h
// Copyright 2004-present Facebook. All Rights Reserved. #pragma once #include "fboss/agent/DsfSession.h" #include "fboss/agent/StateObserver.h" #include "fboss/fsdb/client/FsdbPubSubManager.h" #include "folly/Synchronized.h" #include <gtest/gtest.h> #include <memory> DECLARE_bool(dsf_subscriber_skip_hw_writes); DECLARE_bool(dsf_subscriber_cache_updated_state); namespace facebook::fboss { class SwSwitch; class SwitchState; class InterfaceMap; class SystemPortMap; namespace fsdb { class FsdbPubSubManager; } class DsfSubscriber : public StateObserver { public: explicit DsfSubscriber(SwSwitch* sw); ~DsfSubscriber() override; void stateUpdated(const StateDelta& stateDelta) override; void stop(); // Used in tests for asserting on modifications // made by DsfSubscriber const std::shared_ptr<SwitchState> cachedState() const { return cachedState_; } const std::vector<fsdb::FsdbPubSubManager::SubscriptionInfo> getSubscriptionInfo() const { if (fsdbPubSubMgr_) { return fsdbPubSubMgr_->getSubscriptionInfo(); } return {}; } std::string getClientId() const { if (fsdbPubSubMgr_) { return fsdbPubSubMgr_->getClientId(); } throw FbossError("DsfSubscriber: fsdbPubSubMgr_ is null"); } std::vector<DsfSessionThrift> getDsfSessionsThrift() const; private: void scheduleUpdate( const std::shared_ptr<SystemPortMap>& newSysPorts, const std::shared_ptr<InterfaceMap>& newRifs, const std::string& nodeName, SwitchID nodeSwitchId); bool isLocal(SwitchID nodeSwitchId) const; // Paths static std::vector<std::string> getSystemPortsPath(); static std::vector<std::string> getInterfacesPath(); static std::vector<std::string> getDsfSubscriptionsPath( const std::string& localNodeName); static std::vector<std::vector<std::string>> getAllSubscribePaths( const std::string& localNodeName); SwSwitch* sw_; std::unique_ptr<fsdb::FsdbPubSubManager> fsdbPubSubMgr_; std::shared_ptr<SwitchState> cachedState_; std::string localNodeName_; folly::Synchronized<std::unordered_map<std::string, DsfSession>> dsfSessions_; FRIEND_TEST(DsfSubscriberTest, scheduleUpdate); FRIEND_TEST(DsfSubscriberTest, setupNeighbors); }; } // namespace facebook::fboss
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
4c38c99720585c397ca0819d86b0c1034b444e89
84b41cff6d2164dc6ab01e3c5158360885d918e2
/src/primitives/zerocoin.h
9122a8bfde7fde2dbdf85014276c9231d64626ed
[ "MIT" ]
permissive
radhanac/GreenPayCoin
352d046dc6347cafbffe9d3968e8db6edad6fa5b
b29de519262fab51126606abe7f3f43fe57e7a71
refs/heads/master
2020-05-18T22:09:14.362274
2019-04-23T08:57:25
2019-04-23T08:57:25
184,684,284
1
0
MIT
2019-05-03T01:46:36
2019-05-03T01:46:36
null
UTF-8
C++
false
false
6,066
h
// Copyright (c) 2017 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef GreenPayCoin_ZEROCOIN_H #define GreenPayCoin_ZEROCOIN_H #include <amount.h> #include <limits.h> #include "libzerocoin/bignum.h" #include "libzerocoin/Denominations.h" #include "serialize.h" class CZerocoinMint { private: libzerocoin::CoinDenomination denomination; int nHeight; CBigNum value; CBigNum randomness; CBigNum serialNumber; uint256 txid; bool isUsed; public: CZerocoinMint() { SetNull(); } CZerocoinMint(libzerocoin::CoinDenomination denom, CBigNum value, CBigNum randomness, CBigNum serialNumber, bool isUsed) { SetNull(); this->denomination = denom; this->value = value; this->randomness = randomness; this->serialNumber = serialNumber; this->isUsed = isUsed; } void SetNull() { isUsed = false; randomness = 0; value = 0; denomination = libzerocoin::ZQ_ERROR; nHeight = 0; txid = 0; } uint256 GetHash() const; CBigNum GetValue() const { return value; } void SetValue(CBigNum value){ this->value = value; } libzerocoin::CoinDenomination GetDenomination() const { return denomination; } int64_t GetDenominationAsAmount() const { return denomination * COIN; } void SetDenomination(libzerocoin::CoinDenomination denom){ this->denomination = denom; } int GetHeight() const { return nHeight; } void SetHeight(int nHeight){ this->nHeight = nHeight; } bool IsUsed() const { return this->isUsed; } void SetUsed(bool isUsed){ this->isUsed = isUsed; } CBigNum GetRandomness() const{ return randomness; } void SetRandomness(CBigNum rand){ this->randomness = rand; } CBigNum GetSerialNumber() const { return serialNumber; } void SetSerialNumber(CBigNum serial){ this->serialNumber = serial; } uint256 GetTxHash() const { return this->txid; } void SetTxHash(uint256 txid) { this->txid = txid; } inline bool operator <(const CZerocoinMint& a) const { return GetHeight() < a.GetHeight(); } CZerocoinMint(const CZerocoinMint& other) { denomination = other.GetDenomination(); nHeight = other.GetHeight(); value = other.GetValue(); randomness = other.GetRandomness(); serialNumber = other.GetSerialNumber(); txid = other.GetTxHash(); isUsed = other.IsUsed(); } bool operator == (const CZerocoinMint& other) const { return this->GetValue() == other.GetValue(); } // Copy another CZerocoinMint inline CZerocoinMint& operator=(const CZerocoinMint& other) { denomination = other.GetDenomination(); nHeight = other.GetHeight(); value = other.GetValue(); randomness = other.GetRandomness(); serialNumber = other.GetSerialNumber(); txid = other.GetTxHash(); isUsed = other.IsUsed(); return *this; } // why 6 below (SPOCK) inline bool checkUnused(int denom, int Height) const { if (IsUsed() == false && GetDenomination() == denomination && GetRandomness() != 0 && GetSerialNumber() != 0 && GetHeight() != -1 && GetHeight() != INT_MAX && GetHeight() >= 1 && (GetHeight() + 6 <= Height)) { return true; } else { return false; } } ADD_SERIALIZE_METHODS; template <typename Stream, typename Operation> inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) { READWRITE(isUsed); READWRITE(randomness); READWRITE(serialNumber); READWRITE(value); READWRITE(denomination); READWRITE(nHeight); READWRITE(txid); }; }; class CZerocoinSpend { private: CBigNum coinSerial; uint256 hashTx; CBigNum pubCoin; libzerocoin::CoinDenomination denomination; unsigned int nAccumulatorChecksum; int nMintCount; //memory only - the amount of mints that belong to the accumulator this is spent from public: CZerocoinSpend() { SetNull(); } CZerocoinSpend(CBigNum coinSerial, uint256 hashTx, CBigNum pubCoin, libzerocoin::CoinDenomination denomination, unsigned int nAccumulatorChecksum) { this->coinSerial = coinSerial; this->hashTx = hashTx; this->pubCoin = pubCoin; this->denomination = denomination; this->nAccumulatorChecksum = nAccumulatorChecksum; } void SetNull() { coinSerial = 0; hashTx = 0; pubCoin = 0; denomination = libzerocoin::ZQ_ERROR; } CBigNum GetSerial() const { return coinSerial; } uint256 GetTxHash() const { return hashTx; } void SetTxHash(uint256 hash) { this->hashTx = hash; } CBigNum GetPubCoin() const { return pubCoin; } libzerocoin::CoinDenomination GetDenomination() const { return denomination; } unsigned int GetAccumulatorChecksum() const { return this->nAccumulatorChecksum; } uint256 GetHash() const; void SetMintCount(int nMintsAdded) { this->nMintCount = nMintsAdded; } int GetMintCount() const { return nMintCount; } ADD_SERIALIZE_METHODS; template <typename Stream, typename Operation> inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) { READWRITE(coinSerial); READWRITE(hashTx); READWRITE(pubCoin); READWRITE(denomination); READWRITE(nAccumulatorChecksum); }; }; class CZerocoinSpendReceipt { private: std::string strStatusMessage; int nStatus; int nNeededSpends; std::vector<CZerocoinSpend> vSpends; public: void AddSpend(const CZerocoinSpend& spend); std::vector<CZerocoinSpend> GetSpends(); void SetStatus(std::string strStatus, int nStatus, int nNeededSpends = 0); std::string GetStatusMessage(); int GetStatus(); int GetNeededSpends(); }; #endif //GreenPayCoin_ZEROCOIN_H
[ "mygreenpay@gmail.com" ]
mygreenpay@gmail.com
6878c046a9be0dee5787da4d9ccd80fe88338c79
30d9d86ecfa5327436d88e57d2ccce6f3ad954eb
/c_code/day03/myconstruct1.cpp
fb9138e5b5658bf0bbd6f7d543adb3f85d12d450
[]
no_license
taizilinger123/C
3eabdf04b192620263a3dc863eb4d4c30a94fffa
a77354dffc5a4f1c8445e65bbc5401b096aa9f27
refs/heads/master
2023-08-22T00:07:33.669500
2023-08-21T07:26:22
2023-08-21T07:26:22
215,798,200
0
0
null
null
null
null
UTF-8
C++
false
false
750
cpp
#include <iostream> using namespace std; class Car { // The class public: // Access specifier string brand; // Attribute string model; // Attribute int year; // Attribute Car(string x, string y, int z); // Constructor declaration }; // Constructor definition outside the class Car::Car(string x, string y, int z) { brand = x; model = y; year = z; } int main() { // Create Car objects and call the constructor with different values Car carObj1("BMW", "X5", 1999); Car carObj2("Ford", "Mustang", 1969); // Print values cout << carObj1.brand << " " << carObj1.model << " " << carObj1.year << "\n"; cout << carObj2.brand << " " << carObj2.model << " " << carObj2.year << "\n"; return 0; }
[ "837337164@qq.com" ]
837337164@qq.com
6fc09423686ace3587d3a97b6fb01510a14ba015
9b1df908f756d754873eb96324f9ed71b7b18fa4
/openframeworks/examples/lutFilterExample/include/OFApp.hpp
98531cbf5cb965d8e8bd98205198308f64e42f0b
[]
no_license
sigifredo/ImagesAndAlgorithms
12039db963f6594a0b286dc9fc8baa032e47bf07
bb3600474e723728cc094b0a5b9c1c180c3aa8fc
refs/heads/master
2020-05-06T20:31:17.784261
2019-09-02T13:35:00
2019-09-02T13:35:00
180,241,326
0
0
null
null
null
null
UTF-8
C++
false
false
878
hpp
#ifndef OFAPP_HPP #define OFAPP_HPP #include <ofMain.h> class OFApp: public ofBaseApp { public: void setup(); void update(); void draw(); void keyPressed (int key); void keyReleased(int key); void mouseMoved(int x, int y ); void mouseDragged(int x, int y, int button); void mousePressed(int x, int y, int button); void mouseReleased(int x, int y, int button); void mouseEntered(int x, int y); void mouseExited(int x, int y); void windowResized(int w, int h); void gotMessage(ofMessage msg); void dragEvent(ofDragInfo dragInfo); void loadLUT(std::string path); void applyLUT(ofPixelsRef pix); bool doLUT; ofVideoGrabber vidGrabber; int dirLoadIndex; ofDirectory dir; ofPoint lutPos; ofPoint thumbPos; bool LUTloaded; ofVec3f lut[32][32][32]; ofImage lutImg; }; #endif
[ "sigifredo89@gmail.com" ]
sigifredo89@gmail.com
9c3aaa2798f1b29c28b1e19f8774b03313872cf1
44e5409a7d5573746aba521187ccbdd0b3477b8c
/HP-Socket/Src/SSLAgent.cpp
bf7e264598e816f504afcbfdb40ef26764c0930c
[ "Apache-2.0" ]
permissive
438219972/HP-Socket
1caa749f286aac751feea86d4d7e540774679fc3
0a0de708423c208dbdaff195c92554dc85bc3b87
refs/heads/master
2021-06-06T21:10:47.343453
2016-08-12T14:33:37
2016-08-12T14:33:37
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,269
cpp
/* * Copyright: JessMA Open Source (ldcsaa@gmail.com) * * Version : 3.5.3 * Author : Bruce Liang * Website : http://www.jessma.org * Project : https://github.com/ldcsaa * Blog : http://www.cnblogs.com/ldcsaa * Wiki : http://www.oschina.net/p/hp-socket * QQ Group : 75375912 * * 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 "stdafx.h" #include "SSLAgent.h" #include "SSLHelper.h" BOOL CSSLAgent::CheckParams() { if(!g_SSL.IsValid()) { SetLastError(SE_SSL_ENV_NOT_READY, __FUNCTION__, ERROR_NOT_READY); return FALSE; } return __super::CheckParams(); } void CSSLAgent::PrepareStart() { __super::PrepareStart(); m_sslPool.SetItemCapacity (GetSocketBufferSize()); m_sslPool.SetItemPoolSize (GetFreeBufferObjPool()); m_sslPool.SetItemPoolHold (GetFreeBufferObjHold()); m_sslPool.SetSessionLockTime(GetFreeSocketObjLockTime()); m_sslPool.SetSessionPoolSize(GetFreeSocketObjPool()); m_sslPool.SetSessionPoolHold(GetFreeSocketObjHold()); m_sslPool.Prepare(); } void CSSLAgent::Reset() { g_SSL.RemoveThreadLocalState(); __super::Reset(); } void CSSLAgent::OnWorkerThreadEnd(DWORD dwThreadID) { g_SSL.RemoveThreadLocalState(); __super::OnWorkerThreadEnd(dwThreadID); } BOOL CSSLAgent::SendPackets(CONNID dwConnID, const WSABUF pBuffers[], int iCount) { ASSERT(pBuffers && iCount > 0); TSocketObj* pSocketObj = FindSocketObj(dwConnID); if(!TSocketObj::IsValid(pSocketObj)) { ::SetLastError(ERROR_OBJECT_NOT_FOUND); return FALSE; } CSSLSession* pSession = nullptr; GetConnectionReserved2(pSocketObj, (PVOID*)&pSession); return ::ProcessSend(this, pSocketObj, pSession, pBuffers, iCount); } EnHandleResult CSSLAgent::FireConnect(TSocketObj* pSocketObj) { EnHandleResult result = DoFireConnect(pSocketObj); if(result != HR_ERROR) { CSSLSession* pSession = m_sslPool.PickFreeSession(); VERIFY(SetConnectionReserved2(pSocketObj, pSession)); VERIFY(::ProcessHandShake(this, pSocketObj, pSession) == HR_OK); } return result; } EnHandleResult CSSLAgent::FireReceive(TSocketObj* pSocketObj, const BYTE* pData, int iLength) { CSSLSession* pSession = nullptr; GetConnectionReserved2(pSocketObj, (PVOID*)&pSession); ASSERT(pSession); return ::ProcessReceive(this, pSocketObj, pSession, pData, iLength); } EnHandleResult CSSLAgent::FireClose(TSocketObj* pSocketObj, EnSocketOperation enOperation, int iErrorCode) { EnHandleResult result = DoFireClose(pSocketObj, enOperation, iErrorCode); CSSLSession* pSession = nullptr; GetConnectionReserved2(pSocketObj, (PVOID*)&pSession); if(pSession != nullptr) m_sslPool.PutFreeSession(pSession); return result; } EnHandleResult CSSLAgent::FireShutdown() { EnHandleResult result = DoFireShutdown(); m_sslPool.Clear(); return result; }
[ "liangdongcheng@lechebang.com" ]
liangdongcheng@lechebang.com
c0e9e607d40242209912c0a74ed691f43925fed1
7264320795c0e4d09123cb56b070ff92c752d9b8
/reactSrc/AmbiantLightData.hpp
0464f1cd896c83bbbc71ffea5a2bfbdce4f1c720
[]
no_license
the-only-ahmed/FlowVr
5696aeb76e86f2cec7d606333da05513b0e08d81
b66e03d8c20292251a7d95747cd9542627099ef3
refs/heads/master
2021-08-17T09:02:23.705252
2017-11-21T01:35:00
2017-11-21T01:35:00
111,477,819
4
2
null
null
null
null
UTF-8
C++
false
false
1,140
hpp
#pragma once #include <nodes/NodeDataModel> #include <sstream> #include "LightComponent.hpp" using QtNodes::NodeData; using QtNodes::NodeDataType; // The class can potentially incapsulate any user data which /// need to be transferred within the Node Editor graph class AmbiantLightData : public LightComponent { public: AmbiantLightData() : LightComponent() {} QString toString() const override { return "AmbiantLight"; } QJsonObject Value() const override { QJsonObject modelJson; return modelJson; } AmbiantLightData &operator=(const AmbiantLightData *src) { LightComponent::operator = (src); return *this; } QString getXml() const override { ComponentNode::addComponent(toString()); QString out; QXmlStreamWriter stream(&out); //stream.writeStartDocument(); stream.writeStartElement(toString()); if (_style != nullptr) stream.writeAttribute(_style->getAttribute()); if (_intensity > 0) stream.writeAttribute("intensity", QString::number(_intensity, 'f', 2)); stream.writeEndElement(); stream.writeEndDocument(); return out; } };
[ "ael-kadh@student.42.fr" ]
ael-kadh@student.42.fr
ee2c0e5c732974d178e3042db0e70cfd72ca6056
21806cffaf31bdcd86bf150a41af6d56f5b145c8
/MusicPlayerQt/lyricplayer.h
1a9d11c68ca697049b48796ab36d06b4b4b972d2
[ "MIT" ]
permissive
xilwen/MusicPlayerQt
4a2b5d3657cc573154d3dcbc79008b2911119fb9
b455143ef0c46d227f8bb70aedb922d8ffe15f2c
refs/heads/master
2021-01-12T17:44:49.592695
2017-10-15T12:30:23
2017-10-15T12:30:23
71,636,184
1
1
null
null
null
null
UTF-8
C++
false
false
808
h
#ifndef LYRICPLAYER_H #define LYRICPLAYER_H #include <string> #include <deque> #include <cctype> #include <QObject> #include <QFile> #include <QDebug> #include "timer.h" class LyricPlayer : public QObject { Q_OBJECT public: LyricPlayer() = delete; LyricPlayer(Timer& _timer); void LoadFile(const std::string& in); void PlayLyric(); bool isPlaying(); bool isAvailable(); void Stop(); signals: void lyricChanged(const std::deque<std::string>& newLyricStage); private: struct DynaLyric { int second; std::string text; }; std::string filename; std::deque<DynaLyric> lyricBase; bool stop = false; bool playing = false; bool available = false; Timer& timer; void LyricParser(QFile& in); }; #endif // LYRICPLAYER_H
[ "v72807647@gmail.com" ]
v72807647@gmail.com
e5f9ac962dc3302db4e62780f6385c072ceef7c2
82edd4a8ffaab74bdcb995b39027b9f36828803e
/Project/Tool/CResDlg.cpp
b772a54f7b2062939b3ce730a1eb9463dec3b136
[]
no_license
chamnah/Portfolio_Transistor
82a1bc474ffb1f842e6974ecaed18efeb409e5ca
fa99d7aee4fb2f39474ac0446c6030ace543ec1b
refs/heads/master
2022-06-07T14:49:50.612801
2020-05-06T11:33:54
2020-05-06T11:33:54
261,708,087
0
0
null
null
null
null
UTF-8
C++
false
false
8,858
cpp
// CResDlg.cpp: 구현 파일 #include "stdafx.h" #include "Tool.h" #include "CResDlg.h" #include "afxdialogex.h" #include "CPathMgr.h" #include "CResMgr.h" #include "MainFrm.h" #include "CGameObj.h" #include "CSceneMgr.h" #include "CMeshRender.h" #include "CCollider.h" #include "CTransform.h" #include "KeyMgr.h" #include "CTexture.h" #include "CLayer.h" #include "CTestMgr.h" #include "CPrefab.h" #include "CAnimator2D.h" #include "CHierarchyDlg.h" #include "CHierachyView.h" #include "CAnimView.h" // CResDlg 대화 상자 IMPLEMENT_DYNAMIC(CResDlg, CDialogEx) CResDlg::CResDlg(CWnd* pParent /*=nullptr*/) : CTreeDlg(IDD_RESDLG, pParent) { } CResDlg::~CResDlg() { } void CResDlg::Init() { DataLoad(RESOURCE_TYPE::TEXTURE, wstring(L"Baysign")); DataLoad(RESOURCE_TYPE::TEXTURE, wstring(L"Terrain")); DataLoad(RESOURCE_TYPE::PREFAB, wstring(L"Prefab")); } void CResDlg::DoDataExchange(CDataExchange* pDX) { CDialogEx::DoDataExchange(pDX); DDX_Control(pDX, IDC_TREE1, m_ctrlTree); } void CResDlg::DataLoad(RESOURCE_TYPE _eType, wstring & _Path) { wstring strResPath = CPathMgr::GetInst()->GetPath(); wstring strExtention = L""; HTREEITEM pParentItem = 0; WIN32_FIND_DATA tData = {}; if (_eType == RESOURCE_TYPE::TEXTURE) { strResPath += L"Texture\\Object\\"; strExtention = L"\\*.png"; pParentItem = AddItem(_Path.c_str(), NULL, nullptr); } else { strExtention = L"\\*.prefab"; pParentItem = AddItem(L"Prefab", NULL, nullptr); } HANDLE handle = FindFirstFile(wstring(strResPath + _Path + strExtention).c_str(), &tData); strResPath += _Path + L"\\"; while (true) { switch (_eType) { case RESOURCE_TYPE::MESH: break; case RESOURCE_TYPE::TEXTURE: { wstring strTexture = strResPath + tData.cFileName; strTexture = CPathMgr::GetInst()->AbsoluteToRelativeResPath(strTexture); CResMgr::GetInst()->AddResource<CTexture>(tData.cFileName, CTexture::CreateTexture(strTexture)); CTexture* pTex = CResMgr::GetInst()->Load<CTexture>(tData.cFileName); HTREEITEM pTextureItem = AddItem(tData.cFileName, (DWORD_PTR)pTex, pParentItem); } break; case RESOURCE_TYPE::MATERIAL: break; case RESOURCE_TYPE::PREFAB: { map<wstring,CRes*>& mapPrefab = CResMgr::GetInst()->GetResource(RESOURCE_TYPE::PREFAB); for (auto&prefab : mapPrefab) { AddItem(prefab.first.c_str(), (DWORD_PTR)prefab.second, pParentItem); } } break; case RESOURCE_TYPE::END: break; default: break; } if (!FindNextFile(handle, &tData)) return; } } void CResDlg::CreateNewObject() { CGameObj* pGrid = CTestMgr::GetInst()->GetTargetObj(); Vec3 vMousePos; if (pGrid == nullptr) vMousePos = CKeyMgr::GetInst()->GetMousePos(); else vMousePos = pGrid->GetTransForm()->GetPos(); vMousePos.x -= g_World.mtxView._41; vMousePos.y -= g_World.mtxView._42; vMousePos.z = 1.f; CString strParent = m_ctrlTree.GetItemText(m_ctrlTree.GetParentItem(m_Drag)); CGameObj* pNewObject = nullptr; CTexture* pData = nullptr; if (strParent == L"Terrain" || strParent == L"Baysign") { pData = (CTexture*)m_ctrlTree.GetItemData(m_Drag); pNewObject = new CGameObj; pNewObject->SetName(pData->GetName()); pNewObject->AddComponent(new CMeshRender); pNewObject->AddComponent(new CCollider); pNewObject->GetMeshRender()->SetMesh(CResMgr::GetInst()->Load<CMesh>(L"RectMesh")); pNewObject->GetMeshRender()->SetMtrlClone(CResMgr::GetInst()->Load<CMaterial>(L"Std")); pNewObject->GetMeshRender()->SetTexture(pData); pNewObject->GetTransForm()->SetScale(Vec3(pData->GetWidth(), pData->GetHeight(), 1)); pNewObject->GetCollider()->SetScale(Vec3(pData->GetWidth(), pData->GetHeight(), 0.f)); pNewObject->GetCollider()->SetColliderType(COLLIDER_TYPE::COLL_BOX); } if (strParent == L"Terrain") { vMousePos.z = 9999.f; pNewObject->GetTransForm()->SetPos(vMousePos); CSceneMgr::GetInst()->AddObject(L"Back", pNewObject); ((CHierachyView*)((CMainFrame*)AfxGetMainWnd())->GetView(VIEW_TYPE::HIERACHY))->GetHirerarchy()->Reset(); return; } else if (strParent == L"Baysign") { vMousePos.z = 0.f; pNewObject->GetTransForm()->SetPos(vMousePos); } else if (strParent == L"Prefab") { CPrefab* pData = (CPrefab*)m_ctrlTree.GetItemData(m_Drag); pNewObject = pData->Instantiate(); pNewObject->SetName(m_ctrlTree.GetItemText(m_Drag).GetBuffer()); vMousePos.z = pNewObject->GetTransForm()->GetPos().z; pNewObject->GetTransForm()->SetPos(vMousePos); pNewObject->Awake(); } CSceneMgr::GetInst()->AddObject(L"Default", pNewObject); ((CHierachyView*)((CMainFrame*)AfxGetMainWnd())->GetView(VIEW_TYPE::HIERACHY))->GetHirerarchy()->Reset(); } void CResDlg::Reset() { HTREEITEM hRoot = m_ctrlTree.GetNextSiblingItem(m_ctrlTree.GetRootItem()); hRoot = m_ctrlTree.GetNextSiblingItem(hRoot); HTREEITEM hChild; HTREEITEM hSibling; HTREEITEM hDelete; wstring strName; hDelete = m_ctrlTree.GetChildItem(hRoot); hSibling = m_ctrlTree.GetNextSiblingItem(hDelete); while (true) { if (hDelete == NULL) break; m_ctrlTree.DeleteItem(hDelete); hDelete = hSibling; hSibling = m_ctrlTree.GetNextSiblingItem(hDelete); } map<wstring,CRes*>& mapPrefab = CResMgr::GetInst()->GetResource(RESOURCE_TYPE::PREFAB); for (auto& prefab : mapPrefab) { AddItem(prefab.first.c_str(),(DWORD_PTR)prefab.second, hRoot); } } BEGIN_MESSAGE_MAP(CResDlg, CDialogEx) ON_NOTIFY(NM_DBLCLK, IDC_TREE1, &CResDlg::OnDBClickTree) ON_NOTIFY(TVN_BEGINDRAG, IDC_TREE1, &CResDlg::OnBeginDragTree) ON_WM_LBUTTONUP() ON_NOTIFY(TVN_SELCHANGED, IDC_TREE1, &CResDlg::OnTvnSelchangedTree1) END_MESSAGE_MAP() // CResDlg 메시지 처리기 void CResDlg::OnDBClickTree(NMHDR *pNMHDR, LRESULT *pResult) // 다른걸 더블 클릭햇을 경우 이미지 띄우기 { Reset(); HTREEITEM item = m_ctrlTree.GetSelectedItem(); CString strParent = m_ctrlTree.GetItemText(m_ctrlTree.GetParentItem(item)); if (strParent == L"Prefab" || strParent == L"") return; if (strParent == L"Baysign" || strParent == L"Terrain") { CTexture* pObject = (CTexture*)m_ctrlTree.GetItemData(item); CString strName = pObject->GetName().c_str(); CTexture* pTex = CResMgr::GetInst()->Load<CTexture>((wstring)strName); CString ResPath = CPathMgr::GetInst()->GetPath(); ResPath += L"Texture\\Object\\" + strParent + L"\\"; ResPath += strName; CRect rt; GetClientRect(rt); CClientDC dc(this); CImage Image; Image.Load(ResPath); Image.StretchBlt(dc.m_hDC, rt.Width() / 2 - 50, rt.Height()*0.7, 100, 100, 0, 0, pTex->GetWidth(), pTex->GetHeight()); } *pResult = 0; } void CResDlg::OnBeginDragTree(NMHDR *pNMHDR, LRESULT *pResult) { CTestMgr::GetInst()->SetStop(true); // 이미 배치되어 있는 객체가 이동되지 않도록 멈춤 LPNMTREEVIEW pNMTreeView = reinterpret_cast<LPNMTREEVIEW>(pNMHDR); m_Drag = pNMTreeView->itemNew.hItem; SetCapture(); *pResult = 0; } void CResDlg::OnLButtonUp(UINT nFlags, CPoint point) { // TODO: 여기에 메시지 처리기 코드를 추가 및/또는 기본값을 호출합니다. CTestMgr::GetInst()->SetStop(false); ReleaseCapture(); CRect rt; ((CMainFrame*)AfxGetMainWnd())->GetGameView()->GetClientRect(rt); POINT pt; GetCursorPos(&pt); ((CMainFrame*)AfxGetMainWnd())->GetGameView()->ScreenToClient(&pt); if (nullptr == m_Drag) return; if (((CTexture*)m_ctrlTree.GetItemData(m_Drag)) == nullptr) return; if (rt.Width() < pt.x || rt.Height() < pt.y || 0 > pt.x || 0 > pt.y) { m_Drag = nullptr; return; } wchar_t szText[255] = {}; TV_ITEM item = {}; item.hItem = m_Drag; item.pszText = szText; item.cchTextMax = 255; item.mask = TVIF_TEXT | TVIF_IMAGE; m_ctrlTree.GetItem(&item); CreateNewObject(); m_Drag = nullptr; CTreeDlg::OnLButtonUp(nFlags, point); } void CResDlg::OnTvnSelchangedTree1(NMHDR *pNMHDR, LRESULT *pResult) // 다른걸 선택햇을 경우 이미지 띄우기 { LPNMTREEVIEW pNMTreeView = reinterpret_cast<LPNMTREEVIEW>(pNMHDR); HTREEITEM item = pNMTreeView->itemNew.hItem; //HTREEITEM item = m_ctrlTree.GetSelectedItem(); CString strParent = m_ctrlTree.GetItemText(m_ctrlTree.GetParentItem(item)); if (strParent == L"Prefab" || strParent == L"") return; if (strParent == L"Baysign" || strParent == L"Terrain") { CTexture* pObject = (CTexture*)m_ctrlTree.GetItemData(item); CString strName = pObject->GetName().c_str(); CTexture* pTex = CResMgr::GetInst()->Load<CTexture>((wstring)strName); CString ResPath = CPathMgr::GetInst()->GetPath(); ResPath += L"Texture\\Object\\" + strParent + L"\\"; ResPath += strName; CRect rt; GetClientRect(rt); CClientDC dc(this); CImage Image; Image.Load(ResPath); Image.StretchBlt(dc.m_hDC, rt.Width() / 2 - 50, rt.Height()*0.7, 100, 100, 0, 0, pTex->GetWidth(), pTex->GetHeight()); } // TODO: 여기에 컨트롤 알림 처리기 코드를 추가합니다. *pResult = 0; }
[ "46718509+chamnah@users.noreply.github.com" ]
46718509+chamnah@users.noreply.github.com
e1bb41b853580a3d5297bba9489ef1075bc19920
d1ec47ff6acacb9f5368064e4c87f8d3770b016b
/lib/あんまつかわない/insertion sort.cpp
1659e4668dacfb71bdd2e04c0afef212e6746f09
[]
no_license
fj0rdingz/Competive_Programming
8bca0870311b348ea4c38d134f73346edceadf15
3dc42a85b7c9f4e77ba8c5488d84fb0f1f3ac75c
refs/heads/master
2021-10-29T02:25:52.820526
2021-10-25T06:23:29
2021-10-25T06:23:29
252,177,293
0
0
null
null
null
null
UTF-8
C++
false
false
1,347
cpp
// lcmとか__builtin_popcountとかはg++ -std=c++17 default.cppみたいなかんじで // -fsanitize=undefinedでオーバーフロー検出 #include <bits/stdc++.h> #define mod 1000000007 #define INF LLONG_MAX #define ll long long #define ln cout<<endl #define Yes cout<<"Yes"<<endl #define NO cout<<"NO"<<endl #define YES cout<<"YES"<<endl #define No cout<<"No"<<endl #define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++) #define rep(i,n) REP(i,0,n) #define all(x) (x).begin(),(x).end() #define rall(x) (x).rbegin(),(x).rend() using namespace std; ll dx[4]={1,0,-1,0}; ll dy[4]={0,1,0,-1}; //トランプ挿入ソート //http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_1_A int main() { cin.tie(0); ios::sync_with_stdio(false); ll a,b,c,d,m,n,maxi=0,f=0,mini=INF; long double sum=0; long double minis=1000000000000; string str; cin>>n; vector<ll> v(n); rep(i,n) cin>>v[i]; ll num; rep(i,n) { cout<<v[i]; if(i!=n-1) cout<<" "; } ln; REP(i,1,n){ //i++; num=v[i]; ll j=i-1; while(j>=0&&v[j]>num){ v[j+1]=v[j]; j--; } v[j+1] =num; rep(i,n) { cout<<v[i]; if(i!=n-1) cout<<" "; } ln; //i--; } return 0; }
[ "haruchin.mi@gmail.com" ]
haruchin.mi@gmail.com
8a05bb638675b62caa46f64b6070e10e6d40214a
005cb1c69358d301f72c6a6890ffeb430573c1a1
/Pods/Headers/Private/GeoFeatures/boost/geometry/strategies/cartesian/point_in_poly_franklin.hpp
39f9ada0a49f53d91bc9996265611ab7e691e38a
[ "Apache-2.0" ]
permissive
TheClimateCorporation/DemoCLUs
05588dcca687cc5854755fad72f07759f81fe673
f343da9b41807694055151a721b497cf6267f829
refs/heads/master
2021-01-10T15:10:06.021498
2016-04-19T20:31:34
2016-04-19T20:31:34
51,960,444
0
0
null
null
null
null
UTF-8
C++
false
false
107
hpp
../../../../../../../GeoFeatures/GeoFeatures/boost/geometry/strategies/cartesian/point_in_poly_franklin.hpp
[ "tommy.rogers@climate.com" ]
tommy.rogers@climate.com
7fee48debd4ec6a40122e02f484b69934ee2b5d1
69fdfa0d96b02d907497f11b3c965a38d0b30e54
/src/common/sparse_map.h
fa9e9c9b301bdb3db7000ee6b6fbbca61a119be2
[ "Apache-2.0" ]
permissive
Markovna/SprintEngine
1622c5d7a1cd4dd071cdb77cd7895f1a0692ba4b
60110c62e951b74873986d5784aad57f1b5c08ee
refs/heads/master
2023-03-26T18:41:22.484832
2021-03-29T11:00:08
2021-03-29T11:00:08
284,050,040
2
0
null
null
null
null
UTF-8
C++
false
false
2,006
h
#pragma once #include "sparse_set.h" #include <vector> template<class KeyType, class ValueType> class sparse_map : public sparse_set<KeyType> { private: using iterator = typename std::vector<ValueType>::iterator; using const_iterator = typename std::vector<ValueType>::const_iterator; public: using set = sparse_set<KeyType>; public: auto begin() { return values_.begin(); } auto end() { return values_.end(); } auto begin() const { return values_.begin(); } auto end() const { return values_.end(); } auto rbegin() { return values_.rbegin(); } auto rend() { return values_.rend(); } auto rbegin() const { return values_.rbegin(); } auto rend() const { return values_.rend(); } ValueType& push(KeyType key, const ValueType& value) { assert(!set::contains(key)); values_.push_back(value); set::insert(key); return values_.back(); } ValueType& push(KeyType key, ValueType&& value) { assert(!set::contains(key)); values_.push_back(std::move(value)); set::insert(key); return values_.back(); } template<class ...Args> ValueType& emplace(KeyType key, Args&&... args) { assert(!set::contains(key)); values_.emplace_back(std::forward<Args>(args)...); set::insert(key); return values_.back(); } void erase(KeyType key) { assert(set::contains(key)); values_[set::index(key)] = std::move(values_.back()); values_.pop_back(); set::erase(key); } [[nodiscard]] ValueType& get(KeyType key) { return values_[set::index(key)]; } [[nodiscard]] const ValueType& get(KeyType key) const { return values_[set::index(key)]; } [[nodiscard]] ValueType* try_get(KeyType key) { return set::contains(key) ? &get(key) : nullptr; } [[nodiscard]] const ValueType* try_get(KeyType key) const { return set::contains(key) ? &get(key) : nullptr; } private: std::vector<ValueType> values_; };
[ "abdushukurova.km@gmail.com" ]
abdushukurova.km@gmail.com
fa5d8d3fde0f91dec7640a18d76c37937dd44ace
ae19e244ff5a8a80482d1f347c538ae623d38943
/solar.h
f4b1deb39f700b12803ea7f1d4b2a14b432a502d
[]
no_license
anwlf/world3d_qt_win
e9055e0315a2045bb5419142a3b9dd409b1ca56a
a918edbeb61d03fe6001080a24315a4ad7d4d823
refs/heads/master
2020-06-02T19:16:10.297439
2019-06-11T02:24:46
2019-06-11T02:24:46
191,278,583
0
0
null
null
null
null
UTF-8
C++
false
false
7,404
h
/***********************************************************/ /* SOLAR SYSTEM DEFINITIONS header */ /* A. Volkov, 2015 */ /***********************************************************/ #ifndef SOLAR_H #define SOLAR_H #include "astronomy.h" // Astrnomical Unit (m) #define AU 1.5E11 // range coeficient #define range_AU_coef 10E-16//tmp about was 14 02.07.2016 // mass relative to Sun/10E6 #define Sun_absolute_mass 1.98855E30 // kg #define Sun_mass 1000000.0 #define Mercury_mass 0.16601 #define Venus_mass 2.4478383 #define Earth_mass 3.00348959632 #define Mars_mass 0.3227151 #define Jupiter_mass 954.79194 #define Saturn_mass 285.8860 #define Saturn_ring_mass 0.001 //tmp #define Uranus_mass 43.6624 #define Neptune_mass 51.51389 #define Pluto_mass 0.007396 #define Planet_absolute_mass(rel_mass) (rel_mass*10E-6*Sun_absolute_mass*range_AU_coef) // Planets sizes relative Earth #define Sun_size 109.0 //#define Sun_size 20.90 //01.27.2016 - tmp #define Mercury_size 0.38 #define Venus_size 0.95 #define Earth_size 1.0 #define Mars_size 0.53 #define Jupiter_size 11.19 #define Saturn_size 9.40 #define Saturn_ring_size 9.40 #define Uranus_size 4.04 #define Neptune_size 3.88 #define Pluto_size 0.18 //#define Planet_scaled_size(rel_size) (log(rel_size*10.0)*50.0) // Log - temporary for better view. 12.09.2015 //#define Planet_scaled_size(rel_size) (log2(rel_size*10.0)*50.0) // Log2 - temporary for better view. 12.15.2015 // #define Planet_scaled_size(rel_size) (rel_size*20.0) //#define Planet_scaled_size(rel_size) (rel_size*200.0) //#define Planet_scaled_size(rel_size) rel_size // Planets and sun colors #define Sun_color 0xffff00 #define Mercury_color 0xffff0f #define Venus_color 0xffffff #define Earth_color 0xffff00 #define Mars_color 0xff0000 #define Jupiter_color 0xff9f00 #define Saturn_color 0xffef05 #define Saturn_ring_color 0xffef05 #define Uranus_color 0xf0f0f0 #define Neptune_color 0xfffff0 #define Pluto_color 0x0fffff class Solar_planet: public planet { public: virtual const char* name() {return "";} Solar_planet(REAL_TYPE m, basis o_b, int color, int size, ph_body* gb) : planet(m,o_b, color,size,gb) {} Solar_planet(REAL_TYPE m, basis o_b, int color, int size, ph_body* gb, int sat_cnt, REAL_TYPE sat_ratio) : planet(m,o_b, color,size,gb,sat_cnt,sat_ratio) {} }; class Mercury: public Solar_planet // Mercury 0.4AU { //protected: public: virtual const char* name() {return "Mercury";} Mercury(basis o_b, star* sun) : Solar_planet(Planet_absolute_mass(Mercury_mass),basis(o_b - vector(0.4 * 1000)),Mercury_color,Planet_scaled_size(Mercury_size),sun) { //(*(location*)this)[0] -= 0.4 * 1000; //tmp } }; class Venus: public Solar_planet // Venus 0.7AU { //protected: public: virtual const char* name() {return "Venus";} Venus(basis o_b, star* sun) : Solar_planet(Planet_absolute_mass(Venus_mass),basis(o_b - vector(0.7 * 1000)),Venus_color,Planet_scaled_size(Venus_size),sun) { //(*(location*)this)[0] -= 0.7 * 1000; //tmp } }; class Earth: public Solar_planet // Earth 1AU { //protected: public: virtual const char* name() {return "Earth";} Earth(basis o_b, star* sun) : Solar_planet(Planet_absolute_mass(Earth_mass),basis(o_b - vector(1000)),Earth_color,Planet_scaled_size(Earth_size),sun,1,0.05) //tmp moon { //(*(location*)this)[0] -= 1000; //tmp } }; class Mars: public Solar_planet // Mars 1.5AU { //protected: public: virtual const char* name() {return "Mars";} Mars(basis o_b, star* sun) : Solar_planet(Planet_absolute_mass(Mars_mass),basis(o_b - vector(1.4 * 1000)),Mars_color,Planet_scaled_size(Mars_size),sun) { //(*(location*)this)[0] -= 1.4 * 1000; //tmp } }; class Jupiter: public Solar_planet // Jupiter 5.2AU { //protected: public: virtual const char* name() {return "Jupiter";} Jupiter(basis o_b, star* sun) : Solar_planet(Planet_absolute_mass(Jupiter_mass),basis(o_b - vector(5.2 * 1000)),Jupiter_color,Planet_scaled_size(Jupiter_size),sun,4,0.5) //tmp satelites { //(*(location*)this)[0] -= 5.2 * 1000; //tmp //(*(location*)this)-=vector(5.2 * 1000,0,0); } }; class Saturn: public Solar_planet // Saturn 9.5AU { //protected: public: virtual const char* name() {return "Saturn";} Saturn(basis o_b, star* sun) : Solar_planet(Planet_absolute_mass(Saturn_mass),basis(o_b - vector(9.5 * 1000)),Saturn_color,Planet_scaled_size(Saturn_size),sun) { //(*(location*)this)[0] -= 9.5 * 1000; //tmp } }; //Does not work class Saturn_ring: public planet_ring // Saturn ring 9.5AU // tmp solution 12.09.2015 { //protected: public: Saturn_ring(basis o_b, star* sun) : planet_ring(Planet_absolute_mass(Saturn_ring_mass),basis(o_b - vector(9.5 * 1000)),Saturn_ring_color,Planet_scaled_size(Saturn_ring_size),sun) { //(*(location*)this)[0] -= 9.5 * 1000; //tmp } }; class Uranus: public Solar_planet // Uranus 19.6AU { //protected: public: virtual const char* name() {return "Uranus";} Uranus(basis o_b, star* sun) : Solar_planet(Planet_absolute_mass(Uranus_mass),basis(o_b - vector(19.6 * 1000)),Uranus_color,Planet_scaled_size(Uranus_size),sun) { //(*(location*)this)[0] -= 19.6 * 1000; //tmp } }; class Neptune: public Solar_planet // Neptune 30AU { //protected: public: virtual const char* name() {return "Neptune";} Neptune(basis o_b, star* sun) : Solar_planet(Planet_absolute_mass(Neptune_mass),basis(o_b - vector(30 * 1000)),Neptune_color,Planet_scaled_size(Neptune_size),sun) { //(*(location*)this)[0] -= 30 * 1000; //tmp } }; class Pluto: public Solar_planet // Pluto 39AU { //protected: public: virtual const char* name() {return "Pluto";} Pluto(basis o_b, star* sun) : Solar_planet(Planet_absolute_mass(Pluto_mass),basis(o_b - vector(39 * 1000)),Pluto_color,Planet_scaled_size(Pluto_size),sun) { //(*(location*)this)[0] -= 39 * 1000; //tmp } }; class Sun : public star { //protected: public: planet* earth() {return (planets[2]);} planet* jupiter() {return (planets[4]);} planet* uranus() {return (planets[7]);} Sun(basis o_b) : star(Planet_absolute_mass(Sun_mass),o_b,Sun_color,Planet_scaled_size(Sun_size)/**3*/) // size*3 - tmp // Sun - 99.86% Solar system mass { planets_count = 11; planets = new planet*[planets_count]; planets[0] = new Mercury(o_b,this); planets[1] = new Venus(o_b,this); planets[2] = new Earth(o_b,this); planets[3] = new Mars(o_b,this); planets[4] = new Jupiter(o_b,this); planets[5] = new Saturn(o_b,this); planets[6] = (planet*)new Saturn_ring(o_b,this); // tmp solution 12.09.2015 planets[7] = new Uranus(o_b,this); planets[8] = new Neptune(o_b,this); planets[9] = new Uranus(o_b,this); planets[10] = new Pluto(o_b,this); } }; #endif // SOLAR_H
[ "avolkovs@verizon.net" ]
avolkovs@verizon.net
61c07bd91504340a3e60c85f81b3923ce8af4ac8
dc7ba2a2eb5f6eb721074e25dbf16b5e15a3b298
/src/cosima/src/MCCrossSections.cc
4a0688e5699fc4d71c9b9b5ca201c02ce9db454e
[]
no_license
markbandstra/megalib
094fc75debe3cff24a79ba8c3485180c92d70858
078f4d23813d8185a75414e1cdb2099d73f17a65
refs/heads/master
2021-01-17T08:34:07.177308
2013-11-15T22:17:10
2013-11-15T22:17:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
8,014
cc
/* * MCCrossSections.cxx * * * Copyright (C) by Andreas Zoglauer. * All rights reserved. * * * This code implementation is the intellectual property of * Andreas Zoglauer. * * By copying, distributing or modifying the Program (or any work * based on the Program) you indicate your acceptance of this statement, * and all its terms. * */ // Cosima: #include "MCCrossSections.hh" #include "MCRunManager.hh" #include "MCDetectorConstruction.hh" // MEGAlib: #include "MGlobal.h" #include "MStreams.h" // Geant4: #include "G4CrossSectionHandler.hh" #include "G4Material.hh" #include "G4MaterialTable.hh" #include "G4Version.hh" // ROOT: #include "TSystem.h" // Standard lib: #include <fstream> #include <iostream> #include <iomanip> using namespace std; /****************************************************************************** * Not yet implemented */ MCCrossSections::MCCrossSections() { // Intentionally left blank } /****************************************************************************** * Not yet implemented */ MCCrossSections::~MCCrossSections() { // Intentionally left blank } /****************************************************************************** * Not yet implemented */ bool MCCrossSections::CreateCrossSectionFiles(MString Path) { // Intentionally left blank // Make sure the path exists gSystem->mkdir(Path, true); G4CrossSectionHandler* CrossSectionHandlerPhoto = new G4CrossSectionHandler; CrossSectionHandlerPhoto->Clear(); CrossSectionHandlerPhoto->LoadData("phot/pe-cs-"); G4CrossSectionHandler* CrossSectionHandlerRayleigh = new G4CrossSectionHandler; CrossSectionHandlerRayleigh->Clear(); CrossSectionHandlerRayleigh->LoadData("rayl/re-cs-"); G4CrossSectionHandler* CrossSectionHandlerCompton = new G4CrossSectionHandler; CrossSectionHandlerCompton->Clear(); CrossSectionHandlerCompton->LoadData("comp/ce-cs-"); G4CrossSectionHandler* CrossSectionHandlerPair = new G4CrossSectionHandler; CrossSectionHandlerPair->Clear(); CrossSectionHandlerPair->LoadData("pair/pp-cs-"); // Loop over all materials and write the cross-section files double eMin = 1*keV; double eMax = 100*GeV; double eBins = 400; eMin = log(eMin); eMax = log(eMax); double eDist = (eMax-eMin)/eBins; MString File; const G4MaterialTable* Table = G4Material::GetMaterialTable(); //const G4ProductionCutsTable* Table = G4ProductionCutsTable::GetProductionCutsTable(); for (unsigned int m = 0; m < Table->size(); ++m) { //const G4Material* M = Table->GetMaterialCutsCouple(m)->GetMaterial(); const G4Material* M = Table->at(m); unsigned long Hash = MCRunManager::GetMCRunManager()->GetDetectorConstruction()->GetMaterialHash(M); ofstream out; out.setf(ios_base::fixed, ios_base::floatfield); out.precision(6); File = Path + "/Xsection.Photo." + M->GetName().c_str() + ".rsp"; out.open(File); if (out.is_open() == true) { out<<"# Macroscopic cross section for Photo absorption"<<endl; out<<"# Derived from Geant4 version "<<G4VERSION_NUMBER<<endl; out<<"# X: Energy in keV"<<endl; out<<"# Y: Macroscopic cross section in 1/cm"<<endl; out<<endl; out<<"Type ResponseMatrixO1"<<endl; out<<"Version 1"<<endl; out<<endl; out<<"NM Photo absorption cross section for "<<M->GetName()<<endl; out<<"CE false"<<endl; out<<"HA "<<Hash<<endl; out<<endl; for (int e = 0; e <= eBins; ++e) { out<<"R1 " <<fixed<<setw(16)<<exp(eMin+e*eDist)/keV<<" " <<scientific<<CrossSectionHandlerPhoto->ValueForMaterial(M, exp(eMin+e*eDist))/(1/cm)<<endl; } out<<endl; } else { merr<<"Unable to open file: "<<File<<endl; } out.close(); File = Path + "/Xsection.Rayleigh." + M->GetName().c_str() + ".rsp"; out.open(File); if (out.is_open() == true) { out<<"# Macroscopic cross section for Rayleigh scattering"<<endl; out<<"# Derived from Geant4 version "<<G4VERSION_NUMBER<<endl; out<<"# X: Energy in keV"<<endl; out<<"# Y: Macroscopic cross section in 1/cm"<<endl; out<<endl; out<<"Type ResponseMatrixO1"<<endl; out<<"Version 1"<<endl; out<<endl; out<<"NM Rayleigh scattering cross section for "<<M->GetName()<<endl; out<<"CE false"<<endl; out<<"HA "<<Hash<<endl; out<<endl; for (int e = 0; e <= eBins; ++e) { out<<"R1 " <<fixed<<setw(16)<<exp(eMin+e*eDist)/keV<<" " <<scientific<<CrossSectionHandlerRayleigh->ValueForMaterial(M, exp(eMin+e*eDist))/(1/cm)<<endl; } out<<endl; } else { merr<<"Unable to open file: "<<File<<endl; } out.close(); File = Path + "/Xsection.Compton." + M->GetName().c_str() + ".rsp"; out.open(File); if (out.is_open() == true) { out<<"# Macroscopic cross section for Compton scattering"<<endl; out<<"# Derived from Geant4 version "<<G4VERSION_NUMBER<<endl; out<<"# X: Energy in keV"<<endl; out<<"# Y: Macroscopic cross section in 1/cm"<<endl; out<<endl; out<<"Type ResponseMatrixO1"<<endl; out<<"Version 1"<<endl; out<<endl; out<<"NM Compton scattering cross section for "<<M->GetName()<<endl; out<<"CE false"<<endl; out<<"HA "<<Hash<<endl; out<<endl; for (int e = 0; e <= eBins; ++e) { out<<"R1 " <<fixed<<setw(16)<<exp(eMin+e*eDist)/keV<<" " <<scientific<<CrossSectionHandlerCompton->ValueForMaterial(M, exp(eMin+e*eDist))/(1/cm)<<endl; } out<<endl; } else { merr<<"Unable to open file: "<<File<<endl; } out.close(); File = Path + "/Xsection.Pair." + M->GetName().c_str() + ".rsp"; out.open(File); if (out.is_open() == true) { out<<"# Macroscopic cross section for pair creation"<<endl; out<<"# Derived from Geant4 version "<<G4VERSION_NUMBER<<endl; out<<"# X: Energy in keV"<<endl; out<<"# Y: Macroscopic cross section in 1/cm"<<endl; out<<endl; out<<"Type ResponseMatrixO1"<<endl; out<<"Version 1"<<endl; out<<endl; out<<"NM Pair creation cross section for "<<M->GetName()<<endl; out<<"CE false"<<endl; out<<"HA "<<Hash<<endl; out<<endl; for (int e = 0; e <= eBins; ++e) { out<<"R1 " <<fixed<<setw(16)<<exp(eMin+e*eDist)/keV<<" " <<scientific<<CrossSectionHandlerPair->ValueForMaterial(M, exp(eMin+e*eDist))/(1/cm)<<endl; } out<<endl; } else { merr<<"Unable to open file: "<<File<<endl; } out.close(); File = Path + "/Xsection.Total." + M->GetName().c_str() + ".rsp"; out.open(File); if (out.is_open() == true) { out<<"# Macroscopic cross section (total)"<<endl; out<<"# Derived from Geant4 version "<<G4VERSION_NUMBER<<endl; out<<"# X: Energy in keV"<<endl; out<<"# Y: Macroscopic cross section in 1/cm"<<endl; out<<endl; out<<"Type ResponseMatrixO1"<<endl; out<<"Version 1"<<endl; out<<endl; out<<"NM Total cross section for "<<M->GetName()<<endl; out<<"CE false"<<endl; out<<"HA "<<Hash<<endl; out<<endl; for (int e = 0; e <= eBins; ++e) { out<<"R1 " <<fixed<<setw(16)<<exp(eMin+e*eDist)/keV<<" " <<scientific<<(CrossSectionHandlerPhoto->ValueForMaterial(M, exp(eMin+e*eDist)) + CrossSectionHandlerRayleigh->ValueForMaterial(M, exp(eMin+e*eDist)) + CrossSectionHandlerCompton->ValueForMaterial(M, exp(eMin+e*eDist)) + CrossSectionHandlerPair->ValueForMaterial(M, exp(eMin+e*eDist)))/(1/cm)<<endl; } out<<endl; } else { merr<<"Unable to open file: "<<File<<endl; } out.close(); } return true; } /* * MCCrossSections.cc: the end... ******************************************************************************/
[ "andreas@megalibtoolkit.com" ]
andreas@megalibtoolkit.com
6a4c8e1d644e749d9350b6734274b10913c428d9
3411ad233c411c06765f4b07f8670c12025178b6
/401-500/411-420/419-battleshipOnBoard/battleshipOnBoard.cpp
6e17f10af6f1cb20bb4fa0c5692384a35d59b408
[ "MIT" ]
permissive
xuychen/Leetcode
7d9d31fed898ce58440f5ae6665d2ccaf1a4b256
c8bf33af30569177c5276ffcd72a8d93ba4c402a
refs/heads/master
2021-11-19T20:39:43.741589
2021-10-24T16:26:52
2021-10-24T16:26:52
140,212,398
0
0
null
null
null
null
UTF-8
C++
false
false
1,570
cpp
#include <vector> using namespace std; class Solution { public: int countBattleships(vector<vector<char>>& board) { int result = 0; for (int i = 0; i < board.size(); ++i) for (int j = 0; j < board[i].size(); ++j) { if (board[i][j] != 'X') continue; int result1 = checkDownward(board, i, j); int result2 = checkRightward(board, i, j); if ((result1 == 2 || result2 == 2) && (result1 == 1 && result2 == 1)) return 0; else ++result; } return result; } int checkDownward(vector<vector<char>> &board, int i, int j){ int newi = i + 1; for (; newi < board.size(); ++newi) if (board[newi][j] == 'X' && (j == 0 || board[newi][j-1] != 'X') && (j == board[newi].size() - 1 || board[newi][j+1] != 'X')) board[newi][j] = 'x'; else if (board[newi][j] != 'X') break; else return 2; return newi != i + 1; } int checkRightward(vector<vector<char>> &board, int i, int j){ int newj = j + 1; for (; newj < board[i].size(); ++newj) if (board[i][newj] == 'X' && (i == 0 || board[i-1][newj] != 'X') && (i == board.size() - 1 || board[i+1][newj] != 'X')) board[i][newj] = 'x'; else if (board[i][newj] != 'X') break; else return 2; return newj != j + 1; } };
[ "xuychen@ucdavis.edu" ]
xuychen@ucdavis.edu
5cc63cd38966650654d62d396d1748bb0325e72a
a6cabe4236778f411d9a850d2435a2a24e87de85
/MameBake3DLib/BTSRC/BulletCollision/CollisionShapes/btTriangleIndexVertexArray.cpp
d4b1f9a3e72a924cc7474bbfc7e8002cacef4bfa
[]
no_license
lvjunsetup/MameBake3D
27e447246467e39dc49ae96109a5706359c39c62
af5e869e8a204aa356f0b061f31ed03fbccb74f3
refs/heads/master
2021-09-29T01:44:08.612094
2018-11-22T13:24:05
2018-11-22T13:24:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,369
cpp
#include "stdafx.h" /* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #include "btTriangleIndexVertexArray.h" btTriangleIndexVertexArray::btTriangleIndexVertexArray(int numTriangles,int* triangleIndexBase,int triangleIndexStride,int numVertices,btScalar* vertexBase,int vertexStride) : m_hasAabb(0) { btIndexedMesh mesh; mesh.m_numTriangles = numTriangles; mesh.m_triangleIndexBase = (const unsigned char *)triangleIndexBase; mesh.m_triangleIndexStride = triangleIndexStride; mesh.m_numVertices = numVertices; mesh.m_vertexBase = (const unsigned char *)vertexBase; mesh.m_vertexStride = vertexStride; addIndexedMesh(mesh); } btTriangleIndexVertexArray::~btTriangleIndexVertexArray() { } void btTriangleIndexVertexArray::getLockedVertexIndexBase(unsigned char **vertexbase, int& numverts,PHY_ScalarType& type, int& vertexStride,unsigned char **indexbase,int & indexstride,int& numfaces,PHY_ScalarType& indicestype,int subpart) { btAssert(subpart< getNumSubParts() ); btIndexedMesh& mesh = m_indexedMeshes[subpart]; numverts = mesh.m_numVertices; (*vertexbase) = (unsigned char *) mesh.m_vertexBase; type = mesh.m_vertexType; vertexStride = mesh.m_vertexStride; numfaces = mesh.m_numTriangles; (*indexbase) = (unsigned char *)mesh.m_triangleIndexBase; indexstride = mesh.m_triangleIndexStride; indicestype = mesh.m_indexType; } void btTriangleIndexVertexArray::getLockedReadOnlyVertexIndexBase(const unsigned char **vertexbase, int& numverts,PHY_ScalarType& type, int& vertexStride,const unsigned char **indexbase,int & indexstride,int& numfaces,PHY_ScalarType& indicestype,int subpart) const { const btIndexedMesh& mesh = m_indexedMeshes[subpart]; numverts = mesh.m_numVertices; (*vertexbase) = (const unsigned char *)mesh.m_vertexBase; type = mesh.m_vertexType; vertexStride = mesh.m_vertexStride; numfaces = mesh.m_numTriangles; (*indexbase) = (const unsigned char *)mesh.m_triangleIndexBase; indexstride = mesh.m_triangleIndexStride; indicestype = mesh.m_indexType; } bool btTriangleIndexVertexArray::hasPremadeAabb() const { return (m_hasAabb == 1); } void btTriangleIndexVertexArray::setPremadeAabb(const btVector3& aabbMin, const btVector3& aabbMax ) const { m_aabbMin = aabbMin; m_aabbMax = aabbMax; m_hasAabb = 1; // this is intentionally an int see notes in header } void btTriangleIndexVertexArray::getPremadeAabb(btVector3* aabbMin, btVector3* aabbMax ) const { *aabbMin = m_aabbMin; *aabbMax = m_aabbMax; }
[ "info@ochakkolab.moo.jp" ]
info@ochakkolab.moo.jp
314d39579142fef2276eadb1f240cc1bc33c4118
da3215baf37d257d5814f165e98b4b19dee9cb05
/SDK/FN_QuestTrackerSubEntry_classes.hpp
70dafc46650795af185c7d18bafbdde93a567aa3
[]
no_license
Griizz/Fortnite-Hack
d37a6eea3502bf1b7c78be26a2206c8bc70f6fa5
5b80d585065372a4fb57839b8022dc522fe4110b
refs/heads/Griizz_Version
2022-04-01T22:10:36.081573
2019-05-21T19:28:30
2019-05-21T19:28:30
106,034,464
115
85
null
2020-02-06T04:00:07
2017-10-06T17:55:47
C++
UTF-8
C++
false
false
8,426
hpp
#pragma once // Fortnite SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // WidgetBlueprintGeneratedClass QuestTrackerSubEntry.QuestTrackerSubEntry_C // 0x0170 (0x03E8 - 0x0278) class UQuestTrackerSubEntry_C : public UFortQuestTrackerSubEntry { public: struct FPointerToUberGraphFrame UberGraphFrame; // 0x0278(0x0008) (CPF_Transient, CPF_DuplicateTransient) class UWidgetAnimation* CheckmarkAnimation; // 0x0280(0x0008) (CPF_BlueprintVisible, CPF_ExportObject, CPF_BlueprintReadOnly, CPF_ZeroConstructor, CPF_InstancedReference, CPF_IsPlainOldData, CPF_RepSkip, CPF_RepNotify, CPF_Interp, CPF_NonTransactional, CPF_EditorOnly, CPF_NoDestructor, CPF_AutoWeak, CPF_ContainsInstancedReference, CPF_AssetRegistrySearchable, CPF_SimpleDisplay, CPF_AdvancedDisplay, CPF_Protected, CPF_BlueprintCallable, CPF_BlueprintAuthorityOnly, CPF_TextExportTransient, CPF_NonPIEDuplicateTransient, CPF_ExposeOnSpawn, CPF_PersistentInstance, CPF_UObjectWrapper, CPF_HasGetValueTypeHash, CPF_NativeAccessSpecifierPublic, CPF_NativeAccessSpecifierProtected, CPF_NativeAccessSpecifierPrivate) class UWidgetAnimation* CompletionRemove; // 0x0288(0x0008) (CPF_BlueprintVisible, CPF_ExportObject, CPF_BlueprintReadOnly, CPF_ZeroConstructor, CPF_InstancedReference, CPF_IsPlainOldData, CPF_RepSkip, CPF_RepNotify, CPF_Interp, CPF_NonTransactional, CPF_EditorOnly, CPF_NoDestructor, CPF_AutoWeak, CPF_ContainsInstancedReference, CPF_AssetRegistrySearchable, CPF_SimpleDisplay, CPF_AdvancedDisplay, CPF_Protected, CPF_BlueprintCallable, CPF_BlueprintAuthorityOnly, CPF_TextExportTransient, CPF_NonPIEDuplicateTransient, CPF_ExposeOnSpawn, CPF_PersistentInstance, CPF_UObjectWrapper, CPF_HasGetValueTypeHash, CPF_NativeAccessSpecifierPublic, CPF_NativeAccessSpecifierProtected, CPF_NativeAccessSpecifierPrivate) class UWidgetAnimation* CompletionFlash; // 0x0290(0x0008) (CPF_BlueprintVisible, CPF_ExportObject, CPF_BlueprintReadOnly, CPF_ZeroConstructor, CPF_InstancedReference, CPF_IsPlainOldData, CPF_RepSkip, CPF_RepNotify, CPF_Interp, CPF_NonTransactional, CPF_EditorOnly, CPF_NoDestructor, CPF_AutoWeak, CPF_ContainsInstancedReference, CPF_AssetRegistrySearchable, CPF_SimpleDisplay, CPF_AdvancedDisplay, CPF_Protected, CPF_BlueprintCallable, CPF_BlueprintAuthorityOnly, CPF_TextExportTransient, CPF_NonPIEDuplicateTransient, CPF_ExposeOnSpawn, CPF_PersistentInstance, CPF_UObjectWrapper, CPF_HasGetValueTypeHash, CPF_NativeAccessSpecifierPublic, CPF_NativeAccessSpecifierProtected, CPF_NativeAccessSpecifierPrivate) class UImage* Bullet; // 0x0298(0x0008) (CPF_BlueprintVisible, CPF_ExportObject, CPF_ZeroConstructor, CPF_InstancedReference, CPF_IsPlainOldData, CPF_RepSkip, CPF_RepNotify, CPF_Interp, CPF_NonTransactional, CPF_EditorOnly, CPF_NoDestructor, CPF_AutoWeak, CPF_ContainsInstancedReference, CPF_AssetRegistrySearchable, CPF_SimpleDisplay, CPF_AdvancedDisplay, CPF_Protected, CPF_BlueprintCallable, CPF_BlueprintAuthorityOnly, CPF_TextExportTransient, CPF_NonPIEDuplicateTransient, CPF_ExposeOnSpawn, CPF_PersistentInstance, CPF_UObjectWrapper, CPF_HasGetValueTypeHash, CPF_NativeAccessSpecifierPublic, CPF_NativeAccessSpecifierProtected, CPF_NativeAccessSpecifierPrivate) class UOverlay* BulletOverlay; // 0x02A0(0x0008) (CPF_BlueprintVisible, CPF_ExportObject, CPF_ZeroConstructor, CPF_InstancedReference, CPF_IsPlainOldData, CPF_RepSkip, CPF_RepNotify, CPF_Interp, CPF_NonTransactional, CPF_EditorOnly, CPF_NoDestructor, CPF_AutoWeak, CPF_ContainsInstancedReference, CPF_AssetRegistrySearchable, CPF_SimpleDisplay, CPF_AdvancedDisplay, CPF_Protected, CPF_BlueprintCallable, CPF_BlueprintAuthorityOnly, CPF_TextExportTransient, CPF_NonPIEDuplicateTransient, CPF_ExposeOnSpawn, CPF_PersistentInstance, CPF_UObjectWrapper, CPF_HasGetValueTypeHash, CPF_NativeAccessSpecifierPublic, CPF_NativeAccessSpecifierProtected, CPF_NativeAccessSpecifierPrivate) class UImage* Checkmark; // 0x02A8(0x0008) (CPF_BlueprintVisible, CPF_ExportObject, CPF_ZeroConstructor, CPF_InstancedReference, CPF_IsPlainOldData, CPF_RepSkip, CPF_RepNotify, CPF_Interp, CPF_NonTransactional, CPF_EditorOnly, CPF_NoDestructor, CPF_AutoWeak, CPF_ContainsInstancedReference, CPF_AssetRegistrySearchable, CPF_SimpleDisplay, CPF_AdvancedDisplay, CPF_Protected, CPF_BlueprintCallable, CPF_BlueprintAuthorityOnly, CPF_TextExportTransient, CPF_NonPIEDuplicateTransient, CPF_ExposeOnSpawn, CPF_PersistentInstance, CPF_UObjectWrapper, CPF_HasGetValueTypeHash, CPF_NativeAccessSpecifierPublic, CPF_NativeAccessSpecifierProtected, CPF_NativeAccessSpecifierPrivate) class UImage* FlashImage; // 0x02B0(0x0008) (CPF_BlueprintVisible, CPF_ExportObject, CPF_ZeroConstructor, CPF_InstancedReference, CPF_IsPlainOldData, CPF_RepSkip, CPF_RepNotify, CPF_Interp, CPF_NonTransactional, CPF_EditorOnly, CPF_NoDestructor, CPF_AutoWeak, CPF_ContainsInstancedReference, CPF_AssetRegistrySearchable, CPF_SimpleDisplay, CPF_AdvancedDisplay, CPF_Protected, CPF_BlueprintCallable, CPF_BlueprintAuthorityOnly, CPF_TextExportTransient, CPF_NonPIEDuplicateTransient, CPF_ExposeOnSpawn, CPF_PersistentInstance, CPF_UObjectWrapper, CPF_HasGetValueTypeHash, CPF_NativeAccessSpecifierPublic, CPF_NativeAccessSpecifierProtected, CPF_NativeAccessSpecifierPrivate) class UCommonTextBlock* ObjectiveDescriptionText; // 0x02B8(0x0008) (CPF_BlueprintVisible, CPF_ExportObject, CPF_ZeroConstructor, CPF_InstancedReference, CPF_IsPlainOldData, CPF_RepSkip, CPF_RepNotify, CPF_Interp, CPF_NonTransactional, CPF_EditorOnly, CPF_NoDestructor, CPF_AutoWeak, CPF_ContainsInstancedReference, CPF_AssetRegistrySearchable, CPF_SimpleDisplay, CPF_AdvancedDisplay, CPF_Protected, CPF_BlueprintCallable, CPF_BlueprintAuthorityOnly, CPF_TextExportTransient, CPF_NonPIEDuplicateTransient, CPF_ExposeOnSpawn, CPF_PersistentInstance, CPF_UObjectWrapper, CPF_HasGetValueTypeHash, CPF_NativeAccessSpecifierPublic, CPF_NativeAccessSpecifierProtected, CPF_NativeAccessSpecifierPrivate) class UImage* Pin; // 0x02C0(0x0008) (CPF_BlueprintVisible, CPF_ExportObject, CPF_ZeroConstructor, CPF_InstancedReference, CPF_IsPlainOldData, CPF_RepSkip, CPF_RepNotify, CPF_Interp, CPF_NonTransactional, CPF_EditorOnly, CPF_NoDestructor, CPF_AutoWeak, CPF_ContainsInstancedReference, CPF_AssetRegistrySearchable, CPF_SimpleDisplay, CPF_AdvancedDisplay, CPF_Protected, CPF_BlueprintCallable, CPF_BlueprintAuthorityOnly, CPF_TextExportTransient, CPF_NonPIEDuplicateTransient, CPF_ExposeOnSpawn, CPF_PersistentInstance, CPF_UObjectWrapper, CPF_HasGetValueTypeHash, CPF_NativeAccessSpecifierPublic, CPF_NativeAccessSpecifierProtected, CPF_NativeAccessSpecifierPrivate) struct FSlateBrush NonHUDBullet; // 0x02C8(0x0090) (CPF_Edit, CPF_BlueprintVisible, CPF_DisableEditOnInstance) struct FSlateBrush NonHUDPin; // 0x0358(0x0090) (CPF_Edit, CPF_BlueprintVisible, CPF_DisableEditOnInstance) static UClass* StaticClass() { static auto ptr = UObject::FindClass("WidgetBlueprintGeneratedClass QuestTrackerSubEntry.QuestTrackerSubEntry_C"); return ptr; } float GetHeightEstimate(); void HandleRemoveFinished(); void HideIfEmpty(); void UpdateObjectiveText(); void Construct(); void OnQuestsUpdated(); void OnPlayObjectiveCompletedAnimation(); void OnCompletionFlashFInished(); void PostCompletionDelay(); void OnSetup(); void ExecuteUbergraph_QuestTrackerSubEntry(int EntryPoint); }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "sinbadhacks@gmail.com" ]
sinbadhacks@gmail.com
b3b55d8f9d06be2246317c03c9d6fdf05116a6f2
501510d8594d543a05f2da209c9870ec3f649cfa
/Level5/Level3.5_Ex3_Polymorphism_Virtual-Destructors/Point.cpp
5156a82b2644303422135c05c2098d7a1fa488e0
[]
no_license
turbopro/CppFEjune2019
5d21b2410bff856ffd8b3f46502a8113a3373c27
1ec1cfc2b5d1692d234175d71255c49bb7a65396
refs/heads/master
2021-07-10T23:40:14.596541
2020-08-30T19:00:25
2020-08-30T19:00:25
189,928,583
1
0
null
null
null
null
WINDOWS-1258
C++
false
false
3,432
cpp
/* Point.cpp Level3.5_Ex3: Polymorphism: Virtual Destructors Source file that implements the Point class declared in the Point.h header file. constructor uses the colon initialiser default constructor also uses the colon initlaiser copy constructor same as above destructor is also verbose All Getter/Setter functions have been inlined within Point.h The ToString() function converts the double values of the data members to strings We use a std::stringstream object, and the standard stream operators (as with iostream) to create the string. This requires the “sstream” header file. We also use the str() function to retrieve the string from the string buffer. The return format for ToString(): “Point(1.5, 3.9)” The overloaded Distance() function makes use of the Pythagoras theorem to calculate the distance between the point and the origin, and, the distance between two points the Point class is part of the Turbopro::CAD namespace */ #include <iostream> #include <sstream> // for std::ostringstream() function in ToString() member function #include <string> // for std::string() function in ToString() member function #include <cmath> // for std::sqrt() function in Distance() #include "Point.h" // Point class declaration namespace Turbopro { namespace CAD { // constructor using colon syntax initialiser Point::Point(double x_coord, double y_coord) : Shape{}, m_x{ x_coord }, m_y{ y_coord } { //std::cout << "POINT: param constructor\n"; } // single argument constructor using colon syntax initialiser // this constructor is used as an implicit conversion operator Point::Point(double uni_coord) : Shape{}, m_x{ uni_coord }, m_y{ uni_coord } {} // default constructor Point::Point() : Shape{}, m_x { 0 }, m_y{ 0 } {} // copy constructor Point::Point(const Point& Other) : Shape{ Other } , m_x { Other.m_x }, m_y{ Other.m_y } {} // Destructor Point::~Point() { std::cout << "Deleting: " << this->ToString() << " ..." << std::endl; } // ToString() std::string Point::ToString() const { // get string representation of base Shape object std::string s = Shape::ToString(); // create stream objects for conversion of data members std::ostringstream m_x_conv, m_y_conv; m_x_conv << m_x; m_y_conv << m_y; // get str values for data members std::string str_m_x = m_x_conv.str(); std::string str_m_y = m_y_conv.str(); // return string with format: "Point(x, y)" return ("Point" + s + " => Point(" + str_m_x + ", " + str_m_y + ")"); } // Distance() point from origin double Point::Distance() const { return std::sqrt(m_x * m_x + m_y * m_y); } // Distance() between two points double Point::Distance(const Point& Other) const { return std::sqrt((Other.m_x - m_x) * (Other.m_x - m_x) + (Other.m_y - m_y) * (Other.m_y - m_y)); } // assignment operator: check for self assignment Point& Point::operator=(const Point& Other) { if (this == &Other) { return *this; } else { Shape::operator=(Other); m_x = Other.m_x; m_y = Other.m_y; return *this; } } // scale the point by factor n, and assign Point& Point::operator*=(double n) { m_x *= n; m_y *= n; return *this; } // overloaded ostream operator << std::ostream& operator<<(std::ostream& os, const Point& p) { return os << "Point(" << p.m_x << ", " << p.m_y << ")"; } } }
[ "dantepoe@gmail.com" ]
dantepoe@gmail.com
53c7fabc1ed39b6ee0a3856b4fe88f73aa0f211d
9925002b8dc98f503535890a63171192e4405f06
/720. Longest Word in Dictionary.cpp
8fdabad0199e196fbc5adfcae0254011860b37b8
[]
no_license
trangnmnguyen/Leetcode
2816230d9aaf693e93dad08514006264e0fe46b9
188fbca559615cb52015dd62344ca5259552fa7f
refs/heads/master
2020-03-22T04:20:46.150120
2018-10-09T02:27:17
2018-10-09T02:27:17
139,491,628
0
0
null
null
null
null
UTF-8
C++
false
false
1,326
cpp
#include <iostream> #include <cstdlib> #include <vector> #include <algorithm> using namespace std; vector<string>words; struct trieNode { struct trieNode *children[26]; vector<int>occurence; } void addTrie(stuct trieNode *trietree, string word, int index) { struct trieNode *root = trietree; for(int i = 0; i < word.sizes(); i++) { if(!trietree->children[word[i] - 'a']) { trietree->children[word[i] - 'a'] = (struct trieNode*)malloc(sizeof(struct trieNode)); } root = trietree->children[word[i] - 'a']; } root->occurence.push_back(index) } string longestWord(struct trieNode *trietree, vector<string>words) { int longest_word = 0; string longest_word_string; struct trieNode *root = trietree; for(int i = 0; i < words.size(); i++) { int count = 0; for(int j = 0; j < words[i].size(); j++) { if(!root[words[i][j] - 'a']->occurence.empty) { count += 1; } } if(count > longest_word) { longest_word = count; longest_word_string = words[i]; } } return longest_word_string; } int main () { int n; cin>>n; string word; struct trieNode *trietree = (struct trieNode*)malloc(sizeof(struct trieNode)); for(int i = 0; i < n; i++) { cin>>word; words.push_back(word); addTrie(trietree, word, i); } string x = longestWord(trietree, words); cout<<x<<endl; return 0; }
[ "trangnmnguyen@gmail.com" ]
trangnmnguyen@gmail.com
e75864b59f262370c1f86e115184c1badec9ac1c
0cd648478fbca2085d4be739caf9cbf0a57ab70c
/14-operator_reload_type_transform/14.43-function_objects.cpp
ff35803625a986ca7b6b4ed780ca1d2184320aca
[]
no_license
icrelae/cpp_primer
f3fb497b96736f944701aecc25dd182f1e8cd73d
1ed1fef52356626440ca354fada0b673fce67465
refs/heads/master
2021-01-12T07:29:15.036680
2017-11-17T22:47:39
2017-11-17T22:47:39
76,966,712
0
0
null
null
null
null
UTF-8
C++
false
false
400
cpp
/* 2017.02.14 22:52 * P_510 */ #include <iostream> #include <string> #include <vector> using namespace std; int main(int argc, char **argv) { vector<int> vecInt{1, 2, 3, 4, 5}; modulus<int> mod; for (auto x : vecInt) { if (mod(x, 2) != 0) cout << x << " no" << endl; else cout << x << " yes" << endl; } /* output: * 1 no * 2 yes * 3 no * 4 yes * 5 no */ return 0; }
[ "icrelae@gmail.com" ]
icrelae@gmail.com
763c53ec6958997e02478cb48585cf2f22d0053a
227522ea27cb8549f8d021441976644c4c53d735
/a8/printer.h
cec24af7d53e6be928f0a39abf666428154ab1aa
[]
no_license
gulcebasar/cs240-Data-Structures-and-Algorithms
e10a59893dd492096ec8f9cd19cb37f62f996284
8630f0672ef4e31f6a676d6c64d370fa5640e19a
refs/heads/master
2021-01-10T10:59:52.245672
2015-12-14T05:37:45
2015-12-14T05:37:45
47,953,411
0
0
null
null
null
null
UTF-8
C++
false
false
640
h
#ifndef PRINTER #define PRINTER #include"pqueue.h" #include"job.h" class Printer { public: Printer(); // default constructor of printer // sets done jobs to 0 void addJob(Job& j); // Adds a job to the waiting list int print(); // a function to use the printer bool busy(); // returns if printer is busy or not int waitTime(); // returns the waiting time of printer int getCurJobNum(); // Gets the number of current job int getJobDone(); // gets the number of done jobs private: int jobsDone; Job curJob; P_Queue waiting; }; #endif
[ "Gulce@Gulces-MacBook-Pro.local" ]
Gulce@Gulces-MacBook-Pro.local
5992cf88591437d0cb78b1b3a49a61075d684fea
3326db8648ecd23fabebbdece3a0db662b409664
/At Coder/Regular 098/C.cpp
407479a641ef072018c7021e528182a86145a8af
[]
no_license
fazlerahmanejazi/Competitive-Programming
96b9e934a72a978a9cae69ae50dd02ee84b6ca87
796021cdc7196d84976ee7c9e565c9e7feefce09
refs/heads/master
2021-11-10T08:23:31.128762
2019-12-24T22:11:12
2019-12-24T22:11:12
117,171,389
3
1
null
2021-10-30T20:31:10
2018-01-12T00:39:16
C++
UTF-8
C++
false
false
948
cpp
#include <bits/stdc++.h> using namespace std ; #define inf 0x3f3f3f3f #define INF 1000111000111000111LL #define mod 1000000007 #define pi acos(-1.0) #define eps 1e-8 #define endl '\n' #define mp make_pair #define mt make_tuple #define pb push_back #define fi first #define se second #define all(cc) (cc).begin(),(cc).end() using lli = long long int ; using pii = pair<int, int> ; using vi = vector<int> ; using vb = vector<bool> ; using vvi = vector<vector<int>> ; using vlli = vector<long long int> ; using vpii = vector<pair<int, int>> ; int main() { ios_base::sync_with_stdio (false) ; cin.tie(0) ; cout.tie(0) ; int n, ans=inf ; string s ; cin>> n >> s ; s='#'+s ; vi cntW(n+1, 0), cntE(n+1, 0) ; for(int i=1 ; i<=n ; i++) { cntW[i]=cntW[i-1]+(s[i]=='W') ; cntE[i]=cntE[i-1]+(s[i]=='E') ; } for(int i=1 ; i<=n ; i++) ans=min(ans, cntW[i-1]+cntE[n]-cntE[i]) ; cout<< ans ; }
[ "ahmed.belal98@gmail.com" ]
ahmed.belal98@gmail.com
73f5a021f43460b5ace678f6d86e388a7c60dcaa
2b282386423962fcfc3e3e3ed597a46e6ba9986a
/Week5/simple-indirection.cc
02fa3f1a8618e46f29e4f60361cb86463edbc8c1
[]
no_license
smithj163/CSCI208-Examples
6956186123c42a5f1f411cebb9e3c27c82cd0468
8fdb7bafe000406dec064327d74be31e91bc464b
refs/heads/master
2023-08-24T18:13:37.388802
2021-11-01T15:23:17
2021-11-01T15:23:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,524
cc
// Simple example of indirect access into an array. // This program performs a kind of shell game: It reads // in a set of strings and priorities to populate an // array of records. Then it *sorts* that array without // every moving any record at all ... through the magic // of *indirection* ... // // R. Paul Wiegand #include<iostream> #include<fstream> #include<string> using namespace std; // Simple record structure to give us something to work with struct GroceryItem { string itemName; int priority; }; /** * Read the grocery list from a file. Each item has a name * string and an integery priority. Return the number of items * read. If there is any kind of a problem, just stop reading. * @param list Array of grocery items * @param index Array of index values into another array * @return the number of items read from the file **/ int ReadGroceryListFromFile(GroceryItem list[], int index[]) { // Try to open the grocery file list, exit if it doesn't open ifstream groceryListFile; groceryListFile.open("groceries.txt"); if (!groceryListFile.is_open()) { cout << "Error: Could not open groceries.txt" << endl; return(0); } // Read the list into each record. // This *strongly* assumes the file contains alternating // strings and integers int numGroceries = 0; bool done = false; while (!done && !groceryListFile.eof()) { // Read the string, int pair string itemName; int priority; groceryListFile >> itemName; groceryListFile >> priority; // If there's a problem, jump over it and clear the error and stop reading if (groceryListFile.fail()) done = true; // If there's not a problem, store the values and advance the counter. // Default our index list to be the natural order as we read. else { list[numGroceries].itemName = itemName; list[numGroceries].priority = priority; index[numGroceries] = numGroceries; numGroceries++; } } // end while return (numGroceries); } /** * This function prints the grocery item list values directly from the array. * @param list Array of grocery items * @param numGroceries The number of groceries stored in the list **/ void PrintUnorderedList(GroceryItem list[], int numGroceries) { // Print header cout << endl; cout << "Here is the unordered grocery list:" << endl; cout << "-----------------------------------" << endl; // Print each item followed by its priority // Here we use the index value to directly lookup the grocery item for (int idx=0; idx<numGroceries; idx++) cout << " " << list[idx].itemName << ", " << list[idx].priority << endl; } /** * This function prints the grocery item list values indirectly, based * on an index array * @param list Array of grocery items * @param index Array of index values into another array * @param numGroceries The number of groceries stored in the list **/ void PrintIndexedList(GroceryItem list[], int index[], int numGroceries) { // Print header cout << endl; cout << "Here is the INDEXED grocery list:" << endl; cout << "-----------------------------------" << endl; // Print each item followed by its priority // Here we use the index list to look up an index value // which we then use to lookup the grocery item for (int idx=0; idx<numGroceries; idx++) cout << " " << list[ index[idx] ].itemName << ", " << list[ index[idx] ].priority << "\t\tindex=" << index[idx] << endl; } /** * In this function, we re-order our list not by moving grocery items around, * but by moving the indices to the grocery items around ... * @param list Array of grocery items * @param index Array of index values into another array * @param numGroceries The number of groceries stored in the list **/ void OrderIndexListUsingInsertionSort(GroceryItem list[], int index[], int numGroceries) { // Go through each record, one at a time starting at the begining for (int idx=0; idx<numGroceries; idx++) { // Store the priority of the item we are looking at now int keyIndex = index[idx]; // Just store the *index* to the key item // Now let's compare the [idx-1 ... 0] items against the idx item // As long as the new item is better, shift it up by one in the list int jdx = idx - 1; while ( (jdx >= 0) && (list[index[jdx]].priority < list[keyIndex].priority) ) { index[jdx+1] = index[jdx]; // Just copy the *index* values jdx--; } // Make the next position the stored key record index[jdx+1] = keyIndex; // Just copy the *index* value } // When this is done, the groceryList is still in its exact order since // we never moved any grocery items directly. Instead, we moved the integers // in the index list around. } /** * This is the main of a program that reads in a grocery list with * priorities, then prints the original order of the list, and finally * prints the list sorted by priority. **/ int main() { GroceryItem groceryList[100]; int groceryIndex[100]; int numGroceries = 0; // Read the grocery list then sort it by priority numGroceries = ReadGroceryListFromFile(groceryList, groceryIndex); OrderIndexListUsingInsertionSort(groceryList, groceryIndex, numGroceries); // Print the direct list, then print the indexed list PrintUnorderedList(groceryList, numGroceries); PrintIndexedList(groceryList, groceryIndex, numGroceries); cout << endl; // Everything ran okey-dokey, so tell the OS we're good return 0; }
[ "rpwiegand@gmail.com" ]
rpwiegand@gmail.com
3189400c8fa54da916e4cd4aa6b6e91521858dd8
3f0d6dd07402a78dbffa8c89d46b35949fbabe57
/src/FrameWork/Math/PersistMath.hpp
fb5960fd9855320f87f024efb59a3c3af5c30ca1
[ "MIT" ]
permissive
kevin20x2/PersistEngine
9b70ebd8d9188e2d7e84c9c92db2940adc928605
eeb4e14840d53274aa51fca6ad69f6f44a4e61ab
refs/heads/master
2021-01-04T12:09:18.627489
2020-09-13T07:32:22
2020-09-13T07:32:22
240,540,969
0
0
null
null
null
null
UTF-8
C++
false
false
204
hpp
#pragma once //#include "Vectors.hpp" //#include "Matrix.hpp" namespace Persist { constexpr float PI = 3.141592653f; constexpr float Rad2Degree = 180.0f/ PI ; constexpr float Degree2Rad = PI/ 180.0f; }
[ "kevin20x2@gmail.com" ]
kevin20x2@gmail.com
14f9828eeeb9dafb3deb524b9958e7bab5e732e6
9080f2d6b6c232735e7dcbd5463523fa5042ba3d
/samples/torus_lighting/TorusLightingES2.cpp
492bcb35ad76f0e69f2bfd03616e0ae871ced37a
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
muonlineph/angle
296b1e8ef577469a778896236bd36e9b6c04a6d8
9184973fc1bea024dc564a45ad2b864ebc46d842
refs/heads/main
2023-08-05T08:31:18.894662
2021-07-21T14:28:30
2021-09-20T22:12:38
408,667,353
0
0
NOASSERTION
2021-09-21T02:45:24
2021-09-21T02:45:23
null
UTF-8
C++
false
false
3,774
cpp
// // Copyright 2021 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Based on CubeMapActivity.java from The Android Open Source Project ApiDemos // https://android.googlesource.com/platform/development/+/refs/heads/master/samples/ApiDemos/src/com/example/android/apis/graphics/CubeMapActivity.java #include "SampleApplication.h" #include "torus.h" #include "util/Matrix.h" #include "util/shader_utils.h" class GLES2TorusLightingSample : public SampleApplication { public: GLES2TorusLightingSample(int argc, char **argv) : SampleApplication("GLES2 Torus Lighting", argc, argv, 2, 0) {} bool initialize() override { constexpr char kVS[] = R"(uniform mat4 mv; uniform mat4 mvp; attribute vec4 position; attribute vec3 normal; varying vec3 normal_view; void main() { normal_view = vec3(mv * vec4(normal, 0.0)); gl_Position = mvp * position; })"; constexpr char kFS[] = R"(precision mediump float; varying vec3 normal_view; void main() { gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0) * dot(vec3(0.0, 0, 1.0), normalize(normal_view)); })"; mProgram = CompileProgram(kVS, kFS); if (!mProgram) { return false; } mPositionLoc = glGetAttribLocation(mProgram, "position"); mNormalLoc = glGetAttribLocation(mProgram, "normal"); mMVPMatrixLoc = glGetUniformLocation(mProgram, "mvp"); mMVMatrixLoc = glGetUniformLocation(mProgram, "mv"); glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glEnable(GL_DEPTH_TEST); GenerateTorus(&mVertexBuffer, &mIndexBuffer, &mIndexCount); return true; } void destroy() override { glDeleteProgram(mProgram); glDeleteBuffers(1, &mVertexBuffer); glDeleteBuffers(1, &mIndexBuffer); } void draw() override { glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glUseProgram(mProgram); float ratio = (float)getWindow()->getWidth() / (float)getWindow()->getHeight(); Matrix4 perspectiveMatrix = Matrix4::frustum(-ratio, ratio, -1, 1, 1.0f, 20.0f); Matrix4 modelMatrix = Matrix4::translate(angle::Vector3(0, 0, -5)) * Matrix4::rotate(mAngle, angle::Vector3(0.0f, 1.0f, 0.0f)) * Matrix4::rotate(mAngle * 0.25f, angle::Vector3(1.0f, 0.0f, 0.0f)); Matrix4 mvpMatrix = perspectiveMatrix * modelMatrix; glUniformMatrix4fv(mMVMatrixLoc, 1, GL_FALSE, modelMatrix.data); glUniformMatrix4fv(mMVPMatrixLoc, 1, GL_FALSE, mvpMatrix.data); glEnableVertexAttribArray(mPositionLoc); glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer); glVertexAttribPointer(mPositionLoc, 3, GL_FLOAT, false, 6 * sizeof(GLfloat), nullptr); glVertexAttribPointer(mNormalLoc, 3, GL_FLOAT, false, 6 * sizeof(GLfloat), reinterpret_cast<const void *>(3 * sizeof(GLfloat))); glEnableVertexAttribArray(mNormalLoc); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer); glDrawElements(GL_TRIANGLES, mIndexCount, GL_UNSIGNED_SHORT, 0); glBindBuffer(GL_ARRAY_BUFFER, 0); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); mAngle++; } private: GLuint mProgram; GLint mPositionLoc; GLint mNormalLoc; GLuint mMVPMatrixLoc; GLuint mMVMatrixLoc; GLuint mVertexBuffer; GLuint mIndexBuffer; GLsizei mIndexCount; float mAngle = 0; }; int main(int argc, char **argv) { GLES2TorusLightingSample app(argc, argv); return app.run(); }
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
bb84273b828c34a22569c8017493ca7416ffa823
36963414348f1550935a14402bee9b298d3de1ad
/applications/wtn6.h
b3b49839cce054ce8138b5c4f803f2201ee8875b
[]
no_license
imgcre/charge_station
cdf0d5ee79a0cc66e0c47a1b12b7cd364fac2f08
774d16666373647005844bf22bc74c19373f49f1
refs/heads/master
2023-01-05T02:29:32.069204
2020-11-02T18:48:29
2020-11-02T18:48:29
309,462,808
0
0
null
null
null
null
UTF-8
C++
false
false
1,370
h
/* * Copyright (c) 2006-2020, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-08-13 imgcr the first version */ #ifndef APPLICATIONS_WTN6_H_ #define APPLICATIONS_WTN6_H_ enum class VoiceFrg: rt_uint8_t { Slience, //20ms静音 PortAPluged, //一号插座已插入 PortBPluged, //二号插座已插入 NoPay, //请扫码或刷卡充电 CardDetected, //刷卡成功 StartCharing, //开始充电 NotAvailable, //当前设备不可用,请更换设备尝试 PortAUnpluged, //一号插座已拔出 PortBUnpluged, PlugNotReady, //请先插入充电器 BalanceNotEnough, //当前卡余额不足,请充值 ChargeCompleted, //充电已完成 Plugout, //请拔出插头 Reserved1, Reserved2, Reserved3, }; struct Wtn6 { void init(); void write(uint8_t data); void operator << (uint8_t data); void operator << (VoiceFrg voice); bool isBuzy(); private: static void writeEntry(void* p); void writeBit(bool bit); void timeout_us(int timeout); enum class events { timeout = 1, }; rt_device_t tim; rt_event_t event; static Wtn6* self; rt_thread_t writeThread; rt_mailbox_t writeMailbox; }; extern Wtn6 wtn6; #endif /* APPLICATIONS_WTN6_H_ */
[ "imgcre@outlook.com" ]
imgcre@outlook.com
638a00d29a6431ef3997291c78fcb0e07ab3a6b9
0150d34d5ced4266b6606c87fbc389f23ed19a45
/Cpp/SDK/BPI_Helicopter_classes.h
4db626b2546329c565d9e750e45d61c9a83d4dfc
[ "Apache-2.0" ]
permissive
joey00186/Squad-SDK
9aa1b6424d4e5b0a743e105407934edea87cbfeb
742feb5991ae43d6f0cedd2d6b32b949923ca4f9
refs/heads/master
2023-02-05T19:00:05.452463
2021-01-03T19:03:34
2021-01-03T19:03:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
823
h
#pragma once // Name: S, Version: b #ifdef _MSC_VER #pragma pack(push, 0x01) #endif /*!!HELPER_DEF!!*/ /*!!DEFINE!!*/ namespace UFT { //--------------------------------------------------------------------------- // Classes //--------------------------------------------------------------------------- // BlueprintGeneratedClass BPI_Helicopter.BPI_Helicopter_C // 0x0000 (FullSize[0x0028] - InheritedSize[0x0028]) class UBPI_Helicopter_C : public UInterface { public: static UClass* StaticClass() { static auto ptr = UObject::FindClass("BlueprintGeneratedClass BPI_Helicopter.BPI_Helicopter_C"); return ptr; } void Set_Landing_Camera(bool Active); void Get_UI_Tint(struct FLinearColor* Color); void Is_Using_Landing_Camera(bool* Using_Landing_Camera); }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "tahmaniak@gmail.com" ]
tahmaniak@gmail.com
40f3759d2a58e565948e5bc38c465d772af78202
8f4ae27607bd400400653fb81a6acf0333a3b3fd
/CodeForces/492/c.cpp
2a3f1718646a02f1a2b337bf6fff7968831d2ebf
[]
no_license
xumarcus/Competitive-Programming-Code
d88bcd83a67c6ca8ccfe6475e230d3e7a66144fb
ecf1a95d53276de26557b6e982a226c9615c92f2
refs/heads/master
2023-03-17T11:12:04.793760
2016-09-19T09:22:26
2016-09-19T09:22:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
750
cpp
#include <iostream> #include <set> #include <algorithm> using namespace std; multiset<pair<int, int> > S; int main() { int n, r, avg; cin >> n >> r >> avg; S.clear(); long long sum = 0; long long s = (long long)n * avg; for(int i = 0; i < n; i++) { int a, b; cin >> a >> b; if(a != r) S.insert(make_pair(b, a)); sum += a; } if(sum >= s){ cout << 0 << endl; return 0; } long long ans = 0; multiset<pair<int, int> >::iterator it; for(it = S.begin(); it != S.end(); it++) { int x = it->first; int y = it->second; if(sum + (long long)(r - y) < s) { ans += (long long)(r - y) * x; sum += (long long)(r - y); } else{ ans += (long long)(s - sum) * x; break; } } cout << ans << endl; return 0; }
[ "=" ]
=
62d368cf96e5d523484e685af1f52ffcb59e145c
8d65362a9d097ea0df1a5c75a95912278353ed6a
/C++/274A_K-Multiple Free Set_CF/main.cpp
b8a18c820e38a2326a6fb2d0ced24396d97abdee
[]
no_license
Abdelsattar/CompetitiveProgramming
b2a184839f5cc0cd24aa692f6b2c93629775344b
2d5877c54dfb9c6a42f5bab7440d069e3c81c00f
refs/heads/master
2021-01-13T00:42:56.066356
2015-05-22T05:41:30
2015-05-22T05:41:30
36,053,386
0
0
null
null
null
null
UTF-8
C++
false
false
684
cpp
// Mido_Fci // 4-7-2014 // 01:44pm // Ramadan // EL 3arei4 // we23t m4 ma7lolas7 #include <iostream> #include <vector> #include <map> #include <cmath> #include <sstream> using namespace std; int main() { long long k,num,n,count=0; map <long long,long long > mymap; map<long long ,long long > ::iterator iter; cin>>n>>k; vector <long long> vec(n); for(int i=0 ;i<n ; i++) { cin>>vec[i]; mymap[vec[i]]++; } for (int i=0 ;i< n ; i++) { num=vec[i]*k; if(mymap[num]>0) { cout<<num<<endl; count++; } } cout<<count<<endl; return 0; }
[ "m.abdel_sattarahmed@yahoo.com" ]
m.abdel_sattarahmed@yahoo.com
6294cc7ffcfe0bf14b2d6778796737a36b9037ba
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/net-im/ejabberd/files/patch-deps_jiffy_c__src_double-conversion_strtod.cc
581a4d3f22e289bc352f48a20079435744386713
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
C++
false
false
1,160
cc
--- deps/jiffy/c_src/double-conversion/strtod.cc.orig 2020-04-10 09:23:29 UTC +++ deps/jiffy/c_src/double-conversion/strtod.cc @@ -38,7 +38,9 @@ namespace double_conversion { // 2^53 = 9007199254740992. // Any integer with at most 15 decimal digits will hence fit into a double // (which has a 53bit significand) without loss of precision. +#if defined(DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS) static const int kMaxExactDoubleIntegerDecimalDigits = 15; +#endif // 2^64 = 18446744073709551616 > 10^19 static const int kMaxUint64DecimalDigits = 19; @@ -55,6 +57,7 @@ static const int kMinDecimalPower = -324; static const uint64_t kMaxUint64 = UINT64_2PART_C(0xFFFFFFFF, FFFFFFFF); +#if defined(DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS) static const double exact_powers_of_ten[] = { 1.0, // 10^0 10.0, @@ -82,6 +85,7 @@ static const double exact_powers_of_ten[] = { 10000000000000000000000.0 }; static const int kExactPowersOfTenSize = ARRAY_SIZE(exact_powers_of_ten); +#endif // Maximum number of significant digits in the decimal representation. // In fact the value is 772 (see conversions.cc), but to give us some margin
[ "ashish@FreeBSD.org" ]
ashish@FreeBSD.org
6280051c776b7130d5fb9ceb099b7bc686f4d97d
08b8cf38e1936e8cec27f84af0d3727321cec9c4
/data/crawl/wget/old_hunk_509.cpp
0ae9dff3fa11616760f97a1ac3effa0f5500eb22
[]
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
1,022
cpp
"Няма такой дырэкторыи \"%s\".\n" "\n" #: src/ftp.c:588 msgid "==> CWD not required.\n" msgstr "==> CWD непатрэбнае.\n" #: src/ftp.c:649 msgid "Cannot initiate PASV transfer.\n" msgstr "Немагчыма ініцыялізаваць PASV-перадачу.\n" #: src/ftp.c:653 msgid "Cannot parse PASV response.\n" msgstr "Немагчыма зрабіць разбор PASV адказу.\n" #: src/ftp.c:670 #, c-format msgid "couldn't connect to %s port %d: %s\n" msgstr "немагчыма далучыцца да %s, порт %d: %s\n" #: src/ftp.c:718 #, c-format msgid "Bind error (%s).\n" msgstr "Памылка bind (%s).\n" #: src/ftp.c:724 msgid "Invalid PORT.\n" msgstr "Нерэчаісны порт.\n" #: src/ftp.c:770 msgid "" "\n" "REST failed, starting from scratch.\n" msgstr "" #: src/ftp.c:811 #, fuzzy, c-format msgid "No such file %s.\n" msgstr "" "Файл \"%s\" адсутнічае.\n" "\n" #: src/ftp.c:857 #, fuzzy, c-format msgid "" "No such file %s.\n"
[ "993273596@qq.com" ]
993273596@qq.com
1f1fb0a0a2a10efab17c1d2f62353fd9b9046ac0
08bbc404469c0f335731962cf00a91719b148ea8
/src/cpp-ethereum/libp2p/CapabilityHost.cpp
d4fe451e38777e6ddc87e0afadbd05ebba6cba1c
[ "MIT", "GPL-3.0-only", "LGPL-2.0-or-later", "GPL-1.0-or-later", "LGPL-2.1-or-later", "GPL-3.0-or-later", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
alexander3636/btcbam-core-1
62796184787139f71b67354452d6726e65e8b830
2565b3b110d049e8f188b57ea42e84466f307f35
refs/heads/main
2023-08-14T20:36:06.478025
2021-08-03T15:51:50
2021-08-03T15:51:50
413,112,625
0
0
MIT
2021-10-03T15:10:48
2021-10-03T15:10:47
null
UTF-8
C++
false
false
3,703
cpp
/* This file is part of cpp-ethereum. cpp-ethereum is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. cpp-ethereum 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 cpp-ethereum. If not, see <http://www.gnu.org/licenses/>. */ #include "CapabilityHost.h" #include "Host.h" #include "Session.h" namespace dev { namespace p2p { namespace { class CapabilityHost : public CapabilityHostFace { public: explicit CapabilityHost(Host& _host) : m_host{_host} {} boost::optional<PeerSessionInfo> peerSessionInfo(NodeID const& _nodeID) const override { auto session = m_host.peerSession(_nodeID); return session ? session->info() : boost::optional<PeerSessionInfo>{}; } void disconnect(NodeID const& _nodeID, DisconnectReason _reason) override { auto session = m_host.peerSession(_nodeID); if (session) session->disconnect(_reason); } void disableCapability(NodeID const& _nodeID, std::string const& _capabilityName, std::string const& _problem) override { auto session = m_host.peerSession(_nodeID); if (session) session->disableCapability(_capabilityName, _problem); } void updateRating(NodeID const& _nodeID, int _r) override { auto session = m_host.peerSession(_nodeID); if (session) session->addRating(_r); } RLPStream& prep(NodeID const& _nodeID, std::string const& _capabilityName, RLPStream& _s, unsigned _id, unsigned _args = 0) override { auto session = m_host.peerSession(_nodeID); if (!session) return _s; auto const offset = session->capabilityOffset(_capabilityName); if (!offset) return _s; return _s.appendRaw(bytes(1, _id + *offset)).appendList(_args); } void sealAndSend(NodeID const& _nodeID, RLPStream& _s) override { auto session = m_host.peerSession(_nodeID); if (session) session->sealAndSend(_s); } void addNote(NodeID const& _nodeID, std::string const& _k, std::string const& _v) override { auto session = m_host.peerSession(_nodeID); if (session) session->addNote(_k, _v); } bool isRude(NodeID const& _nodeID, std::string const& _capability) const override { auto s = m_host.peerSession(_nodeID); if (s) return s->repMan().isRude(*s, _capability); return false; } void setRude(NodeID const& _nodeID, std::string const& _capability) override { auto s = m_host.peerSession(_nodeID); if (!s) return; s->repMan().noteRude(*s, _capability); } void foreachPeer( std::string const& _capabilityName, std::function<bool(NodeID const&)> _f) const override { m_host.forEachPeer(_capabilityName, _f); } void scheduleExecution(int _delayMs, std::function<void()> _f) override { m_host.scheduleExecution(_delayMs, std::move(_f)); } private: Host& m_host; }; } // namespace std::shared_ptr<CapabilityHostFace> createCapabilityHost(Host& _host) { return std::make_shared<CapabilityHost>(_host); } } // namespace p2p } // namespace dev
[ "86428936+Bitcoin-Bam@users.noreply.github.com" ]
86428936+Bitcoin-Bam@users.noreply.github.com
827702da1c2a77dd50bf7329858fb1dca707e1e7
226275ee5241ca916e1bef2327951852024593a0
/src/Mat.cc
96155e6cb19cd6797e97c958256390b8e8ad787a
[]
no_license
satchelspencer/live-automata
aeafccd0daa85dc2beeef6adfa615e0515a335e3
8ee3724a53df187970205fbb750de5c1c96c7d8b
refs/heads/master
2023-06-21T08:32:31.176148
2023-06-18T16:34:23
2023-06-18T16:34:23
167,048,362
0
0
null
2022-12-09T19:04:10
2019-01-22T18:49:08
JavaScript
UTF-8
C++
false
false
763
cc
#include "Mat.h" Mat::Mat(const Napi::CallbackInfo& info) : Napi::ObjectWrap<Mat>(info) { if(info.Length() == 0) this->mat = new cv::Mat(); else this->mat = new cv::Mat( info[1].As<Napi::Number>().Int32Value(), info[0].As<Napi::Number>().Int32Value(), info[2].As<Napi::Number>().Int32Value() ); }; Napi::FunctionReference Mat::constructor; Napi::Object Mat::Init(Napi::Env env, Napi::Object exports) { Napi::Function func = DefineClass(env, "Mat", { InstanceMethod("show", &Mat::show), }); constructor = Napi::Persistent(func); constructor.SuppressDestruct(); exports.Set("Mat", func); return exports; } void Mat::show(const Napi::CallbackInfo &info){ cv::imshow("test", * this->mat); cv::waitKey(0); }
[ "satchelspencer@gmail.com" ]
satchelspencer@gmail.com
8ed5d47200155fddf81be9406ddb01be0b41833f
72dae4abb89cbf1c8d2d4aef5e677dbd3d74cd6f
/android-11/system/core/base/include/android-base/properties.h
49f1f318478e7bd7c77b29a34fdb5f82f90c3e5f
[ "Apache-2.0" ]
permissive
MrIkso/sdk-tools
aebb05a86e379d2883bae31f4620bcd73d832305
53b34cdaca0b94364446f01b5ac3455773db3029
refs/heads/master
2023-07-28T21:18:28.712877
2021-09-27T06:00:17
2021-09-27T06:00:17
309,805,035
7
3
Apache-2.0
2021-09-27T06:00:18
2020-11-03T20:56:00
C++
UTF-8
C++
false
false
4,120
h
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include <sys/cdefs.h> #include <chrono> #include <limits> #include <optional> #include <string> struct prop_info; namespace android { namespace base { // Returns the current value of the system property `key`, // or `default_value` if the property is empty or doesn't exist. std::string GetProperty(const std::string& key, const std::string& default_value); // Returns true if the system property `key` has the value "1", "y", "yes", "on", or "true", // false for "0", "n", "no", "off", or "false", or `default_value` otherwise. bool GetBoolProperty(const std::string& key, bool default_value); // Returns the signed integer corresponding to the system property `key`. // If the property is empty, doesn't exist, doesn't have an integer value, or is outside // the optional bounds, returns `default_value`. template <typename T> T GetIntProperty(const std::string& key, T default_value, T min = std::numeric_limits<T>::min(), T max = std::numeric_limits<T>::max()); // Returns the unsigned integer corresponding to the system property `key`. // If the property is empty, doesn't exist, doesn't have an integer value, or is outside // the optional bound, returns `default_value`. template <typename T> T GetUintProperty(const std::string& key, T default_value, T max = std::numeric_limits<T>::max()); // Sets the system property `key` to `value`. bool SetProperty(const std::string& key, const std::string& value); // Waits for the system property `key` to have the value `expected_value`. // Times out after `relative_timeout`. // Returns true on success, false on timeout. #if defined(__BIONIC__) bool WaitForProperty(const std::string& key, const std::string& expected_value, std::chrono::milliseconds relative_timeout = std::chrono::milliseconds::max()); #endif // Waits for the system property `key` to be created. // Times out after `relative_timeout`. // Returns true on success, false on timeout. #if defined(__BIONIC__) bool WaitForPropertyCreation(const std::string& key, std::chrono::milliseconds relative_timeout = std::chrono::milliseconds::max()); #endif #if defined(__BIONIC__) && __cplusplus >= 201703L // Cached system property lookup. For code that needs to read the same property multiple times, // this class helps optimize those lookups. class CachedProperty { public: explicit CachedProperty(const char* property_name); // Returns the current value of the underlying system property as cheaply as possible. // The returned pointer is valid until the next call to Get. Because most callers are going // to want to parse the string returned here and cached that as well, this function performs // no locking, and is completely thread unsafe. It is the caller's responsibility to provide a // lock for thread-safety. // // Note: *changed can be set to true even if the contents of the property remain the same. const char* Get(bool* changed = nullptr); private: std::string property_name_; const prop_info* prop_info_; std::optional<uint32_t> cached_area_serial_; std::optional<uint32_t> cached_property_serial_; char cached_value_[92]; bool is_read_only_; const char* read_only_property_; }; #endif } // namespace base } // namespace android
[ "solod9362@gmail.com" ]
solod9362@gmail.com
03619386fc23743d3c9b27cb807cd4cb8de20b84
bd1fea86d862456a2ec9f56d57f8948456d55ee6
/000/069/704/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_wchar_t_memmove_41.cpp
4e89f186f148d6e6d2677d1e87974f2c1cd4f90c
[]
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,998
cpp
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_wchar_t_memmove_41.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806.label.xml Template File: sources-sink-41.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initialize data as a large string * GoodSource: Initialize data as a small string * Sink: memmove * BadSink : Copy data to string using memmove * Flow Variant: 41 Data flow: data passed as an argument from one function to another in the same source file * * */ #include "std_testcase.h" #include <wchar.h> namespace CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_wchar_t_memmove_41 { #ifndef OMITBAD void badSink(wchar_t * data) { { wchar_t dest[50] = L""; /* POTENTIAL FLAW: Possible buffer overflow if data is larger than dest */ memmove(dest, data, wcslen(data)*sizeof(wchar_t)); dest[50-1] = L'\0'; /* Ensure the destination buffer is null terminated */ printWLine(data); delete [] data; } } void bad() { wchar_t * data; data = new wchar_t[100]; /* FLAW: Initialize data as a large buffer that is larger than the small buffer used in the sink */ wmemset(data, L'A', 100-1); /* fill with L'A's */ data[100-1] = L'\0'; /* null terminate */ badSink(data); } #endif /* OMITBAD */ #ifndef OMITGOOD void goodG2BSink(wchar_t * data) { { wchar_t dest[50] = L""; /* POTENTIAL FLAW: Possible buffer overflow if data is larger than dest */ memmove(dest, data, wcslen(data)*sizeof(wchar_t)); dest[50-1] = L'\0'; /* Ensure the destination buffer is null terminated */ printWLine(data); delete [] data; } } /* goodG2B uses the GoodSource with the BadSink */ static void goodG2B() { wchar_t * data; data = new wchar_t[100]; /* FIX: Initialize data as a small buffer that as small or smaller than the small buffer used in the sink */ wmemset(data, L'A', 50-1); /* fill with L'A's */ data[50-1] = L'\0'; /* null terminate */ goodG2BSink(data); } 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 CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_wchar_t_memmove_41; /* 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
0d2ddcd455826f53c4c144a88a362818a891ed9b
666e2ff7aa1a4bcf3592331062ce774373fe6fa6
/mikey/mikey_message_rsar.h
34f3b8d66a315d21181bf908f3c749fd9d5263a5
[]
no_license
asyr625/mini_sip
aeffd6e5ea1dafafa817b1137859b41351fe9580
12ea4b9a03585b5c7e5b5faeeed0a5bc6a9c19cc
refs/heads/master
2021-01-20T12:06:33.212419
2015-11-24T02:33:26
2015-11-24T02:33:26
46,761,914
0
1
null
null
null
null
UTF-8
C++
false
false
637
h
#ifndef MIKEY_MESSAGE_RSAR_H #define MIKEY_MESSAGE_RSAR_H #include "mikey_message.h" #include "key_agreement_rsar.h" class Mikey_Message_RSAR : public Mikey_Message { public: Mikey_Message_RSAR(); Mikey_Message_RSAR( Key_Agreement_RSAR* ka ); SRef<Mikey_Message *> parse_response(Key_Agreement * kaBase ); void set_offer(Key_Agreement * kaBase ); SRef<Mikey_Message *> build_response(Key_Agreement * kaBase ); bool authenticate(Key_Agreement * kaBase ); bool is_initiator_message() const; bool is_responder_message() const; int32_t key_agreement_type() const; }; #endif // MIKEY_MESSAGE_RSAR_H
[ "619695356@qq.com" ]
619695356@qq.com
68f2ab41c0789276a736f251cac6c402da54b7c0
18da01143c6a560df34884eeb5be6e4a7c744e24
/I_GGX64/5/5对3/1车4兵对1车1马1兵.cpp
3c762411514e0dce07129ecf9de88ff6defe3b47
[]
no_license
alanthinker/NewGG
974832e6738b1cd0df01ab2c5b94489a4ccf53e9
ead7b553954336b76a476922005cc578f68cc6f1
refs/heads/master
2022-07-05T02:46:18.030741
2020-05-16T14:03:36
2020-05-16T14:03:36
264,444,924
0
0
null
2020-05-16T13:37:04
2020-05-16T13:37:04
null
WINDOWS-1252
C++
false
false
2,343
cpp
#ifndef END_my_m_MT_R_1che4pawn_B_1che1ma1pawn #define END_my_m_MT_R_1che4pawn_B_1che1ma1pawn #include "..\\..\\chess.h" #include "..\\..\\preGen.h" #include "..\\..\\endgame\mat.h" #include "1³µ4±ø¶Ô1³µ1Âí1±ø.cpp" #include "..\\..\\white.h" #else #include "..\\..\\black.h" #endif void my_m_MT_R_1che4pawn_B_1che1ma1pawn(typePOS &POSITION, EvalInfo &ei){ Square yk = your_king_pos; Square mk = my_king_pos; Square yma = S90_from_piecelist(POSITION,your_ma,0); Square yche = S90_from_piecelist(POSITION,your_che,0); Square mche = S90_from_piecelist(POSITION,my_che,0); Square ypawn = S90_from_piecelist(POSITION, your_pawn, 0); // ADD Bitboard bmp = m_and(bb_my_pawn,MyLowBB[StoY(yk)]); MY_EV_ADD((sint16)count_1s(bmp) * ADD_CheXPawn_To_1Che1Ma1Pawn_ByPawn[your_shi_num]); // SUB Bitboard ymp = m_and(bb_your_pawn,MyUpBB[StoY(my_king_pos)]); MY_EV_SUB((sint16)count_1s(ymp) * ADD_1Che1Ma1Pawn_To_CheXPawn_ByPawn[my_shi_num]); // fen 2bak4/4aPP2/4b4/p8/9/3Rnr2P/P8/8B/4A4/3K5 b - - 0 1 if(EV_YOUR_CAN == 0 && my_shi_num >= 1 && StoY(mk) == MY_RANK9){ if(isStringByChe(POSITION,mche,yma,yche)){ MY_EV_ADD(EV_MY_CAN * 32); } } // fen 2b1kab2/4a4/9/p2P5/9/P4nP2/2r5P/1R2B4/4A4/2BK1A3 b - - 0 1 // fen 2bakn3/4a4/4b4/9/R1p6/4r1P2/P1P5P/4B4/9/2BAKA3 b - - 0 1 if(my_shi_num == 2 && my_xiang_num == 2 && StoY(mk) == MY_RANK9){ if (EV_YOUR_CAN == 0){ MY_EV_ADD(EV_MY_CAN * 16); if (StoY(yma) MY_SMALL_EQL MY_RANK3 || StoY(ypawn) MY_SMALL_EQL MY_RANK4){ MY_EV_ADD(EV_MY_CAN * 16); if (your_shi_num == 2 && StoY(yk) MY_SMALL_EQL MY_RANK1){ if (count_1s(bb_my_pawn, MyLowBB[MY_RANK4]) >= 3){ RETRUN_MUL(10); } } } } } } //void m_MT_B_1che4pawn_R_1che1ma1pawn(typePOS &POSITION, EvalInfo &ei){ ///* // Square rk = PieceListStart(board,RKING); // Square bk = PieceListStart(board,BKING); // // for(int from = PieceListStart(board,BPAWN); from > 0x32; from = NextPiece(board,from)){ // if(StoY(from) < StoY(rk)){ // board->mulScore -= ADD_1Che1Ma1Pawn_To_CheXPawn_ByPawn[board->R_shi]; // } // } // // for(int from = PieceListStart(board,RPAWN); from > 0x32; from = NextPiece(board,from)){ // if(StoY(from) > StoY(bk)){ // board->mulScore += ADD_CheXPawn_To_1Che1Ma1Pawn_ByPawn[board->B_shi]; // } // } // // */ //} //m_MT_R_1che3pawn_B_3pawn
[ "keersun@qq.com" ]
keersun@qq.com
d711ffafa335125a2d83d6aaf18dee4926256453
8a7afe26f7733bcecf1bce34a081dd3d1b96787a
/libvpvl2/include/vpvl2/cg/PMDRenderEngine.h
d6356f0b47a3829cf22fa7d82ce5aeb8ef058f82
[ "BSD-3-Clause" ]
permissive
sun16/MMDAI
707cb91cb293ef4b07f90e5e8e2ac5d249a39600
e7f811cdfd361794790e15dd57756c9a758c2a91
refs/heads/master
2021-01-15T19:39:13.982345
2012-12-04T05:11:23
2012-12-04T05:11:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,897
h
/* ----------------------------------------------------------------- */ /* */ /* Copyright (c) 2010-2012 hkrn */ /* */ /* 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 MMDAI project team nor the names of */ /* its contributors may be used to endorse or promote products */ /* derived from this software without specific prior written */ /* permission. */ /* */ /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND */ /* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, */ /* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ /* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */ /* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 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 VPVL2_CG2_PMDRENDERENGINE_H_ #define VPVL2_CG2_PMDRENDERENGINE_H_ #include "vpvl2/IRenderEngine.h" #include "vpvl2/cg/EffectEngine.h" #include "vpvl2/pmd/Model.h" namespace vpvl2 { class Scene; namespace cl { class PMDAccelerator; } namespace pmd { class Model; } namespace cg { class VPVL2_API PMDRenderEngine : public vpvl2::IRenderEngine #ifdef VPVL2_LINK_QT , protected QGLFunctions #endif { public: class PrivateContext; PMDRenderEngine(IRenderContext *delegate, const Scene *scene, CGcontext effectContext, cl::PMDAccelerator *accelerator, pmd::Model *model); virtual ~PMDRenderEngine(); IModel *model() const; bool upload(const IString *dir); void update(); void renderModel(); void renderEdge(); void renderShadow(); void renderZPlot(); bool hasPreProcess() const; bool hasPostProcess() const; void preparePostProcess(); void performPreProcess(); void performPostProcess(); IEffect *effect(IEffect::ScriptOrderType type) const; void setEffect(IEffect::ScriptOrderType type, IEffect *effect, const IString *dir); protected: void log0(void *context, IRenderContext::LogLevel level, const char *format ...); IRenderContext *m_delegateRef; private: bool releaseContext0(void *context); void release(); enum VertexBufferObjectType { kModelVertices, kEdgeIndices, kModelIndices, kVertexBufferObjectMax }; struct MaterialContext { MaterialContext() : mainTextureID(0), subTextureID(0) { } GLuint mainTextureID; GLuint subTextureID; }; const Scene *m_sceneRef; EffectEngine *m_currentRef; cl::PMDAccelerator *m_accelerator; pmd::Model *m_modelRef; CGcontext m_contextRef; MaterialContext *m_materialContexts; pmd::Model::SkinningMeshes m_mesh; Color m_toonTextureColors[vpvl::PMDModel::kCustomTextureMax]; GLuint m_vertexBufferObjects[kVertexBufferObjectMax]; Hash<btHashInt, EffectEngine *> m_effects; Array<EffectEngine *> m_oseffects; bool m_cullFaceState; bool m_isVertexShaderSkinning; VPVL2_DISABLE_COPY_AND_ASSIGN(PMDRenderEngine) }; } /* namespace gl2 */ } /* namespace vpvl2 */ #endif
[ "hikarin.jp@gmail.com" ]
hikarin.jp@gmail.com
b6bab53430790b73c520e989bafeb8b48bf252b1
0ace815c858a26171d72ab4c4f213afd64619c73
/ch10/StudentClass/student.h
581ecd0d25640d7942eebc08ea45273706e35ccb
[]
no_license
nic-cs151-master/lecture
5999195815ca2fa9e46a7654d4cfc265370055eb
711037a58de9ae37e8b356ed6842ce1469c1565d
refs/heads/master
2023-01-04T17:11:53.684326
2020-10-25T12:52:38
2020-10-25T12:52:38
290,043,123
0
0
null
null
null
null
UTF-8
C++
false
false
782
h
// Guard #ifndef STUDENT_H #define STUDENT_H #include <string> #include <iostream> #include <iomanip> using namespace std; // constant global variables // function prototypes // class declarations // struct declarations class Student { public: // constructors Student(); Student(int id, string name, int age); // setters or mutators void setStudent(int id, string name, int age); void setId(int id); void setName(string name); void setAge(int age); // getters or accessors int getId() const; string getName() const; int getAge() const; private: int m_id; string m_name; int m_age; }; // display an array of students void display(const Student array[], int size); void sortByName(Student array[], int size); #endif
[ "gvdelacruz@nic.edu" ]
gvdelacruz@nic.edu
89e7f1f3d2737649defd40d42871541288aef437
2f87b843578fcf02ee848063d510c3c98d20d532
/mazeboard.h
e3591d3fd58b54c4cf2da508872c265efadb423b
[]
no_license
Svietq/Maze-Generator
aae7880f985956d4974f341b4330afbc3505cca7
762102ed6c20d41b0dda34f409b4e22d67d3a882
refs/heads/master
2021-01-24T09:30:57.403774
2018-02-26T19:19:39
2018-02-26T19:19:39
123,018,177
0
0
null
null
null
null
UTF-8
C++
false
false
3,933
h
#ifndef MAZEBOARD_H #define MAZEBOARD_H #include "cell.h" #include <vector> #include <iterator> #include <memory> #include "windows.h" #include <iostream> #include <fstream> constexpr short DIM = 16; constexpr short WIDTH = 1; class MazeBoard { public: using CellPtr = std::unique_ptr<Cell>; using Board = std::array<CellPtr, DIM*DIM>; static MazeBoard &get(); CellPtr& operator[](const Cell::Coords &icoords); const CellPtr& operator[](const Cell::Coords &icoords) const; Board::iterator begin(); Board::iterator end(); Cell::Coords get_coords(const CellPtr* cell) const; enum class Dir {UP, DOWN, LEFT, RIGHT}; void generate(); private: MazeBoard(); MazeBoard(const MazeBoard &iclass); MazeBoard &operator=(const MazeBoard &iclass); ~MazeBoard(){} static MazeBoard *instance_; Board board_; }; namespace { void gotoxy(short ix, short iy) { static HANDLE h = NULL; if(!h) h = GetStdHandle(STD_OUTPUT_HANDLE); COORD c = { ix, iy }; SetConsoleCursorPosition(h,c); } void gotoxy(std::ofstream &file, int ix, int iy) { file.seekp(iy*((DIM*2+2)*WIDTH+1)+ix); //WTF?! } void print(const char &c) { using std::cout; cout.width(WIDTH); cout << c; } void print_board() { for(const MazeBoard::CellPtr &c : MazeBoard::get()) { int x = MazeBoard::get().get_coords(&c).x * WIDTH * 2; //*2 - . . . . . *3 - . . . . . . int y = MazeBoard::get().get_coords(&c).y * 2; // . . . . . . . // . . . . . . . . . . . gotoxy(x,y); print('.'); if(c->wall_.TOP) print('.'); //. . . else print(' '); print('.'); gotoxy(x,y+1); if(c->wall_.LEFT) print('.'); else print(' '); print(' '); //. . if(c->wall_.RIGHT) print('.'); else print(' '); gotoxy(x,y+2); print('.'); if(c->wall_.BOTTOM) print('.'); //. . . else print(' '); print('.'); } } void print(std::ofstream &file, const char &c) { file.width(WIDTH); file << c; } void write_grid(std::ofstream &file) { for(int i=0; i<(DIM*2+1); ++i) { for(int j=0; j<(DIM*2+1); ++j) { print(file, '*'); } print(file, '\n'); } } void save_to_file() { std::ofstream file; file.open("maze.txt", std::ofstream::out | std::ofstream::trunc); write_grid(file); for(const MazeBoard::CellPtr &c : MazeBoard::get()) { int x = MazeBoard::get().get_coords(&c).x * WIDTH * 2; //*2 - . . . . . *3 - . . . . . . int y = MazeBoard::get().get_coords(&c).y * 2; // . . . . . . . // . . . . . . . . . . . gotoxy(file,x,y); print(file, '.'); if(c->wall_.TOP) print(file, '.'); //. . . else print(file, ' '); print(file, '.'); gotoxy(file,x,y+1); if(c->wall_.LEFT) print(file, '.'); else print(file, ' '); print(file, ' '); //. . if(c->wall_.RIGHT) print(file, '.'); else print(file, ' '); gotoxy(file,x,y+2); print(file, '.'); if(c->wall_.BOTTOM) print(file, '.'); //. . . else print(file, ' '); print(file, '.'); } file.close(); } } #endif // MAZEBOARD_H
[ "mswietku@gmail.com" ]
mswietku@gmail.com
4788bcf3687034c7eb06b8e8a4b5b60137f92ebe
54df34456482b70bb4fdc429d7d3c56ecaf7d431
/src/distributions/XiSquared/XiSquaredDistribution.H
3d8dcfdd5da34427a3105b6bf2803f64b095939d
[]
no_license
LSJ0910/IBMFoam
36b9775d54e06650ed830512b56f2af4925a8aa4
57fe75a46e3027182614c032451c8378cb8857ff
refs/heads/master
2021-09-26T20:05:36.523543
2018-11-01T21:02:43
2018-11-01T21:02:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,439
h
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM 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 OpenFOAM. If not, see <http://www.gnu.org/licenses/>. Class Foam::gaussian Description Random gaussian distribution SourceFiles gaussianDistribution.C \*---------------------------------------------------------------------------*/ #ifndef gaussianDistribution_H #define gaussianDistribution_H #include "randomDistribution.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { namespace randomDistributions { class gaussian : public randomDistribution { //- Mean value scalar mean_; //- Variance scalar variance_; public: //- Runtime type information TypeName("gaussian"); // Constructor gaussian(const label seed, const dictionary& dict); //- Destructor virtual ~gaussian(); // Public functions //- Return a gaussian random variable virtual scalar RV(); //- Return the ith statistical moment virtual scalar moment(const label i) const; //- Return the ith non-integer moment virtual scalar moment(const scalar i) const; }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End randomDistributions namespace } // End Foam namespace // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // #endif // ************************************************************************* //
[ "jheylmun@iastate.edu" ]
jheylmun@iastate.edu
87553588c57f65a0d7a2b435e91de2b98aa25d6d
1cfeade923a774efa629fc3bbfbb9c60d68f6716
/Sudoku/SudokuExtracotrDlg.h
e85a1324d60b7379ae3d535255e915c174e4c118
[]
no_license
Mehran2013T/Sudoku-GUI
7a96e130ac56c041746bf627aa30c34949d54f66
b541c2867b0def8541614d4ad9fb9b6fe70feca0
refs/heads/master
2021-01-22T09:26:29.386823
2012-10-23T20:30:12
2012-10-23T20:30:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,288
h
#pragma once #include "afxcmn.h" #include "imageviewer.h" #include "afxwin.h" #include "core\SudokuExtractor.h" #include "resource.h" // CSudokuExtracotrDlg dialog class CSudokuExtracotrDlg : public CDialogEx { DECLARE_DYNAMIC(CSudokuExtracotrDlg) public: CSudokuExtracotrDlg(CWnd* pParent = NULL); // standard constructor CSudokuExtracotrDlg(CWnd* pParent, SudokuExtractor* sudokuExtractor); virtual ~CSudokuExtracotrDlg(); // Dialog Data enum { IDD = IDD_SUDOKU_EXTRACTOR }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support DECLARE_MESSAGE_MAP() public: SudokuExtractor* m_SudokuExtractor; CSliderCtrl m_SliderKernelSizeGauss; CSliderCtrl m_SliderBlockSize; CSliderCtrl m_SliderC; CSliderCtrl m_SliderContourAreaThresh; CSliderCtrl m_SliderKernelSizeMorph; ImageViewer m_Display; CString m_strKernelSizeGauss; CString m_strBlockSize; CString m_strC; CString m_strKernelSizeMorph; CString m_strContourAreaThresh; virtual BOOL OnInitDialog(); afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg void OnBnClickedBtnDone(); afx_msg void OnClose(); afx_msg void OnBnClickedBtnDefault(); afx_msg void OnBnClickedBtnOk(); CProgressCtrl m_ProgressBar; afx_msg void OnTimer(UINT_PTR nIDEvent); };
[ "gchlebus@gmail.com" ]
gchlebus@gmail.com
9640b834e51f907f2368e1f935742fe240b0b59d
10b50e09bdbeacf403ef3f1d08d4fe2fc9fddeb7
/core/Music.h
d8d95d7d25bc0f1c9e7cbbfbd0b1e2adef40ea8e
[]
no_license
slagyr/voltageAlarm
3a6e7ca30fa1a6542bb6c86bf35fbb80bda74375
a4686b1c20d7c9aba1c40b95d3e8e68ad33c896c
refs/heads/master
2020-03-29T18:14:31.561533
2018-10-02T04:24:35
2018-10-02T04:24:35
150,201,171
0
0
null
null
null
null
UTF-8
C++
false
false
3,431
h
#ifndef MUSIC_H #define MUSIC_H #include "Hardware.h" #include "LinkedList.h" class Note { public: Note(unsigned short frequency, unsigned short duration); unsigned short frequency; unsigned short duration; bool operator==(const Note& rhs) const; }; class Music { public: Music(Hardware *hardware, uint8_t pin); Hardware* getHardware(); void setup(); uint8_t getPin(); void addNote(unsigned short frequency, unsigned short duration); int countNotes(); Note* getNote(unsigned short index); void setWholeNoteDuration(unsigned short duration); unsigned short getNoteDuration(unsigned short index); unsigned short getPauseBetweenNotes(); void setPauseBetweenNotes(unsigned short duration); virtual void play(); bool isLoop(); void setLoop(bool b); unsigned short getLoopDelay(); void setLoopDelay(unsigned short duration); private: unsigned short duration(unsigned short duration) const; Hardware *hardware; uint8_t pin; LinkedList<Note*> notes; unsigned short wholeNoteDuration; // unsigned long durations[10]; unsigned short pauseBetweenNotes; unsigned short nextNote; unsigned long finishTime; bool loop; unsigned short loopDelay; }; #define DOUBLE_NOTE 0 #define WHOLE_NOTE 1 #define SEVEN_EIGHTHS_NOTE 2 #define THREE_QUARTERS_NOTE 3 #define FIVE_EIGHTHS_NOTE 4 #define HALF_NOTE 5 #define THREE_EIGHTHS_NOTE 6 #define QUARTER_NOTE 7 #define EIGHTH_NOTE 8 #define SIXTEENTH_NOTE 9 #define NOTE_REST 0 #define NOTE_B0 31 #define NOTE_C1 33 #define NOTE_CS1 35 #define NOTE_D1 37 #define NOTE_DS1 39 #define NOTE_E1 41 #define NOTE_F1 44 #define NOTE_FS1 46 #define NOTE_G1 49 #define NOTE_GS1 52 #define NOTE_A1 55 #define NOTE_AS1 58 #define NOTE_B1 62 #define NOTE_C2 65 #define NOTE_CS2 69 #define NOTE_D2 73 #define NOTE_DS2 78 #define NOTE_E2 82 #define NOTE_F2 87 #define NOTE_FS2 93 #define NOTE_G2 98 #define NOTE_GS2 104 #define NOTE_A2 110 #define NOTE_AS2 117 #define NOTE_B2 123 #define NOTE_C3 131 #define NOTE_CS3 139 #define NOTE_D3 147 #define NOTE_DS3 156 #define NOTE_E3 165 #define NOTE_F3 175 #define NOTE_FS3 185 #define NOTE_G3 196 #define NOTE_GS3 208 #define NOTE_A3 220 #define NOTE_AS3 233 #define NOTE_B3 247 #define NOTE_C4 262 #define NOTE_CS4 277 #define NOTE_D4 294 #define NOTE_DS4 311 #define NOTE_E4 330 #define NOTE_F4 349 #define NOTE_FS4 370 #define NOTE_G4 392 #define NOTE_GS4 415 #define NOTE_A4 440 #define NOTE_AS4 466 #define NOTE_B4 494 #define NOTE_C5 523 #define NOTE_CS5 554 #define NOTE_D5 587 #define NOTE_DS5 622 #define NOTE_E5 659 #define NOTE_F5 698 #define NOTE_FS5 740 #define NOTE_G5 784 #define NOTE_GS5 831 #define NOTE_A5 880 #define NOTE_AS5 932 #define NOTE_B5 988 #define NOTE_C6 1047 #define NOTE_CS6 1109 #define NOTE_D6 1175 #define NOTE_DS6 1245 #define NOTE_E6 1319 #define NOTE_F6 1397 #define NOTE_FS6 1480 #define NOTE_G6 1568 #define NOTE_GS6 1661 #define NOTE_A6 1760 #define NOTE_AS6 1865 #define NOTE_B6 1976 #define NOTE_C7 2093 #define NOTE_CS7 2217 #define NOTE_D7 2349 #define NOTE_DS7 2489 #define NOTE_E7 2637 #define NOTE_F7 2794 #define NOTE_FS7 2960 #define NOTE_G7 3136 #define NOTE_GS7 3322 #define NOTE_A7 3520 #define NOTE_AS7 3729 #define NOTE_B7 3951 #define NOTE_C8 4186 #define NOTE_CS8 4435 #define NOTE_D8 4699 #define NOTE_DS8 4978 #endif //MUSIC_H
[ "micahmartin@gmail.com" ]
micahmartin@gmail.com
68c38e90784338a7306e3be877bbef8bac62c29c
c5b867dd8ade8518c1cbf9f5993f77da8a47c88a
/src/IcuEC (COM)/IcuConvEncConverterConfig.h
bfdebf59ab992e6132d65c68c611a15511c00cfd
[]
no_license
silnrsi/encoding-converters-core
9d054a9de14f6600fd2db93a2a71af22524b6ec8
a9566f636d3a9e69e802308d52b3a90a1d82dd04
refs/heads/master
2023-09-02T10:09:30.482193
2023-09-01T13:34:22
2023-09-01T13:34:22
88,911,893
3
10
null
2023-09-01T13:34:24
2017-04-20T21:27:09
C++
UTF-8
C++
false
false
2,069
h
// IcuConvEncConverterConfig.h : Declaration of the CIcuConvEncConverterConfig #pragma once #include "Resource.h" #include "ECResource.h" // from EncCnvtrs (because we use their interface) #include "ECEncConverter.h" #include "IcuEC.h" extern LPCTSTR clpszIcuConvProgId; // CIcuConvEncConverterConfig class CIcuConvEncConverterConfig; // forward declaration typedef CComCoClass<CIcuConvEncConverterConfig, &CLSID_IcuECConvConfig> IcuConvConfigComCoClass; class ATL_NO_VTABLE CIcuConvEncConverterConfig : public CEncConverterConfig , public IcuConvConfigComCoClass { public: CIcuConvEncConverterConfig() : CEncConverterConfig ( clpszIcuConvProgId, _T("ICU Converter"), // must match with what's in IcuConverter.rgs _T("ICU Converters Plug-in About box.htm"), ProcessTypeFlags_ICUConverter // defining process type ) { } DECLARE_REGISTRY_RESOURCEID(IDR_ICUCONV_CONFIG) BEGIN_COM_MAP(CIcuConvEncConverterConfig) COM_INTERFACE_ENTRY(IEncConverterConfig) COM_INTERFACE_ENTRY(IDispatch) COM_INTERFACE_ENTRY(ISupportErrorInfo) END_COM_MAP() DECLARE_PROTECT_FINAL_CONSTRUCT() HRESULT FinalConstruct() { return S_OK; } void FinalRelease() { } // IEncConverterConfig public: STDMETHOD(Configure)(IEncConverters* pECs, BSTR strFriendlyName, ConvType eConversionType, BSTR strLhsEncodingID, BSTR strRhsEncodingID, VARIANT_BOOL *bRet); STDMETHOD(DisplayTestPage)(IEncConverters* pECs, BSTR strFriendlyName, BSTR strConverterIdentifier, ConvType eConversionType, BSTR strTestData); protected: virtual HRESULT Error(UINT nID, const IID& iid, HRESULT hRes) { return IcuConvConfigComCoClass::Error(nID, iid, hRes); } virtual HRESULT Error(LPCTSTR lpszDesc, const IID& iid, HRESULT hRes) { return IcuConvConfigComCoClass::Error(lpszDesc, iid, hRes); } }; OBJECT_ENTRY_AUTO(__uuidof(IcuECConvConfig), CIcuConvEncConverterConfig)
[ "hindlemail@localhost" ]
hindlemail@localhost
dc53ca2226a712abdc5bcf09e2acfdec2eaadd01
ad715f9713dc5c6c570a5ac51a18b11932edf548
/tensorflow/core/kernels/uniform_quant_ops/math_utils.h
90d9b4c8bde6c6bdbb4c1c46924bdb38a204b335
[ "LicenseRef-scancode-generic-cla", "Apache-2.0", "BSD-2-Clause" ]
permissive
rockzhuang/tensorflow
f1f31bc8edfa402b748c500efb97473c001bac95
cb40c060b36c6a75edfefbc4e5fc7ee720273e13
refs/heads/master
2022-11-08T20:41:36.735747
2022-10-21T01:45:52
2022-10-21T01:45:52
161,580,587
27
11
Apache-2.0
2019-01-23T11:00:44
2018-12-13T03:47:28
C++
UTF-8
C++
false
false
9,333
h
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #ifndef TENSORFLOW_CORE_KERNELS_UNIFORM_QUANT_OPS_MATH_UTILS_H_ #define TENSORFLOW_CORE_KERNELS_UNIFORM_QUANT_OPS_MATH_UTILS_H_ #include <algorithm> #include <cmath> #include <limits> #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/platform/errors.h" #include "tensorflow/core/platform/status.h" namespace tensorflow { namespace internal { // Multiply by the effective quantized multiplier and shift. // Caller is responsible for guaranteeing: // quantized_multiplier >= 0 // shift >= -31 && shift <= 30 // The usage of this function is restricted to "multiply by quantized_multiplier // and shift which were calcluated from QuantizeMultiplier() function below", // so the conditions are expected to be met. // // Reference (TFLite MultiplyByQuantizedMultiplier with TFLITE_SINGLE_ROUNDING): // https://github.com/tensorflow/tensorflow/blob/47c640a961874f644cd071752835c7b792450bb8/tensorflow/lite/kernels/internal/common.h#L145 // Above implementation refers from ruy MultiplyByQuantizedMultiplier // (https://github.com/google/ruy/blob/97ebb72aa0655c0af98896b317476a5d0dacad9c/ruy/apply_multiplier.cc) // // After mutiplying fixed point quantized_multiplier, apply single rounding // operation (addition of 'round' to result and then shift right by // total_shift). where round=(1 << (30 - shift)) and total_shift=(31 - shift) inline int32_t MultiplyByQuantizedMultiplier(int32_t x, int32_t quantized_multiplier, int shift) { const int64_t total_shift = 31 - shift; const int64_t round = static_cast<int64_t>(1) << (total_shift - 1); int64_t result = x * static_cast<int64_t>(quantized_multiplier) + round; result = result >> total_shift; result = std::clamp( result, static_cast<int64_t>(std::numeric_limits<int32_t>::min()), static_cast<int64_t>(std::numeric_limits<int32_t>::max())); return static_cast<int32_t>(result); } } // namespace internal // Quantize eigen Tensor input_tensor using given inv_scale and zero_point, // using the formula: // quantized_val = floor(input_val * inv_scale + 0.5f) + zero_point // // The caller is reponsible for the validity of the inv_scale (Avoid precision // loss from taking inverse, and ensure that inv_scale is a finite number.) template <typename ConstTensorTin, typename TensorTout> void AffineQuantize(const ConstTensorTin& input_tensor, float inv_scale, int32_t zero_point, int32_t quantization_min_val, int32_t quantization_max_val, TensorTout quantized_tensor) { quantized_tensor = ((input_tensor.template cast<float>() * inv_scale + 0.5f) .floor() .template cast<int32_t>() + zero_point) .cwiseMin(quantization_max_val) .cwiseMax(quantization_min_val) .template cast<typename TensorTout::Scalar>(); } // Dequantize eigen Tensor input_tensor using given scale and zero_point, using // the formula: // dequantized_val = (input_val - zero_point) * scale template <typename ConstTensorTin, typename TensorTout> void AffineDequantize(const ConstTensorTin& input_tensor, float scale, int32_t zero_point, TensorTout dequantized_tensor) { dequantized_tensor = (((input_tensor.template cast<int32_t>() - zero_point)) .template cast<float>() * scale) .template cast<typename TensorTout::Scalar>(); } // Given a portion of input float tensor, quantizes the data and writes output // to the corresponding portion in quantized_tensor. The quantization scale and // zero_point is calculated using the input data min and max. // This function is used for dynamic range quantization in hybrid (float x qint) // kernels. // // This function behavior aligns with TFLite AsymmetricQuantize() // (https://github.com/tensorflow/tensorflow/blob/779d3824c8b38a622773940011ced0388697b951/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc#L72) // to achieve feature parity with TFLite which is required since supporting // mobile executions is the one of the major use cases. The behavior is same // except for following difference: TFLite AsymmetricQuantize() uses round(input // / scale + zero_point), while AffineQuantize() uses floor(input_val * // (1./scale) + 0.5) + zero_point template <typename ConstTensorTin, typename TensorTout> Status AsymmetricQuantize(const ConstTensorTin& input_tensor, int32_t quantization_min_val, int32_t quantization_max_val, float& scale, int32& zero_point, TensorTout quantized_tensor) { if (quantization_min_val >= quantization_max_val) { // NOLINTNEXTLINE return errors::InvalidArgument( "quantization_min_val must be smaller than quantization_max_val. " "Given ", quantization_min_val, ", ", quantization_max_val); } Eigen::Tensor<float, 0, Eigen::RowMajor> input_tensor_min = input_tensor.minimum(); Eigen::Tensor<float, 0, Eigen::RowMajor> input_tensor_max = input_tensor.maximum(); const double rmin = static_cast<double>(std::min(0.0f, input_tensor_min())); const double rmax = static_cast<double>(std::max(0.0f, input_tensor_max())); const double qmin_double = quantization_min_val; const double qmax_double = quantization_max_val; float inv_scale = 0; scale = (rmax - rmin) / (qmax_double - qmin_double); if (rmax - rmin != 0) { // Re-calculate the inverse instead of using (1./scale), to avoid loss of // precision. inv_scale = (qmax_double - qmin_double) / (rmax - rmin); } if (scale == 0 || !std::isfinite(inv_scale)) { quantized_tensor.setZero(); scale = 1.0; zero_point = 0; return OkStatus(); } // Using the scale calculated from the quantization range and data range, // calculate zero point from quantization min and quantization max. // Among those two, choose the zero point that has smaller error. const double zero_point_from_min = qmin_double - rmin / scale; const double zero_point_from_max = qmax_double - rmax / scale; const double zero_point_from_min_error = std::abs(qmin_double) + std::abs(rmin / scale); const double zero_point_from_max_error = std::abs(qmax_double) + std::abs(rmax / scale); const double zero_point_double = zero_point_from_min_error < zero_point_from_max_error ? zero_point_from_min : zero_point_from_max; int8_t nudged_zero_point = 0; if (zero_point_double <= qmin_double) { nudged_zero_point = quantization_min_val; } else if (zero_point_double >= qmax_double) { nudged_zero_point = quantization_max_val; } else { nudged_zero_point = static_cast<int8_t>(round(zero_point_double)); } zero_point = nudged_zero_point; AffineQuantize(input_tensor, inv_scale, zero_point, quantization_min_val, quantization_max_val, quantized_tensor); return OkStatus(); } // Given double_multiplier, quantize it where it is represented by two int32_t, // quantized_multiplier and shift. // // double_multiplier must be a positive finite number. Otherwise returns // InvalidArgument. // // Output quantized_multiplier is clamped to range [0, INT32_MAX], // and shift is clamped to range [-31, 30]. Status QuantizeMultiplier(double double_multiplier, int32_t& quantized_multiplier, int32_t& shift); // Requantize input_val given quantized effective_muliplier|shift and // input|output zero_point. // Effective multiplier and shift should be calculated from effective scale // which is: // (product of input scales) / (product of output scales). template <typename Tin, typename Tout> Tout AffineRequantizeWithQuantizedMultiplierAndShift( Tin input_val, int32_t effective_quantized_multiplier, int effective_shift, int32_t input_zero_point, int32_t output_zero_point, int32_t quantization_min_val, int32_t quantization_max_val) { const int32_t input = static_cast<int32_t>(input_val) - input_zero_point; const int32_t unclamped = internal::MultiplyByQuantizedMultiplier( input, effective_quantized_multiplier, effective_shift) + output_zero_point; // Clamp with [quantization_min_val, quantization_max_val]. return static_cast<Tout>( std::max<int32_t>(std::min<int32_t>(unclamped, quantization_max_val), quantization_min_val)); } } // namespace tensorflow #endif // TENSORFLOW_CORE_KERNELS_UNIFORM_QUANT_OPS_MATH_UTILS_H_
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
fb4540fb00ca2a0d58decbdcb65383068bf96994
b473c4fdbba2eaeb0e5eb7f3d0b7da98f2d97143
/Test/Spawner.cpp
49bed825cce2682ad44a00a68558e8e7f3bec19c
[]
no_license
MikouZonata/HEOPB
d30432e42a47930cae90068553610452e2faad10
3be6dc50c781ec091f75cc3166950656fd0c9083
refs/heads/master
2020-08-04T20:26:19.565661
2016-09-11T21:34:52
2016-09-11T21:34:52
67,955,598
0
0
null
null
null
null
UTF-8
C++
false
false
71
cpp
#include "Spawner.h" Spawner::Spawner() { } Spawner::~Spawner() { }
[ "kevin.vanas@student.hku.nl" ]
kevin.vanas@student.hku.nl
c3bd7ade03bb531109397fb1a7bbe26a943e1cbf
4cb0f2cfb9ec3ec8c851f83ff3ea73ca5a62aa70
/democodebase/pt/d3d9/texture_2d.h
d23e7e1c834191f98409ca991f17fc570e530cde
[]
no_license
Codarki/Pyrotech_2016
99733bb543621d755dc0451cee86e3988021a1e2
5e7a71b9ec751061285f3f784e861ac8f2726ee1
refs/heads/main
2023-05-30T08:11:30.626406
2021-06-24T23:13:53
2021-06-24T23:13:53
380,065,207
0
0
null
null
null
null
UTF-8
C++
false
false
2,154
h
#pragma once #ifndef PT_D3D9_TEXTURE_2D_H #define PT_D3D9_TEXTURE_2D_H #include "resource.h" #include "native.h" #include "pt/com_ptr.h" #include "pt/vector.h" #include "pt/std/memory.h" namespace pt { namespace d3d9 { class texture_2d : public resource { public: texture_2d(graphics_device& device, com_ptr<IDirect3DTexture9> native); texture_2d(texture_2d&& other); ~texture_2d(); vector2i resolution() const; com_ptr<IDirect3DTexture9>& native(); com_ptr<IDirect3DTexture9> const& native() const; public: // interface required by resource void before_destruction(); void before_reset(); void after_reset(); private: // data members com_ptr<IDirect3DTexture9> m_texture; }; com_ptr<IDirect3DSurface9> surface_level(texture_2d& texture, size_t level); com_ptr<IDirect3DSurface9> surface_level(com_ptr<IDirect3DTexture9>& texture, UINT level); /// Sets \a texture to \a sampler_index. void set_texture(texture_2d const& texture, size_t sampler_index); /// Scoped render target into texture_2d. class scoped_render_target_texture { public: /// Sets \a texture's first mip level at render target 0. scoped_render_target_texture(texture_2d& texture); /// Sets \a texture's \a mip_level at render target \a index. scoped_render_target_texture(texture_2d& texture, size_t mip_level, DWORD index); /// Restores previous render target. ~scoped_render_target_texture(); private: // helper functions void set(UINT mip_level); private: // noncopyable scoped_render_target_texture(scoped_render_target_texture const&); scoped_render_target_texture const& operator=(scoped_render_target_texture const&); private: // data members texture_2d& m_texture; DWORD m_index; com_ptr<IDirect3DSurface9> m_old; }; class scoped_optional_rendertarget_texture : optional_device_reference { public: scoped_optional_rendertarget_texture(std::shared_ptr<texture_2d> texture); ~scoped_optional_rendertarget_texture(); private: // data members std::shared_ptr<d3d9::texture_2d> m_texture; com_ptr<IDirect3DSurface9> m_old; }; }} // namespace pt::d3d9 #endif
[ "pietila.kimmo@gmail.com" ]
pietila.kimmo@gmail.com
e1905a960b60babdd74ad81134147bf2df452319
ee48513be93cf3010123c412c0f81783d8910b30
/examples/declarative/cppextensions/referenceexamples/signal/.moc/release-shared-emb-armv8/moc_birthdayparty.cpp
1fddf729a6cbd18a4ec471959bbe767a8ff2bfd0
[]
no_license
wanglouxiaozi/qt-4.7.3-arm64
f3e446cb1a588c3250a3071cf8c38482168d680b
e61356155afd67f2009dc2055a65b0b60bf66b34
refs/heads/master
2020-03-27T08:14:33.441059
2018-08-27T02:21:38
2018-08-27T02:21:38
146,235,666
0
0
null
null
null
null
UTF-8
C++
false
false
6,235
cpp
/**************************************************************************** ** Meta object code from reading C++ file 'birthdayparty.h' ** ** Created: Tue Aug 21 18:25:53 2018 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.3) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "../../birthdayparty.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'birthdayparty.h' doesn't include <QObject>." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.3. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_BirthdayPartyAttached[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 1, 14, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // properties: name, type, flags 28, 22, 0x0e095103, 0 // eod }; static const char qt_meta_stringdata_BirthdayPartyAttached[] = { "BirthdayPartyAttached\0QDate\0rsvp\0" }; const QMetaObject BirthdayPartyAttached::staticMetaObject = { { &QObject::staticMetaObject, qt_meta_stringdata_BirthdayPartyAttached, qt_meta_data_BirthdayPartyAttached, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &BirthdayPartyAttached::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *BirthdayPartyAttached::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *BirthdayPartyAttached::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_BirthdayPartyAttached)) return static_cast<void*>(const_cast< BirthdayPartyAttached*>(this)); return QObject::qt_metacast(_clname); } int BirthdayPartyAttached::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; #ifndef QT_NO_PROPERTIES if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< QDate*>(_v) = rsvp(); break; } _id -= 1; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 0: setRsvp(*reinterpret_cast< QDate*>(_v)); break; } _id -= 1; } else if (_c == QMetaObject::ResetProperty) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 1; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 1; } #endif // QT_NO_PROPERTIES return _id; } static const uint qt_meta_data_BirthdayParty[] = { // content: 5, // revision 0, // classname 1, 14, // classinfo 1, 16, // methods 2, 21, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 1, // signalCount // classinfo: key, value 21, 14, // signals: signature, parameters, type, tag, flags 43, 38, 37, 37, 0x05, // properties: name, type, flags 71, 63, 0x0009510b, 14, 76, 0x00095009, 0 // eod }; static const char qt_meta_stringdata_BirthdayParty[] = { "BirthdayParty\0guests\0DefaultProperty\0" "\0time\0partyStarted(QTime)\0Person*\0" "host\0QDeclarativeListProperty<Person>\0" }; const QMetaObject BirthdayParty::staticMetaObject = { { &QObject::staticMetaObject, qt_meta_stringdata_BirthdayParty, qt_meta_data_BirthdayParty, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &BirthdayParty::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *BirthdayParty::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *BirthdayParty::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_BirthdayParty)) return static_cast<void*>(const_cast< BirthdayParty*>(this)); return QObject::qt_metacast(_clname); } int BirthdayParty::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: partyStarted((*reinterpret_cast< const QTime(*)>(_a[1]))); break; default: ; } _id -= 1; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< Person**>(_v) = host(); break; case 1: *reinterpret_cast< QDeclarativeListProperty<Person>*>(_v) = guests(); break; } _id -= 2; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 0: setHost(*reinterpret_cast< Person**>(_v)); break; } _id -= 2; } else if (_c == QMetaObject::ResetProperty) { _id -= 2; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 2; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 2; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 2; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 2; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 2; } #endif // QT_NO_PROPERTIES return _id; } // SIGNAL 0 void BirthdayParty::partyStarted(const QTime & _t1) { void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; QMetaObject::activate(this, &staticMetaObject, 0, _a); } QT_END_MOC_NAMESPACE
[ "allenwang@tvunetworks.com" ]
allenwang@tvunetworks.com
cb8afa3c108bb184ab805bf9ef254c66c685f145
ee5fea5d2e031fb6af7d3c1e77454c3e1e4016bf
/4-math/number-theory/discrete-log.cpp
19355d94e521fc31ba51c68b257498ace555f524
[]
no_license
Cothrax/cothrax-acm-scl
b348f63d972569eeff2309eaf2e54114c0965c05
e5bb9dc8b51346bf80d1df28a32d2e97548344b0
refs/heads/master
2021-07-02T13:48:45.341938
2021-01-11T18:05:28
2021-01-11T18:05:28
213,814,672
1
0
null
null
null
null
UTF-8
C++
false
false
1,856
cpp
/* 求满足x^k=a (mod p)的所有x, 不存在输出-1 (sgu 261) k * ind(x) = ind(a) (mod phi(p)) 求ind(x)即可 var: p, k, a : 参数 fac[N], sz : p的因子, 栈顶指针 func: extgcd(a, b, &x, &y) : extgcd get_rt() : 求p的原根g bsgs(g) : 求满足g^y=a (mod p)的y (求ind(a)) solv(p, k, a) : 接口 */ namespace disc_log { ll extgcd(ll a, ll b, ll &x, ll &y) { if(!b) { x = 1; y = 0; return a; } ll d = extgcd(b, a%b, y, x); y -= (a/b)*x; return d; } ll p, k, a, fac[N], sz = 0; ll get_rt() { ll n = p-1; for(int i = 2; i*i <= n; i++) if(n%i == 0) { fac[++sz] = i; while(n%i == 0) n/=i; } if(n != 1) fac[++sz] = n; n = p-1; rep(i, 1, n) { bool flg = 0; rep(j, 1, sz) if(Pow(i, n/fac[j], p) == 1) { flg = 1; break; } if(!flg) return i; } } map<ll, ll> hs; ll bsgs(ll g) { ll q = ceil(sqrt(p)), cur = 1; rep(i, 0, q-1) hs.insert(mkp(a*cur%p, i)), (cur*=g)%=p; ll tmp = Pow(g, q, p); cur = 1; rep(i, 0, q) { map<ll, ll>::iterator it = hs.find(cur); if(it != hs.end()) return q*i-(*it).Y; (cur*=tmp)%=p; } printf("-1"); exit(0); } void solv(ll k0, ll a0, ll p0) { a = a0; k = k0; p = p0; ll g = get_rt(); ll t = bsgs(g); ll phi = p-1, x0, y0, d = extgcd(k, phi, x0, y0); if(t%d) { printf("-1"); return; } ll step = phi/d; x0 = x0*t/d%step; if(x0 < 0) x0 += step; printf("%lld", Pow(g, x0, p)); } }
[ "clarklee.me@gmail.com" ]
clarklee.me@gmail.com
5457f55d7f0a296dbe431f81bc8208bf76088fd7
dc94d3c5536ce2439e4909a8c83497683eeb8de2
/6_5_textLCD_library/main.cpp
c03f3aa515713ce16e4387f03df889ddb55bd21b
[]
no_license
AndyLun/mbed06
81d66efe8d2d60df7c3f34f9645d381617e7b6a4
8ad0a340d8a438a438b2fa6a2fdf99e56d968c49
refs/heads/master
2021-05-26T02:37:42.649444
2020-04-08T09:28:54
2020-04-08T09:28:54
254,019,008
0
0
null
null
null
null
UTF-8
C++
false
false
1,556
cpp
#include "mbed.h" #include "TextLCD.h" // Host PC Communication channels Serial pc(USBTX, USBRX); // tx, rx // I2C Communication I2C i2c_lcd(D14, D15); // SDA, SCL //TextLCD_SPI lcd(&spi_lcd, p8, TextLCD::LCD40x4); // SPI bus, 74595 expander, CS pin, LCD Type TextLCD_I2C lcd(&i2c_lcd, 0x4E, TextLCD::LCD16x2); // I2C bus, PCF8574 Slaveaddress, LCD Type //TextLCD_I2C lcd(&i2c_lcd, 0x42, TextLCD::LCD16x2, TextLCD::WS0010); // I2C bus, PCF8574 Slaveaddress, LCD Type, Device Type //TextLCD_SPI_N lcd(&spi_lcd, p8, p9); // SPI bus, CS pin, RS pin, LCDType=LCD16x2, BL=NC, LCDTCtrl=ST7032_3V3 //TextLCD_I2C_N lcd(&i2c_lcd, ST7032_SA, TextLCD::LCD16x2, NC, TextLCD::ST7032_3V3); // I2C bus, Slaveaddress, LCD Type, BL=NC, LCDTCtrl=ST7032_3V3 int main() { pc.printf("LCD Test. Columns=%d, Rows=%d\n\r", lcd.columns(), lcd.rows()); for (int row = 0; row < lcd.rows(); row++) { int col = 0; pc.printf("MemAddr(Col=%d, Row=%d)=0x%02X\n\r", col, row, lcd.getAddress(col, row)); // lcd.putc('-'); lcd.putc('0' + row); for (col = 1; col < lcd.columns() - 1; col++) { lcd.putc('*'); } pc.printf("MemAddr(Col=%d, Row=%d)=0x%02X\n\r", col, row, lcd.getAddress(col, row)); lcd.putc('+'); } // Show cursor as blinking character lcd.setCursor(TextLCD::CurOff_BlkOn); // Set and show user defined characters. A maximum of 8 UDCs are supported by the HD44780. // They are defined by a 5x7 bitpattern. lcd.setUDC(0, (char *)udc_0); // Show |> lcd.putc(0); lcd.setUDC(1, (char *)udc_1); // Show <| lcd.putc(1); }
[ "andylun2009@gmail.com" ]
andylun2009@gmail.com
ee25c5f7cb1b1da84e306dae82b2fe044f38f279
a4f955e84880c1a110e65484187d221c54b7c799
/ch02/const.cpp
d814b1c2b8d211e383ee71cee8a72c006d73dc44
[]
no_license
kk4728/CppPrimer5th
5fe6a1997002ed8e8ef3c0c0a508666b403956af
7fa2d6d7957fe0a8b53a2cbfe71e63babb16cdee
refs/heads/master
2020-04-24T18:12:12.155711
2019-04-23T08:25:04
2019-04-23T08:25:04
172,173,131
0
0
null
null
null
null
UTF-8
C++
false
false
461
cpp
#include <iostream> void f2_4_1() { int i = 42; int &r1 = i; const int &r2 = i; r1 = 0; //r2 = 0; } void f2_4_2() { const int i = 42; //int* ptr = &i; const int* ptr = &i; const int* const ptr2 = &i; //*ptr = 5; } void f_constexpr() { const int max_files = 20; const int limit = max_files + 1; int staff_size = 27; // const int sz = get_size(); constexpr int mf = 20; constexpr int limit1 = mf + 1; // constexpr int sz = size(); }
[ "rong.gong@foxmail.com" ]
rong.gong@foxmail.com
db65977f3aff87edfe67a71b69cafb49dbbb1d88
399b5e377fdd741fe6e7b845b70491b9ce2cccfd
/LLVM_src/libcxx/test/std/containers/associative/set/iterator.pass.cpp
5212e3fcfa340c08c0bfc66e4ba92375b8e8ef4a
[ "NCSA", "LLVM-exception", "MIT", "Apache-2.0" ]
permissive
zslwyuan/LLVM-9-for-Light-HLS
6ebdd03769c6b55e5eec923cb89e4a8efc7dc9ab
ec6973122a0e65d963356e0fb2bff7488150087c
refs/heads/master
2021-06-30T20:12:46.289053
2020-12-07T07:52:19
2020-12-07T07:52:19
203,967,206
1
3
null
2019-10-29T14:45:36
2019-08-23T09:25:42
C++
UTF-8
C++
false
false
5,453
cpp
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // <set> // class set // iterator begin(); // const_iterator begin() const; // iterator end(); // const_iterator end() const; // // reverse_iterator rbegin(); // const_reverse_iterator rbegin() const; // reverse_iterator rend(); // const_reverse_iterator rend() const; // // const_iterator cbegin() const; // const_iterator cend() const; // const_reverse_iterator crbegin() const; // const_reverse_iterator crend() const; #include <set> #include <cassert> #include <cstddef> #include "test_macros.h" #include "min_allocator.h" int main() { { typedef int V; V ar[] = { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8 }; std::set<int> m(ar, ar+sizeof(ar)/sizeof(ar[0])); assert(static_cast<std::size_t>(std::distance(m.begin(), m.end())) == m.size()); assert(static_cast<std::size_t>(std::distance(m.rbegin(), m.rend())) == m.size()); std::set<int>::iterator i; i = m.begin(); std::set<int>::const_iterator k = i; assert(i == k); for (int j = 1; static_cast<std::size_t>(j) <= m.size(); ++j, ++i) assert(*i == j); } { typedef int V; V ar[] = { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8 }; const std::set<int> m(ar, ar+sizeof(ar)/sizeof(ar[0])); assert(static_cast<std::size_t>(std::distance(m.begin(), m.end())) == m.size()); assert(static_cast<std::size_t>(std::distance(m.cbegin(), m.cend())) == m.size()); assert(static_cast<std::size_t>(std::distance(m.rbegin(), m.rend())) == m.size()); assert(static_cast<std::size_t>(std::distance(m.crbegin(), m.crend())) == m.size()); std::set<int>::const_iterator i; i = m.begin(); for (int j = 1; static_cast<std::size_t>(j) <= m.size(); ++j, ++i) assert(*i == j); } #if TEST_STD_VER >= 11 { typedef int V; V ar[] = { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8 }; std::set<int, std::less<int>, min_allocator<int>> m(ar, ar+sizeof(ar)/sizeof(ar[0])); assert(static_cast<std::size_t>(std::distance(m.begin(), m.end())) == m.size()); assert(static_cast<std::size_t>(std::distance(m.rbegin(), m.rend())) == m.size()); std::set<int, std::less<int>, min_allocator<int>>::iterator i; i = m.begin(); std::set<int, std::less<int>, min_allocator<int>>::const_iterator k = i; assert(i == k); for (int j = 1; static_cast<std::size_t>(j) <= m.size(); ++j, ++i) assert(*i == j); } { typedef int V; V ar[] = { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8 }; const std::set<int, std::less<int>, min_allocator<int>> m(ar, ar+sizeof(ar)/sizeof(ar[0])); assert(static_cast<std::size_t>(std::distance(m.begin(), m.end())) == m.size()); assert(static_cast<std::size_t>(std::distance(m.cbegin(), m.cend())) == m.size()); assert(static_cast<std::size_t>(std::distance(m.rbegin(), m.rend())) == m.size()); assert(static_cast<std::size_t>(std::distance(m.crbegin(), m.crend())) == m.size()); std::set<int, std::less<int>, min_allocator<int>>::const_iterator i; i = m.begin(); for (int j = 1; static_cast<std::size_t>(j) <= m.size(); ++j, ++i) assert(*i == j); } #endif #if TEST_STD_VER > 11 { // N3644 testing typedef std::set<int> C; C::iterator ii1{}, ii2{}; C::iterator ii4 = ii1; C::const_iterator cii{}; assert ( ii1 == ii2 ); assert ( ii1 == ii4 ); assert (!(ii1 != ii2 )); assert ( (ii1 == cii )); assert ( (cii == ii1 )); assert (!(ii1 != cii )); assert (!(cii != ii1 )); } #endif }
[ "tliang@connect.ust.hk" ]
tliang@connect.ust.hk
45f1910ba3a798fa2b46b16310817268a66182b0
774475d0dff27020d2aafa85c70e62a5c81e148c
/stalkerGuard/sketch_feb10a/sketch_feb10a.ino
78ff0656316ebbd6ee6bc2e3e5f189bef42ffcc7
[]
no_license
zacsketches/Arduino
0e3c85558f3d99946ed8aa9d16657725dfd874c6
7ba41f26c7504e2872250f22a407a50b9aa2384f
refs/heads/master
2020-05-28T08:46:33.765934
2014-09-19T17:16:48
2014-09-19T17:16:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
324
ino
//This will make the motor buzz 3 times if something gets close enough int motorPin = 5; void setup() { pinMode(motorPin, OUTPUT); digitalWrite(motorPin, HIGH); digitalWrite(motorPin, LOW); digitalWrite(motorPin, HIGH); digitalWrite(motorPin, LOW); digitalWrite(motorPin, HIGH); } void loop() { delay(100); }
[ "zacstaples@mac.com" ]
zacstaples@mac.com
7072d3be3dec27b829eb546771a683281fd11cae
c338fccc7cb3701eacd2607c3109760e27839e72
/src/integrators/photonmapper/apa/apa_splatting_proc.h
036b90a404efc99246b58d80130ccdcf0806c5c5
[]
no_license
beltegeuse/spatialTF_code
4a68542608d4c90d00abbc084b6523d165d01d46
5e0b36ea7447b23612cd4e503561e669e4fbdba3
refs/heads/master
2023-05-02T04:22:59.324326
2023-04-24T14:22:20
2023-04-24T14:22:20
85,464,219
20
5
null
null
null
null
UTF-8
C++
false
false
3,851
h
#pragma once #include <fstream> #include <mitsuba/core/plugin.h> #include <mitsuba/render/renderqueue.h> #include <mitsuba/render/gatherproc.h> #include "../../metropolis/pssmlt_sampler.h" #include "splatting.h" MTS_NAMESPACE_BEGIN ////////////////////////////////////////////////////////////////////////// // Empty Workresults ////////////////////////////////////////////////////////////////////////// class GatherPhotonResult: public WorkResult { public: GatherPhotonResult(): WorkResult() { m_nbEmittedPath = 0; } ////////////////////////////////////////////////////////////////////////// // Pure virtual impl methods ////////////////////////////////////////////////////////////////////////// void load(Stream* stream) { Log(EError,"No serialization implemented ... "); } void save(Stream* stream) const { Log(EError,"No serialization implemented ... "); } std::string toString() const { return "GatherPhotonResult[NULL]"; } ////////////////////////////////////////////////////////////////////////// // Use full methods ////////////////////////////////////////////////////////////////////////// /// Clear all results data void clear() { m_nbEmittedPath = 0; } void nextEmittedPath() { m_nbEmittedPath++; } size_t getNbEmittedPath() const { return m_nbEmittedPath; } MTS_DECLARE_CLASS() protected: size_t m_nbEmittedPath; }; ////////////////////////////////////////////////////////////////////////// // Worker ////////////////////////////////////////////////////////////////////////// class SplattingPhotonWorker : public ParticleTracer { public: SplattingPhotonWorker(size_t granularity, int maxDepth, int rrDepth, int idWorker); SplattingPhotonWorker(Stream *stream, InstanceManager *manager); ref<WorkProcessor> clone() const; virtual void prepare(); void serialize(Stream *stream, InstanceManager *manager) const; ref<WorkResult> createWorkResult() const; void process(const WorkUnit *workUnit, WorkResult *workResult, const bool &stop); void handleMediumInteraction(int depth, int nullInteractions, bool delta, const MediumSamplingRecord &mRec, const Medium *medium, const Vector &wi, const Spectrum &weight) { // === No Volume support Log(EError, "No support of volume rendering"); } void handleFinishParticule(); void handleNewPath(); void handleSurfaceInteraction(int depth_, int nullInteractions, bool delta, const Intersection &its, const Medium *medium, const Spectrum &weight); MTS_DECLARE_CLASS() protected: /// Virtual destructor virtual ~SplattingPhotonWorker() { } protected: GatherPhotonResult* m_workResult; GatherPointMap* m_gathermap; size_t m_granularity; int m_idWorker; }; ////////////////////////////////////////////////////////////////////////// // Parrall process ////////////////////////////////////////////////////////////////////////// class SplattingPhotonProcess: public ParticleProcess { protected: ////////////////////////////////////////////////////////////////////////// // Attributes ////////////////////////////////////////////////////////////////////////// size_t m_photonCount; int m_maxDepth; int m_rrDepth; size_t m_numEmittedPath; mutable int m_idWorker; public: SplattingPhotonProcess(size_t photonCount, size_t granularity, int maxDepth, int rrDepth, const void *progressReporterPayload); ref<WorkProcessor> createWorkProcessor() const; void processResult(const WorkResult *wr, bool cancelled); bool isLocal() const { return true; } int getNbEmittedPath() { return m_numEmittedPath; } MTS_DECLARE_CLASS() }; MTS_NAMESPACE_END
[ "adrien.gruson@gmail.com" ]
adrien.gruson@gmail.com
c93604613c7c9632bd824ff8b9af68c5e6a1c0c0
be0940b61c6f6f32f86e67e2a2b72b3f7959467f
/Panda3D-1.8.1/include/winGraphicsWindow.h
98cf1583367be5496abee8b6d7febfeb6098a223
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
OldWare/OldToontown
b8b6e88f503e4814422f45d3638356f9c27f98e1
82b5fd6389b83bb3fe8739b2c765d18bac6223e6
refs/heads/master
2021-01-22T19:14:50.679547
2014-09-27T02:14:50
2014-09-27T02:14:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,554
h
// Filename: winGraphicsWindow.h // Created by: drose (20Dec02) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should have received a copy of this license along // with this source code in a file named "LICENSE." // //////////////////////////////////////////////////////////////////// #ifndef WINGRAPHICSWINDOW_H #define WINGRAPHICSWINDOW_H #include "pandabase.h" #include "graphicsWindow.h" #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN 1 #endif #include <windows.h> class WinGraphicsPipe; #define PM_ACTIVE (WM_APP+123) #define PM_INACTIVE (WM_APP+124) #define MAX_TOUCHES 20 typedef struct { int x; int y; int width; int height; } WINDOW_METRICS; //////////////////////////////////////////////////////////////////// // Class : WinGraphicsWindow // Description : An abstract base class for glGraphicsWindow and // dxGraphicsWindow (and, in general, graphics windows // that interface with the Microsoft Windows API). // // This class includes all the code for manipulating // windows themselves: opening them, closing them, // responding to user keyboard and mouse input, and so // on. It does not make any 3-D rendering calls into // the window; that is the province of the // GraphicsStateGuardian. //////////////////////////////////////////////////////////////////// class EXPCL_PANDAWIN WinGraphicsWindow : public GraphicsWindow { public: WinGraphicsWindow(GraphicsEngine *engine, GraphicsPipe *pipe, const string &name, const FrameBufferProperties &fb_prop, const WindowProperties &win_prop, int flags, GraphicsStateGuardian *gsg, GraphicsOutput *host); virtual ~WinGraphicsWindow(); virtual bool move_pointer(int device, int x, int y); virtual void close_ime(); virtual void begin_flip(); virtual void process_events(); virtual void set_properties_now(WindowProperties &properties); void receive_windows_message(unsigned int msg, int wparam, int lparam); virtual LONG window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); static LONG WINAPI static_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam); virtual bool handle_mouse_motion(int x, int y); virtual void handle_mouse_exit(); INLINE HWND get_ime_hwnd(); virtual void add_window_proc( const GraphicsWindowProc* wnd_proc_object ); virtual void remove_window_proc( const GraphicsWindowProc* wnd_proc_object ); virtual void clear_window_procs(); virtual bool supports_window_procs() const; virtual bool is_touch_event(GraphicsWindowProcCallbackData* callbackData); virtual int get_num_touches(); virtual TouchInfo get_touch_info(int index); protected: void trigger_flip(); virtual void close_window(); virtual bool open_window(); virtual void fullscreen_minimized(WindowProperties &properties); virtual void fullscreen_restored(WindowProperties &properties); virtual bool do_reshape_request(int x_origin, int y_origin, bool has_origin, int x_size, int y_size); virtual void handle_reshape(); virtual bool do_fullscreen_resize(int x_size, int y_size); virtual bool do_fullscreen_switch(); virtual bool do_windowed_switch(); virtual bool do_fullscreen_enable(); virtual bool do_fullscreen_disable(); virtual bool calculate_metrics(bool fullscreen, DWORD style, WINDOW_METRICS &metrics, bool &has_origin); virtual DWORD make_style(bool fullscreen); virtual void reconsider_fullscreen_size(DWORD &x_size, DWORD &y_size, DWORD &bitdepth); virtual void support_overlay_window(bool flag); private: bool open_graphic_window(bool fullscreen); void adjust_z_order(); void adjust_z_order(WindowProperties::ZOrder last_z_order, WindowProperties::ZOrder this_z_order); void initialize_input_devices(); void handle_raw_input(HRAWINPUT hraw); void track_mouse_leaving(HWND hwnd); void set_focus(); static void process_1_event(); void handle_keypress(ButtonHandle key, int x, int y, double time); void handle_keyresume(ButtonHandle key, double time); void handle_keyrelease(ButtonHandle key, double time); ButtonHandle lookup_key(WPARAM wparam) const; INLINE int translate_mouse(int pos) const; INLINE void set_cursor_in_window(); INLINE void set_cursor_out_of_window(); INLINE static double get_message_time(); void resend_lost_keypresses(); void release_all_buttons(); static void update_cursor_window(WinGraphicsWindow *to_window); static void hide_or_show_cursor(bool hide_cursor); static bool find_acceptable_display_mode(DWORD dwWidth, DWORD dwHeight, DWORD bpp, DEVMODE &dm); static void show_error_message(DWORD message_id = 0); protected: HWND _hWnd; HWND _hparent; private: HWND _ime_hWnd; bool _ime_open; bool _ime_active; bool _tracking_mouse_leaving; bool _maximized; bool _bCursor_in_WindowClientArea; HANDLE _input_device_handle[32]; HCURSOR _cursor; DEVMODE _fullscreen_display_mode; bool _lost_keypresses; // These are used to store the status of the individual left and right // shift, control, and alt keys. Keyboard events are not sent for // these individual keys, but for each pair as a whole. The status // of each key must be checked as keypress and keyrelease events are // received. bool _lshift_down; bool _rshift_down; bool _lcontrol_down; bool _rcontrol_down; bool _lalt_down; bool _ralt_down; // following adds support platform specfic window processing // functions. typedef pset<GraphicsWindowProc*> WinProcClasses; WinProcClasses _window_proc_classes; #ifdef HAVE_WIN_TOUCHINPUT UINT _numTouches; TOUCHINPUT _touches[MAX_TOUCHES]; #endif private: // We need this map to support per-window calls to window_proc(). typedef map<HWND, WinGraphicsWindow *> WindowHandles; static WindowHandles _window_handles; // And we need a static pointer to the current WinGraphicsWindow we // are creating at the moment, since CreateWindow() starts // generating window events before it gives us the window handle. static WinGraphicsWindow *_creating_window; // This tracks the current GraphicsWindow whose client area contains // the mouse. There will only be one of these at a time, and // storing the pointer here allows us to handle ambiguities in the // order in which messages are passed from Windows to the various // windows we manage. This pointer is used by // set_cursor_in_window() to determine when it is time to call // update_cursor() to hide the cursor (or do other related // operations). static WinGraphicsWindow *_cursor_window; static bool _cursor_hidden; static bool _got_saved_params; static int _saved_mouse_trails; static BOOL _saved_cursor_shadow; static BOOL _saved_mouse_vanish; // Since the Panda API requests icons and cursors by filename, we // need a table mapping filenames to handles, so we can avoid // re-reading the file each time we change icons. typedef pmap<Filename, HANDLE> IconFilenames; static IconFilenames _icon_filenames; static IconFilenames _cursor_filenames; static HICON get_icon(const Filename &filename); static HCURSOR get_cursor(const Filename &filename); // The table of window classes we have registered. We need to // register a different window class for each different window icon // (the cursor we can specify dynamically, later). We might have // other requirements too, later. class WindowClass { public: INLINE WindowClass(const WindowProperties &props); INLINE bool operator < (const WindowClass &other) const; wstring _name; HICON _icon; }; typedef pset<WindowClass> WindowClasses; static WindowClasses _window_classes; static int _window_class_index; static const WindowClass &register_window_class(const WindowProperties &props); private: // This subclass of WindowHandle is stored in _window_handle to // represent this particular window. We use it to add hooks for // communicating with the parent window, in particular to receive // keyboard events from the parent window when necessary. class WinWindowHandle : public WindowHandle { public: WinWindowHandle(WinGraphicsWindow *window, const WindowHandle &copy); void clear_window(); protected: virtual void receive_windows_message(unsigned int msg, int wparam, int lparam); private: // Not reference-counted, to avoid a circular reference count. WinGraphicsWindow *_window; public: static TypeHandle get_class_type() { return _type_handle; } static void init_type() { WindowHandle::init_type(); register_type(_type_handle, "WinWindowHandle", WindowHandle::get_class_type()); } virtual TypeHandle get_type() const { return get_class_type(); } virtual TypeHandle force_init_type() {init_type(); return get_class_type();} private: static TypeHandle _type_handle; }; public: static TypeHandle get_class_type() { return _type_handle; } static void init_type() { GraphicsWindow::init_type(); register_type(_type_handle, "WinGraphicsWindow", GraphicsWindow::get_class_type()); WinWindowHandle::init_type(); } virtual TypeHandle get_type() const { return get_class_type(); } virtual TypeHandle force_init_type() {init_type(); return get_class_type();} private: static TypeHandle _type_handle; }; #define PRINT_LAST_ERROR 0 extern EXPCL_PANDAWIN void PrintErrorMessage(DWORD msgID); extern EXPCL_PANDAWIN void ClearToBlack(HWND hWnd, const WindowProperties &props); extern EXPCL_PANDAWIN void get_client_rect_screen(HWND hwnd, RECT *view_rect); #include "winGraphicsWindow.I" #endif
[ "a784b2a1@opayq.com" ]
a784b2a1@opayq.com
8cd744946143e130e3acd619f7fbba25f001e5d0
e6d43e0c281609abfab297f756f94e4aff3a458c
/frame.hpp
2845929f2ccf44e794465a9855421ff80a81df6c
[]
no_license
charberg/LED_Gold
7477d9701f50d670dc77f1cc48702011d57981b9
baf34333243e22ed5af2ad8b8edc987e09972292
refs/heads/master
2021-07-11T13:47:11.207016
2020-08-09T18:15:59
2020-08-09T18:15:59
20,626,045
4
2
null
null
null
null
UTF-8
C++
false
false
375
hpp
#ifndef FRAME__HPP #define FRAME__HPP #include <stdint.h> #define mainLength 6 #define mainHeight 19 #define sideLength 4 #define sideHeight 7 typedef struct pixel_m { uint8_t r; uint8_t g; uint8_t b; } pixel_t; class Frame { public: pixel_t m_face[mainLength][mainHeight]; pixel_t m_side[sideLength][sideHeight]; unsigned int delay; Frame(); }; #endif
[ "charlesbergeron@cmail.carleton.ca" ]
charlesbergeron@cmail.carleton.ca
c2d2c75ffddfef212cb8fc983342da3fa41328a2
9673103a354b019b7ff55541a9cc7476507cbf0e
/src/lof/main.cpp
f5a3b0078f185f3311baddbad79769d1f7fab999
[]
no_license
crepererum/GraBaSS
59ba8fa0401173f07035115b4f8d3b1268b30187
b8b908d82bea7f00cee3b28e906179b08255a34c
refs/heads/master
2016-09-05T09:12:28.799858
2013-09-17T13:46:20
2013-09-17T13:46:20
9,149,795
0
1
null
null
null
null
UTF-8
C++
false
false
10,832
cpp
#include <algorithm> #include <atomic> #include <cassert> #include <iostream> #include <limits> #include <list> #include <memory> #include <ostream> #include <sstream> #include <unordered_set> #include <vector> #include <boost/program_options.hpp> #include <tbb/blocked_range.h> #include <tbb/parallel_reduce.h> #include <tbb/task_scheduler_init.h> #include "sys.hpp" #include "tracer.hpp" #include "greycore/database.hpp" #include "greycore/dim.hpp" #include "greycore/wrapper/graph.hpp" namespace gc = greycore; namespace po = boost::program_options; typedef std::vector<std::vector<std::tuple<std::size_t, data_t>>> distCache_t; typedef std::vector<std::tuple<data_t, std::size_t>> kDists_t; typedef std::vector<datadimObj_t::segment_t*> segmentPtrs_t; std::vector<std::size_t> parseSS(const std::string& s) { std::stringstream stream(s); std::vector<std::size_t> result; std::string id; while (std::getline(stream, id, ',')) { std::size_t tmp; std::istringstream(id) >> tmp; result.push_back(tmp); } return result; } data_t d(std::size_t i, std::size_t j, const segmentPtrs_t& ptrs1, const segmentPtrs_t& ptrs2) { data_t sum = 0; for (std::size_t s = 0; s < ptrs1.size(); ++s) { data_t posA = (*(ptrs1[s]))[i]; data_t posB = (*(ptrs2[s]))[j]; data_t delta = posA - posB; sum += delta * delta; } return sqrt(sum); } class TBBHelper { public: TBBHelper(distCache_t& _result, std::size_t _kMax, const std::vector<datadim_t>& _data, const std::vector<std::size_t>& _subspace, std::atomic<std::size_t>& _progress, std::size_t _obj1base, segmentPtrs_t& _segmentPtr1) : result(_result), kMax(_kMax), data(_data), subspace(_subspace), progress(_progress), obj1base(_obj1base), segmentPtr1(_segmentPtr1) {} TBBHelper(TBBHelper& obj, tbb::split) : result(obj.result), kMax(obj.kMax), data(obj.data), subspace(obj.subspace), progress(obj.progress), obj1base(obj.obj1base), segmentPtr1(obj.segmentPtr1) {} void operator()(const tbb::blocked_range<std::size_t>& range) { std::size_t nObjs = data[0]->getSize(); std::vector<std::tuple<std::size_t, data_t>> dists(nObjs - 1); std::size_t nSegments = data[0]->getSegmentCount(); // level 1: objects for (std::size_t i = range.begin(); i != range.end(); ++i) { std::size_t obj1 = obj1base + i; // level 2: segments std::size_t obj2 = 0; std::size_t idx = 0; for (std::size_t segment2 = 0; segment2 < nSegments; ++segment2) { std::size_t size2 = data[0]->getSegmentFillSize(segment2); segmentPtrs_t segmentPtr2(subspace.size()); std::size_t ptrIter2 = 0; for (std::size_t s : subspace) { const auto& dim = data[s]; segmentPtr2[ptrIter2++] = dim->getSegment(segment2); } // level 2: objects for (std::size_t j = 0; j < size2; ++j) { if (obj1 != obj2) { dists[idx++] = std::make_tuple(obj2, d(i, j, segmentPtr1, segmentPtr2)); } ++obj2; } } std::sort(dists.begin(), dists.end(), [](const std::tuple<std::size_t, data_t>& a, const std::tuple<std::size_t, data_t>& b){ return std::get<1>(a) < std::get<1>(b); }); auto& neighbors = result[obj1]; data_t kMaxDist = std::get<1>(dists[kMax - 1]); auto neighbor = dists.begin(); for (; (neighbor != dists.end()) && (std::get<1>(*neighbor) <= kMaxDist); ++neighbor) {} neighbors.assign(dists.begin(), neighbor); // report progress std::size_t p = progress++; if (p % 1000 == 0) { std::cout << "+" << std::flush; } } } void join(TBBHelper&) {} private: distCache_t& result; std::size_t kMax; const std::vector<datadim_t>& data; const std::vector<std::size_t>& subspace; std::atomic<std::size_t>& progress; std::size_t obj1base; segmentPtrs_t& segmentPtr1; }; distCache_t precalcDists(std::size_t kMax, const std::vector<datadim_t>& data, const std::vector<std::size_t>& subspace) { std::size_t nObjs = data[0]->getSize(); std::size_t nSegments = data[0]->getSegmentCount(); distCache_t result(nObjs); std::atomic<std::size_t> progress(0); // level 1: segments std::size_t obj1base = 0; for (std::size_t segment1 = 0; segment1 < nSegments; ++segment1) { std::size_t size1 = data[0]->getSegmentFillSize(segment1); segmentPtrs_t segmentPtr1(subspace.size()); std::size_t ptrIter1 = 0; for (std::size_t s : subspace) { const auto& dim = data[s]; segmentPtr1[ptrIter1++] = dim->getSegment(segment1); } // level 1: objects TBBHelper helper(result, kMax, data, subspace, progress, obj1base, segmentPtr1); parallel_reduce(tbb::blocked_range<std::size_t>(0, size1), helper); obj1base += size1; } return result; } kDists_t calcKDists(std::size_t k, const std::vector<datadim_t>& data,const distCache_t& distCache) { std::size_t nObjs = data[0]->getSize(); std::vector<std::tuple<data_t, std::size_t>> result(nObjs); for (std::size_t obj1 = 0; obj1 < nObjs; ++obj1) { const auto& distCachePtr = distCache[obj1]; auto& kDist = std::get<0>(result[obj1]); auto& kNeighborsEnd = std::get<1>(result[obj1]); kDist = std::get<1>(distCachePtr[k - 1]); for (kNeighborsEnd = 0; (kNeighborsEnd < distCachePtr.size()) && (std::get<1>(distCachePtr[kNeighborsEnd]) <= kDist); ++kNeighborsEnd) {} } return result; } std::vector<data_t> calcLRDs(const std::vector<datadim_t>& data, const distCache_t& distCache, const kDists_t& dists) { std::size_t nObjs = data[0]->getSize(); std::vector<data_t> result(nObjs); for (std::size_t obj = 0; obj < nObjs; ++obj) { const auto& distCachePtr = distCache[obj]; std::size_t neighborsEnd = std::get<1>(dists[obj]); data_t sum = 0.0; for (std::size_t i = 0; i < neighborsEnd; ++i) { std::size_t neighbor = std::get<0>(distCachePtr[i]); sum += std::max(std::get<0>(dists[neighbor]), std::get<1>(distCachePtr[i])); } result[obj] = static_cast<data_t>(neighborsEnd) / sum; } return result; } std::vector<data_t> calcLOF(std::size_t k, const std::vector<datadim_t>& data, const distCache_t& distCache) { std::size_t nObjs = data[0]->getSize(); std::vector<data_t> result(nObjs); auto dists = calcKDists(k, data, distCache); auto lrds = calcLRDs(data, distCache, dists); for (std::size_t obj = 0; obj < nObjs; ++obj) { const auto& distCachePtr = distCache[obj]; std::size_t neighborsEnd = std::get<1>(dists[obj]); data_t sum = 0.0; for (std::size_t i = 0; i < neighborsEnd; ++i) { std::size_t neighbor = std::get<0>(distCachePtr[i]); sum += lrds[neighbor]; } result[obj] = sum / (lrds[obj] * neighborsEnd); } return result; } int main(int argc, char **argv) { // global config vars std::string cfgSubspaces; std::string cfgOutput; std::string cfgDbData; std::size_t cfgMinPtsLower; std::size_t cfgMinPtsUpper; std::size_t cfgThreads; // parse program options po::options_description poDesc("Options"); poDesc.add_options() ( "subspaces", po::value(&cfgSubspaces)->default_value("subspaces.txt"), "Subspace list" ) ( "output", po::value(&cfgOutput)->default_value("lof.ssv"), "LOF values for each subspace" ) ( "dbdata", po::value(&cfgDbData)->default_value("columns.db"), "DB file that stores parsed data" ) ( "minPtsLower", po::value(&cfgMinPtsLower)->default_value(30), "Lower bound for minPts" ) ( "minPtsUpper", po::value(&cfgMinPtsUpper)->default_value(50), "Upper bound for minPts" ) ( "threads", po::value(&cfgThreads)->default_value(0), "Number of threads (0 = auto)" ) ( "help", "Print this help message" ) ; po::variables_map poVm; try { po::store(po::parse_command_line(argc, argv, poDesc), poVm); } catch (const std::exception& e) { std::cout << "Error:" << std::endl << e.what() << std::endl << std::endl << "Use --help to get help ;)" << std::endl; return EXIT_FAILURE; } po::notify(poVm); if (poVm.count("help")) { std::cout << "lof"<< std::endl << std::endl << poDesc << std::endl; return EXIT_SUCCESS; } // setup tbb int threads = static_cast<int>(cfgThreads); if (threads == 0) { threads = -1; // = tbb::task_scheduler_init::automatic } tbb::task_scheduler_init init(threads); // start time tracing std::stringstream timerProfile; std::cout << "Check system: " << std::flush; std::cout.precision(std::numeric_limits<double>::digits10 + 1); // set double precision checkConfig(); std::cout << "done" << std::endl; { auto tMain = std::make_shared<Tracer>("main", &timerProfile); std::shared_ptr<Tracer> tPhase; std::cout << "Open DB and output file: " << std::flush; tPhase.reset(new Tracer("open", tMain)); std::ifstream ssfile(cfgSubspaces); auto dbData = std::make_shared<gc::Database>(cfgDbData); std::ofstream outfile(cfgOutput); auto dimNameList = dbData->getIndexDims(); std::vector<datadim_t> dims; assert(dimNameList->getSize() > 0); for (size_t i = 0; i < dimNameList->getSize(); ++i) { auto name(std::get<0>((*dimNameList)[i].toTuple())); dims.push_back(dbData->getDim<data_t>(name)); } std::cout << "done (" << dims.size() << " columns, " << dims[0]->getSize() << " rows)" << std::endl; // iterate over all subspaces tPhase.reset(new Tracer("subspaces", tMain)); std::cout << "Calculate LOF for all subspaces: " << std::endl; std::vector<std::list<data_t>> lofs(dims[0]->getSize()); std::string ssstring; std::size_t sID = 0; while (std::getline(ssfile, ssstring)) { auto subspace = parseSS(ssstring); if (subspace.size() > 0) { std::cout << "Subspace " << sID << " (size=" << subspace.size() << "): " << std::flush; auto cache = precalcDists(cfgMinPtsUpper, dims, subspace); std::vector<data_t> bestLOFs(lofs.size(), -std::numeric_limits<data_t>::infinity()); for (std::size_t k = cfgMinPtsLower; k <= cfgMinPtsUpper; ++k) { auto next = calcLOF(k, dims, cache); bestLOFs = std::max(bestLOFs, next); // report progress std::cout << "." << std::flush; } for (std::size_t i = 0; i < bestLOFs.size(); ++i) { lofs[i].push_back(bestLOFs[i]); } std::cout << "done" << std::endl; } ++sID; } std::cout << "all done" << std::endl; // ok, so lets write the results tPhase.reset(new Tracer("output", tMain)); std::cout << "Write result: " << std::flush; for (const auto& obj : lofs) { bool first = true; for (auto lof : obj) { if (first) { first = false; } else { outfile << " "; } outfile << lof; } outfile << std::endl; } std::cout << "done" << std::endl; std::cout << "Cleanup and Sync: " << std::flush; // end of block => free dims and db } std::cout << "done" << std::endl; std::cout << std::endl << "Time profile:" << std::endl << timerProfile.str() << std::endl; return EXIT_SUCCESS; }
[ "marco@crepererum.net" ]
marco@crepererum.net
4869b81d8125712a6e5f5a1ed90610181214c1ed
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/include/dynd/kernels/apply_callable_kernel.hpp
108b080bfce8b791a419874b0bb72d834326898a
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
C++
false
false
8,716
hpp
// // Copyright (C) 2011-15 DyND Developers // BSD 2-Clause License, see LICENSE.txt // #pragma once #include <dynd/kernels/apply.hpp> #include <dynd/kernels/base_strided_kernel.hpp> namespace dynd { namespace nd { namespace functional { namespace detail { template <typename func_type, typename R, typename A, typename I, typename K, typename J> struct apply_callable_kernel; template <typename func_type, typename R, typename... A, size_t... I, typename... K, size_t... J> struct apply_callable_kernel<func_type, R, type_sequence<A...>, index_sequence<I...>, type_sequence<K...>, index_sequence<J...>> : base_strided_kernel<apply_callable_kernel<func_type, R, type_sequence<A...>, index_sequence<I...>, type_sequence<K...>, index_sequence<J...>>, sizeof...(A)>, apply_args<type_sequence<A...>, index_sequence<I...>>, apply_kwds<type_sequence<K...>, index_sequence<J...>> { typedef apply_args<type_sequence<A...>, index_sequence<I...>> args_type; typedef apply_kwds<type_sequence<K...>, index_sequence<J...>> kwds_type; func_type func; apply_callable_kernel(func_type func, args_type args, kwds_type kwds) : args_type(args), kwds_type(kwds), func(func) { } void single(char *dst, char *const *DYND_IGNORE_UNUSED(src)) { *reinterpret_cast<R *>(dst) = func(apply_arg<A, I>::get(src[I])..., apply_kwd<K, J>::get()...); } static void instantiate(char *static_data, char *DYND_UNUSED(data), kernel_builder *ckb, const ndt::type &DYND_UNUSED(dst_tp), const char *DYND_UNUSED(dst_arrmeta), intptr_t DYND_UNUSED(nsrc), const ndt::type *src_tp, const char *const *src_arrmeta, kernel_request_t kernreq, intptr_t nkwd, const array *kwds, const std::map<std::string, ndt::type> &DYND_UNUSED(tp_vars)) { ckb->emplace_back<apply_callable_kernel>( kernreq, dynd::detail::make_value_wrapper(*reinterpret_cast<func_type *>(static_data)), args_type(src_tp, src_arrmeta, kwds), kwds_type(nkwd, kwds)); } }; template <typename func_type, typename... A, size_t... I, typename... K, size_t... J> struct apply_callable_kernel<func_type, void, type_sequence<A...>, index_sequence<I...>, type_sequence<K...>, index_sequence<J...>> : base_strided_kernel<apply_callable_kernel<func_type, void, type_sequence<A...>, index_sequence<I...>, type_sequence<K...>, index_sequence<J...>>, sizeof...(A)>, apply_args<type_sequence<A...>, index_sequence<I...>>, apply_kwds<type_sequence<K...>, index_sequence<J...>> { typedef apply_args<type_sequence<A...>, index_sequence<I...>> args_type; typedef apply_kwds<type_sequence<K...>, index_sequence<J...>> kwds_type; func_type func; apply_callable_kernel(func_type func, args_type args, kwds_type kwds) : args_type(args), kwds_type(kwds), func(func) { } void single(char *DYND_UNUSED(dst), char *const *DYND_IGNORE_UNUSED(src)) { func(apply_arg<A, I>::get(src[I])..., apply_kwd<K, J>::get()...); } static void instantiate(char *static_data, char *DYND_UNUSED(data), kernel_builder *ckb, const ndt::type &DYND_UNUSED(dst_tp), const char *DYND_UNUSED(dst_arrmeta), intptr_t DYND_UNUSED(nsrc), const ndt::type *src_tp, const char *const *src_arrmeta, kernel_request_t kernreq, intptr_t nkwd, const nd::array *kwds, const std::map<std::string, ndt::type> &DYND_UNUSED(tp_vars)) { ckb->emplace_back<apply_callable_kernel>( kernreq, dynd::detail::make_value_wrapper(*reinterpret_cast<func_type *>(static_data)), args_type(src_tp, src_arrmeta, kwds), kwds_type(nkwd, kwds)); } }; template <typename func_type, typename R, typename... A, size_t... I, typename... K, size_t... J> struct apply_callable_kernel<func_type *, R, type_sequence<A...>, index_sequence<I...>, type_sequence<K...>, index_sequence<J...>> : base_strided_kernel<apply_callable_kernel<func_type *, R, type_sequence<A...>, index_sequence<I...>, type_sequence<K...>, index_sequence<J...>>, sizeof...(A)>, apply_args<type_sequence<A...>, index_sequence<I...>>, apply_kwds<type_sequence<K...>, index_sequence<J...>> { typedef apply_args<type_sequence<A...>, index_sequence<I...>> args_type; typedef apply_kwds<type_sequence<K...>, index_sequence<J...>> kwds_type; func_type *func; apply_callable_kernel(func_type *func, args_type args, kwds_type kwds) : args_type(args), kwds_type(kwds), func(func) { } void single(char *dst, char *const *DYND_IGNORE_UNUSED(src)) { *reinterpret_cast<R *>(dst) = (*func)(apply_arg<A, I>::get(src[I])..., apply_kwd<K, J>::get()...); } static void instantiate(char *static_data, char *DYND_UNUSED(data), kernel_builder *ckb, const ndt::type &DYND_UNUSED(dst_tp), const char *DYND_UNUSED(dst_arrmeta), intptr_t DYND_UNUSED(nsrc), const ndt::type *src_tp, const char *const *src_arrmeta, kernel_request_t kernreq, intptr_t nkwd, const nd::array *kwds, const std::map<std::string, ndt::type> &DYND_UNUSED(tp_vars)) { ckb->emplace_back<apply_callable_kernel>(kernreq, *reinterpret_cast<func_type **>(static_data), args_type(src_tp, src_arrmeta, kwds), kwds_type(nkwd, kwds)); } }; template <typename func_type, typename... A, size_t... I, typename... K, size_t... J> struct apply_callable_kernel<func_type *, void, type_sequence<A...>, index_sequence<I...>, type_sequence<K...>, index_sequence<J...>> : base_strided_kernel<apply_callable_kernel<func_type *, void, type_sequence<A...>, index_sequence<I...>, type_sequence<K...>, index_sequence<J...>>, sizeof...(A)>, apply_args<type_sequence<A...>, index_sequence<I...>>, apply_kwds<type_sequence<K...>, index_sequence<J...>> { typedef apply_args<type_sequence<A...>, index_sequence<I...>> args_type; typedef apply_kwds<type_sequence<K...>, index_sequence<J...>> kwds_type; func_type *func; apply_callable_kernel(func_type *func, args_type args, kwds_type kwds) : args_type(args), kwds_type(kwds), func(func) { } void single(char *DYND_UNUSED(dst), char *const *DYND_IGNORE_UNUSED(src)) { (*func)(apply_arg<A, I>::get(src[I])..., apply_kwd<K, J>::get()...); } static void instantiate(char *static_data, char *DYND_UNUSED(data), kernel_builder *ckb, const ndt::type &DYND_UNUSED(dst_tp), const char *DYND_UNUSED(dst_arrmeta), intptr_t DYND_UNUSED(nsrc), const ndt::type *src_tp, const char *const *src_arrmeta, kernel_request_t kernreq, intptr_t nkwd, const nd::array *kwds, const std::map<std::string, ndt::type> &DYND_UNUSED(tp_vars)) { ckb->emplace_back<apply_callable_kernel>(kernreq, *reinterpret_cast<func_type **>(static_data), args_type(src_tp, src_arrmeta, kwds), kwds_type(nkwd, kwds)); } }; } // namespace dynd::nd::functional::detail template <typename func_type, int N> using apply_callable_kernel = detail::apply_callable_kernel< func_type, typename return_of<func_type>::type, as_apply_arg_sequence<func_type, N>, make_index_sequence<N>, as_apply_kwd_sequence<func_type, N>, make_index_sequence<arity_of<func_type>::value - N>>; } // namespace dynd::nd::functional } // namespace dynd::nd } // namespace dynd
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
61afc793d9a2cac1e7f19b59ed04e61ad919cdf6
185b00fc2b448497991418a5214b49445afe18e7
/SDK/PUBG_PhysXVehicles_structs.hpp
2463bd0f63fcf776497e216e7cea1a44ac74bbff
[]
no_license
cpkt9762/PPLAY_SDK
f562e3391df2a46abca33d202884705fdd03a1f8
30bf1a7fadab2ed07635e55c9c9749720cd79528
refs/heads/master
2021-04-28T10:19:19.392994
2018-02-19T07:20:44
2018-02-19T07:20:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,625
hpp
#pragma once // PlayerUnknown's Battlegrounds (2.6.23) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace Classes { //--------------------------------------------------------------------------- //Enums //--------------------------------------------------------------------------- // Enum PhysXVehicles.EVehicleDifferential4W enum class EVehicleDifferential4W : uint8_t { EVehicleDifferential4W__LimitedSlip_4W = 0, EVehicleDifferential4W__LimitedSlip_FrontDrive = 1, EVehicleDifferential4W__LimitedSlip_RearDrive = 2, EVehicleDifferential4W__Open_4W = 3, EVehicleDifferential4W__Open_FrontDrive = 4, EVehicleDifferential4W__Open_RearDrive = 5, EVehicleDifferential4W__EVehicleDifferential4W_MAX = 6 }; //--------------------------------------------------------------------------- //Script Structs //--------------------------------------------------------------------------- // ScriptStruct PhysXVehicles.WheelSetup // 0x0028 struct FWheelSetup { class UClass* WheelClass; // 0x0000(0x0008) (Edit, ZeroConstructor, IsPlainOldData) class UClass* PuncturedWheelClass; // 0x0008(0x0008) (Edit, ZeroConstructor, IsPlainOldData) struct FName BoneName; // 0x0010(0x0008) (Edit, ZeroConstructor, IsPlainOldData) struct FVector AdditionalOffset; // 0x0018(0x000C) (Edit, IsPlainOldData) unsigned char UnknownData00[0x4]; // 0x0024(0x0004) MISSED OFFSET }; // ScriptStruct PhysXVehicles.ReplicatedVehicleState // 0x0014 struct FReplicatedVehicleState { float SteeringInput; // 0x0000(0x0004) (ZeroConstructor, IsPlainOldData) float ThrottleInput; // 0x0004(0x0004) (ZeroConstructor, IsPlainOldData) float BrakeInput; // 0x0008(0x0004) (ZeroConstructor, IsPlainOldData) float HandbrakeInput; // 0x000C(0x0004) (ZeroConstructor, IsPlainOldData) int CurrentGear; // 0x0010(0x0004) (ZeroConstructor, IsPlainOldData) }; // ScriptStruct PhysXVehicles.VehicleInputRate // 0x0008 struct FVehicleInputRate { float RiseRate; // 0x0000(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float FallRate; // 0x0004(0x0004) (Edit, ZeroConstructor, IsPlainOldData) }; // ScriptStruct PhysXVehicles.VehicleEngineData // 0x0090 struct FVehicleEngineData { struct FRuntimeFloatCurve TorqueCurve; // 0x0000(0x0078) (Edit) float MaxRPM; // 0x0078(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float MOI; // 0x007C(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float DampingRateFullThrottle; // 0x0080(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float DampingRateZeroThrottleClutchEngaged; // 0x0084(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float DampingRateZeroThrottleClutchDisengaged; // 0x0088(0x0004) (Edit, ZeroConstructor, IsPlainOldData) unsigned char UnknownData00[0x4]; // 0x008C(0x0004) MISSED OFFSET }; // ScriptStruct PhysXVehicles.VehicleDifferential4WData // 0x001C struct FVehicleDifferential4WData { TEnumAsByte<EVehicleDifferential4W> DifferentialType; // 0x0000(0x0001) (Edit, ZeroConstructor, IsPlainOldData) unsigned char UnknownData00[0x3]; // 0x0001(0x0003) MISSED OFFSET float FrontRearSplit; // 0x0004(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float FrontLeftRightSplit; // 0x0008(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float RearLeftRightSplit; // 0x000C(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float CentreBias; // 0x0010(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float FrontBias; // 0x0014(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float RearBias; // 0x0018(0x0004) (Edit, ZeroConstructor, IsPlainOldData) }; // ScriptStruct PhysXVehicles.VehicleGearData // 0x000C struct FVehicleGearData { float Ratio; // 0x0000(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float DownRatio; // 0x0004(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float UpRatio; // 0x0008(0x0004) (Edit, ZeroConstructor, IsPlainOldData) }; // ScriptStruct PhysXVehicles.VehicleTransmissionData // 0x0030 struct FVehicleTransmissionData { bool bUseGearAutoBox; // 0x0000(0x0001) (Edit, ZeroConstructor, IsPlainOldData) unsigned char UnknownData00[0x3]; // 0x0001(0x0003) MISSED OFFSET float GearSwitchTime; // 0x0004(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float GearAutoBoxLatency; // 0x0008(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float FinalRatio; // 0x000C(0x0004) (Edit, ZeroConstructor, IsPlainOldData) TArray<struct FVehicleGearData> ForwardGears; // 0x0010(0x0010) (Edit, ZeroConstructor) float ReverseGearRatio; // 0x0020(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float NeutralGearUpRatio; // 0x0024(0x0004) (Edit, ZeroConstructor, IsPlainOldData) float ClutchStrength; // 0x0028(0x0004) (Edit, ZeroConstructor, IsPlainOldData) unsigned char UnknownData01[0x4]; // 0x002C(0x0004) MISSED OFFSET }; // ScriptStruct PhysXVehicles.TireConfigMaterialFriction // 0x0010 struct FTireConfigMaterialFriction { class UPhysicalMaterial* PhysicalMaterial; // 0x0000(0x0008) (Edit, ZeroConstructor, IsPlainOldData) float FrictionScale; // 0x0008(0x0004) (Edit, ZeroConstructor, IsPlainOldData) unsigned char UnknownData00[0x4]; // 0x000C(0x0004) MISSED OFFSET }; // ScriptStruct PhysXVehicles.VehicleAnimInstanceProxy // 0x0020 (0x04E0 - 0x04C0) struct FVehicleAnimInstanceProxy : public FAnimInstanceProxy { unsigned char UnknownData00[0x20]; // 0x04C0(0x0020) MISSED OFFSET }; // ScriptStruct PhysXVehicles.PhysXWheelState // 0x001C struct FPhysXWheelState { float LongitudinalSlip; // 0x0000(0x0004) (ZeroConstructor, IsPlainOldData) float LateralSlip; // 0x0004(0x0004) (ZeroConstructor, IsPlainOldData) float SuspSpringForce; // 0x0008(0x0004) (ZeroConstructor, IsPlainOldData) float TireFriction; // 0x000C(0x0004) (ZeroConstructor, IsPlainOldData) bool bInAir; // 0x0010(0x0001) (ZeroConstructor, IsPlainOldData) unsigned char UnknownData00[0x3]; // 0x0011(0x0003) MISSED OFFSET float RotationSpeed; // 0x0014(0x0004) (ZeroConstructor, IsPlainOldData) float Radius; // 0x0018(0x0004) (ZeroConstructor, IsPlainOldData) }; // ScriptStruct PhysXVehicles.AnimNode_WheelHandler // 0x0018 (0x0088 - 0x0070) struct FAnimNode_WheelHandler : public FAnimNode_SkeletalControlBase { unsigned char UnknownData00[0x18]; // 0x0070(0x0018) MISSED OFFSET }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "915188949@qq.com" ]
915188949@qq.com
243d1d9dd2b7e0577a75de09443d3a84b4dbac06
a0bafe339ffe761c872c79b49ef0e3d5ec5d6ab8
/基础练习/5.查找整数.cpp
ce8913a60a45118c76d9be8d66e2839b1238d4ca
[]
no_license
HandsomeBoy2/LanQiao
407208fe88e434c0b5df3a42a8d246fe0f139b1f
fd24578af303db9dfa16fe2c1771a2553b9e963f
refs/heads/master
2021-09-04T15:43:56.438957
2018-01-20T00:57:55
2018-01-20T00:57:55
118,195,425
0
0
null
null
null
null
UTF-8
C++
false
false
358
cpp
#include <iostream> #include <vector> using namespace std; int main() { int n, number, temp; cin >> n; vector <int> a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } cin >> number; int i; for (i = 0; i < n; i++) { if (a[i] == number) { temp = i; break; } } if (i == n) { cout << "-1"; } else { cout << temp+1; } return 0; }
[ "997739420@qq.com" ]
997739420@qq.com
77a20da1c8ca242d72f8d3f37b7dd25bbc0ff58c
4769e08c3184a2faa6af07f11d23d57f5d9895ca
/src/EntityManager.h
469aaadcdd3cebe3ab51261ef2f6ca583f366eee
[]
no_license
studio-bakemono/engine
27337800d66f4cf71c757b3ca60b99183b626bc3
3430c3d52813b473835806223c54a696df388c29
refs/heads/master
2020-03-12T03:03:55.939279
2018-04-21T04:17:44
2018-04-21T04:17:44
130,417,062
0
0
null
2018-04-21T02:48:32
2018-04-20T21:50:34
CMake
UTF-8
C++
false
false
149
h
#pragma once #include "Entity.h" #include "Component.h" #include <vector> class EntityManager { public: EntityManager(); ~EntityManager(); };
[ "golgothasTerror101@gmail.com" ]
golgothasTerror101@gmail.com
45b4354f0697a0c4d978680c40af03489fa9df34
081cc2fac1350d22438a730fd36885549ba92d21
/Unterricht/99_Uebung_MaxHeap_nichtgeloest/HeapUtils.cpp
8a81beafe6a0c03cc3d77cce715d87ecef43a786
[]
no_license
streusselhirni/AAD_GUI_Stoff
1231f81825464e663a77bfa571ab934783cce08d
0b33fc300ee8598831271dc39f17033d45f1279c
refs/heads/master
2020-06-04T09:34:54.690226
2019-06-14T15:37:50
2019-06-14T15:37:50
191,967,590
0
0
null
null
null
null
UTF-8
C++
false
false
141
cpp
// // Created by Nicolas Haenni on 24.11.18. // #include "HeapUtils.h" bool HeapUtils::isMaxHeap(std::vector<int> v) { return false; }
[ "mail@nicolashaenni.me" ]
mail@nicolashaenni.me
01479f8f6c57e363a23ac241e7ece35f3540f0f7
210bfd88f96cdf3b51508a81521f27aa77b251bb
/code/checkNameCriteria.cpp
b46faeabfd6f1314ee4af61fe3b6fc159551c7bc
[]
no_license
kurianCoding/cpp
76c01952fefa24db24322215a0f8c238e4c22204
17813ae58d024a1b5d4697479065746b4c938c2a
refs/heads/master
2021-01-10T08:00:34.354675
2017-06-10T15:10:24
2017-06-11T13:37:27
72,983,610
1
0
null
null
null
null
UTF-8
C++
false
false
603
cpp
/* this program will take a string, find the score of * the string by adding the values of all the characters * and then return the result based on a criteria. The cri * teria being that number of factors of the score should be * greater than or equal to the number of characters in the * name*/ #include <algorithm> #include <iostream> #include <string> using namespace std; int getScore(string word) { transform(word.begin(), word.end(), word.begin(), tolower); return 0; } int main() { int tests; string Name; cin >> tests; for (int k = 0; k < tests; k++) { cin >> Name; } return 0; }
[ "kurianck.mail@gmail.com" ]
kurianck.mail@gmail.com
7ddd0ed4bf215f4c5fd14ebf47e5cf1e59593a33
d07a04cabc3c49ddbf0e908d1bd8ce72cd0cc4c4
/src/main.cpp
c81fbfdf942b41b808e704a3b30f7a5a7b05639f
[]
no_license
conanwu777/Voxel_landscape
362dc400f6327a04c78ab5930879cff5eca21005
f84ff5d2d7ce72d03c681f9efae67651c5b5fa4b
refs/heads/master
2020-04-08T04:44:54.687531
2018-11-27T19:56:59
2018-11-27T19:56:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,431
cpp
#include <stdlib.h> #include <iostream> #include <time.h> #include "Input.hpp" #include "Noise.hpp" #include "Camera.hpp" #include "ChunkManager.hpp" #include "Chunk.hpp" #include "Window.hpp" #include "Water.hpp" #include "Shader.hpp" #include "Skybox.hpp" int main(int ac, char ** av) { Window win("Vox", W ,H); if (ac != 2) { cout << ORANGE << "Usage: Vox [-r | seed(integer)]" << endl; cout << "\t-r : random seed" << endl; exit(1); } if (!strcmp(av[1], "-r")) Noise n(time(NULL)); else Noise n(atoi(av[1])); glEnable(GL_DEPTH_TEST); glEnable(GL_BLEND); glfwSetInputMode(win.window, GLFW_CURSOR, GLFW_CURSOR_DISABLED); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); Camera cam; Shader basicShader("shaders/vert.vs", "shaders/frag.fs"); Shader skyShader("shaders/sky.vs", "shaders/sky.fs"); Input in(cam, win); Water water(basicShader, cam, 0, 65, 0, 400, 400, "textures/water.png"); ChunkManager cm(basicShader, cam, cam.pos[0], cam.pos[2]); vector<RenderObject*> objs; Skybox sky (skyShader, cam, 0, -10, 0, 200,300,200, "textures/day.png"); while(!glfwWindowShouldClose(win.window)) { glClearColor(0.0859f, 0.121f, 0.226f, 1.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); in.KeyHold(win); glDepthMask(GL_FALSE); sky.SetCurrentRender(); sky.Render(); glDepthMask(GL_TRUE); cm.renderChunks(); water.SetCurrentRender(); water.Render(); win.Update(); } }
[ "cwu@e2r5p4.unit.ua" ]
cwu@e2r5p4.unit.ua
402be9fa7432ae19c074876ac3dd4f6591d4ec74
943c054c3ded9169e2b32d2f9449f6342f517b9f
/DSA/C++/GeekForGeeks/sortinterval.cpp
8ff7ccdc0fdbfc07db4d68b528ba4623782ef854
[]
no_license
krsahab/Algorithms
84247d44679966c03d9bcf082a995e17c5b4ee44
a677ef381c170ea6832af7cbce850c72747a13a9
refs/heads/master
2023-04-13T20:03:40.636773
2021-04-24T03:06:29
2021-04-24T03:06:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
455
cpp
#include<bits/stdc++.h> using namespace std; bool cmp(pair<int,int> p1,pair<int,int> p2) { return p1.first<p2.first; } int max_non_overlapping( vector< pair<int,int> >& ranges ) { sort(ranges.begin(),ranges.end(),cmp); int count=0; for(int i=0;i<ranges.size()-1;i++) { if(ranges[i].second<=ranges[i+1].first) count++; } return count; } int main() { cout<<max_non_overlapping()<<endl; return 0; }
[ "krsahab@outlook.com" ]
krsahab@outlook.com
9e203ea863bcdf71256f5767b3da313413d3e8cd
0ad22a20afa40e826192d6f5a13544820b97f032
/AutoUpdate/AutoUpdate/AutoUpdate.cpp
ca038ef59dc4a7c795aa9138fe7c021960300e22
[]
no_license
knva/AutoUpdate
06bf050136454461f9df34793acbdabe4960dfe0
3e1546ba6060189154eb8aba611333e7ff70fa0a
refs/heads/master
2021-01-21T18:18:06.959364
2017-06-14T03:02:30
2017-06-14T03:02:30
92,032,207
1
0
null
null
null
null
GB18030
C++
false
false
7,171
cpp
// AutoUpdate.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "Clibcurl.h" #include "configjson.h" #include "MD5.h" #include <time.h> using namespace std; #ifdef _WIN32 #define MKDIR(a) _mkdir((a)) #define ACCESS _access #elif _LINUX #define MKDIR(a) mkdir((a),0755) #define ACCESS access #endif #define ERR_RESULT "{\"result\":\"failed\"}" //GETMODE //0 post //1 get #define GETMODE 0 class CLibcurlCallbackEx : public CLibcurlCallback { public: virtual void Progress(void* lpParam, double dTotal, double dLoaded) { //if (dTotal == 0.0) // return; //double bPercent = (dLoaded / dTotal) * 100; // //printf("下载进度:%0.2lf%%\n", bPercent); printf("."); } }; /// /// ///LC:下载文件 参数1 :下载地址 参数2 :保存文件名 void Download(string pUrl, string filename, int ver); ///LC:提交POST 参数1:程序名 参数2:版本号 string PostTest(string name, int ver, string url); ///LC:使用GET方式获取信息 参数1:程序名 参数2:版本号 string GetUpdate(string name, int ver, string url); ///LC:创建批处理文件 参数1:程序名 参数2:版本号 void MakeBat(string app, int ver); ///LC:支持多文件更新 参数1:下载地址 参数2:下载文件名 参数3:下载版本号 void MoreDownload(vector<string>, vector<string>, int ver); ///UP:存在json时,使用--u命令直接更新 void checkUpdate(); ///UP:创建目录 int CreatDir(char *); ///TODO 主函数 int main(int argc, char* argv[]) { if (argc != 4) { if (argc == 2) { if (strcmp(argv[1], "--u")==0) { checkUpdate(); return 0; } } printf("请输入软件名称,软件版本及更新地址,例如:update.exe MyApp.exe 1 update.com\n"); printf("运行软件之后,软件会生成AppConfig.json ,其中包含了软件名称及版本号."); return 0; } string name = ""; int ver = 0; int nver = 0; string json = ""; vector<string> downloadurl; vector<string> filename; string exename = argv[1]; string url = argv[3]; configjson *rj = new configjson(exename, atoi(argv[2]),url); rj->readjson(name, ver); if (GETMODE) { json = GetUpdate(name, ver, url); } else { json = PostTest(name, ver, url); } if (json == ERR_RESULT || json == "") return 0; rj->readupjson(json, downloadurl, filename, nver); printf("发现新版本,版本号:%d\n", nver); MoreDownload(downloadurl, filename, nver); MakeBat(name, nver); //system("pause"); return 0; } void MoreDownload(vector<string>downloadurl, vector<string>filename, int ver) { char updatedir[128] = ""; sprintf_s(updatedir, 128, "update//%d//", ver); CreatDir(updatedir); for (unsigned int i = 0; i < downloadurl.size(); i++) { Download(downloadurl.at(i), filename.at(i), ver); } } void Download(string pUrl, string filename, int ver) { CLibcurl libcurl; CLibcurlCallbackEx cb; libcurl.SetUserAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36"); libcurl.SetConnectTimeout(2); libcurl.SetResumeFrom(0); libcurl.SetCallback(&cb, NULL); char updatedir[128] = ""; sprintf_s(updatedir, 128, "update//%d//%s", ver, filename.c_str()); libcurl.DownloadToFile(pUrl.c_str(), updatedir); } string PostTest(string name, int ver, string updateurl) { char url[128] = ""; const char *mname = name.data(); char strver[10] = ""; sprintf_s(strver, 10, "%d", ver); char md5str[128] = ""; time_t tt = time(NULL);//这句返回的只是一个时间戳 sprintf_s(md5str, 128, "595902716@qq.com%lld", tt / 100); string mmd5 = MD5(md5str).toString(); const char * mmkey = mmd5.c_str(); sprintf_s(url, 128, "name=%s&version=%02d&publicKey=%s", mname, ver, mmkey); CLibcurl libcurl; libcurl.SetUserAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36"); libcurl.SetPort(80); libcurl.SetConnectTimeout(2); libcurl.AddHeader("name", mname); libcurl.AddHeader("version", strver); libcurl.AddHeader("publicKey", mmkey); libcurl.SetCookieFile("c:\\cookie"); //char* pData = "maintype=10001&subtype=100&appver=2.5.19.3753&sysver=Microsoft Windows 7&applist=100:15,200:2&sign=2553d888bc922275eca2fc539a5f0c1b"; char postUrl[128]; sprintf_s(postUrl, 128, "http://%s/autoupdate.php", updateurl.c_str()); libcurl.Post(postUrl, url); const char* pHtml = libcurl.GetResponsPtr(); const char* pError = libcurl.GetError(); if (strlen(pHtml) == 0) { return ERR_RESULT; } return pHtml; } string GetUpdate(string name, int ver, string updateurl) { char url[512] = ""; const char *mname = name.data(); char md5str[128] = ""; time_t tt = time(NULL);//这句返回的只是一个时间戳 sprintf_s(md5str, 128, "595902716@qq.com%lld", tt / 100); string mmd5 = MD5(md5str).toString(); const char * mmkey = mmd5.c_str(); sprintf_s(url, 512, "http://%s/autoupdate.php?name=%s&version=%02d&publicKey=%s", updateurl.c_str(), mname, ver, mmkey); //printf(url); CLibcurl libcurl; libcurl.SetUserAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36"); libcurl.Get(url); const char* pHtml = libcurl.GetResponsPtr(); const char* pError = libcurl.GetError(); if (strlen(pHtml) == 0) { return ERR_RESULT; } return pHtml; } void MakeBat(string app, int ver) { char tmp[256]; FILE *fbat; printf("准备更新,请不要操作!\n"); snprintf(tmp, sizeof(tmp), "%s\\update.bat", "update"); errno_t err; if (err = fopen_s(&fbat, tmp, "w+") != 0) { printf("操作失败."); return; } fprintf(fbat, "@echo off\n"); fprintf(fbat, "taskkill /F /IM %s\n", app.c_str()); fprintf(fbat, "ping -n 2 127.1>nul\n"); fprintf(fbat, "copy /Y .\\update\\%d\\* .\\\n", ver); fprintf(fbat, "start %s",app.c_str()); if (fbat) { err = fclose(fbat); if (err != 0) { printf("操作失败."); return; } } snprintf(tmp, sizeof(tmp), "%s\\update.bat", "update"); WinExec(tmp, SW_HIDE); //隐藏窗口运行a.bat } void checkUpdate() { string name = ""; int ver = 0; int nver = 0; string json = ""; string url = ""; vector<string> downloadurl; vector<string> filename; configjson *cj = new configjson(); if (cj->checkUp(name, nver, url)) { if (GETMODE) { json = GetUpdate(name, ver, url); } else { json = PostTest(name, ver, url); } if (json == ERR_RESULT || json == "") return; cj->readupjson(json, downloadurl, filename, nver); printf("发现新版本,版本号:%d\n", nver); MoreDownload(downloadurl, filename, nver); MakeBat(name, nver); } else { return; } } int CreatDir(char *pDir) { int i = 0; int iRet; int iLen; char* pszDir; if (NULL == pDir) { return 0; } pszDir = _strdup(pDir); iLen = strlen(pszDir); // 创建中间目录 for (i = 0; i < iLen; i++) { if (pszDir[i] == '\\' || pszDir[i] == '/') { pszDir[i] = '\0'; //如果不存在,创建 iRet = ACCESS(pszDir, 0); if (iRet != 0) { iRet = MKDIR(pszDir); if (iRet != 0) { return -1; } } //支持linux,将所有\换成/ pszDir[i] = '/'; } } iRet = MKDIR(pszDir); free(pszDir); return iRet; }
[ "txt_ch@163.com" ]
txt_ch@163.com
321d4c69425200a8aeada8ec19a2e5690538e7c9
6b660cb96baa003de9e18e332b048c0f1fa67ab9
/External/SDK/BP_HC_Rank05_RankDesc_functions.cpp
ee5fd97d8c856a64d868a9cdca01ab0d716f5cf0
[]
no_license
zanzo420/zSoT-SDK
1edbff62b3e12695ecf3969537a6d2631a0ff36f
5e581eb0400061f6e5f93b3affd95001f62d4f7c
refs/heads/main
2022-07-30T03:35:51.225374
2021-07-07T01:07:20
2021-07-07T01:07:20
383,634,601
1
0
null
null
null
null
UTF-8
C++
false
false
546
cpp
// Name: SoT, Version: 2.2.0.2 #include "../pch.h" /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Functions //--------------------------------------------------------------------------- void UBP_HC_Rank05_RankDesc_C::AfterRead() { URankDesc::AfterRead(); } void UBP_HC_Rank05_RankDesc_C::BeforeDelete() { URankDesc::BeforeDelete(); } } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "Massimo.linker@gmail.com" ]
Massimo.linker@gmail.com
ebc84038fc17416d1858c70d8254580adfb1da7c
5bd95cf135425e2364aae18e4566b8d547024e51
/src/BICO/weightmodifier.h
de5e75a779591eba078413a17aaadca439056e31
[]
no_license
cran/stream
9f18ddeb8db39da14bf58ce152e138db12797990
e325260992b1cae50ac99be0e6b2d5845f5c7366
refs/heads/master
2023-03-07T10:51:42.508524
2023-02-28T20:00:02
2023-02-28T20:00:02
17,700,152
1
2
null
null
null
null
UTF-8
C++
false
false
550
h
#ifndef WEIGHTMODIFIER_H #define WEIGHTMODIFIER_H namespace CluE { /** * @brief Abstract base class to modify the weight of weighted objects. * * @ingroup base_classes */ template<typename T> class WeightModifier { public: virtual ~WeightModifier() { } /** * @brief make an exact copy of this object * The clone method creates a copy of this object and returns a pointer to the new instance. */ virtual WeightModifier<T>* clone() const = 0; virtual double getWeight(T&) = 0; virtual void setWeight(T&, double) = 0; }; } #endif
[ "csardi.gabor+cran@gmail.com" ]
csardi.gabor+cran@gmail.com
9f841e06e80a60eeed212d38aaadfac1c063b2b5
bb6ebff7a7f6140903d37905c350954ff6599091
/chrome/browser/extensions/unpacked_installer.cc
cb7966f8908b27b491430611cfdbff67953ee48d
[ "BSD-3-Clause" ]
permissive
PDi-Communication-Systems-Inc/lollipop_external_chromium_org
faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f
ccadf4e63dd34be157281f53fe213d09a8c66d2c
refs/heads/master
2022-12-23T18:07:04.568931
2016-04-11T16:03:36
2016-04-11T16:03:36
53,677,925
0
1
BSD-3-Clause
2022-12-09T23:46:46
2016-03-11T15:49:07
C++
UTF-8
C++
false
false
10,418
cc
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/unpacked_installer.h" #include "base/bind.h" #include "base/callback.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" #include "base/threading/thread_restrictions.h" #include "chrome/browser/extensions/extension_error_reporter.h" #include "chrome/browser/extensions/extension_install_prompt.h" #include "chrome/browser/extensions/extension_install_ui.h" #include "chrome/browser/extensions/extension_service.h" #include "chrome/browser/extensions/permissions_updater.h" #include "chrome/browser/profiles/profile.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/extensions/api/plugins/plugins_handler.h" #include "content/public/browser/browser_thread.h" #include "extensions/browser/extension_prefs.h" #include "extensions/browser/extension_registry.h" #include "extensions/browser/install_flag.h" #include "extensions/common/extension.h" #include "extensions/common/extension_l10n_util.h" #include "extensions/common/file_util.h" #include "extensions/common/id_util.h" #include "extensions/common/manifest.h" #include "sync/api/string_ordinal.h" using content::BrowserThread; using extensions::Extension; namespace { const char kUnpackedExtensionsBlacklistedError[] = "Loading of unpacked extensions is disabled by the administrator."; // Manages an ExtensionInstallPrompt for a particular extension. class SimpleExtensionLoadPrompt : public ExtensionInstallPrompt::Delegate { public: SimpleExtensionLoadPrompt(const Extension* extension, Profile* profile, const base::Closure& callback); virtual ~SimpleExtensionLoadPrompt(); void ShowPrompt(); // ExtensionInstallUI::Delegate virtual void InstallUIProceed() OVERRIDE; virtual void InstallUIAbort(bool user_initiated) OVERRIDE; private: scoped_ptr<ExtensionInstallPrompt> install_ui_; scoped_refptr<const Extension> extension_; base::Closure callback_; }; SimpleExtensionLoadPrompt::SimpleExtensionLoadPrompt( const Extension* extension, Profile* profile, const base::Closure& callback) : install_ui_(ExtensionInstallUI::CreateInstallPromptWithProfile( profile)), extension_(extension), callback_(callback) { } SimpleExtensionLoadPrompt::~SimpleExtensionLoadPrompt() { } void SimpleExtensionLoadPrompt::ShowPrompt() { std::string confirm = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( switches::kAppsGalleryInstallAutoConfirmForTests); if (confirm == "accept") { InstallUIProceed(); return; } if (confirm == "cancel") { InstallUIAbort(false); return; } install_ui_->ConfirmInstall( this, extension_.get(), ExtensionInstallPrompt::GetDefaultShowDialogCallback()); } void SimpleExtensionLoadPrompt::InstallUIProceed() { callback_.Run(); delete this; } void SimpleExtensionLoadPrompt::InstallUIAbort(bool user_initiated) { delete this; } } // namespace namespace extensions { // static scoped_refptr<UnpackedInstaller> UnpackedInstaller::Create( ExtensionService* extension_service) { DCHECK(extension_service); return scoped_refptr<UnpackedInstaller>( new UnpackedInstaller(extension_service)); } UnpackedInstaller::UnpackedInstaller(ExtensionService* extension_service) : service_weak_(extension_service->AsWeakPtr()), prompt_for_plugins_(true), require_modern_manifest_version_(true), be_noisy_on_failure_(true), installer_(extension_service->profile()) { CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); } UnpackedInstaller::~UnpackedInstaller() { CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI) || BrowserThread::CurrentlyOn(BrowserThread::FILE)); } void UnpackedInstaller::Load(const base::FilePath& path_in) { DCHECK(extension_path_.empty()); extension_path_ = path_in; BrowserThread::PostTask( BrowserThread::FILE, FROM_HERE, base::Bind(&UnpackedInstaller::GetAbsolutePath, this)); } bool UnpackedInstaller::LoadFromCommandLine(const base::FilePath& path_in, std::string* extension_id) { CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); DCHECK(extension_path_.empty()); if (!service_weak_.get()) return false; // Load extensions from the command line synchronously to avoid a race // between extension loading and loading an URL from the command line. base::ThreadRestrictions::ScopedAllowIO allow_io; extension_path_ = base::MakeAbsoluteFilePath(path_in); if (!IsLoadingUnpackedAllowed()) { ReportExtensionLoadError(kUnpackedExtensionsBlacklistedError); return false; } std::string error; installer_.set_extension( file_util::LoadExtension( extension_path_, Manifest::COMMAND_LINE, GetFlags(), &error).get()); if (!installer_.extension().get() || !extension_l10n_util::ValidateExtensionLocales( extension_path_, installer_.extension()->manifest()->value(), &error)) { ReportExtensionLoadError(error); return false; } ShowInstallPrompt(); *extension_id = installer_.extension()->id(); return true; } void UnpackedInstaller::ShowInstallPrompt() { CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); if (!service_weak_.get()) return; const ExtensionSet& disabled_extensions = ExtensionRegistry::Get(service_weak_->profile())->disabled_extensions(); if (service_weak_->show_extensions_prompts() && prompt_for_plugins_ && PluginInfo::HasPlugins(installer_.extension().get()) && !disabled_extensions.Contains(installer_.extension()->id())) { SimpleExtensionLoadPrompt* prompt = new SimpleExtensionLoadPrompt( installer_.extension().get(), installer_.profile(), base::Bind(&UnpackedInstaller::CallCheckRequirements, this)); prompt->ShowPrompt(); return; } CallCheckRequirements(); } void UnpackedInstaller::CallCheckRequirements() { installer_.CheckRequirements( base::Bind(&UnpackedInstaller::OnRequirementsChecked, this)); } void UnpackedInstaller::OnRequirementsChecked( std::vector<std::string> requirement_errors) { CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); if (!requirement_errors.empty()) { ReportExtensionLoadError(JoinString(requirement_errors, ' ')); return; } ConfirmInstall(); } int UnpackedInstaller::GetFlags() { std::string id = id_util::GenerateIdForPath(extension_path_); bool allow_file_access = Manifest::ShouldAlwaysAllowFileAccess(Manifest::UNPACKED); ExtensionPrefs* prefs = ExtensionPrefs::Get(service_weak_->profile()); if (prefs->HasAllowFileAccessSetting(id)) allow_file_access = prefs->AllowFileAccess(id); int result = Extension::FOLLOW_SYMLINKS_ANYWHERE; if (allow_file_access) result |= Extension::ALLOW_FILE_ACCESS; if (require_modern_manifest_version_) result |= Extension::REQUIRE_MODERN_MANIFEST_VERSION; return result; } bool UnpackedInstaller::IsLoadingUnpackedAllowed() const { if (!service_weak_.get()) return true; // If there is a "*" in the extension blacklist, then no extensions should be // allowed at all (except explicitly whitelisted extensions). ExtensionPrefs* prefs = ExtensionPrefs::Get(service_weak_->profile()); return !prefs->ExtensionsBlacklistedByDefault(); } void UnpackedInstaller::GetAbsolutePath() { CHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); extension_path_ = base::MakeAbsoluteFilePath(extension_path_); std::string error; if (!file_util::CheckForIllegalFilenames(extension_path_, &error)) { BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, base::Bind(&UnpackedInstaller::ReportExtensionLoadError, this, error)); return; } BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, base::Bind(&UnpackedInstaller::CheckExtensionFileAccess, this)); } void UnpackedInstaller::CheckExtensionFileAccess() { CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); if (!service_weak_.get()) return; if (!IsLoadingUnpackedAllowed()) { ReportExtensionLoadError(kUnpackedExtensionsBlacklistedError); return; } BrowserThread::PostTask( BrowserThread::FILE, FROM_HERE, base::Bind(&UnpackedInstaller::LoadWithFileAccess, this, GetFlags())); } void UnpackedInstaller::LoadWithFileAccess(int flags) { CHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); std::string error; installer_.set_extension( file_util::LoadExtension( extension_path_, Manifest::UNPACKED, flags, &error).get()); if (!installer_.extension().get() || !extension_l10n_util::ValidateExtensionLocales( extension_path_, installer_.extension()->manifest()->value(), &error)) { BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, base::Bind(&UnpackedInstaller::ReportExtensionLoadError, this, error)); return; } BrowserThread::PostTask( BrowserThread::UI, FROM_HERE, base::Bind(&UnpackedInstaller::ShowInstallPrompt, this)); } void UnpackedInstaller::ReportExtensionLoadError(const std::string &error) { CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); if (!on_failure_callback_.is_null()) on_failure_callback_.Run(extension_path_, error); if (service_weak_.get()) { ExtensionErrorReporter::GetInstance()->ReportLoadError( extension_path_, error, service_weak_->profile(), be_noisy_on_failure_); } } void UnpackedInstaller::ConfirmInstall() { DCHECK_CURRENTLY_ON(BrowserThread::UI); base::string16 error = installer_.CheckManagementPolicy(); if (!error.empty()) { ReportExtensionLoadError(base::UTF16ToUTF8(error)); return; } PermissionsUpdater perms_updater(service_weak_->profile()); perms_updater.GrantActivePermissions(installer_.extension().get()); service_weak_->OnExtensionInstalled(installer_.extension().get(), syncer::StringOrdinal(), kInstallFlagInstallImmediately); } } // namespace extensions
[ "mrobbeloth@pdiarm.com" ]
mrobbeloth@pdiarm.com
660cd7439b18216cb11e13bf5d0a1c450a8ce80e
52bbfa038663d7564a8e4df85e4bd0c332cb242f
/QuestStateMachine/QuestStateMachine.cpp
783301923ea0bbf70e57d469067fddcfe0681536
[ "MIT" ]
permissive
KonstantinTomashevich/gamedev-utils
b5fa1f665e42e5cb62fb1b6ea53982ecc60f1442
e210616667a621391898ea3aaf773cf5d07275b9
refs/heads/master
2020-03-22T14:09:46.579126
2018-11-12T08:19:24
2018-11-12T08:19:24
140,157,569
1
0
MIT
2018-07-12T17:51:48
2018-07-08T10:20:51
C++
UTF-8
C++
false
false
3,591
cpp
#include "QuestStateMachine.hpp" #include <UniversalException/UniversalException.hpp> QuestStateMachine::QuestStateMachine () : current_ (nullptr), states_ () { } void QuestStateMachine::Start (int startStateCode) { ThrowExceptionIfLocked (); current_ = GetState (startStateCode); current_->OnEnter (); } void QuestStateMachine::Resume (int stateCode) { ThrowExceptionIfLocked (); current_ = GetState (stateCode); } void QuestStateMachine::Update (float timeStep) { ThrowExceptionIfNotLocked (); while (current_->IsMustExit ()) { current_->OnExit (); if (current_->GetNextStateCode () == EXIT_CODE) { ResetStates (); return; } current_ = GetState (current_->GetNextStateCode ()); current_->OnEnter (); } current_->OnUpdate (timeStep); } void QuestStateMachine::ResetStates () { current_ = nullptr; for (auto &keyValuePair : states_) { keyValuePair.second->Reset (); } } QuestState *QuestStateMachine::GetCurrentState () const { return current_; } QuestState *QuestStateMachine::GetState (int stateCode) const { auto iterator = states_.find (stateCode); if (iterator == states_.end ()) { throw UniversalException <QuestStateMachine::StateNotExists> ( std::string ("QuestStateMachine: can not find state with code ") + std::to_string (stateCode) + std::string ("!")); } return iterator->second.Get (); } void QuestStateMachine::AddState (QuestState *state) { ThrowExceptionIfLocked (); auto iterator = states_.find (state->GetStateCode ()); if (iterator == states_.end ()) { // unordered_map operates with objects in a "so dirty" way, so we must increment ref counter. state->AddReference (); states_[state->GetStateCode ()] = state; } else { throw UniversalException <QuestStateMachine::StateCodesCollision> ( std::string ("QuestStateMachine: can not add state with code ") + std::to_string (state->GetStateCode ()) + std::string (", because this code is already used!")); } } bool QuestStateMachine::RemoveState (QuestState *state) { ThrowExceptionIfLocked (); auto iterator = states_.find (state->GetStateCode ()); if (iterator != states_.end ()) { if (iterator->second.Get () != state) { throw UniversalException <QuestStateMachine::StateCodesCollision> ( std::string ("QuestStateMachine: state with another memory address exists under state code") + std::to_string (state->GetStateCode ()) + std::string ("!")); } else { states_.erase (iterator); return true; } } else { return false; } } const std::unordered_map <int, SharedPointer <QuestState> > &QuestStateMachine::GetStates () const { return states_; } void QuestStateMachine::ThrowExceptionIfLocked () const { if (current_ != nullptr) { throw UniversalException <QuestStateMachine::Locked> ( std::string ("QuestStateMachine: machine is locked due to execution, can not add or remove states!")); } } void QuestStateMachine::ThrowExceptionIfNotLocked () const { if (current_ == nullptr) { throw UniversalException <QuestStateMachine::Locked> ( std::string ("QuestStateMachine: machine is not locked, can not execute update!")); } }
[ "ekit.mail@gmail.com" ]
ekit.mail@gmail.com
1e57c45bc9a8cca821e8c5f64adafc8b8403264d
08acf034e8eed58d833808ecf2948047d482cd99
/hspasov-web-server-cpp/content_reader.hpp
9763a38c871066347933513fb88d3dfe49f7f890
[ "Apache-2.0" ]
permissive
hspasov/training-projects
885a16d96dbffad33c488a995b24831adb4d62b6
c6b1e72b59c1e87855286e32ba59c06be57a2c4b
refs/heads/master
2022-04-29T11:20:33.113530
2022-03-13T19:51:40
2022-03-13T19:51:40
137,059,349
0
0
null
2018-06-12T11:00:35
2018-06-12T11:00:34
null
UTF-8
C++
false
false
2,898
hpp
#ifndef FILE_READER_HPP #define FILE_READER_HPP #include "file_descriptor.hpp" #include "web_server_utils.hpp" #include "error.hpp" #include "logger.hpp" #include "config.hpp" #include <cerrno> #include <sys/stat.h> #include <fcntl.h> class ContentReader { protected: FileDescriptor _fd; public: size_t file_size; std::unique_ptr<char[]> buffer; explicit ContentReader (const std::string& file_path) : buffer(std::make_unique<char[]>(Config::config["read_buffer"].GetInt())) { Logger::error(DEBUG, {}); const int fd = open(web_server_utils::resolve_static_file_path(file_path).c_str(), O_RDONLY | O_CLOEXEC, 0); if (fd < 0) { std::string err_msg = "open: " + std::string(std::strerror(errno)); if (errno == EISDIR || errno == ENOENT) { throw Error(CLIENTERR, err_msg, errno); } throw Error(OSERR, err_msg, errno); } this->_fd = FileDescriptor(fd); struct stat statbuf {}; if (fstat(this->_fd._fd, &statbuf) < 0) { throw Error(OSERR, "fstat: " + std::string(std::strerror(errno)), errno); } // check whether it is not regular file if (!S_ISREG(statbuf.st_mode)) { throw Error(CLIENTERR, "requested file is not regular"); } this->file_size = statbuf.st_size; } ContentReader (const ContentReader& reader) : buffer(std::make_unique<char[]>(Config::config["read_buffer"].GetInt())) { Logger::error(DEBUG, {}); // read position is preserved const int fd = fcntl(reader._fd._fd, F_DUPFD_CLOEXEC, 0); if (fd < 0) { throw Error(OSERR, "fcntl: " + std::string(std::strerror(errno)), errno); } this->_fd = FileDescriptor(fd); for (int i = 0; i < Config::config["read_buffer"].GetInt(); i++) { this->buffer[i] = reader.buffer[i]; } this->file_size = reader.file_size; } ContentReader& operator= (const ContentReader& reader) { Logger::error(DEBUG, {}); const int fd = fcntl(reader._fd._fd, F_DUPFD_CLOEXEC, 0); if (fd < 0) { throw Error(OSERR, "fcntl: " + std::string(std::strerror(errno)), errno); } this->_fd = FileDescriptor(fd); this->file_size = reader.file_size; for (int i = 0; i < Config::config["read_buffer"].GetInt(); i++) { this->buffer[i] = reader.buffer[i]; } return *this; } ContentReader (ContentReader&&) = default; ContentReader& operator= (ContentReader&&) = default; ~ContentReader() = default; size_t read () { Logger::error(DEBUG, {}); const ssize_t bytes_read = ::read(this->_fd._fd, this->buffer.get(), Config::config["read_buffer"].GetInt()); if (bytes_read < 0) { throw Error(OSERR, "read: " + std::string(std::strerror(errno)), errno); } return bytes_read; } }; #endif
[ "hristo_sp99@abv.bg" ]
hristo_sp99@abv.bg
82b32f3a5221e6c4d48fca575a6de38d5d843023
320660851dc9a8c7a230db6d5388ba0d737572f6
/src/sage/overlaySizer.h
9de7e49cba6e7194d4c5c0be7849ecfae3273af8
[]
no_license
Vadiza/sage-3.5b
0e9fb033324c4efd86aa0801c8ab2bd8d3a62ff9
5e2af1d1a9838933fe0e60673d74a54408fdb61e
refs/heads/master
2020-04-09T15:16:17.571400
2014-05-09T15:27:17
2014-05-09T15:27:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,523
h
/****************************************************************************** * SAGE - Scalable Adaptive Graphics Environment * * Module: overlaySizer.h * Author : Ratko Jagodic * * Description: widget overlays * * Copyright (C) 2007 Electronic Visualization Laboratory, * University of Illinois at Chicago * * 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 University of Illinois at Chicago nor * the names of its contributors may be used to endorse or promote * products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 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. * * Direct questions, comments etc about SAGE to bijeong@evl.uic.edu or * http://www.evl.uic.edu/cavern/forum/ * *********************************************************************************/ #ifndef SIZER_OVERLAY_H #define SIZER_OVERLAY_H #include "sageDrawObject.h" using namespace std; class overlaySizer : public sageDrawObject { protected: int dir; //sizer direction HORIZONTAL -or- VERTICAL void drawOutline(); public: // METHODS overlaySizer(); void draw(); int parseMessage(char *msg) { return 0;} void positionChildren(); void fitAroundChildren(); void parseSpecificInfo(TiXmlElement *parent); }; #endif
[ "matt@doeringtech.com" ]
matt@doeringtech.com
a8201a89a87d10b64f36fd554bc74ab56e7f2bc9
99ea6cf6589748de6bf194376daded0f377a6115
/UVa/11727 - Cost Cutting.cpp
19d6bbeccf5c43e702c06d7ddd0072c1c97cc8f3
[]
no_license
biprodas/OJ-Solutions
5795ae61e96c6a0b6683652939abdb92924ee962
c84a045c8c7bbcdc6049c1fbef2191619c557bfa
refs/heads/master
2020-04-12T05:24:47.436550
2018-12-18T18:36:32
2018-12-18T18:36:32
162,326,145
1
0
null
null
null
null
UTF-8
C++
false
false
256
cpp
#include<bits/stdc++.h> using namespace std; int ar[3]; int main(){ int t, cs=1; cin>>t; while(t--){ for(int i=0;i<3;i++) cin>>ar[i]; sort(ar,ar+3); printf("Case %d: %d\n",cs++,ar[1]); } return 0; }
[ "biprodas.cse@gmail.com" ]
biprodas.cse@gmail.com
8f6e215bd1359c9c4bbf2de9cc9704fd14acff38
2238d9c2818ea708aea0d12e7345705245b2a628
/application/source/ImageLibrary.h
bbd1db35c64d8c9457e0842b2ad26c9047d63881
[]
no_license
PowerKiKi/polukili
1e1cb69bce1c92982807b0a033735ec235f44b64
6c9b84d817dc2c6cdfac09a74030cf7ecc6417a9
refs/heads/master
2020-05-19T23:29:30.853455
2011-02-14T08:09:04
2011-02-14T08:09:04
173,132
2
0
null
null
null
null
UTF-8
C++
false
false
921
h
#ifndef Polukili_ImageLibrary_h #define Polukili_ImageLibrary_h #include <map> #include <string> #include <grrlib.h> using namespace std; namespace Polukili { /** * A library containing Images and allowing to get Image from path with implicit load. */ class ImageLibrary { public: /* * Constructor. */ ImageLibrary(); /* * Destructor. */ virtual ~ImageLibrary(); /* * Get an image from path. It will be loaded if needed. */ GRRLIB_texImg* get(const string& filename); /* * Remove the image from library if it exist (deallocate memory) * If the image is not present in library, do nothing. **/ void remove(const string& filename); // Attributes private: map<string, GRRLIB_texImg* > images; //end of class Game }; } #endif
[ "adrien.crivelli@gmail.com" ]
adrien.crivelli@gmail.com
1408e14567c3214e66057368ecc94f9cd212d8a0
4a3ca65ba2228c20e3f04f3ab1538dd00f87e976
/src/merkleblock.cpp
35dba5232f505ce38dfd087c1bf2092dbbede4a1
[ "MIT" ]
permissive
bonoproject/Bonorum
dd5b29a80b41a8e9fc0e0311b11730b5bf6fb3c2
d0dede6c416b812398a6c88cb2f54dad049c932e
refs/heads/master
2020-12-20T16:41:40.978500
2020-06-08T12:04:16
2020-06-08T12:04:16
236,138,813
1
1
null
null
null
null
UTF-8
C++
false
false
5,838
cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2015-2019 The PIVX developers // Copyright (c) 2020 The BonorumCoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "merkleblock.h" #include "hash.h" #include "primitives/block.h" // for MAX_BLOCK_SIZE #include "utilstrencodings.h" CMerkleBlock::CMerkleBlock(const CBlock& block, CBloomFilter& filter) { header = block.GetBlockHeader(); std::vector<bool> vMatch; std::vector<uint256> vHashes; vMatch.reserve(block.vtx.size()); vHashes.reserve(block.vtx.size()); for (unsigned int i = 0; i < block.vtx.size(); i++) { const uint256& hash = block.vtx[i].GetHash(); if (filter.IsRelevantAndUpdate(block.vtx[i])) { vMatch.push_back(true); vMatchedTxn.push_back(std::make_pair(i, hash)); } else vMatch.push_back(false); vHashes.push_back(hash); } txn = CPartialMerkleTree(vHashes, vMatch); } uint256 CPartialMerkleTree::CalcHash(int height, unsigned int pos, const std::vector<uint256>& vTxid) { if (height == 0) { // hash at height 0 is the txids themself return vTxid[pos]; } else { // calculate left hash uint256 left = CalcHash(height - 1, pos * 2, vTxid), right; // calculate right hash if not beyond the end of the array - copy left hash otherwise1 if (pos * 2 + 1 < CalcTreeWidth(height - 1)) right = CalcHash(height - 1, pos * 2 + 1, vTxid); else right = left; // combine subhashes return Hash(BEGIN(left), END(left), BEGIN(right), END(right)); } } void CPartialMerkleTree::TraverseAndBuild(int height, unsigned int pos, const std::vector<uint256>& vTxid, const std::vector<bool>& vMatch) { // determine whether this node is the parent of at least one matched txid bool fParentOfMatch = false; for (unsigned int p = pos << height; p < (pos + 1) << height && p < nTransactions; p++) fParentOfMatch |= vMatch[p]; // store as flag bit vBits.push_back(fParentOfMatch); if (height == 0 || !fParentOfMatch) { // if at height 0, or nothing interesting below, store hash and stop vHash.push_back(CalcHash(height, pos, vTxid)); } else { // otherwise, don't store any hash, but descend into the subtrees TraverseAndBuild(height - 1, pos * 2, vTxid, vMatch); if (pos * 2 + 1 < CalcTreeWidth(height - 1)) TraverseAndBuild(height - 1, pos * 2 + 1, vTxid, vMatch); } } uint256 CPartialMerkleTree::TraverseAndExtract(int height, unsigned int pos, unsigned int& nBitsUsed, unsigned int& nHashUsed, std::vector<uint256>& vMatch) { if (nBitsUsed >= vBits.size()) { // overflowed the bits array - failure fBad = true; return 0; } bool fParentOfMatch = vBits[nBitsUsed++]; if (height == 0 || !fParentOfMatch) { // if at height 0, or nothing interesting below, use stored hash and do not descend if (nHashUsed >= vHash.size()) { // overflowed the hash array - failure fBad = true; return 0; } const uint256& hash = vHash[nHashUsed++]; if (height == 0 && fParentOfMatch) // in case of height 0, we have a matched txid vMatch.push_back(hash); return hash; } else { // otherwise, descend into the subtrees to extract matched txids and hashes uint256 left = TraverseAndExtract(height - 1, pos * 2, nBitsUsed, nHashUsed, vMatch), right; if (pos * 2 + 1 < CalcTreeWidth(height - 1)) right = TraverseAndExtract(height - 1, pos * 2 + 1, nBitsUsed, nHashUsed, vMatch); else right = left; // and combine them before returning return Hash(BEGIN(left), END(left), BEGIN(right), END(right)); } } CPartialMerkleTree::CPartialMerkleTree(const std::vector<uint256>& vTxid, const std::vector<bool>& vMatch) : nTransactions(vTxid.size()), fBad(false) { // reset state vBits.clear(); vHash.clear(); // calculate height of tree int nHeight = 0; while (CalcTreeWidth(nHeight) > 1) nHeight++; // traverse the partial tree TraverseAndBuild(nHeight, 0, vTxid, vMatch); } CPartialMerkleTree::CPartialMerkleTree() : nTransactions(0), fBad(true) {} uint256 CPartialMerkleTree::ExtractMatches(std::vector<uint256>& vMatch) { vMatch.clear(); // An empty set will not work if (nTransactions == 0) return 0; // check for excessively high numbers of transactions if (nTransactions > MAX_BLOCK_SIZE_CURRENT / 60) // 60 is the lower bound for the size of a serialized CTransaction return 0; // there can never be more hashes provided than one for every txid if (vHash.size() > nTransactions) return 0; // there must be at least one bit per node in the partial tree, and at least one node per hash if (vBits.size() < vHash.size()) return 0; // calculate height of tree int nHeight = 0; while (CalcTreeWidth(nHeight) > 1) nHeight++; // traverse the partial tree unsigned int nBitsUsed = 0, nHashUsed = 0; uint256 hashMerkleRoot = TraverseAndExtract(nHeight, 0, nBitsUsed, nHashUsed, vMatch); // verify that no problems occured during the tree traversal if (fBad) return 0; // verify that all bits were consumed (except for the padding caused by serializing it as a byte sequence) if ((nBitsUsed + 7) / 8 != (vBits.size() + 7) / 8) return 0; // verify that all hashes were consumed if (nHashUsed != vHash.size()) return 0; return hashMerkleRoot; }
[ "60004952+bonoproject@users.noreply.github.com" ]
60004952+bonoproject@users.noreply.github.com
9f502124e9f33f57e4802ebaf90d95a499810623
b0568af5234e6ff8bb23d93725b00c895fb44f91
/Assignment1/Assignment1/AssemblyLine.h
8999b505b5bb51fa553c2b1f84460bdd8812850d
[]
no_license
JaiiParmar/C-Projects
96a9ad390ed04208bdea749670c2463a708842ad
4ec92c65752b365b9b35d07431d3857d9bddd3c9
refs/heads/master
2020-08-28T12:53:59.445140
2020-02-29T12:49:10
2020-02-29T12:49:10
217,704,390
1
0
null
null
null
null
UTF-8
C++
false
false
165
h
#pragma once #include<string> #include"Order.h" #include"BoxMaker.h" class AssemblyLine { private: Order o; BoxMaker bm; public: AssemblyLine(std::string); };
[ "jaiparmar207@gmail.com" ]
jaiparmar207@gmail.com
4d90e6a86039cc828f2c15dca3ed092750b28dcb
b589568b21d52c8a3c196d5fadf651d36c32d466
/src/batch/plugins/transformation/transformation.hpp
7926a2116ed01edfe03b5f49b123ab59772e7bda
[]
no_license
janeisklar/RSTools-preprocessing
6d25f4c3fed4a8752c22094e7e5e7514802b7ae4
e941ec1455bcbfa27a6783a6639945c73123ca03
refs/heads/master
2020-06-04T18:32:55.341470
2019-05-06T13:26:47
2019-05-06T13:26:47
25,311,320
0
1
null
2019-05-06T13:26:48
2014-10-16T16:34:13
C++
UTF-8
C++
false
false
971
hpp
#ifndef rstools_rsbatch_plugins_transformation_transformation_h #define rstools_rsbatch_plugins_transformation_transformation_h #include "rscommon.h" #include "batch/util/plugin.hpp" #include "tool/transformation.hpp" #include "task/transformation.hpp" using namespace rstools::batch::util; namespace rstools { namespace batch { namespace plugins { namespace transformation { class Transformation : Plugin { public: Transformation(); void registerPlugin(); const char* getName(); const char* getCode(); const char* getVersion(); static RSTool* createTransformationTool(); static RSTask* createTransformationTask(); protected: rsToolRegistration* createTransformationToolRegistration(); rsXSDExtension* createTransformationToolXSDExtension(); }; }}}} // namespace rstools::batch::plugins::transformation extern "C" { G_MODULE_EXPORT Plugin* rsGetPlugin(void); } #endif
[ "antihero2006@gmail.com" ]
antihero2006@gmail.com
d5ed448bec6ceeeba250f9bbbfaaf0eccc48c20a
b0c34c9a2613fe823e3b2a05ea81e943db403065
/WSIQualityJudge/sdpcRead.h
bdc8adee51daba549137cdb9eb9dd1addb12bae1
[]
no_license
hanxiaowein1/WSIQualityJudge
be300434b1ef296c04d5ea1c5cd31b7226ad5d93
223327a18408d5c47efa24003afd15914bcc7495
refs/heads/master
2022-12-31T05:00:35.726937
2020-10-05T08:02:45
2020-10-05T08:02:45
277,336,808
0
0
null
null
null
null
GB18030
C++
false
false
3,089
h
#pragma once #ifndef _SDPCREAD_H_ #define _SDPCREAD_H_ #include "opencv2/opencv.hpp" #include <iostream> #include <string> #include <mutex> #include <vector> #include <windows.h> #include <thread> #include "openslide.h" #include "sdpcsdk.h" using namespace std; using namespace cv; //将rect对象和mat对象绑定在一起 struct rect_mat { cv::Rect rect; cv::Mat mat; }; struct SlideHd { string path;//sdpc文件路径 SdpcHandler h; openslide_t* osr; }; //...好像并没有什么diao用 struct tile_sdpc { uint8_t *m_buffer; int m_size; //buffer的大小 cv::Rect m_rect;//保存坐标 tile_sdpc(int g_size){ g_size = m_size; m_buffer = new uint8_t[m_size]; } ~tile_sdpc() { delete m_buffer; } }; struct openInfo { unsigned int L0_WIDTH; unsigned int L0_HEIGHT;//这里我设置为有效区域 unsigned int L0_WIDTH_WITH_BORDER;//带边框的宽高 unsigned int L0_HEIGHT_WITH_BORDER; unsigned int tileWidth; unsigned int tileHeight; unsigned int boundX; unsigned int boundY; }; struct publicInfo { unsigned int L0_WIDTH; unsigned int L0_HEIGHT; unsigned int L0_WIDTH_WITH_BORDER;//带边框的宽高 unsigned int L0_HEIGHT_WITH_BORDER; unsigned int tileWidth; unsigned int tileHeight; unsigned int boundX; unsigned int boundY; }; class sdpcRead { public: //成员变量 //queue<cv::Mat> matQueue;//存放图的列表 queue<rect_mat> matRect_Queue;//绑定mat和rect queue<Rect> m_myRects;//裁图sdpc文件中的坐标 queue<Rect> m_myRects_out;//Mat进入队列的顺序,与Mat保持一致。每一次m_myRects std::mutex matMutex;//对于mat队列所需要的锁 std::mutex rectMutex;//对于rect所需要的锁 string m_suffix; std::condition_variable cv_pop;//pop之后触发条件,然后通知线程把图放到队列 int m_xOverlap; int m_yOverlap; SdpcInfo m_sdpcInfo; openInfo m_opensInfo; publicInfo m_publicInfo; vector<SlideHd> m_slideHd; vector<std::thread> m_threads; vector<bool> m_thread_flags; string m_sdpcPath; string m_opensPath; string m_gammaC_flag; unsigned int m_coreNum; /* m_readflag: 保存图像的选项 必须在gamma变换中,该选项才起作用 0:表示只保存gamma变换的图像 1:表示先保存gamma变换前的图像,在保存gamma变换后的图像 */ int m_readflag; public: sdpcRead(string, string); ~sdpcRead(); //void iniMyRects(); void m_GammaCorrection(Mat& src, Mat& dst, float fGamma); void m_szsq_normal(Mat& src, Mat& dst); bool enterMat(rect_mat rectMat); bool enterMat(vector<rect_mat> &rectMat);//针对一次性进入gamma前后的函数 bool getRect(Rect *rect); bool popMat(rect_mat *rectMat); void getTile(SlideHd* phd, int y, int x, int tw, int th, cv::Mat & mat); void sdpc_EnterThread(int threadCount); void createThread(); bool checkFlag(); void getOpensInfo(openslide_t *osr); void enter_mat_upon_point(vector<Rect> &rects, string g_gammaC_flag = "ON", int g_readflag = 0); int get_os_property(openslide_t *slide, string propName); void resetPublicInfo(float resolution); }; #endif // !_SDPCREAD_H_
[ "1280850599@qq.com" ]
1280850599@qq.com
924d371fbdb0199ab232e4c1632cc0fa613bdd78
dce62d2c4ec575b4ddea35325c51ebdac41c3788
/DFS1/BeatDetection/GameCode/BeatGame/Enemy.cpp
4e49c872d4b848f7b4aa16ef9c33f9f7b2c66136
[]
no_license
wvennes/BeatDetection
19c1778fc8885e3ef6b87a5f9755e7121365fc0d
cec72979aec3d97686563aa805861bf3258abe37
refs/heads/master
2021-01-10T02:22:35.901252
2016-01-26T05:51:37
2016-01-26T05:51:37
50,263,103
4
1
null
null
null
null
UTF-8
C++
false
false
2,386
cpp
//--------------------------------------------------------------------------- // Enemy.cpp //--------------------------------------------------------------------------- #include "Engine/Core/EngineCommon.hpp" #include "Engine/Math/GameMath.hpp" #include "Engine/Rendering/Material.hpp" #include "Engine/Rendering/RenderFunctions.hpp" #include "Engine/Rendering/VennRenderer.hpp" #include "BeatGame/Enemy.hpp" #define STATIC STATIC float Enemy::s_enemySpeedUnitsPerSecond = 25.f; STATIC const float Enemy::s_enemySizeRadius = 5.f; //--------------------------------------------------------------------------- Enemy::Enemy( float innerRadius, float outerRadius, float directionDegrees ) : Actor() , m_innerRingRadius( innerRadius ) , m_outerRingRadius( outerRadius ) , m_directionDegrees( directionDegrees ) { m_speedUnitsPerSecond = s_enemySpeedUnitsPerSecond; m_hitboxRadius = s_enemySizeRadius; m_vertexes.reserve( 4 ); for ( unsigned int count = 0; count < 4; ++ count ) { m_vertexes.push_back( Vertex3D() ); } m_vertexes[ 0 ].m_position = Vec3f( -1.f, -1.f, 0.f ); m_vertexes[ 1 ].m_position = Vec3f( 1.f, -1.f, 0.f ); m_vertexes[ 2 ].m_position = Vec3f( 1.f, 1.f, 0.f ); m_vertexes[ 3 ].m_position = Vec3f( -1.f, 1.f, 0.f ); m_direction = Vec2f( CosDegrees( m_directionDegrees ), SinDegrees( m_directionDegrees ) ); m_position = m_direction * m_outerRingRadius; } //--------------------------------------------------------------------------- Enemy::~Enemy() { } //--------------------------------------------------------------------------- STATIC void Enemy::IncrementEnemySpeed( float speedUnitsPerSecond ) { s_enemySpeedUnitsPerSecond += speedUnitsPerSecond; } //--------------------------------------------------------------------------- bool Enemy::Update() { m_position -= m_direction * m_speedUnitsPerSecond * DELTA_TIME; return m_isDead; } //--------------------------------------------------------------------------- void Enemy::Render( Material* mat ) { g_theRenderer->PushMatrix(); { g_theRenderer->ApplyTranslation( Vec3f( m_position.x, m_position.y, 0.f ) ); g_theRenderer->ApplyRotation( m_directionDegrees, Vec3f( 0.f, 0.f, 1.f ) ); g_theRenderer->ApplyScaling( m_hitboxRadius ); RenderVertexArrayWithShader( m_vertexes.data(), m_vertexes.size(), mat->GetShaderProgramID(), V_QUADS ); } g_theRenderer->PopMatrix(); }
[ "wvennes@smu.edu" ]
wvennes@smu.edu