<commit_before>#include "main_window.hpp"
#include <QLabel>
#include <QPixmap>
#include <QWidget>
#include "AntWidget.hpp"
#include <QPainter>
#include <QGridLayout>
#include <QPushButton>
#include <QTimer>

main_window::main_window(QWidget *parent)
  : QMainWindow(parent), step(0), manager(21, 21, 2)
{
	ui.setupUi(this);
	QLabel *label1 = new QLabel("One");
	QLabel *label2 = new QLabel("Two");
	QLabel *label3 = new QLabel("Three");
	QLabel *label4 = new QLabel("Four");
	QPushButton *button = new QPushButton("step");
	timer = new QTimer(this);
	connect(timer, SIGNAL(timeout()), this, SLOT(nextStep()));
	ant = new AntWidget();

	QGridLayout *layout = new QGridLayout;
	layout->setRowStretch(1, 100);
	layout->addWidget(label1, 0, 0, Qt::AlignLeft);
	layout->addWidget(label2, 0, 2, Qt::AlignRight);
	layout->addWidget(label3, 2, 0, Qt::AlignLeft);
	layout->addWidget(label4, 2, 2, Qt::AlignRight);
	layout->addWidget(ant, 1, 0, 1, 3, Qt::AlignCenter);
	layout->addWidget(button, 3, 0, 1, 3, Qt::AlignCenter);

	connect(button, SIGNAL(clicked()), this, SLOT(nextStep()));

	using namespace antgui;

	gui = dynamic_cast<AntGuiQtImpl *>(IAntGui::getGUI(antgui::/*GuiType::*/Qt));
	if (gui)<commit_msg>ants number passing to Manager<commit_after>#include "main_window.hpp"
#include <QLabel>
#include <QPixmap>
#include <QWidget>
#include "AntWidget.hpp"
#include <QPainter>
#include <QGridLayout>
#include <QPushButton>
#include <QTimer>

main_window::main_window(QWidget *parent)
  : QMainWindow(parent), step(0), manager(21, 21, 2, 20)
{
	ui.setupUi(this);
	QLabel *label1 = new QLabel("One");
	QLabel *label2 = new QLabel("Two");
	QLabel *label3 = new QLabel("Three");
	QLabel *label4 = new QLabel("Four");
	QPushButton *button = new QPushButton("step");
	timer = new QTimer(this);
	connect(timer, SIGNAL(timeout()), this, SLOT(nextStep()));
	ant = new AntWidget();

	QGridLayout *layout = new QGridLayout;
	layout->setRowStretch(1, 100);
	layout->addWidget(label1, 0, 0, Qt::AlignLeft);
	layout->addWidget(label2, 0, 2, Qt::AlignRight);
	layout->addWidget(label3, 2, 0, Qt::AlignLeft);
	layout->addWidget(label4, 2, 2, Qt::AlignRight);
	layout->addWidget(ant, 1, 0, 1, 3, Qt::AlignCenter);
	layout->addWidget(button, 3, 0, 1, 3, Qt::AlignCenter);

	connect(button, SIGNAL(clicked()), this, SLOT(nextStep()));

	using namespace antgui;

	gui = dynamic_cast<AntGuiQtImpl *>(IAntGui::getGUI(antgui::/*GuiType::*/Qt));
	if (gui)
{'fraction_non_alphanumeric': 0.18058412176059235, 'fraction_numerical': 0.028794734677087618, 'mean_word_length': 6.84516129032258, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 33, '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': '5876325', 'n_tokens_mistral': 963, 'n_tokens_neox': 893, 'n_words': 208}