<commit_before><?php
use Gears\Framework\App\Autoloader;
use Gears\Framework\App\App;

error_reporting(E_ALL);

ini_set('display_errors', 'on');

date_default_timezone_set('UTC');

mb_internal_encoding("UTF-8");

require_once 'defines.php';
require_once 'classes/App/Autoloader.php';

(new Autoloader('Gears\Framework', __DIR__ . DS . 'classes'))->register();

require_once APP_PATH . 'Bootstrap.php';
return new Bootstrap(new App());<commit_msg>Making application specific bootstrap non-mandatory<commit_after><?php
use Gears\Framework\App\Autoloader;
use Gears\Framework\App\App;

error_reporting(E_ALL);

ini_set('display_errors', 'on');

date_default_timezone_set('UTC');

mb_internal_encoding("UTF-8");

require_once 'defines.php';
require_once 'classes/App/Autoloader.php';

(new Autoloader('Gears\Framework', __DIR__ . DS . 'classes'))->register();

if (is_file(APP_PATH . 'Bootstrap.php')) {
    require_once APP_PATH . 'Bootstrap.php';
    return new Bootstrap(new App());
} else {
    return new \Gears\Framework\App\Bootstrap(new App());
}

{'fraction_non_alphanumeric': 0.15794481446241673, 'fraction_numerical': 0.0019029495718363464, 'mean_word_length': 6.408450704225352, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3893866', 'n_tokens_mistral': 377, 'n_tokens_neox': 370, 'n_words': 63}