<commit_before>class EntryDeleter
  include Sidekiq::Worker
  sidekiq_options queue: :worker_slow

  def perform(feed_id)
    feed = Feed.find(feed_id)
    unless feed.protected
      delete_entries(feed_id)
    end
  end

  def delete_entries(feed_id)
    entry_limit = ENV['ENTRY_LIMIT'].to_i
    entry_limit = 500 if entry_limit == 0<commit_msg>entry_limit conditional assignment<commit_after>class EntryDeleter
  include Sidekiq::Worker
  sidekiq_options queue: :worker_slow

  def perform(feed_id)
    feed = Feed.find(feed_id)
    unless feed.protected
      delete_entries(feed_id)
    end
  end

  def delete_entries(feed_id)
    entry_limit = ENV['ENTRY_LIMIT'] ? ENV['ENTRY_LIMIT'].to_i : 500
{'fraction_non_alphanumeric': 0.0811965811965812, 'fraction_numerical': 0.009971509971509971, 'mean_word_length': 4.246268656716418, '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': '5296556', 'n_tokens_mistral': 250, 'n_tokens_neox': 238, 'n_words': 48}