conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add TODO to remove extracted file after translating it\n" }, { "from": "human", "value": "using System;\r\nusing System.IO;\r\nusing Newtonsoft.Json;\r\nusing SmartMeter.Business.Extractor;\r\nusing SmartMeter.Business.Interface;\r\nusing SmartMeter.Business.Interf...
c#
chosen
[ { "from": "system", "value": "Add using for Template class.\n" }, { "from": "human", "value": "using ExoWeb;\nusing Microsoft.VisualStudio.TestTools.UnitTesting;\nusing System;\nusing System.Collections.Generic;\nusing ExoWeb.Templates;\nusing System.IO;\nusing System.Linq;\n\nnamespace ExoWeb....
c#
chosen
[ { "from": "system", "value": "Fix loader pushing children screens before it is displayed itself\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/master/LICENCE\r\n\r\nus...
c#
chosen
[ { "from": "system", "value": "Bump dev version to v0.11\n" }, { "from": "human", "value": "using Mono.Addins;\nusing Mono.Addins.Description;\n\n[assembly: Addin(\n \"JustEnoughVi\",\n Namespace = \"JustEnoughVi\",\n Version = \"0.10\"\n)]\n\n[assembly: AddinName(\"Just Enough Vi\")]\n...
c#
chosen
[ { "from": "system", "value": "Change of domain name to api.socketlabs.com" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Net;\nusing System.IO;\nusing System.Xml.Linq;\n\nnamespace SocketLabs.OnDemand.Api\n...
c#
chosen
[ { "from": "system", "value": "Refactor: Make Check Connectionstring via builder generic\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Data.SqlClient;\n\nnamespace Dirtybase.App.Options.Validators\n{\n class SqlOptionsValidator : IOptionsVali...
c#
chosen
[ { "from": "system", "value": "Comment out logging for now?\n" }, { "from": "human", "value": "namespace BatteryCommander.Web\n{\n using Microsoft.AspNetCore.Hosting;\n using Microsoft.Extensions.Configuration;\n using Microsoft.Extensions.Hosting;\n using Serilog;\n using Serilog....
c#
chosen
[ { "from": "system", "value": "Fix memory leak when using the SDL2 clipboard\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-framework/master/LICENCE\n\nusing System.Runtime....
c#
chosen
[ { "from": "system", "value": "Send data always as application/octet-stream\n" }, { "from": "human", "value": "//-----------------------------------------------------------------------\n// <copyright file=\"BackgroundUpload.cs\" company=\"Fubar Development Junker\">\n// Copyright (c) Fubar D...
c#
chosen
[ { "from": "system", "value": "Add handling of null values in the Papers property" }, { "from": "human", "value": "using System.Collections.Generic;\r\nusing Newtonsoft.Json;\r\n\r\nnamespace PrintNode.Net\r\n{\r\n public class PrintNodePrinterCapabilities\r\n {\r\n [JsonProperty(\"...
c#
chosen
[ { "from": "system", "value": "Add new overload to the Deserialize method\n" }, { "from": "human", "value": "using System.IO;\n\nnamespace Gigobyte.Mockaroo.Serialization\n{\n public interface ISerializable\n {\n Stream Serialize();\n\n void Deserialize(Stream stream);\n }...
c#
chosen
[ { "from": "system", "value": "Update tests to pass with the new API.\n\nsvn path=/trunk/bitsharp/; revision=114142\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\nusing NUnit.Framework;\nusing MonoTorrent.Client;\nusing System.Net;\nusing ...
c#
chosen
[ { "from": "system", "value": "Make Advanced context inherit from normal context\n" }, { "from": "human", "value": "using System;\n\nnamespace RawRabbit.Context\n{\n\tpublic class AdvancedMessageContext : IAdvancedMessageContext\n\t{\n\t\tpublic Guid GlobalRequestId { get; set; }\n\t\tpublic Act...
c#
chosen
[ { "from": "system", "value": "Fix hard crash due to spinner spin requirement being zero\n\nResolves #2133." }, { "from": "human", "value": "// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.\r\n// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE\r\...
c#
chosen
[ { "from": "system", "value": "Check for NullReference - CodeMashSettings.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing CodeMash.Interfaces;\n\nnamespace CodeMash.Notifications.Email\n{\n public class EmailService : IEmailService\n {\n p...
c#
chosen
[ { "from": "system", "value": "Change the QueueTime to an hour again\n\n" }, { "from": "human", "value": "using Quartz;\nusing System;\nusing System.Threading.Tasks;\nusing Discord;\nusing Microsoft.Extensions.DependencyInjection;\nusing NLog;\n\nnamespace NoAdsHere.Services.Penalties\n{\n pu...
c#
chosen
[ { "from": "system", "value": "Fix for Visual Studio 2008\n\nVisual Studio was unable to infer the generic type arguments\n" }, { "from": "human", "value": "// Needed for NET40\n\nusing System;\nusing System.Collections;\nusing System.Collections.Generic;\n\nusing Theraot.Core;\n\nnamespace Ther...
c#
chosen
[ { "from": "system", "value": "Add method CancelTransaction to service interface\n" }, { "from": "human", "value": "using Cielo.Requests;\nusing Cielo.Responses;\n\nnamespace Cielo\n{\n public interface ICieloService\n {\n CreateTransactionResponse CreateTransaction(CreateTransactio...
c#
chosen
[ { "from": "system", "value": "Correct errors in .cs file" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.ServiceModel.Syndication;\r\nusing System.Web;\r\nusing Firehose.Web.Infrastructure;\r\nnamespace Firehose.Web.Author...
c#
chosen
[ { "from": "system", "value": "Add impl method for Play.\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\nusing UnityEditor;\n\n[RequireComponent(typeof(ObjectPool))]\npublic class AudioController : MonoBehaviour\n{\n #region...
c#
chosen
[ { "from": "system", "value": "Revert \"Hack for new version of RunTextWithXmlResults which returns multiple results\"\n\nThis reverts commit ec4cab5ca645819b33c2dd8d50098b428fc27fb0.\n" }, { "from": "human", "value": "using System;\r\nusing System.Data.SqlClient;\r\n\r\nnamespace tSQLt.Client.N...
c#
chosen
[ { "from": "system", "value": "Rename client trace to git-push-date.\n" }, { "from": "human", "value": "using System;\n\nnamespace Kudu.TestHarness\n{\n public static class ApplicationManagerExtensions\n {\n public static GitDeploymentResult GitDeploy(this ApplicationManager appMana...
c#
chosen
[ { "from": "system", "value": "Read appSettings on construction to throw early.\n" }, { "from": "human", "value": "using System;\nusing System.Configuration;\n\nnamespace librato4net\n{\n public class AppSettingsLibratoSettings : ILibratoSettings\n {\n // ReSharper disable once Inco...
c#
chosen
[ { "from": "system", "value": "Make TLB test scene test TLB and not back button\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.ComponentModel;...
c#
chosen
[ { "from": "system", "value": "Android: Use dynamic layout for simple app\n" }, { "from": "human", "value": "using System;\nusing Android.App;\nusing Android.Content;\nusing Android.Runtime;\nusing Android.Views;\nusing Android.Widget;\nusing Android.OS;\nusing Eto.Forms;\n\nnamespace Eto.Test.An...
c#
chosen
[ { "from": "system", "value": "Fix injection script loading from GUI.\n" }, { "from": "human", "value": "using Infusion.Commands;\nusing Infusion.LegacyApi.Injection;\nusing InjectionScript.Runtime;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nname...
c#
chosen
[ { "from": "system", "value": "Introduce OnNext + push result in\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Net;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace rx\n{\n class Program\n {\n sta...
c#
chosen
[ { "from": "system", "value": "Add a menu to make the dev tools not show up by default\n" }, { "from": "human", "value": "using System;\r\nusing System.ComponentModel;\r\nusing System.IO;\r\nusing System.Reflection;\r\nusing System.Windows.Forms;\r\nusing CefSharp;\r\nusing CefSharp.WinForms;\r\...
c#
chosen
[ { "from": "system", "value": "Add default setting it's missing.\n\n" }, { "from": "human", "value": "using System;\nusing System.Data.SqlClient;\nusing TeamTracker;\n\npublic partial class SettingsLogin : System.Web.UI.Page\n{\n //---------------------------------------------------------------...
c#
chosen
[ { "from": "system", "value": "Set error type depending on severity (squiggle color)\n\n" }, { "from": "human", "value": "using jwldnr.VisualLinter.Linting;\nusing Microsoft.VisualStudio.Text.Adornments;\nusing Microsoft.VisualStudio.Text.Tagging;\n\nnamespace jwldnr.VisualLinter.Tagging\n{\n ...
c#
chosen
[ { "from": "system", "value": "Apply window placement second time to override possible WM_DPICHANGED reaction\n" }, { "from": "human", "value": "using LordJZ.WinAPI;\n\nnamespace WindowPositions\n{\n public class WindowPosition\n {\n public string Title { get; set; }\n\n publ...
c#
chosen
[ { "from": "system", "value": "Fix region name and comments\n" }, { "from": "human", "value": "#region Copyright © 2014 Ricardo Amaral\n\n/*\n * Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.\n */\n\n#endregion\n\nusing CefSharp;\n\nnamespace S...
c#
chosen
[ { "from": "system", "value": "Add closed property to tab\n" }, { "from": "human", "value": "using AvalonStudio.Documents;\nusing AvalonStudio.Extensibility;\nusing AvalonStudio.Shell;\nusing Dock.Model;\nusing ReactiveUI;\nusing System;\n\nnamespace WalletWasabi.Gui.ViewModels\n{\n\tpublic abstr...
c#
chosen
[ { "from": "system", "value": "Add sample validation in dummy app\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel.DataAnnotations;\nusing System.Web.Http;\n\nnamespace Swashbuckle.Dummy.Controllers\n{\n public class AnnotatedTyp...
c#
chosen
[ { "from": "system", "value": "Make it just 'sign in' instead of 'sign in / register'\n" }, { "from": "human", "value": "<div class=\"user-display\">\n @if (!User.Identity.IsAuthenticated)\n {\n string returnUrl = ViewData.ContainsKey(Constants.ReturnUrlViewDataKey) ? (string)ViewDa...
c#
chosen
[ { "from": "system", "value": "Fix for \"PSInvalidOperationException: Nested pipeline should run only from a running pipeline.\" when using PowerShell v3\n" }, { "from": "human", "value": "using System;\r\nusing System.Linq;\r\nusing System.Management.Automation;\r\nusing System.Management.Autom...
c#
chosen
[ { "from": "system", "value": "Fix flaky tests not running at all with environment variable set\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;...
c#
chosen
[ { "from": "system", "value": "Revert \"Fixed formatter which changes Uri to Url which was creating subject as a literal which made it difficult to do do related queries such as the following:\"\n\nSELECT ?p2 ?o2 WHERE { <http://sitecorelinkeddata/sitecore/shell/Leagues/2014/07/01/17/12/La%20Liga> ?p ?o . ?o...
c#
chosen
[ { "from": "system", "value": "Fix marshalling of Winstation name\n" }, { "from": "human", "value": "// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved.\n// Licensed under the MIT license. See LICENSE.txt file in the project root ...
c#
chosen
[ { "from": "system", "value": "Fix for Dna parsing: line endings\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\nusing Fukami.Helpers;\n\npublic class Seed : MonoBehaviour\n{\n\n\t\tpublic string Dna;\n\n\tvoid Start(){\n\t\tvar dnaAsset = Resources.Load<TextAss...
c#
chosen
[ { "from": "system", "value": "Update assembly info for nuget 3.3 release\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 attrib...
c#
chosen
[ { "from": "system", "value": "Fix a problem with 'fixed' variables due to cleanup\n" }, { "from": "human", "value": "// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n// See the LICENSE file in the project ...
c#
chosen
[ { "from": "system", "value": "Add the guest system info as push action\n" }, { "from": "human", "value": "namespace Espera.Network\n{\n public enum PushAction\n {\n UpdateAccessPermission = 0,\n UpdateCurrentPlaylist = 1,\n UpdatePlaybackState = 2,\n UpdateRema...
c#
chosen
[ { "from": "system", "value": "Move ignore up to fixture to kick off new full build for windows and mono.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing NUnit.Framework;\nusing Palaso.UI.WindowsForms.WritingSyste...
c#
chosen
[ { "from": "system", "value": "Use AssemblyName constructor to retrieve assembly version\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Reflection;\r\nusing System.Text;\r\n\r\nnamespace EvilDICOM.Core.Helpers\r\n{\r\n ...
c#
chosen
[ { "from": "system", "value": "Add score displays to GameMaster\n" }, { "from": "human", "value": "using UnityEngine;\nusing System;\nusing System.Collections;\nusing UniRx;\n\n/*\n3) Manage players (network: connect/disconnect, game creation, etc.)\n\n*/\npublic class GameMasterController : Mon...
c#
chosen
[ { "from": "system", "value": "Handle empty properties on fallback\n\nWhen a property exists but value is null or empty, the next value is\nevaluated.\n" }, { "from": "human", "value": "using System.Linq;\nusing EPiServer.Core;\n\nnamespace Meridium.EPiServer.Migration.Support {\n public class...
c#
chosen
[ { "from": "system", "value": "Fix similar \"can see but can't path\" crash on sprinters.\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing Magecrawl.Utilities;\r\n\r\nnamespace Magecrawl.GameEngine.Actors\r\n{\r\n internal class SprinterMonster : ...
c#
chosen
[ { "from": "system", "value": "Use a different authentication type\n" }, { "from": "human", "value": "using System;\nusing Hellang.Authentication.JwtBearer.Google;\nusing Microsoft.AspNetCore.Authentication.JwtBearer;\n\n// ReSharper disable once CheckNamespace\nnamespace Microsoft.Extensions.De...
c#
chosen
[ { "from": "system", "value": "Add comment about other calculation methods\n" }, { "from": "human", "value": "using System.Collections.Generic;\n\nnamespace CertiPay.Payroll.Common\n{\n /// <summary>\n /// Identifies the method to calculate the result\n /// </summary>\n public enum C...
c#
chosen
[ { "from": "system", "value": "Add the usage of the .net linked list as an example for comparison in the outcomes\n" }, { "from": "human", "value": "using System;\nusing AlgorithmsAndDataStructures.LinkedList;\n\nnamespace AlgorithmsAndDataStructures\n{\n class Program\n {\n static ...
c#
chosen
[ { "from": "system", "value": "Add icon for needs measure\n" }, { "from": "human", "value": "@model IEnumerable<ABCP>\n\n<h2>ABCP @Html.ActionLink(\"Add New\", \"New\", \"ABCP\", null, new { @class = \"btn btn-default\" })</h2>\n\n<table class=\"table table-striped\">\n <thead>\n <tr>\...
c#
chosen
[ { "from": "system", "value": "Use yield return instead of allocating new list.\n" }, { "from": "human", "value": "using Newtonsoft.Json;\nusing ReactiveUI;\nusing System;\nusing System.Collections;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Linq;\nusing System...
c#
chosen
[ { "from": "system", "value": "Fix checkbox change not raising settings update\n\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Drawing;\nusing System.Data;\nusing System.Linq;\nusing System.Text;\nusing System.Wind...
c#
chosen
[ { "from": "system", "value": "[HideHoldOut] Fix not compiling, missing import\n" }, { "from": "human", "value": "using Oxide.Core;\nusing Oxide.Core.Plugins;\nusing Oxide.Game.HideHoldOut.Libraries;\n\nnamespace Oxide.Plugins\n{\n public abstract class HideHoldOutPlugin : CSharpPlugin\n {\...
c#
chosen
[ { "from": "system", "value": "Make Params required (not default)\n" }, { "from": "human", "value": "using CommandLine;\nusing CommandLine.Text;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Tailor\n{\n pu...
c#
chosen
[ { "from": "system", "value": "Add get best id method for user.\n" }, { "from": "human", "value": "namespace TraktApiSharp.Objects.Get.Users\n{\n using Newtonsoft.Json;\n using System;\n\n public class TraktUser\n {\n [JsonProperty(PropertyName = \"username\")]\n public...
c#
chosen
[ { "from": "system", "value": "Make tags and fields more thread safe.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace Ocelog\n{\n public enum LogLevel\n {\n Info,\n Warn,\n Error\n }\n\n public ...
c#
chosen
[ { "from": "system", "value": "Change section title to read better\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.Localisation;\nusing o...
c#
chosen
[ { "from": "system", "value": "Switch failing test to passing tests (AppVeyor now successfully running xunit tests and failing the build on failing test)\n" }, { "from": "human", "value": "using System;\nusing Xunit;\n\nnamespace ControlFlow.Test\n{\n public class TryTest\n {\n [Fac...
c#
chosen
[ { "from": "system", "value": "fix: Implement parser to get tests passing\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Text.RegularExpressions;\nusing System.Threading.Tasks;\n\nnamespace Bugsnag.Common\...
c#
chosen
[ { "from": "system", "value": "Set \"isInitialized\" to true, or we don't terminate the analytics\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing Xamarin;\n\nnamespace Espera.Core.Analytics\n{\n internal class XamarinAnalyticsEndpoint : IAnalyticsEnd...
c#
chosen
[ { "from": "system", "value": "Move the preset manager ctor instanciation to PrepareLanding.\n" }, { "from": "human", "value": "using PrepareLanding.Presets;\n\nnamespace PrepareLanding.GameData\n{\n public class GameData\n {\n /// <summary>\n /// Holds definitions (see <...
c#
chosen
[ { "from": "system", "value": "Add an explanatory comment about why the AssemblyVersion and\nAssemblyFileVersion are different.\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General Information abou...
c#
chosen
[ { "from": "system", "value": "Throw for negative count of marbles condition\n" }, { "from": "human", "value": "using System;\nusing TechTalk.SpecFlow;\nusing Xunit;\n\nnamespace Web.UI.Tests\n{\n [Binding]\n public class SimpleSteps\n {\n private static int MarblesCount;\n\n ...
c#
chosen
[ { "from": "system", "value": "Add assertion covering free mod selection mod validity filter\n" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing NUnit.Fram...
c#
chosen
[ { "from": "system", "value": "Increase default receive high-water mark\n" }, { "from": "human", "value": "using System;\nusing Abc.Zebus.Util;\n\nnamespace Abc.Zebus.Transport\n{\n public class ZmqSocketOptions\n {\n public ZmqSocketOptions()\n {\n ReadTimeout = 3...
c#
chosen
[ { "from": "system", "value": "Add some robustness to FullName test\n" }, { "from": "human", "value": "using Xunit;\nusing Xunit.Extensions;\n\nnamespace DotNext.RockAndRoll.UnitTests\n{\n public class MusicianTestCase\n {\n [Theory]\n [InlineData(\"foo\", \"bar\", \"foo bar\...
c#
chosen
[ { "from": "system", "value": "Allow automatic migration with data loss for the metadata db.\n" }, { "from": "human", "value": "// -----------------------------------------------------------------------\n// <copyright file=\"Configuration.cs\" company=\"\">\n// Copyright 2014 Alexander Soffronow ...
c#
chosen
[ { "from": "system", "value": "Revert \"Making Adjustments for implementation\"\n\nThis reverts commit 3248bea193474b14277fe439233f4cb898ea8286.\n" }, { "from": "human", "value": "using Calendar_Converter.ViewModel;\nusing MVVMObjectLibrary;\nusing System;\nusing System.Collections.Generic;\nusi...
c#
chosen
[ { "from": "system", "value": "Fix unresolved reference to UpdaetManager in the documentation\n" }, { "from": "human", "value": "// Copyright © Dominic Beger 2017\n\nusing System;\n\nnamespace nUpdate.UpdateEventArgs\n{\n /// <summary>\n /// Provides data for the <see cref=\"UpdateMana...
c#
chosen
[ { "from": "system", "value": "Disable resharper suggestions for return\n" }, { "from": "human", "value": "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License. See LICENSE in the project root for license information.\n\nusing UnityEngine;\n\nnamespace ...
c#
chosen
[ { "from": "system", "value": "Change \"Slideshow\" \"Max File Size\" option default value\n" }, { "from": "human", "value": "using System;\nusing System.ComponentModel;\nusing DesktopWidgets.WidgetBase.Settings;\n\nnamespace DesktopWidgets.Widgets.PictureSlideshow\n{\n public class Settings ...
c#
chosen
[ { "from": "system", "value": "Correct class name. Was Mapping\n\n\nSVN: 488784591515bd4cdaa016be4ec9b172dc4e7caf@29\n" }, { "from": "human", "value": "using System;\nusing NHibernate.Type;\n\nnamespace NHibernate.Engine {\n\t/// <summary>\n\t/// Defines operations common to \"compiled\" mappings...
c#
chosen
[ { "from": "system", "value": "feature(SignUpAlert): Add button-primary-white class to button\n" }, { "from": "human", "value": "<section class=\"sign-up-alert\">\n <form action=\"/subscribe?EmailAlertsTopicId=@ViewData[\"SignUpAlertsTopicIdTopicId\"]\" method=\"POST\">\n <label for=\"...
c#
chosen
[ { "from": "system", "value": "Add a specific user-agent to CoinChoose.com requests\n" }, { "from": "human", "value": "using Newtonsoft.Json.Linq;\nusing System;\nusing System.Collections.Generic;\nusing System.Net;\n\nnamespace MultiMiner.Coinchoose.Api\n{\n public static class ApiContext\n ...
c#
chosen
[ { "from": "system", "value": "Move foo type to static member\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing Xunit;\nusing Xunit.Extensions;\n\nnamespace AppHarbor.Tests\n{\n\tpublic class TypeNameMatcherTest\n\t{\n\t\tinterface IFoo\n\t\t{\n\t\t}\n\n\...
c#
chosen
[ { "from": "system", "value": "Add link to kendo grid title" }, { "from": "human", "value": "@using Kendo.Mvc.UI\r\n@using VotingSystem.Web.ViewModels.Polls\r\n@model List<PublicActivePollsViewModel>\r\n@{\r\n ViewBag.Title = \"All Public Polls\";\r\n}\r\n\r\n<h1>@ViewBag.Title</h1>\r\n\r\n@(...
c#
chosen
[ { "from": "system", "value": "Add owner user id for bags\n" }, { "from": "human", "value": "using Newtonsoft.Json;\r\nusing System.ComponentModel.DataAnnotations;\r\n\r\nnamespace TheCollection.Business.Tea\r\n{\r\n [JsonConverter(typeof(SearchableConverter))]\r\n public class Bag\r\n ...
c#
chosen
[ { "from": "system", "value": "Fix the solution for Ex05\n" }, { "from": "human", "value": "using System;\nusing System.Threading;\nnamespace Lurchsoft.ParallelWorkshop.Ex05DatedSerial.PossibleSolution\n{\n public class LazyDatedSerial\n {\n private Lazy<ThreadSafeSerial> serial = n...
c#
chosen
[ { "from": "system", "value": "Remove now-redundant code previously used for dictionary support\n" }, { "from": "human", "value": "// Copyright 2017 Google Inc. All Rights Reserved.\n// \n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in...
c#
chosen
[ { "from": "system", "value": "Replace BuildWebHost => CreatewebHostBuilder to support integration testing\n" }, { "from": "human", "value": "using System.IO;\nusing Microsoft.AspNetCore;\nusing Microsoft.AspNetCore.Hosting;\nusing Microsoft.Extensions.Configuration;\nusing Microsoft.Extensions....
c#
chosen
[ { "from": "system", "value": "Reduce the amount of 'PersistedCityStatistics'\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq;\nusing Mirage.Urbanization.ZoneStatisticsQuerying;\nusing System.Collections.Immutable;\n\nnamespace Mirage.Urbanization.Simulatio...
c#
chosen
[ { "from": "system", "value": "Add GitHub auth. Hide option in UI\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Net;\n\nnamespace SimpleWAWS.Authentication\n{\n public static class AuthUtilities\n {\n public static string GetContentFromUrl(string u...
c#
chosen
[ { "from": "system", "value": "Add application title and copyright.\n" }, { "from": "human", "value": "using System.Reflection;\nusing System.Runtime.CompilerServices;\nusing System.Runtime.InteropServices;\n\n// General Information about an assembly is controlled through the following \n// set ...
c#
chosen
[ { "from": "system", "value": "Allow to set spawn interval public\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\n\npublic class SpawnController : MonoBehaviour {\n\n\tpublic GameObject enemiesFolder;\n\tpublic GameObject originalEnemy;\n\tpublic int enemiesToSp...
c#
chosen
[ { "from": "system", "value": "Split WCF functionality out of Autofac.Extras.Multitenant into a separate\nassembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned\n3.1.0.\n" }, { "from": "human", "value": "//-------------------------------------------------------------------...
c#
chosen
[ { "from": "system", "value": "Change ObjectCreated and ObjectUpdated to DateTime\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing Newtonsoft.Json;\n\nnamespace Shippo {\n [JsonObject (MemberSerialization.OptIn)]\n public class Batch : ShippoId {\n ...
c#
chosen
[ { "from": "system", "value": "Remove TEAK_X_Y_OR_NEWER before adding them again so that in the case of SDK rollback defines are not left in\n" }, { "from": "human", "value": "using UnityEditor;\nusing UnityEditor.Build;\n#if UNITY_2018_1_OR_NEWER\nusing UnityEditor.Build.Reporting;\n#endif\nusin...
c#
chosen
[ { "from": "system", "value": "Update image resolution to UHD\n" }, { "from": "human", "value": "using System;\nusing System.IO;\n\nnamespace Kfstorm.BingWallpaper\n{\n public static class Constants\n {\n public static string DataPath\n {\n get\n {\n ...
c#
chosen
[ { "from": "system", "value": "Store ObjectHandle in LogicalCallContext and prevent cross AppDomain Activity usage\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 t...
c#
chosen
[ { "from": "system", "value": "Add a control to permit rebase only when Working directory have no changes\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing NDesk.Options;\nusing Sep.Git.Tfs.Core;\nusing StructureMap;\n\nnames...
c#
chosen
[ { "from": "system", "value": "Add multiplayer screen test steps.\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 NUnit.Framework;\nusing osu.Game.Sc...
c#
chosen
[ { "from": "system", "value": "Add license header to the new file\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace osu.Game.Graphics\n{\n public class DrawableJoinDate : DrawableDate\n {\n private readonly DateTimeO...
c#
chosen
[ { "from": "system", "value": "Switch remaining test back to NUnit\n" }, { "from": "human", "value": "using Xunit;\nusing System;\nusing Cake.Core.IO;\nusing Cake.Xamarin.Build;\n\nnamespace Cake.Xamarin.Build.Tests.Fakes\n{\n public class DownloadFileTests : TestFixtureBase\n {\n\t\t[Fact...
c#
chosen
[ { "from": "system", "value": "Disable NetworkPlayer extensions in WebGL\n\nAs noted in Unity's docs, these APIs are unavailable when building for\nWebGL. See https://docs.unity3d.com/Manual/webgl-networking.html.\n" }, { "from": "human", "value": "using UnityEngine;\n\nnamespace Extensions\n{\n ...
c#
chosen
[ { "from": "system", "value": "Simplify firefox title with version selector.\n\nAdd ability to get win32 package variant." }, { "from": "human", "value": "using System.Linq;\nusing System.Net;\nusing System.Net.Security;\nusing System.Security.Cryptography.X509Certificates;\nusing AngleSharp;\nu...
c#
chosen
[ { "from": "system", "value": "Add check if data is null\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\n\npublic class Wall : MonoBehaviour {\n\n\tpublic Sprite dmgSprite; \n\tpublic int hp = 4; \n\tpublic AudioClip chopSound1;\n\tpublic AudioClip chopSound2;\n...
c#
chosen
[ { "from": "system", "value": "Fix possible exceptions in Reflection helper.\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\n\npublic static class ReflectionHelper\n{\n public static Type FindType(string fullName)\n {\n return AppDomain.CurrentDomain.GetAssembl...
c#
chosen
[ { "from": "system", "value": "Fix broken claims and characters filter\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing JoinRpg.DataModel;\nusing JoinRpg.Services.Interfaces;\n\nnamespace JoinRpg.Services.Impl.ClaimProblemFilters\n{\n internal class BrokenClaimsAndCha...
c#
chosen