Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,614 for qsort (0.05 sec)

  1. src/main/java/jcifs/http/NetworkExplorer.java

            out.print("<a class=\"sort\" style=\"width: " + maxLen + ";\" href=\"?fmt=detail&sort=name\">Name</a>");
            out.println("<a class=\"sort\" href=\"?fmt=detail&sort=size\">Size</a>");
            out.println("<a class=\"sort\" href=\"?fmt=detail&sort=type\">Type</a>");
            out.println("<a class=\"sort\" style=\"width: 180\" href=\"?fmt=detail&sort=date\">Modified</a><br clear='all'><p>");
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 21.3K bytes
    - Viewed (0)
  2. src/go/doc/testdata/examples/issue43658.go

    	)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	// Print out each step with communities ordered.
    	for _, d := range p {
    		comm := d.Communities()
    		for _, c := range comm {
    			sort.Sort(ordered.ByID(c))
    		}
    		sort.Sort(ordered.BySliceIDs(comm))
    		fmt.Printf("Low:%.2v High:%.2v Score:%v Communities:%v Q=%.3v\n",
    			d.Low, d.High, d.Score, comm, community.Q(g, comm, d.Low))
    	}
    
    	// Output:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 23:13:45 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/printers/internalversion/sorted_resource_name_list_test.go

    	}
    
    	in := SortableResourceNames{
    		api.ResourceName("foo"),
    		api.ResourceName("42"),
    		api.ResourceName("foobar"),
    		api.ResourceName("foo"),
    		api.ResourceName("bar"),
    		api.ResourceName(""),
    	}
    
    	sort.Sort(in)
    	if !reflect.DeepEqual(in, want) {
    		t.Errorf("got %v, want %v", in, want)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 09 11:14:08 UTC 2017
    - 1.2K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/compile/internal/test/testdata/ptrsort.go

    // Test generic sort function with two different pointer types in different packages,
    // make sure only one instantiation is created.
    
    import (
    	"fmt"
    
    	"cmd/compile/internal/test/testdata/mysort"
    )
    
    type MyString struct {
    	string
    }
    
    func (a *MyString) Less(b *MyString) bool {
    	return a.string < b.string
    }
    
    func main() {
    	mysort.F()
    
    	sl1 := []*mysort.MyInt{{7}, {1}, {4}, {6}}
    	mysort.Sort(sl1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 16 19:10:58 UTC 2022
    - 633 bytes
    - Viewed (0)
  9. pkg/config/host/names.go

    // limitations under the License.
    
    package host
    
    import (
    	"sort"
    	"strings"
    )
    
    // Names is a collection of Name; it exists so it's easy to sort hostnames consistently across Istio.
    // In a few locations we care about the order hostnames appear in Envoy config: primarily HTTP routes, but also in
    // gateways, and for SNI. In those locations, we sort hostnames longest to shortest with wildcards last.
    type Names []Name
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 01 19:19:22 UTC 2022
    - 4.3K 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