Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,883 for pcount (0.33 sec)

  1. src/internal/coverage/cformat/format.go

    	if fm.cm == coverage.CtrModeSet {
    		if count != 0 || pcount != 0 {
    			result = 1
    		}
    	} else {
    		// Use saturating arithmetic.
    		result, _ = cmerge.SaturatingAdd(pcount, count)
    	}
    	fm.p.unitTable[ukey] = result
    }
    
    // sortUnits sorts a slice of extcu objects in a package according to
    // source position information (e.g. file and line). Note that we don't
    // include function name as part of the sorting criteria, the thinking
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformerTest.java

                Map<String, String> fieldRuleMap = newLinkedHashMap();
                fieldRuleMap.put("title", "//TITLE");
                fieldRuleMap.put("body", "//BODY");
                fieldRuleMap.put("pcount", "count(//P)");
                fieldRuleMap.put("true", "true()");
                fieldRuleMap.put("false", "false()");
                xpathTransformer.setFieldRuleMap(fieldRuleMap);
            }
            {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/Amount.java

            }
        }
    
        /**
         * Converts this amount to an equivalent amount in the specified units.
         *
         * @return The converted amount.
         */
        public Amount<Q> toUnits(Units<Q> units) {
            if (units.equals(this.units)) {
                return this;
            }
            return new Amount<>(this.units.scaleTo(value, units), units);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/width_test.go

    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			counts := test.counts
    			if len(counts) == 0 {
    				counts = map[string]int64{}
    			}
    			countsFn := func(key string) (int64, error) {
    				return counts[key], test.countErr
    			}
    			watchCountsFn := func(_ *apirequest.RequestInfo) int {
    				return test.watchCount
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top