<commit_before><?php
namespace Cohesion\Structure;

use \Cohesion\Config\Config;
use \Cohesion\Util\Input;
use \Cohesion\Auth\Auth;
use \Cohesion\Environment\Environment;
use \Cohesion\Structure\Factory\ServiceFactory;

/**
 * The Controllers are the external facing code that access the input variables
 * and returns the output of the relevant view. The Controller handles the
 * authentication, accesses the relevant Handler(s) then constructs the
 * relevant view.
 *
 * Controllers shouldn't contain any business logic including authorisation.
 *
 * @author <NAME>
 */
abstract class Controller {
    protected $config;
    protected $input;
    protected $auth;
    protected $env;
    protected $factory;

    public function __construct(ServiceFactory $factory, Input $input = null, Config $config, Auth $auth = null, Environment $env = null) {
        $this->factory = $factory;
        $this->input = $input;
        $this->config = $config;
        $this->auth = $auth;
        $this->env = $env;
    }
}
<commit_msg>Missing default parameter in Controller contructor<commit_after><?php
namespace Cohesion\Structure;

use \Cohesion\Config\Config;
use \Cohesion\Util\Input;
use \Cohesion\Auth\Auth;
use \Cohesion\Environment\Environment;
use \Cohesion\Structure\Factory\ServiceFactory;

/**
 * The Controllers are the external facing code that access the input variables
 * and returns the output of the relevant view. The Controller handles the
 * authentication, accesses the relevant Handler(s) then constructs the
 * relevant view.
 *
 * Controllers shouldn't contain any business logic including authorisation.
 *
 * @author <NAME>
 */
abstract class Controller {
    protected $config;
    protected $input;
    protected $auth;
    protected $env;
    protected $factory;

    public function __construct(
        ServiceFactory $factory,
        Input $input = null,
        Config $config = null,
        Auth $auth = null,
        Environment $env = null
    ) {
        $this->factory = $factory;
        $this->input = $input;
        $this->config = $config;
        $this->auth = $auth;
        $this->env = $env;
    }
}

{'fraction_non_alphanumeric': 0.10205032618825723, 'fraction_numerical': 0.0, 'mean_word_length': 3.2768924302788847, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '3839541', 'n_tokens_mistral': 594, 'n_tokens_neox': 591, 'n_words': 197}