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

/**
 * Campaigner add-on model.
 *
 * @author			: <NAME> <<EMAIL>>
 * @copyright		: Experience Internet
 * @package			: Campaigner
 * @version 		: 3.0.2
 */

require_once PATH_THIRD .'campaigner/classes/campaigner_cm_api_connector' .EXT;
require_once PATH_THIRD .'campaigner/classes/campaigner_error_log_entry' .EXT;
require_once PATH_THIRD .'campaigner/classes/campaigner_exception' .EXT;
require_once PATH_THIRD .'campaigner/classes/campaigner_mailing_list' .EXT;
require_once PATH_THIRD .'campaigner/classes/campaigner_settings' .EXT;
require_once PATH_THIRD .'campaigner/classes/campaigner_subscriber' .EXT;
require_once PATH_THIRD .'campaigner/classes/EI_member_field' .EXT;
require_once PATH_THIRD .'campaigner/libraries/createsend-php/csrest_clients' .EXT;
require_once PATH_THIRD .'campaigner/libraries/createsend-php/csrest_general' .EXT;
require_once PATH_THIRD .'campaigner/libraries/createsend-php/csrest_lists' .EXT;

class Campaigner_model extends CI_Model {
	
	/* --------------------------------------------------------------
	 * PRIVATE PROPERTIES
	 * ------------------------------------------------------------ */
	
	/**
	 * ExpressionEngine object reference.
	 *
	 * @access	private
	 * @var		object
	 */
	private $_ee;
	
	/**
	 * Extension class. Assumed to be the package name,
	 * with an `_ext` suffix.
	 *
	 * @access	private
	 * @var		string
	 */
	private $_extension_class;
	
	/**
	 * Extension settings.
	 *
	 * @access	private
	 * @var		Campaigner_settings
	 */
	private $_extension_settings;
	
	/**
	 * Package name.
	 *
	 * @access	private
	 * @var		string
	 */
	private $_package_name;
	
	/**
	 * Package version.
	 *
	 * @access	private
	 * @var		string
	 */
	private $_package_version;
	
	/**
	 * The extension settings.
	 *
	 * @access	private
	 * @var		Campaigner_settings
	 */
	private $_settings;
	
	/**
	 * The site ID.
	 *
	 * @access	private
	 * @var		string
	 */
	private $_site_id;
	
	/**
	 * Package theme URL.
	 *
	 * @access	private
	 * @var		string
	 */
	private $_theme_url;
	
	
	
	/* --------------------------------------------------------------
	 * PUBLIC METHODS
	 * ------------------------------------------------------------ */

	/**
	 * Constructor.
	 *
	 * @access	public
	 * @return	void
	 */
	public function __construct()
	{
		parent::__construct();

		$this->_ee =& get_instance();
		
		$this->_package_name		= 'Campaigner';
		$this->_package_version		= '3.0.2';
		$this->_extension_class 	= $this->get_package_name() .'_ext';
	}
	
	
	/**
	 * Activates the extension.
	 *
	 * @access	public
	 * @return	void
	 */
	public function activate_extension()
	{
		$this->activate_extension_error_log_table();<commit_msg>Update version number to 4.0.0.<commit_after><?php if ( ! defined('EXT')) exit('Invalid file request.');

/**
 * Campaigner add-on model.
 *
 * @author			: <NAME> <<EMAIL>>
 * @copyright		: Experience Internet
 * @package			: Campaigner
 * @version 		: 4.0.0
 */

require_once PATH_THIRD .'campaigner/classes/campaigner_cm_api_connector' .EXT;
require_once PATH_THIRD .'campaigner/classes/campaigner_error_log_entry' .EXT;
require_once PATH_THIRD .'campaigner/classes/campaigner_exception' .EXT;
require_once PATH_THIRD .'campaigner/classes/campaigner_mailing_list' .EXT;
require_once PATH_THIRD .'campaigner/classes/campaigner_settings' .EXT;
require_once PATH_THIRD .'campaigner/classes/campaigner_subscriber' .EXT;
require_once PATH_THIRD .'campaigner/classes/EI_member_field' .EXT;
require_once PATH_THIRD .'campaigner/libraries/createsend-php/csrest_clients' .EXT;
require_once PATH_THIRD .'campaigner/libraries/createsend-php/csrest_general' .EXT;
require_once PATH_THIRD .'campaigner/libraries/createsend-php/csrest_lists' .EXT;

class Campaigner_model extends CI_Model {
	
	/* --------------------------------------------------------------
	 * PRIVATE PROPERTIES
	 * ------------------------------------------------------------ */
	
	/**
	 * ExpressionEngine object reference.
	 *
	 * @access	private
	 * @var		object
	 */
	private $_ee;
	
	/**
	 * Extension class. Assumed to be the package name,
	 * with an `_ext` suffix.
	 *
	 * @access	private
	 * @var		string
	 */
	private $_extension_class;
	
	/**
	 * Extension settings.
	 *
	 * @access	private
	 * @var		Campaigner_settings
	 */
	private $_extension_settings;
	
	/**
	 * Package name.
	 *
	 * @access	private
	 * @var		string
	 */
	private $_package_name;
	
	/**
	 * Package version.
	 *
	 * @access	private
	 * @var		string
	 */
	private $_package_version;
	
	/**
	 * The extension settings.
	 *
	 * @access	private
	 * @var		Campaigner_settings
	 */
	private $_settings;
	
	/**
	 * The site ID.
	 *
	 * @access	private
	 * @var		string
	 */
	private $_site_id;
	
	/**
	 * Package theme URL.
	 *
	 * @access	private
	 * @var		string
	 */
	private $_theme_url;
	
	
	
	/* --------------------------------------------------------------
	 * PUBLIC METHODS
	 * ------------------------------------------------------------ */

	/**
	 * Constructor.
	 *
	 * @access	public
	 * @return	void
	 */
	public function __construct()
	{
		parent::__construct();

		$this->_ee =& get_instance();
		
		$this->_package_name		= 'Campaigner';
		$this->_package_version		= '4.0.0';
		$this->_extension_class 	= $this->get_package_name() .'_ext';
	}
	
	
	/**
	 * Activates the extension.
	 *
	 * @access	public
	 * @return	void
	 */
	public function activate_extension()
	{
		$this->activate_extension_error_log_table();
{'fraction_non_alphanumeric': 0.20939086294416243, 'fraction_numerical': 0.002719361856417694, 'mean_word_length': 2.3599269183922047, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2885222', 'n_tokens_mistral': 1982, 'n_tokens_neox': 1706, 'n_words': 351}