<commit_before>#pragma once
#include <sstream>
#include <imgui.h>

namespace GUI {
    class LogView {
        public:
        LogView();
        ~LogView();

        void Show();

        bool IsVisible();
        
        private:
        std::stringstream defaultStringstream;
        std::stringstream infoStringstream;
        std::stringstream warningStringstream;
        std::stringstream errorStringstream;

        ImGuiTextBuffer textBuffer;
        ImGuiTextFilter textFilter;
        ImVector<int> lineOffsets;

        bool visible = true;<commit_msg>Doxygen comments.<commit_after>#pragma once
#include <sstream>
#include <imgui.h>

namespace GUI {
    class LogView {
        public:
        /// Constructor.
        LogView();

        /// Destructor.
        ~LogView();

        /// Shows the log.
        void Show();

        /// If the log is visible or not.
        /**
         * @return Whether the log is visible or not.
         */
        bool IsVisible();
        
        private:
        std::stringstream defaultStringstream;
        std::stringstream infoStringstream;
        std::stringstream warningStringstream;
        std::stringstream errorStringstream;

        ImGuiTextBuffer textBuffer;
        ImGuiTextFilter textFilter;
        ImVector<int> lineOffsets;

        bool visible = true;
{'fraction_non_alphanumeric': 0.08940646130728776, 'fraction_numerical': 0.0, 'mean_word_length': 2.0, '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': '211058', 'n_tokens_mistral': 354, 'n_tokens_neox': 344, 'n_words': 90}