Home
last modified time | relevance | path

Searched refs:groupby (Results 1 – 25 of 33) sorted by relevance

12

/third_party/python/Tools/c-analyzer/cpython/
D_capi.py243 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__.py290 groupby='kind', argument
316 groupby=groupby,
/third_party/boost/libs/numeric/odeint/
Dfix-copyright.py4 from itertools import groupby
23 for author, records in groupby(aup, itemgetter(0)):
/third_party/python/Lib/test/
Dtest_itertools.py363 … 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__.py6 from itertools import groupby
311 s2 = ''.join(c for c, _ in groupby(s2))
/third_party/libuv/tools/
Dmake_dist_html.py118 groups = [group_for(list(g)) for _, g in itertools.groupby(tags, major_minor)]
/third_party/python/Doc/library/
Ditertools.rst56 :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/
Dstatistics.py136 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/
Dasyncfilters.py73 for key, values in filters.groupby(sorted(
Dfilters.py16 from itertools import groupby, chain
852 in groupby(sorted(value, key=expr), expr)]
/third_party/jinja2/
Dasyncfilters.py80 for key, values in filters.groupby(
Dfilters.py9 from itertools import groupby
987 for key, values in groupby(sorted(value, key=expr), expr)
/third_party/skia/third_party/externals/jinja2/
Dasyncfilters.py80 for key, values in filters.groupby(
Dfilters.py9 from itertools import groupby
987 for key, values in groupby(sorted(value, key=expr), expr)
/third_party/python/Misc/NEWS.d/
D3.7.0a2.rst416 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/
Dbifrost_isa.py287 partitions = itertools.groupby(sorted_instrs, key_func)
/third_party/python/Doc/whatsnew/
D2.4.rst1093 * 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/
Dgen-unicode.py157 for _, group in itertools.groupby(enumerate(i), lambda q: (q[1] - q[0])):
/third_party/skia/third_party/externals/angle2/src/tests/
Drun_perf_tests.py451 merge_histogram_path, groupby=['name'])
/third_party/harfbuzz/test/shaping/
Dhb_test_tools.py268 return groupby (f, key=identifier)
/third_party/skia/third_party/externals/harfbuzz/test/shape/
Dhb_test_tools.py268 return groupby (f, key=identifier)
/third_party/flutter/skia/third_party/externals/harfbuzz/test/shaping/
Dhb_test_tools.py347 return groupby (f, key=identifier)
/third_party/python/Doc/howto/
Dfunctional.rst948 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__.py430 grouped = itertools.groupby(ordered, by_group)
/third_party/harfbuzz/src/
Dgen-tag-table.py971 for initial, group in itertools.groupby ((lt_tags for lt_tags in [

12