<commit_before><section>
	<table class="table table-striped table-bordered" id="generalstats">
		<thead>
			<tr>
				<th>Stat</th>
				<th>Value</th>
				<th>Server Average</th>
				<th>Server Total</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($BlueStats->config["stats"]["id"] as $stat) :?>
			<?php
				$player_stat = $player->getStat($stat);

				if ($stat!="lastjoin"&&$stat!="lastleave"){
					$server_total =  getStatTotal($stat,$mysqli,$BlueStats->config["mysql"]["stats"]["table_prefix"]);
				}else{
					$server_total="";
				}

				if ($stat!="lastjoin"&&$stat!="lastleave"){
					$server_average = round($server_total / getPlayerCount($mysqli,$BlueStats->config["mysql"]["stats"]["table_prefix"])[0]["count(*)"]);
				}else{
					$server_average="";
				}

				if ($stat == "playtime"){
					$player_stat=secondsToTime($player_stat);
					$server_total=secondsToTime($server_total);
					$server_average=secondsToTime($server_average);
				}
				$statTitle="";
				if (isset($stats_names[$stat])){
					$statTitle=$stats_names[$stat];
				}else{
					$statTitle=$stat;
				}
			?>
			<tr>
				<td><?=$statTitle; ?></td>
				<td><?=$player_stat; ?></td>
				<td><?=$server_average ?></td>
				<td><?=$server_total ?></td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
<script>
	$(document).ready(function() {
		$('#generalstats').dataTable({
			responsive: true
		});
	} );
</script>
</section><commit_msg>Fixed stat names not showing as intented<commit_after><section>
	<table class="table table-striped table-bordered" id="generalstats">
		<thead>
			<tr>
				<th>Stat</th>
				<th>Value</th>
				<th>Server Average</th>
				<th>Server Total</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($BlueStats->config["stats"]["id"] as $stat) :?>
			<?php
				$player_stat = $player->getStat($stat);

				if ($stat!="lastjoin"&&$stat!="lastleave"){
					$server_total =  getStatTotal($stat,$mysqli,$BlueStats->config["mysql"]["stats"]["table_prefix"]);
				}else{
					$server_total="";
				}

				if ($stat!="lastjoin"&&$stat!="lastleave"){
					$server_average = round($server_total / getPlayerCount($mysqli,$BlueStats->config["mysql"]["stats"]["table_prefix"])[0]["count(*)"]);
				}else{
					$server_average="";
				}

				if ($stat == "playtime"){
					$player_stat=secondsToTime($player_stat);
					$server_total=secondsToTime($server_total);
					$server_average=secondsToTime($server_average);
				}
				$statTitle="";
				if (isset($BlueStats->config["stats"]["names"][$stat])){
					$statTitle=$BlueStats->config["stats"]["names"][$stat];
				}else{
					$statTitle=$stat;
				}
			?>
			<tr>
				<td><?=$statTitle; ?></td>
				<td><?=$player_stat; ?></td>
				<td><?=$server_average ?></td>
				<td><?=$server_total ?></td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
<script>
	$(document).ready(function() {
		$('#generalstats').dataTable({
			responsive: true
		});
	} );
</script>
</section>
{'fraction_non_alphanumeric': 0.23325399523971438, 'fraction_numerical': 0.0006800408024481469, 'mean_word_length': 4.06368330464716, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 87, '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': '3592250', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1074, 'n_words': 147}