<commit_before><?php
error_reporting(-1);
ini_set('display_errors', 'On');

session_start();
$site_root = "http://srv.sml.name:81/dinklebot";

foreach (glob("util/*.php") as $filename) {
    include $filename;
}

if (!empty($_GET['l'])) {
	if (Language::exists($_GET['l'])) {
		$language = $_GET['l'];
	} else {
		$language = Language::best();
		$url = "";
		$break = explode('/', $_SERVER['REQUEST_URI']);
		foreach($break as $item) {
			if ($item != null && $item != "" && !empty($item) && $item != "refresh" && $item != $_GET['l']) {
				$url .= "/".$item;
			}
		}
		$url .= "/".$language;
		header("Location: ".$url);
		exit;
	}
} else {
	$language = Language::best();
	$url = "";
	$break = explode('/', $_SERVER['REQUEST_URI']);<commit_msg>Fixed a small mistake in index.php<commit_after><?php
error_reporting(-1);
ini_set('display_errors', 'On');

session_start();
$site_root = "http://dinklebot.net";

foreach (glob("util/*.php") as $filename) {
    include $filename;
}

if (!empty($_GET['l'])) {
	if (Language::exists($_GET['l'])) {
		$language = $_GET['l'];
	} else {
		$language = Language::best();
		$url = "";
		$break = explode('/', $_SERVER['REQUEST_URI']);
		foreach($break as $item) {
			if ($item != null && $item != "" && !empty($item) && $item != "refresh" && $item != $_GET['l']) {
				$url .= "/".$item;
			}
		}
		$url .= "/".$language;
		header("Location: ".$url);
		exit;
	}
} else {
	$language = Language::best();
	$url = "";
	$break = explode('/', $_SERVER['REQUEST_URI']);
{'fraction_non_alphanumeric': 0.27048634243837444, 'fraction_numerical': 0.002664890073284477, 'mean_word_length': 4.161512027491409, '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': '1000705', 'n_tokens_mistral': 579, 'n_tokens_neox': 545, 'n_words': 108}