<commit_before>#include "command.h"
#include "state.h"
#include "line.h"

void
command_print_compatible_states (struct command_t *command)
{
	if (state_is_compatible(DEFAULT, command))   
		fprintf(stderr, "\tdef\n");

	if (state_is_compatible(PREPARING, command))   
		fprintf(stderr, "\tprep\n");

	if (state_is_compatible(RUNNING, command))   
		fprintf(stderr, "\trun\n");

	fprintf(stderr, "\n");
}

struct command_t*
command_match (struct command_t *commands, char *line)
{
	unsigned int i;

	for (i = 0; commands[i].name != NULL; i++)
		if (line_starts_with(line, commands[i].name) == 0)
			return &commands[i];

	return NULL;
}
<commit_msg>Removed \n and fixed prep -> prp<commit_after>#include "command.h"
#include "state.h"
#include "line.h"

void
command_print_compatible_states (struct command_t *command)
{
	if (state_is_compatible(DEFAULT, command))   
		fprintf(stderr, "\tdef\n");

	if (state_is_compatible(PREPARING, command))   
		fprintf(stderr, "\tprp\n");

	if (state_is_compatible(RUNNING, command))   
		fprintf(stderr, "\trun\n");
}

struct command_t*
command_match (struct command_t *commands, char *line)
{
	unsigned int i;

	for (i = 0; commands[i].name != NULL; i++)
		if (line_starts_with(line, commands[i].name) == 0)
			return &commands[i];

	return NULL;
}

{'fraction_non_alphanumeric': 0.1551590380139643, 'fraction_numerical': 0.0031031807602792862, 'mean_word_length': 4.972222222222222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3983832', 'n_tokens_mistral': 496, 'n_tokens_neox': 478, 'n_words': 109}