<commit_before><?php
if (!defined("IN_MOD"))
{
	die("Nah, I won't serve that file to you.");
}
$mitsuba->admin->reqPermission("rebuild");
$mitsuba->admin->ui->checkToken($_POST['token']);
		if ((!empty($_POST['frontpage'])) && ($_POST['frontpage']==1))
		{
			$mitsuba->caching->generateFrontpage();
		}
		
		if ((!empty($_POST['news'])) && ($_POST['news']==1))
		{
			$mitsuba->caching->generateNews();
		}

		$result = $conn->query("SELECT * FROM pages;");
		while ($row = $result->fetch_assoc())
		{<commit_msg>rebuild: fixed Insufficient permissions error<commit_after><?php
if (!defined("IN_MOD"))
{
	die("Nah, I won't serve that file to you.");
}
$mitsuba->admin->reqPermission("config.rebuild");
$mitsuba->admin->ui->checkToken($_POST['token']);
		if ((!empty($_POST['frontpage'])) && ($_POST['frontpage']==1))
		{
			$mitsuba->caching->generateFrontpage();
		}
		
		if ((!empty($_POST['news'])) && ($_POST['news']==1))
		{
			$mitsuba->caching->generateNews();
		}

		$result = $conn->query("SELECT * FROM pages;");
		while ($row = $result->fetch_assoc())
		{
{'fraction_non_alphanumeric': 0.2549203373945642, 'fraction_numerical': 0.0037488284910965324, 'mean_word_length': 5.433734939759036, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '3705256', 'n_tokens_mistral': 416, 'n_tokens_neox': 373, 'n_words': 60}