<commit_before><?php if ( ! defined('BASEPATH')) exit('Invalid file request');

/**
 * Redirect members to a specific CP URL after login.
 *
 * @author		    <NAME> (http://github.com/experience/)
 * @copyright       Experience Internet
 * @package		    Usher
 */

class Usher_ext {
	
    private $_ee;

	public $description;
	public $docs_url;
	public $name;
	public $settings;
	public $settings_exist;
	public $version;
	
	
	/* --------------------------------------------------------------
	 * PUBLIC METHODS
	 * ------------------------------------------------------------ */

	/**
	 * Class constructor.
	 *
	 * @access	public
	 * @param	array 		$settings		Previously-saved extension settings.
	 * @return	void
	 */
	public function __construct(Array $settings = array())
	{
		$this->_ee =& get_instance();
		$this->_ee->load->add_package_path(PATH_THIRD .'usher/');
		$this->_ee->load->model('usher_model');
        $this->_ee->lang->loadfile($this->_ee->usher_model->get_package_name());

        // Required extension properties.
        $this->description      = $this->_ee->lang->line('extension_description');
        $this->docs_url         = 'http://experienceinternet.co.uk/software/usher/docs/';
        $this->name             = $this->_ee->lang->line('extension_name');
        $this->settings         = array();      // Never used.
        $this->settings_exist   = 'y';
        $this->version          = $this->_ee->usher_model->get_package_version();
	}
	
	
	/**
	 * Activates the extension.<commit_msg>Fix bug caused by extension constructor not always being passed an array.<commit_after><?php if ( ! defined('BASEPATH')) exit('Invalid file request');

/**
 * Redirect members to a specific CP URL after login.
 *
 * @author		    <NAME> (http://github.com/experience/)
 * @copyright       Experience Internet
 * @package		    Usher
 */

class Usher_ext {
	
    private $_ee;

	public $description;
	public $docs_url;
	public $name;
	public $settings;
	public $settings_exist;
	public $version;
	
	
	/* --------------------------------------------------------------
	 * PUBLIC METHODS
	 * ------------------------------------------------------------ */

	/**
	 * Class constructor.
	 *
	 * @access	public
	 * @param	mixed 	    $settings		Previously-saved extension settings.
	 * @return	void
	 */
	public function __construct($settings = array())
	{
		$this->_ee =& get_instance();
		$this->_ee->load->add_package_path(PATH_THIRD .'usher/');
		$this->_ee->load->model('usher_model');
        $this->_ee->lang->loadfile($this->_ee->usher_model->get_package_name());

        // Required extension properties.
        $this->description      = $this->_ee->lang->line('extension_description');
        $this->docs_url         = 'http://experienceinternet.co.uk/software/usher/docs/';
        $this->name             = $this->_ee->lang->line('extension_name');
        $this->settings         = array();      // Never used.
        $this->settings_exist   = 'y';
        $this->version          = $this->_ee->usher_model->get_package_version();
	}
	
	
	/**
	 * Activates the extension.
{'fraction_non_alphanumeric': 0.2254111576910674, 'fraction_numerical': 0.0, 'mean_word_length': 2.080436941410129, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 61, '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': '3199676', 'n_tokens_mistral': 922, 'n_tokens_neox': 860, 'n_words': 177}