<commit_before><% if @user.images %>
  <div class="row">
    <div class="col s12 m8 offset-m2 l6 offset-l3 center pinky-text text-ligten-2 ">
      <img class="responsive-img profile-img" src="<%= @user.images.first.name %>">
    </div>
  </div>
<% end %>

<div class="container">
  <div class="row">
    <div class="col s12 center pinky-text text-ligten-2">
      <h2><%= @user.username%></h2>
    </div>
  </div>

<% if is_current_user?(@user) %>
  <div class="row">
    <div class="col s12 center pinky-text text-ligten-2">
      <a id="user-edit" href="/users/<%= @user.id %>/edit"><button class="btn waves-effect waves-purple light-green">Edit My Profile</button></a>
    </div>
  </div>
<% end %>


  <div class="row">
    <div class="col s12 m4 center pinky-text text-ligten-2">

      <h2>Posts</h2>

      <!-- Post Collection -->
      <div class="collection">
        <% @user.posts.each do |post| %>
          <p class="collection-item"><a href="/users/<%= @user.id %>/posts/<%= post.id %>"><%=  post.title %></a></br>
          <%= post.description %></p>
        <% end %>
      </div>

      <!-- Want to create a post? -->
      <div class="row">
        <div class="col s12">
          <h5>Want to create a post?</h5>
          <a href="/users/<%= @user.id %>/posts/new"><button class="btn waves-effect waves-purple light-green">Sure</button></a>
        </div>
      </div>
    </div>

    <div class="col s12 m4 center pinky-text text-ligten-2">

      <h2>Comments</h2>

      <!-- Comment Collection -->
      <div class="collection">
        <% @user.comments.each do |comment| %>
          <a href="/users/<%= @user.id %>/posts/<%= comment.post_id %>" class="collection-item">
            <p class="pinky-text"><%= comment.post.title %></p>
            <%=comment.body[0..140]%>...
          </a>
        <% end %>
      </div>

    </div>

    <div class="col s12 m4 center pinky-text text-ligten-2">

      <h2>Pets</h2>

      <!-- Pet Collection -->
      <% if @user.pets.any? %>
        <% @user.pets.each do |pet| %>
          <a href="/users/<%= @user.id %>/pets/<%= pet.id %>">
            <div class="chip">
              <img src="<%= pet.images.last.name %>" alt="<%= @user.username %>'s pet">
              <%= pet.name %>
            </div>
          </a>
        <% end %>
      <% end %>

      <!-- Want to add a pet? -->
      <div class="row">
        <div class="col s12">
          <h5>Want to add a pet?</h5>
          <a href="/users/<%= @user.id %>/pets/new"><button class="btn waves-effect waves-purple light-green">Yes</button></a>
        </div>
      </div>
    </div>
  </div>
</div><commit_msg>update profile page to make posts and comments look the same<commit_after><% if @user.images %>
  <div class="row">
    <div class="col s12 m8 offset-m2 l6 offset-l3 center pinky-text text-ligten-2 ">
      <img class="responsive-img profile-img" src="<%= @user.images.first.name %>">
    </div>
  </div>
<% end %>

<div class="container">
  <div class="row">
    <div class="col s12 center pinky-text text-ligten-2">
      <h2><%= @user.username%></h2>
    </div>
  </div>

<% if is_current_user?(@user) %>
  <div class="row">
    <div class="col s12 center pinky-text text-ligten-2">
      <a id="user-edit" href="/users/<%= @user.id %>/edit"><button class="btn waves-effect waves-purple light-blue">Edit My Profile</button></a>
    </div>
  </div>
<% end %>


  <div class="row">
    <div class="col s12 m4 center pinky-text text-ligten-2">

      <h2>Posts</h2>

      <!-- Post Collection -->
      <div class="collection">
        <% @user.posts.each do |post| %>
          <a class="collection-item" href="/users/<%= @user.id %>/posts/<%= post.id %>">
            <p class="light-blue-text"><%=  post.title %></p>
            <p class="pinky-text"><%= post.description %></p>
          </a>
        <% end %>
      </div>

      <!-- Want to create a post? -->
      <div class="row">
        <div class="col s12">
          <h5>Want to create a post?</h5>
          <a href="/users/<%= @user.id %>/posts/new"><button class="btn waves-effect waves-purple light-green">Sure</button></a>
        </div>
      </div>
    </div>

    <div class="col s12 m4 center pinky-text text-ligten-2">

      <h2>Comments</h2>

      <!-- Comment Collection -->
      <div class="collection">
        <% @user.comments.each do |comment| %>
          <a href="/users/<%= @user.id %>/posts/<%= comment.post_id %>" class="collection-item">
            <p class="light-blue-text"><%= comment.post.title %></p>
            <p class="pinky-text"><%=comment.body[0..140]%>...</p>
          </a>
        <% end %>
      </div>

    </div>

    <div class="col s12 m4 center pinky-text text-ligten-2">

      <h2>Pets</h2>

      <!-- Pet Collection -->
      <% if @user.pets.any? %>
        <% @user.pets.each do |pet| %>
          <a href="/users/<%= @user.id %>/pets/<%= pet.id %>">
            <div class="chip">
              <img src="<%= pet.images.last.name %>" alt="<%= @user.username %>'s pet">
              <%= pet.name %>
            </div>
          </a>
        <% end %>
      <% end %>

      <!-- Want to add a pet? -->
      <div class="row">
        <div class="col s12">
          <h5>Want to add your own pet?</h5>
          <a href="/users/<%= @user.id %>/pets/new"><button class="btn waves-effect waves-purple light-green">Yes</button></a>
        </div>
      </div>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.22040741420444118, 'fraction_numerical': 0.016516792071939807, 'mean_word_length': 2.077357425183512, 'pattern_counts': {'":': 0, '<': 222, '<?xml version=': 0, '>': 222, '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': '3915204', 'n_tokens_mistral': 2035, 'n_tokens_neox': 1884, 'n_words': 432}