<commit_before><?php
/**
 * This file is part of SoloProyectos common library.
 *
 * @author  <NAME> <<EMAIL>>
 * @license https://github.com/soloproyectos-php/http-controller/blob/master/LICENSE The MIT License (MIT)
 * @link    https://github.com/soloproyectos-php/http-controllers
 */
namespace soloproyectos\http\controller;
use soloproyectos\event\EventMediator;
use soloproyectos\http\controller\HttpControllerParamTrait;
use soloproyectos\http\controller\HttpControllerSessionTrait;
use soloproyectos\http\controller\HttpControllerCookieTrait;

/**
 * Class HttpController.
 *
 * @package Http
 * @author  <NAME> <<EMAIL>>
 * @license https://github.com/soloproyectos-php/http-controller/blob/master/LICENSE The MIT License (MIT)
 * @link    https://github.com/soloproyectos-php/http-controller
 */
class HttpController extends EventMediator
{
    use HttpControllerParamTrait;
    use HttpControllerSessionTrait;
    use HttpControllerCookieTrait;
    
    /**
     * Initializes the controller.
     * 
     * This method is called at the beggining of the request.
     * 
     * @param string[] $params Request parameters
     * 
     * @return void
     */
    public function init($params)
    {
        // No-Op
    }
    
    /**
     * Processes the request.
     * 
     * @return void
     */
    public function apply()
    {
        $this->init();
        $this->trigger($_SERVER["REQUEST_METHOD"]);
    }
}<commit_msg>bugfix<commit_after><?php
/**
 * This file is part of SoloProyectos common library.
 *
 * @author  <NAME> <<EMAIL>>
 * @license https://github.com/soloproyectos-php/http-controller/blob/master/LICENSE The MIT License (MIT)
 * @link    https://github.com/soloproyectos-php/http-controllers
 */
namespace soloproyectos\http\controller;
use soloproyectos\event\EventMediator;
use soloproyectos\http\controller\HttpControllerParamTrait;
use soloproyectos\http\controller\HttpControllerSessionTrait;
use soloproyectos\http\controller\HttpControllerCookieTrait;

/**
 * Class HttpController.
 *
 * @package Http
 * @author  <NAME> <<EMAIL>>
 * @license https://github.com/soloproyectos-php/http-controller/blob/master/LICENSE The MIT License (MIT)
 * @link    https://github.com/soloproyectos-php/http-controller
 */
class HttpController extends EventMediator
{
    use HttpControllerParamTrait;
    use HttpControllerSessionTrait;
    use HttpControllerCookieTrait;
    
    /**
     * Initializes the controller.
     * 
     * This method is called at the beggining of the request.
     * 
     * @return void
     */
    public function init()
    {
        // No-Op
    }
    
    /**
     * Processes the request.
     * 
     * @return void
     */
    public function apply()
    {
        $this->init();
        $this->trigger($_SERVER["REQUEST_METHOD"]);
    }
}
{'fraction_non_alphanumeric': 0.11875891583452211, 'fraction_numerical': 0.0, 'mean_word_length': 3.0711175616835993, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 8, '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': '352926', 'n_tokens_mistral': 871, 'n_tokens_neox': 860, 'n_words': 173}