<commit_before><% production_domain = Spree::Kelkoo::Config[:production_domain] %>
<% @products.each do |product| %>
  <%
    fields = []
    cats = []
    brand = ""
    if product.taxons.any? 
      product.taxons.each do |taxon|
        if taxon.parent && taxon.parent.name == "Marche"
          brand = taxon.name
        else
          if cats.empty?
            while taxon.parent != nil
              cats << taxon.name
              taxon = taxon.parent
            end
          end
        end
      end 
    end 
  %>
  <%= "#{brand.blank? ? "" : brand}|#{!cats.empty? ? cats.reverse.join(",") : ""}|#{product.name.capitalize}|#{product.sku.to_s}|#{product_price(product, {:format_as_currency => false})}|#{"6.00"}|#{"disponibile"}|#{production_domain + 'products/' + product.permalink}|#{production_domain.sub(/\/$/, '') + product.images.first.attachment.url(:product) unless product.images.empty?}|#{CGI.escapeHTML(product.description.gsub(%r{</?[^>]+?>}, '')).truncate(250) if product.description}" %><endrecord>
<% end %>

<commit_msg>Added trabacktick to product description<commit_after><% production_domain = Spree::Kelkoo::Config[:production_domain] %>
<% @products.each do |product| %>
  <%
    fields = []
    cats = []
    brand = ""
    if product.taxons.any? 
      product.taxons.each do |taxon|
        if taxon.parent && taxon.parent.name == "Marche"
          brand = taxon.name
        else
          if cats.empty?
            while taxon.parent != nil
              cats << taxon.name
              taxon = taxon.parent
            end
          end
        end
      end 
    end 
  %>
  <%= "#{brand.blank? ? "" : brand}|#{!cats.empty? ? cats.reverse.join(",") : ""}|#{product.name.capitalize}|#{product.sku.to_s}|#{product_price(product, {:format_as_currency => false})}|#{"6.00"}|#{"disponibile"}|#{production_domain + 'products/' + product.permalink}|#{production_domain.sub(/\/$/, '') + product.images.first.attachment.url(:product) unless product.images.empty?}|`#{CGI.escapeHTML(product.description.gsub(%r{</?[^>]+?>}, '')).truncate(250) if product.description}" %><endrecord>`
<% end %>


{'fraction_non_alphanumeric': 0.19633630812588068, 'fraction_numerical': 0.0056364490371066224, 'mean_word_length': 2.893967093235832, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '2112055', 'n_tokens_mistral': 717, 'n_tokens_neox': 696, 'n_words': 106}