<commit_before>#include <qdebug.h>
#include <qqml.h>
#include <QFile>
#include <QStringList>
#ifdef QT5
#include <QGuiApplication>
#else
#include <QApplication>
#endif

class Metrics : public QObject
{
    Q_OBJECT

private:
    enum ProcStatMetric {
        Utime = 13,
        Stime = 14,
        ThreadCount = 19,
        Vsize = 22,
        Rss = 23,
        StatCount
    };

    static int procPIDstat(ProcStatMetric metric)
    {<commit_msg>Fix Qt4 compile<commit_after>#include <qdebug.h>
#include <QFile>
#include <QStringList>
#ifdef QT5
#include <qqml.h>
#include <QGuiApplication>
#else
#include <QApplication>
#endif

class Metrics : public QObject
{
    Q_OBJECT

private:
    enum ProcStatMetric {
        Utime = 13,
        Stime = 14,
        ThreadCount = 19,
        Vsize = 22,
        Rss = 23,
        StatCount
    };

    static int procPIDstat(ProcStatMetric metric)
    {
{'fraction_non_alphanumeric': 0.10022271714922049, 'fraction_numerical': 0.025612472160356347, 'mean_word_length': 2.669387755102041, 'pattern_counts': {'":': 0, '<': 15, '<?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': '4388511', 'n_tokens_mistral': 334, 'n_tokens_neox': 305, 'n_words': 80}