<commit_before>module Spree
  class Classification < ActiveRecord::Base
    acts_as_list

    self.table_name = 'spree_products_taxons'
    belongs_to :product, class_name: "Spree::Product", inverse_of: :classifications
    belongs_to :taxon, class_name: "Spree::Taxon", inverse_of: :classifications

    # For #3494
    validates_uniqueness_of :taxon_id, :scope => :product_id, :message => :already_linked
  end
end<commit_msg>Fixed sample crashing due to acts_as_list in Classification<commit_after>module Spree
  class Classification < ActiveRecord::Base
    self.table_name = 'spree_products_taxons'
    acts_as_list
    belongs_to :product, class_name: "Spree::Product", inverse_of: :classifications
    belongs_to :taxon, class_name: "Spree::Taxon", inverse_of: :classifications

    # For #3494
    validates_uniqueness_of :taxon_id, :scope => :product_id, :message => :already_linked
  end
end
{'fraction_non_alphanumeric': 0.09544950055493896, 'fraction_numerical': 0.008879023307436182, 'mean_word_length': 5.583941605839416, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7472761', 'n_tokens_mistral': 303, 'n_tokens_neox': 293, 'n_words': 66}