<commit_before>module Discordrb
  # Class that represents an await to wait for a further event
  class Await
    attr_reader :key, :type, :attributes

    def initialize(bot, key, type, attributes, block = nil)
      @bot = bot
      @key = key
      @type = type
      @attributes = attributes
      @block = block
    end

    def match(event)
      dummy_handler = bot.handler_class(@type).new(@attributes) {}
      return nil unless dummy_handler.matches?(event)

      @block.call(event) if @block
      @key
    end
  end
end
<commit_msg>In Await, bot is an instance variable<commit_after>module Discordrb
  # Class that represents an await to wait for a further event
  class Await
    attr_reader :key, :type, :attributes

    def initialize(bot, key, type, attributes, block = nil)
      @bot = bot
      @key = key
      @type = type
      @attributes = attributes
      @block = block
    end

    def match(event)
      dummy_handler = @bot.handler_class(@type).new(@attributes) {}
      return nil unless dummy_handler.matches?(event)

      @block.call(event) if @block
      @key
    end
  end
end

{'fraction_non_alphanumeric': 0.08984725965858041, 'fraction_numerical': 0.0, 'mean_word_length': 2.6765676567656764, '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': '2061238', 'n_tokens_mistral': 332, 'n_tokens_neox': 327, 'n_words': 110}