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