<commit_before>#ifndef RANDOMVARIABLE_H
#define RANDOMVARIABLE_H

#include <cmath>
#include <string>

#include "math/RandMath.h"
#include "randlib_global.h"

#include <QDebug>
#include <QVector>

/**
 * @brief The RandomVariable class
 */
class RANDLIBSHARED_EXPORT RandomVariable
{

protected:

    std::string toStringWithPrecision(const double a_value, const int n = 6);

public:
    RandomVariable();
    virtual ~RandomVariable() {}

    /**
     * @brief getName
     */
    virtual std::string name() = 0;

    /**<commit_msg>Update RandomVariable.h<commit_after>#ifndef RANDOMVARIABLE_H
#define RANDOMVARIABLE_H

#include <cmath>
#include <string>

#include "math/RandMath.h"
#include "randlib_global.h"

#include <QDebug>
#include <QVector>

/**
 * @brief The RandomVariable class
 */
class RANDLIBSHARED_EXPORT RandomVariable
{

protected:

    std::string toStringWithPrecision(const double a_value, const int n = 6);

public:
    RandomVariable();
    virtual ~RandomVariable() {}

    /**
     * @brief name
     * @return name of distribution, for instance "Normal(0, 1)"
     */
    virtual std::string name() = 0;

    /**
{'fraction_non_alphanumeric': 0.1256590509666081, 'fraction_numerical': 0.005272407732864675, 'mean_word_length': 4.0176211453744495, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2458460', 'n_tokens_mistral': 395, 'n_tokens_neox': 381, 'n_words': 93}