<commit_before><%= semantic_search_form_for :user, :url => esp_auth.users_path do |form| %>
  <%= form.inputs do %>
    <%= form.input :term, :as => :string, :label => false %>
  <% end %>
  <%= form.buttons do %>
    <li><%= button_tag t('permissions.search'), :class => 'button icon search' %></li>
  <% end %>
<% end %>

<%= link_to "&#43;#{t('permissions.create_permission')}".html_safe,
            esp_auth.new_permission_path,
            :class => 'new_permission' %>

<ul class='collection_list'>
  <% collection.each do |user| %>
    <li class='user'>
      <div class="name">
        <%= user.name %>
      </div>
      <div class="email">
        &lt;<%= mail_to user.email, user.email %>&gt;
      </div>

      <div class="links">
        <%= link_to "&darr;&nbsp;#{t('permissions.show_permissions')}".html_safe, '#', :class => 'show_permissions' %>
        <%= link_to "&#43;#{t('permissions.new')}".html_safe, esp_auth.new_user_permission_path(user), :class => 'add' %>
      </div>

      <ul class='permission_list'>
        <% user.permissions.group_by(&:role).each do |role, permissions| %>
          <li>
            <h4><%= permissions.first.human_role %></h4>
            <ul>
              <% permissions.each do |permission| %>
                <li>
                  <%= permission.context %>
                  <%= link_to t('commons.delete'),
                    esp_auth.permission_path(permission),
                    :method => :delete,
                    :confirm => t('commons.confirm'),<commit_msg>custom context title support in permission list<commit_after><%= semantic_search_form_for :user, :url => esp_auth.users_path do |form| %>
  <%= form.inputs do %>
    <%= form.input :term, :as => :string, :label => false %>
  <% end %>
  <%= form.buttons do %>
    <li><%= button_tag t('permissions.search'), :class => 'button icon search' %></li>
  <% end %>
<% end %>

<%= link_to "&#43;#{t('permissions.create_permission')}".html_safe,
            esp_auth.new_permission_path,
            :class => 'new_permission' %>

<ul class='collection_list'>
  <% collection.each do |user| %>
    <li class='user'>
      <div class="name">
        <%= user.name %>
      </div>
      <div class="email">
        &lt;<%= mail_to user.email, user.email %>&gt;
      </div>

      <div class="links">
        <%= link_to "&darr;&nbsp;#{t('permissions.show_permissions')}".html_safe, '#', :class => 'show_permissions' %>
        <%= link_to "&#43;#{t('permissions.new')}".html_safe, esp_auth.new_user_permission_path(user), :class => 'add' %>
      </div>

      <ul class='permission_list'>
        <% user.permissions.group_by(&:role).each do |role, permissions| %>
          <li>
            <h4><%= permissions.first.human_role %></h4>
            <ul>
              <% permissions.each do |permission| %>
                <li>
                  <%= permission.context.respond_to?(:esp_to_s) ? permission.context.esp_to_s : permission.context %>
                  <%= link_to t('commons.delete'),
                    esp_auth.permission_path(permission),
                    :method => :delete,
                    :confirm => t('commons.confirm'),
{'fraction_non_alphanumeric': 0.19167717528373265, 'fraction_numerical': 0.0037831021437578815, 'mean_word_length': 2.46775956284153, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 89, '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': '4997387', 'n_tokens_mistral': 1085, 'n_tokens_neox': 998, 'n_words': 181}