Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Add more logic to the custom action.
using System; using Microsoft.Deployment.WindowsInstaller; namespace Wix.CustomActions { using System.IO; public class CustomActions { [CustomAction] public static ActionResult CloseIt(Session session) { try { const string fileFullPath = @"c...
using System; using Microsoft.Deployment.WindowsInstaller; namespace Wix.CustomActions { using System.IO; using System.Diagnostics; public class CustomActions { [CustomAction] public static ActionResult CloseIt(Session session) { try { ...
Initialize android test library on contructor
using UnityEngine; namespace com.adjust.sdk.test { public class TestFactoryAndroid : ITestFactory { private string _baseUrl; private AndroidJavaObject ajoTestLibrary; private CommandListenerAndroid onCommandReceivedListener; public TestFactoryAndroid(string baseUrl) { ...
using UnityEngine; namespace com.adjust.sdk.test { public class TestFactoryAndroid : ITestFactory { private string _baseUrl; private AndroidJavaObject ajoTestLibrary; private CommandListenerAndroid onCommandReceivedListener; public TestFactoryAndroid(string baseUrl) { ...
Adjust output directory in script
#addin "Cake.FileHelpers" var TARGET = Argument ("target", Argument ("t", "Default")); var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999"); Task ("Default").Does (() => { const string sln = "./../Vibrate.sln"; const string cfg = "Release"; NuGetRestore (sln); ...
#addin "Cake.FileHelpers" var TARGET = Argument ("target", Argument ("t", "Default")); var version = EnvironmentVariable ("APPVEYOR_BUILD_VERSION") ?? Argument("version", "0.0.9999"); Task ("Default").Does (() => { const string sln = "./../Vibrate.sln"; const string cfg = "Release"; NuGetRestore (sln); ...
Add commission as Employee Pay Type
using System.Collections.Generic; namespace CertiPay.Payroll.Common { /// <summary> /// Describes how an employee pay is calculated /// </summary> public enum EmployeePayType : byte { /// <summary> /// Employee earns a set salary per period of time, i.e. $70,000 yearly /// ...
using System.Collections.Generic; namespace CertiPay.Payroll.Common { /// <summary> /// Describes how an employee pay is calculated /// </summary> public enum EmployeePayType : byte { /// <summary> /// Employee earns a set salary per period of time, i.e. $70,000 yearly /// ...
Update controller for request validation
using System.Web.Mvc; using Twilio.TwiML; using Twilio.TwiML.Mvc; using ValidateRequestExample.Filters; namespace ValidateRequestExample.Controllers { public class IncomingController : TwilioController { [ValidateTwilioRequest] public ActionResult Voice(string from) { var re...
using System.Web.Mvc; using Twilio.AspNet.Mvc; using Twilio.TwiML; using ValidateRequestExample.Filters; namespace ValidateRequestExample.Controllers { public class IncomingController : TwilioController { [ValidateTwilioRequest] public ActionResult Voice(string from) { var m...
Fix test for NotNullOrEmpty passing check.
using System; using NUnit.Framework; using DevTyr.Gullap; namespace DevTyr.Gullap.Tests.With_Guard.For_NotNullOrEmpty { [TestFixture] public class When_argument_is_not_null { [Test] public void Should_pass () { Guard.NotNullOrEmpty ("", null); Assert.Pass (); } } }
using System; using NUnit.Framework; using DevTyr.Gullap; namespace DevTyr.Gullap.Tests.With_Guard.For_NotNullOrEmpty { [TestFixture] public class When_argument_is_not_null_or_empty { [Test] public void Should_pass () { Guard.NotNullOrEmpty ("Test", null); Assert.Pass (); } } }
Remove EnableCors attribute from controller
using BankService.Domain.Contracts; using BankService.Domain.Models; using Microsoft.AspNet.Cors; using Microsoft.AspNet.Mvc; using System.Collections.Generic; namespace BankService.Api.Controllers { [EnableCors("MyPolicy")] [Route("api/accountHolders")] public class AccountHolderController : Controller ...
using BankService.Domain.Contracts; using BankService.Domain.Models; using Microsoft.AspNet.Mvc; using System.Collections.Generic; namespace BankService.Api.Controllers { [Route("api/accountHolders")] public class AccountHolderController : Controller { private readonly IAccountHolderRepository acc...
Hide UserId by Editing in KendoGrid PopUp
namespace VotingSystem.Web.Areas.User.ViewModels { using System; using System.Collections.Generic; using System.Web.Mvc; using VotingSystem.Models; using VotingSystem.Web.Infrastructure.Mapping; using AutoMapper; public class UserPollsViewModel : IMapFrom<Poll>, IHaveCustomMap...
namespace VotingSystem.Web.Areas.User.ViewModels { using System; using System.Collections.Generic; using System.Web.Mvc; using VotingSystem.Models; using VotingSystem.Web.Infrastructure.Mapping; using AutoMapper; public class UserPollsViewModel : IMapFrom<Poll>, IHaveCustomMap...
Fix test to work in any timezone
using Harvest.Net.Models; using System; using System.Linq; using Xunit; namespace Harvest.Net.Tests { public class TimeTrackingFacts : FactBase, IDisposable { DayEntry _todelete = null; [Fact] public void Daily_ReturnsResult() { var result = Api.Daily(); ...
using Harvest.Net.Models; using System; using System.Linq; using Xunit; namespace Harvest.Net.Tests { public class TimeTrackingFacts : FactBase, IDisposable { DayEntry _todelete = null; [Fact] public void Daily_ReturnsResult() { var result = Api.Daily(); ...
Use the aspnet core built-in GetDisplayUrl method.
using Abp.Dependency; using Abp.EntityHistory; using Abp.Runtime; using JetBrains.Annotations; using Microsoft.AspNetCore.Http; using System.Text; namespace Abp.AspNetCore.EntityHistory { /// <summary> /// Implements <see cref="IEntityChangeSetReasonProvider"/> to get reason from HTTP request. /// </summa...
using Abp.Dependency; using Abp.EntityHistory; using Abp.Runtime; using JetBrains.Annotations; using Microsoft.AspNetCore.Http; using System.Text; using Microsoft.AspNetCore.Http.Extensions; namespace Abp.AspNetCore.EntityHistory { /// <summary> /// Implements <see cref="IEntityChangeSetReasonProvider"/> to g...
Fix unit of work ctor param
using System; using System.Data.Entity; using PhotoLife.Data.Contracts; namespace PhotoLife.Data { public class UnitOfWork : IUnitOfWork { private readonly DbContext dbContext; public UnitOfWork(DbContext context) { if (context == null) { throw ...
using System; using PhotoLife.Data.Contracts; namespace PhotoLife.Data { public class UnitOfWork : IUnitOfWork { private readonly IPhotoLifeEntities dbContext; public UnitOfWork(IPhotoLifeEntities context) { if (context == null) { throw new Argu...
Scale up and down in demo
namespace Worker.Scalable { using King.Service; using System.Diagnostics; using System.Threading.Tasks; public class ScalableTask : IDynamicRuns { public int MaximumPeriodInSeconds { get { return 30; } } public int MinimumPeriodInSeconds { ...
namespace Worker.Scalable { using King.Service; using System; using System.Diagnostics; using System.Threading.Tasks; public class ScalableTask : IDynamicRuns { public int MaximumPeriodInSeconds { get { return 30; } } ...
Add filter property to trending shows request.
namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common { using Base.Get; using Objects.Basic; using Objects.Get.Shows.Common; internal class TraktShowsTrendingRequest : TraktGetRequest<TraktPaginationListResult<TraktTrendingShow>, TraktTrendingShow> { internal TraktShowsTrendingRequest...
namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common { using Base; using Base.Get; using Objects.Basic; using Objects.Get.Shows.Common; internal class TraktShowsTrendingRequest : TraktGetRequest<TraktPaginationListResult<TraktTrendingShow>, TraktTrendingShow> { internal TraktShow...
Access dos not support such join syntax.
using System; using System.Linq; using LinqToDB; using NUnit.Framework; namespace Tests.UserTests { [TestFixture] public class Issue1556Tests : TestBase { [Test] public void Issue1556Test([DataSources(ProviderName.Sybase, ProviderName.OracleNative)] string context) { using (var db = GetDataContext(conte...
using System; using System.Linq; using LinqToDB; using NUnit.Framework; namespace Tests.UserTests { [TestFixture] public class Issue1556Tests : TestBase { [Test] public void Issue1556Test( [DataSources(ProviderName.Sybase, ProviderName.OracleNative, ProviderName.Access)] string context) { using (var ...
Fix integration tests for tracing
using System.Net.Http; using System.Threading.Tasks; using Anemonis.MicrosoftOffice.AddinHost.Middleware; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.DependencyInjection; using Microsoft.VisualStudio.TestTools.UnitTesting; usin...
using System.Net.Http; using System.Threading.Tasks; using Anemonis.MicrosoftOffice.AddinHost.Middleware; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.DependencyInjection; using Microsoft.VisualStudio.TestTools.UnitTesting; usin...
Access always to list of branches
using GRA.Domain.Service; using GRA.Controllers.ViewModel.ParticipatingBranches; using Microsoft.AspNetCore.Mvc; using System; using System.Threading.Tasks; namespace GRA.Controllers { public class ParticipatingBranchesController : Base.UserController { private readonly SiteService _siteService; ...
using GRA.Domain.Service; using GRA.Controllers.ViewModel.ParticipatingBranches; using Microsoft.AspNetCore.Mvc; using System; using System.Threading.Tasks; namespace GRA.Controllers { public class ParticipatingBranchesController : Base.UserController { private readonly SiteService _siteService; ...
Fix wind Degree not using the right name for the json file
using System; namespace OpenWeatherMap.Standard.Models { /// <summary> /// wind model /// </summary> [Serializable] public class Wind : BaseModel { private float speed, gust; private int deg; /// <summary> /// wind speed /// </summary> public fl...
using Newtonsoft.Json; using System; namespace OpenWeatherMap.Standard.Models { /// <summary> /// wind model /// </summary> [Serializable] public class Wind : BaseModel { private float speed, gust; private int deg; /// <summary> /// wind speed /// </sum...
Use the user profile as scan entry point instead of drives like in Windows
using RepoZ.Api.IO; using System; using System.Linq; namespace RepoZ.Api.Mac.IO { public class MacDriveEnumerator : IPathProvider { public string[] GetPaths() { return System.IO.DriveInfo.GetDrives() .Where(d => d.DriveType == System.IO.DriveType.Fixed) ...
using RepoZ.Api.IO; using System; using System.Linq; namespace RepoZ.Api.Mac.IO { public class MacDriveEnumerator : IPathProvider { public string[] GetPaths() { return new string[] { Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) }; } } }
Set the default parser to the Penguin Parser as it has better error reporting and is faster
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sprache; using System.Text.RegularExpressions; using KVLib.KeyValues; namespace KVLib { /// <summary> /// Parser entry point for reading Key Value strings /// </summary> ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sprache; using System.Text.RegularExpressions; using KVLib.KeyValues; namespace KVLib { /// <summary> /// Parser entry point for reading Key Value strings /// </summary> ...
Fix nested list item space before to 2 characters GH-14
 using System; using System.Linq; using HtmlAgilityPack; namespace ReverseMarkdown.Converters { public class Li : ConverterBase { public Li(Converter converter) : base(converter) { this.Converter.Register("li", this); } public override string Convert(HtmlNode node) { string content = this.Tre...
 using System; using System.Linq; using HtmlAgilityPack; namespace ReverseMarkdown.Converters { public class Li : ConverterBase { public Li(Converter converter) : base(converter) { this.Converter.Register("li", this); } public override string Convert(HtmlNode node) { string content = this.Tre...
Use racial attack bonus to compute current attack.
 namespace DungeonsAndDragons.DOF { public class Character { public int Level { get; set; } public int Strength { get; set; } public int Dexterity { get; set; } public IWeapon CurrentWeapon { get; set; } public int StrengthModifier { get { return Str...
 namespace DungeonsAndDragons.DOF { public class Character { public int Level { get; set; } public int Strength { get; set; } public int Dexterity { get; set; } public IWeapon CurrentWeapon { get; set; } public int StrengthModifier { get { return Str...
Add support for `ExpiryCheck` on Issuing `Authorization`
namespace Stripe.Issuing { using Newtonsoft.Json; public class VerificationData : StripeEntity<VerificationData> { /// <summary> /// One of <c>match</c>, <c>mismatch</c>, or <c>not_provided</c>. /// </summary> [JsonProperty("address_line1_check")] public string Addre...
namespace Stripe.Issuing { using Newtonsoft.Json; public class VerificationData : StripeEntity<VerificationData> { /// <summary> /// One of <c>match</c>, <c>mismatch</c>, or <c>not_provided</c>. /// </summary> [JsonProperty("address_line1_check")] public string Addre...
Fix trailing slash in Url
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Requests { public class Schema { public string Url { get; private set; } public string Base { get; private set; } public string Path { get; private set; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Requests { public class Schema { public string Url { get; private set; } public string Base { get; private set; } public string Path { get; private set; } ...
Add a quick little demo of using a function from the shared class library to ConsoleApp1
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int x = ClassLibrary1.Class1.ReturnFive(); Console.WriteLine("Hello World!"); } } }
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { // Quick little demo of using a function from the shared class library int x = ClassLibrary1.Class1.ReturnFive(); System.Diagnostics.Debug.Assert(x == 5); Co...
Add link to org chart
@model IEnumerable<Unit> <div class="page-header"> <h1>Units @Html.ActionLink("Add New", "New", "Units", null, new { @class = "btn btn-default" })</h1> </div> <table class="table table-striped"> <thead> <tr> <th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Name)</th> <th>@Html...
@model IEnumerable<Unit> <div class="page-header"> <h1>Units @Html.ActionLink("Add New", "New", "Units", null, new { @class = "btn btn-default" })</h1> </div> <table class="table table-striped"> <thead> <tr> <th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Name)</th> <th>@Html...
Allow settings to be passed as well
using System; using System.Net.Http; using System.Threading.Tasks; using Microsoft.Extensions.Options; using Newtonsoft.Json; namespace Meraki { public partial class MerakiClient { private readonly HttpClient _client; private readonly UrlFormatProvider _formatter = new UrlFormatProvider(); ...
using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Net.Http; using System.Threading.Tasks; using Microsoft.Extensions.Options; using Newtonsoft.Json; namespace Meraki { public partial class MerakiClient { private readonly HttpClient _client; private readonl...
Create exec engine on load and pass context to script
using System; using System.Collections.Generic; using System.Linq; using Duality; using RockyTV.Duality.Plugins.IronPython.Resources; using IronPython.Hosting; using IronPython.Runtime; using IronPython.Compiler; using Microsoft.Scripting; using Microsoft.Scripting.Hosting; using Duality.Editor; namespace RockyTV....
using System; using System.Collections.Generic; using System.Linq; using Duality; using RockyTV.Duality.Plugins.IronPython.Resources; using IronPython.Hosting; using IronPython.Runtime; using IronPython.Compiler; using Microsoft.Scripting; using Microsoft.Scripting.Hosting; using Duality.Editor; namespace RockyTV....
Add smoke test to Status controller
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace SFA.DAS.EmployerUsers.Api.Controllers { [RoutePrefix("api/status")] public class StatusController : ApiController { [Route("")] public IHttpActionRe...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using System.Web.Http; using SFA.DAS.EmployerUsers.Api.Orchestrators; namespace SFA.DAS.EmployerUsers.Api.Controllers { [RoutePrefix("api/status")] public class StatusCont...
Break build to test TeamCity.
namespace Siftables { public partial class MainWindowView { public MainWindowView() { InitializeComponent(); } } }
namespace Siftables { public partial class MainWindowView { public MainWindowView() { InitializeComponent(); DoSomething(); } } }
Fix spelling error in summary comment.
namespace Fixie { using Internal; using Internal.Expressions; /// <summary> /// Subclass Discovery to customize test discovery rules. /// /// The default discovery rules are applied to a test assembly whenever the test /// assembly includes no such subclass. /// /// By defualt, ...
namespace Fixie { using Internal; using Internal.Expressions; /// <summary> /// Subclass Discovery to customize test discovery rules. /// /// The default discovery rules are applied to a test assembly whenever the test /// assembly includes no such subclass. /// /// By default, ...
Use stable version of JQueryMobile.
using System.Web.UI; using IntelliFactory.WebSharper; namespace IntelliFactory.WebSharper.JQuery.Mobile.Resources { [IntelliFactory.WebSharper.Core.Attributes.Require(typeof(IntelliFactory.WebSharper.JQuery.Resources.JQuery))] public class JQueryMobile : IntelliFactory.WebSharper.Core.Resources.BaseResou...
using System.Web.UI; using IntelliFactory.WebSharper; namespace IntelliFactory.WebSharper.JQuery.Mobile.Resources { [IntelliFactory.WebSharper.Core.Attributes.Require(typeof(IntelliFactory.WebSharper.JQuery.Resources.JQuery))] public class JQueryMobile : IntelliFactory.WebSharper.Core.Resources.BaseResou...
Disable parallel execution for tests
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("FakeHttpContext.Tests")] [assembly: Assemb...
using System.Reflection; using System.Runtime.InteropServices; using Xunit; [assembly: CollectionBehavior(DisableTestParallelization = true)] // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an...
Replace test with test stub
#region Usings using NUnit.Framework; #endregion namespace UnitTests { [TestFixture] public class UnitTest1 { [Test] public void TestMethod1() { Assert.True(true); } } }
#region Usings using NUnit.Framework; using WebApplication.Controllers; #endregion namespace UnitTests { [TestFixture] public class UnitTest1 { [Test] public void TestMethod1() { var controller = new HabitController(); Assert.True(true); } } }
Make sure there is only one MobileServiceClient
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. using Microsoft.WindowsAzure.MobileServices; namespace MyDriving.AzureClient { public class AzureClient : IAzureClient { const string DefaultMobileServiceU...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. using Microsoft.WindowsAzure.MobileServices; namespace MyDriving.AzureClient { public class AzureClient : IAzureClient { const string DefaultMobileServiceU...
Correct feature attribute to indicate dependency.
using Lombiq.HelpfulExtensions.Extensions.SiteTexts.Services; using Microsoft.Extensions.DependencyInjection; using OrchardCore.Data.Migration; using OrchardCore.Modules; namespace Lombiq.HelpfulExtensions.Extensions.SiteTexts; [Feature(FeatureIds.SiteTexts)] public class Startup : StartupBase { public override v...
using Lombiq.HelpfulExtensions.Extensions.SiteTexts.Services; using Microsoft.Extensions.DependencyInjection; using OrchardCore.Data.Migration; using OrchardCore.Modules; namespace Lombiq.HelpfulExtensions.Extensions.SiteTexts; [Feature(FeatureIds.SiteTexts)] public class Startup : StartupBase { public override v...
Create Label failing due to null Color & ExternalID being sent to API
using Newtonsoft.Json; namespace Clubhouse.io.net.Entities.Labels { public class ClubhouseCreateLabelParams { [JsonProperty(PropertyName = "color")] public string Color { get; set; } [JsonProperty(PropertyName = "external_id")] public string ExternalID { get; set; } [...
using Newtonsoft.Json; namespace Clubhouse.io.net.Entities.Labels { public class ClubhouseCreateLabelParams { [JsonProperty(PropertyName = "color", NullValueHandling = NullValueHandling.Ignore)] public string Color { get; set; } [JsonProperty(PropertyName = "external_id", NullValueHan...
Add DocumentDb connection to main kotori config
using System.Collections.Generic; namespace KotoriCore.Configuration { /// <summary> /// Kotori main configuration. /// </summary> public class Kotori { /// <summary> /// Gets or sets the instance. /// </summary> /// <value>The instance.</value> public strin...
using System.Collections.Generic; namespace KotoriCore.Configuration { /// <summary> /// Kotori main configuration. /// </summary> public class Kotori { /// <summary> /// Gets or sets the instance. /// </summary> /// <value>The instance.</value> public strin...
Change because lqr support was added to the Linux and macOS build.
// Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unless req...
// Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unless req...
Fix mono bug in the FontHelper class
using System; using System.Drawing; using NUnit.Framework; using Palaso.UI.WindowsForms; namespace PalasoUIWindowsForms.Tests.FontTests { [TestFixture] public class FontHelperTests { [SetUp] public void SetUp() { // setup code goes here } [TearDown] public void TearDown() { // tear down code ...
using System; using System.Drawing; using System.Linq; using NUnit.Framework; using Palaso.UI.WindowsForms; namespace PalasoUIWindowsForms.Tests.FontTests { [TestFixture] public class FontHelperTests { [Test] public void MakeFont_FontName_ValidFont() { using (var sourceFont = SystemFonts.DefaultFont) {...
Increase test wait times (appveyor be slow)
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading; using NUnit.Framework; using osu.Framework.Audio; namespace osu.Framework.Tests.Audio { [TestFixture] public class AudioCollectionManage...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading; using NUnit.Framework; using osu.Framework.Audio; namespace osu.Framework.Tests.Audio { [TestFixture] public class AudioCollectionManage...
Fix unit test so it does unprotecting and padding
using NUnit.Framework; using SecretSplitting; namespace ElectronicCash.Tests { [TestFixture] class SecretSplittingTests { private static readonly byte[] Message = Helpers.GetBytes("Supersecretmessage"); private static readonly byte[] RandBytes = Helpers.GetRandomBytes(Helpers.GetString(Mes...
using NUnit.Framework; using SecretSplitting; namespace ElectronicCash.Tests { [TestFixture] class SecretSplittingTests { private static readonly byte[] Message = Helpers.GetBytes("Supersecretmessage"); private static readonly byte[] RandBytes = Helpers.GetRandomBytes(Helpers.GetString(Mes...
Fix string comparison for URL history
using System; using System.Collections.Generic; using System.Linq; using System.Security.Policy; using System.Text; using System.Threading.Tasks; using XHRTool.XHRLogic.Common; namespace XHRTool.UI.WPF.ViewModels { [Serializable] public class UrlHistoryModel { public UrlHistoryModel(string url, st...
using System; using System.Collections.Generic; using System.Linq; using System.Security.Policy; using System.Text; using System.Threading.Tasks; using XHRTool.XHRLogic.Common; namespace XHRTool.UI.WPF.ViewModels { [Serializable] public class UrlHistoryModel { public UrlHistoryModel(string url, st...
Fix BillingDetails on PaymentMethod creation to have the right params
namespace Stripe { using Newtonsoft.Json; public class BillingDetailsOptions : INestedOptions { [JsonProperty("address")] public AddressOptions Address { get; set; } [JsonProperty("country")] public string Country { get; set; } [JsonProperty("line1")] publi...
namespace Stripe { using Newtonsoft.Json; public class BillingDetailsOptions : INestedOptions { [JsonProperty("address")] public AddressOptions Address { get; set; } [JsonProperty("email")] public string Email { get; set; } [JsonProperty("name")] public str...
Add test for loading spinner with box
// 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.Shapes; using osu.Game.Graphics.UserInterface; using osuTK.Graphics; namespace osu.Game.Tests.Visual.UserInte...
// 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.Shapes; using osu.Game.Graphics.UserInterface; using osuTK.Graphics; namespace osu.Game.Tests.Visual.UserInte...
Fix U4-2711 add Null Check to ToXMl method
using System.Xml; namespace umbraco.editorControls.imagecropper { public class DataTypeData : umbraco.cms.businesslogic.datatype.DefaultData { public DataTypeData(umbraco.cms.businesslogic.datatype.BaseDataType DataType) : base(DataType) { } public override XmlNode ToXMl(XmlDocument d...
using System.Xml; namespace umbraco.editorControls.imagecropper { public class DataTypeData : umbraco.cms.businesslogic.datatype.DefaultData { public DataTypeData(umbraco.cms.businesslogic.datatype.BaseDataType DataType) : base(DataType) { } public override XmlNode ToXMl(XmlDocument d...
Use two shift registers with two bar graphs and an collection
using System; using System.Threading.Tasks; using Treehopper; using Treehopper.Libraries.Displays; namespace LedShiftRegisterDemo { class Program { static void Main(string[] args) { App().Wait(); } static async Task App() { var board = await Con...
using System; using System.Linq; using System.Threading.Tasks; using Treehopper; using Treehopper.Libraries.Displays; namespace LedShiftRegisterDemo { class Program { static void Main(string[] args) { App().Wait(); } static async Task App() { va...
Add test for authorization requirement in TraktUserListLikeRequest
namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Post.Bodyless; using TraktApiSharp.Experimental.Requests.Users.OAuth; [TestClass] public class TraktUserL...
namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Post.Bodyless; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Requests; [Test...
Refresh interface list on change
using System.Net.NetworkInformation; using System.Net.Sockets; using System.Windows.Forms; namespace Common { public partial class InterfaceSelectorComboBox : ComboBox { public InterfaceSelectorComboBox() { InitializeComponent(); NetworkInterface[] interfaces...
using System.Net.NetworkInformation; using System.Net.Sockets; using System.Windows.Forms; namespace Common { public partial class InterfaceSelectorComboBox : ComboBox { public InterfaceSelectorComboBox() { InitializeComponent(); Initalize(); ...
Correct error message in thread test
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using NUnit.Framework; namespace MaxMind.MaxMindDb.Test { [TestFixture] public class ThreadingTest { [Test] public void TestParallelFor() { var reader = ne...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using NUnit.Framework; namespace MaxMind.MaxMindDb.Test { [TestFixture] public class ThreadingTest { [Test] public void TestParallelFor() { var reader = ne...
Fix conversion from Xamarin Forms color to native color
using Xamarin.Forms; #if __ANDROID__ using NativePoint = Android.Graphics.PointF; using NativeColor = Android.Graphics.Color; #elif __IOS__ using NativePoint = CoreGraphics.CGPoint; #elif NETFX_CORE using NativePoint = Windows.Foundation.Point; #endif #if NETFX_CORE using NativeColor = Windows.UI.Color; #endif namesp...
using Xamarin.Forms; #if __ANDROID__ using NativePoint = Android.Graphics.PointF; using NativeColor = Android.Graphics.Color; #elif __IOS__ using NativePoint = CoreGraphics.CGPoint; #elif NETFX_CORE using NativePoint = Windows.Foundation.Point; #endif #if NETFX_CORE using NativeColor = Windows.UI.Color; #endif namesp...
Tweak initialization for email notification
using System; using System.Collections.Generic; namespace CertiPay.Common.Notifications { /// <summary> /// Represents an email notification sent a user, employee, or administrator /// </summary> public class EmailNotification : Notification { public static String QueueName { get { return ...
using System; using System.Collections.Generic; namespace CertiPay.Common.Notifications { /// <summary> /// Represents an email notification sent a user, employee, or administrator /// </summary> public class EmailNotification : Notification { public static String QueueName { get { return ...
Remove duplicae null check, simplified state check
using Avalonia.Controls; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace WalletWasabi.Gui.Converters { public class WindowStateAfterSartJsonConverter : JsonConverter { /// <inheritdoc /> public override bool CanConvert(Type objectType) { return objectType ...
using Avalonia.Controls; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace WalletWasabi.Gui.Converters { public class WindowStateAfterSartJsonConverter : JsonConverter { /// <inheritdoc /> public override bool CanConvert(Type objectType) { return objectType ...
Add logging to webjob start and end
using System.Linq; using System.Threading.Tasks; using Microsoft.Azure.WebJobs; using Microsoft.Extensions.Logging; using NServiceBus; using SFA.DAS.EmployerFinance.Data; using SFA.DAS.EmployerFinance.Interfaces; using SFA.DAS.EmployerFinance.Messages.Commands; namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs { ...
using System.Linq; using System.Threading.Tasks; using Microsoft.Azure.WebJobs; using Microsoft.Extensions.Logging; using NServiceBus; using SFA.DAS.EmployerFinance.Data; using SFA.DAS.EmployerFinance.Interfaces; using SFA.DAS.EmployerFinance.Messages.Commands; namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs { ...
Add text to fullscreen test.
using System; using System.Collections.Generic; using AgateLib; using AgateLib.DisplayLib; using AgateLib.Geometry; using AgateLib.InputLib; namespace Tests.DisplayTests { class FullscreenTest : IAgateTest { public string Name { get { return "Full Screen"; } } public string Category {...
using System; using System.Collections.Generic; using AgateLib; using AgateLib.DisplayLib; using AgateLib.Geometry; using AgateLib.InputLib; namespace Tests.DisplayTests { class FullscreenTest : IAgateTest { public string Name { get { return "Full Screen"; } } public string Category {...
Extend PlayerTags to accept name or entityID
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Frenetic.TagHandlers; using Frenetic.TagHandlers.Objects; using Voxalia.ServerGame.TagSystem.TagObjects; using Voxalia.ServerGame.ServerMainSystem; using Voxalia.ServerGame.EntitySystem; using Voxalia.Shared; namespace Voxalia...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Frenetic.TagHandlers; using Frenetic.TagHandlers.Objects; using Voxalia.ServerGame.TagSystem.TagObjects; using Voxalia.ServerGame.ServerMainSystem; using Voxalia.ServerGame.EntitySystem; using Voxalia.Shared; namespace Voxalia...
Create server side API for single multiple answer question
using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRepository { private readonly TrappistDbContext _dbContext...
using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRepository { private readonly TrappistDbContext _dbContext...
Fix PubSub converter attribute in protobuf
// Copyright 2020, Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
// Copyright 2020, Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
Make the system respect the Target ConnectionString Provider designation.
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.DependencyInjection; using PPTail.Entities; using PPTail.Interfaces; namespace PPTail { public class Program { public static void Main(string[] args) { (var argsAreValid, var argumentErrro...
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.DependencyInjection; using PPTail.Entities; using PPTail.Interfaces; using PPTail.Extensions; namespace PPTail { public class Program { const string _connectionStringProviderKey = "Provider"; public ...
Check assemblies reference System.Net.Http v4.0
using System.IO; using System.Reflection; using NUnit.Framework; public class GitHubAssemblyTests { [Theory] public void GitHub_Assembly_Should_Not_Reference_DesignTime_Assembly(string assemblyFile) { var asm = Assembly.LoadFrom(assemblyFile); foreach (var referencedAssembly in asm.GetRefe...
using System; using System.IO; using System.Reflection; using NUnit.Framework; public class GitHubAssemblyTests { [Theory] public void GitHub_Assembly_Should_Not_Reference_DesignTime_Assembly(string assemblyFile) { var asm = Assembly.LoadFrom(assemblyFile); foreach (var referencedAssembly ...
Add unit test for annual calendar
using System; using Quartz.Impl.Calendar; using Xunit; namespace Quartz.DynamoDB.Tests { /// <summary> /// Tests the DynamoCalendar serialisation for all quartz derived calendar types. /// </summary> public class CalendarSerialisationTests { [Fact] [Trait("Category", "Unit")] ...
using System; using Quartz.Impl.Calendar; using Xunit; namespace Quartz.DynamoDB.Tests { /// <summary> /// Tests the DynamoCalendar serialisation for all quartz derived calendar types. /// </summary> public class CalendarSerialisationTests { /// <summary> /// Tests that the descrip...
Debug try catch added to values controller
using KitKare.Data.Models; using KitKare.Data.Repositories; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using AutoMapper.QueryableExtensions; using KitKare.Server.ViewModels; namespace KitKare.Server.Controllers { public class ...
using KitKare.Data.Models; using KitKare.Data.Repositories; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using AutoMapper.QueryableExtensions; using KitKare.Server.ViewModels; namespace KitKare.Server.Controllers { public class ...
Change property types to better match up with Boo syntax
using System.Collections.Generic; namespace Casper { public class MSBuild : TaskBase { public string WorkingDirectory { get; set; } public string ProjectFile { get; set; } public string[] Targets { get; set; } public IDictionary<string, string> Properties { get; set; } public override void Execute() { ...
using System.Collections.Generic; using System.Collections; namespace Casper { public class MSBuild : TaskBase { public string WorkingDirectory { get; set; } public string ProjectFile { get; set; } public IList Targets { get; set; } public IDictionary Properties { get; set; } public override void Execute(...
Enable all kernels except FAT.
using System; using System.Collections.Generic; namespace Cosmos.TestRunner.Core { public static class TestKernelSets { public static IEnumerable<Type> GetStableKernelTypes() { yield return typeof(VGACompilerCrash.Kernel); ////yield return typeof(Cosmos.Compiler.Tests.E...
using System; using System.Collections.Generic; namespace Cosmos.TestRunner.Core { public static class TestKernelSets { public static IEnumerable<Type> GetStableKernelTypes() { yield return typeof(VGACompilerCrash.Kernel); //yield return typeof(Cosmos.Compiler.Tests.Enc...
Fix bug in Statement DTO mapper that expected bucket code to always have a value - it can be null.
using System; using BudgetAnalyser.Engine.BankAccount; using BudgetAnalyser.Engine.Budget; using JetBrains.Annotations; namespace BudgetAnalyser.Engine.Statement.Data { [AutoRegisterWithIoC] internal partial class Mapper_TransactionDto_Transaction { private readonly IAccountTypeRepositor...
using System; using BudgetAnalyser.Engine.BankAccount; using BudgetAnalyser.Engine.Budget; using JetBrains.Annotations; namespace BudgetAnalyser.Engine.Statement.Data { [AutoRegisterWithIoC] internal partial class Mapper_TransactionDto_Transaction { private readonly IAccountTypeRepositor...
Improve text control black list
using System.Collections.Generic; namespace JetBrains.ReSharper.Plugins.PresentationAssistant { public static class ActionIdBlacklist { private static readonly HashSet<string> ActionIds = new HashSet<string> { // These are the only actions that should be hidden "TextCon...
using System.Collections.Generic; namespace JetBrains.ReSharper.Plugins.PresentationAssistant { public static class ActionIdBlacklist { private static readonly HashSet<string> ActionIds = new HashSet<string> { // These are the only actions that should be hidden "TextCon...
Remove doc_values fielddata format for strings
using System.Runtime.Serialization; namespace Nest { public enum StringFielddataFormat { [EnumMember(Value = "paged_bytes")] PagedBytes, [EnumMember(Value = "doc_values")] DocValues, [EnumMember(Value = "disabled")] Disabled } }
using System.Runtime.Serialization; namespace Nest { public enum StringFielddataFormat { [EnumMember(Value = "paged_bytes")] PagedBytes, [EnumMember(Value = "disabled")] Disabled } }
Simplify the code that ensures a birthday is in the future.
using System; using Humanizer; namespace Repack { internal class Program { public static void Main(string[] args) { Console.WriteLine("Usage: repack [date]"); Console.WriteLine("Prints how long it is until your birthday."); Console.WriteLine("If you don't ...
using System; using Humanizer; namespace Repack { internal class Program { public static void Main(string[] args) { Console.WriteLine("Usage: repack [date]"); Console.WriteLine("Prints how long it is until your birthday."); Console.WriteLine("If you don't ...
Add new command option "skipDetect"
using CommandLine; using CommandLine.Text; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Builder { public class Options { [Option('a', "buildDir", Required = true, HelpText = "")] public string BuildDir { get; set;...
using CommandLine; using CommandLine.Text; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Builder { public class Options { [Option('a', "buildDir", Required = true, HelpText = "")] public string BuildDir { get; set;...
Use `Array.Empty` instead of constructed list
// 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.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; using Realms; using Realms.Sc...
// 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.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; using Realms; using Realms.Sc...
Fix System.Reflection.Context test to run on Desktop
// 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 Xunit; namespace System.Reflection.Context { public class CustomReflectionContextTests { [Fac...
// 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 Xunit; namespace System.Reflection.Context { public class CustomReflectionContextTests { [Fac...
Add support for LF record separator
using System; using System.Collections.Generic; using Arkivverket.Arkade.Util; namespace Arkivverket.Arkade.Core.Addml.Definitions { public class Separator { private static readonly Dictionary<string, string> SpecialSeparators = new Dictionary<string, string> { {"CRLF", "\r...
using System; using System.Collections.Generic; using Arkivverket.Arkade.Util; namespace Arkivverket.Arkade.Core.Addml.Definitions { public class Separator { private static readonly Dictionary<string, string> SpecialSeparators = new Dictionary<string, string> { {"CRLF", "\r...
Send the current song index as nullable
using Espera.Core; using Espera.Core.Management; using Newtonsoft.Json.Linq; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Threading.Tasks; namespace Espera.Services { public static class MobileHelper { public static async Task<byte[]> ...
using Espera.Core; using Espera.Core.Management; using Newtonsoft.Json.Linq; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Threading.Tasks; namespace Espera.Services { public static class MobileHelper { public static async Task<byte[]> ...
Make concat add to the eof array
using SubMapper.EnumerableMapping; using System; using System.Collections.Generic; using System.Linq; namespace SubMapper.EnumerableMapping.Adders { public static partial class PartialEnumerableMappingExtensions { public static PartialEnumerableMapping<TSubA, TSubB, IEnumerable<TSubIItem>, TSubJ, TSub...
using SubMapper.EnumerableMapping; using System; using System.Collections.Generic; using System.Linq; namespace SubMapper.EnumerableMapping.Adders { public static partial class PartialEnumerableMappingExtensions { public static PartialEnumerableMapping<TSubA, TSubB, IEnumerable<TSubIItem>, TSubJ, TSub...
Use the new factory for Typesetting context
using CSharpMath.Apple; namespace CSharpMath.Ios { static class IosMathLabels { public static AppleLatexView LatexView(string latex) { var typesettingContext = AppleTypesetters.CreateTypesettingContext() var view = new AppleLatexView(); view.SetLatex(latex); return view; } } ...
using CSharpMath.Apple; namespace CSharpMath.Ios { static class IosMathLabels { public static AppleLatexView LatexView(string latex) { var typesettingContext = AppleTypesetters.CreateLatinMath(); var view = new AppleLatexView(typesettingContext); view.SetLatex(latex); return view; ...
Correct default serialization strategy to `Default`
using System; using UnityEngine; namespace FullSerializer { /// <summary> /// Enables some top-level customization of Full Serializer. /// </summary> public static class fsConfig { /// <summary> /// The attributes that will force a field or property to be serialized. /// </summ...
using System; using UnityEngine; namespace FullSerializer { /// <summary> /// Enables some top-level customization of Full Serializer. /// </summary> public static class fsConfig { /// <summary> /// The attributes that will force a field or property to be serialized. /// </summ...
Improve argument exception message of scrobble post.
namespace TraktApiSharp.Objects.Post.Scrobbles { using Newtonsoft.Json; using System; public abstract class TraktScrobblePost : IValidatable { [JsonProperty(PropertyName = "progress")] public float Progress { get; set; } [JsonProperty(PropertyName = "app_version")] pub...
namespace TraktApiSharp.Objects.Post.Scrobbles { using Newtonsoft.Json; using System; public abstract class TraktScrobblePost : IValidatable { [JsonProperty(PropertyName = "progress")] public float Progress { get; set; } [JsonProperty(PropertyName = "app_version")] pub...
Add default request header to Payments API httpClient to look for version 2. Since removing the SecureHttpClient from PaymentEventsApiClient this header was lost. This only matters for data locks as that is the only controller action split by api version at present
using System.Net.Http; using SFA.DAS.CommitmentPayments.WebJob.Configuration; using SFA.DAS.Http; using SFA.DAS.Http.TokenGenerators; using SFA.DAS.NLog.Logger.Web.MessageHandlers; using SFA.DAS.Provider.Events.Api.Client; using SFA.DAS.Provider.Events.Api.Client.Configuration; using StructureMap; namespace SFA.DAS.C...
using System.Net.Http; using SFA.DAS.CommitmentPayments.WebJob.Configuration; using SFA.DAS.Http; using SFA.DAS.Http.TokenGenerators; using SFA.DAS.NLog.Logger.Web.MessageHandlers; using SFA.DAS.Provider.Events.Api.Client; using SFA.DAS.Provider.Events.Api.Client.Configuration; using StructureMap; namespace SFA.DAS.C...
Add extra tests and missing TestClass attribute.
// Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unless req...
// Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unless req...
Make comment say that 0x001 is RTLD_LOCAL + RTLD_LAZY
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Runtime.InteropServices; namespace osu.Framework.Platform.Linux.Native { public static class Library { [DllImport("l...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Runtime.InteropServices; namespace osu.Framework.Platform.Linux.Native { public static class Library { [DllImport("l...
Fix error when unserializing json object
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace PogoLocationFeeder.Helper { public class JsonSerializerSettingsCultureInvariant : JsonSerializerSettings { public JsonSeriali...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace PogoLocationFeeder.Helper { public class JsonSerializerSettingsCultureI...
Add filter property to most anticipated shows request.
namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common { using Base.Get; using Objects.Basic; using Objects.Get.Shows.Common; internal class TraktShowsMostAnticipatedRequest : TraktGetRequest<TraktPaginationListResult<TraktMostAnticipatedShow>, TraktMostAnticipatedShow> { internal Trak...
namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common { using Base; using Base.Get; using Objects.Basic; using Objects.Get.Shows.Common; internal class TraktShowsMostAnticipatedRequest : TraktGetRequest<TraktPaginationListResult<TraktMostAnticipatedShow>, TraktMostAnticipatedShow> { ...
Add dots to experiment names so they can be enabled as feature flags.
// 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.Composition; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; namespace Microsoft.CodeAnalysis.Experiments { inter...
// 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.Composition; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; namespace Microsoft.CodeAnalysis.Experiments { inter...
Add spotlighted beatmaps filter to beatmap listing
// 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.ComponentModel; using osu.Framework.Localisation; using osu.Game.Resources.Localisation.Web; namespace osu.Game.Overlays.BeatmapListing { public enum Se...
// 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.ComponentModel; using osu.Framework.Localisation; using osu.Game.Resources.Localisation.Web; namespace osu.Game.Overlays.BeatmapListing { public enum Se...
Call the correct implementation if IMessageHandler.ProcessMessage method
using System; using Shuttle.Core.Infrastructure; namespace Shuttle.Esb { public class DefaultMessageHandlerInvoker : IMessageHandlerInvoker { public MessageHandlerInvokeResult Invoke(IPipelineEvent pipelineEvent) { Guard.AgainstNull(pipelineEvent, "pipelineEvent"); var state = pipelineEvent.Pipeline.Stat...
using System; using System.Linq; using Shuttle.Core.Infrastructure; namespace Shuttle.Esb { public class DefaultMessageHandlerInvoker : IMessageHandlerInvoker { public MessageHandlerInvokeResult Invoke(IPipelineEvent pipelineEvent) { Guard.AgainstNull(pipelineEvent, "pipelineEvent"); var state = pipeline...
Remove get all with dynamic clause. SHould be handeled by user in own class. Otherwise forced to use FastCRUD
using System; using System.Collections.Generic; using System.Threading.Tasks; using Dapper.FastCrud; using Dapper.FastCrud.Configuration.StatementOptions.Builders; using Smooth.IoC.Dapper.Repository.UnitOfWork.Data; namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo { public abstract partial class Repository<...
using System; using System.Collections.Generic; using System.Threading.Tasks; using Dapper.FastCrud; using Dapper.FastCrud.Configuration.StatementOptions.Builders; using Smooth.IoC.Dapper.Repository.UnitOfWork.Data; namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo { public abstract partial class Repository<...
Add more arango specific attributes.
using System; namespace Arango.Client { [AttributeUsage(AttributeTargets.Property)] public class ArangoProperty : Attribute { public string Alias { get; set; } public bool Serializable { get; set; } public ArangoProperty() { Serializable = t...
using System; namespace Arango.Client { [AttributeUsage(AttributeTargets.Property)] public class ArangoProperty : Attribute { public bool Serializable { get; set; } public bool Identity { get; set; } public bool Key { get; set; } public bool Revision { get; set; }...
Allow NON_BOUNDED value to be used as constructor parameter.
using System; using System.Collections.Concurrent; using System.Threading; namespace Serilog.Sinks.PeriodicBatching { class BoundedConcurrentQueue<T> { const int NON_BOUNDED = -1; readonly ConcurrentQueue<T> _queue = new ConcurrentQueue<T>(); readonly int _queueLimit; int _c...
using System; using System.Collections.Concurrent; using System.Threading; namespace Serilog.Sinks.PeriodicBatching { class BoundedConcurrentQueue<T> { const int NON_BOUNDED = -1; readonly ConcurrentQueue<T> _queue = new ConcurrentQueue<T>(); readonly int _queueLimit; int _c...
Send proper 401 for access denied
using System.Web; using System.Web.UI; namespace Unicorn.ControlPanel { public class AccessDenied : IControlPanelControl { public void Render(HtmlTextWriter writer) { writer.Write("<h2>Access Denied</h2>"); writer.Write("<p>You need to <a href=\"/sitecore/admin/login.aspx?ReturnUrl={0}\">sign in to Siteco...
using System.Web; using System.Web.UI; namespace Unicorn.ControlPanel { public class AccessDenied : IControlPanelControl { public void Render(HtmlTextWriter writer) { writer.Write("<h2>Access Denied</h2>"); writer.Write("<p>You need to <a href=\"/sitecore/admin/login.aspx?ReturnUrl={0}\">sign in to Siteco...
Remove this last piece of hardcodedness
using System; namespace KnckoutBindingGenerater { public class KnockoutProxy { private readonly string m_ViewModelName; private readonly string m_PrimitiveObservables; private readonly string m_MethodProxies; private readonly string m_CollectionObservables; ...
using System; namespace KnckoutBindingGenerater { public class KnockoutProxy { private readonly string m_ViewModelName; private readonly string m_PrimitiveObservables; private readonly string m_MethodProxies; private readonly string m_CollectionObservables; ...
Access operator for array is now "item"
using System; using System.Collections.Generic; using System.Linq; using hw.UnitTest; namespace Reni.FeatureTest.Reference { [TestFixture] [ArrayElementType] [TargetSet(@" text: 'abcdefghijklmnopqrstuvwxyz'; pointer: ((text type >>)*1) array_reference instance (text); (pointer >> 7) dump_print; (pointer >>...
using System; using System.Collections.Generic; using System.Linq; using hw.UnitTest; namespace Reni.FeatureTest.Reference { [TestFixture] [ArrayElementType] [TargetSet(@" text: 'abcdefghijklmnopqrstuvwxyz'; pointer: ((text type item)*1) array_reference instance (text); pointer item(7) dump_print; pointer ...
Add missing client method to interface
using System.Threading; using System.Threading.Tasks; using SFA.DAS.CommitmentsV2.Api.Types.Requests; using SFA.DAS.CommitmentsV2.Api.Types.Responses; namespace SFA.DAS.CommitmentsV2.Api.Client { public interface ICommitmentsApiClient { Task<bool> HealthCheck(); Task<AccountLegalEntityRespons...
using System.Threading; using System.Threading.Tasks; using SFA.DAS.CommitmentsV2.Api.Types.Requests; using SFA.DAS.CommitmentsV2.Api.Types.Responses; namespace SFA.DAS.CommitmentsV2.Api.Client { public interface ICommitmentsApiClient { Task<bool> HealthCheck(); Task<AccountLegalEntityRespons...
Create const for targetdir key
using Subtle.Model; using System.Collections; using System.ComponentModel; using System.Configuration.Install; using System.IO; namespace Subtle.Registry { [RunInstaller(true)] public partial class Installer : System.Configuration.Install.Installer { public Installer() { Initi...
using Subtle.Model; using System.Collections; using System.ComponentModel; using System.Configuration.Install; using System.IO; namespace Subtle.Registry { [RunInstaller(true)] public partial class Installer : System.Configuration.Install.Installer { private const string TargetDirKey = "targetdir"...
Allow `HidePopover()` to be called directly on popover containers
// 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...
// 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...
Add NextLine to execution context
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Roton.Emulation { internal class ExecuteCodeContext : ICodeSeekable { private ICodeSeekable _instructionSource; public ExecuteCodeContext(int index, ICodeSeekable instructionSource, string name) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Roton.Emulation { internal class ExecuteCodeContext : ICodeSeekable { private ICodeSeekable _instructionSource; public ExecuteCodeContext(int index, ICodeSeekable instructionSource, string name) ...
Fix victory delegate clearing in stage
using System.Collections; using System.Collections.Generic; using UnityEngine; public class YuukaWaterController : MonoBehaviour { public int requiredCompletion = 3; int completionCounter = 0; public delegate void VictoryAction(); public static event VictoryAction OnVictory; public void Notify() {...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class YuukaWaterController : MonoBehaviour { public int requiredCompletion = 3; int completionCounter = 0; public delegate void VictoryAction(); public static event VictoryAction OnVictory; private void Awake(...
Change sitemap.xml to reference requested host
#r "Newtonsoft.Json" using System; using Red_Folder.WebCrawl; using Red_Folder.WebCrawl.Data; using Red_Folder.Logging; using Newtonsoft.Json; public static void Run(string request, out object outputDocument, TraceWriter log) { log.Info($"C# Queue trigger function processed: {crawlRequest.Id}"); var azureLo...
#r "Newtonsoft.Json" using System; using Red_Folder.WebCrawl; using Red_Folder.WebCrawl.Data; using Red_Folder.Logging; using Newtonsoft.Json; public static void Run(string request, out object outputDocument, TraceWriter log) { var crawlRequest = JsonConvert.DeserializeObject<CrawlRequest>(request); log.Info($"C...
Fix bug with querying ProductPrices in SampleAPI case study
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using Dapper; using SampleProject.Domain.Products; using SampleProject.Domain.SharedKernel; namespace SampleProject.Application.Orders.PlaceCustomerOrder { public static class ProductPriceProvider ...
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using Dapper; using SampleProject.Domain.Products; using SampleProject.Domain.SharedKernel; namespace SampleProject.Application.Orders.PlaceCustomerOrder { public static class ProductPriceProvider ...
Reduce potential value updates when setting localisablestring
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using osu.Framework.Configuration; using osu.Framework.IO.Stores; namespace osu.Framework.Localisation { public partial class LocalisationMa...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using osu.Framework.Configuration; using osu.Framework.IO.Stores; namespace osu.Framework.Localisation { public partial class LocalisationMa...
Create server side API for single multiple answer question
using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRepository { private readonly TrappistDbContext _dbContext...
using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRepository { private readonly TrappistDbContext _dbContext...
Add filter property to trending movies request.
namespace TraktApiSharp.Requests.WithoutOAuth.Movies.Common { using Base.Get; using Objects.Basic; using Objects.Get.Movies.Common; internal class TraktMoviesTrendingRequest : TraktGetRequest<TraktPaginationListResult<TraktTrendingMovie>, TraktTrendingMovie> { internal TraktMoviesTrendingR...
namespace TraktApiSharp.Requests.WithoutOAuth.Movies.Common { using Base; using Base.Get; using Objects.Basic; using Objects.Get.Movies.Common; internal class TraktMoviesTrendingRequest : TraktGetRequest<TraktPaginationListResult<TraktTrendingMovie>, TraktTrendingMovie> { internal Trak...