<commit_before>/* INCLUDES */
#include <stdio.h>
#include "commands.h"

int main(int argc, char *argv[]) {
    char input_buffer[MAX_MSG_LENGTH];
    int  input_argc;
    char *input_argv[CMD_MAX_N_OPTIONS+CMD_MAX_N_OPTIONS_WITH_ARGS];
    int i;

    if (argc > 1) {
        execute_command(argc-1, &argv[1]);
    } else {
        while (TRUE) {
            printf("\n> ");
            fgets(input_buffer, MAX_MSG_LENGTH-3, stdin);
            for (i=0; input_buffer[i]; i++) {
                if (input_buffer[i] == '\n' || input_buffer[i] == '\r')
                    input_buffer[i] = 0;
            }
            input_argc = separate_args(input_buffer, input_argv);
            execute_command(input_argc, input_argv);
        }
    }
    return 0;
}<commit_msg>Modify main.c to prevent error on argc=0<commit_after>/* INCLUDES */
#include <stdio.h>
#include "commands.h"

int main(int argc, char *argv[]) {
    char input_buffer[MAX_MSG_LENGTH];
    int  input_argc;
    char *input_argv[CMD_MAX_N_OPTIONS+CMD_MAX_N_OPTIONS_WITH_ARGS];
    int i;

    if (argc > 1) {
        execute_command(argc-1, &argv[1]);
    } else {
        while (TRUE) {
            printf("\n> ");
            fgets(input_buffer, MAX_MSG_LENGTH-3, stdin);
            for (i=0; input_buffer[i]; i++) {
                if (input_buffer[i] == '\n' || input_buffer[i] == '\r')
                    input_buffer[i] = 0;
            }
            input_argc = separate_args(input_buffer, input_argv);
            if (input_argc) execute_command(input_argc, input_argv);
        }
    }
    return 0;
}
{'fraction_non_alphanumeric': 0.13932868904369855, 'fraction_numerical': 0.009499683343888538, 'mean_word_length': 2.1983805668016196, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4402573', 'n_tokens_mistral': 558, 'n_tokens_neox': 551, 'n_words': 106}