parameters: (self, n=None)
return_statement: return _heapq.nlargest(n, self.iteritems(), key=_itemgetter(1))
docstring: List the n most common elements and their counts from the most
          common to the least.  If n is None, then list all element counts.
  
          >>> Counter('abcdeabcdabcaba').most_common(3)
          [('a', 5), ('b', 4), ('c', 3)]
docstring_summary: List the n most common elements and their counts from the most
          common to the least.  If n is None, then list all element counts.
docstring_tokens: List the n most common elements and their counts from the most common to the least . If n is None then list all element counts .
function: def most_common(self, n=None):
          '''List the n most common elements and their counts from the most
          common to the least.  If n is None, then list all element counts.
  
          >>> Counter('abcdeabcdabcaba').most_common(3)
          [('a', 5), ('b', 4), ('c', 3)]
  
          '''
          # Emulate Bag.sortedByCount from Smalltalk
          if n is None:
              return sorted(self.iteritems(), key=_itemgetter(1), reverse=True)
          return _heapq.nlargest(n, self.iteritems(), key=_itemgetter(1))
function_tokens: def most_common ( self , n = None ) : # Emulate Bag.sortedByCount from Smalltalk if n is None : return sorted ( self . iteritems ( ) , key = _itemgetter ( 1 ) , reverse = True ) return _heapq . nlargest ( n , self . iteritems ( ) , key = _itemgetter ( 1 ) )