<commit_before>module ProductsPlugin
  class SearchController < ::SearchController

    helper ProductsHelper

    def products
      @scope = @environment.products.enabled.is_public.includes(
        :product_category, :unit, :region, :image, {inputs: [:product_category]},
        {product_qualifiers: [:qualifier, :certifier]},
        {price_details: [:production_cost]},
        {profile: [:domains]},
      )<commit_msg>search: Move region includes to profile to workaround rails bug<commit_after>module ProductsPlugin
  class SearchController < ::SearchController

    helper ProductsHelper

    def products
      @scope = @environment.products.enabled.is_public.includes(
        :product_category, :unit, :image, {inputs: [:product_category]},
        {product_qualifiers: [:qualifier, :certifier]},
        {price_details: [:production_cost]},
        {profile: [:region, :domains]},
      )
{'fraction_non_alphanumeric': 0.11862527716186252, 'fraction_numerical': 0.0, 'mean_word_length': 3.9615384615384617, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3752537', 'n_tokens_mistral': 255, 'n_tokens_neox': 245, 'n_words': 57}