22 references to Sum
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
787
var calls = (await Task.WhenAll(connectionRequestTasks)).
Sum
();
Microsoft.AspNetCore.Shared.Tests (1)
runtime\Http2\HuffmanDecodingTests.cs (1)
122
int encodedBits = currentPrefix.Select(b => Huffman.Encode(b).bitLength).
Sum
();
Microsoft.Build (1)
Graph\GraphBuilder.cs (1)
607
var errorMessage = new StringBuilder(projectsInCycle.Select(p => p.Length).
Sum
());
Microsoft.JSInterop.Tests (2)
Infrastructure\DotNetDispatcherTest.cs (2)
884
IntVal = dtoViaJson.IntVal + incrementAmounts.
Sum
()
889
IntVal = dtoByRef.Value.IntVal + incrementAmounts.
Sum
()
Microsoft.ML.FastTree (8)
Dataset\Dataset.cs (2)
590
numQueries[0] += NumQueries - numQueries.
Sum
();
839
int newLength = lengths.
Sum
();
GamModelParameters.cs (1)
177
int diff = _binEffects.Sum(e => e.Take(e.Length - 1).Select((ef, i) => ef != e[i + 1] ? 1 : 0).
Sum
());
Training\DocumentPartitioning.cs (1)
103
.
Sum
())
TreeEnsemble\InternalRegressionTree.cs (2)
514
(CategoricalSplitFeatures != null ? CategoricalSplitFeatures.Select(thresholds => thresholds.SizeInBytes()).
Sum
() : 0) +
515
(CategoricalSplitFeatureRanges != null ? CategoricalSplitFeatureRanges.Select(ranges => ranges.SizeInBytes()).
Sum
() : 0) +
Utils\RegressionTreeBaseUtils.cs (2)
26
var numberOfRows = trees.Select(tree => tree.NumberOfNodes).
Sum
() + trees.Select(tree => tree.NumberOfLeaves).
Sum
();
Microsoft.ML.SearchSpace (2)
Option\NestOption.cs (1)
24
public override int FeatureSpaceDim => _options.Values.Select(x => x.FeatureSpaceDim).
Sum
();
SearchSpace.cs (1)
78
return _options.Values.Select(x => x.FeatureSpaceDim).
Sum
();
Microsoft.ML.Transforms (4)
CountFeatureSelection.cs (1)
208
ch.Info("Total number of slots selected: {0}", selectedCount.
Sum
());
MutualInformationFeatureSelection.cs (1)
199
ch.Info("Total number of slots selected: {0}", selectedCount.
Sum
());
Text\NgramTransform.cs (2)
287
int totalNgrams = counts[iinfo].
Sum
();
301
pch.Checkpoint(counts.Sum(c => c.
Sum
()), totalDocs);
Sample (1)
Program.cs (1)
109
schemas.MapPost("/array-of-ints", (int[] values) => values.
Sum
());
System.Windows.Forms.Tests (2)
System\Windows\Forms\ApplicationTests.cs (2)
417
Assert.Equal(mainMDIFormCount + mainMDIFormCount * childFormCount, formClosingProcessed.Values.
Sum
());
418
Assert.Equal(mainMDIFormCount + mainMDIFormCount * childFormCount, formClosedProcessed.Values.
Sum
());