<commit_before>#include "configuration.h"
#include "AboutDialog.h"
#include "ui_AboutDialog.h"

#define define2string_p(x) #x
#define define2string(x) define2string_p(x)

AboutDialog::AboutDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AboutDialog)
{
    ui->setupUi(this);
    connect(ui->okButton, SIGNAL(clicked()), this, SLOT(accept()));

    ui->appnameLabel->setText(tr("%1 %2").arg(QGC_APPLICATION_NAME).arg(QGC_APPLICATION_VERSION));
    ui->versionLabel->setText(tr("(%1-%2)").arg(define2string(GIT_HASH))
                               .arg(define2string(GIT_COMMIT)));
}

AboutDialog::~AboutDialog()
{
    delete ui;
}<commit_msg>Shorten SHA in About Box to 8 characters<commit_after>#include "configuration.h"
#include "AboutDialog.h"
#include "ui_AboutDialog.h"

#define define2string_p(x) #x
#define define2string(x) define2string_p(x)

AboutDialog::AboutDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AboutDialog)
{
    ui->setupUi(this);
    connect(ui->okButton, SIGNAL(clicked()), this, SLOT(accept()));

    ui->appnameLabel->setText(tr("%1 %2").arg(QGC_APPLICATION_NAME).arg(QGC_APPLICATION_VERSION));
    QString hash = QString(define2string(GIT_HASH));
    hash.truncate(8);
    ui->versionLabel->setText(tr("(%1-%2)").arg(hash)
                               .arg(define2string(GIT_COMMIT)));
}

AboutDialog::~AboutDialog()
{
    delete ui;
}
{'fraction_non_alphanumeric': 0.16774193548387098, 'fraction_numerical': 0.014336917562724014, 'mean_word_length': 4.768595041322314, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '315954', 'n_tokens_mistral': 499, 'n_tokens_neox': 490, 'n_words': 69}