<commit_before>//* @protected
enyo.$ = {};

enyo.dispatcher = {
	// these events come from document
	events: ["mousedown", "mouseup", "mouseover", "mouseout", "mousemove", "mousewheel", "click", "dblclick", "change", "keydown", "keyup", "keypress", "input"],
	// these events come from window
	windowEvents: ["resize", "load", "unload", "message"],
	// feature plugins (aka filters)
	features: [],
	connect: function() {
		var d = enyo.dispatcher;
		for (var i=0, n; n=d.events[i]; i++) {
			d.listen(document, n);
		}
		for (i=0, n; n=d.windowEvents[i]; i++) {
			// Chrome Packaged Apps don't like "unload"
			if(n === "unload"
					&& typeof(window.chrome) === "object"
					&& window.chrome.extension) {
				continue;
			}

			d.listen(window, n);
		}
	},
	listen: function(inListener, inEventName) {
		var d = enyo.dispatch;
		if (inListener.addEventListener) {
			this.listen = function(inListener, inEventName) {
				inListener.addEventListener(inEventName, d, false);
			};
		} else {
			//console.log("IE8 COMPAT: using 'attachEvent'");
			this.listen = function(inListener, inEvent, inCb) {
				inListener.attachEvent("on" + inEvent, function(e) {
					e.target = e.srcElement;
					if (!e.preventDefault) {
						e.preventDefault = enyo.iePreventDefault;
					}<commit_msg>Chrome packaged apps runtime does not expose chrome.extension, as it turns out, which I used to determine whether the code has been deployed as an app. Fixed<commit_after>//* @protected
enyo.$ = {};

enyo.dispatcher = {
	// these events come from document
	events: ["mousedown", "mouseup", "mouseover", "mouseout", "mousemove", "mousewheel", "click", "dblclick", "change", "keydown", "keyup", "keypress", "input"],
	// these events come from window
	windowEvents: ["resize", "load", "unload", "message"],
	// feature plugins (aka filters)
	features: [],
	connect: function() {
		var d = enyo.dispatcher;
		for (var i=0, n; n=d.events[i]; i++) {
			d.listen(document, n);
		}
		for (i=0, n; n=d.windowEvents[i]; i++) {
			// Chrome Packaged Apps don't like "unload"
			if(n === "unload"
					&& typeof(window.chrome) === "object"
					&& window.chrome.app) {
				continue;
			}

			d.listen(window, n);
		}
	},
	listen: function(inListener, inEventName) {
		var d = enyo.dispatch;
		if (inListener.addEventListener) {
			this.listen = function(inListener, inEventName) {
				inListener.addEventListener(inEventName, d, false);
			};
		} else {
			//console.log("IE8 COMPAT: using 'attachEvent'");
			this.listen = function(inListener, inEvent, inCb) {
				inListener.attachEvent("on" + inEvent, function(e) {
					e.target = e.srcElement;
					if (!e.preventDefault) {
						e.preventDefault = enyo.iePreventDefault;
					}
{'fraction_non_alphanumeric': 0.1714708056171471, 'fraction_numerical': 0.0022172949002217295, 'mean_word_length': 3.757469244288225, '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': '6310828', 'n_tokens_mistral': 1046, 'n_tokens_neox': 917, 'n_words': 230}