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
dotnet__aspnetcore
src/Testing/test/ConditionalTheoryTest.cs
{ "start": 3440, "end": 4022 }
public class ____ : IDisposable { public bool TestRan { get; set; } public void Dispose() { } } [ConditionalTheory] [MemberData(nameof(SkippableData))] public void WithSkipableData(Skippable skippable) { Assert.Null(skippable.Skip); Assert.Equal(...
ConditionalTheoryAsserter
csharp
dotnetcore__WTM
demo/WalkingTec.Mvvm.Demo/ViewModels/SchoolVMs/SchoolImportVM.cs
{ "start": 304, "end": 1410 }
public class ____ : BaseTemplateVM { [Display(Name = "Sys.Create")] public ExcelPropety SchoolCode_Excel = ExcelPropety.CreateProperty<School>(x => x.SchoolCode); [Display(Name = "学校名称")] public ExcelPropety SchoolName_Excel = ExcelPropety.CreateProperty<School>(x => x.SchoolName); ...
SchoolTemplateVM
csharp
dotnet__maui
src/Core/src/Handlers/Border/BorderHandler.cs
{ "start": 804, "end": 8814 }
public partial class ____ : IBorderHandler { public static IPropertyMapper<IBorderView, IBorderHandler> Mapper = new PropertyMapper<IBorderView, IBorderHandler>(ViewMapper) { #if __ANDROID__ [nameof(IBorderView.Height)] = MapHeight, [nameof(IBorderView.Width)] = MapWidth, #endif [nameof(IBorderView.Backgr...
BorderHandler
csharp
dotnet__maui
src/Controls/tests/Xaml.UnitTests/Issues/Issue1213.xaml.cs
{ "start": 141, "end": 250 }
public partial class ____ : TabbedPage { public Issue1213() => InitializeComponent(); [TestFixture]
Issue1213
csharp
EventStore__EventStore
src/KurrentDB.Transport.Http/Client/ClientOperationState.cs
{ "start": 294, "end": 875 }
public class ____ { public readonly HttpRequestMessage Request; public readonly Action<HttpResponse> OnSuccess; public readonly Action<Exception> OnError; public HttpResponse Response { get; set; } public ClientOperationState(HttpRequestMessage request, Action<HttpResponse> onSuccess, Action<Exception> onError...
ClientOperationState
csharp
unoplatform__uno
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml.Automation.Peers/GridViewItemDataAutomationPeer.cs
{ "start": 309, "end": 1922 }
public partial class ____ : global::Microsoft.UI.Xaml.Automation.Peers.SelectorItemAutomationPeer, global::Microsoft.UI.Xaml.Automation.Provider.IScrollItemProvider { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ [global::Uno.NotImplemented("__ANDROID__", "__...
GridViewItemDataAutomationPeer
csharp
dotnet__maui
src/Essentials/src/Gyroscope/Gyroscope.shared.cs
{ "start": 1254, "end": 2848 }
partial class ____ { /// <summary> /// Occurs when the gyroscope reading changes. /// </summary> public static event EventHandler<GyroscopeChangedEventArgs> ReadingChanged { add => Current.ReadingChanged += value; remove => Current.ReadingChanged -= value; } /// <summary> /// Gets a value indic...
Gyroscope
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/test/Types.Tests/Types/Scalars/DateTimeTypeTests.cs
{ "start": 167, "end": 10945 }
public class ____ { [Fact] public void Serialize_Utc_DateTimeOffset() { // arrange var dateTimeType = new DateTimeType(); DateTimeOffset dateTime = new DateTime( 2018, 6, 11, 8, 46, 14, DateTimeKind.U...
DateTimeTypeTests
csharp
louthy__language-ext
LanguageExt.Core/Traits/Fallible/Fallible.Prelude.Partition.E.cs
{ "start": 124, "end": 6434 }
partial class ____ { /// <summary> /// Partitions a foldable of effects into two lists. /// All the `Fail` elements are extracted, in order, to the first /// component of the output. Similarly, the `Succ` elements are extracted /// to the second component of the output. /// </summary> /// ...
Prelude
csharp
CommunityToolkit__dotnet
tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservablePropertyAttribute.cs
{ "start": 63425, "end": 64260 }
public partial class ____ : ObservableObject { [ObservableProperty] [set: MemberNotNull(nameof(B))] private string a; // This type validates forwarding attributes on generated accessors. In particular, there should // be no nullability warning on this constructor (CS8618), t...
ModelWithSecondaryPropertySetFromGeneratedSetter_DoesNotWarn
csharp
dotnet__reactive
Rx.NET/Source/src/System.Reactive/Linq/Observable/Throttle.cs
{ "start": 6755, "end": 8389 }
private sealed class ____ : SafeObserver<TThrottle> { private readonly _ _parent; private readonly TSource _value; private readonly ulong _currentid; public ThrottleObserver(_ parent, TSource value, ulong currentid) { ...
ThrottleObserver
csharp
dotnet__efcore
test/EFCore.SqlServer.FunctionalTests/SqlServerTypeAliasTest.cs
{ "start": 7664, "end": 8520 }
private class ____ { public int Id { get; set; } [Column(TypeName = "datetimeAlias")] public DateTime DateTimeAlias { get; set; } [Column(TypeName = "datetimeoffsetAlias")] public DateTimeOffset DateTimeOffsetAlias { get; set; } [Column(TypeName = "timeAlias")] ...
TypeAliasEntityWithFacets
csharp
microsoft__PowerToys
src/dsc/v3/PowerToys.DSC/DSCResources/BaseResource.cs
{ "start": 398, "end": 4105 }
public abstract class ____ { /// <summary> /// Gets the name of the resource. /// </summary> public string Name { get; } /// <summary> /// Gets the module being used by the resource, if provided. /// </summary> public string? Module { get; } public BaseResource(string name, string?...
BaseResource
csharp
kgrzybek__modular-monolith-with-ddd
src/Modules/Meetings/Tests/UnitTests/MeetingGroupProposals/MeetingGroupProposalTests.cs
{ "start": 680, "end": 3707 }
public class ____ : TestBase { [Test] public void ProposeNewMeetingGroup_IsSuccessful() { var proposalMemberId = new MemberId(Guid.NewGuid()); var meetingProposal = MeetingGroupProposal.ProposeNew( "name", "description", ...
MeetingGroupProposalTests
csharp
dotnet__aspnetcore
src/Servers/Kestrel/Core/src/Internal/Http/HttpResponseTrailers.cs
{ "start": 352, "end": 1566 }
internal partial class ____ : HttpHeaders { public Func<string, Encoding?> EncodingSelector { get; set; } public HttpResponseTrailers(Func<string, Encoding?>? encodingSelector = null) { EncodingSelector = encodingSelector ?? KestrelServerOptions.DefaultHeaderEncodingSelector; } public Enum...
HttpResponseTrailers
csharp
neuecc__MessagePack-CSharp
tests/MessagePack.SourceGenerator.Tests/Resources/GenericsUnionFormatter/MessagePack.GeneratedMessagePackResolver.g.cs
{ "start": 1230, "end": 3185 }
private static class ____ { private static readonly global::System.Collections.Generic.Dictionary<global::System.Type, int> closedTypeLookup = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(4) { { typeof(global::System.Collections.Generic.IEnumerable<global::System.Guid>), 0 }, {...
GeneratedMessagePackResolverGetFormatterHelper
csharp
microsoft__semantic-kernel
dotnet/src/SemanticKernel.Abstractions/Memory/DataEntryBase.cs
{ "start": 211, "end": 279 }
class ____ data entries. /// </summary> [Experimental("SKEXP0001")]
for
csharp
dotnet__efcore
test/EFCore.InMemory.FunctionalTests/Query/QueryBugsInMemoryTest.cs
{ "start": 47551, "end": 47682 }
private class ____ { public int Id { get; set; } public List<C18394> PropertyCList { get; set; } }
B18394
csharp
DapperLib__Dapper
tests/Dapper.Tests/NullTests.cs
{ "start": 362, "end": 2375 }
public abstract class ____<TProvider> : TestBase<TProvider> where TProvider : DatabaseProvider { [Fact] public void TestNullableDefault() { TestNullable(false); } [Fact] public void TestNullableApplyNulls() { TestNullable(true); ...
NullTests
csharp
EventStore__EventStore
src/KurrentDB.Projections.Core.Tests/Services/event_reader/event_reader_core_service/when_handling_subscribe_requests.cs
{ "start": 3777, "end": 5169 }
private class ____ : IReaderStrategy { private readonly bool _throwOnCreateSubscription; private readonly bool _throwOnCreatePausedReader; private FakeReaderStrategyThatThrows(bool throwOnCreateSubscription, bool throwOnCreatePausedReader) { _throwOnCreateSubscription = throwOnCreateSubscription; _throwOnC...
FakeReaderStrategyThatThrows
csharp
Cysharp__UniTask
src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ToObservable.cs
{ "start": 138, "end": 449 }
partial class ____ { public static IObservable<TSource> ToObservable<TSource>(this IUniTaskAsyncEnumerable<TSource> source) { Error.ThrowArgumentNullException(source, nameof(source)); return new ToObservable<TSource>(source); } }
UniTaskAsyncEnumerable
csharp
EventStore__EventStore
src/KurrentDB.Surge.Tests/Components/Consumers/SystemConsumerTests.cs
{ "start": 9118, "end": 10402 }
class ____ : TestCaseGeneratorXunit<ConsumeFilterCases> { protected override IEnumerable<object[]> Data() { var streamId = Identifiers.GenerateShortId("stream"); yield return [streamId, ConsumeFilter.FromStreamId(streamId)]; streamId = Guid.NewGuid().ToString(); yie...
ConsumeFilterCases
csharp
jellyfin__jellyfin
Emby.Server.Implementations/Images/BaseFolderImageProvider.cs
{ "start": 537, "end": 2323 }
public abstract class ____<T> : BaseDynamicImageProvider<T> where T : Folder, new() { private readonly ILibraryManager _libraryManager; protected BaseFolderImageProvider(IFileSystem fileSystem, IProviderManager providerManager, IApplicationPaths applicationPaths, IImageProcessor imageProces...
BaseFolderImageProvider
csharp
dotnet__efcore
test/EFCore.SqlServer.FunctionalTests/Query/ComplexNavigationsQuerySqlServerFixture.cs
{ "start": 205, "end": 414 }
public class ____ : ComplexNavigationsQueryRelationalFixtureBase { protected override ITestStoreFactory TestStoreFactory => SqlServerTestStoreFactory.Instance; }
ComplexNavigationsQuerySqlServerFixture
csharp
unoplatform__uno
src/Uno.Foundation/Generated/2.0.0.0/Windows.Foundation.Metadata/LengthIsAttribute.cs
{ "start": 262, "end": 543 }
public partial class ____ : global::System.Attribute { // Skipping already declared method Windows.Foundation.Metadata.LengthIsAttribute.LengthIsAttribute(int) // Forced skipping of method Windows.Foundation.Metadata.LengthIsAttribute.LengthIsAttribute(int) } }
LengthIsAttribute
csharp
duplicati__duplicati
Duplicati/Library/Interface/IBackend.cs
{ "start": 1844, "end": 5286 }
public interface ____ : IDynamicModule, IDisposable { /// <summary> /// The localized name to display for this backend /// </summary> string DisplayName { get; } /// <summary> /// The protocol key, e.g. ftp, http or ssh /// </summary> string ProtocolK...
IBackend
csharp
getsentry__sentry-dotnet
test/Sentry.Tests/Internals/MainExceptionProcessorTests.verify.cs
{ "start": 35, "end": 378 }
public partial class ____ { [Fact] public Task CreateSentryException_Aggregate() { var sut = _fixture.GetSut(); var aggregateException = BuildAggregateException(); var sentryException = sut.CreateSentryExceptions(aggregateException); return Verify(sentryException); } }
MainExceptionProcessorTests
csharp
ChilliCream__graphql-platform
src/HotChocolate/Language/src/Language.SyntaxTree/ObjectTypeExtensionNode.cs
{ "start": 354, "end": 5631 }
public sealed class ____ : ComplexTypeDefinitionNodeBase, ITypeExtensionNode { /// <summary> /// Initializes a new instance of <see cref="ObjectTypeExtensionNode"/>. /// </summary> /// <param name="location"> /// The location of the syntax node within the original source text. /// </param> /...
ObjectTypeExtensionNode
csharp
dotnet__orleans
src/api/Orleans.Runtime/Orleans.Runtime.cs
{ "start": 71509, "end": 73287 }
partial class ____ : global::Orleans.Serialization.Codecs.IFieldCodec<global::Orleans.Runtime.MembershipService.OrleansClusterConnectivityCheckFailedException>, global::Orleans.Serialization.Codecs.IFieldCodec { public Codec_OrleansClusterConnectivityCheckFailedException(global::Orleans.Serialization.Seria...
Codec_OrleansClusterConnectivityCheckFailedException
csharp
SixLabors__ImageSharp
tests/ImageSharp.Benchmarks/Color/ColorspaceCieXyzToCieLabConvert.cs
{ "start": 273, "end": 1016 }
public class ____ { private static readonly CieXyz CieXyz = new(0.95047F, 1, 1.08883F); private static readonly XYZColor XYZColor = new(0.95047, 1, 1.08883); private static readonly ColorProfileConverter ColorProfileConverter = new(); private static readonly IColorConverter<XYZColor, LabColor> Colour...
ColorspaceCieXyzToCieLabConvert
csharp
grpc__grpc-dotnet
src/Grpc.Core.Api/CallInvoker.cs
{ "start": 1876, "end": 2333 }
class ____ TResponse : class; /// <summary> /// Invokes a client streaming call asynchronously. /// In client streaming scenario, client sends a stream of requests and server responds with a single response. /// </summary> public abstract AsyncClientStreamingCall<TRequest, TResponse> AsyncC...
where
csharp
dotnet__extensions
test/Generators/Microsoft.Gen.Logging/Unit/ParserTests.LogMethod.cs
{ "start": 7036, "end": 7733 }
partial class ____ { public ILogger _logger; [LoggerMessage] public partial void M1(LogLevel level, Exception ex); [LoggerMessage(LogLevel.Debug)] public partial void M2(Exception ex); ...
C
csharp
abpframework__abp
framework/src/Volo.Abp.Ddd.Application.Contracts/Volo/Abp/Application/Services/ICreateUpdateAppService.cs
{ "start": 362, "end": 593 }
public interface ____<TGetOutputDto, in TKey, in TCreateUpdateInput, in TUpdateInput> : ICreateAppService<TGetOutputDto, TCreateUpdateInput>, IUpdateAppService<TGetOutputDto, TKey, TUpdateInput> { }
ICreateUpdateAppService
csharp
dotnet__extensions
src/Libraries/Microsoft.Extensions.Options.Contextual/Internal/ConfigureContextualOptions.cs
{ "start": 468, "end": 1588 }
internal sealed class ____<TOptions> : IConfigureContextualOptions<TOptions> where TOptions : class { private readonly IOptionsContext _context; /// <summary> /// Initializes a new instance of the <see cref="ConfigureContextualOptions{TOptions}"/> class. /// </summary> /// <param name="configur...
ConfigureContextualOptions
csharp
AutoMapper__AutoMapper
src/IntegrationTests/ExplicitExpansion/MembersToExpandExpressions.cs
{ "start": 222, "end": 341 }
public class ____ { public int Desc { get; set; } public int Id { get; set; } }
SourceDeepInner
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Validation/Rules/MaxAllowedFieldCycleDepthVisitor.cs
{ "start": 503, "end": 2283 }
internal sealed class ____( ImmutableArray<(SchemaCoordinate Coordinate, ushort MaxAllowed)> coordinateCycleLimits, ushort? defaultCycleLimit) : TypeDocumentValidatorVisitor { protected override ISyntaxVisitorAction Enter( DocumentNode node, DocumentValidatorContext context) { ...
MaxAllowedFieldCycleDepthVisitor
csharp
ChilliCream__graphql-platform
src/HotChocolate/Fusion-vnext/src/Fusion.Execution/DependencyInjection/CoreFusionGatewayBuilderExtensions.Parser.cs
{ "start": 145, "end": 609 }
partial class ____ { public static IFusionGatewayBuilder ModifyParserOptions( this IFusionGatewayBuilder builder, Action<FusionParserOptions> configure) { ArgumentNullException.ThrowIfNull(builder); ArgumentNullException.ThrowIfNull(configure); return FusionSetupUtiliti...
CoreFusionGatewayBuilderExtensions
csharp
dotnetcore__CAP
src/DotNetCore.CAP/Internal/ISubscribeExector.Default.cs
{ "start": 566, "end": 2632 }
internal class ____ : ISubscribeExecutor { // diagnostics listener // ReSharper disable once InconsistentNaming private static readonly DiagnosticListener s_diagnosticListener = new(CapDiagnosticListenerNames.DiagnosticListenerName); private readonly IDataStorage _dataStorage; private reado...
SubscribeExecutor
csharp
icsharpcode__ILSpy
ICSharpCode.Decompiler.Tests/TestCases/Pretty/TypeMemberTests.cs
{ "start": 10318, "end": 10484 }
public class ____ : T26_B_HideMembers4 { public void M<T1, T2>() { } public new void M1<R>() { } public new void M2<R>(R r) { } }
T26_B1_HideMembers4
csharp
dotnet__orleans
src/Orleans.Runtime/Facet/Persistent/PersistentStateStorageFactory.cs
{ "start": 2069, "end": 3151 }
internal sealed class ____<TState> : StateStorageBridge<TState>, IPersistentState<TState>, ILifecycleObserver { public PersistentState(string stateName, IGrainContext context, IGrainStorage storageProvider) : base(stateName, context, storageProvider) { var lifecycle = context.ObservableL...
PersistentState
csharp
dotnet__maui
src/Controls/src/Core/Shell/MenuShellItem.cs
{ "start": 242, "end": 2453 }
internal class ____ : ShellItem, IMenuItemController, IStyleSelectable { internal MenuShellItem(MenuItem menuItem) { MenuItem = menuItem; MenuItem.Parent = this; Shell.SetFlyoutItemIsVisible(this, Shell.GetFlyoutItemIsVisible(menuItem)); this.SetBinding(TitleProperty, static (MenuItem item) => item.Te...
MenuShellItem
csharp
dotnetcore__FreeSql
FreeSql.Tests/FreeSql.Tests.DbContext/RepositoryTests02.cs
{ "start": 252, "end": 2811 }
public class ____ { [Fact] public void TestMethod1() { using (IFreeSql fsql = new FreeSql.FreeSqlBuilder() .UseConnectionString(FreeSql.DataType.Sqlite, @"Data Source=:memory:") .UseMonitorCommand(cmd => Trace.WriteLine($"Sql:{cmd.CommandText}"))//...
RepositoryTests02
csharp
ShareX__ShareX
ShareX.UploadersLib/FileUploaders/Dropbox.cs
{ "start": 19869, "end": 20007 }
public class ____ { public string id { get; set; } public string name { get; set; } }
DropboxLinkMetadataTeamInfo
csharp
dotnet__orleans
test/Orleans.Serialization.UnitTests/BuiltInCodecTests.cs
{ "start": 149186, "end": 149610 }
public class ____(ITestOutputHelper output) : FieldCodecTester<FSharpOption<Guid>, FSharpOptionCodec<Guid>>(output) { protected override FSharpOption<Guid>[] TestValues => [null, FSharpOption<Guid>.None, FSharpOption<Guid>.Some(Guid.Empty), FSharpOption<Guid>.Some(Guid.NewGuid())]; protected overri...
FSharpOptionTests
csharp
dotnet__aspnetcore
src/Identity/EntityFrameworkCore/test/EF.Test/UserOnlyCustomContextTest.cs
{ "start": 504, "end": 640 }
public class ____ : IClassFixture<ScratchDatabaseFixture> { private readonly ApplicationBuilder _builder;
UserOnlyCustomContextTest
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/SagaStateMachineTests/Automatonymous/AnyStateTransition_Specs.cs
{ "start": 995, "end": 1283 }
class ____ : SagaStateMachineInstance { public State CurrentState { get; set; } public State LastEntered { get; set; } public State LastLeft { get; set; } public Guid CorrelationId { get; set; } }
Instance
csharp
duplicati__duplicati
Duplicati/Library/Main/Operation/TestHandler.cs
{ "start": 1524, "end": 25222 }
internal class ____ { /// <summary> /// The tag used for logging /// </summary> private static readonly string LOGTAG = Logging.Log.LogTagFromType<TestHandler>(); private readonly Options m_options; private readonly TestResults m_result; public TestHandler(O...
TestHandler
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Input/DataFormatOfT.cs
{ "start": 778, "end": 958 }
public sealed class ____<T> : DataFormat where T : class { internal DataFormat(DataFormatKind kind, string identifier) : base(kind, identifier) { } }
DataFormat
csharp
abpframework__abp
modules/cms-kit/src/Volo.CmsKit.EntityFrameworkCore/Volo/CmsKit/EntityFrameworkCore/CmsKitEntityFrameworkCoreModule.cs
{ "start": 619, "end": 1832 }
public class ____ : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { context.Services.AddAbpDbContext<CmsKitDbContext>(options => { options.AddRepository<CmsUser, EfCoreCmsUserRepository>(); options.AddRepository<UserReaction, EfCo...
CmsKitEntityFrameworkCoreModule
csharp
atata-framework__atata
test/Atata.IntegrationTests/Components/InputPage.cs
{ "start": 233, "end": 375 }
enum ____ with type name OptionA, OptionB, OptionC, OptionD #pragma warning restore CA1712 // Do not prefix
values
csharp
JamesNK__Newtonsoft.Json
Src/Newtonsoft.Json/Serialization/JsonLinqContract.cs
{ "start": 1415, "end": 1914 }
public class ____ : JsonContract { /// <summary> /// Initializes a new instance of the <see cref="JsonLinqContract"/> class. /// </summary> /// <param name="underlyingType">The underlying type for the contract.</param> [RequiresUnreferencedCode(MiscellaneousUtils.TrimWarning)...
JsonLinqContract
csharp
PrismLibrary__Prism
tests/Avalonia/Prism.Avalonia.Tests/Mocks/MockClickableObject.cs
{ "start": 69, "end": 219 }
internal class ____ : Button // : ButtonBase { public void RaiseClick() { OnClick(); } } }
MockClickableObject
csharp
dotnet__reactive
Ix.NET/Source/System.Linq.Async.SourceGenerator/AsyncOverloadsGenerator.cs
{ "start": 513, "end": 926 }
public sealed class ____ : ISourceGenerator { private const string GenerateAsyncOverloadAttributeSource = "using System;\n" + "using System.Diagnostics;\n" + "namespace System.Linq\n" + "{\n" + " [AttributeUsage(AttributeTargets.Method)]\n" + ...
AsyncOverloadsGenerator
csharp
AutoFixture__AutoFixture
Src/AutoFixtureUnitTest/QueryMock.cs
{ "start": 52, "end": 347 }
public class ____<T, TResult> { public QueryMock() { this.OnQuery = x => default(TResult); } public Func<T, TResult> OnQuery { get; set; } public TResult Query(T x) { return this.OnQuery(x); } }
QueryMock
csharp
unoplatform__uno
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Input/PointerPoint.cs
{ "start": 253, "end": 1908 }
public partial class ____ { // Skipping already declared property FrameId // Skipping already declared property IsInContact // Skipping already declared property PointerDeviceType // Skipping already declared property PointerId // Skipping already declared property Position // Skipping already declared pro...
PointerPoint
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Commands/Schema/ValidateSchemaCommand.cs
{ "start": 426, "end": 4782 }
internal sealed class ____ : Command { public ValidateSchemaCommand() : base("validate") { Description = "Validates a schema against a stage"; AddOption(Opt<StageNameOption>.Instance); AddOption(Opt<ApiIdOption>.Instance); AddOption(Opt<SchemaFileOption>.Instance); this...
ValidateSchemaCommand
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/PasswordHasherTests.cs
{ "start": 178, "end": 271 }
public abstract class ____ { protected ServiceStackHost appHost;
PasswordHasherTestsBase
csharp
xunit__xunit
src/xunit.v3.assert.tests/Asserts/SetAssertsTests.cs
{ "start": 5090, "end": 6903 }
public class ____ { [Fact] public static void GuardClause() { Assert.Throws<ArgumentNullException>("expectedSuperset", () => Assert.ProperSuperset(null!, new HashSet<int>())); } [Fact] public static void IsSupersetButNotProperSuperset() { var expectedSuperset = new HashSet<int> { 1, 2, 3 }; var...
ProperSuperset
csharp
dotnet__maui
src/Core/tests/DeviceTests/Handlers/GraphicsView/GraphicsViewHandlerTests.Windows.cs
{ "start": 86, "end": 272 }
public partial class ____ { PlatformTouchGraphicsView GetPlatformGraphicsView(GraphicsViewHandler graphicsViewHandler) => graphicsViewHandler.PlatformView; } }
GraphicsViewHandlerTests
csharp
ChilliCream__graphql-platform
src/HotChocolate/Data/src/Data/Sorting/Expressions/Extensions/QueryableSortExtensions.cs
{ "start": 227, "end": 2587 }
public static class ____ { /// <summary> /// Sorts the selection set of the request onto the queryable. /// </summary> /// <param name="queryable">The queryable</param> /// <param name="context"> /// The resolver context of the resolver that is annotated with UseSorting /// </param> /// ...
QueryableSortExtensions
csharp
ServiceStack__ServiceStack
ServiceStack/src/ServiceStack.Interfaces/Jetbrains.Annotations.cs
{ "start": 37701, "end": 37987 }
internal sealed class ____ : Attribute { public AspRequiredAttributeAttribute([NotNull] string attribute) { Attribute = attribute; } [NotNull] public string Attribute { get; private set; } } [AttributeUsage(AttributeTargets.Property)]
AspRequiredAttributeAttribute
csharp
dotnet__aspire
src/Aspire.Hosting.JavaScript/NodeAppResource.cs
{ "start": 500, "end": 712 }
public class ____(string name, string command, string workingDirectory) : JavaScriptAppResource(name, command, workingDirectory), IResourceWithServiceDiscovery, IContainerFilesDestinationResource;
NodeAppResource
csharp
dotnet__aspnetcore
src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ResendEmailConfirmation.cshtml.cs
{ "start": 1383, "end": 2424 }
public class ____ { /// <summary> /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> [Required] [EmailAddres...
InputModel
csharp
dotnet__orleans
test/DefaultCluster.Tests/GenericGrainTests.cs
{ "start": 11523, "end": 31780 }
interface ____ by ConcreteGrainWith2GenericInterfaces // will reference the same grain: var grainRef2 = GetGrain<IGenericGrain<int, string>>(grainId); // ConcreteGrainWith2GenericInterfaces returns a string representation of the current value multiplied by 10: var floatR...
implemented
csharp
dotnet__aspnetcore
src/Razor/Razor.Runtime/test/Runtime/TagHelpers/TestTagHelpers/TagHelperDescriptorFactoryTagHelpers.cs
{ "start": 5653, "end": 5939 }
public class ____ { public object BoundProperty { get; set; } [HtmlAttributeNotBound] public string NotBoundProperty { get; set; } [HtmlAttributeName("unused")] [HtmlAttributeNotBound] public string NamedNotBoundProperty { get; set; } }
NotBoundAttributeTagHelper
csharp
App-vNext__Polly
src/Polly/NoOp/NoOpSyntax.cs
{ "start": 36, "end": 289 }
public partial class ____ { /// <summary> /// Builds a NoOp <see cref="Policy"/> that will execute without any custom behavior. /// </summary> /// <returns>The policy instance.</returns> public static NoOpPolicy NoOp() => new(); }
Policy
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types/Types/Composite/Directives/Provides.cs
{ "start": 250, "end": 840 }
public sealed class ____ { public Provides(SelectionSetNode fields) { ArgumentNullException.ThrowIfNull(fields); Fields = fields; } public Provides(string fields) { ArgumentNullException.ThrowIfNull(fields); fields = $"{{ {fields.Trim('{', '}')} }}"; Fields =...
Provides
csharp
spectreconsole__spectre.console
src/Spectre.Console.Tests/Unit/Rendering/Borders/TableBorderTests.cs
{ "start": 4520, "end": 5258 }
public sealed class ____ { [Fact] public void Should_Return_Safe_Border() { // Given, When var border = TableBorder.Square.GetSafeBorder(safe: true); // Then border.ShouldBeSameAs(TableBorder.Square); ...
TheSafeGetBorderMethod
csharp
abpframework__abp
framework/src/Volo.Abp.BlobStoring/Volo/Abp/BlobStoring/BlobProviderSelectorExtensions.cs
{ "start": 64, "end": 375 }
public static class ____ { public static IBlobProvider Get<TContainer>( [NotNull] this IBlobProviderSelector selector) { Check.NotNull(selector, nameof(selector)); return selector.Get(BlobContainerNameAttribute.GetContainerName<TContainer>()); } }
BlobProviderSelectorExtensions
csharp
dotnet__aspnetcore
src/Components/Components/src/EventCallback.cs
{ "start": 302, "end": 3201 }
struct ____ : IEventCallback { /// <summary> /// Gets a reference to the <see cref="EventCallbackFactory"/>. /// </summary> public static readonly EventCallbackFactory Factory = new EventCallbackFactory(); /// <summary> /// Gets an empty <see cref="EventCallback"/>. /// </summary> publ...
EventCallback
csharp
dotnet__aspnetcore
src/Http/Owin/src/OwinEnvironment.cs
{ "start": 7481, "end": 7841 }
interface ____.</param> /// <param name="getter">Value getter.</param> public FeatureMap(Type featureInterface, Func<object, object> getter) : this(featureInterface, getter, defaultFactory: null) { } /// <summary> /// Initializes a new instance of <see cref=...
type
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 352017, "end": 352237 }
public class ____ { public int Id { get; set; } public RelatedEntity1614 ParentEntity { get; set; } public IEnumerable<RelatedEntity1616> ChildEntities { get; set; } }
RelatedEntity1615
csharp
dotnet__machinelearning
src/Microsoft.ML.Data/Scorers/RowToRowScorerBase.cs
{ "start": 13503, "end": 14144 }
internal abstract class ____ { // Output columns. [Argument(ArgumentType.AtMostOnce, HelpText = "Output column: The suffix to append to the default column names", ShortName = "ex")] public string Suffix; } /// <summary> /// Base bindings for a scorer based on an <see cref="ISch...
ScorerArgumentsBase
csharp
ShareX__ShareX
ShareX/ImageData.cs
{ "start": 1151, "end": 2290 }
public class ____ : IDisposable { public MemoryStream ImageStream { get; set; } public EImageFormat ImageFormat { get; set; } public bool Write(string filePath) { try { if (ImageStream != null && !string.IsNullOrEmpty(filePath)) ...
ImageData
csharp
dotnet__aspire
tests/Aspire.Hosting.Kafka.Tests/ConnectionPropertiesTests.cs
{ "start": 217, "end": 971 }
public class ____ { [Fact] public void KafkaServerResourceGetConnectionPropertiesReturnsExpectedValues() { var resource = new KafkaServerResource("kafka"); var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToArray(); Assert.Collection( ...
ConnectionPropertiesTests
csharp
SixLabors__ImageSharp
src/ImageSharp/Formats/SpecializedImageDecoder{T}.cs
{ "start": 193, "end": 511 }
class ____ specialized image decoders. /// Specialized decoders allow for additional options to be passed to the decoder. /// Types that inherit this decoder are required to implement cancellable synchronous decoding operations only. /// </summary> /// <typeparam name="T">The type of specialized options.</typeparam>
for
csharp
smartstore__Smartstore
src/Smartstore.Web/Areas/Admin/Models/DataExchange/ImportProfileListModel.cs
{ "start": 85, "end": 341 }
public partial class ____ : EntityModelBase { [LocalizedDisplay("Admin.Common.Entity")] public ImportEntityType EntityType { get; set; } public List<ImportProfileModel> Profiles { get; set; } = new(); } }
ImportProfileListModel
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/test/Execution.Tests/RequestExecutorManagerTests.cs
{ "start": 8386, "end": 8513 }
private sealed class ____ : TypeModule { public void TriggerChange() => OnTypesChanged(); } }
TriggerableTypeModule
csharp
restsharp__RestSharp
src/RestSharp/Authenticators/IAuthenticator.cs
{ "start": 666, "end": 770 }
public interface ____ { ValueTask Authenticate(IRestClient client, RestRequest request); }
IAuthenticator
csharp
ShareX__ShareX
ShareX.ScreenCaptureLib/Forms/EditorStartupForm.cs
{ "start": 1209, "end": 5119 }
public partial class ____ : Form { public RegionCaptureOptions Options { get; private set; } public Bitmap Image { get; private set; } public string ImageFilePath { get; private set; } public EditorStartupForm(RegionCaptureOptions options) { Options = options; ...
EditorStartupForm
csharp
dotnet__BenchmarkDotNet
samples/BenchmarkDotNet.Samples/IntroHardwareCounters.cs
{ "start": 238, "end": 1492 }
public class ____ { private const int N = 32767; private readonly int[] sorted, unsorted; public IntroHardwareCounters() { var random = new Random(0); unsorted = new int[N]; sorted = new int[N]; for (int i = 0; i < N; i++) ...
IntroHardwareCounters
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver/Core/WireProtocol/IWireProtocol.cs
{ "start": 954, "end": 1222 }
internal interface ____<TResult> { bool MoreToCome { get; } TResult Execute(OperationContext operationContext, IConnection connection); Task<TResult> ExecuteAsync(OperationContext operationContext, IConnection connection); } }
IWireProtocol
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/test/Types.Analyzers.Tests/QueryContextConnectionAnalyzerTests.cs
{ "start": 2485, "end": 3111 }
public class ____ { } """], enableAnalyzers: true).MatchMarkdownAsync(); } [Fact] public async Task TypeMismatch_WithInterfaceType_RaisesError() { await TestHelper.GetGeneratedSourceSnapshot( [""" using HotChocolate; ...
ProductService
csharp
ServiceStack__ServiceStack
ServiceStack/tests/CheckMvc/CheckWebGlobalNamespace.dtos.cs
{ "start": 6938, "end": 7081 }
public partial class ____ { public virtual int Id { get; set; } } [Route("/matchroute/json")] [Serializable]
MatchesId
csharp
MonoGame__MonoGame
MonoGame.Framework/Graphics/PackedVector/NormalizedByte2.cs
{ "start": 602, "end": 4354 }
public struct ____ : IPackedVector<ushort>, IEquatable<NormalizedByte2> { private ushort _packed; /// <summary> /// Initializes a new instance of this structure. /// </summary> /// <param name="vector"> /// A <see cref="Vector2"/> value who's components contain the i...
NormalizedByte2
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Input/Internal/FocusSelection.cs
{ "start": 438, "end": 4417 }
internal struct ____ { public DirectionalFocusInfo(bool handled, bool shouldBubble, bool focusCandidateFound, bool directionalFocusEnabled) { Handled = handled; ShouldBubble = shouldBubble; FocusCandidateFound = focusCandidateFound; DirectionalFocusEnabled = directionalFocusEnabled; } pub...
DirectionalFocusInfo
csharp
unoplatform__uno
src/Uno.UI.RuntimeTests/MUX/Input/KeyboardAccelerators/KeyboardAcceleratorTests.cs
{ "start": 163242, "end": 164351 }
public partial class ____ : StackPanel { private readonly UnoAutoResetEvent resetEvent = new UnoAutoResetEvent(false); public bool HasFired = false; protected override void OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs args) { foreach (UIElement current in this.Children) { curren...
StackPanelWithProcessKeyboardAcceleratorOverride
csharp
Cysharp__UniTask
src/UniTask.NetCore/NetCore/AsyncEnumerableExtensions.cs
{ "start": 2438, "end": 3104 }
sealed class ____ : IAsyncEnumerator<T> { readonly IUniTaskAsyncEnumerator<T> enumerator; public Enumerator(IUniTaskAsyncEnumerator<T> enumerator) { this.enumerator = enumerator; } public T Current => enume...
Enumerator
csharp
dotnet__aspnetcore
src/Mvc/test/Mvc.FunctionalTests/AuthMiddlewareAndFilterTestBase.cs
{ "start": 435, "end": 10561 }
public abstract class ____<TStartup> : LoggedTest where TStartup : class { protected override void Initialize(TestContext context, MethodInfo methodInfo, object[] testMethodArguments, ITestOutputHelper testOutputHelper) { base.Initialize(context, methodInfo, testMethodArguments, testOutputHelper); ...
AuthMiddlewareAndFilterTestBase
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.Server.Tests/ProxyFeatureTests.cs
{ "start": 506, "end": 5020 }
class ____ : AppSelfHostBase { public AppHost() : base(nameof(ProxyFeatureTests), typeof(ProxyFeatureTests).Assembly) { } public override void Configure(Container container) { Plugins.Add(new ProxyFeature( matchingRequests:...
AppHost
csharp
dotnet__aspnetcore
src/Tools/GetDocumentInsider/src/Commands/GetDocumentCommand.cs
{ "start": 5471, "end": 5690 }
private sealed class ____ { public AssemblyInfo(string path) { Path = path; } public string Path { get; } public Assembly Assembly { get; set; } } }
AssemblyInfo
csharp
npgsql__efcore.pg
src/EFCore.PG/Query/ExpressionTranslators/Internal/NpgsqlFuzzyStringMatchMethodTranslator.cs
{ "start": 537, "end": 4236 }
public class ____ : IMethodCallTranslator { private static readonly Dictionary<MethodInfo, string> Functions = new() { [GetRuntimeMethod(nameof(NpgsqlFuzzyStringMatchDbFunctionsExtensions.FuzzyStringMatchSoundex), typeof(DbFunctions), typeof(string))] = "soundex", [GetRuntimeMethod(n...
NpgsqlFuzzyStringMatchMethodTranslator
csharp
reactiveui__ReactiveUI
src/ReactiveUI.AndroidX/ReactiveFragment.cs
{ "start": 807, "end": 3080 }
public class ____ : global::AndroidX.Fragment.App.Fragment, IReactiveNotifyPropertyChanged<ReactiveFragment>, IReactiveObject, IHandleObservableErrors { private readonly Subject<Unit> _activated = new(); private readonly Subject<Unit> _deactivated = new(); /// <summary> /// Initializes a new instance o...
ReactiveFragment
csharp
microsoft__semantic-kernel
dotnet/src/Functions/Functions.UnitTests/OpenApi/Serialization/OpenApiTypeConverterTests.cs
{ "start": 343, "end": 7099 }
public class ____ { [Fact] public void ItShouldConvertString() { // Act & Assert Assert.Equal("\"test\"", OpenApiTypeConverter.Convert("id", "string", "test").ToString()); Assert.Equal("test", OpenApiTypeConverter.Convert("id", "string", CreateJsonElement("test")).ToString()); } ...
OpenApiTypeConverterTests
csharp
microsoft__garnet
libs/server/ServerConfig.cs
{ "start": 1534, "end": 16517 }
partial class ____ : ServerSessionBase { private bool NetworkCONFIG_GET() { if (parseState.Count == 0) { return AbortWithWrongNumberOfArguments($"{nameof(RespCommand.CONFIG)}|{nameof(CmdStrings.GET)}"); } // Extract requested paramete...
RespServerSession
csharp
ServiceStack__ServiceStack
ServiceStack.Text/src/ServiceStack.Text/DynamicNumber.cs
{ "start": 35173, "end": 35538 }
internal static class ____ { internal static object ParseString(this IDynamicNumber number, object value) { if (value is string s) return number.TryParse(s, out object x) ? x : null; if (value is char c) return number.TryParse(c.ToString(), out object x) ? x : null; ...
DynamicNumberExtensions
csharp
dotnet__aspnetcore
src/Shared/Nullable/NullableAttributes.cs
{ "start": 3035, "end": 3846 }
sealed class ____ : Attribute { /// <summary>Initializes the attribute with the specified return value condition.</summary> /// <param name="returnValue"> /// The return value condition. If the method returns this value, the associated parameter will not be null. /// </param> public NotNull...
NotNullWhenAttribute
csharp
files-community__Files
src/Files.App/Utils/Storage/Collection/GroupedCollection.cs
{ "start": 106, "end": 1703 }
public sealed class ____<T> : BulkConcurrentObservableCollection<T>, IGroupedCollectionHeader { public GroupedHeaderViewModel Model { get; set; } public GroupedCollection(IEnumerable<T> items) : base(items) { AddEvents(); } public GroupedCollection(string key) : base() { AddEvents(); Model = new...
GroupedCollection
csharp
ChilliCream__graphql-platform
src/StrawberryShake/CodeGeneration/src/CodeGeneration/Descriptors/TypeDescriptors/InterfaceTypeDescriptor.cs
{ "start": 71, "end": 1052 }
public sealed class ____ : ComplexTypeDescriptor { public InterfaceTypeDescriptor( string name, TypeKind typeKind, RuntimeTypeInfo runtimeType, IReadOnlyCollection<ObjectTypeDescriptor> implementedBy, IReadOnlyList<string> implements, IReadOnlyList<DeferredFragmentDes...
InterfaceTypeDescriptor
csharp
grandnode__grandnode2
src/Business/Grand.Business.Checkout/Queries/Handlers/Orders/CanPartiallyRefundQueryHandler.cs
{ "start": 213, "end": 1557 }
public class ____ : IRequestHandler<CanPartiallyRefundQuery, bool> { private readonly IPaymentService _paymentService; public CanPartiallyRefundQueryHandler(IPaymentService paymentService) { _paymentService = paymentService; } public async Task<bool> Handle(CanPartiallyRefundQuery request,...
CanPartiallyRefundQueryHandler