<commit_before>class Seek
  def self.create(id)
    if opponent = REDIS.spop("seeks")
      # start a game - passing in a the id and the opponent / SetupNewGame: but have to alter to NOT generate random opponent ships
    else
      REDIS.sadd("seeks", id)
    end
  end

  def self.remove(id)
    REDIS.srem("seeks", id)
  end

  def self.clear_all
    REDIS.del("seeks")
  end<commit_msg>Add Seek model for finding opponents<commit_after>class Seek
  def self.create(id)
    if opponent = REDIS.spop("seeks")
      # start a game - Multiplayer.start(id, opponent, gameid)
      binding.pry
    else
      REDIS.sadd("seeks", id)
    end
  end

  def self.remove(id)
    REDIS.srem("seeks", id)
  end

  def self.clear_all
    REDIS.del("seeks")
  end
{'fraction_non_alphanumeric': 0.10372340425531915, 'fraction_numerical': 0.0, 'mean_word_length': 2.7839195979899496, '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': '762364', 'n_tokens_mistral': 278, 'n_tokens_neox': 265, 'n_words': 75}