conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Attach dev tools only in debug builds\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 Avalonia;\nusing Avalonia.Co...
c#
chosen
[ { "from": "system", "value": "Rename TimeStamp to EventTimeStamp to avoid confusion with native Azure Table Storage \"Timestamp\" column\n" }, { "from": "human", "value": "using System;\nusing System.Collections;\nusing System.Globalization;\nusing System.Text;\nusing Microsoft.WindowsAzure.Sto...
c#
chosen
[ { "from": "system", "value": "Add support for vscode install via snap" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace Assent.Reporters.DiffPrograms\n{\n public class VsCodeDiffProgram : DiffProgramBase\n {\n static ...
c#
chosen
[ { "from": "system", "value": "Add the extension method ToSJIS()\n" }, { "from": "human", "value": "using System.Linq;\nusing System.Text;\n\nnamespace ReimuPlugins.Common\n{\n public static class StringExtensions\n {\n public static string ToCStr(this string str)\n {\n ...
c#
chosen
[ { "from": "system", "value": "Fix typo in build. We should add tests.\n" }, { "from": "human", "value": "using System;\n\nnamespace Equifax\n{\n /// <summary>\n /// Creates globally secure Equifax-style GUIDs.\n /// </summary>\n public static class Guid\n {\n /// <summary>...
c#
chosen
[ { "from": "system", "value": "Stop the loop when there are no subscribers\n" }, { "from": "human", "value": "using System;\nusing System.Diagnostics;\nusing System.Threading;\n\nnamespace Avalonia.Rendering\n{\n public class SleepLoopRenderTimer : IRenderTimer\n {\n public event Act...
c#
chosen
[ { "from": "system", "value": "Fix NH-2927 - Oracle Dialect does not handle the correct resolution for timestamp version columns\n\nFixes the following tests on Oracle:\n\nNHibernate.Test.Component.Basic.ComponentTest.TestComponent\nNHibernate.Test.Component.Basic.ComponentTest.TestComponentStateChangeAndDir...
c#
chosen
[ { "from": "system", "value": "Integrate cell resources with player resources code\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\n\npublic class NurseryResource : CellFeature {\n\n public override int Amount\n {\n set\n {\n // add...
c#
chosen
[ { "from": "system", "value": "Fix casing of jQuery validation fallback test\n" }, { "from": "human", "value": "<environment names=\"Development\">\n <script src=\"~/lib/jquery-validation/jquery.validate.js\"></script>\n <script src=\"~/lib/jquery-validation-unobtrusive/jquery.validate.uno...
c#
chosen
[ { "from": "system", "value": "Implement IComparable interface for sorting\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\n\r\nnamespace TfsHelperLib\r\n{\r\n public class Tfs...
c#
chosen
[ { "from": "system", "value": "Change IGuild parameter to ulong\n\nImplement this at a later date" }, { "from": "human", "value": "using System.Threading.Tasks;\nusing Discord;\nusing Discord.Commands;\nusing NoAdsHere.Common;\nusing NoAdsHere.Common.Preconditions;\n\nnamespace NoAdsHere.Commands...
c#
chosen
[ { "from": "system", "value": "Change model reference with old namespace to new\n" }, { "from": "human", "value": "@model IEnumerable<Zk.Models.Crop>\n\n@{\n ViewBag.Title = \"Gewassen\";\n}\n<div id=\"top\"></div>\n\n<div id=\"yearCalendar\">\n<h1>Dit zijn de gewassen in onze database:</h1>\...
c#
chosen
[ { "from": "system", "value": "Move next step calculation to a property\n" }, { "from": "human", "value": "using System;\nusing System.Numerics;\n\nnamespace DynamixelServo.Quadruped\n{\n public class BasicQuadrupedGaitEngine : QuadrupedGaitEngine\n {\n private const int Speed = 12;...
c#
chosen
[ { "from": "system", "value": "Remove studio repo Create call used for testing\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nusing AutoMapper;\n\nusing ISTS.Domain.Studios;\n\nnamespace ISTS.Application.Studios\n{\n public class Stud...
c#
chosen
[ { "from": "system", "value": "Set legacy version of osu!classic skin to 2.0\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.Audio;\nusin...
c#
chosen
[ { "from": "system", "value": "Fix build, this is not allwoed on the method itself\n" }, { "from": "human", "value": "//\n// Urho's Object C# sugar\n//\n// Authors:\n// Miguel de Icaza (miguel@xamarin.com)\n//\n// Copyrigh 2015 Xamarin INc\n//\n\nusing System;\nusing System.Runtime.InteropServi...
c#
chosen
[ { "from": "system", "value": "Use the new reflection API on .NET 4.5 and .NET Core\n" }, { "from": "human", "value": "// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.\r\n\r\nusing System;\r\nusing Syst...
c#
chosen
[ { "from": "system", "value": "Add skeleton code to main program\n" }, { "from": "human", "value": "using CurrencyRates.Entity;\r\nusing System;\r\n\r\nnamespace CurrencyRates\r\n{\r\n class Program\r\n {\r\n static void Main(string[] args)\r\n { \r\n }\r\n }\r\n...
c#
chosen
[ { "from": "system", "value": "Update top navigation dropdown menu\n" }, { "from": "human", "value": "@(Html.X().Panel()\n .Header(false)\n .Region(Region.North)\n .Border(false)\n .Height(70)\n .Content(\n @<text>\n <header class=\"site-header\" role=\"banner\">\n ...
c#
chosen
[ { "from": "system", "value": "Add remove method for cache\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Runtime.Caching;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Mozu.Api.Cache\n{\n public class Ca...
c#
chosen
[ { "from": "system", "value": "Fix ansi filename decoded as gibberish in zip file\n" }, { "from": "human", "value": "using System.Globalization;\r\nusing System.Text;\r\n\r\nnamespace SharpCompress.Common\r\n{\r\n public class ArchiveEncoding\r\n {\r\n /// <summary>\r\n /// D...
c#
chosen
[ { "from": "system", "value": "Update to use UTC instead of local time\n\nAvoid incorrect sleep times due to changes in local time such\nas daylight savings, for example.\n" }, { "from": "human", "value": "using System;\nusing System.Threading;\n\nnamespace Shuttle.Core.Infrastructure\n{\n pub...
c#
chosen
[ { "from": "system", "value": "Return 0xFF for an undefined cartridge read rather than 0x00\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace elbgb_core.Memory\n{\n\tclass NullCa...
c#
chosen
[ { "from": "system", "value": "Change priority of StrokeWatcherScheduler to Highest.\n\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Crevice.GestureMachine\n{\n using Syst...
c#
chosen
[ { "from": "system", "value": "Make sure the OWIN sample runs\n" }, { "from": "human", "value": "namespace OwinApp\n{\n using System;\n using Microsoft.Owin.Hosting;\n using Owin;\n using Nancy.Owin;\n\n public class Program\n {\n public static void Main(string[] args)\n...
c#
chosen
[ { "from": "system", "value": "Fix minor bug for mix mode.\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\n\npublic class GP_ResourcePhase : Phase\n{\n\n public override void OnEnter()\n {\n base.OnEnter();\n\n var hexes = TowerManager.Instan...
c#
chosen
[ { "from": "system", "value": "Update Exception message to feature app ID, instead of API Key.\n" }, { "from": "human", "value": "using System;\n\nnamespace Telerik.Windows.Controls.Cloud.Sample\n{\n /// <summary>\n /// Contains properties used to initialize the Backend Services and Analyt...
c#
chosen
[ { "from": "system", "value": "Send keystrokes to the console main window\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.Runtime.InteropServices;\nusing System.Text;\nusing System.Threading.Tasks;\n...
c#
chosen
[ { "from": "system", "value": "Correct names of test methods\n" }, { "from": "human", "value": "using FluentAssertions;\nusing NUnit.Framework;\n\nnamespace MyInfluxDbClient.UnitTests\n{\n public class ShowSeriesTests : UnitTestsOf<ShowSeries>\n {\n [Test]\n public void Genera...
c#
chosen
[ { "from": "system", "value": "Change starting line in script processor to 1 instead of 0 for easier debugging\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Text;\nusing System.Windows.Forms;\nusing CefSharp;\nusing CefSharp.WinForms;\n\nnamespace TweetDck.Reso...
c#
chosen
[ { "from": "system", "value": "Fix for segfault on end of Qt test\n" }, { "from": "human", "value": "using System;\nusing NUnit.Framework;\nusing Gtk;\nusing Qyoto;\n\nnamespace Selene.Testing\n{\n [TestFixture]\n public partial class Harness\n {\n [TestFixtureSetUp]\n publ...
c#
chosen
[ { "from": "system", "value": "Create a hysteresis observable transform.\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing UniRx;\nusing UnityEngine;\n\npublic class GeneratedSignals\n{\n public static IObservable<float> CreateTriangleSigna...
c#
chosen
[ { "from": "system", "value": "Fix media player allocation error\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.IO;\nusing System.Threading;\nusing DesktopWidgets.Properties;\nusing WMPLib;\n\nnamespace DesktopWidgets.Classes\n{\n public static class MediaP...
c#
chosen
[ { "from": "system", "value": "Add ability to specify xml root without decorating the target class.\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Text.RegularExpressions;\nusing System.Xml.Serialization;\n\nnamespace Rock.Messaging.Routing\n{\n public class ...
c#
chosen
[ { "from": "system", "value": "Use pure in-memory db in development environment\n" }, { "from": "human", "value": "using LiteDB;\nusing Microsoft.Extensions.Logging;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Threading.Tasks;\n\nnamespac...
c#
chosen
[ { "from": "system", "value": "Add logic to inject NAME in ViewBag based of Identity" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Web;\r\nusing System.Web.Mvc;\r\n\r\nnamespace MvcNG.Controllers\r\n{\r\n public class...
c#
chosen
[ { "from": "system", "value": "Replace copyright with LICENSE reference\n" }, { "from": "human", "value": "using System.Reflection;\r\nusing System.Runtime.InteropServices;\r\n\r\n[assembly: AssemblyTitle(\"VulkanInfo GUI\")]\r\n[assembly: AssemblyDescription(\"Small program to obtain informatio...
c#
chosen
[ { "from": "system", "value": "[swift] Use non-deprecated UnsafeRawPointer type to represent untyped native pointers.\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing CppSharp.AST;\nusing CppSharp.Generators;\n\nnamespace Embeddinator.Generators\n{\n...
c#
chosen
[ { "from": "system", "value": "Fix test failures due to logger pollution\n\nAs seen at\nhttps://github.com/ppy/osu/pull/13831/checks?check_run_id=3025050307. I\ncan't confirm that this will fix the issue but it looks like the only\nplausible reason. I have confirmed that the logging is not coming from\nthe l...
c#
chosen
[ { "from": "system", "value": "Remove superfluous call to ToImmutableArray\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Immutable;\n\nnamespace ApiPorter.Patterns\n{\n public sealed partial class PatternSearch\n {\n private PatternSearch(string text, Im...
c#
chosen
[ { "from": "system", "value": "Add the search for user api to the Site.\n" }, { "from": "human", "value": "// Copyright (c) Alex Ghiondea. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nusing SmugMug.v2.Authenticatio...
c#
chosen
[ { "from": "system", "value": "Change \"Note\" default size / minimum size\n" }, { "from": "human", "value": "using System.ComponentModel;\nusing DesktopWidgets.WidgetBase.Settings;\n\nnamespace DesktopWidgets.Widgets.Note\n{\n public class Settings : WidgetSettingsBase\n {\n public...
c#
chosen
[ { "from": "system", "value": "Allow only one instance of application\n" }, { "from": "human", "value": "using System;\r\nusing System.IO;\r\nusing System.Windows.Forms;\r\n\r\nnamespace SteamShutdown\r\n{\r\n static class Program\r\n {\r\n /// <summary>\r\n /// The main entr...
c#
chosen
[ { "from": "system", "value": "Use ticks instead of milliseconds for time calculation\n\nThis can offer more temporal resolution depending on the platform.\n" }, { "from": "human", "value": "using System;\nusing System.Diagnostics;\n\nnamespace OpenSage\n{\n public sealed class GameTimer : ID...
c#
chosen
[ { "from": "system", "value": "Comment out unused variables for now\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.Game.Beatmaps;\r\nusi...
c#
chosen
[ { "from": "system", "value": "Add metadata loading to abstract report class\n" }, { "from": "human", "value": "using KenticoInspector.Core.Models;\nusing System;\nusing System.Collections.Generic;\n\nnamespace KenticoInspector.Core\n{\n public abstract class AbstractReport<T> : IReport, IWit...
c#
chosen
[ { "from": "system", "value": "Add progress example to command line program\n" }, { "from": "human", "value": "using System;\nusing ArduinoUploader;\n\nnamespace ArduinoSketchUploader\n{\n /// <summary>\n /// The ArduinoSketchUploader can upload a compiled (Intel) HEX file directly to an a...
c#
chosen
[ { "from": "system", "value": "Add Dequeue<T>(int count) for dequeue specified items in Queue<T> by count when enumberate\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Net;\nusing System.Threading;\nusing System.Threading.Tasks;\n\nnamespace Ti...
c#
chosen
[ { "from": "system", "value": "Revert accidental removal of interface methods\n\n" }, { "from": "human", "value": "\nnamespace Wox.Core.Configuration\n{\n public interface IPortable\n {\n void RemoveShortcuts();\n void RemoveUninstallerEntry();\n void CreateShortcuts()...
c#
chosen
[ { "from": "system", "value": "Add change handling for effects section\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...
c#
chosen
[ { "from": "system", "value": "Use canned document service by default.\n" }, { "from": "human", "value": "namespace WorkoutWotch.UI.Android\n{\n using Services.ExerciseDocument;\n using WorkoutWotch.Services.Contracts.Audio;\n using WorkoutWotch.Services.Contracts.ExerciseDocument;\n ...
c#
chosen
[ { "from": "system", "value": "Move TokenEnvironmentVariable to constant string\n" }, { "from": "human", "value": "using System;\n\nnamespace AppHarbor.Commands\n{\n\tpublic class LoginCommand : ICommand\n\t{\n\t\tprivate readonly AccessTokenFetcher _accessTokenFetcher;\n\t\tprivate readonly Env...
c#
chosen
[ { "from": "system", "value": "Add a reference to System.Linq to the script template.\n" }, { "from": "human", "value": "using OpenTK;\nusing OpenTK.Graphics;\nusing StorybrewCommon.Mapset;\nusing StorybrewCommon.Scripting;\nusing StorybrewCommon.Storyboarding;\nusing StorybrewCommon.Storyboardi...
c#
chosen
[ { "from": "system", "value": "Add more tests to TestSuite\n" }, { "from": "human", "value": "using Arkivverket.Arkade.Core;\nusing Arkivverket.Arkade.Tests;\nusing FluentAssertions;\nusing Xunit;\n\nnamespace Arkivverket.Arkade.Test.Core\n{\n public class TestSuiteTest\n {\n\n [Fact...
c#
chosen
[ { "from": "system", "value": "Add UserIDFromDeployedItem and UserIDsFromBuildingPrivilege\n- Courtesy of @strykes aka Reneb\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nusing Oxide.Core.Libraries;\nusing Oxide.Core.Plugins;\n\nnamesp...
c#
chosen
[ { "from": "system", "value": "Add shortcut of canvas width scaling by up/down arrow key\n" }, { "from": "human", "value": "using UniRx;\nusing UnityEngine;\nusing UnityEngine.UI;\n\npublic class CanvasWidthScalePresenter : MonoBehaviour\n{\n [SerializeField]\n CanvasEvents canvasEvents;\n...
c#
chosen
[ { "from": "system", "value": "Add IsSolid property for block\n" }, { "from": "human", "value": "using UnityEngine;\n\nnamespace Tetris\n{\n public class Block : MonoBehaviour\n {\n public Color Color\n {\n get { return _spriteRenderer.color; }\n set { _...
c#
chosen
[ { "from": "system", "value": "Add space for readability in the exception messages." }, { "from": "human", "value": "namespace SqlStreamStore.Infrastructure\n{\n using SqlStreamStore.Imports.Ensure.That;\n\n internal static class EnsureThatExtensions\n {\n internal static Param<s...
c#
chosen
[ { "from": "system", "value": "Work around problem in casting int to double.\n\nIssue #49.\n" }, { "from": "human", "value": "// -----------------------------------------------------------------------\n// <copyright file=\"GridSplitterStyle.cs\" company=\"Steven Kirk\">\n// Copyright 2014 MIT Li...
c#
chosen
[ { "from": "system", "value": "Add sample path to the lookup names\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;\nusing ...
c#
chosen
[ { "from": "system", "value": "Revert \"Only test that the program compiles until we can parse top-level arrays\"\n\nThis reverts commit a05f5e757403570bfbe73e1deddabd34b2c046ae.\n\n\nOriginal commit cc15f492ca0e6a6c6f2d41c387001c834ef45ce4\n" }, { "from": "human", "value": "using System;\nusing...
c#
chosen
[ { "from": "system", "value": "Change AssemblyCopyright from ACAXLabs to ACAExpress\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.InteropServices;\n\n[assembly: AssemblyTitle(\"LibSlyBroadcast\")]\n[assembly: AssemblyProduct(\"LibSlyBroadcast\")]\n[assembly: A...
c#
chosen
[ { "from": "system", "value": "Return the values of variables in the program as well as variables in the query\n" }, { "from": "human", "value": "using LogicalShift.Reason.Api;\nusing LogicalShift.Reason.Unification;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamesp...
c#
chosen
[ { "from": "system", "value": "Make the login button more noticeable\n" }, { "from": "human", "value": "@using Anlab.Core.Domain\n@using Microsoft.AspNetCore.Http\n\n@inject SignInManager<User> SignInManager\n@inject UserManager<User> UserManager\n\n\n@if (User.Identity.IsAuthenticated)\n{\n ...
c#
chosen
[ { "from": "system", "value": "Update tests to match new constructor\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...
c#
chosen
[ { "from": "system", "value": "Make open file also work at runtime\n\nthe file chooser didn't return the absolute path in runtime (?)\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\n\npublic class FileChooser : MonoBehaviour {\n\n\tFileBrowser fb = new FileBrows...
c#
chosen
[ { "from": "system", "value": "Divide weapon arc by half\n\nBecause WeaponMount.arc is added to either side of the bearing, the\ntotal arc would be 2x arc value. Halving the property in the Lua script\nfixes this problem.\n" }, { "from": "human", "value": "/*\n** Project ShiftDrive\n** (C) Mika ...
c#
chosen
[ { "from": "system", "value": "Print the sha which was excluded from version calculation\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing GitVersion.VersionCalculation.BaseVersionCalculators;\n\nnamespace GitVersion.VersionFilters\n{\...
c#
chosen
[ { "from": "system", "value": "Test commit from Visual Studio\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace GTPWrapper {\n public class GTPWrapper {\n public GTPWra...
c#
chosen
[ { "from": "system", "value": "Remove unnecessary check for SharpZipLib dll.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Reflection;\n\nnamespace IronFoundry.Container\n{\n public class ContainerHostDe...
c#
chosen
[ { "from": "system", "value": "Set RemoteEndPoint for UDP connections\n" }, { "from": "human", "value": "using System;\nusing System.Buffers;\nusing System.Net;\nusing System.Net.Sockets;\nusing System.Threading;\nusing System.Threading.Tasks;\nusing SuperSocket.ProtoBase;\n\nnamespace SuperSocke...
c#
chosen
[ { "from": "system", "value": "Set Browsable to false to hide DockPanel.Skin property.\n" }, { "from": "human", "value": "using System;\n\nnamespace WeifenLuo.WinFormsUI.Docking\n{\n using System.ComponentModel;\n\n public partial class DockPanel\n {\n private DockPanelSkin m_doc...
c#
chosen
[ { "from": "system", "value": "Remove Cache From Print Version\n" }, { "from": "human", "value": "using Mazzimo.Models;\nusing Mazzimo.Repositories;\nusing Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.Mvc;\n\nnamespac...
c#
chosen
[ { "from": "system", "value": "Call correct overload of log.FatalAsync\n\nThe method was previously hitting `FatalSync(string message, params object[] args)` and thereby throwing away the exception object as it wasn't referenced in the message. The change ensures that `FatalSync(string message, Exception ex)...
c#
chosen
[ { "from": "system", "value": "Make convlayer tests more complete\n" }, { "from": "human", "value": "using NUnit.Framework;\n\nnamespace ConvNetSharp.Tests\n{\n [TestFixture]\n public class ConvLayerTests\n {\n [Test]\n public void GradientWrtInputCheck()\n {\n ...
c#
chosen
[ { "from": "system", "value": "Fix insane oversight in `SynchronizationContext` implementation\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.T...
c#
chosen
[ { "from": "system", "value": "Fix wrong type for linkbuttons" }, { "from": "human", "value": "using System;\r\nusing System.Web.UI.WebControls;\r\n\r\nnamespace R7.HelpDesk\r\n{\r\n\tpublic partial class AdminSettings\r\n\t{\r\n\t\tprotected Panel pnlAdminSettings;\r\n\t\tprotected Panel pnlAdmi...
c#
chosen
[ { "from": "system", "value": "Fix bug with slow loading high scores\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing CodeBreaker.Core;\nusing CodeBreaker.Core.Storage;\nusing Microsoft.EntityFrameworkCor...
c#
chosen
[ { "from": "system", "value": "Check for active connections in each iteration\n\nCheck for listeners too\n" }, { "from": "human", "value": "using System;\r\nusing System.Linq;\r\nusing System.Net.NetworkInformation;\r\n\r\nnamespace HttpMock.Integration.Tests\r\n{\r\n\tinternal static class Port...
c#
chosen
[ { "from": "system", "value": "Switch over support commands from using the query class\n" }, { "from": "human", "value": "using System.Data;\nusing System.Linq;\n\nnamespace ZocMonLib\n{\n public class StorageCommandsSupport : IStorageCommandsSupport\n {\n public string SelectCurrent...
c#
chosen
[ { "from": "system", "value": "Fix documentation confusion in a similar way to r3a00fecf9d42.\n" }, { "from": "human", "value": "// Copyright 2013 The Noda Time Authors. All rights reserved.\r\n// Use of this source code is governed by the Apache License 2.0,\r\n// as found in the LICENSE.txt fi...
c#
chosen
[ { "from": "system", "value": "Add all operating system in the platform resolver\n" }, { "from": "human", "value": "// Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved.\n// The Apache v2. See License.txt in the project root for license information.\n\nusing Wangkanai.Detection.Exte...
c#
chosen
[ { "from": "system", "value": "[050copyfiles] Simplify fetching the temporary path\n" }, { "from": "human", "value": "// Automatically generated by Opus v0.50\r\nnamespace CopyTest1\r\n{\r\n class CopySingleFileTest : FileUtilities.CopyFile\r\n {\r\n public CopySingleFileTest()\r\n ...
c#
chosen
[ { "from": "system", "value": "Set app version to 3.0.0\n" }, { "from": "human", "value": "using System;\r\nusing System.Reflection;\r\nusing System.Runtime.InteropServices;\r\n\r\n[assembly: AssemblyTitle(\"EVE-O Preview\")]\r\n[assembly: AssemblyDescription(\"\")]\r\n[assembly: AssemblyConfigu...
c#
chosen
[ { "from": "system", "value": "fix(SingaporeAirlinesBot): Fix the not registered fare deal options.\n" }, { "from": "human", "value": "using System;\nusing Diskordia.Columbus.Bots.FareDeals;\nusing Diskordia.Columbus.Bots.FareDeals.SingaporeAirlines;\nusing Diskordia.Columbus.Common;\nusing Micr...
c#
chosen
[ { "from": "system", "value": "Throw Exception if arg < 0 using Throw Expression\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\n\nnamespace FibCSharp\n{\n class Program\n {\n static void Main(string[] args)\n {\n var max = 50;\n En...
c#
chosen
[ { "from": "system", "value": "Split ModuleOutput tests to separate asserts\n" }, { "from": "human", "value": "using Microsoft.VisualStudio.TestTools.UnitTesting;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace...
c#
chosen
[ { "from": "system", "value": "Change version up to 0.5.1\n" }, { "from": "human", "value": "using UnityEngine;\r\nusing System.Reflection;\r\n\r\n[assembly: AssemblyVersion(\"0.5.0.*\")]\r\npublic class Loader : MonoBehaviour\r\n{\r\n /// <summary>\r\n /// DebugUI prefab to instantiate.\r...
c#
chosen
[ { "from": "system", "value": "Handle iOS memory alerts and free any memory we can\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 CoreGraphics;\nusin...
c#
chosen
[ { "from": "system", "value": "Fix help text to use Debug output\n" }, { "from": "human", "value": "// Copyright 2021 Maintainers of NUKE.\n// Distributed under the MIT License.\n// https://github.com/nuke-build/nuke/blob/master/LICENSE\n\nusing System;\nusing System.Collections.Generic;\nusing S...
c#
chosen
[ { "from": "system", "value": "Allow legacy score to be constructed even if replay file is missing\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 Syst...
c#
chosen
[ { "from": "system", "value": "Add endpoint to get all instances\n" }, { "from": "human", "value": "using Nancy;\nusing Okanshi.Dashboard.Models;\n\nnamespace Okanshi.Dashboard\n{\n\tpublic class DashboardModule : NancyModule\n\t{\n\t\tprivate readonly IGetHealthChecks _getHealthChecks;\n\n\t\tp...
c#
chosen
[ { "from": "system", "value": "Fix PCL implementation of Reset\n" }, { "from": "human", "value": "using System;\nusing System.Threading;\n\n#if PORTABLE\nusing System.Threading.Tasks;\n#endif\n\nnamespace Polly.Utilities\n{\n /// <summary>\n /// Time related delegates used to improve testa...
c#
chosen
[ { "from": "system", "value": "Add Path property to exception\n" }, { "from": "human", "value": "using System;\nusing System.Text;\nusing Microsoft.AspNetCore.Http;\n\nnamespace Hellang.Middleware.SpaFallback\n{\n public class SpaFallbackException : Exception\n {\n private const str...
c#
chosen
[ { "from": "system", "value": "Remove forced height for testing\n" }, { "from": "human", "value": "@*\n * Copyright (c) gestaoaju.com.br - All rights reserved.\n * Licensed under MIT (https://github.com/gestaoaju/commerce/blob/master/LICENSE).\n *@\n\n@{ Layout = \"~/Views/Shared/_AppLayout.cshtm...
c#
chosen
[ { "from": "system", "value": "Add google analytics tracking code.\n" }, { "from": "human", "value": "<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <meta charset=\"utf-8\" />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n <title>@ViewBag.Title</title>\r\n ...
c#
chosen
[ { "from": "system", "value": "Update Logos.Git version (for new dependencies).\n" }, { "from": "human", "value": "using System;\nusing System.Reflection;\nusing System.Runtime.InteropServices;\n\n[assembly: AssemblyTitle(\"Logos.Git\")]\n[assembly: AssemblyDescription(\"Utility code for working...
c#
chosen
[ { "from": "system", "value": "Correct test for TeamCity status\n\nThe accepted content in the test would not be recognised by teamcity as a failure." }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing Fake;\nusing Machine.Specifications;\n\nnamespace Te...
c#
chosen
[ { "from": "system", "value": "Format contribution info as annotation\n" }, { "from": "human", "value": "---\nTitle: Documentation\n---\n<p>\n We gladly accept your contributions. If there is something that you would like to add then you can edit the content directly on GitHub.\n</p>\n\n@forea...
c#
chosen
[ { "from": "system", "value": "Add required defaults for tests\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing UnityEngine;\n\nnamespace Bugsnag.Unity.Tests\n{\n public class TestConfiguration : IConfiguration\n {\n public TimeSpan MaximumLogsTimeP...
c#
chosen