<commit_before>require 'feedzirra'

class FeedUpdateWorker
  include Sidekiq::Worker
  include Sidetiq::Schedulable

  sidekiq_options :retry => false

  recurrence { hourly.minute_of_hour(5, 25, 45) }

  def perform
    Category.all.each do |c|
      c.feeds.each { |f|
        FeedWorker.perform_async(f.id, :fetch)
      }
    end
  end
end<commit_msg>Simplified update_worker.<commit_after>require 'feedzirra'

class FeedUpdateWorker
  include Sidekiq::Worker
  include Sidetiq::Schedulable

  sidekiq_options :retry => false

  recurrence { hourly.minute_of_hour(5, 25, 45) }

  def perform
    Feed.all.each { |f| FeedWorker.perform_async(f.id, :fetch) }
  end
end
{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.014925373134328358, 'mean_word_length': 3.897810218978102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '501464', 'n_tokens_mistral': 256, 'n_tokens_neox': 238, 'n_words': 50}