Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Update to deal with breaking Features change in httpabstraction
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http.Features; namespace Glimpse.Server.Web { public class RequestAuthorizerAllowRemote : IRequestAuthorizer { private readonly IAllowRemoteProvider _allowRemoteProvider; public RequestAuthorizerAllowRemote(IAllowRemoteProvider allowRemotePr...
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http.Features; namespace Glimpse.Server.Web { public class RequestAuthorizerAllowRemote : IRequestAuthorizer { private readonly IAllowRemoteProvider _allowRemoteProvider; public RequestAuthorizerAllowRemote(IAllowRemoteProvider allowRemotePr...
Make a little section of code easier to debug
using System.Linq; using ZBuildLights.Core.Models; namespace ZBuildLights.Core.Services { public class UnassignedLightService : IUnassignedLightService { private readonly IZWaveNetwork _network; public UnassignedLightService(IZWaveNetwork network) { _network = network; ...
using System.Linq; using ZBuildLights.Core.Models; namespace ZBuildLights.Core.Services { public class UnassignedLightService : IUnassignedLightService { private readonly IZWaveNetwork _network; public UnassignedLightService(IZWaveNetwork network) { _network = network; ...
Add `using System` to fix this file being detected as Smalltalk
namespace ValveResourceFormat { public enum VTexFormat { #pragma warning disable 1591 UNKNOWN = 0, DXT1 = 1, DXT5 = 2, I8 = 3, // TODO: Not used in dota RGBA8888 = 4, R16 = 5, // TODO: Not used in dota RG1616 = 6, // TODO: Not used in dota RGBA161...
using System; namespace ValveResourceFormat { public enum VTexFormat { #pragma warning disable 1591 UNKNOWN = 0, DXT1 = 1, DXT5 = 2, I8 = 3, // TODO: Not used in dota RGBA8888 = 4, R16 = 5, // TODO: Not used in dota RG1616 = 6, // TODO: Not used in dota ...
Update assembly info informational version
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("Da...
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("Da...
Compress only the vessel proto. TEST
using Lidgren.Network; using LmpCommon.Message.Types; namespace LmpCommon.Message.Data.Vessel { public class VesselProtoMsgData : VesselBaseMsgData { internal VesselProtoMsgData() { } public int NumBytes; public byte[] Data = new byte[0]; public override VesselMessageType Ves...
using Lidgren.Network; using LmpCommon.Message.Types; namespace LmpCommon.Message.Data.Vessel { public class VesselProtoMsgData : VesselBaseMsgData { internal VesselProtoMsgData() { } public override bool CompressCondition => true; public int NumBytes; public byte[] Data = new...
Revert "Fix for an odd crash we were experiencing"
using System; namespace Xamarin.Forms.Xaml { [ContentProperty("TypeName")] public class TypeExtension : IMarkupExtension<Type> { public string TypeName { get; set; } public Type ProvideValue(IServiceProvider serviceProvider) { if (serviceProvider == null) throw new ArgumentNullException("serviceProvid...
using System; namespace Xamarin.Forms.Xaml { [ContentProperty("TypeName")] public class TypeExtension : IMarkupExtension<Type> { public string TypeName { get; set; } public Type ProvideValue(IServiceProvider serviceProvider) { if (serviceProvider == null) throw new ArgumentNullException("serviceProvid...
Test project model color enforcing.
using System; using NUnit.Framework; using Toggl.Phoebe.Data.NewModels; namespace Toggl.Phoebe.Tests.Data.Models { [TestFixture] public class ProjectModelTest : ModelTest<ProjectModel> { } }
using System; using NUnit.Framework; using Toggl.Phoebe.Data.DataObjects; using Toggl.Phoebe.Data.NewModels; namespace Toggl.Phoebe.Tests.Data.Models { [TestFixture] public class ProjectModelTest : ModelTest<ProjectModel> { [Test] public void TestColorEnforcing () { var...
Decrease number of operations to run to decrease benchmark duration from few hours to about 30 minutes
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="BenchmarkBase.cs" company="Catel development team"> // Copyright (c) 2008 - 2017 Catel development team. All rights reserved. // </copyright> // --------------------------------...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="BenchmarkBase.cs" company="Catel development team"> // Copyright (c) 2008 - 2017 Catel development team. All rights reserved. // </copyright> // --------------------------------...
Clear IsBusy on Wallet load error
using AvalonStudio.Extensibility; using ReactiveUI; using Splat; using System; using System.Linq; using System.Reactive; using System.Reactive.Linq; using System.Threading; using WalletWasabi.Gui.Helpers; using WalletWasabi.Logging; using WalletWasabi.Wallets; namespace WalletWasabi.Gui.Controls.WalletExplorer { publ...
using AvalonStudio.Extensibility; using ReactiveUI; using Splat; using System; using System.Linq; using System.Reactive; using System.Reactive.Linq; using System.Threading; using WalletWasabi.Gui.Helpers; using WalletWasabi.Logging; using WalletWasabi.Wallets; namespace WalletWasabi.Gui.Controls.WalletExplorer { publ...
Update console to show parsing duration
using DemoParser_Core; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DemoParser_Console { class Program { static void Main(string[] args) { Console.WriteLine(DateTime.Now); Stream inputStream = new FileStream(...
using DemoParser_Core; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DemoParser_Console { class Program { static void Main(string[] args) { DateTime begin; DateTime end; Stream inputStream = new FileStr...
Add unit test for all action method on CropController
using System; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using NUnit.Framework; using Oogstplanner.Services; using Oogstplanner.Controllers; using Oogstplanner.Models; using Oogstplanner.Repositories; namespace Oogstplanner.Tests { [TestFixture] public class CropControllerTest...
using System; using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using NUnit.Framework; using Oogstplanner.Services; using Oogstplanner.Controllers; using Oogstplanner.Models; using Oogstplanner.Repositories; namespace Oogstplanner.Tests { [TestFixture] public class CropControllerTest...
Fix login link on register page
@{ ViewBag.Title = "Registreer je vandaag bij de Oogstplanner"; } <div class="flowtype-area"> <!-- START RESPONSIVE RECTANGLE LAYOUT --> <!-- Top bar --> <div id="top"> </div> <!-- Fixed main screen --> <div id="login" class="bg imglogin"> <div class="row"> <div class="mainbox col-md-12 col-sm-12 col-xs-12"...
@{ ViewBag.Title = "Registreer je vandaag bij de Oogstplanner"; } <div class="flowtype-area"> <!-- START RESPONSIVE RECTANGLE LAYOUT --> <!-- Top bar --> <div id="top"> </div> <!-- Fixed main screen --> <div id="login" class="bg imglogin"> <div class="row"> <div class="mainbox col-md-12 col-sm-12 col-xs-12"...
Split the CanCombineTwoNs test code into two line.
using sdmap.Runtime; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; namespace sdmap.test.IntegratedTest { public class NamespaceTest { [Fact] public void CanReferenceOtherInOneNamespace() { var code = "namespace...
using sdmap.Runtime; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; namespace sdmap.test.IntegratedTest { public class NamespaceTest { [Fact] public void CanReferenceOtherInOneNamespace() { var code = "namespace...
Write to console on failed apu write
namespace JAGBE.GB.Computation { internal sealed class Apu { private byte NR50; private byte NR51; private byte NR52; internal void Clear() { this.NR50 = 0; this.NR51 = 0; } internal byte GetRegister(byte num) { ...
using System; namespace JAGBE.GB.Computation { internal sealed class Apu { private byte NR50; private byte NR51; private byte NR52; internal void Clear() { this.NR50 = 0; this.NR51 = 0; } internal byte GetRegister(byte num) ...
Fix lock of scrapes list
using System; using System.Collections.Generic; using System.Text; using MonoTorrent.Client; using MonoTorrent.Common; namespace MonoTorrent.Tracker { public class RequestMonitor { #region Member Variables private SpeedMonitor announces; private SpeedMonitor scrapes; ...
using System; using System.Collections.Generic; using System.Text; using MonoTorrent.Client; using MonoTorrent.Common; namespace MonoTorrent.Tracker { public class RequestMonitor { #region Member Variables private SpeedMonitor announces; private SpeedMonitor scrapes; ...
Fix broken (admittedly crappy) test.
using NUnit.Framework; using TeamCityBuildChanges.Output; using TeamCityBuildChanges.Testing; namespace TeamCityBuildChanges.Tests { [TestFixture] public class HtmlOutputTests { [Test] public void CanRenderSimpleTemplate() { var result = new RazorOutputRenderer(@".\temp...
using System.Globalization; using NUnit.Framework; using TeamCityBuildChanges.Output; using TeamCityBuildChanges.Testing; namespace TeamCityBuildChanges.Tests { [TestFixture] public class HtmlOutputTests { [Test] public void CanRenderSimpleTemplate() { var result = new ...
Set proper version for WixUiClient
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("Sh...
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("Sh...
Add dynamic method constuctor codes (didn't use it yet, other developer may learn something from the function)
using System; using System.Collections.Generic; using System.Linq.Expressions; namespace LiteNetLibManager.Utils { public class Reflection { private static readonly Dictionary<string, ObjectActivator> objectActivators = new Dictionary<string, ObjectActivator>(); private static string tempTypeN...
using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Reflection.Emit; namespace LiteNetLibManager.Utils { public class Reflection { private static readonly Dictionary<string, Func<object>> expressionActivators = new Dictionary<string, Func<object>>(); pri...
Remove illegal await in catch block.
using System.Net.Sockets; using System.Threading.Tasks; using Version = Msg.Core.Versioning.Version; using System.Linq; namespace Msg.Infrastructure.Server { class ClientRequestProcessor { readonly AmqpSettings settings; public ClientRequestProcessor (AmqpSettings settings) { this.settings = settings; } ...
using System.Net.Sockets; using System.Threading.Tasks; using Version = Msg.Core.Versioning.Version; using System.Linq; namespace Msg.Infrastructure.Server { class ClientRequestProcessor { readonly AmqpSettings settings; public ClientRequestProcessor (AmqpSettings settings) { this.settings = settings; } ...
Store the already serialised RaygunMessage object.
using System.Collections.Generic; using Mindscape.Raygun4Net.Messages; namespace Mindscape.Raygun4Net.Storage { public interface IRaygunOfflineStorage { /// <summary> /// Persist the <paramref name="message"/>> to local storage. /// </summary> /// <param name="message">The error report to store loc...
using System.Collections.Generic; using Mindscape.Raygun4Net.Messages; namespace Mindscape.Raygun4Net.Storage { public interface IRaygunOfflineStorage { /// <summary> /// Persist the <paramref name="message"/>> to local storage. /// </summary> /// <param name="message">The serialized error report t...
Make the include file adder well known in the interface. We may have to add IncludeFiles too in a bit.
 namespace LinqToTTreeInterfacesLib { /// <summary> /// Interface for implementing an object that will contain a complete single query /// </summary> public interface IGeneratedCode { /// <summary> /// Add a new statement to the current spot where the "writing" currsor is p...
 namespace LinqToTTreeInterfacesLib { /// <summary> /// Interface for implementing an object that will contain a complete single query /// </summary> public interface IGeneratedCode { /// <summary> /// Add a new statement to the current spot where the "writing" currsor is p...
Fix null reference exception when spawning Fungus objects in Unity 5.1
using UnityEngine; using UnityEditor; using System.IO; using System.Collections; namespace Fungus { public class FlowchartMenuItems { [MenuItem("Tools/Fungus/Create/Flowchart", false, 0)] static void CreateFlowchart() { GameObject go = SpawnPrefab("Flowchart"); go.transform.position = Vector3.zero; }...
using UnityEngine; using UnityEditor; using System.IO; using System.Collections; namespace Fungus { public class FlowchartMenuItems { [MenuItem("Tools/Fungus/Create/Flowchart", false, 0)] static void CreateFlowchart() { GameObject go = SpawnPrefab("Flowchart"); go.transform.position = Vector3.zero; }...
Move variable declaration to the top of method
using System; class Solution { static void Main() { int b; double c, s = 0.0; string line; while ((line = Console.ReadLine()) != null) { string[] numbers = line.Split(' '); b = Convert.ToInt16(numbers[1]); c = Convert.ToDouble(numbers[2]); ...
using System; class Solution { static void Main() { int b; double c, s = 0.0; string line; string[] numbers; while ((line = Console.ReadLine()) != null) { numbers = line.Split(' '); b = Convert.ToInt16(numbers[1]); c = Convert.ToDouble(nu...
Fix a typo in the GitHub.UI.Reactive assembly title
using System.Reflection; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Markup; [assembly: AssemblyTitle("GitHub.UI.Recative")] [assembly: AssemblyDescription("GitHub flavored WPF styles and controls that require Rx and RxUI")] [assembly: Guid("885a491c-1d13-49e7-baa6-d61f424befcb")]...
using System.Reflection; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Markup; [assembly: AssemblyTitle("GitHub.UI.Reactive")] [assembly: AssemblyDescription("GitHub flavored WPF styles and controls that require Rx and RxUI")] [assembly: Guid("885a491c-1d13-49e7-baa6-d61f424befcb")]...
Use friendly url while sending transfer
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Neblina.Api.Core; using Neblina.Api.Models.TransferViewModels; using Neblina.Api.Core.Models; namespace Neblina.Api.Controllers { [Route("transfers")] public class...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Neblina.Api.Core; using Neblina.Api.Models.TransferViewModels; using Neblina.Api.Core.Models; namespace Neblina.Api.Controllers { [Route("transfers")] public class...
Fix a bug that admiral information is not updated.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Grabacr07.KanColleWrapper; using Grabacr07.KanColleWrapper.Models; using Livet; using Livet.EventListeners; namespace Grabacr07.KanColleViewer.ViewModels { public class AdmiralViewModel : ViewMod...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Grabacr07.KanColleWrapper; using Grabacr07.KanColleWrapper.Models; using Livet; using Livet.EventListeners; namespace Grabacr07.KanColleViewer.ViewModels { public class AdmiralViewMod...
Make pagination list result enumerable.
namespace TraktApiSharp.Objects.Basic { using System.Collections.Generic; /// <summary> /// Represents results of requests supporting pagination.<para /> /// Contains the current page, the item limitation per page, the total page count, the total item count /// and can also contain the total user ...
namespace TraktApiSharp.Objects.Basic { using System.Collections; using System.Collections.Generic; /// <summary> /// Represents results of requests supporting pagination.<para /> /// Contains the current page, the item limitation per page, the total page count, the total item count /// and ca...
Add view for news details route
@model PhotoLife.ViewModels.News.NewsDetailsViewModel @{ ViewBag.Title = "NewsDetails"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>NewsDetails</h2> <div> <h4>NewsDetailsViewModel</h4> <hr /> <dl class="dl-horizontal"> <dt> @Html.DisplayNameFor(model => model.Title) ...
@model PhotoLife.ViewModels.News.NewsDetailsViewModel @{ ViewBag.Title = "NewsDetails"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>NewsDetails</h2> <div> <h4>NewsDetailsViewModel</h4> <hr /> <dl class="dl-horizontal"> <dt> @Html.DisplayNameFor(model => model.Title) ...
Increase timeout from 20s to 2 minutes.
using System; using System.Diagnostics; using System.Threading; namespace RedGate.AppHost.Server { internal class StartProcessWithTimeout : IProcessStartOperation { private readonly IProcessStartOperation m_WrappedProcessStarter; private static readonly TimeSpan s_TimeOut = TimeSpan...
using System; using System.Diagnostics; using System.Threading; namespace RedGate.AppHost.Server { internal class StartProcessWithTimeout : IProcessStartOperation { private readonly IProcessStartOperation m_WrappedProcessStarter; private static readonly TimeSpan s_TimeOut = TimeSpan...
Change calling convention of ImGuiInputTextCallback
namespace ImGuiNET { public unsafe delegate int ImGuiInputTextCallback(ImGuiInputTextCallbackData* data); }
using System.Runtime.InteropServices; namespace ImGuiNET { [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public unsafe delegate int ImGuiInputTextCallback(ImGuiInputTextCallbackData* data); }
Update test RP to include client id in change email / password links
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Test relying party</title> </head> <body> <div> @if (User.Identity.IsAuthenticated) { <span><a href="https://localhost:44334/accoun...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Test relying party</title> </head> <body> <div> @if (User.Identity.IsAuthenticated) { <span><a href="https://localhost:44334/accoun...
Make XNAControls internals visible to XNAControls.Test
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("XN...
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("XN...
Fix double Ergo auth request header problem
using System.Text; namespace Miningcore.Blockchain.Ergo; public partial class ErgoClient { public Dictionary<string, string> RequestHeaders { get; } = new(); private Task PrepareRequestAsync(HttpClient client, HttpRequestMessage request, StringBuilder url, CancellationToken ct) { foreach(var pair...
using System.Text; namespace Miningcore.Blockchain.Ergo; public partial class ErgoClient { public Dictionary<string, string> RequestHeaders { get; } = new(); private Task PrepareRequestAsync(HttpClient client, HttpRequestMessage request, StringBuilder url, CancellationToken ct) { foreach(var pair...
Update dotnet tests for 3.1.302.
using OmniSharp.Services; using TestUtility; using Xunit; using Xunit.Abstractions; namespace OmniSharp.Tests { public class DotNetCliServiceFacts : AbstractTestFixture { public DotNetCliServiceFacts(ITestOutputHelper output) : base(output) { } [Fact] publi...
using OmniSharp.Services; using TestUtility; using Xunit; using Xunit.Abstractions; namespace OmniSharp.Tests { public class DotNetCliServiceFacts : AbstractTestFixture { public DotNetCliServiceFacts(ITestOutputHelper output) : base(output) { } [Fact] publi...
Fix typo in XML doc
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; namespace Microsoft.AspNetCore.Mvc.ApplicationParts { /// <summary> /// A provider for a given <typeparamref ...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; namespace Microsoft.AspNetCore.Mvc.ApplicationParts { /// <summary> /// A provider for a given <typeparamref ...
Add open folder button to open currently selected tournament
// 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.Framework.Graphics; using osu.Game.Graphics.UserInterface; using osu.Game.Tournament.IO; namespace osu.Game.Tournament.Screens....
// 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.Framework.Graphics; using osu.Game.Graphics.UserInterface; using osu.Game.Tournament.IO; namespace osu.Game.Tournament.Screens....
Throw an exception if a popover is attempted to be shown without a parent `PopoverContainer`
// 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; using osu.Framework.Graphics.Cursor; #nullable enable namespace osu.Framework.Extensions { public static class PopoverExtensions {...
// 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; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; #nullable enable namespace osu.Framework.Extensions { public static class PopoverEx...
Change 3M performance test to 5M
using System; using System.Collections.Generic; using System.Linq; namespace Silverpop.Core.Performance { internal class Program { private static void Main(string[] args) { var tagValue = new string( Enumerable.Repeat("ABC", 1000) .SelectMany(x =...
using System; using System.Collections.Generic; using System.Linq; namespace Silverpop.Core.Performance { internal class Program { private static void Main(string[] args) { var tagValue = new string( Enumerable.Repeat("ABC", 1000) .SelectMany(x =...
Add a space between "Test" and "Email" in the UI.
using BTCPayServer.Services.Mails; using Microsoft.AspNetCore.Mvc.Rendering; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace BTCPayServer.Models.ServerViewModels { public class EmailsViewModel { pub...
using BTCPayServer.Services.Mails; using Microsoft.AspNetCore.Mvc.Rendering; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace BTCPayServer.Models.ServerViewModels { public class EmailsViewModel { pub...
Load images in the test folder
using System; using System.IO; using System.Linq; using NUnit.Framework; namespace photo.exif.unit.test { [TestFixture("Images/Canon PowerShot SX500 IS.JPG")] [TestFixture("Images/Nikon COOLPIX P510.JPG")] [TestFixture("Images/Panasonic Lumix DMC-FZ200.JPG")] [TestFixture("Images/Samsung SII...
using System; using System.IO; using System.Linq; using NUnit.Framework; namespace photo.exif.unit.test { public class ParserTest { public ParserTest() { _parser = new Parser(); } private readonly Parser _parser; static string[] paths = Dir...
Call base Handle if Decoratee not handled
namespace Miruken.Callback { using System; public abstract class HandlerDecorator : Handler, IDecorator { protected HandlerDecorator(IHandler decoratee) { if (decoratee == null) throw new ArgumentNullException(nameof(decoratee)); Decoratee = decorat...
namespace Miruken.Callback { using System; public abstract class HandlerDecorator : Handler, IDecorator { protected HandlerDecorator(IHandler decoratee) { if (decoratee == null) throw new ArgumentNullException(nameof(decoratee)); Decoratee = decorat...
Change slack error message text.
using System; using AzureStorage.Queue; using Common.Log; using CompetitionPlatform.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; namespace CompetitionPlatform.Exceptions { public class GlobalExceptionFilter : IExceptionFilter, IDisposable { private readonly ILog _log...
using System; using AzureStorage.Queue; using Common.Log; using CompetitionPlatform.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; namespace CompetitionPlatform.Exceptions { public class GlobalExceptionFilter : IExceptionFilter, IDisposable { private readonly ILog _log...
Revert "Refactor the menu's max height to be a property"
// 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; using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.Settings { public class SettingsEnumDropdown<T> : Set...
// 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; using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.Settings { public class SettingsEnumDropdown<T> : Set...
Fix cannot load firebase analytics type.
using System; using System.Reflection; namespace EE.Internal { internal class FirebaseAnalyticsImpl : IFirebaseAnalyticsImpl { private readonly MethodInfo _methodSetCurrentScreen; public FirebaseAnalyticsImpl() { var type = Type.GetType("Firebase.Analytics.FirebaseAnalytics, Firebase.C...
using System; using System.Reflection; namespace EE.Internal { internal class FirebaseAnalyticsImpl : IFirebaseAnalyticsImpl { private readonly MethodInfo _methodSetCurrentScreen; public FirebaseAnalyticsImpl() { var type = Type.GetType("Firebase.Analytics.FirebaseAnalytics, Firebase.A...
Add sqlite migrate on startup
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Builder; namespace RedCard.API { public class Program { public static void Main(string[] args) { var host...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Builder; using RedCard.API.Contexts; using Microsoft.EntityFrameworkCore; namespace RedCard.API { public class Program { publ...
Set correct min and max values
using System.Collections.Generic; namespace WalletWasabi.Fluent.ViewModels { public class TestLineChartViewModel { public double XAxisCurrentValue { get; set; } = 36; public double XAxisMinValue { get; set; } = 2; public double XAxisMaxValue { get; set; } = 864; public List<string> XAxisLabels => new List...
using System.Collections.Generic; namespace WalletWasabi.Fluent.ViewModels { public class TestLineChartViewModel { public double XAxisCurrentValue { get; set; } = 36; public double XAxisMinValue { get; set; } = 1; public double XAxisMaxValue { get; set; } = 1008; public List<string> XAxisLabels => new Lis...
Revert "Fix The GlowWindow in the taskmanager"
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Interactivity; using MahApps.Metro.Controls; namespace MahApps.Metro.Behaviours { public class GlowWindowBehavior : Behavior<Window> { private GlowWindow left, right, top, b...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Interactivity; using MahApps.Metro.Controls; namespace MahApps.Metro.Behaviours { public class GlowWindowBehavior : Behavior<Window> { private GlowWindow left, right, top, b...
Correct compile error in tests
 namespace NakedObjects.Web.UnitTests.Selenium { public static class TestConfig { //public const string BaseUrl = "http://localhost:49998/"; public const string BaseUrl = "http://nakedobjectstest.azurewebsites.net/"; } }
 namespace NakedObjects.Selenium { public static class TestConfig { //public const string BaseUrl = "http://localhost:49998/"; public const string BaseUrl = "http://nakedobjectstest.azurewebsites.net/"; } }
Use strings for IDs (for flexibility)
using System; using System.Windows.Forms; namespace MultiMiner.Win.Notifications { public partial class NotificationsControl : UserControl { //events //delegate declarations public delegate void NotificationsChangedHandler(object sender); //event declarations p...
using System; using System.Windows.Forms; namespace MultiMiner.Win.Notifications { public partial class NotificationsControl : UserControl { //events //delegate declarations public delegate void NotificationsChangedHandler(object sender); //event declarations p...
Fix error with liquid propegation through air
using System; using TrueCraft.API; using TrueCraft.API.Logic; namespace TrueCraft.Core.Logic.Blocks { public class AirBlock : BlockProvider { public static readonly byte BlockID = 0x00; public override byte ID { get { return 0x00; } } public override double BlastResistance { ...
using System; using TrueCraft.API; using TrueCraft.API.Logic; namespace TrueCraft.Core.Logic.Blocks { public class AirBlock : BlockProvider { public static readonly byte BlockID = 0x00; public override byte ID { get { return 0x00; } } public override double BlastResistance { ...
Move guest participation beatmap up to below loved
// 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.Localisation; using osu.Game.Online.API.Requests; using osu.Game.Overlays.Profile.Sections.Beatmaps; using osu.Game.Resources.Localisation.Web; name...
// 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.Localisation; using osu.Game.Online.API.Requests; using osu.Game.Overlays.Profile.Sections.Beatmaps; using osu.Game.Resources.Localisation.Web; name...
Allow to run build even if git repo informations are not available
#tool "nuget:?package=GitVersion.CommandLine" #addin "Cake.Yaml" public class ContextInfo { public string NugetVersion { get; set; } public string AssemblyVersion { get; set; } public GitVersion Git { get; set; } public string BuildVersion { get { return NugetVersion + "-" + Git.Sha; } ...
#tool "nuget:?package=GitVersion.CommandLine" #addin "Cake.Yaml" public class ContextInfo { public string NugetVersion { get; set; } public string AssemblyVersion { get; set; } public GitVersion Git { get; set; } public string BuildVersion { get { return NugetVersion + "-" + Git.Sha; } ...
Fix crash when multiple threads may exist.
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Interop; using WindowsDesktop.Interop; namespace WindowsDesktop.Internal { internal abstract class RawWindow { public string Name { get; set; } public HwndSource Source { get; private set; } public IntPtr Handle => this....
using System; using System.Windows.Interop; using System.Windows.Threading; using WindowsDesktop.Interop; namespace WindowsDesktop.Internal { internal abstract class RawWindow { public string Name { get; set; } public HwndSource Source { get; private set; } public IntPtr Handle => this.Source?.Handle ?? Int...
Add standard demo sites setup as a test
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading.Tasks; using Certify.Models; namespace Certify.Service.Tests.Integration { [TestClass] public class ManagedCertificateTests : ServiceTestBase { [TestMethod] public async Task TestGetManagedCertificates...
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading.Tasks; using Certify.Models; using System.Collections.Generic; namespace Certify.Service.Tests.Integration { [TestClass] public class ManagedCertificateTests : ServiceTestBase { [TestMethod] public asy...
Destroy bullets when they are out of bounds
using UnityEngine; using System.Collections; public class Bullet : MonoBehaviour { private float velocity = 35f; // Use this for initialization void Start () { } // Update is called once per frame void Update () { this.transform.Translate(0, Time.deltaTime * this.velocity, 0...
using UnityEngine; using System.Collections; public class Bullet : MonoBehaviour { private float velocity = 35f; // Use this for initialization void Start () { } // Update is called once per frame void Update () { this.transform.Translate(0, Time.deltaTime * this.velocity, 0...
Add copyright notice to new file
using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; using Microsoft.NET.TestFramework.Assertions; namespace Microsoft.NET.TestFramework { public static class CommandExtensions { public static...
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using FluentAssertions; using Microsoft.DotNet.Cli.Utils; using System; using System.Collections.Generic; using System.Runtime.InteropServices; ...
Fix syntax error in TimingController
using System.Collections; using System.Collections.Generic; using UnityEngine; public class YoumuSlashTimingController : MonoBehaviour { public delegate void BeatDelegate(int beat); public static BeatDelegate onBeat; [SerializeField] private YoumuSlashTimingData timingData; [SerializeField] p...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class YoumuSlashTimingController : MonoBehaviour { public delegate void BeatDelegate(int beat); public static BeatDelegate onBeat; [SerializeField] private YoumuSlashTimingData timingData; [SerializeField] p...
Fix tests to pass with newer setup
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; using System.Net; namespace MultiMiner.Xgminer.Discovery.Tests { [TestClass] public class MinerFinderTests { [TestMethod] public void MinerFinder_FindsMiners() { const in...
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; using System.Net; namespace MultiMiner.Xgminer.Discovery.Tests { [TestClass] public class MinerFinderTests { [TestMethod] public void MinerFinder_FindsMiners() { const in...
Fix scanning for MyGet versions
// Copyright 2020 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; using System.Reflection; using JetBrains.Annotations; using Nuke.Common.IO; using Nuke.Common.Utilities; using Nuke.Common.ValueInjection; namespace ...
// Copyright 2020 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; using System.Reflection; using JetBrains.Annotations; using Nuke.Common.IO; using Nuke.Common.Utilities; using Nuke.Common.ValueInjection; namespace ...
Fix question submission truncation bug
@model CodeEditorSettings @if (Model.TextArea) { <textarea name="@Model.EditorName" style="display: none"></textarea> } <div id="wrapper-@Model.EditorName"></div> <script> function createEditor(text) { $('#wrapper-@Model.EditorName').html('<pre id="@Model.EditorName">' + (text != null ? text : ''...
@model CodeEditorSettings @if (Model.TextArea) { <textarea name="@Model.EditorName" style="display: none"></textarea> } <div id="wrapper-@Model.EditorName"></div> <script> function createEditor(text) { $('#wrapper-@Model.EditorName').html('<pre id="@Model.EditorName"></pre>'); $('#@Model.Edit...
Add method to GetPresignedUrlRequest and update to class
using System; namespace Amazon.S3 { public readonly struct GetPresignedUrlRequest { public GetPresignedUrlRequest( string host, AwsRegion region, string bucketName, string objectKey, TimeSpan expiresIn) { ...
using System; namespace Amazon.S3 { public class GetPresignedUrlRequest { public GetPresignedUrlRequest( string method, string host, AwsRegion region, string bucketName, string objectKey, TimeSpan expiresIn) { ...
Change library version to 0.8.1
using System.Reflection; 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("CurrencyCloud")] [assembly: AssemblyDescr...
using System.Reflection; 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("CurrencyCloud")] [assembly: AssemblyDescr...
Add agent to web owin middleware
using System; using System.Collections.Generic; using System.Threading.Tasks; using Glimpse.Host.Web.Owin.Framework; namespace Glimpse.Host.Web.Owin { public class GlimpseMiddleware { private readonly Func<IDictionary<string, object>, Task> _innerNext; public GlimpseMiddleware(Func<IDictionar...
using System; using System.Collections.Generic; using System.Threading.Tasks; using Glimpse.Host.Web.Owin.Framework; using Glimpse.Agent.Web; namespace Glimpse.Host.Web.Owin { public class GlimpseMiddleware { private readonly Func<IDictionary<string, object>, Task> _innerNext; private readonly...
Disable tinting option on Android
using System; using Android.Views; using Xamarin.Forms; using Xamarin.Forms.Platform.Android; using Android.Graphics; using System.ComponentModel; using CrossPlatformTintedImage; using CrossPlatformTintedImage.Droid; [assembly:ExportRendererAttribute(typeof(TintedImage), typeof(TintedImageRenderer))] namespace CrossPl...
using System; using Android.Views; using Xamarin.Forms; using Xamarin.Forms.Platform.Android; using Android.Graphics; using System.ComponentModel; using CrossPlatformTintedImage; using CrossPlatformTintedImage.Droid; [assembly:ExportRendererAttribute(typeof(TintedImage), typeof(TintedImageRenderer))] namespace CrossPl...
Mark render start point as graph part (obviously)
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FeralTic.DX11; namespace VVVV.DX11 { public interface IAttachableWindow { void AttachContext(DX11RenderContext renderContext); IntPtr WindowHandle { get; } } public interface IDX11RenderStartPo...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FeralTic.DX11; namespace VVVV.DX11 { public interface IAttachableWindow { void AttachContext(DX11RenderContext renderContext); IntPtr WindowHandle { get; } } public interface IDX11RenderStartPo...
Change "Ok" to "OK" in message dialogs
using System.Windows; namespace GitMind.Common.MessageDialogs { /// <summary> /// Interaction logic for MessageDialog.xaml /// </summary> public partial class MessageDialog : Window { public MessageDialog( Window owner, string message, string title, MessageBoxButton button, MessageBoxImage imag...
using System.Windows; namespace GitMind.Common.MessageDialogs { /// <summary> /// Interaction logic for MessageDialog.xaml /// </summary> public partial class MessageDialog : Window { public MessageDialog( Window owner, string message, string title, MessageBoxButton button, MessageBoxImage imag...
Change - finished compliance for to_number function.
using System; using DevLab.JmesPath.Interop; using Newtonsoft.Json.Linq; namespace DevLab.JmesPath.Functions { public class ToNumberFunction : JmesPathFunction { public ToNumberFunction() : base("to_number", 1) { } public override bool Validate(params J...
using System; using System.Globalization; using DevLab.JmesPath.Interop; using Newtonsoft.Json.Linq; namespace DevLab.JmesPath.Functions { public class ToNumberFunction : JmesPathFunction { public ToNumberFunction() : base("to_number", 1) { } public ov...
Use static properties instead of static constructor ==> if exception is thrown, detailed information is available, else TypeInitialiser exception is thrown
using System.Collections.Generic; using NHibernate; using NHibernate.Cfg; using NHibernate.Dialect; using NHibernate.Driver; namespace PPWCode.Vernacular.NHibernate.I.Test { public static class NhConfigurator { private const string ConnectionString = "Data Source=:memory:;Version=3;New=Tru...
using System.Collections.Generic; using NHibernate; using NHibernate.Cfg; using NHibernate.Dialect; using NHibernate.Driver; namespace PPWCode.Vernacular.NHibernate.I.Test { public static class NhConfigurator { private const string ConnectionString = "Data Source=:memory:;Version=3;New=Tru...
Add some complexity to test cases.
using System; using System.Collections.Generic; using Xunit; namespace CSharpViaTest.IOs._10_HandleText { /* * Description * =========== * * This test will introduce the concept of Codepoint and surrogate pair to you. But * for the most of the cases, the character can fit in 16-bit unic...
using System; using System.Collections.Generic; using Xunit; namespace CSharpViaTest.IOs._10_HandleText { /* * Description * =========== * * This test will introduce the concept of Codepoint and surrogate pair to you. But * for the most of the cases, the character can fit in 16-bit unic...
Add next page command property
using Newtonsoft.Json; namespace Dnn.PersonaBar.Library.Prompt.Models { /// <summary> /// Standard response object sent to client /// </summary> public class ConsoleResultModel { // the returned result - text or HTML [JsonProperty(PropertyName = "output")] public string Out...
using Newtonsoft.Json; namespace Dnn.PersonaBar.Library.Prompt.Models { /// <summary> /// Standard response object sent to client /// </summary> public class ConsoleResultModel { // the returned result - text or HTML [JsonProperty(PropertyName = "output")] public string Out...
Add dependency on Sequence and Fungus Script components
using UnityEngine; using System; using System.Collections; using System.Collections.Generic; namespace Fungus { public class EventHandlerInfoAttribute : Attribute { public EventHandlerInfoAttribute(string category, string eventHandlerName, string helpText) { this.Category = category; this.EventHandlerNa...
using UnityEngine; using System; using System.Collections; using System.Collections.Generic; namespace Fungus { public class EventHandlerInfoAttribute : Attribute { public EventHandlerInfoAttribute(string category, string eventHandlerName, string helpText) { this.Category = category; this.EventHandlerNa...
Change link title to manage reservations
@model SFA.DAS.EmployerAccounts.Web.ViewModels.AccountDashboardViewModel @if (Model.ReservedFundingToShow != null) { <h3 class="das-panel__heading">Apprenticeship funding secured</h3> <dl class="das-definition-list das-definition-list--with-separator"> <dt class="das-definition-list__title">Legal enti...
@model SFA.DAS.EmployerAccounts.Web.ViewModels.AccountDashboardViewModel @if (Model.ReservedFundingToShow != null) { <h3 class="das-panel__heading">Apprenticeship funding secured</h3> <dl class="das-definition-list das-definition-list--with-separator"> <dt class="das-definition-list__title">Legal enti...
Test for IList<T> and IEnumerable<T>
using System; using System.Collections.Generic; namespace DevelopmentInProgress.DipMapper.Test { public class TestDapperClass { public int Id { get; set; } public string Name { get; set; } public DateTime Date { get; set; } public IEnumerable<TestDapperClass> TestDataClasses { ...
using System; using System.Collections.Generic; namespace DevelopmentInProgress.DipMapper.Test { public class TestDapperClass { public int Id { get; set; } public string Name { get; set; } public DateTime Date { get; set; } public IEnumerable<TestDapperClass> TestDataClasses { ...
Correct inconsistent use of tabs and spaces.
using System.Windows.Controls; namespace PopulousStringEditor.Views { /// <summary> /// Interaction logic for StringComparisonView.xaml /// </summary> public partial class StringComparisonView : UserControl { /// <summary>Gets or sets the visibility of the referenced strings.</summary> p...
using System.Windows.Controls; namespace PopulousStringEditor.Views { /// <summary> /// Interaction logic for StringComparisonView.xaml /// </summary> public partial class StringComparisonView : UserControl { /// <summary>Gets or sets the visibility of the referenced strings.</summary> ...
Change configurations to decimal value
using System; namespace Take.Blip.Builder.Hosting { public class ConventionsConfiguration : IConfiguration { public virtual TimeSpan InputProcessingTimeout => TimeSpan.FromMinutes(1); public virtual string RedisStorageConfiguration => "localhost"; public virtual int RedisDatabase => ...
using System; namespace Take.Blip.Builder.Hosting { public class ConventionsConfiguration : IConfiguration { public virtual TimeSpan InputProcessingTimeout => TimeSpan.FromMinutes(1); public virtual string RedisStorageConfiguration => "localhost"; public virtual int RedisDatabase => ...
Fix build breaks mirrored from Github
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; internal partial class Interop { internal partial class mincore { internal static int DeleteVolumeMountPoint(string mountPoint) ...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; internal partial class Interop { internal partial class mincore { internal static bool DeleteVolumeMountPoint(string mountPoint) ...
Remove the function specific filter.
// Copyright (c) Zac Brown. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using O365.Security.ETW; namespace hiddentreasure_etw_demo { public static class PowerShellMethodExecution { public static void Run() ...
// Copyright (c) Zac Brown. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using O365.Security.ETW; namespace hiddentreasure_etw_demo { public static class PowerShellMethodExecution { public static void Run() ...
Fix path for Payments API
using Newtonsoft.Json.Linq; using SnapMD.ConnectedCare.Sdk.Models; namespace SnapMD.ConnectedCare.Sdk { public class PaymentsApi : ApiCall { public PaymentsApi(string baseUrl, string bearerToken, int hospitalId, string developerId, string apiKey) : base(baseUrl, bearerToken, developerId, a...
using Newtonsoft.Json.Linq; using SnapMD.ConnectedCare.Sdk.Models; namespace SnapMD.ConnectedCare.Sdk { public class PaymentsApi : ApiCall { public PaymentsApi(string baseUrl, string bearerToken, int hospitalId, string developerId, string apiKey) : base(baseUrl, bearerToken, developerId, a...
Fix warning on linux/mac by adding AutoGenerateBindingRedirects
using System; using System.IO; using System.Linq; using System.Reflection; using Sharpmake; namespace SharpmakeGen { [Generate] public class SharpmakeApplicationProject : Common.SharpmakeBaseProject { public SharpmakeApplicationProject() : base(generateXmlDoc: false) { ...
using System; using System.IO; using System.Linq; using System.Reflection; using Sharpmake; namespace SharpmakeGen { [Generate] public class SharpmakeApplicationProject : Common.SharpmakeBaseProject { public SharpmakeApplicationProject() : base(generateXmlDoc: false) { ...
Fix and document the interface
using System; using System.Collections.Generic; using System.Collections.Specialized; namespace GitHub.Collections { public interface ITrackingCollection<T> : IDisposable, IList<T> where T : ICopyable<T> { IObservable<T> Listen(IObservable<T> obs); IDisposable Subscribe(); IDisposable ...
using System; using System.Collections.Generic; using System.Collections.Specialized; namespace GitHub.Collections { /// <summary> /// TrackingCollection is a specialization of ObservableCollection that gets items from /// an observable sequence and updates its contents in such a way that two updates to ...
Use 'Thread.Sleep' instead of 'await'-less 'Task.Delay'.
using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; namespace Mirage.Urbanization.Simulation { public class NeverEndingTask { private readonly CancellationToken _token; private readonly Task _task; public NeverEndingTask(string description, Acti...
using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; namespace Mirage.Urbanization.Simulation { public class NeverEndingTask { private readonly CancellationToken _token; private readonly Task _task; public NeverEndingTask(string description, Acti...
Remove workaround for xslt and use a XmlReader instead of a XPath navigator
using System.Text; using System.Xml; using System.Xml.XPath; using System.Xml.Xsl; namespace Tranquire.Reporting { partial class XmlDocumentObserver { /// <summary> /// Returns a HTML document that contains the report. /// </summary> /// <returns></returns> public strin...
using System.Text; using System.Xml; using System.Xml.XPath; using System.Xml.Xsl; namespace Tranquire.Reporting { partial class XmlDocumentObserver { /// <summary> /// Returns a HTML document that contains the report. /// </summary> /// <returns></returns> public strin...
Use culture invariant version of float.TryParse
using System.Globalization; namespace OpenSage.Data.Utilities { internal static class ParseUtility { public static float ParseFloat(string s) { return float.Parse(s, CultureInfo.InvariantCulture); } public static bool TryParseFloat(string s, out float result) ...
using System.Globalization; namespace OpenSage.Data.Utilities { internal static class ParseUtility { public static float ParseFloat(string s) { return float.Parse(s, CultureInfo.InvariantCulture); } public static bool TryParseFloat(string s, out float result) ...
Fix cache update exception typo
using System; namespace HobknobClientNet { public interface IHobknobClientFactory { IHobknobClient Create(string etcdHost, int etcdPort, string applicationName, TimeSpan cacheUpdateInterval, EventHandler<CacheUpdateFailedArgs> cacheUpdateFailed); } public class HobknobClientFactory : IHobkno...
using System; namespace HobknobClientNet { public interface IHobknobClientFactory { IHobknobClient Create(string etcdHost, int etcdPort, string applicationName, TimeSpan cacheUpdateInterval, EventHandler<CacheUpdateFailedArgs> cacheUpdateFailed); } public class HobknobClientFactory : IHobkno...
Add failing test case for setting colour at creation
// 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; using osu.Framework.Graphics.UserInterface; using osu.Framework.Testing; namespace osu.Framework.Tests.Visual.UserInterface { public cl...
// 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.Graphics; using osu.Framework.Graphics.UserInterface; namespace osu.Framework.Tests.Visual.UserInterface { public class Te...
Add service and container clients
using Azure.Core.Pipeline; using Azure.Test.PerfStress; using System; using System.Net.Http; namespace Azure.Storage.Blobs.PerfStress { public abstract class StorageTest<TOptions> : PerfStressTest<TOptions> where TOptions: PerfStressOptions { private const string _containerName = "perfstress"; ...
using Azure.Core.Pipeline; using Azure.Test.PerfStress; using System; using System.Net.Http; namespace Azure.Storage.Blobs.PerfStress { public abstract class StorageTest<TOptions> : PerfStressTest<TOptions> where TOptions: PerfStressOptions { private const string _containerName = "perfstress"; ...
Test Major/Minor versions - Commit 2
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; // ADDED FIRST LINE namespace PracticeGit.Controllers { public class HomeController : Controller { public ActionResult Index() { ViewBag.Title = "Home Page"; re...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; // ADDED FIRST LINE // ADDED SECOND LINE namespace PracticeGit.Controllers { public class HomeController : Controller { public ActionResult Index() { ViewBag.Title = "Home ...
Fix "Picture Slideshow" "Maximum File Size" default value
using System; using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.PictureSlideshow { public class Settings : WidgetSettingsBase { public Settings() { Width = 384; Height = 216; } [Category("General")] ...
using System; using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.PictureSlideshow { public class Settings : WidgetSettingsBase { public Settings() { Width = 384; Height = 216; } [Category("General")] ...
Add missing object mapping configuration.
using System.Linq; using AutoMapper; using Abp.Authorization; using Abp.Authorization.Roles; using AbpCompanyName.AbpProjectName.Authorization.Roles; namespace AbpCompanyName.AbpProjectName.Roles.Dto { public class RoleMapProfile : Profile { public RoleMapProfile() { // Role and per...
using System.Linq; using AutoMapper; using Abp.Authorization; using Abp.Authorization.Roles; using AbpCompanyName.AbpProjectName.Authorization.Roles; namespace AbpCompanyName.AbpProjectName.Roles.Dto { public class RoleMapProfile : Profile { public RoleMapProfile() { // Role and per...
Add menu item to create AOT configuration
#if !NO_UNITY using System; using System.Collections.Generic; using UnityEngine; namespace FullSerializer { public class fsAotConfiguration : ScriptableObject { public enum AotState { Default, Enabled, Disabled } [Serializable] public struct Entry { public AotS...
#if !NO_UNITY using System; using System.Collections.Generic; using UnityEngine; namespace FullSerializer { [CreateAssetMenu(menuName = "Full Serializer AOT Configuration")] public class fsAotConfiguration : ScriptableObject { public enum AotState { Default, Enabled, Disabled } ...
Tweak SMTP test "From" address.
using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Text; namespace Toolhouse.Monitoring.Dependencies { public class SmtpDependency : IDependency { public SmtpDependency(string name) { this.Name = name; } public str...
using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Text; namespace Toolhouse.Monitoring.Dependencies { public class SmtpDependency : IDependency { public SmtpDependency(string name) { this.Name = name; } public str...
Fix type name error due to temporarily excluded project
using System; using System.Reflection; //using System.IO; //using System.Reflection; using LASI.Utilities; namespace LASI.WebApp.Tests.TestAttributes { [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)] public class PreconfigureLASIAttribute : Xunit.Sdk.BeforeAfterTestAttribute ...
using System; using System.Reflection; //using System.IO; //using System.Reflection; using LASI.Utilities; namespace LASI.WebApp.Tests.TestAttributes { [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)] public class PreconfigureLASIAttribute : Xunit.Sdk.BeforeAfterTestAttribute ...
Fix mistake in create sprint validator - was allowing null Name
using System; using Agiil.Domain.Validation; using CSF.Validation; using CSF.Validation.Manifest.Fluent; using CSF.Validation.StockRules; namespace Agiil.Domain.Sprints { public class CreateSprintValidatorFactory : ValidatorFactoryBase<CreateSprintRequest> { protected override void ConfigureManifest(IManifest...
using System; using Agiil.Domain.Validation; using CSF.Validation; using CSF.Validation.Manifest.Fluent; using CSF.Validation.StockRules; namespace Agiil.Domain.Sprints { public class CreateSprintValidatorFactory : ValidatorFactoryBase<CreateSprintRequest> { protected override void ConfigureManifest(IManifest...
Return NotFound on teams user is not a member of
using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using SupportManager.DAL; namespace SupportManager.Web.Areas.Teams { [Area("Teams")] [Authorize] public abstract class BaseController : Controller { p...
using System.Data.Entity; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using SupportManager.DAL; namespace SupportManager.Web.Areas.Teams { [Area("Teams")] [Authorize] public abstract class BaseController : ...
Disable 'Delete all variables' when no environment is selected.
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Globalization; using Microsoft.Common.Core; using Microsoft.Common.Core.Shell; using Microsoft.R.Host.Client; using Microsoft.VisualStudio.R.Package.Com...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Globalization; using Microsoft.Common.Core; using Microsoft.Common.Core.Shell; using Microsoft.R.Host.Client; using Microsoft.VisualStudio.R.Package.Com...
Create backup directory if missing
using System; using System.IO; using System.Security.Cryptography; namespace Nuterra.Installer { public static class InstallerUtil { public static string GetFileHash(string filePath) { if (!File.Exists(filePath)) { return null; } using (var md5 = MD5.Create()) using (var stream = File.OpenRea...
using System; using System.IO; using System.Security.Cryptography; namespace Nuterra.Installer { public static class InstallerUtil { public static string GetFileHash(string filePath) { if (!File.Exists(filePath)) { return null; } using (var md5 = MD5.Create()) using (var stream = File.OpenRea...
Simplify GetPassedTestsInfo with XDocument and XPath
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.IO; using System.Xml; namespace Roslyn.Test.Utilities { public struct TestInfo { public decim...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Immutable; using System.IO; using System.Xml.Linq; using System.Xml.XPath; namespace Roslyn.Test.Utilities { public readonly st...
Fix null category search bug
// NoteSorter.cs // <copyright file="NoteSorter.cs"> This code is protected under the MIT License. </copyright> using System.Collections.Generic; using System.Linq; namespace Todo_List { /// <summary> /// A static class containing a list of notes and methods for sorting them. /// </summary> public sta...
// NoteSorter.cs // <copyright file="NoteSorter.cs"> This code is protected under the MIT License. </copyright> using System.Collections.Generic; using System.Linq; namespace Todo_List { /// <summary> /// A static class containing a list of notes and methods for sorting them. /// </summary> public sta...
Fix test name and assertion.
using System; using Elastic.Xunit.Sdk; using Elastic.Xunit.XunitPlumbing; using Elasticsearch.Net; using FluentAssertions; using Tests.Framework.ManagedElasticsearch.Clusters; namespace Tests.Reproduce { public class GithubIssue2985 : IClusterFixture<WritableCluster> { private readonly WritableCluster _cluster; ...
using System; using Elastic.Xunit.Sdk; using Elastic.Xunit.XunitPlumbing; using Elasticsearch.Net; using FluentAssertions; using Tests.Framework.ManagedElasticsearch.Clusters; namespace Tests.Reproduce { public class GithubIssue2985 : IClusterFixture<WritableCluster> { private readonly WritableCluster _cluster; ...
Make the namespace uniform accross the project
using System; namespace Table { public class Table { public int Width; public int Spacing; public Table(int width, int spacing) { Width = width; Spacing = spacing; } } }
using System; namespace Hangman { public class Table { public int Width; public int Spacing; public Table(int width, int spacing) { Width = width; Spacing = spacing; } } }