<commit_before>package lime.ui;


import lime.system.JNI;
import lime.utils.Log;

#if !macro
@:build(lime.system.CFFI.build())
#end


class Haptic {
	
	
	public static function vibrate (period:Int, duration:Int):Void {
		
		#if android
		
		if (lime_haptic_vibrate == null) {
			
			lime_haptic_vibrate = JNI.createStaticMethod ("org/haxe/lime/GameActivity", "vibrate", "(II)V");
			
		}
		
		try {
			
			lime_haptic_vibrate (period, duration);
			
		} catch (e:Dynamic) {
			
			Log.warn ("Haptic.vibrate is not available (the VIBRATE permission may be missing)");
			
		}
		
		#elseif (lime_cffi && !macro)
		
		lime_haptic_vibrate (period, duration);
		
		#end
	}
	
	
	
	
	// Native Methods
	
	
	
	
	#if android
	private static var lime_haptic_vibrate (period:Int, duration:Int):Void;
	#elseif (lime_cffi && !macro)
	@:cffi private static function lime_haptic_vibrate (period:Int, duration:Int):Void;
	#end
	
}<commit_msg>Fix compilation error "lime/ui/Haptic.hx:51: characters 47-48 : Unexpected :"<commit_after>package lime.ui;


import lime.system.JNI;
import lime.utils.Log;

#if !macro
@:build(lime.system.CFFI.build())
#end


class Haptic {
	
	
	public static function vibrate (period:Int, duration:Int):Void {
		
		#if android
		
		if (lime_haptic_vibrate == null) {
			
			lime_haptic_vibrate = JNI.createStaticMethod ("org/haxe/lime/GameActivity", "vibrate", "(II)V");
			
		}
		
		try {
			
			lime_haptic_vibrate (period, duration);
			
		} catch (e:Dynamic) {
			
			Log.warn ("Haptic.vibrate is not available (the VIBRATE permission may be missing)");
			
		}
		
		#elseif (lime_cffi && !macro)
		
		lime_haptic_vibrate (period, duration);
		
		#end
	}
	
	
	
	
	// Native Methods
	
	
	
	
	#if android
	private static var lime_haptic_vibrate:Int->Int->Void;
	#elseif (lime_cffi && !macro)
	@:cffi private static function lime_haptic_vibrate (period:Int, duration:Int):Void;
	#end
	
}
{'fraction_non_alphanumeric': 0.12585571353343866, 'fraction_numerical': 0.00315955766192733, 'mean_word_length': 3.449648711943794, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5585537', 'n_tokens_mistral': 875, 'n_tokens_neox': 712, 'n_words': 151}