<commit_before>#ifndef __FREQ_DICTIONARY_HPP
#define __FREQ_DICTIONARY_HPP

#include <fstream>
#include <string>
#include <exception>
#include <unordered_map>
#include <algorithm>
#include <vector>


class FreqDictionary {
    typedef std::unordered_map <std::string, size_t>  MapDictionary;
    typedef std::vector<std::pair <std::string, size_t>> Dictionary;
    typedef std::pair<std::string, size_t> Word;
public:
    FreqDictionary(const char* input_file_name, const char* output_file_name);
    void make_dictionary();
    void sort_dictionary();
    void print_dictionary();

private:
    std::ifstream input_file;
    std::ofstream output_file;
    Dictionary freq_dictionary;

};

#endif<commit_msg>fix warning<commit_after>#ifndef __FREQ_DICTIONARY_HPP
#define __FREQ_DICTIONARY_HPP

#include <fstream>
#include <string>
#include <exception>
#include <unordered_map>
#include <algorithm>
#include <vector>


class FreqDictionary {
    typedef std::pair<std::string, size_t> Word;
    typedef std::unordered_map <std::string, size_t>  MapDictionary;
    typedef std::vector<Word> Dictionary;
public:
    FreqDictionary(const char* input_file_name, const char* output_file_name);
    void make_dictionary();
    void sort_dictionary();
    void print_dictionary();

private:
    std::ifstream input_file;
    std::ofstream output_file;
    Dictionary freq_dictionary;

};

#endif
{'fraction_non_alphanumeric': 0.10886806056236481, 'fraction_numerical': 0.0, 'mean_word_length': 5.871287128712871, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, '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': '4998581', 'n_tokens_mistral': 458, 'n_tokens_neox': 443, 'n_words': 104}