<commit_before>//
// Created by dar on 1/23/16.
//

#ifndef C003_APPLICATION_H
#define C003_APPLICATION_H

#include "core/Timer.h"
#include "InputManager.h"
#include "os.h"

class Window;

class RenderManager;

class Application {

public:
    Application();
    void reinit();
    void update(bool dynamic);
    void resize(int width, int height);

    Window *getCurrentWindow() const { //TODO make private, handle window operations indirectly through application layer
        return window;
    }

    void handleClick(int i, int action, float x, float y);

    bool isRunning() const {
        return running;
    }

    ~Application();

private:
    bool running = true;
    Window *previousWindow = nullptr;
    Window *window = nullptr;
    RenderManager *renderer = nullptr;
    InputManager *inputManager = nullptr;
    Timer *timer = nullptr;
    const double TIME_STEP = 0.01;
    double accumulator;
#ifndef __DEFMOBILE__
    SDL_Event e;
#endif //__DEFMOBILE__

    void handleEvents();
};
<commit_msg>Increased TIME_STEP<commit_after>//
// Created by dar on 1/23/16.
//

#ifndef C003_APPLICATION_H
#define C003_APPLICATION_H

#include "core/Timer.h"
#include "InputManager.h"
#include "os.h"

class Window;

class RenderManager;

class Application {

public:
    Application();
    void reinit();
    void update(bool dynamic);
    void resize(int width, int height);

    Window *getCurrentWindow() const { //TODO make private, handle window operations indirectly through application layer
        return window;
    }

    void handleClick(int i, int action, float x, float y);

    bool isRunning() const {
        return running;
    }

    ~Application();

private:
    bool running = true;
    Window *previousWindow = nullptr;
    Window *window = nullptr;
    RenderManager *renderer = nullptr;
    InputManager *inputManager = nullptr;
    Timer *timer = nullptr;
    const double TIME_STEP = 0.016;
    double accumulator;
#ifndef __DEFMOBILE__
    SDL_Event e;
#endif //__DEFMOBILE__

    void handleEvents();
};

{'fraction_non_alphanumeric': 0.0980872976949485, 'fraction_numerical': 0.014222658165767533, 'mean_word_length': 3.2677824267782425, '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': '1154821', 'n_tokens_mistral': 646, 'n_tokens_neox': 609, 'n_words': 195}