<commit_before>class Post < ActiveRecord::Base
  
  TYPES = %w(Blog Video Quote Image Link Code)
  
  has_many :comments
  belongs_to :user
  
  has_permalink :title
  
  validates_presence_of :user
  validates_inclusion_of :type, :in => TYPES
    
  def to_param
    title.blank? ? "#{id}" : "#{permalink}"
  end
  
  cattr_reader :per_page
  @@per_page = 10
  
  named_scope :all_public, :conditions => {:publicly_viewable => true}
  named_scope :all_private, :conditions => {:publicly_viewable => false}<commit_msg>added todo<commit_after>class Post < ActiveRecord::Base
  
  TYPES = %w(Blog Video Quote Image Link Code)
  
  has_many :comments
  belongs_to :user
  
  has_permalink :title
  
  validates_presence_of :user
  validates_inclusion_of :type, :in => TYPES
    
  def to_param
    # TODO needs more love
    title.blank? ? "#{id}" : "#{permalink}"
  end
  
  cattr_reader :per_page
  @@per_page = 10
  
  named_scope :all_public, :conditions => {:publicly_viewable => true}
  named_scope :all_private, :conditions => {:publicly_viewable => false}
{'fraction_non_alphanumeric': 0.10849056603773585, 'fraction_numerical': 0.0037735849056603774, 'mean_word_length': 3.889400921658986, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '1411208', 'n_tokens_mistral': 391, 'n_tokens_neox': 383, 'n_words': 88}