<commit_before>sidekiq_base_url = ENV['REDISCLOUD_URL'] || 'redis://localhost:6379'
sidekiq_url = "#{sidekiq_base_url}/2"

Sidekiq.configure_server do |config|
  config.redis = { url: sidekiq_url }
end

Sidekiq.configure_client do |config|
  config.redis = { url: sidekiq_url }
end


module SidekiqQueue
  # QUEUE DEFINITIONS
  CRITICAL = 'critical'
  DEFAULT = 'default'
  # LOW: Jobs that might be long-running that we don't want to clog up the main workers
  # and that can be delayed.
  LOW = 'low'
end
<commit_msg>Modify Sidekiq config to use namespaced DB0 in Redis (#8470)<commit_after>sidekiq_url = ENV['REDISCLOUD_URL'] || 'redis://localhost:6379'

Sidekiq.configure_server do |config|
  config.redis = { url: sidekiq_url, namespace: 'sidekiq' }
end

Sidekiq.configure_client do |config|
  config.redis = { url: sidekiq_url, namespace: 'sidekiq' }
end


module SidekiqQueue
  # QUEUE DEFINITIONS
  CRITICAL = 'critical'
  DEFAULT = 'default'
  # LOW: Jobs that might be long-running that we don't want to clog up the main workers
  # and that can be delayed.
  LOW = 'low'
end

{'fraction_non_alphanumeric': 0.10497237569060773, 'fraction_numerical': 0.01289134438305709, 'mean_word_length': 4.435, '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': '5824035', 'n_tokens_mistral': 420, 'n_tokens_neox': 398, 'n_words': 113}