<commit_before>#include <string.h>
#include "dirstream.h"

int alphasort(const __ptr_t __e1, const __ptr_t __e2)
{
    const struct dirent *a = __e1;
    const struct dirent *b = __e2;
    return (strcmp(a->d_name, b->d_name));
}
<commit_msg>Turns out alphasort was totally broken.  This fixed one works.  -Erik<commit_after>#include <string.h>
#include "dirstream.h"

int alphasort(const void * a, const void * b)
{
    return strcmp ((*(const struct dirent **) a)->d_name,
	    (*(const struct dirent **) b)->d_name);
}

{'fraction_non_alphanumeric': 0.14367816091954022, 'fraction_numerical': 0.007662835249042145, 'mean_word_length': 4.127450980392157, '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': '4011959', 'n_tokens_mistral': 202, 'n_tokens_neox': 204, 'n_words': 55}