<commit_before><% if activity.activitable_object.note? %>
  <!-- FIXME: activity.object conflicts with draper. object is reserved -->
  <p><%= activity.model.object.content %></p>

<% elsif activity.activitable_object.comment? %>

<!-- FIXME: activity.object conflicts with draper. object is reserved -->
  <p><%= link_to activity.actor.display_name, stream_path(provider: :people, id: activity.actor.id) %><span class='separator'></span><%= activity.model.object.content %></p>

<% elsif activity.activitable_object.activity? %>

  <p><%= activity.activity_field_content %></p>
  <!-- FIXME: activity.object conflicts with draper. object is reserved -->
  <p><%= link_to(activity.model.object.actor.display_name, stream_path(provider: :people, id: activity.model.object.actor.id)) %> <%= link_to('originally shared:', stream_path(provider: :activities, id: activity.model.object.id)) %></p>
  <!-- FIXME: activity.object conflicts with draper. object is reserved -->
  <p><%=  activity.model.object.object.content %></p>

<% else %>

  <p>
    <%= activity.activitable_object.activitable_type %>
  </p>

<% end %><commit_msg>comment out unused code and add layout for activity.activitable_object.activity?<commit_after><% if activity.activitable_object.note? %>
  <!-- FIXME: activity.object conflicts with draper. object is reserved -->
  <p><%= activity.model.object.content %></p>

<%# elsif activity.activitable_object.comment? %>

<!-- FIXME: activity.object conflicts with draper. object is reserved -->
<!--   <p><%#= link_to activity.actor.display_name, stream_path(provider: :people, id: activity.actor.id) %><span class='separator'></span><%= activity.model.object.content %></p> -->

<% elsif activity.activitable_object.activity? %>

  <p><%= activity.activity_field_content %></p>

  <article  class='media media-body-attachment'>
    <section class='media-body'>
      <header>
        <h2>
          <!-- FIXME: activity.object conflicts with draper. object is reserved -->
          <%= link_to(activity.model.object.actor.display_name, stream_path(provider: :people, id: activity.model.object.actor.id)) %>
          <small class='text-muted'>
            <!-- FIXME: activity.object conflicts with draper. object is reserved -->
            <%= link_to('originally shared:', stream_path(provider: :activities, id: activity.model.object.id)) %>
          </small>
        </h2>
      </header>

      <!-- FIXME: activity.object conflicts with draper. object is reserved -->
      <p><%= activity.model.object.object.content %></p>

    </section>
  </article>

  <!-- FIXME: activity.object conflicts with draper. object is reserved -->
<!--   <p><%#= link_to(activity.model.object.actor.display_name, stream_path(provider: :people, id: activity.model.object.actor.id)) %> <%= link_to('originally shared:', stream_path(provider: :activities, id: activity.model.object.id)) %></p> -->
  <!-- FIXME: activity.object conflicts with draper. object is reserved -->
<!--   <p><%#= activity.model.object.object.content %></p> -->

<% else %>

  <p>
    <%= activity.activitable_object.activitable_type %>
  </p>

<% end %>
{'fraction_non_alphanumeric': 0.1799617102744097, 'fraction_numerical': 0.0006381620931716656, 'mean_word_length': 3.883177570093458, 'pattern_counts': {'":': 0, '<': 86, '<?xml version=': 0, '>': 86, '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': '3136946', 'n_tokens_mistral': 982, 'n_tokens_neox': 945, 'n_words': 214}