<commit_before>#pragma once

#include <cassert>
#include <map>
#include <omp.h>

#include "global_config.hpp"

namespace mocc {
    /**
     * The \ref Timer class provides functionality for measuring the amount of
     * runtime spent on various tasks. Each \ref Timer can have a number of
     * "children," which comprise sub-\ref Timer for individual tasks of
     * interest.
     *
     * There is a global \ref RootTimer, which is treated as the parent \ref
     * Timer for the entire executable.
     */
    class Timer {
    public:
        /**
         * \brief Create a new \ref Timer object.
         */
        Timer(std::string name);

        /**
         * \brief Create a new \ref Timer object and possibly start it.
         *
         * \param name the name of the \ref Timer<commit_msg>Add Timer docs<commit_after>#pragma once

#include <cassert>
#include <map>
#include <omp.h>

#include "global_config.hpp"

namespace mocc {
    /**
     * The \ref Timer class provides functionality for measuring the amount of
     * runtime spent on various tasks. Each \ref Timer can have a number of
     * "children," which comprise sub-\ref Timer for individual tasks of
     * interest.
     *
     * Every \ref Timer maintains a total elapsed time, which may be accessed
     * via the \ref Timer::time() method. A \ref Timer can be thought of as a
     * stopwatch that is started with the \ref Timer::tic() method, and stopped
     * with the \ref Timer::toc() method. The elapsed time is a sum of all time
     * spent between calls the \ref Timer::tic() and \ref Timer::toc().
     *
     * There is a global \ref RootTimer, which is treated as the parent \ref
     * Timer for the entire executable.
     */
    class Timer {
    public:
        /**
         * \brief Create a new \ref Timer object.
         */
        Timer(std::string name);

        /**
         * \brief Create a new \ref Timer object and possibly start it.
         *
         * \param name the name of the \ref Timer
{'fraction_non_alphanumeric': 0.08955223880597014, 'fraction_numerical': 0.0, 'mean_word_length': 2.1870047543581617, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1027804', 'n_tokens_mistral': 578, 'n_tokens_neox': 537, 'n_words': 251}