<commit_before>namespace :soshigal do
  desc 'Recache the number of images per album'
  task :recache_image_count => :environment do
    Album.all.each do |album|
      album.update_attribute(:image_count, album.images.count)
    end
  end

  desc 'Recache the number of images per album'
  task :recache_thumbnails => :environment do
    Album.skip_callback(:save, :before, :ensure_foo_is_not_bar)
    Album.all.each do |album|
      album.set_thumbnail_url
      album.save
    end
  end
end<commit_msg>Fix typo in rake task<commit_after>namespace :soshigal do
  desc 'Recache the number of images per album'
  task :recache_image_count => :environment do
    Album.all.each do |album|
      album.update_attribute(:image_count, album.images.count)
    end
  end

  desc 'Recache all album thumbnails'
  task :recache_thumbnails => :environment do
    Album.skip_callback(:save, :before, :set_thumbnail_url)
    Album.all.each do |album|
      album.set_thumbnail_url
      album.save
    end
  end
end
{'fraction_non_alphanumeric': 0.08167330677290836, 'fraction_numerical': 0.0, 'mean_word_length': 3.6527777777777777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3271848', 'n_tokens_mistral': 329, 'n_tokens_neox': 326, 'n_words': 90}