language
stringclasses
1 value
repo
stringclasses
133 values
path
stringlengths
13
229
class_span
dict
source
stringlengths
14
2.92M
target
stringlengths
1
153
csharp
RicoSuter__NJsonSchema
src/NJsonSchema/Infrastructure/DynamicApis.cs
{ "start": 3564, "end": 7365 }
enum ____ loaded) // NOTE: we can't use All or -1 since those weren't in the 4.0 version of the enum, but we // still want to enable additional decompression methods like Brotli (and potentially // additional ones in the future) if the loaded httpclient supports it. // w...
was
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine/CommandLineResources.Designer.cs
{ "start": 675, "end": 2189 }
internal class ____ { private static System.Resources.ResourceManager resourceMan; private static System.Globalization.CultureInfo resourceCulture; [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] ...
CommandLineResources
csharp
dotnet__extensions
test/Libraries/Microsoft.Extensions.AI.Tests/Functions/AIFunctionFactoryTest.cs
{ "start": 46944, "end": 47051 }
private sealed class ____; private static int TestStaticMethod(int a, int b) => a + b;
MyArgumentType
csharp
unoplatform__uno
src/Uno.UI.Runtime.Skia.X11/X11_Bindings/x11bindings_X11Structs.cs
{ "start": 36169, "end": 36557 }
public enum ____ { USPosition = (1 << 0), USSize = (1 << 1), PPosition = (1 << 2), PSize = (1 << 3), PMinSize = (1 << 4), PMaxSize = (1 << 5), PResizeInc = (1 << 6), PAspect = (1 << 7), PAllHints = (PPosition | PSize | PMinSize | PMaxSize | PResizeInc | PAspect), PBaseSize = (1 << 8), PWinGravity...
XSizeHintsFlags
csharp
louthy__language-ext
LanguageExt.Tests/Multiplicable.cs
{ "start": 233, "end": 497 }
public class ____ { [Fact] public void OptionalNumericMultiply() { var x = Some(10); var y = Some(20); var z = product<TInt, int>(x, y); Assert.True(z == 200); } } }
Multiplicable
csharp
grandnode__grandnode2
src/Core/Grand.Domain/Courses/CourseLesson.cs
{ "start": 34, "end": 1328 }
public class ____ : BaseEntity { /// <summary> /// Gets or sets the name /// </summary> public string Name { get; set; } /// <summary> /// Gets or sets the short description /// </summary> public string ShortDescription { get; set; } /// <summary> /// Gets or sets t...
CourseLesson
csharp
dotnet__efcore
test/EFCore.Specification.Tests/DataAnnotationTestBase.cs
{ "start": 66866, "end": 67181 }
public class ____ { [Key] public int UserUId { get; set; } [InverseProperty(nameof(Relation.AccountManager))] public virtual ICollection<Relation> AccountManagerRelations { get; set; } public virtual ICollection<Relation> SalesManagerRelations { get; set; } }
User
csharp
simplcommerce__SimplCommerce
src/SimplCommerce.Infrastructure/ValidationException.cs
{ "start": 159, "end": 762 }
public class ____ : Exception { public ValidationException(Type target, IList<ValidationResult> validationResults) { TargetType = target; ValidationResults = validationResults; } public IList<ValidationResult> ValidationResults { get; } public Type T...
ValidationException
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding101OneToOneNrtTestBase.cs
{ "start": 14379, "end": 14746 }
public class ____ : BlogContext0 { protected override void OnModelCreating(ModelBuilder modelBuilder) => modelBuilder.Entity<Blog>() .HasOne(e => e.Header) .WithOne() .HasForeignKey<BlogHeader>(e => e.BlogId) ...
BlogContext1
csharp
dotnet__orleans
src/Orleans.Streaming/PersistentStreams/PersistentStreamPullingAgent.cs
{ "start": 31212, "end": 35955 }
record ____ there was a delivery failure if (isDeliveryError) { await streamFailureHandler.OnDeliveryFailure( consumerData.SubscriptionId, streamProviderName, consumerData.StreamId, token).ConfigureAwait(ConfigureAwaitOptions.SuppressThrowing | ConfigureAw...
that
csharp
unoplatform__uno
src/Uno.Foundation/Generated/2.0.0.0/Windows.Foundation.Metadata/ExperimentalAttribute.cs
{ "start": 262, "end": 557 }
public partial class ____ : global::System.Attribute { // Skipping already declared method Windows.Foundation.Metadata.ExperimentalAttribute.ExperimentalAttribute() // Forced skipping of method Windows.Foundation.Metadata.ExperimentalAttribute.ExperimentalAttribute() } }
ExperimentalAttribute
csharp
dotnet__reactive
Rx.NET/Source/src/System.Reactive/Linq/Observable/Aggregate.cs
{ "start": 4787, "end": 5668 }
internal sealed class ____<TSource, TAccumulate, TResult> : Producer<TResult, Aggregate<TSource, TAccumulate, TResult>._> { private readonly IObservable<TSource> _source; private readonly TAccumulate _seed; private readonly Func<TAccumulate, TSource, TAccumulate> _accumulator; privat...
Aggregate
csharp
dotnet__aspire
src/Aspire.Hosting.Azure/Provisioning/Internal/IProvisioningServices.cs
{ "start": 6551, "end": 6741 }
internal interface ____ { /// <summary> /// Gets the token credential for Azure authentication. /// </summary> TokenCredential TokenCredential { get; } }
ITokenCredentialProvider
csharp
kgrzybek__modular-monolith-with-ddd
src/Modules/Meetings/Infrastructure/Domain/MeetingGroups/MeetingGroupsEntityTypeConfiguration.cs
{ "start": 316, "end": 2096 }
internal class ____ : IEntityTypeConfiguration<MeetingGroup> { public void Configure(EntityTypeBuilder<MeetingGroup> builder) { builder.ToTable("MeetingGroups", "meetings"); builder.HasKey(x => x.Id); builder.Property<string>("_name").HasColumnName("Name"); ...
MeetingGroupsEntityTypeConfiguration
csharp
dotnet__aspnetcore
src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Data/SqlServer/00000000000000_CreateIdentitySchema.Designer.cs
{ "start": 474, "end": 10498 }
partial class ____ { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnn...
CreateIdentitySchema
csharp
dotnet__aspnetcore
src/Http/WebUtilities/src/MultipartReader.cs
{ "start": 401, "end": 5837 }
public class ____ { /// <summary> /// Gets the default value for <see cref="HeadersCountLimit"/>. /// Defaults to 16. /// </summary> public const int DefaultHeadersCountLimit = 16; /// <summary> /// Gets the default value for <see cref="HeadersLengthLimit"/>. /// Defaults to 16,384 byte...
MultipartReader
csharp
AvaloniaUI__Avalonia
tests/Avalonia.Controls.UnitTests/TabControlTests.cs
{ "start": 583, "end": 27946 }
public class ____ : ScopedTestBase { static TabControlTests() { RuntimeHelpers.RunClassConstructor(typeof(RelativeSource).TypeHandle); } [Fact] public void First_Tab_Should_Be_Selected_By_Default() { TabItem selected; var target = ...
TabControlTests
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.Bson.Tests/Serialization/Conventions/StringObjectIdGeneratorConventionsTests.cs
{ "start": 854, "end": 2517 }
public class ____ { private StringObjectIdIdGeneratorConvention _subject; public StringObjectIdIdGeneratorConventionsTests() { _subject = new StringObjectIdIdGeneratorConvention(); } [Fact] public void TestDoesNotSetWhenNoIdExists() { ...
StringObjectIdIdGeneratorConventionsTests
csharp
mysql-net__MySqlConnector
tests/Conformance.Tests/GetValueConversionTests.cs
{ "start": 128, "end": 48286 }
public class ____ : GetValueConversionTestBase<SelectValueFixture> { public GetValueConversionTests(SelectValueFixture fixture) : base(fixture) { } // GetBoolean allows conversions from any integral type and decimal for backwards compatibility public override void GetBoolean_throws_for_maximum_Byte() => TestGet...
GetValueConversionTests
csharp
dotnet__aspnetcore
src/Mvc/Mvc.ViewFeatures/test/ViewComponents/ViewComponentConventionsTest.cs
{ "start": 4900, "end": 4962 }
internal class ____ : ViewComponent { }
InternalClass
csharp
aspnetboilerplate__aspnetboilerplate
test/Abp.TestBase.Tests/Application/Services/ServiceWithDifferentInputs_Tests.cs
{ "start": 1380, "end": 1465 }
public class ____ { } #endregion } }
MyEmptyDto
csharp
OrchardCMS__OrchardCore
src/OrchardCore.Modules/OrchardCore.Media/Fields/Anchor.cs
{ "start": 236, "end": 342 }
public class ____ { public float X { get; set; } = 0.5f; public float Y { get; set; } = 0.5f; }
Anchor
csharp
npgsql__efcore.pg
test/EFCore.PG.FunctionalTests/QueryExpressionInterceptionNpgsqlTestBase.cs
{ "start": 1427, "end": 1726 }
public class ____ : InterceptionNpgsqlFixtureBase { protected override string StoreName => "QueryExpressionInterception"; protected override bool ShouldSubscribeToDiagnosticListener => false; } }
InterceptionNpgsqlFixture
csharp
dotnet__aspnetcore
src/SignalR/server/Core/src/HubConnectionHandler.cs
{ "start": 2402, "end": 15502 }
class ____ typically created via dependency injection.</remarks> public HubConnectionHandler(HubLifetimeManager<THub> lifetimeManager, IHubProtocolResolver protocolResolver, IOptions<HubOptions> globalHubOptions, IOptio...
is
csharp
dotnet__efcore
src/EFCore/Diagnostics/KeyEventData.cs
{ "start": 261, "end": 477 }
class ____ events that have a key. /// </summary> /// <remarks> /// See <see href="https://aka.ms/efcore-docs-diagnostics">Logging, events, and diagnostics</see> for more information and examples. /// </remarks>
for
csharp
unoplatform__uno
src/Uno.UI.Toolkit/DevTools/Input/IInjectedPointer.cs
{ "start": 271, "end": 501 }
internal interface ____ { void Press(Point position); void MoveTo(Point position, uint? steps = null, uint? stepOffsetInMilliseconds = null); void MoveBy(double deltaX = 0, double deltaY = 0); void Release(); }
IInjectedPointer
csharp
nuke-build__nuke
source/Nuke.Tooling/Options.When.cs
{ "start": 202, "end": 695 }
partial class ____ { public static T When<T>(this T options, Func<T, bool> condition, Configure<T> configurator) where T : Options, new() { return condition.Invoke(options) ? options.Apply(configurator) : options; } public static T[] When<T>(this T[] options, Func<T, bool> condition, Co...
OptionsExtensions
csharp
dotnetcore__CAP
test/DotNetCore.CAP.Test/ConsumerServiceSelectorTest.cs
{ "start": 7533, "end": 8121 }
public class ____ : IBarTest { [CandidatesTopic("Candidates.Bar")] public Task GetBar() { Console.WriteLine("GetBar() method has bee excuted."); return Task.CompletedTask; } [CandidatesTopic("Candidates.Bar2")] public void GetBar2() { ...
CandidatesBarTest
csharp
protobuf-net__protobuf-net
src/Examples/Issues/SO11657482.cs
{ "start": 275, "end": 435 }
public class ____ : Base { [ProtoMember(1)] public int SomeProperty { get; set; } } [ProtoContract]
Derived
csharp
RicoSuter__NJsonSchema
src/NJsonSchema.Annotations/JsonSchemaProcessorAttribute.cs
{ "start": 627, "end": 1366 }
public class ____ : Attribute { /// <summary>Initializes a new instance of the <see cref="JsonSchemaProcessorAttribute"/> class.</summary> /// <param name="type">The schema processor type (must implement ISchemaProcessor).</param> /// <param name="parameters">The parameters.</param> public JsonSchemaPro...
JsonSchemaProcessorAttribute
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Razor.RuntimeCompilation/src/MvcRazorRuntimeCompilationOptions.cs
{ "start": 796, "end": 1730 }
public class ____ { /// <summary> /// Gets the <see cref="IFileProvider" /> instances used to locate Razor files. /// </summary> /// <remarks> /// At startup, this collection is initialized to include an instance of /// <see cref="IHostingEnvironment.ContentRootFileProvider"/> that is rooted at ...
MvcRazorRuntimeCompilationOptions
csharp
icsharpcode__ILSpy
ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeReferenceExpression.cs
{ "start": 1344, "end": 2253 }
public class ____ : Expression { public AstType Type { get { return GetChildByRole(Roles.Type); } set { SetChildByRole(Roles.Type, value); } } public override void AcceptVisitor(IAstVisitor visitor) { visitor.VisitTypeReferenceExpression(this); } public override T AcceptVisitor<T>(IAstVisitor<T>...
TypeReferenceExpression
csharp
cake-build__cake
src/Cake.Frosting/IFrostingLifetime.cs
{ "start": 815, "end": 1390 }
public interface ____ { /// <summary> /// This method is executed after all tasks have been run. /// If a setup action or a task fails with or without recovery, the specified teardown action will still be executed. /// </summary> /// <param name="context">The context.</param>...
IFrostingTeardown
csharp
dotnet__maui
src/Compatibility/Core/src/Android/CollectionView/DataChangeObserver.cs
{ "start": 208, "end": 1973 }
internal class ____ : RecyclerView.AdapterDataObserver { IntPtr _adapter; readonly Action _onDataChange; public bool Observing { get; private set; } public DataChangeObserver(Action onDataChange) : base() { _onDataChange = onDataChange; } public void Start(Adapter adapter) { if (Observing) ...
DataChangeObserver
csharp
ServiceStack__ServiceStack
ServiceStack.Text/tests/ServiceStack.Text.Tests/DataContractTests.cs
{ "start": 4872, "end": 5034 }
public class ____ { [DataMember(Name = "NewName")] public string Name { get; set; } } [DataContract]
ClassTwo
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/ContainerTests/Batch_Specs.cs
{ "start": 386, "end": 1440 }
public class ____ { [Test] public async Task Should_deliver_the_batch_to_the_consumer() { await using var provider = new ServiceCollection() .AddMassTransitTestHarness(x => { x.AddConsumer<TestBatchConsumer>(); }...
When_batch_limit_is_reached
csharp
ServiceStack__ServiceStack
ServiceStack/tests/CheckWeb/ServiceModels.cs
{ "start": 17737, "end": 19228 }
public partial class ____ { public AllTypes() { StringList = new List<string>{}; StringArray = new string[]{}; StringMap = new Dictionary<string, string>{}; IntStringMap = new Dictionary<int, string>{}; } public virtual int Id { get; s...
AllTypes
csharp
dotnet__BenchmarkDotNet
src/BenchmarkDotNet/Diagnosers/ThreadingDiagnoser.cs
{ "start": 412, "end": 2330 }
public class ____ : IDiagnoser { public static readonly ThreadingDiagnoser Default = new ThreadingDiagnoser(new ThreadingDiagnoserConfig(displayCompletedWorkItemCountWhenZero: true, displayLockContentionWhenZero: true)); public ThreadingDiagnoser(ThreadingDiagnoserConfig config) => Config = config;...
ThreadingDiagnoser
csharp
microsoft__semantic-kernel
dotnet/src/Experimental/Process.IntegrationTestRunner.Dapr/ProcessTestFixture.cs
{ "start": 340, "end": 5218 }
public sealed class ____ : IDisposable, IAsyncLifetime { private System.Diagnostics.Process? _process; private HttpClient? _httpClient; /// <summary> /// Called by xUnit before the test is run. /// </summary> /// <returns></returns> public async Task InitializeAsync() { this._ht...
ProcessTestFixture
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/test/Execution.Tests/CodeFirstTests.cs
{ "start": 18000, "end": 18216 }
public class ____ { public string YourFieldName { get; set; } = null!; [GraphQLDeprecated("This is deprecated")] public string YourFieldname { get; set; } = null!; }
QueryFieldCasing
csharp
ChilliCream__graphql-platform
src/HotChocolate/Data/test/Data.Tests/TypeValidationTests.cs
{ "start": 2262, "end": 2471 }
public class ____ { [UsePaging] [UseFiltering] [UseProjection] public IEnumerable<string> GetBars() => throw new NotImplementedException(); }
InvalidMiddlewarePipeline2
csharp
bitwarden__server
util/SqliteMigrations/Migrations/20240425111436_EnableOrgsCollectionEnhancements.cs
{ "start": 139, "end": 693 }
public partial class ____ : Migration { private const string _enableOrgsCollectionEnhancementsScript = "SqliteMigrations.HelperScripts.2024-04-25_00_EnableOrgsCollectionEnhancements.sql"; protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.Sql(CoreHelpers.GetEmbeddedRes...
EnableOrgsCollectionEnhancements
csharp
duplicati__duplicati
Duplicati/Library/Main/Database/DatabaseSchemaMarker.cs
{ "start": 78, "end": 152 }
class ____ locating the assembly with the database schema. /// </summary>
for
csharp
dotnet__aspnetcore
src/Mvc/Mvc.ApiExplorer/test/DefaultApiDescriptionProviderTest.cs
{ "start": 97191, "end": 97393 }
private class ____ { [FromQuery(Name = "managerid")] public string ManagerId { get; set; } [FromQuery(Name = "name")] public string Name { get; set; } }
Manager
csharp
grandnode__grandnode2
src/Web/Grand.Web.Common/View/IAreaViewFactory.cs
{ "start": 35, "end": 178 }
public interface ____ { string AreaName { get; } IEnumerable<string> GetViewLocations(IEnumerable<string> viewLocations); }
IAreaViewFactory
csharp
dotnet__maui
src/Controls/src/Core/Handlers/Items2/iOS/CarouselViewController2.cs
{ "start": 317, "end": 17471 }
public class ____ : ItemsViewController2<CarouselView> { bool _isUpdating = false; int _section = 0; CarouselViewLoopManager _carouselViewLoopManager; // We need to keep track of the old views to update the visual states // if this is null we are not attached to the window List<View> _oldViews; Items.IL...
CarouselViewController2
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Shell/TaskbarManager.cs
{ "start": 291, "end": 7164 }
public partial class ____ { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ internal TaskbarManager() { } #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ [global::Uno.NotImplemented("__ANDROID...
TaskbarManager
csharp
bitwarden__server
src/Core/AdminConsole/OrganizationFeatures/Policies/PolicyRequirements/OrganizationDataOwnershipPolicyRequirement.cs
{ "start": 2926, "end": 3185 }
public record ____(Guid OrganizationUserId, bool ShouldCreateDefaultCollection) { public readonly bool ShouldCreateDefaultCollection = ShouldCreateDefaultCollection; public readonly Guid OrganizationUserId = OrganizationUserId; }
DefaultCollectionRequest
csharp
dotnet__aspire
src/Aspire.Hosting.Qdrant/QdrantContainerImageTags.cs
{ "start": 172, "end": 477 }
internal static class ____ { /// <remarks>docker.io</remarks> public const string Registry = "docker.io"; /// <remarks>qdrant/qdrant</remarks> public const string Image = "qdrant/qdrant"; /// <remarks>v1.15.5</remarks> public const string Tag = "v1.15.5"; }
QdrantContainerImageTags
csharp
microsoft__garnet
libs/server/Custom/CustomCommandRegistration.cs
{ "start": 5246, "end": 5651 }
internal abstract class ____<T> : RegisterCustomCommandProviderBase<T, RegisterCmdArgs> { protected RegisterCustomCmdProvider(T instance, RegisterCmdArgs args) : base(instance, args) { } } /// <summary> /// Base custom transaction registration provider /// </summary> ///...
RegisterCustomCmdProvider
csharp
dotnet__efcore
test/EFCore.SqlServer.FunctionalTests/Query/Associations/ComplexJson/ComplexJsonPrimitiveCollectionSqlServerTest.cs
{ "start": 211, "end": 3264 }
public class ____(ComplexJsonSqlServerFixture fixture, ITestOutputHelper testOutputHelper) : ComplexJsonPrimitiveCollectionRelationalTestBase<ComplexJsonSqlServerFixture>(fixture, testOutputHelper) { public override async Task Count() { await base.Count(); AssertSql( """ SELECT ...
ComplexJsonPrimitiveCollectionSqlServerTest
csharp
dotnet__aspire
tests/Aspire.StackExchange.Redis.Tests/ConformanceTests.cs
{ "start": 420, "end": 4633 }
public class ____ : ConformanceTests<IConnectionMultiplexer, StackExchangeRedisSettings>, IClassFixture<RedisContainerFixture> { private readonly RedisContainerFixture _containerFixture; protected string ConnectionString => _containerFixture.GetConnectionString(); protected override ServiceLifetime Servic...
ConformanceTests
csharp
grpc__grpc-dotnet
test/FunctionalTests/Server/ServerStreamingMethodTests.cs
{ "start": 9007, "end": 9832 }
public class ____ { public SyncPoint SyncPoint { get; set; } = default!; public ILogger Logger { get; set; } = default!; public async Task SayHellosAsync(HelloRequest request, IServerStreamWriter<HelloReply> responseStream) { for (var i = 0; i < 3; i++) { ...
MethodWrapper
csharp
fluentassertions__fluentassertions
Src/FluentAssertions/Primitives/NullableEnumAssertions.cs
{ "start": 690, "end": 4686 }
public class ____<TEnum, TAssertions> : EnumAssertions<TEnum, TAssertions> where TEnum : struct, Enum where TAssertions : NullableEnumAssertions<TEnum, TAssertions> { private readonly AssertionChain assertionChain; public NullableEnumAssertions(TEnum? subject, AssertionChain assertionChain) : b...
NullableEnumAssertions
csharp
JamesNK__Newtonsoft.Json
Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs
{ "start": 22442, "end": 23403 }
internal class ____ : IXmlNode { private readonly XObject? _xmlObject; public XObjectWrapper(XObject? xmlObject) { _xmlObject = xmlObject; } public object? WrappedNode => _xmlObject; public virtual XmlNodeType NodeType => _xmlObject?.NodeType ?? XmlNode...
XObjectWrapper
csharp
ServiceStack__ServiceStack
ServiceStack.Text/tests/ServiceStack.Text.Tests/BasicStringSerializerTests.cs
{ "start": 338, "end": 1227 }
public class ____ { readonly char[] allCharsUsed = new[] { JsWriter.QuoteChar, JsWriter.ItemSeperator, JsWriter.MapStartChar, JsWriter.MapKeySeperator, JsWriter.MapEndChar, JsWriter.ListEndChar, JsWriter.ListEndChar, }; readonly string fieldWithInvalidChars = string.Format("all {0} ...
BasicStringSerializerTests
csharp
dotnet__efcore
src/EFCore.Relational/Migrations/Operations/AlterSequenceOperation.cs
{ "start": 501, "end": 1247 }
public class ____ : SequenceOperation, IAlterMigrationOperation { /// <summary> /// The schema that contains the sequence, or <see langword="null" /> if the default schema should be used. /// </summary> public virtual string? Schema { get; set; } /// <summary> /// The name of the sequen...
AlterSequenceOperation
csharp
MassTransit__MassTransit
src/MassTransit/Serialization/SystemTextJsonRawMessageBody.cs
{ "start": 191, "end": 1996 }
public class ____<TMessage> : MessageBody where TMessage : class { readonly object? _message; readonly JsonSerializerOptions _options; byte[]? _bytes; string? _string; public SystemTextJsonRawMessageBody(SendContext<TMessage> context, JsonSerializerOptions op...
SystemTextJsonRawMessageBody
csharp
AutoFixture__AutoFixture
Src/AutoFixture/DataAnnotations/StringLengthAttributeRelay.cs
{ "start": 263, "end": 2353 }
public class ____ : ISpecimenBuilder { private IRequestMemberTypeResolver requestMemberTypeResolver = new RequestMemberTypeResolver(); /// <summary> /// Gets or sets the current IRequestMemberTypeResolver. /// </summary> public IRequestMemberTypeResolver RequestMemberTypeRes...
StringLengthAttributeRelay
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Core/test/ApplicationModels/DefaultApplicationModelProviderTest.cs
{ "start": 56470, "end": 56686 }
private class ____ : ViewFeaturesController { public new void Dispose() { throw new NotImplementedException(); } }
DerivedFromControllerAndHidesBaseDisposeMethodController
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.UI.ViewManagement/AccessibilitySettings.cs
{ "start": 260, "end": 1148 }
public partial class ____ { // Skipping already declared property HighContrast // Skipping already declared property HighContrastScheme // Skipping already declared method Windows.UI.ViewManagement.AccessibilitySettings.AccessibilitySettings() // Forced skipping of method Windows.UI.ViewManagement.Accessibilit...
AccessibilitySettings
csharp
ChilliCream__graphql-platform
src/HotChocolate/Language/test/Language.Tests/ValueNodeExtensionsTests.cs
{ "start": 34, "end": 808 }
public static class ____ { [Fact] public static void IsNull_Null_True() { // arrange var value = default(IValueNode); // act var result = value.IsNull(); // assert Assert.True(result); } [Fact] public static void IsNull_NullValueNode_True() ...
ValueNodeExtensionsTests
csharp
jellyfin__jellyfin
MediaBrowser.Controller/Channels/IChannelManager.cs
{ "start": 343, "end": 3730 }
public interface ____ { /// <summary> /// Gets the channel features. /// </summary> /// <param name="id">The identifier.</param> /// <returns>ChannelFeatures.</returns> ChannelFeatures GetChannelFeatures(Guid? id); /// <summary> /// Gets all channel f...
IChannelManager
csharp
dotnet__orleans
test/Extensions/AWSUtils.Tests/Streaming/SQSClientStreamTests.cs
{ "start": 2249, "end": 3511 }
private class ____ : IClientBuilderConfigurator { public void Configure(IConfiguration configuration, IClientBuilder clientBuilder) { clientBuilder .AddSqsStreams(SQSStreamProviderName, (Action<SqsOptions>)(options => { ...
MyClientBuilderConfigurator
csharp
FluentValidation__FluentValidation
src/FluentValidation/Validators/GreaterThanValidator.cs
{ "start": 820, "end": 1831 }
public class ____<T, TProperty> : AbstractComparisonValidator<T, TProperty> where TProperty : IComparable<TProperty>, IComparable { public override string Name => "GreaterThanValidator"; public GreaterThanValidator(TProperty value) : base(value) { } public GreaterThanValidator(Func<T, TProperty> valueToCompareFu...
GreaterThanValidator
csharp
dotnet__aspnetcore
src/Http/Headers/src/HeaderUtilities.cs
{ "start": 438, "end": 27387 }
public static class ____ { private const int _qualityValueMaxCharCount = 10; // Little bit more permissive than RFC7231 5.3.1 private const string QualityName = "q"; internal const string BytesUnit = "bytes"; internal static void SetQuality(IList<NameValueHeaderValue> parameters, double? value) { ...
HeaderUtilities
csharp
dotnet__machinelearning
src/Microsoft.ML.Data/Evaluators/BinaryClassifierEvaluator.cs
{ "start": 3393, "end": 21644 }
public enum ____ { [EnumValueDisplay(BinaryClassifierEvaluator.Accuracy)] Accuracy, [EnumValueDisplay(BinaryClassifierEvaluator.PosPrecName)] PosPrecName, [EnumValueDisplay(BinaryClassifierEvaluator.PosRecallName)] PosRecallName, ...
Metrics
csharp
JamesNK__Newtonsoft.Json
Src/Newtonsoft.Json.Tests/JsonConvertTest.cs
{ "start": 70358, "end": 70443 }
public sealed class ____ : IEnumerable<int> {
EnumerableWithConverter
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/SagaStateMachineTests/FilterFault_Specs.cs
{ "start": 4462, "end": 4710 }
public class ____ : CorrelatedBy<Guid> { public Initialize() { CorrelationId = NewId.NextGuid(); } public Guid CorrelationId { get; set; } } } }
Initialize
csharp
icsharpcode__ILSpy
ICSharpCode.Decompiler.Tests/PdbGenerationTestRunner.cs
{ "start": 524, "end": 4022 }
public class ____ { static readonly string TestCasePath = Tester.TestCasePath + "/PdbGen"; [Test] public void HelloWorld() { TestGeneratePdb(); } [Test] [Ignore("Missing nested local scopes for loops, differences in IL ranges")] public void ForLoopTests() { TestGeneratePdb(); } [Test] ...
PdbGenerationTestRunner
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/NewTupleExpressionToAggregationExpressionTranslator.cs
{ "start": 974, "end": 2661 }
internal static class ____ { public static bool CanTranslate(NewExpression expression) { var type = expression.Type; return type.IsTuple() || type.IsValueTuple(); } public static TranslatedExpression Translate(TranslationContext context, NewExpression express...
NewTupleExpressionToAggregationExpressionTranslator
csharp
xunit__xunit
src/xunit.v1.tests/xunit/SingleTests.cs
{ "start": 2506, "end": 3704 }
public class ____ { [Fact] public void NullCollectionThrows() { Assert.Throws<ArgumentNullException>(() => Assert.Single<object>(null)); } [Fact] public void EmptyCollectionThrows() { object[] collection = new object[0]; Exception ex = Record.Exception(() => Assert.Single(collection...
GenericEnumerable
csharp
moq__moq4
src/Moq.Tests/Regressions/IssueReportsFixture.cs
{ "start": 165855, "end": 166908 }
public class ____ { [Fact] public void SubscribingWorks() { var target = new Mock<Foo> { CallBase = true }; target.As<IBar>(); var bar = (IBar)target.Object; var raised = false; bar.SomeEvent += ...
_325
csharp
Cysharp__UniTask
src/UniTask/Assets/Scenes/SandboxMain.cs
{ "start": 870, "end": 907 }
public enum ____ { A, B, C }
MyEnum
csharp
Cysharp__UniTask
src/UniTask/Assets/Scenes/SandboxMain.cs
{ "start": 2538, "end": 3213 }
public class ____ : MonoBehaviour { public Camera mycamera; public Button okButton; public Button cancelButton; CancellationTokenSource cts; public AsyncReactiveProperty<int> RP1; UniTaskCompletionSource ucs; async UniTask<int> FooAsync() { // use F10, will crash. ...
SandboxMain
csharp
DuendeSoftware__IdentityServer
identity-server/src/IdentityServer/Validation/Models/JwtRequestValidationResult.cs
{ "start": 289, "end": 576 }
public class ____ : ValidationResult { /// <summary> /// The key/value pairs from the JWT payload of a successfully validated /// request, or null if a validation error occurred. /// </summary> public IEnumerable<Claim>? Payload { get; set; } }
JwtRequestValidationResult
csharp
dotnet__extensions
test/Libraries/Microsoft.Extensions.AI.Tests/Functions/AIFunctionFactoryTest.cs
{ "start": 47097, "end": 47145 }
private sealed class ____ : B; public readonly
C
csharp
getsentry__sentry-dotnet
src/Sentry/Internal/Http/CachingTransport.cs
{ "start": 283, "end": 578 }
class ____ a <see cref="CachingTransport.DisposeAsync"/> /// method, it doesn't implement <see cref="IAsyncDisposable"/> as this caused /// a dependency issue with Log4Net in some situations. /// </para> /// <para>See https://github.com/getsentry/sentry-dotnet/issues/3178</para> /// </remarks>
has
csharp
dotnet__aspnetcore
src/Middleware/WebSockets/test/ConformanceTests/Autobahn/Expectation.cs
{ "start": 208, "end": 282 }
public enum ____ { Fail, NonStrict, OkOrFail, Ok }
Expectation
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/test/Types.Tests/Types/Composite/LookupTests.cs
{ "start": 7074, "end": 7122 }
public record ____(int Id, string Title);
Book1
csharp
microsoft__garnet
libs/storage/Tsavorite/cs/src/core/Index/Common/CheckpointSettings.cs
{ "start": 169, "end": 786 }
public enum ____ { /// <summary> /// Take separate snapshot of in-memory portion of log (default) /// </summary> Snapshot, /// <summary> /// Flush current log (move read-only to tail) /// (enables incremental checkpointing, but log grows faster) /// <...
CheckpointType
csharp
duplicati__duplicati
Duplicati/Library/Common/IO/SystemIOLinux.cs
{ "start": 1484, "end": 1611 }
public struct ____ : ISystemIO { /// <summary> /// PInvoke methods /// </summary>
SystemIOLinux
csharp
dotnet__efcore
src/EFCore.Relational/Metadata/RuntimeEntityTypeMappingFragment.cs
{ "start": 469, "end": 3122 }
public class ____ : AnnotatableBase, IEntityTypeMappingFragment { /// <summary> /// Initializes a new instance of the <see cref="RuntimeEntityTypeMappingFragment" /> class. /// </summary> /// <param name="entityType">The entity type for which the fragment is defined.</param> /// <param name="sto...
RuntimeEntityTypeMappingFragment
csharp
open-telemetry__opentelemetry-dotnet
test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/Implementation/ExportClient/OtlpHttpTraceExportClientTests.cs
{ "start": 553, "end": 8557 }
public sealed class ____ : IDisposable { private static readonly SdkLimitOptions DefaultSdkLimitOptions = new(); private readonly ActivityListener activityListener; static OtlpHttpTraceExportClientTests() { Activity.DefaultIdFormat = ActivityIdFormat.W3C; Activity.ForceDefaultIdFormat ...
OtlpHttpTraceExportClientTests
csharp
moq__moq4
src/Moq/ExpressionReconstructor.cs
{ "start": 508, "end": 1418 }
abstract class ____ { static ExpressionReconstructor instance = new ActionObserver(); public static ExpressionReconstructor Instance { get => instance; set => instance = value ?? throw new ArgumentNullException(nameof(value)); } protected ExpressionR...
ExpressionReconstructor
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Media/BezierSegment .cs
{ "start": 46, "end": 2064 }
public sealed class ____ : PathSegment { /// <summary> /// Defines the <see cref="Point1"/> property. /// </summary> public static readonly StyledProperty<Point> Point1Property = AvaloniaProperty.Register<BezierSegment, Point>(nameof(Point1)); /// <sum...
BezierSegment
csharp
dotnet__extensions
test/Generators/Microsoft.Gen.Logging/Unit/ParserTests.TagProvider.cs
{ "start": 7971, "end": 8044 }
class ____ : BaseClass, IFoo { }
MyClass
csharp
cake-build__cake
src/Cake.Frosting.Tests/Fixtures/CakeHostFixture.cs
{ "start": 395, "end": 2103 }
public sealed class ____ { public CakeHost Host { get; set; } public FakeEnvironment Environment { get; set; } public FakeFileSystem FileSystem { get; set; } public FakeConsole Console { get; set; } public ICakeLog Log { get; set; } public IExecutionStrategy Strategy ...
CakeHostFixture
csharp
scriban__scriban
src/Scriban/Syntax/Statements/ScriptStatement.cs
{ "start": 255, "end": 407 }
class ____ all statements. /// </summary> /// <seealso cref="ScriptNode" /> #if SCRIBAN_PUBLIC public #else internal #endif abstract
for
csharp
dotnet__extensions
src/Generators/Microsoft.Gen.Logging/Parsing/AttributeProcessors.cs
{ "start": 212, "end": 6075 }
internal static class ____ { private const string MessageProperty = "Message"; private const string EventNameProperty = "EventName"; private const string EventIdProperty = "EventId"; private const string LevelProperty = "Level"; private const string SkipEnabledCheckProperty = "SkipEnabledCheck"; ...
AttributeProcessors
csharp
protobuf-net__protobuf-net
src/protobuf-net.Core/Serializers/RepeatedSerializer.cs
{ "start": 503, "end": 5517 }
partial class ____ { /// <summary>Create a serializer that indicates that a scenario is not supported</summary> [MethodImpl(MethodImplOptions.NoInlining)] [Obsolete("Since this isn't supported, you probably shouldn't be doing it...", false)] public static RepeatedSerializer<TCollect...
RepeatedSerializer
csharp
dotnet__maui
src/Essentials/src/Clipboard/Clipboard.shared.cs
{ "start": 214, "end": 1296 }
public interface ____ { /// <summary> /// Gets a value indicating whether there is any text on the clipboard. /// </summary> bool HasText { get; } /// <summary> /// Sets the contents of the clipboard to be the specified text. /// </summary> /// <param name="text">The text to put on the clipboard.</par...
IClipboard
csharp
dotnet__efcore
src/EFCore/Metadata/IReadOnlyProperty.cs
{ "start": 572, "end": 18661 }
public interface ____ : IReadOnlyPropertyBase { /// <summary> /// Gets the entity type that this property belongs to. /// </summary> [Obsolete("Use DeclaringType and cast to IReadOnlyEntityType or IReadOnlyComplexType")] IReadOnlyEntityType DeclaringEntityType => (IReadOnlyEntityType)Dec...
IReadOnlyProperty
csharp
dotnet__aspnetcore
src/SignalR/server/Core/src/IHubProtocolResolver.cs
{ "start": 336, "end": 1041 }
public interface ____ { /// <summary> /// Gets a collection of all available hub protocols. /// </summary> IReadOnlyList<IHubProtocol> AllProtocols { get; } /// <summary> /// Gets the hub protocol with the specified name, if it is allowed by the specified list of supported protocols. /// </...
IHubProtocolResolver
csharp
DuendeSoftware__IdentityServer
identity-server/src/IdentityServer/Services/Default/DistributedBackchannelAuthenticationThrottlingService.cs
{ "start": 1751, "end": 2648 }
record ____ if (lastSeenAsString == null) { await _cache.SetStringAsync(key, _clock.UtcNow.ToString("O"), options); return false; } // check interval if (DateTime.TryParse(lastSeenAsString, out var lastSeen)) { lastSeen = lastSeen.ToUn...
new
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Composition.Scenes/SceneObject.cs
{ "start": 304, "end": 540 }
public partial class ____ : global::Windows.UI.Composition.CompositionObject { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ internal SceneObject() { } #endif } }
SceneObject
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Globalization.NumberFormatting/DecimalFormatter.cs
{ "start": 273, "end": 9736 }
public partial class ____ : global::Windows.Globalization.NumberFormatting.INumberFormatterOptions, global::Windows.Globalization.NumberFormatting.INumberFormatter, global::Windows.Globalization.NumberFormatting.INumberFormatter2, global::Windows.Globalization.NumberFormatting.INumberParser, global::Windows.Globalizati...
DecimalFormatter
csharp
dotnet__reactive
Ix.NET/Source/FasterLinq/Program.cs
{ "start": 33545, "end": 37437 }
public static class ____ { private static readonly Task<bool> True = Task.FromResult(true); private static readonly Task<bool> False = Task.FromResult(false); public static async Task<R> Aggregate<T, R>(this IAsyncFastEnumerable<T> source, R seed, Func<R, T, R> aggregate) { ...
AsyncFastEnumerable
csharp
MassTransit__MassTransit
tests/MassTransit.RabbitMqTransport.Tests/Publish_Specs.cs
{ "start": 12486, "end": 12837 }
public class ____ : RabbitMqTestFixture { [Test] public async Task Should_not_throw_an_exception() { var message = new UnboundMessage { Id = Guid.NewGuid() }; await Bus.Publish(message); }
When_a_message_is_published_without_a_queue_binding
csharp
dotnet__orleans
src/api/Orleans.Core/Orleans.Core.cs
{ "start": 18668, "end": 19153 }
public partial class ____ { public static readonly System.TimeSpan DEFAULT_OPENCONNECTION_TIMEOUT; public System.TimeSpan ConnectionRetryDelay { get { throw null; } set { } } public int ConnectionsPerEndpoint { get { throw null; } set { } } public System.TimeSpan OpenConnectionTime...
ConnectionOptions