original_docstring: Gets the scatter property for an object.
  
    For ease of implementation, this is not synchronized with the actual
    value on the App Engine server, but should work equally well.
  
    Note: This property may change, either here or in production. No client
    other than the mapper framework should rely on it directly.
  
    Returns:
      The PropertyValue of the scatter property or None if this entity should not
      have a scatter property.
    
docstring: Gets the scatter property for an object.
  For ease of implementation, this is not synchronized with the actual
  value on the App Engine server, but should work equally well.
  
  This property may change, either here or in production. No client
  other than the mapper framework should rely on it directly.
docstring_tokens: Gets the scatter property for an object . For ease of implementation this is not synchronized with the actual value on the App Engine server but should work equally well . This property may change either here or in production . No client other than the mapper framework should rely on it directly .
code: def _GetScatterProperty(entity_proto):
    """Gets the scatter property for an object.
  
    For ease of implementation, this is not synchronized with the actual
    value on the App Engine server, but should work equally well.
  
    Note: This property may change, either here or in production. No client
    other than the mapper framework should rely on it directly.
  
    Returns:
      The PropertyValue of the scatter property or None if this entity should not
      have a scatter property.
    """
    hash_obj = _MD5_FUNC()
    for element in entity_proto.key().path().element_list():
      if element.has_name():
        hash_obj.update(element.name())
      elif element.has_id():
        hash_obj.update(str(element.id()))
    hash_bytes = hash_obj.digest()[0:2]
    (hash_int,) = struct.unpack('H', hash_bytes)
  
    if hash_int >= _SCATTER_PROPORTION:
      return None
  
    scatter_property = entity_pb.Property()
    scatter_property.set_name(datastore_types.SCATTER_SPECIAL_PROPERTY)
    scatter_property.set_meaning(entity_pb.Property.BYTESTRING)
    scatter_property.set_multiple(False)
    property_value = scatter_property.mutable_value()
    property_value.set_stringvalue(hash_bytes)
    return scatter_property
code_tokens: def _GetScatterProperty ( entity_proto ) : hash_obj = _MD5_FUNC ( ) for element in entity_proto . key ( ) . path ( ) . element_list ( ) : if element . has_name ( ) : hash_obj . update ( element . name ( ) ) elif element . has_id ( ) : hash_obj . update ( str ( element . id ( ) ) ) hash_bytes = hash_obj . digest ( ) [ 0 : 2 ] ( hash_int , ) = struct . unpack ( 'H' , hash_bytes ) if hash_int >= _SCATTER_PROPORTION : return None scatter_property = entity_pb . Property ( ) scatter_property . set_name ( datastore_types . SCATTER_SPECIAL_PROPERTY ) scatter_property . set_meaning ( entity_pb . Property . BYTESTRING ) scatter_property . set_multiple ( False ) property_value = scatter_property . mutable_value ( ) property_value . set_stringvalue ( hash_bytes ) return scatter_property
short_docstring: Gets the scatter property for an object.
short_docstring_tokens: Gets the scatter property for an object .
comment: """Gets the scatter property for an object.
  
    For ease of implementation, this is not synchronized with the actual
    value on the App Engine server, but should work equally well.
  
    Note: This property may change, either here or in production. No client
    other than the mapper framework should rely on it directly.
  
    Returns:
      The PropertyValue of the scatter property or None if this entity should not
      have a scatter property.
    """