def _get_comments(group_tasks):
 comments = {}
 for (status, human) in _COMMENTS:
  num_tasks = _get_number_of_tasks_for(status, group_tasks)
  if num_tasks:
   space = ('    ' if (status in _PENDING_SUB_STATUSES) else '')
   comments[status] = '{space}* {num_tasks} {human}:\n'.format(space=space, num_tasks=num_tasks, human=human)
 return comments

def _get_comments ( group_tasks ) : comments = { } for ( status , human ) in _COMMENTS : num_tasks = _get_number_of_tasks_for ( status , group_tasks ) if num_tasks : space = ( '    ' if ( status in _PENDING_SUB_STATUSES ) else '' ) comments [ status ] = '{space}* {num_tasks} {human}:\n' . format ( space = space , num_tasks = num_tasks , human = human ) return comments
get the human readable comments and quantities for the task types .