<commit_before><?php
function smarty_function_get_image_link($params,&$smarty) {
	global $db;
	$id = $params['id'];
	$img = SYSTEM_DATA.SYSTEM_IMAGES.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif";

	if (file_exists($img)) {
		echo SYSTEM_IMAGES.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif";
	}
	else {
		$set = $db->query("select user_id from users where user_id = $id");
		if ($set->getNumRows() > 0) {
			$imglink = SYSTEM_IMAGES.'/nodes///.gif';
		} else {
			$imglink = SYSTEM_IMAGES.'/nodes/1/0/101.gif';
		}
		echo $imglink;
	}
}

?>
<commit_msg>Fixed inconsistency in image check<commit_after><?php
function smarty_function_get_image_link($params,&$smarty) {
	global $db;
	$id = $params['id'];
	$img = './'.SYSTEM_IMAGES.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif";

	if (file_exists($img)) {
		echo SYSTEM_IMAGES.'/nodes/'.substr($id,0,1)."/".substr($id,1,1)."/$id.gif";
	}
	else {
		$set = $db->query("select user_id from users where user_id = $id");
		if ($set->getNumRows() > 0) {
			$imglink = SYSTEM_IMAGES.'/nodes///.gif';
		} else {
			$imglink = SYSTEM_IMAGES.'/nodes/1/0/101.gif';
		}
		echo $imglink;
	}
}

?>

{'fraction_non_alphanumeric': 0.24570446735395188, 'fraction_numerical': 0.024054982817869417, 'mean_word_length': 4.043290043290043, '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': '3400365', 'n_tokens_mistral': 534, 'n_tokens_neox': 490, 'n_words': 68}