<commit_before>= form_for [@project, @note], :remote => "true", :multipart => true do |f|
  %h3 Leave a comment
  -if @note.errors.any?
    .alert-message.block-message.error
      - @note.errors.full_messages.each do |msg|
        %div= msg

  = f.hidden_field :noteable_id
  = f.hidden_field :noteable_type
  = f.text_area :note,  :size => 255
  %p.hint Markdown is enabled.

  .row
    .span4
      %h5 Notify via email:
      .clearfix
        = label_tag :notify do 
          = check_box_tag :notify, 1, @note.noteable_type != "Commit"
          %span Project team

        - if @note.notify_only_author?(current_user)
          = label_tag :notify_author do 
            = check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
            %span Commit author
    .span8
      %h5 Attachment:
      .clearfix
        .attachments
          %div.file_name File name...
          %button.file_upload.btn.small Upload File
          .input= f.file_field :attachment, :class => "input-file"
        %span Any file less then 10 MB


  = f.submit 'Add Comment', :class => "btn primary", :id => "submit_note"<commit_msg>Fix typo: "less then" => "less than".<commit_after>= form_for [@project, @note], :remote => "true", :multipart => true do |f|
  %h3 Leave a comment
  -if @note.errors.any?
    .alert-message.block-message.error
      - @note.errors.full_messages.each do |msg|
        %div= msg

  = f.hidden_field :noteable_id
  = f.hidden_field :noteable_type
  = f.text_area :note,  :size => 255
  %p.hint Markdown is enabled.

  .row
    .span4
      %h5 Notify via email:
      .clearfix
        = label_tag :notify do 
          = check_box_tag :notify, 1, @note.noteable_type != "Commit"
          %span Project team

        - if @note.notify_only_author?(current_user)
          = label_tag :notify_author do 
            = check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
            %span Commit author
    .span8
      %h5 Attachment:
      .clearfix
        .attachments
          %div.file_name File name...
          %button.file_upload.btn.small Upload File
          .input= f.file_field :attachment, :class => "input-file"
        %span Any file less than 10 MB


  = f.submit 'Add Comment', :class => "btn primary", :id => "submit_note"
{'fraction_non_alphanumeric': 0.12248468941382328, 'fraction_numerical': 0.010498687664041995, 'mean_word_length': 2.304913294797688, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '5085241', 'n_tokens_mistral': 777, 'n_tokens_neox': 752, 'n_words': 196}