<commit_before>class PlanYearDateFixer

  def initialize(plan_year)
    @plan_year = plan_year
  end

  # will set end_date to 31st Dec of year. Year is taken from start_date.
  def fix_end_date
    if @plan_year.end_date.nil?
      year = @plan_year.start_date.year<commit_msg>checking of start date is nil<commit_after>class PlanYearDateFixer

  def initialize(plan_year)
    @plan_year = plan_year
  end

  # will set end_date to 31st Dec of year. Year is taken from start_date.
  def fix_end_date
    @plan_year if @plan_year.start_date.nil?

    if @plan_year.end_date.nil?
      year = @plan_year.start_date.year
{'fraction_non_alphanumeric': 0.06634304207119741, 'fraction_numerical': 0.006472491909385114, 'mean_word_length': 3.6893939393939394, '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': '895675', 'n_tokens_mistral': 224, 'n_tokens_neox': 213, 'n_words': 59}