<commit_before><% if !object.nil? && object.errors.any? %>
  <%= content_tag("div", :class => defined?(compact) ? "compact_error" : "error") do %>

    <%# print a prefix (Error:) unless in compact mode%>
    <%= t("common.error", :count => object.errors.size) + ":" unless defined?(compact) %>
    
    <%# print a custom prefix if defined %>
    <%= prefix if defined?(prefix) %>
    
    <%# print the errors %>
    <%= object.errors.full_messages.join(", ") %>
  <% end %>
<% end %><commit_msg>fixed capitalization of error messages with prefixes<commit_after><% if !object.nil? && object.errors.any? %>
  <%= content_tag("div", :class => defined?(compact) ? "compact_error" : "error") do %>

    <%# print a prefix (Error:) unless in compact mode %>
    <%= t("common.error", :count => object.errors.size) + ":" unless defined?(compact) %>
    
    <%# print a custom prefix if defined %>
    <%= prefix if defined?(prefix) %>
    
    <%# print the errors (downcase the first char if we did a prefix) %>
    <% errors = object.errors.full_messages.join(", ") %>
    <% errors.gsub!(/^([A-Z])/){$1.downcase} if defined?(prefix) %>
    <%= errors %>
  <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.2076595744680851, 'fraction_numerical': 0.000851063829787234, 'mean_word_length': 3.4885496183206106, 'pattern_counts': {'":': 2, '<': 25, '<?xml version=': 0, '>': 29, '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': '3004386', 'n_tokens_mistral': 416, 'n_tokens_neox': 374, 'n_words': 96}