<commit_before>module Neography

  class NeographyError < StandardError
    attr_reader :message, :stacktrace

    def initialize(message = nil, code = nil, stacktrace = nil)
      @message = message
      @stacktrace = stacktrace
    end
  end

  # HTTP Authentication error
  class UnauthorizedError < NeographyError; end

  # the Neo4j server Exceptions returned by the REST API:
<commit_msg>Add code accessor to NeographyError.<commit_after>module Neography

  class NeographyError < StandardError
    attr_reader :message, :code, :stacktrace

    def initialize(message = nil, code = nil, stacktrace = nil)
      @message    = message
      @code       = code
      @stacktrace = stacktrace
    end
  end

  # HTTP Authentication error
  class UnauthorizedError < NeographyError; end

  # the Neo4j server Exceptions returned by the REST API:

{'fraction_non_alphanumeric': 0.060141509433962265, 'fraction_numerical': 0.0023584905660377358, 'mean_word_length': 3.3989637305699483, 'pattern_counts': {'":': 0, '<': 7, '<?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': '82034', 'n_tokens_mistral': 241, 'n_tokens_neox': 228, 'n_words': 81}