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
dotnet__efcore
test/EFCore.Tests/Metadata/Internal/InternalNavigationBuilderTest.cs
{ "start": 13323, "end": 14030 }
protected class ____ { public static readonly FieldInfo DetailsField = typeof(Order) .GetField(nameof(_details), BindingFlags.Instance | BindingFlags.NonPublic); public static readonly FieldInfo OtherDetailsField = typeof(Order) .GetField(nameof(_otherDetails), BindingFlags....
Order
csharp
dotnet__aspnetcore
src/Mvc/test/Mvc.IntegrationTests/ModelPrefixSelectionIntegrationTest.cs
{ "start": 4564, "end": 6169 }
private class ____ { [FromForm] public string Name { get; set; } } [Fact] public async Task ComplexModel_EmptyPrefixSelected_NoMatchingValueProviderValue_WithFilteredValueProviders() { // Arrange var parameterBinder = ModelBindingTestHelper.GetParameterBinder(); ...
Person4
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 257637, "end": 257857 }
public class ____ { public int Id { get; set; } public RelatedEntity1185 ParentEntity { get; set; } public IEnumerable<RelatedEntity1187> ChildEntities { get; set; } }
RelatedEntity1186
csharp
dotnet__BenchmarkDotNet
src/BenchmarkDotNet/Columns/BaselineAllocationRatioColumn.cs
{ "start": 240, "end": 4250 }
public class ____ : BaselineCustomColumn { public override string Id => nameof(BaselineAllocationRatioColumn); public override string ColumnName => Column.AllocRatio; public static readonly IColumn RatioMean = new BaselineAllocationRatioColumn(); private BaselineAllocationRatioCol...
BaselineAllocationRatioColumn
csharp
ServiceStack__ServiceStack.OrmLite
src/ServiceStack.OrmLite/NamingStrategy.cs
{ "start": 1127, "end": 1473 }
public class ____ : OrmLiteNamingStrategyBase { public override string GetTableName(string name) { return name.ToLowercaseUnderscore(); } public override string GetColumnName(string name) { return name.ToLowercaseUnderscore(); } }
LowercaseUnderscoreNamingStrategy
csharp
npgsql__npgsql
test/Npgsql.Tests/Types/CompositeTests.cs
{ "start": 2690, "end": 27723 }
class ____ : INpgsqlNameTranslator { public string TranslateTypeName(string clrName) => throw new NotImplementedException(); public string TranslateMemberName(string clrName) => clrName[0].ToString().ToLowerInvariant(); } #pragma warning disable CS0618 // GlobalTypeMapper is obsolete [Test...
CustomTranslator
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.Extensions.Tests/BackgroundJobsTests.cs
{ "start": 4620, "end": 5170 }
public class ____ : SyncCommandWithResult<DependentJob,DependentJobResult> { public static long Count; public static IRequest? LastRequest { get; set; } public static DependentJob? LastCommandRequest { get; set; } protected override DependentJobResult Run(DependentJob request) { Interlocked....
DependentJobCommand
csharp
dotnet__aspnetcore
src/Components/Analyzers/test/PersistentStateAnalyzerTest.cs
{ "start": 851, "end": 955 }
public abstract class ____ : System.Attribute {{ }}
CascadingParameterAttributeBase
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.Driver.Tests/Core/MongoWriteConcernExceptionTests.cs
{ "start": 970, "end": 4665 }
public class ____ { private readonly ConnectionId _connectionId = new ConnectionId(new ServerId(new ClusterId(1), new DnsEndPoint("localhost", 27017)), 2).WithServerValue(3); private readonly string _message = "message"; private readonly WriteConcernResult _writeConcernResult = new WriteConc...
MongoWriteConcernExceptionTests
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Collections/Pooled/PooledStack.cs
{ "start": 1007, "end": 21981 }
internal class ____<T> : IEnumerable<T>, ICollection, IReadOnlyCollection<T>, IDisposable, IDeserializationCallback { [NonSerialized] private ArrayPool<T> _pool; [NonSerialized] private object? _syncRoot; private T[] _array; // Storage for stack elements. Do not rename (bina...
PooledStack
csharp
ChilliCream__graphql-platform
src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroWithFragmentIncludeAndSkipDirectiveTest.Client.cs
{ "start": 91938, "end": 92691 }
public partial class ____ : global::StrawberryShake.StoreAccessor { public StarWarsGetHeroWithFragmentIncludeAndSkipDirectiveClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSeria...
StarWarsGetHeroWithFragmentIncludeAndSkipDirectiveClientStoreAccessor
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Validation/MaxValidationErrorsException.cs
{ "start": 140, "end": 438 }
public class ____ : Exception { public MaxValidationErrorsException() { } public MaxValidationErrorsException(string message) : base(message) { } public MaxValidationErrorsException(string message, Exception inner) : base(message, inner) { } }
MaxValidationErrorsException
csharp
ServiceStack__ServiceStack
ServiceStack.OrmLite/src/ServiceStack.OrmLite/Expressions/IUntypedSqlExpression.cs
{ "start": 258, "end": 6490 }
public interface ____ : ISqlExpression { string TableAlias { get; set; } bool PrefixFieldWithTableName { get; set; } bool WhereStatementWithoutWhereString { get; set; } IOrmLiteDialectProvider DialectProvider { get; set; } string SelectExpression { get; set; } string ...
IUntypedSqlExpression
csharp
aspnetboilerplate__aspnetboilerplate
src/Abp/Domain/Entities/Auditing/FullAuditedAggregateRoot.cs
{ "start": 1268, "end": 1500 }
class ____ full-audited aggregate roots. /// </summary> /// <typeparam name="TPrimaryKey">Type of the primary key of the entity</typeparam> /// <typeparam name="TUser">Type of the user</typeparam> [Serializable]
for
csharp
dotnet__machinelearning
test/Microsoft.ML.TestFramework/TestInitialization.cs
{ "start": 2870, "end": 3059 }
partial class ____ : BaseTestBaseline { protected TestDataViewBase(ITestOutputHelper helper) : base(helper) { } } public sealed
TestDataViewBase
csharp
Antaris__RazorEngine
src/source/RazorEngine.Core/Legacy/Templating/ITemplateResolver.cs
{ "start": 228, "end": 608 }
public interface ____ { #region Methods /// <summary> /// Resolves the template content with the specified name. /// </summary> /// <param name="name">The name of the template to resolve.</param> /// <returns>The template content.</returns> string Reso...
ITemplateResolver
csharp
aspnetboilerplate__aspnetboilerplate
src/Abp/Application/Services/Dto/NameValueDto.cs
{ "start": 1060, "end": 1799 }
public class ____<T> : NameValue<T> { /// <summary> /// Creates a new <see cref="NameValueDto"/>. /// </summary> public NameValueDto() { } /// <summary> /// Creates a new <see cref="NameValueDto"/>. /// </summary> public NameValueDto(...
NameValueDto
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 696179, "end": 696544 }
public partial interface ____ : IOnClientVersionPublishUpdated_OnClientVersionPublishingUpdate_Deployment_Errors_Changes_Changes_6, IDescriptionChanged { } [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "15.1.8.0")]
IOnClientVersionPublishUpdated_OnClientVersionPublishingUpdate_Deployment_Errors_Changes_Changes_DescriptionChanged_6
csharp
npgsql__efcore.pg
test/EFCore.PG.FunctionalTests/TestUtilities/TestNpgsqlRetryingExecutionStrategy.cs
{ "start": 103, "end": 2024 }
public class ____ : NpgsqlRetryingExecutionStrategy { private const bool ErrorNumberDebugMode = false; private static readonly string[] AdditionalSqlStates = ["XX000"]; public TestNpgsqlRetryingExecutionStrategy() : base( new DbContext( new DbContextOptionsBuilder() ...
TestNpgsqlRetryingExecutionStrategy
csharp
dotnet__extensions
src/Generators/Microsoft.Gen.ComplianceReports/Model/ClassifiedType.cs
{ "start": 305, "end": 481 }
internal sealed class ____ { public string TypeName = string.Empty; public List<ClassifiedItem>? Members; public List<ClassifiedLogMethod>? LogMethods; }
ClassifiedType
csharp
bitwarden__server
src/Core/Billing/Extensions/InvoiceExtensions.cs
{ "start": 94, "end": 2918 }
public static class ____ { /// <summary> /// Formats invoice line items specifically for provider invoices, standardizing product descriptions /// and ensuring consistent tax representation. /// </summary> /// <param name="invoice">The Stripe invoice containing line items</param> /// <param name...
InvoiceExtensions
csharp
dotnet__aspnetcore
src/Shared/Roslyn/CodeAnalysisExtensions.cs
{ "start": 332, "end": 3580 }
internal static class ____ { public static bool HasAttribute(this ITypeSymbol typeSymbol, ITypeSymbol attribute, bool inherit) => GetAttributes(typeSymbol, attribute, inherit).Any(); public static bool HasAttribute(this IMethodSymbol methodSymbol, ITypeSymbol attribute, bool inherit) => GetAttr...
CodeAnalysisExtensions
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Rendering/Composition/Transport/BatchStream.cs
{ "start": 4119, "end": 7422 }
internal class ____ : IDisposable { private readonly BatchStreamData _input; private readonly BatchStreamMemoryPool _memoryPool; private readonly BatchStreamObjectPool<object?> _objectPool; private BatchStreamSegment<object?[]?> _currentObjectSegment; private BatchStreamSegment<IntPtr> _currentData...
BatchStreamReader
csharp
SixLabors__ImageSharp
tests/ImageSharp.Tests/TestImages.cs
{ "start": 460, "end": 9499 }
public static class ____ { public const string Transparency = "Png/transparency.png"; public const string P1 = "Png/pl.png"; public const string Pd = "Png/pd.png"; public const string Blur = "Png/blur.png"; public const string Indexed = "Png/indexed.png"; public const...
Png
csharp
unoplatform__uno
src/Uno.UI/Controls/BindableCheckBox.Android.cs
{ "start": 236, "end": 1126 }
public partial class ____ : AndroidX.AppCompat.Widget.AppCompatCheckBox, INotifyPropertyChanged, DependencyObject { public event PropertyChangedEventHandler PropertyChanged; public BindableCheckBox() : base(ContextHelper.Current) { InitializeBinder(); } public override bool Enabled { get { ...
BindableCheckBox
csharp
dotnet__orleans
src/api/Orleans.Core/Orleans.Core.cs
{ "start": 43148, "end": 43273 }
public partial interface ____ : Internal.IBackoffProvider { } [GenerateSerializer]
IFailedSessionBackoffProvider
csharp
dotnet__BenchmarkDotNet
src/BenchmarkDotNet/Characteristics/IResolver.cs
{ "start": 213, "end": 830 }
public interface ____ { bool CanResolve(Characteristic characteristic); object Resolve(CharacteristicObject obj, Characteristic characteristic); T Resolve<[DynamicallyAccessedMembers(CharacteristicObject.CharacteristicMemberTypes)] T>(CharacteristicObject obj, Characteristic<T> characteris...
IResolver
csharp
atata-framework__atata
src/Atata/Logging/Sections/AtataSessionDeInitLogSection.cs
{ "start": 19, "end": 236 }
public sealed class ____ : LogSection { public AtataSessionDeInitLogSection(AtataSession session) { Message = $"Deinitialize {session}"; Level = LogLevel.Trace; } }
AtataSessionDeInitLogSection
csharp
dotnet__efcore
test/EFCore.Specification.Tests/SeedingTestBase.cs
{ "start": 2595, "end": 3010 }
public class ____(DbContextOptions options) : DbContext(options) { protected override void OnModelCreating(ModelBuilder modelBuilder) => modelBuilder.Entity<KeylessSeed>() .HasNoKey() .HasData( new KeylessSeed { Species = "Apple" }, ...
KeylessSeedingContext
csharp
unoplatform__uno
src/SourceGenerators/XamlGenerationTests/TestSetup_SingleXBind.xaml.cs
{ "start": 480, "end": 649 }
partial class ____ : Page { public TestSetup_SingleXBind() { this.InitializeComponent(); } public TestSetup_SingleXBind_Data VM { get; set; }
TestSetup_SingleXBind
csharp
dotnet__orleans
test/Grains/TestGrainInterfaces/IValueTypeTestGrain.cs
{ "start": 440, "end": 574 }
public enum ____ : byte { First, Second, Third } [Serializable] [GenerateSerializer]
TestEnum
csharp
spectreconsole__spectre.console
src/Generator/Commands/AsciiCast/Samples/CalendarSamples.cs
{ "start": 63, "end": 209 }
internal abstract class ____ : BaseSample { public override (int Cols, int Rows) ConsoleSize => (base.ConsoleSize.Cols, 12); }
BaseCalendarSample
csharp
JoshClose__CsvHelper
tests/CsvHelper.Tests/Mocks/ParserMock.cs
{ "start": 504, "end": 1950 }
public class ____ : IParser, IEnumerable<string[]> { private readonly Queue<string[]?> records = new Queue<string[]?>(); private string[]? record; private int row; public CsvContext Context { get; private set; } public IParserConfiguration Configuration { get; private set; } public int Count => record?.Length ...
ParserMock
csharp
dotnet__machinelearning
src/Microsoft.ML.Core/Utilities/BigArray.cs
{ "start": 4117, "end": 18261 }
class ____ a specified size. /// </summary> public BigArray(long size = 0) { // Verifies the preconditional invariant that BlockSize is a power of two. Contracts.Assert(BlockSize > 1 && (BlockSize & (BlockSize - 1)) == 0, "Block size is not a power of two."); ...
with
csharp
Cysharp__MemoryPack
tests/MemoryPack.Tests/MemoryLayoutTest.cs
{ "start": 5242, "end": 5498 }
public struct ____ { public DateTimeOffset DateTime; // short offset(2+padding) + dateTime/ulong(8) = 16 public long Timestamp; // 8 public bool IsItInSeconds; // 1(+padding7) = 8 } [StructLayout(LayoutKind.Explicit, Size = 25)]
DateTimeParamAuto
csharp
dotnet__efcore
test/EFCore.Tests/ChangeTracking/Internal/KeyPropagatorTest.cs
{ "start": 12718, "end": 12995 }
private class ____ : BaseType { public int CategoryId { get; set; } public Category Category { get; set; } public ProductDetail Detail { get; set; } public ICollection<OrderLine> OrderLines { get; } = new List<OrderLine>(); }
Product
csharp
microsoft__PowerToys
src/settings-ui/Settings.UI.Library/ColorPickerProperties.cs
{ "start": 458, "end": 5028 }
public class ____ { [CmdConfigureIgnore] public HotkeySettings DefaultActivationShortcut => new HotkeySettings(true, false, false, true, 0x43); public ColorPickerProperties() { ActivationShortcut = DefaultActivationShortcut; ChangeCursor = false; ...
ColorPickerProperties
csharp
EventStore__EventStore
src/KurrentDB.Core.Tests/Services/GossipService/ClusterMultipleVersionsLoggerTests.cs
{ "start": 6410, "end": 8456 }
public class ____ : NodeGossipServiceTestFixture { protected override Message[] Given() => GivenSystemInitializedWithKnownGossipSeedSources(); protected override Message When() => // nodeTwo is sending gossip; this is an old node hence, no version info (<null> value) for any node new GossipMessage.GossipRece...
if_gossip_received_from_old_node_with_NO_previous_version_info
csharp
dotnet__efcore
src/EFCore.Sqlite.Core/Storage/Internal/SqliteDecimalTypeMapping.cs
{ "start": 739, "end": 3795 }
public class ____ : DecimalTypeMapping { /// <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 us...
SqliteDecimalTypeMapping
csharp
EventStore__EventStore
src/KurrentDB.Projections.Core.Tests/Services/Jint/when_defining_a_js_projection.cs
{ "start": 11546, "end": 12295 }
public class ____ : TestFixtureWithInterpretedProjection { protected override void Given() { _projection = @" options({ biState: true, }); fromAll().when({ $any:function(state, sharedState, event) { ...
with_bi_state_option
csharp
dotnet__orleans
test/Orleans.CodeGenerator.Tests/snapshots/OrleansSourceGeneratorTests.TestBasicClassWithDifferentAccessModifiers.verified.cs
{ "start": 13843, "end": 14721 }
internal sealed class ____ : global::Orleans.Serialization.Configuration.TypeManifestProviderBase { protected override void ConfigureInner(global::Orleans.Serialization.Configuration.TypeManifestOptions config) { config.Serializers.Add(typeof(OrleansCodeGen.TestProject.Codec_PublicDemoDa...
Metadata_TestProject
csharp
microsoft__PowerToys
src/modules/EnvironmentVariables/EnvironmentVariablesUILib/Converters/VariableTypeToGlyphConverter.cs
{ "start": 320, "end": 1041 }
public partial class ____ : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { var type = (VariablesSetType)value; return type switch { VariablesSetType.User => "\uE77B", VariablesSetType.System => "\uE977",...
VariableTypeToGlyphConverter
csharp
ServiceStack__ServiceStack
ServiceStack/tests/Check.ServiceInterface/JwtServices.cs
{ "start": 382, "end": 560 }
public class ____ { public string Token { get; set; } public ResponseStatus ResponseStatus { get; set; } } [Route("/jwt-refresh")]
CreateJwtResponse
csharp
dotnet__machinelearning
src/Microsoft.ML.FastTree/SumupPerformanceCommand.cs
{ "start": 1075, "end": 14457 }
public sealed class ____ { // REVIEW: Convert to using subcomponents. [Argument(ArgumentType.AtMostOnce, HelpText = "The type of IntArray to construct", ShortName = "type", SortOrder = 0)] public IntArrayType Type = IntArrayType.Dense; [Argument(ArgumentType.AtMo...
Arguments
csharp
dotnet__maui
src/Core/src/Handlers/HybridWebView/HybridWebViewHandler.Windows.cs
{ "start": 371, "end": 9291 }
public partial class ____ : ViewHandler<IHybridWebView, WebView2> { private readonly HybridWebView2Proxy _proxy = new(); protected override WebView2 CreatePlatformView() { return new MauiHybridWebView(this); } protected override void ConnectHandler(WebView2 platformView) { _proxy.Connect(this, plat...
HybridWebViewHandler
csharp
dotnet__aspnetcore
src/Identity/Core/src/Passkeys/PublicKeyCredentialDescriptor.cs
{ "start": 385, "end": 933 }
internal sealed class ____ { /// <summary> /// Gets or sets the type of the public key credential. /// </summary> public required string Type { get; init; } /// <summary> /// Gets or sets the identifier of the public key credential. /// </summary> public required BufferSource Id { get; ...
PublicKeyCredentialDescriptor
csharp
StackExchange__StackExchange.Redis
src/StackExchange.Redis/RedisDatabase.cs
{ "start": 257075, "end": 277523 }
private sealed class ____ : Message.CommandKeyBase // XREAD with a single stream. Example: XREAD COUNT 2 STREAMS mystream 0-0 { private readonly RedisValue afterId; private readonly int? count; private readonly int argCount; public SingleStreamReadCommandMessage(...
SingleStreamReadCommandMessage
csharp
atata-framework__atata
src/Atata/Attributes/Triggers/PressKeysAttribute.cs
{ "start": 139, "end": 566 }
public class ____ : TriggerAttribute { public PressKeysAttribute(string keys, TriggerEvents on = TriggerEvents.AfterSet, TriggerPriority priority = TriggerPriority.Medium) : base(on, priority) => Keys = keys; public string Keys { get; protected set; } protected internal override void Execu...
PressKeysAttribute
csharp
grpc__grpc-dotnet
src/Grpc.AspNetCore.Server.ClientFactory/ContextPropagationInterceptor.cs
{ "start": 12663, "end": 13388 }
class ____ TResponse : class { internal static readonly Func<object, Task<Metadata>> GetResponseHeadersAsync = state => ((ContextState<AsyncDuplexStreamingCall<TRequest, TResponse>>)state).Call.ResponseHeadersAsync; internal static readonly Func<object, Status> GetStatus = state => ((Context...
where
csharp
npgsql__npgsql
src/Npgsql/Internal/ResolverFactories/RecordTypeInfoResolverFactory.cs
{ "start": 1724, "end": 2319 }
sealed class ____ : Resolver, IPgTypeInfoResolver { TypeInfoMappingCollection? _mappings; new TypeInfoMappingCollection Mappings => _mappings ??= AddMappings(new(base.Mappings)); public new PgTypeInfo? GetTypeInfo(Type? type, DataTypeName? dataTypeName, PgSerializerOptions options) ...
ArrayResolver
csharp
dotnet__aspnetcore
src/Components/Server/src/Circuits/RemoteScrollToLocationHash.cs
{ "start": 358, "end": 1927 }
internal sealed class ____ : IScrollToLocationHash { private IJSRuntime _jsRuntime; public void AttachJSRuntime(IJSRuntime jsRuntime) { if (HasAttachedJSRuntime) { throw new InvalidOperationException("JSRuntime has already been initialized."); } _jsRuntime = jsR...
RemoteScrollToLocationHash
csharp
DapperLib__Dapper
Dapper/SqlMapper.GridReader.cs
{ "start": 21285, "end": 25648 }
record ____.</typeparam> /// <param name="types">The types to read from the result set.</param> /// <param name="map">The mapping function from the read types to the return type.</param> /// <param name="splitOn">The field(s) we should split and read the second object from (defaults...
set
csharp
Xabaril__AspNetCore.Diagnostics.HealthChecks
src/HealthChecks.UI.Core/UIHealthReport.cs
{ "start": 2489, "end": 2830 }
public class ____ { public IReadOnlyDictionary<string, object> Data { get; set; } = null!; public string? Description { get; set; } public TimeSpan Duration { get; set; } public string? Exception { get; set; } public UIHealthStatus Status { get; set; } public IEnumerable<string>? Tags { get; set...
UIHealthReportEntry
csharp
dotnet__orleans
src/Orleans.Serialization/Buffers/ArcBufferWriter.cs
{ "start": 46479, "end": 48450 }
public struct ____(ArcBuffer slice) : IEnumerable<ArraySegment<byte>>, IEnumerator<ArraySegment<byte>> { private PageSegmentEnumerator _enumerator = slice.PageSegments; /// <summary> /// Gets this instance as an enumerator. /// </summary> /// <returns>This instance.</returns...
ArraySegmentEnumerator
csharp
AutoMapper__AutoMapper
src/UnitTests/Bug/CollectionMapperMapsISetIncorrectly.cs
{ "start": 201, "end": 324 }
public class ____ { public IEnumerable<TypeWithStringProperty> Stuff { get; set; } }
SourceWithIEnumerable
csharp
dotnet__orleans
src/api/Orleans.Serialization/Orleans.Serialization.cs
{ "start": 120319, "end": 121263 }
partial class ____ : IFieldCodec<sbyte>, IFieldCodec { sbyte IFieldCodec<sbyte>.ReadValue<TInput>(ref Buffers.Reader<TInput> reader, WireProtocol.Field field) { throw null; } void IFieldCodec<sbyte>.WriteField<TBufferWriter>(ref Buffers.Writer<TBufferWriter> writer, uint fieldIdDelta, System.Type ...
SByteCodec
csharp
dotnetcore__FreeSql
Providers/FreeSql.Provider.Firebird/FirebirdProvider.cs
{ "start": 168, "end": 2395 }
public class ____<TMark> : BaseDbProvider, IFreeSql<TMark> { public override ISelect<T1> CreateSelectProvider<T1>(object dywhere) => new FirebirdSelect<T1>(this, this.InternalCommonUtils, this.InternalCommonExpression, dywhere); public override IInsert<T1> CreateInsertProvider<T1>() => new FirebirdI...
FirebirdProvider
csharp
dotnet__aspire
src/Aspire.Hosting/api/Aspire.Hosting.cs
{ "start": 89110, "end": 89450 }
partial class ____ { public bool Canceled { get { throw null; } init { } } public string? ErrorMessage { get { throw null; } init { } } public required bool Success { get { throw null; } init { } } } [System.Diagnostics.DebuggerDisplay("Type = {GetType().Name,nq}")] public se...
ExecuteCommandResult
csharp
dotnet__aspnetcore
src/Mvc/Mvc.Core/test/CreatedResultTests.cs
{ "start": 524, "end": 4542 }
public class ____ { [Fact] public void CreatedResult_SetsStatusCode() { // Act var result = new CreatedResult(); // Assert Assert.Equal(StatusCodes.Status201Created, result.StatusCode); } [Fact] public void CreatedResult_SetsLocation() { // Arrange ...
CreatedResultTests
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL.Analyzers.Tests/ValidateArgumentsAttributeAnalyzerTests.cs
{ "start": 2047, "end": 2219 }
public class ____ { public const string ValidatorName = "PrivateValidator"; } }
Constants
csharp
AvaloniaUI__Avalonia
src/tools/Avalonia.Generators/Common/Domain/IViewResolver.cs
{ "start": 434, "end": 573 }
internal record ____(string ClassName, string Namespace, XamlDocument Xaml) : ResolvedViewInfo(ClassName, Namespace);
ResolvedViewDocument
csharp
bitwarden__server
test/Core.Test/AdminConsole/OrganizationFeatures/Organizations/GetOrganizationSubscriptionsToUpdateQueryTests.cs
{ "start": 446, "end": 2026 }
public class ____ { [Theory] [BitAutoData] public async Task GetOrganizationSubscriptionsToUpdateAsync_WhenNoOrganizationsNeedToBeSynced_ThenAnEmptyListIsReturned( SutProvider<GetOrganizationSubscriptionsToUpdateQuery> sutProvider) { sutProvider.GetDependency<IOrganizationRepository>() ...
GetOrganizationSubscriptionsToUpdateQueryTests
csharp
NLog__NLog
examples/targets/Configuration API/File/Simple/Example.cs
{ "start": 52, "end": 632 }
class ____ { static void Main(string[] args) { FileTarget target = new FileTarget(); target.Layout = "${longdate} ${logger} ${message}"; target.FileName = "${basedir}/logs/logfile.txt"; target.KeepFileOpen = false; target.Encoding = System.Text.Encoding.UTF8; Log...
Example
csharp
atata-framework__atata
src/Atata/Attributes/Triggers/PressEnterAttribute.cs
{ "start": 160, "end": 522 }
public class ____ : TriggerAttribute { public PressEnterAttribute(TriggerEvents on = TriggerEvents.AfterSet, TriggerPriority priority = TriggerPriority.Medium) : base(on, priority) { } protected internal override void Execute<TOwner>(TriggerContext<TOwner> context) => context.Component....
PressEnterAttribute
csharp
pythonnet__pythonnet
src/runtime/Types/ClassDerived.cs
{ "start": 6705, "end": 8743 }
class ____ implement. if (baseType.IsInterface) { interfaces.Add(baseType); baseClass = typeof(object); } TypeBuilder typeBuilder = moduleBuilder.DefineType(name, TypeAttributes.Public | TypeAttributes.Class, ...
will
csharp
unoplatform__uno
src/AddIns/Uno.UI.WebView.Skia.X11/X11NativeWebView.cs
{ "start": 1266, "end": 14068 }
public class ____ : INativeWebView { [ThreadStatic] private static bool _isGtkThread; private static readonly Exception? _initException; private static readonly bool _usingWebKit2Gtk41; private readonly CoreWebView2 _coreWebView; private readonly ContentPresenter _presenter; private readonly Window _window; pri...
X11NativeWebView
csharp
bitwarden__server
test/Common/MockedHttpClient/HttpRequestMatcher.cs
{ "start": 83, "end": 3621 }
public class ____ : IHttpRequestMatcher { private readonly Func<HttpRequestMessage, bool> _matcher; private HttpRequestMatcher? _childMatcher; private MockedHttpResponse _mockedResponse = new(HttpStatusCode.OK); private bool _responseSpecified = false; public int NumberOfMatches { get; private set;...
HttpRequestMatcher
csharp
IdentityModel__IdentityModel
src/Client/Extensions/HttpClientJsonWebKeySetExtensions.cs
{ "start": 425, "end": 2622 }
public static class ____ { /// <summary> /// Sends a JSON web key set document request /// </summary> /// <param name="client">The client.</param> /// <param name="address"></param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns></returns> public static ...
HttpClientJsonWebKeySetExtensions
csharp
abpframework__abp
modules/openiddict/test/Volo.Abp.OpenIddict.TestBase/Volo/Abp/OpenIddict/AbpOpenIddictTestData.cs
{ "start": 84, "end": 1010 }
public class ____ : ISingletonDependency { public Guid App1Id { get; set; } = Guid.NewGuid(); public string App1ClientId { get; set; } = "Client1"; public Guid App2Id { get; set; } = Guid.NewGuid(); public string App2ClientId { get; set; } = "Client2"; public Guid Scope1Id { get; set; } = Guid.NewGu...
AbpOpenIddictTestData
csharp
dotnet__machinelearning
docs/samples/Microsoft.ML.GenAI.Samples/Mistral/Mistral_7B_Instruct.cs
{ "start": 306, "end": 3118 }
public partial class ____ { private static Mistral_7B_Instruct instance = new Mistral_7B_Instruct(); /// <summary> /// get weather from city /// </summary> /// <param name="city"></param> [Function] public Task<string> GetWeather(string city) { return Task.FromResult($"The weath...
Mistral_7B_Instruct
csharp
ServiceStack__ServiceStack
ServiceStack.Text/tests/ServiceStack.Text.Tests/UseCases/StripeGateway.cs
{ "start": 5817, "end": 6067 }
public class ____ : IPost, IReturn<StripeCard> { [IgnoreDataMember] public string CustomerId { get; set; } public StripeCard Card { get; set; } } [Route("/customers/{CustomerId}/cards/{CardId}")]
CreateStripeCard
csharp
icsharpcode__SharpZipLib
src/ICSharpCode.SharpZipLib/GZip/GzipOutputStream.cs
{ "start": 1127, "end": 9809 }
private enum ____ { Header, Footer, Finished, Closed, }; #region Instance Fields /// <summary> /// CRC-32 value for uncompressed data /// </summary> protected Crc32 crc = new Crc32(); private OutputState state_ = OutputState.Header; private string fileName; private GZipFlags flags =...
OutputState
csharp
ServiceStack__ServiceStack
ServiceStack/src/ServiceStack.Razor/Html/RouteValueDictionary.cs
{ "start": 1492, "end": 1561 }
public class ____ : IDictionary<string, object> {
RouteValueDictionary
csharp
MonoGame__MonoGame
Tools/MonoGame.Tools.Tests/Program.cs
{ "start": 286, "end": 429 }
static class ____ { static int Main(string [] args) { return new AutoRun().Execute(args); } } }
Program
csharp
bitwarden__server
util/PostgresMigrations/Migrations/20240703205916_UpdateNullConstraintsAdminConsole.Designer.cs
{ "start": 523, "end": 104059 }
partial class ____ { /// <inheritdoc /> protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Npgsql:CollationDefinition:postgresIndetermanisticCollation", "en-u-ks-primary,en-u-ks-prima...
UpdateNullConstraintsAdminConsole
csharp
ShareX__ShareX
ShareX/Forms/MainForm.cs
{ "start": 13338, "end": 91415 }
enum ____ doesn't. EndSessionReasons reason = (EndSessionReasons)m.LParam.ToInt64(); if (reason.HasFlag(EndSessionReasons.ENDSESSION_CLOSEAPP)) { // Register for restart. This allows our application to automatically restart when it is installing an upd...
conversion
csharp
dotnet__machinelearning
test/Microsoft.ML.Tests/Transformers/CustomMappingTests.cs
{ "start": 5025, "end": 5121 }
public class ____ { public HashSet<float> SeenValues; }
MyState
csharp
unoplatform__uno
src/Uno.UI/UI/Xaml/Controls/Materials/Backdrop/BackdropMaterial.cs
{ "start": 2882, "end": 7101 }
private partial class ____ : DependencyObject, IDisposable { private readonly DispatcherHelper _dispatcherHelper; private readonly WeakReference<Control> _target; private readonly IDisposable _themeChangedRevoker; private readonly IDisposable _colorValuesChangedRevoker; private readonly UISettings _uiS...
BackdropMaterialState
csharp
smartstore__Smartstore
src/Smartstore.Core/Content/Menus/Consumers/CatalogMenuInvalidator.cs
{ "start": 318, "end": 3230 }
internal class ____ : IConsumer { private readonly IMenuService _menuService; private readonly CatalogSettings _catalogSettings; private readonly ICacheManager _cache; private readonly SmartDbContext _db; private List<string> _invalidated = new(); private List<string...
CatalogMenuInvalidator
csharp
dotnet__extensions
test/Libraries/Microsoft.Extensions.AI.Tests/ChatCompletion/FunctionInvokingChatClientTests.cs
{ "start": 680, "end": 62668 }
public class ____ { [Fact] public void InvalidArgs_Throws() { Assert.Throws<ArgumentNullException>("innerClient", () => new FunctionInvokingChatClient(null!)); Assert.Throws<ArgumentNullException>("builder", () => ((ChatClientBuilder)null!).UseFunctionInvocation()); } [Fact] pub...
FunctionInvokingChatClientTests
csharp
AvaloniaUI__Avalonia
tests/Avalonia.Base.UnitTests/Data/DefaultValueConverterTests.cs
{ "start": 6005, "end": 6396 }
private class ____ { public ExplicitDouble(double value) { Value = value; } public double Value { get; } public static explicit operator double (ExplicitDouble v) { return v.Value; } } ...
ExplicitDouble
csharp
AutoFixture__AutoFixture
Src/AutoFixtureUnitTest/Kernel/MultipleToEnumerableRelayTests.cs
{ "start": 166, "end": 5213 }
public class ____ { [Fact] public void SutIsSpecimenBuilder() { var sut = new MultipleToEnumerableRelay(); Assert.IsAssignableFrom<ISpecimenBuilder>(sut); } [Theory] [InlineData(null)] [InlineData(typeof(object))] [InlineData(t...
MultipleToEnumerableRelayTests
csharp
dotnet__orleans
test/Tester/StorageFacet/Feature.Implementations/TableExampleStorage.cs
{ "start": 1897, "end": 2323 }
public static class ____ { public static void UseTableExampleStorage(this ISiloBuilder builder, string name) { builder.ConfigureServices(services => { services.AddKeyedTransient<IExampleStorageFactory, TableExampleStorageFactory>(name); service...
TableExampleStorageExtensions
csharp
ServiceStack__ServiceStack
ServiceStack.OrmLite/src/ServiceStack.OrmLite/Legacy/OrmLiteWriteCommandExtensionsLegacy.cs
{ "start": 114, "end": 1196 }
public static class ____ { /// <summary> /// Delete rows using a SqlFormat filter. E.g: /// <para>db.Delete&lt;Person&gt;("Age > {0}", 42)</para> /// </summary> /// <returns>number of rows deleted</returns> [Obsolete(Messages.LegacyApi)] public static int Dele...
OrmLiteWriteCommandExtensionsLegacy
csharp
dotnet__extensions
src/Libraries/Microsoft.Extensions.DataIngestion.Abstractions/IngestionDocument.cs
{ "start": 399, "end": 2260 }
public sealed class ____ { /// <summary> /// Initializes a new instance of the <see cref="IngestionDocument"/> class. /// </summary> /// <param name="identifier">The unique identifier for the document.</param> /// <exception cref="ArgumentNullException"><paramref name="identifier"/> is <see langword...
IngestionDocument
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 6355394, "end": 6356253 }
public partial record ____ { public CancelFusionConfigurationCompositionPayloadData(global::System.String __typename, global::System.Collections.Generic.IReadOnlyList<global::ChilliCream.Nitro.CommandLine.Cloud.Client.State.ICancelFusionConfigurationCompositionErrorData>? errors = default !) { ...
CancelFusionConfigurationCompositionPayloadData
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types.Analyzers/Errors.cs
{ "start": 10401, "end": 10947 }
record ____ must use the 'property:' target specifier", category: "TypeSystem", DiagnosticSeverity.Error, isEnabledByDefault: true); public static readonly DiagnosticDescriptor WrongAuthorizeAttribute = new( id: "HC0106", title: "Microsoft Author...
parameters
csharp
dotnet__extensions
test/Analyzers/Microsoft.Analyzers.Extra.Tests/CallAnalysis/LegacyLoggingTests.Extra.cs
{ "start": 28124, "end": 28970 }
partial class ____ { [Microsoft.Extensions.Logging.LoggerMessage(0, Microsoft.Extensions.Logging.LogLevel.Trace, ""Hello"")] internal static partial void Hello(this Microsoft.Extensions.Logging.ILogger? logger); } "; var l = await RoslynTestUtils.RunAnalyzerAnd...
Log
csharp
ServiceStack__ServiceStack.OrmLite
tests/ServiceStack.OrmLite.PostgreSQL.Tests/PgSqlTests.cs
{ "start": 97, "end": 1397 }
public class ____ { [Test] public void Can_create_NpgsqlParameter() { Assert.That(PgSql.Param("p", 1).NpgsqlDbType, Is.EqualTo(NpgsqlDbType.Integer)); Assert.That(PgSql.Param("p", "s").NpgsqlDbType, Is.EqualTo(NpgsqlDbType.Text)); Assert.That(PgSql.Param("...
PgSqlTests
csharp
abpframework__abp
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/Localization/AbpMvcDataAnnotationsLocalizationOptions.cs
{ "start": 153, "end": 771 }
public class ____ { public IDictionary<Assembly, Type> AssemblyResources { get; } public AbpMvcDataAnnotationsLocalizationOptions() { AssemblyResources = new Dictionary<Assembly, Type>(); } public void AddAssemblyResource( [NotNull] Type resourceType, params Assembly[] asse...
AbpMvcDataAnnotationsLocalizationOptions
csharp
grandnode__grandnode2
src/Web/Grand.Web.Admin/Controllers/ShippingController.cs
{ "start": 990, "end": 31152 }
public class ____ : BaseAdminController { #region Constructors public ShippingController( IShippingService shippingService, IShippingMethodService shippingMethodService, IPickupPointService pickupPointService, IDeliveryDateService deliveryDateService, IWarehouseService w...
ShippingController
csharp
DuendeSoftware__IdentityServer
bff/src/Bff/Otel/LogMessages.cs
{ "start": 11116, "end": 12037 }
record ____ store for sub {{{OTelParameters.Sub}}} sid {{{OTelParameters.Sid}}}")] // public static partial void GettingUserSession(this ILogger logger, LogLevel logLevel, string sub, string? sid); // // [LoggerMessage( // message: // $"Getting {{{OTelParameters.Count}}} user session(s) from st...
from
csharp
unoplatform__uno
src/Uno.UI.Tests/Global.cs
{ "start": 206, "end": 995 }
public static class ____ { [AssemblyInitialize] public static void GlobalTestInitialize(TestContext _) { // Ensure all tests are run under the same culture context Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; ...
Global
csharp
MassTransit__MassTransit
src/MassTransit.Abstractions/Middleware/ConnectPipeOptions.cs
{ "start": 60, "end": 183 }
public enum ____ { ConfigureConsumeTopology = 1, All = ConfigureConsumeTopology } }
ConnectPipeOptions
csharp
ChilliCream__graphql-platform
src/Nullable.cs
{ "start": 4665, "end": 4977 }
sealed class ____ : Attribute; /// <summary>Specifies that the method will not return if the associated Boolean parameter is passed the specified value.</summary> [AttributeUsage(AttributeTargets.Parameter, Inherited = false)] #if INTERNAL_NULLABLE_ATTRIBUTES internal #else public #endif
DoesNotReturnAttribute
csharp
grpc__grpc-dotnet
test/Grpc.Net.Client.Tests/Infrastructure/WinHttpHandler.cs
{ "start": 753, "end": 897 }
public class ____ : DelegatingHandler { public WinHttpHandler(HttpMessageHandler innerHandler) : base(innerHandler) { } }
WinHttpHandler
csharp
smartstore__Smartstore
src/Smartstore.Core/Data/Migrations/IMigrationTable.cs
{ "start": 2347, "end": 2456 }
public interface ____<TContext> : IMigrationTable where TContext : HookingDbContext { } }
IMigrationTable
csharp
RicoSuter__NSwag
src/NSwag.CodeGeneration.TypeScript/InjectionTokenType.cs
{ "start": 506, "end": 757 }
public enum ____ { /// <summary>Use the legacy/obsolete OpaqueToken (pre Angular 4).</summary> OpaqueToken, /// <summary>Use the new InjectionToken class (Angular 4+).</summary> InjectionToken } }
InjectionTokenType
csharp
dotnet__BenchmarkDotNet
src/BenchmarkDotNet/Disassemblers/Exporters/HtmlDisassemblyExporter.cs
{ "start": 315, "end": 5086 }
internal class ____ : ExporterBase { private static readonly Lazy<string> HighlightingLabelsScript = new Lazy<string>(() => ResourceHelper.LoadTemplate("highlightingLabelsScript.js")); private readonly IReadOnlyDictionary<BenchmarkCase, DisassemblyResult> results; private readonly Disassemb...
HtmlDisassemblyExporter
csharp
HangfireIO__Hangfire
src/Hangfire.Core/Common/Job.cs
{ "start": 18571, "end": 22835 }
class ____ on the /// given expression tree of an instance method call with explicit /// type specification. /// </summary> /// <typeparam name="TType">Explicit type that should be used on method call.</typeparam> /// <param name="methodCall">Expression tree of a method call on <...
based