def _PresentatableKindStats(kind_ent):
 count = kind_ent.count
 entity_bytes = kind_ent.entity_bytes
 total_bytes = kind_ent.bytes
 average_bytes = (entity_bytes / count)
 return {'kind_name': kind_ent.kind_name, 'count': utils.FormatThousands(kind_ent.count), 'entity_bytes_str': utils.GetPrettyBytes(entity_bytes), 'entity_bytes': entity_bytes, 'total_bytes_str': utils.GetPrettyBytes(total_bytes), 'total_bytes': total_bytes, 'average_bytes_str': utils.GetPrettyBytes(average_bytes)}

def _PresentatableKindStats ( kind_ent ) : count = kind_ent . count entity_bytes = kind_ent . entity_bytes total_bytes = kind_ent . bytes average_bytes = ( entity_bytes / count ) return { 'kind_name' : kind_ent . kind_name , 'count' : utils . FormatThousands ( kind_ent . count ) , 'entity_bytes_str' : utils . GetPrettyBytes ( entity_bytes ) , 'entity_bytes' : entity_bytes , 'total_bytes_str' : utils . GetPrettyBytes ( total_bytes ) , 'total_bytes' : total_bytes , 'average_bytes_str' : utils . GetPrettyBytes ( average_bytes ) }
generate dict of presentable values for template .