<commit_before><h5><%= _('Metric Result') %> </h5>
<strong>
  <%= _('Module:') %>
  <%=  module_result.module.name %>
</strong>
<br/>
<hr/>
<table id="project_metric_result">
  <thead>
    <tr>
      <th>Metric</th>
      <th>Value</th>
      <th>Weight</th>
      <th>Threshold</th>
    </tr>
  </thead>
  <tbody>
    <% module_result.metric_results.each do |metric_result|  %>
      <tr>
        <td><%= metric_result.metric.name %></td>
        <td><%= metric_result.value %></td>
        <td><%= metric_result.weight %></td>
        <% range = metric_result.range %>
        <td style="background-color: #<%= range.color[2..-1] %>"><%= range.label %></td>
      </tr>   
    <% end %>
  </tbody>
  <tfoot>
    <tr>
      <td colspan = "4" align = "right">
        <strong>
          <%= _('Grade:') %>
          <%=  module_result.grade %>
        </strong>
      </td>
    </tr>
  </tfoot>
</table>
<commit_msg>Show comments on the metric labels<commit_after><h5><%= _('Metric Result') %> </h5>
<strong>
  <%= _('Module:') %>
  <%=  module_result.module.name %>
</strong>
<br/>
<hr/>
<table id="project_metric_result">
  <thead>
    <tr>
      <th>Metric</th>
      <th>Value</th>
      <th>Weight</th>
      <th>Threshold</th>
    </tr>
  </thead>
  <tbody>
    <% module_result.metric_results.each do |metric_result|  %>
      <% range = metric_result.range %>
      <tr title=" <%= range.comments %>">
        <td><%= metric_result.metric.name %></td>
        <td><%= metric_result.value %></td>
        <td><%= metric_result.weight %></td>
        <td style="background-color: #<%= range.color[2..-1] %>"><%= range.label %></td>
      </tr>   
    <% end %>
  </tbody>
  <tfoot>
    <tr>
      <td colspan = "4" align = "right">
        <strong>
          <%= _('Grade:') %>
          <%=  module_result.grade %>
        </strong>
      </td>
    </tr>
  </tfoot>
</table>

{'fraction_non_alphanumeric': 0.2332624867162593, 'fraction_numerical': 0.005313496280552604, 'mean_word_length': 2.2409638554216866, 'pattern_counts': {'":': 0, '<': 110, '<?xml version=': 0, '>': 110, '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': '4666641', 'n_tokens_mistral': 750, 'n_tokens_neox': 696, 'n_words': 125}