<commit_before>#define POOL_ALLOC_TEST_PRINT_STATS
#define POOL_ALLOC_TEST

#include <ecl/pool.hpp>

#include <sstream>
#include <algorithm>
#include <bitset>
#include <cstdlib>
#include <ctime>
#include <map>

#include <CppUTest/TestHarness.h>
#include <CppUTestExt/MockSupport.h>

// TODO: extend this suite with tests for invalid input
// This will be possible if

static constexpr auto block_size    = 16; // Must be power of two
static constexpr auto blocks        = 100;

static ecl::pool_base                   *test_pool;
static ecl::pool< block_size, blocks >  *real_pool;

// Represents a type that fits in exacly one block
struct exactly_block
{
    char data[block_size];<commit_msg>Fixed missing include in test<commit_after>#define POOL_ALLOC_TEST_PRINT_STATS
#define POOL_ALLOC_TEST

#include <ecl/pool.hpp>

#include <sstream>
#include <algorithm>
#include <bitset>
#include <cstdlib>
#include <ctime>
#include <map>
#include <iostream>

#include <CppUTest/TestHarness.h>
#include <CppUTestExt/MockSupport.h>

// TODO: extend this suite with tests for invalid input
// This will be possible if

static constexpr auto block_size    = 16; // Must be power of two
static constexpr auto blocks        = 100;

static ecl::pool_base                   *test_pool;
static ecl::pool< block_size, blocks >  *real_pool;

// Represents a type that fits in exacly one block
struct exactly_block
{
    char data[block_size];
{'fraction_non_alphanumeric': 0.09467040673211781, 'fraction_numerical': 0.0070126227208976155, 'mean_word_length': 4.227106227106227, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, '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': '6520562', 'n_tokens_mistral': 478, 'n_tokens_neox': 457, 'n_words': 149}