466 implementations of Count
Aspire.Dashboard.Tests (1)
Aspire.Hosting (2)
Aspire.Hosting.JavaScript (1)
Aspire.Hosting.TestUtilities (1)
Aspire.RabbitMQ.Client (1)
ConfigurationSchemaGenerator (1)
GenerateDocumentationAndConfigFiles (23)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
46public int Count => 1;
Microsoft.AspNetCore.Components (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LoggerMessage.g.cs (1)
208public int Count => 4;
Microsoft.AspNetCore.Components.Endpoints (4)
Microsoft.AspNetCore.Components.Server (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LoggerMessage.g.cs (1)
1156public int Count => 2;
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Abstractions (2)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Extensions (3)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.Identity (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LoggerMessage.g.cs (1)
35public int Count => 3;
Microsoft.AspNetCore.Mvc.Abstractions (2)
Microsoft.AspNetCore.Mvc.Core (7)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Microsoft.AspNetCore.Routing (1)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Core (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LoggerMessage.g.cs (1)
131public int Count => 3;
Microsoft.Build (25)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedList`1.cs (1)
181public int Count => _size;
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\ArrayBuilder.cs (1)
106public int Count
Microsoft.Build.Framework (1)
Microsoft.CodeAnalysis (32)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
46public int Count => 1;
Microsoft.CodeAnalysis.Analyzers (23)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
46public int Count => 1;
Microsoft.CodeAnalysis.AnalyzerUtilities (23)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
46public int Count => 1;
Microsoft.CodeAnalysis.CodeStyle (23)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
46public int Count => 1;
Microsoft.CodeAnalysis.Extensions.Package (21)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
46public int Count => 1;
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
76public int Count
Microsoft.CodeAnalysis.Razor.Compiler (6)
Microsoft.CodeAnalysis.ResxSourceGenerator (23)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
46public int Count => 1;
Microsoft.CodeAnalysis.Workspaces (24)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
46public int Count => 1;
Microsoft.Diagnostics.DataContractReader.DataGenerator (1)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (5)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (9)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Primitives (1)
Microsoft.Extensions.Telemetry (3)
Microsoft.Extensions.Telemetry.Abstractions (1)
Microsoft.Gen.BuildMetadata.Unit.Tests (2)
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
Microsoft.Gen.Logging.Unit.Tests (2)
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
Microsoft.Gen.Metrics.Unit.Tests (2)
Microsoft.Gen.MetricsReports.Unit.Tests (2)
Microsoft.Maui (2)
Microsoft.Maui.Controls (7)
Microsoft.ML.Core (1)
Microsoft.ML.Data (1)
Microsoft.ML.DataView (1)
Microsoft.ML.StandardTrainers (1)
Microsoft.Private.Windows.Core (2)
Microsoft.TemplateEngine.Abstractions (2)
Microsoft.TemplateEngine.Edge (1)
Microsoft.TemplateEngine.Utils (1)
PresentationFramework (2)
Roslyn.Diagnostics.Analyzers (23)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
46public int Count => 1;
Shared (2)
Shared.Tests (2)
System.Collections (11)
System.Collections.Concurrent (3)
System.Collections.Immutable (16)
System.Diagnostics.DiagnosticSource (1)
System.Formats.Nrbf (1)
System.Linq (4)
System.Linq.AsyncEnumerable (1)
System.Linq.Expressions (1)
System.Net.Http (3)
System.Net.Primitives (1)
System.Net.WebSockets.Client (1)
System.Private.CoreLib (17)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1136public int Count
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (1)
256public int Count
System.Private.Windows.Core (2)
System.Private.Windows.Core.TestUtilities (2)
System.Reflection.Metadata (25)
System.Security.Cryptography.Cose (1)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (4)
System.Windows.Forms.Primitives (1)
3291 references to Count
aspire (121)
aspire-managed (3)
Aspire.Cli.EndToEnd.Tests (4)
Aspire.Cli.Tests (54)
Mcp\Docs\LlmsTxtParserTests.cs (13)
81Assert.Equal(3, result.Count);
108Assert.Equal(3, doc.Sections.Count);
259Assert.Equal(2, result.Count);
290Assert.Equal(3, result.Count);
324Assert.Equal(3, result.Count);
406Assert.Equal(2, result.Count);
452Assert.Equal(2, result.Count);
459Assert.Equal(2, overview.Sections.Count);
658Assert.Equal(4, result.Count);
701Assert.True(certificatesDoc.Sections.Count > 0, "Certificate doc should have sections");
721Assert.True(appHostConfigDoc.Sections.Count > 0, "AppHost config doc should have sections");
737Assert.True(dockerComposeDoc.Sections.Count > 0, "Docker Compose doc should have sections");
753Assert.True(eventingDoc.Sections.Count > 0, "Eventing doc should have sections");
Aspire.Dashboard (50)
Aspire.Dashboard.Components.Tests (50)
Aspire.Dashboard.Tests (3)
Aspire.Deployment.EndToEnd.Tests (2)
Aspire.Hosting (64)
Aspire.Hosting.Azure (20)
Aspire.Hosting.Azure.AppContainers (3)
Aspire.Hosting.Azure.AppService (3)
Aspire.Hosting.Azure.CosmosDB (2)
Aspire.Hosting.Azure.Sandboxes (8)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.Blazor (1)
Aspire.Hosting.Browsers (1)
Aspire.Hosting.Browsers.Tests (1)
Aspire.Hosting.CodeGeneration.Go (15)
Aspire.Hosting.CodeGeneration.Go.Tests (1)
Aspire.Hosting.CodeGeneration.Java (19)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
Aspire.Hosting.CodeGeneration.Python (9)
Aspire.Hosting.CodeGeneration.Python.Tests (1)
Aspire.Hosting.CodeGeneration.Rust (5)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
Aspire.Hosting.CodeGeneration.TypeScript (21)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (3)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (7)
Aspire.Hosting.Dotnet (5)
Aspire.Hosting.Foundry (8)
Aspire.Hosting.Foundry.Tests (3)
Aspire.Hosting.JavaScript (2)
Aspire.Hosting.Kubernetes (8)
Aspire.Hosting.Maui.Tests (1)
Aspire.Hosting.Radius (12)
Aspire.Hosting.RemoteHost (28)
Aspire.Hosting.RemoteHost.Tests (4)
Aspire.Hosting.Rust (6)
Aspire.Hosting.Tasks (2)
Aspire.Hosting.Tests (35)
Aspire.Hosting.TestUtilities (2)
Aspire.Hosting.Yarp (1)
Aspire.RabbitMQ.Client.Tests (2)
Aspire.RabbitMQ.Client.v6.Tests (2)
Aspire.Templates.Tests (1)
Aspire.TerminalHost (3)
Aspire.TestTools (1)
Aspire.TypeSystem (1)
crossgen2 (5)
csc (2)
dotnet-aot (29)
dotnet-dev-certs (2)
dotnet-format (4)
dotnet-svcutil-lib (1)
dotnet-watch (8)
GenerateDocumentationAndConfigFiles (39)
ILAssembler (7)
ilc (4)
ILCompiler.Compiler (18)
ILCompiler.ReadyToRun (23)
ILCompiler.RyuJit (4)
illink (2)
ILLink.CodeFixProvider (1)
ILLink.RoslynAnalyzer (2)
Infrastructure.Tests (2)
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Extra.Tests (24)
Microsoft.Analyzers.Local.Tests (11)
Microsoft.AspNetCore.AsyncState (1)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.Authorization.Policy (3)
Microsoft.AspNetCore.Components (53)
Microsoft.AspNetCore.Components.AI (6)
Microsoft.AspNetCore.Components.AI.SourceGenerators (3)
Microsoft.AspNetCore.Components.Endpoints (24)
Microsoft.AspNetCore.Components.Forms (3)
Microsoft.AspNetCore.Components.Server (18)
Microsoft.AspNetCore.Components.Web (6)
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (40)
Logging\AcceptanceTests.cs (26)
244Assert.Equal(8, state!.Count);
249Assert.Equal(7, state!.Count);
304Assert.Equal(9, state!.Count);
309Assert.Equal(7, state!.Count);
390Assert.Equal(5, logRecords.Count);
402Assert.Equal(6, requestState!.Count);
412Assert.Equal(3, requestBodyState!.Count);
415Assert.Equal(2, responseState!.Count);
419Assert.Equal(2, responseBodyState!.Count);
422Assert.Equal(2, durationState!.Count);
460Assert.Equal(9, state!.Count);
506Assert.Equal(9, state!.Count);
548Assert.Equal(7, state!.Count);
571Assert.Equal(3, logRecords.Count);
580Assert.Equal(5, firstState!.Count);
584Assert.Equal(3, secondState!.Count);
609Assert.Equal(6, logRecords.Count);
622Assert.Equal(5, firstRecord!.Count);
624Assert.Equal(5, fourthRecord!.Count);
638Assert.Equal(2, thirdRecord!.Count);
639Assert.Equal(2, sixthRecord!.Count);
665Assert.Equal(7, state!.Count);
706Assert.Equal(10, state!.Count);
740Assert.Equal(7, state!.Count);
798Assert.Equal(7, logCollector.GetSnapshot()[0].StructuredState!.Count);
987Assert.Equal(7, logCollector.GetSnapshot()[1].StructuredState!.Count);
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.HeaderParsing.Tests (2)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Extensions (4)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Http.Results (5)
Microsoft.AspNetCore.JsonPatch (1)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.Core (60)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.Razor (4)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (5)
Microsoft.AspNetCore.Mvc.RazorPages (7)
Microsoft.AspNetCore.Mvc.TagHelpers (6)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (13)
Microsoft.AspNetCore.OpenApi (5)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.Owin (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (38)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledDictionaryBuilder`2.cs (1)
61if (items.Count == 0)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledList`1.cs (1)
72if (items.Count == 0)
Microsoft.AspNetCore.Routing (131)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Core (3)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (3)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (7)
Microsoft.AspNetCore.StaticAssets (7)
Microsoft.AspNetCore.Testing (1)
Microsoft.Build (77)
Microsoft.Build.Framework (21)
Microsoft.Build.NuGetSdkResolver (2)
Microsoft.Build.Tasks.CodeAnalysis (3)
Microsoft.Build.Tasks.Core (4)
Microsoft.Build.Tasks.Git (1)
Microsoft.CodeAnalysis (84)
PEWriter\MetadataWriter.cs (16)
1972metadata.SetCapacity(TableIndex.AssemblyRef, assemblyRefs.Count);
2217metadata.SetCapacity(TableIndex.Event, eventDefs.Count);
2385metadata.SetCapacity(TableIndex.Field, fieldDefs.Count);
2604metadata.SetCapacity(TableIndex.MemberRef, memberRefs.Count);
2643metadata.SetCapacity(TableIndex.MethodSpec, methodSpecs.Count);
2656metadata.SetCapacity(TableIndex.MethodDef, methodDefs.Count);
2679metadata.SetCapacity(TableIndex.MethodSemantics, propertyDefs.Count * 2 + eventDefs.Count * 2);
2753metadata.SetCapacity(TableIndex.ModuleRef, moduleRefs.Count);
2793metadata.SetCapacity(TableIndex.Param, parameterDefs.Count);
2807metadata.SetCapacity(TableIndex.Property, propertyDefs.Count);
2821metadata.SetCapacity(TableIndex.TypeDef, typeDefs.Count);
2878metadata.SetCapacity(TableIndex.TypeRef, typeRefs.Count);
2938metadata.SetCapacity(TableIndex.TypeSpec, typeSpecs.Count);
2960int[] bodyOffsets = new int[methods.Count];
2992int[] bodyOffsets = new int[methods.Count];
Microsoft.CodeAnalysis.Analyzers (40)
Microsoft.CodeAnalysis.AnalyzerUtilities (35)
Microsoft.CodeAnalysis.BuildClient.Package (2)
Microsoft.CodeAnalysis.CodeStyle (30)
Microsoft.CodeAnalysis.CodeStyle.Fixes (12)
Microsoft.CodeAnalysis.CSharp (11)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
Microsoft.CodeAnalysis.CSharp.Features (12)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (5)
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Microsoft.CodeAnalysis.Extensions.Package (19)
Microsoft.CodeAnalysis.Features (61)
Microsoft.CodeAnalysis.NetAnalyzers (17)
Microsoft.CodeAnalysis.Razor.Compiler (11)
Microsoft.CodeAnalysis.ResxSourceGenerator (32)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (2)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (16)
Microsoft.CodeAnalysis.Workspaces (83)
Editing\SyntaxGenerator.cs (10)
1083attributeArguments: args.Count > 0 ? args : null);
1158=> this.InsertAttributes(declaration, this.GetAttributes(declaration).Count, attributes);
1186=> this.InsertReturnAttributes(declaration, this.GetReturnAttributes(declaration).Count, attributes);
1208=> this.InsertAttributeArguments(attributeDeclaration, this.GetAttributeArguments(attributeDeclaration).Count, attributeArguments);
1230=> this.InsertNamespaceImports(declaration, this.GetNamespaceImports(declaration).Count, imports);
1258=> this.InsertMembers(declaration, this.GetMembers(declaration).Count, members);
1331=> this.InsertParameters(declaration, this.GetParameters(declaration).Count, parameters);
1347=> this.InsertSwitchSections(switchStatement, this.GetSwitchSections(switchStatement).Count, switchSections);
1389=> this.InsertAccessors(declaration, this.GetAccessors(declaration).Count, accessors);
1574for (int i = 0, count = list.Count; i < count; i++)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.Data.Analysis (17)
Microsoft.Data.Analysis.Tests (6)
Microsoft.Diagnostics.DataContractReader.Contracts (7)
Microsoft.Diagnostics.DataContractReader.Legacy (24)
Microsoft.Diagnostics.NETCore.Client (3)
Microsoft.DotNet.ApiCompat.Task (1)
Microsoft.DotNet.ApiCompatibility (7)
Microsoft.DotNet.ApiSymbolExtensions (2)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Cli.CommandLine (3)
Microsoft.DotNet.Cli.Definitions (7)
Microsoft.DotNet.HotReload.Watch (20)
Microsoft.DotNet.NuGetRepack.Tasks (2)
Microsoft.DotNet.PackageValidation (10)
Microsoft.Extensions.AI (9)
Microsoft.Extensions.AI.Abstractions (5)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Evaluation (3)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Evaluation.NLP (3)
Microsoft.Extensions.AI.Evaluation.Quality (6)
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Microsoft.Extensions.AI.Evaluation.Safety (1)
Microsoft.Extensions.AI.Integration.Tests (6)
Microsoft.Extensions.AI.OpenAI (8)
Microsoft.Extensions.AI.OpenAI.Tests (2)
Microsoft.Extensions.AI.Tests (2)
Microsoft.Extensions.AmbientMetadata.Application (1)
Microsoft.Extensions.AmbientMetadata.Build (1)
Microsoft.Extensions.AsyncState (1)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Compliance.Abstractions (1)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Compliance.Testing (1)
Microsoft.Extensions.Compliance.Testing.Tests (2)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
Microsoft.Extensions.DataIngestion (2)
Microsoft.Extensions.DataIngestion.Abstractions (1)
Microsoft.Extensions.DataIngestion.Markdig (1)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
Microsoft.Extensions.DataIngestion.Tests (21)
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
Microsoft.Extensions.DependencyModel (7)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (1)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (7)
Microsoft.Extensions.Diagnostics.Testing (3)
Microsoft.Extensions.Diagnostics.Testing.Tests (15)
Microsoft.Extensions.DotNetDeltaApplier (2)
Microsoft.Extensions.FileProviders.Embedded (2)
Microsoft.Extensions.Hosting.Testing (1)
Microsoft.Extensions.Hosting.Testing.Tests (1)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (9)
Microsoft.Extensions.Http.Diagnostics.Tests (6)
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Logging.EventSource (2)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
Microsoft.Extensions.Options.Contextual (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (3)
Microsoft.Extensions.Resilience (1)
Microsoft.Extensions.ServiceDiscovery (6)
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
Microsoft.Extensions.ServiceDiscovery.Dns (4)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (6)
Microsoft.Extensions.ServiceDiscovery.Tests (5)
Microsoft.Extensions.ServiceDiscovery.Yarp (3)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (2)
Microsoft.Extensions.Telemetry (9)
Microsoft.Extensions.Telemetry.Abstractions (1)
Microsoft.Extensions.Telemetry.Abstractions.Tests (6)
Microsoft.Extensions.Telemetry.PerformanceTests (1)
Microsoft.Extensions.TimeProvider.Testing (1)
Microsoft.Extensions.VectorData.Abstractions (2)
Microsoft.Gen.BuildMetadata.Unit.Tests (4)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Generated.Tests (10)
Microsoft.Gen.Logging.Unit.Tests (6)
Microsoft.Gen.MetadataExtractor (7)
Microsoft.Gen.MetadataExtractor.Unit.Tests (4)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.Metrics.Generated.Tests (2)
Microsoft.Gen.Metrics.Unit.Tests (4)
Microsoft.Gen.MetricsReports (4)
Microsoft.Gen.MetricsReports.Unit.Tests (4)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Maui (3)
Microsoft.Maui.Controls (98)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Graphics (5)
Microsoft.ML.AutoML (8)
Microsoft.ML.AutoML.Tests (2)
Microsoft.ML.Core (14)
Microsoft.ML.Data (13)
Microsoft.ML.FastTree (2)
Microsoft.ML.GenAI.Core (1)
Microsoft.ML.IntegrationTests (8)
Microsoft.ML.Maml (2)
Microsoft.ML.OnnxTransformer (1)
Microsoft.ML.PerformanceTests (1)
Microsoft.ML.Samples (4)
Microsoft.ML.StandardTrainers (2)
Microsoft.ML.Tests (14)
Microsoft.ML.TimeSeries (30)
Microsoft.ML.Tokenizers (38)
Microsoft.ML.Tokenizers.Tests (125)
CodeGenTests.cs (38)
691Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
696Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
701Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
706Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
715Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
720Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
725Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
730Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
735Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
740Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
743Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
745Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
747Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
749Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
751Assert.NotEqual(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
753Assert.NotEqual(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
755Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
757Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
827Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
833Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
839Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
845Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
857Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
863Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
869Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
875Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
881Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
887Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset);
891Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
894Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
897Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
900Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
903Assert.NotEqual(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
906Assert.NotEqual(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
909Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
912Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
998Assert.Equal(expectedTokenCount, ids.Count);
1003Assert.Equal(expectedTokenCount, ids.Count);
TiktokenTests.cs (20)
134Assert.Equal(externalEncoder.Count, encoder.Count);
164Assert.Equal(encoded.Count, idsCount);
218Assert.Equal(encoded.Count, idsCount);
226Assert.Equal(5584, encoded.Count);
228Assert.Equal(encoded.Count, idsCount);
258Assert.Equal(encoded.Count, idsCount);
288Assert.Equal(encoded.Count, idsCount);
302Assert.Equal(5609, encoded.Count);
303Assert.Equal(encoded.Count, idsCount);
325Assert.Equal(encoded.Count, idsCount);
339Assert.Equal(11378, encoded.Count);
340Assert.Equal(encoded.Count, idsCount);
358Assert.Equal(7230, encoded.Count);
359Assert.Equal(encoded.Count, idsCount);
377Assert.Equal(7230, encoded.Count);
378Assert.Equal(encoded.Count, idsCount);
396Assert.Equal(11378, encoded.Count);
397Assert.Equal(encoded.Count, idsCount);
586int entriesCount = GetEncoder((tokenizer as TiktokenTokenizer)!)!.Count;
Microsoft.ML.TorchSharp (10)
Microsoft.ML.Transforms (17)
Microsoft.NET.Build.Tasks (4)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
Microsoft.Private.Windows.Core (17)
Microsoft.TemplateEngine.Abstractions (2)
Microsoft.TemplateEngine.Cli (27)
Microsoft.TemplateEngine.Core (14)
Microsoft.TemplateEngine.Edge (13)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (15)
Microsoft.TemplateEngine.Utils (14)
Microsoft.TemplateSearch.Common (2)
Microsoft.VisualStudio.TestPlatform.Common (2)
Microsoft.VisualStudio.TestPlatform.ObjectModel (3)
MSBuild (5)
NuGet.Build.Tasks (3)
NuGet.Build.Tasks.Console (7)
NuGet.CommandLine.XPlat (31)
NuGet.Commands (49)
NuGet.Configuration (10)
NuGet.DependencyResolver.Core (8)
NuGet.Frameworks (5)
NuGet.LibraryModel (2)
NuGet.PackageManagement (31)
NuGet.Packaging (39)
NuGet.ProjectModel (11)
NuGet.Protocol (28)
NuGet.Resolver (2)
NuGet.Versioning (3)
PresentationBuildTasks (1)
PresentationCore (1)
PresentationFramework (25)
Roslyn.Diagnostics.Analyzers (40)
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
rzc (2)
SelectTests (31)
Program.cs (29)
682if (cause.Path is { Count: > 0 })
762var fileWord = changedFiles.Count == 1 ? "changed file" : "changed files";
764var advisoryWord = advisoryTargets.Count == 1 ? "target" : "targets";
766$"**{prTests.Count} / {allPrTestProjects} PR test projects · {prJobs.Count} PR {jobWord} · {advisoryTargets.Count} advisory-only {advisoryWord}**, from {changedFiles.Count} {fileWord}.");
812sb.AppendLine(CultureInfo.InvariantCulture, $"### Advisory workflow impact ({targets.Count})");
814if (targets.Count == 0)
886if (orderedGroups.Count > 0 && tests.Count >= 10 && orderedGroups[0].Value.Count >= 5)
890$"⚠️ {top.Value.Count} of the {tests.Count} selected test projects come from a single change — {CauseGroupDescriptor(top.Key)}.");
923if (jobs.Count == 0)
950return items.Count <= InlineLimit
951? $"**{items.Count}** {label}: {joined}"
952: $"**{items.Count}** {label}\n<details><summary>show {items.Count}</summary>\n\n{joined}\n</details>";
959if (member.Value is { Kind: CauseKind.Layer1Graph, Path: { Count: > 0 } path })
962var hops = path.Count - 2;
978CauseKind.Layer1Graph => $"file:{(cause.Path is { Count: > 0 } path ? path[0] : "(changed source)")}",
1043if (!causes.TryGetValue(key, out var list) || list.Count == 0)
1105sb.AppendLine(CultureInfo.InvariantCulture, $"- layer 1 (affected-projects graph): {(options.SkipLayer1 || options.ForceAll ? "skipped" : $"{layer1Affected.Count} affected project(s) (production + test)")}");
1109sb.AppendLine(CultureInfo.InvariantCulture, $"### Changed files ({changedFiles.Count})");
1124if (excludedFiles.Count > 0)
1126sb.AppendLine(CultureInfo.InvariantCulture, $"### Pre-filtered (excluded) files ({excludedFiles.Count})");
1172$"- advisory-only targets: {(advisoryTargets.Count == 0 ? "(none)" : string.Join(", ", advisoryTargets.Select(target => target.Token)))}");
1185$"- advisory-only targets: {(advisoryTargets.Count == 0 ? "(none)" : string.Join(", ", advisoryTargets.Select(target => target.Token)))}");
1223builder.AppendLine(CultureInfo.InvariantCulture, $"<details><summary>{title} ({keys.Count})</summary>");
1243builder.AppendLine(CultureInfo.InvariantCulture, $"<details><summary>{title} ({projects.Count})</summary>");
1302if (cause.Path is not { Count: > 0 } path)
1308var hops = path.Count - 2;
1323CauseKind.Layer1Graph => cause.Path is { Count: > 0 } path
Shared (6)
Shared.Tests (1)
Stress.AppHost (1)
System.Collections.Immutable (20)
System\Collections\Immutable\ImmutableList.cs (10)
149return list.IndexOf(item, 0, list.Count, EqualityComparer<T>.Default);
170return list.IndexOf(item, 0, list.Count, equalityComparer);
195return list.IndexOf(item, startIndex, list.Count - startIndex, EqualityComparer<T>.Default);
243if (list.Count == 0)
249return list.LastIndexOf(item, list.Count - 1, list.Count, EqualityComparer<T>.Default);
270if (list.Count == 0)
276return list.LastIndexOf(item, list.Count - 1, list.Count, equalityComparer);
301if (list.Count == 0 && startIndex == 0)
System.CommandLine (36)
System.CommandLine.StaticCompletions (1)
System.Formats.Nrbf (3)
System.Linq.Expressions (41)
System.Net.Http (2)
System.Net.NameResolution (5)
System.Private.CoreLib (8)
System.Private.Windows.Core (17)
System.Reflection.Metadata (8)
System.Text.Json (3)
System.Text.Json.SourceGeneration (1)
System.Windows.Forms (17)
System.Windows.Forms.Design (3)
System.Xaml (2)
TypeScriptApiCompat (10)
vbc (2)
VBCSCompiler (2)