<commit_before>require 'bunny'

class MsgPublisher
  def initialize
    @connection = Bunny.new
  end

  def enqueue_id(type, id)
    @connection.start
    channel = @connection.create_channel
    queue   = channel.queue "raw_db.tmdb.#{type.to_s}"
    channel.default_exchange.publish id.to_s, routing_key: queue.name
    @connection.close
  end
end
<commit_msg>TMDb-u: Make messages durable, change route<commit_after>require 'bunny'

class MsgPublisher
  def initialize
    @connection = Bunny.new
  end

  def enqueue_id(type, id)
    @connection.start
    channel = @connection.create_channel
    queue   = channel.queue "lom.raw_db.tmdb.#{type.to_s}", durable: true
    queue.publish id.to_s, persistent: true
    @connection.close
  end
end

{'fraction_non_alphanumeric': 0.0963855421686747, 'fraction_numerical': 0.0, 'mean_word_length': 3.675, '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': '6952270', 'n_tokens_mistral': 262, 'n_tokens_neox': 251, 'n_words': 57}