<commit_before><h1 id="product-title"><%= @product.name %> - <%= _("Detailed view") %></h1>

<div id="product-info">
  <div id="product-image">
    <div id="product-image-border">
      <%= image_tag("http://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Soccer_ball.svg/600px-Soccer_ball.svg.png", :size => "100x100", :border => 0) %>
    </div>
  </div>

  <div id="product-details">
    <dl id="product-publisher">
      <dt><%= _("Publisher") %>:</dt>
      <dd><%= @product.publisher.username if @product.publisher %></dd>
    </dl>

    <dl id="product-category">
      <dt><%= _("Category") %>:</dt>
      <dd><%= @product.category.name %></dd>
    </dl>

    <dl id="product-platform">
      <dt><%= _("Platform") %>:</dt>
      <dd><%= @product.platform.name %></dd>
    </dl>

    <dl id="product-published">
      <dt><%= _("Published") %>:</dt>
      <dd><%= l @product.updated_at.to_date, :format => :long %></dd>
    </dl>

    <dl id="product-popularity">
      <dt><%= _("Number of views") %>:</dt>
      <dd><%= @product.popularity %></dd>
    </dl>

    <dl id="product-rating">
      <dt><%= _("Rating") %>:</dt>
      <dd>
        <%= render :partial => 'ratings/rating', :object => @product.avg_rating %>
        
        <% if logged_in? %>
          <div id="product-rating-form">
            <%= _("Your rating:") %>
            <%= render 'ratings/form' %>
          </div>
        <% end %>
      </dd>
    </dl>

    <dl id="product-url">
      <dt><%= _("URL") %>:</dt>
      <dd><%= link_to @product.url, @product.url %></dd>
    </dl>

    <dl id="product-description">
      <dt><%= _("Description") %>:</dt>
      <dd><%= @product.description %></dd>
    </dl>
		<!--<#% if logged_in? && (current_user==product.publisher) %>
		<dl id="product-admin">
      <dt><#%=_("Admin") %>:</dt>
      <dd><#%= link_to _("Edit"), edit_product_path(product) %>
        <#%= button_to _("Destroy"), product, :confirm => _('Are you sure?'), :method => :delete %></dd>
    </dl>
		<#%end%>-->
  </div>
</div>

<p>
  <b><%= _("Comments") %>:</b>
  <%= render :partial => "comment/list", :collection => @product.comments, :as => :comment %>
 
  <p>
    <% if logged_in? %>
      <%= render :partial => "comment/form", :object => @product %>
    <% else %>
      <b><%= _("Please login to add comments") %></b>
    <% end %>
  <p>

</p>

<%if @product.publisher==current_user%>
<%= link_to 'Edit', edit_product_path(@product) %> |
<%end%>
<%= link_to 'Back', products_path %>
<commit_msg>changed product url mapping to open external application locations<commit_after><h1 id="product-title"><%= @product.name %> - <%= _("Detailed view") %></h1>

<div id="product-info">
  <div id="product-image">
    <div id="product-image-border">
      <%= image_tag("http://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Soccer_ball.svg/600px-Soccer_ball.svg.png", :size => "100x100", :border => 0) %>
    </div>
  </div>

  <div id="product-details">
    <dl id="product-publisher">
      <dt><%= _("Publisher") %>:</dt>
      <dd><%= @product.publisher.username if @product.publisher %></dd>
    </dl>

    <dl id="product-category">
      <dt><%= _("Category") %>:</dt>
      <dd><%= @product.category.name %></dd>
    </dl>

    <dl id="product-platform">
      <dt><%= _("Platform") %>:</dt>
      <dd><%= @product.platform.name %></dd>
    </dl>

    <dl id="product-published">
      <dt><%= _("Published") %>:</dt>
      <dd><%= l @product.updated_at.to_date, :format => :long %></dd>
    </dl>

    <dl id="product-popularity">
      <dt><%= _("Number of views") %>:</dt>
      <dd><%= @product.popularity %></dd>
    </dl>

    <dl id="product-rating">
      <dt><%= _("Rating") %>:</dt>
      <dd>
        <%= render :partial => 'ratings/rating', :object => @product.avg_rating %>
        
        <% if logged_in? %>
          <div id="product-rating-form">
            <%= _("Your rating:") %>
            <%= render 'ratings/form' %>
          </div>
        <% end %>
      </dd>
    </dl>

    <dl id="product-url">
      <dt><%= _("URL") %>:</dt>
      <dd><%= link_to @product.url, "http://"+@product.url, :popup => true %></dd>
    </dl>

    <dl id="product-description">
      <dt><%= _("Description") %>:</dt>
      <dd><%= @product.description %></dd>
    </dl>
		<!--<#% if logged_in? && (current_user==product.publisher) %>
		<dl id="product-admin">
      <dt><#%=_("Admin") %>:</dt>
      <dd><#%= link_to _("Edit"), edit_product_path(product) %>
        <#%= button_to _("Destroy"), product, :confirm => _('Are you sure?'), :method => :delete %></dd>
    </dl>
		<#%end%>-->
  </div>
</div>

<p>
  <b><%= _("Comments") %>:</b>
  <%= render :partial => "comment/list", :collection => @product.comments, :as => :comment %>
 
  <p>
    <% if logged_in? %>
      <%= render :partial => "comment/form", :object => @product %>
    <% else %>
      <b><%= _("Please login to add comments") %></b>
    <% end %>
  <p>

</p>

<%if @product.publisher==current_user%>
<%= link_to 'Edit', edit_product_path(@product) %> |
<%end%>
<%= link_to 'Back', products_path %>

{'fraction_non_alphanumeric': 0.26292002358027117, 'fraction_numerical': 0.004716054234623698, 'mean_word_length': 2.798507462686567, 'pattern_counts': {'":': 0, '<': 231, '<?xml version=': 0, '>': 256, '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': '796493', 'n_tokens_mistral': 2008, 'n_tokens_neox': 1821, 'n_words': 370}