<commit_before>#include "command.h"
#include "state.h"
#include "line.h"
#include "util.h"
#include "runtime/commands.h"

/**
 * FreeBSD x86 ELF Debugger.
 * @param argc not used
 * @param argv not used
 * @return 0 on success, 1 otherwise
 */
int 
main (int argc, char **argv)
{
	int state;
	char *line, *line_free;
	int return_value;
	struct command_t *command;
	struct command_args_t args;
	char *exec_path = NULL;
	pid_t pid = -1;
	struct breakpoint_t *head = NULL;

	ignore_sigint();
	fprintf(stdout, "Kvetoslavov Debugger\n");

	state = DEFAULT;
	return_value = 0;

	do
	{
		state_print(state);
		line_free = line = line_read_stdin(1024);
		if (line[0] == '\0')
		{
			free(line);
			continue;
		}

		command = command_match(registred_commands, line);
		if (command != NULL)
		{
			if (state_is_compatible(state, command))
			{
				unsigned int arg_count = line_argument_count(line, ' ');
				if (command->expected_arg_count == arg_count ||
				    command->expected_arg_count == -1)
				{
					char **arguments = line_get_arguments(&line, ' ');

					args.state = &state;
					args.text_args = arguments;
					args.exec_path = &exec_path;
					args.pid = &pid;
					args.head = head;<commit_msg>Fixed pointer error<commit_after>#include "command.h"
#include "state.h"
#include "line.h"
#include "util.h"
#include "runtime/commands.h"

/**
 * FreeBSD x86 ELF Debugger.
 * @param argc not used
 * @param argv not used
 * @return 0 on success, 1 otherwise
 */
int 
main (int argc, char **argv)
{
	int state;
	char *line, *line_free;
	int return_value;
	struct command_t *command;
	struct command_args_t args;
	char *exec_path = NULL;
	pid_t pid = -1;
	struct breakpoint_t *head = NULL;

	ignore_sigint();
	fprintf(stdout, "Kvetoslavov Debugger\n");

	state = DEFAULT;
	return_value = 0;

	do
	{
		state_print(state);
		line_free = line = line_read_stdin(1024);
		if (line[0] == '\0')
		{
			free(line);
			continue;
		}

		command = command_match(registred_commands, line);
		if (command != NULL)
		{
			if (state_is_compatible(state, command))
			{
				unsigned int arg_count = line_argument_count(line, ' ');
				if (command->expected_arg_count == arg_count ||
				    command->expected_arg_count == -1)
				{
					char **arguments = line_get_arguments(&line, ' ');

					args.state = &state;
					args.text_args = arguments;
					args.exec_path = &exec_path;
					args.pid = &pid;
					args.head = &head;
{'fraction_non_alphanumeric': 0.13728743260058068, 'fraction_numerical': 0.010783907092492741, 'mean_word_length': 3.508411214953271, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4277369', 'n_tokens_mistral': 1006, 'n_tokens_neox': 874, 'n_words': 213}