<commit_before>/**
 * Appcelerator Titanium Mobile
 * Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
 * Licensed under the terms of the Apache Public License
 * Please see the LICENSE included with this distribution for details.
 */
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "defines.h"

#ifndef TI_BASE_H
#define TI_BASE_H

#ifdef __cplusplus
extern "C" {
#endif

#define MEMORY_DEBUG 0
#define VIEW_DEBUG 0

#ifndef __IPHONE_4_1
#define __IPHONE_4_1 40100
#endif

#ifndef __IPHONE_4_2
#define __IPHONE_4_2 40200
#endif

#ifndef __IPHONE_4_3
#define __IPHONE_4_3 40300
#endif
    
#ifndef __IPHONE_5_0
#define __IPHONE_5_0 50000
#endif
    
#ifndef __IPHONE_5_1
#define __IPHONE_5_1 50100
#endif
    
#ifdef DEBUG
	// Kroll memory debugging
	#define KROLLBRIDGE_MEMORY_DEBUG MEMORY_DEBUG
	#define KOBJECT_MEMORY_DEBUG MEMORY_DEBUG
	#define CONTEXT_MEMORY_DEBUG MEMORY_DEBUG
	
	// Proxy memory debugging
	#define PROXY_MEMORY_TRACK MEMORY_DEBUG
	#define TABWINDOW_MEMORY_DEBUG MEMORY_DEBUG
	#define CONTEXT_DEBUG MEMORY_DEBUG

	// Kroll debugging
	#define KOBJECT_DEBUG MEMORY_DEBUG
	#define KMETHOD_DEBUG MEMORY_DEBUG
#endif

// in simulator we redefine to format for Titanium Developer console


#define TI_INLINE static __inline__

// We need to overload NSLog as a macro so that we capture system messages as well. 
// It has to be a wrapper because the debugger itself uses TiBase's NSLog, and can't
// spoof TiApp without symbol conflicts and other issues
    
#define NSLog(...) {\
TiLogMessage(__VA_ARGS__);\
}
<commit_msg>TIMOB-11174 Updated TIBase for 6.0<commit_after>/**
 * Appcelerator Titanium Mobile
 * Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.
 * Licensed under the terms of the Apache Public License
 * Please see the LICENSE included with this distribution for details.
 */
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "defines.h"

#ifndef TI_BASE_H
#define TI_BASE_H

#ifdef __cplusplus
extern "C" {
#endif

#define MEMORY_DEBUG 0
#define VIEW_DEBUG 0

#ifndef __IPHONE_4_1
#define __IPHONE_4_1 40100
#endif

#ifndef __IPHONE_4_2
#define __IPHONE_4_2 40200
#endif

#ifndef __IPHONE_4_3
#define __IPHONE_4_3 40300
#endif
    
#ifndef __IPHONE_5_0
#define __IPHONE_5_0 50000
#endif
    
#ifndef __IPHONE_5_1
#define __IPHONE_5_1 50100
#endif

#ifndef __IPHONE_6_0
#define __IPHONE_6_0 60000
#endif
	
#ifdef DEBUG
	// Kroll memory debugging
	#define KROLLBRIDGE_MEMORY_DEBUG MEMORY_DEBUG
	#define KOBJECT_MEMORY_DEBUG MEMORY_DEBUG
	#define CONTEXT_MEMORY_DEBUG MEMORY_DEBUG
	
	// Proxy memory debugging
	#define PROXY_MEMORY_TRACK MEMORY_DEBUG
	#define TABWINDOW_MEMORY_DEBUG MEMORY_DEBUG
	#define CONTEXT_DEBUG MEMORY_DEBUG

	// Kroll debugging
	#define KOBJECT_DEBUG MEMORY_DEBUG
	#define KMETHOD_DEBUG MEMORY_DEBUG
#endif

// in simulator we redefine to format for Titanium Developer console


#define TI_INLINE static __inline__

// We need to overload NSLog as a macro so that we capture system messages as well. 
// It has to be a wrapper because the debugger itself uses TiBase's NSLog, and can't
// spoof TiApp without symbol conflicts and other issues
    
#define NSLog(...) {\
TiLogMessage(__VA_ARGS__);\
}

{'fraction_non_alphanumeric': 0.0629652605459057, 'fraction_numerical': 0.039081885856079406, 'mean_word_length': 4.852994555353902, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5250853', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1123, 'n_words': 358}