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 | EventStore__EventStore | src/SchemaRegistry/KurrentDB.SchemaRegistry.Tests/Wait.cs | {
"start": 225,
"end": 1942
} | static class ____ {
static readonly TimeSpan DefaultDelay = TimeSpan.FromMilliseconds(100);
static readonly Action? DefaultOnTimeout = () => throw new TimeoutException();
static readonly TimeSpan DefaultTimeout = TimeSpan.FromSeconds(60);
public static Task Until(Func<Task<bool>> predicate, Time... | Wait |
csharp | dotnet__aspnetcore | src/Mvc/test/Mvc.FunctionalTests/ApiExplorerTest.cs | {
"start": 67388,
"end": 67538
} | private class ____
{
public string MediaType { get; set; }
public string FormatterType { get; set; }
}
}
| ApiExplorerRequestFormat |
csharp | CommunityToolkit__dotnet | tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn4001.UnitTests/Test_UnsupportedRoslynVersionForPartialPropertyAnalyzer.cs | {
"start": 397,
"end": 733
} | public class ____
{
[TestMethod]
public async Task UnsupportedRoslynVersionForPartialPropertyAnalyzer_Warns()
{
const string source = """
using CommunityToolkit.Mvvm.ComponentModel;
namespace MyApp
{
| Test_UnsupportedRoslynVersionForPartialPropertyAnalyzer |
csharp | MassTransit__MassTransit | src/MassTransit/DependencyInjection/Configuration/DependencyInjectionActivityRegistrationExtensions.cs | {
"start": 5473,
"end": 5638
} | interface ____
{
IActivityRegistration Register(IServiceCollection collection, IContainerRegistrar registrar);
}
| IActivityRegistrar |
csharp | AvaloniaUI__Avalonia | tests/Avalonia.Base.UnitTests/AvaloniaObjectTests_Coercion.cs | {
"start": 13619,
"end": 14380
} | private class ____ : Control
{
public static readonly StyledProperty<int> FooProperty =
AvaloniaProperty.Register<Control1, int>(
"Foo",
defaultValue: 11,
coerce: CoerceFoo);
public int Foo
{
... | Control1 |
csharp | dotnet__maui | src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellToolbarTracker.cs | {
"start": 22413,
"end": 24255
} | class ____ : DrawerArrowDrawable
{
public Drawable IconBitmap { get; set; }
public string Text { get; set; }
public Color TintColor { get; set; }
public ImageSource IconBitmapSource { get; set; }
float _defaultSize;
Color _pressedBackgroundColor => TintColor.AddLuminosity(-.12f);//<item name="highl... | FlyoutIconDrawerDrawable |
csharp | MapsterMapper__Mapster | src/Mapster.Tests/WhenUsingDestinationValue.cs | {
"start": 1992,
"end": 2368
} | public class ____
{
public long Id { get; set; }
public string DocumentNumber { get; set; }
public string SupplierName { get; set; }
public string SupplierCompany { get; set; }
public IEnumerable<int> Numbers { get; set; }
public ICollectio... | InvoiceDto |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.Devices.Geolocation/VisitStateChange.cs | {
"start": 265,
"end": 825
} | public enum ____
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
TrackingLost = 0,
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
Arrived = 1,
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || I... | VisitStateChange |
csharp | dotnet__maui | src/Essentials/src/SecureStorage/SecureStorage.shared.cs | {
"start": 201,
"end": 1318
} | public interface ____
{
/// <summary>
/// Gets and decrypts the value for a given key.
/// </summary>
/// <param name="key">The key to retrieve the value for.</param>
/// <returns>The decrypted string value or <see langword="null"/> if a value was not found.</returns>
Task<string?> GetAsync(string key);
... | ISecureStorage |
csharp | MaterialDesignInXAML__MaterialDesignInXamlToolkit | src/MaterialDesignThemes.Wpf/ExpanderAssist.cs | {
"start": 139,
"end": 4018
} | public static class ____
{
private static readonly Thickness DefaultHorizontalHeaderPadding = new(24, 12, 24, 12);
private static readonly Thickness DefaultVerticalHeaderPadding = new(12, 24, 12, 24);
#region AttachedProperty : HorizontalHeaderPaddingProperty
public static readonly DependencyProperty H... | ExpanderAssist |
csharp | ChilliCream__graphql-platform | src/HotChocolate/Core/src/Types.Abstractions/Types/TypeComparison.cs | {
"start": 100,
"end": 316
} | public enum ____
{
/// <summary>
/// Compare types by reference.
/// </summary>
Reference = 0,
/// <summary>
/// Compare types structurally.
/// </summary>
Structural = 1
}
| TypeComparison |
csharp | nuke-build__nuke | source/Nuke.GlobalTool/Rewriting/Cake/TargetDefinitionRewriter.cs | {
"start": 405,
"end": 4354
} | internal class ____ : SafeSyntaxRewriter
{
public override SyntaxNode VisitInvocationExpression(InvocationExpressionSyntax node)
{
node = (InvocationExpressionSyntax) base.VisitInvocationExpression(node).NotNull();
if (node.Expression is IdentifierNameSyntax identifierName &&
identi... | TargetDefinitionRewriter |
csharp | dotnet__aspnetcore | src/Middleware/Diagnostics/src/ExceptionHandler/ExceptionHandlerSuppressDiagnosticsContext.cs | {
"start": 320,
"end": 373
} | record ____ for an exception.
/// </summary>
| diagnostics |
csharp | dotnet__orleans | test/NonSilo.Tests/ClientBuilderTests.cs | {
"start": 428,
"end": 1292
} | public class ____ : IGatewayListProvider
{
public TimeSpan MaxStaleness => throw new NotImplementedException();
public bool IsUpdatable => throw new NotImplementedException();
public Task<IList<Uri>> GetGateways()
{
throw new NotImplementedException();
}
... | NoOpGatewaylistProvider |
csharp | ServiceStack__ServiceStack | ServiceStack.OrmLite/tests/ServiceStack.OrmLite.Tests/OrmLiteComplexTypesTests.cs | {
"start": 281,
"end": 3994
} | public class ____(DialectContext context) : OrmLiteProvidersTestBase(context)
{
[Test]
public void Can_insert_into_ModelWithComplexTypes_table()
{
using (var db = OpenDbConnection())
{
db.CreateTable<ModelWithComplexTypes>(true);
var row = ModelWithComplexTypes.Creat... | OrmLiteComplexTypesTests |
csharp | dotnetcore__Util | src/Util.Ui.NgZorro/Enums/DividerType.cs | {
"start": 75,
"end": 293
} | public enum ____ {
/// <summary>
/// 水平
/// </summary>
[Description( "horizontal" )]
Horizontal,
/// <summary>
/// 垂直
/// </summary>
[Description( "vertical" )]
Vertical
} | DividerType |
csharp | icsharpcode__ILSpy | ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs | {
"start": 1476,
"end": 2290
} | sealed class ____
{
readonly ICompilation compilation;
private CSharpOperators(ICompilation compilation)
{
this.compilation = compilation;
InitParameterArrays();
}
/// <summary>
/// Gets the CSharpOperators instance for the specified <see cref="ICompilation"/>.
/// This will make use of the conte... | CSharpOperators |
csharp | dotnet__aspire | src/Aspire.Cli/Utils/ConsoleActivityLogger.cs | {
"start": 2572,
"end": 12307
} | public enum ____
{
InProgress,
Success,
Warning,
Failure,
Info
}
public void StartTask(string taskKey, string? startingMessage = null)
{
lock (_lock)
{
// Initialize step state as InProgress if first time seen
if (!_stepSta... | ActivityState |
csharp | jellyfin__jellyfin | MediaBrowser.Controller/Entities/ICollectionFolder.cs | {
"start": 459,
"end": 564
} | public interface ____
{
bool EnableUserSpecificView { get; }
}
| ISupportsUserSpecificView |
csharp | dotnet__maui | src/Core/src/Platform/Android/MauiBoxView.cs | {
"start": 102,
"end": 221
} | public class ____ : PlatformGraphicsView
{
public MauiBoxView(Context? context) : base(context)
{
}
}
} | MauiBoxView |
csharp | getsentry__sentry-dotnet | test/Sentry.Extensions.Logging.Tests/SentryLoggerTests.cs | {
"start": 118,
"end": 12585
} | private class ____
{
public string CategoryName { get; set; } = "SomeApp";
public IHub Hub { get; set; } = Substitute.For<IHub>();
public SentryLoggingOptions Options { get; set; } = new();
public Scope Scope { get; } = new(new SentryOptions());
public Fixture()
{
... | Fixture |
csharp | dotnet__tye | src/Microsoft.Tye.Core/DeploymentKind.cs | {
"start": 235,
"end": 323
} | public enum ____
{
None,
Kubernetes,
Oam,
}
}
| DeploymentKind |
csharp | dotnet__maui | src/Essentials/src/TextToSpeech/TextToSpeech.macos.cs | {
"start": 2230,
"end": 2716
} | class ____ : NSSpeechSynthesizerDelegate
{
public event Action<bool> FinishedSpeaking;
public event Action<string> EncounteredError;
public override void DidEncounterError(NSSpeechSynthesizer sender, nuint characterIndex, string theString, string message) =>
EncounteredError?.Invoke(message);
publi... | SpeechSynthesizerDelegate |
csharp | dotnet__orleans | src/api/Orleans.Core/Orleans.Core.cs | {
"start": 257263,
"end": 257993
} | partial class ____<T> : global::Orleans.Serialization.Cloning.IDeepCopier<Invokable_IMemoryStorageGrain_GrainReference_45659318_1<T>>, global::Orleans.Serialization.Cloning.IDeepCopier
{
public Invokable_IMemoryStorageGrain_GrainReference_45659318_1<T> DeepCopy(Invokable_IMemoryStorageGrain_GrainReference_... | Copier_Invokable_IMemoryStorageGrain_GrainReference_45659318_1 |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.Devices.Bluetooth.Rfcomm/RfcommDeviceService.cs | {
"start": 307,
"end": 13401
} | public partial class ____ : global::System.IDisposable
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
internal RfcommDeviceService()
{
}
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
[glo... | RfcommDeviceService |
csharp | microsoft__garnet | libs/storage/Tsavorite/cs/src/core/Index/Tsavorite/Implementation/InternalUpsert.cs | {
"start": 187,
"end": 572
} | partial class ____<TKey, TValue, TStoreFunctions, TAllocator> : TsavoriteBase
where TStoreFunctions : IStoreFunctions<TKey, TValue>
where TAllocator : IAllocator<TKey, TValue, TStoreFunctions>
{
/// <summary>
/// Upsert operation. Replaces the value corresponding to 'key' with provi... | TsavoriteKV |
csharp | bitwarden__server | src/Core/Vault/Queries/IGetSecurityTasksNotificationDetailsQuery.cs | {
"start": 102,
"end": 658
} | public interface ____
{
/// <summary>
/// Retrieves all users within the given organization that are applicable to the given security tasks.
///
/// <param name="organizationId"></param>
/// <param name="tasks"></param>
/// <returns>A dictionary of UserIds and the corresponding amount of securit... | IGetSecurityTasksNotificationDetailsQuery |
csharp | StackExchange__StackExchange.Redis | src/StackExchange.Redis/RedisDatabase.cs | {
"start": 297724,
"end": 299085
} | private sealed class ____ : ResultProcessor<RedisValueWithExpiry>
{
public static readonly ResultProcessor<RedisValueWithExpiry> Default = new StringGetWithExpiryProcessor();
private StringGetWithExpiryProcessor() { }
protected override bool SetResultCore(PhysicalConnection c... | StringGetWithExpiryProcessor |
csharp | nopSolutions__nopCommerce | src/Libraries/Nop.Data/Mapping/Builders/Orders/RecurringPaymentHistoryBuilder.cs | {
"start": 235,
"end": 713
} | public partial class ____ : NopEntityBuilder<RecurringPaymentHistory>
{
#region Methods
/// <summary>
/// Apply entity configuration
/// </summary>
/// <param name="table">Create table expression builder</param>
public override void MapEntity(CreateTableExpressionBuilder table)
{
ta... | RecurringPaymentHistoryBuilder |
csharp | dotnet__efcore | src/EFCore/Metadata/RuntimeComplexProperty.cs | {
"start": 589,
"end": 5702
} | public class ____ : RuntimePropertyBase, IRuntimeComplexProperty
{
private readonly bool _isNullable;
// Warning: Never access these fields directly as access needs to be thread-safe
private IClrCollectionAccessor? _collectionAccessor;
private bool _collectionAccessorInitialized;
/// <summary>
... | RuntimeComplexProperty |
csharp | ChilliCream__graphql-platform | src/HotChocolate/Fusion-vnext/src/Fusion.Packaging/FusionArchiveReadOptions.cs | {
"start": 141,
"end": 412
} | record ____ FusionArchiveReadOptions(
int MaxAllowedSchemaSize,
int MaxAllowedSettingsSize)
{
/// <summary>
/// Gets the default read options.
/// </summary>
public static FusionArchiveReadOptions Default { get; } = new(50_000_000, 512_000);
}
| struct |
csharp | icsharpcode__ILSpy | ILSpy/Metadata/CorTables/PropertyTableTreeNode.cs | {
"start": 1429,
"end": 1913
} | internal class ____ : MetadataTableTreeNode<PropertyTableTreeNode.PropertyDefEntry>
{
public PropertyTableTreeNode(MetadataFile metadataFile)
: base(TableIndex.Property, metadataFile)
{
}
protected override IReadOnlyList<PropertyDefEntry> LoadTable()
{
var list = new List<PropertyDefEntry>();
fore... | PropertyTableTreeNode |
csharp | neuecc__MessagePack-CSharp | src/MessagePack.SourceGenerator/Analyzers/MsgPack00xMessagePackAnalyzer.cs | {
"start": 524,
"end": 16016
} | public class ____ : DiagnosticAnalyzer
{
public const string UseMessagePackObjectAttributeId = "MsgPack003";
public const string AttributeMessagePackObjectMembersId = "MsgPack004";
public const string InvalidMessagePackObjectId = "MsgPack005";
public const string MessagePackFormatterMustBeMessagePackFor... | MsgPack00xMessagePackAnalyzer |
csharp | Testably__Testably.Abstractions | Source/Testably.Abstractions.Testing/Polyfills/MatchType.cs | {
"start": 193,
"end": 1054
} | public enum ____
{
/// <summary>
/// <para>Matches using '*' and '?' wildcards.</para>
/// <para>
/// <c>*</c> matches from zero to any amount of characters. <c>?</c> matches exactly one character. <c>*.*</c>
/// matches any name with a period in it (with <see cref="MatchType.Win32" />, thi... | MatchType |
csharp | MassTransit__MassTransit | src/MassTransit.Abstractions/Topology/Configuration/IMessageTopologyConfigurator.cs | {
"start": 43,
"end": 702
} | public interface ____<TMessage> :
IMessageTypeTopologyConfigurator,
IMessageTopology<TMessage>
where TMessage : class
{
/// <summary>
/// Sets the entity name formatter used for this message type
/// </summary>
/// <param name="entityNameFormatter"></param>
... | IMessageTopologyConfigurator |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.ApplicationModel.Store/LicenseInformation.cs | {
"start": 305,
"end": 4511
} | public partial class ____
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
internal LicenseInformation()
{
}
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
[global::Uno.NotImplemented("__AND... | LicenseInformation |
csharp | protobuf-net__protobuf-net | src/Examples/Issues/Issue27.cs | {
"start": 514,
"end": 1375
} | public class ____
{
[Fact]
public void Roundtrip()
{
KeyPair<int, string> pair = new KeyPair<int, string>(1, "abc");
KeyPair<int,string> clone = Serializer.DeepClone<KeyPairProxy<int,string>>(pair);
Assert.Equal(pair.Key1, clone.Key1);
Assert.... | Issue27 |
csharp | AvaloniaUI__Avalonia | src/Avalonia.Base/Utilities/PooledInlineList.cs | {
"start": 3543,
"end": 5265
} | public struct ____ : IEnumerator<T>
{
private readonly T? _singleItem;
private int _index;
private readonly SimplePooledList? _list;
public Enumerator(object? item)
{
_index = -1;
_list = item as SimplePooledList;
if (_list == null... | Enumerator |
csharp | abpframework__abp | framework/test/Volo.Abp.Features.Tests/Volo/Abp/Features/TestFeatureStore.cs | {
"start": 165,
"end": 1441
} | public class ____ : IFeatureStore, ISingletonDependency
{
public const string Tenant1IdValue = "f460fcf7-f944-469a-967b-3b2463323dfe";
public const string Tenant2IdValue = "e10428ad-4608-4c34-a304-6f82502156f2";
public static Guid Tenant1Id = new Guid(Tenant1IdValue);
public static Guid Tenant2Id = new... | TestFeatureStore |
csharp | dotnet__maui | src/Controls/tests/TestCases.Shared.Tests/ViewContainers/StateViewContainerRemote.cs | {
"start": 86,
"end": 723
} | internal sealed class ____ : BaseViewContainerRemote
{
public StateViewContainerRemote(IUIClientContext? testContext, Enum formsType)
: base(testContext, formsType)
{
}
public StateViewContainerRemote(IUIClientContext? testContext, string formsType)
: base(testContext, formsType)
{
}
public void ... | StateViewContainerRemote |
csharp | dotnet__efcore | test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs | {
"start": 384577,
"end": 384797
} | public class ____
{
public int Id { get; set; }
public RelatedEntity1762 ParentEntity { get; set; }
public IEnumerable<RelatedEntity1764> ChildEntities { get; set; }
}
| RelatedEntity1763 |
csharp | dotnet__maui | src/Controls/tests/SourceGen.UnitTests/XmlParserErrorTests.cs | {
"start": 308,
"end": 4182
} | private record ____(string Path, string Content, string? RelativePath = null, string? TargetPath = null, string? ManifestResourceName = null, string? TargetFramework = null, string? NoWarn = null)
: AdditionalFile(Text: SourceGeneratorDriver.ToAdditionalText(Path, Content), Kind: "Xaml", RelativePath: RelativePath ??... | AdditionalXamlFile |
csharp | DuendeSoftware__IdentityServer | bff/hosts/Hosts.ServiceDefaults/BffAppHostRoutes.cs | {
"start": 182,
"end": 881
} | public class ____ : IAppHostServiceRoutes
{
public string[] ServiceNames => AppHostServices.All;
public Uri UrlTo(string clientName)
{
var url = clientName switch
{
AppHostServices.Bff => "https://localhost:5002",
AppHostServices.BffBlazorPerComponent => "https://loc... | BffAppHostRoutes |
csharp | MassTransit__MassTransit | src/MassTransit/SendEndpointRecurringSchedulerExtensions.cs | {
"start": 133,
"end": 8837
} | public static class ____
{
/// <summary>
/// Schedule a message for recurring delivery using the specified schedule
/// </summary>
/// <typeparam name="T">The message type</typeparam>
/// <param name="endpoint">The message scheduler endpoint</param>
/// <param name="m... | SendEndpointRecurringSchedulerExtensions |
csharp | dotnet__aspire | src/Aspire.Hosting/Dcp/Model/ModelCommon.cs | {
"start": 7445,
"end": 8046
} | internal static class ____
{
public static bool IsValidObjectName(string candidate)
{
if (string.IsNullOrWhiteSpace(candidate))
{
return false;
}
if (candidate.Length > 253)
{
return false;
}
// Can only contain alphanumeric chara... | Rules |
csharp | unoplatform__uno | src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Text/TextScript.cs | {
"start": 255,
"end": 8386
} | public enum ____
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
Undefined = 0,
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
Ansi = 1,
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT... | TextScript |
csharp | CommunityToolkit__Maui | samples/CommunityToolkit.Maui.Sample/Platforms/MacCatalyst/Program.cs | {
"start": 56,
"end": 169
} | public class ____
{
static void Main(string[] args) => UIApplication.Main(args, null, typeof(AppDelegate));
} | Program |
csharp | nunit__nunit | src/NUnitFramework/tests/Constraints/NUnitEqualityComparerTests.cs | {
"start": 19281,
"end": 19402
} | public interface ____ : IEquatable<IEquatableObject>
{
int SomeProperty { get; set; }
}
| IEquatableObject |
csharp | AvaloniaUI__Avalonia | src/Markup/Avalonia.Markup.Xaml/MarkupExtensions/CompiledBindings/CompiledBindingPath.cs | {
"start": 11034,
"end": 11748
} | internal class ____ : ICompiledBindingPathElement
{
public MethodAsCommandElement(string methodName, Action<object, object?> executeHelper, Func<object, object?, bool>? canExecuteHelper, string[] dependsOnElements)
{
MethodName = methodName;
ExecuteMethod = executeHelper;
... | MethodAsCommandElement |
csharp | graphql-dotnet__graphql-dotnet | src/GraphQL.Tests/Instrumentation/MiddlewareOrderTests.cs | {
"start": 22942,
"end": 23410
} | private class ____ : IFieldMiddleware
{
private readonly List<string> _executionOrder;
public OrderTrackingMiddleware2(List<string> executionOrder)
{
_executionOrder = executionOrder;
}
public ValueTask<object?> ResolveAsync(IResolveFieldContext context, FieldMi... | OrderTrackingMiddleware2 |
csharp | AutoMapper__AutoMapper | src/IntegrationTests/IncludeMembers.cs | {
"start": 87475,
"end": 87707
} | public class ____(DatabaseFixture databaseFixture) : IntegrationTest<SubqueryMapFromWithIncludeMembersFirstOrDefaultWithIheritance.DatabaseInitializer>(databaseFixture)
{
| SubqueryMapFromWithIncludeMembersFirstOrDefaultWithIheritance |
csharp | xunit__xunit | src/xunit.v3.core/Utility/DelegatingMessageBus.cs | {
"start": 451,
"end": 1561
} | public class ____(
IMessageBus innerMessageBus,
Action<IMessageSinkMessage>? callback = null) :
IMessageBus
{
readonly IMessageBus innerMessageBus = Guard.ArgumentNotNull(innerMessageBus);
/// <inheritdoc/>
public virtual bool QueueMessage(IMessageSinkMessage message)
{
callback?.Invoke(message);
return i... | DelegatingMessageBus |
csharp | dotnet__efcore | test/EFCore.Tests/ChangeTracking/Internal/InternalClrEntityEntryTest.cs | {
"start": 313,
"end": 8616
} | public class ____ : InternalEntityEntryTestBase<
InternalClrEntityEntryTest.SomeEntity,
InternalClrEntityEntryTest.SomeSimpleEntityBase,
InternalClrEntityEntryTest.SomeDependentEntity,
InternalClrEntityEntryTest.SomeMoreDependentEntity,
InternalClrEntityEntryTest.Root,
InternalClrEntityEntryTest... | InternalClrEntityEntryTest |
csharp | dotnet__aspnetcore | src/Framework/AspNetCoreAnalyzers/src/Analyzers/RouteEmbeddedLanguage/FrameworkParametersCompletionProvider.cs | {
"start": 1407,
"end": 18188
} | public sealed class ____ : CompletionProvider
{
private const string StartKey = nameof(StartKey);
private const string LengthKey = nameof(LengthKey);
private const string NewTextKey = nameof(NewTextKey);
private const string NewPositionKey = nameof(NewPositionKey);
private const string DescriptionKe... | FrameworkParametersCompletionProvider |
csharp | dotnet__machinelearning | src/Microsoft.ML.Transforms/MissingValueIndicatorTransformer.cs | {
"start": 23149,
"end": 26400
} | public sealed class ____ : TrivialEstimator<MissingValueIndicatorTransformer>
{
/// <summary>
/// Initializes a new instance of <see cref="MissingValueIndicatorEstimator"/>
/// </summary>
/// <param name="env">The environment to use.</param>
/// <param name="columns">The name... | MissingValueIndicatorEstimator |
csharp | ServiceStack__ServiceStack | ServiceStack.Redis/tests/ServiceStack.Redis.Tests/Shared/Movie.cs | {
"start": 180,
"end": 2173
} | public class ____
{
public Movie()
{
this.Genres = new List<string>();
}
[DataMember]
public string Id { get; set; }
[DataMember]
public string Title { get; set; }
[DataMember]
public decimal Rating { get; set; }
[DataMe... | Movie |
csharp | dotnet__orleans | src/Orleans.TestingHost/TestStorageProviders/StorageFaultGrain.cs | {
"start": 345,
"end": 2783
} | public class ____ : Grain, IStorageFaultGrain
{
private ILogger logger;
private Dictionary<GrainId, Exception> readFaults;
private Dictionary<GrainId, Exception> writeFaults;
private Dictionary<GrainId, Exception> clearfaults;
/// <inheritdoc />
public override async... | StorageFaultGrain |
csharp | dotnet__machinelearning | docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/Conversion/MapValueToArray.cs | {
"start": 3093,
"end": 3195
} | public class ____
{
public string Timeframe { get; set; }
}
| DataPoint |
csharp | spectreconsole__spectre.console | docs/src/Shortcodes/ExampleSnippet.cs | {
"start": 230,
"end": 1592
} | public class ____ : Shortcode
{
protected const string Solution = nameof(Solution);
protected const string Project = nameof(Project);
protected const string Symbol = nameof(Symbol);
protected const string BodyOnly = nameof(BodyOnly);
public override async Task<ShortcodeResult> ExecuteAsync(KeyValue... | ExampleSnippet |
csharp | protobuf-net__protobuf-net | src/Examples/Rpc/HttpBasic.cs | {
"start": 3883,
"end": 6626
} | class ____ { }
// [Fact, ExpectedException(typeof(ArgumentException))]
// public void TestNotAContract() {
// new ProtoClient<NotAContract>(ViaHttp());
// }
// [Fact]
// public void TestCreationAndDispoesWithBoth() {
// using(ClientViaHttp<IBasicService>()) {}
//... | NotAContract |
csharp | dotnet__maui | src/Essentials/src/WebAuthenticator/AppleSignInAuthenticator.netstandard.android.tvos.watchos.windows.tizen.macos.cs | {
"start": 113,
"end": 363
} | partial class ____ : IAppleSignInAuthenticator
{
public Task<WebAuthenticatorResult> AuthenticateAsync(AppleSignInAuthenticator.Options options) =>
throw ExceptionUtils.NotSupportedOrImplementedException;
}
}
| AppleSignInAuthenticatorImplementation |
csharp | MassTransit__MassTransit | src/MassTransit.TestFramework/Logging/TestOutputLoggerFactory.cs | {
"start": 128,
"end": 687
} | public class ____ :
ILoggerFactory
{
readonly bool _enabled;
public TestOutputLoggerFactory(bool enabled)
{
_enabled = enabled;
}
public TestExecutionContext Current { get; set; }
public Microsoft.Extensions.Logging.ILogger CreateLogger(string n... | TestOutputLoggerFactory |
csharp | ServiceStack__ServiceStack | ServiceStack/tests/CheckWeb/Test.dtos.cs | {
"start": 4623,
"end": 4739
} | public partial class ____
: IReturn<CustomUserSession>
{
}
[Route("/info/{Id}")]
| GetUserSession |
csharp | nuke-build__nuke | source/Nuke.Common/Tools/GitLink/GitLink.Generated.cs | {
"start": 29400,
"end": 29821
} | public partial class ____ : Enumeration
{
public static GitLinkSourceCodeRetrieval Http = (GitLinkSourceCodeRetrieval) "Http";
public static GitLinkSourceCodeRetrieval Powershell = (GitLinkSourceCodeRetrieval) "Powershell";
public static implicit operator GitLinkSourceCodeRetrieval(string value)
{
... | GitLinkSourceCodeRetrieval |
csharp | exceptionless__Exceptionless | src/Exceptionless.Core/Repositories/Configuration/Indexes/StackIndex.cs | {
"start": 4713,
"end": 5743
} | public class ____
{
public const string Stack = "stack";
public const string Status = "status";
public const string OrganizationId = "organization";
public const string ProjectId = "project";
public const string SignatureHash = "signature";
public const string Type = ... | Alias |
csharp | dotnet__maui | src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Bugzilla/Bugzilla37841.cs | {
"start": 115,
"end": 871
} | public class ____ : _IssuesUITest
{
const string Generate = "Generate";
const string entrycell = "entrycell";
const string textcell = "textcell";
public Bugzilla37841(TestDevice testDevice) : base(testDevice)
{
}
public override string Issue => "TableView EntryCells and TextCells cease to update after focus cha... | Bugzilla37841 |
csharp | dotnet__maui | src/Compatibility/Core/src/Windows/CollectionView/StructuredItemsViewRenderer.cs | {
"start": 557,
"end": 7729
} | public partial class ____<TItemsView> : ItemsViewRenderer<TItemsView>
where TItemsView : StructuredItemsView
{
View _currentHeader;
View _currentFooter;
protected override IItemsLayout Layout { get => ItemsView?.ItemsLayout; }
protected override void SetUpNewElement(ItemsView newElement)
{
base.SetUpN... | StructuredItemsViewRenderer |
csharp | ChilliCream__graphql-platform | src/HotChocolate/Core/test/Types.Tests/Configuration/SchemaConfigurationTests.cs | {
"start": 107,
"end": 1623
} | public class ____
{
[Fact]
public void BindResolverCollectionToObjectTypeImplicitly()
{
// arrange
// act
var schema = SchemaBuilder.New()
.AddQueryType(d =>
{
d.Name("TestObjectA");
d.Field("a").Type<StringType>();
... | SchemaConfigurationTests |
csharp | dotnet__BenchmarkDotNet | src/BenchmarkDotNet/Toolchains/GeneratorBase.cs | {
"start": 419,
"end": 7538
} | public abstract class ____ : IGenerator
{
public GenerateResult GenerateProject(BuildPartition buildPartition, ILogger logger, string rootArtifactsFolderPath)
{
var artifactsPaths = ArtifactsPaths.Empty;
try
{
artifactsPaths = GetArtifactsPaths(bui... | GeneratorBase |
csharp | graphql-dotnet__graphql-dotnet | src/GraphQL.Tests/Bugs/ScalarsInputTest.cs | {
"start": 5270,
"end": 5431
} | public class ____ : Schema
{
public SchemaForScalars()
{
Query = new DummyType();
Mutation = new ScalarsMutation();
}
}
| SchemaForScalars |
csharp | icsharpcode__ILSpy | ILSpy/Metadata/CorTables/GenericParamConstraintTableTreeNode.cs | {
"start": 2095,
"end": 4271
} | internal struct ____
{
readonly MetadataFile metadataFile;
readonly GenericParameterConstraintHandle handle;
readonly GenericParameterConstraint genericParamConstraint;
public int RID => MetadataTokens.GetRowNumber(handle);
public int Token => MetadataTokens.GetToken(handle);
public int Offset =>... | GenericParamConstraintEntry |
csharp | ChilliCream__graphql-platform | src/HotChocolate/AspNetCore/src/AspNetCore/Extensions/HotChocolateAspNetCoreServiceCollectionExtensions.Warmup.cs | {
"start": 229,
"end": 5113
} | partial class ____
{
/// <summary>
/// Adds a warmup task that will be executed on each newly created request executor.
/// </summary>
/// <param name="builder">
/// The <see cref="IRequestExecutorBuilder"/>.
/// </param>
/// <param name="warmupFunc">
/// The warmup delegate to execute.... | HotChocolateAspNetCoreServiceCollectionExtensions |
csharp | dotnet__aspnetcore | src/Http/Http/src/DefaultHttpContext.cs | {
"start": 9629,
"end": 9983
} | struct ____
{
public IItemsFeature? Items;
public IServiceProvidersFeature? ServiceProviders;
public IHttpAuthenticationFeature? Authentication;
public IHttpRequestLifetimeFeature? Lifetime;
public ISessionFeature? Session;
public IHttpRequestIdentifierFeature? Reques... | FeatureInterfaces |
csharp | ShareX__ShareX | ShareX.UploadersLib/FileUploaders/GoogleDrive.cs | {
"start": 10087,
"end": 10360
} | public class ____
{
public string id { get; set; }
public string webViewLink { get; set; }
public string webContentLink { get; set; }
public string name { get; set; }
public string description { get; set; }
}
| GoogleDriveFile |
csharp | abpframework__abp | modules/background-jobs/src/Volo.Abp.BackgroundJobs.EntityFrameworkCore/Volo/Abp/BackgroundJobs/EntityFrameworkCore/IBackgroundJobsDbContext.cs | {
"start": 277,
"end": 397
} | public interface ____ : IEfCoreDbContext
{
DbSet<BackgroundJobRecord> BackgroundJobs { get; }
}
| IBackgroundJobsDbContext |
csharp | dotnet__efcore | test/EFCore.Tests/ChangeTracking/ChangeTrackerTest.cs | {
"start": 144214,
"end": 144347
} | private class ____
{
public int Id { get; set; }
public DependentNG? DependentNG { get; set; }
}
| PrincipalNG |
csharp | cake-build__cake | src/Cake.Frosting/IFrostingLifetime.cs | {
"start": 322,
"end": 815
} | public interface ____
{
/// <summary>
/// This method is executed before any tasks are run.
/// If setup fails, no tasks will be executed but teardown will be performed.
/// </summary>
/// <param name="context">The context.</param>
/// <param name="info">The setup inf... | IFrostingSetup |
csharp | spectreconsole__spectre.console | src/Spectre.Console/Live/Progress/Spinner.Generated.cs | {
"start": 37093,
"end": 37620
} | private sealed class ____ : Spinner
{
public override TimeSpan Interval => TimeSpan.FromMilliseconds(80);
public override bool IsUnicode => true;
public override IReadOnlyList<string> Frames => new List<string>
{
"⬆️ ",
"↗️ ... | Arrow2Spinner |
csharp | dotnetcore__FreeSql | FreeSql/Internal/Model/HzyTuple.cs | {
"start": 2258,
"end": 2796
} | public class ____<T1, T2, T3, T4, T5, T6, T7, T8>
{
public HzyTuple(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8)
{
this.t1 = t1; this.t2 = t2; this.t3 = t3; this.t4 = t4; this.t5 = t5; this.t6 = t6; this.t7 = t7; this.t8 = t8;
}
public T1 t1 { get; }
... | HzyTuple |
csharp | ServiceStack__ServiceStack | ServiceStack/src/ServiceStack.Common/CachedExpressionCompiler.cs | {
"start": 36401,
"end": 37413
} | internal sealed class ____ : ExpressionFingerprint
{
public MemberExpressionFingerprint(ExpressionType nodeType, Type type, MemberInfo member)
: base(nodeType, type)
{
Member = member;
}
// http://msdn.microsoft.com/en-us/library/system.linq.expressions.membe... | MemberExpressionFingerprint |
csharp | GtkSharp__GtkSharp | Source/Libs/CairoSharp/SubpixelOrder.cs | {
"start": 1247,
"end": 1322
} | public enum ____
{
Default,
Rgb,
Bgr,
Vrgb,
Vbgr,
}
}
| SubpixelOrder |
csharp | ServiceStack__ServiceStack | ServiceStack.Text/tests/ServiceStack.Text.Tests/JsonTests/PolymorphicListTests.cs | {
"start": 14611,
"end": 14753
} | public class ____
{
public Cat Cat { get; set; }
public OtherDog Dog { get; set; }
}
| ExplicitPets |
csharp | dotnet__efcore | src/EFCore/Diagnostics/ConcurrencyExceptionEventData.cs | {
"start": 579,
"end": 2173
} | public class ____ : DbContextErrorEventData
{
private readonly IReadOnlyList<IUpdateEntry> _internalEntries;
/// <summary>
/// Constructs the event payload.
/// </summary>
/// <param name="eventDefinition">The event definition.</param>
/// <param name="messageGenerator">A delegate that gene... | ConcurrencyExceptionEventData |
csharp | moq__moq4 | src/Moq.Tests/RecursiveMocksFixture.cs | {
"start": 14088,
"end": 14329
} | public interface ____
{
int Value { get; set; }
int OtherValue { get; set; }
string Do(string command);
IBaz Baz { get; set; }
IBaz GetBaz(string value);
}
| IBar |
csharp | dotnet__maui | src/Graphics/samples/GraphicsTester.Skia.Gtk/MainWindow.cs | {
"start": 308,
"end": 2951
} | class ____ : Window
{
private TreeView _treeView;
private TreeStore _store;
private Dictionary<string, AbstractScenario> _items;
private GtkSkiaGraphicsView _skiaGraphicsView;
public MainWindow() : base(WindowType.Toplevel)
{
// Setup GUI
WindowPosition = WindowPosition.Center;
DefaultSize = new ... | MainWindow |
csharp | unoplatform__uno | src/Uno.UI/UI/Xaml/Window/WindowManagerInterop.wasm.cs | {
"start": 14111,
"end": 14612
} | private struct ____
{
public double X;
public double Y;
public double Width;
public double Height;
}
#endregion
#region SetContentHtml
internal static void SetContentHtml(IntPtr htmlId, string html)
{
var parms = new WindowManagerSetContentHtmlParams()
{
HtmlId = htmlId,
Html = ... | WindowManagerGetBBoxReturn |
csharp | jasontaylordev__CleanArchitecture | src/Application/Common/Behaviours/ValidationBehaviour.cs | {
"start": 159,
"end": 1159
} | public class ____<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse>
where TRequest : notnull
{
private readonly IEnumerable<IValidator<TRequest>> _validators;
public ValidationBehaviour(IEnumerable<IValidator<TRequest>> validators)
{
_validators = validators;
}
public async... | ValidationBehaviour |
csharp | microsoft__PowerToys | src/settings-ui/Settings.UI/SettingsXAML/Controls/SettingsGroup/SettingsGroupAutomationPeer.cs | {
"start": 285,
"end": 671
} | public partial class ____ : FrameworkElementAutomationPeer
{
public SettingsGroupAutomationPeer(SettingsGroup owner)
: base(owner)
{
}
protected override string GetNameCore()
{
var selectedSettingsGroup = (SettingsGroup)Owner;
return selec... | SettingsGroupAutomationPeer |
csharp | dotnet__machinelearning | test/Microsoft.ML.Tests/FeatureContributionTests.cs | {
"start": 16309,
"end": 16500
} | private enum ____
{
Regression,
BinaryClassification,
MulticlassClassification,
Ranking,
Clustering
}
| TaskType |
csharp | unoplatform__uno | src/SourceGenerators/XamlGenerationTests.Core/ControlWithObservableCollectionContent.cs | {
"start": 283,
"end": 900
} | public partial class ____ : Control
{
public ObservableCollection<object> Items
{
get { return (ObservableCollection<object>)GetValue(ItemsProperty); }
set { SetValue(ItemsProperty, value); }
}
// Using a DependencyProperty as the backing store for Items. This enables animation, styling, binding, etc..... | ControlWithObservableCollectionContent |
csharp | OrchardCMS__OrchardCore | src/OrchardCore.Modules/OrchardCore.Workflows/UserTasks/Activities/UserTaskEvent.cs | {
"start": 269,
"end": 1763
} | public class ____ : EventActivity
{
protected readonly IStringLocalizer S;
public UserTaskEvent(IStringLocalizer<UserTaskEvent> localizer)
{
S = localizer;
}
public override string Name => nameof(UserTaskEvent);
public override LocalizedString DisplayText => S["User Task Event"];
p... | UserTaskEvent |
csharp | CommunityToolkit__WindowsCommunityToolkit | Microsoft.Toolkit.Uwp.Notifications/Adaptive/Elements/Element_AdaptiveImage.cs | {
"start": 309,
"end": 3057
} | internal sealed class ____ : IElement_TileBindingChild, IElement_ToastBindingChild, IElement_AdaptiveSubgroupChild, IHaveXmlName, IHaveXmlNamedProperties
{
internal const AdaptiveImagePlacement DEFAULT_PLACEMENT = AdaptiveImagePlacement.Inline;
internal const AdaptiveImageCrop DEFAULT_CROP = Adaptiv... | Element_AdaptiveImage |
csharp | dotnet__efcore | test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs | {
"start": 425277,
"end": 425497
} | public class ____
{
public int Id { get; set; }
public RelatedEntity1947 ParentEntity { get; set; }
public IEnumerable<RelatedEntity1949> ChildEntities { get; set; }
}
| RelatedEntity1948 |
csharp | npgsql__npgsql | test/Npgsql.Tests/PoolManagerTests.cs | {
"start": 70,
"end": 2392
} | class ____ : TestBase
{
[Test]
public void With_canonical_connection_string()
{
var connString = new NpgsqlConnectionStringBuilder(ConnectionString).ToString();
using (var conn = new NpgsqlConnection(connString))
conn.Open();
var connString2 = new NpgsqlConnectionStringBu... | PoolManagerTests |
csharp | nopSolutions__nopCommerce | src/Presentation/Nop.Web/Areas/Admin/Models/Orders/RecurringPaymentHistoryModel.cs | {
"start": 200,
"end": 1026
} | public partial record ____ : BaseNopEntityModel
{
#region Properties
public int OrderId { get; set; }
[NopResourceDisplayName("Admin.RecurringPayments.History.CustomOrderNumber")]
public string CustomOrderNumber { get; set; }
public int RecurringPaymentId { get; set; }
[NopResourceDisplayNam... | RecurringPaymentHistoryModel |
csharp | dotnet__extensions | src/Libraries/Microsoft.Extensions.Http.Resilience/Internal/ResilienceKeys.cs | {
"start": 340,
"end": 900
} | internal static class ____
{
public static readonly ResiliencePropertyKey<HttpRequestMessage?> RequestMessage = new("Resilience.Http.RequestMessage");
public static readonly ResiliencePropertyKey<RequestRoutingStrategy> RoutingStrategy = new("Resilience.Http.RequestRoutingStrategy");
public static readonl... | ResilienceKeys |
csharp | MassTransit__MassTransit | src/MassTransit/SagaStateMachine/SagaStateMachine/Activities/FaultedActionActivity.cs | {
"start": 100,
"end": 1561
} | public class ____<TSaga, TException> :
IStateMachineActivity<TSaga>
where TException : Exception
where TSaga : class, SagaStateMachineInstance
{
readonly Action<BehaviorExceptionContext<TSaga, TException>> _action;
public FaultedActionActivity(Action<BehaviorExceptionContext... | FaultedActionActivity |
csharp | dotnetcore__CAP | src/DotNetCore.CAP.RedisStreams/IConnectionPool.Default.cs | {
"start": 421,
"end": 3001
} | internal class ____ : IRedisConnectionPool, IDisposable
{
private readonly ConcurrentBag<AsyncLazyRedisConnection> _connections = [];
private readonly ILoggerFactory _loggerFactory;
private readonly SemaphoreSlim _poolLock = new(1);
private readonly CapRedisOptions _redisOptions;
private bool _isDi... | RedisConnectionPool |
csharp | dotnet__aspnetcore | src/Identity/test/InMemory.Test/FunctionalTest.cs | {
"start": 802,
"end": 21500
} | public class ____ : LoggedTest
{
const string TestPassword = "[PLACEHOLDER]-1a";
[Fact]
public async Task CanChangePasswordOptions()
{
var server = await CreateServer(services => services.Configure<IdentityOptions>(options =>
{
options.Password.RequireUppercase = false;
... | FunctionalTest |
csharp | Cysharp__MemoryPack | sandbox/SandboxConsoleApp/SystemTextJsonChecker.cs | {
"start": 2814,
"end": 3101
} | public class ____
{
public int X { get; }
public int Y { get; }
public Three()
{
Console.WriteLine("Called Three One");
}
public Three(int x, int y)
{
Console.WriteLine("Called Three Two");
this.X = x;
this.Y = y;
}
}
| Three |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.