/external/python/cpython2/Lib/test/ |
D | test_itertools.py | 207 … 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/ |
D | SampleCppLinq.cpp | 51 .groupby([](const item& i) { return i.args; }); in run() 62 .groupby([](const item& i) { return i.concurrency; }); in run()
|
/external/python/cpython3/Lib/test/ |
D | test_itertools.py | 361 … 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/ |
D | makekeys | 54 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/ |
D | enum_macros.tmpl | 26 {%- for _, values in enum.fields|groupby('numeric_value') %} 63 {%- for enum_field in enum.fields|groupby('numeric_value') %}
|
/external/python/jinja/scripts/ |
D | generate_identifier_pattern.py | 32 for _, b in itertools.groupby(enumerate(data), lambda x: ord(x[1]) - x[0]):
|
/external/python/jinja/tests/ |
D | test_runtime.py | 52 gs=itertools.groupby([(1, "a"), (1, "b"), (2, "c"), (3, "d")], lambda x: x[0])
|
/external/libchrome/mojo/public/tools/bindings/generators/js_templates/ |
D | enum_definition.tmpl | 17 {%- for enum_field in enum.fields|groupby('numeric_value') %}
|
/external/libchrome/mojo/public/tools/bindings/generators/java_templates/ |
D | enum_definition.tmpl | 23 {%- for enum_field in enum.fields|groupby('numeric_value') %}
|
/external/tensorflow/tensorflow/python/keras/mixed_precision/ |
D | device_compatibility_check.py | 52 for device_str, vals in itertools.groupby(device_strs):
|
/external/python/cpython2/Doc/library/ |
D | itertools.rst | 54 :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/ |
D | itertools.rst | 56 :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/ |
D | statistics.py | 109 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/ |
D | metadata.py | 319 itertools.groupby(section_pairs, operator.itemgetter('section')) 563 grouped = itertools.groupby(ordered, by_group)
|
/external/rust/crates/idna/src/ |
D | make_uts46_mapping_table.py | 98 grouped_ranges = itertools.groupby(ranges, key=mergeable_key)
|
/external/llvm-project/clang/utils/analyzer/ |
D | SATestBenchmark.py | 108 means = old.groupby("project").mean()
|
/external/libchrome/third_party/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)]
|
/external/python/jinja/src/jinja2/ |
D | asyncfilters.py | 80 for key, values in filters.groupby(
|
D | filters.py | 8 from itertools import groupby 967 for key, values in groupby(sorted(value, key=expr), expr)
|
/external/llvm-project/debuginfo-tests/dexter/dex/heuristic/ |
D | Heuristic.py | 16 from itertools import groupby 304 for k, subit in groupby(lst, lambda x: x[0] == ' '):
|
/external/llvm-project/llvm/utils/lit/lit/ |
D | reports.py | 93 tests_by_suite = itertools.groupby(tests, lambda t: t.suite)
|
D | main.py | 137 tests_by_suite = itertools.groupby(tests, lambda t: t.suite)
|
/external/python/cpython3/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.
|
/external/Reactive-Extensions/RxCpp/Ix/CPP/src/cpplinq/ |
D | linq.hpp | 234 linq_driver< linq_groupby<Collection, KeyFn> > groupby(KeyFn fn) in groupby() function in cpplinq::linq_driver
|