Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Drop "-message" from all message names
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Glimpse.Extensions; namespace Glimpse.Internal { public class DefaultMessageTypeProcessor : IMessageTypeProcessor { private readonly static Type[] _exclusions = { typeof(object) }; public virtual ...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Glimpse.Extensions; namespace Glimpse.Internal { public class DefaultMessageTypeProcessor : IMessageTypeProcessor { private readonly static Type[] _exclusions = { typeof(object) }; public virtual ...
Use the viewBag Title rather than the hard coded one.
@model IdentityServer3.Core.ViewModels.AuthorizeResponseViewModel @{ ViewBag.PageID = "authorize-response"; ViewBag.Title = "Please wait"; ViewBag.HideSigninLink = "true"; Layout = "~/Views/Shared/_Layout-NoBanner.cshtml"; } <h1 class="heading-xlarge">You've logged in</h1> <form id="mainFor...
@model IdentityServer3.Core.ViewModels.AuthorizeResponseViewModel @{ ViewBag.PageID = "authorize-response"; ViewBag.Title = "Please wait"; ViewBag.HideSigninLink = "true"; Layout = "~/Views/Shared/_Layout-NoBanner.cshtml"; } <h1 class="heading-xlarge">@ViewBag.Title</h1> <form id="mainForm"...
Fix the sample app following previous changes.
// Copyright (c) Solal Pirelli 2014 // See License.txt file for more details using ThinMvvm.WindowsPhone.SampleApp.Resources; using ThinMvvm.WindowsPhone.SampleApp.ViewModels; namespace ThinMvvm.WindowsPhone.SampleApp { public sealed class App : AppBase { protected override string Language { ...
// Copyright (c) Solal Pirelli 2014 // See License.txt file for more details using ThinMvvm.WindowsPhone.SampleApp.Resources; using ThinMvvm.WindowsPhone.SampleApp.ViewModels; namespace ThinMvvm.WindowsPhone.SampleApp { public sealed class App : AppBase { private readonly IWindowsPhoneNavigationServi...
Add extension method for IRandom to get an unsigned 64-bit integer.
namespace Bakery.Security { using System; public static class RandomExtensions { public static Byte[] GetBytes(this IRandom random, Int32 count) { if (count <= 0) throw new ArgumentOutOfRangeException(nameof(count)); var buffer = new Byte[count]; for (var i = 0; i < count; i++) ...
namespace Bakery.Security { using System; public static class RandomExtensions { public static Byte[] GetBytes(this IRandom random, Int32 count) { if (count <= 0) throw new ArgumentOutOfRangeException(nameof(count)); var buffer = new Byte[count]; for (var i = 0; i < count; i++) ...
Revert changes to the test.
// Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unless req...
// Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unless req...
Add valid cron expression to test
using IntegrationEngine.Api.Controllers; using IntegrationEngine.Core.Storage; using IntegrationEngine.Model; using IntegrationEngine.Scheduler; using Moq; using NUnit.Framework; namespace IntegrationEngine.Tests.Api.Controllers { public class CronTriggerControllerTest { [Test] public void Sho...
using IntegrationEngine.Api.Controllers; using IntegrationEngine.Core.Storage; using IntegrationEngine.Model; using IntegrationEngine.Scheduler; using Moq; using NUnit.Framework; namespace IntegrationEngine.Tests.Api.Controllers { public class CronTriggerControllerTest { [Test] public void Sho...
Fix incorrect title on edit page
@using Orchard.Mvc.Html; @{ Layout.Title = T("New Blog"); } <div class="edit-item"> <div class="edit-item-primary"> @if (Model.Content != null) { <div class="edit-item-content"> @Display(Model.Content) </div> } </div> <div class="edit-item-secondar...
@using Orchard.Mvc.Html; <div class="edit-item"> <div class="edit-item-primary"> @if (Model.Content != null) { <div class="edit-item-content"> @Display(Model.Content) </div> } </div> <div class="edit-item-secondary group"> @if (Model.Actions !=...
Format dates properly for the api
using System; using System.Reflection; using SurveyMonkey.RequestSettings; namespace SurveyMonkey.Helpers { internal class RequestSettingsHelper { internal static RequestData GetPopulatedProperties(object obj) { var output = new RequestData(); foreach (PropertyInfo prop...
using System; using System.Reflection; using SurveyMonkey.RequestSettings; namespace SurveyMonkey.Helpers { internal class RequestSettingsHelper { internal static RequestData GetPopulatedProperties(object obj) { var output = new RequestData(); foreach (PropertyInfo prop...
Add helpers for finding attributes
using System; using System.Collections.Generic; namespace Konsola.Metadata { public class ObjectMetadata { public ObjectMetadata( Type type, IEnumerable<PropertyMetadata> properties, IEnumerable<AttributeMetadata> attributes) { Type = type; Properties = properties; Attributes = attributes; }...
using System; using System.Linq; using System.Collections.Generic; namespace Konsola.Metadata { public class ObjectMetadata { public ObjectMetadata( Type type, IEnumerable<PropertyMetadata> properties, IEnumerable<AttributeMetadata> attributes) { Type = type; Properties = properties; Attribute...
Use bigquerydatatransfer instead of bigquery_data_transfer in region tags
/* * Copyright (c) 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright (c) 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Raise exceptions on non-404 error codes
using System.Net.Http; using System.Threading; using System.Threading.Tasks; using LiberisLabs.CompaniesHouse.Response.CompanyProfile; using LiberisLabs.CompaniesHouse.UriBuilders; namespace LiberisLabs.CompaniesHouse { public class CompaniesHouseCompanyProfileClient : ICompaniesHouseCompanyProfileClient { ...
using System.Net.Http; using System.Threading; using System.Threading.Tasks; using LiberisLabs.CompaniesHouse.Response.CompanyProfile; using LiberisLabs.CompaniesHouse.UriBuilders; namespace LiberisLabs.CompaniesHouse { public class CompaniesHouseCompanyProfileClient : ICompaniesHouseCompanyProfileClient { ...
Fix tabs/spaces in test site startup
using System; using System.Threading.Tasks; using Microsoft.Owin; using Owin; using BundlerMiddleware; [assembly: OwinStartup(typeof(BundlerTestSite.Startup))] namespace BundlerTestSite { public class Startup { public static BundlerRouteTable MarkdownRoutes = new BundlerRouteTable(); public s...
using System; using System.Threading.Tasks; using Microsoft.Owin; using Owin; using BundlerMiddleware; [assembly: OwinStartup(typeof(BundlerTestSite.Startup))] namespace BundlerTestSite { public class Startup { public static BundlerRouteTable MarkdownRoutes = new BundlerRouteTable(); public s...
Test commit of new line endings
// Copyright (c) 2011 - OJ Reeves & Jeremiah Peschka // // This file is provided to you 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 // // Unle...
// Copyright (c) 2011 - OJ Reeves & Jeremiah Peschka // // This file is provided to you 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 // // Unle...
Check that Data dictionary accepts string keys.
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Mindscape.Raygun4Net { public class RaygunClientBase { protected internal const string SentKey = "AlreadySentByRaygun"; protected bool CanSend(Exception exception) { return exception == null || !exce...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Mindscape.Raygun4Net { public class RaygunClientBase { protected internal const string SentKey = "AlreadySentByRaygun"; protected bool CanSend(Exception exception) { return exception == null || excep...
Fix beatmap lookups failing for beatmaps with no local path
// 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.Online.API.Requests.Responses; namespace osu.Game.Online.API.Requests { public class GetBeatmapRequest : APIRequest<APIBeatm...
// 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.Online.API.Requests.Responses; namespace osu.Game.Online.API.Requests { public class GetBeatmapRequest : APIRequest<APIBeatm...
Add temp dummy impl of IContext.WithDeleted and WithFunction
using System.Linq; using NakedFunctions; namespace AW { public static class Helpers { /// <summary> /// Returns a random instance from the set of all instance of type T /// </summary> public static T Random<T>(IContext context) where T : class { //The O...
using System; using System.Linq; using NakedFunctions; namespace AW { public static class Helpers { /// <summary> /// Returns a random instance from the set of all instance of type T /// </summary> public static T Random<T>(IContext context) where T : class { ...
Make sure ProcessAreaLocationSetting is set on first start-up
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...
Implement random walk for 2D
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RandomWalkConsole { class Program { static void Main(string[] args) { } } }
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace RandomWalkConsole { class Program { static void Main(string[] args) { var unfinished = Enumerable.Range(0, 1000) .Select(_ => Walk2()) ...
Switch to lower case URLs
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace Dashboard { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pat...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace Dashboard { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.LowercaseUrls = true; ...
Make public a method which was accidentally committed as private.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace MonoGameUtils.Drawing { /// <summary> /// Various useful utility methods that don't obviously go elsewhere. /...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace MonoGameUtils.Drawing { /// <summary> /// Various useful utility methods that don't obviously go elsewhere. /...
Remove unnecessary reference to IScheduledEvent
// Copyright (c) MarinAtanasov. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the project root for license information. // using System; using System.Linq; namespace AppBrix.Events.Schedule.Impl { internal abstract class PriorityQueueItem { #region Construction ...
// Copyright (c) MarinAtanasov. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the project root for license information. // using System; using System.Linq; namespace AppBrix.Events.Schedule.Impl { internal abstract class PriorityQueueItem { #region Properties ...
Kill auto user insertion in non-debug
using System.Web.Mvc; namespace RightpointLabs.Pourcast.Web.Controllers { using RightpointLabs.Pourcast.Application.Orchestrators.Abstract; public class HomeController : Controller { private readonly ITapOrchestrator _tapOrchestrator; private readonly IIdentityOrchestrator _identityOrche...
using System.Web.Mvc; namespace RightpointLabs.Pourcast.Web.Controllers { using RightpointLabs.Pourcast.Application.Orchestrators.Abstract; public class HomeController : Controller { private readonly ITapOrchestrator _tapOrchestrator; private readonly IIdentityOrchestrator _identityOrche...
Update comments & variable name
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Verdeler { internal class MultipleConcurrencyLimiter<TSubject> { private readonly List<ConcurrencyLimiter<TSubject>> _concurrencyLimiters = new List<ConcurrencyLimiter<TSubject>>(); ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Verdeler { internal class MultipleConcurrencyLimiter<TSubject> { private readonly List<ConcurrencyLimiter<TSubject>> _concurrencyLimiters = new List<ConcurrencyLimiter<TSubject>>(); ...
Support port 0 in remoting
// ----------------------------------------------------------------------- // <copyright file="RemotingSystem.cs" company="Asynkron HB"> // Copyright (C) 2015-2017 Asynkron HB All rights reserved // </copyright> // ----------------------------------------------------------------------- using System; usi...
// ----------------------------------------------------------------------- // <copyright file="RemotingSystem.cs" company="Asynkron HB"> // Copyright (C) 2015-2017 Asynkron HB All rights reserved // </copyright> // ----------------------------------------------------------------------- using System; usi...
Add voice option to ui test
using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; using System.Windows.Forms; using NUnit.Framework; using Palaso.TestUtilities; using Palaso.UI.WindowsForms.WritingSystems; using Palaso.WritingSystems; namespace PalasoUIWindowsForms.Tes...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; using System.Windows.Forms; using NUnit.Framework; using Palaso.TestUtilities; using Palaso.UI.WindowsForms.WritingSystems; using Palaso.UI.WindowsForms.WritingSystems.WSTree; using Palaso...
Access storage failure is readable.
#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.Core.Inbox.Events { public sealed class FailedTo...
#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.Core.Inbox.Events { public sealed class FailedTo...
Sort deployment groups in deployment list
using System; using System.Collections.Generic; using System.Linq; using Codestellation.Galaxy.Domain; using Codestellation.Quarks.Collections; using Nejdb.Bson; namespace Codestellation.Galaxy.WebEnd.Models { public class DeploymentListModel { public readonly DeploymentModel[] Deployments; p...
using System; using System.Collections.Generic; using System.Linq; using Codestellation.Galaxy.Domain; using Codestellation.Quarks.Collections; using Nejdb.Bson; namespace Codestellation.Galaxy.WebEnd.Models { public class DeploymentListModel { public readonly DeploymentModel[] Deployments; p...
Update inventory type and status mappings
using System.Collections.Generic; namespace ApiTest.InventoryApi { public class UnitOfMeasure { public int id { get; set; } public string code { get; set; } } public sealed class InventoryStatus { public static string Active = "active"; public stat...
using System.Collections.Generic; namespace ApiTest.InventoryApi { public class UnitOfMeasure { public int id { get; set; } public string code { get; set; } } public sealed class InventoryStatus { public static string Active = 0; public static stri...
Add the simples notification test
using System; using NUnit.Framework; using Realms; using System.Threading; namespace IntegrationTests.Shared { [TestFixture] public class NotificationTests { private string _databasePath; private Realm _realm; private void WriteOnDifferentThread(Action<Realm> action) { ...
using System; using NUnit.Framework; using Realms; using System.Threading; using System.IO; namespace IntegrationTests.Shared { [TestFixture] public class NotificationTests { private string _databasePath; private Realm _realm; private void WriteOnDifferentThread(Action<Realm> acti...
Fix - Corretto reperimento codice chiamata
using Newtonsoft.Json; using SO115App.API.Models.Classi.Soccorso; using SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace SO115App.FakePersistenceJSon.GestioneIntervento { public class GetMa...
using Newtonsoft.Json; using SO115App.API.Models.Classi.Soccorso; using SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace SO115App.FakePersistenceJSon.GestioneIntervento { public class GetMa...
Update text case for CreateSampleLesson
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using GGProductions.LetterStorm.Data.Collections; namespace Test.GGProductions.LetterStorm.Data.Collections { [TestClass] public class LessonBookTests { [TestMethod] public void CreateSampleLessonTest() { ...
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using GGProductions.LetterStorm.Data.Collections; namespace Test.GGProductions.LetterStorm.Data.Collections { [TestClass] public class LessonBookTests { [TestMethod] public void CreateSampleLessonTest() { ...
Change "Note" widget default height
using System.ComponentModel; using DesktopWidgets.Classes; namespace DesktopWidgets.Widgets.Note { public class Settings : WidgetSettingsBase { public Settings() { Width = 160; Height = 200; } [DisplayName("Saved Text")] public string Text { get...
using System.ComponentModel; using DesktopWidgets.Classes; namespace DesktopWidgets.Widgets.Note { public class Settings : WidgetSettingsBase { public Settings() { Width = 160; Height = 132; } [DisplayName("Saved Text")] public string Text { get...
Fix - Corretta notifica delete utente
using Microsoft.AspNetCore.SignalR; using SO115App.Models.Servizi.CQRS.Commands.GestioneUtenti.DeleteRuoliUtente; using SO115App.Models.Servizi.Infrastruttura.GestioneUtenti.GetUtenti; using SO115App.Models.Servizi.Infrastruttura.Notification.GestioneUtenti.GestioneRuoli; using System.Threading.Tasks; namespace SO115...
using Microsoft.AspNetCore.SignalR; using SO115App.Models.Servizi.CQRS.Commands.GestioneUtenti.DeleteRuoliUtente; using SO115App.Models.Servizi.Infrastruttura.GestioneUtenti.GetUtenti; using SO115App.Models.Servizi.Infrastruttura.Notification.GestioneUtenti.GestioneRuoli; using System.Threading.Tasks; namespace SO115...
Set lifetime scope of services to instance per request
using System.Web.Mvc; using Autofac; using Autofac.Integration.Mvc; using Oogstplanner.Models; using Oogstplanner.Data; using Oogstplanner.Services; namespace Oogstplanner.Web { public static class IocConfig { public static void RegisterDependencies() { var builder = new Containe...
using System.Web.Mvc; using Autofac; using Autofac.Integration.Mvc; using Oogstplanner.Models; using Oogstplanner.Data; using Oogstplanner.Services; namespace Oogstplanner.Web { public static class IocConfig { public static void RegisterDependencies() { var builder = new Containe...
Remove unnecessary fields/methods for lsp push diagnostics
// 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; using System.ComponentModel.Composition; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.Co...
// 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; using System.ComponentModel.Composition; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.Co...
Debug output on throttled throughput
using System; using System.Diagnostics; using System.Threading; namespace StreamDeckSharp.Internals { internal class Throttle { private readonly Stopwatch stopwatch = Stopwatch.StartNew(); private long sumBytesInWindow = 0; public double BytesPerSecondLimit { get; set; } = double.Posi...
using System; using System.Diagnostics; using System.Threading; namespace StreamDeckSharp.Internals { internal class Throttle { private readonly Stopwatch stopwatch = Stopwatch.StartNew(); private long sumBytesInWindow = 0; private int sleepCount = 0; public double BytesPerSec...
Fix CVC4 support (requires a new version that supports the reset command).
using System; using Symbooglix.Solver; namespace Symbooglix { namespace Solver { public class CVC4SMTLIBSolver : SimpleSMTLIBSolver { SMTLIBQueryPrinter.Logic LogicToUse = SMTLIBQueryPrinter.Logic.ALL_SUPPORTED; // Non standard public CVC4SMTLIBSolver(bool useNamedAttri...
using System; using Symbooglix.Solver; namespace Symbooglix { namespace Solver { public class CVC4SMTLIBSolver : SimpleSMTLIBSolver { SMTLIBQueryPrinter.Logic LogicToUse = SMTLIBQueryPrinter.Logic.ALL_SUPPORTED; // Non standard public CVC4SMTLIBSolver(bool useNamedAttri...
Remove unused code and updated directory location.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Cipher { class Utility { public static string directory = @"c:\code\cypher_files"; /// <summary> /// Allows user to choose to displ...
using System; using System.IO; namespace Cipher { class Utility { public static string directory = "/Users/emiranda/Documents/code/c#/cipher_files/"; /// <summary> /// Allows user to choose to display the password on the screen as is being typed. /// </summary> ...
Add comment for claims transform
// 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.Security.Claims; using System.Threading.Tasks; namespace Microsoft.AspNetCore.Authentication { /// <summary> /// Used by the <see ...
// 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.Security.Claims; using System.Threading.Tasks; namespace Microsoft.AspNetCore.Authentication { /// <summary> /// Used by the <see ...
Handle Invalid format for Upgrade check
using System.Net.Http; using System.Net.Http.Formatting; using System.Threading.Tasks; using Semver; using Umbraco.Core.Models; namespace Umbraco.Core.Persistence.Repositories.Implement { internal class UpgradeCheckRepository : IUpgradeCheckRepository { private static HttpClient _httpClient; p...
using System.Net.Http; using System.Net.Http.Formatting; using System.Threading.Tasks; using Semver; using Umbraco.Core.Models; namespace Umbraco.Core.Persistence.Repositories.Implement { internal class UpgradeCheckRepository : IUpgradeCheckRepository { private static HttpClient _httpClient; p...
Remove class variable declaration for UINavigationController
using System; using System.Collections.Generic; using System.Linq; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace Hello_MultiScreen_iPhone { [Register ("AppDelegate")] public partial class AppDelegate : UIApplicationDelegate { //---- declarations UIWindow window; UINavigationController rootNavig...
using System; using System.Collections.Generic; using System.Linq; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace Hello_MultiScreen_iPhone { [Register ("AppDelegate")] public partial class AppDelegate : UIApplicationDelegate { //---- declarations UIWindow window; // This method is invoked whe...
Remove tracing from the unifier
using LogicalShift.Reason.Api; using LogicalShift.Reason.Unification; using System; using System.Collections.Generic; namespace LogicalShift.Reason { /// <summary> /// Helper methods for performing unification /// </summary> public static class BasicUnification { /// <summary> /// ...
using LogicalShift.Reason.Api; using LogicalShift.Reason.Unification; using System; using System.Collections.Generic; namespace LogicalShift.Reason { /// <summary> /// Helper methods for performing unification /// </summary> public static class BasicUnification { /// <summary> /// ...
Update bridge to use new interface
using RGiesecke.DllExport; using System; using System.Collections.Generic; using System.Runtime.InteropServices; using TGS.Interface; using TGS.Interface.Components; namespace TGS.Interface.Bridge { /// <summary> /// Holds the proc that DD calls to access <see cref="ITGInterop"/> /// </summary> public static class...
using RGiesecke.DllExport; using System; using System.Collections.Generic; using System.Runtime.InteropServices; namespace TGS.Interface.Bridge { /// <summary> /// Holds the proc that DD calls to access <see cref="ITGInterop"/> /// </summary> public static class DreamDaemonBridge { /// <summary> /// The proc ...
Add POST REDIRECT GET Pattern to controller
using System.Linq; using Microsoft.AspNetCore.Mvc; using OdeToFood.Entities; using OdeToFood.Services; using OdeToFood.ViewModels; namespace OdeToFood.Controllers { public class HomeController : Controller { private IRestaurantData _restaurantData; private IGreeter _greeter; public Ho...
using Microsoft.AspNetCore.Mvc; using OdeToFood.Entities; using OdeToFood.Services; using OdeToFood.ViewModels; namespace OdeToFood.Controllers { public class HomeController : Controller { private IRestaurantData _restaurantData; private IGreeter _greeter; public HomeController(IResta...
Fix a typo in the NodaTime.Calendars namespace summary.
#region Copyright and license information // Copyright 2001-2009 Stephen Colebourne // Copyright 2009-2011 Jon Skeet // // 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 // // h...
#region Copyright and license information // Copyright 2001-2009 Stephen Colebourne // Copyright 2009-2011 Jon Skeet // // 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 // // h...
Update cake script to csproj
var configuration = Argument("configuration", "Debug"); Task("Clean") .Does(() => { CleanDirectory("./artifacts/"); }); Task("Restore") .Does(() => { DotNetCoreRestore(); }); Task("Build") .Does(() => { DotNetCoreBuild("./src/**/project.json", new DotNetCoreBuildSettings { Configuration = co...
var configuration = Argument("configuration", "Debug"); Task("Clean") .Does(() => { CleanDirectory("./artifacts/"); }); Task("Restore") .Does(() => { DotNetCoreRestore(); }); Task("Build") .Does(() => { DotNetCoreBuild("./src/**/*.csproj", new DotNetCoreBuildSettings { Configuration = config...
Update assembly version of Types.dll to 3.7
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Outercurve Foundation")] [assembly: AssemblyProduct("NuGet Package Explorer")] [assembly: AssemblyCopyright("\x00a9 Outercurve Foundation. All rights reserved.")] [assembly: AssemblyTitle("NuGetPackageExplorer.Types")] [...
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Outercurve Foundation")] [assembly: AssemblyProduct("NuGet Package Explorer")] [assembly: AssemblyCopyright("\x00a9 Outercurve Foundation. All rights reserved.")] [assembly: AssemblyTitle("NuGetPackageExplorer.Types")] [...
Change test back to using a string builder
using System.IO; using System.Text; using CSF.Screenplay.Reporting.Tests; using CSF.Screenplay.Reporting.Tests.Autofixture; using CSF.Screenplay.ReportModel; using NUnit.Framework; namespace CSF.Screenplay.Reporting.Tests { [TestFixture] public class JsonReportRendererTests { [Test,AutoMoqData] public v...
using System.IO; using System.Text; using CSF.Screenplay.Reporting.Tests; using CSF.Screenplay.Reporting.Tests.Autofixture; using CSF.Screenplay.ReportModel; using NUnit.Framework; namespace CSF.Screenplay.Reporting.Tests { [TestFixture] public class JsonReportRendererTests { [Test,AutoMoqData] public v...
Fix number of messages retrieved. Used to be n-1
using System; using System.Collections.Generic; using System.Text; using RabbitMQ.Client.Exceptions; namespace EasyNetQ.Hosepipe { public interface IQueueRetreival { IEnumerable<HosepipeMessage> GetMessagesFromQueue(QueueParameters parameters); } public class QueueRetreival : IQueueRetreival ...
using System; using System.Collections.Generic; using System.Text; using RabbitMQ.Client.Exceptions; namespace EasyNetQ.Hosepipe { public interface IQueueRetreival { IEnumerable<HosepipeMessage> GetMessagesFromQueue(QueueParameters parameters); } public class QueueRetreival : IQueueRetreival ...
Change the default value of the parameter initialization method.
using System; using System.Linq.Expressions; using Abp.Timing; using JetBrains.Annotations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Abp.EntityFrameworkCore.ValueConverters { public class AbpDateTimeValueConverter : ValueConverter<DateTime?, DateTime?> { public AbpDateTim...
using System; using System.Linq.Expressions; using Abp.Timing; using JetBrains.Annotations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Abp.EntityFrameworkCore.ValueConverters { public class AbpDateTimeValueConverter : ValueConverter<DateTime?, DateTime?> { public AbpDateTim...
Change the assembly version to "base"
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
Fix sorting and searching on table
@model IList<User> @{ ViewData["Title"] = "List Non Admin Users"; } <div class="col"> <table id="table"> <thead> <tr> <th></th> <th>Name</th> <th>Email</th> <th>Client Id</th> <th>Phone</th> </tr> </thead> <tbody> @foreach (var user in Model) { ...
@model IList<User> @{ ViewData["Title"] = "List Non Admin Users"; } <div class="col"> <table id="table"> <thead> <tr> <th></th> <th>Name</th> <th>Email</th> <th>Client Id</th> <th>Phone</th> </tr> </thead> <tbody> @foreach (var user in Model) { ...
Set the document language to English
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> @Styles.Render("~/Content/themes/base/css", "~/Content/css") @Scripts.Render("~/bundles/modernizr") </head> <body> @RenderBody() @Scripts.R...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> @Styles.Render("~/Content/themes/base/css", "~/Content/css") @Scripts.Render("~/bundles/modernizr") </head> <body> @RenderBody() @Scripts.Ren...
Add doc for what happens when getting clipboard text fails (SDL)
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Runtime.InteropServices; namespace osu.Framework.Platform.Linux.Sdl { public class SdlClipboard : Clipboard { priva...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Runtime.InteropServices; namespace osu.Framework.Platform.Linux.Sdl { public class SdlClipboard : Clipboard { priva...
Optimize query for server time. (not throwing exception)
using Hangfire.Mongo.Database; using MongoDB.Driver; using System; using Hangfire.Mongo.Helpers; using MongoDB.Bson; namespace Hangfire.Mongo.MongoUtils { /// <summary> /// Helper utilities to work with Mongo database /// </summary> public static class MongoExtensions { /// <s...
using Hangfire.Mongo.Database; using MongoDB.Driver; using System; using System.Collections.Generic; using Hangfire.Mongo.Helpers; using MongoDB.Bson; namespace Hangfire.Mongo.MongoUtils { /// <summary> /// Helper utilities to work with Mongo database /// </summary> public static class Mon...
Fix the using. Sometimes atom can be...
namespace Nilgiri.Examples { using Xunit; using Nilgiri.Tests.Common; using static Nilgiri.ExpectStyle; public partial class ExampleOf_Should { public class Not_Be_Ok { [Fact] public void Int32() { _(0).Should.Not.Be.Ok(); _(() => 0).Should.Not.Be.Ok(); } ...
namespace Nilgiri.Examples { using Xunit; using Nilgiri.Tests.Common; using static Nilgiri.ShouldStyle; public partial class ExampleOf_Should { public class Not_Be_Ok { [Fact] public void Int32() { _(0).Should.Not.Be.Ok(); _(() => 0).Should.Not.Be.Ok(); } ...
Use the new Delete command support in CslaDataProvider.
using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; usin...
using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; usin...
Implement RouteData resolvement while in wcf context
namespace nuserv.Utility { using System.Net.Http; using System.Web; using System.Web.Http.Routing; public class HttpRouteDataResolver : IHttpRouteDataResolver { #region Public Methods and Operators public IHttpRouteData Resolve() { if (HttpContext.Current != nu...
namespace nuserv.Utility { #region Usings using System; using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Web; using System.Web.Http.Routing; #endregion public class HttpRouteDataResolver : IHttpRouteDataResolver { #region Public ...
Make sure to only invoke defaults once
namespace NServiceBus { using Settings; using Features; using Persistence; using Persistence.Sql; /// <summary> /// The <see cref="PersistenceDefinition"/> for the SQL Persistence. /// </summary> public class SqlPersistence : PersistenceDefinition { /// <summary> //...
namespace NServiceBus { using Settings; using Features; using Persistence; using Persistence.Sql; /// <summary> /// The <see cref="PersistenceDefinition"/> for the SQL Persistence. /// </summary> public class SqlPersistence : PersistenceDefinition { /// <summary> //...
Change order of update operation in RecordRun
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Caliburn.Micro; using ExpressRunner.Api; namespace ExpressRunner { public class TestItem : PropertyChangedBase, IRunnableTest { public string Name { get { retur...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Caliburn.Micro; using ExpressRunner.Api; namespace ExpressRunner { public class TestItem : PropertyChangedBase, IRunnableTest { public string Name { get { retur...
Optimize the detection of IDisposable test classes. Array.Contains performs fewer allocations than the LINQ Any extension method.
namespace Fixie.Execution { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; class MethodDiscoverer { readonly Filter filter; readonly IReadOnlyList<Func<MethodInfo, bool>> testMethodConditions; public MethodDiscoverer(Filter ...
namespace Fixie.Execution { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; class MethodDiscoverer { readonly Filter filter; readonly IReadOnlyList<Func<MethodInfo, bool>> testMethodConditions; public MethodDiscoverer(Filter ...
Add parent and child app skeleton
//----------------------------------------------------------------------- // <copyright file="Program.cs" company="Brian Rogers"> // Copyright (c) Brian Rogers. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace AlertSample { using Syst...
//----------------------------------------------------------------------- // <copyright file="Program.cs" company="Brian Rogers"> // Copyright (c) Brian Rogers. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace AlertSample { using Syst...
Add blocking statement to ensure service remains alive
using System.ServiceModel; namespace TfsHipChat { class Program { static void Main() { using (var host = new ServiceHost(typeof(CheckinEventService))) { host.Open(); } } } }
using System; using System.ServiceModel; namespace TfsHipChat { class Program { static void Main() { using (var host = new ServiceHost(typeof(CheckinEventService))) { host.Open(); Console.WriteLine("TfsHipChat started!"); ...
Address ProcessStartInfo envvar case sensitivite issue
using System.Diagnostics; namespace Cake.Core.Polyfill { internal static class ProcessHelper { public static void SetEnvironmentVariable(ProcessStartInfo info, string key, string value) { #if NETCORE info.Environment[key] = value; #else info.EnvironmentVariables[key] = ...
using System; using System.Diagnostics; using System.Linq; namespace Cake.Core.Polyfill { internal static class ProcessHelper { public static void SetEnvironmentVariable(ProcessStartInfo info, string key, string value) { #if NETCORE var envKey = info.Environment.Keys.FirstOrDefault...
Set initial page to LoginPage
using BlueMonkey.ExpenceServices; using BlueMonkey.ExpenceServices.Local; using BlueMonkey.Model; using Prism.Unity; using BlueMonkey.Views; using Xamarin.Forms; using Microsoft.Practices.Unity; namespace BlueMonkey { public partial class App : PrismApplication { public App(IPlatformInitializer initia...
using BlueMonkey.ExpenceServices; using BlueMonkey.ExpenceServices.Local; using BlueMonkey.Model; using Prism.Unity; using BlueMonkey.Views; using Xamarin.Forms; using Microsoft.Practices.Unity; namespace BlueMonkey { public partial class App : PrismApplication { public App(IPlatformInitializer initia...
Add comment to backwards compat alias
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
Check if the workitem if a jira issue, before logging time.
using Atlassian.Jira; using TicketTimer.Core.Infrastructure; using TicketTimer.Jira.Extensions; namespace TicketTimer.Jira.Services { public class DefaultJiraService : JiraService { private readonly WorkItemStore _workItemStore; // TODO Insert correct parameters public Atlassian.Jira....
using Atlassian.Jira; using TicketTimer.Core.Infrastructure; using TicketTimer.Jira.Extensions; namespace TicketTimer.Jira.Services { public class DefaultJiraService : JiraService { private readonly WorkItemStore _workItemStore; // TODO Insert correct parameters public Atlassian.Jira....
Allow getting a user env variable
using System; using System.Threading.Tasks; using Sdl.Community.GroupShareKit.Clients; using Sdl.Community.GroupShareKit.Http; namespace Sdl.Community.GroupShareKit.Tests.Integration { public static class Helper { public static async Task<GroupShareClient> GetGroupShareClient() { ...
using System; using System.Threading.Tasks; using Sdl.Community.GroupShareKit.Clients; using Sdl.Community.GroupShareKit.Http; namespace Sdl.Community.GroupShareKit.Tests.Integration { public static class Helper { public static string GetVariable(string key) { // by default it get...
Add a string extension to validate Email
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace AnlabMvc.Extensions { public static class StringExtensions { public static string PaymentMethodDescription(this string value) { if (string.Equals(value, "uc", String...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace AnlabMvc.Extensions { public static class StringExtensions { const string emailRegex = @"^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9...
Allow indices to be stored for .net assemblies.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Composition; using System.IO; using Microsoft.CodeAnalysis.Host.Mef; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Serialization { ...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Composition; using System.IO; using Microsoft.CodeAnalysis.Host.Mef; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Serialization { ...
Increase timeout to prevent cibuild failures
namespace TestableFileSystem.Fakes.Tests.Specs.FakeWatcher { public abstract class WatcherSpecs { protected const int NotifyWaitTimeoutMilliseconds = 500; protected const int SleepTimeToEnsureOperationHasArrivedAtWatcherConsumerLoop = 250; // TODO: Add specs for File.Encrypt/Decrypt, F...
namespace TestableFileSystem.Fakes.Tests.Specs.FakeWatcher { public abstract class WatcherSpecs { protected const int NotifyWaitTimeoutMilliseconds = 1000; protected const int SleepTimeToEnsureOperationHasArrivedAtWatcherConsumerLoop = 250; // TODO: Add specs for File.Encrypt/Decrypt, ...
Change the wait example to a mock login page.
@{ ViewBag.Title = "ComboLoad"; } <div class="row"> <div class="col-md-12"> <h2>Example page for testing waits</h2> <p>The following combo starts with a placeholder option and after 3 seconds updates with a new item.</p> <select id="combo" > <option>Placeholder</option> ...
@{ ViewBag.Title = "ComboLoad"; } <div class="row"> <div class="col-md-12"> <h2>Example page for testing waits</h2> <p class="alert alert-danger" id="message" style="display:none"></p> <div> <div class="form-group"> <label for="username">Username</label> ...
Fix bug where repo name was used instead of organization in the links.
using Nito.AsyncEx; using Octokit; using System; using System.Collections.Generic; using System.Linq; namespace Alteridem.GetChanges { class Program { static int Main(string[] args) { var options = new Options(); if (!CommandLine.Parser.Default.ParseArguments(args, opti...
using Nito.AsyncEx; using Octokit; using System; using System.Collections.Generic; using System.Linq; namespace Alteridem.GetChanges { class Program { static int Main(string[] args) { var options = new Options(); if (!CommandLine.Parser.Default.ParseArguments(args, opti...
Add note about what your dod is
using Microsoft.AspNetCore.Mvc.Rendering; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace BatteryCommander.Web.Models { public class RequestAccessModel { public String Name { get; set; } public String Email { get; set; } [Display...
using Microsoft.AspNetCore.Mvc.Rendering; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace BatteryCommander.Web.Models { public class RequestAccessModel { public String Name { get; set; } public String Email { get; set; } [Display...
Write out raw HTML if SubMessage contains any
@using SFA.DAS.EAS.Web @using SFA.DAS.EAS.Web.Models @model dynamic @{ var viewModel = Model as OrchestratorResponse; } @if (!string.IsNullOrEmpty(viewModel?.FlashMessage?.Message) || !string.IsNullOrEmpty(viewModel?.FlashMessage?.SubMessage)) { <div class="grid-row"> <div class="column-full"> ...
@using SFA.DAS.EAS.Web @using SFA.DAS.EAS.Web.Models @model dynamic @{ var viewModel = Model as OrchestratorResponse; } @if (!string.IsNullOrEmpty(viewModel?.FlashMessage?.Message) || !string.IsNullOrEmpty(viewModel?.FlashMessage?.SubMessage)) { <div class="grid-row"> <div class="column-full"> ...
Rename types in test code.
namespace Gu.Roslyn.Asserts.Tests.Net472WithAttributes { using Gu.Roslyn.Asserts.Tests.Net472WithAttributes.AnalyzersAndFixes; using NUnit.Framework; public partial class RoslynAssertTests { [Test] public void ResetMetadataReferences() { CollectionAssert.IsNotEmpty(R...
namespace Gu.Roslyn.Asserts.Tests.Net472WithAttributes { using Gu.Roslyn.Asserts.Tests.Net472WithAttributes.AnalyzersAndFixes; using NUnit.Framework; public partial class RoslynAssertTests { [Test] public void ResetMetadataReferences() { CollectionAssert.IsNotEmpty(R...
Make the chat input only update when enter is not pressed
using LmpClient.Localization; using LmpClient.Systems.Chat; using UnityEngine; namespace LmpClient.Windows.Chat { public partial class ChatWindow { private static string _chatInputText = string.Empty; protected override void DrawWindowContent(int windowId) { var pressedEnt...
using LmpClient.Localization; using LmpClient.Systems.Chat; using UnityEngine; namespace LmpClient.Windows.Chat { public partial class ChatWindow { private static string _chatInputText = string.Empty; protected override void DrawWindowContent(int windowId) { var pressedEnt...
Add tooltips and extract inspector classes
using UnityEngine; using System.Collections; using UnityEditor; using OneDayGame; namespace DisableAfterTimeEx { [CustomEditor(typeof (DisableAfterTime))] public class DisableAfterTimeEditor : Editor { private SerializedProperty targetGO; private SerializedProperty delay; private vo...
using UnityEngine; using System.Collections; using UnityEditor; using OneDayGame; namespace DisableAfterTimeEx { [CustomEditor(typeof (DisableAfterTime))] public class DisableAfterTimeEditor : Editor { private SerializedProperty targetGO; private SerializedProperty delay; private vo...
Reset console color on exit.
using System; using System.Diagnostics; using EasyHook; namespace LxRunOffline { class Program { static void Main(string[] args) { int pId = 0; try { RemoteHooking.CreateAndInject(@"C:\Windows\System32\LxRun.exe", string.Join(" ", args), 0, "LxRunHook.dll", "LxRunHook.dll", out pId); } catch ...
using System; using System.Diagnostics; using EasyHook; namespace LxRunOffline { class Program { static void Main(string[] args) { int pId = 0; try { RemoteHooking.CreateAndInject(@"C:\Windows\System32\LxRun.exe", string.Join(" ", args), 0, "LxRunHook.dll", "LxRunHook.dll", out pId); } catch ...
Allow suppression of colour for specific glyphs.
using System; using System.Collections.Generic; using System.Text; using System.Drawing; namespace QuickFont { public sealed class QFontGlyph { /// <summary> /// Which texture page the glyph is on /// </summary> public int Page { get; private set; }...
using System; using System.Collections.Generic; using System.Text; using System.Drawing; namespace QuickFont { public sealed class QFontGlyph { /// <summary> /// Which texture page the glyph is on /// </summary> public int Page { get; private set; }...
Move config.Configure to BeforeStart which gives the overloads the chance to change it before it throw because it dose not found an configuration.
using System; using System.Reflection; using Rhino.ServiceBus.Config; using Rhino.ServiceBus.Impl; namespace Rhino.ServiceBus.Hosting { public abstract class AbstractBootStrapper : IDisposable { private AbstractRhinoServiceBusConfiguration config; public virtual Assembly Assembly ...
using System; using System.Reflection; using Rhino.ServiceBus.Config; using Rhino.ServiceBus.Impl; namespace Rhino.ServiceBus.Hosting { public abstract class AbstractBootStrapper : IDisposable { private AbstractRhinoServiceBusConfiguration config; public virtual Assembly Assembly ...
Fix url of api test
using Bloom.Api; using Bloom.Book; using Bloom.Collection; using NUnit.Framework; namespace BloomTests.web { [TestFixture] public class ReadersApiTests { private EnhancedImageServer _server; [SetUp] public void Setup() { var bookSelection = new BookSelection(); bookSelection.SelectBook(new Bloom.Book...
using Bloom.Api; using Bloom.Book; using Bloom.Collection; using NUnit.Framework; namespace BloomTests.web { [TestFixture] public class ReadersApiTests { private EnhancedImageServer _server; [SetUp] public void Setup() { var bookSelection = new BookSelection(); bookSelection.SelectBook(new Bloom.Book...
Use the more consistent `lastVertex`, with a comment
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Game.Rulesets.Catch.Objects; using osuTK; namespace osu.Game.Rulesets.Catch.Edit.Blueprints.Components { public class PlacementEditablePath :...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Game.Rulesets.Catch.Objects; using osuTK; namespace osu.Game.Rulesets.Catch.Edit.Blueprints.Components { public class PlacementEditablePath :...
Fix room password not being percent-encoded in join request
// 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.Net.Http; using osu.Framework.IO.Network; using osu.Game.Online.API; namespace osu.Game.Online.Rooms { public class JoinRoomRequest : APIRequest { ...
// 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.Net.Http; using osu.Framework.IO.Network; using osu.Game.Online.API; namespace osu.Game.Online.Rooms { public class JoinRoomRequest : APIRequest { ...
Disable document selection by id.
using System.ComponentModel.Composition; namespace Flood.Editor.Controls { class ToolClose : EditorTool, BarTool { [Import] DocumentManager docManager; public void OnSelect() { if (docManager.Current != null) docManager.Close(docManager.Current.Id);...
using System.ComponentModel.Composition; namespace Flood.Editor.Controls { class ToolClose : EditorTool, BarTool { [Import] DocumentManager docManager; public void OnSelect() { //if (docManager.Current != null) // docManager.Close(docManager.Current....
Add deleted and copied to the parsed statuses
using System; using System.Collections.Generic; using System.Threading.Tasks; using GitDataExplorer.Results.Commits; namespace GitDataExplorer.Results { class ListSimpleCommitsResult : IResult { public ExecutionResult ExecutionResult { get; private set; } public IList<SimpleCommitResult> Comm...
using System; using System.Collections.Generic; using System.Threading.Tasks; using GitDataExplorer.Results.Commits; namespace GitDataExplorer.Results { class ListSimpleCommitsResult : IResult { private char[] statusLetters = { 'M', 'A', 'R', 'C', 'D' }; public ExecutionResult ExecutionResult...
Add missing Nullable example
namespace Nilgiri.Examples { using Xunit; using Nilgiri.Tests.Common; using static Nilgiri.ShouldStyle; public partial class ExampleOf_Should { public class Not_Be_Ok { [Fact] public void Int32() { _(0).Should.Not.Be.Ok(); _(() => 0).Should.Not.Be.Ok(); } ...
namespace Nilgiri.Examples { using Xunit; using Nilgiri.Tests.Common; using static Nilgiri.ShouldStyle; public partial class ExampleOf_Should { public class Not_Be_Ok { [Fact] public void Int32() { _(0).Should.Not.Be.Ok(); _(() => 0).Should.Not.Be.Ok(); } ...
Change "Search" "Frame Padding" option default value
using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.Search { public class Settings : WidgetSettingsBase { public Settings() { Style.Width = 150; } [Category("General")] [DisplayName("URL Prefix")] ...
using System.ComponentModel; using System.Windows; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.Search { public class Settings : WidgetSettingsBase { public Settings() { Style.Width = 150; Style.FramePadding = new Thickness(0); } ...
Set continuation opcode for non-first frames in the writer
using System; using System.Threading; using System.Threading.Tasks; namespace wslib.Protocol.Writer { public class WsMessageWriter : IDisposable { private readonly MessageType messageType; private readonly Action onDispose; private readonly IWsMessageWriteStream stream; public ...
using System; using System.Threading; using System.Threading.Tasks; namespace wslib.Protocol.Writer { public class WsMessageWriter : IDisposable { private readonly MessageType messageType; private readonly Action onDispose; private readonly IWsMessageWriteStream stream; private ...
Use string instead of String.
using System; using System.Collections.Generic; using System.IO; namespace DupImage { /// <summary> /// Structure for containing image information and hash values. /// </summary> public class ImageStruct { /// <summary> /// Construct a new ImageStruct from FileInfo. /// </s...
using System; using System.Collections.Generic; using System.IO; namespace DupImage { /// <summary> /// Structure for containing image information and hash values. /// </summary> public class ImageStruct { /// <summary> /// Construct a new ImageStruct from FileInfo. /// </s...
Add Support for MysqlConnector 1 namespace changes
#region License // Copyright (c) 2007-2018, FluentMigrator Project // // 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 b...
#region License // Copyright (c) 2007-2018, FluentMigrator Project // // 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 b...
Use lowered transform value in hash computing
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; namespace RestImageResize.Security { public class HashGenerator { public string ComputeHash(string privateKey, int width, int height, ImageTransform transform) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; namespace RestImageResize.Security { public class HashGenerator { public string ComputeHash(string privateKey, int width, int height, ImageTransform transform) { ...
Improve form safe name regex
using System.Text.RegularExpressions; namespace FormEditor { public static class FieldHelper { private static readonly Regex FormSafeNameRegex = new Regex("[ -]", RegexOptions.Compiled); public static string FormSafeName(string name) { return FormSafeNameRegex.Replace(name ?? string.Empty, "_"); } } }
using System.Text.RegularExpressions; namespace FormEditor { public static class FieldHelper { private static readonly Regex FormSafeNameRegex = new Regex("[^a-zA-Z0-9_]", RegexOptions.Compiled); public static string FormSafeName(string name) { return FormSafeNameRegex.Replace(name ?? string.Empty, "_"); ...
Improve performance of puzzle 10
// Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; using System.Linq; /// <summary> /// A class representing the sol...
// Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; using System.Linq; /// <summary> /// A class representing the sol...
Fix a http request issues.
using System; using System.IO; using System.Net; using System.Text; using Wox.Plugin; namespace Wox.Infrastructure.Http { public class HttpRequest { public static string Get(string url, string encoding = "UTF8") { return Get(url, encoding, HttpProxy.Instance); } pr...
using System; using System.IO; using System.Net; using System.Text; using Wox.Plugin; namespace Wox.Infrastructure.Http { public class HttpRequest { public static string Get(string url, string encoding = "UTF-8") { return Get(url, encoding, HttpProxy.Instance); } p...
Make consistent and add a comment for clarification
@model OrderModifyModel @{ var submitMap = new Dictionary<string, string> {{"Request", "Create"}, {"Edit", "Save"}, {"Copy", "Save"}}; var submitText = submitMap[ViewBag.Title]; var submitTitle = ViewBag.Title == "Copy" ? "Save this order which was duplicated from an existing order" : string.E...
@model OrderModifyModel @{ var submitMap = new Dictionary<string, string> {{"Request", "Create"}, {"Edit", "Save"}, {"Copy", "Save"}}; var submitText = submitMap[ViewBag.Title]; var submitTitle = ViewBag.Title == "Copy" ? "Save this order which was duplicated from an existing order" : string.E...
Remove nameof operator because it caused a build error in AppHarbor
using System; using System.Web.Mvc; namespace Website.Security { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] public class EnforceHttpsAttribute : RequireHttpsAttribute { public override void OnAuthorization(AuthorizationContext filterContext) { if(filterContext == null) { throw...
using System; using System.Web.Mvc; namespace Website.Security { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] public class EnforceHttpsAttribute : RequireHttpsAttribute { public override void OnAuthorization(AuthorizationContext filterContext) { if(filterContext == null) { throw...
Change test settings default Redis Db
using System.Collections.Generic; using CacheSleeve.Tests.TestObjects; namespace CacheSleeve.Tests { public static class TestSettings { public static string RedisHost = "localhost"; public static int RedisPort = 6379; public static string RedisPassword = null; public static int...
using System.Collections.Generic; using CacheSleeve.Tests.TestObjects; namespace CacheSleeve.Tests { public static class TestSettings { public static string RedisHost = "localhost"; public static int RedisPort = 6379; public static string RedisPassword = null; public static int...
Add configuration options for HMRC to use MI Feed
namespace SFA.DAS.EAS.Domain.Configuration { public class HmrcConfiguration { public string BaseUrl { get; set; } public string ClientId { get; set; } public string Scope { get; set; } public string ClientSecret { get; set; } public string ServerToken { get; set; } ...
namespace SFA.DAS.EAS.Domain.Configuration { public class HmrcConfiguration { public string BaseUrl { get; set; } public string ClientId { get; set; } public string Scope { get; set; } public string ClientSecret { get; set; } public string ServerToken { get; set; } ...
Add group support for NoVehiclesUsage
using System.Collections.Generic; using Rocket.Unturned.Player; using RocketRegions.Util; using SDG.Unturned; using UnityEngine; namespace RocketRegions.Model.Flag.Impl { public class NoVehiclesUsageFlag : BoolFlag { public override string Description => "Allow/Disallow usage of vehicles in region"; ...
using System.Collections.Generic; using Rocket.Unturned.Player; using RocketRegions.Util; using SDG.Unturned; using UnityEngine; namespace RocketRegions.Model.Flag.Impl { public class NoVehiclesUsageFlag : BoolFlag { public override string Description => "Allow/Disallow usage of vehicles in region"; ...