<commit_before>#include <iomanip>
#include <iostream>
#include "cmdline.h"

CmdLine::CmdLine(const std::string &usage)
    : m_usage(usage)
{
}

void CmdLine::add(const std::string &arg, const std::string &info)
{
    m_flagval[arg] = false;
    m_flaginfo[arg] = info;
}

void CmdLine::add(const std::string &arg, const std::string &info, const std::string &val)
{
    m_argval[arg] = val;
    m_arginfo[arg] = info;
}

void CmdLine::help() const
{
    std::cerr << std::left;
    std::cerr << "usage: " << m_usage << "\n";

    for (auto &e : m_argval)
        std::cerr << "  " << std::setw(25) << e.first + "  <" + e.second + "> " << m_arginfo.at(e.first) << "\n";<commit_msg>updated cmdline help<commit_after>#include <iomanip>
#include <iostream>
#include "cmdline.h"

CmdLine::CmdLine(const std::string &usage)
    : m_usage(usage)
{
}

void CmdLine::add(const std::string &arg, const std::string &info)
{
    m_flagval[arg] = false;
    m_flaginfo[arg] = info;
}

void CmdLine::add(const std::string &arg, const std::string &info, const std::string &val)
{
    m_argval[arg] = val;
    m_arginfo[arg] = info;
}

void CmdLine::help() const
{
    std::cerr << std::left;
    std::cerr << "usage: " << m_usage << "\n";

    for (auto &e : m_argval)
        std::cerr << "  " << std::setw(25) << e.first + "  <" + e.second + ">" << " " << m_arginfo.at(e.first) << "\n";
{'fraction_non_alphanumeric': 0.20538965768390385, 'fraction_numerical': 0.0029133284777858705, 'mean_word_length': 3.8551236749116606, 'pattern_counts': {'":': 0, '<': 47, '<?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': '4170018', 'n_tokens_mistral': 558, 'n_tokens_neox': 552, 'n_words': 109}