<commit_before><?php
/**
 * This script is intended to be run as the inbuilt webserver's "router" script.
 * Procedural code below is necessary when triggered from inbuilt webserver
 * as this script is the point-of-entry for the whole application.
 *
 * Uses Gateway class to decide whether to serve static content or begin
 * request / response within PHP.Gt.
 *
 * PHP.Gt (http://php.gt)
 * @copyright Copyright Ⓒ 2014 Bright Flair Ltd. (http://brightflair.com)
 * @license Apache Version 2.0, January 2004. http://www.apache.org/licenses
 */
namespace Gt\Cli;

$autoloader = realpath(__DIR__ . "/../../vendor/autoload.php");
if(false === $autoloader) {
	die("Composer autoloader missing. Have you installed correctly?");
}
require($autoloader);

// Only allow this script to be invoked from inbuilt webserver.
$sapi = php_sapi_name();

switch($sapi) {
case "cli-server":<commit_msg>Add composer loader for production<commit_after><?php
/**
 * This script is intended to be run as the inbuilt webserver's "router" script.
 * Procedural code below is necessary when triggered from inbuilt webserver
 * as this script is the point-of-entry for the whole application.
 *
 * Uses Gateway class to decide whether to serve static content or begin
 * request / response within PHP.Gt.
 *
 * PHP.Gt (http://php.gt)
 * @copyright Copyright Ⓒ 2014 Bright Flair Ltd. (http://brightflair.com)
 * @license Apache Version 2.0, January 2004. http://www.apache.org/licenses
 */
namespace Gt\Cli;

$autoloader = realpath(__DIR__ . "/../../../../autoload.php");
if(false === $autoloader) {
	// Assume installed globally.
	$autoloader = realpath(__DIR__ . "/../../vendor/autoload.php");

}

if(false === $autoloader) {
	die("Composer autoloader missing. Have you installed correctly?");
}
require($autoloader);

// Only allow this script to be invoked from inbuilt webserver.
$sapi = php_sapi_name();

switch($sapi) {
case "cli-server":
{'fraction_non_alphanumeric': 0.13177083333333334, 'fraction_numerical': 0.010416666666666666, 'mean_word_length': 3.9896103896103896, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1965731', 'n_tokens_mistral': 620, 'n_tokens_neox': 588, 'n_words': 205}