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
GtkSharp__GtkSharp
Source/Libs/CairoSharp/ScaledFont.cs
{ "start": 1250, "end": 3528 }
public class ____ : IDisposable { protected IntPtr handle = IntPtr.Zero; internal ScaledFont (IntPtr handle, bool owner) { if (handle == IntPtr.Zero) throw new ArgumentException ("handle should not be NULL", "handle"); this.handle = handle; if (!owner) NativeMethods.cairo_scaled_font_reference...
ScaledFont
csharp
EventStore__EventStore
src/KurrentDB.Core.Tests/Cluster/MemberInfoTests.cs
{ "start": 350, "end": 1798 }
public class ____ { [Test] public void member_with_dns_endpoint_should_equal() { var ipAddress = "127.0.0.1"; var port = 1113; var memberWithDnsEndPoint = MemberInfo.Initial(Guid.Empty, DateTime.UtcNow, VNodeState.Unknown, true, new DnsEndPoint(ipAddress, port), new DnsEndPoint(ipAddress, port), new...
MemberInfoTests
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/ContainerTests/Common_Tests/Common_ConsumeContext.cs
{ "start": 446, "end": 2851 }
public class ____ : InMemoryContainerTestFixture { Task<ConsumeContext> ConsumeContext => ServiceProvider.GetRequiredService<TaskCompletionSource<ConsumeContext>>().Task; Task<IPublishEndpoint> PublishEndpoint => ServiceProvider.GetRequiredService<TaskCompletionSource<IPublishEndpoint>>().Ta...
Common_ConsumeContext
csharp
MassTransit__MassTransit
src/MassTransit.Abstractions/Contexts/FaultedActivityOptions.cs
{ "start": 74, "end": 1008 }
public interface ____ { /// <summary> /// When specified, uses the scheduler to delay execution of the next activity by the specified duration /// </summary> TimeSpan? Delay { set; } /// <summary> /// Add or update the variables on the routing slip with the specified object (properties are mapp...
FaultedActivityOptions
csharp
nuke-build__nuke
source/Nuke.Common/Tools/DotNet/DotNet.Generated.cs
{ "start": 866405, "end": 874774 }
partial class ____ { #region PackageName /// <inheritdoc cref="DotNetToolInstallSettings.PackageName"/> [Pure] [Builder(Type = typeof(DotNetToolInstallSettings), Property = nameof(DotNetToolInstallSettings.PackageName))] public static T SetPackageName<T>(this T o, string v) where T : DotNetToolInstallS...
DotNetToolInstallSettingsExtensions
csharp
ServiceStack__ServiceStack.Text
src/ServiceStack.Text/HttpMethods.cs
{ "start": 60, "end": 1439 }
public static class ____ { static readonly string[] allVerbs = { "OPTIONS", "GET", "HEAD", "POST", "PUT", "DELETE", "TRACE", "CONNECT", // RFC 2616 "PROPFIND", "PROPPATCH", "MKCOL", "COPY", "MOVE", "LOCK", "UNLOCK", // RFC 2518 "VERSION-CONTROL", "REPORT", "CHECKOUT", "CHECKIN", "UNCHECKO...
HttpMethods
csharp
MaterialDesignInXAML__MaterialDesignInXamlToolkit
src/MaterialDesignColors.Wpf/Recommended/DeepOrangeSwatch.cs
{ "start": 73, "end": 2496 }
public class ____ : ISwatch { public static Color DeepOrange50 { get; } = (Color)ColorConverter.ConvertFromString("#FBE9E7"); public static Color DeepOrange100 { get; } = (Color)ColorConverter.ConvertFromString("#FFCCBC"); public static Color DeepOrange200 { get; } = (Color)ColorConverter.ConvertFromString("#FFAB91"...
DeepOrangeSwatch
csharp
dotnet__tye
src/Microsoft.Tye.Core/CombineStep.cs
{ "start": 347, "end": 6729 }
public sealed class ____ : ApplicationExecutor.ServiceStep { public override string DisplayText => "Compiling Services..."; public string Environment { get; set; } = "production"; public override Task ExecuteAsync(OutputContext output, ApplicationBuilder application, ServiceBuilder service...
CombineStep
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Elements/KeyboardScrollingNonScrollingPageSmallTitlesGallery.cs
{ "start": 154, "end": 602 }
public class ____ : ContentViewGalleryPage { public KeyboardScrollingNonScrollingPageSmallTitlesGallery() { On<iOS>().SetLargeTitleDisplay(LargeTitleDisplayMode.Never); Add(new KeyboardScrollingEntriesPage()); Add(new KeyboardScrollingEditorsPage()); Add(new KeyboardScrollingEntryNextEditorPage()); }...
KeyboardScrollingNonScrollingPageSmallTitlesGallery
csharp
rabbitmq__rabbitmq-dotnet-client
projects/RabbitMQ.Client/Framing/ConnectionSecureOk.cs
{ "start": 1485, "end": 2160 }
struct ____ : IOutgoingAmqpMethod { public readonly byte[] _response; public ConnectionSecureOk(byte[] Response) { _response = Response; } public ProtocolCommandId ProtocolCommandId => ProtocolCommandId.ConnectionSecureOk; public int WriteTo(Span<byte>...
ConnectionSecureOk
csharp
louthy__language-ext
LanguageExt.Core/Monads/Alternative Monads/These/These.cs
{ "start": 114, "end": 2322 }
partial record ____<A, B> : K<These<A>, B> { /// <summary> /// Stop other types deriving from These /// </summary> private These() {} /// <summary> /// Case analysis for the `These` type /// </summary> /// <param name="This">Match for `This` state</param> /// <param name="That"...
These
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types.NodaTime/OffsetTimeType.cs
{ "start": 335, "end": 2385 }
public class ____ : StringToStructBaseType<OffsetTime> { private readonly IPattern<OffsetTime>[] _allowedPatterns; private readonly IPattern<OffsetTime> _serializationPattern; /// <summary> /// Initializes a new instance of <see cref="OffsetTimeType"/>. /// </summary> public OffsetTimeType(para...
OffsetTimeType
csharp
NLog__NLog
examples/targets/Configuration API/File/Archive4/Example.cs
{ "start": 52, "end": 2284 }
class ____ { static void Main(string[] args) { FileTarget target = new FileTarget(); target.Layout = "${longdate} ${logger} ${message}"; target.FileName = "${basedir}/logs/logfile.${level}.txt"; // where to store the archive files target.ArchiveFileName = "${basedir}/arch...
Example
csharp
dotnet__machinelearning
docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/ApplyOnnxModel.cs
{ "start": 129, "end": 1295 }
public static class ____ { public static void Example() { // Download the squeeznet image model from ONNX model zoo, version 1.2 // https://github.com/onnx/models/tree/master/squeezenet or // https://s3.amazonaws.com/download.onnx/models/opset_8/squeezenet.tar.gz ...
ApplyOnnxModel
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Markup/Reader/XamlObjectBuilder.cs
{ "start": 56647, "end": 57116 }
private class ____ { private readonly object _instance; private readonly MethodInfo _method; public EventHandlerWrapper(object instance, MethodInfo method) { _instance = instance; _method = method; } public void Handler2(object sender, object args) { _method.Invoke(_instance, Array....
EventHandlerWrapper
csharp
louthy__language-ext
LanguageExt.Core/Monads/Alternative Monads/Try/Operators/Try.Operators.Monad.cs
{ "start": 78, "end": 1530 }
partial class ____ { extension<A, B>(K<Try, A> self) { /// <summary> /// Monad bind operator /// </summary> /// <param name="ma">Monad to bind</param> /// <param name="f">Binding function</param> /// <returns>Mapped monad</returns> public static Try<B> op...
TryExtensions
csharp
unoplatform__uno
src/Uno.UI.RuntimeTests/IntegrationTests/dxaml/controls/inc/PanelsHelper.cs
{ "start": 2085, "end": 2908 }
class ____> // static TItemsControl^ CreateItemsControlWithPanel(Platform::String^ xamlPanelProperties = L"") //{ // TItemsControl ^ itemsControl = nullptr; // await RunOnUIThread(() // { // LOG_OUTPUT("Creating a %s with a %s as its panel.", GetClassName<TItemsControl>().Data(), GetClassName<TPanel>().Da...
TPanel
csharp
JamesNK__Newtonsoft.Json
Src/Newtonsoft.Json.Tests/Serialization/FSharpTests.cs
{ "start": 1624, "end": 3208 }
public class ____ : TestFixtureBase { [Test] public void List() { FSharpList<int> l = ListModule.OfSeq(new List<int> { 1, 2, 3 }); string json = JsonConvert.SerializeObject(l, Formatting.Indented); StringAssert.AreEqual(@"[ 1, 2, 3 ]", json); ...
FSharpTests
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/Issue21837.xaml.cs
{ "start": 230, "end": 577 }
public partial class ____ : ContentPage { private int _tapCount; public int TapCount { get => _tapCount; set { _tapCount = value; OnPropertyChanged(); } } public Command TapCommand { get; set; } public Issue21837() { InitializeComponent(); TapCommand = new Command(() => ++TapCount); Binding...
Issue21837
csharp
dotnet__extensions
src/Libraries/Microsoft.Extensions.DataIngestion/Processors/KeywordEnricher.cs
{ "start": 615, "end": 4496 }
public sealed class ____ : IngestionChunkProcessor<string> { private const int DefaultMaxKeywords = 5; private readonly EnricherOptions _options; private readonly ChatMessage _systemPrompt; private readonly ILogger? _logger; /// <summary> /// Initializes a new instance of the <see cref="Keyword...
KeywordEnricher
csharp
dotnet__aspire
src/Aspire.Cli/Mcp/ListResourcesTool.cs
{ "start": 255, "end": 1696 }
internal sealed class ____ : CliMcpTool { public override string Name => "list_resources"; public override string Description => "List the application resources. Includes information about their type (.NET project, container, executable), running state, source, HTTP endpoints, health status, commands, configur...
ListResourcesTool
csharp
smartstore__Smartstore
src/Smartstore.Core/Platform/Messaging/Permissions.Messaging.cs
{ "start": 1006, "end": 1464 }
public static class ____ { public const string Self = "cms.messagetemplate"; public const string Read = "cms.messagetemplate.read"; public const string Update = "cms.messagetemplate.update"; public const string Create = "cms.messagetemplate.cre...
MessageTemplate
csharp
xunit__xunit
src/xunit.v3.runner.utility.tests/Visitors/TestDiscoverySinkTests.cs
{ "start": 41, "end": 640 }
public class ____ { [Fact] public void CollectsTestCases() { var visitor = new TestDiscoverySink(); var testCase1 = TestData.TestCaseDiscovered(); var testCase2 = TestData.TestCaseDiscovered(); var testCase3 = TestData.TestCaseDiscovered(); visitor.OnMessage(testCase1); visitor.OnMessage(testCase2); v...
TestDiscoverySinkTests
csharp
dotnet__reactive
Rx.NET/Source/tests/Tests.System.Reactive/Tests/ObserverTest.cs
{ "start": 24184, "end": 26212 }
private class ____ : SynchronizationContext { public override void Post(SendOrPostCallback d, object state) { Task.Run(() => d(state)); } } [TestMethod] public void Observer_ToProgress_ArgumentChecking() { var s = S...
MySyncCtx
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Automation/Peers/HyperlinkButtonAutomationPeer.cs
{ "start": 458, "end": 1005 }
public partial class ____ : ButtonBaseAutomationPeer, Provider.IInvokeProvider { public HyperlinkButtonAutomationPeer(HyperlinkButton owner) : base(owner) { } protected override string GetClassNameCore() => "Hyperlink"; protected override AutomationControlType GetAutomationControlTypeCore() => AutomationContro...
HyperlinkButtonAutomationPeer
csharp
dotnet__aspire
tests/Aspire.Hosting.Tests/Utils/ResourceNotificationServiceTestHelpers.cs
{ "start": 299, "end": 904 }
public static class ____ { public static ResourceNotificationService Create(ILogger<ResourceNotificationService>? logger = null, IHostApplicationLifetime? hostApplicationLifetime = null, ResourceLoggerService? resourceLoggerService = null) { return new ResourceNotificationService( logger ?? ...
ResourceNotificationServiceTestHelpers
csharp
dotnet__maui
src/BlazorWebView/src/Maui/Android/BlazorWebChromeClient.cs
{ "start": 334, "end": 2944 }
class ____ : WebChromeClient { public override bool OnCreateWindow(global::Android.Webkit.WebView? view, bool isDialog, bool isUserGesture, Message? resultMsg) { if (view?.Context is not null) { // Intercept _blank target <a> tags to always open in device browser // regardless of UrlLoadingStrategy.O...
BlazorWebChromeClient
csharp
dotnetcore__FreeSql
Examples/base_entity/MessagePackMap.cs
{ "start": 586, "end": 4951 }
public static class ____ { internal static int _isAoped = 0; static ConcurrentDictionary<Type, bool> _dicTypes = new ConcurrentDictionary<Type, bool>(); static MethodInfo MethodMessagePackSerializerDeserialize = typeof(MessagePackSerializer).GetMethod("Deserialize", new[] { typeof(Type), typeof(ReadOnlyMemo...
FreeSqlMessagePackMapCoreExtensions
csharp
OrchardCMS__OrchardCore
src/OrchardCore.Modules/OrchardCore.Users/Startup.cs
{ "start": 23874, "end": 24829 }
public sealed class ____ : StartupBase { public override void ConfigureServices(IServiceCollection services) { services.AddDisplayDriver<User, CustomUserSettingsDisplayDriver>(); services.AddPermissionProvider<CustomUserSettingsPermissions>(); services.AddDeployment<CustomUserSettingsDep...
CustomUserSettingsStartup
csharp
EventStore__EventStore
src/KurrentDB.Core/Messages/ElectionMessageDtos.cs
{ "start": 4497, "end": 5229 }
public class ____ { public Guid ServerId { get; set; } public Guid LeaderId { get; set; } public string ServerHttpAddress { get; set; } public int ServerHttpPort { get; set; } public string LeaderHttpAddress { get; set; } public int LeaderHttpPort { get; set; } public int View { get; set; } public Ac...
AcceptDto
csharp
dotnet__aspnetcore
src/DefaultBuilder/src/ForwardedHeadersStartupFilter.cs
{ "start": 286, "end": 898 }
internal sealed class ____ : IStartupFilter { private readonly IConfiguration _configuration; public ForwardedHeadersStartupFilter(IConfiguration configuration) { _configuration = configuration; } public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) { ...
ForwardedHeadersStartupFilter
csharp
dotnet__aspnetcore
src/Http/Http.Results/tools/ResultsOfTGenerator/Program.cs
{ "start": 36657, "end": 37054 }
class ____{typeArgNumber} : ChecksumResult"); writer.WriteIndentedLine(1, "{"); writer.WriteIndentedLine(2, $"public ChecksumResult{typeArgNumber}(int checksum = 0) : base(checksum) {{ }}"); writer.WriteIndentedLine(1, "}"); } } static void Generate_ProvidesMetadataR...
ChecksumResult
csharp
aspnetboilerplate__aspnetboilerplate
src/Abp/Reflection/ReflectionHelper.cs
{ "start": 2938, "end": 4123 }
class ____ and it's declaring type including inherited attributes. /// </summary> /// <typeparam name="TAttribute">Type of the attribute</typeparam> /// <param name="memberInfo">MemberInfo</param> /// <param name="inherit">Inherit attribute from base classes</param> public stati...
member
csharp
ServiceStack__ServiceStack
ServiceStack/src/ServiceStack.Interfaces/IApiKey.cs
{ "start": 145, "end": 538 }
public interface ____ : IMeta { string Key { get; } string? Environment { get; } string? UserAuthId { get; } DateTime CreatedDate { get; } DateTime? ExpiryDate { get; } DateTime? CancelledDate { get; } int? RefId { get; } string RefIdStr { get; } bool HasScope(string scope); bool...
IApiKey
csharp
dotnet__efcore
src/EFCore.Relational/Metadata/Internal/TableMappingBaseComparer.cs
{ "start": 666, "end": 6502 }
public sealed class ____ : IEqualityComparer<ITableMappingBase>, IComparer<ITableMappingBase> { private TableMappingBaseComparer() { } /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards...
TableMappingBaseComparer
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/UIElementCollection.Android.cs
{ "start": 249, "end": 1903 }
public partial class ____ : IList<UIElement>, IEnumerable<UIElement> { private readonly BindableView _owner; public UIElementCollection(BindableView owner) { _owner = owner; } private int IndexOfCore(UIElement item) { return _owner.GetChildren().IndexOf(item); } private void InsertCore(int ind...
UIElementCollection
csharp
ServiceStack__ServiceStack
ServiceStack/tests/CheckWeb/Test.dtos.cs
{ "start": 6424, "end": 6573 }
public partial class ____ { public virtual ObjectDesign data { get; set; } } [Route("/code/object", "GET")]
ObjectDesignResponse
csharp
microsoft__semantic-kernel
dotnet/src/Agents/UnitTests/OpenAI/OpenAIAssistantAgentTests.cs
{ "start": 35938, "end": 36569 }
private sealed class ____ : AIFunction { public TestAIFunction(string name, string description = "") { this.Name = name; this.Description = description; } public override string Name { get; } public override string Description { get; } prote...
TestAIFunction
csharp
AvaloniaUI__Avalonia
src/Windows/Avalonia.Win32/WinRT/Composition/WinUiCompositionShared.cs
{ "start": 84, "end": 1505 }
internal class ____ : IDisposable { public ICompositor Compositor { get; } public ICompositor5 Compositor5 { get; } public ICompositorDesktopInterop DesktopInterop { get; } public ICompositionBrush BlurBrush { get; } public ICompositionBrush? MicaBrushLight { get; } public ICompositionBrush? Mic...
WinUiCompositionShared
csharp
microsoft__PowerToys
src/modules/peek/Peek.FilePreviewer/Controls/SpecialFolderPreview/SpecialFolderInformationalPreviewControl.xaml.cs
{ "start": 357, "end": 1536 }
partial class ____ : UserControl { public static readonly DependencyProperty SourceProperty = DependencyProperty.Register( nameof(Source), typeof(SpecialFolderPreviewData), typeof(SpecialFolderInformationalPreviewControl), new PropertyMetadata(null)); public SpecialFolderPrevie...
SpecialFolderInformationalPreviewControl
csharp
dotnetcore__FreeSql
FreeSql.Tests/FreeSql.Tests.Provider.Custom/PostgreSQL/PostgreSQLExpression/DateTimeTest.cs
{ "start": 170, "end": 311 }
public class ____ { ISelect<Topic> select => g.pgsql.Select<Topic>(); [Table(Name = "tb_topic111333")]
DateTimeTest
csharp
DuendeSoftware__IdentityServer
identity-server/hosts/UI/Main/Pages/Grants/ViewModel.cs
{ "start": 292, "end": 813 }
public class ____ { public string? ClientId { get; set; } public string? ClientName { get; set; } public string? ClientUrl { get; set; } public string? ClientLogoUrl { get; set; } public string? Description { get; set; } public DateTime Created { get; set; } public DateTime? Expires { get; s...
GrantViewModel
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Media.Core/TimedTextRubyReserve.cs
{ "start": 256, "end": 925 }
public enum ____ { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ None = 0, #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ Before = 1, #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TE...
TimedTextRubyReserve
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Bson/ObjectModel/BsonBinarySubType.cs
{ "start": 731, "end": 1985 }
public enum ____ { /// <summary> /// Binary data. /// </summary> Binary = 0x00, /// <summary> /// A function. /// </summary> Function = 0x01, /// <summary> /// Obsolete binary data subtype (use Binary instead). /// </summary> ...
BsonBinarySubType
csharp
atata-framework__atata
src/Atata/WebDriver/Builders/Driver/ChromiumDriverBuilder`3.cs
{ "start": 440, "end": 4191 }
public abstract class ____<TBuilder, TService, TOptions> : WebDriverBuilder<TBuilder, TService, TOptions> where TBuilder : ChromiumDriverBuilder<TBuilder, TService, TOptions> where TService : ChromiumDriverService where TOptions : ChromiumOptions, new() { protected ChromiumDriverBuilder(string alias...
ChromiumDriverBuilder
csharp
OrchardCMS__OrchardCore
test/OrchardCore.Tests/Modules/OrchardCore.Twitter/TwitterClientTests.cs
{ "start": 6989, "end": 7438 }
public class ____ : HttpMessageHandler { public virtual HttpResponseMessage Send(HttpRequestMessage request) { throw new NotImplementedException("Now we can setup this method with our mocking framework"); } protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, Syste...
FakeHttpMessageHandler
csharp
dotnetcore__FreeSql
FreeSql.Tests/FreeSql.Tests/ClickHouse/ClickhouseIssueTest.cs
{ "start": 229, "end": 4234 }
public class ____ { private readonly ITestOutputHelper _output; private static IFreeSql _fsql; public ClickhouseIssueTest(ITestOutputHelper output) { _output = output; _fsql = new FreeSqlBuilder().UseConnectionString(DataType.ClickHouse, ...
ClickhouseIssueTest
csharp
unoplatform__uno
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml.Controls.Primitives/ButtonBase.cs
{ "start": 272, "end": 2675 }
public partial class ____ : global::Microsoft.UI.Xaml.Controls.ContentControl { // Skipping already declared property CommandParameter // Skipping already declared property Command // Skipping already declared property ClickMode // Skipping already declared property IsPointerOver // Skipping already declared...
ButtonBase
csharp
dotnetcore__FreeSql
Providers/FreeSql.Provider.Sqlite/Curd/SqliteSelect.cs
{ "start": 22741, "end": 23308 }
class ____ T13 : class { public SqliteSelect(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression, object dywhere) : base(orm, commonUtils, commonExpression, dywhere) { } public override string ToSql(string field = null) => SqliteSelect<T1>.ToSqlStatic(_commonUtils, _commonExpres...
where
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 1887178, "end": 1889535 }
public partial class ____ : global::System.IEquatable<OnSchemaVersionValidationUpdated_OnSchemaVersionValidationUpdate_OperationInProgress>, IOnSchemaVersionValidationUpdated_OnSchemaVersionValidationUpdate_OperationInProgress { public OnSchemaVersionValidationUpdated_OnSchemaVersionValidationUpdate_Operati...
OnSchemaVersionValidationUpdated_OnSchemaVersionValidationUpdate_OperationInProgress
csharp
dotnet__efcore
test/EFCore.Tests/Infrastructure/ModelValidatorTestBase.cs
{ "start": 11214, "end": 11393 }
protected class ____ { public int BlogOwnedEntityId { get; set; } public int BlogId { get; set; } public Blog Blog { get; set; } }
BlogOwnedEntity
csharp
atata-framework__atata
src/Atata/ScopeSearch/Strategies/FindLastDescendantStrategy.cs
{ "start": 19, "end": 273 }
public class ____ : XPathComponentScopeFindStrategy { protected override string Build(ComponentScopeXPathBuilder builder, ComponentScopeFindOptions options) => builder.Wrap(x => x.OuterXPath.ComponentXPath)["last()"]; }
FindLastDescendantStrategy
csharp
simplcommerce__SimplCommerce
src/Modules/SimplCommerce.Module.ActivityLog/Models/Activity.cs
{ "start": 160, "end": 597 }
public class ____ : EntityBase { public long ActivityTypeId { get; set; } public ActivityType ActivityType { get; set; } public long UserId { get; set; } public DateTimeOffset CreatedOn { get; set; } public long EntityId { get; set; } [Required(ErrorMessage = "Th...
Activity
csharp
dotnet__reactive
Ix.NET/Source/System.Linq.Async/System/Linq/Operators/AppendPrepend.cs
{ "start": 4949, "end": 11115 }
private sealed class ____<TSource> : AppendPrependAsyncIterator<TSource> { private readonly TSource _item; private readonly bool _appending; private bool _hasEnumerator; public AppendPrepend1AsyncIterator(IAsyncEnumerable<TSource> source, TSource item, bool appe...
AppendPrepend1AsyncIterator
csharp
CommunityToolkit__Maui
samples/CommunityToolkit.Maui.Sample/ViewModels/Converters/InvertedBoolConverterViewModel.cs
{ "start": 109, "end": 247 }
public partial class ____ : BaseViewModel { [ObservableProperty] public partial bool IsToggled { get; set; } }
InvertedBoolConverterViewModel
csharp
dotnet__orleans
src/api/Orleans.Streaming/Orleans.Streaming.cs
{ "start": 43371, "end": 43586 }
partial class ____ { [Id(0)] public GeneratedEventType EventType { get { throw null; } set { } } [Id(1)] public int[] Payload { get { throw null; } set { } }
GeneratedEvent
csharp
dotnet__maui
src/TestUtils/src/Microsoft.Maui.IntegrationTests/Utilities/Categories.cs
{ "start": 45, "end": 667 }
static class ____ { // this is a special job that runs on the samples public const string Samples = nameof(Samples); // these are special run on "device" jobs public const string RunOnAndroid = nameof(RunOnAndroid); public const string RunOniOS = nameof(RunOniOS); // these are normal jobs public const string W...
Categories
csharp
dotnet__maui
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue27519.cs
{ "start": 197, "end": 647 }
public class ____ : _IssuesUITest { public Issue27519(TestDevice testDevice) : base(testDevice) { } public override string Issue => "When opening the Picker, the first item is selected instead of the currently selected item"; [Test] [Category(UITestCategories.Picker)] public void CorrectItemShouldBeSel...
Issue27519
csharp
OrchardCMS__OrchardCore
src/OrchardCore.Modules/OrchardCore.Search.AzureAI/Drivers/AzureAISearchIndexDeploymentStepDriver.cs
{ "start": 285, "end": 2010 }
public sealed class ____ : DisplayDriver<DeploymentStep, AzureAISearchIndexDeploymentStep> { private readonly IIndexProfileStore _store; public AzureAISearchIndexDeploymentStepDriver(IIndexProfileStore store) { _store = store; } public override Task<IDisplayResult> DisplayAsync(AzureAISearc...
AzureAISearchIndexDeploymentStepDriver
csharp
protobuf-net__protobuf-net
src/Examples/SetTests.cs
{ "start": 3640, "end": 6708 }
class ____ { public NotEmptySetData() => Data = new HashSet<int>(new[] { 1 }); public NotEmptySetData(ISet<int> data) => Data = data; [ProtoMember(1)] public ISet<int> Data { get; } } [Fact] public void TestEmptyNestedSetWithStrings() ...
NotEmptySetData
csharp
dotnet__reactive
Ix.NET/Source/System.Linq.Async/System/Linq/Operators/DefaultIfEmpty.cs
{ "start": 449, "end": 2614 }
partial class ____ #endif { #if INCLUDE_SYSTEM_LINQ_ASYNCENUMERABLE_DUPLICATES /// <summary> /// Returns the elements of the specified sequence or the type parameter's default value in a singleton sequence if the sequence is empty. /// </summary> /// <typeparam name="TSource">The ty...
AsyncEnumerable
csharp
JoshClose__CsvHelper
tests/CsvHelper.Tests/Mappings/ConstructorParameter/CultureInfoAttributeTests.cs
{ "start": 3731, "end": 4071 }
private class ____ { public int Id { get; private set; } public decimal Amount1 { get; private set; } public decimal Amount2 { get; private set; } public Foo(int id, [CultureInfo("fr-FR")] decimal amount1, decimal amount2) { Id = id; Amount1 = amount1; Amount2 = amount2; } } [Cul...
Foo
csharp
dotnet__BenchmarkDotNet
tests/BenchmarkDotNet.Tests/TypeFilterTests.cs
{ "start": 9104, "end": 9462 }
public class ____ { // None of these methods are actually Benchmarks!! [UsedImplicitly] public void Method1() { } [UsedImplicitly] public void Method2() { } [UsedImplicitly] public void Method3() { } } [GenericTypeArguments(typeof(int))] [Generi...
ClassC
csharp
ChilliCream__graphql-platform
src/StrawberryShake/Client/src/Core/OperationRequest.cs
{ "start": 288, "end": 7702 }
public sealed class ____ : IEquatable<OperationRequest> { private Dictionary<string, object?>? _extensions; private Dictionary<string, object?>? _contextData; private string? _hash; /// <summary> /// Creates a new instance of <see cref="OperationRequest"/>. /// </summary> /// <param name="n...
OperationRequest
csharp
Testably__Testably.Abstractions
Source/Testably.Abstractions.Interface/IRandomSystem.cs
{ "start": 170, "end": 431 }
public interface ____ { /// <summary> /// Abstractions for <see cref="System.Guid" />. /// </summary> IGuid Guid { get; } /// <summary> /// Abstractions for <see cref="System.Random" />. /// </summary> IRandomFactory Random { get; } }
IRandomSystem
csharp
icsharpcode__ILSpy
ICSharpCode.Decompiler/TypeSystem/ITypeDefinitionOrUnknown.cs
{ "start": 1251, "end": 1351 }
record ____ unknown type. /// For partial classes, this represents the whole class. /// </summary>
or
csharp
dotnet__aspnetcore
src/Http/Http.Abstractions/src/HttpResults/IResult.cs
{ "start": 276, "end": 627 }
public interface ____ { /// <summary> /// Write an HTTP response reflecting the result. /// </summary> /// <param name="httpContext">The <see cref="HttpContext"/> for the current request.</param> /// <returns>A task that represents the asynchronous execute operation.</returns> Task ExecuteAsync(...
IResult
csharp
Xabaril__AspNetCore.Diagnostics.HealthChecks
test/HealthChecks.Publisher.Seq.Tests/DependencyInjection/RegistrationTests.cs
{ "start": 69, "end": 710 }
public class ____ { [Fact] public void add_healthcheck_when_properly_configured() { var services = new ServiceCollection(); services .AddHealthChecks() .AddSeqPublisher(setup => { setup.Endpoint = "endpoint"; setup.DefaultIn...
seq_publisher_registration_should
csharp
JamesNK__Newtonsoft.Json
Src/Newtonsoft.Json/Utilities/DynamicUtils.cs
{ "start": 1674, "end": 8024 }
internal static class ____ { #if !HAVE_REFLECTION_BINDER public const string CSharpAssemblyName = "Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"; private const string BinderTypeName = "Microsoft.CSharp.RuntimeBinder.Binder, " + CSharpAssemblyName; ...
BinderWrapper
csharp
nunit__nunit
src/NUnitFramework/tests/Constraints/DictionaryContainsKeyConstraintTests.cs
{ "start": 11555, "end": 13272 }
public class ____ : IDictionary { private readonly int _key; public TestNonGenericDictionary(int key) { _key = key; } public bool Contains(object key) { return _key == (int)key; } p...
TestNonGenericDictionary
csharp
dotnet__aspnetcore
src/Security/CookiePolicy/test/CookieConsentTests.cs
{ "start": 536, "end": 26803 }
public class ____ { [Fact] public async Task ConsentChecksOffByDefault() { var httpContext = await RunTestAsync(options => { }, requestContext => { }, context => { var feature = context.Features.Get<ITrackingConsentFeature>(); Assert.False(feature.IsConsentNeeded); ...
CookieConsentTests
csharp
ServiceStack__ServiceStack
ServiceStack/tests/CheckWeb/AutoQueryCrudModels.cs
{ "start": 17999, "end": 18175 }
public class ____ : RockstarBase, IUpdateDb<NamedRockstar>, IReturn<RockstarWithIdAndResultResponse> { public int Id { get; set; } } }
UpdateConnectionInfoRockstar
csharp
nopSolutions__nopCommerce
src/Libraries/Nop.Data/Mapping/Builders/Topics/TopicTemplateBuilder.cs
{ "start": 197, "end": 715 }
public partial class ____ : NopEntityBuilder<TopicTemplate> { #region Methods /// <summary> /// Apply entity configuration /// </summary> /// <param name="table">Create table expression builder</param> public override void MapEntity(CreateTableExpressionBuilder table) { table ...
TopicTemplateBuilder
csharp
unoplatform__uno
src/SamplesApp/UITests.Shared/Windows_UI_Input/GestureRecognizerTests/TappedTest.xaml.cs
{ "start": 294, "end": 1030 }
partial class ____ : Page { public TappedTest() { this.InitializeComponent(); } private void TargetTapped(object sender, TappedRoutedEventArgs e) { var target = (FrameworkElement)sender; var position = e.GetPosition(target).LogicalToPhysicalPixels(); LastTapped.Text = FormattableString.Invaria...
TappedTest
csharp
duplicati__duplicati
Duplicati/Library/Backend/OneDrive/MicrosoftGraphTypes.cs
{ "start": 12846, "end": 13032 }
public class ____ { [JsonProperty("remoteItem", NullValueHandling = NullValueHandling.Ignore)] public RemoteItemFacet? RemoteItem { get; set; } }
RemoteItemFacet
csharp
jellyfin__jellyfin
src/Jellyfin.Drawing/ImageProcessor.cs
{ "start": 848, "end": 17272 }
public sealed class ____ : IImageProcessor, IDisposable { // Increment this when there's a change requiring caches to be invalidated private const char Version = '3'; private static readonly HashSet<string> _transparentImageTypes = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { ".png", ".w...
ImageProcessor
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Core/test/ModelBinding/ParameterBinderTest.cs
{ "start": 32680, "end": 32771 }
private class ____ { public BaseModel Model { get; set; } }
TestController
csharp
unoplatform__uno
src/SamplesApp/SamplesApp.UITests/TestFramework/TestFrameworkTests.cs
{ "start": 961, "end": 1353 }
public partial class ____ { static int Setup_Count = 0; [SetUp] public void Setup() { Console.WriteLine($"Setup: {++Setup_Count}"); if (Setup_Count < AutoRetryAttribute.AutoRetryDefaultCount) { throw new NotImplementedException(); } } [Test] [AutoRetry] public void When_Success() {...
RetrySetup
csharp
dotnet__machinelearning
src/Microsoft.ML.Data/Model/Pfa/ICanSavePfa.cs
{ "start": 347, "end": 1017 }
internal interface ____ { /// <summary> /// Whether this object really is capable of saving itself as part of a PFA /// pipeline. An implementor of this object might implement this interface, /// but still return <c>false</c> if there is some characteristic of this object ///...
ICanSavePfa
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 152051, "end": 152268 }
public class ____ { public int Id { get; set; } public RelatedEntity701 ParentEntity { get; set; } public IEnumerable<RelatedEntity703> ChildEntities { get; set; } }
RelatedEntity702
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/Support/GithubGateway.cs
{ "start": 3013, "end": 3517 }
public class ____ { public string Id { get; set; } public string Message { get; set; } public DateTime Date { get; set; } public string Name { get; set; } public int Comment_Count { get; set; } public GithubByUser Committer { get; set; } public GithubByUser Au...
GithubCommit
csharp
FastEndpoints__FastEndpoints
Src/Library/Messaging/Jobs/PendingJobSearchParams.cs
{ "start": 246, "end": 1180 }
public struct ____<TStorageRecord> where TStorageRecord : IJobStorageRecord { /// <summary> /// the ID of the job queue for fetching the next batch of records for. /// </summary> public string QueueID { get; internal set; } /// <summary> /// a boolean lambda expression to match the next batch o...
PendingJobSearchParams
csharp
MonoGame__MonoGame
MonoGame.Framework/Graphics/SpriteFont.cs
{ "start": 517, "end": 1154 }
internal static class ____ { public const string TextContainsUnresolvableCharacters = "Text contains characters that cannot be resolved by this SpriteFont."; public const string UnresolvableCharacter = "Character cannot be resolved by this SpriteFont."; } private readonly Glyph[] _glyp...
Errors
csharp
simplcommerce__SimplCommerce
src/Modules/SimplCommerce.Module.Tax/Data/TaxCustomModelBuilder.cs
{ "start": 205, "end": 641 }
public class ____ : ICustomModelBuilder { public void Build(ModelBuilder modelBuilder) { modelBuilder.Entity<TaxClass>().HasData(new TaxClass(1) { Name = "Standard VAT" }); modelBuilder.Entity<AppSetting>().HasData( new AppSetting("Tax.DefaultTaxClassId") { M...
TaxCustomModelBuilder
csharp
ShareX__ShareX
ShareX/WatchFolderManager.cs
{ "start": 1151, "end": 5428 }
public class ____ : IDisposable { public List<WatchFolder> WatchFolders { get; private set; } public void UpdateWatchFolders() { if (WatchFolders != null) { UnregisterAllWatchFolders(); } WatchFolders = new List<WatchFolder>()...
WatchFolderManager
csharp
icsharpcode__SharpZipLib
src/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterEngine.cs
{ "start": 1415, "end": 24726 }
public class ____ { #region Constants private const int TooFar = 4096; #endregion Constants #region Constructors /// <summary> /// Construct instance with pending buffer /// Adler calculation will be performed /// </summary> /// <param name="pending"> /// Pending buffer to use /// </param> ...
DeflaterEngine
csharp
files-community__Files
src/Files.App.CsWin32/IStorageProviderStatusUISourceFactory.cs
{ "start": 201, "end": 531 }
partial struct ____ : IComIID { [GeneratedVTableFunction(Index = 6)] public partial HRESULT GetStatusUISource(nint syncRootId, IStorageProviderStatusUISource** result); [GuidRVAGen.Guid("12E46B74-4E5A-58D1-A62F-0376E8EE7DD8")] public static partial ref readonly Guid Guid { get; } } }
IStorageProviderStatusUISourceFactory
csharp
abpframework__abp
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Building/TemplateProjectBuildPipelineBuilder.cs
{ "start": 306, "end": 2708 }
public static class ____ { public static ProjectBuildPipeline Build(ProjectBuildContext context) { var pipeline = new ProjectBuildPipeline(context); pipeline.Steps.Add(new FileEntryListReadStep()); if (SemanticVersion.Parse(context.TemplateFile.Version) > new SemanticVersion(4, 3, 99))...
TemplateProjectBuildPipelineBuilder
csharp
bitwarden__server
util/PostgresMigrations/Migrations/20240723011507_DropOrganizationFlexibleCollections.Designer.cs
{ "start": 525, "end": 104027 }
partial class ____ { /// <inheritdoc /> protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Npgsql:CollationDefinition:postgresIndetermanisticCollation", "en-u-ks-primary,en-u-ks-prima...
DropOrganizationFlexibleCollections
csharp
SixLabors__ImageSharp
src/ImageSharp/PixelFormats/PixelBlenders/DefaultPixelBlenders.Generated.cs
{ "start": 49835, "end": 55295 }
public class ____ : PixelBlender<TPixel> { /// <summary> /// Gets the static instance of this blender. /// </summary> public static NormalSrcAtop Instance { get; } = new NormalSrcAtop(); /// <inheritdoc /> public override TPixel Blend(TPixel background, TPixel source...
NormalSrcAtop
csharp
grandnode__grandnode2
src/Web/Grand.Web.Admin/Models/Orders/OrderModel.cs
{ "start": 12846, "end": 13964 }
public class ____ : BaseModel { [GrandResourceDisplayName("Admin.Catalog.Products.List.SearchProductName")] public string SearchProductName { get; set; } [UIHint("Category")] [GrandResourceDisplayName("Admin.Catalog.Products.List.SearchCategory")] public string SearchCategor...
AddOrderProductModel
csharp
MassTransit__MassTransit
tests/MassTransit.RabbitMqTransport.Tests/RabbitMqAddress_Specs.cs
{ "start": 11403, "end": 12172 }
public class ____ { [Test] public void TheHost() { Assert.That(_hostSettings.VirtualHost, Is.EqualTo("/")); } [Test] public void TheQueue() { Assert.That(_receiveSettings.QueueName, Is.EqualTo("the_queue")); } readonly...
GivenANonVHostAddress
csharp
dotnet__maui
src/Controls/src/Core/Cells/SwitchCell.cs
{ "start": 328, "end": 1946 }
public class ____ : Cell { /// <summary>Bindable property for <see cref="On"/>.</summary> public static readonly BindableProperty OnProperty = BindableProperty.Create(nameof(On), typeof(bool), typeof(SwitchCell), false, propertyChanged: (obj, oldValue, newValue) => { var switchCell = (SwitchCell)obj; switc...
SwitchCell
csharp
ChilliCream__graphql-platform
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/SchemaSyntaxPrinterTests.cs
{ "start": 8977, "end": 9378 }
interface ____ implements X & Y & Z " + "{ bar: String baz: [Int] }"; var document = Utf8GraphQLParser.Parse(schema); // act var result = document.ToString(); // assert result.MatchSnapshot(); } [Fact] public void Serialize_InterfaceTypeExtensionDef_InO...
Foo
csharp
dotnet__aspire
src/Aspire.AppHost.Sdk/Aspire.RuntimeIdentifier.Tool/NuGetUtils.cs
{ "start": 573, "end": 2143 }
internal static class ____ { public static string? GetBestMatchingRid(RuntimeGraph runtimeGraph, string runtimeIdentifier, IEnumerable<string> availableRuntimeIdentifiers, out bool wasInGraph) { return GetBestMatchingRidWithExclusion(runtimeGraph, runtimeIdentifier, runtimeIdenti...
NuGetUtils
csharp
dotnet__efcore
src/EFCore/Query/Internal/NavigationExpandingExpressionVisitor.ExpressionVisitors.cs
{ "start": 58216, "end": 64163 }
private sealed class ____(IDiagnosticsLogger<DbLoggerCategory.Query> logger) : ExpressionVisitor { protected override Expression VisitBinary(BinaryExpression binaryExpression) => binaryExpression.NodeType is ExpressionType.Equal or ExpressionType.NotEqual && TryRemoveNavi...
RemoveRedundantNavigationComparisonExpressionVisitor
csharp
FoundatioFx__Foundatio
src/Foundatio/Utility/IHaveLogger.cs
{ "start": 262, "end": 702 }
public static class ____ { public static ILogger GetLogger(this object target) { return target is IHaveLogger accessor ? accessor.Logger ?? NullLogger.Instance : NullLogger.Instance; } public static ILoggerFactory GetLoggerFactory(this object target) { return target is IHaveLoggerFa...
LoggerExtensions
csharp
cake-build__cake
src/Cake.Common.Tests/Unit/Text/TextTransformationExtensionsTests.cs
{ "start": 1522, "end": 2309 }
public sealed class ____ { [Fact] public void Should_Register_The_Provided_Tokens_With_The_Template() { // Given var context = Substitute.For<ICakeContext>(); var transformation = TextTransformationAliases.TransformText( ...
TheWithTokensMethod
csharp
abpframework__abp
framework/test/Volo.Abp.Json.Tests/Volo/Abp/Json/AbpJsonTestBase.cs
{ "start": 183, "end": 435 }
public abstract class ____ : AbpIntegratedTest<AbpJsonSystemTextJsonTestModule> { protected override void SetAbpApplicationCreationOptions(AbpApplicationCreationOptions options) { options.UseAutofac(); } }
AbpJsonSystemTextJsonTestBase
csharp
getsentry__sentry-dotnet
test/Sentry.AspNetCore.Grpc.Tests/FakeSentryGrpcServer.cs
{ "start": 451, "end": 1191 }
class ____ TResponse : class { var builder = new WebHostBuilder() .ConfigureServices(services => { services.AddGrpc(options => { options.Interceptors.Add<SentryGrpcTestInterceptor>(); }); for...
where