Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 975 for qsort (0.04 sec)

  1. src/slices/sort_test.go

    		n /= 100
    	}
    	data := make([]int, n)
    	for i := 0; i < len(data); i++ {
    		data[i] = rand.Intn(100)
    	}
    	if IsSorted(data) {
    		t.Fatalf("terrible rand.rand")
    	}
    	Sort(data)
    	if !IsSorted(data) {
    		t.Errorf("sort didn't sort - 1M ints")
    	}
    }
    
    type intPair struct {
    	a, b int
    }
    
    type intPairs []intPair
    
    // Pairs compare on a only.
    func intPairCmp(x, y intPair) int {
    	return x.a - y.a
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/language/coverage.go

    	scripts func() []Script
    	regions func() []Region
    }
    
    func (s *coverage) Tags() []Tag {
    	if s.tags == nil {
    		return nil
    	}
    	return s.tags()
    }
    
    // bases implements sort.Interface and is used to sort base languages.
    type bases []Base
    
    func (b bases) Len() int {
    	return len(b)
    }
    
    func (b bases) Swap(i, j int) {
    	b[i], b[j] = b[j], b[i]
    }
    
    func (b bases) Less(i, j int) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. docs/metrics/prometheus/grafana/node/minio-node.json

            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom",
              "showLegend": true
            },
            "tooltip": {
              "mode": "multi",
              "sort": "none"
            }
          },
          "pluginVersion": "10.4.0",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_PROMETHEUS}"
              },
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 13:24:37 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/internal/language/compose.go

    }
    
    // Make returns a new Tag from the current settings.
    func (b *Builder) Make() Tag {
    	t := b.Tag
    
    	if len(b.extensions) > 0 || len(b.variants) > 0 {
    		sort.Sort(sortVariants(b.variants))
    		sort.Strings(b.extensions)
    
    		if b.private != "" {
    			b.extensions = append(b.extensions, b.private)
    		}
    		n := maxCoreSize + tokenLen(b.variants...) + tokenLen(b.extensions...)
    		buf := make([]byte, n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/loadbalancer/loadbalancer.go

    	}
    
    	// since Priorities should range from 0 (highest) to N (lowest) without skipping.
    	// 2. adjust the priorities in order
    	// 2.1 sort all priorities in increasing order.
    	priorities := []int{}
    	for priority := range priorityMap {
    		priorities = append(priorities, priority)
    	}
    	sort.Ints(priorities)
    	// 2.2 adjust LocalityLbEndpoints priority
    	// if the index and value of priorities array is not equal.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. pkg/config/analysis/analyzers/sidecar/util.go

    // limitations under the License.
    
    package sidecar
    
    import (
    	"sort"
    
    	"istio.io/istio/pkg/config/resource"
    )
    
    func getNames(entries []*resource.Instance) []string {
    	names := make([]string, 0, len(entries))
    	for _, rs := range entries {
    		names = append(names, string(rs.Metadata.FullName.Name))
    	}
    	sort.Strings(names)
    	return names
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 884 bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    func (g *Graph) SortNodes(cum bool, visualMode bool) {
    	// Sort nodes based on requested mode
    	switch {
    	case visualMode:
    		// Specialized sort to produce a more visually-interesting graph
    		g.Nodes.Sort(EntropyOrder)
    	case cum:
    		g.Nodes.Sort(CumNameOrder)
    	default:
    		g.Nodes.Sort(FlatNameOrder)
    	}
    }
    
    // SelectTopNodePtrs returns a set of the top maxNodes *Node in a graph.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  8. testing/integ-test/src/integTest/groovy/org/gradle/integtests/MixInCoreTypesTransformingClassLoaderIntegrationTest.groovy

                    static def returnTypesFor(Object object, String methodName, Class... returnTypes) {
                        assert object.getClass().methods.findAll { it.name == methodName }*.returnType.name.sort() == returnTypes*.name.sort()
                    }
                }
    
                task customTask(type: CustomTask) {
                    doFirst { task ->
                        // Internal return type leaked in Gradle 0.9
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

        List<Entry<K, V>> entries =
            Helpers.copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
        Collections.sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator()));
    
        // some tests assume SEVERAL == 3
        if (entries.size() >= 1) {
          a = entries.get(0);
          if (entries.size() >= 3) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. manifests/addons/dashboards/istio-performance-dashboard.json

            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom",
              "showLegend": true
            },
            "tooltip": {
              "mode": "multi",
              "sort": "none"
            }
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
              },
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 03:47:04 UTC 2024
    - 39.6K bytes
    - Viewed (0)
Back to top