<commit_before><?php


function backTrace($backtrace)
{
	foreach ($backtrace as $bt) {
		$args = '';
		foreach ($bt['args'] as $a) {
			if ($args) {
				$args .= ', ';
			}
			if (in_array($bt['function'], array('RawQuery', 'Query', 'FetchResult')) && !$args)
				$args .= '"..."';
			else
				$args .= var_export($a, true);
		}
		$output .= "<td>{$bt['file']}<td>{$bt['line']}<td><code>";
		$output .= htmlspecialchars("{$bt['class']}{$bt['type']}{$bt['function']}($args)");
		$output .= "</code><tr class=cell0>";
	}
	return $output;
}


function var_format($v) // pretty-print var_export
{
	return (str_replace(array("\n"," ","array"),
array("<br>","&nbsp;","&nbsp;<i>array</i>"),
var_export($v,true))."<br>");
}
<commit_msg>php-brief actually provides acceptable speed... for debug mode, that is<commit_after><?php


function backTrace($backtrace)
{
	require_once 'plugins/sourcetag/geshi.php';
	foreach ($backtrace as $bt) {
		$args = '';
		foreach ($bt['args'] as $a) {
			if ($args) {
				$args .= ', ';
			}
			if (in_array($bt['function'], array('RawQuery', 'Query', 'FetchResult')) && !$args)
				$args .= '"..."';
			else
				$args .= var_export($a, true);
		}
		$output .= "<td>{$bt['file']}<td>{$bt['line']}<td>";
		$output .= geshi_highlight("{$bt['class']}{$bt['type']}{$bt['function']}($args)", 'php-brief', null, true);
		$output .= "<tr class=cell0>";
	}
	return $output;
}


function var_format($v) // pretty-print var_export
{
	return (str_replace(array("\n"," ","array"),
array("<br>","&nbsp;","&nbsp;<i>array</i>"),
var_export($v,true))."<br>");
}

{'fraction_non_alphanumeric': 0.28280254777070063, 'fraction_numerical': 0.0012738853503184713, 'mean_word_length': 4.671480144404332, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 21, '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': '1621561', 'n_tokens_mistral': 646, 'n_tokens_neox': 591, 'n_words': 102}