conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "[packages,XmlUtilities,dev] Make paths of text files to write verbatim, so that slashes are not misinterpreted under Windows as escape characters\n" }, { "from": "human", "value": "// <copyright file=\"TextToPythonScript.cs\" company=\"Mark Final\">\n// Opus packag...
c#
chosen
[ { "from": "system", "value": "Rename some base action settings\n" }, { "from": "human", "value": "using System;\nusing System.ComponentModel;\nusing System.Windows;\nusing DesktopWidgets.Classes;\nusing DesktopWidgets.Helpers;\nusing Xceed.Wpf.Toolkit.PropertyGrid.Attributes;\n\nnamespace Deskt...
c#
chosen
[ { "from": "system", "value": "Update TFM to include netcoreapp3.0" }, { "from": "human", "value": "// Copyright (c) .NET Foundation. All rights reserved.\n// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n\nusing System;\n\nnamespac...
c#
chosen
[ { "from": "system", "value": "Fix for Get all tasks\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.Mvc;\nusing TeamTasker.Web.Domain;\n\nnamespace TeamTasker.Web.Controllers\n{\n public class TasksC...
c#
chosen
[ { "from": "system", "value": "Put explicit blit in its own Execute func, added inspector button\n\n" }, { "from": "human", "value": "using UnityEngine;\r\nusing System.Collections;\r\n\r\n\r\n\r\n[ExecuteInEditMode]\r\npublic class ShaderBlit : MonoBehaviour {\r\n\r\n\tpublic bool\t\t\t\t\tDirt...
c#
chosen
[ { "from": "system", "value": "Use Instrument.Preset to detect preset instruments rather than a null InstrumentGroup\n" }, { "from": "human", "value": "// Copyright 2020 Jon Skeet. All rights reserved.\n// Use of this source code is governed by the Apache License 2.0,\n// as found in the LICENSE...
c#
chosen
[ { "from": "system", "value": "Add test case for gift insertion\n" }, { "from": "human", "value": "using Common;\nusing NUnit.Framework;\n\nnamespace Tests.Common\n{\n [TestFixture]\n public class TourTest\n {\n private Tour testee;\n\n [SetUp]\n public void Init()\...
c#
chosen
[ { "from": "system", "value": "Use proper path for settings file\n" }, { "from": "human", "value": "// --------------------------------------------------------------------------------------------------------------------\n// <copyright file=\"DataMigrationAppSettings.cs\" company=\"Microsoft\">\n...
c#
chosen
[ { "from": "system", "value": "Fix DataCenter enum in tests project\n" }, { "from": "human", "value": "namespace NFig.Tests.Common\n{\n public enum Tier\n {\n Any = 0,\n Local = 1,\n Dev = 2,\n Prod = 3,\n }\n\n public enum DataCenter\n {\n Any =...
c#
chosen
[ { "from": "system", "value": "Add badge for unknown key request count.\n" }, { "from": "human", "value": "@{\n\tLayout = \"_Layout\";\n\tViewData[\"Title\"] = \"Analysen\";\n}\n\n<div class=\"row\">\n\t<nav class=\"col-md-3 col-xl-2\">\n\t\t<ul class=\"nav\">\n\t\t\t<li class=\"nav-item\">\n\t\...
c#
chosen
[ { "from": "system", "value": "Add EtherType enumeration for some types (not all)\n\ngit-svn-id: 8d82213adbbc6b1538a984bace977d31fcb31691@31 2f5d681c-ba19-11dd-a503-ed2d4bea8bb5\n" }, { "from": "human", "value": "\nusing System;\n\nnamespace TAPCfg {\n\tpublic class EthernetFrame {\n\t\tprivate b...
c#
chosen
[ { "from": "system", "value": "Add some spacing to interface class\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.Bindables;\nusing osuT...
c#
chosen
[ { "from": "system", "value": "Revert \"use WebHost.CreateDefaultBuilder in IdentitySample.Mvc\"\n\nThis reverts commit 20ec50d5d26f2052afcfcf640c69c6049208e799.\n" }, { "from": "human", "value": "using Microsoft.AspNetCore;\nusing Microsoft.AspNetCore.Hosting;\n\nnamespace IdentitySample\n{\n ...
c#
chosen
[ { "from": "system", "value": "Update assembly file version for next release\n" }, { "from": "human", "value": "//------------------------------------------------------------------------------\n// <copyright \n// file=\"CommonAssemblyInfo.cs\" \n// company=\"enckse\">\n// Copyright (c) All rig...
c#
chosen
[ { "from": "system", "value": "Add workaround required after MapODataServiceRoute\n" }, { "from": "human", "value": "using System;\nusing Abp.AspNetCore.Configuration;\nusing Abp.Configuration.Startup;\nusing Microsoft.AspNet.OData.Builder;\nusing Microsoft.AspNet.OData.Extensions;\n\nnamespace ...
c#
chosen
[ { "from": "system", "value": "Add path for local vs code install\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.IO;\nusing System.Linq;\n\nnamespace Assent.Reporters.DiffPrograms\n{\n public abstract class DiffProgr...
c#
chosen
[ { "from": "system", "value": "Modify main program to work with port again\n\nBreaks EF though :(\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.IO;\r\nusing System.Linq;\r\nusing System.Threading.Tasks;\r\nusing Microsoft.AspNetCore;\r\nusi...
c#
chosen
[ { "from": "system", "value": "Use IOwinContext in to pass Request.CallCancelled to repository\n" }, { "from": "human", "value": "using Bit.Signalr;\nusing Bit.Signalr.Implementations;\nusing BitChangeSetManager.DataAccess;\nusing BitChangeSetManager.Model;\nusing System;\nusing System.Threading...
c#
chosen
[ { "from": "system", "value": "Fix removal of code block space indent for pre with parent div\n" }, { "from": "human", "value": "using System;\n\nusing HtmlAgilityPack;\n\nnamespace ReverseMarkdown.Converters\n{\n public class Div : ConverterBase\n {\n public Div(Converter converter...
c#
chosen
[ { "from": "system", "value": "Add Position and Size properties to Rectanclei\n" }, { "from": "human", "value": "using System;\nusing System.Numerics;\n\nnamespace CSGL.Math {\n public struct Rectanglei {\n public int X { get; set; }\n public int Y { get; set; }\n public ...
c#
chosen
[ { "from": "system", "value": "Move some common test setup code into the test class constructor\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing Xunit;\n\nnamespace DirectoryHash.Test...
c#
chosen
[ { "from": "system", "value": "Test we can commit gain\n" }, { "from": "human", "value": "using Kata.GildedRose.CSharp.Domain;\n\nnamespace Kata.GildedRose.CSharp.Unit.Tests.Factories.UpdateStockItemStrategy\n{\n public class UpdateItemStrategyFactory : IUpdateItemStrategyFactory\n {\n ...
c#
chosen
[ { "from": "system", "value": "Revert \"Included call to base.WarmUp().\"\n\nThis reverts commit c33d7b0c767eea6dc7b341865b2fa0cd800962c6.\n" }, { "from": "human", "value": "using System.Threading;\nusing System.Threading.Tasks;\nusing Nimbus.ConcurrentCollections;\nusing Nimbus.Configuration.Set...
c#
chosen
[ { "from": "system", "value": "Fix WinUI demo null ref exception after cancelling file picker.\n" }, { "from": "human", "value": "using System;\nusing System.Threading.Tasks;\nusing Microsoft.UI.Xaml;\nusing Windows.Storage.Pickers;\n\nnamespace ModelViewer.Services;\n\npublic sealed class FileP...
c#
chosen
[ { "from": "system", "value": "Mask the osu! beatsnap grid\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.Game.Beatmaps;\nusing osu.Game.Beatmaps....
c#
chosen
[ { "from": "system", "value": "Add version and copyright info\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 of att...
c#
chosen
[ { "from": "system", "value": "Update mvx init for android\n" }, { "from": "human", "value": "using System;\nusing Cirrious.CrossCore;\nusing Cirrious.CrossCore.Droid.Platform;\nusing Cirrious.CrossCore.Plugins;\nusing Acr.UserDialogs;\n\n\nnamespace Acr.MvvmCross.Plugins.UserDialogs.Droid {\n\n ...
c#
chosen
[ { "from": "system", "value": "Fix out of range bug in sequence task.\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class Sequence : CompositeTask {\n\n private int taskIndex = 0;\n\n public Sequence(string nam...
c#
chosen
[ { "from": "system", "value": "Fix zip file extension handling\n" }, { "from": "human", "value": "using System.IO;\nusing Ionic.Zip;\n\nnamespace UnityBuildServer\n{\n public class ZipArchiveStep : ArchiveStep\n {\n ZipArchiveConfig config;\n\n public ZipArchiveStep(ZipArchiv...
c#
chosen
[ { "from": "system", "value": "Fix 81 TIiles mod name\n" }, { "from": "human", "value": "using ICities;\nusing BuildingThemes.GUI;\nusing UnityEngine;\n\nnamespace BuildingThemes\n{\n public class BuildingThemesMod : IUserMod\n {\n // we'll use this variable to pass the building pos...
c#
chosen
[ { "from": "system", "value": "Add processed_at_min, processed_at_max and attribution_app_id\n\nCloses #167\n" }, { "from": "human", "value": "using Newtonsoft.Json;\nusing ShopifySharp.Enums;\n\nnamespace ShopifySharp.Filters\n{\n /// <summary>\n /// Options for filtering <see cref=\"Orde...
c#
chosen
[ { "from": "system", "value": "Create success-only stubs for user validator\n" }, { "from": "human", "value": "using System;\n\nusing Xunit;\n\nusing ISTS.Domain.Users;\n\nnamespace ISTS.Domain.Tests.Users\n{\n public class UserTests\n {\n [Fact]\n public void Create_Returns_N...
c#
chosen
[ { "from": "system", "value": "Bring across Server Sent Events resource implementation\n" }, { "from": "human", "value": "namespace Glimpse.Server.Web\n{\n public class MessageStreamResource : IResourceStartup\n {\n private readonly IServerBroker _serverBroker;\n\n public Mes...
c#
chosen
[ { "from": "system", "value": "Remove Gender, Age in Model.\n" }, { "from": "human", "value": "using System.Collections.ObjectModel;\nusing System.ComponentModel;\nusing App2Night.Model.Enum;\n\nnamespace App2Night.Model.Model\n{\n public class User \n {\n public string Name { get; ...
c#
chosen
[ { "from": "system", "value": "Include original WebException when throwing new ApplicationException\n" }, { "from": "human", "value": "using System;\nusing System.Net;\n\nnamespace DevDefined.OAuth.Consumer\n{\n\n public interface IConsumerRequestRunner\n {\n IConsumerResponse Run(I...
c#
chosen
[ { "from": "system", "value": "Use AssemblyHelper for MainWindow title version\n" }, { "from": "human", "value": "using GalaSoft.MvvmLight.Messaging;\nusing KAGTools.Helpers;\nusing System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.Reflection...
c#
chosen
[ { "from": "system", "value": "Add ProfileMatches to CustomerRegistration response\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\n\nnamespace GIDX.SDK.Models.CustomerIdentity\n{\n public class CustomerRegistrationResponse : ResponseBase, IReasonCodes\n ...
c#
chosen
[ { "from": "system", "value": "Reduce collision velocity from ship-to-asteroid\n" }, { "from": "human", "value": "/*\n** Project ShiftDrive\n** (C) Mika Molenkamp, 2016.\n*/\n\nusing Microsoft.Xna.Framework;\n\nnamespace ShiftDrive {\n\n /// <summary>\n /// A <seealso cref=\"GameObject\"/>...
c#
chosen
[ { "from": "system", "value": "Add DoNotAwait for WinRT style tasks\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace DigiTransit10.ExtensionMethods\n{\n public static class T...
c#
chosen
[ { "from": "system", "value": "Add test for non invariant default locale and test for locale with collation\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\...
c#
chosen
[ { "from": "system", "value": "Disable test parallelization due to shared state problems\n\nThe per-language options used by the AdhocWorkspace are currently shared.\nThis is caused by the default constructor of AdhocWorkspace using\nMefHostServices.DefaultHost to provide workspace services, combined with\nW...
c#
chosen
[ { "from": "system", "value": "Disable test to get clean build\n" }, { "from": "human", "value": "using JetBrains.ReSharper.FeaturesTestFramework.Completion;\nusing NUnit.Framework;\n\nnamespace JetBrains.ReSharper.Plugins.Unity.Tests.Feature.Services.CodeCompletion\n{\n // TODO: This doesn't...
c#
chosen
[ { "from": "system", "value": "Add quotes to paths for Windows\n" }, { "from": "human", "value": "using System.Diagnostics;\nusing System.IO;\nusing System.Linq;\n\nnamespace grr.Messages\n{\n\t[System.Diagnostics.DebuggerDisplay(\"{GetRemoteCommand()}\")]\n\tpublic class OpenDirectoryMessage : ...
c#
chosen
[ { "from": "system", "value": "[Unity] Implement \"enable\" event to reenable after \"stop\".\n\nSigned-off-by: Juri Berlanda <5bfdca9e82c53adb0603ce7083f4ba4f2da5cacf@hotmail.com>\n" }, { "from": "human", "value": "using UnityEngine;\r\nusing SocketIOClient;\r\n\r\npublic class ServoControllerC...
c#
chosen
[ { "from": "system", "value": "Include date in booked in fact\n" }, { "from": "human", "value": "using System;\nusing EventStore.ClientAPI;\nusing System.Net;\n\nnamespace EventStorePlayConsole\n{\n public class BookedInFact:Fact\n {\n public BookedInFact(string atValue, string someV...
c#
chosen
[ { "from": "system", "value": "Make stats_only_admins a nullable bool, we're seeing this cause json deserialization exceptions when calling SlackClient.ConnectAsync()\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusin...
c#
chosen
[ { "from": "system", "value": "Fix schedule stops not being ordered.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Collections.ObjectModel;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing TramlineFive.ViewModels.Wr...
c#
chosen
[ { "from": "system", "value": "Use CurrentUICulture for EditorConfig UI" }, { "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 root for more...
c#
chosen
[ { "from": "system", "value": "Clean analyzer warnings on test projects\n" }, { "from": "human", "value": "\n// This file is used by Code Analysis to maintain SuppressMessage \n// attributes that are applied to this project.\n// Project-level suppressions either have no target or are given \n// ...
c#
chosen
[ { "from": "system", "value": "Add more tests for puzzle 14\n" }, { "from": "human", "value": "// Copyright (c) Martin Costello, 2015. All rights reserved.\n// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.\n\nnamespace MartinCostell...
c#
chosen
[ { "from": "system", "value": "Fix crashing due to missing history in LFR\n" }, { "from": "human", "value": "using LiveSplit.Options;\nusing System;\nusing System.Linq;\n\nnamespace LiveSplit.Model.Comparisons\n{\n public class LastFinishedRunComparisonGenerator : IComparisonGenerator\n {\...
c#
chosen
[ { "from": "system", "value": "Fix ghost orbit not syncing to other clients\n\nCloses #6797\n" }, { "from": "human", "value": "using Robust.Shared.Animations;\n\nnamespace Content.Shared.Follower.Components;\n\n[RegisterComponent]\npublic sealed class OrbitVisualsComponent : Component\n{\n //...
c#
chosen
[ { "from": "system", "value": "Add PsiFeaturesImplZone for parent settings key.\n" }, { "from": "human", "value": "using JetBrains.Application.BuildScript.Application.Zones;\n\nnamespace JetBrains.ReSharper.Plugins.CyclomaticComplexity\n{\n [ZoneMarker]\n public class ZoneMarker\n {\n }\n}" ...
c#
chosen
[ { "from": "system", "value": "Replace Boolean with bool so we can remove System\n" }, { "from": "human", "value": "using System;\n\npublic class Year\n{\n public static Boolean IsLeap(int i)\n {\n if (i % 4 != 0)\n {\n return false;\n }\n\n if (i % 10...
c#
chosen
[ { "from": "system", "value": "Remove unnecessary cache type specification\n\nCo-authored-by: Bartłomiej Dach <809709723693c4e7ecc6f5379a3099c830279741@gmail.com>" }, { "from": "human", "value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE fi...
c#
chosen
[ { "from": "system", "value": "Load system web assembly before running do not use system web assembly analyzer tests\n" }, { "from": "human", "value": "using System;\nusing System.Reflection;\nusing System.Web.Hosting;\nusing BitCodeAnalyzer.SystemAnalyzers.WebAnalyzers;\nusing BitCodeAnalyzer.T...
c#
chosen
[ { "from": "system", "value": "Include method in cache key\n" }, { "from": "human", "value": "using Microsoft.AspNetCore.Http;\nusing Microsoft.Extensions.Primitives;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace HttpMock\n{\n public class RequestCacheKey\...
c#
chosen
[ { "from": "system", "value": "Increase assembly version to 1.1.\n" }, { "from": "human", "value": "// Copyright\n// ----------------------------------------------------------------------------------------------------------\n// <copyright file=\"AssemblyInfo.cs\" company=\"https://github.com/sa...
c#
chosen
[ { "from": "system", "value": "Add xmldoc to mem layout attributes.\n" }, { "from": "human", "value": "using System;\n\nnamespace AsmResolver.DotNet.Memory\n{\n [Flags]\n public enum MemoryLayoutAttributes\n {\n Is32Bit = 0b0,\n Is64Bit = 0b1,\n BitnessMask = 0b1,\n\...
c#
chosen
[ { "from": "system", "value": "Test Server-side function called in transaction fails\n" }, { "from": "human", "value": "using System;\nusing NUnit.Framework;\n\nnamespace Business.Core.Test\n{\n\t[TestFixture]\n\tpublic class TestDBFunctions\n\t{\n\t\t[Test]\n\t\tpublic void Book() {\n\t\t\tvar ...
c#
chosen
[ { "from": "system", "value": "Comment out game logic and replace table code\n\nTime to set up the game layout.\n" }, { "from": "human", "value": "using System;\n\nnamespace Hangman {\n public class Hangman {\n public static void Main(string[] args) {\n char key = Console.ReadKey(true).K...
c#
chosen
[ { "from": "system", "value": "Exclude files that can not be accessed\n" }, { "from": "human", "value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.IO;\r\nusing System.Linq;\r\nusing System.Text;\r\n\r\nnamespace FileReplacer\r\n{\r\n public static class FileHelper\r\n...
c#
chosen
[ { "from": "system", "value": "Add caching option when downloading package.\n\n--HG--\nextra : rebase_source : 0701678b4b47fd6ce968f0cb29629d227f60c3df\n" }, { "from": "human", "value": "namespace NuPack {\r\n using System;\r\n using System.IO;\r\n using System.Net;\r\n using System....
c#
chosen
[ { "from": "system", "value": "Add map from view model to db model.\n" }, { "from": "human", "value": "namespace CountryFood.Web.Infrastructure.Mappings\n{\n using System;\n using System.Collections.Generic;\n using System.Linq;\n using System.Reflection;\n\n using AutoMapper;\n\n...
c#
chosen
[ { "from": "system", "value": "Rename unit test function to be more explicit on its purpose.\n\nCo-Authored-By: FuncLun <711c73f64afdce07b7e38039a96d2224209e9a6c@functionallunacy.com>" }, { "from": "human", "value": "using System.IO;\nusing System.Text;\nusing System.Threading.Tasks;\nusing Shoul...
c#
chosen
[ { "from": "system", "value": "Use ObservableCollection for ComboBox item source so that the ComboBox updates when the list changes.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing System.Text;\nusing System.Threadi...
c#
chosen
[ { "from": "system", "value": "Fix regression in puzzle 10\n\nFix regression in puzzle 10 caused by bounds being calculated\nincorrectly after change from using Enumerable.Range().\n" }, { "from": "human", "value": "// Copyright (c) Martin Costello, 2015. All rights reserved.\n// Licensed under ...
c#
chosen
[ { "from": "system", "value": "Add PreviousFireTime to trigger profile dto\n" }, { "from": "human", "value": "using PS.Mothership.Core.Common.Template.Gen;\nusing Quartz;\nusing System;\nusing System.Collections.Generic;\n\nnamespace PS.Mothership.Core.Common.Dto.SchedulerManagement\n{\n publ...
c#
chosen
[ { "from": "system", "value": "Fix category of revision log RSS feeds.\n\ngit-svn-id: f68c6b3b1dcd5d00a2560c384475aaef3bc99487@2261 af82e41b-90c4-0310-8c96-b1721e28e2e2\n" }, { "from": "human", "value": "<?xml version=\"1.0\"?>\n<!-- RSS generated by Trac v<?cs var:trac.version ?> on <?cs var:tra...
c#
chosen
[ { "from": "system", "value": "Pingu: Enumerate via self instead of directly\n\nMakes changing underlying storage easier. :)\n" }, { "from": "human", "value": "using System.Collections;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Threading.Tasks;\n\nusing Pingu.Chunks;\n\n...
c#
chosen
[ { "from": "system", "value": "Debug log store saves logs only when debugger is attached\n" }, { "from": "human", "value": "#define DEBUG\nusing System;\nusing System.Threading.Tasks;\nusing Bit.Core.Contracts;\nusing Bit.Core.Models;\nusing System.Diagnostics;\n\nnamespace Bit.Owin.Implementati...
c#
chosen
[ { "from": "system", "value": "Use null-forgiving operator rather than assertion\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.Diagnostics;\nu...
c#
chosen
[ { "from": "system", "value": "Add obsolete wrappers for compatability\n" }, { "from": "human", "value": "using System;\nusing System.Runtime.InteropServices;\nnamespace Sodium\n{\n /// <summary>\n /// libsodium core information.\n /// </summary>\n public static class SodiumCore\n {\n st...
c#
chosen
[ { "from": "system", "value": "Attach SetEditorOnly function to GameObjects rather than MonoBehaviors\n" }, { "from": "human", "value": "using UnityEditor;\nusing UnityEditor.SceneManagement;\nusing UnityEngine;\nusing System.Linq;\n\nnamespace YesAndEditor {\n\n\t// Static class packed to the b...
c#
chosen
[ { "from": "system", "value": "Create node_modules/@types after project creation\n\n(cherry picked from commit 0be5a02f59e1aa93293352eefe9178160167855f)\n" }, { "from": "human", "value": "// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See Licen...
c#
chosen
[ { "from": "system", "value": "Remove unused field from previous commit\n" }, { "from": "human", "value": "using Microsoft.VisualStudio.ConnectedServices;\nusing System;\nusing System.ComponentModel.Composition;\nusing System.Reflection;\nusing System.Threading.Tasks;\nusing System.Windows.Media...
c#
chosen
[ { "from": "system", "value": "Comment on custom display option properties\n" }, { "from": "human", "value": "using Newtonsoft.Json;\nusing System.Collections.Generic;\n\nnamespace SurveyMonkey.Containers\n{\n [JsonConverter(typeof(TolerantJsonConverter))]\n public class QuestionDisplayOpt...
c#
chosen
[ { "from": "system", "value": "[liuxia] Add comment to count word number.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.IO;\nusing System.Linq;\nusing CSharpViaTest.Collections.Annotations;\nusing CSharpViaTest.Collections.Helpers;\nusing Xunit...
c#
chosen
[ { "from": "system", "value": "Add total memory to cat indices response\n\nCloses #1349\n" }, { "from": "human", "value": "using Newtonsoft.Json;\n\nnamespace Nest\n{\n\t[JsonObject]\n\tpublic class CatIndicesRecord : ICatRecord\n\t{\n\t\t[JsonProperty(\"docs.count\")]\n\t\tpublic string DocsCou...
c#
chosen
[ { "from": "system", "value": "Remove forced WebGL test code\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\nusing UnityEngine;\n\nnamespace Rs317.Sharp\n{\n\tpublic static class RsUnityPlatform\n\t{\n\t\tpublic static bool isWebGLBuild =>...
c#
chosen
[ { "from": "system", "value": "Fix for serialization errors with Loadout events caused by game bug\n" }, { "from": "human", "value": "namespace DW.ELA.Interfaces.Events\n{\n using Newtonsoft.Json;\n\n public class ModuleEngineering\n {\n [JsonProperty(\"Engineer\")]\n publ...
c#
chosen
[ { "from": "system", "value": "Document model updated as per save document changes.\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.ComponentModel;\nusing System.Linq;\nusing System.Runtime.CompilerServices;\nusing System.Text;\nusing System.Thre...
c#
chosen
[ { "from": "system", "value": "Add loved enum on BeatmapApproval\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.Collections.Generic;\nusing os...
c#
chosen
[ { "from": "system", "value": "Add Snapshots option to listing shares\n" }, { "from": "human", "value": "//-----------------------------------------------------------------------\n// <copyright file=\"ShareListingDetails.cs\" company=\"Microsoft\">\n// Copyright 2013 Microsoft Corporation\n//...
c#
chosen
[ { "from": "system", "value": "Replace log4net dependency with LibLog\n" }, { "from": "human", "value": "// <auto-generated/>\nusing System.Reflection;\nusing System.Runtime.InteropServices;\n\n[assembly: AssemblyTitleAttribute(\"Elders.Multithreading.Scheduler\")]\n[assembly: AssemblyDescriptio...
c#
chosen
[ { "from": "system", "value": "Fix a minor async delayer issue\n" }, { "from": "human", "value": "using Microsoft.VisualStudio.TestTools.UnitTesting;\nusing System;\nusing System.Threading;\nusing System.Threading.Tasks;\n\nnamespace Tgstation.Server.Host.Core.Tests\n{\n\t[TestClass]\n\tpublic s...
c#
chosen
[ { "from": "system", "value": "Add stub method for Getting volunteers by date\n\nReturns the main method for now.\n" }, { "from": "human", "value": "using Models;\nusing Services.Interfaces;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.T...
c#
chosen
[ { "from": "system", "value": "Update nullable annotations in TodoComments folder\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 r...
c#
chosen
[ { "from": "system", "value": "Use more standard parsing method\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.Game.Beatmaps.Formats;\nusing Sy...
c#
chosen
[ { "from": "system", "value": "Fix EF sql column type unit\n" }, { "from": "human", "value": "using Microsoft.EntityFrameworkCore;\nusing System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.Reflection;\nusing System.Threading.Tasks;\n\nnamespac...
c#
chosen
[ { "from": "system", "value": "Move TestEnvironmentSetUpFixture into project root namespace\n" }, { "from": "human", "value": "using JetBrains.Application.BuildScript.Application.Zones;\nusing JetBrains.ReSharper.Psi.CSharp;\nusing JetBrains.ReSharper.TestFramework;\nusing JetBrains.TestFramewor...
c#
chosen
[ { "from": "system", "value": "Add test for INPUT union\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 for full l...
c#
chosen
[ { "from": "system", "value": "Fix typo in CalculatesAverageGrade() test\n" }, { "from": "human", "value": "using Microsoft.VisualStudio.TestTools.UnitTesting;\n\nnamespace Grades.Tests\n{\n [TestClass]\n public class GradeBookTests\n {\n private GradeStatistics _stats;\n\n ...
c#
chosen
[ { "from": "system", "value": "Support for Title on Windows.\n" }, { "from": "human", "value": "using ruibarbo.core.ElementFactory;\r\nusing ruibarbo.core.Wpf.Invoker;\r\n\r\nnamespace ruibarbo.core.Wpf.Base\r\n{\r\n public class WpfWindowBase<TNativeElement> : WpfFrameworkElementBase<TNativeE...
c#
chosen
[ { "from": "system", "value": "Tweak the latest news view.\n" }, { "from": "human", "value": "@using System.Dynamic;\n@using System.Linq;\n@using Orchard.ContentManagement;\n@using Orchard.Utility.Extensions;\n\n@functions\n{\n dynamic GetMainPartFromContentItem(ContentItem item)\n {\n ...
c#
chosen
[ { "from": "system", "value": "Fix attempting to filter by project filtered by context instead\n" }, { "from": "human", "value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing EZLibrary;\nusing TodotxtTouch.WindowsPhone.ViewModel;\n\nnamespace TodotxtTouch.WindowsPh...
c#
chosen
[ { "from": "system", "value": "Fix potential test failure due to not waiting long enough on track start\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\nusin...
c#
chosen
[ { "from": "system", "value": "Update Markdown output to match linter now used in NUnit docs" }, { "from": "human", "value": "using Nito.AsyncEx;\nusing Octokit;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace Alteridem.GetChanges\n{\n class Program\n {\n...
c#
chosen
[ { "from": "system", "value": "Fix flaky test in free mod select test scene\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.Linq;\nusing NUnit.F...
c#
chosen
[ { "from": "system", "value": "Fix dependency context bug and add load overload\n" }, { "from": "human", "value": "// Copyright (c) .NET Foundation and contributors. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nusi...
c#
chosen