<commit_before>
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>

#import <Availability.h>
#import <TargetConditionals.h>

/// @file

/**
 *	@brief A custom definition for ARC weak references that falls back to unsafe unretained values on older platforms
 **/

// This is based on <NAME>'s ZWRCompatibility: https://github.com/rpetrich/ZWRCompatibility

#if TARGET_OS_IPHONE && defined(__IPHONE_5_0) && (__IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_5_0)
#define CPT_SDK_SUPPORTS_WEAK 1
#elif TARGET_OS_MAC && defined(__MAC_10_7) && (MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_7)
#define CPT_SDK_SUPPORTS_WEAK 1
#else
#define CPT_SDK_SUPPORTS_WEAK 0
#endif

#if CPT_SDK_SUPPORTS_WEAK
#define __cpt_weak __weak
#define cpt_weak_property weak
#else
#if __clang__ && (__clang_major__>=3)
#define __cpt_weak __unsafe_unretained
#else
#define __cpt_weak 
#endif
#define cpt_weak_property assign
#endif

/**
 *	@brief Enumeration of numeric types
 **/
typedef enum  _CPTNumericType {
    CPTNumericTypeInteger,	///< Integer
    CPTNumericTypeFloat,	///< Float
    CPTNumericTypeDouble	///< Double
} CPTNumericType;

/**
 *	@brief Enumeration of error bar types
 **/<commit_msg>Fixed a case for the new ARC compiler defines where 10.7 or iOS 5.0 was the target, but a non-Clang parser was used.<commit_after>
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>

#import <Availability.h>
#import <TargetConditionals.h>

/// @file

/**
 *	@brief A custom definition for ARC weak references that falls back to unsafe unretained values on older platforms
 **/

// This is based on <NAME>'s ZWRCompatibility: https://github.com/rpetrich/ZWRCompatibility

#if TARGET_OS_IPHONE && defined(__IPHONE_5_0) && (__IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_5_0) && __clang__ && (__clang_major__>=3)
#define CPT_SDK_SUPPORTS_WEAK 1
#elif TARGET_OS_MAC && defined(__MAC_10_7) && (MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_7) && __clang__ && (__clang_major__>=3)
#define CPT_SDK_SUPPORTS_WEAK 1
#else
#define CPT_SDK_SUPPORTS_WEAK 0
#endif

#if CPT_SDK_SUPPORTS_WEAK
#define __cpt_weak __weak
#define cpt_weak_property weak
#else
#if __clang__ && (__clang_major__>=3)
#define __cpt_weak __unsafe_unretained
#else
#define __cpt_weak 
#endif
#define cpt_weak_property assign
#endif

/**
 *	@brief Enumeration of numeric types
 **/
typedef enum  _CPTNumericType {
    CPTNumericTypeInteger,	///< Integer
    CPTNumericTypeFloat,	///< Float
    CPTNumericTypeDouble	///< Double
} CPTNumericType;

/**
 *	@brief Enumeration of error bar types
 **/
{'fraction_non_alphanumeric': 0.10379945162553858, 'fraction_numerical': 0.013709361535448493, 'mean_word_length': 5.433249370277078, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, 'https://': 2, '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': '5087741', 'n_tokens_mistral': 977, 'n_tokens_neox': 961, 'n_words': 226}