<commit_before><?php
if (!defined('SERVER_ROOT')) {
	header('Location: /error_404');
	exit ;
}

class MType {

	public function string2boolean($value) {

		// Check if it's a string of true or false
		if (is_string($value) && $value == 'true') {
			return true;
		}

		// Check if it's a string of 1 or 0
		if (is_string($value) && $value == '1') {
			return true;
		}

		return FALSE;

	}

	function array2Object($array) {
		if (!is_array($array)) {
			return $array;
		}

		$object = new stdClass();
		if (is_array($array) && count($array) > 0) {
			foreach ($array as $name => $value) {
				$name = strtolower(trim($name));
				if (!empty($name)) {
					$object -> $name = arrayToObject($value);
				}
			}
			return $object;
		} else {
			return FALSE;
		}
	}

}<commit_msg>Commit<commit_after><?php
if (!defined('SERVER_ROOT')) {
	header('Location: /error_404');
	exit ;
}

class MType {

	public function string2boolean($value) {

		// Check if it's a string of true or false
		if (is_string($value) && $value == 'true') {
			return true;
		}

		// Check if it's a string of 1 or 0
		if (is_string($value) && $value == '1') {
			return true;
		}

		return FALSE;

	}

	function array2Object($array) {
		
		if (!is_array($array)) {
			return $array;
		}

		$object = new stdClass();
		if (is_array($array) && count($array) > 0) {
			foreach ($array as $name => $value) {
				$name = strtolower(trim($name));
				if (!empty($name)) {
					$object -> $name = arrayToObject($value);
				}
			}
			return $object;
		} else {
			return FALSE;
		}
		
	}

}
{'fraction_non_alphanumeric': 0.17749196141479098, 'fraction_numerical': 0.01157556270096463, 'mean_word_length': 2.959287531806616, 'pattern_counts': {'":': 0, '<': 5, '<?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': '113727', 'n_tokens_mistral': 669, 'n_tokens_neox': 557, 'n_words': 146}