<commit_before>namespace :websites do
  desc "Update images and image info"
  task :update, [:minutes]  => :environment do |t, args|
    args.with_defaults(:minutes => 2)
    Rails.logger.info "Checking for images from #{args.minutes} minutes ago"
    Website.all.each do |w|
      w.strategy_update_images(args.minutes)
    end
  end

  task :patch_bulk, [:minutes]  => :environment do |t, args|
    args.with_defaults(:minutes => 2)
    Rails.logger.info "Patching images for descriptions from #{args.minutes} minutes ago"
    Website.all.each do |w|
			s = w.get_strategy
			if s
				s.patch_bulk(args.minutes)
			else
				Rails.logger.info "No strategy available for this description's image"
				return true
			end
    end
  end
end<commit_msg>arg for patch_bulk ref #43<commit_after>namespace :websites do
  desc "Update images and image info"
  task :update, [:minutes]  => :environment do |t, args|
    args.with_defaults(:minutes => 2)
    Rails.logger.info "Checking for images from #{args.minutes} minutes ago"
    Website.all.each do |w|
      w.strategy_update_images(args.minutes)
    end
  end

  task :patch_bulk, [:minutes]  => :environment do |t, args|
    args.with_defaults(:minutes => 2)
    Rails.logger.info "Patching images for descriptions from #{args.minutes} minutes ago"
    Website.all.each do |w|
			s = w.get_strategy
			if s
				s.patch_bulk(w, args.minutes)
			else
				Rails.logger.info "No strategy available for this description's image"
				return true
			end
    end
  end
end
{'fraction_non_alphanumeric': 0.10568031704095113, 'fraction_numerical': 0.003963011889035667, 'mean_word_length': 3.353448275862069, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6515153', 'n_tokens_mistral': 554, 'n_tokens_neox': 492, 'n_words': 150}