<commit_before><?php

// version: 2

// languages verifier
$lg = null;
$lg_s = null;

if (isset($_GET["lg"]) && $_GET["lg"] != null) {
	foreach ($cfg->lg as $index=>$item) {
		if ($_GET["lg"] == $item[1]) {
			$lg = $index;
			$lg_s = $item[1];
		}
	}
}

if ($lg == null || $lg_s == null) {
	// default language
	$lg = 1;
	$lg_s = $cfg->lg[1][1];<commit_msg>Access to non-active languages fixed<commit_after><?php

// version: 2

// languages verifier
$lg = null;
$lg_s = null;

if (isset($_GET["lg"]) && $_GET["lg"] != null) {
	foreach ($cfg->lg as $index=>$item) {
		if ($_GET["lg"] == $item[1]) {
			if ($item[0]) {
				$lg = $index;
				$lg_s = $item[1];
			} else {
				header("Location : {$cfg->system->path}");
			}
		}
	}
}

if ($lg == null || $lg_s == null) {
	// default language
	$lg = 1;
	$lg_s = $cfg->lg[1][1];
{'fraction_non_alphanumeric': 0.2633495145631068, 'fraction_numerical': 0.015776699029126214, 'mean_word_length': 3.1457286432160805, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2252217', 'n_tokens_mistral': 381, 'n_tokens_neox': 355, 'n_words': 78}