<commit_before><? require('_include/header.php'); ?>

<h1>Last 100 lines of the IRC chat (<a href="irc://irc.freenode.net/lwjgl">#LWJGL IRC channel</a>)</h1>
<p>
<?php 
	$body = htmlentities(file_get_contents("http://irc-stats.lwjgl.org/log.php"));
	$lines = split("\n", $body);
	foreach ($lines as $line) {
  	print $line . "<br>\n";
	}	
?>
</p>
<? require('_include/footer.php'); ?>
<commit_msg>updated irc log to format better<commit_after><? require('_include/header.php'); ?>

<h1>Last 100 lines of the IRC chat (<a href="irc://irc.freenode.net/lwjgl">#LWJGL IRC channel</a>)</h1>
<p>
<?php 

	function formatIRCLine($line) { 
		$date = sscanf($line, "%s %s");
		$content = substr($line, strlen($date[0] . $date[1]) + 2);
		
		return "[" . $date[1] . " " . $content;
	}

	$body = htmlentities(file_get_contents("http://irc-stats.lwjgl.org/log.php"));
	$lines = split("\n", $body);
	foreach ($lines as $line) {
		if(strlen($line) > 0) {
  		print formatIRCLine($line) . "<br>\n";
		}
	}	
?>
</p>
<? require('_include/footer.php'); ?>

{'fraction_non_alphanumeric': 0.24084778420038536, 'fraction_numerical': 0.014450867052023121, 'mean_word_length': 4.195, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 24, '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': '3037453', 'n_tokens_mistral': 451, 'n_tokens_neox': 420, 'n_words': 79}