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__aspnetcore
src/Http/Http.Extensions/test/RequestDelegateGenerator/SharedTypes.cs
{ "start": 2652, "end": 2724 }
public partial class ____ : JsonSerializerContext { }
SharedTestJsonContext
csharp
files-community__Files
src/Files.App/ViewModels/HomeViewModel.cs
{ "start": 145, "end": 5667 }
partial class ____ : ObservableObject, IDisposable { // Dependency injections private IUserSettingsService UserSettingsService { get; } = Ioc.Default.GetRequiredService<IUserSettingsService>(); // Properties public ObservableCollection<WidgetContainerItem> WidgetItems { get; } = []; // Commands publi...
HomeViewModel
csharp
microsoft__semantic-kernel
dotnet/samples/GettingStartedWithTextSearch/Step4_Search_With_VectorStore.cs
{ "start": 961, "end": 2461 }
record ____ for the fixture. var collection = fixture.VectorStoreRecordCollection; // Create a text search instance using the InMemory vector store. var textSearch = new VectorStoreTextSearch<DataModel>(collection); // Search and return results as TextSearchResult items var qu...
collection
csharp
grandnode__grandnode2
src/Business/Grand.Business.Checkout/Commands/Handlers/Orders/MarkAsAuthorizedCommandHandler.cs
{ "start": 319, "end": 1843 }
public class ____ : IRequestHandler<MarkAsAuthorizedCommand, bool> { private readonly IMediator _mediator; private readonly IOrderService _orderService; private readonly IPaymentTransactionService _paymentTransactionService; public MarkAsAuthorizedCommandHandler( IOrderService orderService, ...
MarkAsAuthorizedCommandHandler
csharp
RicoSuter__NJsonSchema
src/NJsonSchema/Generation/SchemaProcessorContext.cs
{ "start": 547, "end": 2122 }
public class ____ { /// <summary>Initializes a new instance of the <see cref="SchemaProcessorContext" /> class.</summary> /// <param name="contextualType">The source contextual type.</param> /// <param name="schema">The JSON Schema.</param> /// <param name="resolver">The resolver.</p...
SchemaProcessorContext
csharp
bitwarden__server
src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/InviteUsers/Validation/Provider/InviteOrganizationProvider.cs
{ "start": 151, "end": 594 }
public class ____ { public Guid ProviderId { get; init; } public ProviderType Type { get; init; } public ProviderStatusType Status { get; init; } public bool Enabled { get; init; } public InviteOrganizationProvider(Entities.Provider.Provider provider) { ProviderId = provider.Id; ...
InviteOrganizationProvider
csharp
EventStore__EventStore
src/SchemaRegistry/KurrentDB.SchemaRegistry/Infrastructure/Eventuous/EntityApplication.cs
{ "start": 310, "end": 3509 }
public abstract class ____<TEntity>(IEventStore store) : CommandService<TEntity>(store) where TEntity : State<TEntity>, new() { IEventStore Store { get; } = store; static readonly string EntityName = typeof(TEntity).Name.Replace("Entity", "").Replace("State", ""); protected abstract Func<dynamic, stri...
EntityApplication
csharp
dotnet__extensions
test/Libraries/Microsoft.Extensions.Telemetry.Tests/Latency/LatencyConsoleExtensionsTests.cs
{ "start": 442, "end": 2844 }
public class ____ { [Fact] public void ConsoleExporterExtensions_GivenNullArguments_ThrowsArgumentNullException() { var s = new ServiceCollection(); Assert.Throws<ArgumentNullException>(() => LatencyConsoleExtensions.AddConsoleLatencyDataExporter(null!)); Assert.Throws<ArgumentNullEx...
LatencyConsoleExtensionsTests
csharp
smartstore__Smartstore
src/Smartstore.Web/Areas/Admin/Models/Customers/CustomerModel.cs
{ "start": 6640, "end": 7176 }
public class ____ : EntityModelBase { [LocalizedDisplay("*Points")] public int Points { get; set; } [LocalizedDisplay("*PointsBalance")] public int PointsBalance { get; set; } [LocalizedDisplay("*Message")] public string Message { get; se...
RewardPointsHistoryModel
csharp
OrchardCMS__OrchardCore
src/OrchardCore.Modules/OrchardCore.Email/Migrations/EmailMigrations.cs
{ "start": 268, "end": 1620 }
public sealed class ____ : DataMigration { private const string SmtpFeatureId = "OrchardCore.Email.Smtp"; #pragma warning disable CA1822 // Member can be static public int Create() #pragma warning restore CA1822 { // In version 2.0, the OrchardCore.Email.Smtp was split from OrchardCore.Email. To en...
EmailMigrations
csharp
xunit__xunit
src/common/MessagePartials/TestPassed.cs
{ "start": 227, "end": 290 }
partial class ____ : TestResultMessage, ITestPassed { }
TestPassed
csharp
scriban__scriban
src/Scriban/Runtime/CustomFunction.Generated.cs
{ "start": 67822, "end": 68790 }
private partial class ____ : DynamicCustomFunction { private delegate string InternalDelegate(string arg0, int arg1, int arg2); private readonly InternalDelegate _delegate; public Functionstring_string_int_int___Opt(MethodInfo method) : base(method) { ...
Functionstring_string_int_int___Opt
csharp
CommunityToolkit__WindowsCommunityToolkit
UnitTests/UnitTests.UWP/UI/Person.cs
{ "start": 344, "end": 425 }
class ____ test AdvancedCollectionViewSource functionality /// </summary>
to
csharp
FoundatioFx__Foundatio
src/Foundatio.Xunit/Retry/DelayedMessageBus.cs
{ "start": 260, "end": 940 }
public class ____ : IMessageBus { private readonly IMessageBus innerBus; private readonly List<IMessageSinkMessage> messages = new(); public DelayedMessageBus(IMessageBus innerBus) { this.innerBus = innerBus; } public bool QueueMessage(IMessageSinkMessage message) { lock (m...
DelayedMessageBus
csharp
dotnet__orleans
src/Orleans.Core/Core/InterfaceToImplementationMappingCache.cs
{ "start": 385, "end": 490 }
internal class ____ { /// <summary> /// Maps a grain
InterfaceToImplementationMappingCache
csharp
mongodb__mongo-csharp-driver
tests/MongoDB.Driver.Tests/Specifications/initial-dns-seedlist-discovery/prose-tests/SrvPartsTests.cs
{ "start": 924, "end": 2287 }
public class ____ { // https://github.com/mongodb/specifications/blob/master/source/initial-dns-seedlist-discovery/tests/README.md#1-allow-srvs-with-fewer-than-3--separated-parts [Theory] [InlineData("mongodb+srv://localhost")] [InlineData("mongodb+srv://mongo.local")] public...
SrvPartsTests
csharp
EventStore__EventStore
src/KurrentDB.Core/Messages/StorageMessage.cs
{ "start": 9154, "end": 11037 }
public partial class ____ : Message { public readonly Guid CorrelationId; public readonly long LogPosition; public readonly long TransactionPosition; public readonly LowAllocReadOnlyMemory<long> FirstEventNumbers; public readonly LowAllocReadOnlyMemory<long> LastEventNumbers; public CommitIndexed(Guid corr...
CommitIndexed
csharp
ServiceStack__ServiceStack
ServiceStack.OrmLite/src/ServiceStack.OrmLite/OrmLiteWriteApiAsync.cs
{ "start": 389, "end": 23021 }
public static class ____ { /// <summary> /// Execute any arbitrary raw SQL. /// </summary> /// <returns>number of rows affected</returns> public static Task<int> ExecuteSqlAsync(this IDbConnection dbConn, string sql, CancellationToken token = default) { return dbConn.Exec(dbCmd => dbCmd....
OrmLiteWriteApiAsync
csharp
OrchardCMS__OrchardCore
src/OrchardCore.Modules/OrchardCore.Sitemaps/Drivers/SitemapPartDisplayDriver.cs
{ "start": 271, "end": 1580 }
public sealed class ____ : ContentPartDisplayDriver<SitemapPart> { public override IDisplayResult Edit(SitemapPart part, BuildPartEditorContext context) { return Initialize<SitemapPartViewModel>("SitemapPart_Edit", m => BuildViewModel(m, part)) .Location("Parts#SEO:5"); } public ove...
SitemapPartDisplayDriver
csharp
dotnet__efcore
test/EFCore.Specification.Tests/ModelBuilding/GiantModel.cs
{ "start": 346957, "end": 347177 }
public class ____ { public int Id { get; set; } public RelatedEntity1591 ParentEntity { get; set; } public IEnumerable<RelatedEntity1593> ChildEntities { get; set; } }
RelatedEntity1592
csharp
graphql-dotnet__graphql-dotnet
src/GraphQL.Tests/Errors/ErrorExtensionsTests.cs
{ "start": 902, "end": 2031 }
public class ____ : ObjectGraphType { public TestQuery() { Name = "Query"; Field<StringGraphType>("firstSync") .Resolve(_ => throw new FirstException("Exception from synchronous resolver", new SystemException("Just inner exception 1", new DllNotFoundException...
TestQuery
csharp
AutoFixture__AutoFixture
Src/TestTypeFoundation/AbstractClassWithPublicConstructor.cs
{ "start": 36, "end": 179 }
public abstract class ____ { public AbstractClassWithPublicConstructor() { } } }
AbstractClassWithPublicConstructor
csharp
ServiceStack__ServiceStack
ServiceStack.Redis/src/ServiceStack.Redis/RedisClient_Set.cs
{ "start": 581, "end": 691 }
public partial class ____ : IRedisClient { public IHasNamed<IRedisSet> Sets { get; set; }
RedisClient
csharp
dotnet__maui
src/Controls/samples/Controls.Sample/Pages/PlatformSpecifics/Windows/WindowsTileBarPage.xaml.cs
{ "start": 239, "end": 3254 }
public partial class ____ : ContentPage { TitleBarSampleViewModel _viewModel; TitleBar _customTitleBar; [RequiresUnreferencedCode("WindowsTitleBarPage uses LoadFromXaml which may require unreferenced code")] public WindowsTitleBarPage() { InitializeComponent(); _viewModel = new TitleBarSampleViewMode...
WindowsTitleBarPage
csharp
abpframework__abp
modules/cms-kit/src/Volo.CmsKit.Domain/Volo/CmsKit/Tags/EntityTagManager.cs
{ "start": 213, "end": 3323 }
public class ____ : DomainService { protected IEntityTagRepository EntityTagRepository { get; } protected ITagRepository TagRepository { get; } protected ITagDefinitionStore TagDefinitionStore { get; } protected TagManager TagManager { get; } public EntityTagManager( IEntityTagRepository en...
EntityTagManager
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/Issue28485.cs
{ "start": 155, "end": 665 }
public class ____ : Shell { public Issue28485() { Routing.RegisterRoute("page2", typeof(Issue28485Page2)); Routing.RegisterRoute("page3", typeof(Issue28485Page3)); var page1 = new ShellContent { Title = "Page 1", Content = new ContentPage() { Content = new Button { Text = "Go to Page 2"...
Issue28485
csharp
mysql-net__MySqlConnector
src/MySqlConnector/Logging/Log.cs
{ "start": 197, "end": 41454 }
partial class ____ { [LoggerMessage(EventIds.DataSourceCreatedWithPoolWithName, LogLevel.Information, "Data source {DataSourceId} created with pool {PoolId} and name {DataSourceName}")] public static partial void DataSourceCreatedWithPoolWithName(ILogger logger, int dataSourceId, int poolId, string dataSourceName); ...
Log
csharp
nunit__nunit
src/NUnitFramework/framework/Internal/Commands/CancelAfterCommand.cs
{ "start": 441, "end": 2876 }
public class ____ : DelegatingTestCommand { private readonly int _timeout; private readonly IDebugger _debugger; /// <summary> /// Initializes a new instance of the <see cref="TimeoutCommand"/> class. /// </summary> /// <param name="innerCommand">The inner command</p...
CancelAfterCommand
csharp
microsoft__garnet
libs/storage/Tsavorite/cs/src/core/Index/Recovery/IndexRecovery.cs
{ "start": 571, "end": 7616 }
class ____ API internal void RecoverFuzzyIndex(IndexCheckpointInfo info) { ulong alignedIndexSize = InitializeMainIndexRecovery(ref info, isAsync: false); overflowBucketsAllocator.Recover(info.main_ht_device, alignedIndexSize, info.info.num_buckets, info.info.num_ofb_bytes); ...
exposed
csharp
dotnet__maui
src/Controls/tests/Core.UnitTests/TableRootUnitTests.cs
{ "start": 135, "end": 2614 }
public class ____ : BaseTestFixture { [Fact] public void Ctor() { const string title = "FooBar"; var model = new TableRoot(title); Assert.Equal(title, model.Title); } [Fact] public void CtorInvalid() { Assert.Throws<ArgumentNullException>(() => new TableRoot(null)); } [Fact] public vo...
TableRootUnitTests
csharp
icsharpcode__ILSpy
ICSharpCode.Decompiler.Tests/TestCases/Pretty/TypeMemberTests.cs
{ "start": 4561, "end": 4748 }
public class ____ : T15_IMyInterface_PropertyInterfaceImplementation { public int MyProperty { get { return 0; } set { } } }
T15_MyClass_PropertyInterfaceImplementation
csharp
jbogard__MediatR
test/MediatR.Tests/UnitTests.cs
{ "start": 137, "end": 2118 }
public class ____ { [Fact] public async Task Should_be_equal_to_each_other() { var unit1 = Unit.Value; var unit2 = await Unit.Task; Assert.Equal(unit1, unit2); Assert.True(unit1 == unit2); Assert.False(unit1 != unit2); } [Fact] public void Should_be_equi...
UnitTests
csharp
ServiceStack__ServiceStack
ServiceStack.OrmLite/tests/ServiceStack.OrmLite.PostgreSQL.Tests/Expressions/PrimaryExpressionsTest.cs
{ "start": 181, "end": 335 }
public class ____ : ExpressionsTestBase { public PrimaryExpressionsTest(DialectContext context) : base(context) {}
PrimaryExpressionsTest
csharp
ChilliCream__graphql-platform
src/Nitro/CommandLine/src/CommandLine.Cloud/Generated/ApiClient.Client.cs
{ "start": 910133, "end": 910380 }
public partial interface ____ : IUnpublishClient_UnpublishClient_Errors, IStageNotFoundError { } [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "15.1.8.0")]
IUnpublishClient_UnpublishClient_Errors_StageNotFoundError
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types/Types/Contracts/ITypeDefinitionExtensionMerger.cs
{ "start": 212, "end": 778 }
internal interface ____ : ITypeDefinitionExtension { /// <summary> /// Gets the type extended by this type extension. /// </summary> Type? ExtendsType { get; } /// <summary> /// The merge method that allows to merge the type extension into the named type. /// </summary> /// <param name=...
ITypeDefinitionExtensionMerger
csharp
dotnet__machinelearning
src/Microsoft.ML.Tokenizers/Model/CodeGenTokenizer.cs
{ "start": 726, "end": 92696 }
public class ____ : Tokenizer { // The CodeGen tokenizer implementation is primarily adapted from // https://github.com/huggingface/transformers/blob/main/src/transformers/models/codegen/tokenization_codegen.py, // with modifications to align with C# code style, the API, and the tokenizer li...
CodeGenTokenizer
csharp
dotnet__maui
src/Controls/tests/TestCases.HostApp/Issues/Bugzilla/Bugzilla42329.cs
{ "start": 3846, "end": 4544 }
public class ____ : ContentPage { Label lblFlag; Label otherLabel; public _42329_Page3() { Title = Page3Title; Success = Success; lblFlag = new Label { Text = LabelPage3, HorizontalTextAlignment = TextAlignment.Center, TextColor = Colors.Red }; otherLabel = new Label { Hor...
_42329_Page3
csharp
MaterialDesignInXAML__MaterialDesignInXamlToolkit
src/MaterialDesign3.Motion/Repeatable.cs
{ "start": 162, "end": 1302 }
public sealed class ____ { /// <summary> /// The number specifying how many times animation will be repeated. /// </summary> /// <remarks> /// If not set, defaults to 0, i.e. repeat infinitely. /// </remarks> public uint Iterations { get; set; } = 0; /// <summary> /// The repeat mod...
Repeatable
csharp
unoplatform__uno
src/Uno.UWPSyncGenerator/Generator.cs
{ "start": 12891, "end": 66404 }
protected class ____<T> where T : ISymbol { public T AndroidSymbol; public T IOSSymbol; public T TvOSSymbol; public T UnitTestsymbol; public T UAPSymbol; public T NetStdReferenceSymbol; public T WasmSymbol; public T SkiaSymbol; private ImplementedFor _implementedFor; public ImplementedF...
PlatformSymbols
csharp
dotnet__aspire
tests/Aspire.Hosting.Azure.Tests/AzureRedisExtensionsTests.cs
{ "start": 423, "end": 8580 }
public class ____ { /// <summary> /// Test both with and without ACA infrastructure because the role assignments /// are handled differently between the two. This ensures that the bicep is generated /// consistently regardless of the infrastructure used in RunMode. /// </summary> [Theory] [I...
AzureRedisExtensionsTests
csharp
dotnet__machinelearning
src/Microsoft.ML.Recommender/MatrixFactorizationTrainer.cs
{ "start": 15209, "end": 16458 }
class ____ factorization. /// In general, only a few of matrix entries (e.g., less than 1%) in the training are observed (i.e., positive). /// To balance the contributions from unobserved and observed in the overall loss function, this parameter is /// usually a small value so that t...
matrix
csharp
protobuf-net__protobuf-net
src/Examples/Primatives.cs
{ "start": 2545, "end": 9241 }
class ____ { public TimeSpanDefaulted() { HowLong = new TimeSpan(0,1,0); } [ProtoMember(1), DefaultValue("00:01:00")] public TimeSpan HowLong { get; set; } } [Fact] public void TestTimeSpanDefaulted() { ...
TimeSpanDefaulted
csharp
nuke-build__nuke
source/Nuke.Build.Tests/HostInitializer.cs
{ "start": 269, "end": 427 }
public static class ____ { [ModuleInitializer] public static void Initialize() { NukeBuild.Host = new SilentHost(); }
HostInitializer
csharp
AutoMapper__AutoMapper
src/UnitTests/Bug/MapFromClosureBug.cs
{ "start": 549, "end": 741 }
public class ____ { public Restaurant Restaurant { get; set; } public int? CalculateTotal(DateTime currentTime) { return null; } }
Booking
csharp
ServiceStack__ServiceStack.OrmLite
src/ServiceStack.OrmLite/Async/OrmLiteWriteCommandExtensionsAsync.cs
{ "start": 456, "end": 29065 }
internal static class ____ { internal static ILog Log = LogManager.GetLogger(typeof(OrmLiteWriteCommandExtensionsAsync)); internal static Task<int> ExecuteSqlAsync(this IDbCommand dbCmd, string sql, IEnumerable<IDbDataParameter> sqlParams, CancellationToken token) => dbCmd.SetParameters...
OrmLiteWriteCommandExtensionsAsync
csharp
Testably__Testably.Abstractions
Tests/Testably.Abstractions.Tests/FileSystem/FileSystemInfo/CreateAsSymbolicLinkTests.cs
{ "start": 130, "end": 1079 }
public partial class ____ { [Theory] [AutoData] public async Task CreateAsSymbolicLink_ShouldCreateSymbolicLink( string path, string pathToTarget) { FileSystem.File.WriteAllText(pathToTarget, null); IFileInfo fileInfo = FileSystem.FileInfo.New(path); fileInfo.CreateAsSymbolicLink(pathToTarget); await Th...
CreateAsSymbolicLinkTests
csharp
dotnet__aspire
tests/Aspire.Hosting.Tests/EndpointReferenceTests.cs
{ "start": 11018, "end": 11120 }
private sealed class ____(string name) : Resource(name), IResourceWithEndpoints { } }
TestResource
csharp
bitwarden__server
util/PostgresMigrations/Migrations/20230523223526_ClientSecretHash.cs
{ "start": 115, "end": 954 }
public partial class ____ : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "ClientSecret", table: "ApiKey"); migrationBuilder.AddColumn<string>( name: "ClientSecretHash", table: "ApiK...
ClientSecretHash
csharp
SixLabors__ImageSharp
src/ImageSharp/Metadata/Profiles/Exif/Tags/ExifTag.NumberArray.cs
{ "start": 164, "end": 1046 }
partial class ____ { /// <summary> /// Gets the StripOffsets exif tag. /// </summary> public static ExifTag<Number[]> StripOffsets { get; } = new(ExifTagValue.StripOffsets); /// <summary> /// Gets the StripByteCounts exif tag. /// </summary> public static ExifTag<Number[]> StripByteCou...
ExifTag
csharp
ChilliCream__graphql-platform
src/HotChocolate/Adapters/test/Adapters.Mcp.Tests/FusionIntegrationTests.cs
{ "start": 8998, "end": 9936 }
private sealed class ____(FusionConfiguration initialConfig) : IFusionConfigurationProvider { private readonly List<IObserver<FusionConfiguration>> _observers = []; public IDisposable Subscribe(IObserver<FusionConfiguration> observer) { if (Configuration is not null) ...
TestFusionConfigurationProvider
csharp
OrchardCMS__OrchardCore
test/OrchardCore.Tests/DisplayManagement/SubsystemTests.cs
{ "start": 4452, "end": 4930 }
public class ____ // { // public static string HtmlContentToString(IHtmlContent content, HtmlEncoder encoder = null) // { // if (encoder == null) // { // encoder = HtmlEncoder.Default; // } // using (var writer = new StringWriter()) // ...
HtmlContentUtilities
csharp
dotnet__efcore
src/EFCore.Relational/Storage/ReaderColumn.cs
{ "start": 753, "end": 4354 }
public abstract class ____ { private static readonly ConcurrentDictionary<Type, ConstructorInfo> Constructors = new(); /// <summary> /// Creates a new instance of the <see cref="ReaderColumn" /> class. /// </summary> /// <param name="type">The CLR type of the column.</param> /// <param name...
ReaderColumn
csharp
ServiceStack__ServiceStack
ServiceStack/tests/ServiceStack.Extensions.Tests/AutoQueryCrudModels.cs
{ "start": 1552, "end": 1918 }
public interface ____ { DateTime CreatedDate { get; set; } string CreatedBy { get; set; } string CreatedInfo { get; set; } DateTime ModifiedDate { get; set; } string ModifiedBy { get; set; } string ModifiedInfo { get; set; } DateTime? DeletedDate { get; set; } string DeletedBy { get; set...
IAudit
csharp
ChilliCream__graphql-platform
src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Analyzers/DocumentAnalyzerTests.cs
{ "start": 268, "end": 3967 }
public class ____ { [Fact] public async Task One_Document_One_Op_One_Field_No_Fragments() { // arrange var schema = await new ServiceCollection() .AddStarWarsRepositories() .AddGraphQL() .AddStarWars() .BuildSchemaAs...
DocumentAnalyzerTests
csharp
dotnet__orleans
src/api/Orleans.Serialization/Orleans.Serialization.cs
{ "start": 20679, "end": 21016 }
partial class ____ { public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddSerializer(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action<ISerializerBuilder> configure = null) { throw null; } } [GenerateSerializer] public sealed
ServiceCollectionExtensions
csharp
JamesNK__Newtonsoft.Json
Src/Newtonsoft.Json.Tests/Issues/Issue1619.cs
{ "start": 1785, "end": 1882 }
public class ____ { public DirectoryInfo Bar { get; set; } }
Foo
csharp
SixLabors__ImageSharp
tests/ImageSharp.Tests/Processing/Processors/Quantization/QuantizerTests.cs
{ "start": 454, "end": 8516 }
public class ____ { public static readonly string[] CommonTestImages = [ TestImages.Png.CalliphoraPartial, TestImages.Png.Bike ]; private static readonly QuantizerOptions NoDitherOptions = new() { Dither = null }; private static readonly QuantizerOptions DiffuserDitherOptions = new(...
QuantizerTests
csharp
dotnet__aspnetcore
src/Mvc/test/WebSites/HtmlGenerationWebSite/Models/Order.cs
{ "start": 179, "end": 879 }
public class ____ { public bool NeedSpecialHandle { get; set; } public DateTimeOffset OrderDate { get; set; } public ICollection<string> PaymentMethod { get; set; } public DateTime ShippingDateTime { get; set;...
Order
csharp
EventStore__EventStore
src/KurrentDB.Core.Tests/Services/Replication/LogReplication/LogReplicationFixture.cs
{ "start": 1210, "end": 2544 }
public abstract class ____<TLogFormat, TStreamId> : SpecificationWithDirectoryPerTestFixture { private const int ClusterSize = 3; private readonly EndPoint FakeEndPoint = new IPEndPoint(IPAddress.Loopback, 5555); private Scope _disposables = new(); private LeaderInfo<TStreamId> _leaderInfo; private ReplicaInfo<TS...
LogReplicationFixture
csharp
abpframework__abp
modules/cms-kit/src/Volo.CmsKit.Common.Web/Pages/CmsKit/Components/Contents/CmsKitContentWidgetOptions.cs
{ "start": 159, "end": 1273 }
public class ____ { public Dictionary<string, ContentWidgetConfig> WidgetConfigs { get; } public CmsKitContentWidgetOptions() { WidgetConfigs = new(); } public void AddWidget(string widgetType, string widgetName, string parameterWidgetName = null) { var config = new ContentWidg...
CmsKitContentWidgetOptions
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver/Core/Operations/MapReduceOutputMode.cs
{ "start": 699, "end": 798 }
internal enum ____ { Replace = 0, Merge, Reduce } }
MapReduceOutputMode
csharp
unoplatform__uno
src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/TextBox/TextBox_Bindings.xaml.cs
{ "start": 203, "end": 402 }
partial class ____ : Page { public TextBox_Bindings() { this.InitializeComponent(); DataContext = new TextBox_Bindings_Context(); } } [Microsoft.UI.Xaml.Data.Bindable]
TextBox_Bindings
csharp
xunit__xunit
src/xunit.v3.runner.utility/Utility/BufferedTextReaderWriter.cs
{ "start": 1508, "end": 1837 }
sealed class ____(BufferedTextReaderWriter parent) : TextWriter { public override Encoding Encoding => Encoding.UTF8; protected override void Dispose(bool disposing) { parent.closed = true; base.Dispose(disposing); } public override void Write(char value) => parent.buffer.Enqueue(value); } }
BufferedWriter
csharp
files-community__Files
src/Files.App/Actions/Open/OpenStorageSenseFromSidebarAction.cs
{ "start": 140, "end": 1052 }
partial class ____ : OpenStorageSenseAction { private ISidebarContext SidebarContext { get; } = Ioc.Default.GetRequiredService<ISidebarContext>(); private readonly DrivesViewModel drivesViewModel = Ioc.Default.GetRequiredService<DrivesViewModel>(); public override bool IsExecutable => SidebarContext.IsItemR...
OpenStorageSenseFromSidebarAction
csharp
dotnet__machinelearning
docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/TimeSeries/DetectSpikeBySsaBatchPrediction.cs
{ "start": 127, "end": 4412 }
public static class ____ { // This example creates a time series (list of Data with the i-th element // corresponding to the i-th time slot). The estimator is applied then to // identify spiking points in the series. This estimator can account for // temporal seasonality in the data....
DetectSpikeBySsaBatchPrediction
csharp
mongodb__mongo-csharp-driver
src/MongoDB.Driver/Core/WireProtocol/Messages/CommandMessageSection.cs
{ "start": 1630, "end": 2287 }
internal sealed class ____<TDocument> : Type0CommandMessageSection { // constructors public Type0CommandMessageSection(TDocument document, IBsonSerializer<TDocument> documentSerializer) : base(document, documentSerializer) { Ensure.IsNotNull((object)document, nameof(d...
Type0CommandMessageSection
csharp
dotnetcore__FreeSql
FreeSql/Internal/CommonProvider/SelectProvider/Select0Provider.cs
{ "start": 33321, "end": 84377 }
partial class ____<TSelect, T1> : Select0Provider, ISelect0<TSelect, T1> where TSelect : class { public Select0Provider(IFreeSql orm, CommonUtils commonUtils, CommonExpression commonExpression, object dywhere) { _orm = orm; _commonUtils = commonUtils; _commonExpr...
Select0Provider
csharp
IdentityModel__IdentityModel
src/OidcConstants.cs
{ "start": 9729, "end": 9900 }
public static class ____ { public const string Token = "token"; public const string TokenTypeHint = "token_type_hint"; }
TokenIntrospectionRequest
csharp
dotnet__maui
src/Essentials/src/Accelerometer/Accelerometer.tizen.cs
{ "start": 159, "end": 822 }
partial class ____ { internal static TizenAccelerometer DefaultSensor => (TizenAccelerometer)PlatformUtils.GetDefaultSensor(SensorType.Accelerometer); public bool IsSupported => TizenAccelerometer.IsSupported; void PlatformStart(SensorSpeed sensorSpeed) { DefaultSensor.Interval = sensorSpeed.ToPlatf...
AccelerometerImplementation
csharp
dotnet__maui
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue10274.cs
{ "start": 116, "end": 867 }
public class ____ : _IssuesUITest { public Issue10274(TestDevice device) : base(device) { } public override string Issue => "MAUI Flyout does not work on Android when not using Shell"; [Test] [Category(UITestCategories.FlyoutPage)] public void FlyoutPageNavigation() { App.WaitForElement("mainPageB...
Issue10274
csharp
DapperLib__Dapper
Dapper/SqlMapper.IDataReader.cs
{ "start": 8900, "end": 9665 }
class ____ : BaseType /// { /// public float Value { get; set; } /// public override int Type =&gt; 2; /// } /// </example> public static Func<DbDataReader, T> GetRowParser<T>(this DbDataReader reader, Type? concreteType = null, int startIndex = 0, int...
Bar
csharp
microsoft__semantic-kernel
dotnet/src/SemanticKernel.AotTests/UnitTests/PromptEchoChatCompletionService.cs
{ "start": 216, "end": 1346 }
internal sealed class ____ : IChatCompletionService { public IReadOnlyDictionary<string, object?> Attributes => throw new NotImplementedException(); public Task<IReadOnlyList<ChatMessageContent>> GetChatMessageContentsAsync(ChatHistory chatHistory, PromptExecutionSettings? executionSettings = null, Kernel? ker...
PromptEchoChatCompletionService
csharp
AutoMapper__AutoMapper
src/UnitTests/Bug/CustomConverters.cs
{ "start": 131, "end": 211 }
class ____ { public DateTimeOffset? Date { get; set; } }
Source
csharp
dotnet__orleans
src/Azure/Orleans.Reminders.Cosmos/HostingExtensions.cs
{ "start": 244, "end": 3242 }
public static class ____ { /// <summary> /// Adds reminder storage backed by Azure Cosmos DB. /// </summary> /// <param name="builder"> /// The builder. /// </param> /// <param name="configure"> /// The delegate used to configure the reminder store. /// </param> /// <returns> ...
HostingExtensions
csharp
dotnetcore__CAP
test/DotNetCore.CAP.Test/SnowflakeIdTest.cs
{ "start": 145, "end": 1232 }
public class ____ { ISnowflakeId _snowflakeId; public SnowflakeIdTest() { _snowflakeId = new SnowflakeId(Util.GenerateWorkerId(1023)); } [Fact] public void NextIdTest() { var instance = _snowflakeId; var result = instance....
SnowflakeIdTest
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/test/Types.CursorPagination.Tests/EdgeTests.cs
{ "start": 147, "end": 1999 }
public class ____ { [InlineData("abc", "cde")] [InlineData("cde", null)] [Theory] public void CreateEdge_ArgumentsArePassedCorrectly( string cursor, string? node) { // arrange // act var edge = new Edge<string>(node!, cursor); // assert Assert.Equal(c...
EdgeTests
csharp
HangfireIO__Hangfire
src/Hangfire.NetCore/BackgroundProcessingServerHostedService.cs
{ "start": 927, "end": 2275 }
public sealed class ____ : IHostedService, IDisposable { private IBackgroundProcessingServer _server; #if NETSTANDARD2_1 public BackgroundProcessingServerHostedService([NotNull] IBackgroundProcessingServer server) : this(server, null) { } public BackgroundProces...
BackgroundProcessingServerHostedService
csharp
neuecc__MessagePack-CSharp
tests/MessagePack.Tests/DynamicObjectResolverTests.cs
{ "start": 28981, "end": 29142 }
public struct ____<T> { [Key(0)] public string Name { get; init; } } [MessagePackObject]
GenericPersonStruct
csharp
dotnetcore__FreeSql
FreeSql.DbContext/Repository/Repository/DefaultRepository.cs
{ "start": 419, "end": 742 }
class ____<TEntity> : BaseRepository<TEntity, Guid> where TEntity : class { public GuidRepository(IFreeSql fsql) : base(fsql) { } public GuidRepository(IFreeSql fsql, UnitOfWorkManager uowManger) : base(uowManger?.Orm ?? fsql) { uowManger?.Binding(this); } } }
GuidRepository
csharp
FluentValidation__FluentValidation
src/FluentValidation.Tests/RulesetTests.cs
{ "start": 11798, "end": 11993 }
private class ____ : AbstractValidator<Person> { public TestValidator2() { RuleSet("Names", () => { RuleFor(x => x.Surname).NotNull().WithMessage("foo"); }); } }
TestValidator2
csharp
dotnet__extensions
test/Libraries/Microsoft.Extensions.AI.Tests/ChatCompletion/ChatClientStructuredOutputExtensionsTests.cs
{ "start": 19880, "end": 19957 }
private class ____<T> { public T? Value { get; set; } }
Data
csharp
unoplatform__uno
src/Uno.UWP/Services/Store/StoreProductResult.cs
{ "start": 166, "end": 349 }
partial class ____ { internal StoreProductResult() { } public StoreProduct Product { get; internal set; } public Exception ExtendedError { get; internal set; } }
StoreProductResult
csharp
dotnet__maui
src/Compatibility/Core/src/Tizen/Extensions/GeometryExtensions.cs
{ "start": 245, "end": 6570 }
public static class ____ { public static SKPath ToSKPath(this Geometry geometry) { #pragma warning disable IL2026 return geometry == null ? MakePath(geometry) : MakePath((dynamic)geometry); #pragma warning disable IL2026 } static SKPath MakePath(Geometry geometry) { return new SKPath(); } static ...
GeometryExtensions
csharp
dotnet__maui
src/Controls/tests/Core.UnitTests/TypedBindingUnitTests.cs
{ "start": 45575, "end": 45957 }
class ____ : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; public string Foo { get; set; } public string Bar { get; set; } public void SignalAllPropertiesChanged(bool useNull) { PropertyChanged?.Invoke(this, new PropertyChangedEven...
NullViewModel
csharp
moq__moq4
src/Moq/ReturnsExtensions.cs
{ "start": 496, "end": 15830 }
partial class ____ { /// <summary> /// Specifies the value to return from an asynchronous method. /// </summary> /// <typeparam name="TMock">Mocked type.</typeparam> /// <typeparam name="TResult">Type of the return value.</typeparam> /// <param name="mock">Returns ve...
ReturnsExtensions
csharp
dotnet__orleans
test/TesterInternal/ErrorInjectionStorageProvider.cs
{ "start": 435, "end": 823 }
public struct ____ { public static readonly ErrorInjectionBehavior None = new ErrorInjectionBehavior { ErrorInjectionPoint = ErrorInjectionPoint.None }; [Id(0)] public Type ExceptionType { get; set; } [Id(1)] public ErrorInjectionPoint ErrorInjectionPoint { get; set; } }...
ErrorInjectionBehavior
csharp
PrismLibrary__Prism
tests/Maui/Prism.Maui.Tests/Mocks/Views/VMLDisabledPageMock.cs
{ "start": 74, "end": 267 }
public class ____ : ContentPage { public VMLDisabledPageMock() { SetValue(ViewModelLocator.AutowireViewModelProperty, ViewModelLocatorBehavior.Disabled); } }
VMLDisabledPageMock
csharp
files-community__Files
src/Files.App/ViewModels/Dialogs/FileSystemDialog/IFileSystemDialogConflictItemViewModel.cs
{ "start": 129, "end": 358 }
public interface ____ { string? SourcePath { get; } string? DestinationPath { get; } string? CustomName { get; } FileNameConflictResolveOptionType ConflictResolveOption { get; } } }
IFileSystemDialogConflictItemViewModel
csharp
protobuf-net__protobuf-net
src/Examples/Issues/SO6174298.cs
{ "start": 192, "end": 300 }
public class ____ { [ProtoContract] [ProtoInclude(10, typeof(BinaryNode))]
SO6174298
csharp
AvaloniaUI__Avalonia
src/Avalonia.Base/Media/LineGeometry.cs
{ "start": 151, "end": 2364 }
public class ____ : Geometry { /// <summary> /// Defines the <see cref="StartPoint"/> property. /// </summary> public static readonly StyledProperty<Point> StartPointProperty = AvaloniaProperty.Register<LineGeometry, Point>(nameof(StartPoint)); /// <summary> ...
LineGeometry
csharp
dotnet__efcore
test/EFCore.SqlServer.FunctionalTests/Query/AdHocMiscellaneousQuerySqlServerTest.cs
{ "start": 11307, "end": 12729 }
public class ____ { public int Id { get; set; } public int SomeValue { get; set; } } } #endregion #region 12482 [ConditionalFact] public virtual async Task Batch_insert_with_sqlvariant_different_types() { var contextFactory = await InitializeAsy...
Blog9277
csharp
dotnet__machinelearning
test/Microsoft.ML.CpuMath.UnitTests/UnitTests.cs
{ "start": 43400, "end": 43700 }
internal class ____ : IEqualityComparer<float> { public bool Equals(float a, float b) { return Math.Abs(a - b) < 1e-5f; } public int GetHashCode(float a) { throw new NotImplementedException(); } }
FloatEqualityComparer
csharp
SixLabors__ImageSharp
src/ImageSharp/PixelFormats/PixelImplementations/NormalizedByte4.cs
{ "start": 429, "end": 8021 }
public partial struct ____ : IPixel<NormalizedByte4>, IPackedVector<uint> { private const float MaxPos = 127f; private static readonly Vector4 Half = Vector128.Create(MaxPos).AsVector4(); private static readonly Vector4 MinusOne = Vector128.Create(-1f).AsVector4(); /// <summary> /// Initializes a n...
NormalizedByte4
csharp
ServiceStack__ServiceStack.OrmLite
tests/ServiceStack.OrmLite.Tests/Issues/EnumAsIntAsPkTests.cs
{ "start": 1821, "end": 2222 }
public class ____ { [PrimaryKey] public LookupTypeEnum EnumAsIntAsPkId { get; set; } public SomeEnum EnumValueThatWouldGoInAsString { get; set; } /// <summary> /// Allow this lookup type to be soft deleted in the future, but retaining referential integrity /// </su...
LookupTypeWithEnumAsIntAsPk
csharp
ChilliCream__graphql-platform
src/HotChocolate/Core/src/Types/Types/Descriptors/Contracts/IEnumTypeDescriptor.cs
{ "start": 198, "end": 338 }
public interface ____ : IDescriptor<EnumTypeConfiguration> , IFluent { /// <summary> /// Defines the name the
IEnumTypeDescriptor
csharp
MonoGame__MonoGame
MonoGame.Framework/Devices/Sensors/SensorReadingEventArgs.cs
{ "start": 388, "end": 868 }
public class ____<T> : EventArgs where T : ISensorReading { /// <summary> /// Sensor reader type. /// </summary> public T SensorReading { get; set; } /// <summary> /// Creates a new instance of the SensorReadingEventArgs class. /// </summary> /// <param name...
SensorReadingEventArgs
csharp
nuke-build__nuke
source/Nuke.Common/Tools/Kubernetes/Kubernetes.Generated.cs
{ "start": 271474, "end": 272584 }
public partial class ____ : KubernetesOptionsBase { /// <summary>The file specification of the source. '[namespace/]pod-name:/file/path'. for a remote file '/file/path' for a local file.</summary> [Argument(Format = "{value}")] public string SrcFileSpec => Get<string>(() => SrcFileSpec); /// <summary>The fi...
KubernetesCpSettings
csharp
dotnet__efcore
test/EFCore.Specification.Tests/Query/Associations/AssociationsPrimitiveCollectionTestBase.cs
{ "start": 199, "end": 1384 }
public abstract class ____<TFixture>(TFixture fixture) : QueryTestBase<TFixture>(fixture) where TFixture : AssociationsQueryFixtureBase, new() { [ConditionalFact] public virtual Task Count() => AssertQuery(ss => ss.Set<RootEntity>().Where(e => e.RequiredAssociate.Ints.Count == 3)); [Conditional...
AssociationsPrimitiveCollectionTestBase
csharp
rabbitmq__rabbitmq-dotnet-client
projects/RabbitMQ.Client/Util/NetworkOrderSerializer.cs
{ "start": 1506, "end": 3958 }
internal static class ____ { [MethodImpl(MethodImplOptions.AggressiveInlining)] internal static void WriteDouble(ref byte destination, double val) { long tempVal = Unsafe.As<double, long>(ref val); Unsafe.WriteUnaligned(ref destination, BitConverter.IsLittleEndian ? B...
NetworkOrderSerializer
csharp
unoplatform__uno
src/Uno.UI/DirectUI/JoltCollections.h.cs
{ "start": 30612, "end": 30661 }
internal interface ____<T> : IList<T> { }
IVector