<commit_before>/**
 * A shell-ish thing for running commands, which is compatible with nothing.
 */

#include <stdio.h>      // fputs, fgets, stdin, stderr
#include <stdlib.h>     // getenv, setenv
#include <string.h>     // strncpy, strlen, strncmp
#include <sys/wait.h>   // waitpid, WUNTRACED
#include <unistd.h>     // fork, execvp

#define LINE_BUF_SIZE (128 * 1024) // A line can be 128KB.
#define SHELLSPLIT_MAX_PIECES 1000 // Number of words per line.

static struct Settings_s {
    int no_prompt;
    int quick_exit;
} settings = {0};

static size_t decimal_places_in_int(int n) {
    size_t decimal_places = 0;
    int tmp = n;

    while (tmp >= 1) {
        decimal_places += 1;
        tmp /= 10;
    }

    if (decimal_places == 0) {
        decimal_places = 1;
    }

    return decimal_places;
}
<commit_msg>[ish] Correct comments about header files.<commit_after>/**
 * A shell-ish thing for running commands, which is compatible with nothing.
 */

#include <stdio.h>      // fputs, fgets, perror, puts, stdout, stderr, printf (FIXME)
#include <stdlib.h>     // exit, getenv, setenv
#include <string.h>     // strlen, strncmp, strcmp (FIXME)
#include <sys/wait.h>   // waitpid, WEXITSTATUS, WIFEXITED, WIFSIGNALED, WTERMSIG, WUNTRACED
#include <unistd.h>     // fork, execvp

#define LINE_BUF_SIZE (128 * 1024) // A line can be 128KB.
#define SHELLSPLIT_MAX_PIECES 1000 // Number of words per line.

static struct Settings_s {
    int no_prompt;
    int quick_exit;
} settings = {0};

static size_t decimal_places_in_int(int n) {
    size_t decimal_places = 0;
    int tmp = n;

    while (tmp >= 1) {
        decimal_places += 1;
        tmp /= 10;
    }

    if (decimal_places == 0) {
        decimal_places = 1;
    }

    return decimal_places;
}

{'fraction_non_alphanumeric': 0.12033898305084746, 'fraction_numerical': 0.024858757062146894, 'mean_word_length': 2.7761194029850746, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '1107473', 'n_tokens_mistral': 695, 'n_tokens_neox': 627, 'n_words': 185}