/third_party/python/Tools/c-analyzer/cpython/ |
D | _capi.py | 243 groupby = raw.replace(',', ' ').strip().split() 247 if not all(v in GROUPINGS for v in groupby): 249 return groupby 252 def _resolve_full_groupby(groupby): argument 253 if isinstance(groupby, str): 254 groupby = [groupby] 256 for grouping in groupby + list(GROUPINGS): 262 def summarize(items, *, groupby='kind', includeempty=True, minimize=None): argument 274 groupby = _parse_groupby(groupby)[0] 275 _outer, _inner = _resolve_full_groupby(groupby) [all …]
|
D | __main__.py | 290 groupby='kind', argument 316 groupby=groupby,
|
/third_party/boost/libs/numeric/odeint/ |
D | fix-copyright.py | 4 from itertools import groupby 23 for author, records in groupby(aup, itemgetter(0)):
|
/third_party/python/Lib/test/ |
D | test_itertools.py | 363 … noruns = [k for k,v in groupby(c)] # combo without consecutive repeats 710 self.assertEqual([], list(groupby([]))) 711 self.assertEqual([], list(groupby([], key=id))) 712 self.assertRaises(TypeError, list, groupby('abc', [])) 713 self.assertRaises(TypeError, groupby, None) 714 self.assertRaises(TypeError, groupby, 'abc', lambda x:x, 10) 720 for k, g in groupby(s, lambda r:r[0]): 729 for k, g in pickle.loads(pickle.dumps(groupby(s, testR), proto)): 737 for k, g in groupby(s, testR): 738 for ik, ig in groupby(g, testR2): [all …]
|
/third_party/boost/tools/build/src/util/ |
D | __init__.py | 6 from itertools import groupby 311 s2 = ''.join(c for c, _ in groupby(s2))
|
/third_party/libuv/tools/ |
D | make_dist_html.py | 118 groups = [group_for(list(g)) for _, g in itertools.groupby(tags, major_minor)]
|
/third_party/python/Doc/library/ |
D | itertools.rst | 56 :func:`groupby` iterable[, key] sub-iterators grouped by value of k… 382 .. function:: groupby(iterable, key=None) 390 The operation of :func:`groupby` is similar to the ``uniq`` filter in Unix. It 397 with :func:`groupby`. Because the source is shared, when the :func:`groupby` 404 for k, g in groupby(data, keyfunc): 408 :func:`groupby` is roughly equivalent to:: 410 class groupby: 411 # [k for k, g in groupby('AAAABBBCCDAABBB')] --> A B C D A B 412 # [list(g) for k, g in groupby('AAAABBBCCD')] --> AAAA BBB CC D 770 g = groupby(iterable) [all …]
|
/third_party/python/Lib/ |
D | statistics.py | 136 from itertools import groupby, repeat 186 for typ, values in groupby(data, type): 600 maxcount, mode_items = next(groupby(counts, key=itemgetter(1)), (0, []))
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | asyncfilters.py | 73 for key, values in filters.groupby(sorted(
|
D | filters.py | 16 from itertools import groupby, chain 852 in groupby(sorted(value, key=expr), expr)]
|
/third_party/jinja2/ |
D | asyncfilters.py | 80 for key, values in filters.groupby(
|
D | filters.py | 9 from itertools import groupby 987 for key, values in groupby(sorted(value, key=expr), expr)
|
/third_party/skia/third_party/externals/jinja2/ |
D | asyncfilters.py | 80 for key, values in filters.groupby(
|
D | filters.py | 9 from itertools import groupby 987 for key, values in groupby(sorted(value, key=expr), expr)
|
/third_party/python/Misc/NEWS.d/ |
D | 3.7.0a2.rst | 416 Stop crashes when concurrently iterate over itertools.groupby() iterators. 425 An iterator produced by itertools.groupby() iterator now becomes exhausted 426 after advancing the groupby iterator.
|
/third_party/mesa3d/src/panfrost/bifrost/ |
D | bifrost_isa.py | 287 partitions = itertools.groupby(sorted_instrs, key_func)
|
/third_party/python/Doc/whatsnew/ |
D | 2.4.rst | 1093 * The :mod:`itertools` module gained a ``groupby(iterable[, *func*])`` 1097 itself. :func:`groupby` then groups the elements into subsequences which have 1102 whether a number is even or odd, so the result of :func:`groupby` is to return 1107 >>> for key_val, it in itertools.groupby(L, lambda x: x % 2): 1117 :func:`groupby` is typically used with sorted input. The logic for 1118 :func:`groupby` is similar to the Unix ``uniq`` filter which makes it handy for 1125 >>> for k, g in itertools.groupby(letters): 1134 >>> [k for k, g in groupby(letters)] 1137 >>> [(k, len(list(g))) for k, g in groupby(letters)]
|
/third_party/jerryscript/tools/ |
D | gen-unicode.py | 157 for _, group in itertools.groupby(enumerate(i), lambda q: (q[1] - q[0])):
|
/third_party/skia/third_party/externals/angle2/src/tests/ |
D | run_perf_tests.py | 451 merge_histogram_path, groupby=['name'])
|
/third_party/harfbuzz/test/shaping/ |
D | hb_test_tools.py | 268 return groupby (f, key=identifier)
|
/third_party/skia/third_party/externals/harfbuzz/test/shape/ |
D | hb_test_tools.py | 268 return groupby (f, key=identifier)
|
/third_party/flutter/skia/third_party/externals/harfbuzz/test/shaping/ |
D | hb_test_tools.py | 347 return groupby (f, key=identifier)
|
/third_party/python/Doc/howto/ |
D | functional.rst | 948 The last function I'll discuss, :func:`itertools.groupby(iter, key_func=None) 949 <itertools.groupby>`, is the most complicated. ``key_func(elem)`` is a function 953 :func:`~itertools.groupby` collects all the consecutive elements from the 968 itertools.groupby(city_list, get_state) => 981 :func:`~itertools.groupby` assumes that the underlying iterable's contents will
|
/third_party/python/Lib/importlib/metadata/ |
D | __init__.py | 430 grouped = itertools.groupby(ordered, by_group)
|
/third_party/harfbuzz/src/ |
D | gen-tag-table.py | 971 for initial, group in itertools.groupby ((lt_tags for lt_tags in [
|