Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Fix to allow plugin to start up disabled as default
using System.Collections.Generic; using Wox.Plugin; namespace Wox.Infrastructure.UserSettings { public class PluginsSettings : BaseModel { public string PythonDirectory { get; set; } public Dictionary<string, Plugin> Plugins { get; set; } = new Dictionary<string, Plugin>(); public voi...
using System.Collections.Generic; using Wox.Plugin; namespace Wox.Infrastructure.UserSettings { public class PluginsSettings : BaseModel { public string PythonDirectory { get; set; } public Dictionary<string, Plugin> Plugins { get; set; } = new Dictionary<string, Plugin>(); public voi...
Add OrderingDomainException when the order doesn't exist with id orderId
using Microsoft.EntityFrameworkCore; using Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.OrderAggregate; using Microsoft.eShopOnContainers.Services.Ordering.Domain.Seedwork; using System; using System.Threading.Tasks; namespace Microsoft.eShopOnContainers.Services.Ordering.Infrastructure.Reposi...
using Microsoft.EntityFrameworkCore; using Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.OrderAggregate; using Microsoft.eShopOnContainers.Services.Ordering.Domain.Seedwork; using Ordering.Domain.Exceptions; using System; using System.Threading.Tasks; namespace Microsoft.eShopOnContainers.Servi...
Check if tree is mirror. Improved logics.
using System; class Node { public Node(int val, Node left, Node right) { Value = val; Left = left; Right = right; } public int Value { get; private set; } public Node Left { get; private set; } public Node Right { get; private set; } } class Program{ static bool IsMirror(Node left, No...
using System; class Node { public Node(int val, Node left, Node right) { Value = val; Left = left; Right = right; } public int Value { get; private set; } public Node Left { get; private set; } public Node Right { get; private set; } } class Program{ static bool IsMirror(Node left, No...
Update test for possible sizes
namespace CSharpMath.Xaml.Tests.NuGet { using Avalonia; using SkiaSharp; using Forms; public class Program { static string File(string platform, [System.Runtime.CompilerServices.CallerFilePath] string thisDir = "") => System.IO.Path.Combine(thisDir, "..", $"Test.{platform}.png"); [Xunit.Fact]...
namespace CSharpMath.Xaml.Tests.NuGet { using Avalonia; using SkiaSharp; using Forms; public class Program { static string File(string platform, [System.Runtime.CompilerServices.CallerFilePath] string thisDir = "") => System.IO.Path.Combine(thisDir, "..", $"Test.{platform}.png"); [Xunit.Fa...
Revert the hard coded name check for SBD incremental analyzer as unit test team has moved to IUnitTestingIncrementalAnalyzer
// 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 Microsoft.CodeAnalysis.ExternalAccess.UnitTesting; using Microsoft.CodeAnalysis.Options; namespace Microsoft.CodeAnalysis.SolutionCrawler { intern...
// 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 Microsoft.CodeAnalysis.ExternalAccess.UnitTesting; using Microsoft.CodeAnalysis.Options; namespace Microsoft.CodeAnalysis.SolutionCrawler { intern...
Update Messages to correct location
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
Fix catch spinners not being allowed for conversion
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Rulesets.Objects.Types; namespace osu.Game.Rulesets.Objects.Legacy.Catch { /// <summary> /// Legacy osu!catch Spinner-type, used for parsing Beat...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Rulesets.Objects.Types; namespace osu.Game.Rulesets.Objects.Legacy.Catch { /// <summary> /// Legacy osu!catch Spinner-type, used for parsing Beat...
Disable unwanted lazy loading during query execution
namespace InfoCarrier.Core.Client.Query.Internal { using System; using Microsoft.EntityFrameworkCore.ChangeTracking.Internal; using Microsoft.EntityFrameworkCore.Internal; using Microsoft.EntityFrameworkCore.Query; using Microsoft.EntityFrameworkCore.Query.Internal; public class InfoCarrierQue...
namespace InfoCarrier.Core.Client.Query.Internal { using System; using Common; using Microsoft.EntityFrameworkCore.ChangeTracking.Internal; using Microsoft.EntityFrameworkCore.Internal; using Microsoft.EntityFrameworkCore.Query; using Microsoft.EntityFrameworkCore.Query.Internal; public cl...
Apply SqliteForeignKeyIndexConvention right after the ForeignKeyIndexConvetion.
using System; using System.Data.Entity; using System.Data.Entity.ModelConfiguration.Conventions; namespace SQLite.CodeFirst { public abstract class SqliteInitializerBase<TContext> : IDatabaseInitializer<TContext> where TContext : DbContext { protected readonly DbModelBuilder ModelBuilder; ...
using System; using System.Data.Entity; using System.Data.Entity.ModelConfiguration.Conventions; using SQLite.CodeFirst.Convention; namespace SQLite.CodeFirst { public abstract class SqliteInitializerBase<TContext> : IDatabaseInitializer<TContext> where TContext : DbContext { protected readon...
Fix incorrect project file type description
using JetBrains.Annotations; using JetBrains.ProjectModel; using JetBrains.ReSharper.Plugins.Unity.UnityEditorIntegration; using JetBrains.ReSharper.Plugins.Yaml.ProjectModel; #nullable enable namespace JetBrains.ReSharper.Plugins.Unity.Yaml.ProjectModel { [ProjectFileTypeDefinition(Name)] public class MetaPr...
using JetBrains.Annotations; using JetBrains.ProjectModel; using JetBrains.ReSharper.Plugins.Unity.UnityEditorIntegration; using JetBrains.ReSharper.Plugins.Yaml.ProjectModel; #nullable enable namespace JetBrains.ReSharper.Plugins.Unity.Yaml.ProjectModel { [ProjectFileTypeDefinition(Name)] public class MetaPr...
Fix a typo in a view
using BroadbandSpeedStats.Database.Schema; using FluentMigrator; namespace BroadbandSpeedTests.Database.Migrations.Migrations { [Migration(20170228)] public class TodaysTestResultsView : Migration { public override void Up() { Execute.Sql($@" CREATE VIEW [{Views.TodaysTestResul...
using BroadbandSpeedStats.Database.Schema; using FluentMigrator; namespace BroadbandSpeedTests.Database.Migrations.Migrations { [Migration(20170228)] public class TodaysTestResultsView : Migration { public override void Up() { Execute.Sql($@" CREATE VIEW [{Views.TodaysTestResul...
Use local bound copy for `HiddenIssueTypes`
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Overlays; using osu.Game.Overlays.Settings; using osu.Game.Rulesets.Edit.Checks.Components; ...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Overlays; using osu.Game.Overlays.Settings; using osu.Game.Rulesets.Edit.Checks.Components; ...
Revert "Added method to perform validity check for effect parameters"
namespace SoxSharp.Effects { public interface IBaseEffect { string Name { get; } bool IsValid(); string ToString(); } }
namespace SoxSharp.Effects { public interface IBaseEffect { string Name { get; } string ToString(); } }
Refactor plays/retries counting using osu events
using StreamCompanionTypes.DataTypes; using StreamCompanionTypes.Enums; using StreamCompanionTypes.Interfaces; using StreamCompanionTypes.Interfaces.Sources; namespace PlaysReplacements { public class PlaysReplacements : IPlugin, ITokensSource { private int Plays, Retrys; private Tokens.TokenS...
using StreamCompanionTypes.DataTypes; using StreamCompanionTypes.Enums; using StreamCompanionTypes.Interfaces; using StreamCompanionTypes.Interfaces.Sources; namespace PlaysReplacements { public class PlaysReplacements : IPlugin, ITokensSource { private int Plays, Retrys; private Tokens.TokenS...
Clear all transforms of catcher trail sprite before returned to pool
// 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.Pooling; using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Textures; using osuTK; namespace o...
// 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.Pooling; using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Textures; using osuTK; namespace o...
Remove test on argument null exception message
using System; using FluentAssertions; using Microsoft.Practices.Unity; using Unity.Interception.Serilog.Tests.Support; using Xunit; namespace Unity.Interception.Serilog.Tests { public class NullTests { [Fact] public void NullMembersShouldThrow() { var container = new UnityCo...
using System; using FluentAssertions; using Microsoft.Practices.Unity; using Unity.Interception.Serilog.Tests.Support; using Xunit; namespace Unity.Interception.Serilog.Tests { public class NullTests { [Fact] public void NullMembersShouldThrow() { var container = new UnityCo...
Add option to install command
namespace SIM.Client.Commands { using CommandLine; using JetBrains.Annotations; using SIM.Core.Commands; public class InstallCommandFacade : InstallCommand { [UsedImplicitly] public InstallCommandFacade() { } [Option('n', "name", Required = true)] public override string Name { get; ...
namespace SIM.Client.Commands { using CommandLine; using JetBrains.Annotations; using SIM.Core.Commands; public class InstallCommandFacade : InstallCommand { [UsedImplicitly] public InstallCommandFacade() { } [Option('n', "name", Required = true)] public override string Name { get; ...
Add Nesting ServiceCollection Extension method overloads
using Microsoft.Extensions.DependencyInjection; using System; namespace THNETII.DependencyInjection.Nesting { public static class NestedServicesServiceCollectionExtensions { public static IServiceCollection AddNestedServices( this IServiceCollection rootServices, string key, ...
using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; namespace THNETII.DependencyInjection.Nesting { public static class NestedServicesServiceCollectionExtensions { public static IServiceCollection AddNestedServices( this IServiceCollection rootSe...
Add Int.To(Int) Method, which allow to generate a sequence between two numbers.
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Ext.NET { class IntegerExtension { public static void Times(this int n, Action<int> action) { for (int i = 0; i < n; ++i) { action(i); } }...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Ext.NET { class IntegerExtension { public static void Times(this int n, Action<int> action) { for (int i = 0; i < n; ++i) { action(i); } }...
Copy Updates Other Copy elements of the Same Type on the Same Page When Saving
@model Portal.CMS.Entities.Entities.Copy.Copy @using Portal.CMS.Web.Areas.Admin.Helpers; @{ Layout = ""; var isAdmin = UserHelper.IsAdmin; } <script type="text/javascript"> $(document).ready(function () { tinymce.init({ selector: '#copy-@(Model.CopyId).admin', inline: true, plugins: [...
@model Portal.CMS.Entities.Entities.Copy.Copy @using Portal.CMS.Web.Areas.Admin.Helpers; @{ Layout = ""; var isAdmin = UserHelper.IsAdmin; } <script type="text/javascript"> $(document).ready(function () { tinymce.init({ selector: '.copy-@(Model.CopyId).admin', inline: true, plugins: [...
Fix output path for nuget package.
#tool "nuget:?package=xunit.runner.console" var target = Argument("target", "Default"); var outputDir = "./bin"; Task("Default") .IsDependentOn("Xunit") .Does(() => { }); Task("Xunit") .IsDependentOn("Build") .Does(()=> { DotNetCoreTest("./src/FibonacciHeap.Tests/FibonacciHeap.Tests.csproj"); }); Ta...
#tool "nuget:?package=xunit.runner.console" var target = Argument("target", "Default"); var outputDir = "./bin"; Task("Default") .IsDependentOn("Xunit") .Does(() => { }); Task("Xunit") .IsDependentOn("Build") .Does(()=> { DotNetCoreTest("./src/FibonacciHeap.Tests/FibonacciHeap.Tests.csproj"); }); Ta...
Change extension method default parameters to use constants
using Serilog.Configuration; using Serilog.Core; using Serilog.Events; using Serilog.Sinks.Graylog.Helpers; using Serilog.Sinks.Graylog.Transport; namespace Serilog.Sinks.Graylog { public static class LoggerConfigurationGrayLogExtensions { public static LoggerConfiguration Graylog(this LoggerSinkConfi...
using Serilog.Configuration; using Serilog.Core; using Serilog.Events; using Serilog.Sinks.Graylog.Helpers; using Serilog.Sinks.Graylog.Transport; namespace Serilog.Sinks.Graylog { public static class LoggerConfigurationGrayLogExtensions { public static LoggerConfiguration Graylog(this LoggerSinkConfi...
Optimize away empty string literals.
using Veil.Parser; namespace Veil.Compiler { internal partial class VeilTemplateCompiler<T> { private void EmitWriteLiteral(SyntaxTreeNode.WriteLiteralNode node) { LoadWriterToStack(); emitter.LoadConstant(node.LiteralContent); CallWriteFor(typeof(string)); ...
using Veil.Parser; namespace Veil.Compiler { internal partial class VeilTemplateCompiler<T> { private void EmitWriteLiteral(SyntaxTreeNode.WriteLiteralNode node) { if (string.IsNullOrEmpty(node.LiteralContent)) return; LoadWriterToStack(); emitter.LoadConst...
Add ability to enter commands
using ArduinoWindowsRemoteControl.Helpers; using ArduinoWindowsRemoteControl.Interfaces; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Ardui...
using ArduinoWindowsRemoteControl.Helpers; using ArduinoWindowsRemoteControl.Interfaces; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Ardui...
Make one of two red tests green by implementing basic support for the Values-method with Id-Property.
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Linq.Expressions; namespace ExRam.Gremlinq { public sealed class ValuesGremlinStep<TSource, TTarget> : NonTerminalGremlinStep { private readonly Expression<Func<TSource, TTarget>>[] _proj...
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Linq.Expressions; namespace ExRam.Gremlinq { public sealed class ValuesGremlinStep<TSource, TTarget> : NonTerminalGremlinStep { private readonly Expression<Func<TSource, TTarget>>[] _proj...
Make it configurable if high or low throws.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IPOCS_Programmer.ObjectTypes { public class PointsMotor_Pulse : PointsMotor { public override byte motorTypeId { get { return 1; } } public byte ThrowLeftOutput { get; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IPOCS_Programmer.ObjectTypes { public class PointsMotor_Pulse : PointsMotor { public override byte motorTypeId { get { return 1; } } public byte ThrowLeftOutput { get; ...
Fix status text not updating upon reset
using UnityEngine; using UnityEngine.UI; /// <summary> /// Attach this to the status text game object /// </summary> public class StatusText : MonoBehaviour { Text text; GlobalGame game; public GlobalGame Game { get { return game; } set { if (game != null) ...
using UnityEngine; using UnityEngine.UI; /// <summary> /// Attach this to the status text game object /// </summary> public class StatusText : MonoBehaviour { Text text; GlobalGame game; public GlobalGame Game { get { return game; } set { if (game != null) ...
Fix null error on status text initialization
using UnityEngine; using UnityEngine.UI; /// <summary> /// Attach this to the status text game object /// </summary> public class StatusText : MonoBehaviour { Text text; GlobalGame game; public GlobalGame Game { get { return game; } set { if (game != null) ...
using UnityEngine; using UnityEngine.UI; /// <summary> /// Attach this to the status text game object /// </summary> public class StatusText : MonoBehaviour { GlobalGame game; public GlobalGame Game { get { return game; } set { if (game != null) { ...
Add service alert for app update notice
using System; using System.Linq; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using CorvallisBus.Core.Models; using HtmlAgilityPack; namespace CorvallisBus.Core.WebClients { public static class ServiceAlertsClient { static readonly Uri FEED_URL = new Uri("http...
using System; using System.Linq; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using CorvallisBus.Core.Models; using HtmlAgilityPack; namespace CorvallisBus.Core.WebClients { public static class ServiceAlertsClient { static readonly Uri FEED_URL = new Uri("http...
Fix NaN floating point comparison
using System; using DesktopWidgets.Properties; namespace DesktopWidgets.Helpers { public static class DoubleHelper { public static bool IsEqual(this double val1, double val2) => double.IsNaN(val1) || double.IsNaN(val1) || (Math.Abs(val1 - val2) > Settings.Default.DoubleComparis...
using System; using DesktopWidgets.Properties; namespace DesktopWidgets.Helpers { public static class DoubleHelper { public static bool IsEqual(this double val1, double val2) => double.IsNaN(val1) || double.IsNaN(val2) || (Math.Abs(val1 - val2) > Settings.Default.DoubleComparis...
Tweak key format in analytics request
using System.Collections; using System.Collections.Specialized; using System.Text; namespace TweetDuck.Core.Other.Analytics{ sealed class AnalyticsReport : IEnumerable{ private OrderedDictionary data = new OrderedDictionary(32); private int separators; public void Add(int ignored){ // add...
using System.Collections; using System.Collections.Specialized; using System.Text; namespace TweetDuck.Core.Other.Analytics{ sealed class AnalyticsReport : IEnumerable{ private OrderedDictionary data = new OrderedDictionary(32); private int separators; public void Add(int ignored){ // add...
Update spectator/multiplayer endpoint in line with new deployment
// 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.Online { public class ProductionEndpointConfiguration : EndpointConfiguration { public ProductionEndpointConfiguration() { ...
// 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.Online { public class ProductionEndpointConfiguration : EndpointConfiguration { public ProductionEndpointConfiguration() { ...
Hide character fields header if no fields
@using JoinRpg.Web.Models @model CharacterDetailsViewModel <div> @Html.Partial("CharacterNavigation", Model.Navigation) @* TODO: Жесточайше причесать эту страницу*@ <dl class="dl-horizontal"> <dt>Игрок</dt> <dd>@Html.DisplayFor(model => model, "IPlayerCharacter")</dd> <dt>@Html.Dis...
@using JoinRpg.Web.Models @model CharacterDetailsViewModel <div> @Html.Partial("CharacterNavigation", Model.Navigation) @* TODO: Жесточайше причесать эту страницу*@ <dl class="dl-horizontal"> <dt>Игрок</dt> <dd>@Html.DisplayFor(model => model, "IPlayerCharacter")</dd> <dt>@Html.Dis...
Add CIV.Interfaces reference in Main
using static System.Console; using CIV.Ccs; 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["Prison"], 450); ...
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["...
Revert "Revert "registration of api controllers fixed""
using System.Web.Http; using Autofac; using Autofac.Integration.WebApi; namespace ReSharperTnT { public class Bootstrapper { static Bootstrapper() { Init(); } public static void Init() { var bootstrapper = new Bootstrapper(); var con...
using System.Reflection; using System.Web.Http; using Autofac; using Autofac.Integration.WebApi; namespace ReSharperTnT { public class Bootstrapper { public static void Init() { var bootstrapper = new Bootstrapper(); var container = bootstrapper.CreateContainer(); ...
Add new fluent syntax: DayOfWeek.Monday.EveryWeek()
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RecurringDates { public static class Extensions { public static SetUnionRule Or(this IRule first, params IRule[] otherRules) { return new SetUnionRule {Rule...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RecurringDates { public static class Extensions { public static SetUnionRule Or(this IRule first, params IRule[] otherRules) { return new SetUnionRule {Rule...
Add missing dependencies to autofac module
using Arkivverket.Arkade.Core; using Arkivverket.Arkade.Core.Noark5; using Arkivverket.Arkade.Identify; using Arkivverket.Arkade.Logging; using Arkivverket.Arkade.Tests; using Arkivverket.Arkade.Tests.Noark5; using Autofac; namespace Arkivverket.Arkade.Util { public class ArkadeAutofacModule : Module { ...
using Arkivverket.Arkade.Core; using Arkivverket.Arkade.Core.Addml; using Arkivverket.Arkade.Core.Noark5; using Arkivverket.Arkade.Identify; using Arkivverket.Arkade.Logging; using Arkivverket.Arkade.Tests; using Arkivverket.Arkade.Tests.Noark5; using Autofac; namespace Arkivverket.Arkade.Util { public class Arkad...
Enable tracing for IAP code
// // Copyright 2019 Google LLC // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Ver...
// // Copyright 2019 Google LLC // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Ver...
Fix issues related to open dialogs when a player disconnects
// SampSharp // Copyright 2022 Tim Potze // // 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 o...
// SampSharp // Copyright 2022 Tim Potze // // 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 o...
Add missing ARC runtime linker flag
using System; using MonoTouch.ObjCRuntime; [assembly: LinkWith ("PSPDFKit.a", LinkTarget.ArmV7s | LinkTarget.ArmV7 | LinkTarget.Simulator, ForceLoad = true, IsCxx = true, Frameworks = "MediaPlayer CoreText QuartzCore MessageUI ImageIO CoreMedia CoreGraphics AVFoundation", LinkerFlags = "-lz -ObjC")]
using System; using MonoTouch.ObjCRuntime; [assembly: LinkWith ("PSPDFKit.a", LinkTarget.ArmV7s | LinkTarget.ArmV7 | LinkTarget.Simulator, ForceLoad = true, IsCxx = true, Frameworks = "MediaPlayer CoreText QuartzCore MessageUI ImageIO CoreMedia CoreGraphics AVFoundation", LinkerFlags = "-lz -ObjC -fobjc-arc")]
Debug mode only enabled for Debug Build configuration
using System.Reflection; using Funq; using ServiceStack.Common.Web; using ServiceStack.ServiceHost; using ServiceStack.Text; using ServiceStack.WebHost.Endpoints; using SimpleEventMonitor.Core; namespace SimpleEventMonitor.Web { public class AppHostSimpleEventMonitor : AppHostBase { public AppHostSimp...
using System.Reflection; using Funq; using ServiceStack.Common.Web; using ServiceStack.ServiceHost; using ServiceStack.Text; using ServiceStack.WebHost.Endpoints; using SimpleEventMonitor.Core; namespace SimpleEventMonitor.Web { public class AppHostSimpleEventMonitor : AppHostBase { public AppHostSimp...
Fix screen capture durring test failure
using System; using System.Drawing.Imaging; using System.IO; using OpenQA.Selenium; namespace Selenium.WebDriver.Equip { public class TestCapture { private IWebDriver _browser = null; private string fileName; public TestCapture(IWebDriver iWebDriver, string type = "Failed") { ...
using OpenQA.Selenium; using System; using System.IO; using System.Reflection; namespace Selenium.WebDriver.Equip { public class TestCapture { private IWebDriver _browser = null; private string fileName; public TestCapture(IWebDriver iWebDriver, string type = "Failed") { ...
Switch simple array diff to default until Efficient array diffing is implemented
namespace JsonDiffPatchDotNet { public sealed class Options { public Options() { ArrayDiff = ArrayDiffMode.Efficient; TextDiff = TextDiffMode.Efficient; MinEfficientTextDiffLength = 50; } public ArrayDiffMode ArrayDiff { get; set; } public TextDiffMode TextDiff { get; set; } ...
namespace JsonDiffPatchDotNet { public sealed class Options { public Options() { ArrayDiff = ArrayDiffMode.Simple; TextDiff = TextDiffMode.Efficient; MinEfficientTextDiffLength = 50; } public ArrayDiffMode ArrayDiff { get; set; } public TextDiffMode TextDiff { get; set; } publi...
Add a hover effect to video player seek bar
using System.Drawing; using System.Windows.Forms; namespace TweetDuck.Video.Controls{ sealed class SeekBar : ProgressBar{ private readonly SolidBrush brush; public SeekBar(){ brush = new SolidBrush(Color.White); SetStyle(ControlStyles.UserPaint, true); SetStyl...
using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace TweetDuck.Video.Controls{ sealed class SeekBar : ProgressBar{ private readonly SolidBrush brushFore; private readonly SolidBrush brushHover; private readonly SolidBrush brushOverlap; ...
Replace SQLite path for MBTiles files with full path, so that doesn't throw an exception on UWP
using System.IO; using BruTile.MbTiles; using Mapsui.Layers; using Mapsui.UI; using SQLite; namespace Mapsui.Samples.Common.Maps { public class MbTilesSample : ISample { // This is a hack used for iOS/Android deployment public static string MbTilesLocation { get; set; } = @"." + Path.Directory...
using System.IO; using BruTile.MbTiles; using Mapsui.Layers; using Mapsui.UI; using SQLite; namespace Mapsui.Samples.Common.Maps { public class MbTilesSample : ISample { // This is a hack used for iOS/Android deployment public static string MbTilesLocation { get; set; } = @"." + Path.Directory...
Fix smoke test to use common LocationName
// Copyright 2019 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 in ...
// Copyright 2019 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 in ...
Enable auto-connection on pre-block bursting screen
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Common.Logging; using GladNet; namespace Booma.Proxy { [SceneTypeCreate(GameSceneType.ServerSelectionScreen)] [SceneTypeCreate(GameSceneType.PreShipSelectionScene)] [SceneTypeCreate(GameSceneTy...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Common.Logging; using GladNet; namespace Booma.Proxy { [SceneTypeCreate(GameSceneType.PreBlockBurstingScene)] [SceneTypeCreate(GameSceneType.ServerSelectionScreen)] [SceneTypeCreate(GameSceneTy...
Set MicrogameCollection dirty in editor update
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; [CustomEditor(typeof(MicrogameCollection))] public class MicrogameCollectionEditor : Editor { public override void OnInspectorGUI() { MicrogameCollection collection = (MicrogameCollection)target; if (GUILayout.Butt...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; [CustomEditor(typeof(MicrogameCollection))] public class MicrogameCollectionEditor : Editor { public override void OnInspectorGUI() { MicrogameCollection collection = (MicrogameCollection)target; if (GUILayout.Butt...
Add a link on Credit card registrations that have not paid
@using Microsoft.Web.Mvc @model CRP.Controllers.ViewModels.PaymentConfirmationViewModel @{ ViewBag.Title = "Confirmation"; } <div class="boundary"> <h2>Registration Confirmation</h2> <p>You have successfully registered for the following event:</p> <div> <label>Item: </label> @Model.Tr...
@using Microsoft.Web.Mvc @model CRP.Controllers.ViewModels.PaymentConfirmationViewModel @{ ViewBag.Title = "Confirmation"; } <div class="boundary"> <h2>Registration Confirmation</h2> <p>You have successfully registered for the following event:</p> <div> <label>Item: </label> @Model.Tr...
Update D2RS to handle new networking infrastructure.
namespace Reaper.SharpBattleNet.Framework.DiabloIIRealmServer.Details { using System; using System.Linq; using System.Text; using System.Collections; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Nini; using Nini.Config; using Nin...
namespace Reaper.SharpBattleNet.Framework.DiabloIIRealmServer.Details { using System; using System.Linq; using System.Text; using System.Collections; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Nini; using Nini.Config; using Nin...
Add edit links to noitces admin
@model LETS.ViewModels.MemberNoticesViewModel <h1>@string.Format("{0}'s {1}", @Model.Member.FirstLastName, T("notices"))</h1> @if (Model.Notices.Count().Equals(0)) { <p>@T("This member doesn't have any active notices")</p> } @foreach (var notice in Model.Notices) { @Display(notice) } @{ <div id="archivedN...
@using LETS.Helpers; @model LETS.ViewModels.MemberNoticesViewModel <h1>@string.Format("{0}'s {1}", @Model.Member.FirstLastName, T("notices"))</h1> @if (Model.Notices.Count().Equals(0)) { <p>@T("This member doesn't have any active notices")</p> } @foreach (var notice in Model.Notices) { var id = notice.Content...
Fix IndexOutOfBounds exception on application closing
using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; namespace XmlParserWpf { public class FilesViewModel: ObservableCollection<FilesListItem> { public const int NoneSelection = -1; private int _selectedIndex = NoneSelection; public int SelectedIndex ...
using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; namespace XmlParserWpf { public class FilesViewModel: ObservableCollection<FilesListItem> { public const int NoneSelection = -1; private int _selectedIndex = NoneSelection; public int SelectedIndex ...
Fix gestione codici chiamata in Trasferimento Chiamata
using MongoDB.Driver; using MongoDB.Driver.Linq; using Persistence.MongoDB; using SO115App.Models.Servizi.Infrastruttura.GestioneTrasferimentiChiamate.CodiciChiamate; using System.Collections.Generic; namespace SO115App.Persistence.MongoDB.GestioneTrasferimentiChiamate.CodiciChiamate { public class GetCodiciChiam...
using MongoDB.Driver; using MongoDB.Driver.Linq; using Persistence.MongoDB; using SO115App.API.Models.Classi.Organigramma; using SO115App.API.Models.Classi.Soccorso; using SO115App.Models.Servizi.Infrastruttura.GestioneTrasferimentiChiamate.CodiciChiamate; using SO115App.Models.Servizi.Infrastruttura.SistemiEsterni.Se...
Add difficulty calculator beatmap decoder fallback
// 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.Game.Beatmaps.ControlPoints; namespace osu.Game.Beatmaps.Formats { /// <summary> /// A <see cref="LegacyBeatmapDecoder"/> built for ...
// 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.Game.Beatmaps.ControlPoints; namespace osu.Game.Beatmaps.Formats { /// <summary> /// A <see cref="LegacyBeatmapDecoder"/> built for ...
Test data for last 3 tile types.
using System; using HexWorld.Enums; namespace HexWorld { public class Tile { public TileTypes Type { get; set; } public bool IsWater { get; set; } public string Printable { get; set; } public Tile(TileTypes type) { ChangeTile(type); } publi...
using System; using HexWorld.Enums; namespace HexWorld { public class Tile { public TileTypes Type { get; set; } public bool IsWater { get; set; } public string Printable { get; set; } public Tile(TileTypes type) { ChangeTile(type); } publi...
Add broken test to testproj
namespace testproj { using System; using JetBrains.dotMemoryUnit; using NUnit.Framework; [TestFixture] public class UnitTest1 { [Test] public void TestMethod1() { dotMemory.Check( memory => { var str1 = "...
namespace testproj { using System; using System.Collections.Generic; using JetBrains.dotMemoryUnit; using NUnit.Framework; [TestFixture] public class UnitTest1 { [Test] public void TestMethod1() { var strs = new List<string>(); var memoryCh...
Fix the player score counter (IsFaking always returned true)
using UnityEngine; using UnityEngine.Networking; public class PlayerState : NetworkBehaviour { [SyncVar] string fakingTheory; [SyncVar] int score; void Start() { fakingTheory = null; score = 0; } [Command] public void CmdSetFakingState(string newFakingTheory) ...
using System; using UnityEngine; using UnityEngine.Networking; public class PlayerState : NetworkBehaviour { [SyncVar] string fakingTheory; [SyncVar] int score; void Start() { fakingTheory = null; score = 0; } [Command] public void CmdSetFakingState(string new...
Add conditions to background tasks
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Windows.ApplicationModel.Background; using Gitter.Services.Abstract; namespace Gitter.Services.Concrete { public class BackgroundTaskService : IBackgroundTaskService { public Dictionary<string, strin...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Windows.ApplicationModel.Background; using Gitter.Services.Abstract; namespace Gitter.Services.Concrete { public class BackgroundTaskService : IBackgroundTaskService { public Dictionary<string, strin...
Add option to mark exceptions as observed
using System; namespace Mindscape.Raygun4Net { public class RaygunSettings { private static RaygunSettings settings; private const string DefaultApiEndPoint = "https://api.raygun.io/entries"; private const string DefaultPulseEndPoint = "https://api.raygun.io/events"; public static RaygunSettings ...
using System; namespace Mindscape.Raygun4Net { public class RaygunSettings { private static RaygunSettings settings; private const string DefaultApiEndPoint = "https://api.raygun.io/entries"; private const string DefaultPulseEndPoint = "https://api.raygun.io/events"; public static RaygunSettings ...
Put in some debugging code for looking at what functions have been added to the rooted event handler.
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MatterHackers.Agg.UI { public class RootedObjectEventHandler { EventHandler InternalEvent; public void RegisterEvent(EventHandler functionToCallOnEvent, ref EventHandler functionThatWillBeCalledToUn...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MatterHackers.Agg.UI { public class RootedObjectEventHandler { #if DEBUG private event EventHandler InternalEventForDebug; private List<EventHandler> DebugEventDelegates = new List<EventHandler>(); ...
Add in check for null pointers.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GrienerTest { public partial class PolygonClip { #if false void insert(node *ins, node *first, node *last) { node *aux=first; while(aux != last &...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GrienerTest { public partial class PolygonClip { #if false void insert(node *ins, node *first, node *last) { node *aux=first; while(aux != last &...
Add nick wolf contact info.
@{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.co...
@{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.co...
Fix indentation when changing inside multiline block
using System; using Mono.TextEditor; using ICSharpCode.NRefactory; namespace JustEnoughVi { public class ChangeInnerBlock : ChangeCommand { public ChangeInnerBlock(TextEditorData editor, char openingChar, char closingChar) : base(editor, TextObject.InnerBlock, openingChar, closingChar) ...
using System; using Mono.TextEditor; using ICSharpCode.NRefactory.Utils; using ICSharpCode.NRefactory; namespace JustEnoughVi { public class ChangeInnerBlock : ChangeCommand { public ChangeInnerBlock(TextEditorData editor, char openingChar, char closingChar) : base(editor, TextObject.Inne...
Use portable ToCharArray overload yielding equivalent result
using System; using System.IO; using System.Text; namespace EvilDICOM.Core.IO.Writing { public class DICOMBinaryWriter : IDisposable { private readonly BinaryWriter _writer; /// <summary> /// Constructs a new writer from a file path. /// </summary> ///...
using System; using System.IO; using System.Text; namespace EvilDICOM.Core.IO.Writing { public class DICOMBinaryWriter : IDisposable { private readonly BinaryWriter _writer; /// <summary> /// Constructs a new writer from a file path. /// </summary> ///...
Allow to run build even if git repo informations are not available
#tool "nuget:?package=GitVersion.CommandLine" #addin "Cake.Yaml" public class ContextInfo { public string NugetVersion { get; set; } public string AssemblyVersion { get; set; } public GitVersion Git { get; set; } public string BuildVersion { get { return NugetVersion + "-" + Git.Sha; } ...
#tool "nuget:?package=GitVersion.CommandLine" #addin "Cake.Yaml" public class ContextInfo { public string NugetVersion { get; set; } public string AssemblyVersion { get; set; } public GitVersion Git { get; set; } public string BuildVersion { get { return NugetVersion + "-" + Git.Sha; } ...
Add some code to dump known colors
using System; using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Shapes; class Program { [STAThread] static void Main(string[] args) { var app = new Application(); var window = new Window(); window.W...
using System; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Shapes; class Program { [STAThread] static void Main(string[] args) { var app = new Application(); var window = new Window(...
Revert "Revert "auswertung von tags gebessert""
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Antlr4.Runtime; using Antlr4.Runtime.Misc; using Antlr4.Runtime.Tree; namespace Twee2Z.Analyzer { public static class TweeAnalyzer { public static ObjectT...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Antlr4.Runtime; using Antlr4.Runtime.Misc; using Antlr4.Runtime.Tree; namespace Twee2Z.Analyzer { public static class TweeAnalyzer { public static ObjectTr...
Fix to ensure Delta start time is reset when storage is re-created
using System; using System.Threading.Tasks; using Eurofurence.App.Domain.Model.Abstractions; using Eurofurence.App.Domain.Model.Sync; using Eurofurence.App.Server.Services.Abstractions; namespace Eurofurence.App.Server.Services.Storage { public class StorageService<T> : IStorageService { private reado...
using System; using System.Threading.Tasks; using Eurofurence.App.Domain.Model.Abstractions; using Eurofurence.App.Domain.Model.Sync; using Eurofurence.App.Server.Services.Abstractions; namespace Eurofurence.App.Server.Services.Storage { public class StorageService<T> : IStorageService { private reado...
Revert "Added place to output products"
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Vending.Core { public class VendingMachine { private readonly List<Coin> _coins = new List<Coin>(); private readonly...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Vending.Core { public class VendingMachine { private readonly List<Coin> _coins = new List<Coin>(); private readonly...
Fix display of color code
using System; using System.Globalization; using System.Windows.Data; using System.Windows.Media; namespace MaterialDesignDemo.Converters { public class BrushToHexConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { ...
using System; using System.Globalization; using System.Windows.Data; using System.Windows.Media; namespace MaterialDesignDemo.Converters { public class BrushToHexConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { ...
Add remark to doc comment
using System; namespace RockLib.Messaging { /// <summary> /// Defines an interface for receiving messages. To start receiving messages, /// set the value of the <see cref="MessageHandler"/> property. /// </summary> public interface IReceiver : IDisposable { /// <summary> /// Ge...
using System; namespace RockLib.Messaging { /// <summary> /// Defines an interface for receiving messages. To start receiving messages, /// set the value of the <see cref="MessageHandler"/> property. /// </summary> public interface IReceiver : IDisposable { /// <summary> /// Ge...
Add city power and water variables.
using Citysim.Map; namespace Citysim { public class City { /// <summary> /// Amount of cash available. /// </summary> public int cash = 10000; // $10,000 starting cash /// <summary> /// The world. Needs generation. /// </summary> public World wo...
using Citysim.Map; namespace Citysim { public class City { /// <summary> /// Amount of cash available. /// </summary> public int cash = 10000; // $10,000 starting cash /// <summary> /// MW (mega watts) of electricity available to the city. /// </summary...
Remove whitespace in informational text
// Copyright 2018 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; using System.Reflection; namespace Nuke.Common.Utilities { public static class AssemblyExtensions { public static string GetInformatio...
// Copyright 2018 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Linq; using System.Reflection; namespace Nuke.Common.Utilities { public static class AssemblyExtensions { public static string GetInformatio...
Rename Tenant to Domain in the web api template
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Company.WebApplication1 { public class AzureAdB2COptions { public string ClientId { get; set; } public string AzureAdB2CInstance { get; set; } public string Tenant { get; set; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Company.WebApplication1 { public class AzureAdB2COptions { public string ClientId { get; set; } public string AzureAdB2CInstance { get; set; } public string Domain { get; set; } ...
Fix classification test to use object type.
// 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.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.VisualStudio.LanguageServer.Protocol; using Mic...
// 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.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.VisualStudio.LanguageServer.Protocol; using Mic...
Add code to remove all old settings
namespace Mappy { using System; using System.Windows.Forms; using UI.Forms; public static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] public static void Main() { App...
namespace Mappy { using System; using System.IO; using System.Windows.Forms; using UI.Forms; public static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] public static void Main() ...
Fix flush unclaer data bugs.
using System.Collections.Generic; using DotNetCore.CAP.Models; namespace DotNetCore.CAP { public abstract class CapTransactionBase : ICapTransaction { private readonly IDispatcher _dispatcher; private readonly IList<CapPublishedMessage> _bufferList; protected CapTransactionBase(IDisp...
using System.Collections.Generic; using DotNetCore.CAP.Models; namespace DotNetCore.CAP { public abstract class CapTransactionBase : ICapTransaction { private readonly IDispatcher _dispatcher; private readonly IList<CapPublishedMessage> _bufferList; protected CapTransactionBase(IDisp...
Fix one remaining case of incorrect audio testing
// 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; namespace osu.Framework.Tests.Audio { [TestFixture] public class DevicelessAudioTest : AudioThreadTest { public override void...
// 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; namespace osu.Framework.Tests.Audio { [TestFixture] public class DevicelessAudioTest : AudioThreadTest { public override void...
Make the jumbotron inside a container.
 <div id="my-jumbotron" class="jumbotron"> <div class="container"> <h1>Welcome!</h1> <p>We are Sweet Water Revolver. This is our website. Please look around and check out our...</p> <p><a class="btn btn-primary btn-lg" role="button">... showtimes.</a></p> </div> </div>
<div class="container"> <div id="my-jumbotron" class="jumbotron"> <h1>Welcome!</h1> <p>We are Sweet Water Revolver. This is our website. Please look around and check out our...</p> <p><a class="btn btn-primary btn-lg" role="button">... showtimes.</a></p> </div> </div>
Fix Error With Skill Test
using UnityEngine; using System.Collections; public class test : Skill { private float duration = 10f; private float expiration; bool active; Player player; private int bonusStrength; protected override void Start() { base.Start(); base.SetBaseValues(15, 16000, 150, "I...
using UnityEngine; using System.Collections; public class test : Skill { private float duration = 10f; private float expiration; bool active; Player player; private int bonusStrength; protected override void Start() { base.Start(); base.SetBaseValues(15, 16000, 150, "I...
Add edge case unit tests
using Xunit; namespace Pioneer.Pagination.Tests { /// <summary> /// Clamp Tests /// </summary> public class ClampTests { private readonly PaginatedMetaService _sut = new PaginatedMetaService(); [Fact] public void LastPageDisplayed() { var result = _sut....
using Xunit; namespace Pioneer.Pagination.Tests { /// <summary> /// Clamp Tests /// </summary> public class ClampTests { private readonly PaginatedMetaService _sut = new PaginatedMetaService(); [Fact] public void NextPageIsLastPageInCollectionWhenRequestedPageIsGreatedThen...
Enable https redirection and authorization for non-dev envs only
using TruckRouter.Models; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); build...
using TruckRouter.Models; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); build...
Add test for authorization requirement in TraktUserCustomListUpdateRequest
namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Put; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Objects.Get.Users.Lists; u...
namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Put; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Objects.Get.Users.Lists; u...
Add original constructor signature as there is Inception code which looks for it
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Umbraco.Inception.Attributes { [AttributeUsage(AttributeTargets.Property)] public class UmbracoTabAttribute : Attribute { public string Name { get; set; } public in...
using System; namespace Umbraco.Inception.Attributes { [AttributeUsage(AttributeTargets.Property)] public class UmbracoTabAttribute : Attribute { public string Name { get; set; } public int SortOrder { get; set; } public UmbracoTabAttribute(string name) { Name ...
Revert "Revert "Added "final door count" comment at return value.""
using System.Linq; namespace HundredDoors { public static class HundredDoors { /// <summary> /// Solves the 100 Doors problem /// </summary> /// <returns>An array with 101 values, each representing a door (except 0). True = open</returns> public static bool[] Solve() { // Create our array with 101 va...
using System.Linq; namespace HundredDoors { public static class HundredDoors { /// <summary> /// Solves the 100 Doors problem /// </summary> /// <returns>An array with 101 values, each representing a door (except 0). True = open</returns> public static bool[] Solve() { // Create our array with 101 va...
Fix log command and return log lines
using Cake.Core; using Cake.Core.Annotations; using System; namespace Cake.Docker { partial class DockerAliases { /// <summary> /// Logs <paramref name="container"/> using default settings. /// </summary> /// <param name="context">The context.</param> /// <param name="c...
using Cake.Core; using Cake.Core.Annotations; using System; using System.Linq; using System.Collections.Generic; namespace Cake.Docker { partial class DockerAliases { /// <summary> /// Logs <paramref name="container"/> using default settings. /// </summary> /// <param name="con...
Make DropdDownNavigationWorks more reliable and use new test methods.
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Bonobo.Git.Server.Controllers; using Bonobo.Git.Server.Test.Integration.Web; using Bonobo.Git.Server.Test.IntegrationTests.Helpers; using SpecsFor.Mvc; namespace Bonobo.Git.Server.Test.IntegrationTests { using OpenQA.Selenium.Support.UI; ...
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Bonobo.Git.Server.Controllers; using Bonobo.Git.Server.Test.Integration.Web; using Bonobo.Git.Server.Test.IntegrationTests.Helpers; using SpecsFor.Mvc; namespace Bonobo.Git.Server.Test.IntegrationTests { using OpenQA.Selenium.Support.UI; ...
Rework exception asserts to improve failure messages.
using System; using System.Linq; using System.Linq.Expressions; using FluentAssertions; namespace PSql.Tests { using static ScriptExecutor; internal static class StringExtensions { internal static void ShouldOutput( this string script, params object[...
using System; using System.Linq; using System.Linq.Expressions; using FluentAssertions; namespace PSql.Tests { using static ScriptExecutor; internal static class StringExtensions { internal static void ShouldOutput( this string script, params object[...
Fix build when targeting .NET Framework 3.5 as Func only supports covariance on .NET Framework 4.0 and higher.
using Microsoft.VisualStudio.TestTools.UnitTesting; using Renci.SshNet.Security.Cryptography; using Renci.SshNet.Tests.Common; using System; namespace Renci.SshNet.Tests.Classes { /// <summary> /// Holds information about key size and cipher to use /// </summary> [TestClass] public clas...
using Microsoft.VisualStudio.TestTools.UnitTesting; using Renci.SshNet.Security.Cryptography; using Renci.SshNet.Tests.Common; using System; namespace Renci.SshNet.Tests.Classes { /// <summary> /// Holds information about key size and cipher to use /// </summary> [TestClass] public clas...
Fix a warning about a cref in an XML doc comment.
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.CodeAnalysis { /// <summary> /// Indicates that the implementing type can be serialized via <see cref="ToS...
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.CodeAnalysis { /// <summary> /// Indicates that the implementing type can be serialized via <see cref="obj...
Change get method and add the new getter
using System.Collections.Generic; using System.Threading.Tasks; using Smooth.IoC.Dapper.Repository.UnitOfWork.Data; namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo { public interface IRepository<TEntity, TPk> where TEntity : class, IEntity<TPk> { TEntity Get(TPk key, ISession session = ...
using System.Collections.Generic; using System.Threading.Tasks; using Smooth.IoC.Dapper.Repository.UnitOfWork.Data; namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo { public interface IRepository<TEntity, TPk> where TEntity : class, IEntity<TPk> { TEntity GetKey(TPk key, ISession session...
Revert "Exclude the first word"
using System; using System.Diagnostics; using System.Linq; namespace mountain_thoughts { public class Program { public static void Main(string[] args) { Process mountainProcess = NativeMethods.GetMountainProcess(); if (mountainProcess == null) { ...
using System; using System.Diagnostics; namespace mountain_thoughts { public class Program { public static void Main(string[] args) { Process mountainProcess = NativeMethods.GetMountainProcess(); if (mountainProcess == null) { Console.WriteLi...
Fix not to use expression-bodied constructors (cont.)
//----------------------------------------------------------------------- // <copyright file="AllScoreData.cs" company="None"> // Copyright (c) IIHOSHI Yoshinori. // Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information. // </copyright> //-----------------------...
//----------------------------------------------------------------------- // <copyright file="AllScoreData.cs" company="None"> // Copyright (c) IIHOSHI Yoshinori. // Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information. // </copyright> //-----------------------...
Handle the TwoHour time interval for strategies - was defaulting to 15
namespace MultiMiner.Win.Extensions { static class TimeIntervalExtensions { public static int ToMinutes(this MultiMiner.Win.ApplicationConfiguration.TimerInterval timerInterval) { int coinStatsMinutes; switch (timerInterval) { case Application...
namespace MultiMiner.Win.Extensions { static class TimeIntervalExtensions { public static int ToMinutes(this MultiMiner.Win.ApplicationConfiguration.TimerInterval timerInterval) { int coinStatsMinutes; switch (timerInterval) { case Application...
Add missing XML docs to code. bugid: 272
using System; namespace Csla.Serialization.Mobile { /// <summary> /// Placeholder for null child objects. /// </summary> [Serializable()] public sealed class NullPlaceholder : IMobileObject { #region Constructors public NullPlaceholder() { // Nothing } #endregi...
using System; namespace Csla.Serialization.Mobile { /// <summary> /// Placeholder for null child objects. /// </summary> [Serializable()] public sealed class NullPlaceholder : IMobileObject { #region Constructors /// <summary> /// Creates an instance of the type. /// </summa...
Change user picture field to PictureUrl
// Copyright (c) ComUnity 2015 // Hans Malherbe <hansm@comunity.co.za> using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace CEP { public class UserProfile { [Key,...
// Copyright (c) ComUnity 2015 // Hans Malherbe <hansm@comunity.co.za> using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; namespace CEP { public class UserProfile { [Key,...
Change the way we match args to property tokens to more closely match Serilog when you pass in too few or too many arguments
using System; using System.Collections.Generic; using System.Linq; using Akka.Event; using Serilog.Events; using Serilog.Parsing; namespace Akka.Serilog.Event.Serilog { public class SerilogLogMessageFormatter : ILogMessageFormatter { private readonly MessageTemplateCache _templateCache; publi...
using System; using System.Collections.Generic; using System.Linq; using Akka.Event; using Serilog.Events; using Serilog.Parsing; namespace Akka.Serilog.Event.Serilog { public class SerilogLogMessageFormatter : ILogMessageFormatter { private readonly MessageTemplateCache _templateCache; ...
Call 'update' with Delta time
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; namespace RockyTV.Duality.Plugins.IronPy...
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; namespace RockyTV.Duality.Plugins.IronPy...
Change version up to 1.1.0
using UnityEngine; using System.Reflection; [assembly: AssemblyVersion("1.0.0.*")] public class Loader : MonoBehaviour { /// <summary> /// DebugUI prefab to instantiate. /// </summary> [SerializeField] private GameObject _debugUI; /// <summary> /// ModalDialog prefab to insta...
using UnityEngine; using System.Reflection; [assembly: AssemblyVersion("1.1.0.*")] public class Loader : MonoBehaviour { /// <summary> /// DebugUI prefab to instantiate. /// </summary> [SerializeField] private GameObject _debugUI; /// <summary> /// ModalDialog prefab to insta...
Put variables in Main first
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Console; namespace ConsoleApp { public class Table { private readonly string tableName; private readonly IEnumerable<Column> columns; public Table(string tableName, IEnumerable<Colu...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using static System.Console; namespace ConsoleApp { public class Table { private readonly string tableName; private readonly IEnumerable<Column> columns; public Table(string tableName, IEnumerable<Colu...