Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,614 for qsort (0.48 sec)

  1. test/typeparam/select.dir/main.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"sort"
    
    	"./a"
    )
    
    func main() {
    	c := make(chan int, 1)
    	d := make(chan int, 1)
    
    	c <- 5
    	d <- 6
    
    	var r [2]int
    	r[0] = a.F(c, d)
    	r[1] = a.F(c, d)
    	sort.Ints(r[:])
    
    	if r != [2]int{5, 6} {
    		panic("incorrect results")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 03 22:57:02 UTC 2021
    - 408 bytes
    - Viewed (0)
  2. pkg/registry/rbac/validation/rule_test.go

    		rules, err := ruleResolver.RulesFor(tc.user, tc.namespace)
    		if err != nil {
    			t.Errorf("case %d: GetEffectivePolicyRules(context)=%v", i, err)
    			continue
    		}
    
    		// Sort for deep equals
    		sort.Sort(byHash(rules))
    		sort.Sort(byHash(tc.effectiveRules))
    
    		if !reflect.DeepEqual(rules, tc.effectiveRules) {
    			ruleDiff := cmp.Diff(rules, tc.effectiveRules)
    			t.Errorf("case %d: %s", i, ruleDiff)
    		}
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. src/go/build/deps_test.go

    	cmp, internal/race, math/bits
    	< iter
    	< maps, slices;
    
    	internal/oserror, maps, slices
    	< RUNTIME;
    
    	RUNTIME
    	< sort
    	< container/heap;
    
    	RUNTIME
    	< io;
    
    	RUNTIME
    	< arena;
    
    	syscall !< io;
    	reflect !< sort;
    
    	RUNTIME, unicode/utf8
    	< path;
    
    	unicode !< path;
    
    	# SYSCALL is RUNTIME plus the packages necessary for basic system calls.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. docs/metrics/prometheus/grafana/bucket/minio-bucket.json

            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom",
              "showLegend": true
            },
            "tooltip": {
              "mode": "multi",
              "sort": "desc"
            }
          },
          "pluginVersion": "10.4.0",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_PROMETHEUS}"
              },
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 11:11:51 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  5. test/fixedbugs/issue5515.go

    func main() {
            b := make([]T, 8)
            b[0] = 0xdeadbeef
            rs := Slice(b)
            sort(rs)
    }
    
    type Slice []T
    
    func (s Slice) Swap(i, j int) {
            tmp := s[i]
            s[i] = s[j]
            s[j] = tmp
    }
    
    type Interface interface {
            Swap(i, j int)
    }
    
    func sort(data Interface) {
            data.Swap(0, 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 03:23:21 UTC 2013
    - 597 bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/typelink.go

    			continue
    		}
    		if ldr.IsTypelink(s) {
    			typelinks = append(typelinks, typelinkSortKey{decodetypeStr(ldr, ctxt.Arch, s), s})
    		} else if ldr.IsItab(s) {
    			itabs = append(itabs, s)
    		}
    	}
    	sort.Sort(typelinks)
    
    	tl := ldr.CreateSymForUpdate("runtime.typelink", 0)
    	tl.SetType(sym.STYPELINK)
    	ldr.SetAttrLocal(tl.Sym(), true)
    	tl.SetSize(int64(4 * len(typelinks)))
    	tl.Grow(tl.Size())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 03 21:13:25 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  7. pkg/controller/namespace/deletion/status_condition_utils.go

    			if numRemaining == 0 {
    				continue
    			}
    			remainingResources = append(remainingResources, fmt.Sprintf("%s.%s has %d resource instances", gvr.Resource, gvr.Group, numRemaining))
    		}
    		// sort for stable updates
    		sort.Strings(remainingResources)
    		u.newConditions = append(u.newConditions, v1.NamespaceCondition{
    			Type:               v1.NamespaceContentRemaining,
    			Status:             v1.ConditionTrue,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 06 13:58:41 UTC 2019
    - 8.1K bytes
    - Viewed (0)
  8. src/sort/slice.go

    // license that can be found in the LICENSE file.
    
    package sort
    
    import (
    	"internal/reflectlite"
    	"math/bits"
    )
    
    // Slice sorts the slice x given the provided less function.
    // It panics if x is not a slice.
    //
    // The sort is not guaranteed to be stable: equal elements
    // may be reversed from their original order.
    // For a stable sort, use [SliceStable].
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/modifiers/renderers/KtModifiersSorter.kt

    public interface KaModifiersSorter {
        public fun sort(
            analysisSession: KaSession,
            modifiers: List<KtModifierKeywordToken>,
            owner: KaDeclarationSymbol,
        ): List<KtModifierKeywordToken>
    
        public object CANONICAL : KaModifiersSorter {
            override fun sort(
                analysisSession: KaSession,
                modifiers: List<KtModifierKeywordToken>,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. pkg/apis/rbac/v1/helpers.go

    		}
    	default:
    		return rbacv1.PolicyRule{}, fmt.Errorf("a rule must have either nonResourceURLs or resources: %#v", r.PolicyRule)
    	}
    
    	sort.Strings(r.PolicyRule.Resources)
    	sort.Strings(r.PolicyRule.ResourceNames)
    	sort.Strings(r.PolicyRule.APIGroups)
    	sort.Strings(r.PolicyRule.NonResourceURLs)
    	sort.Strings(r.PolicyRule.Verbs)
    	return r.PolicyRule, nil
    }
    
    // +k8s:deepcopy-gen=false
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 18 15:37:57 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top