Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 259 for makeID (0.16 sec)

  1. src/index/suffixarray/sais2.go

    	// we make it the bucket offsets and recompute
    	// the character frequency each time we need it.
    	var freq, bucket []int64
    	if len(tmp) >= 2*textMax {
    		freq, bucket = tmp[:textMax], tmp[textMax:2*textMax]
    		freq[0] = -1 // mark as uninitialized
    	} else {
    		freq, bucket = nil, tmp[:textMax]
    	}
    
    	// The SAIS algorithm.
    	// Each of these calls makes one scan through sa.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  2. src/os/os_test.go

    	path := sfdir + "/" + sfname
    	f, err := Open(path)
    	if err != nil {
    		t.Fatal("open failed:", err)
    	}
    	defer f.Close()
    
    	b := make([]byte, 0)
    	n, err := f.Read(b)
    	if n != 0 || err != nil {
    		t.Errorf("Read(0) = %d, %v, want 0, nil", n, err)
    	}
    	b = make([]byte, 100)
    	n, err = f.Read(b)
    	if n <= 0 || err != nil {
    		t.Errorf("Read(100) = %d, %v, want >0, nil", n, err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    		uniformScenario:           us,
    		startTime:                 us.clk.Now(),
    		execSeatsIntegrators:      make([]fq.Integrator, len(us.clients)),
    		seatDemandIntegratorCheck: fq.NewNamedIntegrator(us.clk, us.name+"-seatDemandCheck"),
    		executions:                make([]int32, len(us.clients)),
    		rejects:                   make([]int32, len(us.clients)),
    	}
    	for _, uc := range us.clients {
    		uss.doSplit = uss.doSplit || uc.split
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  4. cmd/xl-storage.go

    func (s *xlStorage) setDeleteAttribute(deleteCount uint64) error {
    	attr := "user.total_deletes"
    
    	data := make([]byte, 8)
    	binary.LittleEndian.PutUint64(data, deleteCount)
    	return xattr.LSet(s.formatFile, attr, data)
    }
    
    func (s *xlStorage) setWriteAttribute(writeCount uint64) error {
    	attr := "user.total_writes"
    
    	data := make([]byte, 8)
    	binary.LittleEndian.PutUint64(data, writeCount)
    	return xattr.LSet(s.formatFile, attr, data)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go

    	return Name
    }
    
    // EventsToRegister returns the possible events that may make a Pod
    // failed by this plugin schedulable.
    func (pl *dynamicResources) EventsToRegister() []framework.ClusterEventWithHint {
    	if !pl.enabled {
    		return nil
    	}
    
    	events := []framework.ClusterEventWithHint{
    		// Changes for claim or class parameters creation may make pods
    		// schedulable which depend on claims using those parameters.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:22:37 UTC 2024
    - 75.9K bytes
    - Viewed (0)
  6. cmd/xl-storage_test.go

    		case err != nil && err != test.expError:
    			t.Errorf("Test %d: Expected error: %v, but got: %v", i, test.expError, err)
    		}
    	}
    }
    
    // TestXLStorageFormatFileChange - to test if changing the diskID makes the calls fail.
    func TestXLStorageFormatFileChange(t *testing.T) {
    	volume := "fail-vol"
    	xlStorage, _, err := newXLStorageTestSetup(t)
    	if err != nil {
    		t.Fatalf("Unable to create xlStorage test setup, %s", err)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/init.go

    	}
    	mainModulePaths := make(map[string]bool)
    	for _, m := range ms {
    		if mainModulePaths[m.Path] {
    			base.Errorf("go: module %s appears multiple times in workspace", m.Path)
    		}
    		mainModulePaths[m.Path] = true
    	}
    	replacedByWorkFile := make(map[string]bool)
    	replacements := make(map[module.Version]module.Version)
    	for _, r := range workFileReplaces {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  8. src/runtime/mbitmap.go

    		// If the number of bits being repeated is small, load them
    		// into a register and use that register for the entire loop
    		// instead of repeatedly reading from memory.
    		// Handling fewer than 8 bits here makes the general loop simpler.
    		// The cutoff is goarch.PtrSize*8 - 7 to guarantee that when we add
    		// the pattern to a bit buffer holding at most 7 bits (a partial byte)
    		// it will not overflow.
    		src := dst
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    				// create sample pods
    				fakePods := make([]example.Pod, tc.totalObjectNum, tc.totalObjectNum)
    				for i := range fakePods {
    					fakePods[i].Namespace = "default"
    					fakePods[i].Name = fmt.Sprintf("pod-%d", i)
    					fakePods[i].ResourceVersion = strconv.Itoa(i)
    					if i%(tc.totalObjectNum/tc.expectObjectNum) == 0 {
    						fakePods[i].Spec.NodeName = "node-0"
    					}
    					data := make([]byte, 1024*2, 1024*2) // 2k labels
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    		indexedTrigger: indexedTrigger,
    		watcherIdx:     0,
    		watchers: indexedWatchers{
    			allWatchers:   make(map[namespacedName]watchersMap),
    			valueWatchers: make(map[string]watchersMap),
    		},
    		// TODO: Figure out the correct value for the buffer size.
    		incoming:              make(chan watchCacheEvent, 100),
    		dispatchTimeoutBudget: newTimeBudget(),
    		// We need to (potentially) stop both:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top