<commit_before><div style="padding-left: 2%">
<%= link_to @item.community.name, root_path(@item.community) %> &#9830; &#9830; <%#= link_to @category.name, root_path(@item.community) %>
</div><br>
  
<div align = 'right' style= 'margin-right: 2%;'>
<% if (current_user.id == @item.seller_id)%>
<%= link_to 'Edit Item', edit_user_item_path(current_user, @item), class: 'btn btn-info'%>
<%end%>
</div>
<div class="col-sm-8">
<h1 style="text-align: left; font-weight: bold; font-size: 45px;"> <%= @item.name %> </h1>
  <div class="panel panel-default">
    <div class="panel-body">
    <%= image_tag @item.product.url(:medium) %>
    </div>
  </div>

</div>

<br><br><br><br>

<div class="col-sm-4">
  <div class="panel panel-default" style="font-size: 20px;">
    <div class="panel-body">
      <p>
        <% unless @item.seller == current_user %>
          <b>Sold By: </b><%= link_to @item.seller.name, user_path(@item.seller) %>
        <% end %>
        <br>
          <p>
            <b>List Price: </b>$<%=  format("%.2f", @item.price) %>
          </p>
          <p>
            <b>Condition: </b><%= @item.condition %>
          </p>
          <p>
            <b>Description: </b><%= @item.description %>
            </p>
      </p>
      <br>
      
      <% unless @item.seller == current_user %>
        <%= link_to "Make Offer", new_offer_path({user: @item.seller_id, item: @item.id}), {class: 'btn btn-danger'}  %>
        <br><br>
        <%= link_to "Contact Seller", new_message_path({user: @item.seller_id, item: @item.id}), {class: 'btn btn-success'}  %>
      <% end %>
    </div>
  </div>
</div>

<%= render partial: 'otheritems'  %><commit_msg>if user, will not see make offer button and message button<commit_after><div style="padding-left: 2%">
<%= link_to @item.community.name, root_path(@item.community) %> &#9830; &#9830; <%#= link_to @category.name, root_path(@item.community) %>
</div><br>
  
<div align = 'right' style= 'margin-right: 2%;'>
<% if (current_user.id == @item.seller_id)%>
<%= link_to 'Edit Item', edit_user_item_path(current_user, @item), class: 'btn btn-info'%>
<%end%>
</div>
<div class="col-sm-8">
<h1 style="text-align: left; font-weight: bold; font-size: 45px;"> <%= @item.name %> </h1>
  <div class="panel panel-default">
    <div class="panel-body">
    <%= image_tag @item.product.url(:medium) %>
    </div>
  </div>

</div>

<br><br><br><br>

<div class="col-sm-4">
  <div class="panel panel-default" style="font-size: 20px;">
    <div class="panel-body">
      <p>
        <% unless @item.seller == current_user %>
          <b>Sold By: </b><%= link_to @item.seller.name, user_path(@item.seller) %>
        <% end %>
        <br>
          <p>
            <b>List Price: </b>$<%=  format("%.2f", @item.price) %>
          </p>
          <p>
            <b>Condition: </b><%= @item.condition %>
          </p>
          <p>
            <b>Description: </b><%= @item.description %>
            </p>
      </p>
      <br>
      
      <% if @item.seller != current_user %>
        <%= link_to "Make Offer", new_offer_path({user: @item.seller_id, item: @item.id}), {class: 'btn btn-danger'}  %>
        <br><br>
        <%= link_to "Contact Seller", new_message_path({user: @item.seller_id, item: @item.id}), {class: 'btn btn-success'}  %>
      <% end %>
    </div>
  </div>
</div>

<%= render partial: 'otheritems'  %>
{'fraction_non_alphanumeric': 0.22482922482922482, 'fraction_numerical': 0.011286011286011286, 'mean_word_length': 2.746384872080089, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 125, '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': '1335938', 'n_tokens_mistral': 1351, 'n_tokens_neox': 1252, 'n_words': 258}