<commit_before>Spree::HomeController.class_eval do

  def index
    slider = Spree::Taxon.where(:name => 'Slider').first
    @slider_products = slider.products.active.uniq if slider

    featured = Spree::Taxon.where(:name => 'Featured').first
    @featured_products = featured.products.active.uniq if featured

    latest = Spree::Taxon.where(:name => 'Latest').first
    @latest_products = latest.products.active.uniq if latest
  end

end<commit_msg>Fix sliders when using postgres<commit_after>Spree::HomeController.class_eval do

  def index
    slider = Spree::Taxon.where(:name => 'Slider').first
    @slider_products = slider.products.active.to_a.uniq if slider

    featured = Spree::Taxon.where(:name => 'Featured').first
    @featured_products = featured.products.active.to_a.uniq if featured

    latest = Spree::Taxon.where(:name => 'Latest').first
    @latest_products = latest.products.active.to_a.uniq if latest
  end

end
{'fraction_non_alphanumeric': 0.1248665955176094, 'fraction_numerical': 0.0, 'mean_word_length': 4.390804597701149, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5038384', 'n_tokens_mistral': 303, 'n_tokens_neox': 294, 'n_words': 57}