<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "infosPerso.h"
#include <QLayout>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow) , currentWidget(new QWidget(this)){
    ui->setupUi(this);
    ui->centralWidget->layout()->addWidget(currentWidget);
    QObject::connect(ui->actionInfos_Perso, SIGNAL(triggered(bool)), this, SLOT(on_infosPerso_triggered()));
}

void MainWindow::on_infosPerso_triggered () {
    if (this->currentWidget != nullptr)
        delete this->currentWidget;
    this->currentWidget = new InfosPerso();
    this->ui->centralWidget->layout()->addWidget(currentWidget);
}

MainWindow::~MainWindow() {
    delete ui;
}
<commit_msg>infos perso 2<commit_after>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "infosPerso.h"
#include <QSqlError>
#include <QSqlDriver>
#include <QtCore/QtCore>
#include <QLayout>
#include <QStackedLayout>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow){
    ui->setupUi(this);
    ui->centralWidget->setLayout(new QStackedLayout());

    this->currentWidget = new QWidget(this);

    ui->centralWidget->layout()->addWidget(currentWidget);
    QObject::connect(ui->actionInfos_Perso, SIGNAL(triggered(bool)), this, SLOT(on_infosPerso_triggered()));
}

void MainWindow::on_infosPerso_triggered () {
    if (this->currentWidget != nullptr)
        delete this->currentWidget;
    this->currentWidget = new InfosPerso();
    this->ui->centralWidget->layout()->addWidget(currentWidget);
}

MainWindow::~MainWindow() {
    delete ui;
}

{'fraction_non_alphanumeric': 0.15570719602977667, 'fraction_numerical': 0.0006203473945409429, 'mean_word_length': 5.6652892561983474, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 36, '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': '65246', 'n_tokens_mistral': 545, 'n_tokens_neox': 536, 'n_words': 83}