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
microsoft__PowerToys
src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.ValueGenerator/Helper/QueryHelper.cs
{ "start": 468, "end": 7938 }
internal static class ____ { /// <summary> /// a list of all value generator descriptions /// </summary> private static readonly string GeneratorDescriptionUuid = Resources.generator_description_uuid; private static readonly string GeneratorDescriptionUuidv1 = Resources.gener...
QueryHelper
csharp
abpframework__abp
framework/src/Volo.Abp.UI.Navigation/Volo/Abp/Ui/Navigation/ApplicationMenuGroupList.cs
{ "start": 90, "end": 639 }
public class ____: List<ApplicationMenuGroup> { public ApplicationMenuGroupList() { } public ApplicationMenuGroupList(int capacity) : base(capacity) { } public ApplicationMenuGroupList(IEnumerable<ApplicationMenuGroup> collection) : base(collection) { } publ...
ApplicationMenuGroupList
csharp
HangfireIO__Hangfire
src/Hangfire.Core/Dashboard/Pages/AwaitingJobsPage.cshtml.cs
{ "start": 1955, "end": 26054 }
internal partial class ____ : RazorPage { #line hidden public override void Execute() { WriteLiteral("\r\n"); #line 13 "..\..\Dashboard\Pages\AwaitingJobsPage.cshtml" Layout = new LayoutPage(Strings.AwaitingJobsPage_Title); int from, perPage; ...
AwaitingJobsPage
csharp
louthy__language-ext
LanguageExt.Core/Effects/IO/DSL/IOBindMap.cs
{ "start": 729, "end": 1370 }
record ____<A, B, C>(A Value, Func<A, K<IO, B>> Ff, Func<B, K<IO, C>> Fg) : InvokeSyncIO<C> { public override IO<D> Map<D>(Func<C, D> f) => new IOBindBindMap<A, B, C, D>(Value, Ff, Fg, f); public override IO<D> Bind<D>(Func<C, K<IO, D>> f) => new IOBindBind<A, B, D>(Value, Ff, x => Fg(x).Bind(f...
IOBindBind
csharp
OrchardCMS__OrchardCore
src/OrchardCore/OrchardCore.DisplayManagement/ShapeFactoryExtensions.cs
{ "start": 194, "end": 3721 }
public static class ____ { private static readonly ConcurrentDictionary<Type, Type> _proxyTypesCache = []; private static readonly ProxyGenerator _proxyGenerator = new(); private static readonly Func<ValueTask<IShape>> _newShape = () => ValueTask.FromResult<IShape>(new Shape()); /// <summary> /// C...
ShapeFactoryExtensions
csharp
getsentry__sentry-dotnet
test/Sentry.Tests/Internals/MainExceptionProcessorTests.cs
{ "start": 90, "end": 11599 }
private class ____ { public ISentryStackTraceFactory SentryStackTraceFactory { get; set; } = Substitute.For<ISentryStackTraceFactory>(); public SentryOptions SentryOptions { get; set; } = new(); public MainExceptionProcessor GetSut() => new(SentryOptions, () => SentryStackTraceFactory); ...
Fixture
csharp
kgrzybek__modular-monolith-with-ddd
src/API/CompanyName.MyMeetings.API/Configuration/Authorization/HasPermissionAuthorizationHandler.cs
{ "start": 337, "end": 1894 }
internal class ____ : AttributeAuthorizationHandler< HasPermissionAuthorizationRequirement, HasPermissionAttribute> { private readonly IExecutionContextAccessor _executionContextAccessor; private readonly IUserAccessModule _userAccessModule; public HasPermissionAuthorizationHandler(...
HasPermissionAuthorizationHandler
csharp
dotnet__efcore
test/EFCore.Relational.Specification.Tests/TestUtilities/PrecompiledQueryTestHelpers.cs
{ "start": 1291, "end": 12510 }
public static class ____ { public static async Task Test(DbContextOptions dbContextOptions) { {{sourceCode}} } } """; return FullSourceTest( source, dbContextOptions, dbContextType, interceptorCodeAsserter, errorAsserter, testOutputHelper, alwaysPrintGeneratedSources, callerN...
TestContainer
csharp
abpframework__abp
framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs
{ "start": 2666, "end": 3478 }
public abstract class ____< TAppService, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput> : AbpCrudPageBase< TAppService, TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, T...
AbpCrudPageBase
csharp
dotnet__maui
src/Essentials/src/Battery/Battery.ios.watchos.cs
{ "start": 277, "end": 3603 }
partial class ____ : IBattery { #if !__WATCHOS__ NSObject levelObserver; NSObject stateObserver; #endif NSObject saverStatusObserver; void StartEnergySaverListeners() { saverStatusObserver = NSNotificationCenter.DefaultCenter.AddObserver(NSProcessInfo.PowerStateDidChangeNotification, PowerChangedNotific...
BatteryImplementation
csharp
dotnet__aspire
src/Aspire.Cli/Commands/DeployCommand.cs
{ "start": 391, "end": 3113 }
internal sealed class ____ : PipelineCommandBase { private readonly Option<bool> _clearCacheOption; public DeployCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdat...
DeployCommand
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 1186827, "end": 1188798 }
public partial class ____ : global::System.IEquatable<ShowEnvironmentCommandQueryResult>, IShowEnvironmentCommandQueryResult { public ShowEnvironmentCommandQueryResult(global::ChilliCream.Nitro.CommandLine.Cloud.Client.IShowEnvironmentCommandQuery_Node? node) { Node = node; } ...
ShowEnvironmentCommandQueryResult
csharp
EventStore__EventStore
src/KurrentDB.Core/Messages/ElectionMessageDtos.cs
{ "start": 1801, "end": 3055 }
public class ____ { public Guid ServerId { get; set; } public string ServerHttpAddress { get; set; } public int ServerHttpPort { get; set; } public int View { get; set; } public int EpochNumber { get; set; } public long EpochPosition { get; set; } public Guid EpochId { get; set; } public Guid EpochLea...
PrepareOkDto
csharp
spectreconsole__spectre.console
src/Spectre.Console.Tests/Unit/Rendering/Borders/TableBorderTests.cs
{ "start": 11822, "end": 12575 }
public sealed class ____ { [Fact] public void Should_Return_Safe_Border() { // Given, When var border = TableBorder.SimpleHeavy.GetSafeBorder(safe: true); // Then border.ShouldBeSameAs(TableBorder.Simple); ...
TheSafeGetBorderMethod
csharp
dotnet__aspnetcore
src/Servers/Kestrel/Transport.NamedPipes/test/WebHostTests.cs
{ "start": 865, "end": 3156 }
public class ____ : LoggedTest { [ConditionalFact] [OSSkipCondition(OperatingSystems.Windows, SkipReason = "Test expects not supported error. Skip Windows because named pipes supports Windows.")] public async Task ListenNamedPipeEndpoint_NonWindowsOperatingSystem_ErrorAsync() { // Arrange ...
WebHostTests
csharp
EventStore__EventStore
src/SchemaRegistry/KurrentDB.SchemaRegistry.Tests/Modules/Schemas/Validators/ChangeSchemaCompatibilityModeRequestValidatorTests.cs
{ "start": 401, "end": 2086 }
public class ____ { // Faker Faker { get; } = new(); // // [Test] // public void validate_with_accepted_values_should_be_valid() { // var request = new ChangeSchemaCompatibilityModeRequest { // SchemaName = Faker.Random.AlphaNumeric(10), // Compatibility = Faker.Random.Enu...
ChangeSchemaCompatibilityModeRequestValidatorTests
csharp
dotnet__maui
src/Controls/tests/BindingSourceGen.UnitTests/BindingRepresentationGenTests.cs
{ "start": 2261, "end": 4407 }
class ____ { public Button? Button { get; set; } } """; var codeGeneratorResult = SourceGenHelpers.Run(source); var expectedBinding = new BindingInvocationDescription( new InterceptableLocationRecord(1, "serializedData"), new SimpleLocation(@"Path\To\Program.cs", 3, 7), ...
Foo
csharp
dotnet__maui
src/Controls/tests/Core.UnitTests/StyleSheets/BaseClassSelectorTests.cs
{ "start": 308, "end": 2976 }
public class ____ { IStyleSelectable Page; IStyleSelectable StackLayout => Page.Children.First(); IStyleSelectable Label0 => StackLayout.Children.First(); IStyleSelectable Label1 => AbsoluteLayout0.Children.First(); IStyleSelectable CustomLabel0 => StackLayout.Children.Skip(1).First(); IStyleSelectable Cus...
BaseClassSelectorTests
csharp
fluentassertions__fluentassertions
Src/FluentAssertions/Formatting/Formatter.cs
{ "start": 418, "end": 7249 }
public static class ____ { #region Private Definitions private static readonly List<IValueFormatter> CustomFormatters = []; private static readonly List<IValueFormatter> DefaultFormatters = [ new PassthroughValueFormatter(), new XmlReaderValueFormatter(), new XmlNodeFormatter()...
Formatter
csharp
unoplatform__uno
src/Uno.UWP/Devices/Sensors/Magnetometer.Android.cs
{ "start": 153, "end": 1657 }
public partial class ____ { private Sensor? _sensor; private uint _reportInterval = SensorHelpers.UiReportingInterval; private MagnetometerListener? _listener; /// <summary> /// Gets or sets the current report interval for the magnetometer. /// </summary> public uint ReportInterval { get => _repor...
Magnetometer
csharp
NSubstitute__NSubstitute
tests/NSubstitute.Acceptance.Specs/EventRaising.cs
{ "start": 13723, "end": 15141 }
public interface ____ { event Action ActionEvent; event Action<int> ActionEventWithOneArg; event VoidDelegateWithEventArgs DelegateEventWithEventArgs; event VoidDelegateWithoutArgs DelegateEventWithoutArgs; event VoidDelegateWithAnArg DelegateEventWithAnArg; event Voi...
IEventSamples
csharp
microsoft__garnet
test/Garnet.test/GarnetServerConfigTests.cs
{ "start": 569, "end": 59842 }
public class ____ { [Test] public void DefaultConfigurationOptionsCoverage() { string json; var streamProvider = StreamProviderFactory.GetStreamProvider(FileLocationType.EmbeddedResource, null, Assembly.GetExecutingAssembly()); using (var stream = streamPr...
GarnetServerConfigTests
csharp
abpframework__abp
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.Host/MyProjectNameHttpApiHostModule.cs
{ "start": 1605, "end": 8380 }
public class ____ : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { var configuration = context.Services.GetConfiguration(); var hostingEnvironment = context.Services.GetHostingEnvironment(); ConfigureConventionalControllers(); Configure...
MyProjectNameHttpApiHostModule
csharp
dotnetcore__FreeSql
Examples/base_entity/Program.cs
{ "start": 3540, "end": 3771 }
public class ____ { [Column(IsIdentity = true)] public int Id { get; set; } [Column(MapType = typeof(JToken))] public Customer Customer { get; set; } }
SomeEntity
csharp
cake-build__cake
src/Cake.Core/Scripting/CodeGen/GenericParameterConstraintEmitter.cs
{ "start": 2085, "end": 3257 }
struct ____ will return System.ValueType. // it's not necessarily to emit that as syntax in a generated method if (constraint == typeof(System.ValueType)) { continue; } t...
constraint
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Bson/Serialization/Serializers/BsonArraySerializer.cs
{ "start": 725, "end": 3648 }
public sealed class ____ : BsonValueSerializerBase<BsonArray>, IBsonArraySerializer { // private static fields private static BsonArraySerializer __instance = new BsonArraySerializer(); // constructors /// <summary> /// Initializes a new instance of the BsonArraySerializer c...
BsonArraySerializer
csharp
dotnet__aspnetcore
src/OpenApi/src/Transformers/DelegateOpenApiOperationTransformer.cs
{ "start": 179, "end": 810 }
internal sealed class ____ : IOpenApiOperationTransformer { private readonly Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task> _transformer; public DelegateOpenApiOperationTransformer(Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task> transform...
DelegateOpenApiOperationTransformer
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Diagnostics/Diagnostic.Consts.cs
{ "start": 2233, "end": 2851 }
public static class ____ { public const string Style = nameof(Style); public const string SelectorResult = nameof(SelectorResult); public const string Key = nameof(Key); public const string ThemeVariant = nameof(ThemeVariant); public const string Result = nameof(Result); ...
Tags
csharp
nunit__nunit
src/NUnitFramework/tests/Attributes/ParameterizedTestFixtureTests.cs
{ "start": 2581, "end": 4893 }
public class ____ { private TestSuite _fixture; [SetUp] public void MakeFixture() { _fixture = TestBuilder.MakeFixture(typeof(NUnit.TestData.ParameterizedTestFixture)); } [Test] public void TopLevelSuiteIsNamedCorrectly() { As...
ParameterizedTestFixtureNamingTests
csharp
SixLabors__ImageSharp
src/ImageSharp/Processing/Processors/Normalization/GrayscaleLevelsRowOperation{TPixel}.cs
{ "start": 541, "end": 2392 }
struct ____<TPixel> : IRowOperation<Vector4> where TPixel : unmanaged, IPixel<TPixel> { private readonly Configuration configuration; private readonly Rectangle bounds; private readonly IMemoryOwner<int> histogramBuffer; private readonly Buffer2D<TPixel> source; private readonly int luminanceLe...
GrayscaleLevelsRowOperation
csharp
dotnet__orleans
test/Benchmarks/Ping/StatelessWorkerBenchmark.cs
{ "start": 282, "end": 3495 }
public class ____ : IDisposable { private readonly IHost _host; private readonly IGrainFactory _grainFactory; public StatelessWorkerBenchmark() { _host = new HostBuilder() .UseOrleans((_, siloBuilder) => siloBuilder .UseLocalhostClustering()) .Build(); ...
StatelessWorkerBenchmark
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/test/Types.Tests/Configuration/TypeDiscoveryHandlerTests.cs
{ "start": 118, "end": 884 }
public class ____ { // https://github.com/ChilliCream/graphql-platform/issues/5942 [Fact] public async Task Ensure_Inputs_Are_Not_Used_As_Outputs() { var schema = await new ServiceCollection() .AddGraphQLServer() .AddQueryType<Query>() ...
TypeDiscoveryHandlerTests
csharp
dotnet__efcore
src/EFCore/Metadata/Internal/TypeBaseExtensions.cs
{ "start": 647, "end": 3421 }
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 ...
TypeBaseExtensions
csharp
dotnet__orleans
test/Grains/TestGrainInterfaces/GetGrainInterfaces.cs
{ "start": 577, "end": 672 }
public interface ____ : IGrainWithStringKey { Task<bool> Foo(); }
IStringGrain
csharp
smartstore__Smartstore
src/Smartstore.Web.Common/Models/Catalog/IListActions.cs
{ "start": 654, "end": 761 }
public enum ____ { Mini, Grid, List, Compare } }
ProductSummaryViewMode
csharp
HangfireIO__Hangfire
src/Hangfire.Core/States/AwaitingState.cs
{ "start": 2490, "end": 3117 }
class ____ /// the specified parent job id and next state. /// </summary> /// <param name="parentId">The identifier of a background job to wait for.</param> /// <param name="nextState">The next state for the continuation.</param> // TODO: Warning inconsistency - everywhere else i...
with
csharp
dotnet__efcore
test/EFCore.Cosmos.FunctionalTests/ReloadTest.cs
{ "start": 210, "end": 1598 }
public class ____ : IClassFixture<ReloadTest.CosmosReloadTestFixture> { public static readonly IEnumerable<object[]> IsAsyncData = [[false], [true]]; private void AssertSql(params string[] expected) => Fixture.TestSqlLoggerFactory.AssertBaseline(expected); protected void ClearLog() => Fixt...
ReloadTest
csharp
dotnet__orleans
src/api/Orleans.Transactions.TestKit.Base/Orleans.Transactions.TestKit.Base.cs
{ "start": 63917, "end": 65781 }
partial class ____ : global::Orleans.Serialization.Codecs.IFieldCodec<Invokable_IFaultInjectionTransactionTestGrain_GrainReference_8389970A>, global::Orleans.Serialization.Codecs.IFieldCodec { public Codec_Invokable_IFaultInjectionTransactionTestGrain_GrainReference_8389970A(global::Orleans.Serialization.S...
Codec_Invokable_IFaultInjectionTransactionTestGrain_GrainReference_8389970A
csharp
neuecc__MessagePack-CSharp
tests/MessagePack.SourceGenerator.Tests/Resources/SystemCollectionsObjectModelCollection/Formatters.MessagePack.GeneratedMessagePackResolver.AFormatter.g.cs
{ "start": 323, "end": 1687 }
internal sealed class ____ : MsgPack::Formatters.IMessagePackFormatter<global::A> { public void Serialize(ref MsgPack::MessagePackWriter writer, global::A value, MsgPack::MessagePackSerializerOptions options) { if (value == null) { writer.WriteNil(); return; } MsgPack::IFormatterResolver form...
AFormatter
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.Bson.Tests/Serialization/Serializers/AnimalHierarchyWithAttributesTests.cs
{ "start": 1409, "end": 4558 }
public class ____ : Cat { } [Fact] public void TestDeserializeBear() { var document = new BsonDocument { { "_id", ObjectId.Empty }, { "_t", new BsonArray { "Animal", "Bear" } }, { "Age", 123 }, ...
Lion
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Animation/IAnimator.cs
{ "start": 186, "end": 628 }
internal interface ____ : IList<AnimatorKeyFrame> { /// <summary> /// The target property. /// </summary> AvaloniaProperty? Property {get; set;} /// <summary> /// Applies the current KeyFrame group to the specified control. /// </summary> IDisposable?...
IAnimator
csharp
dotnetcore__WTM
demo/WalkingTec.Mvvm.Demo/Areas/_Admin/ViewModels/FrameworkGroupVMs/FrameworkGroupMDVM.cs
{ "start": 391, "end": 3351 }
public class ____ : BaseVM { [Display(Name = "_Admin.GroupCode")] public string GroupCode { get; set; } public List<GroupDp> DpLists { get; set; } public FrameworkGroupMDVM() { } protected override void InitVM() { DpLists = new List<Grou...
FrameworkGroupMDVM
csharp
EventStore__EventStore
src/KurrentDB.Core.Tests/Http/PersistentSubscription/feed.cs
{ "start": 3780, "end": 5379 }
class ____(string contentType) : SpecificationWithLongFeed { private JObject _feed; private List<JToken> _entries; protected override async Task When() { var allMessagesFeedLink = String.Format("{0}/{1}", _subscriptionEndpoint, _numberOfEvents); _feed = await GetJson<JObject>(allMessagesFeedLink, contentType); ...
when_retrieving_a_feed_with_events
csharp
npgsql__efcore.pg
src/EFCore.PG/Infrastructure/Internal/NpgsqlModelValidator.cs
{ "start": 632, "end": 11835 }
public class ____ : RelationalModelValidator { /// <summary> /// The backend version to target. /// </summary> private readonly Version _postgresVersion; /// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the s...
NpgsqlModelValidator
csharp
RicoSuter__NSwag
src/NSwag.Generation.Tests/Processors/OperationSummaryAndDescriptionProcessorTests.cs
{ "start": 340, "end": 4138 }
public class ____ { [OpenApiOperation("\r\n\t This method has a summary. \r\n\t", "\r\n\t This method has a description. \r\n\t")] public void DocumentedMethodWithOpenApiOperationAttribute() { } [Description("\r\n\t This method has a description. \r\n...
DocumentedController
csharp
grandnode__grandnode2
src/Web/Grand.Web.Admin/Models/Customers/CustomerTagProductModel.cs
{ "start": 530, "end": 2012 }
public class ____ : BaseModel { [GrandResourceDisplayName("Admin.Catalog.Products.List.SearchProductName")] public string SearchProductName { get; set; } [GrandResourceDisplayName("Admin.Catalog.Products.List.SearchCategory")] [UIHint("Category")] public string SearchCatego...
AddProductModel
csharp
dotnet__aspnetcore
src/Validation/test/Microsoft.Extensions.Validation.GeneratorTests/ValidationsGenerator.SkipValidation.cs
{ "start": 17670, "end": 17836 }
public class ____ { [Range(10, 100)] public int IntegerWithRange { get; set; } = 10; } // This should have generated validation code [SkipValidation]
ComplexType
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/Issue18740Entry.xaml.cs
{ "start": 42, "end": 161 }
public partial class ____ : ContentPage { public Issue18740Entry() { InitializeComponent(); } } }
Issue18740Entry
csharp
DuendeSoftware__IdentityServer
identity-server/test/IdentityServer.IntegrationTests/Common/BrowserHandler.cs
{ "start": 363, "end": 3058 }
public class ____ : DelegatingHandler { private CookieContainer _cookieContainer = new CookieContainer(); public bool AllowCookies { get; set; } = true; public bool AllowAutoRedirect { get; set; } = true; public int ErrorRedirectLimit { get; set; } = 20; public int StopRedirectingAfter { get; set; ...
BrowserHandler
csharp
ChilliCream__graphql-platform
src/HotChocolate/Data/test/Data.Tests/PagingHelperIntegrationTests.cs
{ "start": 46446, "end": 46996 }
public static class ____ { [UsePaging] public static async Task<Connection<Product>> GetProducts( [Parent] Brand brand, ProductsByBrandDataLoader dataLoader, ISelection selection, PagingArguments arguments, CancellationToken cancellationTok...
BrandExtensionsWithSelect
csharp
dotnet__efcore
test/EFCore.Design.Tests/Migrations/Design/CSharpMigrationsGeneratorTest.ModelSnapshot.cs
{ "start": 20158, "end": 20320 }
private class ____ : Animal { public Animal FavoriteAnimal { get; set; } public ICollection<Pet> Pets { get; } = new List<Pet>(); }
Human
csharp
xunit__xunit
src/xunit.v2.tests/Sdk/Frameworks/TheoryDiscovererTests.cs
{ "start": 12719, "end": 12862 }
class ____ { [Theory(Skip = "I have data")] [InlineData(42)] [InlineData(2112)] public void TestMethod(int value) { } }
SkippedWithData
csharp
dotnet__efcore
test/EFCore.Tests/ChangeTracking/Internal/StateManagerTest.cs
{ "start": 19541, "end": 26558 }
private class ____ { public int? Id1 { get; set; } public int? Id2 { get; set; } public int? AlternateId1 { get; set; } public int? AlternateId2 { get; set; } public string Value { get; set; } public CompositeKeyOwned Owned { get; set; } } [ConditionalFact...
CompositeKey
csharp
nunit__nunit
src/NUnitFramework/framework/Exceptions/ResultStateException.cs
{ "start": 304, "end": 1386 }
public abstract class ____ : Exception { /// <param name="message">The error message that explains /// the reason for the exception</param> protected ResultStateException(string message) : base(message) { } /// <param name="message">The error message that explains ...
ResultStateException
csharp
bitwarden__server
src/Billing/Models/FreshdeskWebhookModel.cs
{ "start": 164, "end": 462 }
public class ____ { [JsonPropertyName("ticket_id")] public string TicketId { get; set; } [JsonPropertyName("ticket_contact_email")] public string TicketContactEmail { get; set; } [JsonPropertyName("ticket_tags")] public string TicketTags { get; set; } }
FreshdeskWebhookModel
csharp
dotnet__aspnetcore
src/Mvc/Mvc.ViewFeatures/test/Rendering/HtmlHelperListBoxExtensionsTest.cs
{ "start": 314, "end": 8095 }
public class ____ { private static readonly List<SelectListItem> BasicSelectList = new List<SelectListItem> { new SelectListItem("Zero", "0"), new SelectListItem("One", "1"), new SelectListItem("Two", "2"), new SelectListItem("Three", "3"), }; [Fa...
HtmlHelperListBoxExtensionsTest
csharp
microsoft__PowerToys
src/modules/launcher/Wox.Plugin/ISettingProvider.cs
{ "start": 326, "end": 552 }
public interface ____ { Control CreateSettingPanel(); void UpdateSettings(PowerLauncherPluginSettings settings); IEnumerable<PluginAdditionalOption> AdditionalOptions { get; } } }
ISettingProvider
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types/Configuration/RegisteredType.cs
{ "start": 172, "end": 2615 }
partial class ____ : IHasRuntimeType { private readonly TypeRegistry _typeRegistry; private readonly TypeLookup _typeLookup; private List<TypeDependency>? _conditionals; public RegisteredType( TypeSystemObject type, bool isInferred, TypeRegistry typeRegistry, TypeLookup...
RegisteredType
csharp
dotnetcore__FreeSql
Extensions/FreeSql.Extensions.BaseEntity/BaseEntityAsync.cs
{ "start": 753, "end": 2058 }
public abstract class ____<TEntity, TKey> : BaseEntityAsync<TEntity> where TEntity : class { static BaseEntityAsync() { var keyType = typeof(TKey).NullableTypeOrThis(); if (keyType == typeof(int) || keyType == typeof(long)) ConfigEntity(typeof(TEntity), t => t...
BaseEntityAsync
csharp
CommunityToolkit__Maui
src/CommunityToolkit.Maui.UnitTests/Views/Popup/PopupPageTests.cs
{ "start": 20593, "end": 20917 }
sealed class ____ : IPopupOptions { public bool CanBeDismissedByTappingOutsideOfPopup { get; set; } public Color PageOverlayColor { get; set; } = Colors.Transparent; public Action? OnTappingOutsideOfPopup { get; set; } public Shape? Shape { get; set; } public Shadow? Shadow { get; set; } = null; } }
MockPopupOptions
csharp
EventStore__EventStore
src/KurrentDB.Core/TransactionLog/ITransactionFileChaser.cs
{ "start": 341, "end": 543 }
public interface ____ : IDisposable { ICheckpoint Checkpoint { get; } void Open(); ValueTask<SeqReadResult> TryReadNext(CancellationToken token); void Close(); void Flush(); }
ITransactionFileChaser
csharp
reactiveui__ReactiveUI
src/ReactiveUI/ReactiveObject/ReactiveObject.cs
{ "start": 565, "end": 4675 }
public class ____ : IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject { private bool _propertyChangingEventsSubscribed; private bool _propertyChangedEventsSubscribed; /// <summary> /// Initializes a new instance of the <see cref="ReactiveObject"/> class. /// ...
ReactiveObject
csharp
pythonnet__pythonnet
src/testing/nonexportable.cs
{ "start": 62, "end": 127 }
class ____ not be visible to Python [PyExport(false)]
should
csharp
EventStore__EventStore
src/KurrentDB.Core/TransactionLog/Scavenging/Interfaces/IChunkManagerForChunkExecutor.cs
{ "start": 829, "end": 970 }
public interface ____ { ValueTask<bool> SwitchInChunks(IReadOnlyList<string> locators, CancellationToken token); }
IChunkManagerForChunkRemover
csharp
dotnet__maui
src/Controls/tests/Xaml.UnitTests/NativeViewsAndBindings.rt.xaml.cs
{ "start": 8061, "end": 8283 }
class ____ TNativeWrapper : View { if (BindableObjectProxy<TNativeView>.BindableObjectProxies.TryGetValue(nativeView, out BindableObjectProxy<TNativeView> proxy)) proxy.TransferAttachedPropertiesTo(wrapper); }
where
csharp
microsoft__semantic-kernel
dotnet/test/VectorData/AzureAISearch.ConformanceTests/TypeTests/AzureAISearchEmbeddingTypeTests.cs
{ "start": 323, "end": 531 }
public class ____(AzureAISearchEmbeddingTypeTests.Fixture fixture) : EmbeddingTypeTests<string>(fixture), IClassFixture<AzureAISearchEmbeddingTypeTests.Fixture> { public new
AzureAISearchEmbeddingTypeTests
csharp
OrchardCMS__OrchardCore
src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticsearchQueryService.cs
{ "start": 261, "end": 2807 }
public class ____ { private readonly ElasticsearchIndexManager _elasticIndexManager; private readonly ILogger _logger; public ElasticsearchQueryService( ElasticsearchIndexManager elasticIndexManager, ILogger<ElasticsearchQueryService> logger) { _elasticIndexManager = elasticInde...
ElasticsearchQueryService
csharp
dotnet__aspnetcore
src/Localization/Localization/src/Internal/AssemblyWrapper.cs
{ "start": 510, "end": 952 }
internal class ____ #pragma warning restore CA1852 // Seal internal types { public AssemblyWrapper(Assembly assembly) { ArgumentNullThrowHelper.ThrowIfNull(assembly); Assembly = assembly; } public Assembly Assembly { get; } public virtual string FullName => Assembly.FullName!; ...
AssemblyWrapper
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue2976.cs
{ "start": 1167, "end": 1310 }
class ____ by the native platform /// and is therefore faster than building a custom ViewCell in Microsoft.Maui.Controls. /// </summary>
provided
csharp
dotnet__orleans
src/Orleans.Core.Abstractions/Runtime/RequestContext.cs
{ "start": 6651, "end": 7925 }
struct ____ : IDisposable { private readonly Guid _originalReentrancyId; private readonly Guid _newReentrancyId; public ReentrancySection(Guid originalReentrancyId, Guid newReentrancyId) { _originalReentrancyId = originalReentrancyId; ...
ReentrancySection
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver/Authentication/Gssapi/Sspi/AuthIdentityFlag.cs
{ "start": 726, "end": 988 }
internal enum ____ { /// <summary> /// SEC_WINNT_AUTH_IDENTITY_ANSI /// </summary> Ansi = 0x1, /// <summary> /// SEC_WINNT_AUTH_IDENTITY_UNICODE /// </summary> Unicode = 0x2 } }
AuthIdentityFlag
csharp
NSubstitute__NSubstitute
src/NSubstitute/Raise.cs
{ "start": 105, "end": 3328 }
public static class ____ { /// <summary> /// Raise an event for an <c>EventHandler&lt;TEventArgs&gt;</c> event with the provided <paramref name="sender"/> and <paramref name="eventArgs"/>. /// </summary> public static EventHandlerWrapper<TEventArgs> EventWith<TEventArgs>(object sender, TEventArgs eventA...
Raise
csharp
dotnet__machinelearning
src/Microsoft.ML.Data/Evaluators/MulticlassClassificationEvaluator.cs
{ "start": 2414, "end": 7001 }
public enum ____ { [EnumValueDisplay(MulticlassClassificationEvaluator.AccuracyMicro)] AccuracyMicro, [EnumValueDisplay(MulticlassClassificationEvaluator.AccuracyMacro)] AccuracyMacro, [EnumValueDisplay(MulticlassClassificationEvaluator.LogLoss)] ...
Metrics
csharp
ChilliCream__graphql-platform
src/HotChocolate/Fusion-vnext/src/Fusion.Utilities/Rewriters/DocumentRewriter.cs
{ "start": 235, "end": 26469 }
public sealed class ____(ISchemaDefinition schema, bool removeStaticallyExcludedSelections = false) { private static readonly FieldNode s_typeNameField = new FieldNode( null, new NameNode(IntrospectionFieldNames.TypeName), null, [new DirectiveNode("fusion__emp...
DocumentRewriter
csharp
dotnet__BenchmarkDotNet
samples/BenchmarkDotNet.Samples/IntroUnicode.cs
{ "start": 623, "end": 1004 }
private class ____ : ManualConfig { public Config() => AddLogger(ConsoleLogger.Unicode); } [Benchmark] public long Foo() { long waitUntil = Stopwatch.GetTimestamp() + 1000; while (Stopwatch.GetTimestamp() < waitUntil) { } return wa...
Config
csharp
ChilliCream__graphql-platform
src/HotChocolate/Adapters/test/Adapters.Mcp.Tests/FusionIntegrationTests.cs
{ "start": 802, "end": 8998 }
public sealed class ____ : IntegrationTestBase { [Fact] public async Task ListTools_AfterSchemaUpdate_ReturnsUpdatedTools() { // arrange var storage = new TestOperationToolStorage(); await storage.AddOrUpdateToolAsync( new OperationToolDefinition( Utf8Grap...
FusionIntegrationTests
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Rendering/SceneGraph/CustomDrawOperation.cs
{ "start": 132, "end": 1068 }
public interface ____ : IEquatable<ICustomDrawOperation>, IDisposable { /// <summary> /// Gets the bounds of the visible content in the node in global coordinates. /// </summary> Rect Bounds { get; } /// <summary> /// Hit test the geometry in this node. /// <...
ICustomDrawOperation
csharp
microsoft__garnet
test/Garnet.test.cluster/RedirectTests/BaseCommand.cs
{ "start": 61009, "end": 61617 }
internal class ____ : BaseCommand { public override bool IsArrayCommand => false; public override bool ArrayResponse => false; public override string Command => nameof(GEOADD); public override string[] GetSingleSlotRequest() { var ssk = GetSingleSlotKeys; ...
GEOADD
csharp
dotnet__efcore
test/EFCore.Relational.Tests/Migrations/Internal/MigrationsModelDifferTest.cs
{ "start": 404501, "end": 413744 }
protected class ____; [ConditionalFact] public void SeedData_and_PK_rename() => Execute( _ => { }, source => source.Entity( "EntityWithTwoProperties", x => { x.Property<int>("Key"); x.Propert...
SomeOwnedEntity
csharp
scriban__scriban
src/Scriban/Runtime/CustomFunction.Generated.cs
{ "start": 37481, "end": 38322 }
private partial class ____ : DynamicCustomFunction { private delegate bool InternalDelegate(string arg0); private readonly InternalDelegate _delegate; public Functionbool_string(MethodInfo method) : base(method) { _delegate = (InternalDelegate)me...
Functionbool_string
csharp
ServiceStack__ServiceStack
ServiceStack.Aws/src/ServiceStack.Aws/DynamoDb/DynamoCodes.cs
{ "start": 4130, "end": 4400 }
public class ____ : AttributeBase { public int ReadCapacityUnits { get; set; } public int WriteCapacityUnits { get; set; } } [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
ProvisionedThroughputAttribute
csharp
dotnet__efcore
test/EFCore.Specification.Tests/TestUtilities/QueryAsserter.cs
{ "start": 78987, "end": 80415 }
private class ____(QueryTrackingBehavior queryTrackingBehavior) : ExpressionVisitor { private static readonly MethodInfo AsNoTrackingMethodInfo = typeof(EntityFrameworkQueryableExtensions).GetTypeInfo() .GetDeclaredMethod(nameof(EntityFrameworkQueryableExtensions.AsNoTracking))!;...
TrackingRewriter
csharp
dotnetcore__FreeSql
Providers/FreeSql.Provider.KingbaseES/Curd/KingbaseESSelect.cs
{ "start": 19414, "end": 19988 }
class ____ T9 : class { public KingbaseESSelect(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression, object dywhere) : base(orm, commonUtils, commonExpression, dywhere) { } public override string ToSql(string field = null) => KingbaseESSelect<T1>.ToSqlStatic(_commonUtils, _commo...
where
csharp
microsoft__garnet
libs/server/Objects/List/ListObject.cs
{ "start": 805, "end": 1098 }
public enum ____ : byte { /// <summary> /// Left or head /// </summary> Left, /// <summary> /// Right or tail /// </summary> Right, Unknown, } /// <summary> /// List /// </summary>
OperationDirection
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/AttributeFiltersTestAsync.cs
{ "start": 12082, "end": 12663 }
public class ____ : RequestFilterAsyncAttribute { public ExecutedFirstAsyncAttribute() { Priority = int.MinValue; } public override Task ExecuteAsync(IRequest req, IResponse res, object requestDto) { var dto = (AttributeFilteredAsync)requestDto; ...
ExecutedFirstAsyncAttribute
csharp
dotnet__efcore
test/EFCore.Specification.Tests/TestModels/SnapshotMonsterContext.cs
{ "start": 6677, "end": 7021 }
public class ____ : IOrderLine { public int OrderId { get; set; } public int ProductId { get; set; } public int Quantity { get; set; } = 1; public string ConcurrencyToken { get; set; } public virtual IAnOrder Order { get; set; } public virtual IProduct Product { get;...
OrderLine
csharp
dotnet__orleans
src/Orleans.TestingHost/InProcess/InProcessMembershipTable.cs
{ "start": 333, "end": 2421 }
internal sealed class ____(string clusterId) : IMembershipTable, IGatewayListProvider { private readonly Table _table = new(); private readonly string _clusterId = clusterId; public TimeSpan MaxStaleness => TimeSpan.Zero; public bool IsUpdatable => true; public Task InitializeMembershipTable(bool ...
InProcessMembershipTable
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver/Linq/Linq3Implementation/Ast/AstNode.cs
{ "start": 750, "end": 1142 }
internal abstract class ____ { public abstract AstNodeType NodeType { get; } public abstract AstNode Accept(AstNodeVisitor visitor); public abstract BsonValue Render(); public override string ToString() { var jsonWriterSettings = new JsonWriterSettings(); ...
AstNode
csharp
CommunityToolkit__dotnet
tests/CommunityToolkit.Mvvm.Internals.UnitTests/Test_Dictionary2.cs
{ "start": 429, "end": 5164 }
public class ____ { private static void AddItems<T>(T[] keys) where T : IEquatable<T> { object[] values = Enumerable.Range(0, keys.Length).Select(static x => new object()).ToArray(); Dictionary2<T, object> dictionary = new(); // Go through all keys once for (int i = 0; ...
Test_Dictionary2
csharp
MassTransit__MassTransit
tests/MassTransit.Azure.Table.Tests/AzureTableInMemoryTestFixture.cs
{ "start": 232, "end": 2126 }
public abstract class ____ : InMemoryTestFixture { protected readonly string ConnectionString; protected readonly TableClient TestCloudTable; protected readonly string TestTableName; protected AzureTableInMemoryTestFixture() { ConnectionString = Configura...
AzureTableInMemoryTestFixture
csharp
ServiceStack__ServiceStack
ServiceStack/src/ServiceStack.NetFramework/SmartThreadPool/AppSelfHostBase.cs
{ "start": 192, "end": 4525 }
public abstract class ____ : AppHostHttpListenerBase { private readonly ILog log = LogManager.GetLogger(typeof(AppSelfHostBase)); private readonly AutoResetEvent listenForNextRequest = new(initialState:false); private readonly Amib.Threading.SmartThreadPool threadPoolManager; ...
AppSelfHostBase
csharp
MassTransit__MassTransit
tests/MassTransit.Tests/Pipeline/ContentFilter_Specs.cs
{ "start": 1511, "end": 1853 }
class ____ : IConsumer<TestMessage> { int _count; public int Count => _count; public Task Consume(ConsumeContext<TestMessage> context) { Interlocked.Increment(ref _count); return Task.CompletedTask; } ...
MyConsumer
csharp
microsoft__PowerToys
src/modules/EnvironmentVariables/EnvironmentVariablesUILib/Telemetry/TelemetryInstance.cs
{ "start": 278, "end": 387 }
public static class ____ { public static ITelemetry Telemetry { get; set; } } }
TelemetryInstance
csharp
smartstore__Smartstore
src/Smartstore.Core/Platform/Search/Facets/FacetGroup.cs
{ "start": 74, "end": 417 }
public enum ____ { Unknown = -1, Category, Brand, Price, Rating, DeliveryTime, Availability, NewArrivals, Attribute, Variant, Forum, Customer, Date } [DebuggerDisplay("Key: {Key}, Label: {Label}, Kind: {...
FacetGroupKind
csharp
protobuf-net__protobuf-net
src/Examples/Issues/Issue41.cs
{ "start": 156, "end": 375 }
public class ____ { [ProtoMember(1, Name = "PropA")] public string PropA { get; set; } [ProtoMember(2, Name = "PropB")] public string PropB { get; set; } } [ProtoContract]
A
csharp
protobuf-net__protobuf-net
assorted/Net11_Poco/DAL.cs
{ "start": 2553, "end": 3837 }
public class ____ #if REMOTING : ISerializable #endif #if PLAT_XMLSERIALIZER , IXmlSerializable #endif { public const bool MASTER_GROUP = false; [ProtoMember(1, DataFormat = Database.SubObjectFormat), Tag(1)] [XmlArray] public OrderList Orders; public DatabaseCompat...
DatabaseCompatRem
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/ScriptTests/SharpViewsTests.cs
{ "start": 578, "end": 753 }
public class ____ : IReturn<TemplateViewPageRequest> { public string Name { get; set; } } [Route("/view-pages-nested/{Name}")]
TemplateViewPageRequest
csharp
ServiceStack__ServiceStack
ServiceStack.Text/tests/ServiceStack.Text.Tests/AutoMappingTests.cs
{ "start": 16936, "end": 18085 }
public class ____ { public int Id { get; set; } public string ITN { get; set; } } [Test] public void Does_retain_null_properties() { var user = new User { FirstName = "Foo" }; var userDto = user.ConvertTo<UserFields>(); Assert.That(userDto.FirstName, Is.Equa...
CompanyInfoDto
csharp
dotnetcore__Util
src/Util.Ui.NgZorro/Components/Tables/Builders/Contents/ISelectCreateService.cs
{ "start": 110, "end": 757 }
public interface ____ { /// <summary> /// 创建表格列复选框 /// </summary> /// <param name="builder">表格单元格标签生成器</param> /// <param name="content">内容</param> void CreateCheckbox( TableColumnBuilder builder, IHtmlContent content ); /// <summary> /// 创建表格列单选框 /// </summary> /// <param name="...
ISelectCreateService
csharp
rabbitmq__rabbitmq-dotnet-client
projects/RabbitMQ.Client/IBasicProperties.cs
{ "start": 6719, "end": 7127 }
class ____, /// spanning the union of the functionality offered by versions /// 0-8, 0-8qpid, 0-9 and 0-9-1 of AMQP. /// </summary> /// <remarks> /// <para> /// Each property is readable, writable and clearable: a cleared /// property will not be transmitted over the wire. Properties on a ...
interface