Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 3,062 for pcount (0.21 sec)

  1. android/guava/src/com/google/common/collect/EnumMultiset.java

      @Override
      public int setCount(E element, int count) {
        checkIsE(element);
        checkNonnegative(count, "count");
        int index = element.ordinal();
        int oldCount = counts[index];
        counts[index] = count;
        size += count - oldCount;
        if (oldCount == 0 && count > 0) {
          distinctElements++;
        } else if (oldCount > 0 && count == 0) {
          distinctElements--;
        }
        return oldCount;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. tests/associations_has_one_test.go

    	account := Account{Number: "account-has-one-append"}
    
    	if err := DB.Model(&user2).Association("Account").Append(&account); err != nil {
    		t.Fatalf("Error happened when append account, got %v", err)
    	}
    
    	if account.ID == 0 {
    		t.Fatalf("Account's ID should be created")
    	}
    
    	user.Account = account
    	CheckUser(t, user2, user)
    
    	AssertAssociationCount(t, user, "Account", 1, "AfterAppend")
    
    	// Replace
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. cmd/bucket-stats.go

    		speak = math.Max(math.Max(v[Small].Peak, speak), v[Small].Curr)
    		if lpeak > 0 || speak > 0 {
    			count++
    		}
    	}
    	if count > 0 {
    		lrg := XferStats{
    			Avg:  lavg / float64(count),
    			Curr: lcurr / float64(count),
    			Peak: lpeak,
    		}
    		sml := XferStats{
    			Avg:  savg / float64(count),
    			Curr: scurr / float64(count),
    			Peak: speak,
    		}
    		qs.XferStats[Large] = lrg
    		qs.XferStats[Small] = sml
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/base/timings.go

    }
    
    type timestamp struct {
    	time  time.Time
    	label string
    	start bool
    }
    
    type event struct {
    	size int64  // count or amount of data processed (allocations, data size, lines, funcs, ...)
    	unit string // unit of size measure (count, MB, lines, funcs, ...)
    }
    
    func (t *Timings) append(labels []string, start bool) {
    	t.list = append(t.list, timestamp{time.Now(), strings.Join(labels, ":"), start})
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/generator/DependencyTreeTest.groovy

            then:
            tree.getTransitiveChildClassIds(168) == [159, 163, 167, 51, 103, 155, 12, 64, 116]
        }
    
        private static int amount(int count, int level) {
            if (level == 0) {
                return 0
            }
            Math.pow(count, level) + amount(count, level - 1)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * becomes {@code count}.
       *
       * @return the count of {@code element} in the multiset before this call
       * @throws IllegalArgumentException if {@code count} is negative
       */
      @CanIgnoreReturnValue
      @Override
      public int setCount(E element, int count) {
        checkNotNull(element);
        checkNonnegative(count, "count");
        while (true) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/podtopologyspread/filtering.go

    			tpCounts[pair] = count
    		}
    		tpCountsByNode[i] = tpCounts
    	}
    	pl.parallelizer.Until(ctx, len(allNodes), processNode, pl.Name())
    
    	for _, tpCounts := range tpCountsByNode {
    		for tp, count := range tpCounts {
    			s.TpPairToMatchNum[tp] += count
    		}
    	}
    	s.TpKeyToDomainsNum = make(map[string]int, len(constraints))
    	for tp := range s.TpPairToMatchNum {
    		s.TpKeyToDomainsNum[tp.key]++
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. pkg/controller/podautoscaler/replica_calculator.go

    	return replicaCount, usage, timestamp, err
    }
    
    // getUsageRatioReplicaCount calculates the desired replica count based on usageRatio and ready pods count.
    // For currentReplicas=0 doesn't take into account ready pods count and tolerance to support scaling to zero pods.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprog/gc.go

    	// and check again.
    	time.Sleep(30 * time.Millisecond)
    	var fail bool
    	for i := range count {
    		if atomic.LoadInt64(&count[i]) == 0 {
    			fail = true
    		}
    	}
    	if fail {
    		time.Sleep(1 * time.Second)
    		for i := range count {
    			if atomic.LoadInt64(&count[i]) == 0 {
    				fmt.Printf("goroutine %d did not run\n", i)
    				return
    			}
    		}
    	}
    	fmt.Println("OK")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/CountingInputStream.java

      public long getCount() {
        return count;
      }
    
      @Override
      public int read() throws IOException {
        int result = in.read();
        if (result != -1) {
          count++;
        }
        return result;
      }
    
      @Override
      public int read(byte[] b, int off, int len) throws IOException {
        int result = in.read(b, off, len);
        if (result != -1) {
          count += result;
        }
        return result;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top