<commit_before>#include "CCsegtoolguiwindow.h"

/********************************************************************************* 
 * Constructor
 ********************************************************************************/
CCsegtoolguiwindow::CCsegtoolguiwindow(float scalefactor, bool Debug, QWidget * parent , Qt::WFlags f  ): QMainWindow(parent, f)
{
	setupUi(this);
	
	this->setMouseTracking(true);
	
	/* set the main layout */
	/* ScrollArea */
	QScrollArea *const scroll(new QScrollArea);
	centralwidget->setLayout(GLayoutPrincipal);
	scroll->setWidget(centralwidget);
	setCentralWidget(scroll);
	
	/* set the Debug */
	m_Debug = Debug;
	if(Debug)
		debug->setCheckState(Qt::Checked);
	
	/* MessageBox */
	m_information = new QMessageBox(this);
	m_information->setWindowTitle("Help");
	/* Pixmap for the output image */
	m_outputimage= new QPixmap();
	/* Saveimage disable */
	actionSaveimage->setEnabled(false);
	
	/* Change display : size of texts */
	title->setFont(QFont("Courrier", 20,4));
	Paramtitle->setFont(QFont("Courrier", 14,4));
	pathforinputitle->setFont(QFont("Courrier", 14,4));
	CCinittile->setFont(QFont("Courrier", 14,4));
	instructionstitle->setFont(QFont("Courrier", 12,4));
	Initparamframetitle->setFont(QFont("Courrier", 12,4));
	pixeltitle->setFont(QFont("Courrier", 12,4));
	GOFmeantitle->setFont(QFont("Courrier", 12,4));
	Areatitle->setFont(QFont("Courrier", 12,4));
	IsolineLabel->setFont(QFont("Courrier", 12,4));
	visuflip->setFont(QFont("Courrier", 12,4));
	
	/* Initialization of the parameters */
	m_OldInputImage = "";
	m_old_permute_x_y=false;
	m_oldreflectX = false;
	m_oldreflectY = false;
	m_Scrollexist = false;
	m_scaleFactor = 1.0;
	m_oldfilename = "";
	// Parameters 
	m_last_parameters = NULL;
	// Imageview
	m_viewimage = NULL;
	//preview by default
	m_scalefactor = scalefactor;
	m_runcalled = false;
	
	/*connection of slots*/
	//Run
	connect(this->Run, SIGNAL(clicked()), this, SLOT(running()));
	
	//Continue
	connect(this->initialization, SIGNAL(clicked()), this, SLOT(InitPreview()));
	<commit_msg>BUG : display size correction<commit_after>#include "CCsegtoolguiwindow.h"

/********************************************************************************* 
 * Constructor
 ********************************************************************************/
CCsegtoolguiwindow::CCsegtoolguiwindow(float scalefactor, bool Debug, QWidget * parent , Qt::WFlags f  ): QMainWindow(parent, f)
{
	setupUi(this);
	
	this->setMouseTracking(true);
	
	/* set the main layout */
	/* ScrollArea */
	QScrollArea *const scroll(new QScrollArea);
	centralwidget->setLayout(GLayoutPrincipal);
	scroll->setWidget(centralwidget);
	setCentralWidget(scroll);
	
	/* set the Debug */
	m_Debug = Debug;
	if(Debug)
		debug->setCheckState(Qt::Checked);
	
	/* MessageBox */
	m_information = new QMessageBox(this);
	m_information->setWindowTitle("Help");
	/* Pixmap for the output image */
	m_outputimage= new QPixmap();
	/* Saveimage disable */
	actionSaveimage->setEnabled(false);
	
	/* Change display : size of texts */
	title->setFont(QFont("Courrier", 20,4));
	Paramtitle->setFont(QFont("Courrier", 14,4));
	pathforinputitle->setFont(QFont("Courrier", 14,4));
	CCinittile->setFont(QFont("Courrier", 14,4));
	instructionstitle->setFont(QFont("Courrier", 12,4));
	Initparamframetitle->setFont(QFont("Courrier", 12,4));
	pixeltitle->setFont(QFont("Courrier", 12,4));
	GOFmeantitle->setFont(QFont("Courrier", 12,4));
	Areatitle->setFont(QFont("Courrier", 12,4));
	IsolineLabel->setFont(QFont("Courrier", 12,4));
	visuflip->setFont(QFont("Courrier", 11,4));
	
	/* Initialization of the parameters */
	m_OldInputImage = "";
	m_old_permute_x_y=false;
	m_oldreflectX = false;
	m_oldreflectY = false;
	m_Scrollexist = false;
	m_scaleFactor = 1.0;
	m_oldfilename = "";
	// Parameters 
	m_last_parameters = NULL;
	// Imageview
	m_viewimage = NULL;
	//preview by default
	m_scalefactor = scalefactor;
	m_runcalled = false;
	
	/*connection of slots*/
	//Run
	connect(this->Run, SIGNAL(clicked()), this, SLOT(running()));
	
	//Continue
	connect(this->initialization, SIGNAL(clicked()), this, SLOT(InitPreview()));
	
{'fraction_non_alphanumeric': 0.22692121797970033, 'fraction_numerical': 0.016916384726921217, 'mean_word_length': 6.223385689354275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 41, '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': '3922498', 'n_tokens_mistral': 1505, 'n_tokens_neox': 1383, 'n_words': 239}