<commit_before><?php

require_once 'Site/SiteSessionModule.php';
require_once 'Site/SiteDatabaseModule.php';
require_once 'Site/exceptions/SiteException.php';
require_once 'Site/dataobjects/SiteAccount.php';
require_once 'SwatDB/SwatDBClassMap.php';
require_once 'SwatDB/SwatDB.php';
require_once 'Swat/SwatDate.php';
require_once 'Swat/SwatForm.php';
require_once 'Swat/SwatString.php';

/**
 * Web application module for sessions with accounts.
 *
 * Provides methods for account login/logout and accessing dataobjects in the
 * session.
 *
 * @package   Site
 * @copyright 2006-2009 silverorange
 * @license   http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
 */
class SiteAccountSessionModule extends SiteSessionModule
{
	// {{{ private properties

	private $data_object_classes = array();
	private $destroy_on_logout_objects = array();

	// }}}
	// {{{ protected properties

	protected $login_callbacks = array();
	protected $logout_callbacks = array();

	// }}}
	// {{{ public function depends()

	/**
	 * Gets the module features this module depends on
	 *
	 * The site account session module depends on the SiteDatabaseModule
	 * feature.
	 *
	 * @return array an array of {@link SiteApplicationModuleDependency}
	 *                        objects defining the features this module
	 *                        depends on.
	 */
	public function depends()
	{<commit_msg>Allow sub-classes to access these variables.<commit_after><?php

require_once 'Site/SiteSessionModule.php';
require_once 'Site/SiteDatabaseModule.php';
require_once 'Site/exceptions/SiteException.php';
require_once 'Site/dataobjects/SiteAccount.php';
require_once 'SwatDB/SwatDBClassMap.php';
require_once 'SwatDB/SwatDB.php';
require_once 'Swat/SwatDate.php';
require_once 'Swat/SwatForm.php';
require_once 'Swat/SwatString.php';

/**
 * Web application module for sessions with accounts.
 *
 * Provides methods for account login/logout and accessing dataobjects in the
 * session.
 *
 * @package   Site
 * @copyright 2006-2010 silverorange
 * @license   http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
 */
class SiteAccountSessionModule extends SiteSessionModule
{
	// {{{ protected properties

	protected $login_callbacks = array();
	protected $logout_callbacks = array();
	protected $data_object_classes = array();
	protected $destroy_on_logout_objects = array();

	// }}}
	// {{{ public function depends()

	/**
	 * Gets the module features this module depends on
	 *
	 * The site account session module depends on the SiteDatabaseModule
	 * feature.
	 *
	 * @return array an array of {@link SiteApplicationModuleDependency}
	 *                        objects defining the features this module
	 *                        depends on.
	 */
	public function depends()
	{
{'fraction_non_alphanumeric': 0.10636758321273516, 'fraction_numerical': 0.00723589001447178, 'mean_word_length': 3.902482269503546, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '105587', 'n_tokens_mistral': 830, 'n_tokens_neox': 781, 'n_words': 215}