<commit_before>class TaskSerializer < ActiveModel::Serializer
  attributes :id, :title, :content, :due_date, :completed,
             :updated_at, :user_id, :is_current_user_task

  belongs_to :user
  belongs_to :project

  def is_current_user_task
    object.user == current_user
  end
end<commit_msg>added two methods to TaskSerializer<commit_after>class TaskSerializer < ActiveModel::Serializer
  attributes :id, :title, :content, :due_date, :completed,
             :updated_at, :user_id, :is_current_user_task

  belongs_to :user
  belongs_to :project

  def is_current_user_task
    object.user == current_user
  end

  def updated_at
    object.updated_at.strftime('%A, %e %B %Y')
  end

  def due_date
    object.due_date.strftime('%A, %e %B %Y')
  end
end
{'fraction_non_alphanumeric': 0.0968586387434555, 'fraction_numerical': 0.0, 'mean_word_length': 4.204081632653061, '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': '1863961', 'n_tokens_mistral': 264, 'n_tokens_neox': 257, 'n_words': 61}