243 references to Repeat
HttpStress (1)
Program.cs (1)
92string contentSource = string.Concat(Enumerable.Repeat("1234567890", maxContentLength / 10));
InMemory.FunctionalTests (6)
ChunkedRequestTests.cs (3)
307var expectedFullResponse = string.Join("", Enumerable.Repeat(response, requestCount + 1)); 438var expectedFullResponse = string.Join("", Enumerable.Repeat(response, requestCount + 1)); 613var expectedFullResponse = string.Join("", Enumerable.Repeat(response, requestCount + 1));
ConnectionLimitTests.cs (1)
145var actions = Enumerable.Repeat(AssertCounter, i + 1).ToArray();
RequestTests.cs (2)
1426Enumerable.Repeat("GET / HTTP/1.1\r\nHost:\r\n", loopCount) 1446Enumerable.Repeat(response, loopCount)
installer.tasks (1)
RegenerateDownloadTable.cs (1)
79$"| --- | {string.Concat(Enumerable.Repeat(" :---: |", Branches.Length))}"
Microsoft.AspNetCore.Components.Tests (5)
Rendering\ArrayBuilderTest.cs (5)
61Assert.Equal(Enumerable.Repeat(5, capacity), builder.Buffer.Take(capacity)); 68var array = Enumerable.Repeat(8, 5).ToArray(); 83var array = Enumerable.Repeat(8, 5).ToArray(); 98var array = Enumerable.Repeat(8, 5).ToArray(); 118var array = Enumerable.Repeat(17, size).ToArray();
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
HttpResponseWritingExtensionsTests.cs (1)
38var inputString = string.Concat(Enumerable.Repeat("昨日すき焼きを食べました", 1000));
Microsoft.AspNetCore.Mvc.Abstractions.Test (7)
ModelBinding\ModelStateDictionaryTest.cs (7)
1608var key = string.Join(".", Enumerable.Repeat("foo", stackLimit + 1)); 1626var key = string.Join(".", Enumerable.Repeat("foo", stackLimit + 1)); 1648var key = string.Join(".", Enumerable.Repeat("foo", stateDepth + 1)); 1666var key = string.Join(".", Enumerable.Repeat("foo", stateDepth + 1)); 1683var key = string.Join(".", Enumerable.Repeat("foo", stateDepth + 1)); 1701var key = string.Join(".", Enumerable.Repeat("foo", stateDepth + 1)); 1719var key = string.Join(".", Enumerable.Repeat("foo", stateDepth + 1));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
Buffers\PagedCharBufferTest.cs (4)
153var expected = Enumerable.Repeat('d', PagedCharBuffer.PageSize); 183var expected1 = Enumerable.Repeat('d', PagedCharBuffer.PageSize); 300var expected = Enumerable.Repeat(ch, PagedCharBuffer.PageSize); 333var expected1 = Enumerable.Repeat('d', PagedCharBuffer.PageSize);
Microsoft.AspNetCore.Routing.Tests (1)
Matching\HttpMethodMatcherPolicyTest.cs (1)
167var candidates = new CandidateSet(endpoints, new RouteValueDictionary[endpoints.Length], Enumerable.Repeat<int>(-1, candidateNum).ToArray());
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
InMemoryTransportBenchmark.cs (1)
35string.Concat(Enumerable.Repeat(_plaintextExpectedResponse, RequestParsingData.Pipelining));
RequestParsingData.cs (3)
66public static readonly byte[] PlaintextTechEmpowerPipelinedRequests = Encoding.ASCII.GetBytes(string.Concat(Enumerable.Repeat(_plaintextTechEmpowerRequest, Pipelining))); 73public static readonly byte[] LiveaspnetPipelinedRequests = Encoding.ASCII.GetBytes(string.Concat(Enumerable.Repeat(_liveaspnetRequest, Pipelining))); 76public static readonly byte[] UnicodePipelinedRequests = Encoding.ASCII.GetBytes(string.Concat(Enumerable.Repeat(_unicodeRequest, Pipelining)));
Microsoft.AspNetCore.WebUtilities.Tests (1)
FileBufferingWriteStreamTests.cs (1)
356var input = Enumerable.Repeat((byte)0xca, 30).ToArray();
Microsoft.Build (1)
Evaluation\ItemSpec.cs (1)
487return Enumerable.Repeat(EscapingUtilities.UnescapeAll(TextFragment), 1);
Microsoft.Build.Engine.UnitTests (1)
BuildEventArgsSerialization_Tests.cs (1)
1103binaryWriter.Write(Enumerable.Repeat(byte.MaxValue, eventSize).ToArray());
Microsoft.CodeAnalysis.CSharp (1)
BoundTree\UnboundLambda.cs (1)
177parameterRefKinds.IsDefault ? Enumerable.Repeat(RefKind.None, parameterTypes.Length).ToImmutableArray() : parameterRefKinds,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
95[.. Enumerable.Repeat<ExpressionSyntax>(OmittedArraySizeExpression(), arrayType.Rank)])); 204? Enumerable.Repeat((TypeSyntax)OmittedTypeArgument(), symbol.TypeArguments.Length)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenCapturing.cs (1)
325copy.LocalFuncs.AddRange(Enumerable.Repeat<List<string>>(null, depth - copy.LocalFuncs.Count));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\PDBTests.cs (1)
740var verbatim = string.Join("\r\n", Enumerable.Repeat("x", 1000));
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
771var deeplyRecursive = string.Join("+", Enumerable.Repeat(""" "a" """, 20_000));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
SemanticSearch\CSharpSemanticSearchServiceTests.cs (1)
185string.Join(Environment.NewLine, Enumerable.Repeat($" at Program.<<Main>$>g__F|0_1(Int64 x) in {FeaturesResources.Query}:line 7", 31)) + Environment.NewLine +
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests.cs (1)
707public string s = {string.Join(" + ", Enumerable.Repeat("(string)o", 1000))};
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
1082byte[] bytes = Enumerable.Repeat((byte)'Q', text.Length + padding).ToArray();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CSharpCompilationOptionsTests.cs (2)
206var actual2 = new CSharpCompilationOptions(OutputKind.ConsoleApplication).WithUsings(Enumerable.Repeat("A", 1)).Usings; 207Assert.True(actual2.SequenceEqual(Enumerable.Repeat("A", 1)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\FileModifierParsingTests.cs (1)
2459var manyFileModifiers = string.Join(" ", Enumerable.Repeat("file", FileModifiersCount));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (2)
95[.. Enumerable.Repeat<ExpressionSyntax>(OmittedArraySizeExpression(), arrayType.Rank)])); 204? Enumerable.Repeat((TypeSyntax)OmittedTypeArgument(), symbol.TypeArguments.Length)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\ActiveStatementTestHelpers.cs (1)
88src = src[..start] + string.Join("", Enumerable.Repeat(Environment.NewLine, lineCount)) + src[end..];
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
SpellCheck\SpellCheckTests.cs (1)
80{{string.Join(Environment.NewLine, Enumerable.Repeat("", random.Next() % 5))}}
Microsoft.CodeAnalysis.Test.Utilities (1)
Assert\EqualityUnit`1.cs (1)
22get { return Enumerable.Repeat(Value, 1).Concat(EqualValues).Concat(NotEqualValues); }
Microsoft.CodeAnalysis.UnitTests (2)
Text\TextChangeTests.cs (2)
978var newText = string.Join("", Enumerable.Repeat('a', random.Next(oldMaxInsertLength))); 998var newText = string.Join("", Enumerable.Repeat('b', random.Next(newMaxInsertLength)));
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
UtilityTest\NameGeneratorTests.cs (2)
76var isFixed = Enumerable.Repeat(true, names.Length).ToArray(); 103isFixedBuilder.AddRange(isFixed ?? Enumerable.Repeat(false, names.Length));
Microsoft.Data.Analysis.Tests (21)
ArrowIntegrationTests.cs (19)
43.Append("DoubleColumn", false, new DoubleArray.Builder().AppendRange(Enumerable.Repeat(1.0, 10)).Build()) 44.Append("FloatColumn", false, new FloatArray.Builder().AppendRange(Enumerable.Repeat(1.0f, 10)).Build()) 45.Append("ShortColumn", false, new Int16Array.Builder().AppendRange(Enumerable.Repeat((short)1, 10)).Build()) 46.Append("LongColumn", false, new Int64Array.Builder().AppendRange(Enumerable.Repeat((long)1, 10)).Build()) 47.Append("UIntColumn", false, new UInt32Array.Builder().AppendRange(Enumerable.Repeat((uint)1, 10)).Build()) 48.Append("UShortColumn", false, new UInt16Array.Builder().AppendRange(Enumerable.Repeat((ushort)1, 10)).Build()) 49.Append("ULongColumn", false, new UInt64Array.Builder().AppendRange(Enumerable.Repeat((ulong)1, 10)).Build()) 50.Append("ByteColumn", false, new Int8Array.Builder().AppendRange(Enumerable.Repeat((sbyte)1, 10)).Build()) 51.Append("UByteColumn", false, new UInt8Array.Builder().AppendRange(Enumerable.Repeat((byte)1, 10)).Build()) 52.Append("Date64Column", false, new Date64Array.Builder().AppendRange(Enumerable.Repeat(DateTime.Now, 10)).Build()) 92.Append(prependColumnNamesWith + "DoubleColumn", false, new DoubleArray.Builder().AppendRange(Enumerable.Repeat(1.0, 10)).Build()) 93.Append(prependColumnNamesWith + "FloatColumn", false, new FloatArray.Builder().AppendRange(Enumerable.Repeat(1.0f, 10)).Build()) 94.Append(prependColumnNamesWith + "ShortColumn", false, new Int16Array.Builder().AppendRange(Enumerable.Repeat((short)1, 10)).Build()) 95.Append(prependColumnNamesWith + "LongColumn", false, new Int64Array.Builder().AppendRange(Enumerable.Repeat((long)1, 10)).Build()) 96.Append(prependColumnNamesWith + "UIntColumn", false, new UInt32Array.Builder().AppendRange(Enumerable.Repeat((uint)1, 10)).Build()) 97.Append(prependColumnNamesWith + "UShortColumn", false, new UInt16Array.Builder().AppendRange(Enumerable.Repeat((ushort)1, 10)).Build()) 98.Append(prependColumnNamesWith + "ULongColumn", false, new UInt64Array.Builder().AppendRange(Enumerable.Repeat((ulong)1, 10)).Build()) 99.Append(prependColumnNamesWith + "ByteColumn", false, new Int8Array.Builder().AppendRange(Enumerable.Repeat((sbyte)1, 10)).Build()) 100.Append(prependColumnNamesWith + "UByteColumn", false, new UInt8Array.Builder().AppendRange(Enumerable.Repeat((byte)1, 10)).Build())
DataFrameTests.Utils.cs (1)
79var buffers = Enumerable.Repeat(new VBuffer<int>(5, new[] { 0, 1, 2, 3, 4 }), length).ToArray();
VBufferColumnTests.cs (1)
22var buffers = Enumerable.Repeat(new VBuffer<int>(5, new[] { 0, 1, 2, 3, 4 }), 10).ToArray();
Microsoft.DotNet.XUnitAssert.Tests (6)
AsyncCollectionAssertsTests.cs (2)
859 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1009 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator();
CollectionAssertsTests.cs (4)
919 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 943 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1099 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); 1220 public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator();
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\RandomStringGenerator.cs (1)
19.Repeat(Chars, length)
Microsoft.Extensions.Http.Resilience.PerformanceTests (2)
HttpClientFactory.cs (2)
82options.Groups = Enumerable.Repeat(0, routes).Select(_ => 105options.Groups = Enumerable.Repeat(0, routes).Select(_ =>
Microsoft.ML.AutoML.Samples (2)
AutoMLExperiment.cs (1)
100Features = Enumerable.Repeat(label, 50)
Sweepable\SweepableLightGBMBinaryExperiment.cs (1)
127Features = Enumerable.Repeat(label, 50)
Microsoft.ML.AutoML.Tests (2)
TunerTests.cs (2)
176var invalidLosses = Enumerable.Repeat(new[] { double.NaN, double.NegativeInfinity, double.PositiveInfinity }, 100) 211var zeroLosses = Enumerable.Repeat(0.0, 100);
Microsoft.ML.Core (1)
Utilities\Utils.cs (1)
844invMap = Enumerable.Repeat(-1, lim).ToArray<int>();
Microsoft.ML.Data (8)
DataView\DataViewExtensions.cs (1)
44return dv.GetRowCursor(Enumerable.Repeat(columnNeeded, 1));
Scorers\FeatureContributionCalculation.cs (1)
361return Enumerable.Repeat(FeatureColumn, 1);
Transforms\NormalizeColumnDbl.cs (3)
702nodeProtoWrapper.AddAttribute("offset", Enumerable.Repeat(Offset, featureCount)); 703nodeProtoWrapper.AddAttribute("scale", Enumerable.Repeat(Scale, featureCount)); 777node.AddAttribute("offset", Enumerable.Repeat<TFloat>(0, featureCount));
Transforms\NormalizeColumnSng.cs (3)
860node.AddAttribute("offset", Enumerable.Repeat(Offset, featureCount)); 861node.AddAttribute("scale", Enumerable.Repeat(Scale, featureCount)); 934node.AddAttribute("offset", Enumerable.Repeat<TFloat>(0, featureCount));
Microsoft.ML.Ensemble (1)
PipelineEnsemble.cs (1)
145var predictorRow = Mappers[i].GetRow(pipelineRow, Enumerable.Repeat(Mappers[i].InputSchema[ScoreCols[i]], 1));
Microsoft.ML.FastTree (22)
Dataset\Dataset.cs (1)
392var truncatedActiveFeatures = Enumerable.Repeat(true, NumFeatures).ToArray();
Dataset\DatasetUtils.cs (1)
56Enumerable.Repeat(uvalToOrder[(uint)qid], skel.Boundaries[i + 1] - skel.Boundaries[i])));
Dataset\Feature.cs (1)
212: base(DenseIntArray.New(length, IntArrayType.Dense, 0, Enumerable.Repeat(0, length)))
GamModelParameters.cs (1)
450var splitFeatures = Enumerable.Repeat(featureIndex, numInternalNodes).ToArray();
Training\RegressionTreeNodeDocuments.cs (1)
54return Enumerable.Repeat(this, 1);
TreeEnsembleFeaturizer.cs (1)
370return Enumerable.Repeat(FeatureColumn, 1);
Utils\RegressionTreeBaseUtils.cs (16)
44treeWeightsList.AddRange(Enumerable.Repeat(treeWeights[i], trees[i].NumberOfNodes + trees[i].NumberOfLeaves)); 47treeId.AddRange(Enumerable.Repeat(i, trees[i].NumberOfNodes + trees[i].NumberOfLeaves)); 50isLeaf.AddRange(Enumerable.Repeat(new ReadOnlyMemory<char>("Tree node".ToCharArray()), trees[i].NumberOfNodes)); 51isLeaf.AddRange(Enumerable.Repeat(new ReadOnlyMemory<char>("Leaf node".ToCharArray()), trees[i].NumberOfLeaves)); 55leftChild.AddRange(Enumerable.Repeat(0, trees[i].NumberOfLeaves)); 59rightChild.AddRange(Enumerable.Repeat(0, trees[i].NumberOfLeaves)); 63numericalSplitFeatureIndexes.AddRange(Enumerable.Repeat(0, trees[i].NumberOfLeaves)); 67numericalSplitThresholds.AddRange(Enumerable.Repeat(0f, trees[i].NumberOfLeaves)); 71categoricalSplitFlags.AddRange(Enumerable.Repeat(false, trees[i].NumberOfLeaves)); 74leafValues.AddRange(Enumerable.Repeat(0d, trees[i].NumberOfNodes)); 79splitGains.AddRange(Enumerable.Repeat(0d, trees[i].NumberOfLeaves)); 94categoricalSplitFeatures.AddRange(Enumerable.Repeat(new VBuffer<int>(), trees[i].NumberOfLeaves)); 95categoricalCategoricalSplitFeatureRange.AddRange(Enumerable.Repeat(new VBuffer<int>(), trees[i].NumberOfLeaves)); 99builder.AddColumn("Bias", NumberDataViewType.Double, Enumerable.Repeat(bias, numberOfRows).ToArray()); 124leafSamples.AddRange(Enumerable.Repeat(new VBuffer<double>(), quantileTrees[i].NumberOfNodes)); 125leafSampleWeights.AddRange(Enumerable.Repeat(new VBuffer<double>(), quantileTrees[i].NumberOfNodes));
Microsoft.ML.GenAI.Mistral (1)
MistralCausalLMAgent.cs (1)
163return new string(Enumerable.Repeat(chars, length)
Microsoft.ML.Samples (70)
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (1)
99Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (1)
110Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (1)
107Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\FastForest.cs (1)
102Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (1)
114Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\FastTree.cs (1)
105Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (1)
117Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (1)
102Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (1)
111Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LdSvm.cs (1)
99Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (1)
108Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LightGbm.cs (1)
102Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (1)
113Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (1)
99Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (1)
108Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (1)
99Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (1)
107Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (1)
119Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (1)
106Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (1)
121Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (1)
99Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (1)
111Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (1)
99Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (1)
108Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (1)
102Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (1)
111Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\Clustering\KMeans.cs (1)
106Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
114Features = Enumerable.Repeat(label, 50)
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
104Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
112Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
107Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
117Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (1)
87Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
112Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
105Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
105Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
111Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
121Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
112Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
121Features = Enumerable.Repeat(label, 20)
Dynamic\Trainers\Ranking\FastTree.cs (1)
86Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (1)
100Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Ranking\LightGbm.cs (1)
86Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (1)
101Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\FastForest.cs (1)
83Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
96Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\FastTree.cs (1)
83Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
83Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
98Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
99Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\Gam.cs (1)
83Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
94Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
81Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
95Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\LightGbm.cs (1)
84Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
103Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
72Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
88Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
80Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
92Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\Sdca.cs (1)
80Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
96Features = Enumerable.Repeat(label, 50).Select(
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (1)
102Features = Enumerable.Repeat(0,
Dynamic\Transforms\TreeFeaturization\FastForestBinaryFeaturizationWithOptions.cs (1)
136Features = Enumerable.Repeat(label, 3).Select(x => x ?
Dynamic\Transforms\TreeFeaturization\FastForestRegressionFeaturizationWithOptions.cs (1)
134Features = Enumerable.Repeat(label, 3).Select(x => x +
Dynamic\Transforms\TreeFeaturization\FastTreeBinaryFeaturizationWithOptions.cs (1)
138Features = Enumerable.Repeat(label, 3).Select(x => x ?
Dynamic\Transforms\TreeFeaturization\FastTreeRankingFeaturizationWithOptions.cs (1)
135Features = Enumerable.Repeat(label, 3).Select(x => randomFloat()
Dynamic\Transforms\TreeFeaturization\FastTreeRegressionFeaturizationWithOptions.cs (1)
134Features = Enumerable.Repeat(label, 3).Select(x => x +
Dynamic\Transforms\TreeFeaturization\FastTreeTweedieFeaturizationWithOptions.cs (1)
134Features = Enumerable.Repeat(label, 3).Select(x => x +
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (1)
145Features = Enumerable.Repeat(label, 3).Select(x => x ?
Microsoft.ML.SearchSpace (4)
Option\ChoiceOption.cs (1)
34Default = Enumerable.Repeat(0.0, FeatureSpaceDim).ToArray();
Option\UniformNumericOption.cs (1)
32Default = Enumerable.Repeat(0.0, FeatureSpaceDim).ToArray();
SearchSpace.cs (1)
155var featureSpace = Enumerable.Repeat(0.5, FeatureSpaceDim).ToArray();
Tuner\RandomTuner.cs (1)
34var featureVec = Enumerable.Repeat(0, d).Select(i => _rnd.NextDouble()).ToArray();
Microsoft.ML.Sweeper (1)
Algorithms\KdoSweeper.cs (1)
251double[] stddevs = Enumerable.Repeat(_args.Simple ? 0.2 : bandwidthScale, mu.Length).ToArray();
Microsoft.ML.Tests (2)
ImagesTests.cs (1)
1109Features = Enumerable.Repeat(0, InputSize).Select(x => random.NextDouble() * 100).ToArray()
TrainerEstimators\TreeEstimators.cs (1)
733Features = Enumerable.Repeat(label, 20)
Microsoft.ML.TimeSeries (3)
SeasonalityDetector.cs (1)
86FftUtils.ComputeForwardFft(inputRe, Enumerable.Repeat(0.0, length).ToArray(), fftRe, fftIm, length);
SrCnnAnomalyDetectionBase.cs (2)
181FftUtils.ComputeForwardFft(backAddList.ToArray(), Enumerable.Repeat(0.0f, length).ToArray(), fftRe, fftIm, length); 255backAddArray.AddRange(Enumerable.Repeat(predictedValue, Parent.BackAddWindowSize));
Microsoft.ML.TimeSeries.Tests (1)
TimeSeries.cs (1)
81File.WriteAllLines(pathData, Enumerable.Repeat("0", 50));
Microsoft.ML.Tokenizers (2)
Model\BertTokenizer.cs (2)
429mask.AddRange(Enumerable.Repeat(0, tokenIds.Count())); 433mask.AddRange(Enumerable.Repeat(0, additionalTokenIds.Count()));
Microsoft.ML.Tokenizers.Tests (2)
TokenizerTests.cs (2)
25string.Concat(Enumerable.Repeat("abcdefghijklmnopqrstuvwxyz", 100)), 26tokenizer.Decode(Enumerable.Repeat("abcdefghijklmnopqrstuvwxyz", 100).SelectMany(s => s.Select(c => c - 'a'))));
Microsoft.ML.TorchSharp (3)
Roberta\Models\RobertaModel.cs (3)
44Zeros = Enumerable.Repeat(0, options.MaxSequenceLength).ToArray(); 45Ones = Enumerable.Repeat(1, options.MaxSequenceLength).ToArray(); 46NegBillionPad = Enumerable.Repeat(negBillion, options.MaxSequenceLength).ToArray();
Microsoft.ML.Transforms (5)
MissingValueReplacing.cs (2)
890node.AddAttribute("imputed_value_floats", Enumerable.Repeat((float)_parent._repValues[iinfo], 1)); 896node.AddAttribute("imputed_value_floats", Enumerable.Repeat((float)_parent._repValues[iinfo], 1));
Text\WordEmbeddingsExtractor.cs (3)
427tensorD.AddRange(Enumerable.Repeat(0.0f, _parent._currentVocab.Dimension)); 429tensorD.AddRange(Enumerable.Repeat(float.MaxValue, _parent._currentVocab.Dimension)); 431tensorD.AddRange(Enumerable.Repeat(float.MinValue, _parent._currentVocab.Dimension));
Microsoft.NET.StringTools.net35.UnitTests (1)
WeakStringCache_Tests.cs (1)
89string strPart2 = string.Concat(Enumerable.Repeat("100570862200", i + 2));
Microsoft.NET.StringTools.UnitTests (1)
WeakStringCache_Tests.cs (1)
89string strPart2 = string.Concat(Enumerable.Repeat("100570862200", i + 2));
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
PersistentStorage\AbstractPersistentStorageTests.cs (6)
55private static readonly string MediumData1 = string.Join(",", Enumerable.Repeat(SmallData1, MediumSize / SmallData1.Length)); 56private static readonly string MediumData2 = string.Join(",", Enumerable.Repeat(SmallData2, MediumSize / SmallData2.Length)); 58private static readonly string LargeData1 = string.Join(",", Enumerable.Repeat(SmallData1, LargeSize / SmallData1.Length)); 59private static readonly string LargeData2 = string.Join(",", Enumerable.Repeat(SmallData2, LargeSize / SmallData2.Length)); 61private static readonly string ExtraLargeData1 = string.Join(",", Enumerable.Repeat(SmallData1, ExtraLargeSize / SmallData1.Length)); 62private static readonly string ExtraLargeData2 = string.Join(",", Enumerable.Repeat(SmallData2, ExtraLargeSize / SmallData2.Length));
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
934var headerStringValues = new StringValues(Enumerable.Repeat(headerValue, headerCount).ToArray());
StatusCodePagesSample (1)
Startup.cs (1)
88var space = string.Concat(Enumerable.Repeat("&nbsp;", 12));
System.Windows.Forms.Tests (19)
System\Windows\Forms\ColorDialogTests.cs (15)
19Assert.Equal(Enumerable.Repeat(0x00FFFFFF, 16).ToArray(), dialog.CustomColors); 190yield return new object[] { null, Enumerable.Repeat(0x00FFFFFF, 16).ToArray() }; 191yield return new object[] { Array.Empty<int>(), Enumerable.Repeat(0x00FFFFFF, 16).ToArray() }; 192yield return new object[] { new int[] { 1, 2, 3 }, new int[] { 1, 2, 3 }.Concat(Enumerable.Repeat(0x00FFFFFF, 13)).ToArray() }; 193yield return new object[] { Enumerable.Repeat(0, 16).ToArray(), Enumerable.Repeat(0, 16).ToArray() }; 194yield return new object[] { Enumerable.Repeat(unchecked((int)0xFFFFFFFF), 16).ToArray(), Enumerable.Repeat(unchecked((int)0xFFFFFFFF), 16).ToArray() }; 195yield return new object[] { Enumerable.Repeat(1, 16).ToArray(), Enumerable.Repeat(1, 16).ToArray() }; 196yield return new object[] { Enumerable.Repeat(1, 20).ToArray(), Enumerable.Repeat(1, 16).ToArray() }; 242int[] value = Enumerable.Repeat(1, 16).ToArray(); 248Assert.Equal(Enumerable.Repeat(1, 16), dialog.CustomColors); 340Assert.Equal(Enumerable.Repeat(0x00FFFFFF, 16).ToArray(), dialog.CustomColors);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (2)
914Assert.Equal(Enumerable.Repeat(string.Empty, expectedCount), collection.Keys.Cast<string>()); 932Assert.Equal(Enumerable.Repeat(string.Empty, expectedCount), collection.Keys.Cast<string>());
System\Windows\Forms\RichTextBoxTests.cs (2)
6215yield return new object[] { PFM.TABSTOPS, 32, Enumerable.Repeat(900, 32).ToArray(), Enumerable.Repeat(60, 32).ToArray() };