Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for newResource (0.16 sec)

  1. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/UnionFileCollection.java

            ImmutableSet.Builder<FileCollectionInternal> newSource = ImmutableSet.builderWithExpectedSize(source.size());
            boolean hasChanges = false;
            for (FileCollectionInternal candidate : source) {
                FileCollectionInternal newCollection = candidate.replace(original, supplier);
                hasChanges |= newCollection != candidate;
                newSource.add(newCollection);
            }
            if (hasChanges) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. src/internal/trace/mud_test.go

    package trace
    
    import (
    	"math"
    	"math/rand"
    	"testing"
    )
    
    func TestMUD(t *testing.T) {
    	// Insert random uniforms and check histogram mass and
    	// cumulative sum approximations.
    	rnd := rand.New(rand.NewSource(42))
    	mass := 0.0
    	var mud mud
    	for i := 0; i < 100; i++ {
    		area, l, r := rnd.Float64(), rnd.Float64(), rnd.Float64()
    		if rnd.Intn(10) == 0 {
    			r = l
    		}
    		t.Log(l, r, area)
    		mud.add(l, r, area)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. cmd/erasure-common.go

    	"time"
    
    	"github.com/minio/pkg/v3/sync/errgroup"
    )
    
    func (er erasureObjects) getOnlineDisks() (newDisks []StorageAPI) {
    	disks := er.getDisks()
    	var wg sync.WaitGroup
    	var mu sync.Mutex
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    	for _, i := range r.Perm(len(disks)) {
    		i := i
    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    			if disks[i] == nil {
    				return
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/ClasspathTest.groovy

            when:
            classpath.load(customClasspathReader)
    
            def newSource = new SourceFolder("src", "bin4")
            def newEntries = [createSomeLibrary()] + projectDependency + jreContainer + outputLocation + [newSource]
            classpath.configure(newEntries)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Mar 24 15:55:52 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. cmd/license-update.go

    )
    
    // initlicenseUpdateJob start the periodic license update job in the background.
    func initLicenseUpdateJob(ctx context.Context, objAPI ObjectLayer) {
    	go func() {
    		r := rand.New(rand.NewSource(time.Now().UnixNano()))
    		// Leader node (that successfully acquires the lock inside licenceUpdaterLoop)
    		// will keep performing the license update. If the leader goes down for some
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. src/os/writeto_linux_test.go

    		t.Fatalf("failed to create temporary file: %v", err)
    	}
    	t.Cleanup(func() {
    		f.Close()
    	})
    
    	randSeed := time.Now().Unix()
    	t.Logf("random data seed: %d\n", randSeed)
    	prng := rand.New(rand.NewSource(randSeed))
    	data := make([]byte, size)
    	prng.Read(data)
    	if _, err := f.Write(data); err != nil {
    		t.Fatalf("failed to create and feed the file: %v", err)
    	}
    	if err := f.Sync(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/roundtrip_test.go

    	// I'm only using the generic fuzzer funcs, but at some point in time we might need to
    	// switch to specialized. For now we're happy with the current serialization test.
    	fuzzer := fuzzer.FuzzerFor(genericfuzzer.Funcs, rand.NewSource(seed), codecs)
    
    	roundtrip.RoundTripExternalTypes(t, scheme, codecs, fuzzer, nil)
    }
    
    func TestCompatibility(t *testing.T) {
    	scheme := runtime.NewScheme()
    	for _, builder := range groups {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. cmd/callhome.go

    // initCallhome will start the callhome task in the background.
    func initCallhome(ctx context.Context, objAPI ObjectLayer) {
    	if !globalCallhomeConfig.Enabled() {
    		return
    	}
    
    	go func() {
    		r := rand.New(rand.NewSource(time.Now().UnixNano()))
    		// Leader node (that successfully acquires the lock inside runCallhome)
    		// will keep performing the callhome. If the leader goes down for some reason,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 17 16:53:34 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. cmd/erasure-metadata-utils_test.go

    	testShuffleDisks(t, z)
    }
    
    func Test_hashOrder(t *testing.T) {
    	for x := 1; x < 17; x++ {
    		t.Run(fmt.Sprintf("%d", x), func(t *testing.T) {
    			var first [17]int
    			rng := rand.New(rand.NewSource(0))
    			var tmp [16]byte
    			rng.Read(tmp[:])
    			prefix := hex.EncodeToString(tmp[:])
    			for i := 0; i < 10000; i++ {
    				rng.Read(tmp[:])
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. pkg/test/framework/components/namespace/kube.go

    	kube2 "istio.io/istio/pkg/test/kube"
    	"istio.io/istio/pkg/test/scopes"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    // nolint: gosec
    // Test only code
    var (
    	idctr int64
    	rnd   = rand.New(rand.NewSource(time.Now().UnixNano()))
    	mu    sync.Mutex
    )
    
    // kubeNamespace represents a Kubernetes namespace. It is tracked as a resource.
    type kubeNamespace struct {
    	ctx          resource.Context
    	id           resource.ID
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top