<commit_before>#pragma once

// These macros define the "os"s that libHttpClient knows about
#define HC_PLATFORM_UNKNOWN 0
#define HC_PLATFORM_WIN32 1
#define HC_PLATFORM_UWP 2
#define HC_PLATFORM_XDK 3
#define HC_PLATFORM_ANDROID 11
#define HC_PLATFORM_IOS 21

// These macros define the datamodels that libHttpClient knows about
// (a datamodel defines the size of primitive types such as int and pointers)
#define HC_DATAMODEL_UNKNOWN 0
#define HC_DATAMODEL_ILP32 1 // int, long and pointer are 32 bits (32 bit platforms)
#define HC_DATAMODEL_LLP64 2 // int and long are 32 bit; long long and pointer are 64 bits (64 bit windows)
#define HC_DATAMODEL_LP64 3 // int is 32 bit; long and pointer are 64 bits (64 bit unix)
// see http://www.unix.org/version2/whatsnew/lp64_wp.html for detailed descriptions

#if defined(HC_PLATFORM) 
#if !defined(HC_DATAMODEL)
    #error When setting HC_PLATFORM, also please specify the datamodel manually by setting the HC_DATAMODEL macro in your compiler.
#endif
#elif defined(_WIN32)
    #include <sdkddkver.h>
    #include <winapifamily.h>

    #if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
        #define HC_PLATFORM HC_PLATFORM_WIN32
    #elif WINAPI_FAMILY == WINAPI_FAMILY_PC_APP && _WIN32_WINNT >= _WIN32_WINNT_WIN10
        #define HC_PLATFORM HC_PLATFORM_UWP
    #elif WINAPI_FAMILY == WINAPI_FAMILY_TV_APP || WINAPI_FAMILY == WINAPI_FAMILY_TV_TITLE
        #define HC_PLATFORM HC_PLATFORM_XDK
    #endif

    #if defined(_WIN64)
        #define HC_DATAMODEL HC_DATAMODEL_LLP64
    #else
        #define HC_DATAMODEL HC_DATAMODEL_ILP32
    #endif
#elif defined(__ANDROID__)
    #define HC_PLATFORM HC_PLATFORM_ANDROID

    #if defined(__LP64__)
        #define HC_DATAMODEL HC_DATAMODEL_LP64
    #else
        #define HC_DATAMODEL HC_DATAMODEL_ILP32
    #endif
#elif defined(__APPLE__)
    #include <TargetConditionals.h>
    #if TARGET_OS_MAC == 1
        #define HC_PLATFORM HC_PLATFORM_IOS
    #endif

    #if defined(__LP64__)
        #define HC_DATAMODEL HC_DATAMODEL_LP64
    #else
        #define HC_DATAMODEL HC_DATAMODEL_ILP32
    #endif
#else
    #if !defined(HC_DATAMODEL)
        #error libHttpClient does not recognize this platform, please specify the datamodel manually by setting the HC_DATAMODEL macro in your compiler.
    #endif
#endif

// HC_PLATFORM defines the "os" that libHttpClient is being built for
#if !defined(HC_PLATFORM)
#pragma warning(libHttpClient does not recognize this platform)
#define HC_PLATFORM HC_PLATFORM_UNKNOWN
#endif

// HC_PLATFORM defines the datamodel that libHttpClient is being built for
#if !defined(HC_DATAMODEL)
#error libHttpClient does not recognize the datamodel used on this platform.
#define HC_DATAMODEL HC_DATAMODEL_UNKNOWN
#elif HC_DATAMODEL != HC_DATAMODEL_ILP32 && HC_DATAMODEL != HC_DATAMODEL_LLP64 && HC_DATAMODEL != HC_DATAMODEL_LP64
#error HC_DATAMODEL is not set to a valid value, it must be one of HC_DATAMODEL_ILP32, HC_DATAMODEL_LLP64, or HC_DATAMODEL_LP64.
#endif

#if !defined(HC_PLATFORM_IS_MICROSOFT)
#define HC_PLATFORM_IS_MICROSOFT \
   (HC_PLATFORM == HC_PLATFORM_WIN32 || HC_PLATFORM == HC_PLATFORM_UWP || HC_PLATFORM == HC_PLATFORM_XDK)
#endif

#if defined(HC_PLATFORM_MSBUILD_GUESS) && (HC_PLATFORM_MSBUILD_GUESS != HC_PLATFORM)
    #error The platform guessed by MSBuild does not agree with the platform selected by config.h
#endif
<commit_msg>Changed the values of the unknown platform marker macros to avoid collision with undefined macros (#379)<commit_after>#pragma once

// These macros define the "os"s that libHttpClient knows about
#define HC_PLATFORM_UNKNOWN 9999
#define HC_PLATFORM_WIN32 1
#define HC_PLATFORM_UWP 2
#define HC_PLATFORM_XDK 3
#define HC_PLATFORM_ANDROID 11
#define HC_PLATFORM_IOS 21

// These macros define the datamodels that libHttpClient knows about
// (a datamodel defines the size of primitive types such as int and pointers)
#define HC_DATAMODEL_UNKNOWN 9999
#define HC_DATAMODEL_ILP32 1 // int, long and pointer are 32 bits (32 bit platforms)
#define HC_DATAMODEL_LLP64 2 // int and long are 32 bit; long long and pointer are 64 bits (64 bit windows)
#define HC_DATAMODEL_LP64 3 // int is 32 bit; long and pointer are 64 bits (64 bit unix)
// see http://www.unix.org/version2/whatsnew/lp64_wp.html for detailed descriptions

#if defined(HC_PLATFORM) 
#if !defined(HC_DATAMODEL)
    #error When setting HC_PLATFORM, also please specify the datamodel manually by setting the HC_DATAMODEL macro in your compiler.
#endif
#elif defined(_WIN32)
    #include <sdkddkver.h>
    #include <winapifamily.h>

    #if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
        #define HC_PLATFORM HC_PLATFORM_WIN32
    #elif WINAPI_FAMILY == WINAPI_FAMILY_PC_APP && _WIN32_WINNT >= _WIN32_WINNT_WIN10
        #define HC_PLATFORM HC_PLATFORM_UWP
    #elif WINAPI_FAMILY == WINAPI_FAMILY_TV_APP || WINAPI_FAMILY == WINAPI_FAMILY_TV_TITLE
        #define HC_PLATFORM HC_PLATFORM_XDK
    #else
        #error Cannot recognize Windows flavor
    #endif

    #if defined(_WIN64)
        #define HC_DATAMODEL HC_DATAMODEL_LLP64
    #else
        #define HC_DATAMODEL HC_DATAMODEL_ILP32
    #endif
#elif defined(__ANDROID__)
    #define HC_PLATFORM HC_PLATFORM_ANDROID

    #if defined(__LP64__)
        #define HC_DATAMODEL HC_DATAMODEL_LP64
    #else
        #define HC_DATAMODEL HC_DATAMODEL_ILP32
    #endif
#elif defined(__APPLE__)
    #include <TargetConditionals.h>
    #if TARGET_OS_MAC == 1
        #define HC_PLATFORM HC_PLATFORM_IOS
    #else
        #error Cannot recognize Apple OS flavor
    #endif

    #if defined(__LP64__)
        #define HC_DATAMODEL HC_DATAMODEL_LP64
    #else
        #define HC_DATAMODEL HC_DATAMODEL_ILP32
    #endif
#else
    #if !defined(HC_DATAMODEL)
        #error libHttpClient does not recognize this platform, please specify the datamodel manually by setting the HC_DATAMODEL macro in your compiler.
    #endif
#endif

// HC_PLATFORM defines the "os" that libHttpClient is being built for
#if !defined(HC_PLATFORM)
#pragma warning(libHttpClient does not recognize this platform)
#define HC_PLATFORM HC_PLATFORM_UNKNOWN
#endif

// HC_PLATFORM defines the datamodel that libHttpClient is being built for
#if !defined(HC_DATAMODEL)
#error libHttpClient does not recognize the datamodel used on this platform.
#define HC_DATAMODEL HC_DATAMODEL_UNKNOWN
#elif HC_DATAMODEL != HC_DATAMODEL_ILP32 && HC_DATAMODEL != HC_DATAMODEL_LLP64 && HC_DATAMODEL != HC_DATAMODEL_LP64
#error HC_DATAMODEL is not set to a valid value, it must be one of HC_DATAMODEL_ILP32, HC_DATAMODEL_LLP64, or HC_DATAMODEL_LP64.
#endif

#if !defined(HC_PLATFORM_IS_MICROSOFT)
#define HC_PLATFORM_IS_MICROSOFT \
   (HC_PLATFORM == HC_PLATFORM_WIN32 || HC_PLATFORM == HC_PLATFORM_UWP || HC_PLATFORM == HC_PLATFORM_XDK)
#endif

#if defined(HC_PLATFORM_MSBUILD_GUESS) && (HC_PLATFORM_MSBUILD_GUESS != HC_PLATFORM)
    #error The platform guessed by MSBuild does not agree with the platform selected by config.h
#endif

{'fraction_non_alphanumeric': 0.06283841550299231, 'fraction_numerical': 0.024650897691650044, 'mean_word_length': 4.619695756605284, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2615031', 'n_tokens_mistral': 2872, 'n_tokens_neox': 2527, 'n_words': 704}