<commit_before><div class="show_basic">

  <h1>Publishing results for the <%= text_for_resource @asset -%> '<%= link_to @asset.title,@asset -%>'</h1>

  <h2>Items that were successfully published</h2>
  <ul id="published">
    <% if @published_items.empty? -%><li class="none_text">No items</li><% end -%>
    <% @published_items.each do |item| -%>
        <li style="font-weight:bolder;"><%= text_for_resource item -%>: <%= link_to item.title, item -%></li>
    <% end -%>
  </ul>

  <h2>Items for which notifications to publish were sent the owners</h2>
  <ul id="notified">
    <% if @notified_items.empty? -%><li class="none_text">No items</li><% end -%>
    <% @notified_items.each do |item| -%>
        <li style="font-weight:bolder;"><%= text_for_resource item -%>: <%= link_to item.title, item -%></li>
        <li style="padding-left:2em;">Notification has been sent to: <%= item.managers.collect{|m| link_to(m.title,m)}.join(", ") -%></li>
    <% end -%>
  </ul>
  <h2>Items that were not published due to an unforseen problem</h2>
  <ul id="problematic">
    <% if @problematic_items.empty? -%><li class="none_text">No items</li><% end -%>
    <% @problematic_items.each do |item| -%>
        <li style="font-weight:bolder;"><%= text_for_resource item -%>: <%= link_to item.title, item -%></li>
    <% end -%>
  </ul>


  <br/><br/>
  <%= link_to "Back to '#{@asset.title}'", @asset -%>

</div><commit_msg>after publishing, notify that email cant be sent to the owner if the email is disabled<commit_after><div class="show_basic">

  <h1>Publishing results for the <%= text_for_resource @asset -%> '<%= link_to @asset.title,@asset -%>'</h1>

  <h2>Items that were successfully published</h2>
  <ul id="published">
    <% if @published_items.empty? -%><li class="none_text">No items</li><% end -%>
    <% @published_items.each do |item| -%>
        <li style="font-weight:bolder;"><%= text_for_resource item -%>: <%= link_to item.title, item -%></li>
    <% end -%>
  </ul>

  <h2>Items for which notifications to publish were sent the owners</h2>
  <ul id="notified">
    <% if @notified_items.empty? -%><li class="none_text">No items</li><% end -%>
    <% @notified_items.each do |item| -%>
        <li style="font-weight:bolder;"><%= text_for_resource item -%>: <%= link_to item.title, item -%></li>
        <% if Seek::Config.email_enabled %>
            <li style="padding-left:2em;">Notification has been sent to: <%= item.managers.collect{|m| link_to(m.title,m)}.join(", ") -%></li>
        <% else %>
            <li style="padding-left:2em;">Notification can't be sent to: <%= item.managers.collect{|m| link_to(m.title,m)}.join(", ") -%>, because email is disabled</li>
        <% end %>
    <% end -%>
  </ul>
  <h2>Items that were not published due to an unforseen problem</h2>
  <ul id="problematic">
    <% if @problematic_items.empty? -%><li class="none_text">No items</li><% end -%>
    <% @problematic_items.each do |item| -%>
        <li style="font-weight:bolder;"><%= text_for_resource item -%>: <%= link_to item.title, item -%></li>
    <% end -%>
  </ul>


  <br/><br/>
  <%= link_to "Back to '#{@asset.title}'", @asset -%>

</div>
{'fraction_non_alphanumeric': 0.21505376344086022, 'fraction_numerical': 0.006008855154965212, 'mean_word_length': 3.577424023154848, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, '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': '6027244', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1123, 'n_words': 260}