Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Rephrase the Skipped sample to use runtime skips rather than declarative skips, demonstrating how runtime skips are superior: we have case-by-case skippability, implicit skips by conditionally avoiding executing a case, and the ability to avoid instantiating a test class if it is entirely marked as skipped.
namespace Fixie.Samples.Skipped { using System; using System.Reflection; public class CustomConvention : Convention { public CustomConvention() { Classes .InTheSameNamespaceAs(typeof(CustomConvention)) .NameEndsWith("Tests"); Met...
namespace Fixie.Samples.Skipped { using System; public class CustomConvention : Convention { public CustomConvention() { Classes .InTheSameNamespaceAs(typeof(CustomConvention)) .NameEndsWith("Tests"); Methods .OrderBy...
Order the files and dirs
using DeveImageOptimizer.State.StoringProcessedDirectories; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace DeveImageOptimizer.Helpers { public static class FileHelperMethods { public static void SafeDeleteTempFile(string path) {...
using DeveImageOptimizer.State.StoringProcessedDirectories; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace DeveImageOptimizer.Helpers { public static class FileHelperMethods { public static void SafeDeleteTempFile(string path) {...
Fix failing test for abstract get-set indexer
using System; using System.CodeDom; using Mono.Cecil; namespace PublicApiGenerator { public static class PropertyNameBuilder { public static string AugmentPropertyNameWithPropertyModifierMarkerTemplate(PropertyDefinition propertyDefinition, MemberAttributes getAccessorAttributes, MemberAttr...
using System; using System.CodeDom; using Mono.Cecil; namespace PublicApiGenerator { public static class PropertyNameBuilder { public static string AugmentPropertyNameWithPropertyModifierMarkerTemplate(PropertyDefinition propertyDefinition, MemberAttributes getAccessorAttributes, MemberAttr...
Remove a test that tests Dictionary
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Xunit; namespace Microsoft.AspNet.Mvc { public class MvcOptionsTest { [Fact] public void MaxValidationError...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Xunit; namespace Microsoft.AspNet.Mvc { public class MvcOptionsTest { [Fact] public void MaxValidationError...
Use correct queue name in length commands
using System; using CommandLine; namespace InEngine.Core.Queue.Commands { public class Length : AbstractCommand { public override void Run() { var broker = Broker.Make(); var leftPadding = 15; Warning("Primary Queue:"); InfoText("Pending".PadLeft...
using System; using CommandLine; namespace InEngine.Core.Queue.Commands { public class Length : AbstractCommand { public override void Run() { var broker = Broker.Make(); var leftPadding = 15; Warning("Primary Queue:"); InfoText("Pending".PadLeft...
Rewrite existing test scene somewhat
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Sprites; using osu.Framework.Utils; using osu.Game.Graphics.Sprites; using osu.Game.Grap...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Utils; using osu.Game.Graphics.Sprites; using osu.Game.Graphics.UserInterface; using osuTK; name...
Enable test parallelization on local.
using Xunit; // This is a work-around for #11. // https://github.com/CXuesong/WikiClientLibrary/issues/11 // We are using Bot Password on CI, which may naturally evade the issue. #if !ENV_CI_BUILD [assembly: CollectionBehavior(DisableTestParallelization = true)] #endif
using Xunit; // This is a work-around for #11. // https://github.com/CXuesong/WikiClientLibrary/issues/11 // We are using Bot Password on CI, which may naturally evade the issue. // [assembly: CollectionBehavior(DisableTestParallelization = true)]
Remove expiration date of DesignScript
using System; namespace ProtoCore.Utils { public class Validity { public static void Assert(bool cond) { if (!cond) throw new Exceptions.CompilerInternalException(""); } public static void Assert(bool cond, string message) { ...
using System; namespace ProtoCore.Utils { public class Validity { public static void Assert(bool cond) { if (!cond) throw new Exceptions.CompilerInternalException(""); } public static void Assert(bool cond, string message) { ...
Add HttpCode convenience property to exception
using System; using System.Dynamic; using System.IO; using System.Net; using Newtonsoft.Json; namespace Rackspace.CloudOffice { public class ApiException : Exception { public dynamic Response { get; private set; } public ApiException(WebException ex) : base(GetErrorMessage(ex), ex) { ...
using System; using System.Dynamic; using System.IO; using System.Net; using Newtonsoft.Json; namespace Rackspace.CloudOffice { public class ApiException : Exception { public dynamic Response { get; private set; } public HttpStatusCode? HttpCode { get; private set; } public ApiExcepti...
Modify the MeidoHook interface to allow communicating to the plugins they need to stop. That way they can release whatever resources they're holding or stop threads/timers to have running seperate from the main thread. This will make it possible to have MeidoBot stop the entire program from top-down.
using System; using System.Collections.Generic; namespace MeidoCommon { public interface IMeidoHook { string Name { get; } string Version { get; } Dictionary<string, string> Help { get; } string Prefix { set; } } public interface IIrcMessage { string Messag...
using System; using System.Collections.Generic; namespace MeidoCommon { public interface IMeidoHook { // Things the plugin provides us with. string Name { get; } string Version { get; } Dictionary<string, string> Help { get; } // Things we provide to the plugin. ...
Make method virtual so clients can decorate behavior.
using System; using System.Linq; using System.Web.Http; using System.Web.Http.Controllers; using System.Web.Http.Description; namespace AspNet.WebApi.HtmlMicrodataFormatter { public class DocumentationController : ApiController { public IDocumentationProviderEx DocumentationProvider { get; set; } ...
using System; using System.Web.Http; using System.Web.Http.Controllers; using System.Web.Http.Description; namespace AspNet.WebApi.HtmlMicrodataFormatter { public class DocumentationController : ApiController { public IDocumentationProviderEx DocumentationProvider { get; set; } protected over...
Test directory creation access by creating a directory (not a file)
using System.IO; using Arkivverket.Arkade.Core.Base; using Arkivverket.Arkade.GUI.Properties; namespace Arkivverket.Arkade.GUI.Util { public static class ArkadeProcessingAreaLocationSetting { public static string Get() { Settings.Default.Reload(); return Set...
using System.IO; using Arkivverket.Arkade.Core.Base; using Arkivverket.Arkade.GUI.Properties; namespace Arkivverket.Arkade.GUI.Util { public static class ArkadeProcessingAreaLocationSetting { public static string Get() { Settings.Default.Reload(); return Set...
Check for parent controller on same object too, not just parents
using Pear.InteractionEngine.Utils; using System; using UnityEditor; using UnityEngine; namespace Pear.InteractionEngine.Controllers { [CustomEditor(typeof(ControllerBehaviorBase), true)] [CanEditMultipleObjects] public class ControllerBehaviorEditor : Editor { // The controller property SerializedProperty _c...
using Pear.InteractionEngine.Utils; using System; using UnityEditor; using UnityEngine; namespace Pear.InteractionEngine.Controllers { [CustomEditor(typeof(ControllerBehaviorBase), true)] [CanEditMultipleObjects] public class ControllerBehaviorEditor : Editor { // The controller property SerializedProperty _c...
Remove correct page on back button press
using System; using System.Linq; using Android.Content; using Android.OS; using Rg.Plugins.Popup.Droid.Impl; using Rg.Plugins.Popup.Droid.Renderers; using Rg.Plugins.Popup.Services; using Xamarin.Forms; namespace Rg.Plugins.Popup { public static class Popup { internal static event EventHandler OnIniti...
using System; using System.Linq; using Android.Content; using Android.OS; using Rg.Plugins.Popup.Droid.Impl; using Rg.Plugins.Popup.Droid.Renderers; using Rg.Plugins.Popup.Services; using Xamarin.Forms; namespace Rg.Plugins.Popup { public static class Popup { internal static event EventHandler OnIniti...
Set window controls to right color
using System.ComponentModel; using System.Runtime.CompilerServices; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; // The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236 namespace OfflineWorkflowSample { public sealed partial class CustomAppTitleBar : UserContro...
using System.ComponentModel; using System.Runtime.CompilerServices; using Windows.UI; using Windows.UI.ViewManagement; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; // The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236 namespace OfflineWorkflowSample { public ...
Fix typo and remove usings
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Espera.Core { /// <summary> /// This class contains the used keys for Akavache /// </summary> public static class BlobCacheKeys { /// <summary> /// This is ...
namespace Espera.Core { /// <summary> /// This class contains the used keys for Akavache /// </summary> public static class BlobCacheKeys { /// <summary> /// This is the key prefix for song artworks. After the hyphen, the MD5 hash of the artwork /// is attached. /// ...
Adjust the name of the property that the data for a response goes into
using System.Collections.Generic; using Glimpse.Core2.Extensibility; using Glimpse.Core2.Framework; namespace Glimpse.Core2.SerializationConverter { public class GlimpseMetadataConverter:SerializationConverter<GlimpseRequest> { public override IDictionary<string, object> Convert(GlimpseRequest request...
using System.Collections.Generic; using Glimpse.Core2.Extensibility; using Glimpse.Core2.Framework; namespace Glimpse.Core2.SerializationConverter { public class GlimpseMetadataConverter:SerializationConverter<GlimpseRequest> { public override IDictionary<string, object> Convert(GlimpseRequest request...
Mark IsCustomer and IsSupplier fields as readonly
using System; namespace XeroApi.Model { public class Contact : ModelBase { [ItemId] public Guid ContactID { get; set; } [ItemNumber] public string ContactNumber { get; set; } [ItemUpdatedDate] public DateTime? UpdatedDateUTC { get; set; } publ...
using System; namespace XeroApi.Model { public class Contact : ModelBase { [ItemId] public Guid ContactID { get; set; } [ItemNumber] public string ContactNumber { get; set; } [ItemUpdatedDate] public DateTime? UpdatedDateUTC { get; set; } publ...
Use hash set to assert should fire
using System; using System.Collections.Generic; using System.Linq; namespace Codestellation.Pulsar.Cron { public class CronCalendar { private readonly List<DateTime> _days; public CronCalendar(IEnumerable<DateTime> scheduledDays) { _days = scheduledDays.ToList(); ...
using System; using System.Collections.Generic; using System.Linq; namespace Codestellation.Pulsar.Cron { public class CronCalendar { private readonly List<DateTime> _days; private readonly HashSet<DateTime> _dayIndex; public CronCalendar(IEnumerable<DateTime> scheduledDays) {...
Fix test issue with ContactOwners test.
using NuGetGallery.FunctionTests.Helpers; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NuGetGallery.FunctionalTests { internal static class Constants { #region FormFields internal const string ConfirmPasswordFormF...
using NuGetGallery.FunctionTests.Helpers; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NuGetGallery.FunctionalTests { internal static class Constants { #region FormFields internal const string ConfirmPasswordFormF...
Move helper to workspace layer
// 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. namespace Microsoft.CodeAnalysis.FindUsages { /// <summary> /// Information about a symbol's reference that...
// 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. namespace Microsoft.CodeAnalysis.FindUsages { /// <summary> /// Information about a symbol's reference that...
Introduce helper methods to make test clearer
using System; using CanoePoloLeagueOrganiser; using System.Collections.Generic; using System.Linq; using Xunit; namespace CanoePoloLeagueOrganiserTests { public class RubyInspiredListFunctionsTests { [Fact] public void EachCons2() { var list = new List<int> { 1, 2, 3, 4 }; ...
using System; using CanoePoloLeagueOrganiser; using System.Collections.Generic; using System.Linq; using Xunit; namespace CanoePoloLeagueOrganiserTests { public class RubyInspiredListFunctionsTests { [Fact] public void EachCons2() { var list = new List<int> { 1, 2, 3, 4 }; ...
Remove high performance GC setting
// 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.Runtime; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; namespace osu.Game.Performance { public class High...
// 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.Bindables; using osu.Framework.Graphics; namespace osu.Game.Performance { public class HighPerformanceSession : C...
Revert "added BsPager HtmlHelper with settings"
using System; using System.Linq.Expressions; using System.Web.Mvc; using BForms.Grid; using BForms.Models; namespace BForms.Html { public static class BsPagerExtensions { public static BsGridPagerBuilder BsPager(this HtmlHelper html, BsPagerModel model, BsPagerSettings pagerSettings) { ...
using System; using System.Linq.Expressions; using System.Web.Mvc; using BForms.Grid; using BForms.Models; namespace BForms.Html { public static class BsPagerExtensions { public static BsGridPagerBuilder BsPager(this HtmlHelper html, BsPagerModel model) { var builder = new BsGridPa...
Update to avoid now internal API
// Copyright 2006 Alp Toker <alp@atoker.com> // This software is made available under the MIT License // See COPYING for details using System; using NDesk.DBus; using org.freedesktop.DBus; public class ManagedDBusTest { public static void Main (string[] args) { string addr; if (args.Length == 0) addr = Addre...
// Copyright 2006 Alp Toker <alp@atoker.com> // This software is made available under the MIT License // See COPYING for details using System; using NDesk.DBus; using org.freedesktop.DBus; public class ManagedDBusTest { public static void Main (string[] args) { Connection conn; if (args.Length == 0) conn = ...
Add utility to determine if the active tab is provisional
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; namespace Microsoft.VisualStudio.IntegrationTest.Utilities.InP...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; namespace Microsoft.VisualStudio.IntegrationTest.Utilities.InP...
Use Debugger.IsAttached instead of IsDevelopment to control developer mode
namespace Microsoft.AspNetCore.Hosting { using Microsoft.ApplicationInsights.AspNetCore.Extensions; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; internal class DefaultApplicationInsightsServiceConfigureOptions : IConf...
namespace Microsoft.AspNetCore.Hosting { using System.Diagnostics; using Microsoft.ApplicationInsights.AspNetCore.Extensions; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; internal class DefaultApplicationInsightsS...
Enhance version number to `v1.1.1' after inclusion of Fabio's patch.
using System; namespace it.unifi.dsi.stlab.networkreasoner.gas.system.terranova { public class VersioningInfo { /// <summary> /// Gets the version number. /// /// Here are the stack of versions with a brief description: /// /// v1.1.0: introduce pressure regulator gadget for edges. /// /// v1.0.1:...
using System; namespace it.unifi.dsi.stlab.networkreasoner.gas.system.terranova { public class VersioningInfo { /// <summary> /// Gets the version number. /// /// Here are the stack of versions with a brief description: /// /// v1.1.1: tuning computational parameter to handle middle and low pressure ne...
Apply stlye classes to the rejectec status tag
@model SFA.DAS.EmployerAccounts.Web.ViewModels.VacancyViewModel <section class="dashboard-section"> <h2 class="section-heading heading-large"> Your apprenticeship advert </h2> <p>You have created a vacancy for your apprenticeship.</p> <table class="responsive"> <tr> <th sc...
@model SFA.DAS.EmployerAccounts.Web.ViewModels.VacancyViewModel <section class="dashboard-section"> <h2 class="section-heading heading-large"> Your apprenticeship advert </h2> <p>You have created a vacancy for your apprenticeship.</p> <table class="responsive"> <tr> <th sc...
Adjust health increase for drum roll tick to match new max result
// 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.Scoring; namespace osu.Game.Rulesets.Taiko.Judgements { public class TaikoDrumRollTickJudgement : TaikoJudgement { public overri...
// 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.Scoring; namespace osu.Game.Rulesets.Taiko.Judgements { public class TaikoDrumRollTickJudgement : TaikoJudgement { public overri...
Add start log to commands
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Autofac; using GeoChallenger.Commands.Commands; using GeoChallenger.Commands.Config; using NLog; namespace GeoChallenger.Commands { class Program { private static readonly Logger ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Autofac; using GeoChallenger.Commands.Commands; using GeoChallenger.Commands.Config; using NLog; using NLog.Fluent; namespace GeoChallenger.Commands { class Program { private stat...
Add `current_period_*` filters when listing Invoices
namespace Stripe { using Newtonsoft.Json; public class SubscriptionListOptions : ListOptionsWithCreated { /// <summary> /// The billing mode of the subscriptions to retrieve. One of <see cref="Billing" />. /// </summary> [JsonProperty("billing")] public Billing? Bill...
namespace Stripe { using System; using Newtonsoft.Json; public class SubscriptionListOptions : ListOptionsWithCreated { /// <summary> /// The billing mode of the subscriptions to retrieve. One of <see cref="Billing" />. /// </summary> [JsonProperty("billing")] pu...
Remove whitespace (leave the newline).
using System.Collections.Generic; using System.Linq; using Swashbuckle.AspNetCore.Swagger; using Swashbuckle.AspNetCore.SwaggerGen; using Abp.Authorization; namespace AbpCompanyName.AbpProjectName.Web.Host.Startup { public class SecurityRequirementsOperationFilter : IOperationFilter { public void Apply...
using System.Collections.Generic; using System.Linq; using Swashbuckle.AspNetCore.Swagger; using Swashbuckle.AspNetCore.SwaggerGen; using Abp.Authorization; namespace AbpCompanyName.AbpProjectName.Web.Host.Startup { public class SecurityRequirementsOperationFilter : IOperationFilter { public void Apply...
Fix manual KMS snippet (LocationName breaking change is expected)
// Copyright 2018 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 2018 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...
Package updates is now fully implemented
using System.Collections.Generic; namespace Glimpse.Core.Framework { public class GlimpseMetadata { public GlimpseMetadata() { Plugins = new Dictionary<string, PluginMetadata>(); Resources = new Dictionary<string, string>//TODO: once the resources below are implemented,...
using System.Collections.Generic; namespace Glimpse.Core.Framework { public class GlimpseMetadata { public GlimpseMetadata() { Plugins = new Dictionary<string, PluginMetadata>(); Resources = new Dictionary<string, string>//TODO: once the resources below are implemented,...
Undo change of this file.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.CodeAnalysis.Editor { internal static class ContentTypeNames { public const string CSharpContentType = "CSharp"; ...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.CodeAnalysis.Editor { internal static class ContentTypeNames { public const string CSharpContentType = "CSharp"; ...
Set default for bindable in object initializer
// 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.Bindables; using osu.Framework.Graphics; using osu.Game.Overlays; using osu.Game.Overlays.Settings; using osu.Game.Rul...
// 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.Bindables; using osu.Framework.Graphics; using osu.Game.Overlays; using osu.Game.Overlays.Settings; using osu.Game.Rul...
Fix crash in UWP design mode
using System; using System.ComponentModel; using Windows.ApplicationModel; #if WINDOWS_UWP namespace Xamarin.Forms.Platform.UWP #else namespace Xamarin.Forms.Platform.WinRT #endif { public abstract class WindowsBasePage : Windows.UI.Xaml.Controls.Page { public WindowsBasePage() { Windows.UI.Xaml.Applicatio...
using System; using System.ComponentModel; using Windows.ApplicationModel; #if WINDOWS_UWP namespace Xamarin.Forms.Platform.UWP #else namespace Xamarin.Forms.Platform.WinRT #endif { public abstract class WindowsBasePage : Windows.UI.Xaml.Controls.Page { public WindowsBasePage() { if (!DesignMode.DesignMode...
Allow parameters for get authorization uri
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Chq.OAuth.Credentials; namespace Chq.OAuth { public sealed class Client { private OAuthContext _context; public OAuthContext Context { get { return _con...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Chq.OAuth.Credentials; using System.Reflection; namespace Chq.OAuth { public sealed class Client { private OAuthContext _context; public OAuthContext Context { ...
Add the most basic score calculation for catch
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Scoring; using osu.Game.Rulesets.UI; namespace osu.Game.Rulesets.Catch.Scoring { internal c...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Beatmaps; using osu.Game.Rulesets.Catch.Judgements; using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Objects.Drawables; using osu.Ga...
Fix broken ASP.NET Core integration.
using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Hosting; using MQTTnet.Adapter; using MQTTnet.Diagnostics; using MQTTnet.Server; namespace MQTTnet.AspNetCore { public class MqttHostedServer : MqttServer, IHostedService { ...
using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Hosting; using MQTTnet.Adapter; using MQTTnet.Diagnostics; using MQTTnet.Server; namespace MQTTnet.AspNetCore { public class MqttHostedServer : MqttServer, IHostedService { ...
Divide Functions of mixing and setting instructions
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace War { class VesselSetter { private List<Vessel> _Vessels; private int _ProcessorsNumber; public VesselSetter(List<Instruction> instruc...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace War { class VesselSetter { private List<Vessel> _Vessels; private int _ProcessorsNumber; public VesselSetter(List<Instruction> instruc...
Fix index out of range error
using Discord.Commands; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace portalbot.Commands { public class AskModule : ModuleBase { private List<string> _answers = new List<string> { "It is certain.", "It is decidedly s...
using Discord.Commands; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace portalbot.Commands { public class AskModule : ModuleBase { private List<string> _answers = new List<string> { "It is certain.", "It is decidedly s...
Leverage 'GuardIsNotNullOrWhiteSpace' method instead of 'GuardIsNotNull'
using System.Collections.Generic; using System.Linq; using Spk.Common.Helpers.Guard; namespace Spk.Common.Helpers.Service { public class ServiceResult { public IEnumerable<string> Errors => _internalErrors; private readonly List<string> _internalErrors = new List<string>(); public IEnu...
using System.Collections.Generic; using System.Linq; using Spk.Common.Helpers.Guard; namespace Spk.Common.Helpers.Service { public class ServiceResult { public IEnumerable<string> Errors => _internalErrors; private readonly List<string> _internalErrors = new List<string>(); public IEnu...
Add t=0 display to notes.
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK.Graphics; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprite...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK.Graphics; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprite...
Tweak delete cloned build chain routine.
using System.Linq; using System.Threading.Tasks; using TeamCityApi.Helpers; using TeamCityApi.Logging; namespace TeamCityApi.UseCases { public class DeleteClonedBuildChainUseCase { private static readonly ILog Log = LogProvider.GetLogger(typeof(DeleteClonedBuildChainUseCase)); private readonl...
using System.Linq; using System.Threading.Tasks; using TeamCityApi.Helpers; using TeamCityApi.Logging; namespace TeamCityApi.UseCases { public class DeleteClonedBuildChainUseCase { private static readonly ILog Log = LogProvider.GetLogger(typeof(DeleteClonedBuildChainUseCase)); private readonl...
Rewrite this to be shorter & consistent
using System; using System.Web; namespace Stampsy.ImageSource { public class AssetDescription : IDescription { public enum AssetImageKind { Thumbnail, FullResolution } public AssetImageKind Kind { get; private set; } public string AssetUrl { get;...
using System; using System.Web; namespace Stampsy.ImageSource { public class AssetDescription : IDescription { public enum AssetImageKind { Thumbnail, FullResolution } public AssetImageKind Kind { get; private set; } public string AssetUrl { get;...
Change UseCsla extension method from HostBuilder to IHostBuilder for: !NET40 and !NET45, as its not available for those.
//----------------------------------------------------------------------- // <copyright file="WebConfiguration.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: https://cslanet.com // </copyright> // <summary>Implement extension methods for .NET Core configuration</summa...
//----------------------------------------------------------------------- // <copyright file="WebConfiguration.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: https://cslanet.com // </copyright> // <summary>Implement extension methods for .NET Core configuration</summa...
Add missing interface for FindPlayerById
using System.Collections.Generic; namespace Oxide.Core.Libraries.Covalence { /// <summary> /// Represents a generic player manager /// </summary> public interface IPlayerManager { #region Player Finding /// <summary> /// Gets all players /// </summary> /// ...
using System.Collections.Generic; namespace Oxide.Core.Libraries.Covalence { /// <summary> /// Represents a generic player manager /// </summary> public interface IPlayerManager { #region Player Finding /// <summary> /// Gets all players /// </summary> /// ...
Add some extra options to the agent broker interface
using System; using System.Threading.Tasks; namespace Glimpse.Agent { public interface IAgentBroker { IObservable<MessageListenerOptions> Listen<T>(); IObservable<MessageListenerOptions> ListenIncludeLatest<T>(); void SendMessage(object message); } }
using System; using System.Threading.Tasks; namespace Glimpse.Agent { public interface IAgentBroker { IObservable<MessageListenerOptions> Listen<T>(); IObservable<MessageListenerOptions> ListenIncludeLatest<T>(); IObservable<MessageListenerOptions> ListenAll(); IObservable<M...
Add some more message types
namespace Curse.NET.SocketModel { public enum RequestType { Login = -2101997347, } public enum ResponseType { UserActivityChange = 1260535191, ChannelReference = -695526586, ChatMessage = -635182161, Login = -815187584, UnknownChange = 149631008 } } //
namespace Curse.NET.SocketModel { public enum RequestType { Login = -2101997347, } public enum ResponseType { ChannelStatusChanged = 72981382, UserActivityChange = 1260535191, ChannelMarkedRead = -695526586, ChatMessage = -635182161, Login = -815187584, MessageChanged = 149631008, Unknown1 = 7051...
Add test for authorization requirement in TraktUserApproveFollowerRequest
namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Post.Bodyless; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Objects.Get.Users; ...
namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Post.Bodyless; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Objects.Get.Users; ...
Fix YuukaWater drop creating errors on contact
 using System.Collections; using System.Collections.Generic; using UnityEngine; using NitorInc.Utility; namespace NitorInc.YuukaWater { public class YuukaWaterWaterdrop : MonoBehaviour { public float scaleSpeed = 1.0f; public GameObject sprayEffect; Rigidbody2D rigid; private V...
 using System.Collections; using System.Collections.Generic; using UnityEngine; using NitorInc.Utility; namespace NitorInc.YuukaWater { public class YuukaWaterWaterdrop : MonoBehaviour { public float scaleSpeed = 1.0f; public GameObject sprayEffect; Rigidbody2D rigid; private V...
Adjust locations where to look for wwwroot.
using System.IO; using Microsoft.AspNetCore.Hosting; using NLog; namespace HelloWorldApp { public class Program { // Entry point for the application. public static void Main(string[] args) { SetupNLog(); var host = new WebHostBuilder() .UseKestre...
using System.IO; using Microsoft.AspNetCore.Hosting; using NLog; namespace HelloWorldApp { public class Program { // Entry point for the application. public static void Main(string[] args) { SetupNLog(); var host = new WebHostBuilder() .UseKestre...
Update mapping config with service profile.
using AutoMapper; using Baskerville.App.App_Start; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace Baskerville.App { public class MvcApplication : HttpApplication ...
using AutoMapper; using Baskerville.App.App_Start; using Baskerville.Services; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace Baskerville.App { public class MvcAppl...
Use Expression-bodied members and never execeeds its capacity
using System; using System.Collections.Generic; public class CircularBuffer<T> { private readonly Queue<T> _buffer; private readonly int _capacity; public CircularBuffer(int capacity) { _buffer = new Queue<T>(capacity); _capacity = capacity; } public T Read() { ret...
using System; using System.Collections.Generic; public class CircularBuffer<T> { private readonly Queue<T> _buffer; private readonly int _capacity; public CircularBuffer(int capacity) { _buffer = new Queue<T>(capacity); _capacity = capacity; } public T Read() => _buffer.Dequeu...
Index processor to store result, not enumerable, on definition
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using MongoDB.Bson.Serialization; using MongoFramework.Attributes; namespace MongoFramework.Infrastructure.Mapping.Processors { public class IndexProcessor : IMappingProcessor { public void ApplyMapping(...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using MongoDB.Bson.Serialization; using MongoFramework.Attributes; namespace MongoFramework.Infrastructure.Mapping.Processors { public class IndexProcessor : IMappingProcessor { public void ApplyMapping(...
Use enum for scope type
using System; using Platform.Validation; using Shaolinq; namespace IdentityServer3.Shaolinq.DataModel { [DataAccessObject(Name = "Scope")] public abstract class DbScope : DataAccessObject<Guid> { [PersistedMember] public abstract bool Enabled { get; set; } [PersistedMember] [ValueRequired] [SizeConstrain...
using System; using IdentityServer3.Core.Models; using Platform.Validation; using Shaolinq; namespace IdentityServer3.Shaolinq.DataModel { [DataAccessObject(Name = "Scope")] public abstract class DbScope : DataAccessObject<Guid> { [PersistedMember] public abstract bool Enabled { get; set; } [PersistedMember]...
Update ARM assembly and file version to 2.0.0
// // Copyright (c) Microsoft. All rights reserved. // // 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 la...
// // Copyright (c) Microsoft. All rights reserved. // // 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 la...
Fix showing window at boot
using System; using System.Collections.Generic; using System.Linq; using PEPlugin; namespace WeightedOffsetBlend { public class Plugin : PEPluginClass { private static MainForm FormInstance { get; set; } public override string Name { get { return "重み付きオフセット付加"; } ...
using System; using System.Collections.Generic; using System.Linq; using PEPlugin; namespace WeightedOffsetBlend { public class Plugin : PEPluginClass { private static MainForm FormInstance { get; set; } public override string Name { get { return "重み付きオフセット付加"; } ...
Add SA1400 test for local functions
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.CSharp7.MaintainabilityRules { using StyleCop.Analyzers.Test.MaintainabilityRules; public class ...
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.CSharp7.MaintainabilityRules { using System.Threading; using System.Threading.Tasks; using St...
Use a location name in ClusterManagerClient snippet
// Copyright 2017 Google Inc. All Rights Reserved. // // 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 applic...
// Copyright 2017 Google Inc. All Rights Reserved. // // 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 applic...
Move GetProjectInstance to the task
using System; namespace Clarius.TransformOnBuild.MSBuild.Task { public class TransformOnBuildTask : Microsoft.Build.Utilities.Task { public override bool Execute() { throw new NotImplementedException(); } } }
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Microsoft.Build.Execution; namespace Clarius.TransformOnBuild.MSBuild.Task { public class TransformOnBuildTask : Microsoft.Build.Utilities.Task { private ProjectInstance _projectInstance; ...
Add endpoint for getting log files
using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers { [Authorize, ApiExplorerSettings(IgnoreApi = true)] public class AdminController : Controller { // Admin Tasks: ...
using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers { [Authorize, ApiExplorerSettings(IgnoreApi = true)] public class AdminController : Controller { // Ad...
Set login screen as main
using System; using System.Windows.Forms; namespace HospitalAutomation.GUI { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); ...
using System; using System.Windows.Forms; namespace HospitalAutomation.GUI { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); ...
Fix bug introduced with commit about screen scale
using System; using UIKit; namespace FFImageLoading.Extensions { public static class UnitsExtensions { private static nfloat _screenScale; static UnitsExtensions() { UIScreen.MainScreen.InvokeOnMainThread(() => { _screenScale = _screenScale; }); } public static int PointsToPixels(this do...
using System; using UIKit; namespace FFImageLoading.Extensions { public static class UnitsExtensions { private static nfloat _screenScale; static UnitsExtensions() { UIScreen.MainScreen.InvokeOnMainThread(() => { _screenScale = UIScreen.MainScreen.Scale; }); } public static int PointsToP...
Add default handlers for built in holdables
using System.Collections; /// <summary>Contains commands for holdables (including the freeplay case and the missions binder).</summary> public static class HoldableCommands { #region Commands [Command("help")] public static bool Help(TwitchHoldable holdable, string user, bool isWhisper) => holdable.PrintHelp(user,...
using System.Collections; /// <summary>Contains commands for holdables (including the freeplay case and the missions binder).</summary> public static class HoldableCommands { #region Commands [Command("help")] public static bool Help(TwitchHoldable holdable, string user, bool isWhisper) => holdable.PrintHelp(user,...
Add PlayerPrefs Value Search Func
using UnityEditor; using UnityEngine; public class PlayerPrefsEditor { [MenuItem("Tools/PlayerPrefs/DeleteAll")] static void DeleteAll(){ PlayerPrefs.DeleteAll(); Debug.Log("Delete All Data Of PlayerPrefs!!"); } }
using UnityEditor; using UnityEngine; public class PlayerPrefsEditor : EditorWindow { string stringKey = ""; string intKey = ""; string floatKey = ""; [MenuItem("Tools/PlayerPrefs/DeleteAll")] static void DeleteAll(){ PlayerPrefs.DeleteAll(); Debug.Log("Delete All Data Of PlayerP...
Use correct Lib call in tests.
using System; using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using NugetAuditor; namespace NugetAuditor.Tests { [TestClass] public class NugetAuditorLibTests { [TestMethod] public void CanAuditFiles() { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using NugetAuditor; namespace NugetAuditor.Tests { [TestClass] public class NugetAuditorLibTests { [TestMethod] public void CanAuditFiles() { ...
Fix display issue for dateTime cells
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBi.Core.Scalar.Presentation { public class DateTimePresenter : BasePresenter { protected override string PresentNotNull(object value) { ...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBi.Core.Scalar.Presentation { public class DateTimePresenter : BasePresenter { protected override string PresentNotNull(object value) { ...
Include context in SMSService sending
using CertiPay.Common.Logging; using System; using System.Threading.Tasks; using Twilio; namespace CertiPay.Common.Notifications { /// <summary> /// Send an SMS message to the given recipient. /// </summary> /// <remarks> /// Implementation may be sent into background processing. /// </remarks...
using CertiPay.Common.Logging; using System; using System.Threading.Tasks; using Twilio; namespace CertiPay.Common.Notifications { /// <summary> /// Send an SMS message to the given recipient. /// </summary> /// <remarks> /// Implementation may be sent into background processing. /// </remarks...
Add Smart Watch to device
// Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using System; namespace Wangkanai.Detection.Models { [Flags] public enum Device { Desktop = 0, // Windows, Mac, Linux Tablet = 1 << 0, //...
// Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using System; namespace Wangkanai.Detection.Models { [Flags] public enum Device { Desktop = 0, // Windows, Mac, Linux Tablet = 1 << 0, //...
Add processing projects in solution folders
using EnvDTE; using System; using System.Linq; namespace T4TS { public class ProjectTraverser { public Action<CodeNamespace> WithNamespace { get; private set; } public ProjectTraverser(Project project, Action<CodeNamespace> withNamespace) { if (project == null) ...
using EnvDTE; using System; using System.Linq; namespace T4TS { public class ProjectTraverser { public Action<CodeNamespace> WithNamespace { get; private set; } public ProjectTraverser(Project project, Action<CodeNamespace> withNamespace) { if (project == null) ...
Remove obsoleted & Unenforced PermissionSet
using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; using System.Security.Permissions; [assembly: AssemblyProduct("Python for .NET")] [assembly: AssemblyVersion("2.4.2.7")] [assembly: AssemblyTitle("Python Console")] [assembly: AssemblyDefaultAlias("python.exe")] [assem...
using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; using System.Security.Permissions; [assembly: AssemblyProduct("Python for .NET")] [assembly: AssemblyVersion("2.4.2.7")] [assembly: AssemblyTitle("Python Console")] [assembly: AssemblyDefaultAlias("python.exe")] [assem...
Change default exception to CallNotReceivedException and CallReceivedException in NSubtitute adapter.
using System; using System.Diagnostics; using System.Linq; using System.Linq.Expressions; using System.Reflection; using Machine.Fakes.Sdk; using NSubstitute; namespace Machine.Fakes.Adapters.NSubstitute { internal class NSubstituteMethodCallOccurance<TFake> : IMethodCallOccurance where TFake : class { ...
using System; using System.Linq; using System.Linq.Expressions; using Machine.Fakes.Sdk; using NSubstitute; using NSubstitute.Exceptions; namespace Machine.Fakes.Adapters.NSubstitute { internal class NSubstituteMethodCallOccurance<TFake> : IMethodCallOccurance where TFake : class { private readonly TF...
Add library credits to "About" text
using System.Text; using DesktopWidgets.Classes; using DesktopWidgets.Properties; namespace DesktopWidgets.Helpers { public static class AboutHelper { public static string AboutText { get { var stringBuilder = new StringBuilder(); string...
using System.Collections.Generic; using System.Linq; using System.Text; using DesktopWidgets.Classes; using DesktopWidgets.Properties; namespace DesktopWidgets.Helpers { public static class AboutHelper { public static string AboutText { get { var stringB...
Fix nullreference when try to call disabled component
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ClipPlane : MonoBehaviour { // input objects public Slider slider; public Material clipPlaneMaterial; // private objects private Renderer cube; private float clipX; void Star...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ClipPlane : MonoBehaviour { // input objects public Slider slider; public Material clipPlaneMaterial; // private objects private Renderer cube; private float clipX; void Star...
Add code to create XML file
using System; using System.Collections.Generic; using System.IO; namespace CreateXMLFile { internal static class Program { private static void Main() { const string fileName = "quotes.txt"; Dictionary<string, string> dicoQuotes = new Dictionary<string, string>(); List<string> quotesList ...
using System; using System.Collections.Generic; using System.IO; namespace CreateXMLFile { internal static class Program { private static void Main() { const string fileName = "quotes-cleaned.txt"; const string XmlFileName = "quotes-XML.txt"; Dictionary<string, string> dicoQuotes = new D...
Add wallet journal and transaction endpoints.
using ESISharp.Web; namespace ESISharp.ESIPath.Character { /// <summary>Authenticated Character Wallet paths</summary> public class CharacterWallet { protected ESIEve EasyObject; internal CharacterWallet(ESIEve EasyEve) { EasyObject = EasyEve; } /// <s...
using ESISharp.Web; namespace ESISharp.ESIPath.Character { /// <summary>Authenticated Character Wallet paths</summary> public class CharacterWallet { protected ESIEve EasyObject; internal CharacterWallet(ESIEve EasyEve) { EasyObject = EasyEve; } /// <s...
Clean up ToComment so it handles a few edge cases a bit better
using System; using System.Collections.Generic; using System.Linq; using System.Web; using StackExchange.DataExplorer.Helpers; using System.Text; namespace StackExchange.DataExplorer.Models { public partial class Query { public string BodyWithoutComments { get { P...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using StackExchange.DataExplorer.Helpers; using System.Text; namespace StackExchange.DataExplorer.Models { public partial class Query { public string BodyWithoutComments { get { P...
Add new test case for Range.Ints()
namespace RangeIt.Tests.Ranges { using FluentAssertions; using RangeIt.Ranges; using Xunit; [Collection("Range.Ints.Tests")] public class Range_Ints_Tests { [Fact] public void Test_Range_Ints() { var range = Range.Ints(10); range.Should().NotBeN...
namespace RangeIt.Tests.Ranges { using FluentAssertions; using RangeIt.Ranges; using Xunit; [Collection("Range.Ints.Tests")] public class Range_Ints_Tests { [Fact] public void Test_Range_Ints() { var range = Range.Ints(10); range.Should().NotBeN...
Add last disposed drawable to global statistics
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using System.Threading.Tasks; namespace osu.Framework.Allocation { /// <summary> /// A queue which batches object...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using System.Threading.Tasks; using osu.Framework.Statistics; namespace osu.Framework.Allocation { /// <summary> ...
Remove AlwaysPresent (not actually required)
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.ComponentModel; using osu.Framework.Allocation; using osu.Framework.Audio; using osu.Framework.Audio.Sample; using osu.Framework.Extensions; using ...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.ComponentModel; using osu.Framework.Allocation; using osu.Framework.Audio; using osu.Framework.Audio.Sample; using osu.Framework.Extensions; using ...
Refactor to use card extensions
using Hearts.Model; using System; using System.Collections.Generic; using System.Linq; using Hearts.Scoring; namespace Hearts.Extensions { public static class CardListExtensions { public static void Log(this IEnumerable<Card> self, string name) { int padToLength = 38; L...
using Hearts.Model; using System; using System.Collections.Generic; using System.Linq; using Hearts.Scoring; namespace Hearts.Extensions { public static class CardListExtensions { public static void Log(this IEnumerable<Card> self, string name) { int padToLength = 38; L...
Use `TestCase` attribute in parser tests.
using NUnit.Framework; using Pash.ParserIntrinsics; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ParserTests { [TestFixture] public class ParserTests { [Test] public void IfTest() { var parseTree = PowerShellGrammar.Par...
using NUnit.Framework; using Pash.ParserIntrinsics; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ParserTests { [TestFixture] public class ParserTests { [Test] [TestCase(@"if ($true) {} else {}")] [TestCase(@"if ($true) {} elseif ($...
Fix icons on session details page
@page "{id}" @model SessionModel <ol class="breadcrumb"> <li><a asp-page="/Index">Agenda</a></li> <li><a asp-page="/Index" asp-route-day="@Model.DayOffset">Day @(Model.DayOffset + 1)</a></li> <li class="active">@Model.Session.Title</li> </ol> <h1>@Model.Session.Title</h1> <span class="label label-default"...
@page "{id}" @model SessionModel <ol class="breadcrumb"> <li><a asp-page="/Index">Agenda</a></li> <li><a asp-page="/Index" asp-route-day="@Model.DayOffset">Day @(Model.DayOffset + 1)</a></li> <li class="active">@Model.Session.Title</li> </ol> <h1>@Model.Session.Title</h1> <span class="label label-default"...
Rename test shim method name
using System.Linq; using System.Reflection; using NSpec; using NSpec.Domain; using NSpec.Domain.Formatters; using Microsoft.VisualStudio.TestTools.UnitTesting; /* * Howdy, * * This is NSpec's DebuggerShim. It will allow you to use TestDriven.Net or Resharper's test runner to run * NSpec tests that are in the sa...
using System.Linq; using System.Reflection; using NSpec; using NSpec.Domain; using NSpec.Domain.Formatters; using Microsoft.VisualStudio.TestTools.UnitTesting; /* * Howdy, * * This is NSpec's DebuggerShim. It will allow you to use TestDriven.Net or Resharper's test runner to run * NSpec tests that are in the sa...
Update EmbeddedFileProvider to reflect project name change
using System; using System.Reflection; using Microsoft.AspNetCore.StaticFiles; using Microsoft.Extensions.FileProviders; using Swashbuckle.AspNetCore.SwaggerUi; namespace Microsoft.AspNetCore.Builder { public static class SwaggerUiBuilderExtensions { public static IApplicationBuilder UseSwaggerUi( ...
using System; using System.Reflection; using Microsoft.AspNetCore.StaticFiles; using Microsoft.Extensions.FileProviders; using Swashbuckle.AspNetCore.SwaggerUi; namespace Microsoft.AspNetCore.Builder { public static class SwaggerUiBuilderExtensions { public static IApplicationBuilder UseSwaggerUi( ...
Drop unused streaming write option.
#region (c) 2010-2011 Lokad - CQRS for Windows Azure - New BSD License // Copyright (c) Lokad 2010-2011, http://www.lokad.com // This code is released as Open Source under the terms of the New BSD Licence #endregion using System; namespace Lokad.Cqrs.Feature.StreamingStorage { [Flags] public e...
#region (c) 2010-2011 Lokad - CQRS for Windows Azure - New BSD License // Copyright (c) Lokad 2010-2011, http://www.lokad.com // This code is released as Open Source under the terms of the New BSD Licence #endregion using System; namespace Lokad.Cqrs.Feature.StreamingStorage { [Flags] public e...
Improve naming of tests to clearly indicate the feature to be tested
#region Copyright and license // // <copyright file="NullTests.cs" company="Oliver Zick"> // // Copyright (c) 2016 Oliver Zick. All rights reserved. // // </copyright> // // <author>Oliver Zick</author> // // <license> // // Licensed under the Apache License, Version 2.0 (the "License"); // // you may not ...
#region Copyright and license // // <copyright file="NullTests.cs" company="Oliver Zick"> // // Copyright (c) 2016 Oliver Zick. All rights reserved. // // </copyright> // // <author>Oliver Zick</author> // // <license> // // Licensed under the Apache License, Version 2.0 (the "License"); // // you may not ...
Update the extension method test case
using System; public class Herp { public Herp(int X) { this.X = X; } public int X { get; private set; } } public static class HerpExtensions { public static void PrintX(this Herp Value) { Console.WriteLine(Value.X); } } public static class Program { public static void...
using System; using System.Collections.Generic; using System.Linq; public class Herp { public Herp(int X) { this.X = X; } public int X { get; private set; } } public static class HerpExtensions { public static void PrintX(this Herp Value) { Console.WriteLine(Value.X); } } ...
Set dialog flag as Router.NavigationStack.CollectionChanged observable in blocked by _isClosing
using System; using System.Reactive; using System.Reactive.Linq; using ReactiveUI; using WalletWasabi.Gui.ViewModels; namespace WalletWasabi.Fluent.ViewModels.Dialogs { public class DialogScreenViewModel : ViewModelBase, IScreen { private bool _isClosing; private bool _isDialogVisible; public DialogScreenView...
using System; using System.Reactive; using System.Reactive.Linq; using ReactiveUI; using WalletWasabi.Gui.ViewModels; namespace WalletWasabi.Fluent.ViewModels.Dialogs { public class DialogScreenViewModel : ViewModelBase, IScreen { private bool _isClosing; private bool _isDialogVisible; public DialogScreenView...
Fix compilation error on kh.tools.imgz
using kh.kh2; using System.Windows.Media; using System.Windows.Media.Imaging; using Xe.Tools; using Xe.Tools.Wpf; namespace kh.tools.imgz.Models { public class ImageModel : BaseNotifyPropertyChanged { private Imgd imgd; public ImageModel(Imgd imgd) { Imgd = imgd; } public Imgd Imgd { get => imgd...
using kh.Imaging; using kh.kh2; using System.Windows.Media; using System.Windows.Media.Imaging; using Xe.Tools; using Xe.Tools.Wpf; namespace kh.tools.imgz.Models { public class ImageModel : BaseNotifyPropertyChanged { private Imgd imgd; public ImageModel(Imgd imgd) { Imgd = imgd; } public Imgd Imgd ...
Print to STDOUT - 2> is broken on Mono/OS X
using System; using System.Linq; namespace Gherkin.AstGenerator { class Program { static int Main(string[] args) { if (args.Length < 1) { Console.WriteLine("Usage: Gherkin.AstGenerator.exe test-feature-file.feature"); return 1...
using System; using System.Linq; namespace Gherkin.AstGenerator { class Program { static int Main(string[] args) { if (args.Length < 1) { Console.WriteLine("Usage: Gherkin.AstGenerator.exe test-feature-file.feature"); return 1...
Increase PERFECT from 320 to 350 score
// 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.Judgements; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Mania.Judgements { public class ManiaJudgement : Judgement { ...
// 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.Judgements; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Mania.Judgements { public class ManiaJudgement : Judgement { ...
Refactor seq for empty vectors
namespace ClojSharp.Core.Forms { using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using ClojSharp.Core.Language; public class Seq : BaseUnaryForm { public override object EvaluateForm(IContext context, IL...
namespace ClojSharp.Core.Forms { using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using ClojSharp.Core.Language; public class Seq : BaseUnaryForm { public override object EvaluateForm(IContext context, IL...
Add docs about limitation of this option
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; namespace Microsoft.AspNetCore.Razor.Language { public abstract class RazorPars...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; namespace Microsoft.AspNetCore.Razor.Language { public abstract class RazorPars...
Use ValidationHelper for email regex
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text.RegularExpressions; using Abp.Auditing; using Abp.Authorization.Users; using Abp.Extensions; namespace AbpCompanyName.AbpProjectName.Web.Models.Account { public class RegisterViewModel : IValidatableObject { ...
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Abp.Auditing; using Abp.Authorization.Users; using Abp.Extensions; using AbpCompanyName.AbpProjectName.Validation; namespace AbpCompanyName.AbpProjectName.Web.Models.Account { public class RegisterViewModel : IValidatableObject ...
Hide titlebar in Android visual test activity
// 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 Android.App; using Android.Content.PM; using osu.Framework.Android; namespace osu.Framework.Tests.Android { [Activity(MainLauncher = true, ConfigurationChange...
// 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 Android.App; using Android.Content.PM; using Android.OS; using Android.Views; using osu.Framework.Android; namespace osu.Framework.Tests.Android { [Activity(M...
Add stubs for APFT controller
using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace BatteryCommander.Web.Controllers { [Authorize] public class APFTController : Controller { private readonly Database db; public APFTController(Database db) { ...
using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers { [Authorize] public class APFTController : Controller { private readonly Database db; public...