<commit_before>#include <IO/FileMap/FileMapMutex.hpp>

#include <Windows.h>
#include <Utility/Utilities/Include/String/StringHelper.hpp>

namespace Doremi
{
    namespace Utilities
    {
        namespace IO
        {

            // TODORT Define better than 1000?
            const uint32_t DEFAULT_TIMEOUT = 1000;

            FileMapMutex::FileMapMutex() : m_handle(nullptr) {}

            FileMapMutex::~FileMapMutex() { ReleaseMutex(m_handle); }

            bool FileMapMutex::Initialize(const std::string& p_name)
            {
                // Set variables
                m_name = p_name;

                // Set success variable
                bool success;<commit_msg>Correctly both release mutex and handle in Mutex<commit_after>#include <IO/FileMap/FileMapMutex.hpp>

#include <Windows.h>
#include <Utility/Utilities/Include/String/StringHelper.hpp>

namespace Doremi
{
    namespace Utilities
    {
        namespace IO
        {

            // TODORT Define better than 1000?
            const uint32_t DEFAULT_TIMEOUT = 1000;

            FileMapMutex::FileMapMutex() : m_handle(nullptr) {}

            FileMapMutex::~FileMapMutex()
            {
                ReleaseMutex(m_handle);
                CloseHandle(m_handle);
            }

            bool FileMapMutex::Initialize(const std::string& p_name)
            {
                // Set variables
                m_name = p_name;

                // Set success variable
                bool success;
{'fraction_non_alphanumeric': 0.08692722371967655, 'fraction_numerical': 0.013477088948787063, 'mean_word_length': 1.8071833648393194, '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': '3515033', 'n_tokens_mistral': 423, 'n_tokens_neox': 406, 'n_words': 83}