<commit_before>/**
 * FlxSpecialFX
 * -- Part of the Flixel Power Tools set
 * 
 * @version 1.6 - September 19th 2011
 * @link http://www.photonstorm.com
 * @author <NAME> / Photon Storm
*/

package org.flixel.plugin.photonstorm;

import nme.ObjectHash;
import org.flixel.FlxBasic;
import org.flixel.FlxG;
import org.flixel.FlxU;
import org.flixel.plugin.photonstorm.fx.BaseFX;
import org.flixel.plugin.photonstorm.fx.StarfieldFX;

/**
 * FlxSpecialFX is a single point of access to all of the FX Plugins available in the Flixel Power Tools
 */
class FlxSpecialFX extends FlxBasic
{
	private static var members:ObjectHash<BaseFX, BaseFX> = new ObjectHash<BaseFX, BaseFX>();
	
	public function new() 
	{
		super();
	}
	
	//	THE SPECIAL FX PLUGINS AVAILABLE
	
	/**
	 * Creates a 2D or 3D Starfield Effect
	 * 
	 * @return	StarfieldFX
	 */
	public static function starfield():StarfieldFX
	{
		var temp:StarfieldFX = new StarfieldFX();
		members.set(temp, temp);
		return temp;
	}<commit_msg>at least it works on flash now<commit_after>/**
 * FlxSpecialFX
 * -- Part of the Flixel Power Tools set
 * 
 * @version 1.6 - September 19th 2011
 * @link http://www.photonstorm.com
 * @author <NAME> / Photon Storm
*/

package org.flixel.plugin.photonstorm;

import nme.ObjectHash;
import org.flixel.FlxBasic;
import org.flixel.FlxG;
import org.flixel.FlxU;
import org.flixel.plugin.photonstorm.fx.BaseFX;
import org.flixel.plugin.photonstorm.fx.GlitchFX;
import org.flixel.plugin.photonstorm.fx.StarfieldFX;

/**
 * FlxSpecialFX is a single point of access to all of the FX Plugins available in the Flixel Power Tools
 */
class FlxSpecialFX extends FlxBasic
{
	private static var members:ObjectHash<BaseFX, BaseFX> = new ObjectHash<BaseFX, BaseFX>();
	
	public function new() 
	{
		super();
	}
	
	//	THE SPECIAL FX PLUGINS AVAILABLE
	
	/**
	 * Creates a Glitch Effect
	 * 
	 * @return	GlitchFX
	 */
	public static function glitch():GlitchFX
	{
		var temp:GlitchFX = new GlitchFX();
		members.set(temp, temp);
		return temp;
	}
	
	/**
	 * Creates a 2D or 3D Starfield Effect
	 * 
	 * @return	StarfieldFX
	 */
	public static function starfield():StarfieldFX
	{
		var temp:StarfieldFX = new StarfieldFX();
		members.set(temp, temp);
		return temp;
	}
{'fraction_non_alphanumeric': 0.11041573535985695, 'fraction_numerical': 0.008940545373267769, 'mean_word_length': 3.7617021276595746, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2361681', 'n_tokens_mistral': 824, 'n_tokens_neox': 745, 'n_words': 216}