<commit_before>module Podio
  class PodioError < StandardError
    attr_reader :response_body, :response_status, :url

    def initialize(response_body, response_status, url)
      @response_body, @response_status, @url = response_body, response_status, url

      super(response_body.inspect)
    end
  end

  class TokenExpired < PodioError; end
  class InvalidGrantError < PodioError; end
  class AuthorizationError < PodioError; end
  class BadRequestError < PodioError; end
  class ServerError < PodioError; end
  class NotFoundError < PodioError; end
  class ConflictError < PodioError; end
  class GoneError < PodioError; end
  class RateLimitError < PodioError; end
  class UnavailableError < PodioError; end

  class RequestableAuthorizationError < AuthorizationError
    attr_reader :request_access_info

    def initialize(response_body, response_status, url)
      @request_access_info = response_body['error_parameters']
      super
    end
  end
end<commit_msg>added new payment auth error<commit_after>module Podio
  class PodioError < StandardError
    attr_reader :response_body, :response_status, :url

    def initialize(response_body, response_status, url)
      @response_body, @response_status, @url = response_body, response_status, url

      super(response_body.inspect)
    end
  end

  class TokenExpired < PodioError; end
  class InvalidGrantError < PodioError; end
  class AuthorizationError < PodioError; end
  class BadRequestError < PodioError; end
  class ServerError < PodioError; end
  class NotFoundError < PodioError; end
  class ConflictError < PodioError; end
  class GoneError < PodioError; end
  class RateLimitError < PodioError; end
  class UnavailableError < PodioError; end
  class PaymentAuthorizationError < AuthorizationError; end

  class RequestableAuthorizationError < AuthorizationError
    attr_reader :request_access_info

    def initialize(response_body, response_status, url)
      @request_access_info = response_body['error_parameters']
      super
    end
  end
end
{'fraction_non_alphanumeric': 0.056296296296296296, 'fraction_numerical': 0.0, 'mean_word_length': 4.691011235955056, 'pattern_counts': {'":': 0, '<': 28, '<?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': '5066908', 'n_tokens_mistral': 583, 'n_tokens_neox': 571, 'n_words': 161}