<commit_before><div class="panel">
  <div class="row collapse">
    <div class="medium-9 columns">
      <% if params[:q].present? %>
        <h4 class="filter-title no-m pts">
          <%= t(:count_tickets_containing, count: @tickets.count) %> '<em><%= params[:q].to_s %></em>'
        </h4>
      <% else %>
        <h4 class="filter-title no-m pts">
          <%= t(:count_tickets, count: @tickets.count) %>
        </h4>
      <% end %>
    </div>
    <div class="medium-3 columns">
      <%= form_tag tickets_path, method: :get do %>
        <%= hidden_field_tag :assignee_id, params[:assignee_id] %>
        <%= hidden_field_tag :status, params[:status] %>
        <div class="row collapse">
          <div class="small-8 columns">
            <%= text_field_tag :q, params[:q], class: 'no-m' %>
          </div>
          <div class="small-4 columns">
            <%= button_tag t(:search), type: 'submit', class: 'radius no-m button postfix' %>
          </div>
        </div>
      <% end %>
    </div>
  </div>
</div>
<table class="full zebra">
  <tbody>
    <% @tickets.each do |ticket| %>
      <tr data-ticket-url="<%= ticket_url(ticket) %>">

        <td>
          <% if can? :update, ticket %>
            <a href="#" data-dropdown="priorities-<%= ticket.id %>">
              <span class="priority-<%= ticket.priority %> fa fa-circle"></span>
            </a>
            <%= render 'priority_dropdown', ticket: ticket, short: true %>
          <% else %>
            <span class="priority-<%= ticket.priority %> fa fa-circle"></span>
          <% end %>
        </td>

        <td style="white-space:nowrap">
          <%= ticket.user.email %>
        </td>

        <td class="text-secondary table-nowrap">
          <% ticket.labels.viewable_by(current_user).each do |label| %>
            <%= render label %>
          <% end %>
          <% if !ticket.subject.nil? %>
            <a href="<%= ticket_url(ticket) %>">
              <% if ticket.replies.size > 0 %>
                <span class="success radius label" title="<%= ticket.replies.size %> <%= t(:replies) %>"><%= ticket.replies.size %></span>
              <% end %>
              <%= ticket.subject %> - <span class="text-secondary"><%= sanitize(ticket.content, tags: [])[0..80] %></span>
            </a>
          <% else %>
            <%= link_to ticket do %>
              <em>(<%= t(:no_subject) %>)</em>
            <% end %>
          <% end %>
        </td>

        <td>
          <% if can? :update, ticket %>
            <% if ticket.assignee %>
              <a data-assignee-id="<%= ticket.assignee.id %>" href="#"><i class="fa fa-user"></i> <%= ticket.assignee.email %></a>
            <% else %>
              <a data-assignee-id="" href="#"><em><%= t(:unassigned) %></em></a>
            <% end %>
          <% else %>
            <% if ticket.assignee %>
              <i class="fa fa-user"></i> <%= ticket.assignee.email %>
            <% else %><commit_msg>Display html_entities correctly<commit_after><div class="panel">
  <div class="row collapse">
    <div class="medium-9 columns">
      <% if params[:q].present? %>
        <h4 class="filter-title no-m pts">
          <%= t(:count_tickets_containing, count: @tickets.count) %> '<em><%= params[:q].to_s %></em>'
        </h4>
      <% else %>
        <h4 class="filter-title no-m pts">
          <%= t(:count_tickets, count: @tickets.count) %>
        </h4>
      <% end %>
    </div>
    <div class="medium-3 columns">
      <%= form_tag tickets_path, method: :get do %>
        <%= hidden_field_tag :assignee_id, params[:assignee_id] %>
        <%= hidden_field_tag :status, params[:status] %>
        <div class="row collapse">
          <div class="small-8 columns">
            <%= text_field_tag :q, params[:q], class: 'no-m' %>
          </div>
          <div class="small-4 columns">
            <%= button_tag t(:search), type: 'submit', class: 'radius no-m button postfix' %>
          </div>
        </div>
      <% end %>
    </div>
  </div>
</div>
<table class="full zebra">
  <tbody>
    <% @tickets.each do |ticket| %>
      <tr data-ticket-url="<%= ticket_url(ticket) %>">

        <td>
          <% if can? :update, ticket %>
            <a href="#" data-dropdown="priorities-<%= ticket.id %>">
              <span class="priority-<%= ticket.priority %> fa fa-circle"></span>
            </a>
            <%= render 'priority_dropdown', ticket: ticket, short: true %>
          <% else %>
            <span class="priority-<%= ticket.priority %> fa fa-circle"></span>
          <% end %>
        </td>

        <td style="white-space:nowrap">
          <%= ticket.user.email %>
        </td>

        <td class="text-secondary table-nowrap">
          <% ticket.labels.viewable_by(current_user).each do |label| %>
            <%= render label %>
          <% end %>
          <% if !ticket.subject.nil? %>
            <a href="<%= ticket_url(ticket) %>">
              <% if ticket.replies.size > 0 %>
                <span class="success radius label" title="<%= ticket.replies.size %> <%= t(:replies) %>"><%= ticket.replies.size %></span>
              <% end %>
              <%= ticket.subject %> - <span class="text-secondary"><%= sanitize(ticket.content, tags: [])[0..80].html_safe %></span>
            </a>
          <% else %>
            <%= link_to ticket do %>
              <em>(<%= t(:no_subject) %>)</em>
            <% end %>
          <% end %>
        </td>

        <td>
          <% if can? :update, ticket %>
            <% if ticket.assignee %>
              <a data-assignee-id="<%= ticket.assignee.id %>" href="#"><i class="fa fa-user"></i> <%= ticket.assignee.email %></a>
            <% else %>
              <a data-assignee-id="" href="#"><em><%= t(:unassigned) %></em></a>
            <% end %>
          <% else %>
            <% if ticket.assignee %>
              <i class="fa fa-user"></i> <%= ticket.assignee.email %>
            <% else %>
{'fraction_non_alphanumeric': 0.20487394957983193, 'fraction_numerical': 0.004033613445378151, 'mean_word_length': 1.8555662188099808, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 0, '>': 213, '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': '2247148', 'n_tokens_mistral': 2071, 'n_tokens_neox': 1834, 'n_words': 390}