<commit_before>namespace Prefs
{
    void Init(PapayaPref* Prefs, int32 Count)
    {

    }

    void LoadFromFile(PapayaPref* Prefs, int32 Count)
    {

    }

    void WriteToFile(PapayaPref* Prefs, int32 Count)
    {

    }

    void ShowWindow(PapayaMemory* Mem)
    {
        ImGui::SetNextWindowSize(ImVec2((float)Mem->Window.Width  - 61, 
                                        (float)Mem->Window.Height - 58));
        ImGui::SetNextWindowPos(ImVec2(34, 55));

        ImGuiWindowFlags WindowFlags = 0;
        WindowFlags |= ImGuiWindowFlags_NoTitleBar;
        WindowFlags |= ImGuiWindowFlags_NoResize;
        WindowFlags |= ImGuiWindowFlags_NoMove;
        WindowFlags |= ImGuiWindowFlags_NoScrollbar;
        WindowFlags |= ImGuiWindowFlags_NoCollapse;
        WindowFlags |= ImGuiWindowFlags_NoScrollWithMouse; // TODO: Once the overall look has been established, make commonly used templates

        ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding , 0);
        ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding  , ImVec2( 0, 0));
        ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing    , ImVec2(30, 0));

        ImGui::PushStyleColor(ImGuiCol_Button           , Mem->Colors[PapayaCol_Button]);
        ImGui::PushStyleColor(ImGuiCol_ButtonHovered    , Mem->Colors[PapayaCol_ButtonHover]);
        ImGui::PushStyleColor(ImGuiCol_ButtonActive     , Mem->Colors[PapayaCol_ButtonActive]);
        ImGui::PushStyleColor(ImGuiCol_WindowBg         , Mem->Colors[PapayaCol_Transparent]);
        ImGui::PushStyleColor(ImGuiCol_SliderGrabActive , Mem->Colors[PapayaCol_ButtonActive]);

        ImGui::Begin("Preferences Window");
        if (ImGui::Button("OK"))
        {
            Mem->Misc.PrefsOpen = false;
        }
        ImGui::End();

        ImGui::PopStyleVar(3);
        ImGui::PopStyleColor(5);
    }
}
<commit_msg>Added preferences search text box<commit_after>namespace Prefs
{
    void Init(PapayaPref* Prefs, int32 Count)
    {

    }

    void LoadFromFile(PapayaPref* Prefs, int32 Count)
    {

    }

    void WriteToFile(PapayaPref* Prefs, int32 Count)
    {

    }

    void ShowWindow(PapayaMemory* Mem)
    {
        ImGui::SetNextWindowSize(ImVec2((float)Mem->Window.Width  - 61, 
                                        (float)Mem->Window.Height - 58));
        ImGui::SetNextWindowPos(ImVec2(34, 55));

        ImGuiWindowFlags WindowFlags = 0;
        WindowFlags |= ImGuiWindowFlags_NoTitleBar;
        WindowFlags |= ImGuiWindowFlags_NoResize;
        WindowFlags |= ImGuiWindowFlags_NoMove;
        WindowFlags |= ImGuiWindowFlags_NoScrollbar;
        WindowFlags |= ImGuiWindowFlags_NoCollapse;
        WindowFlags |= ImGuiWindowFlags_NoScrollWithMouse; // TODO: Once the overall look has been established, make commonly used templates

        ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding , 0);
        ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding  , ImVec2( 0, 0));
        //ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing    , ImVec2(30, 0));

        ImGui::PushStyleColor(ImGuiCol_Button           , Mem->Colors[PapayaCol_Button]);
        ImGui::PushStyleColor(ImGuiCol_ButtonHovered    , Mem->Colors[PapayaCol_ButtonHover]);
        ImGui::PushStyleColor(ImGuiCol_ButtonActive     , Mem->Colors[PapayaCol_ButtonActive]);
        ImGui::PushStyleColor(ImGuiCol_WindowBg         , Mem->Colors[PapayaCol_Transparent]);
        ImGui::PushStyleColor(ImGuiCol_SliderGrabActive , Mem->Colors[PapayaCol_ButtonActive]);

        ImGui::Begin("Preferences Window", 0, WindowFlags);

        ImGui::BeginChild("A1", ImVec2(ImGui::GetContentRegionAvailWidth() - 350, 20));
        ImGui::Text("Preferences");
        ImGui::EndChild();

        ImGui::SameLine();

        char buf[512] = {0};
        ImGui::BeginChild("A2", ImVec2(0, 20));
        ImGui::PushItemWidth(ImGui::GetContentRegionAvailWidth());
        ImGui::InputText("", buf, 512);
        ImGui::PopItemWidth();
        ImGui::EndChild();

        ImGui::Separator();

        if (ImGui::Button("OK"))
        {
            Mem->Misc.PrefsOpen = false;
        }
        ImGui::End();

        ImGui::PopStyleVar(2);
        ImGui::PopStyleColor(5);
    }
}

{'fraction_non_alphanumeric': 0.11238916846393482, 'fraction_numerical': 0.01773304577042895, 'mean_word_length': 2.9866284622731616, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7290018', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1286, 'n_words': 188}