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