conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Create Contact method added to Contact Controller\n" }, { "from": "human", "value": "using DEX.Models;\nusing Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.Mvc;\n\nnamespace DEX.Controlle...
c#
chosen
[ { "from": "system", "value": "Rename \"Final PP\" to \"Achieved PP\"\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.Collections.Generic;\nusi...
c#
chosen
[ { "from": "system", "value": "Revert the addition of SQL code for deleting DuplicateCuratedPackages. This will move over to a SQL script in NuGetOperations.\n" }, { "from": "human", "value": "namespace NuGetGallery.Migrations\n{\n using System.Data.Entity.Migrations;\n \n public partial...
c#
chosen
[ { "from": "system", "value": "Add comments to the notification interface\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\n\nnamespace CertiPay.Common.Notifications\n{\n public class Notification\n {\n public String Content { get; set; }\n\n ...
c#
chosen
[ { "from": "system", "value": "Remove unused positional constructor arg\n" }, { "from": "human", "value": "using HOLMS.Types.Booking.Indicators;\nusing HOLMS.Types.Extensions;\nusing HOLMS.Types.Primitive;\n\nnamespace HOLMS.Types.Booking {\n public partial class CancellationPolicy : EntityDT...
c#
chosen
[ { "from": "system", "value": "Adjust default mania speed to match stable\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 osu.Framework.Configuration...
c#
chosen
[ { "from": "system", "value": "Fix tests failing due to base logic firing\n\nIt turns out that the changelog code was semi-intentionally relying on\nthe request to get release streams to be slow to initially show the\nlisting of all streams.\n\nLocally suppress the base tab control logic to fix this.\n" },...
c#
chosen
[ { "from": "system", "value": "Remove ConcurrentQueue wrapper around input enumerable and just iterate it directly in the Run method\n" }, { "from": "human", "value": "using System.Collections.Concurrent;\nusing System.Collections.Generic;\nusing System.Threading;\n\nnamespace BulkWriter.Pipelin...
c#
chosen
[ { "from": "system", "value": "Add all opcodes to the enum\n\nThe data comes from http://www.unusedino.de/ec64/technical/aay/c64/bmain.htm\n" }, { "from": "human", "value": "namespace Mos6510.Instructions\n{\n public enum Opcode\n {\n Inx,\n Iny,\n Nop,\n And,\n Ora,\n Eor,\n ...
c#
chosen
[ { "from": "system", "value": "Fix wrong json key of WeekdayOfMonth property.\n" }, { "from": "human", "value": "using System;\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Serialization;\nnamespace Omise.Models\n{\n public class ScheduleOnRequest : Request\n {\n [JsonProperty(\"we...
c#
chosen
[ { "from": "system", "value": "Make ExcludeFromCodeCoverage compatibility stub internal\n" }, { "from": "human", "value": "#if NET35 || UAP\nusing System;\n\nnamespace System.Diagnostics.CodeAnalysis\n{\n [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = false)]\n pub...
c#
chosen
[ { "from": "system", "value": "Disable EF Core transaction test.\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\nusing Abp.Domain.Repositories;\nusing Abp.Domain.Uow;\nusing Abp.EntityFrameworkCore.Tests.Domain;\nusing Microsoft.EntityFrameworkCore;\nusing Shouldl...
c#
chosen
[ { "from": "system", "value": "Make card image types optional\n" }, { "from": "human", "value": "using Newtonsoft.Json;\n\nnamespace Alexa.NET.Response\n{\n public class CardImage\n {\n [JsonProperty(\"smallImageUrl\")]\n [JsonRequired]\n public string SmallImageUrl { ...
c#
chosen
[ { "from": "system", "value": "Fix typo in Asp.Net 4.5 Sample app (Simple4)\n" }, { "from": "human", "value": "@{\n ViewBag.Title = \"Configuration Settings for Spring Cloud Config Server\";\n}\n<h2>@ViewBag.Title.</h2>\n\n<h4>spring:cloud:config:enabled = @ViewBag.Enabled</h4>\n<h4>spring:cl...
c#
chosen
[ { "from": "system", "value": "Introduce Null Argument check if context is null on RequestIgnorerManager\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing Microsoft.AspNet.Http;\n\nnamespace Glimpse.Agent.Web\n{\n public class DefaultRequestIgnore...
c#
chosen
[ { "from": "system", "value": "Fix AutomapHelper to only return assemblies decorated with IgnitionAutomapAttribute\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Reflection;\n\nnamespace Ignition.Foundation.Core.Automap\n{\n ...
c#
chosen
[ { "from": "system", "value": "Fix delay bug on resetting\n" }, { "from": "human", "value": "using UnityEngine;\n\npublic class GameController : MonoBehaviour\n{\n GlobalGame game;\n public float previewTime, previewTimer, confirmTime, confirmTimer;\n\n public GlobalGame Game\n {\n ...
c#
chosen
[ { "from": "system", "value": "Add comments, better error handling to new class.\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\nusing System.Xml.Serialization;\nusing LtiLibrary.Core.Outcomes.v1;\nusing Microsoft.AspNetCore.Mvc.ModelBinding;\nusing System.IO;\n\...
c#
chosen
[ { "from": "system", "value": "Use more appropriate exception (can also never happen - JSON.NET uses the CanWrite property).\n" }, { "from": "human", "value": "using System;\nusing Lloyd.AzureMailGateway.Models;\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\n\nnamespace Lloyd.AzureMailGat...
c#
chosen
[ { "from": "system", "value": "Add a rotating box for indication of a good game template state\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.Fra...
c#
chosen
[ { "from": "system", "value": "Make sure we receive a meaningful response\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nusing NFluent;\n\nusing NUnit.Framework;\n\nnamespace AppVeyorSe...
c#
chosen
[ { "from": "system", "value": "Add a blank line test\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.UI;\nusing System.Web.UI.WebControls;\n\nnamespace ASPVariables\n{\n public partial class SessionRe...
c#
chosen
[ { "from": "system", "value": "Add setting to bypass front-to-back\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.Allocation;\nusing os...
c#
chosen
[ { "from": "system", "value": "Test to be proper async. Dave to make the test pass\n" }, { "from": "human", "value": "using System;\nusing Microsoft.VisualStudio.TestTools.UnitTesting;\nusing WhatsMyRun.Services.DataRequestor;\nusing Moq;\nusing WhatsMyRun.Services.DataProviders.Workouts;\nusing...
c#
chosen
[ { "from": "system", "value": "Return Journal entries latest first\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Apollo.Data.ResultModels;\nusing Dapper;\n\nnamespace Apollo.Data\n{\n public interface IJournalDat...
c#
chosen
[ { "from": "system", "value": "Add xmldoc warning against use of FramesPerSecond\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\nnamespace osu.Framework.Tim...
c#
chosen
[ { "from": "system", "value": "Replace field by access to base class\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\n\nnamespace NQuery.Language\n{\n public sealed class ExpressionSelectColumnSyntax : SelectColumnSyntax\n {\n private readonly Expr...
c#
chosen
[ { "from": "system", "value": "Use SkinnableSprite for approach circle\n\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.Allocation;\nus...
c#
chosen
[ { "from": "system", "value": "Use port 80 by default for containerizer\n" }, { "from": "human", "value": "using Microsoft.Owin.Hosting;\nusing System;\nusing System.Net.Http;\nusing System.Net.WebSockets;\nusing System.Text;\nusing System.Threading;\nusing Owin.WebSocket;\nusing Owin.WebSocket....
c#
chosen
[ { "from": "system", "value": "Update to Problem 1. Exchange If Greater\n" }, { "from": "human", "value": "/*Problem 1. Exchange If Greater\n\n Write an if-statement that takes two double variables a and b and exchanges their values if the first one\n is greater than the second one. As a r...
c#
chosen
[ { "from": "system", "value": "Allow downloading files from administrative mode\n" }, { "from": "human", "value": "@using Humanizer\n@model FilesOverviewModel\n\n@{\n ViewBag.Title = \"Uploaded file overview\";\n}\n\n<h2>@ViewBag.Title</h2>\n\n@{\n var sortedFiles = Model.Files.OrderBy(x =...
c#
chosen
[ { "from": "system", "value": "Call InitializeComponent, if no code-behind\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Reflection;\nusing System.Text;\nusing System.Text.RegularExpressions;\nusing System.Threading.Tasks;\n...
c#
chosen
[ { "from": "system", "value": "Remove unnecessary code and fix double nesting causing filtering to not work\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\nu...
c#
chosen
[ { "from": "system", "value": "Fix layout switcher tool menu path\n" }, { "from": "human", "value": "using UnityEditor;\nusing UnityEngine;\n\nnamespace SpaceTrader.Util.EditorUtil {\n public static class AspectRatioLayoutSwitcherEditor {\n [MenuItem(\"SpaceTrader/Refresh All Layout Sw...
c#
chosen
[ { "from": "system", "value": "Make the test pass for PostgreSQL, using a bit of a hack\n\n\nSVN: 488784591515bd4cdaa016be4ec9b172dc4e7caf@1282\n" }, { "from": "human", "value": "using System;\nusing System.Data;\nusing System.Text;\n\nusing NHibernate.Engine;\nusing NExpression = NHibernate.Expr...
c#
chosen
[ { "from": "system", "value": "Reduce diff size: undo autoformat.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading;\n\nnamespace DummyConsoleApp\n{\n public class Program\n {\n static void Main(string[] a...
c#
chosen
[ { "from": "system", "value": "Switch over to using Regex extension\n" }, { "from": "human", "value": "using System;\nusing Glimpse.Agent.Web.Options;\nusing Microsoft.Framework.OptionsModel;\n\nnamespace Glimpse.Agent.Web\n{\n public class GlimpseAgentWebOptionsSetup : ConfigureOptions<Glimp...
c#
chosen
[ { "from": "system", "value": "Fix the test on MySQL, should work now\n\n\nSVN: 488784591515bd4cdaa016be4ec9b172dc4e7caf@1689\n" }, { "from": "human", "value": "using System;\nusing System.Data;\nusing System.Text;\n\nusing NHibernate.Engine;\nusing NExpression = NHibernate.Expression;\nusing NHi...
c#
chosen
[ { "from": "system", "value": "Switch Thomas Rayner over to IWorkAtMicrosoft" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.ServiceModel.Syndication;\nusing System.Web;\nusing Firehose.Web.Infrastructure;\n\nnamespace Firehose.W...
c#
chosen
[ { "from": "system", "value": "Add assemblywide cake namespace imports\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 following \n// s...
c#
chosen
[ { "from": "system", "value": "Mark ROM region for Glulx\n" }, { "from": "human", "value": "using System;\nusing IFVM.Core;\n\nnamespace IFVM.Glulx\n{\n public class GlulxMachine : Machine\n {\n public GlulxHeader Header { get; }\n\n public GlulxMachine(Memory memory) : base(...
c#
chosen
[ { "from": "system", "value": "Remove the Copy to Output Directory file property\n" }, { "from": "human", "value": "namespace DanTup.DartVS.ProjectSystem\n{\n using System.ComponentModel;\n using System.Runtime.InteropServices;\n using Microsoft.VisualStudio.Project;\n using prjBuild...
c#
chosen
[ { "from": "system", "value": "Order pages by title in dropdown" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing DirigoEdgeCore.Data.Entities;\nusing DirigoEdgeCore.Models;\n\npublic class RedirectViewModel : DirigoBaseModel\n{\n public List<Redire...
c#
chosen
[ { "from": "system", "value": "Allow IndexName to be serialized as an object key\n" }, { "from": "human", "value": "using Utf8Json;\n\nnamespace Nest\n{\n\tinternal class IndexNameFormatter : IJsonFormatter<IndexName>\n\t{\n\t\tpublic IndexName Deserialize(ref JsonReader reader, IJsonFormatterRe...
c#
chosen
[ { "from": "system", "value": "MusicRandomizer: Remove other_files message box from the region selector\n" }, { "from": "human", "value": "using System;\r\nusing System.IO;\r\nusing System.Windows.Forms;\r\n\r\nnamespace MusicRandomizer\r\n{\r\n public partial class VersionRequestForm : Form\...
c#
chosen
[ { "from": "system", "value": "Allow category to be null in Azure SQL listener\n\nAnother null category fix\n" }, { "from": "human", "value": "using System.Data;\r\nusing System.Data.SqlClient;\r\nusing SimpleAzureTraceListener.Listeners.Base;\r\nusing SimpleAzureTraceListener.Models;\r\n\r\nnam...
c#
chosen
[ { "from": "system", "value": "Hide the blinking console tail on linux.\n" }, { "from": "human", "value": "using SnakeApp.Models;\nusing System;\nusing System.Threading.Tasks;\n\nnamespace SnakeApp\n{\n\tpublic class GameController\n\t{\n\t\tpublic async Task StartNewGame()\n\t\t{\n\t\t\tvar gam...
c#
chosen
[ { "from": "system", "value": "Change method callings to default static instance\n" }, { "from": "human", "value": "using System;\n\nnamespace PcscDotNet\n{\n public static class Pcsc<TIPcscProvider> where TIPcscProvider : class, IPcscProvider, new()\n {\n private static readonly Pcs...
c#
chosen
[ { "from": "system", "value": "Add registration options for codeAction request\n" }, { "from": "human", "value": "using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;\nusing Newtonsoft.Json.Linq;\n\nnamespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer\n{\n publ...
c#
chosen
[ { "from": "system", "value": "Move down to highlight the Create methods.\n" }, { "from": "human", "value": "using System.Net.Http;\nusing MyCouch.Net;\n\nnamespace MyCouch.Requests.Factories\n{\n public class AttachmentHttpRequestFactory : \n HttpRequestFactoryBase,\n IHttpRequ...
c#
chosen
[ { "from": "system", "value": "Fix copy and past bug.\n" }, { "from": "human", "value": "using UnityEngine;\r\nusing System.Collections;\r\nusing Realms.Common.Packet;\r\nusing System;\r\n\r\nnamespace Realms.Server.Packet\r\n{\r\n [Serializable]\r\n public class PlayerHandshakePacket : IP...
c#
chosen
[ { "from": "system", "value": "Fix failing test due to missing dependency\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.F...
c#
chosen
[ { "from": "system", "value": "Mark the ExtractTest as EndToEnd.\n" }, { "from": "human", "value": "using org.grobid.core;\r\nusing System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Threading.Tasks;\r\nusing FluentAssertions;\r\nusing Xunit;...
c#
chosen
[ { "from": "system", "value": "Add registration options for documentHighlight request\n" }, { "from": "human", "value": "//\n// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n//\n\nusing Microso...
c#
chosen
[ { "from": "system", "value": "Put obstaclenetworking setup in the right place.\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class SpinnerActivator : MonoBehaviour\n{\n public bool boostEnabled;\n public GameO...
c#
chosen
[ { "from": "system", "value": "Redefine age field as unsigned\n" }, { "from": "human", "value": "namespace StressMeasurementSystem.Models\n{\n public class Patient\n {\n #region Structs\n\n struct Name\n {\n public string Prefix { get; set; }\n pu...
c#
chosen
[ { "from": "system", "value": "Remove some hints, function name is clear enough\n" }, { "from": "human", "value": "using UnityEngine;\nusing UnityEngine.Rendering;\nusing UnityEngine.Networking;\npublic static class UnityUtils\n{\n /// <summary>\n /// Is any of the keys UP?\n /// </summ...
c#
chosen
[ { "from": "system", "value": "Add view elements for resending Confirm code\n" }, { "from": "human", "value": "<h1 class=\"heading-xlarge\">Enter your security code</h1>\r\n\r\n<form method=\"post\">\r\n @Html.AntiForgeryToken()\r\n\r\n <fieldset>\r\n <legend class=\"visuallyhidden\...
c#
chosen
[ { "from": "system", "value": "Test for properties column filtering\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace Serilog.Sinks.MSSqlServer.Tests\n{\n class TestPropertiesColumnFiltering\n {\n }\n}\n" }, { "f...
c#
chosen
[ { "from": "system", "value": "Add Newline at String Start\n" }, { "from": "human", "value": "namespace NerdBank.GitVersioning.CloudBuildServices\n{\n using System;\n using System.Collections.Generic;\n using System.IO;\n using Nerdbank.GitVersioning;\n\n internal class GitHubActi...
c#
chosen
[ { "from": "system", "value": "Make sure SQL Server tests don't run in parallel\n" }, { "from": "human", "value": "// Copyright 2015 Coinprism, Inc.\n// \n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n//...
c#
chosen
[ { "from": "system", "value": "Use ShapeFactory as base class\n" }, { "from": "human", "value": "// Copyright (c) Wiesław Šoltés. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\nusing System;\nusing System.Collections.G...
c#
chosen
[ { "from": "system", "value": "Abort key handling if SDL2 passes us an unknown key\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.Input....
c#
chosen
[ { "from": "system", "value": ":lipstick: Fix formatting on queued sender\n" }, { "from": "human", "value": "using CertiPay.Common.Logging;\nusing CertiPay.Common.WorkQueue;\nusing System.Threading;\nusing System.Threading.Tasks;\n\nnamespace CertiPay.Common.Notifications\n{\n /// <summary>\n...
c#
chosen
[ { "from": "system", "value": "Rename Control_DragAndDrop_UsingDragAndDropUsingScriptBehavior test to Control_DragAndDrop_UsingDomEvents\n" }, { "from": "human", "value": "using NUnit.Framework;\r\n\r\nnamespace Atata.Tests\r\n{\r\n public class ControlTests : UITestFixture\r\n {\r\n ...
c#
chosen
[ { "from": "system", "value": "Refactor Divide Integers Operation to use GetValujes and CloneWithValues\n" }, { "from": "human", "value": "namespace TensorSharp.Operations\r\n{\r\n using System;\r\n using System.Collections.Generic;\r\n using System.Linq;\r\n using System.Text;\r\n\r...
c#
chosen
[ { "from": "system", "value": "Set max connections per server to 1024 by default.\n" }, { "from": "human", "value": "// Copyright (c) MarinAtanasov. All rights reserved.\n// Licensed under the MIT License (MIT). See License.txt in the project root for license information.\n//\nusing AppBrix.Confi...
c#
chosen
[ { "from": "system", "value": "Enable default mapped span results for Razor.\n\n- Default mapped span results are used to indicate that a dynamic file could not map a particular location. Prior to this change we'd always reconstruct the span mapping full-sale which would explode during mapping construction b...
c#
chosen
[ { "from": "system", "value": "Set more specific return type to enable application/atom+xml response formatting.\n" }, { "from": "human", "value": "using System.Linq;\nusing System.Web.Http;\nusing System.Web.Http.OData;\nusing NuGet.Lucene.Web.Models;\nusing NuGet.Lucene.Web.Util;\n\nnamespace ...
c#
chosen
[ { "from": "system", "value": "Correct basic client config test\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Runtime.Serialization;\r\nusing System.Threading;\r\nusing Lokad.Cqrs.Build.Client;\r\nusing Lokad.Cqrs.Build.Engine;\r\nusing Lok...
c#
chosen
[ { "from": "system", "value": "Split WCF functionality out of Autofac.Extras.Multitenant into a separate\nassembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned\n3.1.0.\n" }, { "from": "human", "value": "//-------------------------------------------------------------------...
c#
chosen
[ { "from": "system", "value": "Add Fsm variable for text/initials\n" }, { "from": "human", "value": "using UnityEngine;\nusing System;\nusing HutongGames.PlayMaker;\nusing TooltipAttribute = HutongGames.PlayMaker.TooltipAttribute;\nusing BCP.SimpleJSON;\n\n/// <summary>\n/// Custom PlayMaker act...
c#
chosen
[ { "from": "system", "value": " Remove old points from back\n" }, { "from": "human", "value": "using Nito;\nusing System.Collections;\nusing System.Net.NetworkInformation;\nusing UnityEngine;\n\nnamespace TrailAdvanced.PointSource {\n\n\tpublic abstract class AbstractPointSource : MonoBehaviour ...
c#
chosen
[ { "from": "system", "value": "Reduce the date size for the email subject\n" }, { "from": "human", "value": "namespace Pigeon.Pipelines\n{\n using System;\n\n using Sitecore.Diagnostics;\n\n public class SetEmailSubject:PigeonPipelineProcessor\n {\n public override void Proces...
c#
chosen
[ { "from": "system", "value": "Fix bug with IB instrument addition window\n" }, { "from": "human", "value": "// -----------------------------------------------------------------------\n// <copyright file=\"AddInstrumentInteractiveBrokersWindow.xaml.cs\" company=\"\">\n// Copyright 2016 Alexander...
c#
chosen
[ { "from": "system", "value": "Simplify VoidResult to a value type\n" }, { "from": "human", "value": "namespace StyleCop.Analyzers.Helpers\n{\n using System.Threading.Tasks;\n\n internal static class SpecializedTasks\n {\n internal static Task CompletedTask { get; } = Task.FromRe...
c#
chosen
[ { "from": "system", "value": "Fix chunk loading for negative co-ordinates.\n\nA negative number divided by a negative number is negative, except\nwhen it's an integer and rounds upwards.\n\nGiven the x co-ordinate of -64 and a chunkHeight of 128\n\n-64 / 128 == 0\n-64 / 128.0 == -0.5\nFloor(-64/128.0) == -1...
c#
chosen
[ { "from": "system", "value": "Change port of urls in multi tenant admin\n\n--HG--\nbranch : dev\n" }, { "from": "human", "value": "using System.Web.Mvc;\r\nusing Orchard.Environment.Configuration;\r\n\r\nnamespace Orchard.MultiTenancy.Extensions {\r\n public static class UrlHelperExtensions ...
c#
chosen
[ { "from": "system", "value": "Add SetComparison to the default build\n" }, { "from": "human", "value": "namespace DeepEquals\n{\n\tusing System.Collections;\n\n\tpublic class DeepComparison\n\t{\n\t\tpublic static IEqualityComparer CreateComparer()\n\t\t{\n\t\t\treturn new ComparisonComparer(Cr...
c#
chosen
[ { "from": "system", "value": "Update the docs here, too.\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Threading.Tasks;\n\nnamespace SparkPost\n{\n public interface IRecipientLists\n {\n /// <summary>\n /// Creates a recipient list.\n ...
c#
chosen
[ { "from": "system", "value": "Use DetectIsJson string extension as opposed to a horrible try/catch\n" }, { "from": "human", "value": "@model dynamic\n@using Umbraco.Web.Templates\n@{\n var embedValue = string.Empty;\n try {\n embedValue = Model.value.preview;\n } catch(Exception...
c#
chosen
[ { "from": "system", "value": "Fix `AsNonNull` not working on release configuration\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.Diagnostics;...
c#
chosen
[ { "from": "system", "value": "Update delete signature to use only id\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing DapperTesting.Core.Model;\n\nnamespace DapperTesting.Core.Data\n{\n public interface IUserRepository\n {\n void Create(User user);\n ...
c#
chosen
[ { "from": "system", "value": "Use static import for repeated EditorGUI.* calls\n" }, { "from": "human", "value": "using UnityEditor;\nusing UnityEngine;\n\nnamespace Alensia.Core.I18n\n{\n [CustomPropertyDrawer(typeof(TranslatableText))]\n public class TranslatableTextPropertyDrawer : Pro...
c#
chosen
[ { "from": "system", "value": "Remove the second Unitypackage being generated, since it's now unneeded.\n" }, { "from": "human", "value": "using UnityEditor;\nusing System.Collections;\n\npublic class OSVRUnityBuild {\n\n\tstatic void build() {\n\t\tstring[] assets = {\n\t\t\t\"Assets/OSVRUnity\...
c#
chosen
[ { "from": "system", "value": "Move TestEnvironmentSetUpFixture into project root namespace\n" }, { "from": "human", "value": "using ImplicitNullability.Plugin.Tests;\nusing JetBrains.Application.BuildScript.Application.Zones;\nusing JetBrains.ReSharper.TestFramework;\nusing JetBrains.TestFramew...
c#
chosen
[ { "from": "system", "value": "Add a 60 sec pause before SQL Server connection\n" }, { "from": "human", "value": "using System.Data;\nusing System.Threading;\nusing Evolve.Driver;\nusing Xunit;\n\nnamespace Evolve.Core.Test.Driver\n{\n public class CoreReflectionBasedDriverTest\n {\n ...
c#
chosen
[ { "from": "system", "value": "Fix for nullable doubles in entities\n" }, { "from": "human", "value": "using System;\nusing Newtonsoft.Json.Linq;\n\nnamespace Chronological\n{\n public class DataType\n {\n public string TimeSeriesInsightsType { get; }\n\n internal DataType(st...
c#
chosen
[ { "from": "system", "value": "Make interface test more interesting\n" }, { "from": "human", "value": "using System;\n\ninterface IFlyable\n{\n void Fly();\n string Name { get; }\n}\n\nclass Bird : IFlyable\n{\n public Bird() { }\n\n public string Name => \"Bird\";\n\n public void ...
c#
chosen
[ { "from": "system", "value": "Update binding redirects for 0.3.0 builds\n" }, { "from": "human", "value": "// Copyright (c) .NET Foundation. All rights reserved.\n// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nusing Microsoft.V...
c#
chosen
[ { "from": "system", "value": "Use cross platform compatible paths for debug run.\n" }, { "from": "human", "value": "using System;\nusing System.Diagnostics;\nusing System.IO;\nusing System.Runtime.InteropServices;\n\nnamespace IronAHK\n{\n partial class Program\n {\n const bool debu...
c#
chosen
[ { "from": "system", "value": "Remove weird vestigial `Current` reimplementation\n\nHas no functional purpose anymore since the changes in the HUD element\ndata binding flow.\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See ...
c#
chosen
[ { "from": "system", "value": "Use full URI rather than CURIE for property type\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing BrightstarDB.EntityFramework;\n\nnamespace BrightstarDB.Samples.EntityFramework.FoafCore\n{\n [Entity(\"http://xmlns.com/foaf/0.1/Person\...
c#
chosen
[ { "from": "system", "value": "Test broken by QueryWrapper.ShouldContain issue\n\nDue to the incorrect id value written to the stream, the QueryWrapper\ncould not find the element required, but ShouldContain was passing the\ntest anyway.\n" }, { "from": "human", "value": "namespace Nancy.Testing...
c#
chosen
[ { "from": "system", "value": "Add new test for String.SubstringRightSafe\n" }, { "from": "human", "value": "#region Using\n\nusing System;\nusing NUnit.Framework;\n\n#endregion\n\nnamespace PortableExtensions.Testing\n{\n [TestFixture]\n public partial class StringExTest\n {\n [...
c#
chosen
[ { "from": "system", "value": "Change - Consolidated sub-expressions unit-tests.\n" }, { "from": "human", "value": "using Newtonsoft.Json.Linq;\r\nusing Xunit;\r\nusing DevLab.JmesPath.Expressions;\r\nusing DevLab.JmesPath.Utils;\r\n\r\nnamespace jmespath.net.tests.Expressions\r\n{\r\n public ...
c#
chosen
[ { "from": "system", "value": "Add triple variant of Zip as IEnumerable<> extension\n\nCo-Authored-By: lontivero <2c08b3ef3b969de06ed74d5e6afdb1b168de30c3@gmail.com>\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing WalletWasabi.Crypto.Groups;\n\nnamespace System.Linq\n{...
c#
chosen
[ { "from": "system", "value": "Fix Slowest() and Fastest() extension methods\n" }, { "from": "human", "value": "// --------------------------------------------------------------------------------------------------------------------\n// <copyright file=\"MeasurementGroupExtensions.cs\" company=\"...
c#
chosen
[ { "from": "system", "value": "Fix model position translation for header views.\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing Android.OS;\nusing Android.Util;\nusing Android.Views;\nusing Android.Widget;\nusing Toggl.Joey.UI.Adapters;\nusing ListFragment = Android.S...
c#
chosen
[ { "from": "system", "value": "Change putMessage function to prevent double serialization.\n" }, { "from": "human", "value": "using System.Threading.Tasks;\nusing Microsoft.WindowsAzure.Storage;\nusing Microsoft.WindowsAzure.Storage.Queue;\n\nnamespace AzureStorage.Queue\n{\n\n public class A...
c#
chosen