<commit_before>#include <SDLWindow.hpp>
#include <SDLException.hpp>
#include <SDL.hpp>
#include <GL/glew.h>
#include <GL/gl.h>

#include <exception>
#include <iostream>

using namespace std;
using namespace tetra;

int main()
{
    tetra::SDL sdl{};

    try
    {
        SDLWindow window = SDLWindow::Builder{sdl}
            .x(400)
            .width(1200)
            .build();

        auto shouldExit = false;
        auto event = SDL_Event{};
        while (!shouldExit)
        {
            while (SDL_PollEvent(&event))
            {
                if (event.type == SDL_QUIT)
                {
                    shouldExit = true;
                }

                glClearColor(1.0, 1.0, 1.0, 1.0);
                glClear(GL_COLOR_BUFFER_BIT);

                window.gl_SwapWindow();
            }
        }
    }<commit_msg>move glClear to main loop from event loop<commit_after>#include <SDLWindow.hpp>
#include <SDLException.hpp>
#include <SDL.hpp>
#include <GL/glew.h>
#include <GL/gl.h>

#include <exception>
#include <iostream>

using namespace std;
using namespace tetra;

int main()
{
    tetra::SDL sdl{};

    try
    {
        SDLWindow window = SDLWindow::Builder{sdl}
            .x(400)
            .width(1200)
            .build();

        auto shouldExit = false;
        auto event = SDL_Event{};
        while (!shouldExit)
        {
            while (SDL_PollEvent(&event))
            {
                if (event.type == SDL_QUIT)
                {
                    shouldExit = true;
                }
            }

            glClearColor(1.0, 1.0, 1.0, 1.0);
            glClear(GL_COLOR_BUFFER_BIT);

            window.gl_SwapWindow();
        }
    }
{'fraction_non_alphanumeric': 0.11985898942420682, 'fraction_numerical': 0.01762632197414806, 'mean_word_length': 1.5192307692307692, 'pattern_counts': {'":': 0, '<': 17, '<?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': '6220673', 'n_tokens_mistral': 584, 'n_tokens_neox': 515, 'n_words': 111}