<commit_before># Send commands to a running SlackBotServer::Server instance
#
# This should be initialized with a queue that is shared with the
# targetted server (e.g. the same local queue instance, or a
# redis queue instance that points at the same redis server).

class SlackBotServer::RemoteControl
  def initialize(queue: queue)
    @queue = queue
  end

  def add_token(token)
    @queue.push([:add_token, token])
  end

  def remove_bot(key)
    @queue.push([:remove_bot, key])
  end

  def say(key, message_data)
    @queue.push([:say, key, message_data])
  end

  def call(key, method, args)
    @queue.push([:call, [key, method, args]])
  end
end<commit_msg>Avoid circular reference warning.<commit_after># Send commands to a running SlackBotServer::Server instance
#
# This should be initialized with a queue that is shared with the
# targetted server (e.g. the same local queue instance, or a
# redis queue instance that points at the same redis server).

class SlackBotServer::RemoteControl
  def initialize(queue:)
    @queue = queue
  end

  def add_token(token)
    @queue.push([:add_token, token])
  end

  def remove_bot(key)
    @queue.push([:remove_bot, key])
  end

  def say(key, message_data)
    @queue.push([:say, key, message_data])
  end

  def call(key, method, args)
    @queue.push([:call, [key, method, args]])
  end
end
{'fraction_non_alphanumeric': 0.10576923076923077, 'fraction_numerical': 0.0, 'mean_word_length': 4.086466165413534, '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': '4026676', 'n_tokens_mistral': 438, 'n_tokens_neox': 430, 'n_words': 151}