<commit_before><?php
// ----------------------------- //
// Let the magic begin
// ----------------------------- //

use Parvula\Core\Parvula;

if (!defined('_ROOT_')) exit;
$time = -microtime(true);

// Try to load composer autoloader
if (is_file($autoload = _VENDOR_ . '/autoload.php')) {
	require $autoload;
} else {
	throw new \RuntimeException('Please install the dependencies with composer: <code>composer install</code>');
}

$app = new Parvula;

// Parvula::redirectIfTrailingSlash(); //@FIXME

require _APP_ . 'helpers.php';

// Register services
require _APP_ . 'services.php';

$config = $app['config'];
$config->set('__time__', $time);

$debug = (bool) $config->get('debug', false);

if ($debug) {
	error_reporting(E_ALL);
	$app['errorHandler'];
}

// Display or not errors
ini_set('display_errors', $debug);

// Set timezone
date_default_timezone_set($config->get('timezone', 'UTC'));

// Load class aliases
loadAliases($config->get('aliases'));






class APIRender {
	/**
	 * Output rendered template
	 *
	 * @param  ResponseInterface $response
	 * @param  array $data Associative array of data to be returned
	 * @param  int $status HTTP status code<commit_msg>Timezone must be set for the logger<commit_after><?php
// ----------------------------- //
// Let the magic begin
// ----------------------------- //

use Parvula\Core\Parvula;

if (!defined('_ROOT_')) exit;
$time = -microtime(true);

// Try to load composer autoloader
if (is_file($autoload = _VENDOR_ . '/autoload.php')) {
	require $autoload;
} else {
	throw new \RuntimeException('Please install the dependencies with composer: <code>composer install</code>');
}

$app = new Parvula;

// Parvula::redirectIfTrailingSlash(); //@FIXME

require _APP_ . 'helpers.php';

// Register services
require _APP_ . 'services.php';

$config = $app['config'];
$config->set('__time__', $time);

// Set timezone
date_default_timezone_set($config->get('timezone', 'UTC'));

$debug = (bool) $config->get('debug', false);

if ($debug) {
	error_reporting(E_ALL);
	$app['errorHandler'];
}

// Display or not errors
ini_set('display_errors', $debug);

// Load class aliases
loadAliases($config->get('aliases'));






class APIRender {
	/**
	 * Output rendered template
	 *
	 * @param  ResponseInterface $response
	 * @param  array $data Associative array of data to be returned
	 * @param  int $status HTTP status code
{'fraction_non_alphanumeric': 0.20353238015138772, 'fraction_numerical': 0.0, 'mean_word_length': 3.4137291280148423, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3585086', 'n_tokens_mistral': 772, 'n_tokens_neox': 759, 'n_words': 199}