<commit_before>/*
 * L.DomEvent contains functions for working with DOM events.
 */

L.DomEvent = {
	/* inpired by <NAME>, <NAME> and YUI addEvent implementations */
	addListener: function(/*HTMLElement*/ obj, /*String*/ type, /*Function*/ fn, /*Object*/ context) {
		var id = L.Util.stamp(fn),
			key = '_leaflet_' + type + id;

		if (obj.hasOwnProperty(key)) { return; }

		function handler(e) {
			return fn.call(context || obj, e || L.DomEvent._getEvent());
		}

		if (L.Browser.touch && (type == 'dblclick') && this.addDoubleTapListener) {
			this.addDoubleTapListener(obj, handler, id);
		} else if ('addEventListener' in obj) {
			if (type == 'mousewheel') {<commit_msg>Fixes IE problem introduced in a recent commit, #292<commit_after>/*
 * L.DomEvent contains functions for working with DOM events.
 */

L.DomEvent = {
	/* inpired by <NAME>, <NAME> and YUI addEvent implementations */
	addListener: function(/*HTMLElement*/ obj, /*String*/ type, /*Function*/ fn, /*Object*/ context) {
		var id = L.Util.stamp(fn),
			key = '_leaflet_' + type + id;

		if (obj[key]) { return; }

		function handler(e) {
			return fn.call(context || obj, e || L.DomEvent._getEvent());
		}

		if (L.Browser.touch && (type == 'dblclick') && this.addDoubleTapListener) {
			this.addDoubleTapListener(obj, handler, id);
		} else if ('addEventListener' in obj) {
			if (type == 'mousewheel') {
{'fraction_non_alphanumeric': 0.17053701015965167, 'fraction_numerical': 0.0021770682148040637, 'mean_word_length': 3.7551724137931033, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4184656', 'n_tokens_mistral': 497, 'n_tokens_neox': 459, 'n_words': 128}