<commit_before>//* @protected
(function() {
	// add touch-specific gesture feature
	var gesture = enyo.gesture;
	if (window.navigator.msPointerEnabled) {
		var msEvents = [
			"MSPointerDown",
			"MSPointerUp",
			"MSPointerMove",
			"MSPointerOver",
			"MSPointerOut",
			"MSPointerCancel",
			"MSGestureTap",
			"MSGestureDoubleTap",
			"MSGestureHold",
			"MSGestureStart",
			"MSGestureChange",
			"MSGestureEnd"
		];
		enyo.forEach(msEvents, function(e) {
			enyo.dispatcher.listen(document, e);
		});
		// add our own MSPointer event handler
		enyo.dispatcher.features.push(function(e) {
			if (handlers[e.type] && e.isPrimary) {
				handlers[e.type](e);
			}
		});
		// remove the default mouse event handlers
		enyo.gesture.events = {};
	}

	var makeEvent = function(inEvent) {
		var e = enyo.clone(inEvent);
		e.srcEvent = inEvent;
		// normalize "mouse button" info
		e.which = 1;
		return e;
	};

	var handlers = {
		// FIXME: need to register for gestures in MSPointerDown
		// according to Microsoft docs<commit_msg>ENYO-2993: add buttons status to events generated by msevents.js<commit_after>//* @protected
(function() {
	// add touch-specific gesture feature
	var gesture = enyo.gesture;
	if (window.navigator.msPointerEnabled) {
		var msEvents = [
			"MSPointerDown",
			"MSPointerUp",
			"MSPointerMove",
			"MSPointerOver",
			"MSPointerOut",
			"MSPointerCancel",
			"MSGestureTap",
			"MSGestureDoubleTap",
			"MSGestureHold",
			"MSGestureStart",
			"MSGestureChange",
			"MSGestureEnd"
		];
		enyo.forEach(msEvents, function(e) {
			enyo.dispatcher.listen(document, e);
		});
		// add our own MSPointer event handler
		enyo.dispatcher.features.push(function(e) {
			if (handlers[e.type] && e.isPrimary) {
				handlers[e.type](e);
			}
		});
		// remove the default mouse event handlers
		enyo.gesture.events = {};
	}

	var makeEvent = function(inEvent) {
		var e = enyo.clone(inEvent);
		e.srcEvent = inEvent;
		// normalize "mouse button" info
		// 1: left, 2: right, 3: both left & right, 4: center
		e.which = inEvent.buttons;
		return e;
	};

	var handlers = {
		// FIXME: need to register for gestures in MSPointerDown
		// according to Microsoft docs
{'fraction_non_alphanumeric': 0.1367599816429555, 'fraction_numerical': 0.004130335016062414, 'mean_word_length': 3.48559670781893, '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': '7024789', 'n_tokens_mistral': 890, 'n_tokens_neox': 768, 'n_words': 173}