<commit_before>#include "iterator.h"
#include <iterator>

// In each test, replace XXX with syntax that passes the test.

BOOST_AUTO_TEST_CASE(beginning_of_an_array)
{
	int values[5]{ 1, 2, 3, 4, 5 };
	BOOST_REQUIRE_EQUAL(&values[xxx], std::begin(values));
}

BOOST_AUTO_TEST_CASE(ending_of_an_array)
{
	int values[5]{ 1, 2, 3, 4, 5 };
	BOOST_REQUIRE_EQUAL(&values[xxx], std::end(values));
}

BOOST_AUTO_TEST_CASE(type_of_array_begin_iterator)
{
	int values[5]{ 1, 2, 3, 4, 5 };
	BOOST_REQUIRE((std::is_same<XXX, decltype(std::begin(values))>::value));
	BOOST_REQUIRE((std::is_same<XXX, decltype(std::cbegin(values))>::value));
}<commit_msg>iterator_traits for array iterators<commit_after>#include "iterator.h"
#include <iterator>

// In each test, replace XXX with syntax that passes the test.

BOOST_AUTO_TEST_CASE(beginning_of_an_array)
{
	int values[5]{ 1, 2, 3, 4, 5 };
	BOOST_REQUIRE_EQUAL(&values[xxx], std::begin(values));
}

BOOST_AUTO_TEST_CASE(ending_of_an_array)
{
	int values[5]{ 1, 2, 3, 4, 5 };
	BOOST_REQUIRE_EQUAL(&values[xxx], std::end(values));
}

BOOST_AUTO_TEST_CASE(type_of_array_begin_iterator)
{
	int values[5]{ 1, 2, 3, 4, 5 };
	BOOST_REQUIRE((std::is_same<XXX, decltype(std::begin(values))>::value));
	BOOST_REQUIRE((std::is_same<XXX, decltype(std::cbegin(values))>::value));
}

BOOST_AUTO_TEST_CASE(iterator_traits_of_array_iterators)
{
	int values[]{ 1, 2, 3, 4, 5 };
	auto start = std::begin(values);
	BOOST_REQUIRE((std::is_same<XXX, std::iterator_traits<decltype(start)>::value_type>::value));
	BOOST_REQUIRE((std::is_same<XXX, std::iterator_traits<decltype(start)>::difference_type>::value));
	BOOST_REQUIRE((std::is_same<XXX, std::iterator_traits<decltype(start)>::pointer>::value));
	BOOST_REQUIRE((std::is_same<XXX, std::iterator_traits<decltype(start)>::reference>::value));
	BOOST_REQUIRE((std::is_same<XXX, std::iterator_traits<decltype(start)>::iterator_category>::value));
}
{'fraction_non_alphanumeric': 0.17806788511749347, 'fraction_numerical': 0.021409921671018278, 'mean_word_length': 9.703910614525139, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '5058672', 'n_tokens_mistral': 791, 'n_tokens_neox': 737, 'n_words': 118}