<commit_before>module Spree::AppConfigurationDecorator
  def self.prepended(base)
    base.preference :use_cart, :boolean, default: true #true if you want to have a cart or false will directly to the checkout process with one product only
  end

  # searcher_class allows spree extension writers to provide their own Search class
  def searcher_class
    @searcher_class ||= Spree::Core::Search::SpreeTravelBase
  end

end<commit_msg>Why: We need to use a new Base Search only for SpreeTravel not to affect the base Spree class Change: Added a new function for the SpreeTravel searcher<commit_after>require 'spree/core/search/spree_travel_base'

module Spree::AppConfigurationDecorator
  def self.prepended(base)
    base.preference :use_cart, :boolean, default: true #true if you want to have a cart or false will directly to the checkout process with one product only
  end

  # searcher_class allows spree extension writers to provide their own Search class
  def searcher_travel_class
    @searcher_travel_class ||= Spree::Core::Search::SpreeTravelBase
  end

  attr_writer :searcher_travel_class

end

Spree::AppConfiguration.prepend Spree::AppConfigurationDecorator
{'fraction_non_alphanumeric': 0.05550811272416738, 'fraction_numerical': 0.0, 'mean_word_length': 5.404371584699454, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4433145', 'n_tokens_mistral': 342, 'n_tokens_neox': 333, 'n_words': 126}