<commit_before>class Comment < ActiveRecord::Base
  default_scope order("created_at ASC")
  
  attr_accessible :contents
  
  after_create :notify_comment!
  
  belongs_to :user
  belongs_to :ticket
  
  validates :user,
    :presence => true
  
  validates :contents,
    :presence => true
  
  def notify_comment!
    TicketMailer.comment_notification(self).deliver
  end
end<commit_msg>Comment notification fix<commit_after>class Comment < ActiveRecord::Base
  default_scope order("created_at ASC")
  
  attr_accessible :contents
  
  after_create :notify_comment!
  
  belongs_to :user
  belongs_to :ticket
  
  validates :user,
    :presence => true
  
  validates :contents,
    :presence => true
  
  def notify_comment!
    TicketMailer.comment_notification(self.ticket).deliver
  end
end
{'fraction_non_alphanumeric': 0.07663316582914573, 'fraction_numerical': 0.0, 'mean_word_length': 3.919753086419753, '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': '6234462', 'n_tokens_mistral': 262, 'n_tokens_neox': 258, 'n_words': 55}