<commit_before>module GemInstaller
  class EnhancedStreamUI < Gem::StreamUI
    attr_writer :noninteractive_chooser
    
    def initialize()
      @ins = InputQueue.new
      @outs = OutputObserver.new
      @errs = OutputObserver.new
    end
    
    def choose_from_list(question, list)
      @noninteractive_chooser.choose(question, list)
    end

    def register_outs_listener(listener)
      @outs.register(listener)
    end
    
    def unregister_outs_listener(listener)
      @outs.unregister(listener)
    end
    
    def register_errs_listener(listener)
      @errs.register(listener)
    end
    
    def unregister_errs_listener(listener)
      @errs.unregister(listener)
    end
    
    def queue_input(input)
      @ins.queue_input(input)<commit_msg>placeholder method on subclass<commit_after>module GemInstaller
  class EnhancedStreamUI < Gem::StreamUI
    attr_writer :noninteractive_chooser
    
    def initialize()
      @ins = InputQueue.new
      @outs = OutputObserver.new
      @errs = OutputObserver.new
    end
    
    def ask_yes_no(question, default=nil)
      super
    end
    
    def choose_from_list(question, list)
      @noninteractive_chooser.choose(question, list)
    end

    def register_outs_listener(listener)
      @outs.register(listener)
    end
    
    def unregister_outs_listener(listener)
      @outs.unregister(listener)
    end
    
    def register_errs_listener(listener)
      @errs.register(listener)
    end
    
    def unregister_errs_listener(listener)
      @errs.unregister(listener)
    end
    
    def queue_input(input)
      @ins.queue_input(input)
{'fraction_non_alphanumeric': 0.07160493827160494, 'fraction_numerical': 0.0, 'mean_word_length': 2.8595238095238096, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4654244', 'n_tokens_mistral': 502, 'n_tokens_neox': 497, 'n_words': 89}