Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Align assembly version with package version
using System.Resources; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [ass...
using System.Resources; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [ass...
Remove unused using embedded in reverted changes
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Bindables; using osu.Framework.Graphics.UserInterface; using osu.Game.Beatmaps; using osu.Game.Rulesets; using System.Linq; using osu.Framework.Alloc...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Bindables; using osu.Framework.Graphics.UserInterface; using osu.Game.Beatmaps; using osu.Game.Rulesets; using System.Linq; namespace osu.Game.Overl...
Add TextTags properties to request data
using System.Collections.Generic; using System.IO; using System.Linq; namespace HelloSignNet.Core { public class HSSendSignatureRequestData { public string Title { get; set; } public string Subject { get; set; } public string Message { get; set; } public string SigningRedirectUr...
using System.Collections.Generic; using System.IO; using System.Linq; namespace HelloSignNet.Core { public class HSSendSignatureRequestData { public string Title { get; set; } public string Subject { get; set; } public string Message { get; set; } public string SigningRedirectUr...
Add item index for multiple items with same name
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace Downlitor { public partial class ItemInfoControl : UserControl { public ItemInfoControl(DlcItem dlc) ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace Downlitor { public partial class ItemInfoControl : UserControl { public ItemInfoControl(DlcItem dlc) ...
Add support for compound index keys to newtonsoft
using RethinkDb.DatumConverters; namespace RethinkDb.Newtonsoft.Configuration { public class NewtonSerializer : AggregateDatumConverterFactory { public NewtonSerializer() : base( PrimitiveDatumConverterFactory.Instance, TupleDatumConverterFactory.Instance, Anonymous...
using RethinkDb.DatumConverters; namespace RethinkDb.Newtonsoft.Configuration { public class NewtonSerializer : AggregateDatumConverterFactory { public NewtonSerializer() : base( PrimitiveDatumConverterFactory.Instance, TupleDatumConverterFactory.Instance, Anonymous...
Update usage notes when crayon.exe is invoked without arguments.
using Common; using System; namespace Crayon { internal class UsageDisplayWorker { private static readonly string USAGE = Util.JoinLines( "Usage:", " crayon BUILD-FILE -target BUILD-TARGET-NAME [OPTIONS...]", "", "Flags:", "", ...
using Common; using System; namespace Crayon { internal class UsageDisplayWorker { private static readonly string USAGE = Util.JoinLines( "Crayon version " + VersionInfo.VersionString, "", "To export:", " crayon BUILD-FILE -target BUILD-TARGE...
Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
using System; using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Autofac.Integration.SignalR")] [assembly: AssemblyDescription("Autofac ASP.NET SignalR Integration")] [assembly: ComVisible(false)] [assembly: CLSCompliant(false)]
using System; using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Autofac.Integration.SignalR")] [assembly: ComVisible(false)] [assembly: CLSCompliant(false)]
Fix test event ordering to correctly test fail case
// 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.Threading; using NUnit.Framework; using osu.Framework.Audio; namespace osu.Framework.Tests.Audio { [TestFixture] public class AudioCollectionManage...
// 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.Threading; using NUnit.Framework; using osu.Framework.Audio; namespace osu.Framework.Tests.Audio { [TestFixture] public class AudioCollectionManage...
Add test showing all mod icons for reference
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System.Linq; using NUnit.Framework; using osu.Game.Rulesets.Osu; using osu.Game.Rulesets.Osu.Mods; using osu.Game.Rulesets.UI; namespace osu.Gam...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Rulesets.Osu; using osu.Game.Rulesets.Osu....
Verify that an ApplicationConfigurationException is thrown if no configuration file exists
using System.IO; using System.Text; using Moq; using Xunit; namespace AppHarbor.Tests { public class ApplicationConfigurationTest { [Fact] public void ShouldReturnApplicationIdIfConfigurationFileExists() { var fileSystem = new Mock<IFileSystem>(); var applicationName = "bar"; var configurationFile =...
using System.IO; using System.Text; using Moq; using Xunit; namespace AppHarbor.Tests { public class ApplicationConfigurationTest { public static string ConfigurationFile = Path.GetFullPath(".appharbor"); [Fact] public void ShouldReturnApplicationIdIfConfigurationFileExists() { var fileSystem = new Mock...
Test IsNearExpiracy while converted ToLocalTime
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Create.CSP.GitHub.Reporting.Entities { public class AuthorizationToken { /// <summary> /// Captures when the token expires /// </summary> public DateTim...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Create.CSP.GitHub.Reporting.Entities { public class AuthorizationToken { /// <summary> /// Captures when the token expires /// </summary> public DateTim...
Add shared project for models for client-server communication.
using System.Threading.Tasks; using Microsoft.AspNet.SignalR; using System.Collections.Generic; using WaveDev.ModelR.Models; using System; using System.Globalization; namespace WaveDev.ModelR.Server { public class ModelRHub : Hub { #region Private Fields private IList<SceneInfoModel> _scenes;...
using System.Threading.Tasks; using Microsoft.AspNet.SignalR; using System.Collections.Generic; using System; using System.Globalization; using WaveDev.ModelR.Shared.Models; namespace WaveDev.ModelR.Server { public class ModelRHub : Hub { #region Private Fields private IList<SceneInfoModel> _...
Make vision and locomotion required on humanoids
using Alensia.Core.Locomotion; using Alensia.Core.Sensor; using UnityEngine; using UnityEngine.Assertions; using Zenject; namespace Alensia.Core.Character { public class Humanoid : Character<IBinocularVision, ILeggedLocomotion>, IHumanoid { public override Transform Head { get; } public overr...
using Alensia.Core.Locomotion; using Alensia.Core.Sensor; using UnityEngine; using UnityEngine.Assertions; using Zenject; namespace Alensia.Core.Character { public class Humanoid : Character<IBinocularVision, ILeggedLocomotion>, IHumanoid { public override Transform Head { get; } public overr...
Build script now creates individual zip file packages to align with the NuGet packages and semantic versioning.
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18033 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18033 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
Add toggle play by keyboard input
using UniRx; using UnityEngine; using UnityEngine.UI; public class TogglePlayPresenter : MonoBehaviour { [SerializeField] Button togglePlayButton; [SerializeField] Sprite iconPlay; [SerializeField] Sprite iconPause; NotesEditorModel model; void Awake() { model = NotesEdit...
using UniRx; using UniRx.Triggers; using UnityEngine; using UnityEngine.UI; public class TogglePlayPresenter : MonoBehaviour { [SerializeField] Button togglePlayButton; [SerializeField] Sprite iconPlay; [SerializeField] Sprite iconPause; NotesEditorModel model; void Awake() { ...
Remove unused `Unavailable` connection state
namespace PusherClient { public enum ConnectionState { Initialized, Connecting, Connected, Unavailable, Disconnected, WaitingToReconnect } }
namespace PusherClient { public enum ConnectionState { Initialized, Connecting, Connected, Disconnected, WaitingToReconnect } }
Exclude Seadragon.config.js from combining because it does substitution.
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Security; using System.Security.Permissions; using System.Web.UI; using AjaxControlToolkit; // Dependency Attribute for assemblies [assembly: DependencyAttribute("Syste...
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Security; using System.Security.Permissions; using System.Web.UI; using AjaxControlToolkit; // Dependency Attribute for assemblies [assembly: DependencyAttribute("Syste...
Use GUID for component name
using System; using System.Threading; using WebScriptHook.Framework; using WebScriptHook.Framework.BuiltinPlugins; using WebScriptHook.Terminal.Plugins; namespace WebScriptHook.Terminal { class Program { static WebScriptHookComponent wshComponent; static void Main(string[] args) { ...
using System; using System.Threading; using WebScriptHook.Framework; using WebScriptHook.Framework.BuiltinPlugins; using WebScriptHook.Terminal.Plugins; namespace WebScriptHook.Terminal { class Program { static WebScriptHookComponent wshComponent; static void Main(string[] args) { ...
Add primary key to completed steps db table
using Dapper; using RapidCore.Migration; using RapidCore.PostgreSql.Internal; using System.Threading.Tasks; namespace RapidCore.PostgreSql.Migration.Internal { public static class PostgreSqlSchemaCreator { public static async Task CreateSchemaIfNotExists(IMigrationContext context) { ...
using Dapper; using RapidCore.Migration; using RapidCore.PostgreSql.Internal; using System.Threading.Tasks; namespace RapidCore.PostgreSql.Migration.Internal { public static class PostgreSqlSchemaCreator { public static async Task CreateSchemaIfNotExists(IMigrationContext context) { ...
Set default value to PropertyMetadata
using System.Windows; using System.Windows.Controls; namespace BindingTest.Control { public partial class CheckboxControl : UserControl { public bool Checked { get { return (bool)GetValue(CheckboxProperty); } set { SetValue(Checkb...
using System.Windows; using System.Windows.Controls; namespace BindingTest.Control { public partial class CheckboxControl : UserControl { public bool Checked { get { return (bool)GetValue(CheckboxProperty); } set { SetValue(Checkb...
Set today as default value
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; namespace TribalWars.Controls { /// <summary> /// Adds addings time functionality to the TimeConverterControl /// </summary> public partia...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; namespace TribalWars.Controls { /// <summary> /// Adds addings time functionality to the TimeConverterControl /// </summary> public partia...
Make stacked hitcircles more visible when using default skin
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osuTK; using osuTK.Graphics; using osu.Framework.Graphics.Shapes; namespace osu.Game.Ruleset...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osuTK; using osuTK.Graphics; using osu.Framework.Graphics.Shapes; namespace osu.Game.Ruleset...
Make Cake Bakery resolution case insensitive
using System.IO; using System.Linq; using OmniSharp.Cake.Configuration; namespace OmniSharp.Cake.Services { internal static class ScriptGenerationToolResolver { public static string GetExecutablePath(string rootPath, ICakeConfiguration configuration) { var toolPath = GetToolPath(ro...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using OmniSharp.Cake.Configuration; namespace OmniSharp.Cake.Services { internal static class ScriptGenerationToolResolver { public static string GetExecutablePath(string rootPath,...
Add jQuery mobile loader widget
using System; using PortableRazor; namespace PortableCongress { public class PoliticianController { IHybridWebView webView; IDataAccess dataAccess; public PoliticianController (IHybridWebView webView, IDataAccess dataAccess) { this.webView = webView; this.dataAccess = dataAccess; } public voi...
using System; using PortableRazor; namespace PortableCongress { public class PoliticianController { IHybridWebView webView; IDataAccess dataAccess; public PoliticianController (IHybridWebView webView, IDataAccess dataAccess) { this.webView = webView; this.dataAccess = dataAccess; } public voi...
Fix naming of MonoMac vs MonoMac 64-bit platform
using System.Reflection; #if XAMMAC2 [assembly: AssemblyTitle("Eto.Forms - Xamarin.Mac v2.0 Platform")] [assembly: AssemblyDescription("OS X Platform for the Eto.Forms UI Framework using Xamarin.Mac v2.0")] #elif XAMMAC [assembly: AssemblyTitle("Eto.Forms - Xamarin.Mac Platform")] [assembly: AssemblyDescription("OS X ...
using System.Reflection; #if XAMMAC2 [assembly: AssemblyTitle("Eto.Forms - Xamarin.Mac v2.0 Platform")] [assembly: AssemblyDescription("OS X Platform for the Eto.Forms UI Framework using Xamarin.Mac v2.0")] #elif XAMMAC [assembly: AssemblyTitle("Eto.Forms - Xamarin.Mac Platform")] [assembly: AssemblyDescription("OS X ...
Fix issue of wrong counting characters if a text contains newline
using System.Linq; using System.Text.RegularExpressions; namespace Inscribe.Text { public static class TweetTextCounter { public static int Count(string input) { // URL is MAX 20 Chars (if URL has HTTPS scheme, URL is MAX 21 Chars) int prevIndex = 0; int tot...
using System.Linq; using System.Text.RegularExpressions; namespace Inscribe.Text { public static class TweetTextCounter { public static int Count(string input) { // Input maybe contains CRLF as a new line, but twitter converts CRLF to LF. // It means CRLF should be trea...
Fix bug by removing duplicate code
using SFA.DAS.Authorization; using System; using System.Linq; using System.Linq.Expressions; using System.Web.Mvc; namespace SFA.DAS.EmployerAccounts.Web.Extensions { public static class HtmlHelperExtensions { public static MvcHtmlString CommaSeperatedAddressToHtml(this HtmlHelper htmlHelper, string c...
using SFA.DAS.Authorization; using System; using System.Linq; using System.Web.Mvc; namespace SFA.DAS.EmployerAccounts.Web.Extensions { public static class HtmlHelperExtensions { public static MvcHtmlString CommaSeperatedAddressToHtml(this HtmlHelper htmlHelper, string commaSeperatedAddress) {...
Update GetServiceDirectory() API to use EndpointConfig
/* Empiria Extensions Framework ****************************************************************************** * * * Module : Empiria Web Api Component : Base controllers ...
/* Empiria Extensions Framework ****************************************************************************** * * * Module : Empiria Web Api Component : Base controllers ...
Allow to specify font in the label constructor
using System.Drawing; using MonoHaven.Graphics; namespace MonoHaven.UI { public class Label : Widget { private string text; private readonly TextBlock textBlock; public Label(Widget parent) : base(parent) { textBlock = new TextBlock(Fonts.Default); } public string Text { get { return text; ...
using System.Drawing; using MonoHaven.Graphics; namespace MonoHaven.UI { public class Label : Widget { private string text; private readonly TextBlock textBlock; public Label(Widget parent, SpriteFont font) : base(parent) { textBlock = new TextBlock(font); textBlock.TextColor = Color.White; SetSiz...
Refactor process to remove FormatException from trace log
using System; using Arkivverket.Arkade.Tests; namespace Arkivverket.Arkade.Core.Addml.Processes { public class AnalyseFindMinMaxValues : IAddmlProcess { public const string Name = "Analyse_FindMinMaxValues"; private readonly TestRun _testRun; private int? _minValue; private int...
using System; using Arkivverket.Arkade.Tests; namespace Arkivverket.Arkade.Core.Addml.Processes { public class AnalyseFindMinMaxValues : IAddmlProcess { public const string Name = "Analyse_FindMinMaxValues"; private readonly TestRun _testRun; private int? _minValue; private int...
Fix styling for users download page
@model Orc.CheckForUpdate.Web.Models.VersionsViewModel @{ ViewBag.Title = "Index"; } @section additionalstyles { @Styles.Render("~/Content/css/downloads") } <h2>Releases</h2> <div> @{ Html.RenderPartial("ReleasesList", Model); } </div>
@model Orc.CheckForUpdate.Web.Models.VersionsViewModel @{ ViewBag.Title = "Index"; } @section additionalstyles { @Styles.Render("~/Content/css/releases") } <h2>Releases</h2> <div> @{ Html.RenderPartial("ReleasesList", Model); } </div>
Set Client Provided Name when creating connection
using EasyRabbitMQ.Configuration; using RabbitMQ.Client; namespace EasyRabbitMQ.Infrastructure { internal class ConnectionFactory : IConnectionFactory { private readonly IConfiguration _configuration; public ConnectionFactory(IConfiguration configuration) { _configuration ...
using EasyRabbitMQ.Configuration; using RabbitMQ.Client; namespace EasyRabbitMQ.Infrastructure { internal class ConnectionFactory : IConnectionFactory { private readonly IConfiguration _configuration; private const string ClientProvidedName = "EasyRabbitMQ"; public ConnectionFactory(I...
Fix weird english in test ignore 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 NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Configuration; using osu.Framework.Platform; namespace osu.Fram...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Configuration; using osu.Framework.Platform; namespace osu.Fram...
Fix - forgot to commit version change to 0.2.1.
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Pi...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Pi...
Reset Y postiions of TabItems before performing layout.
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Collections.Generic; using System.Linq; using osu.Framework.Graphics.UserInterface.Tab; using OpenTK; namespace osu.Frame...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Collections.Generic; using System.Linq; using osu.Framework.Graphics.UserInterface.Tab; using OpenTK; namespace osu.Frame...
Check if credit card payment received
@using Microsoft.Web.Mvc @model CRP.Controllers.ViewModels.PaymentConfirmationViewModel @{ ViewBag.Title = "Confirmation"; } <div class="boundary"> <h2>Registration Confirmation</h2> <p>You have successfully registered for the following event:</p> <div> <label>Item: </label> @Model.Tr...
@using Microsoft.Web.Mvc @model CRP.Controllers.ViewModels.PaymentConfirmationViewModel @{ ViewBag.Title = "Confirmation"; } <div class="boundary"> <h2>Registration Confirmation</h2> <p>You have successfully registered for the following event:</p> <div> <label>Item: </label> @Model.Tr...
Fix Stylecop failure - long line
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.AspNet.Mvc.OptionDescriptors; using Microsoft.Framework.DependencyInje...
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.AspNet.Mvc.OptionDescriptors; using Microsoft.Framework.DependencyInje...
Disable command debugging for now, and clean up.
#define DEBUG_COMMANDS //using UnityEditor; //using UnityEngine; //using System.Collections; using System.Diagnostics; public class ShellHelpers { public static Process StartProcess(string filename, string arguments) { #if DEBUG_COMMANDS UnityEngine.Debug.Log("Running: " + filename + " " + arguments); #endif ...
//define DEBUG_COMMANDS using System.Diagnostics; public class ShellHelpers { public static Process StartProcess(string filename, string arguments) { #if DEBUG_COMMANDS UnityEngine.Debug.Log("Running: " + filename + " " + arguments); #endif Process p = new Process(); p.StartInfo.Arguments = arguments; ...
Set OperationId via annotations in test project
using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; using Basic.Swagger; namespace Basic.Controllers { [SwaggerTag("Manipulate Carts to your heart's content", "http://www.tempuri.org")] public class SwaggerAnnotationsController { [HttpPost("/carts")] [SwaggerResponse(...
using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; using Basic.Swagger; namespace Basic.Controllers { [SwaggerTag("Manipulate Carts to your heart's content", "http://www.tempuri.org")] public class SwaggerAnnotationsController { [HttpPost("/carts")] [SwaggerResponse(...
Set nuget package version to 2.0.0
using System.Reflection; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("CakeMail.RestClient")] [assembly: AssemblyDescription("CakeMail.RestClient is a...
using System.Reflection; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("CakeMail.RestClient")] [assembly: AssemblyDescription("CakeMail.RestClient is a...
Add another unit test for an MSBuild project (currently failing)
using System.IO; using Microsoft.Extensions.Logging; using OmniSharp.MSBuild.ProjectFile; using TestUtility; using Xunit; using Xunit.Abstractions; namespace OmniSharp.MSBuild.Tests { public class ProjectFileInfoTests { private readonly TestAssets _testAssets; private readonly ILogger _logger;...
using System.IO; using Microsoft.Extensions.Logging; using OmniSharp.MSBuild.ProjectFile; using TestUtility; using Xunit; using Xunit.Abstractions; namespace OmniSharp.MSBuild.Tests { public class ProjectFileInfoTests { private readonly TestAssets _testAssets; private readonly ILogger _logger;...
Add a check for api keys in query parameters.
using jab.Attributes; using NSwag; using Xunit; using System.Linq; namespace jab { public class TestExample { [Theory, ParameterisedClassData(typeof(ApiOperations), "samples/example.json")] public void DeleteMethodsShouldNotTakeFormEncodedData( SwaggerService service, s...
using jab.Attributes; using NSwag; using Xunit; using System.Linq; namespace jab { public partial class TestExample { const string testDefinition = "samples/example.json"; [Theory, ParameterisedClassData(typeof(ApiOperations), testDefinition)] public void DeleteMethodsShouldNotTakeFor...
Add global keyboard shortcut listener
using System.Windows.Input; namespace clipman.Settings { public static class Keyboard { public static Key ClearTextboxKey = Key.Escape; } }
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Windows.Input; using System.Windows.Interop; namespace clipman.Settings { public static class Keyboard { public static Key ClearTextboxKey = Key.Escape; } public class KeyboardMonitor : IDisposa...
Fix test which relies on reflection over the code fixes assembly
// 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 { using System; using System.Collections.Generic; using System.Linq; using System.Reflect...
// 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 { using System; using System.Collections.Generic; using System.Linq; using System.Reflect...
Increase timeout for Timer tests
using System; using System.Threading; using Xunit; using Should; using Timer = SlackConnector.Connections.Monitoring.Timer; namespace SlackConnector.Tests.Unit.Connections.Monitoring { public class TimerTests { [Fact] public void should_run_task_at_least_5_times() { // give...
using System; using System.Threading; using Xunit; using Should; using Timer = SlackConnector.Connections.Monitoring.Timer; namespace SlackConnector.Tests.Unit.Connections.Monitoring { public class TimerTests { [Fact] public void should_run_task_at_least_5_times() { // give...
Fix REST API url in documentation
using System.Collections.Generic; using System.Linq; using TimeLog.Api.Core.Documentation.Models.RestDocumentationHelpers.Core; namespace TimeLog.Api.Core.Documentation.Models.RestDocumentationHelpers { public class RestMethodDoc { #region Variables public IReadOnlyList<RestResponse> Response...
using System.Collections.Generic; using System.Linq; using TimeLog.Api.Core.Documentation.Models.RestDocumentationHelpers.Core; namespace TimeLog.Api.Core.Documentation.Models.RestDocumentationHelpers { public class RestMethodDoc { #region Variables public IReadOnlyList<RestResponse> Response...
Mark the eight-byte-boundaries when dumping a message
using System; using System.Buffers; namespace Dbus { internal static class ExtensionMethods { public static void Dump(this ReadOnlySequence<byte> buffers) { foreach (var segment in buffers) { var buffer = segment.Span; dump(buffer); ...
using System; using System.Buffers; namespace Dbus { internal static class ExtensionMethods { public static void Dump(this ReadOnlySequence<byte> buffers) { var counter = 0; foreach (var segment in buffers) { var buffer = segment.Span; ...
Add access tests for all nullable types.
/* Copyright 2015 Realm Inc - All Rights Reserved * Proprietary and Confidential */ using System.IO; using NUnit.Framework; using Realms; namespace IntegrationTests.Shared { [TestFixture] public class AccessTests { protected string _databasePath; protected Realm _realm; [SetUp]...
/* Copyright 2015 Realm Inc - All Rights Reserved * Proprietary and Confidential */ using System.IO; using NUnit.Framework; using Realms; namespace IntegrationTests.Shared { [TestFixture] public class AccessTests { protected string _databasePath; protected Realm _realm; [SetUp]...
Remove redundant case from switch statement
using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation.Language; namespace Microsoft.PowerShell.EditorServices { internal class PesterDocumentSymbolProvider : DocumentSymbolProvider { protected override bool CanProvideFor(ScriptFile scriptFile) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation.Language; namespace Microsoft.PowerShell.EditorServices { internal class PesterDocumentSymbolProvider : DocumentSymbolProvider { protected override bool CanProvideFor(ScriptFile scriptFile) { ...
Set current directory when running as a service.
using System; using System.Collections.Generic; using System.Linq; using System.ServiceProcess; using System.Text; namespace SteamIrcBot { static class Program { /// <summary> /// The main entry point for the application. /// </summary> static void Main( string[] a...
using System; using System.Collections.Generic; using System.Linq; using System.ServiceProcess; using System.Text; using System.Reflection; using System.IO; namespace SteamIrcBot { static class Program { /// <summary> /// The main entry point for the application. /// </su...
Fix datetime json ext - lost one millisecond
using System; namespace MK.Ext { /// <summary> /// DateTime Json Extensions /// </summary> public static class DateTimeJsonExt { private static readonly DateTime D1970_01_01 = new DateTime(1970, 1, 1); public static string JsonValue(this DateTime d) { return "( new Date(" + System.Convert.ToInt64((d - D1...
using System; namespace MK.Ext { /// <summary> /// DateTime Json Extensions /// </summary> public static class DateTimeJsonExt { private static readonly DateTime D1970_01_01 = new DateTime(1970, 1, 1); public static string JsonValue(this DateTime d) { return "( new Date(" + ((d.Ticks - D1970_01_01.Ticks)...
Change the page title and h1.
@{ Layout = null; } <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap 101 Template</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Bootstrap --> <link href="assets/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" media="screen"> <!-- HTML5 Shim...
@{ Layout = null; } <!DOCTYPE html> <html lang="en"> <head> <title>Sweet Water Revolver</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Bootstrap --> <link href="assets/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" media="screen"> <!-- HTML5 Shim a...
Add mapping for all entities
using AutoMapper; using BusinessEntities; using BusinessEntities.Dictionaries; using DataModel; using DataModel.Dictionaries; namespace BLL.Mapping { public class AutomapperProfile : Profile { public AutomapperProfile() { CreateMap<Animal, AnimalEntity>(); CreateMap<Council, CouncilEntity>();...
using AutoMapper; using BusinessEntities; using BusinessEntities.Dictionaries; using DataModel; using DataModel.Dictionaries; namespace BLL.Mapping { public class AutomapperProfile : Profile { public AutomapperProfile() { CreateMap<Animal, AnimalEntity>(); CreateMap<Council, CouncilEntity>();...
Add Message if AvgKmL is null
@using CarFuel.Models @model Car <h2>@Model.Make (@Model.Model)</h2> <div class="well well-sm"> Average consumption is <strong>@(Model.AverageKmL?.ToString("n2"))</strong> km/L </div>
@using CarFuel.Models @model Car <h2>@Model.Make (@Model.Model)</h2> <div class="well well-sm"> @if (Model.AverageKmL == null) { <div> Not has enough data to calculate consumption rate. Please add more fill up. </div> } Average consumption is <strong>@(Model.Av...
Add logic for creating a pantru for new users
using System; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using PlanEatSave.Models; using PlanEatSave.Utils; namespace PlanEatSave.DataAceessLayer { public class PantryService { private ApplicationDbContext _context; private IPlanEatSaveLogger _logger; ...
using System; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using PlanEatSave.Models; using PlanEatSave.Utils; namespace PlanEatSave.DataAceessLayer { public class PantryService { private ApplicationDbContext _context; private IPlanEatSaveLogger _logger; ...
Add Image to clipboard data
namespace ElectronNET.API.Entities { /// <summary> /// /// </summary> public class Data { /// <summary> /// Gets or sets the text. /// </summary> /// <value> /// The text. /// </value> public string Text { get; set; } /// <summary> ...
namespace ElectronNET.API.Entities { /// <summary> /// /// </summary> public class Data { /// <summary> /// Gets or sets the text. /// </summary> /// <value> /// The text. /// </value> public string Text { get; set; } /// <summary> ...
Move the Recenter and Monoscoping Rendering feature to the Oculus Head Controller
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEditor; using UnityEngine; [CustomEditor(typeof(VRSubjectController))] public class VRSubjectInspector : Editor { VRSubjectController instance; public override void OnInspectorGUI() { instance = targe...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEditor; using UnityEngine; [CustomEditor(typeof(VRSubjectController))] public class VRSubjectInspector : Editor { VRSubjectController instance; public override void OnInspectorGUI() { instance = targe...
Remove signupbox id from register bx since then it can be hidden by the zk.showLoginBox function
@{ ViewBag.Title = "Registreer je vandaag bij de Oogstplanner"; } <div class="flowtype-area"> <!-- START RESPONSIVE RECTANGLE LAYOUT --> <!-- Top bar --> <div id="top"> <h1>Registreer je vandaag bij de Oogstplanner</h1> </div> <!-- Fixed main screen --> <div id="login" class="bg imglogin"> <!-- Sig...
@{ ViewBag.Title = "Registreer je vandaag bij de Oogstplanner"; } <div class="flowtype-area"> <!-- START RESPONSIVE RECTANGLE LAYOUT --> <!-- Top bar --> <div id="top"> </div> <!-- Fixed main screen --> <div id="login" class="bg imglogin"> <div class="row"> <div class="mainbox col-md-12 col-sm-12 col-xs-12...
Change unity scene type to struct
using UnityEngine; namespace LiteNetLibManager { [System.Serializable] public class LiteNetLibScene { [SerializeField] private Object sceneAsset; [SerializeField] private string sceneName = string.Empty; public string SceneName { get { return sc...
using UnityEngine; namespace LiteNetLibManager { [System.Serializable] public struct LiteNetLibScene { [SerializeField] private Object sceneAsset; [SerializeField] private string sceneName; public string SceneName { get { return sceneName; } ...
Check IAllowAnonymousFilter in a simpler way.
using System.Linq; using System.Threading.Tasks; using Abp.AspNetCore.Mvc.Extensions; using Abp.Authorization; using Abp.Dependency; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc.Filters; namespace Abp.AspNetCore.Mvc.Authorization { public class AbpAuthorizationFilter : IAsyncAuthorizat...
using System.Linq; using System.Threading.Tasks; using Abp.AspNetCore.Mvc.Extensions; using Abp.Authorization; using Abp.Dependency; using Microsoft.AspNetCore.Mvc.Authorization; using Microsoft.AspNetCore.Mvc.Filters; namespace Abp.AspNetCore.Mvc.Authorization { //TODO: Register only actions which define AbpMvcA...
Fix for initializing models from assembly.
using System; using Gtk; using Castle.ActiveRecord.Framework.Config; using Castle.ActiveRecord; using HumanRightsTracker.Models; namespace HumanRightsTracker { class MainClass { public static void Main (string[] args) { XmlConfigurationSource config = new XmlConfigurationSource("Config/ARConfig.xml"); Acti...
using System; using System.Reflection; using Gtk; using Castle.ActiveRecord.Framework.Config; using Castle.ActiveRecord; using HumanRightsTracker.Models; namespace HumanRightsTracker { class MainClass { public static void Main (string[] args) { XmlConfigurationSource config = new XmlConfigurationSource("Confi...
Fix note masks not working
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Graphics; using osu.Framework.Allocation; using osu.Game.Graphics; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Mania.Objects.Drawables; us...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Allocation; using osu.Game.Graphics; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Mania.Objects.Drawables; using osu.Game.Rulesets.Mania.Ob...
Add cert-test action to help diagnose issues in azure
using System.Web.Mvc; using SFA.DAS.EmployerUsers.WebClientComponents; namespace SFA.DAS.EmployerUsers.Web.Controllers { public class HomeController : ControllerBase { public ActionResult Index() { return View(); } public ActionResult CatchAll(string pa...
using System; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Web.Mvc; using Microsoft.Azure; using SFA.DAS.EmployerUsers.WebClientComponents; namespace SFA.DAS.EmployerUsers.Web.Controllers { public class HomeController : ControllerBase { public ActionR...
Add basic hello server version
using System; namespace HelloServer { class MainClass { public static void Main(string[] args) { Console.WriteLine("Hello World!"); } } }
using System; using System.Threading.Tasks; using Grpc.Core; using Hello; namespace HelloServer { class HelloServerImpl : HelloService.HelloServiceBase { // Server side handler of the SayHello RPC public override Task<HelloResp> SayHello(HelloReq request, ServerCallContext context) { return Task.FromResult...
Put StreamReader into using blog
using System; using System.IO; using DotVVM.Framework.Controls; using DotVVM.Framework.Hosting; using Newtonsoft.Json; namespace DotVVM.Framework.ResourceManagement { /// <summary> /// CSS in header. It's perfect for critical CSS. /// </summary> public class InlineStylesheetResource : ResourceBase ...
using System; using System.IO; using DotVVM.Framework.Controls; using DotVVM.Framework.Hosting; using Newtonsoft.Json; namespace DotVVM.Framework.ResourceManagement { /// <summary> /// CSS in header. It's perfect for small css. For example critical CSS. /// </summary> public class InlineStylesheetResou...
Add static to class definition because reasons.
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace LearnosityDemo { public class Program { publi...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace LearnosityDemo { public static class Program { ...
Set default timeout to 100 seconds
using System; using System.Collections.Generic; using System.Net.Http; namespace Octokit.Internal { public class Request : IRequest { public Request() { Headers = new Dictionary<string, string>(); Parameters = new Dictionary<string, string>(); AllowAutoRedir...
using System; using System.Collections.Generic; using System.Net.Http; namespace Octokit.Internal { public class Request : IRequest { public Request() { Headers = new Dictionary<string, string>(); Parameters = new Dictionary<string, string>(); AllowAutoRedir...
Sort the i18n keys by descending length Fix 'FullHP' getting overridden by 'Full'.
using System.Collections.Generic; using System.IO; using System.Xml; namespace PROProtocol { public class Language { private const string FileName = "Resources/Lang.xml"; private Dictionary<string, string> _texts = new Dictionary<string, string>(); public Language() ...
using System; using System.Collections.Generic; using System.IO; using System.Xml; namespace PROProtocol { public class Language { private class DescendingLengthComparer : IComparer<string> { public int Compare(string x, string y) { int resu...
Make mania selection blueprint abstract
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Mania.Objects.Drawables; using osu.Game.Rulesets.Objec...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Mania.Objects.Drawables; using osu.Game.Rulesets.Objec...
Add path and line to GH console output
using System; using System.ComponentModel.Composition; using System.Text; using NVika.Abstractions; using NVika.Parsers; namespace NVika.BuildServers { internal sealed class GitHub : BuildServerBase { private readonly IEnvironment _environment; [ImportingConstructor] internal GitHub(IE...
using System; using System.ComponentModel.Composition; using System.Text; using NVika.Abstractions; using NVika.Parsers; namespace NVika.BuildServers { internal sealed class GitHub : BuildServerBase { private readonly IEnvironment _environment; [ImportingConstructor] internal GitHub(IE...
Change exception message and pass innerexception to argumentexception
using System; using System.Collections.Generic; using System.Linq; namespace AppHarbor { public class TypeNameMatcher<T> { private readonly IEnumerable<Type> _candidateTypes; public TypeNameMatcher(IEnumerable<Type> candidateTypes) { if (candidateTypes.Any(x => !typeof(T).IsAssignableFrom(x))) { th...
using System; using System.Collections.Generic; using System.Linq; namespace AppHarbor { public class TypeNameMatcher<T> { private readonly IEnumerable<Type> _candidateTypes; public TypeNameMatcher(IEnumerable<Type> candidateTypes) { if (candidateTypes.Any(x => !typeof(T).IsAssignableFrom(x))) { th...
Fix compile issue from merge
using System; using System.Collections.Generic; using JetBrains.ReSharper.Feature.Services.LiveTemplates.Scope; using JetBrains.ReSharper.Plugins.Unity.ShaderLab.ProjectModel; using JetBrains.ReSharper.Plugins.Unity.ShaderLab.Psi; using JetBrains.ReSharper.Psi; namespace JetBrains.ReSharper.Plugins.Unity.Feature.Serv...
using System; using System.Collections.Generic; using JetBrains.ReSharper.Feature.Services.LiveTemplates.Scope; using JetBrains.ReSharper.Plugins.Unity.ShaderLab.ProjectModel; using JetBrains.ReSharper.Plugins.Unity.ShaderLab.Psi; using JetBrains.ReSharper.Psi; namespace JetBrains.ReSharper.Plugins.Unity.Feature.Serv...
Remove a dependency on System.Drawing.Common by using a compatible color parser.
using System.Drawing; using System.Globalization; namespace ClosedXML.Utils { internal static class ColorStringParser { public static Color ParseFromHtml(string htmlColor) { try { if (htmlColor[0] != '#') htmlColor = '#' + htmlColor; ...
using System; using System.ComponentModel; using System.Drawing; using System.Globalization; namespace ClosedXML.Utils { internal static class ColorStringParser { public static Color ParseFromHtml(string htmlColor) { try { if (htmlColor[0] == '#' && (htm...
Update context that is passed through
using System; namespace Glimpse.Agent.Web { public interface IIgnoredRequestPolicy { bool ShouldIgnore(IContext context); } }
using System; using Glimpse.Web; namespace Glimpse.Agent.Web { public interface IIgnoredRequestPolicy { bool ShouldIgnore(IHttpContext context); } }
Add scaffolding for skipping ease-in
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MainCamera : MonoBehaviour { public GameObject cursor; private IEnumerator currentMove; // Use this for initialization void Start () { } // Update is called once per frame void Update () { //this.transform.posi...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class MainCamera : MonoBehaviour { public GameObject cursor; private IEnumerator currentMove; // Use this for initialization void Start () { } // Update is called once per frame void Update () { //this.transform.posi...
Set default for Reminder mapping to 'JustUpcoming'.
// This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/) // Copyright (c) 2015 Gerhard Zehetbauer // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Founda...
// This file is Part of CalDavSynchronizer (http://outlookcaldavsynchronizer.sourceforge.net/) // Copyright (c) 2015 Gerhard Zehetbauer // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Founda...
Add Win/Lose Scene Transition Hooks
using UnityEngine; using System.Collections; public class GUIBehavior : MonoBehaviour { public Texture barTexture; public wolf wolfData; public int boxWidth = 34; public int boxHeight = 30; void OnGUI () { //Print the bar GUI.Box (new Rect(Screen.width - barTexture.width - 18,10,barTexture.width + 8, bar...
using UnityEngine; using System.Collections; public class GUIBehavior : MonoBehaviour { public Texture barTexture; public wolf wolfData; public int boxWidth = 34; public int boxHeight = 30; void OnGUI () { //Print the bar GUI.Box (new Rect(Screen.width - barTexture.width - 18,10,barTexture.width + 8, bar...
Set default wait interval for Run command to be 60 seconds
using ConDep.Dsl.SemanticModel; using ConDep.Dsl.SemanticModel.WebDeploy; using Microsoft.Web.Deployment; namespace ConDep.Dsl.Operations.Application.Execution.RunCmd { public class RunCmdProvider : WebDeployProviderBase { private const string NAME = "runCommand"; public RunCmdProvider(string co...
using ConDep.Dsl.SemanticModel; using ConDep.Dsl.SemanticModel.WebDeploy; using Microsoft.Web.Deployment; namespace ConDep.Dsl.Operations.Application.Execution.RunCmd { public class RunCmdProvider : WebDeployProviderBase { private const string NAME = "runCommand"; public RunCmdProvider(string co...
Fix path output for inputs
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using MBEV = Microsoft.Build.Evaluation; using MBEX = Microsoft.Build.Execution; namespace MSBuildTracer { class ImportTracer { private MBEV.Projec...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using MBEV = Microsoft.Build.Evaluation; using MBEX = Microsoft.Build.Execution; namespace MSBuildTracer { class ImportTracer { private MBEV.Projec...
Fix compilation error introduced with my previous fix
// // NSUrlConnection.cs: // Author: // Miguel de Icaza // using System; using System.Reflection; using System.Collections; using System.Runtime.InteropServices; using MonoMac.ObjCRuntime; namespace MonoMac.Foundation { public partial class NSUrlConnection { static Selector selSendSynchronousRequ...
// // NSUrlConnection.cs: // Author: // Miguel de Icaza // using System; using System.Reflection; using System.Collections; using System.Runtime.InteropServices; using MonoMac.ObjCRuntime; namespace MonoMac.Foundation { public partial class NSUrlConnection { static Selector selSendSynchronousRequ...
Add descriptions to enum members
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. namespace osu.Game.Beatmaps { /// <summary> /// The type of countdown shown before the start of gameplay on a given beatmap. /// </summary> public enum Co...
// 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.ComponentModel; namespace osu.Game.Beatmaps { /// <summary> /// The type of countdown shown before the start of gameplay on a given beatmap. ///...
Add comment about ParentPid check.
using System; using O365.Security.ETW; namespace hiddentreasure_etw_demo { public static class RemoteThreadInjection { public static UserTrace CreateTrace() { var filter = new EventFilter(Filter .EventIdIs(3)); filter.OnEvent += (IEventRecord r) => { ...
using System; using O365.Security.ETW; namespace hiddentreasure_etw_demo { public static class RemoteThreadInjection { public static UserTrace CreateTrace() { var filter = new EventFilter(Filter .EventIdIs(3)); filter.OnEvent += (IEventRecord r) => { ...
Add parameter to the public method
using BruTile.Predefined; using BruTile.Web; using Mapsui.Layers; namespace Mapsui.Utilities { public static class OpenStreetMap { private const string DefaultUserAgent = "Default Mapsui user-agent"; private static readonly BruTile.Attribution OpenStreetMapAttribution = new BruTile.Attribution...
using BruTile.Predefined; using BruTile.Web; using Mapsui.Layers; namespace Mapsui.Utilities { public static class OpenStreetMap { private const string DefaultUserAgent = "Default Mapsui user-agent"; private static readonly BruTile.Attribution OpenStreetMapAttribution = new BruTile.Attribution...
Improve performance for realtime API
using PubNubMessaging.Core; using System; using Utf8Json; namespace BitFlyer.Apis { public class RealtimeApi { private readonly Pubnub _pubnub; public RealtimeApi() { _pubnub = new Pubnub("nopublishkey", BitFlyerConstants.SubscribeKey); } public void Subsc...
using PubNubMessaging.Core; using System; using System.Text; using Utf8Json; namespace BitFlyer.Apis { public class RealtimeApi { private readonly Pubnub _pubnub; public RealtimeApi() { _pubnub = new Pubnub("nopublishkey", BitFlyerConstants.SubscribeKey); } ...
Revert "Fix D rank displaying as F"
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.ComponentModel; namespace osu.Game.Scoring { public enum ScoreRank { [Description(@"F")] F, [Description(@"D")] D,...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.ComponentModel; namespace osu.Game.Scoring { public enum ScoreRank { [Description(@"F")] F, [Description(@"F")] D,...
Build script now creates individual zip file packages to align with the NuGet packages and semantic versioning.
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18033 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18033 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
Add test data seeder to DbContext.
using System; using System.Data.Entity; using System.Collections.Generic; using System.Linq; using System.Web; namespace NoteFolder.Models { public class FileDbContext : DbContext { public DbSet<File> Files { get; set; } } public class File { public int ID { get; set; } public string Name { get; set; } pu...
using System; using System.Data.Entity; using System.Collections.Generic; using System.Linq; using System.Web; namespace NoteFolder.Models { public class FileTestInit : DropCreateDatabaseAlways<FileDbContext> { protected override void Seed(FileDbContext db) { var docs = new File { Name = "Documents", Descriptio...
Reduce default bucket count for HTTP request duration to 16
namespace Prometheus.HttpMetrics { public sealed class HttpRequestDurationOptions : HttpMetricsOptionsBase { private const string DefaultName = "http_request_duration_seconds"; private const string DefaultHelp = "Provides the duration in seconds of HTTP requests from an ASP.NET appl...
namespace Prometheus.HttpMetrics { public sealed class HttpRequestDurationOptions : HttpMetricsOptionsBase { private const string DefaultName = "http_request_duration_seconds"; private const string DefaultHelp = "Provides the duration in seconds of HTTP requests from an ASP.NET appl...
Use boxenterprise.net when viewing file of folder from Acumatica
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using PX.Data; using PX.SM.BoxStorageProvider; using PX.Common; public partial class Pages_SM_SM202670 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using PX.Data; using PX.SM.BoxStorageProvider; using PX.Common; public partial class Pages_SM_SM202670 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs...
Allow control over references being added
using System.IO; namespace Cassette.BundleProcessing { public abstract class ParseReferences<T> : IBundleProcessor<T> where T : Bundle { public void Process(T bundle) { foreach (var asset in bundle.Assets) { if (ShouldParseAsset(asset)...
using System.IO; namespace Cassette.BundleProcessing { public abstract class ParseReferences<T> : IBundleProcessor<T> where T : Bundle { public void Process(T bundle) { foreach (var asset in bundle.Assets) { if (ShouldParseAsset(asset)...
Update Tests to reflect attribute move
using Consola.Library; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tests.Scriptables { public class Progeny : Scriptable { [Description("Simple Name Field")] public string Name { get; set; } } }
using Consola.Library; using Consola.Library.util; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tests.Scriptables { public class Progeny : Scriptable { [Description("Simple Name Field")] public string Name { get; ...
Set thread count to 1 in kestrel options.
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; namespace CompetitionPlatform { public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; namespace CompetitionPlatform { public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() ...
Fix unique control name for WPF
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="StringExtensions.cs" company="Catel development team"> // Copyright (c) 2008 - 2015 Catel development team. All rights reserved. // </copyright> // -----------------------------...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="StringExtensions.cs" company="Catel development team"> // Copyright (c) 2008 - 2015 Catel development team. All rights reserved. // </copyright> // -----------------------------...
Add route to support children
using Orders.com.Web.Api.Filters; using System.Web.Http; namespace Orders.com.Web.Api { public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API configuration and services GlobalConfiguration.Configuration.DependencyResolver ...
using Orders.com.Web.Api.Filters; using System.Web.Http; namespace Orders.com.Web.Api { public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API configuration and services GlobalConfiguration.Configuration.DependencyResolver ...
Add LocationCompleter to HDInsight cmdlets
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
Add messageworker start to main()
using System; using System.Threading; using System.Net; using System.Net.Sockets; using System.Text.RegularExpressions; using System.Text; using transf.Log; namespace transf { class Program { /// <summary> /// Prompts for a nickname until a valid nickname is found. /// </summary> /// <returns>The valid nick...
using System; using System.Threading; using System.Net; using System.Net.Sockets; using System.Text.RegularExpressions; using System.Text; using transf.Log; namespace transf { class Program { /// <summary> /// Prompts for a nickname until a valid nickname is found. /// </summary> /// <returns>The valid nick...
Allow for saving of simulations before the slime has fully expanded
using Gtk; using NLog; using SlimeSimulation.Controller.WindowController.Templates; namespace SlimeSimulation.View.WindowComponent.SimulationControlComponent { internal class GrowthPhaseControlBox : AbstractSimulationControlBox { private static readonly Logger Logger = LogManager.GetCurrentClassLogger(...
using Gtk; using NLog; using SlimeSimulation.Controller.WindowController.Templates; namespace SlimeSimulation.View.WindowComponent.SimulationControlComponent { internal class GrowthPhaseControlBox : AbstractSimulationControlBox { private static readonly Logger Logger = LogManager.GetCurrentClassLogger(...
Add check box for show in library or not
@model IPagedList<MMLibrarySystem.Models.BookListController.BookListItem> @{ ViewBag.Title = "Book List"; } @using (Ajax.BeginForm(new AjaxOptions() { HttpMethod = "GET", InsertionMode = InsertionMode.Replace, UpdateTargetId = "bookListContainer" })) { <fieldset style="border:1px solid black;...
@model IPagedList<MMLibrarySystem.Models.BookListController.BookListItem> @{ ViewBag.Title = "Book List"; } @using (Ajax.BeginForm(new AjaxOptions() { HttpMethod = "GET", InsertionMode = InsertionMode.Replace, UpdateTargetId = "bookListContainer" })) { <fieldset style="border:1px solid black;...
Send a POST to light up the HockeyGoalLight
using System.Diagnostics; namespace GOALWorker { public static class LightNotifier { //TODO: Jared Implement call to each light here for their team public static void NotifyLightsForTeam(string teamname) { Trace.TraceInformation("GOALWorker is Sending Light Request for {0}"...
using System.Diagnostics; using System.Net; using System.Text; using System.IO; namespace GOALWorker { public static class LightNotifier { //TODO: Jared Implement call to each light here for their team public static void NotifyLightsForTeam(string teamname) { Trace.TraceInf...
Remove error in case the searchString is empty
@model Tigwi.UI.Models.IAccountModel @{ ViewBag.Title = "ShowAccount"; } @section LeftInfos { <p>Oh Hai @Model.Name</p> @if(User.Identity.IsAuthenticated) { @Html.Partial("_FollowPerson", Model) @Html.Partial("_AccountFollowedPublicLists", Model) } } @Html...
@model Tigwi.UI.Models.IAccountModel @{ ViewBag.Title = "ShowAccount"; } @section LeftInfos { <h3>@Model.Name</h3> <p>@Model.Description</p> @if(User.Identity.IsAuthenticated) { @Html.Partial("_FollowPerson", Model) @Html.Partial("_AccountFollowedPublicList...