<commit_before>#include <string>

#include "Location.h"

#ifndef TOKEN
#define TOKEN

namespace lyrics
{
	using std::u16string;

	struct Token
	{
		enum struct Type
		{
			END_OF_FILE,

			CHAR40 = 40, CHAR91 = 91, CHAR123 = 123,

			BREAK = 256, CASE, CLASS, DEF, DO, END, ELSE, ELSEIF, FOR, FOREACH, IF, IMPORT, IN, INCLUDE, NEXT, OUT, PACKAGE, PRIVATE, PROTECTED, PUBLIC, RETURN, THEN, THIS, WHEN, WHILE,
			SHIFT_LEFT, SHIFT_RIGHT, LESS_THAN_OR_EQUAL, GREATER_THAN_OR_EQUAL, EQUAL, NOT_EQUAL, AND, OR,
			IDENTIFIER,
			NULL_LITERAL, BOOLEAN_LITERAL, INTEGER_LITERAL, REAL_LITERAL, STRING_LITERAL
		};

		union Value
		{
			bool boolean;
			long long integer;
			double real;
			u16string *string;
			u16string *identifier;
		};

		Token( const bool boolean, const Location &location ) : type( Type::BOOLEAN_LITERAL ), location( location )
		{
			value.boolean = boolean;
		}

		Token( const long long integer, const Location &location ) : type( Type::INTEGER_LITERAL ), location( location )
		{
			value.integer = integer;
		}

		Token( const double real, const Location &location ) : type( Type::REAL_LITERAL ), location( location )
		{
			value.real = real;
		}

		Token( u16string * const string, const Location &location ) : type( Type::STRING_LITERAL ), location( location )
		{
			value.string = string;
		}

		Token( const Type type, u16string * const identifier, const Location &location ) : type( type ), location( location )
		{
			value.identifier = identifier;
		}

		Token( const Type type, const Location &location ) : type( type ), location( location )
		{
		}
<commit_msg>Changed order of Token constructor<commit_after>#include <string>

#include "Location.h"

#ifndef TOKEN
#define TOKEN

namespace lyrics
{
	using std::u16string;

	struct Token
	{
		enum struct Type
		{
			END_OF_FILE,

			CHAR40 = 40, CHAR91 = 91, CHAR123 = 123,

			BREAK = 256, CASE, CLASS, DEF, DO, END, ELSE, ELSEIF, FOR, FOREACH, IF, IMPORT, IN, INCLUDE, NEXT, OUT, PACKAGE, PRIVATE, PROTECTED, PUBLIC, RETURN, THEN, THIS, WHEN, WHILE,
			SHIFT_LEFT, SHIFT_RIGHT, LESS_THAN_OR_EQUAL, GREATER_THAN_OR_EQUAL, EQUAL, NOT_EQUAL, AND, OR,
			IDENTIFIER,
			NULL_LITERAL, BOOLEAN_LITERAL, INTEGER_LITERAL, REAL_LITERAL, STRING_LITERAL
		};

		union Value
		{
			bool boolean;
			long long integer;
			double real;
			u16string *string;
			u16string *identifier;
		};

		Token( const Type type, const Location &location ) : type( type ), location( location )
		{
		}

		Token( const bool boolean, const Location &location ) : type( Type::BOOLEAN_LITERAL ), location( location )
		{
			value.boolean = boolean;
		}

		Token( const long long integer, const Location &location ) : type( Type::INTEGER_LITERAL ), location( location )
		{
			value.integer = integer;
		}

		Token( const double real, const Location &location ) : type( Type::REAL_LITERAL ), location( location )
		{
			value.real = real;
		}

		Token( u16string * const string, const Location &location ) : type( Type::STRING_LITERAL ), location( location )
		{
			value.string = string;
		}

		Token( const Type type, u16string * const identifier, const Location &location ) : type( type ), location( location )
		{
			value.identifier = identifier;
		}

{'fraction_non_alphanumeric': 0.10851262862488306, 'fraction_numerical': 0.01683816651075772, 'mean_word_length': 3.853252647503782, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2918350', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1072, 'n_words': 318}