<commit_before>class ActionTrackerNotification < ActiveRecord::Base

  belongs_to :profile
  belongs_to :action_tracker, :class_name => 'ActionTracker::Record', :foreign_key => 'action_tracker_id'

  has_many :comments, :through => :action_tracker, :class_name => 'Comment', :foreign_key => 'source_id'

  validates_presence_of :profile_id, :action_tracker_id
  validates_uniqueness_of :action_tracker_id, :scope => :profile_id

end
<commit_msg>[postgres-tests] Fixing comments on action_tracker_notification<commit_after>class ActionTrackerNotification < ActiveRecord::Base

  belongs_to :profile
  belongs_to :action_tracker, :class_name => 'ActionTracker::Record', :foreign_key => 'action_tracker_id'

  delegate :comments, :to => :action_tracker, :allow_nil => true

  validates_presence_of :profile_id, :action_tracker_id
  validates_uniqueness_of :action_tracker_id, :scope => :profile_id

end

{'fraction_non_alphanumeric': 0.10333333333333333, 'fraction_numerical': 0.0, 'mean_word_length': 8.1010101010101, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '1356039', 'n_tokens_mistral': 299, 'n_tokens_neox': 292, 'n_words': 56}