<commit_before>#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
#include <cppunit/extensions/HelperMacros.h>
#include "StatisticsModuleTests.h"
#include <UnittestConfigUtil.hpp>

using namespace CppUnit;

std::string UT_CONFIG_FILE;

CPPUNIT_TEST_SUITE_REGISTRATION(StatisticsModuleTests);


int main (int argc, char* argv[]) {

    // Try to read configuration parameter, exit if fails (no given config, could not load default)
    if (setUtConfigFile(argc, argv) != 0) {
        return 1;
    }
    TextUi::TestRunner runner;
    TestFactoryRegistry &registry = TestFactoryRegistry::getRegistry();
    runner.addTest( registry.makeTest() );
    bool failed = runner.run();
    return !failed;

}<commit_msg>clean shutdown of protobuf - statisticsmodule-ut<commit_after>#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
#include <cppunit/extensions/HelperMacros.h>
#include "StatisticsModuleTests.h"
#include <UnittestConfigUtil.hpp>
#include <google/protobuf/stubs/common.h>

using namespace CppUnit;

std::string UT_CONFIG_FILE;

CPPUNIT_TEST_SUITE_REGISTRATION(StatisticsModuleTests);


int main (int argc, char* argv[]) {

    // Try to read configuration parameter, exit if fails (no given config, could not load default)
    if (setUtConfigFile(argc, argv) != 0) {
        return 1;
    }
    TextUi::TestRunner runner;
    TestFactoryRegistry &registry = TestFactoryRegistry::getRegistry();
    runner.addTest( registry.makeTest() );
    bool failed = runner.run();
    google::protobuf::ShutdownProtobufLibrary();
    return !failed;

}
{'fraction_non_alphanumeric': 0.11411042944785275, 'fraction_numerical': 0.00245398773006135, 'mean_word_length': 4.9743589743589745, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '2480159', 'n_tokens_mistral': 502, 'n_tokens_neox': 491, 'n_words': 117}