<commit_before>#include <cstdlib>
#include <algorithm>
#include <string>
#include <iterator>

#include "util.h"

std::string generateRandomString(size_t length)
{
    const char* charmap = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    const size_t charmapLength = strlen(charmap);
    auto generator = [&](){ return charmap[std::rand()%charmapLength]; };
    std::string result;
    result.reserve(length);
    std::generate_n(std::back_inserter(result), length, generator);
    return result;
}<commit_msg>Fix missing headers<commit_after>#include <cstdlib>
#include <algorithm>
#include <string>
#include <iterator>
#include <cstring>

#include "util.h"

std::string generateRandomString(size_t length)
{
    const char* charmap = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    const size_t charmap_length = std::strlen(charmap);
    auto generator = [&](){ return charmap[std::rand() % charmap_length]; };
    std::string result;
    result.reserve(length);
    std::generate_n(std::back_inserter(result), length, generator);
    return result;
}
{'fraction_non_alphanumeric': 0.1416015625, 'fraction_numerical': 0.0, 'mean_word_length': 5.879194630872483, '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': '3260405', 'n_tokens_mistral': 349, 'n_tokens_neox': 344, 'n_words': 71}