<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <time.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>

const Uint16 _windowWidth = 1024, _windowHeight = 768;
Uint8 _quit = 0;

SDL_Window *_window = NULL;
SDL_Event _event;

SDL_Surface *_screen;

SDL_Surface *srcSurface;
SDL_Surface *mainSurface;

SDL_Rect srcSurface_rect, mainSurface_rect, randomRect;

Uint16 srcWidth, srcHeight;

Uint16 mainSum, testSum;

Uint32 _color;
Uint8 _r, _g, _b, sr, sg, sb, mr, mg, mb;

Uint16 iw, ih;

Uint32 *_src_pixelData_ptr;
Uint32 *_main_pixelData_ptr;

char filenameBuffer[20];

const Uint8 _squaresPerCycle = 50;	// number of square plotting cycles per frame.
const Uint8 squareMaxSize = 6;
const Uint8 squareMinSize = 1;

void SDLFreeSurfaces() {
	SDL_FreeSurface(srcSurface);
	SDL_FreeSurface(mainSurface);
};


void SDLQuit() {
	SDLFreeSurfaces();

	SDL_FreeSurface(_screen);
	SDL_DestroyWindow(_window);
	SDL_Quit();
};


void SDLerror(const char *fmt, ...) {
	va_list args;
  va_start(args, fmt);
	vfprintf(stderr, fmt, args);
	va_end(args);
};


int SDLinit() {
	if(SDL_Init(SDL_INIT_VIDEO) != 0) {
		SDLerror("SDL_Init error: %s\n",SDL_GetError());
		return 0;
	}
<commit_msg>Minor fixes<commit_after>#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <time.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>

const Uint16 _windowWidth = 1024, _windowHeight = 768;
Uint8 _quit = 0;

SDL_Window *_window = NULL;
SDL_Event _event;

SDL_Surface *_screen;

SDL_Surface *srcSurface;
SDL_Surface *mainSurface;

SDL_Rect srcSurface_rect, mainSurface_rect, randomRect;

Uint16 srcWidth, srcHeight;

Uint16 mainSum, testSum;

Uint32 _color;
Uint8 _r, _g, _b, sr, sg, sb, mr, mg, mb;

Uint16 iw, ih;

Uint32 *_src_pixelData_ptr;
Uint32 *_main_pixelData_ptr;

char filenameBuffer[20];

const Uint8 _squaresPerCycle = 50;	// number of square plotting cycles per frame.
const Uint8 squareMaxSize = 5;
const Uint8 squareMinSize = 1;

void SDLFreeSurfaces() {
	SDL_FreeSurface(srcSurface);
	SDL_FreeSurface(mainSurface);
};


void SDLQuit() {
	SDLFreeSurfaces();

	SDL_FreeSurface(_screen);
	SDL_DestroyWindow(_window);
	SDL_Quit();
};


void SDLerror(const char *fmt, ...) {
	va_list args;
  va_start(args, fmt);
	vfprintf(stderr, fmt, args);
	va_end(args);
};


int SDLinit() {
	if(SDL_Init(SDL_INIT_VIDEO) != 0) {
		SDLerror("SDL_Init error: %s\n",SDL_GetError());
		return 0;
	}

{'fraction_non_alphanumeric': 0.12706270627062707, 'fraction_numerical': 0.03052805280528053, 'mean_word_length': 5.554054054054054, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3758004', 'n_tokens_mistral': 1068, 'n_tokens_neox': 938, 'n_words': 227}