<commit_before>module GroupExpensesHelper
  def selected_entry_date
    (-5..5).map do |i|
      case i
      when 0
        [t('expenses.today'), Date.today]
      when -1
        [t('expenses.yesterday'), (Date.today - 1.day)]
      when 1
        [t('expenses.tomorrow'), (Date.today + 1.day)]
      else
        [(Date.today + i.day), (Date.today + i.day)]
      end 
    end
  end
end<commit_msg>only accept 7 days before today when create expense<commit_after>module GroupExpensesHelper
  def selected_entry_date
    (-7..0).map do |i|
      case i
      when 0
        [t('expenses.today'), Date.today]
      when -1
        [t('expenses.yesterday'), (Date.today - 1.day)]
      when 1
        [t('expenses.tomorrow'), (Date.today + 1.day)]
      else
        [(Date.today + i.day), (Date.today + i.day)]
      end 
    end
  end
end
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.017857142857142856, 'mean_word_length': 2.036101083032491, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5378191', 'n_tokens_mistral': 312, 'n_tokens_neox': 286, 'n_words': 71}