<commit_before>if(enyo.platform.webos && enyo.platform.webos < 3) {
	enyo.singleton({
		name: "webos.SymKey",
		kind: enyo.Component,
		components: [
			{kind:"enyo.Signals", onkeydown:"keydown", onrelaunch:"relaunch"}
		],
		//* @public
		show: function(target) {
			this.symKeyTarget = target || document;
			this.request = new webOS.ServiceRequest({
				service: "palm://com.palm.applicationManager",
				method: "launch"
			});
			this.request.error(this, "serviceFailure");
			request.go({
				"id":"com.palm.systemui",
				"params": {
					"action":"showAltChar"
				}
			});
		},
		//* @protected
		keydown:function(inSender, inEvent) {
			if(inEvent.keyCode === 17) {
				this.show(inEvent.target);
			}
		},
		serviceFailure: function(inSender, inError) {
			enyo.error(enyo.json.stringify(inError));
		},
		relaunch: function(inSender, inEvent) {
			var altCharSelected = enyo.json.parse(PalmSystem.launchParams).altCharSelected;
			if(!altCharSelected) {
				return false;
			}

			var selection, newEvent, charCode;
			// Put the text into the editable element
			selection = window.getSelection();
			// make sure there are any available range to index as
			// getRangeAt does not protect against that
			if (selection && selection.rangeCount > 0 && selection.getRangeAt(0)) {
				document.execCommand("insertText", true, altCharSelected);
			}

			// Fire off our fake events
			charCode = altCharSelected.charCodeAt(0);
			this.sendFakeKey("keydown", charCode);
			this.sendFakeKey("keypress", charCode);
			this.sendFakeKey("keyup", charCode);
		},
		sendFakeKey(eventType, charCode) {
			var e = document.createEvent("Events");
			e.initEvent(type, true, true);

			e.keyCode = charCode;
			e.charCode = charCode;
			e.which = charCode;

			this.symKeyTarget.dispatchEvent(e);
			return e;
		}
	});<commit_msg>Small bugfix to function declaration in SymKey.js<commit_after>if(enyo.platform.webos && enyo.platform.webos < 3) {
	enyo.singleton({
		name: "webos.SymKey",
		kind: enyo.Component,
		components: [
			{kind:"enyo.Signals", onkeydown:"keydown", onrelaunch:"relaunch"}
		],
		//* @public
		show: function(target) {
			this.symKeyTarget = target || document;
			this.request = new webOS.ServiceRequest({
				service: "palm://com.palm.applicationManager",
				method: "launch"
			});
			this.request.error(this, "serviceFailure");
			request.go({
				"id":"com.palm.systemui",
				"params": {
					"action":"showAltChar"
				}
			});
		},
		//* @protected
		keydown:function(inSender, inEvent) {
			if(inEvent.keyCode === 17) {
				this.show(inEvent.target);
			}
		},
		serviceFailure: function(inSender, inError) {
			enyo.error(enyo.json.stringify(inError));
		},
		relaunch: function(inSender, inEvent) {
			var altCharSelected = enyo.json.parse(PalmSystem.launchParams).altCharSelected;
			if(!altCharSelected) {
				return false;
			}

			var selection, newEvent, charCode;
			// Put the text into the editable element
			selection = window.getSelection();
			// make sure there are any available range to index as
			// getRangeAt does not protect against that
			if (selection && selection.rangeCount > 0 && selection.getRangeAt(0)) {
				document.execCommand("insertText", true, altCharSelected);
			}

			// Fire off our fake events
			charCode = altCharSelected.charCodeAt(0);
			this.sendFakeKey("keydown", charCode);
			this.sendFakeKey("keypress", charCode);
			this.sendFakeKey("keyup", charCode);
		},
		sendFakeKey: function(eventType, charCode) {
			var e = document.createEvent("Events");
			e.initEvent(type, true, true);

			e.keyCode = charCode;
			e.charCode = charCode;
			e.which = charCode;

			this.symKeyTarget.dispatchEvent(e);
			return e;
		}
	});
{'fraction_non_alphanumeric': 0.14532685035116152, 'fraction_numerical': 0.0032414910858995136, 'mean_word_length': 3.6932826362484157, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 5, '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': '2922317', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1234, 'n_words': 241}