<commit_before><?php

class AdminController extends ApplicationController
{
    public $app_models = array('user','role','permission','extension');
    public $protect_all_actions = true;
    //public $protected_actions = 'index,show,edit,delete'; // You can protect individual actions

    public $admin_menu_options = array();
    public $controller_menu_options = array();

    public function __construct() {
        parent::init();
        $this->beforeFilter('load_settings');
        $this->beforeFilter('authenticate');
        !empty($this->protected_actions) ? $this->beforeFilter('_protectAction') : null;
        !empty($this->protect_all_actions) ? $this->beforeFilter(array('_protectAllActions' => array('except'=>array('action_privileges_error', 'login')))) : null;
    }

    public function load_settings() {
        $this->admin_settings = Ak::getSettings('admin');
        return true;
    }<commit_msg>Setting the right filter name<commit_after><?php

class AdminController extends ApplicationController
{
    public $app_models = array('user','role','permission','extension');
    public $protect_all_actions = true;
    //public $protected_actions = 'index,show,edit,delete'; // You can protect individual actions

    public $admin_menu_options = array();
    public $controller_menu_options = array();

    public function __construct() {
        parent::init();
        $this->beforeFilter('load_settings');
        $this->beforeFilter('authenticate');
        !empty($this->protected_actions) ? $this->beforeFilter('protectAction') : null;
        !empty($this->protect_all_actions) ? $this->beforeFilter(array('protectAllActions' => array('except'=>array('action_privileges_error', 'login')))) : null;
    }

    public function load_settings() {
        $this->admin_settings = Ak::getSettings('admin');
        return true;
    }
{'fraction_non_alphanumeric': 0.147470398277718, 'fraction_numerical': 0.0, 'mean_word_length': 4.419825072886297, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '3312628', 'n_tokens_mistral': 507, 'n_tokens_neox': 491, 'n_words': 96}