conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix Otimização desabilitada para teste\n" }, { "from": "human", "value": "using System.Web;\nusing System.Web.Optimization;\n\nnamespace Quiz.Web\n{\n public class BundleConfig\n {\n // For more information on bundling, visit http://go.microsoft.com/fw...
c#
chosen
[ { "from": "system", "value": "Revert \"Added \"final door count\" comment at return value.\"\n\nThis reverts commit 51f7b5f62af24188a05afa5a78284b9b0197c39d.\n" }, { "from": "human", "value": "using System.Linq;\n\nnamespace HundredDoors\n{\n\tpublic static class HundredDoors\n\t{\n\t\t/// <sum...
c#
chosen
[ { "from": "system", "value": "Rename that to avoid confusion\n" }, { "from": "human", "value": "namespace Espera.Network\n{\n public enum NetworkSongSource\n {\n Local = 0,\n Youtube = 1,\n Remote = 2\n }\n}" }, { "from": "gpt", "value": "namespace Esp...
c#
chosen
[ { "from": "system", "value": "Remove page styling from Ajax search results.\n" }, { "from": "human", "value": "@model IEnumerable<GiveCRM.Models.Member>\n\n@foreach (var member in Model)\n{\n <a href=\"javascript:AddDonation(@member.Id);\">@member.FirstName @member.LastName @member.PostalCod...
c#
chosen
[ { "from": "system", "value": "Add missing namespace to the sample.\n" }, { "from": "human", "value": "using Microsoft.AspNet.Abstractions;\n\nnamespace KWebStartup\n{\n public class Startup\n {\n public void Configuration(IBuilder app)\n {\n app.Run(async context =...
c#
chosen
[ { "from": "system", "value": "Fix issue with ms asp.net getting httproute paths with a wildcard\n" }, { "from": "human", "value": "using System.Net.Http.Formatting;\nusing System.Web.Http;\nusing System.Web.Http.Dispatcher;\nusing Pablo.Gallery.Logic;\nusing Pablo.Gallery.Logic.Filters;\nusing ...
c#
chosen
[ { "from": "system", "value": "Allow coin flip to be heads.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing TwitchLib;\nusing TwitchLib.TwitchClientClasses;\nusing System.Net;\n\nnamespace JefBot.Commands\n{\n internal class CoinPlu...
c#
chosen
[ { "from": "system", "value": "Allow visualtests to share config etc. with osu!.\n" }, { "from": "human", "value": "//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.\r\n//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE\r\n\r\nusing System;\r\nusing...
c#
chosen
[ { "from": "system", "value": "Add rich text to system field types\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace Contentful.Core.Models.Management\n{\n /// <summary>\n /// Represents the different types available for a ...
c#
chosen
[ { "from": "system", "value": "Add stub for APFT list\n" }, { "from": "human", "value": "@model IEnumerable<APFT>\n\n<h2>Units @Html.ActionLink(\"Add New\", \"New\", \"APFT\", null, new { @class = \"btn btn-default\" })</h2>\n\n<table class=\"table table-striped\">\n <thead>\n <tr>\n ...
c#
chosen
[ { "from": "system", "value": "Fix incorrect profiler environment variable name for .NET framework support\n" }, { "from": "human", "value": "using System;\nusing System.Runtime.CompilerServices;\n\nnamespace Mindscape.Raygun4Net\n{\n public static class APM\n {\n [ThreadStatic]\n privat...
c#
chosen
[ { "from": "system", "value": "Fix ConfigurationsRights.List not being a power of 2\n" }, { "from": "human", "value": "using System;\n\nnamespace Tgstation.Server.Api.Rights\n{\n\t/// <summary>\n\t/// Rights for <see cref=\"Models.ConfigurationFile\"/>\n\t/// </summary>\n\t[Flags]\n\tpublic enum...
c#
chosen
[ { "from": "system", "value": "Add a check for argument existence to the Compiler\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Linq;\n\nnamespace DotVVM.Compiler\n{\n public static class Program\n {\n private static readonly string[] HelpOptions = ...
c#
chosen
[ { "from": "system", "value": "Change icon color to be consistent with other section icon colors\n" }, { "from": "human", "value": "namespace FALM.Housekeeping.Constants\n{\n /// <summary>\n /// HkConstants\n /// </summary>\n public class HkConstants\n {\n /// <summary>\n ...
c#
chosen
[ { "from": "system", "value": "FIX CIT-785 Hide EDIT button for all users in hub\n" }, { "from": "human", "value": "@using Cats.Models.Hubs\n@using Cats.Web.Hub.Helpers\n@using Telerik.Web.Mvc.UI\n@{\n var usr = @Html.GetCurrentUser();\n var mdl = new CurrentUserModel(usr);\n}\n<div align=...
c#
chosen
[ { "from": "system", "value": "Remove panel from index forum page for mobile devices" }, { "from": "human", "value": "@{\n Layout = null;\n \n}\n\n<div class=\"container\" style=\"padding-top: 50px;\">\n <div class=\"container\">\n <div class=\"panel panel-default\">\n ...
c#
chosen
[ { "from": "system", "value": "Add case for waiting on an empty id" }, { "from": "human", "value": "using System.Collections;\nusing UnityEngine;\nusing UnityEngine.Networking;\n\npublic abstract class GameMessageBase : MessageBase\n{\n\tpublic GameObject NetworkObject;\n\tpublic GameObject[] Ne...
c#
chosen
[ { "from": "system", "value": "Set TLS 1.2 as the default potocol\n" }, { "from": "human", "value": "using Microsoft.Owin;\nusing Owin;\n\n[assembly: OwinStartupAttribute(typeof(DancingGoat.Startup))]\n\nnamespace DancingGoat\n{\n public partial class Startup\n {\n public void Confi...
c#
chosen
[ { "from": "system", "value": "Disable GDB + Bochs GUI\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\n\nusing Cosmos.Build.Common;\nusing Cosmos.TestRunner.Core;\n\nnamespace Cosmos.TestRunner.Full\n{\n public class DefaultEngineConfiguration : IEngineCon...
c#
chosen
[ { "from": "system", "value": "Move usings inside namespace in stringextensionstests\n" }, { "from": "human", "value": "using Moya.Extensions;\nusing Xunit;\n\nnamespace TestMoya.Extensions\n{\n public class StringExtensionsTests\n {\n [Fact]\n public void StringExtensionsFor...
c#
chosen
[ { "from": "system", "value": "Fix crash caused by previous commit\n" }, { "from": "human", "value": "using NBitcoin;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace NTumbleBit.BouncyCastle.Security\n{\n\tinter...
c#
chosen
[ { "from": "system", "value": "Remove wrong type for username and e-mail field\n" }, { "from": "human", "value": "@model LoginOrRegisterViewModel\n\n@using (Html.BeginForm(\"Login\", \"Account\", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, \n new { @class=\"form-signin\", @role=\"...
c#
chosen
[ { "from": "system", "value": "Refactor benchmarks to only demonstrate what's needed\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;\nusing Ben...
c#
chosen
[ { "from": "system", "value": "Add a couple of apparently missing events\n" }, { "from": "human", "value": "using Newtonsoft.Json;\n\nnamespace SyncTrayzor.Syncthing.ApiClient\n{\n [JsonConverter(typeof(DefaultingStringEnumConverter))]\n public enum EventType\n {\n Unknown,\n\n ...
c#
chosen
[ { "from": "system", "value": "Add MI debugger working directory to PATH\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 System.Colle...
c#
chosen
[ { "from": "system", "value": "Rename SELECT * test cases to match naming convention\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\n\nusing Microsoft.VisualStudio.TestTools.UnitTesting;\n\nnamespace NQuery.UnitTests\n{\n [TestClass]\n public class SelectStarTests\n ...
c#
chosen
[ { "from": "system", "value": "Implement endpoint for remove instance\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing Nancy;\n\nnamespace Okanshi.Dashboard\n{\n\tpublic class SettingsModule : NancyModule\n\t{\n\t\tpublic SettingsModule(IConfiguration configuration)\n\...
c#
chosen
[ { "from": "system", "value": "Remove hard coded USD dollar symbol and use currency string formatting instead.\n\nTODO: Reflect currency format according to 'Default Site Culture' set within Orchard, not the culture settings of the server.\n\n--HG--\nbranch : currency_string_format\n" }, { "from": "h...
c#
chosen
[ { "from": "system", "value": "Put passwords in startup args\n" }, { "from": "human", "value": "using S22.Xmpp.Client;\nusing S22.Xmpp;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing S22.Xmpp.Im;\n\nnamespace XmppCo...
c#
chosen
[ { "from": "system", "value": "Remove the container class from the header, because it was redundant with its containing div.\n" }, { "from": "human", "value": "\n<div class=\"container\">\n\n <header class=\"container\">\n\n <h1>Sweet Water Revolver</h1>\n\n </header>\n\n</div>" }...
c#
chosen
[ { "from": "system", "value": "Enable migrations on app start\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.Http;\nusing System.Web.Mvc;\nusing System.Web.Optimization;\nusing System.Web.Routing;\n\nna...
c#
chosen
[ { "from": "system", "value": "Enable CF migrations on restart\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.Mvc;\nusing System.Web.Optimization;\nusing System.Web.Routing;\n\nnamespace Portfolio\n{\n ...
c#
chosen
[ { "from": "system", "value": "Fix demo by uncommenting line accidentally left commented\n" }, { "from": "human", "value": "using System;\nusing DemoDistributor.Endpoints.FileSystem;\nusing DemoDistributor.Endpoints.Sharepoint;\nusing Delivered;\n\nnamespace DemoDistributor\n{\n internal clas...
c#
chosen
[ { "from": "system", "value": "Fix null players in player list.\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 Battlezeppelins.Models;\r\n\r\nnamespace Battlezeppelins.Controllers\...
c#
chosen
[ { "from": "system", "value": "Maintain focus on the text editor after saving.\n" }, { "from": "human", "value": "using System.Windows.Controls;\n\nnamespace PlantUmlEditor.View\n{\n public partial class DiagramEditorView : UserControl\n {\n public DiagramEditorView()\n {\n ...
c#
chosen
[ { "from": "system", "value": "Fix bug: \"Copy\" button don't show in TextView during saving\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Windows;\nusing Caliburn.Micro;\n\nnamespace SharpGraphEditor.Vie...
c#
chosen
[ { "from": "system", "value": "Fix iOS app entry for raw keyboard input\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 UIKit;\n\nnamespace osu.iOS\n{...
c#
chosen
[ { "from": "system", "value": "Return empty list if HttpContext.Current is null\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing System.Web;\n\nnamespace Mindscape.Raygun4Net.Breadcrumbs\n{\n internal class HttpBreadcrumbStorage : IRaygunBre...
c#
chosen
[ { "from": "system", "value": "Fix ShrineRoom to always be current spawner\n" }, { "from": "human", "value": "using RimWorld;\nusing Verse;\n\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace MTW_AncestorSpirits\n{\n class RoomRoleWorker_Sh...
c#
chosen
[ { "from": "system", "value": "Add IoC registration for login data translator\n" }, { "from": "human", "value": "// Original Work Copyright (c) Ethan Moffat 2014-2016\n// This file is subject to the GPL v2 License\n// For additional details, see the LICENSE file\n\nusing EOLib.Data.Protocol;\nus...
c#
chosen
[ { "from": "system", "value": "Fix port in arguments crashing app\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.IO;\r\nusing System.Linq;\r\nusing System.Threading.Tasks;\r\nusing Microsoft.AspNetCore;\r\nusing Microsoft.AspNetCore.Hosting;...
c#
chosen
[ { "from": "system", "value": "Fix integer overflow on large collection files\n" }, { "from": "human", "value": "using System;\n\nnamespace MarcelloDB.Helpers\n{\n internal class DataHelper\n {\n internal static void CopyData(\n Int64 sourceAddress, \n byte[] s...
c#
chosen
[ { "from": "system", "value": "Fix navigator.getUserMedia webkit(TypeError: Illegal invocation) + moz(typo)\n" }, { "from": "human", "value": "using System.Html.Media;\nusing System.Runtime.CompilerServices;\n\nnamespace System.Html {\n\tpublic partial class Navigator {\n\t\t[InlineCode(\"(naviga...
c#
chosen
[ { "from": "system", "value": "Use glob-recurse and fix the program when you pass it file names\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Collections;\n\nnamespace DeviceMetadataInstallTool\n{\n /// <summary>\n /// see https://support.microsoft.com/en...
c#
chosen
[ { "from": "system", "value": "Use more standard namespace formatting\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-framework/master/LICENCE\n\nnamespace osu.Framework.Pla...
c#
chosen
[ { "from": "system", "value": "Fix map path for single player maps\n" }, { "from": "human", "value": "using System.IO;\nusing OpenSage.Network;\n\nnamespace OpenSage.Data.Sav\n{\n internal static class GameStateMap\n {\n internal static void Load(SaveFileReader reader, Game game)\n ...
c#
chosen
[ { "from": "system", "value": "Add extension to verify mimetype.\n" }, { "from": "human", "value": "namespace Papyrus\n{\n public static class EBookExtensions\n {\n\n }\n}\n" }, { "from": "gpt", "value": "using System;\nusing System.Threading.Tasks;\nusing Windows.Storage;\...
c#
chosen
[ { "from": "system", "value": "Use azure hosted server for now\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Net;\nusing AppGet.Http;\nusing NLog;\n\nnamespace AppGet.PackageRepository\n{\n public class AppGetServerClient : IPackageRepository\n {\n ...
c#
chosen
[ { "from": "system", "value": "Add tests for json lists.\n" }, { "from": "human", "value": "using NUnit.Framework;\nusing System.Collections.Generic;\n\nnamespace FunWithNewtonsoft\n{\n [TestFixture]\n public class ListTests\n {\n [Test]\n public void Deserialize_PartialLi...
c#
chosen
[ { "from": "system", "value": "Change the Order for Inlining Multi Units\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing GekkoAssembler.IntermediateRepresentation;\n\nnamespace GekkoAssembler.Optimizers\n{\n public class IRMultiUnitOptimizer : I...
c#
chosen
[ { "from": "system", "value": "Add count to deletion dialog\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;\nusing osu.Framework.Graphics.Sprit...
c#
chosen
[ { "from": "system", "value": "Change orbit angles to degree\n" }, { "from": "human", "value": "using UnityEngine;\n\npublic class Planet : MonoBehaviour {\n [SerializeField]\n private float _radius;\n\n public float Radius {\n get { return _radius; }\n set { _radius = val...
c#
chosen
[ { "from": "system", "value": "Add the defaults for GeneratorOptions\n" }, { "from": "human", "value": "using System;\n\nnamespace ExternalTemplates\n{\n\t/// <summary>\n\t/// Default generator options.\n\t/// </summary>\n\tpublic class GeneratorOptions : IGeneratorOptions\n\t{\n\t\t/// <summary...
c#
chosen
[ { "from": "system", "value": "Fix MySql do not support Milliseconds\n" }, { "from": "human", "value": "using FluentMigrator.Runner.Generators.Generic;\n\nnamespace FluentMigrator.Runner.Generators.MySql\n{\n public class MySqlQuoter : GenericQuoter\n {\n public override string Open...
c#
chosen
[ { "from": "system", "value": "Stop chancellor from prompting the player when they have no cards in their deck.\n" }, { "from": "human", "value": "using System;\r\nusing Dominion.Rules;\r\nusing Dominion.Rules.Activities;\r\nusing Dominion.Rules.CardTypes;\r\n\r\nnamespace Dominion.Cards.Actions\...
c#
chosen
[ { "from": "system", "value": "Add support for custom key delimiter\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Specialized;\r\nusing Xunit;\r\n\r\nnamespace GV.AspNet.Configuration.ConfigurationManager.UnitTests\r\n{\r\n\tpublic class AppSettingsConfigurationPro...
c#
chosen
[ { "from": "system", "value": "Test for aggregate exception handling\n" }, { "from": "human", "value": "using System.Linq;\nusing Bugsnag.Payload;\nusing Xunit;\n\nnamespace Bugsnag.Tests.Payload\n{\n public class ExceptionTests\n {\n [Fact]\n public void CorrectNumberOfExceptions()\n ...
c#
chosen
[ { "from": "system", "value": "Fix the redirect tracking composer\n" }, { "from": "human", "value": "using Umbraco.Core;\nusing Umbraco.Core.Components;\n\nnamespace Umbraco.Web.Routing\n{\n /// <summary>\n /// Implements an Application Event Handler for managing redirect urls tracking.\n ...
c#
chosen
[ { "from": "system", "value": "Use var declaration. Fix ArgumentNullException parameter name.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Drawing;\nusing PdfSharp.Pdf.Advanced;\n\n// ReSharper disable once CheckNamespace\nnamespace PdfSharp.P...
c#
chosen
[ { "from": "system", "value": "Bring Attention to the Quick Access Panel On Page Load\n" }, { "from": "human", "value": "@model Portal.CMS.Web.Areas.Admin.ViewModels.Dashboard.QuickAccessViewModel\n\n<div class=\"page-admin-wrapper admin-wrapper\">\n @foreach (var category in Model.Categories...
c#
chosen
[ { "from": "system", "value": "Make sure we order by sequence\n" }, { "from": "human", "value": "using System;\nusing MyTrips.DataObjects;\nusing MyTrips.DataStore.Abstractions;\nusing System.Threading.Tasks;\nusing MyTrips.Utils;\nusing System.Collections.Generic;\n\nnamespace MyTrips.DataStore...
c#
chosen
[ { "from": "system", "value": "Replace Enumerable.Repeat call with an one-element array.\n" }, { "from": "human", "value": "using System.Collections.Generic;\r\nusing System.Linq;\r\n\r\nnamespace NuGet.VisualStudio {\r\n public static class AggregatePackageSource {\r\n public static r...
c#
chosen
[ { "from": "system", "value": "Revert \"Remove RandomTrace stuff from main\"\n\nThis reverts commit f4533db6c2eb955d5433cf52e85d32a223a7bba8.\n" }, { "from": "human", "value": "using static System.Console;\nusing System.Linq;\nusing CIV.Ccs;\nusing CIV.Hml;\n\nnamespace CIV\r\n{\r\n class Pro...
c#
chosen
[ { "from": "system", "value": "Allow statements to end with EOF instead of forcing a newline for every evaluated statement\n" }, { "from": "human", "value": "using EOBot.Interpreter.Extensions;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace EOBot.Interpreter.States\n{\n p...
c#
chosen
[ { "from": "system", "value": "Remove new keyword from interface\n\n\nFormer-commit-id: e271328ab161d18c97babd8a011a6806ce7b1981" }, { "from": "human", "value": "namespace Sharpy.Core {\n /// <summary>\n /// <para>Represent a generator which can generate any amount of elements by invok...
c#
chosen
[ { "from": "system", "value": "Remove scale effect on editor screen switches\n\n" }, { "from": "human", "value": "// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.\r\n// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE\r\n\r\nusing osu.Framework.Con...
c#
chosen
[ { "from": "system", "value": "Read environment variables for test settings.\n\nAllows me to specify a different testdb on the build server.\n" }, { "from": "human", "value": "using System.Configuration;\n\nnamespace SchemaZen.test {\n\tpublic class ConfigHelper {\n\t\tpublic static string TestD...
c#
chosen
[ { "from": "system", "value": "FLEET-9992: Add extra property to use new long Id's\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\nusing MiX.Integrate.Shared.Entities.Communications;\n\nnamespace MiX.Integrate.Shared.Entities.Messages\n{\n...
c#
chosen
[ { "from": "system", "value": "Remove unused property from Track model\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace SpotiPeek.App\n{\n class TrackModel\n {\n pu...
c#
chosen
[ { "from": "system", "value": "Add osu! prefix to mode descriptions.\n" }, { "from": "human", "value": "//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.\r\n//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE\r\n\r\n\r\nusing System.ComponentModel;\r...
c#
chosen
[ { "from": "system", "value": "Fix to not use a test filter in NUnit when no filters has been declared in Giles. This was causing NUnit to not run the tests\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Reflection;\r\nu...
c#
chosen
[ { "from": "system", "value": "Return null if invalid offset and seek to the offset\n" }, { "from": "human", "value": "using System.Text;\nusing dot10.IO;\n\nnamespace dot10.dotNET {\n\t/// <summary>\n\t/// Represents the #Strings stream\n\t/// </summary>\n\tpublic class StringsStream : DotNetSt...
c#
chosen
[ { "from": "system", "value": "Add realtime to room categories\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.Game.Online.Multiplayer\n{\n ...
c#
chosen
[ { "from": "system", "value": "Fix issue where ratio was always returning \"1\"\n" }, { "from": "human", "value": "using System;\n\nnamespace Satrabel.OpenContent.Components.TemplateHelpers\n{\n public class Ratio\n {\n private readonly float _ratio;\n\n public int Width { ge...
c#
chosen
[ { "from": "system", "value": "Make FeeParser throw if the fee parsed is not low, medium or high (previously defaulted to medium0\n" }, { "from": "human", "value": "using System;\n\nnamespace Stratis.Bitcoin.Features.Wallet\n{\n /// <summary>\n /// An indicator on how fast a transaction wi...
c#
chosen
[ { "from": "system", "value": "Set current directory for initial script.\n" }, { "from": "human", "value": "using System;\nusing System.Threading;\nusing System.Threading.Tasks;\n\nnamespace Infusion.EngineScripts\n{\n public sealed class ScriptEngine\n {\n private readonly IScriptE...
c#
chosen
[ { "from": "system", "value": "Check for objects existing using their equals operation rather than Ids\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing System.Linq.Expressions;\n\nnamespace LazyLibrary.Storage.Memory\n{\n internal class MemoryRep...
c#
chosen
[ { "from": "system", "value": "Put the scratch and warehouse directories up on WASB in the Shark test service. This gets CTAS to work.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.Net;\nusing Syste...
c#
chosen
[ { "from": "system", "value": "Fix sonarqube markup that sub has lhs and rhs identical\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel.Composition;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing Obero...
c#
chosen
[ { "from": "system", "value": "Add basic bindable instantiation benchmark\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;\nusing BenchmarkDotNe...
c#
chosen
[ { "from": "system", "value": "Add DOTNET_HOST_PATH for dotnet nuget commands\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\nusing ...
c#
chosen
[ { "from": "system", "value": "Add a dropdown for selecting organizations\n" }, { "from": "human", "value": "using UnityEditor;\nusing UnityEngine;\n\nnamespace GitHub.Unity\n{\n public class PublishWindow : EditorWindow\n {\n private const string PublishTitle = \"Publish this repos...
c#
chosen
[ { "from": "system", "value": "Add failing test coverage for tournament startup states\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;\nus...
c#
chosen
[ { "from": "system", "value": "Use existing file encoding if provided override is invalid\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Text;\nusing Calamari.Deployment;\nusing Calamari.Integration.FileSystem;\nusing Octostache;\n\nnamespace Calamari.Integratio...
c#
chosen
[ { "from": "system", "value": "Fix bug when splitting conjunctions\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nusing NQuery.Binding;\n\nnamespace NQuery.Optimization\n{\n internal static class Condition\n {\n public stat...
c#
chosen
[ { "from": "system", "value": "Modify progress helper so that activity indicator stops after last call ends\n" }, { "from": "human", "value": "using Cirrious.CrossCore.Core;\nusing System;\nusing System.Threading.Tasks;\n\nnamespace codestuffers.MvvmCrossPlugins.UserInteraction\n{\n /// <summ...
c#
chosen
[ { "from": "system", "value": "Fix settings not saving when opening \"Options\"\n" }, { "from": "human", "value": "#region\n\nusing System.Windows;\nusing SteamAccountSwitcher.Properties;\n\n#endregion\n\nnamespace SteamAccountSwitcher\n{\n /// <summary>\n /// Interaction logic for Opt...
c#
chosen
[ { "from": "system", "value": "Add tests for null checking\n\n\nFormer-commit-id: 093d57674ed09329af065f5df3615d2d2c511f8f" }, { "from": "human", "value": "using GeneratorAPI;\nusing NUnit.Framework;\nusing NUnit.Framework.Internal;\n\nnamespace Tests.GeneratorAPI {\n [TestFixture]\n inter...
c#
chosen
[ { "from": "system", "value": "Make sure metadata is set before being returned\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing Glimpse.Server.Internal;\nusing Glimpse.Internal.Extensions;\nusing Microsoft.AspNet.Http;\nusing Microsoft.Extensions.Op...
c#
chosen
[ { "from": "system", "value": "Add test trying to recreate the issue\n" }, { "from": "human", "value": "using Xunit;\nusing Unity.SolrNetCloudIntegration;\nusing Unity;\n\nnamespace SolrNet.Cloud.Tests\n{\n public class UnityTests\n {\n private IUnityContainer Setup() {\n ...
c#
chosen
[ { "from": "system", "value": "S-54454: Use the new 15.0 SDK to access meta via IServices\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing VersionOne.SDK.APIClient;\n\nnamespace VersionOne.ServerConnector {\n // TODO extract interf...
c#
chosen
[ { "from": "system", "value": "Resolve line too long message on build server\n" }, { "from": "human", "value": "// <copyright file=\"AssemblyInfoCommon.cs\" company=\"natsnudasoft\">\n// Copyright (c) Adrian John Dunstan. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0...
c#
chosen
[ { "from": "system", "value": "Fix 'no multiple zeppelins of the same type' constraint server side.\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Web;\r\nusing Newtonsoft.Json;\r\n\r\nnamespace Battlezeppelins.Models\r...
c#
chosen
[ { "from": "system", "value": "Revert to previous debugging method as change wasn't working correctly.\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 found in th...
c#
chosen
[ { "from": "system", "value": "Fix a bug with the console arguments class\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Luval.Common\n{\n public class ConsoleArguments\n ...
c#
chosen
[ { "from": "system", "value": "Support for running the app in a \"portable\" mode\n" }, { "from": "human", "value": "using System;\nusing System.IO;\n\nnamespace MultiMiner.Utility\n{\n public static class ApplicationPaths\n {\n public static string AppDataPath()\n {\n ...
c#
chosen
[ { "from": "system", "value": "Change DisabledProgramSource class to inherit ProgramSource\n\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.IO;\nusing Wox.Plugin.Program.Programs;\n\nnamespace Wox.Plugin.Program\n{\n public class Settings\n {\n pu...
c#
chosen
[ { "from": "system", "value": "Allow negative GAF frame offsets\n" }, { "from": "human", "value": "namespace TAUtil.Gaf.Structures\r\n{\r\n using System.IO;\r\n\r\n internal struct GafFrameData\r\n {\r\n public ushort Width;\r\n public ushort Height;\r\n public usho...
c#
chosen
[ { "from": "system", "value": "Add full testing flow for `BeatmapOffsetControl`\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...
c#
chosen
[ { "from": "system", "value": "Add \"Search\" widget no base url warning\n" }, { "from": "human", "value": "using System.Diagnostics;\nusing System.Windows.Input;\nusing DesktopWidgets.Classes;\nusing DesktopWidgets.Helpers;\nusing DesktopWidgets.ViewModelBase;\nusing GalaSoft.MvvmLight.Command;...
c#
chosen