<commit_before>#ifndef EMBEDDEDHELPERLIBRARY_SPAN_H
#define EMBEDDEDHELPERLIBRARY_SPAN_H

#include <cstddef>
#include "type_traits/enable_if.h"
#include "type_traits/is_container.h"

namespace ehl
{
	template <typename T, typename iteratorT = T*>
	class span
	{
	public:
		using value_type = T;
		using reference = T&;
		using const_reference = reference const;

		using iterator = iteratorT;
		using const_iterator = iterator const;

		using size_type = std::size_t;

	private:
		iterator dataBegin;
		iterator dataEnd;

	public:
		span(iterator begin, size_type length)
			: dataBegin(begin)
			, dataEnd(begin + length)
		{
		}
<commit_msg>Fix incorrect const refernce in span<commit_after>#ifndef EMBEDDEDHELPERLIBRARY_SPAN_H
#define EMBEDDEDHELPERLIBRARY_SPAN_H

#include <cstddef>
#include "type_traits/enable_if.h"
#include "type_traits/is_container.h"

namespace ehl
{
	template <typename T, typename iteratorT = T*>
	class span
	{
	public:
		using value_type = T;
		using reference = T&;
		using const_reference = T const&;

		using iterator = iteratorT;
		using const_iterator = iterator const;

		using size_type = std::size_t;

	private:
		iterator dataBegin;
		iterator dataEnd;

	public:
		span(iterator begin, size_type length)
			: dataBegin(begin)
			, dataEnd(begin + length)
		{
		}

{'fraction_non_alphanumeric': 0.08832565284178187, 'fraction_numerical': 0.0, 'mean_word_length': 4.665217391304348, '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': '2312175', 'n_tokens_mistral': 505, 'n_tokens_neox': 456, 'n_words': 113}