<commit_before>#ifndef UTILITIES_H
#define UTILITIES_H

#include "mainwindow.h"
#include "downloader.h"
#include "converter.h"

#include <QMainWindow>
#include <QProcess>

#ifdef _WIN32
    #define SYSTEM 0
#else
    #define SYSTEM 1
#endif

class Utilities : public QObject
{
    Q_OBJECT

public:
    Utilities();

    QString getBinaryName();
    QString getVideoTitle(QString url);
    QString getVideoID(QString url);
    QString getVideoQuality();
    QString getFileName();
    QString ffmpegBinaryName();
    QString getCurrentRawFilename();
    QString getCurrentFilename();
    QString execBinary(QString bin, int multiline);
    QString prepareUrl(QString url);
    QString getDefaultFilename();

    bool checkUrl();
    void setCommons();
    void startConversionProcess();
    void killProcesses();
    void addToLog(QString line, bool display = true);
    void removeRawVideo();
    void configInit();
    void configSetValue(QString k, QString v);
    void configSetValueIfBlank(QString k, QString v);
    void showFileInDirectory();
    void configSaveAll();
    void configLoadAll();

    QString configGetValue(QString k);
    bool configGetValueBool(QString k);

    int getTrimmedVideoDuration();
    QTime parseTime(QString s);

    int currentDuration;
    bool pathChanged;
    bool loadingVideoInformations;
    bool killed;

    QString defaultFilename;
    QString currentID;
    QString currentVideoUrl;
    QString currentSavePath;
    QString currentFileName;
    QString log;

    QVector<QVector <QString> > ytQualityList(QString url);
    QVector<QVector <QString> > currentQualityList;

    QProcess *downloadProcess;
    QProcess *conversionProcess;

    Downloader download;
    Converter convert;

};

extern Utilities utils;

#endif // UTILITIES_H
<commit_msg>linux compability in preproc macro<commit_after>#ifndef UTILITIES_H
#define UTILITIES_H

#include "mainwindow.h"
#include "downloader.h"
#include "converter.h"

#include <QMainWindow>
#include <QProcess>

#ifdef _WIN32
    #define SYSTEM 0
#elif __APPLE__
    #define SYSTEM 1
#else
    #define SYSTEM 2
#endif

class Utilities : public QObject
{
    Q_OBJECT

public:
    Utilities();

    QString getBinaryName();
    QString getVideoTitle(QString url);
    QString getVideoID(QString url);
    QString getVideoQuality();
    QString getFileName();
    QString ffmpegBinaryName();
    QString getCurrentRawFilename();
    QString getCurrentFilename();
    QString execBinary(QString bin, int multiline);
    QString prepareUrl(QString url);
    QString getDefaultFilename();

    bool checkUrl();
    void setCommons();
    void startConversionProcess();
    void killProcesses();
    void addToLog(QString line, bool display = true);
    void removeRawVideo();
    void configInit();
    void configSetValue(QString k, QString v);
    void configSetValueIfBlank(QString k, QString v);
    void showFileInDirectory();
    void configSaveAll();
    void configLoadAll();

    QString configGetValue(QString k);
    bool configGetValueBool(QString k);

    int getTrimmedVideoDuration();
    QTime parseTime(QString s);

    int currentDuration;
    bool pathChanged;
    bool loadingVideoInformations;
    bool killed;

    QString defaultFilename;
    QString currentID;
    QString currentVideoUrl;
    QString currentSavePath;
    QString currentFileName;
    QString log;

    QVector<QVector <QString> > ytQualityList(QString url);
    QVector<QVector <QString> > currentQualityList;

    QProcess *downloadProcess;
    QProcess *conversionProcess;

    Downloader download;
    Converter convert;

};

extern Utilities utils;

#endif // UTILITIES_H

{'fraction_non_alphanumeric': 0.08483853311439518, 'fraction_numerical': 0.0024630541871921183, 'mean_word_length': 3.9660326086956523, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4463226', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1091, 'n_words': 297}