<commit_before><?php

//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}

/*
 * Smarty plugin
 * -------------------------------------------------------------
 * Type:     modifier
 * Name:     capitalize
 * Purpose:  capitalize words in the string
 * -------------------------------------------------------------
 */
function smarty_modifier_iconify($string)
{
  
  $string=strtolower(substr($string,strlen($string)-3));
  if(file_exists("img/icn/$string".".gif")) {
    return "<img border='0' src='img/icn/${string}.gif' alt='icon' />";
  } else {
    return "<img border='0' src='img/icn/else.gif' alt='icon' />";
  }     
	
}

?>
<commit_msg>updated links to new icons<commit_after><?php

//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}

/*
 * Smarty plugin
 * -------------------------------------------------------------
 * Type:     modifier
 * Name:     capitalize
 * Purpose:  capitalize words in the string
 * -------------------------------------------------------------
 */
function smarty_modifier_iconify($string)
{
  
  $string=strtolower(substr($string,strlen($string)-3));
  if(file_exists("pics/icons/mime/$string".".png")) {
    return "<img border='0' src='pics/icons/mime/${string}.png' alt='icon' width='16' height='16' />";
  } else {
    return "<img border='0' src='pics/icons/mime/default.png' alt='icon' width='16' height='16' />";
  }     
	
}

?>

{'fraction_non_alphanumeric': 0.30495169082125606, 'fraction_numerical': 0.008454106280193236, 'mean_word_length': 2.091417910447761, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5984225', 'n_tokens_mistral': 505, 'n_tokens_neox': 494, 'n_words': 104}