<commit_before>h1
  = @user.name || 'User'
  | 
  = " (admin)" if @user.admin?

p= "Firstname: #{@user.firstname}"
p= "Name: #{@user.lastname}"
p= "Institution: #{@user.institution}"

- if (can? :make_user, @user) && @user.admin?
  p= link_to 'Make user', make_user_user_path(@user), method: :patch
- if (can? :make_admin, @user) && !@user.admin?
  p= link_to 'Make admin', make_admin_user_path(@user), method: :patch

- if can? :update, @user
  p= link_to 'Edit user', edit_user_path(@user)
- if user_signed_in? && current_user.admin?
  p= render 'shared/deactivatable_links', location: @user<commit_msg>styles for show user<commit_after>.form-actions
  .row
    .column.medium-8.medium-offset-1
      .row
        .column.medium-8.medium-offset-4
          h2
            = @user.name || 'User'
            | 
            = " (admin)" if @user.admin?

  = simple_form_for @user do |f|
    = render partial: f

  
  - if (can? :manage, @user)
    .row.footer-helper
    .row.fixed-row
      .button-collection.-formcollection

        - if (can? :make_user, @user) && @user.admin?
          = link_to 'Make user', make_user_user_path(@user), method: :patch, class: 'button -type-a'
        - if (can? :make_admin, @user) && !@user.admin?
          = link_to 'Make admin', make_admin_user_path(@user), method: :patch, class: 'button -type-a'

        - if can? :update, @user
          = link_to t('shared.edit'), edit_user_path(@user), class: 'button -type-a'
        
        - if user_signed_in? && current_user.admin?
          = render 'shared/deactivatable_links', location: @user
{'fraction_non_alphanumeric': 0.16708701134930642, 'fraction_numerical': 0.0037831021437578815, 'mean_word_length': 2.8613138686131387, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4014823', 'n_tokens_mistral': 572, 'n_tokens_neox': 564, 'n_words': 128}