<commit_before>#include "FiltersWindow.hpp"

#include <Engine/Hymn.hpp>
#include <imgui.h>

using namespace GUI;

void FiltersWindow::Show() {
    // Configure filters.
    if (ImGui::Begin("Filters", &visible, ImGuiWindowFlags_ShowBorders)) {
        // Color
        if (ImGui::CollapsingHeader("Color")) {
            ImGui::Checkbox("Enable##Color", &Hymn().filterSettings.color);
            
            if (Hymn().filterSettings.color) {
                ImGui::ColorEdit3("Color##Color", &Hymn().filterSettings.colorColor[0]);
            }
        }
        
        // Fog
        if (ImGui::CollapsingHeader("Fog")) {
            ImGui::Checkbox("Enable##Fog", &Hymn().filterSettings.fog);
            
            if (Hymn().filterSettings.fog) {
                ImGui::InputFloat("Density", &Hymn().filterSettings.fogDensity);
                ImGui::ColorEdit3("Color##Fog", &Hymn().filterSettings.fogColor[0]);
            }
        }
        
        // FXAA
        if (ImGui::CollapsingHeader("FXAA")) {
            ImGui::Checkbox("Enable##FXAA", &Hymn().filterSettings.fxaa);
        }
        
        // Glow
        if (ImGui::CollapsingHeader("Glow")) {
            ImGui::Checkbox("Enable##Glow", &Hymn().filterSettings.glow);
            
            if (Hymn().filterSettings.glow) {
                ImGui::InputInt("Blur amount", &Hymn().filterSettings.glowBlurAmount);
            }
        }
    }
    ImGui::End();
}

bool FiltersWindow::IsVisible() const {
    return visible;
}

void FiltersWindow::SetVisible(bool visible) {
    this->visible = visible;
}
<commit_msg>Texts explaining the different filters<commit_after>#include "FiltersWindow.hpp"

#include <Engine/Hymn.hpp>
#include <imgui.h>

using namespace GUI;

void FiltersWindow::Show() {
    // Configure filters.
    if (ImGui::Begin("Filters", &visible, ImGuiWindowFlags_ShowBorders)) {
        // Color
        if (ImGui::CollapsingHeader("Color")) {
            ImGui::TextWrapped("Color blending filter.");
            
            ImGui::Checkbox("Enable##Color", &Hymn().filterSettings.color);
            
            if (Hymn().filterSettings.color) {
                ImGui::ColorEdit3("Color##Color", &Hymn().filterSettings.colorColor[0]);
            }
        }
        
        // Fog
        if (ImGui::CollapsingHeader("Fog")) {
            ImGui::TextWrapped("Screen-space fog based on the depth buffer.");
            
            ImGui::Checkbox("Enable##Fog", &Hymn().filterSettings.fog);
            
            if (Hymn().filterSettings.fog) {
                ImGui::InputFloat("Density", &Hymn().filterSettings.fogDensity);
                ImGui::ColorEdit3("Color##Fog", &Hymn().filterSettings.fogColor[0]);
            }
        }
        
        // FXAA
        if (ImGui::CollapsingHeader("FXAA")) {
            ImGui::TextWrapped("Cheap anti-aliasing.");
            
            ImGui::Checkbox("Enable##FXAA", &Hymn().filterSettings.fxaa);
        }
        
        // Glow
        if (ImGui::CollapsingHeader("Glow")) {
            ImGui::TextWrapped("Blur the glow buffer and render it using additive blending.");
            
            ImGui::Checkbox("Enable##Glow", &Hymn().filterSettings.glow);
            
            if (Hymn().filterSettings.glow) {
                ImGui::InputInt("Blur amount", &Hymn().filterSettings.glowBlurAmount);
            }
        }
    }
    ImGui::End();
}

bool FiltersWindow::IsVisible() const {
    return visible;
}

void FiltersWindow::SetVisible(bool visible) {
    this->visible = visible;
}

{'fraction_non_alphanumeric': 0.1514726507713885, 'fraction_numerical': 0.002244039270687237, 'mean_word_length': 2.1253286590709903, 'pattern_counts': {'":': 0, '<': 7, '<?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': '647119', 'n_tokens_mistral': 1070, 'n_tokens_neox': 1074, 'n_words': 152}