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 | cake-build__cake | src/Cake/Infrastructure/Composition/ModuleSearcher.cs | {
"start": 629,
"end": 1172
} | public interface ____
{
/// <summary>
/// Finds module types in the specified directory.
/// </summary>
/// <param name="root">The root directory.</param>
/// <param name="configuration">The Cake configuration.</param>
/// <returns>A collection of module types.</retur... | IModuleSearcher |
csharp | xunit__xunit | src/xunit.v1.tests/xunit/Sdk/Utilities/TypeUtilityTests.cs | {
"start": 2366,
"end": 2482
} | internal class ____
{
public void NonTestMethod() { }
}
[RunWith(typeof(StubRunner))]
| ClassWithNoTestMethods |
csharp | dotnet__aspnetcore | src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/ViewModel.cs | {
"start": 180,
"end": 379
} | public class ____
{
public int Integer { get; set; } = 23;
public long? NullableLong { get; set; } = 24L;
public TemplateModel Template { get; set; } = new SuperTemplateModel();
}
| ViewModel |
csharp | microsoft__semantic-kernel | dotnet/src/Connectors/Connectors.Google/GeminiToolCallBehavior.cs | {
"start": 440,
"end": 6661
} | class ____ be extended to support additional kinds of tools, including composite ones:
// the GeminiPromptExecutionSettings has a single ToolCallBehavior property, but we could
// expose a `public static ToolCallBehavior Composite(params ToolCallBehavior[] behaviors)`
// or the like to allow multiple disti... | can |
csharp | dotnet__extensions | src/LegacySupport/PlatformAttributes/PlatformAttributes.cs | {
"start": 6913,
"end": 7120
} | internal sealed class ____ : OSPlatformAttribute
{
public UnsupportedOSPlatformGuardAttribute(string platformName) : base(platformName)
{
}
}
}
| UnsupportedOSPlatformGuardAttribute |
csharp | Xabaril__AspNetCore.Diagnostics.HealthChecks | src/HealthChecks.Network/SftpHealthCheck.cs | {
"start": 159,
"end": 2116
} | public class ____ : IHealthCheck
{
private readonly SftpHealthCheckOptions _options;
public SftpHealthCheck(SftpHealthCheckOptions options)
{
_options = Guard.ThrowIfNull(options);
}
/// <inheritdoc />
public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, Cancella... | SftpHealthCheck |
csharp | nuke-build__nuke | source/Nuke.Build/Execution/Extensions/HandleShellCompletionAttribute.cs | {
"start": 347,
"end": 2402
} | internal class ____ : BuildExtensionAttributeBase, IOnBuildCreated
{
public void OnBuildCreated(IReadOnlyCollection<ExecutableTarget> executableTargets)
{
if (BuildServerConfigurationGeneration.IsActive)
return;
if (IsLegacy(Build.RootDirectory))
{
Host.Error(
... | HandleShellCompletionAttribute |
csharp | OrchardCMS__OrchardCore | src/OrchardCore.Modules/OrchardCore.Deployment/Steps/JsonRecipeDeploymentStep.cs | {
"start": 134,
"end": 310
} | public class ____ : DeploymentStep
{
public JsonRecipeDeploymentStep()
{
Name = "JsonRecipe";
}
public string Json { get; set; }
}
| JsonRecipeDeploymentStep |
csharp | grandnode__grandnode2 | src/Web/Grand.Web.Vendor/Controllers/HomeController.cs | {
"start": 299,
"end": 3241
} | public class ____ : BaseVendorController
{
#region Ctor
public HomeController(
IContextAccessor contextAccessor,
ILogger<HomeController> logger,
IGrandAuthenticationService authenticationService)
{
_contextAccessor = contextAccessor;
_logger = logger;
_authen... | HomeController |
csharp | unoplatform__uno | src/Uno.UI.Composition/Generated/3.0.0.0/Microsoft.UI.Composition/CompositionStrokeCap.cs | {
"start": 262,
"end": 809
} | public enum ____
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
Flat = 0,
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
Square = 1,
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TE... | CompositionStrokeCap |
csharp | atata-framework__atata | src/Atata/WebDriver/Extensions/ClickableDelegate2Extensions.cs | {
"start": 19,
"end": 3992
} | public static class ____
{
public static Clickable<TNavigateTo, TOwner> GetControl<TNavigateTo, TOwner>(this ClickableDelegate<TNavigateTo, TOwner> clickable)
where TNavigateTo : PageObject<TNavigateTo>
where TOwner : PageObject<TOwner>
=>
(Clickable<TNavigateTo, TOwner>)UIComponentR... | ClickableDelegate2Extensions |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.Devices.Perception/PerceptionColorFrameArrivedEventArgs.cs | {
"start": 360,
"end": 1943
} | public partial class ____
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
internal PerceptionColorFrameArrivedEventArgs()
{
}
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
[global::Uno.Not... | PerceptionColorFrameArrivedEventArgs |
csharp | MapsterMapper__Mapster | src/Mapster.Tests/WhenFlattening.cs | {
"start": 472,
"end": 542
} | public class ____
{
public B BClass { get; set; }
}
| C |
csharp | npgsql__efcore.pg | test/EFCore.PG.FunctionalTests/NpgsqlValueGenerationScenariosTest.cs | {
"start": 1783,
"end": 3418
} | public class ____(string databaseName) : ContextBase(databaseName)
{
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.UseHiLo();
}
}
[Fact]
public async Task Insert_with_default_value_f... | BlogContextHiLo |
csharp | FoundatioFx__Foundatio | src/Foundatio/Utility/SharedOptions.cs | {
"start": 226,
"end": 1311
} | public class ____
{
private IResiliencePolicyProvider _policyProvider;
private TimeProvider _timeProvider;
private ISerializer _serializer;
private ILoggerFactory _loggerFactory;
internal bool HasResiliencePolicyProvider => _policyProvider != null;
public IResiliencePolicyProvider ResiliencePol... | SharedOptions |
csharp | Antaris__RazorEngine | src/source/RazorEngine.Core/Legacy/Templating/TemplateService.cs | {
"start": 608,
"end": 22377
} | public class ____ : CrossAppDomainObject, ITemplateService
{
#region Fields
private readonly RazorEngineService _service;
private bool disposed;
#endregion
#region Constructor
/// <summary>
/// Initialises a new instance of <see cref="TemplateService"/>
... | TemplateService |
csharp | aspnetboilerplate__aspnetboilerplate | test/Abp.Tests/Json/EntityDtoSerialization_Tests.cs | {
"start": 658,
"end": 721
} | public class ____ : EntityDto
{
}
}
}
| MyClass2 |
csharp | abpframework__abp | framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Json/JsonResultController_Tests.cs | {
"start": 171,
"end": 732
} | public class ____ : AspNetCoreMvcTestBase
{
protected override void ConfigureServices(IServiceCollection services)
{
services.Configure<AbpJsonOptions>(options =>
{
options.OutputDateTimeFormat = "yyyy*MM*dd";
});
base.ConfigureServices(services);
}
[Fact]
... | JsonResultController_Tests |
csharp | AutoMapper__AutoMapper | src/IntegrationTests/IncludeMembers.cs | {
"start": 16684,
"end": 18873
} | public class ____ : DropCreateDatabaseAlways<Context>
{
protected override void Seed(Context context)
{
var source = new Source
{
Name = "name",
InnerSourceWrappers = { new InnerSourceWrapper { InnerSource = new InnerSource { InnerSourceDetails... | DatabaseInitializer |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.Devices.PointOfService.Provider/BarcodeScannerStartSoftwareTriggerRequestEventArgs.cs | {
"start": 314,
"end": 2073
} | public partial class ____
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
internal BarcodeScannerStartSoftwareTriggerRequestEventArgs()
{
}
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
[g... | BarcodeScannerStartSoftwareTriggerRequestEventArgs |
csharp | FastEndpoints__FastEndpoints | Src/Messaging/Messaging.Remote.Core/Client/Events/EventSubscriber.cs | {
"start": 9113,
"end": 10511
} | record ____ needed.
await Task.Delay(5000);
return;
}
var markCompletionErrorCount = 0;
while (!_isInMemProvider)
{
try
{
... | if |
csharp | AvaloniaUI__Avalonia | src/Avalonia.Controls/Presenters/ContentPresenter.cs | {
"start": 607,
"end": 25788
} | public class ____ : Control
{
/// <summary>
/// Defines the <see cref="Background"/> property.
/// </summary>
public static readonly StyledProperty<IBrush?> BackgroundProperty =
Border.BackgroundProperty.AddOwner<ContentPresenter>();
/// <summary>
/// Def... | ContentPresenter |
csharp | dotnet__machinelearning | src/Microsoft.ML.Data/DataView/CacheDataView.cs | {
"start": 31739,
"end": 32946
} | private interface ____
{
long Batch { get; }
/// <summary>
/// The index. Callers should never call this either before one of the move
/// methods has returned true, or ever after either has returned false.
/// </summary>
long GetIndex();
... | IIndex |
csharp | MassTransit__MassTransit | src/MassTransit/SagaStateMachine/ScheduleDateTimeExtensions.cs | {
"start": 110,
"end": 3599
} | public static class ____
{
public static EventActivityBinder<TInstance> Schedule<TInstance, TMessage>(this EventActivityBinder<TInstance> source,
Schedule<TInstance, TMessage> schedule, TMessage message, ScheduleTimeProvider<TInstance> timeProvider,
Action<SendContext<TMessage>> call... | ScheduleDateTimeExtensions |
csharp | dotnet__efcore | test/EFCore.Specification.Tests/ModelBuilding101OneToManyNrtTestBase.cs | {
"start": 8181,
"end": 8312
} | public class ____
{
public int Id { get; set; }
public Blog? Blog { get; set; }
}
| Post |
csharp | jellyfin__jellyfin | src/Jellyfin.Networking/Udp/SocketFactory.cs | {
"start": 150,
"end": 210
} | class ____ create different kinds of sockets.
/// </summary>
| to |
csharp | EventStore__EventStore | src/KurrentDB.Projections.Core/Services/Processing/StagedProcessingQueue.cs | {
"start": 1576,
"end": 8677
} | private class ____ {
public TaskEntry Entry;
public StageEntry Next;
}
private readonly bool[] _orderedStage;
private readonly Dictionary<object, TaskEntry> _correlationLastEntries = new Dictionary<object, TaskEntry>();
private StageEntry[] _byUnorderedStageFirst; // null means all processed? so append need to... | StageEntry |
csharp | dotnet__orleans | test/NonSilo.Tests/Caching/ConcurrentLruSoakTests.cs | {
"start": 12488,
"end": 13238
} | private sealed class ____ : Xunit.Sdk.DataAttribute
{
private readonly int _count;
public RepeatAttribute(int count)
{
if (count < 1)
{
throw new ArgumentOutOfRangeException(
paramName: nameof(count),
message: "... | RepeatAttribute |
csharp | OrchardCMS__OrchardCore | src/OrchardCore/OrchardCore.ContentManagement.GraphQL/Queries/PublicationStatusGraphType.cs | {
"start": 121,
"end": 727
} | public sealed class ____ : EnumerationGraphType
{
public PublicationStatusGraphType(IStringLocalizer<PublicationStatusGraphType> S)
{
Name = "Status";
Description = S["publication status"];
Add("PUBLISHED", PublicationStatusEnum.Published, S["published content item version"]);
Ad... | PublicationStatusGraphType |
csharp | microsoft__semantic-kernel | dotnet/src/SemanticKernel.UnitTests/Events/FunctionInvokedEventArgsTests.cs | {
"start": 226,
"end": 1160
} | public class ____
{
[Fact]
public void ResultValuePropertyShouldBeInitializedByOriginalOne()
{
//Arrange
var originalResults = new FunctionResult(KernelFunctionFactory.CreateFromMethod(() => { }), 36, CultureInfo.InvariantCulture);
var sut = new FunctionInvokedEventArgs(KernelFuncti... | FunctionInvokedEventArgsTests |
csharp | dotnet__maui | src/Controls/tests/TestCases.HostApp/Issues/Bugzilla/Bugzilla27731.cs | {
"start": 641,
"end": 1120
} | class ____ : ContentPage
{
static int count;
public Page2(string title)
{
count++;
Title = $"{title}{count}";
NavigationPage.SetHasNavigationBar(this, false);
Content = new StackLayout
{
Children =
{
new Label { Text = $"This is page {count}.", AutomationId = "PageLabel" }... | Page2 |
csharp | CommunityToolkit__WindowsCommunityToolkit | Microsoft.Toolkit.Uwp.UI.Controls.DataGrid/DataGrid/DataGridInteractionInfo.cs | {
"start": 302,
"end": 539
} | internal class ____
{
internal uint CapturedPointerId
{
get;
set;
}
internal bool IsPointerOver
{
get;
set;
}
}
} | DataGridInteractionInfo |
csharp | OrchardCMS__OrchardCore | src/OrchardCore/OrchardCore.Abstractions/Localization/CalendarName.cs | {
"start": 68,
"end": 109
} | enum ____ calendar names.
/// </summary>
| for |
csharp | dotnet__aspnetcore | src/Validation/gen/Emitters/ValidationsGenerator.Emitter.cs | {
"start": 9075,
"end": 12665
} | record ____
foreach (var constructor in k.ContainingType.GetConstructors())
{
// Look for parameter with matching name (case insensitive)
var parameter = global::System.Linq.Enumerable.FirstOrDefault(
constructor.GetParamet... | scenarios |
csharp | microsoft__PowerToys | src/modules/cmdpal/Microsoft.CmdPal.UI/Helpers/TypedEventHandlerExtensions.cs | {
"start": 459,
"end": 3681
} | public static class ____
{
/// <summary>
/// Use to invoke an async <see cref="TypedEventHandler{TSender, TResult}"/> using <see cref="DeferredEventArgs"/>.
/// </summary>
/// <typeparam name="S">Type of sender.</typeparam>
/// <typeparam name="R"><see cref="EventArgs"/> type.</typeparam>
/// <p... | TypedEventHandlerExtensions |
csharp | dotnet__orleans | src/api/Orleans.Transactions.TestKit.Base/Orleans.Transactions.TestKit.Base.cs | {
"start": 182588,
"end": 184591
} | partial class ____ : global::Orleans.TransactionTaskRequest
{
public System.Collections.Generic.List<global::Orleans.Transactions.TestKit.ITransactionTestGrain> arg0;
public System.Collections.Generic.List<global::Orleans.Transactions.TestKit.ITransactionTestGrain> arg1;
public int arg2;
... | Invokable_ITransactionCoordinatorGrain_GrainReference_2760260D |
csharp | dotnet__BenchmarkDotNet | src/BenchmarkDotNet/Configs/ImmutableConfig.cs | {
"start": 610,
"end": 6427
} | public sealed class ____ : IConfig
{
// if something is an array here instead of hashset it means it must have a guaranteed order of elements
private readonly ImmutableArray<IColumnProvider> columnProviders;
private readonly ImmutableArray<IExporter> exporters;
private readonly Immut... | ImmutableConfig |
csharp | getsentry__sentry-dotnet | src/Sentry/Platforms/Cocoa/SentryOptions.cs | {
"start": 13587,
"end": 18974
} | public class ____
{
/// <summary>
/// <para>
/// Forces enabling of session replay in unreliable environments.
/// </para>
/// <para>
/// Due to internal changes with the release of Liquid Glass on iOS 26.0, the masking of text and images c... | NativeSentryReplayOptions |
csharp | MassTransit__MassTransit | src/MassTransit.Abstractions/Serialization/EmptyMessageBody.cs | {
"start": 51,
"end": 489
} | public class ____ :
MessageBody
{
public static MessageBody Instance { get; } = new EmptyMessageBody();
public long? Length => 0;
public Stream GetStream()
{
return new MemoryStream();
}
public byte[] GetBytes()
{
return [];
... | EmptyMessageBody |
csharp | abpframework__abp | framework/src/Volo.Abp.VirtualFileSystem/Volo/Abp/VirtualFileSystem/DynamicFileProvider.cs | {
"start": 2408,
"end": 2805
} | protected struct ____
{
public ChangeTokenInfo(
CancellationTokenSource tokenSource,
CancellationChangeToken changeToken)
{
TokenSource = tokenSource;
ChangeToken = changeToken;
}
public CancellationTokenSource TokenSource { get; }
... | ChangeTokenInfo |
csharp | smartstore__Smartstore | src/Smartstore.Modules/Smartstore.PayPal/Components/PayPalViewComponentBase.cs | {
"start": 135,
"end": 1193
} | public abstract class ____ : SmartViewComponent
{
private PayPalSettings _settings;
private string _routeIdent;
protected PayPalSettings Settings
{
get => _settings ??= Services.Resolve<PayPalSettings>();
}
protected string RouteIdent
{
... | PayPalViewComponentBase |
csharp | unoplatform__uno | src/Uno.UI/UI/Xaml/Controls/WrapPanel/NumericExtensions.cs | {
"start": 334,
"end": 3405
} | internal static class ____
{
/// <summary>
/// Check if a number is zero.
/// </summary>
/// <param name="value">The number to check.</param>
/// <returns>True if the number is zero, false otherwise.</returns>
public static bool IsZero(this double value)
{
// We actually consider anything within an or... | NumericExtensions |
csharp | dotnet__aspnetcore | src/Mvc/Mvc.TagHelpers/src/ModeAttributesOfT.cs | {
"start": 447,
"end": 1207
} | internal sealed class ____<TMode>
{
/// <summary>
/// Initializes a new instance of <see cref="ModeAttributes{TMode}"/>.
/// </summary>
/// <param name="mode">The <see cref="AspNetCore.Razor.TagHelpers.ITagHelper"/>'s mode.</param>
/// <param name="attributes">The names of attributes required for th... | ModeAttributes |
csharp | dotnet__tye | src/Microsoft.Tye.Core/IYamlManifestOutput.cs | {
"start": 274,
"end": 362
} | internal interface ____
{
YamlDocument Yaml { get; }
}
}
| IYamlManifestOutput |
csharp | icsharpcode__ILSpy | ICSharpCode.Decompiler.Tests/TypeSystem/TypeSystemTestCase.cs | {
"start": 13837,
"end": 13980
} | public interface ____
{
void M(int a);
int P { get; set; }
event Action E;
int this[int x] { get; set; }
}
| IExplicitImplementationTests |
csharp | dotnet__efcore | test/EFCore.SqlServer.Tests/ValueGeneration/SqlServerValueGeneratorCacheTest.cs | {
"start": 15846,
"end": 17002
} | private class ____
{
public int Id { get; set; }
}
private static IProperty GetProperty1(IModel model)
=> model.FindEntityType(typeof(Led)).FindProperty("Zeppelin");
private static IProperty GetProperty2(IModel model)
=> model.FindEntityType(typeof(Led)).FindProperty("Stairway"... | Robot |
csharp | OrchardCMS__OrchardCore | src/OrchardCore/OrchardCore.Data.YesSql/Migration/DataMigrationManager.cs | {
"start": 334,
"end": 3564
} | public class ____ : IDataMigrationManager
{
private const string _updateFromPrefix = "UpdateFrom";
private const string _asyncSuffix = "Async";
private readonly IEnumerable<IDataMigration> _dataMigrations;
private readonly ISession _session;
private readonly IStore _store;
private readonly IExt... | DataMigrationManager |
csharp | ServiceStack__ServiceStack | ServiceStack.Text/tests/ServiceStack.Text.Tests/JsonTests/JsonEnnumerableTests.cs | {
"start": 240,
"end": 619
} | public class ____
{
public ReadOnlyCollection<string> Results { get; set; }
}
[Test]
public void Does_deserialize_Empty_ReadOnlyCollection()
{
var dto = "{\"Results\":[]}".FromJson<ModelWithReadOnlyCollection>();
Assert.That(dto.Results.Count,... | ModelWithReadOnlyCollection |
csharp | reactiveui__Akavache | src/Akavache.Benchmarks.V10/Utility.cs | {
"start": 468,
"end": 2728
} | internal static class ____
{
/// <summary>
/// Deletes a directory.
/// </summary>
/// <param name="directoryPath">The path to delete.</param>
public static void DeleteDirectory(string directoryPath)
{
// From https://stackoverflow.com/questions/329355/can... | Utility |
csharp | dotnet__aspnetcore | src/Middleware/WebSockets/test/ConformanceTests/Autobahn/AutobahnSpec.cs | {
"start": 260,
"end": 1787
} | public class ____
{
public string OutputDirectory { get; }
public IList<ServerSpec> Servers { get; } = new List<ServerSpec>();
public IList<string> Cases { get; } = new List<string>();
public IList<string> ExcludedCases { get; } = new List<string>();
public AutobahnSpec(string outputDirectory)
... | AutobahnSpec |
csharp | AvaloniaUI__Avalonia | src/Avalonia.Base/Media/IImmutableGlyphRunReference.cs | {
"start": 209,
"end": 550
} | internal class ____ : IImmutableGlyphRunReference
{
public ImmutableGlyphRunReference(IRef<IGlyphRunImpl>? glyphRun)
{
GlyphRun = glyphRun;
}
public IRef<IGlyphRunImpl>? GlyphRun { get; private set; }
public void Dispose()
{
GlyphRun?.Dispose();
GlyphRun = null;
}
} | ImmutableGlyphRunReference |
csharp | ServiceStack__ServiceStack | ServiceStack.Aws/tests/ServiceStack.Aws.Tests/Sqs/SqsMqBufferTestsDrain.cs | {
"start": 251,
"end": 5253
} | public class ____
{
private SqsQueueManager sqsQueueManager;
private SqsMqBufferFactory sqsMqBufferFactory;
[OneTimeSetUp]
public void FixtureSetup()
{
sqsQueueManager = new SqsQueueManager(SqsTestClientFactory.GetConnectionFactory());
sqsMqBufferFactory = new SqsMqBufferFactory(Sqs... | SqsMqBufferTestsDrain |
csharp | dotnet__machinelearning | src/Microsoft.ML.Data/EntryPoints/SummarizePredictor.cs | {
"start": 816,
"end": 3926
} | public sealed class ____ : InputBase
{
}
[TlcModule.EntryPoint(Name = "Models.Summarizer", Desc = "Summarize a linear regression predictor.")]
public static CommonOutputs.SummaryOutput Summarize(IHostEnvironment env, SummarizePredictor.Input input)
{
Contracts.CheckV... | Input |
csharp | ChilliCream__graphql-platform | src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Mappers/TestDataHelper.cs | {
"start": 425,
"end": 1738
} | public static class ____
{
public static ClientModel CreateClientModelAsync(
string queryResource,
string schemaResource)
{
var schema = SchemaHelper.Load(
[
new(Utf8GraphQLParser.Parse(Open(schemaResource))),
new(Utf8GraphQLParser.Parse("exten... | TestDataHelper |
csharp | dotnet__orleans | src/Orleans.Streaming/QueueBalancer/IResourceSelector.cs | {
"start": 230,
"end": 772
} | internal interface ____<T>
{
/// <summary>
/// Number of resources
/// </summary>
int Count { get; }
/// <summary>
/// Try to select certain count of resources from resource list, which doesn't overlap with existing selection
/// </summary>
/// <param... | IResourceSelector |
csharp | dotnet__orleans | src/Orleans.Streaming/Common/SimpleCache/SimpleQueueCacheOptions.cs | {
"start": 171,
"end": 683
} | public class ____
{
/// <summary>
/// Gets or sets the size of the cache.
/// </summary>
/// <value>The size of the cache.</value>
public int CacheSize { get; set; } = DEFAULT_CACHE_SIZE;
/// <summary>
/// The default value of <see cref="CacheSize"/>.
... | SimpleQueueCacheOptions |
csharp | dotnet__aspnetcore | src/Mvc/test/WebSites/RazorWebSite/Components/ComponentWithRelativePath.cs | {
"start": 207,
"end": 418
} | public class ____ : ViewComponent
{
public IViewComponentResult Invoke(Person person)
{
return View("../Shared/Components/ComponentWithRelativePath.cshtml", person);
}
}
| ComponentWithRelativePath |
csharp | ChilliCream__graphql-platform | src/HotChocolate/Data/test/Data.Filters.Tests/FilterInputTypeTest.cs | {
"start": 15606,
"end": 15855
} | public class ____
: FilterInputType<IgnoreTest>
{
protected override void Configure(IFilterInputTypeDescriptor<IgnoreTest> descriptor)
{
descriptor.Ignore(x => x.Id);
}
}
| IgnoreTestFilterInputType |
csharp | atata-framework__atata | test/Atata.UnitTests/DataProvision/ObjectVerificationProviderExtensionMethodTests.cs | {
"start": 11250,
"end": 11835
} | public class ____ : ExtensionMethodTestSuite<int[], EndWithAny_IEnumerable>
{
static EndWithAny_IEnumerable() =>
For([1, 2, 3, 5])
.ThrowsArgumentNullException(should => should.EndWithAny((null as IEnumerable<int>)!))
.ThrowsArgumentException(should => should.EndW... | EndWithAny_IEnumerable |
csharp | dotnet__maui | src/Controls/src/Core/SafeAreaElement.cs | {
"start": 153,
"end": 3383
} | internal static class ____
{
/// <summary>
/// The backing store for the <see cref="ISafeAreaElement.SafeAreaEdges" /> bindable property.
/// </summary>
public static readonly BindableProperty SafeAreaEdgesProperty =
BindableProperty.Create(nameof(ISafeAreaElement.SafeAreaEdges), typeof(SafeAreaEdges), type... | SafeAreaElement |
csharp | dotnetcore__Util | test/Util.Data.Sql.Tests/Builders/Clauses/SelectClauseTest.cs | {
"start": 201,
"end": 7487
} | public class ____ {
#region 测试初始化
/// <summary>
/// Select子句
/// </summary>
private readonly SelectClause _clause;
/// <summary>
/// 测试初始化
/// </summary>
public SelectClauseTest() {
_clause = new SelectClause( new TestSqlBuilder() );
}
/// <summary>
/// 获取Sql语... | SelectClauseTest |
csharp | unoplatform__uno | src/Uno.UI/UI/Xaml/Controls/NumberBox/NumberBox.mux.cs | {
"start": 698,
"end": 2958
} | partial class ____
{
private const string c_numberBoxHeaderName = "HeaderContentPresenter";
private const string c_numberBoxDownButtonName = "DownSpinButton";
private const string c_numberBoxUpButtonName = "UpSpinButton";
private const string c_numberBoxTextBoxName = "InputBox";
private const string c_numberBoxPop... | NumberBox |
csharp | dotnetcore__WTM | src/WalkingTec.Mvvm.Core/Models/TopBasePoco.cs | {
"start": 327,
"end": 2820
} | public class ____
{
/// <summary>
/// Id
/// </summary>
[Key]
public Guid ID
{
get; set;
}
/// <summary>
/// 是否选中
/// 标识当前行数据是否被选中
/// </summary>
[NotMapped]
//[JsonConverter(typeof(InternalBoolConv... | TopBasePoco |
csharp | GtkSharp__GtkSharp | Source/OldStuff/audit/mono-api-diff.cs | {
"start": 30845,
"end": 33822
} | class ____ : XMLNameGroup
{
Hashtable properties = new Hashtable ();
bool isTodo;
string comment;
protected override bool CheckIfAdd (string value, XmlNode node)
{
if (IsTODOAttribute (value)) {
isTodo = true;
XmlNode pNode = node.SelectSingleNode ("properties");
if (pNode != null && pNode.... | XMLAttributes |
csharp | dotnet__orleans | test/Extensions/TesterAzureUtils/Persistence/PersistenceStateTests_AzureTableGrainStorage.cs | {
"start": 363,
"end": 536
} | public class ____ : Base_PersistenceGrainTests_AzureStore, IClassFixture<PersistenceStateTests_AzureTableGrainStorage.Fixture>
{
| PersistenceStateTests_AzureTableGrainStorage |
csharp | SixLabors__ImageSharp | src/ImageSharp/Formats/Png/PngEncoder.cs | {
"start": 220,
"end": 2070
} | public class ____ : QuantizingAnimatedImageEncoder
{
/// <summary>
/// Gets the number of bits per sample or per palette index (not per pixel).
/// Not all values are allowed for all <see cref="ColorType" /> values.
/// </summary>
public PngBitDepth? BitDepth { get; init; }
/// <summary>
//... | PngEncoder |
csharp | AvaloniaUI__Avalonia | src/tools/Avalonia.Generators/Common/Domain/IViewResolver.cs | {
"start": 251,
"end": 434
} | internal record ____(string ClassName, string Namespace)
{
public string FullName => $"{Namespace}.{ClassName}";
public override string ToString() => FullName;
}
| ResolvedViewInfo |
csharp | jbogard__MediatR | samples/MediatR.Examples/ExceptionHandler/Handlers.cs | {
"start": 794,
"end": 1155
} | public class ____ : IRequestHandler<PingResourceTimeout, Pong>
{
private readonly TextWriter _writer;
public PingResourceTimeoutHandler(TextWriter writer) => _writer = writer;
public Task<Pong> Handle(PingResourceTimeout request, CancellationToken cancellationToken)
{
throw new TaskCanceledExc... | PingResourceTimeoutHandler |
csharp | npgsql__npgsql | src/Npgsql/Replication/PgOutput/Messages/RollbackPreparedMessage.cs | {
"start": 172,
"end": 2022
} | public sealed class ____ : PreparedTransactionControlMessage
{
/// <summary>
/// Flags for the rollback prepared; currently unused.
/// </summary>
public RollbackPreparedFlags Flags { get; private set; }
/// <summary>
/// The end LSN of the prepared transaction.
/// </summary>
public Np... | RollbackPreparedMessage |
csharp | abpframework__abp | modules/cms-kit/src/Volo.CmsKit.Admin.Application.Contracts/Volo/CmsKit/Admin/Blogs/UpdateBlogPostDto.cs | {
"start": 228,
"end": 998
} | public class ____ : ExtensibleObject, IHasConcurrencyStamp
{
[Required]
[DynamicMaxLength(typeof(BlogPostConsts), nameof(BlogPostConsts.MaxTitleLength))]
public string Title { get; set; }
[Required]
[DynamicStringLength(typeof(BlogPostConsts), nameof(BlogPostConsts.MaxSlugLength), nameof(BlogPostCo... | UpdateBlogPostDto |
csharp | duplicati__duplicati | Duplicati/Library/Utility/PermissionHelper.cs | {
"start": 5632,
"end": 6148
} | struct ____
{
/// <summary>
/// The locally unique identifier (LUID) for the privilege.
/// </summary>
public LUID Luid;
/// <summary>
/// The attributes for the privilege.
/// </summary>
public int Attributes;
... | LUID_AND_ATTRIBUTES |
csharp | dotnet__orleans | src/api/Orleans.Transactions.TestKit.Base/Orleans.Transactions.TestKit.Base.cs | {
"start": 9494,
"end": 10377
} | partial class ____ : TransactionTestRunnerBase
{
public GrainFaultTransactionTestRunner(IGrainFactory grainFactory, System.Action<string> output) : base(default!, default!) { }
public virtual System.Threading.Tasks.Task AbortTransactionExceptionInnerExceptionOnlyContainsOneRootCauseException(strin... | GrainFaultTransactionTestRunner |
csharp | unoplatform__uno | src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml/AutomationTextAttributesEnum.cs | {
"start": 255,
"end": 6094
} | public enum ____
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
AnimationStyleAttribute = 40000,
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
BackgroundColorAttribute = 40001,
#endif
#if __A... | AutomationTextAttributesEnum |
csharp | LibreHardwareMonitor__LibreHardwareMonitor | LibreHardwareMonitorLib/Interop/NvApi.cs | {
"start": 22267,
"end": 22418
} | internal enum ____
{
CurrentFrequency,
BaseClock,
BoostClock,
ClockTypeNumber
}
| NvGpuClockFrequenciesClockType |
csharp | abpframework__abp | framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Conventions/AbpServiceConvention_Tests.cs | {
"start": 4491,
"end": 4585
} | public class ____ : BaseController
{
}
[ExposeServices(typeof(BaseController))]
| DerivedController |
csharp | dotnet__aspnetcore | src/Servers/Kestrel/test/InMemory.FunctionalTests/TlsListenerTests.cs | {
"start": 935,
"end": 4561
} | public class ____ : TestApplicationErrorLoggerLoggedTest
{
private static readonly X509Certificate2 _x509Certificate2 = TestResources.GetTestCertificate();
[Fact]
public async Task TlsClientHelloBytesCallback_InvokedAndHasTlsMessageBytes()
{
var tlsClientHelloCallbackInvoked = false;
v... | TlsListenerTests |
csharp | dotnet__efcore | test/EFCore.Sqlite.FunctionalTests/Scaffolding/Baselines/BigModel/DbContextModelBuilder.cs | {
"start": 484,
"end": 383891
} | public partial class ____
{
private DbContextModel()
: base(skipDetectChanges: false, modelId: new Guid("00000000-0000-0000-0000-000000000000"), entityTypeCount: 10)
{
}
partial void Initialize()
{
var autoIncrementEntity = AutoIncrementEntityEntityTy... | DbContextModel |
csharp | AvaloniaUI__Avalonia | src/Avalonia.Base/Media/ImmediateDrawingContext.cs | {
"start": 219,
"end": 896
} | public sealed class ____ : IDisposable, IOptionalFeatureProvider
{
private readonly bool _ownsImpl;
private int _currentLevel;
private static ThreadSafeObjectPool<Stack<PushedState>> StateStackPool { get; } =
ThreadSafeObjectPool<Stack<PushedState>>.Default;
pri... | ImmediateDrawingContext |
csharp | unoplatform__uno | src/Uno.UI/UI/Xaml/Media/PathSegmentCollection.cs | {
"start": 159,
"end": 418
} | public partial class ____ : DependencyObjectCollection<PathSegment>
{
public PathSegmentCollection()
{
}
private protected override void OnCollectionChanged()
{
base.OnCollectionChanged();
this.InvalidateMeasure();
}
}
}
| PathSegmentCollection |
csharp | pythonnet__pythonnet | src/runtime/StateSerialization/MaybeMethodBase.cs | {
"start": 244,
"end": 6662
} | internal struct ____<T> : ISerializable where T: MethodBase
{
// .ToString() of the serialized object
const string SerializationName = "s";
// The ReflectedType of the object
const string SerializationType = "t";
// Fhe parameters of the MethodBase
const string Serial... | MaybeMethodBase |
csharp | dotnet__aspire | src/Aspire.Hosting/IInteractionService.cs | {
"start": 669,
"end": 5866
} | public interface ____
{
/// <summary>
/// Gets a value indicating whether the interaction service is available. If <c>false</c>,
/// this service is not available to interact with the user and service methods will throw
/// an exception.
/// </summary>
bool IsAvailable { get; }
/// <summary... | IInteractionService |
csharp | fluentassertions__fluentassertions | Src/FluentAssertions/Equivalency/Ordering/CollectionMemberObjectInfo.cs | {
"start": 65,
"end": 844
} | internal class ____ : IObjectInfo
{
public CollectionMemberObjectInfo(IObjectInfo context)
{
Path = GetAdjustedPropertyPath(context.Path);
#pragma warning disable CS0618
Type = context.Type;
#pragma warning restore CS0618
ParentType = context.ParentType;
RuntimeType = context.R... | CollectionMemberObjectInfo |
csharp | dotnet__reactive | Rx.NET/Source/src/System.Reactive/Linq/Observable/Sum.cs | {
"start": 7415,
"end": 7841
} | internal sealed class ____ : Producer<decimal?, SumDecimalNullable._>
{
private readonly IObservable<decimal?> _source;
public SumDecimalNullable(IObservable<decimal?> source)
{
_source = source;
}
protected override _ CreateSink(IObserver<decimal?> observer) =>... | SumDecimalNullable |
csharp | moq__moq4 | src/Moq.Tests/ReflectionExtensions.cs | {
"start": 267,
"end": 565
} | public static class ____
{
public static IEnumerable<MethodInfo> GetAccessors(this EventInfo @event, bool nonPublic = false)
{
yield return @event.GetAddMethod(nonPublic);
yield return @event.GetRemoveMethod(nonPublic);
}
}
}
| ReflectionExtensions |
csharp | protobuf-net__protobuf-net | src/protobuf-net.Test/CustomSerializers.cs | {
"start": 128,
"end": 2003
} | public class ____
{
[Fact]
public void CustomSerializerDetectedOnModel()
{
var model = RuntimeTypeModel.Create();
model.AutoCompile = false;
model.Add<HazCustomSerializer>();
model.Add<HazIndirectCustomSerializer>();
var rt = model[... | CustomSerializers |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.Graphics.Printing.OptionDetails/PrintCustomItemListOptionDetails.cs | {
"start": 314,
"end": 10856
} | public partial class ____ : global::Windows.Graphics.Printing.OptionDetails.IPrintOptionDetails, global::Windows.Graphics.Printing.OptionDetails.IPrintCustomOptionDetails, global::Windows.Graphics.Printing.OptionDetails.IPrintItemListOptionDetails
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ |... | PrintCustomItemListOptionDetails |
csharp | protobuf-net__protobuf-net | src/Examples/EnumTests.cs | {
"start": 560,
"end": 638
} | enum ____
{
A = -1, B = 0, C = 1
}
[ProtoContract]
| NegEnum |
csharp | fluentassertions__fluentassertions | Src/FluentAssertions/Types/TypeAssertions.cs | {
"start": 62627,
"end": 95835
} | interface ____ member is not being explicitly implemented.</typeparam>
/// <param name="name">The name of the method.</param>
/// <param name="parameterTypes">The expected types of the method parameters.</param>
/// <param name="because">
/// A formatted phrase as is supported by <see cref="string.Form... | whose |
csharp | EventStore__EventStore | src/SchemaRegistry/KurrentDB.SchemaRegistry.Tests/Modules/Schemas/Domain/UpdateSchemaCommandTests.cs | {
"start": 5753,
"end": 6238
} | public class ____ : TestCaseGenerator<SchemaDetails, string, string> {
protected override IEnumerable<(SchemaDetails, string, string)> Data() {
yield return (
new SchemaDetails { Compatibility = CompatibilityMode.Forward },
"Details.Compatibility",
"Compatibility mode is not modifiable"
);
yield ... | NotModifiableTestCases |
csharp | RicoSuter__NSwag | src/NSwag.Core/OpenApiParameterKind.cs | {
"start": 639,
"end": 1707
} | public enum ____
{
/// <summary>An undefined kind.</summary>
[EnumMember(Value = "undefined")]
Undefined,
/// <summary>A JSON object as POST or PUT body (only one parameter of this type is allowed). </summary>
[EnumMember(Value = "body")]
Body,
/// <summary>... | OpenApiParameterKind |
csharp | Tyrrrz__YoutubeExplode | YoutubeExplode/Common/IBatchItem.cs | {
"start": 347,
"end": 455
} | public interface ____ { }
/// <summary>
/// Extensions for <see cref="IBatchItem" />.
/// </summary>
| IBatchItem |
csharp | ServiceStack__ServiceStack | ServiceStack.OrmLite/tests/ServiceStack.OrmLite.Tests/Issues/MultiColumnOrderByDescending.cs | {
"start": 2114,
"end": 2756
} | public class ____
{
public int Id { get; set; }
public double Value { get; set; }
public DateTime? Time { get; set; }
}
[Test]
public void Can_OrderBy_DateTime()
{
using var db = OpenDbConnection();
db.DropAndCreateTable<Record>();
db.InsertAll([
... | Record |
csharp | dotnet__maui | src/Controls/tests/DeviceTests/Elements/HybridWebView/HybridWebViewTests_Interception.cs | {
"start": 397,
"end": 13780
} | public partial class ____ : HybridWebViewTestsBase
{
[Fact]
public Task RequestsCanBeInterceptedAndCustomDataReturned() =>
RunTest(async (hybridWebView) =>
{
hybridWebView.WebResourceRequested += (sender, e) =>
{
if (e.Uri.Host == "0.0.0.1")
{
// 1. Create the response data
var response = ... | HybridWebViewTests_Interception |
csharp | dotnet__reactive | Ix.NET/Source/System.Linq.Async/System/Linq/IAsyncGrouping.cs | {
"start": 948,
"end": 1073
} | public interface ____<out TKey, out TElement> : IAsyncEnumerable<TElement>
{
TKey Key { get; }
}
}
| IAsyncGrouping |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.Devices.Input.Preview/GazeDeviceWatcherAddedPreviewEventArgs.cs | {
"start": 304,
"end": 1284
} | public partial class ____
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
internal GazeDeviceWatcherAddedPreviewEventArgs()
{
}
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
[global::Uno.N... | GazeDeviceWatcherAddedPreviewEventArgs |
csharp | duplicati__duplicati | Duplicati/Library/Utility/PermissionHelper.cs | {
"start": 4920,
"end": 5632
} | struct ____
{
public uint LowPart;
public int HighPart;
/// <inheritdoc/>
public override bool Equals(object? obj)
{
return obj is LUID other &&
LowPart == other.LowPart &&
HighPart == othe... | LUID |
csharp | dotnet__aspnetcore | src/Mvc/test/WebSites/RazorPagesWebSite/Pages/PropertyBinding/BindPropertiesOnModel.cs | {
"start": 261,
"end": 413
} | public class ____ : PageModel
{
[FromQuery]
public string Property1 { get; set; }
public string Property2 { get; set; }
}
| BindPropertiesOnModel |
csharp | OrchardCMS__OrchardCore | src/OrchardCore.Modules/OrchardCore.ContentFields/Settings/LocalizationSetContentPickerFieldSettings.cs | {
"start": 183,
"end": 360
} | public class ____ : FieldSettings
{
public bool Multiple { get; set; }
public string[] DisplayedContentTypes { get; set; } = [];
}
| LocalizationSetContentPickerFieldSettings |
csharp | CommunityToolkit__dotnet | tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn4001.UnitTests/Test_ClassUsingAttributeInsteadOfInheritanceCodeFixer.cs | {
"start": 4844,
"end": 6042
} | class ____ : Attribute
{
}
""";
CSharpCodeFixTest test = new()
{
TestCode = original,
FixedCode = @fixed,
ReferenceAssemblies = ReferenceAssemblies.Net.Net80
};
test.TestState.AdditionalReferences.Add(typeof(Observ... | TestAttribute |
csharp | dotnetcore__CAP | samples/Sample.ConsoleApp/Program.cs | {
"start": 1481,
"end": 1860
} | public class ____ : SubscribeFilter
{
public override Task OnSubscribeExceptionAsync(ExceptionContext context)
{
if (context.Exception.InnerException is TimeoutException)
{
throw new TimeoutException("Http request timeout");
}
return b... | Filter |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.