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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ef8401f59895749ae97d8fbc6bb532356b9d34d4 | 1ad76b8cf215e4d10ba034ff4dfe124d170106df | /src/argon/events/eventhashmapimpl.hpp | 2317a9134e87e2cd715977ba0425235d4c68cdaa | [] | no_license | OutOfTheVoid/Argon | a75d38975fa6d5bb1477cd055fd39d47867edffe | 7e430b5c099539a22776adbdd03df3c153eb84d8 | refs/heads/master | 2020-03-12T20:11:17.737516 | 2018-06-21T21:09:43 | 2018-06-21T21:09:43 | 130,800,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,502 | hpp | #ifndef ARGON_EVENTS_EVENTHASHMAPIMPL_HPP
#define ARGON_EVENTS_EVENTHASHMAPIMPL_HPP
namespace Argon::Events
{
template<typename Element>
class EventHashMapImpl
{
public:
EventHashMapImpl ( const Element default_value, void ( * element_finalizer ) ( Element * ) ):
default_value ( default_value ),
element_finalizer ( element_finalizer )
{
for ( size_t i = 0; i < EVENT_ID_HASH_MAX; i ++ )
hash_table [ i ] = nullptr;
};
~EventHashMapImpl ()
{
for ( size_t i = 0; i < EVENT_ID_HASH_MAX; i ++ )
delete hash_table [ i ];
};
Element * get_element_ref_temp ( const EventDefinition * event_definition, bool alloc )
{
uint32_t hash = event_definition -> get_event_id_hash ();
if ( hash_table [ hash ] == nullptr )
{
if ( ! alloc )
return nullptr;
hash_table [ hash ] = new HashMapping ( default_value, element_finalizer );
return hash_table [ hash ] -> get_element_ref_temp ( event_definition, true );
}
return hash_table [ hash ] -> get_element_ref_temp ( event_definition, alloc );
};
void delete_mapping ( const EventDefinition * event_definition )
{
uint32_t hash = event_definition -> get_event_id_hash ();
if ( hash_table [ hash ] == nullptr )
return;
hash_table [ hash ] -> delete_mapping ( event_definition );
}
private:
class HashMapping
{
public:
HashMapping ( const Element default_value, void ( * element_finalizer ) ( Element * ) ):
mappings (),
default_value ( default_value ),
element_finalizer ( element_finalizer )
{
};
~HashMapping ()
{
size_t mapping_count = mappings.get_count ();
for ( size_t i = 0; i < mapping_count; i ++ )
{
element_finalizer ( & mappings [ i ].element );
mappings [ i ].event_definition -> deref ();
}
};
Element * get_element_ref_temp ( const EventDefinition * event_definition, bool alloc )
{
size_t mapping_count = mappings.get_count ();
for ( size_t i = 0; i < mapping_count; i ++ )
{
if ( ( mappings [ i ].event_definition == event_definition ) || ( mappings [ i ].event_definition -> get_event_id () == event_definition -> get_event_id () ) )
return & mappings [ i ].element;
}
if ( alloc )
{
MappingElement mapping { default_value, event_definition };
mappings.push ( mapping );
event_definition -> ref ();
return & mappings [ mapping_count ].element;
}
return nullptr;
};
void delete_mapping ( const EventDefinition * event_definition )
{
size_t mapping_count = mappings.get_count ();
for ( size_t i = 0; i < mapping_count; i ++ )
{
if ( ( mappings [ i ].event_definition == event_definition ) || ( mappings [ i ].event_definition -> get_event_id () == event_definition -> get_event_id () ) )
{
mappings.remove ( i );
return;
}
}
};
typedef struct
{
Element element;
const EventDefinition * event_definition;
} MappingElement;
const Element default_value;
Vector<MappingElement> mappings;
void ( * element_finalizer ) ( Element * );
};
void ( * element_finalizer ) ( Element * );
const Element default_value;
HashMapping * hash_table [ EVENT_ID_HASH_MAX ];
};
}
#endif
| [
"liam.tab@gmail.com"
] | liam.tab@gmail.com |
e84ae16b1d44d1f6015fdda28b94adfeb0a29c04 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium/net/websockets/websocket_handshake.h | ddb59af1165aa745b789f14c092bad4987034cec | [
"MIT",
"BSD-3-Clause"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | C++ | false | false | 3,558 | h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_H_
#define NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_H_
#pragma once
#include <string>
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "googleurl/src/gurl.h"
namespace net {
class HttpResponseHeaders;
class WebSocketHandshake {
public:
static const int kWebSocketPort;
static const int kSecureWebSocketPort;
enum Mode {
MODE_INCOMPLETE, MODE_NORMAL, MODE_FAILED, MODE_CONNECTED
};
WebSocketHandshake(const GURL& url,
const std::string& origin,
const std::string& location,
const std::string& protocol);
virtual ~WebSocketHandshake();
bool is_secure() const;
// Creates the client handshake message from |this|.
virtual std::string CreateClientHandshakeMessage();
// Reads server handshake message in |len| of |data|, updates |mode_| and
// returns number of bytes of the server handshake message.
// Once connection is established, |mode_| will be MODE_CONNECTED.
// If connection establishment failed, |mode_| will be MODE_FAILED.
// Returns negative if the server handshake message is incomplete.
virtual int ReadServerHandshake(const char* data, size_t len);
Mode mode() const { return mode_; }
protected:
std::string GetResourceName() const;
std::string GetHostFieldValue() const;
std::string GetOriginFieldValue() const;
// Gets the value of the specified header.
// It assures only one header of |name| in |headers|.
// Returns true iff single header of |name| is found in |headers|
// and |value| is filled with the value.
// Returns false otherwise.
static bool GetSingleHeader(const HttpResponseHeaders& headers,
const std::string& name,
std::string* value);
GURL url_;
// Handshake messages that the client is going to send out.
std::string origin_;
std::string location_;
std::string protocol_;
Mode mode_;
// Handshake messages that server sent.
std::string ws_origin_;
std::string ws_location_;
std::string ws_protocol_;
private:
friend class WebSocketHandshakeTest;
class Parameter {
public:
static const int kKey3Size = 8;
static const int kExpectedResponseSize = 16;
Parameter();
~Parameter();
void GenerateKeys();
const std::string& GetSecWebSocketKey1() const { return key_1_; }
const std::string& GetSecWebSocketKey2() const { return key_2_; }
const std::string& GetKey3() const { return key_3_; }
void GetExpectedResponse(uint8* expected) const;
private:
friend class WebSocketHandshakeTest;
// Set random number generator. |rand| should return a random number
// between min and max (inclusive).
static void SetRandomNumberGenerator(
uint32 (*rand)(uint32 min, uint32 max));
void GenerateSecWebSocketKey(uint32* number, std::string* key);
void GenerateKey3();
uint32 number_1_;
uint32 number_2_;
std::string key_1_;
std::string key_2_;
std::string key_3_;
static uint32 (*rand_)(uint32 min, uint32 max);
};
virtual bool ProcessHeaders(const HttpResponseHeaders& headers);
virtual bool CheckResponseHeaders() const;
scoped_ptr<Parameter> parameter_;
DISALLOW_COPY_AND_ASSIGN(WebSocketHandshake);
};
} // namespace net
#endif // NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_H_
| [
"karun.matharu@gmail.com"
] | karun.matharu@gmail.com |
9dfe2ee96fa96db8b544918efba0a25a026aad1a | cae9be52eaecf4ddad2819cf593253c75e9d014b | /js/jsObjects_DOM_API/browser-engine-impl/geco/XHR-cpp-impl-geco/nsXMLHttpRequest.cpp | a86d698807698a83257c19553d4efe3974860e6e | [] | no_license | john0xff/Frontend | 041b0264513e56f446d69d9214aae965bb2d005d | 562c94871af8c6e4781cb9cf5d9df37d78bb1097 | refs/heads/master | 2021-01-14T14:07:25.167856 | 2015-02-19T22:46:47 | 2015-02-19T22:46:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 106,301 | cpp | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsXMLHttpRequest.h"
#include "nsISimpleEnumerator.h"
#include "nsIXPConnect.h"
#include "nsICharsetConverterManager.h"
#include "nsLayoutCID.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsIURI.h"
#include "nsILoadGroup.h"
#include "nsNetUtil.h"
#include "nsStreamUtils.h"
#include "nsThreadUtils.h"
#include "nsIUploadChannel.h"
#include "nsIUploadChannel2.h"
#include "nsIDOMSerializer.h"
#include "nsXPCOM.h"
#include "nsISupportsPrimitives.h"
#include "nsGUIEvent.h"
#include "nsIPrivateDOMEvent.h"
#include "prprf.h"
#include "nsIDOMEventListener.h"
#include "nsIJSContextStack.h"
#include "nsJSEnvironment.h"
#include "nsIScriptSecurityManager.h"
#include "nsWeakPtr.h"
#include "nsICharsetAlias.h"
#include "nsIScriptGlobalObject.h"
#include "nsIDOMClassInfo.h"
#include "nsIDOMElement.h"
#include "nsIDOMFileInternal.h"
#include "nsIDOMWindow.h"
#include "nsIMIMEService.h"
#include "nsCExternalHandlerService.h"
#include "nsIVariant.h"
#include "nsVariant.h"
#include "nsIParser.h"
#include "nsLoadListenerProxy.h"
#include "nsStringStream.h"
#include "nsIStreamConverterService.h"
#include "nsICachingChannel.h"
#include "nsContentUtils.h"
#include "nsEventDispatcher.h"
#include "nsDOMJSUtils.h"
#include "nsCOMArray.h"
#include "nsDOMClassInfo.h"
#include "nsIScriptableUConv.h"
#include "nsCycleCollectionParticipant.h"
#include "nsIContentPolicy.h"
#include "nsContentPolicyUtils.h"
#include "nsContentErrors.h"
#include "nsLayoutStatics.h"
#include "nsCrossSiteListenerProxy.h"
#include "nsDOMError.h"
#include "nsIHTMLDocument.h"
#include "nsIDOM3Document.h"
#include "nsIMultiPartChannel.h"
#include "nsIScriptObjectPrincipal.h"
#include "nsIStorageStream.h"
#include "nsIPromptFactory.h"
#include "nsIWindowWatcher.h"
#include "nsCommaSeparatedTokenizer.h"
#include "nsIConsoleService.h"
#define LOAD_STR "load"
#define ERROR_STR "error"
#define ABORT_STR "abort"
#define LOADSTART_STR "loadstart"
#define PROGRESS_STR "progress"
#define UPLOADPROGRESS_STR "uploadprogress"
#define READYSTATE_STR "readystatechange"
// CIDs
// State
#define XML_HTTP_REQUEST_UNINITIALIZED (1 << 0) // 0
#define XML_HTTP_REQUEST_OPENED (1 << 1) // 1 aka LOADING
#define XML_HTTP_REQUEST_LOADED (1 << 2) // 2
#define XML_HTTP_REQUEST_INTERACTIVE (1 << 3) // 3
#define XML_HTTP_REQUEST_COMPLETED (1 << 4) // 4
#define XML_HTTP_REQUEST_SENT (1 << 5) // Internal, LOADING in IE and external view
#define XML_HTTP_REQUEST_STOPPED (1 << 6) // Internal, INTERACTIVE in IE and external view
// The above states are mutually exclusive, change with ChangeState() only.
// The states below can be combined.
#define XML_HTTP_REQUEST_ABORTED (1 << 7) // Internal
#define XML_HTTP_REQUEST_ASYNC (1 << 8) // Internal
#define XML_HTTP_REQUEST_PARSEBODY (1 << 9) // Internal
#define XML_HTTP_REQUEST_XSITEENABLED (1 << 10) // Internal, Is any cross-site request allowed?
// Even if this is false the
// access-control spec is supported
#define XML_HTTP_REQUEST_SYNCLOOPING (1 << 11) // Internal
#define XML_HTTP_REQUEST_MULTIPART (1 << 12) // Internal
#define XML_HTTP_REQUEST_GOT_FINAL_STOP (1 << 13) // Internal
#define XML_HTTP_REQUEST_BACKGROUND (1 << 14) // Internal
// This is set when we've got the headers for a multipart XMLHttpRequest,
// but haven't yet started to process the first part.
#define XML_HTTP_REQUEST_MPART_HEADERS (1 << 15) // Internal
#define XML_HTTP_REQUEST_USE_XSITE_AC (1 << 16) // Internal
#define XML_HTTP_REQUEST_NEED_AC_PREFLIGHT (1 << 17) // Internal
#define XML_HTTP_REQUEST_AC_WITH_CREDENTIALS (1 << 18) // Internal
#define XML_HTTP_REQUEST_LOADSTATES \
(XML_HTTP_REQUEST_UNINITIALIZED | \
XML_HTTP_REQUEST_OPENED | \
XML_HTTP_REQUEST_LOADED | \
XML_HTTP_REQUEST_INTERACTIVE | \
XML_HTTP_REQUEST_COMPLETED | \
XML_HTTP_REQUEST_SENT | \
XML_HTTP_REQUEST_STOPPED)
#define ACCESS_CONTROL_CACHE_SIZE 100
#define NS_BADCERTHANDLER_CONTRACTID \
"@mozilla.org/content/xmlhttprequest-bad-cert-handler;1"
#define NS_PROGRESS_EVENT_INTERVAL 50
class nsResumeTimeoutsEvent : public nsRunnable
{
public:
nsResumeTimeoutsEvent(nsPIDOMWindow* aWindow) : mWindow(aWindow) {}
NS_IMETHOD Run()
{
mWindow->ResumeTimeouts(PR_FALSE);
return NS_OK;
}
private:
nsCOMPtr<nsPIDOMWindow> mWindow;
};
// This helper function adds the given load flags to the request's existing
// load flags.
static void AddLoadFlags(nsIRequest *request, nsLoadFlags newFlags)
{
nsLoadFlags flags;
request->GetLoadFlags(&flags);
flags |= newFlags;
request->SetLoadFlags(flags);
}
static nsresult IsCapabilityEnabled(const char *capability, PRBool *enabled)
{
nsIScriptSecurityManager *secMan = nsContentUtils::GetSecurityManager();
if (!secMan)
return NS_ERROR_FAILURE;
return secMan->IsCapabilityEnabled(capability, enabled);
}
// Helper proxy class to be used when expecting an
// multipart/x-mixed-replace stream of XML documents.
class nsMultipartProxyListener : public nsIStreamListener
{
public:
nsMultipartProxyListener(nsIStreamListener *dest);
virtual ~nsMultipartProxyListener();
/* additional members */
NS_DECL_ISUPPORTS
NS_DECL_NSISTREAMLISTENER
NS_DECL_NSIREQUESTOBSERVER
private:
nsCOMPtr<nsIStreamListener> mDestListener;
};
nsMultipartProxyListener::nsMultipartProxyListener(nsIStreamListener *dest)
: mDestListener(dest)
{
}
nsMultipartProxyListener::~nsMultipartProxyListener()
{
}
NS_IMPL_ISUPPORTS2(nsMultipartProxyListener, nsIStreamListener,
nsIRequestObserver)
/** nsIRequestObserver methods **/
NS_IMETHODIMP
nsMultipartProxyListener::OnStartRequest(nsIRequest *aRequest,
nsISupports *ctxt)
{
nsCOMPtr<nsIChannel> channel(do_QueryInterface(aRequest));
NS_ENSURE_TRUE(channel, NS_ERROR_UNEXPECTED);
nsCAutoString contentType;
nsresult rv = channel->GetContentType(contentType);
if (!contentType.EqualsLiteral("multipart/x-mixed-replace")) {
return NS_ERROR_INVALID_ARG;
}
// If multipart/x-mixed-replace content, we'll insert a MIME
// decoder in the pipeline to handle the content and pass it along
// to our original listener.
nsCOMPtr<nsIXMLHttpRequest> xhr = do_QueryInterface(mDestListener);
nsCOMPtr<nsIStreamConverterService> convServ =
do_GetService("@mozilla.org/streamConverters;1", &rv);
if (NS_SUCCEEDED(rv)) {
nsCOMPtr<nsIStreamListener> toListener(mDestListener);
nsCOMPtr<nsIStreamListener> fromListener;
rv = convServ->AsyncConvertData("multipart/x-mixed-replace",
"*/*",
toListener,
nsnull,
getter_AddRefs(fromListener));
NS_ENSURE_TRUE(NS_SUCCEEDED(rv) && fromListener, NS_ERROR_UNEXPECTED);
mDestListener = fromListener;
}
if (xhr) {
static_cast<nsXMLHttpRequest*>(xhr.get())->mState |=
XML_HTTP_REQUEST_MPART_HEADERS;
}
return mDestListener->OnStartRequest(aRequest, ctxt);
}
NS_IMETHODIMP
nsMultipartProxyListener::OnStopRequest(nsIRequest *aRequest,
nsISupports *ctxt,
nsresult status)
{
return mDestListener->OnStopRequest(aRequest, ctxt, status);
}
/** nsIStreamListener methods **/
NS_IMETHODIMP
nsMultipartProxyListener::OnDataAvailable(nsIRequest *aRequest,
nsISupports *ctxt,
nsIInputStream *inStr,
PRUint32 sourceOffset,
PRUint32 count)
{
return mDestListener->OnDataAvailable(aRequest, ctxt, inStr, sourceOffset,
count);
}
// Class used as streamlistener and notification callback when
// doing the initial GET request for an access-control check
class nsACProxyListener : public nsIStreamListener,
public nsIInterfaceRequestor,
public nsIChannelEventSink
{
public:
nsACProxyListener(nsIChannel* aOuterChannel,
nsIStreamListener* aOuterListener,
nsISupports* aOuterContext,
nsIPrincipal* aReferrerPrincipal,
const nsACString& aRequestMethod,
PRBool aWithCredentials)
: mOuterChannel(aOuterChannel), mOuterListener(aOuterListener),
mOuterContext(aOuterContext), mReferrerPrincipal(aReferrerPrincipal),
mRequestMethod(aRequestMethod), mWithCredentials(aWithCredentials)
{ }
NS_DECL_ISUPPORTS
NS_DECL_NSISTREAMLISTENER
NS_DECL_NSIREQUESTOBSERVER
NS_DECL_NSIINTERFACEREQUESTOR
NS_DECL_NSICHANNELEVENTSINK
private:
void AddResultToCache(nsIRequest* aRequest);
nsCOMPtr<nsIChannel> mOuterChannel;
nsCOMPtr<nsIStreamListener> mOuterListener;
nsCOMPtr<nsISupports> mOuterContext;
nsCOMPtr<nsIPrincipal> mReferrerPrincipal;
nsCString mRequestMethod;
PRBool mWithCredentials;
};
NS_IMPL_ISUPPORTS4(nsACProxyListener, nsIStreamListener, nsIRequestObserver,
nsIInterfaceRequestor, nsIChannelEventSink)
void
nsACProxyListener::AddResultToCache(nsIRequest *aRequest)
{
nsCOMPtr<nsIHttpChannel> http = do_QueryInterface(aRequest);
NS_ASSERTION(http, "Request was not http");
// The "Access-Control-Max-Age" header should return an age in seconds.
nsCAutoString headerVal;
http->GetResponseHeader(NS_LITERAL_CSTRING("Access-Control-Max-Age"),
headerVal);
if (headerVal.IsEmpty()) {
return;
}
// Sanitize the string. We only allow 'delta-seconds' as specified by
// http://dev.w3.org/2006/waf/access-control (digits 0-9 with no leading or
// trailing non-whitespace characters).
PRUint32 age = 0;
nsCSubstring::const_char_iterator iter, end;
headerVal.BeginReading(iter);
headerVal.EndReading(end);
while (iter != end) {
if (*iter < '0' || *iter > '9') {
return;
}
age = age * 10 + (*iter - '0');
// Cap at 24 hours. This also avoids overflow
age = PR_MIN(age, 86400);
++iter;
}
if (!age || !nsXMLHttpRequest::EnsureACCache()) {
return;
}
// String seems fine, go ahead and cache.
// Note that we have already checked that these headers follow the correct
// syntax.
nsCOMPtr<nsIURI> uri;
http->GetURI(getter_AddRefs(uri));
// PR_Now gives microseconds
PRTime expirationTime = PR_Now() + (PRUint64)age * PR_USEC_PER_SEC;
nsAccessControlLRUCache::CacheEntry* entry =
nsXMLHttpRequest::sAccessControlCache->
GetEntry(uri, mReferrerPrincipal, mWithCredentials, PR_TRUE);
if (!entry) {
return;
}
// The "Access-Control-Allow-Methods" header contains a comma separated
// list of method names.
http->GetResponseHeader(NS_LITERAL_CSTRING("Access-Control-Allow-Methods"),
headerVal);
nsCCommaSeparatedTokenizer methods(headerVal);
while(methods.hasMoreTokens()) {
const nsDependentCSubstring& method = methods.nextToken();
if (method.IsEmpty()) {
continue;
}
PRUint32 i;
for (i = 0; i < entry->mMethods.Length(); ++i) {
if (entry->mMethods[i].token.Equals(method)) {
entry->mMethods[i].expirationTime = expirationTime;
break;
}
}
if (i == entry->mMethods.Length()) {
nsAccessControlLRUCache::TokenTime* newMethod =
entry->mMethods.AppendElement();
if (!newMethod) {
return;
}
newMethod->token = method;
newMethod->expirationTime = expirationTime;
}
}
// The "Access-Control-Allow-Headers" header contains a comma separated
// list of method names.
http->GetResponseHeader(NS_LITERAL_CSTRING("Access-Control-Allow-Headers"),
headerVal);
nsCCommaSeparatedTokenizer headers(headerVal);
while(headers.hasMoreTokens()) {
const nsDependentCSubstring& header = headers.nextToken();
if (header.IsEmpty()) {
continue;
}
PRUint32 i;
for (i = 0; i < entry->mHeaders.Length(); ++i) {
if (entry->mHeaders[i].token.Equals(header)) {
entry->mHeaders[i].expirationTime = expirationTime;
break;
}
}
if (i == entry->mHeaders.Length()) {
nsAccessControlLRUCache::TokenTime* newHeader =
entry->mHeaders.AppendElement();
if (!newHeader) {
return;
}
newHeader->token = header;
newHeader->expirationTime = expirationTime;
}
}
}
NS_IMETHODIMP
nsACProxyListener::OnStartRequest(nsIRequest *aRequest, nsISupports *aContext)
{
nsresult status;
nsresult rv = aRequest->GetStatus(&status);
if (NS_SUCCEEDED(rv)) {
rv = status;
}
if (NS_SUCCEEDED(rv)) {
// Everything worked, try to cache and then fire off the actual request.
AddResultToCache(aRequest);
rv = mOuterChannel->AsyncOpen(mOuterListener, mOuterContext);
}
if (NS_FAILED(rv)) {
mOuterChannel->Cancel(rv);
mOuterListener->OnStartRequest(mOuterChannel, mOuterContext);
mOuterListener->OnStopRequest(mOuterChannel, mOuterContext, rv);
return rv;
}
return NS_OK;
}
NS_IMETHODIMP
nsACProxyListener::OnStopRequest(nsIRequest *aRequest, nsISupports *aContext,
nsresult aStatus)
{
return NS_OK;
}
/** nsIStreamListener methods **/
NS_IMETHODIMP
nsACProxyListener::OnDataAvailable(nsIRequest *aRequest,
nsISupports *ctxt,
nsIInputStream *inStr,
PRUint32 sourceOffset,
PRUint32 count)
{
return NS_OK;
}
NS_IMETHODIMP
nsACProxyListener::OnChannelRedirect(nsIChannel *aOldChannel,
nsIChannel *aNewChannel,
PRUint32 aFlags)
{
// Only internal redirects allowed for now.
return NS_IsInternalSameURIRedirect(aOldChannel, aNewChannel, aFlags) ?
NS_OK : NS_ERROR_DOM_BAD_URI;
}
NS_IMETHODIMP
nsACProxyListener::GetInterface(const nsIID & aIID, void **aResult)
{
return QueryInterface(aIID, aResult);
}
/////////////////////////////////////////////
nsXHREventTarget::~nsXHREventTarget()
{
nsISupports *supports = static_cast<nsIXMLHttpRequestEventTarget*>(this);
nsContentUtils::ReleaseWrapper(supports, this);
}
NS_IMPL_CYCLE_COLLECTION_CLASS(nsXHREventTarget)
NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN(nsXHREventTarget)
NS_IMPL_CYCLE_COLLECTION_TRACE_PRESERVED_WRAPPER
NS_IMPL_CYCLE_COLLECTION_TRACE_END
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(nsXHREventTarget,
nsDOMEventTargetHelper)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mOnLoadListener)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mOnErrorListener)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mOnAbortListener)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mOnLoadStartListener)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mOnProgressListener)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
NS_IMPL_CYCLE_COLLECTION_ROOT_BEGIN(nsXHREventTarget)
NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER
NS_IMPL_CYCLE_COLLECTION_ROOT_END
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(nsXHREventTarget,
nsDOMEventTargetHelper)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mOnLoadListener)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mOnErrorListener)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mOnAbortListener)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mOnLoadStartListener)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mOnProgressListener)
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(nsXHREventTarget)
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
NS_INTERFACE_MAP_ENTRY(nsIXMLHttpRequestEventTarget)
NS_INTERFACE_MAP_END_INHERITING(nsDOMEventTargetHelper)
NS_IMPL_ADDREF_INHERITED(nsXHREventTarget, nsDOMEventTargetHelper)
NS_IMPL_RELEASE_INHERITED(nsXHREventTarget, nsDOMEventTargetHelper)
NS_IMETHODIMP
nsXHREventTarget::GetOnload(nsIDOMEventListener** aOnLoad)
{
return GetInnerEventListener(mOnLoadListener, aOnLoad);
}
NS_IMETHODIMP
nsXHREventTarget::SetOnload(nsIDOMEventListener* aOnLoad)
{
return RemoveAddEventListener(NS_LITERAL_STRING(LOAD_STR),
mOnLoadListener, aOnLoad);
}
NS_IMETHODIMP
nsXHREventTarget::GetOnerror(nsIDOMEventListener** aOnerror)
{
return GetInnerEventListener(mOnErrorListener, aOnerror);
}
NS_IMETHODIMP
nsXHREventTarget::SetOnerror(nsIDOMEventListener* aOnerror)
{
return RemoveAddEventListener(NS_LITERAL_STRING(ERROR_STR),
mOnErrorListener, aOnerror);
}
NS_IMETHODIMP
nsXHREventTarget::GetOnabort(nsIDOMEventListener** aOnabort)
{
return GetInnerEventListener(mOnAbortListener, aOnabort);
}
NS_IMETHODIMP
nsXHREventTarget::SetOnabort(nsIDOMEventListener* aOnabort)
{
return RemoveAddEventListener(NS_LITERAL_STRING(ABORT_STR),
mOnAbortListener, aOnabort);
}
NS_IMETHODIMP
nsXHREventTarget::GetOnloadstart(nsIDOMEventListener** aOnloadstart)
{
return GetInnerEventListener(mOnLoadStartListener, aOnloadstart);
}
NS_IMETHODIMP
nsXHREventTarget::SetOnloadstart(nsIDOMEventListener* aOnloadstart)
{
return RemoveAddEventListener(NS_LITERAL_STRING(LOADSTART_STR),
mOnLoadStartListener, aOnloadstart);
}
NS_IMETHODIMP
nsXHREventTarget::GetOnprogress(nsIDOMEventListener** aOnprogress)
{
return GetInnerEventListener(mOnProgressListener, aOnprogress);
}
NS_IMETHODIMP
nsXHREventTarget::SetOnprogress(nsIDOMEventListener* aOnprogress)
{
return RemoveAddEventListener(NS_LITERAL_STRING(PROGRESS_STR),
mOnProgressListener, aOnprogress);
}
/////////////////////////////////////////////
nsXMLHttpRequestUpload::~nsXMLHttpRequestUpload()
{
if (mListenerManager) {
mListenerManager->Disconnect();
}
}
NS_INTERFACE_MAP_BEGIN(nsXMLHttpRequestUpload)
NS_INTERFACE_MAP_ENTRY(nsIXMLHttpRequestUpload)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(XMLHttpRequestUpload)
NS_INTERFACE_MAP_END_INHERITING(nsXHREventTarget)
NS_IMPL_ADDREF_INHERITED(nsXMLHttpRequestUpload, nsXHREventTarget)
NS_IMPL_RELEASE_INHERITED(nsXMLHttpRequestUpload, nsXHREventTarget)
void
nsAccessControlLRUCache::CacheEntry::PurgeExpired(PRTime now)
{
PRUint32 i;
for (i = 0; i < mMethods.Length(); ++i) {
if (now >= mMethods[i].expirationTime) {
mMethods.RemoveElementAt(i--);
}
}
for (i = 0; i < mHeaders.Length(); ++i) {
if (now >= mHeaders[i].expirationTime) {
mHeaders.RemoveElementAt(i--);
}
}
}
PRBool
nsAccessControlLRUCache::CacheEntry::CheckRequest(const nsCString& aMethod,
const nsTArray<nsCString>& aHeaders)
{
PurgeExpired(PR_Now());
if (!aMethod.EqualsLiteral("GET") && !aMethod.EqualsLiteral("POST")) {
PRUint32 i;
for (i = 0; i < mMethods.Length(); ++i) {
if (aMethod.Equals(mMethods[i].token))
break;
}
if (i == mMethods.Length()) {
return PR_FALSE;
}
}
for (PRUint32 i = 0; i < aHeaders.Length(); ++i) {
PRUint32 j;
for (j = 0; j < mHeaders.Length(); ++j) {
if (aHeaders[i].Equals(mHeaders[j].token,
nsCaseInsensitiveCStringComparator())) {
break;
}
}
if (j == mHeaders.Length()) {
return PR_FALSE;
}
}
return PR_TRUE;
}
nsAccessControlLRUCache::CacheEntry*
nsAccessControlLRUCache::GetEntry(nsIURI* aURI,
nsIPrincipal* aPrincipal,
PRBool aWithCredentials,
PRBool aCreate)
{
nsCString key;
if (!GetCacheKey(aURI, aPrincipal, aWithCredentials, key)) {
NS_WARNING("Invalid cache key!");
return nsnull;
}
CacheEntry* entry;
if (mTable.Get(key, &entry)) {
// Entry already existed so just return it. Also update the LRU list.
// Move to the head of the list.
PR_REMOVE_LINK(entry);
PR_INSERT_LINK(entry, &mList);
return entry;
}
if (!aCreate) {
return nsnull;
}
// This is a new entry, allocate and insert into the table now so that any
// failures don't cause items to be removed from a full cache.
entry = new CacheEntry(key);
if (!entry) {
NS_WARNING("Failed to allocate new cache entry!");
return nsnull;
}
if (!mTable.Put(key, entry)) {
// Failed, clean up the new entry.
delete entry;
NS_WARNING("Failed to add entry to the access control cache!");
return nsnull;
}
PR_INSERT_LINK(entry, &mList);
NS_ASSERTION(mTable.Count() <= ACCESS_CONTROL_CACHE_SIZE + 1,
"Something is borked, too many entries in the cache!");
// Now enforce the max count.
if (mTable.Count() > ACCESS_CONTROL_CACHE_SIZE) {
// Try to kick out all the expired entries.
PRTime now = PR_Now();
mTable.Enumerate(RemoveExpiredEntries, &now);
// If that didn't remove anything then kick out the least recently used
// entry.
if (mTable.Count() > ACCESS_CONTROL_CACHE_SIZE) {
CacheEntry* lruEntry = static_cast<CacheEntry*>(PR_LIST_TAIL(&mList));
PR_REMOVE_LINK(lruEntry);
// This will delete 'lruEntry'.
mTable.Remove(lruEntry->mKey);
NS_ASSERTION(mTable.Count() == ACCESS_CONTROL_CACHE_SIZE,
"Somehow tried to remove an entry that was never added!");
}
}
return entry;
}
void
nsAccessControlLRUCache::RemoveEntries(nsIURI* aURI, nsIPrincipal* aPrincipal)
{
CacheEntry* entry;
nsCString key;
if (GetCacheKey(aURI, aPrincipal, PR_TRUE, key) &&
mTable.Get(key, &entry)) {
PR_REMOVE_LINK(entry);
mTable.Remove(key);
}
if (GetCacheKey(aURI, aPrincipal, PR_FALSE, key) &&
mTable.Get(key, &entry)) {
PR_REMOVE_LINK(entry);
mTable.Remove(key);
}
}
void
nsAccessControlLRUCache::Clear()
{
PR_INIT_CLIST(&mList);
mTable.Clear();
}
/* static */ PLDHashOperator
nsAccessControlLRUCache::RemoveExpiredEntries(const nsACString& aKey,
nsAutoPtr<CacheEntry>& aValue,
void* aUserData)
{
PRTime* now = static_cast<PRTime*>(aUserData);
aValue->PurgeExpired(*now);
if (aValue->mHeaders.IsEmpty() &&
aValue->mHeaders.IsEmpty()) {
// Expired, remove from the list as well as the hash table.
PR_REMOVE_LINK(aValue);
return PL_DHASH_REMOVE;
}
return PL_DHASH_NEXT;
}
/* static */ PRBool
nsAccessControlLRUCache::GetCacheKey(nsIURI* aURI,
nsIPrincipal* aPrincipal,
PRBool aWithCredentials,
nsACString& _retval)
{
NS_ASSERTION(aURI, "Null uri!");
NS_ASSERTION(aPrincipal, "Null principal!");
NS_NAMED_LITERAL_CSTRING(space, " ");
nsCOMPtr<nsIURI> uri;
nsresult rv = aPrincipal->GetURI(getter_AddRefs(uri));
NS_ENSURE_SUCCESS(rv, PR_FALSE);
nsCAutoString scheme, host, port;
if (uri) {
uri->GetScheme(scheme);
uri->GetHost(host);
port.AppendInt(NS_GetRealPort(uri));
}
nsCAutoString cred;
if (aWithCredentials) {
_retval.AssignLiteral("cred");
}
else {
_retval.AssignLiteral("nocred");
}
nsCAutoString spec;
rv = aURI->GetSpec(spec);
NS_ENSURE_SUCCESS(rv, PR_FALSE);
_retval.Assign(cred + space + scheme + space + host + space + port + space +
spec);
return PR_TRUE;
}
/////////////////////////////////////////////
//
//
/////////////////////////////////////////////
// Will be initialized in nsXMLHttpRequest::EnsureACCache.
nsAccessControlLRUCache* nsXMLHttpRequest::sAccessControlCache = nsnull;
nsXMLHttpRequest::nsXMLHttpRequest()
: mRequestObserver(nsnull), mState(XML_HTTP_REQUEST_UNINITIALIZED),
mUploadTransferred(0), mUploadTotal(0), mUploadComplete(PR_TRUE),
mUploadProgress(0), mUploadProgressMax(0),
mErrorLoad(PR_FALSE), mTimerIsActive(PR_FALSE),
mProgressEventWasDelayed(PR_FALSE),
mLoadLengthComputable(PR_FALSE), mLoadTotal(0),
mFirstStartRequestSeen(PR_FALSE)
{
nsLayoutStatics::AddRef();
}
nsXMLHttpRequest::~nsXMLHttpRequest()
{
if (mListenerManager) {
mListenerManager->Disconnect();
}
if (mState & (XML_HTTP_REQUEST_STOPPED |
XML_HTTP_REQUEST_SENT |
XML_HTTP_REQUEST_INTERACTIVE)) {
Abort();
}
NS_ABORT_IF_FALSE(!(mState & XML_HTTP_REQUEST_SYNCLOOPING), "we rather crash than hang");
mState &= ~XML_HTTP_REQUEST_SYNCLOOPING;
nsLayoutStatics::Release();
}
/**
* This Init method is called from the factory constructor.
*/
nsresult
nsXMLHttpRequest::Init()
{
// Set the original mScriptContext and mPrincipal, if available.
// Get JSContext from stack.
nsCOMPtr<nsIJSContextStack> stack =
do_GetService("@mozilla.org/js/xpc/ContextStack;1");
if (!stack) {
return NS_OK;
}
JSContext *cx;
if (NS_FAILED(stack->Peek(&cx)) || !cx) {
return NS_OK;
}
nsIScriptSecurityManager *secMan = nsContentUtils::GetSecurityManager();
nsCOMPtr<nsIPrincipal> subjectPrincipal;
if (secMan) {
secMan->GetSubjectPrincipal(getter_AddRefs(subjectPrincipal));
}
NS_ENSURE_STATE(subjectPrincipal);
mPrincipal = subjectPrincipal;
nsIScriptContext* context = GetScriptContextFromJSContext(cx);
if (context) {
mScriptContext = context;
nsCOMPtr<nsPIDOMWindow> window =
do_QueryInterface(context->GetGlobalObject());
if (window) {
mOwner = window->GetCurrentInnerWindow();
}
}
return NS_OK;
}
/**
* This Init method should only be called by C++ consumers.
*/
NS_IMETHODIMP
nsXMLHttpRequest::Init(nsIPrincipal* aPrincipal,
nsIScriptContext* aScriptContext,
nsPIDOMWindow* aOwnerWindow,
nsIURI* aBaseURI)
{
NS_ENSURE_ARG_POINTER(aPrincipal);
// This object may have already been initialized in the other Init call above
// if JS was on the stack. Clear the old values for mScriptContext and mOwner
// if new ones are not supplied here.
mPrincipal = aPrincipal;
mScriptContext = aScriptContext;
if (aOwnerWindow) {
mOwner = aOwnerWindow->GetCurrentInnerWindow();
}
else {
mOwner = nsnull;
}
mBaseURI = aBaseURI;
return NS_OK;
}
/**
* This Initialize method is called from XPConnect via nsIJSNativeInitializer.
*/
NS_IMETHODIMP
nsXMLHttpRequest::Initialize(nsISupports* aOwner, JSContext* cx, JSObject* obj,
PRUint32 argc, jsval *argv)
{
mOwner = do_QueryInterface(aOwner);
if (!mOwner) {
NS_WARNING("Unexpected nsIJSNativeInitializer owner");
return NS_OK;
}
// This XHR object is bound to a |window|,
// so re-set principal and script context.
nsCOMPtr<nsIScriptObjectPrincipal> scriptPrincipal = do_QueryInterface(aOwner);
NS_ENSURE_STATE(scriptPrincipal);
mPrincipal = scriptPrincipal->GetPrincipal();
nsCOMPtr<nsIScriptGlobalObject> sgo = do_QueryInterface(aOwner);
NS_ENSURE_STATE(sgo);
mScriptContext = sgo->GetContext();
NS_ENSURE_STATE(mScriptContext);
return NS_OK;
}
void
nsXMLHttpRequest::SetRequestObserver(nsIRequestObserver* aObserver)
{
mRequestObserver = aObserver;
}
NS_IMPL_CYCLE_COLLECTION_CLASS(nsXMLHttpRequest)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(nsXMLHttpRequest,
nsXHREventTarget)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mContext)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mChannel)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mReadRequest)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mResponseXML)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mACGetChannel)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mOnUploadProgressListener)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mOnReadystatechangeListener)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mXMLParserStreamListener)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mChannelEventSink)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR(mProgressEventSink)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR_AMBIGUOUS(mUpload,
nsIXMLHttpRequestUpload)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(nsXMLHttpRequest,
nsXHREventTarget)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mContext)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mChannel)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mReadRequest)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mResponseXML)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mACGetChannel)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mOnUploadProgressListener)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mOnReadystatechangeListener)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mXMLParserStreamListener)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mChannelEventSink)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mProgressEventSink)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mUpload)
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
// QueryInterface implementation for nsXMLHttpRequest
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(nsXMLHttpRequest)
NS_INTERFACE_MAP_ENTRY(nsIXMLHttpRequest)
NS_INTERFACE_MAP_ENTRY(nsIJSXMLHttpRequest)
NS_INTERFACE_MAP_ENTRY(nsIDOMLoadListener)
NS_INTERFACE_MAP_ENTRY(nsIDOMEventListener)
NS_INTERFACE_MAP_ENTRY(nsIRequestObserver)
NS_INTERFACE_MAP_ENTRY(nsIStreamListener)
NS_INTERFACE_MAP_ENTRY(nsIChannelEventSink)
NS_INTERFACE_MAP_ENTRY(nsIProgressEventSink)
NS_INTERFACE_MAP_ENTRY(nsIInterfaceRequestor)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY(nsIJSNativeInitializer)
NS_INTERFACE_MAP_ENTRY(nsITimerCallback)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(XMLHttpRequest)
NS_INTERFACE_MAP_END_INHERITING(nsXHREventTarget)
NS_IMPL_ADDREF_INHERITED(nsXMLHttpRequest, nsXHREventTarget)
NS_IMPL_RELEASE_INHERITED(nsXMLHttpRequest, nsXHREventTarget)
NS_IMETHODIMP
nsXMLHttpRequest::GetOnreadystatechange(nsIDOMEventListener * *aOnreadystatechange)
{
return
nsXHREventTarget::GetInnerEventListener(mOnReadystatechangeListener,
aOnreadystatechange);
}
NS_IMETHODIMP
nsXMLHttpRequest::SetOnreadystatechange(nsIDOMEventListener * aOnreadystatechange)
{
return
nsXHREventTarget::RemoveAddEventListener(NS_LITERAL_STRING(READYSTATE_STR),
mOnReadystatechangeListener,
aOnreadystatechange);
}
NS_IMETHODIMP
nsXMLHttpRequest::GetOnuploadprogress(nsIDOMEventListener * *aOnuploadprogress)
{
return
nsXHREventTarget::GetInnerEventListener(mOnUploadProgressListener,
aOnuploadprogress);
}
NS_IMETHODIMP
nsXMLHttpRequest::SetOnuploadprogress(nsIDOMEventListener * aOnuploadprogress)
{
return
nsXHREventTarget::RemoveAddEventListener(NS_LITERAL_STRING(UPLOADPROGRESS_STR),
mOnUploadProgressListener,
aOnuploadprogress);
}
/* readonly attribute nsIChannel channel; */
NS_IMETHODIMP
nsXMLHttpRequest::GetChannel(nsIChannel **aChannel)
{
NS_ENSURE_ARG_POINTER(aChannel);
NS_IF_ADDREF(*aChannel = mChannel);
return NS_OK;
}
/* readonly attribute nsIDOMDocument responseXML; */
NS_IMETHODIMP
nsXMLHttpRequest::GetResponseXML(nsIDOMDocument **aResponseXML)
{
NS_ENSURE_ARG_POINTER(aResponseXML);
*aResponseXML = nsnull;
if ((XML_HTTP_REQUEST_COMPLETED & mState) && mResponseXML) {
*aResponseXML = mResponseXML;
NS_ADDREF(*aResponseXML);
}
return NS_OK;
}
/*
* This piece copied from nsXMLDocument, we try to get the charset
* from HTTP headers.
*/
nsresult
nsXMLHttpRequest::DetectCharset(nsACString& aCharset)
{
aCharset.Truncate();
nsresult rv;
nsCAutoString charsetVal;
nsCOMPtr<nsIChannel> channel(do_QueryInterface(mReadRequest));
if (!channel) {
channel = mChannel;
if (!channel) {
// There will be no mChannel when we got a necko error in
// OnStopRequest or if we were never sent.
return NS_ERROR_NOT_AVAILABLE;
}
}
rv = channel->GetContentCharset(charsetVal);
if (NS_SUCCEEDED(rv)) {
nsCOMPtr<nsICharsetAlias> calias(do_GetService(NS_CHARSETALIAS_CONTRACTID,&rv));
if(NS_SUCCEEDED(rv) && calias) {
rv = calias->GetPreferred(charsetVal, aCharset);
}
}
return rv;
}
nsresult
nsXMLHttpRequest::ConvertBodyToText(nsAString& aOutBuffer)
{
// This code here is basically a copy of a similar thing in
// nsScanner::Append(const char* aBuffer, PRUint32 aLen).
// If we get illegal characters in the input we replace
// them and don't just fail.
PRInt32 dataLen = mResponseBody.Length();
if (!dataLen)
return NS_OK;
nsresult rv = NS_OK;
nsCAutoString dataCharset;
nsCOMPtr<nsIDocument> document(do_QueryInterface(mResponseXML));
if (document) {
dataCharset = document->GetDocumentCharacterSet();
} else {
if (NS_FAILED(DetectCharset(dataCharset)) || dataCharset.IsEmpty()) {
// MS documentation states UTF-8 is default for responseText
dataCharset.AssignLiteral("UTF-8");
}
}
if (dataCharset.EqualsLiteral("ASCII")) {
CopyASCIItoUTF16(mResponseBody, aOutBuffer);
return NS_OK;
}
nsCOMPtr<nsICharsetConverterManager> ccm =
do_GetService(NS_CHARSETCONVERTERMANAGER_CONTRACTID, &rv);
if (NS_FAILED(rv))
return rv;
nsCOMPtr<nsIUnicodeDecoder> decoder;
rv = ccm->GetUnicodeDecoderRaw(dataCharset.get(),
getter_AddRefs(decoder));
if (NS_FAILED(rv))
return rv;
const char * inBuffer = mResponseBody.get();
PRInt32 outBufferLength;
rv = decoder->GetMaxLength(inBuffer, dataLen, &outBufferLength);
if (NS_FAILED(rv))
return rv;
PRUnichar * outBuffer =
static_cast<PRUnichar*>(nsMemory::Alloc((outBufferLength + 1) *
sizeof(PRUnichar)));
if (!outBuffer) {
return NS_ERROR_OUT_OF_MEMORY;
}
PRInt32 totalChars = 0,
outBufferIndex = 0,
outLen = outBufferLength;
do {
PRInt32 inBufferLength = dataLen;
rv = decoder->Convert(inBuffer,
&inBufferLength,
&outBuffer[outBufferIndex],
&outLen);
totalChars += outLen;
if (NS_FAILED(rv)) {
// We consume one byte, replace it with U+FFFD
// and try the conversion again.
outBuffer[outBufferIndex + outLen++] = (PRUnichar)0xFFFD;
outBufferIndex += outLen;
outLen = outBufferLength - (++totalChars);
decoder->Reset();
if((inBufferLength + 1) > dataLen) {
inBufferLength = dataLen;
} else {
inBufferLength++;
}
inBuffer = &inBuffer[inBufferLength];
dataLen -= inBufferLength;
}
} while ( NS_FAILED(rv) && (dataLen > 0) );
aOutBuffer.Assign(outBuffer, totalChars);
nsMemory::Free(outBuffer);
return NS_OK;
}
/* readonly attribute AString responseText; */
NS_IMETHODIMP nsXMLHttpRequest::GetResponseText(nsAString& aResponseText)
{
nsresult rv = NS_OK;
aResponseText.Truncate();
if (mState & (XML_HTTP_REQUEST_COMPLETED |
XML_HTTP_REQUEST_INTERACTIVE)) {
rv = ConvertBodyToText(aResponseText);
}
return rv;
}
/* readonly attribute unsigned long status; */
NS_IMETHODIMP
nsXMLHttpRequest::GetStatus(PRUint32 *aStatus)
{
*aStatus = 0;
if (mState & XML_HTTP_REQUEST_USE_XSITE_AC) {
// Make sure we don't leak status information from denied cross-site
// requests.
if (mChannel) {
nsresult status;
mChannel->GetStatus(&status);
if (NS_FAILED(status)) {
return NS_OK;
}
}
}
nsCOMPtr<nsIHttpChannel> httpChannel = GetCurrentHttpChannel();
if (httpChannel) {
nsresult rv = httpChannel->GetResponseStatus(aStatus);
if (rv == NS_ERROR_NOT_AVAILABLE) {
// Someone's calling this before we got a response... Check our
// ReadyState. If we're at 3 or 4, then this means the connection
// errored before we got any data; return 0 in that case.
PRInt32 readyState;
GetReadyState(&readyState);
if (readyState >= 3) {
*aStatus = 0;
return NS_OK;
}
}
return rv;
}
return NS_OK;
}
/* readonly attribute AUTF8String statusText; */
NS_IMETHODIMP
nsXMLHttpRequest::GetStatusText(nsACString& aStatusText)
{
nsCOMPtr<nsIHttpChannel> httpChannel = GetCurrentHttpChannel();
aStatusText.Truncate();
nsresult rv = NS_OK;
if (httpChannel) {
rv = httpChannel->GetResponseStatusText(aStatusText);
}
return rv;
}
/* void abort (); */
NS_IMETHODIMP
nsXMLHttpRequest::Abort()
{
if (mReadRequest) {
mReadRequest->Cancel(NS_BINDING_ABORTED);
}
if (mChannel) {
mChannel->Cancel(NS_BINDING_ABORTED);
}
if (mACGetChannel) {
mACGetChannel->Cancel(NS_BINDING_ABORTED);
}
mResponseXML = nsnull;
PRUint32 responseLength = mResponseBody.Length();
mResponseBody.Truncate();
mState |= XML_HTTP_REQUEST_ABORTED;
if (!(mState & (XML_HTTP_REQUEST_UNINITIALIZED |
XML_HTTP_REQUEST_OPENED |
XML_HTTP_REQUEST_COMPLETED))) {
ChangeState(XML_HTTP_REQUEST_COMPLETED, PR_TRUE);
}
if (!(mState & XML_HTTP_REQUEST_SYNCLOOPING)) {
NS_NAMED_LITERAL_STRING(abortStr, ABORT_STR);
DispatchProgressEvent(this, abortStr, mLoadLengthComputable, responseLength,
mLoadTotal);
if (mUpload && !mUploadComplete) {
mUploadComplete = PR_TRUE;
DispatchProgressEvent(mUpload, abortStr, PR_TRUE, mUploadTransferred,
mUploadTotal);
}
}
// The ChangeState call above calls onreadystatechange handlers which
// if they load a new url will cause nsXMLHttpRequest::OpenRequest to clear
// the abort state bit. If this occurs we're not uninitialized (bug 361773).
if (mState & XML_HTTP_REQUEST_ABORTED) {
ChangeState(XML_HTTP_REQUEST_UNINITIALIZED, PR_FALSE); // IE seems to do it
}
mState &= ~XML_HTTP_REQUEST_SYNCLOOPING;
return NS_OK;
}
/* string getAllResponseHeaders (); */
NS_IMETHODIMP
nsXMLHttpRequest::GetAllResponseHeaders(char **_retval)
{
NS_ENSURE_ARG_POINTER(_retval);
*_retval = nsnull;
if (mState & XML_HTTP_REQUEST_USE_XSITE_AC) {
return NS_OK;
}
nsCOMPtr<nsIHttpChannel> httpChannel = GetCurrentHttpChannel();
if (httpChannel) {
nsHeaderVisitor *visitor = nsnull;
NS_NEWXPCOM(visitor, nsHeaderVisitor);
if (!visitor)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(visitor);
nsresult rv = httpChannel->VisitResponseHeaders(visitor);
if (NS_SUCCEEDED(rv))
*_retval = ToNewCString(visitor->Headers());
NS_RELEASE(visitor);
return rv;
}
return NS_OK;
}
/* ACString getResponseHeader (in AUTF8String header); */
NS_IMETHODIMP
nsXMLHttpRequest::GetResponseHeader(const nsACString& header,
nsACString& _retval)
{
nsresult rv = NS_OK;
_retval.Truncate();
// See bug #380418. Hide "Set-Cookie" headers from non-chrome scripts.
PRBool chrome = PR_FALSE; // default to false in case IsCapabilityEnabled fails
IsCapabilityEnabled("UniversalXPConnect", &chrome);
if (!chrome &&
(header.LowerCaseEqualsASCII("set-cookie") ||
header.LowerCaseEqualsASCII("set-cookie2"))) {
NS_WARNING("blocked access to response header");
_retval.SetIsVoid(PR_TRUE);
return NS_OK;
}
// Check for dangerous headers
if (mState & XML_HTTP_REQUEST_USE_XSITE_AC) {
// Make sure we don't leak header information from denied cross-site
// requests.
if (mChannel) {
nsresult status;
mChannel->GetStatus(&status);
if (NS_FAILED(status)) {
return NS_OK;
}
}
const char *kCrossOriginSafeHeaders[] = {
"cache-control", "content-language", "content-type", "expires",
"last-modified", "pragma"
};
PRBool safeHeader = PR_FALSE;
PRUint32 i;
for (i = 0; i < NS_ARRAY_LENGTH(kCrossOriginSafeHeaders); ++i) {
if (header.LowerCaseEqualsASCII(kCrossOriginSafeHeaders[i])) {
safeHeader = PR_TRUE;
break;
}
}
if (!safeHeader) {
return NS_OK;
}
}
nsCOMPtr<nsIHttpChannel> httpChannel = GetCurrentHttpChannel();
if (httpChannel) {
rv = httpChannel->GetResponseHeader(header, _retval);
}
if (rv == NS_ERROR_NOT_AVAILABLE) {
// Means no header
_retval.SetIsVoid(PR_TRUE);
rv = NS_OK;
}
return rv;
}
nsresult
nsXMLHttpRequest::GetLoadGroup(nsILoadGroup **aLoadGroup)
{
NS_ENSURE_ARG_POINTER(aLoadGroup);
*aLoadGroup = nsnull;
if (mState & XML_HTTP_REQUEST_BACKGROUND) {
return NS_OK;
}
nsCOMPtr<nsIDocument> doc =
nsContentUtils::GetDocumentFromScriptContext(mScriptContext);
if (doc) {
*aLoadGroup = doc->GetDocumentLoadGroup().get(); // already_AddRefed
}
return NS_OK;
}
nsresult
nsXMLHttpRequest::CreateReadystatechangeEvent(nsIDOMEvent** aDOMEvent)
{
nsresult rv = nsEventDispatcher::CreateEvent(nsnull, nsnull,
NS_LITERAL_STRING("Events"),
aDOMEvent);
if (NS_FAILED(rv)) {
return rv;
}
nsCOMPtr<nsIPrivateDOMEvent> privevent(do_QueryInterface(*aDOMEvent));
if (!privevent) {
NS_IF_RELEASE(*aDOMEvent);
return NS_ERROR_FAILURE;
}
(*aDOMEvent)->InitEvent(NS_LITERAL_STRING(READYSTATE_STR),
PR_FALSE, PR_FALSE);
// We assume anyone who managed to call CreateReadystatechangeEvent is trusted
privevent->SetTrusted(PR_TRUE);
return NS_OK;
}
void
nsXMLHttpRequest::DispatchProgressEvent(nsPIDOMEventTarget* aTarget,
const nsAString& aType,
PRBool aUseLSEventWrapper,
PRBool aLengthComputable,
PRUint64 aLoaded, PRUint64 aTotal,
PRUint64 aPosition, PRUint64 aTotalSize)
{
NS_ASSERTION(aTarget, "null target");
if (aType.IsEmpty() ||
(!AllowUploadProgress() &&
(aTarget == mUpload || aType.EqualsLiteral(UPLOADPROGRESS_STR)))) {
return;
}
nsCOMPtr<nsIDOMEvent> event;
nsresult rv = nsEventDispatcher::CreateEvent(nsnull, nsnull,
NS_LITERAL_STRING("ProgressEvent"),
getter_AddRefs(event));
if (NS_FAILED(rv)) {
return;
}
nsCOMPtr<nsIPrivateDOMEvent> privevent(do_QueryInterface(event));
if (!privevent) {
return;
}
privevent->SetTrusted(PR_TRUE);
nsCOMPtr<nsIDOMProgressEvent> progress = do_QueryInterface(event);
if (!progress) {
return;
}
progress->InitProgressEvent(aType, PR_FALSE, PR_FALSE, aLengthComputable,
aLoaded, (aTotal == LL_MAXUINT) ? 0 : aTotal);
if (aUseLSEventWrapper) {
nsCOMPtr<nsIDOMProgressEvent> xhrprogressEvent =
new nsXMLHttpProgressEvent(progress, aPosition, aTotalSize);
if (!xhrprogressEvent) {
return;
}
event = xhrprogressEvent;
}
aTarget->DispatchDOMEvent(nsnull, event, nsnull, nsnull);
}
already_AddRefed<nsIHttpChannel>
nsXMLHttpRequest::GetCurrentHttpChannel()
{
nsIHttpChannel *httpChannel = nsnull;
if (mReadRequest) {
CallQueryInterface(mReadRequest, &httpChannel);
}
if (!httpChannel && mChannel) {
CallQueryInterface(mChannel, &httpChannel);
}
return httpChannel;
}
inline PRBool
IsSystemPrincipal(nsIPrincipal* aPrincipal)
{
PRBool isSystem = PR_FALSE;
nsContentUtils::GetSecurityManager()->
IsSystemPrincipal(aPrincipal, &isSystem);
return isSystem;
}
static PRBool
CheckMayLoad(nsIPrincipal* aPrincipal, nsIChannel* aChannel)
{
NS_ASSERTION(!IsSystemPrincipal(aPrincipal), "Shouldn't get here!");
nsCOMPtr<nsIURI> channelURI, originalURI;
nsresult rv = aChannel->GetURI(getter_AddRefs(channelURI));
NS_ENSURE_SUCCESS(rv, PR_FALSE);
rv = aChannel->GetOriginalURI(getter_AddRefs(originalURI));
NS_ENSURE_SUCCESS(rv, PR_FALSE);
rv = aPrincipal->CheckMayLoad(channelURI, PR_FALSE);
if (NS_SUCCEEDED(rv) && originalURI != channelURI) {
rv = aPrincipal->CheckMayLoad(originalURI, PR_FALSE);
}
return NS_SUCCEEDED(rv);
}
nsresult
nsXMLHttpRequest::CheckChannelForCrossSiteRequest(nsIChannel* aChannel)
{
nsresult rv;
// First check if this is a same-origin request, or if cross-site requests
// are enabled.
if ((mState & XML_HTTP_REQUEST_XSITEENABLED) ||
CheckMayLoad(mPrincipal, aChannel)) {
return NS_OK;
}
// This is a cross-site request
mState |= XML_HTTP_REQUEST_USE_XSITE_AC;
// Check if we need to do a preflight request.
nsCOMPtr<nsIHttpChannel> httpChannel = do_QueryInterface(aChannel);
NS_ENSURE_TRUE(httpChannel, NS_ERROR_DOM_BAD_URI);
nsCAutoString method;
httpChannel->GetRequestMethod(method);
if (!mACUnsafeHeaders.IsEmpty() ||
HasListenersFor(NS_LITERAL_STRING(UPLOADPROGRESS_STR)) ||
(mUpload && mUpload->HasListeners())) {
mState |= XML_HTTP_REQUEST_NEED_AC_PREFLIGHT;
}
else if (method.LowerCaseEqualsLiteral("post")) {
nsCAutoString contentTypeHeader;
httpChannel->GetRequestHeader(NS_LITERAL_CSTRING("Content-Type"),
contentTypeHeader);
nsCAutoString contentType, charset;
rv = NS_ParseContentType(contentTypeHeader, contentType, charset);
NS_ENSURE_SUCCESS(rv, rv);
if (!contentType.LowerCaseEqualsLiteral("text/plain")) {
mState |= XML_HTTP_REQUEST_NEED_AC_PREFLIGHT;
}
}
else if (!method.LowerCaseEqualsLiteral("get") &&
!method.LowerCaseEqualsLiteral("head")) {
mState |= XML_HTTP_REQUEST_NEED_AC_PREFLIGHT;
}
return NS_OK;
}
/* noscript void openRequest (in AUTF8String method, in AUTF8String url, in boolean async, in AString user, in AString password); */
NS_IMETHODIMP
nsXMLHttpRequest::OpenRequest(const nsACString& method,
const nsACString& url,
PRBool async,
const nsAString& user,
const nsAString& password)
{
NS_ENSURE_ARG(!method.IsEmpty());
NS_ENSURE_ARG(!url.IsEmpty());
NS_ENSURE_TRUE(mPrincipal, NS_ERROR_NOT_INITIALIZED);
// Disallow HTTP/1.1 TRACE method (see bug 302489)
// and MS IIS equivalent TRACK (see bug 381264)
if (method.LowerCaseEqualsLiteral("trace") ||
method.LowerCaseEqualsLiteral("track")) {
return NS_ERROR_INVALID_ARG;
}
nsresult rv;
nsCOMPtr<nsIURI> uri;
PRBool authp = PR_FALSE;
if (mState & (XML_HTTP_REQUEST_OPENED |
XML_HTTP_REQUEST_LOADED |
XML_HTTP_REQUEST_INTERACTIVE |
XML_HTTP_REQUEST_SENT |
XML_HTTP_REQUEST_STOPPED)) {
// IE aborts as well
Abort();
// XXX We should probably send a warning to the JS console
// that load was aborted and event listeners were cleared
// since this looks like a situation that could happen
// by accident and you could spend a lot of time wondering
// why things didn't work.
}
if (mState & XML_HTTP_REQUEST_ABORTED) {
// Something caused this request to abort (e.g the current request
// was caceled, channels closed etc), most likely the abort()
// function was called by script. Unset our aborted state, and
// proceed as normal
mState &= ~XML_HTTP_REQUEST_ABORTED;
}
if (async) {
mState |= XML_HTTP_REQUEST_ASYNC;
} else {
mState &= ~XML_HTTP_REQUEST_ASYNC;
}
mState &= ~XML_HTTP_REQUEST_MPART_HEADERS;
nsCOMPtr<nsIDocument> doc =
nsContentUtils::GetDocumentFromScriptContext(mScriptContext);
nsCOMPtr<nsIURI> baseURI;
if (mBaseURI) {
baseURI = mBaseURI;
}
else if (doc) {
baseURI = doc->GetBaseURI();
}
rv = NS_NewURI(getter_AddRefs(uri), url, nsnull, baseURI);
if (NS_FAILED(rv)) return rv;
// mScriptContext should be initialized because of GetBaseURI() above.
// Still need to consider the case that doc is nsnull however.
rv = CheckInnerWindowCorrectness();
NS_ENSURE_SUCCESS(rv, rv);
PRInt16 shouldLoad = nsIContentPolicy::ACCEPT;
rv = NS_CheckContentLoadPolicy(nsIContentPolicy::TYPE_XMLHTTPREQUEST,
uri,
mPrincipal,
doc,
EmptyCString(), //mime guess
nsnull, //extra
&shouldLoad,
nsContentUtils::GetContentPolicy(),
nsContentUtils::GetSecurityManager());
if (NS_FAILED(rv)) return rv;
if (NS_CP_REJECTED(shouldLoad)) {
// Disallowed by content policy
return NS_ERROR_CONTENT_BLOCKED;
}
if (!user.IsEmpty()) {
nsCAutoString userpass;
CopyUTF16toUTF8(user, userpass);
if (!password.IsEmpty()) {
userpass.Append(':');
AppendUTF16toUTF8(password, userpass);
}
uri->SetUserPass(userpass);
authp = PR_TRUE;
}
// When we are called from JS we can find the load group for the page,
// and add ourselves to it. This way any pending requests
// will be automatically aborted if the user leaves the page.
nsCOMPtr<nsILoadGroup> loadGroup;
GetLoadGroup(getter_AddRefs(loadGroup));
// nsIRequest::LOAD_BACKGROUND prevents throbber from becoming active, which
// in turn keeps STOP button from becoming active. If the consumer passed in
// a progress event handler we must load with nsIRequest::LOAD_NORMAL or
// necko won't generate any progress notifications
nsLoadFlags loadFlags;
if (HasListenersFor(NS_LITERAL_STRING(PROGRESS_STR)) ||
HasListenersFor(NS_LITERAL_STRING(UPLOADPROGRESS_STR)) ||
(mUpload && mUpload->HasListenersFor(NS_LITERAL_STRING(PROGRESS_STR)))) {
loadFlags = nsIRequest::LOAD_NORMAL;
} else {
loadFlags = nsIRequest::LOAD_BACKGROUND;
}
rv = NS_NewChannel(getter_AddRefs(mChannel), uri, nsnull, loadGroup, nsnull,
loadFlags);
if (NS_FAILED(rv)) return rv;
// Check if we're doing a cross-origin request.
if (IsSystemPrincipal(mPrincipal)) {
// Chrome callers are always allowed to read from different origins.
mState |= XML_HTTP_REQUEST_XSITEENABLED;
}
mState &= ~(XML_HTTP_REQUEST_USE_XSITE_AC |
XML_HTTP_REQUEST_NEED_AC_PREFLIGHT);
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(mChannel));
if (httpChannel) {
rv = httpChannel->SetRequestMethod(method);
NS_ENSURE_SUCCESS(rv, rv);
}
ChangeState(XML_HTTP_REQUEST_OPENED);
return rv;
}
/* void open (in AUTF8String method, in AUTF8String url); */
NS_IMETHODIMP
nsXMLHttpRequest::Open(const nsACString& method, const nsACString& url)
{
nsresult rv = NS_OK;
PRBool async = PR_TRUE;
nsAutoString user, password;
nsAXPCNativeCallContext *cc = nsnull;
nsIXPConnect *xpc = nsContentUtils::XPConnect();
if (xpc) {
rv = xpc->GetCurrentNativeCallContext(&cc);
}
if (NS_SUCCEEDED(rv) && cc) {
PRUint32 argc;
rv = cc->GetArgc(&argc);
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
jsval* argv;
rv = cc->GetArgvPtr(&argv);
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
JSContext* cx;
rv = cc->GetJSContext(&cx);
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
// Find out if UniversalBrowserRead privileges are enabled
if (nsContentUtils::IsCallerTrustedForRead()) {
mState |= XML_HTTP_REQUEST_XSITEENABLED;
} else {
mState &= ~XML_HTTP_REQUEST_XSITEENABLED;
}
if (argc > 2) {
JSAutoRequest ar(cx);
JSBool asyncBool;
::JS_ValueToBoolean(cx, argv[2], &asyncBool);
async = (PRBool)asyncBool;
if (argc > 3 && !JSVAL_IS_NULL(argv[3]) && !JSVAL_IS_VOID(argv[3])) {
JSString* userStr = ::JS_ValueToString(cx, argv[3]);
if (userStr) {
user.Assign(reinterpret_cast<PRUnichar *>
(::JS_GetStringChars(userStr)),
::JS_GetStringLength(userStr));
}
if (argc > 4 && !JSVAL_IS_NULL(argv[4]) && !JSVAL_IS_VOID(argv[4])) {
JSString* passwdStr = JS_ValueToString(cx, argv[4]);
if (passwdStr) {
password.Assign(reinterpret_cast<PRUnichar *>
(::JS_GetStringChars(passwdStr)),
::JS_GetStringLength(passwdStr));
}
}
}
}
}
return OpenRequest(method, url, async, user, password);
}
/*
* "Copy" from a stream.
*/
NS_METHOD
nsXMLHttpRequest::StreamReaderFunc(nsIInputStream* in,
void* closure,
const char* fromRawSegment,
PRUint32 toOffset,
PRUint32 count,
PRUint32 *writeCount)
{
nsXMLHttpRequest* xmlHttpRequest = static_cast<nsXMLHttpRequest*>(closure);
if (!xmlHttpRequest || !writeCount) {
NS_WARNING("XMLHttpRequest cannot read from stream: no closure or writeCount");
return NS_ERROR_FAILURE;
}
// Copy for our own use
xmlHttpRequest->mResponseBody.Append(fromRawSegment,count);
nsresult rv = NS_OK;
if (xmlHttpRequest->mState & XML_HTTP_REQUEST_PARSEBODY) {
// Give the same data to the parser.
// We need to wrap the data in a new lightweight stream and pass that
// to the parser, because calling ReadSegments() recursively on the same
// stream is not supported.
nsCOMPtr<nsIInputStream> copyStream;
rv = NS_NewByteInputStream(getter_AddRefs(copyStream), fromRawSegment, count);
if (NS_SUCCEEDED(rv) && xmlHttpRequest->mXMLParserStreamListener) {
NS_ASSERTION(copyStream, "NS_NewByteInputStream lied");
nsresult parsingResult = xmlHttpRequest->mXMLParserStreamListener
->OnDataAvailable(xmlHttpRequest->mReadRequest,
xmlHttpRequest->mContext,
copyStream, toOffset, count);
// No use to continue parsing if we failed here, but we
// should still finish reading the stream
if (NS_FAILED(parsingResult)) {
xmlHttpRequest->mState &= ~XML_HTTP_REQUEST_PARSEBODY;
}
}
}
xmlHttpRequest->ChangeState(XML_HTTP_REQUEST_INTERACTIVE);
if (NS_SUCCEEDED(rv)) {
*writeCount = count;
} else {
*writeCount = 0;
}
return rv;
}
/* void onDataAvailable (in nsIRequest request, in nsISupports ctxt, in nsIInputStream inStr, in unsigned long sourceOffset, in unsigned long count); */
NS_IMETHODIMP
nsXMLHttpRequest::OnDataAvailable(nsIRequest *request, nsISupports *ctxt, nsIInputStream *inStr, PRUint32 sourceOffset, PRUint32 count)
{
NS_ENSURE_ARG_POINTER(inStr);
NS_ABORT_IF_FALSE(mContext.get() == ctxt,"start context different from OnDataAvailable context");
PRUint32 totalRead;
return inStr->ReadSegments(nsXMLHttpRequest::StreamReaderFunc, (void*)this, count, &totalRead);
}
PRBool
IsSameOrBaseChannel(nsIRequest* aPossibleBase, nsIChannel* aChannel)
{
nsCOMPtr<nsIMultiPartChannel> mpChannel = do_QueryInterface(aPossibleBase);
if (mpChannel) {
nsCOMPtr<nsIChannel> baseChannel;
nsresult rv = mpChannel->GetBaseChannel(getter_AddRefs(baseChannel));
NS_ENSURE_SUCCESS(rv, PR_FALSE);
return baseChannel == aChannel;
}
return aPossibleBase == aChannel;
}
/* void onStartRequest (in nsIRequest request, in nsISupports ctxt); */
NS_IMETHODIMP
nsXMLHttpRequest::OnStartRequest(nsIRequest *request, nsISupports *ctxt)
{
nsresult rv = NS_OK;
if (!mFirstStartRequestSeen && mRequestObserver) {
mFirstStartRequestSeen = PR_TRUE;
mRequestObserver->OnStartRequest(request, ctxt);
}
if (!IsSameOrBaseChannel(request, mChannel)) {
return NS_OK;
}
// Don't do anything if we have been aborted
if (mState & XML_HTTP_REQUEST_UNINITIALIZED)
return NS_OK;
if (mState & XML_HTTP_REQUEST_ABORTED) {
NS_ERROR("Ugh, still getting data on an aborted XMLHttpRequest!");
return NS_ERROR_UNEXPECTED;
}
nsCOMPtr<nsIChannel> channel(do_QueryInterface(request));
NS_ENSURE_TRUE(channel, NS_ERROR_UNEXPECTED);
nsCOMPtr<nsIPrincipal> documentPrincipal = mPrincipal;
if (IsSystemPrincipal(documentPrincipal)) {
// Don't give this document the system principal. We need to keep track of
// mPrincipal being system because we use it for various security checks
// that should be passing, but the document data shouldn't get a system
// principal.
nsresult rv;
documentPrincipal = do_CreateInstance("@mozilla.org/nullprincipal;1", &rv);
NS_ENSURE_SUCCESS(rv, rv);
}
channel->SetOwner(documentPrincipal);
mReadRequest = request;
mContext = ctxt;
mState |= XML_HTTP_REQUEST_PARSEBODY;
mState &= ~XML_HTTP_REQUEST_MPART_HEADERS;
ChangeState(XML_HTTP_REQUEST_LOADED);
nsresult status;
request->GetStatus(&status);
mErrorLoad = mErrorLoad || NS_FAILED(status);
if (mUpload && !mUploadComplete && !mErrorLoad &&
(mState & XML_HTTP_REQUEST_ASYNC)) {
mUploadComplete = PR_TRUE;
DispatchProgressEvent(mUpload, NS_LITERAL_STRING(LOAD_STR),
PR_TRUE, mUploadTotal, mUploadTotal);
}
// Reset responseBody
mResponseBody.Truncate();
// Set up responseXML
PRBool parseBody = PR_TRUE;
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(mChannel));
if (httpChannel) {
nsCAutoString method;
httpChannel->GetRequestMethod(method);
parseBody = !method.EqualsLiteral("HEAD");
}
if (parseBody && NS_SUCCEEDED(status)) {
if (!mOverrideMimeType.IsEmpty()) {
channel->SetContentType(mOverrideMimeType);
}
// We can gain a huge performance win by not even trying to
// parse non-XML data. This also protects us from the situation
// where we have an XML document and sink, but HTML (or other)
// parser, which can produce unreliable results.
nsCAutoString type;
channel->GetContentType(type);
if (type.Find("xml") == kNotFound) {
mState &= ~XML_HTTP_REQUEST_PARSEBODY;
}
} else {
// The request failed, so we shouldn't be parsing anyway
mState &= ~XML_HTTP_REQUEST_PARSEBODY;
}
if (mState & XML_HTTP_REQUEST_PARSEBODY) {
nsCOMPtr<nsIURI> baseURI, docURI;
nsCOMPtr<nsIDocument> doc =
nsContentUtils::GetDocumentFromScriptContext(mScriptContext);
if (doc) {
docURI = doc->GetDocumentURI();
baseURI = doc->GetBaseURI();
}
// Create an empty document from it. Here we have to cheat a little bit...
// Setting the base URI to |baseURI| won't work if the document has a null
// principal, so use mPrincipal when creating the document, then reset the
// principal.
const nsAString& emptyStr = EmptyString();
nsCOMPtr<nsIScriptGlobalObject> global = do_QueryInterface(mOwner);
rv = nsContentUtils::CreateDocument(emptyStr, emptyStr, nsnull, docURI,
baseURI, mPrincipal, global,
getter_AddRefs(mResponseXML));
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsIDocument> responseDoc = do_QueryInterface(mResponseXML);
responseDoc->SetPrincipal(documentPrincipal);
if (mState & XML_HTTP_REQUEST_USE_XSITE_AC) {
nsCOMPtr<nsIHTMLDocument> htmlDoc = do_QueryInterface(mResponseXML);
if (htmlDoc) {
htmlDoc->DisableCookieAccess();
}
}
// Register as a load listener on the document
nsCOMPtr<nsPIDOMEventTarget> target(do_QueryInterface(mResponseXML));
if (target) {
nsWeakPtr requestWeak =
do_GetWeakReference(static_cast<nsIXMLHttpRequest*>(this));
nsCOMPtr<nsIDOMEventListener> proxy = new nsLoadListenerProxy(requestWeak);
if (!proxy) return NS_ERROR_OUT_OF_MEMORY;
// This will addref the proxy
rv = target->AddEventListenerByIID(static_cast<nsIDOMEventListener*>
(proxy),
NS_GET_IID(nsIDOMLoadListener));
NS_ENSURE_SUCCESS(rv, rv);
}
nsCOMPtr<nsIStreamListener> listener;
nsCOMPtr<nsILoadGroup> loadGroup;
channel->GetLoadGroup(getter_AddRefs(loadGroup));
rv = responseDoc->StartDocumentLoad(kLoadAsData, channel, loadGroup,
nsnull, getter_AddRefs(listener),
!(mState & XML_HTTP_REQUEST_USE_XSITE_AC));
NS_ENSURE_SUCCESS(rv, rv);
mXMLParserStreamListener = listener;
rv = mXMLParserStreamListener->OnStartRequest(request, ctxt);
NS_ENSURE_SUCCESS(rv, rv);
}
// We won't get any progress events anyway if we didn't have progress
// events when starting the request - so maybe no need to start timer here.
if (NS_SUCCEEDED(rv) &&
(mState & XML_HTTP_REQUEST_ASYNC) &&
HasListenersFor(NS_LITERAL_STRING(PROGRESS_STR))) {
StartProgressEventTimer();
}
return NS_OK;
}
/* void onStopRequest (in nsIRequest request, in nsISupports ctxt, in nsresult status, in wstring statusArg); */
NS_IMETHODIMP
nsXMLHttpRequest::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult status)
{
if (!IsSameOrBaseChannel(request, mChannel)) {
return NS_OK;
}
nsresult rv = NS_OK;
// If we're loading a multipart stream of XML documents, we'll get
// an OnStopRequest() for the last part in the stream, and then
// another one for the end of the initiating
// "multipart/x-mixed-replace" stream too. So we must check that we
// still have an xml parser stream listener before accessing it
// here.
nsCOMPtr<nsIMultiPartChannel> mpChannel = do_QueryInterface(request);
if (mpChannel) {
PRBool last;
rv = mpChannel->GetIsLastPart(&last);
NS_ENSURE_SUCCESS(rv, rv);
if (last) {
mState |= XML_HTTP_REQUEST_GOT_FINAL_STOP;
}
}
else {
mState |= XML_HTTP_REQUEST_GOT_FINAL_STOP;
}
if (mRequestObserver && mState & XML_HTTP_REQUEST_GOT_FINAL_STOP) {
NS_ASSERTION(mFirstStartRequestSeen, "Inconsistent state!");
mFirstStartRequestSeen = PR_FALSE;
mRequestObserver->OnStopRequest(request, ctxt, status);
}
// Don't do anything if we have been aborted
if (mState & XML_HTTP_REQUEST_UNINITIALIZED)
return NS_OK;
nsCOMPtr<nsIParser> parser;
// Is this good enough here?
if (mState & XML_HTTP_REQUEST_PARSEBODY && mXMLParserStreamListener) {
parser = do_QueryInterface(mXMLParserStreamListener);
NS_ABORT_IF_FALSE(parser, "stream listener was expected to be a parser");
rv = mXMLParserStreamListener->OnStopRequest(request, ctxt, status);
}
mXMLParserStreamListener = nsnull;
mReadRequest = nsnull;
mContext = nsnull;
nsCOMPtr<nsIChannel> channel(do_QueryInterface(request));
NS_ENSURE_TRUE(channel, NS_ERROR_UNEXPECTED);
channel->SetNotificationCallbacks(nsnull);
mNotificationCallbacks = nsnull;
mChannelEventSink = nsnull;
mProgressEventSink = nsnull;
if (NS_FAILED(status)) {
// This can happen if the server is unreachable. Other possible
// reasons are that the user leaves the page or hits the ESC key.
Error(nsnull);
// By nulling out channel here we make it so that Send() can test
// for that and throw. Also calling the various status
// methods/members will not throw.
// This matches what IE does.
mChannel = nsnull;
} else if (!parser || parser->IsParserEnabled()) {
// If we don't have a parser, we never attempted to parse the
// incoming data, and we can proceed to call RequestCompleted().
// Alternatively, if we do have a parser, its possible that we
// have given it some data and this caused it to block e.g. by a
// by a xml-stylesheet PI. In this case, we will have to wait till
// it gets enabled again and RequestCompleted() must be called
// later, when we get the load event from the document. If the
// parser is enabled, it is not blocked and we can still go ahead
// and call RequestCompleted() and expect everything to get
// cleaned up immediately.
RequestCompleted();
} else {
ChangeState(XML_HTTP_REQUEST_STOPPED, PR_FALSE);
}
mState &= ~XML_HTTP_REQUEST_SYNCLOOPING;
return rv;
}
nsresult
nsXMLHttpRequest::RequestCompleted()
{
nsresult rv = NS_OK;
mState &= ~XML_HTTP_REQUEST_SYNCLOOPING;
// If we're uninitialized at this point, we encountered an error
// earlier and listeners have already been notified. Also we do
// not want to do this if we already completed.
if (mState & (XML_HTTP_REQUEST_UNINITIALIZED |
XML_HTTP_REQUEST_COMPLETED)) {
return NS_OK;
}
// We might have been sent non-XML data. If that was the case,
// we should null out the document member. The idea in this
// check here is that if there is no document element it is not
// an XML document. We might need a fancier check...
if (mResponseXML) {
nsCOMPtr<nsIDOMElement> root;
mResponseXML->GetDocumentElement(getter_AddRefs(root));
if (!root) {
mResponseXML = nsnull;
}
}
ChangeState(XML_HTTP_REQUEST_COMPLETED, PR_TRUE);
PRUint32 responseLength = mResponseBody.Length();
NS_NAMED_LITERAL_STRING(errorStr, ERROR_STR);
NS_NAMED_LITERAL_STRING(loadStr, LOAD_STR);
DispatchProgressEvent(this,
mErrorLoad ? errorStr : loadStr,
!mErrorLoad,
responseLength,
mErrorLoad ? 0 : responseLength);
if (mErrorLoad && mUpload && !mUploadComplete) {
DispatchProgressEvent(mUpload, errorStr, PR_TRUE,
mUploadTransferred, mUploadTotal);
}
if (!(mState & XML_HTTP_REQUEST_GOT_FINAL_STOP)) {
// We're a multipart request, so we're not done. Reset to opened.
ChangeState(XML_HTTP_REQUEST_OPENED);
}
nsJSContext::MaybeCC(PR_FALSE);
return rv;
}
NS_IMETHODIMP
nsXMLHttpRequest::SendAsBinary(const nsAString &aBody)
{
char *data = static_cast<char*>(NS_Alloc(aBody.Length() + 1));
if (!data)
return NS_ERROR_OUT_OF_MEMORY;
nsAString::const_iterator iter, end;
aBody.BeginReading(iter);
aBody.EndReading(end);
char *p = data;
while (iter != end) {
if (*iter & 0xFF00) {
NS_Free(data);
return NS_ERROR_DOM_INVALID_CHARACTER_ERR;
}
*p++ = static_cast<char>(*iter++);
}
*p = '\0';
nsCOMPtr<nsIInputStream> stream;
nsresult rv = NS_NewByteInputStream(getter_AddRefs(stream), data,
aBody.Length(), NS_ASSIGNMENT_ADOPT);
if (NS_FAILED(rv))
NS_Free(data);
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsIWritableVariant> variant = new nsVariant();
if (!variant) return NS_ERROR_OUT_OF_MEMORY;
rv = variant->SetAsISupports(stream);
NS_ENSURE_SUCCESS(rv, rv);
return Send(variant);
}
/* void send (in nsIVariant aBody); */
NS_IMETHODIMP
nsXMLHttpRequest::Send(nsIVariant *aBody)
{
NS_ENSURE_TRUE(mPrincipal, NS_ERROR_NOT_INITIALIZED);
nsresult rv = CheckInnerWindowCorrectness();
NS_ENSURE_SUCCESS(rv, rv);
// Return error if we're already processing a request
if (XML_HTTP_REQUEST_SENT & mState) {
return NS_ERROR_FAILURE;
}
// Make sure we've been opened
if (!mChannel || !(XML_HTTP_REQUEST_OPENED & mState)) {
return NS_ERROR_NOT_INITIALIZED;
}
// XXX We should probably send a warning to the JS console
// if there are no event listeners set and we are doing
// an asynchronous call.
// Ignore argument if method is GET, there is no point in trying to
// upload anything
nsCAutoString method;
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(mChannel));
if (httpChannel) {
httpChannel->GetRequestMethod(method); // If GET, method name will be uppercase
if (!IsSystemPrincipal(mPrincipal)) {
nsCOMPtr<nsIURI> codebase;
mPrincipal->GetURI(getter_AddRefs(codebase));
httpChannel->SetReferrer(codebase);
}
// Some extensions override the http protocol handler and provide their own
// implementation. The channels returned from that implementation doesn't
// seem to always implement the nsIUploadChannel2 interface, presumably
// because it's a new interface.
// Eventually we should remove this and simply require that http channels
// implement the new interface.
// See bug 529041
nsCOMPtr<nsIUploadChannel2> uploadChannel2 =
do_QueryInterface(httpChannel);
if (!uploadChannel2) {
nsCOMPtr<nsIConsoleService> consoleService =
do_GetService(NS_CONSOLESERVICE_CONTRACTID);
if (consoleService) {
consoleService->LogStringMessage(NS_MULTILINE_LITERAL_STRING(
NS_L("Http channel implementation doesn't support ")
NS_L("nsIUploadChannel2. An extension has supplied a non-functional")
NS_L("http protocol handler. This will break behavior and in future ")
NS_L("releases not work at all.")).get());
}
}
}
mUploadTransferred = 0;
mUploadTotal = 0;
// By default we don't have any upload, so mark upload complete.
mUploadComplete = PR_TRUE;
mErrorLoad = PR_FALSE;
mLoadLengthComputable = PR_FALSE;
mLoadTotal = 0;
mUploadProgress = 0;
mUploadProgressMax = 0;
if (aBody && httpChannel && !method.EqualsLiteral("GET")) {
nsXPIDLString serial;
nsCOMPtr<nsIInputStream> postDataStream;
nsCAutoString charset(NS_LITERAL_CSTRING("UTF-8"));
nsCAutoString defaultContentType(NS_LITERAL_CSTRING("text/plain"));
PRUint16 dataType;
rv = aBody->GetDataType(&dataType);
if (NS_FAILED(rv))
return rv;
switch (dataType) {
case nsIDataType::VTYPE_INTERFACE:
case nsIDataType::VTYPE_INTERFACE_IS:
{
nsCOMPtr<nsISupports> supports;
nsID *iid;
rv = aBody->GetAsInterface(&iid, getter_AddRefs(supports));
if (NS_FAILED(rv))
return rv;
if (iid)
nsMemory::Free(iid);
// document?
nsCOMPtr<nsIDOMDocument> doc(do_QueryInterface(supports));
if (doc) {
defaultContentType.AssignLiteral("application/xml");
nsCOMPtr<nsIDOMSerializer> serializer(do_CreateInstance(NS_XMLSERIALIZER_CONTRACTID, &rv));
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIDOM3Document> dom3doc(do_QueryInterface(doc));
if (dom3doc) {
nsAutoString inputEncoding;
dom3doc->GetInputEncoding(inputEncoding);
if (!DOMStringIsNull(inputEncoding)) {
CopyUTF16toUTF8(inputEncoding, charset);
}
}
// Serialize to a stream so that the encoding used will
// match the document's.
nsCOMPtr<nsIStorageStream> storStream;
rv = NS_NewStorageStream(4096, PR_UINT32_MAX, getter_AddRefs(storStream));
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsIOutputStream> output;
rv = storStream->GetOutputStream(0, getter_AddRefs(output));
NS_ENSURE_SUCCESS(rv, rv);
// Make sure to use the encoding we'll send
rv = serializer->SerializeToStream(doc, output, charset);
NS_ENSURE_SUCCESS(rv, rv);
output->Close();
rv = storStream->NewInputStream(0, getter_AddRefs(postDataStream));
NS_ENSURE_SUCCESS(rv, rv);
} else {
// nsISupportsString?
nsCOMPtr<nsISupportsString> wstr(do_QueryInterface(supports));
if (wstr) {
wstr->GetData(serial);
} else {
// stream?
nsCOMPtr<nsIInputStream> stream(do_QueryInterface(supports));
if (stream) {
postDataStream = stream;
charset.Truncate();
}
else {
// nsIDOMFile?
nsCOMPtr<nsIDOMFileInternal> file(do_QueryInterface(supports));
if (file) {
nsCOMPtr<nsIFile> internalFile;
rv = file->GetInternalFile(getter_AddRefs(internalFile));
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsIInputStream> stream;
rv = NS_NewLocalFileInputStream(getter_AddRefs(stream), internalFile);
NS_ENSURE_SUCCESS(rv, rv);
// Feed local file input stream into our upload channel
if (stream) {
postDataStream = stream;
charset.Truncate();
defaultContentType.Truncate();
nsCOMPtr<nsIMIMEService> mimeService =
do_GetService(NS_MIMESERVICE_CONTRACTID, &rv);
NS_ENSURE_SUCCESS(rv, rv);
nsCAutoString mediaType;
rv = mimeService->GetTypeFromFile(internalFile, mediaType);
if (NS_SUCCEEDED(rv)) {
defaultContentType = mediaType;
}
}
}
}
}
}
}
break;
case nsIDataType::VTYPE_VOID:
case nsIDataType::VTYPE_EMPTY:
// Makes us act as if !aBody, don't upload anything
break;
default:
// try variant string
rv = aBody->GetAsWString(getter_Copies(serial));
NS_ENSURE_SUCCESS(rv, rv);
break;
}
if (serial) {
// Convert to a byte stream
nsCOMPtr<nsIScriptableUnicodeConverter> converter =
do_CreateInstance("@mozilla.org/intl/scriptableunicodeconverter", &rv);
NS_ENSURE_SUCCESS(rv, rv);
rv = converter->SetCharset("UTF-8");
NS_ENSURE_SUCCESS(rv, rv);
rv = converter->ConvertToInputStream(serial,
getter_AddRefs(postDataStream));
NS_ENSURE_SUCCESS(rv, rv);
}
if (postDataStream) {
// If no content type header was set by the client, we set it to
// application/xml.
nsCAutoString contentType;
if (NS_FAILED(httpChannel->
GetRequestHeader(NS_LITERAL_CSTRING("Content-Type"),
contentType)) ||
contentType.IsEmpty()) {
contentType = defaultContentType;
}
// We don't want to set a charset for streams.
if (!charset.IsEmpty()) {
nsCAutoString specifiedCharset;
PRBool haveCharset;
PRInt32 charsetStart, charsetEnd;
rv = NS_ExtractCharsetFromContentType(contentType, specifiedCharset,
&haveCharset, &charsetStart,
&charsetEnd);
if (NS_SUCCEEDED(rv)) {
// If the content-type the page set already has a charset parameter,
// and it's the same charset, up to case, as |charset|, just send the
// page-set content-type header. Apparently at least
// google-web-toolkit is broken and relies on the exact case of its
// charset parameter, which makes things break if we use |charset|
// (which is always a fully resolved charset per our charset alias
// table, hence might be differently cased).
if (!specifiedCharset.Equals(charset,
nsCaseInsensitiveCStringComparator())) {
nsCAutoString newCharset("; charset=");
newCharset.Append(charset);
contentType.Replace(charsetStart, charsetEnd - charsetStart,
newCharset);
}
}
}
// If necessary, wrap the stream in a buffered stream so as to guarantee
// support for our upload when calling ExplicitSetUploadStream.
if (!NS_InputStreamIsBuffered(postDataStream)) {
nsCOMPtr<nsIInputStream> bufferedStream;
rv = NS_NewBufferedInputStream(getter_AddRefs(bufferedStream),
postDataStream,
4096);
NS_ENSURE_SUCCESS(rv, rv);
postDataStream = bufferedStream;
}
mUploadComplete = PR_FALSE;
PRUint32 uploadTotal = 0;
postDataStream->Available(&uploadTotal);
mUploadTotal = uploadTotal;
// We want to use a newer version of the upload channel that won't
// ignore the necessary headers for an empty Content-Type.
nsCOMPtr<nsIUploadChannel2> uploadChannel2(do_QueryInterface(httpChannel));
// This assertion will fire if buggy extensions are installed
NS_ASSERTION(uploadChannel2, "http must support nsIUploadChannel");
if (uploadChannel2) {
uploadChannel2->ExplicitSetUploadStream(postDataStream, contentType,
-1, method, PR_FALSE);
}
else {
// http channel doesn't support the new nsIUploadChannel2. Emulate
// as best we can using nsIUploadChannel
if (contentType.IsEmpty()) {
contentType.AssignLiteral("application/octet-stream");
}
nsCOMPtr<nsIUploadChannel> uploadChannel =
do_QueryInterface(httpChannel);
uploadChannel->SetUploadStream(postDataStream, contentType, -1);
// Reset the method to its original value
httpChannel->SetRequestMethod(method);
}
}
}
// Reset responseBody
mResponseBody.Truncate();
// Reset responseXML
mResponseXML = nsnull;
rv = CheckChannelForCrossSiteRequest(mChannel);
NS_ENSURE_SUCCESS(rv, rv);
PRBool withCredentials = !!(mState & XML_HTTP_REQUEST_AC_WITH_CREDENTIALS);
// If so, set up the preflight
if (mState & XML_HTTP_REQUEST_NEED_AC_PREFLIGHT) {
// Check to see if this initial OPTIONS request has already been cached
// in our special Access Control Cache.
nsCOMPtr<nsIURI> uri;
rv = mChannel->GetURI(getter_AddRefs(uri));
NS_ENSURE_SUCCESS(rv, rv);
nsAccessControlLRUCache::CacheEntry* entry =
sAccessControlCache ?
sAccessControlCache->GetEntry(uri, mPrincipal, withCredentials, PR_FALSE) :
nsnull;
if (!entry || !entry->CheckRequest(method, mACUnsafeHeaders)) {
// Either it wasn't cached or the cached result has expired. Build a
// channel for the OPTIONS request.
nsCOMPtr<nsILoadGroup> loadGroup;
GetLoadGroup(getter_AddRefs(loadGroup));
nsLoadFlags loadFlags;
rv = mChannel->GetLoadFlags(&loadFlags);
NS_ENSURE_SUCCESS(rv, rv);
rv = NS_NewChannel(getter_AddRefs(mACGetChannel), uri, nsnull,
loadGroup, nsnull, loadFlags);
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsIHttpChannel> acHttp = do_QueryInterface(mACGetChannel);
NS_ASSERTION(acHttp, "Failed to QI to nsIHttpChannel!");
rv = acHttp->SetRequestMethod(NS_LITERAL_CSTRING("OPTIONS"));
NS_ENSURE_SUCCESS(rv, rv);
}
}
// Hook us up to listen to redirects and the like
mChannel->GetNotificationCallbacks(getter_AddRefs(mNotificationCallbacks));
mChannel->SetNotificationCallbacks(this);
// Create our listener
nsCOMPtr<nsIStreamListener> listener = this;
if (mState & XML_HTTP_REQUEST_MULTIPART) {
listener = new nsMultipartProxyListener(listener);
if (!listener) {
return NS_ERROR_OUT_OF_MEMORY;
}
}
if (!(mState & XML_HTTP_REQUEST_XSITEENABLED)) {
// Always create a nsCrossSiteListenerProxy here even if it's
// a same-origin request right now, since it could be redirected.
listener = new nsCrossSiteListenerProxy(listener, mPrincipal, mChannel,
withCredentials, &rv);
NS_ENSURE_TRUE(listener, NS_ERROR_OUT_OF_MEMORY);
NS_ENSURE_SUCCESS(rv, rv);
}
// Bypass the network cache in cases where it makes no sense:
// 1) Multipart responses are very large and would likely be doomed by the
// cache once they grow too large, so they are not worth caching.
// 2) POST responses are always unique, and we provide no API that would
// allow our consumers to specify a "cache key" to access old POST
// responses, so they are not worth caching.
if ((mState & XML_HTTP_REQUEST_MULTIPART) || method.EqualsLiteral("POST")) {
AddLoadFlags(mChannel,
nsIRequest::LOAD_BYPASS_CACHE | nsIRequest::INHIBIT_CACHING);
}
// When we are sync loading, we need to bypass the local cache when it would
// otherwise block us waiting for exclusive access to the cache. If we don't
// do this, then we could dead lock in some cases (see bug 309424).
else if (!(mState & XML_HTTP_REQUEST_ASYNC)) {
AddLoadFlags(mChannel,
nsICachingChannel::LOAD_BYPASS_LOCAL_CACHE_IF_BUSY);
if (mACGetChannel) {
AddLoadFlags(mACGetChannel,
nsICachingChannel::LOAD_BYPASS_LOCAL_CACHE_IF_BUSY);
}
}
// Since we expect XML data, set the type hint accordingly
// This means that we always try to parse local files as XML
// ignoring return value, as this is not critical
mChannel->SetContentType(NS_LITERAL_CSTRING("application/xml"));
// If we're doing a cross-site non-GET request we need to first do
// a GET request to the same URI. Set that up if needed
if (mACGetChannel) {
nsCOMPtr<nsIStreamListener> acProxyListener =
new nsACProxyListener(mChannel, listener, nsnull, mPrincipal, method,
withCredentials);
NS_ENSURE_TRUE(acProxyListener, NS_ERROR_OUT_OF_MEMORY);
acProxyListener =
new nsCrossSiteListenerProxy(acProxyListener, mPrincipal, mACGetChannel,
withCredentials, method, mACUnsafeHeaders,
&rv);
NS_ENSURE_TRUE(acProxyListener, NS_ERROR_OUT_OF_MEMORY);
NS_ENSURE_SUCCESS(rv, rv);
rv = mACGetChannel->AsyncOpen(acProxyListener, nsnull);
}
else {
// Start reading from the channel
rv = mChannel->AsyncOpen(listener, nsnull);
}
if (NS_FAILED(rv)) {
// Drop our ref to the channel to avoid cycles
mChannel = nsnull;
mACGetChannel = nsnull;
return rv;
}
// Now that we've successfully opened the channel, we can change state. Note
// that this needs to come after the AsyncOpen() and rv check, because this
// can run script that would try to restart this request, and that could end
// up doing our AsyncOpen on a null channel if the reentered AsyncOpen fails.
ChangeState(XML_HTTP_REQUEST_SENT);
// If we're synchronous, spin an event loop here and wait
if (!(mState & XML_HTTP_REQUEST_ASYNC)) {
mState |= XML_HTTP_REQUEST_SYNCLOOPING;
nsCOMPtr<nsIDocument> suspendedDoc;
nsCOMPtr<nsIRunnable> resumeTimeoutRunnable;
if (mOwner) {
nsCOMPtr<nsIDOMWindow> topWindow;
if (NS_SUCCEEDED(mOwner->GetTop(getter_AddRefs(topWindow)))) {
nsCOMPtr<nsPIDOMWindow> suspendedWindow(do_QueryInterface(topWindow));
if (suspendedWindow &&
(suspendedWindow = suspendedWindow->GetCurrentInnerWindow())) {
suspendedDoc = do_QueryInterface(suspendedWindow->GetExtantDocument());
if (suspendedDoc) {
suspendedDoc->SuppressEventHandling();
}
suspendedWindow->SuspendTimeouts(1, PR_FALSE);
resumeTimeoutRunnable = new nsResumeTimeoutsEvent(suspendedWindow);
}
}
}
nsIThread *thread = NS_GetCurrentThread();
while (mState & XML_HTTP_REQUEST_SYNCLOOPING) {
if (!NS_ProcessNextEvent(thread)) {
rv = NS_ERROR_UNEXPECTED;
break;
}
}
if (suspendedDoc) {
suspendedDoc->UnsuppressEventHandlingAndFireEvents(PR_TRUE);
}
if (resumeTimeoutRunnable) {
NS_DispatchToCurrentThread(resumeTimeoutRunnable);
}
} else {
if (!mUploadComplete &&
HasListenersFor(NS_LITERAL_STRING(UPLOADPROGRESS_STR)) ||
(mUpload && mUpload->HasListenersFor(NS_LITERAL_STRING(PROGRESS_STR)))) {
StartProgressEventTimer();
}
DispatchProgressEvent(this, NS_LITERAL_STRING(LOADSTART_STR), PR_FALSE,
0, 0);
if (mUpload && !mUploadComplete) {
DispatchProgressEvent(mUpload, NS_LITERAL_STRING(LOADSTART_STR), PR_TRUE,
0, mUploadTotal);
}
}
if (!mChannel) {
return NS_ERROR_FAILURE;
}
return rv;
}
/* void setRequestHeader (in AUTF8String header, in AUTF8String value); */
NS_IMETHODIMP
nsXMLHttpRequest::SetRequestHeader(const nsACString& header,
const nsACString& value)
{
nsresult rv;
// Make sure we don't store an invalid header name in mACUnsafeHeaders
if (!IsValidHTTPToken(header)) {
return NS_ERROR_FAILURE;
}
// Check that we haven't already opened the channel. We can't rely on
// the channel throwing from mChannel->SetRequestHeader since we might
// still be waiting for mACGetChannel to actually open mChannel
if (mACGetChannel) {
PRBool pending;
rv = mACGetChannel->IsPending(&pending);
NS_ENSURE_SUCCESS(rv, rv);
if (pending) {
return NS_ERROR_IN_PROGRESS;
}
}
if (!mChannel) // open() initializes mChannel, and open()
return NS_ERROR_FAILURE; // must be called before first setRequestHeader()
nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(mChannel));
if (!httpChannel) {
return NS_OK;
}
// Prevent modification to certain HTTP headers (see bug 302263), unless
// the executing script has UniversalBrowserWrite permission.
PRBool privileged;
rv = IsCapabilityEnabled("UniversalBrowserWrite", &privileged);
if (NS_FAILED(rv))
return NS_ERROR_FAILURE;
if (!privileged) {
// Check for dangerous headers
const char *kInvalidHeaders[] = {
"accept-charset", "accept-encoding", "connection", "content-length",
"content-transfer-encoding", "date", "expect", "host", "keep-alive",
"referer", "te", "trailer", "transfer-encoding", "upgrade", "via"
};
PRUint32 i;
for (i = 0; i < NS_ARRAY_LENGTH(kInvalidHeaders); ++i) {
if (header.LowerCaseEqualsASCII(kInvalidHeaders[i])) {
NS_WARNING("refusing to set request header");
return NS_OK;
}
}
if (StringBeginsWith(header, NS_LITERAL_CSTRING("proxy-"),
nsCaseInsensitiveCStringComparator()) ||
StringBeginsWith(header, NS_LITERAL_CSTRING("sec-"),
nsCaseInsensitiveCStringComparator())) {
NS_WARNING("refusing to set request header");
return NS_OK;
}
// Check for dangerous cross-site headers
PRBool safeHeader = !!(mState & XML_HTTP_REQUEST_XSITEENABLED);
if (!safeHeader) {
const char *kCrossOriginSafeHeaders[] = {
"accept", "accept-language", "content-type"
};
for (i = 0; i < NS_ARRAY_LENGTH(kCrossOriginSafeHeaders); ++i) {
if (header.LowerCaseEqualsASCII(kCrossOriginSafeHeaders[i])) {
safeHeader = PR_TRUE;
break;
}
}
}
if (!safeHeader) {
mACUnsafeHeaders.AppendElement(header);
}
}
// We need to set, not add to, the header.
return httpChannel->SetRequestHeader(header, value, PR_FALSE);
}
/* readonly attribute long readyState; */
NS_IMETHODIMP
nsXMLHttpRequest::GetReadyState(PRInt32 *aState)
{
NS_ENSURE_ARG_POINTER(aState);
// Translate some of our internal states for external consumers
if (mState & XML_HTTP_REQUEST_UNINITIALIZED) {
*aState = 0; // UNINITIALIZED
} else if (mState & (XML_HTTP_REQUEST_OPENED | XML_HTTP_REQUEST_SENT)) {
*aState = 1; // LOADING
} else if (mState & XML_HTTP_REQUEST_LOADED) {
*aState = 2; // LOADED
} else if (mState & (XML_HTTP_REQUEST_INTERACTIVE | XML_HTTP_REQUEST_STOPPED)) {
*aState = 3; // INTERACTIVE
} else if (mState & XML_HTTP_REQUEST_COMPLETED) {
*aState = 4; // COMPLETED
} else {
NS_ERROR("Should not happen");
}
return NS_OK;
}
/* void overrideMimeType(in AUTF8String mimetype); */
NS_IMETHODIMP
nsXMLHttpRequest::OverrideMimeType(const nsACString& aMimeType)
{
// XXX Should we do some validation here?
mOverrideMimeType.Assign(aMimeType);
return NS_OK;
}
/* attribute boolean multipart; */
NS_IMETHODIMP
nsXMLHttpRequest::GetMultipart(PRBool *_retval)
{
*_retval = !!(mState & XML_HTTP_REQUEST_MULTIPART);
return NS_OK;
}
/* attribute boolean multipart; */
NS_IMETHODIMP
nsXMLHttpRequest::SetMultipart(PRBool aMultipart)
{
if (!(mState & XML_HTTP_REQUEST_UNINITIALIZED)) {
// Can't change this while we're in the middle of something.
return NS_ERROR_IN_PROGRESS;
}
if (aMultipart) {
mState |= XML_HTTP_REQUEST_MULTIPART;
} else {
mState &= ~XML_HTTP_REQUEST_MULTIPART;
}
return NS_OK;
}
/* attribute boolean mozBackgroundRequest; */
NS_IMETHODIMP
nsXMLHttpRequest::GetMozBackgroundRequest(PRBool *_retval)
{
*_retval = !!(mState & XML_HTTP_REQUEST_BACKGROUND);
return NS_OK;
}
/* attribute boolean mozBackgroundRequest; */
NS_IMETHODIMP
nsXMLHttpRequest::SetMozBackgroundRequest(PRBool aMozBackgroundRequest)
{
PRBool privileged;
nsresult rv = IsCapabilityEnabled("UniversalXPConnect", &privileged);
NS_ENSURE_SUCCESS(rv, rv);
if (!privileged)
return NS_ERROR_DOM_SECURITY_ERR;
if (!(mState & XML_HTTP_REQUEST_UNINITIALIZED)) {
// Can't change this while we're in the middle of something.
return NS_ERROR_IN_PROGRESS;
}
if (aMozBackgroundRequest) {
mState |= XML_HTTP_REQUEST_BACKGROUND;
} else {
mState &= ~XML_HTTP_REQUEST_BACKGROUND;
}
return NS_OK;
}
/* attribute boolean withCredentials; */
NS_IMETHODIMP
nsXMLHttpRequest::GetWithCredentials(PRBool *_retval)
{
*_retval = !!(mState & XML_HTTP_REQUEST_AC_WITH_CREDENTIALS);
return NS_OK;
}
/* attribute boolean withCredentials; */
NS_IMETHODIMP
nsXMLHttpRequest::SetWithCredentials(PRBool aWithCredentials)
{
// Return error if we're already processing a request
if (XML_HTTP_REQUEST_SENT & mState) {
return NS_ERROR_FAILURE;
}
if (aWithCredentials) {
mState |= XML_HTTP_REQUEST_AC_WITH_CREDENTIALS;
}
else {
mState &= ~XML_HTTP_REQUEST_AC_WITH_CREDENTIALS;
}
return NS_OK;
}
// nsIDOMEventListener
nsresult
nsXMLHttpRequest::HandleEvent(nsIDOMEvent* aEvent)
{
return NS_OK;
}
// nsIDOMLoadListener
nsresult
nsXMLHttpRequest::Load(nsIDOMEvent* aEvent)
{
// If we had an XML error in the data, the parser terminated and
// we received the load event, even though we might still be
// loading data into responseBody/responseText. We will delay
// sending the load event until OnStopRequest(). In normal case
// there is no harm done, we will get OnStopRequest() immediately
// after the load event.
//
// However, if the data we were loading caused the parser to stop,
// for example when loading external stylesheets, we can receive
// the OnStopRequest() call before the parser has finished building
// the document. In that case, we obviously should not fire the event
// in OnStopRequest(). For those documents, we must wait for the load
// event from the document to fire our RequestCompleted().
if (mState & XML_HTTP_REQUEST_STOPPED) {
RequestCompleted();
}
return NS_OK;
}
nsresult
nsXMLHttpRequest::Unload(nsIDOMEvent* aEvent)
{
return NS_OK;
}
nsresult
nsXMLHttpRequest::BeforeUnload(nsIDOMEvent* aEvent)
{
return NS_OK;
}
nsresult
nsXMLHttpRequest::Abort(nsIDOMEvent* aEvent)
{
Abort();
return NS_OK;
}
nsresult
nsXMLHttpRequest::Error(nsIDOMEvent* aEvent)
{
mResponseXML = nsnull;
ChangeState(XML_HTTP_REQUEST_COMPLETED);
mState &= ~XML_HTTP_REQUEST_SYNCLOOPING;
DispatchProgressEvent(this, NS_LITERAL_STRING(ERROR_STR), PR_FALSE,
mResponseBody.Length(), 0);
if (mUpload && !mUploadComplete) {
mUploadComplete = PR_TRUE;
DispatchProgressEvent(mUpload, NS_LITERAL_STRING(ERROR_STR), PR_TRUE,
mUploadTransferred, mUploadTotal);
}
nsJSContext::MaybeCC(PR_FALSE);
return NS_OK;
}
nsresult
nsXMLHttpRequest::ChangeState(PRUint32 aState, PRBool aBroadcast)
{
// If we are setting one of the mutually exclusive states,
// unset those state bits first.
if (aState & XML_HTTP_REQUEST_LOADSTATES) {
mState &= ~XML_HTTP_REQUEST_LOADSTATES;
}
mState |= aState;
nsresult rv = NS_OK;
if (mProgressNotifier &&
!(aState & (XML_HTTP_REQUEST_LOADED | XML_HTTP_REQUEST_INTERACTIVE))) {
mTimerIsActive = PR_FALSE;
mProgressNotifier->Cancel();
}
if ((mState & XML_HTTP_REQUEST_ASYNC) &&
(aState & XML_HTTP_REQUEST_LOADSTATES) && // Broadcast load states only
aBroadcast) {
nsCOMPtr<nsIDOMEvent> event;
rv = CreateReadystatechangeEvent(getter_AddRefs(event));
NS_ENSURE_SUCCESS(rv, rv);
DispatchDOMEvent(nsnull, event, nsnull, nsnull);
}
return rv;
}
/////////////////////////////////////////////////////
// nsIChannelEventSink methods:
//
NS_IMETHODIMP
nsXMLHttpRequest::OnChannelRedirect(nsIChannel *aOldChannel,
nsIChannel *aNewChannel,
PRUint32 aFlags)
{
NS_PRECONDITION(aNewChannel, "Redirect without a channel?");
nsresult rv;
if (!NS_IsInternalSameURIRedirect(aOldChannel, aNewChannel, aFlags)) {
rv = CheckChannelForCrossSiteRequest(aNewChannel);
NS_ENSURE_SUCCESS(rv, rv);
// Disable redirects for preflighted cross-site requests entirely for now
// Note, do this after the call to CheckChannelForCrossSiteRequest
// to make sure that XML_HTTP_REQUEST_USE_XSITE_AC is up-to-date
if ((mState & XML_HTTP_REQUEST_NEED_AC_PREFLIGHT)) {
return NS_ERROR_DOM_BAD_URI;
}
}
if (mChannelEventSink) {
rv =
mChannelEventSink->OnChannelRedirect(aOldChannel, aNewChannel, aFlags);
if (NS_FAILED(rv)) {
mErrorLoad = PR_TRUE;
return rv;
}
}
mChannel = aNewChannel;
return NS_OK;
}
/////////////////////////////////////////////////////
// nsIProgressEventSink methods:
//
NS_IMETHODIMP
nsXMLHttpRequest::OnProgress(nsIRequest *aRequest, nsISupports *aContext, PRUint64 aProgress, PRUint64 aProgressMax)
{
// We're in middle of processing multipart headers and we don't want to report
// any progress because upload's 'load' is dispatched when we start to load
// the first response.
if (XML_HTTP_REQUEST_MPART_HEADERS & mState) {
return NS_OK;
}
// We're uploading if our state is XML_HTTP_REQUEST_OPENED or
// XML_HTTP_REQUEST_SENT
PRBool upload = !!((XML_HTTP_REQUEST_OPENED | XML_HTTP_REQUEST_SENT) & mState);
PRUint64 loaded = aProgress;
PRUint64 total = aProgressMax;
// When uploading, OnProgress reports also headers in aProgress and aProgressMax.
// So, try to remove the headers, if possible.
PRBool lengthComputable = (aProgressMax != LL_MAXUINT);
if (upload) {
if (lengthComputable) {
PRUint64 headerSize = aProgressMax - mUploadTotal;
loaded -= headerSize;
total -= headerSize;
}
mUploadTransferred = loaded;
mUploadProgress = aProgress;
mUploadProgressMax = aProgressMax;
} else {
mLoadLengthComputable = lengthComputable;
mLoadTotal = mLoadLengthComputable ? total : 0;
}
if (mTimerIsActive) {
// The progress event will be dispatched when the notifier calls Notify().
mProgressEventWasDelayed = PR_TRUE;
return NS_OK;
}
if (!mErrorLoad && (mState & XML_HTTP_REQUEST_ASYNC)) {
StartProgressEventTimer();
NS_NAMED_LITERAL_STRING(progress, PROGRESS_STR);
NS_NAMED_LITERAL_STRING(uploadprogress, UPLOADPROGRESS_STR);
DispatchProgressEvent(this, upload ? uploadprogress : progress, PR_TRUE,
lengthComputable, loaded, lengthComputable ? total : 0,
aProgress, aProgressMax);
if (upload && mUpload && !mUploadComplete) {
NS_WARN_IF_FALSE(mUploadTotal == total, "Wrong upload total?");
DispatchProgressEvent(mUpload, progress, PR_TRUE, lengthComputable, loaded,
lengthComputable ? total : 0, aProgress, aProgressMax);
}
}
if (mProgressEventSink) {
mProgressEventSink->OnProgress(aRequest, aContext, aProgress,
aProgressMax);
}
return NS_OK;
}
NS_IMETHODIMP
nsXMLHttpRequest::OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const PRUnichar *aStatusArg)
{
if (mProgressEventSink) {
mProgressEventSink->OnStatus(aRequest, aContext, aStatus, aStatusArg);
}
return NS_OK;
}
PRBool
nsXMLHttpRequest::AllowUploadProgress()
{
return !(mState & XML_HTTP_REQUEST_USE_XSITE_AC) ||
(mState & XML_HTTP_REQUEST_NEED_AC_PREFLIGHT);
}
/////////////////////////////////////////////////////
// nsIInterfaceRequestor methods:
//
NS_IMETHODIMP
nsXMLHttpRequest::GetInterface(const nsIID & aIID, void **aResult)
{
nsresult rv;
// Make sure to return ourselves for the channel event sink interface and
// progress event sink interface, no matter what. We can forward these to
// mNotificationCallbacks if it wants to get notifications for them. But we
// need to see these notifications for proper functioning.
if (aIID.Equals(NS_GET_IID(nsIChannelEventSink))) {
mChannelEventSink = do_GetInterface(mNotificationCallbacks);
*aResult = static_cast<nsIChannelEventSink*>(this);
NS_ADDREF_THIS();
return NS_OK;
} else if (aIID.Equals(NS_GET_IID(nsIProgressEventSink))) {
mProgressEventSink = do_GetInterface(mNotificationCallbacks);
*aResult = static_cast<nsIProgressEventSink*>(this);
NS_ADDREF_THIS();
return NS_OK;
}
// Now give mNotificationCallbacks (if non-null) a chance to return the
// desired interface.
if (mNotificationCallbacks) {
rv = mNotificationCallbacks->GetInterface(aIID, aResult);
if (NS_SUCCEEDED(rv)) {
NS_ASSERTION(*aResult, "Lying nsIInterfaceRequestor implementation!");
return rv;
}
}
if (mState & XML_HTTP_REQUEST_BACKGROUND) {
nsCOMPtr<nsIInterfaceRequestor> badCertHandler(do_CreateInstance(NS_BADCERTHANDLER_CONTRACTID, &rv));
// Ignore failure to get component, we may not have all its dependencies
// available
if (NS_SUCCEEDED(rv)) {
rv = badCertHandler->GetInterface(aIID, aResult);
if (NS_SUCCEEDED(rv))
return rv;
}
}
else if (aIID.Equals(NS_GET_IID(nsIAuthPrompt)) ||
aIID.Equals(NS_GET_IID(nsIAuthPrompt2))) {
nsCOMPtr<nsIPromptFactory> wwatch =
do_GetService(NS_WINDOWWATCHER_CONTRACTID, &rv);
NS_ENSURE_SUCCESS(rv, rv);
// Get the an auth prompter for our window so that the parenting
// of the dialogs works as it should when using tabs.
nsCOMPtr<nsIDOMWindow> window;
if (mOwner) {
window = mOwner->GetOuterWindow();
}
return wwatch->GetPrompt(window, aIID,
reinterpret_cast<void**>(aResult));
}
return QueryInterface(aIID, aResult);
}
NS_IMETHODIMP
nsXMLHttpRequest::GetUpload(nsIXMLHttpRequestUpload** aUpload)
{
*aUpload = nsnull;
nsresult rv;
nsIScriptContext* scriptContext =
GetContextForEventHandlers(&rv);
NS_ENSURE_SUCCESS(rv, rv);
if (!mUpload) {
mUpload = new nsXMLHttpRequestUpload(mOwner, scriptContext);
NS_ENSURE_TRUE(mUpload, NS_ERROR_OUT_OF_MEMORY);
}
NS_ADDREF(*aUpload = mUpload);
return NS_OK;
}
NS_IMETHODIMP
nsXMLHttpRequest::Notify(nsITimer* aTimer)
{
mTimerIsActive = PR_FALSE;
if (NS_SUCCEEDED(CheckInnerWindowCorrectness()) && !mErrorLoad &&
(mState & XML_HTTP_REQUEST_ASYNC)) {
if (mProgressEventWasDelayed) {
mProgressEventWasDelayed = PR_FALSE;
if (!(XML_HTTP_REQUEST_MPART_HEADERS & mState)) {
StartProgressEventTimer();
// We're uploading if our state is XML_HTTP_REQUEST_OPENED or
// XML_HTTP_REQUEST_SENT
if ((XML_HTTP_REQUEST_OPENED | XML_HTTP_REQUEST_SENT) & mState) {
DispatchProgressEvent(this, NS_LITERAL_STRING(UPLOADPROGRESS_STR),
PR_TRUE, PR_TRUE, mUploadTransferred,
mUploadTotal, mUploadProgress,
mUploadProgressMax);
if (mUpload && !mUploadComplete) {
DispatchProgressEvent(mUpload, NS_LITERAL_STRING(PROGRESS_STR),
PR_TRUE, PR_TRUE, mUploadTransferred,
mUploadTotal, mUploadProgress,
mUploadProgressMax);
}
} else {
DispatchProgressEvent(this, NS_LITERAL_STRING(PROGRESS_STR),
mLoadLengthComputable, mResponseBody.Length(),
mLoadTotal);
}
}
}
} else if (mProgressNotifier) {
mProgressNotifier->Cancel();
}
return NS_OK;
}
void
nsXMLHttpRequest::StartProgressEventTimer()
{
if (!mProgressNotifier) {
mProgressNotifier = do_CreateInstance(NS_TIMER_CONTRACTID);
}
if (mProgressNotifier) {
mProgressEventWasDelayed = PR_FALSE;
mTimerIsActive = PR_TRUE;
mProgressNotifier->Cancel();
mProgressNotifier->InitWithCallback(this, NS_PROGRESS_EVENT_INTERVAL,
nsITimer::TYPE_ONE_SHOT);
}
}
NS_IMPL_ISUPPORTS1(nsXMLHttpRequest::nsHeaderVisitor, nsIHttpHeaderVisitor)
NS_IMETHODIMP nsXMLHttpRequest::
nsHeaderVisitor::VisitHeader(const nsACString &header, const nsACString &value)
{
// See bug #380418. Hide "Set-Cookie" headers from non-chrome scripts.
PRBool chrome = PR_FALSE; // default to false in case IsCapabilityEnabled fails
IsCapabilityEnabled("UniversalXPConnect", &chrome);
if (!chrome &&
(header.LowerCaseEqualsASCII("set-cookie") ||
header.LowerCaseEqualsASCII("set-cookie2"))) {
NS_WARNING("blocked access to response header");
} else {
mHeaders.Append(header);
mHeaders.Append(": ");
mHeaders.Append(value);
mHeaders.Append('\n');
}
return NS_OK;
}
// DOM event class to handle progress notifications
nsXMLHttpProgressEvent::nsXMLHttpProgressEvent(nsIDOMProgressEvent* aInner,
PRUint64 aCurrentProgress,
PRUint64 aMaxProgress)
{
mInner = static_cast<nsDOMProgressEvent*>(aInner);
mCurProgress = aCurrentProgress;
mMaxProgress = aMaxProgress;
}
nsXMLHttpProgressEvent::~nsXMLHttpProgressEvent()
{}
NS_IMPL_CYCLE_COLLECTION_CLASS(nsXMLHttpProgressEvent)
// QueryInterface implementation for nsXMLHttpProgressEvent
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(nsXMLHttpProgressEvent)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIDOMProgressEvent)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsIDOMEvent, nsIDOMProgressEvent)
NS_INTERFACE_MAP_ENTRY(nsIDOMNSEvent)
NS_INTERFACE_MAP_ENTRY(nsIPrivateDOMEvent)
NS_INTERFACE_MAP_ENTRY(nsIDOMProgressEvent)
NS_INTERFACE_MAP_ENTRY(nsIDOMLSProgressEvent)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(XMLHttpProgressEvent)
NS_INTERFACE_MAP_END
NS_IMPL_CYCLE_COLLECTING_ADDREF(nsXMLHttpProgressEvent)
NS_IMPL_CYCLE_COLLECTING_RELEASE(nsXMLHttpProgressEvent)
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsXMLHttpProgressEvent)
NS_IMPL_CYCLE_COLLECTION_UNLINK_NSCOMPTR(mInner);
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsXMLHttpProgressEvent)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NSCOMPTR_AMBIGUOUS(mInner,
nsIDOMProgressEvent)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
NS_IMETHODIMP nsXMLHttpProgressEvent::GetInput(nsIDOMLSInput * *aInput)
{
*aInput = nsnull;
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsXMLHttpProgressEvent::GetPosition(PRUint32 *aPosition)
{
// XXX can we change the iface?
LL_L2UI(*aPosition, mCurProgress);
return NS_OK;
}
NS_IMETHODIMP nsXMLHttpProgressEvent::GetTotalSize(PRUint32 *aTotalSize)
{
// XXX can we change the iface?
LL_L2UI(*aTotalSize, mMaxProgress);
return NS_OK;
}
| [
"bartbien88@gmail.com"
] | bartbien88@gmail.com |
7301713acb8dcbd4b64870142e4bfae6740410c4 | ff93b3d44693687f0e8dd9dec525ce4ac08c317c | /agents/WSServerWS/AlarmManagerZones.cpp | 961c0ae2cd374e2f3bfe138239c8498b3b83219e | [] | no_license | agiordana/HAT | 6ea2b5a6b3a635e6702ccf8573133a65c8c14c9a | f61f0783c8d9f9d4e3b1374eb6475f4d88f95ff9 | refs/heads/master | 2020-12-24T07:54:07.078444 | 2018-10-01T12:39:05 | 2018-10-01T12:39:05 | 59,103,594 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,095 | cpp | using namespace std;
#include "AlarmManager.h"
bool AlarmManager::cleanZones(string zonesjs) {
stringstream ss;
string zoneid;
string zonepath = hsrv::homedir+"/program/programs/Alarm/Zones";
NameList zlist;
NameList zlistfull;
boost::property_tree::ptree pt, ptu;
ss << zonesjs;
read_json(ss, pt);
ptu = pt.get_child("zones");
JParser tree_parse("name", ptu);
for(size_t i=0; i<tree_parse.size(); i++) {
zoneid = tree_parse[i].first;
zlist.push_back(zoneid);
}
FileManager::fileList(zonepath,zlistfull);
for(size_t i=0; i<zlistfull.size(); i++)
if(!zlist.member(FileManager::getStem(zlistfull[i]))&&zlistfull[i] != "default.json") {
FileManager::deleteFile(zonepath,zlistfull[i]);
}
return true;
}
bool AlarmManager::isZoneDefined() {
string zonepath = "/program/programs/Alarm/Zones.json";
string zones;
MMessage mreq;
mreq.add("url", zonepath);
zones = hsrv::archive->getFile(mreq);
if(zones == "Not Found") return false;
if(zones.find("true") != string::npos) return true;
return false;
}
| [
"Attilio@lorenza-saittas-macbook-pro.local"
] | Attilio@lorenza-saittas-macbook-pro.local |
a58e4d1b251be4e80c050a14cc2e9e75be664272 | 0ad0b9fb79ed839b4e3c51170dee6f0f91502028 | /Android/SuperpoweredExample/jni/SuperpoweredFX.h | 27d8e3f01585fcceac7d8f7d151857fa82d06a9b | [] | no_license | VadimME/Low-Latency-Android-Audio-iOS-Audio-Engine | 1b7243fe504191a5082356e95e5410e7eab5de0c | 13fdeeed6d34fff894400df57e8c9138f5c0eff9 | refs/heads/master | 2020-12-30T22:09:45.941392 | 2015-01-11T05:59:11 | 2015-01-11T05:59:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,949 | h | #ifndef Header_SuperpoweredFX
#define Header_SuperpoweredFX
/**
@brief This is the base class for Superpowered effects.
@param enabled Indicates if the effect is enabled (processing audio).
*/
class SuperpoweredFX {
public:
bool enabled;
/**
@brief Turns the effect on/off.
*/
virtual void enable(bool flag) = 0; // Use this to turn it on/off.
/**
@brief Sets the sample rate.
@param samplerate 44100, 48000, etc.
*/
virtual void setSamplerate(unsigned int samplerate) = 0;
/**
@brief Processes the audio.
It's not locked when you call other methods from other threads, and they not interfere with process() at all.
Check the process() documentation of each fx for the minimum number of samples and an optional vector size limitation. For maximum compatibility with all Superpowered effects, numberOfSamples should be minimum 32 and a multiply of 8.
@return Put something into output or not.
@param input 32-bit interleaved stereo input buffer.
@param output 32-bit interleaved stereo output buffer.
@param numberOfSamples Number of samples to process.
*/
virtual bool process(float *input, float *output, unsigned int numberOfSamples) = 0;
virtual ~SuperpoweredFX() {};
};
/**
\mainpage Superpowered Audio SDK
The Superpowered Audio SDK is a software development kit based on Superpowered Inc’s digital signal processing (DSP) technology.
Superpowered technology allows developers to build computationally intensive audio apps and embedded applications that process more quickly and use less power than other comparable solutions.
Superpowered DSP is designed and optimized, from scratch, to run on low-power mobile processors. Specifically, any device running ARM with the NEON extension (which covers 99% of all mobile devices manufactured as of Spring 2014).
Details of the latest version can be found at http://superpowered.com/superpowered-audio-sdk/
*/
#endif
| [
"gabor@superpowered.com"
] | gabor@superpowered.com |
2b53cb1bd74b501bec61bcbe1be321e5132db298 | cf0e101c1ff4450b21055ebab17b4abcc412cec4 | /src/NGT/MmapManagerDefs.h | 239c09abe262623411856245677fad0d799e602e | [
"MIT"
] | permissive | yugosato/FaceRetrieval | 400166822d245cb47df15db67d7760a8badc5833 | c308b3596e3a83733dc43cdb99db4c6902a6e325 | refs/heads/master | 2021-03-19T08:22:35.610049 | 2021-02-03T00:59:21 | 2021-02-03T00:59:21 | 82,377,817 | 10 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,400 | h | //
// Copyright (C) 2015-2017 Yahoo Japan Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#pragma once
#include "MmapManager.h"
#include <unistd.h>
namespace MemoryManager{
const uint64_t MMAP_MANAGER_VERSION = 5;
const bool MMAP_DEFAULT_ALLOW_EXPAND = false;
const uint64_t MMAP_CNTL_FILE_RANGE = 16;
const size_t MMAP_CNTL_FILE_SIZE = MMAP_CNTL_FILE_RANGE * sysconf(_SC_PAGESIZE);
const uint64_t MMAP_MAX_FILE_NAME_LENGTH = 1024;
const std::string MMAP_CNTL_FILE_SUFFIX = "c";
const size_t MMAP_LOWER_SIZE = 1;
const size_t MMAP_MEMORY_ALIGN = 8;
const size_t MMAP_MEMORY_ALIGN_EXP = 3;
#ifndef MMANAGER_TEST_MODE
const uint64_t MMAP_MAX_UNIT_NUM = 1024;
#else
const uint64_t MMAP_MAX_UNIT_NUM = 8;
#endif
const uint64_t MMAP_FREE_QUEUE_SIZE = 1024;
const uint64_t MMAP_FREE_LIST_NUM = 64;
typedef struct _boot_st{
uint32_t version;
uint64_t reserve;
size_t size;
}boot_st;
typedef struct _head_st{
off_t break_p;
uint64_t chunk_num;
uint64_t reserve;
}head_st;
typedef struct _free_list_st{
off_t free_p;
off_t free_last_p;
}free_list_st;
typedef struct _free_st{
free_list_st large_list;
free_list_st free_lists[MMAP_FREE_LIST_NUM];
}free_st;
typedef struct _free_queue_st{
off_t data;
size_t capacity;
uint64_t tail;
}free_queue_st;
typedef struct _control_st{
bool use_expand;
uint16_t unit_num;
uint16_t active_unit;
uint64_t reserve;
size_t base_size;
off_t entry_p;
option_reuse_t reuse_type;
free_st free_data;
free_queue_st free_queue;
head_st data_headers[MMAP_MAX_UNIT_NUM];
}control_st;
typedef struct _chunk_head_st{
bool delete_flg;
uint16_t unit_id;
off_t free_next;
size_t size;
}chunk_head_st;
}
| [
"yg.physics72@gmail.com"
] | yg.physics72@gmail.com |
b756a2eaa901b8d2e8455f30a24db69acf96f871 | f1035ba4374a50a6958f23b5bb961b2b0f08e068 | /graphics/ex29.cpp | 5cf95c3ab27c799a886e20ef0140f84012782639 | [] | no_license | son-min-wook/image-processing | da9bb1cf619623f05ca45fa96df33ec7f1387576 | 584d776152d8db832f387550c3d7e4b78d5839d0 | refs/heads/master | 2020-03-23T11:33:14.400526 | 2018-07-19T08:24:55 | 2018-07-19T08:24:55 | 141,509,894 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,743 | cpp | #include <math.h>
#include <glut.h>
int delay = 20;
typedef struct _action
{
char type; // 'R' or 'T' or 'N' or 'F'
int duration; // how long?
GLfloat param[3]; // parameters
} Action;
typedef struct _object
{
GLfloat* vertices; // vertex array
GLfloat* colors; // color array
GLubyte* indices; // index
int nums; // number of vertices
GLfloat theta[3]; // rotation parameter (x, y, z)
GLfloat trans[3]; // translation parameter
Action* action;
int action_idx;
int action_counter;
struct _object* child;
struct _object* next;
} Object;
typedef struct _viewer
{
GLfloat eye[3]; // viewer position
GLfloat at[3]; // center
GLfloat up[3]; // up direction
} Viewer;
GLfloat vertices1[][3] = { { -0.2,-1.0,-0.2 },{ 0.2,-1.0,-0.2 },{ 0.2,1.0,-0.2 },{ -0.2,1.0,-0.2 },
{ -0.2,-1.0, 0.2 },{ 0.2,-1.0, 0.2 },{ 0.2,1.0, 0.2 },{ -0.2,1.0, 0.2 } };
GLfloat colors1[][3] = { { 0.0, 0.0, 0.0 },{ 1.0, 0.0, 0.0 },{ 1.0,1.0, 0.0 },{ 0.0,1.0, 0.0 },
{ 0.0, 0.0, 1.0 },{ 1.0, 0.0, 1.0 },{ 1.0,1.0, 1.0 },{ 0.0,1.0, 1.0 } };
GLubyte indices1[] = { 0,3,2,1, 2,3,7,6, 0,4,7,3, 1,2,6,5, 4,5,6,7, 0,1,5,4 };
GLfloat vertices2[][3] = { { -0.8,-0.1,-0.1 },{ 0.8,-0.1,-0.1 },{ 0.8,0.1,-0.1 },{ -0.8,0.1,-0.1 },
{ -0.8,-0.1,0.1 },{ 0.8,-0.1,0.1 },{ 0.8,0.1,0.1 },{ -0.8,0.1,0.1 } };
GLfloat colors2[][3] = { { 0.0, 0.0, 0.0 },{ 1.0, 0.0, 0.0 },{ 1.0,1.0, 0.0 },{ 0.0,1.0, 0.0 },
{ 0.0, 0.0, 1.0 },{ 1.0, 0.0, 1.0 },{ 1.0,1.0, 1.0 },{ 0.0,1.0, 1.0 } };
GLubyte indices2[] = { 0,3,2,1, 2,3,7,6, 0,4,7,3, 1,2,6,5, 4,5,6,7, 0,1,5,4 };
GLfloat vertices3[][3] = { { -0.1,-0.4,-0.1 },{ 0.1,-0.4,-0.1 },{ 0.1,0.4,-0.1 },{ -0.1,0.4,-0.1 },
{ -0.1,-0.4,0.1 },{ 0.1,-0.4,0.1 },{ 0.1,0.4,0.1 },{ -0.1,0.4,0.1 } };
GLfloat colors3[][3] = { { 0.0, 0.0, 0.0 },{ 1.0, 0.0, 0.0 },{ 1.0,1.0, 0.0 },{ 0.0,1.0, 0.0 },
{ 0.0, 0.0, 1.0 },{ 1.0, 0.0, 1.0 },{ 1.0,1.0, 1.0 },{ 0.0,1.0, 1.0 } };
GLubyte indices3[] = { 0,3,2,1, 2,3,7,6, 0,4,7,3, 1,2,6,5, 4,5,6,7, 0,1,5,4 };
Object top, sb1, sb2, sb3;
Viewer v;
GLfloat dir = 1.0;
GLint play = 0;
Action action1[] = {
{ 'T', 30, +0.5, 0, 0 },
{ 'R', 60, 0, 720, 0 },
{ 'N',180, 0, 0, 0 },
{ 'R', 30, 0, 0, 30 },
{ 'F', 0, 0, 0, 0 }
};
void reset() {
// object initialization
top.vertices = &vertices1[0][0];
top.colors = &colors1[0][0];
top.indices = &indices1[0];
top.nums = 24;
top.theta[0] = top.theta[1] = top.theta[2] = 0;
top.trans[0] = top.trans[1] = top.trans[2] = 0;
top.action = &action1[0];
top.action_idx = 0;
top.action_counter = 0;
// initialize viewer
v.eye[0] = 0.0; v.eye[1] = 0.0; v.eye[2] = 1.0;
v.at[0] = 0.0; v.at[1] = 0.0; v.at[2] = 0.0;
v.up[0] = 0.0; v.up[1] = 1.0; v.up[2] = 0.0;
top.child = &sb1;
sb1.vertices = &vertices2[0][0];
sb1.colors = &colors2[0][0];
sb1.indices = &indices2[0];
sb1.nums = 24;
sb1.theta[0] = sb1.theta[1] = sb1.theta[2] = 0;
sb1.trans[0] = sb1.trans[2] = 0;
sb1.trans[1] = 1.0;
sb1.child = 0;
sb1.next = &sb2;
sb2.vertices = &vertices2[0][0];
sb2.colors = &colors2[0][0];
sb2.indices = &indices2[0];
sb2.nums = 24;
sb2.theta[0] = sb1.theta[1] = sb1.theta[2] = 0;
sb2.trans[0] = sb1.trans[2] = 0;
sb2.trans[1] = -1.0;
sb2.child = &sb3;
sb2.next = 0;
sb3.vertices = &vertices3[0][0];
sb3.colors = &colors3[0][0];
sb3.indices = &indices3[0];
sb3.nums = 24;
sb3.theta[0] = sb1.theta[1] = sb1.theta[2] = 0;
sb3.trans[1] = sb1.trans[2] = 0;
sb3.trans[0] = 0.8;
sb3.child = 0;
sb3.next = 0;
}
void init()
{
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glClearColor(1.0, 1.0, 1.0, 1.0);
glOrtho(-2.0, 2.0, -2.0, 2.0, -10.0, 10.0);
glEnable(GL_DEPTH_TEST);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
}
GLfloat clip(GLfloat x)
{
if (x < 0) return x + 360.0;
if (x > 360.0) return x - 360.0;
return x;
}
void action(Object* p)
{
if (p->action == 0) return;
if (p->action[p->action_idx].type == 'F')
{
p->action_idx = 0; p->action_counter = 0; return;
}
if (p->action[p->action_idx].type == 'R')
{
for (int i = 0; i<3; i++)
p->theta[i] = clip(p->theta[i] + p->action[p->action_idx].param[i] / p->action[p->action_idx].duration);
p->action_counter++;
}
if (p->action[p->action_idx].type == 'T')
{
for (int i = 0; i<3; i++)
p->trans[i] += p->action[p->action_idx].param[i] / p->action[p->action_idx].duration;
p->action_counter++;
}
if (p->action[p->action_idx].type == 'N') p->action_counter++;
if (p->action_counter >= p->action[p->action_idx].duration)
{
p->action_idx++; p->action_counter = 0;
}
}
void keyboard_handler(unsigned char key, int x, int y)
{
if (key == 'x') v.eye[0] -= 0.1; if (key == 'X') v.eye[0] += 0.1;
if (key == 'y') v.eye[1] -= 0.1; if (key == 'Y') v.eye[1] += 0.1;
if (key == 'z') v.eye[2] -= 0.1; if (key == 'Z') v.eye[2] += 0.1;
if (key == 'p')
if (play == 0)
play = 1;
else
play = 0;
if (key == 'r') reset();
}
void mouse_handler(int btn, int state, int x, int y)
{
if (btn == GLUT_LEFT_BUTTON && state == GLUT_DOWN) dir = -dir;
}
void draw(Object* p)
{
// transformation
glPushMatrix();
glTranslatef(p->trans[0], p->trans[1], p->trans[2]);
glRotatef(p->theta[0], 1.0, 0.0, 0.0);
glRotatef(p->theta[1], 0.0, 1.0, 0.0);
glRotatef(p->theta[2], 0.0, 0.0, 1.0);
// draw
glVertexPointer(3, GL_FLOAT, 0, p->vertices);
glColorPointer(3, GL_FLOAT, 0, p->colors);
glDrawElements(GL_QUADS, p->nums, GL_UNSIGNED_BYTE, p->indices);
if (play) action(p);
if (p->child) {
draw(p->child);
}
glPopMatrix();
if (p->next) {
draw(p->next);
}
}
void display()
{
// clear background
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
// setup viewer
glLoadIdentity();
gluLookAt(v.eye[0], v.eye[1], v.eye[2], v.at[0], v.at[1], v.at[2], v.up[0], v.up[1], v.up[2]);
// draw
draw(&top);
// flush & swap buffers
glFlush();
glutSwapBuffers();
}
int main(int argc, char* argv[])
{
// GLUT initialization
void timer(int);
glutInit(&argc, (char**)argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
glutInitWindowSize(500, 500);
glutCreateWindow("Prog29: More objects");
// call-back functions
glutKeyboardFunc(keyboard_handler);
glutMouseFunc(mouse_handler);
glutDisplayFunc(display);
glutTimerFunc(delay, timer, 0);
// enable color/vertex array
glEnableClientState(GL_COLOR_ARRAY);
glEnableClientState(GL_VERTEX_ARRAY);
reset();
init();
glutMainLoop();
return 0;
}
void timer(int t) {
top.theta[2] += 2.0*dir; top.theta[2] = clip(top.theta[2]);
sb1.theta[2] += 4.0*dir; sb1.theta[2] = clip(sb1.theta[2]);
sb2.theta[2] += 4.0*dir; sb2.theta[2] = clip(sb2.theta[2]);
sb3.theta[2] += 5.0*dir; sb3.theta[2] = clip(sb3.theta[2]);
glutPostRedisplay();
glutTimerFunc(delay, timer, t);
}
| [
"desepticon@naver.com"
] | desepticon@naver.com |
78b9c4c806ffd980e0b84edda90651bbf95ae5d1 | b9e9e177493512e1e2c1c03c65d4b2a479f4493f | /virtual_iterators/src/common.hpp | 8718103e61b408a1cc069929f9b999cfe43a78ee | [] | no_license | npetrenko/cpp_benchmarks | 8d677cc1b2c5a98f4aef9b0d1d48cc046fa178aa | 5a54087eee2c6e69873165f93a1fc36de571ed76 | refs/heads/master | 2021-07-23T14:38:25.625796 | 2021-07-15T11:21:14 | 2021-07-15T11:21:14 | 222,100,173 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 72 | hpp | #pragma once
namespace benchmarks::common {
int Identity(int value);
}
| [
"npetrenko97@gmail.com"
] | npetrenko97@gmail.com |
575c26fab2621c8c64f8286e134a839696e5fff3 | d2190cbb5ea5463410eb84ec8b4c6a660e4b3d0e | /old_hydra/hydra/tags/apr07a/online/hconfigure.cc | 7f17e4ce2d0635cab044dc1a995224bf046ab298 | [] | no_license | wesmail/hydra | 6c681572ff6db2c60c9e36ec864a3c0e83e6aa6a | ab934d4c7eff335cc2d25f212034121f050aadf1 | refs/heads/master | 2021-07-05T17:04:53.402387 | 2020-08-12T08:54:11 | 2020-08-12T08:54:11 | 149,625,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,992 | cc | //*-- Author : Dmitry Vasiliev (vassili@lns.infn.it)
/*
* Copyright P.Finocchiaro and D.Vasiliev (INFN-LNS, Catania) HADES collaboration
*/
//-------------------------------------------------------------------------
//
// File name: hconfigure.cc
// Subject: Configuration of the analysis run.
// Author: D.Vasiliev (INFN-LNS, Catania) "vassili@lns.infn.it"
// Date: April 2000
//
// Remarks: under construction
//
//-------------------------------------------------------------------------
//
// Description:
//
// This file contains the source code for the member functions of
// the class HConfigure.
// This class keeps trace of the configuration of the analysis run.
//-------------------------------------------------------------------------
#include "hconfigure.h"
#include "hades.h"
#include "htofdetector.h"
#include "hmdcdetector.h"
#include "hrichdetector.h"
#include "hshowerdetector.h"
#include "hruntimedb.h"
//_HADES_CLASS_DESCRIPTION
///////////////////////////////////////////////////////////////////
// This class keeps trace of the configuration of the analysis run.
// Remark : this class is under construction.
//////////////////////////////////////////////////////////////////////////
ClassImp(HConfigure)
Bool_t HConfigure::configure() {
//
// This function sets configuration of the analysis run.
// It is under construction.
//
if(gHades) {
delete gHades;
gHades = 0;
}
if(!gHades) new Hades();
if(!gHades) return kFALSE;
return kTRUE;
}
/* Int_t i;
//--- geometry
HTofDetector *tof=new HTofDetector();
Int_t tof_mods[22]={1,2,3,4,5,6,7,8};
for(i=3;i<9;i++) {
if(fConfig[i] == 1) tof->setModules(3-i,tof_mods);
}
gHades->getSetup()->addDetector(tof);
HMdcDetector *mdc=new HMdcDetector();
Int_t mdc_mods[4]={0,1,0,0};
for(i=9;i<15;i++) {
if(fConfig[i] == 1) mdc->setModules(9-i,mdc_mods);
}
gHades->getSetup()->addDetector(mdc);
HRichDetector *rich = new HRichDetector();
Int_t rich_mods[1] = {1};
for(i=15;i<21;i++) {
if(fConfig[i] == 1) rich->setModules(16-i,rich_mods);
}
gHades->getSetup()->addDetector(rich);
HShowerDetector *shower = new HShowerDetector();
Int_t sho_mods[3]={1,1,1};
for(i=21;i<27;i++) {
if(fConfig[i] == 1) shower->setModules(21-i,sho_mods);
}
gHades->getSetup()->addDetector(shower);
//--- runtime db
HRuntimeDb *rtdb=gHades->getRuntimeDb();
rtdb->addEventFile(input);
//-- mdc
HParAsciiFileIo *inp1=new HParAsciiFileIo;
inp1->open("mdc_lookup.txt","in");
gHades->getRuntimeDb()->setFirstInput(inp1);
HMdcGeomStruct *geomstruct = new HMdcGeomStruct();
rtdb->addContainer(geomstruct);
geomstruct->init();
HMdcCalPar *calpar = new HMdcCalPar();
calpar->setStatic();
rtdb->addContainer(calpar);
HMdcRawStruct *rawstruct = new HMdcRawStruct();
rtdb->addContainer(rawstruct);
rawstruct->init();
HMdcConnectedWires *connWires = new HMdcConnectedWires();
rtdb->addContainer(connWires);
HMdcLookupRaw *lookupMbo = new HMdcLookupRaw;
rtdb->addContainer(lookupMbo);
//--- reconstruction tree
HTaskSet *toftasks= new HTaskSet("Tof","Tof");
toftasks->connect(new HTofHitF("tof.hitf","tof.hitf"));
toftasks->connect(NULL, "tof.hitf");
HTaskSet *shotasks= new HTaskSet("Shower","Shower");
shotasks->connect(new HShowerCalibrater("shower.cal","shower.cal"));
shotasks->connect(new HShowerHitFinder("shower.hitf","shower.hitf"),
"shower.cal");
shotasks->connect(NULL, "shower.hitf");
HTaskSet *mdctasks = new HTaskSet("Mdc","Mdc");
mdctasks->connect(new HMdcCalibrater1("mdc.cal1","mdc.cal1"));
mdctasks->connect(NULL,"mdc.cal1");
HTaskSet *richtasks = new HTaskSet("Rich","Rich");
// richtasks->connect(new HRichCalibrater("RichCal","rich.cal"));
// richtasks->connect(NULL, "RichCal");
richtasks->connect(new HRichAnalysis("RichAnalysis","Rich hit finder"));
richtasks->connect(NULL, "RichAnalysis");
HTaskSet *onltask = new HTaskSet("Online","Online");
onltasks->connect(new HOnlProcessEvent("online","online"));
onltasks->connect(NULL,"online");
gHades->getTaskSet("real")->connect(mdctasks);
gHades->getTaskSet("real")->connect(toftasks,mdctasks);
// gHades->getTaskSet("real")->connect(shotasks,toftasks);
// gHades->getTaskSet("real")->connect(richtasks,shotasks);
gHades->getTaskSet("real")->connect(onltasks,toftasks);
// split level
gHades->setSplitLevel(2);
// data source
if(fConfig[0] == 1) { // hld file
HldFileSource *hldinput = new HldFileSource;
// hldinput->addUnpacker(new HShowerUnpackerReal);
// hldinput->addUnpacker(new HShowerUnpackerReal2);
hldinput->addUnpacker(new HTofUnpacker);
hldinput->addUnpacker(new HStartUnpacker);
hldinput->addUnpacker(new HMdcUnpacker(513,kFALSE)); //November'99 beam
// hldinput->addUnpacker(new HRichUnpackerCal(100));
// hldinput->addUnpacker(new HRichUnpackerCal(101));
gHades->setDataSource(hldinput);
gHades->getRuntimeDb()->setCurrentEventFile(-1);
}
if(fConfig[1] == 1) { // daq input
HldRemoteSource *daqinput = new HldRemoteSource(input);
// daqinput->addUnpacker(new HShowerUnpackerReal);
// daqinput->addUnpacker(new HShowerUnpackerReal2);
daqinput->addUnpacker(new HTofUnpacker);
daqinput->addUnpacker(new HStartUnpacker);
daqinput->addUnpacker(new HMdcUnpacker(513,kFALSE)); //November'99 beam
// daqinput->addUnpacker(new HRichUnpackerCal(100));
// daqinput->addUnpacker(new HRichUnpackerCal(101));
gHades->setDataSource(daqinput);
gHades->getRuntimeDb()->setCurrentEventFile(-1);
}
if(!gHades->init()) {
kConfigured = kFALSE;
return kFALSE;
}
//--- output
// gHades->getCurrentEvent()->getCategory(catShowerRaw)->setPersistency(0);
gHades->setOutputFile(output,"RECREATE","Test",2);
//--- build output tree
gHades->makeTree();
return kTRUE;
}
*/
| [
"waleed.physics@gmail.com"
] | waleed.physics@gmail.com |
72156701c9f398aa2665a7ad599849d2b0d64d3a | aed9786e00570e01dfb672153778fb0baed3442f | /Algorhitms.cpp | 958482d8d40b60f3b42714c327a5e5927e4d0103 | [] | no_license | Ido25/AlgoProj | 395d7cdea800032652beb7ae7039d906b4365aa6 | 9b3c0b0188f6e0ca67d0760dd93c93e74f454ca0 | refs/heads/master | 2023-07-03T16:41:05.496142 | 2021-08-11T11:18:10 | 2021-08-11T11:18:10 | 389,331,945 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,256 | cpp | #include "Algorhitms.h"
namespace algos{
int *BFS(Graph &G, int vertex, int *pArr){
if(G.getSize() <= vertex){//checking that the vertex is in the graph's vertexes range
return nullptr;
}
int *dArr = new int[G.getSize()], cnt = 0;
Queue Q;
for(int i = 1; i < G.getSize(); i++){
dArr[i] = INFINITY_DEGREE;//initalizing all the degrees to infinity
pArr[i] = NULL_PARENT;//initalizing all the parents to NULL
}
Q.enqueue(vertex);
dArr[vertex] = 0;
pArr[vertex] = vertex;
while(!Q.isEmpty()){//BFS main loop
int p_vertex = Q.dequeue();//The parent vertex
Vertex *curr = G.getAdjList(p_vertex).getHead();
while(curr != nullptr){
if(dArr[curr->data()] == INFINITY_DEGREE){
dArr[curr->data()] = dArr[p_vertex] + 1;
pArr[curr->data()] = p_vertex;
Q.enqueue(curr->data());
}
curr = curr->getNext();
}
}
return dArr;
}
void deleteLongPaths(Graph &Gs, int *dArr){//This function deletes all the edges (u,v) that doesn't make
//d[u] + 1 = d[v] after the BFS run
for(int i = 1; i < Gs.getSize(); i++){//main loop
if(!Gs.getAdjList(i).isEmpty()){
Vertex *curr = Gs.getAdjList(i).getHead();//getting the current vertex list
while(curr != nullptr){
if(dArr[i] + 1 != dArr[curr->data()]){//checking if the edge stands in the condition
int tmp = curr->data();
curr = Gs.removeEdge(i, curr->data());
}
else{
curr = curr->getNext();
}
}
}
}
}
void buildShortestPathsGraph(Graph &G, Graph &H){//main algorithm function
Graph Gs(G), Gst;
int *pArr = new int[G.getSize()], *GstParr, *GstDarr;
int *dArr = BFS(Gs, Gs.getS(), pArr);//BFS run on Gs graph (which is a copy of G)
deleteLongPaths(Gs, dArr);//deleting long paths as explained in the function above
Gs.makeGt(Gst);//making Gs transpose graph- Gst
GstParr = new int[Gst.getSize()];
GstDarr = BFS(Gst, Gst.getS(), GstParr);//BFS run on Gst
for(int i = 1; i < Gst.getSize(); i++){//deleting all the edges that arent reachable from Gst
if(GstDarr[i] == INFINITY_DEGREE){
Gst.getAdjList(i).emptyList();
}
}//Gst is Ht now
Gst.makeGt(H);
}
}
| [
"idomedina25@gmail.com"
] | idomedina25@gmail.com |
a1c3c8812a7cfa7aa1c8315df2aad1bc963776c3 | de27eacd14cc3a91bcc0602dc889e57087e3073a | /GameObjects/Entities/Unit.cpp | 852919f281a5effb6299a9a49c4a5136a40de084 | [] | no_license | OddMann/Lanes-of-War | 68f039a6a5ab264a28f568e9df7c04127cca385f | adbbb1529e37d6200af091bed10ecb2e2402e9a1 | refs/heads/master | 2020-04-18T05:04:50.321606 | 2019-01-23T22:32:33 | 2019-01-23T22:32:33 | 167,263,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,638 | cpp | //
// Created by Kringle on 19/10/2018.
//
#include "Unit.h"
#include "../../App/App.h"
Unit_t::Unit_t(Json::Value &unit)
{
type_Id = unit["Id"].asInt();
name = unit["name"].asString();
hp = unit["hp"].asInt();
def = unit["def"].asInt();
atk = unit["atk"].asInt();
size = unit["size"].asInt();
cost = unit["cost"].asInt();
time = unit["time"].asInt();
speed = unit["maxSpeed"].asFloat();
attacks = unit["attacks"].asInt();
attackTime =unit["attackTime"].asInt();
range = unit["range"].asInt();
for (Json::Value::ArrayIndex i = 0; i != unit["upgrades"].size(); i++)
upgrades.push_back(unit["upgrades"][i].asInt());
for (Json::Value::ArrayIndex i = 0; i != unit["abilities"].size(); i++)
abilities.push_back(unit["abilities"][i].asInt());
}
void Unit_t::swap(Unit_t& first, Unit_t& second)
{
using std::swap;
swap(first.type_Id, second.type_Id);
swap(first.name, second.name);
swap(first.hp, second.hp);
swap(first.def, second.def);
swap(first.atk, second.atk);
swap(first.size, second.size);
swap(first.cost, second.cost);
swap(first.time, second.time);
swap(first.speed, second.speed);
swap(first.attacks, second.attacks);
swap(first.range, second.range);
swap(first.attackTime, second.attackTime);
swap(first.upgrades, second.upgrades);
swap(first.abilities, second.abilities);
}
Unit_t& Unit_t::operator=(Unit_t other)
{
swap(*this, other);
return *this;
}
Unit::Unit(Unit_t &unit, Node &space, Team &team, Map& map) : Entity(map,team)
{
Id = nextId++;
Entity_Id = nextE_Id++;
name = unit.name;
this->space = &space;
this->Destination = &space;
this->path = nullptr;
cost = unit.cost;
size = unit.size;
sqsize = size*size;
for(auto a: unit.abilities)
{
abilities.emplace_back(Ability::Abilities[a],*this, map);
}
health = unit.hp;
def = unit.def;
attack = unit.atk;
attacks = unit.attacks;
attackTimer = unit.attackTime;
attackTime = unit.attackTime;
if(abilities.empty())
range = unit.range;
else
range = abilities[0].Range();
rangesq = range*range;
los = 60;
losq = los*los;
l_d = losq;
targets.resize(attacks);
state = State::IDLE;
life = 60;
targetable = true;
alive = true;
charge = nullptr;
maxSpeed = unit.speed;
speed = 0;
maxForce = 0.1f;
Target(space.pos());
Pos(space.pos());
pathProg = 1;
prevpath = 0;
}
Unit::~Unit()
{
space = nullptr;
Destination = nullptr;
}
void Unit::draw(sf::RenderWindow &window)
{
sf::CircleShape circle(size);
circle.setFillColor(team.GetColor());
circle.setOutlineColor(sf::Color::Black);
circle.setOutlineThickness(1.0f);
circle.setPosition(position);
circle.setOrigin(sf::Vector2f(size,size));
window.draw(circle);
}
//Move function, better name would be update, as it at the moment handles more than just movement
void Unit::update(std::list<std::unique_ptr<Entity>> const &entities, sf::RenderWindow &window)
{
//Check state
draw(window);
if(Destination->SId() == 0)
return;
if(!isOk())
{
return;
}
if(!targetable)
{
velocity = {0,0};
return;
}
//Logic for movement update
attacked = false;
//Movement calculation
if(attackTimer == 0)
{
switch(state)
{
case State::MOVE:
acceleration += Path();
case State::CHARGE:
case State::ATTACK:
case State::IDLE:
acceleration += Seek();
acceleration += flocking(entities);
default:
break;
}
velocity += acceleration;
}
else
velocity -= velocity/2.0f;
if(attackTimer > 0)
attackTimer --;
speed = thor::length(velocity);
if(speed > maxSpeed)
{
velocity *= maxSpeed / speed;
speed = maxSpeed;
}
acceleration = {0,0};
position += velocity;
updateState();
Attack();
nextPath();
//State updating
}
sf::Vector2f Unit::Seek()
{
//Function to seek a target point
sf::Vector2f desired = target - position;
float d;
float limit = 0.1f;
float cosAngle;
if(desired.x*desired.x > 0.01f || desired.y*desired.y > 0.01f)
d = thor::length(desired);
else
return {0,0};
if(speed == 0)
{
cosAngle = 2;
}
else{
cosAngle = thor::dotProduct(velocity, desired)/(speed*d);
cosAngle *= -1;
cosAngle += 1;
cosAngle *= 1.5+limit/2+limit;
cosAngle += 1.5;
}
desired *= cosAngle / d;
return desired;
}
sf::Vector2f Unit::Seek(sf::Vector2f targ)
{
//Function to seek a target point
sf::Vector2f desired = targ - position;
float d;
float limit = 0.1f;
float cosAngle;
if(desired.x*desired.x > 0.01f || desired.y*desired.y > 0.01f)
d = thor::length(desired);
else
return {0,0};
if(speed == 0)
{
cosAngle = 2;
}
else{
cosAngle = thor::dotProduct(velocity, desired)/(speed*d);
cosAngle *= -1;
cosAngle += 1;
cosAngle *= 1.5+limit/2+limit;
cosAngle += 1.5;
}
desired *= cosAngle / d;
return desired;
}
sf::Vector2f Unit::Path()
{
sf::Vector2f predict = vel();
if(predict.x*predict.x > 0.001f || predict.y*predict.y > 0.001f)
predict = predict / speed;
else predict = {0,0};
predict *= 5.0f;
sf::Vector2f predictLoc = pos() + predict;
sf::Vector2f a = predictLoc - nextpath.pos;
sf::Vector2f b = nextpath.endLine->norm;
b *= thor::dotProduct(a,b);
sf::Vector2f normalPoint = nextpath.pos + b;
float distanceSq = thor::squaredLength(predictLoc - normalPoint);
if(distanceSq > pow(nextpath.width,2))
{
return Seek(normalPoint);
}
return {0,0};
}
sf::Vector2f Unit::flocking(std::list<std::unique_ptr<Entity>> const &entities)
{
float d;
int sepCount , aliCount, atkCount, cohCount ;
sepCount = aliCount = atkCount = cohCount = 0;
sf::Vector2f sum, sepSum, aliSum, atkSum, cohSum;
sum = sepSum = aliSum = atkSum = cohSum = {0,0};
l_d = losq;
charge = nullptr;
for(auto &u : entities)
{
//Check if current entity is itself
if(this == u.get() || !u->isTargetable())
continue;
//finding distance to entity
sf::Vector2f diff = position - u->pos();
if(diff.x*diff.x > 0.0001f || diff.y*diff.y > 0.0001f)
d = thor::squaredLength(diff);
else d = 0;
//calculate response to entity
switch(state)
{
case State::MOVE:
case State::IDLE:
aliSum += Align(*u, d, aliCount);
case State::CHARGE:
cohSum += Cohesion(*u, d, cohCount);
case State::ATTACK:
sepSum += Seperate(*u, d, sepCount);
aquireTargets(*u, d, atkCount);
default:
break;
}
}
//divide each response by number to entities to respond to
// and add the sum of all the different responses
if(sepCount)
sum += Sum(sepSum, 40.f, 1);
if(aliCount)
sum += Sum(aliSum, .5f, aliCount);
if(cohCount)
sum += Sum(cohSum, 1.f, cohCount);
return sum;
}
void Unit::updateState()
{
if(!targets.empty())
state = State::ATTACK;
else if(charge != nullptr)
{
state = State::CHARGE;
target = charge->pos();
}
else if(space == Destination)
{
if(state != State::IDLE)
{
target = space->pos();
state = State::IDLE;
}
newDest();
}
else
{
target = nextpath.pos;
state = State::MOVE;
}
}
void Unit::nextPath()
{
if(state == State::MOVE)
{
sf::Vector2f a = position - nextpath.pos;
sf::Vector2f b = nextpath.endLine->perp;
b *= thor::dotProduct(a,b);
sf::Vector2f normalPoint = nextpath.pos + b;
float distanceSq = thor::squaredLength(position - normalPoint);
if(distanceSq < 25)
{
//TODO: Next space/path
if(path->nextPath(pathProg, prevpath, nextpath))
{
target = nextpath.pos;
}
else
{
space = Destination;
//velocity = {0,0};
pathProg = 0;
}
}
}
}
void Unit::newDest()
{
if(space == Destination && space->Target(team.GetId()) != nullptr)
{
Destination = space->Target(team.GetId());
path = &team.getPath(space->SId(),Destination->SId());
nextpath = path->start(space->NodeVertex().Id);
Target(nextpath.pos);
}
}
bool Unit::aquireTargets(Entity &e, float d, int &count)
{
if(e.GetTeam() != team)
{
if(d-rangesq-sqSize() <= e.sqSize())
{
targets.add(d,e);
}
else if(d <= losq)
{
if(d < l_d)
{
charge = &e;
l_d = d;
}
}
}
return false;
}
sf::Vector2f Unit::Align(Entity &e, float d, int &count)
{
float losq = los*los/2.0f;
sf::Vector2f sum = {0,0};
if(this->team != e.GetTeam() )
return sum;
if(d <= losq)
{
sum = (e.vel());
count ++;
}
return sum;
}
sf::Vector2f Unit::Seperate(Entity &e, float d, int &count)
{
float losq = sqsize+25;
sf::Vector2f sum = {0,0};
if(d <= losq && e.GetTeam() == team)
{
sum = position - e.pos();
if (sum.x*sum.x > 0.001f || sum.y*sum.y > 0.001f)
sum = thor::unitVector(sum);
else sum = {0,0};
sum.x /= d;
sum.y /= d;
sum *= 160.0f;
count ++;
}
return sum;
}
sf::Vector2f Unit::Cohesion(Entity &e, float d, int &count)
{
float losq = sqsize + 100;
sf::Vector2f sum = {0,0};
if(d <= losq && e.GetTeam() == team)
{
sum = e.pos();
count++;
}
return sum;
}
sf::Vector2f Unit::Sum(sf::Vector2f sum, float limit, int count)
{
sum.x /= count;
sum.y /= count;
limit *= limit;
float length;
if (sum.x*sum.x > 0.001f || sum.y*sum.y > 0.001f)
length = thor::squaredLength(sum);
else return {0,0};
if(length >= limit)
sum *= limit / length;
return sum;
}
std::map<int, Unit_t> Unit::Types; | [
"oaflak16@student.uia.no"
] | oaflak16@student.uia.no |
ec203d1d7d787675220e8f17e3100a12de1650c2 | 2c17c289d795c570491022960154b19505b27f27 | /googleurl/base/strings/string_util.cc | c2e440fa7e190b70aa1004a1817fc97796c6e8db | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | leeyangjie/quiche | 4cb2849ce2474ec14c902683d25e9287b95a7078 | 2870175069d90bcb837f30170f4eff97e161805d | refs/heads/main | 2022-06-18T17:05:13.066915 | 2022-04-13T07:14:13 | 2022-04-13T07:14:13 | 433,855,510 | 0 | 0 | Apache-2.0 | 2021-12-01T14:17:22 | 2021-12-01T14:17:21 | null | UTF-8 | C++ | false | false | 14,862 | cc | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/strings/string_util.h"
#include <ctype.h>
#include <errno.h>
#include <math.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <wchar.h>
#include <wctype.h>
#include <algorithm>
#include <limits>
#include <type_traits>
#include <vector>
#include "polyfills/base/check_op.h"
#include "base/no_destructor.h"
#include "base/stl_util.h"
#include "base/strings/string_util_internal.h"
#include "base/strings/utf_string_conversion_utils.h"
#include "base/strings/utf_string_conversions.h"
#include "base/third_party/icu/icu_utf.h"
#include "build/build_config.h"
namespace gurl_base {
bool IsWprintfFormatPortable(const wchar_t* format) {
for (const wchar_t* position = format; *position != '\0'; ++position) {
if (*position == '%') {
bool in_specification = true;
bool modifier_l = false;
while (in_specification) {
// Eat up characters until reaching a known specifier.
if (*++position == '\0') {
// The format string ended in the middle of a specification. Call
// it portable because no unportable specifications were found. The
// string is equally broken on all platforms.
return true;
}
if (*position == 'l') {
// 'l' is the only thing that can save the 's' and 'c' specifiers.
modifier_l = true;
} else if (((*position == 's' || *position == 'c') && !modifier_l) ||
*position == 'S' || *position == 'C' || *position == 'F' ||
*position == 'D' || *position == 'O' || *position == 'U') {
// Not portable.
return false;
}
if (wcschr(L"diouxXeEfgGaAcspn%", *position)) {
// Portable, keep scanning the rest of the format string.
in_specification = false;
}
}
}
}
return true;
}
std::string ToLowerASCII(StringPiece str) {
return internal::ToLowerASCIIImpl(str);
}
string16 ToLowerASCII(StringPiece16 str) {
return internal::ToLowerASCIIImpl(str);
}
std::string ToUpperASCII(StringPiece str) {
return internal::ToUpperASCIIImpl(str);
}
string16 ToUpperASCII(StringPiece16 str) {
return internal::ToUpperASCIIImpl(str);
}
int CompareCaseInsensitiveASCII(StringPiece a, StringPiece b) {
return internal::CompareCaseInsensitiveASCIIT(a, b);
}
int CompareCaseInsensitiveASCII(StringPiece16 a, StringPiece16 b) {
return internal::CompareCaseInsensitiveASCIIT(a, b);
}
bool EqualsCaseInsensitiveASCII(StringPiece a, StringPiece b) {
return a.size() == b.size() &&
internal::CompareCaseInsensitiveASCIIT(a, b) == 0;
}
bool EqualsCaseInsensitiveASCII(StringPiece16 a, StringPiece16 b) {
return a.size() == b.size() &&
internal::CompareCaseInsensitiveASCIIT(a, b) == 0;
}
const std::string& EmptyString() {
static const gurl_base::NoDestructor<std::string> s;
return *s;
}
const string16& EmptyString16() {
static const gurl_base::NoDestructor<string16> s16;
return *s16;
}
bool ReplaceChars(StringPiece16 input,
StringPiece16 replace_chars,
StringPiece16 replace_with,
string16* output) {
return internal::ReplaceCharsT(input, replace_chars, replace_with, output);
}
bool ReplaceChars(StringPiece input,
StringPiece replace_chars,
StringPiece replace_with,
std::string* output) {
return internal::ReplaceCharsT(input, replace_chars, replace_with, output);
}
bool RemoveChars(StringPiece16 input,
StringPiece16 remove_chars,
string16* output) {
return internal::ReplaceCharsT(input, remove_chars, StringPiece16(), output);
}
bool RemoveChars(StringPiece input,
StringPiece remove_chars,
std::string* output) {
return internal::ReplaceCharsT(input, remove_chars, StringPiece(), output);
}
bool TrimString(StringPiece16 input,
StringPiece16 trim_chars,
string16* output) {
return internal::TrimStringT(input, trim_chars, TRIM_ALL, output) !=
TRIM_NONE;
}
bool TrimString(StringPiece input,
StringPiece trim_chars,
std::string* output) {
return internal::TrimStringT(input, trim_chars, TRIM_ALL, output) !=
TRIM_NONE;
}
StringPiece16 TrimString(StringPiece16 input,
StringPiece16 trim_chars,
TrimPositions positions) {
return internal::TrimStringPieceT(input, trim_chars, positions);
}
StringPiece TrimString(StringPiece input,
StringPiece trim_chars,
TrimPositions positions) {
return internal::TrimStringPieceT(input, trim_chars, positions);
}
void TruncateUTF8ToByteSize(const std::string& input,
const size_t byte_size,
std::string* output) {
GURL_DCHECK(output);
if (byte_size > input.length()) {
*output = input;
return;
}
GURL_DCHECK_LE(byte_size,
static_cast<uint32_t>(std::numeric_limits<int32_t>::max()));
// Note: This cast is necessary because CBU8_NEXT uses int32_ts.
int32_t truncation_length = static_cast<int32_t>(byte_size);
int32_t char_index = truncation_length - 1;
const char* data = input.data();
// Using CBU8, we will move backwards from the truncation point
// to the beginning of the string looking for a valid UTF8
// character. Once a full UTF8 character is found, we will
// truncate the string to the end of that character.
while (char_index >= 0) {
int32_t prev = char_index;
base_icu::UChar32 code_point = 0;
CBU8_NEXT(data, char_index, truncation_length, code_point);
if (!IsValidCharacter(code_point) ||
!IsValidCodepoint(code_point)) {
char_index = prev - 1;
} else {
break;
}
}
if (char_index >= 0 )
*output = input.substr(0, char_index);
else
output->clear();
}
TrimPositions TrimWhitespace(StringPiece16 input,
TrimPositions positions,
string16* output) {
return internal::TrimStringT(input, StringPiece16(kWhitespaceUTF16),
positions, output);
}
StringPiece16 TrimWhitespace(StringPiece16 input,
TrimPositions positions) {
return internal::TrimStringPieceT(input, StringPiece16(kWhitespaceUTF16),
positions);
}
TrimPositions TrimWhitespaceASCII(StringPiece input,
TrimPositions positions,
std::string* output) {
return internal::TrimStringT(input, StringPiece(kWhitespaceASCII), positions,
output);
}
StringPiece TrimWhitespaceASCII(StringPiece input, TrimPositions positions) {
return internal::TrimStringPieceT(input, StringPiece(kWhitespaceASCII),
positions);
}
string16 CollapseWhitespace(StringPiece16 text,
bool trim_sequences_with_line_breaks) {
return internal::CollapseWhitespaceT(text, trim_sequences_with_line_breaks);
}
std::string CollapseWhitespaceASCII(StringPiece text,
bool trim_sequences_with_line_breaks) {
return internal::CollapseWhitespaceT(text, trim_sequences_with_line_breaks);
}
bool ContainsOnlyChars(StringPiece input, StringPiece characters) {
return input.find_first_not_of(characters) == StringPiece::npos;
}
bool ContainsOnlyChars(StringPiece16 input, StringPiece16 characters) {
return input.find_first_not_of(characters) == StringPiece16::npos;
}
bool IsStringASCII(StringPiece str) {
return internal::DoIsStringASCII(str.data(), str.length());
}
bool IsStringASCII(StringPiece16 str) {
return internal::DoIsStringASCII(str.data(), str.length());
}
#if defined(WCHAR_T_IS_UTF32)
bool IsStringASCII(WStringPiece str) {
return internal::DoIsStringASCII(str.data(), str.length());
}
#endif
bool IsStringUTF8(StringPiece str) {
return internal::DoIsStringUTF8<IsValidCharacter>(str);
}
bool IsStringUTF8AllowingNoncharacters(StringPiece str) {
return internal::DoIsStringUTF8<IsValidCodepoint>(str);
}
bool LowerCaseEqualsASCII(StringPiece str, StringPiece lowercase_ascii) {
return internal::DoLowerCaseEqualsASCII(str, lowercase_ascii);
}
bool LowerCaseEqualsASCII(StringPiece16 str, StringPiece lowercase_ascii) {
return internal::DoLowerCaseEqualsASCII(str, lowercase_ascii);
}
bool EqualsASCII(StringPiece16 str, StringPiece ascii) {
return std::equal(ascii.begin(), ascii.end(), str.begin(), str.end());
}
bool StartsWith(StringPiece str,
StringPiece search_for,
CompareCase case_sensitivity) {
return internal::StartsWithT(str, search_for, case_sensitivity);
}
bool StartsWith(StringPiece16 str,
StringPiece16 search_for,
CompareCase case_sensitivity) {
return internal::StartsWithT(str, search_for, case_sensitivity);
}
bool EndsWith(StringPiece str,
StringPiece search_for,
CompareCase case_sensitivity) {
return internal::EndsWithT(str, search_for, case_sensitivity);
}
bool EndsWith(StringPiece16 str,
StringPiece16 search_for,
CompareCase case_sensitivity) {
return internal::EndsWithT(str, search_for, case_sensitivity);
}
char HexDigitToInt(wchar_t c) {
GURL_DCHECK(IsHexDigit(c));
if (c >= '0' && c <= '9')
return static_cast<char>(c - '0');
if (c >= 'A' && c <= 'F')
return static_cast<char>(c - 'A' + 10);
if (c >= 'a' && c <= 'f')
return static_cast<char>(c - 'a' + 10);
return 0;
}
bool IsUnicodeWhitespace(wchar_t c) {
// kWhitespaceWide is a NULL-terminated string
for (const wchar_t* cur = kWhitespaceWide; *cur; ++cur) {
if (*cur == c)
return true;
}
return false;
}
static const char* const kByteStringsUnlocalized[] = {
" B",
" kB",
" MB",
" GB",
" TB",
" PB"
};
string16 FormatBytesUnlocalized(int64_t bytes) {
double unit_amount = static_cast<double>(bytes);
size_t dimension = 0;
const int kKilo = 1024;
while (unit_amount >= kKilo &&
dimension < gurl_base::size(kByteStringsUnlocalized) - 1) {
unit_amount /= kKilo;
dimension++;
}
char buf[64];
if (bytes != 0 && dimension > 0 && unit_amount < 100) {
gurl_base::snprintf(buf, gurl_base::size(buf), "%.1lf%s", unit_amount,
kByteStringsUnlocalized[dimension]);
} else {
gurl_base::snprintf(buf, gurl_base::size(buf), "%.0lf%s", unit_amount,
kByteStringsUnlocalized[dimension]);
}
return ASCIIToUTF16(buf);
}
void ReplaceFirstSubstringAfterOffset(string16* str,
size_t start_offset,
StringPiece16 find_this,
StringPiece16 replace_with) {
internal::DoReplaceMatchesAfterOffset(
str, start_offset, internal::SubstringMatcher<string16>{find_this},
replace_with, internal::ReplaceType::REPLACE_FIRST);
}
void ReplaceFirstSubstringAfterOffset(std::string* str,
size_t start_offset,
StringPiece find_this,
StringPiece replace_with) {
internal::DoReplaceMatchesAfterOffset(
str, start_offset, internal::SubstringMatcher<std::string>{find_this},
replace_with, internal::ReplaceType::REPLACE_FIRST);
}
void ReplaceSubstringsAfterOffset(string16* str,
size_t start_offset,
StringPiece16 find_this,
StringPiece16 replace_with) {
internal::DoReplaceMatchesAfterOffset(
str, start_offset, internal::SubstringMatcher<string16>{find_this},
replace_with, internal::ReplaceType::REPLACE_ALL);
}
void ReplaceSubstringsAfterOffset(std::string* str,
size_t start_offset,
StringPiece find_this,
StringPiece replace_with) {
internal::DoReplaceMatchesAfterOffset(
str, start_offset, internal::SubstringMatcher<std::string>{find_this},
replace_with, internal::ReplaceType::REPLACE_ALL);
}
char* WriteInto(std::string* str, size_t length_with_null) {
return internal::WriteIntoT(str, length_with_null);
}
char16* WriteInto(string16* str, size_t length_with_null) {
return internal::WriteIntoT(str, length_with_null);
}
std::string JoinString(span<const std::string> parts, StringPiece separator) {
return internal::JoinStringT(parts, separator);
}
string16 JoinString(span<const string16> parts, StringPiece16 separator) {
return internal::JoinStringT(parts, separator);
}
std::string JoinString(span<const StringPiece> parts, StringPiece separator) {
return internal::JoinStringT(parts, separator);
}
string16 JoinString(span<const StringPiece16> parts, StringPiece16 separator) {
return internal::JoinStringT(parts, separator);
}
std::string JoinString(std::initializer_list<StringPiece> parts,
StringPiece separator) {
return internal::JoinStringT(parts, separator);
}
string16 JoinString(std::initializer_list<StringPiece16> parts,
StringPiece16 separator) {
return internal::JoinStringT(parts, separator);
}
string16 ReplaceStringPlaceholders(StringPiece16 format_string,
const std::vector<string16>& subst,
std::vector<size_t>* offsets) {
return internal::DoReplaceStringPlaceholders(format_string, subst, offsets);
}
std::string ReplaceStringPlaceholders(StringPiece format_string,
const std::vector<std::string>& subst,
std::vector<size_t>* offsets) {
return internal::DoReplaceStringPlaceholders(format_string, subst, offsets);
}
string16 ReplaceStringPlaceholders(const string16& format_string,
const string16& a,
size_t* offset) {
std::vector<size_t> offsets;
string16 result = ReplaceStringPlaceholders(format_string, {a}, &offsets);
GURL_DCHECK_EQ(1U, offsets.size());
if (offset)
*offset = offsets[0];
return result;
}
size_t strlcpy(char* dst, const char* src, size_t dst_size) {
return internal::lcpyT(dst, src, dst_size);
}
size_t wcslcpy(wchar_t* dst, const wchar_t* src, size_t dst_size) {
return internal::lcpyT(dst, src, dst_size);
}
} // namespace base
| [
"wangsheng@bilibili.com"
] | wangsheng@bilibili.com |
af20c0b680af7ede29d53e5020b3a59e61f41c53 | 410662099bd8bc5351718b717bf361852b60ee53 | /11/test.h | 2d9d10aad2911c1cd326d5cb23ce16cdf28b785f | [] | no_license | wu-hua-guo/C-plus-plus_offer | 0c78edd172118366dc7d17016fb9158b861f39dc | 0f2b0c73af785a1308b1934297851b76470b75fb | refs/heads/master | 2020-03-25T17:32:21.713065 | 2018-08-20T13:06:34 | 2018-08-20T13:06:34 | 143,982,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 102 | h | #ifndef TEST_H
#define TEST_H
class Test
{
public:
Test();
void run();
};
#endif // TEST_H
| [
"2206757071@qq.com"
] | 2206757071@qq.com |
c902289a4b53126008bee9d8d79f83e3ec0d98ee | f90dff917e3a9d7343a4fdc9bf8226487eed05cc | /ShortestPath/main.cpp | 8d251c0dea25714a9a70da3d0e4e689bca8a3980 | [] | no_license | QingZhong-Henry-Han/CPP | 0ff12b0719418f8e921806588225d3ba3cbdf90d | 99ec32da1590510791db1b8fb9a74fa0bde7fee7 | refs/heads/master | 2023-01-25T04:49:50.104825 | 2020-11-27T00:31:40 | 2020-11-27T00:31:40 | 295,167,264 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,014 | cpp | // this is the routine for graph component
// directed weighted graph
// 2) shortest path
// A Dijkstra's is gready algorithms
//
// 3) program to find Dijkstra's shortest path using STL set
//
// for V E
#include <bits/stdc++.h>
using namespace std;
#define INF 0x3f3f3f3f
// program to find Dijkstra's shortest path using STL set
class GraphD
{
int numVertex;
list<pair<int, int>> *adj;
public:
GraphD(int numVertex);
void addEdge(int u, int v, int w);
void shortestPath(int s);
void BellmanFord(int s);
};
GraphD::GraphD(int numVertex)
{
this->numVertex = numVertex;
adj = new list<pair<int, int>>[numVertex];
}
void GraphD::addEdge(int u, int v, int w)
{
adj[u].push_back(make_pair(v,w));
adj[v].push_back(make_pair(u,w));
}
// prints shortest paths from src to all other vertices
void GraphD::shortestPath(int src)
{
// Create a set to store vertices that are being
// preprocessed
set<pair<int,int>> setds;
// Create a vector for distances and initialize all distances as infinite (INF)
vector<int> dist(numVertex, INF);
//Insert source itself in set and initialize its distance as 0
setds.insert({0,src});
dist[src] = 0;
/* Looping till all shortest distance are finalized
then setds will become empty */
while (!setds.empty())
{
// The first vertex in Set is the minimum distance
// vertex, extract it from set.
pair<int, int> tmp = *(setds.begin());
setds.erase(setds.begin());
// vertex label is stored in second of pair (it
// has to be done this way to keep the vertices
// sorted distance (distance must be first item
// in pair)
int u = tmp.second;
// 'i' is used to get all adjacent vertices of a vertex
list< pair<int, int> >::iterator i;
for (i = adj[u].begin(); i != adj[u].end(); ++i)
{
// Get vertex label and weight of current adjacent
// of u.
int v = (*i).first;
int weight = (*i).second;
// If there is shorter path to v through u.
if (dist[v] > dist[u] + weight)
{
/* If distance of v is not INF then it must be in
our set, so removing it and inserting again
with updated less distance.
Note : We extract only those vertices from Set
for which distance is finalized. So for them,
we would never reach here. */
if (dist[v] != INF)
setds.erase(setds.find(make_pair(dist[v], v)));
// Updating distance of v
dist[v] = dist[u] + weight;
setds.insert(make_pair(dist[v], v));
}
}
}
// Print shortest distances stored in dist[]
printf("Vertex Distance from Source\n");
for (int i = 0; i < numVertex; ++i)
printf("%d \t\t %d\n", i, dist[i]);
}
// prints shortest paths from src to all other vertices
void GraphD::BellmanFord(int src)
{
// Create a set to store vertices that are being
// preprocessed
set<pair<int,int>> setds;
// Create a vector for distances and initialize all distances as infinite (INF)
vector<int> dist(numVertex, INF);
//Insert source itself in set and initialize its distance as 0
setds.insert({0,src});
dist[src] = 0;
/* Looping till all shortest distance are finalized
then setds will become empty */
while (!setds.empty())
{
// The first vertex in Set is the minimum distance
// vertex, extract it from set.
pair<int, int> tmp = *(setds.begin());
setds.erase(setds.begin());
// vertex label is stored in second of pair (it
// has to be done this way to keep the vertices
// sorted distance (distance must be first item
// in pair)
int u = tmp.second;
// 'i' is used to get all adjacent vertices of a vertex
list< pair<int, int> >::iterator i;
for (i = adj[u].begin(); i != adj[u].end(); ++i)
{
// Get vertex label and weight of current adjacent
// of u.
int v = (*i).first;
int weight = (*i).second;
// If there is shorter path to v through u.
if (dist[v] > dist[u] + weight)
{
/* If distance of v is not INF then it must be in
our set, so removing it and inserting again
with updated less distance.
Note : We extract only those vertices from Set
for which distance is finalized. So for them,
we would never reach here. */
if (dist[v] != INF)
setds.erase(setds.find(make_pair(dist[v], v)));
// Updating distance of v
dist[v] = dist[u] + weight;
setds.insert(make_pair(dist[v], v));
}
}
}
// Print shortest distances stored in dist[]
printf("Vertex Distance from Source\n");
for (int i = 0; i < numVertex; ++i)
printf("%d \t\t %d\n", i, dist[i]);
}
class Graph
{
int numVertex;
int numEdge;
vector<vector<pair<int, int>>> m_adj;
public:
Graph(int v );
// A utility function to add an edge in an
// directed acyclic graph(DAG).
void addEdge(int v, int u, int weight);
void SPUtil(int s, int v, bool* visited, vector<int>& distance );
void SP(int start);
void printGraph()
{
for( int v = 1; v < numVertex; v++)
{
for(auto it = m_adj[v].begin(); it != m_adj[v].end(); it++)
{
cout << "-> " << it->first << " d " << it->second << " ;" ;
}
printf("\n");
}
}
};
// Function to fill the list
Graph::Graph(int numV )
{
this->numVertex = numV;
m_adj.resize(numV);
}
void Graph::addEdge(int v, int u, int weight)
{
m_adj[v].push_back(std::pair<int, int>(u, weight));
}
//SPUtil function
void Graph::SPUtil(int s, int v, bool* visited, vector<int>& distance)
{
for (auto it = m_adj[s].begin(); it != m_adj[s].end(); ++it)
{
int u = it->first;
cout << " -> " << u << " ";
if(!visited[u])
{
distance[u] += it->second;
visited[u] = true;
if(u != v)
{
SPUtil(u, v, visited, distance);
}
}
else
{
// we are in circle
}
}
}
//Shortest path
void Graph::SP(int start)
{
vector<int> SPResult(numVertex, 0);
// Mark all the vertices as not visited
bool *visited = new bool[numVertex];
for (int v = 0; v < numVertex; v++)
{
visited[v] = false;
}
int v = 1;
//for( int v = 1; v < numVertex; v++)
{
SPUtil(start, v, visited, SPResult);
}
for(int i = 1; i < numVertex; i++)
{
cout << SPResult[i] << " ";
}
cout << "\n";
}
#define V_N 9
// A utility function to find the veretex with minimum distance value,
// from the set of vertices not yet included in shortese path tree
// dist[] --
// sptSet -- shortest path tree set.
// Algorithm for this time complexcity is O(V^2).
//
int minDistance( int dist[], bool sptSet[])
{
// Initialize min value
int min = INT_MAX, min_index;
for(int v = 0; v < V_N; v++)
{
if(sptSet[v] == false && dist[v] <= min)
{
min = dist[v];
min_index = v;
}
}
return min_index;
}
// A utility function to print the constructed distance array
void printSolution(int dist[])
{
printf("Vertex \t\t Distance from Source\n");
for (int i = 0; i < V_N; i++)
printf("%d \t\t %d\n", i, dist[i]);
}
// Function that implements Dijkstra's single source shortest path algorithm
// for a graph represented using adjacency matrix representation
void dijkstra(int graph[V_N][V_N], int src)
{
int dist[V_N]; // The output array. dist[i] will hold the shortest
// distance from src to i
bool sptSet[V_N]; // sptSet[i] will be true if vertex i is included in shortest
// path tree or shortest distance from src to i is finalized
// Initialize all distances as INFINITE and stpSet[] as false
for (int i = 0; i < V_N; i++)
{
dist[i] = INT_MAX;
sptSet[i] = false;
}
// Distance of source vertex from itself is always 0
dist[src] = 0;
// Find shortest path for all vertices
for (int count = 0; count < V_N - 1; count++) {
// Pick the minimum distance vertex from the set of vertices not
// yet processed. u is always equal to src in the first iteration.
int u = minDistance(dist, sptSet);
// Mark the picked vertex as processed
sptSet[u] = true;
// Update dist value of the adjacent vertices of the picked vertex.
for (int v = 0; v < V_N; v++)
// Update dist[v] only if is not in sptSet, there is an edge from
// u to v, and total weight of path from src to v through u is
// smaller than current value of dist[v]
if (!sptSet[v] && graph[u][v] && dist[u] != INT_MAX
&& dist[u] + graph[u][v] < dist[v])
dist[v] = dist[u] + graph[u][v];
}
// print the constructed distance array
printSolution(dist);
}
int main(int argc, char* argv[] )
{
//Input V = 5, S = 1
// arr{{1,2,1},{2,3,7},{2,4,-2},{1,3,8},{1,4,9},{3,4,3},{2,5,3},{4,5,-3}}
// int numNodes = 5;
// int numEdges = 7;
// Graph G(numNodes + 1);
// G.addEdge(1,2,1);
// G.addEdge(2,3,7);
// G.addEdge(2,4,-2);
// G.addEdge(1,3,8);
// G.addEdge(1,4,9);
// G.addEdge(3,4,3);
// G.addEdge(2,5,3);
// G.addEdge(4,5,-3);
//G.printGraph();
// int start = 1;
// G.SP(start);
// Let us create the example */
int graph[V_N][V_N] = { { 0, 4, 0, 0, 0, 0, 0, 8, 0 },
{ 4, 0, 8, 0, 0, 0, 0, 11, 0 },
{ 0, 8, 0, 7, 0, 4, 0, 0, 2 },
{ 0, 0, 7, 0, 9, 14, 0, 0, 0 },
{ 0, 0, 0, 9, 0, 10, 0, 0, 0 },
{ 0, 0, 4, 14, 10, 0, 2, 0, 0 },
{ 0, 0, 0, 0, 0, 2, 0, 1, 6 },
{ 8, 11, 0, 0, 0, 0, 1, 0, 7 },
{ 0, 0, 2, 0, 0, 0, 6, 7, 0 } };
dijkstra(graph, 1);
// create the graph given in above fugure
/* int V = 9;
GraphD gd(V);
// making above shown graph
gd.addEdge(0, 1, 4);
gd.addEdge(0, 7, 8);
gd.addEdge(1, 2, 8);
gd.addEdge(1, 7, 11);
gd.addEdge(2, 3, 7);
gd.addEdge(2, 8, 2);
gd.addEdge(2, 5, 4);
gd.addEdge(3, 4, 9);
gd.addEdge(3, 5, 14);
gd.addEdge(4, 5, 10);
gd.addEdge(5, 6, 2);
gd.addEdge(6, 7, 1);
gd.addEdge(6, 8, 6);
gd.addEdge(7, 8, 7);
gd.shortestPath(0);
*/
return 0;
}
| [
"henry.hans.cc@gmail.com"
] | henry.hans.cc@gmail.com |
4d610c26fb3b99539c52ea35fb302c39e0915d80 | 05dfcb46f8dacec421a073ece8e30140ec07c4c7 | /PriorityTracker.h | 3ac09b50b8439ecac0e2f0e36fe041aa89ea5eeb | [] | no_license | Abhijith-S-D/Design-Pattern-Project | 7e1c413625707813a7502c735052358017bc2acc | af5daa758a861107d02841bea1af04dcd10a72cf | refs/heads/master | 2021-09-01T01:28:51.066617 | 2017-12-24T05:06:31 | 2017-12-24T05:06:31 | 107,844,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,609 | h | #ifndef Life
#define Life
#include<algorithm>
#include <map>
#include<vector>
#include<functional>
#include<utility>
using namespace std;
namespace Destroyer
{
class LifetimeTracker
{
private:
unsigned int longevity_;
unsigned int priority_;
public:
LifetimeTracker(unsigned int x,unsigned int y) : longevity_(x) , priority_(y){}
virtual ~LifetimeTracker() = 0;
unsigned int getLongevity()
{
return longevity_;
}
unsigned int getPriority()
{
return priority_;
}
};
// Definition required
inline LifetimeTracker::~LifetimeTracker() {}
// Concrete lifetime tracker for objects of type T
class ConcreteLifetimeTracker : public LifetimeTracker
{
public:
ConcreteLifetimeTracker(Resource* p,unsigned int longevity,unsigned int priority):LifetimeTracker(longevity,priority),pTracked_(p){}
void print_value()
{
std::cout << "addr value = [" << pTracked_ << "]" << std::endl;
}
~ConcreteLifetimeTracker()
{
delete pTracked_;
}
private:
Resource* pTracked_;
};
bool lesser_than_key( ConcreteLifetimeTracker* obj1, ConcreteLifetimeTracker* obj2)
{
if (obj1->getLongevity() != obj2->getLongevity()) return obj1->getLongevity() < obj2->getLongevity();
return true;
}
vector<int> priority_vector;
std::map<int,vector<ConcreteLifetimeTracker*> > pTrackerArray;
void AtExitFn()
{
for(std::vector<int>::iterator itp=priority_vector.begin();itp!=priority_vector.end();++itp){
std::cout << "deleting priority "<< *itp << std::endl;
for(std::vector<ConcreteLifetimeTracker*>::iterator it = pTrackerArray[*itp].begin(); it != pTrackerArray[*itp].end(); ++it)
{
std::cout << " longetivity is "<< (*it)->getLongevity() << std::endl;
delete (*it);
}
}
}
void SetLongevity(Resource* pDynObject, unsigned int longevity,unsigned int priority)
{
ConcreteLifetimeTracker* p = new ConcreteLifetimeTracker(pDynObject, longevity,priority);
map<int,vector<ConcreteLifetimeTracker*> >::iterator itr=pTrackerArray.find(priority);
if(itr==pTrackerArray.end())
{
vector<ConcreteLifetimeTracker*> priority_level;
priority_level.push_back(p);
pTrackerArray.insert(pair<int,vector<ConcreteLifetimeTracker*>>(priority,priority_level));
priority_vector.push_back(priority);
std::sort(priority_vector.begin(),priority_vector.end(),greater<int>());
}
else
{
pTrackerArray.find(priority)->second.push_back(p);
}
std::stable_sort(pTrackerArray.find(priority)->second.begin(),pTrackerArray.find(priority)->second.end(),lesser_than_key);
}
}
#endif
| [
"abhinomega135@gmail.com"
] | abhinomega135@gmail.com |
f3e54639c59c9567827ec2d75ffeeec232e46263 | b762d1366f5b39511633a2eb87edd39fe212f9f1 | /RGB_LED/RGB_LED.ino | 262ca1b5250a82bf0749c90102a77eeb0509394c | [] | no_license | ArcherHuang/Arduino | 821acba3fd1e828d05ebe27898ec2e4e79802f6e | 897d9df3507a0a7d6a2564a3e9218c528a745558 | refs/heads/master | 2021-01-13T16:44:38.329308 | 2016-12-24T01:23:04 | 2016-12-24T01:23:04 | 77,211,264 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | ino | int redpin = 11; // select the pin for the red LED
int bluepin =10; // select the pin for the blue LED
int greenpin =9; // select the pin for the green LED
int val;
void setup() {
pinMode(redpin, OUTPUT);
pinMode(bluepin, OUTPUT);
pinMode(greenpin, OUTPUT);
Serial.begin(9600);
}
void loop()
{
for(val=255; val>0; val--)
{
analogWrite(11, val);
analogWrite(10, 255-val);
analogWrite(9, 128-val);
delay(1);
}
for(val=0; val<255; val++)
{
analogWrite(11, val);
analogWrite(10, 255-val);
analogWrite(9, 128-val);
delay(1);
}
Serial.println(val, DEC);
}
| [
"archerhuang@iii.org.tw"
] | archerhuang@iii.org.tw |
0bb4f3a011bc13aa85a13263cde2549369f56e5f | 1880ae99db197e976c87ba26eb23a20248e8ee51 | /cdn/include/tencentcloud/cdn/v20180606/model/DescribeCertDomainsResponse.h | 7514ec74fbee405be4a960c9f7b310816d9c8505 | [
"Apache-2.0"
] | permissive | caogenwang/tencentcloud-sdk-cpp | 84869793b5eb9811bb1eb46ed03d4dfa7ce6d94d | 6e18ee6622697a1c60a20a509415b0ddb8bdeb75 | refs/heads/master | 2023-08-23T12:37:30.305972 | 2021-11-08T01:18:30 | 2021-11-08T01:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,426 | h | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 TENCENTCLOUD_CDN_V20180606_MODEL_DESCRIBECERTDOMAINSRESPONSE_H_
#define TENCENTCLOUD_CDN_V20180606_MODEL_DESCRIBECERTDOMAINSRESPONSE_H_
#include <string>
#include <vector>
#include <map>
#include <tencentcloud/core/AbstractModel.h>
namespace TencentCloud
{
namespace Cdn
{
namespace V20180606
{
namespace Model
{
/**
* DescribeCertDomains返回参数结构体
*/
class DescribeCertDomainsResponse : public AbstractModel
{
public:
DescribeCertDomainsResponse();
~DescribeCertDomainsResponse() = default;
CoreInternalOutcome Deserialize(const std::string &payload);
std::string ToJsonString() const;
/**
* 获取已接入CDN的域名列表
注意:此字段可能返回 null,表示取不到有效值。
* @return Domains 已接入CDN的域名列表
注意:此字段可能返回 null,表示取不到有效值。
*/
std::vector<std::string> GetDomains() const;
/**
* 判断参数 Domains 是否已赋值
* @return Domains 是否已赋值
*/
bool DomainsHasBeenSet() const;
/**
* 获取已配置证书的CDN域名列表
注意:此字段可能返回 null,表示取不到有效值。
* @return CertifiedDomains 已配置证书的CDN域名列表
注意:此字段可能返回 null,表示取不到有效值。
*/
std::vector<std::string> GetCertifiedDomains() const;
/**
* 判断参数 CertifiedDomains 是否已赋值
* @return CertifiedDomains 是否已赋值
*/
bool CertifiedDomainsHasBeenSet() const;
private:
/**
* 已接入CDN的域名列表
注意:此字段可能返回 null,表示取不到有效值。
*/
std::vector<std::string> m_domains;
bool m_domainsHasBeenSet;
/**
* 已配置证书的CDN域名列表
注意:此字段可能返回 null,表示取不到有效值。
*/
std::vector<std::string> m_certifiedDomains;
bool m_certifiedDomainsHasBeenSet;
};
}
}
}
}
#endif // !TENCENTCLOUD_CDN_V20180606_MODEL_DESCRIBECERTDOMAINSRESPONSE_H_
| [
"tencentcloudapi@tenent.com"
] | tencentcloudapi@tenent.com |
2d95416e269ec6663308ac46723ba73acb4d0678 | 0601dc2f7cab6a83cac21de08f29d59284b0c532 | /d04/ex03/MateriaSource.hpp | 9978b2b6b8ff57a86b56115cbbe87f6c5bad5a89 | [] | no_license | hauh/piscine-cpp | ed06d7a8f1080d057830db7f165a2991a7da90a7 | 2df5a0ce7c07afcde66fc753a3bec52c51d5b2c0 | refs/heads/master | 2020-09-07T13:48:29.224174 | 2019-11-26T21:32:57 | 2019-11-26T21:32:57 | 220,799,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,372 | hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* MateriaSource.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: smorty <smorty@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/23 20:38:29 by smorty #+# #+# */
/* Updated: 2019/11/23 20:55:35 by smorty ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MATERIASOURCE_HPP
# define MATERIASOURCE_HPP
# include "IMateriaSource.hpp"
class MateriaSource : public IMateriaSource
{
private:
AMateria *_known[4];
public:
MateriaSource();
MateriaSource(MateriaSource const &);
~MateriaSource();
MateriaSource &operator=(MateriaSource const &);
virtual void learnMateria(AMateria *);
virtual AMateria* createMateria(std::string const & type);
private:
void clearKnown();
void copyKnown(AMateria * const *);
};
#endif
| [
"hauh@ya.ru"
] | hauh@ya.ru |
c96dc63d5535a2d1069f62b809b148b679edf48b | 0b420fa95cacf3b056ce94a0781021e1087d5163 | /include/Customer.h | 4b8d068c0d0440cd154f22db32a06c7f6ebc155d | [] | no_license | katty-86/simple_db | 9422af0d27e5efc054170647e1a9a4d8028765b6 | 6cac522989704e870f0cec3b4a2031f294068bd4 | refs/heads/master | 2021-01-10T09:40:25.493515 | 2015-12-09T13:58:23 | 2015-12-09T13:58:23 | 47,608,587 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,060 | h | /*
* Customer.h
*
* Created on: Dec 7, 2015
* Author: kaky
*/
#include <iostream>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#ifndef SRC_CUSTOMER_H_
#define SRC_CUSTOMER_H_
class Customer {
int id;
std::string name;
std::string surname;
int age;
float purchase_amount;
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive & ar, const unsigned int version) {
ar & id;
ar & name;
ar & surname;
ar & age;
ar & purchase_amount;
}
friend std::ostream & operator<<(std::ostream &os, const Customer &cust);
public:
Customer();
Customer( int i, std::string n, std::string s, int a, float p);
~Customer();
std::string getName() const ;
void setName(std::string name);
std::string getSurname() const ;
void setSurname(std::string name);
int getAge() const ;
void setAge(int a);
float getPurchase_amount() const;
void setPurchase_amount(float pp);
long getId() const ;
bool operator==( const Customer &cust);
};
#endif /* SRC_CUSTOMER_H_ */
| [
"kasia@test.pl"
] | kasia@test.pl |
131b6b6be376b21f139ce4d4914b5f28e1c644cd | 573b7f2b79b6fb8b21b40985f7639bc003b60f7e | /SDK/BP_Deployable_TM62Mine_parameters.h | 880b2ff1c0ca296e654af4c16dbe60ebc37c41d1 | [] | no_license | AlexzDK/SquadSDK2021 | 8d4c29486922fed3ba8451680d823a04a7b7fc44 | cdce732ad4713b6d7f668f8b9c39e160035efb34 | refs/heads/main | 2023-02-21T02:52:15.634663 | 2021-01-23T23:28:57 | 2021-01-23T23:28:57 | 332,328,796 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,776 | h | #pragma once
// Name: Squad, Version: 13-01-2021
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Parameters
//---------------------------------------------------------------------------
// Function BP_Deployable_TM62Mine.BP_Deployable_TM62Mine_C.BndEvt__Sphere_K2Node_ComponentBoundEvent_0_ComponentBeginOverlapSignature__DelegateSignature
struct ABP_Deployable_TM62Mine_C_BndEvt__Sphere_K2Node_ComponentBoundEvent_0_ComponentBeginOverlapSignature__DelegateSignature_Params
{
class UPrimitiveComponent* OverlappedComponent; // (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, InstancedReference, IsPlainOldData, NoDestructor, HasGetValueTypeHash)
class AActor* OtherActor; // (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash)
class UPrimitiveComponent* OtherComp; // (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, InstancedReference, IsPlainOldData, NoDestructor, HasGetValueTypeHash)
int OtherBodyIndex; // (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash)
bool bFromSweep; // (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor)
struct FHitResult SweepResult; // (ConstParm, BlueprintVisible, BlueprintReadOnly, Parm, OutParm, ReferenceParm, IsPlainOldData, NoDestructor, ContainsInstancedReference)
};
// Function BP_Deployable_TM62Mine.BP_Deployable_TM62Mine_C.OnDestroyEvent
struct ABP_Deployable_TM62Mine_C_OnDestroyEvent_Params
{
};
// Function BP_Deployable_TM62Mine.BP_Deployable_TM62Mine_C.RemovedFromPlayersPlacedList
struct ABP_Deployable_TM62Mine_C_RemovedFromPlayersPlacedList_Params
{
};
// Function BP_Deployable_TM62Mine.BP_Deployable_TM62Mine_C.ExecuteUbergraph_BP_Deployable_TM62Mine
struct ABP_Deployable_TM62Mine_C_ExecuteUbergraph_BP_Deployable_TM62Mine_Params
{
int EntryPoint; // (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash)
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"39485681+AlexzDK@users.noreply.github.com"
] | 39485681+AlexzDK@users.noreply.github.com |
09b8663a6d2289ae60e30689c845f8771f2dcda9 | f50073efa52f136df19f4fdc58a33633da847c08 | /Ams_Win_New/FRM_FIND_DB_POS2.cpp | 7881a014c0433e49f4d434c27769bd48b3b53ca8 | [] | no_license | pavelaltman/ams_src | 3d927a589c0fe216989b794b488ed0edac74d65d | 46b400ca1f70975c520d4ff3c852e6ab3b7d8235 | refs/heads/master | 2020-06-01T05:41:03.427063 | 2015-04-25T13:11:21 | 2015-04-25T13:11:21 | 34,567,690 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 9,769 | cpp | //---------------------------------------------------------------------------
#include "AMS_HDR.H"
#pragma hdrstop
#include "FRM_FIND_DB_POS2.h"
#include "DAT_MOD.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "AmsInpCond"
#pragma resource "*.dfm"
TFrmFindDbPos *FrmFindDbPos;
//---------------------------------------------------------------------------
__fastcall TFrmFindDbPos::TFrmFindDbPos(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
bool TFrmFindDbPos::FindDbPos()
{
//
bool Res = false;
if (ShowModal()> 0) {
Res = true;
AnsiString s="TEdit";
if (s==((TEdit*)ActiveControl)->ClassName()) {
((TEdit*)ActiveControl)->SelStart=0;
((TEdit*)ActiveControl)->SelLength=((TEdit*)ActiveControl)->Text.Length();
}
}
return Res;
/*
if (FindNext)
{
if (SqlFormed)
{
if (!OQ->Eof)
{
ResCatId = OQ->FieldAsInteger(0);
ResArt = OQ->FieldAsString(1);
ResVer = OQ->FieldAsInteger(2);
OQ->Next();
Res = true;
}
else
{
if (AskMessage("Поиск завершен. Начинать заново?")== ID_YES)
{
ExecSQL(OQ,"Поиск позиции БД");
Res = FindDbPos(true,ResCatId,ResArt,ResVer);
}
}
}
}
else
{
if (ShowModal()==1)
{
FormSqlQuery(AddWhere);
ExecSQL(OQ, "Поиск позиции БД");
Res = FindDbPos(true,ResCatId,ResArt,ResVer);
}
}
return Res; */
}
//---------------------------------------------------------------------------
void TFrmFindDbPos::Prepare(TFldsDescr* FldsDescr_, const AnsiString& DbName_)
{
DbName = DbName_;
FldsDescr = FldsDescr_;
SFldCondToFldOpt FO;
for (unsigned int i =0; i< IC.size(); i++)
{
FO = IC[i];
delete FO.FCond;
}
IC.clear();
int X = 25;
int MaxLen = 0;
for (int i = 0 ; i< FldsDescr->Count(); i++)
{
int DO = (*FldsDescr)[i].DefOpt;
int DSO = (*FldsDescr)[i].DispOpt;
if ( (!(DO & Hidden) && !(DSO & Hidden)) ||
( (DO & Editable)&&(DSO & Editable)) )
{
FO.FOpt = &((*FldsDescr)[i]);
TAmsInpCond* ICC = new TAmsInpCond(this);
FO.FCond=ICC;
ICC->Parent = SBox;
ICC->Top =X;
ICC->SetFld(FO.FOpt->Alias, FO.FOpt->Type,FO.FOpt->Hint);
X+= ICC->Height;
ICC->Align=alTop;
if (ICC->GetPromptLen()>MaxLen)
MaxLen = ICC->GetPromptLen();
FO.FCond=ICC;
IC.push_back(FO);
}
}
FirstC = NULL;
TAmsInpCond* LastC = NULL;
for (unsigned int i = 0 ; i< IC.size();i++)
{
if (!i)
FirstC= IC[i].FCond;
else
{
IC[i-1].FCond->SetPost (IC[i].FCond);
IC[i].FCond->SetPred(IC[i-1].FCond);
}
LastC= IC[i].FCond;
IC[i].FCond->SetPromptLen(MaxLen);
}
if (FirstC && LastC)
{
//FirstC->SetPred (FirstC);
LastC->SetPost(BBOk);
}
Top = 50;
X+= 60;
if (X> (Screen->Height-100))
{
X=Screen->Height-100;
}
Height = X;
}
//---------------------------------------------------------------------------
bool TFrmFindDbPos::FormWhereCond (AnsiString& SqlWhere, DS_Q& D, bool FirstAnd)
{
bool FirstTime = !FirstAnd;
AnsiString S = "";
for (unsigned int i = 0; i<IC.size(); i++)
{
TAmsInpCond * ICC = IC[i].FCond;
if (ICC->GetStr()!="")
{
SFldOpt* FO = IC[i].FOpt;
if (FirstTime)
FirstTime = false;
else
S+=" AND ";
AnsiString Sign;
AnsiString CmpWhat = "CMP_WHAT"+IntToStr(i)+AddStr;
if (ICC->GetSign()=="~")
Sign = " LIKE :"+CmpWhat;
else
Sign = ICC->GetSign() +" :"+ CmpWhat;
switch (FO->Type)
{
case aftStr:
{
AnsiString StrVar =ICC->GetStr().UpperCase();
StrVar=ChangeUkrI(StrVar);
if (ICC->GetSign()=="~")
StrVar = "%"+StrVar+"%";
D.DeclVar(CmpWhat, StrVar);
S+= "UPPER("+FO->FullName+")"+Sign;
}
break;
case aftInt:
{
D.DeclVar(CmpWhat,ICC->GetInt());
}
break;
case aftSumma:
D.DeclVar(CmpWhat, ICC->GetSum());
break;
case aftDate:
D.DeclVar (CmpWhat, ICC->GetDate());
break;
}
if (FO->Type!= aftStr)
S+= FO->FullName+Sign;
}
}
SqlWhere += S;
return !FirstTime;
}
//---------------------------------------------------------------------------
bool TFrmFindDbPos::FormStrWhereCond (AnsiString& SqlWhere, bool FirstAnd)
{
bool FirstTime = !FirstAnd;
AnsiString S = "";
for (unsigned int i = 0; i<IC.size(); i++)
{
TAmsInpCond * ICC = IC[i].FCond;
if (ICC->GetStr()!="")
{
SFldOpt* FO = IC[i].FOpt;
if (FirstTime)
FirstTime = false;
else
S+=" AND ";
AnsiString Sign;
AnsiString StrVar =ICC->GetStr().UpperCase();
StrVar=ChangeUkrI(StrVar);
if (ICC->GetSign()=="~")
Sign = " LIKE ";
else
Sign = ICC->GetSign() +" ";
switch (FO->Type)
{
case aftStr:
{
AnsiString Res="";
char Str[2];
Str[1]=0;
for (int i = 1; i<= StrVar.Length();i++)
{
if (StrVar[i]=='\'')
{
Res+="''";
}
else
{
Str[0]=StrVar[i];
Res+=Str;
}
}
if (ICC->GetSign()=="~")
StrVar = "'%"+Res+"%'";
else
StrVar= "'"+Res+"'";
S+= "UPPER("+FO->FullName+")"+Sign+StrVar;
}
break;
case aftInt:
case aftBool:
{
int i=ICC->GetInt();
Sign+= IntToStr(i);
}
break;
case aftSumma:
{
AnsiString DD =FloatToStr(ICC->GetSum());
int i = DD.Pos(',');
if (i)
DD[i]='.';
Sign+=DD ;
}
break;
case aftDate:
Sign+="'"+ FormatDateTime ("dd.mm.yyyy",ICC->GetDate())+"'";
break;
}
if (FO->Type!= aftStr)
S+= FO->FullName+Sign;
}
}
SqlWhere += S;
return !FirstTime;
}
//---------------------------------------------------------------------------
void __fastcall TFrmFindDbPos::BBOkClick(TObject *Sender)
{
ModalResult = 1;
}
//---------------------------------------------------------------------------
void __fastcall TFrmFindDbPos::BBCancelClick(TObject *Sender)
{
ModalResult = -1;
}
//---------------------------------------------------------------------------
void __fastcall TFrmFindDbPos::FormActivate(TObject *Sender)
{
TopMostForm = this;
}
//---------------------------------------------------------------------------
int TFrmFindDbPos::SetFilter(void)
{
int Res = 0;
if (ShowModal()>0)
{
Res=1;
AnsiString s="TEdit";
if (s==((TEdit*)ActiveControl)->ClassName()) {
((TEdit*)ActiveControl)->SelStart=0;
((TEdit*)ActiveControl)->SelLength=((TEdit*)ActiveControl)->Text.Length();
}
}
return Res;
}
//---------------------------------------------------------------------------
AnsiString TFrmFindDbPos::GetDescr(void)
{
//
AnsiString S;
for (unsigned int i = 0; i< IC.size(); i++)
{
TAmsInpCond* ICC = IC[i].FCond;
if (ICC->GetStr()!="")
{
if (S!="") S+="; ";
SFldOpt * FO = IC[i].FOpt;
S+= FO->Alias+ ICC->GetSign()+ICC->GetStr();
}
}
return S;
}
//---------------------------------------------------------------------------
void __fastcall TFrmFindDbPos::ActInsAndExecExecute(TObject *Sender)
{
BBOkClick(this);
}
//---------------------------------------------------------------------------
void __fastcall TFrmFindDbPos::ActDelAllCondExecute(TObject *Sender)
{
for (unsigned int i = 0; i < IC.size(); i++)
{
TAmsInpCond* ICC = IC[i].FCond;
ICC->ClrCond();
}
}
//---------------------------------------------------------------------------
void __fastcall TFrmFindDbPos::FormShow(TObject *Sender)
{
if (FirstC)
{
ActiveControl=BBOk;
ActiveControl=FirstC;
FirstC= NULL;
}
}
//---------------------------------------------------------------------------
| [
"altmanpavel@gmail.com"
] | altmanpavel@gmail.com |
5738139439c99a207436aa9e278c70331e672b86 | e45e2fd53fb9da5877654e7dadef62a01ab2e658 | /source files/output.cpp | 196dfdf9e807cdc4c2ab43449e04dfe484f0b248 | [] | no_license | charlesyz/Tetris | 0ee8ab54eeb1a3153569ee972f1fa4381afacf47 | ad3ef1ee890e56ca2697fa7d79398ee2c84bdbed | refs/heads/master | 2021-09-07T02:05:07.513628 | 2018-01-23T21:41:19 | 2018-01-23T21:41:19 | 59,501,767 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,299 | cpp | // Charles Zhang ICS3U mrs Cullum June 13, 2016
// all functions to do with output, score, graphics, and sound
#include <stdio.h>
#include <allegro.h>
#include <stdlib.h>
#include "output.h"
#include "globals.h"
void outputGame(struct Tetromino hold, struct Tetromino next, int score, int lines, int level){
// reset bgrid
loadbmp(&bGrid, "bitmaps/game_grid.bmp");
// clear buffer
clear(buffer);
// blit background to buffer
blit(gameBackground, buffer, 0, 0, 0, 0, 400, 600);
// check elements of grid for colours
for (int i = 0; i < 20; i++) {
for (int j = 0; j < 10; j++) {
switch (grid[i][j]) {
// blit that colour block to the corresponding block in the grid
case 1:
blit(bCyan, bGrid, 0, 0, blockPos[i][j].py, blockPos[i][j].px, 16, 16);
break;
case 2:
blit(bYellow, bGrid, 0, 0, blockPos[i][j].py, blockPos[i][j].px, 16, 16);
break;
case 3:
blit(bPurple, bGrid, 0, 0, blockPos[i][j].py, blockPos[i][j].px, 16, 16);
break;
case 4:
blit(bGreen, bGrid, 0, 0, blockPos[i][j].py, blockPos[i][j].px, 16, 16);
break;
case 5:
blit(bRed, bGrid, 0, 0, blockPos[i][j].py, blockPos[i][j].px, 16, 16);
break;
case 6:
blit(bBlue, bGrid, 0, 0, blockPos[i][j].py, blockPos[i][j].px, 16, 16);
break;
case 7:
blit(bOrange, bGrid, 0, 0, blockPos[i][j].py, blockPos[i][j].px, 16, 16);
break;
}
}
}
// print next tetromino
switch (next.shape) {
// blit that colour block to the corresponding block in the grid
case 'l':
blit(lineTetromino, buffer, 0, 0, 260, 155, 64, 32);
break;
case 'L':
blit(lTetromino, buffer, 0, 0, 260, 155, 64, 32);
break;
case 'J':
blit(jTetromino, buffer, 0, 0, 260, 155, 64, 32);
break;
case 'O':
blit(oTetromino, buffer, 0, 0, 260, 155, 64, 32);
break;
case 'T':
blit(tTetromino, buffer, 0, 0, 260, 155, 64, 32);
break;
case 'S':
blit(sTetromino, buffer, 0, 0, 260, 155, 64, 32);
break;
case 'Z':
blit(zTetromino, buffer, 0, 0, 260, 155, 64, 32);
break;
}
// print hold tetromino
switch (hold.shape) {
// blit that colour block to the corresponding block in the grid
case 'l':
blit(lineTetromino, buffer, 0, 0, 260, 206, 64, 32);
break;
case 'L':
blit(lTetromino, buffer, 0, 0, 260, 206, 64, 32);
break;
case 'J':
blit(jTetromino, buffer, 0, 0, 260, 206, 64, 32);
break;
case 'O':
blit(oTetromino, buffer, 0, 0, 260, 206, 64, 32);
break;
case 'T':
blit(tTetromino, buffer, 0, 0, 260, 206, 64, 32);
break;
case 'S':
blit(sTetromino, buffer, 0, 0, 260, 206, 64, 32);
break;
case 'Z':
blit(zTetromino, buffer, 0, 0, 260, 206, 64, 32);
break;
}
// printing scores
textprintf_ex(buffer, font, 215, 280, makecol(0,0,0), -1, "%d", score);
textprintf_ex(buffer, font, 215, 335, makecol(0,0,0), -1, "%d", lines);
textprintf_ex(buffer, font, 215, 387, makecol(0,0,0), -1, "%d", level + 1);
textprintf_ex(buffer, font, 215, 443, makecol(0,0,0), -1, "%d", highScore(score));
// blit the grid to the buffer then the buffer to the screen
blit(bGrid, buffer, 0, 0, 35, 140, bGrid -> w, bGrid -> h);
blit(buffer, screen, 0, 0, 0, 0, 400, 600);
}
void initialiseBlockPos(){
int i;
int j;
// initialise matrix blocks
for (i = 0; i < 20; i++){
for (j = 0; j < 10; j++){
blockPos[i][j].px = i * 16;
blockPos[i][j].py = j * 16;
}
}
}
END_OF_FUNCTION(initialiseBlockPos)
void initialisebmps(){
// loading bmps
loadbmp(&bGrid, "bitmaps/game_grid.bmp");
loadbmp(&gameBackground, "bitmaps/game_interface.bmp");
loadbmp(&mainMenu, "bitmaps/main_menu.bmp");
loadbmp(&helpMenu, "bitmaps/help_menu.bmp");
loadbmp(&creditsMenu, "bitmaps/credits_menu.bmp");
loadbmp(&pauseMenu, "bitmaps/pause_menu.bmp");
loadbmp(&lost, "bitmaps/gameover.bmp");
loadbmp(&bRed, "bitmaps/red_block.bmp");
loadbmp(&bYellow, "bitmaps/yellow_block.bmp");
loadbmp(&bCyan, "bitmaps/cyan_block.bmp");
loadbmp(&bBlue, "bitmaps/blue_block.bmp");
loadbmp(&bPurple, "bitmaps/purple_block.bmp");
loadbmp(&bGreen, "bitmaps/green_block.bmp");
loadbmp(&bOrange, "bitmaps/orange_block.bmp");
loadbmp(&oTetromino, "bitmaps/o_tetromino.bmp");
loadbmp(&sTetromino, "bitmaps/s_tetromino.bmp");
loadbmp(&lineTetromino, "bitmaps/line_tetromino.bmp");
loadbmp(&tTetromino, "bitmaps/t_tetromino.bmp");
loadbmp(&zTetromino, "bitmaps/z_tetromino.bmp");
loadbmp(&jTetromino, "bitmaps/j_tetromino.bmp");
loadbmp(&lTetromino, "bitmaps/l_tetromino.bmp");
}
END_OF_FUNCTION(initialisebmps)
void initialisesamples(){
// load samples
loadsample(&sample_backgroundmusic, "sound/background.wav");
loadsample(&sample_complete, "sound/complete.wav");
loadsample(&sample_drop, "sound/drop.wav");
loadsample(&sample_fall, "sound/fall.wav");
loadsample(&sample_rotate, "sound/rotate.wav");
}
END_OF_FUNCTION(initialisesamples);
void destroysamples(){
// destroy samples
destroy_sample(sample_backgroundmusic);
destroy_sample(sample_complete);
destroy_sample(sample_drop);
destroy_sample(sample_fall);
destroy_sample(sample_rotate);
}
END_OF_FUNCTION(destroysamples)
void destroybmps(){
destroy_bitmap(bGrid);
destroy_bitmap(gameBackground);
destroy_bitmap(mainMenu);
destroy_bitmap(helpMenu);
destroy_bitmap(creditsMenu);
destroy_bitmap(pauseMenu);
destroy_bitmap(lost);
destroy_bitmap(bRed);
destroy_bitmap(bYellow);
destroy_bitmap(bCyan);
destroy_bitmap(bBlue);
destroy_bitmap(bPurple);
destroy_bitmap(bGreen);
destroy_bitmap(bOrange);
destroy_bitmap(oTetromino);
destroy_bitmap(sTetromino);
destroy_bitmap(lineTetromino);
destroy_bitmap(tTetromino);
destroy_bitmap(zTetromino);
destroy_bitmap(jTetromino);
destroy_bitmap(lTetromino);
}
END_OF_FUNCTION(destroybmps)
bool loadbmp(BITMAP **fptr, char const fileName[20]) {
*fptr = load_bitmap(fileName, NULL);
if (!*fptr) {
printf("Could not find %s\n", fileName);
allegro_message("Could not open file.");
return false;
}
return true;
}
END_OF_FUNCTION(loadbmp)
bool loadsample(SAMPLE **fptr, char const fileName[20]) {
*fptr = load_sample(fileName);
if (!*fptr) {
printf("Could not find %s\n", fileName);
allegro_message("Could not open file.");
return false;
}
return true;
}
END_OF_FUNCTION(loadbmp)
void scoreUpdate(int &lines, int &score, int &level, int numComplete){
int i = 0;
lines += numComplete;
if (lines % 5 == 0 && lines != 0 && level < 19){
level++;
}
switch(numComplete){
case 1:
score += 40*(level + 1);
break;
case 2:
score += 100*(level + 1);
break;
case 3:
score += 300*(level + 1);
break;
case 4:
score += 1200*(level + 1);
break;
}
}
END_OF_FUNCTION(score)
void speed(int &delay, int level){
delay = 80 - (4 * level);
}
END_OF_FUNCTION(speed)
int highScore(int score){
FILE *fptr;
int high;
fptr = fopen("highscore.txt", "r");
fscanf(fptr, "%d", &high);
// is the high score lower than the current score?
if (score > high){
high = score;
// close and reopen file
fclose(fptr);
fopen("highscore.txt", "w");
// write to file
fprintf(fptr, "%d", high);
}
if (high == 1){ // for some reason if the high score is 0 it sets it to 1.
high = 0;
}
// close file
fclose(fptr);
return high;
}
END_OF_FUNCTION(highScore)
| [
"czhan10@ocdsb.ca"
] | czhan10@ocdsb.ca |
5194b1b358f2945bdaa4395190092e744c2ff1fe | f8b56b711317fcaeb0fb606fb716f6e1fe5e75df | /Internal/SDK/BP_Sail_parameters.h | ecee20f2f4dcc278c5c0446244fa0d63c226a65b | [] | no_license | zanzo420/SoT-SDK-CG | a5bba7c49a98fee71f35ce69a92b6966742106b4 | 2284b0680dcb86207d197e0fab6a76e9db573a48 | refs/heads/main | 2023-06-18T09:20:47.505777 | 2021-07-13T12:35:51 | 2021-07-13T12:35:51 | 385,600,112 | 0 | 0 | null | 2021-07-13T12:42:45 | 2021-07-13T12:42:44 | null | UTF-8 | C++ | false | false | 997 | h | #pragma once
// Name: Sea of Thieves, Version: 2.2.0.2
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Parameters
//---------------------------------------------------------------------------
// Function BP_Sail.BP_Sail_C.Debug
struct ABP_Sail_C_Debug_Params
{
};
// Function BP_Sail.BP_Sail_C.Initialise
struct ABP_Sail_C_Initialise_Params
{
bool IsMainSail; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor)
float SailForceScalar; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor)
};
// Function BP_Sail.BP_Sail_C.UserConstructionScript
struct ABP_Sail_C_UserConstructionScript_Params
{
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"zp2kshield@gmail.com"
] | zp2kshield@gmail.com |
f0c0367a57282e1a41bc4ab2d4848d211f392de9 | b4b4b23ef01e3be225172c978720d7b2f0a178e7 | /pa6/dataserver.cpp | aaaa0055436a2a232770410228e1245641e10489 | [
"MIT"
] | permissive | AndruAllen/cpp_networking | a15fef9f0b16175918166b740fcd226d4450deb3 | 6af0a74990f55c182c8b43eb4574e10494b7e2e4 | refs/heads/master | 2021-10-08T03:25:56.094885 | 2018-12-07T08:10:26 | 2018-12-07T08:10:26 | 160,456,121 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,054 | cpp | #include <cassert>
#include <cstring>
#include <sstream>
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <pthread.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include "reqchannel.h"
using namespace std;
int nchannels = 0;
pthread_mutex_t newchannel_lock;
void* handle_process_loop(void* _channel);
void process_newchannel(RequestChannel* _channel) {
try{
nchannels ++;
string new_channel_name = "data" + to_string(nchannels) + "_";
_channel->cwrite(new_channel_name);
RequestChannel * data_channel = new RequestChannel(new_channel_name, RequestChannel::SERVER_SIDE);
pthread_t thread_id;
if (pthread_create(& thread_id, NULL, handle_process_loop, data_channel) < 0 ) {
execl("rmv", (char*) NULL);
EXITONERROR ("");
}
} catch(...){
execl("rmv", (char*) NULL);
}
}
void process_request(RequestChannel* _channel, string _request) {
if (_request.compare(0, 5, "hello") == 0) {
_channel->cwrite("hello to you too");
}
else if (_request.compare(0, 4, "data") == 0) {
usleep(1000 + (rand() % 5000));
_channel->cwrite(to_string(rand() % 100));
}
else if (_request.compare(0, 10, "newchannel") == 0) {
try{
process_newchannel(_channel);
} catch(...){
execl("rmv", (char*) NULL);
}
}
else {
_channel->cwrite("unknown request");
}
}
void* handle_process_loop (void* _channel) {
RequestChannel* channel = (RequestChannel *) _channel;
for(;;) {
string request = channel->cread();
if (request.compare("quit") == 0) {
break; // break out of the loop;
}
process_request(channel, request);
}
}
/*--------------------------------------------------------------------------*/
/* MAIN FUNCTION */
/*--------------------------------------------------------------------------*/
int main(int argc, char * argv[]) {
newchannel_lock = PTHREAD_MUTEX_INITIALIZER;
RequestChannel control_channel("control", RequestChannel::SERVER_SIDE);
try{
handle_process_loop (control_channel);
} catch(...){
execl("rmv", (char*) NULL);
}
}
| [
"yaboiandrew@Andrews-MacBook-Air-4.local"
] | yaboiandrew@Andrews-MacBook-Air-4.local |
37ae13ed035c86c88b02e4a19d4364b88a951988 | d0fb46aecc3b69983e7f6244331a81dff42d9595 | /slb/src/model/AddAccessControlListEntryRequest.cc | 6caba02069ebdcb838944385041f2a5b659d9f19 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-cpp-sdk | 3d8d051d44ad00753a429817dd03957614c0c66a | e862bd03c844bcb7ccaa90571bceaa2802c7f135 | refs/heads/master | 2023-08-29T11:54:00.525102 | 2023-08-29T03:32:48 | 2023-08-29T03:32:48 | 115,379,460 | 104 | 82 | NOASSERTION | 2023-09-14T06:13:33 | 2017-12-26T02:53:27 | C++ | UTF-8 | C++ | false | false | 3,657 | cc | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/slb/model/AddAccessControlListEntryRequest.h>
using AlibabaCloud::Slb::Model::AddAccessControlListEntryRequest;
AddAccessControlListEntryRequest::AddAccessControlListEntryRequest() :
RpcServiceRequest("slb", "2014-05-15", "AddAccessControlListEntry")
{
setMethod(HttpRequest::Method::Post);
}
AddAccessControlListEntryRequest::~AddAccessControlListEntryRequest()
{}
std::string AddAccessControlListEntryRequest::getAccess_key_id()const
{
return access_key_id_;
}
void AddAccessControlListEntryRequest::setAccess_key_id(const std::string& access_key_id)
{
access_key_id_ = access_key_id;
setParameter("Access_key_id", access_key_id);
}
long AddAccessControlListEntryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddAccessControlListEntryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddAccessControlListEntryRequest::getAclEntrys()const
{
return aclEntrys_;
}
void AddAccessControlListEntryRequest::setAclEntrys(const std::string& aclEntrys)
{
aclEntrys_ = aclEntrys;
setParameter("AclEntrys", aclEntrys);
}
std::string AddAccessControlListEntryRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddAccessControlListEntryRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddAccessControlListEntryRequest::getRegionId()const
{
return regionId_;
}
void AddAccessControlListEntryRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string AddAccessControlListEntryRequest::getAclId()const
{
return aclId_;
}
void AddAccessControlListEntryRequest::setAclId(const std::string& aclId)
{
aclId_ = aclId;
setParameter("AclId", aclId);
}
std::string AddAccessControlListEntryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddAccessControlListEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddAccessControlListEntryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddAccessControlListEntryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AddAccessControlListEntryRequest::getOwnerId()const
{
return ownerId_;
}
void AddAccessControlListEntryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddAccessControlListEntryRequest::getTags()const
{
return tags_;
}
void AddAccessControlListEntryRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
021e8dca6e47596b7a81de6273acb96c9e291774 | 57acacf6fe4ba9c36135c2633e91edf6f82ad59b | /类的练习(继承,多态)/类的练习(继承,多态)/Test.cpp | a74d7972b34c5f89aa19abe94dd26edac7636ccf | [] | no_license | BabyNoCry/C- | 466d0712b59590de85358a8a51efe2db4029f53b | 68c318666061448fb721c6ff38499f9e8dba489a | refs/heads/master | 2020-04-16T18:21:39.257570 | 2019-11-05T12:58:34 | 2019-11-05T12:58:34 | 165,816,268 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,080 | cpp |
#include<iostream>
using namespace std;
#include<windows.h>
//虚表
class A
{
public:
virtual void print()
{
cout << "ha ha" << endl;
}
};
class B :public A
{
public:
virtual void print()
{
cout << "he he" << endl;
}
};
void Func(A* p) //调用对象的引用
{
p->print(); //调用的是虚函数
}
int main()
{
A a;
B b;
Func(&a);
Func(&b);
system("pause");
return 0;
}
//
//class A
//{
//public:
// virtual void print() = 0;
//};
//class B :public A
//{
//public:
// virtual void print()
// {
// cout << "I am B" << endl;
// }
//};
//class C :public A
//{
//public:
// virtual void print()
// {
// cout << "I am C" << endl;
// }
//};
//void Test()
//{
// A* PB = new B;
// PB->print();
// A* PC = new C;
// PC->print();
//}
//int main()
//{
// Test();
// system("pause");
// return 0;
//}
//关键字final 验证
//class A
//{
//public:
// virtual void print() final
// {
// cout << "haha" << endl;
// }
//};
//class B :public A
//{
//public:
// virtual void print()
// {
// cout << "hehe" << endl;
// }
//};
//int main()
//{
// A a;
// B b;
// a.print();
// b.print();
// system("pause");
// return 0;
//}
//关键字overirrde 验证
//class A
//{
//public:
// virtual void print()
// {
// cout << "haha" << endl;
// }
//};
//
////overirrde 修饰派生类虚函数强制完成重写,如果没有重写会编译报错。
//class B: public A
//{
//public:
// virtual void pp() override
// {
// cout << "haha" << endl;
// }
//};
//int main()
//{
// A a;
// B b;
// a.print();
// b.print();
// system("pause");
//}
//虚函数表
//class Base
//{
//public:
// virtual void Func1()
// {
// cout << "Base::Func1()" << endl;
// }
//
// virtual void Func2()
// {
// cout << "Base::Func2()" << endl;
// }
//
// void Func3()
// {
// cout << "Base::Func3()" << endl;
// }
//
//private:
// int _b = 1;
//};
//
//class Derive :public Base
//{
//public:
// virtual void Func1()
// {
// cout << "Derive::Func1()" << endl;
// }
//private:
// int _d = 2;
//};
//int main()
//{
// Base b;
// Derive d;
//
// system("pause");
// return 0;
//}
| [
"1633007250@qq.com"
] | 1633007250@qq.com |
b99b74e4a7b04b33c537ae83e25142540ad73507 | 0ef4f71c8ff2f233945ee4effdba893fed3b8fad | /misc_microsoft_gamedev_source_code/misc_microsoft_gamedev_source_code/extlib/havok/Source/Common/Base/Container/Queue/hkQueue.h | 11da6e71aea5ab10c0a17370a72de7c91087b704 | [] | no_license | sgzwiz/misc_microsoft_gamedev_source_code | 1f482b2259f413241392832effcbc64c4c3d79ca | 39c200a1642102b484736b51892033cc575b341a | refs/heads/master | 2022-12-22T11:03:53.930024 | 2020-09-28T20:39:56 | 2020-09-28T20:39:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,171 | h | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent.This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Level 2 and Level 3 source code contains trade secrets of Havok. Havok Software (C) Copyright 1999-2007 Telekinesys Research Limited t/a Havok. All Rights Reserved. Use of this software is subject to the terms of an end user license agreement.
*
*/
#ifndef HKBASE_QUEUE_H
#define HKBASE_QUEUE_H
#if defined (HK_PLATFORM_SPU)
# include <Common/Base/Spu/Dma/Manager/hkSpuDmaManager.h>
#endif
/// A FIFO circular queue
template <typename T>
class hkQueue
{
public:
HK_DECLARE_NONVIRTUAL_CLASS_ALLOCATOR( HK_MEMORY_CLASS_BASE_CLASS, hkQueue );
#if !defined (HK_PLATFORM_SPU)
/// Creates a zero length queue.
hkQueue();
/// Creates an queue of capacity n. All elements are uninitialized.
hkQueue( int capacity );
/// Deallocates queue memory.
~hkQueue();
// Allocates more internal queue storage
inline void setCapacity(int n);
#endif
/// Pushes a new element to the back of the queue and expands the storage if necessary.
inline void enqueue( const T& element );
/// Pushes a new element to the front of the queue and expands the storage if necessary.
inline void enqueueInFront( const T& element );
/// Fills in the data with the element at the front of the queue
inline void dequeue( T& data );
/// Clears the queue
inline void clear();
/// Are there any elements left on the queue?
inline hkBool isEmpty() const;
/// How many elements are on the queue?
inline int getSize() const;
/// Returns the total capacity of the queue storage
inline int getCapacity() const;
/// Set the initial capacity for the queue.
/// This must be called before any elements have been added to the queue.
//inline void setInitialCapacity( int capacity );
private:
#if !defined (HK_PLATFORM_SPU)
inline void increaseCapacity();
// frees the internal storage
void releaseMemory();
#endif
// queue memory management
T* m_data;
int m_capacity;
// queue FIFO management
int m_head;
int m_tail;
int m_elementsInUse;
};
#if defined (HK_PLATFORM_SPU)
# include <Common/Base/Container/Queue/hkQueueSpu.inl>
#else
# include <Common/Base/Container/Queue/hkQueue.inl>
#endif
#endif // HKBASE_QUEUE_H
/*
* Havok SDK - PUBLIC RELEASE, BUILD(#20070919)
*
* Confidential Information of Havok. (C) Copyright 1999-2007
* Telekinesys Research Limited t/a Havok. All Rights Reserved. The Havok
* Logo, and the Havok buzzsaw logo are trademarks of Havok. Title, ownership
* rights, and intellectual property rights in the Havok software remain in
* Havok and/or its suppliers.
*
* Use of this software for evaluation purposes is subject to and indicates
* acceptance of the End User licence Agreement for this product. A copy of
* the license is included with this software and is also available from salesteam@havok.com.
*
*/
| [
"benjamin.barratt@icloud.com"
] | benjamin.barratt@icloud.com |
84a9e9e30ca5ad9515c19f9c70879ef87bd13fed | 58b141228a7caf70239b0e5c1df4267458432689 | /SOLVER/src/core/point/mass/Mass3D.cpp | fd312e665052b13b525b59157fb2e8af7baf5b01 | [
"MIT"
] | permissive | syzeng-duduxi/AxiSEM-3D | 2185facfd8347a50a283214b16703549f87d1575 | 043cabbb9661787222fcdb0ea5ba1e25467481f7 | refs/heads/master | 2023-04-13T15:21:15.702818 | 2021-04-05T14:13:56 | 2021-04-05T14:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,731 | cpp | //
// Mass3D.cpp
// AxiSEM3D
//
// Created by Kuangdai Leng on 1/25/19.
// Copyright © 2019 Kuangdai Leng. All rights reserved.
//
// 3D mass
#include "Mass3D.hpp"
#include "fft.hpp"
// check compatibility
void Mass3D::checkCompatibility(int nr, bool solid) const {
// check size
if (mInvMass.rows() != nr) {
throw std::runtime_error("Mass3D::checkCompatibility || "
"Incompatible sizes.");
}
// workspace
if (solid) {
// expand workspace if needed
if (sStiffR3.rows() < nr) {
sStiffR3.resize(nr, 3);
}
// report request to FFT
fft::gFFT_3.addNR(nr);
} else {
// expand workspace if needed
if (sStiffR1.rows() < nr) {
sStiffR1.resize(nr);
}
// report request to FFT
fft::gFFT_1.addNR(nr);
}
}
// compute accel in-place for fluid
void Mass3D::computeAccel(eigen::CColX &stiff1) const {
// constants
int nr = (int)mInvMass.rows();
// FFT: Fourier => cardinal
fft::gFFT_1.computeC2R(stiff1, sStiffR1, nr);
// divide by mass in cardinal space
sStiffR1.topRows(nr).array() *= mInvMass.array();
// FFT: cardinal => Fourier
fft::gFFT_1.computeR2C(sStiffR1, stiff1, nr);
}
// compute accel in-place for solid
void Mass3D::computeAccel(eigen::CMatX3 &stiff3) const {
// constants
int nr = (int)mInvMass.rows();
// FFT: Fourier => cardinal
fft::gFFT_3.computeC2R(stiff3, sStiffR3, nr);
// divide by mass in cardinal space
sStiffR3.topRows(nr).applyOnTheLeft(mInvMass.asDiagonal());
// FFT: cardinal => Fourier
fft::gFFT_3.computeR2C(sStiffR3, stiff3, nr);
}
| [
"kuangdai.leng@earth.ox.ac.uk"
] | kuangdai.leng@earth.ox.ac.uk |
0bc4e3604fc06ce79fa6e21f9713f7a57562edd7 | f687d34c3c59d3c99ce71ba33841aaea2b36674a | /src/tr.cpp | e61b43800964cb44565c8b8fd9f7fcb1bf6e9b1f | [] | no_license | henningkoehlernz/c-3po | 5088d40cd5ceb6fd8e79354b4d45016ad3465657 | 2d4422239adc1d1e37c6818b8440457b8f6bb043 | refs/heads/master | 2023-05-04T17:04:05.145398 | 2021-05-20T01:48:59 | 2021-05-20T01:48:59 | 345,464,803 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,540 | cpp | #include "tr.h"
using namespace std;
void get_po_tree(const DiGraph &g, vector<vector<NodeID>> &po_tree, vector<NodeID> &parents)
{
const size_t V = g.size();
vector<uint32_t> desc_estimate(V);
po_tree.clear(); po_tree.resize(V + 1); // global root in last element
parents.clear(); parents.resize(V + 1, V);
// compute descendants estimates in reverse order
NodeID node = g.size();
while ( node-- > 0 )
{
const LazyList &children = g.forward.neighbors[node];
if ( children.size() > 0 )
{
NodeID max_node = children[0].node;
for ( auto child = children.begin() + 1; child != children.end(); ++child )
if ( desc_estimate[child->node] > desc_estimate[max_node] )
max_node = child->node;
desc_estimate[node] = children.size() + desc_estimate[max_node];
po_tree[max_node].push_back(node);
parents[node] = max_node;
}
else
po_tree[g.size()].push_back(node);
}
}
vector<uint32_t> get_dt_order(const vector<vector<NodeID>> &tree)
{
const size_t V = tree.size() - 1;
vector<uint32_t> dt_order(V + 1, 0);
vector<NodeID> stack;
for ( auto it = tree[V].rbegin(); it != tree[V].rend(); ++it )
stack.push_back(*it);
uint32_t counter = 1;
while ( !stack.empty() )
{
NodeID node = stack.back(); stack.pop_back();
dt_order[node] = counter++;
for ( auto it = tree[node].rbegin(); it != tree[node].rend(); ++it )
stack.push_back(*it);
}
return dt_order;
}
// find transitive edges based on buTR algorithm
// see Algorithm 4 in "Accerating reachability query processing based on DAG reduction"
vector<pair<NodeID,NodeID>> get_transitive(const DiGraph &g)
{
vector<vector<NodeID>> po_tree;
vector<NodeID> po_parents;
get_po_tree(g, po_tree, po_parents);
vector<uint32_t> dt_order = get_dt_order(po_tree);
DEBUG("po_tree=" << po_tree);
DEBUG("dt_order" << dt_order);
const size_t V = g.size();
vector<uint32_t> flag(V, UINT32_MAX);
vector<NodeID> po_stack = po_tree[V];
vector<NodeID> dfs_stack;
vector<pair<NodeID,NodeID>> transitive_edges;
while ( !po_stack.empty() )
{
NodeID root = po_stack.back(); po_stack.pop_back();
NodeID po_parent = po_parents[root];
DEBUG("root=" << root << ", parent=" << po_parent << ", flag=" << flag);
const uint32_t root_order = dt_order[root];
// collect grand children of root, except those in max subtree
dfs_stack.clear();
for ( Neighbor child : g.forward.neighbors[root] )
if ( child.node != po_parent )
{
for ( Neighbor grand_child : g.forward.neighbors[child.node] )
dfs_stack.push_back(grand_child.node);
}
// DFS over g to mark grand children of root (those in max subtree are already marked)
while ( !dfs_stack.empty() )
{
NodeID node = dfs_stack.back(); dfs_stack.pop_back();
// ignore nodes already visited or in subtree
if ( flag[node] > root_order )
{
flag[node] = root_order;
for ( Neighbor child : g.forward.neighbors[node] )
dfs_stack.push_back(child.node);
}
}
// mark children - those already marked must be grand children
for ( Neighbor child : g.forward.neighbors[root] )
{
if ( flag[child.node] <= root_order )
{
transitive_edges.push_back(make_pair(root, child.node));
DEBUG("found transitive edge: " << root << " -> " << child.node);
}
else
flag[child.node] = root_order;
}
// continue DFS on po-tree
for ( NodeID po_child : po_tree[root] )
po_stack.push_back(po_child);
}
return transitive_edges;
}
size_t remove_transitive(DiGraph &g)
{
vector<vector<NodeID>> transitive(g.size());
for ( pair<NodeID,NodeID> edge : get_transitive(g) )
{
transitive[edge.first].push_back(edge.second);
transitive[edge.second].push_back(edge.first);
}
// remove transitive neighbors
size_t erased = 0;
for ( NodeID node = 0; node < g.size(); node++ )
{
vector<NodeID> &t = transitive[node];
sort(t.begin(), t.end());
erased += g.forward.neighbors[node].erase_all(t);
erased += g.backward.neighbors[node].erase_all(t);
}
return erased / 2;
}
// construct 2D-index for estimate tree
vector<pair<uint32_t,uint32_t>> index2D(const PartialGraph &g, const PartialGraph &rg)
{
const size_t V = g.neighbors.size();
vector<pair<uint32_t,uint32_t>> index(V);
vector<NodeID> stack;
for ( NodeID node = 0; node < V; ++node )
if ( rg.neighbors[node].size() == 0 )
stack.push_back(node);
DEBUG("index2D: stack=" << stack);
uint32_t c_first = 1, c_second = V;
while ( !stack.empty() )
{
NodeID node = stack.back();
// are we back-tracking?
if ( index[node].first )
{
index[node].second = c_second--;
stack.pop_back();
}
else
{
index[node].first = c_first++;
for ( Neighbor child : g.neighbors[node] )
{
const LazyList &rn = rg.neighbors[child.node];
// check if child in tree, not just in g
if ( rn.back().node == node )
stack.push_back(child.node);
}
}
}
return index;
}
// find transitive edges that cause double-counting for anc/desc estimates
vector<pair<NodeID,NodeID>> get_tree_transitive(const PartialGraph &g, const vector<pair<uint32_t,uint32_t>> &index)
{
struct IndexedNode
{
pair<uint32_t,uint32_t> label2D;
NodeID node;
IndexedNode(pair<uint32_t,uint32_t> label2D, NodeID node) : label2D(label2D), node(node) {}
bool operator<(const IndexedNode &other) const { return label2D.first < other.label2D.first; }
};
vector<IndexedNode> indexed_neighbors;
// compare neighbors of each node w.r.t. tree-reachability
vector<pair<NodeID,NodeID>> edges;
const size_t V = g.neighbors.size();
for ( NodeID node = 0; node < V; ++node )
{
if ( g.neighbors[node].size() > 1 )
{
for ( Neighbor neighbor : g.neighbors[node] )
indexed_neighbors.push_back(IndexedNode(index[neighbor.node], neighbor.node));
sort(indexed_neighbors.begin(), indexed_neighbors.end());
uint32_t min_second = indexed_neighbors[0].label2D.second;
for ( size_t i = 1; i < indexed_neighbors.size(); ++i )
// sorted by first label => only need to compare second
if ( min_second < indexed_neighbors[i].label2D.second )
edges.push_back(make_pair(node, indexed_neighbors[i].node));
else
min_second = indexed_neighbors[i].label2D.second;
indexed_neighbors.clear();
}
}
return edges;
}
size_t remove_tree_transitive(DiGraph &g)
{
vector<pair<uint32_t,uint32_t>> anc_index = index2D(g.forward, g.backward);
vector<pair<uint32_t,uint32_t>> desc_index = index2D(g.backward, g.forward);
DEBUG("anc_index=" << anc_index);
DEBUG("desc_index=" << desc_index);
// organize transitive edges by node for effient bulk removal
vector<vector<NodeID>> transitive(g.size());
for ( pair<NodeID,NodeID> edge : get_tree_transitive(g.forward, anc_index) )
{
transitive[edge.first].push_back(edge.second);
transitive[edge.second].push_back(edge.first);
DEBUG("found forward t-edge " << edge.first << " -> " << edge.second);
}
for ( pair<NodeID,NodeID> edge : get_tree_transitive(g.backward, desc_index) )
{
transitive[edge.first].push_back(edge.second);
transitive[edge.second].push_back(edge.first);
DEBUG("found backward t-edge " << edge.first << " -> " << edge.second);
}
// remove transitive neighbors
size_t erased = 0;
for ( NodeID node = 0; node < g.size(); node++ )
{
vector<NodeID> &t = transitive[node];
sort(t.begin(), t.end());
erased += g.forward.neighbors[node].erase_all(t);
erased += g.backward.neighbors[node].erase_all(t);
}
return erased / 2;
}
| [
"henning.koehler.nz@gmail.com"
] | henning.koehler.nz@gmail.com |
59c0509b8475a3d622fac9bf4b7f9d9b015d3f42 | e2cdc1bb22e912564bd5e734643dc08dfb73e37b | /core/tracer/tracer_2K8v4_r8.cpp | 422b14d339d87845344e490179b1cdd047215a54 | [
"MIT"
] | permissive | VectorChief/QuadRay-engine | e15c8cf152c6f115130852235455512df39578e1 | f9f04628fc9153919a1842ac18c71259805fff72 | refs/heads/master | 2023-07-26T04:10:00.110545 | 2023-06-07T20:22:15 | 2023-06-14T16:39:08 | 11,184,677 | 28 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 2,202 | cpp | /******************************************************************************/
/* Copyright (c) 2013-2023 VectorChief (at github, bitbucket, sourceforge) */
/* Distributed under the MIT software license, see the accompanying */
/* file COPYING or http://www.opensource.org/licenses/mit-license.php */
/******************************************************************************/
#ifndef RT_REGS
#define RT_REGS 16 /* define maximum of available SIMD registers for code */
#endif /* RT_REGS */
#undef RT_SIMD
#define RT_SIMD 2048 /* map vector-length-agnostic SIMD subsets to 2K8-bit */
#define RT_SIMD_CODE /* enable SIMD instruction definitions */
#if (defined RT_2K8_R8) && (RT_2K8_R8 & 4)
#define RT_RENDER_CODE /* enable contents of render0 routine */
#endif /* RT_2K8_R8 */
/*
* Determine SIMD total-quads for backend structs (maximal for a given build).
*/
#if (defined RT_MAXQ)
/* RT_MAXQ is already defined outside */
#elif (RT_2K8_R8)
#define RT_MAXQ 16
#elif (RT_1K4 || RT_1K4_R8)
#define RT_MAXQ 8
#elif (RT_512 || RT_512_R8)
#define RT_MAXQ 4
#elif (RT_256 || RT_256_R8)
#define RT_MAXQ 2
#elif (RT_128)
#define RT_MAXQ 1
#endif /* RT_MAXQ: 16, 8, 4, 2, 1 */
#undef RT_2K8_R8
#undef RT_1K4
#undef RT_1K4_R8
#undef RT_512
#undef RT_512_R8
#undef RT_256
#undef RT_256_R8
#undef RT_128
#define RT_2K8_R8 4
#include "tracer.h"
#include "format.h"
#undef RT_FEAT_PT
#undef RT_FEAT_BUFFERS
#define RT_FEAT_PT 0
#define RT_FEAT_BUFFERS 0
#undef STORE_SIMD
#undef PAINT_FRAG
#undef GET_RANDOM_I
namespace rt_simd_2K8v4_r8
{
#include "tracer.cpp"
}
#undef RT_FEAT_PT
#undef RT_FEAT_BUFFERS
#define RT_FEAT_PT 1
#define RT_FEAT_BUFFERS 1
#undef STORE_SIMD
#undef PAINT_FRAG
#undef GET_RANDOM_I
namespace pt_simd_2K8v4_r8
{
#include "tracer.cpp"
}
/******************************************************************************/
/******************************************************************************/
/******************************************************************************/
| [
"vectorchiefrocks@gmail.com"
] | vectorchiefrocks@gmail.com |
40224c92b46bbb5db713913a17e5a8ee877ba96a | 94dff47dc6c32634a112a50cb07a2792874e920e | /PortControl.cpp | 53c1fd58b4a389e20abeaef5eece3e28f6e91c7c | [] | no_license | den386/BKN | b3a32560dc3b3685dcf24113dc79ddebdea8f96b | db006ba4aeaa296dea33dafc45c94d03038a67d7 | refs/heads/master | 2020-05-19T10:11:24.513914 | 2014-09-24T08:38:01 | 2014-09-24T08:38:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,321 | cpp | #include "PortControl.h"
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include "ui_mainwindow.h"
#include <QMessageBox>
#include <QTimer>
#include <QtTest/QTest>
#include <QBitArray>
#define RPPP_PACKET_SIMBOL (0x7E)
// Символ замены
#define RPPP_REPLACE_SIMBOL (0x7D)
// Максимальная длина служебных данных пакета (начало + crc16 (7E 7E) + конец)
//#define MaxServiceDataSize (1 + 2 * 2 + 1)
//// Максимальный размер данных в пакете
//#define MaxDataSize ((0xFFFF - MaxServiceDataSize) / 2);
// Возвращает максимальный размер пакета в байтах для передачи массива
// данных _array
//#define RPPP_max_packet_size(_array) \
// (RPPP_MAX_SERVICE_DATA_SIZE + 2 * _countof(_array))
PortControl::PortControl(QObject *parent)
: QObject(parent)
, m_port(nullptr)
{
////
m_port=new QSerialPort(this);
connect(m_port,SIGNAL(readyRead()),this,SLOT(read()));
///лджkl
}
void PortControl::connectt(){
ReadPortParameter();
}
void PortControl::ReadPortParameter(){
int i=0;
foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts()) {
Portlist << info.portName();
PortSpeed.portname[i]= info.portName();
i++;
}
QString response("123");
t=Portlist.size();
//////////////////
Speedlist<<QStringLiteral("9600"),QSerialPort::Baud9600;
Speedlist<<QStringLiteral("19200"), QSerialPort::Baud19200;
Speedlist<<QStringLiteral("38400"), QSerialPort::Baud38400;
Speedlist<< QStringLiteral("115200"), QSerialPort::Baud115200;
Speedlist<< QStringLiteral("Custom");
//////////////////
StopBitlist<<QStringLiteral("1"), QSerialPort::OneStop;
StopBitlist<<QStringLiteral("2"), QSerialPort::TwoStop;
StopBitlist<<QStringLiteral("1.5"), QSerialPort::OneAndHalfStop;
//тест22222
//тест5
}
void PortControl::SetPortParam(const QString &portName,QString speed,QString stopbits){
if (!m_port) {
m_port = new QSerialPort(portName);
// connect(m_port, SIGNAL(readyRead()), SLOT(readData()));
} else {
m_port->close();
m_port->setPortName(portName);
}
// m_port->setPortName("COM2");
m_port->setBaudRate(static_cast<QSerialPort::BaudRate>(speed.toInt()));
m_port->setStopBits(static_cast<QSerialPort::StopBits>(stopbits.toInt()));
//m_port->setDataBits("8");
}
void PortControl::ConnectPort(){
//quint8 mydata[] = {0xC8,0x16,0x7E};
// quint8 packet;
//quint8 mydata1[100];
//quint8 packet1=make_raw_data(mydata,sizeof(mydata),mydata1);
// QByteArray array;
// QString str="C8167E";
// array.resize(3);
// array[0] = 0xC8;
// array[1] = 0x16;
// array[2] = 0x7E;
// QByteArray array = QByteArray::fromHex("C8167E");
// int k=array.size();
//make_raw_data1(array,array.length(),array1);
//QString str="x^16 + x^15 + x^2 + 1";
// crc16_modbus(mydata,sizeof(mydata));
QString error1=tr("Ошибка открытия порта");
if (m_port->open(QIODevice::ReadWrite)) {
connect(m_port,SIGNAL(readyRead()),this,SLOT(read()));
// ui->actionConnect->setEnabled(false);
// ui->actionDisconnect->setEnabled(true);
//ui->statusBar->showMessage(tr("Connect"));
} else {
emit error(error1);
}
// writePort(str);
//readPort();
}
void PortControl::writePort(QString writedata){
QByteArray array;
array.resize(6);
array[0] = 0x7E;
array[1] = 0x01;
array[2] = 0x7D;
array[3] = 0x5E;
array[4] = 0x80;
array[5] = 0x7E;
// QByteArray writedat=writedata.toUtf8();
//QByteArray array = QByteArray::fromHex(writedat);
// QByteArray array =writedata.toInt(&ok,16);
QByteArray array1;
// make_raw_data1(array,array.length(),array1);
// m_port->write(packet_data1);
m_port->write(array);
array1=m_port->readAll();
// receivedData();
// QByteArray data=writedata.toLocal8Bit();
test1 t;
t.baudRat9600=100;
t.name="test";
//m_port->write(writedat);
emit test(t);
}
void PortControl::readPort(){
// QByteArray data=m_port->readAll();
}
void PortControl::read(){
QByteArray data=m_port->read(6);
emit readdata(data);
}
PortControl::~PortControl()
{
delete m_port;
}
quint16 PortControl::crc16_modbus1(QByteArray data,quint32 len){
static const quint16 wCRCTable[] = {
0X0000, 0XC0C1, 0XC181, 0X0140, 0XC301, 0X03C0, 0X0280, 0XC241,
0XC601, 0X06C0, 0X0780, 0XC741, 0X0500, 0XC5C1, 0XC481, 0X0440,
0XCC01, 0X0CC0, 0X0D80, 0XCD41, 0X0F00, 0XCFC1, 0XCE81, 0X0E40,
0X0A00, 0XCAC1, 0XCB81, 0X0B40, 0XC901, 0X09C0, 0X0880, 0XC841,
0XD801, 0X18C0, 0X1980, 0XD941, 0X1B00, 0XDBC1, 0XDA81, 0X1A40,
0X1E00, 0XDEC1, 0XDF81, 0X1F40, 0XDD01, 0X1DC0, 0X1C80, 0XDC41,
0X1400, 0XD4C1, 0XD581, 0X1540, 0XD701, 0X17C0, 0X1680, 0XD641,
0XD201, 0X12C0, 0X1380, 0XD341, 0X1100, 0XD1C1, 0XD081, 0X1040,
0XF001, 0X30C0, 0X3180, 0XF141, 0X3300, 0XF3C1, 0XF281, 0X3240,
0X3600, 0XF6C1, 0XF781, 0X3740, 0XF501, 0X35C0, 0X3480, 0XF441,
0X3C00, 0XFCC1, 0XFD81, 0X3D40, 0XFF01, 0X3FC0, 0X3E80, 0XFE41,
0XFA01, 0X3AC0, 0X3B80, 0XFB41, 0X3900, 0XF9C1, 0XF881, 0X3840,
0X2800, 0XE8C1, 0XE981, 0X2940, 0XEB01, 0X2BC0, 0X2A80, 0XEA41,
0XEE01, 0X2EC0, 0X2F80, 0XEF41, 0X2D00, 0XEDC1, 0XEC81, 0X2C40,
0XE401, 0X24C0, 0X2580, 0XE541, 0X2700, 0XE7C1, 0XE681, 0X2640,
0X2200, 0XE2C1, 0XE381, 0X2340, 0XE101, 0X21C0, 0X2080, 0XE041,
0XA001, 0X60C0, 0X6180, 0XA141, 0X6300, 0XA3C1, 0XA281, 0X6240,
0X6600, 0XA6C1, 0XA781, 0X6740, 0XA501, 0X65C0, 0X6480, 0XA441,
0X6C00, 0XACC1, 0XAD81, 0X6D40, 0XAF01, 0X6FC0, 0X6E80, 0XAE41,
0XAA01, 0X6AC0, 0X6B80, 0XAB41, 0X6900, 0XA9C1, 0XA881, 0X6840,
0X7800, 0XB8C1, 0XB981, 0X7940, 0XBB01, 0X7BC0, 0X7A80, 0XBA41,
0XBE01, 0X7EC0, 0X7F80, 0XBF41, 0X7D00, 0XBDC1, 0XBC81, 0X7C40,
0XB401, 0X74C0, 0X7580, 0XB541, 0X7700, 0XB7C1, 0XB681, 0X7640,
0X7200, 0XB2C1, 0XB381, 0X7340, 0XB101, 0X71C0, 0X7080, 0XB041,
0X5000, 0X90C1, 0X9181, 0X5140, 0X9301, 0X53C0, 0X5280, 0X9241,
0X9601, 0X56C0, 0X5780, 0X9741, 0X5500, 0X95C1, 0X9481, 0X5440,
0X9C01, 0X5CC0, 0X5D80, 0X9D41, 0X5F00, 0X9FC1, 0X9E81, 0X5E40,
0X5A00, 0X9AC1, 0X9B81, 0X5B40, 0X9901, 0X59C0, 0X5880, 0X9841,
0X8801, 0X48C0, 0X4980, 0X8941, 0X4B00, 0X8BC1, 0X8A81, 0X4A40,
0X4E00, 0X8EC1, 0X8F81, 0X4F40, 0X8D01, 0X4DC0, 0X4C80, 0X8C41,
0X4400, 0X84C1, 0X8581, 0X4540, 0X8701, 0X47C0, 0X4680, 0X8641,
0X8201, 0X42C0, 0X4380, 0X8341, 0X4100, 0X81C1, 0X8081, 0X4040 };
quint8 nTemp;
quint16 wCRCWord = 0xFFFF;
//wCRCWord=qChecksum(array,array.length());
for (int i=0; i < len;++i)
{
nTemp = (quint8)data.at(i) ^ wCRCWord;
wCRCWord >>= 8;
wCRCWord ^= wCRCTable[nTemp];
}
return wCRCWord;
}
quint16 PortControl::crc16_byte( quint16 crc,quint8 byte)
{static const quint16 wCRCTable[] = {
0X0000, 0XC0C1, 0XC181, 0X0140, 0XC301, 0X03C0, 0X0280, 0XC241,
0XC601, 0X06C0, 0X0780, 0XC741, 0X0500, 0XC5C1, 0XC481, 0X0440,
0XCC01, 0X0CC0, 0X0D80, 0XCD41, 0X0F00, 0XCFC1, 0XCE81, 0X0E40,
0X0A00, 0XCAC1, 0XCB81, 0X0B40, 0XC901, 0X09C0, 0X0880, 0XC841,
0XD801, 0X18C0, 0X1980, 0XD941, 0X1B00, 0XDBC1, 0XDA81, 0X1A40,
0X1E00, 0XDEC1, 0XDF81, 0X1F40, 0XDD01, 0X1DC0, 0X1C80, 0XDC41,
0X1400, 0XD4C1, 0XD581, 0X1540, 0XD701, 0X17C0, 0X1680, 0XD641,
0XD201, 0X12C0, 0X1380, 0XD341, 0X1100, 0XD1C1, 0XD081, 0X1040,
0XF001, 0X30C0, 0X3180, 0XF141, 0X3300, 0XF3C1, 0XF281, 0X3240,
0X3600, 0XF6C1, 0XF781, 0X3740, 0XF501, 0X35C0, 0X3480, 0XF441,
0X3C00, 0XFCC1, 0XFD81, 0X3D40, 0XFF01, 0X3FC0, 0X3E80, 0XFE41,
0XFA01, 0X3AC0, 0X3B80, 0XFB41, 0X3900, 0XF9C1, 0XF881, 0X3840,
0X2800, 0XE8C1, 0XE981, 0X2940, 0XEB01, 0X2BC0, 0X2A80, 0XEA41,
0XEE01, 0X2EC0, 0X2F80, 0XEF41, 0X2D00, 0XEDC1, 0XEC81, 0X2C40,
0XE401, 0X24C0, 0X2580, 0XE541, 0X2700, 0XE7C1, 0XE681, 0X2640,
0X2200, 0XE2C1, 0XE381, 0X2340, 0XE101, 0X21C0, 0X2080, 0XE041,
0XA001, 0X60C0, 0X6180, 0XA141, 0X6300, 0XA3C1, 0XA281, 0X6240,
0X6600, 0XA6C1, 0XA781, 0X6740, 0XA501, 0X65C0, 0X6480, 0XA441,
0X6C00, 0XACC1, 0XAD81, 0X6D40, 0XAF01, 0X6FC0, 0X6E80, 0XAE41,
0XAA01, 0X6AC0, 0X6B80, 0XAB41, 0X6900, 0XA9C1, 0XA881, 0X6840,
0X7800, 0XB8C1, 0XB981, 0X7940, 0XBB01, 0X7BC0, 0X7A80, 0XBA41,
0XBE01, 0X7EC0, 0X7F80, 0XBF41, 0X7D00, 0XBDC1, 0XBC81, 0X7C40,
0XB401, 0X74C0, 0X7580, 0XB541, 0X7700, 0XB7C1, 0XB681, 0X7640,
0X7200, 0XB2C1, 0XB381, 0X7340, 0XB101, 0X71C0, 0X7080, 0XB041,
0X5000, 0X90C1, 0X9181, 0X5140, 0X9301, 0X53C0, 0X5280, 0X9241,
0X9601, 0X56C0, 0X5780, 0X9741, 0X5500, 0X95C1, 0X9481, 0X5440,
0X9C01, 0X5CC0, 0X5D80, 0X9D41, 0X5F00, 0X9FC1, 0X9E81, 0X5E40,
0X5A00, 0X9AC1, 0X9B81, 0X5B40, 0X9901, 0X59C0, 0X5880, 0X9841,
0X8801, 0X48C0, 0X4980, 0X8941, 0X4B00, 0X8BC1, 0X8A81, 0X4A40,
0X4E00, 0X8EC1, 0X8F81, 0X4F40, 0X8D01, 0X4DC0, 0X4C80, 0X8C41,
0X4400, 0X84C1, 0X8581, 0X4540, 0X8701, 0X47C0, 0X4680, 0X8641,
0X8201, 0X42C0, 0X4380, 0X8341, 0X4100, 0X81C1, 0X8081, 0X4040 };
//QByteArray array = QByteArray::fromRawData(data, sizeof(data));
//QByteArray array[0xC8];
// //QByteArray array=str.toUtf8();
// QByteArray array;
// array.resize(3);
// array[0] = 0xC8;
// array[1] = 0x16;
// array[2] = 0x7E;
// ba[3] = 0x18;
// ba[4] = 0xca;
return (crc >> 8) ^ wCRCTable[(crc & 0xFF) ^ byte];
}
//qint16 PortControl::make_raw_data(const quint8 *data, quint16 len, quint8 *packet_data){
// // Проверяем аргументы
//quint8 mydata[] = {0xC8,0x16,0x7E};
// //if(len && !data) return 0;
// // if(!packet_data) return 0;
// // if(len > RPPP_MAX_DATA_SIZE) return 0;
// // Ещё один указатель на данные пакета
// quint8* pd = packet_data;
// // Формируем заголовок пакета
// *pd++ = RPPP_PACKET_SIMBOL;
// // Данные пакета
// for(quint16 i = 0; i < len; i++)
// {
// if((data[i] != RPPP_PACKET_SIMBOL) && (data[i] != RPPP_REPLACE_SIMBOL))
// {
// *pd++ = data[i];
// }
// else
// {
// *pd++ = RPPP_REPLACE_SIMBOL;
// *pd++ = data[i] ^ 0x20;
// }
// }
// // Контрольная сумма
// quint16 crc = crc16_modbus(mydata,sizeof(mydata));
// quint8 crc_lo = (crc & 0x00FF) >> 0;
// quint8 crc_hi = (crc & 0xFF00) >> 8;
// if((crc_lo != RPPP_PACKET_SIMBOL) && (crc_lo != RPPP_REPLACE_SIMBOL))
// {
// *pd++ = crc_lo;
// }
// else
// {
// *pd++ = RPPP_REPLACE_SIMBOL;
// *pd++ = crc_lo ^ 0x20;
// }
// if((crc_hi != RPPP_PACKET_SIMBOL) && (crc_hi != RPPP_REPLACE_SIMBOL))
// {
// *pd++ = crc_hi;
// }
// else
// {
// *pd++ = RPPP_REPLACE_SIMBOL;
// *pd++ = crc_hi ^ 0x20;
// }
// // Окончание пакета
// *pd++ = RPPP_PACKET_SIMBOL;
// // Возвращаем общую длину пакета
// return (pd - packet_data);
//}
qint16 PortControl::make_raw_data1(QByteArray data, quint16 lenhth,QByteArray packet_data){
quint8 PacketSimbol = 0x7E;
quint8 ReplaceSimbol = 0x7D;
// Пока возвращаемого массива нет
//packet_data = null;
// Проверяем аргументы
// if (data == null) return 0;
// if (data.Length < length) return 0;
// if (length > MaxDataSize) return 0;
// Контрольная сумма данных
quint16 crc = crc16_modbus1(data,data.length());
quint8 crc_lo = (crc & 0x00FF) >> 0;
quint8 crc_hi = (crc & 0xFF00) >> 8;
//int len;
// Сначала считаем размер формирующегося пакета, для этого
// складываем байт начала, байт конца, данные пакета и 2 байта
// контрольной суммы, при этом саем по 2 байта каждый раз,
// когда встречается символ PacketSimbol или ReplaceSimbol
quint16 len;
len= 1 + 2 + 1;
if ((crc_lo == PacketSimbol) || (crc_lo == ReplaceSimbol)) len++;
if ((crc_hi ==PacketSimbol) || (crc_hi == ReplaceSimbol)) len++;
len +=lenhth;
for (quint16 i = 0; i < lenhth; i++)
{
if ((data[i] == (char)PacketSimbol) || (data[i] == (char)ReplaceSimbol)) len++;
}
// Создаём данные пакета
//QByteArray packet_data1;
// Индекс байта данных в пакете
quint16 pd = 0;
// Формируем заголовок пакета
packet_data1[pd++] = (char)PacketSimbol;
// Данные пакета
for (quint16 i = 0; i < lenhth; i++)
{
if ((data[i] !=(char) PacketSimbol) && (data[i] !=(char) ReplaceSimbol))
{
packet_data1[pd++] = data[i];
}
else
{
packet_data1[pd++] = (char)ReplaceSimbol;
packet_data1[pd++] = (char)(data[i] ^ 0x20);
}
}
// Контрольная сумма
if ((crc_lo != PacketSimbol) && (crc_lo != ReplaceSimbol))
{
packet_data1[pd++] = (char)crc_lo;
}
else
{
packet_data1[pd++] = (char)ReplaceSimbol;
packet_data1[pd++] = (char)(crc_lo ^ 0x20);
}
if ((crc_hi != PacketSimbol) && (crc_hi != ReplaceSimbol))
{
packet_data1[pd++] = (char)crc_hi;
}
else
{
packet_data1[pd++] = (char)ReplaceSimbol;
packet_data1[pd++] = (char)(crc_hi ^ 0x20);
}
// Окончание пакета
packet_data1[pd++] = (char)PacketSimbol;
// Возвращаем общую длину пакета
return len;
}
void PortControl::receivedData(){
QString writedata="7EC8167D5E7D5E7D5E7E";
quint8 maxlen=writedata.length();
quint16 MaxDataSize = ((0xFFFF - 6) / 2);
buf.resize(52);
//QByteArray array=writedata.toUtf8();
QByteArray array=m_port->readAll();
QByteArray data = QByteArray::fromHex(array);
quint8 new_byte;
for (int i=0;i<=data.length();i++){
new_byte= data[i];
receivedByteData(new_byte);
}
}
bool PortControl::receivedByteData(quint8 new_byte){
quint8 PacketSimbol = 0x7E;
quint8 maxLen=11;
quint8 ReplaceSimbol = 0x7D;
// Пакет пока не считан
//data = null;
// Пишем пришедший байт
buf[writePointer] =new_byte ;
// Перемещаем указатель записи
writePointer++;
if(writePointer == buf.length()) writePointer = 0;
// Если начало предполагаемого пакета ещё не найдено
if(!startFound)
{
// Если нашли байт начала пакета, то
if(new_byte == PacketSimbol)
{
// Считаем, что нашли начало пакета
startFound = true;
// Запоминаем место начала пакета (уже после символа
// начала пакета)
startPointer = writePointer;
// Сбрасываем флаг замены
replaceFlag = false;
// Реальное количество байт данных
realBytesCount = 0;
}
}
// Если начало предполагаемого пакета уже найдено
else
{
// Если новый символ - символ замены, то
if(new_byte == ReplaceSimbol)
{
// Если не установлен флаг замены, то
if(replaceFlag == false)
{
// Устанавливаем
replaceFlag = true;
}
// Если уже установлен, то
else
{
// Значит ошибка, поэтому считаем, что начало пакета не
// найдено, потому что этот пакет уже неверный
startFound = false;
// Выходим
return false;
}
}
// Если какой-то другой символ, кроме байта конца пакета, то
else if(new_byte != PacketSimbol)
{
// Снимаем флаг инверсии
replaceFlag = false;
// Увеличиваем счётчик реального количества байт данных
realBytesCount++;
}
// Если новый символ является байтом конца пакета, то
else if(new_byte == PacketSimbol)
{
// Если установлен флаг замены или количество данных
// менее 2-х байт, то
if((replaceFlag == true) || (realBytesCount < 2)
|| ((realBytesCount - 2) > maxLen))
{
// Считаем, что пакет неверный, но, возможно только что
// найденный символ - это начало верного пакета, поэтому
// переносим указатель начала на это место (будет считаться
// началом этого пакета)
startPointer = writePointer;
// Сбрасываем флаг замены
replaceFlag = false;
// Реальное количество байт данных
realBytesCount = 0;
// Выходим
return false;
}
// Считываем все байты данных пакета от самого начала
// и расчитываем контрольную сумму:
// Позиция чтения
quint16 tmp_pointer = startPointer;
// Флаг замены
replaceFlag = false;
// Расчётная контрольная сумма
quint16 calc_crc = crc16_modbus1(NULL, 0);
// Счётчик считанных байт данных
quint16 data_bytes_count = 0;
// Пока не считано (realBytesCount - 2) байт данных
while(data_bytes_count < (realBytesCount - 2))
{
// Читаем байт
quint8 tmp_byte = buf[tmp_pointer];
// Увеличиваем позицию чтения
tmp_pointer++;
if(tmp_pointer == buf.length()) tmp_pointer = 0;
// Если байт - символ замены, то
if(tmp_byte == ReplaceSimbol)
{
// Ставим флаг замены следующего символа
replaceFlag = true;
}
// Если не байт замены символа, то
else
{
// Инверсируем его 6-й бит если надо
if(replaceFlag)
{
tmp_byte ^= 0x20;
replaceFlag = false;
}
// Пересчитываем CRC
calc_crc = crc16_byte(calc_crc, tmp_byte);
// Увеличиваем счётчик байт данных
data_bytes_count++;
}
}
// Читаем значение контрольной суммы:
// Флаг замены
replaceFlag = false;
// Счётчик считанных байт CRC
quint16 crc_bytes_count = 0;
// Байты контрольной суммы
// QByteArray crc_bytes[2] = {0x00, 0x00};
quint8 crc_bytes[2]={0x00, 0x00};
// Пока не считано 2 байта контрольной суммы
while(crc_bytes_count < 2)
{
// Читаем байт
quint8 tmp_byte = buf[tmp_pointer];
// Увеличиваем позицию чтения
tmp_pointer++;
if(tmp_pointer == buf.length()) tmp_pointer = 0;
// Если байт - символ замены, то
if(tmp_byte == ReplaceSimbol)
{
// Ставим флаг замены следующего символа
replaceFlag = true;
}
// Если не байт замены символа, то
else
{
// Инверсируем его 6-й бит если надо
if(replaceFlag)
{
tmp_byte ^= 0x20;
replaceFlag = false;
}
// Запоминаем байт CRC
crc_bytes[crc_bytes_count] = tmp_byte;
// Увеличиваем счётчик байт CRC
crc_bytes_count++;
}
}
// Определяем значение контрольной суммы по считанным байтам
quint16 pa=crc_bytes[0] << 0;
quint16 pa1=crc_bytes[1] << 8;
quint16 packet_crc = quint16((crc_bytes[0] << 0) |
(crc_bytes[1] << 8));
// Сравниваем расчитанную и принятую контрольные суммы:
// если они не равны, то
if(packet_crc != calc_crc)
{
// Считаем, что пакет неверный, но, возможно только что
// найденный символ - это начало верного пакета, поэтому
// переносим указатель начала на это место (будет считаться
// началом этого пакета)
startPointer = writePointer;
// Сбрасываем флаг замены
replaceFlag = false;
// Реальное количество байт данных
realBytesCount = 0;
// Выходим
return false;
}
// Теперь считываем все байты пакета от самого начала
// и копируем их в массив для возврата считанного пакета
// Позиция чтения
tmp_pointer = startPointer;
// Флаг замены
replaceFlag = false;
// Счётчик считанных байт данных
data_bytes_count = 0;
// Создаём массив с данными
// QByteArray data[realBytesCount - 2];
QByteArray data;
// Пока не считано (realBytesCount - 2) байт данных
while(data_bytes_count < (realBytesCount - 2))
{
// Читаем байт
quint8 tmp_byte = buf[tmp_pointer];
// Увеличиваем позицию чтения
tmp_pointer++;
if(tmp_pointer == buf.length()) tmp_pointer = 0;
// Если байт - символ замены, то
if(tmp_byte == ReplaceSimbol)
{
// Ставим флаг замены следующего символа
replaceFlag = true;
}
// Если не байт замены символа, то
else
{
// Инверсируем его 6-й бит если надо
if(replaceFlag)
{
tmp_byte ^= 0x20;
replaceFlag = false;
}
// Запоминаем этот байт
data[data_bytes_count] = tmp_byte;
// Увеличиваем счётчик байт данных
data_bytes_count++;
}
}
// Было ли найдено начало пакета
startFound = false;
// Начало пакета
startPointer = 0;
// Реальное количество байт данных
realBytesCount = 0;
// Выходим
return true;
}
}
// Выходим
return false;
}
| [
"vyt386@yandex.ru"
] | vyt386@yandex.ru |
1dabaed5e693c86de80040938a1a9edff95591e2 | b18ce39b25cfa4cf451f11291c3a8d97b4517e1c | /Week9/week9Question3.cpp | b969b36499f6ac7246ce028be8e483b024a45e09 | [] | no_license | GauravSingh327/DAA | ad1b756c82865d8b12b2e4b3fdf1b1c14a837956 | 004e15da6b6d2080731ab574e6b3cd6d69b700e6 | refs/heads/main | 2023-09-04T17:20:50.337781 | 2021-11-17T18:37:34 | 2021-11-17T18:37:34 | 389,015,169 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int V;
cin>>V;
vector<int> arr(V);
for(int i = 0;i<V;i++)
{
cin>>arr[i];
}
sort(arr.begin(), arr.end());
int sum = arr[0] + arr[1];
int answer = sum;
for(int i = 2;i<V;i++)
{
sum = sum + arr[i];
answer += sum;
}
cout<<answer;
return 0;
} | [
"kholiya.gaurav.121@gmail.com"
] | kholiya.gaurav.121@gmail.com |
df4eb46b7d8248f92a9a3edf86e6743f0e3e0869 | ce931096a87e711694414d049999125a101bb49e | /data_pool/data_pool.h | c4c2030973b129c75b29ef72938022b29f5e4aee | [] | no_license | ranxiaoxu/udp_chat | 6faa676d62a4ca8037f2a7d129a35434735c2928 | 252c8649702157c07a7b2be3c0447834485155b5 | refs/heads/master | 2020-07-10T17:00:05.126305 | 2016-09-01T09:23:28 | 2016-09-01T09:23:28 | 66,449,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | h | #pragma once
#include<iostream>
#include<vector>
#include<string>
#include<semaphore.h>
class data_pool{
public:
data_pool(int _cap = 64);
~data_pool();
void get_data(std::string &out);
void put_data(std::string &in);
private:
std::vector<std::string> pool;
int capacity;
sem_t sem_space;
sem_t sem_data;
int put_step;
int get_step;
};
| [
"18302969902@163.com"
] | 18302969902@163.com |
b438395f4dab4d375e5ea3825be4bcb189df0d8c | bc953f799b4e35619a9eba3e48a1a493cbe2673e | /Leetcode/530_Minimum Absolute Difference in BST/c++/solution.cpp | 9d1d1b80b53caa287bc2dc07ddacb817b2573e55 | [] | no_license | njumathdy/code-practice | 3d34117bddbc448886cb35af385d3f8f560dddfc | d7e9518f93d0049007ec5ac99d5b8af697cf3530 | refs/heads/master | 2020-04-28T14:30:45.357312 | 2019-10-20T10:39:53 | 2019-10-20T10:39:53 | 175,341,006 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,022 | cpp | /*******************
Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes.
*******************/
#include <cstdlib>
#include <cstdio>
#include <exception>
#include <vector>
#include <algorithm>
#include <string>
#include <iostream>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
int getMinimumDifference(TreeNode* root) {
vector<int> nums;
inorder(root, nums);
int res = INT_MAX;
for(int i = 0; i < nums.size()-1; i++)
res = min(res, nums[i+1]-nums[i]);
return res;
}
void inorder(TreeNode* node, vector<int>& nums) {
if(node == nullptr)
return;
inorder(node -> left, nums);
nums.push_back(node -> val);
inorder(node -> right, nums);
}
};
int main() {
return 0;
} | [
"15850788569@163.com"
] | 15850788569@163.com |
6152e8939f363af7d23e071e549edb7497300da3 | fcd4bce0080771389b4a69338ed6443153942183 | /cores/n64/GLideN64/src/Graphics/PixelBuffer.h | b432c72db2e78cfa2fcf6604feb9b1c5cf6cc640 | [
"MIT",
"LGPL-2.1-only",
"MPL-1.1",
"LicenseRef-scancode-mame",
"GPL-1.0-or-later",
"Zlib",
"GPL-2.0-only",
"LGPL-2.1-or-later",
"MPL-2.0",
"CC-PDDC",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-brian-gladman-3-clause",
"BSD-3-Clause"... | permissive | wulfebw/retro | d4fcf9229b257b3c495f54b1aeb3ea36004ae4aa | dad4b509e99e729e39a2f27e9ee4120e3b607f58 | refs/heads/master | 2022-10-23T07:17:55.320585 | 2020-06-12T01:38:06 | 2020-06-12T01:38:06 | 260,832,205 | 8 | 1 | MIT | 2020-06-12T01:38:08 | 2020-05-03T05:06:17 | C | UTF-8 | C++ | false | false | 639 | h | #pragma once
#include "Parameter.h"
namespace graphics {
class PixelReadBuffer
{
public:
virtual ~PixelReadBuffer() {}
virtual void readPixels(s32 _x,s32 _y, u32 _width, u32 _height, Parameter _format, Parameter _type) = 0;
virtual void * getDataRange(u32 _offset, u32 _range) = 0;
virtual void closeReadBuffer() = 0;
virtual void bind() = 0;
virtual void unbind() = 0;
};
template<class T>
class PixelBufferBinder
{
public:
PixelBufferBinder(T * _buffer)
: m_buffer(_buffer) {
m_buffer->bind();
}
~PixelBufferBinder() {
m_buffer->unbind();
m_buffer = nullptr;
}
private:
T * m_buffer;
};
}
| [
"blake.w.wulfe@gmail.com"
] | blake.w.wulfe@gmail.com |
6f972cd04fa2be757dc601890da1d6512fd16148 | df67f4a2f3bb3f4bb78951e88ecab90955ff5c8a | /ATSarf/tests/example/example.h | e02a123994b53b4afde270d6a0d30c1dae1a85c5 | [] | no_license | sakrsamir/atmine | 8268b8ebaa3cf00d01b57761c4ed6c09b5a46728 | 74c71bd09021d14c982da3a5d0d28f05b0361e49 | refs/heads/master | 2020-05-01T07:03:47.547064 | 2018-09-10T06:09:41 | 2018-09-10T06:09:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | h | #ifndef EXAMPLE_H
#define EXAMPLE_H
#include <QtTest/QtTest>
class TestExample: public QObject {
Q_OBJECT
private slots:
void initTestCase();
void firstTest();
void secondTest();
void cleanupTestCase();
};
#endif // EXAMPLE_H
| [
"toplicius@gmail.com"
] | toplicius@gmail.com |
c0835c1b7abe49081f373d128658cca69adf293f | cb3cfb85f02d5acd37fb318ca38a45e9c26c922e | /src/util/globalFuncs.h | 81b310d90a5fb6b4d9eec56f208ced940563b848 | [] | no_license | wpfhtl/dense_vo | c32ed8130294d77b5333473dd625dc3832c9e8ec | def10ffbd4530d0160f6af30f9acd0d24dd6e34a | refs/heads/master | 2020-06-10T07:27:22.963371 | 2015-06-26T09:22:58 | 2015-06-26T09:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,665 | h | /**
* This file is part of LSD-SLAM.
*
* Copyright 2013 Jakob Engel <engelj at in dot tum dot de> (Technical University of Munich)
* For more information see <http://vision.in.tum.de/lsdslam>
*
* LSD-SLAM 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.
*
* LSD-SLAM 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 LSD-SLAM. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <opencv2/core/core.hpp>
#include "../util/settings.h"
#include "../util/SophusUtil.h"
namespace lsd_slam
{
template< typename T >
class NotifyBuffer;
class Frame;
SE3 SE3CV2Sophus(const cv::Mat& R, const cv::Mat& t);
void printMessageOnCVImage(cv::Mat &image, std::string line1);
// reads interpolated element from a uchar* array
// SSE2 optimization possible
inline float getInterpolatedElement(const float* const mat, const float x, const float y, const int width)
{
//stats.num_pixelInterpolations++;
int ix = (int)x;
int iy = (int)y;
float dx = x - ix;
float dy = y - iy;
float dxdy = dx*dy;
const float* bp = mat +ix+iy*width;
float res = dxdy * bp[1+width]
+ (dy-dxdy) * bp[width]
+ (dx-dxdy) * bp[1]
+ (1-dx-dy+dxdy) * bp[0];
return res;
}
inline Eigen::Vector3f getInterpolatedElement43(const Eigen::Vector4f* const mat, const float x, const float y, const int width)
{
int ix = (int)x;
int iy = (int)y;
float dx = x - ix;
float dy = y - iy;
float dxdy = dx*dy;
const Eigen::Vector4f* bp = mat +ix+iy*width;
return dxdy * *(const Eigen::Vector3f*)(bp+1+width)
+ (dy-dxdy) * *(const Eigen::Vector3f*)(bp+width)
+ (dx-dxdy) * *(const Eigen::Vector3f*)(bp+1)
+ (1-dx-dy+dxdy) * *(const Eigen::Vector3f*)(bp);
}
inline Eigen::Vector4f getInterpolatedElement44(const Eigen::Vector4f* const mat, const float x, const float y, const int width)
{
int ix = (int)x;
int iy = (int)y;
float dx = x - ix;
float dy = y - iy;
float dxdy = dx*dy;
const Eigen::Vector4f* bp = mat +ix+iy*width;
return dxdy * *(bp+1+width)
+ (dy-dxdy) * *(bp+width)
+ (dx-dxdy) * *(bp+1)
+ (1-dx-dy+dxdy) * *(bp);
}
inline Eigen::Vector2f getInterpolatedElement42(const Eigen::Vector4f* const mat, const float x, const float y, const int width)
{
int ix = (int)x;
int iy = (int)y;
float dx = x - ix;
float dy = y - iy;
float dxdy = dx*dy;
const Eigen::Vector4f* bp = mat +ix+iy*width;
return dxdy * *(const Eigen::Vector2f*)(bp+1+width)
+ (dy-dxdy) * *(const Eigen::Vector2f*)(bp+width)
+ (dx-dxdy) * *(const Eigen::Vector2f*)(bp+1)
+ (1-dx-dy+dxdy) * *(const Eigen::Vector2f*)(bp);
}
inline void fillCvMat(cv::Mat* mat, cv::Vec3b color)
{
for(int y=0;y<mat->size().height;y++)
for(int x=0;x<mat->size().width;x++)
mat->at<cv::Vec3b>(y,x) = color;
}
inline void setPixelInCvMat(cv::Mat* mat, cv::Vec3b color, int xx, int yy, int lvlFac)
{
for(int x=xx*lvlFac; x < (xx+1)*lvlFac && x < mat->size().width;x++)
for(int y=yy*lvlFac; y < (yy+1)*lvlFac && y < mat->size().height;y++)
mat->at<cv::Vec3b>(y,x) = color;
}
inline cv::Vec3b getGrayCvPixel(float val)
{
if(val < 0) val = 0; if(val>255) val=255;
return cv::Vec3b(val,val,val);
}
cv::Mat getDepthRainbowPlot(Frame* kf, int lvl=0);
cv::Mat getDepthRainbowPlot(const float* idepth, const float* idepthVar, const float* gray, int width, int height);
cv::Mat getVarRedGreenPlot(const float* idepthVar, const float* gray, int width, int height);
}
inline float getRefFrameScore(float distanceSquared, float usage, float KFDistWeight, float KFUsageWeight)
{
return distanceSquared*KFDistWeight*KFDistWeight
+ (1-usage)*(1-usage) * KFUsageWeight * KFUsageWeight;
}
inline void calculateDepthImage(cv::Mat disparity, cv::Mat& depthImage, float baseline, float f)
{
int n = disparity.rows ;
int m = disparity.cols ;
depthImage.create(n, m, CV_32F);
for (int i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
{
float d = disparity.at<float>(i, j);
if ( d < 3.0 ) {
depthImage.at<float>(i, j) = 0;
}
else {
depthImage.at<float>(i, j) = baseline * f / d;
}
}
}
}
inline float SQ(float a){
return a*a;
}
| [
"ylingaa@connect.ust.hk"
] | ylingaa@connect.ust.hk |
cd0179484408b34343ab840ee902433e7d522373 | 1e2be1d17d39e76311c16ec14868f8ab4b75bc23 | /task_3.h | 7b2e418578d50f09a5ba9a8229ab2f29e46211a3 | [] | no_license | vasiabedriy/task_11_3 | b8d7c3c9f610ee5ec90a2f6100b9ad46a6be8407 | 2945f067d4b90c9aa074ba7420dc8af1aa5a297c | refs/heads/master | 2021-01-22T17:33:21.723889 | 2016-05-31T07:50:08 | 2016-05-31T07:50:08 | 60,068,975 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | h | #ifndef TASK_3_H
#define TASK_3_H
#include <QMainWindow>
#include <QPushButton>
#include <QLineEdit>
namespace Ui {
class task_3;
}
class task_3 : public QMainWindow
{
Q_OBJECT
public:
explicit task_3(QWidget *parent = 0);
~task_3();
private slots:
void on_change_clicked();
private:
QPushButton* m_change;
QLineEdit* m_input;
};
#endif // TASK_3_H
| [
"Dykun_V@unxp.lviv"
] | Dykun_V@unxp.lviv |
57680956c7d90c379ac7a528f7908e04a536aed2 | def6e02e68068378702ff1448cf167c98abc280f | /doc/examples/builder_demo01.cpp | 49f0b6ffecd7ab3bcff5f2db46f8d75750d84eae | [
"MIT",
"LicenseRef-scancode-mit-veillard-variant"
] | permissive | stephanb2/gsoc-json-parser | 705a8a7cdcdadc811e2dedbec2ca4bb7dedb481d | d3efb25043d9dddca7b23f098c77020d39757d05 | refs/heads/master | 2021-01-23T02:54:01.229849 | 2013-05-31T18:14:58 | 2013-05-31T18:14:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,123 | cpp | #include <iostream>
#include <stack>
#include <string>
// using namespace std;
// Abstract Builder
//
class builder
{
public:
virtual void on_null() = 0;
virtual void on_string(const std::string&) = 0;
virtual void on_array_begin() = 0;
virtual void on_array_end() = 0;
};
// Concrete Builder
//
class strBuilder : public builder
{
public:
//maybe we can use the default constructor
void on_null() {
_result += "null ";
}
void on_string(const std::string& s){
_result += s + " ";
}
void on_array_begin() {
}
void on_array_end() {
}
const std::string& result() {
return _result;
}
private:
std::string _result;
};
// Stack Builder
class stackBuilder : public builder
{
public:
//ctor
stackBuilder() : _errors(0), _val("") {
}
void on_null() {
_val += "null ";
}
void on_string(const std::string& s){
_val += s + " ";
}
void on_array_begin() {
_stack.push(_val);
_val = "(";
}
void on_array_end() {
_val += ")";
// use robust stack operation to prevent segfault
if (_stack.empty()) {
_errors++;
} else {
_val = _stack.top() + _val;
_stack.pop();
}
}
const std::string& result() const {
return _val;
}
int errors() const {
return _errors;
}
private:
std::string _val;
std::stack<std::string> _stack;
int _errors;
};
// Director
//
class parser
{
public:
parser(builder &b) : _build(b) { }
void test_run() {
_build.on_array_begin();
_build.on_null();
_build.on_string("foo");
_build.on_array_begin();
_build.on_array_end();
_build.on_null();
_build.on_array_end();
_build.on_array_end(); // produces error
}
private:
builder& _build;
};
int main() {
stackBuilder build;
parser parser(build);
parser.test_run();
std::cout << build.result() << std::endl;
std::cout << build.errors() << std::endl;
return 0;
}
| [
"stephanb2@hotmail.com"
] | stephanb2@hotmail.com |
f7be1971dabcf1878026af1e9640c223b3274e9f | 02987503becabd24aa359d6ceabcb332ad8c6302 | /sgpp-1.1.0/base/src/sgpp/base/grid/type/WaveletGrid.cpp | 20654dc81bb04f8acc6dd03ae96390f8d7160964 | [] | no_license | HappyTiger1/Sparse-Grids | a9c07527481ee28fe24abed6dad378ca9fc6d466 | 2832b262c1aeaa25312a3f7e48c5a67c90d183a5 | refs/heads/master | 2020-05-07T14:06:20.673900 | 2016-08-08T17:57:12 | 2016-08-08T17:57:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,209 | cpp | // Copyright (C) 2008-today The SG++ project
// This file is part of the SG++ project. For conditions of distribution and
// use, please see the copyright notice provided with SG++ or at
// sgpp.sparsegrids.org
#include <sgpp/base/grid/Grid.hpp>
#include <sgpp/base/grid/type/WaveletGrid.hpp>
#include <sgpp/base/grid/generation/StandardGridGenerator.hpp>
#include <sgpp/base/exception/factory_exception.hpp>
#include <sgpp/base/operation/hash/common/basis/WaveletBasis.hpp>
#include <sgpp/globaldef.hpp>
namespace SGPP {
namespace base {
WaveletGrid::WaveletGrid(std::istream& istr) :
Grid(istr) {
}
WaveletGrid::WaveletGrid(size_t dim) :
Grid(dim) {
}
WaveletGrid::~WaveletGrid() {
}
SGPP::base::GridType WaveletGrid::getType() {
return SGPP::base::GridType::Wavelet;
}
const SBasis& WaveletGrid::getBasis() {
static SWaveletBase basis;
return basis;
}
Grid* WaveletGrid::unserialize(std::istream& istr) {
return new WaveletGrid(istr);
}
/**
* Creates new GridGenerator
* This must be changed if we add other storage types
*/
GridGenerator* WaveletGrid::createGridGenerator() {
return new StandardGridGenerator(this->storage);
}
} // namespace base
} // namespace SGPP
| [
"alexander.atanasov@yale.edu"
] | alexander.atanasov@yale.edu |
4dfa4570f51b70f920df082c5f739c206ac3ed05 | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /chrome/browser/background/background_contents.h | f5e28039a20fca0817fcd371e5968b75cd72d2b1 | [
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | C++ | false | false | 5,147 | h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_
#define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_
#include <stdint.h>
#include <memory>
#include <string>
#include "base/macros.h"
#include "base/observer_list.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/browser/web_contents_observer.h"
#include "extensions/browser/deferred_start_render_host.h"
#include "ui/base/window_open_disposition.h"
#include "url/gurl.h"
class Profile;
namespace content {
class SessionStorageNamespace;
};
namespace extensions {
class ExtensionHostDelegate;
}
// This class maintains a WebContents used in the background. It can host a
// renderer, but does not have any visible display.
// TODO(atwilson): Unify this with background pages; http://crbug.com/77790
class BackgroundContents : public extensions::DeferredStartRenderHost,
public content::WebContentsDelegate,
public content::WebContentsObserver,
public content::NotificationObserver {
public:
class Delegate {
public:
// Called by AddNewContents(). Asks the delegate to attach the opened
// WebContents to a suitable container (e.g. browser) or to show it if it's
// a popup window. If |was_blocked| is non-NULL, then |*was_blocked| will be
// set to true if the popup gets blocked, and left unchanged otherwise.
virtual void AddWebContents(content::WebContents* new_contents,
WindowOpenDisposition disposition,
const gfx::Rect& initial_rect,
bool user_gesture,
bool* was_blocked) = 0;
protected:
virtual ~Delegate() {}
};
BackgroundContents(
scoped_refptr<content::SiteInstance> site_instance,
content::RenderFrameHost* opener,
int32_t routing_id,
int32_t main_frame_routing_id,
int32_t main_frame_widget_routing_id,
Delegate* delegate,
const std::string& partition_id,
content::SessionStorageNamespace* session_storage_namespace);
~BackgroundContents() override;
content::WebContents* web_contents() const { return web_contents_.get(); }
virtual const GURL& GetURL() const;
// Adds this BackgroundContents to the queue of RenderViews to create.
void CreateRenderViewSoon(const GURL& url);
// content::WebContentsDelegate implementation:
void CloseContents(content::WebContents* source) override;
bool ShouldSuppressDialogs(content::WebContents* source) override;
void DidNavigateMainFramePostCommit(content::WebContents* tab) override;
void AddNewContents(content::WebContents* source,
content::WebContents* new_contents,
WindowOpenDisposition disposition,
const gfx::Rect& initial_rect,
bool user_gesture,
bool* was_blocked) override;
bool IsNeverVisible(content::WebContents* web_contents) override;
// content::WebContentsObserver implementation:
void RenderProcessGone(base::TerminationStatus status) override;
void DidStartLoading() override;
void DidStopLoading() override;
// content::NotificationObserver
void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) override;
protected:
// Exposed for testing.
BackgroundContents();
private:
// extensions::DeferredStartRenderHost implementation:
void CreateRenderViewNow() override;
void AddDeferredStartRenderHostObserver(
extensions::DeferredStartRenderHostObserver* observer) override;
void RemoveDeferredStartRenderHostObserver(
extensions::DeferredStartRenderHostObserver* observer) override;
// The delegate for this BackgroundContents.
Delegate* delegate_;
// Delegate for choosing an ExtensionHostQueue.
std::unique_ptr<extensions::ExtensionHostDelegate> extension_host_delegate_;
Profile* profile_;
std::unique_ptr<content::WebContents> web_contents_;
content::NotificationRegistrar registrar_;
base::ObserverList<extensions::DeferredStartRenderHostObserver>
deferred_start_render_host_observer_list_;
// The initial URL to load.
GURL initial_url_;
DISALLOW_COPY_AND_ASSIGN(BackgroundContents);
};
// This is the data sent out as the details with BACKGROUND_CONTENTS_OPENED.
struct BackgroundContentsOpenedDetails {
// The BackgroundContents object that has just been opened.
BackgroundContents* contents;
// The name of the parent frame for these contents.
const std::string& frame_name;
// The ID of the parent application (if any).
const base::string16& application_id;
};
#endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_H_
| [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com |
cfec97c4624bd7e21fee809db90ea0378aef721f | 41dd666c77f94300fae4582b4f1c098817a853e5 | /src/footer.h | 27c1ea1c81893f8b3ddda20a98620fa789ac77ea | [] | no_license | Stygain/bandwidth-monitor | e0ca2e8c24cd15bfae75f67a041c7e03bab700bd | 8ae63a6b367ad56fd4dced44598a47adfc14f79e | refs/heads/master | 2022-08-26T04:59:12.033847 | 2020-05-17T03:15:49 | 2020-05-17T03:15:49 | 249,271,052 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | h | #ifndef FOOTER_H
#define FOOTER_H
#include <ncurses.h>
#include "utils.h"
#include "colors.h"
class Footer
{
public:
Footer(int placementX, int placementY, int width, int height);
~Footer();
void Resize(int placementX, int placementY, int width, int height);
void UpdateMode(Mode mode);
void Print();
public:
WINDOW *win;
private:
Mode mode = MODE_NORMAL;
int placementX;
int placementY;
int width;
int height;
};
#endif
| [
"adamb6102@gmail.com"
] | adamb6102@gmail.com |
c37b6b68be357d25df903f4ff23740898845f617 | c4032b496389f7b113ee0bf7a2ff30a99130ab2a | /filtering08/filtering08.ino | bb5df905db8ee9493e6fc039123b6ee26a5bf740 | [] | no_license | quchunguang/homemake | 07ab057733369b8f1304835af6e9ae57eb3927d3 | ef5027d361c3861e253e482bd418d3e4a6c81f15 | refs/heads/master | 2021-01-21T13:27:02.065066 | 2019-10-06T00:47:21 | 2019-10-06T00:47:21 | 52,532,095 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,584 | ino | /*
A、名称:加权递推平均滤波法
B、方法:
是对递推平均滤波法的改进,即不同时刻的数据加以不同的权;
通常是,越接近现时刻的数据,权取得越大。
给予新采样值的权系数越大,则灵敏度越高,但信号平滑度越低。
C、优点:
适用于有较大纯滞后时间常数的对象,和采样周期较短的系统。
D、缺点:
对于纯滞后时间常数较小、采样周期较长、变化缓慢的信号;
不能迅速反应系统当前所受干扰的严重程度,滤波效果差。
E、整理:shenhaiyu 2013-11-01
*/
#define FILTER_N 12
int coe[FILTER_N] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; // 加权系数表
int sum_coe = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12; // 加权系数和
int filter_buf[FILTER_N + 1];
int Filter_Value;
// 用于随机产生一个300左右的当前值
int Get_AD() {
return random(295, 305);
}
// 加权递推平均滤波法
int Filter() {
int i;
int filter_sum = 0;
filter_buf[FILTER_N] = Get_AD();
for (i = 0; i < FILTER_N; i++) {
filter_buf[i] = filter_buf[i + 1]; // 所有数据左移,低位仍掉
filter_sum += filter_buf[i] * coe[i];
}
filter_sum /= sum_coe;
return filter_sum;
}
void setup() {
Serial.begin(9600); // 初始化串口通信
randomSeed(analogRead(0)); // 产生随机种子
}
void loop() {
Filter_Value = Filter(); // 获得滤波器输出值
Serial.println(Filter_Value); // 串口输出
delay(50);
}
| [
"quchunguang@gmail.com"
] | quchunguang@gmail.com |
e918a56e7af7cdbe08a600d655729c54ce102efa | ab81ae0e5c03d5518d535f4aa2e3437081e351af | /OCCT.Foundation.Net/Visualization/TKOpenGl/OpenGl/OpenGl_ShaderStates.cxx | 2aeaf2655a38189b46016195bb28288c28e63e38 | [] | no_license | sclshu3714/MODELWORX.CORE | 4f9d408e88e68ab9afd8644027392dc52469b804 | 966940b110f36509e58921d39e8c16b069e167fa | refs/heads/master | 2023-03-05T23:15:43.308268 | 2021-02-11T12:05:41 | 2021-02-11T12:05:41 | 299,492,644 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,633 | cxx | // Created on: 2013-10-02
// Created by: Denis BOGOLEPOV
// Copyright (c) 2013-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <OpenGl_ShaderStates.hxx>
// =======================================================================
// function : OpenGl_StateInterface
// purpose :
// =======================================================================
OpenGl_StateInterface::OpenGl_StateInterface()
: myIndex (0)
{
//
}
// =======================================================================
// function : OpenGl_ProjectionState
// purpose : Creates uninitialized projection state
// =======================================================================
OpenGl_ProjectionState::OpenGl_ProjectionState()
: myInverseNeedUpdate (false)
{
//
}
// =======================================================================
// function : Set
// purpose : Sets new OCCT projection state
// =======================================================================
void OpenGl_ProjectionState::Set (const OpenGl_Mat4& theProjectionMatrix)
{
myProjectionMatrix = theProjectionMatrix;
myInverseNeedUpdate = true;
}
// =======================================================================
// function : ProjectionMatrix
// purpose : Returns current projection matrix
// =======================================================================
const OpenGl_Mat4& OpenGl_ProjectionState::ProjectionMatrix() const
{
return myProjectionMatrix;
}
// =======================================================================
// function : ProjectionMatrixInverse
// purpose : Returns inverse of current projection matrix
// =======================================================================
const OpenGl_Mat4& OpenGl_ProjectionState::ProjectionMatrixInverse() const
{
if (!myInverseNeedUpdate)
{
return myProjectionMatrixInverse;
}
myProjectionMatrix.Inverted (myProjectionMatrixInverse);
return myProjectionMatrixInverse;
}
// =======================================================================
// function : OpenGl_ModelWorldState
// purpose : Creates uninitialized model-world state
// =======================================================================
OpenGl_ModelWorldState::OpenGl_ModelWorldState()
: myInverseNeedUpdate (false)
{
//
}
// =======================================================================
// function : Set
// purpose : Sets new model-world matrix
// =======================================================================
void OpenGl_ModelWorldState::Set (const OpenGl_Mat4& theModelWorldMatrix)
{
myModelWorldMatrix = theModelWorldMatrix;
myInverseNeedUpdate = true;
}
// =======================================================================
// function : ModelWorldMatrix
// purpose : Returns current model-world matrix
// =======================================================================
const OpenGl_Mat4& OpenGl_ModelWorldState::ModelWorldMatrix() const
{
return myModelWorldMatrix;
}
// =======================================================================
// function : ModelWorldMatrixInverse
// purpose : Returns inverse of current model-world matrix
// =======================================================================
const OpenGl_Mat4& OpenGl_ModelWorldState::ModelWorldMatrixInverse() const
{
if (!myInverseNeedUpdate)
{
return myModelWorldMatrix;
}
myModelWorldMatrix.Inverted (myModelWorldMatrixInverse);
return myModelWorldMatrixInverse;
}
// =======================================================================
// function : OpenGl_WorldViewState
// purpose : Creates uninitialized world-view state
// =======================================================================
OpenGl_WorldViewState::OpenGl_WorldViewState()
: myInverseNeedUpdate (false)
{
//
}
// =======================================================================
// function : Set
// purpose : Sets new world-view matrix
// =======================================================================
void OpenGl_WorldViewState::Set (const OpenGl_Mat4& theWorldViewMatrix)
{
myWorldViewMatrix = theWorldViewMatrix;
myInverseNeedUpdate = true;
}
// =======================================================================
// function : WorldViewMatrix
// purpose : Returns current world-view matrix
// =======================================================================
const OpenGl_Mat4& OpenGl_WorldViewState::WorldViewMatrix() const
{
return myWorldViewMatrix;
}
// =======================================================================
// function : WorldViewMatrixInverse
// purpose : Returns inverse of current world-view matrix
// =======================================================================
const OpenGl_Mat4& OpenGl_WorldViewState::WorldViewMatrixInverse() const
{
if (!myInverseNeedUpdate)
{
return myWorldViewMatrix;
}
myWorldViewMatrix.Inverted (myWorldViewMatrixInverse);
return myWorldViewMatrixInverse;
}
// =======================================================================
// function : OpenGl_ClippingState
// purpose : Creates new clipping state
// =======================================================================
OpenGl_ClippingState::OpenGl_ClippingState()
: myIndex (0),
myNextIndex (1)
{
//
}
// =======================================================================
// function : Update
// purpose : Updates current state
// =======================================================================
void OpenGl_ClippingState::Update()
{
myStateStack.Prepend (myIndex);
myIndex = myNextIndex; // use myNextIndex here to handle properly Update() after Revert()
++myNextIndex;
}
// =======================================================================
// function : Revert
// purpose : Reverts current state
// =======================================================================
void OpenGl_ClippingState::Revert()
{
if (!myStateStack.IsEmpty())
{
myIndex = myStateStack.First();
myStateStack.RemoveFirst();
}
else
{
myIndex = 0;
}
}
| [
"sclshu3714@163.com"
] | sclshu3714@163.com |
7c211765eb5e52a0d79d187e4956681f6e0fbbde | 59daee962170b43cb88a84babb83acc6fb382a8f | /FMEGraphics/inc/Engine.h | 64a03d95921c57d08423374f17fac100ca0a4558 | [
"MIT"
] | permissive | mohit3112/FullMetalEngine | da36ba209b62a93a9ee7fc69b086e68304ffc89b | 26fbdd14332f9ab158180efea176e7aaa47f570c | refs/heads/master | 2021-09-22T09:35:47.884072 | 2018-09-07T11:18:27 | 2018-09-07T11:18:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,697 | h | #ifndef ENGINE_H_
#define ENGINE_H_
#include "Camera.h"
#include "OpenGLWindow.h"
#include "SceneObject.h"
#include "DecoderComponent.h"
#include "TransformComponent.h"
#include <memory>
#include "Pipeline.h"
namespace FME
{
namespace Graphics
{
enum GameState
{
START,
RUN,
PAUSE,
STOP
};
/** \class Engine
* \brief A singleton class that implements the default engine. The engine is responsible for the camera, the scene, the OpenGL application and the pipeline
* the engine is the one managing the update and draw of the scenegraph as well as the effect pipeline
*/
class Engine
{
public:
static std::shared_ptr<Engine> Instance();
bool Alive() { return m_app->Alive(); };
void Update(double deltaTime);
void Draw() ;
void SetWindowSize(glm::ivec2 windowSize);
void SetScene(const std::string& jsonPath);
void SetEffects(const std::string& jsonPath);
void SetFPS(double fps = 30) { m_maxTimeStep = 1.0 / fps; };
double GetFPS() const {return double(1.0 / m_maxTimeStep);};
glm::ivec2 GetWindowSize() const { return m_windowSize; };
void SetCameraPresets(std::vector<std::pair<glm::vec3, glm::vec3>> cameraPresets) { m_cameraPresets = cameraPresets; };
void GetCamera(glm::mat4& view, glm::mat4& proj) const;
void SetActiveCamera(unsigned int index) { m_activeCamera = index; };
unsigned int GetActiveCamera() const {return m_activeCamera; };
glm::vec3 GetCameraPosition() const {return m_cameras[m_activeCamera]->GetPosition(); };
void PushFrame(const std::vector<unsigned char*>& image, int width, int height, bool alpha = false, int frameNum = -1);
Transform GetControllerUpdate(const char key) const;
protected:
Engine();
void updateOnce(double deltaTime);
void updateInput(std::vector<bool> keys, double deltaTime);
unsigned int updateGameLevel(std::vector<bool> keys);
void updateCamera(std::vector<bool> keys, double deltaTime);
static std::shared_ptr<Engine> _instance;
std::vector<std::shared_ptr<Camera>> m_cameras;
unsigned int m_activeCamera;
std::shared_ptr<OpenGLWindow> m_app;
std::shared_ptr<SceneObject> m_scene;
std::shared_ptr<DecoderComponent> m_decoder;
std::shared_ptr<Pipeline> m_pipeline;
double m_deltaTime = 0.0;
std::vector<unsigned int> m_gameLevels;
unsigned int m_currentGameLevel;
std::vector<std::pair<glm::vec3, glm::vec3>> m_cameraPresets; //per level
double m_accumulator;
double m_maxTimeStep;
double m_simulationTime;
std::string m_jsonPath;
glm::ivec2 m_windowSize;
};
}
}
#endif
| [
"nickyfullmetal@gmail.com"
] | nickyfullmetal@gmail.com |
e2acd39a0177bc12b328c59b68667d383a0a7b4d | 82facc6a8f6d5e07983fb6a9d58b072c75a769c8 | /core/src/index/ElementStore.hpp | 5c3faea84a4ebbc92901405d964e5d8c539bb798 | [
"Apache-2.0"
] | permissive | YoucefSklab/utymap | d0e1c9db8b5bfd657cb57207b30b436bbf154c97 | d8b777d0713a9450931732b8f42af1e6f0a0bedf | refs/heads/master | 2020-03-27T23:20:50.488234 | 2018-09-04T08:20:08 | 2018-09-04T08:20:08 | 147,311,520 | 1 | 0 | Apache-2.0 | 2018-09-04T08:14:51 | 2018-09-04T08:14:51 | null | UTF-8 | C++ | false | false | 2,851 | hpp | #ifndef INDEX_ELEMENTSTORE_HPP_DEFINED
#define INDEX_ELEMENTSTORE_HPP_DEFINED
#include "BoundingBox.hpp"
#include "CancellationToken.hpp"
#include "LodRange.hpp"
#include "QuadKey.hpp"
#include "entities/Element.hpp"
#include "entities/ElementVisitor.hpp"
#include "mapcss/StyleProvider.hpp"
namespace utymap {
namespace index {
/// Defines API to store elements.
class ElementStore {
public:
explicit ElementStore(const utymap::index::StringTable &stringTable);
virtual ~ElementStore() = default;
/// Searches for elements matches given query, bounding box and LOD range
virtual void search(const std::string ¬Terms,
const std::string &andTerms,
const std::string &orTerms,
const utymap::BoundingBox &bbox,
const utymap::LodRange &range,
utymap::entities::ElementVisitor &visitor,
const utymap::CancellationToken &cancelToken) = 0;
/// Searches for elements for given quadKey
virtual void search(const utymap::QuadKey &quadKey,
utymap::entities::ElementVisitor &visitor,
const utymap::CancellationToken &cancelToken) = 0;
/// Checks whether there is data for given quadkey.
virtual bool hasData(const utymap::QuadKey &quadKey) const = 0;
/// Stores element in storage in all affected tiles at given level of details range.
bool store(const utymap::entities::Element &element,
const utymap::LodRange &range,
const utymap::mapcss::StyleProvider &styleProvider);
/// Stores element in storage only in given quadkey.
bool store(const utymap::entities::Element &element,
const utymap::QuadKey &quadKey,
const utymap::mapcss::StyleProvider &styleProvider);
/// Stores element in storage only in given bounding box.
bool store(const utymap::entities::Element &element,
const utymap::BoundingBox &bbox,
const utymap::LodRange &range,
const utymap::mapcss::StyleProvider &styleProvider);
/// Saves element in given quadkey.
virtual void save(const utymap::entities::Element &element,
const utymap::QuadKey &quadKey) = 0;
/// Erases all data for given quad key.
virtual void erase(const utymap::QuadKey &quadKey) = 0;
/// Erases all data for given bbox and LOD range.
virtual void erase(const utymap::BoundingBox &bbox,
const utymap::LodRange &range) = 0;
private:
template<typename Visitor>
bool store(const utymap::entities::Element &element,
const utymap::LodRange &range,
const utymap::mapcss::StyleProvider &styleProvider,
const Visitor &visitor);
const std::uint32_t clipKeyId_, skipKeyId_;
};
}
}
#endif // INDEX_ELEMENTSTORE_HPP_DEFINED
| [
"ilya.builuk@gmail.com"
] | ilya.builuk@gmail.com |
24a5bdac9e82d828ce16856a16a4c23185731432 | 6b258384bccb97544a1236dabadae1768de4679d | /Billiards Project/Segment.h | e2478fed71bd7fb21aa9b3acc13eddbfed581e62 | [] | no_license | jherfson/Interactive-Physical-Modelling-Billiards-Project | aef61ce484759858ad4f0457a4e79376339f3e5c | cbe439ea8da90726494343257503b10b2dd393de | refs/heads/master | 2020-04-19T13:30:24.676346 | 2018-02-14T00:43:07 | 2018-02-14T00:43:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,291 | h | /*
Name: Jack D Smith, Rhys Murray
Student ID: B00308927, B00308897
I declare that the following code was produced by (Jack D Smith & Rhys Murray) as a group assignment for the IPM module and that this is our own work.
I am aware of the penalties incurred by submitting in full or in part work that is not our own and that was developed by third parties that are not appropriately acknowledged.
*/
#pragma once
#include <glm\glm\glm.hpp>
#include <float.h>
#include <glm\glm\gtc\matrix_transform.hpp>
#include <glm\glm\gtc\type_ptr.hpp>
#include <glm\glm\ext.hpp>
#include <GL\glut.h>
using namespace glm;
using namespace std;
class Segment
{
private:
//declare necessary segment properties
vec2 normal;
float d;
vec2 position1;
vec2 position2;
vec2 midPoint;
int id;
public:
Segment(glm::vec2 point, glm::vec2 vector, vec2 normal, int id);
virtual ~Segment() {};
//relevant getters for segment properties
vec2 getPosition1() { return position1; }
vec2 getPosition2() { return position2; }
vec2 getMidPoint() { return midPoint; }
vec2 getNormal() { return normal; }
vec2 getNormalizedNormal() { return glm::normalize(normal); }
int getID() { return id; }
float getD() { return d; }
void draw(int width, int height); //draw method for handling segment drawing
}; | [
"streamlined50@hotmail.com"
] | streamlined50@hotmail.com |
3b9e08e57c95ad48a336c8deccc46c38686c6958 | 1482cf4c3b3ac72743383eef27b8503e9578ede2 | /http1/connection.hpp | daad5520d04f7f973fe3f458f2c8505396fc45fd | [] | no_license | tushargosavi/asio_learn | 1e7df39384f99455e654f05ef082952a7d4ec6f9 | 72fc09fb8bbc3ab4c39c7538aa28983b0e649506 | refs/heads/master | 2016-09-14T10:12:05.218714 | 2016-06-07T19:16:47 | 2016-06-07T19:16:47 | 59,422,956 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 998 | hpp | #ifndef CONNECTION_H
#define CONNECTION_H
#include <vector>
#include <iostream>
#include <memory>
#include <boost/asio.hpp>
#include <boost/array.hpp>
using boost::asio::ip::tcp;
class connection {
public:
typedef boost::asio::buffers_iterator<
boost::asio::streambuf::const_buffers_type> iterator;
connection(tcp::socket socket):socket_(std::move(socket)) {
}
void start() {
do_read_request();
}
void stop() {
socket_.close();
}
private:
void do_read_request() {
std::cout << "Waiting for read message " << std::endl;
socket_.async_read_some(boost::asio::buffer(line),
[this](boost::system::error_code ec, size_t size) {
if (!ec) {
std::cout << "data received size " << size << std::endl;
socket_.close();
} else {
socket_.close();
}
});
}
tcp::socket socket_;
std::string request;
boost::array<char, 128> line;
};
typedef std::shared_ptr<connection> connection_ptr;
#endif | [
"tushar@apache.org"
] | tushar@apache.org |
c2482831d8ccb7500edd82d9b65b39fce234d21a | d1bac22ed3f4e00e6862bbc87a6fb4c904651a83 | /net/internet/http/headers.h | 3a60a5004efd61f44eec62e19ceeb1dd877e85d9 | [
"BSD-2-Clause"
] | permissive | guidoreina/gsniffer | 78f03e0cb333d6ef6444ef7be56fd61291e6950e | 0a5d619312a986204edf6372de8b2277596a255a | refs/heads/master | 2020-06-01T08:04:14.119275 | 2017-03-31T07:04:57 | 2017-03-31T07:04:57 | 5,222,082 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,807 | h | #ifndef HEADERS_H
#define HEADERS_H
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "net/internet/http/date.h"
#include "util/number.h"
#include "util/ranges.h"
#include "string/buffer.h"
#include "constants/months_and_days.h"
namespace net {
namespace internet {
namespace http {
enum header_type {
GENERAL_HEADER,
REQUEST_HEADER,
RESPONSE_HEADER,
ENTITY_HEADER
};
struct standard_header {
const char* name;
unsigned short len;
header_type type;
unsigned char comma_separated_list;
unsigned char single_token;
};
bool is_char(unsigned char c);
bool is_control(unsigned char c);
bool is_separator(unsigned char c);
struct header_name {
friend class headers;
public:
static const unsigned char ACCEPT = 0;
static const unsigned char ACCEPT_CHARSET = 1;
static const unsigned char ACCEPT_ENCODING = 2;
static const unsigned char ACCEPT_LANGUAGE = 3;
static const unsigned char ACCEPT_RANGES = 4;
static const unsigned char AGE = 5;
static const unsigned char ALLOW = 6;
static const unsigned char AUTHORIZATION = 7;
static const unsigned char CACHE_CONTROL = 8;
static const unsigned char CONNECTION = 9;
static const unsigned char CONTENT_ENCODING = 10;
static const unsigned char CONTENT_LANGUAGE = 11;
static const unsigned char CONTENT_LENGTH = 12;
static const unsigned char CONTENT_LOCATION = 13;
static const unsigned char CONTENT_MD5 = 14;
static const unsigned char CONTENT_RANGE = 15;
static const unsigned char CONTENT_TYPE = 16;
static const unsigned char COOKIE = 17;
static const unsigned char DATE = 18;
static const unsigned char ETAG = 19;
static const unsigned char EXPECT = 20;
static const unsigned char EXPIRES = 21;
static const unsigned char FROM = 22;
static const unsigned char HOST = 23;
static const unsigned char IF_MATCH = 24;
static const unsigned char IF_MODIFIED_SINCE = 25;
static const unsigned char IF_NONE_MATCH = 26;
static const unsigned char IF_RANGE = 27;
static const unsigned char IF_UNMODIFIED_SINCE = 28;
static const unsigned char KEEP_ALIVE = 29;
static const unsigned char LAST_MODIFIED = 30;
static const unsigned char LOCATION = 31;
static const unsigned char MAX_FORWARDS = 32;
static const unsigned char PRAGMA = 33;
static const unsigned char PROXY_AUTHENTICATE = 34;
static const unsigned char PROXY_AUTHORIZATION = 35;
static const unsigned char PROXY_CONNECTION = 36;
static const unsigned char RANGE = 37;
static const unsigned char REFERER = 38;
static const unsigned char RETRY_AFTER = 39;
static const unsigned char SERVER = 40;
static const unsigned char SET_COOKIE = 41;
static const unsigned char STATUS = 42;
static const unsigned char TE = 43;
static const unsigned char TRAILER = 44;
static const unsigned char TRANSFER_ENCODING = 45;
static const unsigned char UPGRADE = 46;
static const unsigned char USER_AGENT = 47;
static const unsigned char VARY = 48;
static const unsigned char VIA = 49;
static const unsigned char WARNING = 50;
static const unsigned char WWW_AUTHENTICATE = 51;
static const unsigned char UNKNOWN = 0xff;
static const size_t MAX_LEN = 256;
// Constructor.
header_name();
header_name(unsigned char v);
header_name(const char* n, size_t l);
header_name(unsigned char v, const char* n, size_t l);
// Valid header name character?
static bool valid_character(unsigned char c);
unsigned char value;
mutable const char* name;
unsigned short len;
private:
size_t off;
};
struct header_value {
friend class headers;
public:
// Constructor.
header_value();
header_value(const char* v, size_t l);
// Valid header value character?
static bool valid_character(unsigned char c);
mutable const char* value;
unsigned short len;
private:
size_t off;
};
struct header {
header_name name;
header_value value;
};
class headers {
public:
static const size_t HEADERS_MAX_LEN = 64 * 1024;
static const size_t BOUNDARY_LEN = 11;
static const unsigned MAX_RANGES = 16;
// Constructor.
headers(bool ignore_errors = true);
// Destructor.
~headers();
// Free.
void free();
// Reset.
void reset();
// Get header.
const struct header* get_header(unsigned idx) const;
// Get header value.
const header_value* get_header_value(unsigned char header) const;
bool get_header_value(unsigned char header, time_t& t, struct tm& timestamp) const;
bool get_header_value(unsigned char header, time_t& t) const;
bool get_header_value(unsigned char header, unsigned& n) const;
bool get_header_value(unsigned char header, off_t& n) const;
const header_value* get_header_value(const char* name, size_t len) const;
// Get ranges.
bool get_ranges(off_t filesize, util::ranges& ranges) const;
// Add header.
bool add(const struct header& h);
bool add(const header_name& name, const header_value& value);
bool add(const header_name& name, const struct tm& tm);
bool add(const header_name& name, time_t t);
bool add(const header_name& name, off_t n);
bool add(const header_name& name, size_t n);
// Remove header.
bool remove(unsigned char header);
bool remove(const char* name, size_t len);
// Parse.
enum parse_result {
PARSE_NO_MEMORY,
PARSE_INVALID_HEADER,
PARSE_HEADERS_TOO_LARGE,
PARSE_NOT_END_OF_HEADER,
PARSE_END_OF_HEADER
};
parse_result parse(const void* buf, size_t count);
// Serialize.
bool serialize(string::buffer& buf) const;
// Get header size.
size_t size() const;
protected:
static const size_t HEADER_ALLOC = 8;
static const struct standard_header _M_standard_headers[];
struct header* _M_headers;
size_t _M_size;
size_t _M_used;
string::buffer _M_buf;
struct state {
unsigned char header;
size_t name;
size_t namelen;
size_t value;
size_t value_end;
size_t size;
int state;
void reset();
};
state _M_state;
bool _M_ignore_errors;
// Search standard header.
static unsigned char search_standard_header(const char* name, size_t len);
// Search header.
bool search(unsigned char header, unsigned& pos) const;
bool search(const char* name, size_t len, unsigned& pos) const;
// Allocate.
bool allocate();
// Clean.
int clean(const header_value& value, char* dest) const;
};
inline bool is_char(unsigned char c)
{
return ((c >= 0) && (c <= 127));
}
inline bool is_control(unsigned char c)
{
return (((c >= 0) && (c <= 31)) || (c == 127));
}
inline bool is_separator(unsigned char c)
{
switch (c) {
case '(':
case ')':
case '<':
case '>':
case '@':
case ',':
case ';':
case ':':
case '\\':
case '"':
case '/':
case '[':
case ']':
case '?':
case '=':
case '{':
case '}':
case ' ':
case '\t':
return true;
default:
return false;
}
}
inline header_name::header_name()
{
}
inline header_name::header_name(unsigned char v)
{
value = v;
}
inline header_name::header_name(const char* n, size_t l)
{
value = UNKNOWN;
name = n;
len = l;
}
inline header_name::header_name(unsigned char v, const char* n, size_t l)
{
value = v;
name = n;
len = l;
}
inline bool header_name::valid_character(unsigned char c)
{
return ((is_char(c)) && (!is_control(c)) && (!is_separator(c)));
}
inline header_value::header_value()
{
}
inline header_value::header_value(const char* v, size_t l)
{
value = v;
len = l;
}
inline bool header_value::valid_character(unsigned char c)
{
return ((c == '\t') || (!is_control(c)));
}
inline headers::headers(bool ignore_errors) : _M_buf(512)
{
_M_headers = NULL;
_M_size = 0;
_M_used = 0;
_M_state.reset();
_M_ignore_errors = ignore_errors;
}
inline headers::~headers()
{
free();
}
inline void headers::free()
{
if (_M_headers) {
::free(_M_headers);
_M_headers = NULL;
}
_M_size = 0;
_M_used = 0;
_M_buf.free();
_M_state.reset();
}
inline void headers::reset()
{
_M_used = 0;
_M_buf.reset();
_M_state.reset();
}
inline const struct header* headers::get_header(unsigned idx) const
{
if (idx >= _M_used) {
return NULL;
}
const struct header* h = &_M_headers[idx];
if (h->name.value == header_name::UNKNOWN) {
h->name.name = _M_buf.data() + h->name.off;
}
h->value.value = _M_buf.data() + h->value.off;
return h;
}
inline const header_value* headers::get_header_value(unsigned char header) const
{
unsigned pos;
if (!search(header, pos)) {
return NULL;
}
const struct header* h = &_M_headers[pos];
h->value.value = _M_buf.data() + h->value.off;
return &h->value;
}
inline bool headers::get_header_value(unsigned char header, time_t& t, struct tm& timestamp) const
{
const header_value* value;
if ((value = get_header_value(header)) == NULL) {
return false;
}
return ((t = date::parse(value->value, value->len, timestamp)) != (time_t) -1);
}
inline bool headers::get_header_value(unsigned char header, time_t& t) const
{
const header_value* value;
if ((value = get_header_value(header)) == NULL) {
return false;
}
struct tm timestamp;
return ((t = date::parse(value->value, value->len, timestamp)) != (time_t) -1);
}
inline bool headers::get_header_value(unsigned char header, unsigned& n) const
{
const header_value* value;
if ((value = get_header_value(header)) == NULL) {
return false;
}
return (util::number::parse(value->value, value->len, n) == util::number::PARSE_SUCCEEDED);
}
inline bool headers::get_header_value(unsigned char header, off_t& n) const
{
const header_value* value;
if ((value = get_header_value(header)) == NULL) {
return false;
}
return (util::number::parse(value->value, value->len, n) == util::number::PARSE_SUCCEEDED);
}
inline const header_value* headers::get_header_value(const char* name, size_t len) const
{
unsigned pos;
if (!search(name, len, pos)) {
return NULL;
}
const struct header* h = &_M_headers[pos];
h->value.value = _M_buf.data() + h->value.off;
return &h->value;
}
inline bool headers::add(const struct header& h)
{
return add(h.name, h.value);
}
inline bool headers::add(const header_name& name, const struct tm& tm)
{
char buf[32];
header_value value;
value.value = buf;
value.len = snprintf(buf, sizeof(buf), "%s, %02u %s %u %02u:%02u:%02u GMT", constants::days[tm.tm_wday], tm.tm_mday, constants::months[tm.tm_mon], 1900 + tm.tm_year, tm.tm_hour, tm.tm_min, tm.tm_sec);
return add(name, value);
}
inline bool headers::add(const header_name& name, time_t t)
{
struct tm tm;
gmtime_r(&t, &tm);
return add(name, tm);
}
inline bool headers::add(const header_name& name, off_t n)
{
char buf[32];
header_value value;
value.value = buf;
value.len = snprintf(buf, sizeof(buf), "%lld", n);
return add(name, value);
}
inline bool headers::add(const header_name& name, size_t n)
{
char buf[32];
header_value value;
value.value = buf;
value.len = snprintf(buf, sizeof(buf), "%lu", n);
return add(name, value);
}
inline size_t headers::size() const
{
return _M_state.size;
}
inline void headers::state::reset()
{
namelen = 0;
value_end = 0;
size = 0;
state = 0;
}
}
}
}
#endif // HEADERS_H
| [
"guido.reina@yahoo.com"
] | guido.reina@yahoo.com |
779ac9a2dce72ce1dd9c070ae9836a25a145ffca | 44227276cdce0d15ee0cdd19a9f38a37b9da33d7 | /arcane/src/arcane/mesh/EdgeUniqueIdBuilder.cc | 9947b5930f630ec65d410bf60a574344ef9f79c2 | [
"Apache-2.0",
"LGPL-2.1-or-later"
] | permissive | arcaneframework/framework | 7d0050f0bbceb8cc43c60168ba74fff0d605e9a3 | 813cfb5eda537ce2073f32b1a9de6b08529c5ab6 | refs/heads/main | 2023-08-19T05:44:47.722046 | 2023-08-11T16:22:12 | 2023-08-11T16:22:12 | 357,932,008 | 31 | 21 | Apache-2.0 | 2023-09-14T16:42:12 | 2021-04-14T14:21:07 | C++ | UTF-8 | C++ | false | false | 24,574 | cc | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2.0
//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/
/* EdgeUniqueIdBuilder.cc (C) 2000-2022 */
/* */
/* Construction des indentifiants uniques des edges. */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
#include "arcane/utils/PlatformUtils.h"
#include "arcane/utils/ScopedPtr.h"
#include "arcane/utils/ITraceMng.h"
#include "arcane/utils/OStringStream.h"
#include "arcane/mesh/DynamicMesh.h"
#include "arcane/mesh/EdgeUniqueIdBuilder.h"
#include "arcane/mesh/GhostLayerBuilder.h"
#include "arcane/mesh/OneMeshItemAdder.h"
#include "arcane/IParallelExchanger.h"
#include "arcane/IParallelMng.h"
#include "arcane/ISerializeMessage.h"
#include "arcane/ISerializer.h"
#include "arcane/ParallelMngUtils.h"
#include "arcane/IMeshUniqueIdMng.h"
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
namespace Arcane::mesh
{
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
EdgeUniqueIdBuilder::
EdgeUniqueIdBuilder(DynamicMeshIncrementalBuilder* mesh_builder)
: TraceAccessor(mesh_builder->mesh()->traceMng())
, m_mesh(mesh_builder->mesh())
, m_mesh_builder(mesh_builder)
{
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
EdgeUniqueIdBuilder::
~EdgeUniqueIdBuilder()
{
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void EdgeUniqueIdBuilder::
computeEdgesUniqueIds()
{
double begin_time = platform::getRealTime();
Int32 edge_version = m_mesh->meshUniqueIdMng()->edgeBuilderVersion();
info() << "Using version=" << edge_version << " to compute edges unique ids"
<< " mesh=" << m_mesh->name();
if (edge_version==1)
_computeEdgesUniqueIdsParallel3();
else if (edge_version==2)
_computeEdgesUniqueIdsParallelV2();
else if (edge_version==0)
info() << "No renumbering for edges";
else
ARCANE_FATAL("Invalid valid version '{0}'. Valid values are 0, 1 or 2");
double end_time = platform::getRealTime();
Real diff = (Real)(end_time - begin_time);
info() << "TIME to compute edge unique ids=" << diff;
ItemInternalMap& edges_map = m_mesh->edgesMap();
// Il faut ranger à nouveau #m_edges_map car les uniqueId() des
// edges ont été modifiés
edges_map.notifyUniqueIdsChanged();
if (m_mesh_builder->isVerbose()){
info() << "NEW EDGES_MAP after re-indexing";
ENUMERATE_ITEM_INTERNAL_MAP_DATA(nbid,edges_map){
ItemInternal* edge = nbid->value();
info() << "Edge uid=" << edge->uniqueId() << " lid=" << edge->localId();
}
}
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*!
* \internal
* \brief Classe d'aide pour la détermination en parallèle
* des unique_id des edges.
*
* \note Tous les champs de cette classe doivent être de type Int64
* car elle est sérialisée par cast en Int64*.
*/
class T_CellEdgeInfo
{
public:
T_CellEdgeInfo(Int64 uid,Integer nb_back_edge,Integer nb_true_boundary_edge)
: m_unique_id(uid), m_nb_back_edge(nb_back_edge), m_nb_true_boundary_edge(nb_true_boundary_edge)
{
}
T_CellEdgeInfo()
: m_unique_id(NULL_ITEM_ID), m_nb_back_edge(0), m_nb_true_boundary_edge(0)
{
}
public:
bool operator<(const T_CellEdgeInfo& ci) const
{
return m_unique_id<ci.m_unique_id;
}
public:
Int64 m_unique_id;
Int64 m_nb_back_edge;
Int64 m_nb_true_boundary_edge;
};
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*!
* //COPIE DEPUIS GhostLayerBuilder.
* Faire une classe unique.
*/
void EdgeUniqueIdBuilder::
_exchangeData(IParallelExchanger* exchanger,BoundaryInfosMap& boundary_infos_to_send)
{
for( BoundaryInfosMapEnumerator i_map(boundary_infos_to_send); ++i_map; ){
Int32 sd = i_map.data()->key();
exchanger->addSender(sd);
}
exchanger->initializeCommunicationsMessages();
{
for( Integer i=0, ns=exchanger->nbSender(); i<ns; ++i ){
ISerializeMessage* sm = exchanger->messageToSend(i);
Int32 rank = sm->destination().value();
ISerializer* s = sm->serializer();
Int64ConstArrayView infos = boundary_infos_to_send[rank];
Integer nb_info = infos.size();
s->setMode(ISerializer::ModeReserve);
s->reserve(DT_Int64,1); // Pour le nombre d'elements
s->reserveSpan(DT_Int64,nb_info); // Pour les elements
s->allocateBuffer();
s->setMode(ISerializer::ModePut);
//info() << " SEND1 rank=" << rank << " nb_info=" << nb_info;
s->putInt64(nb_info);
s->putSpan(infos);
}
}
exchanger->processExchange();
debug() << "END EXCHANGE";
}
template<typename DataType>
class ItemInfoMultiList
{
public:
private:
class MyInfo
{
public:
MyInfo(const DataType& d,Integer n) : data(d), next_index(n) {}
public:
DataType data;
Integer next_index;
};
public:
ItemInfoMultiList() : m_last_index(5000,true) {}
public:
void add(Int64 node_uid,const DataType& data)
{
Integer current_index = m_values.size();
bool is_add = false;
HashTableMapT<Int64,Int32>::Data* d = m_last_index.lookupAdd(node_uid,-1,is_add);
m_values.add(MyInfo(data,d->value()));
d->value() = current_index;
}
public:
UniqueArray<MyInfo> m_values;
HashTableMapT<Int64,Int32> m_last_index;
};
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*!
\brief Calcul les numéros uniques de chaque edge en parallèle.
NEW VERSION.
NOTE: GG Juin 2022
Il semble que cette version ne fonctionne pas toujours lorsqu'elle est
appelée est que le maillage est déjà découpé. Cela est du au fait que
l'algorithme si-dessus est recopié sur celui qui calcule les uniqueId() des
faces (dans FaceUniqueIdBuilder). Cependant, l'algorithme de calcul des faces
suppose qu'une face frontière n'existe que dans une seule partie (un seul rang)
ce qui n'est pas le cas pour les arêtes. On se retrouve alors avec des sous-domaines
qui n'ont pas leurs arêtes renumérotées.
*/
void EdgeUniqueIdBuilder::
_computeEdgesUniqueIdsParallel3()
{
const bool is_verbose = m_mesh_builder->isVerbose();
IParallelMng* pm = m_mesh->parallelMng();
Integer my_rank = pm->commRank();
Integer nb_rank = pm->commSize();
Integer nb_local_edge = m_mesh_builder->oneMeshItemAdder()->nbEdge();
info() << "ComputeEdgesUniqueIdsParallel3 nb_edge=" << nb_local_edge;
//Integer nb_local_cell = m_mesh_builder->nbCell();
//bool is_verbose = m_mesh_builder->isVerbose();
Int64UniqueArray edges_opposite_cell_uid(nb_local_edge);
edges_opposite_cell_uid.fill(NULL_ITEM_ID);
IntegerUniqueArray edges_opposite_cell_index(nb_local_edge);
IntegerUniqueArray edges_opposite_cell_owner(nb_local_edge);
// Pour vérification, s'assure que tous les éléments de ce tableau
// sont valides, ce qui signifie que toutes les edges ont bien été
// renumérotés
Int64UniqueArray edges_new_uid(nb_local_edge);
edges_new_uid.fill(NULL_ITEM_ID);
//UniqueArray<T_EdgeInfo> edges_local_infos(m_mesh_nb_edge);
//Integer nb_recv_sub_domain_boundary_edge = 0;
Int64UniqueArray edges_infos;
edges_infos.reserve(10000);
//ItemInternalMap& cells_map = m_mesh->cellsMap();
ItemInternalMap& edges_map = m_mesh->edgesMap();
ItemInternalMap& faces_map = m_mesh->facesMap(); // utilisé pour détecter le bord
ItemInternalMap& nodes_map = m_mesh->nodesMap();
// NOTE: ce tableau n'est pas utile sur toutes les mailles. Il
// suffit qu'il contienne les mailles dont on a besoin, c'est à dire
// les notres + celles connectées à une de nos edges.
HashTableMapT<Int32,Int32> cell_first_edge_uid(m_mesh_builder->oneMeshItemAdder()->nbCell()*2,true);
//OLD Int64UniqueArray cell_first_edge_uid(global_max_cell_uid+1);
//OLD cell_first_edge_uid.fill(0);
// Rassemble les données des autres processeurs dans recv_cells;
// Pour éviter que les tableaux ne soient trop gros, on procède en plusieurs
// étapes.
// Chaque sous-domaine construit sa liste de edges frontières, avec pour
// chaque edge:
// - son type
// - la liste de ses noeuds,
// - le numéro unique de sa maille
// - le propriétaire de sa maille
// - son indice dans sa maille
// Cette liste sera ensuite envoyée à tous les sous-domaines.
ItemTypeMng* itm = m_mesh->itemTypeMng();
// Détermine le unique id max des noeuds
Int64 my_max_node_uid = NULL_ITEM_UNIQUE_ID;
ENUMERATE_ITEM_INTERNAL_MAP_DATA(nbid,nodes_map){
ItemInternal* node = nbid->value();
Int64 node_uid = node->uniqueId();
if (node_uid>my_max_node_uid)
my_max_node_uid = node_uid;
}
Int64 global_max_node_uid = pm->reduce(Parallel::ReduceMax,my_max_node_uid);
debug() << "NODE_UID_INFO: MY_MAX_UID=" << my_max_node_uid
<< " GLOBAL=" << global_max_node_uid;
//TODO: choisir bonne valeur pour initialiser la table
BoundaryInfosMap boundary_infos_to_send(nb_rank,true);
NodeUidToSubDomain uid_to_subdomain_converter(global_max_node_uid,nb_rank);
HashTableMapT<Int64,SharedArray<Int64> > nodes_info(100000,true);
IItemFamily* node_family = m_mesh->nodeFamily();
UniqueArray<bool> is_boundary_nodes(node_family->maxLocalId(),false);
// Marque tous les noeuds frontieres car ce sont ceux qu'il faudra envoyer
ENUMERATE_ITEM_INTERNAL_MAP_DATA(nbid,faces_map){
Face face = nbid->value();
Integer face_nb_cell = face.nbCell();
if (face_nb_cell==1){
for( Int32 ilid : face.nodeIds() )
is_boundary_nodes[ilid] = true;
}
}
// Détermine la liste des edges frontières
ENUMERATE_ITEM_INTERNAL_MAP_DATA(nbid,edges_map){
Edge edge = nbid->value();
Node first_node = edge.node(0);
Int64 first_node_uid = first_node.uniqueId();
SharedArray<Int64> v;
Int32 dest_rank = -1;
if (!is_boundary_nodes[first_node.localId()]){
v = nodes_info.lookupAdd(first_node_uid)->value();
}
else{
dest_rank = uid_to_subdomain_converter.uidToRank(first_node_uid);
v = boundary_infos_to_send.lookupAdd(dest_rank)->value();
}
v.add(first_node_uid); // 0
v.add(my_rank); // 1
v.add(edge.uniqueId()); // 2
v.add(edge.type()); // 3
v.add(NULL_ITEM_UNIQUE_ID); // 4 : only used for debug
v.add(NULL_ITEM_UNIQUE_ID); // 5 : only used for debug
if (is_verbose)
info() << "Edge uid=" << edge.uniqueId() << " n0,n1=" << edge.node(0).uniqueId() << "," << edge.node(1).uniqueId()
<< " n0=" << ItemPrinter(edge.node(0)) << " n1=" << ItemPrinter(edge.node(1)) << " dest_rank=" << dest_rank;
for( Node edge_node : edge.nodes() )
v.add(edge_node.uniqueId());
}
// Positionne la liste des envoies
Ref<IParallelExchanger> exchanger{ParallelMngUtils::createExchangerRef(pm)};
_exchangeData(exchanger.get(),boundary_infos_to_send);
{
Integer nb_receiver = exchanger->nbReceiver();
debug() << "NB RECEIVER=" << nb_receiver;
SharedArray<Int64> received_infos;
for( Integer i=0; i<nb_receiver; ++i ){
ISerializeMessage* sm = exchanger->messageToReceive(i);
//Int32 orig_rank = sm->destSubDomain();
ISerializer* s = sm->serializer();
s->setMode(ISerializer::ModeGet);
Int64 nb_info = s->getInt64();
//info() << "RECEIVE NB_INFO=" << nb_info << " from=" << orig_rank;
received_infos.resize(nb_info);
s->getSpan(received_infos);
//if ((nb_info % 3)!=0)
//fatal() << "info size can not be divided by 3";
Integer z =0;
while(z<nb_info){
Int64 node_uid = received_infos[z+0];
//Int64 sender_rank = received_infos[z+1];
//Int64 edge_uid = received_infos[z+2];
Int32 edge_type = (Int32)received_infos[z+3];
// received_infos[z+4];
// received_infos[z+5];
ItemTypeInfo* itt = itm->typeFromId(edge_type);
Integer edge_nb_node = itt->nbLocalNode();
Int64Array& a = nodes_info.lookupAdd(node_uid)->value();
a.addRange(Int64ConstArrayView(6+edge_nb_node,&received_infos[z]));
z += 6;
z += edge_nb_node;
//info() << "NODE UID=" << node_uid << " sender=" << sender_rank
// << " edge_uid=" << edge_uid;
//node_cell_list.add(node_uid,cell_uid,cell_owner);
//HashTableMapT<Int64,Int32>::Data* v = nodes_nb_cell.lookupAdd(node_uid);
//++v->value();
}
}
Integer my_max_edge_node = 0;
for( HashTableMapT<Int64,SharedArray<Int64> >::Enumerator inode(nodes_info); ++inode; ){
//Int64 key = inode.data()->key();
Int64ConstArrayView a = *inode;
//info() << "A key=" << key << " size=" << a.size();
Integer nb_info = a.size();
Integer z = 0;
Integer node_nb_edge = 0;
while(z<nb_info){
++node_nb_edge;
//Int64 node_uid = a[z+0];
//Int64 sender_rank = a[z+1];
//Int64 edge_uid = a[z+2];
Int32 edge_type = (Int32)a[z+3];
// a[z+4];
// a[z+5];
ItemTypeInfo* itt = itm->typeFromId(edge_type);
Integer edge_nb_node = itt->nbLocalNode();
/*info() << "NODE2 UID=" << node_uid << " sender=" << sender_rank
<< " edge_uid=" << edge_uid */
//for( Integer y=0; y<edge_nb_node; ++y )
//info() << "Nodes = i="<< y << " " << a[z+6+y];
z += 6;
z += edge_nb_node;
}
my_max_edge_node = math::max(node_nb_edge,my_max_edge_node);
}
Integer global_max_edge_node = pm->reduce(Parallel::ReduceMax,my_max_edge_node);
debug() << "GLOBAL MAX EDGE NODE=" << global_max_edge_node;
// OK, maintenant donne comme uid de la edge (node_uid * global_max_edge_node + index)
IntegerUniqueArray indexes;
boundary_infos_to_send = BoundaryInfosMap(nb_rank,true);
for( HashTableMapT<Int64,SharedArray<Int64> >::Enumerator inode(nodes_info); ++inode; ){
//Int64 key = inode.data()->key();
Int64ConstArrayView a = *inode;
//info() << "A key=" << key << " size=" << a.size();
Integer nb_info = a.size();
Integer z = 0;
Integer node_nb_edge = 0;
indexes.clear();
while(z<nb_info){
Int64 node_uid = a[z+0];
Int32 sender_rank = (Int32)a[z+1];
Int64 edge_uid = a[z+2];
Int32 edge_type = (Int32)a[z+3];
// a[z+4];
// a[z+5];
ItemTypeInfo* itt = itm->typeFromId(edge_type);
Integer edge_nb_node = itt->nbLocalNode();
// Regarde si la edge est déjà dans la liste:
Integer edge_index = node_nb_edge;
Int32 edge_new_owner = sender_rank;
for( Integer y=0; y<node_nb_edge; ++y ){
if (memcmp(&a[indexes[y]+6],&a[z+6],sizeof(Int64)*edge_nb_node)==0){
edge_index = y;
edge_new_owner = (Int32)a[indexes[y]+1];
}
}
Int64 edge_new_uid = (node_uid * global_max_edge_node) + edge_index;
Int64Array& v = boundary_infos_to_send.lookupAdd(sender_rank)->value();
// Indique au propriétaire de cette edge son nouvel uid
v.add(edge_uid);
v.add(edge_new_uid);
v.add(edge_new_owner);
indexes.add(z);
z += 6;
z += edge_nb_node;
/*info() << "NODE3 UID=" << node_uid << " sender=" << sender_rank
<< " edge_uid=" << edge_uid
<< " edge_index=" << edge_index;*/
++node_nb_edge;
}
my_max_edge_node = math::max(node_nb_edge,my_max_edge_node);
}
}
exchanger = ParallelMngUtils::createExchangerRef(pm);
_exchangeData(exchanger.get(),boundary_infos_to_send);
{
Integer nb_receiver = exchanger->nbReceiver();
debug() << "NB RECEIVER=" << nb_receiver;
Int64UniqueArray received_infos;
for( Integer i=0; i<nb_receiver; ++i ){
ISerializeMessage* sm = exchanger->messageToReceive(i);
auto orig_rank = sm->destination();
ISerializer* s = sm->serializer();
s->setMode(ISerializer::ModeGet);
Int64 nb_info = s->getInt64();
if (is_verbose)
info() << "RECEIVE NB_INFO=" << nb_info << " from=" << orig_rank;
received_infos.resize(nb_info);
s->getSpan(received_infos);
if ((nb_info % 3)!=0)
ARCANE_FATAL("info size can not be divided by 3 x={0}",nb_info);
Int64 nb_item = nb_info / 3;
for (Int64 z=0; z<nb_item; ++z ){
Int64 old_uid = received_infos[(z*3)];
Int64 new_uid = received_infos[(z*3)+1];
Int32 new_owner = (Int32)received_infos[(z*3)+2];
//info() << "EDGE old_uid=" << old_uid << " new_uid=" << new_uid;
ItemInternalMapData* edge_data = edges_map.lookup(old_uid);
if (!edge_data)
ARCANE_FATAL("Can not find own edge uid={0}",old_uid);
ItemInternal* iedge = edge_data->value();
Edge edge{iedge};
iedge->setUniqueId(new_uid);
iedge->setOwner(new_owner,my_rank);
if (is_verbose)
info() << "SetEdgeOwner uid=" << new_uid << " owner=" << new_owner
<< " n0,n1=" << edge.node(0).uniqueId() << "," << edge.node(1).uniqueId()
<< " n0=" << ItemPrinter(edge.node(0)) << " n1=" << ItemPrinter(edge.node(1));
}
}
}
traceMng()->flush();
pm->barrier();
info() << "END OF TEST NEW EDGE COMPUTE";
return;
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*!
\brief Calcul les numéros uniques de chaque edge en séquentiel.
\sa computeEdgesUniqueIds()
*/
void EdgeUniqueIdBuilder::
_computeEdgesUniqueIdsSequential()
{
bool is_verbose = m_mesh_builder->isVerbose();
Integer nb_cell = m_mesh_builder->oneMeshItemAdder()->nbCell();
ItemInternalMap& cells_map = m_mesh->cellsMap();
// En séquentiel, les uniqueId() des mailles ne peuvent dépasser la
// taille des Integers même en 32bits.
Int32 max_uid = 0;
ENUMERATE_ITEM_INTERNAL_MAP_DATA(nbid,cells_map){
ItemInternal* cell = nbid->value();
Int32 cell_uid = cell->uniqueId().asInt32();
if (cell_uid>max_uid)
max_uid = cell_uid;
}
info() << "Max uid=" << max_uid;
Int32UniqueArray cell_first_edge_uid(max_uid+1);
Int32UniqueArray cell_nb_num_back_edge(max_uid+1);
Int32UniqueArray cell_true_boundary_edge(max_uid+1);
ENUMERATE_ITEM_INTERNAL_MAP_DATA(nbid,cells_map){
Cell cell = nbid->value();
Int32 cell_uid = cell.uniqueId().asInt32();
Integer nb_num_back_edge = 0;
Integer nb_true_boundary_edge = 0;
for( Edge edge : cell.edges()){
if (edge.itemBase().backCell()==cell)
++nb_num_back_edge;
else if (edge.nbCell()==1){
++nb_true_boundary_edge;
}
}
cell_nb_num_back_edge[cell_uid] = nb_num_back_edge;
cell_true_boundary_edge[cell_uid] = nb_true_boundary_edge;
}
Integer current_edge_uid = 0;
for( Integer i=0; i<nb_cell; ++i ){
cell_first_edge_uid[i] = current_edge_uid;
current_edge_uid += cell_nb_num_back_edge[i] + cell_true_boundary_edge[i];
}
if (is_verbose){
for( Integer i=0; i<nb_cell; ++i ){
info() << "Recv: Cell EdgeInfo celluid=" << i
<< " firstedgeuid=" << cell_first_edge_uid[i]
<< " nbback=" << cell_nb_num_back_edge[i]
<< " nbbound=" << cell_true_boundary_edge[i];
}
}
ENUMERATE_ITEM_INTERNAL_MAP_DATA(nbid,cells_map){
Cell cell = nbid->value();
Int32 cell_uid = cell.uniqueId().asInt32();
Integer nb_num_back_edge = 0;
Integer nb_true_boundary_edge = 0;
for( Edge edge : cell.edges() ){
Int64 edge_new_uid = NULL_ITEM_UNIQUE_ID;
//info() << "CHECK CELLUID=" << cell_uid << " EDGELID=" << edge->localId();
if (edge.itemBase().backCell()==cell){
edge_new_uid = cell_first_edge_uid[cell_uid] + nb_num_back_edge;
++nb_num_back_edge;
}
else if (edge.nbCell()==1){
edge_new_uid = cell_first_edge_uid[cell_uid] + cell_nb_num_back_edge[cell_uid] + nb_true_boundary_edge;
++nb_true_boundary_edge;
}
if (edge_new_uid!=NULL_ITEM_UNIQUE_ID){
//info() << "NEW EDGE UID: LID=" << edge->localId() << " OLDUID=" << edge->uniqueId()
//<< " NEWUID=" << edge_new_uid << " THIS=" << edge;
edge.mutableItemBase().setUniqueId(edge_new_uid);
}
}
}
if (is_verbose){
OStringStream ostr;
ENUMERATE_ITEM_INTERNAL_MAP_DATA(nbid,cells_map){
Cell cell = nbid->value();
Int32 cell_uid = cell.uniqueId().asInt32();
Integer index = 0;
for( Edge edge : cell.edges() ){
Int64 opposite_cell_uid = NULL_ITEM_UNIQUE_ID;
bool true_boundary = false;
bool internal_other = false;
if (edge.itemBase().backCell()==cell){
}
else if (edge.nbCell()==1){
true_boundary = true;
}
else{
internal_other = true;
opposite_cell_uid = edge.itemBase().backCell().uniqueId().asInt64();
}
ostr() << "NEW LOCAL ID FOR CELLEDGE " << cell_uid << ' '
<< index << ' ' << edge.uniqueId() << " (";
for( Node node : edge.nodes() ){
ostr() << ' ' << node.uniqueId();
}
ostr() << ")";
if (internal_other)
ostr() << " internal-other";
if (true_boundary)
ostr() << " true-boundary";
if (opposite_cell_uid!=NULL_ITEM_ID)
ostr() << " opposite " << opposite_cell_uid;
ostr() << '\n';
++index;
}
}
info() << ostr.str();
}
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
void EdgeUniqueIdBuilder::
_computeEdgesUniqueIdsParallelV2()
{
// Positionne les uniqueId() des arêtes de manière très simple.
// Si le maximum des uniqueId() des noeuds est MAX_NODE_UID, alors
// le uniqueId() d'une arête est :
//
// node(0).uniqueId() * MAX_NODE_UID + node(1).uniqueId()
//
// Cela ne fonctionne que si MAX_NODE_UID est inférieur à 2^31.
IParallelMng* pm = m_mesh->parallelMng();
ItemInternalMap& nodes_map = m_mesh->nodesMap();
ItemInternalMap& edges_map = m_mesh->edgesMap();
Int64 max_uid = 0;
ENUMERATE_ITEM_INTERNAL_MAP_DATA(nbid,nodes_map){
ItemInternal* node = nbid->value();
if (node->uniqueId()>max_uid)
max_uid = node->uniqueId();
}
Int64 total_max_uid = pm->reduce(Parallel::ReduceMax,max_uid);
if (total_max_uid>INT32_MAX)
ARCANE_FATAL("Max uniqueId() for node is too big v={0} max_allowed={1}",total_max_uid,INT32_MAX);
ENUMERATE_ITEM_INTERNAL_MAP_DATA(ebid,edges_map){
Edge edge{ebid->value()};
Node node0{edge.node(0)};
Node node1{edge.node(1)};
Int64 new_uid = (node0.uniqueId().asInt64() * total_max_uid) + node1.uniqueId().asInt64();
edge.mutableItemBase().setUniqueId(new_uid);
}
}
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
} // End namespace Arcane::mesh
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
| [
"Gilles.Grospellier@cea.fr"
] | Gilles.Grospellier@cea.fr |
304a41f0f4d565be9d9bd8729752bd8aeb243142 | 3442eb79b43da6c8f8e03965f669ba078f009fd0 | /Scenario.cpp | 183f087426eb49c30e54661f6039b97323ebd280 | [] | no_license | lArkl/OpenGL_BattleCity | ef1051d3cf5065464d30c2207cab96f55579a2ec | 1e02e9f77147dc624319a77a4f7451896efe8e1b | refs/heads/master | 2020-03-17T04:24:41.770617 | 2019-01-02T00:26:07 | 2019-01-02T00:26:07 | 133,273,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,326 | cpp | /* -- INCLUDE FILES ------------------------------------------------------ */
#include "keyhandler.h"
#include <GL/glut.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <iostream>
//#include "data.h"
#include "Object.h"
//#include "Graph.h"
using namespace std;
const int numEnemies = 2;
vector<Object*> SceneObjects;
Tank *player;
Tank *enemies[numEnemies];
Platform *platform;
vector<Object*>blocks;
//Scenario size
const int halfBase = 84, halfDepth = 72;
Graph Scenario(halfBase*halfDepth/16); //Num de nodos
GLfloat mat_diffuse1[] = { 0.9, 0.9, 0.9, 1.0 };
GLfloat mat_diffuse2[] = { 0.1, 0.1, 0.1, 1.0 };
void Init( void ) {
//LoadTextures();
glEnable(GL_TEXTURE_2D);
glClearColor(1.0, 1.0, 1.0, 0.0);
glClearDepth(1.0);
glDepthFunc(GL_LESS);
glEnable(GL_DEPTH_TEST);
glShadeModel(GL_SMOOTH);
//Phong?
GLfloat ambient[] = { 0.9, 0.9, 0.9, 1.0 };
GLfloat diffuse[] = { 1.0, 1.0, 1.0, 1.0 };
GLfloat specular[] = { 1.0, 1.0, 1.0, 1.0 };
GLfloat position[] = { 0.0, 8.0, 0.0, 0.0 };
GLfloat lmodel_ambient[] = { 0.4, 0.4, 0.4, 1.0 };
GLfloat local_view[] = { 0.0 };
glLightfv(GL_LIGHT0, GL_AMBIENT, ambient);
glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuse);
glLightfv(GL_LIGHT0, GL_POSITION, position);
glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient);
glLightModelfv(GL_LIGHT_MODEL_LOCAL_VIEWER, local_view);
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
//Phong materials
//GLfloat no_mat[] = { 0.0, 0.0, 0.0, 1.0 };
GLfloat mat_ambient[] = { 0.9, 0.1, 0.1, 1.0 };
//GLfloat mat_ambient_color[] = { 0.9, 0.2, 0.2, 1.0 };
//GLfloat mat_diffuse[] = { 0.5, 0.5, 0.5, 1.0 };
GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 };
//GLfloat no_shininess[] = { 0.0 };
GLfloat low_shininess[] = { 5.0 };
//GLfloat high_shininess[] = { 100.0 };
//GLfloat mat_emission[] = {0.1, 0.3, 0.2, 0.0};
//glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient);
glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse1);
//glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
glMaterialfv(GL_FRONT, GL_SHININESS, low_shininess);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
//gluPerspective(45.0, float(Width)/float(Height), 0.1, 100.0);
glMatrixMode(GL_MODELVIEW);
Scenario.generate(halfBase,halfDepth);
//Scenario.randomMap();
Scenario.readMap();
Object *block;
for(int i=0;i<Scenario.getV();i++){
int num = Scenario.getNode(i).numObject;
if(num==1){
block = new Object(&Scenario.nodes[i],1);
blocks.push_back(block);
SceneObjects.push_back(block);
}
}
//std::string path = "Models/Tank/BaseTank.obj";
std::string path = "Models/Tank/tankTex.obj";
Model *tankModel = readFile(path);
path = "Models/Platforms/platformtex.obj";
platform = new Platform(path);
// Level1 Nodes
const int playerNode = 52;
const int enemyNode = 337;
player = new Tank(&Scenario.nodes[playerNode],2);
player->model = tankModel;
for(int j=0;j<numEnemies;j++){
int pos = j==0?1:-1;
enemies[j] = new Tank(&Scenario.nodes[enemyNode+j*16],2);
enemies[j]->model = tankModel;
SceneObjects.push_back(enemies[j]);
}
// block1 = new Object(0,40,0);
SceneObjects.push_back(player);
//cout<<enemies[0]->iniX<<" : "<<enemies[0]->iniZ<<endl;
}
float spin = 0;
float view_rotx=0.0, view_roty=0.0;//, view_rotz=0.0;
//float view_rotx=20.0, view_roty=30.0, view_rotz=0.0;
//extern Tank player;
//Tank player(0,0,0);
void plotPoints(){//,Model model2){
glPointSize(6.0);
glLineWidth(3.0);
glPushMatrix();
//glTranslatef(0.0f,-10.0f,-50.0f);
glRotatef(view_rotx, 1.0, 0.0, 0.0);
glRotatef(view_roty, 0.0, 1.0, 0.0);
//glRotatef(view_rotz, 0.0, 0.0, 1.0);
glPushMatrix();
//displayScenario();
platform->display();
//glScalef(0.1,0.1,0.1);
//glColor3f(.0, 0.8, .1);
if(player->state==1) player->display();
//glColor3f(.8, 0.0, .1);
for(int j=0; j<numEnemies; j++)
if(enemies[j]->state==1)enemies[j]->display();
//Draw blocks
//glColor3f(.3, 0.2, .1);
for(int i=0;i<blocks.size();i++)
if(blocks[i]->state==1) blocks[i]->display();
//DrawBullets
//glColor3f(0, 0.1, .9);
//glColor3f(.4, 0.25, .8);
glBegin(GL_POINTS);
glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse2);
for(int i=0;i<maxAmmo;i++){
if(player->ammo[i]->state!=-1)
player->ammo[i]->display();
for(int j=0; j<numEnemies; j++){
if(enemies[j]->ammo[i]->state!=-1){
enemies[j]->ammo[i]->display();
}
}
}
glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse1);
glEnd();
//glClearColor(1.0, 1.0, 1.0, 0.0);
//glColor3f(0.0, 0.1, 0.8);
glPopMatrix();
glPopMatrix();
glutSwapBuffers();
//glFlush();
}
void handleResize(int w, int h) {
glViewport(0, 0, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
//gluOrtho2D( 0.0, 640.0, 0.0, 480.0 );
gluPerspective(45.0, (double)w / (double)h, 0.1, 220.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
gluLookAt(0.0, 170.0, 0.0, 0.0,0.0, 0.0, 0.0, 0.0, -1.0);
//glLoadIdentity();
}
void special(int key, int x, int y){
switch(key){
case GLUT_KEY_UP: view_rotx += 3.0; break;
case GLUT_KEY_DOWN: view_rotx -= 3.0; break;
case GLUT_KEY_LEFT: view_roty += 3.0; break;
case GLUT_KEY_RIGHT: view_roty -= 3.0;break;
}
glutPostRedisplay();
}
void Display( void) {
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
//ifstream infile("Knuckle.obj");
plotPoints();//,model2);
// plotPoints(model2);
}
int globaltimer=0;
void update(int value) {
//system("clear");
//Scenario.print();
for(int i=0;i<maxAmmo;i++){
//cout<<"shot "<<i<<" "<<player->ammo[i]->state<< endl;
if(player->ammo[i]->state==1){
player->ammo[i]->move();
}
for(int j=0; j<numEnemies; j++){
if(enemies[j]->ammo[i]->state==1){
enemies[j]->ammo[i]->move();
}
}
}
globaltimer = (globaltimer+1)%9;
if(globaltimer==0)
for(int j=0; j<numEnemies; j++)
if(enemies[j]->state==1){
if(player->state==1)
enemies[j]->moveBFS(player,&Scenario);
else
enemies[j]->moveIA(player);
}
player->idle();
for(int j=0;j<numEnemies;j++){
enemies[j]->idle();
}
glutPostRedisplay();
glutTimerFunc(25, update, 0);
}
int main( int argc, char *argv[] ) {
// Inicializar GLUT.
glutInit( &argc, argv );
// Definir Color RGB y Single Buffer.
glutInitDisplayMode( GLUT_SINGLE | GLUT_RGBA | GLUT_DEPTH);
// Definir la ventana en pixeles de la pantalla .
glutInitWindowSize( 854, 480 );
// Definir la posicion de la ventanaen pixeles de la pantalla.
glutInitWindowPosition( 100, 150 );
// Crear la ventana.
glutCreateWindow( "Battle City - OpenGL" );
// Definir la funcion de callback que usaremos para dibujar algo.
glutDisplayFunc( Display );
// Inicializar algunas cosas.
Init();
//Cargar texturas
if(!loadTextures()){
for(int i = 0; i<SceneObjects.size(); i++)
delete SceneObjects[i];
return -1;
}
//glutReshapeFunc(reshape);
glutReshapeFunc(handleResize);
glutKeyboardFunc(keyboard);
glutSpecialFunc(special);
//glutKeyboardFunc(Key_Released);
//glutMouseFunc(mousefunction);
glutTimerFunc(25, update, 0); //Add a timer
// Ahora que tenemos todo definido, el loop que responde a eventos.
glutMainLoop( );
// Destroy everything
delete player->model;
delete platform;
for(int i = 0; i<SceneObjects.size(); i++)
delete SceneObjects[i];
}
/* ----------------------------------------------------------------------- */
| [
"g.ferro.palomino@gmail.com"
] | g.ferro.palomino@gmail.com |
8d24129be637201ebd2ff69a2dc8efb8c57f543e | a17d860d97ba51c384a591eb8e4d9c009822613b | /Project1/1312727/ScreenNote/DLL_SHOW/stdafx.cpp | 0416892a358e2f871e1b07065974495d19f756e0 | [] | no_license | yadzhang/Winprogramming | 54f0804b7fbfb8d2e6a369c6ca141caf869994fe | ef535f8e70b93af42207b5edef712805adcb583d | refs/heads/master | 2021-01-22T16:56:44.302635 | 2016-02-01T13:28:26 | 2016-02-01T13:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | cpp | // stdafx.cpp : source file that includes just the standard includes
// DLL_SHOW.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
| [
"nguyenphanmanhhung@gmail.com"
] | nguyenphanmanhhung@gmail.com |
893853f46235853fb4f2ef548705d3f18c907682 | 104b5e0c81b3b4d8ec01689bf90cb10294795ff9 | /src/Textdraw/CTextDrawFade.h | 2579f1201fadeb2f1a14bf5e0dc6b8210d2db3af | [
"MIT"
] | permissive | LuisSFSE/cpp-gamemode-samp | e3f54937d29f9ef5a7c7540fb551c26720c438b6 | ee36f3f322502f6faa997647d562bf25863e7791 | refs/heads/master | 2021-09-16T17:57:55.553389 | 2018-06-22T18:22:25 | 2018-06-22T18:22:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | h | #pragma once
#include <System/CSingleton.h>
#include <functional>
#include <forward_list>
#include <queue>
#include <unordered_set>
using std::function;
using std::forward_list;
using std::queue;
using std::unordered_set;
class CTimer;
class CFadeableTextDraw;
class CTextDrawFadeHandler : public CSingleton<CTextDrawFadeHandler>
{
friend class CSingleton<CTextDrawFadeHandler>;
private: //constructor / deconstructor
CTextDrawFadeHandler();
~CTextDrawFadeHandler();
private: //datatype
struct SFade;
public: //functions
enum class EFadeType
{
Invalid,
Out,
In
};
bool Fade(EFadeType type, CFadeableTextDraw *textdraw, unsigned int playerid,
function<void()> &&func, unsigned int steps);
bool StopFade(CFadeableTextDraw *textdraw, unsigned int playerid);
private: //variables
forward_list<SFade *> m_Fades;
queue<SFade *> m_QueuedFades;
unordered_set<SFade *> m_TrashedFades;
CTimer *m_FadeTimer = nullptr;
private: //functions
void ProcessFades();
};
| [
"maddin4t0r@gmail.com"
] | maddin4t0r@gmail.com |
27b62e76b31c3f70b42db3bea6896691132a4ced | a54c5ea8cde97fef85b6ab705519745eee790f11 | /CS404Project/Course.cpp | 81a89a674e649eff82243774ffcb466eb2fb0360 | [] | no_license | sflcoder/CS404Project | ff29bafb1adf2faf66ca915d9fc9281ed607358b | 33d0569e31042d783ec9b54987b29408fcae90b8 | refs/heads/master | 2020-06-19T17:11:02.360137 | 2019-07-23T18:48:58 | 2019-07-23T18:48:58 | 196,796,383 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,270 | cpp | #include "Course.h"
#include <map>
#include <string>
#include <iostream>
using namespace std;
// Constructor
Course::Course(int course_ID, string course_name)
{
this->course_ID = course_ID;
this->course_name = course_name;
total_percent = 0;
is_assigned = false;
}
Course::~Course()
{
}
// Getters and Setters
int Course::getID()
{
return course_ID;
}
string Course::get_name()
{
return course_name;
}
map<int, double> Course::get_topic_percent()
{
return topic_percent;
}
// Update the topic percent
void Course::update_topic_percent(int topic_ID, double topic_percent)
{
this->total_percent += topic_percent;
// Check if the total percent exceed 100%
if (this->total_percent > 1)
{
cout << "The total percent can not exceed 100%";
}
else
{
this->topic_percent.insert(pair<int, double>(topic_ID, topic_percent));
//cout << "Updated the topic percent" << endl
//<< this->course_ID << '\t' << this->course_name << '\t' << topic_ID << '\t' << topic_percent << endl;
}
}
// Print the Topic
void Course::print()
{
cout << this->course_ID << '\t' << this->course_name << endl;
map<int, double>::iterator itr;
for (itr = topic_percent.begin(); itr != topic_percent.end(); ++itr) {
cout << itr->first << '\t' << itr->second << '\n';
}
}
| [
"lsfhouse@gmail.com"
] | lsfhouse@gmail.com |
20ea07332e8b0f012260610e61dcecfa74dbe38f | b3da036ba8ce88abac8d1fd2aec18ad7947801b5 | /core/corelib/InnerConn.cpp | c14a6a58583143ec438ed5b001d54e238c44a27b | [] | no_license | zhangchuhu/serviceframe | 3272f14eb422b64177e35076f87d80cc7a8f2d3b | 98e58a18c1290f2dd5942f27ec2925ffca68b33b | refs/heads/master | 2021-01-10T01:43:08.684121 | 2016-01-29T10:44:15 | 2016-01-29T10:44:15 | 49,189,265 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 6,107 | cpp | #include "InnerConn.h"
#include "core/sox/util.h"
#include "core/sox/snox.h"
#include "core/sox/logger.h"
#include <errno.h>
using namespace core;
InnerConn::~InnerConn() {
log(Info, "Destroy: %s", toString().data());
}
void InnerConn::sendBin(const char * data, size_t size, uint32_t uri) {
//char * for encrypto
if(bEnable){
char *dt = const_cast<char *>(data);
if (socket().isConnected()) {
m_output.write(socket(), dt, size);
if (!m_output.empty()){
#ifndef NO_SEND_BLOCKED_LOG
log(Info, "send blocked output size: %u connid:%u peer:%s:%u", m_output.size(), getConnId(), sox::addr_ntoa(getPeerIp()).c_str(), getPeerPort());
#endif
select(0, sox::SEL_WRITE);
}
} else {
m_output.write(dt, size);
log(Info, "socket not conntected !");
// m_hdl->onError(-1, m_output.data(), this);
}
}else{
log(Info, "socket not enable: %s", sox::addr_ntoa(peerIp).data());
}
}
void InnerConn::onConnected(const std::string & errstr) {
if (socket().isConnected()) {
log(Info, "connected");
select_timeout();
int add = sox::SEL_READ;
if (!m_output.empty()) {
m_output.flush(socket());
if (!m_output.empty())
add |= sox::SEL_WRITE;
}
select(sox::SEL_ALL, add);
eHandler->onConnected(this);
} else {
log(Error, "Connect %s, on socket %s", errstr.data(), toString().data());
eHandler->onError(-1, "", this);
}
}
void InnerConn::onRead() {
try {
if (m_input.pump(socket()) > 0)
{
int ret = dHandler->onData(m_input.data(), m_input.size(), this, m_input.isEncrypto()? TCP_ENCODE : TCP_UNCODE);
if(ret != -1){
m_input.erase(0, ret);
}else{
eHandler->onInitiativeClose(this);
}
}
else {
eHandler->onClose(this);
}
} catch(sox::socket_error &se) {
if(se.what_errno() == EAGAIN || se.what_errno() == EINTR) {
return;
} else {
try {
eHandler->onError(sox::env::SocketErrorLogLevel, (std::string("Inner Conn read error:") + se.what()).data(), this);
} catch(std::exception &err) {
log(Warn, "ignore exception in socket_error: %s", err.what());
}
}
} catch(std::exception &ex) {
try {
eHandler->onError(sox::env::SocketErrorLogLevel, (std::string("Inner Conn read error:") + ex.what()).data(), this);
} catch(std::exception &err) {
log(Warn, "ignore exception in exception: %s", err.what());
}
}
}
void InnerConn::onWrite() {
try {
m_output.flush(socket());
if (m_output.empty())
select(sox::SEL_WRITE, 0);
} catch(sox::socket_error &se) {
if(se.what_errno() == EAGAIN || se.what_errno() == EINTR) {
return;
} else {
eHandler->onError(sox::env::SocketErrorLogLevel, (std::string("Inner Conn write error:") + se.what()).data(), this);
}
} catch(std::exception &ex) {
eHandler->onError(sox::env::SocketErrorLogLevel, (std::string("Inner Conn write error:") + ex.what()).data(), this);
//throw ex;
}
}
std::ostream & InnerConn::trace(std::ostream & os) const {
return os << " "<< sox::addr_ntoa(peerIp) << ":"<< peerPort;
}
void InnerConn::setTimeout(int tm) {
AbstractConn::setTimeout(tm);
select_timeout(tm);
}
void InnerConn::onTimeout() {
if (socket().clearRecvTag()) {
// log(Debug, "timeout is:", tmo);
select_timeout(tmo);
} else {
try {
eHandler->onTimeout(this);
} catch(sox::socket_error &se) {
if(se.what_errno() == EAGAIN || se.what_errno() == EINTR) {
return;
} else {
try {
eHandler->onError(sox::env::SocketErrorLogLevel, (std::string("Inner Conn read error:") + se.what()).data(), this);
}catch(std::exception &err) {
log(Warn, "ignore exception in socket_error: %s", err.what());
}
}
} catch(std::exception &ex) {
try {
eHandler->onError(sox::env::SocketErrorLogLevel, (std::string("Inner Conn read error:") + ex.what()).data(), this);
}catch(std::exception &err) {
log(Warn, "ignore exception in exception: %s", err.what());
}
}
}
}
void InnerConn::setEncKey(const unsigned char *key, size_t len) {
m_output.setRC4Key(key, len);
m_input.setRC4Key(key, len);
}
size_t InnerConn::get_input_buffer_size()
{
return m_input.size();
}
size_t InnerConn::get_output_buffer_size()
{
return m_output.size();
}
#define ENCODE_BUFFER 1024
RC4Alloc::RC4Alloc(){
writeBuffer = new unsigned char[ENCODE_BUFFER];
curSize = ENCODE_BUFFER;
}
RC4Alloc::~RC4Alloc(){
delete[] writeBuffer;
}
void RC4Alloc::realloc(size_t sz){
delete[] writeBuffer;
writeBuffer = new unsigned char[sz];
curSize = sz;
}
RC4Alloc RC4Filter::writeBuffer;
RC4Filter::RC4Filter() {
encrypted = false;
}
RC4Filter::~RC4Filter() {
}
void RC4Filter::filterRead(char *data, size_t sz) {
if (encrypted) {
RC4(&rc4, (unsigned long)sz, (unsigned char *)data, (unsigned char *)data);
}
}
char* RC4Filter::filterWrite(char *data, size_t sz) {
//xxx thread unsafe
if (encrypted) {
if (sz > writeBuffer.getCurSize()) {
writeBuffer.realloc(sz);
}
RC4(&rc4, (unsigned long)sz, (unsigned char *)data, writeBuffer.getWriteBuffer());
return (char *)writeBuffer.getWriteBuffer();
} else {
return data;
}
}
bool RC4Filter::isEncrypto() const {
return encrypted;
}
void RC4Filter::setRC4Key(const unsigned char *data, size_t len) {
RC4_set_key(&rc4, (int)len, data);
encrypted = true;
}
IConn *InnerConnCreator::createConnect(const std::string& ip, uint32_t port, ILinkHandler *handler, ILinkEvent *eh, CreateCallback *cc) {
try {
InnerConn *conn = new InnerConn(ip, port, 2000, handler, eh);
conn->setHandler(handler);
conn->setLinkEvent(eh);
if(cc){
cc->onConnCreate(conn);
}
conn->select(0, sox::SEL_CONNECTING);
return conn;
}catch (sox::socket_error & se)
{
log(Warn, "InnerCreate SocketError: %s", se.what());
return NULL;
}
}
IConn *InnerConnCreator::creatConnect(SOCKET so, uint32_t ip, int port, ILinkHandler *h, ILinkEvent *eH, CreateCallback *cc){
InnerConn *conn = new InnerConn(so, (u_long)ip, port, h, eH);
conn->setHandler(h);
conn->setLinkEvent(eH);
if(cc){
cc->onConnCreate(conn);
}
conn->select(0, sox::SEL_READ);
return conn;
}
| [
"705690352@qq.com"
] | 705690352@qq.com |
18c2743ea5e09da6a048c29a5006a317e6993b3a | a5fb786d8515453524dd5e1ab03aaaca02f84257 | /21_05_2021_C2C(moicas).cpp | 5a7899fd6110d856cdb1236d2419f97c044183bc | [] | no_license | vignesh07102001/C-tasks | 86c91a4794598cb34e8723763ffb27fff1938a76 | 0fcf46b4f8f1a4ec11e90d453fea275e1d5e350a | refs/heads/main | 2023-08-03T16:27:31.632602 | 2021-09-16T15:11:46 | 2021-09-16T15:11:46 | 337,927,680 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | cpp | #include<stdio.h>
int b,n,m;
int main(){
int sum=-1,sum1=0;
printf("INPUT:\n");
scanf("%d %d %d",&b,&n,&m);
int k_models[n];
int USB_models[m];
for (int i=0;i<n;i++)
scanf("%d",&k_models[i]);
for (int i=0;i<m;i++)
scanf("%d",&USB_models[i]);
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
sum1=k_models[i]+USB_models[j];
if (sum1>=b)
continue;
else if(sum1>sum)
sum = sum1;
}
}
printf("OUTPUT:\n");
printf("%d",sum);
}
| [
"ksveee1@gmail.com"
] | ksveee1@gmail.com |
899d058dd3fa26d05aa741576ba072ad7c04babc | a12e7fd59e679972917b31e1297b01beaf26c8a8 | /NtupleAnalyzer/src/ApplyMVA.cxx | ebe5d2334b34556bccdfaf55057e66aaeb5f8700 | [] | no_license | kskovpen/tHFCNC | 059df745f25ea7fce9bed6e0eedf78af9d7f3816 | c34982f8032e4867b1287121e9346055fb1cc591 | refs/heads/master | 2021-01-17T14:35:03.263702 | 2017-08-06T17:19:12 | 2017-08-06T17:19:12 | 35,340,816 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 57,221 | cxx | #include "../include/ApplyMVA.h"
ApplyMVA::ApplyMVA(std::string home)
{
_home = home;
}
ApplyMVA::~ApplyMVA()
{
delete b0j3HutSTreader;
delete b0j3HctSTreader;
delete b0j3HutTTreader;
delete b0j3HctTTreader;
delete b0j4HutSTreader;
delete b0j4HctSTreader;
delete b0j4HutTTreader;
delete b0j4HctTTreader;
delete b1j3HutSTreader;
delete b1j3HctSTreader;
delete b1j3HutTTreader;
delete b1j3HctTTreader;
delete b1j4HutSTreader;
delete b1j4HctSTreader;
delete b1j4HutTTreader;
delete b1j4HctTTreader;
delete b2j3HutSTreader;
delete b2j3HctSTreader;
delete b2j3HutTTreader;
delete b2j3HctTTreader;
delete b2j4HutSTreader;
delete b2j4HctSTreader;
delete b2j4HutTTreader;
delete b2j4HctTTreader;
delete b3j3HutSTreader;
delete b3j3HctSTreader;
delete b3j3HutTTreader;
delete b3j3HctTTreader;
delete b3j4HutSTreader;
delete b3j4HctSTreader;
delete b3j4HutTTreader;
delete b3j4HctTTreader;
delete b4j4HutSTreader;
delete b4j4HctSTreader;
delete b4j4HutTTreader;
delete b4j4HctTTreader;
}
void ApplyMVA::init()
{
// b0j3
b0j3HutSTreader = new TMVA::Reader("!Color:!Silent");
b0j3HutSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b0j3HutSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b0j3HutSTreader->AddVariable("LepCharge",&LepCharge);
b0j3HutSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b0j3HutSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b0j3HutSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b0j3HutSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b0j3HutSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b0j3HutSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b0j3HutSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b0j3HutSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b0j3HutSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b0j3HctSTreader = new TMVA::Reader("!Color:!Silent");
b0j3HctSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b0j3HctSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b0j3HctSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b0j3HctSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b0j3HctSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b0j3HctSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b0j3HctSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b0j3HctSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b0j3HctSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b0j3HctSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b0j3HctSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b0j3HutTTreader = new TMVA::Reader("!Color:!Silent");
b0j3HutTTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b0j3HutTTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b0j3HutTTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b0j3HutTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b0j3HutTTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b0j3HutTTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b0j3HutTTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b0j3HutTTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b0j3HctTTreader = new TMVA::Reader("!Color:!Silent");
b0j3HctTTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b0j3HctTTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b0j3HctTTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b0j3HctTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b0j3HctTTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b0j3HctTTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b0j3HctTTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b0j3HctTTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
std::string b0j3HutSTweightsFile = _home+"/MVA/weights/TMVA_HutST_all_b0j3_BDT.weights.xml";
b0j3HutSTreader->BookMVA("BDTG method",b0j3HutSTweightsFile.c_str());
std::string b0j3HctSTweightsFile = _home+"/MVA/weights/TMVA_HctST_all_b0j3_BDT.weights.xml";
b0j3HctSTreader->BookMVA("BDTG method",b0j3HctSTweightsFile.c_str());
std::string b0j3HutTTweightsFile = _home+"/MVA/weights/TMVA_HutTT_all_b0j3_BDT.weights.xml";
b0j3HutTTreader->BookMVA("BDTG method",b0j3HutTTweightsFile.c_str());
std::string b0j3HctTTweightsFile = _home+"/MVA/weights/TMVA_HctTT_all_b0j3_BDT.weights.xml";
b0j3HctTTreader->BookMVA("BDTG method",b0j3HctTTweightsFile.c_str());
// b0j4
b0j4HutSTreader = new TMVA::Reader("!Color:!Silent");
b0j4HutSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b0j4HutSTreader->AddVariable("TopHadMass_TOPTOPLEPHAD",&TopHadMass_TOPTOPLEPHAD);
b0j4HutSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b0j4HutSTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b0j4HutSTreader->AddVariable("LepCharge",&LepCharge);
b0j4HutSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b0j4HutSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b0j4HutSTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b0j4HutSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b0j4HutSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b0j4HutSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b0j4HutSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b0j4HutSTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b0j4HutSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b0j4HutSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b0j4HutSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b0j4HutSTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b0j4HutSTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b0j4HutSTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b0j4HutSTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b0j4HctSTreader = new TMVA::Reader("!Color:!Silent");
b0j4HctSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b0j4HctSTreader->AddVariable("TopHadMass_TOPTOPLEPHAD",&TopHadMass_TOPTOPLEPHAD);
b0j4HctSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b0j4HctSTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b0j4HctSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b0j4HctSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b0j4HctSTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b0j4HctSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b0j4HctSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b0j4HctSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b0j4HctSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b0j4HctSTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b0j4HctSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b0j4HctSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b0j4HctSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b0j4HctSTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b0j4HctSTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b0j4HctSTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b0j4HctSTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b0j4HutTTreader = new TMVA::Reader("!Color:!Silent");
b0j4HutTTreader->AddVariable("HiggsMass_TOPTOPLEPHBB",&HiggsMass_TOPTOPLEPHBB);
b0j4HutTTreader->AddVariable("MVA_TOPTOPLEPHBB",&MVA_TOPTOPLEPHBB);
b0j4HutTTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b0j4HutTTreader->AddVariable("TopLepMass_TOPTOPLEPHBB",&TopLepMass_TOPTOPLEPHBB);
b0j4HutTTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b0j4HutTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB",&HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB);
b0j4HutTTreader->AddVariable("TopLepHiggsDr_TOPTOPLEPHBB",&TopLepHiggsDr_TOPTOPLEPHBB);
b0j4HutTTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b0j4HutTTreader->AddVariable("HiggsBJet1CSVv2_TOPTOPLEPHBB",&HiggsBJet1CSVv2_TOPTOPLEPHBB);
b0j4HutTTreader->AddVariable("HiggsBJet2CSVv2_TOPTOPLEPHBB",&HiggsBJet2CSVv2_TOPTOPLEPHBB);
b0j4HutTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHBB",&TopLepBJetCSVv2_TOPTOPLEPHBB);
b0j4HutTTreader->AddVariable("TopHadNonBJetCSVv2_TOPTOPLEPHBB",&TopHadNonBJetCSVv2_TOPTOPLEPHBB);
b0j4HutTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b0j4HutTTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b0j4HutTTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b0j4HutTTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b0j4HctTTreader = new TMVA::Reader("!Color:!Silent");
b0j4HctTTreader->AddVariable("HiggsMass_TOPTOPLEPHBB",&HiggsMass_TOPTOPLEPHBB);
b0j4HctTTreader->AddVariable("MVA_TOPTOPLEPHBB",&MVA_TOPTOPLEPHBB);
b0j4HctTTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b0j4HctTTreader->AddVariable("TopLepMass_TOPTOPLEPHBB",&TopLepMass_TOPTOPLEPHBB);
b0j4HctTTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b0j4HctTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB",&HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB);
b0j4HctTTreader->AddVariable("TopLepHiggsDr_TOPTOPLEPHBB",&TopLepHiggsDr_TOPTOPLEPHBB);
b0j4HctTTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b0j4HctTTreader->AddVariable("HiggsBJet1CSVv2_TOPTOPLEPHBB",&HiggsBJet1CSVv2_TOPTOPLEPHBB);
b0j4HctTTreader->AddVariable("HiggsBJet2CSVv2_TOPTOPLEPHBB",&HiggsBJet2CSVv2_TOPTOPLEPHBB);
b0j4HctTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHBB",&TopLepBJetCSVv2_TOPTOPLEPHBB);
b0j4HctTTreader->AddVariable("TopHadNonBJetCSVv2_TOPTOPLEPHBB",&TopHadNonBJetCSVv2_TOPTOPLEPHBB);
b0j4HctTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b0j4HctTTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b0j4HctTTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b0j4HctTTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
std::string b0j4HutSTweightsFile = _home+"/MVA/weights/TMVA_HutST_all_b0j4_BDT.weights.xml";
b0j4HutSTreader->BookMVA("BDTG method",b0j4HutSTweightsFile.c_str());
std::string b0j4HctSTweightsFile = _home+"/MVA/weights/TMVA_HctST_all_b0j4_BDT.weights.xml";
b0j4HctSTreader->BookMVA("BDTG method",b0j4HctSTweightsFile.c_str());
std::string b0j4HutTTweightsFile = _home+"/MVA/weights/TMVA_HutTT_all_b0j4_BDT.weights.xml";
b0j4HutTTreader->BookMVA("BDTG method",b0j4HutTTweightsFile.c_str());
std::string b0j4HctTTweightsFile = _home+"/MVA/weights/TMVA_HctTT_all_b0j4_BDT.weights.xml";
b0j4HctTTreader->BookMVA("BDTG method",b0j4HctTTweightsFile.c_str());
// b1j3
b1j3HutSTreader = new TMVA::Reader("!Color:!Silent");
b1j3HutSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b1j3HutSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b1j3HutSTreader->AddVariable("LepCharge",&LepCharge);
b1j3HutSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b1j3HutSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b1j3HutSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b1j3HutSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b1j3HutSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b1j3HutSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b1j3HutSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b1j3HutSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b1j3HutSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b1j3HctSTreader = new TMVA::Reader("!Color:!Silent");
b1j3HctSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b1j3HctSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b1j3HctSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b1j3HctSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b1j3HctSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b1j3HctSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b1j3HctSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b1j3HctSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b1j3HctSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b1j3HctSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b1j3HctSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b1j3HutTTreader = new TMVA::Reader("!Color:!Silent");
b1j3HutTTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b1j3HutTTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b1j3HutTTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b1j3HutTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b1j3HutTTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b1j3HutTTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b1j3HutTTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b1j3HutTTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b1j3HctTTreader = new TMVA::Reader("!Color:!Silent");
b1j3HctTTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b1j3HctTTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b1j3HctTTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b1j3HctTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b1j3HctTTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b1j3HctTTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b1j3HctTTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b1j3HctTTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
std::string b1j3HutSTweightsFile = _home+"/MVA/weights/TMVA_HutST_all_b1j3_BDT.weights.xml";
b1j3HutSTreader->BookMVA("BDTG method",b1j3HutSTweightsFile.c_str());
std::string b1j3HctSTweightsFile = _home+"/MVA/weights/TMVA_HctST_all_b1j3_BDT.weights.xml";
b1j3HctSTreader->BookMVA("BDTG method",b1j3HctSTweightsFile.c_str());
std::string b1j3HutTTweightsFile = _home+"/MVA/weights/TMVA_HutTT_all_b1j3_BDT.weights.xml";
b1j3HutTTreader->BookMVA("BDTG method",b1j3HutTTweightsFile.c_str());
std::string b1j3HctTTweightsFile = _home+"/MVA/weights/TMVA_HctTT_all_b1j3_BDT.weights.xml";
b1j3HctTTreader->BookMVA("BDTG method",b1j3HctTTweightsFile.c_str());
// b1j4
b1j4HutSTreader = new TMVA::Reader("!Color:!Silent");
b1j4HutSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b1j4HutSTreader->AddVariable("TopHadMass_TOPTOPLEPHAD",&TopHadMass_TOPTOPLEPHAD);
b1j4HutSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b1j4HutSTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b1j4HutSTreader->AddVariable("LepCharge",&LepCharge);
b1j4HutSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b1j4HutSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b1j4HutSTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b1j4HutSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b1j4HutSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b1j4HutSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b1j4HutSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b1j4HutSTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b1j4HutSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b1j4HutSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b1j4HutSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b1j4HutSTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b1j4HutSTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b1j4HutSTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b1j4HutSTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b1j4HctSTreader = new TMVA::Reader("!Color:!Silent");
b1j4HctSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b1j4HctSTreader->AddVariable("TopHadMass_TOPTOPLEPHAD",&TopHadMass_TOPTOPLEPHAD);
b1j4HctSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b1j4HctSTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b1j4HctSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b1j4HctSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b1j4HctSTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b1j4HctSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b1j4HctSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b1j4HctSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b1j4HctSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b1j4HctSTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b1j4HctSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b1j4HctSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b1j4HctSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b1j4HctSTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b1j4HctSTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b1j4HctSTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b1j4HctSTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b1j4HutTTreader = new TMVA::Reader("!Color:!Silent");
b1j4HutTTreader->AddVariable("HiggsMass_TOPTOPLEPHBB",&HiggsMass_TOPTOPLEPHBB);
b1j4HutTTreader->AddVariable("MVA_TOPTOPLEPHBB",&MVA_TOPTOPLEPHBB);
b1j4HutTTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b1j4HutTTreader->AddVariable("TopLepMass_TOPTOPLEPHBB",&TopLepMass_TOPTOPLEPHBB);
b1j4HutTTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b1j4HutTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB",&HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB);
b1j4HutTTreader->AddVariable("TopLepHiggsDr_TOPTOPLEPHBB",&TopLepHiggsDr_TOPTOPLEPHBB);
b1j4HutTTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b1j4HutTTreader->AddVariable("HiggsBJet1CSVv2_TOPTOPLEPHBB",&HiggsBJet1CSVv2_TOPTOPLEPHBB);
b1j4HutTTreader->AddVariable("HiggsBJet2CSVv2_TOPTOPLEPHBB",&HiggsBJet2CSVv2_TOPTOPLEPHBB);
b1j4HutTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHBB",&TopLepBJetCSVv2_TOPTOPLEPHBB);
b1j4HutTTreader->AddVariable("TopHadNonBJetCSVv2_TOPTOPLEPHBB",&TopHadNonBJetCSVv2_TOPTOPLEPHBB);
b1j4HutTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b1j4HutTTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b1j4HutTTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b1j4HutTTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b1j4HctTTreader = new TMVA::Reader("!Color:!Silent");
b1j4HctTTreader->AddVariable("HiggsMass_TOPTOPLEPHBB",&HiggsMass_TOPTOPLEPHBB);
b1j4HctTTreader->AddVariable("MVA_TOPTOPLEPHBB",&MVA_TOPTOPLEPHBB);
b1j4HctTTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b1j4HctTTreader->AddVariable("TopLepMass_TOPTOPLEPHBB",&TopLepMass_TOPTOPLEPHBB);
b1j4HctTTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b1j4HctTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB",&HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB);
b1j4HctTTreader->AddVariable("TopLepHiggsDr_TOPTOPLEPHBB",&TopLepHiggsDr_TOPTOPLEPHBB);
b1j4HctTTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b1j4HctTTreader->AddVariable("HiggsBJet1CSVv2_TOPTOPLEPHBB",&HiggsBJet1CSVv2_TOPTOPLEPHBB);
b1j4HctTTreader->AddVariable("HiggsBJet2CSVv2_TOPTOPLEPHBB",&HiggsBJet2CSVv2_TOPTOPLEPHBB);
b1j4HctTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHBB",&TopLepBJetCSVv2_TOPTOPLEPHBB);
b1j4HctTTreader->AddVariable("TopHadNonBJetCSVv2_TOPTOPLEPHBB",&TopHadNonBJetCSVv2_TOPTOPLEPHBB);
b1j4HctTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b1j4HctTTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b1j4HctTTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b1j4HctTTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
std::string b1j4HutSTweightsFile = _home+"/MVA/weights/TMVA_HutST_all_b1j4_BDT.weights.xml";
b1j4HutSTreader->BookMVA("BDTG method",b1j4HutSTweightsFile.c_str());
std::string b1j4HctSTweightsFile = _home+"/MVA/weights/TMVA_HctST_all_b1j4_BDT.weights.xml";
b1j4HctSTreader->BookMVA("BDTG method",b1j4HctSTweightsFile.c_str());
std::string b1j4HutTTweightsFile = _home+"/MVA/weights/TMVA_HutTT_all_b1j4_BDT.weights.xml";
b1j4HutTTreader->BookMVA("BDTG method",b1j4HutTTweightsFile.c_str());
std::string b1j4HctTTweightsFile = _home+"/MVA/weights/TMVA_HctTT_all_b1j4_BDT.weights.xml";
b1j4HctTTreader->BookMVA("BDTG method",b1j4HctTTweightsFile.c_str());
// b2j3
b2j3HutSTreader = new TMVA::Reader("!Color:!Silent");
b2j3HutSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b2j3HutSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b2j3HutSTreader->AddVariable("LepCharge",&LepCharge);
b2j3HutSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b2j3HutSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b2j3HutSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b2j3HutSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b2j3HutSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b2j3HutSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b2j3HutSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b2j3HutSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b2j3HutSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b2j3HctSTreader = new TMVA::Reader("!Color:!Silent");
b2j3HctSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b2j3HctSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b2j3HctSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b2j3HctSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b2j3HctSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b2j3HctSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b2j3HctSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b2j3HctSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b2j3HctSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b2j3HctSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b2j3HctSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b2j3HutTTreader = new TMVA::Reader("!Color:!Silent");
b2j3HutTTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b2j3HutTTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b2j3HutTTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b2j3HutTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b2j3HutTTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b2j3HutTTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b2j3HutTTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b2j3HutTTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b2j3HctTTreader = new TMVA::Reader("!Color:!Silent");
b2j3HctTTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b2j3HctTTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b2j3HctTTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b2j3HctTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b2j3HctTTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b2j3HctTTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b2j3HctTTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b2j3HctTTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
std::string b2j3HutSTweightsFile = _home+"/MVA/weights/TMVA_HutST_all_b2j3_BDT.weights.xml";
b2j3HutSTreader->BookMVA("BDTG method",b2j3HutSTweightsFile.c_str());
std::string b2j3HctSTweightsFile = _home+"/MVA/weights/TMVA_HctST_all_b2j3_BDT.weights.xml";
b2j3HctSTreader->BookMVA("BDTG method",b2j3HctSTweightsFile.c_str());
std::string b2j3HutTTweightsFile = _home+"/MVA/weights/TMVA_HutTT_all_b2j3_BDT.weights.xml";
b2j3HutTTreader->BookMVA("BDTG method",b2j3HutTTweightsFile.c_str());
std::string b2j3HctTTweightsFile = _home+"/MVA/weights/TMVA_HctTT_all_b2j3_BDT.weights.xml";
b2j3HctTTreader->BookMVA("BDTG method",b2j3HctTTweightsFile.c_str());
// b2j4
b2j4HutSTreader = new TMVA::Reader("!Color:!Silent");
b2j4HutSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b2j4HutSTreader->AddVariable("TopHadMass_TOPTOPLEPHAD",&TopHadMass_TOPTOPLEPHAD);
b2j4HutSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b2j4HutSTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b2j4HutSTreader->AddVariable("LepCharge",&LepCharge);
b2j4HutSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b2j4HutSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b2j4HutSTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b2j4HutSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b2j4HutSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b2j4HutSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b2j4HutSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b2j4HutSTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b2j4HutSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b2j4HutSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b2j4HutSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b2j4HutSTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b2j4HutSTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b2j4HutSTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b2j4HutSTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b2j4HctSTreader = new TMVA::Reader("!Color:!Silent");
b2j4HctSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b2j4HctSTreader->AddVariable("TopHadMass_TOPTOPLEPHAD",&TopHadMass_TOPTOPLEPHAD);
b2j4HctSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b2j4HctSTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b2j4HctSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b2j4HctSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b2j4HctSTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b2j4HctSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b2j4HctSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b2j4HctSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b2j4HctSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b2j4HctSTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b2j4HctSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b2j4HctSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b2j4HctSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b2j4HctSTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b2j4HctSTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b2j4HctSTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b2j4HctSTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b2j4HutTTreader = new TMVA::Reader("!Color:!Silent");
b2j4HutTTreader->AddVariable("HiggsMass_TOPTOPLEPHBB",&HiggsMass_TOPTOPLEPHBB);
b2j4HutTTreader->AddVariable("MVA_TOPTOPLEPHBB",&MVA_TOPTOPLEPHBB);
b2j4HutTTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b2j4HutTTreader->AddVariable("TopLepMass_TOPTOPLEPHBB",&TopLepMass_TOPTOPLEPHBB);
b2j4HutTTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b2j4HutTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB",&HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB);
b2j4HutTTreader->AddVariable("TopLepHiggsDr_TOPTOPLEPHBB",&TopLepHiggsDr_TOPTOPLEPHBB);
b2j4HutTTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b2j4HutTTreader->AddVariable("HiggsBJet1CSVv2_TOPTOPLEPHBB",&HiggsBJet1CSVv2_TOPTOPLEPHBB);
b2j4HutTTreader->AddVariable("HiggsBJet2CSVv2_TOPTOPLEPHBB",&HiggsBJet2CSVv2_TOPTOPLEPHBB);
b2j4HutTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHBB",&TopLepBJetCSVv2_TOPTOPLEPHBB);
b2j4HutTTreader->AddVariable("TopHadNonBJetCSVv2_TOPTOPLEPHBB",&TopHadNonBJetCSVv2_TOPTOPLEPHBB);
b2j4HutTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b2j4HutTTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b2j4HutTTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b2j4HutTTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b2j4HctTTreader = new TMVA::Reader("!Color:!Silent");
b2j4HctTTreader->AddVariable("HiggsMass_TOPTOPLEPHBB",&HiggsMass_TOPTOPLEPHBB);
b2j4HctTTreader->AddVariable("MVA_TOPTOPLEPHBB",&MVA_TOPTOPLEPHBB);
b2j4HctTTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b2j4HctTTreader->AddVariable("TopLepMass_TOPTOPLEPHBB",&TopLepMass_TOPTOPLEPHBB);
b2j4HctTTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b2j4HctTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB",&HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB);
b2j4HctTTreader->AddVariable("TopLepHiggsDr_TOPTOPLEPHBB",&TopLepHiggsDr_TOPTOPLEPHBB);
b2j4HctTTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b2j4HctTTreader->AddVariable("HiggsBJet1CSVv2_TOPTOPLEPHBB",&HiggsBJet1CSVv2_TOPTOPLEPHBB);
b2j4HctTTreader->AddVariable("HiggsBJet2CSVv2_TOPTOPLEPHBB",&HiggsBJet2CSVv2_TOPTOPLEPHBB);
b2j4HctTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHBB",&TopLepBJetCSVv2_TOPTOPLEPHBB);
b2j4HctTTreader->AddVariable("TopHadNonBJetCSVv2_TOPTOPLEPHBB",&TopHadNonBJetCSVv2_TOPTOPLEPHBB);
b2j4HctTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b2j4HctTTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b2j4HctTTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b2j4HctTTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
std::string b2j4HutSTweightsFile = _home+"/MVA/weights/TMVA_HutST_all_b2j4_BDT.weights.xml";
b2j4HutSTreader->BookMVA("BDTG method",b2j4HutSTweightsFile.c_str());
std::string b2j4HctSTweightsFile = _home+"/MVA/weights/TMVA_HctST_all_b2j4_BDT.weights.xml";
b2j4HctSTreader->BookMVA("BDTG method",b2j4HctSTweightsFile.c_str());
std::string b2j4HutTTweightsFile = _home+"/MVA/weights/TMVA_HutTT_all_b2j4_BDT.weights.xml";
b2j4HutTTreader->BookMVA("BDTG method",b2j4HutTTweightsFile.c_str());
std::string b2j4HctTTweightsFile = _home+"/MVA/weights/TMVA_HctTT_all_b2j4_BDT.weights.xml";
b2j4HctTTreader->BookMVA("BDTG method",b2j4HctTTweightsFile.c_str());
// b3j3
b3j3HutSTreader = new TMVA::Reader("!Color:!Silent");
b3j3HutSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b3j3HutSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b3j3HutSTreader->AddVariable("LepCharge",&LepCharge);
b3j3HutSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b3j3HutSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b3j3HutSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b3j3HutSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b3j3HutSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b3j3HutSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b3j3HutSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b3j3HutSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b3j3HutSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b3j3HctSTreader = new TMVA::Reader("!Color:!Silent");
b3j3HctSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b3j3HctSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b3j3HctSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b3j3HctSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b3j3HctSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b3j3HctSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b3j3HctSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b3j3HctSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b3j3HctSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b3j3HctSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b3j3HctSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b3j3HutTTreader = new TMVA::Reader("!Color:!Silent");
b3j3HutTTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b3j3HutTTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b3j3HutTTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b3j3HutTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b3j3HutTTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b3j3HutTTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b3j3HutTTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b3j3HutTTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b3j3HctTTreader = new TMVA::Reader("!Color:!Silent");
b3j3HctTTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b3j3HctTTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b3j3HctTTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b3j3HctTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b3j3HctTTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b3j3HctTTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b3j3HctTTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b3j3HctTTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
std::string b3j3HutSTweightsFile = _home+"/MVA/weights/TMVA_HutST_all_b3j3_BDT.weights.xml";
b3j3HutSTreader->BookMVA("BDTG method",b3j3HutSTweightsFile.c_str());
std::string b3j3HctSTweightsFile = _home+"/MVA/weights/TMVA_HctST_all_b3j3_BDT.weights.xml";
b3j3HctSTreader->BookMVA("BDTG method",b3j3HctSTweightsFile.c_str());
std::string b3j3HutTTweightsFile = _home+"/MVA/weights/TMVA_HutTT_all_b3j3_BDT.weights.xml";
b3j3HutTTreader->BookMVA("BDTG method",b3j3HutTTweightsFile.c_str());
std::string b3j3HctTTweightsFile = _home+"/MVA/weights/TMVA_HctTT_all_b3j3_BDT.weights.xml";
b3j3HctTTreader->BookMVA("BDTG method",b3j3HctTTweightsFile.c_str());
// b3j4
b3j4HutSTreader = new TMVA::Reader("!Color:!Silent");
b3j4HutSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b3j4HutSTreader->AddVariable("TopHadMass_TOPTOPLEPHAD",&TopHadMass_TOPTOPLEPHAD);
b3j4HutSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b3j4HutSTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b3j4HutSTreader->AddVariable("LepCharge",&LepCharge);
b3j4HutSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b3j4HutSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b3j4HutSTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b3j4HutSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b3j4HutSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b3j4HutSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b3j4HutSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b3j4HutSTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b3j4HutSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b3j4HutSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b3j4HutSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b3j4HutSTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b3j4HutSTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b3j4HutSTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b3j4HutSTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b3j4HctSTreader = new TMVA::Reader("!Color:!Silent");
b3j4HctSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b3j4HctSTreader->AddVariable("TopHadMass_TOPTOPLEPHAD",&TopHadMass_TOPTOPLEPHAD);
b3j4HctSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b3j4HctSTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b3j4HctSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b3j4HctSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b3j4HctSTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b3j4HctSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b3j4HctSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b3j4HctSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b3j4HctSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b3j4HctSTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b3j4HctSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b3j4HctSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b3j4HctSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b3j4HctSTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b3j4HctSTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b3j4HctSTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b3j4HctSTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b3j4HutTTreader = new TMVA::Reader("!Color:!Silent");
b3j4HutTTreader->AddVariable("HiggsMass_TOPTOPLEPHBB",&HiggsMass_TOPTOPLEPHBB);
b3j4HutTTreader->AddVariable("MVA_TOPTOPLEPHBB",&MVA_TOPTOPLEPHBB);
b3j4HutTTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b3j4HutTTreader->AddVariable("TopLepMass_TOPTOPLEPHBB",&TopLepMass_TOPTOPLEPHBB);
b3j4HutTTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b3j4HutTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB",&HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB);
b3j4HutTTreader->AddVariable("TopLepHiggsDr_TOPTOPLEPHBB",&TopLepHiggsDr_TOPTOPLEPHBB);
b3j4HutTTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b3j4HutTTreader->AddVariable("HiggsBJet1CSVv2_TOPTOPLEPHBB",&HiggsBJet1CSVv2_TOPTOPLEPHBB);
b3j4HutTTreader->AddVariable("HiggsBJet2CSVv2_TOPTOPLEPHBB",&HiggsBJet2CSVv2_TOPTOPLEPHBB);
b3j4HutTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHBB",&TopLepBJetCSVv2_TOPTOPLEPHBB);
b3j4HutTTreader->AddVariable("TopHadNonBJetCSVv2_TOPTOPLEPHBB",&TopHadNonBJetCSVv2_TOPTOPLEPHBB);
b3j4HutTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b3j4HutTTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b3j4HutTTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b3j4HutTTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b3j4HctTTreader = new TMVA::Reader("!Color:!Silent");
b3j4HctTTreader->AddVariable("HiggsMass_TOPTOPLEPHBB",&HiggsMass_TOPTOPLEPHBB);
b3j4HctTTreader->AddVariable("MVA_TOPTOPLEPHBB",&MVA_TOPTOPLEPHBB);
b3j4HctTTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b3j4HctTTreader->AddVariable("TopLepMass_TOPTOPLEPHBB",&TopLepMass_TOPTOPLEPHBB);
b3j4HctTTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b3j4HctTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB",&HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB);
b3j4HctTTreader->AddVariable("TopLepHiggsDr_TOPTOPLEPHBB",&TopLepHiggsDr_TOPTOPLEPHBB);
b3j4HctTTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b3j4HctTTreader->AddVariable("HiggsBJet1CSVv2_TOPTOPLEPHBB",&HiggsBJet1CSVv2_TOPTOPLEPHBB);
b3j4HctTTreader->AddVariable("HiggsBJet2CSVv2_TOPTOPLEPHBB",&HiggsBJet2CSVv2_TOPTOPLEPHBB);
b3j4HctTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHBB",&TopLepBJetCSVv2_TOPTOPLEPHBB);
b3j4HctTTreader->AddVariable("TopHadNonBJetCSVv2_TOPTOPLEPHBB",&TopHadNonBJetCSVv2_TOPTOPLEPHBB);
b3j4HctTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b3j4HctTTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b3j4HctTTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b3j4HctTTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
std::string b3j4HutSTweightsFile = _home+"/MVA/weights/TMVA_HutST_all_b3j4_BDT.weights.xml";
b3j4HutSTreader->BookMVA("BDTG method",b3j4HutSTweightsFile.c_str());
std::string b3j4HctSTweightsFile = _home+"/MVA/weights/TMVA_HctST_all_b3j4_BDT.weights.xml";
b3j4HctSTreader->BookMVA("BDTG method",b3j4HctSTweightsFile.c_str());
std::string b3j4HutTTweightsFile = _home+"/MVA/weights/TMVA_HutTT_all_b3j4_BDT.weights.xml";
b3j4HutTTreader->BookMVA("BDTG method",b3j4HutTTweightsFile.c_str());
std::string b3j4HctTTweightsFile = _home+"/MVA/weights/TMVA_HctTT_all_b3j4_BDT.weights.xml";
b3j4HctTTreader->BookMVA("BDTG method",b3j4HctTTweightsFile.c_str());
// b4j4
b4j4HutSTreader = new TMVA::Reader("!Color:!Silent");
b4j4HutSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b4j4HutSTreader->AddVariable("TopHadMass_TOPTOPLEPHAD",&TopHadMass_TOPTOPLEPHAD);
b4j4HutSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b4j4HutSTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b4j4HutSTreader->AddVariable("LepCharge",&LepCharge);
b4j4HutSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b4j4HutSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b4j4HutSTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b4j4HutSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b4j4HutSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b4j4HutSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b4j4HutSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b4j4HutSTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b4j4HutSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b4j4HutSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b4j4HutSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b4j4HutSTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b4j4HutSTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b4j4HutSTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b4j4HutSTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b4j4HctSTreader = new TMVA::Reader("!Color:!Silent");
b4j4HctSTreader->AddVariable("HiggsMass_TOPHLEPBB",&HiggsMass_TOPHLEPBB);
b4j4HctSTreader->AddVariable("TopHadMass_TOPTOPLEPHAD",&TopHadMass_TOPTOPLEPHAD);
b4j4HctSTreader->AddVariable("MVA_TOPHLEPBB",&MVA_TOPHLEPBB);
b4j4HctSTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b4j4HctSTreader->AddVariable("HiggsEta_TOPHLEPBB",&HiggsEta_TOPHLEPBB);
b4j4HctSTreader->AddVariable("TopLepMass_TOPHLEPBB",&TopLepMass_TOPHLEPBB);
b4j4HctSTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b4j4HctSTreader->AddVariable("TopLepPt_TOPHLEPBB",&TopLepPt_TOPHLEPBB);
b4j4HctSTreader->AddVariable("TopLepEta_TOPHLEPBB",&TopLepEta_TOPHLEPBB);
b4j4HctSTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPHLEPBB",&HiggsBJet1HiggsBJet2Dr_TOPHLEPBB);
b4j4HctSTreader->AddVariable("TopLepHiggsDr_TOPHLEPBB",&TopLepHiggsDr_TOPHLEPBB);
b4j4HctSTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b4j4HctSTreader->AddVariable("HiggsBJet1CSVv2_TOPHLEPBB",&HiggsBJet1CSVv2_TOPHLEPBB);
b4j4HctSTreader->AddVariable("HiggsBJet2CSVv2_TOPHLEPBB",&HiggsBJet2CSVv2_TOPHLEPBB);
b4j4HctSTreader->AddVariable("TopLepBJetCSVv2_TOPHLEPBB",&TopLepBJetCSVv2_TOPHLEPBB);
b4j4HctSTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b4j4HctSTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b4j4HctSTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b4j4HctSTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b4j4HutTTreader = new TMVA::Reader("!Color:!Silent");
b4j4HutTTreader->AddVariable("HiggsMass_TOPTOPLEPHBB",&HiggsMass_TOPTOPLEPHBB);
b4j4HutTTreader->AddVariable("MVA_TOPTOPLEPHBB",&MVA_TOPTOPLEPHBB);
b4j4HutTTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b4j4HutTTreader->AddVariable("TopLepMass_TOPTOPLEPHBB",&TopLepMass_TOPTOPLEPHBB);
b4j4HutTTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b4j4HutTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB",&HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB);
b4j4HutTTreader->AddVariable("TopLepHiggsDr_TOPTOPLEPHBB",&TopLepHiggsDr_TOPTOPLEPHBB);
b4j4HutTTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b4j4HutTTreader->AddVariable("HiggsBJet1CSVv2_TOPTOPLEPHBB",&HiggsBJet1CSVv2_TOPTOPLEPHBB);
b4j4HutTTreader->AddVariable("HiggsBJet2CSVv2_TOPTOPLEPHBB",&HiggsBJet2CSVv2_TOPTOPLEPHBB);
b4j4HutTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHBB",&TopLepBJetCSVv2_TOPTOPLEPHBB);
b4j4HutTTreader->AddVariable("TopHadNonBJetCSVv2_TOPTOPLEPHBB",&TopHadNonBJetCSVv2_TOPTOPLEPHBB);
b4j4HutTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b4j4HutTTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b4j4HutTTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b4j4HutTTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
b4j4HctTTreader = new TMVA::Reader("!Color:!Silent");
b4j4HctTTreader->AddVariable("HiggsMass_TOPTOPLEPHBB",&HiggsMass_TOPTOPLEPHBB);
b4j4HctTTreader->AddVariable("MVA_TOPTOPLEPHBB",&MVA_TOPTOPLEPHBB);
b4j4HctTTreader->AddVariable("MVA_TOPTOPLEPHAD",&MVA_TOPTOPLEPHAD);
b4j4HctTTreader->AddVariable("TopLepMass_TOPTOPLEPHBB",&TopLepMass_TOPTOPLEPHBB);
b4j4HctTTreader->AddVariable("TopLepMass_TOPTOPLEPHAD",&TopLepMass_TOPTOPLEPHAD);
b4j4HctTTreader->AddVariable("HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB",&HiggsBJet1HiggsBJet2Dr_TOPTOPLEPHBB);
b4j4HctTTreader->AddVariable("TopLepHiggsDr_TOPTOPLEPHBB",&TopLepHiggsDr_TOPTOPLEPHBB);
b4j4HctTTreader->AddVariable("TopLepTopHadDr_TOPTOPLEPHAD",&TopLepTopHadDr_TOPTOPLEPHAD);
b4j4HctTTreader->AddVariable("HiggsBJet1CSVv2_TOPTOPLEPHBB",&HiggsBJet1CSVv2_TOPTOPLEPHBB);
b4j4HctTTreader->AddVariable("HiggsBJet2CSVv2_TOPTOPLEPHBB",&HiggsBJet2CSVv2_TOPTOPLEPHBB);
b4j4HctTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHBB",&TopLepBJetCSVv2_TOPTOPLEPHBB);
b4j4HctTTreader->AddVariable("TopHadNonBJetCSVv2_TOPTOPLEPHBB",&TopHadNonBJetCSVv2_TOPTOPLEPHBB);
b4j4HctTTreader->AddVariable("TopLepBJetCSVv2_TOPTOPLEPHAD",&TopLepBJetCSVv2_TOPTOPLEPHAD);
b4j4HctTTreader->AddVariable("TopHadBJetCSVv2_TOPTOPLEPHAD",&TopHadBJetCSVv2_TOPTOPLEPHAD);
b4j4HctTTreader->AddVariable("TopHadWNonBJet1CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet1CSVv2_TOPTOPLEPHAD);
b4j4HctTTreader->AddVariable("TopHadWNonBJet2CSVv2_TOPTOPLEPHAD",&TopHadWNonBJet2CSVv2_TOPTOPLEPHAD);
std::string b4j4HutSTweightsFile = _home+"/MVA/weights/TMVA_HutST_all_b4j4_BDT.weights.xml";
b4j4HutSTreader->BookMVA("BDTG method",b4j4HutSTweightsFile.c_str());
std::string b4j4HctSTweightsFile = _home+"/MVA/weights/TMVA_HctST_all_b4j4_BDT.weights.xml";
b4j4HctSTreader->BookMVA("BDTG method",b4j4HctSTweightsFile.c_str());
std::string b4j4HutTTweightsFile = _home+"/MVA/weights/TMVA_HutTT_all_b4j4_BDT.weights.xml";
b4j4HutTTreader->BookMVA("BDTG method",b4j4HutTTweightsFile.c_str());
std::string b4j4HctTTweightsFile = _home+"/MVA/weights/TMVA_HctTT_all_b4j4_BDT.weights.xml";
b4j4HctTTreader->BookMVA("BDTG method",b4j4HctTTweightsFile.c_str());
std::cout << "ApplyMVA initialisation done" << std::endl;
}
double ApplyMVA::run(std::string chan)
{
_disc = 10E+10;
if( chan == "b0j3HutST" ) _disc = b0j3HutSTreader->EvaluateMVA("BDTG method");
else if( chan == "b0j3HctST" ) _disc = b0j3HctSTreader->EvaluateMVA("BDTG method");
else if( chan == "b0j3HutTT" ) _disc = b0j3HutTTreader->EvaluateMVA("BDTG method");
else if( chan == "b0j3HctTT" ) _disc = b0j3HctTTreader->EvaluateMVA("BDTG method");
else if( chan == "b0j4HutST" ) _disc = b0j4HutSTreader->EvaluateMVA("BDTG method");
else if( chan == "b0j4HctST" ) _disc = b0j4HctSTreader->EvaluateMVA("BDTG method");
else if( chan == "b0j4HutTT" ) _disc = b0j4HutTTreader->EvaluateMVA("BDTG method");
else if( chan == "b0j4HctTT" ) _disc = b0j4HctTTreader->EvaluateMVA("BDTG method");
else if( chan == "b1j3HutST" ) _disc = b1j3HutSTreader->EvaluateMVA("BDTG method");
else if( chan == "b1j3HctST" ) _disc = b1j3HctSTreader->EvaluateMVA("BDTG method");
else if( chan == "b1j3HutTT" ) _disc = b1j3HutTTreader->EvaluateMVA("BDTG method");
else if( chan == "b1j3HctTT" ) _disc = b1j3HctTTreader->EvaluateMVA("BDTG method");
else if( chan == "b1j4HutST" ) _disc = b1j4HutSTreader->EvaluateMVA("BDTG method");
else if( chan == "b1j4HctST" ) _disc = b1j4HctSTreader->EvaluateMVA("BDTG method");
else if( chan == "b1j4HutTT" ) _disc = b1j4HutTTreader->EvaluateMVA("BDTG method");
else if( chan == "b1j4HctTT" ) _disc = b1j4HctTTreader->EvaluateMVA("BDTG method");
else if( chan == "b2j3HutST" ) _disc = b2j3HutSTreader->EvaluateMVA("BDTG method");
else if( chan == "b2j3HctST" ) _disc = b2j3HctSTreader->EvaluateMVA("BDTG method");
else if( chan == "b2j3HutTT" ) _disc = b2j3HutTTreader->EvaluateMVA("BDTG method");
else if( chan == "b2j3HctTT" ) _disc = b2j3HctTTreader->EvaluateMVA("BDTG method");
else if( chan == "b2j4HutST" ) _disc = b2j4HutSTreader->EvaluateMVA("BDTG method");
else if( chan == "b2j4HctST" ) _disc = b2j4HctSTreader->EvaluateMVA("BDTG method");
else if( chan == "b2j4HutTT" ) _disc = b2j4HutTTreader->EvaluateMVA("BDTG method");
else if( chan == "b2j4HctTT" ) _disc = b2j4HctTTreader->EvaluateMVA("BDTG method");
else if( chan == "b3j3HutST" ) _disc = b3j3HutSTreader->EvaluateMVA("BDTG method");
else if( chan == "b3j3HctST" ) _disc = b3j3HctSTreader->EvaluateMVA("BDTG method");
else if( chan == "b3j3HutTT" ) _disc = b3j3HutTTreader->EvaluateMVA("BDTG method");
else if( chan == "b3j3HctTT" ) _disc = b3j3HctTTreader->EvaluateMVA("BDTG method");
else if( chan == "b3j4HutST" ) _disc = b3j4HutSTreader->EvaluateMVA("BDTG method");
else if( chan == "b3j4HctST" ) _disc = b3j4HctSTreader->EvaluateMVA("BDTG method");
else if( chan == "b3j4HutTT" ) _disc = b3j4HutTTreader->EvaluateMVA("BDTG method");
else if( chan == "b3j4HctTT" ) _disc = b3j4HctTTreader->EvaluateMVA("BDTG method");
else if( chan == "b4j4HutST" ) _disc = b4j4HutSTreader->EvaluateMVA("BDTG method");
else if( chan == "b4j4HctST" ) _disc = b4j4HctSTreader->EvaluateMVA("BDTG method");
else if( chan == "b4j4HutTT" ) _disc = b4j4HutTTreader->EvaluateMVA("BDTG method");
else if( chan == "b4j4HctTT" ) _disc = b4j4HctTTreader->EvaluateMVA("BDTG method");
return _disc;
}
| [
"Kirill.Skovpen@cern.ch"
] | Kirill.Skovpen@cern.ch |
8d801faae1800a54b8ca7da662eb791c91a5e34b | 722b55471cec03b50d0f06ce79946237ba9a0895 | /pathfinding.h | 276e7e4799945af4635bcc26d9eee1d975c9efe3 | [] | no_license | NikoWil/mapf | f005f08e270e1311357f7460a4a5691e53b57989 | a8e532d7ce1d0f46fc0469d43e2427c3dba2f9ed | refs/heads/master | 2020-12-27T22:49:37.459555 | 2020-02-04T16:24:31 | 2020-02-04T16:24:31 | 238,093,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,154 | h | //
// Created by khondar on 01.02.20.
//
#ifndef MAPF_PATHFINDING_H
#define MAPF_PATHFINDING_H
#include <ostream>
//#include <queue>
#include <unordered_set>
#include <unordered_map>
#include <vector>
/* Used to implement custom hash functions for own datatypes (SpaceTimePoint specifically)
* Taken from
* https://stackoverflow.com/questions/35985960/c-why-is-boosthash-combine-the-best-way-to-combine-hash-values
* and thus from boost::hash_combine
*
* @tparam T Type of the element to be added to the hash
* @param seed The hash up to this point
* @param v The value of which the hash is combined with the current hash
*/
template<class T>
inline void hash_combine(std::size_t &seed, const T &v) {
std::hash<T> hasher;
seed ^= hasher(v) + 0x9e3779b9 + (seed << 6u) + (seed >> 2u);
}
enum class Move {
Up, Down, Left, Right, Rest
};
struct SpaceTimePoint;
struct SpacePoint {
explicit SpacePoint(SpaceTimePoint p);
SpacePoint(int32_t x, int32_t y);
bool operator==(const SpacePoint other) const noexcept;
bool operator!=(const SpacePoint other) const noexcept;
friend std::ostream &operator<<(std::ostream& os, const SpacePoint p);
int32_t x;
int32_t y;
};
struct SpaceTimePoint {
explicit SpaceTimePoint(SpacePoint p, int32_t t = 0);
explicit SpaceTimePoint(int32_t x, int32_t y, int32_t t);
friend std::ostream &operator<<(std::ostream &os, const SpaceTimePoint p);
bool operator==(const SpaceTimePoint other) const;
int32_t x;
int32_t y;
int32_t t;
};
namespace std {
template<>
struct hash<SpaceTimePoint> {
size_t operator()(SpaceTimePoint const &p) const noexcept {
std::hash<int32_t> hasher;
size_t hash = hasher(p.x);
hash_combine(hash, p.y);
hash_combine(hash, p.t);
return hash;
}
};
}
template<typename P1, typename P2>
uint32_t manhatten_distance(P1 p1, P2 p2) {
return std::abs(p1.x - p2.x) + std::abs(p1.y - p2.y);
}
std::vector<SpaceTimePoint>
get_neighbours(SpaceTimePoint p, int32_t width, int32_t height, const std::unordered_set<SpaceTimePoint> &reservations);
std::vector<SpaceTimePoint>
reconstruct_path(const std::unordered_map<SpaceTimePoint, SpaceTimePoint> &came_from, SpaceTimePoint goal);
/**
* start: the start node
* goal: the goal node, time to reach doesn't matter
*
* rest_after: number of time units the field needs to stay free after arrival, e.g. for loading, unloading, charging
* max_charge: the max. number of move actions that are legal to be executed, resting does not take charge
*/
std::vector<SpaceTimePoint>
a_star(SpaceTimePoint start, SpacePoint goal, uint32_t rest_after, int32_t charge, uint32_t width, uint32_t height,
const std::unordered_set<SpaceTimePoint> &reservations);
std::pair<bool, int32_t>
find_path_and_update(SpaceTimePoint start, SpacePoint goal, uint32_t rest_after, int32_t charge, uint32_t width,
uint32_t height, std::unordered_set<SpaceTimePoint> &reservations);
int32_t get_used_charge(const std::vector<SpaceTimePoint> &path);
#endif //MAPF_PATHFINDING_H
| [
"niko.wilhelm@gmx.net"
] | niko.wilhelm@gmx.net |
4742627fa089314ef14b3adb7e2a25be9daeb458 | 97c3a0cdc0894e08d2afebbd1a6e86e3233312d2 | /data/FrenchVanilla/src/turtlebot_example/src/turtlebot_example_node.cpp | 75a370b77b0208842697e81df19dc13b162e3605 | [
"MIT",
"BSD-2-Clause"
] | permissive | elbaum/phys | 139c17d9e4a5ed257657be9e5a3b4c580c460448 | 6ac580323493a5c6bb6846d039ae51e9ed1ec8b6 | refs/heads/master | 2020-03-21T13:25:09.513340 | 2018-06-24T21:05:43 | 2018-06-24T21:05:43 | 138,604,505 | 0 | 0 | MIT | 2018-06-25T14:15:26 | 2018-06-25T14:15:26 | null | UTF-8 | C++ | false | false | 2,883 | cpp | // ///////////////////////////////////////////////////////////
//
// turtlebot_example_node.cpp
// This file contains example code for use with ME 597 lab 1
// It outlines the basic setup of a ros node and the various
// inputs and outputs.
//
// Author: James Servos. 2012
//
// //////////////////////////////////////////////////////////
#include <ros/ros.h>
#include <geometry_msgs/PoseWithCovarianceStamped.h>
#include <geometry_msgs/Twist.h>
#include <tf/transform_datatypes.h>
double X=0.0;
double Y=0.0;
double yaw_degrees=0.0;
int state=0;
double err_x=0.0,err_y=0.0,err_d=0.0,err_yaw=0.0;
double vel_x=0.0,vel_y=0.0,ang_z=0.0;
void goal_d(double x_t,double y_t, double t)
{
err_x=x_t-X;
err_y=y_t-Y;
err_d=sqrt(err_x*err_x+err_y+err_y);
err_yaw=t-yaw_degrees;
//if(err_yaw<0)err_yaw=err_yaw+360;
if(err_x>0.1||err_y>0.1)
{vel_x=0.3;ang_z=0.0;}//ROS_INFO("1..S=%d",state);}
else if(err_yaw>2)
{ang_z=0.15;vel_x=0.0;}//ROS_INFO("2..S=%d",state);}
else
{
state=(state+1)%8;
ang_z=0.0;vel_x=0.0;
ROS_INFO("3..S=%d",state);
}
}
//Callback function for the Position topic
void pose_callback(const geometry_msgs::PoseWithCovarianceStamped& msg)
{
//This function is called when a new pose message is received
X = msg.pose.pose.position.x; // Robot X psotition
Y = msg.pose.pose.position.y; // Robot Y psotition
double Yaw = tf::getYaw(msg.pose.pose.orientation); // Robot Yaw
yaw_degrees = Yaw * 180.0 / M_PI; // conversion to degrees
if( yaw_degrees < 0 ) yaw_degrees += 360.0; // convert negative to positive angles
ROS_INFO("pose_callback X: %f Y: %f Yaw: %f", X, Y, yaw_degrees);
}
int main(int argc, char **argv)
{
//Initialize the ROS framework
ros::init(argc,argv,"main_control");
ros::NodeHandle n;
//Subscribe to the desired topics and assign callbacks
ros::Subscriber pose_sub = n.subscribe("/amcl_pose", 1, pose_callback);
//Setup topics to Publish from this node
ros::Publisher velocity_publisher = n.advertise<geometry_msgs::Twist>("/cmd_vel_mux/input/navi", 1);
//Velocity control variable
geometry_msgs::Twist vel;
//Set the loop rate
ros::Rate loop_rate(20); //20Hz update rate
while (ros::ok())
{
loop_rate.sleep(); //Maintain the loop rate
ros::spinOnce(); //Check for new messages
//Main loop code goes here:
switch(state){
case 0:goal_d(1,0,0);break;
case 1:goal_d(1,0,90);break;
case 2:goal_d(1,1,90);break;
case 3:goal_d(1,1,180);break;
case 4:goal_d(0,1,180);break;
case 5:goal_d(0,1,270);break;
case 6:goal_d(0,0,270);break;
case 7:goal_d(0,0,358);break;
default: ROS_INFO("DEfaultt");}
vel.linear.x = vel_x; // set linear speed
vel.angular.z = ang_z; // set angular speed
velocity_publisher.publish(vel); // Publish the command velocity
ROS_DEBUG("Main - Velocity commands: v - %f, w - %f", vel.linear.x, vel.angular.z);
}
return 0;
}
| [
"jpwco@bitbucket.org"
] | jpwco@bitbucket.org |
d6fb40fb5ebbc649b564c9ca7b47ce56e3ee485c | 5898d3bd9e4cb58043b40fa58961c7452182db08 | /part3/ch28/28-4-4-generic-not-equal/src/Vector.h | 873b415ccece2b48996f4fce361fbfa754535a9b | [] | no_license | sasaki-seiji/ProgrammingLanguageCPP4th | 1e802f3cb15fc2ac51fa70403b95f52878223cff | 2f686b385b485c27068328c6533926903b253687 | refs/heads/master | 2020-04-04T06:10:32.942026 | 2017-08-10T11:35:08 | 2017-08-10T11:35:08 | 53,772,682 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 583 | h | /*
* Vector.h
*
* Created on: 2016/09/11
* Author: sasaki
*/
#ifndef VECTOR_H_
#define VECTOR_H_
#include <initializer_list>
#include <algorithm>
template<typename T>
class Vector {
size_t sz;
T* elem;
public:
using value_type = T;
using iterator = T*;
Vector(std::initializer_list<T>);
~Vector() { delete [] elem; }
iterator begin() { return elem; }
iterator end() { return elem+sz; }
};
template<typename T>
Vector<T>::Vector(std::initializer_list<T> il)
: sz{il.size()}, elem{new T[sz]}
{
std::copy(il.begin(), il.end(), elem);
}
#endif /* VECTOR_H_ */
| [
"sasaki-seiji@msj.biglobe.ne.jp"
] | sasaki-seiji@msj.biglobe.ne.jp |
44bdf7b599099b425b65bf0cda5f6a85f34f66ed | 6a6487cb64424d4ccdc05d3bb6607e8976517a80 | /ARM/a7_15/hw/models/PL180_pv.cpp | 557413fa830ccd4e549f8972aa4bd300f8d9fd80 | [] | no_license | trueman1990/VistaModels | 79d933a150f80166c9062294f4725b812bb5d4fc | 5766de72c844a9e14fa65cb752ea81dfd6e7c42a | refs/heads/master | 2021-06-08T22:02:32.737552 | 2017-01-23T16:10:23 | 2017-01-23T16:10:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 739 | cpp |
/**************************************************************/
/* */
/* Copyright Mentor Graphics Corporation 2006 - 2015 */
/* All Rights Reserved */
/* */
/* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY */
/* INFORMATION WHICH IS THE PROPERTY OF MENTOR */
/* GRAPHICS CORPORATION OR ITS LICENSORS AND IS */
/* SUBJECT TO LICENSE TERMS. */
/* */
/**************************************************************/
#include "PL180_pv.h"
| [
"markca@lisboa.(none)"
] | markca@lisboa.(none) |
e1bc535e0ea12daec658d1c60337808a9cea57a8 | 6ed3ada5d2815ba5b00c17dcb8ab87186d893327 | /stdafx.h | e9b45a95c8bbb7d9925b25da8f50f4a8d4e45cb2 | [] | no_license | pffang/ImageViewer | 5e4dbef4dc4ee50d5a8f9b86e4023e80aade0994 | 06717943273b0500e99ff718c88edd38dfff7dac | refs/heads/master | 2021-01-10T05:32:39.379357 | 2016-04-02T14:46:26 | 2016-04-02T14:46:26 | 55,290,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | h | #pragma once
#include "targetver.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include <assert.h>
#include <string>
#include <commdlg.h>
#include <shellapi.h>
#include <wincodec.h>
#include <d2d1.h> | [
"pffang@vip.qq.com"
] | pffang@vip.qq.com |
75f278ca5dd81bc8b4bf5a214180ffa8811370c3 | f5c793161dc309c194e97ce35b8e6be8ab69f0ef | /push_pop_sequence.cpp | d7a138ba1a4ea06112701acf64ffb2de1546efa6 | [] | no_license | HowieDriver/ProgrammingExercises | 2e2c17b4ebb807a65d4f81dd5c1bd0a6e11b6b57 | ca18c741260278c76eba7602b85d6bfb7c583aeb | refs/heads/master | 2020-03-24T16:56:27.801949 | 2018-08-10T02:34:44 | 2018-08-10T02:34:44 | 142,843,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 432 | cpp | bool IsPopOrder(vector<int> pushV,vector<int> popV) {
if(pushV.size() == 0) return false;
stack<int> stack;
for(int i = 0,j = 0 ;i < pushV.size();){
stack.push(pushV[i++]);
while(j < popV.size() && stack.top() == popV[j]){
stack.pop();
j++;
}
}
return stack.empty();
}
| [
"yong_zhang@163.com"
] | yong_zhang@163.com |
0014a41502231577d5101f9151a7933934122dcc | 9dc1571734cc1da70668a31f86bfd1dd9bc1320b | /zlibrary/ui/src/qt/dialogs/ZLQtProgressDialog.cpp | 8ca04d708c10a2ae35b550dde5aec89626cb7536 | [] | no_license | vSlipenchuk/fbreader_touch_dic | e3868b0175e6677393cc34fb6429d5e102735ed7 | 4ae38d0cad34138b1819045d90d06b7631fe5e66 | refs/heads/master | 2022-08-20T13:11:10.387521 | 2020-05-30T18:30:43 | 2020-05-30T18:30:43 | 268,138,437 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,840 | cpp | /*
* Copyright (C) 2004-2012 Geometer Plus <contact@geometerplus.com>
*
* This program 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 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
#include <unistd.h>
#include <qapplication.h>
#include <qcursor.h>
#include <qwidget.h>
#include <qpainter.h>
#include "ZLQtProgressDialog.h"
#include "ZLQtUtil.h"
ZLQtProgressDialog::ZLQtProgressDialog(const ZLResourceKey &key) : ZLProgressDialog(key), myWaitMessage(0) {
}
void ZLQtProgressDialog::run(ZLRunnable &runnable) {
ZLQtWaitMessage waitMessage(messageText());
myWaitMessage = &waitMessage;
runnable.run();
myWaitMessage = 0;
}
void ZLQtProgressDialog::setMessage(const std::string &message) {
if (myWaitMessage == 0) {
return;
}
myWaitMessage->myLabelText = ::qtString(message);
myWaitMessage->repaint();
QFontMetrics metrics = myWaitMessage->fontMetrics();
const int w = metrics.width(myWaitMessage->myLabelText) + 20;
const int h = metrics.height() + 20;
myWaitMessage->resize(w, h);
qApp->processEvents();
}
ZLQtWaitMessage::ZLQtWaitMessage(const std::string &message) : QWidget(0, 0, WStyle_Splash), myLabelText(::qtString(message)) {
QWidget *main = qApp->mainWidget();
if (main != 0) {
myCursorIsStored = true;
myStoredCursor = main->cursor();
main->setCursor(Qt::waitCursor);
} else {
myCursorIsStored = false;
}
setCursor(Qt::waitCursor);
qApp->processEvents();
if (main == 0) {
main = QApplication::desktop();
}
QPoint position = main->pos();
QFontMetrics metrics = fontMetrics();
const int w = metrics.width(myLabelText) + 20;
const int h = metrics.height() + 20;
resize(1, 1);
show();
setGeometry(
position.x() + (main->width() - w) / 2,
position.y() + (main->height() - h) / 2,
w, h
);
qApp->processEvents();
for (int i = 0; i < 6; ++i) {
usleep(5000);
qApp->processEvents();
}
}
ZLQtWaitMessage::~ZLQtWaitMessage() {
if (myCursorIsStored) {
QWidget *main = qApp->mainWidget();
if (main != 0) {
main->setCursor(myStoredCursor);
}
}
}
void ZLQtWaitMessage::paintEvent(QPaintEvent *event) {
QPainter painter;
painter.begin(this);
painter.drawText(10, fontMetrics().height() - fontMetrics().descent() + 10, myLabelText);
painter.end();
}
| [
"vslipenchuk@gmail.com"
] | vslipenchuk@gmail.com |
cedf7d3884f4737d07bcdb3b4051ad44186bd4a2 | e659fbec5b7a00b899756d150ca105028b98b9f2 | /Level-6/Trees/populateNextRPointerExtraMemo.cpp | d6704f77b60c348d989fb2b91a4f71b058dd4844 | [] | no_license | rahul2106/InterViewBit | 4df820e6ffc972f8a15423865985d3ee3692f41a | 6b9ee3971dab698400410fecd0320bf8ca32941d | refs/heads/master | 2021-01-21T23:16:43.246632 | 2017-06-23T13:11:15 | 2017-06-23T13:11:15 | 95,220,522 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 922 | cpp | // https://www.interviewbit.com/problems/populate-next-right-pointers-tree/
/**
* Definition for binary tree with next pointer.
* struct TreeLinkNode {
* int val;
* TreeLinkNode *left, *right, *next;
* TreeLinkNode(int x) : val(x), left(NULL), right(NULL), next(NULL) {}
* };
*/
void Solution::connect(TreeLinkNode* A) {
deque <TreeLinkNode*> q;
if(A==NULL)
return ;
q.push_back(A);
while(!q.empty()){
int count = q.size();
for(int i = 0; i<count-1; i++){
q[i]->next = q[i+1];
}
for(int i=0; i<count; i++){
if(q.front()->left)
q.push_back(q.front()->left);
if(q.front()->left)
q.push_back(q.front()->right);
q.pop_front();
}
}
}
| [
"rahul.kmr2106@gmail.com"
] | rahul.kmr2106@gmail.com |
03c1d0f9c1eb930861ba0b834b1678d048e36fdc | 2f89e56da2dac5f8ba5c970d9b8a762e9465995a | /SDL_Project/Collider.h | d58a7912dd34e7ded70339e3021f5aeeb90596d5 | [] | no_license | floopygoober/Physics-Engine | 2e6618855e347a53483d73915ede1f500d851fa3 | b36ad7406a77b3eb8fa9bb2a60e07e6b2ac7a6e0 | refs/heads/master | 2020-04-16T20:29:38.123135 | 2019-01-23T18:09:00 | 2019-01-23T18:09:00 | 165,899,976 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 193 | h | #ifndef Collider_H
#define Collider_H
class Body;
class Collider
{
public:
static bool Collided(const Body& b1, const Body& b2);
static void HandleCollision(Body& b1, Body& b2);
};
#endif | [
"benglase89@gmail.com"
] | benglase89@gmail.com |
7d674d38e6ea1c6a010f7c8c741ed019ee847f5d | 0a0745ef14680f7e75e9efe7857781c36124df70 | /src/interface.cpp | 7053b413d7f4ba094ef614bae4bcc29d885f94fe | [] | no_license | natanfernandes/LP1-PRATICA3 | 554bf92977fd604e85f655a334718b4d17681371 | f2ec12827fa7c6dd9999a8cc7c60fae035fac6ad | refs/heads/master | 2020-03-19T09:08:07.799753 | 2018-06-07T06:18:11 | 2018-06-07T06:18:11 | 136,262,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,128 | cpp | /**
*@file interface.cpp
*@brief Contém toda interface da corrida
*@author Natanael Fernandes T. Araujo
*/
#include <iostream>
#include <ctime>
#include <cstdlib>
#include <string>
#include "../include/sapo.hpp"
#include "../include/pista.hpp"
#include "../include/interface.hpp"
#include "../include/corrida.hpp"
#include "../include/lerArquivos.hpp"
#include "../include/escreverArquivo.hpp"
using namespace std;
/**
*@brief Funcão que mostra um cabecalho visual
*/
void cabecalho()
{
cout << "|-------------------------------------------------------------------------------------------------------------|" << endl;
cout << "| |" << endl;
cout << "| |" << endl;
cout << "| CORRIDA DE SAPOS! |" << endl;
cout << "| |" << endl;
cout << "| |" << endl;
cout << "|-------------------------------------------------------------------------------------------------------------|" << endl
<< endl;
}
/**
*@brief Funcão que começa e mostra toda a interface do projeto
*/
void interface()
{
bool out = false;
corrida Corrida;
lerArquivoSapos(Corrida);
lerArquivoPistas(Corrida);
cabecalho();
while (out == false)
{
cout << "-Bem-vindo a corrida de sapos, oque deseja fazer?" << endl;
cout << " a) Ver estatísticas dos sapos." << endl;
cout << " b) Ver estatísticas das pistas." << endl;
cout << " c) Iniciar corrida." << endl;
cout << " d) Criar um sapo." << endl;
cout << " e) Criar uma pista." << endl;
cout << " f) Fechar corrida." << endl;
cout << "-Digite a letra correspondente a ação, ex: 'a' para ver as estatísticas dos sapos!" << endl;
char primeiraOpcao;
cin >> primeiraOpcao;
if (primeiraOpcao == 'a')
{
cout << " a) Estatísticas dos Sapos : " << endl;
Corrida.verEstatisticasSapos();
}
else if (primeiraOpcao == 'b')
{
cout << " a) Estatísticas das Pistas : " << endl;
Corrida.verEstatisticasPistas();
}
else if (primeiraOpcao == 'c')
{
cout << " a) Iniciar a corrida : " << endl;
Corrida.verDisponiveis();
Corrida.escolherPista();
Corrida.startcorrida();
Corrida.verRanking();
cout << "Corrida Finalizada, fechando ..."<<endl;
out = true;
}
else if (primeiraOpcao == 'd')
{
cout << " d) Criar Novo Sapo : " << endl;
Corrida.criarSapo();
escreverArquivoSapos(Corrida);
lerArquivoSapos(Corrida);
}
else if (primeiraOpcao == 'e')
{
cout << " e) Criar Nova Pista : "<<endl;
Corrida.criarPista();
escreverArquivoPistas(Corrida);
lerArquivoPistas(Corrida);
}
else if (primeiraOpcao == 'f')
{
cout << "Fechando..." << endl;
out = true;
}
}
} | [
"natan-fernandes1@hotmail.com"
] | natan-fernandes1@hotmail.com |
576a82e920fe645218fef977c834ad3de247647e | 73eb2cd518d367bde50d750583f3bd2dc62b72f3 | /emulation/java_vm/wpi_cross/shim_jni.cpp | c750b9b55afcf200e63896074139c756f0444e5d | [
"Apache-2.0"
] | permissive | Autodesk/synthesis | 533fad26b43a064c1c198207a0c1dac74b5962bf | 663de4c173df590306e4f6eaa9f643f96f72a3c9 | refs/heads/master | 2023-09-01T21:58:36.053466 | 2023-08-04T19:06:52 | 2023-08-04T19:06:52 | 63,108,821 | 161 | 71 | Apache-2.0 | 2023-09-02T23:14:44 | 2016-07-11T23:14:46 | C# | UTF-8 | C++ | false | false | 140 | cpp |
namespace sim{
jint SimOnLoad(JavaVM* vm, void* reserved){
return JNI_VERSION_1_6;
}
void SimOnUnload(JavaVM* vm, void* reserved){}
} | [
"matmoradi17@gmail.com"
] | matmoradi17@gmail.com |
d96ff83f4c80ff7db1dc689f21fd3e030c6ce9ac | 7ebae5ec0378642a1d2c181184460e76c73debbd | /UVA Online Judge/10678/10678/stdafx.cpp | 471010e9b3095974ea4a13a21fdde54d4966fa06 | [] | no_license | tonyli00000/Competition-Code | a4352b6b6835819a0f19f7f5cc67e46d2a200906 | 7f5767e3cb997fd15ae6f72145bcb8394f50975f | refs/heads/master | 2020-06-17T23:04:10.367762 | 2019-12-28T22:08:25 | 2019-12-28T22:08:25 | 196,091,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | cpp | // stdafx.cpp : source file that includes just the standard includes
// 10678.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
| [
"tonyli2002@live.com"
] | tonyli2002@live.com |
b5209aa58d352e6c981d1a675a434c63272c3805 | dc57d617393613a8e99cb793a9ce3bf45620a7a0 | /cBasicExercises07/experiment_6.cpp | 94ef9e055710729325626ef43ee242c4486ab0d3 | [] | no_license | tfcpanda/cBaseExercises | 147e1dceff8a905a763bb4cc210692d73998460b | aeb89e194b3da8c8d8185db883be3ddf258bdcf1 | refs/heads/master | 2022-08-27T21:26:11.679189 | 2020-05-21T13:03:55 | 2020-05-21T13:03:55 | 258,239,920 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 151 | cpp | #include<stdio.h>
int main(void){
int n,num,sum = 0;
scanf("%d",&n);
while(n>0){
num = n%10;
sum = sum +num;
n = n/10;
}
printf("%d",sum);
} | [
"tfcpanda@outlook.com"
] | tfcpanda@outlook.com |
45f3438af466bb3be51491295ced188372cd59bc | 3bfe741bca4ccb928ab03958fef677662b642a32 | /include/RE/BSDevices/MenuEventHandler/MenuOpenHandler.h | 5d5eac559e6438591de7248fc044c5b67a08b4f7 | [
"MIT"
] | permissive | Slaynot/CommonLibSSE | 9865fc7d7e3167dd72193ef3828ac7db54858cc5 | 6b3fd268327fb630139d2a183cbd5aa5669cfc5f | refs/heads/master | 2023-08-19T00:32:11.523120 | 2021-10-05T21:02:33 | 2021-10-05T21:02:33 | 293,022,195 | 0 | 1 | MIT | 2021-10-05T19:52:10 | 2020-09-05T07:02:12 | C++ | UTF-8 | C++ | false | false | 668 | h | #pragma once
#include "RE/BSDevices/MenuEventHandler/MenuEventHandler.h"
namespace RE
{
struct MenuOpenHandler : public MenuEventHandler
{
public:
inline static constexpr auto RTTI = RTTI_MenuOpenHandler;
virtual ~MenuOpenHandler(); // 00
// override (MenuEventHandler)
virtual bool CanProcess(InputEvent* a_event) override; // 01
virtual bool ProcessKinect(KinectEvent* a_event) override; // 02
virtual bool ProcessButton(ButtonEvent* a_event) override; // 05
// members
bool unk10; // 10
std::uint8_t unk11; // 11
std::uint16_t unk12; // 12
std::uint32_t unk14; // 14
};
static_assert(sizeof(MenuOpenHandler) == 0x18);
}
| [
"ryan__mckenzie@hotmail.com"
] | ryan__mckenzie@hotmail.com |
7862f0aaedb058fafcdac3420d3f9efbc1fd3704 | 3797682cbe1517a6b2174dde1646994ae93e4b95 | /Dynamic/Substring/main.cpp | 5fbc34b558d9f19ccb1c450dd84f8f199d08ec15 | [
"MIT"
] | permissive | Voley/Algorithmic-Problems | eea1ffbebaf5f49723ebbca4b4492caf360895ec | 1f5b41cc018556bc4369d6bbe423ab8fe643b625 | refs/heads/master | 2021-09-13T05:55:37.201137 | 2018-04-25T18:33:09 | 2018-04-25T18:33:09 | 104,708,840 | 30 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 821 | cpp | #include <iostream>
#include <vector>
using std::string;
using std::vector;
int longestSubstring(string a, string b) {
if (a.size() == 0 || b.size() == 0) {
return 0;
}
auto memo = vector<vector<int>>(a.size() + 1, vector<int>(b.size() + 1, 0));
int max = 0;
for (int i = 1; i <= a.size(); i++) {
for (int j = 1; j <= b.size(); j++) {
if (a[i] == b[j]) {
memo[i][j] = memo[i-1][j-1] + 1;
max = std::max(max, memo[i][j]);
} else {
memo[i][j] = 0;
}
}
}
return max;
}
int main() {
std::cout << longestSubstring("abdef", "aaefaa") << " ";
std::cout << longestSubstring("", "aaefaa") << " ";
std::cout << longestSubstring("abdef", "zxcy") << std::endl;
return 0;
}
| [
"dimavolevodz@gmail.com"
] | dimavolevodz@gmail.com |
1bb41ccc32c0e90717b82bebf294779c7e787a98 | a6937404eee136857e2ce2569adbbe05a9660f1b | /P3/Fecha.hpp | a4320173429a457f345eb6bd17310ee9fcfffcfb | [] | no_license | danitico/ED | 99a9e0b3436684cc6fe715953cef9688166cec17 | bc1f3cb4d8185fb11017bd248b61b81dd35be056 | refs/heads/master | 2021-09-28T21:07:05.213244 | 2018-11-20T16:42:45 | 2018-11-20T16:42:45 | 121,263,599 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,590 | hpp | /*!
\file Fecha.hpp
\brief Fichero de la clase Fecha
*/
#ifndef _FECHA_HPP_
#define _FECHA_HPP_
// Entrada y salida
#include <iostream>
// Para controlar las precondiciones y postcondiciones mediante asertos
#include <cassert>
// Para la sobrecarga de los operadores de flujo: << y >>
using std::istream;
using std::ostream;
// Se incluye la clase Fecha dentro del espacio de nombres de la asigantura: ed
namespace ed {
//! Definición de la clase Fecha
class Fecha
{
//! \name Atributos privados de la clase Fecha
private:
int _dia; //!< día de la fecha
int _mes; //!< mes de la fecha
int _agno; //!< año de la fecha
//! \name Funciones o métodos privados de la clase Fecha
/*!
\brief Función que comprueba si un año es bisiesto, es decir, si es múltiplo de 4 pero si es divisible por 100 también debe ser divisible por 400
\attention Se utiliza el modificador const en la definición de la función para poder definir el constructor de copia y el operador de asignacion "="
\return bool: true, si es bisiesto; false, en caso contrario
\pre Ninguna
\post Ninguna
\sa getAgno()
*/
bool esBisiesto() const;
//! \name Funciones o métodos públicos de la clase Fecha
public:
//! \name Constructores de la clase Fecha
/*!
\brief Constructor que crea una fecha
\attention Función sobrecargada
\note Función inline
\warning Los parámetros tienen valores por defecto
\param dia: día de la fecha; valor por defecto: 1
\param mes: mes de la fecha; valor por defecto: 1
\param agno: año de la fecha; valor por defecto: 1
\pre Ninguna
\post La fecha debe ser correcta
\sa setDia, setMes(), setAgno(), esCorrecta
*/
inline Fecha(int dia=1, int mes=1, int agno=1)
{
this->setDia(dia);
this->setMes(mes);
this->setAgno(agno);
#ifndef NDEBUG
// Se comprueba la postcondición
assert(this->esCorrecta() == true);
#endif //NDEBUG
}
/*!
\brief Constructor de "copia" que crea una fecha a partir de otra fecha
\attention Función sobrecargada
\note Función inline
\warning Se requiere que las funciones de acceso getDia(), getMes y getAgno tengan el modificador const
\param objeto de la clase Fecha utilizado para proporcionar los valores iniciales de la nueva fecha
\pre La fecha del objeto es correcta
\post Los atributos _dia, _mes y _agno deben tener los valores de los atributos del objeto pasado como argumento
\sa getDia(), getMes(), setDia(), setMes()
*/
inline Fecha(Fecha const &objeto)
{
#ifndef NDEBUG
// Se comprueba la precondición
// assert(objeto.esCorrecta() == true);
#endif //NDEBUG
this->setDia(objeto.getDia());
this->setMes(objeto.getMes());
this->setAgno(objeto.getAgno());
#ifndef NDEBUG
// Se comprueba la postcondición
assert(this->_dia == objeto.getDia());
assert(this->_mes == objeto.getMes());
assert(this->_agno == objeto.getAgno());
#endif //NDEBUG
}
//! \name Observadores: funciones de consulta de la clase Fecha
/*!
\brief Función que devuelve el díade una fecha
\attention Se utiliza el modificador const en la definición de la función para poder definir el constructor de copia y el operador de asignacion "="
\note Función inline y redefinida de la clase padre FechaInterfaz
\return Valor del atributo que representa el día (tipo int)
\pre Ninguna
\post Ninguna
\sa getMes(), getAgno()
*/
inline int getDia() const
{
return _dia;
}
/*!
\brief Función que devuelve el mes de una fecha
\attention Se utiliza el modificador const en la definición de la función para poder definir el constructor de copia y el operador de asignacion "="
\note Función inline y redefinida de la clase padre FechaInterfaz
\return Valor del atributo que representa el mes (tipo int)
\pre Ninguna
\post Ninguna
\sa getDia(), getAgno()
*/
inline int getMes() const
{
return this->_mes;
}
/*!
\brief Función que devuelve el año de una fecha
\attention Se utiliza el modificador const en la definición de la función para poder definir el constructor de copia y el operador de asignacion "="
\note Función inline y redefinida de la clase padre FechaInterfaz
\return Valor del atributo que representa el año (tipo int)
\pre Ninguna
\post Ninguna
\sa getDia(), getMes()
*/
inline int getAgno() const
{
return this->_agno;
}
/*!
\brief Función que comprueba si una fecha es correcta
\attention Se utiliza el modificador const en la definición de la función para poder definir el constructor de copia y el operador de asignacion "="
\return bool: true, si la fecha es correcta; false, en caso contrario
\pre Ninguna
\post Ninguna
\sa getDia(), getMes(), getAgno()
*/
bool esCorrecta() const;
//! \name Funciones de modificación de la clase Fecha
/*!
\brief Función que asigna un nuevo valor al día de una fecha
\note Función inline y redefinida de la clase padre FechaInterfaz
\param v: nuevo valor del día de una Fecha
\pre El valor de v debe estar en los límites establecidos por el mes y año
\post El atributo _dia de Fecha debe tener el valor "v"
\sa setMes(), setAgno()
*/
inline void setDia(int v)
{
this->_dia = v;
#ifndef NDEBUG
// Se comprueba la postcondición
assert(this->_dia == v);
#endif //NDEBUG
}
/*!
\brief Función que asigna un nuevo valor al mes de una fecha
\note Función inline y redefinida de la clase padre FechaInterfaz
\param v: nuevo valor del mes de una fecha
\pre ninguna
\post El atributo _mes de Fecha debe tener el valor "v"
\sa setDia, setAgno
*/
inline void setMes(int v)
{
this->_mes = v;
#ifndef NDEBUG
// Se comprueba la postcondición
assert(this->_mes == v);
#endif //NDEBUG
}
/*!
\brief Función que asigna un nuevo valor al año de una fecha
\note Función inline y redefinida de la clase padre FechaInterfaz
\param v: nuevo valor del año de una fecha
\pre ninguna
\post El atributo _agno de Fecha debe tener el valor "v"
\sa setDia, setMes
*/
inline void setAgno(int v)
{
this->_agno = v;
#ifndef NDEBUG
// Se comprueba la postcondición
assert(this->_agno == v);
#endif //NDEBUG
}
//! \name Operadores
/*!
\brief Operador de asignación: operador que "copia" una fecha en otra fecha
\attention Se sobrecarga el operador de asignación "="
\note Función inline
\warning Se requiere que las funciones de acceso getDia y getMes tengan el modificador const
\param objeto de la clase Fecha pasado como referencia constante
\pre El objeto es distinto del objeto actual
\pre El objeto representa una fecha correcta
\post Los atributos _dia, _mes y _agno deben tener los valores de los atributos del objeto pasado como argumento
\sa getDia(), getMes(), setDia(), setMes()
*/
inline Fecha & operator=(Fecha const &objeto)
{
/*
#ifndef NDEBUG
// Se comprueba la precondición
// assert(objeto.esCorrecta() == true);
#endif //NDEBUG
*/
// Se comprueba que no sean el mismo objeto
if (this != &objeto)
{
this->setDia(objeto.getDia());
this->setMes(objeto.getMes());
this->setAgno(objeto.getAgno());
#ifndef NDEBUG
// Se comprueba la postcondición
assert(this->_dia == objeto.getDia());
assert(this->_mes == objeto.getMes());
assert(this->_agno == objeto.getAgno());
#endif //NDEBUG
}
return *this;
}
/*!
\brief Operador de igualdad: compara si dos fechaes son iguales
\attention Se sobrecarga el operador de asignación "=="
\note Función inline
\param objeto: Fecha pasada como referencia constante
\pre Ninguna
\post Ninguna
\sa getDia(), getMes(), getAgno(), esCorrecta
*/
inline bool operator == (Fecha const &objeto) const
{
return (
( this->getDia() == objeto.getDia() )
and ( this->getMes() == objeto.getMes() )
and ( this->getAgno() == objeto.getAgno() )
);
}
//! \name Funciones de lectura y escritura de la clase Fecha
/*!
\brief Escribe por pantalla los valores de los atributos de una fecha
\pre La fecha debe ser correcta
\post Ninguna
\sa getDia(), getMes(), getAgno()
*/
void escribirFecha()const;
/*!
\brief Lee desde el teclado los nuevos valores de los atributos de una fecha
\warning Se deben teclear números
\pre ninguna
\post La fecha debe ser correcta
\sa setDia, setMes(), setAgno()
*/
void leerFecha();
}; // Fin de la definición de la clase Fecha
//! \name Funciones externas de la clase Fecha: sobrecarga de los operadores de flujo
/*!
\brief Sobrecarga del operador de salida o escritura "<<"
\n Se escribe la fecha por pantalla con el formato (d)d-(m)m--aaaa
\param stream Flujo de salida
\param fecha pasada como referencia constante
\pre Ninguna
\post Ninguna
\sa operator>>()
*/
ostream &operator<<(ostream &stream, Fecha const &fecha);
/*!
\brief Sobrecarga del operador de entrada o lectura ">>"
\param stream Flujo de entrada
\param fecha pasada como referencia
\pre Ninguna
\post Ninguna
\sa operator<<()
*/
istream &operator>>(istream &stream, Fecha &fecha);
} // \brief Fin de namespace ed.
// _FECHA_HPP_
#endif
| [
"danitico98@gmail.com"
] | danitico98@gmail.com |
44403f6d793f8d008865a61c17811b12719c9d52 | 35ad9b7745a7a35f2df21added88a67e009e1b4e | /Graph.h | ddbda6eb6664791363d0b31e3359bb7f3bd2b088 | [] | no_license | ChestnutHeng/CppTinySTL | 22e42f956f94203eaf059e6d6285735e4a6a3b39 | 2a36b19e65cfa76568f1614a7d524f259cf8a4a6 | refs/heads/master | 2021-05-04T09:49:18.736984 | 2016-11-23T07:35:34 | 2016-11-23T07:35:34 | 43,557,141 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,551 | h | #include <stddef.h>
#include <limits.h>
#include "List.h"
#include "Stack.h"
#include "Queue.h"
#include "Vector.h"
#define MIN(x,y) (x) < (y) ? (x) : (y)
typedef enum{UNDISCOVERED,DISCOVERED,VISITED}VStatus;
typedef enum{UNDETERMINED,TREE,CROSS,FORWARD,BACKWORD}EType;
template <typename Tv,typename Te>
class Graph
{
public:
int getCount_v(){return count_v;}
void setCount_v(int v){count_v = v;}
int getCount_e(){return count_v;}
void setCount_e(int e){count_e = e;}
virtual void BFS(int,int&);
virtual void DFS(int,int&);
virtual void BCC(int,int&,Stack<int>&);
virtual bool TSort(int,int&,Stack<Tv>*);
template <typename PU>
void PFS(int,PU);
virtual void bfs(int);
virtual void dfs(int);
virtual void bcc(int);
virtual Stack<Tv>* tSort(int);
virtual void prim(int);
virtual void dijkstra(int);
private:
int count_v;
int count_e;
public:
void reset(){
for (int i = 0; i < this -> getCount_v(); ++i)
{
status(i) = UNDISCOVERED;
dTime(i) = fTime(i) = -1;
parent(i) = -1;
priority(i) = INT_MAX;
for (int j = 0; j < this -> getCount_v(); ++j){
if(exists(i,j)) type(i,j) = UNDETERMINED;
}
}
}
Graph(){};
~Graph(){};
//vertex
virtual int insert(Tv const&) = 0;
virtual Tv remove(int) = 0;
virtual Tv& vertex(int) = 0;
virtual int inDegree(int) = 0;
virtual int outDegree(int) = 0;
virtual int firstNbr(int) = 0;
virtual int nextNbr(int,int) = 0;
virtual VStatus &status(int) = 0;
virtual int&dTime(int) = 0;
virtual int&fTime(int) = 0;
virtual int&parent(int) = 0;
virtual int&priority(int) = 0;
//edge
virtual bool exists(int,int) = 0;
virtual void insert(Te const&,int,int,int) = 0;
virtual Te remove(int,int) = 0;
virtual EType& type(int,int) = 0;
virtual Te& edge(int,int) = 0;
virtual int&weight(int,int) = 0;
};
//Graph Functions
template <typename Tv,typename Te>
void Graph<Tv,Te>::bfs(int s){ //s ,start ele
this -> reset();
int clock = 0;
int v = s;
do{
if(status(v) == UNDISCOVERED)
BFS(s,clock);
v = v % this -> getCount_v();
v++;
}while(s != v);
}
template <typename Tv, typename Te>
void Graph<Tv,Te>::BFS(int v,int &clock){ //v, start ele
Queue<int>Q;
status(v) = DISCOVERED;
Q.enqueue(v);
while(!Q.empty()){
int v = Q.dequeue();
dTime(v) = ++clock;
for (int u = firstNbr(v); u > -1; u = nextNbr(v,u)){
if(UNDISCOVERED == status(u)){
status(u) = DISCOVERED;
Q.enqueue(u);
type(v,u) = TREE;
parent(u) = v;
} else {
type(v,u) = CROSS;
}
}
status(v) = VISITED;
}
}
template <typename Tv,typename Te>
void Graph<Tv,Te>::dfs(int s){
this -> reset();
int clock = 0;
int v = s;
do{
if(status(v) == UNDISCOVERED)
DFS(s,clock);
v = v % this -> getCount_v();
v++;
}while(s != v);
}
template <typename Tv,typename Te>
void Graph<Tv,Te>::DFS(int v,int &clock){ //v, start ele
dTime(v) = ++clock;
status(v) = DISCOVERED;
for(int u = firstNbr(v); -1 < u;u = nextNbr(v,u)){
switch(status(u)){
case UNDISCOVERED:
type(v,u) = TREE;
parent(u) = v;
DFS(u,clock);
break;
case DISCOVERED:
type(v,u) = BACKWORD;
break;
default:
type(v,u) = (dTime(v) < dTime(u)) ? FORWARD : CROSS;
break;
}
}
}
template <typename Tv,typename Te>
void Graph<Tv, Te>::dijkstra (int s) {
this -> reset();
priority (s) = 0;
for (int i = 0;i < this -> getCount_v(); i++){
status(s) = VISITED;
if (-1 != parent(s)) type(parent(s),s) = TREE;
for (int j = firstNbr(s); -1 < j; j = nextNbr(s,j))
if ((status(j) == UNDISCOVERED) && (priority(j) > priority(s) + weight(s,j))){
priority(j) = priority(s) + weight(s, j);
parent (j) = s;
}
for (int shortest = INT_MAX, j = 0; j < this -> getCount_v(); j++ )
if ((status (j) == UNDISCOVERED) && (shortest > priority(j))){
shortest = priority(j);
s = j;
}
}
}
//travel functions
template <typename Tv,typename Te>
void Graph<Tv, Te>::prim (int s) {
this -> reset();
priority (s) = 0;
for (int i = 0;i < this -> getCount_v(); i++){
status(s) = VISITED;
if (-1 != parent(s)) type(parent(s),s) = TREE;
for (int j = firstNbr(s); -1 < j; j = nextNbr(s,j))
if ((status(j) == UNDISCOVERED) && (priority(j) > priority(s) + weight(s,j))){
priority(j) = weight(s, j);
parent (j) = s;
}
for (int shortest = INT_MAX, j = 0; j < this -> getCount_v(); j++ )
if ((status (j) == UNDISCOVERED) && (shortest > priority(j))){
shortest = priority(j);
s = j;
}
}
}
template <typename Tv,typename Te>
Stack<Tv>* Graph<Tv, Te>::tSort(int s){ //[0,n)
this -> reset();
int clock = 0;
int v = s;
Stack<Tv> *S = new Stack<Tv>;
do{
if(status(v) == UNDISCOVERED)
if(!TSort(v,clock,S)){
while(!S -> empty())
S -> pop();
break;
}
v++;
v = v % this -> getCount_v();
}while(s != v);
return S;
}
template <typename Tv,typename Te>
bool Graph<Tv, Te>::TSort(int v,int &clock,Stack<Tv> *S){
dTime(v) = ++clock;
status(v) = DISCOVERED;
for (int u = firstNbr(v); u > -1; u = nextNbr(v,u))
{
switch(status(u)){
case UNDISCOVERED:
parent(u) = v;
type(v,u) = TREE;
if(!TSort(u,clock,S))
return false;
break;
case DISCOVERED:
type(v,u) = BACKWORD;
return false;
case VISITED:
type(v,u) = (dTime(v) < dTime(u) ? FORWARD : CROSS);
break;
}
}
status(v) = VISITED;
S -> push(vertex(v));
return true;
}
template <typename Tv,typename Te>
void Graph<Tv, Te>::bcc(int s){
this -> reset();
int clock = 0;
int v = s;
Stack<int> S;
do{
if(status(v) == DISCOVERED){
BCC(v,clock,S);
S.pop();
}
}while(s != (v = (++v % this -> getCount_v())));
}
template <typename Tv,typename Te>
void Graph<Tv, Te>::BCC(int v,int &clock,Stack<int>& S){
fTime(v) = dTime(v) = ++clock;
status(v) = DISCOVERED;
S.push(v);
for (int u = firstNbr(v); u > -1; u = nextNbr(v,u))
{
switch(status(u)){
case UNDISCOVERED:
parent(u) = v;
type(v,u) = TREE;
BCC(u,clock,S);
if(fTime(u) < dTime(v))
fTime(v) = MIN(fTime(v),fTime(u));
else{
while(v != S.pop()); ///cout
S.push(v);
}
break;
case DISCOVERED:
type(v,u) = BACKWORD;
if(u != parent(v))
fTime(v) = MIN(fTime(v),dTime(u));
break;
case VISITED:
type(v,u) = (dTime(v) < dTime(u) ? FORWARD : CROSS);
break;
}
}
status(v) = VISITED;
}
//GraphMartrix
template <typename Tv>
struct Vertex
{
Tv data;
int inDegree;
int outDegree;
VStatus status;
int dTime,fTime;
int parent;
int priority;
Vertex(Tv const&d = (Tv)0):
data(d),inDegree(0),outDegree(0),status(UNDISCOVERED),
dTime(-1),fTime(-1),parent(-1),priority(INT_MAX){}
};
template <typename Te>
struct Edge
{
Te data;
int weight;
EType type;
Edge(Te const&d,int w):data(d),weight(w),type(UNDETERMINED){}
};
template <typename Tv,typename Te>
class GraphMatrix : public Graph <Tv,Te>
{
private:
Vector< Vertex<Tv> > V;
Vector <Vector < Edge<Te> * > > E;
public:
GraphMatrix(){this -> setCount_e(0);this -> setCount_v(0);}
~GraphMatrix(){
for (int i = 0; i < this -> getCount_v(); ++i)
for (int j = 0; j < this -> getCount_e(); ++j)
delete E[i][j];
}
//vertex
Tv& vertex(int i){return V[i].data;}
int inDegree(int i){return V[i].inDegree;}
int outDegree(int i){return V[i].outDegree;}
int firstNbr(int i){return nextNbr(i,this -> getCount_v());}
int nextNbr(int i,int j){while((j > -1) && (!exists(i,--j)));return j;}
VStatus& status(int i){return V[i].status;}
int &dTime(int i){return V[i].dTime;}
int &fTime(int i){return V[i].fTime;}
int &parent(int i){return V[i].parent;}
int &priority(int i){return V[i].priority;}
//edge
int insert(Tv const&vertex);
Tv remove(int j);
virtual bool exists(int i,int j){
return (i >= 0)&&(i < this -> getCount_v())&&(j >= 0)&&(j < this -> getCount_v())&&(E[i][j] != NULL);
}
virtual EType& type(int i,int j){return E[i][j] -> type;}
virtual Te& edge(int i,int j){return E[i][j] -> data;}
virtual int &weight(int i,int j){return E[i][j] -> weight;}
virtual void insert(Te const&edge,int w,int i,int j);
virtual Te remove(int i,int j);
//overload travel functions
//void dijkstra(int);
};
//Vetex Functions
template <typename Tv, typename Te>
int GraphMatrix<Tv,Te>::insert(Tv const&vertex){ //vetex insert
int count_v = this -> getCount_v();
for (int i = 0; i < count_v; ++i){
E[i].push_back(NULL);
}
this -> setCount_v(++count_v);
E.push_back(Vector< Edge<Te>* > (count_v,(Edge<Te>*)NULL));
V.push_back(Vertex<Tv>(vertex));
return 0; //return rank of vector
}
template <typename Tv, typename Te> //vetex remove
Tv GraphMatrix<Tv,Te>::remove(int j){
int count_v = this -> getCount_v();
for (int i = 0; i < count_v; ++i) {
if(exists(j,i)) {delete E[i][j];V[j].inDegree--;}
}
E.remove(j);
this -> setCount_v(--count_v);
Tv tmp = vertex(j);
V.remove(j);
for (int i = 0; i < count_v; ++i){
if(Edge<Te> *e = E[i][i]){
E[i].remove(i);
delete e;
V[i].outDegree--;
}
}
return tmp;
}
//Edge Functions
template <typename Tv, typename Te>
void GraphMatrix<Tv,Te>::insert(Te const&edge,int w,int i,int j){ //edge insert
if(exists(i,j)) return;
E[i][j] = new Edge<Te> (edge,w);
this -> setCount_e(this -> getCount_e() + 1);
V[i].outDegree++;
V[j].inDegree++;
}
template <typename Tv, typename Te> //edge remove
Te GraphMatrix<Tv,Te>::remove(int i,int j){
Te tmp = edge(i,j);
delete E[i][j];
E[i][j] = NULL;
this -> setCount_e(this -> getCount_e() - 1);
V[i].outDegree--;
V[j].inDegree--;
}
template <typename Te>
struct ListEdge
{
Te data;
int weight;
int another_v;
EType type;
ListEdge():data(NULL),weight(0),another_v(-1),type(UNDETERMINED){}
ListEdge(ListEdge &l){data = l.data;weight = l.weight;another_v = l.another_v;type = l.type;}
ListEdge(const Te &d,int w = 0,int v = -1,EType t = UNDETERMINED){data = d;weight = w;another_v = v;type = t;}
};
template <typename Tv,typename Te>
class GraphList : public Graph <Tv,Te>
{
public:
//vertex
virtual Tv& vertex(int i){return V[i].data;}
virtual int inDegree(int i){return V[i].inDegree;}
virtual int outDegree(int i){return V[i].outDegree;}
virtual int firstNbr(int i){return nextNbr(i,this -> getCount_v());}
virtual int nextNbr(int i,int j){while((j > -1) && (!exists(i,--j)));return j;}
virtual VStatus& status(int i){return V[i].status;}
virtual int &dTime(int i){return V[i].dTime;}
virtual int &fTime(int i){return V[i].fTime;}
virtual int &parent(int i){return V[i].parent;}
virtual int &priority(int i){return V[i].priority;}
virtual int insert(Tv const&vertex);
virtual Tv remove(int j);
//edge
virtual bool exists(int i,int j);
virtual EType& type(int i,int j){
for (int m = 0; m < E[i].size(); ++m)
if(E[i][m] -> another_v == j) return E[i][m] -> type;
}
virtual Te& edge(int i,int j){
for (int m = 0; m < E[i].size(); ++m)
if(E[i][m] -> another_v == j) return E[i][m] -> data;
}
virtual int &weight(int i,int j){
for (int m = 0; m < E[i].size(); ++m)
if(E[i][m] -> another_v == j) return E[i][m] -> weight;
}
virtual void insert(Te const&edge,int w,int i,int j);
virtual Te remove(int i,int j);
//overload travel funtions
//void dijkstra (int s);
private:
Vector< List < ListEdge <Te> *> > E;
Vector< Vertex <Tv> > V;
public:
GraphList(){this -> setCount_e(0);this -> setCount_v(0);}
~GraphList(){
for (int i = 0; i < E.size(); ++i){
for (int j = 0; j < E[i].size(); ++j){
delete E[i][j];
}
E[i].clear();
}
E.clear();
V.clear();
};
};
template <typename Tv,typename Te>
int GraphList<Tv,Te>:: insert(Tv const&vertex){
V.push_back(vertex);
List < ListEdge <Te> *> *tmp = new List < ListEdge <Te> *>();
E.push_back(*tmp);
this -> setCount_v(this -> getCount_v() + 1);
delete tmp;
return this -> getCount_v();
}
template <typename Tv,typename Te>
Tv GraphList<Tv,Te>::remove(int i){ //very slow
for (int j = 0; j < E[i].size(); ++j){
for (int m = 0; m < E[E[i][j] -> another_v].size(); ++m)
if(E[E[i][j] -> another_v][m] -> another_v == i)
E[E[i][j] -> another_v].erase(m);
}
for (int j = 0; j < E[i].size(); ++j)
delete E[i][j];
E.remove(i);
Vertex <Tv> old_v = V.remove(i);
return old_v.data;
}
template <typename Tv,typename Te>
bool GraphList<Tv,Te>::exists(int i,int j){
for (int m = 0; m < E[i].size(); ++m)
if(E[i][m] -> another_v == j) return true;
return false;
}
template <typename Tv,typename Te>
void GraphList<Tv,Te>:: insert(Te const&edge,int w,int i,int j){
if( exists(i,j) ) return;
ListEdge<Te> *tmp = new ListEdge<Te>(edge,w,j);
E[i].push_back(tmp);
this -> setCount_e(this -> getCount_e() + 1);
V[i].outDegree++;
V[j].inDegree++;
}
template <typename Tv,typename Te>
Te GraphList<Tv,Te>::remove(int i,int j){
Te old_e;
for (int m = 0; m < E[i].size(); ++m)
{
if(E[i][m] -> another_v == j){
old_e = E[i][m] -> data;
delete E[i][m];
E[i].erase(m);
}
}
return old_e;
}
| [
"chestnutheng@gmail.com"
] | chestnutheng@gmail.com |
8d67f4cb0eb6fae256761fd3396f6e78d596b3d3 | 43b0942942bb273a06d5ceaf62fbff3dff73c943 | /Project Editor/Editor.h | 2d8119eccaf4285072b54c53a96d0e3b045a944c | [] | no_license | IncBin94/2D-Editor | 4731ca100ef41ba2b8e4e125f5cff96b986b6170 | 9f788b728bf1d9fa7db42ec27e3d013ab5c65c9b | refs/heads/master | 2021-01-10T16:29:41.287433 | 2015-05-20T21:11:36 | 2015-05-20T21:11:36 | 35,974,191 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | h | #ifndef EDITOR_H
#define EDITOR_H
#include <SFML\Graphics.hpp>
class Editor : public sf::Drawable
{
public:
Editor();
~Editor();
};
#endif | [
"amine.boussik@gmail.com"
] | amine.boussik@gmail.com |
9d77f7fa2a66d1f670a67430675b3f34d50f3007 | 550d0aa4fa8031afb63d81ab7af08033cf30092a | /mainwindow.h | 886c3e22684b9ca67f9aeab5aae6e715be2c48d9 | [] | no_license | tzAcee/qt_IDE | 7e3bbef7e219917caa33ae03eaac7f9593e30590 | 12e4a1e3ce8e8777f87da83bac46c9730275cf3f | refs/heads/master | 2022-11-16T00:07:46.801792 | 2020-05-27T20:11:44 | 2020-05-27T20:11:44 | 266,313,260 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 365 | h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "editor.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
Ui::MainWindow *ui;
Editor* _editor;
};
#endif // MAINWINDOW_H
| [
"maximleis3@gmail.com"
] | maximleis3@gmail.com |
3301f4ca7f3a3d26be314c1dbcd8927c0ea7d98a | f7d8a85f9d0c1956d64efbe96d056e338b0e0641 | /Src/thread.cpp | 8d8a812744b3b9da93a94ebf67bbed8109a3499e | [] | no_license | thennequin/dlfm | 6183dfeb485f860396573eda125fd61dcd497660 | 0b122e7042ec3b48660722e2b41ef0a0551a70a9 | refs/heads/master | 2020-04-11T03:53:12.856319 | 2008-07-06T10:17:29 | 2008-07-06T10:17:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,673 | cpp | /////////////////////////////////////////////////////////////////////////////
// Name: thread.cpp
// Purpose: wxWidgets thread sample
// Author: Guilhem Lavaux, Vadim Zeitlin
// Modified by:
// Created: 06/16/98
// RCS-ID: $Id: thread.cpp 41547 2006-10-02 05:36:31Z PC $
// Copyright: (c) 1998-2002 wxWidgets team
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#if !wxUSE_THREADS
#error "This sample requires thread support!"
#endif // wxUSE_THREADS
#include "wx/thread.h"
#include "wx/dynarray.h"
#include "wx/numdlg.h"
#include "wx/progdlg.h"
//#include "../sample.xpm"
// define this to use wxExecute in the exec tests, otherwise just use system
#define USE_EXECUTE
#ifdef USE_EXECUTE
#define EXEC(cmd) wxExecute((cmd), wxEXEC_SYNC)
#else
#define EXEC(cmd) system(cmd)
#endif
class MyThread;
WX_DEFINE_ARRAY_PTR(wxThread *, wxArrayThread);
// Define a new application type
class MyApp : public wxApp
{
public:
MyApp();
virtual ~MyApp(){};
virtual bool OnInit();
public:
// all the threads currently alive - as soon as the thread terminates, it's
// removed from the array
wxArrayThread m_threads;
// crit section protects access to all of the arrays below
wxCriticalSection m_critsect;
// semaphore used to wait for the threads to exit, see MyFrame::OnQuit()
wxSemaphore m_semAllDone;
// the last exiting thread should post to m_semAllDone if this is true
// (protected by the same m_critsect)
bool m_waitingUntilAllDone;
};
// Create a new application object
IMPLEMENT_APP(MyApp)
// Define a new frame type
class MyFrame: public wxFrame
{
public:
// ctor
MyFrame(wxFrame *frame, const wxString& title, int x, int y, int w, int h);
virtual ~MyFrame();
// operations
void WriteText(const wxString& text) { m_txtctrl->WriteText(text); }
// accessors for MyWorkerThread (called in its context!)
bool Cancelled();
protected:
// callbacks
void OnQuit(wxCommandEvent& event);
void OnClear(wxCommandEvent& event);
void OnStartThread(wxCommandEvent& event);
void OnStartThreads(wxCommandEvent& event);
void OnStopThread(wxCommandEvent& event);
void OnPauseThread(wxCommandEvent& event);
void OnResumeThread(wxCommandEvent& event);
void OnStartWorker(wxCommandEvent& event);
void OnWorkerEvent(wxCommandEvent& event);
void OnUpdateWorker(wxUpdateUIEvent& event);
void OnExecMain(wxCommandEvent& event);
void OnExecThread(wxCommandEvent& event);
void OnShowCPUs(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
void OnIdle(wxIdleEvent &event);
private:
// helper function - creates a new thread (but doesn't run it)
MyThread *CreateThread();
// just some place to put our messages in
wxTextCtrl *m_txtctrl;
// remember the number of running threads and total number of threads
size_t m_nRunning, m_nCount;
// the progress dialog which we show while worker thread is running
wxProgressDialog *m_dlgProgress;
// was the worker thread cancelled by user?
bool m_cancelled;
// protects m_cancelled
wxCriticalSection m_critsectWork;
DECLARE_EVENT_TABLE()
};
// ID for the menu commands
enum
{
THREAD_QUIT = wxID_EXIT,
THREAD_ABOUT = wxID_ABOUT,
THREAD_TEXT = 101,
THREAD_CLEAR,
THREAD_START_THREAD = 201,
THREAD_START_THREADS,
THREAD_STOP_THREAD,
THREAD_PAUSE_THREAD,
THREAD_RESUME_THREAD,
THREAD_START_WORKER,
THREAD_EXEC_MAIN,
THREAD_EXEC_THREAD,
THREAD_SHOWCPUS,
WORKER_EVENT // this one gets sent from the worker thread
};
// ----------------------------------------------------------------------------
// GUI thread
// ----------------------------------------------------------------------------
class MyThread : public wxThread
{
public:
MyThread(MyFrame *frame);
// thread execution starts here
virtual void *Entry();
// called when the thread exits - whether it terminates normally or is
// stopped with Delete() (but not when it is Kill()ed!)
virtual void OnExit();
// write something to the text control
void WriteText(const wxString& text);
public:
unsigned m_count;
MyFrame *m_frame;
};
MyThread::MyThread(MyFrame *frame)
: wxThread()
{
m_count = 0;
m_frame = frame;
}
void MyThread::WriteText(const wxString& text)
{
wxString msg;
// before doing any GUI calls we must ensure that this thread is the only
// one doing it!
wxMutexGuiEnter();
msg << text;
m_frame->WriteText(msg);
wxMutexGuiLeave();
}
void MyThread::OnExit()
{
wxCriticalSectionLocker locker(wxGetApp().m_critsect);
wxArrayThread& threads = wxGetApp().m_threads;
threads.Remove(this);
if ( threads.IsEmpty() )
{
// signal the main thread that there are no more threads left if it is
// waiting for us
if ( wxGetApp().m_waitingUntilAllDone )
{
wxGetApp().m_waitingUntilAllDone = false;
wxGetApp().m_semAllDone.Post();
}
}
}
void *MyThread::Entry()
{
wxString text;
text.Printf(wxT("Thread 0x%lx started (priority = %u).\n"),
GetId(), GetPriority());
WriteText(text);
// wxLogMessage(text); -- test wxLog thread safeness
for ( m_count = 0; m_count < 10; m_count++ )
{
// check if we were asked to exit
if ( TestDestroy() )
break;
text.Printf(wxT("[%u] Thread 0x%lx here.\n"), m_count, GetId());
WriteText(text);
// wxSleep() can't be called from non-GUI thread!
wxThread::Sleep(1000);
}
text.Printf(wxT("Thread 0x%lx finished.\n"), GetId());
WriteText(text);
// wxLogMessage(text); -- test wxLog thread safeness
return NULL;
}
// ----------------------------------------------------------------------------
// worker thread
// ----------------------------------------------------------------------------
class MyWorkerThread : public wxThread
{
public:
MyWorkerThread(MyFrame *frame);
// thread execution starts here
virtual void *Entry();
// called when the thread exits - whether it terminates normally or is
// stopped with Delete() (but not when it is Kill()ed!)
virtual void OnExit();
public:
MyFrame *m_frame;
unsigned m_count;
};
MyWorkerThread::MyWorkerThread(MyFrame *frame)
: wxThread()
{
m_frame = frame;
m_count = 0;
}
void MyWorkerThread::OnExit()
{
}
void *MyWorkerThread::Entry()
{
for ( m_count = 0; !m_frame->Cancelled() && (m_count < 100); m_count++ )
{
// check if we were asked to exit
if ( TestDestroy() )
break;
// create any type of command event here
wxCommandEvent event( wxEVT_COMMAND_MENU_SELECTED, WORKER_EVENT );
event.SetInt( m_count );
// send in a thread-safe way
wxPostEvent( m_frame, event );
// wxSleep() can't be called from non-main thread!
wxThread::Sleep(200);
}
wxCommandEvent event( wxEVT_COMMAND_MENU_SELECTED, WORKER_EVENT );
event.SetInt(-1); // that's all
wxPostEvent( m_frame, event );
return NULL;
}
// ----------------------------------------------------------------------------
// a thread which simply calls wxExecute
// ----------------------------------------------------------------------------
class MyExecThread : public wxThread
{
public:
MyExecThread(const wxChar *command) : wxThread(wxTHREAD_JOINABLE),
m_command(command)
{
Create();
}
virtual ExitCode Entry()
{
return (ExitCode)EXEC(m_command);
}
private:
wxString m_command;
};
// ----------------------------------------------------------------------------
// implementation
// ----------------------------------------------------------------------------
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(THREAD_QUIT, MyFrame::OnQuit)
EVT_MENU(THREAD_CLEAR, MyFrame::OnClear)
EVT_MENU(THREAD_START_THREAD, MyFrame::OnStartThread)
EVT_MENU(THREAD_START_THREADS, MyFrame::OnStartThreads)
EVT_MENU(THREAD_STOP_THREAD, MyFrame::OnStopThread)
EVT_MENU(THREAD_PAUSE_THREAD, MyFrame::OnPauseThread)
EVT_MENU(THREAD_RESUME_THREAD, MyFrame::OnResumeThread)
EVT_MENU(THREAD_EXEC_MAIN, MyFrame::OnExecMain)
EVT_MENU(THREAD_EXEC_THREAD, MyFrame::OnExecThread)
EVT_MENU(THREAD_SHOWCPUS, MyFrame::OnShowCPUs)
EVT_MENU(THREAD_ABOUT, MyFrame::OnAbout)
EVT_UPDATE_UI(THREAD_START_WORKER, MyFrame::OnUpdateWorker)
EVT_MENU(THREAD_START_WORKER, MyFrame::OnStartWorker)
EVT_MENU(WORKER_EVENT, MyFrame::OnWorkerEvent)
EVT_IDLE(MyFrame::OnIdle)
END_EVENT_TABLE()
MyApp::MyApp()
: m_semAllDone()
{
m_waitingUntilAllDone = false;
}
// `Main program' equivalent, creating windows and returning main app frame
bool MyApp::OnInit()
{
// uncomment this to get some debugging messages from the trace code
// on the console (or just set WXTRACE env variable to include "thread")
//wxLog::AddTraceMask("thread");
// Create the main frame window
MyFrame *frame = new MyFrame((wxFrame *)NULL, _T("wxWidgets threads sample"),
50, 50, 450, 340);
// Make a menubar
wxMenuBar *menuBar = new wxMenuBar;
wxMenu *menuFile = new wxMenu;
menuFile->Append(THREAD_CLEAR, _T("&Clear log\tCtrl-L"));
menuFile->AppendSeparator();
menuFile->Append(THREAD_QUIT, _T("E&xit\tAlt-X"));
menuBar->Append(menuFile, _T("&File"));
wxMenu *menuThread = new wxMenu;
menuThread->Append(THREAD_START_THREAD, _T("&Start a new thread\tCtrl-N"));
menuThread->Append(THREAD_START_THREADS, _T("Start &many threads at once"));
menuThread->Append(THREAD_STOP_THREAD, _T("S&top a running thread\tCtrl-S"));
menuThread->AppendSeparator();
menuThread->Append(THREAD_PAUSE_THREAD, _T("&Pause a running thread\tCtrl-P"));
menuThread->Append(THREAD_RESUME_THREAD, _T("&Resume suspended thread\tCtrl-R"));
menuThread->AppendSeparator();
menuThread->Append(THREAD_START_WORKER, _T("Start &worker thread\tCtrl-W"));
menuBar->Append(menuThread, _T("&Thread"));
wxMenu *menuExec = new wxMenu;
menuExec->Append(THREAD_EXEC_MAIN, _T("&Launch a program from main thread\tF5"));
menuExec->Append(THREAD_EXEC_THREAD, _T("L&aunch a program from a thread\tCtrl-F5"));
menuBar->Append(menuExec, _T("&Execute"));
wxMenu *menuHelp = new wxMenu;
menuHelp->Append(THREAD_SHOWCPUS, _T("&Show CPU count"));
menuHelp->AppendSeparator();
menuHelp->Append(THREAD_ABOUT, _T("&About..."));
menuBar->Append(menuHelp, _T("&Help"));
frame->SetMenuBar(menuBar);
// Show the frame
frame->Show(true);
SetTopWindow(frame);
return true;
}
// My frame constructor
MyFrame::MyFrame(wxFrame *frame, const wxString& title,
int x, int y, int w, int h)
: wxFrame(frame, wxID_ANY, title, wxPoint(x, y), wxSize(w, h))
{
//SetIcon(wxIcon(sample_xpm));
m_nRunning = m_nCount = 0;
m_dlgProgress = (wxProgressDialog *)NULL;
#if wxUSE_STATUSBAR
CreateStatusBar(2);
#endif // wxUSE_STATUSBAR
m_txtctrl = new wxTextCtrl(this, wxID_ANY, _T(""), wxPoint(0, 0), wxSize(0, 0),
wxTE_MULTILINE | wxTE_READONLY);
}
MyFrame::~MyFrame()
{
// NB: although the OS will terminate all the threads anyhow when the main
// one exits, it's good practice to do it ourselves -- even if it's not
// completely trivial in this example
// tell all the threads to terminate: note that they can't terminate while
// we're deleting them because they will block in their OnExit() -- this is
// important as otherwise we might access invalid array elements
wxThread *thread;
wxGetApp().m_critsect.Enter();
// check if we have any threads running first
const wxArrayThread& threads = wxGetApp().m_threads;
size_t count = threads.GetCount();
if ( count )
{
// set the flag for MyThread::OnExit()
wxGetApp().m_waitingUntilAllDone = true;
// stop all threads
while ( ! threads.IsEmpty() )
{
thread = threads.Last();
wxGetApp().m_critsect.Leave();
thread->Delete();
wxGetApp().m_critsect.Enter();
}
}
wxGetApp().m_critsect.Leave();
if ( count )
{
// now wait for them to really terminate
wxGetApp().m_semAllDone.Wait();
}
//else: no threads to terminate, no condition to wait for
}
MyThread *MyFrame::CreateThread()
{
MyThread *thread = new MyThread(this);
if ( thread->Create() != wxTHREAD_NO_ERROR )
{
wxLogError(wxT("Can't create thread!"));
}
wxCriticalSectionLocker enter(wxGetApp().m_critsect);
wxGetApp().m_threads.Add(thread);
return thread;
}
void MyFrame::OnStartThreads(wxCommandEvent& WXUNUSED(event) )
{
static long s_num;
s_num = wxGetNumberFromUser(_T("How many threads to start: "), _T(""),
_T("wxThread sample"), s_num, 1, 10000, this);
if ( s_num == -1 )
{
s_num = 10;
return;
}
unsigned count = unsigned(s_num), n;
wxArrayThread threads;
// first create them all...
for ( n = 0; n < count; n++ )
{
wxThread *thr = CreateThread();
// we want to show the effect of SetPriority(): the first thread will
// have the lowest priority, the second - the highest, all the rest
// the normal one
if ( n == 0 )
thr->SetPriority(WXTHREAD_MIN_PRIORITY);
else if ( n == 1 )
thr->SetPriority(WXTHREAD_MAX_PRIORITY);
else
thr->SetPriority(WXTHREAD_DEFAULT_PRIORITY);
threads.Add(thr);
}
#if wxUSE_STATUSBAR
wxString msg;
msg.Printf(wxT("%d new threads created."), count);
SetStatusText(msg, 1);
#endif // wxUSE_STATUSBAR
// ...and then start them
for ( n = 0; n < count; n++ )
{
threads[n]->Run();
}
}
void MyFrame::OnStartThread(wxCommandEvent& WXUNUSED(event) )
{
MyThread *thread = CreateThread();
if ( thread->Run() != wxTHREAD_NO_ERROR )
{
wxLogError(wxT("Can't start thread!"));
}
#if wxUSE_STATUSBAR
SetStatusText(_T("New thread started."), 1);
#endif // wxUSE_STATUSBAR
}
void MyFrame::OnStopThread(wxCommandEvent& WXUNUSED(event) )
{
wxGetApp().m_critsect.Enter();
// stop the last thread
if ( wxGetApp().m_threads.IsEmpty() )
{
wxLogError(wxT("No thread to stop!"));
wxGetApp().m_critsect.Leave();
}
else
{
wxThread *thread = wxGetApp().m_threads.Last();
// it's important to leave critical section before calling Delete()
// because delete will (implicitly) call OnExit() which also tries
// to enter the same crit section - would dead lock.
wxGetApp().m_critsect.Leave();
thread->Delete();
#if wxUSE_STATUSBAR
SetStatusText(_T("Thread stopped."), 1);
#endif // wxUSE_STATUSBAR
}
}
void MyFrame::OnResumeThread(wxCommandEvent& WXUNUSED(event) )
{
wxCriticalSectionLocker enter(wxGetApp().m_critsect);
// resume first suspended thread
size_t n = 0, count = wxGetApp().m_threads.Count();
while ( n < count && !wxGetApp().m_threads[n]->IsPaused() )
n++;
if ( n == count )
{
wxLogError(wxT("No thread to resume!"));
}
else
{
wxGetApp().m_threads[n]->Resume();
#if wxUSE_STATUSBAR
SetStatusText(_T("Thread resumed."), 1);
#endif // wxUSE_STATUSBAR
}
}
void MyFrame::OnPauseThread(wxCommandEvent& WXUNUSED(event) )
{
wxCriticalSectionLocker enter(wxGetApp().m_critsect);
// pause last running thread
int n = wxGetApp().m_threads.Count() - 1;
while ( n >= 0 && !wxGetApp().m_threads[n]->IsRunning() )
n--;
if ( n < 0 )
{
wxLogError(wxT("No thread to pause!"));
}
else
{
wxGetApp().m_threads[n]->Pause();
#if wxUSE_STATUSBAR
SetStatusText(_T("Thread paused."), 1);
#endif // wxUSE_STATUSBAR
}
}
// set the frame title indicating the current number of threads
void MyFrame::OnIdle(wxIdleEvent& event)
{
wxCriticalSectionLocker enter(wxGetApp().m_critsect);
// update the counts of running/total threads
size_t nRunning = 0,
nCount = wxGetApp().m_threads.Count();
for ( size_t n = 0; n < nCount; n++ )
{
if ( wxGetApp().m_threads[n]->IsRunning() )
nRunning++;
}
if ( nCount != m_nCount || nRunning != m_nRunning )
{
m_nRunning = nRunning;
m_nCount = nCount;
wxLogStatus(this, wxT("%u threads total, %u running."), unsigned(nCount), unsigned(nRunning));
}
//else: avoid flicker - don't print anything
event.Skip();
}
void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) )
{
Close(true);
}
void MyFrame::OnExecMain(wxCommandEvent& WXUNUSED(event))
{
wxLogMessage(wxT("The exit code from the main program is %ld"),
EXEC(_T("/bin/echo \"main program\"")));
}
void MyFrame::OnExecThread(wxCommandEvent& WXUNUSED(event))
{
MyExecThread thread(wxT("/bin/echo \"child thread\""));
thread.Run();
wxLogMessage(wxT("The exit code from a child thread is %ld"),
(long)thread.Wait());
}
void MyFrame::OnShowCPUs(wxCommandEvent& WXUNUSED(event))
{
wxString msg;
int nCPUs = wxThread::GetCPUCount();
switch ( nCPUs )
{
case -1:
msg = _T("Unknown number of CPUs");
break;
case 0:
msg = _T("WARNING: you're running without any CPUs!");
break;
case 1:
msg = _T("This system only has one CPU.");
break;
default:
msg.Printf(wxT("This system has %d CPUs"), nCPUs);
}
wxLogMessage(msg);
}
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event) )
{
wxMessageDialog dialog(this,
_T("wxWidgets multithreaded application sample\n")
_T("(c) 1998 Julian Smart, Guilhem Lavaux\n")
_T("(c) 1999 Vadim Zeitlin\n")
_T("(c) 2000 Robert Roebling"),
_T("About wxThread sample"),
wxOK | wxICON_INFORMATION);
dialog.ShowModal();
}
void MyFrame::OnClear(wxCommandEvent& WXUNUSED(event))
{
m_txtctrl->Clear();
}
void MyFrame::OnUpdateWorker(wxUpdateUIEvent& event)
{
event.Enable( m_dlgProgress == NULL );
}
void MyFrame::OnStartWorker(wxCommandEvent& WXUNUSED(event))
{
MyWorkerThread *thread = new MyWorkerThread(this);
if ( thread->Create() != wxTHREAD_NO_ERROR )
{
wxLogError(wxT("Can't create thread!"));
return;
}
m_dlgProgress = new wxProgressDialog
(
_T("Progress dialog"),
_T("Wait until the thread terminates or press [Cancel]"),
100,
this,
wxPD_CAN_ABORT |
wxPD_APP_MODAL |
wxPD_ELAPSED_TIME |
wxPD_ESTIMATED_TIME |
wxPD_REMAINING_TIME
);
// thread is not running yet, no need for crit sect
m_cancelled = false;
thread->Run();
}
void MyFrame::OnWorkerEvent(wxCommandEvent& event)
{
#if 0
WriteText( _T("Got message from worker thread: ") );
WriteText( event.GetString() );
WriteText( _T("\n") );
#else
int n = event.GetInt();
if ( n == -1 )
{
m_dlgProgress->Destroy();
m_dlgProgress = (wxProgressDialog *)NULL;
// the dialog is aborted because the event came from another thread, so
// we may need to wake up the main event loop for the dialog to be
// really closed
wxWakeUpIdle();
}
else
{
if ( !m_dlgProgress->Update(n) )
{
wxCriticalSectionLocker lock(m_critsectWork);
m_cancelled = true;
}
}
#endif
}
bool MyFrame::Cancelled()
{
wxCriticalSectionLocker lock(m_critsectWork);
return m_cancelled;
}
| [
"CameleonTH@0c2b0ced-2a4c-0410-b056-e1a948518b24"
] | CameleonTH@0c2b0ced-2a4c-0410-b056-e1a948518b24 |
ce8b71dc3b65b3252975ce06bc9108e817096b42 | 3fdd5833b04cd9bd1a9250d582da10727c6600fd | /College projects/Computabilidad y Algoritmia (C++)/P5/transicion.hpp | 5aae98c515a2934e43b0c0fec5c862e98e740827 | [
"MIT"
] | permissive | clooney2007/Dev | b3bbec5cebb01d11717fbcaa41763d5327049bcf | d080e040a2b1205b7b15f5ada82fb759e3cd2869 | refs/heads/master | 2023-03-24T13:47:34.611185 | 2020-07-29T19:32:00 | 2020-07-29T19:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,809 | hpp | #pragma once
#include <iostream>
#include <vector>
using namespace std;
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Clase que contiene las transiciones de los estados.
*/
class transicion{
//========================================================================================
// Atributos.
//========================================================================================
private:
char entrada; /**< Caracter de entrada. */
int sig_estado; /**< Estado siguiente para la entrada. */
//========================================================================================
// Metodos publicos.
//========================================================================================
public:
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Constructor por defecto. Crea una transicion vacia.
*/
transicion(void);
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Constructor de copia.
* @param x transicion que se quiere copiar.
*/
transicion(const transicion &x);
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Constructor a partir de los parametros.
* @param entrada_ caracter de entrada.
* @param sig_estado_ siguiente estado para esa entrada.
*/
transicion(char entrada_, int sig_estado_);
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Destructor. Libera memoria.
*/
~transicion(void);
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Metodo que comprueba si existe una transicion con ese carcater de entrada.
* @param x caracter de entrada.
*/
bool existe(char x) const;
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Metodo que devuelve la entrada de la transicion.
* @return devuelve el caracter de entrada de la transicion.
*/
char get_entrada(void) const;
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Metodo que devuelve el estado siguiente de la transicion.
* @return devuelve el identificador del siguiente estado de la transicion.
*/
int get_sig_estado(void) const;
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Metodo que muestra las transicione spor pantalla.
*/
void mostrar(void) const;
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Metodo que iguala una transicion a otra.
* @param x transicion que se quiere igualar.
* @return devuelve la transicion resultante.
*/
transicion& operator=(const transicion &x);
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Metodo que comprueba si una transicion es menor que otra.
* @param x la transicion que se quiere comparar.
* @return devuelve el valor de la comparacion.
*/
int operator<(const transicion &x) const;
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Metodo que comprueba si una transicion es menor que otro.
* @param x transicion que se quiere comprobar.
* @return valor de la comprobacion.
* @retval TRUE las transiciones son iguales.
* @retval FALSE las transiciones son diferentes.
*/
bool operator==(const transicion &x) const;
//========================================================================================
// Metodos privados.
//========================================================================================
private:
/**
\author Rafael González de Chaves González (alu0100891812@ull.edu.es)
\date 16 de octubre de 2015
\details Metodo que imprime un estado en la salida especificada.
* @param x estado que se quiere imprimir.
* @param output salida que se le pasa
* @return la salida impresa.
*/
friend ostream &operator<<(ostream &output, const transicion &);
};
| [
"rafatyn@hotmail.com"
] | rafatyn@hotmail.com |
c63efb8754d9c0d2ec72c2f90d0be2d3b12739b2 | 826770da52f1007370f7f7dd8ad42409b399db48 | /Arduino/DoorbellModernizr_2/DoorbellModernizr_2.ino | b74b08f6aab555df3551851f014ea4371aa279e0 | [] | no_license | Lemcke-solutions/doorbellmodernizr2 | 9ababfda5354d826e620b92af0ecd904a060f617 | 57a923b1d3c79addbd63794563e9c63ac43075f6 | refs/heads/master | 2022-12-06T21:51:48.245636 | 2020-08-31T11:52:12 | 2020-08-31T11:52:12 | 280,712,536 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 18,703 | ino | /***************************************************************************
Code to use with doorbell, modernizr2 , see https://www.tindie.com/products/ErikLemcke/mqtt--wifi-doorbell-with-esp8266/
Created by Erik Lemcke 12-05-2020
This code can be used from the arduino library, you will need the following libraries:
https://github.com/tzapu/WiFiManager Included in this repository (src folder)
https://github.com/bblanchon/ArduinoJson
https://github.com/knolleary/pubsubclient
https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266mDNS
credits:
https://tzapu.com/ for the awesome WiFiManger library
https://github.com/esp8266/Arduino fopr the ESP8266 arduino core
https://arduinojson.org/ for the ArduinoJson library
https://pubsubclient.knolleary.net/ for the mqtt library
***************************************************************************/
#include <fs.h> //this needs to be first, or it all crashes and burns...
#import "index.h"
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include "src/WiFiManager.h"
#include <ArduinoJson.h> //https://github.com/bblanchon/ArduinoJson
#include <PubSubClient.h>
#include <base64.h>
#include <ESP8266HTTPClient.h>
int doorbellState = 0;
int resetState = 0;
const int doorbellPin = 14;
WiFiClient espClient;
HTTPClient http;
PubSubClient client(espClient);
WiFiManager wifiManager;
ESP8266WebServer server(80);
unsigned long previousMillis = 0;
DNSServer dnsServer; //Needed for captive portal when device is already connected to a wifi network
//extra parameters
char mqtt_server[40];
char mqtt_port[6] ;
char mqtt_username[40];
char mqtt_password[40];
char mqtt_topic[40];
char mqtt_switch_topic[47];
char mqtt_status_topic[47];
char mqtt_status[60] = "unknown";
char dz_idx[5];
char oh_itemid[40];
//flag for saving data
bool shouldSaveConfig = false;
bool apstarted = false;
//callback notifying us of the need to save config
void saveConfigCallback () {
Serial.println("Should save config");
shouldSaveConfig = true;
}
void configModeCallback (WiFiManager *myWiFiManager) {
Serial.println("Connection to previous set wifi failed. Erasing settings before becoming AP");
//SPIFFS.format();
}
//Handle webserver root request
void handleRoot() {
Serial.println("Config page is requested");
String addy = server.client().remoteIP().toString();
//determine if this user is connected to the AP or comming from the network the device is connected to
//when connected to AP, configuration is not allowed
if (addy == "192.168.4.2"){
server.send(200, "text/html", "The doorbell modernizr can be configured on address http:// " + WiFi.localIP().toString() + " when connected to wifi network " + WiFi.SSID());
} else {
String configPage = FPSTR(config_page);
configPage.replace("{v}", "Doorbell modernizr configuration");
configPage.replace("{1}", mqtt_server);
configPage.replace("{2}", mqtt_port);
configPage.replace("{3}", mqtt_username);
configPage.replace("{4}", mqtt_password);
configPage.replace("{5}", mqtt_topic);
configPage.replace("{6}", mqtt_status);
configPage.replace("{7}", dz_idx);
configPage.replace("{8}", oh_itemid);
server.send(200, "text/html", configPage);
}
}
void saveSettings() {
Serial.println("Handling webserver request savesettings");
//store the updates values in the json config file
DynamicJsonBuffer jsonBuffer;
JsonObject& json = jsonBuffer.createObject();
json["mqtt_server"] = server.arg("mqtt_server");
json["mqtt_port"] = server.arg("mqtt_port");
json["mqtt_username"] = server.arg("mqtt_username");
json["mqtt_password"] = server.arg("mqtt_password");
json["mqtt_topic"] = server.arg("mqtt_topic");
json["dz_idx"] = server.arg("dz_idx");
json["oh_itemid"] = server.arg("oh_itemid");
File configFile = SPIFFS.open("/config.json", "w");
if (!configFile) {
Serial.println("failed to open config file for writing");
}
json.printTo(Serial);
json.printTo(configFile);
configFile.close();
//put updated parameters into memory so they become effective immediately
server.arg("mqtt_server").toCharArray(mqtt_server,40);
server.arg("mqtt_port").toCharArray(mqtt_port,40);
server.arg("mqtt_username").toCharArray(mqtt_username,40);
server.arg("mqtt_password").toCharArray(mqtt_password,40);
server.arg("mqtt_topic").toCharArray(mqtt_topic,40);
server.arg("dz_idx").toCharArray(dz_idx,40);
server.arg("oh_itemid").toCharArray(oh_itemid,40);
server.send(200, "text/html", "Settings have been saved. You will be redirected to the configuration page in 5 seconds <meta http-equiv=\"refresh\" content=\"5; url=/\" />");
//mqtt settings might have changed, let's reconnect to the mqtt server if one is configured
if (strlen(mqtt_topic) != 0){
Serial.println("mqtt topic set, need to connect");
reconnect();
}
}
void handleOn(){
digitalWrite(13, LOW);
digitalWrite(2, LOW);
Serial.println("turning doorbell on");
if(client.connected()){
client.publish(mqtt_status_topic, "ON" , true);
}
server.send(200);
}
void handleOff(){
digitalWrite(13, HIGH);
digitalWrite(2, HIGH);
Serial.println("turning doorbell off");
if(client.connected()){
client.publish(mqtt_status_topic, "OFF" , true);
}
server.send(200);
}
void handleIncommingMqttMessages(char* topic, byte* payload, unsigned int length) {
strcpy(mqtt_status_topic, mqtt_topic);
strcat(mqtt_status_topic, "_status");
String Message = "";
for (int i = 0; i < length; i++) {
Message += (char)payload[i];
}
if (Message == "ON"){
handleOn();
}
if (Message == "OFF"){
handleOff();
}
}
void setup() {
Serial.begin(115200);
Serial.println();
Serial.println("Doorbell modernizr 2");
Serial.println("Firmware version 1.0");
pinMode(doorbellPin, INPUT_PULLUP);
pinMode(12, INPUT_PULLUP);
pinMode(LED_BUILTIN, OUTPUT);
pinMode(13, OUTPUT); //relay
pinMode(2, OUTPUT); //led
//read configuration from FS json
Serial.println("mounting file system");
if (SPIFFS.begin()) {
Serial.println("mounted file system");
if (SPIFFS.exists("/config.json")) {
//file exists, reading and loading
Serial.println("reading config file");
File configFile = SPIFFS.open("/config.json", "r");
if (configFile) {
Serial.println("opened config file");
size_t size = configFile.size();
// Allocate a buffer to store contents of the file.
std::unique_ptr<char[]> buf(new char[size]);
configFile.readBytes(buf.get(), size);
DynamicJsonBuffer jsonBuffer;
JsonObject& json = jsonBuffer.parseObject(buf.get());
if (json.success()) {
Serial.println("parsed config file json");
strcpy(mqtt_server, json["mqtt_server"]);
strcpy(mqtt_port, json["mqtt_port"]);
strcpy(mqtt_username, json["mqtt_username"]);
strcpy(mqtt_password, json["mqtt_password"]);
strcpy(mqtt_topic, json["mqtt_topic"]);
strcpy(dz_idx, json["dz_idx"]);
strcpy(oh_itemid, json["oh_itemid"]);
} else {
Serial.println("failed to load json config");
}
}
}
} else {
Serial.println("failed to mount file system");
}
//end read
WiFiManagerParameter custom_mqtt_server("server", "ip address", mqtt_server, 40);
WiFiManagerParameter custom_mqtt_port("port", "port", mqtt_port, 5);
WiFiManagerParameter custom_mqtt_username("username", "username", mqtt_username, 40);
WiFiManagerParameter custom_mqtt_password("password", "password", mqtt_password, 40);
WiFiManagerParameter custom_mqtt_topic("topic", "mqtt topic", mqtt_topic, 40);
WiFiManagerParameter custom_dz_idx("dzidx", "Domoticz idx", dz_idx, 5);
WiFiManagerParameter custom_oh_itemid("ohitemid", "OpenHAB itemId", oh_itemid, 40);
WiFiManagerParameter custom_text("<p>Fill the folowing values with your home assistant/ domoticz infromation. Username and password are optional</p>");
wifiManager.addParameter(&custom_text);
//set config save notify callback
wifiManager.setSaveConfigCallback(saveConfigCallback);
wifiManager.setAPCallback(configModeCallback);
wifiManager.addParameter(&custom_mqtt_server);
wifiManager.addParameter(&custom_mqtt_port);
wifiManager.addParameter(&custom_mqtt_username);
wifiManager.addParameter(&custom_mqtt_password);
WiFiManagerParameter custom_text1("<p>Fill the folowing field with your MQTT topic for Home assistant</p>");
wifiManager.addParameter(&custom_text1);
wifiManager.addParameter(&custom_mqtt_topic);
WiFiManagerParameter custom_text2("<p>Fill the folowing field with your IDX value for Domoticz</p>");
wifiManager.addParameter(&custom_text2);
wifiManager.addParameter(&custom_dz_idx);
WiFiManagerParameter custom_text3("<p>Fill the folowing field with your itemId for OpenHAB</p>");
wifiManager.addParameter(&custom_text3);
wifiManager.addParameter(&custom_oh_itemid);
//fetches ssid and pass and tries to connect
//if it does not connect it starts an access point with the specified name
//and goes into a blocking loop awaiting configuration
if (!wifiManager.autoConnect("Doorbell modernizr")) {
Serial.println("failed to connect and hit timeout");
delay(3000);
//reset and try again
ESP.reset();
delay(5000);
}
//if you get here you have connected to the WiFi
Serial.println("connected to wifi network");
//Define url's for webserver
server.on("/on", handleOn);
server.on("/off", handleOff);
server.on("/saveSettings", saveSettings);
server.on("/", handleRoot);
server.onNotFound([]() {
handleRoot();
});
server.begin();
//read updated parameters
strcpy(mqtt_server, custom_mqtt_server.getValue());
strcpy(mqtt_port, custom_mqtt_port.getValue());
strcpy(mqtt_username, custom_mqtt_username.getValue());
strcpy(mqtt_password, custom_mqtt_password.getValue());
strcpy(mqtt_topic, custom_mqtt_topic.getValue());
strcpy(dz_idx, custom_dz_idx.getValue());
strcpy(oh_itemid, custom_oh_itemid.getValue());
//save the custom parameters to FS
if (shouldSaveConfig) {
Serial.println("saving config");
DynamicJsonBuffer jsonBuffer;
JsonObject& json = jsonBuffer.createObject();
json["mqtt_server"] = mqtt_server;
json["mqtt_port"] = mqtt_port;
json["mqtt_username"] = mqtt_username;
json["mqtt_password"] = mqtt_password;
json["mqtt_topic"] = mqtt_topic;
json["dz_idx"] = dz_idx;
json["oh_itemid"] = oh_itemid;
File configFile = SPIFFS.open("/config.json", "w");
if (!configFile) {
Serial.println("failed to open config file for writing");
}
json.printTo(Serial);
json.printTo(configFile);
configFile.close();
//end save
}
//MQTT
client.setServer(mqtt_server, atoi(mqtt_port));
client.setCallback(handleIncommingMqttMessages);
Serial.println("Doorbell modernizr ip on " + WiFi.SSID() + ": " + WiFi.localIP().toString());
client.publish(mqtt_status_topic, "ON" , true);
}
//MQTT reconnect function
void reconnect() {
client.disconnect();
client.setServer(mqtt_server, atoi(mqtt_port));
Serial.print("Attempting MQTT connection to ");
Serial.print(mqtt_server);
Serial.print(" on port ");
Serial.print(mqtt_port);
Serial.print("...");
if (client.connect("DoorbellModernizr_2", mqtt_username, mqtt_password)) {
Serial.println("connected");
String("<div style=\"color:green;float:left\">connected</div>").toCharArray(mqtt_status,60);
Serial.print("sending 'off' message to ");
Serial.print(mqtt_server);
Serial.print(" on port ");
Serial.print(mqtt_port);
Serial.print(" with topic ");
Serial.println(mqtt_topic);
client.publish(mqtt_topic, "off" , true);
strcpy(mqtt_switch_topic, mqtt_topic);
strcat(mqtt_switch_topic, "_switch");
client.subscribe(mqtt_switch_topic);
} else {
Serial.print("failed, rc=");
String("<div style=\"color:red;float:left\">connection failed</div>").toCharArray(mqtt_status,60);
Serial.print(client.state());
Serial.println(" try again in 5 seconds");
unsigned long previousMillis1 = 0;
//connection failed, Go into a (non-blocking) loop until we are connected
while (!client.connected()) {
resetstate();
server.handleClient(); //call to handle webserver connection needed, because the while loop will block the processor
unsigned long currentMillis1 = millis();
if(currentMillis1 - previousMillis1 >= 5000) {
previousMillis1 = currentMillis1;
Serial.print("Attempting MQTT connection...");
if (client.connect("Doorbellmodernizr2", mqtt_username, mqtt_password)) {
Serial.println("connected");
String("<div style=\"color:green;float:left\">connected</div>").toCharArray(mqtt_status,60);
} else {
String("<div style=\"color:red;float:left\">connection failed</div>").toCharArray(mqtt_status,60);
Serial.print("failed, rc=");
Serial.print(client.state());
Serial.println(" try again in 5 seconds");
}
}
}
}
}
long lastMsg = 0;
//Initialize a reset if pin 12 is low
void resetstate (){
resetState = digitalRead(12);
if (resetState == LOW){
Serial.println("It seems someone wants to go for a reset...");
int count = 0;
//Flash the led for 5 seconds
while (count < 25 && digitalRead(12) == LOW) {
digitalWrite(LED_BUILTIN, HIGH);
delay(100);
digitalWrite(LED_BUILTIN, LOW);
delay(100);
count ++;
}
resetState = digitalRead(12);
//See if they still want to go for it
if (resetState == LOW){
Serial.println("Let's do it");
SPIFFS.format();
wifiManager.resetSettings();
delay(500);
ESP.restart();
} else {
Serial.println("They chickened out...");
Serial.println("Starting AP that can be used to obtain IP");
boolean result = false;
while (result == false){
result = WiFi.softAP("Doorbell modernizr online" );
}
if(result == true)
{
dnsServer.start(53, "*", WiFi.softAPIP());
apstarted = true;
previousMillis = millis();
Serial.println("AP IP address: " + WiFi.softAPIP().toString());
}
}
}
}
void loop() {
//if a AP is started, kill it after 3 minutes
if (apstarted == true){
unsigned long currentMillis = millis();
if (currentMillis - previousMillis >= 300000) {
previousMillis = currentMillis;
Serial.println("Stopping the AP, 3 minutes are past!");
WiFi.softAPdisconnect(false);
apstarted = false;
}
}
resetstate();
if (strlen(mqtt_topic) != 0){
//try to reconnect to mqtt server if connection is lost
if (!client.connected()) {
reconnect();
}
client.loop();
}
server.handleClient();
dnsServer.processNextRequest();
doorbellState = digitalRead(doorbellPin);
resetState = digitalRead(12);
if ( doorbellState == LOW ) {
if (strlen(mqtt_topic) != 0){
client.publish(mqtt_topic, "on" , true);
Serial.print("Doorbell is pressed!, sending 'on' message to ");
Serial.print(mqtt_server);
Serial.print(" on port ");
Serial.print(mqtt_port);
Serial.print(" with topic ");
Serial.println(mqtt_topic);
//wait 5 seconds, then publish the off message
delay( 5000 );
Serial.print("sending 'off' message to ");
Serial.print(mqtt_server);
Serial.print(" on port ");
Serial.print(mqtt_port);
Serial.print(" with topic ");
Serial.println(mqtt_topic);
client.publish(mqtt_topic, "off" , true);
}
if (strlen(dz_idx) != 0){
if (espClient.connect(mqtt_server,atoi(mqtt_port))){
Serial.println("sending 'on' message to Domiticz");
espClient.print("GET /json.htm?type=command¶m=udevice&idx=");
espClient.print(String(dz_idx));
espClient.print("&nvalue=1");
if (strlen(mqtt_username) != 0){
espClient.print("&username=");
espClient.print(base64::encode(mqtt_username));
espClient.print("&password=");
espClient.print(base64::encode(mqtt_password));
}
espClient.println(" HTTP/1.1");
espClient.print("Host: ");
espClient.print(String(mqtt_server));
espClient.print(":");
espClient.println(String(mqtt_port));
espClient.println("User-Agent: doorbell-modernizr");
espClient.println("Connection: close");
espClient.println();
espClient.stop();
} else {
Serial.println("connect failed");
}
//wait 5 seconds, then publish the off message
delay( 5000 );
if (espClient.connect(mqtt_server,atoi(mqtt_port))){
Serial.println("sending 'off' message to Domiticz");
espClient.print("GET /json.htm?type=command¶m=udevice&idx=");
espClient.print(String(dz_idx));
espClient.print("&nvalue=0");
if (strlen(mqtt_username) != 0){
espClient.print("&username=");
espClient.print(base64::encode(mqtt_username));
espClient.print("&password=");
espClient.print(base64::encode(mqtt_password));
}
espClient.println(" HTTP/1.1");
espClient.print("Host: ");
espClient.print(String(mqtt_server));
espClient.print(":");
espClient.println(String(mqtt_port));
espClient.println("User-Agent: doorbell-modernizr");
espClient.println("Connection: close");
espClient.println();
espClient.stop();
} else {
Serial.println("connect failed");
}
}
// OpenHAB
if (strlen(oh_itemid) != 0){
Serial.println("sending 'ON' message to openHAB");
http.begin("http://" + String(mqtt_server) + ":" + String(mqtt_port) +"/rest/items/" + String(oh_itemid));
http.POST("ON");
http.end();
delay(5000);
Serial.println("sending 'OFF' message to openHAB");
http.begin("http://" + String(mqtt_server) + ":" + String(mqtt_port) +"/rest/items/" + String(oh_itemid));
http.POST("OFF");
http.end();
}
}
}
| [
"erik@lemcke.nl"
] | erik@lemcke.nl |
b074c9cefdace5c0edb047001c73c5fef5a13282 | 03a957f10754ae97d998b9a5af01e0ec43a36409 | /src/chrome/browser/chromeos/net/onc_utils.cc | f7f27ca7d20789a5ba75f1ad6c0107ee21dcc5d2 | [
"BSD-3-Clause"
] | permissive | xph906/TrackingFree | e5d39ced8909380ec29a38f0776814f762389aea | 41540f0bdc8e146630f680d835a4107e7b8fd2c4 | refs/heads/master | 2021-01-19T11:43:34.409514 | 2014-05-21T01:54:24 | 2014-05-21T01:54:24 | 19,993,612 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 17,150 | cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/net/onc_utils.h"
#include "base/bind_helpers.h"
#include "base/json/json_writer.h"
#include "base/logging.h"
#include "base/prefs/pref_service.h"
#include "base/values.h"
#include "chrome/browser/chromeos/login/users/user.h"
#include "chrome/browser/chromeos/login/users/user_manager.h"
#include "chrome/browser/chromeos/ui_proxy_config.h"
#include "chrome/browser/prefs/proxy_config_dictionary.h"
#include "chrome/common/pref_names.h"
#include "chromeos/network/favorite_state.h"
#include "chromeos/network/managed_network_configuration_handler.h"
#include "chromeos/network/network_configuration_handler.h"
#include "chromeos/network/network_handler.h"
#include "chromeos/network/network_profile.h"
#include "chromeos/network/network_profile_handler.h"
#include "chromeos/network/network_state.h"
#include "chromeos/network/network_state_handler.h"
#include "chromeos/network/network_ui_data.h"
#include "chromeos/network/onc/onc_normalizer.h"
#include "chromeos/network/onc/onc_signature.h"
#include "chromeos/network/onc/onc_translator.h"
#include "chromeos/network/onc/onc_utils.h"
#include "net/base/host_port_pair.h"
#include "net/proxy/proxy_bypass_rules.h"
#include "net/proxy/proxy_server.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
#include "url/gurl.h"
namespace chromeos {
namespace onc {
namespace {
net::ProxyServer ConvertOncProxyLocationToHostPort(
net::ProxyServer::Scheme default_proxy_scheme,
const base::DictionaryValue& onc_proxy_location) {
std::string host;
onc_proxy_location.GetStringWithoutPathExpansion(::onc::proxy::kHost, &host);
// Parse |host| according to the format [<scheme>"://"]<server>[":"<port>].
net::ProxyServer proxy_server =
net::ProxyServer::FromURI(host, default_proxy_scheme);
int port = 0;
onc_proxy_location.GetIntegerWithoutPathExpansion(::onc::proxy::kPort, &port);
// Replace the port parsed from |host| by the provided |port|.
return net::ProxyServer(
proxy_server.scheme(),
net::HostPortPair(proxy_server.host_port_pair().host(),
static_cast<uint16>(port)));
}
void AppendProxyServerForScheme(
const base::DictionaryValue& onc_manual,
const std::string& onc_scheme,
std::string* spec) {
const base::DictionaryValue* onc_proxy_location = NULL;
if (!onc_manual.GetDictionaryWithoutPathExpansion(onc_scheme,
&onc_proxy_location)) {
return;
}
net::ProxyServer::Scheme default_proxy_scheme = net::ProxyServer::SCHEME_HTTP;
std::string url_scheme;
if (onc_scheme == ::onc::proxy::kFtp) {
url_scheme = "ftp";
} else if (onc_scheme == ::onc::proxy::kHttp) {
url_scheme = "http";
} else if (onc_scheme == ::onc::proxy::kHttps) {
url_scheme = "https";
} else if (onc_scheme == ::onc::proxy::kSocks) {
default_proxy_scheme = net::ProxyServer::SCHEME_SOCKS4;
url_scheme = "socks";
} else {
NOTREACHED();
}
net::ProxyServer proxy_server = ConvertOncProxyLocationToHostPort(
default_proxy_scheme, *onc_proxy_location);
UIProxyConfig::EncodeAndAppendProxyServer(url_scheme, proxy_server, spec);
}
net::ProxyBypassRules ConvertOncExcludeDomainsToBypassRules(
const base::ListValue& onc_exclude_domains) {
net::ProxyBypassRules rules;
for (base::ListValue::const_iterator it = onc_exclude_domains.begin();
it != onc_exclude_domains.end(); ++it) {
std::string rule;
(*it)->GetAsString(&rule);
rules.AddRuleFromString(rule);
}
return rules;
}
} // namespace
scoped_ptr<base::DictionaryValue> ConvertOncProxySettingsToProxyConfig(
const base::DictionaryValue& onc_proxy_settings) {
std::string type;
onc_proxy_settings.GetStringWithoutPathExpansion(::onc::proxy::kType, &type);
scoped_ptr<base::DictionaryValue> proxy_dict;
if (type == ::onc::proxy::kDirect) {
proxy_dict.reset(ProxyConfigDictionary::CreateDirect());
} else if (type == ::onc::proxy::kWPAD) {
proxy_dict.reset(ProxyConfigDictionary::CreateAutoDetect());
} else if (type == ::onc::proxy::kPAC) {
std::string pac_url;
onc_proxy_settings.GetStringWithoutPathExpansion(::onc::proxy::kPAC,
&pac_url);
GURL url(pac_url);
DCHECK(url.is_valid())
<< "PAC field is invalid for this ProxySettings.Type";
proxy_dict.reset(ProxyConfigDictionary::CreatePacScript(url.spec(),
false));
} else if (type == ::onc::proxy::kManual) {
const base::DictionaryValue* manual_dict = NULL;
onc_proxy_settings.GetDictionaryWithoutPathExpansion(::onc::proxy::kManual,
&manual_dict);
std::string manual_spec;
AppendProxyServerForScheme(*manual_dict, ::onc::proxy::kFtp, &manual_spec);
AppendProxyServerForScheme(*manual_dict, ::onc::proxy::kHttp, &manual_spec);
AppendProxyServerForScheme(*manual_dict, ::onc::proxy::kSocks,
&manual_spec);
AppendProxyServerForScheme(*manual_dict, ::onc::proxy::kHttps,
&manual_spec);
const base::ListValue* exclude_domains = NULL;
net::ProxyBypassRules bypass_rules;
if (onc_proxy_settings.GetListWithoutPathExpansion(
::onc::proxy::kExcludeDomains, &exclude_domains)) {
bypass_rules.AssignFrom(
ConvertOncExcludeDomainsToBypassRules(*exclude_domains));
}
proxy_dict.reset(ProxyConfigDictionary::CreateFixedServers(
manual_spec, bypass_rules.ToString()));
} else {
NOTREACHED();
}
return proxy_dict.Pass();
}
namespace {
// This class defines which string placeholders of ONC are replaced by which
// user attribute.
class UserStringSubstitution : public chromeos::onc::StringSubstitution {
public:
explicit UserStringSubstitution(const chromeos::User* user) : user_(user) {}
virtual ~UserStringSubstitution() {}
virtual bool GetSubstitute(const std::string& placeholder,
std::string* substitute) const OVERRIDE {
if (placeholder == ::onc::substitutes::kLoginIDField)
*substitute = user_->GetAccountName(false);
else if (placeholder == ::onc::substitutes::kEmailField)
*substitute = user_->email();
else
return false;
return true;
}
private:
const chromeos::User* user_;
DISALLOW_COPY_AND_ASSIGN(UserStringSubstitution);
};
} // namespace
void ExpandStringPlaceholdersInNetworksForUser(
const chromeos::User* user,
base::ListValue* network_configs) {
if (!user) {
// In tests no user may be logged in. It's not harmful if we just don't
// expand the strings.
return;
}
UserStringSubstitution substitution(user);
chromeos::onc::ExpandStringsInNetworks(substitution, network_configs);
}
void ImportNetworksForUser(const chromeos::User* user,
const base::ListValue& network_configs,
std::string* error) {
error->clear();
scoped_ptr<base::ListValue> expanded_networks(network_configs.DeepCopy());
ExpandStringPlaceholdersInNetworksForUser(user, expanded_networks.get());
const NetworkProfile* profile =
NetworkHandler::Get()->network_profile_handler()->GetProfileForUserhash(
user->username_hash());
if (!profile) {
*error = "User profile doesn't exist.";
return;
}
bool ethernet_not_found = false;
for (base::ListValue::const_iterator it = expanded_networks->begin();
it != expanded_networks->end();
++it) {
const base::DictionaryValue* network = NULL;
(*it)->GetAsDictionary(&network);
DCHECK(network);
// Remove irrelevant fields.
onc::Normalizer normalizer(true /* remove recommended fields */);
scoped_ptr<base::DictionaryValue> normalized_network =
normalizer.NormalizeObject(&onc::kNetworkConfigurationSignature,
*network);
scoped_ptr<base::DictionaryValue> shill_dict =
onc::TranslateONCObjectToShill(&onc::kNetworkConfigurationSignature,
*normalized_network);
scoped_ptr<NetworkUIData> ui_data = NetworkUIData::CreateFromONC(
::onc::ONC_SOURCE_USER_IMPORT, *normalized_network);
base::DictionaryValue ui_data_dict;
ui_data->FillDictionary(&ui_data_dict);
std::string ui_data_json;
base::JSONWriter::Write(&ui_data_dict, &ui_data_json);
shill_dict->SetStringWithoutPathExpansion(shill::kUIDataProperty,
ui_data_json);
shill_dict->SetStringWithoutPathExpansion(shill::kProfileProperty,
profile->path);
std::string type;
shill_dict->GetStringWithoutPathExpansion(shill::kTypeProperty, &type);
NetworkConfigurationHandler* config_handler =
NetworkHandler::Get()->network_configuration_handler();
if (NetworkTypePattern::Ethernet().MatchesType(type)) {
// Ethernet has to be configured using an existing Ethernet service.
const NetworkState* ethernet =
NetworkHandler::Get()->network_state_handler()->FirstNetworkByType(
NetworkTypePattern::Ethernet());
if (ethernet) {
config_handler->SetProperties(ethernet->path(),
*shill_dict,
base::Closure(),
network_handler::ErrorCallback());
} else {
ethernet_not_found = true;
}
} else {
config_handler->CreateConfiguration(
*shill_dict,
network_handler::StringResultCallback(),
network_handler::ErrorCallback());
}
}
if (ethernet_not_found)
*error = "No Ethernet available to configure.";
}
const base::DictionaryValue* FindPolicyForActiveUser(
const std::string& guid,
::onc::ONCSource* onc_source) {
const User* user = UserManager::Get()->GetActiveUser();
std::string username_hash = user ? user->username_hash() : std::string();
return NetworkHandler::Get()->managed_network_configuration_handler()->
FindPolicyByGUID(username_hash, guid, onc_source);
}
const base::DictionaryValue* GetGlobalConfigFromPolicy(bool for_active_user) {
std::string username_hash;
if (for_active_user) {
const User* user = UserManager::Get()->GetActiveUser();
if (!user) {
LOG(ERROR) << "No user logged in yet.";
return NULL;
}
username_hash = user->username_hash();
}
return NetworkHandler::Get()->managed_network_configuration_handler()->
GetGlobalConfigFromPolicy(username_hash);
}
bool PolicyAllowsOnlyPolicyNetworksToAutoconnect(bool for_active_user) {
const base::DictionaryValue* global_config =
GetGlobalConfigFromPolicy(for_active_user);
if (!global_config)
return false; // By default, all networks are allowed to autoconnect.
bool only_policy_autoconnect = false;
global_config->GetBooleanWithoutPathExpansion(
::onc::global_network_config::kAllowOnlyPolicyNetworksToAutoconnect,
&only_policy_autoconnect);
return only_policy_autoconnect;
}
namespace {
const base::DictionaryValue* GetNetworkConfigByGUID(
const base::ListValue& network_configs,
const std::string& guid) {
for (base::ListValue::const_iterator it = network_configs.begin();
it != network_configs.end(); ++it) {
const base::DictionaryValue* network = NULL;
(*it)->GetAsDictionary(&network);
DCHECK(network);
std::string current_guid;
network->GetStringWithoutPathExpansion(::onc::network_config::kGUID,
¤t_guid);
if (current_guid == guid)
return network;
}
return NULL;
}
const base::DictionaryValue* GetNetworkConfigForEthernetWithoutEAP(
const base::ListValue& network_configs) {
VLOG(2) << "Search for ethernet policy without EAP.";
for (base::ListValue::const_iterator it = network_configs.begin();
it != network_configs.end(); ++it) {
const base::DictionaryValue* network = NULL;
(*it)->GetAsDictionary(&network);
DCHECK(network);
std::string type;
network->GetStringWithoutPathExpansion(::onc::network_config::kType, &type);
if (type != ::onc::network_type::kEthernet)
continue;
const base::DictionaryValue* ethernet = NULL;
network->GetDictionaryWithoutPathExpansion(::onc::network_config::kEthernet,
ðernet);
std::string auth;
ethernet->GetStringWithoutPathExpansion(::onc::ethernet::kAuthentication,
&auth);
if (auth == ::onc::ethernet::kNone)
return network;
}
return NULL;
}
const base::DictionaryValue* GetNetworkConfigForNetworkFromOnc(
const base::ListValue& network_configs,
const FavoriteState& favorite) {
// In all cases except Ethernet, we use the GUID of |network|.
if (!favorite.Matches(NetworkTypePattern::Ethernet()))
return GetNetworkConfigByGUID(network_configs, favorite.guid());
// Ethernet is always shared and thus cannot store a GUID per user. Thus we
// search for any Ethernet policy intead of a matching GUID.
// EthernetEAP service contains only the EAP parameters and stores the GUID of
// the respective ONC policy. The EthernetEAP service itself is however never
// in state "connected". An EthernetEAP policy must be applied, if an Ethernet
// service is connected using the EAP parameters.
const FavoriteState* ethernet_eap = NULL;
if (NetworkHandler::IsInitialized()) {
ethernet_eap =
NetworkHandler::Get()->network_state_handler()->GetEAPForEthernet(
favorite.path());
}
// The GUID associated with the EthernetEAP service refers to the ONC policy
// with "Authentication: 8021X".
if (ethernet_eap)
return GetNetworkConfigByGUID(network_configs, ethernet_eap->guid());
// Otherwise, EAP is not used and instead the Ethernet policy with
// "Authentication: None" applies.
return GetNetworkConfigForEthernetWithoutEAP(network_configs);
}
const base::DictionaryValue* GetPolicyForNetworkFromPref(
const PrefService* pref_service,
const char* pref_name,
const FavoriteState& favorite) {
if (!pref_service) {
VLOG(2) << "No pref service";
return NULL;
}
const PrefService::Preference* preference =
pref_service->FindPreference(pref_name);
if (!preference) {
VLOG(2) << "No preference " << pref_name;
// The preference may not exist in tests.
return NULL;
}
// User prefs are not stored in this Preference yet but only the policy.
//
// The policy server incorrectly configures the OpenNetworkConfiguration user
// policy as Recommended. To work around that, we handle the Recommended and
// the Mandatory value in the same way.
// TODO(pneubeck): Remove this workaround, once the server is fixed. See
// http://crbug.com/280553 .
if (preference->IsDefaultValue()) {
VLOG(2) << "Preference has no recommended or mandatory value.";
// No policy set.
return NULL;
}
VLOG(2) << "Preference with policy found.";
const base::Value* onc_policy_value = preference->GetValue();
DCHECK(onc_policy_value);
const base::ListValue* onc_policy = NULL;
onc_policy_value->GetAsList(&onc_policy);
DCHECK(onc_policy);
return GetNetworkConfigForNetworkFromOnc(*onc_policy, favorite);
}
} // namespace
const base::DictionaryValue* GetPolicyForFavoriteNetwork(
const PrefService* profile_prefs,
const PrefService* local_state_prefs,
const FavoriteState& favorite,
::onc::ONCSource* onc_source) {
VLOG(2) << "GetPolicyForFavoriteNetwork: " << favorite.path();
*onc_source = ::onc::ONC_SOURCE_NONE;
const base::DictionaryValue* network_policy = GetPolicyForNetworkFromPref(
profile_prefs, prefs::kOpenNetworkConfiguration, favorite);
if (network_policy) {
VLOG(1) << "Network " << favorite.path() << " is managed by user policy.";
*onc_source = ::onc::ONC_SOURCE_USER_POLICY;
return network_policy;
}
network_policy = GetPolicyForNetworkFromPref(
local_state_prefs, prefs::kDeviceOpenNetworkConfiguration, favorite);
if (network_policy) {
VLOG(1) << "Network " << favorite.path() << " is managed by device policy.";
*onc_source = ::onc::ONC_SOURCE_DEVICE_POLICY;
return network_policy;
}
VLOG(2) << "Network " << favorite.path() << " is unmanaged.";
return NULL;
}
bool HasPolicyForFavoriteNetwork(const PrefService* profile_prefs,
const PrefService* local_state_prefs,
const FavoriteState& network) {
::onc::ONCSource ignored_onc_source;
const base::DictionaryValue* policy = onc::GetPolicyForFavoriteNetwork(
profile_prefs, local_state_prefs, network, &ignored_onc_source);
return policy != NULL;
}
} // namespace onc
} // namespace chromeos
| [
"xiangpan2011@u.northwestern.edu"
] | xiangpan2011@u.northwestern.edu |
93e1475847c309eec957275cc767cc6cd789257d | 3a21c7da82fb8b54bf22b175105be68ea28e7372 | /include/NeuralNet/MultilayerFeedForward.h | b73a70420e5b65137fcd605b232e2987d902d56b | [] | no_license | jambolo/NeuralNet | 600a8cb40466b144c8e409056ff0a57c3d532717 | ffd39666a4300bc33be3562297c26e71b4110602 | refs/heads/master | 2021-01-12T09:18:41.798104 | 2019-07-05T23:43:31 | 2019-07-05T23:43:31 | 76,820,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,996 | h | /** @file *//********************************************************************************************************
MultilayerFeedForward.h
Copyright 2003, John J. Bolton
--------------------------------------------------------------------------------------------------------------
$Header: //depot/Libraries/NeuralNet/MultilayerFeedForward.h#3 $
$NoKeywords: $
********************************************************************************************************************/
#pragma once
#include "NeuralNet.h"
/********************************************************************************************************************/
/* */
/********************************************************************************************************************/
//! A multilayer feed-forward neural net with back-propagation
//
//! Source: Russell S. and Norvig P. 1995. "Multilayer Feed-Forward Networks" <em>Artificial Intelligence: A
//! Modern Approach</em>. Prentice Hall, Upper Saddle River, N.J.
class MultilayerFeedForward : public NeuralNet
{
friend std::ostream & operator<<( std::ostream & out, MultilayerFeedForward const & mff );
friend std::istream & operator>>( std::istream & in, MultilayerFeedForward & mff );
public:
//! Constructor
MultilayerFeedForward();
//! Constructor
MultilayerFeedForward( int nInputs, int nHidden, int nOutputs );
//! Constructor
MultilayerFeedForward( int nInputs, int nHidden, int nOutputs, Neuron::WeightVector const & aWeights );
//! Destructor
~MultilayerFeedForward();
//! @name Overrides NeuralNet
//@{
virtual OutputVector const & operator()( Neuron::InputVector const & aInputs );
virtual void Train( Neuron::InputVector const & aInputs, ErrorVector const & aErrors, float rate );
//@}
private:
//! A vector of units.
typedef std::vector< Neuron > UnitVector;
//! A vector of gradient values.
typedef std::vector< float > GradientVector;
UnitVector m_aHiddenUnits; //!< The array of hidden units.
OutputVector m_aHiddenOutputs; //!< The outputs from the hidden units (inputs to the output units).
GradientVector m_aHiddenGradients; //!< The gradients of the outputs from the hidden units.
UnitVector m_aOutputUnits; //!< The array of output units.
GradientVector m_aOutputGradients; //!< The gradients of the outputs from the output units.
};
/********************************************************************************************************************/
/* */
/********************************************************************************************************************/
//! Inserts a MultilayerFeedForward into a stream.
std::ostream & operator<<( std::ostream & out, MultilayerFeedForward const & mff );
//! Extracts a MultilayerFeedForward from a stream.
std::istream & operator>>( std::istream & in, MultilayerFeedForward & mff );
| [
"odolvlobo-github@yahoo.com"
] | odolvlobo-github@yahoo.com |
b81aa7e7c698ff7b8224d7aebcd59e3498a492a5 | 1e3234c63117ab8873d27fcb52c138f1b9712f1c | /Final Project (Project Bullet Hell)/PlayerProjectile.cpp | 93e129d94a58b4d55c65f4c8f780201543a08226 | [] | no_license | Zimhey/Asteroids | 6417cbb9cb606228ed2ce2fef1cd80d71e7d16e9 | 083ba829d44f7e0b71522b5cad83ff31c36ac8be | refs/heads/master | 2020-03-22T01:17:27.934677 | 2018-07-01T03:21:44 | 2018-07-01T03:21:44 | 139,295,584 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,367 | cpp | /*
* Name: Corey Dixon
* PlayerProjectile Member Function Definitions
* Project Bullet Hell
* Date: 5/15/2013
* Description: derived from Projectile class, changes nothing but the texture(type).
*/
#include "PlayerProjectile.h"
#include <cmath>
// constructors
PlayerProjectile::PlayerProjectile(double _x, double _y) :
Projectile(_x, _y, -5, 720, 24, 24, projectile)
{
velocityX = velocityY = 0;
}
PlayerProjectile::PlayerProjectile(double _x, double _y, double destX, double destY) :
Projectile(_x, _y, -5, 720, 24, 24, projectile)
{
double speed = 1000;
double angle = atan2(destY - y, destX - x);
angle *= (180/ PI);
velocityX = cos( angle * PI / 180) * speed;
velocityY = sin( angle * PI / 180) * speed;
}
PlayerProjectile::PlayerProjectile(double _x, double _y, double destX, double destY, int speed) :
Projectile(_x, _y, -5, 720, 24, 24, projectile)
{
double angle = atan2(destY - y, destX - x);
angle *= (180/ PI);
velocityX = cos( angle * PI / 180) * speed;
velocityY = sin( angle * PI / 180) * speed;
}
// destructor
PlayerProjectile::~PlayerProjectile(void)
{
}
void PlayerProjectile::collide(GameObject *other)
{
if(other == 0) // NULL
{
velocityX = 0;
velocityY = 0;
return;
}
if(other->getType() == asteroid1)
die();
if(other->getType() == enemy_ship)
die();
if(other->getType() == enemy_projectile)
die();
} | [
"zimhey1@gmail.com"
] | zimhey1@gmail.com |
d2af587145376b6256813d62f2f476097b4d248a | e87c19d6694143df66f05bd06b010043a63bfe2f | /cpp/initializer_list.cc | e80b7e1a413ef4a2112e0a16886fddb32a4381d8 | [
"MIT"
] | permissive | Becavalier/playground-cpp | 2c38d016dc66c4293bc17d8945b3fec8983a635b | 0fce453f769111698f813852238f933e326ed441 | refs/heads/master | 2021-04-18T20:27:27.965096 | 2018-10-27T01:29:46 | 2018-10-27T01:29:46 | 94,588,693 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | cc | #include <iostream>
#include <initializer_list>
using namespace std;
void error_msg (initializer_list<string> il) {
// il is "const *string";
for (auto beg = il.begin(); beg != il.end(); ++beg) {
cout << *beg << " ";
}
cout << endl;
}
int main (int argc, char **argv) {
error_msg({"functionx", "exprected", "actual"});
return 0;
}
| [
"yhorg@hotmail.com"
] | yhorg@hotmail.com |
f6ad28159feead4015bda9c8c72c617053cc04ab | 17f75c8343a516398f7a86c4e4996e2e89ae0cce | /Software/Arduino Libraires/SdFat/SdFat.cpp | 4e24dedb5af6c31b463ef92f3bfdd158555f81f1 | [] | no_license | Gandra-et-al/NanoLogger | 5f3cd7705b3bc3e946ba8344411f0e66d83de39b | e45d4992eee2cee720bf36d8f3b5123445ab6ed2 | refs/heads/master | 2020-05-17T10:03:07.721094 | 2014-06-09T13:53:38 | 2014-06-09T13:53:38 | 19,975,971 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,292 | cpp | /* Arduino SdFat Library
* Copyright (C) 2012 by William Greiman
*
* This file is part of the Arduino SdFat Library
*
* This Library 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.
*
* This Library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the Arduino SdFat Library. If not, see
* <http://www.gnu.org/licenses/>.
*/
#include <SdFat.h>
//------------------------------------------------------------------------------
#if USE_SERIAL_FOR_STD_OUT || !defined(UDR0)
Print* SdFat::m_stdOut = &Serial;
#else // USE_SERIAL_FOR_STD_OUT
#include <MinimumSerial.h>
Print* SdFat::m_stdOut = &MiniSerial;
#endif // USE_SERIAL_FOR_STD_OUT
//------------------------------------------------------------------------------
/**
* Initialize an SdFat object.
*
* Initializes the SD card, SD volume, and root directory.
*
* \param[in] chipSelectPin SD chip select pin. See Sd2Card::init().
* \param[in] sckDivisor value for SPI SCK divisor. See Sd2Card::init().
*
* \return The value one, true, is returned for success and
* the value zero, false, is returned for failure.
*/
bool SdFat::begin(uint8_t chipSelectPin, uint8_t sckDivisor) {
return m_card.begin(chipSelectPin, sckDivisor)
&& m_vol.init(&m_card) && chdir(1);
}
//------------------------------------------------------------------------------
/** Change a volume's working directory to root
*
* Changes the volume's working directory to the SD's root directory.
* Optionally set the current working directory to the volume's
* working directory.
*
* \param[in] set_cwd Set the current working directory to this volume's
* working directory if true.
*
* \return The value one, true, is returned for success and
* the value zero, false, is returned for failure.
*/
bool SdFat::chdir(bool set_cwd) {
if (set_cwd) SdBaseFile::setCwd(&m_vwd);
if (m_vwd.isOpen()) m_vwd.close();
return m_vwd.openRoot(&m_vol);
}
//------------------------------------------------------------------------------
/** Change a volume's working directory
*
* Changes the volume working directory to the \a path subdirectory.
* Optionally set the current working directory to the volume's
* working directory.
*
* Example: If the volume's working directory is "/DIR", chdir("SUB")
* will change the volume's working directory from "/DIR" to "/DIR/SUB".
*
* If path is "/", the volume's working directory will be changed to the
* root directory
*
* \param[in] path The name of the subdirectory.
*
* \param[in] set_cwd Set the current working directory to this volume's
* working directory if true.
*
* \return The value one, true, is returned for success and
* the value zero, false, is returned for failure.
*/
bool SdFat::chdir(const char *path, bool set_cwd) {
SdBaseFile dir;
if (path[0] == '/' && path[1] == '\0') return chdir(set_cwd);
if (!dir.open(&m_vwd, path, O_READ)) goto fail;
if (!dir.isDir()) goto fail;
m_vwd = dir;
if (set_cwd) SdBaseFile::setCwd(&m_vwd);
return true;
fail:
return false;
}
//------------------------------------------------------------------------------
/** Set the current working directory to a volume's working directory.
*
* This is useful with multiple SD cards.
*
* The current working directory is changed to this volume's working directory.
*
* This is like the Windows/DOS \<drive letter>: command.
*/
void SdFat::chvol() {
SdBaseFile::setCwd(&m_vwd);
}
//------------------------------------------------------------------------------
/**
* Test for the existence of a file.
*
* \param[in] path Path of the file to be tested for.
*
* \return true if the file exists else false.
*/
bool SdFat::exists(const char* path) {
return m_vwd.exists(path);
}
//------------------------------------------------------------------------------
/** List the directory contents of the volume working directory to stdOut.
*
* \param[in] flags The inclusive OR of
*
* LS_DATE - %Print file modification date
*
* LS_SIZE - %Print file size.
*
* LS_R - Recursive list of subdirectories.
*/
void SdFat::ls(uint8_t flags) {
m_vwd.ls(m_stdOut, flags);
}
//------------------------------------------------------------------------------
/** List the directory contents of the volume working directory.
*
* \param[in] pr Print stream for list.
*
* \param[in] flags The inclusive OR of
*
* LS_DATE - %Print file modification date
*
* LS_SIZE - %Print file size.
*
* LS_R - Recursive list of subdirectories.
*/
void SdFat::ls(Print* pr, uint8_t flags) {
m_vwd.ls(pr, flags);
}
//------------------------------------------------------------------------------
/** Make a subdirectory in the volume working directory.
*
* \param[in] path A path with a valid 8.3 DOS name for the subdirectory.
*
* \param[in] pFlag Create missing parent directories if true.
*
* \return The value one, true, is returned for success and
* the value zero, false, is returned for failure.
*/
bool SdFat::mkdir(const char* path, bool pFlag) {
SdBaseFile sub;
return sub.mkdir(&m_vwd, path, pFlag);
}
//------------------------------------------------------------------------------
/** Remove a file from the volume working directory.
*
* \param[in] path A path with a valid 8.3 DOS name for the file.
*
* \return The value one, true, is returned for success and
* the value zero, false, is returned for failure.
*/
bool SdFat::remove(const char* path) {
return SdBaseFile::remove(&m_vwd, path);
}
//------------------------------------------------------------------------------
/** Rename a file or subdirectory.
*
* \param[in] oldPath Path name to the file or subdirectory to be renamed.
*
* \param[in] newPath New path name of the file or subdirectory.
*
* The \a newPath object must not exist before the rename call.
*
* The file to be renamed must not be open. The directory entry may be
* moved and file system corruption could occur if the file is accessed by
* a file object that was opened before the rename() call.
*
* \return The value one, true, is returned for success and
* the value zero, false, is returned for failure.
*/
bool SdFat::rename(const char *oldPath, const char *newPath) {
SdBaseFile file;
if (!file.open(oldPath, O_READ)) return false;
return file.rename(&m_vwd, newPath);
}
//------------------------------------------------------------------------------
/** Remove a subdirectory from the volume's working directory.
*
* \param[in] path A path with a valid 8.3 DOS name for the subdirectory.
*
* The subdirectory file will be removed only if it is empty.
*
* \return The value one, true, is returned for success and
* the value zero, false, is returned for failure.
*/
bool SdFat::rmdir(const char* path) {
SdBaseFile sub;
if (!sub.open(path, O_READ)) return false;
return sub.rmdir();
}
//------------------------------------------------------------------------------
/** Truncate a file to a specified length. The current file position
* will be maintained if it is less than or equal to \a length otherwise
* it will be set to end of file.
*
* \param[in] path A path with a valid 8.3 DOS name for the file.
* \param[in] length The desired length for the file.
*
* \return The value one, true, is returned for success and
* the value zero, false, is returned for failure.
* Reasons for failure include file is read only, file is a directory,
* \a length is greater than the current file size or an I/O error occurs.
*/
bool SdFat::truncate(const char* path, uint32_t length) {
SdBaseFile file;
if (!file.open(path, O_WRITE)) return false;
return file.truncate(length);
}
| [
"m3gandra@gmail.com"
] | m3gandra@gmail.com |
6fa37ba65862c43d26680721c4f8ab1666bee3b0 | d732c881b57ef5e3c8f8d105b2f2e09b86bcc3fe | /src/lib/ValueDict.cpp | f67ed96a494abc0d37f2982021522bff4beb78ce | [] | no_license | gura-lang/gurax | 9180861394848fd0be1f8e60322b65a92c4c604d | d9fedbc6e10f38af62c53c1bb8a4734118d14ce4 | refs/heads/master | 2023-09-01T09:15:36.548730 | 2023-09-01T08:49:33 | 2023-09-01T08:49:33 | 160,017,455 | 10 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,961 | cpp | //==============================================================================
// ValueDict.cpp
//==============================================================================
#include "stdafx.h"
namespace Gurax {
//------------------------------------------------------------------------------
// ValueDict
//------------------------------------------------------------------------------
void ValueDict::Clear()
{
for (auto& pair : _map) {
Value::Delete(pair.first);
Value::Delete(pair.second);
}
_map.clear();
}
ValueDict* ValueDict::Clone() const
{
RefPtr<ValueDict> pValueDict(new ValueDict());
pValueDict->_map.reserve(_map.size());
for (auto pair : _map) {
//pValueDict->_map.emplace(pair.first->Reference(), pair.second->Reference());
pValueDict->_map.insert(Map::value_type(pair.first->Reference(), pair.second->Reference()));
}
return pValueDict.release();
}
ValueDict* ValueDict::CloneDeep() const
{
RefPtr<ValueDict> pValueDict(new ValueDict());
pValueDict->_map.reserve(_map.size());
for (auto pair : _map) {
RefPtr<Value> pValueKeyCloned(pair.first->Clone());
if (!pValueKeyCloned) return nullptr;
RefPtr<Value> pValueCloned(pair.second->Clone());
if (!pValueCloned) return nullptr;
//pValueDict->_map.emplace(pValueKeyCloned.release(), pValueCloned.release());
pValueDict->_map.insert(Map::value_type(pValueKeyCloned.release(), pValueCloned.release()));
}
return pValueDict.release();
}
void ValueDict::Assign(RefPtr<Value> pValueKey, RefPtr<Value> pValue)
{
auto pPair = _map.find(pValueKey.get());
if (pPair == _map.end()) {
//_map.emplace(pValueKey.release(), pValue.release());
_map.insert(Map::value_type(pValueKey.release(), pValue.release()));
} else {
Value::Delete(pPair->second);
pPair->second = pValue.release();
}
}
bool ValueDict::Store(const ValueDict& valDict, StoreMode storeMode)
{
for (auto pairSrc : valDict._map) {
const Value* pValueKey = pairSrc.first;
auto pPairDst = _map.find(const_cast<Value*>(pValueKey));
if (pPairDst == _map.end()) {
_map.insert(Map::value_type(pairSrc.first->Reference(), pairSrc.second->Reference()));
} else if (storeMode == StoreMode::Overwrite) {
Value::Delete(pPairDst->second);
pPairDst->second = pairSrc.second->Reference();
} else if (storeMode == StoreMode::Timid) {
// nothing to do
} else {
Error::Issue(ErrorType::ValueError, "duplicated key '%s'", pValueKey->ToString().c_str());
return false;
}
}
return true;
}
bool ValueDict::Store(const Value& valueKey, const Value& value, StoreMode storeMode)
{
if (!valueKey.IsAsDictKey()) {
Error::Issue(ErrorType::TypeError, "invalid value type for key");
return false;
}
auto pPairDst = _map.find(const_cast<Value*>(&valueKey));
if (pPairDst == _map.end()) {
_map.insert(Map::value_type(valueKey.Reference(), value.Reference()));
} else if (storeMode == StoreMode::Overwrite) {
Value::Delete(pPairDst->second);
pPairDst->second = value.Reference();
} else if (storeMode == StoreMode::Timid) {
// nothing to do
} else {
Error::Issue(ErrorType::ValueError, "duplicated key '%s'", valueKey.ToString().c_str());
return false;
}
return true;
}
void ValueDict::Erase(const Value& valueKey)
{
auto pPair = _map.find(const_cast<Value*>(&valueKey));
if (pPair == _map.end()) return;
Value::Delete(pPair->first);
Value::Delete(pPair->second);
_map.erase(pPair);
}
String ValueDict::ToString(const StringStyle& ss) const
{
const char* strPair = ss.IsCram()? "=>" : " => ";
RefPtr<ValueOwner> pKeys(GetKeys());
pKeys->Sort();
String str;
str += "%{";
for (auto ppValueKey = pKeys->begin(); ppValueKey != pKeys->end(); ppValueKey++) {
const Value* pValueKey = *ppValueKey;
const Value* pValue = Lookup(*pValueKey);
if (ppValueKey != pKeys->begin()) str += ss.GetComma();
str += pValueKey->ToString(StringStyle::Quote_NilVisible);
str += strPair;
str += pValue->ToString(StringStyle::Quote_NilVisible);
}
str += "}";
return str;
}
bool ValueDict::Serialize(Stream& stream) const
{
if (!stream.SerializePackedNumber(_map.size())) return false;
for (auto iter : _map) {
if (!iter.first->Serialize(stream)) return false;
if (!iter.second->Serialize(stream)) return false;
}
return true;
}
ValueDict* ValueDict::Deserialize(Stream& stream)
{
size_t len;
RefPtr<ValueDict> pValueDict(new ValueDict());
if (!stream.DeserializePackedNumber(len)) return nullptr;
auto map = pValueDict->GetMap();
map.reserve(len);
for (size_t i = 0; i < len; i++) {
RefPtr<Value> pValueKey(Value::Deserialize(stream));
if (!pValueKey) return nullptr;
RefPtr<Value> pValue(Value::Deserialize(stream));
if (!pValue) return nullptr;
map.insert(Map::value_type(pValueKey.release(), pValue.release()));
}
return pValueDict.release();
}
void ValueDict::IssueError_KeyNotFound(const Value& valueKey)
{
Error::Issue(ErrorType::KeyError, "the dictionary doesn't have a key '%s'", valueKey.ToString().c_str());
}
}
| [
"ypsitau@nifty.com"
] | ypsitau@nifty.com |
34454b2103ad7fd19dcdc93848c0feb934938ac0 | db2a9059ece34bbce9fdd532a265ace38f0e1196 | /EULER/487.cpp | 4964f8720b08e146e7152cfb626141e549082f76 | [] | no_license | aayushdw/Competitve | 65eba6f385a2fd047512d577e809480e8c75aadf | d883b80363f2447a353a1cd5d33ee33ea9ae217e | refs/heads/master | 2020-04-11T15:15:07.254957 | 2019-01-14T21:27:29 | 2019-01-14T21:27:29 | 161,885,303 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,893 | cpp | // References :
// http://129.81.170.14/~vhm/sum-powers.pdf
// http://dc.lib.unc.edu/cgi-bin/showfile.exe?CISOROOT=/jncas&CISOPTR=3514
// https://upload.wikimedia.org/wikipedia/commons/2/22/Sums_of_powers_of_positive_integers_and_their_recurrence_relations.pdf
// https://gowers.wordpress.com/2014/11/04/sums-of-kth-powers/
#include <bits/stdc++.h>
#define si(x) scanf("%d",&x)
#define sf(x) scanf("%lf",&x)
#define sl(x) scanf("%lld",&x)
#define pr(x) printf("%d\n",x)
#define prll(x) printf("%lld\n",x)
#define ll long long int
#define ull unsigned long long int
#define F first
#define S second
#define rep(i,x,y) for(ll i=x;i<y;i++)
#define ii pair<int,int>
#define pll pair<ll,ll>
#define vi vector<int>
#define vvi vector< vi >
#define vl vector<long long int>
#define vvl vector< vl >
#define vii vector< ii >
#define vvii vector< vii >
#define priority_queue pq;
#define sz(a) ll((a).size())
#define pb push_back
#define mp make_pair
#define lb lower_bound
#define ub upper_bound
#define ROUNDOFFINT(d) d = (int)((double)d + 0.5)
#define SET(a,b) memset(a,b,sizeof(a))
#define all(c) (c).begin(),(c).end()
#define tr(i,c) for(auto i = (c).begin(); i != (c).end(); i++)
#define present(c,x) ((c).find(x) != (c).end())
#define cpresent(c,x) (find(all(c),x) != (c).end())
#define ison(x,i) (((x) >> (i)) & 1) //checks if ith bit is on
#define set0(x,i) (x & ~(1 << i)) //set ith bit in x to be zero
#define clr(a) memset(a,0,sizeof(a))
#define MOD 1000000007ll
#define INF 4000000000000000000
#define MAX 100000+5
using namespace std;
// PARAMETERS:
#define NUM 1000000000000ll
#define POW 10000ll
// #define NUM 5ll
// #define POW 3ll
ll s[POW+1];
template <typename T>
T powmod(T base, T exp, T modulus) {
base %= modulus;
T result = 1;
while (exp > 0) {
if (exp & 1) result = (result * base) % modulus;
base = (base * base) % modulus;
exp >>= 1;
}
return result;
}
ll invMod(ll num,ll mod)
{
return powmod(num,mod-2,mod);
}
ll _solve(ll mod)
{
s[0] = NUM % mod;
rep(i,1,POW+1)
{
ll mul = 1;
s[i] = (powmod(NUM+1,i+1,mod)-1+mod)%mod;
// printf("s[%lld] = %lld\n" , i,s[i]);
rep(j,0,i)
{
// printf("mul = %lld\n",mul);
s[i] -= (mul * s[j]) % mod;
s[i] %= mod;
mul = (mul * (i+1-j)) % mod;
mul = (mul * invMod(j+1,mod)) % mod;
}
// printf("s[%lld] = %lld\n" , i,s[i]);
s[i] = (s[i] + mod) % mod;
s[i] *= invMod(i+1,mod);
s[i] %= mod;
// printf("%lld %lld\n" ,i,s[i]);
}
// rep(i,0,POW+1)
// {
// printf("%lld %lld\n" ,i,s[i]);
// }
return s[POW];
}
void solve()
{
ll numPrimes;
sl(numPrimes);
ll ans = 0;
while(numPrimes--)
{
ll prime;
sl(prime);
ans += _solve(prime);
prll(numPrimes);
}
prll(ans);
return;
}
int main()
{
solve();
return 0;
} | [
"aayushdw@gmail.com"
] | aayushdw@gmail.com |
4979f001e0cd8f9ab4cd8d6990f153bc19e7b3c6 | 82685d006a3c55bb7ee00028d222a5b590189bbf | /Sourcecode/mx/core/elements/TupletActual.h | 2420007c8592b55375ddadbb51d689838543ef69 | [
"MIT"
] | permissive | ailialy/MusicXML-Class-Library | 41b1b6b28a67fd7cdfbbc4fb7c5c936aee4d9eca | 5e1f1cc8831449476f3facfff5cf852d66488d6a | refs/heads/master | 2020-06-18T23:46:50.306435 | 2016-08-22T04:33:44 | 2016-08-22T04:33:44 | 74,932,821 | 2 | 0 | null | 2016-11-28T03:14:23 | 2016-11-28T03:14:23 | null | UTF-8 | C++ | false | false | 2,344 | h | // MusicXML Class Library v0.2
// Copyright (c) 2015 - 2016 by Matthew James Briggs
#pragma once
#include "mx/core/ForwardDeclare.h"
#include "mx/core/ElementInterface.h"
#include <iosfwd>
#include <memory>
#include <vector>
namespace mx
{
namespace core
{
MX_FORWARD_DECLARE_ELEMENT( TupletDot )
MX_FORWARD_DECLARE_ELEMENT( TupletNumber )
MX_FORWARD_DECLARE_ELEMENT( TupletType )
MX_FORWARD_DECLARE_ELEMENT( TupletActual )
inline TupletActualPtr makeTupletActual() { return std::make_shared<TupletActual>(); }
class TupletActual : public ElementInterface
{
public:
TupletActual();
virtual bool hasAttributes() const;
virtual std::ostream& streamAttributes( std::ostream& os ) const;
virtual std::ostream& streamName( std::ostream& os ) const;
virtual bool hasContents() const;
virtual std::ostream& streamContents( std::ostream& os, const int indentLevel, bool& isOneLineOnly ) const;
/* _________ TupletNumber minOccurs = 0, maxOccurs = 1 _________ */
TupletNumberPtr getTupletNumber() const;
void setTupletNumber( const TupletNumberPtr& value );
bool getHasTupletNumber() const;
void setHasTupletNumber( const bool value );
/* _________ TupletType minOccurs = 0, maxOccurs = 1 _________ */
TupletTypePtr getTupletType() const;
void setTupletType( const TupletTypePtr& value );
bool getHasTupletType() const;
void setHasTupletType( const bool value );
/* _________ TupletDot minOccurs = 0, maxOccurs = unbounded _________ */
const TupletDotSet& getTupletDotSet() const;
void addTupletDot( const TupletDotPtr& value );
void removeTupletDot( const TupletDotSetIterConst& value );
void clearTupletDotSet();
TupletDotPtr getTupletDot( const TupletDotSetIterConst& setIterator ) const;
bool fromXElement( std::ostream& message, xml::XElement& xelement );
private:
TupletNumberPtr myTupletNumber;
bool myHasTupletNumber;
TupletTypePtr myTupletType;
bool myHasTupletType;
TupletDotSet myTupletDotSet;
};
}
}
| [
"matthew.james.briggs@gmail.com"
] | matthew.james.briggs@gmail.com |
0107e7f7f35466361e37371e29efcde4c96e2c9c | fb3c1e036f18193d6ffe59f443dad8323cb6e371 | /src/flash/AVMSWF/api/flash/display/AS3FocusDirection.h | c0f683b0ba27e858a7cdabe684e68ebad4414193 | [] | no_license | playbar/nstest | a61aed443af816fdc6e7beab65e935824dcd07b2 | d56141912bc2b0e22d1652aa7aff182e05142005 | refs/heads/master | 2021-06-03T21:56:17.779018 | 2016-08-01T03:17:39 | 2016-08-01T03:17:39 | 64,627,195 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,452 | h | #ifndef _AS3FocusDirection_
#define _AS3FocusDirection_
namespace avmplus{namespace NativeID{
class FocusDirectionClassSlots{
friend class SlotOffsetsAndAsserts;
public://Declare your STATIC AS3 slots here!!!
//BOTTOM : String = "bottom"
//NONE : String = "none"
//TOP : String = "top"
Stringp BOTTOM;
Stringp NONE;
Stringp TOP;
private:};
class FocusDirectionObjectSlots{
friend class SlotOffsetsAndAsserts;
public:
//Declare your MEMBER AS3 slots here!!!
private:};
}}
namespace avmshell{
class FocusDirectionClass : public ClassClosure
{
public:
FocusDirectionClass(VTable *vtable);
ScriptObject *createInstance(VTable *ivtable, ScriptObject *delegate);
//new adds
inline Stringp getSlotBOTTOM(){return m_slots_FocusDirectionClass.BOTTOM;}
inline Stringp getSlotNONE(){return m_slots_FocusDirectionClass.NONE;}
inline Stringp getSlotTOP(){return m_slots_FocusDirectionClass.TOP;}
//new adds end
private:
friend class avmplus::NativeID::SlotOffsetsAndAsserts;
avmplus::NativeID::FocusDirectionClassSlots m_slots_FocusDirectionClass;
};
class FocusDirectionObject : public ScriptObject
{
public:
FocusDirectionObject(VTable* _vtable, ScriptObject* _delegate, int capacity);
public:
void* pData;//Set your data!!
private:
friend class avmplus::NativeID::SlotOffsetsAndAsserts;
avmplus::NativeID::FocusDirectionObjectSlots m_slots_FocusDirectionObject;
};}
#endif | [
"hgl868@126.com"
] | hgl868@126.com |
5e4cb0bf5c61b4007fddee4e7d7b4db19be57135 | d44f33121a353bd665c303cc319ccc2f066369a9 | /BaseButton.h | 5d338204e050dd0f086a863c98dfc31301f33002 | [] | no_license | mymichellle/Collage-Builder | 59c476daf881a501c4996f74e3544d0984dd0233 | a9c1f3fdd15031290730cecdbff4b44c1b8a5808 | refs/heads/master | 2021-01-01T16:50:06.163736 | 2011-10-17T23:05:49 | 2011-10-17T23:05:49 | 2,521,132 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 689 | h | //
// BaseButton.h
// Collage
//
// Created by Michelle Alexander on 9/23/11.
// Copyright 2011 ??? . All rights reserved.
//
#ifndef BaseButton_h
#define BaseButton_h
#define BUTTON_WIDTH 120
#define BUTTON_HEIGHT 50
#include <string>
#include "Utility.h"
class BaseButton
{
protected:
int width;
int height;
int x,y;
std::string label;
BaseColor *fillColor;
BaseColor *selectColor;
BaseColor *fontColor;
bool selected;
bool pointInBounds(int xCord, int yCord);
public:
BaseButton();
BaseButton(std::string s, int xCord, int yCord);
virtual bool mouse(int button, int state, int x, int y);
void draw();
};
#endif | [
"mymichellle@gmail.com"
] | mymichellle@gmail.com |
39e68ee167591b01a5cfe932dddb4bec2bcb72cf | be0204c1b95839adee1ad204be022be38e32e2d6 | /BOJ/11025.cpp | 4ab390453e34514d337d3a07ad39a7ca9916900b | [] | no_license | tlsdorye/Problem-Solving | 507bc8d3cf1865c10067ef2e8eb7cb2ee42e16dd | 5c112d2238bfb1fc092612a76f10c7785ba86c78 | refs/heads/master | 2021-06-12T19:19:19.337092 | 2021-04-23T06:39:43 | 2021-04-23T06:39:43 | 179,432,390 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 215 | cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int N, K;
int main()
{
cin >> N >> K;
int ANS = 0;
for (int i = 1; i <= N; i++)
ANS = (ANS + K) % i;
printf("%d", ANS + 1);
} | [
"tlsdorye@gmail.com"
] | tlsdorye@gmail.com |
9ac39a1744c566746423a405f09c9c950d3a0371 | 8082639966edd44f1a4d49a0719bf65ac1174228 | /Olympus Game Engine/src/utilities/Camera.cpp | 9312e6adf538d1d844100434d6d905bb9b69425c | [] | no_license | lachlanpage/Olympus-Game-Engine-V1 | 0b03c0493b4b1b9cb4486038b934c83d97875c35 | 55f22ac6be65f4897014f6d2dde74f8f8fcf6027 | refs/heads/master | 2021-03-24T13:07:51.883329 | 2018-04-02T10:18:25 | 2018-04-02T10:18:25 | 115,174,166 | 0 | 1 | null | 2018-04-02T10:18:26 | 2017-12-23T05:54:35 | C++ | UTF-8 | C++ | false | false | 3,853 | cpp | #include "Camera.h"
Camera* Camera::m_Instance = nullptr;
Camera * Camera::Instance() {
if (m_Instance == nullptr) {
Logger::Instance()->write("INVALID CAMERA ACCESS");
}
else
return m_Instance;
}
Camera* Camera::Instance(glm::vec3 position, glm::vec3 front, glm::vec3 up, MessageBus* messageBus) {
if(m_Instance == nullptr)
m_Instance = new Camera(position, front, up, messageBus);
return m_Instance;
}
Camera::Camera(glm::vec3 position, glm::vec3 front, glm::vec3 up, MessageBus* messageBus) : BusNode(messageBus) {
m_position = position;
m_front = front;
m_worldUp = up;
//camera constants
m_yaw = -90.0f;
m_pitch = 0.0f;
m_movementSpeed = 10;
m_mouseSensitivity = 0.25f;
m_zoom;
m_updateCamera = true;
update();
}
glm::mat4 Camera::getViewMatrix() {
return glm::lookAt(m_position,m_position + m_front, m_up);
}
glm::vec3 Camera::getDirection() { return m_front; }
glm::vec3 Camera::getPosition() { return m_position; }
void Camera::onNotify(Message message) {
handleInput(message.getEvent());
}
void Camera::handleInput(std::string movement) {
float velocity = m_movementSpeed * Time::Instance()->getDeltaTime();
if (movement == "CAMERA_W_A") {
m_position -= m_right * velocity;
m_position += m_front * velocity;
}
else if (movement == "CAMERA_W_D") {
m_position += m_front * velocity;
m_position += m_right * velocity;
}
else if (movement == "CAMERA_S_D")
std::cout << "CAM SD" << std::endl;
else if (movement == "CAMERA_S_A")
std::cout << "CAM SA" << std::endl;
else if (movement == "CAMERA_LSHIFT")
m_position -= velocity * glm::vec3(0.0f, 1.0f, 0.0f);
else if (movement == "CAMERA_SPACE")
m_position += velocity * glm::vec3(0.0f, 1.0f, 0.0f);
else if (movement == "CAMERA_W")
m_position += m_front * velocity;
else if (movement == "CAMERA_A")
m_position -= m_right * velocity;
else if (movement == "CAMERA_S")
m_position -= m_front * velocity;
else if (movement == "CAMERA_D")
m_position += m_right * velocity;
else if (movement == "CAMERA_GET_POSITION")
std::cout << m_position.x << " " << m_position.y << " " << m_position.z << std::endl;
else if (movement == "CAMERA_STOP") {
if (m_updateCamera == true) {
m_updateCamera = false;
}
else {
SDL_WarpMouseGlobal(Settings::Instance()->window_width / 2, Settings::Instance()->window_height / 2);
m_updateCamera = true;
}
}
}
void Camera::processMouseMovement() {
if (m_updateCamera) {
bool constrainPitch = true;
int window_height = Settings::Instance()->window_height;
int window_width = Settings::Instance()->window_width;
//SDL_ShowCursor(SDL_DISABLE);
int x, y;
SDL_GetMouseState(&x, &y);
m_yaw -= m_mouseSensitivity * (0.5 * window_width - x);
m_pitch += m_mouseSensitivity * (0.5 * window_height - y);
// Make sure that when pitch is out of bounds, screen doesn't get flipped
if (constrainPitch)
{
if (m_pitch > 89.0f)
m_pitch = 89.0f;
if (m_pitch < -89.0f)
m_pitch = -89.0f;
}
update();
SDL_WarpMouseGlobal(window_width / 2, window_height / 2);
//std::cout << SDL_ShowCursor(SDL_QUERY) << std::endl;
SDL_ShowCursor(SDL_DISABLE);
}
else {
//Implement to hide cursor
SDL_ShowCursor(SDL_ENABLE);
}
}
void Camera::update_time(float delta) {
deltaTime = delta;
}
void Camera::update() {
// Calculate the new Front vector
glm::vec3 front;
front.x = cos(glm::radians(m_yaw)) * cos(glm::radians(m_pitch));
front.y = sin(glm::radians(m_pitch));
front.z = sin(glm::radians(m_yaw)) * cos(glm::radians(m_pitch));
m_front = glm::normalize(front);
// Also re-calculate the Right and Up vector
m_right = glm::normalize(glm::cross(m_front, m_worldUp)); // Normalize the vectors, because their length gets closer to 0 the more you look up or down which results in slower movement.
m_up = glm::normalize(glm::cross(m_right,m_front));
} | [
"lachlanpage97@gmail.com"
] | lachlanpage97@gmail.com |
e40fe05eb9d98f2085e8cd44bc41cbed4a570520 | bfa8064b2351145c900e58a9f9118932a4261ada | /1080.cpp | d1e340acc62c7705af162de039f6276387ec7c40 | [] | no_license | SHafin007/URI-ONLINE-JUDGE | f44db5e16d94615711105910e473cba0caf0a2dc | 45b5b188ca20cab8df7f35f1442a308ff072c314 | refs/heads/master | 2020-03-25T03:25:35.391827 | 2018-08-04T21:49:16 | 2018-08-04T21:49:16 | 143,341,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | cpp | #include<iostream>
using namespace std;
main(){
long long a;
int ans=0;
int index;
for(int i=1;i<=100;i++){
cin>>a;
if(a>0){
if(a>ans){
ans=a;
index=i;
}
}
}
cout<<ans<<endl<<index<<endl;
return 0;
}
| [
"opriyoshafin@gmail.com"
] | opriyoshafin@gmail.com |
0c062a00b25eaadf789a90a2264fdcb01070120a | 21f7639aa6bbfc421fed3e28f94c47b5f6dfa39c | /cppLearning/grammar/ref.cpp | 7f241438bdedec115f4a4fcd22a626730b8dd167 | [] | no_license | hthappiness/codebase | 06d3fe41ed97b791fc53ca1e734fca1234cd82e0 | fb2af5f250d0ac69ba3dc324cbf65c34db39fd5c | refs/heads/master | 2021-07-23T04:09:36.361718 | 2021-07-11T13:41:40 | 2021-07-11T13:41:40 | 233,802,062 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | cpp | #include <iostream>
class CParam
{
public:
void setMagic(int iMagic){
m_iMagic = iMagic;
}
CParam() = default;
//CParam(CParam&) = default;
CParam& operator=(const CParam&) = default;
void printParam(){
std::cout<<m_iMagic<<std::endl;
}
private:
int m_iMagic;
};
void refTestParam(CParam& tmpParam)
{
CParam stParam;
stParam = tmpParam;
stParam.printParam();
}
int main()
{
CParam refParam;
refParam.setMagic(1234);
refTestParam(refParam);
}
| [
"329295821@qq.com"
] | 329295821@qq.com |
b564f2b75148a6cb2509c2272f193df17770c6cb | babb3f7d854ff20614ca6e0b748f202bc43bf2d7 | /DependentExtensions/PatchTest/main.cpp | a07148ff548b9411a360f66a735bca374c99291e | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Opaque-Studios/RakNet | fd09d7155118e9fb263c7443b025f320e9487bb9 | 4b0e0c6570401a457e4da069364a40d5a892a2f0 | refs/heads/master | 2021-12-28T04:50:07.417214 | 2021-12-21T07:15:37 | 2021-12-21T07:15:37 | 134,405,204 | 4 | 2 | NOASSERTION | 2021-12-21T07:07:32 | 2018-05-22T11:26:26 | C | UTF-8 | C++ | false | false | 2,487 | cpp | /*
* Copyright (c) 2014, Oculus VR, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include "ApplyPatch.h"
#include "CreatePatch.h"
#include <stdio.h>
#include <string.h>
/*
// Test from memory
void main(void)
{
char source[256], destination[256];
strcpy(source, "The quick red fox jumped over the lazy brown dog.");
strcpy(destination, "A story: The quick red fox jumped over the lazy brown dog. The dog then ripped the fox's freaking head off.");
char *patch;
unsigned patchSize;
if (CreatePatch(source, (unsigned int)strlen(source), destination, (unsigned int)strlen(destination), &patch, &patchSize)==false)
{
printf("CreatePatch failed!\n");
}
char *patchedSource;
unsigned patchedSourceSize;
if (ApplyPatch(source, (unsigned int)strlen(source), &patchedSource, &patchedSourceSize, patch, patchSize)==false)
{
printf("ApplyPatch failed!\n");
}
if (patchedSourceSize!=(unsigned int)strlen(destination))
printf("Patched source file does not match length of destination\n");
else if (memcmp(patchedSource, destination, patchedSourceSize)!=0)
printf("Patched source does not match destination\n");
else
printf("Success!\n");
}
*/
// Test from files
extern int TestPatchInMemory(int argc,char *argv[]);
extern int TestDiffInMemory(int argc,char *argv[]);
extern int DIFF_main(int argc,char *argv[]);
extern int PATCH_main(int argc,char * argv[]);
#include <conio.h>
void main(void)
{
printf("(M)ine or (T)heirs?\n");
if (getch()=='m')
{
char *argv[4];
argv[1]="Descent1.dll.bak";
argv[2]="Descent2.dll.bak";
argv[3]="my_patch";
if (TestDiffInMemory(4,argv)==0)
{
printf("TestDiffInMemory Failed.\n");
return;
}
argv[1]="Descent1.dll.bak";
argv[2]="Descent2_patched_my.dll.bak";
argv[3]="my_patch";
if (TestPatchInMemory(4, argv)==0)
{
printf("TestPatchInMemory Failed.\n");
return;
}
printf("Success.\n");
}
else
{
char *argv[4];
argv[1]="Descent1.dll.bak";
argv[2]="Descent2.dll.bak";
argv[3]="their_patch";
DIFF_main(4,argv);
argv[1]="Descent1.dll.bak";
argv[2]="Descent2_patched.dll.bak";
argv[3]="their_patch";
PATCH_main(4, argv);
printf("Success.\n");
}
}
| [
"alex.howland@gmail.com"
] | alex.howland@gmail.com |
6d0d847bf1342fcf2dba8404e282dcdd895bde74 | 71b33ec9e22b1c9d241f9b27295037653cb4df75 | /modules/tunitas.app.exception.Quitting | 1b65297611d984556aceaca7d23de60002cc0fa1 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | yahoo/tunitas-basics | c53cdd96245262f05836fb0affa77fa5b5de28e1 | 5d1bd99b73d483d8f157ce1c233fd35588f68e0f | refs/heads/master | 2023-08-25T00:03:26.534521 | 2023-08-14T12:07:55 | 2023-08-14T12:07:55 | 191,480,785 | 4 | 5 | Apache-2.0 | 2023-03-18T15:17:31 | 2019-06-12T02:13:32 | C++ | UTF-8 | C++ | false | false | 203 | quitting | // -*- c++ -*- this C++23 is a compatibility shim for the S.C.O.L.D system, produced because the namespace changed.
#pragma once
#include <tunitas.app>
#include <tunitas.application.exception.Quitting>
| [
"wbaker@verizonmedia.com"
] | wbaker@verizonmedia.com |
a23ebccd90cb5bcda1903824ac24fe3451f646e0 | 868e8628acaa0bf276134f9cc3ced379679eab10 | /squareDrop/0.021/phi | 09493444953508e7b050b3cea6f338c8731499aa | [] | no_license | stigmn/droplet | 921af6851f88c0acf8b1cd84f5e2903f1d0cb87a | 1649ceb0a9ce5abb243fb77569211558c2f0dc96 | refs/heads/master | 2020-04-04T20:08:37.912624 | 2015-11-25T11:20:32 | 2015-11-25T11:20:32 | 45,102,907 | 0 | 0 | null | 2015-10-28T09:46:30 | 2015-10-28T09:46:29 | null | UTF-8 | C++ | false | false | 248,379 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class surfaceScalarField;
location "0.021";
object phi;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 3 -1 0 0 0 0];
internalField nonuniform List<scalar>
19800
(
-1.54619e-13
1.54619e-13
1.21165e-13
-2.74891e-13
7.55832e-13
-6.34045e-13
1.5547e-12
-7.99018e-13
2.40148e-12
-8.47333e-13
3.2515e-12
-8.50508e-13
4.10212e-12
-8.50855e-13
4.97083e-12
-8.68751e-13
5.88252e-12
-9.11646e-13
6.86307e-12
-9.80446e-13
7.93655e-12
-1.07338e-12
9.12452e-12
-1.18803e-12
1.04463e-11
-1.32219e-12
1.19195e-11
-1.47391e-12
1.35602e-11
-1.64133e-12
1.53826e-11
-1.82247e-12
1.73985e-11
-2.01522e-12
1.96166e-11
-2.2173e-12
2.20433e-11
-2.42606e-12
2.46817e-11
-2.63836e-12
2.75322e-11
-2.85035e-12
3.05906e-11
-3.05756e-12
3.38474e-11
-3.25499e-12
3.72868e-11
-3.43726e-12
4.0887e-11
-3.59853e-12
4.462e-11
-3.73238e-12
4.84515e-11
-3.8318e-12
5.23405e-11
-3.88932e-12
5.6238e-11
-3.89744e-12
6.00873e-11
-3.84881e-12
6.3824e-11
-3.73647e-12
6.73775e-11
-3.55395e-12
7.0672e-11
-3.29557e-12
7.36281e-11
-2.95686e-12
7.61633e-11
-2.53515e-12
7.81946e-11
-2.0301e-12
7.96404e-11
-1.44416e-12
8.04264e-11
-7.8485e-13
8.04761e-11
-4.9674e-14
7.97417e-11
7.34061e-13
7.81774e-11
1.56416e-12
7.57572e-11
2.42027e-12
7.24747e-11
3.28335e-12
6.83451e-11
4.1313e-12
6.34042e-11
4.9415e-12
5.77102e-11
5.69298e-12
5.13458e-11
6.36437e-12
4.44112e-11
6.93519e-12
3.70212e-11
7.38997e-12
7.71626e-12
2.93061e-11
3.02416e-13
-1.46755e-13
1.56917e-12
-1.54165e-12
3.47947e-12
-2.54509e-12
5.69373e-12
-3.01425e-12
8.00291e-12
-3.15715e-12
1.03214e-11
-3.16906e-12
1.26436e-11
-3.17283e-12
1.50065e-11
-3.23145e-12
1.7465e-11
-3.37e-12
2.00778e-11
-3.59324e-12
2.29013e-11
-3.89689e-12
2.59869e-11
-4.27384e-12
2.93812e-11
-4.71691e-12
3.31266e-11
-5.21962e-12
3.72613e-11
-5.77587e-12
4.1819e-11
-6.37932e-12
4.68278e-11
-7.02295e-12
5.23103e-11
-7.69872e-12
5.82824e-11
-8.39742e-12
6.47533e-11
-9.10846e-12
7.17241e-11
-9.81958e-12
7.91855e-11
-1.05166e-11
8.71161e-11
-1.11829e-11
9.54809e-11
-1.18e-11
1.0423e-10
-1.23469e-11
1.13299e-10
-1.2801e-11
1.22605e-10
-1.31383e-11
1.32049e-10
-1.33337e-11
1.41513e-10
-1.33613e-11
1.50859e-10
-1.31949e-11
1.59931e-10
-1.28093e-11
1.68557e-10
-1.21809e-11
1.76551e-10
-1.12898e-11
1.83717e-10
-1.0121e-11
1.89849e-10
-8.66574e-12
1.94743e-10
-6.92228e-12
1.98198e-10
-4.89743e-12
2.00021e-10
-2.60781e-12
2.00049e-10
-7.81213e-14
1.98132e-10
2.65069e-12
1.94166e-10
5.53113e-12
1.88085e-10
8.50352e-12
1.79867e-10
1.15013e-11
1.69547e-10
1.44515e-11
1.57214e-10
1.72766e-11
1.43006e-10
1.99001e-11
1.27121e-10
2.22491e-11
1.09804e-10
2.42548e-11
9.13356e-11
2.58598e-11
2.7021e-11
7.20307e-11
6.53785e-13
-7.99919e-13
2.52817e-12
-3.4169e-12
5.13666e-12
-5.15477e-12
8.07518e-12
-5.95332e-12
1.11073e-11
-6.18883e-12
1.41388e-11
-6.19961e-12
1.71696e-11
-6.20288e-12
2.02518e-11
-6.31327e-12
2.34603e-11
-6.57837e-12
2.68763e-11
-7.00865e-12
3.0578e-11
-7.59749e-12
3.46378e-11
-8.33238e-12
3.91217e-11
-9.20005e-12
4.409e-11
-1.01879e-11
4.95977e-11
-1.12837e-11
5.56933e-11
-1.24748e-11
6.24183e-11
-1.37472e-11
6.98063e-11
-1.50857e-11
7.78823e-11
-1.64727e-11
8.66623e-11
-1.78881e-11
9.61509e-11
-1.93081e-11
1.06339e-10
-2.07046e-11
1.17202e-10
-2.20448e-11
1.28695e-10
-2.32917e-11
1.40753e-10
-2.4404e-11
1.53289e-10
-2.53371e-11
1.66193e-10
-2.60427e-11
1.79329e-10
-2.64698e-11
1.92532e-10
-2.65649e-11
2.05612e-10
-2.62744e-11
2.1835e-10
-2.55463e-11
2.30503e-10
-2.43327e-11
2.41807e-10
-2.25925e-11
2.51981e-10
-2.02937e-11
2.60731e-10
-1.74161e-11
2.67762e-10
-1.39535e-11
2.72782e-10
-9.91732e-12
2.75514e-10
-5.33897e-12
2.75711e-10
-2.73593e-13
2.73154e-10
5.20709e-12
2.67684e-10
1.10014e-11
2.59195e-10
1.69927e-11
2.47651e-10
2.30462e-11
2.33088e-10
2.90149e-11
2.15625e-10
3.47422e-11
1.95457e-10
4.00701e-11
1.72856e-10
4.48492e-11
1.48167e-10
4.89423e-11
1.21794e-10
5.22322e-11
5.46293e-11
9.41839e-11
7.89231e-13
-1.58944e-12
2.89684e-12
-5.52582e-12
5.74249e-12
-8.00111e-12
8.89034e-12
-9.1006e-12
1.21008e-11
-9.39776e-12
1.52866e-11
-9.38404e-12
1.84595e-11
-9.37527e-12
2.16862e-11
-9.54006e-12
2.5058e-11
-9.94991e-12
2.86728e-11
-1.06219e-11
3.2625e-11
-1.15473e-11
3.70027e-11
-1.27081e-11
4.18871e-11
-1.40841e-11
4.73534e-11
-1.56554e-11
5.34706e-11
-1.74023e-11
6.03003e-11
-1.93049e-11
6.78956e-11
-2.13417e-11
7.63007e-11
-2.34896e-11
8.55499e-11
-2.57219e-11
9.56672e-11
-2.80068e-11
1.06664e-10
-3.03067e-11
1.18535e-10
-3.25768e-11
1.31256e-10
-3.47654e-11
1.44781e-10
-3.6814e-11
1.59036e-10
-3.86574e-11
1.73922e-10
-4.02236e-11
1.89312e-10
-4.14339e-11
2.05045e-10
-4.22042e-11
2.20928e-10
-4.24469e-11
2.36729e-10
-4.20739e-11
2.52186e-10
-4.09997e-11
2.67e-10
-3.91445e-11
2.80845e-10
-3.64382e-11
2.93375e-10
-3.28246e-11
3.04223e-10
-2.8266e-11
3.13019e-10
-2.2749e-11
3.19392e-10
-1.62891e-11
3.2299e-10
-8.93492e-12
3.23488e-10
-7.71559e-13
3.20611e-10
8.08303e-12
3.1414e-10
1.74706e-11
3.03932e-10
2.72013e-11
2.89927e-10
3.70543e-11
2.72156e-10
4.67874e-11
2.50756e-10
5.61443e-11
2.25961e-10
6.48654e-11
1.98104e-10
7.27028e-11
1.67612e-10
7.94311e-11
1.34988e-10
8.48556e-11
8.88249e-11
1.00793e-10
7.89871e-13
-2.38011e-12
2.87952e-12
-7.61661e-12
5.66439e-12
-1.07858e-11
8.70222e-12
-1.2137e-11
1.17609e-11
-1.24548e-11
1.47661e-11
-1.23885e-11
1.77433e-11
-1.23531e-11
2.07735e-11
-1.25711e-11
2.3962e-11
-1.31379e-11
2.74197e-11
-1.40774e-11
3.1254e-11
-1.53791e-11
3.55657e-11
-1.70188e-11
4.04489e-11
-1.89689e-11
4.5992e-11
-2.12013e-11
5.22763e-11
-2.36888e-11
5.93752e-11
-2.6404e-11
6.73528e-11
-2.93182e-11
7.62638e-11
-3.24e-11
8.61528e-11
-3.56121e-11
9.70538e-11
-3.89104e-11
1.08987e-10
-4.22415e-11
1.21953e-10
-4.55429e-11
1.35933e-10
-4.87425e-11
1.5088e-10
-5.17581e-11
1.6672e-10
-5.44964e-11
1.83349e-10
-5.68533e-11
2.00627e-10
-5.87144e-11
2.1838e-10
-5.99572e-11
2.36389e-10
-6.0454e-11
2.54393e-10
-6.00757e-11
2.72091e-10
-5.86954e-11
2.89139e-10
-5.61929e-11
3.0516e-10
-5.24605e-11
3.19744e-10
-4.74101e-11
3.32459e-10
-4.09813e-11
3.42861e-10
-3.31491e-11
3.50505e-10
-2.39308e-11
3.54961e-10
-1.33906e-11
3.55834e-10
-1.64506e-12
3.5278e-10
1.11361e-11
3.45522e-10
2.47274e-11
3.33872e-10
3.88525e-11
3.17741e-10
5.31882e-11
2.97152e-10
6.73774e-11
2.72251e-10
8.10438e-11
2.4331e-10
9.38049e-11
2.1072e-10
1.05291e-10
1.74983e-10
1.15166e-10
1.36702e-10
1.23138e-10
1.28979e-10
9.65479e-11
7.22089e-13
-3.10293e-12
2.65365e-12
-9.54891e-12
5.20802e-12
-1.33396e-11
7.95602e-12
-1.48837e-11
1.06804e-11
-1.51785e-11
1.33218e-11
-1.50308e-11
1.59202e-11
-1.49533e-11
1.85696e-11
-1.52214e-11
2.13868e-11
-1.59543e-11
2.44939e-11
-1.71824e-11
2.80087e-11
-1.88928e-11
3.20435e-11
-2.10548e-11
3.67039e-11
-2.36327e-11
4.20898e-11
-2.65907e-11
4.82936e-11
-2.98943e-11
5.53995e-11
-3.35095e-11
6.34826e-11
-3.74004e-11
7.26091e-11
-4.15267e-11
8.28356e-11
-4.58406e-11
9.42077e-11
-5.02842e-11
1.06756e-10
-5.47891e-11
1.2049e-10
-5.92746e-11
1.35398e-10
-6.36466e-11
1.51439e-10
-6.77963e-11
1.68542e-10
-7.15993e-11
1.86602e-10
-7.49152e-11
2.05476e-10
-7.75895e-11
2.24976e-10
-7.94564e-11
2.44865e-10
-8.03423e-11
2.64859e-10
-8.00688e-11
2.84622e-10
-7.84585e-11
3.03768e-10
-7.53413e-11
3.2187e-10
-7.05633e-11
3.38458e-10
-6.3997e-11
3.5303e-10
-5.55515e-11
3.65067e-10
-4.51835e-11
3.74043e-10
-3.29059e-11
3.79447e-10
-1.87961e-11
3.80804e-10
-3.00357e-12
3.77695e-10
1.42456e-11
3.69775e-10
3.26475e-11
3.56802e-10
5.18258e-11
3.38651e-10
7.13393e-11
3.15332e-10
9.06963e-11
2.86998e-10
1.09375e-10
2.53959e-10
1.26844e-10
2.16665e-10
1.42586e-10
1.75703e-10
1.56127e-10
1.31781e-10
1.6706e-10
1.75064e-10
8.56942e-11
6.24031e-13
-3.72745e-12
2.32847e-12
-1.12541e-11
4.56457e-12
-1.55755e-11
6.92852e-12
-1.72474e-11
9.22288e-12
-1.74736e-11
1.14047e-11
-1.72143e-11
1.35275e-11
-1.70778e-11
1.56968e-11
-1.73912e-11
1.80398e-11
-1.82963e-11
2.06878e-11
-1.98293e-11
2.37689e-11
-2.19742e-11
2.74051e-11
-2.46934e-11
3.17124e-11
-2.79434e-11
3.68007e-11
-3.16814e-11
4.27727e-11
-3.58669e-11
4.97232e-11
-4.04595e-11
5.77395e-11
-4.54164e-11
6.69006e-11
-5.06887e-11
7.7277e-11
-5.62179e-11
8.89274e-11
-6.19342e-11
1.01895e-10
-6.7754e-11
1.16202e-10
-7.35781e-11
1.31847e-10
-7.92892e-11
1.48801e-10
-8.47496e-11
1.67002e-10
-8.98007e-11
1.86349e-10
-9.42631e-11
2.06698e-10
-9.79387e-11
2.27855e-10
-1.00613e-10
2.4957e-10
-1.02058e-10
2.71537e-10
-1.02037e-10
2.9339e-10
-1.00313e-10
3.14704e-10
-9.66559e-11
3.34998e-10
-9.08558e-11
3.53738e-10
-8.27351e-11
3.70349e-10
-7.21619e-11
3.84229e-10
-5.90636e-11
3.94765e-10
-4.34416e-11
4.01351e-10
-2.53831e-11
4.03419e-10
-5.07147e-12
4.00458e-10
1.72067e-11
3.92045e-10
4.106e-11
3.7787e-10
6.59989e-11
3.57762e-10
9.14452e-11
3.31712e-10
1.16748e-10
2.99877e-10
1.4121e-10
2.62603e-10
1.6412e-10
2.20407e-10
1.84782e-10
1.73976e-10
2.02557e-10
1.24137e-10
2.16896e-10
2.27368e-10
7.18322e-11
5.13642e-13
-4.24159e-12
1.9589e-12
-1.27009e-11
3.83298e-12
-1.74505e-11
5.76388e-12
-1.91791e-11
7.57671e-12
-1.92874e-11
9.24506e-12
-1.88837e-11
1.08353e-11
-1.86686e-11
1.24633e-11
-1.90189e-11
1.42657e-11
-2.00977e-11
1.63828e-11
-2.19459e-11
1.89518e-11
-2.45437e-11
2.21036e-11
-2.78467e-11
2.59635e-11
-3.18047e-11
3.06503e-11
-3.63691e-11
3.62768e-11
-4.14936e-11
4.29497e-11
-4.71325e-11
5.07693e-11
-5.32366e-11
5.98296e-11
-5.97494e-11
7.0216e-11
-6.66039e-11
8.20031e-11
-7.37195e-11
9.52497e-11
-8.09984e-11
1.09996e-10
-8.83224e-11
1.26257e-10
-9.55497e-11
1.44021e-10
-1.02513e-10
1.63239e-10
-1.09018e-10
1.8382e-10
-1.14844e-10
2.05626e-10
-1.19745e-10
2.28462e-10
-1.2345e-10
2.52071e-10
-1.25669e-10
2.76131e-10
-1.26098e-10
3.00246e-10
-1.24429e-10
3.23952e-10
-1.20361e-10
3.46712e-10
-1.13614e-10
3.67924e-10
-1.03947e-10
3.86933e-10
-9.11714e-11
4.03043e-10
-7.5174e-11
4.15536e-10
-5.59352e-11
4.237e-10
-3.35464e-11
4.26852e-10
-8.22338e-12
4.24372e-10
1.9685e-11
4.15739e-10
4.96922e-11
4.00558e-10
8.11787e-11
3.78599e-10
1.13405e-10
3.49815e-10
1.45533e-10
3.14371e-10
1.76656e-10
2.72645e-10
2.05844e-10
2.25236e-10
2.32188e-10
1.72943e-10
2.54849e-10
1.16739e-10
2.731e-10
2.86374e-10
5.77345e-11
3.97064e-13
-4.63954e-12
1.56593e-12
-1.38722e-11
3.05291e-12
-1.89391e-11
4.52064e-12
-2.06475e-11
5.81773e-12
-2.05845e-11
6.93393e-12
-1.99995e-11
7.9476e-12
-1.96816e-11
8.98462e-12
-2.00551e-11
1.01906e-11
-2.13028e-11
1.17146e-11
-2.34691e-11
1.37018e-11
-2.65302e-11
1.62914e-11
-3.04358e-11
1.96166e-11
-3.51298e-11
2.38054e-11
-4.05583e-11
2.89816e-11
-4.66706e-11
3.52644e-11
-5.34163e-11
4.2769e-11
-6.07417e-11
5.16054e-11
-6.85854e-11
6.18765e-11
-7.68743e-11
7.36758e-11
-8.55181e-11
8.70836e-11
-9.44059e-11
1.02162e-10
-1.03401e-10
1.1895e-10
-1.12337e-10
1.37458e-10
-1.21019e-10
1.57656e-10
-1.29215e-10
1.79472e-10
-1.3666e-10
2.02781e-10
-1.43055e-10
2.27395e-10
-1.48065e-10
2.53056e-10
-1.51331e-10
2.79428e-10
-1.5247e-10
3.06092e-10
-1.51091e-10
3.3254e-10
-1.46809e-10
3.5818e-10
-1.39255e-10
3.82337e-10
-1.28105e-10
4.04264e-10
-1.13098e-10
4.23156e-10
-9.4066e-11
4.38176e-10
-7.09548e-11
4.48478e-10
-4.38493e-11
4.53246e-10
-1.29921e-11
4.51725e-10
2.12045e-11
4.4327e-10
5.81486e-11
4.27378e-10
9.70732e-11
4.03733e-10
1.37051e-10
3.72244e-10
1.77021e-10
3.33067e-10
2.15831e-10
2.86623e-10
2.52286e-10
2.33598e-10
2.85213e-10
1.74926e-10
3.13522e-10
1.11752e-10
3.36274e-10
3.52731e-10
4.53949e-11
2.74774e-13
-4.91577e-12
1.15299e-12
-1.47536e-11
2.23213e-12
-2.00198e-11
3.21056e-12
-2.16257e-11
3.96033e-12
-2.13329e-11
4.48683e-12
-2.05246e-11
4.88011e-12
-2.00741e-11
5.27581e-12
-2.04504e-11
5.82822e-12
-2.18544e-11
6.69424e-12
-2.43334e-11
8.02636e-12
-2.78602e-11
9.97096e-12
-3.23789e-11
1.26694e-11
-3.78282e-11
1.62595e-11
-4.41497e-11
2.08764e-11
-5.12892e-11
2.66533e-11
-5.91942e-11
3.37208e-11
-6.78093e-11
4.22069e-11
-7.70715e-11
5.22356e-11
-8.69033e-11
6.39241e-11
-9.72075e-11
7.73789e-11
-1.07861e-10
9.26904e-11
-1.18711e-10
1.09927e-10
-1.29572e-10
1.29127e-10
-1.40217e-10
1.50291e-10
-1.50378e-10
1.73374e-10
-1.59744e-10
1.98273e-10
-1.67954e-10
2.24816e-10
-1.74608e-10
2.52749e-10
-1.79263e-10
2.81731e-10
-1.81451e-10
3.11319e-10
-1.80681e-10
3.4097e-10
-1.76461e-10
3.70029e-10
-1.68316e-10
3.97742e-10
-1.55817e-10
4.23257e-10
-1.38612e-10
4.45646e-10
-1.16454e-10
4.63926e-10
-8.92367e-11
4.77098e-10
-5.70227e-11
4.84178e-10
-2.00722e-11
4.84247e-10
2.11373e-11
4.76499e-10
6.58996e-11
4.60292e-10
1.13282e-10
4.35201e-10
1.62141e-10
4.01063e-10
2.11156e-10
3.58018e-10
2.58873e-10
3.06529e-10
3.03776e-10
2.47379e-10
3.44363e-10
1.81666e-10
3.79238e-10
1.10749e-10
4.07191e-10
4.27283e-10
3.61947e-11
1.45242e-13
-5.06291e-12
7.16383e-13
-1.5328e-11
1.36458e-12
-2.0669e-11
1.82463e-12
-2.20847e-11
1.99183e-12
-2.14985e-11
1.88705e-12
-2.04192e-11
1.61176e-12
-1.97993e-11
1.31094e-12
-2.01499e-11
1.14687e-12
-2.16894e-11
1.28303e-12
-2.44674e-11
1.87848e-12
-2.84536e-11
3.08673e-12
-3.35867e-11
5.05772e-12
-3.98005e-11
7.93939e-12
-4.70333e-11
1.18789e-11
-5.52299e-11
1.70233e-11
-6.43389e-11
2.35205e-11
-7.43067e-11
3.15193e-11
-8.50713e-11
4.11687e-11
-9.65541e-11
5.26143e-11
-1.08654e-10
6.59939e-11
-1.2124e-10
8.14318e-11
-1.34147e-10
9.90327e-11
-1.47171e-10
1.18874e-10
-1.60057e-10
1.40995e-10
-1.72501e-10
1.6539e-10
-1.84138e-10
1.91986e-10
-1.94549e-10
2.20636e-10
-2.03257e-10
2.51104e-10
-2.09731e-10
2.83048e-10
-2.13397e-10
3.16013e-10
-2.13648e-10
3.49416e-10
-2.09865e-10
3.82544e-10
-2.01443e-10
4.14552e-10
-1.87822e-10
4.4447e-10
-1.6853e-10
4.71228e-10
-1.43213e-10
4.93676e-10
-1.11686e-10
5.10624e-10
-7.39709e-11
5.20887e-10
-3.03335e-11
5.23339e-10
1.86884e-11
5.16972e-10
7.2268e-11
5.00964e-10
1.29289e-10
4.74743e-10
1.88361e-10
4.38048e-10
2.4785e-10
3.9098e-10
3.0594e-10
3.3404e-10
3.60716e-10
2.68131e-10
4.10272e-10
1.94541e-10
4.52827e-10
1.149e-10
4.86836e-10
5.111e-10
3.10824e-11
6.53428e-15
-5.07154e-12
2.50729e-13
-1.55751e-11
4.40464e-13
-2.08592e-11
3.48141e-13
-2.19917e-11
-1.073e-13
-2.10431e-11
-8.89623e-13
-1.96384e-11
-1.8863e-12
-1.88047e-11
-2.944e-12
-1.90932e-11
-3.89456e-12
-2.0738e-11
-4.5679e-12
-2.37928e-11
-4.79911e-12
-2.82223e-11
-4.42719e-12
-3.39603e-11
-3.29377e-12
-4.09361e-11
-1.24094e-12
-4.90873e-11
1.89012e-12
-5.8361e-11
6.26138e-12
-6.871e-11
1.20397e-11
-8.0086e-11
1.93984e-11
-9.24316e-11
2.85149e-11
-1.05671e-10
3.95671e-11
-1.19704e-10
5.27295e-11
-1.34399e-10
6.81671e-11
-1.49582e-10
8.603e-11
-1.65033e-10
1.06445e-10
-1.80473e-10
1.29502e-10
-1.95558e-10
1.55242e-10
-2.09877e-10
1.8364e-10
-2.22944e-10
2.14585e-10
-2.34201e-10
2.47869e-10
-2.43017e-10
2.83165e-10
-2.48696e-10
3.2001e-10
-2.50495e-10
3.57791e-10
-2.47645e-10
3.95731e-10
-2.3938e-10
4.3289e-10
-2.24979e-10
4.68169e-10
-2.03809e-10
5.00333e-10
-1.75377e-10
5.28034e-10
-1.39387e-10
5.49856e-10
-9.57908e-11
5.64365e-10
-4.48418e-11
5.70181e-10
1.28726e-11
5.66041e-10
7.64083e-11
5.50888e-10
1.44441e-10
5.23954e-10
2.15296e-10
4.84836e-10
2.86969e-10
4.33571e-10
3.57204e-10
3.70691e-10
4.23594e-10
2.97236e-10
4.83726e-10
2.14733e-10
5.35329e-10
1.25137e-10
5.76437e-10
6.05517e-10
3.07206e-11
-1.42788e-13
-4.9308e-12
-2.48561e-13
-1.54716e-11
-5.488e-13
-2.05597e-11
-1.2314e-12
-2.13099e-11
-2.35315e-12
-1.99234e-11
-3.86288e-12
-1.81317e-11
-5.63809e-12
-1.70319e-11
-7.51857e-12
-1.72134e-11
-9.33026e-12
-1.89261e-11
-1.08988e-11
-2.22247e-11
-1.2053e-11
-2.70701e-11
-1.26252e-11
-3.33905e-11
-1.24492e-11
-4.11134e-11
-1.13582e-11
-5.01779e-11
-9.18158e-12
-6.05367e-11
-5.74137e-12
-7.21506e-11
-8.48434e-13
-8.49804e-11
5.6963e-12
-9.89771e-11
1.41013e-11
-1.14074e-10
2.45813e-11
-1.3018e-10
3.73532e-11
-1.47167e-10
5.2631e-11
-1.64859e-10
7.06203e-11
-1.83024e-10
9.15071e-11
-2.01361e-10
1.15444e-10
-2.19495e-10
1.42533e-10
-2.36965e-10
1.72809e-10
-2.53219e-10
2.06217e-10
-2.6761e-10
2.42594e-10
-2.79395e-10
2.81641e-10
-2.87744e-10
3.22901e-10
-2.91754e-10
3.65736e-10
-2.90478e-10
4.09312e-10
-2.82954e-10
4.5259e-10
-2.68256e-10
4.9433e-10
-2.45549e-10
5.33108e-10
-2.14154e-10
5.67343e-10
-1.73621e-10
5.9535e-10
-1.23797e-10
6.15394e-10
-6.48873e-11
6.25784e-10
2.48083e-12
6.2493e-10
7.72642e-11
6.11476e-10
1.57898e-10
5.84381e-10
2.42391e-10
5.43046e-10
3.28304e-10
4.87404e-10
4.12843e-10
4.18006e-10
4.92992e-10
3.36051e-10
5.65685e-10
2.43351e-10
6.28027e-10
1.42276e-10
6.7751e-10
7.12187e-10
3.56057e-11
-2.96453e-13
-4.63619e-12
-7.81585e-13
-1.49882e-11
-1.60798e-12
-1.97345e-11
-2.92112e-12
-1.99987e-11
-4.75451e-12
-1.8093e-11
-7.0428e-12
-1.58461e-11
-9.6553e-12
-1.44205e-11
-1.24267e-11
-1.4442e-11
-1.51787e-11
-1.61743e-11
-1.77324e-11
-1.96728e-11
-1.99116e-11
-2.48934e-11
-2.1543e-11
-3.17605e-11
-2.24543e-11
-4.02012e-11
-2.24709e-11
-5.01597e-11
-2.14101e-11
-6.1597e-11
-1.90766e-11
-7.44853e-11
-1.52594e-11
-8.87988e-11
-9.73083e-12
-1.04505e-10
-2.24817e-12
-1.21554e-10
7.44351e-12
-1.39869e-10
1.96095e-11
-1.59332e-10
3.45221e-11
-1.79772e-10
5.24515e-11
-2.00954e-10
7.36537e-11
-2.22563e-10
9.83561e-11
-2.44196e-10
1.26739e-10
-2.65347e-10
1.58916e-10
-2.85396e-10
1.94908e-10
-3.03603e-10
2.34617e-10
-3.19104e-10
2.77793e-10
-3.30918e-10
3.24001e-10
-3.37961e-10
3.72596e-10
-3.39073e-10
4.22696e-10
-3.33054e-10
4.73164e-10
-3.18723e-10
5.22606e-10
-2.94989e-10
5.69387e-10
-2.60933e-10
6.11656e-10
-2.15892e-10
6.4741e-10
-1.59554e-10
6.74559e-10
-9.20369e-11
6.91004e-10
-1.39632e-11
6.94775e-10
7.3494e-11
6.84108e-10
1.68566e-10
6.57604e-10
2.68893e-10
6.1438e-10
3.71527e-10
5.54208e-10
4.73017e-10
4.77627e-10
5.69571e-10
3.86015e-10
6.57298e-10
2.8155e-10
7.32491e-10
1.67122e-10
7.91933e-10
8.33151e-10
4.61594e-11
-4.75558e-13
-4.16205e-12
-1.35713e-12
-1.41077e-11
-2.73933e-12
-1.83535e-11
-4.72133e-12
-1.80186e-11
-7.31048e-12
-1.55056e-11
-1.04284e-11
-1.27287e-11
-1.39378e-11
-1.09105e-11
-1.76692e-11
-1.07098e-11
-2.14415e-11
-1.24027e-11
-2.50721e-11
-1.60438e-11
-2.83819e-11
-2.15848e-11
-3.11945e-11
-2.89472e-11
-3.33334e-11
-3.80604e-11
-3.46164e-11
-4.88753e-11
-3.48491e-11
-6.13647e-11
-3.38191e-11
-7.55165e-11
-3.12929e-11
-9.13253e-11
-2.70146e-11
-1.08782e-10
-2.07058e-11
-1.27861e-10
-1.20658e-11
-1.48508e-10
-7.7333e-13
-1.70624e-10
1.35077e-11
-1.94053e-10
3.11218e-11
-2.18567e-10
5.24057e-11
-2.43846e-10
7.76771e-11
-2.69467e-10
1.07214e-10
-2.94883e-10
1.4123e-10
-3.19411e-10
1.79844e-10
-3.42216e-10
2.23049e-10
-3.62307e-10
2.7067e-10
-3.78539e-10
3.22326e-10
-3.89618e-10
3.77388e-10
-3.94135e-10
4.34941e-10
-3.90606e-10
4.93756e-10
-3.77537e-10
5.52281e-10
-3.53514e-10
6.08647e-10
-3.17299e-10
6.60697e-10
-2.67945e-10
7.06055e-10
-2.04913e-10
7.42198e-10
-1.28178e-10
7.66555e-10
-3.83199e-11
7.76642e-10
6.34047e-11
7.70191e-10
1.75016e-10
7.45317e-10
2.93767e-10
7.00726e-10
4.16119e-10
6.35934e-10
5.37812e-10
5.51428e-10
6.54074e-10
4.48781e-10
7.59941e-10
3.30634e-10
8.50641e-10
2.00545e-10
9.22023e-10
9.7092e-10
6.27768e-11
-6.56949e-13
-3.50586e-12
-1.9657e-12
-1.27991e-11
-3.9369e-12
-1.63827e-11
-6.62452e-12
-1.53315e-11
-1.00116e-11
-1.21184e-11
-1.40081e-11
-8.73082e-12
-1.84716e-11
-6.44531e-12
-2.32301e-11
-5.9505e-12
-2.81007e-11
-7.53241e-12
-3.29002e-11
-1.12448e-11
-3.74491e-11
-1.70353e-11
-4.15706e-11
-2.48241e-11
-4.50856e-11
-3.4544e-11
-4.78058e-11
-4.61549e-11
-4.9526e-11
-5.9645e-11
-5.00187e-11
-7.50243e-11
-4.90293e-11
-9.23147e-11
-4.62731e-11
-1.11538e-10
-4.14334e-11
-1.32701e-10
-3.41606e-11
-1.55781e-10
-2.40738e-11
-1.8071e-10
-1.07652e-11
-2.0736e-10
6.1879e-12
-2.35519e-10
2.72208e-11
-2.64878e-10
5.27574e-11
-2.95002e-10
8.31918e-11
-3.25316e-10
1.18861e-10
-3.55078e-10
1.6001e-10
-3.83364e-10
2.06757e-10
-4.09054e-10
2.5904e-10
-4.30823e-10
3.16567e-10
-4.47146e-10
3.7876e-10
-4.56328e-10
4.44702e-10
-4.56546e-10
5.1309e-10
-4.45926e-10
5.82212e-10
-4.22639e-10
6.4995e-10
-3.85039e-10
7.13805e-10
-3.31799e-10
7.70961e-10
-2.62068e-10
8.18387e-10
-1.75603e-10
8.52944e-10
-7.28777e-11
8.71517e-10
4.48282e-11
8.71181e-10
1.75352e-10
8.49384e-10
3.15565e-10
8.04245e-10
4.61256e-10
7.34876e-10
6.0718e-10
6.41645e-10
7.47307e-10
5.26332e-10
8.75251e-10
3.92148e-10
9.84827e-10
2.43536e-10
1.07064e-09
1.1286e-09
8.58514e-11
-8.47767e-13
-2.6581e-12
-2.60329e-12
-1.10428e-11
-5.19151e-12
-1.37939e-11
-8.61718e-12
-1.19051e-11
-1.28397e-11
-7.89462e-12
-1.77589e-11
-3.81006e-12
-2.32286e-11
-9.74476e-13
-2.90758e-11
-1.02543e-13
-3.5119e-11
-1.48881e-12
-4.11775e-11
-5.18568e-12
-4.70748e-11
-1.11371e-11
-5.26361e-11
-1.92621e-11
-5.76819e-11
-2.94979e-11
-6.20202e-11
-4.18164e-11
-6.54386e-11
-5.62262e-11
-6.76971e-11
-7.27655e-11
-6.85217e-11
-9.14907e-11
-6.75989e-11
-1.12462e-10
-6.45729e-11
-1.35727e-10
-5.90441e-11
-1.61309e-10
-5.05699e-11
-1.89183e-10
-3.86679e-11
-2.1926e-10
-2.28204e-11
-2.51365e-10
-2.48875e-12
-2.85209e-10
2.28725e-11
-3.20362e-10
5.37992e-11
-3.56241e-10
9.07735e-11
-3.92051e-10
1.34203e-10
-4.26795e-10
1.84371e-10
-4.59224e-10
2.41375e-10
-4.87827e-10
3.05063e-10
-5.10833e-10
3.74957e-10
-5.26222e-10
4.50184e-10
-5.31773e-10
5.294e-10
-5.25144e-10
6.10751e-10
-5.03993e-10
6.91855e-10
-4.66143e-10
7.69829e-10
-4.09771e-10
8.41362e-10
-3.33601e-10
9.02828e-10
-2.37072e-10
9.50419e-10
-1.20469e-10
9.80259e-10
1.49883e-11
9.88566e-10
1.67042e-10
9.71881e-10
3.32248e-10
9.27466e-10
5.05668e-10
8.53802e-10
6.80843e-10
7.51005e-10
8.50111e-10
6.21082e-10
1.00518e-09
4.6796e-10
1.13794e-09
2.97251e-10
1.24134e-09
1.31008e-09
1.1577e-10
-1.04498e-12
-1.61251e-12
-3.26374e-12
-8.82278e-12
-6.49044e-12
-1.05662e-11
-1.06799e-11
-7.71493e-12
-1.57682e-11
-2.80614e-12
-2.16461e-11
2.06783e-12
-2.81654e-11
5.54494e-12
-3.51555e-11
6.88808e-12
-4.24393e-11
5.79571e-12
-4.98424e-11
2.21773e-12
-5.71946e-11
-3.78529e-12
-6.43261e-11
-1.21311e-11
-7.10607e-11
-2.2763e-11
-7.72071e-11
-3.56686e-11
-8.255e-11
-5.0882e-11
-8.68402e-11
-6.84753e-11
-8.97862e-11
-8.85457e-11
-9.10483e-11
-1.11201e-10
-9.02333e-11
-1.36542e-10
-8.68927e-11
-1.64648e-10
-8.05203e-11
-1.95554e-10
-7.05535e-11
-2.29227e-10
-5.63773e-11
-2.65541e-10
-3.73349e-11
-3.04249e-10
-1.27415e-11
-3.44953e-10
1.80812e-11
-3.87063e-10
5.581e-11
-4.29782e-10
1.0105e-10
-4.72038e-10
1.54293e-10
-5.12469e-10
2.15856e-10
-5.49388e-10
2.8579e-10
-5.80765e-10
3.6379e-10
-6.04223e-10
4.49092e-10
-6.17077e-10
5.40371e-10
-6.16423e-10
6.35656e-10
-5.99278e-10
7.323e-10
-5.62787e-10
8.27003e-10
-5.04474e-10
9.15901e-10
-4.22498e-10
9.94694e-10
-3.15866e-10
1.0588e-09
-1.84577e-10
1.10346e-09
-2.96684e-11
1.1238e-09
1.467e-10
1.11509e-09
3.4095e-10
1.07334e-09
5.4742e-10
9.96045e-10
7.58141e-10
8.82846e-10
9.6331e-10
7.35981e-10
1.15205e-09
5.60317e-10
1.3136e-09
3.63012e-10
1.43865e-09
1.52025e-09
1.52842e-10
-1.24637e-12
-3.65305e-13
-3.93817e-12
-6.12981e-12
-7.81711e-12
-6.68692e-12
-1.27871e-11
-2.74599e-12
-1.87612e-11
3.16588e-12
-2.56226e-11
8.92747e-12
-3.32239e-11
1.31459e-11
-4.14004e-11
1.50652e-11
-4.99836e-11
1.43791e-11
-5.88087e-11
1.10418e-11
-6.77154e-11
5.11975e-12
-7.65435e-11
-3.30357e-12
-8.51253e-11
-1.41798e-11
-9.32761e-11
-2.75159e-11
-1.00782e-10
-4.33752e-11
-1.07389e-10
-6.1869e-11
-1.12792e-10
-8.31429e-11
-1.1663e-10
-1.07362e-10
-1.18477e-10
-1.34693e-10
-1.17838e-10
-1.65286e-10
-1.14143e-10
-1.9925e-10
-1.06747e-10
-2.36624e-10
-9.49339e-11
-2.77353e-10
-7.79249e-11
-3.21256e-10
-5.48903e-11
-3.67987e-10
-2.49595e-11
-4.16996e-10
1.27396e-11
-4.67484e-10
5.90523e-11
-5.18351e-10
1.14741e-10
-5.68156e-10
1.80401e-10
-6.15046e-10
2.56377e-10
-6.56739e-10
3.4263e-10
-6.90476e-10
4.38601e-10
-7.13049e-10
5.4306e-10
-7.20882e-10
6.5398e-10
-7.10197e-10
7.68465e-10
-6.77273e-10
8.82772e-10
-6.18781e-10
9.92422e-10
-5.32144e-10
1.09238e-09
-4.15818e-10
1.17722e-09
-2.69422e-10
1.2412e-09
-9.3651e-11
1.2781e-09
1.09797e-10
1.28143e-09
3.37623e-10
1.24526e-09
5.83587e-10
1.16558e-09
8.37821e-10
1.04122e-09
1.08767e-09
8.74609e-10
1.31866e-09
6.71871e-10
1.51635e-09
4.42253e-10
1.66826e-09
1.76532e-09
1.97176e-10
-1.44807e-12
1.08344e-12
-4.61578e-12
-2.96162e-12
-9.15117e-12
-2.15273e-12
-1.49068e-11
3.00649e-12
-2.17734e-11
1.00289e-11
-2.9629e-11
1.67811e-11
-3.83309e-11
2.18478e-11
-4.7724e-11
2.44588e-11
-5.76521e-11
2.43064e-11
-6.79638e-11
2.13514e-11
-7.85133e-11
1.5668e-11
-8.91561e-11
7.33997e-12
-9.97402e-11
-3.59379e-12
-1.10093e-10
-1.71623e-11
-1.20006e-10
-3.34617e-11
-1.29229e-10
-5.26473e-11
-1.37449e-10
-7.49216e-11
-1.44291e-10
-1.00518e-10
-1.49302e-10
-1.29681e-10
-1.51943e-10
-1.62646e-10
-1.51585e-10
-1.9961e-10
-1.47501e-10
-2.40707e-10
-1.38876e-10
-2.85976e-10
-1.24803e-10
-3.35328e-10
-1.04292e-10
-3.88498e-10
-7.62838e-11
-4.45006e-10
-3.96686e-11
-5.041e-10
6.67665e-12
-5.64695e-10
6.38254e-11
-6.25303e-10
1.32746e-10
-6.83967e-10
2.1417e-10
-7.38162e-10
3.08445e-10
-7.8475e-10
4.15345e-10
-8.19948e-10
5.33856e-10
-8.39395e-10
6.61986e-10
-8.38327e-10
7.96629e-10
-8.11916e-10
9.33579e-10
-7.5573e-10
1.06768e-09
-6.66248e-10
1.19313e-09
-5.41258e-10
1.30367e-09
-3.79968e-10
1.39261e-09
-1.82595e-10
1.45214e-09
5.0273e-11
1.47322e-09
3.16545e-10
1.44698e-09
6.09815e-10
1.36707e-09
9.17739e-10
1.23095e-09
1.22379e-09
1.04119e-09
1.50841e-09
8.05617e-10
1.75192e-09
5.36382e-10
1.93749e-09
2.05322e-09
2.48484e-10
-1.64614e-12
2.72991e-12
-5.28403e-12
6.75815e-13
-1.04683e-11
3.02886e-12
-1.70003e-11
9.53453e-12
-2.47503e-11
1.77759e-11
-3.35946e-11
2.56251e-11
-4.33989e-11
3.16531e-11
-5.40214e-11
3.50814e-11
-6.53216e-11
3.5605e-11
-7.71665e-11
3.31948e-11
-8.94315e-11
2.79332e-11
-1.01995e-10
1.99049e-11
-1.14726e-10
9.13813e-12
-1.27471e-10
-4.41827e-12
-1.40037e-10
-2.08969e-11
-1.52181e-10
-4.05033e-11
-1.63596e-10
-6.3505e-11
-1.73898e-10
-9.02139e-11
-1.82616e-10
-1.20964e-10
-1.89175e-10
-1.5609e-10
-1.92889e-10
-1.95896e-10
-1.92961e-10
-2.40633e-10
-1.88475e-10
-2.90461e-10
-1.78396e-10
-3.45407e-10
-1.61571e-10
-4.05324e-10
-1.36737e-10
-4.69839e-10
-1.02539e-10
-5.38297e-10
-5.75474e-11
-6.09686e-10
-3.05743e-13
-6.82544e-10
7.05843e-11
-7.54857e-10
1.56361e-10
-8.23938e-10
2.57904e-10
-8.8629e-10
3.75487e-10
-9.37531e-10
5.08489e-10
-9.72398e-10
6.55087e-10
-9.84924e-10
8.12039e-10
-9.68865e-10
9.74663e-10
-9.18353e-10
1.13707e-09
-8.28661e-10
1.29264e-09
-6.96831e-10
1.4345e-09
-5.21816e-10
1.5553e-09
-3.03398e-10
1.64551e-09
-3.99399e-11
1.6924e-09
2.6966e-10
1.68247e-09
6.1974e-10
1.60578e-09
9.94435e-10
1.4576e-09
1.37197e-09
1.24052e-09
1.72549e-09
9.64763e-10
2.02767e-09
6.46543e-10
2.25571e-09
2.39404e-09
3.05728e-10
-1.83617e-12
4.56607e-12
-5.92844e-12
4.76687e-12
-1.174e-11
8.83742e-12
-1.90227e-11
1.68144e-11
-2.76293e-11
2.63818e-11
-3.7438e-11
3.5435e-11
-4.8326e-11
4.25421e-11
-6.01683e-11
4.6923e-11
-7.28449e-11
4.82803e-11
-8.62475e-11
4.65975e-11
-1.0028e-10
4.1967e-11
-1.14849e-10
3.44755e-11
-1.29855e-10
2.4142e-11
-1.45168e-10
1.08925e-11
-1.60621e-10
-5.44499e-12
-1.75991e-10
-2.5133e-11
-1.90984e-10
-4.8511e-11
-2.05221e-10
-7.59782e-11
-2.18217e-10
-1.0797e-10
-2.29372e-10
-1.44936e-10
-2.37958e-10
-1.87309e-10
-2.43111e-10
-2.3548e-10
-2.4382e-10
-2.89751e-10
-2.38926e-10
-3.503e-10
-2.27115e-10
-4.17133e-10
-2.06922e-10
-4.90031e-10
-1.76734e-10
-5.68486e-10
-1.34799e-10
-6.51622e-10
-7.92554e-11
-7.38087e-10
-8.19083e-12
-8.2592e-10
8.02265e-11
-9.12355e-10
1.87595e-10
-9.93659e-10
3.14905e-10
-1.06484e-09
4.62164e-10
-1.11966e-09
6.27926e-10
-1.15068e-09
8.08929e-10
-1.14987e-09
1.00001e-09
-1.10943e-09
1.19446e-09
-1.02311e-09
1.38478e-09
-8.87153e-10
1.56381e-09
-7.00846e-10
1.72461e-09
-4.64203e-10
1.85615e-09
-1.71477e-10
1.94013e-09
1.85683e-10
1.95559e-09
6.04276e-10
1.88738e-09
1.06264e-09
1.72729e-09
1.53205e-09
1.47771e-09
1.97507e-09
1.15236e-09
2.35303e-09
7.73194e-10
2.63488e-09
2.80054e-09
3.66687e-10
-2.01318e-12
6.57902e-12
-6.53269e-12
9.2849e-12
-1.29344e-11
1.5237e-11
-2.09241e-11
2.48034e-11
-3.03406e-11
3.57996e-11
-4.10669e-11
4.61629e-11
-5.29951e-11
5.44703e-11
-6.60209e-11
5.99476e-11
-8.00506e-11
6.23098e-11
-9.50077e-11
6.1556e-11
-1.10831e-10
5.77915e-11
-1.27465e-10
5.11083e-11
-1.44844e-10
4.15179e-11
-1.62876e-10
2.89227e-11
-1.81431e-10
1.31088e-11
-2.00316e-10
-6.24789e-12
-2.19263e-10
-2.95649e-11
-2.37905e-10
-5.73369e-11
-2.55762e-10
-9.01142e-11
-2.72218e-10
-1.28479e-10
-2.86514e-10
-1.73013e-10
-2.97726e-10
-2.24268e-10
-3.04758e-10
-2.82718e-10
-3.06331e-10
-3.48725e-10
-3.00981e-10
-4.22482e-10
-2.87045e-10
-5.03967e-10
-2.62663e-10
-5.9287e-10
-2.25768e-10
-6.88518e-10
-1.7409e-10
-7.89764e-10
-1.0518e-10
-8.94828e-10
-1.64825e-11
-1.00105e-09
9.44306e-11
-1.10457e-09
2.29584e-10
-1.19999e-09
3.89937e-10
-1.28001e-09
5.74731e-10
-1.33548e-09
7.80877e-10
-1.35602e-09
1.00273e-09
-1.33129e-09
1.23255e-09
-1.25292e-09
1.46176e-09
-1.11636e-09
1.6834e-09
-9.22497e-10
1.89325e-09
-6.74046e-10
2.07986e-09
-3.5809e-10
2.21644e-09
4.90994e-11
2.26963e-09
5.51089e-10
2.21747e-09
1.1148e-09
2.04623e-09
1.7033e-09
1.75763e-09
2.26367e-09
1.37064e-09
2.74001e-09
9.15447e-10
3.09007e-09
3.28863e-09
4.27358e-10
-2.17176e-12
8.7504e-12
-7.0789e-12
1.41908e-11
-1.40168e-11
2.21744e-11
-2.26502e-11
3.34379e-11
-3.28072e-11
4.59582e-11
-4.43784e-11
5.77345e-11
-5.72742e-11
6.73648e-11
-7.14162e-11
7.40885e-11
-8.67436e-11
7.76379e-11
-1.03218e-10
7.80319e-11
-1.20821e-10
7.53937e-11
-1.39539e-10
6.98242e-11
-1.59353e-10
6.13296e-11
-1.8022e-10
4.97886e-11
-2.02055e-10
3.49438e-11
-2.24713e-10
1.6409e-11
-2.4796e-10
-6.31818e-12
-2.7146e-10
-3.38371e-11
-2.94747e-10
-6.68267e-11
-3.17206e-10
-1.06019e-10
-3.38054e-10
-1.52166e-10
-3.56317e-10
-2.06005e-10
-3.7082e-10
-2.68214e-10
-3.80174e-10
-3.39369e-10
-3.82768e-10
-4.19889e-10
-3.76759e-10
-5.09978e-10
-3.60064e-10
-6.09565e-10
-3.30343e-10
-7.18237e-10
-2.84966e-10
-8.35141e-10
-2.20971e-10
-9.58824e-10
-1.35063e-10
-1.08696e-09
-2.37322e-11
-1.21591e-09
1.16319e-10
-1.34004e-09
2.87483e-10
-1.45117e-09
4.90171e-10
-1.53816e-09
7.21794e-10
-1.58764e-09
9.76247e-10
-1.58574e-09
1.2444e-09
-1.52108e-09
1.51589e-09
-1.38785e-09
1.78422e-09
-1.19083e-09
2.05221e-09
-9.42037e-10
2.311e-09
-6.16876e-10
2.52055e-09
-1.60451e-10
2.62646e-09
4.45177e-10
2.60043e-09
1.14083e-09
2.41958e-09
1.88415e-09
2.08368e-09
2.59956e-09
1.61987e-09
3.20383e-09
1.07011e-09
3.63983e-09
3.8775e-09
4.81235e-10
-2.30622e-12
1.10562e-11
-7.54812e-12
1.94321e-11
-1.49508e-11
2.95776e-11
-2.41429e-11
4.26313e-11
-3.49452e-11
5.67608e-11
-4.7259e-11
7.0047e-11
-6.10173e-11
8.11213e-11
-7.61735e-11
8.9244e-11
-9.27058e-11
9.41706e-11
-1.1062e-10
9.59462e-11
-1.29944e-10
9.47171e-11
-1.50719e-10
9.05977e-11
-1.72982e-10
8.35912e-11
-1.96748e-10
7.35548e-11
-2.21994e-10
6.0189e-11
-2.48629e-10
4.30437e-11
-2.76475e-10
2.15283e-11
-3.05237e-10
-5.07299e-12
-3.34484e-10
-3.75803e-11
-3.6361e-10
-7.68937e-11
-3.91817e-10
-1.23959e-10
-4.18089e-10
-1.79731e-10
-4.41175e-10
-2.45128e-10
-4.59572e-10
-3.20974e-10
-4.71525e-10
-4.0794e-10
-4.75022e-10
-5.06481e-10
-4.67803e-10
-6.16782e-10
-4.47328e-10
-7.38709e-10
-4.10713e-10
-8.71756e-10
-3.54594e-10
-1.01494e-09
-2.74975e-10
-1.16658e-09
-1.67179e-10
-1.3237e-09
-2.61822e-11
-1.48104e-09
1.52417e-10
-1.62977e-09
3.70908e-10
-1.75665e-09
6.27778e-10
-1.84451e-09
9.16713e-10
-1.87468e-09
1.22675e-09
-1.83112e-09
1.5438e-09
-1.7049e-09
1.86126e-09
-1.50828e-09
2.19524e-09
-1.27603e-09
2.54599e-09
-9.67623e-10
2.85267e-09
-4.67127e-10
3.0252e-09
2.72645e-10
3.03722e-09
1.12881e-09
2.84944e-09
2.07192e-09
2.4559e-09
2.9931e-09
1.8966e-09
3.76312e-09
1.23045e-09
4.30598e-09
4.5892e-09
5.18755e-10
-2.41063e-12
1.34664e-11
-7.92107e-12
2.49426e-11
-1.56981e-11
3.73554e-11
-2.53402e-11
5.2274e-11
-3.66642e-11
6.80842e-11
-4.95864e-11
8.29675e-11
-6.40669e-11
9.56005e-11
-8.00964e-11
1.05273e-10
-9.76969e-11
1.11771e-10
-1.16924e-10
1.15172e-10
-1.3786e-10
1.15653e-10
-1.60608e-10
1.13345e-10
-1.8527e-10
1.08254e-10
-2.11935e-10
1.00219e-10
-2.40648e-10
8.89024e-11
-2.71393e-10
7.37897e-11
-3.0406e-10
5.4197e-11
-3.38418e-10
2.92847e-11
-3.74077e-10
-1.92177e-12
-4.10458e-10
-4.05139e-11
-4.46756e-10
-8.76598e-11
-4.81913e-10
-1.44573e-10
-5.1459e-10
-2.12452e-10
-5.43155e-10
-2.92411e-10
-5.65693e-10
-3.85405e-10
-5.80024e-10
-4.92148e-10
-5.83743e-10
-6.13061e-10
-5.74209e-10
-7.48242e-10
-5.48456e-10
-8.97508e-10
-5.02944e-10
-1.06045e-09
-4.33153e-10
-1.23637e-09
-3.33181e-10
-1.42368e-09
-1.95848e-10
-1.61838e-09
-1.38728e-11
-1.81174e-09
2.17799e-10
-1.98832e-09
4.99583e-10
-2.12629e-09
8.25889e-10
-2.20099e-09
1.1852e-09
-2.19043e-09
1.55503e-09
-2.07474e-09
1.92463e-09
-1.87789e-09
2.33082e-09
-1.68221e-09
2.79328e-09
-1.43008e-09
3.2188e-09
-8.9265e-10
3.46225e-09
2.91889e-11
3.52201e-09
1.06905e-09
3.33225e-09
2.26169e-09
2.86818e-09
3.45717e-09
2.1913e-09
4.44e-09
1.385e-09
5.11228e-09
5.4469e-09
5.27292e-10
-2.47914e-12
1.59454e-11
-8.17803e-12
3.0642e-11
-1.62188e-11
4.53969e-11
-2.61766e-11
6.22319e-11
-3.78691e-11
7.97762e-11
-5.12314e-11
9.63293e-11
-6.6256e-11
1.10625e-10
-8.29745e-11
1.21991e-10
-1.01457e-10
1.30253e-10
-1.21814e-10
1.35529e-10
-1.44191e-10
1.38031e-10
-1.68759e-10
1.37914e-10
-1.95698e-10
1.35192e-10
-2.25175e-10
1.29696e-10
-2.57323e-10
1.21052e-10
-2.92213e-10
1.08682e-10
-3.29823e-10
9.18078e-11
-3.7e-10
6.94596e-11
-4.12414e-10
4.04912e-11
-4.56524e-10
3.598e-12
-5.01527e-10
-4.26552e-11
-5.46312e-10
-9.97883e-11
-5.89432e-10
-1.69335e-10
-6.29085e-10
-2.52759e-10
-6.63146e-10
-3.51342e-10
-6.89228e-10
-4.66065e-10
-7.04773e-10
-5.97514e-10
-7.07121e-10
-7.45892e-10
-6.9344e-10
-9.11187e-10
-6.60363e-10
-1.09353e-09
-6.03205e-10
-1.29353e-09
-5.1493e-10
-1.51195e-09
-3.85704e-10
-1.7476e-09
-2.04351e-10
-1.9931e-09
3.81371e-11
-2.23082e-09
3.44628e-10
-2.43278e-09
7.10896e-10
-2.56725e-09
1.13038e-09
-2.60992e-09
1.58749e-09
-2.53184e-09
2.01897e-09
-2.30937e-09
2.5104e-09
-2.17364e-09
3.09693e-09
-2.0166e-09
3.6459e-09
-1.44163e-09
3.9282e-09
-2.53102e-10
4.03607e-09
9.61172e-10
3.85659e-09
2.44117e-09
3.30309e-09
4.01066e-09
2.48477e-09
5.25833e-09
1.51667e-09
6.08037e-09
6.47095e-09
4.92629e-10
-2.50584e-12
1.84514e-11
-8.29886e-12
3.64356e-11
-1.64719e-11
5.35705e-11
-2.6585e-11
7.23458e-11
-3.8462e-11
9.16544e-11
-5.20616e-11
1.0993e-10
-6.74116e-11
1.25975e-10
-8.45876e-11
1.39166e-10
-1.03712e-10
1.49377e-10
-1.24955e-10
1.56773e-10
-1.48531e-10
1.61607e-10
-1.74687e-10
1.64069e-10
-2.03686e-10
1.64191e-10
-2.35788e-10
1.61798e-10
-2.71226e-10
1.56491e-10
-3.10175e-10
1.47632e-10
-3.52716e-10
1.34348e-10
-3.98793e-10
1.15534e-10
-4.48157e-10
8.98569e-11
-5.0032e-10
5.57634e-11
-5.54486e-10
1.15129e-11
-6.09479e-10
-4.47964e-11
-6.63704e-10
-1.15112e-10
-7.15128e-10
-2.01335e-10
-7.61321e-10
-3.05147e-10
-7.99572e-10
-4.27812e-10
-8.27082e-10
-5.70003e-10
-8.41165e-10
-7.31806e-10
-8.39305e-10
-9.13046e-10
-8.18741e-10
-1.1141e-09
-7.75237e-10
-1.33704e-09
-7.01009e-10
-1.58618e-09
-5.83076e-10
-1.86553e-09
-4.05051e-10
-2.17112e-09
-1.53024e-10
-2.48284e-09
1.77752e-10
-2.76356e-09
5.80564e-10
-2.97007e-09
1.04754e-09
-3.0769e-09
1.60805e-09
-3.09234e-09
2.25795e-09
-2.95928e-09
2.90462e-09
-2.82031e-09
3.5842e-09
-2.69618e-09
4.21736e-09
-2.07479e-09
4.3343e-09
-3.70045e-10
4.58396e-09
7.11508e-10
4.38978e-09
2.63535e-09
3.71423e-09
4.68622e-09
2.74375e-09
6.22881e-09
1.60305e-09
7.22108e-09
7.67096e-09
4.03039e-10
-2.48502e-12
2.09369e-11
-8.26333e-12
4.22144e-11
-1.64161e-11
6.17243e-11
-2.64982e-11
8.24301e-11
-3.83457e-11
1.03505e-10
-5.1944e-11
1.2353e-10
-6.7358e-11
1.41389e-10
-8.47101e-11
1.56519e-10
-1.04178e-10
1.68846e-10
-1.25996e-10
1.78592e-10
-1.50452e-10
1.86062e-10
-1.77872e-10
1.91487e-10
-2.08611e-10
1.94929e-10
-2.43031e-10
1.9622e-10
-2.81478e-10
1.9494e-10
-3.24247e-10
1.904e-10
-3.71542e-10
1.8164e-10
-4.23423e-10
1.67414e-10
-4.79748e-10
1.46185e-10
-5.40101e-10
1.16118e-10
-6.03691e-10
7.5104e-11
-6.69287e-10
2.08004e-11
-7.35094e-10
-4.93023e-11
-7.98767e-10
-1.37661e-10
-8.57428e-10
-2.46485e-10
-9.07845e-10
-3.77393e-10
-9.46743e-10
-5.31104e-10
-9.7122e-10
-7.07329e-10
-9.79075e-10
-9.05192e-10
-9.68584e-10
-1.12459e-09
-9.36878e-10
-1.36874e-09
-8.76344e-10
-1.64671e-09
-7.70598e-10
-1.97128e-09
-5.96093e-10
-2.34563e-09
-3.32515e-10
-2.74642e-09
2.31237e-11
-3.1192e-09
4.52396e-10
-3.39934e-09
9.18301e-10
-3.5428e-09
1.34997e-09
-3.524e-09
2.03898e-09
-3.64829e-09
2.81364e-09
-3.59496e-09
3.68776e-09
-3.5703e-09
4.47128e-09
-2.85832e-09
4.80857e-09
-7.07333e-10
4.91675e-09
6.03332e-10
4.72066e-09
2.83144e-09
4.01841e-09
5.38847e-09
2.92113e-09
7.3261e-09
1.6172e-09
8.525e-09
9.03082e-09
2.57341e-10
-2.41117e-12
2.33483e-11
-8.05176e-12
4.78553e-11
-1.60117e-11
6.96859e-11
-2.58521e-11
9.22733e-11
-3.74265e-11
1.15081e-10
-5.07488e-11
1.36853e-10
-6.59226e-11
1.56563e-10
-8.31184e-11
1.73716e-10
-1.02572e-10
1.88301e-10
-1.24583e-10
2.00602e-10
-1.49512e-10
2.10988e-10
-1.7777e-10
2.19744e-10
-2.09809e-10
2.2697e-10
-2.46104e-10
2.32517e-10
-2.87123e-10
2.35958e-10
-3.33295e-10
2.3657e-10
-3.84965e-10
2.3331e-10
-4.42338e-10
2.2479e-10
-5.05407e-10
2.09256e-10
-5.73852e-10
1.84563e-10
-6.46921e-10
1.48173e-10
-7.23299e-10
9.71806e-11
-8.01012e-10
2.84138e-11
-8.77299e-10
-6.13728e-11
-9.4868e-10
-1.75103e-10
-1.01114e-09
-3.1493e-10
-1.06055e-09
-4.81691e-10
-1.09332e-09
-6.74568e-10
-1.10711e-09
-8.914e-10
-1.10141e-09
-1.13029e-09
-1.0762e-09
-1.39394e-09
-1.02567e-09
-1.69725e-09
-9.30608e-10
-2.06634e-09
-7.57778e-10
-2.51846e-09
-4.72522e-10
-3.03168e-09
-6.95534e-11
-3.52217e-09
4.06998e-10
-3.87589e-09
8.85975e-10
-4.02178e-09
1.32449e-09
-3.96252e-09
1.34578e-09
-3.66958e-09
1.65869e-09
-3.90787e-09
2.25332e-09
-4.16494e-09
3.02566e-09
-3.63066e-09
4.0624e-09
-1.74407e-09
4.68983e-09
-2.41038e-11
4.85534e-09
2.66593e-09
4.19131e-09
6.0525e-09
2.96206e-09
8.55535e-09
1.52741e-09
9.95965e-09
1.04822e-08
7.60405e-11
-2.27922e-12
2.56276e-11
-7.64617e-12
5.32226e-11
-1.52228e-11
7.72645e-11
-2.45882e-11
1.0164e-10
-3.56175e-11
1.26111e-10
-4.83545e-11
1.49589e-10
-6.2942e-11
1.71151e-10
-7.95993e-11
1.90375e-10
-9.86189e-11
2.0732e-10
-1.20365e-10
2.22346e-10
-1.4527e-10
2.35891e-10
-1.73832e-10
2.48306e-10
-2.06605e-10
2.59744e-10
-2.44177e-10
2.70089e-10
-2.87149e-10
2.78929e-10
-3.36098e-10
2.85518e-10
-3.91532e-10
2.88745e-10
-4.5383e-10
2.8709e-10
-5.2315e-10
2.78577e-10
-5.99307e-10
2.60721e-10
-6.81628e-10
2.30495e-10
-7.68774e-10
1.84327e-10
-8.58556e-10
1.18196e-10
-9.47821e-10
2.78935e-11
-1.03237e-09
-9.05559e-11
-1.10718e-09
-2.4012e-10
-1.16686e-09
-4.22006e-10
-1.20643e-09
-6.34998e-10
-1.22232e-09
-8.75516e-10
-1.21389e-09
-1.13872e-09
-1.18638e-09
-1.42145e-09
-1.14073e-09
-1.74291e-09
-1.05714e-09
-2.14992e-09
-8.89533e-10
-2.68607e-09
-5.81365e-10
-3.33985e-09
-1.09695e-10
-3.99384e-09
4.68041e-10
-4.45363e-09
9.99241e-10
-4.55298e-09
1.28577e-09
-4.24905e-09
1.37577e-09
-3.75957e-09
1.27517e-09
-3.80727e-09
1.91844e-09
-4.80821e-09
3.17821e-09
-4.89043e-09
4.10929e-09
-2.67516e-09
4.62159e-09
-5.36392e-10
4.64712e-09
2.6404e-09
4.00616e-09
6.69346e-09
2.67849e-09
9.88301e-09
1.22947e-09
1.14087e-08
1.18164e-08
-1.04778e-10
-2.08482e-12
2.77122e-11
-7.03145e-12
5.81699e-11
-1.40192e-11
8.42534e-11
-2.26561e-11
1.10277e-10
-3.28429e-11
1.36296e-10
-4.46538e-11
1.61399e-10
-5.82708e-11
1.84769e-10
-7.39599e-11
2.06065e-10
-9.20664e-11
2.25425e-10
-1.13014e-10
2.4329e-10
-1.37307e-10
2.60182e-10
-1.65527e-10
2.76528e-10
-1.98326e-10
2.92545e-10
-2.36412e-10
3.08175e-10
-2.8052e-10
3.23037e-10
-3.31388e-10
3.36388e-10
-3.89708e-10
3.47067e-10
-4.5606e-10
3.53442e-10
-5.30804e-10
3.5332e-10
-6.13946e-10
3.43865e-10
-7.04958e-10
3.21508e-10
-8.02546e-10
2.81913e-10
-9.04404e-10
2.20054e-10
-1.00701e-09
1.30498e-10
-1.10556e-09
7.99681e-12
-1.19402e-09
-1.51664e-10
-1.26566e-09
-3.50366e-10
-1.31379e-09
-5.86868e-10
-1.33265e-09
-8.56647e-10
-1.31763e-09
-1.15375e-09
-1.26888e-09
-1.47019e-09
-1.22449e-09
-1.78729e-09
-1.16302e-09
-2.21139e-09
-1.02093e-09
-2.82816e-09
-7.14759e-10
-3.64602e-09
-1.69972e-10
-4.53862e-09
5.74517e-10
-5.19812e-09
1.36131e-09
-5.33977e-09
1.65602e-09
-4.54377e-09
1.46361e-09
-3.56716e-09
8.5649e-10
-3.20015e-09
1.46506e-09
-5.41678e-09
3.05506e-09
-6.48044e-09
3.68401e-09
-3.3041e-09
3.46192e-09
-3.143e-10
3.52798e-09
2.57434e-09
2.87693e-09
7.34451e-09
1.60515e-09
1.11548e-08
4.78978e-10
1.25348e-08
1.25276e-08
-2.32204e-10
-1.82476e-12
2.95368e-11
-6.19652e-12
6.25425e-11
-1.23778e-11
9.04344e-11
-2.00164e-11
1.17913e-10
-2.90425e-11
1.4532e-10
-3.95609e-11
1.71918e-10
-5.17903e-11
1.97e-10
-6.60382e-11
2.20313e-10
-8.26961e-11
2.42081e-10
-1.02241e-10
2.62834e-10
-1.25243e-10
2.83184e-10
-1.52361e-10
3.03647e-10
-1.84342e-10
3.24525e-10
-2.22003e-10
3.45836e-10
-2.66219e-10
3.67255e-10
-3.17896e-10
3.88066e-10
-3.77924e-10
4.07097e-10
-4.47108e-10
4.22625e-10
-5.26058e-10
4.32269e-10
-6.15031e-10
4.32837e-10
-7.13722e-10
4.20197e-10
-8.20988e-10
3.89177e-10
-9.34546e-10
3.33613e-10
-1.05071e-09
2.46666e-10
-1.16427e-09
1.21556e-10
-1.26868e-09
-4.72546e-11
-1.35657e-09
-2.62477e-10
-1.42074e-09
-5.22693e-10
-1.45509e-09
-8.22298e-10
-1.45523e-09
-1.15362e-09
-1.41133e-09
-1.51409e-09
-1.28683e-09
-1.9118e-09
-1.22822e-09
-2.27e-09
-1.2631e-09
-2.79328e-09
-1.05949e-09
-3.84963e-09
-4.7271e-10
-5.12541e-09
3.8641e-10
-6.05724e-09
1.35334e-09
-6.3067e-09
2.13665e-09
-5.32709e-09
1.3803e-09
-2.81081e-09
-4.95966e-10
-1.32389e-09
-1.95052e-10
-5.7177e-09
9.13412e-10
-7.5889e-09
3.27366e-10
-2.71806e-09
-4.37908e-10
4.50969e-10
-3.94332e-10
2.53077e-09
-9.71928e-10
7.92211e-09
-1.62125e-09
1.18041e-08
-1.37906e-09
1.22927e-08
1.13716e-08
-2.23018e-10
-1.49727e-12
3.10342e-11
-5.13508e-12
6.61812e-11
-1.02845e-11
9.55826e-11
-1.66445e-11
1.24271e-10
-2.41778e-11
1.52852e-10
-3.30191e-11
1.8076e-10
-4.34183e-11
2.074e-10
-5.57162e-11
2.32609e-10
-7.03417e-11
2.56705e-10
-8.78175e-11
2.8031e-10
-1.08768e-10
3.04135e-10
-1.33918e-10
3.28798e-10
-1.64095e-10
3.54702e-10
-2.0022e-10
3.81961e-10
-2.43302e-10
4.10336e-10
-2.94413e-10
4.39177e-10
-3.54649e-10
4.67333e-10
-4.25062e-10
4.9304e-10
-5.06549e-10
5.13754e-10
-5.99678e-10
5.25963e-10
-7.04454e-10
5.24969e-10
-8.19999e-10
5.04721e-10
-9.44209e-10
4.57823e-10
-1.07343e-09
3.75891e-10
-1.20237e-09
2.50493e-10
-1.32447e-09
7.4843e-11
-1.43293e-09
-1.54012e-10
-1.52295e-09
-4.32671e-10
-1.59438e-09
-7.50861e-10
-1.6537e-09
-1.0943e-09
-1.71865e-09
-1.44915e-09
-1.8155e-09
-1.81495e-09
-1.84557e-09
-2.23993e-09
-1.79434e-09
-2.84452e-09
-1.78631e-09
-3.85765e-09
-1.38633e-09
-5.52539e-09
-4.55585e-10
-6.98798e-09
5.04419e-10
-7.26671e-09
1.23512e-09
-6.05778e-09
1.29996e-09
-2.87565e-09
-3.60388e-09
3.57994e-09
-4.01141e-09
-5.31017e-09
-4.18176e-09
-7.41856e-09
-6.92619e-09
2.63691e-11
-9.02766e-09
2.55244e-09
-9.77077e-09
3.27386e-09
-9.35949e-09
7.51082e-09
-8.79736e-09
1.1242e-08
-4.94126e-09
8.43655e-09
6.34428e-09
8.60365e-11
-1.1023e-12
3.21371e-11
-3.84634e-12
6.89259e-11
-7.73655e-12
9.94714e-11
-1.25343e-11
1.29068e-10
-1.82378e-11
1.58556e-10
-2.50082e-11
1.87532e-10
-3.31184e-11
2.1551e-10
-4.29328e-11
2.42423e-10
-5.49069e-11
2.68679e-10
-6.95967e-11
2.95001e-10
-8.76649e-11
3.22204e-10
-1.09886e-10
3.51019e-10
-1.37151e-10
3.81966e-10
-1.70468e-10
4.15278e-10
-2.10965e-10
4.50832e-10
-2.59871e-10
4.88081e-10
-3.18488e-10
5.25949e-10
-3.88125e-10
5.62677e-10
-4.69994e-10
5.95623e-10
-5.65026e-10
6.20995e-10
-6.73608e-10
6.33551e-10
-7.95233e-10
6.26344e-10
-9.28073e-10
5.90662e-10
-1.0686e-09
5.16416e-10
-1.21143e-09
3.93323e-10
-1.34973e-09
2.13151e-10
-1.47668e-09
-2.70731e-11
-1.58795e-09
-3.21395e-10
-1.68568e-09
-6.53132e-10
-1.78257e-09
-9.97404e-10
-1.90144e-09
-1.33028e-09
-2.0612e-09
-1.65518e-09
-2.33971e-09
-1.96143e-09
-2.7815e-09
-2.40272e-09
-3.06613e-09
-3.57302e-09
-3.16469e-09
-5.42682e-09
-2.35121e-09
-7.80147e-09
-1.89786e-09
-7.72006e-09
-2.73373e-09
-5.22192e-09
-2.42678e-09
-3.1826e-09
4.68439e-10
6.84724e-10
-1.07004e-08
5.85871e-09
-1.06844e-08
-7.43463e-09
-1.68292e-08
6.17126e-09
-2.1299e-08
7.02223e-09
-2.37676e-08
5.74241e-09
-1.9962e-08
3.7053e-09
-1.12075e-08
2.48744e-09
-4.66894e-09
1.898e-09
1.28788e-09
3.87453e-10
-6.41552e-13
3.27794e-11
-2.33605e-12
7.06206e-11
-4.74459e-12
1.01879e-10
-7.70254e-12
1.32026e-10
-1.12444e-11
1.621e-10
-1.55517e-11
1.9184e-10
-2.09109e-11
2.20869e-10
-2.76984e-11
2.49209e-10
-3.63838e-11
2.77365e-10
-4.75385e-11
3.06156e-10
-6.18438e-11
3.3651e-10
-8.0101e-11
3.69275e-10
-1.03242e-10
4.05106e-10
-1.3234e-10
4.44374e-10
-1.68615e-10
4.87106e-10
-2.13434e-10
5.329e-10
-2.68291e-10
5.80805e-10
-3.34756e-10
6.29139e-10
-4.14372e-10
6.75235e-10
-5.08472e-10
7.15095e-10
-6.17903e-10
7.42985e-10
-7.42623e-10
7.51066e-10
-8.81192e-10
7.2923e-10
-1.03027e-09
6.65488e-10
-1.1843e-09
5.4736e-10
-1.33591e-09
3.64763e-10
-1.47742e-09
1.14437e-10
-1.60388e-09
-1.94939e-10
-1.71773e-09
-5.39283e-10
-1.83303e-09
-8.82108e-10
-1.98764e-09
-1.17566e-09
-2.25055e-09
-1.39227e-09
-2.72819e-09
-1.48379e-09
-3.47611e-09
-1.6548e-09
-4.59158e-09
-2.45756e-09
-5.18493e-09
-4.83347e-09
-4.60059e-09
-8.38581e-09
-5.03452e-09
-7.28613e-09
-6.03887e-09
-4.21757e-09
-1.00386e-08
8.1709e-10
-8.60047e-09
-7.53369e-10
-7.25319e-09
4.51143e-09
-1.63328e-08
1.64495e-09
-1.24605e-08
2.299e-09
-9.13747e-09
3.69918e-09
-6.90009e-09
3.50503e-09
-3.86693e-09
6.72135e-10
-1.87811e-09
4.98618e-10
-7.03428e-10
7.23315e-10
5.58199e-10
2.62572e-11
-1.23817e-13
3.29041e-11
-6.1808e-13
7.11152e-11
-1.33521e-12
1.02597e-10
-2.19172e-12
1.32884e-10
-3.25662e-12
1.63166e-10
-4.72374e-12
1.93307e-10
-6.88238e-12
2.23027e-10
-1.01086e-11
2.52435e-10
-1.48694e-11
2.82125e-10
-2.17305e-11
3.13017e-10
-3.13684e-11
3.46148e-10
-4.4584e-11
3.82491e-10
-6.2321e-11
4.22841e-10
-8.56831e-11
4.67733e-10
-1.15951e-10
5.17372e-10
-1.54597e-10
5.71547e-10
-2.03284e-10
6.29493e-10
-2.63827e-10
6.89682e-10
-3.38109e-10
7.49516e-10
-4.27915e-10
8.04899e-10
-5.34639e-10
8.49709e-10
-6.58845e-10
8.75274e-10
-7.99667e-10
8.70056e-10
-9.54124e-10
8.19943e-10
-1.11654e-09
7.09769e-10
-1.27858e-09
5.26805e-10
-1.43077e-09
2.66628e-10
-1.56545e-09
-6.02575e-11
-1.68042e-09
-4.2432e-10
-1.78002e-09
-7.82501e-10
-1.89405e-09
-1.06163e-09
-2.07611e-09
-1.21022e-09
-2.58257e-09
-9.77319e-10
-3.75477e-09
-4.82599e-10
-5.94298e-09
-2.69349e-10
-7.5619e-09
-3.21456e-09
-5.77512e-09
-1.01726e-08
-7.48313e-09
-5.57813e-09
-9.89368e-09
-1.80701e-09
-9.47939e-09
4.02803e-10
-1.14522e-08
1.21941e-09
-4.35182e-09
-2.58893e-09
-3.63919e-09
9.32313e-10
-4.39806e-09
3.05787e-09
-3.87802e-09
3.17914e-09
-1.8451e-09
1.47211e-09
-1.35649e-09
1.83518e-10
-9.03782e-10
4.59145e-11
-4.10977e-10
2.30509e-10
2.47184e-10
-9.99615e-11
4.48869e-13
3.24556e-11
1.28212e-12
7.02825e-11
2.44507e-12
1.01436e-10
3.92721e-12
1.31404e-10
5.62681e-12
1.61467e-10
7.34654e-12
1.91586e-10
8.80605e-12
2.21566e-10
9.64491e-12
2.51596e-10
9.41835e-12
2.82352e-10
7.5886e-12
3.14847e-10
3.51283e-12
3.50224e-10
-3.57975e-12
3.89584e-10
-1.46068e-11
4.33868e-10
-3.06613e-11
4.83787e-10
-5.30421e-11
5.39753e-10
-8.32854e-11
6.01789e-10
-1.23181e-10
6.69385e-10
-1.74762e-10
7.41261e-10
-2.40255e-10
8.15013e-10
-3.21949e-10
8.86595e-10
-4.2192e-10
9.49678e-10
-5.41587e-10
9.9494e-10
-6.81053e-10
1.00952e-09
-8.3822e-10
9.7711e-10
-1.00781e-09
8.79356e-10
-1.18068e-09
6.99667e-10
-1.34466e-09
4.30606e-10
-1.48903e-09
8.41125e-11
-1.60403e-09
-3.09314e-10
-1.66488e-09
-7.21648e-10
-1.62223e-09
-1.10429e-09
-1.4597e-09
-1.37274e-09
-1.53031e-09
-9.06706e-10
-2.33753e-09
3.24625e-10
-5.17106e-09
2.56418e-09
-8.52749e-09
1.41866e-10
-4.6078e-09
-1.40923e-08
-1.69619e-09
-8.48974e-09
-7.63282e-09
4.12961e-09
-2.47967e-09
-4.75035e-09
-3.56652e-11
-1.2246e-09
-3.01721e-09
3.92621e-10
-4.63257e-09
2.54767e-09
-3.74158e-09
2.16689e-09
-2.07089e-09
1.50845e-09
-1.08451e-09
4.85732e-10
-7.80529e-10
-1.2046e-10
-5.64925e-10
-1.69689e-10
-3.25343e-10
-9.07367e-12
7.52144e-11
-1.53373e-10
1.07956e-12
3.13762e-11
3.34815e-12
6.80142e-11
6.54139e-12
9.82435e-11
1.05569e-11
1.27389e-10
1.52641e-11
1.56759e-10
2.04697e-11
1.8638e-10
2.59135e-11
2.16121e-10
3.12674e-11
2.46241e-10
3.61301e-11
2.77489e-10
4.00173e-11
3.10961e-10
4.23451e-11
3.47897e-10
4.2412e-11
3.89516e-10
3.93696e-11
4.3691e-10
3.21846e-11
4.90974e-10
1.95929e-11
5.52347e-10
5.43021e-14
6.21327e-10
-2.82891e-11
6.97725e-10
-6.7653e-11
7.80621e-10
-1.20597e-10
8.67955e-10
-1.89965e-10
9.55965e-10
-2.78684e-10
1.0384e-09
-3.89417e-10
1.10567e-09
-5.23923e-10
1.14403e-09
-6.82077e-10
1.13526e-09
-8.60536e-10
1.05782e-09
-1.05098e-09
8.90108e-10
-1.23818e-09
6.17803e-10
-1.40249e-09
2.48424e-10
-1.5461e-09
-1.65696e-10
-1.58928e-09
-6.78471e-10
-1.43866e-09
-1.25491e-09
-5.37891e-10
-2.27351e-09
2.68058e-10
-1.71266e-09
1.61803e-09
-1.02534e-09
2.23617e-09
1.94604e-09
-4.86475e-09
7.24278e-09
-2.52888e-09
-1.64281e-08
4.95635e-09
-1.5975e-08
-2.44498e-09
1.15309e-08
-3.10488e-09
-4.09045e-09
-2.79695e-09
-1.53252e-09
-4.3253e-09
1.92097e-09
-3.40948e-09
1.63186e-09
-2.2946e-09
1.05201e-09
-1.22565e-09
4.39494e-10
-6.48402e-10
-9.15107e-11
-4.60117e-10
-3.08745e-10
-3.70246e-10
-2.5956e-10
-2.69433e-10
-1.09887e-10
-1.90198e-11
-1.75199e-10
1.73036e-12
2.96461e-11
5.52151e-12
6.42229e-11
1.08663e-11
9.28984e-11
1.75656e-11
1.2069e-10
2.5468e-11
1.48857e-10
3.43937e-11
1.77454e-10
4.41164e-11
2.06397e-10
5.4357e-11
2.35999e-10
6.47778e-11
2.67068e-10
7.49722e-11
3.00767e-10
8.44502e-11
3.38419e-10
9.26169e-11
3.81349e-10
9.87387e-11
4.30789e-10
1.01896e-10
4.87818e-10
1.00928e-10
5.53316e-10
9.43689e-11
6.27888e-10
8.03653e-11
7.11731e-10
5.65999e-11
8.04386e-10
2.022e-11
9.04331e-10
-3.21791e-11
1.00836e-09
-1.04559e-10
1.11078e-09
-2.01237e-10
1.20235e-09
-3.2652e-10
1.26931e-09
-4.83889e-10
1.29263e-09
-6.74549e-10
1.24848e-09
-8.95021e-10
1.11058e-09
-1.13213e-09
8.54918e-10
-1.35402e-09
4.7031e-10
-1.48857e-09
-3.11418e-11
-1.56941e-09
-5.97635e-10
-1.61669e-09
-1.20762e-09
-3.49156e-11
-3.85529e-09
1.36624e-09
-3.11381e-09
4.14581e-09
-3.80491e-09
1.03062e-08
-4.21434e-09
1.32067e-08
4.34223e-09
3.85385e-10
-3.60678e-09
-9.00843e-09
-6.58115e-09
2.59202e-10
2.26331e-09
-1.61218e-09
-2.21907e-09
-2.69037e-09
-4.5433e-10
-2.13034e-09
1.36093e-09
-1.57963e-09
1.08115e-09
-9.36692e-10
4.09064e-10
-4.77237e-10
-1.99604e-11
-2.78043e-10
-2.90705e-10
-2.43925e-10
-3.42863e-10
-2.46687e-10
-2.56798e-10
-2.22843e-10
-1.33731e-10
-5.87904e-11
-1.83072e-10
2.40252e-12
2.72437e-11
7.76043e-12
5.88653e-11
1.5324e-11
8.53347e-11
2.47974e-11
1.11216e-10
3.60109e-11
1.37643e-10
4.88084e-11
1.64656e-10
6.30111e-11
1.92195e-10
7.84049e-11
2.20607e-10
9.47345e-11
2.5074e-10
1.11696e-10
2.83806e-10
1.28926e-10
3.21189e-10
1.45975e-10
3.64301e-10
1.62274e-10
4.14493e-10
1.77077e-10
4.73016e-10
1.89403e-10
5.40987e-10
1.97948e-10
6.19339e-10
2.00978e-10
7.087e-10
1.96193e-10
8.09172e-10
1.80577e-10
9.19947e-10
1.50217e-10
1.03872e-09
1.00133e-10
1.16086e-09
2.40962e-11
1.27839e-09
-8.5432e-11
1.37884e-09
-2.37229e-10
1.44443e-09
-4.4056e-10
1.45181e-09
-7.02399e-10
1.37243e-09
-1.01985e-09
1.17238e-09
-1.36832e-09
8.18773e-10
-1.7124e-09
3.12943e-10
-1.60856e-09
-7.01482e-10
-1.15872e-09
-1.65746e-09
-1.73805e-09
-3.27595e-09
-2.22261e-10
-4.62961e-09
-4.15018e-10
-3.61215e-09
-4.20173e-09
-4.27626e-10
7.96886e-09
-7.82836e-09
-9.1983e-10
5.28191e-09
-6.42615e-09
-1.07483e-09
-1.4699e-09
-2.69294e-09
-1.14633e-09
-2.54264e-09
-1.09458e-09
-5.06082e-10
-5.62798e-10
8.29148e-10
-1.59773e-10
6.78125e-10
6.29986e-12
2.42991e-10
5.89192e-11
-7.25798e-11
7.16271e-12
-2.38949e-10
-8.25246e-11
-2.53176e-10
-1.51955e-10
-1.87368e-10
-1.78951e-10
-1.06735e-10
-5.47595e-11
-1.82982e-10
3.07667e-12
2.41665e-11
1.0008e-11
5.19338e-11
1.98023e-11
7.55416e-11
3.20693e-11
9.89506e-11
4.66268e-11
1.23086e-10
6.33507e-11
1.47932e-10
8.21211e-11
1.73425e-10
1.02803e-10
1.99928e-10
1.25241e-10
2.28304e-10
1.49259e-10
2.59788e-10
1.74646e-10
2.958e-10
2.01139e-10
3.37808e-10
2.28378e-10
3.87256e-10
2.5586e-10
4.45536e-10
2.82868e-10
5.1398e-10
3.08367e-10
5.93838e-10
3.30879e-10
6.86186e-10
3.48298e-10
7.9175e-10
3.57657e-10
9.10588e-10
3.5481e-10
1.04157e-09
3.34022e-10
1.18165e-09
2.87449e-10
1.32496e-09
2.04484e-10
1.4618e-09
7.10967e-11
1.57782e-09
-1.30601e-10
1.65351e-09
-4.22389e-10
1.66422e-09
-8.30442e-10
1.58043e-09
-1.37239e-09
1.36072e-09
-1.96974e-09
9.10296e-10
-3.2185e-09
5.47274e-10
-4.42353e-09
-4.52436e-10
-5.53144e-09
-2.16804e-09
-5.68727e-09
-4.47378e-09
-4.03062e-09
-5.2688e-09
-3.79837e-09
-6.59883e-10
-6.53745e-09
-5.08927e-09
-4.4727e-10
-8.08272e-10
8.10889e-11
-1.60319e-09
1.30097e-09
-3.91282e-09
6.68644e-10
-1.91031e-09
3.06899e-10
-1.44336e-10
4.14845e-10
7.21202e-10
4.67154e-10
6.25816e-10
4.12939e-10
2.97206e-10
2.92824e-10
4.75358e-11
1.38395e-10
-8.45194e-11
1.54479e-12
-1.16326e-10
-9.26055e-11
-9.32173e-11
-1.46265e-10
-5.30753e-11
-2.3214e-11
-1.77811e-10
3.73423e-12
2.04316e-11
1.22024e-11
4.34644e-11
2.41767e-11
6.35678e-11
3.91775e-11
8.39516e-11
5.70176e-11
1.05248e-10
7.76124e-11
1.27339e-10
1.00908e-10
1.50132e-10
1.2686e-10
1.73979e-10
1.55427e-10
1.99737e-10
1.86579e-10
2.28635e-10
2.20286e-10
2.62093e-10
2.56498e-10
3.01597e-10
2.95112e-10
3.48639e-10
3.35929e-10
4.04715e-10
3.78581e-10
4.71328e-10
4.22425e-10
5.49996e-10
4.66399e-10
6.42212e-10
5.08822e-10
7.49329e-10
5.47083e-10
8.72326e-10
5.7722e-10
1.01143e-09
5.93303e-10
1.16557e-09
5.86555e-10
1.33171e-09
5.4411e-10
1.50424e-09
4.47283e-10
1.67464e-09
2.68954e-10
1.83184e-09
-3.03562e-11
1.96353e-09
-5.06493e-10
2.05657e-09
-1.23771e-09
2.09194e-09
-2.38077e-09
2.05336e-09
-3.77068e-09
1.93718e-09
-6.09613e-09
1.87301e-09
-8.60339e-09
3.39217e-10
-1.02655e-08
-2.81163e-09
-8.43628e-09
-7.09805e-09
3.37608e-09
-1.24722e-08
-1.38136e-09
-3.31835e-10
1.61926e-09
-3.8089e-09
3.3129e-09
-3.29683e-09
1.90648e-09
-2.5064e-09
9.93632e-10
-9.97468e-10
5.7938e-10
2.69915e-10
5.43549e-10
7.57034e-10
5.13802e-10
6.55562e-10
4.16517e-10
3.94492e-10
2.80206e-10
1.83847e-10
1.37813e-10
5.78729e-11
1.64744e-11
5.01303e-12
-7.03442e-11
-6.39873e-12
-1.28032e-10
4.61267e-12
1.84942e-11
-1.6974e-10
4.35483e-12
1.60771e-11
1.42775e-11
3.35425e-11
2.8315e-11
4.95302e-11
4.59066e-11
6.63588e-11
6.68661e-11
8.42877e-11
9.11547e-11
1.03052e-10
1.1879e-10
1.22501e-10
1.49822e-10
1.42949e-10
1.84336e-10
1.65222e-10
2.2246e-10
1.90511e-10
2.64358e-10
2.20196e-10
3.1022e-10
2.55736e-10
3.60238e-10
2.98621e-10
4.14567e-10
3.50384e-10
4.73262e-10
4.12628e-10
5.36188e-10
4.87066e-10
6.02876e-10
5.75521e-10
6.72323e-10
6.79885e-10
7.42666e-10
8.01988e-10
8.10703e-10
9.43391e-10
8.71172e-10
1.10509e-09
9.15681e-10
1.2872e-09
9.31142e-10
1.48879e-09
8.97529e-10
1.70826e-09
7.84813e-10
1.94456e-09
5.49081e-10
2.19926e-09
1.26694e-10
2.47895e-09
-5.73464e-10
2.7921e-09
-1.60608e-09
3.08597e-09
-3.19937e-09
3.53047e-09
-5.89766e-09
4.57131e-09
-8.76627e-09
3.20783e-09
-1.04073e-08
-1.17062e-09
-8.06564e-09
-9.43969e-09
-2.48814e-09
-1.80497e-08
3.23868e-09
-6.05866e-09
2.9632e-09
-3.53341e-09
2.19012e-09
-2.52375e-09
1.12493e-09
-1.44121e-09
4.65313e-10
-3.37851e-10
2.70367e-10
4.64862e-10
2.82487e-10
7.44913e-10
2.9643e-10
6.4162e-10
2.52771e-10
4.3815e-10
1.71262e-10
2.65356e-10
7.87377e-11
1.50398e-10
-3.34521e-12
8.70959e-11
-7.03918e-11
6.06479e-11
-1.21422e-10
5.56433e-11
5.9162e-11
-1.6209e-10
4.91809e-12
1.11591e-11
1.61639e-11
2.22997e-11
3.20804e-11
3.36157e-11
5.20355e-11
4.64029e-11
7.58487e-11
6.04728e-11
1.03528e-10
7.53736e-11
1.35164e-10
9.0866e-11
1.70906e-10
1.07207e-10
2.10968e-10
1.2516e-10
2.55637e-10
1.45842e-10
3.05277e-10
1.70555e-10
3.60331e-10
2.00681e-10
4.21305e-10
2.37647e-10
4.88742e-10
2.82947e-10
5.63181e-10
3.38191e-10
6.45084e-10
4.05164e-10
7.3473e-10
4.85875e-10
8.32037e-10
5.82574e-10
9.36289e-10
6.97732e-10
1.0457e-09
8.33987e-10
1.15671e-09
9.94083e-10
1.263e-09
1.18091e-09
1.35398e-09
1.39781e-09
1.41273e-09
1.64951e-09
1.41309e-09
1.9442e-09
1.31558e-09
2.29677e-09
1.06239e-09
2.73214e-09
5.73851e-10
3.28063e-09
-3.08436e-10
3.96825e-09
-1.89698e-09
5.11901e-09
-3.31371e-09
5.98803e-09
-5.40606e-09
5.30018e-09
-7.37077e-09
7.94078e-10
-7.84488e-09
-8.96558e-09
-1.09636e-09
-2.47983e-08
2.8571e-09
-1.00121e-08
2.46188e-09
-3.13819e-09
1.26748e-09
-1.32935e-09
3.79837e-10
-5.53568e-10
-2.64043e-11
6.83907e-11
-8.73163e-11
5.25774e-10
-5.7867e-12
6.63383e-10
6.26958e-11
5.73137e-10
7.84086e-11
4.22437e-10
5.38597e-11
2.89905e-10
9.48438e-12
1.94773e-10
-3.93198e-11
1.359e-10
-8.32347e-11
1.04563e-10
-1.20253e-10
9.26613e-11
9.2197e-11
-1.53288e-10
5.40553e-12
5.75321e-12
1.77959e-11
9.90981e-12
3.53396e-11
1.60722e-11
5.73469e-11
2.4396e-11
8.36459e-11
3.41757e-11
1.14289e-10
4.47324e-11
1.49437e-10
5.57163e-11
1.89337e-10
6.7305e-11
2.34322e-10
8.01736e-11
2.84834e-10
9.53313e-11
3.41431e-10
1.13959e-10
4.04802e-10
1.37309e-10
4.75766e-10
1.66681e-10
5.55261e-10
2.03448e-10
6.44331e-10
2.49119e-10
7.44089e-10
3.05408e-10
8.55657e-10
3.74313e-10
9.80054e-10
4.58178e-10
1.11802e-09
5.59761e-10
1.26971e-09
6.82295e-10
1.4342e-09
8.29602e-10
1.60875e-09
1.00636e-09
1.78784e-09
1.21871e-09
1.96191e-09
1.47544e-09
2.11604e-09
1.79007e-09
2.22907e-09
2.18374e-09
2.27382e-09
2.68738e-09
2.21535e-09
3.3391e-09
1.99826e-09
4.18535e-09
1.8229e-09
5.29437e-09
1.91762e-09
5.89331e-09
2.44695e-09
4.77085e-09
3.71906e-09
-4.78032e-10
7.85487e-09
-1.31014e-08
5.69521e-09
-2.26386e-08
2.42793e-09
-6.74484e-09
9.80438e-10
-1.6907e-09
2.16484e-10
-5.65391e-10
-2.38166e-10
-9.89181e-11
-4.04903e-10
2.35128e-10
-3.4872e-10
4.6959e-10
-2.15987e-10
5.30651e-10
-1.10048e-10
4.67197e-10
-5.43201e-11
3.66709e-10
-4.02546e-11
2.75839e-10
-5.18209e-11
2.06339e-10
-7.40122e-11
1.58091e-10
-9.94988e-11
1.30049e-10
-1.23592e-10
1.16755e-10
1.14109e-10
-1.45504e-10
5.79887e-12
-4.40198e-14
1.91132e-11
-3.40535e-12
3.79723e-11
-2.79049e-12
6.16419e-11
7.24163e-13
8.99609e-11
5.85769e-12
1.23023e-10
1.16715e-11
1.61055e-10
1.76842e-11
2.04384e-10
2.39736e-11
2.53454e-10
3.11036e-11
3.08838e-10
3.99471e-11
3.71272e-10
5.15258e-11
4.41667e-10
6.69159e-11
5.21127e-10
8.72238e-11
6.10958e-10
1.13618e-10
7.12683e-10
1.47392e-10
8.28051e-10
1.90038e-10
9.59035e-10
2.43326e-10
1.10781e-09
3.09399e-10
1.27671e-09
3.90867e-10
1.46807e-09
4.90936e-10
1.68404e-09
6.13623e-10
1.9263e-09
7.64108e-10
2.19563e-09
9.49378e-10
2.49172e-09
1.17935e-09
2.81334e-09
1.46845e-09
3.15983e-09
1.83724e-09
3.53476e-09
2.31246e-09
3.95176e-09
2.92209e-09
4.45984e-09
3.67727e-09
5.27492e-09
4.4793e-09
6.43267e-09
4.73556e-09
7.85089e-09
3.35262e-09
9.43587e-09
-2.06301e-09
9.93453e-09
-1.36e-08
4.64287e-09
-1.73469e-08
6.46889e-10
-2.74886e-09
-9.07162e-11
-9.5309e-10
-4.08505e-10
-2.47603e-10
-5.60317e-10
5.28938e-11
-5.67438e-10
2.4225e-10
-4.59074e-10
3.61226e-10
-3.20277e-10
3.91854e-10
-2.11033e-10
3.57953e-10
-1.44867e-10
3.00543e-10
-1.12424e-10
2.43397e-10
-1.01869e-10
1.95784e-10
-1.05249e-10
1.61471e-10
-1.15007e-10
1.39808e-10
-1.26813e-10
1.2856e-10
1.26302e-10
-1.39006e-10
6.08039e-12
-6.12264e-12
2.00619e-11
-1.73855e-11
3.98726e-11
-2.26017e-11
6.47478e-11
-2.41512e-11
9.45372e-11
-2.39323e-11
1.29371e-10
-2.31648e-11
1.69529e-10
-2.2476e-11
2.15406e-10
-2.19038e-11
2.67526e-10
-2.1016e-11
3.26572e-10
-1.90996e-11
3.93418e-10
-1.53214e-11
4.69154e-10
-8.82128e-12
5.55115e-10
1.26284e-12
6.52913e-10
1.58246e-11
7.64474e-10
3.58372e-11
8.92091e-10
6.24235e-11
1.03849e-09
9.69259e-11
1.2069e-09
1.40989e-10
1.40111e-09
1.96655e-10
1.62555e-09
2.66496e-10
1.88536e-09
3.53822e-10
2.18643e-09
4.63027e-10
2.53567e-09
6.00143e-10
2.94135e-09
7.73676e-10
3.4142e-09
9.95596e-10
3.96958e-09
1.28185e-09
4.63138e-09
1.65066e-09
5.43909e-09
2.11439e-09
6.46331e-09
2.65305e-09
7.80192e-09
3.14069e-09
9.40054e-09
3.13693e-09
1.09039e-08
1.84923e-09
1.11805e-08
-2.33957e-09
8.11177e-09
-1.05313e-08
2.03529e-09
-1.12705e-08
3.90707e-10
-1.10428e-09
-2.82122e-10
-2.80261e-10
-5.30943e-10
1.21813e-12
-6.01351e-10
1.23301e-10
-5.64296e-10
2.05195e-10
-4.64716e-10
2.61646e-10
-3.52602e-10
2.79739e-10
-2.60379e-10
2.65731e-10
-1.96138e-10
2.36302e-10
-1.5654e-10
2.03799e-10
-1.35723e-10
1.74967e-10
-1.27344e-10
1.53092e-10
-1.26387e-10
1.38851e-10
-1.29419e-10
1.31592e-10
1.30545e-10
-1.33662e-10
6.23945e-12
-1.23633e-11
2.06002e-11
-3.17484e-11
4.09557e-11
-4.29561e-11
6.65253e-11
-4.9717e-11
9.71703e-11
-5.45746e-11
1.33048e-10
-5.90431e-11
1.74475e-10
-6.39034e-11
2.21888e-10
-6.93168e-11
2.75865e-10
-7.49932e-11
3.37161e-10
-8.03946e-11
4.0674e-10
-8.48988e-11
4.85807e-10
-8.78897e-11
5.75851e-10
-8.87834e-11
6.78691e-10
-8.70143e-11
7.9653e-10
-8.20009e-11
9.32049e-10
-7.30968e-11
1.08852e-09
-5.95455e-11
1.26995e-09
-4.04391e-11
1.48126e-09
-1.4652e-11
1.72849e-09
1.92585e-11
2.01913e-09
6.31821e-11
2.36245e-09
1.19707e-10
2.77004e-09
1.92556e-10
3.25655e-09
2.87161e-10
3.84077e-09
4.11384e-10
4.54685e-09
5.75768e-10
5.40538e-09
7.92129e-10
6.45251e-09
1.06725e-09
7.72152e-09
1.38404e-09
9.20533e-09
1.65689e-09
1.07055e-08
1.63672e-09
1.16715e-08
8.83252e-10
1.06678e-08
-1.33584e-09
5.88761e-09
-5.75114e-09
4.26249e-10
-5.8091e-09
-2.04883e-10
-4.73143e-10
-4.37676e-10
-4.74683e-11
-5.19628e-10
8.31705e-11
-5.3316e-10
1.36833e-10
-4.98905e-10
1.70941e-10
-4.30861e-10
1.93601e-10
-3.51847e-10
2.00726e-10
-2.79989e-10
1.93872e-10
-2.23143e-10
1.79456e-10
-1.82566e-10
1.63222e-10
-1.56366e-10
1.48767e-10
-1.41249e-10
1.37976e-10
-1.33696e-10
1.31298e-10
-1.306e-10
1.28495e-10
1.2919e-10
-1.29245e-10
6.26843e-12
-1.86324e-11
2.07033e-11
-4.61869e-11
4.11682e-11
-6.34225e-11
6.68838e-11
-7.54326e-11
9.77238e-11
-8.5415e-11
1.33863e-10
-9.5182e-11
1.75633e-10
-1.05671e-10
2.23487e-10
-1.17169e-10
2.78022e-10
-1.29529e-10
3.40018e-10
-1.42391e-10
4.10471e-10
-1.55351e-10
4.90629e-10
-1.68047e-10
5.82038e-10
-1.80191e-10
6.86593e-10
-1.91567e-10
8.06616e-10
-2.0202e-10
9.44958e-10
-2.11437e-10
1.10515e-09
-2.19738e-10
1.29158e-09
-2.26875e-10
1.50978e-09
-2.32846e-10
1.7667e-09
-2.37664e-10
2.0712e-09
-2.41312e-10
2.43455e-09
-2.43638e-10
2.8712e-09
-2.44099e-10
3.39966e-09
-2.413e-10
4.04332e-09
-2.32282e-10
4.83061e-09
-2.1151e-10
5.7925e-09
-1.69764e-10
6.95343e-09
-9.36789e-11
8.30687e-09
3.05931e-11
9.75876e-09
2.0499e-10
1.10101e-08
3.85412e-10
1.14086e-08
4.84757e-10
9.74901e-09
3.23716e-10
4.7166e-09
-7.18728e-10
-2.40458e-11
-1.06845e-09
-2.45661e-10
-2.51528e-10
-3.62633e-10
6.9504e-11
-4.24628e-10
1.45165e-10
-4.51688e-10
1.63893e-10
-4.43466e-10
1.62719e-10
-4.04006e-10
1.54142e-10
-3.47204e-10
1.43924e-10
-2.88045e-10
1.34713e-10
-2.36029e-10
1.27439e-10
-1.95301e-10
1.22494e-10
-1.6641e-10
1.19876e-10
-1.47673e-10
1.19239e-10
-1.36452e-10
1.20077e-10
-1.2996e-10
1.22003e-10
-1.25495e-10
1.24726e-10
2.1403e-11
7.9047e-12
1.34508e-11
7.95235e-12
5.59036e-12
7.86045e-12
-2.04597e-12
7.63519e-12
-9.33315e-12
7.28687e-12
-1.61584e-11
6.82674e-12
-2.24303e-11
6.27187e-12
-2.80683e-11
5.63993e-12
-3.30157e-11
4.94831e-12
-3.72349e-11
4.2179e-12
-4.07008e-11
3.46597e-12
-4.34148e-11
2.7114e-12
-4.53826e-11
1.96872e-12
-4.66391e-11
1.25362e-12
-4.72177e-11
5.7964e-13
-4.71688e-11
-4.9257e-14
-4.65494e-11
-6.17973e-13
-4.54285e-11
-1.12256e-12
-4.38684e-11
-1.562e-12
-4.19383e-11
-1.93179e-12
-3.97053e-11
-2.23434e-12
-3.72297e-11
-2.47133e-12
-3.45848e-11
-2.64817e-12
-3.18183e-11
-2.76516e-12
-2.89925e-11
-2.82892e-12
-2.61492e-11
-2.84491e-12
-2.33274e-11
-2.81972e-12
-2.05698e-11
-2.76001e-12
-1.79017e-11
-2.6687e-12
-1.53473e-11
-2.55195e-12
-1.29315e-11
-2.41569e-12
-1.06699e-11
-2.26203e-12
-8.57373e-12
-2.09485e-12
-6.65326e-12
-1.91965e-12
-4.91304e-12
-1.73971e-12
-3.35411e-12
-1.55779e-12
-1.97677e-12
-1.37659e-12
-7.80661e-13
-1.19636e-12
2.33889e-13
-1.0151e-12
1.06327e-12
-8.30156e-13
1.70036e-12
-6.38238e-13
2.13632e-12
-4.36647e-13
2.36412e-12
-2.28636e-13
2.37819e-12
-1.42462e-14
2.18728e-12
1.90964e-13
1.81883e-12
3.69892e-13
1.32189e-12
4.96148e-13
7.75641e-13
5.40572e-13
2.9018e-13
4.75812e-13
2.80364e-13
5.22264e-11
2.77093e-11
3.22652e-11
2.79125e-11
1.24922e-11
2.76343e-11
-6.76418e-12
2.68927e-11
-2.51984e-11
2.57211e-11
-4.25304e-11
2.41623e-11
-5.85287e-11
2.227e-11
-7.29955e-11
2.01062e-11
-8.57796e-11
1.77331e-11
-9.67818e-11
1.52166e-11
-1.05934e-10
1.26194e-11
-1.13228e-10
1.0001e-11
-1.18673e-10
7.4164e-12
-1.22335e-10
4.91309e-12
-1.24292e-10
2.53623e-12
-1.2466e-10
3.15342e-13
-1.23572e-10
-1.70583e-12
-1.21176e-10
-3.5192e-12
-1.17627e-10
-5.10977e-12
-1.13095e-10
-6.46545e-12
-1.07741e-10
-7.5918e-12
-1.01727e-10
-8.48535e-12
-9.52129e-11
-9.16297e-12
-8.83423e-11
-9.63445e-12
-8.12602e-11
-9.91404e-12
-7.40856e-11
-1.00218e-11
-6.69266e-11
-9.97734e-12
-5.98834e-11
-9.8019e-12
-5.30356e-11
-9.51594e-12
-4.645e-11
-9.13729e-12
-4.01804e-11
-8.68383e-12
-3.42688e-11
-8.1726e-12
-2.87455e-11
-7.61804e-12
-2.36301e-11
-7.03401e-12
-1.89347e-11
-6.43344e-12
-1.46664e-11
-5.82535e-12
-1.08292e-11
-5.21383e-12
-7.42768e-12
-4.59854e-12
-4.46935e-12
-3.97449e-12
-1.96768e-12
-3.3328e-12
6.03012e-14
-2.66697e-12
1.59731e-12
-1.97382e-12
2.62624e-12
-1.2581e-12
3.14958e-12
-5.37955e-13
3.18746e-12
1.50004e-13
2.80341e-12
7.53692e-13
2.10877e-12
1.19901e-12
1.26433e-12
1.40162e-12
4.8023e-13
1.28174e-12
7.557e-13
6.58211e-11
5.60735e-11
3.71981e-11
5.65368e-11
8.80983e-12
5.60249e-11
-1.88675e-11
5.45725e-11
-4.53944e-11
5.22456e-11
-7.03665e-11
4.91345e-11
-9.34432e-11
4.53459e-11
-1.14341e-10
4.10027e-11
-1.32837e-10
3.62313e-11
-1.48782e-10
3.11605e-11
-1.62078e-10
2.59176e-11
-1.72703e-10
2.0621e-11
-1.80671e-10
1.5384e-11
-1.86064e-10
1.03032e-11
-1.88992e-10
5.46632e-12
-1.89623e-10
9.44893e-13
-1.88128e-10
-3.19883e-12
-1.84727e-10
-6.92331e-12
-1.79632e-10
-1.02003e-11
-1.73092e-10
-1.30111e-11
-1.65327e-10
-1.53541e-11
-1.56582e-10
-1.7235e-11
-1.47079e-10
-1.86686e-11
-1.37025e-10
-1.96817e-11
-1.26631e-10
-2.03086e-11
-1.16072e-10
-2.05805e-11
-1.05508e-10
-2.05399e-11
-9.50812e-11
-2.02303e-11
-8.4908e-11
-1.96897e-11
-7.5087e-11
-1.89584e-11
-6.56967e-11
-1.80744e-11
-5.67961e-11
-1.70713e-11
-4.84309e-11
-1.59809e-11
-4.06334e-11
-1.48308e-11
-3.34244e-11
-1.36421e-11
-2.68198e-11
-1.24293e-11
-2.08335e-11
-1.12e-11
-1.54793e-11
-9.9528e-12
-1.07735e-11
-8.67982e-12
-6.73737e-12
-7.36918e-12
-3.39358e-12
-6.01093e-12
-7.63754e-13
-4.60341e-12
1.13963e-12
-3.1614e-12
2.32599e-12
-1.72339e-12
2.83005e-12
-3.56706e-13
2.73595e-12
8.40803e-13
2.18078e-12
1.74384e-12
1.3602e-12
2.21454e-12
5.30947e-13
2.11995e-12
1.28524e-12
6.56327e-11
9.12369e-11
3.01286e-11
9.20428e-11
-5.09791e-12
9.12507e-11
-3.9444e-11
8.89191e-11
-7.23559e-11
8.51547e-11
-1.03329e-10
8.01065e-11
-1.31931e-10
7.39492e-11
-1.57809e-10
6.68803e-11
-1.80684e-10
5.91084e-11
-2.00367e-10
5.08426e-11
-2.16741e-10
4.22915e-11
-2.29772e-10
3.36483e-11
-2.39485e-10
2.50957e-11
-2.45977e-10
1.67933e-11
-2.49392e-10
8.88261e-12
-2.49928e-10
1.48088e-12
-2.47807e-10
-5.31546e-12
-2.43301e-10
-1.14358e-11
-2.36671e-10
-1.68248e-11
-2.28228e-10
-2.14623e-11
-2.18246e-10
-2.53325e-11
-2.07028e-10
-2.84522e-11
-1.94852e-10
-3.08462e-11
-1.81983e-10
-3.25496e-11
-1.68671e-10
-3.36181e-11
-1.55144e-10
-3.41096e-11
-1.41601e-10
-3.40857e-11
-1.28215e-10
-3.36157e-11
-1.15134e-10
-3.27685e-11
-1.0248e-10
-3.16098e-11
-9.0351e-11
-3.02013e-11
-7.8821e-11
-2.85998e-11
-6.79472e-11
-2.68553e-11
-5.77699e-11
-2.50092e-11
-4.83183e-11
-2.30941e-11
-3.96162e-11
-2.1132e-11
-3.16842e-11
-1.91326e-11
-2.45433e-11
-1.70946e-11
-1.82153e-11
-1.5008e-11
-1.27264e-11
-1.28591e-11
-8.101e-12
-1.06376e-11
-4.35952e-12
-8.3464e-12
-1.51163e-12
-6.01113e-12
4.58527e-13
-3.69145e-12
1.59681e-12
-1.4902e-12
1.99516e-12
4.47416e-13
1.79853e-12
1.94091e-12
1.20852e-12
2.79896e-12
4.95127e-13
2.83657e-12
1.78052e-12
5.52485e-11
1.32537e-10
1.35538e-11
1.33738e-10
-2.77906e-11
1.32592e-10
-6.80612e-11
1.2919e-10
-1.06593e-10
1.23687e-10
-1.42788e-10
1.16302e-10
-1.76133e-10
1.07295e-10
-2.06211e-10
9.69572e-11
-2.327e-10
8.5596e-11
-2.55377e-10
7.3519e-11
-2.74118e-10
6.10307e-11
-2.88883e-10
4.84136e-11
-2.9972e-10
3.59312e-11
-3.06745e-10
2.38167e-11
-3.10138e-10
1.2276e-11
-3.10139e-10
1.47837e-12
-3.07016e-10
-8.43417e-12
-3.01088e-10
-1.73649e-11
-2.92679e-10
-2.52314e-11
-2.82141e-10
-3.20021e-11
-2.69816e-10
-3.76593e-11
-2.56053e-10
-4.22195e-11
-2.41178e-10
-4.57193e-11
-2.25511e-10
-4.82183e-11
-2.09341e-10
-4.97879e-11
-1.92933e-10
-5.05138e-11
-1.76526e-10
-5.04927e-11
-1.6032e-10
-4.98223e-11
-1.44486e-10
-4.86011e-11
-1.29168e-10
-4.69274e-11
-1.14477e-10
-4.48927e-11
-1.00498e-10
-4.25788e-11
-8.72956e-11
-4.00577e-11
-7.49163e-11
-3.73888e-11
-6.33934e-11
-3.46172e-11
-5.27532e-11
-3.1772e-11
-4.30184e-11
-2.88667e-11
-3.42117e-11
-2.59009e-11
-2.6356e-11
-2.28632e-11
-1.9477e-11
-1.97387e-11
-1.35973e-11
-1.65183e-11
-8.73446e-12
-1.32101e-11
-4.8951e-12
-9.85322e-12
-2.0617e-12
-6.5277e-12
-1.83776e-13
-3.3687e-12
8.33022e-13
-5.66553e-13
1.1311e-12
1.64633e-12
9.03001e-13
3.02467e-12
4.10653e-13
3.32922e-12
2.19236e-12
3.83034e-11
1.79925e-10
-9.50046e-12
1.81542e-10
-5.68359e-11
1.79928e-10
-1.02855e-10
1.75209e-10
-1.46774e-10
1.67608e-10
-1.87902e-10
1.57428e-10
-2.25644e-10
1.45037e-10
-2.59525e-10
1.30837e-10
-2.89186e-10
1.15256e-10
-3.14384e-10
9.87177e-11
-3.34993e-10
8.16374e-11
-3.50986e-10
6.44049e-11
-3.62434e-10
4.73774e-11
-3.69488e-10
3.08712e-11
-3.72376e-10
1.51643e-11
-3.71379e-10
4.85467e-13
-3.66832e-10
-1.29862e-11
-3.5909e-10
-2.51021e-11
-3.48555e-10
-3.57705e-11
-3.3562e-10
-4.49376e-11
-3.20693e-10
-5.25866e-11
-3.04172e-10
-5.87423e-11
-2.86437e-10
-6.34544e-11
-2.67852e-10
-6.68038e-11
-2.48746e-10
-6.88927e-11
-2.29424e-10
-6.98378e-11
-2.10152e-10
-6.97673e-11
-1.91157e-10
-6.88167e-11
-1.72633e-10
-6.71242e-11
-1.54737e-10
-6.48231e-11
-1.3759e-10
-6.20377e-11
-1.21287e-10
-5.88809e-11
-1.05895e-10
-5.54496e-11
-9.14617e-11
-5.18227e-11
-7.80187e-11
-4.80598e-11
-6.55906e-11
-4.41997e-11
-5.41972e-11
-4.02603e-11
-4.38564e-11
-3.62422e-11
-3.45874e-11
-3.21331e-11
-2.64104e-11
-2.79165e-11
-1.93432e-11
-2.35849e-11
-1.33991e-11
-1.91523e-11
-8.57976e-12
-1.4671e-11
-4.86818e-12
-1.02412e-11
-2.2148e-12
-6.02541e-12
-5.29233e-13
-2.2527e-12
3.2326e-13
7.96631e-13
5.20565e-13
2.82709e-12
3.03853e-13
3.54495e-12
2.49677e-12
1.80748e-11
2.33681e-10
-3.60848e-11
2.35703e-10
-8.96078e-11
2.33452e-10
-1.41506e-10
2.27106e-10
-1.90868e-10
2.1697e-10
-2.36897e-10
2.03457e-10
-2.78923e-10
1.87062e-10
-3.16412e-10
1.68328e-10
-3.48979e-10
1.47821e-10
-3.76368e-10
1.26107e-10
-3.98465e-10
1.03732e-10
-4.15265e-10
8.12054e-11
-4.26883e-10
5.89929e-11
-4.3351e-10
3.7503e-11
-4.35436e-10
1.70868e-11
-4.33e-10
-1.94054e-12
-4.26595e-10
-1.9398e-11
-4.16644e-10
-3.50517e-11
-4.03613e-10
-4.88061e-11
-3.87953e-10
-6.05933e-11
-3.70138e-10
-7.04027e-11
-3.50617e-10
-7.8262e-11
-3.29827e-10
-8.42451e-11
-3.08175e-10
-8.84599e-11
-2.86033e-10
-9.10371e-11
-2.63737e-10
-9.21334e-11
-2.41583e-10
-9.19209e-11
-2.19822e-10
-9.0577e-11
-1.98664e-10
-8.82812e-11
-1.78278e-10
-8.52086e-11
-1.58793e-10
-8.15227e-11
-1.40305e-10
-7.73699e-11
-1.2288e-10
-7.28754e-11
-1.06562e-10
-6.81415e-11
-9.13782e-11
-6.32445e-11
-7.73442e-11
-5.82342e-11
-6.44718e-11
-5.31341e-11
-5.27695e-11
-4.79459e-11
-4.22468e-11
-4.26566e-11
-3.29159e-11
-3.72488e-11
-2.47865e-11
-3.17147e-11
-1.78661e-11
-2.60725e-11
-1.21493e-11
-2.03844e-11
-7.61758e-12
-1.47706e-11
-4.22621e-12
-9.41812e-12
-1.89275e-12
-4.58796e-12
-4.95445e-13
-5.99467e-13
1.27766e-13
2.20623e-12
1.91272e-13
3.48324e-12
2.68875e-12
-2.87112e-12
2.94287e-10
-6.38412e-11
2.9667e-10
-1.23951e-10
2.93562e-10
-1.82046e-10
2.85201e-10
-2.37077e-10
2.72001e-10
-2.88128e-10
2.54512e-10
-3.34453e-10
2.33387e-10
-3.75464e-10
2.09339e-10
-4.10756e-10
1.83108e-10
-4.40076e-10
1.55426e-10
-4.63332e-10
1.26988e-10
-4.80562e-10
9.84407e-11
-4.91934e-10
7.03645e-11
-4.97705e-10
4.32767e-11
-4.98233e-10
1.76093e-11
-4.93907e-10
-6.26555e-12
-4.85227e-10
-2.80775e-11
-4.72671e-10
-4.76012e-11
-4.56776e-10
-6.47041e-11
-4.38068e-10
-7.93025e-11
-4.17077e-10
-9.13937e-11
-3.94317e-10
-1.01023e-10
-3.7028e-10
-1.08285e-10
-3.45416e-10
-1.13322e-10
-3.20141e-10
-1.1631e-10
-2.94826e-10
-1.17449e-10
-2.69791e-10
-1.16957e-10
-2.45306e-10
-1.15061e-10
-2.21596e-10
-1.11991e-10
-1.98836e-10
-1.07968e-10
-1.77159e-10
-1.032e-10
-1.56657e-10
-9.78709e-11
-1.37393e-10
-9.21402e-11
-1.19399e-10
-8.61354e-11
-1.02693e-10
-7.99517e-11
-8.72775e-11
-7.36509e-11
-7.315e-11
-6.72631e-11
-6.03054e-11
-6.07917e-11
-4.87394e-11
-5.42223e-11
-3.84518e-11
-4.75361e-11
-2.94415e-11
-4.0725e-11
-2.17084e-11
-3.38083e-11
-1.52404e-11
-2.68536e-11
-1.0014e-11
-1.99953e-11
-5.98838e-12
-1.34437e-11
-3.09136e-12
-7.48643e-12
-1.21605e-12
-2.47518e-12
-2.17302e-13
1.20939e-12
9.89429e-14
3.17003e-12
2.78902e-12
-2.27207e-11
3.62404e-10
-9.11325e-11
3.65079e-10
-1.58397e-10
3.60827e-10
-2.2316e-10
3.49968e-10
-2.84216e-10
3.33056e-10
-3.4052e-10
3.10818e-10
-3.91241e-10
2.84106e-10
-4.35746e-10
2.53846e-10
-4.7362e-10
2.20981e-10
-5.04631e-10
1.86437e-10
-5.28732e-10
1.51086e-10
-5.4602e-10
1.1573e-10
-5.5673e-10
8.10762e-11
-5.61206e-10
4.77513e-11
-5.59875e-10
1.62816e-11
-5.53237e-10
-1.29027e-11
-5.41847e-10
-3.94672e-11
-5.26288e-10
-6.31627e-11
-5.07155e-10
-8.38315e-11
-4.85069e-10
-1.01395e-10
-4.60619e-10
-1.15847e-10
-4.3438e-10
-1.27257e-10
-4.06905e-10
-1.35759e-10
-3.78695e-10
-1.41533e-10
-3.50204e-10
-1.448e-10
-3.21835e-10
-1.45817e-10
-2.93932e-10
-1.44858e-10
-2.66786e-10
-1.42207e-10
-2.40627e-10
-1.3815e-10
-2.15635e-10
-1.3296e-10
-1.91939e-10
-1.26895e-10
-1.69626e-10
-1.20183e-10
-1.48747e-10
-1.13019e-10
-1.2932e-10
-1.05562e-10
-1.11345e-10
-9.79269e-11
-9.48078e-11
-9.01892e-11
-7.96867e-11
-8.23853e-11
-6.5958e-11
-7.45206e-11
-5.36006e-11
-6.65789e-11
-4.25982e-11
-5.8538e-11
-3.29346e-11
-5.03866e-11
-2.45986e-11
-4.21445e-11
-1.7573e-11
-3.38821e-11
-1.18288e-11
-2.5741e-11
-7.32502e-12
-1.79471e-11
-3.99848e-12
-1.08119e-11
-1.75758e-12
-4.71519e-12
-4.74405e-13
-7.25596e-14
2.76276e-14
2.6703e-12
2.81785e-12
-4.02906e-11
4.38891e-10
-1.16965e-10
4.41755e-10
-1.92125e-10
4.35986e-10
-2.6418e-10
4.22026e-10
-3.31735e-10
4.00608e-10
-3.93606e-10
3.72691e-10
-4.48875e-10
3.39376e-10
-4.96876e-10
3.0185e-10
-5.37196e-10
2.61303e-10
-5.69652e-10
2.18892e-10
-5.94258e-10
1.7569e-10
-6.11204e-10
1.32668e-10
-6.20809e-10
9.06853e-11
-6.2352e-10
5.04663e-11
-6.19865e-10
1.26292e-11
-6.10446e-10
-2.23233e-11
-5.95905e-10
-5.40058e-11
-5.76922e-10
-8.21498e-11
-5.54179e-10
-1.06573e-10
-5.28371e-10
-1.27202e-10
-5.00168e-10
-1.44051e-10
-4.70213e-10
-1.57214e-10
-4.39112e-10
-1.66862e-10
-4.07417e-10
-1.73226e-10
-3.75627e-10
-1.76588e-10
-3.44176e-10
-1.77267e-10
-3.13432e-10
-1.75602e-10
-2.83696e-10
-1.71943e-10
-2.55205e-10
-1.6664e-10
-2.28138e-10
-1.60027e-10
-2.02617e-10
-1.52416e-10
-1.78716e-10
-1.44084e-10
-1.56467e-10
-1.35269e-10
-1.35872e-10
-1.26159e-10
-1.16907e-10
-1.16894e-10
-9.95329e-11
-1.07564e-10
-8.37059e-11
-9.8213e-11
-6.93793e-11
-8.88475e-11
-5.65108e-11
-7.94478e-11
-4.5065e-11
-6.99849e-11
-3.50084e-11
-6.04423e-11
-2.6315e-11
-5.08369e-11
-1.89585e-11
-4.12395e-11
-1.2906e-11
-3.17949e-11
-8.11554e-12
-2.27377e-11
-4.52914e-12
-1.43962e-11
-2.06711e-12
-7.17455e-12
-6.15458e-13
-1.52235e-12
-7.88533e-15
2.06499e-12
2.81116e-12
-5.48622e-11
5.24837e-10
-1.4084e-10
5.27735e-10
-2.24828e-10
5.1997e-10
-3.04952e-10
5.02151e-10
-3.7959e-10
4.75248e-10
-4.47412e-10
4.40516e-10
-5.0741e-10
3.99377e-10
-5.58904e-10
3.53341e-10
-6.01508e-10
3.03907e-10
-6.35117e-10
2.52497e-10
-6.59837e-10
2.00415e-10
-6.75978e-10
1.48811e-10
-6.83988e-10
9.86918e-11
-6.84424e-10
5.09038e-11
-6.77933e-10
6.14151e-12
-6.65234e-10
-3.50186e-11
-6.47079e-10
-7.21632e-11
-6.24236e-10
-1.0499e-10
-5.9749e-10
-1.33319e-10
-5.67617e-10
-1.5708e-10
-5.35365e-10
-1.76305e-10
-5.01447e-10
-1.91131e-10
-4.66529e-10
-2.01778e-10
-4.31217e-10
-2.08538e-10
-3.9605e-10
-2.11757e-10
-3.61493e-10
-2.11825e-10
-3.27935e-10
-2.09159e-10
-2.95689e-10
-2.04188e-10
-2.64994e-10
-1.97333e-10
-2.36021e-10
-1.88998e-10
-2.0888e-10
-1.79555e-10
-1.83626e-10
-1.69337e-10
-1.6027e-10
-1.58624e-10
-1.38785e-10
-1.47642e-10
-1.19122e-10
-1.36557e-10
-1.01213e-10
-1.25473e-10
-8.49852e-11
-1.14442e-10
-7.03642e-11
-1.03469e-10
-5.72823e-11
-9.25296e-11
-4.56823e-11
-8.15873e-11
-3.55116e-11
-7.06152e-11
-2.67267e-11
-5.96232e-11
-1.92883e-11
-4.86781e-11
-1.31575e-11
-3.79256e-11
-8.29141e-12
-2.76043e-11
-4.63487e-12
-1.8052e-11
-2.11499e-12
-9.69248e-12
-6.26043e-13
-3.00942e-12
-5.00902e-15
1.44571e-12
2.80694e-12
-6.60402e-11
6.21594e-10
-1.6261e-10
6.24305e-10
-2.56564e-10
6.13921e-10
-3.45689e-10
5.91277e-10
-4.28098e-10
5.57662e-10
-5.02299e-10
5.14717e-10
-5.67202e-10
4.64282e-10
-6.22136e-10
4.08272e-10
-6.66784e-10
3.48557e-10
-7.01157e-10
2.8687e-10
-7.25516e-10
2.2477e-10
-7.4031e-10
1.6361e-10
-7.46149e-10
1.04533e-10
-7.4374e-10
4.84991e-11
-7.33853e-10
-3.74863e-12
-7.17351e-10
-5.15132e-11
-6.95091e-10
-9.44272e-11
-6.6795e-10
-1.32134e-10
-6.36807e-10
-1.64461e-10
-6.02523e-10
-1.91359e-10
-5.65932e-10
-2.12895e-10
-5.27818e-10
-2.29248e-10
-4.88905e-10
-2.40693e-10
-4.49851e-10
-2.47592e-10
-4.11236e-10
-2.50371e-10
-3.73556e-10
-2.49503e-10
-3.37223e-10
-2.45491e-10
-3.02557e-10
-2.38852e-10
-2.69796e-10
-2.30091e-10
-2.391e-10
-2.19692e-10
-2.10557e-10
-2.08095e-10
-1.84199e-10
-1.95693e-10
-1.60008e-10
-1.82815e-10
-1.37926e-10
-1.69724e-10
-1.17869e-10
-1.56614e-10
-9.97371e-11
-1.43605e-10
-8.34222e-11
-1.30756e-10
-6.88204e-11
-1.18071e-10
-5.58335e-11
-1.05516e-10
-4.43781e-11
-9.30433e-11
-3.43806e-11
-8.06142e-11
-2.57781e-11
-6.82265e-11
-1.85174e-11
-5.59389e-11
-1.25495e-11
-4.38925e-11
-7.82741e-12
-3.23257e-11
-4.29747e-12
-2.15813e-11
-1.88995e-12
-1.20988e-11
-5.01015e-13
-4.39675e-12
3.75885e-14
9.08388e-13
2.8449e-12
-7.36388e-11
7.30835e-10
-1.8237e-10
7.3304e-10
-2.87656e-10
7.1921e-10
-3.86872e-10
6.9049e-10
-4.77817e-10
6.48609e-10
-5.58824e-10
5.95719e-10
-6.28742e-10
5.34204e-10
-6.86949e-10
4.66482e-10
-7.33266e-10
3.94873e-10
-7.67876e-10
3.21481e-10
-7.91243e-10
2.48137e-10
-8.04028e-10
1.76393e-10
-8.07023e-10
1.0753e-10
-8.0111e-10
4.25892e-11
-7.87254e-10
-1.7605e-11
-7.66389e-10
-7.23801e-11
-7.39524e-10
-1.2129e-10
-7.07647e-10
-1.64011e-10
-6.71733e-10
-2.00378e-10
-6.32725e-10
-2.30365e-10
-5.91537e-10
-2.54083e-10
-5.49021e-10
-2.71764e-10
-5.05963e-10
-2.83751e-10
-4.63071e-10
-2.90484e-10
-4.20967e-10
-2.92477e-10
-3.80175e-10
-2.90295e-10
-3.41127e-10
-2.84539e-10
-3.04151e-10
-2.75826e-10
-2.69481e-10
-2.6476e-10
-2.3726e-10
-2.51911e-10
-2.07553e-10
-2.37801e-10
-1.80358e-10
-2.22887e-10
-1.55621e-10
-2.07551e-10
-1.33247e-10
-1.92098e-10
-1.13113e-10
-1.76747e-10
-9.50784e-11
-1.61639e-10
-7.89998e-11
-1.46835e-10
-6.47366e-11
-1.32335e-10
-5.21582e-11
-1.18095e-10
-4.11504e-11
-1.04051e-10
-3.16165e-11
-9.01488e-11
-2.34728e-11
-7.63704e-11
-1.66498e-11
-6.2762e-11
-1.10866e-11
-4.94549e-11
-6.7292e-12
-3.66823e-11
-3.52215e-12
-2.47878e-11
-1.39567e-12
-1.42244e-11
-2.42644e-13
-5.54876e-12
1.20207e-13
5.46578e-13
2.96536e-12
-7.76107e-11
8.54605e-10
-2.00403e-10
8.55832e-10
-3.18639e-10
8.37449e-10
-4.29179e-10
8.01027e-10
-5.29466e-10
7.48898e-10
-6.1764e-10
6.83894e-10
-6.92543e-10
6.09104e-10
-7.53664e-10
5.27603e-10
-8.01044e-10
4.42252e-10
-8.35139e-10
3.55574e-10
-8.56691e-10
2.69692e-10
-8.66634e-10
1.86336e-10
-8.65994e-10
1.06892e-10
-8.55867e-10
3.24556e-11
-8.37355e-10
-3.61117e-11
-8.11576e-10
-9.81632e-11
-7.79634e-10
-1.53232e-10
-7.42625e-10
-2.01021e-10
-7.01615e-10
-2.4139e-10
-6.5763e-10
-2.7435e-10
-6.11651e-10
-3.00062e-10
-5.64596e-10
-3.18819e-10
-5.17307e-10
-3.31039e-10
-4.70542e-10
-3.37249e-10
-4.24958e-10
-3.38059e-10
-3.81111e-10
-3.34139e-10
-3.39449e-10
-3.26199e-10
-3.00309e-10
-3.14964e-10
-2.63919e-10
-3.01148e-10
-2.30403e-10
-2.85425e-10
-1.99795e-10
-2.68407e-10
-1.72055e-10
-2.50626e-10
-1.47084e-10
-2.3252e-10
-1.24744e-10
-2.14437e-10
-1.04866e-10
-1.96625e-10
-8.72641e-11
-1.79239e-10
-7.17533e-11
-1.62345e-10
-5.81539e-11
-1.45936e-10
-4.62999e-11
-1.2995e-10
-3.60441e-11
-1.14306e-10
-2.72634e-11
-9.89295e-11
-1.98523e-11
-8.3782e-11
-1.3723e-11
-6.88919e-11
-8.80101e-12
-5.43764e-11
-5.02303e-12
-4.04595e-11
-2.32909e-12
-2.74816e-11
-6.46089e-13
-1.59073e-11
1.40483e-13
-6.33497e-12
2.35884e-13
4.52251e-13
3.20185e-12
-7.80203e-11
9.95403e-10
-2.17157e-10
9.94964e-10
-3.50237e-10
9.70531e-10
-4.73474e-10
9.24267e-10
-5.83899e-10
8.5932e-10
-6.79464e-10
7.7946e-10
-7.59063e-10
6.88702e-10
-8.22421e-10
5.90958e-10
-8.69924e-10
4.89756e-10
-9.02427e-10
3.88078e-10
-9.21068e-10
2.88332e-10
-9.27123e-10
1.92387e-10
-9.21908e-10
1.01679e-10
-9.0674e-10
1.72882e-11
-8.82909e-10
-5.9945e-11
-8.51662e-10
-1.29411e-10
-8.14216e-10
-1.90678e-10
-7.71756e-10
-2.43482e-10
-7.25423e-10
-2.87722e-10
-6.76311e-10
-3.2346e-10
-6.25458e-10
-3.50914e-10
-5.73834e-10
-3.70443e-10
-5.22332e-10
-3.82542e-10
-4.7175e-10
-3.87831e-10
-4.22785e-10
-3.87024e-10
-3.76017e-10
-3.80906e-10
-3.31913e-10
-3.70303e-10
-2.90813e-10
-3.56063e-10
-2.52941e-10
-3.39019e-10
-2.18402e-10
-3.19963e-10
-1.87196e-10
-2.99612e-10
-1.59238e-10
-2.78582e-10
-1.34379e-10
-2.57378e-10
-1.12426e-10
-2.36388e-10
-9.31589e-11
-2.15891e-10
-7.63436e-11
-1.96053e-10
-6.17454e-11
-1.76941e-10
-4.91427e-11
-1.58537e-10
-3.83323e-11
-1.40761e-10
-2.91332e-11
-1.23505e-10
-2.13929e-11
-1.0667e-10
-1.49823e-11
-9.0192e-11
-9.79495e-12
-7.4079e-11
-5.74207e-12
-5.84292e-11
-2.74878e-12
-4.34525e-11
-7.48002e-13
-2.94823e-11
3.38822e-13
-1.69943e-11
6.4002e-13
-6.63597e-12
3.88244e-13
7.04806e-13
3.5907e-12
-7.50471e-11
1.1563e-09
-2.33283e-10
1.1532e-09
-3.83421e-10
1.12067e-09
-5.20858e-10
1.06171e-09
-6.42136e-10
9.80594e-10
-7.45054e-10
8.82374e-10
-8.28665e-10
7.72316e-10
-8.93104e-10
6.554e-10
-9.39308e-10
5.35957e-10
-9.68709e-10
4.17477e-10
-9.82979e-10
3.02599e-10
-9.8383e-10
1.93243e-10
-9.72933e-10
9.07784e-11
-9.51829e-10
-3.81095e-12
-9.21994e-10
-8.97803e-11
-8.84784e-10
-1.6662e-10
-8.41504e-10
-2.33959e-10
-7.934e-10
-2.91587e-10
-7.41664e-10
-3.39459e-10
-6.87436e-10
-3.77691e-10
-6.31787e-10
-4.06564e-10
-5.75724e-10
-4.26506e-10
-5.20174e-10
-4.38092e-10
-4.65971e-10
-4.42033e-10
-4.13844e-10
-4.39151e-10
-3.64401e-10
-4.30348e-10
-3.18121e-10
-4.16582e-10
-2.75353e-10
-3.9883e-10
-2.36312e-10
-3.78059e-10
-2.01085e-10
-3.55189e-10
-1.69637e-10
-3.31058e-10
-1.41835e-10
-3.06381e-10
-1.17472e-10
-2.81738e-10
-9.62951e-11
-2.57563e-10
-7.80246e-11
-2.34161e-10
-6.2371e-11
-2.11707e-10
-4.90478e-11
-1.90263e-10
-3.77868e-11
-1.69797e-10
-2.83451e-11
-1.50203e-10
-2.05074e-11
-1.31343e-10
-1.4091e-11
-1.13086e-10
-8.94263e-12
-9.534e-11
-4.93656e-12
-7.80847e-11
-1.97016e-12
-6.13959e-11
4.61707e-14
-4.54693e-11
1.18506e-12
-3.06212e-11
1.53675e-12
-1.73456e-11
1.242e-12
-6.34062e-12
5.68194e-13
1.37925e-12
4.15908e-12
-6.90375e-11
1.34111e-09
-2.49728e-10
1.3339e-09
-4.19512e-10
1.29045e-09
-5.72765e-10
1.21496e-09
-7.05441e-10
1.11328e-09
-8.15252e-10
9.92189e-10
-9.01602e-10
8.5866e-10
-9.65294e-10
7.19088e-10
-1.0081e-09
5.7877e-10
-1.0323e-09
4.41683e-10
-1.04029e-09
3.10581e-10
-1.03432e-09
1.87275e-10
-1.01644e-09
7.29023e-11
-9.88462e-10
-3.17934e-11
-9.51964e-10
-1.26278e-10
-9.08399e-10
-2.10184e-10
-8.59108e-10
-2.8325e-10
-8.05355e-10
-3.45341e-10
-7.48346e-10
-3.96467e-10
-6.89229e-10
-4.36808e-10
-6.29085e-10
-4.66707e-10
-5.68926e-10
-4.86663e-10
-5.09694e-10
-4.97324e-10
-4.52247e-10
-4.99481e-10
-3.97339e-10
-4.94058e-10
-3.45607e-10
-4.8208e-10
-2.97548e-10
-4.64641e-10
-2.53516e-10
-4.42862e-10
-2.13718e-10
-4.17855e-10
-1.78222e-10
-3.90684e-10
-1.46958e-10
-3.62318e-10
-1.19746e-10
-3.33591e-10
-9.63153e-11
-3.05165e-10
-7.6346e-11
-2.7753e-10
-5.94917e-11
-2.51013e-10
-4.54022e-11
-2.25796e-10
-3.37368e-11
-2.01929e-10
-2.4176e-11
-1.79356e-10
-1.64355e-11
-1.57942e-10
-1.02654e-11
-1.37513e-10
-5.45396e-12
-1.17897e-10
-1.82097e-12
-9.89726e-11
7.75799e-13
-8.06815e-11
2.45703e-12
-6.30776e-11
3.31117e-12
-4.63243e-11
3.43417e-12
-3.07448e-11
2.92187e-12
-1.68331e-11
1.93311e-12
-5.3513e-12
7.72553e-13
2.54053e-12
4.93179e-12
-6.06277e-11
1.55457e-09
-2.67889e-10
1.54115e-09
-4.60364e-10
1.48292e-09
-6.31129e-10
1.38573e-09
-7.75464e-10
1.25761e-09
-8.91083e-10
1.10781e-09
-9.78024e-10
9.45605e-10
-1.03818e-09
7.7925e-10
-1.07461e-09
6.15197e-10
-1.09078e-09
4.57843e-10
-1.09001e-09
3.09823e-10
-1.07526e-09
1.72524e-10
-1.04897e-09
4.6606e-11
-1.01312e-09
-6.76347e-11
-9.69402e-10
-1.69998e-10
-9.19257e-10
-2.60331e-10
-8.63996e-10
-3.38513e-10
-8.04845e-10
-4.04493e-10
-7.42969e-10
-4.58344e-10
-6.79478e-10
-5.003e-10
-6.1542e-10
-5.30765e-10
-5.51783e-10
-5.50301e-10
-4.89489e-10
-5.59617e-10
-4.294e-10
-5.5957e-10
-3.72293e-10
-5.51165e-10
-3.18833e-10
-5.35541e-10
-2.69543e-10
-5.1393e-10
-2.24787e-10
-4.87616e-10
-1.84767e-10
-4.57873e-10
-1.49528e-10
-4.2592e-10
-1.18969e-10
-3.92876e-10
-9.28549e-11
-3.59704e-10
-7.08546e-11
-3.27164e-10
-5.25743e-11
-2.95809e-10
-3.75962e-11
-2.65989e-10
-2.55033e-11
-2.37887e-10
-1.58978e-11
-2.11534e-10
-8.40963e-12
-1.86843e-10
-2.71007e-12
-1.6364e-10
1.48617e-12
-1.41708e-10
4.42191e-12
-1.20832e-10
6.28723e-12
-1.00838e-10
7.25186e-12
-8.16466e-11
7.4478e-12
-6.32737e-11
6.98544e-12
-4.58623e-11
5.95525e-12
-2.97153e-11
4.46593e-12
-1.53444e-11
2.69744e-12
-3.58309e-12
9.95802e-13
4.24236e-12
5.92774e-12
-5.09375e-11
1.80268e-09
-2.89846e-10
1.78006e-09
-5.08625e-10
1.7017e-09
-6.98661e-10
1.57576e-09
-8.5443e-10
1.41338e-09
-9.73829e-10
1.22721e-09
-1.05799e-09
1.02976e-09
-1.11051e-09
8.31774e-10
-1.13638e-09
6.41064e-10
-1.14074e-09
4.62206e-10
-1.12816e-09
2.97246e-10
-1.10234e-09
1.46703e-10
-1.06607e-09
1.03377e-11
-1.02146e-09
-1.12249e-10
-9.70124e-10
-2.21337e-10
-9.1341e-10
-3.17047e-10
-8.5251e-10
-3.99413e-10
-7.88533e-10
-4.6847e-10
-7.22538e-10
-5.2434e-10
-6.55539e-10
-5.67298e-10
-5.88501e-10
-5.97802e-10
-5.22335e-10
-6.16467e-10
-4.57912e-10
-6.24041e-10
-3.96065e-10
-6.21417e-10
-3.3758e-10
-6.0965e-10
-2.83158e-10
-5.89963e-10
-2.3336e-10
-5.63727e-10
-1.88576e-10
-5.32399e-10
-1.49008e-10
-4.97439e-10
-1.1468e-10
-4.60246e-10
-8.54511e-11
-4.22102e-10
-6.10371e-11
-3.84116e-10
-4.10391e-11
-3.47162e-10
-2.49889e-11
-3.11859e-10
-1.2392e-11
-2.78585e-10
-2.76181e-12
-2.47514e-10
4.35855e-12
-2.18652e-10
9.39058e-12
-1.91873e-10
1.27058e-11
-1.66953e-10
1.46203e-11
-1.43622e-10
1.54006e-11
-1.21612e-10
1.527e-11
-1.00708e-10
1.44045e-11
-8.07819e-11
1.29463e-11
-6.18162e-11
1.10125e-11
-4.39291e-11
8.70451e-12
-2.7408e-11
6.14115e-12
-1.27817e-11
3.52162e-12
-9.63693e-13
1.23429e-12
6.5299e-12
7.16216e-12
-4.1847e-11
2.09301e-09
-3.18722e-10
2.05694e-09
-5.68101e-10
1.95108e-09
-7.79158e-10
1.78682e-09
-9.45406e-10
1.57962e-09
-1.06519e-09
1.34699e-09
-1.14142e-09
1.10598e-09
-1.18039e-09
8.70744e-10
-1.18996e-09
6.50635e-10
-1.17765e-09
4.49898e-10
-1.14954e-09
2.69141e-10
-1.11011e-09
1.0727e-10
-1.06236e-09
-3.74127e-11
-1.00826e-09
-1.66344e-10
-9.492e-10
-2.80399e-10
-8.8626e-10
-3.79987e-10
-8.2041e-10
-4.65265e-10
-7.52561e-10
-5.3632e-10
-6.83596e-10
-5.93304e-10
-6.14369e-10
-6.36525e-10
-5.45697e-10
-6.66474e-10
-4.78354e-10
-6.83811e-10
-4.13101e-10
-6.89295e-10
-3.5071e-10
-6.83807e-10
-2.91958e-10
-6.68401e-10
-2.37581e-10
-6.44339e-10
-1.882e-10
-6.13107e-10
-1.44254e-10
-5.76344e-10
-1.05962e-10
-5.3573e-10
-7.33318e-11
-4.92875e-10
-4.61828e-11
-4.49249e-10
-2.41736e-11
-4.06124e-10
-6.83631e-12
-3.64498e-10
6.37621e-12
-3.25071e-10
1.60354e-11
-2.88243e-10
2.27005e-11
-2.54177e-10
2.68917e-11
-2.22841e-10
2.90756e-11
-1.94055e-10
2.96607e-11
-1.67537e-10
2.89952e-11
-1.42956e-10
2.73692e-11
-1.19986e-10
2.50193e-11
-9.83576e-11
2.21326e-11
-7.78959e-11
1.88612e-11
-5.85461e-11
1.5327e-11
-4.03961e-11
1.16372e-11
-2.37191e-11
7.91887e-12
-9.06389e-12
4.39049e-12
2.56459e-12
1.48335e-12
9.43699e-12
8.64537e-12
-3.63855e-11
2.43512e-09
-3.5909e-10
2.37964e-09
-6.44209e-10
2.23619e-09
-8.77963e-10
2.02057e-09
-1.05264e-09
1.75429e-09
-1.16742e-09
1.46178e-09
-1.22804e-09
1.1666e-09
-1.24499e-09
8.87694e-10
-1.23052e-09
6.36171e-10
-1.19542e-09
4.14796e-10
-1.14752e-09
2.21237e-10
-1.09189e-09
5.16456e-11
-1.0314e-09
-9.79025e-11
-9.67511e-10
-2.30234e-10
-9.01044e-10
-3.46868e-10
-8.3264e-10
-4.48391e-10
-7.62939e-10
-5.34965e-10
-6.92595e-10
-6.06663e-10
-6.22254e-10
-6.63645e-10
-5.52547e-10
-7.06231e-10
-4.84067e-10
-7.34954e-10
-4.17364e-10
-7.50515e-10
-3.53013e-10
-7.53647e-10
-2.91675e-10
-7.45145e-10
-2.34099e-10
-7.25977e-10
-1.81057e-10
-6.9738e-10
-1.33252e-10
-6.60909e-10
-9.12031e-11
-6.18392e-10
-5.51735e-11
-5.71759e-10
-2.51696e-11
-5.22879e-10
-9.73397e-13
-4.73445e-10
1.7816e-11
-4.24913e-10
3.1744e-11
-3.78425e-10
4.1437e-11
-3.34762e-10
4.75488e-11
-2.94353e-10
5.07129e-11
-2.57339e-10
5.15069e-11
-2.23633e-10
5.04419e-11
-1.92988e-10
4.79588e-11
-1.65053e-10
4.44283e-11
-1.39425e-10
4.01549e-11
-1.15713e-10
3.53854e-11
-9.35883e-11
3.03147e-11
-7.28257e-11
2.5097e-11
-5.33292e-11
1.98561e-11
-3.5156e-11
1.47018e-11
-1.85651e-11
9.76716e-12
-4.12947e-12
5.2884e-12
7.04321e-12
1.7385e-12
1.29864e-11
1.03833e-11
-3.92147e-11
2.84103e-09
-4.1752e-10
2.75795e-09
-7.44547e-10
2.56322e-09
-1.00249e-09
2.27851e-09
-1.18195e-09
1.93376e-09
-1.2835e-09
1.56332e-09
-1.3172e-09
1.20031e-09
-1.30015e-09
8.70638e-10
-1.25134e-09
5.87361e-10
-1.18602e-09
3.49477e-10
-1.11375e-09
1.48967e-10
-1.03971e-09
-2.23906e-11
-9.6588e-10
-1.71735e-10
-8.92553e-10
-3.03561e-10
-8.19579e-10
-4.19842e-10
-7.46951e-10
-5.21018e-10
-6.74924e-10
-6.06992e-10
-6.03885e-10
-6.77701e-10
-5.34222e-10
-7.33307e-10
-4.66293e-10
-7.74161e-10
-4.00379e-10
-8.00868e-10
-3.36682e-10
-8.14213e-10
-2.75469e-10
-8.1486e-10
-2.17217e-10
-8.03397e-10
-1.62626e-10
-7.80568e-10
-1.12524e-10
-7.47481e-10
-6.77215e-11
-7.0571e-10
-2.88529e-11
-6.57259e-10
3.74125e-12
-6.04353e-10
3.00349e-11
-5.49173e-10
5.02757e-11
-4.93687e-10
6.49309e-11
-4.39567e-10
7.4617e-11
-3.8811e-10
8.00463e-11
-3.40189e-10
8.19549e-11
-2.9626e-10
8.10477e-11
-2.5643e-10
7.79602e-11
-2.20544e-10
7.32425e-11
-1.8827e-10
6.736e-11
-1.5917e-10
6.06958e-11
-1.32761e-10
5.35598e-11
-1.08578e-10
4.61998e-11
-8.6229e-11
3.88099e-11
-6.54364e-11
3.15418e-11
-4.60613e-11
2.45158e-11
-2.81299e-11
1.78397e-11
-1.1889e-11
1.165e-11
2.05986e-12
6.19824e-12
1.24943e-11
1.99508e-12
1.71887e-11
1.23775e-11
-5.71861e-11
3.32557e-09
-5.03153e-10
3.20391e-09
-8.79553e-10
2.93962e-09
-1.16294e-09
2.56189e-09
-1.34143e-09
2.11225e-09
-1.41753e-09
1.63942e-09
-1.40789e-09
1.19066e-09
-1.3399e-09
8.02651e-10
-1.24323e-09
4.9069e-10
-1.13914e-09
2.45389e-10
-1.03823e-09
4.80555e-11
-9.44631e-10
-1.15985e-10
-8.5805e-10
-2.58316e-10
-7.7661e-10
-3.85002e-10
-6.98672e-10
-4.97778e-10
-6.23471e-10
-5.96218e-10
-5.50956e-10
-6.79506e-10
-4.8136e-10
-7.47298e-10
-4.14841e-10
-7.99825e-10
-3.5147e-10
-8.37533e-10
-2.91122e-10
-8.61216e-10
-2.33449e-10
-8.71887e-10
-1.78205e-10
-8.70104e-10
-1.2557e-10
-8.56031e-10
-7.61763e-11
-8.2996e-10
-3.09541e-11
-7.92702e-10
9.12805e-12
-7.45792e-10
4.32806e-11
-6.91411e-10
7.10518e-11
-6.32124e-10
9.23751e-11
-5.70496e-10
1.07524e-10
-5.08835e-10
1.17022e-10
-4.49063e-10
1.21561e-10
-3.92648e-10
1.21933e-10
-3.4056e-10
1.18951e-10
-2.93277e-10
1.13388e-10
-2.50866e-10
1.05933e-10
-2.13087e-10
9.71669e-11
-1.79504e-10
8.75707e-11
-1.49574e-10
7.75294e-11
-1.2272e-10
6.73465e-11
-9.83955e-11
5.72595e-11
-7.61426e-11
4.74518e-11
-5.56288e-11
3.80643e-11
-3.66735e-11
2.9208e-11
-1.92732e-11
2.09837e-11
-3.66492e-12
1.35273e-11
9.51562e-12
7.10032e-12
1.89198e-11
2.24781e-12
2.204e-11
1.46246e-11
-9.98624e-11
3.90667e-09
-6.28237e-10
3.73229e-09
-1.06325e-09
3.37463e-09
-1.3733e-09
2.87194e-09
-1.54246e-09
2.28141e-09
-1.57568e-09
1.67265e-09
-1.49912e-09
1.1141e-09
-1.35638e-09
6.5991e-10
-1.19444e-09
3.28751e-10
-1.0426e-09
9.35443e-11
-9.10129e-10
-8.44131e-11
-7.97948e-10
-2.28165e-10
-7.01078e-10
-3.55184e-10
-6.13974e-10
-4.72105e-10
-5.33067e-10
-5.78685e-10
-4.57004e-10
-6.7228e-10
-3.85813e-10
-7.50697e-10
-3.19873e-10
-8.13237e-10
-2.59214e-10
-8.60484e-10
-2.03649e-10
-8.93099e-10
-1.52549e-10
-9.12317e-10
-1.04688e-10
-9.19748e-10
-5.89509e-11
-9.15841e-10
-1.50269e-11
-8.99954e-10
2.65157e-11
-8.71501e-10
6.45833e-11
-8.30769e-10
9.79403e-11
-7.79149e-10
1.25581e-10
-7.19052e-10
1.46912e-10
-6.53454e-10
1.61811e-10
-5.85394e-10
1.70566e-10
-5.1759e-10
1.73764e-10
-4.52259e-10
1.72172e-10
-3.91055e-10
1.66652e-10
-3.3504e-10
1.58083e-10
-2.84708e-10
1.47291e-10
-2.40073e-10
1.35002e-10
-2.00798e-10
1.21821e-10
-1.66324e-10
1.08231e-10
-1.35985e-10
9.46074e-11
-1.09096e-10
8.12345e-11
-8.5023e-11
6.8327e-11
-6.32353e-11
5.6046e-11
-4.33476e-11
4.45122e-11
-2.51395e-11
3.38194e-11
-8.58053e-12
2.4056e-11
6.09777e-12
1.53517e-11
1.8219e-11
7.97282e-12
2.62974e-11
2.49108e-12
2.75202e-11
1.71152e-11
-1.79681e-10
4.6051e-09
-8.08333e-10
4.36094e-09
-1.31388e-09
3.88018e-09
-1.65258e-09
3.21064e-09
-1.80155e-09
2.43038e-09
-1.76826e-09
1.63935e-09
-1.59179e-09
9.37634e-10
-1.34112e-09
4.09235e-10
-1.09191e-09
7.95472e-11
-8.84407e-10
-1.13961e-10
-7.20584e-10
-2.48236e-10
-5.94347e-10
-3.54401e-10
-4.91996e-10
-4.57534e-10
-4.02426e-10
-5.61675e-10
-3.20151e-10
-6.60959e-10
-2.44098e-10
-7.48334e-10
-1.75276e-10
-8.19518e-10
-1.1478e-10
-8.73733e-10
-6.25895e-11
-9.12675e-10
-1.83594e-11
-9.37329e-10
1.91097e-11
-9.49786e-10
5.2479e-11
-9.53117e-10
8.43745e-11
-9.47736e-10
1.15899e-10
-9.31478e-10
1.46544e-10
-9.02144e-10
1.74859e-10
-8.59083e-10
1.99219e-10
-8.03508e-10
2.183e-10
-7.38133e-10
2.31333e-10
-6.66487e-10
2.38135e-10
-5.92196e-10
2.3902e-10
-5.18474e-10
2.34643e-10
-4.4788e-10
2.2585e-10
-3.82261e-10
2.13568e-10
-3.22757e-10
1.98717e-10
-2.69856e-10
1.82151e-10
-2.23507e-10
1.64611e-10
-1.83259e-10
1.46704e-10
-1.48417e-10
1.28899e-10
-1.18181e-10
1.11545e-10
-9.17434e-11
9.4895e-11
-6.83732e-11
7.91275e-11
-4.74681e-11
6.43696e-11
-2.85899e-11
5.07115e-11
-1.14817e-11
3.82216e-11
3.90854e-12
2.6969e-11
1.73493e-11
1.70697e-11
2.81172e-11
8.78962e-12
3.45766e-11
2.71778e-12
3.35906e-11
1.9832e-11
-3.11134e-10
5.44353e-09
-1.06145e-09
5.11125e-09
-1.65381e-09
4.47253e-09
-2.02595e-09
3.58278e-09
-2.14287e-09
2.5473e-09
-2.01361e-09
1.51009e-09
-1.69292e-09
6.16944e-10
-1.28898e-09
5.29441e-12
-9.2572e-10
-2.83715e-10
-6.57804e-10
-3.81878e-10
-4.69049e-10
-4.36991e-10
-3.38172e-10
-4.85278e-10
-2.37185e-10
-5.5852e-10
-1.47365e-10
-6.51494e-10
-6.27704e-11
-7.45552e-10
1.51031e-11
-8.26207e-10
8.25931e-11
-8.87009e-10
1.37112e-10
-9.28253e-10
1.78938e-10
-9.54502e-10
2.08402e-10
-9.66793e-10
2.27209e-10
-9.68591e-10
2.40438e-10
-9.66346e-10
2.53346e-10
-9.60644e-10
2.68281e-10
-9.46413e-10
2.8466e-10
-9.18522e-10
3.00404e-10
-8.74826e-10
3.13249e-10
-8.16352e-10
3.21466e-10
-7.46349e-10
3.24095e-10
-6.69116e-10
3.20916e-10
-5.89016e-10
3.12286e-10
-5.09843e-10
2.98941e-10
-4.34535e-10
2.81806e-10
-3.65127e-10
2.6186e-10
-3.0281e-10
2.40044e-10
-2.4804e-10
2.17205e-10
-2.0067e-10
1.94066e-10
-1.6012e-10
1.71201e-10
-1.25553e-10
1.4904e-10
-9.60203e-11
1.27887e-10
-7.05911e-11
1.07946e-10
-4.84328e-11
8.93469e-11
-2.88698e-11
7.21706e-11
-1.14144e-11
5.64671e-11
4.22101e-12
4.22708e-11
1.81037e-11
2.96238e-11
2.99952e-11
1.86213e-11
3.91184e-11
9.5209e-12
4.36758e-11
2.91887e-12
4.01914e-11
2.27498e-11
-5.07633e-10
6.44379e-09
-1.40453e-09
6.00815e-09
-2.1069e-09
5.17491e-09
-2.52351e-09
3.99939e-09
-2.5992e-09
2.623e-09
-2.34319e-09
1.25408e-09
-1.82398e-09
9.77398e-11
-1.20466e-09
-6.14029e-10
-6.98658e-10
-7.89714e-10
-3.71113e-10
-7.09422e-10
-1.73489e-10
-6.34613e-10
-5.34394e-11
-6.05327e-10
3.92996e-11
-6.51258e-10
1.32714e-10
-7.44908e-10
2.27555e-10
-8.40394e-10
3.14824e-10
-9.13475e-10
3.85866e-10
-9.5805e-10
4.36027e-10
-9.78413e-10
4.67264e-10
-9.85739e-10
4.7933e-10
-9.78859e-10
4.73958e-10
-9.63219e-10
4.60397e-10
-9.52784e-10
4.48525e-10
-9.48771e-10
4.42446e-10
-9.40334e-10
4.41129e-10
-9.17205e-10
4.41366e-10
-8.75062e-10
4.39978e-10
-8.14965e-10
4.34763e-10
-7.41134e-10
4.24622e-10
-6.58974e-10
4.09364e-10
-5.73756e-10
3.89432e-10
-4.8991e-10
3.6565e-10
-4.10753e-10
3.39008e-10
-3.38485e-10
3.10512e-10
-2.74314e-10
2.81091e-10
-2.18619e-10
2.51551e-10
-1.7113e-10
2.22549e-10
-1.3112e-10
1.94591e-10
-9.75944e-11
1.68034e-10
-6.94632e-11
1.4311e-10
-4.56679e-11
1.19954e-10
-2.52785e-11
9.86329e-11
-7.5504e-12
7.917e-11
8.04717e-12
6.15648e-11
2.1825e-11
4.58096e-11
3.38575e-11
3.19112e-11
4.38921e-11
1.99408e-11
5.10873e-11
1.01338e-11
5.34812e-11
3.08461e-12
4.7239e-11
2.58337e-11
-7.73771e-10
7.6206e-09
-1.84372e-09
7.07809e-09
-2.68906e-09
6.02025e-09
-3.17116e-09
4.48149e-09
-3.20219e-09
2.65402e-09
-2.79824e-09
8.50133e-10
-2.0373e-09
-6.63201e-10
-1.11857e-09
-1.53276e-09
-4.21341e-10
-1.48694e-09
-7.08146e-11
-1.05995e-09
1.24327e-10
-8.29754e-10
2.00792e-10
-6.81791e-10
2.86472e-10
-7.36937e-10
4.02295e-10
-8.6073e-10
5.29101e-10
-9.67199e-10
6.42814e-10
-1.02719e-09
7.27594e-10
-1.04283e-09
7.77224e-10
-1.02804e-09
8.00436e-10
-1.00895e-09
7.94283e-10
-9.72706e-10
7.59183e-10
-9.2812e-10
7.11275e-10
-9.04876e-10
6.68672e-10
-9.06167e-10
6.37574e-10
-9.09235e-10
6.15539e-10
-8.9517e-10
5.9745e-10
-8.56973e-10
5.78953e-10
-7.96468e-10
5.57444e-10
-7.19625e-10
5.31863e-10
-6.33393e-10
5.02198e-10
-5.4409e-10
4.69052e-10
-4.56763e-10
4.33338e-10
-3.75039e-10
3.96072e-10
-3.01219e-10
3.58232e-10
-2.36474e-10
3.20681e-10
-1.81068e-10
2.84129e-10
-1.34578e-10
2.49127e-10
-9.61163e-11
2.16063e-10
-6.4531e-11
1.85188e-10
-3.85887e-11
1.56633e-10
-1.71142e-11
1.30443e-10
9.10585e-13
1.06603e-10
1.62881e-11
8.50673e-11
2.95818e-11
6.5775e-11
4.11156e-11
4.86697e-11
5.09613e-11
3.37178e-11
5.88426e-11
2.09553e-11
6.38481e-11
1.05924e-11
6.38423e-11
3.20449e-12
5.46247e-11
2.90371e-11
-1.0884e-09
8.96634e-09
-2.35001e-09
8.33971e-09
-3.38051e-09
7.05074e-09
-3.96547e-09
5.06644e-09
-3.95436e-09
2.64291e-09
-3.38929e-09
2.85064e-10
-2.35479e-09
-1.6977e-09
-1.18235e-09
-2.7052e-09
-1.80281e-10
-2.48901e-09
2.4393e-10
-1.48416e-09
3.02496e-10
-8.8832e-10
3.09904e-10
-6.89199e-10
4.28364e-10
-8.55396e-10
6.1608e-10
-1.04845e-09
8.16464e-10
-1.16758e-09
9.84443e-10
-1.19517e-09
1.09671e-09
-1.15509e-09
1.15008e-09
-1.08141e-09
1.16901e-09
-1.02788e-09
1.14835e-09
-9.52044e-10
1.07853e-09
-8.58311e-10
9.88152e-10
-8.14495e-10
9.09936e-10
-8.27952e-10
8.51488e-10
-8.50787e-10
8.06826e-10
-8.50508e-10
7.67918e-10
-8.18064e-10
7.29254e-10
-7.57802e-10
6.88223e-10
-6.78594e-10
6.4419e-10
-5.8936e-10
5.97562e-10
-4.97462e-10
5.49197e-10
-4.08399e-10
5.00088e-10
-3.25931e-10
4.51203e-10
-2.52334e-10
4.03399e-10
-1.8867e-10
3.57385e-10
-1.35053e-10
3.13705e-10
-9.08975e-11
2.7274e-10
-5.51513e-11
2.34722e-10
-2.65134e-11
1.99755e-10
-3.62216e-12
1.67841e-10
1.47993e-11
1.38911e-10
2.98392e-11
1.12857e-10
4.23421e-11
8.95487e-11
5.28884e-11
6.88599e-11
6.18022e-11
5.06781e-11
6.91411e-11
3.49234e-11
7.45956e-11
2.15925e-11
7.71778e-11
1.08596e-11
7.45736e-11
3.26706e-12
6.22154e-11
3.2303e-11
-1.37132e-09
1.04137e-08
-2.80223e-09
9.77061e-09
-4.04772e-09
8.29623e-09
-4.77146e-09
5.79018e-09
-4.74783e-09
2.61929e-09
-4.05886e-09
-4.03911e-10
-2.81161e-09
-2.94495e-09
-1.33295e-09
-4.18385e-09
-3.27599e-10
-3.49437e-09
1.99943e-10
-2.0117e-09
5.17015e-11
-7.40077e-10
1.42738e-10
-7.80234e-10
4.10408e-10
-1.12307e-09
7.50695e-10
-1.38873e-09
1.08173e-09
-1.49862e-09
1.33571e-09
-1.44914e-09
1.48357e-09
-1.30295e-09
1.5352e-09
-1.13305e-09
1.55781e-09
-1.05049e-09
1.53068e-09
-9.24921e-10
1.42049e-09
-7.48122e-10
1.28013e-09
-6.74132e-10
1.16527e-09
-7.13096e-10
1.08103e-09
-7.6654e-10
1.01364e-09
-7.83124e-10
9.51637e-10
-7.56057e-10
8.8931e-10
-6.95473e-10
8.25025e-10
-6.1431e-10
7.59186e-10
-5.23521e-10
6.929e-10
-4.31177e-10
6.27338e-10
-3.42838e-10
5.63512e-10
-2.62104e-10
5.02225e-10
-1.91046e-10
4.44089e-10
-1.30534e-10
3.89545e-10
-8.05079e-11
3.38873e-10
-4.02254e-11
2.92218e-10
-8.49596e-12
2.496e-10
1.61042e-11
2.10941e-10
3.50364e-11
1.76089e-10
4.96518e-11
1.44843e-10
6.10845e-11
1.16985e-10
7.01991e-11
9.22983e-11
7.75743e-11
7.05817e-11
8.35171e-11
5.16628e-11
8.80582e-11
3.54116e-11
9.0845e-11
2.17804e-11
9.08075e-11
1.08992e-11
8.54532e-11
3.26125e-12
6.9851e-11
3.55629e-11
-1.42751e-09
1.17364e-08
-2.86876e-09
1.12119e-08
-4.27014e-09
9.69761e-09
-5.09874e-09
6.61878e-09
-5.02033e-09
2.54088e-09
-4.30323e-09
-1.12101e-09
-2.95201e-09
-4.29616e-09
-1.30633e-09
-5.82953e-09
-4.76064e-10
-4.32463e-09
-1.38301e-10
-2.34946e-09
-2.22755e-10
-6.55624e-10
-1.07604e-10
-8.95385e-10
3.48608e-10
-1.57928e-09
8.78208e-10
-1.91833e-09
1.36847e-09
-1.98888e-09
1.72178e-09
-1.80244e-09
1.89542e-09
-1.4766e-09
1.90868e-09
-1.14631e-09
1.94842e-09
-1.09022e-09
1.91509e-09
-8.91597e-10
1.75987e-09
-5.92908e-10
1.56633e-09
-4.80586e-10
1.4254e-09
-5.72172e-10
1.32418e-09
-6.65316e-10
1.23536e-09
-6.94303e-10
1.14706e-09
-6.67752e-10
1.05641e-09
-6.04829e-10
9.64415e-10
-5.22311e-10
8.73173e-10
-4.32279e-10
7.84636e-10
-3.4264e-10
7.00192e-10
-2.58394e-10
6.20696e-10
-1.82607e-10
5.46612e-10
-1.16962e-10
4.78149e-10
-6.20705e-11
4.15348e-10
-1.77063e-11
3.58129e-10
1.69941e-11
3.06324e-10
4.33087e-11
2.59693e-10
6.2736e-11
2.17938e-10
7.67907e-11
1.80731e-10
8.6859e-11
1.47728e-10
9.40881e-11
1.18591e-10
9.93344e-11
9.30115e-11
1.03153e-10
7.07128e-11
1.05815e-10
5.14603e-11
1.0731e-10
3.50721e-11
1.07232e-10
2.1452e-11
1.04426e-10
1.06774e-11
9.6225e-11
3.17674e-12
7.73487e-11
3.87377e-11
-8.82898e-10
1.23871e-08
-1.89943e-09
1.22284e-08
-3.17715e-09
1.09753e-08
-3.9649e-09
7.40652e-09
-3.707e-09
2.28298e-09
-3.04316e-09
-1.78485e-09
-1.83619e-09
-5.50314e-09
-4.15604e-10
-7.25011e-09
-4.48308e-10
-4.29193e-09
-9.20517e-10
-1.87725e-09
-8.96033e-10
-6.80107e-10
-3.41197e-10
-1.45022e-09
3.24478e-10
-2.24495e-09
1.11766e-09
-2.71152e-09
1.76037e-09
-2.63159e-09
2.20588e-09
-2.24795e-09
2.39923e-09
-1.66996e-09
2.27525e-09
-1.02233e-09
2.31777e-09
-1.13274e-09
2.27086e-09
-8.44694e-10
2.04998e-09
-3.72028e-10
1.81319e-09
-2.43794e-10
1.69133e-09
-4.50311e-10
1.58682e-09
-5.60809e-10
1.47361e-09
-5.8109e-10
1.35173e-09
-5.45872e-10
1.22576e-09
-4.78856e-10
1.10074e-09
-3.97287e-10
9.80593e-10
-3.12138e-10
8.67781e-10
-2.29829e-10
7.63496e-10
-1.5411e-10
6.68098e-10
-8.72091e-11
5.81463e-10
-3.03256e-11
5.03217e-10
1.61762e-11
4.32881e-10
5.26303e-11
3.6993e-10
7.99456e-11
3.13822e-10
9.94171e-11
2.64013e-10
1.12544e-10
2.19965e-10
1.20839e-10
1.81155e-10
1.25669e-10
1.47088e-10
1.28156e-10
1.17308e-10
1.29114e-10
9.14113e-11
1.29048e-10
6.90482e-11
1.28177e-10
4.99246e-11
1.26433e-10
3.38067e-11
1.23348e-10
2.05477e-11
1.17682e-10
1.01652e-11
1.06604e-10
3.00492e-12
8.45057e-11
4.1741e-11
1.08976e-09
1.10743e-08
1.61254e-09
1.17056e-08
1.10418e-09
1.14837e-08
5.12839e-10
7.99787e-09
9.42552e-10
1.85327e-09
1.2568e-09
-2.0991e-09
1.70862e-09
-5.95496e-09
2.36954e-09
-7.91103e-09
8.08118e-10
-2.73051e-09
-1.95467e-09
8.85537e-10
-1.72719e-09
-9.07588e-10
-7.76489e-10
-2.40092e-09
6.65473e-10
-3.68691e-09
1.70486e-09
-3.75091e-09
2.39227e-09
-3.319e-09
2.7916e-09
-2.64729e-09
3.10917e-09
-1.98753e-09
2.93619e-09
-8.49343e-10
2.80064e-09
-9.97196e-10
2.34297e-09
-3.87022e-10
2.11861e-09
-1.47663e-10
2.07191e-09
-1.97094e-10
2.01651e-09
-3.9491e-10
1.88755e-09
-4.31856e-10
1.72938e-09
-4.22914e-10
1.5589e-09
-3.75397e-10
1.38816e-09
-3.08113e-10
1.22494e-09
-2.34064e-10
1.07354e-09
-1.60742e-10
9.35812e-10
-9.20995e-11
8.12029e-10
-3.03267e-11
7.01607e-10
2.32138e-11
6.03563e-10
6.77182e-11
5.16793e-10
1.02947e-10
4.40202e-10
1.29222e-10
3.72764e-10
1.47384e-10
3.13534e-10
1.58647e-10
2.61647e-10
1.64431e-10
2.16313e-10
1.66173e-10
1.76814e-10
1.65169e-10
1.42506e-10
1.62465e-10
1.12819e-10
1.58801e-10
8.72625e-11
1.54605e-10
6.54177e-11
1.50021e-10
4.69362e-11
1.44913e-10
3.15363e-11
1.38746e-10
1.90203e-11
1.30196e-10
9.33965e-12
1.16282e-10
2.73955e-12
9.11026e-11
4.4479e-11
5.20844e-09
5.95194e-09
9.27372e-09
7.64033e-09
9.84084e-09
1.09166e-08
9.93911e-09
7.89959e-09
9.52625e-09
2.26614e-09
8.33224e-09
-9.05086e-10
6.70227e-09
-4.32499e-09
5.51702e-09
-6.72579e-09
-8.49476e-10
3.63598e-09
-2.06123e-09
2.09729e-09
-6.41259e-10
-2.32756e-09
1.02207e-09
-4.06425e-09
2.18127e-09
-4.84612e-09
2.9906e-09
-4.56024e-09
3.37901e-09
-3.70741e-09
3.39194e-09
-2.66022e-09
3.09089e-09
-1.68648e-09
3.31141e-09
-1.06987e-09
2.97906e-09
-6.64848e-10
3.05797e-09
-4.65929e-10
2.97994e-09
-6.96289e-11
2.80452e-09
-2.16797e-11
2.51194e-09
-1.02329e-10
2.24662e-09
-1.66536e-10
1.99118e-09
-1.67475e-10
1.75e-09
-1.34209e-10
1.52659e-09
-8.47066e-11
1.32346e-09
-3.09359e-11
1.14171e-09
2.10105e-11
9.81003e-10
6.86043e-11
8.40016e-10
1.10661e-10
7.16901e-10
1.46329e-10
6.09678e-10
1.74943e-10
5.16447e-10
1.96178e-10
4.35482e-10
2.10188e-10
3.65253e-10
2.17612e-10
3.04421e-10
2.19479e-10
2.5181e-10
2.17042e-10
2.06391e-10
2.11592e-10
1.67266e-10
2.04295e-10
1.33653e-10
1.96078e-10
1.04883e-10
1.87571e-10
8.03896e-11
1.79099e-10
5.96969e-11
1.70713e-10
4.24105e-11
1.62197e-10
2.82066e-11
1.52948e-10
1.68385e-11
1.41562e-10
8.18578e-12
1.24933e-10
2.37634e-12
9.69098e-11
4.68545e-11
5.32776e-09
1.01163e-09
1.14468e-08
1.52127e-09
1.97072e-08
2.65626e-09
2.31836e-08
4.42318e-09
2.02802e-08
5.16947e-09
1.60352e-08
3.33996e-09
1.08333e-08
8.76883e-10
5.62976e-09
-1.52225e-09
-7.54653e-10
1.00204e-08
3.49433e-10
9.93207e-10
2.07925e-09
-4.05738e-09
3.53424e-09
-5.51923e-09
4.30085e-09
-5.61273e-09
4.73546e-09
-4.99484e-09
4.76713e-09
-3.73908e-09
4.45231e-09
-2.34541e-09
3.99262e-09
-1.22679e-09
3.7104e-09
-7.87653e-10
3.32583e-09
-2.80281e-10
3.2864e-09
-4.26491e-10
3.29407e-09
-7.7308e-11
3.07318e-09
1.99211e-10
2.78597e-09
1.84888e-10
2.47084e-09
1.48594e-10
2.16243e-09
1.40934e-10
1.87391e-09
1.54306e-10
1.61161e-09
1.77597e-10
1.37804e-09
2.02627e-10
1.17316e-09
2.2589e-10
9.95284e-10
2.46486e-10
8.41849e-10
2.64096e-10
7.10005e-10
2.78175e-10
5.96943e-10
2.88005e-10
5.00096e-10
2.93026e-10
4.17198e-10
2.93086e-10
3.46286e-10
2.88523e-10
2.85673e-10
2.80091e-10
2.33915e-10
2.68799e-10
1.89778e-10
2.55729e-10
1.5221e-10
2.41864e-10
1.20318e-10
2.2797e-10
9.33536e-11
2.14535e-10
7.06928e-11
2.01759e-10
5.18196e-11
1.89586e-10
3.63056e-11
1.7771e-10
2.37929e-11
1.6546e-10
1.39895e-11
1.51364e-10
6.69859e-12
1.32222e-10
1.9144e-12
1.01692e-10
4.87684e-11
5.90438e-10
4.47449e-10
1.54373e-09
5.67977e-10
3.86803e-09
3.31957e-10
7.44681e-09
8.44397e-10
9.0958e-09
3.52048e-09
9.66232e-09
2.77345e-09
7.78712e-09
2.75209e-09
-1.1856e-09
7.45047e-09
7.11979e-10
8.12282e-09
8.25354e-09
-6.54835e-09
6.65872e-09
-2.46257e-09
6.2454e-09
-5.10591e-09
6.34468e-09
-5.71202e-09
6.42616e-09
-5.07632e-09
6.1634e-09
-3.47632e-09
5.61081e-09
-1.79283e-09
5.04406e-09
-6.60032e-10
4.39158e-09
-1.35182e-10
4.08208e-09
2.92207e-11
3.42996e-09
2.25629e-10
3.18412e-09
1.68539e-10
3.07294e-09
3.10389e-10
2.84498e-09
4.12846e-10
2.54054e-09
4.53032e-10
2.21804e-09
4.63433e-10
1.90856e-09
4.63789e-10
1.62641e-09
4.59745e-10
1.37664e-09
4.52399e-10
1.15945e-09
4.43079e-10
9.72729e-10
4.33208e-10
8.13366e-10
4.2346e-10
6.77973e-10
4.13569e-10
5.63268e-10
4.0271e-10
4.66259e-10
3.90035e-10
3.84308e-10
3.75037e-10
3.15135e-10
3.57695e-10
2.56794e-10
3.38431e-10
2.07634e-10
3.1796e-10
1.66263e-10
2.971e-10
1.31518e-10
2.7661e-10
1.02429e-10
2.5706e-10
7.81959e-11
2.38768e-10
5.81616e-11
2.21792e-10
4.17882e-11
2.05958e-10
2.86296e-11
1.90868e-10
1.83048e-11
1.75784e-10
1.04811e-11
1.59187e-10
4.88318e-12
1.37819e-10
1.35577e-12
1.05219e-10
5.0124e-11
1.58905e-10
1.88583e-10
5.98132e-10
1.2875e-10
1.04321e-09
-1.13124e-10
1.63399e-09
2.53615e-10
3.4916e-09
1.66288e-09
2.88818e-09
3.37686e-09
2.42451e-09
3.21575e-09
9.33426e-09
5.40726e-10
2.22641e-08
-4.807e-09
1.48025e-08
9.13261e-10
7.21047e-09
5.12943e-09
7.0542e-09
-4.94964e-09
6.56266e-09
-5.22048e-09
7.05328e-09
-5.56694e-09
6.8915e-09
-3.31453e-09
6.16927e-09
-1.0706e-09
5.35525e-09
1.53988e-10
4.74402e-09
4.76051e-10
4.15229e-09
6.20948e-10
3.78824e-09
5.89684e-10
3.45223e-09
5.04543e-10
3.17954e-09
5.83088e-10
2.88011e-09
7.12275e-10
2.53056e-09
8.02578e-10
2.1808e-09
8.13195e-10
1.85737e-09
7.87219e-10
1.56871e-09
7.48396e-10
1.3159e-09
7.0521e-10
1.09749e-09
6.61495e-10
9.10821e-10
6.19878e-10
7.52609e-10
5.81672e-10
6.19349e-10
5.46829e-10
5.07613e-10
5.14447e-10
4.14228e-10
4.8342e-10
3.36361e-10
4.52903e-10
2.71544e-10
4.22511e-10
2.17665e-10
3.9231e-10
1.7294e-10
3.62684e-10
1.35882e-10
3.34158e-10
1.05263e-10
3.07229e-10
8.00757e-11
2.82247e-10
5.95034e-11
2.5934e-10
4.2884e-11
2.3841e-10
2.96805e-11
2.1916e-10
1.94459e-11
2.01102e-10
1.17893e-11
1.83441e-10
6.34444e-12
1.64632e-10
2.75627e-12
1.41407e-10
7.06494e-13
1.07268e-10
5.08305e-11
-8.41529e-12
4.36257e-11
1.87232e-10
-6.68974e-11
3.0945e-10
-2.35342e-10
6.1753e-10
-5.44655e-11
1.58807e-09
6.92343e-10
3.18722e-09
1.77771e-09
3.99489e-09
2.40808e-09
2.02341e-09
2.51221e-09
-3.46055e-09
6.76954e-10
-6.61449e-09
4.06721e-09
2.14111e-09
-3.62617e-09
3.53428e-09
-6.34281e-09
3.3461e-09
-5.03231e-09
6.18472e-09
-8.40557e-09
6.4942e-09
-3.62401e-09
5.7438e-09
-3.20205e-10
5.02945e-09
8.68346e-10
4.39177e-09
1.11373e-09
4.06653e-09
9.46183e-10
3.86232e-09
7.93899e-10
3.58154e-09
7.85323e-10
3.24023e-09
9.24396e-10
2.84874e-09
1.10376e-09
2.42433e-09
1.22699e-09
2.04448e-09
1.19304e-09
1.72123e-09
1.11047e-09
1.44135e-09
1.02827e-09
1.19819e-09
9.48373e-10
9.88709e-10
8.70979e-10
8.10258e-10
7.98329e-10
6.5986e-10
7.3207e-10
5.34241e-10
6.72448e-10
4.30061e-10
6.18628e-10
3.44131e-10
5.6935e-10
2.73549e-10
5.23486e-10
2.15758e-10
4.80301e-10
1.68568e-10
4.39501e-10
1.30134e-10
4.01118e-10
9.8935e-11
3.65357e-10
7.37292e-11
3.32435e-10
5.35187e-11
3.02457e-10
3.75058e-11
2.75352e-10
2.50547e-11
2.50861e-10
1.56536e-11
2.28561e-10
8.87589e-12
2.07879e-10
4.3334e-12
1.87983e-10
1.63481e-12
1.67331e-10
3.44611e-13
1.42697e-10
-2.864e-14
1.07641e-10
5.0802e-11
-9.78908e-11
-3.36825e-11
-2.52068e-11
-1.39581e-10
1.35333e-11
-2.74082e-10
2.00125e-10
-2.41057e-10
7.8829e-10
1.04178e-10
1.88164e-09
6.84362e-10
2.99219e-09
1.29753e-09
3.76169e-09
1.74271e-09
2.25681e-09
2.18183e-09
7.67679e-09
-1.35277e-09
1.2375e-08
-8.32443e-09
-7.29582e-09
1.33281e-08
3.06e-09
-1.53881e-08
4.49935e-09
-9.84492e-09
3.44102e-09
-2.56569e-09
4.07364e-09
-9.52822e-10
3.89046e-09
1.05153e-09
3.7616e-09
1.24259e-09
3.79807e-09
9.09714e-10
3.82007e-09
7.71897e-10
3.59596e-09
1.00943e-09
3.19974e-09
1.32062e-09
2.72428e-09
1.57922e-09
2.19477e-09
1.75651e-09
1.81692e-09
1.57088e-09
1.51725e-09
1.41015e-09
1.25831e-09
1.28721e-09
1.03289e-09
1.17379e-09
8.38861e-10
1.06501e-09
6.74451e-10
9.62739e-10
5.37201e-10
8.6932e-10
4.24041e-10
7.85609e-10
3.31668e-10
7.11001e-10
2.56865e-10
6.44154e-10
1.96683e-10
5.83667e-10
1.48532e-10
5.28452e-10
1.10203e-10
4.7783e-10
7.9857e-11
4.31464e-10
5.59974e-11
3.89218e-10
3.74258e-11
3.51007e-10
2.31971e-11
3.16685e-10
1.25727e-11
2.85975e-10
4.97725e-12
2.58455e-10
-4.99253e-14
2.33587e-10
-2.89925e-12
2.10728e-10
-3.93603e-12
1.89019e-10
-3.56811e-12
1.66962e-10
-2.30742e-12
1.41437e-10
-8.29447e-13
1.06163e-10
4.99729e-11
-1.54027e-10
-6.27276e-11
-1.5488e-10
-1.38729e-10
-1.88604e-10
-2.40357e-10
-1.65701e-10
-2.63961e-10
5.61223e-11
-1.17645e-10
5.13506e-10
2.26978e-10
1.1391e-09
6.71929e-10
1.64037e-09
1.24145e-09
2.54135e-09
1.28085e-09
2.19115e-09
-1.00256e-09
-4.59651e-09
-1.53677e-09
3.67171e-09
5.05983e-09
1.13356e-08
-2.3052e-08
-4.11496e-10
1.90215e-09
5.49964e-10
-3.52715e-09
1.75774e-09
-2.1606e-09
2.17135e-09
6.37921e-10
3.02075e-09
3.93197e-10
3.56586e-09
3.64603e-10
3.80224e-09
5.35511e-10
3.69205e-09
1.11962e-09
3.07637e-09
1.9363e-09
2.3905e-09
2.26509e-09
1.87892e-09
2.26809e-09
1.56386e-09
1.88594e-09
1.28629e-09
1.68771e-09
1.04349e-09
1.53001e-09
8.33284e-10
1.384e-09
6.5523e-10
1.24306e-09
5.07622e-10
1.11035e-09
3.8738e-10
9.89563e-10
2.90799e-10
8.8219e-10
2.14139e-10
7.8766e-10
1.53934e-10
7.04359e-10
1.07124e-10
6.30477e-10
7.10952e-11
5.64481e-10
4.36719e-11
5.05253e-10
2.30835e-11
4.52053e-10
7.92008e-12
4.04382e-10
-2.91754e-12
3.61845e-10
-1.02727e-11
3.2404e-10
-1.4784e-11
2.90485e-10
-1.69398e-11
2.60609e-10
-1.71181e-11
2.33764e-10
-1.56451e-11
2.09254e-10
-1.28552e-11
1.86229e-10
-9.16137e-12
1.63268e-10
-5.15021e-12
1.37426e-10
-1.68663e-12
1.027e-10
4.82866e-11
-1.93893e-10
-5.18166e-11
-2.39125e-10
-9.34969e-11
-3.28589e-10
-1.50894e-10
-4.25808e-10
-1.66741e-10
-4.65625e-10
-7.78279e-11
-3.90395e-10
1.51748e-10
-2.12362e-10
4.93897e-10
1.7933e-10
8.49755e-10
7.12105e-10
7.48074e-10
4.86139e-10
-7.76594e-10
9.00552e-10
-1.95118e-09
8.25454e-09
-2.29416e-09
-7.97819e-09
-6.81927e-09
-8.20655e-09
2.13052e-09
-3.31384e-09
-8.41986e-09
-2.77443e-09
-2.70001e-09
1.49519e-09
-3.6317e-09
3.21596e-09
-1.32757e-09
3.81547e-09
-2.34908e-10
3.68659e-09
6.64389e-10
3.2536e-09
1.55261e-09
2.74655e-09
2.44335e-09
2.27647e-09
2.73517e-09
1.78074e-09
2.76382e-09
1.39616e-09
2.27052e-09
1.0776e-09
2.00627e-09
8.16012e-10
1.7916e-09
6.06249e-10
1.59376e-09
4.40757e-10
1.40855e-09
3.11777e-10
1.23932e-09
2.12334e-10
1.08901e-09
1.36533e-10
9.5799e-10
7.95188e-11
8.44674e-10
3.73244e-11
7.46553e-10
6.72908e-12
6.61073e-10
-1.48642e-11
5.86074e-10
-2.95256e-11
5.19916e-10
-3.88802e-11
4.61409e-10
-4.41778e-11
4.0968e-10
-4.63578e-11
3.64025e-10
-4.611e-11
3.23792e-10
-4.39333e-11
2.88308e-10
-4.01874e-11
2.56862e-10
-3.515e-11
2.28725e-10
-2.90669e-11
2.0317e-10
-2.22206e-11
1.79382e-10
-1.50201e-11
1.56068e-10
-8.12138e-12
1.30527e-10
-2.57996e-12
9.71592e-11
4.57067e-11
-2.13379e-10
-1.62482e-11
-2.77127e-10
-2.97493e-11
-3.82649e-10
-4.53717e-11
-5.20175e-10
-2.92148e-11
-6.58937e-10
6.09338e-11
-7.57851e-10
2.50662e-10
-8.08871e-10
5.44916e-10
-8.04502e-10
8.45386e-10
-8.44032e-10
7.87604e-10
-1.36239e-09
-2.58235e-10
-1.62725e-09
-1.68633e-09
3.76559e-10
-4.29796e-09
-4.14734e-09
-2.29537e-09
-2.61624e-09
5.99413e-10
-3.46042e-09
-7.57568e-09
4.96898e-09
-1.11294e-08
5.93086e-09
-4.59357e-09
5.88865e-09
-1.28537e-09
5.13116e-09
5.22575e-10
4.19872e-09
1.59683e-09
2.95863e-09
2.7927e-09
2.47644e-09
2.92554e-09
1.70814e-09
3.50346e-09
1.55779e-09
2.91418e-09
1.15425e-09
2.67405e-09
8.01995e-10
2.35853e-09
5.29782e-10
2.06381e-09
3.29651e-10
1.79389e-09
1.85974e-10
1.55223e-09
8.39592e-11
1.34134e-09
1.23438e-11
1.16062e-09
-3.69761e-11
1.00731e-09
-6.98276e-11
8.77525e-10
-9.04833e-11
7.67208e-10
-1.02136e-10
6.72725e-10
-1.07201e-10
5.91139e-10
-1.07504e-10
5.2022e-10
-1.04412e-10
4.58318e-10
-9.89249e-11
4.04194e-10
-9.1751e-11
3.56851e-10
-8.33738e-11
3.15414e-10
-7.41101e-11
2.79043e-10
-6.4166e-11
2.46917e-10
-5.36895e-11
2.18248e-10
-4.28279e-11
1.92308e-10
-3.18e-11
1.68354e-10
-2.10004e-11
1.45268e-10
-1.11485e-11
1.20675e-10
-3.48805e-12
8.94989e-11
4.22186e-11
-2.13874e-10
2.78851e-11
-2.76115e-10
3.24924e-11
-3.66396e-10
4.49091e-11
-4.80305e-10
8.46939e-11
-6.00066e-10
1.80695e-10
-7.01306e-10
3.51902e-10
-7.55622e-10
5.99232e-10
-7.54573e-10
8.44337e-10
-7.8192e-10
8.14951e-10
-1.1576e-09
1.17444e-10
-1.51967e-09
-1.32426e-09
-2.59e-09
-3.22763e-09
-1.25966e-09
-3.6257e-09
1.96523e-09
-2.62548e-09
9.69401e-09
-1.53045e-08
8.47166e-09
-9.90706e-09
8.1307e-09
-4.25261e-09
6.87918e-09
-3.38494e-11
5.34945e-09
2.05231e-09
3.95141e-09
2.99487e-09
3.16706e-09
3.57705e-09
2.33678e-09
3.75582e-09
1.84393e-09
3.99631e-09
1.18135e-09
3.57676e-09
7.10383e-10
3.14502e-09
3.65403e-10
2.70351e-09
1.30306e-10
2.29891e-09
-2.28569e-11
1.94705e-09
-1.19638e-10
1.64901e-09
-1.78313e-10
1.40001e-09
-2.11303e-10
1.19361e-09
-2.2687e-10
1.02288e-09
-2.30563e-10
8.81218e-10
-2.26196e-10
7.62841e-10
-2.16455e-10
6.62985e-10
-2.03261e-10
5.77945e-10
-1.87985e-10
5.04944e-10
-1.71589e-10
4.41922e-10
-1.54718e-10
3.87323e-10
-1.37778e-10
3.39911e-10
-1.20992e-10
2.98628e-10
-1.0446e-10
2.6251e-10
-8.82033e-11
2.30661e-10
-7.22232e-11
2.02268e-10
-5.65527e-11
1.76638e-10
-4.13358e-11
1.53137e-10
-2.69439e-11
1.30876e-10
-1.41526e-11
1.07884e-10
-4.38764e-12
7.97337e-11
3.78307e-11
-2.02758e-10
6.85528e-11
-2.52191e-10
8.19255e-11
-3.14017e-10
1.06735e-10
-3.86616e-10
1.57293e-10
-4.54631e-10
2.4871e-10
-4.94348e-10
3.91619e-10
-4.78726e-10
5.8361e-10
-4.02757e-10
7.68369e-10
-3.50836e-10
7.6303e-10
-5.40451e-10
3.07059e-10
-1.18075e-09
-6.83957e-10
-2.32617e-09
-2.08221e-09
-2.44917e-09
-3.50271e-09
-7.926e-10
-4.28204e-09
-4.66752e-09
-1.14295e-08
1.07727e-09
-1.56518e-08
3.5073e-09
-6.68264e-09
3.81623e-09
-3.42782e-10
3.39853e-09
2.47001e-09
2.29317e-09
4.10022e-09
1.5766e-09
4.29363e-09
8.18223e-10
4.5142e-09
4.84542e-10
4.32999e-09
1.31892e-10
3.92941e-09
-1.27528e-10
3.40444e-09
-2.99109e-10
2.87509e-09
-4.01309e-10
2.40111e-09
-4.53765e-10
1.99951e-09
-4.72487e-10
1.66773e-09
-4.69356e-10
1.39688e-09
-4.52512e-10
1.17677e-09
-4.27375e-10
9.97738e-10
-3.97522e-10
8.51365e-10
-3.65337e-10
7.30655e-10
-3.32422e-10
6.30069e-10
-2.99848e-10
5.45371e-10
-2.68308e-10
4.73404e-10
-2.38213e-10
4.11826e-10
-2.09757e-10
3.58868e-10
-1.82977e-10
3.1313e-10
-1.57791e-10
2.73442e-10
-1.34049e-10
2.38769e-10
-1.11573e-10
2.08185e-10
-9.02004e-11
1.80895e-10
-6.984e-11
1.56277e-10
-5.05535e-11
1.3385e-10
-3.2682e-11
1.13004e-10
-1.70498e-11
9.22513e-11
-5.2541e-12
6.79376e-11
3.25765e-11
-1.84767e-10
1.00032e-10
-2.18334e-10
1.15493e-10
-2.55987e-10
1.44389e-10
-2.92006e-10
1.93312e-10
-3.1329e-10
2.69994e-10
-3.00726e-10
3.79055e-10
-2.32748e-10
5.15632e-10
-1.09417e-10
6.45038e-10
-1.31198e-11
6.66732e-10
-1.08037e-10
4.01976e-10
-6.21036e-10
-1.70958e-10
-1.76891e-09
-9.3434e-10
-3.41305e-09
-1.85857e-09
-3.55461e-09
-4.14049e-09
-6.23724e-09
-8.74691e-09
-1.51457e-09
-2.03745e-08
7.57759e-10
-8.95497e-09
8.09601e-10
-3.94626e-10
2.84478e-10
2.99513e-09
-1.88485e-10
4.57318e-09
-8.79332e-10
4.98447e-09
-1.20561e-09
4.84048e-09
-1.24795e-09
4.37233e-09
-1.20074e-09
3.8822e-09
-1.13821e-09
3.3419e-09
-1.07148e-09
2.80836e-09
-1.00017e-09
2.3298e-09
-9.25233e-10
1.92457e-09
-8.48743e-10
1.59124e-09
-7.72894e-10
1.32103e-09
-6.99408e-10
1.10328e-09
-6.29419e-10
9.27749e-10
-5.63581e-10
7.85527e-10
-5.02227e-10
6.693e-10
-4.45471e-10
5.73312e-10
-3.93279e-10
4.93179e-10
-3.45499e-10
4.25623e-10
-3.01883e-10
3.6821e-10
-2.62108e-10
3.19092e-10
-2.25795e-10
2.76818e-10
-1.92534e-10
2.40181e-10
-1.61908e-10
2.08143e-10
-1.33525e-10
1.79802e-10
-1.07054e-10
1.54425e-10
-8.22784e-11
1.31501e-10
-5.91722e-11
1.10744e-10
-3.80428e-11
9.18746e-11
-1.97547e-11
7.3963e-11
-6.06241e-12
5.42453e-11
2.65142e-11
-1.6601e-10
1.20537e-10
-1.86337e-10
1.3582e-10
-2.04027e-10
1.62078e-10
-2.13576e-10
2.02862e-10
-2.04749e-10
2.61167e-10
-1.6311e-10
3.37416e-10
-7.29902e-11
4.25512e-10
6.76158e-11
5.04432e-10
2.15371e-10
5.18977e-10
2.33687e-10
3.83661e-10
-2.96047e-11
9.23335e-11
-6.84573e-10
-2.79372e-10
-1.82122e-09
-7.21922e-10
-4.20304e-09
-1.75867e-09
-5.73475e-09
-7.21519e-09
-2.92768e-09
-2.31816e-08
-1.83497e-09
-1.00477e-08
-2.04744e-09
-1.82156e-10
-2.78209e-09
3.72978e-09
-3.05803e-09
4.84912e-09
-3.0937e-09
5.02015e-09
-2.9371e-09
4.68388e-09
-2.70018e-09
4.13542e-09
-2.39459e-09
3.57661e-09
-2.09079e-09
3.03811e-09
-1.82088e-09
2.53845e-09
-1.58875e-09
2.09768e-09
-1.38946e-09
1.72528e-09
-1.21738e-09
1.41916e-09
-1.06779e-09
1.17144e-09
-9.36958e-10
9.72443e-10
-8.21924e-10
8.12714e-10
-7.20359e-10
6.83961e-10
-6.30404e-10
5.79344e-10
-5.5056e-10
4.93467e-10
-4.79585e-10
4.22202e-10
-4.16416e-10
3.62453e-10
-3.60106e-10
3.11899e-10
-3.0979e-10
2.68776e-10
-2.64665e-10
2.31692e-10
-2.23984e-10
1.99502e-10
-1.87068e-10
1.71227e-10
-1.53313e-10
1.46048e-10
-1.22226e-10
1.23338e-10
-9.34632e-11
1.02738e-10
-6.69167e-11
8.4197e-11
-4.28577e-11
6.78153e-11
-2.21836e-11
5.32889e-11
-6.78811e-12
3.88499e-11
1.97264e-11
-1.50131e-10
1.31662e-10
-1.58754e-10
1.44443e-10
-1.62205e-10
1.6553e-10
-1.55502e-10
1.96159e-10
-1.31058e-10
2.36723e-10
-7.8971e-11
2.85329e-10
8.08594e-12
3.38455e-10
1.36329e-10
3.76189e-10
2.79622e-10
3.75684e-10
3.64657e-10
2.98626e-10
3.14066e-10
1.42924e-10
9.68592e-11
-6.21652e-11
-2.90776e-10
-3.34287e-10
-1.02471e-09
-1.02474e-09
-4.2779e-09
-3.962e-09
-7.14913e-09
-2.03104e-08
-7.42645e-09
-9.77035e-09
-6.80659e-09
-8.02022e-10
-6.35939e-09
3.28258e-09
-5.89015e-09
4.37988e-09
-5.28093e-09
4.41093e-09
-4.63249e-09
4.03544e-09
-4.0139e-09
3.51683e-09
-3.44031e-09
3.00303e-09
-2.92789e-09
2.52569e-09
-2.48763e-09
2.09818e-09
-2.11759e-09
1.72764e-09
-1.80868e-09
1.41638e-09
-1.55047e-09
1.16095e-09
-1.33351e-09
9.54484e-10
-1.14995e-09
7.88887e-10
-9.93513e-10
6.56273e-10
-8.59242e-10
5.49689e-10
-7.43277e-10
4.63378e-10
-6.42596e-10
3.92785e-10
-5.54804e-10
3.34409e-10
-4.7796e-10
2.85608e-10
-4.10448e-10
2.44387e-10
-3.50889e-10
2.09217e-10
-2.98081e-10
1.78884e-10
-2.50965e-10
1.52386e-10
-2.08615e-10
1.28878e-10
-1.70238e-10
1.07671e-10
-1.3519e-10
8.82897e-11
-1.03016e-10
7.05643e-11
-7.35301e-11
5.47113e-11
-4.69697e-11
4.12553e-11
-2.42588e-11
3.05782e-11
-7.4083e-12
2.19998e-11
1.23184e-11
-1.37004e-10
1.35004e-10
-1.37282e-10
1.44721e-10
-1.31694e-10
1.59942e-10
-1.1633e-10
1.80795e-10
-8.58618e-11
2.06254e-10
-3.70278e-11
2.36495e-10
3.81284e-11
2.63299e-10
1.36722e-10
2.77595e-10
2.46051e-10
2.66356e-10
3.31055e-10
2.13621e-10
3.56617e-10
1.17363e-10
3.13734e-10
-1.9282e-11
2.17228e-10
-2.37782e-10
-1.47075e-10
-6.60433e-10
-2.36436e-09
-1.74472e-09
-1.07868e-08
-1.18879e-08
-1.12736e-08
-9.28356e-09
-1.06563e-08
-1.41931e-09
-9.49388e-09
2.12018e-09
-8.26191e-09
3.1479e-09
-7.09543e-09
3.24445e-09
-6.03398e-09
2.97399e-09
-5.1049e-09
2.58775e-09
-4.29971e-09
2.19784e-09
-3.61168e-09
1.83766e-09
-3.0329e-09
1.5194e-09
-2.55168e-09
1.24642e-09
-2.15378e-09
1.01847e-09
-1.82488e-09
8.32052e-10
-1.55213e-09
6.81743e-10
-1.3247e-09
5.61455e-10
-1.13375e-09
4.65324e-10
-9.72269e-10
3.88204e-10
-8.34745e-10
3.25854e-10
-7.16882e-10
2.74921e-10
-6.15299e-10
2.32826e-10
-5.27303e-10
1.97611e-10
-4.50705e-10
1.67788e-10
-3.83683e-10
1.42195e-10
-3.24697e-10
1.19897e-10
-2.72426e-10
1.00114e-10
-2.25738e-10
8.21902e-11
-1.83681e-10
6.56139e-11
-1.45485e-10
5.00946e-11
-1.10604e-10
3.56825e-11
-7.8786e-11
2.28937e-11
-5.02408e-11
1.27101e-11
-2.59117e-11
6.24936e-12
-7.9028e-12
3.9914e-12
4.41594e-12
-1.27209e-10
1.32968e-10
-1.22128e-10
1.39639e-10
-1.1137e-10
1.49184e-10
-9.2014e-11
1.61439e-10
-6.19505e-11
1.76191e-10
-1.81955e-11
1.9274e-10
4.09678e-11
2.04136e-10
1.08818e-10
2.09745e-10
1.74369e-10
2.00805e-10
2.1654e-10
1.7145e-10
2.12117e-10
1.21785e-10
1.38386e-10
5.44495e-11
-4.02376e-11
-5.91583e-11
-4.46459e-10
-2.54212e-10
-1.43488e-09
-7.56298e-10
-7.99735e-09
-5.32547e-09
-1.18523e-08
-5.42864e-09
-1.22157e-08
-1.05585e-09
-1.11433e-08
1.04779e-09
-9.71685e-09
1.72142e-09
-8.29189e-09
1.81949e-09
-6.99813e-09
1.68023e-09
-5.87276e-09
1.46237e-09
-4.91134e-09
1.23642e-09
-4.1005e-09
1.02682e-09
-3.42377e-09
8.42677e-10
-2.8636e-09
6.86251e-10
-2.40209e-09
5.56967e-10
-2.02233e-09
4.52294e-10
-1.70924e-09
3.68653e-10
-1.44998e-09
3.02196e-10
-1.23399e-09
2.49335e-10
-1.0528e-09
2.07011e-10
-8.99714e-10
1.72769e-10
-7.69499e-10
1.44705e-10
-6.58046e-10
1.21372e-10
-5.62103e-10
1.01668e-10
-4.79054e-10
8.47383e-11
-4.06753e-10
6.98934e-11
-3.43409e-10
5.65532e-11
-2.8751e-10
4.42152e-11
-2.37776e-10
3.24557e-11
-1.93137e-10
2.0975e-11
-1.52736e-10
9.69323e-12
-1.15955e-10
-1.09768e-12
-8.25007e-11
-1.05611e-11
-5.25585e-11
-1.72324e-11
-2.70856e-11
-1.92236e-11
-8.25639e-12
-1.48375e-11
-3.84017e-12
-1.20553e-10
1.28026e-10
-1.12698e-10
1.31784e-10
-9.95205e-11
1.36007e-10
-7.8778e-11
1.40696e-10
-4.86581e-11
1.46071e-10
-7.95015e-12
1.52032e-10
3.89794e-11
1.57206e-10
8.65287e-11
1.62195e-10
1.22261e-10
1.65073e-10
1.29463e-10
1.64248e-10
9.34785e-11
1.57769e-10
5.75033e-12
1.42178e-10
-1.61416e-10
1.08008e-10
-4.48677e-10
3.30492e-11
-1.05819e-09
-1.46785e-10
-5.91188e-09
-4.71781e-10
-1.11438e-08
-1.96733e-10
-1.24213e-08
2.21699e-10
-1.17079e-08
3.34299e-10
-1.03465e-08
3.60089e-10
-8.86827e-09
3.41238e-10
-7.48848e-09
3.00451e-10
-6.27559e-09
2.4948e-10
-5.23827e-09
1.99092e-10
-4.36463e-09
1.53188e-10
-3.63632e-09
1.14373e-10
-3.03375e-09
8.36804e-11
-2.53762e-09
6.08399e-11
-2.12993e-09
4.45997e-11
-1.79458e-09
3.33071e-11
-1.51777e-09
2.53839e-11
-1.28802e-09
1.95824e-11
-1.09605e-09
1.50424e-11
-9.34506e-10
1.12277e-11
-7.97621e-10
7.81944e-12
-6.80868e-10
4.61901e-12
-5.80677e-10
1.47728e-12
-4.94193e-10
-1.74711e-12
-4.19086e-10
-5.21351e-12
-3.5343e-10
-9.10306e-12
-2.95608e-10
-1.36078e-11
-2.44258e-10
-1.88945e-11
-1.98248e-10
-2.50346e-11
-1.56673e-10
-3.18823e-11
-1.18879e-10
-3.88925e-11
-8.45441e-11
-4.48964e-11
-5.38438e-11
-4.79333e-11
-2.77434e-11
-4.53242e-11
-8.45609e-12
-3.41244e-11
-1.22959e-11
6.16201e-12
-2.47946e-11
2.03572e-11
-6.03807e-11
4.04846e-11
-8.3547e-11
6.57837e-11
-1.00731e-10
9.61403e-11
-1.15774e-10
1.31733e-10
-1.30777e-10
1.72889e-10
-1.46826e-10
2.20051e-10
-1.64328e-10
2.73798e-10
-1.83275e-10
3.34885e-10
-2.03479e-10
4.04277e-10
-2.24745e-10
4.83186e-10
-2.46956e-10
5.73103e-10
-2.70108e-10
6.75861e-10
-2.94328e-10
7.93709e-10
-3.19871e-10
9.29425e-10
-3.47148e-10
1.08646e-09
-3.76761e-10
1.26912e-09
-4.09546e-10
1.48292e-09
-4.46641e-10
1.73485e-09
-4.89595e-10
2.03395e-09
-5.40412e-10
2.39195e-09
-6.0164e-10
2.8242e-09
-6.76348e-10
3.35081e-09
-7.67907e-10
3.99783e-09
-8.793e-10
4.79759e-09
-1.01127e-09
5.78577e-09
-1.15795e-09
6.98929e-09
-1.2972e-09
8.39537e-09
-1.37549e-09
9.88905e-09
-1.28868e-09
1.11562e-08
-8.81723e-10
1.1577e-08
6.39402e-11
1.01706e-08
1.73011e-09
5.15917e-09
4.2927e-09
8.5694e-10
3.23378e-09
1.0248e-10
5.02932e-10
-2.13821e-10
3.85804e-10
-3.70839e-10
3.02184e-10
-4.37417e-10
2.3047e-10
-4.44585e-10
1.69887e-10
-4.10686e-10
1.20243e-10
-3.54869e-10
8.81067e-11
-2.94731e-10
7.45757e-11
-2.40806e-10
7.3514e-11
-1.97916e-10
7.96037e-11
-1.67107e-10
8.90667e-11
-1.46891e-10
9.90236e-11
-1.34546e-10
1.07733e-10
-1.2725e-10
1.14706e-10
1.19677e-10
-1.22201e-10
5.92343e-12
-3.07206e-11
1.95653e-11
-7.40235e-11
3.89101e-11
-1.02891e-10
6.32354e-11
-1.25055e-10
9.2438e-11
-1.44975e-10
1.26687e-10
-1.65023e-10
1.66282e-10
-1.8642e-10
2.11629e-10
-2.09673e-10
2.63255e-10
-2.34899e-10
3.21842e-10
-2.62067e-10
3.88263e-10
-2.91168e-10
4.63609e-10
-3.22299e-10
5.49217e-10
-3.55712e-10
6.46718e-10
-3.91828e-10
7.58102e-10
-4.31259e-10
8.85811e-10
-4.74863e-10
1.03287e-09
-5.23819e-10
1.20307e-09
-5.79731e-10
1.40117e-09
-6.44752e-10
1.63334e-09
-7.21756e-10
1.9075e-09
-8.14572e-10
2.23411e-09
-9.28255e-10
2.62722e-09
-1.06945e-09
3.10602e-09
-1.24671e-09
3.69722e-09
-1.47049e-09
4.43758e-09
-1.75163e-09
5.37499e-09
-2.09535e-09
6.56094e-09
-2.48315e-09
8.02419e-09
-2.83874e-09
9.71535e-09
-2.97984e-09
1.14009e-08
-2.56725e-09
1.25633e-08
-1.09851e-09
1.20154e-08
2.27807e-09
7.32287e-09
8.98519e-09
1.43588e-09
9.12077e-09
1.45594e-10
1.79322e-09
-3.05875e-10
8.37273e-10
-4.85497e-10
4.81806e-10
-5.38334e-10
2.83308e-10
-5.20689e-10
1.52241e-10
-4.57867e-10
5.74211e-11
-3.78128e-10
8.36799e-12
-3.01508e-10
-2.04412e-12
-2.38052e-10
1.00578e-11
-1.90475e-10
3.20271e-11
-1.58132e-10
5.67237e-11
-1.38556e-10
7.94468e-11
-1.27691e-10
9.68683e-11
-1.22282e-10
1.09297e-10
1.16647e-10
-1.19252e-10
5.55868e-12
-3.62791e-11
1.83488e-11
-8.68141e-11
3.64867e-11
-1.21032e-10
5.93064e-11
-1.4788e-10
8.67146e-11
-1.72385e-10
1.18859e-10
-1.97167e-10
1.55997e-10
-2.23557e-10
1.9847e-10
-2.52145e-10
2.46718e-10
-2.83146e-10
3.01312e-10
-3.16661e-10
3.62976e-10
-3.52833e-10
4.32609e-10
-3.91933e-10
5.113e-10
-4.34406e-10
6.00362e-10
-4.80889e-10
7.01364e-10
-5.32256e-10
8.16193e-10
-5.8969e-10
9.47139e-10
-6.54769e-10
1.09702e-09
-7.2961e-10
1.26932e-09
-8.17053e-10
1.46844e-09
-9.20866e-10
1.69996e-09
-1.04609e-09
1.97124e-09
-1.19954e-09
2.29238e-09
-1.39059e-09
2.67807e-09
-1.6324e-09
3.15105e-09
-1.94347e-09
3.74785e-09
-2.34844e-09
4.52707e-09
-2.87458e-09
5.57186e-09
-3.52794e-09
6.97031e-09
-4.23719e-09
8.76425e-09
-4.77379e-09
1.08427e-08
-4.64565e-09
1.28013e-08
-3.05718e-09
1.32809e-08
1.79852e-09
9.88976e-09
1.23763e-08
1.6874e-09
1.73231e-08
2.46637e-11
3.45595e-09
-4.58009e-10
1.31995e-09
-6.39857e-10
6.63654e-10
-6.8452e-10
3.2797e-10
-6.35289e-10
1.03011e-10
-5.26619e-10
-5.12491e-11
-4.04544e-10
-1.13707e-10
-2.99641e-10
-1.06947e-10
-2.21529e-10
-6.80538e-11
-1.69618e-10
-1.98847e-11
-1.37981e-10
2.50866e-11
-1.21394e-10
6.28598e-11
-1.15314e-10
9.07884e-11
-1.14839e-10
1.08822e-10
1.1846e-10
-1.16652e-10
5.07587e-12
-4.13538e-11
1.67392e-11
-9.84735e-11
3.32832e-11
-1.37575e-10
5.4113e-11
-1.68711e-10
7.91437e-11
-1.97417e-10
1.08494e-10
-2.26518e-10
1.42364e-10
-2.57427e-10
1.81008e-10
-2.9079e-10
2.24755e-10
-3.26895e-10
2.74031e-10
-3.65935e-10
3.29369e-10
-4.08166e-10
3.91419e-10
-4.53981e-10
4.60956e-10
-5.03943e-10
5.38882e-10
-5.58816e-10
6.26225e-10
-6.19603e-10
7.24168e-10
-6.8763e-10
8.34056e-10
-7.64651e-10
9.57423e-10
-8.5298e-10
1.09604e-09
-9.55662e-10
1.25188e-09
-1.07671e-09
1.42721e-09
-1.22142e-09
1.62465e-09
-1.39699e-09
1.84774e-09
-1.61367e-09
2.1022e-09
-1.88688e-09
2.39943e-09
-2.2407e-09
2.76344e-09
-2.71245e-09
3.24745e-09
-3.35859e-09
3.94912e-09
-4.22961e-09
4.99689e-09
-5.28495e-09
6.47568e-09
-6.25258e-09
8.34618e-09
-6.51616e-09
1.02894e-08
-5.00043e-09
1.14741e-08
6.13807e-10
1.05665e-08
1.32839e-08
2.27398e-09
2.56157e-08
-4.17086e-10
6.14702e-09
-4.89786e-10
1.39265e-09
-6.63513e-10
8.3738e-10
-7.59656e-10
4.24114e-10
-7.18936e-10
6.22903e-11
-5.74376e-10
-1.95809e-10
-4.07042e-10
-2.81041e-10
-2.71713e-10
-2.42276e-10
-1.80899e-10
-1.58867e-10
-1.27988e-10
-7.27962e-11
-1.02466e-10
-4.35168e-13
-9.45118e-11
5.49054e-11
-9.7133e-11
9.34096e-11
-1.04914e-10
1.16602e-10
1.28106e-10
-1.1456e-10
4.49164e-12
-4.58469e-11
1.47848e-11
-1.08769e-10
2.93943e-11
-1.52186e-10
4.78115e-11
-1.87128e-10
6.99591e-11
-2.19565e-10
9.592e-11
-2.52479e-10
1.25827e-10
-2.87332e-10
1.59835e-10
-3.24799e-10
1.98141e-10
-3.65204e-10
2.41001e-10
-4.08795e-10
2.88732e-10
-4.55894e-10
3.41702e-10
-5.06952e-10
4.00331e-10
-5.62573e-10
4.65062e-10
-6.23541e-10
5.36329e-10
-6.90866e-10
6.14526e-10
-7.65828e-10
6.99969e-10
-8.50092e-10
7.92805e-10
-9.45818e-10
8.92901e-10
-1.05576e-09
9.9961e-10
-1.18342e-09
1.11143e-09
-1.33324e-09
1.22553e-09
-1.51109e-09
1.33728e-09
-1.72541e-09
1.44025e-09
-1.98984e-09
1.52779e-09
-2.32824e-09
1.5978e-09
-2.78246e-09
1.6652e-09
-3.42598e-09
1.81842e-09
-4.38283e-09
2.18447e-09
-5.651e-09
2.83466e-09
-6.90277e-09
3.73526e-09
-7.41676e-09
4.78131e-09
-6.04648e-09
6.05363e-09
-6.58506e-10
6.28997e-09
1.30476e-08
3.68766e-09
2.8218e-08
1.37722e-09
8.45746e-09
4.03193e-10
2.36667e-09
-2.19219e-10
1.45979e-09
-5.80901e-10
7.85796e-10
-6.52479e-10
1.33868e-10
-5.25136e-10
-3.23151e-10
-3.41275e-10
-4.64903e-10
-1.92745e-10
-3.90807e-10
-9.98459e-11
-2.51766e-10
-5.60226e-11
-1.1662e-10
-4.57337e-11
-1.07241e-11
-5.46184e-11
6.379e-11
-7.2294e-11
1.11085e-10
-9.26229e-11
1.36931e-10
1.48599e-10
-1.13116e-10
3.82253e-12
-4.96677e-11
1.25467e-11
-1.17496e-10
2.49404e-11
-1.64583e-10
4.05957e-11
-2.02784e-10
5.94471e-11
-2.38416e-10
8.15378e-11
-2.74571e-10
1.06925e-10
-3.12721e-10
1.3566e-10
-3.53535e-10
1.678e-10
-3.97343e-10
2.03417e-10
-4.44411e-10
2.42598e-10
-4.95074e-10
2.85429e-10
-5.49781e-10
3.31959e-10
-6.09106e-10
3.82159e-10
-6.7375e-10
4.35881e-10
-7.44584e-10
4.92755e-10
-8.22696e-10
5.52098e-10
-9.09437e-10
6.12775e-10
-1.00649e-09
6.72911e-10
-1.1159e-09
7.29523e-10
-1.24003e-09
7.77804e-10
-1.38152e-09
8.10129e-10
-1.54342e-09
8.14564e-10
-1.72985e-09
7.73046e-10
-1.94833e-09
6.59669e-10
-2.21486e-09
4.4119e-10
-2.56399e-09
7.85426e-11
-3.06333e-09
-4.13525e-10
-3.89076e-09
-8.88292e-10
-5.17623e-09
-1.37558e-09
-6.41548e-09
-1.96214e-09
-6.83019e-09
-2.68405e-09
-5.32457e-09
-2.68826e-09
-6.54305e-10
-3.82684e-10
1.0742e-08
5.02051e-09
2.28148e-08
5.16202e-09
8.31595e-09
2.34527e-09
5.18342e-09
8.40079e-10
2.96498e-09
-2.78836e-11
1.65376e-09
-3.15746e-10
4.2173e-10
-2.87226e-10
-3.51671e-10
-1.56303e-10
-5.95826e-10
-3.29837e-11
-5.14126e-10
3.40895e-11
-3.18839e-10
4.83523e-11
-1.30882e-10
2.99339e-11
7.69431e-12
-5.34883e-12
9.90727e-11
-4.32311e-11
1.48967e-10
-7.93003e-11
1.73e-10
1.81957e-10
-1.12658e-10
3.08654e-12
-5.27537e-11
1.00893e-11
-1.24499e-10
2.00538e-11
-1.74547e-10
3.26829e-11
-2.15411e-10
4.79288e-11
-2.53659e-10
6.57956e-11
-2.92436e-10
8.62629e-11
-3.33189e-10
1.09276e-10
-3.76549e-10
1.34754e-10
-4.22819e-10
1.62588e-10
-4.72246e-10
1.92641e-10
-5.25132e-10
2.24723e-10
-5.81864e-10
2.58542e-10
-6.42917e-10
2.93633e-10
-7.0884e-10
3.29304e-10
-7.80257e-10
3.64522e-10
-8.57913e-10
3.97775e-10
-9.42691e-10
4.26884e-10
-1.0356e-09
4.48692e-10
-1.13771e-09
4.58598e-10
-1.24993e-09
4.49766e-10
-1.37269e-09
4.11898e-10
-1.50555e-09
3.29268e-10
-1.64721e-09
1.77885e-10
-1.79695e-09
-7.91878e-11
-1.95779e-09
-5.00046e-10
-2.14313e-09
-1.16587e-09
-2.3975e-09
-2.15308e-09
-2.90355e-09
-3.24385e-09
-4.08547e-09
-4.43265e-09
-5.22667e-09
-5.76425e-09
-5.49859e-09
-6.84721e-09
-4.24161e-09
-7.262e-09
-2.39522e-10
-1.86684e-09
5.34687e-09
7.89905e-09
1.30489e-08
3.85222e-09
1.23628e-08
3.09749e-09
5.93816e-09
1.92748e-09
4.13499e-09
8.33229e-10
2.74801e-09
2.97878e-10
9.57081e-10
1.48635e-10
-2.02428e-10
1.49846e-10
-5.97037e-10
2.02258e-10
-5.66537e-10
2.22124e-10
-3.38705e-10
1.89352e-10
-9.811e-11
1.22938e-10
7.41083e-11
5.10501e-11
1.7096e-10
-1.35949e-11
2.13612e-10
-6.7251e-11
2.26656e-10
2.28223e-10
-1.13518e-10
2.30633e-12
-5.50618e-11
7.48374e-12
-1.29677e-10
1.48759e-11
-1.81939e-10
2.43047e-11
-2.24841e-10
3.57443e-11
-2.651e-10
4.91643e-11
-3.05856e-10
6.44718e-11
-3.48498e-10
8.15095e-11
-3.93587e-10
1.00064e-10
-4.41371e-10
1.19863e-10
-4.92043e-10
1.40567e-10
-5.45838e-10
1.61736e-10
-6.0304e-10
1.82772e-10
-6.63961e-10
2.02859e-10
-7.28923e-10
2.2085e-10
-7.98247e-10
2.35185e-10
-8.7225e-10
2.43741e-10
-9.51246e-10
2.43635e-10
-1.03549e-09
2.30969e-10
-1.12504e-09
2.00437e-10
-1.2194e-09
1.44709e-10
-1.31696e-09
5.35658e-11
-1.4144e-09
-8.7445e-11
-1.50621e-09
-2.99586e-10
-1.5848e-09
-6.14604e-10
-1.64277e-09
-1.08279e-09
-1.67494e-09
-1.8202e-09
-1.66009e-09
-3.05596e-09
-1.66778e-09
-4.32601e-09
-2.81541e-09
-5.69998e-09
-3.8527e-09
-7.1591e-09
-4.03947e-09
-8.26505e-09
-3.13566e-09
-7.65986e-09
-8.44709e-10
-4.83832e-09
2.52533e-09
-3.71361e-09
1.19242e-08
-6.52685e-09
1.5176e-08
8.57523e-10
-1.44621e-09
2.8456e-09
2.14691e-09
1.66439e-09
3.92922e-09
9.37181e-10
1.68429e-09
5.39911e-10
1.94842e-10
4.21291e-10
-4.78417e-10
4.39944e-10
-5.85191e-10
4.26884e-10
-3.25645e-10
3.43012e-10
-1.42387e-11
2.21307e-10
1.95814e-10
1.03518e-10
2.8875e-10
9.24083e-12
3.07889e-10
-6.06673e-11
2.96565e-10
2.83402e-10
-1.15846e-10
1.50322e-12
-5.65662e-11
4.80154e-12
-1.32974e-10
9.54869e-12
-1.86682e-10
1.56943e-11
-2.30984e-10
2.3238e-11
-2.72643e-10
3.21195e-11
-3.14738e-10
4.21836e-11
-3.58562e-10
5.31812e-11
-4.04583e-10
6.47777e-11
-4.52969e-10
7.65605e-11
-5.03829e-10
8.80211e-11
-5.57298e-10
9.85113e-11
-6.13527e-10
1.07191e-10
-6.72641e-10
1.12958e-10
-7.3469e-10
1.14349e-10
-7.99638e-10
1.09434e-10
-8.67336e-10
9.57015e-11
-9.37517e-10
6.9896e-11
-1.00969e-09
2.78404e-11
-1.08298e-09
-3.5798e-11
-1.15576e-09
-1.27686e-10
-1.22508e-09
-2.56075e-10
-1.28601e-09
-4.30911e-10
-1.33137e-09
-6.63581e-10
-1.35213e-09
-9.67464e-10
-1.33889e-09
-1.35629e-09
-1.28612e-09
-1.81363e-09
-1.20274e-09
-2.67574e-09
-8.05681e-10
-4.03437e-09
-1.45678e-09
-5.1314e-09
-2.75567e-09
-6.82893e-09
-2.34194e-09
-8.37741e-09
-1.58718e-09
-1.06417e-08
1.41959e-09
-1.34181e-08
5.30168e-09
-1.23154e-08
1.08215e-08
-8.65625e-09
1.15169e-08
8.62239e-11
-1.01887e-08
6.35852e-10
1.59728e-09
1.22533e-09
3.33974e-09
7.67792e-10
2.14183e-09
3.32811e-10
6.29823e-10
3.23932e-10
-4.69538e-10
4.87176e-10
-7.48435e-10
5.32124e-10
-3.70593e-10
4.42988e-10
7.48972e-11
2.84454e-10
3.54348e-10
1.30103e-10
4.43101e-10
1.33929e-11
4.24599e-10
-6.43779e-11
3.74335e-10
3.38613e-10
-1.19589e-10
7.05752e-13
-5.72733e-11
2.1144e-12
-1.34385e-10
4.20898e-12
-1.88778e-10
7.07528e-12
-2.33851e-10
1.07395e-11
-2.76309e-10
1.51172e-11
-3.19119e-10
2.0001e-11
-3.63447e-10
2.50652e-11
-4.09645e-10
2.98794e-11
-4.57782e-10
3.39172e-11
-5.07866e-10
3.65306e-11
-5.59912e-10
3.69134e-11
-6.13917e-10
3.40597e-11
-6.69786e-10
2.66648e-11
-7.27295e-10
1.30615e-11
-7.86036e-10
-8.86963e-12
-8.45405e-10
-4.18429e-11
-9.04544e-10
-8.92272e-11
-9.62303e-10
-1.55167e-10
-1.01704e-09
-2.44646e-10
-1.06628e-09
-3.63518e-10
-1.1062e-09
-5.18387e-10
-1.13114e-09
-7.16201e-10
-1.13356e-09
-9.63016e-10
-1.10532e-09
-1.26085e-09
-1.04106e-09
-1.60502e-09
-9.41949e-10
-1.99167e-09
-8.16092e-10
-2.05486e-09
-7.42491e-10
-2.48204e-09
-1.0296e-09
-3.25084e-09
-1.98687e-09
-3.84502e-09
-1.74776e-09
-4.56296e-09
-8.69249e-10
-3.78714e-09
6.43772e-10
5.00337e-10
1.0142e-09
7.63946e-09
3.68238e-09
9.05322e-09
1.01031e-08
-5.6008e-10
-5.75386e-10
-2.96207e-09
3.99927e-09
-8.91215e-10
1.26889e-09
-7.26516e-10
1.97713e-09
-8.32508e-10
7.35816e-10
-4.31693e-10
-8.70353e-10
8.46909e-11
-1.26482e-09
3.2202e-10
-6.07921e-10
3.43302e-10
5.3615e-11
2.3488e-10
4.6277e-10
9.41271e-11
5.83853e-10
-1.74849e-11
5.36211e-10
-8.5176e-11
4.42027e-10
3.78334e-10
-1.24897e-10
-8.74843e-14
-5.71836e-11
-5.16962e-13
-1.33953e-10
-1.00786e-12
-1.88287e-10
-1.33802e-12
-2.33522e-10
-1.4429e-12
-2.76204e-10
-1.42102e-12
-3.19141e-10
-1.523e-12
-3.63344e-10
-2.13244e-12
-4.09037e-10
-3.75043e-12
-4.56168e-10
-6.9885e-12
-5.04629e-10
-1.25844e-11
-5.5431e-10
-2.14525e-11
-6.05045e-10
-3.47146e-11
-6.56523e-10
-5.37682e-11
-7.08241e-10
-8.03652e-11
-7.59438e-10
-1.16693e-10
-8.09075e-10
-1.65442e-10
-8.55795e-10
-2.29881e-10
-8.97869e-10
-3.13869e-10
-9.33047e-10
-4.21841e-10
-9.58303e-10
-5.58639e-10
-9.69406e-10
-7.29219e-10
-9.60564e-10
-9.38181e-10
-9.24595e-10
-1.189e-09
-8.54502e-10
-1.48261e-09
-7.47441e-10
-1.81372e-09
-6.10845e-10
-2.15923e-09
-4.70583e-10
-2.36695e-09
-5.34768e-10
-2.69441e-09
-7.02138e-10
-3.1367e-09
-1.54458e-09
-3.63987e-09
-1.2446e-09
-3.50802e-09
-1.00109e-09
-2.85005e-09
-1.42043e-11
-7.98499e-10
-1.03735e-09
-2.57753e-09
5.4614e-09
-6.31773e-10
8.15738e-09
4.12842e-09
-5.33558e-09
6.83625e-09
1.29144e-09
-1.78018e-09
9.88531e-09
-2.50669e-09
2.70364e-09
-2.66523e-09
8.94356e-10
-2.0123e-09
-1.52328e-09
-1.06122e-09
-2.2159e-09
-3.78697e-10
-1.29044e-09
-5.28836e-11
-2.72198e-10
2.38748e-11
3.86012e-10
-2.77629e-11
6.35491e-10
-9.17828e-11
6.00231e-10
-1.26297e-10
4.76541e-10
3.83863e-10
-1.31827e-10
-8.37111e-13
-5.63463e-11
-3.02887e-12
-1.3176e-10
-5.9858e-12
-1.85332e-10
-9.35657e-12
-2.30153e-10
-1.30372e-11
-2.72527e-10
-1.71294e-11
-3.15051e-10
-2.19104e-11
-3.58563e-10
-2.78042e-11
-4.03144e-10
-3.53532e-11
-4.48617e-10
-4.52246e-11
-4.94758e-10
-5.82208e-11
-5.41321e-10
-7.52877e-11
-5.87974e-10
-9.75973e-11
-6.34215e-10
-1.26562e-10
-6.79277e-10
-1.63918e-10
-7.22085e-10
-2.11773e-10
-7.6122e-10
-2.7266e-10
-7.94906e-10
-3.49551e-10
-8.20972e-10
-4.45822e-10
-8.36776e-10
-5.65086e-10
-8.39039e-10
-7.10852e-10
-8.23641e-10
-8.85854e-10
-7.85562e-10
-1.09094e-09
-7.19511e-10
-1.32338e-09
-6.22065e-10
-1.5747e-09
-4.96117e-10
-1.82639e-09
-3.59152e-10
-2.03094e-09
-2.66031e-10
-2.26607e-09
-2.99641e-10
-2.66524e-09
-3.0297e-10
-3.75341e-09
-4.56418e-10
-4.70031e-09
-2.97699e-10
-5.99394e-09
2.9254e-10
-7.07417e-09
1.06602e-09
-1.00999e-08
1.98834e-09
-1.01719e-08
5.53344e-09
-2.61688e-09
6.02362e-10
-5.02684e-09
-2.92562e-09
-8.76625e-09
5.03084e-09
-1.03065e-08
1.14255e-08
-1.69601e-09
-5.90682e-09
-3.38222e-09
2.58057e-09
-3.86941e-09
-1.03609e-09
-2.59791e-09
-3.4874e-09
-1.44386e-09
-2.4445e-09
-6.01684e-10
-1.11437e-09
-2.73192e-10
5.75189e-11
-2.14989e-10
5.77288e-10
-1.99355e-10
5.84597e-10
-1.79015e-10
4.56201e-10
3.43197e-10
-1.38349e-10
-1.53925e-12
-5.48059e-11
-5.37519e-12
-1.27922e-10
-1.06293e-11
-1.80077e-10
-1.68233e-11
-2.23958e-10
-2.38103e-11
-2.65538e-10
-3.16892e-11
-3.0717e-10
-4.07521e-11
-3.49502e-10
-5.14406e-11
-3.92461e-10
-6.43177e-11
-4.35742e-10
-8.00687e-11
-4.79002e-10
-9.95104e-11
-5.21878e-10
-1.23598e-10
-5.63885e-10
-1.53471e-10
-6.0434e-10
-1.90489e-10
-6.42258e-10
-2.36279e-10
-6.76295e-10
-2.9277e-10
-7.04727e-10
-3.62223e-10
-7.25453e-10
-4.47208e-10
-7.35986e-10
-5.5053e-10
-7.33451e-10
-6.75034e-10
-7.14534e-10
-8.23228e-10
-6.75449e-10
-9.96684e-10
-6.12105e-10
-1.19529e-09
-5.20906e-10
-1.41665e-09
-4.00699e-10
-1.65636e-09
-2.56408e-10
-1.91105e-09
-1.04464e-10
-2.202e-09
2.49153e-11
-2.63214e-09
1.30498e-10
-3.19582e-09
2.60708e-10
-4.04271e-09
3.9047e-10
-5.11051e-09
7.70102e-10
-6.24176e-09
1.4238e-09
-7.4343e-09
2.25856e-09
-8.56287e-09
3.11692e-09
-6.76105e-09
3.73162e-09
-6.45638e-09
2.97697e-10
-9.85657e-09
4.74565e-10
-8.52732e-09
3.70159e-09
3.30456e-09
-4.06336e-10
-3.59271e-09
9.90446e-10
-1.48204e-09
4.69901e-10
-2.13564e-09
-3.82496e-10
-3.86623e-09
-1.75681e-09
-2.5902e-09
-3.72053e-09
-1.21881e-09
-2.48576e-09
-6.56487e-10
-5.04806e-10
-5.18016e-10
4.38817e-10
-3.65258e-10
4.31839e-10
-2.53456e-10
3.44398e-10
2.35847e-10
-1.46105e-10
-2.18007e-12
-5.26258e-11
-7.51396e-12
-1.22588e-10
-1.48541e-11
-1.72736e-10
-2.36054e-11
-2.15207e-10
-3.35769e-11
-2.55567e-10
-4.48559e-11
-2.95891e-10
-5.77341e-11
-3.36625e-10
-7.26502e-11
-3.77543e-10
-9.01688e-11
-4.1822e-10
-1.10972e-10
-4.58202e-10
-1.35842e-10
-4.97004e-10
-1.65707e-10
-5.34025e-10
-2.01622e-10
-5.68425e-10
-2.44832e-10
-5.99048e-10
-2.96775e-10
-6.24348e-10
-3.5913e-10
-6.42376e-10
-4.33791e-10
-6.50792e-10
-5.22858e-10
-6.46919e-10
-6.28534e-10
-6.27772e-10
-7.52956e-10
-5.90114e-10
-8.97871e-10
-5.30535e-10
-1.06427e-09
-4.45712e-10
-1.25205e-09
-3.33121e-10
-1.46033e-09
-1.92413e-10
-1.68926e-09
-2.74818e-11
-1.94587e-09
1.52139e-10
-2.25688e-09
3.3593e-10
-2.6543e-09
5.27913e-10
-3.15517e-09
7.61586e-10
-3.81275e-09
1.04804e-09
-4.54689e-09
1.50424e-09
-5.25721e-09
2.13412e-09
-5.84248e-09
2.84383e-09
-6.13e-09
3.40443e-09
-5.80086e-09
3.40247e-09
-7.11898e-09
1.61582e-09
-7.95378e-09
1.30936e-09
-2.16669e-09
-2.08549e-09
-2.30223e-09
-2.70799e-10
-2.14983e-09
8.38047e-10
7.59611e-09
-9.27604e-09
-9.32881e-10
8.1465e-09
-5.13309e-09
2.44341e-09
-4.50874e-09
-4.34488e-09
-2.33633e-09
-4.65818e-09
-1.39234e-09
-1.4488e-09
-1.13036e-09
1.76839e-10
-6.5807e-10
-4.04497e-11
-3.58685e-10
4.50136e-11
3.09058e-11
-1.53744e-10
-2.74903e-12
-4.98772e-11
-9.41243e-12
-1.15928e-10
-1.85994e-11
-1.63548e-10
-2.96056e-11
-2.04199e-10
-4.21972e-11
-2.42973e-10
-5.64435e-11
-2.81643e-10
-7.26224e-11
-3.2045e-10
-9.1159e-11
-3.59012e-10
-1.12594e-10
-3.96784e-10
-1.37574e-10
-4.33222e-10
-1.66837e-10
-4.6774e-10
-2.01226e-10
-4.99636e-10
-2.4169e-10
-5.27962e-10
-2.89305e-10
-5.51438e-10
-3.45272e-10
-5.68378e-10
-4.10945e-10
-5.76698e-10
-4.87807e-10
-5.73932e-10
-5.77423e-10
-5.57305e-10
-6.81362e-10
-5.23833e-10
-8.01046e-10
-4.70432e-10
-9.37508e-10
-3.94071e-10
-1.09116e-09
-2.92059e-10
-1.2617e-09
-1.62583e-10
-1.4486e-09
-5.50948e-12
-1.65269e-09
1.76606e-10
-1.87939e-09
3.78834e-10
-2.1408e-09
5.97343e-10
-2.44952e-09
8.36629e-10
-2.80422e-09
1.11629e-09
-3.20382e-09
1.44765e-09
-3.57297e-09
1.87339e-09
-3.81354e-09
2.37469e-09
-3.81341e-09
2.8437e-09
-3.46684e-09
3.05786e-09
-2.73746e-09
2.67309e-09
-2.60647e-09
1.48484e-09
-1.67383e-09
3.76721e-10
-4.07613e-09
3.16804e-10
-1.19042e-08
7.55724e-09
-1.1408e-08
3.41871e-10
-1.49061e-08
-5.77798e-09
-1.76349e-08
1.08753e-08
-8.90881e-09
-6.28267e-09
-7.98328e-09
-5.2704e-09
-9.63303e-09
-3.00843e-09
-6.61619e-09
-4.46564e-09
-3.05338e-09
-3.38596e-09
-1.34589e-09
-1.74795e-09
-5.38958e-10
-7.61916e-10
-3.71485e-10
-1.36567e-10
-3.24078e-12
-4.66351e-11
-1.10469e-11
-1.08121e-10
-2.18198e-11
-1.52776e-10
-3.47562e-11
-1.91263e-10
-4.95797e-11
-2.28151e-10
-6.6337e-11
-2.64889e-10
-8.52764e-11
-3.01506e-10
-1.06797e-10
-3.37484e-10
-1.31411e-10
-3.72172e-10
-1.59697e-10
-4.0493e-10
-1.9233e-10
-4.35107e-10
-2.30041e-10
-4.61922e-10
-2.73644e-10
-4.84359e-10
-3.2401e-10
-5.01067e-10
-3.82085e-10
-5.10303e-10
-4.4886e-10
-5.09923e-10
-5.25363e-10
-4.97431e-10
-6.12596e-10
-4.70072e-10
-7.11465e-10
-4.24963e-10
-8.22646e-10
-3.59252e-10
-9.46397e-10
-2.70319e-10
-1.0824e-09
-1.5606e-10
-1.22964e-09
-1.5333e-11
-1.38689e-09
1.51737e-10
-1.55323e-09
3.4294e-10
-1.72937e-09
5.54973e-10
-1.91732e-09
7.85295e-10
-2.11634e-09
1.03565e-09
-2.31349e-09
1.31343e-09
-2.48823e-09
1.62239e-09
-2.58469e-09
1.96985e-09
-2.5344e-09
2.3244e-09
-2.28498e-09
2.59428e-09
-1.8763e-09
2.64918e-09
-1.55181e-09
2.34859e-09
-1.87013e-09
1.80316e-09
-3.43361e-09
1.9402e-09
-7.41113e-09
4.29432e-09
-7.11121e-09
7.25733e-09
-5.77993e-09
-9.89412e-10
-1.24891e-08
9.31225e-10
-1.05074e-08
8.89356e-09
-1.69955e-08
2.05503e-10
-2.47311e-08
2.4652e-09
-2.94395e-08
1.69989e-09
-2.61947e-08
-7.71042e-09
-1.65951e-08
-1.29856e-08
-8.1691e-09
-1.01739e-08
-3.03297e-09
-5.89804e-09
-3.97818e-09
5.73717e-10
-3.6508e-12
-4.29861e-11
-1.24066e-11
-9.93651e-11
-2.44931e-11
-1.40689e-10
-3.90219e-11
-1.76732e-10
-5.56741e-11
-2.11496e-10
-7.44697e-11
-2.46096e-10
-9.56291e-11
-2.80352e-10
-1.19508e-10
-3.13604e-10
-1.46565e-10
-3.45117e-10
-1.7732e-10
-3.7418e-10
-2.12348e-10
-4.00083e-10
-2.52264e-10
-4.22004e-10
-2.97722e-10
-4.38902e-10
-3.49385e-10
-4.49405e-10
-4.07913e-10
-4.51773e-10
-4.73945e-10
-4.43892e-10
-5.48044e-10
-4.23332e-10
-6.3066e-10
-3.87457e-10
-7.22036e-10
-3.33585e-10
-8.22108e-10
-2.5918e-10
-9.30334e-10
-1.62091e-10
-1.04556e-09
-4.0834e-11
-1.16598e-09
1.05094e-10
-1.28908e-09
2.74827e-10
-1.41206e-09
4.65929e-10
-1.53195e-09
6.7486e-10
-1.64477e-09
8.98116e-10
-1.74294e-09
1.13382e-09
-1.81128e-09
1.38178e-09
-1.82833e-09
1.63945e-09
-1.76048e-09
1.902e-09
-1.57925e-09
2.14317e-09
-1.27895e-09
2.29397e-09
-9.66548e-10
2.33677e-09
-8.86085e-10
2.26813e-09
-1.38461e-09
2.30168e-09
-2.42458e-09
2.98017e-09
-2.84713e-09
4.71688e-09
-1.12972e-09
5.53991e-09
-3.91933e-09
1.8002e-09
-4.91567e-09
1.92757e-09
-3.14978e-09
7.12767e-09
-7.39821e-09
4.45393e-09
-1.04925e-08
5.55944e-09
-1.09854e-08
2.19283e-09
-1.20907e-08
-6.60511e-09
-1.24237e-08
-1.26525e-08
-9.13083e-09
-1.34669e-08
-4.06202e-09
-1.09668e-08
-9.2322e-09
1.192e-09
-3.97542e-12
-3.90111e-11
-1.34847e-11
-8.98543e-11
-2.66093e-11
-1.27566e-10
-4.23925e-11
-1.60954e-10
-6.04772e-11
-1.93417e-10
-8.08462e-11
-2.25729e-10
-1.03687e-10
-2.57508e-10
-1.29315e-10
-2.87976e-10
-1.58118e-10
-3.1631e-10
-1.90545e-10
-3.41751e-10
-2.27071e-10
-3.63557e-10
-2.68189e-10
-3.80889e-10
-3.14379e-10
-3.92709e-10
-3.66097e-10
-3.97684e-10
-4.23731e-10
-3.94134e-10
-4.87575e-10
-3.80048e-10
-5.57767e-10
-3.53139e-10
-6.34245e-10
-3.10981e-10
-7.16656e-10
-2.51172e-10
-8.04267e-10
-1.71567e-10
-8.9583e-10
-7.05287e-11
-9.89465e-10
5.28012e-11
-1.08255e-09
1.98175e-10
-1.1717e-09
3.63975e-10
-1.25288e-09
5.47118e-10
-1.3213e-09
7.43272e-10
-1.37074e-09
9.47563e-10
-1.3924e-09
1.15548e-09
-1.37362e-09
1.363e-09
-1.29902e-09
1.56484e-09
-1.14916e-09
1.75214e-09
-9.26634e-10
1.92064e-09
-6.78715e-10
2.04605e-09
-4.89921e-10
2.14798e-09
-4.96427e-10
2.27463e-09
-7.27089e-10
2.53234e-09
-9.66676e-10
3.21976e-09
-5.30008e-10
4.28021e-09
4.05132e-10
4.60477e-09
-5.26279e-10
2.73161e-09
-1.33959e-09
2.74088e-09
5.65383e-11
5.73153e-09
-6.2545e-10
5.13591e-09
2.23456e-10
4.71053e-09
9.63867e-10
1.45242e-09
-1.64083e-10
-5.47716e-09
-1.97607e-09
-1.08405e-08
-2.60291e-09
-1.284e-08
-1.49094e-09
-1.20788e-08
-1.11979e-08
4.74727e-10
-4.21539e-12
-3.47959e-11
-1.4286e-11
-7.97848e-11
-2.81803e-11
-1.13671e-10
-4.48844e-11
-1.44245e-10
-6.40087e-11
-1.74289e-10
-8.55054e-11
-2.04232e-10
-1.09522e-10
-2.33493e-10
-1.36319e-10
-2.6118e-10
-1.66222e-10
-2.86408e-10
-1.99597e-10
-3.0838e-10
-2.36814e-10
-3.26336e-10
-2.78248e-10
-3.39455e-10
-3.24218e-10
-3.46736e-10
-3.74981e-10
-3.46919e-10
-4.30677e-10
-3.38437e-10
-4.91291e-10
-3.19434e-10
-5.56594e-10
-2.87834e-10
-6.26092e-10
-2.41482e-10
-6.98942e-10
-1.7832e-10
-7.73884e-10
-9.66236e-11
-8.49144e-10
4.72956e-12
-9.22323e-10
1.2598e-10
-9.90329e-10
2.66181e-10
-1.0494e-09
4.23045e-10
-1.09514e-09
5.92855e-10
-1.12248e-09
7.70619e-10
-1.12555e-09
9.50627e-10
-1.09729e-09
1.12722e-09
-1.02955e-09
1.29525e-09
-9.14464e-10
1.44976e-09
-7.51741e-10
1.58942e-09
-5.30309e-10
1.69921e-09
-3.15146e-10
1.83089e-09
-1.84654e-10
2.01749e-09
-1.54626e-10
2.24461e-09
-1.973e-10
2.57502e-09
-1.08648e-10
3.13111e-09
3.63753e-10
3.80781e-09
9.84035e-10
3.98449e-09
8.20927e-10
2.89472e-09
1.16713e-09
2.39467e-09
2.82307e-09
4.0756e-09
3.68906e-09
4.26992e-09
4.989e-09
3.41059e-09
5.78698e-09
6.54444e-10
4.7525e-09
-4.44269e-09
2.65479e-09
-8.74282e-09
7.35845e-10
-1.09211e-08
-6.5303e-11
-1.12777e-08
-1.11303e-08
-1.32836e-10
-4.37438e-12
-3.04187e-11
-1.48168e-11
-6.93391e-11
-2.92209e-11
-9.92684e-11
-4.65338e-11
-1.2694e-10
-6.63336e-11
-1.54495e-10
-8.85348e-11
-1.82026e-10
-1.13252e-10
-2.08777e-10
-1.40689e-10
-2.33748e-10
-1.71103e-10
-2.55995e-10
-2.04776e-10
-2.74706e-10
-2.41983e-10
-2.89125e-10
-2.8298e-10
-2.9846e-10
-3.27946e-10
-3.01773e-10
-3.76959e-10
-2.97907e-10
-4.29952e-10
-2.85446e-10
-4.86651e-10
-2.62731e-10
-5.46544e-10
-2.27941e-10
-6.08797e-10
-1.79228e-10
-6.72217e-10
-1.14898e-10
-7.35187e-10
-3.36522e-11
-7.95617e-10
6.51593e-11
-8.50871e-10
1.81232e-10
-8.97777e-10
3.13084e-10
-9.3267e-10
4.57941e-10
-9.51512e-10
6.11697e-10
-9.49995e-10
7.69102e-10
-9.23662e-10
9.24296e-10
-8.68125e-10
1.07169e-09
-7.79758e-10
1.20689e-09
-6.57579e-10
1.32758e-09
-5.00969e-10
1.43281e-09
-3.37116e-10
1.53535e-09
-2.05327e-10
1.6991e-09
-7.50028e-11
1.88716e-09
3.5976e-11
2.13363e-09
1.5312e-10
2.45787e-09
4.04072e-10
2.88015e-09
9.11252e-10
3.30063e-09
1.47178e-09
3.42396e-09
1.38814e-09
2.97836e-09
2.99522e-09
7.8758e-10
4.01377e-09
3.05705e-09
5.2463e-09
3.03738e-09
6.27419e-09
2.38271e-09
6.84394e-09
8.4694e-11
5.91716e-09
-3.51591e-09
4.02887e-09
-6.85453e-09
2.07229e-09
-8.96449e-09
6.42318e-10
-9.84771e-09
-1.01068e-08
-3.81214e-10
-4.45672e-12
-2.59643e-11
-1.50997e-11
-5.87014e-11
-2.9772e-11
-8.45914e-11
-4.73933e-11
-1.09308e-10
-6.7524e-11
-1.34361e-10
-9.00509e-11
-1.59498e-10
-1.15036e-10
-1.83787e-10
-1.42633e-10
-2.06145e-10
-1.73039e-10
-2.25591e-10
-2.06449e-10
-2.41294e-10
-2.43051e-10
-2.52519e-10
-2.82989e-10
-2.5852e-10
-3.26322e-10
-2.58439e-10
-3.72985e-10
-2.51244e-10
-4.22743e-10
-2.3569e-10
-4.75135e-10
-2.10337e-10
-5.29439e-10
-1.73638e-10
-5.84601e-10
-1.24063e-10
-6.39215e-10
-6.02833e-11
-6.91485e-10
1.86174e-11
-7.39202e-10
1.12878e-10
-7.79762e-10
2.2179e-10
-8.10212e-10
3.43532e-10
-8.27356e-10
4.75087e-10
-8.2796e-10
6.123e-10
-8.08979e-10
7.50121e-10
-7.6786e-10
8.83178e-10
-7.02946e-10
1.00678e-09
-6.14179e-10
1.11812e-09
-5.0399e-10
1.21739e-09
-3.81365e-10
1.31019e-09
-2.66832e-10
1.42082e-09
-1.36327e-10
1.5686e-09
-7.5066e-13
1.75159e-09
1.61567e-10
1.97131e-09
3.95307e-10
2.22413e-09
7.82712e-10
2.49275e-09
1.40998e-09
2.67336e-09
2.26387e-09
2.57006e-09
3.17393e-09
2.06831e-09
2.86372e-09
1.09778e-09
3.81907e-09
2.1017e-09
4.84592e-09
2.01053e-09
5.52672e-09
1.70191e-09
5.76889e-09
-1.5747e-10
5.25096e-09
-2.99799e-09
3.93564e-09
-5.53921e-09
2.33743e-09
-7.36627e-09
8.68458e-10
-8.37874e-09
-8.79599e-09
-4.42354e-10
-4.46844e-12
-2.14918e-11
-1.51456e-11
-4.80238e-11
-2.9868e-11
-6.98736e-11
-4.75378e-11
-9.16413e-11
-6.76889e-11
-1.14203e-10
-9.01885e-11
-1.36995e-10
-1.1506e-10
-1.58918e-10
-1.424e-10
-1.78803e-10
-1.72344e-10
-1.95648e-10
-2.05016e-10
-2.08621e-10
-2.4052e-10
-2.17014e-10
-2.78902e-10
-2.20135e-10
-3.20123e-10
-2.17218e-10
-3.64004e-10
-2.07363e-10
-4.10188e-10
-1.89504e-10
-4.58091e-10
-1.62431e-10
-5.06861e-10
-1.24866e-10
-5.55334e-10
-7.55878e-11
-6.02013e-10
-1.36038e-11
-6.45074e-10
6.16783e-11
-6.82366e-10
1.50171e-10
-7.115e-10
2.50924e-10
-7.29932e-10
3.61962e-10
-7.3512e-10
4.80276e-10
-7.24765e-10
6.01947e-10
-6.97115e-10
7.22471e-10
-6.51294e-10
8.37356e-10
-5.8764e-10
9.43121e-10
-5.08104e-10
1.03858e-09
-4.16959e-10
1.12624e-09
-3.21365e-10
1.21459e-09
-2.20082e-10
1.31954e-09
-1.04115e-10
1.45263e-09
3.68825e-11
1.61059e-09
2.22105e-10
1.78609e-09
4.82757e-10
1.96348e-09
8.59496e-10
2.11601e-09
1.36414e-09
2.16872e-09
1.90462e-09
2.02958e-09
2.41817e-09
1.55476e-09
2.13008e-09
1.38587e-09
2.27026e-09
1.96153e-09
2.66906e-09
1.61173e-09
3.61019e-09
7.60773e-10
4.42946e-09
-9.76736e-10
4.19187e-09
-2.7604e-09
3.34105e-09
-4.6884e-09
2.14377e-09
-6.16899e-09
8.61531e-10
-7.0965e-09
-7.52204e-09
-4.12418e-10
-4.42124e-12
-1.7075e-11
-1.49907e-11
-3.74548e-11
-2.9561e-11
-5.52985e-11
-4.70366e-11
-7.41628e-11
-6.6942e-11
-9.43001e-11
-8.91116e-11
-1.14826e-10
-1.13529e-10
-1.34496e-10
-1.40255e-10
-1.52077e-10
-1.69353e-10
-1.66544e-10
-2.00893e-10
-1.77079e-10
-2.34902e-10
-1.83006e-10
-2.71345e-10
-1.83691e-10
-3.10103e-10
-1.78464e-10
-3.50911e-10
-1.66556e-10
-3.93334e-10
-1.47079e-10
-4.36718e-10
-1.19045e-10
-4.80153e-10
-8.14297e-11
-5.22447e-10
-3.32929e-11
-5.62125e-10
2.60754e-11
-5.97431e-10
9.69846e-11
-6.26401e-10
1.7914e-10
-6.46951e-10
2.71474e-10
-6.57015e-10
3.72029e-10
-6.54721e-10
4.77981e-10
-6.38612e-10
5.85839e-10
-6.07937e-10
6.91797e-10
-5.62916e-10
7.92333e-10
-5.04885e-10
8.85088e-10
-4.36291e-10
9.6999e-10
-3.60347e-10
1.0503e-09
-2.79022e-10
1.13327e-09
-1.88306e-10
1.22882e-09
-7.82816e-11
1.3426e-09
6.29181e-11
1.46939e-09
2.51183e-10
1.59782e-09
5.06562e-10
1.7081e-09
8.50228e-10
1.77234e-09
1.28226e-09
1.73668e-09
1.77811e-09
1.53373e-09
1.89246e-09
1.4404e-09
1.59138e-09
1.68695e-09
1.72859e-09
1.82432e-09
2.36465e-09
9.75671e-10
2.94528e-09
1.80147e-10
3.30011e-09
-1.33156e-09
3.29531e-09
-2.7556e-09
2.7357e-09
-4.12878e-09
1.83658e-09
-5.26986e-09
7.75952e-10
-6.03588e-09
-6.40314e-09
-3.42948e-10
-4.31865e-12
-1.2756e-11
-1.46554e-11
-2.71157e-11
-2.89073e-11
-4.10477e-11
-4.59843e-11
-5.70818e-11
-6.5403e-11
-7.48759e-11
-8.69831e-11
-9.32483e-11
-1.10666e-10
-1.10805e-10
-1.36474e-10
-1.2627e-10
-1.64419e-10
-1.38596e-10
-1.9451e-10
-1.46987e-10
-2.26713e-10
-1.50803e-10
-2.60931e-10
-1.49473e-10
-2.96977e-10
-1.42418e-10
-3.34534e-10
-1.28998e-10
-3.73121e-10
-1.08493e-10
-4.12053e-10
-8.01139e-11
-4.50417e-10
-4.30654e-11
-4.87059e-10
3.34895e-12
-5.20587e-10
5.96045e-11
-5.49398e-10
1.25795e-10
-5.71759e-10
2.015e-10
-5.85918e-10
2.85634e-10
-5.90258e-10
3.7637e-10
-5.83469e-10
4.71192e-10
-5.64729e-10
5.67098e-10
-5.33913e-10
6.60983e-10
-4.91743e-10
7.5016e-10
-4.39736e-10
8.33081e-10
-3.79863e-10
9.10118e-10
-3.13693e-10
9.8413e-10
-2.40716e-10
1.06029e-09
-1.5619e-10
1.1443e-09
-5.13904e-11
1.23781e-09
8.2933e-11
1.33507e-09
2.56692e-10
1.42406e-09
4.78245e-10
1.48655e-09
7.50134e-10
1.50045e-09
1.04918e-09
1.43764e-09
1.24676e-09
1.33615e-09
1.36526e-09
1.3219e-09
1.63189e-09
1.42031e-09
2.13519e-09
1.32102e-09
2.45242e-09
6.58439e-10
2.87583e-09
-2.43264e-10
2.95727e-09
-1.413e-09
2.78475e-09
-2.58309e-09
2.30981e-09
-3.65384e-09
1.57935e-09
-4.53941e-09
6.9535e-10
-5.15188e-09
-5.45101e-09
-2.56781e-10
-4.17329e-12
-8.58572e-12
-1.41739e-11
-1.71142e-11
-2.79574e-11
-2.72609e-11
-4.44637e-11
-4.0578e-11
-6.32024e-11
-5.61367e-11
-8.39712e-11
-7.24796e-11
-1.06694e-10
-8.80829e-11
-1.31341e-10
-1.01622e-10
-1.57887e-10
-1.12049e-10
-1.86287e-10
-1.18587e-10
-2.16456e-10
-1.20634e-10
-2.48247e-10
-1.17682e-10
-2.81425e-10
-1.09239e-10
-3.15642e-10
-9.47818e-11
-3.50392e-10
-7.37428e-11
-3.84993e-10
-4.5512e-11
-4.18568e-10
-9.49341e-12
-4.50034e-10
3.48149e-11
-4.78124e-10
8.76935e-11
-5.01419e-10
1.49092e-10
-5.18435e-10
2.18514e-10
-5.2772e-10
2.94921e-10
-5.28027e-10
3.76678e-10
-5.18451e-10
4.61615e-10
-4.9857e-10
5.47218e-10
-4.68559e-10
6.30973e-10
-4.2922e-10
7.10821e-10
-3.81814e-10
7.85675e-10
-3.27581e-10
8.55886e-10
-2.66908e-10
9.23458e-10
-1.98229e-10
9.91611e-10
-1.17079e-10
1.06315e-09
-1.68857e-11
1.13762e-09
1.08871e-10
1.20931e-09
2.6504e-10
1.26789e-09
4.52452e-10
1.29913e-09
6.6365e-10
1.28925e-09
8.69337e-10
1.23195e-09
1.04893e-09
1.15655e-09
1.25193e-09
1.11891e-09
1.58717e-09
1.08507e-09
2.0356e-09
8.72589e-10
2.38973e-09
3.04309e-10
2.62623e-09
-4.79762e-10
2.63909e-09
-1.42586e-09
2.42208e-09
-2.36608e-09
1.98919e-09
-3.22094e-09
1.37131e-09
-3.92153e-09
6.2872e-10
-4.40928e-09
-4.64929e-09
-1.73004e-10
-3.99219e-12
-4.59105e-12
-1.35728e-11
-7.5345e-12
-2.67727e-11
-1.40599e-11
-4.25607e-11
-2.47865e-11
-6.04617e-11
-3.82402e-11
-8.02456e-11
-5.26882e-11
-1.01825e-10
-6.65052e-11
-1.25126e-10
-7.83181e-11
-1.50092e-10
-8.70861e-11
-1.76627e-10
-9.20506e-11
-2.04609e-10
-9.26532e-11
-2.33849e-10
-8.84418e-11
-2.64083e-10
-7.90037e-11
-2.94941e-10
-6.39248e-11
-3.25916e-10
-4.27679e-11
-3.56349e-10
-1.50801e-11
-3.85414e-10
1.95693e-11
-4.12118e-10
6.15187e-11
-4.35332e-10
1.10908e-10
-4.5383e-10
1.6759e-10
-4.66351e-10
2.31036e-10
-4.71708e-10
3.00277e-10
-4.68921e-10
3.7389e-10
-4.57345e-10
4.50038e-10
-4.36762e-10
5.26634e-10
-4.07414e-10
6.01625e-10
-3.69958e-10
6.73365e-10
-3.25251e-10
7.40968e-10
-2.73897e-10
8.04532e-10
-2.15592e-10
8.65155e-10
-1.48459e-10
9.2448e-10
-6.87558e-11
9.83444e-10
2.83417e-11
1.04052e-09
1.46855e-10
1.09079e-09
2.89026e-10
1.12572e-09
4.52859e-10
1.1353e-09
6.30881e-10
1.11123e-09
8.10491e-10
1.05234e-09
9.93677e-10
9.73363e-10
1.22069e-09
8.91892e-10
1.53494e-09
7.70821e-10
1.90109e-09
5.06436e-10
2.19037e-09
1.50364e-11
2.34971e-09
-6.39105e-10
2.32155e-09
-1.3977e-09
2.10772e-09
-2.15225e-09
1.72278e-09
-2.836e-09
1.19554e-09
-3.39429e-09
5.69966e-10
-3.78371e-09
-3.97662e-09
-1.02696e-10
-3.78838e-12
-8.01703e-13
-1.28802e-11
1.55672e-12
-2.54026e-11
-1.54069e-12
-4.03634e-11
-9.82311e-12
-5.72951e-11
-2.13068e-11
-7.59676e-11
-3.40095e-11
-9.62642e-11
-4.6206e-11
-1.18088e-10
-5.64919e-11
-1.41345e-10
-6.38315e-11
-1.65907e-10
-6.7489e-11
-1.91614e-10
-6.69469e-11
-2.18249e-10
-6.18058e-11
-2.45526e-10
-5.17251e-11
-2.73069e-10
-3.63824e-11
-3.00381e-10
-1.5455e-11
-3.2684e-10
1.13765e-11
-3.51673e-10
4.44039e-11
-3.73988e-10
8.38326e-11
-3.92785e-10
1.29706e-10
-4.07006e-10
1.81812e-10
-4.1559e-10
2.39619e-10
-4.17556e-10
3.02245e-10
-4.12116e-10
3.6845e-10
-3.98768e-10
4.36691e-10
-3.77364e-10
5.05228e-10
-3.48087e-10
5.72347e-10
-3.11367e-10
6.36647e-10
-2.67675e-10
6.97277e-10
-2.17159e-10
7.54015e-10
-1.59183e-10
8.07179e-10
-9.19585e-11
8.57256e-10
-1.25583e-11
9.04044e-10
8.24017e-11
9.45554e-10
1.95712e-10
9.77481e-10
3.28058e-10
9.93375e-10
4.77376e-10
9.85983e-10
6.38986e-10
9.49618e-10
8.08392e-10
8.82937e-10
9.91027e-10
7.90728e-10
1.20902e-09
6.73898e-10
1.47606e-09
5.03786e-10
1.75741e-09
2.25084e-10
1.9729e-09
-2.00464e-10
2.07492e-09
-7.41125e-10
2.02594e-09
-1.34872e-09
1.82644e-09
-1.95275e-09
1.48977e-09
-2.49933e-09
1.04064e-09
-2.94516e-09
5.13791e-10
-3.25686e-09
-3.41293e-09
-4.99058e-11
-3.56906e-12
2.76877e-12
-1.21249e-11
1.01129e-11
-2.38944e-11
1.02326e-11
-3.79472e-11
4.22591e-12
-5.38172e-11
-5.43289e-12
-7.12848e-11
-1.65438e-11
-9.02037e-11
-2.72843e-11
-1.10463e-10
-3.62324e-11
-1.31935e-10
-4.2359e-11
-1.54467e-10
-4.49566e-11
-1.77868e-10
-4.3543e-11
-2.01902e-10
-3.77691e-11
-2.26269e-10
-2.73562e-11
-2.50591e-10
-1.206e-11
-2.74394e-10
8.34774e-12
-2.97092e-10
3.40728e-11
-3.17979e-10
6.5292e-11
-3.3625e-10
1.02105e-10
-3.51023e-10
1.44478e-10
-3.61378e-10
1.92168e-10
-3.66414e-10
2.44656e-10
-3.6531e-10
3.01139e-10
-3.57402e-10
3.60542e-10
-3.42262e-10
4.21552e-10
-3.19735e-10
4.827e-10
-2.89902e-10
5.42511e-10
-2.52974e-10
5.9972e-10
-2.09124e-10
6.53428e-10
-1.58219e-10
7.0311e-10
-9.95301e-11
7.48488e-10
-3.15385e-11
7.89262e-10
4.79497e-11
8.24554e-10
1.41293e-10
8.52211e-10
2.50198e-10
8.68575e-10
3.74893e-10
8.68679e-10
5.13771e-10
8.47107e-10
6.64013e-10
7.99378e-10
8.23754e-10
7.23196e-10
9.96358e-10
6.18123e-10
1.19066e-09
4.79597e-10
1.40576e-09
2.88682e-10
1.61379e-09
1.70574e-11
1.76472e-09
-3.51402e-10
1.82143e-09
-7.97831e-10
1.75922e-09
-1.28651e-09
1.57643e-09
-1.76997e-09
1.28395e-09
-2.20685e-09
9.02053e-10
-2.56326e-09
4.5852e-10
-2.81333e-09
-2.94032e-09
-1.4086e-11
-3.34044e-12
6.10828e-12
-1.13279e-11
1.80985e-11
-2.22999e-11
2.12076e-11
-3.53826e-11
1.73065e-11
-5.01345e-11
9.32047e-12
-6.63319e-11
-3.47838e-13
-8.38183e-11
-9.79817e-12
-1.02464e-10
-1.75858e-11
-1.22119e-10
-2.2703e-11
-1.4261e-10
-2.44659e-11
-1.63726e-10
-2.24263e-11
-1.85213e-10
-1.62813e-11
-2.06764e-10
-5.80353e-12
-2.28005e-10
9.18142e-12
-2.48485e-10
2.88263e-11
-2.67657e-10
5.32476e-11
-2.84887e-10
8.25215e-11
-2.99448e-10
1.16667e-10
-3.10554e-10
1.55589e-10
-3.17406e-10
1.99019e-10
-3.19219e-10
2.46469e-10
-3.15289e-10
2.97207e-10
-3.05037e-10
3.50288e-10
-2.88065e-10
4.04581e-10
-2.64182e-10
4.58818e-10
-2.33366e-10
5.11696e-10
-1.95667e-10
5.62021e-10
-1.51065e-10
6.08824e-10
-9.9293e-11
6.51337e-10
-3.96715e-11
6.88867e-10
2.89765e-11
7.20613e-10
1.08197e-10
7.45331e-10
1.99522e-10
7.60886e-10
3.03933e-10
7.64165e-10
4.21341e-10
7.5127e-10
5.50436e-10
7.18011e-10
6.89166e-10
6.60648e-10
8.35967e-10
5.76397e-10
9.91272e-10
4.62817e-10
1.15605e-09
3.14814e-10
1.32374e-09
1.20992e-10
1.47318e-09
-1.32384e-10
1.57235e-09
-4.50573e-10
1.59469e-09
-8.20169e-10
1.52359e-09
-1.21541e-09
1.35697e-09
-1.60334e-09
1.1032e-09
-1.95308e-09
7.78445e-10
-2.23851e-09
4.04752e-10
-2.43964e-09
-2.54346e-09
7.89212e-12
-3.10757e-12
9.21324e-12
-1.0507e-11
2.54972e-11
-2.06569e-11
3.13571e-11
-3.27363e-11
2.93877e-11
-4.63372e-11
2.29205e-11
-6.12313e-11
1.45466e-11
-7.72665e-11
6.23406e-12
-9.42855e-11
-5.66644e-13
-1.12129e-10
-4.85818e-12
-1.30607e-10
-5.98562e-12
-1.49497e-10
-3.53543e-12
-1.68532e-10
2.75547e-12
-1.87401e-10
1.30658e-11
-2.05739e-10
2.75194e-11
-2.23115e-10
4.62013e-11
-2.39026e-10
6.91576e-11
-2.52895e-10
9.63917e-11
-2.64074e-10
1.27846e-10
-2.71867e-10
1.63381e-10
-2.75559e-10
2.02713e-10
-2.74468e-10
2.45376e-10
-2.6797e-10
2.90708e-10
-2.55544e-10
3.37861e-10
-2.36807e-10
3.85842e-10
-2.11528e-10
4.3354e-10
-1.79606e-10
4.79775e-10
-1.40986e-10
5.23403e-10
-9.55555e-11
5.63394e-10
-4.3028e-11
5.98808e-10
1.71425e-11
6.28694e-10
8.57813e-11
6.51975e-10
1.63881e-10
6.67231e-10
2.5231e-10
6.72454e-10
3.51476e-10
6.64999e-10
4.60996e-10
6.41752e-10
5.79592e-10
5.99415e-10
7.05353e-10
5.34886e-10
8.36283e-10
4.45467e-10
9.70633e-10
3.28468e-10
1.10553e-09
1.79914e-10
1.23297e-09
-6.45222e-12
1.33715e-09
-2.36561e-10
1.397e-09
-5.10427e-10
1.39435e-09
-8.17514e-10
1.31802e-09
-1.13908e-09
1.16641e-09
-1.45174e-09
9.45937e-10
-1.7326e-09
6.69278e-10
-1.96185e-09
3.53744e-10
-2.1241e-09
-2.20928e-09
1.9568e-11
-2.87278e-12
1.20858e-11
-9.67809e-12
3.23046e-11
-1.8996e-11
4.06746e-11
-3.00651e-11
4.04582e-11
-4.25064e-11
3.53597e-11
-5.60977e-11
2.81368e-11
-7.06799e-11
2.08142e-11
-8.60932e-11
1.48457e-11
-1.02164e-10
1.12123e-11
-1.18691e-10
1.05419e-11
-1.35444e-10
1.32158e-11
-1.52153e-10
1.94631e-11
-1.68506e-10
2.94193e-11
-1.84149e-10
4.31608e-11
-1.98671e-10
6.07239e-11
-2.11606e-10
8.20955e-11
-2.22436e-10
1.07219e-10
-2.30575e-10
1.35987e-10
-2.35408e-10
1.68213e-10
-2.363e-10
2.03604e-10
-2.32642e-10
2.41719e-10
-2.23879e-10
2.81946e-10
-2.09538e-10
3.23519e-10
-1.89244e-10
3.65549e-10
-1.62742e-10
4.07038e-10
-1.29879e-10
4.46911e-10
-9.05501e-11
4.84072e-10
-4.46192e-11
5.17463e-10
8.14712e-12
5.46044e-10
6.81127e-11
5.68727e-10
1.35781e-10
5.84306e-10
2.11676e-10
5.91336e-10
2.96142e-10
5.87987e-10
3.89116e-10
5.72025e-10
4.89921e-10
5.40948e-10
5.97172e-10
4.92166e-10
7.08861e-10
4.23196e-10
8.22545e-10
3.31782e-10
9.35285e-10
2.15729e-10
1.04273e-09
7.24696e-11
1.13727e-09
-1.00995e-10
1.20713e-09
-3.06425e-10
1.23819e-09
-5.41486e-10
1.21823e-09
-7.9755e-10
1.13987e-09
-1.06072e-09
1.00219e-09
-1.31406e-09
8.10226e-10
-1.54064e-09
5.73859e-10
-1.72549e-09
3.06599e-10
-1.85684e-09
-1.92692e-09
2.42336e-11
-2.63862e-12
1.47232e-11
-8.8535e-12
3.85221e-11
-1.73462e-11
4.9164e-11
-2.74151e-11
5.05281e-11
-3.87105e-11
4.66531e-11
-5.10192e-11
4.04445e-11
-6.41807e-11
3.39743e-11
-7.80331e-11
2.86957e-11
-9.23924e-11
2.55731e-11
-1.07055e-10
2.52059e-11
-1.21786e-10
2.79468e-11
-1.36316e-10
3.39925e-11
-1.50342e-10
4.34434e-11
-1.63515e-10
5.63368e-11
-1.75454e-10
7.26611e-11
-1.85724e-10
9.23654e-11
-1.9385e-10
1.15345e-10
-1.99312e-10
1.41448e-10
-2.01559e-10
1.70459e-10
-2.00029e-10
2.02073e-10
-1.94178e-10
2.35868e-10
-1.83507e-10
2.71278e-10
-1.6759e-10
3.07601e-10
-1.46071e-10
3.44029e-10
-1.18688e-10
3.79655e-10
-8.52656e-11
4.13489e-10
-4.56865e-11
4.44492e-10
1.5999e-13
4.71613e-10
5.24144e-11
4.9379e-10
1.11263e-10
5.0988e-10
1.76911e-10
5.18656e-10
2.49509e-10
5.18738e-10
3.28996e-10
5.08502e-10
4.14939e-10
4.86083e-10
5.064e-10
4.49486e-10
6.01861e-10
3.96705e-10
6.99208e-10
3.25849e-10
7.95761e-10
2.35228e-10
8.88145e-10
1.23345e-10
9.71777e-10
-1.11622e-11
1.04008e-09
-1.69296e-10
1.08434e-09
-3.50683e-10
1.09492e-09
-5.52071e-10
1.06369e-09
-7.66319e-10
9.85892e-10
-9.82919e-10
8.61227e-10
-1.1894e-09
6.93737e-10
-1.37315e-09
4.91148e-10
-1.5229e-09
2.63976e-10
-1.62967e-09
-1.68745e-09
2.45066e-11
-2.40577e-12
1.7128e-11
-8.04398e-12
4.41615e-11
-1.57293e-11
5.68458e-11
-2.4824e-11
5.96238e-11
-3.50051e-11
5.68338e-11
-4.60712e-11
5.1512e-11
-5.7864e-11
4.5767e-11
-7.02201e-11
4.10499e-11
-8.2954e-11
3.83059e-11
-9.58589e-11
3.81096e-11
-1.08701e-10
4.07881e-11
-1.21216e-10
4.65087e-11
-1.33112e-10
5.53374e-11
-1.44057e-10
6.72817e-11
-1.53687e-10
8.22944e-11
-1.61606e-10
1.00284e-10
-1.67378e-10
1.21117e-10
-1.70536e-10
1.44606e-10
-1.70589e-10
1.70511e-10
-1.67038e-10
1.9852e-10
-1.59398e-10
2.28227e-10
-1.47225e-10
2.59105e-10
-1.30134e-10
2.90511e-10
-1.07803e-10
3.21699e-10
-7.99845e-11
3.51836e-10
-4.65081e-11
3.80011e-10
-7.26699e-12
4.05251e-10
3.77955e-11
4.2655e-10
8.87222e-11
4.42861e-10
1.45529e-10
4.53073e-10
2.08182e-10
4.56004e-10
2.76536e-10
4.50383e-10
3.5023e-10
4.34809e-10
4.28564e-10
4.07752e-10
5.1041e-10
3.6764e-10
5.94153e-10
3.12962e-10
6.77653e-10
2.4235e-10
7.58213e-10
1.54668e-10
8.32487e-10
4.90694e-11
8.96238e-10
-7.4913e-11
9.44063e-10
-2.17121e-10
9.69526e-10
-3.76145e-10
9.66003e-10
-5.48547e-10
9.28091e-10
-7.28406e-10
8.52818e-10
-9.07646e-10
7.40349e-10
-1.07693e-09
5.94002e-10
-1.2268e-09
4.1985e-10
-1.34875e-09
2.26092e-10
-1.43591e-09
-1.48365e-09
2.22885e-11
-2.17568e-12
1.93065e-11
-7.25787e-12
4.92412e-11
-1.41631e-11
6.37504e-11
-2.23224e-11
6.77814e-11
-3.14337e-11
6.59461e-11
-4.13136e-11
6.13916e-11
-5.18054e-11
5.62577e-11
-6.27473e-11
5.19904e-11
-7.3956e-11
4.95136e-11
-8.52243e-11
4.93792e-11
-9.63243e-11
5.18879e-11
-1.07002e-10
5.71837e-11
-1.16972e-10
6.53096e-11
-1.25928e-10
7.62371e-11
-1.33529e-10
8.98945e-11
-1.39406e-10
1.06163e-10
-1.43167e-10
1.24879e-10
-1.44392e-10
1.45833e-10
-1.42644e-10
1.68764e-10
-1.37482e-10
1.93358e-10
-1.28475e-10
2.19221e-10
-1.1523e-10
2.4586e-10
-9.74051e-11
2.72685e-10
-7.47173e-11
2.99011e-10
-4.6951e-11
3.24069e-10
-1.39626e-11
3.4702e-10
2.43209e-11
3.66966e-10
6.79075e-11
3.82964e-10
1.16739e-10
3.94029e-10
1.70688e-10
3.99123e-10
2.2954e-10
3.97154e-10
2.92933e-10
3.86991e-10
3.60295e-10
3.67448e-10
4.30753e-10
3.37295e-10
5.03072e-10
2.95321e-10
5.7561e-10
2.40422e-10
6.46287e-10
1.71673e-10
7.12549e-10
8.84056e-11
7.71325e-10
-9.70833e-12
8.18945e-10
-1.22534e-10
8.51098e-10
-2.49273e-10
8.63041e-10
-3.88086e-10
8.50189e-10
-5.35694e-10
8.08975e-10
-6.87191e-10
7.37617e-10
-8.36289e-10
6.36581e-10
-9.75891e-10
5.08629e-10
-1.09885e-09
3.58573e-10
-1.19869e-09
1.92829e-10
-1.27017e-09
-1.30968e-09
1.88621e-11
-1.95324e-12
2.12625e-11
-6.50134e-12
5.37864e-11
-1.26642e-11
6.99143e-11
-1.99336e-11
7.50482e-11
-2.80314e-11
7.40464e-11
-3.67914e-11
7.01511e-11
-4.60596e-11
6.5528e-11
-5.56808e-11
6.16116e-11
-6.54751e-11
5.93066e-11
-7.52408e-11
5.91438e-11
-8.47544e-11
6.1403e-11
-9.37722e-11
6.62028e-11
-1.0203e-10
7.35652e-11
-1.09234e-10
8.34421e-11
-1.15074e-10
9.57329e-11
-1.19211e-10
1.10299e-10
-1.2129e-10
1.26956e-10
-1.20939e-10
1.45479e-10
-1.17767e-10
1.65596e-10
-1.1139e-10
1.86983e-10
-1.01431e-10
2.09261e-10
-8.75411e-11
2.31971e-10
-6.94222e-11
2.54568e-10
-4.6836e-11
2.76423e-10
-1.96051e-11
2.96835e-10
1.23773e-11
3.15036e-10
4.91398e-11
3.30201e-10
9.06341e-11
3.41469e-10
1.36726e-10
3.47939e-10
1.87177e-10
3.48671e-10
2.41639e-10
3.42693e-10
2.99611e-10
3.29022e-10
3.60383e-10
3.06675e-10
4.22994e-10
2.74683e-10
4.86175e-10
2.3214e-10
5.48325e-10
1.78272e-10
6.07493e-10
1.12505e-10
6.61362e-10
3.45369e-11
7.07239e-10
-5.55855e-11
7.42062e-10
-1.57356e-10
7.62448e-10
-2.69659e-10
7.6491e-10
-3.90547e-10
7.46263e-10
-5.17045e-10
7.04171e-10
-6.45099e-10
6.37633e-10
-7.69751e-10
5.47283e-10
-8.85542e-10
4.35443e-10
-9.87012e-10
3.05954e-10
-1.0692e-09
1.63867e-10
-1.12808e-09
-1.16085e-09
1.50338e-11
-1.74042e-12
2.30021e-11
-5.7808e-12
5.78256e-11
-1.12447e-11
7.53802e-11
-1.7675e-11
8.14783e-11
-2.48232e-11
8.11963e-11
-3.25354e-11
7.78613e-11
-4.06668e-11
7.36586e-11
-4.90678e-11
7.00106e-11
-5.75635e-11
6.78024e-11
-6.59616e-11
6.75407e-11
-7.40499e-11
6.94871e-11
-8.15917e-11
7.37461e-11
-8.83414e-11
8.03149e-11
-9.40299e-11
8.91285e-11
-9.83672e-11
1.0007e-10
-1.01049e-10
1.1298e-10
-1.01756e-10
1.27662e-10
-1.00158e-10
1.43879e-10
-9.5916e-11
1.61353e-10
-8.86915e-11
1.79761e-10
-7.81603e-11
1.98731e-10
-6.40239e-11
2.17833e-10
-4.6024e-11
2.36568e-10
-2.39619e-11
2.5436e-10
2.29671e-12
2.70574e-10
3.28181e-11
2.84514e-10
6.75868e-11
2.95433e-10
1.06501e-10
3.02553e-10
1.49368e-10
3.05073e-10
1.95877e-10
3.02162e-10
2.45591e-10
2.92979e-10
2.97924e-10
2.7669e-10
3.52104e-10
2.52496e-10
4.07137e-10
2.1965e-10
4.61783e-10
1.77495e-10
5.14534e-10
1.25521e-10
5.63615e-10
6.34252e-11
6.06982e-10
-8.83045e-12
6.42344e-10
-9.09481e-11
6.67202e-10
-1.82213e-10
6.78931e-10
-2.81386e-10
6.74968e-10
-3.86582e-10
6.53099e-10
-4.95177e-10
6.11814e-10
-6.03813e-10
5.50614e-10
-7.08552e-10
4.70211e-10
-8.05139e-10
3.72559e-10
-8.89361e-10
2.6075e-10
-9.57395e-10
1.38784e-10
-1.00612e-09
-1.03334e-09
1.12744e-11
-1.53725e-12
2.4538e-11
-5.10149e-12
6.13904e-11
-9.9122e-12
8.01938e-11
-1.55612e-11
8.71266e-11
-2.18274e-11
8.7462e-11
-2.85687e-11
8.46017e-11
-3.56523e-11
8.07427e-11
-4.29344e-11
7.72945e-11
-5.02517e-11
7.51198e-11
-5.74195e-11
7.47087e-11
-6.42351e-11
7.63028e-11
-7.04816e-11
7.99907e-11
-7.59245e-11
8.57573e-11
-8.03187e-11
9.3521e-11
-8.34006e-11
1.0315e-10
-8.48955e-11
1.14474e-10
-8.45174e-11
1.27284e-10
-8.1977e-11
1.41339e-10
-7.69816e-11
1.56357e-10
-6.92415e-11
1.7202e-10
-5.8478e-11
1.87969e-10
-4.44401e-11
2.03795e-10
-2.69152e-11
2.1904e-10
-5.73953e-12
2.33184e-10
1.9182e-11
2.45651e-10
4.78761e-11
2.55819e-10
8.02898e-11
2.6302e-10
1.16278e-10
2.66563e-10
1.55605e-10
2.65746e-10
1.97918e-10
2.59851e-10
2.42734e-10
2.48163e-10
2.89427e-10
2.29997e-10
3.3721e-10
2.04714e-10
3.85111e-10
1.7175e-10
4.31954e-10
1.30652e-10
4.76363e-10
8.11134e-11
5.16758e-10
2.30306e-11
5.51378e-10
-4.34503e-11
5.78308e-10
-1.17878e-10
5.95535e-10
-1.99439e-10
6.01038e-10
-2.86887e-10
5.92933e-10
-3.78477e-10
5.69684e-10
-4.71928e-10
5.30331e-10
-5.64461e-10
4.74694e-10
-6.52915e-10
4.03496e-10
-7.33941e-10
3.18388e-10
-8.04253e-10
2.21872e-10
-8.60878e-10
1.17136e-10
-9.0138e-10
-9.2404e-10
7.83587e-12
-1.34596e-12
2.58833e-11
-4.46778e-12
6.45138e-11
-8.67376e-12
8.44038e-11
-1.36e-11
9.20547e-11
-1.90526e-11
9.29151e-11
-2.4902e-11
9.04504e-11
-3.10287e-11
8.68666e-11
-3.72968e-11
8.35619e-11
-4.35509e-11
8.13754e-11
-4.96216e-11
8.07767e-11
-5.53163e-11
8.19959e-11
-6.04352e-11
8.51059e-11
-6.47605e-11
9.00805e-11
-6.80685e-11
9.68269e-11
-7.01224e-11
1.05203e-10
-7.06758e-11
1.15027e-10
-6.94753e-11
1.26085e-10
-6.62687e-11
1.38133e-10
-6.08038e-11
1.50892e-10
-5.28357e-11
1.64051e-10
-4.21325e-11
1.77265e-10
-2.84852e-11
1.90149e-10
-1.17244e-11
2.02278e-10
8.27616e-12
2.13182e-10
3.15814e-11
2.22346e-10
5.81822e-11
2.29217e-10
8.79964e-11
2.33206e-10
1.20851e-10
2.33708e-10
1.56481e-10
2.30115e-10
1.94513e-10
2.21819e-10
2.34452e-10
2.08226e-10
2.7567e-10
1.88779e-10
3.174e-10
1.62984e-10
3.58722e-10
1.30429e-10
3.98558e-10
9.08168e-11
4.35673e-10
4.39986e-11
4.68693e-10
-9.98787e-12
4.9612e-10
-7.08764e-11
5.16376e-10
-1.38133e-10
5.27855e-10
-2.10917e-10
5.29003e-10
-2.88035e-10
5.18439e-10
-3.67913e-10
4.95099e-10
-4.48588e-10
4.58391e-10
-5.27753e-10
4.08326e-10
-6.0285e-10
3.45602e-10
-6.71216e-10
2.71613e-10
-7.30263e-10
1.88392e-10
-7.77657e-10
9.84957e-11
-8.11483e-10
-8.30382e-10
4.83726e-12
-1.1686e-12
2.70517e-11
-3.8812e-12
6.72287e-11
-7.53187e-12
8.8054e-11
-1.17954e-11
9.63173e-11
-1.65048e-11
9.76223e-11
-2.15417e-11
9.54894e-11
-2.6798e-11
9.21269e-11
-3.21537e-11
8.89162e-11
-3.74609e-11
8.66827e-11
-4.25598e-11
8.58762e-11
-4.72759e-11
8.67109e-11
-5.14245e-11
8.92509e-11
-5.48057e-11
9.3461e-11
-5.72176e-11
9.92378e-11
-5.84499e-11
1.06432e-10
-5.82826e-11
1.14858e-10
-5.64933e-11
1.24297e-10
-5.28634e-11
1.34504e-10
-4.7178e-11
1.45206e-10
-3.923e-11
1.56103e-10
-2.8831e-11
1.66865e-10
-1.58127e-11
1.7713e-10
-4.17197e-14
1.86506e-10
1.85713e-11
1.94567e-10
4.00639e-11
2.00855e-10
6.44016e-11
2.04878e-10
9.14806e-11
2.06127e-10
1.21113e-10
2.04077e-10
1.5302e-10
1.98208e-10
1.86825e-10
1.88014e-10
2.22043e-10
1.73008e-10
2.58071e-10
1.52751e-10
2.94186e-10
1.26869e-10
3.29542e-10
9.50736e-11
3.6317e-10
5.71896e-11
3.93985e-10
1.31842e-11
4.20808e-10
-3.68093e-11
4.42382e-10
-9.24487e-11
4.57417e-10
-1.53167e-10
4.64638e-10
-2.18138e-10
4.62855e-10
-2.86253e-10
4.51055e-10
-3.56113e-10
4.28503e-10
-4.26036e-10
3.9485e-10
-4.941e-10
3.50219e-10
-5.58218e-10
2.95257e-10
-6.16254e-10
2.3114e-10
-6.66146e-10
1.59528e-10
-7.06044e-10
8.24779e-11
-7.34432e-10
-7.50226e-10
2.32267e-12
-1.00667e-12
2.80592e-11
-3.34537e-12
6.95714e-11
-6.48727e-12
9.11975e-11
-1.01457e-11
9.99795e-11
-1.41784e-11
1.01656e-10
-1.84816e-11
9.97935e-11
-2.2958e-11
9.66054e-11
-2.74962e-11
9.34556e-11
-3.19643e-11
9.11501e-11
-3.6213e-11
9.0125e-11
-4.0082e-11
9.05806e-11
-4.34043e-11
9.25717e-11
-4.60001e-11
9.60567e-11
-4.76871e-11
1.00926e-10
-4.82789e-11
1.07025e-10
-4.75845e-11
1.14163e-10
-4.54109e-11
1.22123e-10
-4.15671e-11
1.30661e-10
-3.58721e-11
1.39511e-10
-2.81538e-11
1.48385e-10
-1.82593e-11
1.5697e-10
-6.0572e-12
1.64927e-10
8.55336e-12
1.71895e-10
2.56318e-11
1.77488e-10
4.519e-11
1.81296e-10
6.71776e-11
1.8289e-10
9.1477e-11
1.81826e-10
1.17895e-10
1.77659e-10
1.46155e-10
1.69949e-10
1.75888e-10
1.58279e-10
2.06636e-10
1.42259e-10
2.37837e-10
1.21551e-10
2.68827e-10
9.58799e-11
2.98844e-10
6.50569e-11
3.27035e-10
2.90005e-11
3.52462e-10
-1.22416e-11
3.7412e-10
-5.84671e-11
3.9097e-10
-1.09298e-10
4.01965e-10
-1.64161e-10
4.06094e-10
-2.22268e-10
4.0245e-10
-2.82609e-10
3.90287e-10
-3.4395e-10
3.69101e-10
-4.04851e-10
3.38702e-10
-4.637e-10
2.9927e-10
-5.18786e-10
2.51391e-10
-5.68375e-10
1.96054e-10
-6.10808e-10
1.34616e-10
-6.44606e-10
6.87388e-11
-6.68554e-10
-6.81783e-10
2.96193e-13
-8.60241e-13
2.89204e-11
-2.85879e-12
7.15722e-11
-5.53715e-12
9.38751e-11
-8.64848e-12
1.0309e-10
-1.20705e-11
1.05076e-10
-1.57125e-11
1.03439e-10
-1.9492e-11
1.00385e-10
-2.33061e-11
9.72687e-11
-2.70356e-11
9.48774e-11
-3.05458e-11
9.36322e-11
-3.36894e-11
9.37229e-11
-3.63168e-11
9.51972e-11
-3.82685e-11
9.80069e-11
-3.93825e-11
1.0204e-10
-3.94944e-11
1.07139e-10
-3.84395e-11
1.1311e-10
-3.60539e-11
1.19737e-10
-3.21733e-11
1.2678e-10
-2.66445e-11
1.33983e-10
-1.93271e-11
1.41067e-10
-1.00974e-11
1.47739e-10
1.14525e-12
1.53683e-10
1.44739e-11
1.58567e-10
2.9923e-11
1.62039e-10
4.74847e-11
1.63734e-10
6.70995e-11
1.63274e-10
8.86447e-11
1.6028e-10
1.11929e-10
1.54374e-10
1.36687e-10
1.45191e-10
1.62573e-10
1.32392e-10
1.89159e-10
1.15671e-10
2.15937e-10
9.47747e-11
2.42308e-10
6.95099e-11
2.67599e-10
3.9766e-11
2.91069e-10
5.53135e-12
3.11919e-10
-3.30892e-11
3.29305e-10
-7.58525e-11
3.42371e-10
-1.22364e-10
3.50272e-10
-1.72062e-10
3.52214e-10
-2.24211e-10
3.47503e-10
-2.77898e-10
3.3559e-10
-3.32038e-10
3.16132e-10
-3.85393e-10
2.89041e-10
-4.36609e-10
2.54521e-10
-4.84267e-10
2.13089e-10
-5.26944e-10
1.65576e-10
-5.63294e-10
1.1309e-10
-5.92119e-10
5.69755e-11
-6.12439e-10
-6.23549e-10
-1.25877e-12
-7.29306e-13
2.96502e-11
-2.42073e-12
7.32649e-11
-4.67979e-12
9.61354e-11
-7.29557e-12
1.05711e-10
-1.01683e-11
1.0795e-10
-1.32223e-11
1.06494e-10
-1.63814e-11
1.03547e-10
-1.95568e-11
1.00445e-10
-2.26413e-11
9.79609e-11
-2.5515e-11
9.65031e-11
-2.80425e-11
9.62518e-11
-3.0093e-11
9.72462e-11
-3.15256e-11
9.94372e-11
-3.2198e-11
1.02712e-10
-3.19692e-11
1.0691e-10
-3.06978e-11
1.1184e-10
-2.82448e-11
1.17284e-10
-2.44731e-11
1.23008e-10
-1.92541e-11
1.28764e-10
-1.24736e-11
1.34286e-10
-4.03234e-12
1.39297e-10
6.14498e-12
1.43505e-10
1.81078e-11
1.46604e-10
3.18737e-11
1.48274e-10
4.7421e-11
1.48186e-10
6.4686e-11
1.46009e-10
8.35492e-11
1.41417e-10
1.03827e-10
1.34094e-10
1.25274e-10
1.23743e-10
1.47573e-10
1.10092e-10
1.70336e-10
9.29073e-11
1.93105e-10
7.20064e-11
2.15354e-10
4.72636e-11
2.36495e-10
1.86255e-11
2.55893e-10
-1.38667e-11
2.72876e-10
-5.00709e-11
2.86746e-10
-8.97208e-11
2.968e-10
-1.32418e-10
3.02364e-10
-1.77626e-10
3.02814e-10
-2.24662e-10
2.97619e-10
-2.72705e-10
2.86378e-10
-3.20798e-10
2.6886e-10
-3.67875e-10
2.45038e-10
-4.12788e-10
2.15119e-10
-4.54348e-10
1.79553e-10
-4.91378e-10
1.3903e-10
-5.22771e-10
9.44568e-11
-5.47546e-10
4.69193e-11
-5.64902e-10
-5.74262e-10
-2.36884e-12
-6.1274e-13
3.02645e-11
-2.02601e-12
7.46818e-11
-3.90825e-12
9.80173e-11
-6.08164e-12
1.07887e-10
-8.46189e-12
1.10334e-10
-1.0992e-11
1.09023e-10
-1.36035e-11
1.06159e-10
-1.62189e-11
1.03061e-10
-1.87424e-11
1.00485e-10
-2.107e-11
9.88274e-11
-2.30811e-11
9.82631e-11
-2.46579e-11
9.88244e-11
-2.56791e-11
1.00459e-10
-2.60233e-11
1.03056e-10
-2.5571e-11
1.06457e-10
-2.42037e-11
1.10471e-10
-2.18044e-11
1.14884e-10
-1.82606e-11
1.19464e-10
-1.34665e-11
1.23969e-10
-7.32869e-12
1.28147e-10
2.301e-13
1.31738e-10
9.26712e-12
1.3447e-10
1.98116e-11
1.3606e-10
3.18697e-11
1.36216e-10
4.54141e-11
1.34641e-10
6.03811e-11
1.31042e-10
7.66621e-11
1.25136e-10
9.4089e-11
1.16665e-10
1.12437e-10
1.05392e-10
1.31424e-10
9.11059e-11
1.50704e-10
7.36283e-11
1.69871e-10
5.28411e-11
1.88462e-10
2.86738e-11
2.05979e-10
1.10982e-12
2.21879e-10
-2.97668e-11
2.35608e-10
-6.37988e-11
2.46592e-10
-1.00704e-10
2.54265e-10
-1.40092e-10
2.58088e-10
-1.8145e-10
2.57577e-10
-2.24152e-10
2.52327e-10
-2.67455e-10
2.42043e-10
-3.10515e-10
2.26572e-10
-3.52405e-10
2.05926e-10
-3.92143e-10
1.80298e-10
-4.28721e-10
1.50074e-10
-4.61155e-10
1.15824e-10
-4.88521e-10
7.82854e-11
-5.10006e-10
3.83315e-11
-5.24948e-10
-5.32867e-10
-3.0638e-12
-5.08255e-13
3.07724e-11
-1.67401e-12
7.58489e-11
-3.21687e-12
9.95629e-11
-4.99655e-12
1.09667e-10
-6.9414e-12
1.1228e-10
-9.00455e-12
1.11086e-10
-1.1134e-11
1.08286e-10
-1.32593e-11
1.05185e-10
-1.52984e-11
1.02525e-10
-1.71582e-11
1.00688e-10
-1.87383e-11
9.98413e-11
-1.99321e-11
1.00017e-10
-2.06344e-11
1.01163e-10
-2.07456e-11
1.03167e-10
-2.01668e-11
1.05878e-10
-1.88016e-11
1.09106e-10
-1.65548e-11
1.12637e-10
-1.33347e-11
1.16243e-10
-9.05555e-12
1.19689e-10
-3.64102e-12
1.22733e-10
2.96717e-12
1.2513e-10
1.08121e-11
1.26627e-10
1.99089e-11
1.26963e-10
3.02553e-11
1.25869e-10
4.18247e-11
1.23072e-10
5.45596e-11
1.18306e-10
6.8369e-11
1.11327e-10
8.31069e-11
1.01927e-10
9.85717e-11
8.99264e-11
1.14516e-10
7.51631e-11
1.30642e-10
5.75043e-11
1.46588e-10
3.68958e-11
1.61951e-10
1.33113e-11
1.76301e-10
-1.32395e-11
1.89201e-10
-4.26669e-11
2.00193e-10
-7.47895e-11
2.08814e-10
-1.09325e-10
2.14613e-10
-1.45891e-10
2.17165e-10
-1.84004e-10
2.16096e-10
-2.23084e-10
2.111e-10
-2.62459e-10
2.01962e-10
-3.01377e-10
1.88581e-10
-3.39025e-10
1.70989e-10
-3.74551e-10
1.49362e-10
-4.07094e-10
1.24021e-10
-4.35814e-10
9.54335e-11
-4.59933e-10
6.41924e-11
-4.78766e-10
3.09973e-11
-4.91754e-10
-4.98495e-10
-3.37675e-12
-4.13768e-13
3.11893e-11
-1.35914e-12
7.67964e-11
-2.60331e-12
1.00812e-10
-4.03338e-12
1.111e-10
-5.59466e-12
1.13842e-10
-7.24573e-12
1.1274e-10
-8.9505e-12
1.09989e-10
-1.06467e-11
1.06882e-10
-1.22675e-11
1.04146e-10
-1.37306e-11
1.02152e-10
-1.49507e-11
1.01061e-10
-1.58362e-11
1.00902e-10
-1.62973e-11
1.01624e-10
-1.62528e-11
1.03122e-10
-1.56256e-11
1.0525e-10
-1.43405e-11
1.07821e-10
-1.23238e-11
1.10621e-10
-9.50162e-12
1.13421e-10
-5.80494e-12
1.15991e-10
-1.17149e-12
1.181e-10
4.44114e-12
1.19517e-10
1.10632e-11
1.20006e-10
1.87006e-11
1.19325e-10
2.73448e-11
1.17224e-10
3.69739e-11
1.13444e-10
4.75436e-11
1.07735e-10
5.89873e-11
9.98835e-11
7.11882e-11
8.97271e-11
8.39696e-11
7.71455e-11
9.71199e-11
6.20135e-11
1.10397e-10
4.42286e-11
1.23473e-10
2.38208e-11
1.35982e-10
8.01066e-13
1.47571e-10
-2.48272e-11
1.57887e-10
-5.29821e-11
1.66567e-10
-8.34696e-11
1.73248e-10
-1.16006e-10
1.77576e-10
-1.5022e-10
1.79223e-10
-1.85653e-10
1.77902e-10
-2.21764e-10
1.73384e-10
-2.5794e-10
1.65512e-10
-2.93505e-10
1.54224e-10
-3.27737e-10
1.39559e-10
-3.59887e-10
1.21669e-10
-3.89204e-10
1.00819e-10
-4.14964e-10
7.73828e-11
-4.36497e-10
5.18325e-11
-4.53216e-10
2.47206e-11
-4.64644e-10
-4.70432e-10
-3.3432e-12
-3.29417e-13
3.15205e-11
-1.07856e-12
7.75473e-11
-2.06309e-12
1.01797e-10
-3.18914e-12
1.12228e-10
-4.41421e-12
1.15067e-10
-5.70528e-12
1.14034e-10
-7.03626e-12
1.11319e-10
-8.35796e-12
1.08205e-10
-9.6166e-12
1.05404e-10
-1.07428e-11
1.03279e-10
-1.1663e-11
1.01982e-10
-1.2301e-11
1.0154e-10
-1.25827e-11
1.01906e-10
-1.24425e-11
1.02982e-10
-1.18257e-11
1.04633e-10
-1.06797e-11
1.06675e-10
-8.94923e-12
1.08891e-10
-6.57575e-12
1.11048e-10
-3.5048e-12
1.12919e-10
3.1404e-13
1.14283e-10
4.91078e-12
1.14919e-10
1.03034e-11
1.14612e-10
1.64893e-11
1.13139e-10
2.34529e-11
1.1026e-10
3.11774e-11
1.05721e-10
3.96391e-11
9.92743e-11
4.88026e-11
9.07189e-11
5.85868e-11
7.99435e-11
6.88451e-11
6.68885e-11
7.9409e-11
5.14503e-11
9.01132e-11
3.3525e-11
1.00635e-10
1.32991e-11
1.10612e-10
-9.17713e-12
1.19769e-10
-3.39841e-11
1.27839e-10
-6.10519e-11
1.34551e-10
-9.01814e-11
1.39627e-10
-1.21084e-10
1.42801e-10
-1.53395e-10
1.43824e-10
-1.86676e-10
1.42479e-10
-2.20419e-10
1.38598e-10
-2.54059e-10
1.32071e-10
-2.86978e-10
1.22858e-10
-3.18525e-10
1.11e-10
-3.4803e-10
9.66222e-11
-3.74827e-10
7.99363e-11
-3.98278e-10
6.12354e-11
-4.17797e-10
4.08864e-11
-4.32869e-10
1.93167e-11
-4.43076e-10
-4.48112e-10
-3.0045e-12
-2.53334e-13
3.17757e-11
-8.31625e-13
7.81262e-11
-1.59264e-12
1.02559e-10
-2.46084e-12
1.13096e-10
-3.39812e-12
1.16004e-10
-4.37985e-12
1.15017e-10
-5.38594e-12
1.12326e-10
-6.38188e-12
1.09203e-10
-7.32748e-12
1.06349e-10
-8.16598e-12
1.04117e-10
-8.83677e-12
1.02653e-10
-9.2768e-12
1.0198e-10
-9.42657e-12
1.02054e-10
-9.23602e-12
1.02792e-10
-8.67064e-12
1.04068e-10
-7.70006e-12
1.05705e-10
-6.28627e-12
1.07476e-10
-4.38294e-12
1.09145e-10
-1.9486e-12
1.10484e-10
1.05631e-12
1.11279e-10
4.65239e-12
1.11323e-10
8.84457e-12
1.10419e-10
1.36187e-11
1.08365e-10
1.89477e-11
1.0493e-10
2.48138e-11
9.98555e-11
3.1213e-11
9.28754e-11
3.81479e-11
8.37835e-11
4.5579e-11
7.25133e-11
5.33976e-11
5.90714e-11
6.15064e-11
4.33418e-11
6.98753e-11
2.51559e-11
7.81107e-11
5.0631e-12
8.58117e-11
-1.68789e-11
9.27826e-11
-4.09557e-11
9.88624e-11
-6.71322e-11
1.03866e-10
-9.51854e-11
1.07594e-10
-1.24814e-10
1.09853e-10
-1.55654e-10
1.1046e-10
-1.87283e-10
1.0926e-10
-2.19218e-10
1.06131e-10
-2.5093e-10
1.00997e-10
-2.81845e-10
9.38358e-11
-3.11364e-10
8.46825e-11
-3.38877e-10
7.36358e-11
-3.63781e-10
6.08569e-11
-3.855e-10
4.65671e-11
-4.03508e-10
3.10409e-11
-4.17344e-10
1.45964e-11
-4.26632e-10
-4.31098e-10
-2.41805e-12
-1.87465e-13
3.19658e-11
-6.20116e-13
7.85575e-11
-1.19601e-12
1.03138e-10
-1.85429e-12
1.13755e-10
-2.55569e-12
1.16705e-10
-3.28004e-12
1.15742e-10
-4.01392e-12
1.1306e-10
-4.73364e-12
1.09925e-10
-5.41226e-12
1.07027e-10
-6.00734e-12
1.04712e-10
-6.47171e-12
1.03116e-10
-6.75413e-12
1.02261e-10
-6.80783e-12
1.02106e-10
-6.59816e-12
1.02581e-10
-6.10722e-12
1.03578e-10
-5.32213e-12
1.0492e-10
-4.22024e-12
1.06373e-10
-2.76652e-12
1.07692e-10
-9.30218e-13
1.08647e-10
1.31705e-12
1.09031e-10
3.98726e-12
1.08652e-10
7.07105e-12
1.07334e-10
1.05375e-11
1.04898e-10
1.43407e-11
1.01126e-10
1.84484e-11
9.57471e-11
2.28593e-11
8.84648e-11
2.76054e-11
7.90373e-11
3.26847e-11
6.74344e-11
3.80283e-11
5.3729e-11
4.36321e-11
3.77379e-11
4.98117e-11
1.89756e-11
5.59193e-11
-1.04554e-12
6.14624e-11
-2.24227e-11
6.63777e-11
-4.58723e-11
7.06295e-11
-7.1385e-11
7.41035e-11
-9.86605e-11
7.66648e-11
-1.27376e-10
7.81788e-11
-1.57168e-10
7.85212e-11
-1.87624e-10
7.75852e-11
-2.18282e-10
7.52892e-11
-2.48634e-10
7.15836e-11
-2.7814e-10
6.64556e-11
-3.06237e-10
5.99334e-11
-3.32355e-10
5.20879e-11
-3.55936e-10
4.30331e-11
-3.76446e-10
3.2924e-11
-3.934e-10
2.1952e-11
-4.06373e-10
1.03379e-11
-4.15019e-10
-4.19083e-10
-1.67712e-12
-1.60528e-13
3.21276e-11
-4.72499e-13
7.88665e-11
-9.02536e-13
1.03569e-10
-1.39907e-12
1.14252e-10
-1.92061e-12
1.17226e-10
-2.44556e-12
1.16268e-10
-2.96615e-12
1.1358e-10
-3.4672e-12
1.10426e-10
-3.93198e-12
1.07491e-10
-4.33239e-12
1.05112e-10
-4.63398e-12
1.03417e-10
-4.79741e-12
1.02424e-10
-4.78687e-12
1.02095e-10
-4.58002e-12
1.02374e-10
-4.1696e-12
1.03167e-10
-3.55205e-12
1.04302e-10
-2.71542e-12
1.05536e-10
-1.63517e-12
1.06613e-10
-2.89336e-13
1.07301e-10
1.34146e-12
1.074e-10
3.25812e-12
1.06734e-10
5.4371e-12
1.05153e-10
7.82854e-12
1.02506e-10
1.03625e-11
9.85914e-11
1.29749e-11
9.31334e-11
1.56369e-11
8.58027e-11
1.83642e-11
7.63105e-11
2.11581e-11
6.4641e-11
2.39465e-11
5.09409e-11
2.67559e-11
3.49282e-11
3.05621e-11
1.51686e-11
3.42839e-11
-4.76849e-12
3.73549e-11
-2.54942e-11
4.01728e-11
-4.86912e-11
4.26561e-11
-7.38692e-11
4.4696e-11
-1.00701e-10
4.61962e-11
-1.28876e-10
4.70703e-11
-1.58042e-10
4.72422e-11
-1.87796e-10
4.66486e-11
-2.17688e-10
4.52416e-11
-2.47227e-10
4.29931e-11
-2.75892e-10
3.98971e-11
-3.03141e-10
3.59714e-11
-3.2843e-10
3.12591e-11
-3.51224e-10
2.58285e-11
-3.71016e-10
1.97721e-11
-3.87344e-10
1.32037e-11
-3.99805e-10
6.25423e-12
-4.0807e-10
-4.11894e-10
-9.33717e-13
-1.74105e-13
-4.31755e-13
-7.72743e-13
-1.16313e-12
-1.5684e-12
-1.96793e-12
-2.35518e-12
-2.7207e-12
-3.05322e-12
-3.33344e-12
-3.53526e-12
-3.62889e-12
-3.58621e-12
-3.39145e-12
-3.04033e-12
-2.53126e-12
-1.85637e-12
-9.98172e-13
6.06351e-14
1.33076e-12
2.80593e-12
4.45208e-12
6.20623e-12
7.98187e-12
9.68763e-12
1.12509e-11
1.26274e-11
1.37741e-11
1.45521e-11
1.45139e-11
1.34168e-11
1.25164e-11
1.27739e-11
1.34775e-11
1.42251e-11
1.48736e-11
1.53591e-11
1.56418e-11
1.56933e-11
1.54916e-11
1.50208e-11
1.42717e-11
1.32426e-11
1.19393e-11
1.03764e-11
8.57625e-12
6.56947e-12
4.3935e-12
2.09141e-12
-2.89929e-13
-1.16776e-10
1.226e-10
-1.08461e-10
1.2347e-10
-9.48292e-11
1.22375e-10
-7.37677e-11
1.19634e-10
-4.33261e-11
1.15629e-10
-2.79858e-12
1.11504e-10
4.30785e-11
1.11329e-10
8.77121e-11
1.17562e-10
1.18504e-10
1.34282e-10
1.18042e-10
1.64709e-10
7.09151e-11
2.04897e-10
-3.33423e-11
2.46435e-10
-2.14334e-10
2.89e-10
-5.25216e-10
3.43931e-10
-1.23625e-09
5.64252e-10
-6.16154e-09
4.4535e-09
-1.13921e-08
5.0338e-09
-1.25869e-08
1.41651e-09
-1.18163e-08
-4.36326e-10
-1.04196e-08
-1.03653e-09
-8.91884e-09
-1.15956e-09
-7.52677e-09
-1.09162e-09
-6.30673e-09
-9.70561e-10
-5.2656e-09
-8.4203e-10
-4.38912e-09
-7.23292e-10
-3.6577e-09
-6.17051e-10
-3.05155e-09
-5.22466e-10
-2.55177e-09
-4.38935e-10
-2.14078e-09
-3.66397e-10
-1.80271e-09
-3.04759e-10
-1.52381e-09
-2.53517e-10
-1.29253e-09
-2.11697e-10
-1.09948e-09
-1.78009e-10
-9.37176e-10
-1.51072e-10
-7.99756e-10
-1.29601e-10
-6.82618e-10
-1.12519e-10
-5.82141e-10
-9.90001e-11
-4.95433e-10
-8.84545e-11
-4.20148e-10
-8.04989e-11
-3.54344e-10
-7.49076e-11
-2.96395e-10
-7.15573e-11
-2.44934e-10
-7.03558e-11
-1.98825e-10
-7.11443e-11
-1.57156e-10
-7.35513e-11
-1.19272e-10
-7.67779e-11
-8.48468e-11
-7.93229e-11
-5.40539e-11
-7.87271e-11
-2.78623e-11
-7.15161e-11
-8.49636e-12
-5.34899e-11
-2.07918e-11
-1.1584e-10
1.19188e-10
-1.09403e-10
1.17033e-10
-9.72221e-11
1.10194e-10
-7.63921e-11
9.88045e-11
-4.45626e-11
8.37998e-11
3.77344e-13
6.65643e-11
5.52226e-11
5.64837e-11
1.15007e-10
5.77771e-11
1.66646e-10
8.2643e-11
1.87408e-10
1.43947e-10
1.53775e-10
2.3853e-10
4.08086e-11
3.59401e-10
-2.0752e-10
5.37329e-10
-7.05597e-10
8.42008e-10
-1.8241e-09
1.68276e-09
-8.75994e-09
1.13893e-08
-1.25251e-08
8.79893e-09
-1.26999e-08
1.59131e-09
-1.14738e-08
-1.66244e-09
-9.93575e-09
-2.57454e-09
-8.43538e-09
-2.65992e-09
-7.10352e-09
-2.42348e-09
-5.95796e-09
-2.11612e-09
-4.98785e-09
-1.81214e-09
-4.1708e-09
-1.54035e-09
-3.48613e-09
-1.30172e-09
-2.91596e-09
-1.09264e-09
-2.44388e-09
-9.11012e-10
-2.05443e-09
-7.55845e-10
-1.73333e-09
-6.25859e-10
-1.46791e-09
-5.18932e-10
-1.24742e-09
-4.32189e-10
-1.06303e-09
-3.624e-10
-9.07699e-10
-3.06403e-10
-7.75896e-10
-2.61404e-10
-6.63295e-10
-2.25121e-10
-5.66493e-10
-1.95802e-10
-4.82777e-10
-1.72171e-10
-4.09939e-10
-1.53337e-10
-3.46149e-10
-1.38698e-10
-2.89868e-10
-1.27838e-10
-2.398e-10
-1.20424e-10
-1.94861e-10
-1.16084e-10
-1.5418e-10
-1.14233e-10
-1.17129e-10
-1.1383e-10
-8.34029e-11
-1.1305e-10
-5.31841e-11
-1.08947e-10
-2.74396e-11
-9.72607e-11
-8.37612e-12
-7.25528e-11
-2.91677e-11
-1.17983e-10
1.2052e-10
-1.16109e-10
1.15159e-10
-1.08038e-10
1.02123e-10
-8.95394e-11
8.03058e-11
-5.59707e-11
5.02311e-11
-4.90823e-12
1.55018e-11
6.74085e-11
-1.5833e-11
1.56624e-10
-3.14381e-11
2.48379e-10
-9.11213e-12
3.10944e-10
8.13825e-11
3.05109e-10
2.44365e-10
2.06097e-10
4.58413e-10
-1.13182e-11
7.54744e-10
-5.3612e-10
1.36681e-09
-2.46685e-09
3.61348e-09
-1.13519e-08
2.02744e-08
-1.19775e-08
9.42449e-09
-1.13918e-08
1.00563e-09
-1.00476e-08
-3.00665e-09
-8.62009e-09
-4.00203e-09
-7.30777e-09
-3.97224e-09
-6.18258e-09
-3.54867e-09
-5.225e-09
-3.0737e-09
-4.4135e-09
-2.62364e-09
-3.72145e-09
-2.23239e-09
-3.13278e-09
-1.89039e-09
-2.63641e-09
-1.589e-09
-2.22161e-09
-1.32581e-09
-1.87704e-09
-1.10042e-09
-1.59135e-09
-9.11552e-10
-1.35399e-09
-7.56295e-10
-1.15578e-09
-6.30395e-10
-9.89136e-10
-5.29046e-10
-8.47972e-10
-4.47567e-10
-7.27517e-10
-3.81859e-10
-6.24043e-10
-3.28594e-10
-5.34622e-10
-2.85223e-10
-4.56908e-10
-2.49884e-10
-3.88984e-10
-2.21261e-10
-3.29247e-10
-1.98436e-10
-2.76335e-10
-1.8075e-10
-2.29088e-10
-1.67671e-10
-1.86529e-10
-1.58644e-10
-1.47868e-10
-1.52895e-10
-1.12537e-10
-1.49162e-10
-8.02698e-11
-1.45318e-10
-5.12686e-11
-1.37949e-10
-2.64918e-11
-1.22037e-10
-8.10006e-12
-9.09442e-11
-3.72678e-11
-1.23561e-10
1.29521e-10
-1.29476e-10
1.21074e-10
-1.28945e-10
1.01592e-10
-1.16689e-10
6.805e-11
-8.52039e-11
1.8746e-11
-2.93604e-11
-4.03417e-11
6.19718e-11
-1.07165e-10
1.84758e-10
-1.54224e-10
3.17333e-10
-1.41687e-10
3.96771e-10
1.94395e-12
3.49811e-10
2.91325e-10
1.37198e-10
6.71026e-10
-2.54243e-10
1.14619e-09
-1.03549e-09
2.14805e-09
-4.26284e-09
6.84084e-09
-7.35467e-09
2.33662e-08
-8.30223e-09
1.0372e-08
-7.88503e-09
5.88428e-10
-7.1577e-09
-3.73398e-09
-6.35464e-09
-4.80509e-09
-5.51744e-09
-4.80943e-09
-4.7902e-09
-4.27591e-09
-4.15119e-09
-3.71271e-09
-3.58447e-09
-3.19036e-09
-3.07568e-09
-2.74118e-09
-2.62446e-09
-2.34162e-09
-2.2335e-09
-1.97997e-09
-1.90091e-09
-1.6584e-09
-1.62107e-09
-1.38025e-09
-1.38655e-09
-1.14608e-09
-1.1897e-09
-9.53149e-10
-1.0236e-09
-7.96492e-10
-8.8246e-10
-6.70188e-10
-7.61616e-10
-5.68411e-10
-6.57422e-10
-4.86053e-10
-5.67033e-10
-4.18983e-10
-4.88203e-10
-3.64052e-10
-4.19122e-10
-3.18965e-10
-3.58285e-10
-2.82098e-10
-3.0441e-10
-2.5231e-10
-2.56387e-10
-2.28774e-10
-2.13247e-10
-2.1081e-10
-1.74166e-10
-1.97725e-10
-1.38468e-10
-1.88593e-10
-1.05671e-10
-1.8196e-10
-7.55645e-11
-1.75426e-10
-4.83775e-11
-1.65136e-10
-2.50535e-11
-1.45362e-10
-7.67817e-12
-1.0832e-10
-4.49464e-11
-1.32702e-10
1.49107e-10
-1.50083e-10
1.38455e-10
-1.62114e-10
1.13623e-10
-1.62979e-10
6.89159e-11
-1.42905e-10
-1.32824e-12
-8.81759e-11
-9.5071e-11
1.14935e-11
-2.06835e-10
1.61967e-10
-3.04697e-10
3.11481e-10
-2.91201e-10
3.48703e-10
-3.52785e-11
1.36844e-10
5.03184e-10
-4.36981e-10
1.24485e-09
-1.44021e-09
2.14942e-09
-3.56803e-09
4.27587e-09
-7.10425e-09
1.03771e-08
-4.82353e-09
2.10855e-08
-3.85724e-09
9.40576e-09
-3.80764e-09
5.38832e-10
-3.72066e-09
-3.82095e-09
-3.59222e-09
-4.93353e-09
-3.30318e-09
-5.09847e-09
-3.0964e-09
-4.48269e-09
-2.85736e-09
-3.95174e-09
-2.58832e-09
-3.45941e-09
-2.29396e-09
-3.03554e-09
-2.00302e-09
-2.63256e-09
-1.73766e-09
-2.24533e-09
-1.50491e-09
-1.89114e-09
-1.30447e-09
-1.58069e-09
-1.13292e-09
-1.31763e-09
-9.85933e-10
-1.10014e-09
-8.59331e-10
-9.23096e-10
-7.49538e-10
-7.79982e-10
-6.5368e-10
-6.64268e-10
-5.69511e-10
-5.70222e-10
-4.95274e-10
-4.9322e-10
-4.29565e-10
-4.29761e-10
-3.71221e-10
-3.77309e-10
-3.19238e-10
-3.34081e-10
-2.72719e-10
-2.98828e-10
-2.30855e-10
-2.70637e-10
-1.92915e-10
-2.48751e-10
-1.58253e-10
-2.32387e-10
-1.26335e-10
-2.20511e-10
-9.67831e-11
-2.11514e-10
-6.94564e-11
-2.02753e-10
-4.46133e-11
-1.89981e-10
-2.31747e-11
-1.66802e-10
-7.12501e-12
-1.24371e-10
-5.20723e-11
-1.4499e-10
1.81439e-10
-1.7756e-10
1.71025e-10
-2.08778e-10
1.44841e-10
-2.3281e-10
9.29473e-11
-2.35236e-10
1.09847e-12
-1.97446e-10
-1.32862e-10
-1.00612e-10
-3.03668e-10
4.65415e-11
-4.51851e-10
1.73834e-10
-4.18493e-10
1.05426e-10
3.31301e-11
-3.59228e-10
9.67837e-10
-1.38429e-09
2.26991e-09
-2.81801e-09
3.58314e-09
-3.1092e-09
4.56707e-09
-8.10635e-09
1.53742e-08
-3.77562e-09
1.67548e-08
-1.15526e-09
6.78541e-09
-3.28323e-10
-2.88107e-10
-7.08934e-10
-3.44034e-09
-7.78942e-10
-4.86352e-09
-1.02004e-09
-4.85738e-09
-1.3925e-09
-4.11023e-09
-1.50894e-09
-3.8353e-09
-1.54823e-09
-3.42013e-09
-1.44481e-09
-3.13895e-09
-1.31522e-09
-2.76216e-09
-1.18473e-09
-2.37582e-09
-1.06177e-09
-2.01411e-09
-9.49312e-10
-1.69315e-09
-8.47671e-10
-1.41927e-09
-7.56016e-10
-1.19179e-09
-6.73229e-10
-1.00588e-09
-5.98257e-10
-8.54954e-10
-5.3023e-10
-7.32296e-10
-4.68457e-10
-6.31995e-10
-4.12379e-10
-5.49298e-10
-3.61507e-10
-4.80632e-10
-3.1538e-10
-4.23436e-10
-2.73533e-10
-3.75929e-10
-2.35487e-10
-3.36873e-10
-2.00759e-10
-3.05364e-10
-1.68872e-10
-2.80637e-10
-1.39382e-10
-2.61877e-10
-1.11909e-10
-2.47984e-10
-8.6188e-11
-2.37236e-10
-6.21568e-11
-2.26786e-10
-4.01042e-11
-2.12035e-10
-2.09189e-11
-1.85989e-10
-6.45904e-12
-1.38832e-10
-5.85325e-11
-1.5881e-10
2.26731e-10
-2.09151e-10
2.21366e-10
-2.66454e-10
2.02144e-10
-3.24551e-10
1.51044e-10
-3.66712e-10
4.32593e-11
-3.66265e-10
-1.33308e-10
-2.97594e-10
-3.72339e-10
-1.70708e-10
-5.78737e-10
-1.04416e-10
-4.84785e-10
-3.03558e-10
2.32272e-10
-9.75181e-10
1.63946e-09
-2.06645e-09
3.36118e-09
-3.03532e-09
4.55201e-09
-8.87392e-10
2.41914e-09
-4.21846e-09
1.87053e-08
-7.65867e-10
1.33022e-08
1.31937e-09
4.70017e-09
1.91074e-09
-8.79476e-10
2.07545e-09
-3.60505e-09
1.40145e-09
-4.18952e-09
9.60515e-10
-4.41644e-09
3.84147e-10
-3.53386e-09
-3.6833e-10
-3.08282e-09
-4.80744e-10
-3.30771e-09
-5.60803e-10
-3.05889e-09
-6.02539e-10
-2.72042e-09
-6.12678e-10
-2.36568e-09
-6.03037e-10
-2.02375e-09
-5.80672e-10
-1.71551e-09
-5.50185e-10
-1.44975e-09
-5.14744e-10
-1.22723e-09
-4.76555e-10
-1.04407e-09
-4.37199e-10
-8.94311e-10
-3.97833e-10
-7.71661e-10
-3.59317e-10
-6.70512e-10
-3.22263e-10
-5.86352e-10
-2.87078e-10
-5.15818e-10
-2.53981e-10
-4.56533e-10
-2.23034e-10
-4.06874e-10
-1.94172e-10
-3.65734e-10
-1.67233e-10
-3.32302e-10
-1.41997e-10
-3.05872e-10
-1.18222e-10
-2.85651e-10
-9.56863e-11
-2.7052e-10
-7.42432e-11
-2.5868e-10
-5.39076e-11
-2.47124e-10
-3.49971e-11
-2.30948e-10
-1.83585e-11
-2.0263e-10
-5.70147e-12
-1.51491e-10
-6.42352e-11
-1.70643e-10
2.81528e-10
-2.38052e-10
2.88774e-10
-3.25013e-10
2.89104e-10
-4.26411e-10
2.52443e-10
-5.21984e-10
1.38833e-10
-5.7341e-10
-8.18823e-11
-5.55005e-10
-3.90745e-10
-4.79411e-10
-6.54331e-10
-5.08241e-10
-4.55955e-10
-9.67842e-10
6.91873e-10
-1.6418e-09
2.31342e-09
-2.65623e-09
4.3756e-09
-1.91631e-09
3.81209e-09
-3.04883e-09
3.55166e-09
6.37621e-09
9.28025e-09
5.95476e-09
1.37236e-08
6.26115e-09
4.39377e-09
5.16593e-09
2.15743e-10
3.69049e-09
-2.1296e-09
2.56849e-09
-3.06751e-09
1.47338e-09
-3.32133e-09
9.94841e-10
-3.05533e-09
7.86336e-10
-2.87431e-09
5.68673e-10
-3.09005e-09
2.72841e-10
-2.76306e-09
7.21171e-11
-2.5197e-09
-7.10516e-11
-2.22251e-09
-1.66406e-10
-1.9284e-09
-2.26322e-10
-1.6556e-09
-2.60806e-10
-1.41527e-09
-2.77119e-10
-1.21092e-09
-2.80504e-10
-1.04069e-09
-2.74823e-10
-8.99993e-10
-2.62965e-10
-7.8352e-10
-2.47097e-10
-6.8638e-10
-2.28833e-10
-6.04616e-10
-2.09343e-10
-5.35308e-10
-1.8944e-10
-4.76435e-10
-1.69652e-10
-4.26661e-10
-1.50281e-10
-3.85104e-10
-1.31461e-10
-3.5112e-10
-1.13212e-10
-3.24121e-10
-9.54809e-11
-3.03382e-10
-7.81983e-11
-2.87804e-10
-6.13311e-11
-2.75548e-10
-4.49683e-11
-2.63488e-10
-2.94504e-11
-2.46468e-10
-1.55721e-11
-2.1651e-10
-4.87524e-12
-1.62191e-10
-6.91115e-11
-1.75253e-10
3.37193e-10
-2.52301e-10
3.65822e-10
-3.61715e-10
3.98519e-10
-4.96161e-10
3.86888e-10
-6.22934e-10
2.65606e-10
-6.87296e-10
-1.75202e-11
-6.8332e-10
-3.94721e-10
-6.1147e-10
-7.26181e-10
-6.68245e-10
-3.9918e-10
-1.24284e-09
1.26647e-09
-1.89952e-09
2.97011e-09
4.04575e-10
2.0715e-09
3.51898e-09
6.97688e-10
-1.57982e-08
2.28688e-08
-8.9196e-09
2.40167e-09
4.84307e-09
-3.90403e-11
5.45415e-09
3.7827e-09
4.98262e-09
6.87278e-10
3.94997e-09
-1.09696e-09
2.87307e-09
-1.99062e-09
1.94956e-09
-2.39781e-09
1.42907e-09
-2.53484e-09
1.47705e-09
-2.92229e-09
1.12673e-09
-2.73973e-09
8.6989e-10
-2.50622e-09
5.87975e-10
-2.23778e-09
3.69124e-10
-2.00366e-09
2.05708e-10
-1.76498e-09
8.66838e-11
-1.53657e-09
2.08009e-12
-1.33067e-09
-5.6262e-11
-1.15258e-09
-9.47876e-11
-1.00216e-09
-1.18521e-10
-8.7626e-10
-1.31359e-10
-7.70682e-10
-1.36312e-10
-6.81427e-10
-1.35674e-10
-6.05254e-10
-1.31168e-10
-5.39812e-10
-1.24055e-10
-4.83547e-10
-1.15226e-10
-4.35489e-10
-1.05284e-10
-3.95044e-10
-9.46123e-11
-3.6179e-10
-8.3434e-11
-3.35298e-10
-7.18681e-11
-3.14948e-10
-5.99799e-11
-2.99692e-10
-4.78403e-11
-2.87689e-10
-3.56039e-11
-2.75726e-10
-2.36265e-11
-2.58446e-10
-1.26404e-11
-2.27498e-10
-4.00408e-12
-1.70829e-10
-7.31165e-11
-1.66821e-10
3.79117e-10
-2.34859e-10
4.3386e-10
-3.34046e-10
4.97706e-10
-4.40635e-10
4.93477e-10
-4.93202e-10
3.18174e-10
-4.29981e-10
-8.07419e-11
-2.58111e-10
-5.66591e-10
1.22781e-10
-1.10707e-09
4.99682e-10
-7.7608e-10
4.34451e-10
1.3317e-09
9.9915e-10
2.40541e-09
2.47764e-09
5.9301e-10
1.0347e-08
-7.17164e-09
1.28182e-08
2.03976e-08
-7.59698e-10
1.59796e-08
-2.45384e-09
1.6551e-09
1.76609e-09
-4.37231e-10
2.91269e-09
-4.59318e-10
3.09737e-09
-1.28164e-09
2.79979e-09
-1.69304e-09
2.28803e-09
-1.88605e-09
1.99611e-09
-2.24292e-09
1.78239e-09
-2.70857e-09
1.54713e-09
-2.50447e-09
1.20875e-09
-2.16783e-09
9.30078e-10
-1.95911e-09
6.92702e-10
-1.76629e-09
4.99049e-10
-1.57133e-09
3.46298e-10
-1.38382e-09
2.28652e-10
-1.21302e-09
1.39827e-10
-1.06376e-09
7.40421e-11
-9.36378e-10
2.63207e-11
-8.28539e-10
-7.46057e-12
-7.36901e-10
-3.06299e-11
-6.58257e-10
-4.58152e-11
-5.90067e-10
-5.50503e-11
-5.30576e-10
-5.98765e-11
-4.78718e-10
-6.14344e-11
-4.33929e-10
-6.0545e-11
-3.95931e-10
-5.77827e-11
-3.64551e-10
-5.35361e-11
-3.39543e-10
-4.80643e-11
-3.20419e-10
-4.15487e-11
-3.06208e-10
-3.41487e-11
-2.95089e-10
-2.60736e-11
-2.83802e-10
-1.76848e-11
-2.66836e-10
-9.64306e-12
-2.35541e-10
-3.11151e-12
-1.77362e-10
-7.62286e-11
-1.44847e-10
3.92138e-10
-1.77593e-10
4.66606e-10
-2.144e-10
5.34513e-10
-2.05209e-10
4.84286e-10
-1.95469e-11
1.32512e-10
4.07106e-10
-5.07394e-10
1.00424e-09
-1.16372e-09
1.58017e-09
-1.683e-09
2.16278e-09
-1.35869e-09
2.02685e-09
1.46762e-09
2.20608e-09
2.22618e-09
2.95274e-10
2.50382e-09
-7.8329e-09
9.56532e-10
2.03632e-09
1.05284e-08
5.47502e-09
1.25409e-08
2.3323e-09
4.79782e-09
1.75528e-09
1.39789e-10
2.67368e-09
-1.37772e-09
3.05861e-09
-1.66657e-09
3.09408e-09
-1.72851e-09
2.97056e-09
-1.76253e-09
2.75253e-09
-2.02488e-09
1.90068e-09
-1.85672e-09
1.5707e-09
-2.17449e-09
1.36411e-09
-1.96124e-09
1.13895e-09
-1.73395e-09
9.19178e-10
-1.54651e-09
7.22264e-10
-1.37441e-09
5.54929e-10
-1.21649e-09
4.17939e-10
-1.07603e-09
3.08599e-10
-9.54414e-10
2.22858e-10
-8.50638e-10
1.56513e-10
-7.62194e-10
1.05733e-10
-6.8612e-10
6.72491e-11
-6.19772e-10
3.83764e-11
-5.61194e-10
1.69724e-11
-5.0917e-10
1.36381e-12
-4.63108e-10
-9.72932e-12
-4.22833e-10
-1.7268e-11
-3.88391e-10
-2.19581e-11
-3.59859e-10
-2.43112e-11
-3.37189e-10
-2.46957e-11
-3.20033e-10
-2.33848e-11
-3.07518e-10
-2.06097e-11
-2.97864e-10
-1.66209e-11
-2.8779e-10
-1.17761e-11
-2.71681e-10
-6.65545e-12
-2.40662e-10
-2.21992e-12
-1.81798e-10
-7.84488e-11
-1.1772e-10
3.71509e-10
-9.06709e-11
4.39556e-10
-1.97223e-11
4.63564e-10
1.35538e-10
3.29025e-10
6.61105e-10
-3.93055e-10
1.66492e-09
-1.51121e-09
2.69965e-09
-2.19845e-09
3.62816e-09
-2.61152e-09
1.53306e-09
7.36408e-10
1.31002e-09
1.69065e-09
7.52755e-09
-3.99135e-09
4.09435e-10
9.62193e-09
-7.61178e-09
8.97774e-09
-2.31415e-09
5.23074e-09
2.88515e-09
7.34158e-09
3.81708e-09
3.86589e-09
3.54941e-09
4.07453e-10
3.4901e-09
-1.31841e-09
3.56607e-09
-1.74254e-09
3.46788e-09
-1.63032e-09
3.25133e-09
-1.54598e-09
2.78401e-09
-1.55755e-09
2.51695e-09
-1.58966e-09
2.00388e-09
-1.66142e-09
1.64819e-09
-1.60555e-09
1.36791e-09
-1.45366e-09
1.12268e-09
-1.30128e-09
9.09087e-10
-1.16083e-09
7.27263e-10
-1.03466e-09
5.75738e-10
-9.24507e-10
4.51602e-10
-8.30278e-10
3.51177e-10
-7.50212e-10
2.70644e-10
-6.81662e-10
2.06452e-10
-6.21927e-10
1.55491e-10
-5.68811e-10
1.15155e-10
-5.20856e-10
8.33148e-11
-4.77328e-10
5.82692e-11
-4.3806e-10
3.86836e-11
-4.03246e-10
2.35266e-11
-3.73233e-10
1.20116e-11
-3.48343e-10
3.54589e-12
-3.28723e-10
-2.31596e-12
-3.14171e-10
-5.9167e-12
-3.03917e-10
-7.53954e-12
-2.9624e-10
-7.46584e-12
-2.87863e-10
-6.03739e-12
-2.7311e-10
-3.74677e-12
-2.42953e-10
-1.34961e-12
-1.84196e-10
-7.97984e-11
-8.42737e-11
3.09678e-10
5.66158e-11
2.98667e-10
3.01317e-10
2.18863e-10
5.53033e-10
7.73094e-11
1.44668e-09
-1.2867e-09
2.96953e-09
-3.03406e-09
3.34396e-09
-2.57287e-09
2.26499e-09
-1.53255e-09
-5.63392e-11
3.05774e-09
-1.21986e-08
1.38329e-08
-7.03462e-09
-9.1553e-09
-4.24307e-10
3.01162e-09
-5.50803e-10
9.10423e-09
-1.06528e-09
5.74522e-09
2.45945e-09
3.81684e-09
4.16432e-09
2.16102e-09
4.40813e-09
1.63649e-10
4.32573e-09
-1.236e-09
4.06469e-09
-1.4815e-09
3.73994e-09
-1.30556e-09
3.36254e-09
-1.16857e-09
3.04386e-09
-1.23887e-09
2.67948e-09
-1.22529e-09
2.26879e-09
-1.25073e-09
1.88171e-09
-1.21847e-09
1.56146e-09
-1.13341e-09
1.29123e-09
-1.03105e-09
1.0615e-09
-9.31091e-10
8.6739e-10
-8.40555e-10
7.04924e-10
-7.62041e-10
5.7015e-10
-6.95503e-10
4.59124e-10
-6.39186e-10
3.68096e-10
-5.90633e-10
2.93669e-10
-5.475e-10
2.32894e-10
-5.08036e-10
1.83285e-10
-4.71246e-10
1.42791e-10
-4.36833e-10
1.09753e-10
-4.0502e-10
8.28403e-11
-3.76333e-10
6.10036e-11
-3.51395e-10
4.34202e-11
-3.30759e-10
2.94515e-11
-3.14753e-10
1.86027e-11
-3.03321e-10
1.04861e-11
-2.95799e-10
4.78186e-12
-2.90535e-10
1.19667e-12
-2.84278e-10
-5.89418e-13
-2.71323e-10
-9.78349e-13
-2.42564e-10
-5.21103e-13
-1.84653e-10
-8.03191e-11
9.21049e-12
1.46723e-10
4.10403e-10
-1.02526e-10
1.09063e-09
-4.61367e-10
1.53859e-09
-3.70643e-10
3.18825e-09
-2.93636e-09
4.6413e-09
-4.48711e-09
2.78822e-09
-7.19794e-10
-2.03773e-09
3.2934e-09
6.24319e-09
-5.22318e-09
1.12305e-08
8.84557e-09
6.00433e-10
1.47478e-09
1.38884e-09
2.22321e-09
3.99247e-09
6.50061e-09
4.45129e-09
5.28639e-09
4.89251e-09
3.37562e-09
5.38961e-09
1.66392e-09
5.47629e-09
7.69714e-11
4.76563e-09
-5.25341e-10
4.34462e-09
-1.06049e-09
3.75233e-09
-7.1327e-10
3.50659e-09
-9.22842e-10
3.15058e-09
-8.82855e-10
2.78648e-09
-8.61187e-10
2.39819e-09
-8.62445e-10
2.0254e-09
-8.45679e-10
1.69674e-09
-8.04757e-10
1.4157e-09
-7.50003e-10
1.17707e-09
-6.92462e-10
9.75559e-10
-6.39047e-10
8.06312e-10
-5.92793e-10
6.64782e-10
-5.53972e-10
5.46778e-10
-5.21182e-10
4.48539e-10
-4.92394e-10
3.66776e-10
-4.65737e-10
2.98687e-10
-4.39946e-10
2.41928e-10
-4.14486e-10
1.94564e-10
-3.89469e-10
1.55019e-10
-3.65474e-10
1.22013e-10
-3.43326e-10
9.45176e-11
-3.23899e-10
7.17096e-11
-3.07951e-10
5.29352e-11
-2.95979e-10
3.76764e-11
-2.88062e-10
2.55207e-11
-2.83643e-10
1.61301e-11
-2.81144e-10
9.20805e-12
-2.77355e-10
4.46724e-12
-2.66581e-10
1.60125e-12
-2.39697e-10
2.58274e-13
-1.8331e-10
-8.00602e-11
2.94099e-10
-2.83943e-10
1.56424e-09
-1.37266e-09
3.9316e-09
-2.82873e-09
6.91125e-09
-3.35028e-09
8.22378e-09
-4.2489e-09
8.85166e-09
-5.11499e-09
9.78173e-09
-1.64986e-09
2.77774e-09
1.02974e-08
-1.93023e-10
-2.25242e-09
1.11987e-08
-2.54613e-09
9.27667e-09
3.39679e-09
6.14636e-09
5.35352e-09
6.09654e-09
6.55044e-09
6.03677e-09
5.34616e-09
5.88142e-09
3.53098e-09
5.74197e-09
1.80336e-09
5.43549e-09
3.83457e-10
5.05272e-09
-1.42569e-10
4.2079e-09
-2.15675e-10
3.96025e-09
-4.65617e-10
3.57677e-09
-5.39359e-10
3.21755e-09
-5.23636e-10
2.83688e-09
-4.80517e-10
2.45468e-09
-4.80253e-10
2.09458e-09
-4.85574e-10
1.77241e-09
-4.82587e-10
1.49275e-09
-4.70343e-10
1.25366e-09
-4.53373e-10
1.05089e-09
-4.36276e-10
8.79701e-10
-4.21605e-10
7.355e-10
-4.0977e-10
6.14086e-10
-3.99769e-10
5.11778e-10
-3.90085e-10
4.25431e-10
-3.79391e-10
3.52418e-10
-3.66933e-10
2.90565e-10
-3.52633e-10
2.3809e-10
-3.36993e-10
1.93531e-10
-3.20915e-10
1.55695e-10
-3.05489e-10
1.23606e-10
-2.9181e-10
9.64701e-11
-2.80816e-10
7.36451e-11
-2.73153e-10
5.46118e-11
-2.69029e-10
3.89518e-11
-2.67983e-10
2.63235e-11
-2.68515e-10
1.64395e-11
-2.6747e-10
9.0512e-12
-2.59192e-10
3.94687e-12
-2.34591e-10
9.64523e-13
-1.80326e-10
-7.90949e-11
5.40258e-09
-5.11281e-09
1.16573e-08
-7.62738e-09
1.95712e-08
-1.07427e-08
2.51646e-08
-8.94362e-09
2.28674e-08
-1.95171e-09
1.46064e-08
3.14598e-09
6.4429e-09
6.51364e-09
1.15055e-08
5.23481e-09
2.24833e-09
7.00473e-09
-1.00696e-09
7.09164e-10
2.45516e-09
-6.53308e-11
3.67544e-09
4.13324e-09
4.75392e-09
5.47196e-09
5.2832e-09
4.81688e-09
5.34838e-09
3.4658e-09
5.06911e-09
2.08264e-09
4.52268e-09
9.29879e-10
4.3695e-09
1.06133e-11
4.25359e-09
-9.97658e-11
4.02211e-09
-2.34133e-10
3.63887e-09
-1.56126e-10
3.22273e-09
-1.07498e-10
2.82107e-09
-7.88562e-11
2.44288e-09
-1.02066e-10
2.09746e-09
-1.40151e-10
1.78974e-09
-1.74869e-10
1.52117e-09
-2.01771e-10
1.28998e-09
-2.22179e-10
1.0926e-09
-2.38902e-10
9.24794e-10
-2.53797e-10
7.82271e-10
-2.67246e-10
6.6109e-10
-2.78588e-10
5.57816e-10
-2.86811e-10
4.69555e-10
-2.9113e-10
3.93922e-10
-2.913e-10
3.28965e-10
-2.87675e-10
2.73089e-10
-2.81118e-10
2.24988e-10
-2.72813e-10
1.83581e-10
-2.64082e-10
1.47976e-10
-2.56205e-10
1.17434e-10
-2.50273e-10
9.13436e-11
-2.47063e-10
6.92058e-11
-2.46891e-10
5.06128e-11
-2.49389e-10
3.52328e-11
-2.53134e-10
2.27976e-11
-2.55034e-10
1.31023e-11
-2.49495e-10
6.02941e-12
-2.27517e-10
1.59607e-12
-1.75891e-10
-7.7498e-11
6.19873e-09
-1.01195e-08
1.07659e-08
-1.21945e-08
1.26412e-08
-1.2618e-08
1.22782e-08
-8.5806e-09
1.18136e-08
-1.48705e-09
8.59913e-09
6.36043e-09
4.84424e-09
1.02685e-08
5.54454e-09
4.53451e-09
4.81359e-09
7.73568e-09
1.6515e-10
5.3576e-09
-4.89039e-10
5.88861e-10
1.39317e-09
2.25103e-09
2.97913e-09
3.88601e-09
3.9836e-09
3.8124e-09
4.40135e-09
3.04805e-09
4.34165e-09
2.14234e-09
3.97829e-09
1.29324e-09
3.79556e-09
1.9334e-10
3.90845e-09
-2.12658e-10
3.64949e-09
2.4825e-11
3.41913e-09
7.42355e-11
3.0334e-09
2.78233e-10
2.67312e-09
2.81417e-10
2.33519e-09
2.35866e-10
2.02496e-09
1.7007e-10
1.74619e-09
1.03907e-10
1.50007e-09
4.43482e-11
1.28577e-09
-7.88528e-12
1.10086e-09
-5.39842e-11
9.41981e-10
-9.49217e-11
8.05573e-10
-1.30838e-10
6.88246e-10
-1.61261e-10
5.87024e-10
-1.85588e-10
4.99406e-10
-2.03512e-10
4.23345e-10
-2.15238e-10
3.57175e-10
-2.21505e-10
2.99537e-10
-2.23479e-10
2.49311e-10
-2.22587e-10
2.05561e-10
-2.20332e-10
1.67501e-10
-2.18145e-10
1.34467e-10
-2.17239e-10
1.05902e-10
-2.18499e-10
8.13415e-11
-2.22331e-10
6.04034e-11
-2.28451e-10
4.27772e-11
-2.35507e-10
2.82221e-11
-2.40477e-10
1.65813e-11
-2.37853e-10
7.82797e-12
-2.18762e-10
2.14422e-12
-1.70206e-10
-7.53532e-11
2.04357e-09
-1.16884e-08
2.38505e-09
-1.2536e-08
1.46661e-09
-1.16996e-08
5.61366e-10
-7.67536e-09
5.45612e-10
-1.4713e-09
1.46148e-09
5.44456e-09
3.63241e-09
8.0976e-09
1.66459e-09
6.50233e-09
2.30043e-09
7.09984e-09
2.30334e-09
5.3547e-09
6.31074e-10
2.26113e-09
9.05772e-10
1.97633e-09
2.09401e-09
2.69776e-09
3.07571e-09
2.83071e-09
3.68659e-09
2.43717e-09
3.96912e-09
1.85981e-09
4.05916e-09
1.2032e-09
3.95715e-09
2.95354e-10
3.39129e-09
3.53202e-10
3.21559e-09
2.0052e-10
2.90103e-09
3.88793e-10
2.66304e-09
5.16226e-10
2.39955e-09
5.44905e-10
2.13588e-09
4.9953e-10
1.88228e-09
4.23668e-10
1.64659e-09
3.396e-10
1.43335e-09
2.57587e-10
1.24405e-09
1.81412e-10
1.07797e-09
1.12097e-10
9.3309e-10
4.99583e-11
8.06861e-10
-4.60738e-12
6.96704e-10
-5.11025e-11
6.00291e-10
-8.91747e-11
5.15654e-10
-1.18874e-10
4.41173e-10
-1.40757e-10
3.75533e-10
-1.55864e-10
3.17652e-10
-1.65599e-10
2.6663e-10
-1.71564e-10
2.21699e-10
-1.75401e-10
1.82198e-10
-1.78645e-10
1.47559e-10
-1.82601e-10
1.17292e-10
-1.88232e-10
9.0983e-11
-1.96022e-10
6.82859e-11
-2.05753e-10
4.89221e-11
-2.16142e-10
3.2685e-11
-2.24238e-10
1.94683e-11
-2.24634e-10
9.33153e-12
-2.08624e-10
2.60551e-12
-1.63478e-10
-7.27474e-11
-4.95353e-10
-1.13259e-08
-1.71131e-09
-1.13201e-08
-3.41224e-09
-9.99865e-09
-4.4633e-09
-6.6243e-09
-4.21547e-09
-1.71913e-09
-2.14441e-09
3.37349e-09
-1.7066e-10
6.12386e-09
3.25504e-10
6.00616e-09
1.20636e-09
6.21899e-09
1.61683e-09
4.94422e-09
1.27068e-09
2.60729e-09
1.20508e-09
2.04192e-09
1.82285e-09
2.08e-09
2.55344e-09
2.10011e-09
3.10993e-09
1.88068e-09
3.44686e-09
1.52288e-09
3.57792e-09
1.07214e-09
3.25959e-09
6.13685e-10
3.03888e-09
5.73909e-10
2.70737e-09
5.32026e-10
2.48142e-09
6.14737e-10
2.28296e-09
7.14683e-10
2.08987e-09
7.37996e-10
1.89199e-09
6.9741e-10
1.69511e-09
6.20546e-10
1.50638e-09
5.28327e-10
1.33098e-09
4.32979e-10
1.17158e-09
3.4082e-10
1.02871e-09
2.54965e-10
9.01576e-10
1.77094e-10
7.8869e-10
1.0828e-10
6.88379e-10
4.92104e-11
5.99065e-10
1.39371e-13
5.19391e-10
-3.91988e-11
4.48228e-10
-6.95936e-11
3.8465e-10
-9.2287e-11
3.27886e-10
-1.08834e-10
2.77272e-10
-1.2095e-10
2.32225e-10
-1.30355e-10
1.92228e-10
-1.38647e-10
1.56816e-10
-1.47189e-10
1.2558e-10
-1.56997e-10
9.81677e-11
-1.68609e-10
7.42792e-11
-1.81864e-10
5.36748e-11
-1.95537e-10
3.61874e-11
-2.0675e-10
2.17618e-11
-2.10207e-10
1.05384e-11
-1.97399e-10
2.97919e-12
-1.55919e-10
-6.97684e-11
-1.54249e-09
-1.01646e-08
-3.09459e-09
-9.76797e-09
-4.72411e-09
-8.36912e-09
-5.69259e-09
-5.65582e-09
-5.43025e-09
-1.98147e-09
-3.8113e-09
1.75455e-09
-1.8397e-09
4.15226e-09
-6.75496e-10
4.84196e-09
6.10034e-10
4.93346e-09
1.44637e-09
4.10789e-09
1.3541e-09
2.69956e-09
1.43842e-09
1.9576e-09
1.76228e-09
1.75614e-09
2.20067e-09
1.66172e-09
2.58126e-09
1.5001e-09
2.82406e-09
1.28008e-09
2.87896e-09
1.01724e-09
2.69318e-09
7.99463e-10
2.50197e-09
7.65123e-10
2.27386e-09
7.60132e-10
2.07874e-09
8.09855e-10
1.92148e-09
8.71945e-10
1.77634e-09
8.8313e-10
1.63112e-09
8.4263e-10
1.48502e-09
7.66636e-10
1.34162e-09
6.71729e-10
1.20472e-09
5.69883e-10
1.07689e-09
4.68646e-10
9.59297e-10
3.72561e-10
8.52e-10
2.84392e-10
7.54439e-10
2.05842e-10
6.65803e-10
1.37848e-10
5.85262e-10
8.06815e-11
5.12077e-10
3.39866e-11
4.45626e-10
-3.14216e-12
3.85382e-10
-3.20436e-11
3.3089e-10
-5.43417e-11
2.8173e-10
-7.17903e-11
2.37513e-10
-8.61366e-11
1.97865e-10
-9.89991e-11
1.62438e-10
-1.11762e-10
1.30911e-10
-1.25471e-10
1.02998e-10
-1.40696e-10
7.84529e-11
-1.57319e-10
5.70806e-11
-1.74163e-10
3.87566e-11
-1.88424e-10
2.34769e-11
-1.94926e-10
1.14551e-11
-1.85377e-10
3.26705e-12
-1.47731e-10
-6.65018e-11
-1.80766e-09
-8.79929e-09
-3.29159e-09
-8.28404e-09
-4.6495e-09
-7.01121e-09
-5.42117e-09
-4.88415e-09
-5.23997e-09
-2.16267e-09
-4.06029e-09
5.74861e-10
-2.45918e-09
2.55115e-09
-1.07018e-09
3.45295e-09
2.32351e-10
3.63092e-09
1.12711e-09
3.21313e-09
1.36544e-09
2.46122e-09
1.45831e-09
1.86473e-09
1.63841e-09
1.57604e-09
1.87713e-09
1.423e-09
2.08947e-09
1.28776e-09
2.22074e-09
1.14881e-09
2.22788e-09
1.01009e-09
2.11952e-09
9.0782e-10
1.98534e-09
8.99303e-10
1.83084e-09
9.14634e-10
1.68798e-09
9.52706e-10
1.57272e-09
9.87202e-10
1.47015e-09
9.85699e-10
1.36989e-09
9.42885e-10
1.26839e-09
8.68134e-10
1.16631e-09
7.73808e-10
1.06575e-09
6.7045e-10
9.68652e-10
5.6574e-10
8.76314e-10
4.649e-10
7.89339e-10
3.71368e-10
7.07879e-10
2.87303e-10
6.31849e-10
2.13878e-10
5.61086e-10
1.51446e-10
4.95419e-10
9.9654e-11
4.34694e-10
5.75821e-11
3.78766e-10
2.38851e-11
3.27473e-10
-3.04881e-12
2.80636e-10
-2.49531e-11
2.38049e-10
-4.35491e-11
1.99486e-10
-6.0436e-11
1.64713e-10
-7.69891e-11
1.335e-10
-9.42571e-11
1.05631e-10
-1.12827e-10
8.09192e-11
-1.32606e-10
5.92164e-11
-1.5246e-10
4.04423e-11
-1.69649e-10
2.46423e-11
-1.79126e-10
1.20955e-11
-1.7283e-10
3.47302e-12
-1.39109e-10
-6.30293e-11
-1.7059e-09
-7.5058e-09
-2.98506e-09
-7.00488e-09
-4.065e-09
-5.93127e-09
-4.66215e-09
-4.287e-09
-4.55974e-09
-2.26508e-09
-3.74472e-09
-2.40158e-10
-2.52063e-09
1.32706e-09
-1.26082e-09
2.19314e-09
-1.33196e-10
2.5033e-09
6.31978e-10
2.44796e-09
1.02498e-09
2.06822e-09
1.20451e-09
1.6852e-09
1.3475e-09
1.43305e-09
1.49005e-09
1.28046e-09
1.60659e-09
1.17122e-09
1.67022e-09
1.08518e-09
1.6633e-09
1.01701e-09
1.59427e-09
9.76853e-10
1.50763e-09
9.8594e-10
1.40962e-09
1.01264e-09
1.31916e-09
1.04316e-09
1.24546e-09
1.06091e-09
1.18198e-09
1.04918e-09
1.1208e-09
1.00406e-09
1.05769e-09
9.31238e-10
9.91693e-10
8.39805e-10
9.23554e-10
7.38588e-10
8.54548e-10
6.34746e-10
7.85855e-10
5.33594e-10
7.18373e-10
4.3885e-10
6.52746e-10
3.52931e-10
5.89444e-10
2.7718e-10
5.2884e-10
2.12051e-10
4.71236e-10
1.57257e-10
4.1688e-10
1.11939e-10
3.65949e-10
7.4816e-11
3.1855e-10
4.43504e-11
2.74715e-10
1.88828e-11
2.34408e-10
-3.24116e-12
1.9754e-10
-2.35682e-11
1.63989e-10
-4.34375e-11
1.33612e-10
-6.38805e-11
1.06267e-10
-8.54821e-11
8.18244e-11
-1.08163e-10
6.0185e-11
-1.3082e-10
4.13125e-11
-1.50776e-10
2.52985e-11
-1.63111e-10
1.24792e-11
-1.60011e-10
3.60283e-12
-1.30233e-10
-5.94268e-11
-1.47078e-09
-6.37797e-09
-2.53413e-09
-5.94153e-09
-3.39267e-09
-5.07274e-09
-3.86939e-09
-3.81028e-09
-3.8342e-09
-2.30027e-09
-3.28518e-09
-7.89178e-10
-2.39948e-09
4.41351e-10
-1.4388e-09
1.23246e-09
-5.97622e-10
1.66212e-09
9.19854e-11
1.75835e-09
5.2862e-10
1.63158e-09
7.7813e-10
1.43569e-09
9.36986e-10
1.27419e-09
1.05295e-09
1.1645e-09
1.13213e-09
1.09204e-09
1.17114e-09
1.04616e-09
1.16777e-09
1.02037e-09
1.1293e-09
1.01533e-09
1.0802e-09
1.03504e-09
1.02913e-09
1.0637e-09
9.8413e-10
1.08816e-09
9.49125e-10
1.09591e-09
9.20455e-10
1.07785e-09
8.92557e-10
1.03196e-09
8.6156e-10
9.62234e-10
8.25824e-10
8.7554e-10
7.85283e-10
7.79128e-10
7.40669e-10
6.79359e-10
6.92987e-10
5.81276e-10
6.43256e-10
4.88581e-10
5.92421e-10
4.03766e-10
5.41335e-10
3.28268e-10
4.90754e-10
2.62632e-10
4.41342e-10
2.0667e-10
3.93652e-10
1.59628e-10
3.48127e-10
1.20342e-10
3.05088e-10
8.73898e-11
2.64746e-10
5.92256e-11
2.27213e-10
3.42921e-11
1.92524e-10
1.11213e-11
1.60656e-10
-1.15694e-11
1.31551e-10
-3.47764e-11
1.05137e-10
-5.90681e-11
8.13401e-11
-8.43661e-11
6.01087e-11
-1.09588e-10
4.1449e-11
-1.32116e-10
2.54946e-11
-1.47157e-10
1.26302e-11
-1.47147e-10
3.66347e-12
-1.21267e-10
-5.57634e-11
-1.21014e-09
-5.42461e-09
-2.08651e-09
-5.06515e-09
-2.78056e-09
-4.37868e-09
-3.17828e-09
-3.41255e-09
-3.20244e-09
-2.27612e-09
-2.85888e-09
-1.13274e-09
-2.26121e-09
-1.56324e-10
-1.57999e-09
5.5124e-10
-9.10836e-10
9.92965e-10
-3.50116e-10
1.19763e-09
5.68271e-11
1.22464e-09
3.24411e-10
1.16811e-09
4.98704e-10
1.0999e-09
6.14934e-10
1.04827e-09
6.89416e-10
1.01755e-09
7.29917e-10
1.00566e-09
7.41719e-10
1.00857e-09
7.33039e-10
1.02401e-09
7.17679e-10
1.0504e-09
7.0322e-10
1.07816e-09
6.94099e-10
1.09728e-09
6.91088e-10
1.09892e-09
6.91224e-10
1.07771e-09
6.90335e-10
1.03285e-09
6.851e-10
9.67467e-10
6.73711e-10
8.86928e-10
6.55669e-10
7.97169e-10
6.31335e-10
7.03692e-10
6.01538e-10
6.11072e-10
5.67312e-10
5.22806e-10
5.29753e-10
4.41325e-10
4.89935e-10
3.68086e-10
4.48864e-10
3.03703e-10
4.07439e-10
2.48095e-10
3.66433e-10
2.00634e-10
3.26476e-10
1.60298e-10
2.88056e-10
1.2581e-10
2.51523e-10
9.5759e-11
2.17111e-10
6.87045e-11
1.84958e-10
4.3275e-11
1.5513e-10
1.82587e-11
1.27644e-10
-7.29144e-12
1.02492e-10
-3.39161e-11
7.96537e-11
-6.15273e-11
5.9122e-11
-8.90555e-11
4.09423e-11
-1.13935e-10
2.52857e-11
-1.315e-10
1.25756e-11
-1.34436e-10
3.66277e-12
-1.12354e-10
-5.21006e-11
-9.7065e-10
-4.62696e-09
-1.69512e-09
-4.34068e-09
-2.26804e-09
-3.80576e-09
-2.6143e-09
-3.0663e-09
-2.68747e-09
-2.20295e-09
-2.4951e-09
-1.32511e-09
-2.10753e-09
-5.43903e-10
-1.62478e-09
6.84891e-11
-1.1286e-09
4.9679e-10
-6.84317e-10
7.53343e-10
-3.33539e-10
8.73861e-10
-7.97108e-11
9.14278e-10
9.72907e-11
9.22901e-10
2.19165e-10
9.26392e-10
3.01319e-10
9.35399e-10
3.54348e-10
9.52631e-10
3.8611e-10
9.76807e-10
4.04363e-10
1.00575e-09
4.1808e-10
1.03668e-09
4.32915e-10
1.06333e-09
4.51441e-10
1.07876e-09
4.73264e-10
1.07709e-09
4.9581e-10
1.05516e-09
5.15766e-10
1.01289e-09
5.30326e-10
9.52906e-10
5.37746e-10
8.79506e-10
5.37343e-10
7.97569e-10
5.29254e-10
7.11779e-10
5.14151e-10
6.26174e-10
4.93023e-10
5.43935e-10
4.67003e-10
4.67345e-10
4.37265e-10
3.97824e-10
4.0494e-10
3.36029e-10
3.71061e-10
2.81973e-10
3.36534e-10
2.35161e-10
3.0211e-10
1.94722e-10
2.68389e-10
1.59532e-10
2.35824e-10
1.28324e-10
2.04742e-10
9.97872e-11
1.75363e-10
7.26535e-11
1.47829e-10
4.57924e-11
1.22223e-10
1.83146e-11
9.85901e-11
-1.02834e-11
7.696e-11
-3.98966e-11
5.7366e-11
-6.94606e-11
3.98883e-11
-9.64566e-11
2.47298e-11
-1.1634e-10
1.2344e-11
-1.2205e-10
3.60904e-12
-1.03619e-10
-4.84915e-11
-7.68794e-10
-3.96086e-09
-1.37177e-09
-3.7377e-09
-1.85358e-09
-3.32395e-09
-2.16336e-09
-2.75652e-09
-2.27195e-09
-2.09436e-09
-2.18503e-09
-1.41202e-09
-1.94558e-09
-7.8335e-10
-1.61683e-09
-2.60259e-10
-1.25791e-09
1.3786e-10
-9.17584e-10
4.13022e-10
-6.29405e-10
5.85682e-10
-4.03926e-10
6.888e-10
-2.34874e-10
7.53849e-10
-1.10431e-10
8.01949e-10
-1.93353e-11
8.44303e-10
4.77926e-11
8.85502e-10
9.84753e-11
9.26123e-10
1.39345e-10
9.64884e-10
1.7653e-10
9.99496e-10
2.13993e-10
1.02586e-09
2.53233e-10
1.03952e-09
2.93504e-10
1.03682e-09
3.3262e-10
1.01604e-09
3.67908e-10
9.77599e-10
3.9703e-10
9.23782e-10
4.18421e-10
8.58114e-10
4.31363e-10
7.84625e-10
4.35868e-10
7.07273e-10
4.32487e-10
6.29554e-10
4.22125e-10
5.54297e-10
4.05883e-10
4.83587e-10
3.84942e-10
4.18766e-10
3.60465e-10
3.60506e-10
3.33538e-10
3.08899e-10
3.05124e-10
2.63575e-10
2.7604e-10
2.23806e-10
2.46952e-10
1.88621e-10
2.18379e-10
1.56897e-10
1.90714e-10
1.27452e-10
1.64242e-10
9.91254e-11
1.39163e-10
7.08715e-11
1.15614e-10
4.18641e-11
9.36873e-11
1.16433e-11
7.34536e-11
-1.96622e-11
5.49823e-11
-5.09882e-11
3.83835e-11
-7.98567e-11
2.3886e-11
-1.01842e-10
1.19646e-11
-1.10128e-10
3.51069e-12
-9.51648e-11
-4.49807e-11
-6.06875e-10
-3.40389e-09
-1.11227e-09
-3.2323e-09
-1.52299e-09
-2.91324e-09
-1.80355e-09
-2.47596e-09
-1.93446e-09
-1.96344e-09
-1.91904e-09
-1.42744e-09
-1.78383e-09
-9.18568e-10
-1.56947e-09
-4.7462e-10
-1.31732e-09
-1.14291e-10
-1.06373e-09
1.59437e-10
-8.34884e-10
3.56836e-10
-6.42996e-10
4.96912e-10
-4.887e-10
5.99554e-10
-3.66746e-10
6.79994e-10
-2.70129e-10
7.47686e-10
-1.92007e-10
8.07379e-10
-1.26446e-10
8.60561e-10
-6.84156e-11
9.06854e-10
-1.36988e-11
9.44779e-10
4.02971e-11
9.71866e-10
9.4357e-11
9.85456e-10
1.47661e-10
9.83517e-10
1.98388e-10
9.65317e-10
2.44384e-10
9.31603e-10
2.8373e-10
8.84435e-10
3.15081e-10
8.26761e-10
3.37769e-10
7.61936e-10
3.5175e-10
6.93291e-10
3.57479e-10
6.23824e-10
3.55766e-10
5.5601e-10
3.47637e-10
4.91716e-10
3.34218e-10
4.32185e-10
3.16642e-10
3.7808e-10
2.95985e-10
3.29556e-10
2.73212e-10
2.86347e-10
2.4916e-10
2.47858e-10
2.24521e-10
2.13259e-10
1.99855e-10
1.81565e-10
1.75593e-10
1.51714e-10
1.52066e-10
1.22652e-10
1.29518e-10
9.34197e-11
1.08128e-10
6.32545e-11
8.80285e-11
3.17436e-11
6.93221e-11
-9.54963e-13
5.21081e-11
-3.37733e-11
3.65219e-11
-6.42695e-11
2.28119e-11
-8.81311e-11
1.14658e-11
-9.87817e-11
3.37607e-12
-8.7075e-11
-4.16047e-11
-4.80926e-10
-2.93705e-09
-9.07118e-10
-2.80611e-09
-1.26038e-09
-2.55997e-09
-1.5152e-09
-2.22114e-09
-1.6577e-09
-1.82095e-09
-1.68923e-09
-1.39591e-09
-1.62619e-09
-9.81611e-10
-1.49487e-09
-6.05939e-10
-1.324e-09
-2.85166e-10
-1.13998e-09
-2.45753e-11
-9.63021e-10
1.79873e-10
-8.04628e-10
3.38519e-10
-6.68522e-10
4.63448e-10
-5.5345e-10
5.64921e-10
-4.55818e-10
6.50052e-10
-3.71357e-10
7.22917e-10
-2.96038e-10
7.85242e-10
-2.26417e-10
8.37233e-10
-1.59813e-10
8.78175e-10
-9.46923e-11
9.06744e-10
-3.07867e-11
9.2155e-10
3.10682e-11
9.21661e-10
8.93516e-11
9.07033e-10
1.42322e-10
8.78632e-10
1.8842e-10
8.38337e-10
2.26523e-10
7.88657e-10
2.56047e-10
7.3241e-10
2.76934e-10
6.72403e-10
2.89567e-10
6.11191e-10
2.94656e-10
5.5092e-10
2.93131e-10
4.93241e-10
2.86029e-10
4.39286e-10
2.74414e-10
3.89695e-10
2.59305e-10
3.44664e-10
2.41637e-10
3.04014e-10
2.22228e-10
2.67267e-10
2.01772e-10
2.33716e-10
1.80838e-10
2.02499e-10
1.59882e-10
1.7267e-10
1.3926e-10
1.43275e-10
1.19247e-10
1.13433e-10
1.00054e-10
8.24482e-11
8.18416e-11
4.99562e-11
6.47409e-11
1.61464e-11
4.88728e-11
-1.79045e-11
3.43925e-11
-4.97886e-11
2.15623e-11
-7.53004e-11
1.08751e-11
-8.80945e-11
3.21321e-12
-7.94133e-11
-3.83917e-11
-3.84703e-10
-2.54446e-09
-7.45983e-10
-2.44483e-09
-1.05157e-09
-2.25438e-09
-1.28259e-09
-1.99012e-09
-1.4286e-09
-1.67493e-09
-1.48956e-09
-1.33495e-09
-1.47545e-09
-9.9572e-10
-1.40332e-09
-6.78061e-10
-1.29294e-09
-3.95547e-10
-1.16323e-09
-1.54283e-10
-1.02953e-09
4.61633e-11
-9.01781e-10
2.10774e-10
-7.84789e-10
3.46455e-10
-6.79546e-10
4.59678e-10
-5.84855e-10
5.5536e-10
-4.98559e-10
6.3662e-10
-4.18356e-10
7.05038e-10
-3.4223e-10
7.61107e-10
-2.68698e-10
8.04644e-10
-1.97053e-10
8.35099e-10
-1.27424e-10
8.51921e-10
-6.06649e-11
8.54903e-10
1.92385e-12
8.44445e-10
5.89165e-11
8.2164e-10
1.09046e-10
7.88208e-10
1.51384e-10
7.46318e-10
1.85442e-10
6.98352e-10
2.11164e-10
6.4668e-10
2.28874e-10
5.9348e-10
2.39191e-10
5.40602e-10
2.42938e-10
4.89494e-10
2.41048e-10
4.41176e-10
2.3449e-10
3.96253e-10
2.24207e-10
3.54946e-10
2.11075e-10
3.17146e-10
1.95872e-10
2.8247e-10
1.7927e-10
2.50318e-10
1.61831e-10
2.19938e-10
1.44016e-10
1.90486e-10
1.26196e-10
1.61096e-10
1.08662e-10
1.30967e-10
9.16469e-11
9.94639e-11
7.53327e-11
6.62707e-11
5.98693e-11
3.16103e-11
4.53946e-11
-3.42946e-12
3.20771e-11
-3.6471e-11
2.01877e-11
-6.34109e-11
1.02176e-11
-7.81246e-11
3.02956e-12
-7.22254e-11
-3.53622e-11
-3.11801e-10
-2.21309e-09
-6.19431e-10
-2.1372e-09
-8.84726e-10
-1.98909e-09
-1.09338e-09
-1.78146e-09
-1.23722e-09
-1.53109e-09
-1.31524e-09
-1.25693e-09
-1.33335e-09
-9.7761e-10
-1.30256e-09
-7.08856e-10
-1.23631e-09
-4.61796e-10
-1.14806e-09
-2.42537e-10
-1.04925e-09
-5.2637e-11
-9.48155e-10
1.09675e-10
-8.49598e-10
2.47897e-10
-7.55715e-10
3.65793e-10
-6.66843e-10
4.66487e-10
-5.82371e-10
5.52147e-10
-5.0136e-10
6.24028e-10
-4.22944e-10
6.82691e-10
-3.46564e-10
7.28264e-10
-2.72139e-10
7.60674e-10
-2.00109e-10
7.79891e-10
-1.31357e-10
7.86151e-10
-6.70283e-11
7.80118e-10
-8.31786e-12
7.62931e-10
4.37266e-11
7.36164e-10
8.83448e-11
7.017e-10
1.25128e-10
6.61568e-10
1.54028e-10
6.17779e-10
1.75321e-10
5.72187e-10
1.89539e-10
5.26383e-10
1.97399e-10
4.81633e-10
1.99724e-10
4.3885e-10
1.9738e-10
3.98596e-10
1.9122e-10
3.61104e-10
1.82048e-10
3.26318e-10
1.70587e-10
2.93931e-10
1.57472e-10
2.63433e-10
1.43247e-10
2.34164e-10
1.28362e-10
2.05371e-10
1.1319e-10
1.76269e-10
9.80323e-11
1.46125e-10
8.31311e-11
1.14365e-10
6.86823e-11
8.07198e-11
5.48482e-11
4.54446e-11
4.17783e-11
9.64043e-12
2.96487e-11
-2.43414e-11
1.87335e-11
-5.24959e-11
9.51619e-12
-6.89074e-11
2.83187e-12
-6.55413e-11
-3.25304e-11
-2.56534e-10
-1.93232e-09
-5.19494e-10
-1.87424e-09
-7.50324e-10
-1.75826e-09
-9.37972e-10
-1.59382e-09
-1.07582e-09
-1.39325e-09
-1.1623e-09
-1.17045e-09
-1.2007e-09
-9.39214e-10
-1.19801e-09
-7.1154e-10
-1.16332e-09
-4.9649e-10
-1.10609e-09
-2.99764e-10
-1.03482e-09
-1.2391e-10
-9.56108e-10
3.09655e-11
-8.74416e-10
1.66204e-10
-7.92324e-10
2.83701e-10
-7.11064e-10
3.85226e-10
-6.31051e-10
4.72135e-10
-5.5233e-10
5.45307e-10
-4.74882e-10
6.05244e-10
-3.98829e-10
6.52211e-10
-3.24549e-10
6.86394e-10
-2.52714e-10
7.08057e-10
-1.8424e-10
7.17678e-10
-1.20168e-10
7.16047e-10
-6.15257e-11
7.0429e-10
-9.19522e-12
6.83834e-10
3.61871e-11
6.56318e-10
7.42787e-11
6.23476e-10
1.05037e-10
5.87021e-10
1.28692e-10
5.48532e-10
1.45698e-10
5.09378e-10
1.56669e-10
4.70662e-10
1.62321e-10
4.33197e-10
1.63416e-10
3.975e-10
1.60713e-10
3.63806e-10
1.54936e-10
3.32095e-10
1.46746e-10
3.0212e-10
1.36735e-10
2.73445e-10
1.25412e-10
2.45487e-10
1.13214e-10
2.1757e-10
1.00503e-10
1.8898e-10
8.7581e-11
1.59048e-10
7.4694e-11
1.27253e-10
6.20435e-11
9.33704e-11
4.97985e-11
5.76896e-11
3.81146e-11
2.13243e-11
2.71707e-11
-1.33976e-11
1.72393e-11
-4.25646e-11
8.79073e-12
-6.04589e-11
2.62601e-12
-5.93766e-11
-2.99044e-11
-2.14271e-10
-1.69354e-09
-4.39769e-10
-1.64874e-09
-6.40858e-10
-1.55717e-09
-8.08862e-10
-1.42581e-09
-9.38316e-10
-1.26379e-09
-1.02736e-09
-1.0814e-09
-1.0776e-09
-8.88979e-10
-1.09337e-09
-6.95767e-10
-1.08073e-09
-5.09133e-10
-1.0463e-09
-3.34195e-10
-9.96315e-10
-1.7389e-10
-9.35982e-10
-2.93675e-11
-8.69187e-10
9.94082e-11
-7.98571e-10
2.13084e-10
-7.25813e-10
3.12469e-10
-6.51952e-10
3.98274e-10
-5.77678e-10
4.71034e-10
-5.03554e-10
5.31121e-10
-4.30168e-10
5.78825e-10
-3.58217e-10
6.14443e-10
-2.88535e-10
6.38375e-10
-2.2206e-10
6.51205e-10
-1.59763e-10
6.53751e-10
-1.02551e-10
6.4708e-10
-5.11845e-11
6.32468e-10
-6.208e-12
6.11341e-10
3.20831e-11
5.85185e-10
6.36463e-11
5.55457e-10
8.86688e-11
5.23509e-10
1.0753e-10
4.90516e-10
1.20752e-10
4.5744e-10
1.28948e-10
4.25e-10
1.3278e-10
3.93667e-10
1.32914e-10
3.63672e-10
1.29993e-10
3.35016e-10
1.24613e-10
3.07499e-10
1.17315e-10
2.80743e-10
1.08573e-10
2.5423e-10
9.87981e-11
2.27346e-10
8.83383e-11
1.99441e-10
7.74871e-11
1.699e-10
6.64878e-11
1.38253e-10
5.55422e-11
1.04316e-10
4.48204e-11
6.84115e-11
3.4479e-11
3.16657e-11
2.46964e-11
-3.61477e-12
1.57385e-11
-3.36064e-11
8.058e-12
-5.27781e-11
2.4169e-12
-5.37354e-11
-2.74874e-11
-1.81447e-10
-1.48981e-09
-3.75299e-10
-1.45489e-09
-5.50553e-10
-1.38192e-09
-7.00307e-10
-1.27606e-09
-8.19997e-10
-1.1441e-09
-9.07658e-10
-9.93744e-10
-9.63824e-10
-8.32813e-10
-9.91087e-10
-6.68503e-10
-9.93418e-10
-5.06801e-10
-9.75415e-10
-3.52197e-10
-9.41639e-10
-2.07666e-10
-8.96128e-10
-7.48786e-11
-8.42165e-10
4.54454e-11
-7.82246e-10
1.53165e-10
-7.18209e-10
2.48433e-10
-6.51419e-10
3.31486e-10
-5.82948e-10
4.02563e-10
-5.13721e-10
4.61893e-10
-4.44618e-10
5.09723e-10
-3.7654e-10
5.46365e-10
-3.10417e-10
5.72253e-10
-2.47197e-10
5.87986e-10
-1.87794e-10
5.94348e-10
-1.33027e-10
5.92313e-10
-8.35661e-11
5.83008e-10
-3.98901e-11
5.67665e-10
-2.2622e-12
5.47557e-10
2.92685e-11
5.23927e-10
5.48494e-11
4.97928e-10
7.47911e-11
4.70574e-10
8.95302e-11
4.42701e-10
9.95871e-11
4.14942e-10
1.05528e-10
3.87726e-10
1.07931e-10
3.61268e-10
1.07362e-10
3.35585e-10
1.04352e-10
3.10509e-10
9.93867e-11
2.85708e-10
9.29023e-11
2.60714e-10
8.52797e-11
2.34969e-10
7.68478e-11
2.07873e-10
6.78863e-11
1.78862e-10
5.86307e-11
1.47509e-10
4.92775e-11
1.1367e-10
3.99936e-11
7.76957e-11
3.09328e-11
4.07268e-11
2.22691e-11
5.04946e-12
1.42583e-11
-2.5595e-11
7.33173e-12
-4.58511e-11
2.20858e-12
-4.8612e-11
-2.52787e-11
-1.55432e-10
-1.31552e-09
-3.22364e-10
-1.28796e-09
-4.75057e-10
-1.22922e-09
-6.07967e-10
-1.14314e-09
-7.17257e-10
-1.03481e-09
-8.00979e-10
-9.10022e-10
-8.59018e-10
-7.74774e-10
-8.92814e-10
-6.34706e-10
-9.04919e-10
-4.94695e-10
-8.98499e-10
-3.58617e-10
-8.76868e-10
-2.29296e-10
-8.43141e-10
-1.08606e-10
-8.00029e-10
2.33427e-12
-7.49781e-10
1.02918e-10
-6.9422e-10
1.92872e-10
-6.34833e-10
2.72099e-10
-5.7288e-10
3.40611e-10
-5.09482e-10
3.98494e-10
-4.45681e-10
4.45921e-10
-3.82483e-10
4.83166e-10
-3.20864e-10
5.10635e-10
-2.61761e-10
5.28883e-10
-2.06035e-10
5.38623e-10
-1.54437e-10
5.40716e-10
-1.07571e-10
5.36142e-10
-6.58644e-11
5.25959e-10
-2.95611e-11
5.11254e-10
1.2799e-12
4.93086e-10
2.67669e-11
4.72441e-10
4.71492e-11
4.50192e-10
6.27861e-11
4.27063e-10
7.4113e-11
4.03615e-10
8.16098e-11
3.80228e-10
8.5773e-11
3.57103e-10
8.70935e-11
3.34264e-10
8.60396e-11
3.11562e-10
8.30454e-11
2.88702e-10
7.85044e-11
2.65256e-10
7.2766e-11
2.40708e-10
6.61354e-11
2.14505e-10
5.88752e-11
1.86123e-10
5.12084e-11
1.55176e-10
4.33228e-11
1.21556e-10
3.53783e-11
8.56408e-11
2.75227e-11
4.85833e-11
1.99223e-11
1.26507e-11
1.282e-11
-1.84919e-11
6.62275e-12
-3.96534e-11
2.00427e-12
-4.39932e-11
-2.32744e-11
-1.34352e-10
-1.16613e-09
-2.78233e-10
-1.14408e-09
-4.11148e-10
-1.09631e-09
-5.28609e-10
-1.02568e-09
-6.2738e-10
-9.36037e-10
-7.0561e-10
-8.31792e-10
-7.62808e-10
-7.17576e-10
-7.99667e-10
-5.97846e-10
-8.17781e-10
-4.76581e-10
-8.19304e-10
-3.57094e-10
-8.06635e-10
-2.41965e-10
-7.8216e-10
-1.3308e-10
-7.48089e-10
-3.17359e-11
-7.06387e-10
6.12164e-11
-6.58758e-10
1.45242e-10
-6.06685e-10
2.20027e-10
-5.51486e-10
2.85411e-10
-4.94352e-10
3.4136e-10
-4.36393e-10
3.87961e-10
-3.78649e-10
4.25422e-10
-3.22099e-10
4.54085e-10
-2.67646e-10
4.74431e-10
-2.16102e-10
4.87079e-10
-1.68157e-10
4.92771e-10
-1.2436e-10
4.92346e-10
-8.51046e-11
4.86704e-10
-5.06185e-11
4.76768e-10
-2.09734e-11
4.63441e-10
3.90296e-12
4.47564e-10
2.42057e-11
4.29889e-10
4.02246e-11
4.11044e-10
5.23192e-11
3.91519e-10
6.08918e-11
3.71654e-10
6.63644e-11
3.5163e-10
6.91591e-11
3.31468e-10
6.96843e-11
3.11037e-10
6.83234e-11
2.90063e-10
6.54281e-11
2.68152e-10
6.13147e-11
2.44823e-10
5.62625e-11
2.19558e-10
5.05141e-11
1.91872e-10
4.42774e-11
1.61414e-10
3.77281e-11
1.28106e-10
3.10166e-11
9.23532e-11
2.42817e-11
5.53193e-11
1.768e-11
1.92534e-11
1.1439e-11
-1.22502e-11
5.93913e-12
-3.41531e-11
1.80646e-12
-3.98605e-11
-2.1468e-11
-1.16895e-10
-1.03796e-09
-2.40928e-10
-1.02004e-09
-3.56459e-10
-9.80774e-10
-4.59836e-10
-9.22306e-10
-5.48326e-10
-8.47547e-10
-6.20221e-10
-7.59897e-10
-6.74833e-10
-6.62964e-10
-7.12384e-10
-5.60295e-10
-7.3382e-10
-4.55144e-10
-7.40589e-10
-3.50324e-10
-7.34417e-10
-2.48137e-10
-7.17124e-10
-1.50372e-10
-6.90495e-10
-5.83648e-11
-6.56206e-10
2.69276e-11
-6.15795e-10
1.04832e-10
-5.70667e-10
1.74899e-10
-5.22109e-10
2.36852e-10
-4.71308e-10
2.90558e-10
-4.19367e-10
3.36019e-10
-3.67312e-10
3.73367e-10
-3.1609e-10
4.02862e-10
-2.66557e-10
4.24899e-10
-2.19469e-10
4.39992e-10
-1.7546e-10
4.48763e-10
-1.35034e-10
4.5192e-10
-9.85524e-11
4.50222e-10
-6.62336e-11
4.44449e-10
-3.81608e-11
4.35368e-10
-1.42934e-11
4.23697e-10
5.51432e-12
4.1008e-10
2.14935e-11
3.95063e-10
3.39361e-11
3.79075e-10
4.31754e-11
3.62414e-10
4.95661e-11
3.45239e-10
5.34681e-11
3.27566e-10
5.52337e-11
3.09271e-10
5.51982e-11
2.90099e-10
5.36727e-11
2.69678e-10
5.09401e-11
2.47556e-10
4.72528e-11
2.23246e-10
4.28318e-11
1.96294e-10
3.78676e-11
1.66379e-10
3.2522e-11
1.33452e-10
2.69337e-11
9.79426e-11
2.12306e-11
6.10234e-11
1.55576e-11
2.49272e-11
1.01256e-11
-6.81766e-12
5.28625e-12
-2.93136e-11
1.61681e-12
-3.61912e-11
-1.98515e-11
-1.02155e-10
-9.2797e-10
-2.09018e-10
-9.1318e-10
-3.09246e-10
-8.80547e-10
-3.99854e-10
-8.31699e-10
-4.78537e-10
-7.68865e-10
-5.43752e-10
-6.94682e-10
-5.94727e-10
-6.11989e-10
-6.31396e-10
-5.23626e-10
-6.54276e-10
-4.32264e-10
-6.64319e-10
-3.40282e-10
-6.62759e-10
-2.49697e-10
-6.50978e-10
-1.62153e-10
-6.30406e-10
-7.89373e-11
-6.02452e-10
-1.02653e-12
-5.6847e-10
7.08496e-11
-5.29745e-10
1.36174e-10
-4.87486e-10
1.94592e-10
-4.42824e-10
2.45895e-10
-3.96813e-10
2.90008e-10
-3.50429e-10
3.26983e-10
-3.04564e-10
3.56997e-10
-2.60014e-10
3.8035e-10
-2.17474e-10
3.97453e-10
-1.77525e-10
4.08815e-10
-1.40626e-10
4.15022e-10
-1.07111e-10
4.16707e-10
-7.71894e-11
4.14528e-10
-5.0955e-11
4.09133e-10
-2.83937e-11
4.01134e-10
-9.40084e-12
3.91086e-10
6.20193e-12
3.7946e-10
1.86491e-11
3.66627e-10
2.82132e-11
3.5285e-10
3.51889e-11
3.38263e-10
3.98801e-11
3.22875e-10
4.25881e-11
3.06564e-10
4.36028e-11
2.89085e-10
4.31967e-11
2.70085e-10
4.162e-11
2.49134e-10
3.90978e-11
2.2577e-10
3.5829e-11
1.99564e-10
3.19857e-11
1.70223e-10
2.77142e-11
1.37725e-10
2.314e-11
1.02518e-10
1.8379e-11
6.57852e-11
1.35632e-11
2.97437e-11
8.88523e-12
-2.13952e-12
4.667e-12
-2.50956e-11
1.43622e-12
-3.29609e-11
-1.84157e-11
-8.9497e-11
-8.33636e-10
-1.81453e-10
-8.21225e-10
-2.68199e-10
-7.93801e-10
-3.4729e-10
-7.52608e-10
-4.16784e-10
-6.99371e-10
-4.75311e-10
-6.36155e-10
-5.22088e-10
-5.65213e-10
-5.56878e-10
-4.88836e-10
-5.79919e-10
-4.09224e-10
-5.91816e-10
-3.28384e-10
-5.93444e-10
-2.48069e-10
-5.85845e-10
-1.69752e-10
-5.70156e-10
-9.46269e-11
-5.47546e-10
-2.36366e-11
-5.19192e-10
4.24954e-11
-4.86241e-10
1.03222e-10
-4.49799e-10
1.58148e-10
-4.10912e-10
2.07009e-10
-3.70564e-10
2.49659e-10
-3.29656e-10
2.86076e-10
-2.8901e-10
3.16351e-10
-2.49354e-10
3.40694e-10
-2.11317e-10
3.59417e-10
-1.75425e-10
3.72924e-10
-1.42095e-10
3.81692e-10
-1.11633e-10
3.86246e-10
-8.42412e-11
3.87136e-10
-6.00177e-11
3.84909e-10
-3.89712e-11
3.80087e-10
-2.10319e-11
3.73146e-10
-6.06513e-12
3.64492e-10
6.11318e-12
3.54449e-10
1.57229e-11
3.4324e-10
2.30064e-11
3.3098e-10
2.82172e-11
3.17665e-10
3.16104e-11
3.03172e-10
3.34343e-11
2.87262e-10
3.3925e-11
2.69596e-10
3.33013e-11
2.49759e-10
3.17619e-11
2.2731e-10
2.94831e-11
2.01844e-10
2.66181e-11
1.73089e-10
2.32974e-11
1.41046e-10
1.96324e-11
1.06183e-10
1.57264e-11
6.96917e-11
1.16972e-11
3.37732e-11
7.71879e-12
1.83888e-12
4.08199e-12
-2.14592e-11
1.26488e-12
-3.01445e-11
-1.71514e-11
-7.84678e-11
-7.52846e-10
-1.57441e-10
-7.42253e-10
-2.32305e-10
-7.18938e-10
-3.01052e-10
-6.83862e-10
-3.62051e-10
-6.38373e-10
-4.14102e-10
-5.84105e-10
-4.56452e-10
-5.22864e-10
-4.88777e-10
-4.56512e-10
-5.11131e-10
-3.86871e-10
-5.23881e-10
-3.15634e-10
-5.27635e-10
-2.44316e-10
-5.23171e-10
-1.74215e-10
-5.11385e-10
-1.06413e-10
-4.93243e-10
-4.17798e-11
-4.69747e-10
1.89993e-11
-4.41912e-10
7.53871e-11
-4.10734e-10
1.2697e-10
-3.77166e-10
1.73441e-10
-3.42103e-10
2.14596e-10
-3.06364e-10
2.50337e-10
-2.7069e-10
2.80678e-10
-2.35734e-10
3.05738e-10
-2.02057e-10
3.2574e-10
-1.70128e-10
3.40997e-10
-1.40323e-10
3.51887e-10
-1.1292e-10
3.58844e-10
-8.81077e-11
3.62324e-10
-6.59901e-11
3.6279e-10
-4.65925e-11
3.60688e-10
-2.98731e-11
3.56425e-10
-1.57345e-11
3.50353e-10
-4.03515e-12
3.42749e-10
5.39948e-12
3.33806e-10
1.27659e-11
3.23614e-10
1.82734e-11
3.12159e-10
2.21352e-11
2.99312e-10
2.4562e-11
2.84837e-10
2.57561e-11
2.68404e-10
2.59067e-11
2.4961e-10
2.5187e-11
2.28031e-10
2.37514e-11
2.0328e-10
2.17344e-11
1.75106e-10
1.92504e-11
1.43531e-10
1.63968e-11
1.09037e-10
1.32636e-11
7.28252e-11
9.95439e-12
3.70826e-11
6.62331e-12
5.16978e-12
3.52987e-12
-1.83663e-11
1.10244e-12
-2.77179e-11
-1.60494e-11
-6.87295e-11
-6.83821e-10
-1.36363e-10
-6.7462e-10
-2.00746e-10
-6.54556e-10
-2.6023e-10
-6.24378e-10
-3.13451e-10
-5.85153e-10
-3.59368e-10
-5.38189e-10
-3.97286e-10
-4.84946e-10
-4.26843e-10
-4.26956e-10
-4.47978e-10
-3.65736e-10
-4.60892e-10
-3.02721e-10
-4.65995e-10
-2.39214e-10
-4.63857e-10
-1.76353e-10
-4.55176e-10
-1.15095e-10
-4.40738e-10
-5.62181e-11
-4.21395e-10
-3.44208e-13
-3.98037e-10
5.20282e-11
-3.71554e-10
1.00488e-10
-3.42809e-10
1.44696e-10
-3.12602e-10
1.8439e-10
-2.81666e-10
2.19402e-10
-2.50655e-10
2.49667e-10
-2.20142e-10
2.75225e-10
-1.90619e-10
2.96219e-10
-1.62499e-10
3.12877e-10
-1.36112e-10
3.25501e-10
-1.11709e-10
3.34441e-10
-8.94656e-11
3.4008e-10
-6.94859e-11
3.4281e-10
-5.18081e-11
3.43009e-10
-3.64135e-11
3.4103e-10
-2.32353e-11
3.37175e-10
-1.2168e-11
3.31682e-10
-3.0759e-12
3.24715e-10
4.19771e-12
3.16342e-10
9.82298e-12
3.06535e-10
1.39763e-11
2.9516e-10
1.68341e-11
2.81981e-10
1.85678e-11
2.66671e-10
1.93391e-11
2.4884e-10
1.92971e-11
2.28074e-10
1.85753e-11
2.04002e-10
1.729e-11
1.76392e-10
1.55401e-11
1.45281e-10
1.34092e-11
1.11169e-10
1.09741e-11
7.52606e-11
8.3237e-12
3.97331e-11
5.59223e-12
7.90105e-12
3.00745e-12
-1.57821e-11
9.47936e-13
-2.56592e-11
-1.51018e-11
-6.00199e-11
-6.2506e-10
-1.17715e-10
-6.16926e-10
-1.72838e-10
-5.99434e-10
-2.2404e-10
-5.73178e-10
-2.70181e-10
-5.39012e-10
-3.10374e-10
-4.97996e-10
-3.43992e-10
-4.51329e-10
-3.70669e-10
-4.00281e-10
-3.90276e-10
-3.46129e-10
-4.02898e-10
-2.90099e-10
-4.08795e-10
-2.33318e-10
-4.08372e-10
-1.76776e-10
-4.02159e-10
-1.21308e-10
-3.90787e-10
-6.75914e-11
-3.74972e-10
-1.61593e-11
-3.55497e-10
3.25533e-11
-3.33165e-10
7.81561e-11
-3.0875e-10
1.20281e-10
-2.82966e-10
1.58606e-10
-2.56452e-10
1.92889e-10
-2.29773e-10
2.22988e-10
-2.03419e-10
2.48872e-10
-1.77812e-10
2.70613e-10
-1.53306e-10
2.88372e-10
-1.30189e-10
3.02384e-10
-1.08682e-10
3.12935e-10
-8.89476e-11
3.20345e-10
-7.10867e-11
3.24948e-10
-5.51472e-11
3.27069e-10
-4.11291e-11
3.27011e-10
-2.89912e-11
3.25037e-10
-1.86581e-11
3.2135e-10
-1.00276e-11
3.16085e-10
-2.97725e-12
3.09292e-10
2.62883e-12
3.0093e-10
6.93432e-12
2.90855e-10
1.0085e-11
2.78831e-10
1.2224e-11
2.64533e-10
1.34879e-11
2.47576e-10
1.40034e-11
2.27558e-10
1.38843e-11
2.04121e-10
1.323e-11
1.77046e-10
1.21244e-11
1.46387e-10
1.06381e-11
1.12655e-10
8.83498e-12
7.70641e-11
6.78956e-12
4.17787e-11
4.61585e-12
1.00746e-11
2.50976e-12
-1.36765e-11
7.99793e-13
-2.39499e-11
-1.43022e-11
-5.21272e-11
-5.75303e-10
-1.01074e-10
-5.6798e-10
-1.47992e-10
-5.52517e-10
-1.91779e-10
-5.2939e-10
-2.31496e-10
-4.99295e-10
-2.66392e-10
-4.63101e-10
-2.95917e-10
-4.21805e-10
-3.19723e-10
-3.76476e-10
-3.37646e-10
-3.28206e-10
-3.49691e-10
-2.78054e-10
-3.56004e-10
-2.27005e-10
-3.56854e-10
-1.75926e-10
-3.52622e-10
-1.25541e-10
-3.43799e-10
-7.64158e-11
-3.30982e-10
-2.89768e-11
-3.14865e-10
1.64372e-11
-2.96187e-10
5.94785e-11
-2.7565e-10
9.97455e-11
-2.53882e-10
1.36839e-10
-2.31428e-10
1.70435e-10
-2.08758e-10
2.00318e-10
-1.86278e-10
2.26393e-10
-1.64338e-10
2.48674e-10
-1.43234e-10
2.67269e-10
-1.23212e-10
2.82362e-10
-1.04465e-10
2.94189e-10
-8.71416e-11
3.03021e-10
-7.1339e-11
3.09144e-10
-5.71125e-11
3.12841e-10
-4.44772e-11
3.14375e-10
-3.34132e-11
3.13973e-10
-2.38712e-11
3.11808e-10
-1.57773e-11
3.07991e-10
-9.03897e-12
3.02554e-10
-3.55012e-12
2.95441e-10
8.03924e-13
2.86501e-10
4.14154e-12
2.75493e-10
6.58047e-12
2.62094e-10
8.23422e-12
2.45923e-10
9.20888e-12
2.26584e-10
9.60039e-12
2.0373e-10
9.49238e-12
1.77154e-10
8.95506e-12
1.46924e-10
8.04655e-12
1.13564e-10
6.81897e-12
7.82921e-11
5.33267e-12
4.32653e-11
3.68172e-12
1.17256e-11
2.0301e-12
-1.20251e-11
6.55802e-13
-2.25759e-11
-1.36465e-11
-4.48751e-11
-5.33493e-10
-8.60756e-11
-5.26779e-10
-1.25685e-10
-5.12906e-10
-1.62814e-10
-4.92261e-10
-1.96695e-10
-4.65414e-10
-2.26703e-10
-4.33093e-10
-2.52371e-10
-3.96138e-10
-2.73382e-10
-3.55465e-10
-2.89564e-10
-3.12024e-10
-3.0087e-10
-2.66748e-10
-3.07359e-10
-2.20517e-10
-3.09183e-10
-1.74103e-10
-3.06586e-10
-1.28139e-10
-2.9992e-10
-8.30818e-11
-2.89671e-10
-3.92256e-11
-2.76467e-10
3.23389e-12
-2.61014e-10
4.4027e-11
-2.43967e-10
8.26993e-11
-2.25866e-10
1.1874e-10
-2.07155e-10
1.51725e-10
-1.88204e-10
1.81367e-10
-1.6933e-10
2.0752e-10
-1.50812e-10
2.30157e-10
-1.32892e-10
2.49349e-10
-1.15774e-10
2.65244e-10
-9.96283e-11
2.78043e-10
-8.45883e-11
2.8798e-10
-7.07497e-11
2.95304e-10
-5.81736e-11
3.00264e-10
-4.68879e-11
3.03089e-10
-3.68913e-11
3.03976e-10
-2.81567e-11
3.03073e-10
-2.06349e-11
3.00469e-10
-1.42593e-11
2.96178e-10
-8.94988e-12
2.90131e-10
-4.61756e-12
2.82168e-10
-1.1685e-12
2.72044e-10
1.49226e-12
2.59434e-10
3.45746e-12
2.43958e-10
4.81459e-12
2.25227e-10
5.64326e-12
2.02901e-10
6.01285e-12
1.76785e-10
5.98119e-12
1.46956e-10
5.59527e-12
1.13951e-10
4.89621e-12
7.89916e-11
3.93124e-12
4.42305e-11
2.775e-12
1.28819e-11
1.55993e-12
-1.08102e-11
5.12918e-13
-2.15291e-11
-1.31336e-11
-3.81145e-11
-4.98756e-10
-7.24001e-11
-4.92494e-10
-1.05454e-10
-4.79852e-10
-1.36565e-10
-4.61148e-10
-1.65117e-10
-4.36862e-10
-1.90604e-10
-4.07605e-10
-2.12641e-10
-3.74101e-10
-2.3096e-10
-3.37147e-10
-2.45398e-10
-2.97586e-10
-2.55883e-10
-2.56264e-10
-2.62411e-10
-2.13989e-10
-2.65033e-10
-1.71482e-10
-2.6386e-10
-1.29313e-10
-2.59095e-10
-8.78474e-11
-2.51097e-10
-4.7223e-11
-2.40446e-10
-7.41551e-12
-2.27873e-10
3.14555e-11
-2.14011e-10
6.88389e-11
-1.99308e-10
1.04038e-10
-1.84088e-10
1.36505e-10
-1.68611e-10
1.65891e-10
-1.53104e-10
1.92014e-10
-1.37776e-10
2.1483e-10
-1.22819e-10
2.34392e-10
-1.08405e-10
2.5083e-10
-9.4682e-11
2.6432e-10
-8.17743e-11
2.75071e-10
-6.97766e-11
2.83306e-10
-5.8756e-11
2.89243e-10
-4.87527e-11
2.93085e-10
-3.97817e-11
2.95004e-10
-3.18353e-11
2.95126e-10
-2.4886e-11
2.93519e-10
-1.88897e-11
2.90181e-10
-1.37895e-11
2.85029e-10
-9.51908e-12
2.77897e-10
-6.00626e-12
2.68531e-10
-3.17647e-12
2.56604e-10
-9.55579e-13
2.41737e-10
7.27317e-13
2.23544e-10
1.93721e-12
2.01692e-10
2.73081e-12
1.75992e-10
3.15495e-12
1.46533e-10
3.24681e-12
1.13859e-10
3.03778e-12
7.92007e-11
2.5631e-12
4.47052e-11
1.87923e-12
1.35658e-11
1.08862e-12
-1.00196e-11
3.66715e-13
-2.08073e-11
-1.27669e-11
-3.17195e-11
-4.7038e-10
-5.97691e-11
-4.64443e-10
-8.68816e-11
-4.52738e-10
-1.12501e-10
-4.35528e-10
-1.36143e-10
-4.13218e-10
-1.57414e-10
-3.86334e-10
-1.76012e-10
-3.55503e-10
-1.91727e-10
-3.21432e-10
-2.04428e-10
-2.84884e-10
-2.14045e-10
-2.46646e-10
-2.20542e-10
-2.07494e-10
-2.23889e-10
-1.68135e-10
-2.24064e-10
-1.29138e-10
-2.21092e-10
-9.08203e-11
-2.15161e-10
-5.31529e-11
-2.06803e-10
-1.57719e-11
-1.96857e-10
2.15121e-11
-1.85986e-10
5.79687e-11
-1.74512e-10
9.25651e-11
-1.62609e-10
1.24603e-10
-1.50412e-10
1.53695e-10
-1.3806e-10
1.79663e-10
-1.25701e-10
2.02471e-10
-1.13485e-10
2.22177e-10
-1.01562e-10
2.38906e-10
-9.00666e-11
2.52824e-10
-7.91173e-11
2.64121e-10
-6.88114e-11
2.72999e-10
-5.92234e-11
2.79654e-10
-5.04055e-11
2.84266e-10
-4.23876e-11
2.86985e-10
-3.51795e-11
2.87917e-10
-2.87727e-11
2.87111e-10
-2.31431e-11
2.8455e-10
-1.82541e-11
2.8014e-10
-1.40595e-11
2.73702e-10
-1.05065e-11
2.64978e-10
-7.53844e-12
2.53636e-10
-5.09776e-12
2.39297e-10
-3.1283e-12
2.21575e-10
-1.57797e-12
2.00141e-10
-4.01135e-13
1.74815e-10
4.39604e-13
1.45692e-10
9.72939e-13
1.13325e-10
1.22153e-12
7.8952e-11
1.21e-12
4.47167e-11
9.78354e-13
1.37974e-11
6.03722e-13
-9.64496e-12
2.10784e-13
-2.04144e-11
-1.25561e-11
-2.55864e-11
-4.47798e-10
-4.79399e-11
-4.42089e-10
-6.9599e-11
-4.31077e-10
-9.01402e-11
-4.14985e-10
-1.09199e-10
-3.94158e-10
-1.26482e-10
-3.69051e-10
-1.41771e-10
-3.40213e-10
-1.54924e-10
-3.08279e-10
-1.65862e-10
-2.73946e-10
-1.74548e-10
-2.3796e-10
-1.80954e-10
-2.01089e-10
-1.85014e-10
-1.64077e-10
-1.86587e-10
-1.27566e-10
-1.85482e-10
-9.19243e-11
-1.81623e-10
-5.70104e-11
-1.75419e-10
-2.19745e-11
-1.67964e-10
1.40592e-11
-1.60029e-10
5.00347e-11
-1.51737e-10
8.42741e-11
-1.43058e-10
1.15924e-10
-1.33992e-10
1.44629e-10
-1.24599e-10
1.7027e-10
-1.14984e-10
1.92856e-10
-1.05277e-10
2.1247e-10
-9.56146e-11
2.29243e-10
-8.61291e-11
2.43338e-10
-7.69409e-11
2.54932e-10
-6.8153e-11
2.6421e-10
-5.98494e-11
2.7135e-10
-5.2094e-11
2.76511e-10
-4.49309e-11
2.79822e-10
-3.83855e-11
2.8137e-10
-3.24664e-11
2.8119e-10
-2.71672e-11
2.79249e-10
-2.2469e-11
2.75441e-10
-1.83435e-11
2.69577e-10
-1.47546e-11
2.6139e-10
-1.16619e-11
2.50544e-10
-9.02207e-12
2.36658e-10
-6.79196e-12
2.19345e-10
-4.93066e-12
1.9828e-10
-3.402e-12
1.73285e-10
-2.1767e-12
1.44466e-10
-1.23352e-12
1.12382e-10
-5.57575e-13
7.82756e-11
-1.34409e-13
4.42933e-11
6.11444e-14
1.36017e-11
9.15716e-14
-9.67542e-12
3.64972e-14
-2.03593e-11
-1.25196e-11
-1.96396e-11
-4.30575e-10
-3.67078e-11
-4.25019e-10
-5.32809e-11
-4.14502e-10
-6.9051e-11
-3.99214e-10
-8.37571e-11
-3.79451e-10
-9.7196e-11
-3.55611e-10
-1.09229e-10
-3.2818e-10
-1.19783e-10
-2.97724e-10
-1.28847e-10
-2.64882e-10
-1.36451e-10
-2.30358e-10
-1.42629e-10
-1.94911e-10
-1.47359e-10
-1.59348e-10
-1.50463e-10
-1.24463e-10
-1.51538e-10
-9.08481e-11
-1.50068e-10
-5.84794e-11
-1.46065e-10
-2.59759e-11
-1.41114e-10
9.10958e-12
-1.36269e-10
4.51904e-11
-1.31265e-10
7.92708e-11
-1.25788e-10
1.10448e-10
-1.19716e-10
1.38557e-10
-1.1307e-10
1.63624e-10
-1.05948e-10
1.85734e-10
-9.84826e-11
2.05005e-10
-9.08186e-11
2.21579e-10
-8.30959e-11
2.35614e-10
-7.54435e-11
2.47279e-10
-6.79739e-11
2.5674e-10
-6.07818e-11
2.64158e-10
-5.39429e-11
2.69672e-10
-4.75145e-11
2.73393e-10
-4.15361e-11
2.75391e-10
-3.6031e-11
2.75684e-10
-3.10084e-11
2.74226e-10
-2.6465e-11
2.70897e-10
-2.23877e-11
2.65499e-10
-1.87552e-11
2.57758e-10
-1.55408e-11
2.4733e-10
-1.27138e-11
2.33831e-10
-1.0242e-11
2.16873e-10
-8.09412e-12
1.96131e-10
-6.24183e-12
1.71432e-10
-4.66254e-12
1.42885e-10
-3.34124e-12
1.11059e-10
-2.27093e-12
7.72047e-11
-1.4491e-12
4.34712e-11
-8.66948e-13
1.30195e-11
-4.52931e-13
-1.00895e-11
-1.67632e-13
-2.06447e-11
-1.26873e-11
-1.38426e-11
-4.18409e-10
-2.59109e-11
-4.12949e-10
-3.76487e-11
-4.02763e-10
-4.88479e-11
-3.88013e-10
-5.93367e-11
-3.68961e-10
-6.89886e-11
-3.45958e-10
-7.77313e-11
-3.19436e-10
-8.55531e-11
-2.89902e-10
-9.25066e-11
-2.57929e-10
-9.87044e-11
-2.24161e-10
-1.043e-10
-1.89317e-10
-1.09432e-10
-1.54217e-10
-1.14086e-10
-1.19808e-10
-1.17839e-10
-8.70948e-11
-1.19637e-10
-5.66804e-11
-1.18257e-10
-2.7355e-11
-1.16136e-10
6.99009e-12
-1.14937e-10
4.39918e-11
-1.13521e-10
7.78548e-11
-1.11245e-10
1.08172e-10
-1.07977e-10
1.35288e-10
-1.03791e-10
1.59439e-10
-9.88363e-11
1.8078e-10
-9.32829e-11
1.99451e-10
-8.73006e-11
2.15596e-10
-8.10481e-11
2.29362e-10
-7.46681e-11
2.40899e-10
-6.8285e-11
2.50358e-10
-6.20044e-11
2.57877e-10
-5.5913e-11
2.6358e-10
-5.00797e-11
2.67559e-10
-4.4556e-11
2.69867e-10
-3.93779e-11
2.70506e-10
-3.45675e-11
2.69416e-10
-3.01346e-11
2.66464e-10
-2.60788e-11
2.61444e-10
-2.23912e-11
2.54071e-10
-1.90565e-11
2.43995e-10
-1.60547e-11
2.30829e-10
-1.33627e-11
2.14181e-10
-1.09571e-11
1.93725e-10
-8.81564e-12
1.6929e-10
-6.92047e-12
1.40989e-10
-5.26045e-12
1.09399e-10
-3.83393e-12
7.57778e-11
-2.65888e-12
4.22959e-11
-1.78176e-12
1.21423e-11
-1.02298e-12
-1.08483e-11
-4.16044e-13
-2.12516e-11
-1.31033e-11
-8.21271e-12
-4.11129e-10
-1.5437e-11
-4.05724e-10
-2.24703e-11
-3.95729e-10
-2.91928e-11
-3.8129e-10
-3.55076e-11
-3.62645e-10
-4.13491e-11
-3.40116e-10
-4.66908e-11
-3.14094e-10
-5.15552e-11
-2.85038e-10
-5.60267e-11
-2.53458e-10
-6.02678e-11
-2.1992e-10
-6.45361e-11
-1.85049e-10
-6.91916e-11
-1.49562e-10
-7.46522e-11
-1.14347e-10
-8.10986e-11
-8.06478e-11
-8.77483e-11
-5.00301e-11
-9.0643e-11
-2.44597e-11
-9.29817e-11
9.32905e-12
-9.68786e-11
4.78889e-11
-9.94504e-11
8.04267e-11
-1.00205e-10
1.08926e-10
-9.93429e-11
1.34426e-10
-9.71477e-11
1.57243e-10
-9.38853e-11
1.77517e-10
-8.9794e-11
1.9536e-10
-8.50823e-11
2.10885e-10
-7.99316e-11
2.24211e-10
-7.44995e-11
2.35467e-10
-6.89212e-11
2.4478e-10
-6.33119e-11
2.52268e-10
-5.77671e-11
2.58036e-10
-5.23647e-11
2.62157e-10
-4.71655e-11
2.64668e-10
-4.22152e-11
2.65555e-10
-3.75458e-11
2.64746e-10
-3.3177e-11
2.62096e-10
-2.91183e-11
2.57385e-10
-2.53702e-11
2.50323e-10
-2.19263e-11
2.40552e-10
-1.87747e-11
2.27677e-10
-1.58997e-11
2.11305e-10
-1.32837e-11
1.91108e-10
-1.09088e-11
1.66914e-10
-8.75934e-12
1.38839e-10
-6.82302e-12
1.07462e-10
-5.0974e-12
7.4052e-11
-3.62834e-12
4.08268e-11
-2.6429e-12
1.11568e-11
-1.53101e-12
-1.19602e-11
-6.58149e-13
-2.21245e-11
-1.37615e-11
-2.70199e-12
-5.09706e-12
-7.43065e-12
-9.66398e-12
-1.17666e-11
-1.37197e-11
-1.55205e-11
-1.71885e-11
-1.87777e-11
-2.03978e-11
-2.22536e-11
-2.47082e-11
-2.8367e-11
-3.41617e-11
-4.37921e-11
-5.83732e-11
-7.42513e-11
-8.516e-11
-9.11895e-11
-9.40714e-11
-9.47202e-11
-9.36925e-11
-9.13908e-11
-8.81177e-11
-8.41122e-11
-7.95714e-11
-7.46621e-11
-6.95259e-11
-6.42829e-11
-5.90339e-11
-5.38616e-11
-4.88322e-11
-4.39969e-11
-3.93935e-11
-3.50475e-11
-3.09739e-11
-2.71789e-11
-2.36613e-11
-2.04141e-11
-1.74263e-11
-1.46841e-11
-1.21723e-11
-9.87508e-12
-7.77504e-12
-5.85338e-12
-4.10476e-12
-2.59193e-12
-1.29022e-12
-5.28278e-13
)
;
boundaryField
{
leftWall
{
type calculated;
value uniform 0;
}
rightWall
{
type calculated;
value uniform 0;
}
lowerWall
{
type calculated;
value uniform 0;
}
atmosphere
{
type calculated;
value nonuniform List<scalar>
100
(
3.23028e-11
7.91233e-11
1.0391e-10
1.14642e-10
1.17632e-10
1.1667e-10
1.13967e-10
1.10792e-10
1.07824e-10
1.05391e-10
1.03618e-10
1.02517e-10
1.02053e-10
1.02179e-10
1.02815e-10
1.03794e-10
1.04861e-10
1.05755e-10
1.06243e-10
1.06129e-10
1.05258e-10
1.03506e-10
1.00751e-10
9.68149e-11
9.14273e-11
8.42398e-11
7.49345e-11
6.34948e-11
5.01628e-11
3.49659e-11
1.62651e-11
-3.86892e-12
-2.57522e-11
-4.93954e-11
-7.4617e-11
-1.0135e-10
-1.29361e-10
-1.58324e-10
-1.87847e-10
-2.17486e-10
-2.46757e-10
-2.75143e-10
-3.02112e-10
-3.27127e-10
-3.49661e-10
-3.69216e-10
-3.85337e-10
-3.97629e-10
-4.05768e-10
-4.09513e-10
-4.08716e-10
-4.03328e-10
-3.93394e-10
-3.79056e-10
-3.60542e-10
-3.38162e-10
-3.12293e-10
-2.8337e-10
-2.51869e-10
-2.18301e-10
-1.83193e-10
-1.47107e-10
-1.10688e-10
-7.48528e-11
-4.03994e-11
-9.87837e-12
2.52072e-11
5.87975e-11
8.64562e-11
1.11808e-10
1.35075e-10
1.56216e-10
1.75215e-10
1.92087e-10
2.06879e-10
2.19671e-10
2.30558e-10
2.39644e-10
2.47026e-10
2.52787e-10
2.56984e-10
2.59638e-10
2.6072e-10
2.60143e-10
2.5775e-10
2.53312e-10
2.46528e-10
2.37034e-10
2.24429e-10
2.08317e-10
1.88365e-10
1.64402e-10
1.36542e-10
1.05362e-10
7.21302e-11
3.90782e-11
9.644e-12
-1.32619e-11
-2.28864e-11
-1.42897e-11
)
;
}
defaultFaces
{
type empty;
value nonuniform 0();
}
}
// ************************************************************************* //
| [
"stig.m.nilsen@gmail.com"
] | stig.m.nilsen@gmail.com | |
85db3edaea0655e6c32fd229f6f6711a5f46af19 | d884ddefa3fa70bb6a58b7d12f681bcda28c2ea4 | /roar/network/roDnsResolve.cpp | d513cac0d8cf104a24ce96ecf5c084d0888132ad | [] | no_license | mtlung/rhinoca | 442e47b552b27088d0ca29b259a4a0ddacd5e8c8 | bc1dfd740c616b548c457dc747733c92240d2b60 | refs/heads/master | 2020-08-21T17:41:46.075103 | 2020-03-14T03:45:59 | 2020-03-14T03:45:59 | 216,207,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,163 | cpp | #include "pch.h"
#include "roDnsResolve.h"
#include "roSocket.h"
#include "../base/roArray.h"
#include "../base/roLog.h"
#include "../base/roStopWatch.h"
#include "../base/roString.h"
#include "../base/roTypeCast.h"
#include "../base/roMutex.h"
#include "../math/roRandom.h"
#include "../base/roUtility.h"
#if roOS_WIN // Native Windows
# include <winsock2.h>
# include <svcguid.h> // For using WSALookupService
# include <windns.h> // DNS API
# pragma comment(lib, "dnsapi.lib")
#endif
// Reference:
// http://cr.yp.to/djbdns/notes.html
// http://const.me/articles/ms-dns-api/
// http://www.infologika.com.br/public/dnsquery_main.cpp
// http://www.binarytides.com/dns-query-code-in-c-with-winsock/
// http://www.tcpipguide.com/free/t_DNSMessageHeaderandQuestionSectionFormat.htm
// API to use:
// getaddrinfo_a: http://bitsup.blogspot.sg/2008/09/asynchronous-dns-lookups-on-linux-with.html
// Other Async DNS library
// http://adns.sourceforge.net/
namespace ro {
namespace {
static const roSize _dnsUdpPacketSize = 512;
// Type field of Query and Answer
enum Type
{
T_A = 1, // Host address
T_NS = 2, // Authoritative server
T_CNAME = 5, // Canonical name
T_SOA = 6, // Start of authority zone
T_PTR = 12, // domain name pointer
T_MX = 15 // mail routing information
};
// DNS header structure
struct DnsHeader
{
roUint16 id; // identification number
roUint8 rd:1; // recursion desired
roUint8 tc:1; // truncated message
roUint8 aa:1; // authoritative answer
roUint8 opcode:4; // purpose of message
roUint8 qr:1; // query/response flag
roUint8 rcode:4; // response code
roUint8 cd:1; // checking disabled
roUint8 ad:1; // authenticated data
roUint8 z:1; // its z! reserved
roUint8 ra:1; // recursion available
roUint16 q_count; // number of question entries
roUint16 ans_count; // number of answer entries
roUint16 auth_count; // number of authority entries
roUint16 add_count; // number of resource entries
}; // DnsHeader
// Constant sized fields of query structure
struct Question
{
roUint16 qtype;
roUint16 qclass;
}; // Question
// Constant sized fields of the resource record structure
#pragma pack(push, 1)
struct ResponseData
{
roUint16 type;
roUint16 _class;
roUint32 ttl;
roUint16 data_len;
};
#pragma pack(pop)
//Pointers to resource record contents
struct ResourceRecord
{
String name;
struct ResponseData* resource;
String rdata;
}; // ResourceRecord
} // namespace
// Eg. www.google.com -> 3www6google3com0
static roStatus _changetoDnsNameFormat(String& str)
{
roStatus st;
String out;
st = str.append('.');
if(!st) return st;
for(roSize i=0; i<str.size(); ) {
char* p = str.c_str() + i;
char* next = roStrChr(p, '.');
roUint8 num = 0;
st = roSafeAssign(num, next - (str.c_str() + i));
if(!st) return st;
st = out.append(num, 1);
if(!st) return st;
st = out.append(p, num);
if(!st) return st;
i += num + 1;
}
st = out.append(char(0), 1);
if(!st) return st;
roSwap(out, str);
return roStatus::ok;
}
static roStatus _fromDnsNameFormat(String& str)
{
String out;
// Convert 3www6google3com0 to www.google.com
for(roSize i=0; i<str.size(); ++i) {
roSize n = str[i];
if(!str.isInRange(i+n))
return roStatus::index_out_of_range;
for(roSize j=0; j<n; ++j) {
str[i] = str[i+1];
++i;
}
if(i == str.size() - 1)
str.resize(i);
else
str[i] = '.';
}
return roStatus::ok;
}
roStatus _readName(String& outStr, roByte* buffer, roByte*& reader, const roByte* readerEnd)
{
if(reader >= readerEnd)
return roStatus::index_out_of_range;
outStr.clear();
roSize jumped = 0, offset = 0, count = 1;
roByte* orgReader = reader;
while(*reader) {
if(*reader >= 192) {
offset = (*reader) * 256 + *(reader + 1) - 49152; // 49152 = 11000000 00000000 ;)
reader = buffer + offset - 1;
jumped = 1; // We have jumped to another location so counting wont go up!
}
else {
roStatus st = outStr.append(*reader);
if(!st) return st;
}
++reader;
if(reader >= readerEnd)
return roStatus::index_out_of_range;
if(jumped == 0)
++count; // If we haven't jumped to another location then we can count up
}
if(jumped == 1)
++count; //number of steps we actually moved forward in the packet
reader = orgReader + count;
return _fromDnsNameFormat(outStr);
}
struct DNSResolver
{
DNSResolver() : isInited(false) {}
roStatus init();
SockAddr getDNSAddr();
bool getCachedAddr(const char* host, SockAddr& addr);
roStatus resolve(const roUtf8* hostname, roUint32& ip, float timeout=5.f);
bool isInited;
roUint8 logLevel;
RecursiveMutex mutex;
TinyArray<SockAddr, 8> addresses;
#if roOS_WIN
roStatus _initFunction();
roStatus _getDnsServers();
typedef struct _DNS_CACHE_ENTRY {
struct _DNS_CACHE_ENTRY* pNext; // Pointer to next entry
PWSTR pszName; // DNS Record Name
roUint16 wType; // DNS Record Type
roUint16 wDataLength; // Not referenced
roUint32 dwFlags; // DNS Record Flags
} DNSCACHEENTRY, *PDNSCACHEENTRY;
typedef int(WINAPI *DnsGetCacheDataTable)(PDNSCACHEENTRY*);
DnsGetCacheDataTable _dnsGetCacheDataTable;
#endif
}; // DNSResolver
#if roOS_WIN
bool DNSResolver::getCachedAddr(const char* host, SockAddr& addr)
{
if(!isInited && !init())
return false;
#if 1
// NOTE: Seems DNS_QUERY_NO_WIRE_QUERY didn't work correctly, it always fail
return false;
// Reference:
// http://venom630.free.fr/geo/autre_chose/cachedns.html
// http://stackoverflow.com/questions/7998176/retrieving-whats-in-the-dns-cache
PDNSCACHEENTRY entry;
if(!_dnsGetCacheDataTable || _dnsGetCacheDataTable(&entry) != TRUE)
return false;
Array<roUint16> wstr;
{ roSize len = 0;
if(!roUtf8ToUtf16(NULL, len, host, roSize(-1))) return false;
if(!wstr.resize(len+1)) return false;
if(!roUtf8ToUtf16(wstr.typedPtr(), len, host, roSize(-1))) return false;
wstr[len] = 0;
}
for(; entry; entry = entry->pNext) {
if(wcsicmp(entry->pszName, wstr.bytePtr()) != 0)
continue;
PDNS_RECORD pDnsRecord = NULL;
DNS_STATUS status = DnsQuery_W(
entry->pszName,
DNS_TYPE_ANY, // Type of the record to be queried.
DNS_QUERY_NO_WIRE_QUERY, // We want cached value only
NULL, // Contains DNS server IP address.
&pDnsRecord, // Resource record that contains the response.
NULL); // Reserved for future use.
if(status != S_OK || !pDnsRecord)
return false;
addr.setIp(ntohl(pDnsRecord->Data.A.IpAddress));
DnsRecordListFree(pDnsRecord, DnsFreeRecordListDeep);
break;
}
#else
// Reference: http://support.microsoft.com/kb/831226
PDNS_RECORD pDnsRecord = NULL;
DNS_STATUS status = DnsQuery_UTF8(
host,
DNS_TYPE_A, // Type of the record to be queried.
DNS_QUERY_NO_WIRE_QUERY, // We want cached value only
NULL, // Contains DNS server IP address.
&pDnsRecord, // Resource record that contains the response.
NULL); // Reserved for future use.
if(status != 0)
return false;
roUint32 addVal = pDnsRecord->Data.A.IpAddress;
addVal = ntohl(addVal);
addr.setIp(addVal);
String str;
addr.asString(str);
DnsRecordListFree(pDnsRecord, DnsFreeRecordListDeep);
#endif
if(logLevel > 0) {
String str;
addr.asString(str);
roLog("info", "DNS cache found for %s, ip:%s\n", host, str.c_str());
}
return true;
}
roStatus DNSResolver::_initFunction()
{
HINSTANCE hLib = ::LoadLibraryA("DNSAPI.dll");
if(!hLib) return roStatus::pointer_is_null;
_dnsGetCacheDataTable = (DnsGetCacheDataTable)GetProcAddress(hLib, "DnsGetCacheDataTable");
if(!_dnsGetCacheDataTable) return roStatus::pointer_is_null;
// Linking with dnsapi.lib means we need not to free hLib
// ::FreeLibrary(hLib);
return roStatus::ok;
}
roStatus DNSResolver::_getDnsServers()
{
roStatus st;
GUID guid = SVCID_NAMESERVER_UDP;
WSAQUERYSETA qs = { 0 };
qs.dwSize = sizeof(WSAQUERYSETA);
qs.dwNameSpace = NS_DNS;
qs.lpServiceClassId = &guid;
HANDLE hLookup;
int ret = WSALookupServiceBeginA(&qs, LUP_RETURN_NAME|LUP_RETURN_ADDR, &hLookup);
if(ret == SOCKET_ERROR) return st;
// Loop through the services
ByteArray buf;
DWORD bufLen = num_cast<DWORD>(buf.size());
while(true) {
ret = WSALookupServiceNextA(hLookup, LUP_RETURN_NAME|LUP_RETURN_ADDR, &bufLen, (WSAQUERYSETA*)buf.bytePtr());
if(ret == SOCKET_ERROR) {
// Buffer too small?
if(WSAGetLastError() == WSAEFAULT) {
st = buf.resizeNoInit(bufLen);
if(!st) return st;
continue;
}
break;
}
WSAQUERYSET* pqs = (LPWSAQUERYSET)buf.bytePtr();
CSADDR_INFO* pcsa = pqs->lpcsaBuffer;
// Loop through the CSADDR_INFO array
for(roSize i=0; i<pqs->dwNumberOfCsAddrs; ++i, ++pcsa) {
SockAddr addr(*pcsa->RemoteAddr.lpSockaddr);
addresses.pushBack(addr);
}
}
return roStatus::ok;
}
#endif
roStatus DNSResolver::init()
{
logLevel = 1;
ScopeRecursiveLock lock(mutex);
addresses.clear();
#if roOS_WIN
roStatus st;
st = _initFunction();
if(!st) return st;
st = _getDnsServers();
if(!st) return st;
#endif
{ // Use the open DNS servers as last resort
SockAddr addr;
if(addr.parse("208.67.222.220:53"))
addresses.pushBack(addr);
if(addr.parse("208.67.222.222:53"))
addresses.pushBack(addr);
}
if(logLevel > 0) {
roLog("info", "DNS server list:\n");
for(roSize i=0; i<addresses.size(); ++i) {
String str;
addresses[i].asString(str);
roLog("\t", "%s\n", str.c_str());
}
}
isInited = true;
return roStatus::ok;
}
SockAddr DNSResolver::getDNSAddr()
{
ScopeRecursiveLock lock(mutex);
if(!isInited)
roVerify(init());
// TODO: Instead of random, give higher priority to whom having less latency
roSize index = roRandBeginEnd<roSize>(0, addresses.size());
return addresses[index];
}
roStatus DNSResolver::resolve(const roUtf8* hostname_, roUint32& ip, float timeout)
{
String hostname = hostname_;
SockAddr addr;
if(getCachedAddr(hostname.c_str(), addr))
return roStatus::ok;
roStatus st;
CoSocket socket;
st = socket.create(BsdSocket::UDP);
if(!st) return st;
ByteArray sendBuf;
sendBuf.reserve(_dnsUdpPacketSize);
ByteArray buf;
buf.reserve(_dnsUdpPacketSize);
const roUint16 randomKey = roRandBeginEnd<roUint16>(0, ro::TypeOf<roUint16>::valueMax());
{ // Prepare request
DnsHeader dnsHeader;
roMemZeroStruct(dnsHeader);
dnsHeader.id = htons(randomKey);
dnsHeader.qr = 0; // This is a query
dnsHeader.opcode = 0; // This is a standard query
dnsHeader.aa = 0; // Not Authoritative
dnsHeader.tc = 0; // This message is not truncated
dnsHeader.rd = 1; // Recursion Desired
dnsHeader.ra = 0; // Recursion not available
dnsHeader.q_count = htons(1); //we have only 1 question
st = _changetoDnsNameFormat(hostname);
if(!st) return st;
Question question;
question.qtype = htons(1); // We are requesting the ipv4 address
question.qclass = htons(1); // Its internet
sendBuf.resize(sizeof(DnsHeader) + hostname.size() + sizeof(Question));
roMemcpy(sendBuf.bytePtr(), &dnsHeader, sizeof(DnsHeader));
roMemcpy(sendBuf.bytePtr() + sizeof(DnsHeader), hostname.c_str(), hostname.size());
roMemcpy(sendBuf.bytePtr() + sizeof(DnsHeader) + hostname.size(), &question, sizeof(Question));
}
// Keep try sending request until timeout given something only minor failed
CountDownTimer timer(timeout);
DnsHeader* dnsHeader = NULL;
roSize recvLen = 0;
while(timeout == 0 || !timer.isExpired()) {
SockAddr addr = getDNSAddr();
if(logLevel > 0) {
String str;
addr.asString(str);
roLog("info", "Sending request (%u) to DNS server %s to resolve %s\n", randomKey, str.c_str(), hostname_);
}
// Send request
st = socket.sendTo(sendBuf.bytePtr(), sendBuf.sizeInByte(), addr);
if(!st) return st;
// Receive answer
buf.resizeNoInit(_dnsUdpPacketSize);
recvLen = buf.sizeInByte();
st = socket.receiveFrom(buf.bytePtr(), recvLen, addr, 0.5f);
if(st == roStatus::timed_out)
continue;
if(!st)
return st;
dnsHeader = buf.castedPtr<DnsHeader>();
dnsHeader->id = ntohs(dnsHeader->id);
dnsHeader->q_count = ntohs(dnsHeader->q_count);
dnsHeader->ans_count = ntohs(dnsHeader->ans_count);
dnsHeader->auth_count = ntohs(dnsHeader->auth_count);
dnsHeader->add_count = ntohs(dnsHeader->add_count);
if(dnsHeader->id != randomKey)
continue;
break;
}
if(timeout > 0 && timer.isExpired())
return roStatus::timed_out;
if(dnsHeader->qr != 1)
return roStatus::data_corrupted;
// TODO: Deal with truncated case, retry with TCP
// if(dnsHeader->tc) // If truncated
// return roStatus::data_corrupted;
if(dnsHeader->ans_count == 0)
return roStatus::net_resolve_host_fail;
Array<ResourceRecord> answers;
st = answers.resize(dnsHeader->ans_count);
if(!st) return st;
roByte* reader = buf.bytePtr() + sizeof(DnsHeader) + hostname.size() + sizeof(Question);
roByte* readerEnd = buf.bytePtr() + recvLen;
if(logLevel > 0)
roLog("info", "Reading DNS response (%u)\n", randomKey);
// Reading answers
// TODO: Use data stream to simplify the buffer bounds checking
for(roSize i=0; i<dnsHeader->ans_count; ++i)
{
st = _readName(answers[i].name, buf.bytePtr(), reader, readerEnd);
if(!st) return st;
answers[i].resource = reinterpret_cast<ResponseData*>(reader);
reader += sizeof(ResponseData);
ResponseData& rdata = *answers[i].resource;
rdata.type = ntohs(rdata.type);
rdata._class = ntohs(rdata._class);
rdata.ttl = ntohl(rdata.ttl);
rdata.data_len = ntohs(rdata.data_len);
struct sockaddr_in a;
switch(rdata.type) {
case T_A: // If its an ipv4 address
answers[i].rdata.resize(rdata.data_len);
roMemcpy(answers[i].rdata.c_str(), reader, rdata.data_len);
reader += rdata.data_len;
a.sin_addr.s_addr = *(roUint32*)answers[i].rdata.c_str(); // Working without ntohl
if(logLevel > 0)
roLog("\t", "%s %s\n", answers[i].name.c_str(), inet_ntoa(a.sin_addr));
break;
case T_MX:
default:
st = _readName(answers[i].rdata, buf.bytePtr(), reader, readerEnd);
if(!st) return st;
break;
}
}
return roStatus::ok;
}
static DNSResolver _dnsResolver;
} // namespace
roStatus roGetHostByName(const roUtf8* hostname, roUint32& ip, float timeout)
{
return ro::_dnsResolver.resolve(hostname, ip, timeout);
}
| [
"ricky@localhost"
] | ricky@localhost |
8e7d1a2077f43d8acd858876508de4ddbafb9cca | 536656cd89e4fa3a92b5dcab28657d60d1d244bd | /extensions/browser/content_verifier_io_data.h | 2a49c04f32155b7d59d9157b56f16e43095e70d3 | [
"BSD-3-Clause"
] | permissive | ECS-251-W2020/chromium | 79caebf50443f297557d9510620bf8d44a68399a | ac814e85cb870a6b569e184c7a60a70ff3cb19f9 | refs/heads/master | 2022-08-19T17:42:46.887573 | 2020-03-18T06:08:44 | 2020-03-18T06:08:44 | 248,141,336 | 7 | 8 | BSD-3-Clause | 2022-07-06T20:32:48 | 2020-03-18T04:52:18 | null | UTF-8 | C++ | false | false | 2,013 | h | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXTENSIONS_BROWSER_CONTENT_VERIFIER_IO_DATA_H_
#define EXTENSIONS_BROWSER_CONTENT_VERIFIER_IO_DATA_H_
#include <map>
#include <memory>
#include <set>
#include <string>
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/version.h"
#include "extensions/browser/content_verifier_delegate.h"
namespace extensions {
// A helper class for keeping track of data for the ContentVerifier that should
// only be accessed on the IO thread.
class ContentVerifierIOData {
public:
struct ExtensionData {
// Set of images file paths used within the browser process.
std::unique_ptr<std::set<base::FilePath>> browser_image_paths;
// Set of file paths used as background scripts, pages or content scripts.
std::unique_ptr<std::set<base::FilePath>> background_or_content_paths;
base::Version version;
ContentVerifierDelegate::VerifierSourceType source_type;
ExtensionData(
std::unique_ptr<std::set<base::FilePath>> browser_image_paths,
std::unique_ptr<std::set<base::FilePath>> background_or_content_paths,
const base::Version& version,
ContentVerifierDelegate::VerifierSourceType source_type);
~ExtensionData();
};
ContentVerifierIOData();
~ContentVerifierIOData();
void AddData(const std::string& extension_id,
std::unique_ptr<ExtensionData> data);
void RemoveData(const std::string& extension_id);
void Clear();
// This should be called on the IO thread, and the return value should not
// be retained or used on other threads.
const ExtensionData* GetData(const std::string& extension_id);
private:
std::map<std::string, std::unique_ptr<ExtensionData>> data_map_;
DISALLOW_COPY_AND_ASSIGN(ContentVerifierIOData);
};
} // namespace extensions
#endif // EXTENSIONS_BROWSER_CONTENT_VERIFIER_IO_DATA_H_
| [
"pcding@ucdavis.edu"
] | pcding@ucdavis.edu |
56f584d3dec780a644a9a2a9ef29d61b33f5a79d | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/DashboardErrorType.h | e8f63060e26b0e3d58088efe4483c7e7c8a9ce74 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 936 | h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/quicksight/QuickSight_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace QuickSight
{
namespace Model
{
enum class DashboardErrorType
{
NOT_SET,
ACCESS_DENIED,
SOURCE_NOT_FOUND,
DATA_SET_NOT_FOUND,
INTERNAL_FAILURE,
PARAMETER_VALUE_INCOMPATIBLE,
PARAMETER_TYPE_INVALID,
PARAMETER_NOT_FOUND,
COLUMN_TYPE_MISMATCH,
COLUMN_GEOGRAPHIC_ROLE_MISMATCH,
COLUMN_REPLACEMENT_MISSING
};
namespace DashboardErrorTypeMapper
{
AWS_QUICKSIGHT_API DashboardErrorType GetDashboardErrorTypeForName(const Aws::String& name);
AWS_QUICKSIGHT_API Aws::String GetNameForDashboardErrorType(DashboardErrorType value);
} // namespace DashboardErrorTypeMapper
} // namespace Model
} // namespace QuickSight
} // namespace Aws
| [
"sdavtaker@users.noreply.github.com"
] | sdavtaker@users.noreply.github.com |
94b8b9ca246c49432efd8ad22e726ef360088ee6 | ee13539461e0c0518b0a00ae665659af0b38c633 | /排序算法/minHeapSort.cpp | 4081c63f94e79e35578e2daaf43c3bac4d4eb3c8 | [] | no_license | wujr5/DataStructure | 9a159c7864dc1b11962b8a7443859b85aacac567 | 7c23dbab40c1a4441851443590d78d623a4eaa1f | refs/heads/master | 2021-01-20T10:41:56.431111 | 2015-04-21T02:18:34 | 2015-04-21T02:18:34 | 34,298,095 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,218 | cpp | #include<iostream>
using namespace std;
// 新加入i结点 其父结点为(i - 1) / 2
void MinHeapFixup(int a[], int i) {
int j, temp;
temp = a[i];
j = (i - 1) / 2; //父结点
while (j >= 0 && i != 0) {
if (a[j] <= temp)
break;
a[i] = a[j]; //把较大的子结点往下移动,替换它的子结点
i = j;
j = (i - 1) / 2;
}
a[i] = temp;
}
/*更简短的表达为:
void MinHeapFixup(int a[], int i) {
for (int j = (i - 1) / 2; (j >= 0 && i != 0) && a[i] > a[j]; i = j, j = (i - 1) / 2)
Swap(a[i], a[j]);
}
*/
//在最小堆中加入新的数据nNum
void MinHeapAddNumber(int a[], int n, int nNum) {
a[n] = nNum;
MinHeapFixup(a, n);
}
// 从i节点开始调整,n为节点总数 从0开始计算 i节点的子节点为 2*i+1, 2*i+2
void MinHeapFixdown(int a[], int i, int n) {
int j, temp;
temp = a[i];
j = 2 * i + 1;
while (j < n) {
if (j + 1 < n && a[j + 1] < a[j]) //在左右孩子中找最小的
j++;
if (a[j] >= temp)
break;
a[i] = a[j]; //把较小的子结点往上移动,替换它的父结点
i = j;
j = 2 * i + 1;
}
a[i] = temp;
}
//在最小堆中删除数
void MinHeapDeleteNumber(int a[], int n) {
Swap(a[0], a[n - 1]);
MinHeapFixdown(a, 0, n - 1);
}
//建立最小堆
void MakeMinHeap(int a[], int n) {
for (int i = n / 2 - 1; i >= 0; i--)
MinHeapFixdown(a, i, n);
}
void MinheapsortTodescendarray(int a[], int n) {
for (int i = n - 1; i >= 1; i--) {
Swap(a[i], a[0]);
MinHeapFixdown(a, 0, i);
}
}
void print_array(int *a, int n) {
for (int i = 0; i < n; i++) {
cout << a[i] << " ";
}
cout << endl;
}
int main() {
int a[200];
int n;
cout << "input the number of the array: ";
while (cin >> n) {
cout << "input " << n << " numbers: " << endl;
for (int i = 0; i < n; i++) {
int tem;
cin >> tem;
a[i] = tem;
}
mergeSort(a, n);
cout << "array after sort: " << endl;
print_array(a, n);
cout << "input the number of the array: ";
}
return 0;
}
| [
"973430584@qq.com"
] | 973430584@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.