<commit_before>module Byebug
  class RemoteInterface < Interface
    attr_accessor :command_queue, :history_length, :history_save, :histfile
    attr_accessor :restart_file

    def initialize(socket)
      @command_queue = []
      @socket = socket
      @history_save = false
      @history_length = 256
      @histfile = ''
      # Do we read the histfile?
      # open(@histfile, 'r') do |file|
      #   file.each do |line|
      #     line.chomp!
      #     Readline::HISTORY << line
      #   end
      # end if File.exist?(@histfile)
        @restart_file = nil
    end

    def close
      @socket.close
    rescue
    end

    def confirm(prompt)
      send_command "CONFIRM #{prompt}"
    end

    def finalize
    end

    def read_command(prompt)
      send_command "PROMPT #{prompt}"<commit_msg>Rescue IOError on socket close<commit_after>module Byebug
  class RemoteInterface < Interface
    attr_accessor :command_queue, :history_length, :history_save, :histfile
    attr_accessor :restart_file

    def initialize(socket)
      @command_queue = []
      @socket = socket
      @history_save = false
      @history_length = 256
      @histfile = ''
      # Do we read the histfile?
      # open(@histfile, 'r') do |file|
      #   file.each do |line|
      #     line.chomp!
      #     Readline::HISTORY << line
      #   end
      # end if File.exist?(@histfile)
        @restart_file = nil
    end

    def close
      @socket.close
    rescue IOError
    end

    def confirm(prompt)
      send_command "CONFIRM #{prompt}"
    end

    def finalize
    end

    def read_command(prompt)
      send_command "PROMPT #{prompt}"
{'fraction_non_alphanumeric': 0.09240121580547113, 'fraction_numerical': 0.00364741641337386, 'mean_word_length': 2.2788844621513946, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4657134', 'n_tokens_mistral': 538, 'n_tokens_neox': 512, 'n_words': 130}