<commit_before>export default ({
  statistics
}) => (
  <ul>
    <li>
      <span className="number">{statistics.related_proposals_count}</span>
      {I18n.t('components.action_plan_statistics.related_proposals_count')}
    </li>
    <li>
      <span className="number">{statistics.supports_count}</span>
      {I18n.t('components.action_plan_statistics.supports_count')}
    </li>
    <li>
      <span className="number">{statistics.comments_count}</span>
      {I18n.t('components.action_plan_statistics.comments_count')}
    </li>
    <li>
      <span className="number">{statistics.participants_count}</span>
      {I18n.t('components.action_plan_statistics.participants_count')}
    </li>
    <li>
      <span className="number">{statistics.meeting_interventions_count}</span>
      {I18n.t('components.action_plan_statistics.meeting_interventions_count')}
    </li>
    <li>
      <span className="number">{statistics.interventions_count}</span>
      {I18n.t('components.action_plan_statistics.interventions_count')}
    </li>
  </ul>
);
<commit_msg>DRYed statistics component a bit<commit_after>export default ({
  statistics
}) => (
  <ul>
    {renderStatistics(statistics)}
  </ul>
);

function renderStatistics (statistics) {
  let result = [];

  for (let key in statistics) {
    result.push(
      <li key={key}>
        <span className="number">{statistics[key]}</span>
        {I18n.t(`components.action_plan_statistics.${key}`)}
      </li>
    );
  }

  return result;
}

{'fraction_non_alphanumeric': 0.15906040268456376, 'fraction_numerical': 0.009395973154362415, 'mean_word_length': 3.825242718446602, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 37, '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': '5525726', 'n_tokens_mistral': 514, 'n_tokens_neox': 505, 'n_words': 64}