Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Allow reading certificates from local files
using System.Configuration; using System.IdentityModel.Tokens; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Web.Hosting; namespace Dragon.SecurityServer.Common { public class SecurityHelper { public static X509SigningCredentials CreateSignupCredentialsFromConfig()...
using System.Configuration; using System.IdentityModel.Tokens; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Web.Hosting; namespace Dragon.SecurityServer.Common { public class SecurityHelper { public static X509SigningCredentials CreateSignupCredentialsFromConfig()...
Fix error in unit test from changing the ToString
using compiler.middleend.ir; using NUnit.Framework; namespace NUnit.Tests.MiddleEnd { [TestFixture] public class InstructionTests { [Test] public void ToStringTest() { var inst1 = new Instruction(IrOps.Add, new Operand(Operand.OpType.Constant, 10), new O...
using compiler.middleend.ir; using NUnit.Framework; namespace NUnit.Tests.MiddleEnd { [TestFixture] public class InstructionTests { [Test] public void ToStringTest() { var inst1 = new Instruction(IrOps.Add, new Operand(Operand.OpType.Constant, 10), new O...
Update copyright statement to 2014
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("To...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("To...
Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
using System.Reflection; [assembly: AssemblyTitle("Autofac.Tests.Integration.Mef")] [assembly: AssemblyDescription("")]
using System.Reflection; [assembly: AssemblyTitle("Autofac.Tests.Integration.Mef")]
Fix a build error of UnityPackage
using System; using EntityNetwork; using EntityNetwork.Unity3D; using UnityEngine; public class ClientEntityFactory : IClientEntityFactory { private static ClientEntityFactory _default; public static ClientEntityFactory Default { get { return _default ?? (_default = new ClientEntityFactory()); } ...
using System; using System.Collections.Concurrent; using EntityNetwork; using EntityNetwork.Unity3D; using UnityEngine; public class ClientEntityFactory : IClientEntityFactory { private static ClientEntityFactory _default; public static ClientEntityFactory Default { get { return _default ?? (_def...
Unify namespace placement with the .Overloads partial class
namespace Moq { using System; using System.CodeDom.Compiler; using System.Reflection; using System.Runtime.CompilerServices; using Moq.Sdk; /// <summary> /// Instantiates mocks for the specified types. /// </summary> [GeneratedCode("Moq", "5.0")] [CompilerGenerated] partial ...
using System; using System.CodeDom.Compiler; using System.Reflection; using System.Runtime.CompilerServices; using Moq.Sdk; namespace Moq { /// <summary> /// Instantiates mocks for the specified types. /// </summary> [GeneratedCode("Moq", "5.0")] [CompilerGenerated] partial class Mock { ...
Revert "Removing 'zzz' from method name"
using System; using System.Linq; namespace Smartrak.Collections.Paging { public static class PagingHelpers { /// <summary> /// Gets a paged list of entities with the total appended to each row in the resultset. This is a faster way of doing things than using 2 seperate queries /// </summary> /// <typeparam ...
using System; using System.Linq; namespace Smartrak.Collections.Paging { public static class PagingHelpers { /// <summary> /// Gets a paged list of entities with the total appended to each row in the resultset. This is a faster way of doing things than using 2 seperate queries /// </summary> /// <typeparam ...
Reduce noise in json output and handle the case the file doesn't exist
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Collections.Generic; using System.IO; using Newtonsoft.Json; using osu.Framework.Allocation; using osu.Game.Tests.Visual; using osu.Game.Tournament.Componen...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Collections.Generic; using System.IO; using Newtonsoft.Json; using osu.Framework.Allocation; using osu.Game.Tests.Visual; using osu.Game.Tournament.Componen...
Add restrictions when creating the movie collection
using MoviesSystem.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace WpfMovieSystem.Views { /// <summary> /// Interaction logic for InsertWindowView.xaml /// </summary> public partial class Insert...
using MoviesSystem.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace WpfMovieSystem.Views { /// <summary> /// Interaction logic for InsertWindowView.xaml /// </summary> public partial class Insert...
Add documentation for show ids.
namespace TraktApiSharp.Objects.Get.Shows { using Basic; public class TraktShowIds : TraktIds { } }
namespace TraktApiSharp.Objects.Get.Shows { using Basic; /// <summary>A collection of ids for various web services, including the Trakt id, for a Trakt show.</summary> public class TraktShowIds : TraktIds { } }
Update json.net to use new MIME, encoding and camelCase formatting
using System; using System.Net.Http; using Newtonsoft.Json; using System.Threading.Tasks; using System.Collections.Generic; using System.Linq; using System.IO; namespace DiplomContentSystem.Requests { public class RequestService { public async Task<Stream> SendRequest(object data) { ...
using System; using System.Net.Http; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System.Threading.Tasks; using System.Collections.Generic; using System.Linq; using System.IO; namespace DiplomContentSystem.Requests { public class RequestService { public async Task<Stream> SendReque...
Make the implementation method private.
#region Copyright and license information // Copyright 2010-2011 Jon Skeet // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 ...
#region Copyright and license information // Copyright 2010-2011 Jon Skeet // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 ...
Fix CommandConnection methods in Test
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Mycroft; using System.IO; using System.Diagnostics; namespace Mycroft.Tests { [TestClass] public class TestCommandConnection { ...
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Mycroft; using System.IO; using System.Diagnostics; namespace Mycroft.Tests { [TestClass] public class TestCommandConnection { ...
Fix deserialization of RegEx enabled properties
using System; using Newtonsoft.Json; namespace Archetype.Models { public class ArchetypePreValueProperty { [JsonProperty("alias")] public string Alias { get; set; } [JsonProperty("remove")] public bool Remove { get; set; } [JsonProperty("collapse")] public boo...
using System; using Newtonsoft.Json; namespace Archetype.Models { public class ArchetypePreValueProperty { [JsonProperty("alias")] public string Alias { get; set; } [JsonProperty("remove")] public bool Remove { get; set; } [JsonProperty("collapse")] public boo...
Add flush for mock channel
namespace FunctionalTestUtils { using System; using System.Collections.Generic; using Microsoft.ApplicationInsights.Channel; public class BackTelemetryChannel : ITelemetryChannel { private IList<ITelemetry> buffer; public BackTelemetryChannel() { this.buffer = ...
namespace FunctionalTestUtils { using System; using System.Collections.Generic; using Microsoft.ApplicationInsights.Channel; public class BackTelemetryChannel : ITelemetryChannel { private IList<ITelemetry> buffer; public BackTelemetryChannel() { this.buffer = ...
Set nuget package version to 2.0.0-beta1
using System.Reflection; [assembly: AssemblyCompany("Andrew Davey")] [assembly: AssemblyProduct("Cassette")] [assembly: AssemblyCopyright("Copyright © 2011 Andrew Davey")] // NOTE: When changing this version, also update Cassette.MSBuild\Cassette.targets to match. [assembly: AssemblyInformationalVersion("2.0....
using System.Reflection; [assembly: AssemblyCompany("Andrew Davey")] [assembly: AssemblyProduct("Cassette")] [assembly: AssemblyCopyright("Copyright © 2011 Andrew Davey")] [assembly: AssemblyInformationalVersion("2.0.0-beta1")] [assembly: AssemblyVersion("2.0.0.*")] [assembly: AssemblyFileVersion("2.0.0.0"...
Remove redundant configuration loading of diagnostics configuration
using System; using System.Collections.Generic; using System.IO; using System.Text; using Newtonsoft.Json; namespace DotVVM.Framework.Diagnostics { public class DotvvmDiagnosticsConfiguration { public DotvvmDiagnosticsConfiguration() { LoadConfiguration(); } priva...
using System; using System.Collections.Generic; using System.IO; using System.Text; using Newtonsoft.Json; namespace DotVVM.Framework.Diagnostics { public class DotvvmDiagnosticsConfiguration { public DotvvmDiagnosticsConfiguration() { LoadConfiguration(); } priva...
Exclude Cake files from line span mapping
using System; using System.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using OmniSharp.Models; namespace OmniSharp.Helpers { public static class LocationExtensions { public static QuickFix GetQuickFix(this Location location, OmniSharpWorkspace workspace) { if ...
using System; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using OmniSharp.Models; namespace OmniSharp.Helpers { public static class LocationExtensions { public static QuickFix GetQuickFix(this Location location, OmniSharpWorkspace workspace) ...
Improve way how fixture is bootup.
using System.Linq; using Microsoft.Extensions.Configuration; using Slp.Evi.Storage.Database; using Slp.Evi.Storage.Database.Vendor.MsSql; using Xunit; namespace Slp.Evi.Test.System.Sparql.Vendor { public sealed class MsSqlSparqlFixture : SparqlFixture { public MsSqlSparqlFixture() { ...
using System.Linq; using Microsoft.Extensions.Configuration; using Slp.Evi.Storage.Database; using Slp.Evi.Storage.Database.Vendor.MsSql; using Xunit; namespace Slp.Evi.Test.System.Sparql.Vendor { public sealed class MsSqlSparqlFixture : SparqlFixture { public MsSqlSparqlFixture() { ...
Fix compile error with namespace conflict
using System; using UnityEngine; namespace Alensia.Core.UI.Legacy { [Serializable] public class CursorDefinition { public bool Visible; public CursorLockMode LockMode; public Vector2 Hotspot; public Texture2D Image; public void Apply() { Curso...
using System; using UnityEngine; namespace Alensia.Core.UI.Legacy { [Serializable] public class CursorDefinition { public bool Visible; public CursorLockMode LockMode; public Vector2 Hotspot; public Texture2D Image; public void Apply() { Unity...
Change if to switch expression
using AsmResolver.PE.Debug.CodeView; namespace AsmResolver.PE.Debug { /// <summary> /// Provides a default implementation of the <see cref="IDebugDataReader"/> interface. /// </summary> public class DefaultDebugDataReader : IDebugDataReader { /// <inheritdoc /> public IDebugDataSegm...
using AsmResolver.PE.Debug.CodeView; namespace AsmResolver.PE.Debug { /// <summary> /// Provides a default implementation of the <see cref="IDebugDataReader"/> interface. /// </summary> public class DefaultDebugDataReader : IDebugDataReader { /// <inheritdoc /> public IDebugDataSegm...
Replace BinaryFormatter with JsonSerializer due to the former being obsoleted. Tests still fail.
using System.IO; using System.Runtime.Serialization.Formatters.Binary; namespace SimpSim.NET { public class StateSaver { public virtual void SaveMemory(Memory memory, FileInfo file) { Save(memory, file); } public virtual Memory LoadMemory(FileInfo file) { ...
using System.IO; using System.Text.Json; namespace SimpSim.NET { public class StateSaver { public virtual void SaveMemory(Memory memory, FileInfo file) { Save(memory, file); } public virtual Memory LoadMemory(FileInfo file) { return Load<Memory>...
Check that the puzzle has not already been solved.
using UnityEngine; using System.Collections; public class DeskLampPuzzle : Puzzle { private bool isLampOn = false; private bool hasLampBeenTurnedOn = false; private InteractableSwitch lampSwitch; // Use this for initialization public override void Start () { base.Start(); lampSwitch = GetComponent<Intera...
using UnityEngine; using System.Collections; public class DeskLampPuzzle : Puzzle { private bool isLampOn = false; private bool hasLampBeenTurnedOn = false; private InteractableSwitch lampSwitch; // Use this for initialization public override void Start () { base.Start(); lampSwitch = GetComponent<Intera...
Fix order of games when calculating ratings
using System.Collections.Generic; using System.Linq; namespace EloWeb.Models { public class Games { public enum GamesSortOrder { MostRecentFirst = 1, MostRecentLast = 2 } private static List<Game> _games = new List<Game>(); public static void I...
using System.Collections.Generic; using System.Linq; namespace EloWeb.Models { public class Games { public enum GamesSortOrder { MostRecentFirst = 1, MostRecentLast = 2 } private static List<Game> _games = new List<Game>(); public static void I...
Fix issue with tagHelper that requries field or property to target for
@using System.Globalization @using Microsoft.AspNetCore.Builder @using Microsoft.AspNetCore.Http @using Microsoft.AspNetCore.Localization @using Microsoft.Extensions.Options @inject IViewLocalizer Localizer @inject IOptions<RequestLocalizationOptions> LocOptions @{ var cultureItems = new SelectList(LocOptions.Va...
@using System.Globalization @using Microsoft.AspNetCore.Builder @using Microsoft.AspNetCore.Http @using Microsoft.AspNetCore.Localization @using Microsoft.Extensions.Options @inject IViewLocalizer Localizer @inject IOptions<RequestLocalizationOptions> LocOptions @{ var cultureItems = new SelectList(LocOptions.Va...
Correct AssemblyProduct name from Security to Credentials
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyConfigurat...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyConfigurat...
Drop the Xamarin copyright after the CLA has been signed to contribute this back to Microsoft
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Mi...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Mi...
Remove no longer needed display name fallback
using Arkivverket.Arkade.Core.Base.Addml.Processes; using Arkivverket.Arkade.Core.Resources; using Arkivverket.Arkade.Core.Util; namespace Arkivverket.Arkade.Core.Base { public static class ArkadeTestNameProvider { public static string GetDisplayName(IArkadeTest arkadeTest) { TestId...
using Arkivverket.Arkade.Core.Resources; using Arkivverket.Arkade.Core.Util; namespace Arkivverket.Arkade.Core.Base { public static class ArkadeTestNameProvider { public static string GetDisplayName(IArkadeTest arkadeTest) { TestId testId = arkadeTest.GetId(); string te...
Add Scripts section and Bootstrap styling.
<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> </head> <body> <div> @RenderBody() </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> @Styles.Render("~/Content/bootstrap.min.css") </head> <body> <div> @RenderBody() </div> @RenderSection("Scripts", false) </bo...
Use the correct namespace on the static content module.
using System; using System.IO; using Mango; // // This the default StaticContentModule that comes with all Mango apps // if you do not wish to serve any static content with Mango you can // remove its route handler from <YourApp>.cs's constructor and delete // this file. // // All Content placed on the Conten...
using System; using System.IO; using Mango; // // This the default StaticContentModule that comes with all Mango apps // if you do not wish to serve any static content with Mango you can // remove its route handler from <YourApp>.cs's constructor and delete // this file. // // All Content placed on the Conten...
Fix for several handlers for one message in projection group
using System; using System.Collections.Generic; namespace GridDomain.CQRS.Messaging.MessageRouting { public class ProjectionGroup: IProjectionGroup { private readonly IServiceLocator _locator; readonly Dictionary<Type, List<Action<object>>> _handlers = new Dictionary<Type, List<Action<object>>>...
using System; using System.Collections.Generic; using System.Linq; namespace GridDomain.CQRS.Messaging.MessageRouting { public class ProjectionGroup: IProjectionGroup { private readonly IServiceLocator _locator; readonly Dictionary<Type, List<Action<object>>> _handlers = new Dictionary<Type, Li...
Use await um command tests
using Lime.Protocol; using NSubstitute; using NUnit.Framework; using Shouldly; using System; using System.Threading; using System.Threading.Tasks; namespace Takenet.MessagingHub.Client.Test { [TestFixture] internal class MessagingHubClientTests_SendCommand : MessagingHubClientTestBase { [SetUp] ...
using Lime.Protocol; using NSubstitute; using NUnit.Framework; using Shouldly; using System; using System.Threading; using System.Threading.Tasks; namespace Takenet.MessagingHub.Client.Test { [TestFixture] internal class MessagingHubClientTests_SendCommand : MessagingHubClientTestBase { [SetUp] ...
Fix beatmap potentially changing in test scene
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Osu; using osu.Game.Rulesets.Osu.Beatmaps; using osu.Game.Scr...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Osu; using osu.Game.Screens.Edit; using osu.Game.Screens.Edit...
Use the actual db data
using BatteryCommander.Web.Controllers; using BatteryCommander.Web.Services; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace BatteryCommander.Web.Models { public class NavigationViewComponent : ViewComponent { private readonly Dat...
using BatteryCommander.Web.Controllers; using BatteryCommander.Web.Services; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Models { public class NavigationViewComponent : ViewComponent { p...
Make sure Jasper MessageId goes across the wire
using System.Text; using Confluent.Kafka; using Jasper.Transports; namespace Jasper.ConfluentKafka { public class KafkaTransportProtocol<TKey, TVal> : ITransportProtocol<Message<TKey, TVal>> { public Message<TKey, TVal> WriteFromEnvelope(Envelope envelope) => new Message<TKey, TVal> ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Confluent.Kafka; using Jasper.Transports; namespace Jasper.ConfluentKafka { public class KafkaTransportProtocol<TKey, TVal> : ITransportProtocol<Message<TKey, TVal>> { private const string JasperMessageIdHeader ...
Remove unused field for now to appease inspectcode
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics.Sprites; using osu.Game.Online.API.Requests.Responses; namespace osu.Game.Beatmaps.Drawables.Cards.Buttons { public class DownloadButton...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics.Sprites; using osu.Game.Online.API.Requests.Responses; namespace osu.Game.Beatmaps.Drawables.Cards.Buttons { public class DownloadButton...
Update Lists migrations for Autoroute
using Orchard.ContentManagement.MetaData; using Orchard.Core.Contents.Extensions; using Orchard.Data.Migration; namespace Orchard.Lists { public class Migrations : DataMigrationImpl { public int Create() { ContentDefinitionManager.AlterTypeDefinition("List", cfg=>cfg ...
using Orchard.ContentManagement.MetaData; using Orchard.Core.Contents.Extensions; using Orchard.Data.Migration; namespace Orchard.Lists { public class Migrations : DataMigrationImpl { public int Create() { ContentDefinitionManager.AlterTypeDefinition("List", cfg=>cfg ...
Add missing resource base class
using HalKit.Json; using HalKit.Models.Response; using System.Collections.Generic; using System.Runtime.Serialization; namespace GogoKit.Models.Response { /// <summary> /// A carrier (e.g. UPS) that will collect tickets that are to be delivered. /// </summary> /// <remarks>See http://developer.viagogo...
using HalKit.Json; using HalKit.Models.Response; using System.Collections.Generic; using System.Runtime.Serialization; namespace GogoKit.Models.Response { /// <summary> /// A carrier (e.g. UPS) that will collect tickets that are to be delivered. /// </summary> /// <remarks>See http://developer.viagogo...
Create server side API for single multiple answer question
using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRepository { private readonly TrappistDbContext _dbContext...
using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRepository { private readonly TrappistDbContext _dbContext...
Fix Areas property is not deserialized, In the return value of the GetRichMenuListAsync method.
namespace Line.Messaging { /// <summary> /// Rich menu response object. /// https://developers.line.me/en/docs/messaging-api/reference/#rich-menu-response-object /// </summary> public class ResponseRichMenu : RichMenu { /// <summary> /// Rich menu ID /// </summary> ...
namespace Line.Messaging { /// <summary> /// Rich menu response object. /// https://developers.line.me/en/docs/messaging-api/reference/#rich-menu-response-object /// </summary> public class ResponseRichMenu : RichMenu { /// <summary> /// Rich menu ID /// </summary> ...
Patch out the Tracescope for as far as possible when applicable.
using System; namespace Staxel.Trace { public struct TraceScope : IDisposable { public TraceKey Key; public TraceScope(TraceKey key) { Key = key; TraceRecorder.Enter(Key); } public void Dispose() { TraceRecorder.Leave(Key); } } }
using System; using System.Diagnostics; using System.Runtime; using System.Runtime.CompilerServices; namespace Staxel.Trace { public struct TraceScope : IDisposable { public TraceKey Key; [TargetedPatchingOptOut("")] [MethodImpl(MethodImplOptions.AggressiveInlining)] public TraceS...
Use SetUp for tests, add test for clearing children
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System; using NUnit.Framework; using osu.Framework.Graphics.Containers; namespace osu.Framework.Tests.Visual.Containers { public class Test...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System; using NUnit.Framework; using osu.Framework.Graphics.Containers; namespace osu.Framework.Tests.Visual.Containers { public class Test...
Enable pattern helper as equivalent of component helper
using System; using System.Collections.Generic; using System.Linq; using Veil; using Veil.Helper; namespace NitroNet.ViewEngine.TemplateHandler { internal class ComponentHelperHandler : IHelperHandler { private readonly INitroTemplateHandler _handler; public ComponentHelperHandler(INitroTempla...
using System; using System.Collections.Generic; using System.Linq; using Veil; using Veil.Helper; namespace NitroNet.ViewEngine.TemplateHandler { internal class ComponentHelperHandler : IHelperHandler { private readonly INitroTemplateHandler _handler; public ComponentHelperHandler(INitroTempla...
Make the CackeKeyPrefix protected instead of Public
using System; namespace NHibernate.Sessions.Operations { public abstract class AbstractCachedDatabaseQuery<T> : DatabaseOperation { protected abstract void ConfigureCache(CacheConfig cacheConfig); protected abstract T QueryDatabase(ISessionManager sessionManager); public virtual string CacheKeyPref...
using System; namespace NHibernate.Sessions.Operations { public abstract class AbstractCachedDatabaseQuery<T> : DatabaseOperation { protected abstract void ConfigureCache(CacheConfig cacheConfig); protected abstract T QueryDatabase(ISessionManager sessionManager); protected virtual string CacheKeyP...
Create generic invoke method for RPC
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Collections.Specialized; using Newtonsoft.Json; using System.IO; namespace Snowflake.Core.EventDelegate { public c...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Collections.Specialized; using Newtonsoft.Json; using System.IO; namespace Snowflake.Core.EventDelegate { public c...
Fix uri mapper return invalid uri
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Navigation; namespace Postolego { public class PostolegoMapper : UriMapperBase { public override Uri MapUri(Uri uri) { var tempUri = HttpUt...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Navigation; namespace Postolego { public class PostolegoMapper : UriMapperBase { public override Uri MapUri(Uri uri) { var tempUri = HttpUt...
Make sure date processing is accurate
using System; using Humanizer; namespace Repack { internal class Program { public static void Main(string[] args) { Console.WriteLine("Usage: repack [date]"); Console.WriteLine("Prints how long it is until your birthday."); Console.WriteLine("If you don't ...
using System; using Humanizer; namespace Repack { internal class Program { public static void Main(string[] args) { Console.WriteLine("Usage: repack [date]"); Console.WriteLine("Prints how long it is until your birthday."); Console.WriteLine("If you don't ...
Use at least a password that has char that needs to be encoded so that that is tested.
namespace MyCouch.IntegrationTests { internal static class TestClientFactory { internal static IClient CreateDefault() { return new Client("http://mycouchtester:1q2w3e4r@localhost:5984/" + TestConstants.TestDbName); } } }
using System; namespace MyCouch.IntegrationTests { internal static class TestClientFactory { internal static IClient CreateDefault() { return new Client("http://mycouchtester:" + Uri.EscapeDataString("p@ssword") + "@localhost:5984/" + TestConstants.TestDbName); } ...
Set id when adding new cinema
using System.Collections.Generic; using Argentum.Core; namespace SilverScreen.Domain { public class Cinema : AggregateBase<CinemaState> { public Cinema(CinemaState state) : base(state) { } private Cinema(string name) { Apply(new CinemaAdded(name)); } public static Cinema Add(stri...
using System; using System.Collections.Generic; using Argentum.Core; namespace SilverScreen.Domain { public class Cinema : AggregateBase<CinemaState> { public Cinema(CinemaState state) : base(state) { } private Cinema(Guid id, string name) { Apply(new CinemaAdded(id, name)); } pu...
Change HttpContext variable to aspnet.HttpContext.
using System; using System.Linq; using System.Threading.Tasks; using System.Web; using SignalR.Abstractions; namespace SignalR.AspNet { public class AspNetHost : HttpTaskAsyncHandler { private readonly PersistentConnection _connection; private static readonly Lazy<bool> _hasAcceptWebSocketReq...
using System; using System.Linq; using System.Threading.Tasks; using System.Web; using SignalR.Abstractions; namespace SignalR.AspNet { public class AspNetHost : HttpTaskAsyncHandler { private readonly PersistentConnection _connection; private static readonly Lazy<bool> _hasAcceptWebSocketReq...
Remove unnecessary room id from leave room request
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading.Tasks; namespace osu.Game.Online.RealtimeMultiplayer { /// <summary> /// An interface defining the spectator server instance. /// </su...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading.Tasks; namespace osu.Game.Online.RealtimeMultiplayer { /// <summary> /// An interface defining the spectator server instance. /// </su...
Add some missing headers to generated .vcproj file.
############################################################################### # Copyright Lewis Baker # Licenced under MIT license. See LICENSE.txt for details. ############################################################################### import cake.path from cake.tools import compiler, script, env, project inc...
############################################################################### # Copyright Lewis Baker # Licenced under MIT license. See LICENSE.txt for details. ############################################################################### import cake.path from cake.tools import compiler, script, env, project inc...
Update in line with other/unspecified switch
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Utils; namespace osu.Game.Overlays.BeatmapListing { [HasOrderedElements] public enum SearchLanguage { [Order(0)] Any, ...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Utils; namespace osu.Game.Overlays.BeatmapListing { [HasOrderedElements] public enum SearchLanguage { [Order(0)] Any, ...
Increase fade-out time of hitobjects in the editor
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using osu.Game.Beatmaps; using osu.Game.Rulesets.Mods; using osu.Game.Rulesets.Osu.UI; using osu.Game.Rulesets.UI; using osuTK; namespa...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using osu.Framework.Graphics; using osu.Game.Beatmaps; using osu.Game.Rulesets.Mods; using osu.Game.Rulesets.Objects....
Return type T for metadata scalars.
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ecologylab.semantics.metadata.scalar { abstract public class MetadataScalarBase<T> { public T value; public static String VALUE_FIELD_NAME = "value"; public MetadataScalar...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ecologylab.semantics.metadata.scalar { abstract public class MetadataScalarBase<T> { public T value; public static String VALUE_FIELD_NAME = "value"; public MetadataScalar...
Change service's start mode to auto
using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration.Install; using System.ServiceProcess; using System.Configuration; namespace SuperSocket.SocketService { [RunInstaller(true)] public partial class SocketServiceInstaller : Installer { private Service...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration.Install; using System.ServiceProcess; using System.Configuration; namespace SuperSocket.SocketService { [RunInstaller(true)] public partial class SocketServiceInstaller : Installer { private Service...
Fix SelectorTab crashing tests after a reload
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Game.Graphics; using osu.Game.Online.Chat; namespace osu.Game.Overlays.Chat.Tabs { public class ChannelSelectorTabItem : C...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Game.Graphics; using osu.Game.Online.Chat; namespace osu.Game.Overlays.Chat.Tabs { public class ChannelSelectorTabItem : C...
Fix a bug that causes the GetProviderNode to return null references.
using System; using System.Collections.Generic; using System.Data.SqlClient; using Nohros.Configuration; namespace Nohros.Data.Providers { public partial class SqlConnectionProvider : IConnectionProviderFactory { #region .ctor /// <summary> /// Constructor implied by the interface /// ...
using System; using System.Collections.Generic; using System.Data.SqlClient; using Nohros.Configuration; namespace Nohros.Data.Providers { public partial class SqlConnectionProvider : IConnectionProviderFactory { #region .ctor /// <summary> /// Constructor implied by the interface /// ...
Add more tests for NH-3408
using System.Linq; using NHibernate.Linq; using NUnit.Framework; namespace NHibernate.Test.NHSpecificTest.NH3408 { public class Fixture : BugTestCase { [Test] public void ProjectAnonymousTypeWithArrayProperty() { using (var session = OpenSession()) using (session.BeginTransaction()) { ...
using System.Collections.Generic; using System.Linq; using NHibernate.Linq; using NUnit.Framework; namespace NHibernate.Test.NHSpecificTest.NH3408 { public class Fixture : BugTestCase { [Test] public void ProjectAnonymousTypeWithArrayProperty() { using (var session = OpenSession()) using (se...
Call the reflection method only if types don't match
using System; using System.Linq; using System.Reflection; using WampSharp.Core.Serialization; using WampSharp.Core.Utilities; namespace WampSharp.V2.Core { public class WampObjectFormatter : IWampFormatter<object> { public static readonly IWampFormatter<object> Value = new WampObjectFormatter(); ...
using System; using System.Linq; using System.Reflection; using WampSharp.Core.Serialization; using WampSharp.Core.Utilities; namespace WampSharp.V2.Core { public class WampObjectFormatter : IWampFormatter<object> { public static readonly IWampFormatter<object> Value = new WampObjectFormatter(); ...
Set spinner tick start time to allow result reverting
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Audio; using osu.Framework.Bindables; using osu.Game.Rulesets.Osu.Judgements; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Osu.Object...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Audio; using osu.Framework.Bindables; using osu.Game.Rulesets.Osu.Judgements; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Osu.Object...
Fix bug when root page would be shown a second time.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace XamarinFormsExtendedSplashPage { public partial class RootPage : ContentPage { public RootPage() { InitializeComponent(); } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace XamarinFormsExtendedSplashPage { public partial class RootPage : ContentPage { public RootPage() { InitializeComponent(); } ...
Make sure unit isn't null
@model Unit <div>@Html.ActionLink(Model.Name, "Index", "Soldiers", new { unit = Model.Id })</div>
@model Unit @if (Model != null) { <div>@Html.ActionLink(Model.Name, "Index", "Soldiers", new { unit = Model.Id })</div> }
Build script now creates individual zip file packages to align with the NuGet packages and semantic versioning.
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18033 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18033 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
Add back a method that was removed bug is required by functional tests.
using System.Collections.Generic; using System.Linq; namespace NuGet.VisualStudio { public static class AggregatePackageSource { public static readonly PackageSource Instance = new PackageSource("(Aggregate source)", Resources.VsResources.AggregateSourceName); public static bool IsAg...
using System.Collections.Generic; using System.Linq; namespace NuGet.VisualStudio { public static class AggregatePackageSource { public static readonly PackageSource Instance = new PackageSource("(Aggregate source)", Resources.VsResources.AggregateSourceName); public static bool IsAg...
Fix bug in DrawArea control
using System; using System.Runtime.Serialization; using SadConsole.UI.Controls; using SadRogue.Primitives; namespace SadConsole.UI.Themes { /// <summary> /// A basic theme for a drawing surface that simply fills the surface based on the state. /// </summary> [DataContract] public class DrawingArea...
using System; using System.Runtime.Serialization; using SadConsole.UI.Controls; using SadRogue.Primitives; namespace SadConsole.UI.Themes { /// <summary> /// A basic theme for a drawing surface that simply fills the surface based on the state. /// </summary> [DataContract] public class DrawingArea...
Remove CommentTest for jpeg test without metadata
using System; using NUnit.Framework; using TagLib.IFD; using TagLib.IFD.Entries; using TagLib.IFD.Tags; using TagLib.Xmp; using TagLib.Tests.Images.Validators; namespace TagLib.Tests.Images { [TestFixture] public class JpegNoMetadataTest { [Test] public void Test () { ImageTest.Run ("sample_no_metadata.jpg...
using System; using NUnit.Framework; using TagLib.IFD; using TagLib.IFD.Entries; using TagLib.IFD.Tags; using TagLib.Xmp; using TagLib.Tests.Images.Validators; namespace TagLib.Tests.Images { [TestFixture] public class JpegNoMetadataTest { [Test] public void Test () { ImageTest.Run ("sample_no_metadata.jpg...
Convert size parameter from int to long
using Azure.Test.PerfStress; using CommandLine; namespace Azure.Storage.Blobs.PerfStress.Core { public class SizeOptions : PerfStressOptions { [Option('s', "size", Default = 10 * 1024, HelpText = "Size of message (in bytes)")] public int Size { get; set; } } }
using Azure.Test.PerfStress; using CommandLine; namespace Azure.Storage.Blobs.PerfStress.Core { public class SizeOptions : PerfStressOptions { [Option('s', "size", Default = 10 * 1024, HelpText = "Size of message (in bytes)")] public long Size { get; set; } } }
Remove unused RoleProvider setting from authentication configuration
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; namespace Bonobo.Git.Server.Configuration { public class AuthenticationSettings { public static string MembershipService { get; private set; } public static string RoleProvider { ge...
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; namespace Bonobo.Git.Server.Configuration { public class AuthenticationSettings { public static string MembershipService { get; private set; } static AuthenticationSettings() ...
Fix access denied issue when access process information in RemoteProcessService
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SuperSocket.SocketServiceCore.Command; using System.Diagnostics; namespace RemoteProcessService.Command { public class LIST : ICommand<RemotePrcessSession> { #region ICommand<RemotePrcessSession> Mem...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using SuperSocket.SocketServiceCore.Command; using System.Diagnostics; namespace RemoteProcessService.Command { public class LIST : ICommand<RemotePrcessSession> { #region ICommand<RemotePrcessSession> Mem...
Fix code using old style code-gen factory classes - use GrainClient.GrainFactory
using System; using System.Threading.Tasks; using System.Web.Mvc; using GPSTracker.Common; using GPSTracker.GrainInterface; namespace GPSTracker.Web.Controllers { public class HomeController : Controller { public ActionResult Index() { return View(); } public async ...
using System; using System.Threading.Tasks; using System.Web.Mvc; using GPSTracker.Common; using GPSTracker.GrainInterface; using Orleans; namespace GPSTracker.Web.Controllers { public class HomeController : Controller { public ActionResult Index() { return View(); } ...
Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
using System.Reflection; [assembly: AssemblyTitle("Autofac.Extras.Tests.DomainServices")] [assembly: AssemblyDescription("")]
using System.Reflection; [assembly: AssemblyTitle("Autofac.Extras.Tests.DomainServices")]
Fix behaviour from calling create multiple times
using UnityEngine; using MsgPack; [RequireComponent(typeof (AgentController))] [RequireComponent(typeof (AgentSensor))] public class AgentBehaviour : MonoBehaviour { private LISClient client = new LISClient("myagent"); private AgentController controller; private AgentSensor sensor; private MsgPack.C...
using UnityEngine; using MsgPack; [RequireComponent(typeof (AgentController))] [RequireComponent(typeof (AgentSensor))] public class AgentBehaviour : MonoBehaviour { private LISClient client = new LISClient("myagent"); private AgentController controller; private AgentSensor sensor; private MsgPack.C...
Fix failing at beginning of map
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Rulesets.Catch.Judgements; using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Scoring; using osu.Game.Rulesets.UI; namespace osu.Gam...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Rulesets.Catch.Judgements; using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Scoring; using osu.Game.Rulesets.UI; namespace osu.Gam...
Improve help texts for CLI file generation
using System.Collections.Generic; using CommandLine; using CommandLine.Text; namespace Arkivverket.Arkade.CLI.Options { [Verb("generate", HelpText = "Generate a specified file. Run this command followed by '--help' for more detailed info.")] public class GenerateOptions : OutputOptions { [Option('m...
using System.Collections.Generic; using CommandLine; using CommandLine.Text; namespace Arkivverket.Arkade.CLI.Options { [Verb("generate", HelpText = "Generate a specified file. Run this command followed by '--help' for more detailed info.")] public class GenerateOptions : OutputOptions { [Option('m...
Update Informational Version to 1.1.0-pre2
using System.Reflection; using System.Resources; [assembly: AssemblyCompany( "AvantiPoint, LLC" )] [assembly: AssemblyCopyright( "Copyright © Dan Siegel 2016" )] [assembly: NeutralResourcesLanguage( "en" )] [assembly: AssemblyVersion( "1.1.0.0" )] [assembly: AssemblyFileVersion( "1.1.0.0" )] [assembly: AssemblyInfor...
using System.Reflection; using System.Resources; [assembly: AssemblyCompany( "AvantiPoint, LLC" )] [assembly: AssemblyCopyright( "Copyright © Dan Siegel 2016" )] [assembly: NeutralResourcesLanguage( "en" )] [assembly: AssemblyVersion( "1.1.0.0" )] [assembly: AssemblyFileVersion( "1.1.0.0" )] [assembly: AssemblyInfor...
Update food box item with fibre
using System.Windows.Controls; using System.Windows.Forms; namespace food_tracker { public class FoodBoxItem : ListBoxItem { public int calories { get; set; } public int fats { get; set; } public int saturatedFat { get; set; } public int carbohydrates { get; set; } public int sugar { get; set; } public ...
using System.Windows.Controls; using System.Windows.Forms; namespace food_tracker { public class FoodBoxItem : ListBoxItem { public int calories { get; set; } public int fats { get; set; } public int saturatedFat { get; set; } public int carbohydrates { get; set; } public int sugar { get; set; } public ...
Update ExitCode to long. This is because Windows Containers sometimes exit with 3221225725
using System; // ReSharper disable InconsistentNaming namespace Ductus.FluentDocker.Model.Containers { public sealed class ContainerState { public string Status { get; set; } public bool Running { get; set; } public bool Paused { get; set; } public bool Restarting { get; set; } public bool OO...
using System; // ReSharper disable InconsistentNaming namespace Ductus.FluentDocker.Model.Containers { public sealed class ContainerState { public string Status { get; set; } public bool Running { get; set; } public bool Paused { get; set; } public bool Restarting { get; set; } public bool OO...
Make WalletViewModel private and WalletViewModelBase protected.
using System; using System.Collections.Generic; using System.Text; using WalletWasabi.Gui.Controls.WalletExplorer; using WalletWasabi.Wallets; namespace WalletWasabi.Gui.ViewModels { public abstract class WasabiWalletDocumentTabViewModel : WasabiDocumentTabViewModel { protected WasabiWalletDocumentTabViewModel(str...
using ReactiveUI; using Splat; using System; using System.Reactive.Linq; using WalletWasabi.Gui.Controls.WalletExplorer; using WalletWasabi.Wallets; namespace WalletWasabi.Gui.ViewModels { public abstract class WasabiWalletDocumentTabViewModel : WasabiDocumentTabViewModel { protected WasabiWalletDocumentTabViewMod...
Fix typo and use <see langword=""/>.
using System; namespace Microsoft.TeamFoundation.Authentication { public interface ITokenStore { /// <summary> /// Deletes a <see cref="Token"/> from the underlying storage. /// </summary> /// <param name="targetUri">The key identifying which token is being deleted.</param> ...
using System; namespace Microsoft.TeamFoundation.Authentication { public interface ITokenStore { /// <summary> /// Deletes a <see cref="Token"/> from the underlying storage. /// </summary> /// <param name="targetUri">The key identifying which token is being deleted.</param> ...
Add information about http status codes in the reporting API
 @{ ViewBag.Title = "Reporting API - Introduction"; } <article class="article"> <h1>Introduction to the Reporting API</h1> <p> The Reporting API is based on standard web technologies, web services and XML. Use the Reporting API to extract from TimeLog into intranets, extranets, ...
 @{ ViewBag.Title = "Reporting API - Introduction"; } <article class="article"> <h1>Introduction to the Reporting API</h1> <p> The Reporting API is based on standard web technologies, web services and XML. Use the Reporting API to extract from TimeLog into intranets, extranets, ...
Add ContentType of the response.
using System.Net; namespace LtiLibrary.NetCore.Profiles { public class ToolConsumerProfileResponse { public HttpStatusCode StatusCode { get; set; } public ToolConsumerProfile ToolConsumerProfile { get; set; } } }
using System.Net; namespace LtiLibrary.NetCore.Profiles { public class ToolConsumerProfileResponse { public string ContentType { get; set; } public HttpStatusCode StatusCode { get; set; } public ToolConsumerProfile ToolConsumerProfile { get; set; } } }
Add fix for missing method on interface
using System; namespace Cake.Yarn { /// <summary> /// Yarn Runner command interface /// </summary> public interface IYarnRunnerCommands { /// <summary> /// execute 'yarn install' with options /// </summary> /// <param name="configure">options when running 'yarn insta...
using System; namespace Cake.Yarn { /// <summary> /// Yarn Runner command interface /// </summary> public interface IYarnRunnerCommands { /// <summary> /// execute 'yarn install' with options /// </summary> /// <param name="configure">options when running 'yarn insta...
Make sure logging doesn't cause cross-thread access to the log-file
using System; using System.IO; using System.Threading.Tasks; namespace Ylp.GitDb.Core { public interface ILogger { Task Log(string message); } public class Logger : ILogger { public readonly string FileName; public Logger(string fileName) { FileName = ...
using System; using System.Diagnostics; using System.IO; using System.Threading.Tasks; namespace Ylp.GitDb.Core { public interface ILogger { Task Log(string message); } public class Logger : ILogger { public readonly string FileName; static readonly object LockObj = new ob...
Revert the whitespace change of the auto generated file
//------------------------------------------------------------------------------ // This code was generated by a tool. // // Tool : Bond Compiler 0.4.1.0 // File : ExceptionDetails_types.cs // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. // <auto-generated ...
//------------------------------------------------------------------------------ // This code was generated by a tool. // // Tool : Bond Compiler 0.4.1.0 // File : ExceptionDetails_types.cs // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. // <auto-generated ...
Support all objects for debugger display.
using NUnit.Framework; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace Qowaiv.UnitTests.TestTools { public static class DebuggerDisplayAssert { public static void HasAttribute(Type type...
using NUnit.Framework; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace Qowaiv.UnitTests.TestTools { public static class DebuggerDisplayAssert { public static void HasAttribute(Type type...
Clean up test and reference original issue
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.CSharp8.LayoutRules { using System.Threading; using System.Threading.Tasks; using Microsoft.C...
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.CSharp8.LayoutRules { using System.Threading; using System.Threading.Tasks; using Microsoft.C...
Add failing test for append called several times for string identity
using System; using Marten.Testing.Harness; using Xunit; namespace DocumentDbTests.Bugs { public class Bug_673_multiple_version_assertions: IntegrationContext { [Fact] public void replaces_the_max_version_assertion() { var streamId = Guid.NewGuid(); using (var s...
using System; using Marten.Events; using Marten.Testing.Harness; using Xunit; namespace DocumentDbTests.Bugs { public class Bug_673_multiple_version_assertions: IntegrationContext { [Fact] public void replaces_the_max_version_assertion() { var streamId = Guid.NewGuid(); ...
Fix refactoring provider to correctly handle positions near EOF
using System; using System.Collections.Generic; using System.Linq; namespace NQuery.Authoring.CodeActions { public abstract class CodeRefactoringProvider<T> : ICodeRefactoringProvider where T : SyntaxNode { public IEnumerable<ICodeAction> GetRefactorings(SemanticModel semanticModel, int positi...
using System; using System.Collections.Generic; using System.Linq; namespace NQuery.Authoring.CodeActions { public abstract class CodeRefactoringProvider<T> : ICodeRefactoringProvider where T : SyntaxNode { public IEnumerable<ICodeAction> GetRefactorings(SemanticModel semanticModel, int positi...
Fix deserialization of RegEx enabled properties
using System; using Newtonsoft.Json; namespace Archetype.Models { public class ArchetypePreValueProperty { [JsonProperty("alias")] public string Alias { get; set; } [JsonProperty("remove")] public bool Remove { get; set; } [JsonProperty("collapse")] public boo...
using System; using Newtonsoft.Json; namespace Archetype.Models { public class ArchetypePreValueProperty { [JsonProperty("alias")] public string Alias { get; set; } [JsonProperty("remove")] public bool Remove { get; set; } [JsonProperty("collapse")] public boo...
Fix en dashboard. Uso de la clase de configuracion.
using System.Configuration; using System.IO; using System.Linq; using System.Web.Helpers; using System.Web.Mvc; using Topppro.WebSite.Areas.Humanist.Models; namespace Topppro.WebSite.Areas.Humanist.Controllers { [Authorize] public class DashboardController : Controller { private readon...
using System.IO; using System.Linq; using System.Web.Helpers; using System.Web.Mvc; using Topppro.WebSite.Areas.Humanist.Models; using Topppro.WebSite.Settings; namespace Topppro.WebSite.Areas.Humanist.Controllers { [Authorize] public class DashboardController : Controller { public Act...
Fix bug in the repeater step validation
#load "00_constants.csx" using DotvvmAcademy.Validation.Dothtml.Unit; using DotvvmAcademy.Validation.Unit; public DothtmlUnit Unit { get; set; } = new DothtmlUnit(); Unit.GetDirective("/@viewModel") .RequireTypeArgument(ViewModelName); var repeater = Unit.GetControl("/html/body/dot:Repeater"); { repeater.Ge...
#load "00_constants.csx" using DotvvmAcademy.Validation.Dothtml.Unit; using DotvvmAcademy.Validation.Unit; public DothtmlUnit Unit { get; set; } = new DothtmlUnit(); Unit.GetDirective("/@viewModel") .RequireTypeArgument(ViewModelName); var repeater = Unit.GetControl("/html/body/dot:Repeater"); { repeater.Ge...
Update attribute summary and example
using System; namespace EasyButtons { /// <summary> /// Attribute to create a button in the inspector for calling the method it is attached to. /// The method must have no arguments. /// </summary> /// <example> /// [<see cref="ButtonAttribute"/>] /// void MyMethod() /// { /// ...
using System; namespace EasyButtons { /// <summary> /// Attribute to create a button in the inspector for calling the method it is attached to. /// The method must be public and have no arguments. /// </summary> /// <example> /// [<see cref="ButtonAttribute"/>] /// public void MyMethod() ...
Move diff bar to the right of the line numbers (like in the GitSCC extension)
#region using using System.ComponentModel.Composition; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Utilities; #endregion namespace GitDiffMargin { [Export(typeof (IWpfTextViewMarginProvider))] [Name(EditorDiffMargin.MarginNameConst)] [Order(Before = PredefinedMarginNames.LineN...
#region using using System.ComponentModel.Composition; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Utilities; #endregion namespace GitDiffMargin { [Export(typeof (IWpfTextViewMarginProvider))] [Name(EditorDiffMargin.MarginNameConst)] [Order(After = PredefinedMarginNames.Spacer...
Remove random context cleanup console output
using System; using System.Runtime.InteropServices; namespace LibGPhoto2 { public class Context : Object { [DllImport ("libgphoto2.so")] internal static extern IntPtr gp_context_new (); public Context () { this.handle = new HandleRef (this, gp_context_new ()); } [DllImport ("libgphoto2.so")] int...
using System; using System.Runtime.InteropServices; namespace LibGPhoto2 { public class Context : Object { [DllImport ("libgphoto2.so")] internal static extern IntPtr gp_context_new (); public Context () { this.handle = new HandleRef (this, gp_context_new ()); } [DllImport ("libgphoto2.so")] int...
Add support for `SupportAddress` on `Account` create and update
namespace Stripe { using Newtonsoft.Json; public class AccountBusinessProfileOptions : INestedOptions { [JsonProperty("mcc")] public string Mcc { get; set; } [JsonProperty("name")] public string Name { get; set; } [JsonProperty("primary_color")] public stri...
namespace Stripe { using System; using Newtonsoft.Json; public class AccountBusinessProfileOptions : INestedOptions { /// <summary> /// The merchant category code for the account. MCCs are used to classify businesses based /// on the goods or services they provide. /// <...
Add channel state None (CS_NONE)
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ChannelState.cs" company="Dan Barua"> // (C) Dan Barua and contributors. Licensed under the Mozilla Public License. // </copyright> // ------------------------------------------...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ChannelState.cs" company="Dan Barua"> // (C) Dan Barua and contributors. Licensed under the Mozilla Public License. // </copyright> // ------------------------------------------...
Fix for no soldier foudn on nav component
using BatteryCommander.Web.Controllers; using BatteryCommander.Web.Services; using Microsoft.AspNetCore.Mvc; using System; using System.Threading.Tasks; namespace BatteryCommander.Web.Models { public class NavigationViewComponent : ViewComponent { private readonly Database db; public Soldier ...
using BatteryCommander.Web.Controllers; using BatteryCommander.Web.Services; using Microsoft.AspNetCore.Mvc; using System; using System.Threading.Tasks; namespace BatteryCommander.Web.Models { public class NavigationViewComponent : ViewComponent { private readonly Database db; public Soldier ...
Copy change on the logged in page
@model IdentityServer3.Core.ViewModels.AuthorizeResponseViewModel @{ ViewBag.PageID = "authorize-response"; ViewBag.Title = "Login Successful"; ViewBag.HideSigninLink = "true"; } <h1 class="heading-xlarge">Login successful</h1> <form id="mainForm" method="post" action="@Model.ResponseFormUri"> ...
@model IdentityServer3.Core.ViewModels.AuthorizeResponseViewModel @{ ViewBag.PageID = "authorize-response"; ViewBag.Title = "Login Successful"; ViewBag.HideSigninLink = "true"; } <h1 class="heading-xlarge">Login successful</h1> <form id="mainForm" method="post" action="@Model.ResponseFormUri"> ...
Move request changed for uniformity
using System; using System.Net; using System.Text; using YaR.MailRuCloud.Api.Base.Requests.Repo; namespace YaR.MailRuCloud.Api.Base.Requests.WebM1 { class MoveRequest : BaseRequestJson<WebV2.CopyRequest.Result> { private readonly string _sourceFullPath; private readonly string _destinationPath...
using System; using System.Net; using System.Text; using YaR.MailRuCloud.Api.Base.Requests.Repo; namespace YaR.MailRuCloud.Api.Base.Requests.WebM1 { class MoveRequest : BaseRequestJson<WebV2.CopyRequest.Result> { private readonly string _sourceFullPath; private readonly string _destinationPath...