<commit_before>#ifndef __MESSAGES__COMMON_MESSAGE_H__
#define __MESSAGES__COMMON_MESSAGE_H__

#include <ctime>


namespace traffic {

class TimeRange
{
private:
	time_t const _start;
	time_t const _end;

public:
	time_t start() const { return _start; }
	time_t end() const { return _end; }
	bool valid() const { return _end > _start; }

	TimeRange(time_t const start, time_t const end);
};

}

#endif
<commit_msg>Add some documentation<commit_after>#ifndef __MESSAGES__COMMON_MESSAGE_H__
#define __MESSAGES__COMMON_MESSAGE_H__

#include <ctime>


namespace traffic {


/**
 * \brief Wraps the TimeRange message type.
 */
class TimeRange
{
private:
	time_t const _start;
	time_t const _end;

public:
	/**
	 * \brief The start of the interval.
	 */
	time_t start() const { return _start; }

	/**
	 * \brief The end of the interval.
	 */
	time_t end() const { return _end; }

	/**
	 * \brief Tells if this is a valid interval.
	 *
	 * A valid interval is one where the start is before the
	 * end timesoamp.
	 */
	bool valid() const { return _end > _start; }

	TimeRange(time_t const start, time_t const end);
};

}

#endif

{'fraction_non_alphanumeric': 0.09991079393398751, 'fraction_numerical': 0.0, 'mean_word_length': 3.836206896551724, 'pattern_counts': {'":': 0, '<': 5, '<?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': '87663', 'n_tokens_mistral': 410, 'n_tokens_neox': 389, 'n_words': 123}