parameters: (self, x)
return_statement: return result if result <= 0x7fffffff else 0
docstring: :type x: int
          :rtype: int
docstring_summary: :type x: int
          :rtype: int
docstring_tokens: : type x : int : rtype : int
function: def reverse(self, x):
          """
          :type x: int
          :rtype: int
          """
          if x < 0:
              return -self.reverse(-x)
  
          result = 0
          while x:
              result = result * 10 + x % 10
              x //= 10
          return result if result <= 0x7fffffff else 0
function_tokens: def reverse ( self , x ) : if x < 0 : return - self . reverse ( - x ) result = 0 while x : result = result * 10 + x % 10 x //= 10 return result if result <= 0x7fffffff else 0