Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 332 for clip (0.52 sec)

  1. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

        // where {hi,lo} are characters forming a surrogate pair such that:
        // codePointOf(hi, lo) > safeMax
        // which would result in the surrogate pair being (wrongly) considered safe.
        // If we clip the safe range used during the per-character tests so it is
        // below the values of characters in surrogate pairs, this cannot occur.
        // This approach does mean that we break out of the fast path code in cases
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  2. src/log/slog/record.go

    	}
    }
    
    // Clone returns a copy of the record with no shared state.
    // The original record and the clone can both be modified
    // without interfering with each other.
    func (r Record) Clone() Record {
    	r.back = slices.Clip(r.back) // prevent append from mutating shared array
    	return r
    }
    
    // NumAttrs returns the number of attributes in the [Record].
    func (r Record) NumAttrs() int {
    	return r.nFront + len(r.back)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:30:56 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/mvs/graph.go

    // The caller must ensure that the root slice is not modified while the Graph
    // may be in use.
    func NewGraph(cmp func(p, v1, v2 string) int, roots []module.Version) *Graph {
    	g := &Graph{
    		cmp:      cmp,
    		roots:    slices.Clip(roots),
    		required: make(map[module.Version][]module.Version),
    		isRoot:   make(map[module.Version]bool),
    		selected: make(map[string]string),
    	}
    
    	for _, m := range roots {
    		g.isRoot[m] = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 02:52:19 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. pkg/test/loadbalancersim/mesh/node.go

    }
    
    func (n *Node) calcQLatency(qlen int) time.Duration {
    	if !n.qLatencyEnabled {
    		return 0
    	}
    
    	// Compute the queue latency in milliseconds.
    	latency := math.Pow(1.2, float64(qlen+1))
    
    	// Clip the latency at the maximum value.
    	clippedLatency := math.Min(latency, float64(maxQLatency.Milliseconds()))
    
    	// Return the latency as milliseconds.
    	return time.Duration(clippedLatency) * time.Millisecond
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go

    		"context.WithTimeout":  true,
    		"context.WithValue":    true,
    		"errors.New":           true,
    		"fmt.Errorf":           true,
    		"fmt.Sprint":           true,
    		"fmt.Sprintf":          true,
    		"slices.Clip":          true,
    		"slices.Compact":       true,
    		"slices.CompactFunc":   true,
    		"slices.Delete":        true,
    		"slices.DeleteFunc":    true,
    		"slices.Grow":          true,
    		"slices.Insert":        true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/vcweb/hg.go

    		defer cancel()
    
    		cmd := exec.CommandContext(ctx, h.hgPath, "serve", "--port", "0", "--address", "localhost", "--accesslog", os.DevNull, "--name", "vcweb", "--print-url")
    		cmd.Dir = dir
    		cmd.Env = append(slices.Clip(env), "PWD="+dir)
    
    		cmd.Cancel = func() error {
    			err := cmd.Process.Signal(os.Interrupt)
    			if err != nil && !errors.Is(err, os.ErrProcessDone) {
    				err = cmd.Process.Kill()
    			}
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 02:52:19 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. src/cmd/go/go_unix_test.go

    	// with a signal they might fail to clean up some temp files, and we don't
    	// want that to cause an "unexpected files" failure at the end of the run.
    	cmd.Env = append(slices.Clip(tg.env), tempEnvName()+"="+t.TempDir())
    
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		Setpgid: true,
    	}
    	cmd.Cancel = func() error {
    		pgid := cmd.Process.Pid
    		return syscall.Kill(-pgid, syscall.SIGINT)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 16:17:55 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. hack/verify-cli-conventions.sh

    # Usage: `hack/verify-cli-conventions.sh`.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    source "${KUBE_ROOT}/hack/lib/init.sh"
    
    kube::golang::setup_env
    
    GOPROXY=off go install ./cmd/clicheck
    
    if ! output=$(clicheck 2>&1)
    then
    	echo "$output"
    	echo
    	echo "FAILURE: CLI is not following one or more required conventions."
    	exit 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:32 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. tensorflow/cc/saved_model/python/loader.clif

    A. Unique TensorFlower <******@****.***> 1515103377 -0800
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 04 22:06:37 UTC 2018
    - 134 bytes
    - Viewed (0)
  10. test/codegen/fuse.go

    func si2c(c <-chan int32) {
    	// amd64:"CMPL\t.+, [$]256"
    	// s390x:"CLIJ\t[$]12, R[0-9]+, [$]255"
    	for x := <-c; x >= 0 && x < 256; x = <-c {
    	}
    }
    
    func si3c(c <-chan int16) {
    	// amd64:"CMPW\t.+, [$]256"
    	// s390x:"CLIJ\t[$]12, R[0-9]+, [$]255"
    	for x := <-c; x >= 0 && x < 256; x = <-c {
    	}
    }
    
    func si4c(c <-chan int8) {
    	// amd64:"CMPB\t.+, [$]10"
    	// s390x:"CLIJ\t[$]4, R[0-9]+, [$]10"
    	for x := <-c; x >= 0 && x < 10; x = <-c {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 03 14:30:26 UTC 2020
    - 4.8K bytes
    - Viewed (0)
Back to top