<commit_before>#include "portroutingwidget.h"

#include <sstream>

PortRoutingWidget::PortRoutingWidget(QWidget *parent, int numDinPorts)
		: QWidget(parent), numDinPorts(numDinPorts) {
	createWidgets();
}

void PortRoutingWidget::createWidgets() {
	layout = new QGridLayout(this);
	for (int i = 0; i < numDinPorts; ++i) {
		std::stringstream s;
		s << (i + 1);
		PortButton *b =
				new PortButton(i, QString(s.str().c_str()), PortButton::MIDI, this);
		layout->addWidget(b, 0, i);
	}
}

void PortRoutingWidget::setupWidgets() {}

void PortRoutingWidget::setupLayout() { setLayout(layout); }

void PortRoutingWidget::setData() {}

void PortRoutingWidget::createConnections() {}<commit_msg>added som usb and ethernet ports<commit_after>#include "portroutingwidget.h"

#include <sstream>

PortRoutingWidget::PortRoutingWidget(QWidget *parent, int numDinPorts)
    : QWidget(parent), numDinPorts(numDinPorts) {
  createWidgets();
}

void PortRoutingWidget::createWidgets() {
  layout = new QGridLayout(this);
  for (int i = 0; i < numDinPorts; ++i) {
    std::stringstream s;
    s << (i + 1);
    PortButton *b =
        new PortButton(i, QString(s.str().c_str()), PortButton::MIDI, this);
    layout->addWidget(b, 0, i);
  }
  for (int i = 0; i < 10; ++i) {
    std::stringstream s;
    s << (i + 1);
    PortButton *b = new PortButton(i, QString(s.str().c_str()),
                                   PortButton::USB_DEVICE, this);
    layout->addWidget(b, 1, i);
  }
  for (int i = 0; i < 5; ++i) {
    std::stringstream s;
    s << (i + 1);
    PortButton *b =
        new PortButton(i, QString(s.str().c_str()), PortButton::ETH, this);
    layout->addWidget(b, 2, i);
  }
}

void PortRoutingWidget::setupWidgets() {}

void PortRoutingWidget::setupLayout() { setLayout(layout); }

void PortRoutingWidget::setData() {}

void PortRoutingWidget::createConnections() {}
{'fraction_non_alphanumeric': 0.16291532690246516, 'fraction_numerical': 0.008038585209003215, 'mean_word_length': 4.2296918767507, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4492536', 'n_tokens_mistral': 681, 'n_tokens_neox': 671, 'n_words': 143}