<commit_before>#ifndef THREAD_UTILS_H
#define THREAD_UTILS_H

#ifdef WIN32
#define USE_BOOST_THREADS 1
#define USE_PTHREADS 0
#else
#define USE_BOOST_THREADS 1
#define USE_PTHREADS 0
#endif

#if USE_BOOST_THREADS
#include <boost/thread.hpp>
typedef boost::thread Thread;
typedef boost::mutex Mutex;
typedef boost::mutex::scoped_lock ScopedLock;
inline Thread ThreadStart(void* (*fn)(void*),void* data=NULL) { return boost::thread(fn,data); }
inline void ThreadJoin(Thread& thread) { thread.join(); }
inline void ThreadYield() { boost::this_thread::yield(); }

#endif //USE_BOOST_THREADS
<commit_msg>Default defines used only if USE_BOOST_THREADS or USE_PTHREADS not set<commit_after>#ifndef THREAD_UTILS_H
#define THREAD_UTILS_H

#ifndef USE_BOOST_THREADS
#ifndef USE_PTHREADS
#ifdef WIN32
#define USE_BOOST_THREADS 1
#define USE_PTHREADS 0
#else
#define USE_BOOST_THREADS 0
#define USE_PTHREADS 1
#endif
#endif //USE_PTHREADS
#endif //USE_BOOST_THREADS

#if USE_BOOST_THREADS
#include <boost/thread.hpp>
typedef boost::thread Thread;
typedef boost::mutex Mutex;
typedef boost::mutex::scoped_lock ScopedLock;
inline Thread ThreadStart(void* (*fn)(void*),void* data=NULL) { return boost::thread(fn,data); }
inline void ThreadJoin(Thread& thread) { thread.join(); }
inline void ThreadYield() { boost::this_thread::yield(); }

#endif //USE_BOOST_THREADS

{'fraction_non_alphanumeric': 0.11250925240562547, 'fraction_numerical': 0.008882309400444115, 'mean_word_length': 7.894736842105263, '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': '1262779', 'n_tokens_mistral': 496, 'n_tokens_neox': 460, 'n_words': 119}