<commit_before>#include "errorwidget.h"

#include <QHBoxLayout>

namespace NeovimQt {

ErrorWidget::ErrorWidget(QWidget *parent)
:QWidget(parent), m_errorLabel(0), m_closeButton(0)
{
	m_errorLabel = new QLabel();
	m_closeButton = new QPushButton(tr("Reconnect"));

	connect(m_closeButton, &QPushButton::clicked,
			this, &ErrorWidget::reconnectNeovim);

	QHBoxLayout *layout = new QHBoxLayout();
	layout->addWidget(m_errorLabel);
	layout->addStretch();
	layout->addWidget(m_closeButton);
	setLayout(layout);
}

void ErrorWidget::setText(const QString& text)
{
	m_errorLabel->setText(text);
}

void ErrorWidget::showReconnect(bool on)
{
	m_closeButton->setVisible(on);
}

} //Namespace
<commit_msg>Minor GUI fix, rename reconnect button<commit_after>#include "errorwidget.h"

#include <QHBoxLayout>

namespace NeovimQt {

ErrorWidget::ErrorWidget(QWidget *parent)
:QWidget(parent), m_errorLabel(0), m_closeButton(0)
{
	m_errorLabel = new QLabel();
	m_closeButton = new QPushButton(tr("Retry"));

	connect(m_closeButton, &QPushButton::clicked,
			this, &ErrorWidget::reconnectNeovim);

	QHBoxLayout *layout = new QHBoxLayout();
	layout->addWidget(m_errorLabel);
	layout->addStretch();
	layout->addWidget(m_closeButton);
	setLayout(layout);
}

void ErrorWidget::setText(const QString& text)
{
	m_errorLabel->setText(text);
}

void ErrorWidget::showReconnect(bool on)
{
	m_closeButton->setVisible(on);
}

} //Namespace

{'fraction_non_alphanumeric': 0.1420494699646643, 'fraction_numerical': 0.0028268551236749115, 'mean_word_length': 7.634146341463414, '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': '4518450', 'n_tokens_mistral': 516, 'n_tokens_neox': 504, 'n_words': 83}