conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add sample class with implementation of IComparable<>\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Recipe.ClassAndGeneric\n{\n /// <summary>\n... | c# | chosen |
[
{
"from": "human",
"value": "Add class to auto-activate touch controls.\n"
},
{
"from": "gpt",
"value": "using UnityEngine;\nusing UnityEngine.Assertions;\n\n[ExecuteInEditMode]\npublic class AutoEnableTouchControls : BaseBehaviour\n{\n\tprivate GameObject canvasGo;\n\tprivate GameObject eventS... | c# | chosen |
[
{
"from": "human",
"value": "Add an extension method to the worksheet\n"
},
{
"from": "gpt",
"value": "using OfficeOpenXml;\npublic static class WorksheetExtensions\n{\n public static string[,] ToStringArray(this ExcelWorksheet sheet)\n {\n string[,] answer = new string[sheet.Dimens... | c# | chosen |
[
{
"from": "human",
"value": "Add Console abstraction for test suites\n"
},
{
"from": "gpt",
"value": "using Internal.ReadLine.Abstractions;\n\nusing System;\n\nnamespace ReadLine.Tests.Abstractions\n{\n internal class Console2 : IConsole\n {\n public int CursorLeft => _cursorLeft;\n... | c# | chosen |
[
{
"from": "human",
"value": "Add test for changing data type (Thanks @prankaty )\n"
},
{
"from": "gpt",
"value": "using ClosedXML.Excel;\nusing NUnit.Framework;\nusing System;\n\nnamespace ClosedXML_Tests.Excel.Cells\n{\n [TestFixture]\n public class DataTypeTests\n {\n [Test]\n... | c# | chosen |
[
{
"from": "human",
"value": "Add basic benchmarks for Is and Class selectors.\n"
},
{
"from": "gpt",
"value": "using Avalonia.Controls;\nusing Avalonia.Styling;\nusing BenchmarkDotNet.Attributes;\n\nnamespace Avalonia.Benchmarks.Styling\n{\n [MemoryDiagnoser]\n public class SelectorBenchm... | c# | chosen |
[
{
"from": "human",
"value": "Add type to represent range in a text file\n"
},
{
"from": "gpt",
"value": "using System;\n\nnamespace Microsoft.Windows.PowerShell.ScriptAnalyzer\n{\n public class Range\n {\n public Position Start { get; }\n public Position End { get; }\n ... | c# | chosen |
[
{
"from": "human",
"value": "Create audio source controller component\n"
},
{
"from": "gpt",
"value": "using UnityEngine;\nusing System.Collections;\n\nnamespace ATP.AnimationPathTools.AudioSourceControllerComponent {\n\n public class AudioSourceController : MonoBehaviour {\n\n privat... | c# | chosen |
[
{
"from": "human",
"value": "Add `RulesetStore` for use where realm is not present (ie. other projects)\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing ... | c# | chosen |
[
{
"from": "system",
"value": "Fix for partial trust environments\nAssembly.GetExecutingAssembly() cannot be used in Partial trust environments\nAlso linux type paths report file:// and not file:/// so substring(8) should not be used\n"
},
{
"from": "human",
"value": "using System;\r\nusing Syst... | c# | chosen |
[
{
"from": "system",
"value": "Fix errors in log caused by no prevalues beind selected.\n"
},
{
"from": "human",
"value": "using System;\r\nusing umbraco.DataLayer;\r\n\r\nnamespace umbraco.editorControls\r\n{\r\n\t/// <summary>\r\n\t/// Summary description for cms.businesslogic.datatype.DefaultD... | c# | chosen |
[
{
"from": "human",
"value": "Add index only drawer node\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.ComponentModel.Composition;\n\nusing SlimDX;\nusing SlimDX.Direct3D11;\n\nusing VVVV.PluginInterfaces.V... | c# | chosen |
[
{
"from": "human",
"value": "Add container for non-array results\n"
},
{
"from": "gpt",
"value": "using Newtonsoft.Json;\n\nnamespace TMDbLib.Objects.General\n{\n public class SingleResultContainer<T>\n {\n [JsonProperty(\"id\")]\n public int Id { get; set; }\n\n [Jso... | c# | chosen |
[
{
"from": "human",
"value": "Tests: Test invalid filter type handling.\n"
},
{
"from": "gpt",
"value": "using System;\n\nusing Xunit;\n\nusing Pingu.Filters;\n\nnamespace Pingu.Tests\n{\n public class FilterTests\n {\n [Fact]\n public void Get_filter_throws_for_invalid_filter... | c# | chosen |
[
{
"from": "human",
"value": "Add some basic tests for tags\n"
},
{
"from": "gpt",
"value": "using FluentAssertions;\nusing Xunit;\n\nnamespace Okanshi.Test\n{\n public class TagTest\n {\n [Fact]\n public void Creating_a_new_tag_sets_the_correct_key()\n {\n v... | c# | chosen |
[
{
"from": "human",
"value": "Mark Height Components with region transgression\n\nMark all components in max height regions of \"drc_comp\" layer.\r\nThis checks each cmp over the surfaces on relevant layer with \"drc_max_height\" attribute."
},
{
"from": "gpt",
"value": "//----------------------... | c# | chosen |
[
{
"from": "human",
"value": "Add IDisposable wrapper on GCHandle\n"
},
{
"from": "gpt",
"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;\nusing System.Runti... | c# | chosen |
[
{
"from": "human",
"value": "Add new CoinView class for query coins\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections;\nusing System.Collections.Generic;\nusing System.Linq;\nusing NBitcoin;\nusing WalletWasabi.Helpers;\nusing WalletWasabi.Models;\n\nnamespace WalletWasabi... | c# | chosen |
[
{
"from": "human",
"value": "Implement unit tests for the StringPattern class\n"
},
{
"from": "gpt",
"value": "// Copyright 2015 Coinprism, Inc.\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// Yo... | c# | chosen |
[
{
"from": "human",
"value": "Convert to new Visual Studio project types\n"
},
{
"from": "gpt",
"value": "// 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// a spe... | c# | chosen |
[
{
"from": "system",
"value": "Write the ErrorLog into the exe's directory.\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.IO;\nusing System.Diagnostics;\n\nnamespace MatterHackers.MatterControl.Testing\n{... | c# | chosen |
[
{
"from": "human",
"value": "Revert the Quickstart file which is deleted by mistake\n"
},
{
"from": "gpt",
"value": "/*\n * Copyright (c) 2018 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n * use this file except in compliance with the License... | c# | chosen |
[
{
"from": "human",
"value": "Add code to allow azure functions to force async on\n"
},
{
"from": "gpt",
"value": "#if NET45 || NET451\nusing System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.Linq;\nusing System.Reflection;\nusing System.Text;\n\nnamespace Stack... | c# | chosen |
[
{
"from": "system",
"value": "Add error handling to default template\n"
},
{
"from": "human",
"value": "@inherits UmbracoViewPage<BlockListModel>\r\n@using Umbraco.Core.Models.Blocks\r\n@{\r\n if (Model?.Layout == null || !Model.Layout.Any()) { return; }\r\n}\r\n<div class=\"umb-block-list\"... | c# | chosen |
[
{
"from": "human",
"value": "Set the course directory as Content (for MSBuild)\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace DotvvmAcademy.CourseFormat\n{\n public class MarkdownStepInfo\n {\n public string Path {... | c# | chosen |
[
{
"from": "system",
"value": "Allow overriding default static files in theme\n"
},
{
"from": "human",
"value": "namespace Snow\r\n{\r\n using System;\r\n using System.Collections.Generic;\r\n using Nancy.Conventions;\r\n using Nancy.ViewEngines;\r\n\r\n public class SnowViewLocat... | c# | chosen |
[
{
"from": "human",
"value": "Add pushconsumer wrap to donet\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Runtime.InteropServices;\n\nnamespace RocketMQ.Interop\n{\n public static class PushConsumerWrap\n {\n [DllImport(ConstValues.RocketMQDriverDllName, CallingConv... | c# | chosen |
[
{
"from": "human",
"value": "Add testing for auto-restart behaviour\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System.Linq;\nusing NUnit.Framework;... | c# | chosen |
[
{
"from": "human",
"value": "Add visual-only execution mode toggle test scene\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing NUnit.Framework;\nusing os... | c# | chosen |
[
{
"from": "human",
"value": "Create a new diagram example\n"
},
{
"from": "gpt",
"value": "using Aspose.Diagram;\r\nusing System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\n\r\nnamespace CSharp.ProgrammersGuide.Load_Save_Convert\r\n{\r\n public class ... | c# | chosen |
[
{
"from": "human",
"value": "Add test class with other attribute on method\n"
},
{
"from": "gpt",
"value": "using System.ComponentModel;\nusing System.Threading.Tasks;\n\nusing Refit;\n\ninterface IFooWithOtherAttribute\n{\n [Get(\"/\")]\n Task GetRoot();\n\n [DisplayName(\"/\")]\n ... | c# | chosen |
[
{
"from": "system",
"value": "Annotate the test with ActiveIssue\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 root for more inf... | c# | chosen |
[
{
"from": "human",
"value": "Add class to load client in private load context.\n"
},
{
"from": "gpt",
"value": "/*\n Copyright 2020 Jeffrey Sharp\n\n Permission to use, copy, modify, and distribute this software for any\n purpose with or without fee is hereby granted, provided that the ... | c# | chosen |
[
{
"from": "system",
"value": "Set AssemblyConfiguration attribute to a simple/default value.\n"
},
{
"from": "human",
"value": "//------------------------------------------------------------------------------\r\n// <auto-generated>\r\n// This code was generated by a tool.\r\n// Runtime V... | c# | chosen |
[
{
"from": "human",
"value": "Add ISerializer impl. that uses JSON.NET\n\n…instead of the default JSON serializer implementation in\nlog4net.Ext.Json\n"
},
{
"from": "gpt",
"value": "using System.IO;\nusing System.Text;\nusing log4net.ObjectRenderer;\nusing Newtonsoft.Json;\nusing Newtonsoft.Json... | c# | chosen |
[
{
"from": "human",
"value": "Add employee and manager as user roles\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\n\nnamespace PetAdoptionCRM.Models\n{\n public class EmployeeRole : IdentityRole\n {\n ... | c# | chosen |
[
{
"from": "human",
"value": "Add unit test for GetSymmetricAlgorithm.\n"
},
{
"from": "gpt",
"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 mor... | c# | chosen |
[
{
"from": "human",
"value": "Implement a class to query supported commands and get their instances.\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Reflection;\nusing System.Text;\n\nnamespace SCPI\n{\n public class Commands... | c# | chosen |
[
{
"from": "human",
"value": "Print pattern without a loop\n"
},
{
"from": "gpt",
"value": "// http://www.geeksforgeeks.org/print-a-pattern-without-using-any-loop/\n//\n//\n// Print a pattern without using any loop\n//\n// Given a number n, print following pattern without using any loop.\n//\n// ... | c# | chosen |
[
{
"from": "human",
"value": "Add tests for RazorCompile target\n\nThis target should be callable on its own without using Build so it\ndeserves a few tests.\n"
},
{
"from": "gpt",
"value": "// Copyright (c) .NET Foundation. All rights reserved.\n// Licensed under the Apache License, Version 2.0... | c# | chosen |
[
{
"from": "human",
"value": "Create positive tests for getting values from nested environments\n"
},
{
"from": "gpt",
"value": "using Xunit;\nusing Squirrel;\nusing Squirrel.Nodes;\n\nnamespace Tests\n{\n public class EnvironmentTests\n {\n private static readonly string TestVariabl... | c# | chosen |
[
{
"from": "human",
"value": "Create a tool for importing Whitebox *.dep files"
},
{
"from": "gpt",
"value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Linq;\r\nusing System.Text;\r\n\r\nnamespace DotSpatial.Tools\r\n{\r\n class ImportWhiteboxRaster\r\n {\r\n }\... | c# | chosen |
[
{
"from": "human",
"value": "Add tests for Sha512 class\n"
},
{
"from": "gpt",
"value": "using System;\nusing NSec.Cryptography;\nusing Xunit;\n\nnamespace NSec.Tests.Algorithms\n{\n public static class Sha512Tests\n {\n public static readonly string HashOfEmpty = \"cf83e1357eefb8bd... | c# | chosen |
[
{
"from": "human",
"value": "Add unit tests for PointND.\n"
},
{
"from": "gpt",
"value": "namespace EOpt.Math.Tests\n{\n using Microsoft.VisualStudio.TestTools.UnitTesting;\n using EOpt.Math;\n using System;\n using System.Collections.Generic;\n using System.Linq;\n using Syst... | c# | chosen |
[
{
"from": "human",
"value": "Add smoke tests for settings.\n"
},
{
"from": "gpt",
"value": "// Copyright Matthias Koch 2017.\n// Distributed under the MIT License.\n// https://github.com/nuke-build/nuke/blob/master/LICENSE\n\nusing System;\nusing System.IO;\nusing System.Linq;\nusing FluentAsser... | c# | chosen |
[
{
"from": "system",
"value": "Switch over setup commands from using query class\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Data;\nusing System.Text;\nusing ZocMonLib;\n\nnamespace ZocMonLib\n{\n public class StorageCommandsSetupSqlServer ... | c# | chosen |
[
{
"from": "human",
"value": "Add missing file for ping command test.\n"
},
{
"from": "gpt",
"value": "using DiabloSpeech.Business.Twitch;\nusing DiabloSpeech.Business.Twitch.Processors;\nusing NUnit.Framework;\nusing tests.Twitch.Mocks;\n\nnamespace tests.Twitch\n{\n public class PingCommand... | c# | chosen |
[
{
"from": "human",
"value": "Add test covering ThreadedTaskScheduler shutdown\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System.Threading;\nusing S... | c# | chosen |
[
{
"from": "human",
"value": "Add debug utilities to sleep-wait and busy-wait for a given duration"
},
{
"from": "gpt",
"value": "using System.Diagnostics;\nusing System.Threading;\n\nstatic class DebugUtilities {\n\tpublic static void Burn(long ms) {\n\t\tStopwatch stopwatch = Stopwatch.StartNe... | c# | chosen |
[
{
"from": "system",
"value": "Add message type to blob trigger.\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 project root for license information.\n\nusing Mi... | c# | chosen |
[
{
"from": "system",
"value": "Enable Get Element Property tests in Edge\n\nSigned-off-by: Jim Evans <6d79d03c0573f3cb082d0037a63e1832cd69a278@gmail.com>\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing NUnit.Framework;\nusing System.Collections.ObjectMod... | c# | chosen |
[
{
"from": "human",
"value": "Add osu!-specific enum for confine mouse mode\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System.ComponentModel;\nusing... | c# | chosen |
[
{
"from": "system",
"value": "Change mobile client to use DefaultsController instead of GetwayController\n"
},
{
"from": "human",
"value": "using System.Threading.Tasks;\nusing ContosoMoments.Models;\nusing Xamarin.Forms;\nusing System;\n\nnamespace ContosoMoments\n{\n public class ResizeReq... | c# | chosen |
[
{
"from": "human",
"value": "Add example to get the Log of a source field.\n"
},
{
"from": "gpt",
"value": "using Code.Records;\n\nnamespace Code.Custom\n{\n /// <summary>\n /// Record Updater that will calculate the log of the source field.\n /// </summary>\n /// <example>\n ... | c# | chosen |
[
{
"from": "human",
"value": "Implement unit test for boyer moore\n"
},
{
"from": "gpt",
"value": "using System;\n\nnamespace Algorithms.Strings.Search\n{\n public class BoyerMoore\n {\n private int[] right;\n private const int R = 256;\n private int M;\n privat... | c# | chosen |
[
{
"from": "system",
"value": "Make the BuiltinThis test clearer\n"
},
{
"from": "human",
"value": "using System;\nusing JSIL;\n\npublic static class Program { \n public static void Main (string[] args) {\n var print = Builtins.Global[\"pr\" + \"int\"];\n if (print != null)\n ... | c# | chosen |
[
{
"from": "human",
"value": "Reduce the size of the keys in the generics migrator. This finally fixes the long standing issue of it failing to create the table on linux sometimes. Thanks go to Hippo_Finesmith for helping find the issue with this :).\n"
},
{
"from": "gpt",
"value": "/*\r\n * Copy... | c# | chosen |
[
{
"from": "human",
"value": " Add datatypes for OPNsense Objects\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Management.Automation;\n\nnamespace OPNsense.Ftpproxy {\n\tpublic class Proxy {\n\t\t#region Parameters\n\t\tpublic uint debuglevel { get; set; }\n\t\tpublic string desc... | c# | chosen |
[
{
"from": "human",
"value": "Test for code creation from generating polynomial was added\n"
},
{
"from": "gpt",
"value": "namespace AppliedAlgebra.WaveletCodesTools.Tests\n{\n using CodesResearchTools.NoiseGenerator;\n using Decoding.ListDecoderForFixedDistanceCodes;\n using Decoding.S... | c# | chosen |
[
{
"from": "human",
"value": "Add converter for old storable objects\n"
},
{
"from": "gpt",
"value": "using System;\nusing LazyStorage.Interfaces;\n\nnamespace LazyStorage.Xml\n{\n internal class StorableConverter<T> : IConverter<T> where T : IStorable<T>, IEquatable<T>, new()\n {\n ... | c# | chosen |
[
{
"from": "human",
"value": "Add benchmark coverage of logger\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System;\nusing BenchmarkDotNet.Attributes;... | c# | chosen |
[
{
"from": "human",
"value": "Add a partial view with form to reply to comments.\n"
},
{
"from": "gpt",
"value": "@using System.Threading.Tasks\n@using CompetitionPlatform.Helpers\n@model CompetitionPlatform.Models.ProjectViewModels.ProjectCommentPartialViewModel\n\n<form asp-controller=\"Project... | c# | chosen |
[
{
"from": "human",
"value": "Drop cassette config in for less integration\n"
},
{
"from": "gpt",
"value": "using Cassette;\r\nusing Cassette.Scripts;\r\nusing Cassette.Stylesheets;\r\n\r\nnamespace Exceptional.Web\r\n{\r\n /// <summary>\r\n /// Configures the Cassette asset bundles for the... | c# | chosen |
[
{
"from": "human",
"value": "Add file missed in build\n\n[tfs-changeset: 1649988]\n"
},
{
"from": "gpt",
"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 ro... | c# | chosen |
[
{
"from": "human",
"value": "Add NeutralResourcesLanguageAttribute to Channels lib\n"
},
{
"from": "gpt",
"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 ro... | c# | chosen |
[
{
"from": "human",
"value": "Add code for creating challenge from IdentityModel\n"
},
{
"from": "gpt",
"value": "#region Copyright\n\n/* * * * * * * * * * * * * * * * * * * * * * * * * */\n/* Carl Zeiss IMT (IZfM Dresden) */\n/* Softwaresystem PiWeb ... | c# | chosen |
[
{
"from": "human",
"value": "Add new class to facilitate multi-threaded onion generation\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.ComponentModel;\n\nnamespace Xpdm.PurpleOnion\n{\n\tclass OnionGenerator\n\t{\n\t\tprivate readonly BackgroundWorker worker = new BackgroundWorker... | c# | chosen |
[
{
"from": "human",
"value": "Add test to ensure ClaimsPrincipal serializes via MobileFormatter\n"
},
{
"from": "gpt",
"value": "//-----------------------------------------------------------------------\n// <copyright file=\"ClaimsPrincipalTests.cs\" company=\"Marimer LLC\">\n// Copyright (c... | c# | chosen |
[
{
"from": "human",
"value": "Add test scene for thumbnail component\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing NUnit.Framework;\nusing osu.Framewor... | c# | chosen |
[
{
"from": "human",
"value": "Add shader disposal test coverage\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System;\nusing System.Collections.Generic... | c# | chosen |
[
{
"from": "human",
"value": "Add test coverage of creating, saving and loading a new beatmap\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System.Linq... | c# | chosen |
[
{
"from": "system",
"value": "Make sure changelist timer is enabled in watchdog, because Steamkit can get stuck between being connected and logging in\n"
},
{
"from": "human",
"value": "/*\n * Copyright (c) 2013-2015, SteamDB. All rights reserved.\n * Use of this source code is governed by a BS... | c# | chosen |
[
{
"from": "system",
"value": "Make Activity Serializable on NET 4.5 since it's stored in CallContext\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 fi... | c# | chosen |
[
{
"from": "system",
"value": "Set name for Avalonia thread to identify it more easily in debugger.\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Configuration;\nusing System.Data;\nusing System.Linq;\nusing System.Threading;\nusing System.Thre... | c# | chosen |
[
{
"from": "human",
"value": "Add methods to refresh desktop and file explorer.\n"
},
{
"from": "gpt",
"value": "#region auto-generated FILE INFORMATION\n\n// ==============================================\n// This file is distributed under the MIT License\n// ===================================... | c# | chosen |
[
{
"from": "human",
"value": "GraphQL: Fix GUIDs not being parsed from Strings\n"
},
{
"from": "gpt",
"value": "using System;\nusing GraphQL.Language.AST;\nusing GraphQL.Types;\n\nnamespace GraphQL.Types\n{\n public class GuidGraphType : ScalarGraphType\n {\n public GuidGraphType()\... | c# | chosen |
[
{
"from": "human",
"value": "Implement room exists data contract\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Runtime.Serialization;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace Schedutalk.Logic.KTHPlaces\... | c# | chosen |
[
{
"from": "human",
"value": "Add test coverage of nested game usage\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System;\nusing NUnit.Framework;\nus... | c# | chosen |
[
{
"from": "human",
"value": "Add Scroll rect by children component\n"
},
{
"from": "gpt",
"value": "using System;\nusing UnityEngine;\nusing UnityEngine.EventSystems;\nusing UnityEngine.UI;\n\npublic class ScrollRectByChildren : MonoBehaviour, \n IBeginDragHandler, \n IDragHandler, \n ... | c# | chosen |
[
{
"from": "human",
"value": "Add rotation drag handle component\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing osu.Framework.Allocation;\nusing osu.Fra... | c# | chosen |
[
{
"from": "human",
"value": "Add unit tests that that does not add much value yet\n"
},
{
"from": "gpt",
"value": "using NUnit.Framework;\n\nnamespace Mapsui.Tests\n{\n [TestFixture]\n public class ViewportTests\n {\n [Test]\n public void SetCenterTest()\n {\n ... | c# | chosen |
[
{
"from": "human",
"value": "Test to verify compiled query error was addressed in v4 changes. Closes GH-784\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Linq.Expressions;\nusing Marten.Linq;\nusing Marten.Testing.Documents;\n... | c# | chosen |
[
{
"from": "system",
"value": "Verify that an exception is thrown when more than one type matches\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\... | c# | chosen |
[
{
"from": "system",
"value": "Remove the nullable disable annotation in the testing beatmap and mark some of the properties as nullable.\n\nThis class will be used in some check test cases.\n"
},
{
"from": "human",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT ... | c# | chosen |
[
{
"from": "human",
"value": "Add a level script that can trigger the ending cutscene\n"
},
{
"from": "gpt",
"value": "using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class BuilderLevel : MonoBehaviour {\n\n\tpublic CameraManager camera;\n\n\tpublic voi... | c# | chosen |
[
{
"from": "human",
"value": "Update the example to skip authentication\n"
},
{
"from": "gpt",
"value": "namespace BasicExample\n{\n using System;\n using System.Collections.Generic;\n using Crest.Abstractions;\n\n /// <summary>\n /// Shows an example of how to disable JWT authent... | c# | chosen |
[
{
"from": "human",
"value": "Create initial attributes for attribute-driven Worksheet.FromData\n"
},
{
"from": "gpt",
"value": "using System;\n\nnamespace Simplexcel.Cells\n{\n [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]\n ... | c# | chosen |
[
{
"from": "human",
"value": "Add Brandon Olin as author\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.ServiceModel.Syndication;\nusing System.Web;\nusing Firehose.Web.Infrastructure;\n\nnamespace Firehose.Web.Authors\n{\n p... | c# | chosen |
[
{
"from": "human",
"value": "Add benchmark coverage of `Scheduler`\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing BenchmarkDotNet.Attributes;\nusing os... | c# | chosen |
[
{
"from": "human",
"value": "Add dump PSI for file internal action\n"
},
{
"from": "gpt",
"value": "using System.Diagnostics;\nusing System.IO;\nusing System.Text;\nusing JetBrains.Application.DataContext;\nusing JetBrains.Application.UI.Actions;\nusing JetBrains.Application.UI.ActionsRevised.Me... | c# | chosen |
[
{
"from": "human",
"value": "Create abstract base class for a HttpServer\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing System.Net;\nusing System.Threading;\nnamespace Snowflake.Core... | c# | chosen |
[
{
"from": "human",
"value": "Fix build error for XCode\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.IO;\nusing UnityEngine;\nusing UnityEditor;\nusing UnityEditor.iOS.Xcode;\nusing UnityEditor.Callbacks;\nusing System.Collections;\n\npublic class UpdateXcodeProject\n{\n\n\t[Post... | c# | chosen |
[
{
"from": "human",
"value": "Add helper extension methods for route data\n - Added RouteData.GetCurrentPage<T>()\n - Added RouteData.GetNavigationContext()\n"
},
{
"from": "gpt",
"value": "using System.Web;\nusing System.Web.Routing;\nusing BrickPile.Core.Routing;\n\nnamespace BrickPile.C... | c# | chosen |
[
{
"from": "human",
"value": "Add helper to track ongoing operations in UI\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing System;\nusing osu.Framework.B... | c# | chosen |
[
{
"from": "human",
"value": "Add missing file to repository\n\n--HG--\nextra : convert_revision : charlie%40nunit.org-20120414020227-k6uj3zg1mj7p5xbm\n"
},
{
"from": "gpt",
"value": "// ***********************************************************************\n// Copyright (c) 2012 Charlie Poole\... | c# | chosen |
[
{
"from": "human",
"value": "Add utility class (mapped from Java SDK)\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing Alexa.NET.Request.Type;\n\nnamespace Alexa.NET.Request\n{\n public static class SkillRequestU... | c# | chosen |
[
{
"from": "human",
"value": "Add API service to handle save and load of API keys\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Threading.Tasks;\n\nusing ReceptionKiosk.Helpers;\n\nusing Windows.Storage;\nusing Windows.UI.Xaml;\n\nnamespace ReceptionKiosk.Services\n{\n public cl... | c# | chosen |
[
{
"from": "human",
"value": "Add missing PartsDb base class\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Data;\nusing System.Collections.Generic;\n\npublic delegate void ErrorHandler(string message, Exception exception);\n\npublic delegate void PartTypesHandler(List<PartType> par... | c# | chosen |
[
{
"from": "human",
"value": "Test for async graph updates from gui block/connector\n"
},
{
"from": "gpt",
"value": "using System;\r\nusing Microsoft.VisualStudio.TestTools.UnitTesting;\r\nusing KSPCommEngr;\r\n\r\nnamespace CommEngrTest\r\n{\r\n [TestClass]\r\n public class CommBlockTests... | c# | chosen |
[
{
"from": "human",
"value": "Add simple test case for FullscreenOverlay\n\n"
},
{
"from": "gpt",
"value": "// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\n// See the LICENCE file in the repository root for full licence text.\n\nusing NUnit.Framework;\nusing osu.Fr... | c# | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.