<commit_before>#pragma once

#ifdef __has_include
#if __has_include(<optional>)
	#include <optional>
#elif __has_include(<experimental/optional>)
	#include <experimental/optional>
	using optional = experimental::optional;
#endif
#endif


#include <stdexcept>

namespace Hippocrates::Utility {

	class const_error : public std::logic_error {
		using std::logic_error::logic_error;
	};

	template<typename T>
	class FillableRef {
	public:
		FillableRef(const T& ref) : isConstRef{ true }, asPointer{ &ref } {}
		FillableRef(T& ref) : asPointer{ &ref } {}
		FillableRef(T&& value) : asValue{ std::forward<T>(value) } {}<commit_msg>Sugar syntax down<commit_after>#pragma once

#ifdef __has_include
#if __has_include(<optional>)
	#include <optional>
#elif __has_include(<experimental/optional>)
	#include <experimental/optional>
#endif
#endif


#include <stdexcept>

namespace Hippocrates::Utility {

	class const_error : public std::logic_error {
		using std::logic_error::logic_error;
	};

	template<typename T>
	class FillableRef {
	public:
		FillableRef(const T& ref) : isConstRef{ true }, asPointer{ &ref } {}
		FillableRef(T& ref) : asPointer{ &ref } {}
		FillableRef(T&& value) : asValue{ std::forward<T>(value) } {}
{'fraction_non_alphanumeric': 0.13793103448275862, 'fraction_numerical': 0.0, 'mean_word_length': 6.170588235294118, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '2130836', 'n_tokens_mistral': 435, 'n_tokens_neox': 404, 'n_words': 93}