<commit_before>package aerys.minko.type
{
	public final class Signal
	{
		private var _name			: String			= null;
		
		private var _callbacks		: Array				= [];
		private var _numCallbacks	: uint				= 0;
		
		private var _executed		: Boolean			= false;
		private var _numAdded		: uint				= 0;
		private var _toAdd			: Array				= null;
		private var _numRemoved		: uint				= 0;
		private var _toRemove		: Array				= null;
		
		public function get numCallbacks() : uint
		{
			return _numCallbacks;
		}
		
		public function Signal(name : String)
		{
			_name = name;
		}<commit_msg>Add removeAllCallback method for Signal<commit_after>package aerys.minko.type
{
	public final class Signal
	{
		private var _name			: String			= null;
		
		private var _callbacks		: Array				= [];
		private var _numCallbacks	: uint				= 0;
		
		private var _executed		: Boolean			= false;
		private var _numAdded		: uint				= 0;
		private var _toAdd			: Array				= null;
		private var _numRemoved		: uint				= 0;
		private var _toRemove		: Array				= null;
		
		public function get numCallbacks() : uint
		{
			return _numCallbacks;
		}
		
		public function Signal(name : String)
		{
			_name = name;
		}
		
		public function removeAllCallback() : void
		{
			for (var callbackIndex : int = _numCallbacks - 1; callbackIndex >= 0; --callbackIndex)
				remove(_callbacks[callbackIndex]);
		}
{'fraction_non_alphanumeric': 0.08266276517922458, 'fraction_numerical': 0.005852231163130944, 'mean_word_length': 2.6675603217158175, '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': '2622124', 'n_tokens_mistral': 581, 'n_tokens_neox': 463, 'n_words': 134}