<commit_before>- if f.object.new_record?
  %h3= t('.title')
  %p= t('.task')

.name.text_field
  = f.label :name, t('.name_html')
  = f.text_field :name, :autofocus => %w[new edit].include?(action_name) || nil
  
- if f.object.new_record?
  %p.optional= t('.optional')

  - f.object.comments.build unless f.object.comments.any?
  = f.fields_for :comments do |comment_fields|
    .body.text_field
      = comment_fields.label :body, t('.body_html')
      = comment_fields.text_area :body, :rows => 3
    .extra
      .upload_area
        %p= t('uploads.new.select_a_file')
        - comment_fields.object.uploads.build unless comment_fields.object.uploads.any?
        = comment_fields.fields_for :uploads do |uploads|
          = uploads.file_field :asset, :id => 'upload_file'
      .private_options{ :style => 'display: none', 'object-prefix' => "conversation_new", 'object-type' => 'conversation' }
        .option.normal
          = f.radio_button :is_private, false, :checked => !f.object.is_private, :id => "task_new_public", :disabled => true
          %label{ :for => "task_new_public" }= t('comments.private.public')
        .option.private
          = f.radio_button :is_private, true, :checked => f.object.is_private, :id => "task_new_private", :disabled => true
          %label{ :for => "task_new_private" }= t('comments.private.private')
      .actions
        .attach
          %span= t('comments.fields.attach') + ": "
          = link_to t('uploads.comment_upload_link'), '#uploads', :class => 'attach_icon hoverable', :title => "Attach a file"
          = render 'google_docs/form', :f => comment_fields
          = link_to "Privacy", '#privacy', :class => 'private_switch hoverable', :title => "Control who can see this element"

  .assigned_to.text_field
    = f.label :assigned_id, t('comments.new.assigned_to')
    = f.select :assigned_id, []

  .pick_date
    = f.label :due_on, t('.due_on_html')
    = date_picker(f, :due_on)<commit_msg>Remove static private fields from add task form<commit_after>- if f.object.new_record?
  %h3= t('.title')
  %p= t('.task')

.name.text_field
  = f.label :name, t('.name_html')
  = f.text_field :name, :autofocus => %w[new edit].include?(action_name) || nil
  
- if f.object.new_record?
  %p.optional= t('.optional')

  - f.object.comments.build unless f.object.comments.any?
  = f.fields_for :comments do |comment_fields|
    .body.text_field
      = comment_fields.label :body, t('.body_html')
      = comment_fields.text_area :body, :rows => 3
    .extra
      .upload_area
        %p= t('uploads.new.select_a_file')
        - comment_fields.object.uploads.build unless comment_fields.object.uploads.any?
        = comment_fields.fields_for :uploads do |uploads|
          = uploads.file_field :asset, :id => 'upload_file'
      .private_options{ :style => 'display: none', 'object-prefix' => "task_new", 'object-type' => 'task' }
      .actions
        .attach
          %span= t('comments.fields.attach') + ": "
          = link_to t('uploads.comment_upload_link'), '#uploads', :class => 'attach_icon hoverable', :title => "Attach a file"
          = render 'google_docs/form', :f => comment_fields
          = link_to "Privacy", '#privacy', :class => 'private_switch hoverable', :title => "Control who can see this element"

  .assigned_to.text_field
    = f.label :assigned_id, t('comments.new.assigned_to')
    = f.select :assigned_id, []

  .pick_date
    = f.label :due_on, t('.due_on_html')
    = date_picker(f, :due_on)
{'fraction_non_alphanumeric': 0.16131805157593124, 'fraction_numerical': 0.001146131805157593, 'mean_word_length': 3.206024096385542, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 33, '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': '3201733', 'n_tokens_mistral': 1201, 'n_tokens_neox': 1177, 'n_words': 238}