<commit_before><?php
	$langs = array(
		'en',
		'ar',
		'cat',
		'de',
		'es',
		'fa',
		'fr',
		'id',
		'it',
		'nl',
		'pt_br',
		'ru',
		'tr',
		'vi',
		'zh-cn',
	);

	include 'contrib.php';

	foreach ($langs as $language)
	{
		// start the output buffer
		ob_start(); ?>

		<?php

		$lang = $language;

		if ($lang == "en") {
			$full_name = "English";
		}
		if ($lang == "it") {
			$full_name = "Italiano";
		}
		if ($lang == "de") {
			$full_name = "Deutsch";
		}
		if ($lang == "fr") {
			$full_name = "Français";
		}
		if ($lang == "ru") {
			$full_name = "Pусский";
		}
		if ($lang == "pt_br") {
			$full_name = "Português";
		}
		if ($lang == "cat") {
			$full_name = "Català";
		}
		if ($lang == "es") {
			$full_name = "Español";
		}
		if ($lang == "vi") {
			$full_name = "Tiếng Việt";
		}
		if ($lang == "tr") {
			$full_name = "Türk";
		}
		if ($lang == "ar") {
			$full_name = "العربية";
		}
		if ($lang == "nl") {
			$full_name = "Nederlands";
		}
		if ($lang == "fa") {
			$full_name = "فارسی";
		}
		if ($lang == "zh-cn") {
			$full_name = "中国的";
		}
		if ($lang == "id") {
			$full_name = "Indonesia";
		}

		include ('dev.php');

		if ($language == "en")
		{
			$cachefile = "index.html";
		}
		else {
			$cachefile = $language.".html";
		}
		// open the cache file "cache/home.html" for writing
		$fp = fopen($cachefile, 'w');
		// save the contents of output buffer to the file
		fwrite($fp, ob_get_contents());
		// close the file
		fclose($fp);
		// Send the output to the browser
		ob_end_flush();
	}
?><commit_msg>Re-order `if` blocks to match language order<commit_after><?php
	$langs = array(
		'en',
		'ar',
		'cat',
		'de',
		'es',
		'fa',
		'fr',
		'id',
		'it',
		'nl',
		'pt_br',
		'ru',
		'tr',
		'vi',
		'zh-cn',
	);

	include 'contrib.php';

	foreach ($langs as $language)
	{
		// start the output buffer
		ob_start(); ?>

		<?php

		$lang = $language;

		if ($lang == "en") {
			$full_name = "English";
		}
		if ($lang == "ar") {
			$full_name = "العربية";
		}
		if ($lang == "cat") {
			$full_name = "Català";
		}
		if ($lang == "de") {
			$full_name = "Deutsch";
		}
		if ($lang == "es") {
			$full_name = "Español";
		}
		if ($lang == "fa") {
			$full_name = "فارسی";
		}
		if ($lang == "fr") {
			$full_name = "Français";
		}
		if ($lang == "id") {
			$full_name = "Indonesia";
		}
		if ($lang == "it") {
			$full_name = "Italiano";
		}
		if ($lang == "nl") {
			$full_name = "Nederlands";
		}
		if ($lang == "pt_br") {
			$full_name = "Português";
		}
		if ($lang == "ru") {
			$full_name = "Pусский";
		}
		if ($lang == "tr") {
			$full_name = "Türk";
		}
		if ($lang == "vi") {
			$full_name = "Tiếng Việt";
		}
		if ($lang == "zh-cn") {
			$full_name = "中国的";
		}

		include ('dev.php');

		if ($language == "en") {
			$cachefile = "index.html";
		}
		else {
			$cachefile = $language.".html";
		}
		// open the cache file "cache/home.html" for writing
		$fp = fopen($cachefile, 'w');
		// save the contents of output buffer to the file
		fwrite($fp, ob_get_contents());
		// close the file
		fclose($fp);
		// Send the output to the browser
		ob_end_flush();
	}
?>
{'fraction_non_alphanumeric': 0.2311153969784635, 'fraction_numerical': 0.0, 'mean_word_length': 2.5283446712018143, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '56252', 'n_tokens_mistral': 1566, 'n_tokens_neox': 1354, 'n_words': 306}