<commit_before><?php

define('APP_ROOT', realpath(__DIR__ . '/../') . '/');

require_once APP_ROOT . 'server/tempest/autoload.php';
require_once APP_ROOT . 'server/vendor/autoload.php';
require_once APP_ROOT . 'server/tempest/functions.php';

use Tempest\Utils\Path;


define('GET', 'get');
define('POST', 'post');
define('NAMED', 'named');

define('HOST', strtolower($_SERVER['SERVER_NAME']));
define('REQUEST_CLEAN', preg_replace('/(\?|#)(.+)/', '', $_SERVER["REQUEST_URI"]));
define('REQUEST_URI', Path::create(REQUEST_CLEAN, Path::DELIMITER_LEFT));<commit_msg>Fixed bug where router ignored requests with a single trailing ?.<commit_after><?php

define('APP_ROOT', realpath(__DIR__ . '/../') . '/');

require_once APP_ROOT . 'server/tempest/autoload.php';
require_once APP_ROOT . 'server/vendor/autoload.php';
require_once APP_ROOT . 'server/tempest/functions.php';

use Tempest\Utils\Path;


define('GET', 'get');
define('POST', 'post');
define('NAMED', 'named');

define('HOST', strtolower($_SERVER['SERVER_NAME']));
define('REQUEST_CLEAN', preg_replace('/(\?|#)(.*)/', '', $_SERVER["REQUEST_URI"]));
define('REQUEST_URI', Path::create(REQUEST_CLEAN, Path::DELIMITER_LEFT));
{'fraction_non_alphanumeric': 0.22033898305084745, 'fraction_numerical': 0.0, 'mean_word_length': 7.201388888888889, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4463045', 'n_tokens_mistral': 407, 'n_tokens_neox': 398, 'n_words': 65}