<commit_before>class Question < ActiveRecord::Base

  belongs_to :user
  has_many :answers
  has_many :comments, as: :commentable
  has_many :votes, as: :voteable
  has_many :taggings
  has_many :tags, through: :taggings

  validates :title, presence: true
  validates :body, presence: true
  validates :user, presence: true

end<commit_msg>add validation on view_count<commit_after>class Question < ActiveRecord::Base

  belongs_to :user
  has_many :answers
  has_many :comments, as: :commentable
  has_many :votes, as: :voteable
  has_many :taggings
  has_many :tags, through: :taggings

  validates :title, presence: true
  validates :view_count, prescence: true
  validates :body, presence: true
  validates :user, presence: true

end
{'fraction_non_alphanumeric': 0.08536585365853659, 'fraction_numerical': 0.0, 'mean_word_length': 5.158333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6849460', 'n_tokens_mistral': 251, 'n_tokens_neox': 246, 'n_words': 74}