Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Fix osu! slider ticks appearing too late
// 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 osu.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Osu.Judgements; using osu....
// 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 osu.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Osu.Judgements; using osu....
Set flag to enable package restore for future versions of nuget.
using System; using System.Linq; using System.Threading.Tasks; using Kudu.Contracts.Tracing; using Kudu.Core.Infrastructure; namespace Kudu.Core.Deployment { public abstract class MsBuildSiteBuilder : ISiteBuilder { private const string NuGetCachePathKey = "NuGetCachePath"; private readonly E...
using System; using System.Linq; using System.Threading.Tasks; using Kudu.Contracts.Tracing; using Kudu.Core.Infrastructure; namespace Kudu.Core.Deployment { public abstract class MsBuildSiteBuilder : ISiteBuilder { private const string NuGetCachePathKey = "NuGetCachePath"; private const strin...
Add method to solver interface to tell it about functions it might see in queries.
using System; using System.Collections.Generic; namespace symbooglix { public interface ISolver { void SetConstraints(ConstraintManager cm); // This can be used as a hint to the solver to destroy Constraints created internally in the solver void DropConstraints(); // Given the...
using System; using System.Collections.Generic; namespace symbooglix { public interface ISolver { void SetConstraints(ConstraintManager cm); void SetFunctions(IEnumerable<Microsoft.Boogie.Function> functions); // Given the constraints is the query expression satisfiable // \re...
Check if table exist before creating it in the install
using MultipleStartNodes.Models; using MultipleStartNodes.Utilities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using umbraco.cms.businesslogic.packager.standardPackageActions; using umbraco.interfaces; using Umbraco.Core.Loggin...
using MultipleStartNodes.Models; using MultipleStartNodes.Utilities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using umbraco.cms.businesslogic.packager.standardPackageActions; using umbraco.interfaces; using Umbraco.Core.Loggin...
Fix sample perf (Option 1)
// 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; using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; namespace SampleApp { public class Startup { public void Co...
// 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; using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; namespace SampleApp { public class Startup { public void Co...
Correct way to wait for indexing
using System; using System.Linq; using MvcContrib.TestHelper; using Snittlistan.Infrastructure.Indexes; using Snittlistan.Models; using Xunit; namespace Snittlistan.Test { public class PlayerStat_Test : DbTest { [Fact] public void VerifyIndex() { // Arrange IndexCreator.CreateIndexes(Stor...
using System; using System.Linq; using MvcContrib.TestHelper; using Snittlistan.Infrastructure.Indexes; using Snittlistan.Models; using Xunit; namespace Snittlistan.Test { public class PlayerStat_Test : DbTest { [Fact] public void VerifyIndex() { // Arrange IndexCreator.CreateIndexes(Stor...
Add missing namespace and using statements.
public class MikeKanakos : IAmACommunityMember { public string FirstName => "Mike"; public string LastName => "Kanakos"; public string ShortBioOrTagLine => "Windows IT pro located in the RTP area of North Carolina. Active Directory, Azure AD, Group Policy, and automation."; public st...
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class MikeKanakos : IAmACommunityMember { public string FirstName => "Mike"; public string LastN...
Add status to cat indices response
using Newtonsoft.Json; namespace Nest { [JsonObject] public class CatIndicesRecord : ICatRecord { [JsonProperty("docs.count")] public string DocsCount { get; set; } [JsonProperty("docs.deleted")] public string DocsDeleted { get; set; } [JsonProperty("health")] public string Health { get; set; } [J...
using Newtonsoft.Json; namespace Nest { [JsonObject] public class CatIndicesRecord : ICatRecord { [JsonProperty("docs.count")] public string DocsCount { get; set; } [JsonProperty("docs.deleted")] public string DocsDeleted { get; set; } [JsonProperty("health")] public string Health { get; set; } [J...
Normalize all file headers to the expected Apache 2.0 license
// 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; using System.Diagnostics; using System.IO; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Testing; namesp...
// 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; using System.Diagnostics; using System.IO; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Testing; name...
Add lookup for spinner background colour
// 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. namespace osu.Game.Rulesets.Osu.Skinning { public enum OsuSkinColour { SliderTrackOverride, SliderBorder, SliderBall } }
// 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. namespace osu.Game.Rulesets.Osu.Skinning { public enum OsuSkinColour { SliderTrackOverride, SliderBorder, SliderBall, SpinnerBackg...
Add new method stub for generating routes
namespace RestfulRouting { public abstract class Mapper { } }
using System; using System.Web.Routing; namespace RestfulRouting { public abstract class Mapper { protected Route GenerateRoute(string path, string controller, string action, string[] httpMethods) { throw new NotImplementedException(); } } }
Replace reference by using regex
using SyntaxTree.VisualStudio.Unity.Bridge; using UnityEditor; [InitializeOnLoad] public class NCrunchAdapterForUnity { public const string NUnitUnityReference = @"<Reference Include=""nunit.framework""> <HintPath>Library\UnityAssemblies\nunit.framework.dll</HintPath> </Reference>"; publi...
using System.Text.RegularExpressions; using SyntaxTree.VisualStudio.Unity.Bridge; using UnityEditor; [InitializeOnLoad] public class NCrunchAdapterForUnity { public const string NUnitUnityReference = @"<Reference Include=""nunit.framework""> <HintPath>.*nunit.framework.dll</HintPath> </Referenc...
Remove tall grass metadata when dropping seed
using System; using TrueCraft.API.Logic; using TrueCraft.Core.Logic.Items; using TrueCraft.API; namespace TrueCraft.Core.Logic.Blocks { public class TallGrassBlock : BlockProvider { public static readonly byte BlockID = 0x1F; public override byte ID { get { return 0x1F; } } ...
using System; using TrueCraft.API.Logic; using TrueCraft.Core.Logic.Items; using TrueCraft.API; namespace TrueCraft.Core.Logic.Blocks { public class TallGrassBlock : BlockProvider { public static readonly byte BlockID = 0x1F; public override byte ID { get { return 0x1F; } } ...
Add other to the enum
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace Anlab.Core.Domain { public class TestItem { [Key] public int Id { get; set; } [Required] [StringLength(7)] public string FeeSchedule { get; set; } ...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace Anlab.Core.Domain { public class TestItem { [Key] public int Id { get; set; } [Required] [StringLength(7)] public string FeeSchedule { get; set; } ...
Fix bug in which class members polluted the surrounding namespace.
using System.Collections.Generic; using System.Linq; using Parsley; using Rook.Compiling.Types; namespace Rook.Compiling.Syntax { public class Class : TypedSyntaxTree, Binding { public Position Position { get; private set; } public Name Name { get; private set; } public IEnumerable<Func...
using System.Collections.Generic; using System.Linq; using Parsley; using Rook.Compiling.Types; namespace Rook.Compiling.Syntax { public class Class : TypedSyntaxTree, Binding { public Position Position { get; private set; } public Name Name { get; private set; } public IEnumerable<Func...
Test for Jame's Github mirror
using System.Reflection; using System.Security; [assembly: AssemblyVersion("0.1.0.0")] [assembly: AssemblyCopyright("Copyright 2008-2009 James Gregory and contributors (Paul Batum, Andrew Stewart, Chad Myers et al). All rights reserved.")] [assembly: AssemblyProduct("Fluent NHibernate")] [assembly: AssemblyCompa...
using System.Reflection; using System.Security; [assembly: AssemblyVersion("0.1.0.0")] [assembly: AssemblyCopyright("Copyright 2008-2009 James Gregory and contributors (Paul Batum, Andrew Stewart, Chad Myers, Hudson Akridge et al). All rights reserved.")] [assembly: AssemblyProduct("Fluent NHibernate")] [assembl...
Access allwed for all addresses (by CORS)
namespace FsxWebApi.Services { using System.Web.Http.Cors; using Infrastructure; using Model; using System.Web.Http; [EnableCors(origins: "http://localhost:26759", headers: "*", methods: "*")] public class PlaneController : ApiController { private readonly FsxManager _fsxManager = ...
namespace FsxWebApi.Services { using System.Web.Http.Cors; using Infrastructure; using Model; using System.Web.Http; [EnableCors(origins: "*", headers: "*", methods: "*")] public class PlaneController : ApiController { private readonly FsxManager _fsxManager = new FsxManager(); ...
Remove redundant login widget in page
@model OpenOrderFramework.Models.Order @{ ViewBag.Title = "P4MCheckout"; } <link rel="import" href="/Scripts/widgets/p4m-checkout/p4m-checkout.html"> <link rel="import" href="/Scripts/widgets/p4m-login/p4m-login.html"> <h2>Parcel For Me</h2> <p4m-login></p4m-login> <p4m-checkout></p4m-checkout>
@model OpenOrderFramework.Models.Order @{ ViewBag.Title = "P4MCheckout"; } <link rel="import" href="/Scripts/widgets/p4m-checkout/p4m-checkout.html"> <link rel="import" href="/Scripts/widgets/p4m-login/p4m-login.html"> <h2>Parcel For Me</h2> <p4m-checkout></p4m-checkout>
Add default value for frame in constructor
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace NutEngine { public class Sprite : Node, IDrawable { public Texture2D Atlas { get; } public Rectangle? Frame { get; set; } public Color Color { get; set; } public Vector2 Origin { get; set; } ...
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace NutEngine { public class Sprite : Node, IDrawable { public Texture2D Atlas { get; } public Rectangle? Frame { get; set; } public Color Color { get; set; } public Vector2 Origin { get; set; } ...
Increment assembly version to 1.1.2
using System.Reflection; using System.Resources; 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. [ass...
using System.Reflection; using System.Resources; 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. [ass...
Add [KnownType(typeof(Dictionary<string,object>))] to allow for Object mapping to be passed over WCF channel
using System.Runtime.Serialization; namespace CefSharp { [DataContract] [KnownType(typeof(object[]))] public class JavascriptResponse { [DataMember] public string Message { get; set; } [DataMember] public bool Success { get; set; } [DataMember] public object Result { get; set; } } }
using System.Collections.Generic; using System.Runtime.Serialization; namespace CefSharp { [DataContract] [KnownType(typeof(object[]))] [KnownType(typeof(Dictionary<string,object>))] public class JavascriptResponse { [DataMember] public string Message { get; set; } [DataMember] public bool Success { get...
Add cast on return value if needed
using Swigged.LLVM; using Mono.Cecil; using Mono.Cecil.Cil; using CSharpLLVM.Compilation; using CSharpLLVM.Stack; namespace CSharpLLVM.Generator.Instructions.FlowControl { [InstructionHandler(Code.Ret)] class EmitRet : ICodeEmitter { /// <summary> /// Emits a ret instruction. /// <...
using Swigged.LLVM; using Mono.Cecil; using Mono.Cecil.Cil; using CSharpLLVM.Compilation; using CSharpLLVM.Stack; using CSharpLLVM.Helpers; namespace CSharpLLVM.Generator.Instructions.FlowControl { [InstructionHandler(Code.Ret)] class EmitRet : ICodeEmitter { /// <summary> /// Emits a ret ...
Add connection to the Bitcoin network test
using MagicalCryptoWallet.KeyManagement; using MagicalCryptoWallet.Services; using NBitcoin; using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; using Xunit; namespace MagicalCryptoWallet.Tests { public class WalletTests : IClassFixture<SharedFixture> ...
using MagicalCryptoWallet.KeyManagement; using MagicalCryptoWallet.Logging; using MagicalCryptoWallet.Services; using NBitcoin; using NBitcoin.Protocol; using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading; using System.Threading.Tasks; using Xunit; namespace Magi...
Implement basic behaviour of favourite button
// 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 FavouriteButto...
// 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.Sprites; using osu.Game.Online.API.Requests.Responses; using osu.Framework.Logging; using osu.Game.Online.API...
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.EnterpriseLibraryConfigurator")] [assembly: AssemblyDescription("Tests for the Autofac container configurator for Enterprise Library.")]
using System.Reflection; [assembly: AssemblyTitle("Autofac.Extras.Tests.EnterpriseLibraryConfigurator")]
Allow OptiPNG to fix some apparently broken PNGs
using System; using System.ComponentModel; using System.Diagnostics; namespace WOptiPng { public static class OptiPngWrapper { public static bool OptiPngExists() { var process = new Process { StartInfo = new ProcessStartInfo("optipng") { ...
using System; using System.ComponentModel; using System.Diagnostics; namespace WOptiPng { public static class OptiPngWrapper { public static bool OptiPngExists() { var process = new Process { StartInfo = new ProcessStartInfo("optipng") { ...
Update tranportype with new additions for Mqtt/Ws and Mqtt/Tcp
using System; using System.Collections.Generic; using System.Text; namespace Microsoft.Azure.Devices.Client { /// <summary> /// Transport types supported by DeviceClient /// </summary> public enum TransportType { /// <summary> /// Advanced Message Queuing Protocol transport. ...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.Azure.Devices.Client { /// <summary> /// Transport types supported by DeviceClient - AMQP/TCP, HTTP 1.1, MQTT/TCP, AMQP/WS, MQTT/WS ///...
Add sitename to MSI specialization payload.
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Collections.Generic; namespace Microsoft.Azure.WebJobs.Script.WebHost.Models { public class MSIContext { public string MSISecret { get; s...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Collections.Generic; namespace Microsoft.Azure.WebJobs.Script.WebHost.Models { public class MSIContext { public string SiteName { get; se...
Verify that executing single argument command works as expected
namespace AppHarbor.Tests { public class CommandDispatcherTest { public class FooCommand : ICommand { public virtual void Execute(string[] arguments) { } } } }
using System.Linq; using Castle.MicroKernel; using Moq; using Ploeh.AutoFixture.Xunit; using Xunit.Extensions; namespace AppHarbor.Tests { public class CommandDispatcherTest { public class FooCommand : ICommand { public virtual void Execute(string[] arguments) { } } [Theory] [InlineAutoCommandDa...
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.Multitenant")] [assembly: AssemblyDescription("Tests for the Autofac multitenancy feature.")]
using System.Reflection; [assembly: AssemblyTitle("Autofac.Extras.Tests.Multitenant")]
Fix pos of main menu buttons
using UnityEngine; using System.Collections; public class mainMenuHandler : MonoBehaviour { // private Texture2D startButton; void OnGUI () { GUI.backgroundColor = Color.clear; if (GUI.Button (new Rect (260,300, 300, 300), "")) { // print ("Start Game"); //start game Application.LoadLevel(2); } ...
using UnityEngine; using System.Collections; public class mainMenuHandler : MonoBehaviour { public Texture2D startButton; void OnGUI () { GUI.backgroundColor = Color.clear; if (GUI.Button (new Rect (Screen.width/20*3,Screen.height/10*4, 250, 250), startButton)) { // print ("Start Game"); //start game...
Add DbContext null check to FieldInterceptor.cs
namespace EntityFramework.Filters { using System.Data.Entity.Core.Common.CommandTrees; using System.Data.Entity.Core.Metadata.Edm; using System.Data.Entity.Infrastructure.Interception; using System.Linq; public class FilterInterceptor : IDbCommandTreeInterceptor { public void TreeCreat...
namespace EntityFramework.Filters { using System.Data.Entity.Core.Common.CommandTrees; using System.Data.Entity.Core.Metadata.Edm; using System.Data.Entity.Infrastructure.Interception; using System.Linq; public class FilterInterceptor : IDbCommandTreeInterceptor { public void TreeCreate...
Add file that was missed in rename
using Glimpse.Core.Extensibility; namespace Glimpse.Core.Resource { /// <summary> /// The <see cref="IResource"/> implementation responsible for providing the Glimpse JavaScript client to the browser. /// </summary> public class InsightResource : FileResource, IKey { internal const string ...
using Glimpse.Core.Extensibility; namespace Glimpse.Core.Resource { /// <summary> /// The <see cref="IResource"/> implementation responsible for providing the Glimpse JavaScript client to the browser. /// </summary> public class InsightResource : FileResource, IKey { internal const string ...
Add plugin bridge object to script variable list
using System; using System.Collections.Generic; namespace TweetDck.Plugins{ [Flags] enum PluginEnvironment{ None = 0, Browser = 1, Notification = 2 } static class PluginEnvironmentExtensions{ public static IEnumerable<PluginEnvironment> Values{ get{ ...
using System; using System.Collections.Generic; namespace TweetDck.Plugins{ [Flags] enum PluginEnvironment{ None = 0, Browser = 1, Notification = 2 } static class PluginEnvironmentExtensions{ public static IEnumerable<PluginEnvironment> Values{ get{ ...
Fix create map not using MemberList property
using System; using Abp.Collections.Extensions; using AutoMapper; namespace Abp.AutoMapper { public class AutoMapFromAttribute : AutoMapAttributeBase { public MemberList MemberList { get; set; } = MemberList.Destination; public AutoMapFromAttribute(params Type[] targetTypes) : bas...
using System; using Abp.Collections.Extensions; using AutoMapper; namespace Abp.AutoMapper { public class AutoMapFromAttribute : AutoMapAttributeBase { public MemberList MemberList { get; set; } = MemberList.Destination; public AutoMapFromAttribute(params Type[] targetTypes) : bas...
Fix for using Length before GetPosition.
using UnityEngine; public abstract class Curve : ICurve { protected abstract Vector3 GetPositionImpl(float u); protected abstract float LengthImpl { get; } public static readonly Vector3 DefaultUpVector = Vector3.up; protected bool Invalid { get; private set; } public float Length { get; private set; } pro...
using UnityEngine; public abstract class Curve : ICurve { protected abstract Vector3 GetPositionImpl(float u); protected abstract float LengthImpl { get; } public static readonly Vector3 DefaultUpVector = Vector3.up; protected bool Invalid { get; private set; } private float _length; public float Length { ...
Return NotFound on invalid team ID's
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.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...
Read file before the reader is disposed
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; using System.IO; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Sha...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; using System.IO; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Sha...
Remove import for empty script file
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>@ViewData["Title"] - Quadruped WebInterface</title> <link rel="stylesheet" href="~/css/site.css" /> <script src="~/js/site.min.js"></script> </head> <body> @RenderB...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>@ViewData["Title"] - Quadruped WebInterface</title> <link rel="stylesheet" href="~/css/site.css" /> @*<script src="~/js/site.min.js"></script>*@ </head> <body> @Ren...
Improve wording of an exception
using Microsoft.Extensions.Configuration; using System; using System.Linq; namespace Tgstation.Server.Host.Core { /// <inheritdoc /> sealed class ServerPortProivder : IServerPortProvider { /// <inheritdoc /> public ushort HttpApiPort { get; } /// <summary> /// Initializes a new instance of the <see cref="...
using Microsoft.Extensions.Configuration; using System; using System.Linq; namespace Tgstation.Server.Host.Core { /// <inheritdoc /> sealed class ServerPortProivder : IServerPortProvider { /// <inheritdoc /> public ushort HttpApiPort { get; } /// <summary> /// Initializes a new instance of the <see cref="...
Fix camel case on the Learners response
using MediatR; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using SFA.DAS.CommitmentsV2.Api.Types.Responses; using SFA.DAS.CommitmentsV2.Application.Queries.GetAllLearners; using System; using System.Net; using System.Threading.Tasks; namespace SFA.DAS.CommitmentsV2...
using MediatR; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using SFA.DAS.CommitmentsV2.Api.Types.Responses; using SFA.DAS.CommitmentsV2.Application.Queries.GetAllLearners; using System; using System.Net; using System.Threading.Ta...
Remove only remaining .NET desktop code
// 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; using System.IO; using System.Linq; using osu.Framework; using osu.Framework.Platform; using osu.Game.IPC; #if NET_FRAMEWORK using System.Runtime; #endif...
// 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; using System.IO; using System.Linq; using osu.Framework; using osu.Framework.Platform; using osu.Game.IPC; namespace osu.Desktop { public static clas...
Fix path, because NUnit does nto run from the current assembly dir
using System; using System.IO; using System.Net; using NUnit.Framework; namespace HttpMock.Integration.Tests { [TestFixture] public class EndpointsReturningFilesTests { private const string FILE_NAME = "transcode-input.mp3"; private const string RES_TRANSCODE_INPUT_MP3 = "./res/"+FILE_NAME; [Te...
using System; using System.IO; using System.Net; using NUnit.Framework; namespace HttpMock.Integration.Tests { [TestFixture] public class EndpointsReturningFilesTests { private const string FILE_NAME = "transcode-input.mp3"; private const string RES_TRANSCODE_INPUT_MP3 = "res\\"+FILE_NAME; [Tes...
Fix authentication crash on edit
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace BeerCellier { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() ...
using System.Security.Claims; using System.Web.Helpers; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace BeerCellier { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { AreaRegistratio...
Remove unused references from example client
using System; using System.Reactive.Concurrency; using System.Reactive.Linq; using Obvs.Types; using Obvs.ActiveMQ.Configuration; using Obvs.Configuration; using Obvs.Example.Messages; using Obvs.Serialization.Json.Configuration; namespace Obvs.Example.Client { internal static class Program { private ...
using System; using Obvs.Types; using Obvs.ActiveMQ.Configuration; using Obvs.Configuration; using Obvs.Example.Messages; using Obvs.Serialization.Json.Configuration; namespace Obvs.Example.Client { internal static class Program { private static void Main(string[] args) { var broke...
Set NUnit tests to run scripts under the current domain for access to the same console.
using System; using System.CodeDom.Compiler; using System.IO; using System.Text; using IronAHK.Scripting; using NUnit.Framework; namespace Tests { [TestFixture] public partial class Scripting { [Test] public void RunScripts() { string path = string.Format("..{0}..{0}Scr...
using System; using System.CodeDom.Compiler; using System.IO; using System.Text; using IronAHK.Scripting; using NUnit.Framework; namespace Tests { [TestFixture] public partial class Scripting { [Test] public void RunScripts() { string path = string.Format("..{0}..{0}Scr...
Fix version number for the fake release
// Copyright 2017 The Noda Time Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using System.Collections.Generic; namespace NodaTime.Web.Models { /// <summary> /// Fake implementation of IReleaseRepository used in cases of em...
// Copyright 2017 The Noda Time Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using System.Collections.Generic; namespace NodaTime.Web.Models { /// <summary> /// Fake implementation of IReleaseRepository used in cases of em...
Set the driver property in TranslationUnitPass when adding new passes.
using System; using System.Collections.Generic; using System.Linq; using CppSharp.Passes; namespace CppSharp { /// <summary> /// This class is used to build passes that will be run against the AST /// that comes from C++. /// </summary> public class PassBuilder<T> { public List<T> Pass...
using System; using System.Collections.Generic; using System.Linq; using CppSharp.Passes; namespace CppSharp { /// <summary> /// This class is used to build passes that will be run against the AST /// that comes from C++. /// </summary> public class PassBuilder<T> { public List<T> Pass...
Increase nuget version to 2.0.0-beta02
using System.Reflection; // 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("CakeMail.RestClient")] [assembly: AssemblyDescription("CakeMail.RestClient is a...
using System.Reflection; // 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("CakeMail.RestClient")] [assembly: AssemblyDescription("CakeMail.RestClient is a...
Make a method static because it can be
using System; using System.Reflection; namespace Configgy.Coercion { /// <summary> /// A base class for any coercer attributes. /// </summary> [AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)] public abstract class ValueCoercerAttributeBase : Attribute, IValueCoer...
using System; using System.Reflection; namespace Configgy.Coercion { /// <summary> /// A base class for any coercer attributes. /// </summary> [AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)] public abstract class ValueCoercerAttributeBase : Attribute, IValueCoer...
Use ExceptionDispatchInfo to rethrow test class constructor exceptions, now that all other such exception rethrows use ExceptionDispatchInfo.
namespace Fixie { using System; using System.Reflection; using Internal; /// <summary> /// The context in which a test class is running. /// </summary> public class TestClass { readonly Action<Action<Case>> runCases; readonly bool isStatic; internal TestClass(Ty...
namespace Fixie { using System; using System.Reflection; using System.Runtime.ExceptionServices; using Internal; /// <summary> /// The context in which a test class is running. /// </summary> public class TestClass { readonly Action<Action<Case>> runCases; readonly ...
Change BuildAndOrExpr to use AndAlso & OrElse to make NHibernate Linq happy
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; namespace Breeze.Core { /** * @author IdeaBlade * */ public class AndOrPredicate : BasePredicate { private List<BasePredicate> _predicates; pu...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; namespace Breeze.Core { /** * @author IdeaBlade * */ public class AndOrPredicate : BasePredicate { private List<BasePredicate> _predicates; pu...
Remove unnecessary test step creating needless skins
// 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.Framework.Graphics; using osu.Framework.Testing; using osu.Game.Rulesets; using osu.Game.Rulesets.Osu; us...
// 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.Framework.Graphics; using osu.Framework.Testing; using osu.Game.Rulesets; using osu.Game.Rulesets.Osu; us...
Update lazer default combo colours to match stable
// 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 osuTK.Graphics; namespace osu.Game.Skinning { /// <summary> /// A skin configuration pre-populated with sane defaults. /// </summary> public class ...
// 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 osuTK.Graphics; namespace osu.Game.Skinning { /// <summary> /// A skin configuration pre-populated with sane defaults. /// </summary> public class ...
Remove HTML content type check from response filter because the check is performed in CassetteApplication instead.
using System; using System.IO; using System.Web; using Cassette.UI; namespace Cassette.Web { public class PlaceholderReplacingResponseFilter : MemoryStream { public PlaceholderReplacingResponseFilter(HttpResponseBase response, IPlaceholderTracker placeholderTracker) { th...
using System; using System.IO; using System.Web; using Cassette.UI; namespace Cassette.Web { public class PlaceholderReplacingResponseFilter : MemoryStream { public PlaceholderReplacingResponseFilter(HttpResponseBase response, IPlaceholderTracker placeholderTracker) { th...
Remove interface that is no longer user.
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Immutable; using System.Threading; using System.Threading.Tasks; using Micro...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Immutable; using System.Threading; using System.Threading.Tasks; using Micro...
Add Validation Messages to the Clone Section Screen
@model Portal.CMS.Web.Areas.PageBuilder.ViewModels.Section.CloneViewModel @{ Layout = ""; var pageList = Model.PageList.Select(x => new SelectListItem { Value = x.PageId.ToString(), Text = x.PageName }); } <div class="panel-inner"> @using (Html.BeginForm("Clone", "Section", FormMethod.Post)) { ...
@model Portal.CMS.Web.Areas.PageBuilder.ViewModels.Section.CloneViewModel @{ Layout = ""; var pageList = Model.PageList.Select(x => new SelectListItem { Value = x.PageId.ToString(), Text = x.PageName }); } <div class="panel-inner"> @using (Html.BeginForm("Clone", "Section", FormMethod.Post)) { ...
Simplify logic in user profile validation
using Microsoft.AspNet.Identity.EntityFramework; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; namespace AllReady.Models { // Add profile data for application users by adding properties to the ApplicationUser class public class ApplicationUser : IdentityUser...
using Microsoft.AspNet.Identity.EntityFramework; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; namespace AllReady.Models { // Add profile data for application users by adding properties to the ApplicationUser class public class ApplicationUser : IdentityUser...
Add group role to relationship
namespace AlertRoster.Web.Models { public class MemberGroup { public int MemberId { get; private set; } public virtual Member Member { get; private set; } public int GroupId { get; private set; } public virtual Group Group { get; private set; } private MemberGroup() ...
namespace AlertRoster.Web.Models { public class MemberGroup { public int MemberId { get; private set; } public virtual Member Member { get; private set; } public int GroupId { get; private set; } public virtual Group Group { get; private set; } public GroupRole Role ...
Fix license header from wrong project
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Graphics; using osu.Game.Beatmaps; using osu.Game.Screens.Edit.Components; using osu.Game.Tests.Beatmaps; using OpenTK; namespac...
// 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.Framework.Graphics; using osu.Game.Beatmaps; using osu.Game.Screens.Edit.Components; using osu.Game.Tests.Beatmaps; using OpenTK; namespace osu.Game...
Modify method to abstract which will force a compile error if the implementation is not supplied in a derived class rather than throw a NotImplementedException()
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using ThoughtWorks.CruiseControl.Remote.Parameters; namespace JenkinsTransport.BuildParameters { public abstract class BaseBuildParameter { public string Name { get; private set; } publ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; using ThoughtWorks.CruiseControl.Remote.Parameters; namespace JenkinsTransport.BuildParameters { public abstract class BaseBuildParameter { public string Name { get; private set; } publ...
Cover CMAC -> Key property setter with null check test
using Xunit; namespace OpenGost.Security.Cryptography { public abstract class CmacTest<T> : CryptoConfigRequiredTest where T : CMAC, new() { protected void VerifyCmac(string dataHex, string keyHex, string digestHex) { var digestBytes = digestHex.HexToByteArray(); ...
using System; using Xunit; namespace OpenGost.Security.Cryptography { public abstract class CmacTest<T> : CryptoConfigRequiredTest where T : CMAC, new() { protected void VerifyCmac(string dataHex, string keyHex, string digestHex) { var digestBytes = digestHex.HexToByteArray...
Make VisitingMind's Mind readable by VV
using Content.Server.Mobs; using Robust.Shared.GameObjects; namespace Content.Server.GameObjects.Components.Mobs { [RegisterComponent] public sealed class VisitingMindComponent : Component { public override string Name => "VisitingMind"; public Mind Mind { get; set; } public over...
using Content.Server.Mobs; using Robust.Shared.GameObjects; using Robust.Shared.ViewVariables; namespace Content.Server.GameObjects.Components.Mobs { [RegisterComponent] public sealed class VisitingMindComponent : Component { public override string Name => "VisitingMind"; [ViewVariables] ...
Remove Marshal.GetHRForLastWin32Error call from Diagnostics.Process
using System; using System.Threading; using Microsoft.Win32; using Microsoft.Win32.SafeHandles; using System.Runtime.InteropServices; using System.Runtime.Versioning; namespace System.Diagnostics { internal class ProcessWaitHandle : WaitHandle { [ResourceExposure(ResourceScope.None)] [ResourceCons...
using System; using System.Threading; using Microsoft.Win32; using Microsoft.Win32.SafeHandles; using System.Runtime.InteropServices; using System.Runtime.Versioning; namespace System.Diagnostics { internal class ProcessWaitHandle : WaitHandle { [ResourceExposure(ResourceScope.None)] [ResourceCons...
Use UseServer() instead of UseKestrel() to allow override in tests
using Microsoft.AspNetCore.Hosting; namespace MusicStore { public static class Program { public static void Main(string[] args) { var host = new WebHostBuilder() // We set the server before default args so that command line arguments can override it. ...
using Microsoft.AspNetCore.Hosting; namespace MusicStore { public static class Program { public static void Main(string[] args) { var host = new WebHostBuilder() // We set the server by name before default args so that command line arguments can override it. ...
Add assertion of only usage game-wide
// 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 JetBrains.Annotations; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Platform; nam...
// 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 System.Diagnostics; using JetBrains.Annotations; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using os...
Include build number in version
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("CollectdWinService")] [assembly: Assembl...
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("CollectdWinService")] [assembly:...
Fix show-build-chain logic to properly detect cloned build configs.
using System.Linq; using System.Threading.Tasks; using TeamCityApi.Helpers; using TeamCityApi.Logging; namespace TeamCityApi.UseCases { public class ShowBuildChainUseCase { private static readonly ILog Log = LogProvider.GetLogger(typeof(ShowBuildChainUseCase)); private readonly ITeamCityClien...
using System.Linq; using System.Threading.Tasks; using TeamCityApi.Helpers; using TeamCityApi.Logging; namespace TeamCityApi.UseCases { public class ShowBuildChainUseCase { private static readonly ILog Log = LogProvider.GetLogger(typeof(ShowBuildChainUseCase)); private readonly ITeamCityClien...
Duplicate some methods from TransformExtensions for convenience
using UnityEngine; namespace Alensia.Core.Common { public static class ComponentExtensions { public static T GetOrAddComponent<T>(this Component component) where T : Component { return component.GetComponent<T>() ?? component.gameObject.AddComponent<T>(); } } }
using System.Collections.Generic; using UnityEngine; namespace Alensia.Core.Common { public static class ComponentExtensions { public static T GetOrAddComponent<T>(this Component component) where T : Component { return component.GetComponent<T>() ?? component.gameObject.AddComponen...
Remove empty line in name spaces
using System.Data.Common; using System.Data.SqlClient; using DapperTesting.Core.Configuration; namespace DapperTesting.Core.Data { public class MsSqlConnectionFactory : IConnectionFactory { private readonly IConfiguration _configuration; public MsSqlConnectionFactory(IConfiguration configura...
using System.Data.Common; using System.Data.SqlClient; using DapperTesting.Core.Configuration; namespace DapperTesting.Core.Data { public class MsSqlConnectionFactory : IConnectionFactory { private readonly IConfiguration _configuration; public MsSqlConnectionFactory(IConfiguration configurat...
Fix global options for Integration test
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CalDavSynchronizer.Contracts; using CalDavSynchronizer.DataAccess; namespace CalDavSynchronizer.IntegrationTests.Infrastructure { class InMemoryGeneralOptionsDataAccess : IGeneralOptionsDataAcce...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CalDavSynchronizer.Contracts; using CalDavSynchronizer.DataAccess; namespace CalDavSynchronizer.IntegrationTests.Infrastructure { class InMemoryGeneralOptionsDataAccess : IGeneralOptionsDataAcce...
Fix inventory trying to update on every frame
using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.Events; public class Inventory : MonoBehaviour { public int[] inventorySlots; public UnityEvent InventoryChangedEvent; void Awake() { inventorySlots = new int[18]; } void Start() { for (int i = 0; i < in...
using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.Events; public class Inventory : MonoBehaviour { public int[] inventorySlots; public UnityEvent InventoryChangedEvent; protected bool isDirty; void Awake() { inventorySlots = new int[18]; } void Start() ...
Remove `[SuppressMessage]` - build break
// 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; using System.Diagnostics.CodeAnalysis; using Microsoft.AspNet.StaticFiles.Infrastructure; namespace Microsoft.AspNet....
// 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; using Microsoft.AspNet.StaticFiles.Infrastructure; namespace Microsoft.AspNet.StaticFiles { /// <summary> ///...
Test checkin with new repo
using System.Collections.Generic; using SecurityConsultantCore.Domain; using SecurityConsultantCore.Domain.Basic; namespace SecurityConsultantCore.Factories { public static class SecurityObjectFactory { private static SecurityObjectContainer _container; public static SecurityObject Create(str...
using System.Collections.Generic; using SecurityConsultantCore.Domain; using SecurityConsultantCore.Domain.Basic; namespace SecurityConsultantCore.Factories { public static class SecurityObjectFactory { private static SecurityObjectContainer _container; public static SecurityObject Create(str...
Fix algorithm not selected when adding a custom coin
using MultiMiner.Engine.Data; using MultiMiner.Utility.Forms; using MultiMiner.Xgminer.Data; using MultiMiner.Win.Extensions; using System; using MultiMiner.Engine; namespace MultiMiner.Win.Forms { public partial class CoinEditForm : MessageBoxFontForm { private readonly CryptoCoin cryptoCoin; ...
using MultiMiner.Engine.Data; using MultiMiner.Utility.Forms; using MultiMiner.Xgminer.Data; using MultiMiner.Win.Extensions; using System; using MultiMiner.Engine; namespace MultiMiner.Win.Forms { public partial class CoinEditForm : MessageBoxFontForm { private readonly CryptoCoin cryptoCoin; ...
Add dataTransferManager to Windows app.
using System; using wallabag.Common; using wallabag.ViewModel; using Windows.ApplicationModel.DataTransfer; using Windows.System; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace wallabag.Views { public sealed partial class ItemPage : basicPage { public ItemPage() { ...
using System; using wallabag.Common; using wallabag.ViewModel; using Windows.ApplicationModel.DataTransfer; using Windows.System; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace wallabag.Views { public sealed partial class ItemPage : basicPage { public ItemPage() { ...
Use DiplomContext in DI container
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Diploms.WebUI.Configuration; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.Extensions.Configuration; using Microsoft.Extensions...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Diploms.DataLayer; using Diploms.WebUI.Configuration; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.Extensions.Configuration; u...
Add the default constructor, eventually needed for migrations.
using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; namespace HelloWorldApp { public class HelloWorldDbContext : DbContext, IHelloWorldDbContext { public HelloWorldDbContext(DbContextOptions<HelloWorldDbContext> options) : base(options) { } public DbSet<Greet...
using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; namespace HelloWorldApp { public class HelloWorldDbContext : DbContext, IHelloWorldDbContext { public HelloWorldDbContext() { } public HelloWorldDbContext(DbContextOptions<HelloWorldDbContext> options) ...
Set test version to auto increment
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("Si...
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("Si...
Make fullname optional for receiver
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Text; using System.Threading.Tasks; using Dragon.Mail.Interfaces; namespace Dragon.Mail.Impl { public class DefaultReceiverMapper : IReceiverMapper { public void Map(dynamic receiver, Models.Mail mail...
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Text; using System.Threading.Tasks; using Dragon.Mail.Interfaces; namespace Dragon.Mail.Impl { public class DefaultReceiverMapper : IReceiverMapper { public void Map(dynamic receiver, Models.Mail mail...
Add a default icon when a ruleset isn't present
// 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.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Graphics; using osu.Game.Graphics.Containers; using OpenTK; namespace osu.Game.Bea...
// 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.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Graphics; using osu.Game.Graphics.Containers; using OpenTK; namespace osu.Game.Bea...
Use Json.Net type stamping instead of assembly qualified name.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.WindowsAzure.Storage.Table; using Newtonsoft.Json; namespace SlashTodo.Infrastructure.AzureTables { public abstract class ComplexTableEntity<T> : TableEntity { public str...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.WindowsAzure.Storage.Table; using Newtonsoft.Json; namespace SlashTodo.Infrastructure.AzureTables { public abstract class ComplexTableEntity<T> : TableEntity { private st...
Store an item when it is added to the basket
using NUnit.Framework; namespace engine.tests { [TestFixture] public class SupermarketAcceptanceTests { [Test] public void EmptyBasket() { var till = new Till(); var basket = new Basket(); var total = till.CalculatePrice(basket); va...
using NUnit.Framework; namespace engine.tests { [TestFixture] public class SupermarketAcceptanceTests { [Test] public void EmptyBasket() { var till = new Till(); var basket = new Basket(); var total = till.CalculatePrice(basket); va...
Remove website url from product description
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // http://stackoverflow.com/questions/62353/what-are-the-best-practices-for-using-assembly-attributes [assembly: AssemblyCompany("Mario Guggenberger / protyposis.net")] [assembly: Ass...
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // http://stackoverflow.com/questions/62353/what-are-the-best-practices-for-using-assembly-attributes [assembly: AssemblyCompany("Mario Guggenberger / protyposis.net")] [assembly: Ass...
Add Last4 in AU BECS Source and Deprecating Last3
namespace Stripe { using Newtonsoft.Json; public class SourceAuBecsDebit : StripeEntity { [JsonProperty("account_number")] public string AccountNumber { get; set; } [JsonProperty("bsb_number")] public string BsbNumber { get; set; } [JsonProperty("fingerprint")] ...
namespace Stripe { using System; using Newtonsoft.Json; public class SourceAuBecsDebit : StripeEntity { [JsonProperty("account_number")] public string AccountNumber { get; set; } [JsonProperty("bsb_number")] public string BsbNumber { get; set; } [JsonProperty("...
Fix typo in summary comment
// 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; using System.ComponentModel; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis { /// <summary> /// Specifies the C# ...
// 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; using System.ComponentModel; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis { /// <summary> /// Specifies the C# ...
Increment the stats counters in bulk
#region Copyright 2014 Exceptionless // This program is free software: you can redistribute it and/or modify it // under the terms of the GNU Affero General Public License as published // by the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // http://w...
#region Copyright 2014 Exceptionless // This program is free software: you can redistribute it and/or modify it // under the terms of the GNU Affero General Public License as published // by the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // http://w...
Fix for compatibility with AppVeyor
using System; using Nybus.Configuration; using Nybus.Logging; namespace Nybus.MassTransit { public class MassTransitOptions { public IQueueStrategy CommandQueueStrategy { get; set; } = new AutoGeneratedNameQueueStrategy(); public IErrorStrategy CommandErrorStrategy { get; set; } = new RetryEr...
using System; using Nybus.Configuration; using Nybus.Logging; namespace Nybus.MassTransit { public class MassTransitOptions { public IQueueStrategy CommandQueueStrategy { get; set; } = new AutoGeneratedNameQueueStrategy(); public IErrorStrategy CommandErrorStrategy { get; set; } = new RetryEr...
Add comment detailing why this is requried
// 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 osuTK.Graphics; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osu.Framework.Extensions.Color4Ex...
// 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 osuTK.Graphics; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osu.Framework.Extensions.Color4Ex...
Fix the broken doc build.
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Utilities { /// <summary> /// A helper class to provide hooks into the Unity camera exclusive Lifecycle events /// </summary> publi...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Utilities { /// <summary> /// A helper class to provide hooks into the Unity camera exclusive Lifecycle events /// </summary> publi...
Add problem 4. Photo Gallery
using System; class PhotoGallery { static void Main() { } }
using System; class PhotoGallery { static void Main() { int photosNumber = int.Parse(Console.ReadLine()); int day = int.Parse(Console.ReadLine()); int month = int.Parse(Console.ReadLine()); int year = int.Parse(Console.ReadLine()); int hours = int.Parse(Console.ReadLine...
Enable the content type to be editable when there is no result appearing based on the chosen keywords
@model StaticWidget <div class="rich-text @Model.HtmlClasses" @Html.DxaEntityMarkup()> @if (Model.TridionDocsItems != null) { foreach (TridionDocsItem item in Model.TridionDocsItems) { if (Model.DisplayContentAs.ToLower() == "embedded content") { <div c...
@model StaticWidget <div class="rich-text @Model.HtmlClasses" @Html.DxaEntityMarkup()> @if (Model.TridionDocsItems != null && Model.TridionDocsItems.Any()) { foreach (TridionDocsItem item in Model.TridionDocsItems) { if (Model.DisplayContentAs.ToLower() == "embedded content") ...
Add call to Configure() and clean up comments.
using DemoDataAccess; using DemoDataAccess.Entity; using NHibernate.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DemoQueryUtil { class Program { static void Main(string[] args) { // Works, but Area is null var county = ...
using DemoDataAccess; using DemoDataAccess.Entity; using NHibernate.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DemoQueryUtil { class Program { static void Main(string[] args) { FluentConfiguration.Configure(); // Wor...
Revise unit tests for Actions.Win32Window
using System; using System.Diagnostics.CodeAnalysis; using System.Windows; using Microsoft.VisualStudio.TestTools.UnitTesting; using ThScoreFileConverter.Actions; using ThScoreFileConverterTests.Models; namespace ThScoreFileConverterTests.Actions { [TestClass] public class Win32WindowTests { [Test...
using System; using System.Diagnostics.CodeAnalysis; using System.Windows; using System.Windows.Interop; using Microsoft.VisualStudio.TestTools.UnitTesting; using ThScoreFileConverter.Actions; using ThScoreFileConverterTests.Models; namespace ThScoreFileConverterTests.Actions { [TestClass] public class Win32W...
Add ShouldSerializeDirectives to pass test ensuring it's only serialized when non-empty
using Newtonsoft.Json; using System.Collections.Generic; namespace Alexa.NET.Response { public class ResponseBody { [JsonProperty("outputSpeech", NullValueHandling = NullValueHandling.Ignore)] public IOutputSpeech OutputSpeech { get; set; } [JsonProperty("card", NullValueHandling = Nu...
using Newtonsoft.Json; using System.Collections.Generic; namespace Alexa.NET.Response { public class ResponseBody { [JsonProperty("outputSpeech", NullValueHandling = NullValueHandling.Ignore)] public IOutputSpeech OutputSpeech { get; set; } [JsonProperty("card", NullValueHandling = Nu...
Store car value on grid when car is moved via byte array
// NetGameExtension.cs // <copyright file="NetGameExtension.cs"> This code is protected under the MIT License. </copyright> using Tron; namespace Networking.Extensions { /// <summary> /// An extension class for the game containing useful tools for a networked game of tron. /// </summary> public static...
// NetGameExtension.cs // <copyright file="NetGameExtension.cs"> This code is protected under the MIT License. </copyright> using Tron; namespace Networking.Extensions { /// <summary> /// An extension class for the game containing useful tools for a networked game of tron. /// </summary> public static...
Add inline null checks as requested
using System.Web.Http.ExceptionHandling; using Umbraco.Core; using Umbraco.Core.Composing; using Umbraco.Core.Logging; namespace Umbraco.Web.WebApi { /// <summary> /// Used to log unhandled exceptions in webapi controllers /// </summary> public class UnhandledExceptionLogger : ExceptionLogger { ...
using System.Web.Http.ExceptionHandling; using Umbraco.Core; using Umbraco.Core.Composing; using Umbraco.Core.Logging; namespace Umbraco.Web.WebApi { /// <summary> /// Used to log unhandled exceptions in webapi controllers /// </summary> public class UnhandledExceptionLogger : ExceptionLogger { ...
Remove test for "DisableColorCompression" flag.
using System; using dotless.Core.Parser; using dotless.Core.Parser.Infrastructure; namespace dotless.Test.Specs.Compression { using NUnit.Framework; public class ColorsFixture : CompressedSpecFixtureBase { [Test] public void Colors() { AssertExpression("#fea", "#fea"); ...
using System; using dotless.Core.Parser; using dotless.Core.Parser.Infrastructure; namespace dotless.Test.Specs.Compression { using NUnit.Framework; public class ColorsFixture : CompressedSpecFixtureBase { [Test] public void Colors() { AssertExpression("#fea", "#fea"); ...
Call ToString() instead of Enum.GetName
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Linq; using System.Collections.Concurrent; using Microsoft.CodeAnalysis.Options; using R...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Linq; using System.Collections.Concurrent; using Microsoft.CodeAnalysis.Options; using R...
Fix namespace issue after refactor of startup
namespace Moya.Runner.Console { using System; using Extensions; class Program { private static void Main(string[] args) { try { new Startup().Run(args); } catch(Exception e) { Console.Error.Writ...
namespace Moya.Runner.Console { using System; using Extensions; class Program { private static void Main(string[] args) { try { new Startup.Startup().Run(args); } catch(Exception e) { Console.Er...