<commit_before><% # local: user %>
<div class="o-admin-dialog">
  <p>Choose <%= "#{user.first_name} #{user.last_name}" %>&apos;s Role</p>

  <%= form_tag(admin_set_role_path(user.id), method: :post, remote: true) do -%>
    <% [ ['user', 'User'], ['admin', 'Administrator'], ['superuser', 'Superuser'] ].each do |role| %>
      <p><%= radio_button_tag('role', role.first, user.role == role.first) %> <label for="<%= "role_#{role.first}" %>"><%= role[1] %></label></p>
    <% end %>

    <br/>
    <%= submit_tag 'Submit' %>
    <%= button_tag 'Cancel', type: 'button', id: 'cancel_dialog' %>

  <% end %>
</div><commit_msg>cleaning up display for users with only one name.<commit_after><% # local: user %>
<div class="o-admin-dialog">
  <p>Choose <%= "#{user.first_name} #{user.last_name}".strip %>&apos;s Role</p>

  <%= form_tag(admin_set_role_path(user.id), method: :post, remote: true) do -%>
    <% [ ['user', 'User'], ['admin', 'Administrator'], ['superuser', 'Superuser'] ].each do |role| %>
      <p><%= radio_button_tag('role', role.first, user.role == role.first) %> <label for="<%= "role_#{role.first}" %>"><%= role[1] %></label></p>
    <% end %>

    <br/>
    <%= submit_tag 'Submit' %>
    <%= button_tag 'Cancel', type: 'button', id: 'cancel_dialog' %>

  <% end %>
</div>
{'fraction_non_alphanumeric': 0.2639751552795031, 'fraction_numerical': 0.0015527950310559005, 'mean_word_length': 4.304526748971194, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '5629670', 'n_tokens_mistral': 517, 'n_tokens_neox': 472, 'n_words': 101}