<commit_before><table style="border: 1px solid #ddd;" cellspacing="0" cellpadding="0">
<tr>
  <td style="padding: 10px 10px; background-color: #<%= @header_color %>;">
    <a href="<%= Discourse.base_url %>">
    <%- if logo_url.blank? %>
      <%= SiteSetting.title %>
    <%- else %>
      <img src="<%= logo_url %>" style="max-height: 35px; min-height: 35px; height: 35px;" class='site-logo'></a>
    <%- end %>
  </td>
</tr>
<tr>
  <td style="background-color: #fff; padding: 10px 10px; font-family: Arial, Helvetica, sans-serif; font-size: 14px;">
    <%= raw(t 'user_notifications.digest.why', site_link: html_site_link, last_seen_at: @last_seen_at) %>

    <%- if @featured_topics.present? %>
      <h3><%=t 'user_notifications.digest.top_topics' %></h3>

      <%- @featured_topics.each_with_index do |t, i| %>
        <div class='featured-topic'>
          <%= link_to t.title, "#{Discourse.base_url}#{t.relative_url}" %>
          <%= email_category(t.category) %>
        </div>

        <%- if t.best_post.present? %>
          <div class='digest-post'>
            <%= email_excerpt(t.best_post.cooked, @featured_topics.size) %>
          </div>
        <%- end %>

        <%- if i < @featured_topics.size - 1 %><% end %>

      <%- end %>
    <%- end %>

    <%- if @new_topics.present? %>
      <h3><%=t 'user_notifications.digest.other_new_topics' %></h3>

      <%- @new_topics.each do |t| %>
        <ul>
          <li>
            <%= link_to t.title, "#{Discourse.base_url}#{t.relative_url}" %>
            <span class='post-count'><%= t('user_notifications.digest.posts', count: t.posts_count) %></span>
            <%= email_category(t.category) %>
          </li>
        </ul>
      <%- end -%>

    <%- end -%>

    <%- if @new_topics_since_seen > 0 %>
      <%- if @new_by_category.present? %>
        <p><%= t('user_notifications.digest.more_topics_category', last_seen_at: @last_seen_at, new_topics_since_seen: @new_topics_since_seen) %></p>
        <div>
        <%- @new_by_category.each do |c| %>
          <span style="margin-bottom: 8px; margin-right: 10px; display: inline-block;"><%= email_category(c[0], show_uncategorized: true) %> x <%= c[1] %></span>
        <%- end %>
      </div>
      <%- else %>
        <p><%= t('user_notifications.digest.more_topics', last_seen_at: @last_seen_at, new_topics_since_seen: @new_topics_since_seen) %></p>
      <%- end %>
    <%- end -%>

  <span class='footer-notice'>
    <%=raw(t :'user_notifications.digest.unsubscribe',
       site_link: html_site_link,
       unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_path(host: Discourse.base_url, key: @user.temporary_key, only_path: false)))  %>
  </span>
  </td>
</tr>
</table><commit_msg>add <hr> between sections of digest email<commit_after><table style="border: 1px solid #ddd;" cellspacing="0" cellpadding="0">
<tr>
  <td style="padding: 10px 10px; background-color: #<%= @header_color %>;">
    <a href="<%= Discourse.base_url %>">
    <%- if logo_url.blank? %>
      <%= SiteSetting.title %>
    <%- else %>
      <img src="<%= logo_url %>" style="max-height: 35px; min-height: 35px; height: 35px;" class='site-logo'></a>
    <%- end %>
  </td>
</tr>
<tr>
  <td style="background-color: #fff; padding: 10px 10px; font-family: Arial, Helvetica, sans-serif; font-size: 14px;">
    <%= raw(t 'user_notifications.digest.why', site_link: html_site_link, last_seen_at: @last_seen_at) %>

    <%- if @featured_topics.present? %>
      <hr/>
      <h3><%=t 'user_notifications.digest.top_topics' %></h3>


      <%- @featured_topics.each_with_index do |t, i| %>
        <div class='featured-topic'>
          <%= link_to t.title, "#{Discourse.base_url}#{t.relative_url}" %>
          <%= email_category(t.category) %>
        </div>

        <%- if t.best_post.present? %>
          <div class='digest-post'>
            <%= email_excerpt(t.best_post.cooked, @featured_topics.size) %>
          </div>
        <%- end %>

        <%- if i < @featured_topics.size - 1 %><% end %>

      <%- end %>
    <%- end %>

    <%- if @new_topics.present? %>
      <hr/>
      <h3><%=t 'user_notifications.digest.other_new_topics' %></h3>

      <%- @new_topics.each do |t| %>
        <ul>
          <li>
            <%= link_to t.title, "#{Discourse.base_url}#{t.relative_url}" %>
            <span class='post-count'><%= t('user_notifications.digest.posts', count: t.posts_count) %></span>
            <%= email_category(t.category) %>
          </li>
        </ul>
      <%- end -%>

    <%- end -%>

    <%- if @new_topics_since_seen > 0 %>
      <%- if @new_by_category.present? %>
        <p><%= t('user_notifications.digest.more_topics_category', last_seen_at: @last_seen_at, new_topics_since_seen: @new_topics_since_seen) %></p>
        <div>
        <%- @new_by_category.each do |c| %>
          <span style="margin-bottom: 8px; margin-right: 10px; display: inline-block;"><%= email_category(c[0], show_uncategorized: true) %> x <%= c[1] %></span>
        <%- end %>
      </div>
      <%- else %>
        <p><%= t('user_notifications.digest.more_topics', last_seen_at: @last_seen_at, new_topics_since_seen: @new_topics_since_seen) %></p>
      <%- end %>
    <%- end -%>

  <hr/>
  <span class='footer-notice'>
    <%=raw(t :'user_notifications.digest.unsubscribe',
       site_link: html_site_link,
       unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_path(host: Discourse.base_url, key: @user.temporary_key, only_path: false)))  %>
  </span>
  </td>
</tr>
</table>
{'fraction_non_alphanumeric': 0.1987075928917609, 'fraction_numerical': 0.010770059235325794, 'mean_word_length': 2.8802228412256268, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 163, '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': '909', 'n_tokens_mistral': 2266, 'n_tokens_neox': 2042, 'n_words': 342}