def show_most_common_types(limit=10, objects=None, shortnames=True):
 stats = most_common_types(limit, objects, shortnames=shortnames)
 width = max((len(name) for (name, count) in stats))
 for (name, count) in stats:
  print ('%-*s %i' % (width, name, count))

def show_most_common_types ( limit = 10 , objects = None , shortnames = True ) : stats = most_common_types ( limit , objects , shortnames = shortnames ) width = max ( ( len ( name ) for ( name , count ) in stats ) ) for ( name , count ) in stats : print ( '%-*s %i' % ( width , name , count ) )
print the table of types of most common instances .