<commit_before>class PaymentSerializer < ActiveModel::Serializer
  attributes :id, :name, :amount, :category_id, :type, :schedule, :upcoming

  def upcoming
    schedule.next_occurrences(5)
  end
end<commit_msg>Include payment occurences for the next 30 days in `upcoming`<commit_after>class PaymentSerializer < ActiveModel::Serializer
  attributes :id, :name, :amount, :category_id, :type, :schedule, :upcoming

  def upcoming
    schedule.occurrences_between(Date.today, Date.today + 30.days)
  end
end
{'fraction_non_alphanumeric': 0.10119047619047619, 'fraction_numerical': 0.00992063492063492, 'mean_word_length': 6.013888888888889, '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': '350374', 'n_tokens_mistral': 161, 'n_tokens_neox': 148, 'n_words': 42}