<commit_before>#include <QCoreApplication>
#include <QtTest/QTest>
#include <QDebug>
#include "connectiontest.h"

bool success = true;

void runTest(QObject *test) {
    int retVal = QTest::qExec(test);
    delete test;
    success &= retVal == 0;
}

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    runTest(new ConnectionTest());

    if (success)
        qDebug() << "SUCCESS";
    else
        qDebug() << "FAIL";

    return success;
}<commit_msg>Tests to run can be specified in command line<commit_after>#include <QCoreApplication>
#include <QtTest/QTest>
#include <QDebug>
#include "connectiontest.h"

bool success = true;

static void runTest(QObject *test, int argc, char** argv) {
    int retVal = QTest::qExec(test, argc, argv);
    delete test;
    success &= retVal == 0;
}

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    runTest(new ConnectionTest(), argc, argv);

    if (success)
        qDebug() << "SUCCESS";
    else
        qDebug() << "FAIL";

    return success;
}
{'fraction_non_alphanumeric': 0.1420345489443378, 'fraction_numerical': 0.0019193857965451055, 'mean_word_length': 3.534782608695652, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 9, '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': '4388635', 'n_tokens_mistral': 349, 'n_tokens_neox': 341, 'n_words': 99}