<commit_before>#ifndef MINIASCAPE_CELL
#define MINIASCAPE_CELL
#include <vector>
#include <array>

namespace miniascape
{

constexpr static int DYNAMIC = -1;

template<int I_neighbors, typename T_state>
struct Cell
{
    static_assert(I_neighbors > 0, "number of neighbors never be negative");
    using state_type     = T_state;
    constexpr static int number_of_neighbors = I_neighbors;
    using self_type      = Cell<number_of_neighbors, state_type>;
    using self_ptr       = self_type*;
    using neighbors_type = std::array<self_ptr, number_of_neighbors>;

    Cell() = default;
    virtual ~Cell() = default;

    state_type     state;
    neighbors_type neighbors;
};

template<typename T_state>
struct Cell<0, T_state>
{
    using state_type = T_state;
    constexpr static int number_of_neighbors = 0;
    using self_type  = Cell<number_of_neighbors, state_type>;
    using self_ptr   = self_type*;

    Cell() = default;
    virtual ~Cell() = default;

    state_type state;
};

template<typename T_state>
struct Cell<DYNAMIC, T_state>
{
    using state_type = T_state;
    constexpr static int number_of_neighbors = DYNAMIC;
    using self_type      = Cell<number_of_neighbors, state_type>;
    using self_ptr       = self_type*;
    using neighbors_type = std::vector<self_ptr>;

    Cell() = default;
    virtual ~Cell() = default;

    state_type     state;
    neighbors_type neighbors;
};

}

#endif /* MINIASCAPE_CELL */
<commit_msg>add const specifier to pointer in Cell::neighbor_type<commit_after>#ifndef MINIASCAPE_CELL
#define MINIASCAPE_CELL
#include <vector>
#include <array>

namespace miniascape
{

constexpr static int DYNAMIC = -1;

template<int I_neighbors, typename T_state>
struct Cell
{
    static_assert(I_neighbors > 0, "number of neighbors never be negative");
    using state_type     = T_state;
    constexpr static int number_of_neighbors = I_neighbors;
    using self_type      = Cell<number_of_neighbors, state_type>;
    using self_ptr       = self_type *;
    using self_const_ptr = self_type const*;
    using neighbors_type = std::array<self_const_ptr, number_of_neighbors>;

    Cell() = default;
    virtual ~Cell() = default;

    state_type     state;
    neighbors_type neighbors;
};

template<typename T_state>
struct Cell<0, T_state>
{
    using state_type = T_state;
    constexpr static int number_of_neighbors = 0;
    using self_type  = Cell<number_of_neighbors, state_type>;

    Cell() = default;
    virtual ~Cell() = default;

    state_type state;
};

template<typename T_state>
struct Cell<DYNAMIC, T_state>
{
    using state_type = T_state;
    constexpr static int number_of_neighbors = DYNAMIC;
    using self_type      = Cell<number_of_neighbors, state_type>;
    using self_ptr       = self_type*;
    using self_const_ptr = self_type const*;
    using neighbors_type = std::vector<self_const_ptr>;

    Cell() = default;
    virtual ~Cell() = default;

    state_type     state;
    neighbors_type neighbors;
};

}

#endif /* MINIASCAPE_CELL */

{'fraction_non_alphanumeric': 0.08852785145888595, 'fraction_numerical': 0.002652519893899204, 'mean_word_length': 3.7888888888888888, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, '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': '2812074', 'n_tokens_mistral': 1052, 'n_tokens_neox': 1017, 'n_words': 247}