<commit_before><?php

//
//  +---------------------------------------------------------------+
//  | Main execution script. 
//  +---------------------------------------------------------------+
//  | Performs basic inital application tasks:
//  | - Creates application context (input, output, view, db, etc...)
//  | - Takes controller and controller method names from params
//  | - Creates controller object and executes it
//  +---------------------------------------------------------------+
//

// Start outbut bufer
//
ob_start();

// Set autoload classes function for framework
spl_autoload_register(function($className) {
    if (file_exists(__DIR__.'/'.$className.'.php')) {
        require_once $className.'.php';
        return;
    }
});

// Start Application
$app = Tipy::getInstance();

// read debug mode from config and load ErrorHendler
defined('DEBUG_MODE') || define('DEBUG_MODE', $app->config->get('debug_mode'));
require_once('ErrorHandler.php');

// load Autoload function
require_once('TipyAutoloader.php');

// Seed rnd
srand((double)microtime()*1000000);

// Run application
$app->run();

//
// Flush output bufer
//
ob_end_flush();
<commit_msg>Since we don't have debug_mode in config.ini we don't need to search it there anymore<commit_after><?php
/**
 *
 *  Load everything and start application
 *
 */

// Start outbut bufer
ob_start();

// Set autoload classes function for framework
spl_autoload_register(function($className) {
    if (file_exists(__DIR__.'/'.$className.'.php')) {
        require_once $className.'.php';
        return;
    }
});

require_once('ErrorHandler.php');

// load Autoload function
require_once('TipyAutoloader.php');

// Seed rnd
srand((double)microtime()*1000000);

// Run application
$app = Tipy::getInstance();
$app->run();

// Flush output bufer
ob_end_flush();
{'fraction_non_alphanumeric': 0.24644030668127054, 'fraction_numerical': 0.007667031763417305, 'mean_word_length': 2.4022346368715084, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4287649', 'n_tokens_mistral': 538, 'n_tokens_neox': 521, 'n_words': 130}