<commit_before>#include "EditorSettings.hpp"

#include <Engine/Util/FileSystem.hpp>

EditorSettings::EditorSettings() {
    ini.SetUnicode(true);
    ini.LoadFile(FileSystem::DataPath("Hymn to Beauty", "Settings.ini").c_str());
    
    AddBoolSetting("Logging", "Debug", "Logging", false);
    AddBoolSetting("Debug Context", "Debug", "Debug Context", false);

    AddLongSetting("Width", "Graphics", "Width", 800);
    AddLongSetting("Height", "Graphics", "Height", 600);
    AddStringSetting("Theme", "Graphics", "Theme", "Default");
    
    AddBoolSetting("Sound Source Icons", "View", "Sound Source Icons", true);
    AddBoolSetting("Particle Emitter Icons", "View", "Particle Emitter Icons", true);
    AddBoolSetting("Light Source Icons", "View", "Light Source Icons", true);
    AddBoolSetting("Camera Icons", "View", "Camera Icons", true);
    AddBoolSetting("Physics Volumes", "View", "Physics Volumes", true);
    
    AddStringSetting("Text Editor", "Script", "Text Editor", "");
    
    AddBoolSetting("Grid", "View", "Grid Settings", false);
    AddLongSetting("Grid", "Size", "Grid Size", 100);
    AddBoolSetting("Grid", "Snap", "Grid Snap", false);
    AddLongSetting("Grid", "Snap Size", "Grid Snap size", 100);
}

EditorSettings& EditorSettings::GetInstance() {
    static EditorSettings settings;
    
    return settings;
}

void EditorSettings::Save() {<commit_msg>Fix settings names<commit_after>#include "EditorSettings.hpp"

#include <Engine/Util/FileSystem.hpp>

EditorSettings::EditorSettings() {
    ini.SetUnicode(true);
    ini.LoadFile(FileSystem::DataPath("Hymn to Beauty", "Settings.ini").c_str());
    
    AddBoolSetting("Logging", "Debug", "Logging", false);
    AddBoolSetting("Debug Context", "Debug", "Debug Context", false);

    AddLongSetting("Width", "Graphics", "Width", 800);
    AddLongSetting("Height", "Graphics", "Height", 600);
    AddStringSetting("Theme", "Graphics", "Theme", "Default");
    
    AddBoolSetting("Sound Source Icons", "View", "Sound Source Icons", true);
    AddBoolSetting("Particle Emitter Icons", "View", "Particle Emitter Icons", true);
    AddBoolSetting("Light Source Icons", "View", "Light Source Icons", true);
    AddBoolSetting("Camera Icons", "View", "Camera Icons", true);
    AddBoolSetting("Physics Volumes", "View", "Physics Volumes", true);
    
    AddStringSetting("Text Editor", "Script", "Text Editor", "");
    
    AddBoolSetting("Grid Settings", "View", "Grid Settings", false);
    AddLongSetting("Grid Size", "Grid", "Size", 100);
    AddBoolSetting("Grid Snap", "Grid", "Snap", false);
    AddLongSetting("Grid Snap Size", "Grid", "Snap Size", 100);
}

EditorSettings& EditorSettings::GetInstance() {
    static EditorSettings settings;
    
    return settings;
}

void EditorSettings::Save() {
{'fraction_non_alphanumeric': 0.17048710601719197, 'fraction_numerical': 0.008595988538681949, 'mean_word_length': 5.206666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6940821', 'n_tokens_mistral': 862, 'n_tokens_neox': 825, 'n_words': 211}