<commit_before><?php

echo elgg_view('code_review/navigation');

//fetch all
$functions = code_review::getDeprecatedFunctionsList('');

//group by versions
$groups = array();
foreach ($functions as $name => $data) {
	$version = isset($data['version']) ? $data['version'] : 'Unknown';
	if (!isset($groups[$version])) {
		$groups[$version] = array();
	}
	$groups[$version][$name] = $data;
}

ksort($groups);

$fixes = new CodeFixer();
$replaces = $fixes->getBasicFunctionRenames();
<commit_msg>Corrected ordering of deprecated functions<commit_after><?php

echo elgg_view('code_review/navigation');

//fetch all
$functions = code_review::getDeprecatedFunctionsList('');

//group by versions
$groups = array();
foreach ($functions as $name => $data) {
	$version = isset($data['version']) ? $data['version'] : 'Unknown';
	if (!isset($groups[$version])) {
		$groups[$version] = array();
	}
	$groups[$version][$name] = $data;
}

uksort($groups, 'version_compare');
$groups = array_reverse($groups, true);

$fixes = new CodeFixer();
$replaces = $fixes->getBasicFunctionRenames();

{'fraction_non_alphanumeric': 0.20130475302889095, 'fraction_numerical': 0.0, 'mean_word_length': 6.782608695652174, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6885524', 'n_tokens_mistral': 356, 'n_tokens_neox': 348, 'n_words': 74}