original_docstring: Map counter value v to the scattered ID space.
  
    Translate to scattered ID space, then reverse bits.
  
    Args:
      v: Counter value from which to produce ID.
  
    Returns:
      Integer ID.
  
    Raises:
      datastore_errors.BadArgumentError if counter value exceeds the range of
    the scattered ID space.
    
docstring: Map counter value v to the scattered ID space.
  Translate to scattered ID space, then reverse bits.
  
  Counter value from which to produce ID.
  
  Integer ID.
  
  datastore_errors.BadArgumentError if counter value exceeds the range of
  the scattered ID space.
docstring_tokens: Map counter value v to the scattered ID space . Translate to scattered ID space then reverse bits . Counter value from which to produce ID . Integer ID . datastore_errors . BadArgumentError if counter value exceeds the range of the scattered ID space .
code: def ToScatteredId(v):
    """Map counter value v to the scattered ID space.
  
    Translate to scattered ID space, then reverse bits.
  
    Args:
      v: Counter value from which to produce ID.
  
    Returns:
      Integer ID.
  
    Raises:
      datastore_errors.BadArgumentError if counter value exceeds the range of
    the scattered ID space.
    """
    if v >= _MAX_SCATTERED_COUNTER:
      raise datastore_errors.BadArgumentError('counter value too large (%d)' %v)
    return _MAX_SEQUENTIAL_ID + 1 + long(ReverseBitsInt64(v << _SCATTER_SHIFT))
code_tokens: def ToScatteredId ( v ) : if v >= _MAX_SCATTERED_COUNTER : raise datastore_errors . BadArgumentError ( 'counter value too large (%d)' % v ) return _MAX_SEQUENTIAL_ID + 1 + long ( ReverseBitsInt64 ( v << _SCATTER_SHIFT ) )
short_docstring: Map counter value v to the scattered ID space.
short_docstring_tokens: Map counter value v to the scattered ID space .
comment: """Map counter value v to the scattered ID space.
  
    Translate to scattered ID space, then reverse bits.
  
    Args:
      v: Counter value from which to produce ID.
  
    Returns:
      Integer ID.
  
    Raises:
      datastore_errors.BadArgumentError if counter value exceeds the range of
    the scattered ID space.
    """