<commit_before>
#ifdef _MSC_VER
#  define NOMINMAX
#  include <windows.h>
#elif __APPLE__
#  include <mach/mach_time.h>
#else
#  include <time.h>
#endif

#include "timer.hpp"


namespace tightdb {

#ifdef _MSC_VER

long get_timer_millis()
{
    return GetTickCount();
}

#elif __APPLE__

long get_timer_millis()
{
    return mach_absolute_time();
}

#else

namespace {
struct InitialTime {
    timespec m_ts;
    InitialTime()
    {
        clock_gettime(CLOCK_MONOTONIC, &m_ts);
    }
};<commit_msg>Prefer platform detection over compiler detection when possible (_MSC_VER changed to _WIN32)<commit_after>
#ifdef _WIN32
#  define NOMINMAX
#  include <windows.h>
#elif __APPLE__
#  include <mach/mach_time.h>
#else
#  include <time.h>
#endif

#include "timer.hpp"


namespace tightdb {

#ifdef _WIN32

long get_timer_millis()
{
    return GetTickCount();
}

#elif __APPLE__

long get_timer_millis()
{
    return mach_absolute_time();
}

#else

namespace {
struct InitialTime {
    timespec m_ts;
    InitialTime()
    {
        clock_gettime(CLOCK_MONOTONIC, &m_ts);
    }
};
{'fraction_non_alphanumeric': 0.10790697674418605, 'fraction_numerical': 0.005581395348837209, 'mean_word_length': 3.9357798165137616, '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': '6929772', 'n_tokens_mistral': 421, 'n_tokens_neox': 409, 'n_words': 91}