conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Create abstract report to simplify creating reports\n" }, { "from": "gpt", "value": "using KenticoInspector.Core.Models;\nusing System;\nusing System.Collections.Generic;\n\nnamespace KenticoInspector.Core\n{\n public abstract class AbstractReport : IReport\n ...
c#
chosen
[ { "from": "human", "value": "Add new document extensions file\n" }, { "from": "gpt", "value": "// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n// See the LICENSE file in the project root for more informat...
c#
chosen
[ { "from": "human", "value": "Add metadata class for the compilation root.\n" }, { "from": "gpt", "value": "namespace slang.Compilation\n{\n public class CompilationMetadata\n {\n public CompilationMetadata(string projectName)\n {\n ProjectName = projectName;\n ...
c#
chosen
[ { "from": "human", "value": "Revert \"moving error view to Shared from Home\"\n\nThis reverts commit d603ced3cb692dea7bb80a5797218bd1f00ffda2.\n" }, { "from": "gpt", "value": "@model System.Exception\n@{\n ViewBag.Title = \"Error :)\";\n}\n\n<section class=\"container\">\n <div class=\"ro...
c#
chosen
[ { "from": "human", "value": "Fix missing TranslationExtension file (wasn't being added to repo for some reason)\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\nusing System.Windows.Markup;\nusing System.Windows.Data;\n\nnamespace SierraLib....
c#
chosen
[ { "from": "human", "value": "Add default LSP initialize handler (for diagnostics).\n" }, { "from": "gpt", "value": "// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nusing System.Th...
c#
chosen
[ { "from": "system", "value": "Fix U4-2286 - IFilteredControllerFactory classes are not resolved by Umbraco\n\nSimple fix, just made the FilteredCOntrollerFactoriesResolver public. This way developers can add their own on application start\n" }, { "from": "human", "value": "using System;\r\nusing...
c#
chosen
[ { "from": "human", "value": "Add a unit test for the LedgerQueriesExtensions class\n" }, { "from": "gpt", "value": "// Copyright 2015 Coinprism, Inc.\n// \n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n...
c#
chosen
[ { "from": "system", "value": "Fix crashing when OK button is pressed and no subtitle file is selected\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Data;\nusing System.Drawing;\nusing System.Linq;\nusing System.Te...
c#
chosen
[ { "from": "human", "value": "Add a very basic data adapter for building the grid cell views to show those SimpleItem objects.\n" }, { "from": "gpt", "value": "using Android.Content;\r\nusing Android.Views;\r\nusing Android.Widget;\r\n\r\nnamespace GridViewInfiniteScroll\r\n{\r\n public class M...
c#
chosen
[ { "from": "system", "value": "Remove tests which are not actual tests but rather stress tests/means to type files automatically\n" }, { "from": "human", "value": "using System.Diagnostics.CodeAnalysis;\nusing System.IO;\nusing FluentAssertions;\nusing Microsoft.R.Editor.Application.Test.TestShe...
c#
chosen
[ { "from": "human", "value": "Add models for user profile.\n" }, { "from": "gpt", "value": "using CompetitionPlatform.Data.AzureRepositories.Project;\nusing CompetitionPlatform.Models.ProjectViewModels;\nusing System;\nusing System.Collections.Generic;\n\nnamespace CompetitionPlatform.Models.Use...
c#
chosen
[ { "from": "human", "value": "Add integration test for entity deletion.\n" }, { "from": "gpt", "value": "using System.Threading.Tasks;\nusing Content.Server.GameObjects.Components.GUI;\nusing Content.Server.GameObjects.Components.Items.Clothing;\nusing NUnit.Framework;\nusing Robust.Shared.Inter...
c#
chosen
[ { "from": "human", "value": "Introduce generic base movement command handler\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing Common.Logging;\nusing GladNet;\nusing SceneJect.Common;\n...
c#
chosen
[ { "from": "system", "value": "Move reflection initialization eager cctor order above McgModuleManager as it turns out to have a dependency on it in debug mode\n\n[tfs-changeset: 1553622]\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the M...
c#
chosen
[ { "from": "human", "value": "Add policy for local only requests\n" }, { "from": "gpt", "value": "using System;\nusing Glimpse.Server.Options;\nusing Glimpse.Web;\n\nnamespace Glimpse.Server.Framework\n{\n public class AllowRemoteSecureRequestPolicy : ISecureRequestPolicy\n {\n priv...
c#
chosen
[ { "from": "human", "value": "Add tests for multiple calls\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Concurrent;\nusing System.Diagnostics;\nusing System.Threading;\nusing System.Threading.Tasks;\nusing RawRabbit.Client;\nusing RawRabbit.IntegrationTests.TestMessag...
c#
chosen
[ { "from": "system", "value": "Remove DocValues numeric fielddata format\n\nCloses https://github.com/elastic/elasticsearch-net/issues/2005\n" }, { "from": "human", "value": "using System.Runtime.Serialization;\n\nnamespace Nest\n{\n\tpublic enum NumericFielddataFormat\n\t{\n\t\t[EnumMember(Valu...
c#
chosen
[ { "from": "human", "value": "Add beatmap availability tracker component for multiplayer\n" }, { "from": "gpt", "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 S...
c#
chosen
[ { "from": "human", "value": "Add initial test for checking that specifying a parameter in LSL state_entry() generates a syntax error.\n\nSame for other events to follow at a later date.\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) Contributors, http://opensimulator.org/\n * See CONTRIBU...
c#
chosen
[ { "from": "human", "value": "Add base class for path elements that has a good default implementation for Apply on Selection\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\n\nnamespace Pather.CSharp.PathElement...
c#
chosen
[ { "from": "human", "value": "Add AutoQueryable extension on top of Iqueryable<T>\n" }, { "from": "gpt", "value": "using System;\nusing System.Linq;\nusing AutoQueryable.Helpers;\nusing AutoQueryable.Models;\n\nnamespace AutoQueryable.Extensions\n{\n public static class QueryableExtension\n ...
c#
chosen
[ { "from": "human", "value": "Create Client Message Context Factory\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing Lidgren.Network;\nusing GladNet.Lidgren.Engine.Common;\nusing GladNet.Serializer;\n\nnamespace Glad...
c#
chosen
[ { "from": "human", "value": "Add the prim count interfaces\n" }, { "from": "gpt", "value": "/*\n * Copyright (c) Contributors, http://opensimulator.org/\n * See CONTRIBUTORS.TXT for a full list of copyright holders.\n *\n * Redistribution and use in source and binary forms, with or without\n * m...
c#
chosen
[ { "from": "human", "value": "Add tests directory for Mango.Server\n" }, { "from": "gpt", "value": "\nusing System;\nusing NUnit.Framework;\n\nusing Mango;\nusing Mango.Server;\n\nnamespace Mango.Tests\n{\n\n\n\t[TestFixture()]\n\tpublic class HttpRequestTest\n\t{\n\n\t\t[Test()]\n\t\tpublic void...
c#
chosen
[ { "from": "human", "value": "Add a passive check server with a store\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Concurrent;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Net;\n\nnamespace Itg.ZabbixAgent\n{\n public class PassiveC...
c#
chosen
[ { "from": "human", "value": "Add basic unit test for SecurityProtocolManager\n" }, { "from": "gpt", "value": "using Htc.Vita.Core.Net;\nusing Xunit;\nusing Xunit.Abstractions;\n\nnamespace Htc.Vita.Core.Tests\n{\n public class SecurityProtocolManagerTest\n {\n private readonly ITes...
c#
chosen
[ { "from": "human", "value": "Add test case covering regression\n" }, { "from": "gpt", "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 System...
c#
chosen
[ { "from": "system", "value": "Remove attribute since this is no longer a test code\n" }, { "from": "human", "value": "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License. See LICENSE in the project root for license information.\n\nusing System.Diagnos...
c#
chosen
[ { "from": "human", "value": "Create Message Context Factory interface\n" }, { "from": "gpt", "value": "using Lidgren.Network;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace GladNet.Lidgren.Engine.Common\n{\n\t/// <summary>\n\t/// Factory t...
c#
chosen
[ { "from": "human", "value": "Add base class for auth tests.\n" }, { "from": "gpt", "value": "using System;\nusing System.Text;\n\nnamespace Rnwood.SmtpServer.Tests.Extensions.Auth\n{\n public class AuthMechanismTest\n {\n protected static bool VerifyBase64Response(string base64, str...
c#
chosen
[ { "from": "human", "value": "Add failing test for issue GH-837\n" }, { "from": "gpt", "value": "using System;\nusing System.Linq;\nusing Marten.Schema;\nusing Marten.Testing.Documents;\nusing Xunit;\n\nnamespace Marten.Testing.Bugs\n{\n public class Bug_837_missing_func_mt_immutable_timestam...
c#
chosen
[ { "from": "human", "value": "Add test coverage of EF to Realm migration process\n" }, { "from": "gpt", "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.IO;\nusing System...
c#
chosen
[ { "from": "human", "value": "Add missing unit test file\n" }, { "from": "gpt", "value": "using NUnit.Framework;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing compiler.middleend.ir;\n\nnamespace NUnit.Tests.Middle_...
c#
chosen
[ { "from": "human", "value": "Add Extension Methods for WebSocket->IGuild\n\nFor users importing `Discord.WebSocket.Extensions`, there are now non-async extensions for Get(Type)Channel(s) and Get(Current)User(s).\n\nThese methods point to the appropriate method or member on SocketGuild." }, { "from":...
c#
chosen
[ { "from": "human", "value": "Add extension method for null-forgiving operator\n" }, { "from": "gpt", "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.Diagnostics;\n\n#nu...
c#
chosen
[ { "from": "human", "value": "Revert \"Pack nuget on build\"\n\nThis reverts commit 272eb869b9ec5c6d2226283a80c48511381ca581.\n" }, { "from": "gpt", "value": "using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General Information about a...
c#
chosen
[ { "from": "human", "value": "Add test for persisting cached value under different culture.\n" }, { "from": "gpt", "value": "using ClosedXML.Excel;\nusing NUnit.Framework;\nusing System.IO;\nusing System.Threading;\n\nnamespace ClosedXML_Tests.Excel.Globalization\n{\n [TestFixture]\n publi...
c#
chosen
[ { "from": "human", "value": "Add integration test for sitemap.xml\n\nAdd an integration test for sitemap.xml to test that it contains valid\nURLs.\nResolves #124.\n" }, { "from": "gpt", "value": "// Copyright (c) Martin Costello, 2017. All rights reserved.\n// Licensed under the Apache 2.0 lice...
c#
chosen
[ { "from": "human", "value": "Read file from osz archive.\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.IO.Compression;\nusing System.Linq;\n\nnamespace Meowtrix.osuAMT.Training.DataGenerator\n{\n class OszArchive : Archive, ...
c#
chosen
[ { "from": "human", "value": "Add foundation of integration test runner\n" }, { "from": "gpt", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing System.Threading;\nusing System.Threading.Tasks;\n\nnamespace SimplifiedProtocolTestWpfCore\n{\n internal static class Integrat...
c#
chosen
[ { "from": "system", "value": "Fix test to use serializable classes now that ERLB clones objects on save.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace Csla.Test.EditableRootList\n{\n public class ERitem : BusinessBase<ERitem...
c#
chosen
[ { "from": "system", "value": "Fix EventSource test to be aware of ArrayPoolEventSource\n" }, { "from": "human", "value": "// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n// See the LICENSE file in the proj...
c#
chosen
[ { "from": "system", "value": "Use using when creating game/host.\n" }, { "from": "human", "value": "// Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.\r\n// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE\r\n\r\nusing System;\r\nusing os...
c#
chosen
[ { "from": "system", "value": "Debug view now displays the camera position and speed.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing Microsoft.Xna.Framework;\nusing Microsoft.Xna.Fr...
c#
chosen
[ { "from": "system", "value": "Add readonly in ContextKey property\n" }, { "from": "human", "value": "using System.Web;\nusing MvcMusicStore.Data.Context.Interfaces;\n\nnamespace MvcMusicStore.Data.Context\n{\n public class ContextManager<TContext> : IContextManager<TContext>\n where T...
c#
chosen
[ { "from": "system", "value": "Fix cast crash in AppItemView\n" }, { "from": "human", "value": "using EarTrumpet.UI.ViewModels;\nusing System.Windows;\nusing System.Windows.Controls;\n\nnamespace EarTrumpet.UI.Views\n{\n public partial class AppItemView : UserControl\n {\n private A...
c#
chosen
[ { "from": "system", "value": "Use Collection instead of List for consistency\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Collections.ObjectModel;\nusing System.Text;\n\nnamespace Anabi.DataAccess.Ef.DbModels\n{\n public class AssetDb : Ba...
c#
chosen
[ { "from": "system", "value": "Change logic for deviceName matching\n\nhttps://github.com/2gis/winphonedriver/pull/82\n" }, { "from": "human", "value": "namespace Winium.Mobile.Connectivity\n{\n #region\n\n using System;\n using System.Collections.Generic;\n using System.Linq;\n\n ...
c#
chosen
[ { "from": "system", "value": "Set default time zone to UTC\n" }, { "from": "human", "value": "using System;\n\nnamespace IntegrationEngine.Model\n{\n public class CronTrigger : IHasStringId, IIntegrationJobTrigger\n {\n public string Id { get; set; }\n public string JobType ...
c#
chosen
[ { "from": "system", "value": "Use ReflectionOnlyLoad() in the remote proxy reference prober\n" }, { "from": "human", "value": "#if !CORE\r\nnamespace Nancy.Helpers\r\n{\r\n using System;\r\n using System.Reflection;\r\n using Nancy.Extensions;\r\n\r\n internal class ProxyNancyReferen...
c#
chosen
[ { "from": "system", "value": "Improve pipeline interface so that StartWith is now static and actually creates the pipeline for us\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Threading;\nusing System.Threading.Tasks;\nusing BulkWriter.Pipeline.Internal;\nus...
c#
chosen
[ { "from": "system", "value": "Address an issue blocks query provider parameters being sent.\n" }, { "from": "human", "value": "using Moegirlpedia.MediaWikiInterop.Primitives.Action.Models;\nusing Moegirlpedia.MediaWikiInterop.Primitives.Foundation;\nusing System;\nusing System.Collections.Gener...
c#
chosen
[ { "from": "system", "value": "Remove watchFileSystem config section property - no longer needed\n" }, { "from": "human", "value": "using System.Configuration;\r\n\r\nnamespace Cassette\r\n{\r\n public sealed class CassetteConfigurationSection : ConfigurationSection\r\n {\r\n [Confi...
c#
chosen
[ { "from": "system", "value": "Make the intent clearer to accept bodyless PROPFIND\n" }, { "from": "human", "value": "using Microsoft.AspNetCore.Mvc.Formatters;\n\nnamespace FubarDev.WebDavServer.AspNetCore.Formatters\n{\n public class WebDavXmlSerializerInputFormatter : XmlSerializerInputFor...
c#
chosen
[ { "from": "system", "value": "Fix ui when contentSummary has unclosed dom tags.\n" }, { "from": "human", "value": "@using ASPWiki.Model\n@model WikiPage\n\n<article style=\"margin:15px;word-break:break-all;\">\n <a href=\"/Wiki/View/@Model.GetPathString()\"><h3>@Model.Title</h3></a>\n \n ...
c#
chosen
[ { "from": "system", "value": "CHANGE CONFIG TO PRODUCTION !!!\n\nSigned-off-by: Sakul Jaruthanaset <17b4bfe9c570ddd7d4345ec4b3617835712513c0@perfenterprise.com>\n" }, { "from": "human", "value": "using ApiApp.Models;\nusing MongoDB.Driver;\nusing System;\nusing System.Collections.Generic;\nusin...
c#
chosen
[ { "from": "system", "value": "Remove \"register for more config choices\"\n" }, { "from": "human", "value": "<div ng-controller=\"UnregisteredDashboardController\">\n <div>\n <h2>Regular Poller?</h2>\n Register for more config choices. It's free!\n </div>\n\n <form name=\...
c#
chosen
[ { "from": "system", "value": "Correct regex to match only full words" }, { "from": "human", "value": "using System;\nusing System.Reflection;\nusing System.Text.RegularExpressions;\nusing InfluxData.Net.Common;\nusing System.Linq;\n\nnamespace InfluxData.Net.InfluxDb.Helpers\n{\n public stat...
c#
chosen
[ { "from": "system", "value": "Add test to prove that OnActivation is syncronous\n" }, { "from": "human", "value": "namespace FunWithNinject.Initialization\n{\n using Ninject;\n using NUnit.Framework;\n\n [TestFixture]\n public class Tests\n {\n [Test]\n public void ...
c#
chosen
[ { "from": "system", "value": "Add same type twices adds 2 operations to pending\n" }, { "from": "human", "value": "//-----------------------------------------------------------------------\r\n// <copyright file=\"EventWindowTest.cs\" company=\"Brian Rogers\">\r\n// Copyright (c) Brian Rogers. A...
c#
chosen
[ { "from": "system", "value": "Copy changes and companies house link on the company search page\n" }, { "from": "human", "value": "@{ViewBag.Title = \"Search for your organisation\"; }\n<div class=\"grid-row\">\n <div class=\"column-two-thirds\">\n <h1 class=\"heading-xlarge\">Search f...
c#
chosen
[ { "from": "system", "value": "Change bar chart type to bar instead of pie\n" }, { "from": "human", "value": "using ChartJS.NET.Infrastructure;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace ChartJS.NET.Charts...
c#
chosen
[ { "from": "system", "value": "Revert \"new capabilites, minor version\"\n\nThis reverts commit 425fb58a0c23d6321581ebb16167cfda224fd70f.\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.InteropServices;\n\n// General Information about an assembly is controlled t...
c#
chosen
[ { "from": "system", "value": "Fix zero being interpreted as 1/1/1970 instead of DateTime.MinValue\n" }, { "from": "human", "value": "using System;\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Converters;\n\nnamespace Curse.NET\n{\n\tinternal class MillisecondEpochConverter : DateTimeConverter...
c#
chosen
[ { "from": "system", "value": "Add another error message to LoycInterop example\n" }, { "from": "human", "value": "using System;\nusing Pixie.Terminal;\nusing Pixie.Loyc;\nusing Pixie;\nusing Pixie.Transforms;\nusing Loyc.Syntax;\nusing Loyc;\nusing Loyc.Ecs;\nusing Loyc.Collections;\nusing Pixi...
c#
chosen
[ { "from": "system", "value": "Add better exceptions for invalid keys\n" }, { "from": "human", "value": "/*\n** Project ShiftDrive\n** (C) Mika Molenkamp, 2016.\n*/\n\nusing System.Collections.Generic;\nusing Microsoft.Xna.Framework.Graphics;\nusing Microsoft.Xna.Framework.Audio;\n\nnamespace Sh...
c#
chosen
[ { "from": "system", "value": "Change color of tank for debug purposes\n" }, { "from": "human", "value": "namespace Game\n{\n using UnityEngine;\n\n [RequireComponent(typeof(Collider))]\n public class Tank : MonoBehaviour\n {\n public PlayerController player;\n\n [Range...
c#
chosen
[ { "from": "system", "value": "Add caching to the GetBudgetsAsync method\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing System.Text.RegularExpressions;\nusing System.Threading.Tasks;\nusing Newtonsoft.Json.Linq;\nusing YnabApi.Files;\nusing YnabAp...
c#
chosen
[ { "from": "system", "value": "Put Task.Run in a single line\n" }, { "from": "human", "value": "using GeoIP.Models;\nusing MaxMind.GeoIP2;\nusing MaxMind.GeoIP2.Exceptions;\nusing Newtonsoft.Json;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks...
c#
chosen
[ { "from": "system", "value": "Add filter property to popular shows request.\n" }, { "from": "human", "value": "namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common\n{\n using Base.Get;\n using Objects.Basic;\n using Objects.Get.Shows;\n\n internal class TraktShowsPopularReques...
c#
chosen
[ { "from": "system", "value": "Revert \"NR Improve display of version number\"\n\nThis reverts commit c5568ddb6ff60c9e55b862e49ff1c8c3aa2d5fbb.\n" }, { "from": "human", "value": "using Waf.NewsReader.Applications.Services;\nusing Xamarin.Essentials;\n\nnamespace Waf.NewsReader.Presentation.Servi...
c#
chosen
[ { "from": "system", "value": "Add additional test case for package versions\n" }, { "from": "human", "value": "using NUnit.Framework;\n\nusing Rant.Resources;\n\nnamespace Rant.Tests\n{\n\t[TestFixture]\n\tpublic class PackageVersions\n\t{\n\t\t[TestCase(\"1.2.5\", \"1.2.4\", true)]\n\t\t[TestC...
c#
chosen
[ { "from": "system", "value": "Make statically typed numeric generation distinct\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Reflection;\nusing System.Text;\nusing Microsoft.CodeAnalysis.CSharp.Syntax;\n\nnamespace FreecraftCore.Serializer\n{...
c#
chosen
[ { "from": "system", "value": "CHANGE: Change force emulation IE10 to IE11\nИзменена принудительная эмуляция IE10 на IE11\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Windows.Forms;\nusing Microsoft.Win32;\n\nnamespace KryBot\n{\n internal static class Prog...
c#
chosen
[ { "from": "system", "value": "Add to the details page too\n" }, { "from": "human", "value": "@model AnlabMvc.Models.Analysis.AnalysisMethodViewModel\n\n@{\n ViewBag.Title = @Model.AnalysisMethod.Title;\n}\n\n<div class=\"col-md-8\">\n <h2>@Model.AnalysisMethod.Id</h2>\n\n <h5>@Model.An...
c#
chosen
[ { "from": "system", "value": "Use cell.Value instead of cell.Value2 to allow for Date formatting\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing Microsoft.Office.Interop.Excel;\n\nnamespace XtabFileOpener.TableContai...
c#
chosen
[ { "from": "system", "value": "Add torque to launched planets\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\n\npublic class PlanetSpawner : MonoBehaviour {\n\n\tpublic GameObject camera;\n\tpublic GameObject planetPrefab;\n\tpublic GravityAttractor blackHole;\n...
c#
chosen
[ { "from": "system", "value": "Add stretchblt for copy and resize\n" }, { "from": "human", "value": "using System;\nusing System.Runtime.InteropServices;\n\nnamespace Mamesaver.Windows\n{\n // This class contains the GDI32 APIs used...\n public class PlatformInvokeGdi32\n {\n pub...
c#
chosen
[ { "from": "system", "value": "Write command exception message to the console\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing System.Collections.Generic;\n\nnamespace AppHarbor\n{\n\tpublic class CommandDispatcher\n\t{\n\t\tprivate readonly IEnumerable<ICommand> _comm...
c#
chosen
[ { "from": "system", "value": "Add MaxLength property to text boxes\n" }, { "from": "human", "value": "using System;\nusing System.Runtime.WootzJs;\nusing WootzJs.Web;\n\nnamespace WootzJs.Mvc.Views\n{\n public class TextBox : Control\n {\n public event Action Changed;\n\n pu...
c#
chosen
[ { "from": "system", "value": "Rename `Option` to `Opt` in key combination output\n\nIs as well understood as \"cmd\" and much shorter.\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...
c#
chosen
[ { "from": "system", "value": "Expand p tag on about screen.\n" }, { "from": "human", "value": "@{\n ViewBag.Title = \"About\";\n}\n<h2>@ViewBag.Title.</h2>\n<h3>@ViewBag.Message</h3>\n\n<p>Use this area to provide additional information.</p>\n" }, { "from": "gpt", "value": "@{\n...
c#
chosen
[ { "from": "system", "value": "Add filter property to most watched shows request.\n" }, { "from": "human", "value": "namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common\n{\n using Base.Get;\n using Enums;\n using Objects.Basic;\n using Objects.Get.Shows.Common;\n using Syst...
c#
chosen
[ { "from": "system", "value": "Add async/await based pattern execution\n" }, { "from": "human", "value": "using System;\nusing Microsoft.WindowsAzure.Storage;\nusing Microsoft.WindowsAzure.Storage.Queue;\nusing Microsoft.Extensions.Configuration;\nusing System.Diagnostics;\n\nnamespace QueueGetti...
c#
chosen
[ { "from": "system", "value": "Update the version for migration project\n" }, { "from": "human", "value": "// Copyright (c) .NET Foundation and contributors. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nnamespace Mi...
c#
chosen
[ { "from": "system", "value": "Set title of root controller (sample app)\n" }, { "from": "human", "value": "using Foundation;\nusing System;\nusing System.CodeDom.Compiler;\nusing UIKit;\n\nnamespace SampleApp\n{\n\tpartial class ExampleTableViewController : UITableViewController\n\t{\n\n\n\t\tpu...
c#
chosen
[ { "from": "system", "value": "Add informational version to assembly manifest\n" }, { "from": "human", "value": "using System;\nusing System.Resources;\nusing System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General Information about an asse...
c#
chosen
[ { "from": "system", "value": "Remove unused namespace which caused a build failure\n" }, { "from": "human", "value": "using NUnit.Framework;\n\nnamespace Kekiri.IoC.Autofac\n{\n public class AutofacFluentScenario : IoCFluentScenario\n {\n public AutofacFluentScenario() : base(new A...
c#
chosen
[ { "from": "system", "value": "Rename variable to make more sense\n" }, { "from": "human", "value": "using Nancy;\nusing Nancy.ModelBinding;\nusing Schedules.API.Models;\nusing Simpler;\nusing Schedules.API.Tasks.Reminders;\n\nnamespace Schedules.API.Modules\n{\n public class RemindersModule : ...
c#
chosen
[ { "from": "system", "value": "Fix build for UE4.2 - Add SlateCore as new module dependency\n" }, { "from": "human", "value": "// Copyright (c) 2014 Sebastien Rombauts (sebastien.rombauts@gmail.com)\n//\n// Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt\n// or copy at ...
c#
chosen
[ { "from": "system", "value": "Enable callback test only when url is set\n" }, { "from": "human", "value": "@page\n@model SupportManager.Web.Pages.User.ApiKeys.ListModel\n@{\n Layout = \"/Features/Shared/_Layout.cshtml\";\n ViewData[\"Title\"] = \"API Keys\";\n}\n\n<h2>API Keys</h2>\n\n@if...
c#
chosen
[ { "from": "system", "value": "Use String.Split(...) instead of recreating it.\n" }, { "from": "human", "value": "namespace Fixie.Assertions\n{\n using System;\n using System.Collections.Generic;\n\n public class AssertException : Exception\n {\n public static string FilterStac...
c#
chosen
[ { "from": "system", "value": "Load footer image in JavaScript disabled\n\nLoad the BrowserStack logo in the footer if JavaScript is enabled.\n" }, { "from": "human", "value": "@model SiteOptions\n<hr />\n<footer>\n <p>\n &copy; @Model.Metadata.Author.Name @DateTimeOffset.UtcNow.Year |...
c#
chosen
[ { "from": "system", "value": "Update for SSL error with site\n" }, { "from": "human", "value": "using System.Web;\nusing System.Web.Mvc;\nusing System.Web.Routing;\n\nnamespace HackyNewsWeb\n{\n public class Global : HttpApplication\n {\n protected void Application_Start()\n ...
c#
chosen
[ { "from": "system", "value": "Add checking for end of text\n" }, { "from": "human", "value": "using System;\n\nnamespace LeanGoldfish\n{\n public class IsCharacter : ParsingUnit\n {\n private char character;\n\n public IsCharacter(char character)\n {\n this...
c#
chosen
[ { "from": "system", "value": "Join up hardcoded lines in a Row\n" }, { "from": "human", "value": "using System;\n\nnamespace Hangman {\n public class Row {\n public Cell[] Cells;\n\n public Row(Cell[] cells) {\n Cells = cells;\n }\n\n public string Draw(int width) {\n // r...
c#
chosen
[ { "from": "system", "value": "[Compiler] Improve ABI to work better on x64 (values seems better off passed by value instead of byval*).\n" }, { "from": "human", "value": "using SharpLLVM;\n\nnamespace SharpLang.CompilerServices\n{\n class DefaultABI : IABI\n {\n private readonly Con...
c#
chosen
[ { "from": "system", "value": "Put the null db initializer back in there.\n" }, { "from": "human", "value": "using Data.Mappings;\r\nusing Domain.Entities;\r\nusing System.Data.Entity;\r\n\r\nnamespace Data\r\n{\r\n public class DriversEdContext : DbContext\r\n {\r\n public DriversEdContext...
c#
chosen
[ { "from": "system", "value": "Update assembly details for NuGet\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 projec...
c#
chosen