<commit_before>#include <fstream>
#include <sstream>
#include <string>
#include <vector>

#include "exception/exception.hpp"
#include "parser/parser.hpp"

int main(int argc, char** argv)
{
    if (argc > 2)
    {
        std::ifstream fin;
        fin.open(argv[1], std::ios::in);

        std::ofstream fout;
        fout.open(argv[2], std::ios::out);

        try
        {
            Parser parser;
            parser.parse(fout, fin);
        }
        catch (const Exception& e)
        {
            std::cout << "Error: " << e << std::endl;
            return 1;
        }
    }

    return 0;
}<commit_msg>Added usage information<commit_after>#include <fstream>
#include <sstream>
#include <string>
#include <vector>

#include "exception/exception.hpp"
#include "parser/parser.hpp"

int main(int argc, char** argv)
{
    if (argc == 2)
    {
        std::ifstream fin;
        fin.open(argv[1], std::ios::in);

        std::ofstream fout;
        fout.open(argv[2], std::ios::out);

        try
        {
            Parser parser;
            parser.parse(fout, fin);
        }
        catch (const Exception& e)
        {
            std::cout << "Error: " << e << std::endl;
            return 1;
        }
    }
    else
    {
        std::cout << "Usage: tml_parse <input-file> <output-file>"
                  << std::endl;
    }

    return 0;
}
{'fraction_non_alphanumeric': 0.1535635562086701, 'fraction_numerical': 0.0073475385745775165, 'mean_word_length': 1.8375, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 14, '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': '6824357', 'n_tokens_mistral': 459, 'n_tokens_neox': 444, 'n_words': 99}