tools/perf/experimental/story_clustering/cluster_stories.py
def AsDict(self):
    """Creates a dictionary which describes cluster object.

    Returns:
      A dictionary containing the members of the cluster and its
      representative. The representative will not be listed in members
      list.
    """
    representative = self.GetRepresentative()
    members_list = list(self.members.difference([representative]))
    return {
      'members': members_list,
      'representative': self.GetRepresentative()
    }
Creates a dictionary which describes cluster object.

    Returns:
      A dictionary containing the members of the cluster and its
      representative. The representative will not be listed in members
      list.
    
Creates a dictionary which describes cluster object.
Creates a dictionary which describes cluster object .
def AsDict(self):
    representative = self.GetRepresentative()
    members_list = list(self.members.difference([representative]))
    return {
      'members': members_list,
      'representative': self.GetRepresentative()
    }
def AsDict ( self ) : representative = self . GetRepresentative ( ) members_list = list ( self . members . difference ( [ representative ] ) ) return { 'members' : members_list , 'representative' : self . GetRepresentative ( ) }
Creates a dictionary which describes cluster object.
Creates a dictionary which describes cluster object .
"""Creates a dictionary which describes cluster object.

    Returns:
      A dictionary containing the members of the cluster and its
      representative. The representative will not be listed in members
      list.
    """
A dictionary containing the members of the cluster and its
representative. The representative will not be listed in members
list.
A dictionary containing the members of the cluster and its representative . The representative will not be listed in members list .
self