<commit_before>#pragma once

#if defined(WIN32) || defined(WIN64)

#    include <fmt/printf.h>

#    define WIN32_LEAN_AND_MEAN
#    include <windows.h>

#    include <cstring>

namespace atlas::core
{
    template<typename... Args>
    void winDebugPrint(std::string const& format, Args const&... args)
    {
        auto message = fmt::sprintf(format, std::forward(args)...);
        static constexpr auto maxLogLength = 16 * 1024;

        char buffer[maxLogLength];
        std::memcpy(buffer, message.c_str(), message.size() + 1);
        strncat_s(buffer, "\n", 3);

        WCHAR wszBuffer[maxLogLength] = {0};
        MultiByteToWideChar(CP_UTF8, 0, buffer, -1, wszBuffer,
                            sizeof(wszBuffer));
        OutputDebugStringW(wszBuffer);
    }
} // namespace atlas::core

#endif
<commit_msg>[brief] Fixes typo on Windows macros.<commit_after>#pragma once

#if defined(_WIN32) || defined(_WIN64)

#include <fmt/printf.h>

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

#include <cstring>

namespace atlas::core
{
    template<typename... Args>
    void winDebugPrint(std::string const& format, Args const&... args)
    {
        auto message = fmt::sprintf(format, std::forward(args)...);
        static constexpr auto maxLogLength = 16 * 1024;

        char buffer[maxLogLength];
        std::memcpy(buffer, message.c_str(), message.size() + 1);
        strncat_s(buffer, "\n", 3);

        WCHAR wszBuffer[maxLogLength] = {0};
        MultiByteToWideChar(CP_UTF8, 0, buffer, -1, wszBuffer,
                            sizeof(wszBuffer));
        OutputDebugStringW(wszBuffer);
    }
} // namespace atlas::core

#endif

{'fraction_non_alphanumeric': 0.137409200968523, 'fraction_numerical': 0.021791767554479417, 'mean_word_length': 2.8894117647058826, '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': '1662132', 'n_tokens_mistral': 565, 'n_tokens_neox': 538, 'n_words': 117}