<commit_before>module Spree
  class AppConfiguration < Spree::Configuration

    preference :site_name, :string, :default => 'Spree Demo Site'
    preference :default_seo_title, :string, :default => ''
    preference :default_meta_description, :string, :default => 'Spree demo site'
    preference :default_meta_keywords, :string, :default => 'spree, demo'
    preference :site_url, :string, :default => 'demo.spreecommerce.com'
    preference :default_locale, :string, :default => 'en'
    preference :allow_locale_switching, :boolean, :default => true
    preference :default_country_id, :integer, :default => 214
    preference :allow_backorders, :boolean, :default => true
    preference :allow_backorder_shipping, :boolean, :default => false # should only be true if you don't need to track inventory
    preference :track_inventory_levels, :boolean, :default => true # will not track on_hand values for variants /products
    preference :create_inventory_units, :boolean, :default => true # should only be false when track_inventory_levels is false, also disables RMA's
    preference :show_descendents, :boolean, :default => true
    preference :show_zero_stock_products, :boolean, :default => true
    preference :orders_per_page, :integer, :default => 15
    preference :show_only_complete_orders_by_default, :boolean, :default => true
    preference :admin_products_per_page, :integer, :default => 10
    preference :admin_pgroup_preview_size, :integer, :default => 10
    preference :products_per_page, :integer, :default => 10
    preference :logo, :string, :default => 'admin/bg/spree_50.png'
    preference :stylesheets, :string, :default => 'reset, screen' # Comma separate multiple stylesheets, e.g. 'screen,mystyle'
    preference :admin_interface_logo, :string, :default => 'admin/bg/spree_50.png'
    preference :allow_ssl_in_production, :boolean, :default => true
    preference :allow_ssl_in_staging, :boolean, :default => true
    preference :allow_ssl_in_development_and_test, :boolean, :default => false
    preference :allow_guest_checkout, :boolean, :default => true
    preference :alternative_billing_phone, :boolean, :default => false # Request extra phone for bill addr
    preference :alternative_shipping_phone, :boolean, :default => false # Request extra phone for ship addr
    preference :shipping_instructions, :boolean, :default => false # Request instructions/info for shipping
    preference :show_price_inc_vat, :boolean, :default => false
    preference :shipment_inc_vat, :boolean, :default => false
    preference :auto_capture, :boolean, :default => false # automatically capture the creditcard (as opposed to just authorize and capture later)
    preference :address_requires_state, :boolean, :default => true # should state/state_name be required
    preference :checkout_zone, :string, :default => nil # replace with the name of a zone if you would like to limit the countries
    preference :always_put_site_name_in_title, :boolean, :default => true
    preference :cache_static_content, :boolean, :default => true
    preference :use_content_controller, :boolean, :default => true
    preference :allow_checkout_on_gateway_error, :boolean, :default => false
    preference :select_taxons_from_tree, :boolean, :default => false # provide opportunity to select taxons from tree instead of search with autocomplete
    preference :max_level_in_taxons_menu, :integer, :default => 1 # maximum nesting level in taxons menu
    preference :check_for_spree_alerts, :boolean, :default => true
    preference :dismissed_spree_alerts, :string, :default => ''
    preference :last_check_for_spree_alerts, :string, :default => nil

    validates :name, :presence => true, :uniqueness => true

  end
end
<commit_msg>Set default products_per_page to 12. Fixes #765.<commit_after>module Spree
  class AppConfiguration < Spree::Configuration

    preference :site_name, :string, :default => 'Spree Demo Site'
    preference :default_seo_title, :string, :default => ''
    preference :default_meta_description, :string, :default => 'Spree demo site'
    preference :default_meta_keywords, :string, :default => 'spree, demo'
    preference :site_url, :string, :default => 'demo.spreecommerce.com'
    preference :default_locale, :string, :default => 'en'
    preference :allow_locale_switching, :boolean, :default => true
    preference :default_country_id, :integer, :default => 214
    preference :allow_backorders, :boolean, :default => true
    preference :allow_backorder_shipping, :boolean, :default => false # should only be true if you don't need to track inventory
    preference :track_inventory_levels, :boolean, :default => true # will not track on_hand values for variants /products
    preference :create_inventory_units, :boolean, :default => true # should only be false when track_inventory_levels is false, also disables RMA's
    preference :show_descendents, :boolean, :default => true
    preference :show_zero_stock_products, :boolean, :default => true
    preference :orders_per_page, :integer, :default => 15
    preference :show_only_complete_orders_by_default, :boolean, :default => true
    preference :admin_products_per_page, :integer, :default => 10
    preference :admin_pgroup_preview_size, :integer, :default => 10
    preference :products_per_page, :integer, :default => 12
    preference :logo, :string, :default => 'admin/bg/spree_50.png'
    preference :stylesheets, :string, :default => 'reset, screen' # Comma separate multiple stylesheets, e.g. 'screen,mystyle'
    preference :admin_interface_logo, :string, :default => 'admin/bg/spree_50.png'
    preference :allow_ssl_in_production, :boolean, :default => true
    preference :allow_ssl_in_staging, :boolean, :default => true
    preference :allow_ssl_in_development_and_test, :boolean, :default => false
    preference :allow_guest_checkout, :boolean, :default => true
    preference :alternative_billing_phone, :boolean, :default => false # Request extra phone for bill addr
    preference :alternative_shipping_phone, :boolean, :default => false # Request extra phone for ship addr
    preference :shipping_instructions, :boolean, :default => false # Request instructions/info for shipping
    preference :show_price_inc_vat, :boolean, :default => false
    preference :shipment_inc_vat, :boolean, :default => false
    preference :auto_capture, :boolean, :default => false # automatically capture the creditcard (as opposed to just authorize and capture later)
    preference :address_requires_state, :boolean, :default => true # should state/state_name be required
    preference :checkout_zone, :string, :default => nil # replace with the name of a zone if you would like to limit the countries
    preference :always_put_site_name_in_title, :boolean, :default => true
    preference :cache_static_content, :boolean, :default => true
    preference :use_content_controller, :boolean, :default => true
    preference :allow_checkout_on_gateway_error, :boolean, :default => false
    preference :select_taxons_from_tree, :boolean, :default => false # provide opportunity to select taxons from tree instead of search with autocomplete
    preference :max_level_in_taxons_menu, :integer, :default => 1 # maximum nesting level in taxons menu
    preference :check_for_spree_alerts, :boolean, :default => true
    preference :dismissed_spree_alerts, :string, :default => ''
    preference :last_check_for_spree_alerts, :string, :default => nil

    validates :name, :presence => true, :uniqueness => true

  end
end

{'fraction_non_alphanumeric': 0.09911105214276238, 'fraction_numerical': 0.004909115032506302, 'mean_word_length': 5.350463352990733, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 93, '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': '515849', 'n_tokens_mistral': 2152, 'n_tokens_neox': 2165, 'n_words': 672}