<commit_before><?php

// Database file location
define( 'CONN',		'sqlite:data\bb.sqlite' );

define( 'EDIT_LIMIT',	1800 ); // ( Optional ) Edit period in seconds ( 1800 = 30 minutes )


define( 'AUTO_LOCK',	8 );	// Automatically close topics after this many days of inactivity

// Hashed admin password ( default is 'password' ) Not doing anything yet
define( 'ADMIN', 	'<PASSWORD>' );


define( 'PKGS',		PATH . 'vendor/' );
define( 'TEMPLATES',	PATH . 'templates/' );



/**
 * Autoloader
 */
set_include_path( get_include_path() . PATH_SEPARATOR . PKGS );
spl_autoload_extensions( '.php' );
spl_autoload_register( function( $class ) {
	spl_autoload( str_replace( "\\", "/", $class ) );
});

$routes 	= array(
	''			=> 'Index',
	':page'			=> 'Index',
	//'firehose'		=> 'Firehose',
	//'firehose/:page'	=> 'Firehose',
	'posts/:id'		=> 'Posts',
	'posts/:id/:act'	=> 'Posts',
	'posts/:id/:act/:auth'	=> 'Posts',
	'threads/:id'		=> 'Threads',
	'threads/:id/:page'	=> 'Threads',
	'tags/:tag'		=> 'Tag',
	'tags/:tag/:page'	=> 'Tag',
	'vote/:id/:vote'	=> 'Posts'
);


$router = new BB\Router();
$router->route( $routes );<commit_msg>Route case, added grace period and init<commit_after><?php

// Database file location
define( 'CONN',		'sqlite:data\bb.sqlite' );

define( 'EDIT_LIMIT',	1800 ); // ( Optional ) Edit period in seconds ( 1800 = 30 minutes )


define( 'AUTO_LOCK',	8 );	// Automatically close topics after this many days of inactivity

define( 'GRACE',	1800 );	// Grace period in seconds after which auto-lock posts can still be 
				// updated. This is for people who left their from open for a while 
				// before clicking 'Post'

// Hashed admin password ( default is 'password' ) Not doing anything yet
define( 'ADMIN', 	'<PASSWORD>' );


define( 'PKGS',		PATH . 'vendor/' );
define( 'TEMPLATES',	PATH . 'templates/' );



/**
 * Autoloader
 */
set_include_path( get_include_path() . PATH_SEPARATOR . PKGS );
spl_autoload_extensions( '.php' );
spl_autoload_register( function( $class ) {
	spl_autoload( str_replace( "\\", "/", $class ) );
});

$routes 	= array(
	''			=> 'index',
	':page'			=> 'index',
	//'firehose'		=> 'Firehose',
	//'firehose/:page'	=> 'Firehose',
	'posts/:id'		=> 'post',
	'posts/:id/:act'	=> 'post',
	'posts/:id/:act/:auth'	=> 'post',
	'threads/:id'		=> 'threads',
	'threads/:id/:page'	=> 'threads',
	'tags/:tag'		=> 'tag',
	'tags/:tag/:page'	=> 'tag',
	'vote/:id/:vote'	=> 'post',
	'/search/'		=> 'search',
	'/search/:page'		=> 'search'
);


$router = new BB\Router();
$router->route( $routes );
{'fraction_non_alphanumeric': 0.21431395808620007, 'fraction_numerical': 0.010280743376828785, 'mean_word_length': 3.8098859315589353, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 33, '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': '4857849', 'n_tokens_mistral': 998, 'n_tokens_neox': 989, 'n_words': 228}