<commit_before><?php 
include 'engine/core_web.php';
include 'engine/core_redirect.php';

$session = new session( array('name', 'track', 'konami', 'id', 'type') );
$config = new config();

# Grab variables from the URL. Syntax for this is...
# name of variable, default value of variable, maxlength of variable
$id = $session->id;
$type = '404';

if ( $config->friendly_urls ){
	$redirect = new condRedirect( "?id", "/page/".$session->id, $session->uri );
	$redirect->apply( 301 );
}


// Checks for cookies and sets them (or refreshes them) if necessary

setcookie('name',$session->name,time() + (86400 * 30),"/",$session->domain); // 86400 = 1 day
setcookie('track',$session->track,time() + (86400 * 30),"/",$session->domain); // 86400 = 1 day
// Sets page options and variables

$page_content_file = "page_$id.html";
	
include $config->webcore_root.'/html_doctype.html';
include $config->webcore_root.'/html_head.html';
?>


<body>
<div id="wrapper">
	
<?php include chooseInclude( $config->webcore_root.'/template_header.php', 'layout_error.html');?>

	<div id="page">
		<div id="content">
				<div style="clear: both;">&nbsp;</div>
				<div class="entry">
					
				<?php 
				//include chooseInclude( $config->webcore_root.'/page_'.$session->id.'.html', $config->webcore_root.'/template_error.php');
				new content( $session->id )->display();
				?>
				
				</div>
		</div>
		<!-- end #content -->
	<div style="clear:both;">&nbsp;</div>

	</div>
</div>

<?php include chooseInclude( $config->webcore_root.'/template_footer.php', 'layout_error.html'); ?>

</body>
</html><commit_msg>remove error introduced in prior commit because tired<commit_after><?php 
include 'engine/core_web.php';
include 'engine/core_redirect.php';

$session = new session( array('name', 'track', 'konami', 'id', 'type') );
$config = new config();

# Grab variables from the URL. Syntax for this is...
# name of variable, default value of variable, maxlength of variable
$id = $session->id;
$type = '404';

if ( $config->friendly_urls ){
	$redirect = new condRedirect( "?id", "/page/".$session->id, $session->uri );
	$redirect->apply( 301 );
}


// Checks for cookies and sets them (or refreshes them) if necessary

setcookie('name',$session->name,time() + (86400 * 30),"/",$session->domain); // 86400 = 1 day
setcookie('track',$session->track,time() + (86400 * 30),"/",$session->domain); // 86400 = 1 day
// Sets page options and variables

$page_content_file = "page_$id.html";
	
include $config->webcore_root.'/html_doctype.html';
include $config->webcore_root.'/html_head.html';
?>


<body>
<div id="wrapper">
	
<?php include chooseInclude( $config->webcore_root.'/template_header.php', 'layout_error.html');?>

	<div id="page">
		<div id="content">
				<div style="clear: both;">&nbsp;</div>
				<div class="entry">
					
				<?php 
				//include chooseInclude( $config->webcore_root.'/page_'.$session->id.'.html', $config->webcore_root.'/template_error.php');
				$content = content( $session->id );
				$content->display();
				?>
				
				</div>
		</div>
		<!-- end #content -->
	<div style="clear:both;">&nbsp;</div>

	</div>
</div>

<?php include chooseInclude( $config->webcore_root.'/template_footer.php', 'layout_error.html'); ?>

</body>
</html>
{'fraction_non_alphanumeric': 0.20734341252699784, 'fraction_numerical': 0.01974699166923789, 'mean_word_length': 4.332236842105263, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 79, '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': '2512819', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1090, 'n_words': 254}