<commit_before>#include "TickManager.h"
#include <SFML/System.hpp>
#include <iostream>

TickManager::TickManager()
{
    m_tickTime = 0;
}

void TickManager::add(std::shared_ptr<TickObject> tick)
{
    m_tickObjects.push_back(tick);
}

void TickManager::run()
{
    sf::Clock clock;
    sf::Time time;

    while(g_window->isOpen())
    {
        time = clock.getElapsedTime();

        if((time.asMilliseconds() / 5) > m_tickTime)
        {
            if(!m_tickObjects.empty())
            {
                for(auto t : m_tickObjects)
                {
                    t->TickUpdate(m_tickTime);
                }
            }
        }

        m_tickTime = (time.asMilliseconds() / 5);

        if(m_tickTime > 23999)
        {
            m_tickTime = 0;
            clock.restart();
        }

    }<commit_msg>Fix time scaling.<commit_after>#include "TickManager.h"
#include <SFML/System.hpp>
#include <iostream>

TickManager::TickManager()
{
    m_tickTime = 0;
}

void TickManager::add(std::shared_ptr<TickObject> tick)
{
    m_tickObjects.push_back(tick);
}

void TickManager::run()
{
    sf::Clock clock;
    sf::Time time;

    while(g_window->isOpen())
    {
        time = clock.getElapsedTime();

        if((time.asMilliseconds() / 50) > m_tickTime)
        {
            if(!m_tickObjects.empty())
            {
                for(auto t : m_tickObjects)
                {
                    t->TickUpdate(m_tickTime);
                }
            }
        }

        m_tickTime = (time.asMilliseconds() / 50);

        if(m_tickTime > 23999)
        {
            m_tickTime = 0;
            clock.restart();
        }

    }
{'fraction_non_alphanumeric': 0.13240628778718258, 'fraction_numerical': 0.012091898428053204, 'mean_word_length': 1.7220394736842106, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, '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': '488200', 'n_tokens_mistral': 575, 'n_tokens_neox': 537, 'n_words': 78}