<commit_before>package openfl._internal.utils; #if macro


import haxe.macro.Compiler;
import haxe.macro.Context;


class ExtraParams {
	
	
	public static function include ():Void {
		
		if (!Context.defined ("tools")) {
			
			if (Context.defined ("display")) {
				
				includeExterns ();
				
			}
			
			if (!Context.defined ("flash")) {
				
				Compiler.allowPackage ("flash");
				Compiler.define ("swf-version", "22.0");
				
			}
			
		}
		
	}
	
	
	public static function includeExterns ():Void {<commit_msg>Improvements to -lib openfl support in ordinary HXML<commit_after>package openfl._internal.utils; #if macro


import haxe.macro.Compiler;
import haxe.macro.Context;


class ExtraParams {
	
	
	public static function include ():Void {
		
		if (!Context.defined ("tools")) {
			
			if (Context.defined ("display")) {
				
				includeExterns ();
				
			}
			
			if (!Context.defined ("flash")) {
				
				Compiler.allowPackage ("flash");
				Compiler.define ("swf-version", "22.0");
				
			}
			
			if (Context.defined ("js") && !Context.defined ("nodejs") && !Context.defined ("lime")) {
				
				var childPath = Context.resolvePath ("openfl/external");
				
				var parts = StringTools.replace (childPath, "\\", "/").split ("/");
				
				if (parts.length > 3) {
					
					parts.pop ();
					parts.pop ();
					parts.pop ();
					
					var openflPath = parts.join ("/");
					
					trace (openflPath);
					
					Compiler.addClassPath (openflPath + "/lib");
					
				}
				
			}
			
		}
		
	}
	
	
	public static function includeExterns ():Void {
{'fraction_non_alphanumeric': 0.15025575447570333, 'fraction_numerical': 0.004475703324808184, 'mean_word_length': 2.4095860566448803, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4927223', 'n_tokens_mistral': 678, 'n_tokens_neox': 470, 'n_words': 107}