<commit_before><% if @total_tables == 1 %>
  <% if @errors.nil? %>
    <%- message = "<p>Your dataset <strong>#{@first_table[:name]}</strong> was successfully imported</p>" %>
  <% else %>
     <%- message = "<p>There was some error while importing your dataset <strong>#{@first_table[:name]}</strong></p>" %>
  <% end %>
<% else %>
  <% if @errors.nil? %>
    <%- message = "<p><strong>#{@imported_tables}</strong> out of <strong>#{@total_tables}</strong> were successfully imported</p>" %>
  <% else %>
     <%- message = "<p><strong>#{@imported_tables}</strong> out of <strong>#{@total_tables}</strong> were successfully imported</p>" %>
  <% end %>
<% end %>

<% if @errors.nil? %>
  <%= render partial: 'mailer_modules/positive_message', locals: { message: message } %>
<% else %>
  <%= render partial: 'mailer_modules/warning_message', locals: { message: message } %>
<% end %>

<% if @errors.present? %>
  <tr>
    <td align="left" style="font-size: 14px; line-height: 25px; font-family: 'Open Sans', Helvetica, Arial, sans-serif; color: #647083;">
      <p><strong><%= @errors[:title] %></strong></p>
      <p><%= @errors[:what_about].html_safe %></p>
    </td>
  </tr>

  <tr>
    <td align="left" style="font-size: 14px; line-height: 25px; font-family: 'Open Sans', Helvetica, Arial, sans-serif; color: #647083;">
      <p>Dataset files:</p>

      <ul>
        <% @files.each do |filename| %>
          <li><strong>File name:</strong> <%= filename %></li>
        <% end %>
      </ul>
    </td>
  </tr>
<% end %>

<%= render partial: 'mailer_modules/link_to_action', locals: { link: @link, link_text: "View your #{@total_tables == 1 ? 'dataset' : 'datasets'}" } %>
<commit_msg>Fixed imports email template<commit_after><% if @total_tables == 1 %>
  <% if @errors.nil? %>
    <%- message = "<p>Your dataset <strong>#{@first_table['name']}</strong> was successfully imported</p>" %>
  <% else %>
     <%- message = "<p>There was some error while importing your dataset <strong>#{@files.first}</strong></p>" %>
  <% end %>
<% else %>
  <% if @errors.nil? %>
    <%- message = "<p><strong>#{@imported_tables}</strong> out of <strong>#{@total_tables}</strong> were successfully imported</p>" %>
  <% else %>
     <%- message = "<p><strong>#{@imported_tables}</strong> out of <strong>#{@total_tables}</strong> were successfully imported</p>" %>
  <% end %>
<% end %>

<% if @errors.nil? %>
  <%= render partial: 'mailer_modules/positive_message', locals: { message: message } %>
<% else %>
  <%= render partial: 'mailer_modules/warning_message', locals: { message: message } %>
<% end %>

<% if @errors.present? %>
  <tr>
    <td align="left" style="font-size: 14px; line-height: 25px; font-family: 'Open Sans', Helvetica, Arial, sans-serif; color: #647083;">
      <p><strong><%= @errors['title'] %></strong></p>
      <p><%= @errors['what_about'].html_safe %></p>
    </td>
  </tr>

  <tr>
    <td align="left" style="font-size: 14px; line-height: 25px; font-family: 'Open Sans', Helvetica, Arial, sans-serif; color: #647083;">
      <p>Dataset files:</p>

      <ul>
        <% @files.each do |filename| %>
          <li><strong>File name:</strong> <%= filename %></li>
        <% end %>
      </ul>
    </td>
  </tr>
<% end %>

<% if @imported_tables > 0 %>
  <%= render partial: 'mailer_modules/link_to_action', locals: { link: @link, link_text: "View your #{@imported_tables == 1 ? 'dataset' : 'datasets'}" } %>
<% end %>

{'fraction_non_alphanumeric': 0.22801397786837507, 'fraction_numerical': 0.013104251601630751, 'mean_word_length': 3.7708333333333335, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 142, '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': '672125', 'n_tokens_mistral': 1315, 'n_tokens_neox': 1173, 'n_words': 269}