Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,665 for count1 (0.1 sec)

  1. guava/src/com/google/common/base/Strings.java

      public static String repeat(String string, int count) {
        checkNotNull(string); // eager for GWT.
    
        if (count <= 1) {
          checkArgument(count >= 0, "invalid count: %s", count);
          return (count == 0) ? "" : string;
        }
    
        // IF YOU MODIFY THE CODE HERE, you must update StringsRepeatBenchmark
        final int len = string.length();
        final long longSize = (long) len * (long) count;
        final int size = (int) longSize;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Sep 17 20:47:03 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/op_or_arg_name_mapper.cc

      auto prefix_it = name_to_count_.try_emplace(prefix, 0);
      if (prefix_it.second && IsUnique(prefix)) {
        // Name is unique, increment count and return string name backed by
        // `name_to_count_`.
        ++prefix_it.first->second;
        return prefix_it.first->first();
      }
    
      // Add increasing number (count) to end of prefix until it is determined
      // to be unique.
      auto& val = prefix_it.first->second;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/counter/interface.go

    // clock when and only when the code being tested has finished all
    // the work that is ready to do at the present time.
    type GoRoutineCounter interface {
    	// Add adds the given delta to the count of active goroutines.
    	// Call Add(1) before forking a goroutine, Add(-1) at the end of that goroutine.
    	// Call Add(-1) just before waiting on something from another goroutine (e.g.,
    	// just before a `select`).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 12 16:12:48 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  4. cmd/bucket-replication-metrics.go

    		Avg:  a.Avg,
    		Max:  a.Max,
    	}
    	return w
    }
    
    // QStat holds queue stats for replication
    type QStat struct {
    	Count float64 `json:"count"`
    	Bytes float64 `json:"bytes"`
    }
    
    func (q *QStat) add(o QStat) QStat {
    	return QStat{Bytes: q.Bytes + o.Bytes, Count: q.Count + o.Count}
    }
    
    // InQueueMetric holds queue stats for replication
    type InQueueMetric struct {
    	Curr QStat `json:"curr" msg:"cq"`
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. src/runtime/profbuf.go

    // takeOverflow consumes the pending overflow records, returning the overflow count
    // and the time of the first overflow.
    // When called by the reader, it is racing against incrementOverflow.
    func (b *profBuf) takeOverflow() (count uint32, time uint64) {
    	overflow := b.overflow.Load()
    	time = b.overflowTime.Load()
    	for {
    		count = uint32(overflow)
    		if count == 0 {
    			time = 0
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. src/testing/match.go

    }
    
    // unique creates a unique name for the given parent and subname by affixing it
    // with one or more counts, if necessary.
    func (m *matcher) unique(parent, subname string) string {
    	base := parent + "/" + subname
    
    	for {
    		n := m.subNames[base]
    		if n < 0 {
    			panic("subtest count overflow")
    		}
    		m.subNames[base] = n + 1
    
    		if n == 0 && subname != "" {
    			prefix, nn := parseSubtestNumber(base)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  7. pkg/volume/util/operationexecutor/fakegenerator.go

    	"k8s.io/kubernetes/pkg/volume/util/hostutil"
    	volumetypes "k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    // fakeOGCounter is a simple OperationGenerator which counts number of times a function
    // has been caled
    type fakeOGCounter struct {
    	// calledFuncs stores name and count of functions
    	calledFuncs map[string]int
    	opFunc      func() volumetypes.OperationContext
    }
    
    var _ OperationGenerator = &fakeOGCounter{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. src/testing/sub_test.go

    		ok:     true,
    		maxPar: 1,
    		f: func(t *T) {
    			var count uint32
    			t.Run("waitGroup", func(t *T) {
    				for i := 0; i < 4; i++ {
    					t.Run("par", func(t *T) {
    						t.Parallel()
    						atomic.AddUint32(&count, 1)
    					})
    				}
    			})
    			if count != 4 {
    				t.Errorf("count was %d; want 4", count)
    			}
    		},
    	}, {
    		desc: "alternate sequential and parallel",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/op_or_arg_name_mapper.h

    // to a specific name, a short name.
    class OpOrArgStripNameMapper : public OpOrArgNameMapper {
     private:
      std::string GetName(OpOrVal op_or_val) override;
    
      // Number of ops mapped.
      int count_ = 0;
    };
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 22:54:55 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMultiset.java

         * desired count.
         *
         * @param element the element to add or remove occurrences of
         * @param count the desired count of the element in this multiset
         * @return this {@code Builder} object
         * @throws NullPointerException if {@code element} is null
         * @throws IllegalArgumentException if {@code count} is negative
         */
        @CanIgnoreReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top