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
MassTransit__MassTransit
src/Transports/MassTransit.KafkaIntegration/KafkaIntegration/IConsumerContextSupervisor.cs
{ "start": 69, "end": 175 }
public interface ____ : ITransportSupervisor<ConsumerContext> { } }
IConsumerContextSupervisor
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Core/test/ApplicationModels/ControllerActionDescriptorProviderTests.cs
{ "start": 66950, "end": 67212 }
private class ____ { [ApiExplorerSettings(IgnoreApi = true)] public void Edit() { } } [Route("AttributeRouting/IsRequired/ForApiExplorer")] [ApiExplorerSettings(IgnoreApi = true)]
ApiExplorerExplicitlyNotVisibleOnActionController
csharp
MassTransit__MassTransit
src/MassTransit/InMemoryTransport/InMemoryTransport/Configuration/IInMemoryConsumeTopologySpecification.cs
{ "start": 100, "end": 260 }
public interface ____ : ISpecification { void Apply(IMessageFabricConsumeTopologyBuilder builder); } }
IInMemoryConsumeTopologySpecification
csharp
exceptionless__Exceptionless
src/Exceptionless.Core/Plugins/EventProcessor/Default/03_ManualStackingPlugin.cs
{ "start": 178, "end": 738 }
public sealed class ____ : EventProcessorPluginBase { public ManualStackingPlugin(AppOptions options, ILoggerFactory loggerFactory) : base(options, loggerFactory) { } public override Task EventProcessingAsync(EventContext context) { var msi = context.Event.GetManualStackingInfo(); if (msi?....
ManualStackingPlugin
csharp
smartstore__Smartstore
test/Smartstore.Core.Tests/Checkout/Shipping/ShippingServiceTests.cs
{ "start": 611, "end": 5368 }
public class ____ : ServiceTestBase { ShippingSettings _shippingSettings; IShippingService _shippingService; IProductAttributeMaterializer _productAttributeMaterializer; IStoreContext _storeContext; IRequestCache _requestCache; [OneTimeSetUp] public new void ...
ShippingServiceTests
csharp
NLog__NLog
tests/NLog.UnitTests/LayoutRenderers/TempDirRendererTests.cs
{ "start": 1741, "end": 2618 }
public class ____ : NLogTestBase { [Fact] public void RenderTempDir() { Layout layout = "${tempdir}"; layout.Initialize(null); string actual = layout.Render(LogEventInfo.CreateNullEvent()); layout.Close(); Assert.NotNull(actual); ...
TempDirRendererTests
csharp
IdentityModel__IdentityModel
src/Internal/QueryHelpers.cs
{ "start": 301, "end": 3187 }
internal static class ____ { /// <summary> /// Append the given query key and value to the URI. /// </summary> /// <param name="uri">The base URI.</param> /// <param name="name">The name of the query key.</param> /// <param name="value">The query value.</param> /// <returns>The combined resu...
QueryHelpers
csharp
CommunityToolkit__WindowsCommunityToolkit
Microsoft.Toolkit.Uwp/Helpers/BackgroundTaskHelper.cs
{ "start": 353, "end": 436 }
class ____ static helper methods for background tasks. /// </summary>
provides
csharp
dotnet__orleans
src/api/Orleans.Core.Abstractions/Orleans.Core.Abstractions.cs
{ "start": 152186, "end": 153768 }
partial class ____ : global::Orleans.Serialization.Codecs.IFieldCodec<global::Orleans.Metadata.ClusterManifest>, global::Orleans.Serialization.Codecs.IFieldCodec { public Codec_ClusterManifest(global::Orleans.Serialization.Activators.IActivator<global::Orleans.Metadata.ClusterManifest> _activator, global::...
Codec_ClusterManifest
csharp
dotnet__maui
src/Controls/tests/ManualTests/Performance/CollectionViewPool/Models/Enums.cs
{ "start": 37, "end": 98 }
public enum ____ { US, //0 Metric, // 1 Imperial // 2 }
Units
csharp
ServiceStack__ServiceStack
ServiceStack.Blazor/tests/UI.Gallery/Gallery/MyApp/MarkdownPagesBase.cs
{ "start": 24645, "end": 24847 }
public class ____ { public string? Icon { get; set; } public string? Text { get; set; } public string? Link { get; set; } public List<MarkdownMenuItem>? Children { get; set; } }
MarkdownMenu
csharp
npgsql__npgsql
test/Npgsql.Tests/NpgsqlEventSourceTests.cs
{ "start": 166, "end": 1361 }
public class ____ : TestBase { [Test] public void Command_start_stop() { using (var conn = OpenConnection()) { // There is a new pool created, which sends a few queries to load pg types ClearEvents(); conn.ExecuteScalar("SELECT 1"); } var ...
NpgsqlEventSourceTests
csharp
abpframework__abp
modules/feature-management/src/Volo.Abp.FeatureManagement.MongoDB/Volo/Abp/FeatureManagement/MongoDB/MongoFeatureDefinitionRecordRepository.cs
{ "start": 231, "end": 1029 }
public class ____ : MongoDbRepository<IFeatureManagementMongoDbContext, FeatureDefinitionRecord, Guid>, IFeatureDefinitionRecordRepository { public MongoFeatureDefinitionRecordRepository( IMongoDbContextProvider<IFeatureManagementMongoDbContext> dbContextProvider) : base(dbContextProvider) ...
MongoFeatureDefinitionRecordRepository
csharp
ChilliCream__graphql-platform
src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs
{ "start": 147030, "end": 147190 }
enum ____ what kind of type a given `__Type` is. /// </summary> [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")]
describing
csharp
MassTransit__MassTransit
src/MassTransit.Abstractions/Exceptions/RoutingSlipArgumentException.cs
{ "start": 108, "end": 790 }
public class ____ : RoutingSlipException { public RoutingSlipArgumentException() { } public RoutingSlipArgumentException(string message) : base(message) { } public RoutingSlipArgumentException(string message, Exception innerException) ...
RoutingSlipArgumentException
csharp
microsoft__PowerToys
src/modules/cmdpal/Microsoft.CmdPal.UI/Program.cs
{ "start": 717, "end": 5630 }
internal sealed class ____ { private static DispatcherQueueSynchronizationContext? uiContext; private static App? app; // LOAD BEARING // // Main cannot be async. If it is, then the clipboard won't work, and neither will narrator. // That means you, the person thinking about making this a MTA t...
Program
csharp
cake-build__cake
src/Cake.Common.Tests/Unit/IO/DirectoryAliasesTests.cs
{ "start": 21773, "end": 24882 }
public sealed class ____ { [Fact] public void Should_Throw_If_Context_Is_Null() { // Given var path = new DirectoryPath("/Temp"); // When var result = Record.Exception(() => DirectoryAliases....
TheCreateMethod
csharp
atata-framework__atata
test/Atata.UnitTests/Sessions/AtataSessionEventSubscriptionsBuilderTests.cs
{ "start": 107, "end": 7923 }
public sealed class ____ { private Subject<AtataSessionEventSubscriptionsBuilder<AtataContextBuilder>> _sut = null!; [SetUp] public void SetUp() => _sut = new AtataSessionEventSubscriptionsBuilder<AtataContextBuilder>(AtataContext.CreateDefaultNonScopedBuilder()) ...
Add
csharp
grandnode__grandnode2
src/Web/Grand.Web.Admin/Models/Catalog/CollectionListModel.cs
{ "start": 163, "end": 569 }
public class ____ : BaseModel { [GrandResourceDisplayName("Admin.Catalog.Collections.List.SearchCollectionName")] public string SearchCollectionName { get; set; } [GrandResourceDisplayName("Admin.Catalog.Collections.List.SearchStore")] public string SearchStoreId { get; set; } public IList<Select...
CollectionListModel
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types/Types/Attributes/MutationTypeAttribute.cs
{ "start": 124, "end": 194 }
class ____ an extension of the mutation operation type. /// </summary>
as
csharp
microsoft__semantic-kernel
dotnet/src/SemanticKernel.Abstractions/Filters/Function/FunctionInvocationContext.cs
{ "start": 194, "end": 2292 }
public class ____ { /// <summary> /// Initializes a new instance of the <see cref="FunctionInvocationContext"/> class. /// </summary> /// <param name="kernel">The <see cref="Microsoft.SemanticKernel.Kernel"/> containing services, plugins, and other state for use throughout the operation.</param> ///...
FunctionInvocationContext
csharp
moq__moq4
src/Moq/DefaultValueProvider.cs
{ "start": 344, "end": 721 }
class ____ default value providers. /// These are responsible for producing e. g. return values when mock methods or properties get invoked unexpectedly. /// In other words, whenever there is no setup that would determine the return value for a particular invocation, /// Moq asks the mock's default value p...
for
csharp
ChilliCream__graphql-platform
src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.cs
{ "start": 137, "end": 1326 }
public class ____ : ServerTestBase { public StarWarsGetFriendsDeferredTest(TestServerFactory serverFactory) : base(serverFactory) { } /* [Fact] public async Task Execute_StarWarsGetFriendsDeferred_Test() { // arrange CancellationToken ct = new CancellationTokenSource(20_000)...
StarWarsGetFriendsDeferredTest
csharp
MassTransit__MassTransit
src/MassTransit/RetryPolicies/IncrementalRetryPolicy.cs
{ "start": 62, "end": 1847 }
public class ____ : IRetryPolicy { readonly IExceptionFilter _filter; public IncrementalRetryPolicy(IExceptionFilter filter, int retryLimit, TimeSpan initialInterval, TimeSpan intervalIncrement) { if (initialInterval < TimeSpan.Zero) { ...
IncrementalRetryPolicy
csharp
nuke-build__nuke
source/Nuke.Build.Tests/SchemaUtilityTest.cs
{ "start": 1468, "end": 1522 }
private class ____ : NukeBuild { }
EmptyBuild
csharp
EventStore__EventStore
src/KurrentDB.Core.Tests/Services/Storage/ReadIndex/GetStreamLastEventNumber_KnownCollisions.cs
{ "start": 811, "end": 1092 }
public class ____ : GetStreamLastEventNumber_KnownCollisions { [Test] public void verify_that_streams_collide() { Assert.AreEqual(Hasher.Hash(Stream), Hasher.Hash(CollidingStream)); Assert.AreEqual(Hasher.Hash(Stream), Hasher.Hash(CollidingStream1)); } }
VerifyCollision
csharp
dotnet__efcore
src/EFCore/ValueGeneration/ValueGeneratorCache.cs
{ "start": 1773, "end": 3578 }
struct ____(IProperty property, ITypeBase typeBase) : IEquatable<CacheKey> { private readonly Guid _modelId = typeBase.Model.ModelId; private readonly string? _property = property.Name; private readonly string? _typeBase = typeBase.Name; public bool Equals(CacheKey other) ...
CacheKey
csharp
files-community__Files
src/Files.App/UserControls/ComboBoxEx/ComboBoxEx.cs
{ "start": 167, "end": 685 }
public partial class ____ : ComboBox { double _cachedWidth; protected override void OnDropDownOpened(object e) { Width = _cachedWidth; base.OnDropDownOpened(e); } protected override void OnDropDownClosed(object e) { Width = double.NaN; base.OnDropDownClosed(e); } protected override Siz...
ComboBoxEx
csharp
dotnetcore__Util
src/Util.Generators/SystemType.cs
{ "start": 68, "end": 832 }
public enum ____ { /// <summary> /// 全局唯一标识 /// </summary> Guid, /// <summary> /// 字符串 /// </summary> String, /// <summary> /// 字节 /// </summary> Byte, /// <summary> /// 16位整型 /// </summary> Short, /// <summary> /// 32位整型 /// </summary> Int...
SystemType
csharp
smartstore__Smartstore
src/Smartstore.Web/Areas/Admin/Controllers/DiscountController.cs
{ "start": 465, "end": 13832 }
public class ____ : AdminController { private readonly SmartDbContext _db; private readonly IRuleService _ruleService; private readonly ICurrencyService _currencyService; private readonly ILocalizedEntityService _localizedEntityService; public DiscountController( ...
DiscountController
csharp
microsoft__PowerToys
src/modules/launcher/Wox.Infrastructure/Hotkey/KeyEvent.cs
{ "start": 226, "end": 640 }
public enum ____ { /// <summary> /// Key down /// </summary> WMKEYDOWN = 256, /// <summary> /// Key up /// </summary> WMKEYUP = 257, /// <summary> /// System key up /// </summary> WMSYSKEYUP = 261, /// <summar...
KeyEvent
csharp
microsoft__garnet
libs/storage/Tsavorite/cs/src/core/Allocator/BlittableAllocator.cs
{ "start": 476, "end": 9991 }
class ____ all data and most actual functionality. This must be the ONLY field in this structure so its size is sizeof(IntPtr).</summary> private readonly BlittableAllocatorImpl<TKey, TValue, TStoreFunctions> _this; public BlittableAllocator(AllocatorSettings settings, TStoreFunctions storeFunctions) ...
containing
csharp
unoplatform__uno
src/Uno.UI.Runtime.Skia.MacOS/Builder/HostBuilder.cs
{ "start": 204, "end": 406 }
public static class ____ { public static IUnoPlatformHostBuilder UseMacOS(this IUnoPlatformHostBuilder builder) { builder.AddHostBuilder(() => new MacOSHostBuilder()); return builder; } }
HostBuilder
csharp
abpframework__abp
framework/src/Volo.Abp.AzureServiceBus/Volo/Abp/AzureServiceBus/PublisherPool.cs
{ "start": 293, "end": 1937 }
public class ____ : IPublisherPool, ISingletonDependency { public ILogger<PublisherPool> Logger { get; set; } private bool _isDisposed; private readonly IConnectionPool _connectionPool; private readonly ConcurrentDictionary<string, Lazy<ServiceBusSender>> _publishers; public PublisherPool(IConnect...
PublisherPool
csharp
dotnet__aspire
src/Aspire.Hosting/api/Aspire.Hosting.cs
{ "start": 17185, "end": 19116 }
partial class ____ { public static ApplicationModel.IResourceBuilder<ApplicationModel.ExecutableResource> AddExecutable(this IDistributedApplicationBuilder builder, string name, string command, string workingDirectory, params object[]? args) { throw null; } public static ApplicationModel.IResource...
ExecutableResourceBuilderExtensions
csharp
OrchardCMS__OrchardCore
src/OrchardCore/OrchardCore.Users.Core/Services/UserService.cs
{ "start": 489, "end": 14599 }
public sealed class ____ : IUserService { private readonly SignInManager<IUser> _signInManager; private readonly UserManager<IUser> _userManager; private readonly IdentityOptions _identityOptions; private readonly IEnumerable<IPasswordRecoveryFormEvents> _passwordRecoveryFormEvents; private readonly...
UserService
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerInputFormatterTest.cs
{ "start": 782, "end": 28355 }
public class ____ { public string SampleString { get; set; } public TestLevelOne TestOne { get; set; } } [Fact] public async Task BuffersRequestBody_ByDefault() { // Arrange var expectedInt = 10; var expectedString = "TestString"; var expectedDateTime...
TestLevelTwo
csharp
dotnet__efcore
test/EFCore.InMemory.FunctionalTests/Query/IncludeOneToOneInMemoryTest.cs
{ "start": 186, "end": 396 }
public class ____(IncludeOneToOneInMemoryTest.OneToOneQueryInMemoryFixture fixture) : IncludeOneToOneTestBase<IncludeOneToOneInMemoryTest.OneToOneQueryInMemoryFixture>(fixture) {
IncludeOneToOneInMemoryTest
csharp
VerifyTests__Verify
src/Verify.XunitV3.Tests/AttachmentTests.cs
{ "start": 1, "end": 1286 }
public class ____ { #if NET10_0 [Fact] public async Task Simple() { var path = CurrentFile.Relative("AttachmentTests.Simple.verified.txt"); var fullPath = Path.GetFullPath(path); File.Delete(fullPath); await Verify("Foo").AutoVerify(); File.Delete(fullPath); v...
AttachmentTests
csharp
files-community__Files
src/Files.App/Converters/Converters.cs
{ "start": 5576, "end": 6714 }
partial class ____ : ValueConverter<string, bool> { /// <summary> /// Determines whether an inverse conversion should take place. /// </summary> /// <remarks>If set, the value True results in <see cref="Visibility.Collapsed"/>, and false in <see cref="Visibility.Visible"/>.</remarks> public bool Inverse { g...
StringNullOrWhiteSpaceToTrueConverter
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types/Types/Pagination/IPageObserver.cs
{ "start": 115, "end": 536 }
public interface ____ { /// <summary> /// Is called after the page has been sliced. /// </summary> /// <param name="items"> /// The items of the page. /// </param> /// <param name="pageInfo"> /// The page information. /// </param> /// <typeparam name="T"> /// The item type. ...
IPageObserver
csharp
unoplatform__uno
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml.Controls/NavigationViewDisplayMode.cs
{ "start": 224, "end": 572 }
public enum ____ { // Skipping already declared field Microsoft.UI.Xaml.Controls.NavigationViewDisplayMode.Minimal // Skipping already declared field Microsoft.UI.Xaml.Controls.NavigationViewDisplayMode.Compact // Skipping already declared field Microsoft.UI.Xaml.Controls.NavigationViewDisplayMode.Expanded } #e...
NavigationViewDisplayMode
csharp
nuke-build__nuke
source/Nuke.Common/Tools/BenchmarkDotNet/BenchmarkDotNet.Generated.cs
{ "start": 81748, "end": 82791 }
public partial class ____ : Enumeration { public static BenchmarkDotNetExporter GitHub = (BenchmarkDotNetExporter) "GitHub"; public static BenchmarkDotNetExporter StackOverflow = (BenchmarkDotNetExporter) "StackOverflow"; public static BenchmarkDotNetExporter RPlot = (BenchmarkDotNetExporter) "RPlot"; p...
BenchmarkDotNetExporter
csharp
neuecc__MessagePack-CSharp
sandbox/SharedData/Class1.cs
{ "start": 2955, "end": 3484 }
public class ____ : IMessagePackFormatter<ulong> { public OreOreFormatter2(int x, string y) { } public ulong Deserialize(ref MessagePackReader reader, MessagePackSerializerOptions options) { throw new NotImplementedException(); } public void Seri...
OreOreFormatter2
csharp
CommunityToolkit__Maui
src/CommunityToolkit.Maui/Views/Popup/PopupPage.shared.cs
{ "start": 12202, "end": 12614 }
partial class ____ : BaseConverterOneWay<LayoutOptions, LayoutOptions> { public override LayoutOptions DefaultConvertReturnValue { get; set; } = Options.DefaultPopupSettings.HorizontalOptions; public override LayoutOptions ConvertFrom(LayoutOptions value, CultureInfo? culture) => value == LayoutOptions.Fill ?...
HorizontalOptionsConverter
csharp
microsoft__garnet
libs/server/ArgSlice/ScratchBufferAllocator.cs
{ "start": 1569, "end": 1766 }
class ____ { /// <summary> /// <see cref="ScratchBuffer"/> represents a buffer managed by <see cref="ScratchBufferAllocator"/> /// </summary>
ScratchBufferAllocator
csharp
ardalis__SmartEnum
test/SmartEnum.Dapper.UnitTests/SmartEnumByValueTypeHandlerTests.cs
{ "start": 10818, "end": 11045 }
private class ____ : SmartEnum<TestEnumULong, ulong> { protected TestEnumULong(ulong value, [CallerMemberName] string name = null) : base(name, value) { } }
TestEnumULong
csharp
dotnet__maui
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6258.cs
{ "start": 450, "end": 891 }
public class ____ : _IssuesUITest { public Issue6258(TestDevice testDevice) : base(testDevice) { } public override string Issue => "[Android] ContextActions icon not working"; [Test] [Category(UITestCategories.ListView)] public void ContextActionsIconImageSource() { App.WaitForElement("ListViewItem"); App...
Issue6258
csharp
MahApps__MahApps.Metro
src/MahApps.Metro/Controls/Icons/PathIcon.cs
{ "start": 564, "end": 2919 }
public class ____ : IconElement { /// <summary>Identifies the Data dependency property.</summary> public static readonly DependencyProperty DataProperty = Path.DataProperty.AddOwner(typeof(PathIcon), new FrameworkPropertyMetadata(null)); ...
PathIcon
csharp
dotnet__BenchmarkDotNet
samples/BenchmarkDotNet.Samples/IntroStaThread.cs
{ "start": 100, "end": 460 }
public class ____ { [Benchmark, System.STAThread] public void CheckForSTA() { if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) { throw new ThreadStateException( "The current threads apartment state is not STA"); ...
IntroStaThread
csharp
dotnet__maui
src/Compatibility/Core/src/iOS/ViewRenderer.cs
{ "start": 604, "end": 755 }
public interface ____ { NativeView TabStop { get; } } [Obsolete("Use Microsoft.Maui.Controls.Handlers.Compatibility.ViewRenderer instead")]
ITabStop
csharp
dotnet__efcore
src/EFCore/Metadata/IModel.cs
{ "start": 2894, "end": 9605 }
class ____ be a proxy derived from the /// actual entity type. Returns <see langword="null" /> if no entity type with the given CLR type is found /// or the given CLR type is being used by shared type entity type /// or the entity type has a defining navigation. /// </summary> /// <rema...
may
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Input.Inking/InkRecognizer.cs
{ "start": 298, "end": 1068 }
public partial class ____ { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ internal InkRecognizer() { } #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ [global::Uno.NotImplemented("__ANDROID_...
InkRecognizer
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 1817871, "end": 1818214 }
public partial interface ____ : IOnSchemaVersionPublishUpdated_OnSchemaVersionPublishingUpdate_Errors_Changes_Changes_3, IDescriptionChanged { } [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "15.1.8.0")]
IOnSchemaVersionPublishUpdated_OnSchemaVersionPublishingUpdate_Errors_Changes_Changes_DescriptionChanged_3
csharp
exceptionless__Exceptionless
src/Exceptionless.Core/Plugins/EventUpgrader/Default/V1R844_EventUpgrade.cs
{ "start": 170, "end": 1331 }
public class ____ : PluginBase, IEventUpgraderPlugin { public V1R844EventUpgrade(AppOptions options, ILoggerFactory loggerFactory) : base(options, loggerFactory) { } public void Upgrade(EventUpgraderContext ctx) { if (ctx.Version > new Version(1, 0, 0, 844)) return; foreach (va...
V1R844EventUpgrade
csharp
MassTransit__MassTransit
tests/MassTransit.EntityFrameworkCoreIntegration.Tests/JobConsumer_Specs.cs
{ "start": 882, "end": 1275 }
public class ____ : IConsumer<JobCompleted<OddJob>> { public Task Consume(ConsumeContext<JobCompleted<OddJob>> context) { return Task.CompletedTask; } } } [Category("Flaky")] [TestFixture(typeof(SqlServerTestDbParameters))] ...
OddJobCompletedConsumer
csharp
dotnet__orleans
test/Extensions/Tester.Cosmos/PersistenceGrainTests_CosmosGrainStorage.cs
{ "start": 1820, "end": 2013 }
public class ____ : GrainPersistenceTestsRunner, IClassFixture<PersistenceGrainTests_CosmosGrainStorage_DeleteStateOnClear.Fixture> {
PersistenceGrainTests_CosmosGrainStorage_DeleteStateOnClear
csharp
AvaloniaUI__Avalonia
src/Windows/Avalonia.Win32/Interop/UnmanagedMethods.cs
{ "start": 87092, "end": 87593 }
public struct ____ { public int cbSize; public uint dwFlags; public IntPtr hwndTrack; public int dwHoverTime; } // TrackMouseEvent flags public const uint TME_HOVER = 0x00000001; public const uint TME_LEAVE = 0x00000002; pu...
TRACKMOUSEEVENT
csharp
EventStore__EventStore
src/KurrentDB.Core/Configuration/ClusterVNodeOptions.Framework.cs
{ "start": 9878, "end": 9929 }
internal class ____ : Attribute; }
OptionGroupAttribute
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.Bson.Tests/Serialization/BsonClassMapTests.cs
{ "start": 9855, "end": 9970 }
public class ____ { private static bool __firstTime = true;
BsonClassMapGetRegisteredClassMapTests
csharp
microsoft__semantic-kernel
dotnet/src/SemanticKernel.Core/Memory/SemanticTextMemory.cs
{ "start": 671, "end": 4584 }
public sealed class ____ : ISemanticTextMemory { private readonly ITextEmbeddingGenerationService? _textEmbeddingsService; private readonly IEmbeddingGenerator<string, Embedding<float>>? _embeddingGenerator; private readonly IMemoryStore _storage; /// <summary> /// Initializes a new instance of the...
SemanticTextMemory
csharp
microsoft__garnet
test/Garnet.test/TestProcedureLists.cs
{ "start": 470, "end": 4134 }
sealed class ____ : CustomTransactionProcedure { public override bool Prepare<TGarnetReadApi>(TGarnetReadApi api, ref CustomProcedureInput procInput) { var offset = 0; var lstKey = GetNextArg(ref procInput, ref offset); var lstKeyB = GetNextArg(ref procInput, ref ...
TestProcedureLists
csharp
PrismLibrary__Prism
src/Prism.Events/EventBase.cs
{ "start": 2121, "end": 5424 }
class ____ prune all the subscribers from the /// list that return a <see langword="null" /> <see cref="Action{T}"/> when calling the /// <see cref="IEventSubscription.GetExecutionStrategy"/> method.</remarks> protected virtual void InternalPublish(params object[] arguments) { ...
will
csharp
ServiceStack__ServiceStack
ServiceStack/src/ServiceStack/PostmanFeature.cs
{ "start": 3209, "end": 3343 }
public class ____ { public string name { get; set; } public PostmanRequestDetails request { get; set; } = new(); }
PostmanRequest
csharp
App-vNext__Polly
test/Polly.Core.Tests/Registry/ConfigureBuilderContextTests.cs
{ "start": 62, "end": 540 }
public static class ____ { [Fact] public static void AddReloadToken_Ok() { var context = new ConfigureBuilderContext<int>(0, "dummy", "dummy"); using var source = new CancellationTokenSource(); context.AddReloadToken(CancellationToken.None); context.AddReloadToken(source.Tok...
ConfigureBuilderContextTests
csharp
dotnet__efcore
test/EFCore.Cosmos.FunctionalTests/ConcurrencyDetectorDisabledCosmosTest.cs
{ "start": 200, "end": 1445 }
public class ____(ConcurrencyDetectorDisabledCosmosTest.ConcurrencyDetectorCosmosFixture fixture) : ConcurrencyDetectorDisabledTestBase< ConcurrencyDetectorDisabledCosmosTest.ConcurrencyDetectorCosmosFixture>(fixture) { [ConditionalTheory(Skip = "Issue #17246")] public override Task Any(bool async) ...
ConcurrencyDetectorDisabledCosmosTest
csharp
dotnet__maui
src/Controls/tests/Core.UnitTests/PageTests.cs
{ "start": 20006, "end": 20502 }
class ____ : ScrollView { public int PlatformInvalidateMeasureCount { get; set; } public int InvalidateMeasureCount { get; set; } public ScrollViewInvalidationMeasureCheck() { MeasureInvalidated += (sender, args) => { InvalidateMeasureCount++; }; } internal override void Invalidat...
ScrollViewInvalidationMeasureCheck
csharp
dotnet__orleans
src/Orleans.Analyzers/GrainInterfacePropertyDiagnosticAnalyzer.cs
{ "start": 271, "end": 2457 }
public class ____ : DiagnosticAnalyzer { private const string BaseInterfaceName = "Orleans.Runtime.IAddressable"; public const string DiagnosticId = "ORLEANS0008"; public const string Title = "Grain interfaces must not contain properties"; public const string MessageFormat = Title; ...
GrainInterfacePropertyDiagnosticAnalyzer
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Stages/AstProjectStage.cs
{ "start": 1651, "end": 1906 }
internal abstract class ____ : AstNode { public override BsonValue Render() { return new BsonDocument(RenderAsElement()); } public abstract BsonElement RenderAsElement(); }
AstProjectStageSpecification
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MethodTranslators/ContainsMethodToAggregationExpressionTranslator.cs
{ "start": 968, "end": 4004 }
internal static class ____ { // public methods public static TranslatedExpression Translate(TranslationContext context, MethodCallExpression expression) { if (StartsWithContainsOrEndsWithMethodToAggregationExpressionTranslator.CanTranslate(expression)) { ...
ContainsMethodToAggregationExpressionTranslator
csharp
unoplatform__uno
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Content/ContentEnvironmentSettingChangedEventArgs.cs
{ "start": 295, "end": 1230 }
public partial class ____ { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ internal ContentEnvironmentSettingChangedEventArgs() { } #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ [global::Un...
ContentEnvironmentSettingChangedEventArgs
csharp
AutoMapper__AutoMapper
src/UnitTests/ShouldUseConstructor.cs
{ "start": 3838, "end": 4215 }
class ____ { public string A { get; set; } } protected override MapperConfiguration CreateConfiguration() => new MapperConfiguration(cfg => { cfg.CreateMap<Source, Destination>(); }); [Fact] public void Should_ignore_implicit_static_constructor() => Should.Throw<AutoMapper...
Source
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver.Encryption/SigningRSAESPKCSCallback.cs
{ "start": 698, "end": 2496 }
internal static class ____ { public static bool RsaSign( IntPtr ctx, IntPtr key, IntPtr inData, IntPtr outData, IntPtr statusPtr) { using (var status = new Status(StatusSafeHandle.FromIntPtr(statusPtr))) { ...
SigningRSAESPKCSCallback
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ComplexTypesTrackingTestBase.cs
{ "start": 142107, "end": 142462 }
public record ____ { public string Name = null!; public decimal? CoverCharge; public bool IsTeamBased; public string? Description; public string[]? Notes; public DayOfWeek Day; public FieldTeamRecord Champions = null!; public FieldTeamRecord RunnersUp ...
FieldActivityRecord
csharp
dotnet__reactive
Rx.NET/Source/src/System.Reactive/Linq/QueryLanguageEx.cs
{ "start": 3253, "end": 13589 }
private sealed class ____<TSource> : ObservableBase<TSource> { private readonly IObservable<TSource> _source; private readonly Func<TSource, IObservable<TSource>> _selector; private readonly IScheduler _scheduler; public ExpandObservable(IObservable<TSource> sour...
ExpandObservable
csharp
atata-framework__atata
src/Atata/Attributes/Triggers/WaitForElementAttribute.cs
{ "start": 130, "end": 2642 }
public class ____ : WaitUntilAttribute { private ScopeSource? _scopeSource; /// <summary> /// Initializes a new instance of the <see cref="WaitForElementAttribute" /> class. /// </summary> /// <param name="waitBy">The kind of the element selector to wait for.</param> /// <param name="selector">...
WaitForElementAttribute
csharp
DuendeSoftware__IdentityServer
identity-server/src/IdentityServer/Stores/Caching/CachingResourceStore.cs
{ "start": 483, "end": 1115 }
public class ____<T> : IResourceStore where T : IResourceStore { private const string AllKey = "__all__"; private readonly IdentityServerOptions _options; private readonly ICache<IdentityResource> _identityCache; private readonly ICache<ApiScope> _apiScopeCache; private readonly ICache<ApiReso...
CachingResourceStore
csharp
AutoMapper__AutoMapper
src/UnitTests/MappingInheritance/ConventionMappedCollectionShouldMapBaseTypes.cs
{ "start": 525, "end": 2999 }
public class ____ { public ContainerDto() { Items = new List<ItemDto>(); } public List<ItemDto> Items { get; private set; } } // Getting an exception casting from SpecificItemDto to GeneralItemDto // because it is selecting too specific a mapping for the col...
ContainerDto
csharp
dotnet__efcore
test/EFCore.Tests/Metadata/Conventions/ForeignKeyIndexConventionTest.cs
{ "start": 1503, "end": 1702 }
private class ____ { public int PrincipalId { get; set; } public int DependentId { get; set; } public virtual PrincipalEntity Principal { get; set; } } }
DependentEntity
csharp
MassTransit__MassTransit
src/Transports/MassTransit.AmazonSqsTransport/AmazonSqsTransport/Topology/AmazonSqsPublishTopology.cs
{ "start": 130, "end": 2114 }
public class ____ : PublishTopology, IAmazonSqsPublishTopologyConfigurator { readonly IMessageTopology _messageTopology; public AmazonSqsPublishTopology(IMessageTopology messageTopology) { _messageTopology = messageTopology; TopicAttributes = new Dictionary<string, object>(); ...
AmazonSqsPublishTopology
csharp
microsoft__semantic-kernel
dotnet/src/Connectors/Connectors.AzureAIInference/Settings/AzureAIInferencePromptExecutionSettings.cs
{ "start": 6239, "end": 10280 }
class ____ need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include <see cref="ChatCompletionsToolDefinition"/>. /// </summary> [JsonPropertyName("tools")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)...
might
csharp
RicoSuter__NSwag
src/NSwag.Generation.WebApi.Tests/OperationProcessors/ApiVersionProcessorWithWebApiTests.cs
{ "start": 733, "end": 2868 }
public class ____ : ApiController { [HttpGet, Route("api/v{version:apiVersion}/foo")] public void Foo() { } [HttpGet, Route("api/v{version:apiVersion}/bar")] public void Bar() { } } [TestMethod] ...
VersionedControllerV2
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 904487, "end": 906642 }
public partial class ____ : global::System.IEquatable<UnpublishClient_UnpublishClient_Errors_ConcurrentOperationError>, IUnpublishClient_UnpublishClient_Errors_ConcurrentOperationError { public UnpublishClient_UnpublishClient_Errors_ConcurrentOperationError(global::System.String __typename, global::System.S...
UnpublishClient_UnpublishClient_Errors_ConcurrentOperationError
csharp
dotnet__extensions
src/Libraries/Microsoft.Extensions.AI.Abstractions/Embeddings/Embedding.cs
{ "start": 393, "end": 1074 }
class ____ metadata about the embedding. Derived types provide the concrete data contained in the embedding.</remarks> [JsonPolymorphic(TypeDiscriminatorPropertyName = "$type")] [JsonDerivedType(typeof(BinaryEmbedding), typeDiscriminator: "binary")] [JsonDerivedType(typeof(Embedding<byte>), typeDiscriminator: "uint8")...
provides
csharp
OrchardCMS__OrchardCore
src/OrchardCore.Modules/OrchardCore.Demo/AdminMenu.cs
{ "start": 101, "end": 2097 }
public sealed class ____ : AdminNavigationProvider { internal readonly IStringLocalizer S; public AdminMenu(IStringLocalizer<AdminMenu> stringLocalizer) { S = stringLocalizer; } protected override ValueTask BuildAsync(NavigationBuilder builder) { builder .Add(S["Dem...
AdminMenu
csharp
smartstore__Smartstore
src/Smartstore.Web.Common/Rendering/Menus/IMenuExtensions.cs
{ "start": 86, "end": 979 }
public static class ____ { /// <summary> /// Creates a menu model. /// </summary> /// <param name="menu">Menu.</param> /// <param name="actionContext">Action context to resolve current node. Can be <c>null</c>.</param> /// <returns>Menu model.</returns> public...
IMenuExtensions
csharp
FastEndpoints__FastEndpoints
Src/Library/Endpoint/Processor/IPostProcessorContext.cs
{ "start": 207, "end": 363 }
interface ____ a post-processor context, containing essential properties /// to access request, response, and associated processing details. /// </summary>
for
csharp
grandnode__grandnode2
src/Web/Grand.Web/Controllers/CommonController.cs
{ "start": 5719, "end": 18174 }
class ____ (HttpContext.Items["grand.RedirectFromGenericPathRoute"] == null || !Convert.ToBoolean(HttpContext.Items["grand.RedirectFromGenericPathRoute"])) { url = Url.RouteUrl("HomePage"); permanentRedirect = false; } //home page if (string....
if
csharp
dotnet__efcore
test/EFCore.Specification.Tests/Query/AdHocMiscellaneousQueryTestBase.cs
{ "start": 17257, "end": 17545 }
public class ____ { public int Id { get; set; } public Permission Permission { get; set; } public PermissionByte PermissionByte { get; set; } public PermissionShort PermissionShort { get; set; } } [Flags]
Entity
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.Bson.TestHelpers/JsonDrivenTests/EmbeddedResourceJsonFileReader.cs
{ "start": 856, "end": 2693 }
public abstract class ____ { // protected properties protected virtual Assembly Assembly => this.GetType().GetTypeInfo().Assembly; protected virtual string PathPrefix { get; } = null; protected virtual string[] PathPrefixes { get; } = null; protected virtual BsonDocument Re...
EmbeddedResourceJsonFileReader
csharp
nopSolutions__nopCommerce
src/Plugins/Nop.Plugin.Misc.Zettle/Domain/Api/OAuth/GetUserInfoRequest.cs
{ "start": 156, "end": 469 }
public class ____ : OAuthApiRequest, IAuthorizedRequest { /// <summary> /// Gets the request path /// </summary> public override string Path => "users/self"; /// <summary> /// Gets the request method /// </summary> public override string Method => HttpMethods.Get; }
GetUserInfoRequest
csharp
restsharp__RestSharp
test/RestSharp.Tests.Integrated/CompressionTests.cs
{ "start": 139, "end": 2625 }
public class ____ { static async Task<byte[]> GetBody(Func<Stream, Stream> getStream, string value) { using var memoryStream = new MemoryStream(); // ReSharper disable once UseAwaitUsing using (var stream = getStream(memoryStream)) { stream.WriteStringUtf8(value); } ...
CompressionTests
csharp
spectreconsole__spectre.console
docs/src/Shortcodes/EmojiTableShortcode.cs
{ "start": 171, "end": 1821 }
public class ____ : SyncShortcode { public override ShortcodeResult Execute(KeyValuePair<string, string>[] args, string content, IDocument document, IExecutionContext context) { var emojis = context.Outputs .FromPipeline(nameof(EmojiPipeline)) .OfType<Obje...
EmojiTableShortcode
csharp
MassTransit__MassTransit
src/MassTransit.Abstractions/Contexts/Context/SendEndpointConverterCache.cs
{ "start": 2419, "end": 3230 }
interface ____ { Task Send(ISendEndpoint endpoint, object message, CancellationToken cancellationToken = default); Task Send(ISendEndpoint endpoint, object message, IPipe<SendContext> pipe, CancellationToken cancellationToken = default); Task SendInitializer(ISendEndpoint e...
ISendEndpointConverter
csharp
dotnet__orleans
src/Orleans.Runtime/Lifecycle/ISiloLifecycle.cs
{ "start": 387, "end": 769 }
public interface ____ : ILifecycleObservable { /// <summary> /// The highest lifecycle stage which has completed starting. /// </summary> int HighestCompletedStage { get; } /// <summary> /// The lowest lifecycle stage which has completed stopping. /// </summa...
ISiloLifecycle
csharp
files-community__Files
src/Files.App.Controls/Omnibar/Omnibar.cs
{ "start": 255, "end": 10150 }
public partial class ____ : Control { // Constants private const string TemplatePartName_AutoSuggestBox = "PART_TextBox"; private const string TemplatePartName_ModesHostGrid = "PART_ModesHostGrid"; private const string TemplatePartName_AutoSuggestBoxSuggestionsPopup = "PART_SuggestionsPopup"; private const ...
Omnibar
csharp
louthy__language-ext
LanguageExt.Core/DataTypes/Record/RecordType.cs
{ "start": 564, "end": 743 }
record ____ /// </summary> public static Func<A, object, bool> Equality => RecordTypeEquality<A>.Equality; /// <summary> /// General typed equality function for
types
csharp
EventStore__EventStore
src/KurrentDB.Testing.ClusterVNodeApp/RestClientShim.cs
{ "start": 341, "end": 1536 }
public sealed class ____ : IAsyncInitializer, IDisposable { [ClassDataSource<NodeShim>(Shared = SharedType.PerTestSession)] public required NodeShim NodeShim { get; init; } public IRestClient Client { get; private set; } = null!; public async Task InitializeAsync() { var username = NodeShim.NodeShimOptions.User...
RestClientShim
csharp
simplcommerce__SimplCommerce
src/SimplCommerce.Infrastructure/Data/IRepositoryWithTypedId.cs
{ "start": 223, "end": 572 }
public interface ____<T, TId> where T : IEntityWithTypedId<TId> { IQueryable<T> Query(); void Add(T entity); void AddRange(IEnumerable<T> entity); IDbContextTransaction BeginTransaction(); void SaveChanges(); Task SaveChangesAsync(); void Remove(T entity...
IRepositoryWithTypedId
csharp
dotnet__aspire
src/Shared/CoalescingAsyncOperation.cs
{ "start": 577, "end": 3798 }
internal abstract class ____ : IDisposable { private readonly SemaphoreSlim _gate = new(1, 1); private Task? _runningTask; private CancellationTokenSource? _cts; /// <summary> /// Implement the core asynchronous operation logic. Implementations should throw if they fail. /// </summary> /// ...
CoalescingAsyncOperation