<commit_before>module Spree
  class VariantContainerTaxon < ActiveRecord::Base
    belongs_to :variant
    belongs_to :container_taxon 

    validates :quantity, :numericality => { :greater_than_or_equal_to => 0 }, :presence => true

    scope :active, where(:deactivated_at => nil)
    scope :deactivated, where('deactivated_at IS NOT NULL')

    def activate
      self.deactivated_at = nil<commit_msg>Add attr_accessible to VariantContainerTaxon<commit_after>module Spree
  class VariantContainerTaxon < ActiveRecord::Base
    belongs_to :variant
    belongs_to :container_taxon 

    validates :quantity, :numericality => { :greater_than_or_equal_to => 0 }, :presence => true

    attr_accessible :quantity, :container_taxon_id, :variant_id 

    scope :active, where(:deactivated_at => nil)
    scope :deactivated, where('deactivated_at IS NOT NULL')

    def activate
      self.deactivated_at = nil
{'fraction_non_alphanumeric': 0.08729281767955802, 'fraction_numerical': 0.0022099447513812156, 'mean_word_length': 4.592592592592593, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3302460', 'n_tokens_mistral': 293, 'n_tokens_neox': 269, 'n_words': 66}