<commit_before>class DateP < Date

  module Converters

    def next_week
      self + 7
    end

    def weekday_name
      self.strftime('%A')
    end

    def month_name
      self.strftime('%B')
    end

    def start_of_week
      self - cwday
    end

    def start_of_month
      self - day + 1
    end

    def start_of_year
      self - yday + 1
    end

    def end_of_week
      self + (6 - cwday)
    end

    def end_of_month
      self.class.new(year, month, -1)
    end

    def end_of_year
      self.class.new(year, -1, -1)
    end
    
  end
end<commit_msg>previous year<commit_after>class DateP < Date

  module Converters

    def next_week
      self + 7
    end

    def weekday_name
      self.strftime('%A')
    end

    def month_name
      self.strftime('%B')
    end

    def start_of_week
      self - cwday
    end

    def start_of_month
      self - day + 1
    end

    def start_of_year
      self - yday + 1
    end

    def end_of_week
      self + (6 - cwday)
    end

    def end_of_month
      self.class.new(year, month, -1)
    end

    def end_of_year
      self.class.new(year, -1, -1)
    end

    def previous_year
      last_year = year - 1
      DateP.new(last_year, month, day)
    end
    
  end
end
{'fraction_non_alphanumeric': 0.07137129109863673, 'fraction_numerical': 0.012028869286287089, 'mean_word_length': 1.610878661087866, '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': '3191629', 'n_tokens_mistral': 485, 'n_tokens_neox': 452, 'n_words': 119}