<commit_before><p>Are you sure you want to delete this page? This cannot be recovered.</p>

<?
	$msg = '';

	if ($count = $page->mptt->count() > 0):
		$titlelist = '';
		
		foreach ($page->mptt->descendants() as $pi):
			$titlelist .= "<li>" . $pi->page->title . "</li>";
		endforeach;
		
		$titlelist = preg_replace("/\, $/", "", $titlelist);
		
		$msg = "<p><strong>Warning:</strong><br />Deleting this page will make it's " . $count . " child ";

		$msg .= ($count !== 1) ? 'page' : 'pages';

		$msg .=  " inaccessible:</p><div id=\"sledge-page-delete-children\"><ul>" . $titlelist . "</ul></div>";
	endif;
	
	echo $msg;
?>

<p>Click 'Okay' to delete, or 'Cancel' to keep the page.</p>
<commit_msg>Fixed bug in delete page dialogue<commit_after><p>Are you sure you want to delete this page? This cannot be recovered.</p>

<?
	$msg = '';

	$count = $page->mptt->count();
	if ($count > 0):
		$titlelist = '';
		
		foreach ($page->mptt->descendants() as $pi):
			$titlelist .= "<li>" . $pi->page->title . "</li>";
		endforeach;
		
		$titlelist = preg_replace("/\, $/", "", $titlelist);
		
		$msg = "<p><strong>Warning:</strong><br />Deleting this page will make it's " . $count . " child ";

		$msg .= ($count !== 1) ? 'page' : 'pages';

		$msg .=  " inaccessible:</p><div id=\"sledge-page-delete-children\"><ul>" . $titlelist . "</ul></div>";
	endif;
	
	echo $msg;
?>

<p>Click 'Okay' to delete, or 'Cancel' to keep the page.</p>

{'fraction_non_alphanumeric': 0.24039133473095736, 'fraction_numerical': 0.002795248078266946, 'mean_word_length': 3.287425149700599, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 49, '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': '5510373', 'n_tokens_mistral': 558, 'n_tokens_neox': 495, 'n_words': 136}