<commit_before>#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>

#include "qucrc_t.h"
#include "crc_calc_for_text.h"
#include "crc_calc_for_hex.h"



int main(int argc, char *argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QGuiApplication app(argc, argv);

    app.setApplicationDisplayName("CRC Calculator ver " +
                                  QString::number(MAJOR_VERSION) + '.' +
                                  QString::number(MINOR_VERSION));

    QuCRC_t uCRC;

    CRC_Calc_for_Text calc_text;
    CRC_Calc_for_Hex  calc_hex;

    calc_text.set_ucrc(&uCRC);
    calc_hex.set_ucrc(&uCRC);


    QQmlApplicationEngine engine;
    engine.rootContext()->setContextProperty("uCRC", &uCRC);
    engine.rootContext()->setContextProperty("calc_text", &calc_text);
    engine.rootContext()->setContextProperty("calc_hex", &calc_hex);


    engine.load(QUrl(QLatin1String("qrc:/qml/main.qml")));

    return app.exec();
}<commit_msg>add CRC_Result class to QML Type<commit_after>#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>

#include "qucrc_t.h"
#include "crc_calc_for_text.h"
#include "crc_calc_for_hex.h"



int main(int argc, char *argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QGuiApplication app(argc, argv);

    app.setApplicationDisplayName("CRC Calculator ver " +
                                  QString::number(MAJOR_VERSION) + '.' +
                                  QString::number(MINOR_VERSION));


    qmlRegisterType<CRC_Result>("ModuleName", 1, 0, "CRC_Result");


    QuCRC_t uCRC;

    CRC_Calc_for_Text calc_text;
    CRC_Calc_for_Hex  calc_hex;

    calc_text.set_ucrc(&uCRC);
    calc_hex.set_ucrc(&uCRC);


    QQmlApplicationEngine engine;
    engine.rootContext()->setContextProperty("uCRC", &uCRC);
    engine.rootContext()->setContextProperty("calc_text", &calc_text);
    engine.rootContext()->setContextProperty("calc_hex", &calc_hex);


    engine.load(QUrl(QLatin1String("qrc:/qml/main.qml")));

    return app.exec();
}
{'fraction_non_alphanumeric': 0.1309125656951744, 'fraction_numerical': 0.0019111323459149545, 'mean_word_length': 3.8584686774941996, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1719440', 'n_tokens_mistral': 747, 'n_tokens_neox': 699, 'n_words': 99}