<commit_before><table id="note-table">
  <tr>
    <th>Note</th>
    <th>Source</th>
    <th>Creator</th>
    <th>Goals</th>
  </tr>

<% @notes.each do |note| %>
  <tr>
    <td id="note-body-<%=note.id%>" class="note-body">
      <%=link_to_remote note.truncated_body, 
                        :update => "note-body-#{note.id}", 
                        :method => :get,
                        :url => {:action => "full_text",
                        :id => note.id} %>
    </td>
    <td>
      <% if note.source %>
        <%=link_to note.source, note.source %>
      <% else %>
        No source.
      <% end %>
    </td>
    <td><%=h note.user %></td>
    
    <td>
      <% if @current_user == note.user %>
        <% remote_form_for note, :url => set_goals_note_path(note), :update => "note-table" do |f| -%>
          <%= f.select 'goals', @current_user.goals, {}, {:multiple => true} %>
          <% if @current_goal %>
            <%= hidden_field 'goal', 'id', :value => @current_goal.id %>
          <% end %>
          <%= submit_tag 'save' %>
        <% end %>
      <% else %>
        <% for goal in note.goals %>
            <%=link_to goal.name, goal%><% unless goal == note.goals.last %>, <%end%>
        <% end %>
      <% end %>
    </td>
    
    <% if @current_user == note.user %>
      <td><%= link_to 'Remove', note, :confirm => 'Are you sure?', :method => :delete %></td>
    <% end %>

  </tr>
<% end %>
</table>
<commit_msg>Put save button on new line.<commit_after><table id="note-table">
  <tr>
    <th>Note</th>
    <th>Source</th>
    <th>Creator</th>
    <th>Goals</th>
  </tr>

<% @notes.each do |note| %>
  <tr>
    <td id="note-body-<%=note.id%>" class="note-body">
      <%=link_to_remote note.truncated_body, 
                        :update => "note-body-#{note.id}", 
                        :method => :get,
                        :url => {:action => "full_text",
                        :id => note.id} %>
    </td>
    <td>
      <% if note.source %>
        <%=link_to note.source, note.source %>
      <% else %>
        No source.
      <% end %>
    </td>
    <td><%=h note.user %></td>
    
    <td>
      <% if @current_user == note.user %>
        <% remote_form_for note, :url => set_goals_note_path(note), :update => "note-table" do |f| -%>
          <%= f.select 'goals', @current_user.goals, {}, {:multiple => true} %>
          <% if @current_goal %>
            <%= hidden_field 'goal', 'id', :value => @current_goal.id %>
          <% end %><br/>
          <%= submit_tag 'save' %>
        <% end %>
      <% else %>
        <% for goal in note.goals %>
            <%=link_to goal.name, goal%><% unless goal == note.goals.last %>, <%end%>
        <% end %>
      <% end %>
    </td>
    
    <% if @current_user == note.user %>
      <td><%= link_to 'Remove', note, :confirm => 'Are you sure?', :method => :delete %></td>
    <% end %>

  </tr>
<% end %>
</table>

{'fraction_non_alphanumeric': 0.216290212183436, 'fraction_numerical': 0.0, 'mean_word_length': 1.7523540489642184, 'pattern_counts': {'":': 0, '<': 106, '<?xml version=': 0, '>': 128, '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': '6976466', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1006, 'n_words': 210}