<commit_before><?php 

try {
    define("DS", DIRECTORY_SEPARATOR);
    define("ROOT_DIR", getcwd());
    define("BASE_URL", $_SERVER['HTTP_HOST']);
    define("ASSETS_DIR", dirname(__FILE__).'/assets/'); // Change it Later.
    require 'shelf/Slim/Slim.php';
    require 'shelf/Slimio/Factory.php';

    \Slim\Slim::registerAutoloader();

    $app = new \Slim\Slim();
    $app->hook('slimio.start', function() use ($app) {
        print 'called'; exit;
    });
    
    #$app->applyHook('slimio.start');
    $boostrap = \Slimio\Factory::newBoostrapInstance();
    $boostrap->registerRequestHandler($app);
    $boostrap->start();
    //$app->run();

} catch (Exception $ex) {
    echo "<pre>"; print_r($ex); exit;
}
<commit_msg>Asset, Root & Base path modified<commit_after><?php 

try {
    define("DS", DIRECTORY_SEPARATOR);
    define("ROOT_DIR", getcwd());
    define("BASE_URL", $_SERVER['HTTP_HOST']);
    define("CDN",BASE_URL); // Change with CDN Path later
    define("ASSETS_DIR",'assets/'); // Change it Later..
    #print ASSETS_DIR; exit;
    require 'shelf/Slim/Slim.php';
    require 'shelf/Slimio/Factory.php';

    \Slim\Slim::registerAutoloader();

    $app = new \Slim\Slim();
    $app->hook('slimio.start', function() use ($app) {
        print 'called'; exit;
    });
    
    #$app->applyHook('slimio.start');
    $boostrap = \Slimio\Factory::newBoostrapInstance();
    $boostrap->registerRequestHandler($app);
    $boostrap->start();
    //$app->run();

} catch (Exception $ex) {
    echo "<pre>"; print_r($ex); exit;
}

{'fraction_non_alphanumeric': 0.20090732339598186, 'fraction_numerical': 0.0, 'mean_word_length': 3.5146198830409356, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '3537553', 'n_tokens_mistral': 560, 'n_tokens_neox': 545, 'n_words': 94}