original_docstring: Map ID k to the counter value from which it was generated.
  
    Determine whether k is sequential or scattered ID.
  
    Args:
      k: ID from which to infer counter value.
  
    Returns:
      Tuple of integers (counter_value, id_space).
    
docstring: Map ID k to the counter value from which it was generated.
  Determine whether k is sequential or scattered ID.
docstring_tokens: Map ID k to the counter value from which it was generated . Determine whether k is sequential or scattered ID .
code: def IdToCounter(k):
    """Map ID k to the counter value from which it was generated.
  
    Determine whether k is sequential or scattered ID.
  
    Args:
      k: ID from which to infer counter value.
  
    Returns:
      Tuple of integers (counter_value, id_space).
    """
    if k > _MAX_SCATTERED_ID:
      return 0, SCATTERED
    elif k > _MAX_SEQUENTIAL_ID and k <= _MAX_SCATTERED_ID:
      return long(ReverseBitsInt64(k) >> _SCATTER_SHIFT), SCATTERED
    elif k > 0:
      return long(k), SEQUENTIAL
    else:
      raise datastore_errors.BadArgumentError('invalid id (%d)' % k)
code_tokens: def IdToCounter ( k ) : if k > _MAX_SCATTERED_ID : return 0 , SCATTERED elif k > _MAX_SEQUENTIAL_ID and k <= _MAX_SCATTERED_ID : return long ( ReverseBitsInt64 ( k ) >> _SCATTER_SHIFT ) , SCATTERED elif k > 0 : return long ( k ) , SEQUENTIAL else : raise datastore_errors . BadArgumentError ( 'invalid id (%d)' % k )
short_docstring: Map ID k to the counter value from which it was generated.
short_docstring_tokens: Map ID k to the counter value from which it was generated .
comment: """Map ID k to the counter value from which it was generated.
  
    Determine whether k is sequential or scattered ID.
  
    Args:
      k: ID from which to infer counter value.
  
    Returns:
      Tuple of integers (counter_value, id_space).
    """