<commit_before><?php

/* This file is part of the Staq project, which is under MIT license */


namespace Staq\Util\Auth\Stack;

class View extends View\__Parent {



	/*************************************************************************
	  PRIVATE METHODS              
	 *************************************************************************/
	protected function init_default_variables( ) {
		$page[ 'user_logged' ] = \Staq::App()->get_controller( 'Auth' )->is_logged( );
	}
}<commit_msg>Add user logged by default in pages<commit_after><?php

/* This file is part of the Staq project, which is under MIT license */


namespace Staq\Util\Auth\Stack;

class View extends View\__Parent {



	/*************************************************************************
	  PRIVATE METHODS              
	 *************************************************************************/
	public function render( ) {
		$this[ 'user_logged' ] = \Staq::App()->get_controller( 'Auth' )->is_logged( );
		parent::render( );
	}
}
{'fraction_non_alphanumeric': 0.37941176470588234, 'fraction_numerical': 0.0, 'mean_word_length': 4.768361581920904, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3931965', 'n_tokens_mistral': 283, 'n_tokens_neox': 242, 'n_words': 67}