<commit_before>//
//  yas_processing_number_event.cpp
//

#include "yas_processing_number_event.h"

using namespace yas;

namespace yas {
namespace processing {
    template <typename T>
    struct processing::number_event::type_impl : impl {
        type_impl(T &&value) : _value(std::move(value)) {
        }

        std::type_info const &type() const override {
            return typeid(T);
        }

        std::size_t sample_byte_count() const override {
            return sizeof(T);
        }

        T _value;
    };
}
}

template <typename T>
processing::number_event::number_event(T value) : event(std::make_shared<type_impl<T>>(std::move(value))) {<commit_msg>is_equal number_event<commit_after>//
//  yas_processing_number_event.cpp
//

#include "yas_processing_number_event.h"

using namespace yas;

namespace yas {
namespace processing {
    template <typename T>
    struct processing::number_event::type_impl : impl {
        type_impl(T &&value) : _value(std::move(value)) {
        }

        std::type_info const &type() const override {
            return typeid(T);
        }

        std::size_t sample_byte_count() const override {
            return sizeof(T);
        }

        virtual bool is_equal(std::shared_ptr<base::impl> const &rhs) const override {
            if (auto casted_rhs = std::dynamic_pointer_cast<type_impl<T>>(rhs)) {
                return _value == casted_rhs->_value;
            }

            return false;
        }

        T _value;
    };
}
}

template <typename T>
processing::number_event::number_event(T value) : event(std::make_shared<type_impl<T>>(std::move(value))) {
{'fraction_non_alphanumeric': 0.12362301101591187, 'fraction_numerical': 0.0, 'mean_word_length': 2.82903981264637, 'pattern_counts': {'":': 0, '<': 14, '<?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': '401612', 'n_tokens_mistral': 514, 'n_tokens_neox': 508, 'n_words': 99}