<commit_before>#include "lex/lex.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char** argv)
{
	char input[60];
	token_array toks;
	for(;;)
	{
		printf("%s ", ">>");
		fgets(input, 60, stdin);
		char* err = lex(&toks, input);
		if(err != NULL)
		{
			printf("%s\n", err);
		}
		else
		{
			for(int index = 0; index < toks.len; index++)
			{
				if(toks.tok_array[index].tok_type != LIST)
				{
					printf("%s\n", toks.tok_array[index].tok_data.tok_str);
				}
				else
				{
					printf("%i\n\n", toks.tok_array[index].tok_data.list_len);
				}
			}
		}
		free_tok_array(&toks);
	}
	return 0;
}<commit_msg>Breaks at eof.<commit_after>#include "lex/lex.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char** argv)
{
	char input[60];
	token_array toks;
	for(;;)
	{
		printf("%s ", ">>");
		fgets(input, 60, stdin);
		if(feof(stdin))
		{
			break;
		}
		char* err = lex(&toks, input);
		if(err != NULL)
		{
			printf("%s\n", err);
		}
		else
		{
			for(int index = 0; index < toks.len; index++)
			{
				if(toks.tok_array[index].tok_type != LIST)
				{
					printf("%s\n", toks.tok_array[index].tok_data.tok_str);
				}
				else
				{
					printf("%i\n\n", toks.tok_array[index].tok_data.list_len);
				}
			}
		}
		free_tok_array(&toks);
	}
	return 0;
}
{'fraction_non_alphanumeric': 0.2043906131718395, 'fraction_numerical': 0.009084027252081756, 'mean_word_length': 2.96996996996997, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '1620148', 'n_tokens_mistral': 690, 'n_tokens_neox': 579, 'n_words': 98}