<commit_before>class Version < ActiveRecord::Base
  include Comparable

  belongs_to :versioned, :polymorphic => true

  serialize :changes, Hash

  alias_attribute :version, :number

  def <=>(other)
    number <=> other.number
  end
end<commit_msg>Don't allow Dirty#changes to interfere with Version#changes<commit_after>class Version < ActiveRecord::Base
  include Comparable

  belongs_to :versioned, :polymorphic => true

  undef_method :changes
  serialize :changes, Hash

  alias_attribute :version, :number

  def <=>(other)
    number <=> other.number
  end
end
{'fraction_non_alphanumeric': 0.09473684210526316, 'fraction_numerical': 0.0, 'mean_word_length': 4.767676767676767, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6386243', 'n_tokens_mistral': 180, 'n_tokens_neox': 165, 'n_words': 49}