<commit_before>
<% number_notifications_ads = @notifications_new_answer.length %>
<li class="dropdown messages-dropdown">

  <% if number_notifications_ads > 0 %>
    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-book" id="fa-book"></i><span class="badge" id="custom-badge"><%= number_notifications_ads %></span><b class="caret" id="dropCarret"></b></a>
  <% else %>
    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-book"  id="fa-book"></i><b class="caret" id="dropCarret"></b></a>
  <% end %>

  <ul class="dropdown-menu">

    <%# notifications new answers for your questions %>
    <% if @notifications_new_answer.length > 0 %>
      <li class="dropdown-header"><%= @notifications_new_answer.length %> Novas Respostas</li>
      <% @notifications_new_answer.each do |notification| %>
        <% question = Academy::Question.find(notification.id_destination) %>
        <li class="preview">
          <a href="<%= academy_question_path(question, :notification => notification) %>">
            <span class="name"><%= question.title %></span>
          </a>
        </li>
      <% end %>
      <li class="divider"></li>
    <% end %>

    <% if number_notifications_ads == 0 %>
      <li class="dropdown-header">Sem novos alertas.</li>
    <% end %>

  </ul>
</li>
<commit_msg>[FEATURE UPDATE] Notification System - minor changes<commit_after>
<% number_notifications_academy = @notifications_new_answer.length %>
<li class="dropdown messages-dropdown">

  <% if number_notifications_academy > 0 %>
    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-book" id="fa-book"></i><span class="badge" id="custom-badge"><%= number_notifications_academy %></span><b class="caret" id="dropCarret"></b></a>
  <% else %>
    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-book"  id="fa-book"></i><b class="caret" id="dropCarret"></b></a>
  <% end %>

  <ul class="dropdown-menu">

    <%# notifications new answers for your questions %>
    <% if @notifications_new_answer.length > 0 %>
      <li class="dropdown-header"><%= @notifications_new_answer.length %> Novas Respostas</li>
      <% @notifications_new_answer.each do |notification| %>
        <% question = notification.question %>
        <li class="preview">
          <a href="<%= academy_question_path(question, :notification => notification) %>">
            <span class="name"><%= question.title %></span>
          </a>
        </li>
      <% end %>
      <li class="divider"></li>
    <% end %>

    <% if number_notifications_academy == 0 %>
      <li class="dropdown-header">Sem novos alertas.</li>
    <% end %>

  </ul>
</li>

{'fraction_non_alphanumeric': 0.19488699518340125, 'fraction_numerical': 0.002223045572434235, 'mean_word_length': 3.7787610619469025, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 101, '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': '5932523', 'n_tokens_mistral': 915, 'n_tokens_neox': 831, 'n_words': 167}