original_docstring: Converts a cursor into a offset into the result set even if the
      cursor's entity no longer exists.
  
      Args:
        results: the query's results (sequence of entity_pb.EntityProto)
        cursor: a compiled cursor as returned by _DecodeCompiledCursor
      Returns:
        the integer offset
      
docstring: Converts a cursor into a offset into the result set even if the
  cursor's entity no longer exists.
docstring_tokens: Converts a cursor into a offset into the result set even if the cursor ' s entity no longer exists .
code: def _GetCursorOffset(self, results, cursor):
      """Converts a cursor into a offset into the result set even if the
      cursor's entity no longer exists.
  
      Args:
        results: the query's results (sequence of entity_pb.EntityProto)
        cursor: a compiled cursor as returned by _DecodeCompiledCursor
      Returns:
        the integer offset
      """
      lo = 0
      hi = len(results)
      while lo < hi:
        mid = (lo + hi) // 2
        if self._IsBeforeCursor(results[mid], cursor):
          lo = mid + 1
        else:
          hi = mid
      return lo
code_tokens: def _GetCursorOffset ( self , results , cursor ) : lo = 0 hi = len ( results ) while lo < hi : mid = ( lo + hi ) // 2 if self . _IsBeforeCursor ( results [ mid ] , cursor ) : lo = mid + 1 else : hi = mid return lo
short_docstring: Converts a cursor into a offset into the result set even if the
  cursor's entity no longer exists.
short_docstring_tokens: Converts a cursor into a offset into the result set even if the cursor ' s entity no longer exists .
comment: """Converts a cursor into a offset into the result set even if the
      cursor's entity no longer exists.
  
      Args:
        results: the query's results (sequence of entity_pb.EntityProto)
        cursor: a compiled cursor as returned by _DecodeCompiledCursor
      Returns:
        the integer offset
      """