<commit_before>
#pragma once

#define _HR(statement) if (SUCCEEDED(hr)) {hr = _HRLOG(statement, #statement, __FILE__, __LINE__);}

__declspec(selectany) CTraceCategory FAILED_HRESULT(_T("Failed HRESULT"), 1);

inline HRESULT _HRLOG(HRESULT hr, LPCSTR statement, LPCSTR file, int line)
{
	if (FAILED(hr))
	{
		ATL::CTraceFileAndLineInfo(file, line)(FAILED_HRESULT, 1, "0x%08x %s\n", hr, statement);
	}
	return hr;
}

template<class T, class TInit>
class CComCreatableObject : <commit_msg>Removing logging in release build<commit_after>
#pragma once


#ifdef _DEBUG
#define _HR(statement) if (SUCCEEDED(hr)) {hr = _HRLOG(statement, #statement, __FILE__, __LINE__);}
__declspec(selectany) CTraceCategory FAILED_HRESULT(_T("Failed HRESULT"), 1);

inline HRESULT _HRLOG(HRESULT hr, LPCSTR statement, LPCSTR file, int line)
{
	if (FAILED(hr))
	{
		ATL::CTraceFileAndLineInfo(file, line)(FAILED_HRESULT, 1, "0x%08x %s\n", hr, statement);
	}
	return hr;
}
#else
#define _HR(statement) if (SUCCEEDED(hr)) {hr = (statement);}
#endif

template<class T, class TInit>
class CComCreatableObject : 
{'fraction_non_alphanumeric': 0.13665743305632502, 'fraction_numerical': 0.009233610341643583, 'mean_word_length': 6.855072463768116, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6122223', 'n_tokens_mistral': 417, 'n_tokens_neox': 415, 'n_words': 102}