<commit_before><?php
if(!function_exists('isint')) {
	function isint(&$val) {
		if(ctype_digit($val) || is_int($val)) {
			$val = (int) $val;
			return true;
		}
		return false;
	}
}
if(!function_exists('ip')) {
	function ip() {
		if($_SERVER['HTTP_X_FORWARDED_FOR']){
			$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
		} else { 
			$ip = $_SERVER['REMOTE_ADDR'];
		}
		return $ip;
	}
}<commit_msg>Added & improved autoload helper functions<commit_after><?php
if(!function_exists('isint')) {
	function isint(&$val) {
		if(ctype_digit($val) || is_int($val)) {
			$val = (int) $val;
			return true;
		}
		return false;
	}
}
if(!function_exists('ip')) {
	function ip() {
		if (!empty($_SERVER['HTTP_CLIENT_IP'])) return $_SERVER['HTTP_CLIENT_IP'];
		if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) return $_SERVER['HTTP_X_FORWARDED_FOR'];
		return $_SERVER['REMOTE_ADDR'];
	}
}
if(!function_exists('hash_available')) {
	function hash_available($hash) {
		$algos = hash_algos();
		if(in_array(strtolower($hash), $algos)) return true;
		return false;
	}
}
{'fraction_non_alphanumeric': 0.19577735124760076, 'fraction_numerical': 0.0, 'mean_word_length': 5.51875, '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': '2542969', 'n_tokens_mistral': 434, 'n_tokens_neox': 400, 'n_words': 65}