<commit_before>
/*
 * Copyright (C) 2013 <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

#include "StdAfx.h"

#include <iostream>
#include <string>

#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>

#include "App.h"
#include "Exception.h"

using namespace AISDL;

/// Initialize each of the SDL subsystems.
static void InitApp() {
	SDL_LogSetAllPriority(SDL_LOG_PRIORITY_INFO);

	SDL_Log("Starting up all SDL subsystems and libraries.");

	if (SDL_Init(SDL_INIT_EVERYTHING) != 0) {
		throw Exception("SDL init", SDL_GetError());
	}

	int reqFmts = IMG_INIT_JPG | IMG_INIT_PNG;
	int actualFmts = IMG_Init(reqFmts);
	if ((actualFmts & reqFmts) != reqFmts) {
		throw Exception("SDL_image init", IMG_GetError());
	}<commit_msg>Crank up the logging level to DEBUG for now.<commit_after>
/*
 * Copyright (C) 2013 <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

#include "StdAfx.h"

#include <iostream>
#include <string>

#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>

#include "App.h"
#include "Exception.h"

using namespace AISDL;

/// Initialize each of the SDL subsystems.
static void InitApp() {
	SDL_LogSetAllPriority(SDL_LOG_PRIORITY_DEBUG);

	SDL_Log("Starting up all SDL subsystems and libraries.");

	if (SDL_Init(SDL_INIT_EVERYTHING) != 0) {
		throw Exception("SDL init", SDL_GetError());
	}

	int reqFmts = IMG_INIT_JPG | IMG_INIT_PNG;
	int actualFmts = IMG_Init(reqFmts);
	if ((actualFmts & reqFmts) != reqFmts) {
		throw Exception("SDL_image init", IMG_GetError());
	}
{'fraction_non_alphanumeric': 0.10786604361370716, 'fraction_numerical': 0.009345794392523364, 'mean_word_length': 4.465957446808511, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7096719', 'n_tokens_mistral': 894, 'n_tokens_neox': 832, 'n_words': 290}