Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for clkp (0.04 sec)

  1. src/image/draw/clip_test.go

    		src := src0.SubImage(c.sr).(*image.RGBA)
    		r, sp, mp := c.r, c.sp, c.mp
    		if c.nilMask {
    			clip(dst, &r, src, &sp, nil, nil)
    		} else {
    			clip(dst, &r, src, &sp, mask0.SubImage(c.mr), &mp)
    		}
    
    		// Check that the actual results equal the expected results.
    		if !c.r0.Eq(r) {
    			t.Errorf("%s: clip rectangle want %v got %v", c.desc, c.r0, r)
    			continue
    		}
    		if !c.sp0.Eq(sp) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    	metrics.Reset()
    	now := time.Now()
    	clk, counter := testeventclock.NewFake(now, 0, nil)
    	qsf := newTestableQueueSetFactory(clk, countingPromiseFactoryFactory(counter))
    	qCfg := fq.QueuingConfig{
    		Name:             "TestTotalRequestsExecutingWithPanic",
    		DesiredNumQueues: 0,
    	}
    	qsc, err := qsf.BeginConstruction(qCfg, newGaugePair(clk), newExecSeatsGauge(clk), fq.NewNamedIntegrator(clk, qCfg.Name))
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/timing_ratio_histogram_test.go

    		t.Error(err)
    	}
    	exerciseTimingRatioHistogram(t, testHistogramName, t0, clk, registry, tro)
    }
    
    func TestTimingRatioHistogramVecElementSafeEarly(t *testing.T) {
    	testHistogramName := "vec_element_safe_early"
    	t0 := time.Now()
    	clk := testclock.NewFakePassiveClock(t0)
    	buckets := []float64{0, 1}
    	vec := NewTestableTimingRatioHistogramVec(clk.Now,
    		&compbasemetrics.TimingHistogramOpts{Name: testHistogramName, Buckets: buckets},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 13 16:03:06 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  4. src/internal/types/testdata/fixedbugs/issue60542.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    func Clip[S ~[]E, E any](s S) S {
    	return s
    }
    
    var versions func()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 21:28:05 UTC 2024
    - 331 bytes
    - Viewed (0)
  5. test/typeparam/listimp.dir/a.go

    type ListNum[T OrderedNum] struct {
    	Next *ListNum[T]
    	Val  T
    }
    
    const Clip = 5
    
    // ClippedLargest returns the largest in the list of OrderNums, but a max of 5.
    func (l *ListNum[T]) ClippedLargest() T {
    	var max T
    	for p := l; p != nil; p = p.Next {
    		if p.Val > max && p.Val < Clip {
    			max = p.Val
    		}
    	}
    	return max
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Dec 03 17:08:51 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.td

    def RemoveRedundantCastOps : Pat<
      (TF_CastOp:$root_cast
        (TF_CastOp:$i8_cast
          (TF_ClipByValueOp:$clip $input, $min_value, $max_value),
          ConstBoolAttrFalse:$truncate2),
        ConstBoolAttrFalse:$truncate1),
      (TF_CastOp $clip, ConstBoolAttrFalse),
      [(TensorOf<[I8]> $i8_cast),
       (TensorOf<[I32]> $clip),
       (IsIntSplatValueEqual<"int32_t", "-128"> $min_value),
       (IsIntSplatValueEqual<"int32_t", "127"> $max_value)]>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/integrator_test.go

    import (
    	"math"
    	"testing"
    	"time"
    
    	testclock "k8s.io/utils/clock/testing"
    )
    
    func TestIntegrator(t *testing.T) {
    	now := time.Now()
    	clk := testclock.NewFakeClock(now)
    	igr := NewNamedIntegrator(clk, "testee")
    	igr.Add(3)
    	clk.Step(time.Second)
    	results := igr.GetResults()
    	rToo := igr.Reset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 27 21:11:44 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  8. src/cmd/go/internal/vcweb/git.go

    }
    
    func (h *gitHandler) Handler(dir string, env []string, logger *log.Logger) (http.Handler, error) {
    	if !h.Available() {
    		return nil, ServerNotInstalledError{name: "git"}
    	}
    
    	baseEnv := append(slices.Clip(env),
    		"GIT_PROJECT_ROOT="+dir,
    		"GIT_HTTP_EXPORT_ALL=1",
    	)
    
    	handler := http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		// The Git client sends the requested Git protocol version as a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 19:46:23 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/request/webhook_duration_test.go

    			t.Error("expected values to be initialized to 0")
    		}
    
    		for _, d := range tc.Durations {
    			wd.MutatingWebhookTracker.Track(func() { clk.Step(d) })
    			wd.ValidatingWebhookTracker.Track(func() { clk.Step(d) })
    			wd.APFQueueWaitTracker.Track(func() { clk.Step(d) })
    		}
    
    		wd, ok = LatencyTrackersFrom(ctx)
    		if !ok {
    			t.Errorf("expected webhook duration to be initialized")
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 09:15:20 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/borrowing_test.go

    			informerFactory := informers.NewSharedInformerFactory(clientset, time.Second)
    			flowcontrolClient := clientset.FlowcontrolV1()
    			clk := eventclock.Real{}
    			controller := newTestableController(TestableConfig{
    				Name:                   "Controller",
    				Clock:                  clk,
    				AsFieldManager:         ConfigConsumerAsFieldManager,
    				FoundToDangling:        func(found bool) bool { return !found },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top