<commit_before>#include <stdio.h>
#include <bearparser.h>

#include <iostream>
#include <QString>
#include <QtCore/QCoreApplication>

#include "PECommander.h"

#define TITLE "BearCommander"

using namespace std;

QString getFileName()
{
    QTextStream qtin(stdin, QIODevice::ReadOnly);
    QString fName;

    int trials = 3;
    do {
        printf("Path to executable: ");
        fName = qtin.readLine();
        if (QFile::exists(fName)) break;

        fprintf(stderr, "No such file! Remaining attempts: %d\n", trials);
        trials--;

    } while (trials);

    return fName;
}

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

    ExeFactory::init();

    ExeCmdContext exeContext;
    PECommander commander(&exeContext);
<commit_msg>[REFACT][commander] Print info about parser version<commit_after>#include <stdio.h>
#include <bearparser.h>

#include <iostream>
#include <QString>
#include <QtCore/QCoreApplication>

#include "PECommander.h"

#define TITLE "BearCommander"

using namespace std;

QString getFileName()
{
    QTextStream qtin(stdin, QIODevice::ReadOnly);
    QString fName;

    int trials = 3;
    do {
        printf("Path to executable: ");
        fName = qtin.readLine();
        if (QFile::exists(fName)) break;

        fprintf(stderr, "No such file! Remaining attempts: %d\n", trials);
        trials--;

    } while (trials);

    return fName;
}

int main(int argc, char *argv[])
{
    printf("Bearparser version: %s\n", BEARPARSER_VERSION);
    QCoreApplication app(argc, argv);

    ExeFactory::init();
    ExeCmdContext exeContext;
    PECommander commander(&exeContext);

{'fraction_non_alphanumeric': 0.13133781307269396, 'fraction_numerical': 0.0012217470983506415, 'mean_word_length': 3.601123595505618, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3347871', 'n_tokens_mistral': 567, 'n_tokens_neox': 551, 'n_words': 135}