<commit_before><p><%=h @subject %></p>

<% @form.class.form_attributes.each do |attribute|
  value = @form.send(attribute)
  next if value.blank? %>

  <p><b><%= @form.class.human_attribute_name(attribute) %>:</b>
  <%= value.include?("\n") ? simple_format(h(value)) : h(value) %></p>
<% end %>
<% unless @form.class.form_appendable.blank? %>
  <p><%= I18n.t :title, :scope => [ :simple_form, :request ], :default => 'Request information' %></p>

  <% @form.class.form_appendable.each do |attribute|
    value = @form.request.send(attribute)
    value = if value.is_a?(Hash) && !value.empty?
      content_tag(:ul, value.to_a.map{|k,v| content_tag(:li, h("#{k}: #{v}")) }.join("\n"))
    else
      h(value.inspect)
    end
  %>

    <p><b><%= I18n.t attribute, :scope => [ :simple_form, :request ], :default => attribute.to_s.humanize %>:</b>
    <%= value.include?("\n") ? simple_format(value) : value %></p>
  <% end %>
<% end %>
<commit_msg>Improving e-mail style.<commit_after><h4 style="text-decoration:underline"><%=h @subject %></h4>

<% @form.class.form_attributes.each do |attribute|
  value = @form.send(attribute)
  next if value.blank? %>

  <p><b><%= @form.class.human_attribute_name(attribute) %>:</b>
  <%= value.include?("\n") ? simple_format(h(value)) : h(value) %></p>
<% end %>

<% unless @form.class.form_appendable.blank? %>
  <br /><h4 style="text-decoration:underline"><%= I18n.t :title, :scope => [ :simple_form, :request ], :default => 'Request information' %></h4>

  <% @form.class.form_appendable.each do |attribute|
    value = @form.request.send(attribute)

    value = if value.is_a?(Hash) && !value.empty?
      content_tag(:ul, value.to_a.map{|k,v| content_tag(:li, h("#{k}: #{v.inspect}")) }.join("\n"), :style => "list-style:none;")
    elsif value.is_a?(String)
      h(value)
    else
      h(value.inspect)
    end
  %>

    <p><b><%= I18n.t attribute, :scope => [ :simple_form, :request ], :default => attribute.to_s.humanize %>:</b>
    <%= value.include?("\n") ? simple_format(value) : value %></p>
  <% end %>
  <br />
<% end %>

{'fraction_non_alphanumeric': 0.23745173745173745, 'fraction_numerical': 0.005791505791505791, 'mean_word_length': 4.068459657701712, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 62, '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': '6631783', 'n_tokens_mistral': 823, 'n_tokens_neox': 770, 'n_words': 139}