<commit_before>#ifndef value_hh_INCLUDED
#define value_hh_INCLUDED

#include "unordered_map.hh"
#include "units.hh"

#include <memory>

namespace Kakoune
{

struct bad_value_cast {};

struct Value
{
    Value() = default;

    template<typename T>
    Value(T&& val) : m_value{new Model<T>{std::forward<T>(val)}} {}

    Value(const Value& val) = delete;
    Value(Value&&) = default;<commit_msg>Make sure we do not put a Value in a Value<commit_after>#ifndef value_hh_INCLUDED
#define value_hh_INCLUDED

#include "unordered_map.hh"
#include "units.hh"

#include <type_traits>
#include <memory>

namespace Kakoune
{

struct bad_value_cast {};

struct Value
{
    Value() = default;

    template<typename T,
             typename = typename std::enable_if<not std::is_same<Value, T>::value>::type>
    Value(T&& val) : m_value{new Model<T>{std::forward<T>(val)}} {}

    Value(const Value& val) = delete;
    Value(Value&&) = default;
{'fraction_non_alphanumeric': 0.14132762312633834, 'fraction_numerical': 0.0, 'mean_word_length': 4.701219512195122, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '4840456', 'n_tokens_mistral': 334, 'n_tokens_neox': 325, 'n_words': 76}