<commit_before><?php
/**
 * @version		$Id$
 * @package		phpFrame
 * @copyright	Copyright (C) 2009 E-noise.com Limited. All rights reserved.
 * @license		BSD revised. See LICENSE.
 * @author 		<NAME> [e-noise.com]
 */

defined( '_EXEC' ) or die( 'Restricted access' );

define("_PHPFRAME_PATH", dirname(__FILE__));

// path to phpMailer
define("_PHPMAILER_PATH", str_replace(DS.'phpframe', '', _PHPFRAME_PATH).DS."phpmailer");

// Include base object classes
require_once _PHPFRAME_PATH.DS."base".DS."standard.php";
require_once _PHPFRAME_PATH.DS."base".DS."singleton.php";
// include database classes
require_once _PHPFRAME_PATH.DS."database".DS."db.php";
require_once _PHPFRAME_PATH.DS."database".DS."table.php";
// include environment classes
require_once _PHPFRAME_PATH.DS."environment".DS."request.php";
require_once _PHPFRAME_PATH.DS."environment".DS."response.php";
require_once _PHPFRAME_PATH.DS."environment".DS."session.php";
// Include application classes
require_once _PHPFRAME_PATH.DS."application".DS."application.php";
require_once _PHPFRAME_PATH.DS."application".DS."components.php";
require_once _PHPFRAME_PATH.DS."application".DS."controller.php";
require_once _PHPFRAME_PATH.DS."application".DS."debug.php";
require_once _PHPFRAME_PATH.DS."application".DS."error.php";
require_once _PHPFRAME_PATH.DS."application".DS."factory.php";
require_once _PHPFRAME_PATH.DS."application".DS."model.php";
require_once _PHPFRAME_PATH.DS."application".DS."modules.php";
require_once _PHPFRAME_PATH.DS."application".DS."pathway.php";
require_once _PHPFRAME_PATH.DS."application".DS."permissions.php";
require_once _PHPFRAME_PATH.DS."application".DS."route.php";
require_once _PHPFRAME_PATH.DS."application".DS."view.php";
// Include HTML classes
require_once _PHPFRAME_PATH.DS."html".DS."html.php";
require_once _PHPFRAME_PATH.DS."html".DS."pagination.php";
require_once _PHPFRAME_PATH.DS."html".DS."text.php";
// Include language file
require_once _PHPFRAME_PATH.DS."lang".DS."en-GB.php";
// Include users subpackage classes
require_once _PHPFRAME_PATH.DS."user".DS."openid.php";
require_once _PHPFRAME_PATH.DS."user".DS."user.php";
require_once _PHPFRAME_PATH.DS."user".DS."users.helper.php";
// Include utils classes
require_once _PHPFRAME_PATH.DS."utils".DS."client.php";
require_once _PHPFRAME_PATH.DS."utils".DS."crypt.php";
require_once _PHPFRAME_PATH.DS."utils".DS."filter.php";
require_once _PHPFRAME_PATH.DS."utils".DS."mail.php";
require_once _PHPFRAME_PATH.DS."utils".DS."uri.php";
require_once _PHPFRAME_PATH.DS."utils".DS."utility.php";
// include document class
require_once _PHPFRAME_PATH.DS."document".DS."document.php";
require_once _PHPFRAME_PATH.DS."document".DS."html.php";

/**
 * phpFrame Class
 * 
 * This is the framework class.
 * 
 * This class extends the "singleton" class in order to implement the singleton design pattern.
 * 
 * The class is used to access the framework. For example:
 * 
 * <code>
 * $application =& phpFrame::getInstance('application');
 * </code>
 * 
 * Before we instantiate the application we first need to set a few useful constants,
 * check for dependencies, include required framework files and then finally 
 * instantiate the application and run the apps methods in the following order:
 * 
 * <code>
 * define("_EXEC", true);
 * define('_ABS_PATH', dirname(__FILE__) );
 * define( 'DS', DIRECTORY_SEPARATOR );
 * 
 * // include config
 * require_once _ABS_PATH.DS."inc".DS."config.php";
 * 
 * // Include phpFrame
 * require_once _ABS_PATH.DS."lib".DS."phpframe".DS."phpframe.php";
 * 
 * $application =& phpFrame::getInstance('application');
 * $application->auth();
 * $application->exec();
 * $application->render();
 * $application->output();
 * </code>
 * 
 * @package		phpFrame
 * @author 		<NAME> [e-noise.com]
 * @since 		1.0
 * @todo		phpFrame should be able to include whatever files i needed when getting "singleton" classes
 */
class phpFrame extends singleton {
	/**
	 * The phpFrame version
	 * 
	 * @var string
	 */
	var $version='1.0 Alpha';
}
?><commit_msg>phpFrame filesystem and image classes required in phpframe.php.<commit_after><?php
/**
 * @version		$Id$
 * @package		phpFrame
 * @copyright	Copyright (C) 2009 E-noise.com Limited. All rights reserved.
 * @license		BSD revised. See LICENSE.
 * @author 		<NAME> [e-noise.com]
 */

defined( '_EXEC' ) or die( 'Restricted access' );

define("_PHPFRAME_PATH", dirname(__FILE__));

// path to phpMailer
define("_PHPMAILER_PATH", str_replace(DS.'phpframe', '', _PHPFRAME_PATH).DS."phpmailer");

// Include base object classes
require_once _PHPFRAME_PATH.DS."base".DS."standard.php";
require_once _PHPFRAME_PATH.DS."base".DS."singleton.php";
// include database classes
require_once _PHPFRAME_PATH.DS."database".DS."db.php";
require_once _PHPFRAME_PATH.DS."database".DS."table.php";
// include environment classes
require_once _PHPFRAME_PATH.DS."environment".DS."request.php";
require_once _PHPFRAME_PATH.DS."environment".DS."response.php";
require_once _PHPFRAME_PATH.DS."environment".DS."session.php";
// Include application classes
require_once _PHPFRAME_PATH.DS."application".DS."application.php";
require_once _PHPFRAME_PATH.DS."application".DS."components.php";
require_once _PHPFRAME_PATH.DS."application".DS."controller.php";
require_once _PHPFRAME_PATH.DS."application".DS."debug.php";
require_once _PHPFRAME_PATH.DS."application".DS."error.php";
require_once _PHPFRAME_PATH.DS."application".DS."factory.php";
require_once _PHPFRAME_PATH.DS."application".DS."model.php";
require_once _PHPFRAME_PATH.DS."application".DS."modules.php";
require_once _PHPFRAME_PATH.DS."application".DS."pathway.php";
require_once _PHPFRAME_PATH.DS."application".DS."permissions.php";
require_once _PHPFRAME_PATH.DS."application".DS."route.php";
require_once _PHPFRAME_PATH.DS."application".DS."view.php";
// Include HTML classes
require_once _PHPFRAME_PATH.DS."html".DS."html.php";
require_once _PHPFRAME_PATH.DS."html".DS."pagination.php";
require_once _PHPFRAME_PATH.DS."html".DS."text.php";
// Include language file
require_once _PHPFRAME_PATH.DS."lang".DS."en-GB.php";
// Include users subpackage classes
require_once _PHPFRAME_PATH.DS."user".DS."openid.php";
require_once _PHPFRAME_PATH.DS."user".DS."user.php";
require_once _PHPFRAME_PATH.DS."user".DS."users.helper.php";
// Include utils classes
require_once _PHPFRAME_PATH.DS."utils".DS."client.php";
require_once _PHPFRAME_PATH.DS."utils".DS."crypt.php";
require_once _PHPFRAME_PATH.DS."utils".DS."filesystem.php";
require_once _PHPFRAME_PATH.DS."utils".DS."filter.php";
require_once _PHPFRAME_PATH.DS."utils".DS."image.php";
require_once _PHPFRAME_PATH.DS."utils".DS."mail.php";
require_once _PHPFRAME_PATH.DS."utils".DS."uri.php";
require_once _PHPFRAME_PATH.DS."utils".DS."utility.php";
// include document class
require_once _PHPFRAME_PATH.DS."document".DS."document.php";
require_once _PHPFRAME_PATH.DS."document".DS."html.php";

/**
 * phpFrame Class
 * 
 * This is the framework class.
 * 
 * This class extends the "singleton" class in order to implement the singleton design pattern.
 * 
 * The class is used to access the framework. For example:
 * 
 * <code>
 * $application =& phpFrame::getInstance('application');
 * </code>
 * 
 * Before we instantiate the application we first need to set a few useful constants,
 * check for dependencies, include required framework files and then finally 
 * instantiate the application and run the apps methods in the following order:
 * 
 * <code>
 * define("_EXEC", true);
 * define('_ABS_PATH', dirname(__FILE__) );
 * define( 'DS', DIRECTORY_SEPARATOR );
 * 
 * // include config
 * require_once _ABS_PATH.DS."inc".DS."config.php";
 * 
 * // Include phpFrame
 * require_once _ABS_PATH.DS."lib".DS."phpframe".DS."phpframe.php";
 * 
 * $application =& phpFrame::getInstance('application');
 * $application->auth();
 * $application->exec();
 * $application->render();
 * $application->output();
 * </code>
 * 
 * @package		phpFrame
 * @author 		<NAME> [e-noise.com]
 * @since 		1.0
 * @todo		phpFrame should be able to include whatever files i needed when getting "singleton" classes
 */
class phpFrame extends singleton {
	/**
	 * The phpFrame version
	 * 
	 * @var string
	 */
	var $version='1.0 Alpha';
}
?>
{'fraction_non_alphanumeric': 0.1531367552481495, 'fraction_numerical': 0.001941511952432957, 'mean_word_length': 5.178410794602699, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 25, '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': '2234200', 'n_tokens_mistral': 2861, 'n_tokens_neox': 2616, 'n_words': 533}