<commit_before><?php

$sitePath = realpath(dirname(__FILE__));
define('__SITE_PATH', $sitePath);

$parts = explode("/", dirname(__FILE__));
define("__PROJECT_NAME", $parts[count($parts) - 1]);

require_once 'application/BaseController.php';
require_once 'application/BaseDataAccess.php';
require_once 'application/Config.php';
require_once 'application/Router.php';
require_once 'application/Template.php';

/**
 * __autoload
 * @param $className
 */
function __autoload($className)
{
    $filename = strtolower($className) . '.php';
    $file = 'models/' . $filename;

    if(file_exists($file))
    {
        include_once $file;
    }
}

$db = DB::getInstance();
$router = new Router(new Template());
$router->setPath('controllers');
$router->loader();<commit_msg>don't keep models name the way it is<commit_after><?php

$sitePath = realpath(dirname(__FILE__));
define('__SITE_PATH', $sitePath);

$parts = explode("/", dirname(__FILE__));
define("__PROJECT_NAME", $parts[count($parts) - 1]);

require_once 'application/BaseController.php';
require_once 'application/BaseDataAccess.php';
require_once 'application/Config.php';
require_once 'application/Router.php';
require_once 'application/Template.php';

/**
 * __autoload
 * @param $className
 */
function __autoload($className)
{
    $filename = ($className) . '.php';
    $file = 'models/' . $filename;

    if(file_exists($file))
    {
        include_once $file;
    }
}

$db = DB::getInstance();
$router = new Router(new Template());
$router->setPath('controllers');
$router->loader();
{'fraction_non_alphanumeric': 0.1779935275080906, 'fraction_numerical': 0.0012944983818770227, 'mean_word_length': 5.441666666666666, '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': '7162498', 'n_tokens_mistral': 501, 'n_tokens_neox': 497, 'n_words': 92}