parameters: (value)
return_statement: return (value << 1) ^ (~0)
docstring: ZigZag Transform:  Encodes signed integers so that they can be
    effectively used with varint encoding.  See wire_format.h for
    more details.
docstring_summary: ZigZag Transform:  Encodes signed integers so that they can be
    effectively used with varint encoding.  See wire_format.h for
    more details.
docstring_tokens: ZigZag Transform : Encodes signed integers so that they can be effectively used with varint encoding . See wire_format . h for more details .
function: def ZigZagEncode(value):
    """ZigZag Transform:  Encodes signed integers so that they can be
    effectively used with varint encoding.  See wire_format.h for
    more details.
    """
    if value >= 0:
      return value << 1
    return (value << 1) ^ (~0)
function_tokens: def ZigZagEncode ( value ) : if value >= 0 : return value << 1 return ( value << 1 ) ^ ( ~ 0 )