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.UWP/Generated/3.0.0.0/Windows.Web.Http/HttpProgress.cs
{ "start": 291, "end": 1285 }
public partial struct ____ { // Forced skipping of method Windows.Web.Http.HttpProgress.HttpProgress() #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ public global::Windows.Web.Http.HttpProgressStage Stage; #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS...
HttpProgress
csharp
AutoMapper__AutoMapper
src/UnitTests/Bug/NestedMappingProjectionsExplicitExpanding.cs
{ "start": 410, "end": 480 }
public class ____ { public Man Man { get; set; } }
Fu
csharp
EventStore__EventStore
src/Connectors/KurrentDB.Connectors/Planes/Control/ConnectorsActivator.cs
{ "start": 11870, "end": 12029 }
record ____ Activated : IActivationResult { public Exception? Error => null; public bool Success => true; } public readonly
struct
csharp
dotnet__aspnetcore
src/Validation/test/Microsoft.Extensions.Validation.GeneratorTests/ValidationsGenerator.ComplexType.cs
{ "start": 21374, "end": 21501 }
private class ____ { [Required] public string RequiredProperty { get; set; } = ""; }
PrivateNestedType
csharp
dotnet__machinelearning
src/Microsoft.ML.ImageAnalytics/VectorToImageTransform.cs
{ "start": 5012, "end": 17675 }
internal class ____ : TransformInputBase { [Argument(ArgumentType.Multiple | ArgumentType.Required, HelpText = "New column definition(s) (optional form: name:src)", Name = "Column", ShortName = "col", SortOrder = 1)] public Column[] Columns; [Argument(ArgumentType.AtMostOnce...
Options
csharp
dotnet__efcore
test/EFCore.Relational.Specification.Tests/Query/NonSharedPrimitiveCollectionsQueryRelationalTestBase.cs
{ "start": 10229, "end": 10365 }
protected class ____ { public int Id { get; set; } public TestOwned Owned { get; set; } } [Owned]
TestOwner
csharp
dotnet__machinelearning
src/Microsoft.ML.StandardTrainers/Optimizer/Optimizer.cs
{ "start": 3532, "end": 4283 }
public abstract class ____ : Exception { /// <summary> /// The state of the optimizer when premature convergence happened. /// </summary> public OptimizerState State { get; } internal OptimizerException(OptimizerState state, string message) ...
OptimizerException
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver/DensifyRange.cs
{ "start": 15590, "end": 16386 }
public enum ____ { /// <summary> /// Milliseconds. /// </summary> Milliseconds = 1, /// <summary> /// Seconds. /// </summary> Seconds, /// <summary> /// Minutes. /// </summary> Minutes, /// <summary> /...
DensifyDateTimeUnit
csharp
microsoft__semantic-kernel
dotnet/src/Experimental/Process.Core/Workflow/WorkflowBuilder.cs
{ "start": 565, "end": 6704 }
internal class ____ { private readonly Dictionary<string, ProcessStepBuilder> _stepBuilders = []; private readonly Dictionary<string, CloudEvent> _inputEvents = []; private string? _yaml; /// <summary> /// Builds a process from a workflow definition. /// </summary> /// <param name="workflow...
WorkflowBuilder
csharp
dotnet__maui
src/Controls/src/Core/Compatibility/Handlers/ListView/Android/EntryCellView.cs
{ "start": 407, "end": 4447 }
public sealed class ____ : LinearLayout, ITextWatcher, global::Android.Views.View.IOnFocusChangeListener, TextView.IOnEditorActionListener, INativeElementView { public const double DefaultMinHeight = 55; #pragma warning disable CS0618 // Type or member is obsolete readonly Cell _cell; #pragma warning restore CS06...
EntryCellView
csharp
dotnet__maui
src/Controls/src/Core/Platform/AlertManager/AlertManager.cs
{ "start": 1933, "end": 2331 }
internal interface ____ { void OnActionSheetRequested(Page sender, ActionSheetArguments arguments); void OnAlertRequested(Page sender, AlertArguments arguments); void OnPromptRequested(Page sender, PromptArguments arguments); [Obsolete("This method is obsolete in .NET 10 and will be removed in .NET11."...
IAlertManagerSubscription
csharp
dotnet__machinelearning
src/Microsoft.ML.FastTree/Training/BaggingProvider.cs
{ "start": 267, "end": 3265 }
internal class ____ { protected Dataset CompleteTrainingSet; protected DocumentPartitioning CurrentTrainPartition; protected DocumentPartitioning CurrentOutOfBagPartition; protected Random RndGenerator; protected int MaxLeaves; protected double TrainFraction; ...
BaggingProvider
csharp
getsentry__sentry-dotnet
src/Sentry/SentryGraphQLHttpFailedRequestHandler.cs
{ "start": 100, "end": 3849 }
internal class ____ : SentryFailedRequestHandler { private readonly IHub _hub; private readonly SentryOptions _options; internal const string MechanismType = "GraphqlInstrumentation"; private readonly SentryHttpFailedRequestHandler _httpFailedRequestHandler; internal SentryGraphQLHttpFailedRequestH...
SentryGraphQLHttpFailedRequestHandler
csharp
CommunityToolkit__WindowsCommunityToolkit
Microsoft.Toolkit.Uwp.UI.Animations/Expressions/ReferenceNodes/ManipulationPropertySetReferenceNode.cs
{ "start": 369, "end": 520 }
class ____ be inherited. /// </summary> /// <seealso cref="Microsoft.Toolkit.Uwp.UI.Animations.Expressions.PropertySetReferenceNode" />
cannot
csharp
unoplatform__uno
src/Uno.UI.RemoteControl.Server.Processors/HotReload/MetadataUpdates/WatchHotReloadService.cs
{ "start": 407, "end": 685 }
public class ____ { private Func<Solution, CancellationToken, Task>? _startSessionAsync; private Func<Solution, CancellationToken, Task<ITuple>>? _emitSolutionUpdateAsync; private Action? _endSession; private object? _targetInstance; public readonly
WatchHotReloadService
csharp
nuke-build__nuke
source/Nuke.Components/IReportIssues.cs
{ "start": 601, "end": 5940 }
public interface ____ : IRestore, IHazReports { AbsolutePath InspectCodeReportFile => ReportDirectory / "inspect-code.xml"; Target ReportIssues => _ => _ .DependsOn(Restore) .TryAfter<ITest>() .Executes(() => { ReSharperInspectCode(_ => _ .Apply(Inspe...
IReportIssues
csharp
icsharpcode__ILSpy
ILSpy/Util/MessageBus.cs
{ "start": 2616, "end": 2733 }
public class ____(PropertyChangedEventArgs e) : WrappedEventArgs<PropertyChangedEventArgs>(e);
SettingsChangedEventArgs
csharp
unoplatform__uno
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/ImplementedRoutedEventsGeneratorTests/Given_ImplementedRoutedEventsGenerator.cs
{ "start": 1177, "end": 1285 }
public partial class ____ : Control { } "; const string expectedCode = @"// <auto-generated>
MyAwesomeControl
csharp
cake-build__cake
src/Cake.Common/Tools/NuGet/Push/NuGetPushSettings.cs
{ "start": 408, "end": 2624 }
public sealed class ____ : ToolSettings { /// <summary> /// Gets or sets the server URL. /// When using NuGet pre 3.4.2, this value is optional /// and nuget.org is used if omitted (unless DefaultPushSource /// config value is set in the NuGet config file. /// When us...
NuGetPushSettings
csharp
aspnetboilerplate__aspnetboilerplate
test/aspnet-core-demo/AbpAspNetCoreDemo/Pages/ResultFilterPageDemo.cshtml.cs
{ "start": 131, "end": 351 }
public class ____ : AbpPageModel { public IActionResult OnGet() { return Content("OnGet"); } public JsonResult OnPost() { return new JsonResult("OnPost"); } }
ResultFilterPageDemoModel
csharp
AutoFixture__AutoFixture
Src/AutoFixtureUnitTest/TaggedNode.cs
{ "start": 117, "end": 548 }
public class ____ : CompositeSpecimenBuilder { public TaggedNode(object tag, params ISpecimenBuilder[] builders) : base(builders) { this.Tag = tag; } public override ISpecimenBuilderNode Compose(IEnumerable<ISpecimenBuilder> builders) { re...
TaggedNode
csharp
getsentry__sentry-dotnet
test/Sentry.AspNetCore.Tests/IntegrationMockedBackgroundWorker.cs
{ "start": 564, "end": 10872 }
public class ____ : SentrySdkTestFixture { private IBackgroundWorker Worker { get; set; } = Substitute.For<IBackgroundWorker>(); protected Action<SentryAspNetCoreOptions> Configure; public IntegrationMockedBackgroundWorker(ITestOutputHelper output) { ConfigureWebHost = builder => { ...
IntegrationMockedBackgroundWorker
csharp
dotnet__aspire
src/Aspire.Hosting.Maui/MauiWindowsExtensions.cs
{ "start": 348, "end": 4357 }
public static class ____ { /// <summary> /// Adds a Windows device resource to run the MAUI application on the Windows platform. /// </summary> /// <param name="builder">The MAUI project resource builder.</param> /// <returns>A reference to the <see cref="IResourceBuilder{T}"/>.</returns> /// <r...
MauiWindowsExtensions
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/VisualTree/IHostedVisualTreeRoot.cs
{ "start": 166, "end": 408 }
public interface ____ { /// <summary> /// Gets the visual tree host. /// </summary> /// <value> /// The visual tree host. /// </value> Visual? Host { get; } } }
IHostedVisualTreeRoot
csharp
abpframework__abp
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Card/AbpCardBackgroundTagHelperService.cs
{ "start": 194, "end": 738 }
public class ____ : AbpTagHelperService<AbpCardBackgroundTagHelper> { public override void Process(TagHelperContext context, TagHelperOutput output) { SetBackground(context, output); } protected virtual void SetBackground(TagHelperContext context, TagHelperOutput output) { if (TagHe...
AbpCardBackgroundTagHelperService
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Controls/Popup/Popup.Base.cs
{ "start": 5647, "end": 7314 }
internal interface ____ { /// <summary> /// Measure the content of the popup /// </summary> /// <param name="available">The available size to place to render the popup. This is expected to be the screen size.</param> /// <param name="visibleSize">The size of the visible bounds of the window. This is expected...
IDynamicPopupLayouter
csharp
dotnet__extensions
src/Libraries/Microsoft.Extensions.Http.Resilience/Resilience/ResilienceHttpClientBuilderExtensions.StandardResilience.cs
{ "start": 5045, "end": 5199 }
private sealed record ____(string PipelineName, IServiceCollection Services) : IHttpStandardResiliencePipelineBuilder; }
HttpStandardResiliencePipelineBuilder
csharp
grpc__grpc-dotnet
examples/Liber/Common/Name.cs
{ "start": 754, "end": 1297 }
public partial class ____ { public static Name Parse(string name) { var parts = name.Split(' '); if (parts.Length != 3) { throw new ArgumentException("Name must have three parts."); } return new Name { ...
Name
csharp
nopSolutions__nopCommerce
src/Presentation/Nop.Web/Models/Catalog/VendorProductReviewsListModel.cs
{ "start": 69, "end": 427 }
public partial record ____ : BaseNopModel { public int VendorId { get; set; } public string VendorName { get; set; } public string VendorUrl { get; set; } public VendorReviewsPagingFilteringModel PagingFilteringContext { get; set; } = new(); public List<VendorProductReviewModel> Reviews { get; set; ...
VendorProductReviewsListModel
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/test/Types.Analyzers.Tests/ExtendObjectTypeAnalyzerTests.cs
{ "start": 1807, "end": 2062 }
partial class ____ { public static string GetDisplayName(Product product) => $"{product.Name} (ID: {product.Id})"; } [ExtendObjectType<Brand>] public static
ProductExtensions
csharp
dotnet__maui
src/Controls/tests/SourceGen.UnitTests/InitializeComponent/XStaticUnresolvedType.cs
{ "start": 5068, "end": 5924 }
public static class ____ { public static string AppName => "TestApp"; } } """; var testXamlFilePath = Path.Combine(Environment.CurrentDirectory, "Test.xaml"); var expected = $$""" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated...
AppConstants
csharp
nopSolutions__nopCommerce
src/Libraries/Nop.Services/Media/RoxyFileman/RoxyFilemanException.cs
{ "start": 213, "end": 2290 }
public partial class ____ : Exception { #region Fields protected static Dictionary<string, string> _languageResources; #endregion #region Ctor private RoxyFilemanException() : base() { } /// <summary> /// Initializes a new instance of the RoxyFilemanException /// </summary> ...
RoxyFilemanException
csharp
nunit__nunit
src/NUnitFramework/tests/Assertions/AssertThrowsTests.cs
{ "start": 249, "end": 7472 }
public class ____ { [Test] public void ThrowsSucceedsWithDelegate() { Assert.Throws(typeof(ArgumentException), delegate { throw new ArgumentException(); }); } [Test] public void AssertThrowsDoesNotDiscardOutput() { Console.WriteLine(1)...
AssertThrowsTests
csharp
dotnet__machinelearning
src/Microsoft.ML.Data/Commands/SavePredictorCommand.cs
{ "start": 814, "end": 882 }
internal sealed class ____ : ICommand {
SavePredictorCommand
csharp
aspnetboilerplate__aspnetboilerplate
src/Abp.EntityFrameworkCore/EntityFrameworkCore/AbpEntityFrameworkCoreModule.cs
{ "start": 1891, "end": 2832 }
class ____ derived from AbpDbContext."); return; } using (IScopedIocResolver scope = IocManager.CreateScope()) { foreach (var dbContextType in dbContextTypes) { Logger.Debug("Registering DbContext: " + dbContextType.AssemblyQualifiedName); ...
found
csharp
pythonnet__pythonnet
src/runtime/PythonEngine.cs
{ "start": 23816, "end": 23941 }
public enum ____ : int { Single = 256, File = 257, /* Py_file_input */ Eval = 258 } }
RunFlagType
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.Driver.Tests/MongoServerAddressTests.cs
{ "start": 673, "end": 4129 }
public class ____ { [Theory] [InlineData("host")] [InlineData("192.168.0.1")] [InlineData("[2001:0db8:85a3:0042:0000:8a2e:0370:7334]")] public void TestConstructor_with_host(string host) { var address = new MongoServerAddress(host); Assert.Equa...
MongoServerAddressTests
csharp
App-vNext__Polly
src/Snippets/Docs/Hedging.cs
{ "start": 189, "end": 4845 }
internal static class ____ { public static void Usage() { #region hedging // Hedging with default options. // See https://www.pollydocs.org/strategies/hedging#defaults for defaults. var optionsDefaults = new HedgingStrategyOptions<HttpResponseMessage>(); // A customized...
Hedging
csharp
OrchardCMS__OrchardCore
src/OrchardCore/OrchardCore.ContentManagement.Display/Models/UpdatePartEditorContext.cs
{ "start": 157, "end": 391 }
public class ____ : BuildPartEditorContext { public UpdatePartEditorContext(ContentTypePartDefinition typePartDefinition, UpdateEditorContext context) : base(typePartDefinition, context) { } }
UpdatePartEditorContext
csharp
protobuf-net__protobuf-net
src/protobuf-net.Core/BufferPool.cs
{ "start": 88, "end": 1985 }
internal static class ____ { private static readonly ArrayPool<byte> _pool = ArrayPool<byte>.Shared; internal const int BUFFER_LENGTH = 1024; internal static byte[] GetBuffer() => GetBuffer(BUFFER_LENGTH); internal static byte[] GetBuffer(int minSize) { byte[] ...
BufferPool
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.OpenApi.Tests/GeneratedClient/Models/Authenticate.cs
{ "start": 429, "end": 4869 }
public partial class ____ { /// <summary> /// Initializes a new instance of the Authenticate class. /// </summary> public Authenticate() { CustomInit(); } /// <summary> /// Initializes a new instance of the Authenticate class. /// </...
Authenticate
csharp
RicoSuter__NSwag
src/NSwag.CodeGeneration.TypeScript.Tests/AngularTests.cs
{ "start": 433, "end": 873 }
public class ____ : Controller { [HttpPost] public void AddMessage([FromBody, Required] Foo message) { } [HttpPost] public void GenericRequestTest1(GenericRequest1 request) { } [HttpPost] p...
DiscussionController
csharp
OrchardCMS__OrchardCore
src/OrchardCore/OrchardCore.ContentManagement.GraphQL/Queries/Predicates/SimpleExpression.cs
{ "start": 414, "end": 1634 }
class ____ a named /// property and its value. /// </summary> /// <param name="propertyName">The name of the property.</param> /// <param name="value">The value for the property.</param> /// <param name="operation">The SQL operation.</param> public SimpleExpression(string propertyName, object va...
for
csharp
dotnet__orleans
src/Orleans.Core/Providers/StorageSerializer/JsonGrainStorageSerializer.cs
{ "start": 172, "end": 1025 }
public class ____ : IGrainStorageSerializer { private readonly OrleansJsonSerializer _orleansJsonSerializer; /// <summary> /// Initializes a new instance of the <see cref="JsonGrainStorageSerializer"/> class. /// </summary> public JsonGrainStorageSerializer(OrleansJsonSerial...
JsonGrainStorageSerializer
csharp
unoplatform__uno
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/ImageTests/Image_Margin_Large.xaml.cs
{ "start": 744, "end": 869 }
partial class ____ : UserControl { public Image_Margin_Large() { this.InitializeComponent(); } } }
Image_Margin_Large
csharp
smartstore__Smartstore
test/Smartstore.Tests/PathUtilityTests.cs
{ "start": 145, "end": 1868 }
public class ____ { private static readonly List<string[]> _pathCombiners = new() { new[] { "/some/path/left", "../right/path/", "/some/path/right/path/" }, new[] { "some/path/left", "../../right/path/", "some/right/path/" }, new[] { "/some/path/left", "right/path...
PathUtilityTests
csharp
RicoSuter__NJsonSchema
src/NJsonSchema.Tests/Generation/InheritanceTests.cs
{ "start": 12942, "end": 13199 }
public class ____ : Fruit { public string Bar { get; set; } } [JsonInheritance("a", typeof(Apple))] [JsonInheritance("o", typeof(Orange))] [JsonConverter(typeof(JsonInheritanceConverter), "k")]
Orange
csharp
dotnet__aspire
src/Aspire.Hosting/api/Aspire.Hosting.cs
{ "start": 124774, "end": 124925 }
partial record ____(string Name, object? Value) { public bool IsSensitive { get { throw null; } init { } } }
ResourcePropertySnapshot
csharp
bitwarden__server
src/Core/Tools/SendFeatures/Services/AzureSendFileStorageService.cs
{ "start": 331, "end": 4887 }
public class ____ : ISendFileStorageService { public const string FilesContainerName = "sendfiles"; private static readonly TimeSpan _downloadLinkLiveTime = TimeSpan.FromMinutes(1); private readonly BlobServiceClient _blobServiceClient; private readonly ILogger<AzureSendFileStorageService> _logger; ...
AzureSendFileStorageService
csharp
FoundatioFx__Foundatio
src/Foundatio/Resilience/IResiliencePolicy.cs
{ "start": 250, "end": 1647 }
public interface ____ { /// <summary> /// Executes the specified asynchronous action using the resilience policy. /// </summary> /// <param name="action">The asynchronous action to execute. The <see cref="CancellationToken"/> parameter allows the action to observe cancellation requests.</param> /// ...
IResiliencePolicy
csharp
bitwarden__server
src/Core/Repositories/Noop/InstallationDeviceRepository.cs
{ "start": 87, "end": 504 }
public class ____ : IInstallationDeviceRepository { public Task UpsertAsync(InstallationDeviceEntity entity) { return Task.FromResult(0); } public Task UpsertManyAsync(IList<InstallationDeviceEntity> entities) { return Task.FromResult(0); } public Task DeleteAsync(Installat...
InstallationDeviceRepository
csharp
CommunityToolkit__WindowsCommunityToolkit
Microsoft.Toolkit.Uwp.UI.Controls.Primitives/DockPanel/DockPanel.Properties.cs
{ "start": 435, "end": 3351 }
public partial class ____ { /// <summary> /// Gets or sets a value that indicates the position of a child element within a parent <see cref="DockPanel"/>. /// </summary> public static readonly DependencyProperty DockProperty = DependencyProperty.RegisterAttached( "Dock", ...
DockPanel
csharp
ServiceStack__ServiceStack
ServiceStack.Text/tests/ServiceStack.Text.Tests/JsonTests/BasicPropertiesTests.cs
{ "start": 6493, "end": 6912 }
public class ____ { public HashSet<string> Set { get; set; } } [Test] public void Can_deserialize_null_Nested_HashSet() { JsConfig.ThrowOnError = true; string json = @"{""set"":null}"; var o = json.FromJson<ModelWithHashSet>(); ...
ModelWithHashSet
csharp
dotnet__aspnetcore
src/SignalR/samples/SocialWeather/FormatterResolver.cs
{ "start": 164, "end": 1366 }
public class ____ { private readonly IServiceProvider _serviceProvider; private readonly Dictionary<string, Dictionary<Type, Type>> _formatters = new Dictionary<string, Dictionary<Type, Type>>(); public FormatterResolver(IServiceProvider serviceProvider) { _serviceProvider = servicePro...
FormatterResolver
csharp
abpframework__abp
framework/src/Volo.Abp.ObjectExtending/Volo/Abp/ObjectExtending/Modularity/ModuleExtensionConfiguration.cs
{ "start": 113, "end": 495 }
public class ____ { [NotNull] public EntityExtensionConfigurationDictionary Entities { get; } [NotNull] public Dictionary<string, object> Configuration { get; } public ModuleExtensionConfiguration() { Entities = new EntityExtensionConfigurationDictionary(); Configuration = new ...
ModuleExtensionConfiguration
csharp
dotnet__aspnetcore
src/Framework/AspNetCoreAnalyzers/test/Mvc/DetectAmbiguousActionRoutesTest.cs
{ "start": 13636, "end": 14011 }
internal class ____ { static void Main(string[] args) { } } "; // Act & Assert await VerifyCS.VerifyAnalyzerAsync(source); } [Fact] public async Task ActionRouteToken_OnController_ActionNameOnBase_NoDiagnostics() { // Arrange var source = @" using Microsoft....
Program
csharp
dotnet__maui
src/Core/src/Platform/iOS/Culture.cs
{ "start": 104, "end": 763 }
public static class ____ { static NSLocale? s_locale; static CultureInfo? s_currentCulture; public static CultureInfo CurrentCulture { get { if (s_locale == null || s_currentCulture == null || s_locale != NSLocale.CurrentLocale) { s_locale = NSLocale.CurrentLocale; string countryCode =...
Culture
csharp
jellyfin__jellyfin
MediaBrowser.Providers/MediaInfo/LyricResolver.cs
{ "start": 524, "end": 1419 }
class ____ external subtitle file processing. /// </summary> /// <param name="logger">The logger.</param> /// <param name="localizationManager">The localization manager.</param> /// <param name="mediaEncoder">The media encoder.</param> /// <param name="fileSystem">The file system.</param> /// <p...
for
csharp
EventStore__EventStore
src/KurrentDB.Projections.Core/Metrics/IProjectionStateSerializationTracker.cs
{ "start": 257, "end": 456 }
public interface ____ { public static IProjectionStateSerializationTracker NoOp { get; } = NoOpTracker.Instance; public void StateSerialized(Instant start); } file
IProjectionStateSerializationTracker
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/UnitTestExample.cs
{ "start": 2133, "end": 2928 }
public class ____ : Service { public IRockstarRepository RockstarRepository { get; set; } public List<Rockstar> Get(FindRockstars request) { return request.Aged.HasValue ? Db.Select<Rockstar>(q => q.Age == request.Aged.Value) : Db.Select<Rockstar>(); } public Rockst...
SimpleService
csharp
dotnetcore__Util
src/Util.Microservices.Dapr/Events/Filters/SubscriptionFilterAttribute.cs
{ "start": 142, "end": 4077 }
public class ____ : ActionFilterAttribute { /// <summary> /// 执行 /// </summary> public override async Task OnActionExecutionAsync( ActionExecutingContext context, ActionExecutionDelegate next ) { if ( context == null ) return; if ( next == null ) return; ...
SubscriptionFilterAttribute
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 318137, "end": 318357 }
public class ____ { public int Id { get; set; } public RelatedEntity1460 ParentEntity { get; set; } public IEnumerable<RelatedEntity1462> ChildEntities { get; set; } }
RelatedEntity1461
csharp
ServiceStack__ServiceStack
ServiceStack/src/ServiceStack/Messaging/BackgroundMqService.cs
{ "start": 23446, "end": 23703 }
public class ____(BackgroundMqClient mqClient) : IMessageFactory { public IMessageQueueClient CreateMessageQueueClient() => mqClient; public IMessageProducer CreateMessageProducer() => mqClient; public void Dispose() {} }
BackgroundMqMessageFactory
csharp
dotnet__extensions
test/Generators/Microsoft.Gen.Logging/Unit/ParserTests.LogProperties.cs
{ "start": 5610, "end": 6015 }
partial class ____ { [LoggerMessage(0, LogLevel.Debug, ""{param}"")] static partial void M(ILogger logger, [LogProperties] MyClass /*0+*/param/*-0*/); }"; await RunGenerator(Source, DiagDescriptors.LogPropertiesParameterSkipped); } [Fact] pub...
C
csharp
dotnet__machinelearning
src/Microsoft.ML.TimeSeries/IidSpikeDetector.cs
{ "start": 2986, "end": 9017 }
private sealed class ____ : ArgumentsBase { public BaseArguments(Options options) { Source = options.Source; Name = options.Name; Side = options.Side; WindowSize = options.PvalueHistoryLength; AlertThreshold ...
BaseArguments
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.OpenApi.Tests/GeneratedClient/HelloZipOperations.cs
{ "start": 535, "end": 27139 }
public partial class ____ : IServiceOperations<ServiceStackAutorestClient>, IHelloZipOperations { /// <summary> /// Initializes a new instance of the HelloZipOperations class. /// </summary> /// <param name='client'> /// Reference to the service client. /// </param> ...
HelloZipOperations
csharp
dotnet__efcore
src/EFCore.Proxies/Proxies/Internal/ProxyAnnotationNames.cs
{ "start": 646, "end": 2827 }
public static class ____ { /// <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 only use it directly ...
ProxyAnnotationNames
csharp
dotnet__aspnetcore
src/DataProtection/Cryptography.KeyDerivation/test/Pbkdf2Tests.cs
{ "start": 406, "end": 11849 }
public class ____ { // The 'numBytesRequested' parameters below are chosen to exercise code paths where // this value straddles the digest length of the PRF. We only use 5 iterations so // that our unit tests are fast. // This provider is only available in .NET Core because .NET Standard only supports ...
Pbkdf2Tests
csharp
OrchardCMS__OrchardCore
src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Models/ElasticsearchResult.cs
{ "start": 468, "end": 812 }
public class ____ { public JsonObject Value { get; } public IReadOnlyDictionary<string, IReadOnlyCollection<string>> Highlights { get; set; } public double? Score { get; set; } public ElasticsearchRecord(JsonObject value) { ArgumentNullException.ThrowIfNull(value); Value = value;...
ElasticsearchRecord
csharp
dotnetcore__FreeSql
FreeSql.Tests/FreeSql.Tests/SqlServer/Curd/SqlServerSelectTest.cs
{ "start": 105404, "end": 121903 }
public class ____ { [Column(IsPrimary = true)] public Guid pk1 { get; set; } [Column(IsPrimary = true)] public int pk2 { get; set; } [Column(IsPrimary = true)] public string pk3 { get; set; } public string name { get; set; } ...
ToUpd3Pk
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 199791, "end": 200008 }
public class ____ { public int Id { get; set; } public RelatedEntity921 ParentEntity { get; set; } public IEnumerable<RelatedEntity923> ChildEntities { get; set; } }
RelatedEntity922
csharp
MassTransit__MassTransit
src/MassTransit/Scheduling/IScheduleTokenIdCache.cs
{ "start": 59, "end": 432 }
public interface ____<in T> where T : class { /// <summary> /// Try to get the tokenId for the scheduler from the message /// </summary> /// <param name="message"></param> /// <param name="tokenId"></param> /// <returns></returns> bool TryGetTokenId(T ...
IScheduleTokenIdCache
csharp
dotnet__aspnetcore
src/Mvc/Mvc.TagHelpers/test/DefaultFileVersionProviderTest.cs
{ "start": 12842, "end": 13199 }
private class ____ : MemoryStream { public TestableMemoryStream(byte[] buffer) : base(buffer) { } public bool Disposed { get; private set; } protected override void Dispose(bool disposing) { base.Dispose(disposing); Disposed = tru...
TestableMemoryStream
csharp
dotnetcore__WTM
src/WalkingTec.Mvvm.TagHelpers.LayUI/TabTagHelper.cs
{ "start": 109, "end": 242 }
public enum ____ { Default, Simple } [HtmlTargetElement("wt:tab", TagStructure = TagStructure.NormalOrSelfClosing)]
TabStyleEnum
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Media/Animation/DoubleKeyFrame.cs
{ "start": 153, "end": 1715 }
partial class ____ : DependencyObject { public DoubleKeyFrame() { IsAutoPropertyInheritanceEnabled = false; InitializeBinder(); } public DoubleKeyFrame(double value) : this() { Value = value; } public DoubleKeyFrame(double value, KeyTime keyTime) : this() { Value = value; KeyTime = ke...
DoubleKeyFrame
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/Bugzilla/Bugzilla32206.cs
{ "start": 1615, "end": 2195 }
public class ____ : ContentPage { public ContentPage32206() { Interlocked.Increment(ref LandingPage32206.Counter); System.Diagnostics.Debug.WriteLine("Page: " + LandingPage32206.Counter); Content = new ListView { ItemsSource = new List<string> { "Apple", "Banana", "Cherry" }, ItemTemplate = ne...
ContentPage32206
csharp
LibreHardwareMonitor__LibreHardwareMonitor
LibreHardwareMonitorLib/Hardware/Motherboard/Lpc/EC/ChromeOSEmbeddedController.cs
{ "start": 377, "end": 3982 }
public class ____ : EmbeddedController { private const byte EC_FAN_SPEED_ENTRIES = 4; private const ushort EC_FAN_SPEED_NOT_PRESENT = 0xffff; private const byte EC_MEMMAP_FAN = 0x10; private const byte EC_MEMMAP_TEMP_SENSOR = 0x00; private const byte EC_MEMMAP_TEMP_SENSOR_B = 0x18; private const...
ChromeOSEmbeddedController
csharp
bitwarden__server
util/MySqlMigrations/Migrations/20220322191314_SelfHostF4E.cs
{ "start": 113, "end": 6021 }
public partial class ____ : Migration { private const string _scriptLocationTemplate = "2022-03-01_00_{0}_MigrateOrganizationApiKeys.sql"; protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_OrganizationSponsorship_Installation_Inst...
SelfHostF4E
csharp
nopSolutions__nopCommerce
src/Tests/Nop.Tests/SqLiteNopDataProvider.cs
{ "start": 11143, "end": 13316 }
record ____</typeparam> /// <param name="procedureName">Procedure name</param> /// <param name="parameters">Command parameters</param> /// <returns>Returns collection of query result records</returns> public override Task<IList<T>> QueryProcAsync<T>(string procedureName, params DataParameter[] paramete...
type
csharp
FastEndpoints__FastEndpoints
Src/Generator/AccessControlGenerator.cs
{ "start": 6044, "end": 11366 }
partial class ____ { private static readonly Dictionary<string, string> _permNames = new(); private static readonly Dictionary<string, string> _permCodes = new(); static Allow() { foreach (var f in typeo...
Allow
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver/Search/SearchFacetBuilder.cs
{ "start": 11573, "end": 12349 }
internal sealed class ____<TDocument> : SearchFacet<TDocument> { private readonly int? _numBuckets; private readonly SearchPathDefinition<TDocument> _path; public StringSearchFacet(string name, SearchPathDefinition<TDocument> path, int? numBuckets = null) : base(name) { ...
StringSearchFacet
csharp
dotnet__efcore
test/EFCore.SqlServer.FunctionalTests/Types/Numeric/SqlServerByteTypeTest.cs
{ "start": 5151, "end": 5488 }
public class ____ : SqlServerTypeFixture<byte> { public override byte Value { get; } = byte.MinValue; public override byte OtherValue { get; } = byte.MaxValue; } [ConditionalFact] public virtual void Check_all_tests_overridden() => TestHelpers.AssertAllMethodsOverridden(GetType(...
ByteTypeFixture
csharp
EventStore__EventStore
src/KurrentDB.Core/Messages/ClusterInfoDto.cs
{ "start": 316, "end": 944 }
public class ____ { public MemberInfoDto[] Members { get; set; } public string ServerIp { get; set; } public int ServerPort { get; set; } public ClusterInfoDto() { } public ClusterInfoDto(ClusterInfo clusterInfo, EndPoint serverEndPoint) { Members = clusterInfo.Members.Select(x => new MemberInfoDto(x)).ToArra...
ClusterInfoDto
csharp
dotnet__aspire
src/Aspire.Hosting/ApplicationModel/ResourceReadyEvent.cs
{ "start": 601, "end": 987 }
public class ____(IResource resource, IServiceProvider services) : IDistributedApplicationResourceEvent { /// <summary> /// The resource that is in a healthy state. /// </summary> public IResource Resource => resource; /// <summary> /// The service provider for the app host. /// </summary> ...
ResourceReadyEvent
csharp
ServiceStack__ServiceStack
ServiceStack.Aws/src/ServiceStack.Aws/Sqs/SqsQueueName.cs
{ "start": 674, "end": 1840 }
public class ____ : IEquatable<SqsQueueName> { public SqsQueueName(string originalQueueName, string awsQueueAccountId = null) { QueueName = originalQueueName; AwsQueueName = originalQueueName.ToValidQueueName(); AwsQueueAccountId = awsQueueAccountId; } ...
SqsQueueName
csharp
dotnet__extensions
test/Libraries/Microsoft.AspNetCore.Diagnostics.Middleware.Tests/Buffering/PerIncomingRequestLoggingBuilderExtensionsTests.cs
{ "start": 894, "end": 5992 }
public class ____ { [Fact] public void WhenLogLevelProvided_RegistersInDI() { var serviceCollection = new ServiceCollection(); serviceCollection.AddLogging(builder => { builder.AddPerIncomingRequestBuffer(LogLevel.Warning); }); ServiceProvider serviceProv...
PerIncomingRequestLoggingBuilderExtensionsTests
csharp
dotnet__efcore
test/EFCore.Specification.Tests/TestModels/ConferencePlanner/EntityExtensions.cs
{ "start": 309, "end": 2143 }
public static class ____ { public static SessionResponse MapSessionResponse(this Session session) => new() { Id = session.Id, Title = session.Title, StartTime = session.StartTime, EndTime = session.EndTime, Speakers = session.SessionSpeaker...
EntityExtensions
csharp
pythonnet__pythonnet
src/embed_tests/Codecs.cs
{ "start": 9249, "end": 12666 }
class ____ throw a python exception when it tries to access any element. //TryDecode is a lossless conversion so there will be no exception at that point //interestingly, since the size of the python sequence can be queried without any conversion, //the IList will report a Count of ...
will
csharp
microsoft__PowerToys
src/common/LanguageModelProvider/ILanguageModelProvider.cs
{ "start": 250, "end": 555 }
public interface ____ { string Name { get; } string ProviderDescription { get; } Task<IEnumerable<ModelDetails>> GetModelsAsync(CancellationToken cancelationToken = default); IChatClient? GetIChatClient(string modelId); string GetIChatClientString(string url); }
ILanguageModelProvider
csharp
dotnet__orleans
test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithAnnotatedFields.verified.cs
{ "start": 10706, "end": 11211 }
internal sealed class ____ : global::Orleans.Serialization.Configuration.TypeManifestProviderBase { protected override void ConfigureInner(global::Orleans.Serialization.Configuration.TypeManifestOptions config) { config.Serializers.Add(typeof(OrleansCodeGen.TestProject.Codec_DemoDataWith...
Metadata_TestProject
csharp
DapperLib__Dapper
tests/Dapper.Tests/MiscTests.cs
{ "start": 43454, "end": 43563 }
public class ____ { public StatusType Status { get; set; } }
Issue142_Status
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.Server.Tests/Messaging/MqServerIntroTests.cs
{ "start": 2508, "end": 2690 }
public class ____ : IHasBearerToken, IReturn<MqAuthOnlyResponse> { public string Name { get; set; } public string BearerToken { get; set; } }
MqAuthOnlyToken
csharp
dotnet__maui
src/Core/src/LifecycleEvents/Android/AndroidLifecycleExtensions.cs
{ "start": 60, "end": 362 }
public static class ____ { public static ILifecycleBuilder AddAndroid(this ILifecycleBuilder builder, Action<IAndroidLifecycleBuilder> configureDelegate) { var lifecycle = new LifecycleBuilder(builder); configureDelegate?.Invoke(lifecycle); return builder; }
AndroidLifecycleExtensions
csharp
neuecc__MessagePack-CSharp
tests/MessagePack.SourceGenerator.Tests/Resources/NoPrivateAccessNeeded/MessagePack.GeneratedMessagePackResolver.g.cs
{ "start": 1230, "end": 1872 }
private static class ____ { private static readonly global::System.Collections.Generic.Dictionary<global::System.Type, int> closedTypeLookup = new global::System.Collections.Generic.Dictionary<global::System.Type, int>(1) { { typeof(global::Test3), 0 }, }; internal static object GetFormatter(global::System...
GeneratedMessagePackResolverGetFormatterHelper
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 2125560, "end": 2128716 }
public partial class ____ : global::System.IEquatable<OnSchemaVersionValidationUpdated_OnSchemaVersionValidationUpdate_Errors_Changes_Changes_FieldAddedChange>, IOnSchemaVersionValidationUpdated_OnSchemaVersionValidationUpdate_Errors_Changes_Changes_FieldAddedChange { public OnSchemaVersionValidationUpdated...
OnSchemaVersionValidationUpdated_OnSchemaVersionValidationUpdate_Errors_Changes_Changes_FieldAddedChange
csharp
protobuf-net__protobuf-net
src/protobuf-net.Core/Serializers/MapSerializer.Immutable.cs
{ "start": 1716, "end": 3467 }
sealed class ____<TKey, TValue> : MapSerializer<ImmutableDictionary<TKey, TValue>, TKey, TValue> { protected override ImmutableDictionary<TKey, TValue> Clear(ImmutableDictionary<TKey, TValue> values, ISerializationContext context) => values.Clear(); protected override ImmutableDictionary...
ImmutableDictionarySerializer
csharp
dotnet__aspire
tests/Aspire.Hosting.Analyzers.Tests/EndpointNameAnalyzerTests.cs
{ "start": 3611, "end": 4067 }
public static class ____ { public static IResourceBuilder<ContainerResource> WithEndpoints( this IResourceBuilder<ContainerResource> builder, [EndpointName] string param1Name, [EndpointName] string param2Name) { ...
TestExtensions
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/Issue25671.xaml.cs
{ "start": 2895, "end": 3474 }
public class ____ : Grid { public static long MeasurePasses = 0; public static long ArrangePasses = 0; protected override Size ArrangeOverride(Rect bounds) { Interlocked.Increment(ref Issue25671.ArrangePasses); Interlocked.Increment(ref ArrangePasses); return base.ArrangeOverride(bounds); } protected over...
Issue25671Grid
csharp
unoplatform__uno
src/Uno.UI.Tests/Windows_UI_Xaml_Data/xBindTests/Controls/Binding_Event.xaml.cs
{ "start": 751, "end": 1123 }
partial class ____ : Page { public Binding_Event() { this.InitializeComponent(); } public int CheckedRaised { get; private set; } public int UncheckedRaised { get; private set; } private void OnCheckedRaised() { CheckedRaised++; } private void OnUncheckedRaised(object sender, RoutedEventArg...
Binding_Event
csharp
dotnet__efcore
test/EFCore.SqlServer.FunctionalTests/Update/MismatchedKeyTypesSqlServerTest.cs
{ "start": 25380, "end": 25681 }
protected class ____ { public int Id { get; set; } public PrincipalComposite Principal { get; set; } = null!; public long PrincipalId1 { get; set; } public Guid PrincipalId2 { get; set; } public int PrincipalId3 { get; set; } }
RequiredSingleComposite