<commit_before>= form_for @person, :html => {:class => 'edit person', :remote => true, :data => {:type => :html}} do |f|
  %table.main.people
    %tr.person
      %td.icon
        %span
      %th.name
        = f.text_field :title, :class => 'title', :placeholder => t(:person_title)
        = f.text_field :name, :class => 'name', :placeholder => t(:person_name)
        - if @person.new_record?
          %br
          = f.check_box :invite_on_creation, :class => 'invite'
          = f.label :invite_on_creation      
    
      %td.email
        = f.email_field :email, :class => 'email', :placeholder => t(:person_email)
      %td.phone
        = f.text_field :phone, :class => 'phone', :placeholder => t(:person_phone)
      / %td.address
      /   = f.text_field :post_line1, :class => 'post_line1', :placeholder => t(:person_post_line1)
      /   %br
      /   = f.text_field :post_line2, :class => 'post_line2', :placeholder => t(:person_post_line2)
      /   %br
      /   = f.text_field :post_city, :class => 'post_city', :placeholder => t(:person_post_city)
      /   %br
      /   = f.text_field :post_region, :class => 'post_region', :placeholder => t(:person_post_region)
      /   %br
      /   = f.text_field :post_country, :class => 'post_country', :placeholder => t(:person_post_country)
      /   %br
      /   = f.text_field :post_code, :class => 'post_code', :placeholder => t(:person_post_code)
      %td.buttons
        = f.submit t(:save)
        = t :or
        = link_to t(:cancel), "/", :class => 'cancel'
  <commit_msg>create as admin<commit_after>= form_for @person, :html => {:class => 'edit person', :remote => true, :data => {:type => :html}} do |f|
  %table.main.people
    %tr.person
      %td.icon
        %span
      %th.name
        = f.text_field :title, :class => 'title', :placeholder => t(:person_title)
        = f.text_field :name, :class => 'name', :placeholder => t(:person_name)
        %br
        - if current_user.admin?
          = f.check_box :admin
          = f.label :admin      
        - if @person.new_record?
          = f.check_box :invite_on_creation, :class => 'invite'
          = f.label :invite_on_creation      
    
      %td.email
        = f.email_field :email, :class => 'email', :placeholder => t(:person_email)
      %td.phone
        = f.text_field :phone, :class => 'phone', :placeholder => t(:person_phone)
      / %td.address
      /   = f.text_field :post_line1, :class => 'post_line1', :placeholder => t(:person_post_line1)
      /   %br
      /   = f.text_field :post_line2, :class => 'post_line2', :placeholder => t(:person_post_line2)
      /   %br
      /   = f.text_field :post_city, :class => 'post_city', :placeholder => t(:person_post_city)
      /   %br
      /   = f.text_field :post_region, :class => 'post_region', :placeholder => t(:person_post_region)
      /   %br
      /   = f.text_field :post_country, :class => 'post_country', :placeholder => t(:person_post_country)
      /   %br
      /   = f.text_field :post_code, :class => 'post_code', :placeholder => t(:person_post_code)
      %td.buttons
        = f.submit t(:save)
        = t :or
        = link_to t(:cancel), "/", :class => 'cancel'
  
{'fraction_non_alphanumeric': 0.1688067647979956, 'fraction_numerical': 0.003758221108675227, 'mean_word_length': 2.4197002141327624, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 57, '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': '4610918', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1093, 'n_words': 218}