conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Set default db for existing raven instances\n"
},
{
"from": "human",
"value": "using Raven.Client;\nusing Raven.Client.Document;\nusing Raven.Client.Embedded;\n\nnamespace qed\n{\n public static partial class Functions\n {\n public static IDocumentStor... | c# | chosen |
[
{
"from": "human",
"value": "Add sample to illustrate lack of ordering of type compilation, for a future branch.\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\nusing VCSFramework;\n\nnamespace Samples\n{\n\tpublic static class Foo\n\t{\n\t... | c# | chosen |
[
{
"from": "human",
"value": "Add attribute to retry flaky tests on normal CI runs\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\n#nullable disable\nusing Sys... | c# | chosen |
[
{
"from": "human",
"value": "Add new bip 157 p2p message cfilter\n\ncfilter is sent in response to getcfilters, one for each block in the\nrequested range.\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\n\nnamespace NBitcoin.Protocol\n{\n\t/// <summary>\n\t/// ... | c# | chosen |
[
{
"from": "human",
"value": "Define enumeration for supported list of predefined members\n"
},
{
"from": "gpt",
"value": "using System;\r\nusing System.Linq;\r\nusing System.Xml.Serialization;\r\n\r\nnamespace NBi.Core.Members\r\n{\r\n public enum PredefinedMembers\r\n {\r\n [XmlEn... | c# | chosen |
[
{
"from": "human",
"value": "Add support for 8 bit raw bitmap\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Drawing;\nusing System.IO;\nusing OpenKh.Imaging;\n\nnamespace OpenKh.Kh2\n{\n public class RawBitmap : IImageRead\n {\n private const int PaletteCount = 256;\... | c# | chosen |
[
{
"from": "human",
"value": "Add needed generated file for Live Preview.\n"
},
{
"from": "gpt",
"value": "//------------------------------------------------------------------------------\n// <auto-generated>\n// This code was generated by a tool.\n// Runtime Version:2.0.50727.4927\n//\n/... | c# | chosen |
[
{
"from": "human",
"value": "Add model class for realm skin\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.Collections.Generic;\n... | c# | chosen |
[
{
"from": "system",
"value": "Use name that doesn't clash with unit-testing classes\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Linq.Expressions;\nusing System.Text;\n\nnamespace ExpressionToCodeLib\n{\n\n /// <summary... | c# | chosen |
[
{
"from": "human",
"value": "Add a controller for authorized user s.t. they can retrieve their info and update password.\n"
},
{
"from": "gpt",
"value": "using A2BBCommon;\nusing A2BBCommon.Models;\nusing A2BBIdentityServer.DTO;\nusing A2BBIdentityServer.Models;\nusing Microsoft.AspNetCore.Autho... | c# | chosen |
[
{
"from": "system",
"value": "Fix workaround for the Unity Web Player.\n\nIt pass the unit tests.\nThis fix can have the problem described here:\n\n- http://stackoverflow.com/questions/957388/why-are-rijndaelmanaged-and-aescryptoserviceprovider-returning-different-results/4863924#4863924\n"
},
{
"fr... | c# | chosen |
[
{
"from": "human",
"value": "Add THE IDOLM@STER CINDERELLA GIRLS ANIMATION PROJECTシリーズCD発売記念イベント\n"
},
{
"from": "gpt",
"value": "@using System.Text\n@using CsQuery\n@RadioWhip.Feedify(\n \"http://columbia.jp/idolmaster/cinderellaapevent/\",\n \"THE IDOLM@STER CINDERELLA GIRLS ANIMATION P... | c# | chosen |
[
{
"from": "human",
"value": "Add custom project exception type.\n"
},
{
"from": "gpt",
"value": "// ---------------------------------------------------------------------------------------\n// <copyright file=\"ColoreException.cs\" company=\"\">\n// Copyright © 2015 by Adam Hellberg and Bran... | c# | chosen |
[
{
"from": "human",
"value": "Add missing file for 0188bf6b.\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing Newtonsoft.Json;\n\nnamespace ElasticSearch.Client\n{\n [JsonObject]\n public class MultiHit<T> wher... | c# | chosen |
[
{
"from": "human",
"value": "Add ninject module for mvp\n\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Linq;\nusing Ninject;\nusing Ninject.Activation;\nusing Ninject.Modules;\nusing Ninject.Parameters;\nusing WebFormsMvp;\n\nnamespace ZobShop.Web.App_Start.NinjectModules\n{\n ... | c# | chosen |
[
{
"from": "human",
"value": "Revert \"Revert \"Privide equivalent to System.currentTimeMillis()\"\"\n\nThis reverts commit b8eb1cafff8cce827460b4aad68a0fbb6a35cd8a.\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing S... | c# | chosen |
[
{
"from": "human",
"value": "Add structure for path control points\n"
},
{
"from": "gpt",
"value": "using System;\nusing osu.Framework.Bindables;\nusing osu.Game.Rulesets.Objects.Types;\nusing osuTK;\n\nnamespace osu.Game.Rulesets.Objects\n{\n public class PathControlPoint : IEquatable<PathCo... | c# | chosen |
[
{
"from": "human",
"value": "Add new Author: Victor Silva"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.ServiceModel.Syndication;\nusing System.Web;\nusing Firehose.Web.Infrastructure;\nnamespace Firehose.Web.Authors\n{\n pub... | c# | chosen |
[
{
"from": "human",
"value": "Add a test scene for textured triangles\n"
},
{
"from": "gpt",
"value": "using osu.Framework.Allocation;\nusing osu.Framework.Graphics.Shapes;\nusing osu.Framework.Graphics;\nusing osu.Framework.Graphics.Textures;\nusing System;\nusing System.Collections.Generic;\nu... | c# | chosen |
[
{
"from": "human",
"value": "Add a realtime room manager\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.Diagnostics;\nusing Syste... | c# | chosen |
[
{
"from": "system",
"value": "Remove info that's now elsewhere.\n"
},
{
"from": "human",
"value": "/* DOESN'T WORK YET!\r\n \r\nusing System.Reflection;\r\nusing System.Runtime.CompilerServices;\r\nusing System.Runtime.InteropServices;\r\n\r\n// General Information about an assembly is control... | c# | chosen |
[
{
"from": "system",
"value": "Allow test assembly to access internals\n"
},
{
"from": "human",
"value": "using System.Reflection;\r\nusing System.Runtime.InteropServices;\r\n\r\n// General Information about an assembly is controlled through the following \r\n// set of attributes. Change these a... | c# | chosen |
[
{
"from": "system",
"value": "Implement extension method get max array element\n"
},
{
"from": "human",
"value": "//\n// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n//\n\nusing System;\n\nn... | c# | chosen |
[
{
"from": "human",
"value": "Add integration test for relative path\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Text;\nusing System.Threading.Tasks;\nusing FluentAssertions;\nusing NuGet.Test.Helpers;\nusing Sleet.Test;\nusing... | c# | chosen |
[
{
"from": "human",
"value": "Add basic VirtualTrack retrieval test\n\nAudio tests will be expanded on going forward."
},
{
"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... | c# | chosen |
[
{
"from": "human",
"value": "Add JS zone requirement to asmdef namespace\n"
},
{
"from": "gpt",
"value": "using JetBrains.Application.BuildScript.Application.Zones;\nusing JetBrains.ReSharper.Psi.JavaScript;\n\nnamespace JetBrains.ReSharper.Plugins.Unity.Json\n{\n [ZoneMarker]\n public cla... | c# | chosen |
[
{
"from": "system",
"value": "Add Beta to the version\n"
},
{
"from": "human",
"value": "using System;\r\nusing System.Reflection;\r\n\r\nnamespace Umbraco.Core.Configuration\r\n{\r\n public class UmbracoVersion\r\n {\r\n private static readonly Version Version = new Version(6, 0, 0... | c# | chosen |
[
{
"from": "human",
"value": "Add support for mediapicker3 in mappers.\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Linq;\n\nusing Umbraco.Cms.Core;\nusing Umbraco.Cms.Core.Services;\nusing ... | c# | chosen |
[
{
"from": "human",
"value": "Implement put and get api in binary search tree\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\n\nnamespace Algorithms.DataStructures.TreeMap\n{\n internal class Node<K, V> where K : IComparable<K>\n {\n internal K key... | c# | chosen |
[
{
"from": "system",
"value": "Use correct element name for admins\n"
},
{
"from": "human",
"value": "using System.Xml.Linq;\nusing Hacknet;\nusing Pathfinder.Util;\nusing Pathfinder.Util.XML;\n\nnamespace Pathfinder.Administrator;\n\npublic abstract class BaseAdministrator : Hacknet.Administrato... | c# | chosen |
[
{
"from": "human",
"value": "Add a general game init script\n\nNeeded a single place to initialize various game-wide systems, and\nparticularly to schedul a call to GC right after all caching is done.\n"
},
{
"from": "gpt",
"value": "using DG.Tweening;\nusing Matcha.Unity;\n\npublic class GameIn... | c# | chosen |
[
{
"from": "system",
"value": "Modify to work with new n-level undo behaviors.\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace Csla.Test.LazyLoad\n{\n [Serializable]\n public class AParent : Csla.BusinessBase<AParent>\n {\n ... | c# | chosen |
[
{
"from": "human",
"value": "Add basic tests for pipeline\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing BulkWriter.Pipeline;\nusing Xunit;\n\nnamespace BulkWriter.Tests.Pipeline\n{\n public class EtlPipelineTests\n {\n priv... | c# | chosen |
[
{
"from": "human",
"value": "Add test coverage ensuring unique acronyms\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\n#nullable disable\nusing System.Collec... | c# | chosen |
[
{
"from": "system",
"value": "Remove third and fourth digits from version\n\nThe patch specifier in the semver compliant version will be managed via\nthe qc cd process in order to enable users to match the version they use\nin the browser with a specific version from nuget.\n"
},
{
"from": "human",
... | c# | chosen |
[
{
"from": "human",
"value": "Add tablet information class to ferry information from OTD\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 osuTK;\n\nnamesp... | c# | chosen |
[
{
"from": "human",
"value": "Add path element factory for selection access\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.RegularExpressions;\nusing System.Threading.Tasks;\n\nnamespace Pather.CSharp.PathElements\n{\n ... | c# | chosen |
[
{
"from": "system",
"value": "Add Build and BuildBeautified extension methods to all query builders, so that it's possible to build single queries.\n"
},
{
"from": "human",
"value": "namespace PlainElastic.Net.Builders\n{\n public interface IJsonConvertible\n {\n string ToJson();\n ... | c# | chosen |
[
{
"from": "human",
"value": "Print pairs with difference k\n"
},
{
"from": "gpt",
"value": "// http://careercup.com/question?id=5727804001878016\n//\n// Given a sorted array of positive integers and a positive value\n// return all pairs which differ by k.\n\nusing System;\nusing System.Collectio... | c# | chosen |
[
{
"from": "human",
"value": "Add tests for Base64 encoding/decoding\n"
},
{
"from": "gpt",
"value": "namespace Easy.Common.Tests.Unit.BaseEncoding\n{\n using NUnit.Framework;\n using Shouldly;\n\n [TestFixture]\n public class Base64Tests\n {\n [TestCase]\n public vo... | c# | chosen |
[
{
"from": "human",
"value": "Fix - Corretto bug notifica delete chiamata in corso\nAdd - Gestito GeneratoreCodiciRichieste nel Fake Json\nChg - TitoTerreno modificato in List\nChg - Stato modificato in String (Era int)\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Gen... | c# | chosen |
[
{
"from": "human",
"value": "Add a switch test to cover Jit codegen.\n\nThis is a test case to cover switch expansion in Reader.\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 lic... | c# | chosen |
[
{
"from": "human",
"value": "Test using a disposed plugin\n"
},
{
"from": "gpt",
"value": "namespace ServiceBus.AttachmentPlugin.Tests\n{\n using System;\n using System.Collections.Generic;\n using System.Linq;\n using System.Threading.Tasks;\n using Microsoft.Azure.ServiceBus;\n... | c# | chosen |
[
{
"from": "human",
"value": "Add class accidentally omitted from last commit\n"
},
{
"from": "gpt",
"value": "// Copyright (c) 2017 SIL International\n// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)\nusing System;\n\nnamespace LfMerge.Core.MongoConnector\n... | c# | chosen |
[
{
"from": "human",
"value": "Add test scene for song bar component\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.Framework... | c# | chosen |
[
{
"from": "human",
"value": "Add benchmark for stream extensions\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.IO;\nusing Bench... | c# | chosen |
[
{
"from": "system",
"value": "Fix error message formatting in a test helper\n"
},
{
"from": "human",
"value": "using System;\nusing System.IO;\n\nnamespace LibGit2Sharp.Tests.TestHelpers\n{\n public class SelfCleaningDirectory : IDisposable\n {\n public SelfCleaningDirectory() : th... | c# | chosen |
[
{
"from": "human",
"value": "Add add Michelin wmts sample\n"
},
{
"from": "gpt",
"value": "using System.Linq;\nusing System.Net.Http;\nusing BruTile.Wmts;\nusing Mapsui.Layers;\nusing Mapsui.UI;\n\nnamespace Mapsui.Samples.Common.Maps\n{\n public class WmtsMichelinSample : ISample\n {\n ... | c# | chosen |
[
{
"from": "human",
"value": "Remove duplicates from sorted array II\n"
},
{
"from": "gpt",
"value": "// https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/\n//\n// Follow up for \"Remove Duplicates\":\n// What if duplicates are allowed at most twice?\n//\n// For example,... | c# | chosen |
[
{
"from": "human",
"value": "Define common Complex dialog interface\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace IronAHK.Rusty\n{\n interface IComplexDialoge\n {\n string MainText { get; set; }\n string Su... | c# | chosen |
[
{
"from": "human",
"value": "Add separate test for stateful multiplayer client\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": "Implement tests for Commands interface, tests include lazy loading and \"not supported command\" -test.\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing Xunit;\n\nnamespace SCPI.Tests\n{... | c# | chosen |
[
{
"from": "system",
"value": "Add back in tablet flow from home page.\n"
},
{
"from": "human",
"value": "using MyShop.Views.Tablet;\nusing System;\nusing System.Collections.Generic;\n\nusing Xamarin.Forms;\n\nnamespace MyShop\n{\n\tpublic partial class HomePage : ContentPage\n\t{\n\t\tpublic Ho... | c# | chosen |
[
{
"from": "human",
"value": "Add test coverage of TransactionalCommitComponent\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 NUnit.Fram... | c# | chosen |
[
{
"from": "system",
"value": "Fix using portable directory separator character\n"
},
{
"from": "human",
"value": "using Microsoft.AspNet.Builder;\nusing Microsoft.AspNet.Hosting;\nusing Microsoft.Extensions.DependencyInjection;\nusing IdentityServer3.Core.Configuration;\nusing IdentityServer.Co... | c# | chosen |
[
{
"from": "human",
"value": "Add interface for a migration\n"
},
{
"from": "gpt",
"value": "using System.Threading.Tasks;\n\nnamespace RapidCore.Migration\n{\n /// <summary>\n /// Defines a migration\n /// </summary>\n public interface IMigration\n {\n /// <summary>\n ... | c# | chosen |
[
{
"from": "system",
"value": "Update the l\\paths in the server side of the resource\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\n\nnamespace Glimpse.Core2.Framework\n{\n public class GlimpseMetadata\n {\n public GlimpseMetadata()\n {\n... | c# | chosen |
[
{
"from": "human",
"value": "Use this instead of LocaleType\n\n\nSVN: 488784591515bd4cdaa016be4ec9b172dc4e7caf@57\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Data;\nusing System.Globalization;\n\nnamespace NHibernate.Type {\n\n\t/// <summary>\n\t/// CultureInfoType.\n\t/// </sum... | c# | chosen |
[
{
"from": "human",
"value": "Add support for UIViews in section headers and footers.\n\nDocument the LINQ-style of creating dialogs\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Drawing;\nusing System.Linq;\nusing MonoTouch.UIKit;\nusing MonoTouch.Dialog;\n\nnamespace Sample\n{\n\... | c# | chosen |
[
{
"from": "system",
"value": "Add Orchard.Tags.TagsCloud \"no data\" message\n\nFixes #7170"
},
{
"from": "human",
"value": "@using Orchard.Tags.Models\n<ul class=\"tag-cloud\">\n@foreach (TagCount tagCount in Model.TagCounts) {\n <li class=\"tag-cloud-tag tag-cloud-tag-@tagCount.Bucket\">\n... | c# | chosen |
[
{
"from": "human",
"value": "Fix the solution not building after a fresh clone.\n\nWhen someone clones the repository and wants to compile the\nmaster branch (up to the latest commit fed9535519a1a918ed6734001b7f5c3a83dd8a10),\nthe solution will not compile because of a missing SharedAssemblyInfo.cs\n\nThis ... | c# | chosen |
[
{
"from": "human",
"value": "Add class to relay progress reporting\nFor use whenever directly implementing IReportProgress is impossible\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace SkyEditor.Core.Utilities\n{\n /// <summa... | c# | chosen |
[
{
"from": "system",
"value": "Remove colour properties and rely on parent\n\n"
},
{
"from": "human",
"value": "// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.\r\n// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE\r\n\r\nusing osu.Fram... | c# | chosen |
[
{
"from": "human",
"value": "Add missing new test board target class\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Drawing;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nusing SignTestInterface;\nusing winusbdotnet;\n... | c# | chosen |
[
{
"from": "human",
"value": "Add new tests for Unified Label\n\nSee issue https://github.com/mono/CocosSharp/issues/37\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing CocosSharp;\n\nnamespace tests\n{\n public cl... | c# | chosen |
[
{
"from": "human",
"value": "Add test for Ignore attribute\n"
},
{
"from": "gpt",
"value": "using System.Collections.Generic;\nusing System.Linq;\nusing NUnit.Framework;\nusing SQLite.Net.Attributes;\n\n#if __WIN32__\nusing SQLitePlatformTest = SQLite.Net.Platform.Win32.SQLitePlatformWin32;\n#e... | c# | chosen |
[
{
"from": "human",
"value": "Add a docs module to the sample project.\n"
},
{
"from": "gpt",
"value": "\nusing Mango;\nusing Mango.Templates.Minge;\n\nnamespace MangoProject {\n\n\tpublic class Docs : MangoModule {\n\n\t\tpublic static void GettingStarted (MangoContext context)\n\t\t{\n\t\t}\n\n... | c# | chosen |
[
{
"from": "human",
"value": "Add example source code for Sense Hat connecting to Azure IoT Hub.\n\nSigned-off-by: Teerachai Laothong <d1c72b84026585eb55406833a23a9a05825e74a1@outlook.com>\n"
},
{
"from": "gpt",
"value": "using System;\nusing Windows.UI.Xaml;\nusing Windows.UI.Xaml.Controls;\n\n/... | c# | chosen |
[
{
"from": "system",
"value": "Use two newlines in exception message to better match Power Assert.NET\n"
},
{
"from": "human",
"value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Linq.Expressions;\r\n\r\nnamespace ExpressionToC... | c# | chosen |
[
{
"from": "system",
"value": "Fix off by one error.\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace csmacnz.Coveralls\n{\n public class CoverageFileBuilder\n {\n private readonly string _filePath;\n private... | c# | chosen |
[
{
"from": "human",
"value": "Add test to make sure the algorithm is passed down in time\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;\nus... | c# | chosen |
[
{
"from": "human",
"value": "Add google-cloud-resource-prefix header for Datastore calls\n\nFixes #341.\n"
},
{
"from": "gpt",
"value": "// Copyright 2016, Google Inc. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file ex... | c# | chosen |
[
{
"from": "human",
"value": "tools: Add tool to display all external dependencies, with versions\n\nThis makes it easier to check that everything is up-to-date\n"
},
{
"from": "gpt",
"value": "// Copyright 2020 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");... | c# | chosen |
[
{
"from": "human",
"value": "Add proof of concept components list\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.Diagnostics;\nus... | c# | chosen |
[
{
"from": "human",
"value": "Test case for store (no-GC) value type to static field\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//\n\nusing System;\nstruc... | c# | chosen |
[
{
"from": "human",
"value": "Define a math class in the standard library\n"
},
{
"from": "gpt",
"value": "namespace System\n{\n /// <summary>\n /// Defines common mathematical functions and operations.\n /// </summary>\n public static class Math\n {\n public const double PI... | c# | chosen |
[
{
"from": "human",
"value": "Add models for User feedback.\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel.DataAnnotations;\nusing CompetitionPlatform.Data.AzureRepositories.Users;\n\nnamespace CompetitionPlatform.Models\n{\n pub... | c# | chosen |
[
{
"from": "system",
"value": "Change assembly version to 1.9.0.0\n"
},
{
"from": "human",
"value": "//\n// Copyright (c) Microsoft. All rights reserved.\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.... | c# | chosen |
[
{
"from": "human",
"value": "Add event args for product rating\n\n"
},
{
"from": "gpt",
"value": "using System;\n\nnamespace ZobShop.ModelViewPresenter.Product.Details.RateProduct\n{\n public class RateProductEventArgs : EventArgs\n {\n public RateProductEventArgs(int rating, strin... | c# | chosen |
[
{
"from": "human",
"value": "Add a compilation root as a container for individual compilation units created by parsing each file.\n"
},
{
"from": "gpt",
"value": "using System.Collections.Generic;\n\nnamespace slang.Compilation\n{\n public class CompilationRoot\n {\n public Compila... | c# | chosen |
[
{
"from": "human",
"value": "Add some tests for KeyboardDevice.\n\nIncluding failing tests for #3127.\n"
},
{
"from": "gpt",
"value": "using Avalonia.Input.Raw;\nusing Avalonia.Interactivity;\nusing Moq;\nusing Xunit;\n\nnamespace Avalonia.Input.UnitTests\n{\n public class KeyboardDeviceTest... | c# | chosen |
[
{
"from": "human",
"value": "Add empty viewer for .so and .dylib files\n"
},
{
"from": "gpt",
"value": "using System.Collections.Generic;\nusing System.Windows.Controls;\nusing NuGetPackageExplorer.Types;\n\nnamespace PackageExplorer\n{\n [PackageContentViewerMetadata(100, \".so\", \".dylib\... | c# | chosen |
[
{
"from": "human",
"value": "Add a lint rule that checks for correctness of view definitions.\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Data;\nusing System.Linq;\nusing Dapper;\nusing SJP.Schematic.Core;\n\nnamespace SJP.Schematic.Lint.Rules... | c# | chosen |
[
{
"from": "human",
"value": "Add some query unit test\n"
},
{
"from": "gpt",
"value": "using Microsoft.VisualStudio.TestTools.UnitTesting;\nusing System;\nusing System.IO;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing System.Collections;\nusing System.Collections.Generic;\nusing Sys... | c# | chosen |
[
{
"from": "human",
"value": "Fix the issues with the persistentId and vessels dissapearing, etc\n"
},
{
"from": "gpt",
"value": "using Harmony;\nusing LmpCommon.Enums;\n// ReSharper disable All\n\nnamespace LmpClient.Harmony\n{\n /// <summary>\n /// This harmony patch is intended to alway... | c# | chosen |
[
{
"from": "human",
"value": "Make movement better, still not the best\n"
},
{
"from": "gpt",
"value": "namespace Engine\n{\n public class Vector\n {\n public readonly int _x;\n public readonly int _y;\n\n public Vector(int x, int y)\n {\n _x = x;\n ... | c# | chosen |
[
{
"from": "human",
"value": "Add tests for ITraktHttpRequest interface.\n"
},
{
"from": "gpt",
"value": "namespace TraktApiSharp.Tests.Experimental.Requests.Interfaces\n{\n using FluentAssertions;\n using Microsoft.VisualStudio.TestTools.UnitTesting;\n using System.Linq;\n using Sys... | c# | chosen |
[
{
"from": "human",
"value": "Add test coverage of editor sample playback\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.Frame... | c# | chosen |
[
{
"from": "human",
"value": "Copy of other project to get started."
},
{
"from": "gpt",
"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 \r\n/... | c# | chosen |
[
{
"from": "system",
"value": "Add use of tag-helpers instead of razor elements. Remove useless displayfor.\n"
},
{
"from": "human",
"value": "@model eShopWeb.ViewModels.PaginationInfo\n\n<div class=\"esh-pager\">\n <div class=\"container\">\n <article class=\"esh-pager-wrapper row\">\... | c# | chosen |
[
{
"from": "human",
"value": "Add Unit Test for Report Training Provider Command Handler\n"
},
{
"from": "gpt",
"value": "using MediatR;\nusing Moq;\nusing NServiceBus;\nusing NUnit.Framework;\nusing SFA.DAS.EmployerAccounts.Commands.ReportTrainingProvider;\nusing SFA.DAS.EmployerAccounts.Config... | c# | chosen |
[
{
"from": "human",
"value": "Add test checking incompatibility of multi mods\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.Colle... | c# | chosen |
[
{
"from": "human",
"value": "Add example for storing a private key in a file\n"
},
{
"from": "gpt",
"value": "using System;\nusing NSec.Cryptography;\nusing System.Collections.Generic;\nusing Xunit;\n\nnamespace NSec.Tests.Examples\n{\n public static class ExportImport\n {\n [Fact]\... | c# | chosen |
[
{
"from": "human",
"value": "Add abstract hit object application test scene\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 osu.Framework... | c# | chosen |
[
{
"from": "human",
"value": "Change color of components to highlight them.\n\nThis script for PCB-Investigator saves the current selection and change the color of this objects each second to generate a blink effect."
},
{
"from": "gpt",
"value": "//ASynchronous template\r\n//--------------------... | c# | chosen |
[
{
"from": "human",
"value": "Add NStoolbarItem.cs which now supports an Activated event\n"
},
{
"from": "gpt",
"value": "//\n// NSToolbarItem.cs: Support for the NSToolbarItem class\n//\n// Author:\n// Johan Hammar\n//\nusing System;\nusing MonoMac.ObjCRuntime;\nusing MonoMac.Foundation;\n\nna... | c# | chosen |
[
{
"from": "human",
"value": "Fix missing files for release 3.7.4.2704\n"
},
{
"from": "gpt",
"value": "namespace Patagames.Pdf.Net.Controls.WinForms\n{\n /// <summary>\n /// Represents the scaling options of the page for printing\n /// </summary>\n public enum PrintSizeMode\n {\n... | c# | chosen |
[
{
"from": "human",
"value": "Add base implementation for agent bus\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Reactive.Linq;\nusing System.Reactive.Subjects;\nusing System.Reflection;\n\nnamespace Glimpse.Agent\n{ \n public class DefaultMe... | c# | chosen |
[
{
"from": "human",
"value": "Add a Player test scene that uses a legacy skin\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 snippets for Offset type\n"
},
{
"from": "gpt",
"value": "// Copyright 2018 The Noda Time Authors. All rights reserved.\n// Use of this source code is governed by the Apache License 2.0,\n// as found in the LICENSE.txt file.\n\nusing NUnit.Framework;\nusing Syst... | c# | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.