| /external/apache-commons-lang/src/main/java/org/apache/commons/lang3/ | 
| D | ArraySorter.java | 32      * @param array the array to sort.34      * @see Arrays#sort(byte[])
 36     public static byte[] sort(final byte[] array) {  in sort()  method in ArraySorter
 37         Arrays.sort(array);  in sort()
 44      * @param array the array to sort.
 46      * @see Arrays#sort(char[])
 48     public static char[] sort(final char[] array) {  in sort()  method in ArraySorter
 49         Arrays.sort(array);  in sort()
 56      * @param array the array to sort.
 58      * @see Arrays#sort(double[])
 [all …]
 
 | 
| /external/toybox/tests/ | 
| D | sort.test | 3 # SUSv4 compliant sort tests.10 testing "unknown argument" 'sort --oops 2>/dev/null ; echo $?' "2\n" "" ""
 11 testing "sort" "sort input" "a\nb\nc\n" "c\na\nb\n" ""
 12 testing "#2" "sort input" "010\n1\n3\n" "3\n1\n010\n" ""
 13 testing "stdin" "sort" "a\nb\nc\n" "" "b\na\nc\n"
 14 testing "numeric" "sort -n input" "1\n3\n010\n" "3\n1\n010\n" ""
 15 testing "reverse" "sort -r input" "wook\nwalrus\npoint\npabst\naargh\n" \
 17 testing "sort -o" "sort input -o output && cat output" "a\nb\nc\n" "c\na\nb\n" ""
 18 testing "sort -o same" "sort input -o input && cat input" "a\nb\nc\n" "c\na\nb\n" ""
 32 testing "one key" "sort -k4,4 input" \
 [all …]
 
 | 
| /external/tensorflow/tensorflow/compiler/xla/service/ | 
| D | stable_sort_expander.cc | 34 // If no matching iota operand is found, a iota operand is added to Sort. The39   auto* sort = Cast<HloSortInstruction>(instruction);  in ExpandInstruction()  local
 40   HloComputation* computation = sort->parent();  in ExpandInstruction()
 45   for (const HloInstruction* operand : sort->operands()) {  in ExpandInstruction()
 47     // same as the dimension to sort. Also it should have an integral type that  in ExpandInstruction()
 48     // is large enough for the number of elements in the sort dimension. For  in ExpandInstruction()
 50     // all Sort ops which are created by TopK.  in ExpandInstruction()
 54             sort->sort_dimension() &&  in ExpandInstruction()
 56       iota_index = sort->operand_index(operand);  in ExpandInstruction()
 62   // sort stable, we will have to add a new such operand.  in ExpandInstruction()
 [all …]
 
 | 
| D | sort_simplifier.cc | 30 // If the sort instruction has a tuple shape then looks for unused output31 // values and removes them from the sort instruction. Returns true if the
 33 StatusOr<bool> RemoveUnusedOperandFromSort(HloInstruction* sort) {  in RemoveUnusedOperandFromSort()  argument
 34   if (!sort->shape().IsTuple()) {  in RemoveUnusedOperandFromSort()
 38   HloComputation* computation = sort->parent();  in RemoveUnusedOperandFromSort()
 40   if (computation->root_instruction() == sort) {  in RemoveUnusedOperandFromSort()
 46   for (const HloInstruction* user : sort->users()) {  in RemoveUnusedOperandFromSort()
 55   auto comparator = sort->to_apply();  in RemoveUnusedOperandFromSort()
 56   for (int64_t i = 0; i < sort->operand_count() * 2; ++i) {  in RemoveUnusedOperandFromSort()
 64   if (used_indices.size() == sort->operand_count()) {  in RemoveUnusedOperandFromSort()
 [all …]
 
 | 
| D | stable_sort_expander_test.cc | 98      sort = (f32[64,8732]{1,0}, s32[64,8732]{1,0}) sort(keys, values),  in TEST_F()100      ROOT gte = f32[64,8732]{1,0} get-tuple-element(sort), index=0  in TEST_F()
 109                         m::Sort(m::Parameter(0), m::Iota()), 0)));  in TEST_F()
 144      sort = (f32[64,8732]{1,0}, s32[64,8732]{1,0}) sort(keys, values),  in TEST_F()
 146      ROOT gte = f32[64,8732]{1,0} get-tuple-element(sort), index=0  in TEST_F()
 155                         m::Sort(m::Parameter(0), m::Iota()), 0)));  in TEST_F()
 175      ROOT sort = (f32[64,8732]{1,0}, s32[64,8732]{1,0}) sort(keys, values),  in TEST_F()
 187                     m::Sort(m::Parameter(0), m::Parameter(1), m::Iota()), 0),  in TEST_F()
 189                     m::Sort(m::Parameter(0), m::Parameter(1), m::Iota()), 1))));  in TEST_F()
 210      sort = (f32[64,8732]{1,0}, s32[64,8732]{1,0}) sort(keys, values),  in TEST_F()
 [all …]
 
 | 
| D | sort_simplifier_test.cc | 48      sort = (f32[64,8732]{1,0}, s32[64,8732]{1,0}) sort(keys, values),  in TEST_F()50      ROOT gte = f32[64,8732]{1,0} get-tuple-element(sort), index=0  in TEST_F()
 62   EXPECT_THAT(root, GmockMatch(m::Sort(m::Parameter(0))));  in TEST_F()
 83      sort = (f32[64,87], s32[64,87], u32[64,87]) sort(  in TEST_F()
 86      gte.0 = f32[64,87] get-tuple-element(sort), index=0  in TEST_F()
 87      gte.1 = u32[64,87] get-tuple-element(sort), index=2  in TEST_F()
 99           m::GetTupleElement(m::Sort(m::Parameter(0), m::Parameter(2)), 0),  in TEST_F()
 100           m::GetTupleElement(m::Sort(m::Parameter(0), m::Parameter(2)), 1))));  in TEST_F()
 118 … sort = (f32[64,8732]{1,0}, s32[64,8732]{1,0}) sort(keys, values), dimensions={1}, to_apply=compare  in TEST_F()
 119      ROOT gte = s32[64,8732]{1,0} get-tuple-element(sort), index=1  in TEST_F()
 [all …]
 
 | 
| D | topk_rewriter.cc | 116   HloSortInstruction* sort = DynCast<HloSortInstruction>(inst);  in SortIsInTopK()  local117   if (sort == nullptr) {  in SortIsInTopK()
 120   if (sort->operand_count() != 1 && sort->operand_count() != 2) {  in SortIsInTopK()
 123   HloInstruction* data = sort->mutable_operand(0);  in SortIsInTopK()
 125   if (sort->operand_count() == 2) {  in SortIsInTopK()
 127         DynCast<HloIotaInstruction>(sort->mutable_operand(1));  in SortIsInTopK()
 131         iota->iota_dimension() != sort->sort_dimension()) {  in SortIsInTopK()
 135   if (!IsNanSafeGt(sort->to_apply())) {  in SortIsInTopK()
 138   const int64_t sort_dim = sort->sort_dimension();  in SortIsInTopK()
 144   for (HloInstruction* user : sort->users()) {  in SortIsInTopK()
 [all …]
 
 | 
| /external/python/cpython3/Lib/test/ | 
| D | sortperf.py | 1 """Sort performance test.61     L.sort()
 67     r"""Tabulate sort speed for lists of various sizes.
 71     The output displays i, 2**i, and the time to sort arrays of 2**i
 74     *sort: random data
 75     \sort: descending data
 76     /sort: ascending data
 77     3sort: ascending, then 3 random exchanges
 78     +sort: ascending, then 10 random at the end
 79     %sort: ascending, then randomly replace 1% of the elements w/ random values
 [all …]
 
 | 
| D | test_sort.py | 18         raw.sort(key=cmp_to_key(compare))20         raw.sort()
 103             s.sort(key=cmp_to_key(lambda a, b:  int(random.random() * 3) - 1))
 110                 self.assertRaises(RuntimeError, s.sort, key=bad_key)
 118                 s.sort()
 123                 check("exception during sort left some permutation", x, s)
 127             augmented.sort()    # forced stable because ties broken by index
 128             x = [e for e, i in augmented] # a stable sort of s
 136         # bug 453523 -- list.sort() crasher.
 138         # Mutations during a list sort should raise a ValueError.
 [all …]
 
 | 
| /external/python/cpython2/Lib/test/ | 
| D | sortperf.py | 1 """Sort performance test.61     L.sort()
 67     """Tabulate sort speed for lists of various sizes.
 71     The output displays i, 2**i, and the time to sort arrays of 2**i
 74     *sort: random data
 75     \sort: descending data
 76     /sort: ascending data
 77     3sort: ascending, then 3 random exchanges
 78     +sort: ascending, then 10 random at the end
 79     %sort: ascending, then randomly replace 1% of the elements w/ random values
 [all …]
 
 | 
| D | test_sort.py | 17         raw.sort(compare)19         raw.sort()
 103             s.sort(lambda a, b:  int(random.random() * 3) - 1)
 112                 s.sort()
 117                 check("exception during sort left some permutation", x, s)
 121             augmented.sort()    # forced stable because ties broken by index
 122             x = [e for e, i in augmented] # a stable sort of s
 130         # bug 453523 -- list.sort() crasher.
 132         # Mutations during a list sort should raise a ValueError.
 143         self.assertRaises(ValueError, L.sort)
 [all …]
 
 | 
| /external/ow2-asm/asm/src/main/java/org/objectweb/asm/ | 
| D | TypeReference.java | 42    * The sort of type references that target a type parameter of a generic class. See {@link48    * The sort of type references that target a type parameter of a generic method. See {@link
 54    * The sort of type references that target the super class of a class or one of the interfaces it
 60    * The sort of type references that target a bound of a type parameter of a generic class. See
 66    * The sort of type references that target a bound of a type parameter of a generic method. See
 71   /** The sort of type references that target the type of a field. See {@link #getSort}. */
 74   /** The sort of type references that target the return type of a method. See {@link #getSort}. */
 78    * The sort of type references that target the receiver type of a method. See {@link #getSort}.
 83    * The sort of type references that target the type of a formal parameter of a method. See {@link
 89    * The sort of type references that target the type of an exception declared in the throws clause
 [all …]
 
 | 
| /external/tensorflow/tensorflow/python/ops/ | 
| D | sort_ops.py | 29 @tf_export('sort')31 def sort(values, axis=-1, direction='ASCENDING', name=None):  function
 37   >>> tf.sort(a).numpy()
 40   >>> tf.sort(a, direction='DESCENDING').numpy()
 43   For multidimensional inputs you can control which axis the sort is applied
 49   >>> tf.sort(mat, axis=-1).numpy()
 53   >>> tf.sort(mat, axis=0).numpy()
 60     * `tf.argsort`: Like sort, but it returns the sort indices.
 61     * `tf.math.top_k`: A partial sort that returns a fixed number of top values
 67     axis: The axis along which to sort. The default is -1, which sorts the last
 [all …]
 
 | 
| /external/apache-commons-lang/src/test/java/org/apache/commons/lang3/ | 
| D | ArraySorterTest.java | 32         Arrays.sort(array1);  in testSortByteArray()33         assertArrayEquals(array1, ArraySorter.sort(array2));  in testSortByteArray()
 40         Arrays.sort(array1);  in testSortCharArray()
 41         assertArrayEquals(array1, ArraySorter.sort(array2));  in testSortCharArray()
 48         Arrays.sort(array1);  in testSortComparable()
 49         assertArrayEquals(array1, ArraySorter.sort(array2, String::compareTo));  in testSortComparable()
 56         Arrays.sort(array1);  in testSortDoubleArray()
 57         assertArrayEquals(array1, ArraySorter.sort(array2));  in testSortDoubleArray()
 64         Arrays.sort(array1);  in testSortFloatArray()
 65         assertArrayEquals(array1, ArraySorter.sort(array2));  in testSortFloatArray()
 [all …]
 
 | 
| /external/icu/icu4c/source/data/lang/ | 
| D | hi_Latn.txt | 48             non-ignorable{"Symbols ko sort karein"}49             shifted{"Symbols ko ignore karte hue sort karein"}
 52             no{"Accents ko normally sort karein"}
 53             yes{"Accents ko reverse mein sort karein"}
 56             lower{"Pahle lowercase walon ko sort karein"}
 57             no{"Normal case order mein sort karein"}
 58             upper{"Pahle uppercase walon ko sort karein"}
 65             no{"Bina normalization ke sort karein"}
 66             yes{"Sort Unicode Normalized"}
 69             no{"Digits ko alag-alag sort karein"}
 [all …]
 
 | 
| D | en_CA.txt | 16         collation{"sort order"}93             no{"Sort Without Normalisation"}
 94             yes{"Sort Unicode Normalised"}
 97             big5han{"traditional Chinese sort order - Big5"}
 98             compat{"previous sort order, for compatibility"}
 99             dictionary{"dictionary sort order"}
 100             ducet{"default Unicode sort order"}
 101             gb2312han{"simplified Chinese sort order - GB2312"}
 102             phonebook{"phonebook sort order"}
 103             phonetic{"phonetic sort order"}
 [all …]
 
 | 
| /external/cronet/third_party/icu/source/data/lang/ | 
| D | hi_Latn.txt | 48             non-ignorable{"Symbols ko sort karein"}49             shifted{"Symbols ko ignore karte hue sort karein"}
 52             no{"Accents ko normally sort karein"}
 53             yes{"Accents ko reverse mein sort karein"}
 56             lower{"Pahle lowercase walon ko sort karein"}
 57             no{"Normal case order mein sort karein"}
 58             upper{"Pahle uppercase walon ko sort karein"}
 65             no{"Bina normalization ke sort karein"}
 66             yes{"Sort Unicode Normalized"}
 69             no{"Digits ko alag-alag sort karein"}
 [all …]
 
 | 
| D | en_CA.txt | 16         collation{"sort order"}93             no{"Sort Without Normalisation"}
 94             yes{"Sort Unicode Normalised"}
 97             big5han{"traditional Chinese sort order - Big5"}
 98             compat{"previous sort order, for compatibility"}
 99             dictionary{"dictionary sort order"}
 100             ducet{"default Unicode sort order"}
 101             gb2312han{"simplified Chinese sort order - GB2312"}
 102             phonebook{"phonebook sort order"}
 103             phonetic{"phonetic sort order"}
 [all …]
 
 | 
| /external/clang/unittests/Format/ | 
| D | SortIncludesTest.cpp | 1 //===- unittest/Format/SortIncludesTest.cpp - Include sort unit tests -----===//27   std::string sort(StringRef Code, StringRef FileName = "input.cpp") {  in sort()  function in clang::format::__anonec0c93740111::SortIncludesTest
 51             sort("#include \"a.h\"\n"  in TEST_F()
 57   // Identical #includes have led to a failure with an unstable sort.  in TEST_F()
 76             sort("#include <b>\n"  in TEST_F()
 91             sort("#include \"a.h\"\n"  in TEST_F()
 100             sort("#include \"a.h\"\n"  in TEST_F()
 109             sort("#include \"a.h\" // comment\n"  in TEST_F()
 118             sort(" #include \"a.h\"\n"  in TEST_F()
 124             sort("# include \"a.h\"\n"  in TEST_F()
 [all …]
 
 | 
| /external/python/cpython2/Objects/ | 
| D | listsort.txt | 51   someone has suggested "and it would be cool if list.sort() had a special58       *sort: random data
 59       \sort: descending data
 60       /sort: ascending data
 61       3sort: ascending, then 3 random exchanges
 62       +sort: ascending, then 10 random at the end
 63       %sort: ascending, then randomly replace 1% of elements w/ random values
 64       ~sort: many duplicates
 65       =sort: all equal
 66       !sort: worst case scenario
 [all …]
 
 | 
| /external/python/cpython3/Objects/ | 
| D | listsort.txt | 51   someone has suggested "and it would be cool if list.sort() had a special58       *sort: random data
 59       \sort: descending data
 60       /sort: ascending data
 61       3sort: ascending, then 3 random exchanges
 62       +sort: ascending, then 10 random at the end
 63       %sort: ascending, then randomly replace 1% of elements w/ random values
 64       ~sort: many duplicates
 65       =sort: all equal
 66       !sort: worst case scenario
 [all …]
 
 | 
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ | 
| D | Z3Solver.cpp | 65 /// Wrapper for Z3 Sort71   Z3_sort Sort;  member in __anonfa99afad0111::Z3Sort
 75   Z3Sort(Z3Context &C, Z3_sort ZS) : Context(C), Sort(ZS) {  in Z3Sort()
 76     Z3_inc_ref(Context.Context, reinterpret_cast<Z3_ast>(Sort));  in Z3Sort()
 80   Z3Sort(const Z3Sort &Other) : Context(Other.Context), Sort(Other.Sort) {  in Z3Sort()
 81     Z3_inc_ref(Context.Context, reinterpret_cast<Z3_ast>(Sort));  in Z3Sort()
 87     Z3_inc_ref(Context.Context, reinterpret_cast<Z3_ast>(Other.Sort));  in operator =()
 88     Z3_dec_ref(Context.Context, reinterpret_cast<Z3_ast>(Sort));  in operator =()
 89     Sort = Other.Sort;  in operator =()
 97     if (Sort)  in ~Z3Sort()
 [all …]
 
 | 
| /external/python/cpython3/Doc/howto/ | 
| D | sorting.rst | 10 Python lists have a built-in :meth:`list.sort` method that modifies the list20 A simple ascending sort is very easy: just call the :func:`sorted` function. It
 28 You can also use the :meth:`list.sort` method. It modifies the list
 36     >>> a.sort()
 40 Another difference is that the :meth:`list.sort` method is only defined for
 51 Both :meth:`list.sort` and :func:`sorted` have a *key* parameter to specify a
 67 A common pattern is to sort complex objects using some of the object's indices
 77     >>> sorted(student_tuples, key=lambda student: student[2])   # sort by age
 97     >>> sorted(student_objects, key=lambda student: student.age)   # sort by age
 121 sort by *grade* then by *age*:
 [all …]
 
 | 
| /external/selinux/libsepol/cil/src/ | 
| D | cil_post.c | 344 	/* sort ipv4 before ipv6 */  in cil_post_nodecon_compare()725 		struct cil_sort *sort = db->netifcon;  in __cil_post_db_array_helper()  local
 726 		uint32_t count = sort->count;  in __cil_post_db_array_helper()
 727 		uint32_t i = sort->index;  in __cil_post_db_array_helper()
 728 		if (sort->array == NULL) {  in __cil_post_db_array_helper()
 729 			sort->array = cil_malloc(sizeof(*sort->array)*count);  in __cil_post_db_array_helper()
 731 		sort->array[i] = node->data;  in __cil_post_db_array_helper()
 732 		sort->index++;  in __cil_post_db_array_helper()
 736 		struct cil_sort *sort = db->ibendportcon;  in __cil_post_db_array_helper()  local
 737 		uint32_t count = sort->count;  in __cil_post_db_array_helper()
 [all …]
 
 | 
| /external/python/cpython2/Doc/howto/ | 
| D | sorting.rst | 10 Python lists have a built-in :meth:`list.sort` method that modifies the list20 A simple ascending sort is very easy: just call the :func:`sorted` function. It
 26 You can also use the :meth:`list.sort` method of a list. It modifies the list
 32     >>> a.sort()
 36 Another difference is that the :meth:`list.sort` method is only defined for
 45 Starting with Python 2.4, both :meth:`list.sort` and :func:`sorted` added a
 58 A common pattern is to sort complex objects using some of the object's indices
 66     >>> sorted(student_tuples, key=lambda student: student[2])   # sort by age
 84     >>> sorted(student_objects, key=lambda student: student.age)   # sort by age
 106 sort by *grade* then by *age*:
 [all …]
 
 |