<commit_before>namespace :jmd do
  namespace :performances do
    desc "Resave all performances, leaving their timestamps untouched"
    task resave: :environment do
      Performance.all.each do |performance|
        if performance.save_without_timestamping
          puts "Resaved performance #{performance.id}"
        else
          puts "Failed to resave performance #{performance.id}"<commit_msg>Add info about age group having changed to resave task<commit_after>namespace :jmd do
  namespace :performances do
    desc "Resave all performances, leaving their timestamps untouched"
    task resave: :environment do
      Performance.all.each do |performance|
        age_group = performance.age_group
        if performance.save_without_timestamping
          new_age_group = performance.age_group
          if new_age_group != age_group
            puts "Resaved performance #{performance.id} and updated age group from #{age_group} to #{new_age_group}"
          else
            puts "Resaved performance #{performance.id}"
          end
        else
          puts "Failed to resave performance #{performance.id}"
{'fraction_non_alphanumeric': 0.06411398040961709, 'fraction_numerical': 0.0, 'mean_word_length': 3.028673835125448, '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': '3209399', 'n_tokens_mistral': 286, 'n_tokens_neox': 279, 'n_words': 97}