conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix 1x1 white pixel appearing in the centre of hitcircles on default skin\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\nu...
c#
chosen
[ { "from": "system", "value": "Fix bug with edit/view non-domain users with enabled domain integration\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Configuration;\nusing System.Linq;\nusing System.Text.RegularExpressions;\nusing System.Web;\n\...
c#
chosen
[ { "from": "system", "value": "Manage User Cards is now in a nice table\n" }, { "from": "human", "value": "@{\n ViewBag.Title = \"ManageUserCards\";\n}\n@model JustPressPlay.ViewModels.ManageUserCardsViewModel\n\n\n<div id=\"adminBody\">\n\n <div class=\"row wide\">\n\n <div class=\...
c#
chosen
[ { "from": "system", "value": "Fix wrong namespace beeing used in TitanTest\n" }, { "from": "human", "value": "using Titan.Sharecode;\nusing Xunit;\n\nnamespace TitanTest\n{\n public class ShareCodeDecoderTest\n {\n\n [Fact]\n public void TestDecoder()\n {\n ...
c#
chosen
[ { "from": "system", "value": "Handle \"null\" data values from Lassie API\n" }, { "from": "human", "value": "using Eurofurence.App.Server.Services.Abstractions.Lassie;\nusing Newtonsoft.Json;\nusing System.Collections.Generic;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\nnamespace ...
c#
chosen
[ { "from": "system", "value": "Add unit tests for enum access token grant type read and write.\n" }, { "from": "human", "value": "namespace TraktApiSharp.Tests.Enums\n{\n using FluentAssertions;\n using Microsoft.VisualStudio.TestTools.UnitTesting;\n using TraktApiSharp.Enums;\n\n [T...
c#
chosen
[ { "from": "system", "value": "Add more complex array test to hello app\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Web;\r\nusing System.Web.Mvc;\r\nusing AttributeRouting;\r\n\r\nnamespace NServiceMVC.Examples.Hello...
c#
chosen
[ { "from": "system", "value": "Remove ClientId option from RestConfig\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\n\nnamespace Twitch.Rest\n{\n public class TwitchRestClientConfig\n {\n public...
c#
chosen
[ { "from": "system", "value": "Make the MVC content verification test explicitly pass the framework\n" }, { "from": "human", "value": "using Xunit;\n\nnamespace Microsoft.TemplateEngine.Cli.UnitTests\n{\n public class PrecedenceSelectionTests : EndToEndTestBase\n {\n [Theory(DisplayN...
c#
chosen
[ { "from": "system", "value": "Fix bug where property names were always named the p1 name.\n" }, { "from": "human", "value": "namespace Microsoft.ApplicationInsights.Extensibility.AggregateMetrics\n{\n using System.Globalization;\n using Microsoft.ApplicationInsights.DataContracts;\n us...
c#
chosen
[ { "from": "system", "value": "Add unit test to save and VALIDATE file in given non-en-US culture.\n" }, { "from": "human", "value": "using ClosedXML.Excel;\nusing NUnit.Framework;\nusing System.IO;\n\nnamespace ClosedXML_Tests.Excel.Saving\n{\n [TestFixture]\n public class SavingTests\n ...
c#
chosen
[ { "from": "system", "value": "DatingSim: Fix font not loading in initial dialogue\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\nusing TMPro;\n\npublic class DatingSimDialogueController : MonoBehaviour\n{\n public float in...
c#
chosen
[ { "from": "system", "value": "Convert to new Visual Studio project types\n" }, { "from": "human", "value": "// Copyright (c) SimControl e.U. - Wilhelm Medetz. See LICENSE.txt in the project root for more information.\n\n#if false\n\nusing System;\nusing System.Collections.Generic;\nusing System....
c#
chosen
[ { "from": "system", "value": "Fix overlined playlist test scene not working\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 os...
c#
chosen
[ { "from": "system", "value": "Fix not setting custom scheme response status text correctly\n" }, { "from": "human", "value": "using System.IO;\nusing System.Net;\nusing System.Text;\nusing CefSharp;\nusing TweetLib.Browser.Interfaces;\nusing TweetLib.Browser.Request;\n\nnamespace TweetDuck.Brows...
c#
chosen
[ { "from": "system", "value": "Fix for Deserialization of complex objects\n" }, { "from": "human", "value": "using System;\nusing CQRS.Light.Contracts;\nusing Newtonsoft.Json;\n\nnamespace CQRS.Light.Core\n{\n public class JsonSerializationStrategy : ISerializationStrategy\n {\n pub...
c#
chosen
[ { "from": "system", "value": "Support loading bitmaps from resources.\n\nCloses #358.\n" }, { "from": "human", "value": "// Copyright (c) The Perspex Project. All rights reserved.\n// Licensed under the MIT license. See licence.md file in the project root for full license information.\n\nusing S...
c#
chosen
[ { "from": "system", "value": "Update NetCore2 ConsoleExample with LogManager.Shutdown()\n" }, { "from": "human", "value": "using System;\nusing Microsoft.Extensions.DependencyInjection;\nusing Microsoft.Extensions.Logging;\nusing NLog.Extensions.Logging;\n\nnamespace ConsoleExample\n{\n clas...
c#
chosen
[ { "from": "system", "value": "Use new \"RuntimeDependencies\" UBT feature to get our DLLs in place.\n" }, { "from": "human", "value": "using UnrealBuildTool;\r\n\r\nusing System.IO;\r\n\r\npublic class OSVRClientKit : ModuleRules\r\n{\r\n private string ModulePath\r\n {\r\n get { re...
c#
chosen
[ { "from": "system", "value": "Add documentation for pagination list results.\n" }, { "from": "human", "value": "namespace TraktApiSharp.Objects.Basic\n{\n using System.Collections.Generic;\n\n public class TraktPaginationListResult<ListItem>\n {\n public IEnumerable<ListItem> It...
c#
chosen
[ { "from": "system", "value": "Add Initial User API tests\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net;\nusing System.Net.Http;\nusing System.Threading.Tasks;\nusing Xunit;\n\nnamespace Nether.Web.IntegrationTests.Ident...
c#
chosen
[ { "from": "system", "value": "Set default trivia timeout to match help text." }, { "from": "human", "value": "using CommandLine;\nusing NadekoBot.Core.Common;\n\nnamespace NadekoBot.Core.Modules.Games.Common.Trivia\n{\n public class TriviaOptions : INadekoCommandOptions\n {\n [Opti...
c#
chosen
[ { "from": "system", "value": "Add support for `confirmation_method` on `PaymentIntent`\n" }, { "from": "human", "value": "namespace Stripe\n{\n using System.Collections.Generic;\n using Newtonsoft.Json;\n\n public class PaymentIntentCreateOptions : PaymentIntentSharedOptions\n {\n ...
c#
chosen
[ { "from": "system", "value": "Fix bug when pre-registered activator is instance\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\n\nnamespace Orleankka.Cluster\n{\n using Microsoft.Extensions.DependencyInjection;\n using Microsoft.Extensions.DependencyInjection.Extensi...
c#
chosen
[ { "from": "system", "value": "Add XML docs + remove code todo\n" }, { "from": "human", "value": "using Humanizer.Bytes;\n\nnamespace Humanizer\n{\n public static class ByteSizeExtensions\n {\n public static ByteSize Bits(this long val)\n {\n return ByteSize.FromBi...
c#
chosen
[ { "from": "system", "value": "Expand mania to fit vertical screen bounds\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;\nusin...
c#
chosen
[ { "from": "system", "value": "Read data from underlying stream in chunks if it does not return everything to us in one go.\n" }, { "from": "human", "value": "using System;\nusing System.Threading;\nusing System.Threading.Tasks;\nusing WebSocket.Portable.Interfaces;\n\nnamespace WebSocket.Portabl...
c#
chosen
[ { "from": "system", "value": "Add exec method to js regexp\n" }, { "from": "human", "value": "#region License\n//-----------------------------------------------------------------------\n// <copyright>\n// The MIT License (MIT)\n// \n// Copyright (c) 2014 Kirk S Woll\n// \n// Permission is hereby...
c#
chosen
[ { "from": "system", "value": "Fix IsMoyaTestRunner to check for correct interface to implement.\n" }, { "from": "human", "value": "namespace Moya.Utility\n{\n using System;\n using Exceptions;\n using Extensions;\n using Runners;\n\n public class Guard\n {\n public stat...
c#
chosen
[ { "from": "system", "value": "Fix scraper to scrape pick a brick facets correctly\n" }, { "from": "human", "value": "using LegoSharp;\nusing System;\nusing System.Threading.Tasks;\nusing System.Collections.Generic;\n\nnamespace Scraper\n{\n class Scraper\n {\n static async Task Mai...
c#
chosen
[ { "from": "system", "value": "Add background to rankings header\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;\nusing osu.Fr...
c#
chosen
[ { "from": "system", "value": "Fix compile error by commenting out offending code.\n" }, { "from": "human", "value": "using System.Collections.Concurrent;\nusing LunaClient.Base;\nusing LunaClient.Base.Interface;\nusing LunaCommon.Message.Data.Vessel;\nusing LunaCommon.Message.Interface;\n\nname...
c#
chosen
[ { "from": "system", "value": "Delete unused experiment names added in merge.\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nusing System.Compos...
c#
chosen
[ { "from": "system", "value": "Use uint instead of Uint32 for consistency (even though they're exactly the same)\n" }, { "from": "human", "value": "// Copyright © 2010-2014 The CefSharp Authors. All rights reserved.\n//\n// Use of this source code is governed by a BSD-style license that can be f...
c#
chosen
[ { "from": "system", "value": "Add NotNull to Predicate setter.\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 Syst...
c#
chosen
[ { "from": "system", "value": "Add Admin user in Seed method\n" }, { "from": "human", "value": "namespace StudentSystem.Data.Migrations\n{\n using System;\n using System.Data.Entity;\n using System.Data.Entity.Migrations;\n using System.Linq;\n\n public sealed class Configuration :...
c#
chosen
[ { "from": "system", "value": "Test for default plex path before checking for registry key.\n" }, { "from": "human", "value": "using System;\nusing Microsoft.Win32;\n\nnamespace PlexServiceCommon {\n\tpublic static class PlexDirHelper {\n\t\t/// <summary>\n\t\t/// Returns the full path and filena...
c#
chosen
[ { "from": "system", "value": "Add Join extension for strings\n" }, { "from": "human", "value": "using System.Globalization;\n\nnamespace GoldenAnvil.Utility\n{\n\tpublic static class StringUtility\n\t{\n\t\tpublic static string FormatInvariant(this string format, params object[] args)\n\t\t{\n\...
c#
chosen
[ { "from": "system", "value": "Enable UpnEndpointIdentity tests on UWP\n" }, { "from": "human", "value": "// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n// See the LICENSE file in the project root for mor...
c#
chosen
[ { "from": "system", "value": "Validate remote script MIME type early\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Net.Http;\nusing System.Net.Mime;\nusing System.Threading.Tasks;\n\nnamespace Dotnet.Script.Core\n{\n public class ScriptDownloader\n {\n ...
c#
chosen
[ { "from": "system", "value": "Add note about action type\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.Input.Bindings\n{\n /// ...
c#
chosen
[ { "from": "system", "value": "Fix issue with readonly RedirectUri\n" }, { "from": "human", "value": "using Microsoft.Owin;\nusing Microsoft.Owin.Security;\nusing Microsoft.Owin.Security.Provider;\n\nnamespace Auth0.Owin\n{\n /// <summary>\n /// Context passed when the redirect_uri is gene...
c#
chosen
[ { "from": "system", "value": "Add unit tests for PEHeaderBuilder factory methods\n\nSee: #35758\n" }, { "from": "human", "value": "// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n// See the LICENSE file i...
c#
chosen
[ { "from": "system", "value": "Make components of IRequestContext independently injectable.\n" }, { "from": "human", "value": "using Dolstagis.Web.Auth;\r\nusing Dolstagis.Web.Lifecycle;\r\nusing Dolstagis.Web.Lifecycle.ResultProcessors;\r\nusing Dolstagis.Web.Sessions;\r\nusing Dolstagis.Web.St...
c#
chosen
[ { "from": "system", "value": "Fix test broken by e771e78\n" }, { "from": "human", "value": "using System.Linq;\nusing NUnit.Framework;\nusing Umbraco.Core;\nusing Umbraco.Web.UI.JavaScript;\n\nnamespace Umbraco.Tests.Web.AngularIntegration\n{\n [TestFixture]\n public class JsInitializatio...
c#
chosen
[ { "from": "system", "value": "Allow mixed path references and url transforms\n" }, { "from": "human", "value": "using System.Web;\nusing System.Web.Optimization;\nusing wwwplatform.Models;\nusing wwwplatform.Models.Support;\n\nnamespace wwwplatform\n{\n public class BundleConfig\n {\n ...
c#
chosen
[ { "from": "system", "value": "Add test coverage of animation restarting\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.Fr...
c#
chosen
[ { "from": "system", "value": "[CON-1384] Fix for missing correlationId preventing startup of EAS\n" }, { "from": "human", "value": "using System;\r\nusing System.Data;\r\nusing System.Data.Entity;\r\nusing System.Linq;\r\nusing System.Threading.Tasks;\r\nusing Dapper;\r\nusing SFA.DAS.EAS.Domai...
c#
chosen
[ { "from": "system", "value": "Add received timestamp and basic xmldoc for header class\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 enable\n\nu...
c#
chosen
[ { "from": "system", "value": "Use version parser instead of string.split\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\nusing Windows.ApplicationModel;\nusing Windows.System;\n\nnamespace EarTrumpet.Services\n{\n public static class WhatsNewDisplayService\n ...
c#
chosen
[ { "from": "system", "value": "Remove CIV.Ccs reference from CIV.Hml\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing CIV.Ccs;\nusing CIV.Common;\n\nnamespace CIV.Hml\n{\n class BoxFormula : HmlLabelFormula\n {\n protecte...
c#
chosen
[ { "from": "system", "value": "Use a fix that's closer to the Mongo 2.0 driver's way of doing things\n" }, { "from": "human", "value": "using System;\n\nnamespace RightpointLabs.Pourcast.Infrastructure.Persistence.Repositories\n{\n using System.Collections.Generic;\n using System.Linq;\n\n...
c#
chosen
[ { "from": "system", "value": "Add pictures count of category\n" }, { "from": "human", "value": "@model PagedList.IPagedList<AstroPhotoGallery.Models.Category>\n@using PagedList.Mvc;\n@using System.Linq;\n@{\n ViewBag.Title = \"List\";\n}\n<link href=\"~/Content/PagedList.css\" rel=\"styleshe...
c#
chosen
[ { "from": "system", "value": "Update test methods for DbContextFactory\n" }, { "from": "human", "value": "using System;\nusing Aliencube.EntityContextLibrary.Interfaces;\nusing FluentAssertions;\nusing NUnit.Framework;\n\nnamespace Aliencube.EntityContextLibrary.Tests\n{\n [TestFixture]\n ...
c#
chosen
[ { "from": "system", "value": "Check we have a message as well when checking the flashmessage view model\n" }, { "from": "human", "value": "@using SFA.DAS.EmployerApprenticeshipsService.Web\n@using SFA.DAS.EmployerApprenticeshipsService.Web.Models\n@model dynamic\n@{\n var viewModel = Model a...
c#
chosen
[ { "from": "system", "value": "Simplify the Expression<Func<>> specimen building\n" }, { "from": "human", "value": "namespace Ploeh.AutoFixture\n{\n using System;\n using System.Collections.Generic;\n using System.Linq;\n using System.Linq.Expressions;\n using Kernel;\n\n publi...
c#
chosen
[ { "from": "system", "value": "Add image for a hovered state in image button\n" }, { "from": "human", "value": "using System;\nusing System.Drawing;\nusing MonoHaven.Graphics;\nusing MonoHaven.Utils;\nusing OpenTK.Input;\n\nnamespace MonoHaven.UI\n{\n\tpublic class ImageButton : Widget\n\t{\n\t\t...
c#
chosen
[ { "from": "system", "value": "Change source code as Nintendo updates SplatNet (bug fix).\n" }, { "from": "human", "value": "using System.Threading.Tasks;\nusing Mntone.NintendoNetworkHelper;\nusing Mntone.SplatoonClient.Internal;\n\nnamespace Mntone.SplatoonClient\n{\n\tpublic static class Spla...
c#
chosen
[ { "from": "system", "value": "Check that it can work with nullables too.\n\nSVN: 488784591515bd4cdaa016be4ec9b172dc4e7caf@3063\n" }, { "from": "human", "value": "using System;\r\nusing NUnit.Framework;\r\n\r\nnamespace NHibernate.Test.NHSpecificTest.NH1119\r\n{\r\n\t[TestFixture]\r\n\tpublic cla...
c#
chosen
[ { "from": "system", "value": "Remove [AllowAnonymous] since added by default\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Threading.Tasks;\r\nusing Microsoft.AspNetCore.Mvc.RazorPages;\r\nusing BlogTemplate.Models;\r...
c#
chosen
[ { "from": "system", "value": "Fix all violations of SA1127\n" }, { "from": "human", "value": "namespace Tvl.VisualStudio.InheritanceMargin\n{\n using System.ComponentModel.Composition;\n using Microsoft.VisualStudio.Shell;\n using Microsoft.VisualStudio.Text;\n using Microsoft.Visua...
c#
chosen
[ { "from": "system", "value": "Add convenience methods for timeslots\n" }, { "from": "human", "value": "using System;\n\nnamespace UniProgramGen.Helpers\n{\n public class TimeSlot\n {\n public TimeSlot(DayOfWeek day, uint startHour, uint endHour)\n {\n Day = day;\n ...
c#
chosen
[ { "from": "system", "value": "Improve the test in regards to \\r\\n\n" }, { "from": "human", "value": "using System.Linq;\nusing System.Text;\nusing NUnit.Framework;\n\nnamespace ValveKeyValue.Test\n{\n class CommentOnEndOfTheLine\n {\n [Test]\n public void CanHandleCommentO...
c#
chosen
[ { "from": "system", "value": "Revert \"Fix up for 16.11\"\n\nThis reverts commit 28955d0f02e5e369dbac824f167cd87c8fd1dfb3.\n" }, { "from": "human", "value": "// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license....
c#
chosen
[ { "from": "system", "value": "Work around failure in light bulb controller\n\nSee #35123\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nusing S...
c#
chosen
[ { "from": "system", "value": "Fix order of route registration.\n" }, { "from": "human", "value": "using System.Net.Http.Formatting;\nusing System.Web.Http;\nusing System.Web.Mvc;\nusing System.Web.Optimization;\nusing System.Web.Routing;\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Serializat...
c#
chosen
[ { "from": "system", "value": "Tweak in Console VS Project Template.\n" }, { "from": "human", "value": "// --------------------------------------------------------------------------------------------------------------------\n// <copyright file=\"ConsoleAbstraction.cs\" company=\"Naos Project\">\...
c#
chosen
[ { "from": "system", "value": "Sort usings in gotodef exports.\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nusing System.ComponentModel.Compos...
c#
chosen
[ { "from": "system", "value": "Include a codebase for System.IO.FileSystem\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nusing Microsoft.Visual...
c#
chosen
[ { "from": "system", "value": "Check if using SelectedItem pattern first\n" }, { "from": "human", "value": "namespace Winium.Desktop.Driver.CommandExecutors\n{\n #region using\n\n using System.Windows.Automation;\n\n using Winium.Cruciatus.Exceptions;\n using Winium.Cruciatus.Extensi...
c#
chosen
[ { "from": "system", "value": "Update Metatogger default install path\n" }, { "from": "human", "value": "#r \"C:\\Program Files (x86)\\Luminescence Software\\Metatogger 5.8\\Metatogger.exe\"\n\nusing System.Collections.Generic;\nusing Metatogger.Data;\n\nIEnumerable<AudioFile> files = new List<Au...
c#
chosen
[ { "from": "system", "value": "Make generic for local and production" }, { "from": "human", "value": "// Copyright (c) .NET Foundation. All rights reserved.\n// Licensed under the MIT License. See License.txt in the project root for license information.\n\nusing System;\nusing Microsoft.Azure.We...
c#
chosen
[ { "from": "system", "value": "Allow PlatformSpecific on a class\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nusing System;\nusing Xunit.Sdk;\n\nnamesp...
c#
chosen
[ { "from": "system", "value": "WIP: Apply rendering code, now need to test\n" }, { "from": "human", "value": "using UnityEngine;\nusing UniRx;\n\nnamespace Reduxity.Example.PlayerMovementLook {\n\n [RequireComponent(typeof(Camera))]\n public class MoveCamera : MonoBehaviour {\n\n pri...
c#
chosen
[ { "from": "system", "value": "Add implementation for simple cache using Dictionary\n" }, { "from": "human", "value": "using FaqTemplate.Core.Services;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace FaqTemplat...
c#
chosen
[ { "from": "system", "value": "Revert \"Added ability to have more than one dynamic placeholder in the same rendering\"\n\nThis reverts commit c69f12278522dc585254dbeac3176c8d790c9e9c.\n" }, { "from": "human", "value": "using System.Linq;\nusing Sitecore.Mvc.Helpers;\nusing Sitecore.Mvc.Presenta...
c#
chosen
[ { "from": "system", "value": "Add test owner to FqdnTag test\n" }, { "from": "human", "value": "// ----------------------------------------------------------------------------------\n//\n// Copyright Microsoft Corporation\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n//...
c#
chosen
[ { "from": "system", "value": "Fix ordering of views so the ordering is the same as v8\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing Microsoft.AspNetCore.Mvc.Razor;\nusing Microsoft.Extensions.Options;\n\nnamespace Umbraco.Cms.Web.W...
c#
chosen
[ { "from": "system", "value": "Add material mappings to eth1.\n" }, { "from": "human", "value": "// This script is executed on the server\n\n$MAP_ROOT = \"ethernet/maps/eth1/\";\n\n$sgLightEditor::lightDBPath = $MAP_ROOT @ \"lights/\";\n$sgLightEditor::filterDBPath = $MAP_ROOT @ \"filters/\";\nsg...
c#
chosen
[ { "from": "system", "value": "Update device creation to just return the raw token\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net;\nusing System.Net.Http;\nusing System.Web.Http;\nusing RightpointLabs.ConferenceRoom.Domai...
c#
chosen
[ { "from": "system", "value": "Create mapping from NotificationOption to EditorConfig severity string." }, { "from": "human", "value": "// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information....
c#
chosen
[ { "from": "system", "value": "Support visual debugging of enum masks.\n" }, { "from": "human", "value": "using System;\nusing Entitas;\nusing UnityEditor;\n\nnamespace Entitas.Unity.VisualDebugging {\n public class EnumTypeDrawer : ITypeDrawer {\n public bool HandlesType(Type type) {\n...
c#
chosen
[ { "from": "system", "value": "fix(SingaporeAirlinesBot): Make sure the departure airport gets filled correctly.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing OpenQA.Selenium;\n\nnamespace Diskordia.Columbus.Bots.Host.Services.Sing...
c#
chosen
[ { "from": "system", "value": "Throw on null syntax or errors.\n" }, { "from": "human", "value": "#region License\n/*********************************************************************************\n * RootJsonSyntax.cs\n *\n * Copyright (c) 2004-2019 Henk Nicolai\n *\n * Licensed under the A...
c#
chosen
[ { "from": "system", "value": "Tweak to use typed GetCustomAttributes from field\n" }, { "from": "human", "value": "using System;\nusing System.ComponentModel.DataAnnotations;\nusing System.Reflection;\n\nnamespace CertiPay.Common\n{\n public static class ExtensionMethods\n {\n /// ...
c#
chosen
[ { "from": "system", "value": "Allow .mustache extension as well for Nustache views\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Threading.Tasks;\r\nusing global::Nustache.Core;\r\n\r\nnamespace ...
c#
chosen
[ { "from": "system", "value": "Add string based YAML tasks.\n" }, { "from": "human", "value": "// Copyright Matthias Koch 2017.\n// Distributed under the MIT License.\n// https://github.com/nuke-build/nuke/blob/master/LICENSE\n\nusing System;\nusing System.IO;\nusing System.Linq;\nusing JetBrain...
c#
chosen
[ { "from": "system", "value": "Change ASP.NET tool version to reflect project format.\n" }, { "from": "human", "value": "// Copyright (c) .NET Foundation and contributors. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n...
c#
chosen
[ { "from": "system", "value": "Add unit test for analyzing class without imported namespace.\n" }, { "from": "human", "value": "using Microsoft.CodeAnalysis;\nusing Microsoft.CodeAnalysis.Diagnostics;\nusing Microsoft.VisualStudio.TestTools.UnitTesting;\n\nusing TestHelper;\n\nnamespace Debugger...
c#
chosen
[ { "from": "system", "value": "Remove code to trigger expiry of funds processing until fix has been implemented for the calculation\n" }, { "from": "human", "value": "using System.Threading.Tasks;\nusing Microsoft.Azure.WebJobs;\nusing Microsoft.Extensions.Logging;\nusing NServiceBus;\nusing SFA...
c#
chosen
[ { "from": "system", "value": "Fix filtered test result ordering\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing NHibernate.Linq;\nusing Tellurium.VisualAssertions.Infrastructure;\nusing Tellurium.VisualAssertions.Screenshots.Domain;...
c#
chosen
[ { "from": "system", "value": "Fix peer up port decoding bug\n" }, { "from": "human", "value": "using System;\nusing System.Net;\nusing BmpListener.Bgp;\nusing System.Linq;\nusing BmpListener.MiscUtil.Conversion;\n\nnamespace BmpListener.Bmp\n{\n public class PeerUpNotification : BmpMessage\n...
c#
chosen
[ { "from": "system", "value": "Test coverage for validation of the --report command line option.\n" }, { "from": "human", "value": "namespace Fixie.Tests.Execution\n{\n using System;\n using Fixie.Cli;\n using Fixie.Execution;\n\n public class OptionsTests\n {\n public void...
c#
chosen
[ { "from": "system", "value": "Use Crockford Base32 by default.\n" }, { "from": "human", "value": "using System.Security.Cryptography;\nusing DeviceId.Encoders;\nusing DeviceId.Formatters;\n\nnamespace DeviceId\n{\n /// <summary>\n /// Provides access to some of the default formatters.\n ...
c#
chosen
[ { "from": "system", "value": "Add Needed Vm properties and cmds\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\nusing GalaSoft.MvvmLight.Views;\nusing ToxRt.Helpers;\nusing ToxRt.Model;\nusing ToxRt.NavigationService;\n\nnamespace ToxRt.V...
c#
chosen
[ { "from": "system", "value": "Update to consume framework fixes\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.Specialized;\nusing...
c#
chosen
[ { "from": "system", "value": "Make GetAllStubs return a List<string> instead of immediately writing the output to console\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Reflection;\nusing JAGBE.Attributes;\n\nnamespace JAGBE.Stats\n{\n inter...
c#
chosen
[ { "from": "system", "value": "Add source of script and remove unnecessary usings\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class StretchScript : MonoBehaviour {\n\n public float orthographicSize = 4;\n pub...
c#
chosen
[ { "from": "system", "value": "Split WCF functionality out of Autofac.Extras.Multitenant into a separate assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned 3.1.0.\n\n" }, { "from": "human", "value": "//-------------------------------------------------------------------...
c#
chosen
[ { "from": "system", "value": "Fix for stringize when values contain single quotes.\n\nThere was no need for using 2 single quotes since we are doing url\nencode to the value.\n" }, { "from": "human", "value": "using System;\nusing System.Web;\n\nnamespace VersionOne.SDK.APIClient {\n interna...
c#
chosen