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
AutoMapper__AutoMapper
src/UnitTests/MappingInheritance/PropertyOnMappingShouldResolveMostSpecificType.cs
{ "start": 1068, "end": 8063 }
public class ____ { public ContainerDto() { Items = new List<ItemDto>(); } public List<ItemDto> Items { get; private set; } } [Fact] public void container_class_is_caching_too_specific_mapper_for_collection() { var config = new MapperConfiguration...
ContainerDto
csharp
dotnet__machinelearning
src/Microsoft.ML.Transforms/Dracula/CountTargetEncodingTransformer.cs
{ "start": 29452, "end": 30608 }
class ____ the back-off indicator. /// </summary> /// <param name="catalog">The transforms catalog.</param> /// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param> /// <param name="initialCounts">A previously...
and
csharp
OrchardCMS__OrchardCore
src/OrchardCore/OrchardCore.Sms.Abstractions/SmsMessage.cs
{ "start": 28, "end": 499 }
public class ____ { /// <summary> /// The phone number to send the message from. /// If not specified, the provider's default phone number will be used. /// </summary> public string From { get; set; } /// <summary> /// The phone number to send the message to. /// </summary> publ...
SmsMessage
csharp
EventStore__EventStore
src/KurrentDB.Plugins.Tests/PluginBaseTests.cs
{ "start": 8322, "end": 8725 }
class ____ : NightCityPlugin { private readonly Action<Exception> _onLicenseException; public CustomCityPlugin(Action<Exception> onLicenseException) : base(new() { RequiredEntitlements = ["starlight"] }) { _onLicenseException = onLicenseException; } protected override void OnLicenseException(Exception ...
CustomCityPlugin
csharp
dotnet__machinelearning
src/Microsoft.ML.FastTree/FastTreeArguments.cs
{ "start": 2135, "end": 4172 }
public sealed class ____ : BoostedTreeOptions, IFastTreeTrainerFactory { /// <summary> /// Whether to use derivatives optimized for unbalanced training data. /// </summary> [Argument(ArgumentType.LastOccurrenceWins, HelpText = "Option for using derivatives optimi...
Options
csharp
dotnet__aspire
src/Aspire.Hosting.Python/PythonAppResourceBuilderExtensions.cs
{ "start": 1290, "end": 73768 }
public static class ____ { private const string DefaultVirtualEnvFolder = ".venv"; private const string DefaultPythonVersion = "3.13"; /// <summary> /// Adds a Python application to the application model. /// </summary> /// <param name="builder">The <see cref="IDistributedApplicationBuilder"/> ...
PythonAppResourceBuilderExtensions
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.Bson.Tests/Serialization/Conventions/IgnoreIfNullConventionsTests.cs
{ "start": 761, "end": 1227 }
public class ____ { [Theory] [InlineData(true)] [InlineData(false)] public void TestApply(bool value) { var subject = new IgnoreIfNullConvention(value); var classMap = new BsonClassMap<TestClass>(); var memberMap = classMap.MapMember(x => x...
IgnoreIfNullConventionsTests
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/test/Types.Tests/Types/Relay/NodeFieldSupportTests.cs
{ "start": 116, "end": 9208 }
public class ____ { [Fact] public async Task Node_Resolve_Separated_Resolver() { // arrange var executor = await new ServiceCollection() .AddGraphQLServer() .AddGlobalObjectIdentification() .AddQueryType<Foo>() .AddO...
NodeFieldSupportTests
csharp
louthy__language-ext
LanguageExt.Core/Immutable Collections/TrieSet/TrieSet.cs
{ "start": 17691, "end": 28351 }
internal class ____ : Node { public readonly uint EntryMap; public readonly uint NodeMap; public readonly K[] Items; public readonly Node[] Nodes; public Tag Type => Tag.Entries; public Entries(uint entryMap, uint nodeMap, K[] items, Node[] nodes) { ...
Entries
csharp
atata-framework__atata
src/Atata/WebDriver/Screenshots/ScreenshotKind.cs
{ "start": 86, "end": 403 }
public enum ____ { /// <summary> /// The default, which is defined in configuration. /// </summary> Default, /// <summary> /// A screenshot of the viewport. /// </summary> Viewport, /// <summary> /// A screenshot of the full page. /// </summary> FullPage }
ScreenshotKind
csharp
microsoft__semantic-kernel
dotnet/src/Agents/OpenAI/OpenAIAssistantAgentThread.cs
{ "start": 487, "end": 3072 }
public sealed class ____ : AgentThread { private readonly bool _useThreadConstructorExtension = false; private readonly AssistantClient _client; private readonly ThreadCreationOptions? _options; private readonly IEnumerable<ChatMessageContent>? _messages; private readonly IReadOnlyList<string>? _c...
OpenAIAssistantAgentThread
csharp
CommunityToolkit__WindowsCommunityToolkit
Microsoft.Toolkit.Uwp.UI.Controls.DataGrid/DataGrid/Automation/DataGridColumnHeaderAutomationPeer.cs
{ "start": 612, "end": 7012 }
public class ____ : FrameworkElementAutomationPeer, IInvokeProvider, IScrollItemProvider, ITransformProvider { /// <summary> /// Initializes a new instance of the <see cref="DataGridColumnHeaderAutomationPeer"/> class. /// </summary> /// <param name="owner">DataGridColumnHead...
DataGridColumnHeaderAutomationPeer
csharp
dotnet__aspire
tests/Aspire.Hosting.Tests/PublishAsDockerfileTests.cs
{ "start": 17362, "end": 17853 }
private sealed class ____ : IProjectMetadata { public string ProjectPath => "/foo/another-path"; public LaunchSettings? LaunchSettings => new() { Profiles = new() { ["https"] = new LaunchProfile { ApplicationUrl = "h...
TestProjectWithHttpAndHttpsProfile
csharp
kgrzybek__modular-monolith-with-ddd
src/Modules/Meetings/Application/MeetingGroups/GetMeetingGroupDetails/GetMeetingGroupDetailsQuery.cs
{ "start": 176, "end": 440 }
public class ____ : QueryBase<MeetingGroupDetailsDto> { public GetMeetingGroupDetailsQuery(Guid meetingGroupId) { MeetingGroupId = meetingGroupId; } public Guid MeetingGroupId { get; } } }
GetMeetingGroupDetailsQuery
csharp
dotnet__BenchmarkDotNet
tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/General/BenchmarkClassAnalyzerTests.cs
{ "start": 6897, "end": 7986 }
public abstract class ____<{{string.Join(", ", TypeParameters.Take(typeParametersListLength))}}> { {{benchmarkAttributeUsage}} public void BenchmarkMethod() { } } """; TestCode =...
BenchmarkClassBase
csharp
dotnet__aspnetcore
src/Mvc/Mvc.RazorPages/test/ApplicationModels/DefaultPageApplicationModelProviderTest.cs
{ "start": 37402, "end": 37727 }
private class ____ : Page { public ModelWithoutHandler Model { get; } public override Task ExecuteAsync() => throw new NotImplementedException(); public void OnGet() { } public void OnPostAsync() { } public void OnPostDeleteCustomerAsync() { }
PageWithModelWithoutHandlers
csharp
duplicati__duplicati
Duplicati/Library/Main/Operation/Common/IndexVolumeCreator.cs
{ "start": 1414, "end": 1518 }
class ____ simply rely on the database to create the index files /// <summary> /// A collection
and
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Bson/Serialization/Conventions/AttributeConventionPack.cs
{ "start": 865, "end": 1959 }
public class ____ : IConventionPack { // private static fields private static readonly AttributeConventionPack __attributeConventionPack = new AttributeConventionPack(); // private fields private readonly AttributeConvention _attributeConvention; // constructors ///...
AttributeConventionPack
csharp
RicoSuter__NJsonSchema
src/NJsonSchema.Tests/Generation/JsonPropertyAttributeTests.cs
{ "start": 151, "end": 2538 }
public class ____ { [Fact] public async Task When_name_of_JsonPropertyAttribute_is_set_then_it_is_used_as_json_property_name() { // Arrange var schema = NewtonsoftJsonSchemaGenerator.FromType<MyJsonPropertyTestClass>(); // Act var property = s...
JsonPropertyAttributeTests
csharp
abpframework__abp
modules/openiddict/src/Volo.Abp.OpenIddict.Domain.Shared/Volo/Abp/OpenIddict/Tokens/OpenIddictTokenConsts.cs
{ "start": 40, "end": 321 }
public class ____ { public static int ReferenceIdMaxLength { get; set; } = 100; public static int StatusMaxLength { get; set; } = 50; public static int SubjectMaxLength { get; set; } = 400; public static int TypeMaxLength { get; set; } = 150; }
OpenIddictTokenConsts
csharp
graphql-dotnet__graphql-dotnet
samples/GraphQL.Harness.Tests/SuccessResultAssertion.cs
{ "start": 110, "end": 1641 }
public class ____ : GraphQLAssertion { private static readonly string extensionsKey = nameof(ExecutionResult.Extensions).ToLower(); private readonly string _result; private readonly bool _ignoreExtensions; private readonly IGraphQLTextSerializer _writer = new GraphQLSerializer(); public SuccessResu...
SuccessResultAssertion
csharp
dotnet__orleans
test/Extensions/Consul.Tests/LivenessTests.cs
{ "start": 825, "end": 1243 }
public class ____ : ISiloConfigurator { public void Configure(ISiloBuilder hostBuilder) { hostBuilder.UseConsulSiloClustering(options => { var address = new Uri(ConsulTestUtils.ConsulConnectionString); options.Config...
SiloBuilderConfigurator
csharp
AutoFixture__AutoFixture
Src/AutoFakeItEasyUnitTest/TestTypes/IInterfaceWithOutMethod.cs
{ "start": 63, "end": 150 }
public interface ____ { void Method(out int i); } }
IInterfaceWithOutMethod
csharp
cake-build__cake
src/Cake.Common.Tests/Unit/Build/Jenkins/Data/JenkinsRepositoryInfoTests.cs
{ "start": 378, "end": 800 }
public sealed class ____ { [Fact] public void Should_Return_Correct_Value() { // Given var info = new JenkinsInfoFixture().CreateRepositoryInfo(); // When var result = info.BranchName; // Then ...
TheBranchNameProperty
csharp
dotnet__orleans
src/Orleans.TestingHost/UnixSocketTransport/UnixSocketConnectionOptions.cs
{ "start": 195, "end": 912 }
public partial class ____ { /// <summary> /// Get or sets to function used to get a filename given an endpoint /// </summary> public Func<EndPoint, string> ConvertEndpointToPath { get; set; } = DefaultConvertEndpointToPath; /// <summary> /// Gets or sets the memory pool factory. /// </summa...
UnixSocketConnectionOptions
csharp
dotnet__maui
src/Controls/tests/Xaml.UnitTests/Issues/Maui25309.xaml.cs
{ "start": 394, "end": 1044 }
class ____ { [SetUp] public void Setup() { Application.SetCurrentApplication(new MockApplication()); DispatcherProvider.SetCurrent(new DispatcherProviderStub()); } [TearDown] public void TearDown() => AppInfo.SetCurrent(null); [Test] public void GenericConvertersDoesNotThrowNRE([Values] XamlInf...
Test
csharp
jellyfin__jellyfin
src/Jellyfin.Extensions/GuidExtensions.cs
{ "start": 145, "end": 796 }
public static class ____ { /// <summary> /// Determine whether the guid is default. /// </summary> /// <param name="guid">The guid.</param> /// <returns>Whether the guid is the default value.</returns> public static bool IsEmpty(this Guid guid) => guid.Equals(default); /// <summary>...
GuidExtensions
csharp
dotnet__efcore
test/EFCore.Tests/Metadata/Internal/PropertyTest.cs
{ "start": 13843, "end": 13919 }
private abstract class ____ : StringToBoolConverter;
AbstractValueConverter
csharp
PrismLibrary__Prism
src/Prism.Core/Navigation/Regions/ViewRegistrationException.cs
{ "start": 298, "end": 1768 }
public partial class ____ : Exception { // TODO: Find updated links as these are dead... // // For guidelines regarding the creation of new exception types, see // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.as...
ViewRegistrationException
csharp
JoshClose__CsvHelper
src/CsvHelper/Expressions/ObjectRecordCreator.cs
{ "start": 436, "end": 781 }
public class ____ : RecordCreator { /// <summary> /// Initializes a new instance using the given reader. /// </summary> /// <param name="reader"></param> public ObjectRecordCreator(CsvReader reader) : base(reader) { } /// <summary> /// Creates a <see cref="Delegate"/> of type <see cref="Func{T}"/> /// that wil...
ObjectRecordCreator
csharp
fluentassertions__fluentassertions
Tests/FluentAssertions.Equivalency.Specs/CollectionSpecs.cs
{ "start": 84743, "end": 84847 }
private class ____ { public virtual LogbookCode Logbook { get; set; } }
LogbookRelation
csharp
CommunityToolkit__WindowsCommunityToolkit
Microsoft.Toolkit.Uwp.Notifications/Toasts/Compat/Desktop/Native/SIZE.cs
{ "start": 348, "end": 543 }
internal struct ____ { internal int X; internal int Y; internal SIZE(int x, int y) { this.X = x; this.Y = y; } } } #endif
SIZE
csharp
dotnet__aspnetcore
src/Identity/EntityFrameworkCore/test/EF.Test/DbUtil.cs
{ "start": 441, "end": 3612 }
public static class ____ { public static IServiceCollection ConfigureDbServices<TContext>( DbConnection connection, IServiceCollection services = null) where TContext : DbContext { if (services == null) { services = new ServiceCollection(); } services...
DbUtil
csharp
dotnet__maui
src/Controls/tests/Core.UnitTests/FlyoutPageUnitTests.cs
{ "start": 23213, "end": 24059 }
public class ____ : ContentPage { public NavigatedFromEventArgs NavigatedFromArgs { get; private set; } public NavigatingFromEventArgs NavigatingFromArgs { get; private set; } public NavigatedToEventArgs NavigatedToArgs { get; private set; } public void ClearNavigationArgs() { NavigatedFromArgs = ...
NavigationObserverPage
csharp
JamesNK__Newtonsoft.Json
Src/Newtonsoft.Json.Tests/Issues/Issue1834.cs
{ "start": 1760, "end": 2369 }
public class ____ : TestFixtureBase { [Test] public void Test() { string json = "{'foo':'test!'}"; ItemWithJsonConstructor c = JsonConvert.DeserializeObject<ItemWithJsonConstructor>(json); Assert.IsNull(c.ExtensionData); } [Test] ...
Issue1834
csharp
microsoft__garnet
libs/server/Resp/Objects/SharedObjectCommands.cs
{ "start": 151, "end": 3911 }
partial class ____ : ServerSessionBase { /// <summary> /// Iterates over the associated items of a key, /// using a pattern to match and count to limit how many items to return. /// </summary> /// <typeparam name="TGarnetApi"></typeparam> /// <param name="objectType"...
RespServerSession
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 94763, "end": 94980 }
public class ____ { public int Id { get; set; } public RelatedEntity437 ParentEntity { get; set; } public IEnumerable<RelatedEntity439> ChildEntities { get; set; } }
RelatedEntity438
csharp
dotnet__extensions
test/Libraries/Microsoft.Extensions.AI.Abstractions.Tests/Contents/CitationAnnotationTests.cs
{ "start": 261, "end": 3503 }
public class ____ { [Fact] public void Constructor_PropsDefault() { CitationAnnotation a = new(); Assert.Null(a.AdditionalProperties); Assert.Null(a.AnnotatedRegions); Assert.Null(a.RawRepresentation); Assert.Null(a.Snippet); Assert.Null(a.Title); Asse...
CitationAnnotationTests
csharp
Testably__Testably.Abstractions
Source/Testably.Abstractions.Testing/RandomSystem/RandomProviderMock.cs
{ "start": 172, "end": 1221 }
internal sealed class ____ : IRandomProvider { [ThreadStatic] private static RandomMock? _shared; private static Generator<Guid> DefaultGuidGenerator => Generator.FromCallback(Guid.NewGuid); private readonly Generator<Guid> _guidGenerator; private readonly Func<int, IRandom> _randomGenerator; public RandomPro...
RandomProviderMock
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Core/src/ApiExplorerSettingsAttribute.cs
{ "start": 338, "end": 486 }
class ____ action method. /// </summary> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
or
csharp
ServiceStack__ServiceStack
ServiceStack.Text/tests/ServiceStack.Text.Tests/SpecialTypesTests.cs
{ "start": 1298, "end": 3351 }
class ____ { public string Name { get; set; } public byte[] Data { get; set; } } [Test] public void Can_Serialize_Type_with_ByteArray_as_Int_Array() { var test = "{\"Name\":\"Test\",\"Data\":[1,2,3,4,5]}".FromJson<PocoWithBytes>(); ...
PocoWithBytes
csharp
smartstore__Smartstore
src/Smartstore/Data/Caching/Extensions/CachingQueryExtensions.cs
{ "start": 135, "end": 6527 }
public static class ____ { internal static readonly MethodInfo AsCachingMethodInfo = typeof(CachingQueryExtensions) .GetTypeInfo() .GetMethods() .Where(m => m.Name == nameof(AsCaching)) .Where(m => m.GetParameters().Any(p => p.ParameterType == type...
CachingQueryExtensions
csharp
dotnet__aspnetcore
src/SignalR/server/StackExchangeRedis/src/Internal/RedisProtocol.cs
{ "start": 440, "end": 10109 }
internal sealed class ____ { private readonly DefaultHubMessageSerializer _messageSerializer; public RedisProtocol(DefaultHubMessageSerializer messageSerializer) { _messageSerializer = messageSerializer; } // The Redis Protocol: // * The message type is known in advance because message...
RedisProtocol
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Media/MediaContext.cs
{ "start": 899, "end": 8412 }
private record ____(Compositor Compositor, CompositingRenderer Renderer, ILayoutManager LayoutManager); private List<Action>? _invokeOnRenderCallbacks; private readonly Stack<List<Action>> _invokeOnRenderCallbackListPool = new(); private readonly DispatcherTimer _animationsTimer = new(DispatcherPriority....
TopLevelInfo
csharp
jellyfin__jellyfin
MediaBrowser.Controller/MediaEncoding/JobLogger.cs
{ "start": 250, "end": 5671 }
public class ____ { private readonly ILogger _logger; public JobLogger(ILogger logger) { _logger = logger; } public async Task StartStreamingLog(EncodingJobInfo state, StreamReader reader, Stream target) { try { us...
JobLogger
csharp
xunit__xunit
src/xunit.v3.runner.common/Reporters/Builtin/AppVeyorReporterMessageHandler.cs
{ "start": 378, "end": 7005 }
public class ____ : DefaultRunnerReporterMessageHandler { const int MaxLength = 4096; int assembliesInFlight; readonly ConcurrentDictionary<string, (string assemblyFileName, Dictionary<string, int> testMethods)> assemblyInfoByUniqueID = new(); readonly string baseUri; AppVeyorClient? client; readonly object clie...
AppVeyorReporterMessageHandler
csharp
npgsql__npgsql
src/Npgsql.GeoJSON/CrsMap.cs
{ "start": 133, "end": 1100 }
public partial class ____ { readonly CrsMapEntry[]? _overridden; internal CrsMap(CrsMapEntry[]? overridden) => _overridden = overridden; internal string? GetAuthority(int srid) => GetAuthority(_overridden, srid) ?? GetAuthority(WellKnown, srid); static string? GetAuthority(CrsMapEntry...
CrsMap
csharp
AvaloniaUI__Avalonia
tests/Avalonia.Benchmarks/TestBindingObservable.cs
{ "start": 90, "end": 1082 }
internal class ____<T> : IObservable<BindingValue<T?>>, IDisposable { private T? _value; private IObserver<BindingValue<T?>>? _observer; public TestBindingObservable(T? initialValue = default) => _value = initialValue; public IDisposable Subscribe(IObserver<BindingValue<T?>> observ...
TestBindingObservable
csharp
microsoft__semantic-kernel
dotnet/src/IntegrationTests/Plugins/Web/WebFileDownloadPluginTests.cs
{ "start": 318, "end": 1418 }
public sealed class ____ : BaseIntegrationTest { /// <summary> /// Verify downloading to a temporary directory on the local machine. /// </summary> [Fact] public async Task VerifyDownloadToFileAsync() { var uri = new Uri("https://raw.githubusercontent.com/microsoft/semantic-kernel/refs/h...
WebFileDownloadPluginTests
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 690319, "end": 690706 }
public partial interface ____ : IOnClientVersionPublishUpdated_OnClientVersionPublishingUpdate_Deployment_Errors_Changes_Changes_3, IInterfaceImplementationRemoved { } [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "15.1.8.0")]
IOnClientVersionPublishUpdated_OnClientVersionPublishingUpdate_Deployment_Errors_Changes_Changes_InterfaceImplementationRemoved
csharp
abpframework__abp
framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/AbpAuthorizationExceptionTestPage_Tests.cs
{ "start": 355, "end": 2226 }
public class ____ : AspNetCoreMvcTestBase { private IExceptionSubscriber _fakeExceptionSubscriber; private FakeUserClaims _fakeRequiredService; public AbpAuthorizationExceptionTestPage_Tests() { _fakeRequiredService = GetRequiredService<FakeUserClaims>(); } protected override void Con...
AbpAuthorizationExceptionTestPage_Tests
csharp
unoplatform__uno
src/Uno.UI.Runtime.Skia.X11/DBus/Desktop.DBus.cs
{ "start": 72790, "end": 73994 }
interface ____<string> changed = new(), invalidated = new(); return new PropertyChanges<EmailProperties>(ReadProperties(ref reader, changed), ReadInvalidated(ref reader), changed.ToArray()); } static string[] ReadInvalidated(ref Reader reader) { List<string>? invalidated = null; ArrayEnd arrayE...
List
csharp
dotnetcore__CAP
src/DotNetCore.CAP.Pulsar/CAP.PulsarOptions.cs
{ "start": 737, "end": 1414 }
public class ____ { private static readonly PulsarClientConfiguration Default = PulsarClientConfiguration.Default; public bool UseTls { get; set; } = Default.UseTls; public bool TlsHostnameVerificationEnable { get; set; } = Default.TlsHostnameVerificationEnable; public b...
TlsOptions
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/ContainerTests/Common_Tests/Common_Discovery.cs
{ "start": 2230, "end": 2915 }
public class ____ : SagaDefinition<DiscoveryPingSaga> { protected override void ConfigureSaga(IReceiveEndpointConfigurator endpointConfigurator, ISagaConfigurator<DiscoveryPingSaga> sagaConfigurator, IRegistrationContext context) { var partitio...
PingSagaDefinition
csharp
nuke-build__nuke
source/Nuke.Common/Tools/Docker/Docker.Generated.cs
{ "start": 622732, "end": 623438 }
public partial class ____ : DockerOptionsBase { /// <summary>Seconds to wait for stop before killing the container.</summary> [Argument(Format = "--time {value}")] public int? Time => Get<int?>(() => Time); /// <summary>CONTAINER</summary> [Argument(Format = "{value}", Position = -1, Separator = " ")] p...
DockerContainerRestartSettings
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.Extensions.Tests/AutoQueryCrudTests.Validate.cs
{ "start": 398, "end": 976 }
public class ____() : TypeValidator("HasForeignKeyReferences", "Has RockstarAlbum References") { public override async Task<bool> IsValidAsync(object dto, IRequest request) { //Example of using compiled accessor delegates to access `Id` property //var id = TypeProperties.Get(dto.GetType()).GetPu...
NoRockstarAlbumReferences
csharp
OrchardCMS__OrchardCore
src/OrchardCore.Modules/OrchardCore.Queries/Drivers/QueryDisplayDriver.cs
{ "start": 278, "end": 3362 }
public sealed class ____ : DisplayDriver<Query> { private readonly IQueryManager _queryManager; internal readonly IStringLocalizer S; public QueryDisplayDriver( IQueryManager queryManager, IStringLocalizer<QueryDisplayDriver> stringLocalizer) { _queryManager = queryManager; ...
QueryDisplayDriver
csharp
MapsterMapper__Mapster
src/ExpressionDebugger.Tests/DebugInfoInjectorTest.cs
{ "start": 23873, "end": 24052 }
public partial record ____(string prop2) { public string Prop1 { get; set; } public string Prop3 { get; init; } } }".Trim(), str); }
MockClass
csharp
NLog__NLog
tests/NLog.UnitTests/Config/ServiceRepositoryTests.cs
{ "start": 9030, "end": 9606 }
private class ____ : NLog.LayoutRenderers.LayoutRenderer { private object _wantedDependency; protected override void InitializeLayoutRenderer() { _wantedDependency = ResolveService<IMisingDependencyClass>(); base.InitializeLayoutRenderer(); ...
LayoutRendererUsingDependency
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Core/src/ModelBinding/Binders/BinderTypeModelBinderProvider.cs
{ "start": 388, "end": 780 }
public class ____ : IModelBinderProvider { /// <inheritdoc /> public IModelBinder? GetBinder(ModelBinderProviderContext context) { ArgumentNullException.ThrowIfNull(context); if (context.BindingInfo.BinderType is Type binderType) { return new BinderTypeModelBinder(binder...
BinderTypeModelBinderProvider
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL.Tests/DI/RegistrationTests.cs
{ "start": 69, "end": 2097 }
public class ____ : QueryTestBase<RegistrationTests.MySchema> { public override void RegisterServices(IServiceRegister register) { register.TryRegister(typeof(IClassSingle), typeof(ClassSingle1), ServiceLifetime.Transient, RegistrationCompareMode.ServiceType); register.TryRegister(typeof(IClassS...
RegistrationTests
csharp
dotnet__efcore
src/EFCore.Design/Design/OperationReportHandler.cs
{ "start": 270, "end": 2636 }
public class ____ : MarshalByRefObject, IOperationReportHandler { private readonly Action<string>? _errorHandler; private readonly Action<string>? _warningHandler; private readonly Action<string>? _informationHandler; private readonly Action<string>? _verboseHandler; /// <summary> /// Gets ...
OperationReportHandler
csharp
ServiceStack__ServiceStack
ServiceStack.Blazor/tests/UI.Gallery/Gallery.Wasm/Gallery.Wasm/Configure.AppHost.cs
{ "start": 215, "end": 2964 }
public class ____ : AppHostBase, IHostingStartup { public AppHost() : base("Blazor Gallery", typeof(MyServices).Assembly) { } public override void Configure(Container container) { SetConfig(new HostConfig { }); Plugins.Add(new CorsFeature(allowedHeaders: "Content-Type,Authorization...
AppHost
csharp
grandnode__grandnode2
src/Web/Grand.Web.Admin/Models/Knowledgebase/KnowledgebaseCategoryModel.cs
{ "start": 2371, "end": 3376 }
public class ____ : ILocalizedModelLocal, ISlugModelLocal { [GrandResourceDisplayName("Admin.Content.Knowledgebase.KnowledgebaseCategory.Fields.Name")] public string Name { get; set; } [GrandResourceDisplayName("Admin.Content.Knowledgebase.KnowledgebaseCategory.Fields.Description")] public string Descr...
KnowledgebaseCategoryLocalizedModel
csharp
khellang__Scrutor
test/Scrutor.Tests/ScanningTests.cs
{ "start": 27775, "end": 27879 }
public class ____ : IDefault3Level2, IDefault1, IDefault2 { } [CompilerGenerated]
DefaultAttributes
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Core/test/ModelBinding/Metadata/ModelAttributesTest.cs
{ "start": 14767, "end": 15087 }
private class ____ { [IrrelevantAttribute] // We verify this is ignored public void Method( object noAttributes, [Required, Range(1, 100)] int validationAttributes, [BindRequired] BaseModel mergedAttributes) { } }
MethodWithParamAttributesType
csharp
ServiceStack__ServiceStack
ServiceStack/src/ServiceStack/HtmlModulesFeature.cs
{ "start": 8199, "end": 19909 }
struct ____(int index, string token, IHtmlModuleFragment fragment) { internal int index = index; internal string token = token; internal IHtmlModuleFragment fragment = fragment; }; IHtmlModuleFragment[]? indexFragments; IHtmlModuleFragment[] GetIndexFragments() { if ...
FragmentTuple
csharp
dotnetcore__Util
src/Util.Ui.NgZorro/Components/Tables/TableHeadTagHelper.cs
{ "start": 349, "end": 1089 }
public class ____ : AngularTagHelperBase { /// <summary> /// 配置 /// </summary> private Config _config; /// <summary> /// 扩展属性,是否启用自动创建嵌套结构,默认为 true /// </summary> public bool EnableAutoCreate { get; set; } /// <inheritdoc /> protected override void ProcessBefore( TagHelperContex...
TableHeadTagHelper
csharp
microsoft__semantic-kernel
dotnet/src/Agents/OpenAI/OpenAIThreadCreationOptions.cs
{ "start": 419, "end": 1902 }
public sealed class ____ { /// <summary> /// Gets the optional file IDs made available to the code_interpreter tool, if enabled. /// </summary> [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public IReadOnlyList<string>? CodeInterpreterFileIds { get; init; } /// <summary> ///...
OpenAIThreadCreationOptions
csharp
dotnetcore__WTM
demo/WalkingTec.Mvvm.Demo/ViewModels/StudentVMs/StudentApiBatchVM.cs
{ "start": 635, "end": 1055 }
public class ____ : BaseVM { [Display(Name = "账号")] public String ID { get; set; } [Display(Name = "邮箱")] public String Email { get; set; } [Display(Name = "住址")] public String Address { get; set; } [Display(Name = "日期")] public DateRange EnRollDate { ...
StudentApi_BatchEdit
csharp
unoplatform__uno
src/Uno.UWP/Devices/Enumeration/Internal/Providers/Midi/MidiDeviceConnectionWatcher.wasm.cs
{ "start": 1643, "end": 2036 }
partial class ____ { [JSImport($"globalThis.Uno.Devices.Enumeration.Internal.Providers.Midi.MidiDeviceConnectionWatcher.startStateChanged")] internal static partial void StartStateChanged(); [JSImport($"globalThis.Uno.Devices.Enumeration.Internal.Providers.Midi.MidiDeviceConnectionWatcher.stopStateChanged"...
NativeMethods
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Layout/LayoutHelper.cs
{ "start": 266, "end": 13089 }
public static class ____ { /// <summary> /// Epsilon value used for certain layout calculations. /// Based on the value in WPF LayoutDoubleUtil. /// </summary> public static double LayoutEpsilon { get; } = 0.00000153; /// <summary> /// Calculates a control's ...
LayoutHelper
csharp
npgsql__npgsql
src/Npgsql/PostgresTypes/PostgresType.cs
{ "start": 416, "end": 545 }
class ____ its subclasses represent, see /// https://www.postgresql.org/docs/current/static/catalog-pg-type.html. /// </remarks>
and
csharp
microsoft__PowerToys
src/dsc/v3/PowerToys.DSC.UnitTests/SettingsResourceTests/SettingsResourceAppModuleTest.cs
{ "start": 403, "end": 920 }
public sealed class ____ : SettingsResourceModuleTest<GeneralSettings> { public SettingsResourceAppModuleTest() : base(SettingsResource.AppModule) { } protected override Action<GeneralSettings> GetSettingsModifier() { return s => { s.Startup = !s.Startup; ...
SettingsResourceAppModuleTest
csharp
ServiceStack__ServiceStack
ServiceStack.OrmLite/tests/ServiceStack.OrmLite.Tests/LoadReferencesTests.cs
{ "start": 3137, "end": 3374 }
public class ____ { [AutoIncrement] public int Id { get; set; } public string Name { get; set; } [Reference] public MismatchAliasAddress PrimaryAddress { get; set; } } [Alias("BarCustomerAddress")]
MismatchAliasCustomer
csharp
dotnet__tye
test/E2ETest/testassets/projects/Console.Normalization.svc.Name/Program.cs
{ "start": 63, "end": 198 }
class ____ { static void Main(string[] args) { Console.WriteLine("Hello World!"); } } }
Program
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Core/src/Formatters/SystemTextJsonOutputFormatter.cs
{ "start": 509, "end": 6000 }
public class ____ : TextOutputFormatter { /// <summary> /// Initializes a new <see cref="SystemTextJsonOutputFormatter"/> instance. /// </summary> /// <param name="jsonSerializerOptions">The <see cref="JsonSerializerOptions"/>.</param> public SystemTextJsonOutputFormatter(JsonSerializerOptions jsonS...
SystemTextJsonOutputFormatter
csharp
NLog__NLog
tests/NLog.UnitTests/Layouts/CompoundLayoutTests.cs
{ "start": 1789, "end": 8589 }
public class ____ : NLogTestBase { [Fact] public void CodeCompoundLayoutIsRenderedCorrectly() { var compoundLayout = new CompoundLayout { Layouts = { new SimpleLayout("Long date - ${longdate}"), n...
CompoundLayoutTests
csharp
dotnet__maui
src/Essentials/src/Vibration/Vibration.netstandard.tvos.watchos.macos.cs
{ "start": 90, "end": 521 }
partial class ____ : IVibration { public bool IsSupported => throw ExceptionUtils.NotSupportedOrImplementedException; void PlatformVibrate() => throw ExceptionUtils.NotSupportedOrImplementedException; void PlatformVibrate(TimeSpan duration) => throw ExceptionUtils.NotSupportedOrImplementedException; ...
VibrationImplementation
csharp
dotnet__maui
src/Compatibility/Core/src/Windows/FileImageSourceHandler.cs
{ "start": 346, "end": 2490 }
public sealed class ____ : IImageSourceHandler, IIconElementHandler { public Task<Microsoft.UI.Xaml.Media.ImageSource> LoadImageAsync(ImageSource imagesource, CancellationToken cancellationToken = new CancellationToken()) { Microsoft.UI.Xaml.Media.ImageSource image = null; if (imagesource is FileImageSource ...
FileImageSourceHandler
csharp
duplicati__duplicati
Duplicati/Library/Main/Backend/BackendManager.Handler.cs
{ "start": 268, "end": 332 }
partial class ____ { /// <summary> /// Wrapper
BackendManager
csharp
HangfireIO__Hangfire
src/Hangfire.NetCore/AspNetCore/AspNetCoreLogProvider.cs
{ "start": 851, "end": 1344 }
public class ____ : ILogProvider { private readonly ILoggerFactory _loggerFactory; public AspNetCoreLogProvider([NotNull] ILoggerFactory loggerFactory) { if (loggerFactory == null) throw new ArgumentNullException(nameof(loggerFactory)); _loggerFactory = loggerFactory...
AspNetCoreLogProvider
csharp
dotnet__aspire
src/Aspire.Hosting/IDistributedApplicationBuilder.cs
{ "start": 733, "end": 1203 }
interface ____ defining /// the resources which are orchestrated by the <see cref="DistributedApplication"/> when /// the app host is launched. /// </para> /// <para> /// To create an instance of the <see cref="IDistributedApplicationBuilder"/> interface /// developers should use the <see cref="DistributedApplication....
for
csharp
MassTransit__MassTransit
src/Transports/MassTransit.ActiveMqTransport/ActiveMqTransport/ActiveMqHost.cs
{ "start": 114, "end": 3087 }
public class ____ : BaseHost, IActiveMqHost { readonly IActiveMqHostConfiguration _hostConfiguration; public ActiveMqHost(IActiveMqHostConfiguration hostConfiguration, IActiveMqBusTopology busTopology) : base(hostConfiguration, busTopology) { _hostCon...
ActiveMqHost
csharp
dotnet__reactive
Rx.NET/Source/src/System.Reactive/Concurrency/ImmediateScheduler.cs
{ "start": 547, "end": 3011 }
public sealed class ____ : LocalScheduler { private static readonly Lazy<ImmediateScheduler> StaticInstance = new(static () => new ImmediateScheduler()); private ImmediateScheduler() { } /// <summary> /// Gets the singleton instance of the immediate scheduler. ...
ImmediateScheduler
csharp
dotnet__aspire
src/Shared/DashboardConfigNames.cs
{ "start": 165, "end": 5303 }
internal static class ____ { public static readonly ConfigName DashboardFrontendUrlName = new(KnownConfigNames.AspNetCoreUrls); public static readonly ConfigName DashboardOtlpGrpcUrlName = new(KnownConfigNames.DashboardOtlpGrpcEndpointUrl); public static readonly ConfigName DashboardOtlpHttpUrlName = new(K...
DashboardConfigNames
csharp
CommunityToolkit__Maui
src/CommunityToolkit.Maui.Camera/CameraManager.macios.cs
{ "start": 12608, "end": 13090 }
sealed class ____ : AVCapturePhotoCaptureDelegate { readonly TaskCompletionSource<CapturePhotoResult> taskCompletionSource = new(); public Task<CapturePhotoResult> Task => taskCompletionSource.Task; public override void DidFinishProcessingPhoto(AVCapturePhotoOutput output, AVCapturePhoto photo, NSError? err...
AVCapturePhotoCaptureDelegateWrapper
csharp
AvaloniaUI__Avalonia
src/Avalonia.Controls/Automation/ValuePatternIdentifiers.cs
{ "start": 188, "end": 689 }
public static class ____ { /// <summary> /// Identifies <see cref="IValueProvider.IsReadOnly"/> automation property. /// </summary> public static AutomationProperty IsReadOnlyProperty { get; } = new AutomationProperty(); /// <summary> /// Identifies <see cref="IValue...
ValuePatternIdentifiers
csharp
dotnet__extensions
test/Libraries/Microsoft.AspNetCore.Diagnostics.Middleware.Tests/Logging/HttpLoggingServiceExtensionsTests.cs
{ "start": 518, "end": 3928 }
public class ____ { [Fact] public void ShouldThrow_WhenArgsNull() { var services = Mock.Of<IServiceCollection>(); Assert.Throws<ArgumentNullException>(static () => HttpLoggingServiceCollectionExtensions.AddHttpLogEnricher<TestHttpLogEnricher>(null!)); Assert.Throws<ArgumentNullExce...
HttpLoggingServiceExtensionsTests
csharp
dotnet__efcore
src/EFCore.Relational/Query/RelationalEvaluatableExpressionFilterDependencies.cs
{ "start": 1558, "end": 2838 }
public sealed record ____ { /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly...
RelationalEvaluatableExpressionFilterDependencies
csharp
dotnet__extensions
test/Libraries/Microsoft.AspNetCore.Testing.Tests/FakeCertificateFactoryTests.cs
{ "start": 316, "end": 1508 }
public class ____ { [Fact] public void Create_CreatesCertificate() { using var certificate = FakeSslCertificateFactory.CreateSslCertificate(); Assert.Equal("CN=dotnet-extensions-self-signed-unit-test-certificate", certificate.SubjectName.Name); Assert.Equal("localhost", certificate....
FakeCertificateFactoryTests
csharp
microsoft__PowerToys
src/modules/MouseWithoutBorders/App/Class/NativeMethods.cs
{ "start": 31395, "end": 32259 }
internal struct ____ { internal uint dwSize; internal uint cntUsage; internal uint th32ProcessID; internal IntPtr th32DefaultHeapID; internal uint th32ModuleID; internal uint cntThreads; internal uint th32ParentProcessID; ...
PROCESSENTRY32
csharp
dotnet__aspire
src/Aspire.Dashboard/ServiceClient/DashboardClient.cs
{ "start": 33538, "end": 33611 }
private enum ____ { Retry, DoNotRetry } }
RetryResult
csharp
dotnet__machinelearning
src/Microsoft.ML.Data/Evaluators/AnomalyDetectionEvaluator.cs
{ "start": 37068, "end": 38453 }
partial class ____ { [TlcModule.EntryPoint(Name = "Models.AnomalyDetectionEvaluator", Desc = "Evaluates an anomaly detection scored dataset.")] public static CommonOutputs.CommonEvaluateOutput AnomalyDetection(IHostEnvironment env, AnomalyDetectionMamlEvaluator.Arguments input) { ...
Evaluate
csharp
cake-build__cake
src/Cake.Common.Tests/Unit/Tools/GitReleaseManager/AddAssets/GitReleaseManagerAssetsAdderTests.cs
{ "start": 464, "end": 21080 }
public sealed class ____ { [Fact] public void Should_Throw_If_UserName_Is_Null() { // Given var fixture = new GitReleaseManagerAssetsAdderFixture(); fixture.UserName = string.Empty; // When var r...
TheAddAssetsMethod
csharp
RicoSuter__NSwag
src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGenerator.cs
{ "start": 1230, "end": 1529 }
class ____ of the given assembly.</summary> /// <param name="assembly">The assembly.</param> /// <returns>The controller classes.</returns> public static IEnumerable<Type> GetControllerClasses(Assembly assembly) { // TODO: Move to IControllerClassLoader
types
csharp
MassTransit__MassTransit
tests/MassTransit.RabbitMqTransport.Tests/Retry_Specs.cs
{ "start": 3628, "end": 5213 }
public class ____ : RabbitMqTestFixture { [Test] public async Task Should_stop_after_limit_exceeded() { var pingId = NewId.NextGuid(); _attempts[pingId] = 0; Task<ConsumeContext<Fault<PingMessage>>> handler = await ConnectPublishHa...
When_specifying_redelivery_at_the_bus_level
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Rendering/Composition/Server/ServerRenderResource.cs
{ "start": 554, "end": 3386 }
internal class ____ : SimpleServerObject, IServerRenderResource, IDisposable { private bool _pendingInvalidation; private bool _disposed; public bool IsDisposed => _disposed; private RefCountingSmallDictionary<IServerRenderResourceObserver> _observers; public SimpleServerRenderResource(ServerCo...
SimpleServerRenderResource
csharp
duplicati__duplicati
Duplicati/Library/Backend/OAuthHelper/RetryAfterHelper.cs
{ "start": 1461, "end": 1541 }
class ____ manage the Retry-After header for a given URL. /// </summary>
to
csharp
dotnet__aspnetcore
src/Features/JsonPatch.SystemTextJson/test/TestObjectModels/HeterogenousCollection.cs
{ "start": 677, "end": 746 }
public class ____ { public IList<Shape> Items { get; set; } }
Canvas