337 references to Take
AnalyzerRunner (1)
Aspire.Dashboard (3)
CatalogService (1)
installer.tasks (4)
Microsoft.AspNetCore.Antiforgery.Test (1)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Web (2)
Microsoft.AspNetCore.Components.WebAssembly.Tests (3)
Microsoft.AspNetCore.Cryptography.Internal.Tests (1)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Diagnostics (3)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Http.Extensions (2)
Microsoft.AspNetCore.Localization (1)
Microsoft.AspNetCore.Mvc.Core.Test (9)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (7)
Buffers\PagedCharBufferTest.cs (6)
59Assert.Equal(new[] { 'a', 'b', 'c', 't' }, page.Take(4));
145Assert.Equal(new[] { 'a', 'b', 'c' }, page.Take(buffer.Length));
274Assert.Equal(new[] { 'a', 'b', 'c', 'd', 'e', 'f' }, page.Take(buffer.Length));
290Assert.Equal(new[] { 'b', 'c', 'd' }, page.Take(buffer.Length));
423Assert.Equal(new[] { 'A', 'b', 'c', 'd', 'e' }, page.Take(buffer.Length));
478Assert.Equal(new[] { 'e', 'f', 'g', 'h' }, buffer.Pages[0].Take(buffer.Length));
Microsoft.AspNetCore.Routing.Tests (1)
Microsoft.AspNetCore.Server.IIS (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
Microsoft.AspNetCore.Shared.Tests (9)
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.TestHost.Tests (2)
Microsoft.AspNetCore.WebSockets.Tests (2)
Microsoft.Build.Engine.OM.UnitTests (1)
Microsoft.CodeAnalysis.CodeStyle (6)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (9)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Microsoft.CodeAnalysis.Features (17)
Microsoft.CodeAnalysis.Rebuild (1)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.UnitTests (20)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.Data.Analysis.Tests (1)
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Microsoft.DotNet.Deployment.Tasks.Links (1)
Microsoft.ML.AutoML (7)
Microsoft.ML.AutoML.Tests (2)
Microsoft.ML.Data (10)
Microsoft.ML.Ensemble (1)
Microsoft.ML.FastTree (4)
Microsoft.ML.GenAI.Core (1)
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 (21)
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.StringTools (1)
Microsoft.NET.StringTools.net35 (1)
Microsoft.VisualStudio.LanguageServices (1)
PresentationFramework (1)
System.ComponentModel.Composition (1)
System.Drawing.Common.Tests (1)
System.Linq.Parallel (1)
System.Windows.Forms.Tests (10)
TagHelpersWebSite (1)
xunit.assert (7)