<commit_before>
// REMOVE FROM HERE!
function _renderTextFromDomElement(domElement) {
    return domElement.innerText || domElement.textContent;
}

function FacebookContentSelector() {
	
	this.canParse = function(window) {
		return window.location.hostname == "www.facebook.com";
    }
	
    this.selectContentFromDOMElements = function(domElements) {
		
		for (var i = 0; i < domElements.length; i++) {
			result = document.evaluate("//span[@class='UFICommentBody']/span", domElements[i], null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null);
			if (result){
				var node = result.iterateNext();
				while(node) {
					console.log(_renderTextFromDomElement(node));
					node = result.iterateNext();
				}
			} else {
				console.log("No elements found.")
			}
		}
        return [];
    };
}

var facebookContentSelector = new FacebookContentSelector();
contentFilter.addContentSelector(facebookContentSelector, 0.1);	<commit_msg>Removed a function which is used from utils.<commit_after>
function FacebookContentSelector() {
	
	this.canParse = function(window) {
		return window.location.hostname == "www.facebook.com";
    }
	
    this.selectContentFromDOMElements = function(domElements) {
		
		for (var i = 0; i < domElements.length; i++) {
			result = document.evaluate("//span[@class='UFICommentBody']/span", domElements[i], null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null);
			if (result){
				var node = result.iterateNext();
				while(node) {
					console.log(_renderTextFromDomElement(node));
					node = result.iterateNext();
				}
			} else {
				console.log("No elements found.")
			}
		}
        return [];
    };
}

var facebookContentSelector = new FacebookContentSelector();
contentFilter.addContentSelector(facebookContentSelector, 0.1);	
{'fraction_non_alphanumeric': 0.13018760659465606, 'fraction_numerical': 0.0034110289937464467, 'mean_word_length': 4.086705202312139, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6435819', 'n_tokens_mistral': 606, 'n_tokens_neox': 521, 'n_words': 101}