- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 923 for Counts (0.16 sec)
-
src/encoding/xml/example_text_marshaling_test.go
log.Fatal(err) } counts := make(map[Size]int) for _, size := range inventory.Sizes { counts[size] += 1 } fmt.Printf("Inventory Counts:\n* Small: %d\n* Large: %d\n* Unrecognized: %d\n", counts[Small], counts[Large], counts[Unrecognized]) // Output: // Inventory Counts: // * Small: 3 // * Large: 2 // * Unrecognized: 3
Registered: 2024-06-12 16:32 - Last Modified: 2018-12-12 14:18 - 1.4K bytes - Viewed (0) -
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: 2024-06-12 16:38 - Last Modified: 2024-04-01 16:15 - 9.3K bytes - Viewed (0) -
src/encoding/json/example_text_marshaling_test.go
log.Fatal(err) } counts := make(map[Size]int) for _, size := range inventory { counts[size] += 1 } fmt.Printf("Inventory Counts:\n* Small: %d\n* Large: %d\n* Unrecognized: %d\n", counts[Small], counts[Large], counts[Unrecognized]) // Output: // Inventory Counts: // * Small: 3 // * Large: 2 // * Unrecognized: 3
Registered: 2024-06-12 16:32 - Last Modified: 2018-12-12 14:18 - 1.2K bytes - Viewed (0) -
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: 2024-06-12 16:38 - Last Modified: 2024-04-01 16:15 - 9K bytes - Viewed (0) -
operator/pkg/metrics/monitoring.go
"reconcile_request_total", "Number of times requesting Reconcile", ) // GetCRErrorTotal counts the number of times fetching // CR fails from API server. GetCRErrorTotal = monitoring.NewSum( "get_cr_error_total", "Number of times fetching CR from apiserver failed", ) // CRMergeFailureTotal counts number of CR merge failures. CRMergeFailureTotal = monitoring.NewSum( "cr_merge_failure_total",
Registered: 2024-06-14 15:00 - Last Modified: 2023-08-10 15:35 - 7K bytes - Viewed (0) -
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: 2024-06-15 01:39 - Last Modified: 2024-04-24 18:25 - 17K bytes - Viewed (0) -
src/runtime/histogram.go
// separately as underflow, so fill that in manually and then iterate // over the rest. hist.counts[0] = h.underflow.Load() for i := range h.counts { hist.counts[i+1] = h.counts[i].Load() } hist.counts[len(hist.counts)-1] = h.overflow.Load() } const ( fInf = 0x7FF0000000000000 fNegInf = 0xFFF0000000000000 ) func float64Inf() float64 {
Registered: 2024-06-12 16:32 - Last Modified: 2024-03-25 19:53 - 7.3K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list.go
} func renderCounts(injectedRevision string, counts revisionCount) string { if counts.pods == 0 { return "<no pods>" } podText := strconv.Itoa(counts.pods) if counts.disabled > 0 { podText += fmt.Sprintf(" (injection disabled: %d)", counts.disabled) } if counts.needsRestart > 0 { podText += fmt.Sprintf(" NEEDS RESTART: %d", counts.needsRestart) }
Registered: 2024-06-14 15:00 - Last Modified: 2024-01-04 03:08 - 10.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/object_count_tracker_test.go
count: 0, countExpected: 0, errExpected: nil, }, { name: "object count is more than zero", count: 799, countExpected: 799, errExpected: nil, }, { name: "object count stale", count: 799, countExpected: 799, lastUpdated: staleTolerationThreshold + time.Millisecond, errExpected: ObjectCountStaleErr, }, }
Registered: 2024-06-15 01:39 - Last Modified: 2021-09-17 19:36 - 3.4K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/DefaultTestExecutionResult.groovy
this } int getTestCount() { List<Integer> counts = testClassResults*.testCount List<Integer> uniques = counts.unique() if (uniques.size() == 1) { return uniques.first() } throw new IllegalStateException("Multiple different test counts ${counts}") } TestClassExecutionResult assertTestsSkipped(String... testNames) {
Registered: 2024-06-12 18:38 - Last Modified: 2024-04-04 07:21 - 10.5K bytes - Viewed (0)