conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix test, we have a custom Exception now that is public.\n" }, { "from": "human", "value": "using AppSettingsByConvention;\nusing FluentAssertions;\nusing NUnit.Framework;\n\nnamespace AppSettingsByConventionTests\n{\n [TestFixture]\n public class WhenAnalyzi...
c#
chosen
[ { "from": "system", "value": "Fix bug in SFML mouse wheel\n" }, { "from": "human", "value": "using System;\nusing SFML.Graphics;\nusing SFML.Window;\nusing Point = SadRogue.Primitives.Point;\nusing SFMLMouse = SFML.Window.Mouse;\n\nnamespace SadConsole.Host\n{\n public class Mouse : SadConso...
c#
chosen
[ { "from": "system", "value": "Format registration a bit better\n" }, { "from": "human", "value": "using Glimpse;\nusing Microsoft.Framework.ConfigurationModel;\nusing Microsoft.Framework.DependencyInjection;\nusing Newtonsoft.Json;\nusing Newtonsoft.Json.Serialization;\nusing System.Collections...
c#
chosen
[ { "from": "system", "value": "Check the state before fetching the thread id\n\nTo be consistent with a similar change to LINQ's Iterator.\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root f...
c#
chosen
[ { "from": "system", "value": "Remove Down() from Migrator (it is not used by the engine)\n" }, { "from": "human", "value": "using Microsoft.SharePoint.Client;\n\nnamespace IonFar.SharePoint.Migration\n{\n /// <summary>\n /// Base class for code-based migrations.\n /// </summary>\n p...
c#
chosen
[ { "from": "system", "value": "Add comments about relative Service address.\n\nMake no functional change; simply added comments to clarify that\nsolution uses a base address for the service, that the specific\nservice is specified using a relative address, and describing the\ncomplete address of the service ...
c#
chosen
[ { "from": "system", "value": "Fix nullRef when processing empty entities (imported from main endpoind to extended one)\n" }, { "from": "human", "value": "using System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Xml.Linq;\r\n\r\nnamespace PX.Api.ContractBased.Maintenance.Cli.Utils...
c#
chosen
[ { "from": "system", "value": "Add subtasks to main screen on tasks\n" }, { "from": "human", "value": "@model IEnumerable<BatteryCommander.Common.Models.Qualification>\n\n@using BatteryCommander.Common.Models;\n\n@{\n ViewBag.Title = \"Qualifications\";\n}\n\n<h2>@ViewBag.Title</h2>\n\n<p>\n ...
c#
chosen
[ { "from": "system", "value": "Add raw key blob formats\n" }, { "from": "human", "value": "namespace NSec.Cryptography\n{\n public enum KeyBlobFormat\n {\n None,\n }\n}\n" }, { "from": "gpt", "value": "namespace NSec.Cryptography\n{\n public enum KeyBlobFormat\n ...
c#
chosen
[ { "from": "system", "value": "Add controller random sleep in Management sample\n" }, { "from": "human", "value": "using Microsoft.AspNetCore.Mvc;\nusing Microsoft.Extensions.Logging;\nusing System.Threading;\nusing System;\n\nnamespace CloudFoundry.Controllers\n{\n public class HomeControlle...
c#
chosen
[ { "from": "system", "value": "Refactor the redisconnection factory slightly\n" }, { "from": "human", "value": "using System;\r\nusing System.Configuration;\r\nusing System.Linq;\r\nusing Autofac;\r\nusing Autofac.Integration.Mvc;\r\nusing BookSleeve;\r\n\r\nnamespace Compilify.Web.Infrastructure...
c#
chosen
[ { "from": "system", "value": "Fix asset usages for field, when script component is assigned to field in Inspector\n" }, { "from": "human", "value": "using JetBrains.ReSharper.Plugins.Unity.Yaml.Psi.DeferredCaches.AssetHierarchy.References;\n\nnamespace JetBrains.ReSharper.Plugins.Unity.Yaml.Psi....
c#
chosen
[ { "from": "system", "value": "Make sure shrink is the default\n" }, { "from": "human", "value": "/* \n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org...
c#
chosen
[ { "from": "system", "value": "Update assembly version to Silverlight 3 Beta version\n" }, { "from": "human", "value": "/* ****************************************************************************\n *\n * Copyright (c) Microsoft Corporation. \n *\n * This source code is subject to terms and co...
c#
chosen
[ { "from": "system", "value": "Make base class abstract and add documentation\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\nnamespace osu.Game.Tests.Visual...
c#
chosen
[ { "from": "system", "value": "Check if managed exception (Android)\n" }, { "from": "human", "value": "using System;\nusing Android.Runtime;\n\nnamespace AI.XamarinSDK.Android\n{\n\tpublic class Utils\n\t{\n\t\tpublic Utils ()\n\t\t{\n\t\t}\n\n\t\tpublic static bool IsManagedException(Exception ...
c#
chosen
[ { "from": "system", "value": "Replace client.GetStringAsync(url) with better HttpClient code that also allows for compression\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.Net.Http;\nusing System....
c#
chosen
[ { "from": "system", "value": "Remove synchronous GetResponse method (it deadlocks the request thread). Remove GetResponseString method because it may deadklock the thread and it is only a convenience method for debugging.\n" }, { "from": "human", "value": "using System.IO;\nusing System.Net.Htt...
c#
chosen
[ { "from": "system", "value": "Remove random xml comment from file header\n" }, { "from": "human", "value": "//-----------------------------------------------------------------------\n// <copyright file=\"DataPortalMethodCache.cs\" company=\"Marimer LLC\">\n// Copyright (c) Marimer LLC. All ...
c#
chosen
[ { "from": "system", "value": "Change buried cards to screen bar in search page\n" }, { "from": "human", "value": "/*\nCopyright (C) 2016 Anki Universal Team <ankiuniversal@outlook.com>\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero ...
c#
chosen
[ { "from": "system", "value": "Improve readability of DbContextOptions code\n" }, { "from": "human", "value": "using Microsoft.Data.Entity;\r\nusing Microsoft.Data.Entity.Infrastructure;\r\nusing Microsoft.Data.Entity.Metadata;\r\nusing System;\r\nusing System.Configuration;\r\nusing System.Linq...
c#
chosen
[ { "from": "system", "value": "Use ConcurrentDictionary for collector registry\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing Prometheus.Advanced.DataContracts;\n\nnamespace Prometheus.Advanced\n{\n public class DefaultCollectorR...
c#
chosen
[ { "from": "system", "value": "Make debug log store work in release builds\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\nusing Bit.Core.Contracts;\nusing Bit.Core.Models;\nusing System.Diagnostics;\n\nnamespace Bit.Owin.Implementations\n{\n public class Debu...
c#
chosen
[ { "from": "system", "value": "Modify allocator test to allow more threads and to switch between them.\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\n\nnamespace ConsoleApplication\n{\n public class Program\n {\n const int NumThreads = 2;\n\n ...
c#
chosen
[ { "from": "system", "value": "Enable package search by default (in master).\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nusing Microsoft.CodeA...
c#
chosen
[ { "from": "system", "value": "Fix U4-8532 - No built in Active Directory authentication in Umbraco 7.3+\n" }, { "from": "human", "value": "using System.Configuration;\nusing System.DirectoryServices.AccountManagement;\nusing System.Threading.Tasks;\nusing Umbraco.Core.Models.Identity;\n\nnamesp...
c#
chosen
[ { "from": "system", "value": "Add tryremove/add to in memory store" }, { "from": "human", "value": "using System.Collections.Concurrent;\nusing System.Collections.Generic;\nusing System.Collections.Immutable;\nusing Abp.Data;\n\nnamespace Abp.RealTime\n{\n public class InMemoryOnlineClientSt...
c#
chosen
[ { "from": "system", "value": "Add another keyframe to UT\n" }, { "from": "human", "value": "using System.Linq;\nusing Avalonia.Data;\nusing Avalonia.Styling;\nusing Avalonia.UnitTests;\nusing Xunit;\n\nnamespace Avalonia.Markup.Xaml.UnitTests\n{\n public class SetterTests : XamlTestBase\n ...
c#
chosen
[ { "from": "system", "value": "Revert \"Change ProcessorInfo to CPU\"\n\nThis reverts commit 0b6b557a5a2ef96672b8924bc666913cab20e788.\n" }, { "from": "human", "value": "using IL2CPU.API;\nusing IL2CPU.API.Attribs;\nusing System;\nusing System.Diagnostics;\nusing Cosmos.Core;\n\nnamespace Cosmos....
c#
chosen
[ { "from": "system", "value": "Add hashrate data to MyRentalsRecord class\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing MiningRigRentalsApi.Converters;\nusing Newtonsoft.Json;\n\nnamespace MiningRigRentalsApi.Ob...
c#
chosen
[ { "from": "system", "value": "Add method to return Department object by it's identifier\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Microsoft.AspNetCore.Mvc;\nusing Diploms.Core;\n\nnamespace Diplom...
c#
chosen
[ { "from": "system", "value": "Add background video for showcase scene (Tournament Client)\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing osu.Framewor...
c#
chosen
[ { "from": "system", "value": "Update to reuse existing window, if it exists\n" }, { "from": "human", "value": "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nusing Microsoft.MixedReality.Toolkit.Utilities.Editor;\nusing System;\nusing UnityEditor;\nusing UnityEng...
c#
chosen
[ { "from": "system", "value": "Fix migration sql to be run in transaction block\n" }, { "from": "human", "value": "using SimpleMigrations;\n\nnamespace Migrations\n{\n [Migration(5, \"Add source track plays index\")]\n public class AddSourceTrackPlaysIndex : Migration\n {\n protec...
c#
chosen
[ { "from": "system", "value": "Create PermanentTestRunner rather than direct TestTree\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing System.Windows;\nusing System.Windows.Controls;\...
c#
chosen
[ { "from": "system", "value": "Add comments to a new class.\n" }, { "from": "human", "value": "using Microsoft.AspNetCore.Mvc;\n\nnamespace LtiLibrary.AspNet.Outcomes.v1\n{\n public class ImsxXmlMediaTypeResult : ObjectResult\n {\n public ImsxXmlMediaTypeResult(object value) : base(...
c#
chosen
[ { "from": "system", "value": "Fix mono bug in the FontHelper class\n" }, { "from": "human", "value": "using System;\nusing System.Drawing;\nusing System.Linq;\nusing NUnit.Framework;\nusing Palaso.UI.WindowsForms;\n\nnamespace PalasoUIWindowsForms.Tests.FontTests\n{\n\t[TestFixture]\n\tpublic c...
c#
chosen
[ { "from": "system", "value": "Fix exception that can occur when a PropertyEditor DLL no longer exists\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Data;\nusing System.Linq;\nusing System.Web;\nusing Census.Core;\nusing Census.Core.Interfaces;\...
c#
chosen
[ { "from": "system", "value": "Fix OrderRecursivelyAsync bug with OrderByDescending\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Collections.ObjectModel;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing ChessVariantsTraining.DbRepositories;\n\nnames...
c#
chosen
[ { "from": "system", "value": "Update property group type enum\n" }, { "from": "human", "value": "namespace Umbraco.Core.Models\n{\n /// <summary>\n /// Represents the type of a property group.\n /// </summary>\n public enum PropertyGroupType : short\n {\n /// <summary>\n ...
c#
chosen
[ { "from": "system", "value": "Check for collision with balls only.\n" }, { "from": "human", "value": "using UnityEngine;\nusing UnityEngine.Events;\n\npublic class World : Planet {\n\n private UnityEvent onPlanetHit = new UnityEvent();\n private Lives lives;\n\n private void Awake() {\...
c#
chosen
[ { "from": "system", "value": "Disable plot buttons until plot is available\n" }, { "from": "human", "value": "using System;\nusing System.Diagnostics;\nusing Microsoft.Languages.Editor;\nusing Microsoft.Languages.Editor.Controller;\n\nnamespace Microsoft.VisualStudio.R.Package.Plots {\n inte...
c#
chosen
[ { "from": "system", "value": "Remove LSP base from Xaml content type definition to avoid regressing rps\n" }, { "from": "human", "value": "// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n// See the LICENS...
c#
chosen
[ { "from": "system", "value": "Add documentation for string extensions.\n" }, { "from": "human", "value": "namespace TraktApiSharp.Extensions\n{\n using System;\n using System.Linq;\n\n public static class StringExtensions\n {\n private static readonly char[] DelimiterChars = ...
c#
chosen
[ { "from": "system", "value": "Fix typo in NetCoreNUnit_SignIn_WithInvalidPassword test comment\n" }, { "from": "human", "value": "using Atata;\nusing NUnit.Framework;\n\nnamespace AtataSamples.NetCore.NUnit\n{\n public class SignInTests : UITestFixture\n {\n [Test]\n public ...
c#
chosen
[ { "from": "system", "value": "Add tests for PascalCaseToSpacedString extensions\n" }, { "from": "human", "value": "using System;\nusing NUnit.Framework;\nusing Entelect.Extensions;\nnamespace Entelect.Tests.Strings\n{\n [TestFixture]\n public class StringExtensionsTests\n {\n [T...
c#
chosen
[ { "from": "system", "value": "Add support for Unmarried/Never married death date\n" }, { "from": "human", "value": "//------------------------------------------------------------------------------\n// <auto-generated>\n// This code was generated by a tool.\n// Runtime Version:4.0.30319....
c#
chosen
[ { "from": "system", "value": "Return DisposableAction.Noop for the null profiler instead of creating new objects for every step.\n" }, { "from": "human", "value": "using System;\nusing Kudu.Contracts;\nusing Kudu.Core.Infrastructure;\n\nnamespace Kudu.Core.Performance\n{\n public class NullP...
c#
chosen
[ { "from": "system", "value": "Split out extensions for Entity Framework, Azure Storage, and Mongo. These are now separate projects (and NuGet packages) that all reference the Tables project (which again references the core service project). New NuGet packages are creates and references added.\n\nAs part of ...
c#
chosen
[ { "from": "system", "value": "Move feature ideas to GitHub issue tracker\n" }, { "from": "human", "value": "using System;\n\nnamespace ChatRelay\n{\n class Program\n {\n private static readonly Relay relay = new Relay();\n\n static void Main()\n {\n AppDoma...
c#
chosen
[ { "from": "system", "value": "Update Store.SqlServer connection string constructor\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Data.Common;\r\nusing System.Data.SqlClient;\r\nusing Store.Models;\r\nusing Store.Storage.Data;\r\n\r\nnamesp...
c#
chosen
[ { "from": "system", "value": "Add exception (only difference from default template)\n" }, { "from": "human", "value": "using System;\n\nusing AppKit;\nusing Foundation;\n\nnamespace UselessExceptions\n{\n\tpublic partial class ViewController : NSViewController\n\t{\n\t\tpublic ViewController (I...
c#
chosen
[ { "from": "system", "value": "Fix conversion bug in out dir provider\n" }, { "from": "human", "value": "/*\n Copyright 2014 Daniel Cazzulino\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 You may...
c#
chosen
[ { "from": "system", "value": "Fix for SOS2 calculator (for one element in array).\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing MilpManager.Abstraction;\n\nnamespace MilpManager.Implementation.CompositeConstraints\n{\n public class SOS2Calculator : ICompositeCon...
c#
chosen
[ { "from": "system", "value": "Increase Cassandra delay after startup\n" }, { "from": "human", "value": "using System;\n\nnamespace Evolve.Test.Utilities\n{\n public class CassandraDockerContainer\n {\n private DockerContainer _container;\n\n public string Id => _container.Id...
c#
chosen
[ { "from": "system", "value": "Remove help box from the folders settings list\n" }, { "from": "human", "value": "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License. You may obtain a copy of\n * the License ...
c#
chosen
[ { "from": "system", "value": "Add Trello provider (not yet working)\n" }, { "from": "human", "value": "namespace Xamarin.Forms.OAuth.Providers\r\n{\r\n public sealed class TrelloOAuthProvider : OAuthProvider\r\n {\r\n private const string _redirectUrl = \"https://trelloResponse.com...
c#
chosen
[ { "from": "system", "value": "Add input event to dotnetcore2.0 example function\n" }, { "from": "human", "value": "// Compile with:\n// docker run --rm -v \"$PWD\":/var/task lambci/lambda:build-dotnetcore2.0 dotnet publish -c Release -o pub\n\n// Run with:\n// docker run --rm -v \"$PWD\"/pub:/va...
c#
chosen
[ { "from": "system", "value": "Update to MD5 hash PR.\n" }, { "from": "human", "value": "using System;\nusing System.Text;\nusing System.Security.Cryptography;\n\nnamespace Gibe.DittoProcessors.Processors\n{\n\tpublic class StringToMd5HashAttribute : TestableDittoProcessorAttribute\n\t{\n\t\tpub...
c#
chosen
[ { "from": "system", "value": "Update for .NET 6 rc2\n" }, { "from": "human", "value": "#pragma warning disable 1591\n//------------------------------------------------------------------------------\n// <auto-generated>\n// This code was generated by a tool.\n//\n// Changes to this file m...
c#
chosen
[ { "from": "system", "value": "Add container for sprite sheet prototypes\n" }, { "from": "human", "value": "/*\n** Project ShiftDrive\n** (C) Mika Molenkamp, 2016.\n*/\n\nusing System.Collections.Generic;\nusing Microsoft.Xna.Framework.Graphics;\nusing Microsoft.Xna.Framework.Audio;\n\nnamespace...
c#
chosen
[ { "from": "system", "value": "[Markdig.Xaml] Use Section instead of Paragraph for quote blocks.\n" }, { "from": "human", "value": "// Copyright (c) 2016 Nicolas Musset. All rights reserved.\n// This file is licensed under the MIT license. \n// See the LICENSE.md file in the project root for mor...
c#
chosen
[ { "from": "system", "value": "Introduce a Protocol class for better encapsulation\n" }, { "from": "human", "value": "namespace OpcMockTests\n{\n internal class OpcMockProtocol\n {\n }\n}" }, { "from": "gpt", "value": "using System;\nusing System.Collections.Generic;\n\nnam...
c#
chosen
[ { "from": "system", "value": "Fix Record Graph Type Query\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\nusing GraphQL.Types;\nusing Snowflake.Model.Game.LibraryExtensions;\n\nnamespace Snowflake.Support.Remoting.GraphQL.Types.Model\n{\n...
c#
chosen
[ { "from": "system", "value": "Change order of OWIN handlers so static file handler does not preempt NuGet client redirect handler.\n" }, { "from": "human", "value": "using Autofac;\nusing Microsoft.Owin.FileSystems;\nusing Microsoft.Owin.StaticFiles;\nusing NuGet.Lucene.Web;\nusing NuGet.Lucene...
c#
chosen
[ { "from": "system", "value": "Add an option to enable handling of help on empty invocations\n" }, { "from": "human", "value": "using System;\n\nnamespace Konsola.Parser\n{\n\t/// <summary>\n\t/// Configures the options when parsing args and binding them to a context.\n\t/// </summary>\n\t[Attri...
c#
chosen
[ { "from": "system", "value": "Change ModelBuilder to use old EntityFrameworkCore RC1 naming conventions\n" }, { "from": "human", "value": "using Microsoft.AspNetCore.Identity.EntityFrameworkCore;\nusing Microsoft.EntityFrameworkCore;\nusing Microsoft.EntityFrameworkCore.Metadata;\n\nnamespace D...
c#
chosen
[ { "from": "system", "value": "Add test for generic name collision on frontend\n" }, { "from": "human", "value": "using System.Web.Http;\nusing Newtonsoft.Json;\n\nnamespace WebApiTestApplication.Controllers\n{\n public class MegaClass : AnotherClass\n {\n public int Something { get...
c#
chosen
[ { "from": "system", "value": "Fix potential reference after dispose.\n" }, { "from": "human", "value": "// -----------------------------------------------------------------------\n// <copyright file=\"GeometryImpl.cs\" company=\"Steven Kirk\">\n// Copyright 2014 MIT Licence. See licence.md for ...
c#
chosen
[ { "from": "system", "value": "Fix supported enum check in type extentions.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Reflection;\n\nnamespace WindowsAzure.Table.Extensions\n{\n internal static class TypeExtentions\n {\n privat...
c#
chosen
[ { "from": "system", "value": "Fix annotations loader for tests\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing JetBrains.Application;\nusing JetBrains.Metadata.Utils;\nusing JetBrains.ReSharper.Psi.ExtensionsAPI.ExternalAnnotations;\nusing JetBrains.Te...
c#
chosen
[ { "from": "system", "value": "Add description for roles scope\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing Thinktecture.IdentityServer.Core;\nusing Thinktecture.IdentityServer.Core.Models;\n\nnamespace Thinktecture.IdentityServer.Host.Config\n{...
c#
chosen
[ { "from": "system", "value": "Revert \"Use dot instead of dash to separate build metadata\"\n\nThis reverts commit 9567abb6ce15b29cc59ab36c0172d31aa9c661fe.\n" }, { "from": "human", "value": "public class BuildVersion\n{\n public GitVersion GitVersion { get; private set; }\n public string ...
c#
chosen
[ { "from": "system", "value": "Add test that aggregate exception is last\n" }, { "from": "human", "value": "using System.Linq;\nusing System.Threading.Tasks;\nusing Bugsnag.Payload;\nusing Xunit;\n\nnamespace Bugsnag.Tests.Payload\n{\n public class ExceptionTests\n {\n [Fact]\n public voi...
c#
chosen
[ { "from": "system", "value": "Remove closing bracket from arguments\n" }, { "from": "human", "value": "namespace AngleSharp.Css.ValueConverters\n{\n using System;\n using System.Collections.Generic;\n using System.Linq;\n using AngleSharp.Dom.Css;\n using AngleSharp.Parser.Css;\n...
c#
chosen
[ { "from": "system", "value": "Adjust version number to match DokanNet\n" }, { "from": "human", "value": "using System;\r\nusing 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...
c#
chosen
[ { "from": "system", "value": "Update the length once during construction\n" }, { "from": "human", "value": "// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.\n// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE\n\nusing System.Linq;\nusing osu.Fra...
c#
chosen
[ { "from": "system", "value": "Revert CrytoConfiguration to using Credential implementation\n" }, { "from": "human", "value": "using System.Collections.Generic;\n\nnamespace RockLib.Encryption.Symmetric\n{\n /// <summary>\n /// Defines an xml-serializable object that contains the informati...
c#
chosen
[ { "from": "system", "value": "Add frame counter to give DrawVis a bit more activity.\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-framework/master/LICENCE\r\n\r\n\r\nusi...
c#
chosen
[ { "from": "system", "value": "Add 10K mod to incompatibility list\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.Linq;\nusing ...
c#
chosen
[ { "from": "system", "value": "Revert \"Fix issue with API header binding when running under a subdirectory\"\n\nThis reverts commit d9e86ff97a08467c721955ca71a8ee2fda5ca9cd.\n" }, { "from": "human", "value": "using System;\nusing System.Web.Mvc;\n\nnamespace NuGetGallery\n{\n public class Ht...
c#
chosen
[ { "from": "system", "value": "Check if eventargs is null\n" }, { "from": "human", "value": "namespace Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing\n{\n using System;\n#if !NET40\n using System.Diagnostics.Tracing;\n#endif\n using System.Linq;\n#if NET40\n using...
c#
chosen
[ { "from": "system", "value": "Add method to get current power source.\n" }, { "from": "human", "value": "// Copyright (C) 2017, The Duplicati Team\r\n// http://www.duplicati.com, info@duplicati.com\r\n//\r\n// This library is free software; you can redistribute it and/or modify\r\n// it und...
c#
chosen
[ { "from": "system", "value": "Change datatype for OpeningBalance and OpeningRate\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace com.techphernalia.MyPersonalAccounts.Model.Inventory\n{\n public class Sto...
c#
chosen
[ { "from": "system", "value": "Add token issuspended to view model\n\n" }, { "from": "human", "value": "using Foundatio.Repositories.Models;\n\nnamespace Exceptionless.Web.Models;\n\npublic class ViewToken : IIdentity, IHaveDates {\n public string Id { get; set; }\n public string Organizat...
c#
chosen
[ { "from": "system", "value": "Fix failing test on Linux\n" }, { "from": "human", "value": "using System;\nusing Newtonsoft.Json;\nusing Oocx.ACME.Jose;\nusing Oocx.ACME.Protocol;\nusing Xunit;\n\nnamespace Oocx.ACME.Tests\n{\n public class RegistrationTests\n {\n [Fact]\n pu...
c#
chosen
[ { "from": "system", "value": "Add Method to Get Device\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing Windows.Devices.I2c;\n\nnamespace AM2320Demo\n{\n ...
c#
chosen
[ { "from": "system", "value": "Fix for the wrong updateBuildNumber behavior \n\nWhen `updateBuildNumber` is set to false the Build Number is still be overwritten." }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing GitVersion.Logging;\nusing GitVersion.OutputV...
c#
chosen
[ { "from": "system", "value": "Allow word boundary delimiter to be set by user\n" }, { "from": "human", "value": "using System;\n\nnamespace FluentConsole.Library\n{\n /// <summary>\n /// Optionial configuration for FluentConsole\n /// </summary>\n public class FluentConsoleSettings\...
c#
chosen
[ { "from": "system", "value": "Add comments to public methods\n" }, { "from": "human", "value": "using System;\r\nusing System.Diagnostics;\r\nusing System.Threading.Tasks;\r\n\r\nnamespace ConsoleWritePrettyOneDay\r\n{\r\n public static class Spinner\r\n {\r\n private static char[]...
c#
chosen
[ { "from": "system", "value": "Use Assert instead of null check because this class is internal.\n" }, { "from": "human", "value": "//=================================================================================================\n// Copyright 2013-2016 Dirk Lemstra <https://magick.codeplex.com/...
c#
chosen
[ { "from": "system", "value": "CSharp: Fix dllimport inconsistency and possibly being broken on windows.\n" }, { "from": "human", "value": "//\n// Copyright (c) 2017-2019 the rbfx project.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software an...
c#
chosen
[ { "from": "system", "value": "Add ResolveByName attribute to TargetControl property\n" }, { "from": "human", "value": "using Avalonia.Controls;\nusing Avalonia.Input;\nusing Avalonia.Interactivity;\nusing Avalonia.Xaml.Interactivity;\n\nnamespace Avalonia.Xaml.Interactions.Custom;\n\n/// <summa...
c#
chosen
[ { "from": "system", "value": "Fix ring glow lookup being incorrect\n\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing osu.Framework.Allocation;\nusing...
c#
chosen
[ { "from": "system", "value": "Change number of cells. ( 9 => 7 )\n" }, { "from": "human", "value": "using System;\n\nnamespace XamarinLifeGameXAML.Logic\n{\n public class CellUtils\n {\n public static int GetIndex(Tuple<int, int> point)\n {\n return GetIndex(point...
c#
chosen
[ { "from": "system", "value": "Fix benchmark for arraylist iterator\n" }, { "from": "human", "value": "namespace Iterator.Performance.Tests.NotConst\n{\n using BenchmarkDotNet.Attributes;\n using BenchmarkDotNet.Attributes.Columns;\n using RangeIt.Iterators;\n using System;\n usin...
c#
chosen
[ { "from": "system", "value": "Return added disposable from `DisposeWith`\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Reactive.Disposables;\nusing System.Text;\n\nnamespace SolidworksAddinFramework\n{\n public static class DisposableExtens...
c#
chosen
[ { "from": "system", "value": "Introduce variables to avoid multiple type casting\n" }, { "from": "human", "value": "using System.Collections.Generic;\n\nnamespace Ploeh.AutoFixture.Xunit\n{\n internal class CustomizeAttributeComparer : Comparer<CustomizeAttribute>\n {\n public over...
c#
chosen
[ { "from": "system", "value": "Fix project name in assembly info\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.InteropServices;\n\n// General Information about an assembly is controlled through the following \n// set of attributes. Change these attribute value...
c#
chosen
[ { "from": "system", "value": "Add test skipping for 0.5.2\n" }, { "from": "human", "value": "using System;\nusing Microsoft.VisualStudio.TestTools.UnitTesting;\n\nnamespace Consul.Test\n{\n [TestClass]\n public class CoordinateTest\n {\n [TestMethod]\n public void TestCoo...
c#
chosen