<commit_before>- @body_id = 'product-details'
- content_for :sidebar do
  %p &nbsp;
-   
= render :partial => 'shared/psg_filter', :locals => {:current_taxon => @product.main_taxon}
#detail-box
  #image-gallery
    .ct
      - if @product.images.size > 0
        %ul.product-image
          - @product.images.each do |i|  
            %li= image_tag(i.attachment.url(:product), {:height => "240px", :width => "240px"})
  #short-description
    %h2= @product.name
    - hook :product_properties do
      = render 'properties'
    .price-quantity  
      - if @product.has_stock? || Spree::Config[:allow_backorders]
        %span.quantity
          Quantity:
          = text_field_tag (@product.has_variants? ? :quantity : "variants[#{@product.master.id}]"), "4", :class => "title", :size => 3
        - if product_price(@product)
          - hook :product_price do
            %p.prices
              = t("price")
              %span.price.selling= product_price(@product) + " each"
              %span.buy= link_to image_tag('/images/icons/money_dollar.png') + t("buy"), '#', :class => 'buynow', :onclick => "$('form#updatecart').submit(); return false;"
      - else
        = content_tag('strong', t('out_of_stock'))        
  #long-description
    .ct
      - hook :product_description do
        = product_description(@product) rescue t("product_has_no_description")
  #variants
  #controls
  
- hook :cart_form do
  #cart-form
    = render 'cart_form'
<commit_msg>added :options<commit_after>- @body_id = 'product-details'
- content_for :sidebar do
  %p &nbsp;
-   
= render :partial => 'shared/psg_filter', :locals => {:current_taxon => @product.main_taxon}
#detail-box
  #image-gallery
    .ct
      - if @product.images.size > 0
        %ul.product-image
          - @product.images.each do |i|  
            %li= image_tag(i.attachment.url(:product), {:height => "240px", :width => "240px"})
  #short-description
    %h2= @product.name
    - hook :product_properties do
      = render 'properties'
    .price-quantity  
      - if @product.has_stock? || Spree::Config[:allow_backorders]
        %span.quantity
          Quantity:
          = text_field_tag (@product.has_variants? ? :quantity : "variants[#{@product.master.id}]"), "4", {:class => "title", :size => 3}
        - if product_price(@product)
          - hook :product_price do
            %p.prices
              = t("price")
              %span.price.selling= product_price(@product) + " each"
              %span.buy= link_to image_tag('/images/icons/money_dollar.png') + t("buy"), '#', :class => 'buynow', :onclick => "$('form#updatecart').submit(); return false;"
      - else
        = content_tag('strong', t('out_of_stock'))        
  #long-description
    .ct
      - hook :product_description do
        = product_description(@product) rescue t("product_has_no_description")
  #variants
  #controls
  
- hook :cart_form do
  #cart-form
    = render 'cart_form'

{'fraction_non_alphanumeric': 0.15936119605844376, 'fraction_numerical': 0.0067957866123003734, 'mean_word_length': 2.607843137254902, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '258669', 'n_tokens_mistral': 979, 'n_tokens_neox': 941, 'n_words': 185}