<commit_before>- provide(:title, "Edit user")
%h1 Update your details
.row
  .span6.offset3
    = form_for (@user) do |f|
      = render 'shared/error_messages', object: f.object
      = f.label :name
      = f.text_field :name
      = f.label :email
      = f.text_field :email
      %br/
      = f.submit "Save changes", class: "btn btn-large btn-primary"<commit_msg>expose admin on user edit<commit_after>- provide(:title, "Edit user")
%h1 Update your details
.row
  .span6.offset3
    = form_for (@user) do |f|
      = render 'shared/error_messages', object: f.object
      %fieldset
        %legend User information
        = f.label :name
        = f.text_field :name
        = f.label :email
        = f.text_field :email
      - if current_user.admin?
        %fieldset
          %legend Admin User?
          = f.check_box :admin
      %br/
      = f.submit "Save changes", class: "btn btn-large btn-primary"
{'fraction_non_alphanumeric': 0.12322791712104689, 'fraction_numerical': 0.006543075245365322, 'mean_word_length': 2.25531914893617, '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': '3926123', 'n_tokens_mistral': 303, 'n_tokens_neox': 298, 'n_words': 83}