<commit_before>#ifndef UNITTEST11_ASSERT_THAT_HPP
#define UNITTEST11_ASSERT_THAT_HPP

#include "../Utility/BaseOperand.hpp"
#include "Fail.hpp"
#include <string>

namespace ut11
{
    namespace Assert
    {
        template<typename Expected, typename Operand>
        inline void That(std::size_t line, std::string file, Expected expected, Operand operand)
        {
            if ( operand(expected) )
                return;
            Fail(line, file, operand.GetErrorMessage(expected));
        }

        template<typename Expected, typename Operand>
        inline void That(std::size_t line, std::string file, std::string message, Expected expected, Operand operand)
        {
            if ( operand(expected) )
                return;
            Fail(line, file, message);
        }
    }
}

#endif // UNITTEST11_ASSERT_THAT_HPP<commit_msg>Changed to use const references instead of copies for Assert::That<commit_after>#ifndef UNITTEST11_ASSERT_THAT_HPP
#define UNITTEST11_ASSERT_THAT_HPP

#include "../Utility/BaseOperand.hpp"
#include "Fail.hpp"
#include <string>

namespace ut11
{
    namespace Assert
    {
        template<typename Expected, typename Operand>
        inline void That(std::size_t line, std::string file, const Expected& expected, const Operand& operand)
        {
            if ( operand(expected) )
                return;
            Fail(line, file, operand.GetErrorMessage(expected));
        }

        template<typename Expected, typename Operand>
        inline void That(std::size_t line, std::string file, std::string message, const Expected& expected, const Operand& operand)
        {
            if ( operand(expected) )
                return;
            Fail(line, file, message);
        }
    }
}

#endif // UNITTEST11_ASSERT_THAT_HPP
{'fraction_non_alphanumeric': 0.09390721073225265, 'fraction_numerical': 0.008943543879262158, 'mean_word_length': 2.638211382113821, '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': '5506038', 'n_tokens_mistral': 526, 'n_tokens_neox': 509, 'n_words': 128}