<commit_before><% cache [locale_and_user_status, @all_visible_comments, @all_visible_comments.map(&:author), @debate.comments_count, @comment_flags] do %>
  <section class="row-full comments">
    <div class="row">
      <div id="comments" class="small-12 column">

        <h2>
          <%= t("debates.show.comments_title") %>
          <span>(<%= @debate.comments_count %>)</span>
        </h2>

        <% if user_signed_in? %>
          <%= render 'comments/form', {commentable: @debate, parent_id: nil, toggeable: false} %>
        <% else %>
        <br>

        <div data-alert class="alert-box radius info">
          <a href="#" class="close">&times;</a>
          <%= t("debates.show.login_to_comment",
              signin: link_to(t("votes.signin"), new_user_session_path),
              signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
          </div>
        <% end %>

        <% @root_comments.each do |comment| %>
          <%= render 'comments/comment', comment: comment  %>
        <% end %>
        <%= paginate @root_comments %>
      </div>
    </div>
  </section>
<% end %><commit_msg>removes close button from alert for no-logged user<commit_after><% cache [locale_and_user_status, @all_visible_comments, @all_visible_comments.map(&:author), @debate.comments_count, @comment_flags] do %>
  <section class="row-full comments">
    <div class="row">
      <div id="comments" class="small-12 column">

        <h2>
          <%= t("debates.show.comments_title") %>
          <span>(<%= @debate.comments_count %>)</span>
        </h2>

        <% if user_signed_in? %>
          <%= render 'comments/form', {commentable: @debate, parent_id: nil, toggeable: false} %>
        <% else %>
        <br>

        <div class="alert-box radius info">
          <%= t("debates.show.login_to_comment",
              signin: link_to(t("votes.signin"), new_user_session_path),
              signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
          </div>
        <% end %>

        <% @root_comments.each do |comment| %>
          <%= render 'comments/comment', comment: comment  %>
        <% end %>
        <%= paginate @root_comments %>
      </div>
    </div>
  </section>
<% end %>
{'fraction_non_alphanumeric': 0.17287234042553193, 'fraction_numerical': 0.0035460992907801418, 'mean_word_length': 2.5768621236133122, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '5432692', 'n_tokens_mistral': 787, 'n_tokens_neox': 717, 'n_words': 135}