<commit_before><h1><%=h @current_goal ? @current_goal.name : "All"%> notes</h1>

<table>
  <tr>
    <th>Note</th>
    <th>Source</th>
    <th>Creator</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}", 
                        :url => {:action => "full_body", 
                        :id => note.id} %>
    </td>
    <td><%=link_to note.source, note.source %></td>
    <td><%=h note.user %></td>
    <% if @current_user == note.user %>
      <td><%= link_to 'Remove', note, :confirm => 'Are you sure?', :method => :delete %></td>
    <% end %>
  </tr>
<% end %>
</table>

<% if @current_goal %>
  <%= link_to 'Adopt this goal', adopt_goal_path(@current_goal) %>
<% end %>

<br />
<commit_msg>Fixed display of note when it has no source.<commit_after><h1><%=h @current_goal ? @current_goal.name : "All"%> notes</h1>

<table>
  <tr>
    <th>Note</th>
    <th>Source</th>
    <th>Creator</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}", 
                        :url => {:action => "full_body", 
                        :id => note.id} %>
    </td>
    <td>
      <% if note.source %>
        <%=link_to note.source, note.source %>
      <% else %>
        No source.
      <% end %>
    </td>
    <td><%=h note.user %></td>
    <% if @current_user == note.user %>
      <td><%= link_to 'Remove', note, :confirm => 'Are you sure?', :method => :delete %></td>
    <% end %>
  </tr>
<% end %>
</table>

<br />

<% if @current_goal %>
  <%= link_to 'Adopt this goal', adopt_goal_path(@current_goal) %>
<% end %>

{'fraction_non_alphanumeric': 0.2275219298245614, 'fraction_numerical': 0.0021929824561403508, 'mean_word_length': 2.224381625441696, 'pattern_counts': {'":': 0, '<': 78, '<?xml version=': 0, '>': 90, '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': '4653524', 'n_tokens_mistral': 744, 'n_tokens_neox': 672, 'n_words': 139}