<commit_before>/**
 * @author <NAME> <<EMAIL>>
 */
 
if(typeof define !== 'function')
	var define = require('amdefine')(module);

define(["require"], function deepEmitterDefine(require)
{
	return function(deep)
	{
		var Event  = deep.Event = function(type){
			this.type = type;
		};
		var Emitter = deep.Emitter = function(){
			var listeners = {};
			this.emit = function(event){
				var list = listeners[event];
				if(!list)
					return;
				for(var i = 0, len = list.length; i < len; ++i)
					list[i](new Event(event));
			};
			this.on = function(event, callback){
				listeners[event] = listeners[event] || [];
				callback._deep_listener_index_ = listeners[event].length;
				listeners[event].push(callback);
			};
			this.remove = function(event, callback){
				var list = listeners[event];
				if(!list)
					return;
				list.splice(callback._deep_listener_index_,1);
			};
		};
		return Emitter;
	};
});<commit_msg>add datas object as args. (emitter)<commit_after>/**
 * @author <NAME> <<EMAIL>>
 */
 
if (typeof define !== 'function') {
    var define = require('amdefine')(module);
}
define(["require"], function deepEmitterDefine(require)
{
	return function(deep)
	{
		var Event  = deep.Event = function(type, datas){
			this.datas = datas || null;
			this.type = type;
		};
		var Emitter = deep.Emitter = function(){
			var listeners = {};
			this.emit = function(type, datas){
				var list = listeners[type];
				if(!list)
					return;
				for(var i = 0, len = list.length; i < len; ++i)
					list[i](new Event(type, datas));
			};
			this.on = function(type, callback){
				listeners[type] = listeners[type] || [];
				callback._deep_listener_index_ = listeners[type].length;
				listeners[type].push(callback);
			};
			this.remove = function(type, callback){
				var list = listeners[type];
				if(!list)
					return;
				list.splice(callback._deep_listener_index_,1);
			};
		};
		return Emitter;
	};
});
{'fraction_non_alphanumeric': 0.16987012987012987, 'fraction_numerical': 0.002077922077922078, 'mean_word_length': 3.4790697674418603, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '3340392', 'n_tokens_mistral': 768, 'n_tokens_neox': 631, 'n_words': 138}