conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Check we don't reference DesignTime assemblies\n\nCheck that no GitHub assemblies reference any assembly that ends with\nDesignTime. Types from DesignTime assemblies should be embedded not\nreferenced.\n"
},
{
"from": "gpt",
"value": "using System.IO;\nusing System.... | c# | chosen |
[
{
"from": "human",
"value": "Create new CelestialBody from asteroid data\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing UnityEngine;\n\nnamespace DMModuleScienceAnimateGeneric\n{\n public class AsteroidScience\... | c# | chosen |
[
{
"from": "human",
"value": "Add test for BinarySearcher class\n"
},
{
"from": "gpt",
"value": "using System.Collections.Generic;\nusing Xunit;\nusing Algorithms.Search;\n\nnamespace UnitTest.AlgorithmsTests\n{\n public static class BinarySearcherTest\n {\n\n\n [Fact]\n publ... | c# | chosen |
[
{
"from": "system",
"value": "Adjust transform to look better\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.Fra... | c# | chosen |
[
{
"from": "human",
"value": "Introduce model to store path of stable osu!\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 the support for autoscale SCPI command\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace SCPI\n{\n public class AUTOSCALE : ICommand\n {\n public string Description => \"The oscillosco... | c# | chosen |
[
{
"from": "system",
"value": "Fix typo: Arrary --> Array\n"
},
{
"from": "human",
"value": "using System;\nusing System.Linq.Expressions;\n\nnamespace Nest.Resolvers\n{\n\tpublic static class Property\n\t{\n\t\t/// <summary>\n\t\t/// Create a strongly typed string representation of the path to a... | c# | chosen |
[
{
"from": "human",
"value": "Move JobStore cleanup to abstract class.\n"
},
{
"from": "gpt",
"value": "using System;\n\nnamespace Quartz.DynamoDB.Tests.Integration.JobStore\n{\n /// <summary>\n /// Abstract class that provides common dynamo db cleanup for JobStore integration testing.\n ... | c# | chosen |
[
{
"from": "human",
"value": "Copy source code from KLibrary-Labs\n"
},
{
"from": "gpt",
"value": "using System;\r\nusing System.Collections.Generic;\r\n\r\nnamespace KLibrary.Linq\r\n{\r\n public static class Comparison\r\n {\r\n public static IComparer<T> CreateComparer<T>(Func<T,... | c# | chosen |
[
{
"from": "human",
"value": "Implement testcase for room settings\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/master/LICENCE\n\nusing osu.Framework.Graphics;\nusing osu.Fr... | c# | chosen |
[
{
"from": "human",
"value": "Add stub implementation of local\n"
},
{
"from": "gpt",
"value": "using System;\n\nnamespace Glimpse.Server\n{\n public class LocalBrokerPublisher : IBrokerPublisher\n {\n public void PublishMessage(IMessage message)\n {\n // TODO: pus... | c# | chosen |
[
{
"from": "human",
"value": "Add auto exit play mode on compile\n"
},
{
"from": "gpt",
"value": "using UnityEngine;\nusing System.Collections;\nusing UnityEditor;\n\nnamespace Expanse\n{\n /// <summary>\n /// Exits play mode automatically when Unity performs code compilation.\n /// </s... | c# | chosen |
[
{
"from": "human",
"value": "Add constant time functions and functions for generating random bytes\n\nContributes to #58\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Runtime.CompilerServices;\n\nnamespace NSec.Experimental\n{\n public static class CryptographicUtilities\n {... | c# | chosen |
[
{
"from": "human",
"value": "Add new configuration for ServiceContainer\n"
},
{
"from": "gpt",
"value": "namespace TestHttpCompositionConsoleApp.ConfigurationSources\n{\n using System;\n using Newtonsoft.Json;\n using Serviceable.Objects.Composition.Graph;\n using Serviceable.Object... | c# | chosen |
[
{
"from": "human",
"value": "Add a class to perform basic vector operations (addition, subtraction, scaling) for the optimization needs.\n\nSigned-off-by: Manolis Georgioudakis <456a0d25592ed010f911d8d9039f21c89b888768@mail.ntua.gr>\n"
},
{
"from": "gpt",
"value": "using System;\n\n\nnamespace ... | c# | chosen |
[
{
"from": "human",
"value": "Add interface for common properties\n"
},
{
"from": "gpt",
"value": "namespace food_tracker {\n public interface IListItems {\n double calories { get; set; }\n double amount { get; set; }\n double fats { get; set; }\n double saturatedF... | c# | chosen |
[
{
"from": "human",
"value": "Add extension to handle MPMediaItem\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing CoreGraphics;\nusing MediaManager.Library;\nusing MediaPlayer;\n\nnamespace MediaManager.Platforms.Ios.Media\n{\n publ... | c# | chosen |
[
{
"from": "system",
"value": "Return Dummy from unconfigured property getter\n"
},
{
"from": "human",
"value": "namespace FakeItEasy.Core\r\n{\r\n using System;\r\n using System.Linq;\r\n using FakeItEasy.Creation;\r\n\r\n /// <content>Auto fake property rule.</content>\r\n publi... | c# | chosen |
[
{
"from": "human",
"value": "HotChocolate: Add a simple debug query\n"
},
{
"from": "gpt",
"value": "using HotChocolate.Types;\nusing System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace Snowflake.Support.GraphQLFrameworkQueries.Queries.Debug\n{\n public class EchoQuer... | c# | chosen |
[
{
"from": "human",
"value": "Add keywords of the Print Schema Keywords v1.1\n"
},
{
"from": "gpt",
"value": "using System.Xml.Linq;\n\nnamespace Kip\n{\n public static class Pskv11\n {\n public static readonly XNamespace Namespace = \"http://schemas.microsoft.com/windows/2013/05/pr... | c# | chosen |
[
{
"from": "human",
"value": "Add class to avoid byte[] creation\n"
},
{
"from": "gpt",
"value": "using System.IO;\nusing System.Runtime.InteropServices;\n\nnamespace Diadoc.Api.Com\n{\n\t[ComVisible(true)]\n\t[Guid(\"AC96A3DD-E099-44CC-ABD5-11C303307159\")]\n\tpublic interface IComBytes\n\t{\n\... | c# | chosen |
[
{
"from": "human",
"value": "Add generation of KML file to maps menu\n"
},
{
"from": "gpt",
"value": "using FTAnalyzer.Utilities;\nusing System;\n\nnamespace FTAnalyzer.Mapping\n{\n static class GoogleAPIKey\n {\n static string APIkeyValue = string.Empty;\n\n public static s... | c# | chosen |
[
{
"from": "human",
"value": "Add model class for mod presets\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 exception type for native call failures.\n"
},
{
"from": "gpt",
"value": "// ---------------------------------------------------------------------------------------\n// <copyright file=\"NativeCallException.cs\" company=\"\">\n// Copyright © 2015 by Adam Hel... | c# | chosen |
[
{
"from": "human",
"value": "Add version helper to simplify creating a version list\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\n\nnamespace KenticoInspector.Core.Helpers\n{\n public class VersionHelper\n {\n public static I... | c# | chosen |
[
{
"from": "human",
"value": "Add CreateGenericInstance Type extension method to help building models\n"
},
{
"from": "gpt",
"value": "using System;\n\nnamespace Zbu.ModelsBuilder\n{\n public static class TypeExtensions\n {\n /// <summary>\n /// Creates a generic instance of ... | c# | chosen |
[
{
"from": "human",
"value": "Add a base for web forms controls\n"
},
{
"from": "gpt",
"value": "namespace My.AspNetCore.WebForms.Controls\n{\n public abstract class Control\n {\n public string Id { get; set; }\n\n public string InnerHtml { get; protected set; }\n\n pu... | c# | chosen |
[
{
"from": "human",
"value": "Add initial contract for message bus\n\nYa observables!!\n"
},
{
"from": "gpt",
"value": "using System;\n\nnamespace Glimpse.Broker\n{\n public interface IMessageBus\n {\n IObservable<T> Listen<T>();\n\n IObservable<T> ListenIncludeLatest<T>();\n... | c# | chosen |
[
{
"from": "human",
"value": "Add JWA enumeration for JWS Algorithms\n"
},
{
"from": "gpt",
"value": "using System.Runtime.Serialization;\n\nnamespace THNETII.Security.JOSE\n{\n /// <summary>\n /// Defines the set of <c>\"alg\"</c> (algorithm) Header Parameter\n /// values defined by th... | c# | chosen |
[
{
"from": "human",
"value": "Read and write a Trie\n"
},
{
"from": "gpt",
"value": "// Print a trie\n\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.IO;\n\nclass Node \n{\n private Dictionary<char, Node> Next = new Dictionary<char, Node>();\n private bo... | c# | chosen |
[
{
"from": "human",
"value": "Add sendgeneric command to TestClient to allow one to send arbitrary GenericMessagePackets to the simulator for testing purposes\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\nusing OpenMetaverse;\nusing OpenMet... | c# | chosen |
[
{
"from": "human",
"value": "Add move message module. First iteration before refactor\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Linq;\nusing System.Threading.Tasks;\nusing Discord;\nusing Discord.Commands;\nusing Modix.Services.CommandHelp;\n\nnamespace Modix.Modules\n{\n ... | c# | chosen |
[
{
"from": "human",
"value": "Add failing tests for mapping of enum values\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Threading.Tasks;\n\nusing EntryPoint;\nusing Xunit;\n\nnamespace EntryPointTests {\n public class Enum... | c# | chosen |
[
{
"from": "system",
"value": "Remove duplicate exception clear similar link\n"
},
{
"from": "human",
"value": "@model StackExchange.Opserver.Views.Exceptions.ExceptionsModel\n@{\n var e = Model.Exception;\n var log = Model.SelectedLog;\n var exceptions = Model.Errors;\n\n this.SetPa... | c# | chosen |
[
{
"from": "human",
"value": "Add class to hold snippets for the Period type\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\n\nnamespace NodaTime.Demo\n{\n class PeriodDemo\n {\n }\... | c# | chosen |
[
{
"from": "human",
"value": "Add - Attività Utente per la gestrione degli stati \"InLavorazione\" e \"Prenotato\"\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace SO115App.Models.Classi.Soccorso\n{\n public class AttivitaUtent... | c# | chosen |
[
{
"from": "human",
"value": "Add simple ping controller to check functionality.\n"
},
{
"from": "gpt",
"value": "using A2BBAPI.Data;\nusing A2BBAPI.Models;\nusing A2BBCommon;\nusing A2BBCommon.DTO;\nusing Microsoft.AspNetCore.Authorization;\nusing Microsoft.AspNetCore.Mvc;\nusing Microsoft.Exten... | c# | chosen |
[
{
"from": "human",
"value": "Add enumeration of supported SqlClient versions.\n"
},
{
"from": "gpt",
"value": "/*\n Copyright 2021 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 a... | c# | chosen |
[
{
"from": "human",
"value": "tools: Introduce a new ReleaseManager tool (populate-api-catalog)\n\nThis is used when we need to copy a new field from the API Index into the API Catalog.\nIn this particular case we're using it for ServiceConfigFile, but it's equally applicable to other new code.\n"
},
{
... | c# | chosen |
[
{
"from": "human",
"value": "Add testable spectator streaming client\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.Collections.Generic;\nusing ... | c# | chosen |
[
{
"from": "human",
"value": "Add visual test for EdgeSnappingContainer\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... | c# | chosen |
[
{
"from": "human",
"value": "Add unit tests for TestId\n\n"
},
{
"from": "gpt",
"value": "using System.Collections.Generic;\nusing System.Linq;\nusing Arkivverket.Arkade.Core.Util;\nusing FluentAssertions;\nusing Xunit;\n\nnamespace Arkivverket.Arkade.CoreTests.Util\n{\n public class TestIdT... | c# | chosen |
[
{
"from": "human",
"value": "Fix missing files for release 3.7.4.2704\n"
},
{
"from": "gpt",
"value": "namespace Patagames.Pdf.Net.Controls.Wpf\n{\n /// <summary>\n /// Represents the scaling options of the page for printing\n /// </summary>\n public enum PrintSizeMode\n {\n ... | c# | chosen |
[
{
"from": "human",
"value": "Disable test parallelization in Marten.Testing\n"
},
{
"from": "gpt",
"value": "using Xunit;\n\n// General Information about an assembly is controlled through the following\n// set of attributes. Change these attribute values to modify the information\n// associated ... | c# | chosen |
[
{
"from": "human",
"value": "Optimize coins management with CoinRegistry\n\nThis new class is going to replace the `ObservableConcurrentHashSet`.\nThis one raises events in a smarter way (less events) by avoiding the\nuse of recursive coins traversal.\nAlso, it simplifies the API because it changes the `Try... | c# | chosen |
[
{
"from": "human",
"value": "Add tests to cover TestSuite.Copy\n"
},
{
"from": "gpt",
"value": "using NUnit.Framework.Api;\nusing NUnit.TestData.OneTimeSetUpTearDownData;\nusing NUnit.TestData.TestFixtureSourceData;\nusing NUnit.TestUtilities;\n\nnamespace NUnit.Framework.Internal\n{\n // Tes... | c# | chosen |
[
{
"from": "human",
"value": "Create Test that dapper works wil Session\n"
},
{
"from": "gpt",
"value": "using System.Collections.Generic;\nusing System.Linq;\nusing Dapper;\nusing FakeItEasy;\nusing NUnit.Framework;\nusing Smooth.IoC.Dapper.FastCRUD.Repository.UnitOfWork.Tests.TestHelpers;\nusi... | c# | chosen |
[
{
"from": "human",
"value": "Add Win32 functionality to get foreground process\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing System.IO;\nusing System.Linq;\nusing System.Runtime.InteropServices;\nusing System.Text;\nusing Sys... | c# | chosen |
[
{
"from": "human",
"value": "Add an xUnit test discoverer that ignores tests when run on AppVeyor\n"
},
{
"from": "gpt",
"value": "namespace Respawn.DatabaseTests\n{\n using System;\n using System.Collections.Generic;\n using System.Linq;\n using Xunit;\n using Xunit.Abstractions... | c# | chosen |
[
{
"from": "human",
"value": "Change DropDownButton, Change Sepparotor name on Menu, Logout if unsuccessful ping Part VII\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Collections.ObjectModel;\nusing Gtk;\n\nnamespace Moscrif.IDE.Components\n{\n\t... | c# | chosen |
[
{
"from": "system",
"value": "Allow running gzip-ped script from URL\n"
},
{
"from": "human",
"value": "using System;\nusing System.IO;\nusing System.Net.Http;\nusing System.Net.Mime;\nusing System.Threading.Tasks;\n\nnamespace Dotnet.Script.Core\n{\n public class ScriptDownloader\n {\n ... | c# | chosen |
[
{
"from": "system",
"value": "Add missed paren in comment.\n\n(cherry picked master -> v1.0 from commit aefbbad423132dfa26c0264c4491acbd79c61a70)\n"
},
{
"from": "human",
"value": "using System;\nusing System.Threading;\n\nnamespace ProcessTest_ConsoleApp\n{\n class Program\n {\n s... | c# | chosen |
[
{
"from": "human",
"value": "Set specs on all tiles at Awake()\n"
},
{
"from": "gpt",
"value": "using UnityEngine;\nusing UnityEngine.Assertions;\n\npublic class TileSystemManager : BaseBehaviour\n{\n\tprivate Shader shader;\n\n\tvoid Start()\n\t{\n\t\tshader = Shader.Find(\"Sprites/Diffuse\");\... | c# | chosen |
[
{
"from": "human",
"value": "Add TLS token binding feature\n"
},
{
"from": "gpt",
"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 System;\nu... | c# | chosen |
[
{
"from": "human",
"value": "Add items for database persistence\n"
},
{
"from": "gpt",
"value": "namespace food_tracker {\n public class NutritionItem {\n public string name { get; set; }\n public double calories { get; set; }\n public double carbohydrates { get; set; }\... | c# | chosen |
[
{
"from": "human",
"value": "Add a abstract server class.\nWatch out for the todos.\n"
},
{
"from": "gpt",
"value": "/*\n * WoWCore - World of Warcraft 1.12 Server\n * Copyright (C) 2017 exceptionptr\n * \n * This program is free software: you can redistribute it and/or modify\n * it under... | c# | chosen |
[
{
"from": "human",
"value": "Add assembly info for new project\n"
},
{
"from": "gpt",
"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.Reflection;\nusi... | c# | chosen |
[
{
"from": "human",
"value": "Implement CartSpecs to Control Specification\n"
},
{
"from": "gpt",
"value": "using WJStore.Domain.Interfaces.Validation;\n\nnamespace WJStore.Domain.Entities.Specifications.CartSpecs\n{\n public class CartCountShouldBeGreaterThanZeroSpec : ISpecification<Cart>\n... | c# | chosen |
[
{
"from": "system",
"value": "Use the correct icon for osu!direct in the toolbar\n\n"
},
{
"from": "human",
"value": "// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.\r\n// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE\r\n\r\nusing osu.Framewor... | c# | chosen |
[
{
"from": "human",
"value": "Add test fixture for secret splitting\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing NUnit.Framework;\n\nnamespace ElectronicCash.Tests\n{\n [TestFixt... | c# | chosen |
[
{
"from": "human",
"value": "Add a logging effect to debug\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace SmokeScreen\n{\n [EffectDefinition(\"DEBUG_EFFECT\")]\n class DebugEffect : EffectBehaviour\n ... | c# | chosen |
[
{
"from": "human",
"value": "Implement test for client login.\n"
},
{
"from": "gpt",
"value": "using Microsoft.VisualStudio.TestTools.UnitTesting;\nusing Moegirlpedia.MediaWikiInterop.Actions;\nusing Moegirlpedia.MediaWikiInterop.Actions.Models;\nusing Moegirlpedia.MediaWikiInterop.Actions.Quer... | c# | chosen |
[
{
"from": "human",
"value": "Add Composite implementation for Indexers\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing CK.Monitoring;\n\nnamespace CK.Glouton.Lucene\n{\n class Comp... | c# | chosen |
[
{
"from": "human",
"value": "Add a script for check if we are a tank.\n"
},
{
"from": "gpt",
"value": "switch (ObjectManager.Me.WowSpecialization())\n{\n\tcase WoWSpecialization.PaladinProtection:\n\tcase WoWSpecialization.WarriorProtection:\n\tcase WoWSpecialization.MonkBrewmaster:\n\tcase WoWS... | c# | chosen |
[
{
"from": "human",
"value": "[liuxia] Add date time passing practices.\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing Xunit;\n\nnamespace CSharpViaTest.OtherBCLs.HandleDates\n{\n /* \n * Description\n * ==========... | c# | chosen |
[
{
"from": "human",
"value": "Add script for serializing level data\n"
},
{
"from": "gpt",
"value": "using System.IO;\nusing System.Runtime.Serialization.Formatters.Binary;\nusing System;\nusing UnityEngine;\n\npublic class LevelData : BaseBehaviour\n{\n\tpublic int HP { get; set; }\n\tpublic... | c# | chosen |
[
{
"from": "human",
"value": "Split model class for mod state\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.Bindables;\nusing osu.Game.Ru... | c# | chosen |
[
{
"from": "human",
"value": "Add IProvideExpenditure class to support data provision\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing GeneralUseClasses.Contracts;\n\nnamespace GeneralU... | c# | chosen |
[
{
"from": "system",
"value": "Hide logout when not using forms auth\n"
},
{
"from": "human",
"value": "\r\nnamespace N2.Management\r\n{\r\n\tpublic partial class Top : System.Web.UI.MasterPage\r\n\t{\r\n\t}\r\n}\r\n"
},
{
"from": "gpt",
"value": "using System.Configuration;\r\nusin... | c# | chosen |
[
{
"from": "human",
"value": "Add a factory for Property path element\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.RegularExpressions;\nusing System.Threading.Tasks;\n\nnamespace Pather.CSharp.PathElements\n{\n public... | c# | chosen |
[
{
"from": "system",
"value": "Add Rect <-> Vector2i collisions\n"
},
{
"from": "human",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing neon2d.Math;\n\nnamespace neon2d.Physics\n{\n public class Rect\n ... | c# | chosen |
[
{
"from": "human",
"value": "Add extension method to provide drawable adjustments\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;\n\nnamespace o... | c# | chosen |
[
{
"from": "human",
"value": "Fix warnings in unit tests flagged by MSBuild Log\n\nSuppressed:\nCA1707:Identifiers should not contain underscores\nCA1034:Nested types should not be visible\n"
},
{
"from": "gpt",
"value": "\n// This file is used by Code Analysis to maintain SuppressMessage \n// a... | c# | chosen |
[
{
"from": "human",
"value": "Add a button press example\n"
},
{
"from": "gpt",
"value": "using UnityEngine;\nusing System.Collections;\n\npublic class HandleButtonPress : MonoBehaviour {\n\tpublic OSVR.Unity.OSVRClientKit clientKit;\n\t\n\tpublic OSVR.Unity.InterfaceCallbacks cb;\n\n\tpublic vo... | c# | chosen |
[
{
"from": "human",
"value": "Add unit tests for UaTcpChannelOptions\n"
},
{
"from": "gpt",
"value": "using FluentAssertions;\nusing System;\nusing System.Collections.Generic;\nusing System.Text;\nusing Workstation.ServiceModel.Ua;\nusing Xunit;\n\nnamespace Workstation.UaClient.UnitTests\n{\n ... | c# | chosen |
[
{
"from": "human",
"value": "Create a class that is used to process the restQL queries.\n"
},
{
"from": "gpt",
"value": "using System;\r\nusing System.Collections.Generic;\r\nusing System.Text;\r\n\r\nnamespace Nohros.Toolkit.RestQL\r\n{\r\n /// <summary>\r\n /// A class used to process a res... | c# | chosen |
[
{
"from": "system",
"value": "Fix d'un bug qui faisait en sorte que le showDialog ne fonctionnait pas\n"
},
{
"from": "human",
"value": "using MahApps.Metro.Controls;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing ... | c# | chosen |
[
{
"from": "system",
"value": "Change how constants are defined\n"
},
{
"from": "human",
"value": "using System;\n\nnamespace ZocMonLib\n{\n public class Constant\n {\n public static readonly DateTime MinDbDateTime = new DateTime(1753, 1, 1);\n \n public const long Tic... | c# | chosen |
[
{
"from": "human",
"value": "Add a new Paused mode.\n\nsvn path=/trunk/bitsharp/; revision=140026\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Collections.Generic;\nusing System.Text;\nusing MonoTorrent.Common;\n\nnamespace MonoTorrent.Client\n{\n class PausedMode : Mode\n ... | c# | chosen |
[
{
"from": "system",
"value": "Change the MSI version to 1.8\n"
},
{
"from": "human",
"value": "//\n// Copyright 2012 Microsoft Corporation\n// \n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You ma... | c# | chosen |
[
{
"from": "human",
"value": "Add test coverage of `SettingsCheckbox`\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.Linq;\nusing ... | c# | chosen |
[
{
"from": "human",
"value": "Add unit tests for Users API controller\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Threading.Tasks;\nusing Microsoft.AspNetCore.Mvc;\nusing Microsoft.Extensions.Options;\n\nusing Moq;\nusing Xunit;\n\nusing ISTS.Api.Controllers;\nusing ISTS.Api.Help... | c# | chosen |
[
{
"from": "human",
"value": "Split out test for combo counter specifically\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.Collections.Generic;\n... | c# | chosen |
[
{
"from": "human",
"value": "Add test for racecondition issue\n"
},
{
"from": "gpt",
"value": "using System.IO;\nusing Microsoft.Extensions.Configuration;\nusing NUnit.Framework;\nusing Tiver.Fowl.Drivers.Configuration;\nusing Tiver.Fowl.Drivers.DriverBinaries;\nusing Tiver.Fowl.Drivers.DriverD... | c# | chosen |
[
{
"from": "human",
"value": "Set Horizontal And Vertical Image Resolution\n"
},
{
"from": "gpt",
"value": "using Aspose.Words.Saving;\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\n\nnamespace Aspose.Words.Examples.CSharp.Rendering_Printing\n{\n cl... | c# | chosen |
[
{
"from": "human",
"value": "Add interface for content validation\n"
},
{
"from": "gpt",
"value": "using Microsoft.AspNetCore.Http;\nusing System.Threading.Tasks;\n\nnamespace Porthor.ContentValidation\n{\n public interface IContentValidator\n {\n Task<bool> Validate(HttpRequest re... | c# | chosen |
[
{
"from": "human",
"value": "Create view model for user\n\nCreate view model for user\n"
},
{
"from": "gpt",
"value": "namespace DevelopmentInProgress.AuthorisationManager.ASP.Net.Core.ViewModels\n{\n public class UserViewModel\n {\n public string Id { get; set; }\n public s... | c# | chosen |
[
{
"from": "human",
"value": "Add toggle menu item test\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;\nusing... | c# | chosen |
[
{
"from": "human",
"value": "Add new parser test base\n"
},
{
"from": "gpt",
"value": "using System;\nusing System.Linq;\nusing JetBrains.Annotations;\nusing JetBrains.Application.Components;\nusing JetBrains.ProjectModel;\nusing JetBrains.ReSharper.Psi;\nusing JetBrains.ReSharper.Psi.Extensions... | c# | chosen |
[
{
"from": "human",
"value": "Add mania sample conversion test\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 AutoSave on run feature - toggle\n"
},
{
"from": "gpt",
"value": "using UnityEngine;\nusing UnityEditor;\nusing UnityEditor.SceneManagement;\n\n[InitializeOnLoad]\npublic class AutoSaveOnRunMenuItem\n{\n public const string MenuName = \"Tools/Autosave On Run\... | c# | chosen |
[
{
"from": "human",
"value": "Add vehicleType into Command Parameter Types.\n\n#191"
},
{
"from": "gpt",
"value": "// SampSharp\n// Copyright 2017 Tim Potze\n// \n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the Licen... | c# | chosen |
[
{
"from": "human",
"value": "Add useful extensions for tree operations\n"
},
{
"from": "gpt",
"value": "using System.Linq;\nnamespace slang.Lexing.Trees\n{\n public static class TreeExtensions\n {\n public static Tree AttachChild(this Tree parent, Tree child)\n {\n ... | c# | chosen |
[
{
"from": "system",
"value": "Increase version number to 1.1\n"
},
{
"from": "human",
"value": "//-----------------------------------------------------------------------\n// <copyright file=\"AssemblyInfo.Shared.cs\" company=\"SonarSource SA and Microsoft Corporation\">\n// Copyright (c) Sona... | c# | chosen |
[
{
"from": "human",
"value": "Add extension method to prepend content to a TagHelperContent\n"
},
{
"from": "gpt",
"value": "namespace BootstrapTagHelpers {\n using Microsoft.AspNet.Razor.Runtime.TagHelpers;\n\n public static class TagHelperContentExtensions {\n\n public static void ... | c# | chosen |
[
{
"from": "human",
"value": "Fix hang in host tests due to test parallelization\n\nThis change disables test parallelization in the\nPowerShellEditorServices.Test.Host project to avoid a test hang caused by\ntwo test simultaneously choosing the same \"random\" port numbers for their\ntests. We currently ca... | c# | chosen |
[
{
"from": "human",
"value": "Validate Tag Helper registration system functionality.\n\n- This involved adding tests to cover GetTagHelpers methods on the default tag helper descriptor provider.\n\n#70\n"
},
{
"from": "gpt",
"value": "// Copyright (c) Microsoft Open Technologies, Inc. All rights... | c# | chosen |
[
{
"from": "human",
"value": "Add test for catch hidden mod\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.Collections.Generic;\nusing System.Lin... | c# | chosen |
[
{
"from": "human",
"value": "Add a new interface for the JobService.\n"
},
{
"from": "gpt",
"value": "// ***********************************************************************\n// Copyright (c) 2017 Dominik Lachance\n//\n// Permission is hereby granted, free of charge, to any person obtaining\... | c# | chosen |
[
{
"from": "human",
"value": "Add simple user state class\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\nnamespace osu.Game.Online.RealtimeMultiplayer\n{\n ... | c# | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.