conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Set IndexedAttachments to version 2.0.2.0\n" }, { "from": "human", "value": "using System.Reflection;\r\n\r\n[assembly: AssemblyTitle(\"Raven.Bundles.Contrib.IndexedAttachments\")]\r\n[assembly: AssemblyDescription(\"Plugin for RavenDB that extracts text from attac...
c#
chosen
[ { "from": "system", "value": "Misc: Rename retrys token to retries\n\n" }, { "from": "human", "value": "using StreamCompanionTypes.DataTypes;\nusing StreamCompanionTypes.Enums;\nusing StreamCompanionTypes.Interfaces;\nusing StreamCompanionTypes.Interfaces.Sources;\n\nnamespace PlaysReplacements...
c#
chosen
[ { "from": "system", "value": "Advance version number scheme to include pressure regulator gadget.\n" }, { "from": "human", "value": "using System;\n\nnamespace it.unifi.dsi.stlab.networkreasoner.gas.system.terranova\n{\n\tpublic class VersioningInfo\n\t{\n\t\tpublic String VersionNumber { \n\t\t...
c#
chosen
[ { "from": "system", "value": "Replace Single with SingleOrDefault for Url Reposiory\n\nOtherwise, an error is thrown and we can't return an empty response.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing UrlShortenerApi.Data;\nusing...
c#
chosen
[ { "from": "system", "value": "Add validation implementation in recommendations module.\n" }, { "from": "human", "value": "namespace TraktApiSharp.Modules\n{\n using Objects.Basic;\n using Objects.Get.Recommendations;\n using Requests;\n using Requests.WithOAuth.Recommendations;\n ...
c#
chosen
[ { "from": "system", "value": "task-runner: Rework regex to allow whitespace\n\nSome projects may enforce special coding style guidelines on their\nprojects. To be more flexible in this area the new regex will now allow\nwhitespace before and in between the brackets. Following some examples of\nallowed task ...
c#
chosen
[ { "from": "system", "value": "Update app version to 3.1.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: AssemblyConf...
c#
chosen
[ { "from": "system", "value": "Update to hello support snippet\n" }, { "from": "human", "value": "// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nusing Amazon.AWSSupport;\nusing Microsoft.Extensions.DependencyInjection;\nusing Mic...
c#
chosen
[ { "from": "system", "value": "Add await to console.Log calls.\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\n\nusing WebSharpJs.NodeJS;\n\n//namespace <%- wsClassName %>\n//{\n public class Startup\n {\n\n static WebSharpJs.NodeJS.Console console;\...
c#
chosen
[ { "from": "system", "value": "Add BGP header to all BGP message types\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing System.Net;\nusing BmpListener.Bgp;\n\nnamespace BmpListener.Bmp\n{\n public class PeerUpNotification : BmpMessage\n {\n public PeerUpNo...
c#
chosen
[ { "from": "system", "value": "Remove extra braces at the end of the file\n\nSigned-off-by: John_Shahid <7c84c4d4148af24079897a92115d562877358578@pivotal.io>\n" }, { "from": "human", "value": "using System;\nusing System.Net.Http;\nusing System.Net.NetworkInformation;\nusing System.Net.Sockets;\...
c#
chosen
[ { "from": "system", "value": "Use same null default value when JS is disabled\n" }, { "from": "human", "value": "using System;\nusing System.Web.Mvc;\n\nnamespace AspNetBrowserLocale.Core\n{\n public static class HtmlHelpers\n {\n public static MvcHtmlString InitializeLocaleDateTim...
c#
chosen
[ { "from": "system", "value": "Remove unnecessary \"@\" prefix from method argument variable name.\n" }, { "from": "human", "value": "namespace Bakery.Text\r\n{\r\n\tusing System;\r\n\r\n\tpublic static class StringRemoveExtensions\r\n\t{\r\n\t\tpublic static String Remove(this String @string, S...
c#
chosen
[ { "from": "system", "value": "Change Demo Trading intervall -> performance\n" }, { "from": "human", "value": "using Main;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace DemoTrader\n{\n public class StdTrad...
c#
chosen
[ { "from": "system", "value": "Disable authentication with empty access key\n\nThe access key should be checked whether or not it is null or empty.\nSince the room's access key cannot be just whitespace or empty, it's\nbetter to tell the user the specific issue.\n" }, { "from": "human", "value": ...
c#
chosen
[ { "from": "system", "value": "Add another RunProject function with args to script.\n" }, { "from": "human", "value": "using System;\nusing System.IO;\n\nnamespace SikuliSharp\n{\n\tpublic static class Sikuli\n\t{\n\t\tpublic static ISikuliSession CreateSession()\n\t\t{\n\t\t\treturn new SikuliS...
c#
chosen
[ { "from": "system", "value": "Revert \"measure time of GetSharedSecret\"\n\nThis reverts commit bce0a10acb752b5a40b0422f008d3b459ea5fbc0.\n" }, { "from": "human", "value": "using NUnit.Framework;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Text;\n\nnamespace Elli...
c#
chosen
[ { "from": "system", "value": "Update variable names to reflect class name changes\n" }, { "from": "human", "value": "/*\r\n * John Hall <john.hall@xjtag.com>\r\n * Copyright (c) Midas Yellow Ltd. All rights reserved.\r\n */\r\n\r\nusing System;\r\nusing System.Collections.Generic;\r\nusing Syst...
c#
chosen
[ { "from": "system", "value": "Fix for missing author info\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Data.SqlClient;\nusing System.Linq;\nusing System.Net;\n\nusing RestSharp;\nusing Dapper;\nusing DapperExtensions;\n\nusing WPMGMT.BESScrap...
c#
chosen
[ { "from": "system", "value": "Check Environment.UserInteractive instead of argument" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing System.ServiceProcess;\n\nnamespace PolymeliaDeployAgent\n{\n using PolymeliaDeploy;\n using PolymeliaDeploy.Controller;\n\n sta...
c#
chosen
[ { "from": "system", "value": "Clean up fluent node builder to not leak implementation details\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace SassSharp.Ast\n{\n public clas...
c#
chosen
[ { "from": "system", "value": "Remove work-in progress enum, not presently required.\n" }, { "from": "human", "value": "#if DESKTOP\nusing System;\nusing System.Collections.ObjectModel;\n\nnamespace Eto.Forms\n{\n\tpublic interface IMenuItem : IMenu\n\t{\n\t}\n\n\tpublic enum MenuItemType\n\t{\n\...
c#
chosen
[ { "from": "system", "value": "Fix use of `ThreadsResponse` (type changed for threads container)\n" }, { "from": "human", "value": "//\n// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n//\n\nu...
c#
chosen
[ { "from": "system", "value": "Revert \"Revert \"Revert \"added try catch, test commit\"\"\"\n\nThis reverts commit 9ba17068fe9978121210a2652deadf655e58e28d.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.W...
c#
chosen
[ { "from": "system", "value": "Add NUL to invalid characters\n\nJust to be safe.\n" }, { "from": "human", "value": "using System;\n\nnamespace Villermen.RuneScapeCacheTools.Extensions\n{\n public static class PathExtensions\n {\n public static char[] InvalidCharacters = { '/', ':', ...
c#
chosen
[ { "from": "system", "value": "Update default project to start an engine and tick a few times.\n" }, { "from": "human", "value": "using System;\nusing Ninject;\nusing Ninject.Extensions.Logging;\nusing Ninject.Extensions.Logging.NLog4;\nusing OpenAOE.Engine;\n\nnamespace OpenAOE\n{\n class Pr...
c#
chosen
[ { "from": "system", "value": "Check if column exist in table\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing OpenQA.Selenium;\nusing OpenQA.Selenium.Remote;\n\nnamespace Tellurium.MvcPages.WebPages\n{\n public class WebTableRow : WebElementCollection...
c#
chosen
[ { "from": "system", "value": "Add Windows auth to service, and authorize to the SpiderCrab Operators group\n" }, { "from": "human", "value": "namespace SpiderCrab.Agent\r\n{\r\n using Ninject;\r\n using Ninject.Web.Common.OwinHost;\r\n using Ninject.Web.WebApi.OwinHost;\r\n using Ow...
c#
chosen
[ { "from": "system", "value": "Handle download exceptions when attempting to fetch update\n\n" }, { "from": "human", "value": "using Certify.Locales;\nusing System.Threading.Tasks;\nusing System.Windows;\nusing System.Windows.Input;\n\nnamespace Certify.UI.Utils\n{\n public class UpdateCheckU...
c#
chosen
[ { "from": "system", "value": "Send index.html for any unknown paths\n" }, { "from": "human", "value": "using System;\nusing Microsoft.AspNet.Builder;\nusing Microsoft.AspNet.Mvc;\nusing Microsoft.AspNet.StaticFiles;\nusing Microsoft.Framework.DependencyInjection;\nusing Microsoft.Framework.Loggi...
c#
chosen
[ { "from": "system", "value": "Use 3x3x3.vox as default example\n\nChecked in with monu9.vox as the test case by accident." }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.IO;\r\nusing System.Text;\r\nusing System.Threading.Tasks;\r\nusing Voxel...
c#
chosen
[ { "from": "system", "value": "Fix the expected / actual order to correct the message\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Runtime.InteropServices;\n\nnamespace Dbus\n{\n public class ReceivedMessage : IDisposable\n {\n private readonly Me...
c#
chosen
[ { "from": "system", "value": "Change the deployment structure a bit\n" }, { "from": "human", "value": "\n\nusing System;\n\nusing Tamir.SharpSsh;\n\nnamespace MCloud {\n\n\tpublic class ScriptDeployment : SSHDeployment {\n\n\t\tpublic ScriptDeployment (string local_path) : this (local_path, Stri...
c#
chosen
[ { "from": "system", "value": "Remove NavMeshAgent handling from decision script (not its role)\n" }, { "from": "human", "value": "using UnityEngine;\n\n[CreateAssetMenu (menuName = \"AI/Decisions/TargetReached\")]\npublic class Decision_OnTargetReached : Decision {\n\n\tpublic bool overrideDist...
c#
chosen
[ { "from": "system", "value": "Fix correct count 6 -> 7\n" }, { "from": "human", "value": "using System.Linq;\nusing Thinktecture.IdentityServer.Core.Services.Contrib;\nusing Xunit;\n\nnamespace Unittests\n{\n public class AvailableTranslations\n {\n [Theory]\n [InlineData(\"D...
c#
chosen
[ { "from": "system", "value": "Use richer return type when possible.\n" }, { "from": "human", "value": "using ExRam.Gremlinq.Core.Serialization;\nusing ExRam.Gremlinq.Providers;\nusing LanguageExt;\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\n\nnamespace ExRam.Gremlinq.Core\n{\n publ...
c#
chosen
[ { "from": "system", "value": "Fix MSBuild tests on macOS/Linux\n" }, { "from": "human", "value": "using System.IO;\n\nnamespace TestUtility\n{\n public static class StringExtensions\n {\n /// <summary>\n /// Given a file or directory path, return a path where all directory s...
c#
chosen
[ { "from": "system", "value": "Add tests for SA1024 in tuple expressions\n" }, { "from": "human", "value": "// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.\n// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.\n\nnames...
c#
chosen
[ { "from": "system", "value": "Fix names and spelling in comments\n" }, { "from": "human", "value": "using System.Reflection;\n\n[assembly: AssemblyCompany(\"Kentor\")]\n[assembly: AssemblyCopyright(\"Copyright Kentor and contributors 2015\")]\n\n\n// Kentor.AuthServices uses semantic versioning...
c#
chosen
[ { "from": "system", "value": "Fix AppVeyor message limit by printing a warning for the 501st report message\n" }, { "from": "human", "value": "// Copyright 2019 Maintainers of NUKE.\n// Distributed under the MIT License.\n// https://github.com/nuke-build/nuke/blob/master/LICENSE\n\nusing System;...
c#
chosen
[ { "from": "system", "value": "Switch to using NSWindow instead of presenter" }, { "from": "human", "value": "using MonoMac.Foundation;\nusing MonoMac.AppKit;\nusing Cirrious.CrossCore;\nusing Cirrious.MvvmCross.Mac.Platform;\nusing Cirrious.MvvmCross.Mac.Views.Presenters;\nusing Cirrious.MvvmCro...
c#
chosen
[ { "from": "system", "value": "Check when internet connection is disabled\n" }, { "from": "human", "value": "namespace VkApiGenerator.Console\n{\n class Program\n {\n static void Main(string[] args)\n {\n var methods = new[]\n {\n \"notes....
c#
chosen
[ { "from": "system", "value": "Add coroutine usage in AEX\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\nusing ActionEngine;\n\npublic static class VeryAwesomeAEX {\n\t\n\tpublic static ActionBase Create (IAEScriptContext ctx) {\n\t\tvar simpleAEX = ctx.GetAESc...
c#
chosen
[ { "from": "system", "value": "Add ability to return token from rule\n" }, { "from": "human", "value": "namespace slang.Lexing.Rules.Core\n{\n public abstract class Rule\n {\n public static Rule operator | (Rule left, Rule right)\n {\n return new Or (left, right);\...
c#
chosen
[ { "from": "system", "value": "Add MVC and middleware to listening only for 'api' requests\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Microsoft.AspNetCore.Builder;\nusing Microsoft.AspNetCore.Hosti...
c#
chosen
[ { "from": "system", "value": "Mark the playback states with integer values\n" }, { "from": "human", "value": "namespace Espera.Network\n{\n public enum NetworkPlaybackState\n {\n None,\n Playing,\n Paused,\n Stopped,\n Finished\n }\n}" }, { "f...
c#
chosen
[ { "from": "system", "value": "Check the use of default(T) instead exception.\n\nSVN: 488784591515bd4cdaa016be4ec9b172dc4e7caf@3062\n" }, { "from": "human", "value": "using NUnit.Framework;\r\n\r\nusing System;\r\nusing System.Collections.Generic;\r\n\r\nnamespace NHibernate.Test.NHSpecificTest.N...
c#
chosen
[ { "from": "system", "value": "Set the detail instead of the title\n" }, { "from": "human", "value": "using Microsoft.AspNetCore.Mvc;\nusing Microsoft.AspNetCore.Mvc.Filters;\nusing static Hellang.Middleware.ProblemDetails.ProblemDetailsOptionsSetup;\nusing MvcProblemDetails = Microsoft.AspNetCor...
c#
chosen
[ { "from": "system", "value": "Fix iOS visual tests not using raw keyboard handler\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...
c#
chosen
[ { "from": "system", "value": "Fix missing logger by moving the expanded detail to the exception\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\npublic class ConfigFileFinder\n{\n public static List<string> FindWeaverConfigs(string soluti...
c#
chosen
[ { "from": "system", "value": "Change LinterVersion output to json format\n" }, { "from": "human", "value": "namespace Linterhub.Cli.Strategy\n{\n using Runtime;\n using Engine;\n using Linterhub.Engine.Exceptions;\n\n public class LinterVersionStrategy : IStrategy\n {\n pub...
c#
chosen
[ { "from": "system", "value": "Split WCF functionality out of Autofac.Extras.Multitenant into a separate\nassembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned\n3.1.0.\n" }, { "from": "human", "value": "//-------------------------------------------------------------------...
c#
chosen
[ { "from": "system", "value": "Add back test cleanup before run\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 System;\r\nusing osu.Framewor...
c#
chosen
[ { "from": "system", "value": "Fix sidereal calculations for sun\n" }, { "from": "human", "value": "using System;\n\nnamespace LunaClient.Extensions\n{\n public static class CelestialBodyExtension\n {\n public static double SiderealDayLength(this CelestialBody body)\n {\n ...
c#
chosen
[ { "from": "system", "value": "Use Smtp PickUp delivery for stubbing saving of emails locally\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Net.Mail;\nusing System.Text;\nusing System.Web;\nusing VORBS.Util...
c#
chosen
[ { "from": "system", "value": "Add Google Plus +1 to AddThis defaults\n" }, { "from": "human", "value": "@using CkanDotNet.Web.Models.Helpers\n<!-- AddThis Button BEGIN -->\n<div class=\"share-buttons\">\n <div class=\"addthis_toolbox addthis_default_style \">\n <a class=\"addthis_button_p...
c#
chosen
[ { "from": "system", "value": "Implement proper disposable pattern to satisfy sonarcloud's compaint of a code smell :/\n" }, { "from": "human", "value": "/* © 2019 Ivan Pointer\nMIT License: https://github.com/ivanpointer/NuLog/blob/master/LICENSE\nSource on GitHub: https://github.com/ivanpointe...
c#
chosen
[ { "from": "system", "value": "Remove usage of legacy code\n" }, { "from": "human", "value": "#region Usings\n\nusing System;\nusing System.Collections.Generic;\nusing System.Windows.Input;\nusing ReactiveUI.Legacy;\nusing UI.WPF.Launcher.Common.Classes;\n\n#endregion\n\nnamespace UI.WPF.Modules...
c#
chosen
[ { "from": "system", "value": "Use file name as the name of a Cursor Set\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing Alensia.Core.Common;\nusing UnityEngine;\n\nnamespace Alensia.Core.UI.Cursor\n{\n public class CursorSet : ScriptableObject, ...
c#
chosen
[ { "from": "system", "value": "Fix new lines in console\n" }, { "from": "human", "value": "using System;\nusing System.Drawing;\nusing System.IO;\nusing System.Text;\nusing System.Windows.Forms;\n\nnamespace GUI.Utils\n{\n internal class ConsoleTab\n {\n internal class MyLogger : Tex...
c#
chosen
[ { "from": "system", "value": "Modify DialogsPage to allow testing of startup location.\n" }, { "from": "human", "value": "using Avalonia.Controls;\nusing Avalonia.Markup.Xaml;\n#pragma warning disable 4014\n\nnamespace ControlCatalog.Pages\n{\n public class DialogsPage : UserControl\n {\n ...
c#
chosen
[ { "from": "system", "value": "Add copyright to one more .cs source file.\n\nChange-Id: I5e5e9b80ae3a14cdb64ebc368a880a4f09bdd453\n" }, { "from": "human", "value": "namespace ShoutLib\r\n{\r\n internal class Constants\r\n {\r\n public const string ProjectId = \"YOUR-PROJECT-ID\";\r\n...
c#
chosen
[ { "from": "system", "value": "Use localised string for guest participation beatmaps 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.Framew...
c#
chosen
[ { "from": "system", "value": "Add a timer and log to sms sending\n" }, { "from": "human", "value": "using CertiPay.Common.Logging;\nusing System;\nusing System.Threading.Tasks;\nusing Twilio;\n\nnamespace CertiPay.Common.Notifications\n{\n /// <summary>\n /// Send an SMS message to the gi...
c#
chosen
[ { "from": "system", "value": "Fix support for input and fix some bugs\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace IPOCS_Programmer.ObjectTypes\n{\n public class Generic...
c#
chosen
[ { "from": "system", "value": "Comment out the sample tests\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nusing Xunit;\nusing System.IO;\n\nnamespace ParkingSpace.Facts.Sample {\n pub...
c#
chosen
[ { "from": "system", "value": "Save all the lines of code!\n" }, { "from": "human", "value": "using ReactiveMarrow;\nusing System;\nusing System.Reactive.Disposables;\nusing System.Reactive.Linq;\n\nnamespace Espera.Core\n{\n internal static class ReactiveHelpers\n {\n /// <summary>...
c#
chosen
[ { "from": "system", "value": "Add license to new unit test class file\n" }, { "from": "human", "value": "using Microsoft.VisualStudio.TestTools.UnitTesting;\n\nnamespace UnitTestUsefullFunctions\n{\n [TestClass]\n public class UnitTest1\n {\n [TestMethod]\n public void TestMethod1()\n ...
c#
chosen
[ { "from": "system", "value": "Change return type from bool to void.\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Linq;\nusing Mitternacht.Common.Collections;\nusing Newtonsoft.Json;\nusing NLog;\n\nnamespace Mitternacht.Resources\n{\n public class CommandS...
c#
chosen
[ { "from": "system", "value": "Set property item as localizable only if Localizable attribute value is true" }, { "from": "human", "value": "using Serenity.ComponentModel;\r\nusing Serenity.Data;\r\nusing System;\r\nusing System.ComponentModel;\r\nusing System.Reflection;\r\n\r\nnamespace Sereni...
c#
chosen
[ { "from": "system", "value": "Improve persistent session client test\n" }, { "from": "human", "value": "using Microsoft.VisualStudio.TestTools.UnitTesting;\nusing RohlikAPI;\n\nnamespace RohlikAPITests\n{\n [TestClass]\n public class PersistentSessionHttpClientTests\n {\n [TestM...
c#
chosen
[ { "from": "system", "value": "Check parameters and add friendly exceptions.\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\n\nnamespace MQTTnet.Extensions\n{\n public static class UserPropertyExtension\n {\n public static string GetUserProperty(this MqttApplica...
c#
chosen
[ { "from": "system", "value": "Fix new unit test to fail if it does not throw properly\n" }, { "from": "human", "value": "// ----------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// ----------------------------...
c#
chosen
[ { "from": "system", "value": "Fix fault in context menu\r\n\r\ngit-tfs-id: [https://mikeward.visualstudio.com/DefaultCollection]$/tweetz5;C447\r\n" }, { "from": "human", "value": "// Copyright (c) 2013 Blue Onion Software - All rights reserved\r\n\r\nusing System.Windows.Documents;\r\nusing Sys...
c#
chosen
[ { "from": "system", "value": "Add the col class. (It move the button to the right a little)\n" }, { "from": "human", "value": "@using AnlabMvc.Controllers\n@model AnlabMvc.Controllers.AdminAnalysisController.AnalysisDeleteModel\n\n@{\n ViewBag.Title = \"Delete Analysis Method\"; \n}\n\n<di...
c#
chosen
[ { "from": "system", "value": "Remove errant comment on calc type\n\n[skip ci]\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.ComponentModel.DataAnnotations;\n\nnamespace CertiPay.Payroll.Common\n{\n /// <summary>\n /// Identifies the method to calculate...
c#
chosen
[ { "from": "system", "value": "Format available channels for Limit attribute\n" }, { "from": "human", "value": "using Discord.Commands;\nusing System;\nusing System.Linq;\nusing System.Threading.Tasks;\n\nnamespace Modix.Utilities\n{\n public class LimitToChannelsAttribute : PreconditionAttri...
c#
chosen
[ { "from": "system", "value": "Fix typo that broke the build\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 attr...
c#
chosen
[ { "from": "system", "value": "Hide connect password from logs.\n\n" }, { "from": "human", "value": "namespace MQTTnet.Packets\n{\n public class MqttConnectPacket : MqttBasePacket\n {\n public string ProtocolName { get; set; }\n\n public byte? ProtocolLevel { get; set; }\n\n ...
c#
chosen
[ { "from": "system", "value": "Support for IP address URLs\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\n\nnamespace MultiMiner.Win.Extensions\n{\n static class StringExtensions\n {\n private readonly static Dictionary<string,...
c#
chosen
[ { "from": "system", "value": "Clean commented code and a tiny optimization to return false if the value is null.\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing System.Linq.Expressions;\nusing System.Collections.Generic;\nnamespace ServiceStack.OrmLite\n{\n\tpublic st...
c#
chosen
[ { "from": "system", "value": "Add heardbeat file to server\n" }, { "from": "human", "value": "using Anotar.NLog;\nusing Ninject;\nusing Ninject.Extensions.Factory;\nusing SOVND.Lib;\nusing System;\nusing System.Text;\nusing SOVND.Lib.Handlers;\nusing SOVND.Lib.Models;\nusing SOVND.Server.Settin...
c#
chosen
[ { "from": "system", "value": "Use better formatting for skin display (matching BeatmapMetadata)\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 Syste...
c#
chosen
[ { "from": "system", "value": "Use autofixture for unit tests of the command bus.\n" }, { "from": "human", "value": "using System;\nusing Microsoft.Practices.ServiceLocation;\nusing Moq;\nusing NUnit.Framework;\nusing Uncas.BuildPipeline.Commands;\nusing Uncas.BuildPipeline.Repositories;\nusing ...
c#
chosen
[ { "from": "system", "value": "Add read only props to access RVA and size\n" }, { "from": "human", "value": "using System;\nusing System.IO;\n\nnamespace dot10.PE {\n\t/// <summary>\n\t/// Represents the IMAGE_DATA_DIRECTORY PE section\n\t/// </summary>\n\tpublic class ImageDataDirectory : FileS...
c#
chosen
[ { "from": "system", "value": "Improve the way Booleans are shown if they are not within the maximum allowable limit\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing NeuralNet.Configu...
c#
chosen
[ { "from": "system", "value": "Fix null ref error if bfgminer returns no Status w / the devs API\n" }, { "from": "human", "value": "namespace MultiMiner.Xgminer.Api\n{\n public class DeviceInformation\n {\n public string Kind { get; set; }\n public int Index { get; set; }\n ...
c#
chosen
[ { "from": "system", "value": "Remove overload by using default value\n" }, { "from": "human", "value": "using System.Collections.Generic;\n\nnamespace DiffPlex.DiffBuilder.Model\n{\n public enum ChangeType\n {\n Unchanged,\n Deleted,\n Inserted,\n Imaginary,\n ...
c#
chosen
[ { "from": "system", "value": "Add more detail in documentation comment.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Configuration;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Rock\n{\n /// <summary>...
c#
chosen
[ { "from": "system", "value": "Check if we're in debug and set IncludeErrorPolicy accordingly\n" }, { "from": "human", "value": "using System.Web.Http;\nusing System.Web.Http.Controllers;\nusing System.Web.Http.Filters;\n\nnamespace Umbraco.Web.WebApi\n{\n /// <summary>\n /// Ensures contr...
c#
chosen
[ { "from": "system", "value": "Change the HttpUtility.UrlEncode to Uri.EscapeDataString method.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Collections.Specialized;\nusing System.Linq;\n\nnamespace Exceptionless.Core.Extensions {\n public ...
c#
chosen
[ { "from": "system", "value": "Fix issue with API header binding when running under a subdirectory" }, { "from": "human", "value": "using System;\nusing System.Web.Mvc;\n\nnamespace NuGetGallery\n{\n public class HttpHeaderValueProviderFactory : ValueProviderFactory\n {\n public ove...
c#
chosen
[ { "from": "system", "value": "Make necrophage require Look faculty\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\nusing System.Collections.Generic;\n\npublic class NecrophageBehavior : AgentBehavior\n{\n\t// \"pursue\" nearest corpse\n\tpublic override bool up...
c#
chosen
[ { "from": "system", "value": "Return after printing wasm-dump usage\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing Wasm.Binary;\n\nnamespace Wasm.Dump\n{\n public static class Program\n {\n public static void Main(string[] args)\n {\n if...
c#
chosen
[ { "from": "system", "value": "Add check for microgames when forced in Practice\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class MicrogameStage : Stage\n{\n\tpublic static string microgameId;\n\n\t[SerializeField]...
c#
chosen
[ { "from": "system", "value": "Remove Serializable attribute to achieve parity with the VB code.\n\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace Csla.Core\n{\n /// <summary>\n /// Contains event data for the RemovingItem\n ...
c#
chosen
[ { "from": "system", "value": "Refactor the Venue level cost centre to inherit from the Account level cost centre to allow sharing of data structures.\n" }, { "from": "human", "value": "using Newtonsoft.Json;\n\nnamespace Ivvy.API.Venue\n{\n public class CostCenter\n {\n public enum ...
c#
chosen
[ { "from": "system", "value": "Add Maximum/Average aggregate functions for amplitudes\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-framework/master/LICENCE\r\n\r\nname...
c#
chosen
[ { "from": "system", "value": "Add source documentation for configuration class.\n" }, { "from": "human", "value": "namespace TraktApiSharp.Core\n{\n using System.Net.Http;\n\n public class TraktConfiguration\n {\n internal TraktConfiguration()\n {\n ApiVersion ...
c#
chosen
[ { "from": "system", "value": "Add info to addin description about uninstalling old addin\n\nWhen the new version of the addin is installed without the old\nversion being uninstalled an error about the test provider class being\nmissing is reported. The addin will then not properly load.\nUninstalling the ol...
c#
chosen