<commit_before>/*!
    \file thread.inl
    \brief Thread abstraction inline implementation
    \author <NAME>
    \date 27.01.2016
    \copyright MIT License
*/

namespace CppCommon {

template <class Fn, class... Args>
inline std::thread Thread::Start(Fn&& fn, Args&&... args)
{
    return std::thread([=]()
    {
        // Setup exception handler for the new thread
        ExceptionsHandler::SetupThread();

        // Call the base thread function
        fn(args...);
    });
}

} // namespace CppCommon
<commit_msg>Bugfix<commit_after>/*!
    \file thread.inl
    \brief Thread abstraction inline implementation
    \author <NAME>
    \date 27.01.2016
    \copyright MIT License
*/

namespace CppCommon {

template <class Fn, class... Args>
inline std::thread Thread::Start(Fn&& fn, Args&&... args)
{
    return std::thread([fn = fn, args...]()
    {
        // Setup exception handler for the new thread
        ExceptionsHandler::SetupThread();

        // Call the base thread function
        fn(std::move(args)...);
    });
}

} // namespace CppCommon

{'fraction_non_alphanumeric': 0.14084507042253522, 'fraction_numerical': 0.015023474178403756, 'mean_word_length': 2.495081967213115, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5364900', 'n_tokens_mistral': 329, 'n_tokens_neox': 311, 'n_words': 94}