<commit_before>module Gisele
  class VM
    class Agent

      attr_reader :bytecode
      attr_reader :proglist

      def initialize(bytecode, proglist = nil, event_interface = nil)
        @bytecode        = load(bytecode)
        @proglist        = proglist || ProgList.memory.threadsafe
        @event_interface = event_interface
      end<commit_msg>Let the Agent expose the event interface.<commit_after>module Gisele
  class VM
    class Agent

      attr_reader   :bytecode
      attr_reader   :proglist
      attr_accessor :event_interface

      def initialize(bytecode, proglist = nil, event_interface = nil)
        @bytecode        = load(bytecode)
        @proglist        = proglist || ProgList.memory.threadsafe
        @event_interface = event_interface
      end
{'fraction_non_alphanumeric': 0.06145966709346991, 'fraction_numerical': 0.0, 'mean_word_length': 2.5225225225225225, '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': '774183', 'n_tokens_mistral': 227, 'n_tokens_neox': 222, 'n_words': 55}