<commit_before><% extra_content = @plugins.dispatch(:asset_product_extras, product, product.enterprise).collect { |content| instance_eval(&content) } %>
<% extra_properties = @plugins.dispatch(:asset_product_properties, product)%>

<li class="search-product-item">

  <div class="search-product-item-first-column">
    <%= render :partial => 'search/image', :object => product %>

    <% if product.available %>
      <% if product.price && product.price > 0 %>
        <% has_discount = product.discount && product.discount > 0 %>
        <% if product.price %>
          <span class="search-product-price-textid"><%=_("from") if has_discount %></span><%= price_span(product.price, :class => "search-product-price " + (has_discount ? 'with-discount' : '')) %>
          <% if has_discount %>
            <span class="search-product-price-textid"><%=_("by")%></span><%= price_span(product.price_with_discount, :class => "search-product-price") %>
          <% end %>
          <% if product.unit %>
            <span class="search-product-unit">&nbsp;<%= _('/') %>&nbsp;<%= product.unit.name %></span>
          <% end %>
        <% end %>
        <div class="search-product-inputs-info">
          <% if p = product.percentage_from_solidarity_economy %>
            <div class="search-product-percentage-from-solidarity-economy search-product-ecosol-percentage-icon-<%= p[0].to_s %>"
              title="<%=_('Percentage of inputs from solidarity economy')%>">
              <%= p[1] %>
            </div>
          <% end %>

          <% if product.price_described? %>
            <% title = (product.inputs + product.price_details).map{ |i|
              '<div class="search-product-input-dots-to-price">' +
                '<div class="search-product-input-name">' + i.name + '</div>' +
                price_span(i.price, :class => 'search-product-input-price') +
              '</div>' }.join('') %>
            <%= link_to_function _("Open Price"), '', :title => title, :class => "search-product-price-details" %>
          <% end %><commit_msg>Only inputs relevant to price are listed on product\'s search<commit_after><% extra_content = @plugins.dispatch(:asset_product_extras, product, product.enterprise).collect { |content| instance_eval(&content) } %>
<% extra_properties = @plugins.dispatch(:asset_product_properties, product)%>

<li class="search-product-item">

  <div class="search-product-item-first-column">
    <%= render :partial => 'search/image', :object => product %>

    <% if product.available %>
      <% if product.price && product.price > 0 %>
        <% has_discount = product.discount && product.discount > 0 %>
        <% if product.price %>
          <span class="search-product-price-textid"><%=_("from") if has_discount %></span><%= price_span(product.price, :class => "search-product-price " + (has_discount ? 'with-discount' : '')) %>
          <% if has_discount %>
            <span class="search-product-price-textid"><%=_("by")%></span><%= price_span(product.price_with_discount, :class => "search-product-price") %>
          <% end %>
          <% if product.unit %>
            <span class="search-product-unit">&nbsp;<%= _('/') %>&nbsp;<%= product.unit.name %></span>
          <% end %>
        <% end %>
        <div class="search-product-inputs-info">
          <% if p = product.percentage_from_solidarity_economy %>
            <div class="search-product-percentage-from-solidarity-economy search-product-ecosol-percentage-icon-<%= p[0].to_s %>"
              title="<%=_('Percentage of inputs from solidarity economy')%>">
              <%= p[1] %>
            </div>
          <% end %>

          <% if product.price_described? %>
            <% title = (product.inputs.relevant_to_price + product.price_details).map{ |i|
              '<div class="search-product-input-dots-to-price">' +
                '<div class="search-product-input-name">' + i.name + '</div>' +
                price_span(i.price, :class => 'search-product-input-price') +
              '</div>' }.join('') %>
            <%= link_to_function _("Open Price"), '', :title => title, :class => "search-product-price-details" %>
          <% end %>
{'fraction_non_alphanumeric': 0.19094393866794443, 'fraction_numerical': 0.0019166267369429804, 'mean_word_length': 2.754496402877698, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 105, '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': '7533929', 'n_tokens_mistral': 1332, 'n_tokens_neox': 1229, 'n_words': 211}