Home
last modified time | relevance | path

Searched refs:most_common (Results 1 – 8 of 8) sorted by relevance

/third_party/rust/crates/regex/scripts/
Dfrequencies.py53 for i, (byte, _) in enumerate(freqs.most_common()):
/third_party/rust/crates/memchr/scripts/
Dmake-byte-frequency-table53 for i, (byte, _) in enumerate(freqs.most_common()):
/third_party/python/Lib/
Dstatistics.py579 pairs = Counter(iter(data)).most_common(1)
599 counts = Counter(iter(data)).most_common()
Dpprint.py490 items = object.most_common()
/third_party/python/Doc/library/
Dcollections.rst238 >>> Counter(words).most_common(10)
292 .. method:: most_common([n])
296 :meth:`most_common` returns *all* elements in the counter.
299 >>> Counter('abracadabra').most_common(3)
362 c.most_common()[:-n-1:-1] # n least common elements
406 * The :meth:`~Counter.most_common` method requires only that the values be orderable.
/third_party/python/Lib/collections/
D__init__.py588 def most_common(self, n=None): member in Counter
754 d = dict(self.most_common())
/third_party/python/Lib/test/
Dtest_collections.py2037 self.assertEqual(c.most_common(), [('a', 3), ('b', 2), ('c', 1)])
2039 self.assertEqual(c.most_common(i),
/third_party/python/Doc/whatsnew/
D2.7.rst1080 :meth:`~collections.Counter.most_common` returns the N most common
1089 >>> c.most_common(5)