conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Move Kevin's blog to his new domain at powershellexplained.com\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.ServiceModel.Syndication;\nusing System.Web;\nusing Firehose.Web.Infrastructure;\n\nn...
c#
chosen
[ { "from": "system", "value": "Return new IDSContext if data is null\n" }, { "from": "human", "value": "using System;\nusing System.Text;\nusing System.Web.Security;\nusing Newtonsoft.Json;\nusing NLog;\n\nnamespace SFA.DAS.EmployerUsers.Web.Authentication\n{\n public class IdsContext\n {\n ...
c#
chosen
[ { "from": "system", "value": "Sample: Print all route information to debug stream (Visual Studio Output panel).\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Microsoft.AspNetCore.Builder;\nusing Micro...
c#
chosen
[ { "from": "system", "value": "Add test coverage for null mod on seeding screen\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing osu.Framework.Allocatio...
c#
chosen
[ { "from": "system", "value": "Fix invalid GC latency mode being set\n" }, { "from": "human", "value": "// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.\n// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE\n\nusing System;\nusing System.Runtime;\n...
c#
chosen
[ { "from": "system", "value": "Make _shouldEndSession false rather than null" }, { "from": "human", "value": "using System;\nusing Newtonsoft.Json;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace Alexa.NET.Response\n{\n public class ResponseBody\n {\n [JsonProper...
c#
chosen
[ { "from": "system", "value": "Make the language XML file optional\n" }, { "from": "human", "value": "using System.Collections.Generic;\r\nusing System.Xml;\r\n\r\nnamespace PROProtocol\r\n{\r\n public class Language\r\n {\r\n private Dictionary<string, string> _texts;\r\n\r\n ...
c#
chosen
[ { "from": "system", "value": "Use explicit type to cast back to SampleType.\n\nUsing var on the `sut.Build()` line will always result in result being of\ntype `dynamic`, which we don't want. We need to explicitly specify the\ntype of the `result` variable to fix intellisense and compilation.\n" }, { ...
c#
chosen
[ { "from": "system", "value": "Fix path to annotations in tests\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing JetBrains.Application;\nusing JetBrains.Diagnostics;\nusing JetBrains.Metadata.Utils;\nusing JetBrains.ReSharper.Psi.ExtensionsAPI.ExternalAn...
c#
chosen
[ { "from": "system", "value": "Add a playback state property to the playlist\n" }, { "from": "human", "value": "using System.Collections.ObjectModel;\n\nnamespace Espera.Network\n{\n public class NetworkPlaylist\n {\n public int? CurrentIndex { get; set; }\n\n public string N...
c#
chosen
[ { "from": "system", "value": "Fix bug about not redirecting to forums\n" }, { "from": "human", "value": "using JoinRpg.DataModel;\nusing JoinRpg.Domain;\nusing Microsoft.AspNetCore.Mvc;\n\nnamespace JoinRpg.Portal.Controllers.Comments\n{\n internal static class CommentRedirectHelper\n {\n ...
c#
chosen
[ { "from": "system", "value": "Revert assembly version and assembly file version back to 0.2.0.0\n\nRevert assembly version and assembly file version back to 0.2.0.0 as\nsuggested.\n" }, { "from": "human", "value": "//\n// Copyright (c) Microsoft. All rights reserved.\n//\n// Licensed under the ...
c#
chosen
[ { "from": "system", "value": "Introduce EndOffset to Analyze token\n\nremove misspelt EndPostion\n\n(cherry picked from commit 5e4e0e5f357edbc5c8cef3630d2f4fb40a9066d6)\n" }, { "from": "human", "value": "using Newtonsoft.Json;\n\nnamespace Nest\n{\n\t[JsonObject]\n\tpublic class AnalyzeToken\n\...
c#
chosen
[ { "from": "system", "value": "Remove Restrictions on search endpoint\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing FluentValidation;\nusing SFA.DAS.CommitmentsV2.Models;\n\nnamespace SFA.DAS.CommitmentsV2.Application.Queries.GetApprenticeships\n{\n public class ...
c#
chosen
[ { "from": "system", "value": "Remove form Fields from Container Edit\n" }, { "from": "human", "value": "@model Portal.CMS.Web.Areas.Builder.ViewModels.Container.EditViewModel\n@{\n Layout = \"\";\n}\n\n<script type=\"text/javascript\">\n function Delete()\n {\n $('#@Model.Contai...
c#
chosen
[ { "from": "system", "value": "Test for accelerating whilst falling now passes\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections.Generic;\n\npublic class PlayerMovement\n{\r\n private const float Gravity = -1.0f;\r\n\r\n public bool IsOnGround { get; set; }\r\...
c#
chosen
[ { "from": "system", "value": "Align .NET4 assembly version with main project\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.CompilerServices;\n\n// Information about this assembly is defined by the following attributes.\n// Change them to the values specific t...
c#
chosen
[ { "from": "system", "value": "Fix code quality for CI\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\n#nullable disable\n\nusing osu.Framework.Allocation;\n...
c#
chosen
[ { "from": "system", "value": "Fix wrong id used in DoNotUseCoroutines test\n" }, { "from": "human", "value": "using Microsoft.CodeAnalysis;\nusing Microsoft.CodeAnalysis.Diagnostics;\nusing Microsoft.CodeAnalysis.Text;\nusing NUnit.Framework;\nusing RoslynNUnitLight;\nusing UnityEngineAnalyzer....
c#
chosen
[ { "from": "system", "value": "Add locations to allow scopes to dictionary\n" }, { "from": "human", "value": "using IdentityModel.Client;\nusing System;\nusing System.Collections.Generic;\n\nnamespace eShopOnContainers.Core.Services.Identity\n{\n public class IdentityService : IIdentityServic...
c#
chosen
[ { "from": "system", "value": "Update ai/navmesh agents to stop pursuing during content display state.\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections;\r\nusing System.Collections.Generic;\r\n\r\nusing UnityEngine;\r\n\r\nnamespace Engine.Game.Actor {\r\n\r\n publi...
c#
chosen
[ { "from": "system", "value": "Call ShowPlayPauseControls and ShowNavigationControls setters in base constructor\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace MediaManager\n{\n public abstract class NotificationManagerBase...
c#
chosen
[ { "from": "system", "value": "Update Authorize attribute to use Bearer policy\n" }, { "from": "human", "value": "using LearnWordsFast.API.Exceptions;\nusing LearnWordsFast.API.Services;\nusing LearnWordsFast.API.ViewModels.TrainingController;\nusing Microsoft.AspNetCore.Authorization;\nusing Mi...
c#
chosen
[ { "from": "system", "value": "Use Pascal casing for method name\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\n\r\nnamespace WinRSJS\r\n{\r\n public sealed class Collections\r\n {\r\n static public object /* IMap<?, ?> */ createMap(string k...
c#
chosen
[ { "from": "system", "value": "Add more supported image extensions to the image viewer plugin.\n" }, { "from": "human", "value": "using System.IO;\r\nusing System.Windows.Controls;\r\nusing System.Windows.Media.Imaging;\r\nusing NuGetPackageExplorer.Types;\r\n\r\nnamespace PackageExplorer {\r\n ...
c#
chosen
[ { "from": "system", "value": "Clear all view engines and add only Razor view engine (performance)\n" }, { "from": "human", "value": "using AnimalHope.Web.Infrastructure.Mapping;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.Mvc;\nusin...
c#
chosen
[ { "from": "system", "value": "Load environment variables from different targets to support ASP.Net applications.\n" }, { "from": "human", "value": "using System;\nusing System.Collections;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace Archaius\n{\n public class Environm...
c#
chosen
[ { "from": "system", "value": "Revert \"Add failing test case\"\n\nThis reverts commit ec89a149dd752d242e1675a4462c8af4e360eb3e.\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for fu...
c#
chosen
[ { "from": "system", "value": "Use correct width adjust for osu!catch playfield\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing osu.Framework.Graphics;...
c#
chosen
[ { "from": "system", "value": "Add contracts to verifty the DrawModel() method doesn't receive null data.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing Microsoft.Xna.Framework;\nus...
c#
chosen
[ { "from": "system", "value": "Clean up and add comments\n" }, { "from": "human", "value": "\r\nusing System.Collections.Generic;\r\nusing LinqToTTreeInterfacesLib;\r\nnamespace LINQToTTreeLib.Statements\r\n{\r\n /// <summary>\r\n /// Sits inside a loop and records the integer that it is g...
c#
chosen
[ { "from": "system", "value": "Check validity if the ImageView before trying to access its Drawable\n" }, { "from": "human", "value": "using Android.Widget;\nusing FFImageLoading.Work;\n\nnamespace FFImageLoading.Extensions\n{\n\tpublic static class ImageViewExtensions\n\t{\n\t\t/// <summary>\n\t...
c#
chosen
[ { "from": "system", "value": "Convert relative path into full path\n" }, { "from": "human", "value": "using System.IO;\nusing System.Reflection;\nusing Cake.Core;\nusing Cake.Core.Annotations;\nusing Nerdbank.GitVersioning;\n\nnamespace Cake.GitVersioning\n{\n /// <summary>\n /// Contains...
c#
chosen
[ { "from": "system", "value": "Set collections on property groups\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Runtime.Serialization;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Umbraco.Web.Models.Conten...
c#
chosen
[ { "from": "system", "value": "Add audio feedback for rearranging list items\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\n#nullable disable\n\nusing osu.F...
c#
chosen
[ { "from": "system", "value": "Update benchmarks to new format\n" }, { "from": "human", "value": "using Microsoft.Xunit.Performance;\nusing Xunit;\n\nnamespace DNXLibrary\n{\n // This project can output the Class library as a NuGet Package.\n // To enable this option, right-click on the pr...
c#
chosen
[ { "from": "system", "value": "Make Markdown help open in another window\n" }, { "from": "human", "value": "@model JoinRpg.DataModel.MarkdownString\n@{\n var requiredMsg = new MvcHtmlString(\"\");\n var validation = false;\n foreach (var attr in @Html.GetUnobtrusiveValidationAttributes(@Vie...
c#
chosen
[ { "from": "system", "value": "Add english as well as german" }, { "from": "human", "value": "// WhistTest.cs\r\n// <copyright file=\"WhistTest.cs\"> This code is protected under the MIT License. </copyright>\r\nusing System;\r\nusing CardGames.Whist;\r\n\r\nnamespace ConsoleTesting\r\n{\r\n ...
c#
chosen
[ { "from": "system", "value": "Fix \"Search\" widget ignoring search errors\n" }, { "from": "human", "value": "using System.Diagnostics;\nusing System.Windows.Input;\nusing DesktopWidgets.Classes;\nusing DesktopWidgets.Helpers;\nusing DesktopWidgets.ViewModelBase;\nusing GalaSoft.MvvmLight.Comma...
c#
chosen
[ { "from": "system", "value": "Add skin traget resetting on setup/teardown steps\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing NUnit.Framework;\nusin...
c#
chosen
[ { "from": "system", "value": "Implement last update model, had forgotten, hehe\n" }, { "from": "human", "value": "namespace pinboard.net.Models\n{\n public class LastUpdate\n {\n }\n}" }, { "from": "gpt", "value": "using Newtonsoft.Json;\nusing System;\n\nnamespace pinboar...
c#
chosen
[ { "from": "system", "value": "Align assembly version with package version\n" }, { "from": "human", "value": "using System.Resources;\nusing System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General Information about an assembly is controlled...
c#
chosen
[ { "from": "system", "value": "Remove unused using embedded in reverted changes\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing osu.Framework.Bindable...
c#
chosen
[ { "from": "system", "value": "Add TextTags properties to request data\n\n* HSSendSignatureRequestData now support the use of\n [TextTags](https://www.hellosign.com/api/textTagsWalkthrough)\n in API call\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.IO;\nusi...
c#
chosen
[ { "from": "system", "value": "Downlitor: Add item index for multiple items with same name" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Drawing;\nusing System.Data;\nusing System.Linq;\nusing System.Text;\nusing Sys...
c#
chosen
[ { "from": "system", "value": "Add support for compound index keys to newtonsoft\n" }, { "from": "human", "value": "using RethinkDb.DatumConverters;\n\nnamespace RethinkDb.Newtonsoft.Configuration\n{\n public class NewtonSerializer : AggregateDatumConverterFactory\n {\n public Newto...
c#
chosen
[ { "from": "system", "value": "Add placeholder in config file to load settings from an external file\n" }, { "from": "human", "value": "using System;\r\nusing System.Configuration;\r\nusing System.Linq;\r\n\r\nnamespace NBi.NUnit.Runtime\r\n{\r\n public class NBiSection : ConfigurationSection...
c#
chosen
[ { "from": "system", "value": "Update usage notes when crayon.exe is invoked without arguments.\n" }, { "from": "human", "value": "using Common;\r\nusing System;\r\n\r\nnamespace Crayon\r\n{\r\n internal class UsageDisplayWorker\r\n {\r\n private static readonly string USAGE = Util....
c#
chosen
[ { "from": "system", "value": "Add json serialization for runtime configuration.\n" }, { "from": "human", "value": "using System.IO;\nusing System.Text.Json;\n\nnamespace AsmResolver.DotNet.Config.Json\n{\n /// <summary>\n /// Represents the root object of a runtime configuration, stored in...
c#
chosen
[ { "from": "system", "value": "Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.\n" }, { "from": "human", "value": "us...
c#
chosen
[ { "from": "system", "value": "Fix test event ordering to correctly test fail case\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System.Threading;\n...
c#
chosen
[ { "from": "system", "value": "Add test showing all mod icons for reference\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\n#nullable disable\n\nusing System...
c#
chosen
[ { "from": "system", "value": "Verify that an ApplicationConfigurationException is thrown if no configuration file exists\n" }, { "from": "human", "value": "using System.IO;\nusing System.Text;\nusing Moq;\nusing Xunit;\n\nnamespace AppHarbor.Tests\n{\n\tpublic class ApplicationConfigurationTest...
c#
chosen
[ { "from": "system", "value": "Test IsNearExpiracy while converted ToLocalTime\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Create.CSP.GitHub.Reporting.Entities\n{\n publ...
c#
chosen
[ { "from": "system", "value": "Add shared project for models for client-server communication.\n" }, { "from": "human", "value": "using System.Threading.Tasks;\nusing Microsoft.AspNet.SignalR;\nusing System.Collections.Generic;\nusing WaveDev.ModelR.Models;\nusing System;\nusing System.Globalizat...
c#
chosen
[ { "from": "system", "value": "Make vision and locomotion required on humanoids\n" }, { "from": "human", "value": "using Alensia.Core.Locomotion;\nusing Alensia.Core.Sensor;\nusing UnityEngine;\nusing UnityEngine.Assertions;\nusing Zenject;\n\nnamespace Alensia.Core.Character\n{\n public clas...
c#
chosen
[ { "from": "system", "value": "Add toggle play by keyboard input\n" }, { "from": "human", "value": "using UniRx;\nusing UnityEngine;\nusing UnityEngine.UI;\n\npublic class TogglePlayPresenter : MonoBehaviour\n{\n [SerializeField]\n Button togglePlayButton;\n [SerializeField]\n Sprite...
c#
chosen
[ { "from": "system", "value": "Remove unused `Unavailable` connection state\n" }, { "from": "human", "value": "namespace PusherClient\r\n{\r\n public enum ConnectionState\r\n {\r\n Initialized,\r\n Connecting,\r\n Connected,\r\n Unavailable,\r\n Disconnec...
c#
chosen
[ { "from": "system", "value": "Exclude Seadragon.config.js from combining because it does substitution.\n\n--HG--\nextra : convert_revision : svn%3Ae6b3c636-de15-0940-aca3-4844ac488b3a%4013\n" }, { "from": "human", "value": "using System.Reflection;\r\nusing System.Resources;\r\nusing System.Run...
c#
chosen
[ { "from": "system", "value": "Fix crash on local score display\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System.Linq;\nusing Microsoft.EntityFr...
c#
chosen
[ { "from": "system", "value": "Use GUID for component name\n" }, { "from": "human", "value": "using System;\nusing System.Threading;\nusing WebScriptHook.Framework;\nusing WebScriptHook.Framework.BuiltinPlugins;\nusing WebScriptHook.Terminal.Plugins;\n\nnamespace WebScriptHook.Terminal\n{\n c...
c#
chosen
[ { "from": "system", "value": "Add primary key to completed steps db table\n" }, { "from": "human", "value": "using Dapper;\nusing RapidCore.Migration;\nusing RapidCore.PostgreSql.Internal;\nusing System.Threading.Tasks;\n\nnamespace RapidCore.PostgreSql.Migration.Internal\n{\n public static ...
c#
chosen
[ { "from": "system", "value": "Set default value to PropertyMetadata\n" }, { "from": "human", "value": "using System.Windows;\r\nusing System.Windows.Controls;\r\n\r\nnamespace BindingTest.Control\r\n{\r\n public partial class CheckboxControl : UserControl\r\n {\r\n public bool Chec...
c#
chosen
[ { "from": "system", "value": "TImeConverterControl: Set today as default value\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Drawing;\nusing System.Data;\nusing System.Text;\nusing System.Windows.Forms;\n\nnamespac...
c#
chosen
[ { "from": "system", "value": "Make stacked hitcircles more visible when using default skin\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing osu.Framewo...
c#
chosen
[ { "from": "system", "value": "Make Cake Bakery resolution case insensitive\n" }, { "from": "human", "value": "using System.IO;\nusing System.Linq;\nusing OmniSharp.Cake.Configuration;\n\nnamespace OmniSharp.Cake.Services\n{\n internal static class ScriptGenerationToolResolver\n {\n ...
c#
chosen
[ { "from": "system", "value": "Add jQuery mobile loader widget\n" }, { "from": "human", "value": "using System;\nusing PortableRazor;\n\nnamespace PortableCongress\n{\n\tpublic class PoliticianController\n\t{\n\t\tIHybridWebView webView;\n\t IDataAccess dataAccess;\n\n\t\tpublic PoliticianCon...
c#
chosen
[ { "from": "system", "value": "Fix naming of MonoMac vs MonoMac 64-bit platform\n" }, { "from": "human", "value": "using System.Reflection;\n\n#if XAMMAC2\n[assembly: AssemblyTitle(\"Eto.Forms - Xamarin.Mac v2.0 Platform\")]\n[assembly: AssemblyDescription(\"OS X Platform for the Eto.Forms UI Fra...
c#
chosen
[ { "from": "system", "value": "Fix issue of wrong counting characters if a text contains newline\n\nFix it by replacing CRLF to LF.\n\nBecause WPF text control recognize CRLF as a new line, the new line has\ntwo characters (\\r\\n). But twitter converts CRLF to LF so that one new\nlines should be treated as ...
c#
chosen
[ { "from": "system", "value": "Fix bug by removing duplicate code\n" }, { "from": "human", "value": "using SFA.DAS.Authorization;\nusing System;\nusing System.Linq;\nusing System.Linq.Expressions;\nusing System.Web.Mvc;\n\nnamespace SFA.DAS.EmployerAccounts.Web.Extensions\n{\n public static c...
c#
chosen
[ { "from": "system", "value": "Update GetServiceDirectory() API to use EndpointConfig\n" }, { "from": "human", "value": "/* Empiria Extensions Framework ******************************************************************************\n* ...
c#
chosen
[ { "from": "system", "value": "Allow to specify font in the label constructor\n" }, { "from": "human", "value": "using System.Drawing;\nusing MonoHaven.Graphics;\n\nnamespace MonoHaven.UI\n{\n\tpublic class Label : Widget\n\t{\n\t\tprivate string text;\n\t\tprivate readonly TextBlock textBlock;\...
c#
chosen
[ { "from": "system", "value": "Refactor process to remove FormatException from trace log\n" }, { "from": "human", "value": "using System;\nusing Arkivverket.Arkade.Tests;\n\nnamespace Arkivverket.Arkade.Core.Addml.Processes\n{\n public class AnalyseFindMinMaxValues : IAddmlProcess\n {\n ...
c#
chosen
[ { "from": "system", "value": "Fix styling for users download page\n" }, { "from": "human", "value": "@model Orc.CheckForUpdate.Web.Models.VersionsViewModel\n\n@{\n ViewBag.Title = \"Index\";\n}\n\n@section additionalstyles\n{\n @Styles.Render(\"~/Content/css/downloads\")\n}\n\n<h2>Release...
c#
chosen
[ { "from": "system", "value": "Set Client Provided Name when creating connection\n" }, { "from": "human", "value": "using EasyRabbitMQ.Configuration;\nusing RabbitMQ.Client;\n\nnamespace EasyRabbitMQ.Infrastructure\n{\n internal class ConnectionFactory : IConnectionFactory\n {\n pri...
c#
chosen
[ { "from": "system", "value": "Fix weird english in test ignore comment\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing NUnit.Framework;\nusing osu.Fra...
c#
chosen
[ { "from": "system", "value": "Fix - forgot to commit version change to 0.2.1.\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General Information about an assembly is controlled through the followin...
c#
chosen
[ { "from": "system", "value": "Reset Y postiions of TabItems before performing layout.\n\nAllows for expanding the size of an existing TabControl and having items re-appear.\n" }, { "from": "human", "value": "// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.\r\n// Licensed under the MIT L...
c#
chosen
[ { "from": "system", "value": "Check if credit card payment received\n" }, { "from": "human", "value": "@using Microsoft.Web.Mvc\n@model CRP.Controllers.ViewModels.PaymentConfirmationViewModel\n\n@{\n ViewBag.Title = \"Confirmation\";\n}\n\n<div class=\"boundary\">\n <h2>Registration Confi...
c#
chosen
[ { "from": "system", "value": "Fix Stylecop failure\n- long line\n" }, { "from": "human", "value": "// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.\n// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nusing Sy...
c#
chosen
[ { "from": "system", "value": "Disable command debugging for now, and clean up.\n" }, { "from": "human", "value": "#define DEBUG_COMMANDS\n//using UnityEditor;\n//using UnityEngine;\n//using System.Collections;\nusing System.Diagnostics;\n\npublic class ShellHelpers {\n public static Process Sta...
c#
chosen
[ { "from": "system", "value": "Set OperationId via annotations in test project\n" }, { "from": "human", "value": "using Microsoft.AspNetCore.Mvc;\nusing Swashbuckle.AspNetCore.Annotations;\nusing Basic.Swagger;\n\nnamespace Basic.Controllers\n{\n [SwaggerTag(\"Manipulate Carts to your heart's...
c#
chosen
[ { "from": "system", "value": "Set nuget package version to 2.0.0\n" }, { "from": "human", "value": "using System.Reflection;\n\n// General Information about an assembly is controlled through the following \n// set of attributes. Change these attribute values to modify the information\n// associ...
c#
chosen
[ { "from": "system", "value": "Switch direct handling by a asyncrhonous dispatching in core sample\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\nusing Bartender;\nusing ConsoleApplication.Registries;\nusing CoreApplication.Domain.Personne.Create;\nusing CoreApp...
c#
chosen
[ { "from": "system", "value": "Add another unit test for an MSBuild project (currently failing)\n" }, { "from": "human", "value": "using System.IO;\nusing Microsoft.Extensions.Logging;\nusing OmniSharp.MSBuild.ProjectFile;\nusing TestUtility;\nusing Xunit;\nusing Xunit.Abstractions;\n\nnamespace...
c#
chosen
[ { "from": "system", "value": "Allow application startup with inherited startup class\n" }, { "from": "human", "value": "using Microsoft.AspNetCore.Hosting;\nusing Microsoft.Extensions.Configuration;\nusing Microsoft.Extensions.Logging;\nusing ServiceBase.Configuration;\nusing System;\nusing Sys...
c#
chosen
[ { "from": "system", "value": "Add a check for api keys in query parameters.\n" }, { "from": "human", "value": "using jab.Attributes;\nusing NSwag;\nusing Xunit;\nusing System.Linq;\n\nnamespace jab\n{\n public class TestExample\n {\n [Theory, ParameterisedClassData(typeof(ApiOperat...
c#
chosen
[ { "from": "system", "value": "Add global keyboard shortcut listener\n" }, { "from": "human", "value": "using System.Windows.Input;\n\nnamespace clipman.Settings\n{\n public static class Keyboard\n {\n public static Key ClearTextboxKey = Key.Escape;\n }\n}\n" }, { "from":...
c#
chosen
[ { "from": "system", "value": "Fix test which relies on reflection over the code fixes assembly\n" }, { "from": "human", "value": "// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.\n// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for licens...
c#
chosen
[ { "from": "system", "value": "Increase timeout for Timer tests\n" }, { "from": "human", "value": "using System;\nusing System.Threading;\nusing Xunit;\nusing Should;\nusing Timer = SlackConnector.Connections.Monitoring.Timer;\n\nnamespace SlackConnector.Tests.Unit.Connections.Monitoring\n{\n ...
c#
chosen
[ { "from": "system", "value": "Fix REST API url in documentation\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing TimeLog.Api.Core.Documentation.Models.RestDocumentationHelpers.Core;\n\nnamespace TimeLog.Api.Core.Documentation.Models.RestDocumentati...
c#
chosen
[ { "from": "system", "value": "Add rounded corners to timeline ticks display\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing osu.Framework.Graphics;\nu...
c#
chosen
[ { "from": "system", "value": "Mark the eight-byte-boundaries when dumping a message\n" }, { "from": "human", "value": "using System;\nusing System.Buffers;\n\nnamespace Dbus\n{\n internal static class ExtensionMethods\n {\n public static void Dump(this ReadOnlySequence<byte> buffer...
c#
chosen
[ { "from": "system", "value": "Add access tests for all nullable types.\n" }, { "from": "human", "value": "/* Copyright 2015 Realm Inc - All Rights Reserved\n * Proprietary and Confidential\n */\n\nusing System.IO;\nusing NUnit.Framework;\nusing Realms;\n\nnamespace IntegrationTests.Shared\n{\n ...
c#
chosen
[ { "from": "system", "value": "Add Color custom display option for star ratings\n" }, { "from": "human", "value": "using Newtonsoft.Json;\nusing System.Collections.Generic;\n\nnamespace SurveyMonkey.Containers\n{\n [JsonConverter(typeof(TolerantJsonConverter))]\n public class QuestionDispl...
c#
chosen
[ { "from": "system", "value": "Remove redundant case from switch statement\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Management.Automation.Language;\n\nnamespace Microsoft.PowerShell.EditorServices\n{\n internal class ...
c#
chosen
[ { "from": "system", "value": "Set current directory when running as a service.\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.ServiceProcess;\r\nusing System.Text;\r\n\r\nnamespace SteamIrcBot\r\n{\r\n static class ...
c#
chosen
[ { "from": "system", "value": "Fix datetime json ext - lost one millisecond\n" }, { "from": "human", "value": "using System;\n\nnamespace MK.Ext\n{\n\t/// <summary>\n\t/// DateTime Json Extensions\n\t/// </summary>\n\tpublic static class DateTimeJsonExt\n\t{\n\t\tprivate static readonly DateTime ...
c#
chosen
[ { "from": "system", "value": "Change the page title and h1.\n" }, { "from": "human", "value": "@{\n Layout = null;\n}\n\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <title>Bootstrap 101 Template</title>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n ...
c#
chosen
[ { "from": "system", "value": "Add mapping for all entities\n" }, { "from": "human", "value": "using AutoMapper;\r\nusing BusinessEntities;\r\nusing BusinessEntities.Dictionaries;\r\nusing DataModel;\r\nusing DataModel.Dictionaries;\r\n\r\nnamespace BLL.Mapping\r\n{\r\n\tpublic class AutomapperP...
c#
chosen