- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for randPod (2.06 sec)
-
cmd/server_test.go
var buffer bytes.Buffer // data to be written into buffer. data := "1234567890" // seed the random number generator once. rand.Seed(3) // generate a random number between 13 and 200. randInt := getRandomRange(13, 200, -1) // write into buffer till length of the buffer is greater than the generated random number. for i := 0; i <= randInt; i += 10 { buffer.WriteString(data) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 115.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py
self.filters_0 = np.random.uniform( low=-1.0, high=1.0, size=(4, 3) ).astype('f4') self.bias_0 = np.random.uniform(low=-1.0, high=1.0, size=(3,)).astype( 'f4' ) self.filters_1 = np.random.uniform( low=-1.0, high=1.0, size=(4, 3) ).astype('f4') self.bias_1 = np.random.uniform(low=-1.0, high=1.0, size=(3,)).astype(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 235.6K bytes - Viewed (0) -
src/crypto/x509/x509_test.go
panic(err) } return uri } func TestCreateSelfSignedCertificate(t *testing.T) { random := rand.Reader ecdsaPriv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) if err != nil { t.Fatalf("Failed to generate ECDSA key: %s", err) } ed25519Pub, ed25519Priv, err := ed25519.GenerateKey(random) if err != nil { t.Fatalf("Failed to generate Ed25519 key: %s", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 163.4K bytes - Viewed (0) -
cluster/gce/gci/configure-helper.sh
fi local out="" for (( i = 0; i < "${infobytes}"; i += 32 )); do # uuids have 122 random bits, sha256 sums have 256 bits, so concatenate # three uuids and take their sum. The sum is encoded in ASCII hex, hence the # 64 character cut. out+="$( ( uuidgen --random; uuidgen --random; uuidgen --random; ) | sha256sum \ | head -c 64 )"; done
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 22:07:47 UTC 2024 - 141.1K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
// - in random case, each pod failed by a random plugin, and also the moveEvent // is randomized. if tt.name == "baseline" { podInfo = q.newQueuedPodInfo(p) } else if tt.name == "worst" { // Each pod failed by all plugins. podInfo = q.newQueuedPodInfo(p, plugins...) } else { // Random case.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0) -
pkg/scheduler/schedule_one_test.go
func TestSchedulerGuaranteeNonNilNodeInSchedulingCycle(t *testing.T) { if goruntime.GOOS == "windows" { // TODO: remove skip once the failing test has been fixed. t.Skip("Skip failing test on Windows.") } random := rand.New(rand.NewSource(time.Now().UnixNano())) ctx, cancel := context.WithCancel(context.Background()) defer cancel() var ( initialNodeNumber = 1000 initialPodNumber = 500
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:20:55 UTC 2024 - 128.1K bytes - Viewed (0) -
src/database/sql/sql.go
// optimized for: // // - adding an element // - removing an element (only by the caller who added it) // - taking (get + delete) a random element // // We previously used a map for this but the take of a random element // was expensive, making mapiters. This type avoids a map entirely // and just uses a slice. type connRequestSet struct { // s are the elements in the set.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 103.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go
// Verify that it returns the expected Status. destroyFunc, s := NewTestGenericStoreRegistry(t) defer destroyFunc() obj := &example.Pod{ ObjectMeta: metav1.ObjectMeta{Name: "foo", UID: "random-uid"}, } result, err := s.finalizeDelete(genericapirequest.NewContext(), obj, false, &metav1.DeleteOptions{}) if err != nil { t.Fatalf("unexpected err: %s", err) } returnedObj := result.(*metav1.Status)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 101.8K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods.go
} return kubecontainer.ParseContainerID(cID), nil } // GetKubeletContainerLogs returns logs from the container // TODO: this method is returning logs of random container attempts, when it should be returning the most recent attempt // or all of them.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 101.2K bytes - Viewed (0) -
src/cmd/go/internal/work/exec.go
} else { to = filepath.Join("/_", toPath) } flags = append(slices.Clip(flags), prefixMapFlag+"="+from+"="+to) } } // Tell gcc to not insert truly random numbers into the build process // this ensures LTO won't create random numbers for symbols. if b.gccSupportsFlag(compiler, "-frandom-seed=1") { flags = append(flags, "-frandom-seed="+buildid.HashToString(a.actionID)) } overlayPath := file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 14:46:37 UTC 2024 - 105.6K bytes - Viewed (0)