<commit_before>class ConfirmationEmailPresenter < ConfirmationPresenter
  def office?
    target.office.present?
  end

  def office_details
    return '' unless target.office
    [target.office.name, target.office.address].join(', ')
  end

  def paid?
    target.payment.present?
  end

  def group?
    target.claimant_count > 1
  end

  def payment_failed?
    fee_to_pay? && !paid?
  end<commit_msg>It's OK to return nil here<commit_after>class ConfirmationEmailPresenter < ConfirmationPresenter
  def office?
    target.office.present?
  end

  def office_details
    [target.office.name, target.office.address].join(', ') if office
  end

  def paid?
    target.payment.present?
  end

  def group?
    target.claimant_count > 1
  end

  def payment_failed?
    fee_to_pay? && !paid?
  end
{'fraction_non_alphanumeric': 0.09045226130653267, 'fraction_numerical': 0.002512562814070352, 'mean_word_length': 3.3551912568306013, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '969450', 'n_tokens_mistral': 277, 'n_tokens_neox': 258, 'n_words': 61}