<commit_before><?php
/** $Id: log.php 1310 2010-09-19 14:46:25Z johanjanssens $ */

class ComLogsControllerLog extends ComDefaultControllerDefault
{
    protected function _initialize(KConfig $config)
    {
        $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) 
		{   
		    //@TODO : Pass the state to the model using the options
		    $options = array(
				'state' => $this->_request
            );
		    
		    $this->_model = KFactory::tmp('admin::com.logs.model.logs')->set($this->_request);
		}

		return $this->_model;
	}<commit_msg>re #15 - Removed unnecessary code<commit_after><?php
/** $Id$ */

class ComLogsControllerLog extends ComDefaultControllerDefault
{
    protected function _initialize(KConfig $config)
    {
        $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;
	}
{'fraction_non_alphanumeric': 0.1534683855125844, 'fraction_numerical': 0.012277470841006752, 'mean_word_length': 2.5129310344827585, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '3630184', 'n_tokens_mistral': 521, 'n_tokens_neox': 484, 'n_words': 91}