<commit_before>// Window.prototype.DOMTokenList
(function () {
	function spliceClassList(classList) {
		Array.prototype.splice.call(classList, 0, classList.length);

		var className = classList.element.className
		if (typeof className === 'string') {
			className = className.trim()
			if (className.trim()) {
				Array.prototype.push.apply(classList, className.trim().split(/\s+/));
			}
		}
		// AN SVG element's className property  an object with baseVal and
		// animVal string properties containing the className
		else if(typeof className === 'object') {
			if (className.baseVal && className.baseVal.trim()) {
				Array.prototype.push.apply(classList, className.baseVal.trim().split(/\s+/));
			}
  		}
		return classList;
	}

	function getStringTokenIndex(classList, token) {
		if (/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(token)) {
			return Array.prototype.indexOf.call(classList, token);
		} else {
			throw new Error('InvalidCharacterError: DOM Exception 5');
		}
	}

	var DOMTokenList = window.DOMTokenList = Window.prototype.DOMTokenList = function DOMTokenList() {
		throw new Error('Illegal constructor');
	};

	DOMTokenList.prototype = {<commit_msg>Use getAttribute('class') instead of className directly.<commit_after>// Window.prototype.DOMTokenList
(function () {
	function spliceClassList(classList) {
		Array.prototype.splice.call(classList, 0, classList.length);

		// We use getAttribute to normalise element.className implementations
		var className = classList.getAttribute('class')
		if (className && className.trim()) {
			Array.prototype.push.apply(classList, className.trim().split(/\s+/));
		}
		return classList;
	}

	function getStringTokenIndex(classList, token) {
		if (/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(token)) {
			return Array.prototype.indexOf.call(classList, token);
		} else {
			throw new Error('InvalidCharacterError: DOM Exception 5');
		}
	}

	var DOMTokenList = window.DOMTokenList = Window.prototype.DOMTokenList = function DOMTokenList() {
		throw new Error('Illegal constructor');
	};

	DOMTokenList.prototype = {
{'fraction_non_alphanumeric': 0.14618746964545895, 'fraction_numerical': 0.003885381253035454, 'mean_word_length': 4.364583333333333, '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': '3515966', 'n_tokens_mistral': 687, 'n_tokens_neox': 625, 'n_words': 130}