<commit_before>function executeHatemile(event) {
	var doc = event.originalTarget;
	if ((doc instanceof HTMLDocument)
			&& (doc.defaultView === doc.defaultView.top)
			&& (typeof doc.body !== typeof undefined)
			&& (typeof doc.head !== typeof undefined)) {
		var configuration = getConfiguration();

		var configure = new hatemile.util.Configure(configuration);
		var htmlParser = new hatemile.util.html.vanilla.VanillaHTMLDOMParser(doc);

		var accessibleAssociation = new hatemile.implementation.AccessibleAssociationImplementation(htmlParser, configure);
		accessibleAssociation.associateAllDataCellsWithHeaderCells();
		accessibleAssociation.associateAllLabelsWithFields();

		var accessibleForm = new hatemile.implementation.AccessibleFormImplementation(htmlParser, configure);
		accessibleForm.markAllAutoCompleteFields();
		accessibleForm.markAllRangeFields();
		accessibleForm.markAllRequiredFields();

		var accessibleNavigation = new hatemile.implementation.AccessibleNavigationImplementation(htmlParser, configure, getSkippers());
		accessibleNavigation.provideNavigationByAllHeadings();
		accessibleNavigation.provideNavigationToAllLongDescriptions();
		accessibleNavigation.provideNavigationByAllSkippers();

		var accessibleDisplay = new hatemile.implementation.AccessibleDisplayScreenReaderImplementation(htmlParser, configure, doc.defaultView.navigator.userAgent);
		accessibleDisplay.displayAllCellHeaders();
		accessibleDisplay.displayAllWAIARIAStates();
		accessibleDisplay.displayAllLinksAttributes();
		accessibleDisplay.displayAllDragsAndDrops();
		accessibleDisplay.displayAllAlternativeTextImages();
		accessibleDisplay.displayAllTitles();
		accessibleDisplay.displayAllShortcuts();
	}
}

function includeAuxiliarScripts(doc) {
	if ((doc instanceof HTMLDocument)
			&& (doc.defaultView === doc.defaultView.top)
			&& (typeof doc.body !== typeof undefined)
			&& (typeof doc.head !== typeof undefined)) {
		if (!doc.getElementById('eventlistenerlist')) {
			loadStyle(doc, 'styles/accessiblearia.css', 'accessiblearia');
			loadStyle(doc, 'styles/accessibleformvalidation.css', 'accessibleformvalidation');
			loadStyle(doc, 'styles/hide_changes.css', 'hidechanges');
			loadScript(doc, 'scripts/hatemile/js/common.js', true);
			loadScript(doc, 'scripts/hatemile/js/eventlistener.js', true);
			loadScript(doc, 'scripts/hatemile/js/hatemile/util/CommonFunctions.js', false);
			loadScript(doc, 'scripts/hatemile/js/hatemile/util/Configure.js', false);
			loadScript(doc, 'scripts/hatemile/js/hatemile/util/html/vanilla/VanillaHTMLDOMElement.js', false);
			loadScript(doc, 'scripts/hatemile/js/hatemile/util/html/vanilla/VanillaHTMLDOMParser.js', false);
			loadScript(doc, 'scripts/hatemile/js/hatemile/util/html/vanilla/VanillaHTMLDOMTextNode.js', false);
			loadScript(doc, 'scripts/hatemile/js/hatemile/implementation/AccessibleEventImplementation.js', false);
			loadScript(doc, 'scripts/hatemile/js/hatemile/implementation/AccessibleFormImplementation.js', false);
			loadScript(doc, 'scripts/execute.js', false);
		}
	}
}

function includeAuxiliarScriptsByFirstScript(event) {
	var element = event.originalTarget;
	if (element instanceof Element) {
		includeAuxiliarScripts(element.ownerDocument);
	}
}

function includeAuxiliarScriptsByHead(event) {
	var doc = event.originalTarget;
	if ((doc instanceof HTMLDocument)
			&& (typeof doc.head !== typeof undefined)) {
		includeAuxiliarScripts(doc);
	}
}

window.addEventListener('load', function() {
	var appcontent = document.getElementById('appcontent');
	if (appcontent) {
		appcontent.addEventListener('beforescriptexecute', includeAuxiliarScriptsByFirstScript, true);
		appcontent.addEventListener('DOMContentLoaded', includeAuxiliarScriptsByHead, true);
		appcontent.addEventListener('load', executeHatemile, true);
	} else {
		gBrowser.addEventListener('beforescriptexecute', includeAuxiliarScriptsByFirstScript, true);
		gBrowser.addEventListener('DOMContentLoaded', includeAuxiliarScriptsByHead, true);
		gBrowser.addEventListener('load', executeHatemile, true);
	}
}, true);<commit_msg>:art: Remove 'AND' after line break<commit_after>function executeHatemile(event) {
	var doc = event.originalTarget;
	if ((doc instanceof HTMLDocument) &&
			(doc.defaultView === doc.defaultView.top) &&
			(typeof doc.body !== typeof undefined) &&
			(typeof doc.head !== typeof undefined)) {
		var configuration = getConfiguration();

		var configure = new hatemile.util.Configure(configuration);
		var htmlParser = new hatemile.util.html.vanilla.VanillaHTMLDOMParser(doc);

		var accessibleAssociation = new hatemile.implementation.AccessibleAssociationImplementation(htmlParser, configure);
		accessibleAssociation.associateAllDataCellsWithHeaderCells();
		accessibleAssociation.associateAllLabelsWithFields();

		var accessibleForm = new hatemile.implementation.AccessibleFormImplementation(htmlParser, configure);
		accessibleForm.markAllAutoCompleteFields();
		accessibleForm.markAllRangeFields();
		accessibleForm.markAllRequiredFields();

		var accessibleNavigation = new hatemile.implementation.AccessibleNavigationImplementation(htmlParser, configure, getSkippers());
		accessibleNavigation.provideNavigationByAllHeadings();
		accessibleNavigation.provideNavigationToAllLongDescriptions();
		accessibleNavigation.provideNavigationByAllSkippers();

		var accessibleDisplay = new hatemile.implementation.AccessibleDisplayScreenReaderImplementation(htmlParser, configure, doc.defaultView.navigator.userAgent);
		accessibleDisplay.displayAllCellHeaders();
		accessibleDisplay.displayAllWAIARIAStates();
		accessibleDisplay.displayAllLinksAttributes();
		accessibleDisplay.displayAllDragsAndDrops();
		accessibleDisplay.displayAllAlternativeTextImages();
		accessibleDisplay.displayAllTitles();
		accessibleDisplay.displayAllShortcuts();
	}
}

function includeAuxiliarScripts(doc) {
	if ((doc instanceof HTMLDocument) &&
			(doc.defaultView === doc.defaultView.top) &&
			(typeof doc.body !== typeof undefined) &&
			(typeof doc.head !== typeof undefined)) {
		if (!doc.getElementById('eventlistenerlist')) {
			loadStyle(doc, 'styles/accessiblearia.css', 'accessiblearia');
			loadStyle(doc, 'styles/accessibleformvalidation.css', 'accessibleformvalidation');
			loadStyle(doc, 'styles/hide_changes.css', 'hidechanges');
			loadScript(doc, 'scripts/hatemile/js/common.js', true);
			loadScript(doc, 'scripts/hatemile/js/eventlistener.js', true);
			loadScript(doc, 'scripts/hatemile/js/hatemile/util/CommonFunctions.js', false);
			loadScript(doc, 'scripts/hatemile/js/hatemile/util/Configure.js', false);
			loadScript(doc, 'scripts/hatemile/js/hatemile/util/html/vanilla/VanillaHTMLDOMElement.js', false);
			loadScript(doc, 'scripts/hatemile/js/hatemile/util/html/vanilla/VanillaHTMLDOMParser.js', false);
			loadScript(doc, 'scripts/hatemile/js/hatemile/util/html/vanilla/VanillaHTMLDOMTextNode.js', false);
			loadScript(doc, 'scripts/hatemile/js/hatemile/implementation/AccessibleEventImplementation.js', false);
			loadScript(doc, 'scripts/hatemile/js/hatemile/implementation/AccessibleFormImplementation.js', false);
			loadScript(doc, 'scripts/execute.js', false);
		}
	}
}

function includeAuxiliarScriptsByFirstScript(event) {
	var element = event.originalTarget;
	if (element instanceof Element) {
		includeAuxiliarScripts(element.ownerDocument);
	}
}

function includeAuxiliarScriptsByHead(event) {
	var doc = event.originalTarget;
	if ((doc instanceof HTMLDocument) &&
			(typeof doc.head !== typeof undefined)) {
		includeAuxiliarScripts(doc);
	}
}

window.addEventListener('load', function() {
	var appcontent = document.getElementById('appcontent');
	if (appcontent) {
		appcontent.addEventListener('beforescriptexecute', includeAuxiliarScriptsByFirstScript, true);
		appcontent.addEventListener('DOMContentLoaded', includeAuxiliarScriptsByHead, true);
		appcontent.addEventListener('load', executeHatemile, true);
	} else {
		gBrowser.addEventListener('beforescriptexecute', includeAuxiliarScriptsByFirstScript, true);
		gBrowser.addEventListener('DOMContentLoaded', includeAuxiliarScriptsByHead, true);
		gBrowser.addEventListener('load', executeHatemile, true);
	}
}, true);
{'fraction_non_alphanumeric': 0.11643835616438356, 'fraction_numerical': 0.0, 'mean_word_length': 7.276315789473684, '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': '7129554', 'n_tokens_mistral': 2551, 'n_tokens_neox': 2298, 'n_words': 354}