<commit_before><div class="panel panel-default">
  <div class="panel-body">
    <div class="row">
      <div class="col-md-4">
        <%= image_tag @post.image.url(:medium) %>
        <div class="star-rating" data-score= <%= @avg_review %> ></div>
        <em><%= "#{@reviews.length} reviews" %></em>
        <div class="table-responsive">
          <table class="table">
            <tbody>
              <tr>
                <td><strong>Title:</strong></td>
                <td><%= @post.title %></td>
              </tr>
              <tr>
                <td><strong>Posted By:</strong></td>
                <td><%= @post.user.email %></td>
              </tr>
              <tr>
                <td><strong>Description:</strong></td>
                <td><%= @post.description %></td>
              </tr>
              <tr>
                <td><strong>price:</strong></td>
                <td><%= @post.price %></td>
              </tr>
              <tr>
                <td><strong>Number of interest requests:</strong></td>
                <td><%= @post.number_of_buyers %></td>
              </tr>
            </tbody>
          </table>
          <% if @post.status == 'completed' %>
	  	<%= link_to "Write a Review", new_post_review_path(@post) %><br>
          <% end %>
          <% if @post.status == 'open' %>
	  	<%= link_to "Express interest", post_connect_path(@post) %>
          <% end %>
        </div>
      </div>
      <div class="col-md-7 col-md-offset-1">
        <h1 class="review_title">Reviews</h1>
        <% if @post.status == 'completed' %>
          <% if @reviews.blank? %>
          <h3>No reviews just yet, would you like to add the first!</h3>
          <%= link_to "Write Review", new_post_review_path(@post), class: "btn btn-danger" %>
        <% else %>
            <table class="table table-striped">
                <tr>
                  <th>Title</th>
                  <th>Reviewer </th>
                  <th>Reviewee </th>
              	  <th>Edit</th>
                  <th>Delete</th>
	        </tr>
          <% @reviews.each do |review| %>
            <div class="reviews">
              <div class="star-rating" data-score= <%= review.rating %> ></div>
		        <tr>
			<td><%= review.title %></td>
			<td><%= review.user.email %></td>
			<td> <%= review.reviewee_id %></td>
		        <td><%= link_to 'Edit', edit_post_review_path(@post,review), class: 'btn btn-primary' %></td>
                        <td><%= link_to 'Delete', post_review_path(@post,review), class: 'btn btn-danger', method: :delete, data: { confirm: "Are you sure?" } %></td>
	</tr>
            </div>
          <% end %>
        <% end %>
      <% end %>
      </div>
    </div>
  </div>
</div>
<% if @post.user_id == current_user.id %>
<%= link_to 'Edit', edit_post_path(@post) %> |
<% end %>
<%= link_to 'Back', posts_path %>

<script>
    $('.star-rating').raty({
      path: '/assets/',
      readOnly: true,
      score: function() {
            return $(this).attr('data-score');
    }
  });
</script><commit_msg>Fixed styling<commit_after><div class="panel panel-default">
    <div class="panel-body">
        <div class="row">
            <div class="col-md-4">
                <%= image_tag @post.image.url(:medium) %>
                <div class="star-rating" data-score= <%= @avg_review %> ></div>
                <em><%= "#{@reviews.length} reviews" %></em>
                <div class="table-responsive">
                    <table class="table">
                        <tbody>
                            <tr>
                                <td><strong>Title:</strong></td>
                                <td><%= @post.title %></td>
                            </tr>
                            <tr>
                                <td><strong>Posted By:</strong></td>
                                <td><%= @post.user.email %></td>
                            </tr>
                            <tr>
                                <td><strong>Description:</strong></td>
                                <td><%= @post.description %></td>
                            </tr>
                            <tr>
                                <td><strong>Expiration Date:</strong></td>
                                <td><%= @post.when %></td>
                            </tr>
                            <tr>
                                <td><strong>Price:</strong></td>
                                <td><%= @post.price %></td>
                            </tr>
                            <tr>
                                <td><strong>Number of interest requests:</strong></td>
                                <td><%= @post.number_of_buyers %></td>
                            </tr>
                        </tbody>
                    </table>
                    <% if @post.status == 'completed' %>
                        <%= link_to "Write a Review", new_post_review_path(@post) %><br>
                    <% end %>
                    <% if @post.status == 'open' %>
                        <%= link_to "Express interest", post_connect_path(@post) %>
                    <% end %>
                </div>
            </div>
            <div class="col-md-7 col-md-offset-1">
                <h1 class="review_title">Reviews</h1>
                <% if @post.status == 'completed' %>
                    <% if @reviews.blank? %>
                    <h3>No reviews just yet, would you like to add the first!</h3>
                    <%= link_to "Write Review", new_post_review_path(@post), class: "btn btn-danger" %>
                    <% else %>
                        <table class="table table-striped">
                            <tr>
                                <th>Title</th>
                                <th>Reviewer </th>
                                <th>Reviewee </th>
                                <th>Edit</th>
                                <th>Delete</th>
                            </tr>
                            <% @reviews.each do |review| %>
                                <div class="reviews">
                                    <div class="star-rating" data-score= <%= review.rating %> ></div>
                                    <tr>
                                        <td><%= review.title %></td>
                                        <td><%= review.user.email %></td>
                                        <td> <%= review.reviewee_id %></td>
                                        <td><%= link_to 'Edit', edit_post_review_path(@post,review), class: 'btn btn-primary' %></td>
                                        <td><%= link_to 'Delete', post_review_path(@post,review), class: 'btn btn-danger', method: :delete, data: { confirm: "Are you sure?" } %></td>
                                    </tr>
                                </div>
                            <% end %>
                        </table>
                    <% end %>
                <% end %>
            </div>
        </div>
    </div>
</div>
<% if @post.user_id == current_user.id %>
    <%= link_to 'Edit', edit_post_path(@post) %> |
<% end %>
<%= link_to 'Back', posts_path %>

    <script>
    $('.star-rating').raty({
        path: '/assets/',
        readOnly: true,
        score: function() {
            return $(this).attr('data-score');
        }
    });
    </script>
{'fraction_non_alphanumeric': 0.17088091353996737, 'fraction_numerical': 0.0019032082653616096, 'mean_word_length': 1.1007995431182183, 'pattern_counts': {'":': 0, '<': 269, '<?xml version=': 0, '>': 269, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3194792', 'n_tokens_mistral': 2197, 'n_tokens_neox': 1991, 'n_words': 398}