<commit_before>#include <stdio.h>
#include <stdlib.h>
#include "ui.h"
#include "utils.h"

/**
 * Bunch of functions to display informations to the user.
 *
 * For the moment, displays on STDOUT
 */

/**
 * Function to display a list of cells with their informations (number of pawns
 * for now)
 */
void ui_list_cells(s_cell **cells, int nb_cells)
{
	int c;

	for (c = 0; c < nb_cells; c++) {
		printf("Cell %d: %d pawns\n", cells[c]->id, cells[c]->nb_pawns);
	}
}

/**
 * Function to ask the user to type a command
 */
void ui_prompt_command(char *command, size_t command_size)
{
	get_line("Command: ", command, command_size);

	printf("Typed command: %s\n", command);
}<commit_msg>useless here<commit_after>#include <stdio.h>
#include <stdlib.h>
#include "ui.h"
#include "utils.h"

/**
 * Bunch of functions to display informations to the user.
 *
 * For the moment, displays on STDOUT
 */

/**
 * Function to display a list of cells with their informations (number of pawns
 * for now)
 */
void ui_list_cells(s_cell **cells, int nb_cells)
{
	int c;

	for (c = 0; c < nb_cells; c++) {
		printf("Cell %d: %d pawns\n", cells[c]->id, cells[c]->nb_pawns);
	}
}

/**
 * Function to ask the user to type a command
 */
void ui_prompt_command(char *command, size_t command_size)
{
	get_line("Command: ", command, command_size);
}
{'fraction_non_alphanumeric': 0.15041572184429328, 'fraction_numerical': 0.0015117157974300832, 'mean_word_length': 4.034220532319392, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '2779472', 'n_tokens_mistral': 508, 'n_tokens_neox': 484, 'n_words': 153}