<commit_before><?php
/**
 * @define Document root
 * @define Application path
 * @define Staging development
 */
defined('DOCUMENT_ROOT') || define('DOCUMENT_ROOT', $_SERVER["DOCUMENT_ROOT"]);
defined('APP_PATH') || define('APP_PATH', DOCUMENT_ROOT. '/../apps');
defined('APPLICATION_ENV') ||
define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Require configurations
require_once APP_PATH.'/config/application.php';

// Create factory container
$di = new Phalcon\DI\FactoryDefault();

// Set default routes
$di->set('router', function() {

    $router = new \Phalcon\Mvc\Router();
	$router->removeExtraSlashes(true)
			->setDefaults([
				'module'		=>	'Frontend',
				'controller'	=>	'index',
				'action'		=>	'index'
			]);

    require APP_PATH . '/config/routes.php';
    return $router;

});

// Set global configuration
$di->set('config', function() use ($config) {
    return (new \Phalcon\Config($config));
});

try {

    $application = new Phalcon\Mvc\Application($di);
    // Register modules
    $application->registerModules([
        'Frontend'	=>	[
            'className' => 'Modules\Frontend',
            'path'      => APP_PATH.'/Modules/Frontend/Module.php',
        ],
        'Backend'	=>	[
            'className' => 'Modules\Backend',
            'path'      => APP_PATH.'/Modules/Backend/Module.php',
        ],
    ])->setDefaultModule('Frontend');

    // Handle the request
    echo $application->handle()->getContent();

}
catch(\Exception $e)
{
    echo $e->getMessage();
    var_dump($e->getTrace());
}<commit_msg>Update index.php<commit_after><?php
/**
 * @define Document root
 * @define Application path
 * @define Staging development
 */
defined('DOCUMENT_ROOT') || define('DOCUMENT_ROOT', $_SERVER["DOCUMENT_ROOT"]);
defined('APP_PATH') || define('APP_PATH', DOCUMENT_ROOT. '/../apps');
defined('APPLICATION_ENV') ||
define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Require configurations
require_once APP_PATH.'/config/application.php';

// Create factory container
$di = new Phalcon\DI\FactoryDefault();

// Set default routes
$di->set('router', function() {

    $router = new \Phalcon\Mvc\Router();
	$router->removeExtraSlashes(true)
			->setDefaults([
				'module'		=>	'Frontend',
				'controller'	=>	'index',
				'action'		=>	'index'
			]);

    require APP_PATH . '/config/routes.php';
    return $router;

});

// Set global configuration
$di->set('config', function() use ($config) {
    return (new \Phalcon\Config($config));
});

try {

    $application = new Phalcon\Mvc\Application($di);
    // Register modules
    $application->registerModules([
        'Frontend'	=>	[
            'className' => 'Modules\Frontend',
            'path'      => APP_PATH.'/Modules/Frontend/Module.php',
        ],
        'Backend'	=>	[
            'className' => 'Modules\Backend',
            'path'      => APP_PATH.'/Modules/Backend/Module.php',
        ],
    ])->setDefaultModule('Frontend');

    // Handle the request
    echo $application->handle()->getContent();

}
catch(\Exception $e)
{
    echo $e->getMessage();
}
{'fraction_non_alphanumeric': 0.18609794628751974, 'fraction_numerical': 0.0, 'mean_word_length': 3.354883081155433, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 40, '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': '4578225', 'n_tokens_mistral': 1037, 'n_tokens_neox': 1003, 'n_words': 182}