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
icsharpcode__ILSpy
ICSharpCode.Decompiler/CSharp/Syntax/IAnnotatable.cs
{ "start": 2713, "end": 2840 }
class ____ to implement the IAnnotatable interface. /// This implementation is thread-safe. /// </summary> [Serializable]
used
csharp
jellyfin__jellyfin
src/Jellyfin.Extensions/Json/Utf8JsonExtensions.cs
{ "start": 145, "end": 983 }
public static class ____ { /// <summary> /// Determines if the reader contains an empty string. /// </summary> /// <param name="reader">The reader.</param> /// <returns>Whether the reader contains an empty string.</returns> public static bool IsEmptyString(this Utf8JsonReader reader) => ...
Utf8JsonExtensions
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/VirtualPathProviderTests.cs
{ "start": 715, "end": 1207 }
public class ____ : AppendVirtualFilesTests { private static string RootDir = "~/App_Data/files".MapProjectPath(); public FileSystemVirtualPathProviderTests() { if (Directory.Exists(RootDir)) Directory.Delete(RootDir, recursive:true); Directory.CreateDirectory(R...
FileSystemVirtualPathProviderTests
csharp
dotnet__aspire
src/Aspire.Hosting.Kubernetes/Resources/SELinuxOptionsV1.cs
{ "start": 795, "end": 2061 }
public sealed class ____ { /// <summary> /// Gets or sets the SELinux role for the resource. /// This property represents the SELinux role element, which is part of the SELinux /// security policy used to define fine-grained access control. /// </summary> [YamlMember(Alias = "role")] public ...
SeLinuxOptionsV1
csharp
dotnet__maui
src/SingleProject/Resizetizer/src/SkiaSharpRasterTools.cs
{ "start": 99, "end": 982 }
internal class ____ : SkiaSharpTools, IDisposable { SKImage img; public SkiaSharpRasterTools(ResizeImageInfo info, ILogger logger) : this(info.Filename, info.BaseSize, info.Color, info.TintColor, logger) { } public SkiaSharpRasterTools(string filename, SKSize? baseSize, SKColor? backgroundColor, SKColor...
SkiaSharpRasterTools
csharp
abpframework__abp
modules/cms-kit/src/Volo.CmsKit.Public.Application/Volo/CmsKit/Public/CmsKitPublicApplicationMappers.cs
{ "start": 1266, "end": 1877 }
public partial class ____ : MapperBase<Comment, CommentWithDetailsDto> { [MapperIgnoreTarget(nameof(CommentWithDetailsDto.Replies))] [MapperIgnoreTarget(nameof(CommentWithDetailsDto.Author))] public override partial CommentWithDetailsDto Map(Comment source); [MapperIgnoreTarget(nameof(CommentWithDetail...
CommentToCommentWithDetailsDtoMapper
csharp
abpframework__abp
framework/src/Volo.Abp.Http/Volo/Abp/Http/Modeling/ParameterApiDescriptionModel.cs
{ "start": 92, "end": 1521 }
public class ____ { public string NameOnMethod { get; set; } = default!; public string Name { get; set; } = default!; public string? JsonName { get; set; } public string? Type { get; set; } public string? TypeSimple { get; set; } public bool IsOptional { get; set; } public object? Defa...
ParameterApiDescriptionModel
csharp
microsoft__garnet
libs/server/Resp/AsyncProcessor.cs
{ "start": 358, "end": 6204 }
partial class ____ : ServerSessionBase { /// <summary> /// Whether async mode is turned on for the session /// </summary> bool useAsync = false; /// <summary> /// How many async operations are started and completed /// </summary> long asyncStarted = ...
RespServerSession
csharp
dotnetcore__Util
src/Util.Ui.NgZorro/Components/Badges/Renders/BadgeRender.cs
{ "start": 193, "end": 824 }
public class ____ : RenderBase { /// <summary> /// 配置 /// </summary> private readonly Config _config; /// <summary> /// 初始化徽标渲染器 /// </summary> /// <param name="config">配置</param> public BadgeRender( Config config ) { _config = config; } /// <summary> /// 获取标签生成...
BadgeRender
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/GroupListViewHeaderIndexOutOfRange.cs
{ "start": 190, "end": 2517 }
public class ____ : TestContentPage { const string ButtonId = "button"; public static ObservableCollection<SamplePack> Samples { get; set; } public static ObservableCollection<Grouping<string, SamplePack>> Testing { get; set; } public static void ResetList() { Testing.Clear(); } protected override...
GroupListViewHeaderIndexOutOfRange
csharp
aspnetboilerplate__aspnetboilerplate
test/Abp.ZeroCore.SampleApp/EntityFramework/Seed/Host/DefaultSettingsCreator.cs
{ "start": 150, "end": 1035 }
public class ____ { private readonly SampleAppDbContext _context; public DefaultSettingsCreator(SampleAppDbContext context) { _context = context; } public void Create() { //Emailing AddSettingIfNotExists(EmailSettingNames.DefaultFromAddress, "admin@mydomain.com"); ...
DefaultSettingsCreator
csharp
pythonnet__pythonnet
tests/domain_tests/TestRunner.cs
{ "start": 22221, "end": 22541 }
public class ____ { static public int Field = 2; } }", DotNetAfter = @" namespace TestNamespace { [System.Serializable] ...
Cls
csharp
protobuf-net__protobuf-net
assorted/LateLoaded/FooBar.cs
{ "start": 100, "end": 224 }
public class ____ { [ProtoMember(1)] public string BaseProp { get; set; } } [ProtoContract]
Foo
csharp
bchavez__Bogus
Examples/ExtendingBogus/FoodDataSet.cs
{ "start": 198, "end": 549 }
public static class ____ { public static Food Food(this Faker faker) { return ContextHelper.GetOrSet(faker, () => new Food()); } } /// <summary> /// This DatSet can be created manually using `new Candy()`, or by fluent extension method via <seealso cref="ExtensionsForFood"/>. ...
ExtensionsForFood
csharp
abpframework__abp
modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/AbpIdentityServerDbProperties.cs
{ "start": 59, "end": 338 }
public static class ____ { public static string DbTablePrefix { get; set; } = "IdentityServer"; public static string DbSchema { get; set; } = AbpCommonDbProperties.DbSchema; public const string ConnectionStringName = "AbpIdentityServer"; }
AbpIdentityServerDbProperties
csharp
dotnetcore__FreeSql
Providers/FreeSql.Provider.Oracle/OracleAdo/OracleAdo.cs
{ "start": 326, "end": 5482 }
class ____ : FreeSql.Internal.CommonProvider.AdoProvider { public OracleAdo() : base(DataType.Oracle, null, null) { } public OracleAdo(CommonUtils util, string masterConnectionString, string[] slaveConnectionStrings, Func<DbConnection> connectionFactory) : base(DataType.Oracle, masterConnectionStrin...
OracleAdo
csharp
dotnet__maui
src/Controls/samples/Controls.Sample/MauiProgram.cs
{ "start": 1153, "end": 13946 }
enum ____ { Main, Blazor, Shell, Template, FlyoutPage, TabbedPage } readonly static PageType _pageType = PageType.Main; public static MauiApp CreateMauiApp() { var appBuilder = MauiApp.CreateBuilder(); appBuilder.ConfigureContainer(new DefaultServiceProviderFactory(new ServiceProviderOptions { Vali...
PageType
csharp
dotnet__maui
src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/CarouselViewFeatureTests.cs
{ "start": 107, "end": 49388 }
public class ____ : UITest { public const string CarouselViewFeatureMatrix = "CarouselView Feature Matrix"; private const string CarouselViewControl = "CarouselViewControl"; private const string Options = "Options"; private const string Apply = "Apply"; private const string ItemTemplateGrid = "ItemTemplateGrid"; ...
CarouselViewFeatureTests
csharp
dotnet__efcore
test/EFCore.Specification.Tests/Query/AdHocQueryFiltersQueryTestBase.cs
{ "start": 10900, "end": 11088 }
public class ____ { public bool Exists { get; set; } public virtual OptionalChangePoint12170 RemovedPoint { get; set; } }
MasterChangeInfo12170
csharp
dotnet__maui
src/Controls/src/Core/PropertyChangedEventArgsExtensions.cs
{ "start": 124, "end": 2154 }
internal static class ____ { [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool Is(this PropertyChangedEventArgs args, BindableProperty property) { if (string.IsNullOrEmpty(args.PropertyName)) return true; return args.PropertyName == property.PropertyName; } [MethodImpl(MethodI...
PropertyChangedEventArgsExtensions
csharp
dotnet__aspnetcore
src/OpenApi/gen/XmlCommentGenerator.Emitter.cs
{ "start": 2529, "end": 2866 }
record ____( string? Summary, string? Description, string? Remarks, string? Returns, string? Value, bool Deprecated, List<string>? Examples, List<XmlParameterComment>? Parameters, List<XmlResponseComment>? Responses); {{GeneratedCodeAttribute...
XmlComment
csharp
jellyfin__jellyfin
MediaBrowser.Model/Dto/TrickplayInfoDto.cs
{ "start": 158, "end": 1656 }
public record ____ { /// <summary> /// Initializes a new instance of the <see cref="TrickplayInfoDto"/> class. /// </summary> /// <param name="info">The trickplay info.</param> public TrickplayInfoDto(TrickplayInfo info) { ArgumentNullException.ThrowIfNull(info); Width = info.Wi...
TrickplayInfoDto
csharp
MassTransit__MassTransit
src/MassTransit.Newtonsoft/Serialization/NewtonsoftXmlMessageSerializer.cs
{ "start": 317, "end": 3070 }
public class ____ : IMessageSerializer { public const string ContentTypeHeaderValue = "application/vnd.masstransit+xml"; public static readonly ContentType XmlContentType = new ContentType(ContentTypeHeaderValue); static readonly Lazy<JsonSerializer> _xmlSerializer; static ...
NewtonsoftXmlMessageSerializer
csharp
dotnet__aspnetcore
src/Validation/src/ValidationOptions.cs
{ "start": 339, "end": 3402 }
public class ____ { /// <summary> /// Gets the list of resolvers that provide validation metadata for types and parameters. /// Resolvers are processed in order, with the first resolver that provides a non-null result being used. /// </summary> /// <remarks> /// Source-generated resolvers are ty...
ValidationOptions
csharp
dotnet__aspire
src/Aspire.Hosting.GitHub.Models/GitHubModelsExtensions.cs
{ "start": 492, "end": 4794 }
public static class ____ { /// <summary> /// Adds a GitHub Model resource to the application model. /// </summary> /// <param name="builder">The <see cref="IDistributedApplicationBuilder"/>.</param> /// <param name="name">The name of the resource. This name will be used as the connection string name...
GitHubModelsExtensions
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 148579, "end": 148796 }
public class ____ { public int Id { get; set; } public RelatedEntity685 ParentEntity { get; set; } public IEnumerable<RelatedEntity687> ChildEntities { get; set; } }
RelatedEntity686
csharp
ServiceStack__ServiceStack.OrmLite
tests/ServiceStack.OrmLite.Tests/OrmLiteTestBase.cs
{ "start": 229, "end": 3727 }
public class ____ // { // public static Dialect DefaultDialect = Dialect.Sqlite; // public const bool EnableDebugLogging = false; // // public static string SqliteFileDir = "~/App_Data/".MapAbsolutePath(); // public static string SqliteFileDb = "~/App_Data/db.sqlite".MapAbsolutePath(); //...
Config
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 2337472, "end": 2337739 }
public partial interface ____ : IUpdateStages_UpdateStages_Api_Stages_Conditions, IAfterStageCondition { } [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "15.1.8.0")]
IUpdateStages_UpdateStages_Api_Stages_Conditions_AfterStageCondition
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/TypedFilterTests.cs
{ "start": 477, "end": 525 }
private class ____ : IDependency { }
Dependency
csharp
fluentassertions__fluentassertions
Tests/FluentAssertions.Equivalency.Specs/TestTypes.cs
{ "start": 11582, "end": 11770 }
public class ____ { public string Text { get; set; } public CyclicRootDto Root { get; set; } } #endregion #region Interfaces for verifying inheritance of properties
CyclicLevel1Dto
csharp
files-community__Files
src/Files.App/UserControls/FileIcon.xaml.cs
{ "start": 301, "end": 2146 }
partial class ____ : UserControl { private SelectedItemsPropertiesViewModel viewModel; public SelectedItemsPropertiesViewModel ViewModel { get => viewModel; set { viewModel = value; if (value is null) { return; } if (ViewModel?.CustomIconSource is not null) { Custom...
FileIcon
csharp
spectreconsole__spectre.console
src/Spectre.Console/Widgets/Align.cs
{ "start": 1395, "end": 1927 }
class ____ is left aligned. /// </summary> /// <param name="renderable">The <see cref="IRenderable"/> to align.</param> /// <param name="vertical">The vertical alignment, or <c>null</c> if none.</param> /// <returns>A new <see cref="Align"/> object.</returns> public static Align Left(IRenderable ren...
that
csharp
AvaloniaUI__Avalonia
src/Avalonia.Controls/DockPanel.cs
{ "start": 605, "end": 9172 }
public class ____ : Panel { /// <summary> /// Defines the Dock attached property. /// </summary> public static readonly AttachedProperty<Dock> DockProperty = AvaloniaProperty.RegisterAttached<DockPanel, Control, Dock>("Dock"); /// <summary> /// Defines th...
DockPanel
csharp
serilog__serilog
src/Serilog/Policies/ByteMemoryScalarConversionPolicy.cs
{ "start": 848, "end": 2360 }
sealed class ____ : IScalarConversionPolicy { const int MaximumByteArrayLength = 1024; const int MaxTake = 16; public bool TryConvertToScalar(object value, [NotNullWhen(true)] out ScalarValue? result) { if (value is ReadOnlyMemory<byte> x) { result = new(ConvertToHexString(x...
ByteMemoryScalarConversionPolicy
csharp
CommunityToolkit__WindowsCommunityToolkit
Microsoft.Toolkit.Uwp.UI.Animations/Xaml/Activities/Activity.cs
{ "start": 472, "end": 1468 }
public abstract class ____ : DependencyObject, IActivity { /// <summary> /// Gets or sets the <see cref="TimeSpan"/> to wait before running the activity. /// </summary> public TimeSpan? Delay { get => (TimeSpan?)GetValue(DelayProperty); set => SetValue...
Activity
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL.Tests/Validation/ArgumentsOfCorrectTypeTests.cs
{ "start": 24305, "end": 24973 }
public static class ____ { [System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0060:Remove unused parameter", Justification = "'rule' parameter works as 'this' anchor")] public static void badValue( this ArgumentsOfCorrectType rule, ValidationTestConfig config, string argName, ...
ValidationExtensions
csharp
microsoft__PowerToys
src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.ValueGenerator/Generators/GUID/GUIDGenerator.cs
{ "start": 406, "end": 5626 }
internal sealed class ____ { // As defined in https://datatracker.ietf.org/doc/html/rfc4122#appendix-C public static readonly Dictionary<string, Guid> PredefinedNamespaces = new Dictionary<string, Guid>() { { "ns:dns", new Guid(0x6ba7b810, 0x9dad, 0x11d1, 0x80, 0xb4, 0x00, 0xc0, ...
GUIDGenerator
csharp
bitwarden__server
src/Admin/Controllers/HomeController.cs
{ "start": 325, "end": 3341 }
public class ____ : Controller { private readonly GlobalSettings _globalSettings; private readonly HttpClient _httpClient = new HttpClient(); private readonly ILogger<HomeController> _logger; public HomeController(GlobalSettings globalSettings, ILogger<HomeController> logger) { _globalSetti...
HomeController
csharp
EventStore__EventStore
src/KurrentDB.SecondaryIndexing/Indexes/Default/DefaultSql.cs
{ "start": 2765, "end": 3348 }
public struct ____ : IQuery<ReadDefaultIndexQueryArgs, IndexQueryRecord> { public static BindingContext Bind(in ReadDefaultIndexQueryArgs args, PreparedStatement statement) => new(statement) { args.StartPosition, args.Count }; public static ReadOnlySpan<byte> CommandText => "select log_position, commit_posit...
ReadDefaultIndexBackQueryIncl
csharp
smartstore__Smartstore
src/Smartstore.Web/Areas/Admin/Controllers/ExternalAuthenticationController.cs
{ "start": 189, "end": 2978 }
public partial class ____ : AdminController { private readonly IWidgetService _widgetService; private readonly IProviderManager _providerManager; private readonly ExternalAuthenticationSettings _externalAuthenticationSettings; private readonly ModuleManager _moduleManager; p...
ExternalAuthenticationController
csharp
smartstore__Smartstore
src/Smartstore.Core/Checkout/Cart/Domain/ShoppingCart.cs
{ "start": 334, "end": 4613 }
public partial class ____ : IEquatable<ShoppingCart> { public ShoppingCart(Customer customer, int storeId, IEnumerable<OrganizedShoppingCartItem> items) { Customer = Guard.NotNull(customer); Items = Guard.NotNull(items?.ToArray()); StoreId = storeId; } ...
ShoppingCart
csharp
ServiceStack__ServiceStack
ServiceStack.OrmLite/tests/ServiceStack.OrmLite.Tests/UseCase/SimpleUseCase.cs
{ "start": 249, "end": 1322 }
public class ____ { public long Id { get; set; } [DataAnnotations.Index] public string Name { get; set; } public DateTime CreatedDate { get; set; } } [Test] public void Simple_CRUD_example() { using (var db = OpenDbConnection()) { db.DropAndCreateTable<User>(); db.Insert(new User { Id = 1, Na...
User
csharp
spectreconsole__spectre.console
src/Spectre.Console.Tests/Unit/ColorTests.cs
{ "start": 6456, "end": 7618 }
public sealed class ____ { [Theory] [InlineData(ConsoleColor.Black, 0)] [InlineData(ConsoleColor.DarkRed, 1)] [InlineData(ConsoleColor.DarkGreen, 2)] [InlineData(ConsoleColor.DarkYellow, 3)] [InlineData(ConsoleColor.DarkBlue, 4)] ...
ConsoleColorToColor
csharp
Cysharp__ZLogger
tests/ZLogger.Tests/TestHelpers.cs
{ "start": 706, "end": 778 }
class ____ { public int X { get; set; } } file
TestState
csharp
FoundatioFx__Foundatio
src/Foundatio/Extensions/CacheClientExtensions.cs
{ "start": 154, "end": 7732 }
public static class ____ { public static async Task<T> GetAsync<T>(this ICacheClient client, string key, T defaultValue) { var cacheValue = await client.GetAsync<T>(key).AnyContext(); return cacheValue.HasValue ? cacheValue.Value : defaultValue; } public static Task<IDictionary<string, ...
CacheClientExtensions
csharp
dotnetcore__FreeSql
Providers/FreeSql.Provider.Custom/SqlServer/CustomSqlServerCodeFirst.cs
{ "start": 264, "end": 33585 }
class ____ : Internal.CommonProvider.CodeFirstProvider { public override bool IsNoneCommandParameter { get => true; set => base.IsNoneCommandParameter = true; } public CustomSqlServerCodeFirst(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression) : base(orm, commonUtils, commonEx...
CustomSqlServerCodeFirst
csharp
dotnet__aspnetcore
src/Servers/Kestrel/Core/src/Internal/Infrastructure/KestrelConnectionOfT.cs
{ "start": 367, "end": 4037 }
internal sealed class ____<T> : KestrelConnection, IThreadPoolWorkItem where T : BaseConnectionContext { private readonly Func<T, Task> _connectionDelegate; private readonly T _transportConnection; public KestrelConnection(long id, ServiceContext serviceContext, ...
KestrelConnection
csharp
microsoft__PowerToys
src/settings-ui/Settings.UI/SettingsXAML/Controls/KeyVisual/KeyCharPresenter.xaml.cs
{ "start": 557, "end": 1027 }
partial class ____ : Control { public KeyCharPresenter() { DefaultStyleKey = typeof(KeyCharPresenter); } public object Content { get => (object)GetValue(ContentProperty); set => SetValue(ContentProperty, value); } public static readonly DependencyProperty ContentPr...
KeyCharPresenter
csharp
dotnet__aspire
src/Aspire.Hosting.Kubernetes/Resources/HelmChartDependency.cs
{ "start": 628, "end": 2756 }
public sealed class ____ { /// <summary> /// Gets or sets the name of the Helm chart dependency. /// This property specifies the unique name identifying the Helm chart. /// </summary> [YamlMember(Alias = "name")] public string Name { get; set; } = null!; /// <summary> /// Gets or sets t...
HelmChartDependency
csharp
dotnet__efcore
test/EFCore.Relational.Specification.Tests/Query/OperatorsProceduralQueryTestBase.cs
{ "start": 34881, "end": 35133 }
public class ____<TEntity1, TResult>(TEntity1 entity1, TResult result) where TEntity1 : OperatorEntityBase { public TEntity1 Entity1 { get; set; } = entity1; public TResult Result { get; set; } = result; }
OperatorDto1
csharp
dotnet__aspnetcore
src/Middleware/Diagnostics/src/StatusCodePage/StatusCodePagesFeature.cs
{ "start": 258, "end": 638 }
public class ____ : IStatusCodePagesFeature { /// <summary> /// Enables or disables status code pages. The default value is true. /// Set this to false to prevent the <see cref="StatusCodePagesMiddleware"/> /// from creating a response body while handling the error status code. /// </summary> pu...
StatusCodePagesFeature
csharp
jellyfin__jellyfin
tests/Jellyfin.Server.Implementations.Tests/Sorting/AiredEpisodeOrderComparerTests.cs
{ "start": 946, "end": 1194 }
private sealed class ____ : TheoryData<BaseItem?, BaseItem?> { public EpisodeBadData() { Add(null, new Episode()); Add(new Episode(), null); } }
EpisodeBadData
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.Driver.Tests/UnifiedTestOperations/UnifiedAssertSessionPinnedOperation.cs
{ "start": 1136, "end": 2078 }
public class ____ { private readonly UnifiedEntityMap _entityMap; public UnifiedAssertSessionPinnedOperationBuilder(UnifiedEntityMap entityMap) { _entityMap = entityMap; } public UnifiedAssertSessionPinnedOperation Build(BsonDocument arguments) { ...
UnifiedAssertSessionPinnedOperationBuilder
csharp
unoplatform__uno
src/Uno.Foundation/IAsyncOperation.cs
{ "start": 316, "end": 711 }
public partial interface ____<TResult> : IAsyncInfo { /// <summary> /// Gets or sets the method that handles the operation completed notification. /// </summary> AsyncOperationCompletedHandler<TResult> Completed { get; set; } /// <summary> /// Returns the results of the operation. /// </summary> /// <returns>T...
IAsyncOperation
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL.Tests/Attributes/ValidateArgumentsAttributeTests.cs
{ "start": 2418, "end": 2550 }
public class ____ { [ValidateArguments(typeof(Dummy))] public string Hello(string value) => value; }
Class2
csharp
abpframework__abp
framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/BackgroundEmailSendingJob.cs
{ "start": 142, "end": 870 }
public class ____ : AsyncBackgroundJob<BackgroundEmailSendingJobArgs>, ITransientDependency { protected IEmailSender EmailSender { get; } public BackgroundEmailSendingJob(IEmailSender emailSender) { EmailSender = emailSender; } public async override Task ExecuteAsync(BackgroundEmailSending...
BackgroundEmailSendingJob
csharp
jellyfin__jellyfin
Jellyfin.Api/Constants/InternalClaimTypes.cs
{ "start": 108, "end": 908 }
public static class ____ { /// <summary> /// User Id. /// </summary> public const string UserId = "Jellyfin-UserId"; /// <summary> /// Device Id. /// </summary> public const string DeviceId = "Jellyfin-DeviceId"; /// <summary> /// Device. /// </summary> public const str...
InternalClaimTypes
csharp
jellyfin__jellyfin
MediaBrowser.Controller/SyncPlay/ISyncPlayManager.cs
{ "start": 337, "end": 3034 }
public interface ____ { /// <summary> /// Creates a new group. /// </summary> /// <param name="session">The session that's creating the group.</param> /// <param name="request">The request.</param> /// <param name="cancellationToken">The cancellation token.</param> ...
ISyncPlayManager
csharp
dotnet__reactive
Ix.NET/Source/System.Linq.Async/System/Linq/Operators/LastOrDefault.cs
{ "start": 423, "end": 11380 }
partial class ____ #endif { #if INCLUDE_SYSTEM_LINQ_ASYNCENUMERABLE_DUPLICATES // https://learn.microsoft.com/en-us/dotnet/api/system.linq.asyncenumerable.lastordefaultasync?view=net-9.0-pp#system-linq-asyncenumerable-lastordefaultasync-1(system-collections-generic-iasyncenumerable((-0))-system-threading-c...
AsyncEnumerable
csharp
dotnet__efcore
src/EFCore/Metadata/Builders/CollectionNavigationBuilder.cs
{ "start": 940, "end": 18688 }
public class ____ : IInfrastructure<IConventionForeignKeyBuilder?> { /// <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...
CollectionNavigationBuilder
csharp
smartstore__Smartstore
src/Smartstore.Core/Data/SmartDbContext.cs
{ "start": 328, "end": 465 }
public abstract class ____<TEntity> : AsyncDbSaveHook<SmartDbContext, TEntity> where TEntity : class { }
AsyncDbSaveHook
csharp
nunit__nunit
src/NUnitFramework/framework/Internal/MessagePumpStrategy.cs
{ "start": 7936, "end": 9835 }
private sealed class ____ : MessagePumpStrategy { public static readonly SingleThreadedTestMessagePumpStrategy Instance = new(); private SingleThreadedTestMessagePumpStrategy() { } public override void WaitForCompletion(AwaitAdapter awaiter) ...
SingleThreadedTestMessagePumpStrategy
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver/Core/Bindings/CoreTransactionState.cs
{ "start": 728, "end": 1260 }
public enum ____ { /// <summary> /// StartTransaction has been called but no operations have been performed yet. /// </summary> Starting = 1, /// <summary> /// The transaction is in progress. /// </summary> InProgress, /// <summary> /...
CoreTransactionState
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL.DataLoader/IDataLoader.cs
{ "start": 128, "end": 610 }
public interface ____ { /// <summary> /// Dispatch any pending operations /// </summary> /// <param name="cancellationToken">Optional <seealso cref="CancellationToken"/> to pass to the fetch delegate</param> Task DispatchAsync(CancellationToken cancellationToken = default); } /// <summary> /// Prov...
IDataLoader
csharp
ardalis__CleanArchitecture
src/Clean.Architecture.Core/ContributorAggregate/Handlers/ContributorDeletedHandler.cs
{ "start": 169, "end": 827 }
public class ____(ILogger<ContributorDeletedHandler> logger, IEmailSender emailSender) : INotificationHandler<ContributorDeletedEvent> { public async ValueTask Handle(ContributorDeletedEvent domainEvent, CancellationToken cancellationToken) { logger.LogInformation("Handling Contributed Deleted event for {cont...
ContributorDeletedHandler
csharp
App-vNext__Polly
test/Polly.Specs/Retry/RetryAsyncSpecs.cs
{ "start": 127, "end": 29649 }
public class ____ { [Fact] public void Should_throw_when_action_is_null() { var flags = BindingFlags.NonPublic | BindingFlags.Instance; Func<Context, CancellationToken, Task<EmptyStruct>> action = null!; var policyBuilder = new PolicyBuilder(exception => exception); Func<Exce...
RetryAsyncSpecs
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/Middleware/Latest_Specs.cs
{ "start": 161, "end": 1137 }
public class ____ { [Test] public async Task Should_keep_track_of_only_the_last_value() { ILatestFilter<IInputContext<A>> latestFilter = null; IPipe<IInputContext<A>> pipe = Pipe.New<IInputContext<A>>(x => { x.UseLatest(l => l.Created = fi...
Using_the_latest_filter_on_the_pipe
csharp
FluentValidation__FluentValidation
src/FluentValidation.Tests/EnumValidatorTests.cs
{ "start": 9579, "end": 9650 }
private enum ____ : int { A = 0, B = 1, C = 2 } [Flags]
Int32Enum
csharp
RicoSuter__NJsonSchema
src/NJsonSchema.CodeGeneration.CSharp/Models/ClassTemplateModel.cs
{ "start": 8477, "end": 8612 }
class ____.</summary> public ClassTemplateModel? BaseClass { get; } /// <summary>Gets a value indicating whether the
model
csharp
dotnet__efcore
test/EFCore.Tests/ChangeTracking/PropertyEntryTest.cs
{ "start": 258194, "end": 259725 }
private abstract class ____ : HasChanged, INotifyPropertyChanging { public event PropertyChangingEventHandler? PropertyChanging; protected void OnPropertyChanging([CallerMemberName] string propertyName = "") => PropertyChanging?.Invoke(this, new PropertyChangingEventArgs(propertyName));...
HasChangedAndChanging
csharp
fluentassertions__fluentassertions
Tests/FluentAssertions.Specs/Numeric/NullableNumericAssertionSpecs.BeInRange.cs
{ "start": 145, "end": 2122 }
public class ____ { [Theory] [InlineData(float.NaN, 5F)] [InlineData(5F, float.NaN)] public void A_float_can_never_be_in_a_range_containing_NaN(float minimumValue, float maximumValue) { // Arrange float? value = 4.5F; // Act Ac...
BeInRange
csharp
aspnetboilerplate__aspnetboilerplate
src/Abp.Web.Common/Web/Models/AbpUserConfiguration/AbpUserTimingConfigDto.cs
{ "start": 52, "end": 168 }
public class ____ { public AbpUserTimeZoneConfigDto TimeZoneInfo { get; set; } } }
AbpUserTimingConfigDto
csharp
dotnet__efcore
src/EFCore.Relational/Migrations/MigrationsAnnotationProviderDependencies.cs
{ "start": 262, "end": 598 }
class ____ <see cref="MigrationsAnnotationProvider" /> /// </para> /// <para> /// This type is typically used by database providers (and other extensions). It is generally /// not used in application code. /// </para> /// </summary> /// <remarks> /// <para> /// Do not construct ...
for
csharp
dotnet__aspnetcore
src/Components/Analyzers/test/Helpers/DiagnosticVerifier.Helper.cs
{ "start": 584, "end": 7712 }
partial class ____ { private static readonly MetadataReference CorlibReference = MetadataReference.CreateFromFile(typeof(object).Assembly.Location); private static readonly MetadataReference SystemCoreReference = MetadataReference.CreateFromFile(typeof(Enumerable).Assembly.Location); private static readonl...
DiagnosticVerifier
csharp
JamesNK__Newtonsoft.Json
Src/Newtonsoft.Json.Tests/Serialization/PreserveReferencesHandlingTests.cs
{ "start": 5256, "end": 8523 }
public class ____ { public string PropertyName { get; set; } } [Test] public void SerializeReadOnlyProperty() { Child c = new Child { PropertyName = "value?" }; IList<string> l = new List<string> ...
Child
csharp
abpframework__abp
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/AbpAspNetCoreMvcModule.cs
{ "start": 1998, "end": 10840 }
public class ____ : AbpModule { public override void PreConfigureServices(ServiceConfigurationContext context) { DynamicProxyIgnoreTypes.Add<ControllerBase>(); DynamicProxyIgnoreTypes.Add<PageModel>(); DynamicProxyIgnoreTypes.Add<ViewComponent>(); context.Services.AddConventiona...
AbpAspNetCoreMvcModule
csharp
microsoft__semantic-kernel
dotnet/test/VectorData/SqlServer.ConformanceTests/TypeTests/SqlServerEmbeddingTypeTests.cs
{ "start": 917, "end": 1057 }
class ____ : EmbeddingTypeTests<Guid>.Fixture { public override TestStore TestStore => SqlServerTestStore.Instance; } }
Fixture
csharp
OrchardCMS__OrchardCore
src/OrchardCore.Modules/OrchardCore.Sitemaps/Handlers/SitemapPartHandler.cs
{ "start": 160, "end": 714 }
public class ____ : ContentPartHandler<SitemapPart> { public override Task GetContentItemAspectAsync(ContentItemAspectContext context, SitemapPart part) { return context.ForAsync<SitemapMetadataAspect>(aspect => { if (part.OverrideSitemapConfig) { aspect.C...
SitemapPartHandler
csharp
bitwarden__server
test/Core.Test/AutoFixture/UserFixtures.cs
{ "start": 1403, "end": 1546 }
internal class ____ : BitCustomizeAttribute { public override ICustomization GetCustomization() => new UserFixture(); }
UserCustomizeAttribute
csharp
cake-build__cake
src/Cake.Common.Tests/Fixtures/Tools/SignToolResolverFixture.cs
{ "start": 345, "end": 5660 }
internal sealed class ____ { private readonly bool _is64Bit; public IFileSystem FileSystem { get; set; } public ICakeEnvironment Environment { get; set; } public IRegistry Registry { get; set; } public SignToolResolverFixture(bool is64Bit = true) { _is64...
SignToolResolverFixture
csharp
dotnet__aspire
src/Components/Aspire.Oracle.EntityFrameworkCore/api/Aspire.Oracle.EntityFrameworkCore.cs
{ "start": 420, "end": 1064 }
partial class ____ { public int? CommandTimeout { get { throw null; } set { } } public string? ConnectionString { get { throw null; } set { } } public bool DisableHealthChecks { get { throw null; } set { } } public bool DisableRetry { get { throw null; } set { } } public...
OracleEntityFrameworkCoreSettings
csharp
dotnet__reactive
Rx.NET/Source/src/System.Reactive/Linq/Observable/Delay.cs
{ "start": 23728, "end": 25457 }
private sealed class ____ : SafeObserver<TDelay> { private readonly _ _parent; private readonly TSource _value; private bool _once; public DelayObserver(_ parent, TSource value) { ...
DelayObserver
csharp
ServiceStack__ServiceStack
ServiceStack/tests/NorthwindAuto/Migrations/Migration1001.cs
{ "start": 815, "end": 2115 }
public class ____ : AuditBase { [AutoIncrement] public int Id { get; set; } // 'Id' is PrimaryKey by convention [Required] public string FirstName { get; set; } // Creates NOT NULL Column [Alias("Surname")] // Maps to...
Player
csharp
unoplatform__uno
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml.Controls/TextControlPasteEventArgs.cs
{ "start": 261, "end": 556 }
public partial class ____ { // Skipping already declared property Handled // Forced skipping of method Microsoft.UI.Xaml.Controls.TextControlPasteEventArgs.Handled.get // Forced skipping of method Microsoft.UI.Xaml.Controls.TextControlPasteEventArgs.Handled.set } }
TextControlPasteEventArgs
csharp
dotnet__aspnetcore
src/Shared/CertificateGeneration/CertificateManager.cs
{ "start": 38461, "end": 64327 }
public sealed class ____ : EventSource { [Event(1, Level = EventLevel.Verbose, Message = "Listing certificates from {0}\\{1}")] [UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Parameters passed to WriteEvent are all primative values.")] public void ListCertificatesStart(...
CertificateManagerEventSource
csharp
files-community__Files
src/Files.App/UserControls/FilePreviews/CodePreview.xaml.cs
{ "start": 250, "end": 1059 }
partial class ____ : UserControl { private RichTextBlockFormatter formatter; private CodePreviewViewModel ViewModel { get; set; } public CodePreview(CodePreviewViewModel model) { ViewModel = model; InitializeComponent(); } private void RenderDocument() { if (codeView is not null) { co...
CodePreview
csharp
ChilliCream__graphql-platform
src/HotChocolate/Fusion-vnext/test/Fusion.AspNetCore.Tests/AnyScalarTests.cs
{ "start": 6215, "end": 9246 }
public class ____ { [GraphQLType<AnyType>] public Dictionary<string, object?> GetObject() => new() { { "abc", "def" } }; [GraphQLType<AnyType>] public Dictionary<string, object?> GetSimpleValues() => new() { { "string", "hello" }, ...
Query
csharp
Cysharp__UniTask
src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/WeakDictionary.cs
{ "start": 8789, "end": 9620 }
class ____ { public WeakReference<TKey> Key; public TValue Value; public int Hash; public Entry Prev; public Entry Next; // debug only public override string ToString() { if (Key.TryGetTarget(out var...
Entry
csharp
NSubstitute__NSubstitute
tests/NSubstitute.Acceptance.Specs/PartialSubExamples.cs
{ "start": 1462, "end": 2070 }
public class ____ { public virtual int Read() { var s = ReadFile(); return s.Split(',').Select(int.Parse).Sum(); } public virtual string ReadFile() { return "the result of reading the file here"; } } [Test] ...
SummingReader
csharp
unoplatform__uno
src/Uno.UWP/Generated/3.0.0.0/Windows.Phone.Media.Devices/AudioRoutingManager.cs
{ "start": 302, "end": 4445 }
public partial class ____ { #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ internal AudioRoutingManager() { } #endif #if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ [global::Uno.NotImplemented("__AN...
AudioRoutingManager
csharp
MassTransit__MassTransit
src/MassTransit/SagaStateMachine/ThenExtensions.cs
{ "start": 110, "end": 12504 }
public static class ____ { /// <summary> /// Adds a synchronous delegate activity to the event's behavior /// </summary> /// <typeparam name="TSaga">The state machine instance type</typeparam> /// <param name="binder">The event binder</param> /// <param name="action">...
ThenExtensions
csharp
MassTransit__MassTransit
src/Persistence/MassTransit.EntityFrameworkCoreIntegration/EntityFrameworkCoreIntegration/ISagaDbContextFactory.cs
{ "start": 225, "end": 1020 }
public interface ____<out TSaga> where TSaga : class, ISaga { /// <summary> /// Create a standalone DbContext /// </summary> /// <returns></returns> DbContext Create(); /// <summary> /// Create a scoped DbContext within the lifetime scope of the saga ...
ISagaDbContextFactory
csharp
ChilliCream__graphql-platform
src/HotChocolate/Fusion-vnext/test/Fusion.Composition.Tests/PostMergeValidationRules/InterfaceFieldNoImplementationRuleTests.cs
{ "start": 57, "end": 258 }
public sealed class ____ : RuleTestBase { protected override object Rule { get; } = new InterfaceFieldNoImplementationRule(); // In this example, the "User"
InterfaceFieldNoImplementationRuleTests
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/HttpResultContentTypeTests.cs
{ "start": 1289, "end": 1654 }
public class ____ { /// <summary> /// Controls if the service calls response.ContentType or just new HttpResult /// </summary> public bool SetContentType { get; set; } /// <summary> /// Text to respond with /// </summary> public string Text { get; set;...
PlainText
csharp
dotnet__tye
test/E2ETest/TyeBuildTests.Dockerfile.cs
{ "start": 466, "end": 12153 }
public partial class ____ { [ConditionalFact] [SkipIfDockerNotRunning] public async Task TyeBuild_SinglePhase_GeneratedDockerfile() { var projectName = "single-phase-dockerfile"; var environment = "production"; var imageName = "test/single-phase-do...
TyeBuildTests
csharp
dotnet__aspire
src/Aspire.Hosting.Kubernetes/Resources/DeploymentV1.cs
{ "start": 390, "end": 741 }
sealed class ____ from the BaseKubernetesResource. It defines the /// desired state and behavior of a deployment within a Kubernetes cluster, including specifications /// such as the number of replicas, update strategy, and pod templates. /// It uses the "apps/v1" API version and the resource kind "Deployment". /// </...
derived
csharp
SixLabors__ImageSharp
src/ImageSharp/PixelFormats/PixelImplementations/PixelOperations/NormalizedShort2.PixelOperations.cs
{ "start": 347, "end": 417 }
internal class ____ : PixelOperations<NormalizedShort2>; }
PixelOperations
csharp
CommunityToolkit__WindowsCommunityToolkit
Microsoft.Toolkit.Uwp.UI.Controls.Markdown/Parsers/Markdown/Inlines/BoldTextInline.cs
{ "start": 532, "end": 3866 }
public class ____ : MarkdownInline, IInlineContainer { /// <summary> /// Initializes a new instance of the <see cref="BoldTextInline"/> class. /// </summary> public BoldTextInline() : base(MarkdownInlineType.Bold) { } /// <summary> /// Get...
BoldTextInline
csharp
ServiceStack__ServiceStack
ServiceStack/tests/CheckWebCore/ContactServices.cs
{ "start": 4008, "end": 4290 }
public enum ____ { Action, Adventure, Comedy, Drama, } } } namespace ServiceInterface { using ServiceModel; using ServiceModel.Types;
FilmGenres
csharp
jellyfin__jellyfin
MediaBrowser.Controller/QuickConnect/IQuickConnect.cs
{ "start": 297, "end": 1856 }
public interface ____ { /// <summary> /// Gets a value indicating whether quick connect is enabled or not. /// </summary> bool IsEnabled { get; } /// <summary> /// Initiates a new quick connect request. /// </summary> /// <param name="authorizationInf...
IQuickConnect