<commit_before>#include "download.h"
#include <QCoreApplication>
#include <QUrl>
#include <QNetworkRequest>
#include <QFile>
#include <QDebug>
#include <QNetworkReply>

Download::Download() : QObject(0) {
    QObject::connect(&manager, SIGNAL(finished(QNetworkReply*)),this, SLOT(downloadFinished(QNetworkReply*)));
}

Download::~Download() {

}


void Download::setTarget(const QString &t) {
    this->target = t;
}

void Download::downloadFinished(QNetworkReply *data) {
    emit done(data->readAll());
}

void Download::download() {
    QUrl url = QUrl::fromEncoded(this->target.toLocal8Bit());
    QNetworkRequest request(url);
    
    request.sslConfiguration().setProtocol(QSsl::AnyProtocol);
    
    request.setRawHeader( "User-Agent" , QString("UTLauncher %1.%2.%3 / %4").arg(VERSION_MAJOR).arg(VERSION_MINOR).arg(VERSION_PATCH).arg(
#if defined Q_OS_WINDOWS
		"Windows"
#elif defined Q_OS_LINUX
		"Linux"
#elif defined Q_OS_MAX
		"MacOSX"
#else
		"Unknown"
#endif
		).toUtf8() );
    QNetworkReply* reply = manager.get(request);
    QObject::connect(reply, SIGNAL(downloadProgress(qint64,qint64)), this, SLOT(downloadProgress(qint64,qint64)));
    if(receivers(SIGNAL(chunk(QByteArray)))) {
        connect(reply, &QNetworkReply::readyRead, [=] {
            emit chunk(reply->readAll());
        });
    }
    QObject::connect(reply, SIGNAL(error(QNetworkReply::NetworkError)), SLOT(downloadError(QNetworkReply::NetworkError)));
    QObject::connect(reply, SIGNAL(sslErrors(QList<QSslError>)), SLOT(downloadSslError(QList<QSslError>)));
    
}
<commit_msg>Fix typo<commit_after>#include "download.h"
#include <QCoreApplication>
#include <QUrl>
#include <QNetworkRequest>
#include <QFile>
#include <QDebug>
#include <QNetworkReply>

Download::Download() : QObject(0) {
    QObject::connect(&manager, SIGNAL(finished(QNetworkReply*)),this, SLOT(downloadFinished(QNetworkReply*)));
}

Download::~Download() {

}


void Download::setTarget(const QString &t) {
    this->target = t;
}

void Download::downloadFinished(QNetworkReply *data) {
    emit done(data->readAll());
}

void Download::download() {
    QUrl url = QUrl::fromEncoded(this->target.toLocal8Bit());
    QNetworkRequest request(url);
    
    request.sslConfiguration().setProtocol(QSsl::AnyProtocol);
    
    request.setRawHeader( "User-Agent" , QString("UTLauncher %1.%2.%3 / %4").arg(VERSION_MAJOR).arg(VERSION_MINOR).arg(VERSION_PATCH).arg(
#if defined Q_OS_WINDOWS
		"Windows"
#elif defined Q_OS_LINUX
		"Linux"
#elif defined Q_OS_MAX
		"MacOSX"
#else
		"Unknown"
#endif
		).toUtf8() );
    QNetworkReply* reply = manager.get(request);
    QObject::connect(reply, SIGNAL(downloadProgress(qint64,qint64)), this, SLOT(downloadProgress(qint64,qint64)));
    if(receivers(SIGNAL(chunk(QByteArray)))) {
        connect(reply, &QNetworkReply::readyRead, [=] {
            emit chunk(reply->readAll());
        });
    }
    QObject::connect(reply, SIGNAL(error(QNetworkReply::NetworkError)), SLOT(downloadError(QNetworkReply::NetworkError)));
    QObject::connect(reply, SIGNAL(sslErrors(QList<QSslError>)), SLOT(downloadSslErrors(QList<QSslError>)));
    
}

{'fraction_non_alphanumeric': 0.1615581098339719, 'fraction_numerical': 0.009578544061302681, 'mean_word_length': 5.752155172413793, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5950962', 'n_tokens_mistral': 1105, 'n_tokens_neox': 1066, 'n_words': 157}