<commit_before>class Dream < ActiveRecord::Base
  belongs_to :user
  has_many :tags, :as => :entry
  
  has_many :whats, :through => :tags, :source => :noun, :source_type => 'What'
  has_many :whos, :through => :tags, :source => :noun, :source_type => 'Who'
  has_many :wheres, :through => :tags, :source => :noun, :source_type => 'Where'

  has_many :starlights, :as => :entity
  has_one  :starlight, :as => :entity, :order => "id DESC"
  
  def nouns<commit_msg>Now this association is included in the active_record.rb initializer.<commit_after>class Dream < ActiveRecord::Base
  belongs_to :user
  has_many :tags, :as => :entry
  
  has_many :whats, :through => :tags, :source => :noun, :source_type => 'What'
  has_many :whos, :through => :tags, :source => :noun, :source_type => 'Who'
  has_many :wheres, :through => :tags, :source => :noun, :source_type => 'Where'
  
  def nouns
{'fraction_non_alphanumeric': 0.1672316384180791, 'fraction_numerical': 0.0, 'mean_word_length': 4.643312101910828, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 26, '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': '874619', 'n_tokens_mistral': 327, 'n_tokens_neox': 321, 'n_words': 88}