<commit_before>class Poll < ActiveRecord::Base
  has_many   :responses
  belongs_to :survey
  belongs_to :user
  has_many   :questions, through: :survey
  has_many   :choices, through: :responses

  validates :user_id, presence: true
  validates :survey_id, presence: true

  def nice_date
    self.created_at.localtime.strftime("%B %-d, %Y")
  end

  def taker
    self.user.username
  end

  def survey_name
    self.survey.name
  end

  def questions
    self.survey.questions
  end
end
<commit_msg>Remove unnecessary method from poll model<commit_after>class Poll < ActiveRecord::Base
  has_many   :responses
  belongs_to :survey
  belongs_to :user
  has_many   :questions, through: :survey
  has_many   :choices, through: :responses

  validates :user_id, presence: true
  validates :survey_id, presence: true

  def nice_date
    self.created_at.localtime.strftime("%B %-d, %Y")
  end

  def taker
    self.user.username
  end

  def survey_name
    self.survey.name
  end
end

{'fraction_non_alphanumeric': 0.08138351983723296, 'fraction_numerical': 0.0, 'mean_word_length': 3.5767441860465117, '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': '6135971', 'n_tokens_mistral': 353, 'n_tokens_neox': 342, 'n_words': 89}