<commit_before><?php class _Common_PageCode extends PageCode {
public function go($api, $dom, $template, $tool) {
	$main = $dom["body > main"];
	if($main->hasAttribute("data-title")) {
		$dom["body > header > h1"]->textContent = 
			$main->getAttribute("data-title");
	}
}	
}#<commit_msg>Remove header nav if on index page (#2)<commit_after><?php class _Common_PageCode extends PageCode {
public function go($api, $dom, $template, $tool) {
	$main = $dom["body > main"];
	if($main->hasAttribute("data-title")) {
		$dom["body > header > h1"]->textContent = 
			$main->getAttribute("data-title");
	}

	if(PATH === "Index") {
		$dom["body > header > nav"]->remove();
	}
}	
}#
{'fraction_non_alphanumeric': 0.21162444113263784, 'fraction_numerical': 0.004470938897168405, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '1637030', 'n_tokens_mistral': 244, 'n_tokens_neox': 237, 'n_words': 50}