<commit_before>#include <stdio.h>

#include "core/gfx.h"
#include "core/gol.h"

int main(int argc, char* argv[])
{

    int running = 1;

    Screen s = gfx_create_screen();

    if (!s) {
        return 1;
    }

    SDL_Event event;

    GOL g = gol_create_grid(100, 100);

    while(running) {
        while(SDL_PollEvent(&event)) {

            switch (event.type) {

            case SDL_QUIT:
                running = 0;
                break;

            case SDL_KEYDOWN:
                switch (event.key.keysym.sym) {
                case SDLK_ESCAPE:
                    // Escape key
                    running = 0;
                    break;
                default:
                    break;
                }
                break;

            case SDL_MOUSEBUTTONDOWN:
                //iterate cells
                break;
            }
        }
    }


    return 0;

}
<commit_msg>Filling in last bits in main event loop<commit_after>#include <stdio.h>

#include "core/gfx.h"
#include "core/gol.h"

int main(int argc, char* argv[])
{

    int running = 1;

    Screen s = gfx_create_screen();

    if (!s) {
        return 1;
    }

    SDL_Event event;

    GOL g = gol_create_grid(100, 100);

    gol_randomise_grid(g);

    while(running) {
        while(SDL_PollEvent(&event)) {

            switch (event.type) {

            case SDL_QUIT:
                running = 0;
                break;

            case SDL_KEYDOWN:
                switch (event.key.keysym.sym) {
                case SDLK_ESCAPE:
                    // Escape key
                    running = 0;
                    break;
                default:
                    break;
                }
                break;

            case SDL_MOUSEBUTTONDOWN:
                g = gol_iterate_grid(g);
                gfx_draw_screen(g, s);
                break;
            }
        }
    }

    gol_cleanup_grid(g);

    gfx_cleanup_screen(s);

    return 0;

}

{'fraction_non_alphanumeric': 0.09405185561769192, 'fraction_numerical': 0.011184544992374174, 'mean_word_length': 1.1025641025641026, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3539779', 'n_tokens_mistral': 660, 'n_tokens_neox': 574, 'n_words': 126}