<commit_before>/**
 * File:            timeout.h
 * Namespace:       z::core
 * Description:     Extended version of the timer class
 *                  which includes a timeout boundary.
 *
 *
 * Author:          <NAME>
 * Email:           <EMAIL>
 * Last modified:   21 Apr. 2017
**/

#pragma once
#ifndef TIMEOUT_H_INCLUDED
#define TIMEOUT_H_INCLUDED

#include "timer.h"

namespace z
{
    namespace core
    {
        class timeout : public timer
        {
        private:
            long timeout_goal;

        public:
            inline timeout(long timeout_micros, bool run = true) : timer(run)
            {
                timeout_goal = timeout_micros;
            }


            inline void setTimeOut(long timeout_micros)
            {
                timeout_goal = timeout_micros;
            }

            inline bool timedOut()
            {
                return (this->micros() >= timeout_goal);
            }
        };
    }
}

#endif // TIMEOUT_H_INCLUDED
<commit_msg>timedOut() method does not alter any data<commit_after>/**
 * File:            timeout.h
 * Namespace:       z::core
 * Description:     Extended version of the timer class
 *                  which includes a timeout boundary.
 *
 *
 * Author:          <NAME>
 * Email:           <EMAIL>
 * Last modified:   21 Apr. 2017
**/

#pragma once
#ifndef TIMEOUT_H_INCLUDED
#define TIMEOUT_H_INCLUDED

#include "timer.h"

namespace z
{
    namespace core
    {
        class timeout : public timer
        {
        private:
            long timeout_goal;

        public:
            inline timeout(long timeout_micros, bool run = true) : timer(run)
            {
                timeout_goal = timeout_micros;
            }


            inline void setTimeOut(long timeout_micros)
            {
                timeout_goal = timeout_micros;
            }

            inline bool timedOut() const
            {
                return (this->micros() >= timeout_goal);
            }
        };
    }
}

#endif // TIMEOUT_H_INCLUDED

{'fraction_non_alphanumeric': 0.0840751730959446, 'fraction_numerical': 0.005934718100890208, 'mean_word_length': 1.4852579852579852, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '7273299', 'n_tokens_mistral': 591, 'n_tokens_neox': 554, 'n_words': 145}