<commit_before><div class="grid_9 center">

<%= simple_form_for(@user) do |f| %>
  <%= action_links do %>
    <%= f.button :submit %>
    ou <%= link_to "Retourner à la liste", users_path %>
  <% end %>

  <table class="show_item">
    <tbody>
      <%= tabular_errors @user %>
      <%= f.input :name, :required => true, :wrapper_class => "th" %>
      <%= f.input :provider, :collection => [["Cerbère CAS", "cas"]] %>
      <%= f.input :uid, :required => true, :input_html => { :style => "width:400px;" } %>
      <tr>
        <td class="label"><%= f.label :authentication_token, :class => "input" %></td>
        <td>
          <span id="authentication_token"><%= @user.authentication_token %></span>
          <%= f.hidden_field :authentication_token %>
          <%= button_tag "Générer", :id => "generate-token", :class => "inline", :style => (@user.authentication_token.present? ? "display:none;" : nil) %>
          <%= button_tag "Supprimer", :id => "remove-token", :class => "inline", :style => (@user.authentication_token.blank? ? "display:none;" : nil) %>
        </td>
      </tr>
    </tbody>
  </table>
<% end %>
<commit_msg>Add confirmation message before token deletion in users/form<commit_after><div class="grid_9 center">

<%= simple_form_for(@user) do |f| %>
  <%= action_links do %>
    <%= f.button :submit %>
    ou <%= link_to "Retourner à la liste", users_path %>
  <% end %>

  <table class="show_item">
    <tbody>
      <%= tabular_errors @user %>
      <%= f.input :name, :required => true, :wrapper_class => "th" %>
      <%= f.input :provider, :collection => [["Cerbère CAS", "cas"]] %>
      <%= f.input :uid, :required => true, :input_html => { :style => "width:400px;" } %>
      <tr>
        <td class="label"><%= f.label :authentication_token, :class => "input" %></td>
        <td>
          <span id="authentication_token"><%= @user.authentication_token %></span>
          <%= f.hidden_field :authentication_token %>
          <%= button_tag "Générer", :id => "generate-token", :class => "inline", :style => (@user.authentication_token.present? ? "display:none;" : nil) %>
          <%= button_tag "Supprimer", :id => "remove-token", :class => "inline", :style => (@user.authentication_token.blank? ? "display:none;" : nil),
                                      "data-confirm" => t(:text_are_you_sure) %>
        </td>
      </tr>
    </tbody>
  </table>
<% end %>

{'fraction_non_alphanumeric': 0.21280133000831256, 'fraction_numerical': 0.0033250207813798837, 'mean_word_length': 3.045378151260504, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 86, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6413236', 'n_tokens_mistral': 867, 'n_tokens_neox': 796, 'n_words': 173}