<commit_before>#include <atomic>

#include "test.hpp"
#include "cppa/cppa.hpp"

using namespace cppa;

namespace { std::atomic<size_t> s_error_count{0}; }

size_t cppa_error_count() {
    return s_error_count;
}

void cppa_inc_error_count() {
    ++s_error_count;
}

std::string cppa_fill4(int value) {
    std::string result = std::to_string(value);
    while (result.size() < 4) result.insert(result.begin(), '0');
    return std::move(result);
}

const char* cppa_strip_path(const char* fname) {
    auto res = fname;
    auto i = fname;
    for (char c = *i; c != '\0'; c = *++i) {
        if (c == '/') {
            res = i + 1;
        }
    }
    return res;
}

void cppa_unexpected_message(const char* fname, size_t line_num) {
    std::cerr << "ERROR in file " << fname << " on line " << line_num
              << ": unexpected message: "
              << to_string(self->last_dequeued())
              << std::endl;
}

void cppa_unexpected_timeout(const char* fname, size_t line_num) {
    std::cerr << "ERROR in file " << fname << " on line " << line_num
              << ": unexpected timeout" << std::endl;
}

std::vector<std::string> split(const std::string& str, char delim) {
    std::vector<std::string> result;
    std::stringstream strs{str};<commit_msg>harmonized output of unit tests<commit_after>#include <atomic>

#include "test.hpp"
#include "cppa/cppa.hpp"

using namespace cppa;

namespace { std::atomic<size_t> s_error_count{0}; }

size_t cppa_error_count() {
    return s_error_count;
}

void cppa_inc_error_count() {
    ++s_error_count;
}

std::string cppa_fill4(int value) {
    std::string result = std::to_string(value);
    while (result.size() < 4) result.insert(result.begin(), '0');
    return std::move(result);
}

const char* cppa_strip_path(const char* fname) {
    auto res = fname;
    auto i = fname;
    for (char c = *i; c != '\0'; c = *++i) {
        if (c == '/') {
            res = i + 1;
        }
    }
    return res;
}

void cppa_unexpected_message(const char* fname, size_t line_num) {
    CPPA_FORMAT_STR(std::cerr, fname, line_num,
                    "ERROR: unexpected message: "
                    << to_string(self->last_dequeued()));
}

void cppa_unexpected_timeout(const char* fname, size_t line_num) {
    CPPA_FORMAT_STR(std::cerr, fname, line_num, "ERROR: unexpected timeout");
}

std::vector<std::string> split(const std::string& str, char delim) {
    std::vector<std::string> result;
    std::stringstream strs{str};
{'fraction_non_alphanumeric': 0.15526950925181013, 'fraction_numerical': 0.004827031375703942, 'mean_word_length': 3.2512820512820513, 'pattern_counts': {'":': 2, '<': 41, '<?xml version=': 0, '>': 13, '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': '5072284', 'n_tokens_mistral': 911, 'n_tokens_neox': 888, 'n_words': 199}