<commit_before>/* The Halfling Project - A Graphics Engine and Projects
 *
 * The Halfling Project is the legal property of <NAME>
 * Copyright <NAME> 2013
 */

#ifndef COMMON_HALFLING_SYS_H
#define COMMON_HALFLING_SYS_H

#include "common/typedefs.h"

// Only include the base windows libraries
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
#include <comip.h>

// GDI+
#include <gdiplus.h>

// Un-define min and max from the windows headers
#ifdef min
	#undef min
#endif

#ifdef max
	#undef max
#endif

#include <sstream>
#define AssertMsg(condition, message) \
	do {                                                                                                                                         \
		if (!(condition)) {                                                                                                                      \
			std::wstringstream debugStream;                                                                                                      \
			debugStream << "Assertion `" #condition "` failed in " << __FILE__  << " line " << __LINE__ << ": "                                  \
			            << message << std::endl << std::endl << "Do you want to debug the application?";                                         \
			std::wstring debugMessage(debugStream.str());                                                                                        \
			int nResult = MessageBoxW(GetForegroundWindow(), debugMessage.c_str(), L"Unexpected error encountered", MB_YESNO | MB_ICONERROR );   \
			if (nResult == IDYES)                                                                                                                \
			DebugBreak();                                                                                                                        \
		}                                                                                                                                        \
	} while (false)


#endif<commit_msg>COMMON: Fix formatting<commit_after>/* The Halfling Project - A Graphics Engine and Projects
 *
 * The Halfling Project is the legal property of <NAME>
 * Copyright <NAME> 2013
 */

#ifndef COMMON_HALFLING_SYS_H
#define COMMON_HALFLING_SYS_H

#include "common/typedefs.h"

// Only include the base windows libraries
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
#include <comip.h>

// GDI+
#include <gdiplus.h>

// Un-define min and max from the windows headers
#ifdef min
	#undef min
#endif

#ifdef max
	#undef max
#endif

#include <sstream>
#define AssertMsg(condition, message)                                                                                                            \
	do {                                                                                                                                         \
		if (!(condition)) {                                                                                                                      \
			std::wstringstream debugStream;                                                                                                      \
			debugStream << "Assertion `" #condition "` failed in " << __FILE__  << " line " << __LINE__ << ": "                                  \
			            << message << std::endl << std::endl << "Do you want to debug the application?";                                         \
			std::wstring debugMessage(debugStream.str());                                                                                        \
			int nResult = MessageBoxW(GetForegroundWindow(), debugMessage.c_str(), L"Unexpected error encountered", MB_YESNO | MB_ICONERROR );   \
			if (nResult == IDYES)                                                                                                                \
			DebugBreak();                                                                                                                        \
		}                                                                                                                                        \
	} while (false)
#endif
{'fraction_non_alphanumeric': 0.07452966714905933, 'fraction_numerical': 0.002894356005788712, 'mean_word_length': 0.7737382378100941, 'pattern_counts': {'":': 2, '<': 53, '<?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': 77, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4526361', 'n_tokens_mistral': 818, 'n_tokens_neox': 757, 'n_words': 217}