<commit_before>class Account < ActiveRecord::Base
  has_many :proposals, :dependent => :destroy
  has_many :points, :dependent => :destroy
  has_many :positions, :dependent => :destroy
  has_many :users, :dependent => :destroy
  has_many :comments, :dependent => :destroy, :class_name => 'Commentable::Comment'

  #TODO: replace with activity gem 
  has_many :activities, :class_name => 'Activity', :dependent => :destroy

  #has_many :reflect_bullets, :class_name => 'Reflect::ReflectBullet'
  #has_many :reflect_responses, :class_name => 'Reflect::ReflectResponse'

  #has_one :theme#, :polymorphic => true

  belongs_to :managing_account, :class_name => 'User'

  is_followable

  def host_without_subdomain
    host_with_port.split('.')[-2, 2].join('.')
  end


  def self.all_themes
    Dir['app/assets/themes/*/'].map { |a| File.basename(a) }
  end
end<commit_msg>setting default value for header and details text on home header<commit_after>class Account < ActiveRecord::Base
  has_many :proposals, :dependent => :destroy
  has_many :points, :dependent => :destroy
  has_many :positions, :dependent => :destroy
  has_many :users, :dependent => :destroy
  has_many :comments, :dependent => :destroy, :class_name => 'Commentable::Comment'

  #TODO: replace with activity gem 
  has_many :activities, :class_name => 'Activity', :dependent => :destroy

  #has_many :reflect_bullets, :class_name => 'Reflect::ReflectBullet'
  #has_many :reflect_responses, :class_name => 'Reflect::ReflectResponse'

  #has_one :theme#, :polymorphic => true

  belongs_to :managing_account, :class_name => 'User'

  is_followable

  before_create :set_default

  def host_without_subdomain
    host_with_port.split('.')[-2, 2].join('.')
  end


  def self.all_themes
    Dir['app/assets/themes/*/'].map { |a| File.basename(a) }
  end

  def set_default
    header_text ||= 'The main callout to participants'
    header_details_text ||= 'This is where you\'ll add more details about why this forum exists, and whom you want to participate.'
  end
end
{'fraction_non_alphanumeric': 0.13133300541072307, 'fraction_numerical': 0.001967535661583866, 'mean_word_length': 4.964809384164223, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '4586268', 'n_tokens_mistral': 680, 'n_tokens_neox': 653, 'n_words': 169}