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
unoplatform__uno
src/Uno.UI/DirectUI/PropertyPathStepDescriptor.cs
{ "start": 1858, "end": 2273 }
internal class ____(DependencyProperty pDP) : PropertyPathStepDescriptor { private readonly DependencyProperty m_pDP = pDP; public override PropertyPathStep CreateStep(PropertyPathListener pListener, bool fListenToChanges) { PropertyAccessPathStep spStep; spStep = new PropertyAccessPathStep(); spStep.Initiali...
DependencyPropertyPathStepDescriptor
csharp
smartstore__Smartstore
src/Smartstore.Modules/Smartstore.Google.Auth/Components/GoogleAuthViewComponent.cs
{ "start": 117, "end": 1168 }
public class ____ : SmartViewComponent { private readonly GoogleOptions _googleOptions; public GoogleAuthViewComponent(IOptionsMonitor<GoogleOptions> googleOptions) { _googleOptions = googleOptions.CurrentValue; } public IViewComponentResult Invoke() { ...
GoogleAuthViewComponent
csharp
Tyrrrz__DiscordChatExporter
DiscordChatExporter.Core/Discord/Data/MessageKind.cs
{ "start": 137, "end": 392 }
public enum ____ { Default = 0, RecipientAdd = 1, RecipientRemove = 2, Call = 3, ChannelNameChange = 4, ChannelIconChange = 5, ChannelPinnedMessage = 6, GuildMemberJoin = 7, ThreadCreated = 18, Reply = 19, }
MessageKind
csharp
dotnet__efcore
src/EFCore/ChangeTracking/Internal/Snapshot.cs
{ "start": 22645, "end": 36818 }
public sealed class ____<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28> : ISnapshot { private static readonly Delegate[] ValueReaders = [ ( Snapshot<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T1...
Snapshot
csharp
dotnet__BenchmarkDotNet
tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/ParamsAllValuesAttributeAnalyzerTests.cs
{ "start": 6995, "end": 7810 }
public class ____ { [ParamsAllValues] public {{enumOrBoolType}}{{(isNullable ? "?" : "")}} {{fieldOrPropertyDeclaration}} } """; TestCode = testCode; ReferenceDummyEnum(); await RunAsync(); ...
BenchmarkClass
csharp
domaindrivendev__Swashbuckle.AspNetCore
test/Swashbuckle.AspNetCore.SwaggerGen.Test/Fixtures/FakeControllerWithXmlComments.cs
{ "start": 233, "end": 1389 }
public class ____ { /// <summary> /// Summary for ActionWithSummaryAndRemarksTags /// </summary> /// <remarks> /// Remarks for ActionWithSummaryAndRemarksTags /// </remarks> public void ActionWithSummaryAndRemarksTags() { } /// <param name="param1" example="Example for &quot;par...
FakeControllerWithXmlComments
csharp
bitwarden__server
src/Api/AdminConsole/Controllers/OrganizationDomainController.cs
{ "start": 548, "end": 6951 }
public class ____ : Controller { private readonly ICreateOrganizationDomainCommand _createOrganizationDomainCommand; private readonly IVerifyOrganizationDomainCommand _verifyOrganizationDomainCommand; private readonly IDeleteOrganizationDomainCommand _deleteOrganizationDomainCommand; private readonly IG...
OrganizationDomainController
csharp
unoplatform__uno
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Shapes/Shapes_Default_StrokeThickness.xaml.cs
{ "start": 642, "end": 1615 }
partial class ____ : UserControl { public double MyStrokeThickness { get; set; } = 0d; public Shapes_Default_StrokeThickness() { this.InitializeComponent(); StrokeThicknessButton.Click += StrokeThicknessButton_Click; } private void StrokeThicknessButton_Click(object sender, RoutedEventArgs e) { ...
Shapes_Default_StrokeThickness
csharp
SixLabors__ImageSharp
tests/ImageSharp.Tests/Processing/Processors/Transforms/SkewTests.cs
{ "start": 418, "end": 3301 }
public class ____ { private const PixelTypes CommonPixelTypes = PixelTypes.Bgra32 | PixelTypes.Rgb24; public static readonly string[] ResamplerNames = [ nameof(KnownResamplers.Bicubic), nameof(KnownResamplers.Box), ...
SkewTests
csharp
ChilliCream__graphql-platform
src/GreenDonut/test/GreenDonut.Tests/DataLoaderListBatchTests.cs
{ "start": 5979, "end": 6626 }
private sealed class ____( IBatchScheduler batchScheduler, DataLoaderOptions options) : BatchDataLoader<int, int[]>(batchScheduler, options) { protected override async Task<IReadOnlyDictionary<int, int[]>> LoadBatchAsync( IReadOnlyList<int> runNumbers, Cancell...
TestDataLoader
csharp
dotnet__orleans
test/Orleans.Serialization.UnitTests/BuiltInCodecTests.cs
{ "start": 104640, "end": 105397 }
public class ____(ITestOutputHelper output) : CopierTester<Collection<int>, CollectionCopier<int>>(output) { protected override Collection<int> CreateValue() { var result = new Collection<int>(); var len = Random.Next(17); for (var i = 0; i < len + 5; i++) ...
CollectionCopierTests
csharp
dotnet__reactive
Ix.NET/Source/System.Linq.Async.Tests/System/Linq/Operators/Last.cs
{ "start": 329, "end": 13795 }
public class ____ : AsyncEnumerableTests { [Fact] public async Task LastAsync_Null() { await Assert.ThrowsAsync<ArgumentNullException>(() => AsyncEnumerable.LastAsync<int>(default).AsTask()); await Assert.ThrowsAsync<ArgumentNullException>(() => AsyncEnumerable.LastAs...
Last
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/ScriptTests/SharpPagesIntegrationTests.cs
{ "start": 448, "end": 600 }
public class ____ : IReturn<Rockstar> { public int Id { get; set; } public string FirstName { get; set; } }
GetRockstarTemplate
csharp
nopSolutions__nopCommerce
src/Plugins/Nop.Plugin.Shipping.UPS/API/Rates/RateClient.cs
{ "start": 205954, "end": 207613 }
public partial class ____ { /// <summary> /// The presence of the tag LiftGatePickupRequiredIndicator indicates that the shipment requires a lift gate for pickup. /// </summary> [Newtonsoft.Json.JsonProperty("LiftGateAtPickupIndicator", Required = Newtonsoft.Json.Required.DisallowNul...
ShipmentServiceOptions_PickupOptions
csharp
JoshClose__CsvHelper
tests/CsvHelper.Tests/ObjectCreatorTests.cs
{ "start": 4861, "end": 6803 }
public class ____ { [Fact] public void FirstSignature_CreatesInstance() { var creator = new ObjectCreator(); var bar = new Bar(); var foo = creator.CreateInstance<Foo>("one", bar); Assert.IsType<Foo>(foo); Assert.Equal("one", foo.Name); Assert.Equal(bar, foo.Bar); } [Fact] public void S...
CreateInstance_TwoReferenceTypeParameters
csharp
restsharp__RestSharp
test/RestSharp.Tests.Serializers.Xml/SampleClasses/twitter.cs
{ "start": 941, "end": 2267 }
public class ____ { public string url { get; set; } public string description { get; set; } public string profile_text_color { get; set; } public int followers_count { get; set; } public int statuses_count { get; set; } public bool geo_enabled { get; set; } public string profile_backgr...
user
csharp
dotnet__orleans
src/Orleans.Core/Async/AsyncExecutorWithRetries.cs
{ "start": 13188, "end": 14033 }
public class ____ : IBackoffProvider { private readonly TimeSpan fixedDelay; /// <summary> /// Initializes a new instance of the <see cref="FixedBackoff"/> class. /// </summary> /// <param name="delay"> /// The fixed delay between attempts. /// </param> ...
FixedBackoff
csharp
ServiceStack__ServiceStack
ServiceStack.OrmLite/tests/ServiceStack.OrmLite.Tests/Async/ApiSqlServerTestsAsync.cs
{ "start": 245, "end": 23491 }
public class ____(DialectContext context) : OrmLiteProvidersTestBase(context) { private IDbConnection db; [SetUp] public void SetUp() { db = OpenDbConnection(); db.DropAndCreateTable<Person>(); db.DropAndCreateTable<PersonWithAutoId>(); } [TearDown] public void Tear...
ApiSqlServerTestsAsync
csharp
aspnetboilerplate__aspnetboilerplate
src/Abp/Configuration/DefaultConfigSettingStore.cs
{ "start": 439, "end": 3691 }
public class ____ : ISettingStore { /// <summary> /// Gets singleton instance. /// </summary> public static DefaultConfigSettingStore Instance { get; } = new DefaultConfigSettingStore(); private DefaultConfigSettingStore() { } public Task<SettingInfo>...
DefaultConfigSettingStore
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Commands/Api/SetApiSettingsCommand.cs
{ "start": 434, "end": 3106 }
internal sealed class ____ : Command { public SetApiSettingsApiCommand() : base("set-settings") { Description = "Sets the settings of a api"; AddArgument(Opt<IdArgument>.Instance); AddOption(Opt<TreatDangerousAsBreakingOption>.Instance); AddOption(Opt<AllowBreakingSchemaChangesO...
SetApiSettingsApiCommand
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/SendObserver_Specs.cs
{ "start": 8560, "end": 10913 }
public class ____ : InMemoryTestFixture { [Test] public async Task Should_trigger_the_send_message_observer() { var observer = new SendObserver(this); var mediator = MassTransit.Bus.Factory.CreateMediator(cfg => { ...
Observing_sent_messages_with_mediator
csharp
dotnet__reactive
Rx.NET/Source/src/System.Reactive/Linq/QueryLanguageEx.cs
{ "start": 18842, "end": 21369 }
private class ____<T> : ISubject<IObservable<T>, T> { private readonly T _head; private readonly AsyncSubject<IObservable<T>> _tail = new(); public ChainObservable(T head) { _head = head; } public IDisposable Subscribe(IOb...
ChainObservable
csharp
dotnet__machinelearning
src/Microsoft.ML.Core/Data/RootCursorBase.cs
{ "start": 453, "end": 792 }
class ____ creating a cursor with default tracking of <see cref="Position"/>. All calls to <see cref="MoveNext"/> /// will be seen by subclasses of this cursor. For a cursor that has an input cursor and does not need notification on /// <see cref="MoveNext"/>, use <see cref="SynchronizedCursorBase"/> instead. /// </su...
for
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Controls/TeachingTip/TeachingTip.mux.cs
{ "start": 1188, "end": 96215 }
public partial class ____ : ContentControl { private const string c_TitleTextBlockVisibleStateName = "ShowTitleTextBlock"; private const string c_TitleTextBlockCollapsedStateName = "CollapseTitleTextBlock"; private const string c_SubtitleTextBlockVisibleStateName = "ShowSubtitleTextBlock"; private const string c_Su...
TeachingTip
csharp
npgsql__npgsql
test/Npgsql.Tests/TestMetrics.cs
{ "start": 1586, "end": 2434 }
record ____ CPU times. /// </summary> public void Stop() { if (! running) { return; } stopwatch.Stop(); systemCPUTime = process.PrivilegedProcessorTime - systemCPUTime; userCPUTime = process.UserProcessorTime - userCPUTime; running = fal...
elapsed
csharp
smartstore__Smartstore
src/Smartstore.Web/Models/ShoppingCart/WishlistEmailAFriendModel.cs
{ "start": 163, "end": 734 }
public partial class ____ : ModelBase { [DataType(DataType.EmailAddress)] [LocalizedDisplay("*FriendEmail")] public string FriendEmail { get; set; } [DataType(DataType.EmailAddress)] [LocalizedDisplay("*YourEmailAddress")] public string YourEmailAddress { get; set; }...
WishlistEmailAFriendModel
csharp
neuecc__MessagePack-CSharp
src/MessagePack/SequenceReaderExtensions.cs
{ "start": 557, "end": 904 }
partial class ____ { /// <summary> /// Try to read the given type out of the buffer if possible. Warning: this is dangerous to use with arbitrary /// structs- see remarks for full details. /// </summary> /// <remarks> /// IMPORTANT: The read is a straight copy of bit...
SequenceReaderExtensions
csharp
dotnet__efcore
test/EFCore.Specification.Tests/DataAnnotationTestBase.cs
{ "start": 51766, "end": 52496 }
private class ____ { [Key] public long CommentID { get; set; } public long? ReplyCommentID { get; set; } public long? ParentCommentID { get; set; } [ForeignKey("ParentCommentID")] public virtual Comment ParentComment { get; set; } [ForeignKey("ReplyComment...
Comment
csharp
dotnet__efcore
test/EFCore.Specification.Tests/GraphUpdates/GraphUpdatesTestBase.cs
{ "start": 116147, "end": 116711 }
protected class ____ : NotifyingEntity { private int _foo; private string _bar; private int _ownedWithKeyId; public int OwnedWithKeyId { get => _ownedWithKeyId; set => SetWithNotify(value, ref _ownedWithKeyId); } public int Foo ...
OwnedWithKey
csharp
SixLabors__ImageSharp
src/ImageSharp/ColorProfiles/ColorProfileConverterExtensionsCieLabRgb.cs
{ "start": 304, "end": 5323 }
public static class ____ { /// <summary> /// Converts a color value from one color profile to another using the specified color profile converter. /// </summary> /// <remarks> /// The conversion process may use ICC profiles if available; otherwise, it performs a manual /// conversion through the...
ColorProfileConverterExtensionsCieLabRgb
csharp
EventStore__EventStore
src/KurrentDB.Core.Tests/Services/Storage/AllReader/when_multiple_single_writes_are_after_transaction_end_but_before_commit_is_present.cs
{ "start": 625, "end": 3052 }
public class ____<TLogFormat, TStreamId> : RepeatableDbTestScenario<TLogFormat, TStreamId> { [Test] public async Task should_be_able_to_read_the_transactional_writes_when_the_commit_is_present() { /* * create a db with a transaction where the commit is not present yet (read happened before the chaser could com...
when_multiple_single_writes_are_after_transaction_end_but_before_commit_is_present
csharp
nuke-build__nuke
source/Nuke.Common/Tools/DotNet/DotNetRuntimeIdentifier.cs
{ "start": 369, "end": 3299 }
public class ____ : Enumeration { public static DotNetRuntimeIdentifier win_x64 = new() { Value = "win-x64" }; public static DotNetRuntimeIdentifier win_x86 = new() { Value = "win-x86" }; public static DotNetRuntimeIdentifier win_arm = new() { Value = "win-arm" }; public static DotNetRuntimeIdentifier w...
DotNetRuntimeIdentifier
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/test/Types.Tests/Types/EnumFlagsTests.cs
{ "start": 2111, "end": 2197 }
public enum ____ { Foo = 1, Bar = 2, Baz = 4 } }
FooBarBaz
csharp
OrchardCMS__OrchardCore
src/OrchardCore.Modules/OrchardCore.Markdown/Services/MarkdownPipelineOptionsExtensions.cs
{ "start": 106, "end": 522 }
public static class ____ { /// <summary> /// Adds a configuration action to the markdown pipeline builder. /// </summary> public static void ConfigureMarkdownPipeline(this IServiceCollection services, Action<MarkdownPipelineBuilder> action) { services.Configure<MarkdownPipelineOptions>(o => ...
MarkdownPipelineOptionsExtensions
csharp
npgsql__npgsql
test/Npgsql.Tests/TypeMapperTests.cs
{ "start": 283, "end": 7404 }
public class ____ : TestBase { [Test] public async Task ReloadTypes_across_connections_in_data_source() { await using var adminConnection = await OpenConnectionAsync(); var type = await GetTempTypeName(adminConnection); // Note that we don't actually create the type in the database a...
TypeMapperTests
csharp
dotnet__extensions
test/Libraries/Microsoft.Extensions.AI.Tests/ChatCompletion/DistributedCachingChatClientTest.cs
{ "start": 4213, "end": 33406 }
private sealed class ____(IChatClient innerClient, IDistributedCache storage, Func<IEnumerable<ChatMessage>, ChatOptions?, bool> enableCaching) : DistributedCachingChatClient(innerClient, storage) { protected override bool EnableCaching(IEnumerable<ChatMessage> messages, ChatOptions? options) => ena...
CustomCachingChatClient
csharp
MassTransit__MassTransit
src/MassTransit.Analyzers/MessageContractAnalyzer.cs
{ "start": 394, "end": 20838 }
public class ____ : DiagnosticAnalyzer { public const string StructurallyCompatibleRuleId = "MCA0001"; public const string ValidMessageContractStructureRuleId = "MCA0002"; public const string MissingPropertiesRuleId = "MCA0003"; // You can change these strings in the Resourc...
MessageContractAnalyzer
csharp
JamesNK__Newtonsoft.Json
Src/Newtonsoft.Json.Tests/TestObjects/MyObservableObject.cs
{ "start": 1202, "end": 1357 }
public class ____ : ObservableObject { public new string PropertyChanged; public string TestString { get; set; } } }
MyObservableObject
csharp
duplicati__duplicati
Duplicati/CommandLine/ServerUtil/Connection.cs
{ "start": 26333, "end": 27433 }
private sealed record ____(string Error, int Code); /// <summary> /// Ensures the response is successful or extracts an error message /// </summary> /// <param name="message">The message to check</param> /// <returns>The task</returns> private static async Task EnsureSuccessStatusCodeWithParsin...
ServerError
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types.Abstractions/Types/Collections/IReadOnlyInterfaceTypeDefinitionCollection.cs
{ "start": 280, "end": 324 }
interface ____ definitions. /// </summary>
type
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL/Types/Composite/IAbstractGraphType.cs
{ "start": 173, "end": 903 }
public interface ____ : IGraphType { /// <summary> /// Gets or sets a delegate that can be used to determine the proper graph type for the specified object value. See /// <see cref="AbstractGraphTypeExtensions.GetObjectType(IAbstractGraphType, object, ISchema)"/> for more details. /// </summary> Fun...
IAbstractGraphType
csharp
microsoft__semantic-kernel
dotnet/src/Connectors/Connectors.Amazon/Bedrock/Core/Models/Anthropic/ClaudeToolUse.cs
{ "start": 251, "end": 394 }
internal static class ____ { /// <summary> /// (Optional) Definitions of tools that the model may use. /// </summary>
ClaudeToolUse
csharp
cake-build__cake
src/Cake.Core/IO/NuGet/INuGetToolResolver.cs
{ "start": 319, "end": 543 }
public interface ____ { /// <summary> /// Resolves the path to nuget.exe. /// </summary> /// <returns>The path to nuget.exe.</returns> FilePath ResolvePath(); } }
INuGetToolResolver
csharp
unoplatform__uno
src/Uno.UWP/WinRT/Paltypes.h.mux.cs
{ "start": 27, "end": 315 }
internal static class ____ { internal const uint KEY_MODIFIER_ALT = 0x0001; internal const uint KEY_MODIFIER_CTRL = 0x0002; internal const uint KEY_MODIFIER_SHIFT = 0x0004; internal const uint KEY_MODIFIER_WINDOWS = 0x0008; internal const uint KEY_MODIFIER_MOUSEDOWN = 0x0010; }
Paltypes
csharp
ServiceStack__ServiceStack
ServiceStack.Blazor/tests/ServiceStack.Blazor.Bootstrap.Tests/ServiceModel/Bookings.cs
{ "start": 3169, "end": 3266 }
public class ____ : IDeleteDb<Booking>, IReturnVoid { public int Id { get; set; } }
DeleteBooking
csharp
duplicati__duplicati
Duplicati/Library/Backend/S3/S3Config.cs
{ "start": 1257, "end": 1540 }
public class ____ : IWebModule { private const ConfigType DEFAULT_CONFIG_TYPE = ConfigType.Providers; private static readonly string DEFAULT_CONFIG_TYPE_STR = DEFAULT_CONFIG_TYPE.ToString(); private const string KEY_CONFIGTYPE = "s3-config";
S3Config
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Controls/MediaPlayerElement/MediaPlayerPresenter.Others.cs
{ "start": 290, "end": 1612 }
public partial class ____ : Border { private IMediaPlayerPresenterExtension? _extension; partial void InitializePartial() { if (this.Log().IsEnabled(LogLevel.Debug)) { this.Log().LogDebug($"Enter MediaPlayerPresenter InitializePartial"); } if (!ApiExtensibility.CreateInstance<IMediaPlayerPresent...
MediaPlayerPresenter
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IEnumValueDescriptor.cs
{ "start": 819, "end": 945 }
enum ____ description.</param> IEnumValueDescriptor Description(string value); /// <summary> /// Deprecates the
value
csharp
ServiceStack__ServiceStack.OrmLite
tests/ServiceStack.OrmLite.FirebirdTests/ServiceStack.Common.Tests/ServiceStack.Common.Tests.Models/ModelWithFieldsOfNullableTypes.cs
{ "start": 223, "end": 5045 }
public class ____ : IHasIntId, IHasId<int> { private readonly static ILog Log; public int Id { get; set; } public bool? NBool { get; set; } public DateTime? NDateTime { get; set; } public decimal? NDecimal { get; set; } public double? NDouble { get; ...
ModelWithFieldsOfNullableTypes
csharp
dotnet__aspnetcore
src/Servers/Connections.Abstractions/src/IConnectionFactory.cs
{ "start": 352, "end": 1036 }
public interface ____ { /// <summary> /// Creates a new connection to an endpoint. /// </summary> /// <param name="endpoint">The <see cref="EndPoint"/> to connect to.</param> /// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="Cancellat...
IConnectionFactory
csharp
DuendeSoftware__IdentityServer
bff/migrations/UserSessionDb/Migrations/UserSessions/SessionDbContextModelSnapshot.cs
{ "start": 337, "end": 2390 }
partial class ____ : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "8.0.11"); modelBuilder.Entity("Duende.Bff.EntityFramework.UserSessionEntity", b => ...
SessionDbContextModelSnapshot
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.Bson.Tests/Serialization/Serializers/ArraySerializerTests.cs
{ "start": 968, "end": 4927 }
private class ____ { public B[] Array; } [Fact] public void TestSerializeNull() { C c = new C { Array = null }; var json = c.ToJson(writerSettings: new JsonWriterSettings { OutputMode = JsonOutputMode.Shell }); var expected = ("{ '...
C
csharp
jellyfin__jellyfin
src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/Migrations/20250327171413_AddHdr10PlusFlag.Designer.cs
{ "start": 449, "end": 58718 }
partial class ____ { /// <inheritdoc /> protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "9.0.3"); modelBuilder.Entity("Jellyfin.Database.Implementations.Entities.Acces...
AddHdr10PlusFlag
csharp
dotnet__maui
src/Controls/tests/BindingSourceGen.UnitTests/IntegrationTests.cs
{ "start": 60388, "end": 63932 }
partial class ____ { {{BindingCodeWriter.GeneratedCodeAttribute}} [global::System.Runtime.CompilerServices.InterceptsLocationAttribute({{result.Binding.InterceptableLocation!.Version}}, @"{{result.Binding.InterceptableLocation!.Data}}")] publ...
GeneratedBindingInterceptors
csharp
unoplatform__uno
src/Uno.Foundation/Metadata/MuseAttribute.cs
{ "start": 209, "end": 468 }
partial class ____ : Attribute { /// <summary> /// Creates and initializes a new instance of the attribute. /// </summary> public MuseAttribute() : base() { } /// <summary> /// Specifies the version. /// </summary> public uint Version; }
MuseAttribute
csharp
AvaloniaUI__Avalonia
tests/Avalonia.RenderTests/CrossUI/CrossUI.cs
{ "start": 6528, "end": 6829 }
public class ____ : CrossControl { public required CrossImage Image { get; set; } public override void Render(ICrossDrawingContext ctx) { base.Render(ctx); var rc = new Rect(Bounds.Size); var image = Image; ctx.DrawImage(image, rc); } }
CrossImageControl
csharp
AutoFixture__AutoFixture
Src/AutoFixture.xUnit/AutoDataAttribute.cs
{ "start": 2270, "end": 7329 }
class ____ the /// supplied <see cref="IFixture"/>. /// </summary> /// <param name="fixture">The fixture.</param> [Obsolete("This constructor overload is deprecated because it offers poor performance, and will be removed in a future version. " + "Please use the AutoData...
with
csharp
dotnet__extensions
test/Analyzers/Microsoft.Analyzers.Extra.Tests/CallAnalysis/LegacyLoggingTests.cs
{ "start": 1418, "end": 1801 }
public class ____ { public void Test(ILogger logger) { logger.Hello(); } } } "; const string ExpectedTarget = @" namespace E...
TestClass
csharp
PrismLibrary__Prism
tests/Prism.Core.Tests/Events/BackgroundEventSubscriptionFixture.cs
{ "start": 107, "end": 2311 }
public class ____ { [Fact] public void ShouldReceiveDelegateOnDifferentThread() { ManualResetEvent completeEvent = new ManualResetEvent(false); SynchronizationContext.SetSynchronizationContext(new SynchronizationContext()); SynchronizationContext calledSyn...
BackgroundEventSubscriptionFixture
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/IocServiceCollectionTests.cs
{ "start": 546, "end": 819 }
public class ____(IFoo foo, IBar bar) : IService { public IFoo Foo => foo; public IBar Bar => bar; public int Count { get; set; } public object Any(AutoWire request) { return new AutoWireResponse { Foo = foo, Bar = bar }; } }
AutoWireService
csharp
pythonnet__pythonnet
src/testing/arraytest.cs
{ "start": 5145, "end": 5547 }
public class ____ { public int[,] items; public MultiDimensionalArrayTest() { items = new int[5, 5] { { 0, 1, 2, 3, 4 }, { 5, 6, 7, 8, 9 }, { 10, 11, 12, 13, 14 }, { 15, 16, 17, 18, 19 }, ...
MultiDimensionalArrayTest
csharp
EventStore__EventStore
src/KurrentDB.Core.Tests/Services/Transport/Http/Authentication/node_certificate_authentication_provider.cs
{ "start": 900, "end": 1380 }
public class ____ : TestFixtureWithNodeCertificateHttpAuthenticationProvider { private bool _authenticateResult; [SetUp] public void SetUp() { SetUpProvider(); var context = new DefaultHttpContext(); Assert.IsNull(context.Connection.ClientCertificate); _authenticateResult = _provider.Authenticate(context...
when_handling_a_request_without_a_client_certificate
csharp
dotnet__extensions
test/Libraries/Microsoft.Extensions.Diagnostics.Probes.Tests/TcpEndpointProbesExtensionsTests.cs
{ "start": 670, "end": 6494 }
public class ____ { [Fact] public void AddTcpEndpointProbeTest_WithoutConfig() { using var host = CreateWebHost(services => { services .AddRouting() .AddTcpEndpointProbe(); }); var hostedServices = host.Services.GetServices<IHosted...
TcpEndpointProbesExtensionsTests
csharp
ServiceStack__ServiceStack
ServiceStack/tests/OpenApi3Swashbuckle/Migrations/20240301000000_CreateIdentitySchema.cs
{ "start": 139, "end": 10507 }
public partial class ____ : Migration { /// <inheritdoc /> protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "AspNetRoles", columns: table => new { Id = table.Col...
CreateIdentitySchema
csharp
abpframework__abp
modules/cms-kit/src/Volo.CmsKit.Admin.Application/Volo/CmsKit/Admin/CmsKitAdminApplicationMappers.cs
{ "start": 545, "end": 942 }
public partial class ____ : MapperBase<TagEntityTypeDefiniton, TagDefinitionDto> { public override partial TagDefinitionDto Map(TagEntityTypeDefiniton source); public override partial void Map(TagEntityTypeDefiniton source, TagDefinitionDto destination); } [Mapper(RequiredMappingStrategy = RequiredMappingStra...
TagEntityTypeDefinitonToTagDefinitionDtoMapper
csharp
dotnet__machinelearning
test/Microsoft.ML.Tests/CalibratedModelParametersTests.cs
{ "start": 486, "end": 6914 }
public class ____ : TestDataPipeBase { public CalibratedModelParametersTests(ITestOutputHelper output) : base(output) { } [Fact] public void TestParameterMixingCalibratedModelParametersLoading() { var data = GetDenseDataset(); var model = ML.B...
CalibratedModelParametersTests
csharp
smartstore__Smartstore
src/Smartstore.Core/Platform/Seo/Extensions/SeoExtensions.cs
{ "start": 168, "end": 8344 }
partial class ____ { public static string BuildSlug<T>(this T entity, int? languageId = null) where T : IDisplayedEntity { Guard.NotNull(entity, nameof(entity)); var name = entity.GetDisplayName(); if (entity is ILocalizedEntity le) { ...
SeoExtensions
csharp
CommunityToolkit__WindowsCommunityToolkit
Microsoft.Toolkit.Uwp.Notifications/Toasts/ToastArguments.cs
{ "start": 3091, "end": 6356 }
enum ____ parse.</typeparam> /// <param name="key">The key to find.</param> /// <param name="value">The key's value will be written here if found.</param> /// <returns>True if found the key and set the value, otherwise false.</returns> public bool TryGetValue<T>(string key, out T value)...
to
csharp
rabbitmq__rabbitmq-dotnet-client
projects/RabbitMQ.Client/INetworkConnection.cs
{ "start": 1520, "end": 1773 }
public interface ____ { /// <summary> /// Local port. /// </summary> int LocalPort { get; } /// <summary> /// Remote port. /// </summary> int RemotePort { get; } } }
INetworkConnection
csharp
dotnet__BenchmarkDotNet
tests/BenchmarkDotNet.Analyzers.Tests/AnalyzerTests/Attributes/GeneralParameterAttributesAnalyzerTests.cs
{ "start": 20243, "end": 20895 }
public class ____ { [Dummy] {{classMemberAccessModifier}}int Property { get; set; } } """; TestCode = testCode; ReferenceDummyAttribute(); await RunAsync(); } [Theory] [...
BenchmarkClass
csharp
dotnet__orleans
src/Orleans.Transactions.TestKit.Base/Grains/TransactionAttributionGrain.cs
{ "start": 1617, "end": 1917 }
public class ____ : Grain, ISupportedAttributionGrain { public Task<List<string>[]> GetNestedTransactionIds(int tier, List<ITransactionAttributionGrain>[] tiers) { return AttributionGrain.GetNestedTransactionIds(tier, tiers); } }
SupportedAttributionGrain
csharp
neuecc__MessagePack-CSharp
tests/MessagePack.SourceGenerator.Tests/MsgPack00xAnalyzerTests.cs
{ "start": 10731, "end": 10909 }
public struct ____ { [MessagePack.Key(0)] public string Member; } [MessagePack.MessagePackObject]
Foo
csharp
dotnet__machinelearning
src/Microsoft.ML.Transforms/MissingValueDroppingTransformer.cs
{ "start": 1598, "end": 3419 }
internal sealed class ____ : TrivialEstimator<MissingValueDroppingTransformer> { public MissingValueDroppingEstimator(IHostEnvironment env, params (string outputColumnName, string inputColumnName)[] columns) : base(Contracts.CheckRef(env, nameof(env)).Register(nameof(MissingValueDroppingEstimato...
MissingValueDroppingEstimator
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 2605637, "end": 2609214 }
public partial class ____ : global::System.IEquatable<OnFusionConfigurationPublishingTaskChanged_OnFusionConfigurationPublishingTaskChanged_Errors_Changes_InputObjectModifiedChange>, IOnFusionConfigurationPublishingTaskChanged_OnFusionConfigurationPublishingTaskChanged_Errors_Changes_InputObjectModifiedChange { ...
OnFusionConfigurationPublishingTaskChanged_OnFusionConfigurationPublishingTaskChanged_Errors_Changes_InputObjectModifiedChange
csharp
bitwarden__server
src/Infrastructure.Dapper/Auth/Repositories/AuthRequestRepository.cs
{ "start": 328, "end": 4126 }
public class ____ : Repository<AuthRequest, Guid>, IAuthRequestRepository { private readonly GlobalSettings _globalSettings; public AuthRequestRepository(GlobalSettings globalSettings) : base(globalSettings.SqlServer.ConnectionString, globalSettings.SqlServer.ReadOnlyConnectionString) { _glo...
AuthRequestRepository
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types/Resolvers/ISelectionCollection.cs
{ "start": 175, "end": 3611 }
public interface ____ : IReadOnlyList<ISelection> { /// <summary> /// Selects all child fields that match the given field name and /// returns a <see cref="ISelectionCollection"/> containing /// these selections. /// </summary> /// <param name="fieldName"> /// The field name to select. /...
ISelectionCollection
csharp
neuecc__MessagePack-CSharp
tests/MessagePack.SourceGenerator.Tests/Resources/GenericWithConstraintsThatReferenceTypeParameter/MessagePack.GeneratedMessagePackResolver.g.cs
{ "start": 1230, "end": 2047 }
private static class ____ { private static readonly global::System.Collections.Generic.Dictionary<global::System.Type, int> openTypeLookup = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(1) { { typeof(global::GenericConstrainedClassIntKey<,>), 0 }, }; internal static object Ge...
GeneratedMessagePackResolverGetFormatterHelper
csharp
JoshClose__CsvHelper
src/CsvHelper/CsvWriter.cs
{ "start": 18783, "end": 23096 }
record ____ determine the type of.</param> /// <returns>The System.Type for the record.</returns> public virtual RecordTypeInfo GetTypeInfoForRecord<T>(T? record) { var type = typeof(T); if (type == typeof(object) && record != null) { return new RecordTypeInfo(record.GetType(), true); } return new Rec...
to
csharp
dotnet__efcore
test/EFCore.Relational.Specification.Tests/BulkUpdates/TPTInheritanceBulkUpdatesFixture.cs
{ "start": 278, "end": 2202 }
public abstract class ____ : InheritanceBulkUpdatesRelationalFixtureBase { protected override string StoreName => "TPTInheritanceBulkUpdatesTest"; public override bool HasDiscriminator => false; protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext context) { ...
TPTInheritanceBulkUpdatesFixture
csharp
dotnet__efcore
test/EFCore.Specification.Tests/KeysWithConvertersTestBase.cs
{ "start": 279411, "end": 279552 }
protected interface ____ { int BackingId { get; set; } int? BackingPrincipalId { get; set; } }
IIntOptionalDependent
csharp
louthy__language-ext
LanguageExt.Tests/LensTests.cs
{ "start": 1767, "end": 2111 }
public partial class ____ : Record<Appt> { public readonly int Id; public readonly DateTime StartDate; public readonly ApptState State; public Appt(int id, DateTime startDate, ApptState state) { Id = id; StartDate = startDate; State = stat...
Appt
csharp
MassTransit__MassTransit
tests/MassTransit.HangfireIntegration.Tests/Recurring_Specs.cs
{ "start": 3458, "end": 4393 }
class ____ : RecurringSchedule { public MySchedule(string scheduleId) { ScheduleId = scheduleId; CronExpression = "0/1 * * * * ?"; StartTime = DateTime.Now + TimeSpan.FromSeconds(3); EndTime = StartTime + TimeSp...
MySchedule
csharp
cake-build__cake
src/Cake.Common.Tests/Unit/Build/TeamCity/TeamCityProviderTests.cs
{ "start": 4339, "end": 4976 }
public sealed class ____ { [Fact] public void SetParameter_Should_Write_To_The_Log_Correctly() { // Given var fixture = new TeamCityFixture(); var teamCity = fixture.CreateTeamCityService(); // When ...
TheSetParameterMethod
csharp
microsoft__semantic-kernel
dotnet/src/Connectors/Connectors.AzureOpenAI.UnitTests/Core/ClientCoreTests.cs
{ "start": 388, "end": 2668 }
public sealed class ____ : IDisposable { private readonly MultipleHttpMessageHandlerStub _multiHttpMessageHandlerStub; private readonly HttpClient _httpClient; public ClientCoreTests() { this._multiHttpMessageHandlerStub = new MultipleHttpMessageHandlerStub(); this._httpClient = new Htt...
ClientCoreTests
csharp
Cysharp__UniTask
src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/OrderBy.cs
{ "start": 17122, "end": 18688 }
internal class ____<TElement, TKey> : AsyncEnumerableSorter<TElement> { readonly Func<TElement, CancellationToken, UniTask<TKey>> keySelector; readonly IComparer<TKey> comparer; readonly bool descending; readonly AsyncEnumerableSorter<TElement> next; CancellationToken cancell...
AsyncSelectorWithCancellationEnumerableSorter
csharp
fluentassertions__fluentassertions
Src/FluentAssertions/Primitives/StringEqualityStrategy.cs
{ "start": 220, "end": 11177 }
internal class ____ : IStringComparisonStrategy { private readonly IEqualityComparer<string> comparer; private readonly string predicateDescription; public StringEqualityStrategy(IEqualityComparer<string> comparer, string predicateDescription) { this.comparer = comparer; this.predicateD...
StringEqualityStrategy
csharp
microsoft__semantic-kernel
dotnet/samples/GettingStartedWithAgents/OpenAIResponse/Step04_OpenAIResponseAgent_Tools.cs
{ "start": 535, "end": 6181 }
public class ____(ITestOutputHelper output) : BaseResponsesAgentTest(output) { [Fact] public async Task InvokeAgentWithFunctionToolsAsync() { // Define the agent OpenAIResponseAgent agent = new(this.Client) { StoreEnabled = false, }; // Create a plugin th...
Step04_OpenAIResponseAgent_Tools
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Abstractions/Subscriptions/TopicBufferFullMode.cs
{ "start": 155, "end": 629 }
public enum ____ { /// <summary> /// Remove and ignore the newest item in the topic channel in order to make room for /// the item being written. /// </summary> DropNewest, /// <summary> /// Remove and ignore the oldest item in the topic channel in order to make room for /// the item be...
TopicBufferFullMode
csharp
icsharpcode__ILSpy
ILSpy/Commands/CreateDiagramContextMenuEntry.cs
{ "start": 1671, "end": 4358 }
sealed class ____(DockWorkspace dockWorkspace) : IContextMenuEntry { public void Execute(TextViewContext context) { var assembly = (context.SelectedTreeNodes?.FirstOrDefault() as AssemblyTreeNode)?.LoadedAssembly; if (assembly == null) return; var selectedPath = SelectDestinationFolder(); if (stri...
CreateDiagramContextMenuEntry
csharp
dotnet__orleans
test/Orleans.Serialization.UnitTests/ManualVersionToleranceTests.cs
{ "start": 20018, "end": 21502 }
public class ____ : BaseType, IEquatable<SubType> { // 0 public string String { get; set; } // 1 public int Int { get; set; } // 3 public object Ref { get; set; } public bool Equals(SubType other) { ...
SubType
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/StaticProperty_Specs.cs
{ "start": 540, "end": 678 }
class ____ : SuperTarget { public static string ZupMan { set; private get; } } [TestFixture]
StaticsNoGetter
csharp
dotnet__aspnetcore
src/Mvc/Mvc.ViewFeatures/test/Filters/ViewDataAttributePropertyProviderTest.cs
{ "start": 197, "end": 2297 }
public class ____ { [Fact] public void GetViewDataProperties_ReturnsNull_IfTypeDoesNotHaveAnyViewDataProperties() { // Arrange var type = typeof(TestController_NoViewDataProperties); // Act var result = ViewDataAttributePropertyProvider.GetViewDataProperties(type); ...
ViewDataAttributePropertyProviderTest
csharp
unoplatform__uno
src/SourceGenerators/SourceGeneratorHelpers/Helpers/SymbolExtensions.cs
{ "start": 2950, "end": 3572 }
class ____ for the originally given namedTypeSymbol, invoke afterClassHeaderAction. // This is usually used to append the base types or interfaces. stack.Push(GetDeclarationHeaderFromNamedTypeSymbol(namedSymbol, ReferenceEquals(namedSymbol, namedTypeSymbol) ? afterClassHeader : null)); } else { ...
header
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 208254, "end": 208471 }
public class ____ { public int Id { get; set; } public RelatedEntity960 ParentEntity { get; set; } public IEnumerable<RelatedEntity962> ChildEntities { get; set; } }
RelatedEntity961
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/SagaStateMachineTests/Automatonymous/Observable_Specs.cs
{ "start": 2419, "end": 5505 }
public class ____ { [Test] public void Should_have_all_events() { Assert.That(_eventObserver.Events, Has.Count.EqualTo(2)); } [Test] public void Should_have_first_moved_to_initial() { Assert.Multiple(() => { ...
Observing_events_with_substates
csharp
cake-build__cake
src/Cake.Common.Tests/Unit/Tools/Chocolatey/Download/ChocolateyDownloadTests.cs
{ "start": 448, "end": 35461 }
public sealed class ____ { [Fact] public void Should_Throw_If_Package_Id_Is_Null() { // Given var fixture = new ChocolateyDownloadFixture(); fixture.PackageId = null; // When var result = Record....
TheDownloadMethod
csharp
dotnetcore__FreeSql
Providers/FreeSql.Provider.Custom/MySql/Curd/CustomMySqlSelect.cs
{ "start": 24968, "end": 25543 }
class ____ T15 : class { public OdbcMySqlSelect(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression, object dywhere) : base(orm, commonUtils, commonExpression, dywhere) { } public override string ToSql(string field = null) => CustomMySqlSelect<T1>.ToSqlStatic(_commonUtils, _comm...
where
csharp
dotnet__aspire
tests/Aspire.Confluent.Kafka.Tests/ConsumerConformanceTests.cs
{ "start": 383, "end": 5039 }
public class ____ : ConformanceTests<IConsumer<string, string>, KafkaConsumerSettings> { protected override ServiceLifetime ServiceLifetime => ServiceLifetime.Singleton; protected override string ActivitySourceName => throw new NotImplementedException(); protected override string[] RequiredLogCategories =...
ConsumerConformanceTests
csharp
SixLabors__ImageSharp
src/ImageSharp/ColorProfiles/YccK.cs
{ "start": 590, "end": 7572 }
struct ____ : IColorProfile<YccK, Rgb> { private static readonly Vector4 Min = Vector4.Zero; private static readonly Vector4 Max = Vector4.One; /// <summary> /// Initializes a new instance of the <see cref="YccK"/> struct. /// </summary> /// <param name="y">The y luminance component.</param> ...
YccK
csharp
dotnet__orleans
src/Orleans.Reminders/Hosting/SiloBuilderReminderExtensions.cs
{ "start": 218, "end": 1248 }
public static class ____ { /// <summary> /// Adds support for reminders to this silo. /// </summary> /// <param name="builder">The builder.</param> /// <returns>The silo builder.</returns> public static ISiloBuilder AddReminders(this ISiloBuilder builder) => builder.ConfigureServices(services =>...
SiloBuilderReminderExtensions