<commit_before>/** @file
 *
 * @ingroup foundationLibrary 
 *
 * @brief Jamoma's lowest-level base class and related infrastructure.
 *
 * @details The Jamoma base class.
 *
 * @authors <NAME>, <NAME>, <NAME>
 *
 * @copyright Copyright © 2008, <NAME> @n
 * This code is licensed under the terms of the "New BSD License" @n
 * http://creativecommons.org/licenses/BSD/
 */

#ifndef __TT_BASE_H__
#define __TT_BASE_H__

// Platform Sniffing
// Ideally the platform would already be set with a -D option to gcc...
#ifndef TT_PLATFORM_LINUX
	#ifndef TT_PLATFORM_IOS
		#ifndef TT_PLATFORM_WIN
			#ifdef WIN_VERSION
				#define TT_PLATFORM_WIN
			#else
				#ifndef TT_PLATFORM_MAC
					#define TT_PLATFORM_MAC
				#endif
			#endif
		#endif
	#endif
#endif

#include <algorithm><commit_msg>TTBase: better default platform sniffing.<commit_after>/** @file
 *
 * @ingroup foundationLibrary 
 *
 * @brief Jamoma's lowest-level base class and related infrastructure.
 *
 * @details The Jamoma base class.
 *
 * @authors <NAME>, <NAME>, <NAME>
 *
 * @copyright Copyright © 2008, <NAME> @n
 * This code is licensed under the terms of the "New BSD License" @n
 * http://creativecommons.org/licenses/BSD/
 */

#ifndef __TT_BASE_H__
#define __TT_BASE_H__

// Platform Sniffing
// Ideally the platform would already be set with a -D option to gcc...

#if defined( __APPLE__ )
// TARGET_OS_IPHONE is defined on the mac as 0, so use if, not ifdef below
	#include "TargetConditionals.h"

	#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
		#ifndef TT_PLATFORM_IOS
			#define TT_PLATFORM_IOS
		#endif
	#else // TARGET_OS_MAC
		#ifndef TT_PLATFORM_MAC
			#define TT_PLATFORM_MAC
		#endif
	#endif
// win64 must come before win32
#elif defined ( _WIN64 )
	#define TT_PLATFORM_WIN
#elif _WIN32
	#define TT_PLATFORM_WIN
#elif __linux
	#define TT_PLATFORM_LINUX
#endif

#ifndef TT_PLATFORM_LINUX
	#ifndef TT_PLATFORM_IOS
		#ifndef TT_PLATFORM_WIN
			#ifdef WIN_VERSION
				#define TT_PLATFORM_WIN
			#else
				#ifndef TT_PLATFORM_MAC
					#define TT_PLATFORM_MAC
				#endif
			#endif
		#endif
	#endif
#endif

#include <algorithm>
{'fraction_non_alphanumeric': 0.09290138161029061, 'fraction_numerical': 0.008099094807050978, 'mean_word_length': 3.9295774647887325, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3611961', 'n_tokens_mistral': 835, 'n_tokens_neox': 739, 'n_words': 221}