<commit_before><?php

	require_once __DIR__ . '/../functions/chat.php';
	require_once __DIR__ . '/../functions/pagination.php';

	renderTemplate('chat_archive_top', []);

	$page = (isset($_GET['page']) && is_int($_GET['page'] * 1)) ? ($_GET['page'] * 1) : 1;

	$numMessages = getNumChatMessages();
	$numPages = (int)ceil($numMessages / MAX_CHAT_MESSAGES);
	makeBetween($page, 1, $numPages);
	renderPagination('?p=chat-archive', $page, $numPages);

	$messages = getChatMessagesForAchive($page);

	renderTemplate('chat_archive', [
		'messages' => $messages
	]);

	renderPagination('?p=chat-archive', $page, $numPages);<commit_msg>made spoilers work in chat archive<commit_after><?php

	require_once __DIR__ . '/../functions/chat.php';
	require_once __DIR__ . '/../functions/pagination.php';

	renderTemplate('chat_archive_top', []);

	$page = (isset($_GET['page']) && is_int($_GET['page'] * 1)) ? ($_GET['page'] * 1) : 1;

	$numMessages = getNumChatMessages();
	$numPages = (int)ceil($numMessages / MAX_CHAT_MESSAGES);
	makeBetween($page, 1, $numPages);
	renderPagination('?p=chat-archive', $page, $numPages);

	$messages = getChatMessagesForAchive($page);

	renderTemplate('chat_archive', [
		'messages' => $messages
	]);

	renderPagination('?p=chat-archive', $page, $numPages);

	renderTemplate('spoiler_js', []);
{'fraction_non_alphanumeric': 0.2025894897182026, 'fraction_numerical': 0.006092916984006093, 'mean_word_length': 6.141304347826087, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4008275', 'n_tokens_mistral': 481, 'n_tokens_neox': 457, 'n_words': 73}