| /external/rust/crates/serde_cbor/tests/ |
| D | canonical.rs | 29 let mut sorted = expected.clone(); in integer_canonical_sort_order() localVariable 30 sorted.sort(); in integer_canonical_sort_order() 32 assert_eq!(expected, sorted); in integer_canonical_sort_order() 42 let mut sorted = expected.clone(); in string_canonical_sort_order() localVariable 43 sorted.sort(); in string_canonical_sort_order() 45 assert_eq!(expected, sorted); in string_canonical_sort_order() 55 let mut sorted = expected.clone(); in bytes_canonical_sort_order() localVariable 56 sorted.sort(); in bytes_canonical_sort_order() 58 assert_eq!(expected, sorted); in bytes_canonical_sort_order() 65 let mut sorted = expected.clone(); in simple_data_canonical_sort_order() localVariable [all …]
|
| /external/python/cpython2/Doc/howto/ |
| D | sorting.rst | 11 in-place. There is also a :func:`sorted` built-in function that builds a new 12 sorted list from an iterable. 20 A simple ascending sort is very easy: just call the :func:`sorted` function. It 21 returns a new sorted list:: 23 >>> sorted([5, 2, 3, 1, 4]) 28 than :func:`sorted` - but if you don't need the original list, it's slightly 37 lists. In contrast, the :func:`sorted` function accepts any iterable. 39 >>> sorted({1: 'D', 2: 'B', 3: 'B', 4: 'E', 5: 'A'}) 45 Starting with Python 2.4, both :meth:`list.sort` and :func:`sorted` added a 51 >>> sorted("This is a test string from Andrew".split(), key=str.lower) [all …]
|
| /external/python/cpython3/Doc/howto/ |
| D | sorting.rst | 11 in-place. There is also a :func:`sorted` built-in function that builds a new 12 sorted list from an iterable. 20 A simple ascending sort is very easy: just call the :func:`sorted` function. It 21 returns a new sorted list: 25 >>> sorted([5, 2, 3, 1, 4]) 30 than :func:`sorted` - but if you don't need the original list, it's slightly 41 lists. In contrast, the :func:`sorted` function accepts any iterable. 45 >>> sorted({1: 'D', 2: 'B', 3: 'B', 4: 'E', 5: 'A'}) 51 Both :meth:`list.sort` and :func:`sorted` have a *key* parameter to specify a 59 >>> sorted("This is a test string from Andrew".split(), key=str.lower) [all …]
|
| /external/grpc-grpc/third_party/upb/upb/message/ |
| D | map_sorter.c | 95 static bool _upb_mapsorter_resize(_upb_mapsorter* s, _upb_sortedmap* sorted, in _upb_mapsorter_resize() argument 97 sorted->start = s->size; in _upb_mapsorter_resize() 98 sorted->pos = sorted->start; in _upb_mapsorter_resize() 99 sorted->end = sorted->start + size; in _upb_mapsorter_resize() 101 if (sorted->end > s->cap) { in _upb_mapsorter_resize() 103 s->cap = upb_Log2CeilingSize(sorted->end); in _upb_mapsorter_resize() 109 s->size = sorted->end; in _upb_mapsorter_resize() 114 const upb_Map* map, _upb_sortedmap* sorted) { in _upb_mapsorter_pushmap() argument 118 if (!_upb_mapsorter_resize(s, sorted, map_size)) return false; in _upb_mapsorter_pushmap() 121 const void** dst = &s->entries[sorted->start]; in _upb_mapsorter_pushmap() [all …]
|
| /external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/collections/ |
| D | map_sorter.c | 105 static bool _upb_mapsorter_resize(_upb_mapsorter* s, _upb_sortedmap* sorted, in _upb_mapsorter_resize() argument 107 sorted->start = s->size; in _upb_mapsorter_resize() 108 sorted->pos = sorted->start; in _upb_mapsorter_resize() 109 sorted->end = sorted->start + size; in _upb_mapsorter_resize() 111 if (sorted->end > s->cap) { in _upb_mapsorter_resize() 112 s->cap = upb_Log2CeilingSize(sorted->end); in _upb_mapsorter_resize() 117 s->size = sorted->end; in _upb_mapsorter_resize() 122 const upb_Map* map, _upb_sortedmap* sorted) { in _upb_mapsorter_pushmap() argument 125 if (!_upb_mapsorter_resize(s, sorted, map_size)) return false; in _upb_mapsorter_pushmap() 128 const void** dst = &s->entries[sorted->start]; in _upb_mapsorter_pushmap() [all …]
|
| D | map_sorter_internal.h | 73 _upb_sortedmap* sorted, upb_MapEntry* ent) { in _upb_sortedmap_next() argument 74 if (sorted->pos == sorted->end) return false; in _upb_sortedmap_next() 75 const upb_tabent* tabent = (const upb_tabent*)s->entries[sorted->pos++]; in _upb_sortedmap_next() 84 _upb_sortedmap* sorted, in _upb_sortedmap_nextext() argument 86 if (sorted->pos == sorted->end) return false; in _upb_sortedmap_nextext() 87 *ext = (const upb_Message_Extension*)s->entries[sorted->pos++]; in _upb_sortedmap_nextext() 92 _upb_sortedmap* sorted) { in _upb_mapsorter_popmap() argument 93 s->size = sorted->start; in _upb_mapsorter_popmap() 97 const upb_Map* map, _upb_sortedmap* sorted); 101 _upb_sortedmap* sorted);
|
| /external/grpc-grpc/third_party/upb/upb/message/internal/ |
| D | map_sorter.h | 57 _upb_sortedmap* sorted, upb_MapEntry* ent) { in _upb_sortedmap_next() argument 58 if (sorted->pos == sorted->end) return false; in _upb_sortedmap_next() 59 const upb_tabent* tabent = (const upb_tabent*)s->entries[sorted->pos++]; in _upb_sortedmap_next() 68 _upb_sortedmap* sorted, in _upb_sortedmap_nextext() argument 70 if (sorted->pos == sorted->end) return false; in _upb_sortedmap_nextext() 71 *ext = (const struct upb_Extension*)s->entries[sorted->pos++]; in _upb_sortedmap_nextext() 76 _upb_sortedmap* sorted) { in _upb_mapsorter_popmap() argument 77 s->size = sorted->start; in _upb_mapsorter_popmap() 81 const struct upb_Map* map, _upb_sortedmap* sorted); 85 _upb_sortedmap* sorted);
|
| /external/webp/src/utils/ |
| D | huffman_utils.c | 78 // sorted[code_lengths_size] is a pre-allocated array for sorting symbols 82 uint16_t sorted[]) { in BuildHuffmanTable() argument 86 int symbol; // symbol index in original or sorted table in BuildHuffmanTable() 89 // offsets in sorted table for each length: in BuildHuffmanTable() 94 assert((root_table != NULL && sorted != NULL) || in BuildHuffmanTable() 95 (root_table == NULL && sorted == NULL)); in BuildHuffmanTable() 111 // Generate offsets into sorted symbol table by code length. in BuildHuffmanTable() 124 if (sorted != NULL) { in BuildHuffmanTable() 128 sorted[offset[symbol_code_length]++] = symbol; in BuildHuffmanTable() 137 if (sorted != NULL) { in BuildHuffmanTable() [all …]
|
| /external/rust/crates/remain/tests/ |
| D | order.rs | 4 #[remain::sorted] 11 #[remain::sorted] 18 #[remain::sorted] 24 #[remain::sorted] 31 #[remain::sorted] 38 #[remain::sorted] 54 #[remain::sorted]
|
| /external/armnn/samples/ObjectDetection/test/ |
| D | NMSTests.cpp | 55 auto sorted = od::NonMaxSuppression(expectedResults, 0.49); variable 58 REQUIRE(sorted.size() == 4); 61 REQUIRE(sorted[0] == 1); 62 REQUIRE(sorted[1] == 3); 63 REQUIRE(sorted[2] == 4); 64 REQUIRE(sorted[3] == 5); 83 auto sorted = od::NonMaxSuppression(expectedResults, 0.5); variable 86 REQUIRE(sorted.size() == 1); 89 REQUIRE(sorted[0] == 0);
|
| /external/skia/docs/examples/ |
| D | Rect_joinNonEmptyArg.cpp | 7 SkRect sorted = rect.makeSorted(); in draw() local 11 sorted.joinNonEmptyArg(toJoin); in draw() 12 SkDebugf("sorted: %g, %g, %g, %g\n", sorted.fLeft, sorted.fTop, sorted.fRight, sorted.fBottom); in draw()
|
| D | Rect_joinPossiblyEmptyRect.cpp | 7 SkRect sorted = rect.makeSorted(); in draw() local 11 sorted.joinPossiblyEmptyRect(toJoin); in draw() 12 SkDebugf("sorted: %g, %g, %g, %g\n", sorted.fLeft, sorted.fTop, sorted.fRight, sorted.fBottom); in draw()
|
| /external/skia/infra/bots/task_drivers/perf_puppeteer_canvas/ |
| D | perf_puppeteer_canvas.go | 273 sorted := make([]float32, len(input)) 274 copy(sorted, input) 275 sort.Slice(sorted, func(i, j int) bool { 276 return sorted[i] < sorted[j] 279 avg := computeAverage(sorted) 281 for i := 0; i < len(sorted); i++ { 282 variance += (sorted[i] - avg) * (sorted[i] - avg) 284 stddev := float32(math.Sqrt(float64(variance / float32(len(sorted))))) 286 medIdx := (len(sorted) * 50) / 100 287 percentile90Idx := (len(sorted) * 90) / 100 [all …]
|
| /external/lzma/CPP/7zip/Common/ |
| D | UniqBlocks.cpp | 11 unsigned left = 0, right = Sorted.Size(); in AddUniq() 15 const unsigned index = Sorted[mid]; in AddUniq() 36 Sorted.Insert(left, index); in AddUniq() 51 unsigned num = Sorted.Size(); in GetReverseMap() 54 const unsigned *sorted = &Sorted[0]; in GetReverseMap() local 56 p[sorted[i]] = i; in GetReverseMap()
|
| /external/selinux/libsepol/cil/src/ |
| D | cil_binary.h | 334 * The function is given a structure containing the sorted ibpkeycons and 338 * @param[in] node The cil_sort structure that contains the sorted ibpkeycons. 346 * The function is given a structure containing the sorted ibendportcons and 350 * @param[in] node The cil_sort structure that contains the sorted ibendportcons. 358 * The function is given a structure containing the sorted portcons and 362 * @param[in] node The cil_sort structure that contains the sorted portcons. 370 * The function is given a structure containing the sorted netifcons and 374 * @param[in] node The cil_sort structure that contains the sorted netifcons. 382 * The function is given a structure containing the sorted nodecons and 386 * @param[in] node The cil_sort structure that contains the sorted nodecons. [all …]
|
| /external/cronet/third_party/libc++/src/test/std/algorithms/alg.sorting/alg.sort/sort/ |
| D | ranges.sort.pass.cpp | 63 auto sorted = input; in test_one() local 64 auto b = Iter(sorted.data()); in test_one() 65 auto e = Sent(Iter(sorted.data() + sorted.size())); in test_one() 68 assert(sorted == expected); in test_one() 69 assert(base(last) == sorted.data() + sorted.size()); in test_one() 73 auto sorted = input; in test_one() local 74 auto b = Iter(sorted.data()); in test_one() 75 auto e = Sent(Iter(sorted.data() + sorted.size())); in test_one() 79 assert(sorted == expected); in test_one() 80 assert(base(last) == sorted.data() + sorted.size()); in test_one() [all …]
|
| /external/cronet/third_party/libc++/src/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/ |
| D | ranges_sort_heap.pass.cpp | 62 constexpr void verify_sorted(const std::array<T, N>& sorted, Iter last, std::array<T, N> expected) { in verify_sorted() argument 63 assert(sorted == expected); in verify_sorted() 64 assert(std::to_address(base(last)) == sorted.data() + sorted.size()); in verify_sorted() 65 assert(std::is_sorted(sorted.begin(), sorted.end())); in verify_sorted() 73 auto sorted = input; in test_one() local 74 auto b = Iter(sorted.data()); in test_one() 75 auto e = Sent(Iter(sorted.data() + sorted.size())); in test_one() 78 verify_sorted(sorted, last, expected); in test_one() 82 auto sorted = input; in test_one() local 83 auto b = Iter(sorted.data()); in test_one() [all …]
|
| /external/rust/crates/remain/ |
| D | README.md | 1 Remain sorted 10 variants of an enum or the arms of a match expression are written in sorted 20 Place a `#[remain::sorted]` attribute on enums, structs, match-expressions, or 23 Alternatively, import as `use remain::sorted;` and use `#[sorted]` as the 27 #[remain::sorted] 41 #[remain::sorted] 55 #[remain::sorted] 105 `#[sorted]` to make them work on a stable compiler. 113 #[sorted]
|
| /external/angle/src/libANGLE/renderer/metal/ |
| D | gen_mtl_format_table.py | 441 for angle_format in sorted(angle_to_mtl.keys()): 443 for angle_format in sorted(angle_override.keys()): 448 for angle_format in sorted(mac_specific_map.keys()): 451 for angle_format in sorted(mac_override.keys()): 454 for angle_format in sorted(mac_override_bc1.keys()): 463 for angle_format in sorted(mac_override_es3.keys()): 470 for angle_format in sorted(sim_specific_map.keys()): 473 for angle_format in sorted(sim_override.keys()): 477 for angle_format in sorted(astc_tpl_map.keys()): 482 for angle_format in sorted(astc_tpl_map.keys()): [all …]
|
| /external/autotest/server/ |
| D | site_utils_unittest.py | 89 self.assertEqual(sorted(test_views.keys()), 90 sorted(expected_test_views.keys()), 92 (sorted(test_views.keys()), 93 sorted(expected_test_views.keys()))) 96 self.assertEqual(sorted(test_status_list), 97 sorted(expected_test_views[test_name]), 101 sorted(test_status_list), 102 sorted(expected_test_views[test_name])))
|
| /external/pigweed/pw_presubmit/py/pw_presubmit/ |
| D | keep_sorted.py | 14 """Keep specified lists sorted.""" 40 _START = re.compile(r'keep-sorted: (begin|start)', re.IGNORECASE) 41 _END = re.compile(r'keep-sorted: (stop|end)', re.IGNORECASE) 53 keep-sorted: start 54 keep-sorted: end 151 # non-comments. The keep-sorted check keeps this comment with the 153 # https://pigweed.dev/pw_presubmit/#sorted-blocks. 208 sorted_lines = sorted(lines, key=sort_key) 236 f'found {line.strip()!r} inside keep-sorted block', 295 f'unrecognized directive on keep-sorted line: ' [all …]
|
| /external/python/cpython3/Lib/lib2to3/fixes/ |
| D | fix_idioms.py | 25 v = sorted(EXPR) 47 sorted=any< 65 sorted=any< 81 # If we've matched one of the sort/sorted subpatterns above, we 84 if r and "sorted" in r: 95 elif "sorted" in results: 123 list_call.replace(Name("sorted", prefix=list_call.prefix)) 127 simple_expr.replace(Call(Name("sorted"), [new], 135 # shove them right after the sorted() call.
|
| /external/python/cpython2/Lib/lib2to3/fixes/ |
| D | fix_idioms.py | 25 v = sorted(EXPR) 47 sorted=any< 65 sorted=any< 81 # If we've matched one of the sort/sorted subpatterns above, we 84 if r and "sorted" in r: 95 elif "sorted" in results: 123 list_call.replace(Name(u"sorted", prefix=list_call.prefix)) 127 simple_expr.replace(Call(Name(u"sorted"), [new], 135 # shove them right after the sorted() call.
|
| /external/tensorflow/tensorflow/python/ops/ |
| D | sort_ops.py | 75 sorted along the given `axis`. 89 """Returns the indices of a tensor that give its sorted order along an axis. 98 >>> sorted = tf.gather(values, sort_order) 99 >>> assert tf.reduce_all(sorted == tf.sort(values)) 102 `values`, but along the given axis, values represent the index of the sorted 163 Either the sorted values, or the indices of the sorted values in the 170 valid_directions = ', '.join(sorted(_SORT_IMPL.keys())) 191 axis: Index of the axis which values should be sorted along. 192 return_argsort: If False, return the sorted values. If True, return the 196 The sorted values. [all …]
|
| /external/sdv/vsomeip/third_party/boost/move/include/boost/move/algo/detail/ |
| D | set_difference.hpp | 37 //Moves the elements from the sorted range [first1, last1) which are not found in the sorted 39 //The resulting range is also sorted. Equivalent elements are treated individually, 67 //Moves the elements from the sorted range [first1, last1) which are not found in the sorted 69 //The resulting range is also sorted. Equivalent elements are treated individually, 99 //Moves the elements from the sorted range [first1, last1) which are not found in the sorted 101 //The resulting range is also sorted. Equivalent elements from range 1 are moved past to end 152 //Moves the elements from the sorted range [first1, last1) which are not found in the sorted 154 //The resulting range is also sorted. Equivalent elements are treated individually,
|