<commit_before>class AuditEntry < ActiveRecord::Base
  belongs_to :item, :polymorphic => true

  validates_presence_of :event, :severity
  attr_accessible :item_type, :item_id, :event, :entry, :user, :object, :changes

  def self.with_item_keys(item_type, item_id)
    where :item_type => item_type, :item_id => item_id
  end

  def self.creates
    where :event => 'create'
  end

  def self.updates
    where :event => 'update'
  end<commit_msg>Severity was not mass assignable<commit_after>class AuditEntry < ActiveRecord::Base
  belongs_to :item, :polymorphic => true

  validates_presence_of :event, :severity
  attr_accessible :item_type, :item_id, :event, :entry, :user, :object, :changes, :severity

  def self.with_item_keys(item_type, item_id)
    where :item_type => item_type, :item_id => item_id
  end

  def self.creates
    where :event => 'create'
  end

  def self.updates
    where :event => 'update'
  end
{'fraction_non_alphanumeric': 0.11038961038961038, 'fraction_numerical': 0.0, 'mean_word_length': 4.505952380952381, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '5077424', 'n_tokens_mistral': 337, 'n_tokens_neox': 323, 'n_words': 82}