conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Check dVers versions for null (version numbers such as 1, 1.2 and 1.3)\n" }, { "from": "human", "value": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Text;\n\nnamespace KerbalPack...
c#
chosen
[ { "from": "system", "value": "Refactor - rename test class\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 NUnit.Framework;\r\n\r\nnamespace IntUITive.Selenium.Tests\r\n{\...
c#
chosen
[ { "from": "system", "value": "Fix Sandbox occurs compile error under 5.3\n" }, { "from": "human", "value": "using UnityEngine;\nusing UniRx;\nusing UniRx.Triggers;\nusing System.Collections;\nusing System.Linq;\nusing System;\nusing System.Collections.Generic;\nusing UnityEngine.UI;\nusing Unit...
c#
chosen
[ { "from": "system", "value": "Put loop test's variables in a local scope\n" }, { "from": "human", "value": "using NUnit.Framework;\n\nnamespace Rant.Tests.Expressions\n{\n [TestFixture]\n public class Loops\n {\n private readonly RantEngine rant = new RantEngine();\n\n [T...
c#
chosen
[ { "from": "system", "value": "Remove \"Get\" statement from example docs\n" }, { "from": "human", "value": "using Discord;\nusing Discord.Commands;\nusing Discord.WebSocket;\n\npublic class ModuleA : ModuleBase\n{\n private readonly DatabaseService _database;\n\n // Dependencies can be inj...
c#
chosen
[ { "from": "system", "value": "Improve cfx default settings (removing hack switch)\n" }, { "from": "human", "value": "using Chromium;\nusing Chromium.Event;\nusing Neutronium.Core;\nusing Neutronium.WPF;\n\nnamespace Neutronium.WebBrowserEngine.ChromiumFx\n{\n public abstract class ChromiumFx...
c#
chosen
[ { "from": "system", "value": "Fix for audio URIs to prevent onerror javascript being introduced via percent encoding.\n\nSigned-off-by: cmaish <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@christophermaish.com>\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\nusing J...
c#
chosen
[ { "from": "system", "value": "Remove User ID from device credential creation payload\n" }, { "from": "human", "value": "using Auth0.Core;\nusing Newtonsoft.Json;\n\nnamespace Auth0.ManagementApi.Models\n{\n\n /// <summary>\n /// \n /// </summary>\n public class DeviceCredentialCreate...
c#
chosen
[ { "from": "system", "value": "Add option to control whether player can use twisting\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\n\npublic class GameManager : MonoBehaviour\n{\n public static GameManager Instance;\n public Mode CurrentMode = Mode.TopDow...
c#
chosen
[ { "from": "system", "value": "Fix migration to handle identical aliases for different group names and write error to log\n" }, { "from": "human", "value": "using System.Linq;\nusing Umbraco.Core.Persistence.Dtos;\n\nnamespace Umbraco.Core.Migrations.Upgrade.V_8_16_0\n{\n public class AddProp...
c#
chosen
[ { "from": "system", "value": "Use await instead of hand-written continuation.\n\nThe compiler-generated state machine reduces allocations and performs better in benchmarks.\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\n\nnamespace MySql.Data\n{\n\tinternal sta...
c#
chosen
[ { "from": "system", "value": "Fix missing plot in claims\n" }, { "from": "human", "value": "@using JoinRpg.Web.App_Code\n@using JoinRpg.Web.Models.Plot\n@model PlotElementViewModel\n\n @if (!Model.Visible)\n {\n return;\n }\n\n@{\n var hideClass = Model.Status == PlotStatus.InWork ? \"wo...
c#
chosen
[ { "from": "system", "value": "Fix invalid logic when start server\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\nnamespace LiteNetLibHighLevel\n{\n [RequireComponent(typeof(LiteNetLibAssets))]\n public class LiteNetLi...
c#
chosen
[ { "from": "system", "value": "Make username password fields fit on Mac Chrome\n" }, { "from": "human", "value": "@using JabbR;\n <form class=\"form-horizontal\" action=\"@Url.Content(\"~/account/login\")\" method=\"post\">\n @Html.ValidationSummary()\n <div class=\"control-grou...
c#
chosen
[ { "from": "system", "value": "Use empty hit windows for spinner ticks\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.Game.Audio;\nusing osu.Game....
c#
chosen
[ { "from": "system", "value": "Fix TestGetPlaylistFormats after adding more extensions to the PlaylistReaderFactory\n" }, { "from": "human", "value": "using System;\nusing ATL.AudioReaders;\nusing Microsoft.VisualStudio.TestTools.UnitTesting;\nusing System.Text;\n\nnamespace ATL.test\n{\n [Te...
c#
chosen
[ { "from": "system", "value": "Fix iOS cache folder path\n" }, { "from": "human", "value": "using System;\nusing System.IO;\n\nnamespace Amica.vNext\n{\n public class SqliteObjectCache : SqliteObjectCacheBase\n {\n protected override string GetDatabasePath()\n {\n ...
c#
chosen
[ { "from": "system", "value": "Add API comments for Git Testing ;)\n" }, { "from": "human", "value": "using Microsoft.Practices.Unity;\r\nusing Microsoft.Practices.Unity.ObjectBuilder;\r\n\r\nnamespace UnityAutoMoq\r\n{\r\n public class UnityAutoMoqExtension : UnityContainerExtension\r\n {\...
c#
chosen
[ { "from": "system", "value": "Switch to the less restrictive IConfiguration\n" }, { "from": "human", "value": "#if NETSTANDARD1_6\n\nusing System;\nusing Microsoft.Extensions.Configuration;\n\nnamespace RapidCore.Configuration\n{\n /// <summary>\n /// Base class for strongly typed configur...
c#
chosen
[ { "from": "system", "value": "Add Travis to contact list.\n" }, { "from": "human", "value": "@{\n ViewBag.Title = \"Contact\";\n}\n<h2>@ViewBag.Title.</h2>\n<h3>@ViewBag.Message</h3>\n\n<address>\n One Microsoft Way<br />\n Redmond, WA 98052-6399<br />\n <abbr title=\"Phone\">P:</ab...
c#
chosen
[ { "from": "system", "value": "Change assembly version for release\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 to your proj...
c#
chosen
[ { "from": "system", "value": "Add missing Include for CircleType\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Collections.ObjectModel;\nusing System.Xml.Serialization;\nusing Rocket.Unturned.Player;\n\nnamespace Safezone.Model\n{\n [XmlInc...
c#
chosen
[ { "from": "system", "value": "Change destination for slack notifications\n" }, { "from": "human", "value": "using AzureStorage.Queue;\nusing Core;\nusing Core.Notifiers;\nusing Lykke.JobTriggers.Abstractions;\nusing Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing Syste...
c#
chosen
[ { "from": "system", "value": "Add --base-tile option to Deserialize-Tilemap.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace PixelPet.Commands {\n\tinternal class DeserializeTilemapCmd : CliCommand {\n\t\tp...
c#
chosen
[ { "from": "system", "value": "Fix animation FrameDelay not being locale independent.\n" }, { "from": "human", "value": "using System;\nusing System.IO;\n\nnamespace StorybrewCommon.Storyboarding\n{\n public class OsbAnimation : OsbSprite\n {\n public int FrameCount;\n public...
c#
chosen
[ { "from": "system", "value": "Convert this in a different way\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing BugsnagUnity.Payload;\nusing UnityEngine;\n\nnamespace BugsnagUnity\n{\n static class DictionaryExtensions\n {\n private static IntPtr Arr...
c#
chosen
[ { "from": "system", "value": "Fix image hash computing (PNG gives different results on different ms windows versions)\n" }, { "from": "human", "value": "using System.Drawing;\nusing System.Drawing.Imaging;\nusing System.IO;\n\nnamespace MaintainableSelenium.MvcPages.Utils\n{\n public static ...
c#
chosen
[ { "from": "system", "value": "Remove obsolete ifdefs and property\n" }, { "from": "human", "value": "using System;\nusing Xablu.WebApiClient.Exceptions;\n\nnamespace Xablu.WebApiClient\n{\n public class CrossRestApiClient\n {\n private static Action<RestApiClientOptions> _configure...
c#
chosen
[ { "from": "system", "value": "Fix installments to use the correct type\n" }, { "from": "human", "value": "namespace Stripe\n{\n using System;\n using Newtonsoft.Json;\n using Stripe.Infrastructure;\n\n public class PaymentIntentPaymentMethodOptionsCard : StripeEntity<PaymentIntentPay...
c#
chosen
[ { "from": "system", "value": "Use {0:c} rather than ToString(\"c\") where possible.\n\n--HG--\nbranch : currency_string_format\n" }, { "from": "human", "value": "@using System.Linq;\n@using Nwazet.Commerce.Models;\n@{\n var priceTiers = new List<PriceTier>(Model.PriceTiers);\n var discoun...
c#
chosen
[ { "from": "system", "value": "Save created towers in an array\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\n\npublic class GameController : MonoBehaviour {\n\n\tpublic GameObject towerBase;\n\tpublic GameObject gameField;\n\n\tvoid Start () {\n\t\tDebug.Log (...
c#
chosen
[ { "from": "system", "value": "Fix for always using front\n" }, { "from": "human", "value": "using Android.Content;\nusing Android.Hardware;\n\nnamespace Plugin.Media\n{\n\tinternal static class IntentExtraExtensions\n\t{\n\t\tprivate const string extraFrontPre25 = \"android.intent.extras.CAMERA...
c#
chosen
[ { "from": "system", "value": "Hide \"Rank Achieved\" sorting mode until it's supported\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.Compone...
c#
chosen
[ { "from": "system", "value": "Revert accidental change of async flag .\n\n--HG--\nbranch : 1.1\n" }, { "from": "human", "value": "using System;\r\nusing System.Diagnostics;\r\n\r\nnamespace NuGetConsole.Implementation.PowerConsole {\r\n /// <summary>\r\n /// Represents a host with extra in...
c#
chosen
[ { "from": "system", "value": "Update the example precondition to use IServiceProvider" }, { "from": "human", "value": "// (Note: This precondition is obsolete, it is recommended to use the RequireOwnerAttribute that is bundled with Discord.Commands)\n\nusing Discord.Commands;\nusing Discord.WebS...
c#
chosen
[ { "from": "system", "value": "Fix errors in log caused by no prevalues beind selected.\n" }, { "from": "human", "value": "using System;\r\nusing umbraco.DataLayer;\r\n\r\nnamespace umbraco.editorControls\r\n{\r\n\t/// <summary>\r\n\t/// Summary description for cms.businesslogic.datatype.DefaultD...
c#
chosen
[ { "from": "system", "value": "Refactor to common AddToLogBox function\n" }, { "from": "human", "value": "using System;\nusing System.Reactive.Linq;\nusing System.Reactive.Subjects;\nusing System.Windows;\n\nnamespace RxExamplesWPF\n{\n /// <summary>\n /// Interaction logic for MainWindow....
c#
chosen
[ { "from": "system", "value": "Configure data portal before using data portal\n" }, { "from": "human", "value": "using Csla.Configuration;\nusing ProjectTracker.Library;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusin...
c#
chosen
[ { "from": "system", "value": "Sort attribute types as documentation\n" }, { "from": "human", "value": "namespace Akeneo.Model\n{\n\tpublic class AttributeType\n\t{\n\t\tpublic const string Date = \"pim_catalog_date\";\n\t\tpublic const string Metric = \"pim_catalog_metric\";\n\t\tpublic const s...
c#
chosen
[ { "from": "system", "value": "Make the deployments wait until the server is ready.\n" }, { "from": "human", "value": "\n\nusing System;\nusing System.Collections;\nusing System.Collections.Generic;\n\nnamespace MCloud {\n\n\tpublic class MultiStepDeployment : Deployment, IEnumerable {\n\n\t\tpub...
c#
chosen
[ { "from": "system", "value": "Add implementation for change tracking.\n\nThe code will keep track of the changes to a property after the first time the value is set.\nIf the value is set back to that original value, then we consider the property reset to the initial state and remove it from tracking.\n" }...
c#
chosen
[ { "from": "system", "value": "Add flag to know if the package is bundled or not.\n" }, { "from": "human", "value": "// --------------------------------------------------------------------------------------------------------------------\n// <copyright file=\"Package.cs\" company=\"Naos\">\n// ...
c#
chosen
[ { "from": "system", "value": "Switch back to hello world example,\n\nextracted to separate method.\n" }, { "from": "human", "value": "using Microsoft.AspNetCore.Builder;\nusing Microsoft.AspNetCore.Hosting;\nusing Microsoft.Extensions.Logging;\n\nnamespace Tiesmaster.Dcc\n{\n public class St...
c#
chosen
[ { "from": "system", "value": "Add placeholder for agent config\n" }, { "from": "human", "value": "using Microsoft.AspNet.Builder;\nusing Glimpse.Host.Web.AspNet;\nusing Microsoft.Framework.DependencyInjection;\n\nnamespace Glimpse.Agent.AspNet.Sample\n{\n public class Startup\n {\n ...
c#
chosen
[ { "from": "system", "value": "Fix Missing magic extension and max version of decoder\n" }, { "from": "human", "value": "/* Copyright 2016 Daro Cutillas Carrillo\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the...
c#
chosen
[ { "from": "system", "value": "Remove VerifyMessage extension (implemented in NBitcoin)\n" }, { "from": "human", "value": "using HiddenWallet.Models;\nusing System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace NBitcoin\n{\n public static class NBitcoinExtensions\n {\...
c#
chosen
[ { "from": "system", "value": "Rename tests to reflect recent naming changes.\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\nusing Xunit;\n\nnamespace Nocto.Tests.Integration\n{\n public class UsersEndpointTests\n {\n public class TheGetUserAsyncMet...
c#
chosen
[ { "from": "system", "value": "Fix warning CA2208: provide a message to exception\n" }, { "from": "human", "value": "using System;\nusing System.Reflection;\n\nnamespace AttachToolbar\n{\n public enum EngineType\n {\n [EngineName(\"Native\")]\n Native = 1,\n\n [EngineN...
c#
chosen
[ { "from": "system", "value": "Revert \"fix(logging): 🐛 try alt AppInsights IKey init\"\n\nThis reverts commit cd9cdcd53870f5e3bd39cb982809a5ffcd8e8c85.\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\nusing Microsoft.Extensions.Configuration;\nusing Microsoft.Ex...
c#
chosen
[ { "from": "system", "value": "Remove specific references to .sln files.\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing SourceBrowser.Generator;\n\nnamespace SourceBrowser.Samples\n{\n class Program\n {\n static void Main(string[] args)\n {\n ...
c#
chosen
[ { "from": "system", "value": "Use constants in upgrade migration\n" }, { "from": "human", "value": "using Umbraco.Core.Logging;\nusing Umbraco.Core.Persistence.SqlSyntax;\n\nnamespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSevenFourteenZero\n{\n /// <summary>\n /// Migr...
c#
chosen
[ { "from": "system", "value": "Add missing using for UWP\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Linq;\n\n#if (NETFX || WINDOWS_PHONE)\nusing System.Windows.Data;\nusing System.Windows.Markup;\n#elif (NETFX_CO...
c#
chosen
[ { "from": "system", "value": "Add sample code to get the authenticated user from the site.\n" }, { "from": "human", "value": "using SmugMug.v2.Authentication;\nusing SmugMug.v2.Authentication.Tokens;\nusing System.Diagnostics;\n\nnamespace SmugMugTest\n{\n class Program\n {\n priva...
c#
chosen
[ { "from": "system", "value": "Make it work with any number of arguments\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace ConComp\n{\n class Program\n {\n...
c#
chosen
[ { "from": "system", "value": "Add a method to create an instance of the applicable path element type to resolver\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing System.Reflection;\nusing Pather.CSharp....
c#
chosen
[ { "from": "system", "value": "Bring back the LoadFrom method.\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Net.Mail;\nusing SparkPost.Utilities;\n\nnamespace SparkPost\n{\n public class Transmission\n {\n public Transmission()\n {\n ...
c#
chosen
[ { "from": "system", "value": "Fix bug argument matcher would cause index out of range\n" }, { "from": "human", "value": "using System;\n\nusing Microsoft.CodeAnalysis;\nusing Microsoft.CodeAnalysis.CSharp;\nusing Microsoft.CodeAnalysis.CSharp.Syntax;\n\nnamespace ApiPorter.Patterns\n{\n inter...
c#
chosen
[ { "from": "system", "value": "Hide health bar in no fail\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.Sprites...
c#
chosen
[ { "from": "system", "value": "Use static properties instead of static constructor\n==> if exception is thrown, detailed information is available, else TypeInitialiser exception is thrown" }, { "from": "human", "value": "using System.Collections.Generic;\r\n\r\nusing NHibernate;\r\nusing NHibern...
c#
chosen
[ { "from": "system", "value": "Fix for issue U4-5364 without trying to fix the localization of the error text.\n" }, { "from": "human", "value": "using System.Collections.Generic;\r\nusing System.ComponentModel.DataAnnotations;\r\nusing Umbraco.Core.Models;\r\n\r\nnamespace Umbraco.Core.Property...
c#
chosen
[ { "from": "system", "value": "Add Commands repo to unit of work\n" }, { "from": "human", "value": "/////////////////////////////////////////////////////////////////\n// Created by : Caesar Moussalli //\n// TimeStamp : 31-1-2016 ...
c#
chosen
[ { "from": "system", "value": "Add trace with some quotes\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Configuration;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.Web;\nusing System.Web.Mvc;\nusing MyCoolLib;\n\nnamespace Mvc52...
c#
chosen
[ { "from": "system", "value": "Remove usage of FX_DEPS_FILE as a fallback for locating `dotnet`, since that can find the wrong result when a newer patch is installed to the global dotnet location than the one installed into the folder containing Process.MainModule.\n\nSee https://github.com/aspnet/Extensions...
c#
chosen
[ { "from": "system", "value": "Put markers in a dictionary for reuse.\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class ObjectPlacer : MonoBehaviour {\n\n\tpublic CountryLocation reader;\n\tpublic GameObject prefab...
c#
chosen
[ { "from": "system", "value": "Add bot class method stubs\n" }, { "from": "human", "value": "using System;\n\n/// <summary>\n/// Summary description for Class1\n/// </summary>\npublic class Bot {\n\tpublic Bot() {\n\t\t//\n\t\t// TODO: Add constructor logic here\n\t\t//\n\t}\n}\n" }, { "...
c#
chosen
[ { "from": "system", "value": "Bring welcome page back to project\n" }, { "from": "human", "value": "using Microsoft.AspNet.Builder;\n\nnamespace KWebStartup\n{\n public class Startup\n {\n\n public void Configure(IApplicationBuilder app)\n {\n app.UseStaticFiles();...
c#
chosen
[ { "from": "system", "value": "Remove PremiumRS edition value due to public preview schedule changes\n" }, { "from": "human", "value": "// ----------------------------------------------------------------------------------\n//\n// Copyright Microsoft Corporation\n// Licensed under the Apache Lice...
c#
chosen
[ { "from": "system", "value": "Add LateUpdate check to scaler\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\n[ExecuteInEditMode]\npublic class TextMeshLimitSize : MonoBehaviour\n{\n\n#pragma warning disable 0649 //Serializ...
c#
chosen
[ { "from": "system", "value": "Allow products to have 0 price\n" }, { "from": "human", "value": "using System;\nusing System.Globalization;\nusing System.Text.RegularExpressions;\n\nnamespace RohlikAPI.Helpers\n{\n public class PriceParser\n {\n public double ParsePrice(string price...
c#
chosen
[ { "from": "system", "value": "Add comment as this may be removed in the future\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\nusing osu.Framewo...
c#
chosen
[ { "from": "system", "value": "Fix text on main page.\n" }, { "from": "human", "value": "@model CompetitionPlatform.Models.ProjectViewModels.ProjectListIndexViewModel\n\n@{\n ViewData[\"Title\"] = \"Projects\";\n}\n\n<section class=\"section section--lead section--padding\">\n <div class=\...
c#
chosen
[ { "from": "system", "value": "Fix the EF causing issues identity framework\n" }, { "from": "human", "value": "using System;\nusing Microsoft.AspNet.Identity.EntityFramework;\nusing Project.Data.Configuration;\nusing System.Data.Entity;\nusing Project.Domain.Entities;\n\nnamespace Project.Data\n...
c#
chosen
[ { "from": "system", "value": "Add Response Bad Request on Detail Page\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.Mvc;\nusing CarFuel.DataAccess;\nusing CarFuel.Models;\nusing CarFuel.Services;\nusi...
c#
chosen
[ { "from": "system", "value": "Undo a change which causes compiler error in .NET 4.0 (but not .NET 4.5\n" }, { "from": "human", "value": "using System.Collections.Generic;\r\nusing System.Linq;\r\n\r\nnamespace NuGet.Common\r\n{\r\n public static class AggregateRepositoryHelper\r\n {\r\n ...
c#
chosen
[ { "from": "system", "value": "Replace tournament routes with generic {year}/{discipline}/{slug}\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\nusing System.Web.Mvc;\nusing CroquetAustralia.Website.App.Infrastructure;\n\nnamespace CroquetAustralia.Website.App.to...
c#
chosen
[ { "from": "system", "value": "Fix initializing the auth view'\n" }, { "from": "human", "value": "using System;\nusing UnityEditor;\nusing UnityEngine;\n\nnamespace GitHub.Unity\n{\n [Serializable]\n class AuthenticationWindow : BaseWindow\n {\n private const string Title = \"Sig...
c#
chosen
[ { "from": "system", "value": "Switch back to tabbed winforms example being the default (maybe one day create a method to switch between the two)\n" }, { "from": "human", "value": "// Copyright © 2010-2014 The CefSharp Authors. All rights reserved.\n//\n// Use of this source code is governed by ...
c#
chosen
[ { "from": "system", "value": "Write to debug in debug env\n" }, { "from": "human", "value": "using System;\nusing System.IO;\n\nnamespace WebScriptHook.Framework\n{\n public class Logger\n {\n public static string FileName\n {\n get;\n internal set;\n ...
c#
chosen
[ { "from": "system", "value": "Add removed skin component 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\nnamespace osu.Game.Rulesets.Taiko\n{\n publ...
c#
chosen
[ { "from": "system", "value": "Fix for unsubscribe freezing ui thread\n" }, { "from": "human", "value": "using System.Threading.Tasks;\nusing CryptoExchange.Net.Interfaces;\n\nnamespace Binance.Net.Objects\n{\n internal class BinanceStream\n {\n internal bool TryReconnect { get; set...
c#
chosen
[ { "from": "system", "value": "Print \"Other:\" for single choice questions\n" }, { "from": "human", "value": "using System;\nusing System.Text;\nusing SurveyMonkey.Helpers;\n\nnamespace SurveyMonkey.ProcessedAnswers\n{\n public class SingleChoiceAnswer : IProcessedResponse\n {\n pu...
c#
chosen
[ { "from": "system", "value": "Adjust the CoinWarz price / exchange rate so that BTC is 1 (100%)\n" }, { "from": "human", "value": "using MultiMiner.Coin.Api;\nusing Newtonsoft.Json.Linq;\n\nnamespace MultiMiner.CoinWarz.Api\n{\n public static class CoinInformationExtensions\n {\n p...
c#
chosen
[ { "from": "system", "value": "Revert \"Added log of exceptions\"\n\nThis reverts commit 27d31e494cb55c6dcbb79875bd388e67d8d928c1.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Configuration;\nusing System.Data;\nusing System.Globalization;\nus...
c#
chosen
[ { "from": "system", "value": "Fix bug in reset code\n" }, { "from": "human", "value": "using UnityEngine;\n\npublic class Trials {\n public static void Reset() {\n Debug.Log(\"Reset trials\");\n }\n\n public static void AddSuccess() {\n string trials = PlayerPrefs.GetStri...
c#
chosen
[ { "from": "system", "value": "Convert code to use extension method\n" }, { "from": "human", "value": "using System;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.DoubleNumerics;\nusing JetBrains.Annotations;\nusing SolidworksAddinFramework.OpenGl;\nusing SolidWorks.Interop.sldwork...
c#
chosen
[ { "from": "system", "value": "Set version number of unit tests to be different\n\nThis way the test case can verify they are working correctly\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General...
c#
chosen
[ { "from": "system", "value": "Revert AssemblyVersion to 2.0.0 because there are no breaking changes in this version\n" }, { "from": "human", "value": "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License. See License.txt in the project root for license ...
c#
chosen
[ { "from": "system", "value": "iOS: Fix creating a font with a specific style\n" }, { "from": "human", "value": "using System;\nusing Eto.Drawing;\nusing System.Collections.Generic;\nusing MonoTouch.UIKit;\nusing System.Linq;\n\nnamespace Eto.Platform.iOS.Drawing\n{\n\tpublic class FontFamilyHand...
c#
chosen
[ { "from": "system", "value": "Change to using TypeCatalog instead of AssemblyCatalog\n" }, { "from": "human", "value": "using System.ComponentModel.Composition.Hosting;\n\nnamespace IocPerformance.Adapters\n{\n public sealed class MefContainerAdapter : IContainerAdapter\n {\n priva...
c#
chosen
[ { "from": "system", "value": "Make sure debugger is attached for DebugBreak, otherwise user is prompted to attach a debugger\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Threading;\n\nnamespace Bumblebee.Extensions\n{\n public static class ...
c#
chosen
[ { "from": "system", "value": "Revert \"Added method to perform validity check for effect parameters\"\n\nThis reverts commit faf0ad746b78f754dca89a552c114a912c68b3d3.\n" }, { "from": "human", "value": "namespace SoxSharp.Effects\n{\n public abstract class BaseEffect : IBaseEffect\n {\n pub...
c#
chosen
[ { "from": "system", "value": "Add IsFilterActive; remove unneeded parameters for filter method (pass it on ctor)\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing PrepareLanding.Extensions;\nusing RimWorld;\nusing RimWorld.Planet;\nus...
c#
chosen
[ { "from": "system", "value": "Update description, version and remove ComVisible\n" }, { "from": "human", "value": "using System;\r\nusing System.Reflection;\r\nusing System.Runtime.CompilerServices;\r\nusing System.Runtime.InteropServices;\r\n\r\n[assembly: AssemblyTitle(\"NModbus4\")]\r\n[assem...
c#
chosen
[ { "from": "system", "value": "Increase version number to 1.2.0.0.\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// set of...
c#
chosen
[ { "from": "system", "value": "Disable \"deselect all mods\" button if none are selected\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.Collect...
c#
chosen
[ { "from": "system", "value": "Store extracted pages in subfolder\n" }, { "from": "human", "value": "using MyDocs.Common.Contract.Service;\nusing MyDocs.Common.Model.Logic;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Threading.Tasks;\nusi...
c#
chosen
[ { "from": "system", "value": "Fix typos in cluster reroute explanation\n" }, { "from": "human", "value": "using Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace Nest\n{\n\t[JsonObject]\n\tpublic class ClusterRerouteExplanati...
c#
chosen
[ { "from": "system", "value": "Correct the sand box to catch exception if a non-CLR dll is present." }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Text;\r\nusing System.Reflection;\r\n\r\nnamespace AgateLib.Drivers\r\n{\r\n class AgateSandB...
c#
chosen
[ { "from": "system", "value": "Make html template container builder public.\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.IO.IsolatedStorage;\r\n\r\nnamespace Cassette\r\n{\r\n class HtmlTempla...
c#
chosen
[ { "from": "system", "value": "Fix null ref access when texture panel is open and you hover over a texture that failed to load.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Data;\nusing System.Diagnostics;\nusing ...
c#
chosen