<commit_before>#include <Log.h>
#include <Utility.h>
#include <Core.h>

extern std::ofstream g_logStream;

namespace GW2Radial
{

Log::Log()
{
#ifdef _DEBUG
    isVisible_ = true;
#endif
}

void Log::Draw()
{
    if (!isVisible_)
        return;

    ImGui::SetNextWindowSize({ 800, 400 }, ImGuiCond_FirstUseEver);
    if (!ImGui::Begin("GW2Radial Log Window", &isVisible_))
    {
        ImGui::End();
        return;
    }

    if (ImGui::Button("Clear"))
        lines_.clear();
    ImGui::SameLine();

    bool scrollDown = false;
    if (ImGui::Checkbox("Autoscroll", &autoscroll_) && autoscroll_)
        scrollDown = true;

    ImGui::SameLine();
    ImGui::Spacing();<commit_msg>Small debug log change.<commit_after>#include <Log.h>
#include <Utility.h>
#include <Core.h>

extern std::ofstream g_logStream;

namespace GW2Radial
{

Log::Log()
{
#ifdef _DEBUG
    isVisible_ = IsDebuggerPresent();
#endif
}

void Log::Draw()
{
    if (!isVisible_)
        return;

    ImGui::SetNextWindowSize({ 800, 400 }, ImGuiCond_FirstUseEver);
    if (!ImGui::Begin("GW2Radial Log Window", &isVisible_))
    {
        ImGui::End();
        return;
    }

    if (ImGui::Button("Clear"))
        lines_.clear();
    ImGui::SameLine();

    bool scrollDown = false;
    if (ImGui::Checkbox("Autoscroll", &autoscroll_) && autoscroll_)
        scrollDown = true;

    ImGui::SameLine();
    ImGui::Spacing();
{'fraction_non_alphanumeric': 0.1579699785561115, 'fraction_numerical': 0.01143674052894925, 'mean_word_length': 3.3613707165109035, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1163432', 'n_tokens_mistral': 498, 'n_tokens_neox': 484, 'n_words': 98}