<commit_before>class Project < ActiveRecord::Base
  acts_as_content_holder
  acts_as_context
  acts_as_taggable_by_user
  has_quick_jump_target { title }

  def all_content_items
    content_ids = Content.where(:context_id => context.id).map(&:id)
    ContentItem.where(:content_id => content_ids).order("updated_at DESC")
  end

  def activate
    update_attribute :active, true
  end

  def deactivate
    update_attribute :active, false<commit_msg>Include projects own inner_content for Project#all_content_items<commit_after>class Project < ActiveRecord::Base
  acts_as_content_holder
  acts_as_context
  acts_as_taggable_by_user
  has_quick_jump_target { title }

  def all_content_items
    content_ids = Content.where(:context_id => context.id).map(&:id)
    content_ids << inner_content.id
    ContentItem.where(:content_id => content_ids).order("updated_at DESC")
  end

  def activate
    update_attribute :active, true
  end

  def deactivate
    update_attribute :active, false
{'fraction_non_alphanumeric': 0.07684529828109202, 'fraction_numerical': 0.0, 'mean_word_length': 5.036585365853658, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5408982', 'n_tokens_mistral': 319, 'n_tokens_neox': 310, 'n_words': 62}