<commit_before><?php
/** $Id:$ */

class ComLogsControllerLog extends ComDefaultControllerDefault
{
    protected function _initialize(KConfig $config)
    {
        // Force controller to get the GET request whether it's dispatched or not
        $config->append(array(
            'request' => KRequest::get('get', 'string'),
        ));
        
        parent::_initialize($config);
    }

	public function getView()
    {
        if (!$this->isDispatched()) {
            $this->_request->layout = 'package_list';
        }

        return parent::getView();
    }
    
    public function getModel()
	{
		if(!($this->_model instanceof KModelAbstract)) {
		    $this->_model = KFactory::tmp('admin::com.logs.model.logs')->set($this->_request);
		}

		return $this->_model;
	}
}<commit_msg>re #15 - Added some comments and removed ComLogControllerLog::getModel() override.<commit_after><?php
/** $Id:$ */

class ComLogsControllerLog extends ComDefaultControllerDefault
{
    protected function _initialize(KConfig $config)
    {
        // Force controller to get the GET request whether it's dispatched or not
        $config->append(array(
            'request' => KRequest::get('get', 'string'),
        ));
        
        parent::_initialize($config);
    }

	public function getView()
    {
        // If com_logs is called through HMVC, use a special layout 
        // to display the log list that is specific to the "package(component)".
        if (!$this->isDispatched()) {
            $this->_request->layout = 'package_list';
        }

        return parent::getView();
    }
}
{'fraction_non_alphanumeric': 0.13533834586466165, 'fraction_numerical': 0.0012531328320802004, 'mean_word_length': 2.5968468468468466, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '3747549', 'n_tokens_mistral': 452, 'n_tokens_neox': 434, 'n_words': 111}