<commit_before>/**
* @file implements EventSet class
* @description this class implements simple event mechanism
* @author CORSAIR <<EMAIL>>
* @requires Container class - EventSet depends/inherit the Container to store names and callbacks of the events.
* @version 21.11.2014
*/

;(function() {

	"use strict";

	var deps = [];

	deps.push('src/engine/Class');
	deps.push('src/engine/storage/Container');

	define(deps, function (Class, Container) {
		
		var EventSet = new Class('EventSet', function() {
			EventSet.super.constructor.call(this);//Call Container constructor in EventSet scope
		});

		EventSet.extend(Container);//Inherit the container to get functionallity as container
		
		/**
		 * Attach event listener by name and callback
		 * @param {String} name - this is the name of the event, for example: 'update'
		 * @param {Functin} callback - this is the callback function, which will be called when event is triggered.
		 * @see
		 * 	  eventSet.on('test', callback);//Attach event
		 *    //Fire the event, after this action, callback will be called with 1,2,3,4,5 arguments
		 *    eventSet.fire('test', 1, 2, 3, 4 etc..);<commit_msg>Update EventSet.js<commit_after>/**
* @file implements EventSet class
* @description this class implements simple event mechanism
* @author CORSAIR <<EMAIL>>
* @requires Container class - EventSet depends/inherit the Container to store names and callbacks of the events.
* 	- https://github.com/corsa1r/TransformiumJS/blob/master/src/engine/storage/Container.js
* @version 21.11.2014
*/

;(function() {

	"use strict";

	var deps = [];

	deps.push('src/engine/Class');
	deps.push('src/engine/storage/Container');

	define(deps, function (Class, Container) {
		
		var EventSet = new Class('EventSet', function() {
			EventSet.super.constructor.call(this);//Call Container constructor in EventSet scope
		});

		EventSet.extend(Container);//Inherit the container to get functionallity as container
		
		/**
		 * Attach event listener by name and callback
		 * @param {String} name - this is the name of the event, for example: 'update'
		 * @param {Functin} callback - this is the callback function, which will be called when event is triggered.
		 * @see
		 * 	  eventSet.on('test', callback);//Attach event
		 *    //Fire the event, after this action, callback will be called with 1,2,3,4,5 arguments
		 *    eventSet.fire('test', 1, 2, 3, 4 etc..);
{'fraction_non_alphanumeric': 0.12406328059950042, 'fraction_numerical': 0.014571190674437969, 'mean_word_length': 3.8841463414634148, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '641109', 'n_tokens_mistral': 781, 'n_tokens_neox': 690, 'n_words': 243}