conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Implement the read/write xml data\n\nThis is done using the XML serializer class to automatically write and\nread xml to a file, and back to the list of notes.\n" }, { "from": "human", "value": "// XMLDataSaver.cs\n// <copyright file=\"XMLDataSaver.cs\"> This code ...
c#
chosen
[ { "from": "system", "value": "Add bing map keys with fake default\n" }, { "from": "human", "value": "namespace TestAppUWP.Samples.Map\n{\n public class MapServiceSettings\n {\n public static string Token=\"Pippo\";\n }\n}" }, { "from": "gpt", "value": "namespace Tes...
c#
chosen
[ { "from": "system", "value": "Remove obsolete Linux build architectures on 2019.2+\n" }, { "from": "human", "value": "using UnityEditor;\n\nnamespace SuperSystems.UnityBuild\n{\n\n[System.Serializable]\npublic class BuildLinux : BuildPlatform\n{\n #region Constants\n\n private const strin...
c#
chosen
[ { "from": "system", "value": "Set up client, settings, logging, and connection\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Wycademy\n{\n class Program\n {\n s...
c#
chosen
[ { "from": "system", "value": "Use CombineLatest instead of Zip\n" }, { "from": "human", "value": "#region Usings\n\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Reactive.Linq;\nusing System.Threading;\nusing System.Threading.Tasks;\nusing ReactiveUI;\n\n#endregion\n\nname...
c#
chosen
[ { "from": "system", "value": "Adjust tests to MySqlConnector 1.4.0-beta.4.\n" }, { "from": "human", "value": "using Microsoft.EntityFrameworkCore;\nusing Pomelo.EntityFrameworkCore.MySql.FunctionalTests.TestUtilities;\nusing Pomelo.EntityFrameworkCore.MySql.Tests;\nusing Xunit;\n\nnamespace Pom...
c#
chosen
[ { "from": "system", "value": "Fix cross plattform issue with drive info method\n\nARKADE-245" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing Arkivverket.Arkade.Core.Base;\n\nnamespace Arkivverket.Arkade.Core.Util\n{\n public static class SystemInfo\n {\n pub...
c#
chosen
[ { "from": "system", "value": "Add version to test mock settings\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing anime_downloader.Models;\nusing anime_downloader.Models.Configurations;\nusing anime_downloader.Services.Interfaces;\n\nnamespace anime_down...
c#
chosen
[ { "from": "system", "value": "Allow all characters for password fields\n\nAdded the allow html attributes to allow all characters to be used\nwithin the password field\n" }, { "from": "human", "value": "namespace SFA.DAS.EmployerUsers.Web.Models\n{\n public class RegisterViewModel :ViewModel...
c#
chosen
[ { "from": "system", "value": "Load levels with SceneManager instead of Application for Unity 5.3+\n" }, { "from": "human", "value": "using UnityEngine;\nusing UnityEngine.UI;\nusing System.Collections;\n\npublic class LoadTest : MonoBehaviour\n{\n\tpublic void SignInButtonClicked()\n\t{\n\t\tGa...
c#
chosen
[ { "from": "system", "value": "Fix namespace so that external access wrapper type can be accessed from UT.\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 LICE...
c#
chosen
[ { "from": "system", "value": "Add email validity check to change email command\n" }, { "from": "human", "value": "using System.Threading.Tasks;\r\nusing SFA.DAS.EmployerUsers.Application.Validation;\r\n\r\nnamespace SFA.DAS.EmployerUsers.Application.Commands.RequestChangeEmail\r\n{\r\n publi...
c#
chosen
[ { "from": "system", "value": "Use acknowledgement callback to indicate whether createTopic event was successful\n" }, { "from": "human", "value": "using System.Diagnostics;\nusing System.Threading;\nusing System.Threading.Tasks;\nusing Quobject.SocketIoClientDotNet.Client;\n\nnamespace KafkaHtt...
c#
chosen
[ { "from": "system", "value": "Fix typo in VersionNavigation class name\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 Newtonsoft.Json;\nusing System...
c#
chosen
[ { "from": "system", "value": "Allow using `ToLocalisableString` without a format string\n\nDefaults to `null` which is what the number structs (`Double`, `Int32`,\netc.) use to format values without a format string.\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>...
c#
chosen
[ { "from": "system", "value": "Add EF extensions for identity columns and index column order\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel.DataAnnotations.Schema;\nusing System.Data.Entity.Infrastructure.Annotations;\nusing Syste...
c#
chosen
[ { "from": "system", "value": "Fix changelog header staying dimmed after build show\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing osu.Game.Online.AP...
c#
chosen
[ { "from": "system", "value": "Extend the extension methods test case again\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\n\npublic class Herp\n{\n public Herp(int X)\n {\n this.X = X;\n }\n\n public int X { get; private...
c#
chosen
[ { "from": "system", "value": "Move BindValueChanged subscriptions to LoadComplete\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.Alloca...
c#
chosen
[ { "from": "system", "value": "Change Price type to double\n" }, { "from": "human", "value": "using Newtonsoft.Json;\n\nnamespace BitFlyer.Apis\n{\n public class SendChildOrderParameter\n {\n [JsonProperty(\"product_code\")]\n public ProductCode ProductCode { get; set; }\n\n ...
c#
chosen
[ { "from": "system", "value": "Disable login redirect to dbbrowser.aspx forbidding redirects altogether\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Sitec...
c#
chosen
[ { "from": "system", "value": "Revert \"clean code a bit\"\n\nThis reverts commit eb110e56c72b3529cf9a7f649f499499315482a7.\n" }, { "from": "human", "value": "using System.Collections.Generic;\n\nnamespace Humanizer.Localisation.NumberToWords\n{\n internal class FrenchNumberToWordsConverter : ...
c#
chosen
[ { "from": "system", "value": "Remove BOM from UTF8 encoder\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Runtime.InteropServices;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace kynnaugh\n{\n class String...
c#
chosen
[ { "from": "system", "value": "Allow redefining already defined symbols\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing Squirrel.Nodes;\n\nnamespace Squirrel\n{\n public class Environment\n {\n private readonly Environment _parent;\n private readon...
c#
chosen
[ { "from": "system", "value": "Remove lazy loading of configuration\n" }, { "from": "human", "value": "using System.IO;\r\nusing Newtonsoft.Json;\r\n\r\nnamespace TfsHipChat.Configuration\r\n{\r\n public class ConfigurationProvider : IConfigurationProvider\r\n {\r\n private TfsHipCh...
c#
chosen
[ { "from": "system", "value": "Fix failing test by setting the host object\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Text;\nusing Microsoft.TemplateEngine.Core.Contracts;\nusing Xunit;\n\nnamespace Microsoft.TemplateEngine.Core.UnitTests\n{\n public abst...
c#
chosen
[ { "from": "system", "value": "Add /GET for a single website resource\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing AutoMapper;\nusing GeoToast.Data;\nusing GeoToast.Data.Models;\nusing GeoToast.Models;\nusing Micros...
c#
chosen
[ { "from": "system", "value": "Allow statically bound Razor templates to be output cached\n" }, { "from": "human", "value": "using System.Web.UI;\nusing Sitecore.Web.UI;\nusing Blade.Razor;\nusing Blade.Utility;\nusing Sitecore.Diagnostics;\n\nnamespace Blade.Views\n{\n\t/// <summary>\n\t/// All...
c#
chosen
[ { "from": "system", "value": "Implement RunServerCompilation in portable build task\n\nImplemented to return failure, at the moment, so that compilation falls back\nto out-of-proc tool.\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apac...
c#
chosen
[ { "from": "system", "value": "Fix copy/paste bug related to changeset a06f6c6cd5ab\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Net.Mail;\r\n\r\nusing Composite.C1Console.Workflow;\r\n\r\nnamespace CompositeC1Contrib.Email.C1Console.Workfl...
c#
chosen
[ { "from": "system", "value": "Update class that was missed in the last commit\n" }, { "from": "human", "value": "\nnamespace Glimpse.Agent.AspNet.Mvc.Messages\n{\n public class ActionInvokedMessage\n {\n public string ActionId { get; set; }\n\n public Timing Timing { get; se...
c#
chosen
[ { "from": "system", "value": "Fix feature FootprintY having FootprintX value\n" }, { "from": "human", "value": "namespace Mappy.Data\r\n{\r\n using Mappy.Util;\r\n\r\n using TAUtil.Tdf;\r\n\r\n public class FeatureRecord\r\n {\r\n public string Name { get; set; }\r\n\r\n ...
c#
chosen
[ { "from": "system", "value": "Add missing '.' to /// comment\n\nAdd missing full-stop to XML comment.\n" }, { "from": "human", "value": "// --------------------------------------------------------------------------------------------------------------------\n// <copyright file=\"ErrorController....
c#
chosen
[ { "from": "system", "value": "Set environment variable configuration to the passed in parameter\n" }, { "from": "human", "value": "using System;\n\nnamespace AppHarbor.Commands\n{\n\tpublic class LoginCommand : ICommand\n\t{\n\t\tprivate readonly AppHarborApi _appHarborApi;\n\t\tprivate readonl...
c#
chosen
[ { "from": "system", "value": "Resolve compiler warnings from BenchmarkDotNet upgrade\n" }, { "from": "human", "value": "// Copyright (c) Andrew Arnott. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nnamespace Nerdba...
c#
chosen
[ { "from": "system", "value": "Use HostConstants in the extensions.\n" }, { "from": "human", "value": "namespace SignalR.Abstractions\n{\n public static class HostContextExtensions\n {\n public static T GetValue<T>(this HostContext context, string key)\n {\n object...
c#
chosen
[ { "from": "system", "value": "Update feed uri, blog platform transition" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.ServiceModel.Syndication;\nusing System.Web;\nusing Firehose.Web.Infrastructure;\n\nnamespace Firehose.Web.A...
c#
chosen
[ { "from": "system", "value": "Check for forum notifications more often.\n" }, { "from": "human", "value": "namespace Mitternacht.Common {\n\tpublic class TimeConstants {\n\t\tpublic const int WaitForForum = 500;\n\t\tpublic const int TeamUpdate = 3 * 60 * 1000;\n\t\tpublic const int ...
c#
chosen
[ { "from": "system", "value": "Update the test runner to use the new parser interface.\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing Cxxi;\nusing Cxxi.Types;\n\nnamespace Generator.Tests\n{\n public class HeaderTestFixture\n {\n protected Library library;...
c#
chosen
[ { "from": "system", "value": "Add missing unit tests for Range equality.\n" }, { "from": "human", "value": "using System;\nusing NUnit.Framework;\n\nnamespace FindRandomNumber.Common {\n [TestFixture]\n public class RangeTests {\n [TestFixture]\n public class Construction : RangeTests {...
c#
chosen
[ { "from": "system", "value": "Comment the security check so it's obvious what its for.\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing System.Web.Mvc;\n\nnamespace NuGetGallery\n{\n public partial class PagesController : Controller\n...
c#
chosen
[ { "from": "system", "value": "Split a really long WriteLine into a Write & WriteLine.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Cheers\n{\n class Program\n {\n ...
c#
chosen
[ { "from": "system", "value": "Hide comment form if user not signed in.\n" }, { "from": "human", "value": "@model CompetitionPlatform.Models.ProjectViewModels.ProjectCommentPartialViewModel\n\n<form asp-controller=\"ProjectDetails\" asp-action=\"AddComment\" enctype=\"multipart/form-data\">\n ...
c#
chosen
[ { "from": "system", "value": "S-51801: Rename the test class and method\n" }, { "from": "human", "value": "using Microsoft.VisualStudio.TestTools.UnitTesting;\n\nnamespace VersionOne.Bugzilla.BugzillaAPI.Testss\n{\n [TestClass()]\n public class given_a_Bug\n {\n private IBug _bu...
c#
chosen
[ { "from": "system", "value": "Use switch statement instead of an array\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.Bindables;\nusing...
c#
chosen
[ { "from": "system", "value": "Change Error class to internal\n" }, { "from": "human", "value": "namespace Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.Implementation\n{\n using System.Runtime.Serialization;\n\n [DataContract]\n internal class BackendResponse\n {\n ...
c#
chosen
[ { "from": "system", "value": "Fix failing multiplayer player test\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.Linq;\nusing NUnit.Framework;...
c#
chosen
[ { "from": "system", "value": "Set instance name correctly for tests.\n" }, { "from": "human", "value": "using System;\nusing Amazon.DynamoDBv2;\n\nnamespace Quartz.DynamoDB.Tests\n{\n public class DynamoClientFactory\n {\n private static JobStore _store;\n private static str...
c#
chosen
[ { "from": "system", "value": "Fix bulk alias unit tests\n" }, { "from": "human", "value": "namespace Nest\n{\n\t/// <summary>\n\t/// Marker interface for alias operation\n\t/// </summary>\n\tpublic interface IAliasAction { }\n}\n" }, { "from": "gpt", "value": "using Utf8Json;\nusin...
c#
chosen
[ { "from": "system", "value": "Improve test method name for clarity.\n" }, { "from": "human", "value": "using Fixie.Execution;\nusing Fixie.Internal;\n\nnamespace Fixie.Tests.Execution\n{\n public class RunnerAppDomainCommunicationTests\n {\n public void ShouldAllowRunnersInOtherAppD...
c#
chosen
[ { "from": "system", "value": "Update anti forgery helper as extension methods\n" }, { "from": "human", "value": "namespace GeekLearning.Test.Integration.Helpers\n{\n using System;\n using System.Net.Http;\n using System.Text.RegularExpressions;\n using System.Threading.Tasks;\n\n ...
c#
chosen
[ { "from": "system", "value": "Add ResolveByName attribute to TargetControl property\n" }, { "from": "human", "value": "using Avalonia.Controls;\nusing Avalonia.Input;\nusing Avalonia.Interactivity;\nusing Avalonia.Xaml.Interactivity;\n\nnamespace Avalonia.Xaml.Interactions.Custom;\n\n/// <summa...
c#
chosen
[ { "from": "system", "value": "Set new assembly version for release 1.1.0.0\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General Information about an assembly is controlled through the following \...
c#
chosen
[ { "from": "system", "value": "Enable cors request from everywhere.\n" }, { "from": "human", "value": "using CloudConfVarnaEdition4._0.Entities;\nusing CloudConfVarnaEdition4._0.Repositories;\nusing System.Collections.Generic;\nusing System.Web.Http;\nusing System.Web.Http.Cors;\n\nnamespace Clo...
c#
chosen
[ { "from": "system", "value": "Use the new valid rename field tag id in integration tests\n" }, { "from": "human", "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 M...
c#
chosen
[ { "from": "system", "value": "Make sure there is an error code available\n" }, { "from": "human", "value": "using System;\nusing System.Runtime.InteropServices;\n\nnamespace Eavesdrop\n{\n internal static class NativeMethods\n {\n [DllImport(\"wininet.dll\")]\n public static...
c#
chosen
[ { "from": "system", "value": "Set default back to Chrome driver.\n" }, { "from": "human", "value": "using System.Collections.Generic;\r\nusing BoDi;\r\nusing Coypu;\r\nusing Coypu.Drivers;\r\nusing TechTalk.SpecFlow;\r\n\r\nnamespace WebSpecs.Support\r\n{\r\n [Binding]\r\n public class Hoo...
c#
chosen
[ { "from": "system", "value": "Set sink version to match Serilog version.\n" }, { "from": "human", "value": "using System.Reflection;\n\n[assembly: AssemblyVersion(\"1.0.0.0\")]\n[assembly: AssemblyFileVersion(\"1.1.1.1\")]\n[assembly: AssemblyInformationalVersion(\"1.0.0\")]\n" }, { "fro...
c#
chosen
[ { "from": "system", "value": "Correct negative values under arm64\n" }, { "from": "human", "value": "/* Copyright © 2018 Jeremy Herbison\n\nThis file is part of AudioWorks.\n\nAudioWorks is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public\...
c#
chosen
[ { "from": "system", "value": "Read from log stream and use a simple filter\n" }, { "from": "human", "value": "using System;\nusing Amazon.CloudWatchLogs;\nusing Amazon.Lambda.Core;\n\nnamespace LogParser {\n \n //--- Classes ---\n public class CloudWatchLogsEvent {\n \n //---...
c#
chosen
[ { "from": "system", "value": "Fix For Broken Tests For CustomType List\n" }, { "from": "human", "value": "using NUnit.Framework;\nusing ServiceStack.Common.Tests.Models;\n\nnamespace ServiceStack.Redis.Tests.Support\n{\n\tpublic class CustomTypeFactory : ModelFactoryBase<CustomType>\n\t{\n\t\tpu...
c#
chosen
[ { "from": "system", "value": "Fix hit explosions not being cleaned up correctly when rewinding\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\n#nullable dis...
c#
chosen
[ { "from": "system", "value": "Add back actually needed change\n\n*no comment*\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 NUnit.Framework;\nusing ...
c#
chosen
[ { "from": "system", "value": "Use new new syntax for initialized fields\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\n\nusing LibGit2Sharp;\nusing static GitNStats.Core.Tooling;\n\nnamespace GitNStats.Core\n{\n /// <summary...
c#
chosen
[ { "from": "system", "value": "Add indexer, IEnumerable, and Add for easier creation of HasArbitraryKey objects\n" }, { "from": "human", "value": "using System.Collections.Generic;\n\nnamespace Rollbar {\n public abstract class HasArbitraryKeys {\n protected HasArbitraryKeys(Dictionary<...
c#
chosen
[ { "from": "system", "value": "Save ip after recording, check ip on index, version 1.0\n" }, { "from": "human", "value": "<div class=\"span7\">\r\n <div id=\"button\" class=\"tile quadro triple-vertical bg-lightPink bg-active-lightBlue\" style=\"padding:10px; text-align: center;\">\r\n ...
c#
chosen
[ { "from": "system", "value": "Fix Clear-Bitmap disposing cleared bitmap too early.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Drawing;\nusing System.Drawing.Imaging;\nusing System.IO;\nusing System.Linq;\nusing System.Text;\n\nnamespace Pix...
c#
chosen
[ { "from": "system", "value": "Comment out redis queue tests for now.\n" }, { "from": "human", "value": "using System;\nusing Exceptionless.Core;\nusing Exceptionless.Core.Queues;\nusing StackExchange.Redis;\n\nnamespace Exceptionless.Api.Tests.Queue {\n public class RedisQueueTests : InMemor...
c#
chosen
[ { "from": "system", "value": "Add IArchiveReader to Autofac configuration.\n" }, { "from": "human", "value": "using Arkivverket.Arkade.Core;\nusing Arkivverket.Arkade.Identify;\nusing Autofac;\n\nnamespace Arkivverket.Arkade.Util\n{\n public class ArkadeAutofacModule : Module\n {\n ...
c#
chosen
[ { "from": "system", "value": "Support to specify UTC and offset separately to setCurrentTimeAsync\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\n\nnamespace Kazyx.RemoteApi.System\n{\n public class SystemApiClient : ApiClient\n {\n /// <summary>\n ...
c#
chosen
[ { "from": "system", "value": "Trim down data returned from API\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net;\nusing System.Web.Http;\nusing AutoMapper;\nusing Umbraco.Core.Models;\nusing Umbraco.Web.Models.ContentEditi...
c#
chosen
[ { "from": "system", "value": "Rollback mistakenly committed commented lines\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Reflection;\nusing Foundation;\nusing UIKit;\n\nusing Xunit.Runner;\nusing Xunit.Ru...
c#
chosen
[ { "from": "system", "value": "Revert \"revert logging config causing bug\"\n\nThis reverts commit 9f927daf453041b8955e372506943a2c80c198d9.\n" }, { "from": "human", "value": "using FilterLists.Api.DependencyInjection.Extensions;\nusing FilterLists.Data.DependencyInjection.Extensions;\nusing Fil...
c#
chosen
[ { "from": "system", "value": "Remove line that shouldn't have been added yet\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.Collecti...
c#
chosen
[ { "from": "system", "value": "Fix bug when moving between pages executing on UI thread.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Data.Services.Client;\nusing System.Linq;\nusing System.Threading.Tasks;\n\nnamespace PackageExplorerViewMode...
c#
chosen
[ { "from": "system", "value": "Add the all-important = sign to make arg passing work\n" }, { "from": "human", "value": "// Copyright 2016-2017 Datalust Pty Ltd\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the Li...
c#
chosen
[ { "from": "system", "value": "Make proeprty setters private if they are not being used\n" }, { "from": "human", "value": "using System;\n\nnamespace MiniWebDeploy.Deployer.Features.Discovery\n{\n public class AssemblyDetails\n {\n public string Path { get; set; }\n public str...
c#
chosen
[ { "from": "system", "value": "Add support for metadata on BankAccount creation\n" }, { "from": "human", "value": "namespace Stripe\n{\n using Newtonsoft.Json;\n using Stripe.Infrastructure;\n\n public class BankAccountCreateOptions : BaseOptions\n {\n /// <summary>\n //...
c#
chosen
[ { "from": "system", "value": "Add space to commit again.\n" }, { "from": "human", "value": "@model SvNaum.Web.Models.NewsInputModel\n\n@{\n this.ViewBag.Title = \"Add news\";\n}\n\n<h2>Create news:</h2>\n\n@using(Html.BeginForm(\"NewsAdd\", \"Admin\", FormMethod.Post))\n{\n @Html.AntiForg...
c#
chosen
[ { "from": "system", "value": "Switch from record to record class\n" }, { "from": "human", "value": "namespace ApiTemplate\n{\n using System.Reflection;\n\n public record AssemblyInformation(string Product, string Description, string Version)\n {\n public static readonly AssemblyI...
c#
chosen
[ { "from": "system", "value": "Use TryAdd to add services rather than Add\n" }, { "from": "human", "value": "// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.\n// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\...
c#
chosen
[ { "from": "system", "value": "Change from == null to is null in NodaTime.Testing\n" }, { "from": "human", "value": "// Copyright 2013 The Noda Time Authors. All rights reserved.\n// Use of this source code is governed by the Apache License 2.0,\n// as found in the LICENSE.txt file.\n\nusing Syst...
c#
chosen
[ { "from": "system", "value": "Remove setters from Id and Type\n" }, { "from": "human", "value": "using Newtonsoft.Json;\nusing Newtonsoft.Json.Serialization;\nusing Telegram.Bot.Types.ReplyMarkups;\n\nnamespace Telegram.Bot.Types.InlineQueryResults\n{\n /// <summary>\n /// Base Class for i...
c#
chosen
[ { "from": "system", "value": "Add a using and set the position of the stream\n" }, { "from": "human", "value": "namespace Pigeon\n{\n using System.Linq;\n using System.Net.Mail;\n\n using Pigeon.Adapters;\n\n public class Mailer\n {\n private readonly IMailService mailServ...
c#
chosen
[ { "from": "system", "value": "Add permissions to sample app\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\nusing Android.App;\n\n// General Information about an assembly is controlled through the follow...
c#
chosen
[ { "from": "system", "value": "Connect a NetIRC client to the server\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace cah\n{\n class Program\n {\n static void Main(...
c#
chosen
[ { "from": "system", "value": "Add ProvideLanguageExtension to markdown formats\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Runtime.InteropServices;\nusing Microsoft.Markdown.Editor.ContentTypes;\nusing Microsoft.VisualStudio.R.Package.Packag...
c#
chosen
[ { "from": "system", "value": "Revert orleans for backwards compatibility.\n" }, { "from": "human", "value": "// ==========================================================================\n// Squidex Headless CMS\n// ==========================================================================\n//...
c#
chosen
[ { "from": "system", "value": "Add bad know-how for NotifyIcon\n" }, { "from": "human", "value": "using System;\nusing System.Windows.Forms;\n\nnamespace COIME.Common.Control\n{\n public class NotifyIconUtil\n {\n /// <summary>\n /// Setup NotifyIcon.\n /// The icon ad...
c#
chosen
[ { "from": "system", "value": "Update helper for the case when you want to find a node in structured trivia.\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license info...
c#
chosen
[ { "from": "system", "value": "Fix multi-input controller not adding tilt.\n\nTested on Android.\n\nChange-Id: I2aad833effbe743a9915ae7dc899feed677a60ec\n" }, { "from": "human", "value": "// Copyright 2017 Google Inc. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (t...
c#
chosen
[ { "from": "system", "value": "Add sync Run helper to sort fields visitor\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\nusing Foundatio.Parsers.LuceneQueries.Extensions;\nusing Foundatio.Parsers.LuceneQueries.Nodes;\nusing Fou...
c#
chosen
[ { "from": "system", "value": "Delete scheduled task when content is published\n\nFixes #6840" }, { "from": "human", "value": "using Orchard.ContentManagement.Handlers;\nusing Orchard.PublishLater.Models;\nusing Orchard.PublishLater.Services;\nusing Orchard.Tasks.Scheduling;\n\nnamespace Orchard...
c#
chosen
[ { "from": "system", "value": "Remove exceptions from character extensions\n" }, { "from": "human", "value": "// Original Work Copyright (c) Ethan Moffat 2014-2016\n// This file is subject to the GPL v2 License\n// For additional details, see the LICENSE file\n\nusing System;\nusing System.Linq;...
c#
chosen
[ { "from": "system", "value": "Make Search Operator automatically parsed by MVC.\n" }, { "from": "human", "value": "using System;\nusing System.Web.Mvc;\n\nusing TeacherPouch.Models;\nusing TeacherPouch.Providers;\nusing TeacherPouch.Repositories;\n\nnamespace TeacherPouch.Web.Controllers\n{\n ...
c#
chosen
[ { "from": "system", "value": "Change over usage of IAgentStartup to use IAgentStartupManager instead\n" }, { "from": "human", "value": "using System.Linq;\nusing Glimpse.Web;\nusing Microsoft.AspNet.Builder;\nusing Microsoft.Framework.DependencyInjection;\n\nnamespace Glimpse.Agent.Web\n{\n p...
c#
chosen
[ { "from": "system", "value": "Stop hover sounds from playing when dragging (scrolling)\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.A...
c#
chosen
[ { "from": "system", "value": "Stop all watchers when exiting\n" }, { "from": "human", "value": "using System;\nusing FSWActions.Core;\nusing FSWActions.Core.Config;\n\nnamespace FSWActions.ConsoleApplication\n{\n class Program\n {\n static void Main(string[] args)\n {\n ...
c#
chosen
[ { "from": "system", "value": "Use ToString in converter instead of boxing-cast\n\nIn cases where Discord sent a value of `id=0`, this would throw an invalid-cast, where 0u64 cannot be cast to string." }, { "from": "human", "value": "using Newtonsoft.Json;\nusing System;\nusing System.Globalizat...
c#
chosen
[ { "from": "system", "value": "Convert all of these SymbolInfo extensions to ImmutableArray and reduce allocations.\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for licen...
c#
chosen