<commit_before>var hyperaudio = (function($) {

	return {
		core: {
			options: {
				DEBUG: true,
				entity: 'core'
			},
			event: {
				load: 'ha:load',
				error: 'ha:error'
			},
			_trigger: function(eventType, eventData) {
				var eventObject = $.extend({options: this.options}, eventData),
					event = $.Event(eventType, {ha: eventObject});
				$(this).trigger(event);
			},
			_error: function(msg) {
				var data = {msg: this.options.entity + ' Error : ' + msg};
				this._trigger(this.event.error, data);
			},
			_debug: function() {
				var self = this;
				$.each(this.event, function(eventName, eventType) {
					$(self).on(eventType, function(event) {
						console.log(self.options.entity + ' triggered "' + eventType + '" event : ' + event.ha.msg);
					});
				});
			}
		},
		register: function(name, module) {
			if(typeof name === 'string') {
				if(typeof module === 'function') {
					module.prototype = $.extend({}, this.core, module.prototype);
					this[name] = function(options) {
						return new module(options);
					};
				} else if(typeof module === 'object') {
					module = $.extend({}, common, module);
					this[name] = module;
				}
			}
		}
	}
}(jQuery));<commit_msg>Added the utitlities to the core... Seems kinda pointless<commit_after>var hyperaudio = (function($) {

	return {
		core: {
			options: {
				DEBUG: true,
				entity: 'core'
			},
			event: {
				load: 'ha:load',
				error: 'ha:error'
			},
			_trigger: function(eventType, eventData) {
				var eventObject = $.extend({options: this.options}, eventData),
					event = $.Event(eventType, {ha: eventObject});
				$(this).trigger(event);
			},
			_error: function(msg) {
				var data = {msg: this.options.entity + ' Error : ' + msg};
				this._trigger(this.event.error, data);
			},
			_debug: function() {
				var self = this;
				$.each(this.event, function(eventName, eventType) {
					$(self).on(eventType, function(event) {
						console.log(self.options.entity + ' triggered "' + eventType + '" event : ' + event.ha.msg);
					});
				});
			}
		},
		register: function(name, module) {
			if(typeof name === 'string') {
				if(typeof module === 'function') {
					module.prototype = $.extend({}, this.core, module.prototype);
					this[name] = function(options) {
						return new module(options);
					};
				} else if(typeof module === 'object') {
					module = $.extend({}, this.core, module);
					this[name] = module;
				}
			}
		},
		utility: function(name, utility) {
			if(typeof name === 'string') {
				this[name] = utility;
			}
		}
	}
}(jQuery));
{'fraction_non_alphanumeric': 0.1828793774319066, 'fraction_numerical': 0.0, 'mean_word_length': 2.8545727136431784, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2449716', 'n_tokens_mistral': 1080, 'n_tokens_neox': 842, 'n_words': 179}