<commit_before><div  id="page-wrapper"
      style="margin-bottom: 1000px;"
>
  <div style="width: 100%; height: 100%;">
    <%= image_tag('newsletter_header.png', style: 'width: 100%; height: auto;', id: 'newsletter-header-img') %>
    <span id="newsletter-title"><%= @newsletter.title %></span>
  </div>
  <div id="sticky-header">
    <ul class="nav nav-tabs" role="tablist">
      <% @newsletter.news_elements.group_by(&:category).each do |category, elements| %>
        <li role="presentation"
            style=""
        >
          <a href="#<%= category.name %>"><%= "#{category.name}" %></a>
        </li>
      <% end %>
    </ul>
  </div>
  <div id="page-content" style="min-width: 500px; max-width: 800px; margin: 0 auto;">
    <% @newsletter.news_elements.group_by(&:category).each do |category, elements| %>
    <% elements.each do |element| %>
      <div id="<%= category.name %>">
        <%= render partial: find_partial_show(element.newsletterable.class.to_s), :locals => {element: element} %>
      </div>
    <% end %>
    <% end %>

  </div>
</div>
<script type="text/javascript">
  $( window ).resize(function() {
    place_title();
  });


  $(document).ready(function(){
    place_title();
    $('#page-wrapper').scrollspy({ target: '#sticky-header' });
    var stickyRibbonTop = $('#sticky-header').offset().top;

    $(window).scroll(function(){
      if( $(window).scrollTop() > stickyRibbonTop ) {
        $('#sticky-header').css({position: 'fixed', top: '0px'});
      } else {
        $('#sticky-header').css({position: 'static', top: '0px'});
      }
    });
  });
</script><commit_msg>added category names on show, resolved #47<commit_after><div  id="page-wrapper"
      style="margin-bottom: 1000px;"
>
  <div style="width: 100%; height: 100%;">
    <%= image_tag('newsletter_header.png', style: 'width: 100%; height: auto;', id: 'newsletter-header-img') %>
    <span id="newsletter-title"><%= @newsletter.title %></span>
  </div>
  <div id="sticky-header">
    <ul class="nav nav-tabs" role="tablist">
      <% @newsletter.news_elements.group_by(&:category).each do |category, elements| %>
        <li role="presentation"
            style=""
        >
          <a href="#<%= category.name %>"><%= "#{category.name}" %></a>
        </li>
      <% end %>
    </ul>
  </div>
  <div id="page-content" style="min-width: 500px; max-width: 800px; margin: 0 auto;">
    <% @newsletter.news_elements.group_by(&:category).each do |category, elements| %>

    <h1 align="center"><%= category.name %></h1>
    <hr />
    <div id="<%= category.name %>" style="margin-bottom: 50px;">
      <% elements.each do |element| %>
        <div id="">
          <%= render partial: find_partial_show(element.newsletterable.class.to_s), :locals => {element: element} %>
        </div>
      <% end %>
      </div>
    <% end %>

  </div>
</div>
<script type="text/javascript">
  $( window ).resize(function() {
    place_title();
  });


  $(document).ready(function(){
    place_title();
    $('#page-wrapper').scrollspy({ target: '#sticky-header' });
    var stickyRibbonTop = $('#sticky-header').offset().top;

    $(window).scroll(function(){
      if( $(window).scrollTop() > stickyRibbonTop ) {
        $('#sticky-header').css({position: 'fixed', top: '0px'});
      } else {
        $('#sticky-header').css({position: 'static', top: '0px'});
      }
    });
  });
</script>
{'fraction_non_alphanumeric': 0.22435141509433962, 'fraction_numerical': 0.01474056603773585, 'mean_word_length': 3.147921760391198, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 77, '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': '1668621', 'n_tokens_mistral': 1219, 'n_tokens_neox': 1120, 'n_words': 217}