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 | mysql-net__MySqlConnector | src/MySqlConnector.Logging.log4net/Log4netLoggerProvider.cs | {
"start": 138,
"end": 528
} | public sealed class ____ : IMySqlConnectorLoggerProvider
{
public IMySqlConnectorLogger CreateLogger(string name) => new Log4netLogger(LogManager.GetLogger(s_loggerAssembly, "MySqlConnector." + name));
private static readonly Assembly s_loggerAssembly = typeof(Log4netLogger).GetTypeInfo().Assembly;
private static r... | Log4netLoggerProvider |
csharp | dotnet__aspire | src/Aspire.Hosting.Azure.AppService/AzureAppServiceComputeResourceExtensions.cs | {
"start": 394,
"end": 1797
} | public static class ____
{
/// <summary>
/// Publishes the specified compute resource as an Azure App Service.
/// </summary>
/// <typeparam name="T">The type of the compute resource.</typeparam>
/// <param name="builder">The compute resource builder.</param>
/// <param name="configure">The conf... | AzureAppServiceComputeResourceExtensions |
csharp | bitwarden__server | test/IntegrationTestCommon/Factories/IdentityApplicationFactory.cs | {
"start": 521,
"end": 9266
} | public class ____ : WebApplicationFactoryBase<Startup>
{
public const string DefaultDeviceIdentifier = "92b9d953-b9b6-4eaf-9d3e-11d57144dfeb";
public const string DefaultUserEmail = "DefaultEmail@bitwarden.com";
public const string DefaultUserPasswordHash = "default_password_hash";
/// <summary>
//... | IdentityApplicationFactory |
csharp | files-community__Files | src/Files.App/Data/Items/ListedItem.cs | {
"start": 17508,
"end": 19583
} | public partial class ____ : ListedItem, IGitItem
{
private volatile int statusPropertiesInitialized = 0;
public bool StatusPropertiesInitialized
{
get => statusPropertiesInitialized == 1;
set => Interlocked.Exchange(ref statusPropertiesInitialized, value ? 1 : 0);
}
private volatile int commitProperti... | GitItem |
csharp | EventStore__EventStore | src/KurrentDB.Core/Messages/HttpMessage.cs | {
"start": 404,
"end": 467
} | partial class ____ {
[DerivedMessage]
public abstract | HttpMessage |
csharp | DuendeSoftware__IdentityServer | identity-server/hosts/UI/EntityFramework/Pages/Admin/ApiScopes/ApiScopeRepository.cs | {
"start": 585,
"end": 697
} | public class ____ : ApiScopeSummaryModel
{
public string? UserClaims { get; set; } = default!;
}
| ApiScopeModel |
csharp | dotnet__efcore | test/EFCore.Cosmos.FunctionalTests/Types/CosmosTemporalTypeTest.cs | {
"start": 371,
"end": 782
} | public class ____ : CosmosTypeFixtureBase<DateTime>
{
public override DateTime Value { get; } = new DateTime(2020, 1, 5, 12, 30, 45, DateTimeKind.Unspecified);
public override DateTime OtherValue { get; } = new DateTime(2022, 5, 3, 0, 0, 0, DateTimeKind.Unspecified);
protected override ITes... | DateTimeTypeFixture |
csharp | MonoGame__MonoGame | Tools/MonoGame.Effect.Compiler/Effect/MojoShader.cs | {
"start": 54375,
"end": 54583
} | public struct ____ {
/// MOJOSHADER_irExprInfo
public MOJOSHADER_irExprInfo info;
/// int
public int index;
}
[StructLayout(LayoutKind.Sequential)]
| MOJOSHADER_irTemp |
csharp | AvaloniaUI__Avalonia | src/Avalonia.Themes.Fluent/FluentTheme.xaml.cs | {
"start": 185,
"end": 349
} | public enum ____
{
Normal,
Compact
}
/// <summary>
/// Includes the fluent theme in an application.
/// </summary>
| DensityStyle |
csharp | microsoft__semantic-kernel | dotnet/test/VectorData/CosmosNoSql.ConformanceTests/TypeTests/CosmosNoSqlDataTypeTests.cs | {
"start": 1132,
"end": 1622
} | class ____ : DataTypeTests<string, DataTypeTests<string>.DefaultRecord>.Fixture
{
public override TestStore TestStore => CosmosNoSqlTestStore.Instance;
public override Type[] UnsupportedDefaultTypes { get; } =
[
typeof(byte),
typeof(short),
typeof(decima... | Fixture |
csharp | StackExchange__StackExchange.Redis | src/StackExchange.Redis/ResultProcessor.cs | {
"start": 103349,
"end": 105683
} | private static class ____
{
internal static readonly CommandBytes
Name = "name",
Consumers = "consumers",
Pending = "pending",
Idle = "idle",
LastDeliveredId = "last-delivered-id",
EntriesRead = "entries-... | KeyValuePairParser |
csharp | EventStore__EventStore | src/KurrentDB.SourceGenerators.Tests/Messaging/Cases/Message.cs | {
"start": 464,
"end": 626
} | enum ____ {
None,
Abstract,
AbstractWithGroup,
FileScopedNamespace,
Impartial,
ImpartialNested,
Nested,
NestedDerived,
Simple,
}
}
| TestMessageGroup |
csharp | DuendeSoftware__IdentityServer | identity-server/test/IdentityServer.IntegrationTests/Clients/Setup/Users.cs | {
"start": 275,
"end": 3290
} | internal static class ____
{
public static List<TestUser> Get()
{
var users = new List<TestUser>
{
new TestUser{SubjectId = "818727", Username = "alice", Password = "alice",
Claims = new Claim[]
{
new Claim(JwtClaimTypes.Name, "Alic... | Users |
csharp | JamesNK__Newtonsoft.Json | Src/Newtonsoft.Json.Tests/LinqToSql/Department.cs | {
"start": 1430,
"end": 1529
} | public partial class ____
{
[JsonConverter(typeof(DepartmentConverter))]
| Department |
csharp | LibreHardwareMonitor__LibreHardwareMonitor | LibreHardwareMonitorLib/Hardware/Cpu/Amd17Cpu.cs | {
"start": 20038,
"end": 22873
} | private class ____
{
private DateTime _sampleTime = new(0);
private DateTime _lastSampleTime = new(0);
private ulong _mperf = 0;
private ulong _aperf = 0;
private ulong _mperfLast = 0;
private ulong _aperfLast = 0;
private ulong _mperfDelta = 0;
privat... | CpuThread |
csharp | GtkSharp__GtkSharp | Source/Tools/GapiCodegen/GObjectVM.cs | {
"start": 13281,
"end": 13389
} | class ____ not supported yet ");
is_valid = false;
break;
}
}
return is_valid;
}
}
}
| is |
csharp | domaindrivendev__Swashbuckle.AspNetCore | test/WebSites/NswagClientExample/Controllers/SystemTextJsonAnimalsController.cs | {
"start": 200,
"end": 610
} | public class ____ : ControllerBase
{
[HttpPost]
[Produces("application/json")]
public void CreateAnimal([Required]SystemTextJsonAnimal animal)
{
throw new NotImplementedException();
}
}
[JsonPolymorphic(TypeDiscriminatorPropertyName = "animalType")]
[JsonDerivedType(typeof(SystemTextJsonCat... | SystemTextJsonAnimalsController |
csharp | nopSolutions__nopCommerce | src/Presentation/Nop.Web/Areas/Admin/Validators/Catalog/ProductAttributeValidator.cs | {
"start": 219,
"end": 621
} | public partial class ____ : BaseNopValidator<ProductAttributeModel>
{
public ProductAttributeValidator(ILocalizationService localizationService)
{
RuleFor(x => x.Name).NotEmpty().WithMessageAwait(localizationService.GetResourceAsync("Admin.Catalog.Attributes.ProductAttributes.Fields.Name.Required"));
... | ProductAttributeValidator |
csharp | dotnetcore__FreeSql | Providers/FreeSql.Provider.ShenTong/Curd/ShenTongSelect.cs | {
"start": 21047,
"end": 21618
} | class ____ T11 : class
{
public ShenTongSelect(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression, object dywhere) : base(orm, commonUtils, commonExpression, dywhere) { }
public override string ToSql(string field = null) => ShenTongSelect<T1>.ToSqlStatic(_commonUtils, _commonEx... | where |
csharp | MapsterMapper__Mapster | src/Mapster/TypeAdapterBuilder.cs | {
"start": 204,
"end": 5495
} | public class ____<TSource> : ITypeAdapterBuilder<TSource>
{
TSource Source { get; }
TSource IAdapterBuilder<TSource>.Source => Source;
TypeAdapterConfig Config { get; set; }
TypeAdapterConfig IAdapterBuilder.Config => Config;
private Dictionary<string, object>? _parameters;
... | TypeAdapterBuilder |
csharp | unoplatform__uno | src/SamplesApp/UITests.Shared/Windows_Devices/Midi/MidiDeviceInput.xaml.cs | {
"start": 1045,
"end": 9309
} | partial class ____ : UserControl
{
/// <summary>
/// Collection of active MidiInPorts
/// </summary>
private readonly List<MidiInPort> _midiInPorts;
/// <summary>
/// Device watcher for MIDI in ports
/// </summary>
private readonly MidiDeviceWatcher _midiInDeviceWatcher;
/// <summary>
/// Constr... | MidiDeviceInput |
csharp | dotnet__maui | src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue1908.cs | {
"start": 116,
"end": 511
} | public class ____ : _IssuesUITest
{
public Issue1908(TestDevice testDevice) : base(testDevice)
{
}
public override string Issue => "Image reuse";
[Test]
[Category(UITestCategories.Image)]
[Category(UITestCategories.Compatibility)]
public void Issue1908Test()
{
App.WaitForElement("OASIS1");
Ap... | Issue1908 |
csharp | microsoft__garnet | libs/storage/Tsavorite/cs/test/ObjectRecoveryTest2.cs | {
"start": 5921,
"end": 6609
} | public class ____ : BinaryObjectSerializer<MyKey>
{
public override void Serialize(ref MyKey key)
{
var bytes = System.Text.Encoding.UTF8.GetBytes(key.name);
writer.Write(4 + bytes.Length);
writer.Write(key.key);
writer.Write(bytes);
}
... | MyKeySerializer |
csharp | VerifyTests__Verify | src/ModuleInitDocs/AutoVerify.cs | {
"start": 1,
"end": 61
} | public class ____
{
#region StaticAutoVerify
| AutoVerify |
csharp | mysql-net__MySqlConnector | src/MySqlConnector/ColumnReaders/BinaryFloatColumnReader.cs | {
"start": 120,
"end": 391
} | internal sealed class ____ : ColumnReader
{
public static BinaryFloatColumnReader Instance { get; } = new();
public override object ReadValue(ReadOnlySpan<byte> data, ColumnDefinitionPayload columnDefinition) =>
MemoryMarshal.Read<float>(data);
}
| BinaryFloatColumnReader |
csharp | AutoMapper__AutoMapper | src/IntegrationTests/ValueTransformerTests.cs | {
"start": 6842,
"end": 7016
} | public class ____
{
[Key]
public int Id { get; set; }
public int Value { get; set; }
}
| Source |
csharp | cake-build__cake | src/Cake.Common.Tests/Unit/Build/AppVeyor/Data/AppVeyorCommitInfoTests.cs | {
"start": 1204,
"end": 1636
} | public sealed class ____
{
[Fact]
public void Should_Return_Correct_Value()
{
// Given
var info = new AppVeyorInfoFixture().CreateCommitInfo();
// When
var result = info.ExtendedMessage;
// Then... | TheExtendedMessageProperty |
csharp | dotnet__aspnetcore | src/Hosting/Abstractions/src/IApplicationLifetime.cs | {
"start": 642,
"end": 1545
} | public interface ____
{
/// <summary>
/// Triggered when the application host has fully started and is about to wait
/// for a graceful shutdown.
/// </summary>
CancellationToken ApplicationStarted { get; }
/// <summary>
/// Triggered when the application host is performing a graceful shutd... | IApplicationLifetime |
csharp | microsoft__PowerToys | src/settings-ui/Settings.UI/SettingsXAML/Controls/Dashboard/ShortcutConflictControl.xaml.cs | {
"start": 697,
"end": 5515
} | partial class ____ : UserControl, INotifyPropertyChanged
{
private static readonly ResourceLoader ResourceLoader = Helpers.ResourceLoaderInstance.ResourceLoader;
private static bool _telemetryEventSent;
public static readonly DependencyProperty AllHotkeyConflictsDataProperty =
... | ShortcutConflictControl |
csharp | microsoft__PowerToys | src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Calc/Helper/ISettingsInterface.cs | {
"start": 270,
"end": 500
} | public interface ____
{
public CalculateEngine.TrigMode TrigUnit { get; }
public bool InputUseEnglishFormat { get; }
public bool OutputUseEnglishFormat { get; }
public bool CloseOnEnter { get; }
}
| ISettingsInterface |
csharp | nopSolutions__nopCommerce | src/Presentation/Nop.Web/Models/Catalog/PriceRangeModel.cs | {
"start": 133,
"end": 454
} | public partial record ____ : BaseNopModel
{
#region Properties
/// <summary>
/// Gets or sets the "from" price
/// </summary>
public decimal? From { get; set; }
/// <summary>
/// Gets or sets the "to" price
/// </summary>
public decimal? To { get; set; }
#endregion
} | PriceRangeModel |
csharp | dotnet__efcore | src/EFCore.Relational/Metadata/Conventions/RelationalPropertyJsonPropertyNameAttributeConvention.cs | {
"start": 549,
"end": 1974
} | public class ____ : PropertyAttributeConventionBase<JsonPropertyNameAttribute>
{
/// <summary>
/// Creates a new instance of <see cref="RelationalPropertyJsonPropertyNameAttributeConvention" />.
/// </summary>
/// <param name="dependencies">Parameter object containing dependencies for this conventio... | RelationalPropertyJsonPropertyNameAttributeConvention |
csharp | cake-build__cake | src/Cake.Frosting/FrostingTaskTeardown.cs | {
"start": 293,
"end": 357
} | class ____ the teardown logic of a task.
/// </summary>
| for |
csharp | NLog__NLog | tests/NLog.UnitTests/LayoutRenderers/CallSiteTests.cs | {
"start": 47364,
"end": 52295
} | private class ____
{
public async Task AsyncMethod5(LogFactory logFactory)
{
await AMinimalAsyncMethod();
var logger = logFactory.GetCurrentClassLogger();
logger.Debug("dude");
}
private async Task AMinimalAsyncMet... | InnerClassAsyncMethod5 |
csharp | dotnet__maui | src/Compatibility/Core/src/MacOS/Extensions/NSImageExtensions.cs | {
"start": 204,
"end": 807
} | public static class ____
{
public static NSImage ResizeTo(this NSImage self, CoreGraphics.CGSize newSize)
{
if (self == null)
return null;
self.ResizingMode = NSImageResizingMode.Stretch;
var resizedImage = new NSImage(newSize);
resizedImage.LockFocus();
self.Size = newSize;
NSGraphicsContext... | NSImageExtensions |
csharp | dotnet__aspnetcore | src/Identity/Core/src/SignInManager.cs | {
"start": 63523,
"end": 63692
} | internal sealed class ____
{
public required TUser User { get; init; }
public string? LoginProvider { get; init; }
}
| TwoFactorAuthenticationInfo |
csharp | dotnet__orleans | src/api/Orleans.Transactions.TestKit.Base/Orleans.Transactions.TestKit.Base.cs | {
"start": 180682,
"end": 182588
} | partial class ____ : global::Orleans.TransactionTaskRequest
{
public global::Orleans.Transactions.Abstractions.ITransactionCommitOperation<global::Orleans.Transactions.TestKit.IRemoteCommitService> arg0;
public Invokable_ITransactionCommitterTestGrain_GrainReference_C44BE2A4(global::Orleans.Seriali... | Invokable_ITransactionCommitterTestGrain_GrainReference_C44BE2A4 |
csharp | dotnet__orleans | test/Grains/TestGrains/DeadlockGrain.cs | {
"start": 3495,
"end": 5950
} | public class ____ : Grain, ICallChainReentrancyGrain
{
private TaskCompletionSource _unblocker = new(TaskCreationOptions.RunContinuationsAsynchronously);
private string Id => this.GetPrimaryKeyString();
public async Task CallChain(ICallChainObserver observer, List<(string TargetGrain, Reen... | CallChainReentrancyGrain |
csharp | MassTransit__MassTransit | tests/MassTransit.Tests/Middleware/Agents/Agent_Specs.cs | {
"start": 5479,
"end": 6798
} | class ____ :
SimpleContext
{
readonly SimpleContext _context;
public ActiveSimpleContext(SimpleContext context, CancellationToken cancellationToken)
{
CancellationToken = cancellationToken;
_context = context;
}
... | ActiveSimpleContext |
csharp | ServiceStack__ServiceStack.OrmLite | src/ServiceStack.OrmLite/OrmLiteReadExpressionsApiAsync.cs | {
"start": 339,
"end": 15777
} | public static class ____
{
/// <summary>
/// Returns results from using a LINQ Expression. E.g:
/// <para>db.Select<Person>(x => x.Age > 40)</para>
/// </summary>
public static Task<List<T>> SelectAsync<T>(this IDbConnection dbConn, Expression<Func<T, bool>> predi... | OrmLiteReadExpressionsApiAsync |
csharp | dotnet__aspnetcore | src/Mvc/Mvc.Core/src/ModelBinding/Metadata/IMetadataDetailsProvider.cs | {
"start": 239,
"end": 504
} | interface ____ a provider of metadata details about model objects. Implementations should
/// implement one or more of <see cref="IBindingMetadataProvider"/>, <see cref="IDisplayMetadataProvider"/>,
/// and <see cref="IValidationMetadataProvider"/>.
/// </summary>
| for |
csharp | microsoft__semantic-kernel | dotnet/src/Plugins/Plugins.UnitTests/Web/Tavily/TavilyTextSearchTests.cs | {
"start": 435,
"end": 15544
} | public sealed class ____ : IDisposable
{
/// <summary>
/// Initializes a new instance of the <see cref="TavilyTextSearchTests"/> class.
/// </summary>
public TavilyTextSearchTests()
{
this._messageHandlerStub = new MultipleHttpMessageHandlerStub();
this._httpClient = new HttpClient(t... | TavilyTextSearchTests |
csharp | grandnode__grandnode2 | src/Web/Grand.Web.Admin/Controllers/CollectionController.cs | {
"start": 902,
"end": 18019
} | public class ____ : BaseAdminController
{
#region Constructors
public CollectionController(
ICollectionViewModelService collectionViewModelService,
ICollectionService collectionService,
IContextAccessor contextAccessor,
IStoreService storeService,
ILanguageService langua... | CollectionController |
csharp | xunit__xunit | src/xunit.v3.runner.common/Messages/BaseMessages/MessageSinkMessage.cs | {
"start": 565,
"end": 1751
} | public partial class ____ : IJsonDeserializable
{
/// <summary>
/// Empty traits, to be used to initialize traits values in messages.
/// </summary>
protected static IReadOnlyDictionary<string, IReadOnlyCollection<string>> EmptyTraits = new Dictionary<string, IReadOnlyCollection<string>>();
/// <summary>
/// Get... | MessageSinkMessage |
csharp | unoplatform__uno | src/Uno.UI.Tests/BinderTests/Given_Binder.cs | {
"start": 41802,
"end": 42642
} | public partial class ____ : FrameworkElement
{
public DependencyObject SubProperty
{
get { return (DependencyObject)GetValue(SubPropertyProperty); }
set { SetValue(SubPropertyProperty, value); }
}
public static readonly DependencyProperty SubPropertyProperty =
DependencyProperty.Register("SubProperty... | UIDependencyObject |
csharp | dotnet__efcore | test/EFCore.Tests/Metadata/Conventions/ServicePropertyDiscoveryConventionTest.cs | {
"start": 7688,
"end": 7790
} | private class ____ : Blog
{
public ILazyLoader? Loader { get; set; }
}
| BlogOneService |
csharp | jellyfin__jellyfin | MediaBrowser.Model/Session/PlaybackStopInfo.cs | {
"start": 207,
"end": 1997
} | public class ____
{
/// <summary>
/// Gets or sets the item.
/// </summary>
/// <value>The item.</value>
public BaseItemDto Item { get; set; }
/// <summary>
/// Gets or sets the item identifier.
/// </summary>
/// <value>The item identifier.</... | PlaybackStopInfo |
csharp | dotnet__orleans | test/Extensions/AWSUtils.Tests/StorageTests/DynamoDBStorageProviderTests.cs | {
"start": 761,
"end": 13340
} | public class ____
{
private readonly IProviderRuntime providerRuntime;
private readonly ITestOutputHelper output;
private readonly Dictionary<string, string> providerCfgProps = new Dictionary<string, string>();
private readonly TestEnvironmentFixture fixture;
public DynamoDB... | DynamoDBStorageProviderTests |
csharp | kgrzybek__modular-monolith-with-ddd | src/Modules/Payments/Application/Subscriptions/ExpireSubscriptionPayments/ExpireSubscriptionPaymentsCommandHandler.cs | {
"start": 506,
"end": 2461
} | internal class ____ : ICommandHandler<ExpireSubscriptionPaymentsCommand>
{
private readonly ISqlConnectionFactory _sqlConnectionFactory;
private readonly ICommandsScheduler _commandsScheduler;
public ExpireSubscriptionPaymentsCommandHandler(
ISqlConnectionFactory sqlConnectionF... | ExpireSubscriptionPaymentsCommandHandler |
csharp | EventStore__EventStore | src/KurrentDB.Transport.Tcp/TcpConfiguration.cs | {
"start": 218,
"end": 626
} | public static class ____ {
public const int SocketCloseTimeoutSecs = 1;
public const int AcceptBacklogCount = 128;
public const int ConcurrentAccepts = 1;
public const int AcceptPoolSize = ConcurrentAccepts * 2;
public const int ConnectPoolSize = 32;
public const int SendReceivePoolSize = 512;
public const in... | TcpConfiguration |
csharp | nopSolutions__nopCommerce | src/Presentation/Nop.Web/Areas/Admin/Components/MetaTagGeneratorViewComponent.cs | {
"start": 320,
"end": 1275
} | public partial class ____ : NopViewComponent
{
#region Filds
protected readonly ArtificialIntelligenceSettings _artificialIntelligenceSettings;
#endregion
#region Ctor
public MetaTagsGeneratorViewComponent(ArtificialIntelligenceSettings artificialIntelligenceSettings)
{
_artificialIn... | MetaTagsGeneratorViewComponent |
csharp | graphql-dotnet__graphql-dotnet | src/GraphQL/Utilities/Visitors/ISchemaNodeVisitor.cs | {
"start": 2477,
"end": 3586
} | interface ____ type.
/// </summary>
void VisitInterfaceFieldArgumentDefinition(QueryArgument argument, FieldType field, IInterfaceGraphType type, ISchema schema);
/// <summary>
/// Visits directive argument.
/// </summary>
void VisitDirectiveArgumentDefinition(QueryArgument argument, Directive... | graph |
csharp | bitwarden__server | test/Infrastructure.EFIntegration.Test/Repositories/EqualityComparers/CollectionCompare.cs | {
"start": 147,
"end": 460
} | public class ____ : IEqualityComparer<Collection>
{
public bool Equals(Collection x, Collection y)
{
return x.Name == y.Name &&
x.ExternalId == y.ExternalId;
}
public int GetHashCode([DisallowNull] Collection obj)
{
return base.GetHashCode();
}
}
| CollectionCompare |
csharp | unoplatform__uno | src/Uno.UI.RuntimeTests/IntegrationTests/common/ComboBoxHelper.cs | {
"start": 592,
"end": 5675
} | public enum ____
{
Mouse,
Touch,
Keyboard,
Gamepad,
Programmatic
};
public static async Task FocusComboBoxIfNecessary(ComboBox comboBox)
{
var comboBoxGotFocusEvent = new Event();
var gotFocusRegistration = CreateSafeEventRegistration<ComboBox, RoutedEventHandler>("GotFocus");
gotFocusRegistration.... | CloseMethod |
csharp | dotnet__maui | src/Controls/tests/Xaml.UnitTests/Issues/Gh7494.xaml.cs | {
"start": 881,
"end": 1190
} | public class ____ : ContentView
{
public static readonly BindableProperty TitleProperty = BindableProperty.Create(nameof(Title), typeof(string), typeof(Gh7494Content), default(string));
public string Title
{
get => (string)GetValue(TitleProperty);
set => SetValue(TitleProperty, value);
}
}
| Gh7494Content |
csharp | EventStore__EventStore | src/KurrentDB.Core.XUnit.Tests/TransactionLog/Chunks/TFChunkTrackerTests.cs | {
"start": 638,
"end": 5301
} | public sealed class ____ : IDisposable {
const long WriterCheckpoint = 4_500;
const int ChunkSize = 1_000;
private readonly TFChunkTracker _sut;
private readonly TestMeterListener<long> _listener;
private readonly TestMeterListener<double> _doubleListener;
private readonly FakeClock _clock = new();
public TFCh... | TFChunkTrackerTests |
csharp | fluentassertions__fluentassertions | Tests/FluentAssertions.Specs/CultureAwareTesting/CulturedFactAttribute.cs | {
"start": 217,
"end": 537
} | public sealed class ____ : FactAttribute
{
#pragma warning disable CA1019 // Define accessors for attribute arguments
// ReSharper disable once UnusedParameter.Local
public CulturedFactAttribute(params string[] _) { }
#pragma warning restore CA1019 // Define accessors for attribute arguments
}
| CulturedFactAttribute |
csharp | EventStore__EventStore | src/KurrentDB.BufferManagement.Tests/BufferPoolTests.cs | {
"start": 1313,
"end": 2537
} | public class ____ : has_buffer_manager_fixture {
[Test]
public void an_index_under_zero_throws_an_argument_exception() {
BufferPool pool = new BufferPool(12, BufferManager);
Assert.Throws<ArgumentException>(() => pool[-1] = 4);
}
[Test]
public void data_that_has_been_set_can_read() {
BufferPool pool = new B... | when_changing_data_in_a_bufferpool_via_indexer |
csharp | AvaloniaUI__Avalonia | src/Windows/Avalonia.Win32/DirectX/DirectXStructs.cs | {
"start": 4890,
"end": 5129
} | internal struct ____
{
public DXGI_RATIONAL RefreshRate;
public DXGI_MODE_SCANLINE_ORDER ScanlineOrdering;
public DXGI_MODE_SCALING Scaling;
public int Windowed;
}
| DXGI_SWAP_CHAIN_FULLSCREEN_DESC |
csharp | dotnet__efcore | src/EFCore.Design/Design/Internal/AppServiceProviderFactory.cs | {
"start": 728,
"end": 4825
} | public class ____
{
private readonly Assembly _startupAssembly;
private readonly IOperationReporter _reporter;
/// <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 c... | AppServiceProviderFactory |
csharp | ChilliCream__graphql-platform | src/HotChocolate/Fusion-vnext/src/Fusion.Execution/Execution/Nodes/OperationCompiler.cs | {
"start": 12272,
"end": 13124
} | private class ____ : SyntaxWalker<IncludeConditionCollection>
{
public static readonly IncludeConditionVisitor Instance = new();
protected override ISyntaxVisitorAction Enter(
FieldNode node,
IncludeConditionCollection context)
{
if (IncludeCondition.TryC... | IncludeConditionVisitor |
csharp | SixLabors__ImageSharp | src/ImageSharp/PixelFormats/PixelImplementations/PixelOperations/A8.PixelOperations.cs | {
"start": 207,
"end": 333
} | public partial struct ____
{
/// <summary>
/// Provides optimized overrides for bulk operations.
/// </summary>
| A8 |
csharp | dotnet__machinelearning | docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/BinaryClassification/LdSvm.cs | {
"start": 176,
"end": 4117
} | public static class ____
{
public static void Example()
{
// Create a new context for ML.NET operations. It can be used for
// exception tracking and logging, as a catalog of available operations
// and as the source of randomness. Setting the seed to a fixed numb... | LdSvm |
csharp | dotnet__extensions | src/LegacySupport/ObsoleteAttribute/ObsoleteAttribute.cs | {
"start": 1116,
"end": 1594
} | internal sealed class ____ : Attribute
{
public ObsoleteAttribute()
{
}
public ObsoleteAttribute(string? message)
{
Message = message;
}
public ObsoleteAttribute(string? message, bool error)
{
Message = message;
IsError = error;
}
public string? Message... | ObsoleteAttribute |
csharp | unoplatform__uno | src/Uno.UI.Tests/Windows_UI_Xaml_Markup/XamlReaderTests/TestCodedResourceDictionary.cs | {
"start": 226,
"end": 371
} | public class ____ : ResourceDictionary
{
public TestCodedResourceDictionary()
{
this["c1"] = Colors.Red;
}
}
}
| TestCodedResourceDictionary |
csharp | MassTransit__MassTransit | tests/MassTransit.RabbitMqTransport.Tests/ErrorQueue_Specs.cs | {
"start": 351,
"end": 4292
} | public class ____ :
RabbitMqTestFixture
{
[Test]
public async Task Should_have_the_correlation_id()
{
ConsumeContext<PingMessage> context = await _errorHandler;
Assert.That(context.CorrelationId, Is.EqualTo(_correlationId));
}
[Test]
p... | A_serialization_exception |
csharp | dotnet__aspnetcore | src/SignalR/common/Shared/TestCertificates.cs | {
"start": 295,
"end": 1644
} | internal static class ____
{
internal static X509Certificate2 GetTestCert()
{
bool useRSA = false;
if (OperatingSystem.IsWindows())
{
// Detect Win10+
var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
var majo... | TestCertificateHelper |
csharp | bitwarden__server | src/Core/Utilities/KdfSettingsValidator.cs | {
"start": 142,
"end": 1958
} | public static class ____
{
public static IEnumerable<ValidationResult> Validate(KdfType kdfType, int kdfIterations, int? kdfMemory, int? kdfParallelism)
{
switch (kdfType)
{
case KdfType.PBKDF2_SHA256:
if (!AuthConstants.PBKDF2_ITERATIONS.InsideRange(kdfIterations))
... | KdfSettingsValidator |
csharp | graphql-dotnet__graphql-dotnet | src/GraphQL.Tests/Initialization/SchemaInitializationTests.cs | {
"start": 140,
"end": 3869
} | public class ____ : SchemaInitializationTestBase
{
[Fact]
public void EmptyQuerySchema_Should_Throw()
{
ShouldThrow<EmptyQuerySchema, InvalidOperationException>("An Object type 'Empty' must define one or more fields.");
}
[Fact]
public void SchemaWithDuplicateFields_Should_Throw()
{... | SchemaInitializationTests |
csharp | reactiveui__Akavache | src/Samples/GetAndFetchLatestPatterns.cs | {
"start": 18264,
"end": 21225
} | public static class ____
{
/// <summary>
/// ❌ DON'T: Await GetAndFetchLatest - you'll only get the first result.
/// </summary>
public static async Task IncorrectAwaiting()
{
// This only gets the cached data (if available) and misses ... | AntiPatterns |
csharp | dotnet__efcore | test/EFCore.Specification.Tests/StoreGeneratedTestBase.cs | {
"start": 80040,
"end": 80127
} | public record ____
{
public int Value { get; set; }
}
| WrappedIntRecord |
csharp | MassTransit__MassTransit | src/MassTransit/Middleware/CircuitBreaker/CircuitBreakerEventExtensions.cs | {
"start": 1048,
"end": 1287
} | class ____ :
CircuitBreakerOpened
{
public Opened(Exception exception)
{
Exception = exception;
}
public Exception Exception { get; }
}
}
}
| Opened |
csharp | unoplatform__uno | src/Uno.UI/UI/Xaml/Controls/SwipeControl/SwipeControl.cs | {
"start": 918,
"end": 65850
} | public partial class ____ : ContentControl
{
// Change to 'true' to turn on debugging outputs in Output window
//bool SwipeControlTrace.s_IsDebugOutputEnabled = false;
//bool SwipeControlTrace.s_IsVerboseDebugOutputEnabled = false;
private const double c_epsilon = 0.0001;
private const float c_ThresholdValu... | SwipeControl |
csharp | nunit__nunit | src/NUnitFramework/framework/Constraints/DelayedConstraint.cs | {
"start": 394,
"end": 627
} | public class ____ : PrefixConstraint
{
/// <summary>
/// Allows only changing the time dimension of delay interval and setting a polling interval of a DelayedConstraint
/// </summary>
| DelayedConstraint |
csharp | bitwarden__server | src/Infrastructure.EntityFramework/Repositories/OrganizationConnectionRepository.cs | {
"start": 259,
"end": 2241
} | public class ____ : Repository<OrganizationConnection, Models.OrganizationConnection, Guid>, IOrganizationConnectionRepository
{
public OrganizationConnectionRepository(IServiceScopeFactory serviceScopeFactory,
IMapper mapper)
: base(serviceScopeFactory, mapper, context => context.OrganizationConnec... | OrganizationConnectionRepository |
csharp | Cysharp__UniTask | src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/GroupBy.cs | {
"start": 17412,
"end": 18366
} | internal sealed class ____<TSource, TKey, TElement> : IUniTaskAsyncEnumerable<IGrouping<TKey, TElement>>
{
readonly IUniTaskAsyncEnumerable<TSource> source;
readonly Func<TSource, TKey> keySelector;
readonly Func<TSource, TElement> elementSelector;
readonly IEqualityComparer<TKey> co... | GroupBy |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.UI.ViewManagement/ActivationViewSwitcher.cs | {
"start": 300,
"end": 2584
} | public partial class ____
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
internal ActivationViewSwitcher()
{
}
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
[global::Uno.NotImplemented("_... | ActivationViewSwitcher |
csharp | dotnet__aspire | src/Aspire.Hosting.Kubernetes/Resources/NodeSelectorTermV1.cs | {
"start": 711,
"end": 1899
} | public sealed class ____
{
/// <summary>
/// Gets the list of match expressions that are used to define the conditions for node selection.
/// </summary>
/// <remarks>
/// MatchExpressions is a collection of node selector requirements, each specifying a key, an operator,
/// and an optional set ... | NodeSelectorTermV1 |
csharp | OrchardCMS__OrchardCore | src/OrchardCore.Modules/OrchardCore.Admin/Startup.cs | {
"start": 3432,
"end": 3768
} | public sealed class ____ : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddSiteSettingsPropertyDeploymentStep<AdminSettings, DeploymentStartup>(S => S["Admin settings"], S => S["Exports the admin settings."]);
}
}
[RequireFeatures("OrchardCore.Liquid"... | DeploymentStartup |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.ApplicationModel.Appointments/AppointmentWeekOfMonth.cs | {
"start": 275,
"end": 946
} | public enum ____
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
First = 0,
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
Second = 1,
#endif
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_T... | AppointmentWeekOfMonth |
csharp | dotnet__maui | src/Controls/tests/TestCases.HostApp/Issues/Issue26065.xaml.cs | {
"start": 238,
"end": 575
} | public partial class ____ : ContentPage
{
public Issue26065()
{
InitializeComponent();
BindingContext = new BookViewModel();
}
private void Button_Clicked(object sender, EventArgs e)
{
if (collView.ItemsLayout is LinearItemsLayout linearItemsLayout)
{
linearItemsLayout.ItemSpacing = 20;
... | Issue26065 |
csharp | NEventStore__NEventStore | src/NEventStore/Persistence/InMemory/InMemoryPersistenceEngine.cs | {
"start": 14892,
"end": 15491
} | private class ____ : Commit
{
public InMemoryCommit(
string bucketId,
string streamId,
int streamRevision,
Guid commitId,
int commitSequence,
DateTime commitStamp,
Int64 checkpointToken,
... | InMemoryCommit |
csharp | ChilliCream__graphql-platform | src/StrawberryShake/Client/test/Core.Tests/Json/JsonErrorParserTests.cs | {
"start": 58,
"end": 7854
} | public class ____
{
[Fact]
public void Error_With_Message()
{
// arrange
var result = JsonDocument.Parse(@" [ { ""message"": ""errors"" } ] ");
// act
var errors = JsonErrorParser.ParseErrors(result.RootElement);
// assert
Assert.Collection(errors!, error =>... | JsonErrorParserTests |
csharp | OrchardCMS__OrchardCore | src/OrchardCore/OrchardCore.DisplayManagement.Liquid/LiquidHttpContextAccessor.cs | {
"start": 70,
"end": 193
} | class ____ allows modules to extend the `HttpContext` property in the current Liquid scope.
/// </summary>
[Obsolete("This | that |
csharp | xunit__xunit | src/xunit.v3.core.tests/Framework/TheoryDiscovererTests.cs | {
"start": 16558,
"end": 17621
} | class ____
{
[Theory(Skip = "I have data")]
[InlineData(42)]
[InlineData(2112)]
public void TestMethod(int _) { }
}
[Fact]
public async ValueTask TheoryWithSerializableInputDataThatIsntSerializableAfterConversion_YieldsSingleTheoryTestCase()
{
TestContextInternal.Current.DiagnosticMessageSink = SpyMessa... | SkippedWithData |
csharp | protobuf-net__protobuf-net | src/Examples/Issues/SO7727355.cs | {
"start": 601,
"end": 823
} | public abstract class ____ : EntityBaseTest
{
[ProtoMember(2)]
public string Prop2 { get; set; }
}
[ProtoContract, ProtoInclude(10, typeof(WebEntityTest))]
| WebEntityTest |
csharp | Cysharp__UniTask | src/UniTask/Assets/Plugins/UniTask/Runtime/Triggers/MonoBehaviourMessagesTriggers.cs | {
"start": 138200,
"end": 138543
} | public partial class ____<T> : IAsyncOnPointerExitHandler
{
UniTask<PointerEventData> IAsyncOnPointerExitHandler.OnPointerExitAsync()
{
core.Reset();
return new UniTask<PointerEventData>((IUniTaskSource<PointerEventData>)(object)this, core.Version);
}
}
publi... | AsyncTriggerHandler |
csharp | smartstore__Smartstore | src/Smartstore.Core/Catalog/Rules/ProductRuleEvaluatorTask.cs | {
"start": 383,
"end": 5880
} | public partial class ____ : ITask
{
protected readonly SmartDbContext _db;
protected readonly IRuleService _ruleService;
protected readonly IProductRuleProvider _productRuleProvider;
public ProductRuleEvaluatorTask(
SmartDbContext db,
IRuleService ruleService... | ProductRuleEvaluatorTask |
csharp | dotnet__maui | src/Controls/samples/Controls.Sample/Pages/Controls/CollectionViewGalleries/SelectionGalleries/MultipleBoundSelection.xaml.cs | {
"start": 255,
"end": 1042
} | public partial class ____ : ContentPage
{
BoundSelectionModel _vm;
public MultipleBoundSelection()
{
_vm = new BoundSelectionModel();
BindingContext = _vm;
InitializeComponent();
}
private void ClearAndAdd(object sender, EventArgs e)
{
_vm.SelectedItems!.Clear();
_vm.SelectedItems!.Add(_vm... | MultipleBoundSelection |
csharp | unoplatform__uno | src/Uno.UWP/Generated/3.0.0.0/Windows.Gaming.Input.Custom/IHidGameControllerInputSink.cs | {
"start": 302,
"end": 620
} | public partial interface ____ : global::Windows.Gaming.Input.Custom.IGameControllerInputSink
{
#if __ANDROID__ || __IOS__ || __TVOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__
void OnInputReportReceived(ulong timestamp, byte reportId, byte[] reportBuffer);
#endif
}
}
| IHidGameControllerInputSink |
csharp | dotnet__aspnetcore | src/Http/Http.Results/test/EmptyResultTests.cs | {
"start": 237,
"end": 1536
} | public class ____
{
[Fact]
public async Task EmptyResult_DoesNothing()
{
// Arrange
var emptyResult = EmptyHttpResult.Instance;
// Act
var httpContext = GetHttpContext();
var memoryStream = httpContext.Response.Body as MemoryStream;
await emptyResult.ExecuteA... | EmptyResultTests |
csharp | dotnet__extensions | test/Generators/Microsoft.Gen.Logging/TestClasses/LogPropertiesOmitParameterNameExtensions.cs | {
"start": 1263,
"end": 1560
} | internal static class ____
{
public static void ProvideProperties(ITagCollector list, MyProps? param)
{
list.Add(nameof(MyProps.P0), param?.P0);
list.Add("Custom_property_name", param?.P1);
}
}
}
}
| MyPropsProvider |
csharp | dotnet__aspnetcore | src/Identity/test/Identity.FunctionalTests/Pages/Account/Manage/SetPassword.cs | {
"start": 263,
"end": 909
} | public class ____ : DefaultUIPage
{
private readonly IHtmlFormElement _setPasswordForm;
public SetPassword(HttpClient client, IHtmlDocument setPassword, DefaultUIContext context)
: base(client, setPassword, context)
{
_setPasswordForm = HtmlAssert.HasForm("#set-password-form", setPassword);... | SetPassword |
csharp | unoplatform__uno | src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/CommandBar/CommandBarTitle.cs | {
"start": 293,
"end": 1407
} | public partial class ____ : Control
{
public CommandBarTitle()
{
this.DefaultStyleKey = typeof(CommandBarTitle);
}
public string MainTitle
{
get { return (string)GetValue(MainTitleProperty); }
set { SetValue(MainTitleProperty, value); }
}
public static DependencyProperty MainTitleProperty { g... | CommandBarTitle |
csharp | NSubstitute__NSubstitute | tests/NSubstitute.Specs/PropertyHelperSpecs.cs | {
"start": 3329,
"end": 3614
} | public class ____
{
public string SomeProperty { get; set; }
public void SomeMethod() { }
public string WriteOnlyProperty { set { } }
public string this[int i] { get { return ""; } set { } }
}
}
} | ClassToTestPropertyHelper |
csharp | ChilliCream__graphql-platform | src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs | {
"start": 354420,
"end": 354757
} | public partial interface ____ : ICreateClientCommandMutation_CreateClient_Client_Versions
{
}
/// <summary>
/// An edge in a connection.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "15.1.8.0")]
| ICreateClientCommandMutation_CreateClient_Client_Versions_ClientVersionConnection |
csharp | EventStore__EventStore | src/KurrentDB.Core/Services/Transport/Http/Authentication/PasswordChangeNotificationReader.cs | {
"start": 3368,
"end": 4067
} | private class ____ {
#pragma warning disable 649
public string LoginName;
#pragma warning restore 649
}
private void PublishPasswordChangeNotificationFrom(ResolvedEvent @event) {
var data = @event.Event.Data;
try {
var notification = data.ParseJson<Notification>();
_publisher.Publish(new InternalAuthenti... | Notification |
csharp | ChilliCream__graphql-platform | src/HotChocolate/Core/src/Types/Configuration/TypeInitializer.cs | {
"start": 27720,
"end": 28085
} | struct ____(
ITypeCompletionContext context,
RegisteredType type,
OperationType kind)
{
public ITypeCompletionContext Context { get; } = context;
public RegisteredType Type { get; } = type;
public OperationType Kind { get; } = kind;
public bool IsInitializ... | RegisteredRootType |
csharp | dotnet__efcore | src/EFCore/Diagnostics/ISingletonInterceptor.cs | {
"start": 222,
"end": 497
} | interface ____ all Entity Framework interceptors that are registered as <see cref="ServiceLifetime.Singleton" />
/// services. This means a single instance is used by many <see cref="DbContext" /> instances.
/// The implementation must be thread-safe.
/// </summary>
| for |
csharp | ChilliCream__graphql-platform | src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs | {
"start": 880730,
"end": 881440
} | public partial interface ____
{
/// <summary>
/// A list of edges.
/// </summary>
public global::System.Collections.Generic.IReadOnlyList<global::ChilliCream.Nitro.CommandLine.Cloud.Client.IListClientCommandQuery_Node_Clients_Edges>? Edges { get; }
/// <summary>
/// I... | IListClientCommandQuery_Node_Clients |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.