<commit_before>#include "Timer.h"

Timer::Timer()
{
    expireTime = 0;
    active = false;
    ran = false;

    next = this;
    prev = this;
}

Timer::~Timer()
{
//    ASSERT(active == false);
//    ASSERT(next == prev && next == this);
}

void Timer::SetCallable(Callable callable_)
{
    callable = callable_;
}
    
void Timer::SetExpireTime(uint64_t expireTime_)
{
    expireTime = expireTime_;
}

bool Timer::IsActive()
{
    return active;
}

uint64_t Timer::GetExpireTime()
{
    return expireTime;
}

void Timer::Execute()
{
    Call(callable);
}

YieldTimer::YieldTimer()
{
    expireTime = 0;
}

void YieldTimer::SetExpireTime(uint64_t)
{
    STOP_FAIL(1, "Program bug: YieldTimer::SetExpireTime() called");
}
<commit_msg>Added ASSERT to Timer.<commit_after>#include "Timer.h"

Timer::Timer()
{
    expireTime = 0;
    active = false;
    ran = false;

    next = this;
    prev = this;
}

Timer::~Timer()
{
    ASSERT(active == false);
//    ASSERT(next == prev && next == this);
}

void Timer::SetCallable(Callable callable_)
{
    callable = callable_;
}
    
void Timer::SetExpireTime(uint64_t expireTime_)
{
    expireTime = expireTime_;
}

bool Timer::IsActive()
{
    return active;
}

uint64_t Timer::GetExpireTime()
{
    return expireTime;
}

void Timer::Execute()
{
    Call(callable);
}

YieldTimer::YieldTimer()
{
    expireTime = 0;
}

void YieldTimer::SetExpireTime(uint64_t)
{
    STOP_FAIL(1, "Program bug: YieldTimer::SetExpireTime() called");
}

{'fraction_non_alphanumeric': 0.15098171970209884, 'fraction_numerical': 0.012186865267433988, 'mean_word_length': 3.6920634920634923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2732608', 'n_tokens_mistral': 576, 'n_tokens_neox': 546, 'n_words': 105}