<commit_before>#include <ErrorReporter.hpp>
#include <iostream>

namespace miniMAT {
    namespace reporter {
        ErrorReporter::ErrorReporter() {
            this->lexer_errors = std::vector<std::string>();
            this->parse_errors = std::vector<std::string>();
        }

        void ErrorReporter::AddLexerError(const std::string& error) {
            this->lexer_errors.push_back(error);
        }

        void ErrorReporter::AddParseError(const std::string& error) {
            this->parse_errors.push_back(error);
        }

        void ErrorReporter::AddCheckError(const std::string& error) {
            this->check_errors.push_back(error);
        }

        bool ErrorReporter::HasErrors() {
            return HasLexerErrors() || HasParseErrors() || HasCheckErrors();
        }

        bool ErrorReporter::HasLexerErrors() {
            return this->lexer_errors.size() > 0;
        }

        bool ErrorReporter::HasParseErrors() {
            return this->parse_errors.size() > 0;
        }

        bool ErrorReporter::HasCheckErrors() {
            return this->check_errors.size() > 0;
        }<commit_msg>Modify ctor in ErrorReporter<commit_after>#include <ErrorReporter.hpp>
#include <iostream>

namespace miniMAT {
    namespace reporter {
        ErrorReporter::ErrorReporter() {
            this->lexer_errors = std::vector<std::string>();
            this->parse_errors = std::vector<std::string>();
            this->check_errors = std::vector<std::string>();
        }

        void ErrorReporter::AddLexerError(const std::string& error) {
            this->lexer_errors.push_back(error);
        }

        void ErrorReporter::AddParseError(const std::string& error) {
            this->parse_errors.push_back(error);
        }

        void ErrorReporter::AddCheckError(const std::string& error) {
            this->check_errors.push_back(error);
        }

        bool ErrorReporter::HasErrors() {
            return HasLexerErrors() || HasParseErrors() || HasCheckErrors();
        }

        bool ErrorReporter::HasLexerErrors() {
            return this->lexer_errors.size() > 0;
        }

        bool ErrorReporter::HasParseErrors() {
            return this->parse_errors.size() > 0;
        }

        bool ErrorReporter::HasCheckErrors() {
            return this->check_errors.size() > 0;
        }
{'fraction_non_alphanumeric': 0.12670068027210885, 'fraction_numerical': 0.002551020408163265, 'mean_word_length': 2.4002890173410405, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 35, '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': '3732839', 'n_tokens_mistral': 676, 'n_tokens_neox': 648, 'n_words': 103}