<commit_before>/**
 * NAME
 * ====
 *     head - copy the first part of files
 *
 * SYNOPSIS
 * ========
 *     head [-n NUMBER] [FILE...]
 *     head [--help|--version]
 *
 * DESCRIPTION
 * ===========
 *     For each FILE, read the first NUMBER lines and print them to standard output.
 *     If -n is not specified, it defaults to 10.
 *
 *     -n NUMBER    The NUMBER of lines to print.
 *     FILE         The file(s) to print.
 *
 *     --help       Print help text and exit.
 *     --version    Print version information and exit.
 */


#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "boreutils.h"

// https://pubs.opengroup.org/onlinepubs/9699919799/utilities/head.html<commit_msg>[head] Remove unneeded #include lines.<commit_after>/**
 * NAME
 * ====
 *     head - copy the first part of files
 *
 * SYNOPSIS
 * ========
 *     head [-n NUMBER] [FILE...]
 *     head [--help|--version]
 *
 * DESCRIPTION
 * ===========
 *     For each FILE, read the first NUMBER lines and print them to standard output.
 *     If -n is not specified, it defaults to 10.
 *
 *     -n NUMBER    The NUMBER of lines to print.
 *     FILE         The file(s) to print.
 *
 *     --help       Print help text and exit.
 *     --version    Print version information and exit.
 */


#include <string.h>
#include <stdlib.h>
#include "boreutils.h"

// https://pubs.opengroup.org/onlinepubs/9699919799/utilities/head.html
{'fraction_non_alphanumeric': 0.15563139931740613, 'fraction_numerical': 0.016382252559726963, 'mean_word_length': 2.3394077448747153, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 2, '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': '6830274', 'n_tokens_mistral': 523, 'n_tokens_neox': 477, 'n_words': 153}