<commit_before><?php

use Symfony\Component\ClassLoader\ApcClassLoader;
use Symfony\Component\HttpFoundation\Request;

$loader = require_once __DIR__.'/../var/bootstrap.php.cache';

// Use APC for autoloading to improve performance.
// Change 'sf2' to a unique prefix in order to prevent cache key conflicts
// with other applications also using APC.
/*
$apcLoader = new ApcClassLoader('sf2', $loader);
$loader->unregister();
$apcLoader->register(true);
*/

require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';

$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
//$kernel = new AppCache($kernel);

// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);<commit_msg>update index.php to match current usage<commit_after><?php
/**
 * Symfony App Front Controller
 *
 * @todo consider using the ApcClassLoader
 */
use Symfony\Component\HttpFoundation\Request;

require_once __DIR__.'/../app/autoload.php';

if (file_exists(__DIR__.'/../.env')) {
    $dotEnv = new \Dotenv\Dotenv();
    $dotEnv->load(__DIR__.'/../');
}
$env = $_SERVER['SYMFONY_ENV'];
$debug = (bool)$_SERVER['SYMFONY_DEBUG'];

if ('prod' == $env) {
    require_once __DIR__.'/../var/bootstrap.php.cache';
}
require_once __DIR__.'/../app/AppKernel.php';

$kernel = new AppKernel($env, $debug);

$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();

if (function_exists('register_postsend_function')) {
    register_postsend_function(function () use ($kernel, $request, $response) {
$kernel->terminate($request, $response);
    });
} else {
    $kernel->terminate($request, $response);
}
{'fraction_non_alphanumeric': 0.17180156657963447, 'fraction_numerical': 0.0010443864229765013, 'mean_word_length': 5.180645161290323, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '5580366', 'n_tokens_mistral': 602, 'n_tokens_neox': 601, 'n_words': 137}