<commit_before><div class="stream-item stream_<%= stream_item.streamable_type.underscore %> <% if stream_item.person == @person %>stream_mine<% end %>">
  <div class="stream-item-meta">
    <% if stream_item.person %>
      <span class="nowrap">
        <a href="<%= url_for stream_item.person %>">
          <%= image_tag stream_item.person.has_photo? ? small_person_photo_path(stream_item.person) : (stream_item.person.gender == 'Female' ? 'woman.small.gif' : 'man.small.gif'),
            :alt => stream_item.person.name %>
        </a>
      </span>
    <% end %>
    <div style="clear:left;"></div>
  </div>
  <div class="stream-item-body">
    <% if stream_item.title %>
      <h2>
        <%= link_to stream_icon(stream_item), stream_item %>
        <%= link_to h(stream_item.title), stream_item %>
      </h2>
    <% else %>
      <%= link_to stream_icon(stream_item), stream_item %>
      <%= link_to stream_item_content(stream_item), stream_item, :style => 'text-decoration:none;' %>
    <% end %>
    <div class="nowrap stream-item-timestamp">
      <%= time_ago_in_words stream_item.created_at %> ago
      <% if stream_item.person %>
        by <%= link_to h(stream_item.person.name), stream_item.person %>
      <% end %>
      <% if stream_item.group %>
        in <%= link_to h(stream_item.group.name), stream_item.group %>
      <% end %>
    </div>
    <% if stream_item.title %>
      <%= stream_item_content stream_item %>
    <% end %>
    <% if stream_item.context['comments'].to_a.any? %>
      <table>
        <% stream_item.context['comments'].to_a.each do |comment| %>
          <% if person = @comment_people[comment['person_id']] %>
            <tr class="stream-item-comment">
              <td style="text-align:right;">
                <a href="<%= url_for person %>">
                  <%= render :partial => 'people/thumbnail', :locals => {:person => person} %>
                </a>
              </td>
              <td>
                <%= link_to h(person.name), person %>:
                <%=h comment['text'] %>
                <span class="stream-item-timestamp">
                  <%= time_ago_in_words(comment['created_at']) %> ago
                </span>
              </td>
            </tr>
          <% end %>
        <% end %>
      </table>
    <% end %>
    <% if stream_item.can_have_comments? %>
      <div class="new-comment">
        <%= link_to_function image_tag('comment.gif', :alt => 'Add a Comment', :class => 'icon') + ' Add a Comment',
          "new Effect.Appear('new-comment-for-#{stream_item.id}'); this.parentNode.style.visibility = 'visible';",
          :class => 'discreet' %>
        <div id="new-comment-for-<%= stream_item.id %>" style="display:none;">
          <% form_for Comment.new do |form| %>
            <% if stream_item.streamable_type == 'Album' %>
              <% if stream_item.context['picture_ids'].to_a.length == 1 %>
                <%= hidden_field_tag 'picture_id', stream_item.context['picture_ids'].first %>
              <% else %>
                Which picture are you commenting on?<br/>
                <% stream_item.context['picture_ids'].to_a.each_with_index do |picture_id, index| %>
                  <%= radio_button_tag :picture_id, picture_id, index == 0 %>
                  <%= label_tag "picture_id_#{picture_id}", image_tag(tn_album_picture_photo_path(stream_item.streamable_id, picture_id), :alt => '', :class => 'icon'), :class => 'inline' %>
                  &nbsp;
                <% end %>
              <% end %>
            <% else %>
              <%= hidden_field_tag stream_item.streamable_type.downcase + '_id', stream_item.streamable_id %>
            <% end %><commit_msg>Make the comment link a bit smaller.<commit_after><div class="stream-item stream_<%= stream_item.streamable_type.underscore %> <% if stream_item.person == @person %>stream_mine<% end %>">
  <div class="stream-item-meta">
    <% if stream_item.person %>
      <span class="nowrap">
        <a href="<%= url_for stream_item.person %>">
          <%= image_tag stream_item.person.has_photo? ? small_person_photo_path(stream_item.person) : (stream_item.person.gender == 'Female' ? 'woman.small.gif' : 'man.small.gif'),
            :alt => stream_item.person.name %>
        </a>
      </span>
    <% end %>
    <div style="clear:left;"></div>
  </div>
  <div class="stream-item-body">
    <% if stream_item.title %>
      <h2>
        <%= link_to stream_icon(stream_item), stream_item %>
        <%= link_to h(stream_item.title), stream_item %>
      </h2>
    <% else %>
      <%= link_to stream_icon(stream_item), stream_item %>
      <%= link_to stream_item_content(stream_item), stream_item, :style => 'text-decoration:none;' %>
    <% end %>
    <div class="nowrap stream-item-timestamp">
      <%= time_ago_in_words stream_item.created_at %> ago
      <% if stream_item.person %>
        by <%= link_to h(stream_item.person.name), stream_item.person %>
      <% end %>
      <% if stream_item.group %>
        in <%= link_to h(stream_item.group.name), stream_item.group %>
      <% end %>
    </div>
    <% if stream_item.title %>
      <%= stream_item_content stream_item %>
    <% end %>
    <% if stream_item.context['comments'].to_a.any? %>
      <table>
        <% stream_item.context['comments'].to_a.each do |comment| %>
          <% if person = @comment_people[comment['person_id']] %>
            <tr class="stream-item-comment">
              <td style="text-align:right;">
                <a href="<%= url_for person %>">
                  <%= render :partial => 'people/thumbnail', :locals => {:person => person} %>
                </a>
              </td>
              <td>
                <%= link_to h(person.name), person %>:
                <%=h comment['text'] %>
                <span class="stream-item-timestamp">
                  <%= time_ago_in_words(comment['created_at']) %> ago
                </span>
              </td>
            </tr>
          <% end %>
        <% end %>
      </table>
    <% end %>
    <% if stream_item.can_have_comments? %>
      <div class="new-comment">
        <%= link_to_function image_tag('comment.gif', :alt => 'Add a Comment', :class => 'icon') + ' Add a Comment',
          "new Effect.Appear('new-comment-for-#{stream_item.id}'); this.parentNode.style.visibility = 'visible';",
          :class => 'discreet small' %>
        <div id="new-comment-for-<%= stream_item.id %>" style="display:none;">
          <% form_for Comment.new do |form| %>
            <% if stream_item.streamable_type == 'Album' %>
              <% if stream_item.context['picture_ids'].to_a.length == 1 %>
                <%= hidden_field_tag 'picture_id', stream_item.context['picture_ids'].first %>
              <% else %>
                Which picture are you commenting on?<br/>
                <% stream_item.context['picture_ids'].to_a.each_with_index do |picture_id, index| %>
                  <%= radio_button_tag :picture_id, picture_id, index == 0 %>
                  <%= label_tag "picture_id_#{picture_id}", image_tag(tn_album_picture_photo_path(stream_item.streamable_id, picture_id), :alt => '', :class => 'icon'), :class => 'inline' %>
                  &nbsp;
                <% end %>
              <% end %>
            <% else %>
              <%= hidden_field_tag stream_item.streamable_type.downcase + '_id', stream_item.streamable_id %>
            <% end %>
{'fraction_non_alphanumeric': 0.17028448159633275, 'fraction_numerical': 0.0010786032088445463, 'mean_word_length': 2.2721658579620643, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 185, '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': '5774721', 'n_tokens_mistral': 2501, 'n_tokens_neox': 2251, 'n_words': 399}