<commit_before>#ifndef SPACE_INVADERS_GAME_H
#define SPACE_INVADERS_GAME_H

// forward declarations in the global namespace.
struct SDL_Window;
struct SDL_Renderer;

namespace space_invaders
{
  class Game final
  {
  public:
    enum class State { NOT_INITED, INITED, RUNNING, STOPPED };
  public:
    // ===============================
    // = forbidden default functions =
    // ===============================

    Game() = delete;
    Game(const Game& game) = delete;
    Game(Game&&) = delete;

    Game& operator=(const Game&) = delete;
    Game& operator=(Game&&) = delete;

    // =====================
    // = allowed functions =
    // =====================

    Game(int width, int height);

    ~Game();

    int run();
  private:
    State         mState;
    SDL_Window*   mWindow;
    SDL_Renderer* mRenderer;
  };
}

#endif<commit_msg>Added getters for the SDL window and renderer.<commit_after>#ifndef SPACE_INVADERS_GAME_H
#define SPACE_INVADERS_GAME_H

// forward declarations in the global namespace.
struct SDL_Window;
struct SDL_Renderer;

namespace space_invaders
{
  class Game final
  {
  public:
    enum class State { NOT_INITED, INITED, RUNNING, STOPPED };
  public:
    // ===============================
    // = forbidden default functions =
    // ===============================

    Game() = delete;
    Game(const Game& game) = delete;
    Game(Game&&) = delete;

    Game& operator=(const Game&) = delete;
    Game& operator=(Game&&) = delete;

    // =====================
    // = allowed functions =
    // =====================

    Game(int width, int height);

    ~Game();

    int run();

          SDL_Window* getWindow()       { return mWindow; }
    const SDL_Window* getWindow() const { return mWindow; }

          SDL_Renderer* getRenderer()       { return mRenderer; }
    const SDL_Renderer* getRenderer() const { return mRenderer; }
  private:
    State         mState;
    SDL_Window*   mWindow;
    SDL_Renderer* mRenderer;
  };
}

#endif
{'fraction_non_alphanumeric': 0.20380570856284427, 'fraction_numerical': 0.0, 'mean_word_length': 3.069246435845214, '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': '2170660', 'n_tokens_mistral': 631, 'n_tokens_neox': 587, 'n_words': 152}