<commit_before>#include <stingray/toolkit/ITaskExecutor.h>

#if defined(PLATFORM_OSPLUS)
#	include <stingray/platform/osplus/threads/OS21TaskExecutor.h>
#else
#	include <stingray/toolkit/ThreadTaskExecutor.h>
#endif
#include <stingray/log/Logger.h>


namespace stingray
{

	ITaskExecutorPtr ITaskExecutor::Create(const std::string& name, const function<void(const std::exception&)>& exceptionHandler) 
#if defined(PLATFORM_OSPLUS)
	{ return make_shared<osplus::TaskExecutor>(name, exceptionHandler); }
#else
	{ return make_shared<ThreadTaskExecutor>(name, exceptionHandler); }
#endif


	void ITaskExecutor::DefaultExceptionHandler(const std::exception& ex)
	{ Logger::Error() << "Uncaught exception in ITaskExecutor: " << diagnostic_information(ex); }

}
<commit_msg>Removed no longer necessary diagnostic_information from most files<commit_after>#include <stingray/toolkit/ITaskExecutor.h>

#if defined(PLATFORM_OSPLUS)
#	include <stingray/platform/osplus/threads/OS21TaskExecutor.h>
#else
#	include <stingray/toolkit/ThreadTaskExecutor.h>
#endif
#include <stingray/log/Logger.h>


namespace stingray
{

	ITaskExecutorPtr ITaskExecutor::Create(const std::string& name, const function<void(const std::exception&)>& exceptionHandler)
#if defined(PLATFORM_OSPLUS)
	{ return make_shared<osplus::TaskExecutor>(name, exceptionHandler); }
#else
	{ return make_shared<ThreadTaskExecutor>(name, exceptionHandler); }
#endif


	void ITaskExecutor::DefaultExceptionHandler(const std::exception& ex)
	{ Logger::Error() << "Uncaught exception in ITaskExecutor: " << ex; }

}

{'fraction_non_alphanumeric': 0.12419974391805377, 'fraction_numerical': 0.002560819462227913, 'mean_word_length': 8.140350877192983, 'pattern_counts': {'":': 0, '<': 25, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6296942', 'n_tokens_mistral': 516, 'n_tokens_neox': 499, 'n_words': 91}