<commit_before>define(['./node'], function(Node) {
	// Element node
	function Element(name) {
		Node.call(this, Node.ELEMENT_NODE);
		this.nodeName = name;
	}
	Element.prototype = new Node(Node.ELEMENT_NODE);
	Element.prototype.constructor = Element;

	return Element;
});<commit_msg>Added attribute getter and setter methods.<commit_after>define(['./node'], function(Node) {
	// Element node
	function Element(name) {
		Node.call(this, Node.ELEMENT_NODE);
		this.nodeName = name;
	}
	Element.prototype = new Node(Node.ELEMENT_NODE);
	Element.prototype.constructor = Element;

	Element.prototype.getAttributeValue = function(attributeName) {
		if (!this.attributes)
			return;

		return this.attributes[attributeName];
	}

	Element.prototype.setAttributeValue = function(attributeName, attributeValue) {
		if (!this.attributes)
			this.attributes = {};


		// TODO: remove if value undefined

		// TODO: waarde altijd als string? Dus toString() nodig? Voorkomt wel onduidelijkheid
		this.attributes[attributeName] = '' + attributeValue;
	}

	return Element;
});
{'fraction_non_alphanumeric': 0.13006597549481622, 'fraction_numerical': 0.0, 'mean_word_length': 4.771739130434782, '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': '1811257', 'n_tokens_mistral': 341, 'n_tokens_neox': 323, 'n_words': 70}