conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix typo for LateUpdate calls\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\nusing UnityEngine;\n\nnamespace IllusionInjector\n{\n class PluginComponent : MonoBehaviour\n {\n private CompositePl...
c#
chosen
[ { "from": "system", "value": "Fix issues with specifying manual resolve paths and with-application shipped fluidsynth libraries\n" }, { "from": "human", "value": "using System;\nusing System.Runtime.InteropServices;\n\nnamespace NFluidsynth.Native\n{\n internal static partial class LibFluids...
c#
chosen
[ { "from": "system", "value": "Add commented out example to start second form\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 the LICENSE file.\n\nusing ...
c#
chosen
[ { "from": "system", "value": "Use OWL CDN for google analytics\n" }, { "from": "human", "value": "<script>\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName...
c#
chosen
[ { "from": "system", "value": "Fix benchmarks not running due to unoptimised nunit\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 BenchmarkDotNet.Runn...
c#
chosen
[ { "from": "system", "value": "Add cancel/handle for value changed eventargs\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace SadConsole\n{\n /// <summary>\n /// The old value and the value it changed to.\n /// </summar...
c#
chosen
[ { "from": "system", "value": "Remove old testing code in instance controller\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing KenticoInspector.Core.Models;\nusing KenticoInspector.Core.Services;\nusing ...
c#
chosen
[ { "from": "system", "value": "Remove the usage of Parallel to run the populators\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Examine;\n\nnamespace Umbraco.Examine\n{ \n\n /// <summary>\n //...
c#
chosen
[ { "from": "system", "value": "Add VS2017 and VS2019 as known versions\n" }, { "from": "human", "value": "\nnamespace Xunit\n{\n /// <summary>\n /// Suggested values for the Visual Studio Version to run tests against.\n /// </summary>\n public static class VisualStudioVersion\n {\...
c#
chosen
[ { "from": "system", "value": "Rewrite message serialization to fix PlaySound missing flag\n" }, { "from": "human", "value": "using Antagonists;\nusing UnityEngine;\n\nnamespace Messages.Server.LocalGuiMessages\n{\n\tpublic class AntagBannerMessage: ServerMessage\n\t{\n\t\tpublic string AntagNam...
c#
chosen
[ { "from": "system", "value": "Remove Contact Page from Menu Seed\n" }, { "from": "human", "value": "using Portal.CMS.Entities.Entities;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace Portal.CMS.Entities.Seed\n{\n public static class MenuSeed\n {\n public static...
c#
chosen
[ { "from": "system", "value": "Test if ExportCodeFixProviderAttribute is applied correctly - adjusted/corrected\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing Microsoft.CodeAnalysis;\nusing Microsoft.CodeAnalysis.CodeFixes;\nusing M...
c#
chosen
[ { "from": "system", "value": "Implement the simplest possible 'Hello World' DAE\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing System.Windows.Forms;\n\nnamespace EventLogDataSource\n{\n static clas...
c#
chosen
[ { "from": "system", "value": "Revert \"Revert \"AI detects when player is close\"\"\n\nThis reverts commit 2613d21e307d05d3109e790b0512d60ceddf7055.\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\n\npublic class Movement : MonoBehaviour {\n\n\tpublic float spee...
c#
chosen
[ { "from": "system", "value": "Add VNDB as possible search site\n" }, { "from": "human", "value": "using System;\nusing IvionWebSoft;\n\n\npublic class Site\n{\n public readonly Uri SiteUrl;\n public readonly int DisplayMax;\n\n public string GoogleSiteDeclaration\n {\n get { ...
c#
chosen
[ { "from": "system", "value": "Add local popover container to editor screens\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;\...
c#
chosen
[ { "from": "system", "value": "Add test data to mock view-model\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace ExpressRunner.DesignerMocks\n{\n public class TestExplorerVie...
c#
chosen
[ { "from": "system", "value": "Order the throughput data by newest to oldest.\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing CommandLine;\nusing VstsMetrics.Abstractions;\nusing VstsMetrics.Extensions;\nusing VstsMetrics.Renderers;\n\nna...
c#
chosen
[ { "from": "system", "value": "Add author to assembly copyright field\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// se...
c#
chosen
[ { "from": "system", "value": "Set the same delivery time for Reprints Desk as for Subito\n" }, { "from": "human", "value": "using Chalmers.ILL.Models;\nusing Examine;\nusing Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing Chalmers...
c#
chosen
[ { "from": "system", "value": "Tidy up class xmldoc and naming\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.T...
c#
chosen
[ { "from": "system", "value": "Improve error messages for invalid Guids in ItemData\n\nInvalid GUID did not say which field has error. Now paramater name is\nspecified.\n" }, { "from": "human", "value": "using System;\nusing Sitecore.Data;\n\nnamespace AutoSitecore\n{\n [AttributeUsage(Attribut...
c#
chosen
[ { "from": "system", "value": "Reorder lines within Advance to no longer interleve two distinct operations in play: advancing the input span by `length` items, and then analyzing the items advanced over to update the Position. This is a step towards extracting a method for each of the two distinct operations...
c#
chosen
[ { "from": "system", "value": "Remove PasswordMode and PasswordChar from interface definition\n" }, { "from": "human", "value": "namespace Internal.ReadLine.Abstractions\n{\n internal interface IConsole\n {\n int CursorLeft { get; }\n int CursorTop { get; }\n int Buffer...
c#
chosen
[ { "from": "system", "value": "Add CompetitionPlatformUser to Identity models.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\n\nnamespace CompetitionPlatform.Models\n{\n public class AuthenticateModel\n ...
c#
chosen
[ { "from": "system", "value": "Add PATCH to http verbs enumeration\n" }, { "from": "human", "value": "// IPAddressType.cs\n// Script#/Libraries/Node/Core\n// This source code is subject to terms and conditions of the Apache License, Version 2.0.\n//\n\nusing System;\nusing System.Runtime.Compiler...
c#
chosen
[ { "from": "system", "value": "Add new test for NotNull with provided message.\n" }, { "from": "human", "value": "using System;\nusing NUnit.Framework;\n\nusing DevTyr.Gullap;\n\nnamespace DevTyr.Gullap.Tests.With_Guard.For_NotNull\n{\n\t[TestFixture]\n\tpublic class When_argument_is_null\n\t{\n\...
c#
chosen
[ { "from": "system", "value": "Add test for invalid range\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing System.Linq;\nusing Xunit;\n\nnamespace CSharp.Functional.Tests\n{\n public class RangeTests\n {\n [Theory]\n [Inli...
c#
chosen
[ { "from": "system", "value": "Fix dash being minus sign in PTS Formatter\n" }, { "from": "human", "value": "using System;\n\nnamespace LiveSplit.TimeFormatters\n{\n public class PossibleTimeSaveFormatter : ITimeFormatter\n {\n public TimeAccuracy Accuracy { get; set; }\n\n p...
c#
chosen
[ { "from": "system", "value": "Simplify login docs region & only show action\n" }, { "from": "human", "value": "// Copyright(c) 2016 Google Inc.\r\n//\r\n// Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\r\n// use this file except in compliance with the License. Yo...
c#
chosen
[ { "from": "system", "value": "Use type inference in type definition\n" }, { "from": "human", "value": "using MyDocs.Common.Contract.Service;\r\nusing MyDocs.Common.Contract.Storage;\r\nusing MyDocs.Common.Model;\r\nusing MyDocs.WindowsStore.Storage;\r\nusing System;\r\nusing System.Threading.Ta...
c#
chosen
[ { "from": "system", "value": "Refactor test to use AutoCommandData\n" }, { "from": "human", "value": "using AppHarbor.Commands;\nusing Moq;\nusing Ploeh.AutoFixture;\nusing Ploeh.AutoFixture.AutoMoq;\nusing Xunit;\n\nnamespace AppHarbor.Tests.Commands\n{\n\tpublic class CreateCommandTest\n\t{\n...
c#
chosen
[ { "from": "system", "value": "Change DestinationFilenamePrefix to be a required field\n" }, { "from": "human", "value": "using System.ComponentModel.DataAnnotations;\nusing API.WindowsService.Validators;\nusing Contract;\nusing FluentValidation.Attributes;\n\nnamespace API.WindowsService.Models...
c#
chosen
[ { "from": "system", "value": "Add keyword \"delay\" to hold-to-confirm activation time setting\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.Fr...
c#
chosen
[ { "from": "system", "value": "Refactor to build on Visual Studio 2013\n" }, { "from": "human", "value": "using System;\nusing System.Windows.Input;\n\nnamespace OutlookMatters.Settings\n{\n public class SaveCommand : ICommand\n {\n private readonly ISettingsSaveService _saveService...
c#
chosen
[ { "from": "system", "value": "Fix exception when including this in a project without TriggerAction\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\n\npublic abstract class ConsoleAction : ActionBase {\n public abstract void Activate();\n}\n" }, { "from":...
c#
chosen
[ { "from": "system", "value": "Add a builder for the base environ, so it's easier to work with\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\n\r\n\r\nnamespace NValidate\r\n{\r\n public class BaseEnviron : Environ\r\n {\r\n readonly Dictionar...
c#
chosen
[ { "from": "system", "value": "Fix problem with parsing server url.\n\nWhen passed urlString starts with ‘nats’ (like ‘nats.domain.com’) the protocol supplement will be skipped and connection will fail.\n" }, { "from": "human", "value": "// Copyright 2015 Apcera Inc. All rights reserved.\r\n\r\n...
c#
chosen
[ { "from": "system", "value": "Increase precision of 'g', as requested.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace EddiDataDefinitions\n{\n /// <summary>\n /// A sta...
c#
chosen
[ { "from": "system", "value": "Update Step 3 - Remove integration test category.\n" }, { "from": "human", "value": "using NSubstitute;\nusing NUnit.Framework;\n\nnamespace DependencyKata.Tests\n{\n [TestFixture]\n public class DoItAllTests\n {\n [Test, Category(\"Integration\")]\...
c#
chosen
[ { "from": "system", "value": "MeidoBot: Extend TriggerHelp for querying help\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing MeidoCommon;\n\n\nnamespace MeidoBot\n{\n public static class PluginExtensions\n {\n public static string Name(this IMeidoHook pl...
c#
chosen
[ { "from": "system", "value": "Add user32 function in winutilities\n" }, { "from": "human", "value": "using Sloth.Interfaces.Core;\nusing System;\n\nnamespace Sloth.Core\n{\n public class WinUtilities : IWinUtilities\n {\n public IntPtr FindControlHandle(IntPtr windowsHandle, string...
c#
chosen
[ { "from": "system", "value": "Update for cli start command on Ubuntu\n" }, { "from": "human", "value": "namespace Framework.Cli.Command\n{\n /// <summary>\n /// Cli start command.\n /// </summary>\n public class CommandStart : CommandBase\n {\n public CommandStart(AppCli a...
c#
chosen
[ { "from": "system", "value": "Create project and editor explicitly\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 System;\nusing System.Collect...
c#
chosen
[ { "from": "system", "value": "Change messages attribute to type \"object\"\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing Newtonsoft.Json;\n\nnamespace Shippo\n{\n [JsonObject (MemberSerialization.OptIn)]\n public class BatchShipment : ShippoId\...
c#
chosen
[ { "from": "system", "value": "Adjust timing ratio to prevent occasional failing\n" }, { "from": "human", "value": "using System;\nusing System.Threading;\nusing System.Windows.Threading;\nusing Throttle;\nusing Xunit;\nusing TomsToolbox.Desktop;\n\npublic class ThrottleSample\n{\n int thrott...
c#
chosen
[ { "from": "system", "value": "Remove random SoftPwm test code\n" }, { "from": "human", "value": "using System;\nusing Treehopper;\nusing System.Threading.Tasks;\n\nusing System.Diagnostics;\nusing System.Collections.Generic;\nusing System.Threading;\n\nnamespace Blink\n{\n /// <summary>\n ...
c#
chosen
[ { "from": "system", "value": "Fix Navigation link on acl\n" }, { "from": "human", "value": "@model biz.dfch.CS.Appclusive.UI.Models.Core.Acl\n@using biz.dfch.CS.Appclusive.UI.App_LocalResources\n\n@if (Model != null && !string.IsNullOrEmpty(Model.Name))\n{\n if (biz.dfch.CS.Appclusive.UI.Nav...
c#
chosen
[ { "from": "system", "value": "Remove drop menus from main menu\n" }, { "from": "human", "value": "<header class=\"main-header\">\n <div class=\"row\">\n <div class=\"column\">\n <ul class=\"menu\">\n <li class=\"mobile-expand\" id=\"mobile-expand\">\n ...
c#
chosen
[ { "from": "system", "value": "Make sure playerComp is in the node lookup list\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing Hacknet;\nusing HarmonyLib;\nusing Pathfinder.Event;\nusing Pathfinder.Event.Loading;\nusing Pathfinder.Util;\n\nnamespace Pathfinder.BaseGam...
c#
chosen
[ { "from": "system", "value": "Add GetEndpointData manual test to ConsoleAppTester\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\n\nnamespace SSLLWrapper.ConsoleAppTester\n{\n\tclass Program\n\t{\n\t\tprivate const string apiUrl = \"https://api.dev.ssllabs.com/api/fa78d5a4...
c#
chosen
[ { "from": "system", "value": "DbgILGen: Use element type name for variable names\n" }, { "from": "human", "value": "using Mono.Cecil;\nusing Mono.Cecil.Cil;\nusing System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.IO;\nusing System.Linq;\nusing System.Text;\nus...
c#
chosen
[ { "from": "system", "value": "Fix GetStocks by reading the response in the proper format.\n" }, { "from": "human", "value": "using System.Threading.Tasks;\nusing Stockfighter.Helpers;\n\nnamespace Stockfighter\n{\n public class Venue\n {\n public string Symbol { get; private set; }...
c#
chosen
[ { "from": "system", "value": "Fix compiler error introduced by merge conflict\n" }, { "from": "human", "value": "// Copyright (c) .NET Foundation. All rights reserved.\n// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nusing System...
c#
chosen
[ { "from": "system", "value": "Fix issue with tests where settings were not being injected into test class and causing a null error at runtime. Now uses parent settings class.\nAlso changed one expected test return type to reflect change in Google data.\n" }, { "from": "human", "value": "using S...
c#
chosen
[ { "from": "system", "value": "Use FormatMessageHandler instead of eagerly formatting.\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\nusing System.Web;\nusing System.Web.UI;\nusing Common.Logging;\n\nnamespace NuGet.Lucene.Web\n{\n public static class Unhandl...
c#
chosen
[ { "from": "system", "value": "Update message converter to access context\n" }, { "from": "human", "value": "using Newtonsoft.Json;\nusing System;\nusing System.Globalization;\nusing System.IO;\nusing System.Text;\n\nnamespace Glimpse\n{\n public class DefaultMessageConverter : IMessageConver...
c#
chosen
[ { "from": "system", "value": "Add ToString override to Process File\n\nReturns path and argument\n" }, { "from": "human", "value": "using System.ComponentModel;\nusing System.Diagnostics;\nusing Xceed.Wpf.Toolkit.PropertyGrid.Attributes;\n\nnamespace DesktopWidgets.Classes\n{\n [ExpandableOb...
c#
chosen
[ { "from": "system", "value": "Add Start Manually option to IMEI prefab\n" }, { "from": "human", "value": "using System;\nusing UnityEngine;\n\nnamespace com.adjust.sdk.imei\n{\n public class AdjustImei : MonoBehaviour\n {\n private const string errorMsgEditor = \"[AdjustImei]: Adjus...
c#
chosen
[ { "from": "system", "value": "Fix Trigger2D wrong method names\n" }, { "from": "human", "value": "using UnityEngine;\n\nnamespace Devdayo\n{\n [DisallowMultipleComponent]\n public class TriggerEnter2D : FsmEvent<Collider2D>\n {\n void OnTrigger2DEnter(Collider2D other)\n ...
c#
chosen
[ { "from": "system", "value": "Change VarAddr to use identifier\n\n" }, { "from": "human", "value": "namespace XSharp.Tokens\r\n{\r\n public class Variable : Identifier\r\n {\r\n public Variable() {\r\n mFirstChars = \".\";\r\n }\r\n\r\n protected override b...
c#
chosen
[ { "from": "system", "value": "Make this interface disposable so taht code analysis should hopefully remind users to call .Dispose on it.\n" }, { "from": "human", "value": "// Copyright © 2010-2015 The CefSharp Authors. All rights reserved.\n//\n// Use of this source code is governed by a BSD-st...
c#
chosen
[ { "from": "system", "value": "Add auth to Learners endpoint\n" }, { "from": "human", "value": "using System;\nusing System.Net;\nusing System.Threading.Tasks;\nusing MediatR;\nusing Microsoft.AspNetCore.Mvc;\nusing Newtonsoft.Json;\nusing SFA.DAS.CommitmentsV2.Api.Types.Responses;\nusing SFA.DA...
c#
chosen
[ { "from": "system", "value": "Check for AD credentials, check if local account\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Andromeda\n{\n public static class Credential...
c#
chosen
[ { "from": "system", "value": "Replace the BELL character before writing to the console.\n" }, { "from": "human", "value": "namespace ForwarderConsole\n{\n using System;\n using System.Text;\n\n public static class Print\n {\n public static void Error(string error)\n {\...
c#
chosen
[ { "from": "system", "value": "Add Bigsby Trovalds was here\n" }, { "from": "human", "value": "using System;\n\nnamespace ConsoleApplication\n{\n public class Program\n {\n public static void Main(string[] args)\n {\n Console.WriteLine(\"Hello World, I was created ...
c#
chosen
[ { "from": "system", "value": "Use the AppData instead of the CommonAppData folder to save the profile and settings, to avoid the UAC.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Net.Mime;\nusing System.T...
c#
chosen
[ { "from": "system", "value": "Clean up old BoundObject code\n" }, { "from": "human", "value": "using CefSharp.Wpf;\nusing System.Windows.Controls;\n\nnamespace Cactbot\n{\n public partial class BrowserControl : UserControl\n {\n public BrowserControl()\n {\n DataC...
c#
chosen
[ { "from": "system", "value": "Use Id instead of fixed value\n" }, { "from": "human", "value": "using System;\nnamespace Business.Core\n{\n\tpublic partial class Individual\n\t{\n\t\tpublic IDatabase Database { get; private set; }\n\n\t\tpublic Individual(IDatabase database, UInt64? id = null) {...
c#
chosen
[ { "from": "system", "value": "Fix ctor to take arbitrary object type as model.\n" }, { "from": "human", "value": "// ViewUserControl.cs\n// Copyright (c) Nikhil Kothari, 2008. All Rights Reserved.\n// http://www.nikhilk.net\n//\n// Silverlight.FX is an application framework for building RIAs wi...
c#
chosen
[ { "from": "system", "value": "Remove duplicate addresses before converting to dictionary\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing System.Net;\nusing System.Net.Sockets;\n\nnamespace Nowin\n{\n public class IpIsLocalChecker : IIpIsLocalChe...
c#
chosen
[ { "from": "system", "value": "Change default attributeStyle to lower for search\n" }, { "from": "human", "value": "using System;\nusing System.Net.Http;\nusing System.Web.Http.Controllers;\nusing System.Web.Http.ModelBinding;\nusing WebAPI.Domain.InputOptions;\n\nnamespace WebAPI.API.ModelBindi...
c#
chosen
[ { "from": "system", "value": "Fix incorrect file path in benchmarks\n" }, { "from": "human", "value": "using System.IO;\nusing BenchmarkDotNet.Attributes;\nusing FreeImageAPI;\nusing ImageMagick;\nusing DS = DevILSharp;\n\nnamespace Pfim.Benchmarks\n{\n public class TargaBenchmark\n {\n ...
c#
chosen
[ { "from": "system", "value": "Use <Title in about page.\n" }, { "from": "human", "value": "@page \"/about\"\n@inject Navigator Navigator\n\n<h1>Money</h1>\n<h4>Neptuo</h4>\n<p class=\"gray\">\n v@(typeof(About).Assembly.GetName().Version.ToString(3))\n</p>\n<p>\n <a target=\"_blank\" href...
c#
chosen
[ { "from": "system", "value": "Set port to -1 if port is 80\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\nusing Microsoft.AspNet.SignalR.Owin;\n\nnamespace JabbR.Middleware\n{ \n using AppFunc = Func<IDictionary<string, obj...
c#
chosen
[ { "from": "system", "value": "Add GetExtent to viewport extensions\n" }, { "from": "human", "value": "using Mapsui.Utilities;\nusing System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace Mapsui.Extensions\n{\n public static class ViewportExtensions\n {\n /// <...
c#
chosen
[ { "from": "system", "value": "Change guild permissions to have ReadGuildConfig when ViewAuditLog is true.\n" }, { "from": "human", "value": "using Discord;\nusing System;\n\nnamespace MitternachtWeb.Models {\n\t[Flags]\n\tpublic enum BotLevelPermission {\n\t\tNone = 0b_0000,\n\t...
c#
chosen
[ { "from": "system", "value": "Use ParallelEnumerable in puzzle 10\n\nUse ParallelEnumerable.Range() instead of Enumerable.Range() and\nAsParallel().\n" }, { "from": "human", "value": "// Copyright (c) Martin Costello, 2015. All rights reserved.\n// Licensed under the Apache 2.0 license. See the...
c#
chosen
[ { "from": "system", "value": "Remove unused variable compiler warning when building release build.\n" }, { "from": "human", "value": "using CommonUtil.Disk;\r\n\r\nnamespace Common\r\n{\r\n public static class SourceDirectoryFinder\r\n {\r\n private static string crayonSourceDirect...
c#
chosen
[ { "from": "system", "value": "Remove manual DI configuration for node in RPC\n\nDI for RPC now automatically adds full node DI to its DI container.\nThis is done in RPCFeature on startup.\n" }, { "from": "human", "value": "using Microsoft.AspNetCore.Hosting;\nusing Microsoft.Extensions.Dependen...
c#
chosen
[ { "from": "system", "value": "Remove unhelpful line of code.\n" }, { "from": "human", "value": "using System;\nusing Microsoft.AspNet.SignalR;\nusing Microsoft.Owin;\nusing Microsoft.Owin.Cors;\nusing Owin;\n\n[assembly: OwinStartup(typeof(SignInCheckIn.Startup))]\n[assembly: log4net.Config.Xml...
c#
chosen
[ { "from": "system", "value": "Remove test fire schedule for eval due\n" }, { "from": "human", "value": "using FluentScheduler;\nusing Microsoft.AspNetCore.Builder;\nusing Microsoft.Extensions.Logging;\nusing System;\n\nnamespace BatteryCommander.Web.Jobs\n{\n internal static class JobHandler...
c#
chosen
[ { "from": "system", "value": "Update assembly info - copyright date\n" }, { "from": "human", "value": "// --------------------------------------------------------------------------------------------------------------------\n// <copyright file=\"GlobalAssemblyInfo.cs\" company=\"Helix Toolkit\">...
c#
chosen
[ { "from": "system", "value": "Fix Razor tag helpers and usings\n" }, { "from": "human", "value": "@using Dangl.WebDocumentation\n@using Dangl.WebDocumentation.Models\n@using Dangl.WebDocumentation.ViewModels.Account\n@using Dangl.WebDocumentation.ViewModels.Manage\n@using Microsoft.AspNet.Ident...
c#
chosen
[ { "from": "system", "value": "Update ViewComponentContext to respond to changed type\n" }, { "from": "human", "value": "\nnamespace Glimpse.Agent.Internal.Inspectors.Mvc.Proxies\n{\n public interface IViewComponentContext\n {\n IViewComponentDescriptor ViewComponentDescriptor { get...
c#
chosen
[ { "from": "system", "value": "Convert to minutes in the duration display\n" }, { "from": "human", "value": "@model Dashboard.Models.JobSummary\n\n@{\n ViewBag.Title = $\"{Model.Name} Summary\";\n\n var summaryValues = string.Join(\n \";\",\n Model.JobDaySummaryList.Select(x ...
c#
chosen
[ { "from": "system", "value": "Allow progress dialog ready API call to proceed without sync (BL-11484)\n\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Net;\nusing System.Windows.Forms;\nusing Bloom.Api;\nusing Bloom.Book;\nusing Bloom.MiscUI;\nusing Bloom.Publi...
c#
chosen
[ { "from": "system", "value": "Add (temporary) event handler delegate.\n" }, { "from": "human", "value": "using System;\r\nusing Microsoft.SPOT;\r\n\r\nnamespace IntervalTimer\r\n{\r\n public class IntervalTimer\r\n {\r\n public TimeSpan ShortDuration { get; set; }\r\n public...
c#
chosen
[ { "from": "system", "value": "Add double click to copy functionality\n\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing System.Windows;\nusing System.Windows.Controls;\nusing System....
c#
chosen
[ { "from": "system", "value": "Change invalid character enum to make more send (None becomes Error)\n" }, { "from": "human", "value": "\n/// <summary>\n/// Action to take if the message text contains an invalid character\n/// Valid characters are defined in the GSM 03.38 character set\n/// </sum...
c#
chosen
[ { "from": "system", "value": "Update version number to 0.3.0.0.\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.InteropServices;\n\n// General Information about an assembly is controlled through the following\n// set of attributes. Change these attribute values...
c#
chosen
[ { "from": "system", "value": "Set title for console window.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace DangerousPanel_Server\n{\n class Program\n {\n static ...
c#
chosen
[ { "from": "system", "value": "Rewrite request path to serve up index instead of sending it without content type\n" }, { "from": "human", "value": "using Microsoft.AspNet.Builder;\nusing Microsoft.AspNet.Http;\nusing Microsoft.AspNet.StaticFiles;\nusing Microsoft.Framework.DependencyInjection;\nu...
c#
chosen
[ { "from": "system", "value": "Add a GetRootNode method, to match the interface of the sdk.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\n\nnamespace FbxSharp\n{\n public class Scene : Document\n {\n public Scene(string name=\"\")\n {\n ...
c#
chosen
[ { "from": "system", "value": "Fix typo: ouath -> oauth\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\n#if NET_45\nusing System.Collections.ObjectModel;\n#endif\n\nnamespace Octokit\n{\n /// <summary>\n /// Extra information returned as part of each ap...
c#
chosen
[ { "from": "system", "value": "Use linq expression to create dictionary\n\nJust feels nicer than mutating a dictionary.\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing System.Collections.Generic;\n\nnamespace Octokit\n{\n internal static class CollectionExtensions\...
c#
chosen
[ { "from": "system", "value": "Make internals visible to test assembly\n" }, { "from": "human", "value": "using System.Reflection;\n\n// General Information about an assembly is controlled through the following \n// set of attributes. Change these attribute values to modify the information\n// a...
c#
chosen
[ { "from": "system", "value": "Use prepared http client to build odata client.\n" }, { "from": "human", "value": "using Autofac;\nusing Bit.ViewModel.Contracts;\nusing Simple.OData.Client;\nusing System;\nusing System.Net.Http;\n\nnamespace Prism.Ioc\n{\n public static class ContainerBuilderE...
c#
chosen
[ { "from": "system", "value": "Set status code for not found servlet\n" }, { "from": "human", "value": "\nnamespace WebServer\n{\n public class Default404Servlet : HTMLServlet\n {\n protected override void OnService()\n {\n Write(\n DocType(\"html\")...
c#
chosen
[ { "from": "system", "value": "Visualizer: Check if initialize string is available before setting it\n\nSigned-off-by: Tarak Reddy <83c0befc10b630ca3a0bb9b7bea0b0bf61554a65@johndeere.com>\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing AgGateway.ADAPT.ApplicationDataM...
c#
chosen