<commit_before>#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
#include <xcb/xcb.h>
#include "helpers.h"

#define FORMAT_ONE   "%i"
#define FORMAT_TWO  "%ix%i"
enum {RETURN_BOTH, RETURN_WIDTH, RETURN_HEIGHT};

int main (int argc, char *argv[]) {

    int return_what = RETURN_BOTH;
    char format[MAXLEN] = {0};
    char opt;

    while ((opt = getopt(argc, argv, "vhHW")) != -1) {
        switch (opt) {
            case 'h':
                printf("sres [-h|-v|-H|-W] [FORMAT]\n");
                return EXIT_SUCCESS;
                break;
            case 'v':
                printf("%s\n", VERSION);
                return EXIT_SUCCESS;
                break;
            case 'H':
                return_what = RETURN_WIDTH;
                break;<commit_msg>`getopt` only requires `unistd.h`<commit_after>#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <xcb/xcb.h>
#include "helpers.h"

#define FORMAT_ONE   "%i"
#define FORMAT_TWO  "%ix%i"
enum {RETURN_BOTH, RETURN_WIDTH, RETURN_HEIGHT};

int main (int argc, char *argv[]) {

    int return_what = RETURN_BOTH;
    char format[MAXLEN] = {0};
    char opt;

    while ((opt = getopt(argc, argv, "vhHW")) != -1) {
        switch (opt) {
            case 'h':
                printf("sres [-h|-v|-H|-W] [FORMAT]\n");
                return EXIT_SUCCESS;
                break;
            case 'v':
                printf("%s\n", VERSION);
                return EXIT_SUCCESS;
                break;
            case 'H':
                return_what = RETURN_WIDTH;
                break;
{'fraction_non_alphanumeric': 0.1477132262051916, 'fraction_numerical': 0.002472187886279357, 'mean_word_length': 1.8654867256637169, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7494451', 'n_tokens_mistral': 580, 'n_tokens_neox': 551, 'n_words': 130}