<commit_before>#include "main_window.hpp"

#include <QApplication>
#include <iostream>

using namespace std;
using namespace datavis;

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

    auto args = app.arguments();

    QString file_path;

    if (args.size() > 1)
    {
        file_path = args[1];
    }

    auto main_win = new MainWindow;
    main_win->resize(400,500);
    main_win->move(50,50);

    if (!file_path.isEmpty())
    {
        main_win->openFile(file_path);
    }

    main_win->show();

    int status = app.exec();

    delete main_win;

    return status;
}<commit_msg>Improve default size of main window<commit_after>#include "main_window.hpp"

#include <QApplication>
#include <iostream>

using namespace std;
using namespace datavis;

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

    auto args = app.arguments();

    QString file_path;

    if (args.size() > 1)
    {
        file_path = args[1];
    }

    auto main_win = new MainWindow;

    {
        auto fm = main_win->fontMetrics();
        main_win->resize(fm.averageCharWidth() * 50, fm.height() * 30);
        main_win->move(50,50);
    }

    if (!file_path.isEmpty())
    {
        main_win->openFile(file_path);
    }

    main_win->show();

    int status = app.exec();

    delete main_win;

    return status;
}
{'fraction_non_alphanumeric': 0.13619541080680977, 'fraction_numerical': 0.01628423390081421, 'mean_word_length': 2.7451523545706373, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 18, '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': '3542640', 'n_tokens_mistral': 486, 'n_tokens_neox': 451, 'n_words': 105}