<commit_before>#include <QDebug>
#include "connectiontest.h"

ConnectionTest::ConnectionTest(QObject* parent) : QObject(parent) {
}

void ConnectionTest::conn_connected(QIRC::ServerInfo si) {
  qDebug() << "Connected to" << si;
}

void ConnectionTest::conn_disconnected(QIRC::ServerInfo si) {
  qDebug() << "Disconnected from" << si;
  emit finished();
}

void ConnectionTest::run() {
  try {
    QIRC::ServerInfo si("172.16.1.129", 6667);
    m_connection = new QIRC::Connection(si);
  }

  catch (std::bad_alloc& ex) {
    qCritical() << "Unable to allocate memory for m_connection:"
		<< ex.what();
    exit(1);
  }

  QObject::connect(m_connection, SIGNAL(connected(QIRC::ServerInfo)),<commit_msg>add missing variable initialization to ConnectionTest ctor<commit_after>#include <QDebug>
#include "connectiontest.h"

ConnectionTest::ConnectionTest(QObject* parent) : QObject(parent),
						  m_connection(NULL) {
}

void ConnectionTest::conn_connected(QIRC::ServerInfo si) {
  qDebug() << "Connected to" << si;
}

void ConnectionTest::conn_disconnected(QIRC::ServerInfo si) {
  qDebug() << "Disconnected from" << si;
  emit finished();
}

void ConnectionTest::run() {
  try {
    QIRC::ServerInfo si("172.16.1.129", 6667);
    m_connection = new QIRC::Connection(si);
  }

  catch (std::bad_alloc& ex) {
    qCritical() << "Unable to allocate memory for m_connection:"
		<< ex.what();
    exit(1);
  }

  QObject::connect(m_connection, SIGNAL(connected(QIRC::ServerInfo)),
{'fraction_non_alphanumeric': 0.15796610169491526, 'fraction_numerical': 0.018983050847457626, 'mean_word_length': 5.3076923076923075, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3591020', 'n_tokens_mistral': 533, 'n_tokens_neox': 498, 'n_words': 98}