Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Fix bug in http handler constraints
using System.Web; using System.Web.Routing; namespace ConsolR.Hosting { public static class HttpHandlerExtensions { public static void MapHttpHandler<THandler>(this RouteCollection routes, string url) where THandler : IHttpHandler, new() { routes.MapHttpHandler<THandler>(null, url, null, null); } public...
using System.Web; using System.Web.Routing; namespace ConsolR.Hosting { public static class HttpHandlerExtensions { public static void MapHttpHandler<THandler>(this RouteCollection routes, string url) where THandler : IHttpHandler, new() { routes.MapHttpHandler<THandler>(null, url, null, null); } public...
Replace default constructor with failed property on PageProvider
using System.Collections.Generic; namespace RazorLight.Templating { public class PageLookupResult { public PageLookupResult() { this.Success = false; } public PageLookupResult(PageLookupItem item, IReadOnlyList<PageLookupItem> viewStartEntries) { this.ViewEntry = item; ...
using System.Collections.Generic; namespace RazorLight.Templating { public class PageLookupResult { public static PageLookupResult Failed => new PageLookupResult(); private PageLookupResult() { this.Success = false; } public PageLookupResult(PageLookupItem item, IReadOnlyLi...
Add XML doc comments on Id and NodeId
using System; namespace Microsoft.Build.Logging.StructuredLogger { public class TimedNode : NamedNode { public int Id { get; set; } public int NodeId { get; set; } /// <summary> /// Unique index of the node in the build tree, can be used as a /// "URL" to n...
using System; namespace Microsoft.Build.Logging.StructuredLogger { public class TimedNode : NamedNode { /// <summary> /// The Id of a Project, ProjectEvaluation, Target and Task. /// Corresponds to ProjectStartedEventsArgs.ProjectId, TargetStartedEventArgs.TargetId, etc. ...
Add setting to toggle performance logging
// 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.Framework.Configuration; using osu.Framework.Graphics; namespace osu.Game.Overlays.Settings.Sections.Debug { pub...
// 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.Framework.Configuration; using osu.Framework.Graphics; namespace osu.Game.Overlays.Settings.Sections.Debug { pub...
Use StringEnum converter in API model
#pragma warning disable CS1591 using System; using Newtonsoft.Json; namespace Discord.API { internal class Embed { [JsonProperty("title")] public string Title { get; set; } [JsonProperty("description")] public string Description { get; set; } [JsonProperty("url")] ...
#pragma warning disable CS1591 using System; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Discord.API { internal class Embed { [JsonProperty("title")] public string Title { get; set; } [JsonProperty("description")] public string Description { get; set; } ...
Add NotFound and ErrorHandling middlewares
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; using Microsoft.Framework.DependencyInjection; using Microsoft.AspNet.FileProviders; using Microsoft.Dnx.Runtime; using MakingSense.AspNet.Documentation...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; using Microsoft.Framework.DependencyInjection; using Microsoft.AspNet.FileProviders; using Microsoft.Dnx.Runtime; using MakingSense.AspNet.Documentation...
Make info messages look better
using CupCake.Core.Log; using CupCake.Messages.Receive; using CupCake.Players; namespace CupCake.Server.Muffins { public class LogMuffin : CupCakeMuffin { protected override void Enable() { this.Events.Bind<SayPlayerEvent>(this.OnSay); this.Events.Bind<WriteReceiveEvent...
using CupCake.Core.Log; using CupCake.Messages.Receive; using CupCake.Players; namespace CupCake.Server.Muffins { public class LogMuffin : CupCakeMuffin { protected override void Enable() { this.Events.Bind<SayPlayerEvent>(this.OnSay); this.Events.Bind<WriteReceiveEvent...
Reset list of main and side rooms on every selection
using UnityEngine; using System.Collections.Generic; using System; [RequireComponent(typeof(RoomGenerator))] public class MainRoomSelector : MonoBehaviour { public float aboveMeanWidthFactor = 1.25f; public float aboveMeanLengthFactor = 1.25f; [HideInInspector] public List<Room> mainRooms; [HideInInspector] p...
using UnityEngine; using System.Collections.Generic; using System; [RequireComponent(typeof(RoomGenerator))] public class MainRoomSelector : MonoBehaviour { public float aboveMeanWidthFactor = 1.25f; public float aboveMeanLengthFactor = 1.25f; [HideInInspector] public List<Room> mainRooms; [HideInInspector] p...
Fix for Order Lines in Order Refund
using System.Collections.Generic; namespace Mollie.Api.Models.Order { public class OrderRefundRequest { /// <summary> /// An array of objects containing the order line details you want to create a refund for. If you send /// an empty array, the entire order will be refunded. /// </...
using System.Collections.Generic; namespace Mollie.Api.Models.Order { public class OrderRefundRequest { /// <summary> /// An array of objects containing the order line details you want to create a refund for. If you send /// an empty array, the entire order will be refunded. /// </...
Save authorization information, when app is suspended.
namespace TraktApiSharp.Example.UWP { using Services.SettingsServices; using System.Threading.Tasks; using Template10.Controls; using Windows.ApplicationModel.Activation; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; [Bindable] sealed partial class App : Template10.Common.BootStrap...
namespace TraktApiSharp.Example.UWP { using Services.SettingsServices; using Services.TraktService; using System.Threading.Tasks; using Template10.Controls; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; ...
Add xml comment to TransitionType
// Copyright © 2010-2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System.Collections.Specialized; namespace CefSharp { public interface IRequest { string Url { get; set; } string Me...
// Copyright © 2010-2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System.Collections.Specialized; namespace CefSharp { public interface IRequest { string Url { get; set; } string Me...
Fix home page next show time
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using live.asp.net.Data; using live.asp.net.Services; using live.asp.net.ViewModels; using Microsoft.AspNet.Authorization; using Microsoft.AspNet.Mvc; using Microsoft.Data.Entity; namespace live.asp.net.Controllers { ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using live.asp.net.Data; using live.asp.net.Services; using live.asp.net.ViewModels; using Microsoft.AspNet.Authorization; using Microsoft.AspNet.Mvc; using Microsoft.Data.Entity; namespace live.asp.net.Controllers { ...
Split MemberOutputTests to separate asserts
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace T4TS.Tests { [TestClass] public class MemberOutputAppenderTests { [TestMethod] public void MemberOutputAppenderR...
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace T4TS.Tests { [TestClass] public class MemberOutputAppenderTests { [TestMethod] public void TypescriptVersion083Y...
Fix default database is not set properly the first time
using System; using System.Collections.Generic; using CupCake.Protocol; namespace CupCake.Client.Settings { public class Settings { public Settings() : this(false) { } public Settings(bool isNew) { this.Accounts = new List<Account>(); ...
using System; using System.Collections.Generic; using CupCake.Protocol; namespace CupCake.Client.Settings { public class Settings { public Settings() : this(false) { } public Settings(bool isNew) { this.Accounts = new List<Account>(); ...
Change version number to 1.0.
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("DNSAgent")] [assembly: AssemblyDescripti...
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("DNSAgent")] [assembly: AssemblyDescripti...
Change hover colour for news title
// 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.Framework.Graphics.Containers; using osu.Framework.Platform; using osu.Game.Graphics; using osu.G...
// 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.Framework.Graphics.Containers; using osu.Framework.Platform; using osu.Game.Graphics; using osu.G...
Add api point to controller.
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using CK.Glouton.Lucene; using Microsoft.AspNetCore.Mvc; namespace CK.Glouton.Web.Controllers { [Route("api/stats")] public class StatisticsController : Controller { LuceneStatistics luceneStatistics; ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using CK.Glouton.Lucene; using CK.Glouton.Model.Lucene; using Microsoft.AspNetCore.Mvc; namespace CK.Glouton.Web.Controllers { [Route("api/stats")] public class StatisticsController : Controller { priv...
Remove invalid test as the directory should not be deleted since multiple artifacts / dependencies maybe be unzipping into a folder or a child folder.
using NSubstitute; using Ploeh.AutoFixture.Xunit; using TeamCityApi.Domain; using TeamCityConsole.Tests.Helpers; using TeamCityConsole.Utils; using Xunit.Extensions; namespace TeamCityConsole.Tests.Utils { public class FileDownloaderTests { [Theory] [AutoNSubstituteData] public void Sh...
using NSubstitute; using Ploeh.AutoFixture.Xunit; using TeamCityApi.Domain; using TeamCityConsole.Tests.Helpers; using TeamCityConsole.Utils; using Xunit.Extensions; namespace TeamCityConsole.Tests.Utils { public class FileDownloaderTests { [Theory] [AutoNSubstituteData] public void Sh...
Change "Search" widget "Base URL" default value
using System.ComponentModel; using DesktopWidgets.Classes; namespace DesktopWidgets.Widgets.Search { public class Settings : WidgetSettingsBase { public Settings() { Width = 150; } [Category("General")] [DisplayName("Base URL")] public string BaseUr...
using System.ComponentModel; using DesktopWidgets.Classes; namespace DesktopWidgets.Widgets.Search { public class Settings : WidgetSettingsBase { public Settings() { Width = 150; } [Category("General")] [DisplayName("URL Prefix")] public string Base...
Allow the CommandRuntime to be set for a cmdlet.
// Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ using System.Management.Automation.Host; using System.Xml.Schema; using Pash.Implementation; namespace System.Management.Automation.Internal { public abstract class InternalCommand { internal CommandInfo Co...
// Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ using System.Management.Automation.Host; using System.Xml.Schema; using Pash.Implementation; namespace System.Management.Automation.Internal { public abstract class InternalCommand { internal CommandInfo Co...
Add default path action provider for Mac
using System; using System.Collections.Generic; using RepoZ.Api.IO; namespace RepoZ.Api.Mac { public class MacPathActionProvider : IPathActionProvider { public IEnumerable<PathAction> GetFor(string path) { yield return createPathAction("Open", "nil"); } private PathAction createPathAction(string name, s...
using System.Diagnostics; using System.Collections.Generic; using RepoZ.Api.IO; namespace RepoZ.Api.Mac { public class MacPathActionProvider : IPathActionProvider { public IEnumerable<PathAction> GetFor(string path) { yield return createDefaultPathAction("Open in Finder", path); } private PathAction cre...
Fix the failing test case.
namespace Nancy.AttributeRouting { using System; using System.Reflection; /// <summary> /// The View attribute indicates the view path to render from request. /// </summary> /// <example> /// The following code will render <c>View/index.html</c> with routing instance. /// <code> //...
namespace Nancy.AttributeRouting { using System; using System.Reflection; /// <summary> /// The View attribute indicates the view path to render from request. /// </summary> /// <example> /// The following code will render <c>View/index.html</c> with routing instance. /// <code> //...
Add right click by a short cut key comination
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; 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; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; 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;...
Fix test launcher to not use Drivers directory.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using AgateLib; namespace Tests { class Launcher { [STAThread] public static void Main(string[] args) { AgateFileProvider.Assemblies.AddPath("../Drivers"); AgateFileProvider.I...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using AgateLib; namespace Tests { class Launcher { [STAThread] public static void Main(string[] args) { AgateFileProvider.Images.AddPath("Data"); Application.EnableVisualSty...
Implement utlity for requesting JSON as string
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace Schedutalk.Logic { class HttpRequestor { public async Task<string> getHttpRequestAsString(Func<string, HttpRequestMessage> requestTask, string input) ...
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace Schedutalk.Logic { class HttpRequestor { public async Task<string> getHttpRequestAsString(Func<string, HttpRequestMessage> requestTask, string input) ...
Fix XML docs containing an ampersand
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace System.Net.Http { /// <summary> /// Defines default values for http handler properties which is meant to be re-used across WinHttp & UnixHttp Handlers...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace System.Net.Http { /// <summary> /// Defines default values for http handler properties which is meant to be re-used across WinHttp and UnixHttp Handle...
Remove configfile prefix from settings file and let tablename drive naming.
//****************************************************************************************************** // Setting.cs - Gbtc // // Copyright © 2021, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NOT...
//****************************************************************************************************** // Setting.cs - Gbtc // // Copyright © 2021, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NOT...
Fix mania scroll direction not being read from database
// 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.Configuration; using osu.Game.Rulesets.Mania.Configuration; using osu.Game.Rulesets.UI.Scrolling; namespace osu.Game.Rulesets.Mania.UI { public ...
// 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.Configuration; using osu.Game.Rulesets.Mania.Configuration; using osu.Game.Rulesets.UI.Scrolling; namespace osu.Game.Rulesets.Mania.UI { public ...
Add the [200 .. 300] bpm speed bonus
// 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; using osu.Game.Rulesets.Osu.Difficulty.Preprocessing; namespace osu.Game.Rulesets.Osu.Difficulty.Skills { /// <summary> /// Represents the skill ...
// 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; using osu.Game.Rulesets.Osu.Difficulty.Preprocessing; namespace osu.Game.Rulesets.Osu.Difficulty.Skills { /// <summary> /// Represents the skill ...
Fix landing on the ground not working occasionally
using System; using UnityEngine; using System.Collections; public class GroundCheck : MonoBehaviour { public bool IsOnGround { get; private set; } public void OnTriggerEnter(Collider other) { var geometry = other.gameObject.GetComponent<LevelGeometry>(); if (geometry != null) { ...
using System; using UnityEngine; using System.Collections; public class GroundCheck : MonoBehaviour { public bool IsOnGround { get; private set; } public void OnTriggerStay(Collider other) { var geometry = other.gameObject.GetComponent<LevelGeometry>(); if (geometry != null) { ...
Return null IPC response for archive imports
// 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.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using osu.Framework.Platform; using osu.Game.Database; namespace osu.Game.IP...
// 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.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using osu.Framework.Platform; using osu.Game.Database; namespace osu.Game.IP...
Fix one more test regression
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using osu.Framework.Allocation; using osu.Game.Rulesets; using osu.Game.Screens.Edit; using osu.Game.Tests.Beatmaps; nam...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using osu.Framework.Allocation; using osu.Game.Rulesets; using osu.Game.Screens.Edit; using osu.Game.Tests.Beatmaps; nam...
Change for to foreach in endpoints list
// Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; using Microsoft.AspNetCore.Routing.Matc...
// Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; using Microsoft.AspNetCore.Routing.Matc...
Fix typo in exception message
using System; namespace StateMechanic { /// <summary> /// Exception thrown when a transition could not be created from a state on an event, because the state and event do not belong to the same state machine /// </summary> public class InvalidEventTransitionException : Exception { /// <sum...
using System; namespace StateMechanic { /// <summary> /// Exception thrown when a transition could not be created from a state on an event, because the state and event do not belong to the same state machine /// </summary> public class InvalidEventTransitionException : Exception { /// <sum...
Fix continuing historic time entries.
using System; using System.Linq; using Android.App; using Android.OS; using Android.Views; using Android.Widget; using Toggl.Joey.UI.Adapters; namespace Toggl.Joey.UI.Fragments { public class LogTimeEntriesListFragment : ListFragment { public override void OnViewCreated (View view, Bundle savedInstanc...
using System; using System.Linq; using Android.App; using Android.OS; using Android.Views; using Android.Widget; using Toggl.Joey.UI.Adapters; namespace Toggl.Joey.UI.Fragments { public class LogTimeEntriesListFragment : ListFragment { public override void OnViewCreated (View view, Bundle savedInstanc...
Disable DebugIL2CPU to test all kernels
using System; using System.Collections.Generic; using Cosmos.Build.Common; using Cosmos.TestRunner.Core; namespace Cosmos.TestRunner.Full { public class DefaultEngineConfiguration : IEngineConfiguration { public virtual int AllowedSecondsInKernel => 6000; public virtual IEnumerable<RunTarget...
using System; using System.Collections.Generic; using Cosmos.Build.Common; using Cosmos.TestRunner.Core; namespace Cosmos.TestRunner.Full { public class DefaultEngineConfiguration : IEngineConfiguration { public virtual int AllowedSecondsInKernel => 6000; public virtual IEnumerable<RunTarget...
Add the ability to create a readonly deploy key
using System; using System.Diagnostics; using System.Globalization; namespace Octokit { /// <summary> /// Describes a new deployment key to create. /// </summary> [DebuggerDisplay("{DebuggerDisplay,nq}")] public class NewDeployKey { public string Title { get; set; } public str...
using System; using System.Diagnostics; using System.Globalization; namespace Octokit { /// <summary> /// Describes a new deployment key to create. /// </summary> [DebuggerDisplay("{DebuggerDisplay,nq}")] public class NewDeployKey { public string Title { get; set; } public str...
Update filter to support PWSH
using System.Linq; using System.ServiceModel.Syndication; namespace Firehose.Web.Extensions { public static class SyndicationItemExtensions { public static bool ApplyDefaultFilter(this SyndicationItem item) { if (item == null) return false; var hasPowerS...
using System.Linq; using System.ServiceModel.Syndication; namespace Firehose.Web.Extensions { public static class SyndicationItemExtensions { public static bool ApplyDefaultFilter(this SyndicationItem item) { if (item == null) return false; var hasPowerS...
Fix an issue with the default URI
using SkiResort.XamarinApp.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace SkiResort.XamarinApp { public static class Config { public const string API_URL = "__SERVERURI__/api"; public ...
using SkiResort.XamarinApp.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace SkiResort.XamarinApp { public static class Config { public const string API_URL = "__SERVERURI__"; public cons...
Add Is any key function
using UnityEngine; using UnityEngine.Rendering; using UnityEngine.Networking; public static class UnityUtils { public static bool IsAnyKeyUp(KeyCode[] keys) { foreach (KeyCode key in keys) { if (Input.GetKeyUp(key)) return true; } return false; } ...
using UnityEngine; using UnityEngine.Rendering; using UnityEngine.Networking; public static class UnityUtils { public static bool IsAnyKeyUp(KeyCode[] keys) { foreach (KeyCode key in keys) { if (Input.GetKeyUp(key)) return true; } return false; } ...
Add Travis to contact page.
@{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@wechangedt...
@{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@wechangedt...
Fix the TODO item in Ushelve so it can support multiple TFS remotes
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using CommandLine.OptParse; using Sep.Git.Tfs.Core; using Sep.Git.Tfs.Core.TfsInterop; using StructureMap; namespace Sep.Git.Tfs.Commands { [Pluggable("unshelve")] [Description("unshelve [options] (-l | shelveset-n...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Text.RegularExpressions; using CommandLine.OptParse; using Sep.Git.Tfs.Core; using StructureMap; namespace Sep.Git.Tfs.Commands { [Pluggable("unshelve")] ...
Fix field name and accessibility
// 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.Collections.Generic; using System.Linq; using osu.Game.Beatmaps; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Edit.Checks.Components; using osu.Game...
// 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.Collections.Generic; using System.Linq; using osu.Game.Beatmaps; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Edit.Checks.Components; using osu.Game...
Fix source dir path (doesn't like "./")
#load nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease Environment.SetVariableNames(); BuildParameters.SetParameters(context: Context, buildSystem: BuildSystem, sourceDirectoryPath: "./", title: "Cake.F...
#load nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease Environment.SetVariableNames(); BuildParameters.SetParameters(context: Context, buildSystem: BuildSystem, sourceDirectoryPath: Context.Environment.WorkingDirectory, ...
Fix bug with reassigning the variable.
using System; namespace xFunc.Library.Maths.Expressions { public class AssignMathExpression : IMathExpression { private VariableMathExpression variable; private IMathExpression value; public AssignMathExpression() : this(null, null) { } public A...
using System; namespace xFunc.Library.Maths.Expressions { public class AssignMathExpression : IMathExpression { private VariableMathExpression variable; private IMathExpression value; public AssignMathExpression() : this(null, null) { } public A...
Add other mocking libs in dependency contraints
using System.Linq; using NUnit.Framework; namespace Ploeh.AutoFixture.NUnit3.UnitTest { [TestFixture] public class DependencyConstraints { [TestCase("Moq")] [TestCase("Rhino.Mocks")] public void AutoFixtureNUnit3DoesNotReference(string assemblyName) { // Fixture...
using System.Linq; using NUnit.Framework; namespace Ploeh.AutoFixture.NUnit3.UnitTest { [TestFixture] public class DependencyConstraints { [TestCase("FakeItEasy")] [TestCase("Foq")] [TestCase("FsCheck")] [TestCase("Moq")] [TestCase("NSubstitute")] [TestCase(...
Stop mouse cursor disappearing when input is restored with Esc button
using System; using UnityEngine; public static class InputInterceptor { static InputInterceptor() { Type abstractControlsType = ReflectionHelper.FindType("AbstractControls"); _inputSystems = Resources.FindObjectsOfTypeAll(abstractControlsType); } public static void EnableInput() {...
using System; using UnityEngine; public static class InputInterceptor { static InputInterceptor() { Type abstractControlsType = ReflectionHelper.FindType("AbstractControls"); _inputSystems = Resources.FindObjectsOfTypeAll(abstractControlsType); } public static void EnableInput() {...
Add method for rounding decimals.
using System; using System.ComponentModel; using System.Reflection; namespace CertiPay.Payroll.Common { public static class ExtensionMethods { /// <summary> /// Returns the display name from the description attribute on the enumeration, if available. /// Otherwise returns the ToString(...
using System; using System.ComponentModel; using System.Reflection; namespace CertiPay.Payroll.Common { public static class ExtensionMethods { /// <summary> /// Round the decimal to the given number of decimal places using the given method of rounding. /// By default, this is 2 decimal...
Hide HUD in a better way
// 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.Sprites; using osu.Game.Graphics; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.UI; using osu.Game.Screens.Play; namespace osu.Ga...
// 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.Sprites; using osu.Game.Graphics; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.UI; using osu.Game.Screens.Play; namespace osu.Ga...
Change field name to "_logDir"
using System; using System.Diagnostics; using System.IO; using System.Threading; using Serilog; using Serilog.Core; namespace Titan.Logging { public class LogCreator { public static DirectoryInfo LogDirectory = new DirectoryInfo(Environment.CurrentDirectory + ...
using System; using System.Diagnostics; using System.IO; using System.Threading; using Serilog; using Serilog.Core; namespace Titan.Logging { public class LogCreator { private static DirectoryInfo _logDir = new DirectoryInfo(Environment.CurrentDirectory + ...
Allow using F11 to toggle fullscreen
// 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.Collections.Generic; using osu.Framework.Input.Bindings; namespace osu.Framework.Input { internal class FrameworkActionContainer : KeyBindingContainer<...
// 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.Collections.Generic; using osu.Framework.Input.Bindings; namespace osu.Framework.Input { internal class FrameworkActionContainer : KeyBindingContainer<...
Update IUrlModifier to work on any thread by not using HttpContext.Current in the Modify method.
using System; using System.Web; using Cassette; namespace Precompiled { /// <summary> /// An example implementation of Cassette.IUrlModifier. /// /// </summary> public class CdnUrlModifier : IUrlModifier { public string Modify(string url) { // The url ...
using System; using System.Web; using Cassette; namespace Precompiled { /// <summary> /// An example implementation of Cassette.IUrlModifier. /// </summary> public class CdnUrlModifier : IUrlModifier { readonly string prefix; public CdnUrlModifier(HttpContextBase httpC...
Refactor in pagination view to use tag helpers
@model Microsoft.eShopOnContainers.WebMVC.ViewModels.Pagination.PaginationInfo <div class="esh-pager"> <div class="container"> <article class="esh-pager-wrapper row"> <nav> <a class="esh-pager-item esh-pager-item--navigable @Model.Previous" id="Previous" ...
@model Microsoft.eShopOnContainers.WebMVC.ViewModels.Pagination.PaginationInfo <div class="esh-pager"> <div class="container"> <article class="esh-pager-wrapper row"> <nav> <a class="esh-pager-item esh-pager-item--navigable @Model.Previous" id="Previous" ...
Fix poorly named test file.
using System.Collections.Generic; using System.IO; using System.Linq; using Duplicati.Library.Main; using NUnit.Framework; namespace Duplicati.UnitTest { [TestFixture] public class RepairHandlerTests : BasicSetupHelper { public override void SetUp() { base.SetUp(); F...
using System.Collections.Generic; using System.IO; using System.Linq; using Duplicati.Library.Main; using NUnit.Framework; namespace Duplicati.UnitTest { [TestFixture] public class RepairHandlerTests : BasicSetupHelper { public override void SetUp() { base.SetUp(); F...
Use CreateChild to override child creation
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Avalonia; using Avalonia.Controls; using Avalonia.Controls.Presenters; using System; using System.Collections.Generic; namespace Core2D.Avalonia.Presenters ...
// Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Avalonia; using Avalonia.Controls; using Avalonia.Controls.Presenters; using System; using System.Collections.Generic; namespace Core2D.Avalonia.Presenters ...
Add todo about shifting where messages are to be resolved
using System; using System.Collections.Generic; using Microsoft.Framework.DependencyInjection; using System.Threading.Tasks; namespace Glimpse.Web { public class MasterRequestRuntime { private readonly IDiscoverableCollection<IRequestRuntime> _requestRuntimes; private readonly IDiscoverableCol...
using System; using System.Collections.Generic; using Microsoft.Framework.DependencyInjection; using System.Threading.Tasks; namespace Glimpse.Web { public class MasterRequestRuntime { private readonly IDiscoverableCollection<IRequestRuntime> _requestRuntimes; private readonly IDiscoverableCol...
Change version number to auto-increment
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("Si...
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("Si...
Remove explicit parameters from the reservation query string
using System; using System.Threading.Tasks; using SFA.DAS.Reservations.Api.Types.Configuration; namespace SFA.DAS.Reservations.Api.Types { public class ReservationHelper : IReservationHelper { private readonly ReservationsClientApiConfiguration _config; public ReservationHelper(ReservationsCl...
using System; using System.Threading.Tasks; using SFA.DAS.Reservations.Api.Types.Configuration; namespace SFA.DAS.Reservations.Api.Types { public class ReservationHelper : IReservationHelper { private readonly ReservationsClientApiConfiguration _config; public ReservationHelper(ReservationsCl...
Change Assembly Version to 2.3.0.0
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
Fix inability to join a multiplayer room which has no password
// 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 { ...
Load customers from the database.
using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using Vidly.Models; namespace Vidly.Controllers { public class CustomersController : Controller { public ActionResult Index() { var customers = GetCustomers(); return View(customers); } ...
using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using Vidly.Models; namespace Vidly.Controllers { public class CustomersController : Controller { private ApplicationDbContext _context; public CustomersController() { _context = new ApplicationDbCo...
Update Readme for FastSerialization to fix a typo
// Copyright (c) Microsoft Corporation. All rights reserved. // Welcome to the Utilities code base. This _README.cs file is your table of contents. // // You will notice that the code is littered with code: qualifiers. If you install the 'hyperAddin' for // Visual Studio, these qualifiers turn into hyperlinks that ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Welcome to the Utilities code base. This _README.cs file is your table of contents. // // You will notice that the code is littered with code: qualifiers. If you install the 'hyperAddin' for // Visual Studio, these qualifiers turn into hyperlinks that ...
Remove unlimited timing points in difficulty calculation
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Beatmaps.Formats { /// <summary> /// A <see cref="LegacyBeatmapDecoder"/> built for ...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Beatmaps.Formats { /// <summary> /// A <see cref="LegacyBeatmapDecoder"/> built for ...
Add placeholder support for OnUpdate
using System; using System.Collections.Generic; using System.Linq; using Duality; using PythonScripting.Resources; using IronPython.Hosting; using Microsoft.Scripting.Hosting; using IronPython.Compiler; namespace PythonScripting { public class ScriptExecutor : Component, ICmpInitializable { public Content...
using System; using System.Collections.Generic; using System.Linq; using Duality; using PythonScripting.Resources; using IronPython.Hosting; using IronPython.Runtime; using IronPython.Compiler; using Microsoft.Scripting; using Microsoft.Scripting.Hosting; namespace PythonScripting { public class ScriptExecutor : ...
Change movement, player folow mouse
using UnityEngine; using System.Collections; public class PlayerMovement : MonoBehaviour { public float speed = 6f; Vector3 movement; Rigidbody rb; float cameraRayLength = 100; int floorMask; void Awake() { floorMask = LayerMask.GetMask ("Floor"); rb = GetComponent<Rigidbody> (); } void FixedUpdate() ...
using UnityEngine; using System.Collections; public class PlayerMovement : MonoBehaviour { public float speed = 6f; public float jumpSpeed = 8.0F; public float gravity = 20.0F; private Vector3 moveDirection = Vector3.zero; private CharacterController cc; private float cameraRayLength = 100; private int floorM...
Fix bad casing for readme tests
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using LegoSharp; using System.Linq; using System.Reflection; using System.IO.MemoryMappedFiles; namespace LegoSharpTest { [TestClass] public class ReadmeTests ...
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using LegoSharp; using System.Linq; using System.Reflection; using System.IO.MemoryMappedFiles; namespace LegoSharpTest { [TestClass] public class ReadmeTests ...
Fix Skeletron summoning message decoding.
using System; namespace Terraria_Server.Messages { public class SummonSkeletronMessage : IMessage { public Packet GetPacket() { return Packet.SUMMON_SKELETRON; } public void Process(int start, int length, int num, int whoAmI, byte[] readBuffer, byte bufferData) ...
using System; namespace Terraria_Server.Messages { public class SummonSkeletronMessage : IMessage { public Packet GetPacket() { return Packet.SUMMON_SKELETRON; } public void Process(int start, int length, int num, int whoAmI, byte[] readBuffer, byte bufferData) ...
Use a minimum fade length for clamping rather than zero
// 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.Framework.Audio.Track; using osu.Framework.Graphics; using osu.Framework.Graphics.Shapes; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Gr...
// 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.Framework.Audio.Track; using osu.Framework.Graphics; using osu.Framework.Graphics.Shapes; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Gr...
Add action "Works If Muted", "Works If Foreground Is Fullscreen" options
using System; using System.ComponentModel; using System.Windows; using DesktopWidgets.Classes; using Xceed.Wpf.Toolkit.PropertyGrid.Attributes; namespace DesktopWidgets.Actions { public abstract class ActionBase { [PropertyOrder(0)] [DisplayName("Delay")] public TimeSpan Delay { get; s...
using System; using System.ComponentModel; using System.Windows; using DesktopWidgets.Classes; using DesktopWidgets.Helpers; using Xceed.Wpf.Toolkit.PropertyGrid.Attributes; namespace DesktopWidgets.Actions { public abstract class ActionBase { [PropertyOrder(0)] [DisplayName("Delay")] ...
Revert "Fixed compile error in shell view"
 using Xamarin.Forms; namespace AppShell.Mobile.Views { [ContentProperty("ShellContent")] public partial class ShellView : ContentView { public static readonly BindableProperty ShellContentProperty = BindableProperty.Create<ShellView, View>(d => d.ShellContent, null, propertyChanged: ShellContentP...
 using Xamarin.Forms; namespace AppShell.Mobile.Views { [ContentProperty("ShellContent")] public partial class ShellView : ContentView { public static readonly BindableProperty ShellContentProperty = BindableProperty.Create<ShellView, View>(d => d.ShellContent, null, propertyChanged: ShellContentP...
Copy deflate stream to temporary memory stream.
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; namespace Meowtrix.osuAMT.Training.DataGenerator { class OszArchive : Archive, IDisposable { public ZipArchive archive; private FileInfo fileinfo; public OszArchive(FileIn...
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; namespace Meowtrix.osuAMT.Training.DataGenerator { class OszArchive : Archive, IDisposable { public ZipArchive archive; private FileInfo fileinfo; public OszArchive(FileIn...
Remove reference to settings section in routePath (so we can move the tree in theory)
using System.Net.Http.Formatting; using System.Web.Http.ModelBinding; using Umbraco.Core; using Umbraco.Web.Models.Trees; using Umbraco.Web.Mvc; using Umbraco.Web.Trees; using Umbraco.Web.WebApi.Filters; namespace uSync8.BackOffice.Controllers.Trees { [Tree(Constants.Applications.Settings, uSync.Trees.uSync, ...
using System.Net.Http.Formatting; using System.Web.Http.ModelBinding; using Umbraco.Core; using Umbraco.Web.Models.Trees; using Umbraco.Web.Mvc; using Umbraco.Web.Trees; using Umbraco.Web.WebApi.Filters; namespace uSync8.BackOffice.Controllers.Trees { [Tree(Constants.Applications.Settings, uSync.Trees.uSync, ...
Add NamedValueDictionaryDatumConverterFactory to newtonsoft converter
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...
Rename some variables for consistency
using System.Collections.Generic; using HarryPotterUnity.Cards.Generic; using HarryPotterUnity.Tween; using UnityEngine; namespace HarryPotterUnity.Utils { public static class GameManager { public const int PreviewLayer = 9; public const int CardLayer = 10; public const int ValidChoiceLay...
using System.Collections.Generic; using HarryPotterUnity.Cards.Generic; using HarryPotterUnity.Tween; using UnityEngine; namespace HarryPotterUnity.Utils { public static class GameManager { public const int PREVIEW_LAYER = 9; public const int CARD_LAYER = 10; public const int VALID_CHOICE...
Make the namespace uniform accross the project
using System; namespace Table { public class Table { public int Width; public int Spacing; public Table(int width, int spacing) { Width = width; Spacing = spacing; } } }
using System; namespace Hangman { public class Table { public int Width; public int Spacing; public Table(int width, int spacing) { Width = width; Spacing = spacing; } } }
Use proper library/abi for qt on linux.
using System; using Mono.VisualC.Interop; using Mono.VisualC.Interop.ABI; namespace Qt { // Will be internal; public for testing public static class Libs { public static CppLibrary QtCore = null; public static CppLibrary QtGui = null; static Libs () ...
using System; using Mono.VisualC.Interop; using Mono.VisualC.Interop.ABI; namespace Qt { // Will be internal; public for testing public static class Libs { public static CppLibrary QtCore = null; public static CppLibrary QtGui = null; static Libs () ...
Fix up some room display issues
@using RightpointLabs.ConferenceRoom.Domain @model IEnumerable<RightpointLabs.ConferenceRoom.Domain.Models.Entities.DeviceEntity> @{ var buildings = (Dictionary<string, string>)ViewBag.Buildings; var rooms = (Dictionary<string, string>)ViewBag.Rooms; } <p> @Html.ActionLink("Create New", "Create") </p> <ta...
@using RightpointLabs.ConferenceRoom.Domain @model IEnumerable<RightpointLabs.ConferenceRoom.Domain.Models.Entities.DeviceEntity> @{ var buildings = (Dictionary<string, string>)ViewBag.Buildings; var rooms = (Dictionary<string, string>)ViewBag.Rooms; } <p> @Html.ActionLink("Create New", "Create") </p> <ta...
Return null immediately if file handle is not valid
// Copyright © 2010-2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Windows.Interop; using System.Windows.Media; using System.Windows.Media.Imaging; namespace CefSharp.Wpf.Rendering { ...
// Copyright © 2010-2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Windows.Interop; using System.Windows.Media; using System.Windows.Media.Imaging; namespace CefSharp.Wpf.Rendering { ...
Use the lock in the factory class.
using System; using System.Reflection; namespace AdoNetProfiler { /// <summary> /// The factory to create the object of <see cref="IProfiler"/>. /// </summary> public class AdoNetProfilerFactory { // ConstructorInfo is faster than Func<IProfiler> when invoking. private static Const...
using System; using System.Reflection; using System.Threading; namespace AdoNetProfiler { /// <summary> /// The factory to create the object of <see cref="IProfiler"/>. /// </summary> public class AdoNetProfilerFactory { // ConstructorInfo is faster than Func<IProfiler> when invoking. ...
Move class into correct namespace.
using System; using System.Web; using System.Web.Routing; namespace Cassette { public class ModuleRequestHandler<T> : IHttpHandler where T : Module { public ModuleRequestHandler(IModuleContainer<T> moduleContainer, RequestContext requestContext) { this.moduleCont...
using System; using System.Web; using System.Web.Routing; namespace Cassette.Web { public class ModuleRequestHandler<T> : IHttpHandler where T : Module { public ModuleRequestHandler(IModuleContainer<T> moduleContainer, RequestContext requestContext) { this.module...
Load Tcl in a cross-platform way
// The code is new, but the idea is from http://wiki.tcl.tk/9563 using System; using System.Runtime.InteropServices; namespace Irule { public class TclInterp : IDisposable { [DllImport("libtcl.dylib")] protected static extern IntPtr Tcl_CreateInterp(); [DllImport("libtcl.dylib")] ...
// The code is new, but the idea is from http://wiki.tcl.tk/9563 using System; using System.Runtime.InteropServices; namespace Irule { public class TclInterp : IDisposable { [DllImport("tcl8.4")] protected static extern IntPtr Tcl_CreateInterp(); [DllImport("tcl8.4")] protecte...
Move scale operation to base constructor.
using System; using Engine.cgimin.material.simpletexture; using Engine.cgimin.object3d; using Engine.cgimin.texture; using OpenTK; namespace Mugo { class PizzaModel : ClonedObject<PizzaModelInternal>, ITunnelSegementElementModel { private static readonly SimpleTextureMaterial material = new SimpleTextureMaterial(...
using System; using Engine.cgimin.material.simpletexture; using Engine.cgimin.object3d; using Engine.cgimin.texture; using OpenTK; namespace Mugo { class PizzaModel : ClonedObject<PizzaModelInternal>, ITunnelSegementElementModel { private static readonly SimpleTextureMaterial material = new SimpleTextureMaterial(...
Update to Problem 9. Sum of n Numbers
/*Problem 9. Sum of n Numbers Write a program that enters a number n and after that enters more n numbers and calculates and prints their sum. Note: You may need to use a for-loop. Examples: numbers sum 3 90 20 60 10 5 6.5 2 -1 -0.5 4 2 1 1 1 */ using System; clas...
/*Problem 9. Sum of n Numbers Write a program that enters a number n and after that enters more n numbers and calculates and prints their sum. Note: You may need to use a for-loop. Examples: numbers sum 3 90 20 60 10 5 6.5 2 -1 -0.5 4 2 1 1 1 */ using System; clas...
Remove obsolete unit test (null check - can no longer be null)
using System; using System.Linq; using AutoFixture.Xunit2; using Shouldly; using Xunit; namespace Lloyd.AzureMailGateway.Models.Tests { public class EMailBuilderTests { //[Fact] //public void BuilderShouldReturnNonNullEMailInstance() //{ // // Arrange // var build...
using System; using System.Linq; using AutoFixture.Xunit2; using Shouldly; using Xunit; namespace Lloyd.AzureMailGateway.Models.Tests { public class EMailBuilderTests { [Fact] public void BuildShouldThrowOnInvalidState() { // Arrange var builder = new EMailBuild...
Stop umbrella on player loss
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RemiCover_UmbrellaBehaviour : MonoBehaviour { public float verticalPosition; // Use this for initialization void Start () { Cursor.visible = false; } // Update is called once per frame void Update(...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RemiCover_UmbrellaBehaviour : MonoBehaviour { public float verticalPosition; // Use this for initialization void Start () { Cursor.visible = false; } // Update is called once per frame void Update(...
Add support for array-like object declarations
using System.Collections.Generic; using Mond.Compiler.Expressions; namespace Mond.Compiler.Parselets { class ObjectParselet : IPrefixParselet { public Expression Parse(Parser parser, Token token) { var values = new List<KeyValuePair<string, Expression>>(); while (!pars...
using System.Collections.Generic; using Mond.Compiler.Expressions; namespace Mond.Compiler.Parselets { class ObjectParselet : IPrefixParselet { public Expression Parse(Parser parser, Token token) { var values = new List<KeyValuePair<string, Expression>>(); while (!pars...
Fix a crash if we receive a too long unicode string
using System; using System.IO; using System.Text; namespace YGOSharp.Network.Utils { public static class BinaryExtensions { public static void WriteUnicode(this BinaryWriter writer, string text, int len) { byte[] unicode = Encoding.Unicode.GetBytes(text); byt...
using System; using System.IO; using System.Text; namespace YGOSharp.Network.Utils { public static class BinaryExtensions { public static void WriteUnicode(this BinaryWriter writer, string text, int len) { byte[] unicode = Encoding.Unicode.GetBytes(text); byt...
Add missing final newline in file
using System; namespace osu.Game.Online.RealtimeMultiplayer { public class NotJoinedRoomException : Exception { public NotJoinedRoomException() : base("This user has not yet joined a multiplayer room.") { } } }
using System; namespace osu.Game.Online.RealtimeMultiplayer { public class NotJoinedRoomException : Exception { public NotJoinedRoomException() : base("This user has not yet joined a multiplayer room.") { } } }
Fix a bug where you could create an already existing playlist
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Windows.Forms; namespace MusicRandomizer { public partial class NewPlaylistForm : Form { public String name; public NewPlaylistForm() { InitializeComponent(); ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Windows.Forms; namespace MusicRandomizer { public partial class NewPlaylistForm : Form { public String name; public NewPlaylistForm() { InitializeComponent(); ...
Change "Slideshow" "Root Folder" option name
using System; using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.PictureSlideshow { public class Settings : WidgetSettingsBase { public Settings() { Width = 384; Height = 216; } [Category("General")] ...
using System; using System.ComponentModel; using DesktopWidgets.WidgetBase.Settings; namespace DesktopWidgets.Widgets.PictureSlideshow { public class Settings : WidgetSettingsBase { public Settings() { Width = 384; Height = 216; } [Category("General")] ...
Fix rim flying hits changing colour
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Rulesets.Taiko.Objects.Drawables { /// <summary> /// A hit used specifically f...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Rulesets.Taiko.Objects.Drawables { /// <summary> /// A hit used specifically f...
Update Mike's Working with Images sample.
using System; using System.Collections.Generic; using System.Linq; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace Working_with_images { /// <summary> /// The UIApplicationDelegate for the application. This class is responsible for launching the /// User Interface of the application, as well ...
using System; using System.Collections.Generic; using System.Linq; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace Working_with_images { /// <summary> /// The UIApplicationDelegate for the application. This class is responsible for launching the /// User Interface of the application, as well ...
Change some some syntax conventions.
using UnityEngine; using System.Collections; public sealed class HUD : MonoBehaviour { private int frameCount = 0; private float dt = 0.0F; private float fps = 0.0F; private float updateRate = 4.0F; void Start () { } void Update () { frameCount++; dt += Time.deltaTime; if (dt > 1.0F / updateRate) { ...
using UnityEngine; using System.Collections; public sealed class HUD : MonoBehaviour { private int FrameCount = 0; private float DeltaTime = 0.0F; private float FPS = 0.0F; private float UpdateRate = 5.0F; void Start () { } void Update () { FrameCount++; DeltaTime += Time.deltaTime; if (DeltaTime > 1....
Fix rounded buttons not allowing custom colour specifications
// 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.Collections.Generic; using JetBrains.Annotations; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; usin...
// 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.Collections.Generic; using JetBrains.Annotations; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; usin...
Remove redundant websocket sample code.
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; using System; using System.Net.WebSockets; using System.Threading; using System.Threading.Tasks; namespace SampleApp { public class Startup { public void Configure(IApplicationBuilder app) { app.Run(async context => ...
using System; using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; namespace SampleApp { public class Startup { public void Configure(IApplicationBuilder app) { app.Run(async context => { Console.WriteLine("{0} {1}{2}{3}", con...
Use switch instead of ifs
// 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.Collections.Generic; using osu.Framework.Event; using osu.Framework.Input.Handlers; using osu.Framework.Platform; using OpenTK; namespace osu.Fr...
// 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.Collections.Generic; using osu.Framework.Event; using osu.Framework.Input.Handlers; using osu.Framework.Platform; using OpenTK; namespace osu.Fr...
Fix crash when navigating back to ScheduleView
using System; using System.Linq; using Autofac; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace Zermelo.App.UWP.Schedule { public sealed partial class ScheduleView : Page { public ScheduleView() { this.InitializeComponent(); NavigationCacheM...
using System; using System.Linq; using Autofac; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace Zermelo.App.UWP.Schedule { public sealed partial class ScheduleView : Page { public ScheduleView() { this.InitializeComponent(); NavigationCacheM...
Add encryption support to relying party model
/* * Copyright (c) Dominick Baier, Brock Allen. All rights reserved. * see license */ using System.Collections.Generic; namespace Thinktecture.IdentityServer.WsFed.Models { public class RelyingParty { public string Name { get; set; } public bool Enabled { get; set; } public string...
/* * Copyright (c) Dominick Baier, Brock Allen. All rights reserved. * see license */ using System.Collections.Generic; using System.Security.Cryptography.X509Certificates; namespace Thinktecture.IdentityServer.WsFed.Models { public class RelyingParty { public string Name { get; set; } pub...
Fix issue where Id was not set when loading all entity paths
namespace Umbraco.Core.Models.Entities { /// <summary> /// Represents the path of a tree entity. /// </summary> public class TreeEntityPath { /// <summary> /// Gets or sets the identifier of the entity. /// </summary> public int Id { get; set; } /// <summary...
namespace Umbraco.Core.Models.Entities { /// <summary> /// Represents the path of a tree entity. /// </summary> public class TreeEntityPath { /// <summary> /// Gets or sets the identifier of the entity. /// </summary> public int Id { get; set; } /// <summary...
Use 'char' instead of 'ushort' for unicode character
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System.Runtime.InteropServices; /// <content> /// Conta...
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. namespace PInvoke { using System.Runtime.InteropServices; /// <content> /// Conta...