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
mongodb__mongo-csharp-driver
src/MongoDB.Driver/FieldDefinition.cs
{ "start": 4640, "end": 4761 }
class ____ field names. /// </summary> /// <typeparam name="TDocument">The type of the document.</typeparam>
for
csharp
nunit__nunit
src/NUnitFramework/tests/Internal/Filters/TestFilterXmlTests.cs
{ "start": 1160, "end": 1624 }
class ____='1'>Dummy</class></filter>"); Assert.That(filter, Is.TypeOf<ClassNameFilter>()); Assert.That(filter.Match(DummyFixtureSuite)); Assert.That(filter.Match(AnotherFixtureSuite), Is.False); } [Test] public void ClassNameFilter_ToXml_Regex() { ...
re
csharp
dotnet__efcore
test/EFCore.Design.Tests/Query/LinqToCSharpSyntaxTranslatorTest.cs
{ "start": 61606, "end": 62060 }
public enum ____ { One = 1, Two = 2 } // ReSharper restore UnusedMember.Local // ReSharper restore AutoPropertyCanBeMadeGetOnly.Local // ReSharper restore UnusedParameter.Local // ReSharper restore UnusedAutoPropertyAccessor.Local // ReSharper restore MemberCanBePrivate.Loca...
SomeEnum
csharp
CommunityToolkit__dotnet
src/CommunityToolkit.Mvvm/Messaging/IMessengerExtensions.cs
{ "start": 1267, "end": 1782 }
private static class ____ { /// <summary> /// The <see cref="MethodInfo"/> instance associated with <see cref="Register{TMessage,TToken}(IMessenger,IRecipient{TMessage},TToken)"/>. /// </summary> public static readonly MethodInfo RegisterIRecipient = new Action<IMessenger, IRecipient...
MethodInfos
csharp
SixLabors__ImageSharp
tests/ImageSharp.Tests/Image/ImageTests.cs
{ "start": 3483, "end": 7598 }
public class ____ { private readonly Configuration configuration = Configuration.CreateDefaultInstance(); private void LimitBufferCapacity(int bufferCapacityInBytes) => this.configuration.MemoryAllocator = new TestMemoryAllocator { BufferCapacityInBytes = bufferCapacityInBytes }; ...
Indexer
csharp
icsharpcode__SharpZipLib
src/ICSharpCode.SharpZipLib/Zip/Compression/Streams/StreamManipulator.cs
{ "start": 780, "end": 7910 }
public class ____ { /// <summary> /// Get the next sequence of bits but don't increase input pointer. bitCount must be /// less or equal 16 and if this call succeeds, you must drop /// at least n - 8 bits in the next call. /// </summary> /// <param name="bitCount">The number of bits to peek.</param> ///...
StreamManipulator
csharp
dotnet__maui
src/Compatibility/Material/src/Android/MaterialPickerTextInputLayout.cs
{ "start": 198, "end": 808 }
public class ____ : MaterialFormsTextInputLayoutBase, IPopupTrigger { public bool ShowPopupOnFocus { get; set; } public MaterialPickerTextInputLayout(Context context) : base(context) { } public MaterialPickerTextInputLayout(Context context, IAttributeSet attrs) : base(context, attrs) { } public Mate...
MaterialPickerTextInputLayout
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Input/Internal/IFocusable.cs
{ "start": 228, "end": 941 }
internal interface ____ { bool IsFocusable(); int GetTabIndex(); DependencyProperty GetXYFocusDownPropertyIndex(); DependencyProperty GetXYFocusDownNavigationStrategyPropertyIndex(); DependencyProperty GetXYFocusLeftPropertyIndex(); DependencyProperty GetXYFocusLeftNavigationStrategyPropertyIndex(); ...
IFocusable
csharp
dotnet__aspnetcore
src/Identity/test/Identity.FunctionalTests/Pages/Index.cs
{ "start": 308, "end": 2724 }
public class ____ : DefaultUIPage { private readonly IHtmlAnchorElement _registerLink; private readonly IHtmlAnchorElement _loginLink; private readonly IHtmlAnchorElement _manageLink; public static readonly string Path = "/"; public Index( HttpClient client, IHtmlDocument index, ...
Index
csharp
dotnet__maui
src/Controls/tests/Xaml.UnitTests/Issues/Gh4319.xaml.cs
{ "start": 255, "end": 851 }
class ____ { MockDeviceInfo mockDeviceInfo; [SetUp] public void Setup() => DeviceInfo.SetCurrent(mockDeviceInfo = new MockDeviceInfo()); [TearDown] public void TearDown() => DeviceInfo.SetCurrent(null); [Test] public void OnPlatformMarkupAndNamedSizes([Values] XamlInflator inflator) { mockDeviceInfo....
Tests
csharp
duplicati__duplicati
Duplicati/Library/Interface/IPowerModeProvider.cs
{ "start": 1331, "end": 1666 }
public interface ____ : IDisposable { /// <summary> /// Event that is triggered when the system is resuming from suspend /// </summary> Action? OnResume { get; set; } /// <summary> /// Event that is triggered when the system is suspending /// </summary> Action? OnSuspend { get; set; } }...
IPowerModeProvider
csharp
dotnet__maui
src/TestUtils/src/Microsoft.Maui.IntegrationTests/SampleTests.cs
{ "start": 1559, "end": 1666 }
public class ____ { public SolutionElement solution { get; set; } = new SolutionElement(); }
SolutionFile
csharp
pythonnet__pythonnet
tests/domain_tests/TestRunner.cs
{ "start": 23492, "end": 24188 }
public class ____ { } }", PythonCode = @" import clr import sys clr.AddReference('DomainTests') import TestNamespace def before_reload(): sys.my_cls = TestNamespace.Before def after_reload(): try: bar = sys.my_cls() except TypeError: print('Caught expect...
After
csharp
domaindrivendev__Swashbuckle.AspNetCore
test/Swashbuckle.AspNetCore.TestSupport/Fixtures/ContainingType.cs
{ "start": 48, "end": 129 }
public class ____ { public NestedType Property1 { get; set; }
ContainingType
csharp
icsharpcode__ILSpy
ICSharpCode.BamlDecompiler/Baml/BamlRecords.cs
{ "start": 28690, "end": 29036 }
internal class ____ : BamlRecord { public override BamlRecordType Type => BamlRecordType.LinePosition; public uint LinePosition { get; set; } public override void Read(BamlBinaryReader reader) => LinePosition = reader.ReadUInt32(); public override void Write(BamlBinaryWriter writer) => writer.Write(LinePosi...
LinePositionRecord
csharp
aspnetboilerplate__aspnetboilerplate
src/Abp.ZeroCore.EntityFramework/Zero/EntityFramework/AbpZeroDbMigrator.cs
{ "start": 275, "end": 2604 }
public abstract class ____<TDbContext, TConfiguration> : IAbpZeroDbMigrator, ITransientDependency where TDbContext : DbContext where TConfiguration : DbMigrationsConfiguration<TDbContext>, IMultiTenantSeed, new() { private readonly IUnitOfWorkManager _unitOfWorkManager; private readonly IDbPerTenantConn...
AbpZeroDbMigrator
csharp
dotnet__aspire
src/Tools/ConfigurationSchemaGenerator/RuntimeSource/SourceGenerators/CSharpSyntaxUtilities.cs
{ "start": 277, "end": 2366 }
internal static class ____ { // Standard format for double and single on non-inbox frameworks to ensure value is round-trippable. public const string DoubleFormatString = "G17"; public const string SingleFormatString = "G9"; // Format a literal in C# format -- works around https://github.com/dotnet/ros...
CSharpSyntaxUtilities
csharp
getsentry__sentry-dotnet
test/Sentry.Serilog.Tests/SerilogAspNetSentrySdkTestFixture.cs
{ "start": 91, "end": 1285 }
public class ____ : AspNetSentrySdkTestFixture { protected List<SentryEvent> Events; protected List<SentryLog> Logs; protected bool EnableLogs { get; set; } protected override void ConfigureBuilder(WebHostBuilder builder) { Events = new List<SentryEvent>(); Logs = new List<SentryLo...
SerilogAspNetSentrySdkTestFixture
csharp
MassTransit__MassTransit
tests/MassTransit.RabbitMqTransport.Tests/PublishTopology_Specs.cs
{ "start": 1135, "end": 1619 }
public class ____ : RabbitMqTestFixture { [Test] [Explicit] public void Should_create_the_exchanges() { } protected override void ConfigureRabbitMqBus(IRabbitMqBusFactoryConfigurator configurator) { configurator.DeployPublishTopology = tru...
Configuring_the_publish_topology_at_startup_by_namespace
csharp
dotnetcore__FreeSql
FreeSql.Tests/FreeSql.Tests/SqlServer/SqlServerCodeFirstTest.cs
{ "start": 7464, "end": 9060 }
class ____ { public Guid id { get; set; } public string name { get; set; } [Column(IsVersion = true)] public int version { get; set; } } [Fact] public void VersionBytes() { bool LocalEqualsVersion(byte[] v1, byte[] v2) ...
VersionInt01
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 282277, "end": 282497 }
public class ____ { public int Id { get; set; } public RelatedEntity1297 ParentEntity { get; set; } public IEnumerable<RelatedEntity1299> ChildEntities { get; set; } }
RelatedEntity1298
csharp
MassTransit__MassTransit
src/MassTransit.Abstractions/Topology/Configuration/TopologyPublishPipeSpecificationObserver.cs
{ "start": 43, "end": 781 }
public class ____ : IPublishPipeSpecificationObserver { readonly IPublishTopology _topology; public TopologyPublishPipeSpecificationObserver(IPublishTopology topology) { _topology = topology; } void IPublishPipeSpecificationObserver.MessageSpecificationC...
TopologyPublishPipeSpecificationObserver
csharp
ShareX__ShareX
ShareX.UploadersLib/TextUploaders/Pastebin.cs
{ "start": 2054, "end": 11724 }
public sealed class ____ : TextUploader { private string APIKey; public PastebinSettings Settings { get; private set; } public Pastebin(string apiKey) { APIKey = apiKey; Settings = new PastebinSettings(); } public Pastebin(string apiKey, Pas...
Pastebin
csharp
dotnet__aspire
src/Aspire.Hosting.Kubernetes/Resources/HostAliasV1.cs
{ "start": 441, "end": 1130 }
public sealed class ____ { /// <summary> /// Gets or sets the IP address associated with the HostAlias in the Kubernetes resource definition. /// </summary> /// <remarks> /// This property represents the IP address that will be mapped to the specified hostnames in the resource. /// </remarks> ...
HostAliasV1
csharp
EventStore__EventStore
src/KurrentDB.Projections.Core/Services/Management/ManagedProjectionStates/ManagedProjectionStateBase.cs
{ "start": 309, "end": 1256 }
internal abstract class ____ { protected readonly ManagedProjection _managedProjection; protected ManagedProjectionStateBase(ManagedProjection managedProjection) { _managedProjection = managedProjection; } private void Unexpected(string message) { _managedProjection.Fault(message + " in " + this.GetType().Nam...
ManagedProjectionStateBase
csharp
FluentValidation__FluentValidation
src/FluentValidation/Resources/Languages/KhmerLanguage.cs
{ "start": 811, "end": 3725 }
internal class ____ { public const string Culture = "km"; public static string GetTranslation(string key) => key switch { "EmailValidator" => "'{PropertyName}'មិនមែនជាអ៊ីមែលត្រឹមត្រូវទេ។", "GreaterThanOrEqualValidator" => "'{PropertyName}'ត្រូវតែធំជាង ឬស្មើ'{ComparisonValue}។'", "GreaterThanValidator" => "'{Pr...
KhmerLanguage
csharp
microsoft__semantic-kernel
dotnet/samples/Concepts/Functions/Arguments.cs
{ "start": 238, "end": 1598 }
public class ____(ITestOutputHelper output) : BaseTest(output) { [Fact] public async Task RunAsync() { Console.WriteLine("======== Arguments ========"); Kernel kernel = new(); var textPlugin = kernel.ImportPluginFromType<StaticTextPlugin>(); var arguments = new KernelArgume...
Arguments
csharp
dotnet__maui
src/Core/tests/Benchmarks/Benchmarks/PropertyMapperBenchmarker.cs
{ "start": 174, "end": 1054 }
class ____ : ButtonHandler { protected override object CreatePlatformView() { return new object(); } } readonly Registrar<IView, IViewHandler> _registrar; readonly IViewHandler _handler; readonly Button _button; public PropertyMapperBenchmarker() { _button = new Button(); _registrar = new Registr...
TestButtonHandler
csharp
SixLabors__ImageSharp
src/ImageSharp/Formats/Jpeg/Components/ColorConverters/JpegColorConverterScalar.cs
{ "start": 152, "end": 350 }
partial class ____ { /// <summary> /// <see cref="JpegColorConverterBase"/> abstract base for implementations /// based on scalar instructions. /// </summary>
JpegColorConverterBase
csharp
MassTransit__MassTransit
src/MassTransit.Abstractions/IConsumer.cs
{ "start": 189, "end": 365 }
interface ____ allow access to details surrounding the inbound message, including headers. /// </summary> /// <typeparam name="TMessage">The message type</typeparam>
to
csharp
JoshClose__CsvHelper
tests/CsvHelper.Tests/TypeConversion/TypeConverterOptionsTests.cs
{ "start": 2593, "end": 2919 }
private sealed class ____ : ClassMap<Test> { public TestMap() { Map(m => m.Id); Map(m => m.Name).TypeConverterOption.NullValues(string.Empty); } } // auto map options have defaults // map options could be default or custom if set // global has defaults or custom // merge global with map }...
TestMap
csharp
dotnet__maui
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue13126_2.cs
{ "start": 116, "end": 568 }
public class ____ : _IssuesUITest { const string Success = "Success"; public Issue13126_2(TestDevice testDevice) : base(testDevice) { } public override string Issue => "[Bug] Regression: 5.0.0-pre5 often fails to draw dynamically loaded collection view content"; [Test] [Category(UITestCategories.Colle...
Issue13126_2
csharp
protobuf-net__protobuf-net
src/protobuf-net.Test/NullMaps.cs
{ "start": 25347, "end": 25597 }
public class ____ : ITestScenario { [ProtoMember(4), NullWrappedCollection(AsGroup = true), NullWrappedValue] public Dictionary<int, Foo?>? Foos { get; set; } }
WithNullWrappedGroupCollection_WrappedValues
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Input/TextInput/InputMethodManager.cs
{ "start": 111, "end": 5387 }
internal class ____ { private ITextInputMethodImpl? _im; private IInputElement? _focusedElement; private Interactive? _visualRoot; private TextInputMethodClient? _client; private readonly TransformTrackingHelper _transformTracker = new TransformTrackingHelper(); publ...
TextInputMethodManager
csharp
ChilliCream__graphql-platform
src/HotChocolate/Adapters/src/Adapters.OpenApi.Core/Execution/DynamicEndpointMiddleware.cs
{ "start": 304, "end": 10665 }
internal sealed class ____( string schemaName, OpenApiEndpointDescriptor endpointDescriptor) { // TODO: This needs to raise diagnostic events (httprequest, startsingle and httprequesterror public async Task InvokeAsync(HttpContext context) { var cancellationToken = context.RequestAborted; ...
DynamicEndpointMiddleware
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Media/Imaging/Svg/ISvgProvider.cs
{ "start": 289, "end": 358 }
interface ____, as its signature /// may change. /// </summary>
directly
csharp
NLog__NLog
src/NLog/SetupLoadConfigurationExtensions.cs
{ "start": 15536, "end": 16219 }
interface ____ configuring targets for the new LoggingRule.</returns> public static ISetupConfigurationTargetBuilder WriteTo(this ISetupConfigurationTargetBuilder configBuilder, params Target[] targets) { if (targets?.Length > 0) { for (int i = 0; i < targets.Len...
for
csharp
grandnode__grandnode2
src/Core/Grand.Domain/Permissions/IGroupLinkEntity.cs
{ "start": 122, "end": 366 }
public interface ____ { /// <summary> /// Gets or sets a value indicating whether the entity is subject to group /// </summary> bool LimitedToGroups { get; set; } IList<string> CustomerGroups { get; set; } }
IGroupLinkEntity
csharp
grandnode__grandnode2
src/Web/Grand.Web.Admin/Controllers/AffiliateController.cs
{ "start": 510, "end": 7234 }
public class ____ : BaseAdminController { #region Constructors public AffiliateController(ITranslationService translationService, IAffiliateService affiliateService, IAffiliateViewModelService affiliateViewModelService, IPermissionService permissionService) { _translationService = t...
AffiliateController
csharp
microsoft__garnet
modules/GarnetJSON/JSONPath/JsonPath.cs
{ "start": 2054, "end": 42727 }
class ____ the specified expression. /// </summary> /// <param name="expression">The JSON Path expression.</param> /// <exception cref="ArgumentNullException">Thrown when the expression is null.</exception> public JsonPath(string expression) { ArgumentNullException.Th...
with
csharp
ShareX__ShareX
ShareX.UploadersLib/Forms/CustomUploaderSyntaxTestForm.cs
{ "start": 1144, "end": 6038 }
public partial class ____ : Form { private ResponseInfo testResponseInfo; public CustomUploaderSyntaxTestForm() : this(null, null) { } public CustomUploaderSyntaxTestForm(ResponseInfo responseInfo, string urlSyntax) { InitializeComponent(); ...
CustomUploaderSyntaxTestForm
csharp
nuke-build__nuke
source/Nuke.Utilities/Text/String.Quoting.cs
{ "start": 246, "end": 3055 }
partial class ____ { /// <summary> /// Double-quotes a given string if it contains spaces. Empty and already quoted strings remain unchanged. /// </summary> [Pure] public static string DoubleQuoteIfNeeded([CanBeNull] this string str) { return str.DoubleQuoteIfNeeded(' '); } ///...
StringExtensions
csharp
atata-framework__atata
src/Atata/DataProvision/IObjectProviderEnumerableExtensions.cs
{ "start": 193, "end": 15488 }
public static class ____ { /// <inheritdoc cref="Contains{TSource}(IObjectProvider{IEnumerable{TSource}}, IEnumerable{TSource})"/> public static bool Contains<TSource>( this IObjectProvider<IEnumerable<TSource>> source, params TSource[] items) => source.Contains(items.AsEnumerable()); ...
IObjectProviderEnumerableExtensions
csharp
DuendeSoftware__IdentityServer
identity-server/src/IdentityServer/Validation/Contexts/IntrospectionRequestValidationContext.cs
{ "start": 338, "end": 785 }
public class ____ { /// <summary> /// The request parameters /// </summary> public NameValueCollection Parameters { get; set; } = default!; /// <summary> /// The ApiResource that is making the request /// </summary> public ApiResource? Api { get; set; } /// <summary> /// The C...
IntrospectionRequestValidationContext
csharp
CommunityToolkit__dotnet
src/CommunityToolkit.HighPerformance/Memory/Span2D{T}.cs
{ "start": 14920, "end": 16340 }
struct ____ a layer in a 3D array. /// </summary> /// <param name="array">The given 3D array to wrap.</param> /// <param name="depth">The target layer to map within <paramref name="array"/>.</param> /// <exception cref="ArrayTypeMismatchException"> /// Thrown when <paramref name="array"/> doesn't ma...
wrapping
csharp
dotnet__efcore
src/EFCore/Metadata/Conventions/IModelInitializedConvention.cs
{ "start": 476, "end": 936 }
public interface ____ : IConvention { /// <summary> /// Called after a model is initialized. /// </summary> /// <param name="modelBuilder">The builder for the model.</param> /// <param name="context">Additional information associated with convention execution.</param> void ProcessModelInitia...
IModelInitializedConvention
csharp
xunit__xunit
src/xunit.v3.core/Utility/DisplayNameFormatter.cs
{ "start": 301, "end": 2297 }
public class ____ { readonly CharacterRule rule; /// <summary> /// Initializes a new instance of the <see cref="DisplayNameFormatter"/> class. /// </summary> public DisplayNameFormatter() => rule = new CharacterRule(); /// <summary> /// Initializes a new instance of the <see cref="DisplayNameFormatter"/> cla...
DisplayNameFormatter
csharp
nunit__nunit
src/NUnitFramework/benchmarks/nunit.framework.benchmarks/ByteAllocationBenchmark.cs
{ "start": 11729, "end": 12504 }
public enum ____ { /// <summary> /// Method does not support the instances being compared. /// </summary> TypesNotSupported, /// <summary> /// Method is appropriate for the data types, but doesn't support the specified tolerance. ...
EqualMethodResult
csharp
microsoft__PowerToys
src/common/UITestAutomation/KeyboardHelper.cs
{ "start": 454, "end": 1476 }
public enum ____ { Ctrl, LCtrl, RCtrl, Alt, Shift, Tab, Esc, Enter, Win, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, ...
Key
csharp
abpframework__abp
modules/cms-kit/src/Volo.CmsKit.Public.Web/Security/Captcha/CaptchaOutput.cs
{ "start": 68, "end": 249 }
public class ____ { public Guid Id { get; set; } public string Text { get; set; } public byte[] ImageBytes { get; set; } public int Result { get; set; } }
CaptchaOutput
csharp
CommunityToolkit__WindowsCommunityToolkit
Microsoft.Toolkit.Uwp.UI.Controls.Layout/OrbitView/OrbitViewDataItem.cs
{ "start": 516, "end": 3652 }
public partial class ____ : DependencyObject { /// <summary> /// Gets or sets a value indicating the distance from the center. /// Expected value between 0 and 1 /// </summary> public double Distance { get { return (double)GetValue(DistanceProperty); } ...
OrbitViewDataItem
csharp
dotnet__efcore
src/EFCore.Relational/Metadata/Internal/ViewColumn.cs
{ "start": 647, "end": 2883 }
public class ____ : ColumnBase<ViewColumnMapping>, IViewColumn { /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any rel...
ViewColumn
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/ContainerTests/ExcludeTypeFromFilter_Specs.cs
{ "start": 1731, "end": 2675 }
class ____<T> : IFilter<PublishContext<T>> where T : class { readonly ILogger<PublishTenantHeaderFilter<T>> _logger; public PublishTenantHeaderFilter(ILogger<PublishTenantHeaderFilter<T>> logger) { _logger = logger; } ...
PublishTenantHeaderFilter
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 317917, "end": 318137 }
public class ____ { public int Id { get; set; } public RelatedEntity1459 ParentEntity { get; set; } public IEnumerable<RelatedEntity1461> ChildEntities { get; set; } }
RelatedEntity1460
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Controls/CommandBarFlyout/CommandBarFlyoutCommandBar.h.mux.cs
{ "start": 690, "end": 764 }
internal enum ____ { Opacity, Clip }
CommandBarFlyoutOpenCloseAnimationKind
csharp
dotnet__maui
src/Controls/tests/ManualTests/Tests/Editor/D14.xaml.cs
{ "start": 190, "end": 278 }
public partial class ____ : ContentPage { public D14() { InitializeComponent(); } }
D14
csharp
ChilliCream__graphql-platform
src/GreenDonut/src/GreenDonut.Abstractions/Batch.cs
{ "start": 460, "end": 2466 }
public abstract class ____ { /// <summary> /// <para> /// Gets the number of items currently contained in this batch. /// </para> /// <para> /// This reflects the current size of the batch and can be used /// to decide whether to dispatch early (e.g., when reaching a /// maximum size thr...
Batch
csharp
unoplatform__uno
src/Uno.UI.Composition/Composition/CompositionColorBrush.cs
{ "start": 149, "end": 1158 }
public partial class ____ : CompositionBrush { private Color _color; internal CompositionColorBrush(Compositor compositor) : base(compositor) { } public Color Color { get { return _color; } set { SetProperty(ref _color, value); } } internal override object GetAnimatableProperty(string propert...
CompositionColorBrush
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL.Tests/Execution/UnionInterfaceTests.cs
{ "start": 7697, "end": 7733 }
public interface ____ : INamed { }
IPet
csharp
EventStore__EventStore
src/KurrentDB.Core/Services/Transport/Enumerators/Enumerator.ReadAllForwardsFiltered.cs
{ "start": 679, "end": 4607 }
public class ____ : IAsyncEnumerator<ReadResponse> { private readonly IPublisher _bus; private readonly ulong _maxCount; private readonly bool _resolveLinks; private readonly IEventFilter _eventFilter; private readonly ClaimsPrincipal _user; private readonly bool _requiresLeader; private readonly IExpiryS...
ReadAllForwardsFiltered
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.System.Preview/TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs.cs
{ "start": 356, "end": 1493 }
public partial class ____ { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ internal TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs() { } #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE...
TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs
csharp
Humanizr__Humanizer
src/Benchmarks/TimeOnlyToClockNotationConverterBenchmarks.cs
{ "start": 25, "end": 1664 }
public class ____ { static readonly TimeOnly time = new(13, 6, 2, 88, 987); static readonly EsTimeOnlyToClockNotationConverter esConverter = new(); [Benchmark] public void EsClockNotationConverter() { esConverter.Convert(time, ClockNotationRounding.None); esConverter.Convert(time, C...
TimeOnlyToClockNotationConverterBenchmarks
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Security.Authentication.Web.Core/WebAccountEventArgs.cs
{ "start": 315, "end": 1193 }
public partial class ____ { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ internal WebAccountEventArgs() { } #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ [global::Uno.NotImplemented("__AN...
WebAccountEventArgs
csharp
JamesNK__Newtonsoft.Json
Src/Newtonsoft.Json.Tests/TestObjects/Binding.cs
{ "start": 1202, "end": 1341 }
public class ____ { [JsonProperty(Required = Required.Always)] public Binding RequiredProperty { get; set; } } }
Binding
csharp
dotnet__machinelearning
src/Microsoft.ML.Data/EntryPoints/CommonOutputs.cs
{ "start": 5521, "end": 5712 }
public interface ____ { } /// <summary> /// Interface that all API trainer output classes will implement. /// </summary>
ISequencePredictionOutput
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Controls/Panel/Panel.unittests.cs
{ "start": 386, "end": 503 }
partial class ____ { public override IEnumerable<View> GetChildren() => Children.OfType<View>().ToArray<View>(); }
Panel
csharp
AutoMapper__AutoMapper
src/IntegrationTests/CustomMapFrom/MapObjectPropertyFromSubQuery.cs
{ "start": 9313, "end": 11035 }
public partial class ____ { public int Id { get; set; } public string Name { get; set; } public bool ECommercePublished { get; set; } public virtual ICollection<Article> Articles { get; set; } public int Value { get; } [NotMapped] public int NotMappedValue { g...
Product
csharp
App-vNext__Polly
test/Polly.TestUtils/BinarySerializationUtil.cs
{ "start": 345, "end": 776 }
public static class ____ { public static T SerializeAndDeserializeException<T>(T exception) where T : Exception { using var stream = new MemoryStream(); var formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); formatter.Serialize(stream, exception); ...
BinarySerializationUtil
csharp
OrchardCMS__OrchardCore
src/OrchardCore/OrchardCore.DisplayManagement/Shapes/ShapeDebugView.cs
{ "start": 959, "end": 1685 }
public class ____ { public KeyValuePairs(string key, object value) { if (_value is IShape) { _shapeType = ((IShape)_value).Metadata.Type; } _value = value; _key = key; } [DebuggerBrowsable(DebuggerBrowsable...
KeyValuePairs
csharp
dotnet__tye
src/tye/StandardOptions.cs
{ "start": 380, "end": 8817 }
public static class ____ { private static readonly string[] AllOutputs = new string[] { "container", "chart", }; public static Option Environment { get { return new Option(new[] { "-e", "--environment" }, "Environment") { ...
StandardOptions
csharp
Cysharp__UniTask
src/UniTask.NetCoreSandbox/Program.cs
{ "start": 439, "end": 898 }
public class ____ { static async Task Main(string[] args) { var cts = new CancellationTokenSource(); // OK. await FooAsync(10, cts.Token); // NG(Compiler Error) // await FooAsync(10); } static async...
Program
csharp
xunit__xunit
src/xunit.v3.core.tests/Acceptance/FixtureAcceptanceTests.cs
{ "start": 23628, "end": 23782 }
public class ____ : ICollectionFixture<MessageSinkFixture> { } [Collection("collection with message sink fixture")]
ClassWithMessageSinkFixtureCollection
csharp
dotnet__orleans
test/TesterInternal/ActivationRepartitioningTests/CustomToleranceTests.cs
{ "start": 6868, "end": 8062 }
public class ____ : Grain, IF { public Task Ping() => Task.CompletedTask; public Task<SiloAddress> GetAddress() => Task.FromResult(GrainContext.Address.SiloAddress); public override Task OnActivateAsync(CancellationToken cancellationToken) { ServiceProvider.GetRequiredS...
F
csharp
bitwarden__server
bitwarden_license/src/Scim/Users/Interfaces/IPatchUserCommand.cs
{ "start": 63, "end": 179 }
public interface ____ { Task PatchUserAsync(Guid organizationId, Guid id, ScimPatchModel model); }
IPatchUserCommand
csharp
icsharpcode__ILSpy
ILSpy/AppEnv/SingleInstance.cs
{ "start": 7121, "end": 8400 }
public sealed class ____ : EventArgs { /// <summary> /// Creates new instance. /// </summary> /// <param name="commandLine">Command line.</param> /// <param name="commandLineArgs">String array containing the command line arguments in the same format as Environment.GetCommandLineArgs.</param> internal NewInstanceE...
NewInstanceEventArgs
csharp
dotnet__maui
src/Compatibility/Core/src/iOS/Renderers/IndicatorViewRenderer.cs
{ "start": 5889, "end": 6439 }
class ____ : UIPageControl { const int DefaultIndicatorSize = 7; public bool IsSquare { get; set; } public double IndicatorSize { get; set; } public override void LayoutSubviews() { base.LayoutSubviews(); float scale = (float)IndicatorSize / DefaultIndicatorSize; var newTransform = CGAffineTrans...
FormsPageControl
csharp
OrchardCMS__OrchardCore
src/OrchardCore.Modules/OrchardCore.Contents/AuditTrail/ViewModels/AuditTrailPartSettingsViewModel.cs
{ "start": 55, "end": 151 }
public class ____ { public bool ShowCommentInput { get; set; } }
AuditTrailPartSettingsViewModel
csharp
dotnet__efcore
test/EFCore.SqlServer.FunctionalTests/TestUtilities/SqlServerCondition.cs
{ "start": 202, "end": 815 }
public enum ____ { IsAzureSql = 1 << 0, IsNotAzureSql = 1 << 1, SupportsMemoryOptimized = 1 << 2, SupportsAttach = 1 << 3, SupportsHiddenColumns = 1 << 4, IsNotCI = 1 << 5, SupportsFullTextSearch = 1 << 6, SupportsOnlineIndexes = 1 << 7, SupportsTemporalTablesCascadeDelete = 1 << 8, ...
SqlServerCondition
csharp
grpc__grpc-dotnet
src/Grpc.Net.Client/Internal/Configuration/ConvertHelpers.cs
{ "start": 742, "end": 5068 }
internal static class ____ { public static string ConvertStatusCode(StatusCode statusCode) { return statusCode switch { StatusCode.OK => "OK", StatusCode.Cancelled => "CANCELLED", StatusCode.Unknown => "UNKNOWN", StatusCode.InvalidArgument => "INVA...
ConvertHelpers
csharp
dotnet__machinelearning
src/Microsoft.ML.CodeGenerator/CodeGenerator/CSharp/TrainerGenerators.cs
{ "start": 13462, "end": 14924 }
internal class ____ : TrainerGeneratorBase { //ClassName of the trainer internal override string MethodName => "LbfgsPoissonRegression"; //ClassName of the options to trainer internal override string OptionsName => "LbfgsPoissonRegressionTrainer.Options"; ...
LbfgsPoissonRegression
csharp
MahApps__MahApps.Metro
src/MahApps.Metro/Controls/Helper/ControlsHelper.cs
{ "start": 521, "end": 12849 }
public static class ____ { public static readonly DependencyProperty DisabledVisualElementVisibilityProperty = DependencyProperty.RegisterAttached( "DisabledVisualElementVisibility", typeof(Visibility), typeof(ControlsHelper), new F...
ControlsHelper
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Media/Animation/PanelTransitionHelper.cs
{ "start": 5927, "end": 6109 }
private class ____ { public View Element { get; set; } public int OffsetX { get; set; } public int OffsetY { get; set; } } } }
ChildWithOffset
csharp
AutoFixture__AutoFixture
Src/AutoFixtureUnitTest/FixtureTest.cs
{ "start": 194085, "end": 194304 }
private class ____ { public RecursionTestObjectWithReferenceOutA ReferenceToA { get; set; } }
RecursionTestObjectWithReferenceOutB
csharp
dotnet__machinelearning
src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderCursor.cs
{ "start": 36874, "end": 44309 }
private sealed class ____ : IDisposable { private readonly Cursor _curs; private readonly LineReader _reader; private readonly RowSet _rows; // Number of blocks in this RowSet. private readonly int _blockCount; ...
ParallelState
csharp
bitwarden__server
src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/IResendOrganizationInviteCommand.cs
{ "start": 86, "end": 807 }
public interface ____ { /// <summary> /// Resend an invite to an organization user. /// </summary> /// <param name="organizationId">The ID of the organization.</param> /// <param name="invitingUserId">The ID of the user who is inviting the organization user.</param> /// <param name="organization...
IResendOrganizationInviteCommand
csharp
bitwarden__server
src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Errors/NoUsersToInviteError.cs
{ "start": 227, "end": 418 }
public record ____(InviteOrganizationUsersResponse Response) : Error<InviteOrganizationUsersResponse>(Code, Response) { public const string Code = "No users to invite"; }
NoUsersToInviteError
csharp
ServiceStack__ServiceStack
ServiceStack.OrmLite/src/ServiceStack.OrmLite.MySqlConnector/MySqlConnectorConfiguration.cs
{ "start": 100, "end": 1378 }
public static class ____ { public static MySqlConnectorDialectProvider Configure(MySqlConnectorDialectProvider dialect) { dialect.UseJson = true; return dialect; } public static MySqlConnectorDialectProvider UseMySqlConnector(this OrmLiteConfigOptions config, string? connectionString, A...
MySqlConnectorConfiguration
csharp
MonoGame__MonoGame
MonoGame.Framework/Ray.cs
{ "start": 471, "end": 13308 }
public struct ____ : IEquatable<Ray> { #region Public Fields /// <summary> /// The direction of this <see cref="Ray"/>. /// </summary> [DataMember] public Vector3 Direction; /// <summary> /// The origin of this <see cref="Ray"/>. /// </...
Ray
csharp
cake-build__cake
src/Cake.Common/Tools/DotNet/Package/Search/DotNetPackageSearcher.cs
{ "start": 500, "end": 4819 }
public sealed class ____ : DotNetTool<DotNetPackageSearchSettings> { private static readonly JsonSerializerOptions _jsonSerializerOptions = new JsonSerializerOptions(JsonSerializerDefaults.Web); private readonly ICakeEnvironment _environment; /// <summary> /// Initializes a new ins...
DotNetPackageSearcher
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Graphics.Printing.Workflow/PrintWorkflowBackgroundSession.cs
{ "start": 309, "end": 4961 }
public partial class ____ { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ internal PrintWorkflowBackgroundSession() { } #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ [global::Uno.NotImplem...
PrintWorkflowBackgroundSession
csharp
dotnet__reactive
Rx.NET/Source/tests/Tests.System.Reactive/Tests/Linq/Observable/ObserveOnTest.cs
{ "start": 730, "end": 7812 }
public class ____ : TestBase { #region + TestBase + [TestMethod] public void ObserveOn_ArgumentChecking() { var someObservable = Observable.Empty<int>(); #if HAS_WINFORMS #pragma warning disable IDE0034 // (Simplify 'default'.) Want to be explicit about overloads being ...
ObserveOnTest
csharp
dotnet__machinelearning
test/Microsoft.ML.IntegrationTests/Debugging.cs
{ "start": 8446, "end": 8879 }
internal class ____ { public readonly ConcurrentDictionary<string, int> Lines; public LogWatcher() { Lines = new ConcurrentDictionary<string, int>(); } public void ObserveEvent(object sender, LoggingEventArgs e) { ...
LogWatcher
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Devices.Midi/MidiNoteOnMessage.cs
{ "start": 255, "end": 1390 }
public partial class ____ : global::Windows.Devices.Midi.IMidiMessage { // Skipping already declared property RawData // Skipping already declared property Timestamp // Skipping already declared property Type // Skipping already declared property Channel // Skipping already declared property Note // Skippi...
MidiNoteOnMessage
csharp
CommunityToolkit__dotnet
tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn4120.UnitTests/Test_UsePartialPropertyForObservablePropertyCodeFixer.cs
{ "start": 27873, "end": 29659 }
partial class ____ : ObservableObject { [ObservableProperty] public partial int I { get; set; } public void M() { I = 42; I = 42; } public int N()...
C
csharp
abpframework__abp
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/Toolbars/ToolbarConfigurationContext.cs
{ "start": 345, "end": 1722 }
public class ____ : IToolbarConfigurationContext { public IServiceProvider ServiceProvider { get; } private readonly IAbpLazyServiceProvider _lazyServiceProvider; public IAuthorizationService AuthorizationService => _lazyServiceProvider.LazyGetRequiredService<IAuthorizationService>(); public IStringL...
ToolbarConfigurationContext
csharp
neuecc__MessagePack-CSharp
src/MessagePack/Formatters/PrimitiveFormatter.cs
{ "start": 19253, "end": 20133 }
public sealed class ____ : IMessagePackFormatter<UInt32?> { public static readonly NullableUInt32Formatter Instance = new NullableUInt32Formatter(); private NullableUInt32Formatter() { } public void Serialize(ref MessagePackWriter writer, UInt32? value, MessagePackSerialize...
NullableUInt32Formatter
csharp
dotnet__efcore
test/EFCore.InMemory.FunctionalTests/DatabaseErrorLogStateTest.cs
{ "start": 5950, "end": 6268 }
private class ____ : ILoggerFactory { public readonly TestLogger Logger = new(); public void AddProvider(ILoggerProvider provider) { } public ILogger CreateLogger(string name) => Logger; public void Dispose() { }
TestLoggerFactory
csharp
MonoGame__MonoGame
MonoGame.Framework/Audio/Xact/MiniFormatTag.cs
{ "start": 229, "end": 442 }
enum ____ { Pcm = 0x0, Xma = 0x1, Adpcm = 0x2, Wma = 0x3, // We allow XMA to be reused for a platform specific format. PlatformSpecific = Xma, } }
MiniFormatTag
csharp
dotnet__machinelearning
src/Microsoft.ML.AutoML/SweepableEstimator/Estimators/FastForest.cs
{ "start": 1174, "end": 1965 }
internal partial class ____ { public override IEstimator<ITransformer> BuildFromOption(MLContext context, FastForestOption param) { var option = new FastForestRegressionTrainer.Options() { NumberOfTrees = param.NumberOfTrees, NumberOfLeaves = p...
FastForestRegression
csharp
dotnet__aspnetcore
src/Framework/AspNetCoreAnalyzers/test/RouteHandlers/DisallowReturningActionResultsFromMapMethodsTest.cs
{ "start": 1239, "end": 2449 }
class ____ : IResult { public Task ExecuteAsync(HttpContext context) => Task.CompletedTask; } "; // Act var diagnostics = await Runner.GetDiagnosticsAsync(source); // Assert Assert.Empty(diagnostics); } [Fact] public async Task MinimalAction_ReturningIResultConditionall...
CustomResult