Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,423 for qsort (0.04 sec)

  1. src/main/java/org/codelibs/fess/entity/FacetInfo.java

                sort = fessConfig.getQueryFacetFieldsSort();
            }
            if (StringUtil.isNotBlank(fessConfig.getQueryFacetFieldsMissing())) {
                missing = fessConfig.getQueryFacetFieldsMissing();
            }
        }
    
        public BucketOrder getBucketOrder() {
            if (StringUtil.isNotBlank(sort)) {
                final String[] values = sort.split("\\.");
                final boolean asc;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/JvmInstallationMetadataComparatorTest.groovy

            given:
            def metadata = [
                jvmMetadata("6.0"),
                jvmMetadata("8.0"),
                jvmMetadata("11.0"),
                jvmMetadata("5.1")
            ]
    
            when:
            metadata.sort(new JvmInstallationMetadataComparator(getJavaHome()))
    
            then:
            assertOrder(metadata, "11.0", "8.0", "6.0", "5.1")
        }
    
        def "deterministically matches vendor over vendor-specific tool version"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. src/sort/sort_impl_120.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !go1.21
    
    package sort
    
    func intsImpl(x []int)         { Sort(IntSlice(x)) }
    func float64sImpl(x []float64) { Sort(Float64Slice(x)) }
    func stringsImpl(x []string)   { Sort(StringSlice(x)) }
    
    func intsAreSortedImpl(x []int) bool         { return IsSorted(IntSlice(x)) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 13:00:18 UTC 2023
    - 602 bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/ModuleSelectorsTest.groovy

            expect:
            sort([prefer30, prefer10, prefer20]) == [prefer30, prefer20, prefer10]
    
            and:
            sort([prefer30, prefer10, prefer20, require20]) == [require20, prefer30, prefer20, prefer10]
    
            and:
            sort([prefer30, prefer10, prefer20, require20, require30]) == [require30, require20, prefer30, prefer20, prefer10]
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. src/cmp/cmp_test.go

    	// Test that our comparison function is consistent with
    	// sort.Float64s.
    	input := []float64{1.0, 0.0, negzero, math.Inf(1), math.Inf(-1), math.NaN()}
    	sort.Float64s(input)
    	for i := 0; i < len(input)-1; i++ {
    		if cmp.Less(input[i+1], input[i]) {
    			t.Errorf("Less sort mismatch at %d in %v", i, input)
    		}
    		if cmp.Compare(input[i], input[i+1]) > 0 {
    			t.Errorf("Compare sort mismatch at %d in %v", i, input)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. tests/helper_test.go

    		if len(user.Pets) != len(expect.Pets) {
    			t.Fatalf("pets should equal, expect: %v, got %v", len(expect.Pets), len(user.Pets))
    		}
    
    		sort.Slice(user.Pets, func(i, j int) bool {
    			return user.Pets[i].ID > user.Pets[j].ID
    		})
    
    		sort.Slice(expect.Pets, func(i, j int) bool {
    			return expect.Pets[i].ID > expect.Pets[j].ID
    		})
    
    		for idx, pet := range user.Pets {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/CollectionUtilsTest.groovy

            expect:
            def l = [1, 2, 3]
            !sort(l, naturalComparator).is(l)
    
            and:
            sort([2, 1, 3], naturalComparator) == [1, 2, 3]
            sort([2, 1, 3] as Set, naturalComparator) == [1, 2, 3]
            sort([], naturalComparator) == []
            sort([] as Set, naturalComparator) == []
        }
    
        def "sorting"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  8. pkg/controller/statefulset/stateful_set_control_test.go

    		spc.setPodRunning(set, 5)
    		originalPods, _ := spc.setPodReady(set, 4)
    		sort.Sort(ascendingOrdinal(originalPods))
    		if _, err := ssc.UpdateStatefulSet(context.TODO(), set, originalPods); err != nil {
    			t.Fatal(err)
    		}
    		pods, err := spc.podsLister.Pods(set.Namespace).List(selector)
    		if err != nil {
    			t.Fatal(err)
    		}
    		sort.Sort(ascendingOrdinal(pods))
    		// pods 0, 1,2, 4,5 should be present(note 3 is missing)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/dict/mapping/CharMappingItem.java

        }
    
        public boolean isDeleted() {
            return isUpdated() && newInputs.length == 0;
        }
    
        public void sort() {
            if (inputs != null) {
                Arrays.sort(inputs);
            }
            if (newInputs != null) {
                Arrays.sort(newInputs);
            }
        }
    
        @Override
        public int hashCode() {
            return Objects.hash(Arrays.hashCode(inputs), output);
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/scripts/process-log.groovy

        if (entry instanceof Map) {
            entry.collectEntries {
                [(it.key), sortDeep(it.value)]
            }.sort()
        } else if (entry instanceof Iterable) {
            entry.collect {
                sortDeep(it)
            }.sort()
        } else {
            entry
        }
    }
    
    private sort(String spec) {
        def jsonSlurper = new JsonSlurper()
        def parsed = jsonSlurper.parseText(spec)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top