<commit_before><?php
/**
 * The web application index file
 * 
 * This is the file that we browse to access the ExtranetOffice web application.
 * 
 * In order to instantiate the application we first set a few useful constants,
 * check for dependencies, load the debugger,  include required framework files
 * and then finally instantiate the application and run the apps methods in the
 * following order:
 * 
 * <code>
 * $application =& application::getInstance('application');
 * $application->auth();
 * $application->exec();
 * $application->render();
 * $application->output();
 * </code>
 * 
 * @version 	$Id: index.php 46 2009-02-13 01:37:49Z luis.montero $
 * @package		ExtranetOffice
 * @copyright	Copyright (C) 2009 E-noise.com Limited. All rights reserved.
 * @license		BSD revised. See LICENSE.
 * @author 		<NAME> [e-noise.com]
 */

/**
 *  Report all PHP errors
 */
error_reporting(E_ALL ^ E_NOTICE);

/**
 *  Set flag that this is a parent file
 */
define("_EXEC", true);
/**
 * Set constant containing absolute path to application
 */
define('_ABS_PATH', dirname(__FILE__) );
/**
 * Set DS constant (directory separator depends on server operating system).
 */
define( 'DS', DIRECTORY_SEPARATOR );

// include config
require_once _ABS_PATH.DS."inc".DS."config.php";

// check dependencies
require_once _ABS_PATH.DS."inc".DS."dependencies.php";
global $dependencies;
$dependencies = new dependencies();
if ($dependencies->status === false) {
	//TODO: Here we have to print nicely the dependencies info. For now we are just dumping the whole dependencies object.
	echo 'Please check all dependencies are installed.<br />';
	echo '<pre>'; var_dump($dependencies);
	exit;
}

// Include phpFrame
require_once _ABS_PATH.DS."lib".DS."phpframe".DS."phpframe.php";

// instantiate debbuger
$debug = new debug();

// Instantiate application
$application =& application::getInstance('application');
$application->auth();
$application->exec();
$application->render();
$application->output();

// Display debug output
$debug->display();
?><commit_msg>Index updated to instantiate application according to changes in phpFrame<commit_after><?php
/**
 * The web application index file
 * 
 * This is the file that we browse to access the ExtranetOffice web application.
 * 
 * In order to instantiate the application we first 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>
 * $application =& phpFrame::getInstance('application');
 * $application->auth();
 * $application->exec();
 * $application->render();
 * $application->output();
 * </code>
 * 
 * @version 	$Id: index.php 46 2009-02-13 01:37:49Z luis.montero $
 * @package		ExtranetOffice
 * @copyright	Copyright (C) 2009 E-noise.com Limited. All rights reserved.
 * @license		BSD revised. See LICENSE.
 * @author 		<NAME> [e-noise.com]
 */

/**
 *  Report all PHP errors
 */
error_reporting(E_ALL ^ E_NOTICE);

/**
 *  Set flag that this is a parent file
 */
define("_EXEC", true);
/**
 * Set constant containing absolute path to application
 */
define('_ABS_PATH', dirname(__FILE__) );
/**
 * Set DS constant (directory separator depends on server operating system).
 */
define( 'DS', DIRECTORY_SEPARATOR );

// include config
require_once _ABS_PATH.DS."inc".DS."config.php";

// check dependencies
require_once _ABS_PATH.DS."inc".DS."dependencies.php";
global $dependencies;
$dependencies = new dependencies();
if ($dependencies->status === false) {
	//TODO: Here we have to print nicely the dependencies info. For now we are just dumping the whole dependencies object.
	echo 'Please check all dependencies are installed.<br />';
	echo '<pre>'; var_dump($dependencies);
	exit;
}

// Include phpFrame
require_once _ABS_PATH.DS."lib".DS."phpframe".DS."phpframe.php";

// Instantiate application
$application =& phpFrame::getInstance('application');
$application->auth();
$application->exec();
$application->render();
$application->output();
?>
{'fraction_non_alphanumeric': 0.1373612823674476, 'fraction_numerical': 0.009864364981504316, 'mean_word_length': 4.495934959349594, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 34, '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': '1000703', 'n_tokens_mistral': 1240, 'n_tokens_neox': 1142, 'n_words': 391}