<commit_before>module Grape
  module ErrorFormatter
    module Xml
      class << self

        def call(message, backtrace, options = {})
          p message
          p backtrace

          result = message.is_a?(Hash) ? message : { :message => message }
          if (options[:rescue_options] || {})[:backtrace] && backtrace && ! backtrace.empty?
            result = result.merge({ :backtrace => backtrace })
          end
          p result
          result.respond_to?(:to_xml) ? result.to_xml(:root => :error) : result.to_s
        end

      end
    end
  end
end<commit_msg>remove debug output<commit_after>module Grape
  module ErrorFormatter
    module Xml
      class << self

        def call(message, backtrace, options = {})
          result = message.is_a?(Hash) ? message : { :message => message }
          if (options[:rescue_options] || {})[:backtrace] && backtrace && ! backtrace.empty?
            result = result.merge({ :backtrace => backtrace })
          end
          result.respond_to?(:to_xml) ? result.to_xml(:root => :error) : result.to_s
        end

      end
    end
  end
end
{'fraction_non_alphanumeric': 0.12072072072072072, 'fraction_numerical': 0.0, 'mean_word_length': 2.192528735632184, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3723770', 'n_tokens_mistral': 323, 'n_tokens_neox': 319, 'n_words': 79}