<commit_before>#include <cstdlib>
#include "util/util.h"

FILE *sfopen(const char *path, const char *mode)
{
    FILE *fil = fopen(path, mode);
    if (fil == NULL)
    {
        printf("Cannot open file '%s' with mode '%s'\n", path, mode);
        exit(1);
    }
    return fil;
}
<commit_msg>Sent file open error messages from sfope() to stderr<commit_after>#include <cstdlib>
#include "util/util.h"

FILE *sfopen(const char *path, const char *mode)
{
    FILE *fil = fopen(path, mode);
    if (fil == NULL)
    {
        fprintf(stderr, "Cannot open file '%s' with mode '%s'\n", path, mode);
        exit(1);
    }
    return fil;
}

{'fraction_non_alphanumeric': 0.15880503144654087, 'fraction_numerical': 0.0031446540880503146, 'mean_word_length': 2.932098765432099, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2072842', 'n_tokens_mistral': 228, 'n_tokens_neox': 225, 'n_words': 70}