<commit_before>#ifndef resplunk_util_SpecificTo_HeaderPlusPlus
#define resplunk_util_SpecificTo_HeaderPlusPlus

#include <functional>

namespace resplunk
{
	namespace util
	{
		template<typename T, bool LogicalConst = false>
		struct SpecificTo
		{
			using Specific_t = T;
			static constexpr bool LogicalConst_v = LogicalConst;
			SpecificTo() = delete;
			SpecificTo(SpecificTo const &) = default;
			SpecificTo &operator=(SpecificTo const &) = delete;
			SpecificTo(SpecificTo &&) = default;
			SpecificTo &operator=(SpecificTo &&) = delete;
			virtual ~SpecificTo() = 0;

			virtual Specific_t &specific() noexcept final
			{
				return spec;
			}
			virtual Specific_t const &specific() const noexcept final
			{
				return spec;
			}

		protected:
			SpecificTo(Specific_t &s) noexcept
			: spec{s}
			{
			}

			virtual void specific(Specific_t &s) noexcept final
			{
				spec = s;
			}

		private:
			std::reference_wrapper<Specific_t> spec;
		};
		template<typename T>
		struct SpecificTo<T, true>
		{
			using Specific_t = T;
			static constexpr bool LogicalConst_v = true;
			SpecificTo() = delete;
			SpecificTo(SpecificTo const &) = default;
			SpecificTo &operator=(SpecificTo const &) = delete;
			SpecificTo(SpecificTo &&) = default;
			SpecificTo &operator=(SpecificTo &&) = delete;
			virtual ~SpecificTo() = 0;

			virtual Specific_t &specific() const noexcept final
			{
				return spec;
			}
			virtual Specific_t const &specific() noexcept final
			{
				return spec;
			}

		protected:
			SpecificTo(Specific_t &s) noexcept
			: spec{s}
			{
			}

			virtual void specific(Specific_t &s) const noexcept final
			{
				spec = s;
			}

		private:
			mutable std::reference_wrapper<Specific_t> spec;
		};
		template<typename T, bool LC>
		SpecificTo<T, LC>::~SpecificTo<T, LC>() = default;
		template<typename T>
		SpecificTo<T, true>::~SpecificTo<T, true>() = default;<commit_msg>Fix invalid bitwise-const for SpecificTo<commit_after>#ifndef resplunk_util_SpecificTo_HeaderPlusPlus
#define resplunk_util_SpecificTo_HeaderPlusPlus

#include <functional>

namespace resplunk
{
	namespace util
	{
		template<typename T, bool LogicalConst = false>
		struct SpecificTo
		{
			using Specific_t = T;
			static constexpr bool LogicalConst_v = LogicalConst;
			SpecificTo() = delete;
			SpecificTo(SpecificTo const &) = default;
			SpecificTo &operator=(SpecificTo const &) = delete;
			SpecificTo(SpecificTo &&) = default;
			SpecificTo &operator=(SpecificTo &&) = delete;
			virtual ~SpecificTo() = 0;

			virtual Specific_t &specific() noexcept final
			{
				return spec;
			}
			virtual Specific_t const &specific() const noexcept final
			{
				return spec;
			}

		protected:
			SpecificTo(Specific_t &s) noexcept
			: spec{s}
			{
			}

			virtual void specific(Specific_t &s) noexcept final
			{
				spec = s;
			}

		private:
			std::reference_wrapper<Specific_t> spec;
		};
		template<typename T>
		struct SpecificTo<T, true>
		{
			using Specific_t = T;
			static constexpr bool LogicalConst_v = true;
			SpecificTo() = delete;
			SpecificTo(SpecificTo const &) = default;
			SpecificTo &operator=(SpecificTo const &) = delete;
			SpecificTo(SpecificTo &&) = default;
			SpecificTo &operator=(SpecificTo &&) = delete;
			virtual ~SpecificTo() = 0;

			virtual Specific_t &specific() const noexcept final
			{
				return spec;
			}
			virtual Specific_t const &specific() noexcept final
			{
				return spec;
			}

		protected:
			SpecificTo(Specific_t &s) noexcept
			: spec{s}
			{
			}

			virtual void specific(Specific_t &s) noexcept final
			{
				spec = s;
			}

		private:
			mutable std::reference_wrapper<Specific_t> spec;
		};
		template<typename T, bool LC>
		SpecificTo<T, LC>::~SpecificTo<T, LC>() = default;
		template<typename T>
		SpecificTo<T, true>::~SpecificTo<T, true>() = default;
{'fraction_non_alphanumeric': 0.1058270185523909, 'fraction_numerical': 0.0010452051215050953, 'mean_word_length': 3.708487084870849, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '4722170', 'n_tokens_mistral': 1556, 'n_tokens_neox': 1212, 'n_words': 306}