<commit_before>class Task < ActiveRecord::Base
  attr_accessible :description, :status
  
  validates :description, presence: true
  validates :status, presence: true
  
  def pending?
    status == 'pending'
  end
  
  def finished?
    status == 'finished'
  end
  
  def cancelled?
    status == 'cancelled'
  end
end<commit_msg>show tasks with desc order<commit_after>class Task < ActiveRecord::Base
  attr_accessible :description, :status
  
  validates :description, presence: true
  validates :status, presence: true
  
  default_scope order('created_at DESC')
  
  def pending?
    status == 'pending'
  end
  
  def finished?
    status == 'finished'
  end
  
  def cancelled?
    status == 'cancelled'
  end
end
{'fraction_non_alphanumeric': 0.08876560332871013, 'fraction_numerical': 0.0, 'mean_word_length': 3.4294478527607364, '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': '2835594', 'n_tokens_mistral': 226, 'n_tokens_neox': 223, 'n_words': 66}