<commit_before>
#ifndef GUARD_GET_HANDLE_HPP
#define GUARD_GET_HANDLE_HPP

#include <mlopen/handle.hpp>

#if 0

static mlopen::Handle get_handle()
{
    return mlopen::Handle{};
}

#else

static mlopen::Handle& get_handle()
{
    static mlopen::Handle h{};
    return h;
}

#endif

#endif<commit_msg>Add define for using a global handle<commit_after>
#ifndef GUARD_GET_HANDLE_HPP
#define GUARD_GET_HANDLE_HPP

#include <mlopen/handle.hpp>

#ifndef MLOPEN_TEST_USE_GLOBAL_HANDLE
#define MLOPEN_TEST_USE_GLOBAL_HANDLE 1
#endif


#if MLOPEN_TEST_USE_GLOBAL_HANDLE

static mlopen::Handle& get_handle()
{
    static mlopen::Handle h{};
    return h;
}

#else

static mlopen::Handle get_handle()
{
    return mlopen::Handle{};
}

#endif

#endif
{'fraction_non_alphanumeric': 0.1070460704607046, 'fraction_numerical': 0.0027100271002710027, 'mean_word_length': 5.539823008849558, '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': '6497193', 'n_tokens_mistral': 292, 'n_tokens_neox': 273, 'n_words': 61}