<commit_before><div class="tab box" id="tab_<%=tab.__id__%>">
  <div class="tab-title boxtitle black" data-closed="false">
    <h1><%= tab.title %></h1>
    <div class="arrow"></div> <%# FIXME more DRY solution is needed for .arrow within .boxtitle, maybe box helper %>
  </div>
  <% if resource.errors.any? %>
    <p class="errorExplanation" id="errorExplanation">
      <%= raw resource.errors.keys.collect{|k|
                "#{tab.fields.by_name(k).title.humanize.capitalize}: "+
                "#{resource.errors[k].collect{|m| m.capitalize}.join(" and ")}"
              }.compact.join("<br>") %>
    </p><commit_msg>validation error fix<commit_after><div class="tab box" id="tab_<%=tab.__id__%>">
  <div class="tab-title boxtitle black" data-closed="false">
    <h1><%= tab.title %></h1>
    <div class="arrow"></div> <%# FIXME more DRY solution is needed for .arrow within .boxtitle, maybe box helper %>
  </div>
  <% if resource.errors.any? %>
    <p class="errorExplanation" id="errorExplanation">
      <%= raw resource.errors.keys.collect{|k|
        if error_tab = tab.fields.by_name(k)
          "#{error_tab.title.humanize.capitalize}: "+
            "#{resource.errors[k].collect{|m| m.capitalize}.join(" and ")}"
        end
      }.compact.join("<br>") %>
    </p>
{'fraction_non_alphanumeric': 0.20015576323987538, 'fraction_numerical': 0.003115264797507788, 'mean_word_length': 3.2549668874172184, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '6195515', 'n_tokens_mistral': 458, 'n_tokens_neox': 433, 'n_words': 87}