<commit_before>Spree::BaseHelper.module_eval do
  
  def breadcrumbs(taxon, separator="")
    return "" if current_page?("/") || taxon.nil?
    
    crumbs = [[Spree.t(:home), spree.root_path]]
    
    if taxon
      crumbs << [Spree.t(:products), products_path]
      crumbs += taxon.ancestors.collect { |a| [a.name, spree.nested_taxons_path(a.permalink)] } unless taxon.ancestors.empty?
      crumbs << [taxon.name, spree.nested_taxons_path(taxon.permalink)]<commit_msg>modify flash_messages helper to use bootstrap alert classes<commit_after>Spree::BaseHelper.module_eval do
  
  def flash_messages(opts = {})
    ignore_types = ["order_completed"].concat(Array(opts[:ignore_types]).map(&:to_s) || [])

    flash.each do |msg_type, text|
      unless ignore_types.include?(msg_type)
        if msg_type == "error"
          concat(content_tag :div, text, class: "alert alert-danger")
        elsif msg_type == "notice"
          concat(content_tag :div, text, class: "alert alert-info")
        end
        
      end
    end
    nil
  end
  
  def breadcrumbs(taxon, separator="")
    return "" if current_page?("/") || taxon.nil?
    
    crumbs = [[Spree.t(:home), spree.root_path]]
    
    if taxon
      crumbs << [Spree.t(:products), products_path]
      crumbs += taxon.ancestors.collect { |a| [a.name, spree.nested_taxons_path(a.permalink)] } unless taxon.ancestors.empty?
      crumbs << [taxon.name, spree.nested_taxons_path(taxon.permalink)]
{'fraction_non_alphanumeric': 0.14207275223061083, 'fraction_numerical': 0.0, 'mean_word_length': 3.3783783783783785, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, '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': '7132544', 'n_tokens_mistral': 512, 'n_tokens_neox': 515, 'n_words': 93}