<commit_before>require "songkick_queue"

module DaimonSkycrawlers
  class Queue
    class << self
      def configure
        yield SongkickQueue.configuration
      end
    end
  end
end

# Default configuration
SongkickQueue.configure do |config|
  config.logger = Logger.new(STDOUT)
  config.host = "127.0.0.1"
  config.port = 5672
  # config.username = 'guest'
  # config.password = '<PASSWORD>'
  config.vhost = "/"
  config.max_reconnect_attempts = 10
  config.network_recovery_interval = 1.0
end<commit_msg>Simplify code<commit_after>require "songkick_queue"

module DaimonSkycrawlers
  class Queue
    class << self
      def configuration
        @configuration ||= SongkickQueue.configure do |config|
          config.logger = Logger.new(STDOUT)
          config.host = "127.0.0.1"
          config.port = 5672
          # config.username = 'guest'
          # config.password = '<PASSWORD>'
          config.vhost = "/"
          config.max_reconnect_attempts = 10
          config.network_recovery_interval = 1.0
        end
      end

      def configure
        yield configuration
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08726625111308994, 'fraction_numerical': 0.024933214603739984, 'mean_word_length': 2.4584615384615383, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '6936436', 'n_tokens_mistral': 377, 'n_tokens_neox': 343, 'n_words': 76}