<commit_before>- form_for(@user, :html => { :multipart => true }) do |f|
  - if @user.errors.any?
    %div#error_explanation
      %h2= pluralize(@user.errors.count, 'error') + 'prohibited this user from being saved:'
      %ul
        - @user.errors.full_messages.each do |msg|
          %li= msg

  = f.hidden_field :id
  %table
    %tr
      %td.labelCell= f.label :name
      %td= f.text_field :name
    %tr
      %td.labelCell= f.label :email
      %td= f.text_field :email
    %tr
      %td.labelCell= f.label :password
      %td= f.password_field :password
    %tr
      %td.labelCell= f.label :password_confirmation
      %td= f.password_field :password_confirmation
    %tr
      %td.labelCell= f.label :profile
      %td= f.text_area :profile
    %tr
      %td.labelCell= f.label :image
      %td= f.file_field :image
    %tr
      %td.labelCell= f.label :team
      %td= f.collection_select :team_id, Team.all, :id, :name, { :include_blank => true }
    %tr
      %td
      %td= f.submit



- url = @user.new_record? ? user_path : user_path(@user)
= semantic_form_for(@user, :url => url) do |form|
  = form.inputs do
    = form.input :name
    = form.input :email
  = form.buttons do
    = form.commit_button
    %li.button.cancel
      %input{ :type => 'submit', :name => 'cancel', :value => 'Cancel' }<commit_msg>Added missing formtastic fields to User form<commit_after>- url = @user.new_record? ? user_path : user_path(@user)
= semantic_form_for(@user, :url => url) do |form|
  = form.inputs do
    = form.input :name
    = form.input :email
    = form.input :password
    = form.input :password_confirmation
    = form.input :profile
    = form.input :image
    = form.input :team, :collection => Team.all
  = form.buttons do
    = form.commit_button
    %li.button.cancel
      %input{ :type => 'submit', :name => 'cancel', :value => 'Cancel' }
{'fraction_non_alphanumeric': 0.14669532509403546, 'fraction_numerical': 0.0005373455131649651, 'mean_word_length': 2.6944444444444446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '2206694', 'n_tokens_mistral': 660, 'n_tokens_neox': 651, 'n_words': 157}