conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Add tests for anonymous object rendering.\n" }, { "from": "gpt", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Threading.Tasks;\r\nusing ExpressionToCodeLib;\r\nusing Xunit;\r\n\r\nnamespace ...
c#
chosen
[ { "from": "system", "value": "Change SafePipeHandle to use IntPtr.Zero instead of new IntPtr(0)\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nusing Syst...
c#
chosen
[ { "from": "system", "value": "Allow for types with no namespaces\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Reflection;\n\nnamespace FluentMigrator.Runner\n{\n /// <summary>\n /// Advanced searching and filtration ...
c#
chosen
[ { "from": "human", "value": "Add windowing subsystem hookup for reflection UsePlatformDetect.\n" }, { "from": "gpt", "value": "using Avalonia.MonoMac;\nusing Avalonia.Platform;\n\n[assembly: ExportWindowingSubsystem(OperatingSystemType.OSX, 1, \"MonoMac\", typeof(MonoMacPlatform), nameof(MonoMa...
c#
chosen
[ { "from": "human", "value": "Add unit tests for DefaultSwaggerTagCatalog\n" }, { "from": "gpt", "value": "using FakeItEasy;\nusing Nancy.Swagger.Services;\nusing Swagger.ObjectModel;\nusing System.Collections.Generic;\nusing Xunit;\n\nnamespace Nancy.Swagger.Tests.Services\n{\n public class ...
c#
chosen
[ { "from": "human", "value": "Add new [LinkerSafe] attribute - which tells the linker (when enabled) that an assembly is safe to link (even if Link All is not used)\n" }, { "from": "gpt", "value": "//\n// Copyright 2013 Xamarin Inc.\n//\n// Permission is hereby granted, free of charge, to any per...
c#
chosen
[ { "from": "human", "value": "Add an instant progress bar extension method\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Windows.Forms;\n\nnamespace DarkUI.Extensions\n{\n // https://stackoverflow.com/qu...
c#
chosen
[ { "from": "human", "value": "Add unit tests for the SqliteAnchorBuilder class\n" }, { "from": "gpt", "value": "// Copyright 2015 Coinprism, Inc.\n// \n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// Yo...
c#
chosen
[ { "from": "human", "value": "Convert a binary to decimal value" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace BinaryToDecimal\n{\n class Program\n {\n static void Mai...
c#
chosen
[ { "from": "human", "value": "Add tests for the ExceptionsAttribute\n" }, { "from": "gpt", "value": "using NUnit.Framework;\r\nusing System;\r\n\r\nnamespace NValidate.Tests\r\n{\r\n [TestFixture]\r\n public class ExceptionsAttributeTest\r\n {\r\n [Test]\r\n public void Ge...
c#
chosen
[ { "from": "human", "value": "Add tests for Sha256 class\n" }, { "from": "gpt", "value": "using System;\nusing NSec.Cryptography;\nusing Xunit;\n\nnamespace NSec.Tests.Algorithms\n{\n public static class Sha256Tests\n {\n public static readonly string HashOfEmpty = \"e3b0c44298fc1c14...
c#
chosen
[ { "from": "human", "value": "Add very simple stacking test\n" }, { "from": "gpt", "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.IO;\nusing System.Linq;\nusing System...
c#
chosen
[ { "from": "system", "value": "Change wording on first shiney collect\n" }, { "from": "human", "value": "using System;\nusing UnityEngine;\nusing System.Collections;\nusing System.Collections.Generic;\n\npublic class ItemSpawn : MonoBehaviour\n{\n public string Guid;\n\n public static List...
c#
chosen
[ { "from": "human", "value": "Add test coverage of beat snapping hit circles\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System.Linq;\nusing NUnit.Fr...
c#
chosen
[ { "from": "human", "value": "Add a test for projection collection\n\n" }, { "from": "gpt", "value": "using Sakuno.Collections;\nusing System.Collections.ObjectModel;\nusing Xunit;\n\nnamespace Sakuno.Base.Tests\n{\n public static class ProjectionCollectionTests\n {\n [Fact]\n ...
c#
chosen
[ { "from": "human", "value": "Add test coverage for song select footer area\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing osu.Framework.Graphics;\nusin...
c#
chosen
[ { "from": "human", "value": "Add Matt McNabb to authors\n" }, { "from": "gpt", "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.Authors\n{\npubli...
c#
chosen
[ { "from": "system", "value": "[MonoCatalog] Fix startup error - setup root view controller" }, { "from": "human", "value": "using UIKit;\nusing Foundation;\n\nnamespace MonoCatalog\n{\n\t\t// The name AppDelegate is referenced in the MainWindow.xib file.\n\t\tpublic partial class AppDelegate : ...
c#
chosen
[ { "from": "human", "value": "Add sample code in place of Hangman\n" }, { "from": "gpt", "value": "using System;\n\npublic class Hangman {\n public static void Main(string[] args) {\n Console.WriteLine(\"Hello, World!\");\n Console.WriteLine(\"You entered the following {0} command line arg...
c#
chosen
[ { "from": "human", "value": "Add ${aspnet-traceidentifier} (ASP.NET Core only)\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing NLog.LayoutRenderers;\n\nnamespace NLog.Web.LayoutRender...
c#
chosen
[ { "from": "human", "value": "Add HTML control so you can add raw html to your layouts\n" }, { "from": "gpt", "value": "using WootzJs.Web;\n\nnamespace WootzJs.Mvc.Mvc.Views\n{\n public class Html : Control\n {\n private string html;\n\n public Html(string html)\n {\n ...
c#
chosen
[ { "from": "human", "value": "Add tests for wrapping routine provider for Oracle.\n" }, { "from": "gpt", "value": "using System;\nusing NUnit.Framework;\nusing Moq;\nusing SJP.Schematic.Core;\nusing System.Data;\n\nnamespace SJP.Schematic.Oracle.Tests\n{\n [TestFixture]\n internal static c...
c#
chosen
[ { "from": "system", "value": "Add extra checks around the trusting of the value in the file. By default we wont pull over anything invalid and log out when something is wroung.\n" }, { "from": "human", "value": "using System;\nusing System.Configuration;\nusing System.IO;\nusing ZocMonLib;\n\nna...
c#
chosen
[ { "from": "human", "value": "Add missing project installer file\n" }, { "from": "gpt", "value": "namespace Fr.Lakitrid.DomoCore\n{\n partial class ProjectInstaller\n {\n /// <summary>\n /// Required designer variable.\n /// </summary>\n private System.Component...
c#
chosen
[ { "from": "human", "value": "Add a logout IT class\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net.Http;\nusing System.Text;\nusing System.Threading;\nusing System.Threading.Tasks;\nusing FluentAssertions;\nusing Newtonsoft...
c#
chosen
[ { "from": "human", "value": "Add test coverage of seeking and pausing\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing NUnit.Framework;\nusing osu.Game.R...
c#
chosen
[ { "from": "system", "value": "Use correct assembly to retrieve ProdInfo\n" }, { "from": "human", "value": "using System;\nusing System.Reflection;\n\nnamespace NMaier.SimpleDlna.Utilities\n{\n public static class ProductInformation\n {\n public static string Company\n {\n get\n ...
c#
chosen
[ { "from": "system", "value": "Add proper error handling for IO errors.\n" }, { "from": "human", "value": "namespace dotless.Core\n{\n using System.IO.Compression;\n using System.Web;\n using configuration;\n using Microsoft.Practices.ServiceLocation;\n\n public class LessCssHttpH...
c#
chosen
[ { "from": "human", "value": "Add missing project context handler for ts\n" }, { "from": "gpt", "value": "// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n// See the LICENSE file in the project root for mor...
c#
chosen
[ { "from": "human", "value": "Add factory for analytics migrations\n" }, { "from": "gpt", "value": "// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nusing Microsoft.EntityFrameworkCore.Infra...
c#
chosen
[ { "from": "human", "value": "Add order controller for authentified users\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Web.Http;\n\nnamespace TokenAuthentification.Controllers\n{\n [RoutePrefix(\"api/orders\")]\n public class OrdersControl...
c#
chosen
[ { "from": "human", "value": "Add simple controller for weapons\n" }, { "from": "gpt", "value": "using BatteryCommander.Web.Models;\nusing Microsoft.AspNetCore.Authorization;\nusing Microsoft.AspNetCore.Mvc;\nusing Microsoft.EntityFrameworkCore;\nusing System.Collections.Generic;\nusing System.L...
c#
chosen
[ { "from": "system", "value": "Increment release number to 2.0.14\n\n" }, { "from": "human", "value": "using System.Reflection;\r\nusing System.Runtime.CompilerServices;\r\nusing System.Runtime.InteropServices;\r\n\r\n// General Information about an assembly is controlled through the following s...
c#
chosen
[ { "from": "human", "value": "Add a failing test to check catch replay accuracy\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing NUnit.Framework;\nusing o...
c#
chosen
[ { "from": "human", "value": "Add user controller on API to check in/outs.\n" }, { "from": "gpt", "value": "using System;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Microsoft.AspNetCore.Mvc;\nusing Microsoft.AspNetCore.Authorization;\nusing A2BBCommon.Models;\nusing A2BBCommon;\nu...
c#
chosen
[ { "from": "human", "value": "Add unit tests to verify that the amount parameters are added to the query string when they are added as parameter\n" }, { "from": "gpt", "value": "using Mollie.Api.Client;\nusing Mollie.Api.Models;\nusing NUnit.Framework;\nusing System.Net.Http;\nusing System.Threa...
c#
chosen
[ { "from": "human", "value": "Add a new datatype for joints\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing System.Runtime.Serialization;\nusing System.IO;\n\nnamespace MultipleKinects...
c#
chosen
[ { "from": "human", "value": "[S3] Add shared helper to flatten response headers\n" }, { "from": "gpt", "value": "using System.Collections.Generic;\nusing System.Net.Http;\n\nnamespace Amazon.S3\n{\n internal static class HttpResponseMessageExtensions\n {\n public static Dictionary<...
c#
chosen
[ { "from": "human", "value": "Add method to return Edge from IRefAxis\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Numerics;\nusing System.Text;\nusing System.Threading.Tasks;\nusing SolidworksAddinFramework.Geometry;\nusing ...
c#
chosen
[ { "from": "human", "value": "Define the factory to handle the build of list\n" }, { "from": "gpt", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Globalization;\r\nusing System.Linq;\r\n\r\nnamespace NBi.Core.Members\r\n{\r\n public class PredefinedMembersFactor...
c#
chosen
[ { "from": "human", "value": "Add file that wasn't in repo\n" }, { "from": "gpt", "value": "using System;\nusing MonoDevelop.Core;\nusing MonoDevelop.Ide.Gui;\nusing MonoDevelop.Projects;\n\nnamespace MonoDevelop.ResXEditor.Gui\n{\n\tclass ResXEditorDisplayBinding : IViewDisplayBinding\n\t{\n\t\...
c#
chosen
[ { "from": "human", "value": "Add a very basic class to allow placing buttons on-screen.\n" }, { "from": "gpt", "value": "using Microsoft.Xna.Framework;\nusing Microsoft.Xna.Framework.Graphics;\n\nnamespace MonoGameUtils.UI\n{\n /// <summary>\n /// Represents a rectangular button that can ...
c#
chosen
[ { "from": "human", "value": "IrcCalc: Prepare ShuntingYard for a state object\n\nWith the prospect of assignment being a valid calculation we need to\nexpose variable assignment to the ShuntingYard calculator. I was already\npassing state aroung (2 stacks) and managing a 3rd state object seemed\nlike too mu...
c#
chosen
[ { "from": "human", "value": "Add failing test of deserializing deeply nested JSON with higher-than-default MaxDepth set\n" }, { "from": "gpt", "value": "using Newtonsoft.Json;\nusing NUnit.Framework;\n\nnamespace JsonSubTypes.Tests\n{\n [TestFixture]\n public class DeeplyNestedDeserializa...
c#
chosen
[ { "from": "human", "value": "Reset the Application Entry Point\n" }, { "from": "gpt", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Threading.Tasks;\r\nusing System.Windows.Forms;\r\nusing RapID.ClassLibrary;\r\n\r\nnamespace RapID.Auth\r\n{\...
c#
chosen
[ { "from": "human", "value": "Add tool to update all dependencies\n\nThis is typically useful after a GAX or gRPC release.\n" }, { "from": "gpt", "value": "// Copyright 2021 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except ...
c#
chosen
[ { "from": "human", "value": "Add empty report for web part performance analysis\n" }, { "from": "gpt", "value": "using KenticoInspector.Core;\nusing KenticoInspector.Core.Constants;\nusing KenticoInspector.Core.Models;\nusing System;\nusing System.Collections.Generic;\n\nnamespace KenticoInspec...
c#
chosen
[ { "from": "human", "value": "Add unit test for SYSTEM_LANGUAGE SCPI command\n" }, { "from": "gpt", "value": "using SCPI.System;\nusing System.Text;\nusing Xunit;\n\nnamespace SCPI.Tests.System\n{\n public class SYSTEM_LANGUAGE_Tests\n {\n [Theory]\n [InlineData(\"ENGL\")]\n ...
c#
chosen
[ { "from": "human", "value": "Add player test for osu! ruleset\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing NUnit.Framework;\n\nnamespace osu.Game.Rul...
c#
chosen
[ { "from": "human", "value": "Add tests covering score preparation flow\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System.Threading.Tasks;\nusing NU...
c#
chosen
[ { "from": "system", "value": "Hide 'vsgd' graphic devie function from Environment window\n\n- change 'vsgd' to '.rtvs.vsgd' to hide\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\nusing Microsoft.R.Host.Client;\n\nnamespace Microsoft.VisualStudio.R.Package.Repl.S...
c#
chosen
[ { "from": "human", "value": "Disable rename for Unity event handlers\n" }, { "from": "gpt", "value": "using System.Collections.Generic;\nusing JetBrains.Application;\nusing JetBrains.ProjectModel;\nusing JetBrains.ReSharper.Feature.Services.Refactorings.Specific.Rename;\nusing JetBrains.ReSharp...
c#
chosen
[ { "from": "human", "value": "Add helper to check TCP port status.\n" }, { "from": "gpt", "value": "using System.Net;\nusing System.Net.Sockets;\n\nnamespace PSql.Tests\n{\n internal static class TcpPort\n {\n public static bool IsListening(ushort port)\n {\n const ...
c#
chosen
[ { "from": "human", "value": "Add endpoints to view jobs\n" }, { "from": "gpt", "value": "using BatteryCommander.Web.Models;\nusing FluentScheduler;\nusing Microsoft.AspNetCore.Mvc;\nusing System;\nusing System.Collections.Generic;\n\nnamespace BatteryCommander.Web.Controllers.API\n{\n public...
c#
chosen
[ { "from": "human", "value": "Add unit test to check for duplicate log types\n" }, { "from": "gpt", "value": "using System;\nusing System.Linq;\nusing Content.Shared.Administration.Logs;\nusing NUnit.Framework;\n\nnamespace Content.Tests.Shared.Administration.Logs;\n\n[TestFixture]\npublic class...
c#
chosen
[ { "from": "human", "value": ":+1: Add content conveter to show DataGrid\n" }, { "from": "gpt", "value": "using System;\r\nusing System.Globalization;\r\nusing System.Windows.Data;\r\n\r\nnamespace Mastoon.Conveters\r\n{\r\n public class DataGridContentConveter : IValueConverter\r\n {\r\n ...
c#
chosen
[ { "from": "human", "value": "Add class for exponential distribution\n" }, { "from": "gpt", "value": "using System;\r\nusing System.Collections.Generic;\r\n\r\nnamespace Blaze.Randomization.Lab\r\n{\r\n public static class ExponentialDistribution\r\n {\r\n static readonly Random ran...
c#
chosen
[ { "from": "human", "value": "WIP: Add alternate empty entries remover\n" }, { "from": "gpt", "value": "#!/usr/bin/csexec -r:System.Windows.Forms.dll\n\nusing System;\nusing System.IO;\nusing System.Resources;\nusing System.Collections;\nusing System.Collections.Generic;\nusing System.ComponentMo...
c#
chosen
[ { "from": "human", "value": "Add manual test to validate python cache\n" }, { "from": "gpt", "value": "// ------------------------------------------------------------------------------\n// \n// Copyright (c) Microsoft Corporation.\n// All rights reserved.\n// \n// This code is licensed under th...
c#
chosen
[ { "from": "human", "value": "Add failing test which demonstrates bug with\ncurrent implementation\n" }, { "from": "gpt", "value": "using HarmonyLib;\nusing NUnit.Framework;\nusing System.Diagnostics;\nusing System.Reflection;\n\nnamespace HarmonyLibTests.Extras\n{\n\t[TestFixture]\n\tclass Retri...
c#
chosen
[ { "from": "human", "value": "Add Acceptor for an Enumerable of objects.\n" }, { "from": "gpt", "value": "using System;\r\nusing System.Collections.Generic;\r\n\r\nnamespace CBojar.Acceptors\r\n{\r\n\tpublic class EnumerableAcceptor<T> : IAcceptor<T>\r\n\t{\r\n\t\tprotected IEnumerable<T> _value;...
c#
chosen
[ { "from": "human", "value": "Add helper methods for numeric\n" }, { "from": "gpt", "value": "using System;\n\n\n\nnamespace DeclarativeSql.Internals\n{\n /// <summary>\n /// Provides helper methods for numeric.\n /// </summary>\n internal static class NumericHelper\n {\n /...
c#
chosen
[ { "from": "human", "value": "Add a behaviour to drop nodes if all the current connected nodes are behind.\n" }, { "from": "gpt", "value": "using System;\nusing System.Linq;\nusing NBitcoin;\nusing NBitcoin.Protocol;\nusing NBitcoin.Protocol.Behaviors;\n\nnamespace Stratis.Bitcoin.Connection\n{\...
c#
chosen
[ { "from": "human", "value": "Disable concurrency for storage integration tests\n\nBasically, it makes timing issues harder to diagnose\n" }, { "from": "gpt", "value": "// Copyright 2016 Google Inc. All Rights Reserved.\n// \n// Licensed under the Apache License, Version 2.0 (the \"License\");\n...
c#
chosen
[ { "from": "human", "value": "Add test scene showing off the skinnable catch-specific combo counter\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing Syste...
c#
chosen
[ { "from": "human", "value": "Add an instance provider for Colore\n" }, { "from": "gpt", "value": "// ---------------------------------------------------------------------------------------\n// <copyright file=\"ColoreProvider.cs\" company=\"Corale\">\n// Copyright © 2015-2017 by Adam Hellber...
c#
chosen
[ { "from": "human", "value": "Add missing Contract helper function file\n" }, { "from": "gpt", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Diagnostics.Contracts;\r\n\r\nnamespace DotNetFrontEnd.Contracts\r\n{\r\n publi...
c#
chosen
[ { "from": "human", "value": "Fix add signature and comment\n" }, { "from": "gpt", "value": "using System.Linq;\nusing System.Threading;\nusing System.Threading.Tasks;\nusing BatteryCommander.Web.Models;\nusing BatteryCommander.Web.Queries;\nusing MediatR;\nusing Microsoft.AspNetCore.Mvc;\nusing...
c#
chosen
[ { "from": "system", "value": "Make the BlockSpan non-structural. We don't want to show an indent-guide for them.\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 licens...
c#
chosen
[ { "from": "human", "value": "Add tests for nullable keys\n" }, { "from": "gpt", "value": "using System.Collections.Generic;\nusing AutoMapper.EquivalencyExpression;\nusing FluentAssertions;\nusing Xunit;\n\nnamespace AutoMapper.Collection\n{\n public class NullableIdTests\n {\n [Fa...
c#
chosen
[ { "from": "system", "value": "Update flusher to have defaults\n" }, { "from": "human", "value": "using System.Data;\n\nnamespace ZocMonLib\n{\n public interface IRecordFlush\n {\n /// <summary>\n /// Flush all data accumulated thus far.\n /// </summary>\n void F...
c#
chosen
[ { "from": "human", "value": "Add missing file to samples\n" }, { "from": "gpt", "value": "@page Test\n\n<div class=\"row\">\n <div class=\"col-md-3\">\n <h2>RazorPages Test</h2>\n <ul>\n <li>This file should give you a quick view of a Mvc Raor Page in action.</li>\n ...
c#
chosen
[ { "from": "human", "value": "Make a working copy of an PCB design" }, { "from": "gpt", "value": "//-----------------------------------------------------------------------------------\r\n// PCB-Investigator Automation Script\r\n// Created on 2014-04-24\r\n// Autor \r\n// \r\n// Make copy of job a...
c#
chosen
[ { "from": "system", "value": "Update to avoid an execption if there are no jobs and therefore no jobs folder.\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.ComponentModel.Composition;\r\nusing System.ComponentModel.Composition.Hosting;\r\n...
c#
chosen
[ { "from": "human", "value": "Add tests class for NoteSubparser\n" }, { "from": "gpt", "value": "using FluentAssertions;\nusing NFugue.Parser;\nusing NFugue.Theory;\nusing Staccato.Subparsers.NoteSubparser;\nusing Xunit;\n\nnamespace Staccato.Tests.Subparsers\n{\n public class NoteSubparserTe...
c#
chosen
[ { "from": "human", "value": "Change file name to reflect new class name\n" }, { "from": "gpt", "value": "using DotNetNuke.Security.Roles;\nusing System;\n\nnamespace Dnn.PersonaBar.Prompt.Models\n{\n public class RoleModel : RoleModelBase\n {\n public string Description;\n p...
c#
chosen
[ { "from": "human", "value": "Add labelled number box control\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing osu.Game.Graphics.UserInterface;\n\nnamespa...
c#
chosen
[ { "from": "human", "value": "Add skeleton for Autocomplete Responses.\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace WundergroundClient.Autocomplete\n{\n class AutocompleteResponse\n {\n public ...
c#
chosen
[ { "from": "system", "value": "Move initialization code into the original lock to avoid a race condition.\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Reflection;\r\n\r\nnamespace Csla.Security\r...
c#
chosen
[ { "from": "human", "value": "Add the soft focus editor to the repository.\n\nsvn path=/trunk/; revision=2830\n" }, { "from": "gpt", "value": "/*\n * Editors/SoftFocus.cs\n *\n * Copyright 2007 Novell Inc.\n *\n * Author\n * Larry Ewing <lewing@novell.com>\n *\n * See COPYING for license inform...
c#
chosen
[ { "from": "human", "value": "Enable limitation control for rendering\n\nThere is now the ability to set the rendering thread to unlimited, which\nmeans, the fps have no limit.\n" }, { "from": "gpt", "value": "\nnamespace SharpexGL.Framework.Game.Timing\n{\n public enum RenderMode\n {\n ...
c#
chosen
[ { "from": "human", "value": "Add a few base backend tests\n" }, { "from": "gpt", "value": "using Mofichan.Backend;\nusing Mofichan.Core.Interfaces;\nusing Moq;\nusing Serilog;\nusing Shouldly;\nusing Xunit;\n\nnamespace Mofichan.Tests\n{\n public class BackendSpec\n {\n private cla...
c#
chosen
[ { "from": "system", "value": "Store and provide full original partition key\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\n\nusing Microsoft.WindowsAzure.Storage.Table;\n\nnamespace Streamstone\n{\n public class Partition\n {\n static readonly string[] separa...
c#
chosen
[ { "from": "human", "value": "Allow pushing a TEvent that has new() constraint\n" }, { "from": "gpt", "value": "using System.ComponentModel;\n\nnamespace Merq\n{\n /// <summary>\n /// Usability overloads for <see cref=\"IEventStream\"/>.\n /// </summary>\n [EditorBrowsable(EditorBrow...
c#
chosen
[ { "from": "human", "value": "Add some very basic tests for Link\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing Seq.Api.Model;\nusing Xunit;\n\nnamespace Seq.Api.Tests\n{\n public class LinkTests\n {\n [Fact]\n public void ALinkWithNo...
c#
chosen
[ { "from": "human", "value": "Remove attributes of an ODB++ job" }, { "from": "gpt", "value": "//-----------------------------------------------------------------------------------\r\n// PCB-Investigator Automation Script\r\n// Created on 27.05.2015\r\n// Autor Gruber Fabio\r\n// \r\n// Clear Att...
c#
chosen
[ { "from": "human", "value": "Add basic test coverage for solid border colour\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing NUnit.Framework;\nusing osu...
c#
chosen
[ { "from": "human", "value": "Add a script to draw all spring joints connected to an object, for debugging.\n" }, { "from": "gpt", "value": "// The MIT License (MIT)\n//\n// Copyright (c) 2015 Jabavu W. Adams.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n...
c#
chosen
[ { "from": "human", "value": "Add LegacyGlobalOptionsWorkspaceService for OmniSharp EA\n" }, { "from": "gpt", "value": "// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n// See the LICENSE file in the projec...
c#
chosen
[ { "from": "human", "value": "Define interface for a command in setup or cleanup\n" }, { "from": "gpt", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\n\r\nnamespace NBi.Core.Etl\r\n{\r\n public interface IEtlRunCommand: IEtl\r\n ...
c#
chosen
[ { "from": "human", "value": "Fix on previous commit ..." }, { "from": "gpt", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Text;\r\nusing System.Windows.Media;\r\nusing System.Windows.Shapes;\r\nusing System.Windows;\r\nusing System.Windows.Input;\r\n\r\nnamespace...
c#
chosen
[ { "from": "human", "value": "Add failing GL disposal stress test\n\nCo-authored-by: voidedWarranties <8703afe59310e2b76940dbf42498d5eec85dac67@gmail.com>\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in th...
c#
chosen
[ { "from": "human", "value": "Add unit test for getuserrole\n" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Security.Claims;\nusing System.Text;\nusing Microsoft.AspNetCore.Http;\nusing Moq;\nusing NUnit.Framework;\nusing NUnit....
c#
chosen
[ { "from": "human", "value": "Add test scene for arc bounding box computation\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System;\nusing System.Linq;...
c#
chosen
[ { "from": "human", "value": "Add extension methods to determine whether an actor is an ancestor or descendant of another actor.\n" }, { "from": "gpt", "value": "using Akka.Actor;\nusing System;\n\nnamespace AKDK.Utilities\n{\n /// <summary>\n /// Extension methods for Akka types.\n ...
c#
chosen
[ { "from": "human", "value": "Add test coverage of PlayingUsers tracking\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System.Linq;\nusing Humanizer;\n...
c#
chosen
[ { "from": "human", "value": "Move serialization end event firing into a pipeline processor\n" }, { "from": "gpt", "value": "using System.Linq;\nusing Sitecore.Configuration;\nusing Sitecore.Data;\nusing Sitecore.Data.Serialization;\nusing Sitecore.Diagnostics;\nusing Sitecore.Eventing;\nusing U...
c#
chosen
[ { "from": "human", "value": "Add back obsoleted mapping to improve backwards compatibility\n\n" }, { "from": "gpt", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System;\n\n...
c#
chosen
[ { "from": "human", "value": "Rename UpdateHUD lives to DisplayLives.\n" }, { "from": "gpt", "value": "using UnityEngine;\nusing UnityEngine.UI;\nusing System.Collections;\nusing DG.Tweening;\nusing Matcha.Game.Tweens;\n\n\npublic class UpdateHUDLives : BaseBehaviour\n{\n\tpublic Sprite threeLiv...
c#
chosen
[ { "from": "human", "value": "Add more tests for surface\n" }, { "from": "gpt", "value": "using Microsoft.VisualStudio.TestTools.UnitTesting;\nusing SadRogue.Primitives;\n\nnamespace SadConsole.Tests\n{\n public partial class CellSurface\n {\n [TestMethod]\n public void Glyph_...
c#
chosen