conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix for Binding singleton to instance.\n" }, { "from": "human", "value": "using System;\n\nnamespace CmnTools.Suice\n{\n /// <summary>\n /// @author DisTurBinG\n /// </summary>\n\tpublic class SingletonProvider : AbstractProvider\n\t{\n\t\tinternal object I...
c#
chosen
[ { "from": "system", "value": "Fix NullReference when using T4MVC\n\nT4MVC tries using the TwilioResponse constructor for the TwiMLResult object when generating the URL using URL.Action which causes a Runtime Exception.\r\n\r\nMore details can be found at https://t4mvc.codeplex.com/workitem/22" }, { ...
c#
chosen
[ { "from": "system", "value": "Fix a bug of wrong counting characters with HTTPS URL\n\nrefs karno/Mystique#38\n" }, { "from": "human", "value": "using System.Linq;\nusing System.Text.RegularExpressions;\n\nnamespace Inscribe.Text\n{\n public static class TweetTextCounter\n {\n publ...
c#
chosen
[ { "from": "system", "value": "Add problem function (with IsMacroType=true)\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.Text;\nusing ExcelDna.Integration;\n\nnamespace RtdArrayTest\n{\n public...
c#
chosen
[ { "from": "system", "value": "Use transform.Find instead of deprecated transform.FindChild\n" }, { "from": "human", "value": "// This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus).\n// It is released for free under the MIT op...
c#
chosen
[ { "from": "system", "value": "Add test description and fix param order in Assert call\n" }, { "from": "human", "value": "using NUnit.Framework;\n\nnamespace FullSerializer.Tests.InitialInstance {\n public class SimpleModel {\n public int A;\n }\n\n public class InitialInstanceTe...
c#
chosen
[ { "from": "system", "value": "Change assembly version from 2.0.0.0 to 2.0.*\n" }, { "from": "human", "value": "using System.Resources;\nusing System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General Information about an assembly is controll...
c#
chosen
[ { "from": "system", "value": "Use empty stopwords set when the default stopwords file is missing.\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.IO;\n\nnamespace JiebaNet.Analyser\n{\n public abstract class KeywordExtractor\n {\n protected static...
c#
chosen
[ { "from": "system", "value": "Fix up InternalsVisibleTo to new name\n" }, { "from": "human", "value": "using System;\nusing System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n[assembly: AssemblyVersion(SolutionInfo.Version + \".0\")]\n[assembly: ...
c#
chosen
[ { "from": "system", "value": "Make SourceRectangle nullable so it doesn't crash.\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 EOLib;\nusing Micros...
c#
chosen
[ { "from": "system", "value": "Make foreign key converter thread-safe.\n" }, { "from": "human", "value": "using System;\nusing Newtonsoft.Json;\n\nnamespace Toggl.Phoebe.Data\n{\n public class ForeignKeyJsonConverter : JsonConverter\n {\n public override void WriteJson (JsonWriter w...
c#
chosen
[ { "from": "system", "value": "Implement rest call to get teams.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing Newtonsoft.Json;\nusing OutlookMatters.Core.Http;\nusing OutlookMatters.Core.Mattermost.v4.Interface;\n\nnamespace OutlookMatters.Core.Matte...
c#
chosen
[ { "from": "system", "value": "Fix import error in demo.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing Demo.Endpoints;\nusing Distributor;\n\nnamespace Demo\n{\n internal class Program\n {\n private static void Main(string[] args)\n ...
c#
chosen
[ { "from": "system", "value": "Swap human/zombie spawn input so you can spawn zombies on touch screens\n" }, { "from": "human", "value": "using UnityEngine;\nusing UnityEngine.EventSystems;\nusing System.Collections;\n\npublic class UserInput : MonoBehaviour, IPointerClickHandler {\n\n//\tvoid S...
c#
chosen
[ { "from": "system", "value": "Replace default parameter with overload\n" }, { "from": "human", "value": "namespace Mappy.UI.Drawables\r\n{\r\n using System;\r\n using System.Drawing;\r\n\r\n public class DrawableBandbox : IDrawable, IDisposable\r\n {\r\n private readonly Brus...
c#
chosen
[ { "from": "system", "value": "Increase version to 1.9 to reflect the new AdhocQuery capability change.\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General Information about an assembly is contro...
c#
chosen
[ { "from": "system", "value": "Handle IPv4 Address and IPv6 Address\n" }, { "from": "human", "value": "namespace McIP\n{\n using System;\n using System.Diagnostics;\n using System.IO;\n\n public static class Program\n {\n public static void Main()\n {\n va...
c#
chosen
[ { "from": "system", "value": "Create server side API for single multiple answer question\n" }, { "from": "human", "value": "using Microsoft.AspNetCore.Mvc;\nusing Promact.Trappist.DomainModel.ApplicationClasses;\nusing Promact.Trappist.Repository.Questions;\nusing System;\n\n\nnamespace Promact...
c#
chosen
[ { "from": "system", "value": "Remove timezone specification for scheduled triggers to use server timezone\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;\n...
c#
chosen
[ { "from": "system", "value": "Change char to byte in gaf frame header\n" }, { "from": "human", "value": "namespace TAUtil.Gaf.Structures\r\n{\r\n using System.IO;\r\n\r\n public struct GafFrameData\r\n {\r\n public ushort Width;\r\n public ushort Height;\r\n public...
c#
chosen
[ { "from": "system", "value": "Make SplitTrimmed give empty list when given white-space-only string\n" }, { "from": "human", "value": "using System.Collections.Generic;\n\nnamespace Palaso.Extensions\n{\n\tpublic static class StringExtensions\n\t{\n\t\tpublic static List<string> SplitTrimmed(this...
c#
chosen
[ { "from": "system", "value": "Make sure password validation works after saving\n" }, { "from": "human", "value": "namespace Snittlistan.Test\r\n{\r\n using System.IO;\r\n using System.Text;\r\n using Models;\r\n using Raven.Imports.Newtonsoft.Json;\r\n using Xunit;\r\n\r\n pub...
c#
chosen
[ { "from": "system", "value": "Fix bug in the StringCollection converter when DataServicePackage.Authors is a simple string.\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Windows.Data;\r\n\r\nnamespace NuPack.Dialog.PackageManagerUI {\r\n\r...
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": "Fix Destroy compile time error\n\nProject refused to build post upgrade to 0.30.0.\r\n\r\nError:\r\nerror CS0103: The name `Destroy' does not exist in the current context" }, { "from": "human", "value": "using UnityEngine;\n\nnamespace Entitas.Unity.VisualDebugging...
c#
chosen
[ { "from": "system", "value": "Handle null id for Cars/Details action\n\nIf users don't supply id value in the URL,\ninstead of displaying YSOD, we are now return BadRequest.\n" }, { "from": "human", "value": "using CarFuel.DataAccess;\nusing CarFuel.Models;\nusing CarFuel.Services;\nusing Micro...
c#
chosen
[ { "from": "system", "value": "Fix data migration code for UserRecord\n\nIssue came from last merge from Default...\n\n--HG--\nbranch : dev\n" }, { "from": "human", "value": "using Orchard.Data.Migration;\r\n\r\nnamespace Orchard.Users.DataMigrations {\r\n public class UsersDataMigration : Da...
c#
chosen
[ { "from": "system", "value": "Support list of hints per problem\n" }, { "from": "human", "value": "using System;\nnamespace CITS.Models\n{\n public class MathProblemModel : ProblemModel\n {\n public MathProblemModel(string Problem, string Solution):base(Problem,Solution){}\n\n ...
c#
chosen
[ { "from": "system", "value": "Update TypeCatalogParser for CoreConsoleHost removal\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Linq;\nusing NuGet.Frameworks;\nusing Microsoft.DotNet.Cli.Utils;\nusing Microsoft.DotNet.ProjectModel;\nusing Microsoft.DotNet.Proj...
c#
chosen
[ { "from": "system", "value": "Disable the disable mouse script for now\n" }, { "from": "human", "value": "\nusing UnityEngine;\nusing UnityEngine.EventSystems;\n\nclass DisableMouse : MonoBehaviour\n{\n\t// private stuff we don't want the editor to see\n\tprivate GameObject m_lastSelectedGameOb...
c#
chosen
[ { "from": "system", "value": "Update interface for return type\n" }, { "from": "human", "value": "using com.techphernalia.MyPersonalAccounts.Model.Inventory;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace com.techphernalia.MyPersonalAccoun...
c#
chosen
[ { "from": "system", "value": "Add documentation for episode ids.\n" }, { "from": "human", "value": "namespace TraktApiSharp.Objects.Get.Shows.Episodes\n{\n using Basic;\n\n public class TraktEpisodeIds : TraktIds\n {\n\n }\n}\n" }, { "from": "gpt", "value": "namespace T...
c#
chosen
[ { "from": "system", "value": "Fix DomainException LogError parameter order\n" }, { "from": "human", "value": "namespace GeekLearning.Domain.AspnetCore\n{\n using Microsoft.AspNetCore.Mvc.Filters;\n using Microsoft.Extensions.Logging;\n using Microsoft.Extensions.Options;\n\n public ...
c#
chosen
[ { "from": "system", "value": "Fix score retrieval no longer working\n" }, { "from": "human", "value": "// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.\n// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE\n\nusing System;\nusing System.Collection...
c#
chosen
[ { "from": "system", "value": "Enable testing in emulated or actual device mode\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Threading;\r\nusing System.Threading.Tasks;\r\n\r\nnamespace xwalk\r\n...
c#
chosen
[ { "from": "system", "value": "Enable the user to choose PNG file as thumbnail.\n" }, { "from": "human", "value": "using Lbookshelf.Models;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing System.Win...
c#
chosen
[ { "from": "system", "value": "[Build] Fix compilation error in sample\n" }, { "from": "human", "value": "// Copyright (c) 2010-2012 SharpDX - Alexandre Mutel\n// \n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation f...
c#
chosen
[ { "from": "system", "value": "Add method ToString to override default display and replace by Caption\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\n\r\nnamespace NBi.Core.Analysis.Metadata\r\n{\r\n public c...
c#
chosen
[ { "from": "system", "value": "Add test files to tree\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing NXTLib;\nusing System.IO;\n\nnamespace nxtlibtester\n{\n class Program\n {...
c#
chosen
[ { "from": "system", "value": "Revert \"Dummy commit to test PR. No real changes\"\n\nThis reverts commit 3fcee5225bbf877fb13cdbf87987bfada486cd76.\n" }, { "from": "human", "value": "namespace Microsoft.ApplicationInsights.Extensibility.Implementation.Platform\n{\n using Microsoft.Application...
c#
chosen
[ { "from": "system", "value": "Mark Activity and it's properties as Serializable\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 project roo...
c#
chosen
[ { "from": "system", "value": "Add some tests for a bug.\n" }, { "from": "human", "value": "using System.Linq;\r\nusing Xunit;\r\n\r\nnamespace Microsoft.Language.Xml.Tests\r\n{\r\n public class TestApi\r\n {\r\n [Fact]\r\n public void TestAttributeValue()\r\n {\r\n ...
c#
chosen
[ { "from": "system", "value": "Set nuget package version to 2.0.0-beta1\n" }, { "from": "human", "value": "using System.Reflection;\r\n\r\n[assembly: AssemblyCompany(\"Andrew Davey\")]\r\n[assembly: AssemblyProduct(\"Cassette\")]\r\n[assembly: AssemblyCopyright(\"Copyright © 2011 Andrew Davey\")...
c#
chosen
[ { "from": "system", "value": "Support added for HTML comment removal" }, { "from": "human", "value": "namespace DotnetThoughts.AspNet\n{\n using Microsoft.AspNet.Builder;\n using Microsoft.AspNet.Http;\n using System.IO;\n using System.Threading.Tasks;\n using System.Text;\n us...
c#
chosen
[ { "from": "system", "value": "Change Always(x) so that it doesn't depend on the 'true' literal\n" }, { "from": "human", "value": "using LogicalShift.Reason.Api;\nusing LogicalShift.Reason.Clauses;\nusing System;\nusing System.Linq;\n\nnamespace LogicalShift.Reason\n{\n /// <summary>\n ///...
c#
chosen
[ { "from": "system", "value": "Fix initial value not propagating\n\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;\n\nnamespac...
c#
chosen
[ { "from": "system", "value": "Remove trailing slashes from baseUrl in .NET to prevent double slashes in URL\n\nThis change is in the .NET WebDriverBackedSelenium API. Fixes issue #4506.\n\nSigned-off-by Jim Evans <james.h.evans.jr@gmail.com>\n" }, { "from": "human", "value": "using System;\nusin...
c#
chosen
[ { "from": "system", "value": "Add comment to Auth Login action describing redirect\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 Lice...
c#
chosen
[ { "from": "system", "value": "Use separator when joining string attributes" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Linq;\n\nnamespace SpotifyAPI.Web\n{\n public static class Util\n {\n public stati...
c#
chosen
[ { "from": "system", "value": "Implement IPropertyDescriptorInitializer to validate properties on initializing\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace HermaFx.Settings\...
c#
chosen
[ { "from": "system", "value": "Remove duplicates from sorted array II - Linq\n" }, { "from": "human", "value": "using System;\n\nstatic class Program {\n static int RemoveDupes(this int[] a) {\n int write = 1;\n int read = 0;\n bool same = false;\n int count = 0;\n ...
c#
chosen
[ { "from": "system", "value": "Store max combo in ScoreProcessor.\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/master/LICENCE\r\n\r\nusing System;\r\nusing System.Collect...
c#
chosen
[ { "from": "system", "value": "Include top left encoded targa in benchmark\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 ...
c#
chosen
[ { "from": "system", "value": "Set default value for no depot mode.\n" }, { "from": "human", "value": "\nusing MetroOverhaul.Detours;\nusing MetroOverhaul.OptionsFramework.Attibutes;\n\nnamespace MetroOverhaul\n{\n [Options(\"MetroOverhaul\")]\n public class Options\n {\n private...
c#
chosen
[ { "from": "system", "value": "Remove LocatorId generation code from DTO since the locator id will be generated by a SQL CLR function\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nname...
c#
chosen
[ { "from": "system", "value": "Fix - The -t command-line switch is optional. Use first argument if omitted.\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.IO;\r\nusing NDesk.Options;\r\n\r\nnamespace make\r\n{\r\n public class CommandLine...
c#
chosen
[ { "from": "system", "value": "Stop playing the track in editor\nto avoid unused member warning\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...
c#
chosen
[ { "from": "system", "value": "Change date type of MaxDownloadingItems to byte and change to get only\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing TirkxDownloader.Models;\n\nnamespace TirkxDownloader.Framework.Interface\n{\n public delegate void DownloadComplete...
c#
chosen
[ { "from": "system", "value": "Read connection string from configuration\n" }, { "from": "human", "value": "using System;\nusing Microsoft.WindowsAzure.Storage;\nusing Microsoft.WindowsAzure.Storage.Queue;\nusing Microsoft.Extensions.Configuration;\n\nnamespace QueueGettingStarted\n{\n public ...
c#
chosen
[ { "from": "system", "value": "Add UserName to LogEntries When Authenticated\n" }, { "from": "human", "value": "using LogBook.Services;\nusing LogBook.Services.Models;\nusing Portal.CMS.Web.Architecture.ViewEngines;\nusing System.Web.Mvc;\nusing System.Web.Optimization;\nusing System.Web.Razor;\...
c#
chosen
[ { "from": "system", "value": "Fix potential crash in old .NET versions\n\nApparently in older .NET the XML deserializer\ndoesn't like it when the type to be deserialized\nhas properties with private setters.\n\nhttps://stackoverflow.com/questions/891449/xmlserializer-and-collection-property-with-private-set...
c#
chosen
[ { "from": "system", "value": "Split out divider update in timer\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace elbgb.gameboy\n{\n\tclass Timer\n\t{\n\t\tpublic static class R...
c#
chosen
[ { "from": "system", "value": "Add image link to movie\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\n\nnamespace MeDaUmFilme\n{\n public class Movie\n {\n public string Title { get; set; }\n ...
c#
chosen
[ { "from": "system", "value": "Format file, remove outcommented code.\n" }, { "from": "human", "value": "using Microsoft.EntityFrameworkCore;\nusing Mitternacht.Services.Database;\n\nnamespace Mitternacht.Services\n{\n public class DbService\n {\n private readonly DbContextOptions _o...
c#
chosen
[ { "from": "system", "value": "Fix Log4Net path for loading config file\n\nThe Log4Net config file should be picked up from the base directory of\nthe current app domain so that when running as a windows service MT will\nload the log4net config file from the app directory and not a Windows\nsystem folder\n\n...
c#
chosen
[ { "from": "system", "value": "Update access modifiers for metadata class\n" }, { "from": "human", "value": "// TokenList.cs\r\n// Script#/Libraries/Web\r\n// This source code is subject to terms and conditions of the Apache License, Version 2.0.\r\n//\r\n\r\nusing System;\r\nusing System.Runtim...
c#
chosen
[ { "from": "system", "value": "Update interactive visual test runs to use development directory\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 di...
c#
chosen
[ { "from": "system", "value": "Update file version of DLL to match NuGet package.\n\nAlso remove the random component of the assembly version for easier runtime binding of clients.\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.R...
c#
chosen
[ { "from": "system", "value": "Fix default icon path when add new web search\n" }, { "from": "human", "value": "using System.IO;\nusing JetBrains.Annotations;\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Serialization;\n\nnamespace Wox.Plugin.WebSearch\n{\n public class WebSearch\n {\n ...
c#
chosen
[ { "from": "system", "value": "Introduce a retry machanism with the Blockchain API\n" }, { "from": "human", "value": "using MultiMiner.Blockchain.Data;\nusing MultiMiner.ExchangeApi;\nusing MultiMiner.ExchangeApi.Data;\nusing MultiMiner.Utility.Net;\nusing Newtonsoft.Json;\nusing System;\nusing ...
c#
chosen
[ { "from": "system", "value": "Fix the URL to point at the Noda Time blog because msmvps.com 503.\n" }, { "from": "human", "value": "// Copyright 2014 The Noda Time Authors. All rights reserved.\r\n// Use of this source code is governed by the Apache License 2.0,\r\n// as found in the LICENSE.tx...
c#
chosen
[ { "from": "system", "value": "Update Console Program with a Condition - Add unit test for Guest role\n" }, { "from": "human", "value": "using System;\nusing Microsoft.VisualStudio.TestTools.UnitTesting;\n\nnamespace Training.CSharpWorkshop.Tests\n{\n [TestClass]\n public class ProgramTest...
c#
chosen
[ { "from": "system", "value": "Fix showing only minutes of the hour insteal of total minutes in virtual table.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing Windows.UI.Xaml.Data;\n...
c#
chosen
[ { "from": "system", "value": "Fix broken migration for v11\n" }, { "from": "human", "value": "using System.Linq;\nusing MongoDB.Bson;\nusing MongoDB.Driver;\n\nnamespace Hangfire.Mongo.Migration.Steps.Version11\n{\n /// <summary>\n /// Create signal capped collection\n /// </summary>\n...
c#
chosen
[ { "from": "system", "value": "Update sample to use Save() and Load()\n\nSaveWsc() no longer existed at all, and LoadWsc() was marked obsolete" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.IO;\r\nusing System.Linq;\r\nusing System.Text;\r\nusi...
c#
chosen
[ { "from": "system", "value": "Add extension method to add a disposable to a composite disposable\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Reactive.Disposables;\nusing System.Text;\n\nnamespace SolidworksAddinFramework\n{\n public stati...
c#
chosen
[ { "from": "system", "value": "Use TabNavigation.Continue for top-level menu.\n" }, { "from": "human", "value": "// -----------------------------------------------------------------------\n// <copyright file=\"MenuStyle.cs\" company=\"Steven Kirk\">\n// Copyright 2015 MIT Licence. See licence.md...
c#
chosen
[ { "from": "system", "value": "Use Wait() instead of Result in void overload\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net.Http;\nusing System.Text;\nusing System.Threading.Tasks;\nusing Newtonsoft.Json;\n\nnamespace Bug...
c#
chosen
[ { "from": "system", "value": "Simplify view engine wrapping for MVC Core\n" }, { "from": "human", "value": "using Microsoft.AspNetCore.Mvc;\nusing Microsoft.Extensions.DependencyInjection;\nusing Microsoft.Extensions.Options;\nusing System.Linq;\n\nnamespace StackExchange.Profiling.Mvc\n{\n ...
c#
chosen
[ { "from": "system", "value": "Add some tests for string extension.\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;\nusing System.Collecti...
c#
chosen
[ { "from": "system", "value": "Add handling for non breaking spaces\n" }, { "from": "human", "value": "// --------------------------------------------------------------------------------------------------------------------\n// <copyright file=\"StrikeMarkdownProvider.cs\" company=\"PicklesDoc\...
c#
chosen
[ { "from": "system", "value": "Fix bug spotted with Gendarme. Assign the value of 'successful'.\n\nsvn path=/trunk/bitsharp/; revision=108325\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing MonoTorrent.BEncoding;\n\nnamespace MonoTorrent.Client.Tracker\n...
c#
chosen
[ { "from": "system", "value": "Add constrained and tail call methods, and remove virtual from method names, as constrained implies virtual\n" }, { "from": "human", "value": "using System;\nusing System.Reflection;\nusing System.Reflection.Emit;\n\nnamespace ILGeneratorExtensions\n{\n public s...
c#
chosen
[ { "from": "system", "value": "Disable space shortcut in audio controller\n" }, { "from": "human", "value": "using UnityEngine;\nusing Animator = ATP.AnimationPathTools.AnimatorComponent.Animator;\n\nnamespace ATP.AnimationPathTools.AudioSourceControllerComponent {\n\n /// <summary>\n /// ...
c#
chosen
[ { "from": "system", "value": "Add method to create client optimised for write\n" }, { "from": "human", "value": "using System;\nusing Cake.Core;\nusing Microsoft.Azure.Documents.Client;\nusing Microsoft.Azure.Documents.Client.TransientFaultHandling;\nusing Microsoft.Practices.EnterpriseLibrary....
c#
chosen
[ { "from": "system", "value": "Make LINQ in playlist function fancier (because why not)\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.IO;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing S...
c#
chosen
[ { "from": "system", "value": "Set AssemblyVersion and AssemblyFileVersion to 1.0.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 f...
c#
chosen
[ { "from": "system", "value": "Change derived symbols type name to an internal const\n" }, { "from": "human", "value": "using Microsoft.TemplateEngine.Abstractions;\nusing Newtonsoft.Json.Linq;\n\nnamespace Microsoft.TemplateEngine.Orchestrator.RunnableProjects\n{\n public class DerivedSymbol ...
c#
chosen
[ { "from": "system", "value": "Add uploading of coverage reports to Coveralls\n" }, { "from": "human", "value": "Task(\"DevBuild\")\n .IsDependentOn(\"Build\")\n .IsDependentOn(\"Octopus-Packaging\")\n .IsDependentOn(\"Octopus-Deployment\");\n\nTask(\"PrBuild\")\n .IsDependentOn(\"Bui...
c#
chosen
[ { "from": "system", "value": "Clarify error throw when Command has no name string provided\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\n\nnamespace EntryPoint {\n\n /// <summary>\n /// Used to mark ...
c#
chosen
[ { "from": "system", "value": "Fix assembly load for plugins\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Reflection;\n\nnamespace AIMP.SDK\n{\n internal static class CustomAssemblyResolver\n {\n private static string curPath;\n private sta...
c#
chosen
[ { "from": "system", "value": "Move the speech_quickstart doc tag so that users can copy and paste all the code.\n" }, { "from": "human", "value": "/*\r\n * Copyright (c) 2017 Google Inc.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\r\n * use this fil...
c#
chosen
[ { "from": "system", "value": "Add tags to playlist location\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Xml.Serialization;\r\n\r\nnamespace SevenDigital.Api.Schema.Playlists.Response\r\n{\r\n\t[Serializable]\r\n\tpublic class PlaylistLoc...
c#
chosen
[ { "from": "system", "value": "Fix wildcard path in bootstrap js bundle\n" }, { "from": "human", "value": "// --------------------------------------------------------------------------------------------------------------------\n// <copyright file=\"BundleConfig.cs\" company=\"KriaSoft LLC\">\n//...
c#
chosen
[ { "from": "system", "value": "Write value separators when serializing dynamic body\n" }, { "from": "human", "value": "using System.Collections.Generic;\n\nnamespace Elasticsearch.Net\n{\n\tinternal class DynamicBodyFormatter : IJsonFormatter<DynamicBody>\n\t{\n\t\tprivate static readonly Diction...
c#
chosen
[ { "from": "system", "value": "Reduce unnecessary logging of missing optional methods\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Reflection;\n\nnamespace Harmony\n{\n\tinternal static class PatchTools\n\t{\n\t\tstatic read...
c#
chosen
[ { "from": "system", "value": "Fix bug with logic for if the token is valid\n\n" }, { "from": "human", "value": "using System;\nusing Newtonsoft.Json;\n\nnamespace Stranne.VasttrafikNET.Models\n{\n internal class Token\n {\n private DateTimeOffset _createDate = DateTimeOffset.Now;\n...
c#
chosen
[ { "from": "system", "value": "Raise rating of gif search\n" }, { "from": "human", "value": "namespace awesome_bot.Giphy\n{\n public static partial class GiphyEndPoints\n {\n public class RandomEndPoint\n {\n private const string RandomPath = \"/v1/gifs/random\";\n\...
c#
chosen
[ { "from": "system", "value": "Add JsonProperty attribute on each property\n" }, { "from": "human", "value": "namespace Aliencube.ReCaptcha.Wrapper.Mvc.Parameters\n{\n /// <summary>\n /// This represents the parameters entity to render api.js.\n /// </summary>\n /// <remarks>More deta...
c#
chosen
[ { "from": "system", "value": "Add more supported image extensions\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Windows.Media.Imaging;\n\nnamespace DesktopWidgets.Helpers\n{\n public static class ImageHelper\n {\n public static re...
c#
chosen