Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Support full screen now that core MonoMac supports it
using System; using System.Drawing; using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; using Eto.Forms; namespace Eto.Test.Mac { class Startup { static void Main (string [] args) { AddStyles (); var generator = new Eto.Platform.Mac.Generator (); var app = new TestApplicat...
using System; using System.Drawing; using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; using Eto.Forms; namespace Eto.Test.Mac { class Startup { static void Main (string [] args) { AddStyles (); var generator = new Eto.Platform.Mac.Generator (); var app = new TestApplicat...
Enable raven studio for port 8081
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using System.Web; using System.Web.Http; using System.Web.Http.Controllers; using DragonContracts.Models; using Raven.Client; using Raven.Client.Document; using Raven.Client.E...
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using System.Web; using System.Web.Http; using System.Web.Http.Controllers; using DragonContracts.Models; using Raven.Client; using Raven.Client.Document; using Raven.Client.E...
Replace test with test stub
#region Usings using System.Linq; using System.Web.Mvc; using NUnit.Framework; using WebApplication.Controllers; using WebApplication.Models; #endregion namespace UnitTests { [TestFixture] public class UnitTest1 { [Test] public void TestMethod1() { var formCollection ...
#region Usings using NUnit.Framework; #endregion namespace UnitTests { [TestFixture] public class UnitTest1 { [Test] public void TestMethod1() { Assert.True(true); } } }
Add virtual pre/post build methods.
using UnityEngine; using UnityEditor; namespace UnityBuild { public abstract class BuildSettings { public abstract string binName { get; } public abstract string binPath { get; } public abstract string[] scenesInBuild { get; } public abstract string[] copyToBuild { get; } //// The name of execut...
using UnityEngine; using UnityEditor; namespace UnityBuild { public abstract class BuildSettings { public abstract string binName { get; } public abstract string binPath { get; } public abstract string[] scenesInBuild { get; } public abstract string[] copyToBuild { get; } public virtual void Pre...
Change mask variables to const values, remove from constructor
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LBD2OBJLib.Types { class FixedPoint { public int IntegralPart { get; set; } public int DecimalPart { get; set; } public FixedPoint(byte[] data) { if (da...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LBD2OBJLib.Types { class FixedPoint { public int IntegralPart { get; set; } public int DecimalPart { get; set; } const byte SIGN_MASK = 128; const byte INT...
Add SDL support to SampleGame
// 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.Platform; using osu.Framework; namespace SampleGame.Desktop { public static class Program { [STAThread] public...
// 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.Linq; using osu.Framework; using osu.Framework.Platform; namespace SampleGame.Desktop { public static class Program { [STAThr...
Hide irrelevant tabs when the Writing System is a voice one.
using System.Windows.Forms; namespace Palaso.UI.WindowsForms.WritingSystems { public partial class WSPropertiesTabControl : UserControl { private WritingSystemSetupModel _model; public WSPropertiesTabControl() { InitializeComponent(); } public void BindToModel(WritingSystemSetupModel model) { _mo...
using System; using System.Windows.Forms; namespace Palaso.UI.WindowsForms.WritingSystems { public partial class WSPropertiesTabControl : UserControl { private WritingSystemSetupModel _model; public WSPropertiesTabControl() { InitializeComponent(); } public void BindToModel(WritingSystemSetupModel mod...
Remove sending big data test.
using System; using System.Linq; using System.Threading; using Moq; using SignalR.Client.Transports; using SignalR.Hosting.Memory; using Xunit; namespace SignalR.Client.Tests { public class ConnectionFacts { public class Start { [Fact] public void FailsIfProtocolVersion...
using System; using System.Linq; using System.Threading; using Moq; using SignalR.Client.Transports; using SignalR.Hosting.Memory; using Xunit; namespace SignalR.Client.Tests { public class ConnectionFacts { public class Start { [Fact] public void FailsIfProtocolVersion...
Remove commented code and unused usings
using System; using System.Collections.Generic; using Baseline; using Confluent.Kafka; using Jasper.Configuration; using Jasper.Runtime.Routing; namespace Jasper.ConfluentKafka.Internal { public class KafkaTopicRouter : TopicRouter<KafkaSubscriberConfiguration> { //Dictionary<Uri, ProducerConfig> produ...
using System; using Baseline; using Jasper.Configuration; using Jasper.Runtime.Routing; namespace Jasper.ConfluentKafka.Internal { public class KafkaTopicRouter : TopicRouter<KafkaSubscriberConfiguration> { public override Uri BuildUriForTopic(string topicName) { var endpoint = new ...
Fix force selector reset clipping error.
using System.Collections; using System.Collections.Generic; using UnityEngine; using Zenject; public class FollowTarget : MonoBehaviour { [Inject] public ForceSelector ForceSelector { get; set; } public Rigidbody targetRb; public float distanceToReset = 0.1f; public float velocityThresh; publ...
using System; using System.Collections; using System.Collections.Generic; using UniRx; using UnityEngine; using Zenject; public class FollowTarget : MonoBehaviour { [Inject] public ForceSelector ForceSelector { get; set; } public Rigidbody targetRb; public float velocityThresh; public float moveT...
Remove profanity - don't want to alienate folk
using Bands.Output; using System; namespace Bands.GettingStarted { class Program { static void Main(string[] args) { Console.WriteLine("Getting started with Bands!"); var payload = new CounterPayload(); var innerConsoleBand = new ConsoleWriterBand<CounterPay...
using Bands.Output; using System; namespace Bands.GettingStarted { class Program { static void Main(string[] args) { Console.WriteLine("Getting started with Bands!"); var payload = new CounterPayload(); var innerConsoleBand = new ConsoleWriterBand<CounterPay...
Support for parsing inequality operator with integral operands.
using NUnit.Framework; using System; using System.Linq.Expressions; using TestStack.FluentMVCTesting.Internal; namespace TestStack.FluentMVCTesting.Tests.Internal { [TestFixture] public class ExpressionInspectorShould { [Test] public void Correctly_parse_equality_comparison_with_string_ope...
using NUnit.Framework; using System; using System.Linq.Expressions; using TestStack.FluentMVCTesting.Internal; namespace TestStack.FluentMVCTesting.Tests.Internal { [TestFixture] public class ExpressionInspectorShould { [Test] public void Correctly_parse_equality_comparison_with_string_ope...
Fix failing test ORDRSP after change on Condition stacking behavior
using indice.Edi.Serialization; using System; using System.Collections.Generic; namespace indice.Edi.Tests.Models { public class Interchange_ORDRSP { public Message_ORDRSP Message { get; set; } } [EdiMessage] public class Message_ORDRSP { [EdiCondition("Z01", Path = "IMD/1/0...
using indice.Edi.Serialization; using System; using System.Collections.Generic; namespace indice.Edi.Tests.Models { public class Interchange_ORDRSP { public Message_ORDRSP Message { get; set; } } [EdiMessage] public class Message_ORDRSP { [EdiCondition("Z01", "Z10", Path = "...
Set message id by official's highest
namespace Suriyun.UnityIAP { public class IAPNetworkMessageId { public const short ToServerBuyProductMsgId = 3000; public const short ToServerRequestProducts = 3001; public const short ToClientResponseProducts = 3002; } }
using UnityEngine.Networking; namespace Suriyun.UnityIAP { public class IAPNetworkMessageId { // Developer can changes these Ids to avoid hacking while hosting public const short ToServerBuyProductMsgId = MsgType.Highest + 201; public const short ToServerRequestProducts = MsgType.Highe...
Fix hold note masks not working
// Copyright (c) 2007-2018 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.Rulesets.Edit; using osu.Game.Rulesets.Mania.Objects.Drawables; us...
// Copyright (c) 2007-2018 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.Rulesets.Edit; using osu.Game.Rulesets.Mania.Objects.Drawables; us...
Fix bug where window instance was null on world map.
using RimWorld; using Verse; namespace PrepareLanding.Defs { /// <summary> /// This class is called from a definition file when clicking the "World" button on the bottom menu bar while playing /// (see "PrepareLanding/Defs/Misc/MainButtonDefs/MainButtons.xml"). /// </summary> public class MainBut...
using RimWorld; using Verse; namespace PrepareLanding.Defs { /// <summary> /// This class is called from a definition file when clicking the "World" button on the bottom menu bar while playing /// (see "PrepareLanding/Defs/Misc/MainButtonDefs/MainButtons.xml"). /// </summary> public class MainBut...
Reword settings text to be ruleset agnostic
// Copyright (c) 2007-2018 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.Configuration; namespace osu.Game.Overlays.Settings.Sections.Gameplay { public class G...
// Copyright (c) 2007-2018 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.Configuration; namespace osu.Game.Overlays.Settings.Sections.Gameplay { public class G...
Reduce the amount of persisted city statistics
using System.Collections.Generic; using System.Linq; using Mirage.Urbanization.ZoneStatisticsQuerying; using System.Collections.Immutable; namespace Mirage.Urbanization.Simulation.Persistence { public class PersistedCityStatisticsCollection { private ImmutableQueue<PersistedCityStatisticsWithFinancialD...
using System.Collections.Generic; using System.Linq; using Mirage.Urbanization.ZoneStatisticsQuerying; using System.Collections.Immutable; namespace Mirage.Urbanization.Simulation.Persistence { public class PersistedCityStatisticsCollection { private ImmutableQueue<PersistedCityStatisticsWithFinancialD...
Switch Collapse function to correctly call the Collapse function of the expand pattern
using FlaUI.Core.Definitions; using FlaUI.Core.Patterns; namespace FlaUI.Core.AutomationElements.PatternElements { /// <summary> /// An element that supports the <see cref="IExpandCollapsePattern"/>. /// </summary> public class ExpandCollapseAutomationElement : AutomationElement { public E...
using FlaUI.Core.Definitions; using FlaUI.Core.Patterns; namespace FlaUI.Core.AutomationElements.PatternElements { /// <summary> /// An element that supports the <see cref="IExpandCollapsePattern"/>. /// </summary> public class ExpandCollapseAutomationElement : AutomationElement { public E...
Fix tag line for Telegram
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Core.Logging; using DAL; using Serilog.Events; using Telegram.Bot; namespace Core.Services.Crosspost { public class TelegramCrosspostService : ICrossPostService { private readonly Core.Logging.ILogger...
using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Core.Logging; using DAL; using Serilog.Events; using Telegram.Bot; namespace Core.Services.Crosspost { public class TelegramCrosspostService : ICrossPostService { private readonly Core.Logging.ILogger...
Fix test failure due to triangle skin no longer being null intests
// 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 NUnit.Framework; using osu.Framework.Graphics; using osu.Game.Rulesets; using osu.Game.Rulesets.Osu; namespace osu.Game.Tests.Visual.Gameplay { ...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Graphics; using osu.Game.Rulesets; using osu.Game.Rulesets.Osu; using osu.Game.Skinning; namespace osu.Game.Tests.Visual.Gamep...
Revert "the wrong id was used for getting the correct destination url."
using AutoMapper; using Umbraco.Core.Models; using Umbraco.Web.Composing; using Umbraco.Web.Models.ContentEditing; using Umbraco.Web.Routing; namespace Umbraco.Web.Models.Mapping { internal class RedirectUrlMapperProfile : Profile { public RedirectUrlMapperProfile(IUmbracoContextAccessor umbracoConte...
using AutoMapper; using Umbraco.Core.Models; using Umbraco.Web.Composing; using Umbraco.Web.Models.ContentEditing; using Umbraco.Web.Routing; namespace Umbraco.Web.Models.Mapping { internal class RedirectUrlMapperProfile : Profile { public RedirectUrlMapperProfile(IUmbracoContextAccessor umbracoConte...
Add request and 'methodresponse' type in JSON body to account for other response types using the WebSocket APIs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace Snowflake.Ajax { public class JSResponse : IJSResponse { public IJSRequest Request { get; private set; } public dynamic Payload { get; private se...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace Snowflake.Ajax { public class JSResponse : IJSResponse { public IJSRequest Request { get; private set; } public dynamic Payload { get; private se...
Tidy up github api calling code
using System.Web.Mvc; using System.Net; using Newtonsoft.Json; using System.IO; using System.Collections.Generic; using Newtonsoft.Json.Linq; using System.Linq; using System.Web.Caching; using System; namespace Website.Controllers { public class HomeController : Controller { public Actio...
using System; using System.Collections.Generic; using System.Net; using System.Web.Caching; using System.Web.Mvc; using Newtonsoft.Json; namespace Website.Controllers { public class HomeController : Controller { public ActionResult Index() { return View(); } ...
Add DecryptionInProgress for EncryptionStatus enum
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
Add analytics event for package rate
@using CkanDotNet.Api.Model @using CkanDotNet.Web.Models @using CkanDotNet.Web.Models.Helpers @model Package @{ bool editable = Convert.ToBoolean(ViewData["editable"]); string ratingId = GuidHelper.GetUniqueKey(16); } @if (Model.RatingsAverage.HasValue || editable) { <div id="@ratingId" class="rating"> @...
@using CkanDotNet.Api.Model @using CkanDotNet.Web.Models @using CkanDotNet.Web.Models.Helpers @model Package @{ bool editable = Convert.ToBoolean(ViewData["editable"]); string ratingId = GuidHelper.GetUniqueKey(16); } @if (Model.RatingsAverage.HasValue || editable) { <div id="@ratingId" class="rating"> @...
Check if status label is constructed before executing update
// Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using System; using EndlessClient.HUD; using EOLib; using Microsoft.Xna.Framework; using XNAControls; namespace EndlessClient.UIControls { public class StatusBarLabe...
// Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using System; using EndlessClient.HUD; using EOLib; using Microsoft.Xna.Framework; using XNAControls; namespace EndlessClient.UIControls { public class StatusBarLabe...
Handle ObjectDisposedException just in case we do end up trying to read properties of a closed message
using System; using System.ServiceModel.Channels; namespace Microsoft.ApplicationInsights.Wcf.Implementation { internal static class WcfExtensions { public static HttpRequestMessageProperty GetHttpRequestHeaders(this IOperationContext operation) { if ( operation.HasIncomingMessageP...
using System; using System.ServiceModel.Channels; namespace Microsoft.ApplicationInsights.Wcf.Implementation { internal static class WcfExtensions { public static HttpRequestMessageProperty GetHttpRequestHeaders(this IOperationContext operation) { try { ...
Test console Run method updated
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Arf.Services; using Microsoft.ProjectOxford.Vision.Contract; namespace Arf.Console { class Program { public static bool IsProcessing; public static void Main(string[] args)...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Arf.Services; using Microsoft.ProjectOxford.Vision.Contract; namespace Arf.Console { class Program { public static bool IsProcessing; public static void Main(string[] args)...
Remove RandomTrace stuff from Main
using static System.Console; using CIV.Ccs; using CIV.Interfaces; namespace CIV { class Program { static void Main(string[] args) { var text = System.IO.File.ReadAllText(args[0]); var processes = CcsFacade.ParseAll(text); var trace = CcsFacade.RandomTrace(processes["...
using static System.Console; using CIV.Ccs; using CIV.Hml; namespace CIV { class Program { static void Main(string[] args) { var text = System.IO.File.ReadAllText(args[0]); var processes = CcsFacade.ParseAll(text); var hmlText = "[[ack]][[ack]][[ack]](<<ack>>tt and [[freeAll]]...
Fix typo in example comment.
To: @Model.To From: example@website.com Reply-To: another@website.com Subject: @Model.Subject @* NOTE: There MUST be a blank like after the headers and before the content. *@ Hello, This email was generated using Postal for asp.net mvc on @Model.Date.ToShortDateString() Message follows: @Model.Message Tha...
To: @Model.To From: example@website.com Reply-To: another@website.com Subject: @Model.Subject @* NOTE: There MUST be a blank line after the headers and before the content. *@ Hello, This email was generated using Postal for asp.net mvc on @Model.Date.ToShortDateString() Message follows: @Model.Message Tha...
Refactor puzzle 10 to not use LINQ
// Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; using System.Linq; /// <summary> /// A class representing the sol...
// Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; /// <summary> /// A class representing the solution to <c>https://pro...
Fix some arrivals showing negative ETA minutes.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml.Data; namespace TramlineFive.Common.Converters { public class TimingConverter : IValueConverter { public object Convert(object value, Type targetType, object parame...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml.Data; namespace TramlineFive.Common.Converters { public class TimingConverter : IValueConverter { public object Convert(object value, Type targetType, object parame...
Revert "Try fix for tracking metrics with square brackets in name"
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Metrics.Reporters.GoogleAnalytics.Tracker.Model.MeasurementProtocol; using Metrics.Reporters.GoogleAnalytics.Tracker.Model.MeasurementProtocol.Values; namespace Metrics.Reporters.GoogleAnalytics.T...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Metrics.Reporters.GoogleAnalytics.Tracker.Model.MeasurementProtocol; using Metrics.Reporters.GoogleAnalytics.Tracker.Model.MeasurementProtocol.Values; namespace Metrics.Reporters.GoogleAnalytics.T...
Add option to set app name
using System; using System.Reflection; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using SilentHunter.FileFormats.Dat.Controllers; using SilentHunter.FileFormats.DependencyInjection; namespace SilentHunter.Controllers.Compiler.DependencyInjection { publi...
using System; using System.Reflection; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using SilentHunter.FileFormats.Dat.Controllers; using SilentHunter.FileFormats.DependencyInjection; namespace SilentHunter.Controllers.Compiler.DependencyInjection { publi...
Add Read and Write methods
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace LSDStay { public static class PSX { public static Process FindPSX() { Process psx = Process.GetProcessesByName("psxfin").FirstOrDefault(); return psx; }...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace LSDStay { public static class PSX { public static Process PSXProcess; public static IntPtr PSXHandle; public static bool FindPSX() { PSXProcess = Proc...
Fix Size test using explicit conversions for assertions
using Xunit; namespace VulkanCore.Tests { public class SizeTest { [Fact] public void ImplicitConversions() { const int intVal = 1; const long longVal = 2; Size intSize = intVal; Size longSize = longVal; Assert.Equal(intVal, ...
using Xunit; namespace VulkanCore.Tests { public class SizeTest { [Fact] public void ImplicitConversions() { const int intVal = 1; const long longVal = 2; Size intSize = intVal; Size longSize = longVal; Assert.Equal(intVal, ...
Add static factory method for neuron
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArtificialNeuralNetwork { [Serializable] public class Neuron : INeuron { private readonly ISoma _soma; private readonly IAxon _axon; public Neuron(ISoma so...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArtificialNeuralNetwork { [Serializable] public class Neuron : INeuron { private readonly ISoma _soma; private readonly IAxon _axon; private Neuron(ISoma s...
Add message types for nitro boosting and channel following
namespace Discore { public enum DiscordMessageType { Default = 0, RecipientAdd = 1, RecipientRemove = 2, Call = 3, ChannelNameChange = 4, ChannelIconChange = 5, ChannelPinnedMessage = 6, GuildMemberJoin = 7 } }
namespace Discore { public enum DiscordMessageType { Default = 0, RecipientAdd = 1, RecipientRemove = 2, Call = 3, ChannelNameChange = 4, ChannelIconChange = 5, ChannelPinnedMessage = 6, GuildMemberJoin = 7, UserPremiumGuildSubscription = ...
Rename function name in test fixture
using NUnit.Framework; using Rivet.Operations; namespace Rivet.Test.Operations { [TestFixture] public sealed class NewUserDefinedFunctionTestFixture { const string SchemaName = "schemaName"; const string FunctionName = "functionName"; const string Definition = "as definition"; [SetUp] publi...
using NUnit.Framework; using Rivet.Operations; namespace Rivet.Test.Operations { [TestFixture] public sealed class NewUserDefinedFunctionTestFixture { const string SchemaName = "schemaName"; const string FunctionName = "functionName"; const string Definition = "as definition"; [SetUp] publi...
Update server to send proper response
using System; using System.Threading.Tasks; using Grpc.Core; using Hello; namespace HelloServer { class HelloServerImpl : HelloService.HelloServiceBase { public override Task<HelloResp> SayHello(HelloReq request, ServerCallContext context) { return Task.FromResult(new HelloResp { Result = "Hey " + request.Na...
using System; using System.Threading.Tasks; using Grpc.Core; using Hello; namespace HelloServer { class HelloServerImpl : HelloService.HelloServiceBase { public override Task<HelloResp> SayHello(HelloReq request, ServerCallContext context) { return Task.FromResult(new HelloResp { Result = "Hey, " + request.N...
Add basic fields in Charge's PMD 3DS field
namespace Stripe { using Newtonsoft.Json; using Stripe.Infrastructure; public class ChargePaymentMethodDetailsCardThreeDSecure : StripeEntity { } }
namespace Stripe { using Newtonsoft.Json; using Stripe.Infrastructure; public class ChargePaymentMethodDetailsCardThreeDSecure : StripeEntity { [JsonProperty("succeeded")] public bool Succeeded { get; set; } [JsonProperty("version")] public string Version { get; set; } ...
Add a method to get settings from a url.
using System.Text; using AzureStorage.Blob; using Common; namespace CompetitionPlatform.Data.AzureRepositories.Settings { public static class GeneralSettingsReader { public static T ReadGeneralSettings<T>(string connectionString, string container, string fileName) { var settingsSto...
using System.Net.Http; using System.Text; using AzureStorage.Blob; using Common; using Newtonsoft.Json; namespace CompetitionPlatform.Data.AzureRepositories.Settings { public static class GeneralSettingsReader { public static T ReadGeneralSettings<T>(string connectionString, string container, string f...
Add test covering horrible fail scenario
// 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.Bindables; using osu.Framework.Configuration; using osu.Framework.Platform; namespace osu.Fram...
// 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.Bindables; using osu.Framework.Configuration; using osu.Framework.Platform; using osu.Framework...
Fix spinenr tick samples not positioned at centre
// 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.Objects.Drawables { public class DrawableSpinnerTick : DrawableOsuHitObject { public override bool DisplayResult => false;...
// 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; namespace osu.Game.Rulesets.Osu.Objects.Drawables { public class DrawableSpinnerTick : DrawableOsuHitObject { public overri...
Fix compile error in .NET Core 3.1 version of ASP.NET Core Web App blueprint
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace BlueprintBaseName._1 { public class Program ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace BlueprintBaseNam...
Define a state that is modified by the actions
using System; using System.Collections.Generic; using System.Data; using System.Linq; namespace NBi.GenbiL { class GenerationState { public DataTable TestCases { get; set; } public IEnumerable<string> Variables { get; set; } public string Template { get; set; } } }
using System; using System.Collections.Generic; using System.Linq; using NBi.Service; namespace NBi.GenbiL { public class GenerationState { public TestCasesManager TestCases { get; private set; } public TemplateManager Template { get; private set; } public SettingsManager Se...
Fix potentially null reference if drawable was not assigned a `LoadThread` yet
// 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.Linq; using osu.Framework.Development; using osu.Framework.Extensions.TypeExtensions; using osu.Framework.Graphics; using osu.Framework.Graphics.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.Linq; using osu.Framework.Development; using osu.Framework.Extensions.TypeExtensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; ...
Fix incorrect ruleset being sent to API
// 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 osu.Game.Online.Multiplayer; using osu.Game.Screens.Multi; namespace osu.Game.Screens.Select { public class MatchSongSelect : SongSelect, IMult...
// 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 osu.Game.Online.Multiplayer; using osu.Game.Screens.Multi; namespace osu.Game.Screens.Select { public class MatchSongSelect : SongSelect, IMult...
Revert "Cleaned up 0x60 0x21 warp packet model"
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FreecraftCore.Serializer; namespace Booma.Proxy { /// <summary> /// Payload sent when a client is begining a warp to a new area. /// Contains client ID information and information about the war...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FreecraftCore.Serializer; namespace Booma.Proxy { /// <summary> /// Payload sent when a client is begining a warp to a new area. /// Contains client ID information and information about the war...
Make sure that beginInvoke target exists
using System; using System.Windows.Forms; using osu_StreamCompanion.Code.Core; using osu_StreamCompanion.Code.Helpers; namespace osu_StreamCompanion.Code.Modules.ModParser { public partial class ModParserSettings : UserControl { private Settings _settings; private bool init = true; pub...
using System; using System.Windows.Forms; using osu_StreamCompanion.Code.Core; using osu_StreamCompanion.Code.Helpers; namespace osu_StreamCompanion.Code.Modules.ModParser { public partial class ModParserSettings : UserControl { private Settings _settings; private bool init = true; pub...
Use API to override the location of the dictionary file in the dictionary cache from our Web applicatoin
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; using Anagrams.Models; namespace Anagrams { // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visit http://go.microsoft.com/?LinkId=9394801 public class MvcApplic...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; using Anagrams.Models; namespace Anagrams { // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visit http://go.microsoft.com/?LinkId=9394801 public class MvcApplic...
Fix async deadlock on Mono
using System.Collections.Generic; using System.Threading.Tasks; namespace Mond.Libraries.Async { internal class Scheduler : TaskScheduler { private List<Task> _tasks; public Scheduler() { _tasks = new List<Task>(); } public void Run() { ...
using System.Collections.Generic; using System.Threading.Tasks; namespace Mond.Libraries.Async { internal class Scheduler : TaskScheduler { private List<Task> _tasks; public Scheduler() { _tasks = new List<Task>(); } public void Run() { ...
Set neutral language to English
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("Fr...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Resources; // 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 function to get start of season
using RimWorld; using UnityEngine; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MTW_AncestorSpirits { public static class AncestorUtils { public static int DaysToTicks(float days) { return Mathf.RoundToInt(days * GenDate.TicksPerD...
using Verse; using RimWorld; using UnityEngine; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MTW_AncestorSpirits { public static class AncestorUtils { public static int DaysToTicks(float days) { return Mathf.RoundToInt(days * GenD...
Fix TryReadProblemJson: ensure problem json could be read and an object was created
namespace Hypermedia.Client.Reader.ProblemJson { using System; using System.Net.Http; using global::Hypermedia.Client.Exceptions; using global::Hypermedia.Client.Resolver; using Newtonsoft.Json; public static class ProblemJsonReader { public static bool TryReadProblemJson(HttpRes...
namespace Hypermedia.Client.Reader.ProblemJson { using System; using System.Net.Http; using global::Hypermedia.Client.Exceptions; using global::Hypermedia.Client.Resolver; using Newtonsoft.Json; public static class ProblemJsonReader { public static bool TryReadProblemJson(HttpRes...
Add error message on exception
// // Program.cs // // Author: // Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com> // // Copyright (c) 2015 Benito Palacios Sánchez (c) 2015 // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the F...
// // Program.cs // // Author: // Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com> // // Copyright (c) 2015 Benito Palacios Sánchez (c) 2015 // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the F...
Increase client version to 1.4.2.3
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("Re...
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("Re...
Change log lvl for history engine disable logging
using System.Diagnostics; using Sitecore.Configuration; using Sitecore.DataBlaster.Load.Sql; namespace Sitecore.DataBlaster.Load.Processors { public class SyncHistoryTable : ISyncInTransaction { public void Process(BulkLoadContext loadContext, BulkLoadSqlContext sqlContext) { if (!l...
using System.Diagnostics; using Sitecore.Configuration; using Sitecore.DataBlaster.Load.Sql; namespace Sitecore.DataBlaster.Load.Processors { public class SyncHistoryTable : ISyncInTransaction { public void Process(BulkLoadContext loadContext, BulkLoadSqlContext sqlContext) { if (!l...
Change default background color to be more grey
using System.Collections.Generic; using System.Drawing; using System.IO; namespace GUI.Utils { internal static class Settings { public static List<string> GameSearchPaths { get; } = new List<string>(); public static Color BackgroundColor { get; set; } = Color.Black; public static voi...
using System.Collections.Generic; using System.Drawing; using System.IO; namespace GUI.Utils { internal static class Settings { public static List<string> GameSearchPaths { get; } = new List<string>(); public static Color BackgroundColor { get; set; } public static void Load() ...
Rollback functionality and hash computing
using System.Collections.Generic; using System; namespace MicroORM.Entity { internal sealed class EntityInfo { internal EntityInfo() { this.EntityState = EntityState.None; this.EntityHashSet = new Dictionary<string, string>(); this.LastCallTime = DateTime.No...
using System; using System.Collections.Generic; using System.Linq; using MicroORM.Materialization; using MicroORM.Reflection; using MicroORM.Mapping; namespace MicroORM.Entity { internal sealed class EntityInfo { internal EntityInfo() { this.EntityState = EntityState.None; ...
Format for output window message changed
using System; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; namespace Sawczyn.EFDesigner.EFModel { internal static class Messages { private static readonly string MessagePaneTitle = "Entity Framework Designer"; private static IVsOutputWindow _outputWindow; pr...
using System; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; namespace Sawczyn.EFDesigner.EFModel { internal static class Messages { private static readonly string MessagePaneTitle = "Entity Framework Designer"; private static IVsOutputWindow _outputWindow; pr...
Allow custom date format when displaying published state
using System; using System.Web; using System.Web.Mvc; using Orchard.DisplayManagement; using Orchard.DisplayManagement.Descriptors; using Orchard.Localization; using Orchard.Mvc.Html; namespace Orchard.Core.Common { public class Shapes : IShapeTableProvider { public Shapes() { T = NullLocalizer...
using System; using System.Web; using System.Web.Mvc; using Orchard.DisplayManagement; using Orchard.DisplayManagement.Descriptors; using Orchard.Localization; using Orchard.Mvc.Html; namespace Orchard.Core.Common { public class Shapes : IShapeTableProvider { public Shapes() { T = NullLocalizer...
Add ability to save commands mapping
using Arduino; using ArduinoWindowsRemoteControl.Repositories; using Core.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArduinoWindowsRemoteControl.Services { /// <summary> /// Service that returns parsers for differen...
using Arduino; using ArduinoWindowsRemoteControl.Repositories; using Core.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArduinoWindowsRemoteControl.Services { /// <summary> /// Service that returns parsers for differen...
Remove slider tail circle judgement requirements
// 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.Bindables; using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Osu.Obje...
// 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.Bindables; using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Osu.Judgements; using osu.Game.Rulesets.Scorin...
Fix audio thread not exiting correctly
// 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.Statistics; using System; using System.Collections.Generic; using osu.Framework.Audio; namespace osu.Framework.Threading { public class AudioThr...
// 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.Statistics; using System; using System.Collections.Generic; using osu.Framework.Audio; namespace osu.Framework.Threading { public class AudioThr...
Add missing changes for last commit
// <copyright file="RavenDBViewModelHelper.cs" company="Cognisant"> // Copyright (c) Cognisant. All rights reserved. // </copyright> namespace CR.ViewModels.Persistence.RavenDB { /// <summary> /// Helper class used for code shared between <see cref="RavenDBViewModelReader"/> and <see cref="RavenDBViewModelWri...
// <copyright file="RavenDBViewModelHelper.cs" company="Cognisant"> // Copyright (c) Cognisant. All rights reserved. // </copyright> namespace CR.ViewModels.Persistence.RavenDB { /// <summary> /// Helper class used for code shared between <see cref="RavenDBViewModelReader"/> and <see cref="RavenDBViewModelWri...
Add support for dynamic resizing of iframe when disqus forum loads
@using CkanDotNet.Web.Models.Helpers <div class="container"> <h2 class="container-title">Comments</h2> <div class="container-content"> <div id="disqus_thread"></div> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_s...
@using CkanDotNet.Web.Models.Helpers <div class="container"> <h2 class="container-title">Comments</h2> <div class="container-content"> <div id="disqus_thread"></div> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_s...
Change the port to 8000 so we can run as non-admin.
/* * Copyright (C) 2011 uhttpsharp project - http://github.com/raistlinthewiz/uhttpsharp * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (...
/* * Copyright (C) 2011 uhttpsharp project - http://github.com/raistlinthewiz/uhttpsharp * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (...
Fix dependency of environment gap
namespace ExcelX.AddIn.Command { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ExcelX.AddIn.Config; using Excel = Microsoft.Office.Interop.Excel; /// <summary> /// 「方眼紙」コマンド /// </summary> public cl...
namespace ExcelX.AddIn.Command { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ExcelX.AddIn.Config; using Excel = Microsoft.Office.Interop.Excel; /// <summary> /// 「方眼紙」コマンド /// </summary> public cl...
Create a prefix for Git-Tfs metadata
using System.Text.RegularExpressions; namespace Sep.Git.Tfs { public static class GitTfsConstants { public static readonly Regex Sha1 = new Regex("[a-f\\d]{40}", RegexOptions.IgnoreCase); public static readonly Regex Sha1Short = new Regex("[a-f\\d]{4,40}", RegexOptions.IgnoreCase); publ...
using System.Text.RegularExpressions; namespace Sep.Git.Tfs { public static class GitTfsConstants { public static readonly Regex Sha1 = new Regex("[a-f\\d]{40}", RegexOptions.IgnoreCase); public static readonly Regex Sha1Short = new Regex("[a-f\\d]{4,40}", RegexOptions.IgnoreCase); publ...
Add support for older versions API
using VkNet.Utils; namespace VkNet.Model { /// <summary> /// Информация об аудиоальбоме. /// </summary> /// <remarks> /// Страница документации ВКонтакте <see href="http://vk.com/dev/audio.getAlbums"/>. /// </remarks> public class AudioAlbum { /// <summary> ...
using VkNet.Utils; namespace VkNet.Model { /// <summary> /// Информация об аудиоальбоме. /// </summary> /// <remarks> /// Страница документации ВКонтакте <see href="http://vk.com/dev/audio.getAlbums"/>. /// </remarks> public class AudioAlbum { /// <summary> ...
Fix handling of CAST in type completion provider
using System; using System.Collections.Generic; using System.Linq; using NQuery.Syntax; namespace NQuery.Authoring.Completion.Providers { internal sealed class TypeCompletionProvider : ICompletionProvider { public IEnumerable<CompletionItem> GetItems(SemanticModel semanticModel, int position) ...
using System; using System.Collections.Generic; using System.Linq; using NQuery.Syntax; namespace NQuery.Authoring.Completion.Providers { internal sealed class TypeCompletionProvider : ICompletionProvider { public IEnumerable<CompletionItem> GetItems(SemanticModel semanticModel, int position) ...
Fix bug with n-level undo of child objects.
using System; using System.Collections.Generic; using System.Text; namespace Csla.Test.LazyLoad { [Serializable] public class AParent : Csla.BusinessBase<AParent> { private Guid _id; public Guid Id { get { return _id; } set { _id = value; PropertyHasChanged(); ...
using System; using System.Collections.Generic; using System.Text; namespace Csla.Test.LazyLoad { [Serializable] public class AParent : Csla.BusinessBase<AParent> { private Guid _id; public Guid Id { get { return _id; } set { _id = value; PropertyHasChanged(); ...
Check the user-agent string for "Trident" in order to identify IE11 as an IE browser. This is only needed for a workaround for comments within select elements in IE below version 10 and should be abandoned when possible.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; namespace ExoWeb.Templates.MicrosoftAjax { /// <summary> /// Microsoft AJAX specific implementation of <see cref="ExoWeb.Templates.Page"/> that supports /// parsing and loading templates using the Microsoft AJAX...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; namespace ExoWeb.Templates.MicrosoftAjax { /// <summary> /// Microsoft AJAX specific implementation of <see cref="ExoWeb.Templates.Page"/> that supports /// parsing and loading templates using the Microsoft AJAX...
Add missing call to set content root on WebHostBuilder
using System; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Server.HttpSys; using Microsoft.Extensions.Configuration; namespace MusicStore { public static class Program { public static void Main(string[] args) { var config = new ConfigurationBuilder() ...
using System; using System.IO; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Server.HttpSys; using Microsoft.Extensions.Configuration; namespace MusicStore { public static class Program { public static void Main(string[] args) { var config = new ConfigurationBuilder...
Update default converter to handle exception type
namespace Alexa.NET.Request.Type { public class DefaultRequestTypeConverter : IRequestTypeConverter { public bool CanConvert(string requestType) { return requestType == "IntentRequest" || requestType == "LaunchRequest" || requestType == "SessionEndedRequest"; } publ...
namespace Alexa.NET.Request.Type { public class DefaultRequestTypeConverter : IRequestTypeConverter { public bool CanConvert(string requestType) { return requestType == "IntentRequest" || requestType == "LaunchRequest" || requestType == "SessionEndedRequest" || requestType == "Syste...
Use Pins, not ints. We ain't Arduino!
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Treehopper.Demos.SoftPwm { class Program { static void Main(string[] args) { Run(); } static TreehopperUsb board; ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Treehopper.Demos.SoftPwm { class Program { static void Main(string[] args) { Run(); } static TreehopperUsb board; ...
Use ORM instead of open-coded SQL
using ServiceStack.ServiceHost; using Rainy.Db; using ServiceStack.OrmLite; using System; using ServiceStack.Common.Web; namespace Rainy.WebService.Admin { [Route("/api/admin/status/","GET, OPTIONS", Summary = "Get status information about the server.")] [AdminPasswordRequired] public class StatusRequest : ...
using ServiceStack.ServiceHost; using Rainy.Db; using ServiceStack.OrmLite; using System; using ServiceStack.Common.Web; using Tomboy.Db; namespace Rainy.WebService.Admin { [Route("/api/admin/status/","GET, OPTIONS", Summary = "Get status information about the server.")] [AdminPasswordRequired] public class...
Return int or decimal for usage stats
using CommentEverythingCryptography.Encryption; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Twilio; namespace CEComms.Communications.Twilio.User { public class Usage { public double GetUsageThisMonth() { IEncryptionP...
using CommentEverythingCryptography.Encryption; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Twilio; namespace CEComms.Communications.Twilio.User { public class Usage { public decimal GetUsageThisMonth() { IEncryption...
Update root lib to Glimpse.Common
using System; using System.Collections; using System.Collections.Generic; namespace Glimpse { public class ReflectionDiscoverableCollection<T> : List<T>, IDiscoverableCollection<T> { private readonly ITypeService _typeService; public ReflectionDiscoverableCollection(ITypeService typeService) ...
using System; using System.Collections; using System.Collections.Generic; namespace Glimpse { public class ReflectionDiscoverableCollection<T> : List<T>, IDiscoverableCollection<T> { private readonly ITypeService _typeService; public ReflectionDiscoverableCollection(ITypeService typeService) ...
Add XML docs for DefaultSettingValueAttribute
using System; namespace NFig { [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)] public abstract class DefaultSettingValueAttribute : Attribute { public object DefaultValue { get; protected set; } public object SubApp { get; protected set; } public object Tier { get...
using System; namespace NFig { /// <summary> /// This is the base class for all NFig attributes which specify default values, except for the <see cref="SettingAttribute"/> itself. This attribute is /// abstract because you should provide the attributes which make sense for your individual setup. The subAp...
Check for specific bit now to check if a game is downloaded at the moment
using System; namespace SteamShutdown { public class App { public int ID { get; set; } public string Name { get; set; } public int State { get; set; } /// <summary> /// Returns a value indicating whether the game is being downloaded. Includes games in queue ...
namespace SteamShutdown { public class App { public int ID { get; set; } public string Name { get; set; } public int State { get; set; } /// <summary> /// Returns a value indicating whether the game is being downloaded. /// </summary> public b...
Fix a bug where it didn't read .binlog files correctly.
using System.Diagnostics; using System.IO; namespace Microsoft.Build.Logging.StructuredLogger { public class BinaryLog { public static Build ReadBuild(string filePath) { var eventSource = new BinaryLogReplayEventSource(); byte[] sourceArchive = null; ...
using System.Diagnostics; using System.IO; namespace Microsoft.Build.Logging.StructuredLogger { public class BinaryLog { public static Build ReadBuild(string filePath) { var eventSource = new BinaryLogReplayEventSource(); byte[] sourceArchive = null; ...
Append IIS queues with worker PID.
/* Copyright 2014 Jonathan Holland. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
/* Copyright 2014 Jonathan Holland. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Add "There are no commands".
namespace JustCli.Commands { public class CommandLineHelpCommand : ICommand { public ICommandRepository CommandRepository { get; set; } public IOutput Output { get; set; } public CommandLineHelpCommand(ICommandRepository commandRepository, IOutput output) { CommandRe...
namespace JustCli.Commands { public class CommandLineHelpCommand : ICommand { public ICommandRepository CommandRepository { get; set; } public IOutput Output { get; set; } public CommandLineHelpCommand(ICommandRepository commandRepository, IOutput output) { CommandRe...
Fix - Included some missing cases for JSON string types.
using System; using Newtonsoft.Json.Linq; namespace DevLab.JmesPath.Utils { public static class JTokens { public static JToken Null = JToken.Parse("null"); public static JToken True = JToken.Parse("true"); public static JToken False = JToken.Parse("false"); public st...
using System; using Newtonsoft.Json.Linq; namespace DevLab.JmesPath.Utils { public static class JTokens { public static JToken Null = JToken.Parse("null"); public static JToken True = JToken.Parse("true"); public static JToken False = JToken.Parse("false"); public st...
Return simple object representing the torrent.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Hadouken.Framework.Rpc; using Hadouken.Plugins.Torrents.BitTorrent; namespace Hadouken.Plugins.Torrents.Rpc { public class TorrentsServices : IJsonRpcService { private ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Hadouken.Framework.Rpc; using Hadouken.Plugins.Torrents.BitTorrent; namespace Hadouken.Plugins.Torrents.Rpc { public class TorrentsServices : IJsonRpcService { private ...
Make PowerShellScripts class static per review.
namespace NuGet.VisualStudio { public class PowerShellScripts { public static readonly string Install = "install.ps1"; public static readonly string Uninstall = "uninstall.ps1"; public static readonly string Init = "init.ps1"; } }
namespace NuGet.VisualStudio { public static class PowerShellScripts { public static readonly string Install = "install.ps1"; public static readonly string Uninstall = "uninstall.ps1"; public static readonly string Init = "init.ps1"; } }
Update ReplyAsync Task to return the sent message.
using System.Threading.Tasks; namespace Discord.Commands { public abstract class ModuleBase { public CommandContext Context { get; internal set; } protected virtual async Task ReplyAsync(string message, bool isTTS = false, RequestOptions options = null) { await Context.Cha...
using System.Threading.Tasks; namespace Discord.Commands { public abstract class ModuleBase { public CommandContext Context { get; internal set; } protected virtual async Task<IUserMessage> ReplyAsync(string message, bool isTTS = false, RequestOptions options = null) { ret...
Update the level selector input at the bottom of the leaderboard
using UnityEngine; using UnityEngine.UI; public class SceneSelector : MonoBehaviour { [SerializeField] private Text _levelName; [SerializeField] private string[] _levels; [SerializeField] private Button _leftArrow; [SerializeField] private Button _rightArrow; private int pos = 0; private Leade...
using System; using UnityEngine; using UnityEngine.UI; public class SceneSelector : MonoBehaviour { [SerializeField] private Text _levelName; [SerializeField] private string[] _levels; [SerializeField] private Button _leftArrow; [SerializeField] private Button _rightArrow; private int pos = 0; ...
Use official namespace (better for fallback)
namespace AngleSharp { using System.Collections.Generic; using System.Threading.Tasks; /// <summary> /// Simple wrapper for static methods of Task, which are missing in older /// versions of the .NET-Framework. /// </summary> static class TaskEx { /// <summary> /// Wrap...
namespace System.Threading.Tasks { using System.Collections.Generic; /// <summary> /// Simple wrapper for static methods of Task, which are missing in older /// versions of the .NET-Framework. /// </summary> static class TaskEx { /// <summary> /// Wrapper for Task.WhenAll, ...
Remove unit service reference to ignore for reporting
using BatteryCommander.Web.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Services { public class UnitService { public static async Task<Unit> Get(Database db, int unitId) ...
using BatteryCommander.Web.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Services { public class UnitService { public static async Task<Unit> Get(Database db, int unitId) ...
Fix binding validation which disallow publishing to HTTPS addresses.
using System; using System.Windows.Controls; namespace PackageExplorer { public class PublishUrlValidationRule : ValidationRule { public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo) { string stringValue = (string)value; Uri...
using System; using System.Windows.Controls; namespace PackageExplorer { public class PublishUrlValidationRule : ValidationRule { public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo) { string stringValue = (string)value; Uri...
Add exception handling to console
using System; namespace DDSReader.Console { class Program { static void Main(string[] args) { var dds = new DDSImage(args[0]); dds.Save(args[1]); } } }
using System; using System.IO; namespace DDSReader.Console { class Program { static void Main(string[] args) { if (args.Length != 2) { System.Console.WriteLine("ERROR: input and output file required\n"); Environment.Exit(1); } var input = args[0]; var output = args[1]; ...
Use “yield” instead of List for GetTransitions
using System; using System.Collections.Generic; using CIV.Common; namespace CIV.Ccs { class PrefixProcess : CcsProcess { public String Label { get; set; } public CcsProcess Inner { get; set; } protected override IEnumerable<Transition> EnumerateTransitions() { return new List<...
using System; using System.Collections.Generic; using CIV.Common; namespace CIV.Ccs { class PrefixProcess : CcsProcess { public String Label { get; set; } public CcsProcess Inner { get; set; } protected override IEnumerable<Transition> EnumerateTransitions() { yield return ...
Set UserAgent on HTTP Client.
using System.Net.Http; using System.Threading.Tasks; namespace FluentMetacritic.Net { public class HttpClientWrapper : IHttpClient { private static readonly HttpClient Client = new HttpClient(); public async Task<string> GetContentAsync(string address) { return await Clien...
using System.Net.Http; using System.Threading.Tasks; namespace FluentMetacritic.Net { public class HttpClientWrapper : IHttpClient { private static readonly HttpClient Client; static HttpClientWrapper() { Client = new HttpClient(); Client.DefaultRequestHeaders....
Revert "Using ternary instead of coalesce in fallback enumerable value selection"
namespace AgileObjects.AgileMapper.ObjectPopulation { using System.Linq.Expressions; using DataSources; using Extensions; using Members; internal class ExistingOrDefaultValueDataSourceFactory : IDataSourceFactory { public static readonly IDataSourceFactory Instance = new ExistingOrDefau...
namespace AgileObjects.AgileMapper.ObjectPopulation { using System.Linq.Expressions; using DataSources; using Members; internal class ExistingOrDefaultValueDataSourceFactory : IDataSourceFactory { public static readonly IDataSourceFactory Instance = new ExistingOrDefaultValueDataSourceFacto...
Test launching 10 listeners in CI
using BeekmanLabs.UnitTesting; using IntegrationEngine.JobProcessor; using NUnit.Framework; using Moq; using System; using System.Threading; namespace IntegrationEngine.Tests.JobProcessor { public class MessageQueueListenerManagerTest : TestBase<MessageQueueListenerManager> { public Mock<MessageQueueL...
using BeekmanLabs.UnitTesting; using IntegrationEngine.JobProcessor; using NUnit.Framework; using Moq; using System; using System.Threading; namespace IntegrationEngine.Tests.JobProcessor { public class MessageQueueListenerManagerTest : TestBase<MessageQueueListenerManager> { public Mock<MessageQueueL...
Add get best id method for season images.
namespace TraktApiSharp.Objects.Get.Shows.Seasons { using Basic; using Newtonsoft.Json; /// <summary> /// A collection of images for a Trakt season. /// </summary> public class TraktSeasonImages { /// <summary> /// A poster image set for various sizes. /// </summary...
namespace TraktApiSharp.Objects.Get.Shows.Seasons { using Basic; using Newtonsoft.Json; /// <summary>A collection of images and image sets for a Trakt season.</summary> public class TraktSeasonImages { /// <summary>Gets or sets the screenshot image set.</summary> [JsonProperty(Prop...