Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 4,692 for spring (3.64 sec)

  1. src/strings/strings.go

    		return b.String()
    	}
    	return Map(unicode.ToLower, s)
    }
    
    // ToTitle returns a copy of the string s with all Unicode letters mapped to
    // their Unicode title case.
    func ToTitle(s string) string { return Map(unicode.ToTitle, s) }
    
    // ToUpperSpecial returns a copy of the string s with all Unicode letters mapped to their
    // upper case using the case mapping specified by c.
    func ToUpperSpecial(c unicode.SpecialCase, s string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/inline/inlheur/scoring.go

    			base.Debug.InlScoreAdj, err)
    	}
    }
    
    func adjStringToVal(s string) (scoreAdjustTyp, bool) {
    	for adj := scoreAdjustTyp(1); adj < sentinelScoreAdj; adj <<= 1 {
    		if adj.String() == s {
    			return adj, true
    		}
    	}
    	return 0, false
    }
    
    func parseScoreAdj(val string) error {
    	clauses := strings.Split(val, "/")
    	if len(clauses) == 0 {
    		return fmt.Errorf("no clauses")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/interpodaffinity/scoring.go

    	"k8s.io/klog/v2"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    )
    
    // preScoreStateKey is the key in CycleState to InterPodAffinity pre-computed data for Scoring.
    const preScoreStateKey = "PreScore" + Name
    
    type scoreMap map[string]map[string]int64
    
    // preScoreState computed at PreScore and used at Score.
    type preScoreState struct {
    	topologyScore scoreMap
    	podInfo       *framework.PodInfo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/options/serving.go

    	if !ok {
    		ln.Close()
    		return nil, 0, fmt.Errorf("invalid listen address: %q", ln.Addr().String())
    	}
    
    	return ln, tcpAddr.Port, nil
    }
    
    type multipleControls []func(network, addr string, conn syscall.RawConn) error
    
    func (mcs multipleControls) Control(network, addr string, conn syscall.RawConn) error {
    	for _, c := range mcs {
    		if err := c(network, addr, conn); err != nil {
    			return err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 13:08:18 UTC 2024
    - 15.9K bytes
    - Viewed (1)
  5. pkg/scheduler/framework/plugins/podtopologyspread/scoring.go

    const invalidScore = -1
    
    // preScoreState computed at PreScore and used at Score.
    // Fields are exported for comparison during testing.
    type preScoreState struct {
    	Constraints []topologySpreadConstraint
    	// IgnoredNodes is a set of node names which miss some Constraints[*].topologyKey.
    	IgnoredNodes sets.Set[string]
    	// TopologyPairToPodCounts is keyed with topologyPair, and valued with the number of matching pods.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  6. src/fmt/print.go

    func Printf(format string, a ...any) (n int, err error) {
    	return Fprintf(os.Stdout, format, a...)
    }
    
    // Sprintf formats according to a format specifier and returns the resulting string.
    func Sprintf(format string, a ...any) string {
    	p := newPrinter()
    	p.doPrintf(format, a)
    	s := string(p.buf)
    	p.free()
    	return s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  7. pkg/kube/inject/template.go

    	}
    	return proto.Message(pc)
    }
    
    func toJSONMap(mps ...map[string]string) string {
    	data, err := json.Marshal(mergeMaps(mps...))
    	if err != nil {
    		return ""
    	}
    	return string(data)
    }
    
    func omit(dict map[string]string, keys ...string) map[string]string {
    	res := map[string]string{}
    
    	omit := make(map[string]bool, len(keys))
    	for _, k := range keys {
    		omit[k] = true
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 16 02:12:03 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  8. pkg/log/scope.go

    //
    // Scope names cannot include colons, commas, or periods.
    func RegisterScope(name string, description string) *Scope {
    	// We only allow internal callers to set callerSkip
    	return registerScope(name, description, 0)
    }
    
    func registerScope(name string, description string, callerSkip int) *Scope {
    	if strings.ContainsAny(name, ":,.") {
    		panic(fmt.Sprintf("scope name %s is invalid, it cannot contain colons, commas, or periods", name))
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 16:47:01 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. operator/cmd/mesh/install.go

    	var b strings.Builder
    	b.WriteString("InFilenames:      " + fmt.Sprint(a.InFilenames) + "\n")
    	b.WriteString("ReadinessTimeout: " + fmt.Sprint(a.ReadinessTimeout) + "\n")
    	b.WriteString("SkipConfirmation: " + fmt.Sprint(a.SkipConfirmation) + "\n")
    	b.WriteString("Force:            " + fmt.Sprint(a.Force) + "\n")
    	b.WriteString("Verify:           " + fmt.Sprint(a.Verify) + "\n")
    	b.WriteString("Set:              " + fmt.Sprint(a.Set) + "\n")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:35 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. src/crypto/ecdsa/ecdsa.go

    	randutil.MaybeReadByte(rand)
    
    	if boring.Enabled && rand == boring.RandReader {
    		b, err := boringPrivateKey(priv)
    		if err != nil {
    			return nil, err
    		}
    		return boring.SignMarshalECDSA(b, hash)
    	}
    	boring.UnreachableExceptTests()
    
    	csprng, err := mixedCSPRNG(rand, priv, hash)
    	if err != nil {
    		return nil, err
    	}
    
    	if sig, err := signAsm(priv, csprng, hash); err != errNoAsm {
    		return sig, err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
Back to top