<commit_before>//-----------------------------------------------------------------------------
//  tbMgr.cc
//-----------------------------------------------------------------------------
#include "Pre.h"
#include "tbMgr.h"
#include "Core/Core.h"
#include "animation/tb_widget_animation.h"

using namespace tb;

namespace Oryol {
namespace _priv {

//-----------------------------------------------------------------------------
tbMgr::tbMgr() {
	TBWidgetsAnimationManager::Init();
    this->runLoopId = Core::PreRunLoop()->Add([this] {
        this->update();
    });
}

//-----------------------------------------------------------------------------
tbMgr::~tbMgr() {
    Core::PreRunLoop()->Remove(this->runLoopId);
	TBWidgetsAnimationManager::Shutdown();
}

//-----------------------------------------------------------------------------
void
tbMgr::update() {
	TBAnimationManager::Update();
	this->rootWidget.InvokeProcessStates();
	this->rootWidget.InvokeProcess();
}

} // namespace _priv
} // namespace Oryol


<commit_msg>Fixed tabs in TBUI::tbMgr<commit_after>//-----------------------------------------------------------------------------
//  tbMgr.cc
//-----------------------------------------------------------------------------
#include "Pre.h"
#include "tbMgr.h"
#include "Core/Core.h"
#include "animation/tb_widget_animation.h"

using namespace tb;

namespace Oryol {
namespace _priv {

//-----------------------------------------------------------------------------
tbMgr::tbMgr() {
    TBWidgetsAnimationManager::Init();
    this->runLoopId = Core::PreRunLoop()->Add([this] {
        this->update();
    });
}

//-----------------------------------------------------------------------------
tbMgr::~tbMgr() {
    Core::PreRunLoop()->Remove(this->runLoopId);
    TBWidgetsAnimationManager::Shutdown();
}

//-----------------------------------------------------------------------------
void
tbMgr::update() {
    TBAnimationManager::Update();
    this->rootWidget.InvokeProcessStates();
    this->rootWidget.InvokeProcess();
}

} // namespace _priv
} // namespace Oryol



{'fraction_non_alphanumeric': 0.48539971278123506, 'fraction_numerical': 0.0, 'mean_word_length': 1.031098153547133, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4865761', 'n_tokens_mistral': 482, 'n_tokens_neox': 488, 'n_words': 71}