<commit_before>class PortfolioEntry < ActiveRecord::Base

  validates :title, :presence => true

  # call to gems included in refinery.
  has_friendly_id :title, :use_slug => true
  acts_as_nested_set
  default_scope :order => 'lft ASC'

  has_and_belongs_to_many :images

  alias_attribute :content, :body

  def image_ids=(ids)
    self.images = ids.reject{|id| id.blank?}.collect {|image_id|
      Image.find(image_id.to_i) rescue nil
    }.compact
  end

  def indented_title
    "#{"--" * self.ancestors.size} #{self.title}".chomp
  end

end<commit_msg>What we don't call we don't need it now.<commit_after>class PortfolioEntry < ActiveRecord::Base

  validates :title, :presence => true

  # call to gems included in refinery.
  has_friendly_id :title, :use_slug => true
  acts_as_nested_set
  default_scope :order => 'lft ASC'

  has_and_belongs_to_many :images

  alias_attribute :content, :body

  def image_ids=(ids)
    self.images = ids.reject{|id| id.blank?}.collect {|image_id|
      Image.find(image_id.to_i) rescue nil
    }.compact
  end

end
{'fraction_non_alphanumeric': 0.11142587346553352, 'fraction_numerical': 0.0, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4712562', 'n_tokens_mistral': 389, 'n_tokens_neox': 367, 'n_words': 90}