<commit_before><?php
/**
 * Inline Games - Telegram Bot (@inlinegamesbot)
 *
 * (c) 2017 Jack'lul <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use Bot\Bot;

/**
 * Define root path
*/
define("ROOT_PATH", realpath(dirname(__DIR__)));

/**
 * @var Composer\Autoload\ClassLoader
 */
$loader = include __DIR__ . ' /../vendor/autoload.php';

//We do not want to unnecessarily run the bot when this is not a web hook request
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST') {
    try {
        $app = new Bot();
        $app->run();
    } catch (\Throwable $e) {
        header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);
    }
}<commit_msg>This should work<commit_after><?php
/**
 * Inline Games - Telegram Bot (@inlinegamesbot)
 *
 * (c) 2017 Jack'lul <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use Bot\Bot;

/**
 * Define root path
*/
define("ROOT_PATH", realpath(dirname(__DIR__)));

/**
 * @var Composer\Autoload\ClassLoader
 */
$loader = include __DIR__ . ' /../vendor/autoload.php';

//We do not want to unnecessarily run the bot when this is not a web hook request
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST') {
    try {
        $app = new Bot();
        $app->run();
    } catch (\Throwable $e) {
        header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);
    }
} else {
    header("Location: /");
}
{'fraction_non_alphanumeric': 0.15918869084204057, 'fraction_numerical': 0.012292562999385371, 'mean_word_length': 3.3881401617250675, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4365752', 'n_tokens_mistral': 523, 'n_tokens_neox': 499, 'n_words': 160}