<commit_before><div class='notes_wrapper'>
  <div id='notes_error' class='error' style='display:none;'>
    <p id='notes_error_message'><%= t('flash.actions.create.error', resource_name: Note.model_name.human) %></p>
    <div id='notes_error_list'></div>
  </div>

  <div class='notes_existing'>
    <h3><%= t('notes.existing') %></h3>
    <div class='notes_existing_list'>
      <% @notes.each do |note| %>
        <div class='note'>
          <p><strong><%= note.user.user_name %>: </strong></p>
          <p><small><%=note.format_date%></small></p>
          <p><%= note.notes_message %></p>
        </div>
      <% end %>
    </div>
  </div>

  <div class='notes_new'>
    <h3><%= Note.human_attribute_name(:notes_message) %></h3>
    <%= form_tag(
        add_note_notes_path(id: @return_id,
                            noteable_id: @noteable,
                            noteable_type: @cls,
                            user: @current_user,
                            action_to: @action,
                            controller_to: @cont,
                            highlight_field: @highlight_field,
                            number_of_notes_field: @number_of_notes_field ),
                            remote: true) do %>
      <%= text_area_tag(:new_notes, nil, rows: 12, cols: 32) %>
      <p class='p_margin'>
        <%= submit_tag t(:save),
                       data: { disable_with: t('working') },
                       id: 'notes_submit',
                       onclick: 'modalNotesGroup.close();' %>
        <a class='button' onclick='modalNotesGroup.close();'><%= t(:cancel) %></a>
      </p>
    <% end %>
  </div>
</div><commit_msg>note: unnecessary id was messing with policy lookup<commit_after><div class='notes_wrapper'>
  <div id='notes_error' class='error' style='display:none;'>
    <p id='notes_error_message'><%= t('flash.actions.create.error', resource_name: Note.model_name.human) %></p>
    <div id='notes_error_list'></div>
  </div>

  <div class='notes_existing'>
    <h3><%= t('notes.existing') %></h3>
    <div class='notes_existing_list'>
      <% @notes.each do |note| %>
        <div class='note'>
          <p><strong><%= note.user.user_name %>: </strong></p>
          <p><small><%=note.format_date%></small></p>
          <p><%= note.notes_message %></p>
        </div>
      <% end %>
    </div>
  </div>

  <div class='notes_new'>
    <h3><%= Note.human_attribute_name(:notes_message) %></h3>
    <%= form_tag(
        add_note_notes_path(noteable_id: @noteable,
                            noteable_type: @cls,
                            user: @current_user,
                            action_to: @action,
                            controller_to: @cont,
                            highlight_field: @highlight_field,
                            number_of_notes_field: @number_of_notes_field ),
                            remote: true) do %>
      <%= text_area_tag(:new_notes, nil, rows: 12, cols: 32) %>
      <p class='p_margin'>
        <%= submit_tag t(:save),
                       data: { disable_with: t('working') },
                       id: 'notes_submit',
                       onclick: 'modalNotesGroup.close();' %>
        <a class='button' onclick='modalNotesGroup.close();'><%= t(:cancel) %></a>
      </p>
    <% end %>
  </div>
</div>
{'fraction_non_alphanumeric': 0.17341389728096676, 'fraction_numerical': 0.004833836858006042, 'mean_word_length': 1.9404973357015987, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, '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': '5211903', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1028, 'n_words': 182}