<commit_before>#pragma once
#include "Crate/Type.h"

namespace Crate
{
namespace detail
{

enum EmbeddedType
  {
  embedded_void,
  embedded_bool,
  embedded_int,
  embedded_float,
  embedded_double,

  EmbeddedTypeCount
  };

#define EMBEDDED_TYPE(type) \
  template <> struct TypeResolver<type> { \
  static const Type *find() { static Type t(#type); return &t; } };

EMBEDDED_TYPE(void)
EMBEDDED_TYPE(bool)
EMBEDDED_TYPE(int)
EMBEDDED_TYPE(unsigned int)
EMBEDDED_TYPE(long)
EMBEDDED_TYPE(unsigned long)
EMBEDDED_TYPE(long long)
EMBEDDED_TYPE(unsigned long long)
EMBEDDED_TYPE(float)
EMBEDDED_TYPE(double)
EMBEDDED_TYPE(char)
EMBEDDED_TYPE(char *)
EMBEDDED_TYPE(wchar_t)
EMBEDDED_TYPE(wchar_t *)

#undef EMBEDDED_TYPE


}
}<commit_msg>add unsigned char as an embedded type<commit_after>#pragma once
#include "Crate/Type.h"

namespace Crate
{
namespace detail
{

enum EmbeddedType
  {
  embedded_void,
  embedded_bool,
  embedded_int,
  embedded_float,
  embedded_double,

  EmbeddedTypeCount
  };

#define EMBEDDED_TYPE(type) \
  template <> struct TypeResolver<type> { \
  static const Type *find() { static Type t(#type); return &t; } };

EMBEDDED_TYPE(void)
EMBEDDED_TYPE(bool)
EMBEDDED_TYPE(int)
EMBEDDED_TYPE(unsigned int)
EMBEDDED_TYPE(long)
EMBEDDED_TYPE(unsigned long)
EMBEDDED_TYPE(long long)
EMBEDDED_TYPE(unsigned long long)
EMBEDDED_TYPE(float)
EMBEDDED_TYPE(double)
EMBEDDED_TYPE(char)
EMBEDDED_TYPE(unsigned char)
EMBEDDED_TYPE(char *)
EMBEDDED_TYPE(wchar_t)
EMBEDDED_TYPE(wchar_t *)

#undef EMBEDDED_TYPE


}
}
{'fraction_non_alphanumeric': 0.09954158480681075, 'fraction_numerical': 0.0, 'mean_word_length': 6.527093596059113, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4201529', 'n_tokens_mistral': 622, 'n_tokens_neox': 643, 'n_words': 110}