doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
7596cbec-882e-4ee5-954e-54331e9711ee
{ "language": "C#" }
```c# // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System.Linq; using Microsoft.TestCommon; namespace System.Web.Http.OData.Formatter { internal static class JsonAssert { public static void Equal(string expe...
```c# // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using Microsoft.TestCommon; using Newtonsoft.Json.Linq; namespace System.Web.Http.OData.Formatter { internal static class JsonAssert { public static void Equal(st...
0bb27927-9ddb-4889-ad9d-4b799c2030b9
{ "language": "C#" }
```c# using JetBrains.ReSharper.Feature.Services.Daemon; using JetBrains.ReSharper.Plugins.Unity.JsonNew.Psi; using JetBrains.ReSharper.Plugins.Unity.ProjectModel; using JetBrains.ReSharper.Psi; using JetBrains.ReSharper.Psi.Tree; namespace JetBrains.ReSharper.Plugins.Unity.AsmDef.Feature.Services.Daemon { public...
```c# using JetBrains.ReSharper.Feature.Services.Daemon; using JetBrains.ReSharper.Plugins.Unity.JsonNew.Psi; using JetBrains.ReSharper.Plugins.Unity.ProjectModel; using JetBrains.ReSharper.Psi; using JetBrains.ReSharper.Psi.Tree; namespace JetBrains.ReSharper.Plugins.Unity.AsmDef.Feature.Services.Daemon { public...
948cd64d-0ad6-47e5-b139-9a1351c0b2ef
{ "language": "C#" }
```c# using JetBrains.DocumentModel; using JetBrains.ReSharper.Feature.Services.Daemon; using JetBrains.ReSharper.Psi.CSharp; using JetBrains.ReSharper.Psi.Tree; using ReSharperExtensionsShared.Highlighting; using Roflcopter.Plugin.MismatchedFileNames; [assembly: RegisterConfigurableSeverity( MismatchedFileNameHi...
```c# using JetBrains.DocumentModel; using JetBrains.ReSharper.Feature.Services.Daemon; using JetBrains.ReSharper.Psi.CSharp; using JetBrains.ReSharper.Psi.Tree; using ReSharperExtensionsShared.Highlighting; using Roflcopter.Plugin.MismatchedFileNames; [assembly: RegisterConfigurableSeverity( MismatchedFileNameHi...
3df89d31-398f-4881-ae8b-34ba51b4eef8
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using CompetitionPlatform.Data.ProjectCategory; namespace CompetitionPlatform.Data.ProjectCategory { public class ProjectCategoriesRepository : IProjectCategoriesRepository { public List<string> GetC...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using CompetitionPlatform.Data.ProjectCategory; namespace CompetitionPlatform.Data.ProjectCategory { public class ProjectCategoriesRepository : IProjectCategoriesRepository { public List<string> GetC...
2cbe0214-1068-4095-9326-f243c6b80789
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; namespace MetroRadiance.Interop.Win32 { public static class Dwmapi { [DllImport("Dwmapi.dll", ExactSpelling = true)] public static extern void DwmGetColorizationColor([Out] out uint pcrColori...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; namespace MetroRadiance.Interop.Win32 { public static class Dwmapi { [DllImport("Dwmapi.dll", ExactSpelling = true, PreserveSig = false)] public static extern void DwmGetColorizationColor([Ou...
b228a86c-eae5-4e07-b185-3ba1906b657e
{ "language": "C#" }
```c# using System; using System.Collections; using UnityEngine; //using DG.Tweening; public class EditorCoroutineTween { /* public static EditorCoroutine Run(Tween t) { EditorCoroutineTween ct = new EditorCoroutineTween(); return EditorCoroutine.Start(ct.UpdateTween(t)); } IEnumerator UpdateTween(Tween t...
```c# #if !NO_DOTWEEN using System; using System.Collections; using UnityEngine; using DG.Tweening; public class EditorCoroutineTween { public static EditorCoroutine Run(Tween t) { EditorCoroutineTween ct = new EditorCoroutineTween(); return EditorCoroutine.Start(ct.UpdateTween(t)); } IEnumerator UpdateTwe...
8fe57f1a-b411-4a25-b62e-dfec00928503
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace NHibernate.Caches.Redis.Tests { public class PerformanceTests : IntegrationTestBase { [Fact] async Task concurrent_reads_and_writes() { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace NHibernate.Caches.Redis.Tests { public class PerformanceTests : IntegrationTestBase { [Fact] async Task concurrent_sessions_with_reads_and_writes() ...
c73aa9c1-0b6a-417a-a347-83c055d82e11
{ "language": "C#" }
```c# using Newtonsoft.Json; namespace TMDbLib.Objects.General { public class TranslationData { [JsonProperty("title")] public string Title { get; set; } [JsonProperty("overview")] public string Overview { get; set; } [JsonProperty("homepage")] public string H...
```c# using Newtonsoft.Json; namespace TMDbLib.Objects.General { public class TranslationData { [JsonProperty("name")] public string Name { get; set; } // Private hack to ensure two properties (name, title) are deserialized into Name. // Tv Shows and Movies will use different ...
df766d85-bd16-478b-ae4e-1f0dde7a90c4
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Booma.Proxy { /// <summary> /// The collection of network players that are known about. /// </summary> public interface INetworkPlayerCollection : IEnumerable<INetworkPlayer> { //...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Booma.Proxy { /// <summary> /// The collection of network players that are known about. /// </summary> public interface INetworkPlayerCollection : IEnumerable<INetworkPlayer> { //...
297a24eb-4c19-4cdd-9115-dbd046187d58
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using DataAccessExamples.Core.Services; using DataAccessExamples.Core.ViewModels; using Nancy.TinyIoc; namespace DataAccessExamples.Web { using Nancy; public class Bootstrapper : DefaultNancyBootstrapper ...
```c# using System; using System.Linq; using DataAccessExamples.Core.Services; using Nancy.Bootstrapper; using Nancy.Responses; using Nancy.TinyIoc; namespace DataAccessExamples.Web { using Nancy; public class Bootstrapper : DefaultNancyBootstrapper { protected override void Configur...
8b5d1ebe-42ce-4b2f-858c-1c0d01b35239
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManager : MonoBehaviour { void Start () { } void Update () { } } ``` Hide cursor and quit with escape.
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManager : MonoBehaviour { void Start () { Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; } void Update () { if (Input.GetKey(KeyCode.Escape)) { ...
9164f86c-091f-4387-9cb8-5a65d59c7e78
{ "language": "C#" }
```c# namespace Our.Umbraco.Nexu.Core.Services { /// <summary> /// Represents nexu entity relation service. /// </summary> public class NexuEntityRelationService { } } ``` Implement interface in concrete class
```c# namespace Our.Umbraco.Nexu.Core.Services { using Our.Umbraco.Nexu.Common.Interfaces.Services; /// <summary> /// Represents nexu entity relation service. /// </summary> public class NexuEntityRelationService : IEntityRelationService { } } ```
74cb9100-9599-4430-8e84-39883a8e2d60
{ "language": "C#" }
```c# using Lbookshelf.Models; using Lbookshelf.Utils; using Lbookshelf.ViewModels; using Ldata; using Ldata.Json; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace Lbookshelf { /// <summa...
```c# using Lbookshelf.Models; using Lbookshelf.Utils; using Lbookshelf.ViewModels; using Ldata; using Ldata.Json; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace Lbookshelf { /// <summa...
e06f4472-d3cb-4cbb-9729-562125f8fa07
{ "language": "C#" }
```c# @model BatteryCommander.Web.Models.Evaluation <h1>@Model.Ratee</h1> <table border="1"> <tbody> <tr> <td>Soldier</td> <td>@Model.Ratee</td> </tr> <tr> <td>Rater</td> <td>@Model.Rater</td> </tr> <tr> <td>SR Rat...
```c# @model BatteryCommander.Web.Models.Evaluation <h1>@Model.Ratee</h1> <table border="1"> <tbody> <tr> <td>Soldier</td> <td>@Model.Ratee</td> </tr> <tr> <td>Rater</td> <td>@Model.Rater</td> </tr> <tr> <td>SR Rat...
3312b505-6220-4b30-b192-79f3734312c5
{ "language": "C#" }
```c# using BibleBot.Lib; using DSharpPlus.Entities; namespace BibleBot.Frontend { public class Utils { public DiscordEmbed Embed2Embed(InternalEmbed embed) { var builder = new DiscordEmbedBuilder(); var footerText = builder.WithTitle(embed.Title); ...
```c# using BibleBot.Lib; using DSharpPlus.Entities; namespace BibleBot.Frontend { public class Utils { public enum Colours { NORMAL_COLOR = 6709986, ERROR_COLOR = 16723502 } public DiscordEmbed Embed2Embed(InternalEmbed embed) { var ...
b97a2605-cd10-43ea-9acd-d0f716c27e26
{ "language": "C#" }
```c# using WalletWasabi.Gui.ViewModels; namespace WalletWasabi.Gui.Controls.WalletExplorer { public class CoinInfoTabViewModel : WasabiDocumentTabViewModel { public CoinInfoTabViewModel(CoinViewModel coin) : base(string.Empty) { Coin = coin; Title = $"Details of {coin.OutputIndex}:{coin.TransactionId[0..7...
```c# using WalletWasabi.Gui.ViewModels; namespace WalletWasabi.Gui.Controls.WalletExplorer { public class CoinInfoTabViewModel : WasabiDocumentTabViewModel { public CoinInfoTabViewModel(CoinViewModel coin) : base(string.Empty) { Coin = coin; Title = $"Coin ({coin.Amount.ToString(false, true)}) Details"; ...
21e2c149-25ef-4d2c-bf31-dbb24c6e27dc
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
6b7948c7-0f5d-416f-9c88-22be7dde96f8
{ "language": "C#" }
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.ComponentModel; using osu.Framework.Graphics.Containers; using osu.Game.Overlays; namespace osu.Game.Tests.Visual { [Description("Testing chat a...
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using System.Collections.Generic; using System.ComponentModel; using osu.Framework.Graphics.Containers; using osu.Game.Overlays; using osu.Game.Over...
ad3ad520-befa-4387-a85f-8891b2f2d61e
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Overlays.Profile.Sections.Ranks; using osu.Game.Online.API.Requests; using osu.Framework.Localisation; using osu.Game.Resources.Localisation.Web; n...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Overlays.Profile.Sections.Ranks; using osu.Game.Online.API.Requests; using osu.Framework.Localisation; using osu.Game.Resources.Localisation.Web; n...
d7f1dc1d-89e1-408b-aa22-c810ce073b81
{ "language": "C#" }
```c# using System.Threading.Tasks; namespace DanTup.DartAnalysis { class AnalysisGetHoverRequest : Request<AnalysisGetHoverParams, Response<AnalysisGetHoverResponse>> { public string method = "analysis.getHover"; public AnalysisGetHoverRequest(string file, int offset) { this.@params = new AnalysisGetHove...
```c# using System.Threading.Tasks; using DanTup.DartAnalysis.Json; namespace DanTup.DartAnalysis { public static class AnalysisGetHoverImplementation { public static async Task<HoverInformation[]> GetHover(this DartAnalysisService service, string file, int offset) { var request = new AnalysisGetHoverRequest...
37bd6022-7fc2-47bb-8f53-6c2052110188
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab2.Automaton { public class AutomatonBuilder : IIOAutomatonBuilder { private FiniteStateAutomaton automaton = new FiniteStateAutomaton(); public void ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab2.Automaton { public class AutomatonBuilder : IIOAutomatonBuilder { private FiniteStateAutomaton automaton = new FiniteStateAutomaton(); public void ...
bf8fdbd4-37a4-4cc2-848f-5d99aaac3618
{ "language": "C#" }
```c# using System; using AlphaDev.Core; using AlphaDev.Web.Controllers; using AlphaDev.Web.Models; using FluentAssertions; using Microsoft.AspNetCore.Mvc; using NSubstitute; using Optional; using Xunit; namespace AlphaDev.Web.Tests.Unit.Controllers { public class AdminControllerTests { private AdminC...
```c# using System; using AlphaDev.Core; using AlphaDev.Web.Controllers; using AlphaDev.Web.Models; using FluentAssertions; using Microsoft.AspNetCore.Mvc; using NSubstitute; using Optional; using Xunit; namespace AlphaDev.Web.Tests.Unit.Controllers { public class AdminControllerTests { private AdminC...
6ad2bef7-c1b3-4ddf-af45-21a13d7c5c68
{ "language": "C#" }
```c#  using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Watsonia.Data.Tests")] ``` Make the assembly's internals visible to the reference assembly
```c#  using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Watsonia.Data.Tests")] [assembly: InternalsVisibleTo("Watsonia.Data.Reference")] ```
9a59b025-fe41-445e-a7e9-6a4dd7c52927
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; namespace api { public class CommaDelimitedArrayModelBinder : IModelBinder { ...
```c# using System; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc.ModelBinding; namespace api { public class CommaDelimitedArrayModelBinder : IModelBinder { public Task BindModelAsync(ModelBindingContext bindingCon...
c8bf6461-ca90-4f56-ad30-a12fe472b1c2
{ "language": "C#" }
```c# namespace ExifLibrary { /// <summary> /// Represents error severity. /// </summary> public enum Severity { Info, Warning, Error, } /// <summary> /// Represents errors or warnings generated while reading/writing image files. /// </summary> public cl...
```c# namespace ExifLibrary { /// <summary> /// Represents error severity. /// </summary> public enum Severity { Info, Warning, Error, } /// <summary> /// Represents errors or warnings generated while reading/writing image files. /// </summary> public cl...
b9acf80e-cf83-45e3-88d4-92d54700cf9f
{ "language": "C#" }
```c# using System.Reflection; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("CakeMail.RestClient")] [assembly: AssemblyDescription("CakeMail.RestClien...
```c# using System.Reflection; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("CakeMail.RestClient")] [assembly: AssemblyDescription("CakeMail.RestClien...
52ea1314-8e42-40e8-8011-5180f83707e7
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using UnityEngine.UI; public class BoxInfo : MonoBehaviour { public Text LeftText; public Text RightText; readonly StringBuilder names = new StringBuilder(); readonly StringBuilder values = new StringBu...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; using UnityEngine.UI; public class BoxInfo : MonoBehaviour { public Text LeftText; public Text RightText; readonly StringBuilder names = new StringBuilder(); readonly StringBuilder values = new StringBu...
046fb592-08d3-4a78-b46e-615cf598e979
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Diagnostics; using System.Text.RegularExpressions; namespace osu.Framework.Platform.Windows { public class WindowsStorage : Desktop...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Diagnostics; namespace osu.Framework.Platform.Windows { public class WindowsStorage : DesktopStorage { public WindowsSt...
a919ccee-814d-4ffe-9ec4-bdb06326d5c0
{ "language": "C#" }
```c# namespace Fixie { using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; using static Internal.Maybe; public static class ReflectionExtensions { public static bool IsVoid(this MethodInfo method) { return method.Ret...
```c# namespace Fixie { using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; using static Internal.Maybe; public static class ReflectionExtensions { public static bool IsVoid(this MethodInfo method) { return method.Ret...
b85db70b-260d-4488-bcbb-d699c09e1bdf
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using MvcMiniProfiler; using Raven.Client.Connection; using Raven.Client.Connection.Profiling; using Raven.Client.Document; namespace MvcMiniProfiler.RavenDb { public class Profiler { private static Dictionary<string, IDis...
```c# using System; using System.Collections.Generic; using Raven.Client.Connection; using Raven.Client.Connection.Profiling; using Raven.Client.Document; namespace MvcMiniProfiler.RavenDb { public class Profiler { private static Dictionary<string, IDisposable> _Requests = new Dictionary<string, IDisposable>(); ...
4258ac46-1fda-4e03-abc4-c75170aae36b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using LearnositySDK.Request; using LearnositySDK.Utils; // static LearnositySDK.Credentials; namespace LearnosityDemo.Pages { public cla...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using LearnositySDK.Request; using LearnositySDK.Utils; namespace LearnosityDemo.Pages { public class ItemsAPIDemoModel : PageModel ...
40b5aa26-f65f-49b6-931a-4faacd3347d0
{ "language": "C#" }
```c# ``` Test code for SQL queries
```c# using System; namespace NHibernate.DomainModel { /// <summary> /// Summary description for SubComponent. /// </summary> public class SubComponent { private string _subName; private string _subName1; public SubComponent() { } public string SubName { get { return _subName; } set { _subNa...
b250ce2e-3ae2-436b-af84-fcca231bdab0
{ "language": "C#" }
```c# namespace ZocMonLib { public enum MonitorReductionType { Custom = 0, DefaultAverage = 1, DefaultAccumulate = 2 } } ``` Make this enum a byte for small serialization
```c# namespace ZocMonLib { public enum MonitorReductionType : byte { Custom = 0, DefaultAverage = 1, DefaultAccumulate = 2 } } ```
8c82ec87-3507-4e39-a646-1773a2b910f1
{ "language": "C#" }
```c# ``` Add a reusable hash-code class.
```c# using System.Collections; using System.Collections.Generic; using System.Linq; namespace DasMulli.Win32.ServiceUtils { /// <summary> /// Simplifies the work of hashing. /// Taken from <see cref="https://rehansaeed.com/gethashcode-made-easy/"/>, and modified with Reshaper /// </summary> publi...
2d4019e5-ff3d-46d3-bdf9-70e6c228616e
{ "language": "C#" }
```c# ``` Split string per given pattern
```c# // http://careercup.com/question?id=5702976138117120 // Split string per pattern // using System; using System.Collections.Generic; using System.Linq; static class Program { static IEnumerable<String> Split(this String s, IEnumerable<int> pattern) { int prev = 0; foreach (int index in pa...
9a2dfdb4-2201-4a31-9769-4c7e31c81cf9
{ "language": "C#" }
```c# ``` Add "no normalization performed" test for Storage client.
```c# // Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
1c43632a-e91e-407d-9134-9572bed90173
{ "language": "C#" }
```c# ``` Update server side API for single multiple answer question
```c# using Microsoft.AspNetCore.Mvc; using Promact.Trappist.DomainModel.Models.Question; using Promact.Trappist.Repository.Questions; using System; namespace Promact.Trappist.Core.Controllers { [Route("api/question")] public class QuestionsController : Controller { private readonly IQuestionRepos...
14faa072-e74e-4106-a6ba-9f4bb26fa85d
{ "language": "C#" }
```c# ``` Add first draft of AppBuilderExtension tests.
```c# using System; using Microsoft.AspNetCore.Builder; using Moq; using Xunit; namespace Marvin.Cache.Headers.Test.Extensions { public class AppBuilderExtensionsFacts { [Fact(Skip = "The Verify throws an exception because UseMiddleware is an extension function as well and can't be mocked, need to fin...
e57e4ab7-f5f4-4c69-baea-efa8ee59fbd2
{ "language": "C#" }
```c# ``` Add path element class for selection access
```c# using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace Pather.CSharp.PathElements { public class SelectionAccess : IPathElement { public SelectionAccess() { } public ob...
8d939f91-765a-40ca-82b4-2252729bdce3
{ "language": "C#" }
```c# ``` Add baseline test coverage for blocking exit flow
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading; using System.Threading.Tasks; using NUnit.Framework; using osu.Framework.Extensions; using osu.Framework.Platform; using osu.Framework.Testi...
65223307-09b0-4a2f-a406-63bba387cf96
{ "language": "C#" }
```c# ``` Add failing tests for GH-854
```c# using System.Linq; using Xunit; using Marten.Testing.Linq; namespace Marten.Testing.Bugs { public class Bug_854_multiple_or_expressions_softdelete_tenancy_filters_appended_incorrectly: IntegratedFixture { [Fact] public void query_where_with_multiple_or_expressions_against_single_tenant()...
447d42b0-5f44-450f-ae4d-af447b2bef99
{ "language": "C#" }
```c# // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.ComponentModel; using System.Runtime.Serialization; namespace System.Net.Sockets { [Serializ...
```c# // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.ComponentModel; using System.Runtime.Serialization; namespace System.Net.Sockets { [Serializ...
670a1861-ceb9-4faf-8ba4-87a44225b908
{ "language": "C#" }
```c# using System; using System.ComponentModel.Composition; using Microsoft.VisualStudio.ProjectSystem.Designers; using Microsoft.VisualStudio.ProjectSystem.Utilities; using Microsoft.VisualStudio.ProjectSystem.Utilities.Designers; namespace NuProj.ProjectSystem { [Export(typeof(IProjectTreeModifier))] [Par...
```c# using System; using System.ComponentModel.Composition; using Microsoft.VisualStudio.ProjectSystem.Designers; using Microsoft.VisualStudio.ProjectSystem.Utilities; using Microsoft.VisualStudio.ProjectSystem.Utilities.Designers; namespace NuProj.ProjectSystem { [Export(typeof(IProjectTreeModifier))] [Par...
29b7c898-6801-41bb-b4cf-d73ca7dbe501
{ "language": "C#" }
```c# ``` Copy list with random pointer
```c# // https://leetcode.com/problems/copy-list-with-random-pointer/ // // A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. // // Return a deep copy of the list. // Finally nailed it. // https://leetcode.com/submissions/detail/...
1418e92a-1c78-42a2-a57d-726ff38299d8
{ "language": "C#" }
```c# ``` Disable test parallelization in PowerShellEditorServices.Test project
```c# // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Xunit; // Disable test parallelization to avoid port reuse issues [assembly: CollectionBehavior(DisableTestParallelization = true)] ```
15977ff3-2d6f-40fd-803b-194945224420
{ "language": "C#" }
```c# ``` Add extension method check for success HTTP Status code
```c# namespace System { internal static class SystemExtensions { internal static bool IsSuccessStatusCode(this int @this) { return @this >= 200 && @this <= 299; } } }```
d861f356-f2be-413d-8bc3-86365c0b3466
{ "language": "C#" }
```c# ``` Add delegates and VTables for ITaskBarList2.
```c# using System; using System.Runtime.InteropServices; using static Avalonia.Win32.Interop.UnmanagedMethods; namespace Avalonia.Win32 { delegate void MarkFullscreenWindow(IntPtr This, IntPtr hwnd, [MarshalAs(UnmanagedType.Bool)] bool fullscreen); delegate HRESULT HrInit(IntPtr This); struct ITaskBarLi...
43a8ebd7-3848-4213-a021-045683d28a67
{ "language": "C#" }
```c# ``` Add extension overload of Render that takes care of the BitmapWrapper.
```c# using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; namespace Pinta.ImageManipulation { public static class BitmapExtensions { public static void Render (this BaseEffect effect, Bitmap source) { var wrapper = new BitmapWrapper (source); effect...
7fb49a4b-ddac-41e3-9fa8-b10b44807665
{ "language": "C#" }
```c# ``` Add Groping class for Employee
```c# using System.Collections.Generic; using System.Xml.Serialization; namespace parallel_extension_demo { [XmlRoot("groop")] public class Groups { [XmlArray("employees"), XmlArrayItem("employee")] public List<Employee> Colection { get; set; } [XmlAttribute("employeeCount")] ...
541f5613-a426-4133-80d7-0037394ade15
{ "language": "C#" }
```c# ``` Add fund test account method
```c# using System; using System.IO; using System.Net; namespace stellar_dotnet_sdk { public static class AccountUtil { public static void FundTestAccount(string Public_Key) { UriBuilder baseUri = new UriBuilder("https://horizon-testnet.stellar.org/friendbot"); string queryToAppend = "addr=" + Public_Key...
f11f2259-1e86-476c-8eba-f94215eecaea
{ "language": "C#" }
```c# ``` Add unit test for OptionExtensions
```c# using Sprache; using Xunit; namespace Sprache.Tests { public class OptionTests { private Parser<IOption<char>> ParserOptionalSelect = Parse.Char('a').Optional().Select(o => o.Select(c => char.ToUpperInvariant(c))); private Parser<IOption<string>> ParserOptionalSelectMany = ...
b3592dda-71a0-404f-8464-e1965a933ce6
{ "language": "C#" }
```c# using System.Data; namespace ZocMonLib { public interface IRecordReduce { /// <summary> /// Reduce all known data. /// </summary> string ReduceAll(bool deleteReducedData); /// <summary> /// Calculate and store all reductions for the given configuration. ...
```c# using System.Data; namespace ZocMonLib { public interface IRecordReduce { /// <summary> /// Reduce all known data. /// </summary> string ReduceAll(bool deleteReducedData); /// <summary> /// Calculate and store all reductions for the given configuration. ...
3c597a36-5e45-41fb-a943-f06a0d4d46d4
{ "language": "C#" }
```c# ``` Add AppendSpace extension method for StringBuilder
```c# using System.Text; namespace Atata { /// <summary> /// Provides a set of extension methods for <see cref="StringBuilder"/>. /// </summary> public static class StringBuilderExtensions { /// <summary> /// Appends the space character. /// </summary> /// <param na...
0befbec6-abfc-4319-99e1-3fbd6e70c80b
{ "language": "C#" }
```c# ``` Add test scene for Triangles
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Graphics.Backgrounds; using osu.Framework.Graphics; using osuTK.Graphics; using osu.Framework.Graphics.Shapes; namespace osu.Game.Tests.Visual.Back...
63ae31af-ae81-4df9-b489-9cb99dfb57d7
{ "language": "C#" }
```c# ``` Add test coverage for distance/rectangular grid exclusivity
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using NUnit.Framework; using osu.Framework.Testing; using osu.Game.Rulesets.Osu.Edit; using osu.Game.Screens.Edit.Compose.Components; using osu.G...
0ccd14cf-ecf0-4e6a-9ae5-49302e13acaa
{ "language": "C#" }
```c# ``` Add a worktree repository test
```c# using GitTools.Testing; using LibGit2Sharp; using NUnit.Framework; using System.IO; using GitVersionCore.Tests.Helpers; namespace GitVersionCore.Tests.IntegrationTests { [TestFixture] public class WorktreeScenarios : TestBase { [Test] [Category("NoMono")] [Description("LibGi...
f81f7a7c-e4b5-4fd0-95c3-6555f5a063af
{ "language": "C#" }
```c# ``` Fix autosave and refresh on shared projects
```c# using JetBrains.Annotations; using JetBrains.Application.changes; using JetBrains.Application.FileSystemTracker; using JetBrains.Application.Threading; using JetBrains.DocumentManagers; using JetBrains.DocumentModel; using JetBrains.Lifetimes; using JetBrains.ProjectModel; using JetBrains.ReSharper.Host.Features....
3ac6ee0c-a690-4225-b06a-ecc9e2375f23
{ "language": "C#" }
```c# ``` Add beatmap parsing as sample benchmark.
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.IO; using BenchmarkDotNet.Attributes; using osu.Framework.IO.Stores; using osu.Game.Beatmaps; using osu.Game.Beatmaps.Formats; using osu.Game.IO; usin...
5528124f-58ed-4986-b417-4c3267f177cf
{ "language": "C#" }
```c# using System; using System.Data; using System.Data.SqlClient; using Csla; using Csla.Data; namespace ProjectTracker.Library { [Serializable()] public class ResourceList : ReadOnlyListBase<ResourceList, ResourceInfo> { #region Factory Methods public static ResourceList GetResourceList() { ...
```c# using System; using System.Data; using System.Data.SqlClient; using Csla; using Csla.Data; namespace ProjectTracker.Library { [Serializable()] public class ResourceList : ReadOnlyListBase<ResourceList, ResourceInfo> { #region Factory Methods public static ResourceList GetResourceList() { ...
d07c5d6a-6cfb-4b82-9aea-aebcc837cbc8
{ "language": "C#" }
```c# ``` Add default provider for RequestRuntime
```c# using System; using System.Collections.Generic; using System.Linq; namespace Glimpse.Web { public class DefaultRequestRuntimeProvider : IRequestRuntimeProvider { private readonly ITypeService _typeService; public DefaultRequestRuntimeProvider(ITypeService typeService) { ...
554f20bd-3757-4c1f-a9c8-72ccae025ca9
{ "language": "C#" }
```c# ``` Test Fixture for Template class.
```c# using System; using NHibernate.Dialect; using NHibernate.SqlCommand; using NUnit.Framework; namespace NHibernate.Test.SqlCommandTest { [TestFixture] public class TemplateFixture { public TemplateFixture() { } /// <summary> /// Tests that a column enclosed by <c>`</c> is enclosed by the Diale...
d972eb5c-adce-4064-b74e-fd32097e816b
{ "language": "C#" }
```c# ``` Add test scene for NewsHeader
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Overlays.News; using osu.Framework.Graphics; using osu.Game.Overlays; using osu.Framework.Allocation; namespace osu.Game.Tes...
3f8c88df-f10b-48d1-9d34-b12fd291bf1b
{ "language": "C#" }
```c# ``` Add Server Web Options Setup
```c# using System; using Microsoft.Framework.OptionsModel; namespace Glimpse.Server { public class GlimpseServerWebOptionsSetup : ConfigureOptions<GlimpseServerWebOptions> { public GlimpseServerWebOptionsSetup() : base(ConfigureGlimpseServerWebOptions) { Order = -1000; } ...
ef68f918-6950-4b97-9229-feb4332f21df
{ "language": "C#" }
```c# ``` Add first API stub endpoint
```c# using BatteryCommander.Web.Models; using BatteryCommander.Web.Services; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; // For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 namespa...
d5778d77-62bd-4809-a582-2e7f98e7e232
{ "language": "C#" }
```c# ``` Add unit tests for the SqliteAnchorStateBuilder class
```c# // Copyright 2015 Coinprism, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
e4e99cf2-b735-40f4-b139-9e461f06a9f6
{ "language": "C#" }
```c# ``` Test to verify inline projections with lots of events. Closes GH-1723
```c# using System; using System.Threading.Tasks; using Marten.Testing.Events.Aggregation; using Marten.Testing.Harness; using Shouldly; using Xunit; using Xunit.Abstractions; namespace Marten.Testing.Events.Bugs { public class Bug_1723_inline_projections_get_cut_off : AggregationContext { private read...
a571ab10-8be8-4ea3-9f74-f1c728d24581
{ "language": "C#" }
```c# ``` Add headless test ensuring correct cancelling download behaviour
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Testing; using osu.Game.Beatmaps; using osu.Game.Overlays.Notifications; using osu.Game.T...
3f054d81-b570-4e5f-8d1b-66fdf09ac9f8
{ "language": "C#" }
```c# ``` Add CilLocalVariableCollection index consistency tests.
```c# using AsmResolver.DotNet.Code.Cil; using Xunit; namespace AsmResolver.DotNet.Tests.Code.Cil { public class CilLocalVariableCollectionTest { private readonly CilLocalVariableCollection _collection = new CilLocalVariableCollection(); private readonly ModuleDefinition _module = new ModuleDef...
abcb24a3-9b4a-40b3-a344-187066272af4
{ "language": "C#" }
```c# ``` Add thread safe event trigger
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Recipe.ThreadAndConcurrent { public static class EventRaiseExtentions { public static void Raise<TEventArgs>(this TEventArgs e, object sender, ...
dffbd808-6e24-48e2-970c-33fa4d0f6281
{ "language": "C#" }
```c# ``` Add factory for the PathElement class for array like access
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Pather.CSharp.PathElements { public class EnumerableAccessFactory : IPathElementFactory { public IPathElement Create(string pathElement) { ...
12e7bb13-907e-4593-8c81-09644ae3358c
{ "language": "C#" }
```c# ``` Add DefaultView RequestFilterAttribute to set a default view/template for attributed services/actions
```c# using ServiceStack.ServiceHost; namespace ServiceStack.ServiceInterface { public class DefaultViewAttribute : RequestFilterAttribute { public string View { get; set; } public string Template { get; set; } public DefaultViewAttribute() { } public DefaultViewAttri...
a47f29cf-9432-402a-8b76-382fafdad34d
{ "language": "C#" }
```c# ``` Add test scene for "Freeze Frame" mod
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Rulesets.Osu.Mods; namespace osu.Game.Rulesets.Osu.Tests.Mods { public class TestSceneOsuModFreezeFrame : OsuModTestScene...
f837bc7f-b173-487c-bd53-e907e516e767
{ "language": "C#" }
```c# ``` Add fixed implementation for RequestProfilers provider
```c# using System.Collections.Generic; using System.Linq; namespace Glimpse.Agent.Web { public class FixedRequestProfilerProvider : IRequestProfilerProvider { public FixedRequestProfilerProvider() : this(Enumerable.Empty<IRequestProfiler>()) { } public FixedReques...
05a12d3c-4dfe-4b95-871b-d214f8351221
{ "language": "C#" }
```c# ``` Add settings for backward compatibility
```c# // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
a94e4baf-5bec-4061-a51f-0236aa0173d8
{ "language": "C#" }
```c# ``` Add tests for Id struct serialization and deserialization
```c# using System; using Newtonsoft.Json; using Xunit; namespace ReactiveDomain.Messaging.Tests { public sealed class when_serializing_ids { private readonly CorrelationId _corrId; private readonly SourceId _sourceId; private readonly SourceId _nullSourceId; public when_seria...
213a0a44-a04f-4b96-8a08-d85738b07833
{ "language": "C#" }
```c# ``` Add sample code to the unit test project for now.
```c# using LonoNet.Client; using LonoNet.Models; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading; namespace LonoNetTest { /// <summary> /// Early stage. At this point, this is more of sample code to get you started. Will work on actual unit tests soon. /// </summary> [Tes...
4d3e8e06-486e-4e4e-b239-e282a25f054d
{ "language": "C#" }
```c# ``` Add view for "Initiative Create Closed" error page.
```c# @{ ViewData["Title"] = "Access Denied"; } <br> <br> <br> <div class="container"> <h2 class="text-danger">Creating Initiative projects is unavailable.</h2> <p> You do not have appropriate permissions to create Initiative projects. Please create a Draft project. </p> </div>```
4d193b46-c62c-434a-bb9d-e02c485445c2
{ "language": "C#" }
```c# ``` Create data source for local storage
```c# using Microsoft.Live; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.ApplicationModel; using Windows.Storage; namespace Clu...
1b288ae8-f8b3-419e-b27a-9e78b016fff5
{ "language": "C#" }
```c# ``` Add failing test covering RomanisableString usage in SpriteText
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Configuration; using osu.Framework.Graphics; using osu.Framework.Graph...
bdd32f9c-1d73-4aaf-a974-0d77f357b7f6
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; namespace LiteDB { public partial class LiteCollection<T> { /// <summary> /// Remove all document based on a Query object. Returns removed document counts...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Linq.Expressions; using System.Text; namespace LiteDB { public partial class LiteCollection<T> { /// <summary> /// Remove all document based on a Query object. Returns removed document counts...
78a3c172-20fe-45a9-9a32-d06e6161a9b0
{ "language": "C#" }
```c# ``` Remove reference to settings icon
```c# using System; public partial class Settings : System.Web.UI.Page { //--------------------------------------------------------------------------- protected void Page_Load( object sender, EventArgs e ) { // Don't allow people to skip the login page. if( Session[ SettingsLogin.SES_SETTINGS_LOGGED_IN...
215b70d5-c8ee-43e3-a2bc-cc346d0c2b44
{ "language": "C#" }
```c# ``` Add test coverage of multiplayer room/state messagepack serialisation
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using MessagePack; using NUnit.Framework; using osu.Game.Online; using osu.Game.Online.Multiplayer; using osu.Game.Online.Multiplayer.MatchTypes.TeamVersus; namesp...
48acf02a-4560-46e7-8d43-4c9d5e6d8148
{ "language": "C#" }
```c# ``` Add failing test coverage of gameplay sample pausing (during seek)
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using NUnit.Framework; using osu.Framework.Graphics.Audio; using osu.Framework.Testing; using osu.Game.Rulesets; using osu.Game.Rulesets.Osu; usi...
0d3a3a29-ebfc-4fb3-9c42-c3db83045115
{ "language": "C#" }
```c# ``` Add assembly info to OneSignal.Core
```c# using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("Com.OneSignal.Core")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration...
014f992b-043e-4eab-a011-8ab67cdcb0a7
{ "language": "C#" }
```c# ``` Add stub endpoint for getting vehicle info
```c# using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers.API { [Route("api/[controller]"), Au...
10e254e3-049b-4fd2-883b-47b49bcb982f
{ "language": "C#" }
```c# ``` Add ${aspnet-request-contenttype} (ASP.NET Core only)
```c# #if NETSTANDARD_1plus using NLog.LayoutRenderers; using System.Text; using Microsoft.AspNetCore.Routing; using NLog.Web.Internal; namespace NLog.Web.LayoutRenderers { /// <summary> /// ASP.NET content type. /// </summary> /// <example> /// <code lang="NLog Layout Renderer"> /// ${aspnet...
adde6e45-7669-4d7d-8259-5495dd98dac8
{ "language": "C#" }
```c# ``` Add realtime multiplayer test scene abstract class
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using o...
bba2a143-5018-4325-8365-8fc5289645d1
{ "language": "C#" }
```c# ``` Add code behind for the Navigation Panel resource file
```c# using System.Windows.Controls; using System.Windows.Input; namespace DevelopmentInProgress.WPFControls.NavigationPanel { partial class NavigationPanelResources { private void ExpanderImageMouseDown(object sender, MouseButtonEventArgs e) { throw new System.NotImplementedExcept...
6a9b0338-d51d-4504-acc4-3101806f6744
{ "language": "C#" }
```c# ``` Add search item view model
```c# using System; using System.Windows.Input; using ReactiveUI; namespace WalletWasabi.Fluent.ViewModels.NavBar { public class SearchItemViewModel : RoutableViewModel { public SearchItemViewModel(NavigationStateViewModel navigationState, NavigationTarget navigationTarget, string iconName, string title, Func<Rout...
da348494-799a-435c-8de3-94772e0523c1
{ "language": "C#" }
```c# namespace FakeItEasy.Expressions.ArgumentConstraints { using System; using System.Diagnostics.CodeAnalysis; using FakeItEasy.Core; internal class EqualityArgumentConstraint : IArgumentConstraint { public EqualityArgumentConstraint(object expectedValue) { ...
```c# namespace FakeItEasy.Expressions.ArgumentConstraints { using System; using System.Diagnostics.CodeAnalysis; using FakeItEasy.Core; internal class EqualityArgumentConstraint : IArgumentConstraint { public EqualityArgumentConstraint(object expectedValue) { ...
d6faf6e7-9ab2-4e8f-81dc-6311261c8dcc
{ "language": "C#" }
```c# ``` Add test scene for mania composer
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Co...
6483219a-1552-4f6d-b1c9-95fcfdacfad2
{ "language": "C#" }
```c# ``` Add test scene for labelled dropdowns
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Graphics.UserInterfaceV2; namespace osu.Game.Tests.Visual.UserInterface { public class TestScene...
51cc1d4e-c536-404e-aafd-1b3f12559986
{ "language": "C#" }
```c# ``` Add test scene ensuring input reset works properly and mouse position set initially
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Input; using osu.Framework.Testing; using osuTK; using osuTK.Input; namespace osu.Framework.Tests.Visual.Testing { p...
5adeb9a3-a69c-4ba5-8007-288d3f780db8
{ "language": "C#" }
```c# ``` Test for headers in GAPIC client libraries
```c# // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
701dced8-6387-4093-9c59-80cff49c52e2
{ "language": "C#" }
```c# ``` Add renderscript for the Preset playerextension.
```c# using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using Mpdn.RenderScript.Config; using Mpdn.PlayerExtensions.GitHub; using YAXLib; namespace Mpdn.RenderScript { namespace Mpdn.ScriptChain { public abstract class PresetRenderScript : IRenderScriptUi ...
269add0f-224a-4746-a5e4-3d2b6899e949
{ "language": "C#" }
```c# ``` Test replicating the asp webapi failure scenario
```c# using System.IO; using System.Threading.Tasks; using NuGet.Versioning; using NuKeeper.Configuration; using NuKeeper.Inspection.RepositoryInspection; using NuKeeper.NuGet.Process; using NUnit.Framework; namespace NuKeeper.Integration.Tests.NuGet.Process { [TestFixture] public class DotNetUpdatePackageComm...
cbdfa497-1fe7-4f14-952b-f043fa437253
{ "language": "C#" }
```c# ``` Add a convert extension for MessageProperty - convert message property to extra message property.
```c# using Cosmos.Logging.Events; namespace Cosmos.Logging.ExtraSupports { public static class ExtraMessagePropertyExtensions { public static ExtraMessageProperty AsExtra(this MessageProperty property) => new ExtraMessageProperty(property); } }```
9f885ce3-89bf-43f8-8c1a-35fb87fa6e3d
{ "language": "C#" }
```c# ``` Remove text between CommentRangeStart and CommentRangeEnd
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Aspose.Words.Examples.CSharp.Programming_Documents.Comments { class RemoveRegionText { public static void Run() { // ExStart:RemoveRegionText // The path to the documen...
5657e47b-50a5-40ac-8f09-28186a77cc78
{ "language": "C#" }
```c# ``` Add Coinstamp as price provider
```c# using System; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json; using WalletWasabi.Backend.Models; using WalletWasabi.Interfaces; namespace WalletWasabi.WebClients.BlockchainInfo { public class CoinstampExchangeRateProvider : IExchangeRateProvider { ...
9a0bf84a-5921-4675-9653-53e5c9de04af
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; using Orleans; using Orleans.Streams; using Orleans.Providers; namespace Tester.TestStreamProviders { /// <summary> /// This is a test stream provider that throws exceptions when config file contains certain properties. /// </summary> public enum Failur...
```c# using System; using System.Threading.Tasks; using Orleans; using Orleans.Async; using Orleans.Streams; using Orleans.Providers; namespace Tester.TestStreamProviders { /// <summary> /// This is a test stream provider that throws exceptions when config file contains certain properties. /// </summary> ...