382 references to Take
aspire (3)
Aspire.Cli.Tests (3)
Aspire.Dashboard (11)
Aspire.Deployment.EndToEnd.Tests (2)
Aspire.Hosting (1)
aspire-managed (1)
CatalogService (1)
dotnet (5)
GenerateDocumentationAndConfigFiles (6)
ILCompiler.ReadyToRun (1)
ILLink.CodeFixProvider (1)
installer.tasks (4)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Web (2)
Microsoft.AspNetCore.Diagnostics (3)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Http.Extensions (2)
Microsoft.AspNetCore.Localization (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.CodeAnalysis.Analyzers (7)
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
Microsoft.CodeAnalysis.CodeStyle (6)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (11)
Microsoft.CodeAnalysis.CSharp.Features (17)
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Microsoft.CodeAnalysis.Features (21)
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
176.Take(3)
Microsoft.CodeAnalysis.Razor.Compiler (2)
Language\TagHelpers\Producers\FormNameTagHelperProducer.Factory.cs (1)
24.Take(2)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.Data.Analysis.Tests (1)
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.Cli.Utils (3)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (3)
Microsoft.Extensions.AI.Tests (4)
Microsoft.Maui.Controls (2)
Microsoft.Maui.Controls.Build.Tasks (2)
Microsoft.ML.AutoML (7)
Microsoft.ML.AutoML.Tests (3)
Microsoft.ML.Data (10)
Microsoft.ML.Ensemble (1)
Microsoft.ML.FastTree (4)
Microsoft.ML.GenAI.Core (2)
Microsoft.ML.GenAI.Mistral (1)
Microsoft.ML.Mkl.Components (1)
Microsoft.ML.Parquet (3)
Microsoft.ML.Samples (64)
Microsoft.ML.Samples.GPU (1)
Microsoft.ML.SearchSpace (2)
Microsoft.ML.StandardTrainers (2)
Microsoft.ML.Sweeper (1)
Microsoft.ML.Tests (18)
Microsoft.ML.Tokenizers.Tests (28)
CodeGenTests.cs (8)
401Assert.Equal(ids.Take(ids.Length - expectedTokensToExclude), codeGenTokenizer.EncodeToIds(text, ids.Length - 1, out normalizedText, out length));
406Assert.Equal(ids.Take(ids.Length - expectedTokensToExclude), codeGenTokenizer.EncodeToIds(text.AsSpan(), ids.Length - 1, out normalizedText, out length));
410Assert.Equal(expectedIds.Take(expectedIds.Length - expectedTokensToExclude), codeGenTokenizer.EncodeToIds(text, expectedIds.Length - 1, addPrefixSpace: false, addBeginningOfSentence: false, addEndOfSentence: false, out normalizedText, out length));
413Assert.Equal(expectedIds.Take(expectedIds.Length - expectedTokensToExclude), codeGenTokenizer.EncodeToIds(text.AsSpan(), expectedIds.Length - 1, addPrefixSpace: false, addBeginningOfSentence: false, addEndOfSentence: false, out normalizedText, out length));
417Assert.Equal(expectedIdsWithSpace.Take(expectedIdsWithSpace.Length - expectedTokensToExclude), codeGenTokenizer.EncodeToIds(text, expectedIdsWithSpace.Length - 1, addPrefixSpace: true, addBeginningOfSentence: false, addEndOfSentence: false, out normalizedText, out length));
420Assert.Equal(expectedIdsWithSpace.Take(expectedIdsWithSpace.Length - expectedTokensToExclude), codeGenTokenizer.EncodeToIds(text.AsSpan(), expectedIdsWithSpace.Length - 1, addPrefixSpace: true, addBeginningOfSentence: false, addEndOfSentence: false, out normalizedText, out length));
1000Assert.Equal(encodingIds.Take(expectedTokenCount), ids);
1005Assert.Equal(encodingIds.Take(expectedTokenCount), ids);
Microsoft.ML.TorchSharp (1)
Microsoft.ML.Vision (1)
Microsoft.NET.Build.Tasks (1)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
Microsoft.NET.StringTools (1)
Microsoft.SourceLink.AzureDevOpsServer.Git (1)
Microsoft.SourceLink.AzureRepos.Git (1)
Microsoft.TemplateEngine.Cli (2)
Microsoft.TemplateEngine.Core (3)
Microsoft.TestPlatform.Build (1)
Microsoft.TestPlatform.CrossPlatEngine (1)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
Mono.Cecil.Rocks (1)
NuGet.Frameworks (2)
NuGet.Protocol (5)
LocalRepositories\LocalAutoCompleteResource.cs (1)
85.Take(30)
LocalRepositories\LocalPackageSearchResource.cs (1)
72.Take(take)
NuGet.Versioning (1)
PresentationFramework (1)
QuarantineTools.Tests (2)
Roslyn.Diagnostics.Analyzers (6)
Roslyn.Diagnostics.CSharp.Analyzers (5)
System.ComponentModel.Composition (1)
System.Linq (1)
System.Linq.Parallel (1)
System.Text.Json.SourceGeneration (1)
tlens (14)
VBCSCompiler (1)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (1)
257.Take(3)
vstest.console (2)
vstest.console.arm64 (2)