<commit_before>#include "system_info.h"

#include <QObject>

SystemInfo::SystemInfo()
{
    QStringList lines = FileUtil::readListFromFile(PROC_CPUINFO)
            .filter(QRegExp("^model name"));

    QStringList cpuMhz = FileUtil::readListFromFile(PROC_CPUINFO)
            .filter(QRegExp("^cpu MHz"));

    if (! lines.isEmpty()) {
        QStringList model = lines.at(0).trimmed().split(":").at(1).split("@");
        QStringList cpumhz = cpuMhz.at(0).trimmed().split(":").at(1).split("@");

        if ( model.count() > 0) {
            QRegExp regexp("\\s+");
            QString space(" ");
            this->cpuModel = model.at(0).trimmed().replace(regexp, space);
            this->cpuSpeed = cpuMhz.at(0).trimmed().replace(regexp, space);
        }
    }
    else {
        QString unknown(QObject::tr("Unknown"));
        this->cpuModel = unknown;
        this->cpuSpeed = unknown;
    }

    CpuInfo ci;
    this->cpuCore = QString::number(ci.getCpuCoreCount());

    // get username
    QString name = qgetenv("USER");

    if (name.isEmpty())
        name = qgetenv("USERNAME");
<commit_msg>SytemInfo : Fix my naming blunder.<commit_after>#include "system_info.h"

#include <QObject>

SystemInfo::SystemInfo()
{
    QStringList lines = FileUtil::readListFromFile(PROC_CPUINFO)
            .filter(QRegExp("^model name"));

    QStringList cpuMhz = FileUtil::readListFromFile(PROC_CPUINFO)
            .filter(QRegExp("^cpu MHz"));

    if (! lines.isEmpty()) {
        QStringList model = lines.at(0).trimmed().split(":").at(1).split("@");
        QStringList cpumhz = cpuMhz.at(0).trimmed().split(":").at(1).split("@");

        if ( model.count() > 0) {
            QRegExp regexp("\\s+");
            QString space(" ");
            this->cpuModel = model.at(0).trimmed().replace(regexp, space);
            this->cpuSpeed = cpumhz.at(0).trimmed().replace(regexp, space);
        }
    }
    else {
        QString unknown(QObject::tr("Unknown"));
        this->cpuModel = unknown;
        this->cpuSpeed = unknown;
    }

    CpuInfo ci;
    this->cpuCore = QString::number(ci.getCpuCoreCount());

    // get username
    QString name = qgetenv("USER");

    if (name.isEmpty())
        name = qgetenv("USERNAME");

{'fraction_non_alphanumeric': 0.17628635346756152, 'fraction_numerical': 0.006263982102908278, 'mean_word_length': 2.695867768595041, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 17, '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': '6697670', 'n_tokens_mistral': 735, 'n_tokens_neox': 733, 'n_words': 116}