<commit_before># frozen_string_literal: true

REDIS_OPTIONS = { url: ENV.fetch('REDIS_URL') { 'redis://127.0.0.1:6379' },
                  db: 1 }.freeze

Sidekiq.configure_server do |config|
  config.redis = REDIS_OPTIONS
end

Sidekiq.configure_client do |config|
  config.redis = REDIS_OPTIONS
end<commit_msg>Dup frozen sidekiq options hash<commit_after># frozen_string_literal: true

REDIS_OPTIONS = { url: ENV.fetch('REDIS_URL') { 'redis://127.0.0.1:6379' },
                  db: 1 }.freeze

Sidekiq.configure_server do |config|
  config.redis = REDIS_OPTIONS.dup
end

Sidekiq.configure_client do |config|
  config.redis = REDIS_OPTIONS.dup
end
{'fraction_non_alphanumeric': 0.12, 'fraction_numerical': 0.033846153846153845, 'mean_word_length': 3.8947368421052633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4798353', 'n_tokens_mistral': 262, 'n_tokens_neox': 245, 'n_words': 47}