conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add more shell unit test\n"
},
{
"from": "human",
"value": "using System.IO;\nusing System.Linq;\nusing Microsoft.VisualStudio.TestTools.UnitTesting;\n\nnamespace LiteDB.Tests.Engine\n{\n [TestClass]\n public class Shell_Tests\n {\n [TestMethod]\n ... | c# | chosen |
[
{
"from": "system",
"value": "Fix osu! playfield (was using inheriting sizemode when it shouldn't).\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\nus... | c# | chosen |
[
{
"from": "system",
"value": "Fix silent failure when using metamethods on an object without an attached state\n"
},
{
"from": "human",
"value": "using System.Collections.Generic;\n\nnamespace Mond.VirtualMachine\n{\n class Object\n {\n public readonly Dictionary<MondValue, MondVal... | c# | chosen |
[
{
"from": "system",
"value": "Create doc store or embedded doc\n"
},
{
"from": "human",
"value": "using Raven.Client;\nusing Raven.Client.Embedded;\nusing fn = qed.Functions;\n\nnamespace qed\n{\n public static partial class Functions\n {\n public static IDocumentStore GetRavenStor... | c# | chosen |
[
{
"from": "system",
"value": "Extend NetworkingProxy to support listener socket endpoints besides \"any\".\n"
},
{
"from": "human",
"value": "using System.IO;\nusing System.Net.Sockets;\n\nnamespace ItzWarty.Networking {\n public interface INetworkingProxy {\n IConnectedSocket CreateConn... | c# | chosen |
[
{
"from": "system",
"value": "Print ffplay output to the console in debug builds\n"
},
{
"from": "human",
"value": "using System;\nusing System.Diagnostics;\nusing System.IO;\n\nnamespace WebMConverter\n{\n class FFplay : Process\n {\n public string FFplayPath = Path.Combine(Enviro... | c# | chosen |
[
{
"from": "system",
"value": "Make log4net appender render the log event (as zero log is rendering it, the comparison wouldn't be fair otherwise)\n"
},
{
"from": "human",
"value": "using System.Collections.Generic;\nusing System.Threading;\nusing log4net.Appender;\nusing log4net.Core;\n\nnamesp... | c# | chosen |
[
{
"from": "system",
"value": "Change seeding of topic categories\n"
},
{
"from": "human",
"value": "using Skoodle.Models;\nusing System.Data.Entity;\n\nnamespace Skoodle.App_Start\n{\n public class CustomInitializer: DropCreateDatabaseAlways<ApplicationDbContext>\n {\n protected ov... | c# | chosen |
[
{
"from": "system",
"value": "Update Console Program with a Condition - Rename GetRoleMessageTest to GetRoleMessageForAdminTest so it is more specific\n"
},
{
"from": "human",
"value": "using System;\nusing Microsoft.VisualStudio.TestTools.UnitTesting;\n\nnamespace Training.CSharpWorkshop.Tests... | c# | chosen |
[
{
"from": "system",
"value": "Use chrome instead of chromium on Ubuntu\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;\nusi... | c# | chosen |
[
{
"from": "system",
"value": "Add WebInvoke to demonstrate how to post.\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Runtime.Serialization;\nusing System.ServiceModel;\nusing System.ServiceModel.Activation;\nusing System.S... | c# | chosen |
[
{
"from": "system",
"value": "Print MOTD in the screen only\n"
},
{
"from": "human",
"value": "using System.Collections.Concurrent;\nusing LmpClient.Base;\nusing LmpClient.Base.Interface;\nusing LmpClient.Systems.Chat;\nusing LmpCommon.Message.Data.Motd;\nusing LmpCommon.Message.Interface;\n\nn... | c# | chosen |
[
{
"from": "system",
"value": "Make planet update dependent components.\n"
},
{
"from": "human",
"value": "using UnityEngine;\n\npublic class Planet : MonoBehaviour {\n [SerializeField]\n private float _radius;\n\n public float Radius {\n get { return _radius; }\n set { _r... | c# | chosen |
[
{
"from": "system",
"value": "Remove logs link, never worked right\n"
},
{
"from": "human",
"value": "using BatteryCommander.Web.Models;\nusing Microsoft.AspNetCore.Authorization;\nusing Microsoft.AspNetCore.Mvc;\nusing System;\nusing System.IO;\n\nnamespace BatteryCommander.Web.Controllers\n{\... | c# | chosen |
[
{
"from": "system",
"value": "Fix incorrect formatting of time stamps\n"
},
{
"from": "human",
"value": "using Newtonsoft.Json;\nusing Swashbuckle.Swagger;\nusing System;\nusing System.Globalization;\nusing System.Linq;\nusing System.Reflection;\nusing Zinc.Json;\n\nnamespace Zinc.WebServices\n... | c# | chosen |
[
{
"from": "system",
"value": "Change Russian to Русский for the language selector\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace Wox.Core.i18n\n{\n internal static class AvailableLanguages\n {\n ... | c# | chosen |
[
{
"from": "system",
"value": "Fix potential thread safety issue in viewmodelbase.cs\n"
},
{
"from": "human",
"value": "using System.ComponentModel;\nusing System.Runtime.CompilerServices;\nusing NDC2015.Annotations;\n\nnamespace NDC2015\n{\n public class ViewModelBase : INotifyPropertyChange... | c# | chosen |
[
{
"from": "system",
"value": "Rename params to match convention\n"
},
{
"from": "human",
"value": "using System.Collections.Generic;\nnamespace CefSharp\n{\n public interface IDialogHandler\n {\n bool OnOpenFile(IWebBrowser browser, string title, string default_file_name, List<stri... | c# | chosen |
[
{
"from": "system",
"value": "Add datetime prefix to dumped file name if texture didn't have name\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Text.RegularExpressions;\nusing ColossalFramework.Plugins;\nu... | c# | chosen |
[
{
"from": "system",
"value": "Add a diagnostic tool for myself.\n"
},
{
"from": "human",
"value": "//using UnityEditor;\n//using UnityEngine;\n//using System.Collections;\nusing System.Diagnostics;\n\npublic class ShellHelpers {\n public static Process StartProcess(string filename, string argum... | c# | chosen |
[
{
"from": "system",
"value": "Make the \"type\" attribute available from GenerateScript\n"
},
{
"from": "human",
"value": "using System.Collections.Generic;\n\nnamespace MR.AspNet.Deps\n{\n\tpublic class OutputHelper\n\t{\n\t\tprivate List<Element> _elements = new List<Element>();\n\n\t\tpublic... | c# | chosen |
[
{
"from": "system",
"value": "Update resource to handle message strings\n"
},
{
"from": "human",
"value": "using System.Collections.Generic;\nusing System.Threading.Tasks;\nusing Microsoft.AspNet.Http;\nusing Microsoft.Net.Http.Headers;\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Serializati... | c# | chosen |
[
{
"from": "system",
"value": "Fix connection bug to PGSQL\n\nWhen try to connect to PGSQL without custom ConnectionString parameter, you get error: \"Keyword not supported: data source.\"\r\n\r\nMade changes according to Npgsql documentation:\r\n http://www.npgsql.org/doc/connection-string-parameters.htm... | c# | chosen |
[
{
"from": "system",
"value": "Write new progress bar on top of the old one\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing ICSharpCode.SharpZipLib.Tar;\n\nnamespace AppHarbor\n{\n\tpublic static class CompressionEx... | c# | chosen |
[
{
"from": "system",
"value": "Clear console before game starts\n"
},
{
"from": "human",
"value": "using System;\nusing System.IO;\n\nnamespace Hangman {\n public class Hangman {\n public static void Main(string[] args) {\n var wordGenerator = new RandomWord();\n var word = wordGene... | c# | chosen |
[
{
"from": "system",
"value": "Remove dlls from startup check.\n\nthese are now embedded in exe"
},
{
"from": "human",
"value": "using System;\nusing System.IO;\nusing System.Windows.Forms;\n\nnamespace osu_StreamCompanion.Code.Misc\n{\n class FileChecker\n {\n private string[] _req... | c# | chosen |
[
{
"from": "system",
"value": "Fix using private constructor on MessagePack object\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 Messa... | c# | chosen |
[
{
"from": "system",
"value": "Fix Basic tests\n(angularjs.org site has been updated)\n"
},
{
"from": "human",
"value": "using System;\nusing NUnit.Framework;\nusing OpenQA.Selenium;\nusing OpenQA.Selenium.PhantomJS;\nusing OpenQA.Selenium.Chrome;\n\nnamespace Protractor.Samples.Basic\n{\n [T... | c# | chosen |
[
{
"from": "system",
"value": "Fix ios throwing NotImplementedException when deserializing StripeCharge\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\n\nnamespace Stripe.Infrastructure\n{\n internal cla... | c# | chosen |
[
{
"from": "system",
"value": "Print the texts of each row\n"
},
{
"from": "human",
"value": "using System;\n\nnamespace Hangman {\n public class Table {\n public int Width;\n public int Spacing;\n public Row[] Rows;\n\n public Table(int width, int spacing, Row[] rows) {\n Width... | c# | chosen |
[
{
"from": "system",
"value": "Make Razor the only ViewEngine\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.Mvc;\nusing System.Web.Optimization;\nusing System.Web.Routing;\n\nnamespace MotivateMe.Web\n... | c# | chosen |
[
{
"from": "system",
"value": "[MarkdownView] Add missing EmitCloseList to backend\n"
},
{
"from": "human",
"value": "//\n// IMarkdownViewBackend.cs\n//\n// Author:\n// Jérémie Laval <jeremie.laval@xamarin.com>\n//\n// Copyright (c) 2012 Xamarin, Inc.\nusing System;\n\nnamespace Xwt.Backend... | c# | chosen |
[
{
"from": "system",
"value": "Disable SSL (for now) - attempting to diagnose SSL/TLS error\n"
},
{
"from": "human",
"value": "using MultiMiner.Blockchain.Data;\nusing MultiMiner.ExchangeApi;\nusing MultiMiner.ExchangeApi.Data;\nusing MultiMiner.Utility.Net;\nusing Newtonsoft.Json;\nusing System... | c# | chosen |
[
{
"from": "system",
"value": "Fix DisposeValueIfCreated to be extension method\n"
},
{
"from": "human",
"value": "using System;\n\nnamespace OpenMagic.Extensions\n{\n public static class LazyExtensions\n {\n public static void DisposeValueIfCreated<T>(Lazy<T> obj) where T : IDispos... | c# | chosen |
[
{
"from": "system",
"value": "Test that 'true' unifies correctly\n"
},
{
"from": "human",
"value": "using LogicalShift.Reason.Api;\nusing NUnit.Framework;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace LogicalShift.Reason.Tests\n{\n [TestFixture]\n publ... | c# | chosen |
[
{
"from": "system",
"value": "Trim Request Body to 4096 characters if it is longer.\n"
},
{
"from": "human",
"value": "using System.Net.Http;\n\nnamespace Mindscape.Raygun4Net.WebApi\n{\n public class RaygunWebApiDelegatingHandler : DelegatingHandler\n {\n public const string RequestBodyKe... | c# | chosen |
[
{
"from": "system",
"value": "Fix test to run with the NUnitLite in our Integration Tests on IOS\n"
},
{
"from": "human",
"value": "using NUnit.Framework;\nusing RealmNet;\nusing System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Text;\n\nnamespace In... | c# | chosen |
[
{
"from": "system",
"value": "Move OpenFileDialog initialization inside try block\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... | c# | chosen |
[
{
"from": "system",
"value": "Add license to new file\n"
},
{
"from": "human",
"value": "using System;\r\n\r\nnamespace Huxley.Models {\r\n public class DelaysResponse {\r\n public DateTime GeneratedAt { get; set; }\r\n public string LocationName { get; set; }\r\n public... | c# | chosen |
[
{
"from": "system",
"value": "Update SkillController.cs\n - add \"Edit\" action\n - add \"GetSkillByIdQueryHandler\"\n"
},
{
"from": "human",
"value": "using System;\nusing System.Web.Mvc;\nusing NinjaHive.Contract.Commands;\nusing NinjaHive.Contract.DTOs;\nusing NinjaHive.Contract.Querie... | c# | chosen |
[
{
"from": "system",
"value": "Add methods to get the overriden values, or use a default value if not overridden. Make them extension methods so that we can call them on null objects.\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing S... | c# | chosen |
[
{
"from": "system",
"value": "Make cursor test scene more automated\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 System.Collections... | c# | chosen |
[
{
"from": "system",
"value": "Add Version string to package for support for yaml script\n"
},
{
"from": "human",
"value": "using System;\nusing System.Runtime.InteropServices;\nusing EnvDTE;\nusing EnvDTE80;\nusing Microsoft.VisualStudio.Shell;\nusing Microsoft.VisualStudio.Shell.Interop;\n\nna... | c# | chosen |
[
{
"from": "system",
"value": "Change PropertyAsObservable to return a BehaviorSubject\n\nThis is basically a revert to the previous implementation,\nbut with a concrete return type.\n"
},
{
"from": "human",
"value": "namespace Mappy\r\n{\r\n using System;\r\n using System.ComponentModel;\... | c# | chosen |
[
{
"from": "system",
"value": "Use flag instead of `StreamWriter` changes\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.IO;\n\nnamespace osu.F... | c# | chosen |
[
{
"from": "system",
"value": "Update the assembly information to add the right owners to the package.\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": "Update tests for loose mode\n"
},
{
"from": "human",
"value": "using System;\nusing Xunit;\nusing Xunit.Extensions;\n\nnamespace SemVer.Tests\n{\n public class LooseMode\n {\n [Theory]\n [InlineData(\"=1.2.3\", \"1.2.3\")]\n [InlineData(\"... | c# | chosen |
[
{
"from": "system",
"value": "Return trampoline from lazy function\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing Sharper.C.Control;\n\nnamespace Sharper.C.Data\n{\n\nusing static TrampolineModule;\n\npublic static class Enumerable... | c# | chosen |
[
{
"from": "system",
"value": "Fix type name prettyfying for generics\n"
},
{
"from": "human",
"value": "using System;\nusing System.CodeDom;\nusing System.Linq;\nusing Microsoft.CSharp;\n\nnamespace Ludiq.Reflection.Editor\n{\n\tpublic static class Extensions\n\t{\n\t\t// Used to print pretty t... | c# | chosen |
[
{
"from": "system",
"value": "Raise authentication server prerelease version.\n"
},
{
"from": "human",
"value": "using System.Reflection;\nusing System.Runtime.CompilerServices;\n\n[assembly: AssemblyTitle(\"Affecto Authentication Server\")]\n[assembly: AssemblyProduct(\"Affecto Authentication ... | c# | chosen |
[
{
"from": "system",
"value": "Add FNV1a-32 description to example usage\n"
},
{
"from": "human",
"value": "using System.Collections.Generic;\nusing System.Security.Cryptography;\n\nnamespace BloomFilter\n{\n class ExampleUsage\n {\n static void Main(string[] args)\n {\n ... | c# | chosen |
[
{
"from": "system",
"value": "Add example links to the design-time datacontext\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Windows.Media.Imaging;\nusing KyleHughes.AboutDialog.WPF.Properties;\n\nnamespace KyleHughes.AboutDialog.WPF\n{\n /... | c# | chosen |
[
{
"from": "system",
"value": "Fix bug: properly create time span from seconds (not mod 60)\n"
},
{
"from": "human",
"value": "using System;\nusing Rooijakkers.MeditationTimer.Data.Contracts;\n\nnamespace Rooijakkers.MeditationTimer.Data\n{\n /// <summary>\n /// Stores settings data in loc... | c# | chosen |
[
{
"from": "system",
"value": "Prepare for next development iteration\n"
},
{
"from": "human",
"value": "using System;\r\nusing System.Reflection;\r\nusing System.Runtime.CompilerServices;\r\nusing System.Runtime.InteropServices;\r\n\r\n[assembly: AssemblyTitle(\"NModbus4\")]\r\n[assembly: Assemb... | c# | chosen |
[
{
"from": "system",
"value": "Use dotnet core run task\n"
},
{
"from": "human",
"value": "#load nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease\n\nEnvironment.SetVariableNames();\n\nBuildParameters.SetParameters(context: Context,\n buil... | c# | chosen |
[
{
"from": "system",
"value": "Add an IRandom.GetDigit() extension method, which returns a string between '0' and '9'.\n"
},
{
"from": "human",
"value": "namespace Bakery.Security\r\n{\r\n\tusing System;\r\n\r\n\tpublic static class RandomExtensions\r\n\t{\r\n\t\tpublic static Byte[] GetBytes(th... | c# | chosen |
[
{
"from": "system",
"value": "Enable testing of internal functionality, to allow tests of AsyncBarrier\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": "Create a way for users to specify the initial uris to scan.\n"
},
{
"from": "human",
"value": "// Copyright (c) Alex Ghiondea. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nusing SmugM... | c# | chosen |
[
{
"from": "system",
"value": "Use out var in jumbo command\n"
},
{
"from": "human",
"value": "using System;\nusing System.IO;\nusing System.Net.Http;\nusing System.Threading.Tasks;\nusing Discord;\nusing Discord.Commands;\nusing Serilog;\n\nnamespace Modix.Modules\n{\n [Name(\"Fun\"), Summar... | c# | chosen |
[
{
"from": "system",
"value": "Revert to older version of GitVersion"
},
{
"from": "human",
"value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.IO;\r\nusing Cake.Core;\r\nusing Cake.Core.Configuration;\r\nusing Cake.Frosting;\r\nusing Cake.NuGet;\r\n\r\npublic class Prog... | c# | chosen |
[
{
"from": "system",
"value": "Add more IHandleContext extension methods\n"
},
{
"from": "human",
"value": "using Aggregates.Internal;\nusing NServiceBus;\nusing NServiceBus.Unicast;\nusing NServiceBus.Unicast.Messages;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing... | c# | chosen |
[
{
"from": "system",
"value": "Add test showing success message"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\nusing NUnit.Framework;\n\nnamespace NUnitTestDemo\n{\n public class SimpleTests\n {\n [Test]\n public void Te... | c# | chosen |
[
{
"from": "system",
"value": "Add error handling generating random values to inform column name and type\n"
},
{
"from": "human",
"value": "using System;\n\nnamespace StrangerData.Utils\n{\n internal static class RandomValues\n {\n public static object ForColumn(TableColumnInfo col... | c# | chosen |
[
{
"from": "system",
"value": "Add constructor with parameters for coordinate\n\nMake it possible to create a defined coordinate with less code."
},
{
"from": "human",
"value": "namespace Stranne.VasttrafikNET.Models\n{\n /// <summary>\n /// Describes a coordinate in WGS84 decimal\n ///... | c# | chosen |
[
{
"from": "system",
"value": "Call GetTypesSafely extension method instead of GetTypes method.\n"
},
{
"from": "human",
"value": "using System;\nusing System.Linq;\n\nnamespace Rock.Messaging.Routing\n{\n public class AppDomainTypeLocator : ITypeLocator\n {\n private readonly IMess... | c# | chosen |
[
{
"from": "system",
"value": "Remove XFrame on the checkout page\n"
},
{
"from": "human",
"value": "using Microsoft.AspNetCore.Mvc.Filters;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\n\nnamespace BTCPayServer.Filters\n{\n public class... | c# | chosen |
[
{
"from": "system",
"value": "Use ? instead of Nullable\n"
},
{
"from": "human",
"value": "//------------------------------------------------------------------------------\n// <auto-generated>\n// This code was generated from a template.\n//\n// Manual changes to this file may cause unex... | c# | chosen |
[
{
"from": "system",
"value": "Revert \"Increase the maximum time we wait for long running tests from 5 to 10.\"\n\nThis reverts commit 65ad52c26cbdee036e616b61263c214abf3b8a27.\n"
},
{
"from": "human",
"value": "using System;\r\nusing System.Threading;\r\nusing NUnit.Framework;\r\n\r\nnamespace... | c# | chosen |
[
{
"from": "system",
"value": "Add parentheses within the conditional AND and OR expressions to declare the operator precedence\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Me... | c# | chosen |
[
{
"from": "system",
"value": "Use fieldset instead of div\n"
},
{
"from": "human",
"value": "@model IEnumerable<alert_roster.web.Models.Message>\n\n@{\n ViewBag.Title = \"Messages\";\n}\n\n<div class=\"jumbotron\">\n <h1>@ViewBag.Title</h1>\n</div>\n\n@foreach (var message in Model)\n{\n ... | c# | chosen |
[
{
"from": "system",
"value": "Trim un-necessarry char from aggregation variable\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace LodViewProvider {\n\n\tpublic enum AggregationType {\n\t\tMin = 0,\n\t\tMax = ... | c# | chosen |
[
{
"from": "system",
"value": "Fix for SSD rank filtering\n"
},
{
"from": "human",
"value": "using BatteryCommander.Web.Models;\nusing BatteryCommander.Web.Services;\nusing Microsoft.AspNetCore.Authorization;\nusing Microsoft.AspNetCore.Mvc;\nusing System;\nusing System.Threading.Tasks;\n\nnames... | c# | chosen |
[
{
"from": "system",
"value": "Add check is transport work with webGL or not at transport factory\n"
},
{
"from": "human",
"value": "namespace LiteNetLibManager\n{\n public class WebSocketTransportFactory : BaseTransportFactory\n {\n public override bool CanUseWithWebGL { get { retu... | c# | chosen |
[
{
"from": "system",
"value": "Fix the null reference exception coming from AutomaticPackageCurator when curatedFeed has been loaded without including Packages.\n"
},
{
"from": "human",
"value": "using System.IO;\nusing System.Linq;\nusing NuGet;\n\nnamespace NuGetGallery\n{\n public class We... | c# | chosen |
[
{
"from": "system",
"value": "Test for NH-2559 (does not fail)\n\nSVN: 488784591515bd4cdaa016be4ec9b172dc4e7caf@5835\n"
},
{
"from": "human",
"value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing NUnit.Framework;\r\n\r\nnamespace NHibe... | c# | chosen |
[
{
"from": "system",
"value": "Remove steps from part 1 that have been moved to part 2.\n"
},
{
"from": "human",
"value": "using System;\r\nusing System.IO;\r\nusing System.Security.Cryptography;\r\n\r\nnamespace Tutorial\r\n{\r\n class Program\r\n {\r\n static void Main(string[] ar... | c# | chosen |
[
{
"from": "system",
"value": "Fix the called parameter being incorrect\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 osu.Fr... | c# | chosen |
[
{
"from": "system",
"value": "Fix code to return LanguageCode not CountryCode\n"
},
{
"from": "human",
"value": "using Foundation;\nusing Internationalization.Core.Helpers;\n\nnamespace Internationalization.Touch.Helpers\n{\n\tpublic class AppInfo : IAppInfo\n {\n\t\tpublic string CurrentLan... | c# | chosen |
[
{
"from": "system",
"value": "Send SSDP UDP Packets out on all external IPs explicitly\n"
},
{
"from": "human",
"value": "using System.Net;\nusing System.Net.Sockets;\nusing System.Text;\n\nnamespace NMaier.SimpleDlna.Server.Ssdp\n{\n internal sealed class Datagram\n {\n\n public readonly ... | c# | chosen |
[
{
"from": "system",
"value": "Fix dragging tournament ladder too far causing it to disappear\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;\n... | c# | chosen |
[
{
"from": "system",
"value": "Set only just one torch\n"
},
{
"from": "human",
"value": "using UnityEngine;\nusing System.Collections;\nusing System;\n\npublic class LightDiminuer : MonoBehaviour {\n\n\tpublic float intensity = 15;\n\tpublic float intensityRate = 0.001F;\n\tpublic float ambient... | c# | chosen |
[
{
"from": "system",
"value": "Switch to list instead of Dictionnary\n\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\n\npublic class MultipleDelegate\n{\n private readonly Dictionary<int, Func<int, int>> _delegates = new Dictionary<int, Func<int, int>>();... | c# | chosen |
[
{
"from": "system",
"value": "[Lua] Fix array out of index issue @neico\n"
},
{
"from": "human",
"value": "using Oxide.Core.Libraries;\nusing Oxide.Core.Logging;\n\nnamespace Oxide.Ext.Lua.Libraries\n{\n /// <summary>\n /// A global library containing game-agnostic Lua utilities\n /// ... | c# | chosen |
[
{
"from": "system",
"value": "Call widget \"Special Event\" on \"Search\" search\n"
},
{
"from": "human",
"value": "using System.Diagnostics;\nusing System.Windows.Input;\nusing DesktopWidgets.Helpers;\nusing DesktopWidgets.WidgetBase;\nusing DesktopWidgets.WidgetBase.ViewModel;\nusing GalaSoft... | c# | chosen |
[
{
"from": "system",
"value": "Change the Db name for the object context.\n"
},
{
"from": "human",
"value": "using System.Data.Entity;\n\nnamespace RWXViewer.Models\n{\n public class ObjectPathContext : DbContext\n {\n public ObjectPathContext() : base(\"ObjectPathContext\")\n ... | c# | chosen |
[
{
"from": "system",
"value": "Rename Error category to Danger\n"
},
{
"from": "human",
"value": "namespace HtmlLogger.Model\n{\n public enum LogCategory\n {\n Info,\n Warning,\n Error\n }\n}"
},
{
"from": "gpt",
"value": "namespace HtmlLogger.Model\n{\... | c# | chosen |
[
{
"from": "system",
"value": "Update default rendering partial view\n"
},
{
"from": "human",
"value": "@inherits UmbracoViewPage<BlockListModel>\r\n@using ContentModels = Umbraco.Web.PublishedModels;\r\n@using Umbraco.Core.Models.Blocks\r\n@{\r\n if (Model?.Layout == null || !Model.Layout.An... | c# | chosen |
[
{
"from": "system",
"value": "Add OS and Version information to telemetry\n"
},
{
"from": "human",
"value": "using Microsoft.ApplicationInsights;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace unBand\n{\n ... | c# | chosen |
[
{
"from": "system",
"value": "Add X-ApiKey header to promote API.\n"
},
{
"from": "human",
"value": "using System.Collections.Generic;\nusing System.Threading.Tasks;\nusing Flurl.Http;\nusing ProGet.Net.Common;\nusing ProGet.Net.PackagePromotion.Models;\n\n// ReSharper disable CheckNamespace\n\... | c# | chosen |
[
{
"from": "system",
"value": "Use TypeNameHelper instead of private method\n"
},
{
"from": "human",
"value": "using System;\nusing System.Linq;\nusing System.Reflection;\n\nnamespace Scrutor\n{\n public class MissingTypeRegistrationException : InvalidOperationException\n {\n public ... | c# | chosen |
[
{
"from": "system",
"value": "Fix routing tests, we DO need a database for these\n"
},
{
"from": "human",
"value": "using NUnit.Framework;\r\nusing Umbraco.Tests.TestHelpers;\r\nusing Umbraco.Web.Routing;\r\nusing umbraco.BusinessLogic;\r\nusing umbraco.cms.businesslogic.template;\r\n\r\nnamespa... | c# | chosen |
[
{
"from": "system",
"value": "Fix an error with console client test\n"
},
{
"from": "human",
"value": "namespace SupermarketChain.Client.Console\n{\n using System;\n using System.Linq;\n\n using SupermarketChain.Data.SqlServer;\n using SupermarketChain.Model;\n using SupermarketC... | c# | chosen |
[
{
"from": "system",
"value": "Add cancellation field to progress object.\n"
},
{
"from": "human",
"value": "using System;\nusing System.Threading;\n\nnamespace Depends\n{\n public delegate void ProgressBarIncrementer();\n\n public class Progress\n {\n private long _total = 0;\n ... | c# | chosen |
[
{
"from": "system",
"value": "Fix formatting of dates when the year comes first (JP)\n"
},
{
"from": "human",
"value": "using System;\nusing System.Globalization;\n\nnamespace MultiMiner.Win.Extensions\n{\n static class DateTimeExtensions\n {\n public static string ToReallyShortDat... | c# | chosen |
[
{
"from": "system",
"value": "Fix issue on possible null reference.\n"
},
{
"from": "human",
"value": "using System;\nusing Microsoft.AspNetCore.Mvc;\nusing Microsoft.AspNetCore.Mvc.Filters;\n\nnamespace Talagozis.Website.Controllers\n{\n public abstract class BaseController : Controller\n ... | c# | chosen |
[
{
"from": "system",
"value": "Simplify AbstractGrammarSpec by replacing deprecated helper methods with a sample Lexer implementation\n"
},
{
"from": "human",
"value": "namespace Parsley\n{\n public sealed class CharLexer : Lexer\n {\n public CharLexer(string source)\n : ... | c# | chosen |
[
{
"from": "system",
"value": "Revert \"Reacting to CLI breaking change\"\n\nThis reverts commit 4788506b57c736c7d54f4c05fd2c3b1cbe620a10.\n"
},
{
"from": "human",
"value": "// Copyright (c) .NET Foundation. All rights reserved.\n// Licensed under the Apache License, Version 2.0. See License.txt... | c# | chosen |
[
{
"from": "system",
"value": "Move set-up and config code into t/c/f block - this will handle 'unhandled exeptions' that hapen outside of the OWIN pipeline.\n"
},
{
"from": "human",
"value": "using System;\nusing System.IO;\nusing Microsoft.AspNetCore;\nusing Microsoft.AspNetCore.Hosting;\nusin... | c# | chosen |
[
{
"from": "system",
"value": "Use a lifetime scope for resolution\n\nThis allows us to use SessionState objects\n"
},
{
"from": "human",
"value": "using Autofac;\r\nusing System.Management.Automation;\r\n\r\nnamespace PoshGit2.Cmdlets\r\n{\r\n public class DICmdlet : Cmdlet\r\n {\r\n ... | c# | chosen |
[
{
"from": "system",
"value": "Fix loop condition on Deserialize-Tilemap.\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace PixelPet.Commands {\n\tinternal class DeserializeTilemapCmd : CliCommand {\n\t\tpubli... | c# | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.