14 references to _counts
Microsoft.Extensions.AI.Evaluation.NLP (14)
Common\MatchCounter.cs (14)
19public readonly int Sum() => _counts.Values.Sum(); 33if (_counts.TryGetValue(item, out int currentCount)) 35_counts[item] = currentCount + 1; 39_counts[item] = 1; 62_counts.Count < other._counts.Count ? (_counts, other._counts) : (other._counts, _counts); 68intersection._counts[kvp.Key] = Math.Min(kvp.Value, otherCount); 75public string ToDebugString() => string.Join(",", _counts.Select(v => $"{v.Key}: {v.Value}")); 77public IEnumerator<KeyValuePair<T, int>> GetEnumerator() => _counts.GetEnumerator(); 79IEnumerator IEnumerable.GetEnumerator() => ((IEnumerable)_counts).GetEnumerator();