<commit_before>module JSONRPC
  module Error
    class InvalidResponse < StandardError
      def initialize()
        super('Invalid or empty response from server.')
      end
    end

    class InvalidJSON < StandardError
      def initialize(json)
        super("Couldn't parse JSON string received from server:\n#{json}")
      end
    end

    class ServerError < StandardError
      attr_reader :code, :message

      def initialize(code, message)
        @code = code
        @message = message
        super("Server error #{code}: #{message}")
      end
    end
  end
end<commit_msg>changed message to response_error attr_reader<commit_after>module JSONRPC
  module Error
    class InvalidResponse < StandardError
      def initialize()
        super('Invalid or empty response from server.')
      end
    end

    class InvalidJSON < StandardError
      def initialize(json)
        super("Couldn't parse JSON string received from server:\n#{json}")
      end
    end

    class ServerError < StandardError
      attr_reader :code, :response_error

      def initialize(code, message)
        @code = code
        @response_error = message
        super("Server error #{code}: #{message}")
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.07504078303425775, 'fraction_numerical': 0.0, 'mean_word_length': 2.5360230547550433, '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': '5132765', 'n_tokens_mistral': 315, 'n_tokens_neox': 312, 'n_words': 107}