Home
last modified time | relevance | path

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

12

/external/python/cpython2/Lib/test/
Dtest_itertools.py207 … noruns = [k for k,v in groupby(c)] # combo without consecutive repeats
453 self.assertEqual([], list(groupby([])))
454 self.assertEqual([], list(groupby([], key=id)))
455 self.assertRaises(TypeError, list, groupby('abc', []))
456 self.assertRaises(TypeError, groupby, None)
457 self.assertRaises(TypeError, groupby, 'abc', lambda x:x, 10)
463 for k, g in groupby(s, lambda r:r[0]):
471 for k, g in groupby(s, lambda r:r[0]):
472 for ik, ig in groupby(g, lambda r:r[2]):
480 keys = [k for k, g in groupby(s, lambda r:r[0])]
[all …]
/external/Reactive-Extensions/RxCpp/Ix/CPP/samples/SampleCppLinq/
DSampleCppLinq.cpp51 .groupby([](const item& i) { return i.args; }); in run()
62 .groupby([](const item& i) { return i.concurrency; }); in run()
/external/python/cpython3/Lib/test/
Dtest_itertools.py361 … noruns = [k for k,v in groupby(c)] # combo without consecutive repeats
708 self.assertEqual([], list(groupby([])))
709 self.assertEqual([], list(groupby([], key=id)))
710 self.assertRaises(TypeError, list, groupby('abc', []))
711 self.assertRaises(TypeError, groupby, None)
712 self.assertRaises(TypeError, groupby, 'abc', lambda x:x, 10)
718 for k, g in groupby(s, lambda r:r[0]):
727 for k, g in pickle.loads(pickle.dumps(groupby(s, testR), proto)):
735 for k, g in groupby(s, testR):
736 for ik, ig in groupby(g, testR2):
[all …]
/external/libxkbcommon/scripts/
Dmakekeys54 print_entries(next(g[1]) for g in itertools.groupby(sorted(entries, key=lambda e: e[1]), key=lambda…
/external/libchrome/mojo/public/tools/bindings/generators/cpp_templates/
Denum_macros.tmpl26 {%- for _, values in enum.fields|groupby('numeric_value') %}
63 {%- for enum_field in enum.fields|groupby('numeric_value') %}
/external/python/jinja/scripts/
Dgenerate_identifier_pattern.py32 for _, b in itertools.groupby(enumerate(data), lambda x: ord(x[1]) - x[0]):
/external/python/jinja/tests/
Dtest_runtime.py52 gs=itertools.groupby([(1, "a"), (1, "b"), (2, "c"), (3, "d")], lambda x: x[0])
/external/libchrome/mojo/public/tools/bindings/generators/js_templates/
Denum_definition.tmpl17 {%- for enum_field in enum.fields|groupby('numeric_value') %}
/external/libchrome/mojo/public/tools/bindings/generators/java_templates/
Denum_definition.tmpl23 {%- for enum_field in enum.fields|groupby('numeric_value') %}
/external/tensorflow/tensorflow/python/keras/mixed_precision/
Ddevice_compatibility_check.py52 for device_str, vals in itertools.groupby(device_strs):
/external/python/cpython2/Doc/library/
Ditertools.rst54 :func:`groupby` iterable[, keyfunc] sub-iterators grouped by value of keyfunc(v)
290 .. function:: groupby(iterable[, key])
298 The operation of :func:`groupby` is similar to the ``uniq`` filter in Unix. It
305 with :func:`groupby`. Because the source is shared, when the :func:`groupby`
312 for k, g in groupby(data, keyfunc):
316 :func:`groupby` is roughly equivalent to::
318 class groupby(object):
319 # [k for k, g in groupby('AAAABBBCCDAABBB')] --> A B C D A B
320 # [list(g) for k, g in groupby('AAAABBBCCD')] --> AAAA BBB CC D
712 g = groupby(iterable)
[all …]
/external/python/cpython3/Doc/library/
Ditertools.rst56 :func:`groupby` iterable[, key] sub-iterators grouped by value of k…
381 .. function:: groupby(iterable, key=None)
389 The operation of :func:`groupby` is similar to the ``uniq`` filter in Unix. It
396 with :func:`groupby`. Because the source is shared, when the :func:`groupby`
403 for k, g in groupby(data, keyfunc):
407 :func:`groupby` is roughly equivalent to::
409 class groupby:
410 # [k for k, g in groupby('AAAABBBCCDAABBB')] --> A B C D A B
411 # [list(g) for k, g in groupby('AAAABBBCCD')] --> AAAA BBB CC D
751 g = groupby(iterable)
[all …]
/external/python/cpython3/Lib/
Dstatistics.py109 from itertools import groupby
164 for typ, values in groupby(data, type):
578 maxcount, mode_items = next(groupby(counts, key=itemgetter(1)), (0, []))
/external/python/cpython3/Lib/importlib/
Dmetadata.py319 itertools.groupby(section_pairs, operator.itemgetter('section'))
563 grouped = itertools.groupby(ordered, by_group)
/external/rust/crates/idna/src/
Dmake_uts46_mapping_table.py98 grouped_ranges = itertools.groupby(ranges, key=mergeable_key)
/external/llvm-project/clang/utils/analyzer/
DSATestBenchmark.py108 means = old.groupby("project").mean()
/external/libchrome/third_party/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)]
/external/python/jinja/src/jinja2/
Dasyncfilters.py80 for key, values in filters.groupby(
Dfilters.py8 from itertools import groupby
967 for key, values in groupby(sorted(value, key=expr), expr)
/external/llvm-project/debuginfo-tests/dexter/dex/heuristic/
DHeuristic.py16 from itertools import groupby
304 for k, subit in groupby(lst, lambda x: x[0] == ' '):
/external/llvm-project/llvm/utils/lit/lit/
Dreports.py93 tests_by_suite = itertools.groupby(tests, lambda t: t.suite)
Dmain.py137 tests_by_suite = itertools.groupby(tests, lambda t: t.suite)
/external/python/cpython3/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.
/external/Reactive-Extensions/RxCpp/Ix/CPP/src/cpplinq/
Dlinq.hpp234 linq_driver< linq_groupby<Collection, KeyFn> > groupby(KeyFn fn) in groupby() function in cpplinq::linq_driver

12