Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Change test method to async
using System; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace PublicHolidays.Test { [TestClass] public class PublicHolidaysApiTest { [TestMethod] public void TestGet() { var holidays = JpPublicHolidays.PublicHolidays.Get().Result; ...
using System; using System.Linq; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace PublicHolidays.Test { [TestClass] public class PublicHolidaysApiTest { [TestMethod] public async Task TestGet() { var holidays = await JpPublicHo...
Rework the way DB access is done
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using PKMDS_CS; namespace PKMDS_Save_Editor { public partial class frmMain : Form { public frmMain() { ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using PKMDS_CS; namespace PKMDS_Save_Editor { public partial class frmMain : Form { public frmMain() { ...
Create server side API for single multiple answer question
using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRespository { private readonly TrappistDbContext _dbContex...
using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRespository { private readonly TrappistDbContext _dbContex...
Use dot instead of dash to separate build metadata
public class BuildVersion { public GitVersion GitVersion { get; private set; } public string Version { get; private set; } public string Milestone { get; private set; } public string SemVersion { get; private set; } public string GemVersion { get; private set; } public string VsixVersion { get; ...
public class BuildVersion { public GitVersion GitVersion { get; private set; } public string Version { get; private set; } public string Milestone { get; private set; } public string SemVersion { get; private set; } public string GemVersion { get; private set; } public string VsixVersion { get; ...
Hide results until results are available
@model string <div class="container"> <form action="/" method="POST"> <div class="control-group"> <div class="controls controls-row"> <div class="input-prepend"> <span class="add-on">Ask me</span> <input id="query" name="query" class="inp...
@model string <div class="container"> <form action="/" method="POST"> <div class="control-group"> <div class="controls controls-row"> <div class="input-prepend"> <span class="add-on">Ask me</span> <input id="query" name="query" class="inp...
Fix parameter order in ArgumentException constructor
using System; namespace WpfMath.Utils { internal static class Result { public static Result<TValue> Ok<TValue>(TValue value) => new Result<TValue>(value, null); public static Result<TValue> Error<TValue>(Exception error) => new Result<TValue>(default, error); } internal readonly struct...
using System; namespace WpfMath.Utils { internal static class Result { public static Result<TValue> Ok<TValue>(TValue value) => new Result<TValue>(value, null); public static Result<TValue> Error<TValue>(Exception error) => new Result<TValue>(default, error); } internal readonly struct...
Fix not being able to drag non-snaked sliders
// 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.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Rulesets.Osu.Objects.Dr...
// 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.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Rulesets.Osu.Objects.Dr...
Use discards to fix CI complaints
// 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 System; using NUnit.Framework; using osu.Framework.Graphics.Containers; using osu.Framework.Tests.Visual; namespace osu.Framework.Tests.Contain...
// 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 System; using NUnit.Framework; using osu.Framework.Graphics.Containers; using osu.Framework.Tests.Visual; namespace osu.Framework.Tests.Contain...
Add SignPath to known words
// Copyright 2021 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE namespace Nuke.Common.Utilities { public static partial class StringExtensions { private static readonly string[] KnownWords = { "DotNet", ...
// Copyright 2021 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE namespace Nuke.Common.Utilities { public static partial class StringExtensions { private static readonly string[] KnownWords = { "DotNet", ...
Apply angular velocity to asteroids
/* ** Project ShiftDrive ** (C) Mika Molenkamp, 2016. */ using Microsoft.Xna.Framework; namespace ShiftDrive { /// <summary> /// A <seealso cref="GameObject"/> representing a single asteroid. /// </summary> internal sealed class Asteroid : GameObject { public Asteroid() { type =...
/* ** Project ShiftDrive ** (C) Mika Molenkamp, 2016. */ using System; using Microsoft.Xna.Framework; namespace ShiftDrive { /// <summary> /// A <seealso cref="GameObject"/> representing a single asteroid. /// </summary> internal sealed class Asteroid : GameObject { private float angularVel...
Use body length for Service Bus binary messages.
using System; using System.IO; using System.Text; using Microsoft.Azure.Jobs.Host.Bindings; using Microsoft.ServiceBus.Messaging; namespace Microsoft.Azure.Jobs.ServiceBus.Triggers { internal class BrokeredMessageValueProvider : IValueProvider { private readonly object _value; private readonly...
using System; using System.IO; using System.Text; using Microsoft.Azure.Jobs.Host.Bindings; using Microsoft.ServiceBus.Messaging; namespace Microsoft.Azure.Jobs.ServiceBus.Triggers { internal class BrokeredMessageValueProvider : IValueProvider { private readonly object _value; private readonly...
Update existing documentation for show images.
namespace TraktApiSharp.Objects.Get.Shows { using Basic; using Newtonsoft.Json; /// <summary> /// A collection of images for a Trakt show. /// </summary> public class TraktShowImages { /// <summary> /// A fanart image set for various sizes. /// </summary> [J...
namespace TraktApiSharp.Objects.Get.Shows { using Basic; using Newtonsoft.Json; /// <summary>A collection of images and image sets for a Trakt show.</summary> public class TraktShowImages { /// <summary>Gets or sets the fan art image set.</summary> [JsonProperty(PropertyName = "fan...
Include the Table namespace into Hangman
using System; public class Hangman { public static void Main(string[] args) { Console.WriteLine("Hello, World!"); Console.WriteLine("You entered the following {0} command line arguments:", args.Length ); for (int i=0; i < args.Length; i++) { Console.WriteLine("{0}", args[i]); } } }
using System; using Table; public class Hangman { public static void Main(string[] args) { Console.WriteLine("Hello, World!"); Console.WriteLine("You entered the following {0} command line arguments:", args.Length ); for (int i=0; i < args.Length; i++) { Console.WriteLine("{0}", args[i]); ...
Add vote method to voting service
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PhotoLife.Services { class VotingService { } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using PhotoLife.Data.Contracts; using PhotoLife.Factories; using PhotoLife.Models; using PhotoLife.Services.Contracts; namespace PhotoLife.Services { public class VotingService { private...
Increment version 0.1.3 -> 0.1.4
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("PogoLocationFeeder")] [assembly: Assembl...
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("PogoLocationFeeder")] [assembly: Assembl...
Test version of binary dependency
using System; using System.Linq; using Microsoft.Build.Evaluation; using NuGet.Extensions.MSBuild; using NuGet.Extensions.Tests.TestData; using NUnit.Framework; namespace NuGet.Extensions.Tests.MSBuild { [TestFixture] public class ProjectAdapterTests { [Test] public void ProjectWithDepende...
using System; using System.Linq; using Microsoft.Build.Evaluation; using NuGet.Extensions.MSBuild; using NuGet.Extensions.Tests.TestData; using NUnit.Framework; namespace NuGet.Extensions.Tests.MSBuild { [TestFixture] public class ProjectAdapterTests { private const string _expectedBinaryDependenc...
Fix ButtonMadness application closes when Close button is clicked.
using System; using System.Drawing; using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; namespace SamplesButtonMadness { public partial class AppDelegate : NSApplicationDelegate { TestWindowController mainWindowController; public AppDelegate () { } public override void FinishedLaun...
using System; using System.Drawing; using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; namespace SamplesButtonMadness { public partial class AppDelegate : NSApplicationDelegate { TestWindowController mainWindowController; public AppDelegate () { } public override void FinishedLaun...
Make the Loading html page look better.
using System; using System.Collections.Generic; using System.Threading.Tasks; using Xamarin.Forms; namespace BabbyJotz { public partial class WebViewPage : ContentPage { public WebViewPage(string title, Func<Task<string>> htmlFunc) { InitializeComponent(); Title = title; ...
using System; using System.Collections.Generic; using System.Threading.Tasks; using Xamarin.Forms; namespace BabbyJotz { public partial class WebViewPage : ContentPage { public WebViewPage(string title, Func<Task<string>> htmlFunc) { InitializeComponent(); Title = title; ...
Include interface to make IoC easier
using System.Collections.Generic; using System.Xml.Serialization; namespace XeroApi.Model { public abstract class EndpointModelBase : ModelBase { } public abstract class ModelBase { [XmlAttribute("status")] public ValidationStatus ValidationStatus { ...
using System.Collections.Generic; using System.Xml.Serialization; namespace XeroApi.Model { public abstract class EndpointModelBase : ModelBase { } public abstract class ModelBase : IModelBase { [XmlAttribute("status")] public ValidationStatus ValidationStatus ...
Fix unit test that was failing after moving from yepnope to LazyLoad.js
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; using Newtonsoft.Json.Linq; using Umbraco.Core.Manifest; using Umbraco.Web.UI.JavaScript; namespace Umbraco.Tests.AngularIntegration { [TestFixture] public cl...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; using Newtonsoft.Json.Linq; using Umbraco.Core.Manifest; using Umbraco.Web.UI.JavaScript; namespace Umbraco.Tests.AngularIntegration { [TestFixture] public cl...
Fix rare crash when deleting airlock while the deny animation is playing
using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using static Content.Shared.GameObjects.Components.SharedWiresComponent; namespace Content.Client.GameObjects.Components.Wires { public class WiresVisualizer : AppearanceVisualizer { public override void OnChangeDat...
using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using static Content.Shared.GameObjects.Components.SharedWiresComponent; namespace Content.Client.GameObjects.Components.Wires { public class WiresVisualizer : AppearanceVisualizer { public override void OnChangeDat...
Change Steam switch timeout and check time
#region using System.Diagnostics; using System.IO; using System.Threading; using SteamAccountSwitcher.Properties; #endregion namespace SteamAccountSwitcher { internal class SteamClient { public static void LogIn(Account account) { Process.Start(Settings.Default.SteamPath, ...
#region using System.Diagnostics; using System.IO; using System.Threading; using SteamAccountSwitcher.Properties; #endregion namespace SteamAccountSwitcher { internal class SteamClient { public static void LogIn(Account account) { Process.Start(Settings.Default.SteamPath, ...
Load from embedded resources on GTK too.
// Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using System.Globalization; using System.IO; using System.Reflection; using System.Resources; using Perspex.Platform; namespace Perspex.Gtk...
// Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using System.Globalization; using System.IO; using System.Reflection; using System.Resources; using Perspex.Platform; namespace Perspex.Gtk...
Remove sticky note 'Patron's Trophy'
<div class="sticky-notes"> <div class="sticky-note"> <i class="pin"></i> <div class="content yellow"> <h1> Patron's Trophy </h1> <p> Entries for Parton's Trophy close Thursday, 2nd June 2016. <a href="/tournaments">Learn more</a> o...
<div class="sticky-notes"> <div class="sticky-note"> <i class="pin"></i> <div class="content green"> <h1> Recent Updates </h1> <ul> <li>Link to Association Croquet World Rankings added to <a href="/disciplines/association-croquet/r...
Build the builder in order to create the receiver
using Microsoft.Extensions.Configuration; using RockLib.Messaging; namespace RockLib.Configuration.MessagingProvider { public static class RockLibMessagingProviderExtensions { public static IConfigurationBuilder AddRockLibMessagingProvider(this IConfigurationBuilder builder, string scenarioName) => ...
using Microsoft.Extensions.Configuration; using RockLib.Messaging; namespace RockLib.Configuration.MessagingProvider { public static class RockLibMessagingProviderExtensions { public static IConfigurationBuilder AddRockLibMessagingProvider(this IConfigurationBuilder builder, string scenarioName) => ...
Revert "unit test bug fix"
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="SerializationDummyFactory.cs" company="OBeautifulCode"> // Copyright (c) OBeautifulCode 2018. All rights reserved. // </copyright> // <auto-generated> // Sourced from NuGet pac...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="SerializationDummyFactory.cs" company="OBeautifulCode"> // Copyright (c) OBeautifulCode 2018. All rights reserved. // </copyright> // <auto-generated> // Sourced from NuGet pac...
Add empty constructor for files that don't have a comment yet.
using NUnit.Framework; namespace TagLib.Tests.Images.Validators { /// <summary> /// This class tests the modification of the Comment field, /// regardless of which metadata format is used. /// </summary> public class CommentModificationValidator : IMetadataModificationValidator { string orig_comment; r...
using System; using NUnit.Framework; namespace TagLib.Tests.Images.Validators { /// <summary> /// This class tests the modification of the Comment field, /// regardless of which metadata format is used. /// </summary> public class CommentModificationValidator : IMetadataModificationValidator { string ori...
Make wait service not timeout without yelling, and making the timeout longer
// 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. using System; using System.Threading; namespace RazorWebSite { public class WaitService { private static readonly Tim...
// 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. using System; using System.Threading; namespace RazorWebSite { public class WaitService { private static readonly Tim...
Fix caption of Python Environments window.
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution...
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution...
Unwind some Linq in a relatively hot path
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Shared.Extension...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Shared.Extension...
Use GetFileFromApplicationUriAsync to convert from a Uri to a system file path.
using FBCore.Concurrency; using ImagePipeline.Image; using ImagePipeline.Memory; using ImagePipeline.Request; using System.IO; using System.Threading.Tasks; namespace ImagePipeline.Producers { /// <summary> /// Represents a local file fetch producer. /// </summary> public class LocalFileFetchProducer ...
using FBCore.Concurrency; using ImagePipeline.Image; using ImagePipeline.Memory; using ImagePipeline.Request; using System; using System.IO; using System.Threading.Tasks; using Windows.Foundation; using Windows.Storage; namespace ImagePipeline.Producers { /// <summary> /// Represents a local file fetch produc...
Use RunClassConstructor to initialize templates
using System.Collections.Generic; using System.IO; using System.Text.Encodings.Web; using System.Threading.Tasks; using Fluid.Ast; namespace Fluid { public class BaseFluidTemplate<T> : IFluidTemplate where T : IFluidTemplate, new() { static BaseFluidTemplate() { // Necessary to for...
using System.Collections.Generic; using System.IO; using System.Text.Encodings.Web; using System.Threading.Tasks; using Fluid.Ast; namespace Fluid { public class BaseFluidTemplate<T> : IFluidTemplate where T : IFluidTemplate, new() { static BaseFluidTemplate() { // Necessary to for...
Add optimizations to problem 10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _10.PythagoreanNumbers { class PythagoreanNumbers { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] nums = new in...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _10.PythagoreanNumbers { class PythagoreanNumbers { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] nums = new in...
Add missed paren in comment.
using System; using System.Threading; namespace ProcessTest_ConsoleApp { class Program { static int Main(string[] args) { try { if (args.Length > 0) { if (args[0].Equals("infinite")) { ...
using System; using System.Threading; namespace ProcessTest_ConsoleApp { class Program { static int Main(string[] args) { try { if (args.Length > 0) { if (args[0].Equals("infinite")) { ...
Add SetMethod & GetMethod Property
using System; using System.Reflection; using System.Reflection.Emit; namespace AspectCore.Lite.Abstractions.Generator { public abstract class PropertyGenerator : AbstractGenerator<TypeBuilder, PropertyBuilder> { public abstract string PropertyName { get; } public abstract PropertyAttributes P...
using System; using System.Reflection; using System.Reflection.Emit; namespace AspectCore.Lite.Abstractions.Generator { public abstract class PropertyGenerator : AbstractGenerator<TypeBuilder, PropertyBuilder> { public abstract string PropertyName { get; } public abstract PropertyAttributes P...
Add PKIX key blob formats
namespace NSec.Cryptography { public enum KeyBlobFormat { None = 0, // --- Secret Key Formats --- RawSymmetricKey = -1, RawPrivateKey = -2, NSecSymmetricKey = -101, NSecPrivateKey = -102, // --- Public Key Formats --- RawPublicKey = 1, ...
namespace NSec.Cryptography { public enum KeyBlobFormat { None = 0, // --- Secret Key Formats --- RawSymmetricKey = -1, RawPrivateKey = -2, NSecSymmetricKey = -101, NSecPrivateKey = -102, PkixPrivateKey = -202, PkixPrivateKeyText = -203, ...
Fix for randomBase64, it was filling a full internal array unnecessarily.
using System; using System.Collections.Generic; using System.Security.Cryptography; namespace LanguageExt { public static partial class Prelude { readonly static RNGCryptoServiceProvider rnd = new RNGCryptoServiceProvider(); readonly static byte[] target = new byte[4096]; /// <summary...
using System; using System.Collections.Generic; using System.Security.Cryptography; namespace LanguageExt { public static partial class Prelude { readonly static RNGCryptoServiceProvider rnd = new RNGCryptoServiceProvider(); readonly static byte[] inttarget = new byte[4]; /// <summary...
Make tests of converters possible
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyConfiguration("")] // Setting ComVisible to fal...
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: AssemblyConfigura...
Add a way to measure how long it took to read a binlog file.
namespace Microsoft.Build.Logging.StructuredLogger { public class BinaryLog { public static Build ReadBuild(string filePath) { var eventSource = new BinaryLogReplayEventSource(); byte[] sourceArchive = null; eventSource.OnBlobRead += (kind, bytes)...
using System.Diagnostics; namespace Microsoft.Build.Logging.StructuredLogger { public class BinaryLog { public static Build ReadBuild(string filePath) { var eventSource = new BinaryLogReplayEventSource(); byte[] sourceArchive = null; eventSourc...
Use ICustomAttributeProvider.IsDefined in `HasAttribute` to avoid allocations.
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace IntelliTect.Coalesce.TypeDefinition { public static class ReflectionExtensions { /// <summary> /// Returns the attributed requested if it exists or null if it doe...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace IntelliTect.Coalesce.TypeDefinition { public static class ReflectionExtensions { /// <summary> /// Returns the attributed requested if it exists or null if it doe...
Add test case for 69c97371
namespace Nine.Storage { using System; using System.Collections.Generic; using Xunit; public class PersistedStorageTest : StorageSpec<PersistedStorageTest> { public override IEnumerable<ITestFactory<IStorage<TestStorageObject>>> GetData() { return new[] { ...
namespace Nine.Storage { using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Threading.Tasks; using Xunit; public class PersistedStorageTest : StorageSpec<PersistedStorageTest> { public override IEnumerable<ITestFactory<IStorage<TestSto...
Stop loading dynamic modules from disk
using System; using System.Reflection; using slang.Compiler.Clr.Compilation.Definitions; namespace slang.Tests.IL { static class AssemblyDefinitionExtensions { public static Type [] GetTypes (this AssemblyDefinition assemblyDefinition) { return assemblyDefinition.LoadAssembly ().Ge...
using System; using System.Reflection; using slang.Compiler.Clr.Compilation.Definitions; namespace slang.Tests.IL { static class AssemblyDefinitionExtensions { public static Type [] GetTypes (this AssemblyDefinition assemblyDefinition) { return assemblyDefinition.LoadAssembly ().G...
Update detection sample web app
@model Wangkanai.Detection.Services.IDetectionService @{ ViewData["Title"] = "Detection"; } <h3>UserAgent</h3> <code>@Model.UserAgent</code> <h3>Results</h3> <table> <thead> <tr> <th>Resolver</th> <th>Type</th> <th>Version</th> </tr> </thead> <tbod...
@model Wangkanai.Detection.Services.IDetectionService @{ ViewData["Title"] = "Detection"; } <h3>UserAgent</h3> <code>@Model.UserAgent</code> <h3>Results</h3> <table> <thead> <tr> <th>Resolver</th> <th>Type</th> <th>Version</th> </tr> </thead> <tbod...
Add drop-down menu for concerts.
@functions { private string GetCssClass(string actionName, string controllerName) { var currentControllerName = ViewContext.RouteData.Values["controller"].ToString(); var isCurrentController = currentControllerName == controllerName; if (currentControllerName == "Home") { ...
@functions { private string GetCssClass(string actionName, string controllerName) { var currentControllerName = ViewContext.RouteData.Values["controller"].ToString(); var isCurrentController = currentControllerName == controllerName; if (currentControllerName == "Home") { ...
Refactor - Move Skip, Take duplicate code
using System.Collections.Generic; using System.Linq.Expressions; using Jokenizer.Net; namespace System.Linq.Dynamic { public static partial class DynamicQueryable { public static IQueryable<T> As<T>(this IQueryable source) { return (IQueryable<T>)source; } public static IQuer...
using System.Collections.Generic; using System.Linq.Expressions; using Jokenizer.Net; namespace System.Linq.Dynamic { public static partial class DynamicQueryable { public static IQueryable<T> As<T>(this IQueryable source) { return (IQueryable<T>)source; } public static IQuer...
Set disable registration as default true.
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; namespace BTCPayServer.Services { public class PoliciesSettings { [Display(Name = "Requires a confirmation mail for registering")] ...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; namespace BTCPayServer.Services { public class PoliciesSettings { [Display(Name = "Requires a confirmation mail for registering")] ...
Make paths of text files to write verbatim, so that slashes are not misinterpreted under Windows as escape characters
// <copyright file="TextToPythonScript.cs" company="Mark Final"> // Opus package // </copyright> // <summary>XmlUtilities package</summary> // <author>Mark Final</author> namespace XmlUtilities { public static class TextToPythonScript { public static void Write( System.Text.StringBu...
// <copyright file="TextToPythonScript.cs" company="Mark Final"> // Opus package // </copyright> // <summary>XmlUtilities package</summary> // <author>Mark Final</author> namespace XmlUtilities { public static class TextToPythonScript { public static void Write( System.Text.StringBu...
Update TFM to include netcoreapp3.0
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNetCore.Server.IntegrationTesting { public static class Tfm { public const string Net461 = "net46...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNetCore.Server.IntegrationTesting { public static class Tfm { public const string Net461 = "net46...
Put explicit blit in its own Execute func, added inspector button
using UnityEngine; using System.Collections; [ExecuteInEditMode] public class ShaderBlit : MonoBehaviour { public bool Dirty = true; public bool AlwaysDirtyInEditor = true; public Texture Input; public Shader BlitShader; public Material BlitMaterial; public RenderTexture Output...
using UnityEngine; using System.Collections; [ExecuteInEditMode] public class ShaderBlit : MonoBehaviour { [InspectorButton("Execute")] public bool Dirty = true; public bool AlwaysDirtyInEditor = true; public Texture Input; public Shader BlitShader; public Material BlitMaterial;...
Use Instrument.Preset to detect preset instruments rather than a null InstrumentGroup
// Copyright 2020 Jon Skeet. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using Google.Protobuf; using VDrumExplorer.Model; namespace VDrumExplorer.Proto { internal partial class InstrumentAudio { internal Model.Audio.Inst...
// Copyright 2020 Jon Skeet. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using Google.Protobuf; using VDrumExplorer.Model; namespace VDrumExplorer.Proto { internal partial class InstrumentAudio { internal Model.Audio.Inst...
Add test case for gift insertion
using Common; using NUnit.Framework; namespace Tests.Common { [TestFixture] public class TourTest { private Tour testee; [SetUp] public void Init() { testee = new Tour(); testee.AddGift(new Gift(1, 500, 0, 0)); testee.AddGift(new Gift(2,...
using Common; using NUnit.Framework; namespace Tests.Common { [TestFixture] public class TourTest { private Tour testee; [SetUp] public void Init() { testee = new Tour(); testee.AddGift(new Gift(1, 500, 0, 0)); testee.AddGift(new Gift(2,...
Use proper path for settings file
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="DataMigrationAppSettings.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. // </copyright> // ------------------------------------------------------------------...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="DataMigrationAppSettings.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. // </copyright> // ------------------------------------------------------------------...
Fix DataCenter enum in tests project
namespace NFig.Tests.Common { public enum Tier { Any = 0, Local = 1, Dev = 2, Prod = 3, } public enum DataCenter { Any = 0, Local = 1, Dev = 2, Prod = 3, } }
namespace NFig.Tests.Common { public enum Tier { Any = 0, Local = 1, Dev = 2, Prod = 3, } public enum DataCenter { Any = 0, Local = 1, East = 2, West = 3, } }
Add badge for unknown key request count.
@{ Layout = "_Layout"; ViewData["Title"] = "Analysen"; } <div class="row"> <nav class="col-md-3 col-xl-2"> <ul class="nav"> <li class="nav-item"> <a class="nav-link text-dark" asp-area="Analysis" asp-controller="UnknownKeyRequests" asp-action="Index">Unbekannte Translationkeys</a> </li> </ul> </nav>...
@using System.Linq @inject MitternachtWeb.Areas.Analysis.Services.UnknownKeyRequestsService UnknownKeyRequestsService @{ Layout = "_Layout"; ViewData["Title"] = "Analysen"; } <div class="row"> <nav class="col-md-3 col-xl-2"> <ul class="nav"> <li class="nav-item"> <a class="nav-link text-dark d-flex justif...
Add EtherType enumeration for some types (not all)
using System; namespace TAPCfg { public class EthernetFrame { private byte[] data; private byte[] src = new byte[6]; private byte[] dst = new byte[6]; private int etherType; public EthernetFrame(byte[] data) { this.data = data; Array.Copy(data, 0, dst, 0, 6); Array.Copy(data, 6, src, 0, 6); et...
using System; namespace TAPCfg { public enum EtherType : int { InterNetwork = 0x0800, ARP = 0x0806, RARP = 0x8035, AppleTalk = 0x809b, AARP = 0x80f3, InterNetworkV6 = 0x86dd, CobraNet = 0x8819, } public class EthernetFrame { private byte[] data; privat...
Add some spacing to interface class
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Bindables; using osuTK; using osuTK.Graphics; namespace osu.Game.Rulesets.Catch.Objects.Drawables { /// <summary> /// Provides a visual state...
// 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 osuTK; using osuTK.Graphics; namespace osu.Game.Rulesets.Catch.Objects.Drawables { /// <summary> /// Provides a visual state...
Revert "use WebHost.CreateDefaultBuilder in IdentitySample.Mvc"
using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace IdentitySample { public static class Program { public static void Main(string[] args) => BuildWebHost(args).Run(); public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args) ...
using System.IO; using Microsoft.AspNetCore.Hosting; namespace IdentitySample { public static class Program { public static void Main(string[] args) { var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) ...
Update assembly file version for next release
//------------------------------------------------------------------------------ // <copyright // file="CommonAssemblyInfo.cs" // company="enckse"> // Copyright (c) All rights reserved. // </copyright> //------------------------------------------------------------------------------ using System.Reflection; using S...
//------------------------------------------------------------------------------ // <copyright // file="CommonAssemblyInfo.cs" // company="enckse"> // Copyright (c) All rights reserved. // </copyright> //------------------------------------------------------------------------------ using System.Reflection; using S...
Add workaround required after MapODataServiceRoute
using System; using Abp.AspNetCore.Configuration; using Abp.Configuration.Startup; using Microsoft.AspNet.OData.Builder; using Microsoft.AspNet.OData.Extensions; namespace Abp.AspNetCore.OData.Configuration { internal class AbpAspNetCoreODataModuleConfiguration : IAbpAspNetCoreODataModuleConfiguration { ...
using System; using Abp.AspNetCore.Configuration; using Abp.Configuration.Startup; using Microsoft.AspNet.OData; using Microsoft.AspNet.OData.Builder; using Microsoft.AspNet.OData.Extensions; namespace Abp.AspNetCore.OData.Configuration { internal class AbpAspNetCoreODataModuleConfiguration : IAbpAspNetCoreODataM...
Add path for local vs code install
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace Assent.Reporters.DiffPrograms { public abstract class DiffProgramBase : IDiffProgram { protected static IReadOnlyList<string> WindowsProgramFilePaths => new[] { ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace Assent.Reporters.DiffPrograms { public abstract class DiffProgramBase : IDiffProgram { protected static IReadOnlyList<string> WindowsProgramFilePaths => new[] { ...
Modify main program to work with port again
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; using Yio.Utilities; namespace Yio { public c...
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; using Yio.Utilities; namespace Yio { public c...
Use IOwinContext in to pass Request.CallCancelled to repository
using Bit.Signalr; using Bit.Signalr.Implementations; using BitChangeSetManager.DataAccess; using BitChangeSetManager.Model; using System; using System.Threading; using System.Threading.Tasks; using Bit.Data.Contracts; using BitChangeSetManager.DataAccess.Contracts; namespace BitChangeSetManager.Api.Implementations {...
using Bit.Signalr; using Bit.Signalr.Implementations; using BitChangeSetManager.DataAccess.Contracts; using BitChangeSetManager.Model; using Microsoft.Owin; using System; using System.Threading.Tasks; namespace BitChangeSetManager.Api.Implementations { public class BitChangeSetManagerAppMessageHubEvents : Default...
Fix removal of code block space indent for pre with parent div
using System; using HtmlAgilityPack; namespace ReverseMarkdown.Converters { public class Div : ConverterBase { public Div(Converter converter) : base(converter) { Converter.Register("div", this); } public override string Convert(HtmlNode node) { ...
using System; using HtmlAgilityPack; namespace ReverseMarkdown.Converters { public class Div : ConverterBase { public Div(Converter converter) : base(converter) { Converter.Register("div", this); } public override string Convert(HtmlNode node) { ...
Add Position and Size properties to Rectanclei
using System; using System.Numerics; namespace CSGL.Math { public struct Rectanglei { public int X { get; set; } public int Y { get; set; } public int Width { get; set; } public int Height { get; set; } public Rectanglei(int x, int y, int width, int height) { X...
using System; using System.Numerics; namespace CSGL.Math { public struct Rectanglei { public int X { get; set; } public int Y { get; set; } public int Width { get; set; } public int Height { get; set; } public Rectanglei(int x, int y, int width, int height) { X...
Move some common test setup code into the test class constructor
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace DirectoryHash.Tests { public class RecomputeTests { [Fact] public void RecomputeOnEmptyDirectory() { using (var temporaryDirectory = ne...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace DirectoryHash.Tests { public class RecomputeTests : IDisposable { private readonly TemporaryDirectory temporaryDirectory = new TemporaryDirectory(); void ...
Test we can commit gain
using Kata.GildedRose.CSharp.Domain; namespace Kata.GildedRose.CSharp.Unit.Tests.Factories.UpdateStockItemStrategy { public class UpdateItemStrategyFactory : IUpdateItemStrategyFactory { public IStockItemUpdateStrategy Create(Item stockItem) { return new AgedBrieUpdateStrategy(); ...
using Kata.GildedRose.CSharp.Domain; namespace Kata.GildedRose.CSharp.Unit.Tests.Factories.UpdateStockItemStrategy { public class UpdateItemStrategyFactory : IUpdateItemStrategyFactory { public IStockItemUpdateStrategy Create(Item stockItem) { switch (item.Name) { ...
Revert "Included call to base.WarmUp()."
using System.Threading; using System.Threading.Tasks; using Nimbus.ConcurrentCollections; using Nimbus.Configuration.Settings; using Nimbus.Infrastructure; using Nimbus.Infrastructure.MessageSendersAndReceivers; using Nimbus.Transports.InProcess.QueueManagement; namespace Nimbus.Transports.InProcess.MessageSendersAndR...
using System.Threading; using System.Threading.Tasks; using Nimbus.ConcurrentCollections; using Nimbus.Configuration.Settings; using Nimbus.Infrastructure; using Nimbus.Infrastructure.MessageSendersAndReceivers; using Nimbus.Transports.InProcess.QueueManagement; namespace Nimbus.Transports.InProcess.MessageSendersAndR...
Fix WinUI demo null ref exception after cancelling file picker.
using System; using System.Threading.Tasks; using Microsoft.UI.Xaml; using Windows.Storage.Pickers; namespace ModelViewer.Services; public sealed class FilePickerService { public async Task<string> StartFilePicker(string filters) { var tokens = filters.Split(';', StringSplitOptions.TrimEntries | Stri...
using System; using System.Threading.Tasks; using Microsoft.UI.Xaml; using Windows.Storage.Pickers; namespace ModelViewer.Services; public sealed class FilePickerService { public async Task<string> StartFilePicker(string filters) { var tokens = filters.Split(';', StringSplitOptions.TrimEntries | Stri...
Mask the osu! beatsnap grid
// 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.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Screens.Edit.Compose.Components; namespace osu.Game.R...
// 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.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Screens.Edit.Compose.Components; namespace osu.Game.R...
Add version and copyright info
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Sh...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Sh...
Update mvx init for android
using System; using Cirrious.CrossCore; using Cirrious.CrossCore.Droid.Platform; using Cirrious.CrossCore.Plugins; using Acr.UserDialogs; namespace Acr.MvvmCross.Plugins.UserDialogs.Droid { public class Plugin : IMvxPlugin { public void Load() { Mvx.CallbackWhenRegistered<IMvxAndroidCurrentT...
using System; using Cirrious.CrossCore; using Cirrious.CrossCore.Droid.Platform; using Cirrious.CrossCore.Plugins; using Acr.UserDialogs; namespace Acr.MvvmCross.Plugins.UserDialogs.Droid { public class Plugin : IMvxPlugin { public void Load() { Acr.UserDialogs.UserDialogs.Instance = new App...
Fix out of range bug in sequence task.
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Sequence : CompositeTask { private int taskIndex = 0; public Sequence(string name) : base(name) { } override public ReturnCode Update() { var returnCode = tasks[taskIndex].Update(); if (retur...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Sequence : CompositeTask { private int taskIndex = 0; public Sequence(string name) : base(name) { } override public ReturnCode Update() { var returnCode = tasks[taskIndex].Update(); if (retur...
Fix zip file extension handling
using System.IO; using Ionic.Zip; namespace UnityBuildServer { public class ZipArchiveStep : ArchiveStep { ZipArchiveConfig config; public ZipArchiveStep(ZipArchiveConfig config) { this.config = config; } public override string TypeName { ...
using System.IO; using Ionic.Zip; namespace UnityBuildServer { public class ZipArchiveStep : ArchiveStep { ZipArchiveConfig config; public ZipArchiveStep(ZipArchiveConfig config) { this.config = config; } public override string TypeName { ...
Fix 81 TIiles mod name
using ICities; using BuildingThemes.GUI; using UnityEngine; namespace BuildingThemes { public class BuildingThemesMod : IUserMod { // we'll use this variable to pass the building position to GetRandomBuildingInfo method. It's here to make possible 81 Tiles compatibility public static Vector3 p...
using ICities; using BuildingThemes.GUI; using UnityEngine; namespace BuildingThemes { public class BuildingThemesMod : IUserMod { // we'll use this variable to pass the building position to GetRandomBuildingInfo method. It's here to make possible 81 Tiles compatibility public static Vector3 p...
Add processed_at_min, processed_at_max and attribution_app_id
using Newtonsoft.Json; using ShopifySharp.Enums; namespace ShopifySharp.Filters { /// <summary> /// Options for filtering <see cref="OrderService.CountAsync(OrderFilter)"/> and /// <see cref="OrderService.ListAsync(OrderFilter)"/> results. /// </summary> public class OrderFilter : ListFilter {...
using System; using Newtonsoft.Json; using ShopifySharp.Enums; namespace ShopifySharp.Filters { /// <summary> /// Options for filtering <see cref="OrderService.CountAsync(OrderFilter)"/> and /// <see cref="OrderService.ListAsync(OrderFilter)"/> results. /// </summary> public class OrderFilter : Li...
Create success-only stubs for user validator
using System; using Xunit; using ISTS.Domain.Users; namespace ISTS.Domain.Tests.Users { public class UserTests { [Fact] public void Create_Returns_New_User() { var user = User.Create("myemail@company.com", "Person", "12345", "password1"); Assert.NotNull(user);...
using System; using Moq; using Xunit; using ISTS.Domain.Common; using ISTS.Domain.Users; namespace ISTS.Domain.Tests.Users { public class UserTests { private readonly Mock<IUserValidator> _userValidator; public UserTests() { _userValidator = new Mock<IUserValidator>(); ...
Bring across Server Sent Events resource implementation
namespace Glimpse.Server.Web { public class MessageStreamResource : IResourceStartup { private readonly IServerBroker _serverBroker; public MessageStreamResource(IServerBroker serverBroker) { _serverBroker = serverBroker; } public void Configure(IResourceBu...
using System.Reactive.Concurrency; using System.Reactive.Linq; using System.Reactive.Subjects; using System.Threading.Tasks; using Microsoft.AspNet.Http.Features; using Microsoft.AspNet.Http; using System; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace Glimpse.Server.Web { public class Mess...
Remove Gender, Age in Model.
using System.Collections.ObjectModel; using System.ComponentModel; using App2Night.Model.Enum; namespace App2Night.Model.Model { public class User { public string Name { get; set; } public int Age { get; set; } public Gender Gender { get; set; } = Gender.Unkown; public string Email ...
using System.Collections.ObjectModel; using System.ComponentModel; using App2Night.Model.Enum; namespace App2Night.Model.Model { public class User { public string Name { get; set; } public string Email { get; set; } public ObservableCollection<Party> Events { get; set; } publi...
Include original WebException when throwing new ApplicationException
using System; using System.Net; namespace DevDefined.OAuth.Consumer { public interface IConsumerRequestRunner { IConsumerResponse Run(IConsumerRequest consumerRequest); } public class DefaultConsumerRequestRunner : IConsumerRequestRunner { public IConsumerResponse Run(IC...
using System; using System.Net; namespace DevDefined.OAuth.Consumer { public interface IConsumerRequestRunner { IConsumerResponse Run(IConsumerRequest consumerRequest); } public class DefaultConsumerRequestRunner : IConsumerRequestRunner { public IConsumerResponse Run(IC...
Use AssemblyHelper for MainWindow title version
using GalaSoft.MvvmLight.Messaging; using KAGTools.Helpers; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; u...
using GalaSoft.MvvmLight.Messaging; using KAGTools.Helpers; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; u...
Add ProfileMatches to CustomerRegistration response
using System; using System.Collections.Generic; namespace GIDX.SDK.Models.CustomerIdentity { public class CustomerRegistrationResponse : ResponseBase, IReasonCodes { public string MerchantCustomerID { get; set; } public decimal IdentityConfidenceScore { get; set; } public decimal Fraud...
using System; using System.Collections.Generic; namespace GIDX.SDK.Models.CustomerIdentity { public class CustomerRegistrationResponse : ResponseBase, IReasonCodes { public string MerchantCustomerID { get; set; } public decimal IdentityConfidenceScore { get; set; } public decimal Fraud...
Add DoNotAwait for WinRT style tasks
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DigiTransit10.ExtensionMethods { public static class TaskExtensions { public static void DoNotAwait(this Task task) { } public static void DoNotAwait<T>(this Task<T> t...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Foundation; namespace DigiTransit10.ExtensionMethods { public static class TaskExtensions { public static void DoNotAwait(this Task task) { } public static void Do...
Add test for non invariant default locale and test for locale with collation
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Globalization; using Xunit; namespace System.Globalization.Tests { public class Test { [Fact] public void TestCurren...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Globalization; using Xunit; namespace System.Globalization.Tests { public class Test { [Fact] public void TestCurren...
Disable test parallelization due to shared state problems
using System; using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("StyleCop.Analyzers.Test")] [...
using System; using System.Reflection; using System.Runtime.InteropServices; using Xunit; // 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("StyleCop.Analyz...
Disable test to get clean build
using JetBrains.ReSharper.FeaturesTestFramework.Completion; using NUnit.Framework; namespace JetBrains.ReSharper.Plugins.Unity.Tests.Feature.Services.CodeCompletion { // TODO: This doesn't test automatic completion // The AutomaticCodeCompletionTestBase class is not in the SDK [TestUnity] public class...
using JetBrains.ReSharper.FeaturesTestFramework.Completion; using NUnit.Framework; namespace JetBrains.ReSharper.Plugins.Unity.Tests.Feature.Services.CodeCompletion { // TODO: This doesn't test automatic completion // The AutomaticCodeCompletionTestBase class is not in the SDK [TestUnity] public class...
Add quotes to paths for Windows
using System.Diagnostics; using System.IO; using System.Linq; namespace grr.Messages { [System.Diagnostics.DebuggerDisplay("{GetRemoteCommand()}")] public class OpenDirectoryMessage : DirectoryMessage { public OpenDirectoryMessage(RepositoryFilterOptions filter) : base(filter) { } protected override vo...
using System.Diagnostics; using System.IO; using System.Linq; namespace grr.Messages { [System.Diagnostics.DebuggerDisplay("{GetRemoteCommand()}")] public class OpenDirectoryMessage : DirectoryMessage { public OpenDirectoryMessage(RepositoryFilterOptions filter) : base(filter) { } protected override vo...
Implement "enable" event to reenable after "stop".
using UnityEngine; using SocketIOClient; public class ServoControllerClient : AbstractSocketioClient { private static readonly string SOCKETIO_SERVER = "http://192.168.1.51:5000"; private static readonly string SOCKETIO_NAMESPACE = "/servo"; public ServoControllerClient() : base(SOCKETIO_SERVER, SOCKETI...
using UnityEngine; using SocketIOClient; public class ServoControllerClient : AbstractSocketioClient { private static readonly string SOCKETIO_SERVER = "http://192.168.1.51:5000"; private static readonly string SOCKETIO_NAMESPACE = "/servo"; public ServoControllerClient() : base(SOCKETIO_SERVER, SOCKETI...
Include date in booked in fact
using System; using EventStore.ClientAPI; using System.Net; namespace EventStorePlayConsole { public class BookedInFact:Fact { public BookedInFact(string atValue, string someValue) { this.BookedInAtValue = atValue; this.PreviousBookingValue = someValue; } ...
using System; using EventStore.ClientAPI; using System.Net; namespace EventStorePlayConsole { public class BookedInFact:Fact { public BookedInFact(string atValue, string someValue) { this.OccurredAt = DateTime.UtcNow; this.BookedInAtValue = atValue; this.Prev...
Make stats_only_admins a nullable bool, we're seeing this cause json deserialization exceptions when calling SlackClient.ConnectAsync()
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SlackAPI { public class TeamPreferences { public AuthMode auth_mode; public string[] default_channels; public bool display_real_names; public bool gatew...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SlackAPI { public class TeamPreferences { public AuthMode auth_mode; public string[] default_channels; public bool display_real_names; public bool gatew...
Fix schedule stops not being ordered.
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using TramlineFive.ViewModels.Wrappers; namespace TramlineFive.ViewModels { public class StopsViewModel { public IList<StopViewModel> LineStops { ge...
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using TramlineFive.ViewModels.Wrappers; namespace TramlineFive.ViewModels { public class StopsViewModel { public IList<StopViewModel> LineStops { ge...
Use CurrentUICulture for EditorConfig UI
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Globalization; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Globalization; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft...
Clean analyzer warnings on test projects
 // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "...
 // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "...
Add more tests for puzzle 14
// 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 Xunit; /// <summary> /// A class containing tests for the <see cref="Puzzle01...
// 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 Xunit; /// <summary> /// A class containing tests for the <see cref="Puzzle01...
Fix crashing due to missing history in LFR
using LiveSplit.Options; using System; using System.Linq; namespace LiveSplit.Model.Comparisons { public class LastFinishedRunComparisonGenerator : IComparisonGenerator { public IRun Run { get; set; } public const string ComparisonName = "Last Finished Run"; public const string ShortCo...
using LiveSplit.Options; using System; using System.Linq; namespace LiveSplit.Model.Comparisons { public class LastFinishedRunComparisonGenerator : IComparisonGenerator { public IRun Run { get; set; } public const string ComparisonName = "Last Finished Run"; public const string ShortCo...
Fix ghost orbit not syncing to other clients
using Robust.Shared.Animations; namespace Content.Shared.Follower.Components; [RegisterComponent] public sealed class OrbitVisualsComponent : Component { /// <summary> /// How long should the orbit animation last in seconds, before being randomized? /// </summary> public float OrbitLength = 2.0f;...
using Robust.Shared.Animations; using Robust.Shared.GameStates; namespace Content.Shared.Follower.Components; [RegisterComponent] [NetworkedComponent] public sealed class OrbitVisualsComponent : Component { /// <summary> /// How long should the orbit animation last in seconds, before being randomized? ...
Add PsiFeaturesImplZone for parent settings key.
using JetBrains.Application.BuildScript.Application.Zones; namespace JetBrains.ReSharper.Plugins.CyclomaticComplexity { [ZoneMarker] public class ZoneMarker { } }
using JetBrains.Application.BuildScript.Application.Zones; using JetBrains.ReSharper.Resources.Shell; namespace JetBrains.ReSharper.Plugins.CyclomaticComplexity { [ZoneMarker] public class ZoneMarker : IRequire<PsiFeaturesImplZone> { } }
Replace Boolean with bool so we can remove System
using System; public class Year { public static Boolean IsLeap(int i) { if (i % 4 != 0) { return false; } if (i % 100 == 0) { if (i % 400 != 0) { return false; } } return true; } }
public class Year { public static bool IsLeap(int i) { if (i % 4 != 0) { return false; } if (i % 100 == 0) { if (i % 400 != 0) { return false; } } return true; } }
Remove unnecessary cache type specification
// 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 enable using osu.Framework.Allocation; using osu.Framework.Audio.Track; using osu.Framework.Timing; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Graph...
// 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 enable using osu.Framework.Allocation; using osu.Framework.Audio.Track; using osu.Framework.Timing; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Graph...
Include method in cache key
using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; using System; using System.Collections.Generic; using System.Linq; namespace HttpMock { public class RequestCacheKey { public string Scheme { get; private set; } public string Host { get; private set; } public int?...
using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; using System; using System.Collections.Generic; using System.Linq; namespace HttpMock { public class RequestCacheKey { public string Method { get; private set; } public string Scheme { get; private set; } public st...
Increase assembly version to 1.1.
// Copyright // ---------------------------------------------------------------------------------------------------------- // <copyright file="AssemblyInfo.cs" company="https://github.com/safakgur/Dawn.SocketAwaitable"> // MIT // </copyright> // <license> // This source code is subject to terms and condit...
// Copyright // ---------------------------------------------------------------------------------------------------------- // <copyright file="AssemblyInfo.cs" company="https://github.com/safakgur/Dawn.SocketAwaitable"> // MIT // </copyright> // <license> // This source code is subject to terms and condit...