<commit_before>#include "gt/model/common.hpp"

namespace GT {
namespace Model {
    
////////////////////////////////////////////////////////////////////////////////

// class Root {

bool Root::debugMode = false;

unsigned int Root::allocations = 0;

OutputStream* outputStream = &std::cout;

// public:

bool Root::getDebugMode() {
    return debugMode;
}

void Root::setDebugMode(
    bool newDebugMode
) {
    debugMode = newDebugMode;
}

void Root::setOutputStream(
    OutputStream& newOutputStream
) {
    outputStream = &newOutputStream;
}

Root::Root() :
    rootID(++allocations)
{
    if (debugMode)
        *outputStream << "Allocated id:" << rootID << std::endl;
}

Root::~Root() {
    if (debugMode)
        *outputStream << "Freed id:" << rootID << std::endl;
}

bool Root::isEqual(Root& root) {
    return this == &root;
}

bool Root::isNotNull() {
    return true;
}

bool Root::isNull() {
    return !isNotNull();
}

// }

////////////////////////////////////////////////////////////////////////////////

bool operator==(
    Root& root1,
    Root& root2
) {
    return root1.isEqual(root2);
}

bool operator!=(
    Root& root1,
    Root& root2
) {
    return !root1.isEqual(root2);
}

OutputStream& operator<<(
    OutputStream& stream,
    Root&         root
) {
    return stream << root.toString();
}

////////////////////////////////////////////////////////////////////////////////

} /* END namespace Model */
} /* END namespace GT */
<commit_msg>* Fix in Model::Root class implementation (wrong initialization of static value).<commit_after>#include "gt/model/common.hpp"

namespace GT {
namespace Model {
    
////////////////////////////////////////////////////////////////////////////////

// class Root {

bool Root::debugMode = false;

unsigned int Root::allocations = 0;

OutputStream* Root::outputStream = &std::cout;

// public:

bool Root::getDebugMode() {
    return debugMode;
}

void Root::setDebugMode(
    bool newDebugMode
) {
    debugMode = newDebugMode;
}

void Root::setOutputStream(
    OutputStream& newOutputStream
) {
    outputStream = &newOutputStream;
}

Root::Root() :
    rootID(++allocations)
{
    if (debugMode)
        *outputStream << "Allocated id:" << rootID << std::endl;
}

Root::~Root() {
    if (debugMode)
        *outputStream << "Freed id:" << rootID << std::endl;
}

bool Root::isEqual(Root& root) {
    return this == &root;
}

bool Root::isNotNull() {
    return true;
}

bool Root::isNull() {
    return !isNotNull();
}

// }

////////////////////////////////////////////////////////////////////////////////

bool operator==(
    Root& root1,
    Root& root2
) {
    return root1.isEqual(root2);
}

bool operator!=(
    Root& root1,
    Root& root2
) {
    return !root1.isEqual(root2);
}

OutputStream& operator<<(
    OutputStream& stream,
    Root&         root
) {
    return stream << root.toString();
}

////////////////////////////////////////////////////////////////////////////////

} /* END namespace Model */
} /* END namespace GT */

{'fraction_non_alphanumeric': 0.2864721485411141, 'fraction_numerical': 0.005968169761273209, 'mean_word_length': 1.7628205128205128, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 3, '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': '5862251', 'n_tokens_mistral': 866, 'n_tokens_neox': 860, 'n_words': 204}