<commit_before>
#include <allegro5/allegro.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_image.h>

#include <string>
#include <cstdio>
#include <iostream>

#include "../include/common.hpp"
#include "../include/fonts.hpp"
#include "../include/utility.hpp"
#include "../include/scene.hpp"
#include "../include/mouse.hpp"
#include "../include/images.hpp"

///////////////// DEFAULT OPTIONS /////////////////
const double FPS         = 60;
const double scrollSpeed = 650;
const double map_separation    = 0.05;
const double tiles_separation  = 0.06;
const uint   rows     = 20;
const uint   cols     = 20;
const int    SCREEN_W    = 800;
const int    SCREEN_H    = 700;

////////////////// SCENE RENDER ///////////////////
void updateMovement(scene &s)
{
    if (keysPress[ALLEGRO_KEY_W]) s.moveY(+scrollSpeed/FPS);
    if (keysPress[ALLEGRO_KEY_S]) s.moveY(-scrollSpeed/FPS);
    if (keysPress[ALLEGRO_KEY_A]) s.moveX(+scrollSpeed/FPS);
    if (keysPress[ALLEGRO_KEY_D]) s.moveX(-scrollSpeed/FPS);
}

////////////////////// MAIN ///////////////////////
int main(int argc, char *argv[])
{
    // ALLEGRO VARIABLES
    ALLEGRO_DISPLAY     *display      = nullptr;
    ALLEGRO_EVENT_QUEUE *event_queue  = nullptr;
    ALLEGRO_TIMER       *redraw_timer = nullptr;

    bool redraw = true;

    // INITIALIZE ALLEGRO
    if (!al_init()                  ||
        !al_init_primitives_addon() ||
        !al_init_font_addon()       ||<commit_msg>Map now has rows & cols<commit_after>
#include <allegro5/allegro.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_image.h>

#include <string>
#include <cstdio>
#include <iostream>

#include "../include/common.hpp"
#include "../include/fonts.hpp"
#include "../include/utility.hpp"
#include "../include/scene.hpp"
#include "../include/mouse.hpp"
#include "../include/images.hpp"

///////////////// DEFAULT OPTIONS /////////////////
const double FPS         = 60;
const double scrollSpeed = 650;
const double map_separation    = 0.05;
const double tiles_separation  = 0.06;
const uint   rows     = 40;
const uint   cols     = 20;
const int    SCREEN_W    = 800;
const int    SCREEN_H    = 700;

////////////////// SCENE RENDER ///////////////////
void updateMovement(scene &s)
{
    if (keysPress[ALLEGRO_KEY_W]) s.moveY(+scrollSpeed/FPS);
    if (keysPress[ALLEGRO_KEY_S]) s.moveY(-scrollSpeed/FPS);
    if (keysPress[ALLEGRO_KEY_A]) s.moveX(+scrollSpeed/FPS);
    if (keysPress[ALLEGRO_KEY_D]) s.moveX(-scrollSpeed/FPS);
}

////////////////////// MAIN ///////////////////////
int main(int argc, char *argv[])
{
    // ALLEGRO VARIABLES
    ALLEGRO_DISPLAY     *display      = nullptr;
    ALLEGRO_EVENT_QUEUE *event_queue  = nullptr;
    ALLEGRO_TIMER       *redraw_timer = nullptr;

    bool redraw = true;

    // INITIALIZE ALLEGRO
    if (!al_init()                  ||
        !al_init_primitives_addon() ||
        !al_init_font_addon()       ||
{'fraction_non_alphanumeric': 0.19694010416666666, 'fraction_numerical': 0.016927083333333332, 'mean_word_length': 2.4296875, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4375137', 'n_tokens_mistral': 1135, 'n_tokens_neox': 1068, 'n_words': 216}