<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"

#include "InstrumentPanel.h"
#include "DevicePanel.h"

// ------------------------------------------------------------------------------------------------
MainWindow::MainWindow(QWidget *parent)
	: QMainWindow(parent)
	, ui(new Ui::MainWindow)
{
	ui->setupUi(this);

	QList<QWidget*> widgets;

	auto *devicePanel = new DevicePanel();
	widgets.append(devicePanel);
	ui->tabWidget->addTab(devicePanel, tr("Devices"));

	auto *instrumentPanel = new InstrumentPanel();
	widgets.append(instrumentPanel);
	ui->tabWidget->addTab(instrumentPanel, tr("Instruments"));

	for (QWidget *& widget: widgets)
	{
		if (widget == devicePanel) continue;

		connect(devicePanel, SIGNAL(inputChanged(MIDIInput*)), widget, SLOT(setInputDevice(MIDIInput*)));
		connect(devicePanel, SIGNAL(outputChanged(MIDIOutput*)), widget, SLOT(setOutputDevice(MIDIOutput*)));
	}
}

// ------------------------------------------------------------------------------------------------
MainWindow::~MainWindow()
{
	delete ui;
}<commit_msg>less silly collecting of main window tabs<commit_after>#include "mainwindow.h"
#include "ui_mainwindow.h"

#include "InstrumentPanel.h"
#include "DevicePanel.h"

// ------------------------------------------------------------------------------------------------
MainWindow::MainWindow(QWidget *parent)
	: QMainWindow(parent)
	, ui(new Ui::MainWindow)
{
	ui->setupUi(this);

	QList<QWidget*> widgets;

	auto *devicePanel = new DevicePanel();
	ui->tabWidget->addTab(devicePanel, tr("Devices"));

	auto *instrumentPanel = new InstrumentPanel();
	widgets.append(instrumentPanel);
	ui->tabWidget->addTab(instrumentPanel, tr("Instruments"));

	for (QWidget *& widget: widgets)
	{
		connect(devicePanel, SIGNAL(inputChanged(MIDIInput*)), widget, SLOT(setInputDevice(MIDIInput*)));
		connect(devicePanel, SIGNAL(outputChanged(MIDIOutput*)), widget, SLOT(setOutputDevice(MIDIOutput*)));
	}
}

// ------------------------------------------------------------------------------------------------
MainWindow::~MainWindow()
{
	delete ui;
}
{'fraction_non_alphanumeric': 0.3140535372848948, 'fraction_numerical': 0.0, 'mean_word_length': 2.5235690235690234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '7417484', 'n_tokens_mistral': 623, 'n_tokens_neox': 597, 'n_words': 99}