conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add Message if AvgKmL is null\n" }, { "from": "human", "value": "@using CarFuel.Models\n@model Car\n\n<h2>@Model.Make (@Model.Model)</h2>\n\n<div class=\"well well-sm\">\n Average consumption is <strong>@(Model.AverageKmL?.ToString(\"n2\"))</strong> km/L\n</div>...
c#
chosen
[ { "from": "system", "value": "Add logic for creating a pantru for new users\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Microsoft.EntityFrameworkCore;\nusing PlanEatSave.Models;\nusing PlanEatSave.Utils;\n\nnamespace PlanEatSave.Data...
c#
chosen
[ { "from": "system", "value": "Add Image to clipboard data" }, { "from": "human", "value": "namespace ElectronNET.API.Entities\n{\n /// <summary>\n /// \n /// </summary>\n public class Data\n {\n /// <summary>\n /// Gets or sets the text.\n /// </summary>\n ...
c#
chosen
[ { "from": "system", "value": "[FEATURE] Move the Recenter and Monoscoping Rendering feature to the Oculus Head Controller\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing UnityEditor;\nusing UnityEngine;\n\n[Custo...
c#
chosen
[ { "from": "system", "value": "Add plugin identifier to the object itself\n" }, { "from": "human", "value": "using System.Text;\n\nnamespace TweetDck.Plugins{\n static class PluginScriptGenerator{\n public static string GenerateConfig(PluginConfig config){\n return config.An...
c#
chosen
[ { "from": "system", "value": "Remove signupbox id from register bx since then it can be hidden by the zk.showLoginBox function\n" }, { "from": "human", "value": "@{\n ViewBag.Title = \"Registreer je vandaag bij de Oogstplanner\";\n}\n\n<div class=\"flowtype-area\">\n\n<!-- START RESPONSIVE R...
c#
chosen
[ { "from": "system", "value": "Change unity scene type to struct\n" }, { "from": "human", "value": "using UnityEngine;\n\nnamespace LiteNetLibManager\n{\n [System.Serializable]\n public class LiteNetLibScene\n {\n [SerializeField]\n private Object sceneAsset;\n [Ser...
c#
chosen
[ { "from": "system", "value": "Check IAllowAnonymousFilter in a simpler way.\n" }, { "from": "human", "value": "using System.Linq;\nusing System.Threading.Tasks;\nusing Abp.AspNetCore.Mvc.Extensions;\nusing Abp.Authorization;\nusing Abp.Dependency;\nusing Microsoft.AspNetCore.Authorization;\nusi...
c#
chosen
[ { "from": "system", "value": "Fix for initializing models from assembly.\n" }, { "from": "human", "value": "using System;\nusing Gtk;\nusing Castle.ActiveRecord.Framework.Config;\nusing Castle.ActiveRecord;\nusing HumanRightsTracker.Models;\n\nnamespace HumanRightsTracker\n{\n\tclass MainClass\n...
c#
chosen
[ { "from": "system", "value": "Fix note masks not working\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 osu.Framework.Graphics;\nusing osu.Framewor...
c#
chosen
[ { "from": "system", "value": "Update RavenDB connection string name\n" }, { "from": "human", "value": "using Autofac;\r\nusing Autofac.Integration.Mvc;\r\nusing Raven.Client;\r\nusing Raven.Client.Document;\r\n\r\nnamespace Compilify.Web.Infrastructure.DependencyInjection\r\n{\r\n public cla...
c#
chosen
[ { "from": "system", "value": "Add cert-test action to help diagnose issues in azure\n" }, { "from": "human", "value": "using System.Web.Mvc;\r\nusing SFA.DAS.EmployerUsers.WebClientComponents;\r\n\r\nnamespace SFA.DAS.EmployerUsers.Web.Controllers\r\n{\r\n public class HomeController : Contr...
c#
chosen
[ { "from": "system", "value": "Add basic hello server version\n" }, { "from": "human", "value": "using System;\n\nnamespace HelloServer\n{\n\tclass MainClass\n\t{\n\t\tpublic static void Main(string[] args)\n\t\t{\n\t\t\tConsole.WriteLine(\"Hello World!\");\n\t\t}\n\t}\n}\n" }, { "from":...
c#
chosen
[ { "from": "system", "value": "Use stream writer instead of BinaryWriter\n" }, { "from": "human", "value": "using PluginContracts;\nusing System;\nusing System.IO;\nusing System.Net;\nusing System.Net.Sockets;\nusing System.Threading.Tasks;\n\nnamespace LAN\n{\n public class LANInterface : IP...
c#
chosen
[ { "from": "system", "value": "Put StreamReader into using blog\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing DotVVM.Framework.Controls;\nusing DotVVM.Framework.Hosting;\nusing Newtonsoft.Json;\n\nnamespace DotVVM.Framework.ResourceManagement\n{\n /// <summary>\n ...
c#
chosen
[ { "from": "system", "value": "[DOC] Add static to class definition because reasons.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Microsoft.AspNetCore.Hosting;\nusing Microsoft.Extensions.Configurati...
c#
chosen
[ { "from": "system", "value": "Change some clock widget settings names\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\n\nnamespace DesktopWidgets.WidgetBase.Settings\n{\n public class WidgetClockSettingsBase : WidgetSettingsBa...
c#
chosen
[ { "from": "system", "value": "Set default timeout to 100 seconds\n\nThis is the same as HttpClient.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Net.Http;\n\nnamespace Octokit.Internal\n{\n public class Request : IRequest\n {\n p...
c#
chosen
[ { "from": "system", "value": "Sort the i18n keys by descending length\nFix 'FullHP' getting overridden by 'Full'.\n" }, { "from": "human", "value": "using System.Collections.Generic;\r\nusing System.IO;\r\nusing System.Xml;\r\n\r\nnamespace PROProtocol\r\n{\r\n public class Language\r\n {...
c#
chosen
[ { "from": "system", "value": "Make mania selection blueprint abstract\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": "Add path and line to GH console output\n" }, { "from": "human", "value": "using System;\nusing System.ComponentModel.Composition;\nusing System.Text;\nusing NVika.Abstractions;\nusing NVika.Parsers;\n\nnamespace NVika.BuildServers\n{\n internal sealed class GitHu...
c#
chosen
[ { "from": "system", "value": "Change exception message and pass innerexception to argumentexception\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace AppHarbor\n{\n\tpublic class TypeNameMatcher<T>\n\t{\n\t\tprivate readonly IEn...
c#
chosen
[ { "from": "system", "value": "Fix compile issue from merge\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing JetBrains.ReSharper.Feature.Services.LiveTemplates.Scope;\nusing JetBrains.ReSharper.Plugins.Unity.ShaderLab.ProjectModel;\nusing JetBrains.ReSha...
c#
chosen
[ { "from": "system", "value": "Remove a dependency on System.Drawing.Common by using a compatible color parser.\n" }, { "from": "human", "value": "using System.Drawing;\nusing System.Globalization;\n\nnamespace ClosedXML.Utils\n{\n internal static class ColorStringParser\n {\n publi...
c#
chosen
[ { "from": "system", "value": "Update context that is passed through\n" }, { "from": "human", "value": "using System;\n\nnamespace Glimpse.Agent.Web\n{\n public interface IIgnoredRequestPolicy\n {\n bool ShouldIgnore(IContext context);\n }\n}" }, { "from": "gpt", "val...
c#
chosen
[ { "from": "system", "value": "Add scaffolding for skipping ease-in\n\nBut it doesn't work yet. So we'll see if we bother with this one.\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class MainCamera : MonoBehaviour ...
c#
chosen
[ { "from": "system", "value": "Set default for Reminder mapping to 'JustUpcoming'.\n" }, { "from": "human", "value": "// This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/)\n// Copyright (c) 2015 Gerhard Zehetbauer \n// \n// This program is free software: ...
c#
chosen
[ { "from": "system", "value": "Add Win/Lose Scene Transition Hooks\n" }, { "from": "human", "value": "using UnityEngine;\nusing System.Collections;\n\npublic class GUIBehavior : MonoBehaviour {\n\t\n\tpublic Texture barTexture;\n\tpublic wolf wolfData;\n\tpublic int boxWidth = 34;\n\tpublic int ...
c#
chosen
[ { "from": "system", "value": "Set default wait interval for Run command to be 60 seconds\n" }, { "from": "human", "value": "using ConDep.Dsl.SemanticModel;\r\nusing ConDep.Dsl.SemanticModel.WebDeploy;\r\nusing Microsoft.Web.Deployment;\r\n\r\nnamespace ConDep.Dsl.Operations.Application.Execution...
c#
chosen
[ { "from": "system", "value": "Fix path output for inputs\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\nusing MBEV = Microsoft.Build.Evaluation;\...
c#
chosen
[ { "from": "system", "value": "Fix compilation error introduced with my previous fix\n" }, { "from": "human", "value": "//\n// NSUrlConnection.cs:\n// Author:\n// Miguel de Icaza\n//\n\nusing System;\nusing System.Reflection;\nusing System.Collections;\nusing System.Runtime.InteropServices;\n\n...
c#
chosen
[ { "from": "system", "value": "Add descriptions to enum members\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.Beatmaps\n{\n /// <summ...
c#
chosen
[ { "from": "system", "value": "Add comment about ParentPid check." }, { "from": "human", "value": "using System;\nusing O365.Security.ETW;\n\nnamespace hiddentreasure_etw_demo\n{\n public static class RemoteThreadInjection\n {\n public static UserTrace CreateTrace()\n {\n ...
c#
chosen
[ { "from": "system", "value": "Add parameter to the public method\n" }, { "from": "human", "value": "using BruTile.Predefined;\nusing BruTile.Web;\nusing Mapsui.Layers;\n\nnamespace Mapsui.Utilities\n{\n public static class OpenStreetMap\n {\n private const string DefaultUserAgent =...
c#
chosen
[ { "from": "system", "value": "Improve performance for realtime API\n" }, { "from": "human", "value": "using PubNubMessaging.Core;\nusing System;\nusing Utf8Json;\n\nnamespace BitFlyer.Apis\n{\n public class RealtimeApi\n {\n private readonly Pubnub _pubnub;\n\n public Realti...
c#
chosen
[ { "from": "system", "value": "Fix stupid error from scafolding\n" }, { "from": "human", "value": "namespace Poller.Data\n{\n using Microsoft.AspNet.Identity.EntityFramework;\n using Models;\n using Migrations;\n using System.Data.Entity;\n\n public class PollerDb : IdentityDbCont...
c#
chosen
[ { "from": "system", "value": "Revert \"Fix D rank displaying as F\"\n\nThis reverts commit 17b2a4ca0de3c486ab239da7e278fcbb9a7d8cd9.\n" }, { "from": "human", "value": "// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.\n// Licensed under the MIT Licence - https://raw.githubusercontent.com...
c#
chosen
[ { "from": "system", "value": "Add test data seeder to DbContext.\n" }, { "from": "human", "value": "using System;\nusing System.Data.Entity;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\n\nnamespace NoteFolder.Models {\n\tpublic class FileDbContext : DbContext {\n\t...
c#
chosen
[ { "from": "system", "value": "Reduce default bucket count for HTTP request duration to 16\n\n1ms to 65k ms\n" }, { "from": "human", "value": "namespace Prometheus.HttpMetrics\n{\n public sealed class HttpRequestDurationOptions : HttpMetricsOptionsBase\n {\n private const string Defa...
c#
chosen
[ { "from": "system", "value": "Reduce contributors to work for cloud tests.\n" }, { "from": "human", "value": "// ==========================================================================\n// Squidex Headless CMS\n// ==========================================================================\n/...
c#
chosen
[ { "from": "system", "value": "Use boxenterprise.net when viewing file of folder from Acumatica\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.UI;\nusing System.Web.UI.WebControls;\nusing PX.Data;\nusin...
c#
chosen
[ { "from": "system", "value": "Allow control over references being added\n" }, { "from": "human", "value": "using System.IO;\r\n\r\nnamespace Cassette.BundleProcessing\r\n{\r\n public abstract class ParseReferences<T> : IBundleProcessor<T>\r\n where T : Bundle\r\n {\r\n publi...
c#
chosen
[ { "from": "system", "value": "Update Tests to reflect attribute move\n" }, { "from": "human", "value": "using Consola.Library;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Tests.Scriptables\n{\n public c...
c#
chosen
[ { "from": "system", "value": "Set thread count to 1 in kestrel options.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Microsoft.AspNetCore.Hosting;\n\nnamespace CompetitionPlatform\...
c#
chosen
[ { "from": "system", "value": "Fix unique control name for WPF\n" }, { "from": "human", "value": "// --------------------------------------------------------------------------------------------------------------------\n// <copyright file=\"StringExtensions.cs\" company=\"Catel development team\"...
c#
chosen
[ { "from": "system", "value": "Use `Colour2` of orange theme for explicit pill\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...
c#
chosen
[ { "from": "system", "value": "Add route to support children\n" }, { "from": "human", "value": "using Orders.com.Web.Api.Filters;\nusing System.Web.Http;\n\nnamespace Orders.com.Web.Api\n{\n public static class WebApiConfig\n {\n public static void Register(HttpConfiguration config)...
c#
chosen
[ { "from": "system", "value": "Add LocationCompleter to HDInsight cmdlets\n" }, { "from": "human", "value": "// ----------------------------------------------------------------------------------\n//\n// Copyright Microsoft Corporation\n// Licensed under the Apache License, Version 2.0 (the \"Lic...
c#
chosen
[ { "from": "system", "value": "Add messageworker start to main()\n" }, { "from": "human", "value": "using System;\nusing System.Threading;\nusing System.Net;\nusing System.Net.Sockets;\nusing System.Text.RegularExpressions;\nusing System.Text;\nusing transf.Log;\n\nnamespace transf\n{\n\tclass P...
c#
chosen
[ { "from": "system", "value": "Allow for saving of simulations before the slime has fully expanded\n" }, { "from": "human", "value": "using Gtk;\nusing NLog;\nusing SlimeSimulation.Controller.WindowController.Templates;\n\nnamespace SlimeSimulation.View.WindowComponent.SimulationControlComponent\...
c#
chosen
[ { "from": "system", "value": "Add check box for show in library or not\n" }, { "from": "human", "value": "@model IPagedList<MMLibrarySystem.Models.BookListController.BookListItem>\n\n@{\n ViewBag.Title = \"Book List\";\n}\n\n@using (Ajax.BeginForm(new AjaxOptions()\n{\n HttpMethod = \"GET...
c#
chosen
[ { "from": "system", "value": "Send a POST to light up the HockeyGoalLight\n" }, { "from": "human", "value": "using System.Diagnostics;\n\nnamespace GOALWorker\n{\n public static class LightNotifier\n {\n //TODO: Jared Implement call to each light here for their team\n public...
c#
chosen
[ { "from": "system", "value": "Remove error in case the searchString is empty\n" }, { "from": "human", "value": "@model Tigwi.UI.Models.IAccountModel\n\n@{\n ViewBag.Title = \"ShowAccount\";\n}\n\n@section LeftInfos\n{\n <p>Oh Hai @Model.Name</p>\n @if(User.Identity.IsAuthentica...
c#
chosen
[ { "from": "system", "value": "Change test method to async\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing Microsoft.VisualStudio.TestTools.UnitTesting;\n\nnamespace PublicHolidays.Test\n{\n [TestClass]\n public class PublicHolidaysApiTest\n {\n [TestM...
c#
chosen
[ { "from": "system", "value": "Rework the way DB access is done\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Data;\nusing System.Drawing;\nusing System.Linq;\nusing System.Text;\nusing System.Windows.Forms;\n\nusi...
c#
chosen
[ { "from": "system", "value": "Use dot instead of dash to separate build metadata\n" }, { "from": "human", "value": "public class BuildVersion\n{\n public GitVersion GitVersion { get; private set; }\n public string Version { get; private set; }\n public string Milestone { get; private se...
c#
chosen
[ { "from": "system", "value": "Hide results until results are available\n" }, { "from": "human", "value": "@model string\n\n<div class=\"container\">\n <form action=\"/\" method=\"POST\">\n <div class=\"control-group\">\n <div class=\"controls controls-row\">\n ...
c#
chosen
[ { "from": "system", "value": "Fix parameter order in ArgumentException constructor\n" }, { "from": "human", "value": "using System;\n\nnamespace WpfMath.Utils\n{\n internal static class Result\n {\n public static Result<TValue> Ok<TValue>(TValue value) => new Result<TValue>(value, n...
c#
chosen
[ { "from": "system", "value": "Fix not being able to drag non-snaked sliders\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.Graphics;\n...
c#
chosen
[ { "from": "system", "value": "Use discards to fix CI complaints\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\n#nullable disable\n\nusing System;\nusing N...
c#
chosen
[ { "from": "system", "value": "Add SignPath to known words\n" }, { "from": "human", "value": "// Copyright 2021 Maintainers of NUKE.\n// Distributed under the MIT License.\n// https://github.com/nuke-build/nuke/blob/master/LICENSE\n\nnamespace Nuke.Common.Utilities\n{\n public static partial ...
c#
chosen
[ { "from": "system", "value": "Apply angular velocity to asteroids\n\n... when they bump into something, to make the scene feel a little bit\nmore alive\n" }, { "from": "human", "value": "/*\n** Project ShiftDrive\n** (C) Mika Molenkamp, 2016.\n*/\n\nusing Microsoft.Xna.Framework;\n\nnamespace S...
c#
chosen
[ { "from": "system", "value": "Use body length for Service Bus binary messages.\n" }, { "from": "human", "value": "using System;\nusing System.IO;\nusing System.Text;\nusing Microsoft.Azure.Jobs.Host.Bindings;\nusing Microsoft.ServiceBus.Messaging;\n\nnamespace Microsoft.Azure.Jobs.ServiceBus.Tr...
c#
chosen
[ { "from": "system", "value": "Update existing documentation for show images.\n" }, { "from": "human", "value": "namespace TraktApiSharp.Objects.Get.Shows\n{\n using Basic;\n using Newtonsoft.Json;\n\n /// <summary>\n /// A collection of images for a Trakt show.\n /// </summary>\n...
c#
chosen
[ { "from": "system", "value": "Include the Table namespace into Hangman\n" }, { "from": "human", "value": "using System;\n\npublic class Hangman {\n public static void Main(string[] args) {\n Console.WriteLine(\"Hello, World!\");\n Console.WriteLine(\"You entered the following {0} command ...
c#
chosen
[ { "from": "system", "value": "Add vote method to voting service\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace PhotoLife.Services\n{\n class VotingService\n {\n }\n}...
c#
chosen
[ { "from": "system", "value": "Increment version 0.1.3 -> 0.1.4\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 values...
c#
chosen
[ { "from": "system", "value": "Test version of binary dependency\n" }, { "from": "human", "value": "using System;\nusing System.Linq;\nusing Microsoft.Build.Evaluation;\nusing NuGet.Extensions.MSBuild;\nusing NuGet.Extensions.Tests.TestData;\nusing NUnit.Framework;\n\nnamespace NuGet.Extensions....
c#
chosen
[ { "from": "system", "value": "Fix ButtonMadness application closes when Close button is clicked.\n" }, { "from": "human", "value": "using System;\nusing System.Drawing;\nusing MonoMac.Foundation;\nusing MonoMac.AppKit;\nusing MonoMac.ObjCRuntime;\n\nnamespace SamplesButtonMadness\n{\n\tpublic pa...
c#
chosen
[ { "from": "system", "value": "Allow Title to be set for searching GetSurveyList\n" }, { "from": "human", "value": "using System;\n\nnamespace SurveyMonkey.RequestSettings\n{\n public class GetSurveyListSettings : IPagingSettings\n {\n public enum SortByOption\n {\n ...
c#
chosen
[ { "from": "system", "value": "Make the Loading html page look better.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\n\nusing Xamarin.Forms;\n\nnamespace BabbyJotz {\n public partial class WebViewPage : ContentPage {\n ...
c#
chosen
[ { "from": "system", "value": "Include interface to make IoC easier\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Xml.Serialization;\n\nnamespace XeroApi.Model\n{\n public abstract class EndpointModelBase : ModelBase\r\n {\r\n \r\n }\n\n pu...
c#
chosen
[ { "from": "system", "value": "Fix master server address retrieve\n" }, { "from": "human", "value": "using System.IO;\nusing System.Net;\nusing System.Text.RegularExpressions;\n\nnamespace LMP.MasterServer\n{\n public class Helper\n {\n public static string GetOwnIpAddress()\n ...
c#
chosen
[ { "from": "system", "value": "Fix unit test that was failing after moving from yepnope to LazyLoad.js\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Threading.Tasks;\r\nusing NUnit.Framework;\r\nu...
c#
chosen
[ { "from": "system", "value": "Fix rare crash when deleting airlock while the deny animation is playing\n" }, { "from": "human", "value": "using Robust.Client.GameObjects;\nusing Robust.Client.Interfaces.GameObjects.Components;\nusing static Content.Shared.GameObjects.Components.SharedWiresCompon...
c#
chosen
[ { "from": "system", "value": "Change Steam switch timeout and check time\n" }, { "from": "human", "value": "#region\n\nusing System.Diagnostics;\nusing System.IO;\nusing System.Threading;\nusing SteamAccountSwitcher.Properties;\n\n#endregion\n\nnamespace SteamAccountSwitcher\n{\n internal cl...
c#
chosen
[ { "from": "system", "value": "Load from embedded resources on GTK too.\n" }, { "from": "human", "value": "// Copyright (c) The Perspex Project. All rights reserved.\n// Licensed under the MIT license. See licence.md file in the project root for full license information.\n\nusing System;\nusing ...
c#
chosen
[ { "from": "system", "value": "Remove sticky note 'Patron's Trophy'\n" }, { "from": "human", "value": "<div class=\"sticky-notes\">\n <div class=\"sticky-note\">\n <i class=\"pin\"></i>\n <div class=\"content yellow\">\n <h1>\n Patron's Trophy\n ...
c#
chosen
[ { "from": "system", "value": "Build the builder in order to create the receiver\n\nDon't access MessagingScenarioFactory.Configuration unnecessarily.\n" }, { "from": "human", "value": "using Microsoft.Extensions.Configuration;\nusing RockLib.Messaging;\n\nnamespace RockLib.Configuration.Messagi...
c#
chosen
[ { "from": "system", "value": "Adjust font size of data list page\n" }, { "from": "human", "value": "@model IEnumerable<Zk.Models.Crop>\n\n@{\n ViewBag.Title = \"Gewassen\";\n}\n<h2>Dit zijn de gewassen in de database:</h2>\n\n<table class=\"table table-striped\">\n <tr>\n \t<th>Id</th>...
c#
chosen
[ { "from": "system", "value": "Revert \"unit test bug fix\"\n\nThis reverts commit 47cf11fbc23ddabc98b7c008ba122a63c344f3fb.\n" }, { "from": "human", "value": "// --------------------------------------------------------------------------------------------------------------------\n// <copyright fi...
c#
chosen
[ { "from": "system", "value": "Add empty constructor for files that don't have a comment yet.\n" }, { "from": "human", "value": "using NUnit.Framework;\n\nnamespace TagLib.Tests.Images.Validators\n{\n\t/// <summary>\n\t/// This class tests the modification of the Comment field,\n\t/// regar...
c#
chosen
[ { "from": "system", "value": "Make wait service not timeout without yelling, and making the timeout longer\n" }, { "from": "human", "value": "// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.\n// Licensed under the Apache License, Version 2.0. See License.txt in the projec...
c#
chosen
[ { "from": "system", "value": "Fix caption of Python Environments window.\n" }, { "from": "human", "value": "/* ****************************************************************************\r\n *\r\n * Copyright (c) Microsoft Corporation. \r\n *\r\n * This source code is subject to terms and cond...
c#
chosen
[ { "from": "system", "value": "Unwind some Linq in a relatively hot path\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 System.Collections...
c#
chosen
[ { "from": "system", "value": "Use GetFileFromApplicationUriAsync to convert from a Uri to a system file path.\n" }, { "from": "human", "value": "using FBCore.Concurrency;\nusing ImagePipeline.Image;\nusing ImagePipeline.Memory;\nusing ImagePipeline.Request;\nusing System.IO;\nusing System.Threa...
c#
chosen
[ { "from": "system", "value": "Use RunClassConstructor to initialize templates\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.IO;\nusing System.Text.Encodings.Web;\nusing System.Threading.Tasks;\nusing Fluid.Ast;\n\nnamespace Fluid\n{\n public class BaseFlu...
c#
chosen
[ { "from": "system", "value": "Add optimizations to problem 10\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace _10.PythagoreanNumbers\n{\n class PythagoreanNumbers\n {\n ...
c#
chosen
[ { "from": "system", "value": "Add missed paren in comment.\n" }, { "from": "human", "value": "using System;\nusing System.Threading;\n\nnamespace ProcessTest_ConsoleApp\n{\n class Program\n {\n static int Main(string[] args)\n {\n try\n {\n ...
c#
chosen
[ { "from": "system", "value": "Add SetMethod & GetMethod Property\n" }, { "from": "human", "value": "using System;\nusing System.Reflection;\nusing System.Reflection.Emit;\n\nnamespace AspectCore.Lite.Abstractions.Generator\n{\n public abstract class PropertyGenerator : AbstractGenerator<Type...
c#
chosen
[ { "from": "system", "value": "Add PKIX key blob formats\n" }, { "from": "human", "value": "namespace NSec.Cryptography\n{\n public enum KeyBlobFormat\n {\n None = 0,\n\n // --- Secret Key Formats ---\n\n RawSymmetricKey = -1,\n RawPrivateKey = -2,\n\n NSe...
c#
chosen
[ { "from": "system", "value": "Fix for randomBase64, it was filling a full internal array unnecessarily.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Security.Cryptography;\n\nnamespace LanguageExt\n{\n public static partial class Prelude\n...
c#
chosen
[ { "from": "system", "value": "Make tests of converters possible\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 a way to measure how long it took to read a binlog file.\n" }, { "from": "human", "value": "namespace Microsoft.Build.Logging.StructuredLogger\r\n{\r\n public class BinaryLog\r\n {\r\n public static Build ReadBuild(string filePath)\r\n {\r\n...
c#
chosen
[ { "from": "system", "value": "Use ICustomAttributeProvider.IsDefined in `HasAttribute` to avoid allocations.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Reflection;\nusing System.Threading.Tasks;\n\nnamespace IntelliTect....
c#
chosen
[ { "from": "system", "value": "Add test case for 69c97371\n" }, { "from": "human", "value": "namespace Nine.Storage\n{\n using System;\n using System.Collections.Generic;\n using Xunit;\n\n public class PersistedStorageTest : StorageSpec<PersistedStorageTest>\n {\n public o...
c#
chosen
[ { "from": "system", "value": "Stop loading dynamic modules from disk\n\nWe are not able to load dynamically defined modules from disk because we\nare not able to save them to disk in the first place.\n\nFor the moment I've decided to throw an invalid operation exception and\ndeal with the fallout at a later...
c#
chosen
[ { "from": "system", "value": "Update detection sample web app\n" }, { "from": "human", "value": "@model Wangkanai.Detection.Services.IDetectionService\n\n@{\n ViewData[\"Title\"] = \"Detection\";\n}\n\n<h3>UserAgent</h3>\n<code>@Model.UserAgent</code>\n\n<h3>Results</h3>\n\n<table>\n <thea...
c#
chosen
[ { "from": "system", "value": "Refactor - Move Skip, Take duplicate code\n" }, { "from": "human", "value": "using System.Collections.Generic;\nusing System.Linq.Expressions;\nusing Jokenizer.Net;\n\nnamespace System.Linq.Dynamic {\n\n public static partial class DynamicQueryable {\n\n p...
c#
chosen
[ { "from": "system", "value": "Set disable registration as default true.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel.DataAnnotations;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Newtonsoft.Json;\n\nnamespace BTCPa...
c#
chosen