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
dotnet__aspnetcore
src/Shared/BrowserTesting/src/BrowserKind.cs
{ "start": 209, "end": 287 }
public enum ____ { Chromium = 1, Firefox = 2, Webkit = 4 }
BrowserKind
csharp
louthy__language-ext
LanguageExt.Core/Class Instances/Eq/EqEither.cs
{ "start": 1446, "end": 2104 }
public struct ____<L, R> : Eq<Either<L, R>> { /// <summary> /// Equality test /// </summary> [Pure] public static bool Equals(Either<L, R> x, Either<L, R> y) => EqEither<EqDefault<L>, EqDefault<R>, L, R>.Equals(x, y); /// <summary> /// Ge...
EqEither
csharp
OrchardCMS__OrchardCore
src/OrchardCore/OrchardCore.OpenId.Core/Abstractions/Managers/IOpenIdScopeManager.cs
{ "start": 185, "end": 551 }
interface ____ not meant to be implemented by custom managers, /// that should inherit from the generic OpenIdScopeManager class. /// It is primarily intended to be used by services that cannot easily /// depend on the generic scope manager. The actual scope entity type is /// automatically determined at runtime based...
is
csharp
aspnetboilerplate__aspnetboilerplate
src/Abp.ZeroCore.OpenIddict/OpenIddict/Scopes/AbpOpenIddictScopeStore.cs
{ "start": 372, "end": 14239 }
public class ____ : AbpOpenIddictStoreBase<IOpenIddictScopeRepository>, IOpenIddictScopeStore<OpenIddictScopeModel> { public AbpOpenIddictScopeStore( IOpenIddictScopeRepository repository, IUnitOfWorkManager unitOfWorkManager, IGuidGenerator guidGenerator, IOpenIddictDbConcurrenc...
AbpOpenIddictScopeStore
csharp
dotnet__maui
src/Controls/tests/ManualTests/Performance/CollectionViewPool/Models/Enums.cs
{ "start": 2066, "end": 2121 }
public enum ____ { Farenheit, Celsius }
TemperatureUnit
csharp
dotnet__efcore
test/EFCore.Design.Tests/Design/Internal/CSharpHelperTest.cs
{ "start": 30346, "end": 30877 }
private class ____<T>( Func<T, Expression> literalExpressionFunc) : RelationalTypeMapping("storeType", typeof(SimpleTestType)) { private readonly Func<T, Expression> _literalExpressionFunc = literalExpressionFunc; public override Expression GenerateCodeLiteral(object value) => _...
SimpleTestTypeMapping
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue9686.cs
{ "start": 1578, "end": 2389 }
public class ____ : List<_9686Item>, INotifyPropertyChanged { string _groupName; public string GroupName { get => _groupName; set => SetField(ref _groupName, value); } public _9686Group(string groupName, ObservableCollection<_9686Item> items) : base(items) { GroupName = groupName; } public ...
_9686Group
csharp
dotnet__machinelearning
src/Microsoft.ML.StandardTrainers/Standard/PoissonRegression/PoissonRegression.cs
{ "start": 3164, "end": 4053 }
public sealed class ____ : LbfgsTrainerBase<LbfgsPoissonRegressionTrainer.Options, RegressionPredictionTransformer<PoissonRegressionModelParameters>, PoissonRegressionModelParameters> { internal const string LoadNameValue = "PoissonRegression"; internal const string UserNameValue = "Poisson Regressi...
LbfgsPoissonRegressionTrainer
csharp
dotnet__orleans
src/Orleans.Serialization/Invocation/Response.cs
{ "start": 4758, "end": 5978 }
public sealed class ____<TResult> : Response { [Id(0)] private TResult? _result; public TResult? TypedResult { get => _result; set => _result = value; } public override Exception? Exception { get => null; set => throw new InvalidOperationException($"...
Response
csharp
dotnet__extensions
test/Libraries/Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests/Helpers/DummyTracker.cs
{ "start": 231, "end": 674 }
internal class ____ : IResourceMonitor { public const double CpuPercentage = 50.0; public const double MemoryPercentage = 10.0; public const ulong MemoryUsed = 100; public const ulong MemoryTotal = 1000; public const uint CpuUnits = 1; public ResourceUtilization GetUtilization(TimeSpan aggregat...
DummyTracker
csharp
dotnet__aspnetcore
src/Components/Components/test/PersistentState/PersistentComponentStateTest.cs
{ "start": 369, "end": 10468 }
public class ____ { [Fact] public void InitializeExistingState_SetupsState() { // Arrange var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), [], []); var existingState = new Dictionary<string, byte[]> { ["MyState"] = JsonSerializ...
PersistentComponentStateTest
csharp
dotnet__aspnetcore
src/Servers/Kestrel/Core/test/Http2/Http2FrameWriterTests.cs
{ "start": 3308, "end": 3805 }
public static class ____ { public static async Task<byte[]> ReadForLengthAsync(this PipeReader pipeReader, int length) { while (true) { var result = await pipeReader.ReadAsync(); var buffer = result.Buffer; if (!buffer.IsEmpty && buffer.Length >= length) ...
PipeReaderExtensions
csharp
reactiveui__ReactiveUI
src/ReactiveUI/Bindings/ISetMethodBindingConverter.cs
{ "start": 587, "end": 1932 }
class ____ /// PerformSet for this particular Type. If the method isn't supported at /// all, return a non-positive integer. When multiple implementations /// return a positive value, the host will use the one which returns /// the highest value. When in doubt, return '2' or '0'. /// </summary> ...
supports
csharp
jellyfin__jellyfin
MediaBrowser.Model/Dto/MetadataEditorInfo.cs
{ "start": 227, "end": 291 }
class ____ metadata editor information. /// </summary>
representing
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Core/src/AreaAttribute.cs
{ "start": 411, "end": 793 }
public class ____ : RouteValueAttribute { /// <summary> /// Initializes a new <see cref="AreaAttribute"/> instance. /// </summary> /// <param name="areaName">The area containing the controller or action.</param> public AreaAttribute(string areaName) : base("area", areaName) { Arg...
AreaAttribute
csharp
xunit__xunit
src/xunit.v3.assert.tests/Asserts/AsyncCollectionAssertsTests.cs
{ "start": 24848, "end": 26449 }
public sealed class ____(int value) : IEnumerable<string> { public int Value { get; } = value; public IEnumerator<string> GetEnumerator() => Enumerable.Repeat("", Value).GetEnumerator(); IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); } [Fact] public void WithThrow_P...
EnumerableItem
csharp
louthy__language-ext
LanguageExt.Tests/Divisible.cs
{ "start": 114, "end": 327 }
public class ____ { [Fact] public void OptionalNumericDivide() { var x = Some(20); var y = Some(10); var z = divide<TInt, int>(x, y); Assert.True(z == 2); } }
Divisible
csharp
microsoft__garnet
libs/server/Objects/SortedSetGeo/GeoSearchOptions.cs
{ "start": 263, "end": 719 }
public enum ____ : byte { /// <summary> /// Meters /// </summary> M = 0, /// <summary> /// Kilometers /// </summary> KM, /// <summary> /// Miles /// </summary> MI, /// <summary> /// Foot /// </...
GeoDistanceUnitType
csharp
JoshClose__CsvHelper
src/CsvHelper/Configuration/Attributes/DetectColumnCountChangesAttribute.cs
{ "start": 681, "end": 1583 }
public class ____ : Attribute, IClassMapper { /// <summary> /// A value indicating whether changes in the column /// count should be detected. If <see langword="true"/>, a <see cref="BadDataException"/> /// will be thrown if a different column count is detected. /// </summary> public bool DetectColumnCountChanges...
DetectColumnCountChangesAttribute
csharp
grandnode__grandnode2
src/Business/Grand.Business.Checkout/Services/Shipping/ShippingMethodService.cs
{ "start": 363, "end": 4249 }
public class ____ : IShippingMethodService { #region Ctor /// <summary> /// Ctor /// </summary> public ShippingMethodService( IRepository<ShippingMethod> shippingMethodRepository, IMediator mediator, ICacheBase cacheBase) { _shippingMethodRepository = shippin...
ShippingMethodService
csharp
dotnet__orleans
src/Orleans.Serialization/ISerializableSerializer/DotNetSerializableCodec.cs
{ "start": 558, "end": 9758 }
public class ____ : IGeneralizedCodec { public static readonly Type CodecType = typeof(DotNetSerializableCodec); private static readonly Type SerializableType = typeof(ISerializable); private readonly SerializationCallbacksFactory _serializationCallbacks; private readonly Func<Type, ...
DotNetSerializableCodec
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 2701887, "end": 2705115 }
public partial class ____ : global::System.IEquatable<OnFusionConfigurationPublishingTaskChanged_OnFusionConfigurationPublishingTaskChanged_Changes_Changes_DescriptionChanged_4>, IOnFusionConfigurationPublishingTaskChanged_OnFusionConfigurationPublishingTaskChanged_Changes_Changes_DescriptionChanged_4 { pub...
OnFusionConfigurationPublishingTaskChanged_OnFusionConfigurationPublishingTaskChanged_Changes_Changes_DescriptionChanged_4
csharp
aspnetboilerplate__aspnetboilerplate
src/Abp/Runtime/Caching/ICacheManager.cs
{ "start": 320, "end": 392 }
public interface ____ : ICacheManager<ICache> { }
ICacheManager
csharp
louthy__language-ext
LanguageExt.Core/Effects/IO/Prelude/IO.Prelude.cs
{ "start": 293, "end": 26352 }
partial class ____ { /// <summary> /// Access the cancellation-token from the IO environment /// </summary> /// <returns>CancellationToken</returns> public static readonly IO<CancellationToken> cancelToken = IO.lift(e => e.Token); /// <summary> /// Request a cancellation of the IO ...
Prelude
csharp
dotnet__reactive
Rx.NET/Source/src/System.Reactive/Linq/Observable/Amb.cs
{ "start": 825, "end": 2396 }
internal sealed class ____ : IDisposable { private readonly AmbObserver _leftObserver; private readonly AmbObserver _rightObserver; private int _winner; public AmbCoordinator(IObserver<TSource> observer) { _leftObserver = new AmbObserv...
AmbCoordinator
csharp
ServiceStack__ServiceStack
ServiceStack.OrmLite/src/ServiceStack.OrmLite.SqlServer/Converters/SqlServerSpecialConverters.cs
{ "start": 99, "end": 241 }
public class ____ : RowVersionConverter { public override string ColumnDefinition => "rowversion"; } }
SqlServerRowVersionConverter
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/Bugzilla/Bugzilla42329.cs
{ "start": 2938, "end": 3475 }
public class ____ : ContentPageEx { public _42329_FrameWithListView() { var lv = new ListView(); var label = new Label() { Text = LabelPage1, AutomationId = LabelPage1 }; label.GestureRecognizers.Add(new TapGestureRecognizer { Command = new Command(OpenRoot) }); var frame = new Frame { Conten...
_42329_FrameWithListView
csharp
ServiceStack__ServiceStack.OrmLite
tests/ServiceStack.OrmLite.Tests/Issues/ParamNameIssues.cs
{ "start": 349, "end": 1140 }
public class ____ : OrmLiteProvidersTestBase { public ParamNameIssues(DialectContext context) : base(context) {} [Test] public void Does_use_ParamName_filter() { OrmLiteConfig.ParamNameFilter = name => name.Replace("-", ""); using (var db = OpenDbConnection(...
ParamNameIssues
csharp
abpframework__abp
framework/src/Volo.Abp.Ldap/Volo/Abp/Ldap/LdapManager.cs
{ "start": 236, "end": 1990 }
public class ____ : ILdapManager, ITransientDependency { public ILogger<LdapManager> Logger { get; set; } protected ILdapSettingProvider LdapSettingProvider { get; } public LdapManager(ILdapSettingProvider ldapSettingProvider) { LdapSettingProvider = ldapSettingProvider; Logger = NullLo...
LdapManager
csharp
MassTransit__MassTransit
src/MassTransit/Clients/BusClientFactoryContext.cs
{ "start": 74, "end": 1628 }
public class ____ : ClientFactoryContext { readonly IBus _bus; public BusClientFactoryContext(IBus bus, RequestTimeout defaultTimeout = default) { _bus = bus; DefaultTimeout = defaultTimeout.HasValue ? defaultTimeout : RequestTimeout.Default; } ...
BusClientFactoryContext
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types/Types/Composite/Directives/EntityKeyDescriptorExtensions.cs
{ "start": 2393, "end": 2599 }
interface ____. /// </para> /// <para> /// <see href="https://graphql.github.io/composite-schemas-spec/draft/#sec--key"/> /// </para> /// </summary> /// <param name="descriptor">The
type
csharp
CommunityToolkit__Maui
src/CommunityToolkit.Maui.Core/Interfaces/IDialogFragmentService.android.cs
{ "start": 85, "end": 1614 }
public interface ____ { void OnFragmentAttached(AndroidX.Fragment.App.FragmentManager fm, AndroidX.Fragment.App.Fragment f, Context context); void OnFragmentCreated(AndroidX.Fragment.App.FragmentManager fm, AndroidX.Fragment.App.Fragment f, Bundle? savedInstanceState); void OnFragmentDestroyed(AndroidX.Fragment.App....
IDialogFragmentService
csharp
RicoSuter__NSwag
src/NSwag.Generation.WebApi.Tests/Attributes/ModelBinderQueryParametersTests.cs
{ "start": 708, "end": 944 }
public class ____ : IModelBinder { public bool BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext) { return true; } }
CustomModelBinder
csharp
EventStore__EventStore
src/KurrentDB.Core.Tests/Services/TimeService/time_service_should.cs
{ "start": 798, "end": 937 }
public class ____ : Message { public int Id { get; } public TestResponseMessage(int id) { Id = id; } } [TestFixture]
TestResponseMessage
csharp
aspnetboilerplate__aspnetboilerplate
src/Abp.Zero.Common/Localization/MultiTenantLocalizationSource.cs
{ "start": 304, "end": 8007 }
public class ____ : DictionaryBasedLocalizationSource, IMultiTenantLocalizationSource { public new MultiTenantLocalizationDictionaryProvider DictionaryProvider { get { return base.DictionaryProvider.As<MultiTenantLocalizationDictionaryProvider>(); } } public ILogger Logg...
MultiTenantLocalizationSource
csharp
MaterialDesignInXAML__MaterialDesignInXamlToolkit
src/MaterialDesignThemes.Wpf/ColorReference.cs
{ "start": 82, "end": 1254 }
record ____ ColorReference(ThemeColorReference ThemeReference, Color? Color) { public static ColorReference SecondaryLight { get; } = new ColorReference(ThemeColorReference.SecondaryLight, null); public static ColorReference SecondaryMid { get; } = new ColorReference(ThemeColorReference.SecondaryMid, null); ...
struct
csharp
dotnet__reactive
Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/Observable/DematerializeTest.cs
{ "start": 410, "end": 6086 }
public class ____ : ReactiveTest { [TestMethod] public void Dematerialize_ArgumentChecking() { ReactiveAssert.Throws<ArgumentNullException>(() => Observable.Dematerialize<int>(null)); } [TestMethod] public void Dematerialize_Range1() { ...
DematerializeTest
csharp
xunit__xunit
src/xunit.v3.core/Runners/XunitTestCaseRunnerContext.cs
{ "start": 859, "end": 1377 }
public class ____( IXunitTestCase testCase, IReadOnlyCollection<IXunitTest> tests, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, string displayName, string? skipReason, ExplicitOption explicitOption, object?[] constructorArguments) : XunitTestCaseRun...
XunitTestCaseRunnerContext
csharp
bitwarden__server
src/Core/Platform/PlatformServiceCollectionExtensions.cs
{ "start": 137, "end": 616 }
public static class ____ { /// <summary> /// Extend DI to include commands and queries exported from the Platform /// domain. /// </summary> public static IServiceCollection AddPlatformServices(this IServiceCollection services) { services.AddScoped<IGetInstallationQuery, GetInstallationQ...
PlatformServiceCollectionExtensions
csharp
dotnet__maui
src/Controls/tests/ManualTests/Tests/Editor/D18.xaml.cs
{ "start": 189, "end": 277 }
public partial class ____ : ContentPage { public D18() { InitializeComponent(); } }
D18
csharp
aspnetboilerplate__aspnetboilerplate
test/aspnet-core-demo/AbpAspNetCoreDemo.Tests/Tests/RazorUowPageFilterTests.cs
{ "start": 208, "end": 2332 }
public class ____ : IClassFixture<WebApplicationFactory<Startup>> { private readonly WebApplicationFactory<Startup> _factory; public RazorUowPageFilterTests(WebApplicationFactory<Startup> factory) { _factory = factory; } [Theory] [InlineData("/UowFilterPageDemo", "200", "Razor page uni...
RazorUowPageFilterTests
csharp
reactiveui__ReactiveUI
src/ReactiveUI.Testing/IBuilderExtensions.cs
{ "start": 550, "end": 5684 }
public static class ____ { /// <summary> /// Adds the specified field to the builder. /// </summary> /// <typeparam name="TBuilder">The type of the builder.</typeparam> /// <typeparam name="TField">The type of the field.</typeparam> /// <param name="builder">This builder.</param> /// <param ...
IBuilderExtensions
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver/MongoCollectionImpl.cs
{ "start": 27439, "end": 71191 }
struct ____ operation = CreateFindOneAndReplaceOperation(filter, replacementObject, options); return ExecuteWriteOperationAsync(session, operation, options?.Timeout, cancellationToken); } public override TProjection FindOneAndUpdate<TProjection>(FilterDefinition<TDocument> fil...
var
csharp
StackExchange__StackExchange.Redis
src/StackExchange.Redis/LoggerExtensions.cs
{ "start": 422, "end": 580 }
struct ____(ServerEndPoint server) { public override string ToString() => Format.ToString(server); } internal readonly
ServerEndPointLogValue
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/SagaStateMachineTests/Automatonymous/AnyStateTransition_Specs.cs
{ "start": 137, "end": 995 }
public class ____ { [Test] public void Should_be_running() { Assert.That(_instance.CurrentState, Is.EqualTo(_machine.Running)); } [Test] public void Should_have_entered_running() { Assert.That(_instance.LastEntered, Is.EqualTo(_machine...
When_any_state_transition_occurs
csharp
dotnetcore__Util
src/Util.Scheduling/NullScheduler.cs
{ "start": 72, "end": 815 }
public class ____ : IScheduler { /// <summary> /// 空调度器实例 /// </summary> public static readonly IScheduler Instance = new NullScheduler(); /// <summary> /// 启动 /// </summary> public Task StartAsync( CancellationToken cancellationToken = default ) { return Task.CompletedTask; ...
NullScheduler
csharp
grandnode__grandnode2
src/Web/Grand.Web/Models/Checkout/CheckoutPaymentMethodModel.cs
{ "start": 572, "end": 921 }
public class ____ : BaseModel { public string PaymentMethodSystemName { get; set; } public string Name { get; set; } public string Description { get; set; } public string Fee { get; set; } public bool Selected { get; set; } public string LogoUrl { get; set; } } ...
PaymentMethodModel
csharp
dotnetcore__FreeSql
Extensions/FreeSql.Extensions.Linq/SelectedQueryProvider.cs
{ "start": 336, "end": 1825 }
public interface ____<TOut> { Select0Provider SelectOwner { get; } #if net40 #else Task<List<TOut>> ToListAsync(CancellationToken cancellationToken = default); Task<TOut> ToOneAsync(CancellationToken cancellationToken = default); Task<TOut> FirstAsync(CancellationToken cancellationT...
ISelectedQuery
csharp
dotnet__aspnetcore
src/Shared/test/testassets/MockHostTypes/ServiceProvider.cs
{ "start": 179, "end": 287 }
public class ____ : IServiceProvider { public object GetService(Type serviceType) => null; }
ServiceProvider
csharp
CommunityToolkit__WindowsCommunityToolkit
Microsoft.Toolkit.Uwp.UI.Controls.Core/MetadataControl/MetadataItem.cs
{ "start": 381, "end": 1260 }
public struct ____ { /// <summary> /// Gets or sets the label of the item. /// </summary> public string Label { get; set; } /// <summary> /// Gets or sets the automation name that will be set on the item. /// If not set, <see cref="Label"/> will be used. ...
MetadataItem
csharp
AvaloniaUI__Avalonia
tests/Avalonia.Markup.Xaml.UnitTests/Xaml/XamlIlTests.cs
{ "start": 527, "end": 6549 }
public class ____ : XamlTestBase { [Fact] public void Transitions_Should_Be_Properly_Parsed() { var parsed = (Grid)AvaloniaRuntimeXamlLoader.Parse(@" <Grid xmlns='https://github.com/avaloniaui' > <Grid.Transitions> <Transitions> <DoubleTransition Property='Opacity' ...
XamlIlTests
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Media.MediaProperties/ImageEncodingProperties.cs
{ "start": 304, "end": 9647 }
public partial class ____ : global::Windows.Media.MediaProperties.IMediaEncodingProperties { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ [global::Uno.NotImplemented("__ANDROID__", "__IOS__", "__TVOS__", "IS_UNIT_TESTS", "__WASM__", "__SKIA__", "__NETSTD_REF...
ImageEncodingProperties
csharp
dotnet__reactive
Ix.NET/Source/System.Linq.Async.Queryable.Tests/AsyncEnumerableQueryTest.cs
{ "start": 260, "end": 828 }
public class ____ { [Fact] public void CastToUntypedIAsyncQueryable() { var query = Enumerable.Empty<string>().ToAsyncEnumerable().AsAsyncQueryable(); Assert.IsAssignableFrom<IAsyncQueryable>(query); } [Fact] public void CastToUntypedIOrdered...
AsyncEnumerableQueryTest
csharp
JoshClose__CsvHelper
tests/CsvHelper.Tests/Mappings/ConstructorParameter/DateTimeStylesMapTests.cs
{ "start": 4132, "end": 4337 }
private class ____ { public int Id { get; private set; } public DateTimeOffset Date { get; private set; } public Foo(int id, DateTimeOffset date) { Id = id; Date = date; } }
Foo
csharp
PrismLibrary__Prism
src/Prism.Core/Dialogs/DialogUtilities.cs
{ "start": 286, "end": 2535 }
public static class ____ { /// <summary> /// Initializes <see cref="IDialogAware.RequestClose"/> /// </summary> /// <param name="dialogAware"></param> /// <param name="callback"></param> [EditorBrowsable(EditorBrowsableState.Never)] public static void InitializeListener(IDialogAware dialogAw...
DialogUtilities
csharp
EventStore__EventStore
src/KurrentDB.Core.XUnit.Tests/Scavenge/ScavengeOptionsCalculatorTests.cs
{ "start": 611, "end": 2337 }
public class ____ { private const string SectionName = KurrentConfigurationKeys.Prefix; private static ScavengeOptionsCalculator GenSut( KeyValuePair<string, string?>[]? vNodeOptions = null, int? threshold = null) { vNodeOptions ??= []; var message = new ClientMessage.ScavengeDatabase( envelope: IEnvelope...
ScavengeOptionsCalculatorTests
csharp
unoplatform__uno
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/Models/ListViewGroupedViewModel.cs
{ "start": 355, "end": 5254 }
internal class ____ : ViewModelBase { Random _rnd = null; private bool _areStickyHeadersEnabled; private double _variableWidth; public IEnumerable<IGrouping<string, string>> GroupedSampleItems { get; } public IEnumerable<object> GroupedSampleItemsAsSource { get; } public IEnumerable<IGrouping<int, int>> G...
ListViewGroupedViewModel
csharp
dotnet__orleans
test/Grains/TestGrainInterfaces/IProducerEventCountingGrain.cs
{ "start": 210, "end": 603 }
public interface ____ : IGrainWithGuidKey { Task BecomeProducer(Guid streamId, string providerToUse); /// <summary> /// Sends a single event and, upon successful completion, updates the number of events produced. /// </summary> /// <returns></returns> Task SendEvent(...
IProducerEventCountingGrain
csharp
OrchardCMS__OrchardCore
src/OrchardCore/OrchardCore.Abstractions/Modules/Manifest/FeatureAttribute.cs
{ "start": 692, "end": 1493 }
public class ____ : Attribute { private string _id; private string _name; private string _category = ""; private string[] _dependencies = []; /// <summary> /// Gets the default list delimiters used for parsing dependency strings. /// Supported delimiters are semicolon (;), comma (,), and sp...
FeatureAttribute
csharp
microsoft__semantic-kernel
dotnet/samples/Concepts/Plugins/CopilotAgentBasedPlugins.cs
{ "start": 2052, "end": 13108 }
public class ____(ITestOutputHelper output) : BaseTest(output) { private static readonly PromptExecutionSettings s_promptExecutionSettings = new() { FunctionChoiceBehavior = FunctionChoiceBehavior.Auto( options: new FunctionChoiceBehaviorOptions { ...
CopilotAgentBasedPlugins
csharp
dotnet__aspnetcore
src/Identity/UI/src/Areas/Identity/Pages/V4/Account/ExternalLogin.cshtml.cs
{ "start": 2351, "end": 4322 }
public class ____ { /// <summary> /// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> [Required] [EmailAddres...
InputModel
csharp
dotnet__aspnetcore
src/SignalR/server/Core/src/Internal/NonInvokingSingleClientProxy.cs
{ "start": 188, "end": 953 }
internal sealed class ____ : ISingleClientProxy { private readonly IClientProxy _clientProxy; private readonly string _memberName; public NonInvokingSingleClientProxy(IClientProxy clientProxy, string memberName) { _clientProxy = clientProxy; _memberName = memberName; } public T...
NonInvokingSingleClientProxy
csharp
EventStore__EventStore
src/KurrentDB.Core.XUnit.Tests/Scavenge/Infrastructure/MockScavengePointSource.cs
{ "start": 918, "end": 1461 }
public class ____ : IScavengePointSource { private readonly ILogRecord[][] _log; private readonly DateTime _effectiveNow; private readonly List<ScavengePoint> _added; public MockScavengePointSource( DbResult dbResult, DateTime effectiveNow, List<ScavengePoint> added) { _log = dbResult.Recs; _effectiveNo...
MockScavengePointSource
csharp
ServiceStack__ServiceStack
ServiceStack.OrmLite/tests/ServiceStack.OrmLite.MySql.Tests/OrmLiteComplexTypesTests.cs
{ "start": 184, "end": 1328 }
public class ____ : OrmLiteTestBase { public OrmLiteComplexTypesTests() { LogManager.LogFactory = new ConsoleLogFactory(); } [Test] public void Can_insert_into_ModelWithComplexTypes_table() { using var db = OpenDbConnection(); db.CreateTable<ModelWithComplexTypes>(true); var row = ModelWithComplexTypes....
OrmLiteComplexTypesTests
csharp
HangfireIO__Hangfire
tests/Hangfire.Core.Tests/Utils/DataCompatibilityRangeTheoryAttribute.cs
{ "start": 243, "end": 705 }
internal sealed class ____ : TheoryAttribute { public DataCompatibilityRangeTheoryAttribute() { MinLevel = DataCompatibilityRangeFactAttribute.PossibleMinLevel; MaxExcludingLevel = DataCompatibilityRangeFactAttribute.PossibleMaxExcludingLevel; } public Compat...
DataCompatibilityRangeTheoryAttribute
csharp
CommunityToolkit__Maui
src/CommunityToolkit.Maui/Converters/VariableMultiValueConverter.shared.cs
{ "start": 242, "end": 1350 }
public enum ____ { /// <summary>None of the values should be true.</summary> None, /// <summary>All the values should be true.</summary> All, /// <summary>Any of the values should be true.</summary> Any, /// <summary>The exact number as configured in <see cref="Converters.VariableMultiValueConverter.Count"/> sho...
MultiBindingCondition
csharp
files-community__Files
src/Files.App/Data/Items/TagsListItem.cs
{ "start": 371, "end": 520 }
public sealed class ____ : TagsListItem { public TagViewModel Tag { get; set; } public TagItem(TagViewModel tag) { Tag = tag; } }
TagItem
csharp
EventStore__EventStore
src/KurrentDB.AutoScavenge/Domain/AutoScavengeStatusResponse.cs
{ "start": 388, "end": 477 }
public enum ____ { NotConfigured, Waiting, InProgress, Pausing, Paused, } }
Status
csharp
dotnet__aspnetcore
src/Components/Components/src/PersistentState/PersistComponentStateRegistration.cs
{ "start": 199, "end": 429 }
struct ____( Func<Task> callback, IComponentRenderMode? renderMode) { public Func<Task> Callback { get; } = callback; public IComponentRenderMode? RenderMode { get; } = renderMode; }
PersistComponentStateRegistration
csharp
CommunityToolkit__Maui
src/CommunityToolkit.Maui.Core/Handlers/SemanticOrderView/SemanticOrderViewHandler.macios.cs
{ "start": 121, "end": 274 }
public partial class ____ { /// <inheritdoc/> protected override ContentView CreatePlatformView() => new MauiSemanticOrderView(); }
SemanticOrderViewHandler
csharp
kgrzybek__modular-monolith-with-ddd
src/Modules/Administration/Domain/MeetingGroupProposals/IMeetingGroupProposalRepository.cs
{ "start": 92, "end": 317 }
public interface ____ { Task AddAsync(MeetingGroupProposal meetingGroupProposal); Task<MeetingGroupProposal> GetByIdAsync(MeetingGroupProposalId meetingGroupProposalId); } }
IMeetingGroupProposalRepository
csharp
ServiceStack__ServiceStack
ServiceStack/src/ServiceStack.Interfaces/SystemJsonAttribute.cs
{ "start": 300, "end": 430 }
public class ____(UseSystemJson use) : AttributeBase { public UseSystemJson Use { get; set; } = use; } #endif
SystemJsonAttribute
csharp
nuke-build__nuke
source/Nuke.Build/Execution/Extensions/InjectNonParameterValuesAttribute.cs
{ "start": 333, "end": 1345 }
internal class ____ : BuildExtensionAttributeBase, IOnBuildInitialized { public void OnBuildInitialized( IReadOnlyCollection<ExecutableTarget> executableTargets, IReadOnlyCollection<ExecutableTarget> executionPlan) { ValueInjectionUtility.InjectValues(Build, (member, attribute) => ...
InjectNonParameterValuesAttribute
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/Bugzilla/Bugzilla41271.cs
{ "start": 577, "end": 1320 }
class ____ : ViewCell { Label firstNameLabel = new Label(); Label lastNameLabel = new Label(); Label cityLabel = new Label(); Label stateLabel = new Label(); public ListViewCell() { View = new StackLayout { Orientation = StackOrientation.Horizontal, Children = { firstNameLabel, ...
ListViewCell
csharp
duplicati__duplicati
Duplicati/Library/Utility/EnumerableExtensions.cs
{ "start": 1368, "end": 2761 }
public static class ____ { /// <summary> /// Filters a sequence of values to exclude null elements. /// </summary> /// <param name="source">The sequence to filter.</param> /// <returns>A sequence that contains only the non-null elements from the input sequence.</returns> public static IEnumerabl...
EnumerableExtensions
csharp
dotnet__maui
src/Controls/src/Xaml/MarkupExtensions/BindingExtension.cs
{ "start": 277, "end": 2563 }
public sealed class ____ : IMarkupExtension<BindingBase> { public string Path { get; set; } = Binding.SelfPath; public BindingMode Mode { get; set; } = BindingMode.Default; public IValueConverter Converter { get; set; } public object ConverterParameter { get; set; } public string StringFormat { get; set; } ...
BindingExtension
csharp
dotnet__aspnetcore
src/Http/Headers/test/HeaderUtilitiesTest.cs
{ "start": 245, "end": 15905 }
public class ____ { private const string Rfc1123Format = "r"; [Theory] [MemberData(nameof(TestValues))] public void ReturnsSameResultAsRfc1123String(DateTimeOffset dateTime, bool quoted) { var formatted = dateTime.ToString(Rfc1123Format); var expected = quoted ? $"\"{formatted}\"" :...
HeaderUtilitiesTest
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Bson/Serialization/Serializers/ValueTupleSerializers.cs
{ "start": 20214, "end": 28435 }
public sealed class ____<T1, T2, T3, T4> : StructSerializerBase<ValueTuple<T1, T2, T3, T4>>, IBsonTupleSerializer { // private fields private readonly Lazy<IBsonSerializer<T1>> _lazyItem1Serializer; private readonly Lazy<IBsonSerializer<T2>> _lazyItem2Serializer; private readonly Laz...
ValueTupleSerializer
csharp
microsoft__FASTER
cs/remote/src/FASTER.server/PubSub/FixedLenKeySerializer.cs
{ "start": 298, "end": 1319 }
sealed class ____<Key, Input> : IKeyInputSerializer<Key, Input> { /// <summary> /// Constructor /// </summary> public FixedLenKeySerializer() { } /// <inheritdoc /> [MethodImpl(MethodImplOptions.AggressiveInlining)] public ref Key ReadKeyByRe...
FixedLenKeySerializer
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL.Tests/DI/GraphQLBuilderExtensionTests.cs
{ "start": 62014, "end": 62087 }
private class ____ : BaseSchemaNodeVisitor { }
TestSchemaVisitor
csharp
dotnet__efcore
src/EFCore/Storage/ValueConversion/StringToDateTimeConverter.cs
{ "start": 536, "end": 1933 }
public class ____ : StringDateTimeConverter<string, DateTime> { /// <summary> /// Creates a new instance of this converter. /// </summary> /// <remarks> /// See <see href="https://aka.ms/efcore-docs-value-converters">EF Core value converters</see> for more information and examples. /// <...
StringToDateTimeConverter
csharp
unoplatform__uno
src/SourceGenerators/System.Xaml/System.Xaml.Schema/XamlTypeTypeConverter.cs
{ "start": 1318, "end": 2845 }
public class ____ : TypeConverter { public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) { return sourceType == typeof (string); } public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType) { return destinationType == typeof (string); } ...
XamlTypeTypeConverter
csharp
getsentry__sentry-dotnet
test/Sentry.Extensions.Logging.Tests/MelDiagnosticLoggerTests.cs
{ "start": 125, "end": 2038 }
private class ____ { public ILogger<ISentryClient> MelLogger { get; set; } = Substitute.For<ILogger<ISentryClient>>(); public SentryLevel Level { get; set; } = SentryLevel.Warning; public MelDiagnosticLogger GetSut() => new(MelLogger, Level); } private readonly Fixture _fixture = n...
Fixture
csharp
abpframework__abp
framework/src/Volo.Abp.EventBus.Abstractions/Volo/Abp/EventBus/Distributed/IInboxProcessor.cs
{ "start": 97, "end": 295 }
public interface ____ { Task StartAsync(InboxConfig inboxConfig, CancellationToken cancellationToken = default); Task StopAsync(CancellationToken cancellationToken = default); }
IInboxProcessor
csharp
grpc__grpc-dotnet
src/Grpc.Net.Client/GrpcChannel.cs
{ "start": 40745, "end": 40889 }
record ____ HttpHandlerContext(HttpHandlerType HttpHandlerType, TimeSpan? ConnectTimeout = null, TimeSpan? ConnectionIdleTimeout = null); }
struct
csharp
StackExchange__StackExchange.Redis
src/StackExchange.Redis/Enums/Proxy.cs
{ "start": 612, "end": 1599 }
internal static class ____ { /// <summary> /// Whether a proxy supports databases (e.g. database > 0). /// </summary> internal static bool SupportsDatabases(this Proxy proxy) => proxy switch { Proxy.Twemproxy => false, Proxy.Envoyproxy => false, ...
ProxyExtensions
csharp
AvaloniaUI__Avalonia
src/Windows/Avalonia.Win32/OpenGl/WglDisplay.cs
{ "start": 308, "end": 7525 }
internal class ____ { private static bool? _initialized; private static readonly DebugCallbackDelegate _debugCallback = DebugCallback; private static IntPtr _bootstrapContext; private static IntPtr _bootstrapWindow; private static IntPtr _bootstrapDc; private static ...
WglDisplay
csharp
RicoSuter__NJsonSchema
src/NJsonSchema.Tests/Generation/EnumTests.cs
{ "start": 702, "end": 1378 }
public class ____ { public MetadataSchemaDetailViewItem MetadataSchemaDetailViewItem { get; set; } public MetadataSchemaCreateRequest MetadataSchemaCreateRequest { get; set; } } [Fact] public async Task When_enum_is_used_multiple_times_in_array_then_it_is_always...
MyController
csharp
nuke-build__nuke
source/Nuke.Common/Tools/Docker/Docker.Generated.cs
{ "start": 615934, "end": 616748 }
public partial class ____ : DockerOptionsBase { /// <summary>Password.</summary> [Argument(Format = "--password {value}", Secret = true)] public string Password => Get<string>(() => Password); /// <summary>Username.</summary> [Argument(Format = "--username {value}")] public string Username => Get<string...
DockerLoginSettings
csharp
AvaloniaUI__Avalonia
tests/Avalonia.Controls.UnitTests/TabControlTests.cs
{ "start": 27946, "end": 29458 }
private class ____ : TopLevel { private readonly ILayoutManager _layoutManager; public bool IsClosed { get; private set; } public TestTopLevel(ITopLevelImpl impl, ILayoutManager layoutManager = null) : base(impl) { _layoutManager =...
TestTopLevel
csharp
PrismLibrary__Prism
src/Prism.Core/Common/IParameters.cs
{ "start": 202, "end": 3209 }
public interface ____ : IEnumerable<KeyValuePair<string, object>> { /// <summary> /// Adds the specified key and value to the parameter collection. /// </summary> /// <param name="key">The key of the parameter to add.</param> /// <param name="value">The value of the parameter...
IParameters
csharp
dotnet__maui
src/Core/tests/DeviceTests/Stubs/SwipeItemsStub.cs
{ "start": 217, "end": 2143 }
public class ____ : StubBase, ISwipeItems { readonly ObservableCollection<Maui.ISwipeItem> _swipeItems; public SwipeItemsStub(IEnumerable<ISwipeItem> swipeItems) { _swipeItems = new ObservableCollection<Maui.ISwipeItem>(swipeItems) ?? throw new ArgumentNullException(nameof(swipeItems)); _swipeItems.Collec...
SwipeItemsStub
csharp
AutoFixture__AutoFixture
Src/AutoFixtureUnitTest/FixtureTest.cs
{ "start": 229289, "end": 230255 }
private class ____ { [EnumDataType(typeof(EnumType))] public ushort PropertyWithEnumDataType { get; set; } } [Fact] public void UshortDecoratedWithEnumDataTypeAttributeShouldPassValidation() { // Arrange var sut = new Fixture(); ...
TypeWithUshortPropertyWithEnumDataType
csharp
getsentry__sentry-dotnet
src/Sentry/Platforms/Native/CFunctions.cs
{ "start": 20811, "end": 22386 }
private struct ____ { private IntPtr __stack; private IntPtr __gr_top; private IntPtr __vr_top; private int __gr_offs; private int __vr_offs; } private static void WithAllocatedPtr(int size, Action<IntPtr> action) { var ptr = IntPtr.Zero; try ...
VaListArm64
csharp
microsoft__PowerToys
src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Calc/Helper/QueryHelper.cs
{ "start": 382, "end": 3079 }
partial class ____ { public static ListItem Query(string query, ISettingsInterface settings, bool isFallbackSearch, TypedEventHandler<object, object> handleSave = null) { ArgumentNullException.ThrowIfNull(query); if (!isFallbackSearch) { ArgumentNullException.ThrowIfNull(han...
QueryHelper
csharp
ardalis__CleanArchitecture
MinimalClean/src/MinimalClean.Architecture.Web/Domain/OrderAggregate/OrderItemId.cs
{ "start": 113, "end": 293 }
partial struct ____ { private static Validation Validate(Guid value) => value != Guid.Empty ? Validation.Ok : Validation.Invalid("OrderItemId cannot be empty."); }
OrderItemId
csharp
EventStore__EventStore
src/KurrentDB.Testing/Sample/HomeAutomation/HomeAutomationFakers.cs
{ "start": 2047, "end": 2976 }
public class ____ : Faker<LightStateChanged> { public LightStateChangedFaker(SmartLight device, long timestamp) { RuleFor(e => e.EventId, f => f.Random.Guid()) .RuleFor(e => e.Device, f => device.CreateDeviceInfo()) .RuleFor( e => e.IsOn, f => { if...
LightStateChangedFaker
csharp
AutoMapper__AutoMapper
src/UnitTests/CollectionMapping.cs
{ "start": 25626, "end": 32508 }
public class ____ { public int Id { get; set; } } private static IMapper mapper; private static void FillCollection<TSource, TDestination, TSourceItem, TDestinationItem>( TSource s, TDestination d, Func<TSource, IEnumerable<TSourceItem>> getSourceEnum, Func<TDestination...
DetailDto
csharp
dotnetcore__FreeSql
FreeSql.Tests/FreeSql.Tests.Provider.Custom/UnitTest1.cs
{ "start": 9335, "end": 38863 }
public class ____ { public int Id { get; set; } public string Name { get; set; } [Navigate("AuthorId")] public List<Post> Post { get; set; } } [Fact] public void Test1() { using (var conn = g.oracle.Ado.MasterPool.Get(...
AuthorTest
csharp
microsoft__semantic-kernel
dotnet/src/Functions/Functions.OpenApi/Extensions/OpenApiSchemaExtensions.cs
{ "start": 234, "end": 968 }
internal static class ____ { /// <summary> /// Gets a JSON serialized representation of an <see cref="OpenApiSchema"/> /// </summary> /// <param name="schema">The schema.</param> /// <returns>An instance of <see cref="KernelJsonSchema"/> that contains the JSON Schema.</returns> internal static K...
OpenApiSchemaExtensions