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 | microsoft__PowerToys | src/dsc/v3/PowerToys.DSC.UnitTests/SettingsResourceTests/SettingsResourceModuleTest`1.cs | {
"start": 611,
"end": 9518
} | public abstract class ____<TSettingsConfig> : BaseDscTest
where TSettingsConfig : ISettingsConfig, new()
{
private readonly SettingsUtils _settingsUtils = new();
private TSettingsConfig _originalSettings;
protected TSettingsConfig DefaultSettings => new();
protected string Module { get; }
pro... | SettingsResourceModuleTest |
csharp | neuecc__MessagePack-CSharp | sandbox/SharedData/Class1.cs | {
"start": 8486,
"end": 9054
} | public class ____ : IMessagePackSerializationCallbackReceiver
{
[Key(0)]
public int X { get; set; }
[IgnoreMember]
public bool CalledBefore { get; private set; }
[IgnoreMember]
public bool CalledAfter { get; private set; }
public Callback1(int x)
{
... | Callback1 |
csharp | aspnetboilerplate__aspnetboilerplate | test/Abp.EntityFrameworkCore.Tests/Tests/ExplicitLoading_Tests.cs | {
"start": 219,
"end": 1862
} | public class ____ : EntityFrameworkCoreModuleTestBase
{
private readonly IRepository<Blog> _blogRepository;
private readonly IRepository<Post, Guid> _postRepository;
public ExplicitLoading_Tests()
{
_blogRepository = Resolve<IRepository<Blog>>();
_postRepository = Resolve<IRepository<Po... | ExplicitLoading_Tests |
csharp | unoplatform__uno | src/Uno.UI.RuntimeTests/Tests/NativeCtorGeneratorTests/GameBoardCanvas.cs | {
"start": 104,
"end": 340
} | public partial class ____ : Android.Views.View
{
public MyCustomView(Context context) : base(context) { }
public MyCustomView(Context context, Android.Util.IAttributeSet attributeSet) : base(context, attributeSet) { }
}
| MyCustomView |
csharp | louthy__language-ext | LanguageExt.Core/Effects/IO/DSL/IOLocal.cs | {
"start": 99,
"end": 278
} | abstract record ____<A>(Func<EnvIO, EnvIO> MapEnvIO) : IO<A>
{
public abstract IO<A> MakeOperation();
public override string ToString() =>
"IO local";
}
| IOLocal |
csharp | EventStore__EventStore | src/KurrentDB.SecondaryIndexing/Indexes/EventType/EventTypeSql.cs | {
"start": 597,
"end": 1385
} | public struct ____ : IQuery<ReadEventTypeIndexQueryArgs, IndexQueryRecord> {
public static BindingContext Bind(in ReadEventTypeIndexQueryArgs args, PreparedStatement statement)
=> new(statement) {
args.EventType,
args.StartPosition,
args.EndPosition,
args.Count
};
public static ReadOnlySpan<b... | ReadEventTypeIndexQueryExcl |
csharp | dotnetcore__Util | test/Util.Ui.NgZorro.Tests/TreeTables/TreeTableColumnTagHelperTest.cs | {
"start": 360,
"end": 8815
} | public class ____ {
#region 测试初始化
/// <summary>
/// 输出工具
/// </summary>
private readonly ITestOutputHelper _output;
/// <summary>
/// TagHelper包装器
/// </summary>
private readonly TagHelperWrapper<Customer> _wrapper;
/// <summary>
... | TreeTableColumnTagHelperTest |
csharp | dotnet__aspnetcore | src/HealthChecks/Abstractions/src/HealthReportEntry.cs | {
"start": 416,
"end": 3927
} | public struct ____
{
private static readonly IReadOnlyDictionary<string, object> _emptyReadOnlyDictionary = new Dictionary<string, object>();
/// <summary>
/// Creates a new <see cref="HealthReportEntry"/> with the specified values for <paramref name="status"/>, <paramref name="exception"/>,
/// <param... | HealthReportEntry |
csharp | StackExchange__StackExchange.Redis | src/StackExchange.Redis/Enums/StreamTrimResult.cs | {
"start": 104,
"end": 679
} | public enum ____
{
/// <summary>
/// No such id exists in the provided stream key.
/// </summary>
NotFound = -1,
/// <summary>
/// Entry was deleted from the stream.
/// </summary>
Deleted = 1,
/// <summary>
/// Entry was not deleted because it has either not been delivered to ... | StreamTrimResult |
csharp | atata-framework__atata | test/Atata.IntegrationTests/Components/GoTo2Page.cs | {
"start": 76,
"end": 612
} | public class ____ : Page<_>
{
public const string DefaultUrl = "/goto2";
public LinkDelegate<GoTo1Page, _> GoTo1 { get; private set; }
[GoTemporarily]
public LinkDelegate<GoTo1Page, _> GoTo1Temporarily { get; private set; }
public LinkDelegate<_> GoTo1Blank { get; private set; }
public LinkD... | GoTo2Page |
csharp | dotnet__orleans | test/Orleans.Serialization.UnitTests/BuiltInCodecTests.cs | {
"start": 38232,
"end": 38997
} | public class ____(ITestOutputHelper output) : FieldCodecTester<ValueTuple<string, string, string>, ValueTupleCodec<string, string, string>>(output)
{
protected override ValueTuple<string, string, string> CreateValue() => ValueTuple.Create(
Guid.NewGuid().ToString(),
Guid.NewGuid().To... | ValueTuple3Tests |
csharp | JoshClose__CsvHelper | tests/CsvHelper.Tests/Configuration/CsvClassMapCollectionTests.cs | {
"start": 1366,
"end": 1423
} | private sealed class ____ : ClassMap<Parent> { }
| ParentMap |
csharp | dotnet__maui | src/Controls/tests/TestCases.HostApp/Issues/Issue8295.xaml.cs | {
"start": 160,
"end": 305
} | public class ____ : NavigationPage
{
public Issue8295_NavigationPage() : base(new Issue8295_ContentPage())
{
}
}
| Issue8295_NavigationPage |
csharp | dotnet__orleans | test/Orleans.CodeGenerator.Tests/OrleansSourceGeneratorTests.cs | {
"start": 15849,
"end": 16003
} | public enum ____
{
None,
One,
Two,
Three
}
[GenerateSerializer(GenerateFieldIds = GenerateFieldIds.PublicProperties), Immutable]
| MyCustomEnum |
csharp | cake-build__cake | src/Cake.Common/Tools/DotNet/NuGet/Push/DotNetNuGetPusher.cs | {
"start": 446,
"end": 4275
} | public sealed class ____ : DotNetTool<DotNetNuGetPushSettings>
{
/// <summary>
/// Initializes a new instance of the <see cref="DotNetNuGetPusher" /> class.
/// </summary>
/// <param name="fileSystem">The file system.</param>
/// <param name="environment">The environment.</pa... | DotNetNuGetPusher |
csharp | MassTransit__MassTransit | tests/MassTransit.HangfireIntegration.Tests/ScheduleMessage_Specs.cs | {
"start": 1523,
"end": 2960
} | public class ____ :
HangfireInMemoryTestFixture
{
[Test]
public async Task Should_get_both_messages()
{
await Scheduler.ScheduleSend(InputQueueAddress, DateTime.Now, new FirstMessage());
await _first;
await _second;
if (_secondActivi... | ScheduleMessageUsingJson_Specs |
csharp | GtkSharp__GtkSharp | Source/Libs/PangoSharp/GlyphString.cs | {
"start": 43,
"end": 820
} | class ____
//
// Copyright (c) 2005 Novell, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,... | customizations |
csharp | ServiceStack__ServiceStack | ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/RouteTests.cs | {
"start": 14912,
"end": 15006
} | public class ____ : IReturn<ModifiedRoute>
{
public string Data { get; set; }
}
| ModifiedRoute |
csharp | CommunityToolkit__WindowsCommunityToolkit | Microsoft.Toolkit.Uwp.Notifications/Toasts/Compat/ToastNotificationManagerCompat.cs | {
"start": 13648,
"end": 14768
} | private class ____ : IClassFactory
{
private Type _activatorType;
public NotificationActivatorClassFactory(Type activatorType)
{
_activatorType = activatorType;
}
public int CreateInstance(IntPtr pUnkOuter, ref Guid riid, out IntPtr p... | NotificationActivatorClassFactory |
csharp | bitwarden__server | bitwarden_license/test/Commercial.Core.Test/AdminConsole/AutoFixture/ProviderUserFixtures.cs | {
"start": 705,
"end": 1235
} | public class ____ : CustomizeAttribute
{
private readonly ProviderUserStatusType _status;
private readonly ProviderUserType _type;
public ProviderUserAttribute(
ProviderUserStatusType status = ProviderUserStatusType.Confirmed,
ProviderUserType type = ProviderUserType.ProviderAdmin)
{
... | ProviderUserAttribute |
csharp | unoplatform__uno | src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/LayoutPanel/LayoutPanelTests.cs | {
"start": 1100,
"end": 6904
} | public partial class ____ : MUXApiTestBase
{
[ClassInitialize]
[TestProperty("Classification", "Integration")]
public static void ClassInitialize(TestContext context) { }
[TestMethod]
public void VerifyPaddingAndBorderThicknessLayoutOffset()
{
RunOnUIThread.Execute(() =>
{
double width = 400;
... | LayoutPanelTests |
csharp | ChilliCream__graphql-platform | src/HotChocolate/Core/src/Types/Types/Composite/Directives/InaccessibleDescriptorExtensions.cs | {
"start": 6143,
"end": 6244
} | interface ____ descriptor to apply the directive to.
/// </param>
/// <returns>
/// The | field |
csharp | dotnet__BenchmarkDotNet | tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/General/BenchmarkClassAnalyzerTests.cs | {
"start": 47578,
"end": 49844
} | class ____
{
{{(useLocalConstants ? $"private const bool _xTrue = {(useConstantsFromOtherClass ? "Constants.Value1" : "true")};" : "")}}
{{baselineBenchmarkAttributeUsage}}
... | BenchmarkClassAncestor2 |
csharp | getsentry__sentry-dotnet | test/Sentry.Tests/Internals/ConcurrentQueueLiteTests.cs | {
"start": 35,
"end": 3634
} | public class ____
{
[Fact]
public void Enqueue_Test()
{
// Arrange
var queue = new ConcurrentQueueLite<int>();
// Act
queue.Enqueue(1);
// Assert
queue.Count.Should().Be(1);
// Act
queue.Enqueue(2);
queue.Enqueue(3);
// Asse... | ConcurrentQueueLiteTests |
csharp | PrismLibrary__Prism | src/Maui/Prism.Maui/Mvvm/ViewModelLocator.cs | {
"start": 180,
"end": 4494
} | public static class ____
{
/// <summary>
/// Instructs Prism whether or not to automatically create an instance of a ViewModel using a convention, and assign the associated View's <see cref="BindableObject.BindingContext"/> to that instance.
/// </summary>
public static readonly BindableProperty Autowir... | ViewModelLocator |
csharp | dotnet__orleans | src/api/Orleans.Serialization/Orleans.Serialization.cs | {
"start": 152709,
"end": 153156
} | partial class ____ : Cloning.IDeepCopier<System.ValueTuple>, Cloning.IDeepCopier, Cloning.IOptionalDeepCopier
{
public System.ValueTuple DeepCopy(System.ValueTuple input, Cloning.CopyContext context) { throw null; }
public bool IsShallowCopyable() { throw null; }
object Cloning.IDeepCopie... | ValueTupleCopier |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.ApplicationModel.Background/DeviceManufacturerNotificationTrigger.cs | {
"start": 369,
"end": 2726
} | public partial class ____ : global::Windows.ApplicationModel.Background.IBackgroundTrigger
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
[global::Uno.NotImplemented("__ANDROID__", "__IOS__", "__TVOS__", "IS_UNIT_TESTS", "__WASM__", "__SKIA__", "__NETSTD_REF... | DeviceManufacturerNotificationTrigger |
csharp | dotnetcore__Util | src/Util.Validation/Validators/ValidatePattern.cs | {
"start": 79,
"end": 378
} | public static class ____ {
/// <summary>
/// 手机号验证正则表达式
/// </summary>
public static string MobilePhonePattern = "^1[0-9]{10}$";
/// <summary>
/// 身份证验证正则表达式
/// </summary>
public static string IdCardPattern = @"(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)";
} | ValidatePattern |
csharp | duplicati__duplicati | Duplicati/WebserverCore/Endpoints/V1/Bugreport.cs | {
"start": 1379,
"end": 2840
} | public class ____ : IEndpointV1
{
public static void Map(RouteGroupBuilder group)
{
group.MapGet("/bugreport/{reportid}", async ([FromServices] Connection connection, [FromServices] IHttpContextAccessor httpContextAccessor, [FromServices] IJWTTokenProvider jWTTokenProvider, [FromRoute] long reportid, [F... | Bugreport |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Composition/CompositionEffectBrush.cs | {
"start": 297,
"end": 1775
} | public partial class ____ : global::Windows.UI.Composition.CompositionBrush
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
internal CompositionEffectBrush()
{
}
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __N... | CompositionEffectBrush |
csharp | grpc__grpc-dotnet | test/Grpc.AspNetCore.Server.Tests/GrpcEventSourceTests.cs | {
"start": 814,
"end": 6739
} | public class ____
{
[Test]
public void MatchesNameAndGuid()
{
// Arrange & Act
var eventSource = new GrpcEventSource();
// Assert
Assert.AreEqual("Grpc.AspNetCore.Server", eventSource.Name);
Assert.AreEqual(Guid.Parse("d442f1b8-5953-548b-3797-d96725947255"), eventSou... | GrpcEventSourceTests |
csharp | ServiceStack__ServiceStack.OrmLite | tests/ServiceStack.OrmLite.Tests/DateTimeTests.cs | {
"start": 194,
"end": 10156
} | public class ____ : OrmLiteProvidersTestBase
{
public DateTimeTests(DialectContext context) : base(context) {}
[Test]
public void Can_insert_and_query_with_Unspecified_DateStyle()
{
using var db = OpenDbConnection();
db.DropAndCreateTable<DateTimeObje... | DateTimeTests |
csharp | dotnet__aspnetcore | src/Components/test/E2ETest/Tests/HostedInAspNetTest.cs | {
"start": 424,
"end": 1563
} | public class ____ : ServerTestBase<AspNetSiteServerFixture>
{
public HostedInAspNetTest(
BrowserFixture browserFixture,
AspNetSiteServerFixture serverFixture,
ITestOutputHelper output)
: base(browserFixture, serverFixture, output)
{
serverFixture.BuildWebHostMethod = Host... | HostedInAspNetTest |
csharp | dotnet__efcore | test/EFCore.Tests/ChangeTracking/ChangeTrackerTest.cs | {
"start": 38698,
"end": 84100
} | private class ____ : ValueGenerator<int>
{
private int _current;
private bool _generatesTemporaryValues;
public override bool GeneratesTemporaryValues
=> _generatesTemporaryValues;
public override int Next(EntityEntry entry)
=> Interlocked.Increment(ref _cur... | ResettableValueGenerator |
csharp | dotnet__machinelearning | src/Microsoft.ML.FastTree/GamModelParameters.cs | {
"start": 37982,
"end": 47703
} | public sealed class ____
{
public int Index { get; }
public string Name { get; }
/// <summary>
/// The upper bounds of each bin.
/// </summary>
public IEnumerable<double> UpperBounds ... | FeatureInfo |
csharp | dotnetcore__WTM | demo/WalkingTec.Mvvm.Vue3Demo/Areas/testvue/ViewModels/SchoolVue3VMs/SchoolVue3ImportVM.cs | {
"start": 1554,
"end": 1651
} | public class ____ : BaseImportVM<SchoolVue3TemplateVM, SchoolVue3>
{
}
}
| SchoolVue3ImportVM |
csharp | AvaloniaUI__Avalonia | src/Browser/Avalonia.Browser/BrowserInputPane.cs | {
"start": 160,
"end": 668
} | internal class ____ : InputPaneBase
{
public bool OnGeometryChange(double x, double y, double width, double height)
{
var oldState = (OccludedRect, State);
OccludedRect = new Rect(x, y, width, height);
State = OccludedRect.Width != 0 ? InputPaneState.Open : InputPaneState.Closed;
... | BrowserInputPane |
csharp | aspnetboilerplate__aspnetboilerplate | src/Abp/Modules/DependsOnAttribute.cs | {
"start": 160,
"end": 295
} | class ____ from <see cref="AbpModule"/>.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
| derived |
csharp | ServiceStack__ServiceStack | ServiceStack/src/ServiceStack.Desktop/DesktopConfig.cs | {
"start": 175,
"end": 1357
} | public class ____
{
public static DesktopConfig Instance { get; } = new();
public List<ProxyConfig> ProxyConfigs { get; set; } = new();
public string AppName { get; set; }
public List<string> ImportParams { get; set; } = new();
public string MinToolVersion { get; set; }
... | DesktopConfig |
csharp | dotnet__efcore | src/EFCore.Relational/Query/RelationalQueryableMethodTranslatingExpressionVisitor.cs | {
"start": 54696,
"end": 69380
} | private sealed class ____ : ExpressionVisitor
{
private ParameterExpression? _outerParameter;
private bool _correlated;
private bool _defaultIfEmpty;
private bool _canLiftDefaultIfEmpty;
public (LambdaExpression, bool, bool) IsCorrelated(LambdaExpression lambdaExpression)
... | CorrelationFindingExpressionVisitor |
csharp | microsoft__PowerToys | src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.VSCodeWorkspaces/SshConfigParser/SshHost.cs | {
"start": 300,
"end": 1640
} | public class ____
{
public string IdentityFile
{
get => this[nameof(IdentityFile)]?.ToString();
set => this[nameof(IdentityFile)] = value;
}
public string Host
{
get => this[nameof(Host)]?.ToString();
set => this[nameof(Host)] ... | SshHost |
csharp | CommunityToolkit__WindowsCommunityToolkit | Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Shadows/AttachedDropShadowPage.xaml.cs | {
"start": 333,
"end": 1022
} | partial class ____ : IXamlRenderListener
{
public AttachedDropShadowPage()
{
InitializeComponent();
}
public void OnXamlRendered(FrameworkElement control)
{
// This is done as we don't have x:Bind in live xaml, so we find and attach after.
... | AttachedDropShadowPage |
csharp | AutoMapper__AutoMapper | src/UnitTests/MappingInheritance/IgnoreShouldBeInherited.cs | {
"start": 2882,
"end": 2993
} | class ____
{
public string FooText { get; set; }
public string Text { get; set; }
}
| Foo |
csharp | PrismLibrary__Prism | src/Maui/Prism.Maui/Navigation/Regions/AllActiveRegion.cs | {
"start": 183,
"end": 1255
} | public class ____ : Region
{
/// <summary>
/// Creates a new <see cref="AllActiveRegion"/>.
/// </summary>
/// <param name="regionNavigationService"></param>
public AllActiveRegion(IRegionNavigationService regionNavigationService)
: base(regionNavigationService)
{
}
/// <summary... | AllActiveRegion |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Core.Preview/SystemNavigationManagerPreview.cs | {
"start": 258,
"end": 1848
} | public partial class ____
{
// Forced skipping of method Windows.UI.Core.Preview.SystemNavigationManagerPreview.CloseRequested.add
// Forced skipping of method Windows.UI.Core.Preview.SystemNavigationManagerPreview.CloseRequested.remove
// Skipping already declared method Windows.UI.Core.Preview.SystemNavigation... | SystemNavigationManagerPreview |
csharp | dotnet__machinelearning | src/Microsoft.ML.Data/Commands/TrainTestCommand.cs | {
"start": 802,
"end": 13054
} | public sealed class ____ : DataCommand.ArgumentsBase
{
[Argument(ArgumentType.AtMostOnce, IsInputFileName = true, HelpText = "The test data file", ShortName = "test", SortOrder = 1)]
public string TestFile;
[Argument(ArgumentType.Multiple, HelpText = "Trainer to use", ShortN... | Arguments |
csharp | Cysharp__UniTask | src/UniTask.NetCoreTests/WhenEachTest.cs | {
"start": 215,
"end": 1780
} | public class ____
{
[Fact]
public async Task Each()
{
var a = Delay(1, 3000);
var b = Delay(2, 1000);
var c = Delay(3, 2000);
var l = new List<int>();
await foreach (var item in UniTask.WhenEach(a, b, c))
{
... | WhenEachTest |
csharp | smartstore__Smartstore | src/Smartstore.Core/Platform/Security/Configuration/CaptchaSettings.cs | {
"start": 1941,
"end": 5117
} | public static class ____
{
public const string Login = "Login";
public const string Registration = "Registration";
public const string PasswordRecovery = "PasswordRecovery";
public const string ContactUs = "ContactUs";
public const string ShareWishlist... | Targets |
csharp | ChilliCream__graphql-platform | src/HotChocolate/Fusion-vnext/test/Fusion.AspNetCore.Tests/ConditionalTests.cs | {
"start": 36078,
"end": 36447
} | interface ____ {
id: ID!
}
type Discussion implements Node {
id: ID!
title: String
}
""");
using var server2 = CreateSourceSchema(
"B",
"""
type Query {
node(id: ID!): No... | Node |
csharp | dotnet__aspnetcore | src/Mvc/Mvc.TagHelpers/src/Cache/DistributedCacheTagHelperStorage.cs | {
"start": 416,
"end": 1363
} | public class ____ : IDistributedCacheTagHelperStorage
{
private readonly IDistributedCache _distributedCache;
/// <summary>
/// Creates a new <see cref="DistributedCacheTagHelperStorage"/>.
/// </summary>
/// <param name="distributedCache">The <see cref="IDistributedCache"/> to use.</param>
pub... | DistributedCacheTagHelperStorage |
csharp | AutoMapper__AutoMapper | src/UnitTests/ConfigurationFeatureTest.cs | {
"start": 3191,
"end": 3627
} | public abstract class ____ : IGlobalFeature
{
public int Value { get; }
public List<IConfigurationProvider> ConfigurationProviders { get; } = new List<IConfigurationProvider>();
protected ConfigurationExpressionFeatureBase(int value)
{
Value = value;
}
p... | ConfigurationExpressionFeatureBase |
csharp | ChilliCream__graphql-platform | src/HotChocolate/Core/test/Execution.Tests/Processing/VariableCoercionHelperTests.cs | {
"start": 232,
"end": 22173
} | public class ____
{
[Fact]
public void VariableCoercionHelper_Schema_Is_Null()
{
// arrange
var variableDefinitions = new List<VariableDefinitionNode>
{
new(null,
new VariableNode("abc"),
description: null,
new NamedTypeNode... | VariableCoercionHelperTests |
csharp | dotnet__maui | src/Controls/Foldable/src/Android/HingeSensor.cs | {
"start": 874,
"end": 2329
} | public partial class ____
{
// This string will detect hinge sensors on other foldable devices
// and should be used with a comparison to the `sensor.Name`
const string HINGE_SENSOR_NAME = "Hinge";
SensorManager sensorManager;
Sensor hingeSensor;
HingeSensorEventListener sensorListener;
public event Ev... | HingeSensor |
csharp | StackExchange__StackExchange.Redis | src/StackExchange.Redis/RedisTransaction.cs | {
"start": 159,
"end": 7050
} | internal sealed class ____ : RedisDatabase, ITransaction
{
private List<ConditionResult>? _conditions;
private List<QueuedMessage>? _pending;
private object SyncLock => this;
public RedisTransaction(RedisDatabase wrapped, object? asyncState) : base(wrapped.multiplexer, wrapped.Datab... | RedisTransaction |
csharp | jellyfin__jellyfin | Jellyfin.Server/Migrations/Routines/ReaddDefaultPluginRepository.cs | {
"start": 466,
"end": 1693
} | public class ____ : IMigrationRoutine
#pragma warning restore CS0618 // Type or member is obsolete
{
private readonly IServerConfigurationManager _serverConfigurationManager;
private readonly RepositoryInfo _defaultRepositoryInfo = new RepositoryInfo
{
Name = "Jellyfin Stable",
Url = "https... | ReaddDefaultPluginRepository |
csharp | microsoft__FASTER | cs/src/core/Index/FASTER/Implementation/InternalRMW.cs | {
"start": 13239,
"end": 13576
} | record ____ thread is in V)
case Phase.IN_PROGRESS: // Thread is in v+1
case Phase.WAIT_INDEX_CHECKPOINT:
case Phase.WAIT_FLUSH:
if (IsRecordVersionNew(stackCtx.recSrc.LogicalAddress))
break; // Normal Processing; V+1 thr... | when |
csharp | MassTransit__MassTransit | src/MassTransit.Abstractions/SendEndpointExtensions.cs | {
"start": 129,
"end": 2068
} | public static class ____
{
/// <summary>
/// Send a dynamically typed message initialized by a loosely typed dictionary of values. MassTransit will
/// create and populate an object instance with the properties of the <paramref name="values" /> argument.
/// </summary>
/// <p... | SendEndpointExtensions |
csharp | dotnet__aspnetcore | src/Validation/src/ValidatableParameterInfo.cs | {
"start": 451,
"end": 5369
} | public abstract class ____ : IValidatableInfo
{
private RequiredAttribute? _requiredAttribute;
/// <summary>
/// Creates a new instance of <see cref="ValidatableParameterInfo"/>.
/// </summary>
/// <param name="parameterType">The <see cref="Type"/> associated with the parameter.</param>
/// <pa... | ValidatableParameterInfo |
csharp | dotnet__extensions | src/Libraries/Microsoft.Extensions.AI.OpenAI/OpenAIRealtimeConversationClient.cs | {
"start": 276,
"end": 896
} | internal sealed class ____
{
public static ConversationFunctionTool ToOpenAIConversationFunctionTool(AIFunctionDeclaration aiFunction, ChatOptions? options = null)
{
bool? strict =
OpenAIClientExtensions.HasStrict(aiFunction.AdditionalProperties) ??
OpenAIClientExtensions.HasStri... | OpenAIRealtimeConversationClient |
csharp | ServiceStack__ServiceStack | ServiceStack/tests/ServiceStack.Extensions.Tests/Protoc/Services.cs | {
"start": 1930199,
"end": 1949217
} | partial class ____ : pb::IMessage<QueryRockstarAlbums>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<QueryRockstarAlbums> _parser = new pb::MessageParser<QueryRockstarAlbums>(() => new QueryRockstarAlbums());
private pb::Un... | QueryRockstarAlbums |
csharp | ServiceStack__ServiceStack | ServiceStack/src/ServiceStack.NetFramework/SmartThreadPool/Interfaces.cs | {
"start": 1953,
"end": 14034
} | public interface ____
{
/// <summary>
/// Get/Set the name of the WorkItemsGroup
/// </summary>
string Name { get; set; }
/// <summary>
/// Get/Set the maximum number of workitem that execute cocurrency on the thread pool
/// </summary>
int Concurrency { get; set; }
//... | IWorkItemsGroup |
csharp | louthy__language-ext | LanguageExt.Rx/Validation.Extensions.cs | {
"start": 130,
"end": 993
} | public static class ____
{
/// <summary>
/// Match the two states of the Validation and return an observable stream of non-null R2s.
/// </summary>
[Pure]
public static IObservable<R2> MatchObservable<F, A, R2>(
this Validation<F, A> ma,
Func<A, IObservable<R2>> Succ,
Func<... | ValidationRxExtensions |
csharp | NLog__NLog | src/NLog/SetupLoadConfigurationExtensions.cs | {
"start": 1977,
"end": 3291
} | public static class ____
{
/// <summary>
/// Configures the global time-source used for all logevents
/// </summary>
/// <remarks>
/// Available by default: <see cref="Time.AccurateLocalTimeSource"/>, <see cref="Time.AccurateUtcTimeSource"/>, <see cref="Time.FastLocalTimeSour... | SetupLoadConfigurationExtensions |
csharp | dotnet__efcore | test/EFCore.Sqlite.FunctionalTests/Types/SqliteNumericTypeTest.cs | {
"start": 410,
"end": 607
} | public class ____ : SqliteTypeFixture<byte>
{
public override byte Value { get; } = byte.MinValue;
public override byte OtherValue { get; } = byte.MaxValue;
}
}
| ByteTypeFixture |
csharp | dotnet__maui | src/Controls/src/Core/PlatformConfiguration/iOSSpecific/TimePicker.cs | {
"start": 363,
"end": 1973
} | public static class ____
{
/// <summary>Bindable property for <see cref="UpdateMode"/>.</summary>
public static readonly BindableProperty UpdateModeProperty = BindableProperty.Create(
nameof(UpdateMode),
typeof(UpdateMode),
typeof(TimePicker),
default(UpdateMode));
/// <include file="../../../../doc... | TimePicker |
csharp | ServiceStack__ServiceStack | ServiceStack.Azure/src/ServiceStack.Azure/Messaging/ServiceBusMqMessageFactory.cs | {
"start": 428,
"end": 8540
} | public class ____ : IMessageFactory
{
private long timesStarted;
private long doOperation = WorkerOperation.NoOp;
private long noOfErrors = 0;
private int noOfContinuousErrors = 0;
private string lastExMsg = null;
#if NETCORE
public Action<Microsoft.Azure.ServiceBus.Message,IMessage> PublishMes... | ServiceBusMqMessageFactory |
csharp | cake-build__cake | src/Cake.Common/Build/AzurePipelines/IAzurePipelinesCommands.cs | {
"start": 1080,
"end": 1308
} | record ____ current task.
/// </summary>
/// <param name="message">The error message.</param>
void WriteError(string message);
/// <summary>
/// Log an error with detailed data to timeline | of |
csharp | dotnet__aspnetcore | src/Validation/src/IValidatableInfoResolver.cs | {
"start": 506,
"end": 1690
} | public interface ____
{
/// <summary>
/// Gets validation information for the specified type.
/// </summary>
/// <param name="type">The type to get validation information for.</param>
/// <param name="validatableInfo">
/// When this method returns, contains the validatable information if found.
... | IValidatableInfoResolver |
csharp | smartstore__Smartstore | src/Smartstore.Core/Platform/DataExchange/Domain/DataExchangeEnums.cs | {
"start": 121,
"end": 549
} | public enum ____
{
/// <summary>
/// No abortion. Go on with processing.
/// </summary>
None = 0,
/// <summary>
/// Break item processing but not the rest of the execution. Typically used for demo limitations.
/// </summary>
Soft,
/// <summar... | DataExchangeAbortion |
csharp | PrismLibrary__Prism | src/Wpf/Prism.Wpf/Modularity/ModuleCatalog.cs | {
"start": 1187,
"end": 1545
} | public class ____ : ModuleCatalogBase, IModuleGroupsCatalog
{
/// <summary>
/// Initializes a new instance of the <see cref="ModuleCatalog"/> class.
/// </summary>
public ModuleCatalog() : base()
{
}
/// <summary>
/// Initializes a new instance of the... | ModuleCatalog |
csharp | NLog__NLog | tests/NLog.UnitTests/Conditions/ConditionParserTests.cs | {
"start": 12974,
"end": 13144
} | public class ____
{
public static bool CheckIt(string s)
{
return s == "X";
}
}
}
}
| MyConditionMethods |
csharp | louthy__language-ext | LanguageExt.Core/DataTypes/Record/RecordType.cs | {
"start": 1835,
"end": 2173
} | internal static class ____<A>
{
internal static readonly bool IncludeBase;
static RecordTypeIncludeBase() =>
IncludeBase = !typeof(A).CustomAttributes
.AsIterable()
.Exists(a => a.AttributeType.Name == nameof(IgnoreBaseAttribute));
}
... | RecordTypeIncludeBase |
csharp | EventStore__EventStore | src/KurrentDB.Core.Tests/Services/UserManagementService/user_management_service.cs | {
"start": 15090,
"end": 16440
} | public class ____<TLogFormat, TStreamId> : TestFixtureWithUserManagementService<TLogFormat, TStreamId> {
protected override IEnumerable<WhenStep> GivenCommands() {
var replyTo = Envelope;
yield return
new UserManagementMessage.Create(
replyTo, SystemAccounts.System, "user1", "John Doe", new[] { "admin"... | when_updating_a_disabled_user_account_details |
csharp | dotnet__aspnetcore | src/Middleware/ResponseCaching/src/ResponseCachingMiddleware.cs | {
"start": 511,
"end": 19770
} | public class ____
{
private static readonly TimeSpan DefaultExpirationTimeSpan = TimeSpan.FromSeconds(10);
// see https://tools.ietf.org/html/rfc7232#section-4.1
private static readonly string[] HeadersToIncludeIn304 =
new[] { "Cache-Control", "Content-Location", "Date", "ETag", "Expires", "Vary" }... | ResponseCachingMiddleware |
csharp | MassTransit__MassTransit | src/MassTransit.Abstractions/Contracts/ReceiveEndpointCompleted.cs | {
"start": 29,
"end": 435
} | public interface ____ :
ReceiveEndpointEvent
{
/// <summary>
/// The number of messages delivered to the receive endpoint
/// </summary>
long DeliveryCount { get; }
/// <summary>
/// The maximum concurrent messages delivery to the receive endpoint
///... | ReceiveEndpointCompleted |
csharp | dotnet__maui | src/Graphics/samples/GraphicsTester.Portable/Scenarios/DrawTextRotatedAtPoint.cs | {
"start": 70,
"end": 1614
} | public class ____ : AbstractScenario
{
public DrawTextRotatedAtPoint()
: base(1024, 720)
{
}
public override void Draw(ICanvas canvas)
{
canvas.SaveState();
canvas.Rotate(90, 360, 640);
canvas.StrokeColor = Colors.Blue;
canvas.StrokeSize = 1f;
canvas.FontColor = Colors.Red;
canvas.Font... | DrawTextRotatedAtPoint |
csharp | dotnet__efcore | src/EFCore.Relational/Extensions/RelationalElementTypeBuilderExtensions.cs | {
"start": 474,
"end": 6754
} | public static class ____
{
/// <summary>
/// Configures the data type of the elements of the collection.
/// </summary>
/// <remarks>
/// See <see href="https://aka.ms/efcore-docs-modeling">Modeling entity types and relationships</see> for more information and examples.
/// </remarks>
... | RelationalElementTypeBuilderExtensions |
csharp | aspnetboilerplate__aspnetboilerplate | src/Abp/ObjectComparators/ObjectComparatorBase.cs | {
"start": 2502,
"end": 3311
} | public abstract class ____<TBaseType, TEnumCompareTypes> : ObjectComparatorBase<TBaseType>
where TEnumCompareTypes : Enum
{
public override ImmutableList<string> CompareTypes { get; }
protected ObjectComparatorBase()
{
CompareTypes = Enum.GetNames(typeof(TEnumCompareType... | ObjectComparatorBase |
csharp | dotnet__reactive | Rx.NET/Samples/RxRemoteMouseMoves/RxMouseServer/Program.cs | {
"start": 124,
"end": 1195
} | partial class ____
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine("Server");
int port;
ParseArgs(args, out port);
var observer = Remoting(port);
var frm = new Form();
frm.Load += (o, e) =>
... | Program |
csharp | OrchardCMS__OrchardCore | test/OrchardCore.Tests/DisplayManagement/CompositeTests.cs | {
"start": 1355,
"end": 1467
} | public class ____ : Composite
{
public string Kind { get; set; }
public string Color { get; set; }
}
| Animal |
csharp | cake-build__cake | src/Cake.Common.Tests/Unit/Tools/NuGet/Pack/NuGetPackerTests.cs | {
"start": 44021,
"end": 58710
} | public sealed class ____
{
[Fact]
public void Should_Throw_If_Nuspec_File_Path_Is_Null()
{
// Given
var fixture = new NuGetPackerWithProjectFileFixture();
fixture.ProjectFilePath = null;
... | WithProjectFile |
csharp | duplicati__duplicati | Duplicati/Library/Main/ResultClasses.cs | {
"start": 26461,
"end": 26635
} | internal sealed record ____(long Version, DateTime Time, string Path, long Size, bool IsDirectory, bool IsSymlink, DateTime LastModified) : IListFileVersion;
| ListFileVersion |
csharp | ChilliCream__graphql-platform | src/HotChocolate/Core/test/Types.Queries.Tests/CodeFirstSchemaTests.cs | {
"start": 17761,
"end": 17862
} | public class ____
{
public Task<FieldResult<Foo>> Foo() => null!;
}
| InvalidQueryTask |
csharp | Cysharp__MemoryPack | src/MemoryPack.Core/Formatters/ImmutableCollectionFormatters.cs | {
"start": 27812,
"end": 30495
} | public sealed class ____<TKey, TValue> : MemoryPackFormatter<IImmutableDictionary<TKey, TValue?>?>
where TKey : notnull
{
readonly IEqualityComparer<TKey>? keyEqualityComparer;
readonly IEqualityComparer<TValue?>? valueEqualityComparer;
public InterfaceImmutableDictionaryFormatter()... | InterfaceImmutableDictionaryFormatter |
csharp | npgsql__npgsql | src/Npgsql/NpgsqlNestedDataReader.cs | {
"start": 9461,
"end": 12693
} | record ____");
for (var i = 0; i < _compositeType.Fields.Count; i++)
{
if (_compositeType.Fields[i].Name == name)
return i;
}
for (var i = 0; i < _compositeType.Fields.Count; i++)
{
if (string.Compare(_compositeType.Fields[i].Name, name,... | type |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Input.Inking.Core/CoreWetStrokeDisposition.cs | {
"start": 266,
"end": 698
} | public enum ____
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
Inking = 0,
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
Completed = 1,
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UN... | CoreWetStrokeDisposition |
csharp | microsoft__PowerToys | src/modules/fancyzones/editor/FancyZonesEditor/Models/MonitorConfigurationTypeEnumExtensions.cs | {
"start": 225,
"end": 1231
} | public static class ____
{
private const string HorizontalJsonTag = "horizontal";
private const string VerticalJsonTag = "vertical";
public static string TypeToString(this MonitorConfigurationType value)
{
switch (value)
{
case MonitorConfigur... | MonitorConfigurationTypeEnumExtensions |
csharp | MassTransit__MassTransit | src/MassTransit/SagaStateMachine/SendByConventionExtensions.cs | {
"start": 19521,
"end": 20231
} | class
____ TException : Exception
{
return source.Add(new FaultedSendActivity<TInstance, TException, TMessage>(_ => GetDestinationAddress<TMessage>(),
MessageFactory<TMessage>.Create(message, callback)));
}
public static ExceptionActivityBinder<TInstance,... | where |
csharp | nuke-build__nuke | source/Nuke.Common/Tools/VSWhere/VSWhere.Generated.cs | {
"start": 961,
"end": 4598
} | public partial class ____ : ToolTasks, IRequireNuGetPackage
{
public static string VSWherePath { get => new VSWhereTasks().GetToolPathInternal(); set => new VSWhereTasks().SetToolPath(value); }
public const string PackageId = "vswhere";
public const string PackageExecutable = "vswhere.exe";
/// <summary... | VSWhereTasks |
csharp | jellyfin__jellyfin | src/Jellyfin.LiveTv/Listings/SchedulesDirectDtos/StationDto.cs | {
"start": 206,
"end": 1964
} | public class ____
{
/// <summary>
/// Gets or sets the station id.
/// </summary>
[JsonPropertyName("stationID")]
public string? StationId { get; set; }
/// <summary>
/// Gets or sets the name.
/// </summary>
[JsonPropertyName("name")]
... | StationDto |
csharp | EventStore__EventStore | src/KurrentDB.Core.Tests/Http/Users/users.cs | {
"start": 5349,
"end": 6245
} | class ____<TLogFormat, TStreamId> : with_admin_user<TLogFormat, TStreamId> {
private HttpResponseMessage _response;
protected override async Task Given() {
var response = await MakeJsonPost(
"/users/", new { LoginName = "test1", FullName = "User Full Name", Password = "Pa55w0rd!" }, _admin);
Assert.... | when_creating_an_already_existing_user_account |
csharp | jellyfin__jellyfin | src/Jellyfin.Networking/Manager/NetworkManager.cs | {
"start": 43957,
"end": 45121
} | internal interface ____ there is one.
bindAddress = _interfaces.Where(x => IsInLocalNetwork(x.Address))
.OrderByDescending(x => NetworkUtils.SubnetContainsAddress(x.Subnet, source))
.ThenByDescending(x => x.Subnet.PrefixLength)
.ThenBy(x => x.Index)
... | if |
csharp | nopSolutions__nopCommerce | src/Plugins/Nop.Plugin.MultiFactorAuth.GoogleAuthenticator/Infrastructure/RouteProvider.cs | {
"start": 276,
"end": 890
} | public class ____ : IRouteProvider
{
/// <summary>
/// Register routes
/// </summary>
/// <param name="endpointRouteBuilder">Route builder</param>
public void RegisterRoutes(IEndpointRouteBuilder endpointRouteBuilder)
{
endpointRouteBuilder.MapControllerRoute(GoogleAuthenticatorDefaults.... | RouteProvider |
csharp | unoplatform__uno | src/Uno.UWP/Globalization/DateTimeFormatting/DateTimeTemplateParser/TemplateNodes.cs | {
"start": 9917,
"end": 13343
} | internal sealed class ____ : TemplateNode
{
public static TemplateShortTimeNode DefaultShortTimeInstance { get; } = new(null, null, null);
public TemplateShortTimeNode(TemplateNode? first, TemplateNode? second, TemplateNode? third = null)
{
First = first;
Second = second;
Third = third;
}
public TemplateNo... | TemplateShortTimeNode |
csharp | dotnet__aspnetcore | src/Http/Http.Results/test/ResultsOfTTests.Generated.cs | {
"start": 83977,
"end": 84366
} | abstract class ____ : IResult
{
public ChecksumResult(int checksum = 0)
{
Checksum = checksum;
}
public int Checksum { get; }
public Task ExecuteAsync(HttpContext httpContext)
{
httpContext.Items[nameof(ChecksumResult.Checksum)] = Checksum;
... | ChecksumResult |
csharp | JamesNK__Newtonsoft.Json | Src/Newtonsoft.Json.Tests/TestObjects/IPrivateOverriddenImplementation.cs | {
"start": 1203,
"end": 1314
} | public interface ____
{
object OverriddenProperty { get; set; }
}
} | IPrivateOverriddenImplementation |
csharp | nopSolutions__nopCommerce | src/Presentation/Nop.Web/Models/Order/CustomerRecurringPaymentListModel.cs | {
"start": 151,
"end": 423
} | public partial record ____ : BaseNopModel
{
#region Properties
public List<CustomerRecurringPaymentModel> RecurringPayments { get; set; } = new();
public List<string> RecurringPaymentErrors { get; set; } = new();
#endregion
} | CustomerRecurringPaymentListModel |
csharp | dotnet__maui | src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue24734.cs | {
"start": 114,
"end": 507
} | public class ____ : _IssuesUITest
{
public Issue24734(TestDevice device) : base(device)
{
}
public override string Issue => "TapGestureRecognizer ButtonMask always return 0";
[Test]
[Category(UITestCategories.Gestures)]
public void ButtonMaskShouldNotReturnZero()
{
App.WaitForElement("LabelwithGesture");
... | Issue24734 |
csharp | grpc__grpc-dotnet | src/Grpc.Net.Common/ConnectivityState.cs | {
"start": 853,
"end": 1328
} | public enum ____
{
/// <summary>
/// Not trying to create a connection.
/// </summary>
Idle,
/// <summary>
/// Establishing a connection.
/// </summary>
Connecting,
/// <summary>
/// Connection ready.
/// </summary>
Ready,
/// <summary>
/// A transient failure on ... | ConnectivityState |
csharp | PrismLibrary__Prism | src/Maui/Prism.Maui/Ioc/RegionNavigationRegistrationExtensions.cs | {
"start": 339,
"end": 9172
} | public static class ____
{
/// <summary>
/// Registers a <see cref="View"/> for region navigation.
/// </summary>
/// <typeparam name="TView">The Type of <see cref="View"/> to register</typeparam>
/// <param name="containerRegistry"><see cref="IContainerRegistry"/> used to register type for Navigati... | RegionNavigationRegistrationExtensions |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.