<commit_before><?php
if (isset($this->params['lang'])) { 
	Configure::write('Config.language',  $this->params['lang']); 
}
?>

<div id="menu">
<ul>
<?php
$lang = (isset($this->params['lang']))? $this->params['lang'].'/' : '';

// array containing the elements of the menu : $title => $route
$menuElements = array(
	__('Home',true) 		=> '/'.$lang,
	__('Browse',true) 		=> array("controller" => "sentences", "action" => "show", "random"),
	__('Search',true) 		=> array("controller" => "sentences", "action" => "search"),
	__('Contribute',true) 	=> array("controller" => "sentences", "action" => "contribute"),
	__('Logs',true) 		=> array("controller" => "contributions", "action" => "index"),
	__('Comments',true) 	=> array("controller" => "sentence_comments", "action" => "index")//,
	//__('Statistics',true) 	=> array("controller" => "users_statistics")
);
<commit_msg>Disabling temporarily links to stats and logs<commit_after><?php
if (isset($this->params['lang'])) { 
	Configure::write('Config.language',  $this->params['lang']); 
}
?>

<div id="menu">
<ul>
<?php
$lang = (isset($this->params['lang']))? $this->params['lang'].'/' : '';

// array containing the elements of the menu : $title => $route
$menuElements = array(
	__('Home',true) 		=> '/'.$lang
	,__('Browse',true) 		=> array("controller" => "sentences", "action" => "show", "random")
	,__('Search',true) 		=> array("controller" => "sentences", "action" => "search")
	,__('Contribute',true) 	=> array("controller" => "sentences", "action" => "contribute")
	// ,__('Logs',true) 		=> array("controller" => "contributions", "action" => "index")
	,__('Comments',true) 	=> array("controller" => "sentence_comments", "action" => "index")
	// ,__('Statistics',true) 	=> array("controller" => "users_statistics")
);

{'fraction_non_alphanumeric': 0.26636568848758463, 'fraction_numerical': 0.0, 'mean_word_length': 6.007905138339921, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 55, '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': '6171406', 'n_tokens_mistral': 618, 'n_tokens_neox': 605, 'n_words': 114}