<commit_before><?php
/**
 * @version     $Id$
 * @category    Nooku
 * @package     Nooku_Server
 * @subpackage  Users
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Login Controller Class
 *
 * @author      <NAME> <http://nooku.assembla.com/profile/gergoerdosi>
 * @category    Nooku
 * @package     Nooku_Server
 * @subpackage  Users
 */
class ComUsersControllerLogin extends ComDefaultControllerResource
{
	protected function _initialize(KConfig $config)
	{
		/*
		 *  Force the layout (Since this controller can be rendered through redirection from
		 *  URLs like option=com_articles&view=articles&layout=default this is necessary)
		 */
		$config->request->layout = 'form'; 
		
		parent::_initialize($config);	
	}
	
    protected function _actionGet(KCommandContext $context)
    {
        //Force the application template
        KRequest::set('get.tmpl', 'login');
         
        //Set the status
        $context->status = KHttpResponse::UNAUTHORIZED;
           
        //Set the authentciation header
        //$context->headers = array('WWW-Authenticate', 'Basic Realm="'.KRequest::base().'"');
<commit_msg>Code cleanup<commit_after><?php
/**
 * @version     $Id$
 * @category    Nooku
 * @package     Nooku_Server
 * @subpackage  Users
 * @copyright   Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.nooku.org
 */

/**
 * Login Controller Class
 *
 * @author      <NAME> <http://nooku.assembla.com/profile/gergoerdosi>
 * @category    Nooku
 * @package     Nooku_Server
 * @subpackage  Users
 */
class ComUsersControllerLogin extends ComDefaultControllerResource
{
    protected function _actionGet(KCommandContext $context)
    {
        //Force the application template
        KRequest::set('get.tmpl', 'login');
         
        //Set the status
        $context->status = KHttpResponse::UNAUTHORIZED;
           
        //Set the authentciation header
        //$context->headers = array('WWW-Authenticate', 'Basic Realm="'.KRequest::base().'"');

{'fraction_non_alphanumeric': 0.13312555654496883, 'fraction_numerical': 0.004452359750667854, 'mean_word_length': 2.8808290155440415, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '2651347', 'n_tokens_mistral': 709, 'n_tokens_neox': 687, 'n_words': 152}