<commit_before><?php if ( ! defined('BASEPATH')) exit('Direct script access not allowed');

/**
 * Store Key extension.
 *
 * @author          <NAME> (http://github.com/experience/)
 * @copyright       Experience Internet
 * @package         Store_key
 */

class Store_key_ext {

  private $EE;
  private $_model;

  public $description;
  public $docs_url;
  public $name;
  public $required_by;
  public $settings;
  public $settings_exist;
  public $version;


  /* --------------------------------------------------------------
   * PUBLIC METHODS
   * ------------------------------------------------------------ */

  /**
   * Constructor.
   *
   * @access  public
   * @param   mixed     $settings     Extension settings.
   * @return  void
   */
  public function __construct($settings = '')
  {
    $this->EE =& get_instance();

    // Load the model.
    $this->EE->load->model('store_key_model');
    $this->_model = $this->EE->store_key_model;

    // Still need to specify the package.
    $this->EE->lang->loadfile(
      strtolower($this->_model->get_sanitized_extension_class()),
      strtolower($this->_model->get_package_name()));

    // Set the public properties.
    $this->description = $this->EE->lang->line(
      'store_key_extension_description');

    $this->docs_url       = 'http://experienceinternet.co.uk/';
    $this->name           = $this->EE->lang->line('store_key_extension_name');
    $this->required_by    = array('module');
    $this->settings       = $settings;
    $this->settings_exist = 'n';
    $this->version        = $this->_model->get_package_version();
  }


  /**
   * Activates the extension.
   *
   * @access  public
   * @return  void
   */
  public function activate_extension()
  {
    $hooks = array('store_order_complete_end');
    $this->_model->install_extension($this->version, $hooks);
  }


  /**
   * Disables the extension.
   *
   * @access  public
   * @return  void
   */
  public function disable_extension()
  {
    $this->_model->uninstall_extension();
  }

<commit_msg>Remove 'required_by' from extension.<commit_after><?php if ( ! defined('BASEPATH')) exit('Direct script access not allowed');

/**
 * Store Key extension.
 *
 * @author          <NAME> (http://github.com/experience/)
 * @copyright       Experience Internet
 * @package         Store_key
 */

class Store_key_ext {

  private $EE;
  private $_model;

  public $description;
  public $docs_url;
  public $name;
  public $settings;
  public $settings_exist;
  public $version;


  /* --------------------------------------------------------------
   * PUBLIC METHODS
   * ------------------------------------------------------------ */

  /**
   * Constructor.
   *
   * @access  public
   * @param   mixed     $settings     Extension settings.
   * @return  void
   */
  public function __construct($settings = '')
  {
    $this->EE =& get_instance();

    // Load the model.
    $this->EE->load->model('store_key_model');
    $this->_model = $this->EE->store_key_model;

    // Still need to specify the package.
    $this->EE->lang->loadfile(
      strtolower($this->_model->get_sanitized_extension_class()),
      strtolower($this->_model->get_package_name()));

    // Set the public properties.
    $this->description = $this->EE->lang->line(
      'store_key_extension_description');

    $this->docs_url       = 'http://experienceinternet.co.uk/';
    $this->name           = $this->EE->lang->line('store_key_extension_name');
    $this->settings       = $settings;
    $this->settings_exist = 'n';
    $this->version        = $this->_model->get_package_version();
  }


  /**
   * Activates the extension.
   *
   * @access  public
   * @return  void
   */
  public function activate_extension()
  {
    $hooks = array('store_order_complete_end');
    $this->_model->install_extension($this->version, $hooks);
  }


  /**
   * Disables the extension.
   *
   * @access  public
   * @return  void
   */
  public function disable_extension()
  {
    $this->_model->uninstall_extension();
  }


{'fraction_non_alphanumeric': 0.20549641000247587, 'fraction_numerical': 0.0, 'mean_word_length': 2.1911532385466033, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 72, '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': '5512549', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1190, 'n_words': 229}