<commit_before>#include "lab1_widget.hxx"
#include <QFileDialog>
#include <QString>
#include <QFile>
#include <QDebug>
#include <QTextStream>
#include <QProcess>
#include <QMessageBox>

#include <cassert>

Lab1_Widget::Lab1_Widget(QWidget *parent) :
    QWidget(parent),
    main_layout(    new QVBoxLayout(this)),
    buttons_layout( new QHBoxLayout(nullptr)),
    input_button(   new QPushButton(trUtf8("View input"), this)),
    output_button(  new QPushButton(trUtf8("View output"), this)),
    label(          new QLabel(this)),
    open_button(    new QPushButton(trUtf8("Open file"), this))
{
    input_button->setEnabled(false);
    output_button->setEnabled(false);

    buttons_layout->addWidget(input_button);
    buttons_layout->addWidget(output_button);

    main_layout->addLayout(buttons_layout);
    main_layout->addWidget(label);
    main_layout->addWidget(open_button);

    connect(open_button,   SIGNAL(clicked()), this, SLOT(open_and_solve()));
    connect(input_button,  SIGNAL(clicked()), this, SLOT(view_input()));
    connect(output_button, SIGNAL(clicked()), this, SLOT(view_output()));

    if (!prepare_script())
        close();
}

Lab1_Widget::~Lab1_Widget()
{<commit_msg>+minimum size for lab1<commit_after>#include "lab1_widget.hxx"
#include <QFileDialog>
#include <QString>
#include <QFile>
#include <QDebug>
#include <QTextStream>
#include <QProcess>
#include <QMessageBox>
#include <QSize>

#include <cassert>

Lab1_Widget::Lab1_Widget(QWidget *parent) :
    QWidget(parent),
    main_layout(    new QVBoxLayout(this)),
    buttons_layout( new QHBoxLayout(nullptr)),
    input_button(   new QPushButton(trUtf8("View input"), this)),
    output_button(  new QPushButton(trUtf8("View output"), this)),
    label(          new QLabel(this)),
    open_button(    new QPushButton(trUtf8("Open file"), this))
{
    input_button->setEnabled(false);
    output_button->setEnabled(false);

    buttons_layout->addWidget(input_button);
    buttons_layout->addWidget(output_button);

    main_layout->addLayout(buttons_layout);
    main_layout->addWidget(label);
    main_layout->addWidget(open_button);

    connect(open_button,   SIGNAL(clicked()), this, SLOT(open_and_solve()));
    connect(input_button,  SIGNAL(clicked()), this, SLOT(view_input()));
    connect(output_button, SIGNAL(clicked()), this, SLOT(view_output()));

    setMinimumSize(QSize(418, 198));

    if (!prepare_script())
        close();
}

Lab1_Widget::~Lab1_Widget()
{
{'fraction_non_alphanumeric': 0.14748784440842788, 'fraction_numerical': 0.009319286871961102, 'mean_word_length': 5.37984496124031, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 34, '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': '2600794', 'n_tokens_mistral': 854, 'n_tokens_neox': 827, 'n_words': 143}