<commit_before>#!/usr/bin/env php
<?php

/*
 * This file is part of the 'octris/octris' package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * Octris PHAR stub.
 *
 * @copyright   copyright (c) 2014-2015 by <NAME>
 * @author      <NAME> <<EMAIL>>
 */
/**/

if (version_compare(PHP_VERSION, '5.6.0') < 0) {
    printf(
        "%s: PHP-5.6.0 or newer is required, your version is '%s'!\n",
        basename($argv[0]),
        PHP_VERSION
    );
    exit(1);
}

if (!class_exists('PHAR')) {
    printf(
        "%s: unable to execute, PHAR extension is not available\n",
        basename($argv[0])
    );
    exit(1);
}

Phar::mapPhar();

if (php_sapi_name() == 'cli-server') {
    // run using cli-server, probably because tool was executed with Httpd command.
    return require_once('phar://octris.phar/libs/Util/Router.php');
}

if ($argc > 2 && $argv[1] == 'exec') {
    // execute bundled tool
    require_once('phar://octris.phar/libs/Util/Exec.php');

    exit(0);
}

require_once('phar://octris.phar/vendor/autoload.php');
require_once('phar://octris.phar/libs/Autoloader.php');

// import environment
\Octris\Core\Provider::set('env', $_ENV);

// load application configuration
define('OCTRIS_APP_VENDOR', 'octris');
define('OCTRIS_APP_NAME', 'octris');
define('OCTRIS_APP_BASE', realpath(__DIR__));

$registry = \Octris\Core\Registry::getInstance();
$registry->set('config', function () {
    return new \Octris\Core\Config('config');
}, \Octris\Core\Registry::T_SHARED | \Octris\Core\Registry::T_READONLY);

// run application
$app = new \Octris\App();
$app->run();

__HALT_COMPILER();<commit_msg>improvement<commit_after>#!/usr/bin/env php
<?php

/*
 * This file is part of the 'octris/octris' package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * Octris PHAR stub.
 *
 * @copyright   copyright (c) 2014-2015 by <NAME>
 * @author      <NAME> <<EMAIL>>
 */
/**/

if (version_compare(PHP_VERSION, '5.6.0') < 0) {
    printf(
        "%s: PHP-5.6.0 or newer is required, your version is '%s'!\n",
        basename($argv[0]),
        PHP_VERSION
    );
    exit(1);
}

if (!class_exists('PHAR')) {
    printf(
        "%s: unable to execute, PHAR extension is not available\n",
        basename($argv[0])
    );
    exit(1);
}

Phar::mapPhar();

if (php_sapi_name() == 'cli-server') {
    // run using cli-server, probably because tool was executed with Httpd command.
    return require_once('phar://octris.phar/libs/Util/Router.php');
}

if ($argc > 2 && $argv[1] == 'exec') {
    // execute bundled tool
    require_once('phar://octris.phar/libs/Util/Exec.php');

    exit(0);
}

require_once(__DIR__ . '/vendor/autoload.php');
require_once(__DIR__ . '/libs/Autoloader.php');

// import environment
\Octris\Core\Provider::set('env', $_ENV);

// load application configuration
define('OCTRIS_APP_VENDOR', 'octris');
define('OCTRIS_APP_NAME', 'octris');
define('OCTRIS_APP_BASE', realpath(__DIR__));

$registry = \Octris\Core\Registry::getInstance();
$registry->set('config', function () {
    return new \Octris\Core\Config('config');
}, \Octris\Core\Registry::T_SHARED | \Octris\Core\Registry::T_READONLY);

// run application
$app = new \Octris\App();
$app->run();

__HALT_COMPILER();
{'fraction_non_alphanumeric': 0.1830331202789076, 'fraction_numerical': 0.012783265543288786, 'mean_word_length': 3.5845539280958723, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '2826684', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1219, 'n_words': 271}