<commit_before>module Score
  class DivisionObserver < Mongoid::Observer

    def after_save(division)
      season = division.season
      division.teams.each do |t|
        t.update_division_info(division)
        t.update_season_info(season)
        t.save
      end
    end

  end
end

<commit_msg>fix issue with division observer<commit_after>module Score
  class DivisionObserver < Mongoid::Observer

    def after_save(division)
      season = division.season
      division.teams.each do |t|
        t.update_division_info(division)
        t.save
      end
    end

  end
end


{'fraction_non_alphanumeric': 0.06655290102389079, 'fraction_numerical': 0.0, 'mean_word_length': 2.6012269938650308, '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': '5308615', 'n_tokens_mistral': 183, 'n_tokens_neox': 171, 'n_words': 41}