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
ChilliCream__graphql-platform
src/HotChocolate/Fusion-vnext/test/Fusion.Tests.Shared/AutomaticMockingTests.cs
{ "start": 66481, "end": 67807 }
interface ____ { id: ID! } type Product implements Node { id: ID! name: String! } """; const string request = """ query { node(id: "5") { id ... on Pro...
Node
csharp
cake-build__cake
src/Cake.Frosting/FrostingTaskTeardown.cs
{ "start": 357, "end": 480 }
public abstract class ____ : FrostingTaskTeardown<ICakeContext> { } /// <summary> /// Base
FrostingTaskTeardown
csharp
dotnet__machinelearning
src/Microsoft.ML.StandardTrainers/Standard/LogisticRegression/MulticlassLogisticRegression.cs
{ "start": 6676, "end": 7103 }
class ____ Regression"; internal const string ShortName = "mlr"; /// <summary> /// <see cref="Options"/> for <see cref="LbfgsMaximumEntropyMulticlassTrainer"/> as used in /// <see cref="Microsoft.ML.StandardTrainersCatalog.LbfgsMaximumEntropy(MulticlassClassificationCatalog.MulticlassCl...
Logistic
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/UseCases/JwtAuthProviderNoCookiesTests.cs
{ "start": 7879, "end": 22425 }
class ____() : AppSelfHostBase(nameof(JwtAuthProviderTests), typeof(JwtServices).Assembly) { public virtual JwtAuthProvider JwtAuthProvider { get; set; } public override void Configure(Container container) { var dbFactory = new OrmLiteConnectionFactory(":memory:", SqliteDialect....
AppHost
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/SagaStateMachineTests/BaseClass_Specs.cs
{ "start": 260, "end": 1145 }
public class ____ { [Test] public async Task Should_initialize_all_states_and_events() { await using var provider = new ServiceCollection() .AddMassTransitTestHarness(x => { x.AddSagaStateMachine<HappyGoLuckyStateMachine, HappyG...
Using_a_base_state_machine
csharp
dotnet__orleans
test/Analyzers.Tests/AliasClashAttributeAnalyzerTest.cs
{ "start": 5249, "end": 5818 }
public interface ____ : {{grainInterface}} { [Alias("Void")] Task Void(int a); [Alias("Void")] Task Void(long a); } """; return VerifyHasDiagnostic(code); } /// <summary> /// Verifies that the analyzer allows different aliases for...
I
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Controls/ScrollPresenter/SnapPointWrapper.h.cs
{ "start": 572, "end": 1102 }
internal partial class ____<T> { private (double, double) m_actualApplicableZone = (double.NegativeInfinity, double.PositiveInfinity); private (double, double) m_actualImpulseApplicableZone = (double.NegativeInfinity, double.PositiveInfinity); private int m_combinationCount; private double m_ignoredValue = double.N...
SnapPointWrapper
csharp
nunit__nunit
src/NUnitFramework/testdata/WarningFixture.cs
{ "start": 15984, "end": 16179 }
public class ____ : WarningInSetUpOrTearDownFixture { [SetUp] public void SetUp() { Warn.Unless(2 + 2, Is.EqualTo(5)); } }
WarningInSetUpFails
csharp
dotnet__efcore
test/EFCore.SqlServer.FunctionalTests/TestUtilities/TestEnvironment.cs
{ "start": 269, "end": 14225 }
public static class ____ { public static IConfiguration Config { get; } = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("config.json", optional: true) .AddJsonFile("config.test.json", optional: true) .AddEnvironmentVariables() .Build() ...
TestEnvironment
csharp
dotnet__aspnetcore
src/Hosting/Hosting/test/WebHostTests.cs
{ "start": 41581, "end": 43622 }
public class ____ : IServer { public FakeServer() { Features = new FeatureCollection(); Features.Set<IServerAddressesFeature>(new ServerAddressesFeature()); } public IList<StartInstance> StartInstances { get; } = new List<StartInstance>(); public Fun...
FakeServer
csharp
MassTransit__MassTransit
src/MassTransit/Middleware/OutboxConsumeContext.cs
{ "start": 1219, "end": 1381 }
public interface ____<out TMessage> : OutboxConsumeContext, ConsumeContext<TMessage> where TMessage : class { } }
OutboxConsumeContext
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL.Tests/Bugs/BugWithCustomScalarsInDirective.cs
{ "start": 835, "end": 1053 }
public class ____ : ObjectGraphType { public BugWithCustomScalarsInDirectiveQuery() { Name = "Query"; Field<StringGraphType>("str").Resolve(_ => "aaa"); } }
BugWithCustomScalarsInDirectiveQuery
csharp
AvaloniaUI__Avalonia
tests/Avalonia.RenderTests/Media/GeometryDrawingTests.cs
{ "start": 79, "end": 1287 }
public class ____ : TestBase { public GeometryDrawingTests() : base(@"Media\GeometryDrawing") { } private static GeometryDrawing CreateGeometryDrawing() { GeometryDrawing geometryDrawing = new GeometryDrawing(); EllipseGeometry ellipse = n...
GeometryDrawingTests
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types.Mutations/ThrowHelper.cs
{ "start": 94, "end": 2358 }
internal static class ____ { public static SchemaException CannotResolvePayloadType() => new( SchemaErrorBuilder.New() .SetMessage(ThrowHelper_CannotResolvePayloadType) .Build()); public static SchemaException NonMutationFields(IEnumerable<MutationContextData...
ThrowHelper
csharp
App-vNext__Polly
src/Polly.Core/Fallback/FallbackResiliencePipelineBuilderExtensions.cs
{ "start": 233, "end": 2138 }
public static class ____ { /// <summary> /// Adds a fallback resilience strategy with the provided options to the builder. /// </summary> /// <typeparam name="TResult">The result type.</typeparam> /// <param name="builder">The resilience pipeline builder.</param> /// <param name="options">The op...
FallbackResiliencePipelineBuilderExtensions
csharp
MonoGame__MonoGame
MonoGame.Framework/Platform/Web/WebGamePlatform.cs
{ "start": 510, "end": 2703 }
class ____ : GamePlatform, IHasCallback { private WebGameWindow _view; public WebGamePlatform(Game game) : base(game) { Window = new WebGameWindow(this); _view = (WebGameWindow)Window; } public virtual void Callback() { ...
WebGamePlatform
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Api.Analyzers/test/TestFiles/SymbolApiResponseMetadataProviderTest/GetResponseMetadataTests.cs
{ "start": 553, "end": 2477 }
public class ____ : ControllerBase { [Produces(typeof(Person))] public IActionResult ActionWithProducesAttribute(int id) => null; [ProducesResponseType(201)] public IActionResult ActionWithProducesResponseType_StatusCodeInConstructor() => null; [ProducesResponseType(typeof(...
GetResponseMetadata_ControllerActionWithAttributes
csharp
spectreconsole__spectre.console
src/Spectre.Console.Tests/Unit/Widgets/GridTests.cs
{ "start": 645, "end": 1953 }
public sealed class ____ { [Fact] public void Should_Throw_If_Rows_Are_Null() { // Given var grid = new Grid(); // When var result = Record.Exception(() => grid.AddRow(null!)); // Then result.ShouldBeOfType<ArgumentNul...
TheAddRowMethod
csharp
dotnet__machinelearning
src/Microsoft.ML.Data/Commands/ShowSchemaCommand.cs
{ "start": 914, "end": 12320 }
public sealed class ____ : DataCommand.ArgumentsBase { [Argument(ArgumentType.AtMostOnce, HelpText = "Show all steps in transform chain", ShortName = "steps")] public bool ShowSteps; [Argument(ArgumentType.AtMostOnce, HelpText = "Show the metadata types", ShortName = "metaTy...
Arguments
csharp
dotnet__maui
src/Compatibility/Material/src/Tizen/MaterialActivityIndicatorRenderer.cs
{ "start": 411, "end": 721 }
public class ____ : ActivityIndicatorRenderer { protected override void OnElementChanged(ElementChangedEventArgs<ActivityIndicator> e) { if (Control == null) { SetNativeControl(new MActivityIndicator(Forms.NativeParent)); } base.OnElementChanged(e); } } }
MaterialActivityIndicatorRenderer
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue26534.cs
{ "start": 245, "end": 1638 }
public partial class ____ : ContentPage { public Issue26534() { Grid gridView = new Grid(); var listView = new ListView(); ObservableCollection<GroupedVeggieModel> grouped = CreateData(); listView.ItemsSource = grouped; listView.AutomationId = "listview"; listView.IsGroupingEnabled = true; l...
Issue26534
csharp
dotnet__orleans
src/Orleans.Core/Manifest/GrainBindings.cs
{ "start": 388, "end": 1308 }
public class ____ { /// <summary> /// Initializes a new instance of the <see cref="GrainBindings"/> class. /// </summary> /// <param name="grainType">The grain type.</param> /// <param name="bindings">The bindings for the specified grain type.</param> public GrainBind...
GrainBindings
csharp
dotnet__orleans
src/Orleans.TestingHost/TestClusterPortAllocator.cs
{ "start": 405, "end": 5164 }
public class ____ : ITestClusterPortAllocator { private bool _disposed; private readonly object _lockObj = new(); private readonly Dictionary<int, string> _allocatedPorts = []; /// <inheritdoc /> public (int, int) AllocateConsecutivePortPairs(int numPorts = 5) { // Evaluate current syst...
TestClusterPortAllocator
csharp
protobuf-net__protobuf-net
src/protobuf-net.Core/Serializers/IProtoSerializerT.cs
{ "start": 11202, "end": 11567 }
public interface ____<[DynamicallyAccessedMembers(DynamicAccess.ContractType)] T> { /// <summary> /// Gets the actual serializer for the type /// </summary> public ISerializer<T> Serializer { get; } } /// <summary> /// Abstract API capable of measuring values without wri...
ISerializerProxy
csharp
unoplatform__uno
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml.Controls/TextCompositionEndedEventArgs.cs
{ "start": 301, "end": 1800 }
public partial class ____ { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ internal TextCompositionEndedEventArgs() { } #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ [global::Uno.NotImpleme...
TextCompositionEndedEventArgs
csharp
dotnet__orleans
test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithDifferentAccessModifiers.verified.cs
{ "start": 5173, "end": 6853 }
public sealed class ____ : global::Orleans.Serialization.Cloning.IDeepCopier<global::TestProject.PublicDemoData>, global::Orleans.Serialization.Cloning.IBaseCopier<global::TestProject.PublicDemoData> { [global::System.Runtime.CompilerServices.MethodImplAttribute(global::System.Runtime.CompilerServices.Metho...
Copier_PublicDemoData
csharp
MiniProfiler__dotnet
tests/MiniProfiler.Tests/ProtobufSerializationTests.cs
{ "start": 104, "end": 1406 }
public class ____ : BaseTest { public ProtobufSerializationTests(ITestOutputHelper output) : base(output) { } [Fact] public void Simple() { var mp = GetBasicProfiler(); mp.Increment(); // 1 ms mp.Stop(); var mp1 = MiniProfiler.Current...
ProtobufSerializationTests
csharp
EventStore__EventStore
src/KurrentDB.Core/Messages/TcpClientMessageDto.cs
{ "start": 9897, "end": 10985 }
partial class ____ { public CreatePersistentSubscription(string subscriptionGroupName, string eventStreamId, bool resolveLinkTos, long startFrom, int messageTimeoutMilliseconds, bool recordStatistics, int liveBufferSize, int readBatchSize, int bufferSize, int maxRetryCount, bool preferRoundRobin, int checkpointAfterTi...
CreatePersistentSubscription
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 119718, "end": 119935 }
public class ____ { public int Id { get; set; } public RelatedEntity552 ParentEntity { get; set; } public IEnumerable<RelatedEntity554> ChildEntities { get; set; } }
RelatedEntity553
csharp
dotnet__orleans
src/api/Orleans.Serialization/Orleans.Serialization.cs
{ "start": 249820, "end": 251629 }
partial class ____<T> : global::Orleans.Serialization.Codecs.IFieldCodec<global::Orleans.Serialization.Codecs.ImmutableListSurrogate<T>>, global::Orleans.Serialization.Codecs.IFieldCodec, global::Orleans.Serialization.Serializers.IValueSerializer<global::Orleans.Serialization.Codecs.ImmutableListSurrogate<T>>, global:...
Codec_ImmutableListSurrogate
csharp
dotnet__aspire
src/Aspire.Dashboard/ConsoleLogs/UrlParser.cs
{ "start": 335, "end": 2637 }
partial class ____ { private static readonly Regex s_urlRegEx = GenerateUrlRegEx(); public static bool TryParse(string? text, Func<string, string>? nonMatchFragmentCallback, [NotNullWhen(true)] out string? modifiedText) { if (text is not null) { var urlMatch = s_urlRegEx.Match(...
UrlParser
csharp
scriban__scriban
src/Scriban/ScribanAsync.generated.cs
{ "start": 91405, "end": 91962 }
partial class ____ { public override async ValueTask<object> EvaluateAsync(TemplateContext context) { if (Operator == ScriptUnaryOperator.FunctionAlias) { return await context.EvaluateAsync(Right, true).ConfigureAwait(false); } va...
ScriptUnaryExpression
csharp
ServiceStack__ServiceStack
ServiceStack/src/ServiceStack.Common/Script/ScriptScopeContext.cs
{ "start": 177, "end": 1193 }
public struct ____ { public PageResult PageResult { get; } public SharpPage Page => PageResult.Page; public SharpCodePage CodePage => PageResult.CodePage; public ScriptContext Context => PageResult.Context; public Dictionary<string, object> ScopedParams { get; internal set; } public Stream Outpu...
ScriptScopeContext
csharp
dotnetcore__FreeSql
FreeSql.Tests/FreeSql.Tests/Issues/283.cs
{ "start": 150, "end": 6658 }
public class ____ { [Fact] public void SelectTest() { IFreeSql db = g.sqlserver; db.Transaction(() => { db.Delete<BuildDictionary>().Where("1=1").ExecuteAffrows(); db.Delete<Build2>().Where("1=1").ExecuteAffrows(); ...
_283
csharp
dotnet__aspnetcore
src/Middleware/Diagnostics/test/FunctionalTests/ExceptionHandlerSampleTest.cs
{ "start": 241, "end": 1034 }
public class ____ : IClassFixture<TestFixture<ExceptionHandlerSample.Startup>> { public ExceptionHandlerSampleTest(TestFixture<ExceptionHandlerSample.Startup> fixture) { Client = fixture.Client; } public HttpClient Client { get; } [Fact] public async Task ExceptionHandlerPage_ShowsErro...
ExceptionHandlerSampleTest
csharp
MonoGame__MonoGame
MonoGame.Framework.Content.Pipeline/Utilities/Vector4Converter.cs
{ "start": 555, "end": 2518 }
class ____ : IVector4Converter<byte>, IVector4Converter<short>, IVector4Converter<int>, IVector4Converter<float>, IVector4Converter<Color>, IVector4Converter<Vector4> { Vector4 IVector4Converter<byte>.ToVector4(byte value) { var f = (float)...
Vector4Converter
csharp
dotnet__machinelearning
src/Microsoft.ML.Data/Transforms/ValueToKeyMappingTransformerImpl.cs
{ "start": 429, "end": 749 }
partial class ____ { /// <summary> /// These are objects shared by both the scalar and vector implementations of <see cref="Trainer"/> /// to accumulate individual scalar objects, and facilitate the creation of a <see cref="TermMap"/>. /// </summary>
ValueToKeyMappingTransformer
csharp
dotnet__orleans
test/Grains/TestGrainInterfaces/IKeyExtensionTestGrain.cs
{ "start": 43, "end": 223 }
public interface ____ : IGrainWithGuidCompoundKey { Task<IKeyExtensionTestGrain> GetGrainReference(); Task<string> GetActivationId(); } }
IKeyExtensionTestGrain
csharp
icsharpcode__ILSpy
ICSharpCode.ILSpyX/TreeView/PlatformAbstractions/ITreeNodeImagesProvider.cs
{ "start": 62, "end": 138 }
public interface ____ { object Assembly { get; } } }
ITreeNodeImagesProvider
csharp
smartstore__Smartstore
src/Smartstore.Core/Platform/DataExchange/Domain/ExportEnums.cs
{ "start": 452, "end": 684 }
public enum ____ { TierPrice = 0, ProductVariantAttributeValue, ProductVariantAttributeCombination } /// <summary> /// Represents export deployment types. /// </summary>
RelatedEntityType
csharp
NLog__NLog
src/NLog/ILogger.cs
{ "start": 1844, "end": 69162 }
public partial interface ____ #pragma warning disable CS0618 // Type or member is obsolete : ISuppress , ILoggerBase #pragma warning restore CS0618 // Type or member is obsolete { /// <summary> /// Gets a value indicating whether logging is enabled for the <c>Trace</c> level. ...
ILogger
csharp
EventStore__EventStore
src/KurrentDB.Core/Bus/IHandle.cs
{ "start": 433, "end": 760 }
public interface ____<in T> : IAsyncHandle<T> where T : Message { void Handle(T message); ValueTask IAsyncHandle<T>.HandleAsync(T message, CancellationToken token) { var task = ValueTask.CompletedTask; try { Handle(message); } catch (Exception e) { task = ValueTask.FromException(e); } return task; ...
IHandle
csharp
bitwarden__server
src/Core/AdminConsole/OrganizationFeatures/Policies/Models/EmptyMetadataModel.cs
{ "start": 73, "end": 133 }
public record ____ : IPolicyMetadataModel { }
EmptyMetadataModel
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Bson/BsonUtils.cs
{ "start": 736, "end": 806 }
static class ____ BSON utility methods. /// </summary>
containing
csharp
unoplatform__uno
src/Uno.UWP/ApplicationModel/Package.Other.cs
{ "start": 192, "end": 4280 }
public partial class ____ { private const string PackageManifestName = "Package.appxmanifest"; private static Assembly? _entryAssembly; private string _displayName = ""; partial void InitializePlatform() { } internal static bool IsManifestInitialized { get; private set; } private bool GetInnerIsDevelopmentM...
Package
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/Issue25436.xaml.cs
{ "start": 369, "end": 805 }
public class ____ : ContentPage { public Issue25436Firstpage() { var button = new Button { Text = "Click here to navigate back", VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.Center }; button.Clicked += async (s, e) => await Shell.Current.GoToAsync("//login"); ...
Issue25436Firstpage
csharp
dotnet__orleans
src/Orleans.Serialization.NewtonsoftJson/NewtonsoftJsonCodecOptions.cs
{ "start": 153, "end": 804 }
public class ____ { /// <summary> /// Gets or sets the <see cref="JsonSerializerSettings"/>. /// </summary> public JsonSerializerSettings SerializerSettings { get; set; } /// <summary> /// Gets or sets a delegate used to determine if a type is supported by the JSON serializer for serialization ...
NewtonsoftJsonCodecOptions
csharp
abpframework__abp
framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/Modeling/NamedEntityConfigurer.cs
{ "start": 121, "end": 682 }
public class ____ { /// <summary> /// Name of the configurer. /// </summary> public string Name { get; set; } /// <summary> /// Action to configure the given <see cref="EntityTypeBuilder"/>. /// </summary> public Action<EntityTypeBuilder> ConfigureAction { get; } public NamedEn...
NamedEntityConfigurer
csharp
App-vNext__Polly
src/Polly/Retry/AsyncRetryTResultSyntax.cs
{ "start": 125, "end": 73068 }
public static class ____ { /// <summary> /// Builds an <see cref="AsyncRetryPolicy{TResult}"/> that will retry once. /// </summary> /// <typeparam name="TResult">The type of the result.</typeparam> /// <param name="policyBuilder">The policy builder.</param> /// <returns>The policy instance.</ret...
AsyncRetryTResultSyntax
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 61779, "end": 61996 }
public class ____ { public int Id { get; set; } public RelatedEntity285 ParentEntity { get; set; } public IEnumerable<RelatedEntity287> ChildEntities { get; set; } }
RelatedEntity286
csharp
microsoft__FASTER
cs/playground/AsyncStress/SerializedUpdaters.cs
{ "start": 662, "end": 1750 }
internal struct ____ : IUpdater<FasterKV<SpanByte, SpanByte>.UpsertAsyncResult<SpanByte, SpanByteAndMemory, Empty>> { public Status Update(ClientSession<SpanByte, SpanByte, SpanByte, SpanByteAndMemory, Empty, SpanByteFunctions> session, ref SpanByte key, ref SpanByte value) => sessio...
UpsertUpdater
csharp
AvaloniaUI__Avalonia
src/Avalonia.Controls/SplitView/SplitViewDisplayMode.cs
{ "start": 140, "end": 983 }
public enum ____ { /// <summary> /// Pane is displayed next to content, and does not auto collapse /// when tapped outside /// </summary> Inline, /// <summary> /// Pane is displayed next to content. When collapsed, pane is still /// visible according t...
SplitViewDisplayMode
csharp
bchavez__Bogus
Source/Bogus/Tokenizer.cs
{ "start": 252, "end": 6907 }
public static class ____ { public static ILookup<string, MustashMethod> MustashMethods; static Tokenizer() { RegisterMustashMethods(typeof(Faker)); } public static void RegisterMustashMethods(Type type) { MustashMethods = type.GetProperties() .Where(p => p.IsDefined(typeof(Regis...
Tokenizer
csharp
EventStore__EventStore
src/KurrentDB.Projections.Core.Tests/Services/feed_reader/feed_reader.cs
{ "start": 4979, "end": 5864 }
public class ____ : FeedReaderSpecification { protected override QuerySourcesDefinition GivenQuerySource() { return new QuerySourcesDefinition { AllStreams = true, AllEvents = true }; } protected override void When() { _feedReader.Start(); } [Test] public void publishes_subscribe_message() {...
when_starting
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Core/src/Formatters/MediaType.cs
{ "start": 453, "end": 12055 }
struct ____ { private static readonly StringSegment QualityParameter = new StringSegment("q"); private readonly ReadOnlyMediaTypeHeaderValue _mediaTypeHeaderValue; /// <summary> /// Initializes a <see cref="MediaType"/> instance. /// </summary> /// <param name="mediaType">The <see cref="strin...
MediaType
csharp
cake-build__cake
src/Cake.Common/Tools/VSTest/VSTestSettings.cs
{ "start": 391, "end": 4619 }
public sealed class ____ : ToolSettings { /// <summary> /// Gets or sets the settings filename to be used to control additional settings such as data collectors. /// </summary> public FilePath SettingsFile { get; set; } /// <summary> /// Gets or sets a value indicati...
VSTestSettings
csharp
dotnet__efcore
test/EFCore.Specification.Tests/Query/NorthwindNavigationsQueryTestBase.cs
{ "start": 330, "end": 36957 }
public abstract class ____<TFixture>(TFixture fixture) : QueryTestBase<TFixture>(fixture) where TFixture : NorthwindQueryFixtureBase<NoopModelCustomizer>, new() { protected NorthwindContext CreateContext() => Fixture.CreateContext(); protected virtual void ClearLog() { } [ConditionalTh...
NorthwindNavigationsQueryTestBase
csharp
RicoSuter__NSwag
src/NSwag.CodeGeneration/Models/IOperationModel.cs
{ "start": 506, "end": 762 }
public interface ____ { /// <summary>Gets the responses.</summary> IEnumerable<ResponseModelBase> Responses { get; } /// <summary>Gets Swagger operation's mime type.</summary> string Produces { get; } } }
IOperationModel
csharp
ChilliCream__graphql-platform
src/HotChocolate/Mutable/src/Types.Mutable/Collections/OutputFieldDefinitionCollection.cs
{ "start": 79, "end": 1092 }
public sealed class ____ : FieldDefinitionCollection<MutableOutputFieldDefinition> , IReadOnlyFieldDefinitionCollection<IOutputFieldDefinition> { public OutputFieldDefinitionCollection(ITypeSystemMember declaringMember) : base(declaringMember) { } IOutputFieldDefinition IReadOnlyList<IO...
OutputFieldDefinitionCollection
csharp
kgrzybek__modular-monolith-with-ddd
src/Modules/Payments/Infrastructure/AggregateStore/ICheckpointStore.cs
{ "start": 87, "end": 281 }
public interface ____ { long? GetCheckpoint(SubscriptionCode subscriptionCode); Task StoreCheckpoint(SubscriptionCode subscriptionCode, long checkpoint); } }
ICheckpointStore
csharp
smartstore__Smartstore
src/Smartstore.Modules/Smartstore.WebApi/Controllers/Content/MediaFoldersController.cs
{ "start": 568, "end": 11635 }
public class ____ : WebApiController<MediaFolder> { private readonly IFolderService _folderService; private readonly IMediaService _mediaService; public MediaFoldersController(IFolderService folderService, IMediaService mediaService) { _folderService = folderService; ...
MediaFoldersController
csharp
dotnetcore__WTM
src/WalkingTec.Mvvm.Mvc/BaseApiController.cs
{ "start": 775, "end": 12354 }
public abstract class ____ : ControllerBase, IBaseController { [JsonIgnore] [BindNever] public WTMContext Wtm { get; set; } [JsonIgnore] [BindNever] public Configs ConfigInfo { get => Wtm?.ConfigInfo; } [JsonIgnore] [BindNever] public Global...
BaseApiController
csharp
ServiceStack__ServiceStack
ServiceStack.OrmLite/tests/ServiceStack.OrmLite.Tests/SchemaTests.cs
{ "start": 291, "end": 724 }
public class ____(DialectContext context) : OrmLiteProvidersTestBase(context) { [OneTimeSetUp] public void OneTimeSetup() { // sqlite doesn't support schemas if (DialectFeatures.SchemaSupport) { using (var db = OpenDbConnection()) { db.CreateSc...
SchemaTests
csharp
dotnet__efcore
test/EFCore.SqlServer.HierarchyId.Tests/SqlServerHierarchyIdApiConsistencyTest.cs
{ "start": 254, "end": 802 }
public class ____( SqlServerHierarchyIdApiConsistencyTest.SqlServerHierarchyIdApiConsistencyFixture fixture) : ApiConsistencyTestBase< SqlServerHierarchyIdApiConsistencyTest.SqlServerHierarchyIdApiConsistencyFixture>(fixture) { protected override void AddServices(ServiceCollection serviceCollection) ...
SqlServerHierarchyIdApiConsistencyTest
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.Bson.Tests/Serialization/Conventions/ObjectSerializerAllowedTypesConventionTests.cs
{ "start": 964, "end": 17230 }
private class ____ { public object ObjectProp { get; set; } public object[] ArrayOfObjectProp { get; set; } public object[][] ArrayOfArrayOfObjectProp { get; set; } public TestClass RecursiveProp { get; set; } } [Fact] public void Apply_sh...
TestClass
csharp
unoplatform__uno
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml/Thickness.cs
{ "start": 252, "end": 645 }
public partial struct ____ { // Forced skipping of method Microsoft.UI.Xaml.Thickness.Thickness() // Skipping already declared field Microsoft.UI.Xaml.Thickness.Left // Skipping already declared field Microsoft.UI.Xaml.Thickness.Top // Skipping already declared field Microsoft.UI.Xaml.Thickness.Right // Skip...
Thickness
csharp
dotnet__efcore
test/EFCore.Specification.Tests/JsonTypesTestBase.cs
{ "start": 15875, "end": 16420 }
protected class ____ { public Enum32 Enum32 { get; set; } } [ConditionalTheory, InlineData((long)Enum64.Min, """{"Prop":-9223372036854775808}"""), InlineData((long)Enum64.Max, """{"Prop":9223372036854775807}"""), InlineData((long)Enum64.Default, """{"Prop":0}"""), InlineData((long)Enum64....
Enum32Type
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Composition/ExpressionAnimation.cs
{ "start": 297, "end": 1446 }
public partial class ____ : global::Windows.UI.Composition.CompositionAnimation { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ internal ExpressionAnimation() { } #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __...
ExpressionAnimation
csharp
dotnet__aspire
src/Aspire.Dashboard/Otlp/Model/OtlpSpan.cs
{ "start": 9843, "end": 10023 }
public record ____ FieldValues(string? Value1, string? Value2 = null) { public static implicit operator FieldValues(string? value) => new FieldValues(value); } }
struct
csharp
pythonnet__pythonnet
src/testing/indexertest.cs
{ "start": 4657, "end": 4928 }
public class ____ : IndexerBase { public DoubleIndexerTest() : base() { } public string this[double index] { get { return GetValue(index); } set { t[index] = value; } } }
DoubleIndexerTest
csharp
ServiceStack__ServiceStack
ServiceStack.OrmLite/tests/ServiceStack.OrmLite.Oracle.Tests/OracleParamTests.cs
{ "start": 45125, "end": 45264 }
public class ____ { public int Id { get; set; } public byte[] Data { get; set; } }
ParamByteBo
csharp
ChilliCream__graphql-platform
src/HotChocolate/Fusion-vnext/test/Fusion.AspNetCore.Tests/SharedPathTests.cs
{ "start": 19088, "end": 19184 }
public class ____ { public string Schema3 => "schema3"; } } }
Viewer
csharp
dotnet__aspnetcore
src/Grpc/Interop/test/InteropTests/Helpers/ClientProcess.cs
{ "start": 280, "end": 2663 }
public class ____ : IDisposable { private readonly Process _process; private readonly ProcessEx _processEx; private readonly TaskCompletionSource _startTcs; private readonly StringBuilder _output; private readonly object _outputLock = new object(); public ClientProcess(ITestOutputHelper output,...
ClientProcess
csharp
dotnetcore__Util
test/Util.Domain.Tests/Compare/KeyListComparatorTest.cs
{ "start": 209, "end": 3157 }
public class ____ { /// <summary> /// 键列表比较器 /// </summary> private readonly KeyListComparator<Guid> _comparator; /// <summary> /// 测试初始化 /// </summary> public KeyListComparatorTest() { _comparator = new KeyListComparator<Guid>(); } /// <summary> /// 测试列表比较 - 验证集合为空...
KeyListComparatorTest
csharp
dotnet__BenchmarkDotNet
src/BenchmarkDotNet/Exporters/FullNameProvider.cs
{ "start": 337, "end": 7102 }
public static class ____ { private static readonly IReadOnlyDictionary<Type, string> Aliases = new Dictionary<Type, string> { { typeof(byte), "byte" }, { typeof(sbyte), "sbyte" }, { typeof(short), "short" }, { typeof(ushort), "ushort" }, { ...
FullNameProvider
csharp
Humanizr__Humanizer
src/Humanizer/Truncation/DynamicLengthAndPreserveWordsTruncator.cs
{ "start": 353, "end": 3789 }
class ____ : ITruncator { [return: NotNullIfNotNull(nameof(value))] public string? Truncate(string? value, int length, string? truncationString, TruncateFrom truncateFrom = TruncateFrom.Right) { if (value == null) { return null; } if (value.Length == 0) {...
DynamicLengthAndPreserveWordsTruncator
csharp
microsoft__PowerToys
src/modules/registrypreview/RegistryPreviewUILib/Controls/HexBox/DataFormat.cs
{ "start": 588, "end": 854 }
public enum ____ { /// <summary> /// Display the data in decimal format. /// </summary> Decimal, /// <summary> /// Display the data in hexadecimal format. /// </summary> Hexadecimal, } }
DataFormat
csharp
ServiceStack__ServiceStack
ServiceStack.Text/src/ServiceStack.Text/Diagnostics.cs
{ "start": 188, "end": 494 }
public class ____ { private static readonly Diagnostics Instance = new(); private Diagnostics(){} private bool includeStackTrace; public static bool IncludeStackTrace { get => Instance.includeStackTrace; set => Instance.includeStackTrace = value; }
Diagnostics
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IObjectTypeDescriptor~1.cs
{ "start": 2645, "end": 2820 }
interface ____.</typeparam> IObjectTypeDescriptor<TRuntimeType> Implements<TInterface>() where TInterface : InterfaceType; /// <summary> /// Specifies an
type
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/Issue2004.cs
{ "start": 3196, "end": 6321 }
public class ____ : ContentPage { public AddressListView() { ListView listView = new ListView() { RowHeight = 75 }; listView.SetBinding(ListView.ItemsSourceProperty, "UnitList"); listView.ItemTemplate = new DataTemplate(() => { ViewCell cell = new ViewCell(); cell.View = new...
AddressListView
csharp
aspnetboilerplate__aspnetboilerplate
src/Abp.ZeroCore.NHibernate/Zero/FluentMigrator/Migrations/_20150811_02_CreateAbpAuditLogsTable.cs
{ "start": 140, "end": 1058 }
public class ____ : AutoReversingMigration { public override void Up() { Create.Table("AbpAuditLogs") .WithIdAsInt64() .WithTenantIdAsNullable() .WithNullableUserId() .WithColumn("ServiceName").AsString(256).Nullable() ...
_20150811_02_CreateAbpAuditLogsTable
csharp
bitwarden__server
src/Infrastructure.EntityFramework/Models/CollectionGroup.cs
{ "start": 167, "end": 333 }
public class ____ : Core.Entities.CollectionGroup { public virtual Collection Collection { get; set; } public virtual Group Group { get; set; } }
CollectionGroup
csharp
dotnet__maui
src/Controls/tests/SourceGen.UnitTests/InitializeComponent/CircularReferenceExtension.cs
{ "start": 286, "end": 1263 }
public class ____ : SourceGenXamlInitializeComponentTestBase { [Fact] public async Task CircularReferenceWithCustomViewExpandableContent() { // Test based on https://github.com/dotnet/maui/issues/32623 // // This test reproduces the infinite loop that occurs when x:Reference is used // inside nested DataTemp...
CircularReferenceExtension
csharp
jellyfin__jellyfin
MediaBrowser.Controller/Sorting/IBaseItemComparer.cs
{ "start": 224, "end": 410 }
public interface ____ : IComparer<BaseItem?> { /// <summary> /// Gets the comparer type. /// </summary> ItemSortBy Type { get; } } }
IBaseItemComparer
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 1279033, "end": 1279583 }
public partial interface ____ { public global::System.String ReferenceId { get; } public global::ChilliCream.Nitro.CommandLine.Cloud.Client.ICreateEnvironmentCommandMutation_PushWorkspaceChanges_Changes_Error? Error { get; } public global::ChilliCream.Nitro.CommandLine.Cloud.Client.ICreateEn...
ICreateEnvironmentCommandMutation_PushWorkspaceChanges_Changes
csharp
abpframework__abp
modules/blogging/src/Volo.Blogging.Web/BloggingUrlOptions.cs
{ "start": 930, "end": 1297 }
public class ____ { /// <summary> /// Determines whether to enable single blog mode by removing the blog name from the routing. /// When enabled, only a single blog is allowed within the module. /// </summary> public bool Enabled { get; set; } public string B...
SingleBlogModeOptions
csharp
duplicati__duplicati
Duplicati/WebserverCore/Abstractions/ISettingsService.cs
{ "start": 1228, "end": 2615 }
public interface ____ { /// <summary> /// Gets the current server settings. /// </summary> /// <returns>The current server settings.</returns> ServerSettings GetSettings(); /// <summary> /// Gets the current server settings with sensitive information masked. /// </summary> /// <retu...
ISettingsService
csharp
bitwarden__server
src/Infrastructure.EntityFramework/Billing/Models/OrganizationInstallation.cs
{ "start": 288, "end": 512 }
public class ____ : Core.Billing.Organizations.Entities.OrganizationInstallation { public virtual Installation Installation { get; set; } public virtual Organization Organization { get; set; } }
OrganizationInstallation
csharp
microsoft__semantic-kernel
dotnet/src/VectorData/Milvus/MilvusMemoryStore.cs
{ "start": 15342, "end": 17475 }
record ____ records) { var metadata = record.Metadata; if (idString.Length > 0) { idString.Append(','); } idString.Append('"').Append(metadata.Id).Append('"'); isReferenceData.Add(metadata.IsReference); exter...
in
csharp
MonoGame__MonoGame
MonoGame.Framework/Platform/Graphics/OpenGL.cs
{ "start": 3144, "end": 3259 }
internal enum ____ { Renderbuffer = 0x8D41, RenderbufferExt = 0x8D41, }
RenderbufferTarget
csharp
unoplatform__uno
src/Uno.UWP/ApplicationModel/Contacts/ContactPicker.Interop.wasm.cs
{ "start": 187, "end": 526 }
partial class ____ { private const string JsType = "globalThis.Windows.ApplicationModel.Contacts.ContactPicker"; [JSImport($"{JsType}.isSupported")] internal static partial bool IsSupported(); [JSImport($"{JsType}.pickContacts")] internal static partial Task<string> PickContactsAsync(bool multiple);...
NativeMethods
csharp
PrismLibrary__Prism
src/Prism.Core/Navigation/Regions/RegionViewRegistryExtensions.cs
{ "start": 216, "end": 1628 }
public static class ____ { /// <summary> /// Registers a delegate that can be used to retrieve the content associated with a region name. /// </summary> /// <param name="viewRegistry">The <see cref="IRegionViewRegistry"/> instance.</param> /// <param name="regionName">Region ...
RegionViewRegistryExtensions
csharp
bitwarden__server
src/Core/Settings/GlobalSettings.cs
{ "start": 26694, "end": 26914 }
public class ____ { public int CiphersLimit { get; set; } public int CollectionRelationshipsLimit { get; set; } public int CollectionsLimit { get; set; } }
ImportCiphersLimitationSettings
csharp
unoplatform__uno
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml/AdaptiveTrigger.cs
{ "start": 252, "end": 1276 }
public partial class ____ : global::Microsoft.UI.Xaml.StateTriggerBase { // Skipping already declared property MinWindowWidth // Skipping already declared property MinWindowHeight // Skipping already declared property MinWindowHeightProperty // Skipping already declared property MinWindowWidthProperty // Ski...
AdaptiveTrigger
csharp
MassTransit__MassTransit
tests/MassTransit.Analyzers.Tests/Helpers/CodeFixVerifier.Helper.cs
{ "start": 517, "end": 4085 }
partial class ____ : DiagnosticVerifier { /// <summary> /// Apply the inputted CodeAction to the inputted document. /// Meant to be used to apply codefixes. /// </summary> /// <param name="document">The Document to apply the fix on</param> /// <param name="codeAction...
CodeFixVerifier
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 76101, "end": 76318 }
public class ____ { public int Id { get; set; } public RelatedEntity351 ParentEntity { get; set; } public IEnumerable<RelatedEntity353> ChildEntities { get; set; } }
RelatedEntity352
csharp
dotnet__extensions
test/Libraries/Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes.Tests/Windows/AcceptanceTest.cs
{ "start": 804, "end": 8162 }
public class ____ { [Fact] public async Task WindowsContainerSnapshotProvider_MeasuredWithKubernetesMetadata() { const ulong LimitsMemory = 2_000; const ulong LimitsCpu = 2_000; // 2 cores in millicores const ulong RequestsMemory = 1_000; const ulong RequestsCpu = 1_000; // 1...
AcceptanceTest
csharp
dotnetcore__Util
src/Util.Ui/Razor/Internal/IPartViewPathFinder.cs
{ "start": 79, "end": 347 }
public interface ____ { /// <summary> /// 查找分部视图的路径 /// </summary> /// <param name="viewPath">主视图路径</param> /// <param name="partViewName">分部视图名称, partial 标签的 name 属性</param> string Find( string viewPath, string partViewName ); }
IPartViewPathFinder
csharp
dotnet__maui
src/Controls/src/Core/Handlers/Items2/iOS/HeightConstrainedTemplatedCell2.cs
{ "start": 158, "end": 1344 }
partial class ____ : TemplatedCell2 { [Export("initWithFrame:")] [Microsoft.Maui.Controls.Internals.Preserve(Conditional = true)] public HeightConstrainedTemplatedCell2(CGRect frame) : base(frame) { } // public override void ConstrainTo(CGSize constraint) // { // ClearConstraints(); // Constraine...
HeightConstrainedTemplatedCell2
csharp
abpframework__abp
modules/openiddict/app/OpenIddict.Demo.Server/EntityFrameworkCore/ServerDataSeedContributor.cs
{ "start": 248, "end": 9387 }
public class ____ : IDataSeedContributor, ITransientDependency { private readonly ICurrentTenant _currentTenant; private readonly IOpenIddictApplicationManager _applicationManager; private readonly IOpenIddictScopeManager _scopeManager; public ServerDataSeedContributor( ICurrentTenant currentTe...
ServerDataSeedContributor