<commit_before><?php

function sprintFloat($float, $format = "%01.04f")
{
	if (is_null($float))
		return null;
	if (preg_match('/f$/', $format))
    return preg_replace('/00$/', '', sprintf($format, $float));
  return $float;
}

function sprintFloatFr($float, $format = "%01.02f")
{

  return preg_replace('/\./', ',', sprintFloat($float, $format));
}

function echoFloat($float)
{
  echo sprintFloat($float);
}

function echoLongFloat($float)
{
  echo sprintFloat($float, "%01.04f");
}

function echoLongFloatFr($float)
{
  echo sprintFloatFr($float, "%01.04f");
}

function echoFloatFr($float)
{
  echo sprintFloatFr($float);
}

function echoSignedFloat($float)
{
  echo ($float>0)? '+'.sprintFloat($float) : sprintFloat($float);
}

function echoArialFloat($float) {
    echo number_format($float, 2, '.', ' ');
}

function getArialFloat($float) {
    return number_format($float, 2, '.', ' ');
}<commit_msg>[WIP] 5 chiffres après la virgule<commit_after><?php

function sprintFloat($float, $format = "%01.05f")
{
	if (is_null($float))
		return null;
	if (preg_match('/f$/', $format))
    return preg_replace('/00$/', '', sprintf($format, $float));
  return $float;
}

function sprintFloatFr($float, $format = "%01.02f")
{

  return preg_replace('/\./', ',', sprintFloat($float, $format));
}

function echoFloat($float)
{
  echo sprintFloat($float);
}

function echoLongFloat($float)
{
  echo sprintFloat($float, "%01.05f");
}

function echoLongFloatFr($float)
{
  echo sprintFloatFr($float, "%01.05f");
}

function echoFloatFr($float)
{
  echo sprintFloatFr($float);
}

function echoSignedFloat($float)
{
  echo ($float>0)? '+'.sprintFloat($float) : sprintFloat($float);
}

function echoArialFloat($float) {
    echo number_format($float, 2, '.', ' ');
}

function getArialFloat($float) {
    return number_format($float, 2, '.', ' ');
}
{'fraction_non_alphanumeric': 0.20326086956521738, 'fraction_numerical': 0.023369565217391305, 'mean_word_length': 5.304794520547945, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '933894', 'n_tokens_mistral': 682, 'n_tokens_neox': 650, 'n_words': 125}