<commit_before><html>
	<head>
		<?php
			if (file_exists('deployed')) {
				include('common/googleanalytics.php');
			}
		?>
		<title>Download - Jeopardy!</title>
	</head>
	<body>
		<?php
			if (isset($_GET['key'])) {
				$json_hash = $_GET['key'];
		
				if (file_exists('config/config.php')) {
					include("config/config.php");
				}
				else {
					include("config/config_sample.php");
				}
				$db = new mysqli($HOSTNAME, $USERNAME, $PASSWORD, $DATABASE);

				if($db->connect_errno > 0){
				    die('Unable to connect to database [' . $db->connect_error . ']');
				}

				$sql = $db->prepare("SELECT json, name, author FROM QBanks WHERE json_hash = ?;");
				$sql->bind_param('s', $json_hash);
				$sql->execute();
				$sql->bind_result($json, $name, $author);
				$sql->fetch();
				$sql->free_result();
				$db->close();
		
				echo "<h2><b>Game:</b> ".$name."</h2>";
				echo "<h2><b>Author:</b> ".$author."</h2>";
				$questions = json_decode(utf8_encode($json), true);
		
				for ($i = 0; $i < count($questions); $i++) {
					if ((($i % 5) == 0) || ($i == 0)) {
						echo "<h3>Category: ".$questions[$i]['category']."</h3>";
					}
			
					echo "<b>Points:</b> ".$questions[$i]['weight']."<br>";
					echo "<b>Question:</b> ".$questions[$i]['question']."<br>";
					echo "<b>Answer:</b> ".$questions[$i]['answer']."<br><br>";
				}
		
				echo "Generated by Jeopardy ".exec("git describe")." by <NAME>";
			}
		?>
	</body>
</html><commit_msg>Fixed wrong game name in download.php<commit_after><html>
	<head>
		<?php
			if (file_exists('deployed')) {
				include('common/googleanalytics.php');
			}
		?>
		<title>Download - Jeopardy!</title>
	</head>
	<body>
		<?php
			if (isset($_GET['key'])) {
				$json_hash = $_GET['key'];
		
				if (file_exists('config/config.php')) {
					include("config/config.php");
				}
				else {
					include("config/config_sample.php");
				}
				$db = new mysqli($HOSTNAME, $USERNAME, $PASSWORD, $DATABASE);

				if($db->connect_errno > 0){
				    die('Unable to connect to database [' . $db->connect_error . ']');
				}

				$sql = $db->prepare("SELECT json, name, author FROM QBanks WHERE json_hash = ?;");
				$sql->bind_param('s', $json_hash);
				$sql->execute();
				$sql->bind_result($json, $name, $author);
				$sql->fetch();
				$sql->free_result();
				$db->close();
		
				echo "<h2><b>Game:</b> ".$name."</h2>";
				echo "<h2><b>Author:</b> ".$author."</h2>";
				$questions = json_decode(utf8_encode($json), true);
		
				for ($i = 0; $i < count($questions); $i++) {
					if ((($i % 5) == 0) || ($i == 0)) {
						echo "<h3>Category: ".$questions[$i]['category']."</h3>";
					}
			
					echo "<b>Points:</b> ".$questions[$i]['weight']."<br>";
					echo "<b>Question:</b> ".$questions[$i]['question']."<br>";
					echo "<b>Answer:</b> ".$questions[$i]['answer']."<br><br>";
				}
		
				echo "Generated by Jeopardy! ".exec("git describe")." by Vir<NAME>";
			}
		?>
	</body>
</html>
{'fraction_non_alphanumeric': 0.2547554347826087, 'fraction_numerical': 0.008152173913043478, 'mean_word_length': 3.1188811188811187, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7337568', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1072, 'n_words': 194}