<commit_before>// **removeHTML**
//
// Remove children from a container element.
//
function _removeHTML(el) {
	if(typeof el.firstChild !== "undefined") {
		while(el.firstChild) {
			el.removeChild(el.firstChild);
		}
	}
}

// **replaceHTML**
//
// Replace children with an HTML string.
//
function _replaceHTML(el, html) {
	// **manipulating**
	//
	// Called before the DOM is manipulated.
	//
	if(typeof Combo.manipulating === "function") {
		Combo.manipulating(el);
	}

	//
	// Remove the child elements.
	//
	_removeHTML(el);

	// Insert the HTML string.
	//
	el.insertAdjacentHTML("beforeEnd", html);

	// **manipulated**
	//
	// Called after the DOM is manipulated.
	//
	if(typeof Combo.manipulated === "function") {
		Combo.manipulated(el);
	}
}

Combo.version = "@version";<commit_msg>Added Docco comments<commit_after>// ## Core

// **removeHTML**
//
// Remove children from a container element.
//
function _removeHTML(el) {
	if(typeof el.firstChild !== "undefined") {
		while(el.firstChild) {
			el.removeChild(el.firstChild);
		}
	}
}

// **replaceHTML**
//
// Replace children with an HTML string.
//
function _replaceHTML(el, html) {
	// **manipulating**
	//
	// Called before the DOM is manipulated.
	//
	if(typeof Combo.manipulating === "function") {
		Combo.manipulating(el);
	}

	//
	// Remove the child elements.
	//
	_removeHTML(el);

	// Insert the HTML string.
	//
	el.insertAdjacentHTML("beforeEnd", html);

	// **manipulated**
	//
	// Called after the DOM is manipulated.
	//
	if(typeof Combo.manipulated === "function") {
		Combo.manipulated(el);
	}
}

// **version**
//
// Returns the semantic version number.
//
Combo.version = "@version";
{'fraction_non_alphanumeric': 0.17827130852340936, 'fraction_numerical': 0.0, 'mean_word_length': 3.0857843137254903, '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': '5244834', 'n_tokens_mistral': 605, 'n_tokens_neox': 581, 'n_words': 128}