<commit_before>#include <cstdint>
#include <string>
#include <cstring>
#include <unordered_map>
#include <tuple>
#include <mutex>
#include <iostream>
#include <atomic>

// this file is C++ instead of C as doing this in C would be annoying...

static std::unordered_map<uint64_t, std::string> results;
static std::mutex results_mutex;
static std::atomic<uint64_t> task_id_ctr(1);

// TODO: two char*s is obviously not the best API
<commit_msg>the stupid API has already been fixed<commit_after>#include <cstdint>
#include <string>
#include <cstring>
#include <unordered_map>
#include <tuple>
#include <mutex>
#include <iostream>
#include <atomic>

// this file is C++ instead of C as doing this in C would be annoying...

static std::unordered_map<uint64_t, std::string> results;
static std::mutex results_mutex;
static std::atomic<uint64_t> task_id_ctr(1);

{'fraction_non_alphanumeric': 0.12602100350058343, 'fraction_numerical': 0.011668611435239206, 'mean_word_length': 6.271186440677966, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '879182', 'n_tokens_mistral': 290, 'n_tokens_neox': 287, 'n_words': 97}