<commit_before>#include "gui.h"
#include <ctime>
#include <fstream>
#include <iostream>

#define MODE_ORIGINIAL_IMAGE "Original Image"
#define MODE_ETF "ETF"
#define MODE_ETF_DEBUG "ETF-debug"
#define MODE_CLD "Coherent Line Drawing"
#define MODE_ANTI_ALIASING "Anti-Aliasing"

bool MyApp::OnInit() {
	MyFrame *frame = new MyFrame("Coherent Line Drawing | SSARCandy", wxPoint(50, 50), wxSize(1000, 730));
	//frame->Maximize(true);
	frame->Show(true);

	return true;
}

#pragma region MyFrame
MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
	: wxFrame(NULL, wxID_ANY, title, pos, size) {
	ETF_kernel = 5;
	ETF_iteration = 0;
	FDoG_iteration = 0;

#pragma region MenuBar
	wxMenu *menuFile = new wxMenu;
	menuFile->Append(ID_ONOPENSRC, "&Open SrcImg\tCtrl-O", "Open source image");

	menuFile->Append(ID_ONSAVE, "&Save\tCtrl-E", "Save Result");
	menuFile->AppendSeparator();

	menuFile->Append(wxID_EXIT);

	wxMenu *menuHelp = new wxMenu;
	menuHelp->Append(wxID_ABOUT, "&About", "About the System");
	menuHelp->Append(new wxMenuItem(menuHelp, wxID_TOGGLE_LOG, wxString(wxT("&Log\tCtrl-L")), "Show/Hide the Log", wxITEM_CHECK))->Check(true);

	wxMenuBar *menuBar = new wxMenuBar;
	menuBar->Append(menuFile, "&File");
	menuBar->Append(menuHelp, "&Help");
	SetMenuBar(menuBar);
	CreateStatusBar(3);
	SetStatusText("SrcImg: None", 0);
	SetStatusText("ETF: None", 1);
	SetStatusText("FDoG: None", 2);

#pragma endregion

#pragma region ToolBar: Buttons(Start, Fill Ink, Clean), Combobox(processingBox)
	wxToolBar *toolbar1 = CreateToolBar();
	start = new wxButton(toolbar1, BUTTON_Start, _T("Start"), wxDefaultPosition, wxSize(100, 20), 0);
	clean = new wxButton(toolbar1, BUTTON_Clean, _T("Clean"), wxDefaultPosition, wxSize(100, 20), 0);

	processingBox = new wxComboBox(toolbar1, COMBOBOX_Processing, MODE_ORIGINIAL_IMAGE, wxDefaultPosition, wxSize(200, 20), 0);
	processingBox->Append(MODE_ORIGINIAL_IMAGE);
	processingBox->Append(MODE_ETF);
	processingBox->Append(MODE_ETF_DEBUG);
	processingBox->Append(MODE_CLD);
	processingBox->Append(MODE_ANTI_ALIASING);


	toolbar1->AddControl(start);
	toolbar1->AddControl(clean);
	toolbar1->AddControl(processingBox);
<commit_msg>adjust button height<commit_after>#include "gui.h"
#include <ctime>
#include <fstream>
#include <iostream>

#define MODE_ORIGINIAL_IMAGE "Original Image"
#define MODE_ETF "ETF"
#define MODE_ETF_DEBUG "ETF-debug"
#define MODE_CLD "Coherent Line Drawing"
#define MODE_ANTI_ALIASING "Anti-Aliasing"

bool MyApp::OnInit() {
	MyFrame *frame = new MyFrame("Coherent Line Drawing | SSARCandy", wxPoint(50, 50), wxSize(1000, 730));
	//frame->Maximize(true);
	frame->Show(true);

	return true;
}

#pragma region MyFrame
MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
	: wxFrame(NULL, wxID_ANY, title, pos, size) {
	ETF_kernel = 5;
	ETF_iteration = 0;
	FDoG_iteration = 0;

#pragma region MenuBar
	wxMenu *menuFile = new wxMenu;
	menuFile->Append(ID_ONOPENSRC, "&Open SrcImg\tCtrl-O", "Open source image");

	menuFile->Append(ID_ONSAVE, "&Save\tCtrl-S", "Save Result");
	menuFile->AppendSeparator();

	menuFile->Append(wxID_EXIT);

	wxMenu *menuHelp = new wxMenu;
	menuHelp->Append(wxID_ABOUT, "&About", "About the System");
	menuHelp->Append(new wxMenuItem(menuHelp, wxID_TOGGLE_LOG, wxString(wxT("&Log\tCtrl-L")), "Show/Hide the Log", wxITEM_CHECK))->Check(true);

	wxMenuBar *menuBar = new wxMenuBar;
	menuBar->Append(menuFile, "&File");
	menuBar->Append(menuHelp, "&Help");
	SetMenuBar(menuBar);
	CreateStatusBar(3);
	SetStatusText("SrcImg: None", 0);
	SetStatusText("ETF: None", 1);
	SetStatusText("FDoG: None", 2);

#pragma endregion

#pragma region ToolBar: Buttons(Start, Fill Ink, Clean), Combobox(processingBox)
	wxToolBar *toolbar1 = CreateToolBar();
	start = new wxButton(toolbar1, BUTTON_Start, _T("Start"), wxDefaultPosition, wxSize(100, 30), 0);
	clean = new wxButton(toolbar1, BUTTON_Clean, _T("Clean"), wxDefaultPosition, wxSize(100, 30), 0);

	processingBox = new wxComboBox(toolbar1, COMBOBOX_Processing, MODE_ORIGINIAL_IMAGE, wxDefaultPosition, wxSize(200, 30), 0);
	processingBox->Append(MODE_ORIGINIAL_IMAGE);
	processingBox->Append(MODE_ETF);
	processingBox->Append(MODE_ETF_DEBUG);
	processingBox->Append(MODE_CLD);
	processingBox->Append(MODE_ANTI_ALIASING);


	toolbar1->AddControl(start);
	toolbar1->AddControl(clean);
	toolbar1->AddControl(processingBox);

{'fraction_non_alphanumeric': 0.14658497844338553, 'fraction_numerical': 0.01951440889493987, 'mean_word_length': 7.239252336448598, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5577441', 'n_tokens_mistral': 1703, 'n_tokens_neox': 1624, 'n_words': 340}