<commit_before>#include "pair.h"

pair new_pair( const char c, const int freq ) {
    pair p;

    p.c = c;
    p.freq = freq;

    return p;
}

int compare_freq( const void *a, const void *b ) {
    const pair *ia = ( const pair * ) a;
    const pair *ib = ( const pair * ) b;
    return ib->freq - ia->freq;
}
<commit_msg>Fix character frequency map to be sorted in ascending order<commit_after>#include "pair.h"

pair new_pair( const char c, const int freq ) {
    pair p;

    p.c = c;
    p.freq = freq;

    return p;
}

int compare_freq( const void *a, const void *b ) {
    const pair *ia = ( const pair * ) a;
    const pair *ib = ( const pair * ) b;
    return ia->freq - ib->freq;
}

{'fraction_non_alphanumeric': 0.12968299711815562, 'fraction_numerical': 0.0, 'mean_word_length': 2.4405940594059405, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5402692', 'n_tokens_mistral': 259, 'n_tokens_neox': 253, 'n_words': 91}