<commit_before>module Refinery
  module Faqs
    class Faq < Refinery::Core::BaseModel
      self.table_name = 'refinery_faqs'

      attr_accessible :question, :answer, :link, :hidden, :position

      validates :question, :presence => true, :uniqueness => true

      acts_as_indexed :fields => [:question, :answer]

      default_scope { order(:question) }

      def self.live
        where('not hidden')
      end

      def title
        question
      end
    end
  end
end<commit_msg>require an answer<commit_after>module Refinery
  module Faqs
    class Faq < Refinery::Core::BaseModel
      self.table_name = 'refinery_faqs'

      attr_accessible :question, :answer, :link, :hidden, :position

      validates :question, :presence => true, :uniqueness => true
      validates :answer, :presence => true

      acts_as_indexed :fields => [:question, :answer]

      default_scope { order(:question) }

      def self.live
        where('not hidden')
      end

      def title
        question
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.0979631425800194, 'fraction_numerical': 0.0, 'mean_word_length': 2.6338028169014085, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '7296413', 'n_tokens_mistral': 319, 'n_tokens_neox': 304, 'n_words': 83}