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
neuecc__MessagePack-CSharp
src/MessagePack.Annotations/Attributes.cs
{ "start": 3771, "end": 5231 }
public class ____ : Attribute { /// <summary> /// Gets the distinguishing value that identifies a particular subtype. /// </summary> public int Key { get; } /// <summary> /// Gets the derived or implementing type. /// </summary> public Type SubType { ...
UnionAttribute
csharp
dotnet__efcore
src/EFCore.Relational/Migrations/Operations/AddForeignKeyOperation.cs
{ "start": 528, "end": 3360 }
public class ____ : MigrationOperation, ITableMigrationOperation { /// <summary> /// The name of the foreign key constraint. /// </summary> public virtual string Name { get; set; } = null!; /// <summary> /// The schema that contains the table, or <see langword="null" /> if the default s...
AddForeignKeyOperation
csharp
CommunityToolkit__WindowsCommunityToolkit
Microsoft.Toolkit.Uwp.UI.Controls.Media/InfiniteCanvas/JsonConverters/SerializableStroke.cs
{ "start": 405, "end": 638 }
internal class ____ { [JsonIgnore] public List<InkPoint> FinalPointList { get; set; } [JsonIgnore] public InkDrawingAttributes DrawingAttributesIgnored { get; set; } // This
SerializableStroke
csharp
dotnetcore__WTM
src/WalkingTec.Mvvm.Core/Support/ChartData.cs
{ "start": 105, "end": 417 }
public class ____ { //一级分类 public string Category { get; set; } public double Value { get; set; } //散点图 x值 public double ValueX { get; set; } //二级分类 不同数据集 public string Series { get; set; } public double Addition { get; set; } } }
ChartData
csharp
cake-build__cake
src/Cake.Common.Tests/Fixtures/Tools/Chocolatey/Features/ChocolateyEnableFeatureFixture.cs
{ "start": 320, "end": 640 }
internal sealed class ____ : ChocolateyFeatureTogglerFixture { protected override void RunTool() { var tool = new ChocolateyFeatureToggler(FileSystem, Environment, ProcessRunner, Tools, Resolver); tool.EnableFeature(Name, Settings); } } }
ChocolateyEnableFeatureFixture
csharp
AutoFixture__AutoFixture
Src/AutoFixtureUnitTest/DictionaryFillerTest.cs
{ "start": 264, "end": 5187 }
public class ____ { [Fact] public void AddManyToNullSpecimenThrows() { // Arrange var dummyContext = new DelegatingSpecimenContext(); // Act & assert Assert.Throws<ArgumentNullException>(() => ...
Obsoleted
csharp
dotnet__extensions
src/Libraries/Microsoft.Extensions.Diagnostics.ResourceMonitoring/Windows/Network/MIB_TCP6TABLE.cs
{ "start": 415, "end": 516 }
internal struct ____ { internal uint NumberOfEntries; internal MIB_TCP6ROW Table; }
MIB_TCP6TABLE
csharp
AvaloniaUI__Avalonia
src/Windows/Avalonia.Win32/Input/Imm32CaretManager.cs
{ "start": 107, "end": 754 }
internal struct ____ { private bool _isCaretCreated; public void TryCreate(IntPtr hwnd) { if (!_isCaretCreated) { _isCaretCreated = CreateCaret(hwnd, IntPtr.Zero, 2, 2); } } public void TryMove(int x, int y)...
Imm32CaretManager
csharp
dotnet__efcore
src/EFCore/Query/LiftableConstantProcessor.cs
{ "start": 14618, "end": 21458 }
private sealed record ____(ExpressionStatus Status, ParameterExpression? Parameter = null, string? PreferredName = null); private readonly Dictionary<Expression, ExpressionInfo> _indexedExpressions = new(ExpressionEqualityComparer.Instance); private LiftedConstant _currentLiftedConstant = null!; ...
ExpressionInfo
csharp
dotnet__aspire
src/Aspire.Hosting/ApplicationModel/ConnectionStringAvailableEvent.cs
{ "start": 531, "end": 880 }
public class ____(IResource resource, IServiceProvider services) : IDistributedApplicationResourceEvent { /// <inheritdoc /> public IResource Resource => resource; /// <summary> /// The <see cref="IServiceProvider"/> for the app host. /// </summary> public IServiceProvider Services => services;...
ConnectionStringAvailableEvent
csharp
dotnet__machinelearning
src/Microsoft.Data.Analysis/PrimitiveDataFrameColumn.BinaryOperationAPIs.ExplodedColumns.cs
{ "start": 834518, "end": 834854 }
public partial class ____ { public new UInt32DataFrameColumn LeftShift(int value, bool inPlace = false) { var result = (PrimitiveDataFrameColumn<uint>)base.LeftShift(value, inPlace); return new UInt32DataFrameColumn(result.Name, result.ColumnContainer); } }
UInt32DataFrameColumn
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/Saga/InitiateSaga_Specs.cs
{ "start": 5132, "end": 5996 }
public class ____ : InMemoryTestFixture { [Test] public async Task An_exception_should_be_thrown() { var message = new InitiateSimpleSaga(_sagaId); await BusSendEndpoint.Send(message); try { await BusSendEndpoint.Send...
When_an_existing_saga_receives_an_initiating_message
csharp
duplicati__duplicati
Duplicati/Library/Main/Enums.cs
{ "start": 3514, "end": 4122 }
public enum ____ { /// <summary> /// The actual type of the entry could not be determined /// </summary> Unknown, /// <summary> /// The entry is a plain file /// </summary> File, /// <summary> /// The entry is a folder /// </sum...
FilelistEntryType
csharp
MahApps__MahApps.Metro
src/MahApps.Metro.Samples/MahApps.Metro.Demo/HamburgerMenuRipple/PrivateView.xaml.cs
{ "start": 345, "end": 494 }
public partial class ____ : UserControl { public PrivateView() { this.InitializeComponent(); } } }
PrivateView
csharp
dotnet__maui
src/Graphics/src/Graphics/IPdfPage.cs
{ "start": 203, "end": 1417 }
public interface ____ : IDrawable, IDisposable { /// <summary> /// Gets the width of the PDF page. /// </summary> float Width { get; } /// <summary> /// Gets the height of the PDF page. /// </summary> float Height { get; } /// <summary> /// Gets the page number within the PDF document. /// </su...
IPdfPage
csharp
dotnet__aspire
tests/Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests/AspireSqlServerEFCoreSqlClientExtensionsTests.cs
{ "start": 585, "end": 15511 }
public class ____ { private const string ConnectionString = "Data Source=fake;Initial Catalog=master;Encrypt=True"; [Fact] public void ReadsFromConnectionStringsCorrectly() { var builder = Host.CreateEmptyApplicationBuilder(null); builder.Configuration.AddInMemoryCollection([ ...
AspireSqlServerEFCoreSqlClientExtensionsTests
csharp
dotnet__efcore
src/EFCore/ChangeTracking/Internal/IIdentityMap`.cs
{ "start": 654, "end": 1243 }
public interface ____<in TKey> : IIdentityMap { /// <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 release. You should ...
IIdentityMap
csharp
JamesNK__Newtonsoft.Json
Src/Newtonsoft.Json.Tests/TestFixtureBase.cs
{ "start": 1955, "end": 2920 }
public class ____ { public static IEnumerable<ConstructorInfo> GetConstructors(Type type) { #if !(DNXCORE50) return type.GetConstructors(); #else return type.GetTypeInfo().DeclaredConstructors; #endif } public static PropertyInfo GetProperty(Type type, string...
TestReflectionUtils
csharp
FastEndpoints__FastEndpoints
Benchmark/FastEndpointsBench/CodeGenEndpoint.cs
{ "start": 262, "end": 504 }
public class ____ { public int Id { get; set; } public string? FirstName { get; set; } public string? LastName { get; set; } public int Age { get; set; } public IEnumerable<string>? PhoneNumbers { get; set; } }
CodeGenRequest
csharp
ServiceStack__ServiceStack
ServiceStack/src/ServiceStack.NetFramework/MiniProfiler/Helpers/StackTraceSnippet.cs
{ "start": 269, "end": 1866 }
public class ____ { private const string AspNetEntryPointMethodName = "System.Web.HttpApplication.IExecutionStep.Execute"; /// <summary> /// Gets the current formatted and filted stack trace. /// </summary> /// <returns>Space separated list of methods</returns> public static string Get() { var frames...
StackTraceSnippet
csharp
moq__moq4
src/Moq.Tests/CallbackDelegateValidationFixture.cs
{ "start": 3093, "end": 3178 }
public interface ____ { void Action(int x); } }
IFoo
csharp
abpframework__abp
modules/docs/src/Volo.Docs.Admin.Application.Contracts/Volo/Docs/Admin/DocsAdminPermissions.cs
{ "start": 164, "end": 553 }
public static class ____ { public const string Default = GroupName + ".Projects"; public const string Delete = Default + ".Delete"; public const string Update = Default + ".Update"; public const string Create = Default + ".Create"; public const string ...
Projects
csharp
NLog__NLog
src/NLog/Config/DefaultParameterAttribute.cs
{ "start": 1907, "end": 2181 }
public sealed class ____ : Attribute { /// <summary> /// Initializes a new instance of the <see cref="DefaultParameterAttribute" /> class. /// </summary> public DefaultParameterAttribute() { } } }
DefaultParameterAttribute
csharp
dotnet__machinelearning
src/Microsoft.ML.Data/DataView/CacheDataView.cs
{ "start": 44756, "end": 47526 }
private sealed class ____<TWaiter> : IIndex where TWaiter : struct, IWaiter { // -1 means not started, -2 means finished, non-negative is the index into _perm. private int _curr; private int _currMax; private readonly int[] _perm; private ...
BlockRandomIndex
csharp
Testably__Testably.Abstractions
Tests/Testably.Abstractions.Tests/FileSystem/Path/GetDirectoryNameTests.cs
{ "start": 74, "end": 6127 }
public partial class ____ { [Theory] [InlineData((string?)null)] #if !NETFRAMEWORK [InlineData("")] #endif public async Task GetDirectoryName_NullOrEmpty_ShouldReturnNull(string? path) { string? result = FileSystem.Path.GetDirectoryName(path); await That(result).IsNull(); } #if NETFRAMEWORK [Theory] [Inli...
GetDirectoryNameTests
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL.Tests/Subscription/ObservableExtensionsTests.cs
{ "start": 138, "end": 10043 }
public class ____ { private SampleObservable<string> Source { get; } = new(); private SampleObserver Observer { get; } = new(); [Fact] public async Task DataInOrder() { var observable = Source .SelectCatchAsync( async (data, token) => { ...
ObservableExtensionsTests
csharp
dotnet__aspnetcore
src/Features/JsonPatch.SystemTextJson/src/Internal/ListAdapter.cs
{ "start": 9350, "end": 9595 }
struct ____ { public PositionInfo(PositionType type, int index) { Type = type; Index = index; } public PositionType Type { get; } public int Index { get; } }
PositionInfo
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Security.Credentials/PasswordCredential.cs
{ "start": 263, "end": 2255 }
public partial class ____ { // Skipping already declared property UserName // Skipping already declared property Resource // Skipping already declared property Password #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ [global::Uno.NotImplemented("__ANDROID...
PasswordCredential
csharp
dotnet__BenchmarkDotNet
src/BenchmarkDotNet/Toolchains/Mono/MonoAotToolchain.cs
{ "start": 339, "end": 2690 }
public class ____ : Toolchain { public static readonly IToolchain Instance = new MonoAotToolchain(); [PublicAPI] public MonoAotToolchain() : base("MonoAot", new Generator(), new MonoAotBuilder(), new Executor()) { } public override IEnumerable<ValidationError> Valid...
MonoAotToolchain
csharp
nunit__nunit
src/NUnitFramework/testdata/DerivedClassWithTestsInBaseClass.cs
{ "start": 932, "end": 1056 }
public abstract class ____ { [Test] public abstract void VirtualTestInBaseClass(); } }
AbstractBaseClass
csharp
EventStore__EventStore
src/KurrentDB.Core.Tests/ClientAPI/read_allevents_backward_with_linkto_deleted_event.cs
{ "start": 1186, "end": 1907 }
public class ____<TLogFormat, TStreamId> : SpecificationWithLinkToToDeletedEvents<TLogFormat, TStreamId> { private StreamEventsSlice _read; protected override async Task When() { _read = await _conn.ReadStreamEventsBackwardAsync(LinkedStreamName, 0, 1, true, null); } [Test] public void one_event_is_read() { ...
read_allevents_backward_with_linkto_deleted_event
csharp
JamesNK__Newtonsoft.Json
Src/Newtonsoft.Json.Tests/TestObjects/Product.cs
{ "start": 1217, "end": 1851 }
public class ____ { public string Name; public DateTime ExpiryDate = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Utc); public decimal Price; public string[] Sizes; public override bool Equals(object obj) { if (obj is Product) { ...
Product
csharp
files-community__Files
src/Files.App/Actions/Display/GroupAction.cs
{ "start": 479, "end": 818 }
partial class ____ : GroupByAction { protected override GroupOption GroupOption => GroupOption.Name; public override string Label => Strings.Name.GetLocalizedResource(); public override string Description => Strings.GroupByNameDescription.GetLocalizedResource(); } [GeneratedRichCommand] internal ...
GroupByNameAction
csharp
dotnet__machinelearning
test/Microsoft.ML.Core.Tests/UnitTests/TestVBuffer.cs
{ "start": 45141, "end": 46153 }
private enum ____ : byte { BothDense, ASparseBDense, ADenseBSparse, BothSparseASameB, BothSparseASubsetB, BothSparseBSubsetA, BothSparseAUnrelatedB, BothSparseADisjointB, } /// <summary> /// ...
GenLogic
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL.Tests/Bugs/BubbleUpTheNullToNextNullable.cs
{ "start": 12602, "end": 12856 }
public class ____ { public string? Nullable { get; set; } public Data? NullableNest { get; set; } public string? NonNullable { get; set; } public Data? NonNullableNest { get; set; } public List<string?>? ListOfStrings { get; set; } }
Data
csharp
DuendeSoftware__IdentityServer
identity-server/clients/src/APIs/MtlsApi/ConfirmationValidationMiddleware.cs
{ "start": 913, "end": 2491 }
public class ____( RequestDelegate next, ILogger<ConfirmationValidationMiddlewareOptions> logger, ConfirmationValidationMiddlewareOptions? options = null) { private readonly ILogger _logger = logger; private readonly ConfirmationValidationMiddlewareOptions _options = options ?? new ConfirmationValid...
ConfirmationValidationMiddleware
csharp
ardalis__SmartEnum
src/SmartEnum/Exceptions/SmartEnumNotFoundException.cs
{ "start": 1118, "end": 1838 }
class ____ a specified error message and /// a reference to the inner exception that is the cause of this exception. /// </summary> /// <param name="message">The error message that explains the reason for the exception.</param> /// <param name="innerException"> /// The exception ...
with
csharp
protobuf-net__protobuf-net
src/protobuf-net/Meta/RuntimeTypeModel.cs
{ "start": 1014, "end": 18015 }
private enum ____ { None = 0, InternStrings = TypeModelOptions.InternStrings, IncludeDateTimeKind = TypeModelOptions.IncludeDateTimeKind, SkipZeroLengthPackedArrays = TypeModelOptions.SkipZeroLengthPackedArrays, AllowPackedEncodingAtRoot = TypeModelOpt...
RuntimeTypeModelOptions
csharp
dotnet__efcore
benchmark/EFCore.Benchmarks/Models/AdventureWorks/Person.cs
{ "start": 262, "end": 1795 }
public class ____ { public Person() { BusinessEntityContact = new HashSet<BusinessEntityContact>(); Customer = new HashSet<Customer>(); EmailAddress = new HashSet<EmailAddress>(); PersonCreditCard = new HashSet<PersonCreditCard>(); PersonPhone = new HashSet<PersonPhone>()...
Person
csharp
dotnet__BenchmarkDotNet
src/BenchmarkDotNet/Helpers/CodeAnnotations.cs
{ "start": 65646, "end": 65885 }
internal sealed class ____ : Attribute { } /// <summary> /// Indicates that the marked parameter contains an ASP.NET Minimal API endpoint handler. /// </summary> [AttributeUsage(AttributeTargets.Parameter)]
AspMinimalApiGroupAttribute
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 1836415, "end": 1836770 }
public partial interface ____ : IOnSchemaVersionPublishUpdated_OnSchemaVersionPublishingUpdate_Errors_Changes_Changes_Changes_3, IDeprecatedChange { } [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "15.1.8.0")]
IOnSchemaVersionPublishUpdated_OnSchemaVersionPublishingUpdate_Errors_Changes_Changes_Changes_DeprecatedChange_3
csharp
ShareX__ShareX
ShareX.MediaLib/Forms/VideoThumbnailerForm.cs
{ "start": 1233, "end": 3633 }
public partial class ____ : Form { public event Action<List<VideoThumbnailInfo>> ThumbnailsTaken; public string FFmpegPath { get; set; } public VideoThumbnailOptions Options { get; set; } public VideoThumbnailerForm(string ffmpegPath, VideoThumbnailOptions options) { ...
VideoThumbnailerForm
csharp
unoplatform__uno
src/Uno.UWP/System/MemoryManager.Android.cs
{ "start": 113, "end": 1402 }
public partial class ____ { private static ulong _appMemoryUsage; private static ulong _appMemoryUsageLimit; private static Debug.MemoryInfo? _mi; private static ActivityManager.MemoryInfo? _memoryInfo; private static global::System.Diagnostics.Stopwatch _updateWatch = global::System.Diagnostics.Stopwatch.S...
MemoryManager
csharp
nuke-build__nuke
source/Nuke.Common/Tools/Kubernetes/Kubernetes.Generated.cs
{ "start": 244578, "end": 244962 }
public partial class ____ : KubernetesOptionsBase { } #endregion #region KubernetesPatchSettings /// <inheritdoc cref="KubernetesTasks.KubernetesPatch(Nuke.Common.Tools.Kubernetes.KubernetesPatchSettings)"/> [PublicAPI] [ExcludeFromCodeCoverage] [Command(Type = typeof(KubernetesTasks), Command = nameof(KubernetesTasks....
KubernetesCompletionSettings
csharp
EventStore__EventStore
src/KurrentDB.Core.Tests/Services/ElectionsService/Randomized/elections_service_3_nodes_full_gossip_some_http_loss_some_dup.cs
{ "start": 323, "end": 1136 }
public class ____ { private RandomizedElectionsTestCase _randomCase; [SetUp] public void SetUp() { _randomCase = new RandomizedElectionsTestCase(ElectionParams.MaxIterationCount, instancesCnt: 3, httpLossProbability: 0.3, httpDupProbability: 0.3, httpMaxDelay: 20, timerMinDelay: 100, timerMaxDel...
elections_service_3_nodes_full_gossip_some_http_loss_some_dup
csharp
icsharpcode__ILSpy
ICSharpCode.Decompiler.Tests/TestCases/Pretty/QualifierTests.cs
{ "start": 2323, "end": 2389 }
private class ____ { public static void Test() { } }
i
csharp
PrismLibrary__Prism
tests/Avalonia/Prism.Avalonia.Tests/Mocks/MockSortableViews.cs
{ "start": 101, "end": 176 }
internal class ____ { } [ViewSortHint("02")]
MockSortableView1
csharp
jellyfin__jellyfin
MediaBrowser.Model/Plugins/PluginPageInfo.cs
{ "start": 131, "end": 1102 }
public class ____ { /// <summary> /// Gets or sets the name of the plugin. /// </summary> public string Name { get; set; } = string.Empty; /// <summary> /// Gets or sets the display name of the plugin. /// </summary> public string? DisplayName { get; ...
PluginPageInfo
csharp
AvaloniaUI__Avalonia
tests/Avalonia.RenderTests/Media/VisualBrushTests.cs
{ "start": 218, "end": 25347 }
public class ____ : TestBase { public VisualBrushTests() : base(@"Media\VisualBrush") { } private string BitmapPath { get { return System.IO.Path.Combine(OutputPath, "github_icon.png"); } } priv...
VisualBrushTests
csharp
AutoMapper__AutoMapper
src/UnitTests/AttributeBasedMaps.cs
{ "start": 25249, "end": 26940 }
public class ____ : ITypeConverter<int, List<ChildDto>> { private readonly IList<Child> _childModels; public ParentIdToChildDtoListConverter(IList<Child> childModels) { _childModels = childModels; } public ...
ParentIdToChildDtoListConverter
csharp
neuecc__MessagePack-CSharp
sandbox/Sandbox/Program.cs
{ "start": 421, "end": 616 }
public class ____ //{ // [Key(0)] // public Foo<int> MemberUserGeneric { get; set; } // [Key(1)] // public System.Collections.Generic.List<int> MemberKnownGeneric { get; set; } //}
Bar
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/Issue5461.cs
{ "start": 203, "end": 625 }
public class ____ : TestContentPage { const string Success = "If you can see this, the test has passed"; protected override void Init() { ScrollView scrollView = new ScrollbarFadingEnabledFalseScrollView() { Content = new StackLayout() { Children = { new Label() { Text ...
Issue5461
csharp
dotnet__orleans
test/Orleans.Journaling.Tests/StateMachineTestBase.cs
{ "start": 425, "end": 2273 }
public abstract class ____ { protected readonly ServiceProvider ServiceProvider; protected readonly SerializerSessionPool SessionPool; protected readonly ICodecProvider CodecProvider; protected readonly ILoggerFactory LoggerFactory; protected readonly StateMachineManagerOptions ManagerOptions = new(...
StateMachineTestBase
csharp
dotnet__extensions
test/Generators/Microsoft.Gen.Metrics/Unit/ParserTests.cs
{ "start": 4674, "end": 4976 }
partial class ____ { [Counter<int>(""d1"")] static partial TestCounter CreateTestCounter(Meter meter); }"); Assert.Empty(d); } [Fact] public async Task NotPartialMethod() { var d = await RunGenerator(@"
C
csharp
louthy__language-ext
LanguageExt.Tests/ErrorTests.cs
{ "start": 2230, "end": 4044 }
public record ____([property: DataMember] bool MyData) : Expected("Expected something bespoke", 100, None); [Fact] public void BespokeExpectedSerialisationTest() { var settings = new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.Objects }; ...
BespokeError
csharp
ardalis__CleanArchitecture
sample/tests/NimblePros.SampleToDo.UnitTests/Core/Specifications/IncompleteItemSpecificationsConstructor.cs
{ "start": 183, "end": 729 }
public class ____ { [Fact] public void FilterCollectionToOnlyReturnItemsWithIsDoneFalse() { var item1 = new ToDoItem(); var item2 = new ToDoItem(); var item3 = new ToDoItem(); item3.MarkComplete(); var items = new List<ToDoItem>() { item1, item2, item3 }; var spec = new IncompleteItemsSp...
IncompleteItemsSpecificationConstructor
csharp
ServiceStack__ServiceStack.OrmLite
tests/ServiceStack.OrmLite.Tests/Expression/RestrictionTests.cs
{ "start": 249, "end": 2389 }
public class ____ { public Person() {} public Person(int id, string firstName, string lastName, int age) { Id = id; FirstName = firstName; LastName = lastName; Age = age; } public int Id...
Person
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.TestHelpers/XunitExtensions/CategoryAttribute.cs
{ "start": 928, "end": 1168 }
public class ____ : Attribute, ITraitAttribute { public CategoryAttribute(params string[] categories) { Categories = categories; } public string[] Categories { get; } }
CategoryAttribute
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Reactive/AnonymousObserver.cs
{ "start": 364, "end": 1805 }
public class ____<T> : IObserver<T> { private readonly Action<T> _onNext; private readonly Action<Exception> _onError; private readonly Action _onCompleted; public AnonymousObserver(TaskCompletionSource<T> tcs) { if (tcs is null) { throw new ArgumentNullException(nameof(...
AnonymousObserver
csharp
dotnet__aspire
tests/Aspire.Hosting.Tests/HealthCheckTests.cs
{ "start": 445, "end": 5862 }
public class ____(ITestOutputHelper testOutputHelper) { [Fact] [RequiresDocker] public void WithHttpHealthCheckThrowsIfReferencingEndpointByNameThatIsNotHttpScheme() { using var builder = TestDistributedApplicationBuilder.Create(); var container = builder.AddContainer("resource", "dummy...
HealthCheckTests
csharp
LibreHardwareMonitor__LibreHardwareMonitor
LibreHardwareMonitorLib/Interop/AtiAdlxx.cs
{ "start": 19232, "end": 19642 }
internal enum ____ { // This typed is named like this in the documentation but for some reason AMD failed to include it... // Yet it seems these correspond with ADL_PMLOG_TEMPERATURE_xxx. EDGE = 1, MEM = 2, VRVDDC = 3, VRMVDD = 4, LIQUID = 5, PLX = 6, ...
ADLODNTemperatureType
csharp
grpc__grpc-dotnet
test/FunctionalTests/Web/Client/ServerStreamingMethodTests.cs
{ "start": 1586, "end": 9029 }
public class ____ : GrpcWebFunctionalTestBase { public ServerStreamingMethodTests(GrpcTestMode grpcTestMode, TestServerEndpointName endpointName) : base(grpcTestMode, endpointName) { } [Test] public async Task SendValidRequest_StreamedContentReturned() { // Arrage var httpC...
ServerStreamingMethodTests
csharp
dotnet__aspnetcore
src/Framework/AspNetCoreAnalyzers/src/Analyzers/RouteHandlers/DisallowReturningActionResultFromMapMethods.cs
{ "start": 441, "end": 3825 }
public partial class ____ : DiagnosticAnalyzer { private static void DisallowReturningActionResultFromMapMethods( in OperationAnalysisContext context, WellKnownTypes wellKnownTypes, IInvocationOperation invocationOperation, IAnonymousFunctionOperation anonymousFunction, Synta...
RouteHandlerAnalyzer
csharp
ChilliCream__graphql-platform
src/HotChocolate/Spatial/test/Types.Tests/TransformationIntegrationTests.cs
{ "start": 19496, "end": 19747 }
public class ____ { public LineString Test(LineString arg) => arg; } /// <summary> /// The transformation are different from system to system. We need to round the result /// to make it consistent! /// </summary>
Query
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver.Encryption/PinnedBinary.cs
{ "start": 817, "end": 1636 }
internal class ____ : Binary { #region static internal static void RunAsPinnedBinary<THandle>(THandle handle, byte[] bytes, Status status, Func<THandle, BinarySafeHandle, bool> handleFunc) where THandle : CheckableSafeHandle { unsafe { fixed (byte* map...
PinnedBinary
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Abstractions/src/Authorization/IAllowAnonymousFilter.cs
{ "start": 356, "end": 417 }
public interface ____ : IFilterMetadata { }
IAllowAnonymousFilter
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/SagaStateMachineTests/Dynamic Modify/State_Specs.cs
{ "start": 3220, "end": 4574 }
public class ____ { [Test] public void It_should_get_the_name_right() { Assert.That(_machine.GetState(_instance).Result, Is.EqualTo(Running)); } State Running; Event Started; StateMachine<Instance> _machine; Instance _instance; [O...
When_storing_state_as_an_int
csharp
dotnet__efcore
test/EFCore.InMemory.FunctionalTests/Scaffolding/CompiledModelInMemoryTest.cs
{ "start": 9795, "end": 9978 }
public class ____ { public int Id { get; set; } public virtual LazyProxiesEntity2? ReferenceNavigation { get; set; } }
LazyProxiesEntity1
csharp
grandnode__grandnode2
src/Web/Grand.Web.Common/Startup/ForwardedHeadersStartup.cs
{ "start": 328, "end": 1801 }
public class ____ : IStartupApplication { /// <summary> /// Add and configure any of the middleware /// </summary> /// <param name="services">Collection of service descriptors</param> /// <param name="configuration">Configuration root of the application</param> public void ConfigureServices(...
ForwardedHeadersStartup
csharp
dotnet__efcore
src/ef/Commands/DbContextInfoCommand.cs
{ "start": 323, "end": 1809 }
internal partial class ____ { protected override int Execute(string[] args) { using var executor = CreateExecutor(args); var result = executor.GetContextInfo(Context!.Value()); if (_json!.HasValue()) { ReportJsonResult(result); } else { ...
DbContextInfoCommand
csharp
grandnode__grandnode2
src/Web/Grand.Web/Models/Catalog/CategoryNavigationModel.cs
{ "start": 74, "end": 251 }
public class ____ : BaseModel { public string CurrentCategoryId { get; set; } public List<CategorySimpleModel> Categories { get; set; } = new();
CategoryNavigationModel
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Input/DragDrop.cs
{ "start": 138, "end": 7006 }
public static class ____ { /// <summary> /// Event which is raised, when a drag-and-drop operation enters the element. /// </summary> public static readonly RoutedEvent<DragEventArgs> DragEnterEvent = RoutedEvent.Register<DragEventArgs>("DragEnter", RoutingStrategies.Bubble, typeof(D...
DragDrop
csharp
dotnet__aspnetcore
src/Middleware/HeaderPropagation/src/DependencyInjection/HeaderPropagationServiceCollectionExtensions.cs
{ "start": 531, "end": 2005 }
public static class ____ { /// <summary> /// Adds services required for propagating headers to a <see cref="HttpClient"/>. /// </summary> /// <param name="services">The <see cref="IServiceCollection"/> to add the services to.</param> /// <returns>The <see cref="IServiceCollection"/> so that addition...
HeaderPropagationServiceCollectionExtensions
csharp
dotnet__aspnetcore
src/Framework/AspNetCoreAnalyzers/test/RouteEmbeddedLanguage/RoutePatternAnalyzerTests.cs
{ "start": 2781, "end": 3578 }
class ____ : Attribute { public HttpGet([StringSyntax(""Route"")] string pattern) { } } "); // Act var diagnostics = await Runner.GetDiagnosticsAsync(source.Source); // Assert var diagnostic = Assert.Single(diagnostics); Assert.Same(DiagnosticDescriptors.RoutePattern...
HttpGet
csharp
dotnet__aspnetcore
src/Http/Http.Extensions/test/RequestDelegateGenerator/RequestDelegateCreationTestBase.cs
{ "start": 18777, "end": 19516 }
private class ____ : IServiceScope, IServiceProvider, IServiceScopeFactory, IServiceProviderIsService { public IServiceProvider ServiceProvider => this; public IServiceScope CreateScope() { return this; } public void Dispose() { } public object GetServi...
EmptyServiceProvider
csharp
MassTransit__MassTransit
src/MassTransit/SqlTransport/SqlTransport/HostInfoCache.cs
{ "start": 106, "end": 404 }
public static class ____ { static readonly Lazy<string> _hostInfoJson = new Lazy<string>(() => SystemTextJsonMessageSerializer.Instance.SerializeObject(HostMetadataCache.Host).GetString()); public static string HostInfoJson => _hostInfoJson.Value; } }
HostInfoCache
csharp
protobuf-net__protobuf-net
src/NativeGoogleTests/Timeofday.cs
{ "start": 2119, "end": 10889 }
partial class ____ : pb::IMessage<TimeOfDay> #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser<TimeOfDay> _parser = new pb::MessageParser<TimeOfDay>(() => new TimeOfDay()); private pb::UnknownFieldSet _unknownFields; [globa...
TimeOfDay
csharp
OrchardCMS__OrchardCore
src/OrchardCore/OrchardCore.DisplayManagement/IShape.cs
{ "start": 431, "end": 804 }
public interface ____ { ShapeMetadata Metadata { get; } string Id { get; set; } string TagName { get; set; } IList<string> Classes { get; } IDictionary<string, string> Attributes { get; } IDictionary<string, object> Properties { get; } IReadOnlyList<IPositioned> Items { get; } ValueTask<...
IShape
csharp
unoplatform__uno
src/Uno.Foundation/Uno.Core.Extensions/Uno.Core.Extensions.Disposables/Disposables/DisposableExtensions.cs
{ "start": 881, "end": 2613 }
internal static class ____ { /// <summary> /// Register an object who implements IDisposable to be disposed by a CompositeDisposable. /// </summary> /// <remarks> /// The parameter could be anything who implements ICollection&lt;IDisposable&gt;. /// This extension is designed for usage in a fluent declarat...
DisposableExtensions
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 180478, "end": 180695 }
public class ____ { public int Id { get; set; } public RelatedEntity832 ParentEntity { get; set; } public IEnumerable<RelatedEntity834> ChildEntities { get; set; } }
RelatedEntity833
csharp
dotnet__orleans
src/Orleans.Core/Utils/AsyncEnumerable.cs
{ "start": 208, "end": 388 }
internal static class ____ { internal static readonly object InitialValue = new(); internal static readonly object DisposedValue = new(); }
AsyncEnumerable
csharp
JoshClose__CsvHelper
tests/CsvHelper.Tests/Mappings/ConstructorParameter/FormatAttributeTests.cs
{ "start": 2820, "end": 3044 }
private class ____ { public int Id { get; private set; } public DateTimeOffset Date { get; private set; } public Foo(int id, [Format(FORMAT)] DateTimeOffset date) { Id = id; Date = date; } } } }
Foo
csharp
cake-build__cake
src/Cake.Common.Tests/Unit/Build/WoodpeckerCI/Data/WoodpeckerCIRepositoryInfoTests.cs
{ "start": 807, "end": 1229 }
public sealed class ____ { [Fact] public void Should_Return_Correct_Value() { // Given var info = new WoodpeckerCIInfoFixture().CreateRepositoryInfo(); // When var result = info.RepoOwner; // Th...
TheRepoOwnerProperty
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.Server.Tests/Messaging/MqServerIntroTests.cs
{ "start": 1600, "end": 1847 }
public class ____ : MqServerIntroTests { public override IMessageService CreateMqServer(int retryCount = 1) { return new BackgroundMqService { RetryCount = retryCount }; } }
BackgroundMqServerIntroTests
csharp
ServiceStack__ServiceStack
ServiceStack/tests/CheckWebCore/ContactServices.cs
{ "start": 11095, "end": 11729 }
public static class ____ { internal static readonly ServiceInterface.ContactServiceFilters Instance = new ServiceInterface.ContactServiceFilters(); public static Dictionary<string, string> ContactColors(this IHtmlHelper html) => Instance.contactColors(); public static List<KeyVa...
RazorHelpers
csharp
aspnetboilerplate__aspnetboilerplate
src/Abp.BlobStoring/BlobStoring/IBlobContainerConfigurationProvider.cs
{ "start": 33, "end": 458 }
public interface ____ { /// <summary> /// Gets a <see cref="BlobContainerConfiguration"/> for the given container <paramref name="name"/>. /// </summary> /// <param name="name">The name of the container</param> /// <returns>The configuration that should be used for the contai...
IBlobContainerConfigurationProvider
csharp
grpc__grpc-dotnet
test/Grpc.Net.ClientFactory.Tests/GrpcHttpClientBuilderExtensionsTests.cs
{ "start": 2309, "end": 29839 }
private class ____ { public TestService(int value) { Value = value; } public int Value { get; } } [Test] public async Task AddInterceptor_MultipleInstances_ExecutedInOrder() { // Arrange var list = new List<int>(); var testHttpMes...
TestService
csharp
rabbitmq__rabbitmq-dotnet-client
projects/RabbitMQ.Client/Exceptions/ProtocolException.cs
{ "start": 1721, "end": 2502 }
public abstract class ____ : RabbitMQClientException { protected ProtocolException(string message) : base(message) { } ///<summary>Retrieve the reply code to use in a ///connection/channel close method.</summary> public abstract ushort ReplyCode { get; } ///...
ProtocolException
csharp
microsoft__semantic-kernel
dotnet/src/VectorData/AzureAISearch/AzureAISearchModelBuilder.cs
{ "start": 288, "end": 3136 }
internal class ____() : CollectionJsonModelBuilder(s_modelBuildingOptions) { internal const string SupportedVectorTypes = "ReadOnlyMemory<float>, Embedding<float>, float[]"; internal static readonly CollectionModelBuildingOptions s_modelBuildingOptions = new() { RequiresAtLeastOneVector = false, ...
AzureAISearchModelBuilder
csharp
dotnet__aspire
tools/GenerateTestSummary/TrxReader.cs
{ "start": 246, "end": 4318 }
public class ____ { public static IList<TestResult> GetTestResultsFromTrx(string filepath, Func<string, string, bool>? testFilter = null) { XmlSerializer serializer = new(typeof(TestRun)); using FileStream fileStream = new(filepath, FileMode.Open); if (serializer.Deserialize(fileStream)...
TrxReader
csharp
dotnet__aspnetcore
src/Mvc/Mvc.ViewFeatures/test/ModelExplorerExtensionsTest.cs
{ "start": 234, "end": 1783 }
public class ____ { public static TheoryData<object, Type, string> SimpleDisplayTextData { get { return new TheoryData<object, Type, string> { { new ComplexClass() { Prop1 ...
ModelExplorerExtensionsTest
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL.SystemTextJson/GraphQLSerializer.cs
{ "start": 4831, "end": 6660 }
class ____ the specified settings. /// <br/><br/> /// Note that <see cref="JsonSerializerOptions"/> is designed in such a way to reuse created objects. /// This leads to a massive speedup in subsequent calls to the serializer. The downside is you can't /// change properties on the options object after y...
with
csharp
dotnetcore__CAP
samples/Sample.Dashboard.Auth/MyDashboardAuthenticationHandler.cs
{ "start": 577, "end": 2291 }
public class ____ : AuthenticationHandler<MyDashboardAuthenticationSchemeOptions> { public MyDashboardAuthenticationHandler(IOptionsMonitor<MyDashboardAuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder) : base(options, logger, encoder) { // options...
MyDashboardAuthenticationHandler
csharp
unoplatform__uno
src/Uno.UI/Generated/3.0.0.0/Microsoft.Web.WebView2.Core/CoreWebView2ProcessFailedReason.cs
{ "start": 265, "end": 1233 }
public enum ____ { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ Unexpected = 0, #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ Unresponsive = 1, #endif #if __ANDROID__ || __IOS__ || __TVOS__ |...
CoreWebView2ProcessFailedReason
csharp
unoplatform__uno
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml.Controls/PivotItem.cs
{ "start": 261, "end": 866 }
public partial class ____ : global::Microsoft.UI.Xaml.Controls.ContentControl { // Skipping already declared property Header // Skipping already declared property HeaderProperty // Skipping already declared method Microsoft.UI.Xaml.Controls.PivotItem.PivotItem() // Forced skipping of method Microsoft.UI.Xaml.C...
PivotItem
csharp
microsoft__garnet
libs/server/SortedSetAggregateType.cs
{ "start": 223, "end": 549 }
public enum ____ : byte { /// <summary> /// Sum the values. /// </summary> Sum, /// <summary> /// Use the minimum value. /// </summary> Min, /// <summary> /// Use the maximum value. /// </summary> Max } }
SortedSetAggregateType
csharp
nopSolutions__nopCommerce
src/Plugins/Nop.Plugin.Shipping.UPS/UPSSettings.cs
{ "start": 186, "end": 2242 }
public class ____ : ISettings { /// <summary> /// Gets or sets the account number /// </summary> public string AccountNumber { get; set; } /// <summary> /// Gets or sets the client ID /// </summary> public string ClientId { get; set; } /// <summary> /// Gets or sets the client ...
UPSSettings
csharp
bitwarden__server
src/Core/NotificationCenter/Commands/MarkNotificationDeletedCommand.cs
{ "start": 413, "end": 3265 }
public class ____ : IMarkNotificationDeletedCommand { private readonly ICurrentContext _currentContext; private readonly IAuthorizationService _authorizationService; private readonly INotificationRepository _notificationRepository; private readonly INotificationStatusRepository _notificationStatusReposi...
MarkNotificationDeletedCommand
csharp
xunit__xunit
src/xunit.v2.tests/Acceptance/Xunit2TheoryAcceptanceTests.cs
{ "start": 24938, "end": 25445 }
class ____ { [Theory] [InlineData("Foo")] public void TestViaIncompatibleData(int x) { } } [Fact] public void ImplicitlyConvertibleDataPasses() { var testMessages = Run<ITestResultMessage>(typeof(ClassWithImplicitlyConvertibleData)); var passed = Assert.Single(testMessages.Cast<ITestPassed>()...
ClassWithIncompatibleData
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.Driver.Tests/Jira/CSharp2480Tests.cs
{ "start": 665, "end": 1782 }
public class ____ { [Fact(Skip = "No need to run the test, we just need to be sure that the method calls are non-ambiguous")] public void Test() { var collection = new Mock<IMongoCollection<Person>>().Object; var replace = new Person { Name = "newName" }; ...
CSharp2480Tests