<commit_before>#ifndef TYPEID_H_INCLUDED
#define TYPEID_H_INCLUDED

#include <type_traits>
#include <cstdint>

namespace wrenly {
namespace detail {

inline uint32_t& typeId() {
    static uint32_t id{ 0u };
    return id;
}

template<typename T>
uint32_t getTypeIdImpl() {
    static uint32_t id = typeId()++;
    return id;
}

template<typename T>
uint32_t getTypeId() {
    return getTypeId<std::decay_t<T>>();
}

}
}

#endif  // TYPEID_H_INCLUDED
<commit_msg>yikes, fix recursive type id<commit_after>#ifndef TYPEID_H_INCLUDED
#define TYPEID_H_INCLUDED

#include <type_traits>
#include <cstdint>

namespace wrenly {
namespace detail {

inline uint32_t& typeId() {
    static uint32_t id{ 0u };
    return id;
}

template<typename T>
uint32_t getTypeIdImpl() {
    static uint32_t id = typeId()++;
    return id;
}

template<typename T>
uint32_t getTypeId() {
    return getTypeIdImpl<std::decay_t<T>>();
}

}
}

#endif  // TYPEID_H_INCLUDED

{'fraction_non_alphanumeric': 0.11746031746031746, 'fraction_numerical': 0.02328042328042328, 'mean_word_length': 4.597633136094674, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5406381', 'n_tokens_mistral': 387, 'n_tokens_neox': 371, 'n_words': 82}