<commit_before>#pragma once

#include <Windows.h>
#include <tchar.h>
#include <cassert>
#include <string>

// undefining max macro from windows.h, it collides with std::max
#undef max

#if defined(_UNICODE)
typedef std::wstring tstring;
#else
typedef std::string tstring;
#endif

inline void Log(TCHAR* msg) {
    tstring str = msg;
    str.append(_T("\n"));
    OutputDebugString(str.c_str());
}<commit_msg>disabled output window logging for release builds<commit_after>#pragma once

#include <Windows.h>
#include <tchar.h>
#include <cassert>

// undefining max macro from windows.h, it collides with std::max
#undef max

// tools for debug builds
#ifdef _DEBUG
#include <string>

#if defined(_UNICODE)
typedef std::wstring tstring;
#else
typedef std::string tstring;
#endif

inline void Log(TCHAR* msg) {
    tstring str = msg;
    str.append(_T("\n"));
    OutputDebugString(str.c_str());
}
#else
inline void Log(TCHAR* msg) {}
#endif
{'fraction_non_alphanumeric': 0.1344717182497332, 'fraction_numerical': 0.0, 'mean_word_length': 4.936708860759493, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3929300', 'n_tokens_mistral': 332, 'n_tokens_neox': 318, 'n_words': 98}