<commit_before>class Task < ActiveRecord::Base
  belongs_to :taskable, polymorphic: true
  has_many :tasks, as: :taskable
  belongs_to :user
  has_many :comments
  has_many :labels, as: :labelable
  acts_as_followable
  validates :taskable_type , presence: true, inclusion: { within: %w(Project Task) }
  validates_datetime :due_date, after: :started_at 
  validates :title,  presence: true, length: {maximum: 200}
  validates :priority, presence: true,inclusion: {in: %w(low normal high ASAP)}
  validates :status, presence: true,inclusion: { in: %w(finished active inactive none) }
  validates :progress, presence: true ,
                 numericality: { only_integer: true }, length: {maximum: 3}
  
end<commit_msg>bug fix for comments association<commit_after>class Task < ActiveRecord::Base
  belongs_to :taskable, polymorphic: true
  has_many :tasks, as: :taskable
  belongs_to :user
  has_many :comments, as: :commentable
  has_many :labels, as: :labelable
  acts_as_followable
  validates :taskable_type , presence: true, inclusion: { within: %w(Project Task) }
  validates_datetime :due_date, after: :started_at 
  validates :title,  presence: true, length: {maximum: 200}
  validates :priority, presence: true,inclusion: {in: %w(low normal high ASAP)}
  validates :status, presence: true,inclusion: { in: %w(finished active inactive none) }
  validates :progress, presence: true ,
                 numericality: { only_integer: true }, length: {maximum: 3}
  
end
{'fraction_non_alphanumeric': 0.10658520027155464, 'fraction_numerical': 0.005431093007467753, 'mean_word_length': 4.872509960159363, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1501965', 'n_tokens_mistral': 481, 'n_tokens_neox': 464, 'n_words': 141}