Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Add version to SQL instance selector screen | @using StackExchange.Opserver.Data.SQL
@{
Layout = null;
var clusters = SQLModule.Clusters;
var standalone = SQLModule.StandaloneInstances;
}
@helper RenderInstances(IEnumerable<SQLInstance> instances)
{
foreach (var i in instances)
{
var props = i.ServerProperties.SafeData(true);
<... | @using StackExchange.Opserver.Data.SQL
@{
Layout = null;
var clusters = SQLModule.Clusters;
var standalone = SQLModule.StandaloneInstances;
}
@helper RenderInstances(IEnumerable<SQLInstance> instances, bool showVersion)
{
foreach (var i in instances)
{
var props = i.ServerProperties.SafeDat... |
Add values for a couple of enum values | // 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;
/// <content>
/// Contains the <see cref="NCryp... | // 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;
/// <content>
/// Contains the <see cref="NCryp... |
Set default relative path for Project Identity in Integration tests | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.VisualStudio.IntegrationTest.Utilities.Common.ProjectUtils
{
public abstract class Identity
{
public string Name { get; p... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
namespace Microsoft.VisualStudio.IntegrationTest.Utilities.Common.ProjectUtils
{
public abstract class Identity
{
public st... |
Fix catch legacy replay positions not being relative to playfield size | // 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.Game.Beatmaps;
using osu.Game.Rulesets.Replays;
using osu.Game.Rulesets.Replays.Legacy;
using osu.Game.Rulesets.Replays.Types;
namespace osu.Game.Rule... | // 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.Game.Beatmaps;
using osu.Game.Rulesets.Catch.UI;
using osu.Game.Rulesets.Replays;
using osu.Game.Rulesets.Replays.Legacy;
using osu.Game.Rulesets.Replay... |
Add setter to Proxy property. | #region
using System.Net;
using Tabster.Core.Data.Processing;
using Tabster.Core.Types;
#endregion
namespace Tabster.Core.Searching
{
/// <summary>
/// Tab service which enables searching.
/// </summary>
public interface ISearchService
{
/// <summary>
/// Serv... | #region
using System.Net;
using Tabster.Core.Data.Processing;
using Tabster.Core.Types;
#endregion
namespace Tabster.Core.Searching
{
/// <summary>
/// Tab service which enables searching.
/// </summary>
public interface ISearchService
{
/// <summary>
/// Serv... |
Bump it even more to follow semver | 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("BTD... | 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("BTD... |
Upgrade version from 5.5.0 to 5.5.1 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if !BUILD_GENERATED_VERSION
[assembly: AssemblyCompany("... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if !BUILD_GENERATED_VERSION
[assembly: AssemblyCompany("... |
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.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Extras.NHibernate")]
[assembly: AssemblyDescription("Autofac Integration for NHibernate")]
[assembly: ComVisible(false)] | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Extras.NHibernate")]
[assembly: ComVisible(false)]
|
Fix a few for Example1 | using System;
using System.Threading;
namespace Example1
{
public class Program
{
public static void Main (string [] args)
{
using (var streamer = new AudioStreamer ("ws://agektmr.node-ninja.com:3000/socket"))
//using (var streamer = new AudioStreamer ("ws://localhost:3000/socket"))
{
... | using System;
using System.Threading;
namespace Example1
{
public class Program
{
public static void Main (string [] args)
{
using (var streamer = new AudioStreamer ("ws://agektmr.node-ninja.com:3000/socket"))
//using (var streamer = new AudioStreamer ("ws://localhost:3000/socket"))
{
... |
Correct the namespace and add copyright message. | using System;
using NUnit.Framework;
namespace Google.Apis.Tools.CodeGen.Tests
{
[TestFixture()]
public class NewtonsoftObjectToJsonTest
{
[Test()]
public void TestCase ()
{
Assert.Fail("Not tested yet");
}
}
}
| /*
Copyright 2010 Google Inc
Licensed under the Apache License, Version 2.0 (the ""License"");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... |
Remove button handler on Cancel. | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SiliconStudio.Core.Mathematics;
using SiliconStudio.Xenko.Input;
using SiliconStudio.Xenko.Engine;
using SiliconStudio.Xenko.UI.Controls;
using XenkoToolkit.Samples.Core;
namespace XenkoToolkit.Sa... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SiliconStudio.Core.Mathematics;
using SiliconStudio.Xenko.Input;
using SiliconStudio.Xenko.Engine;
using SiliconStudio.Xenko.UI.Controls;
using XenkoToolkit.Samples.Core;
namespace XenkoToolkit.Sa... |
Make agent test less brittle | using System;
using Xunit;
namespace SparkPost.Tests
{
public partial class ClientTests
{
public partial class UserAgentTests
{
private readonly Client.Settings settings;
public UserAgentTests()
{
settings = new Client.Settings();
... | using System;
using Xunit;
namespace SparkPost.Tests
{
public partial class ClientTests
{
public partial class UserAgentTests
{
private readonly Client.Settings settings;
public UserAgentTests()
{
settings = new Client.Settings();
... |
Set accordion panels to be default collapsed | @inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" @AccordionHelper() href="#collapse-@Model.UniqueId">@Model.Header </a>
</h4>
</div>
<div id="collapse-@Model.Unique... | @inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" @AccordionHelper() href="#collapse-@Model.UniqueId">@Model.Header </a>
</h4>
</div>
<div id="collapse-@Model.Unique... |
Add tricky cases to test class: - nullable primitives - non-nullable custom structs - nullable structs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ValueUtilsTest {
class SampleClass {
public SampleEnum AnEnum;
public string AutoPropWithPrivateBackingField { get; set; }
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ValueUtilsTest {
struct CustomStruct {
public int Bla;
}
class SampleClass {
public SampleEnum AnEnum;
public int? NullableField;
pub... |
Update conditional code blocks with new versions | #if NETCOREAPP2_1
using System.Runtime.InteropServices;
#endif
namespace XSharp.Launch
{
internal static class RuntimeHelper
{
public static bool IsWindows
{
get
{
#if NETCOREAPP2_1
return RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
#elif NET471... | #if NETCOREAPP2_0
using System.Runtime.InteropServices;
#endif
namespace XSharp.Launch
{
internal static class RuntimeHelper
{
public static bool IsWindows
{
get
{
#if NETCOREAPP2_0
return RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
#elif NET472... |
Add test for authorization requirement in TraktUserFollowUserRequest | namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Base.Post.Bodyless;
using TraktApiSharp.Experimental.Requests.Users.OAuth;
using TraktApiSharp.Objects.Post.Users.R... | namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Base.Post.Bodyless;
using TraktApiSharp.Experimental.Requests.Users.OAuth;
using TraktApiSharp.Objects.Post.Users.R... |
Fix NgBy when used with IWebElement | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using OpenQA.Selenium;
namespace Protractor
{
internal class JavaScriptBy : By
{
private string script;
private object[] args;
public JavaScriptBy(string script, params object[] args)
... | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using OpenQA.Selenium;
using OpenQA.Selenium.Internal;
namespace Protractor
{
internal class JavaScriptBy : By
{
private string script;
private object[] args;
public JavaScriptBy(strin... |
Add a newline to Mac OS X output | using System;
using System.IO;
using System.Diagnostics;
using Xp.Cert;
namespace Xp.Cert.Commands
{
public partial class Update : Command
{
const string SECURITY_EXECUTABLE = "/usr/bin/security";
const string SECURITY_ARGUMENTS = "find-certificate -a -p";
const string SECURITY_KEYCHAI... | using System;
using System.IO;
using System.Diagnostics;
using Xp.Cert;
namespace Xp.Cert.Commands
{
public partial class Update : Command
{
const string SECURITY_EXECUTABLE = "/usr/bin/security";
const string SECURITY_ARGUMENTS = "find-certificate -a -p";
const string SECURITY_KEYCHAI... |
Format change to match other methods; | using System;
using Android.App;
using AndroidHUD;
namespace XHUD
{
public enum MaskType
{
// None = 1,
Clear,
Black,
// Gradient
}
public static class HUD
{
public static Activity MyActivity;
public static void Show(string message, int progress = -1, MaskType maskType = MaskType.Black)
{
AndHU... | using System;
using Android.App;
using AndroidHUD;
namespace XHUD
{
public enum MaskType
{
// None = 1,
Clear,
Black,
// Gradient
}
public static class HUD
{
public static Activity MyActivity;
public static void Show(string message, int progress = -1, MaskType maskType = MaskType.Black)
{
AndHU... |
Add filter property to most played movies request. | namespace TraktApiSharp.Requests.WithoutOAuth.Movies.Common
{
using Base.Get;
using Enums;
using Objects.Basic;
using Objects.Get.Movies.Common;
using System.Collections.Generic;
internal class TraktMoviesMostPlayedRequest : TraktGetRequest<TraktPaginationListResult<TraktMostPlayedMovie>, Trak... | namespace TraktApiSharp.Requests.WithoutOAuth.Movies.Common
{
using Base;
using Base.Get;
using Enums;
using Objects.Basic;
using Objects.Get.Movies.Common;
using System.Collections.Generic;
internal class TraktMoviesMostPlayedRequest : TraktGetRequest<TraktPaginationListResult<TraktMostPl... |
Remove un-needed ctor and other methods | using System;
using System.Xml;
using System.Xml.Linq;
namespace openvassharp
{
public class OpenVASManager : IDisposable
{
private OpenVASSession _session;
public OpenVASManager ()
{
_session = null;
}
public OpenVASManager(OpenVASSession session)
{
if (session != null)
_session = session;
... | using System;
using System.Xml;
using System.Xml.Linq;
namespace openvassharp
{
public class OpenVASManager : IDisposable
{
private OpenVASSession _session;
public OpenVASManager(OpenVASSession session)
{
if (session != null)
_session = session;
}
public XDocument GetVersion() {
return _session... |
Add test for authorization requirement in TraktUserUnfollowUserRequest | namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Base.Delete;
using TraktApiSharp.Experimental.Requests.Users.OAuth;
[TestClass]
public class TraktUserUnfollow... | namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Base.Delete;
using TraktApiSharp.Experimental.Requests.Users.OAuth;
using TraktApiSharp.Requests;
[TestClass]
... |
Fix take until exception error. | using System;
using System.Collections.Generic;
using System.Linq;
using CSharpViaTest.Collections.Annotations;
using Xunit;
namespace CSharpViaTest.Collections._20_YieldPractices
{
[Medium]
public class TakeUntilCatchingAnException
{
readonly int indexThatWillThrow = new Random().Next(2, 10);
... | using System;
using System.Collections.Generic;
using System.Linq;
using CSharpViaTest.Collections.Annotations;
using Xunit;
namespace CSharpViaTest.Collections._20_YieldPractices
{
[Medium]
public class TakeUntilCatchingAnException
{
readonly int indexThatWillThrow = new Random().Next(2, 10);
... |
Add PermissionChecker for Identity registration. | using AbpCompanyName.AbpProjectName.Authorization;
using AbpCompanyName.AbpProjectName.Authorization.Roles;
using AbpCompanyName.AbpProjectName.Authorization.Users;
using AbpCompanyName.AbpProjectName.Editions;
using AbpCompanyName.AbpProjectName.MultiTenancy;
using Microsoft.AspNetCore.Identity;
using Microsoft.Exten... | using AbpCompanyName.AbpProjectName.Authorization;
using AbpCompanyName.AbpProjectName.Authorization.Roles;
using AbpCompanyName.AbpProjectName.Authorization.Users;
using AbpCompanyName.AbpProjectName.Editions;
using AbpCompanyName.AbpProjectName.MultiTenancy;
using Microsoft.AspNetCore.Identity;
using Microsoft.Exten... |
Use newline when writing to stdout. | using System;
namespace kgrep {
public class WriteStdout : IHandleOutput {
public void Write(string line) {
if (line.EndsWith("\n"))
Console.Write(line);
else
Console.Write(line);
}
public string Close() {
... | using System;
namespace kgrep {
public class WriteStdout : IHandleOutput {
public void Write(string line) {
Console.WriteLine(line);
}
public string Close() {
return "";
}
}
}
|
Return a single value in procedure return message | using Newtonsoft.Json;
using RestRPC.Framework.Messages.Inputs;
namespace RestRPC.Framework.Messages.Outputs
{
/// <summary>
/// This message is sent to server as a response to a request
/// </summary>
class WebReturn : WebOutput
{
const char HEADER_RETURN = 'r';
[JsonConstructor]... | using Newtonsoft.Json;
using RestRPC.Framework.Messages.Inputs;
namespace RestRPC.Framework.Messages.Outputs
{
/// <summary>
/// This message is sent to server as a response to a request
/// </summary>
class WebReturn : WebOutput
{
const char HEADER_RETURN = 'r';
[JsonConstructor]... |
Add directives to reprompt object | using Newtonsoft.Json;
namespace Alexa.NET.Response
{
public class Reprompt
{
public Reprompt()
{
}
public Reprompt(string text)
{
OutputSpeech = new PlainTextOutputSpeech {Text = text};
}
public Reprompt(Ssml.Speech speech)
{
... | using System.Collections.Generic;
using Newtonsoft.Json;
namespace Alexa.NET.Response
{
public class Reprompt
{
public Reprompt()
{
}
public Reprompt(string text)
{
OutputSpeech = new PlainTextOutputSpeech {Text = text};
}
public Reprompt(S... |
Add support for optional list of keys to limit view queries | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using Newtonsoft.Json;
using System.Windows.Forms;
using System.Dynamic;
namespace CouchTrafficClient
{
class QueryException : Exception
{
}
class QueryBase
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using Newtonsoft.Json;
using System.Windows.Forms;
using System.Dynamic;
namespace CouchTrafficClient
{
class QueryException : Exception
{
}
class QueryBase
{
... |
Remove unneeded property carry over for jsonwritter | using Newtonsoft.Json;
using System;
using System.Globalization;
using System.IO;
using System.Text;
namespace Glimpse
{
public class DefaultMessageConverter : IMessageConverter
{
private readonly JsonSerializer _jsonSerializer;
public DefaultMessageConverter(JsonSerializer jsonSerializer)
... | using Newtonsoft.Json;
using System;
using System.Globalization;
using System.IO;
using System.Text;
namespace Glimpse
{
public class DefaultMessageConverter : IMessageConverter
{
private readonly JsonSerializer _jsonSerializer;
public DefaultMessageConverter(JsonSerializer jsonSerializer)
... |
Enable GTK theming on Mono. | using System.Windows.Forms;
namespace IronAHK.Scripting
{
partial class Script
{
public static void Init()
{
Application.EnableVisualStyles();
}
public static void Run()
{
Application.Run();
}
}
}
| using System;
using System.Windows.Forms;
namespace IronAHK.Scripting
{
partial class Script
{
public static void Init()
{
if (Environment.OSVersion.Platform == PlatformID.Unix)
Environment.SetEnvironmentVariable("MONO_VISUAL_STYLES", "gtkplus");
Applic... |
Fix a bug with parsing. | using System;
namespace Scheme.Storage
{
internal abstract class Atom : Object
{
public static Atom Parse(string input)
{
double number;
bool isNumber = Double.TryParse(input, out number);
if (isNumber)
return new Number(number);
... | using System;
namespace Scheme.Storage
{
internal abstract class Atom : Object
{
public static Atom Parse(string input)
{
double number;
bool isNumber = Double.TryParse(input, out number);
if (isNumber)
return new Number(number);
... |
Add error handling to import process (resolves await warning). | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Diagnostics;
using System.Threading.Tasks;
using osu.Framework.Platform;
using osu.Game.Database;
namespace osu.Game.IPC
{
public class Beat... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Diagnostics;
using System.Threading.Tasks;
using osu.Framework.Logging;
using osu.Framework.Platform;
using osu.Game.Database;
namespace osu.Game... |
Move the private member to the top of the class | using System;
using System.Collections;
namespace Mos6510
{
public class Register
{
public Register(int numberOfBits)
{
bits = new BitArray(numberOfBits);
}
public int Length
{
get { return bits.Length; }
}
public int GetValue()
{
return ToInt();
}
publi... | using System;
using System.Collections;
namespace Mos6510
{
public class Register
{
private BitArray bits;
public Register(int numberOfBits)
{
bits = new BitArray(numberOfBits);
}
public int Length
{
get { return bits.Length; }
}
public int GetValue()
{
retu... |
Change button types on editor exit dialog to match purpose | // 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.Graphics.Sprites;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Screens.Edit
{
public class PromptForSaveDialog : PopupDialog
... | // 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.Graphics.Sprites;
using osu.Game.Overlays.Dialog;
namespace osu.Game.Screens.Edit
{
public class PromptForSaveDialog : PopupDialog
... |
Add "ApplicationPath" in tenant URL | using System.Web.Mvc;
using Orchard.Environment.Configuration;
namespace Orchard.MultiTenancy.Extensions {
public static class UrlHelperExtensions {
public static string Tenant(this UrlHelper urlHelper, ShellSettings tenantShellSettings) {
//info: (heskew) might not keep the port inserti... | using System.Web.Mvc;
using Orchard.Environment.Configuration;
namespace Orchard.MultiTenancy.Extensions {
public static class UrlHelperExtensions {
public static string Tenant(this UrlHelper urlHelper, ShellSettings tenantShellSettings) {
//info: (heskew) might not keep the port/vdir in... |
Order the list of deployments by start time. | using System.Collections.Generic;
using System.Linq;
using Kudu.Core.Deployment;
using Kudu.SignalR.ViewModels;
using SignalR.Hubs;
namespace Kudu.SignalR.Hubs
{
public class Deployment : Hub
{
private readonly IDeploymentManager _deploymentManager;
public Deployment(IDeploymentManager deploy... | using System.Collections.Generic;
using System.Linq;
using Kudu.Core.Deployment;
using Kudu.SignalR.ViewModels;
using SignalR.Hubs;
namespace Kudu.SignalR.Hubs
{
public class Deployment : Hub
{
private readonly IDeploymentManager _deploymentManager;
public Deployment(IDeploymentManager deploy... |
Update version number to 2.11.0. | using System.Reflection;
[assembly: AssemblyVersion("2.10.7.0")]
[assembly: AssemblyFileVersion("2.10.7.0")]
[assembly: AssemblyInformationalVersion("2.10.7")]
| using System.Reflection;
[assembly: AssemblyVersion("2.11.0.0")]
[assembly: AssemblyFileVersion("2.11.0.0")]
[assembly: AssemblyInformationalVersion("2.11.0")]
|
Improve CanMakePhoneCall on iOS to check support of url and link to a carrier | using System;
#if __UNIFIED__
using Foundation;
using UIKit;
#else
using MonoTouch.Foundation;
using MonoTouch.UIKit;
#endif
namespace Plugin.Messaging
{
internal class PhoneCallTask : IPhoneCallTask
{
public PhoneCallTask()
{
}
#region IPhoneCallTask Members
public bo... | using System;
#if __UNIFIED__
using Foundation;
using UIKit;
using CoreTelephony;
#else
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.CoreTelephony;
#endif
namespace Plugin.Messaging
{
internal class PhoneCallTask : IPhoneCallTask
{
public PhoneCallTask()
{
}
... |
Fix a few service paths in portal | using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Xml.Linq;
using Kudu.Client.Deployment;
using Kudu.Client.Infrastructure;
using Kudu.Client.SourceControl;
using Kudu.Core.SourceControl;
using Kudu.Web.Models;
namespace Kudu.Web.Infrastructure
{
public static class ApplicationEx... | using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Xml.Linq;
using Kudu.Client.Deployment;
using Kudu.Client.Infrastructure;
using Kudu.Client.SourceControl;
using Kudu.Core.SourceControl;
using Kudu.Web.Models;
namespace Kudu.Web.Infrastructure
{
public static class ApplicationEx... |
Remove useless code in blockcontrol test | using System;
using System.Drawing;
using System.Windows.Forms;
using Linking.Controls;
using Linking.Core;
using Linking.Core.Blocks;
namespace Linking
{
public partial class Form1 : Form
{
public Form1()
{
//이것도 커밋해 보시지!!
InitializeComponent();
Board board... | using System;
using System.Drawing;
using System.Windows.Forms;
using Linking.Controls;
using Linking.Core;
using Linking.Core.Blocks;
namespace Linking
{
public partial class Form1 : Form
{
public Form1()
{
//이것도 커밋해 보시지!!
InitializeComponent();
Board board... |
Add namespace and fix DisplayAttribute.Order evaluation to avoid exception when Order is not set. | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
public static class TypeExtensions
{
public static IEnumerable<PropertyInfo> GetSortedProperties(this Type t)
{
return from pi in t.GetProperties()
le... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
namespace Mvc.JQuery.Datatables
{
public static class TypeExtensions
{
public static IEnumerable<PropertyInfo> GetSortedProperties(this Type t)
{
... |
Add parameter specifying color to pad with. | using LibPixelPet;
using System;
namespace PixelPet.CLI.Commands {
internal class PadPalettesCmd : CliCommand {
public PadPalettesCmd()
: base("Pad-Palettes",
new Parameter(true, new ParameterValue("width", "0"))
) { }
public override void Run(Workbench workbench, ILogger logger) {
int width = Find... | using LibPixelPet;
using System;
namespace PixelPet.CLI.Commands {
internal class PadPalettesCmd : CliCommand {
public PadPalettesCmd()
: base("Pad-Palettes",
new Parameter(true, new ParameterValue("width", "0")),
new Parameter("color", "c", false, new ParameterValue("value", "0"))
) { }
public ov... |
Build MSI only on Windows. | using System;
using System.Diagnostics;
[assembly: CLSCompliant(true)]
namespace IronAHK.Setup
{
static partial class Program
{
static void Main(string[] args)
{
TransformDocs();
PackageZip();
AppBundle();
BuildMsi();
}
[Condit... | using System;
using System.Diagnostics;
[assembly: CLSCompliant(true)]
namespace IronAHK.Setup
{
static partial class Program
{
static void Main(string[] args)
{
TransformDocs();
PackageZip();
AppBundle();
if (Environment.OSVersion.Platform == ... |
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 Code Contracts in ButonExt | using System;
using System.Windows.Controls;
using static System.Reactive.Linq.Observable;
namespace cardio.Ext
{
/// <summary>
/// Represents Button Extension
/// </summary>
static class ButtonExt
{
/// <summary>
/// Disables the button
/// </summary>
/// <param na... | using System;
using System.Windows.Controls;
using static System.Reactive.Linq.Observable;
using static System.Diagnostics.Contracts.Contract;
namespace cardio.Ext
{
/// <summary>
/// Represents Button Extension
/// </summary>
static class ButtonExt
{
/// <summary>
/// Disables the... |
Fix for base command being shown as command on command line. | using System;
using System.Collections.Generic;
using ManyConsole;
namespace TeamCityBuildChanges
{
class Program
{
static int Main(string[] args)
{
var commands = GetCommands();
return ConsoleCommandDispatcher.DispatchCommand(commands, args, Console.Out);
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using ManyConsole;
namespace TeamCityBuildChanges
{
class Program
{
static int Main(string[] args)
{
var commands = GetCommands();
return ConsoleCommandDispatcher.DispatchCommand(commands, args, Console.... |
Correct full screen test class name. | using System;
using System.Collections.Generic;
using AgateLib;
using AgateLib.DisplayLib;
using AgateLib.Geometry;
using AgateLib.InputLib;
namespace Tests.DisplayTests
{
class HelloWorldProgram : IAgateTest
{
public string Name
{
get { return "Full Screen"; }
}
public string Category
... | using System;
using System.Collections.Generic;
using AgateLib;
using AgateLib.DisplayLib;
using AgateLib.Geometry;
using AgateLib.InputLib;
namespace Tests.DisplayTests
{
class FullscreenTest : IAgateTest
{
public string Name
{
get { return "Full Screen"; }
}
public string Category
{... |
Add possibility to customize plugin search pattern | using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
namespace PluginLoader
{
public static class Plugins<T> where T : class
{
/// <summary>
/// Loads interface plugins from the specified location.
/// </summary>
/// <param name="path">Load ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
namespace PluginLoader
{
public static class Plugins<T> where T : class
{
/// <summary>
/// Loads interface plugins from the specified location.
/// </summary>
/// <param name="path">Load ... |
Include symbols, etc in the memory dump | using System.IO;
using ClrSpy.CliSupport;
using ClrSpy.Debugger;
using Microsoft.Diagnostics.Runtime.Interop;
namespace ClrSpy.Jobs
{
public class DumpMemoryJob : IDebugJob
{
private readonly DebugRunningProcess target;
public int Pid => target.Process.Pid;
public string D... | using System.IO;
using ClrSpy.CliSupport;
using ClrSpy.Debugger;
using Microsoft.Diagnostics.Runtime.Interop;
namespace ClrSpy.Jobs
{
public class DumpMemoryJob : IDebugJob
{
private readonly DebugRunningProcess target;
public int Pid => target.Process.Pid;
public string D... |
Change list display for soldiers | @model IEnumerable<Soldier>
<h2>Soldiers @Html.ActionLink("Add New", "New", "Soldiers", null, new { @class = "btn btn-default" })</h2>
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>@Html.DisplayNameFor(_ => _.FirstOrDefault().Rank)</th>
<th>@Html.Displ... | @model IEnumerable<Soldier>
<h2>Soldiers @Html.ActionLink("Add New", "New", "Soldiers", null, new { @class = "btn btn-default" })</h2>
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>@Html.DisplayNameFor(_ => _.FirstOrDefault().FirstName)</th>
<th>@Html.... |
Use expected, but incorrect, truncated RFC3339 format | using System;
using MessageBird.Utilities;
using Newtonsoft.Json;
using System.Globalization;
namespace MessageBird.Json.Converters
{
public class RFC3339DateTimeConverter : JsonConverter
{
private const string format = "Y-m-d\\TH:i:sP";
public override void WriteJson(JsonWriter writer, object... | using System;
using MessageBird.Utilities;
using Newtonsoft.Json;
using System.Globalization;
namespace MessageBird.Json.Converters
{
public class RFC3339DateTimeConverter : JsonConverter
{
// XXX: Format should be "yyyy-MM-dd'T'THH:mm:ssK".
// However, due to bug the endpoint expects the curr... |
Fix XP text not displaying | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HUD_Manager : MonoBehaviour
{
// The names of the GUI objects we're editing
public string amountXPElementName;
public string playerHealthElementName;
public string equippedWeaponIconElemen... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HUD_Manager : MonoBehaviour
{
// The names of the GUI objects we're editing
public string amountXPElementName;
public string playerHealthElementName;
public string equippedWeaponIconElemen... |
Adjust sample to fit on default Windows cmd console. | using System;
using System.Threading;
namespace ConsoleProgressBar
{
/// <summary>
/// Simple program with sample usage of ConsoleProgressBar.
/// </summary>
class Program
{
public static void Main(string[] args)
{
using (var progressBar = new ConsoleProgressBar(totalUn... | using System;
using System.Threading;
namespace ConsoleProgressBar
{
/// <summary>
/// Simple program with sample usage of ConsoleProgressBar.
/// </summary>
class Program
{
public static void Main(string[] args)
{
using (var progressBar = new ConsoleProgressBar(totalUn... |
Update to send mail function | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Threading.Tasks;
using System.Web;
namespace KryptPadWebApp.Email
{
public class EmailHelper
{
/// <summary>
/// Sends an email
/// </sum... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Threading.Tasks;
using System.Web;
namespace KryptPadWebApp.Email
{
public class EmailHelper
{
/// <summary>
/// Sends an email
/// </sum... |
Remove call to EnableInternalPdfViewerOffScreen as it's been removed as Chromium no longer supports disabling of surfaces | using System;
using System.Windows;
namespace CefSharp.MinimalExample.Wpf
{
public partial class App : Application
{
public App()
{
//Perform dependency check to make sure all relevant resources are in our output directory.
var settings = new CefSettings();
... | using System;
using System.Windows;
namespace CefSharp.MinimalExample.Wpf
{
public partial class App : Application
{
public App()
{
//Perform dependency check to make sure all relevant resources are in our output directory.
var settings = new CefSettings();
... |
Add option for groupname to group options by groups | using SPAD.neXt.Interfaces.Profile;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace SPAD.neXt.Interfaces.Configuration
{
public interface ISettingsProvider : IProfileOptionsProvider, IWindowPlacementProvider
{ ... | using SPAD.neXt.Interfaces.Profile;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace SPAD.neXt.Interfaces.Configuration
{
public interface ISettingsProvider : IProfileOptionsProvider, IWindowPlacementProvider
{ ... |
Fix the namespace following an earlier rename | using System;
using FluentMigrator.Runner;
using FluentMigrator.Runner.Announcers;
using FluentMigrator.Runner.Initialization;
using FluentMigrator.Runner.Processors.SqlServer;
namespace BroadbandStats.Database.Migrations
{
public sealed class Migrator
{
private readonly string connectionString;
... | using System;
using BroadbandStats.Database.Migrations.Migrations;
using FluentMigrator.Runner;
using FluentMigrator.Runner.Announcers;
using FluentMigrator.Runner.Initialization;
using FluentMigrator.Runner.Processors.SqlServer;
namespace BroadbandStats.Database.Migrations
{
public sealed class Migrator
{
... |
Change default world size to compensate for use of chunks | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Data
{
public class OnionState
{
public bool Enabled { get; set; } = true;
public bool CustomWorldSize { get; set; } = false;
public int Width { get; set... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Data
{
public class OnionState
{
public bool Enabled { get; set; } = true;
public bool CustomWorldSize { get; set; } = false;
public int Width { get; set... |
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... |
Add HardRock position mangling for CatchTheBeat | // 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.Game.Rulesets.Mods;
namespace osu.Game.Rulesets.Catch.Mods
{
public class CatchModHardRock : ModHardRock
{
public override double Sc... | // 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.MathUtils;
using osu.Game.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Mods;
using System;
namespace osu.Game.Rulesets.Catch.Mods
{
... |
Add BMP version to initiation message | using System;
namespace BmpListener.Bmp
{
public class BmpInitiation : BmpMessage
{
public BmpInitiation(BmpHeader bmpHeader)
: base(bmpHeader)
{ }
}
} | using System;
namespace BmpListener.Bmp
{
public class BmpInitiation : BmpMessage
{
public BmpInitiation(BmpHeader bmpHeader)
: base(bmpHeader)
{
BmpVersion = BmpHeader.Version;
}
public int BmpVersion { get; }
}
} |
Implement text copying to Clipboard. | using System.Windows.Input;
using Microsoft.Practices.Prism.Commands;
namespace TimesheetParser
{
class MainViewModel
{
public ICommand CopyCommand { get; set; }
public MainViewModel()
{
CopyCommand = new DelegateCommand<string>(CopyCommand_Executed);
}
vo... | using System.Windows;
using System.Windows.Input;
using Microsoft.Practices.Prism.Commands;
namespace TimesheetParser
{
class MainViewModel
{
public ICommand CopyCommand { get; set; }
public MainViewModel()
{
CopyCommand = new DelegateCommand<string>(CopyCommand_Executed);... |
Hide the site report on really small screens. | @using DataAccess
@using Localization
@using WebApplication.Helpers
@using WebGrease
@model IEnumerable<DataAccess.Site>
@{
ViewBag.Title = Resources.LabelSitesList;
}
@Html.Partial("_PageTitlePartial")
<table class="table">
<tr>
<th></th>
<th>
@Html.DisplayNameFor(model => model.Na... | @using DataAccess
@using Localization
@using WebApplication.Helpers
@using WebGrease
@model IEnumerable<DataAccess.Site>
@{
ViewBag.Title = Resources.LabelSitesList;
}
@Html.Partial("_PageTitlePartial")
<table class="table">
<tr>
<th></th>
<th>
@Html.DisplayNameFor(model => model.Na... |
Implement basic IRC Message without parsing IRC format yet | //
// Copyright 2014 luke
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | //
// Copyright 2014 luke
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
Fix daemon event loop bugs | using System.Linq;
using OdjfsScraper.Database;
namespace OdjfsScraper.Tool.Support
{
public class DaemonEventLoop
{
private readonly Entities _ctx;
public DaemonEventLoop(Entities ctx)
{
_ctx = ctx;
UpdateCounts();
CurrentStep = 0;
IsRun... | using System.Linq;
using OdjfsScraper.Database;
namespace OdjfsScraper.Tool.Support
{
public class DaemonEventLoop
{
private readonly Entities _ctx;
public DaemonEventLoop(Entities ctx)
{
_ctx = ctx;
UpdateCounts();
CurrentStep = -1;
IsRu... |
Add an IntentFilter to handle osu! files. | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using Android.App;
using Android.Content.PM;
using Android.OS;
using Android.Views;
using osu.Framework.Android;
namespace osu.Android
{
[Activity(Theme = "@android... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.OS;
using Android.Views;
using osu.Framework.Android;
namespace osu.Android
{
[Ac... |
Change how yield works: treat more op types as "progress". | using System;
using System.Collections.Generic;
using System.Linq;
namespace ActorTestingFramework
{
public class RandomScheduler : IScheduler
{
private readonly Random rand;
public RandomScheduler(int seed)
{
rand = new Random(seed);
}
private static bool... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ActorTestingFramework
{
public class RandomScheduler : IScheduler
{
private readonly Random rand;
public RandomScheduler(int seed)
{
rand = new Random(seed);
}
private static bool... |
Fix an issue where ISerializable is not available on .NET Core | using System.Reflection;
#if !NETCORE
using System.Runtime.Serialization;
#endif
namespace Moq
{
/// <summary>
/// A <see cref="IDefaultValueProvider"/> that returns an empty default value
/// for serializable types that do not implement <see cref="ISerializable"/> properly,
/// and returns the value provided b... | using System.Reflection;
#if !NETCORE
using System.Runtime.Serialization;
#endif
namespace Moq
{
#if !NETCORE
/// <summary>
/// A <see cref="IDefaultValueProvider"/> that returns an empty default value
/// for serializable types that do not implement <see cref="ISerializable"/> properly,
/// and returns the val... |
Fix execution of windows app | using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Hosting.WindowsServices;
using Resonance.Common.Web;
using System.Diagnostics;
using System.Linq;
namespace Resonance.Windows
{
public class Program
{
public static void Main(string[] args)
{
var isService = !(Debugger.... | using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Hosting.WindowsServices;
using Resonance.Common.Web;
using System.Diagnostics;
using System.Linq;
namespace Resonance.Windows
{
public class Program
{
public static void Main(string[] args)
{
System.IO.Directory.SetCurr... |
Fix issue of singleton causing false-positives during running of full test-suite | using System;
using System.Collections.Generic;
namespace RimDev.Supurlative
{
public class SupurlativeOptions
{
public static readonly SupurlativeOptions Defaults =
new SupurlativeOptions();
public UriKind UriKind { get; set; }
public string PropertyNameSeperator { get; s... | using System;
using System.Collections.Generic;
namespace RimDev.Supurlative
{
public class SupurlativeOptions
{
public static SupurlativeOptions Defaults
{
get
{
return new SupurlativeOptions();
}
}
public UriKind UriKind { ... |
Add way to record usage, fix LoadAllGifsAsync | using Microsoft.Data.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GifWin.Data
{
class GifWinDatabaseHelper : IDisposable
{
GifWinContext db;
public GifWinDatabaseHelper()
{
db = new Gi... | using Microsoft.Data.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GifWin.Data
{
class GifWinDatabaseHelper : IDisposable
{
GifWinContext db;
public GifWinDatabaseHelper()
{
db = new Gi... |
Use `TaskHelper` instead of TCS | using System;
using System.Threading.Tasks;
namespace MicroFlow
{
public abstract class SyncActivity<TResult> : Activity<TResult>
{
public sealed override Task<TResult> Execute()
{
var tcs = new TaskCompletionSource<TResult>();
try
{
TResult result = ExecuteActivity();
tc... | using System;
using System.Threading.Tasks;
namespace MicroFlow
{
public abstract class SyncActivity<TResult> : Activity<TResult>
{
public sealed override Task<TResult> Execute()
{
try
{
TResult result = ExecuteActivity();
return TaskHelper.FromResult(result);
}
catc... |
Bring back setting the app name based on the package info | using Newtonsoft.Json;
using ReactiveUI.Mobile;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Akavache.Mobile
{
public class Registrations : IWantsToRegisterStuff
{
public void Register(Action<Func<object>, Type, string> r... | using Newtonsoft.Json;
using ReactiveUI.Mobile;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#if UIKIT
using MonoTouch.Foundation;
using ReactiveUI.Mobile;
#endif
#if APPKIT
using MonoMac.Foundation;
#endif
#if ANDROID
using Android.App;
#endif
... |
Add Warning value to the enumeration. | namespace HtmlLogger.Model
{
public enum LogCategory
{
Info,
Error
}
} | namespace HtmlLogger.Model
{
public enum LogCategory
{
Info,
Warning,
Error
}
} |
Update the assembly version for LibPhoneNumber.Contrib since we added a new extension method. | 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("Li... | 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("Li... |
Fix code as suggested by compiler. | using ServiceStack.OrmLite;
namespace Nonagon.Modular
{
/// <summary>
/// Data module interface base class.
/// </summary>
public abstract class DataModuleInterface : ModuleInterface, IDataModuleInterface
{
/// <summary>
/// Gets or sets the db connection factory.
/// </summary>
/// <value>The db connecti... | using ServiceStack.OrmLite;
namespace Nonagon.Modular
{
/// <summary>
/// Data module interface base class.
/// </summary>
public abstract class DataModuleInterface : ModuleInterface, IDataModuleInterface
{
/// <summary>
/// Gets or sets the db connection factory.
/// </summary>
/// <value>The db connecti... |
Update alias in usage examples | using System.Collections.Generic;
using CommandLine;
using CommandLine.Text;
namespace dotnet_setversion
{
public class Options
{
[Option('r', "recursive", Default = false, HelpText =
"Recursively search the current directory for csproj files and apply the given version to all files found.... | using System.Collections.Generic;
using CommandLine;
using CommandLine.Text;
namespace dotnet_setversion
{
public class Options
{
[Option('r', "recursive", Default = false, HelpText =
"Recursively search the current directory for csproj files and apply the given version to all files found.... |
Fix out of range exceptions due to out-of-order hitobjects. | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Rulesets.Beatmaps;
using osu.Game.Rulesets.Mania.Objects;
using System;
using System.Collections.Generic;
using osu.Game.Beatmaps;
using osu.Game... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Rulesets.Beatmaps;
using osu.Game.Rulesets.Mania.Objects;
using System;
using System.Collections.Generic;
using osu.Game.Beatmaps;
using osu.Game... |
Allow payments to be marked as reconciled | using System;
namespace XeroApi.Model
{
public class Payment : EndpointModelBase
{
[ItemId]
public Guid? PaymentID { get; set; }
public DateTime Date { get; set; }
public decimal Amount { get; set; }
public string Reference { get; set; }
public... | using System;
namespace XeroApi.Model
{
public class Payment : EndpointModelBase
{
[ItemId]
public Guid? PaymentID { get; set; }
public DateTime Date { get; set; }
public decimal Amount { get; set; }
public string Reference { get; set; }
public... |
Update code generator relative filepath | using System;
using System.IO;
namespace LibSassGen
{
public partial class CodeGenerator
{
private const string DefaultIncludeDir = @"../../../../../libsass/include";
private const string DefaultOutputFilePath = @"../../../../SharpScss/LibSass.Generated.cs";
private const int IndentMu... | using System;
using System.IO;
namespace LibSassGen
{
public partial class CodeGenerator
{
private const string DefaultIncludeDir = @"../../../../libsass/include";
private const string DefaultOutputFilePath = @"../../../SharpScss/LibSass.Generated.cs";
private const int IndentMultiplie... |
Make main program class static | using System;
using System.IO;
using System.Security.Cryptography;
using Mono.Security;
using Mono.Security.Cryptography;
namespace Xpdm.PurpleOnion
{
class Program
{
private static void Main()
{
long count = 0;
while (true)
{
RSA pki = RSA.Create();
ASN1 asn = RSAExtensions.ToAsn1Key(pki);
... | using System;
using System.IO;
using System.Security.Cryptography;
using Mono.Security;
using Mono.Security.Cryptography;
namespace Xpdm.PurpleOnion
{
static class Program
{
private static void Main()
{
long count = 0;
while (true)
{
RSA pki = RSA.Create();
ASN1 asn = RSAExtensions.ToAsn1Key(pki... |
Fix crash when clearing resetting template | using System;
using System.Resources;
using System.Windows.Data;
namespace GoldenAnvil.Utility.Windows
{
public sealed class EnumToDisplayStringConverter : IValueConverter
{
public static readonly EnumToDisplayStringConverter Instance = new EnumToDisplayStringConverter();
public object Convert(object value, Ty... | using System;
using System.Resources;
using System.Windows.Data;
namespace GoldenAnvil.Utility.Windows
{
public sealed class EnumToDisplayStringConverter : IValueConverter
{
public static readonly EnumToDisplayStringConverter Instance = new EnumToDisplayStringConverter();
public object Convert(object value, Ty... |
Remove obsolete methods and add sumary texts. | using System;
using System.Data;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Data
{
public interface IDbFactory
{
/// <summary>
/// Creates an instance of your ISession expanded interface
/// </summary>
/// <typeparam name="T"></typeparam>
/// <returns>ISession</r... | using System;
using System.Data;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Data
{
public interface IDbFactory
{
/// <summary>
/// Creates an instance of your ISession expanded interface
/// </summary>
/// <typeparam name="T"></typeparam>
/// <returns>ISession</r... |
Change default user agent for web views | using CefSharp;
using CefSharp.Wpf;
using Playnite.Common;
using Playnite.Settings;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Playnite
{
public class CefTools
{
public static bool IsInit... | using CefSharp;
using CefSharp.Wpf;
using Playnite.Common;
using Playnite.Settings;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Playnite
{
public class CefTools
{
public static bool IsInit... |
Delete override keyword from Equals method to indicate that this method implement interface | using System;
using System.Collections.Generic;
namespace TirkxDownloader.Framework
{
public sealed class Pair<TFirst, TSecond> : IEquatable<Pair<TFirst, TSecond>>
{
private readonly TFirst first;
private readonly TSecond second;
public Pair(TFirst first, TSecond second)
{
... | using System;
using System.Collections.Generic;
namespace TirkxDownloader.Framework
{
public sealed class Pair<TFirst, TSecond> : IEquatable<Pair<TFirst, TSecond>>
{
private readonly TFirst first;
private readonly TSecond second;
public Pair(TFirst first, TSecond second)
{
... |
Return instead of using a variable. | using System;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Schema;
using NUnit.Framework;
namespace SharpBrake.Tests
{
public class AirbrakeValidator
{
public static void ValidateSchema(string xml)
{
var schema = GetXmlSchema();
XmlReaderSetti... | using System;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Schema;
using NUnit.Framework;
namespace SharpBrake.Tests
{
public class AirbrakeValidator
{
public static void ValidateSchema(string xml)
{
var schema = GetXmlSchema();
XmlReaderSetti... |
Update vendor api to ensure task returned | using Alexa.NET.Management.Vendors;
using Refit;
namespace Alexa.NET.Management
{
[Headers("Authorization: Bearer")]
public interface IVendorApi
{
[Get("/vendors")]
Vendor[] Get();
}
}
| using System.Threading.Tasks;
using Alexa.NET.Management.Vendors;
using Refit;
namespace Alexa.NET.Management
{
[Headers("Authorization: Bearer")]
public interface IVendorApi
{
[Get("/vendors")]
Task<Vendor[]> Get();
}
}
|
Remove old XNAControls code from initialization. Crash & burn if old XNAControls are used. | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using EndlessClient.GameExecution;
using EOLib.DependencyInjection;
using Microsoft.Practices.Unity;
using Microsoft.Xna.Framework;
namespace EndlessClient
{
public ... | // Original Work Copyright (c) Ethan Moffat 2014-2016
// This file is subject to the GPL v2 License
// For additional details, see the LICENSE file
using EndlessClient.GameExecution;
using EOLib.DependencyInjection;
using Microsoft.Practices.Unity;
using Microsoft.Xna.Framework;
namespace EndlessClient
{
public ... |
Set preUpdate to null with the rest of the hooks. | using System;
using System.Collections.Generic;
using System.Linq;
using Prism.API;
namespace Prism.Mods.Hooks
{
class ModDefHooks : IHookManager
{
IEnumerable<Action>
onAllModsLoaded,
onUnload ,
preUpdate ,
postUpdate ;
public vo... | using System;
using System.Collections.Generic;
using System.Linq;
using Prism.API;
namespace Prism.Mods.Hooks
{
class ModDefHooks : IHookManager
{
IEnumerable<Action>
onAllModsLoaded,
onUnload ,
preUpdate ,
postUpdate ;
public vo... |
Fix PublishedSnapshotAccessor to not throw but return null | using System;
namespace Umbraco.Web.PublishedCache
{
public class UmbracoContextPublishedSnapshotAccessor : IPublishedSnapshotAccessor
{
private readonly IUmbracoContextAccessor _umbracoContextAccessor;
public UmbracoContextPublishedSnapshotAccessor(IUmbracoContextAccessor umbracoContextAcces... | using System;
namespace Umbraco.Web.PublishedCache
{
public class UmbracoContextPublishedSnapshotAccessor : IPublishedSnapshotAccessor
{
private readonly IUmbracoContextAccessor _umbracoContextAccessor;
public UmbracoContextPublishedSnapshotAccessor(IUmbracoContextAccessor umbracoContextAcces... |
Change interop calls to directly pinvoke. | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Runtime.InteropServices;
namespace MICore
{
internal class NativeMethods
{
// TODO: It would be better to route these to th... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Runtime.InteropServices;
namespace MICore
{
internal class NativeMethods
{
private const string Libc = "libc";
[Dl... |
Use Py.GIL directly, now that it doesn't try to init anymore | using System;
using System.Text;
namespace Python.Runtime
{
using static Runtime;
[Obsolete("Only to be used from within Python")]
static class Loader
{
public unsafe static int Initialize(IntPtr data, int size)
{
try
{
var dllPath = Encoding.UTF... | using System;
using System.Text;
namespace Python.Runtime
{
using static Runtime;
[Obsolete("Only to be used from within Python")]
static class Loader
{
public unsafe static int Initialize(IntPtr data, int size)
{
try
{
var dllPath = Encoding.UTF... |
Support commit listing for single file within repository | using System;
using GitHubSharp.Models;
using System.Collections.Generic;
namespace GitHubSharp.Controllers
{
public class CommitsController : Controller
{
public RepositoryController RepositoryController { get; private set; }
public CommitController this[string key]
{
get ... | using System;
using GitHubSharp.Models;
using System.Collections.Generic;
namespace GitHubSharp.Controllers
{
public class CommitsController : Controller
{
public string FilePath { get; set; }
public RepositoryController RepositoryController { get; private set; }
public CommitControll... |
Set default target path gizmo curve color | namespace ATP.AnimationPathTools {
public class TargetAnimationPath : AnimationPath {
}
}
| using UnityEngine;
namespace ATP.AnimationPathTools {
public class TargetAnimationPath : AnimationPath {
/// <summary>
/// Color of the gizmo curve.
/// </summary>
private Color gizmoCurveColor = Color.magenta;
}
}
|
Convert Distance to Expression Bodied Member | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TourOfCSharp6
{
public class Point
{
public double X { get; set; }
public double Y { get; set; }
public double Distance
{
get
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TourOfCSharp6
{
public class Point
{
public double X { get; set; }
public double Y { get; set; }
public double Distance => Math.Sqrt(X * X + Y * Y);
}
}
|
Revert "bump version again to 1.3.76.0" | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[ assembly : ComVisible( false ) ]
[ assembly : AssemblyProduct( "ShipStationAccess" ) ]
[ assembly : AssemblyCompany( "Agile Harbor, LLC" ) ]
[ assembly : AssemblyCopyright( "Copyright (C) Agile Harbor, LLC" ) ]
[ assembly : Assembly... | using System;
using System.Reflection;
using System.Runtime.InteropServices;
[ assembly : ComVisible( false ) ]
[ assembly : AssemblyProduct( "ShipStationAccess" ) ]
[ assembly : AssemblyCompany( "Agile Harbor, LLC" ) ]
[ assembly : AssemblyCopyright( "Copyright (C) Agile Harbor, LLC" ) ]
[ assembly : Assembly... |
Use StringEnumConvert for Approvals.VerifyJson / VerifyMe | namespace CertiPay.Common.Testing
{
using ApprovalTests;
using Newtonsoft.Json;
using Ploeh.AutoFixture;
public static class TestExtensions
{
private static readonly Fixture _fixture = new Fixture { };
/// <summary>
/// Runs ApprovalTests's VerifyJson against a JSON.net se... | namespace CertiPay.Common.Testing
{
using ApprovalTests;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Ploeh.AutoFixture;
public static class TestExtensions
{
private static readonly Fixture _fixture = new Fixture { };
private static readonly JsonSerializerSet... |
Fix bug in pinmode usage The device.PinMode was being set from internal members which had not been stored yet. Would result in Relay module not working as expected. | using System;
namespace GrovePi.Sensors
{
public abstract class Sensor<TSensorType> where TSensorType : class
{
protected readonly IGrovePi Device;
protected readonly Pin Pin;
internal Sensor(IGrovePi device, Pin pin, PinMode pinMode)
{
if (device == null) throw ne... | using System;
namespace GrovePi.Sensors
{
public abstract class Sensor<TSensorType> where TSensorType : class
{
protected readonly IGrovePi Device;
protected readonly Pin Pin;
internal Sensor(IGrovePi device, Pin pin, PinMode pinMode)
{
if (device == null) throw ne... |
Revert "Now with "yield" in GetaNum()" | using System.Collections;
class IENumDemo
{
/// <summary>
/// Create a cosinus table enumerator with 0..360 deg values
/// </summary>
private IEnumerator costable = new Func<List<float>>(() =>
{
List<float> nn = new List<float>();
for (int v = 0; v < 360; v++)
... | using System.Collections;
class IENumDemo
{
/// <summary>
/// Create a cosinus table enumerator with 0..360 deg values
/// </summary>
private IEnumerator costable = new Func<List<float>>(() =>
{
List<float> nn = new List<float>();
for (int v = 0; v < 360; v++)
... |
Update description to match mania mirror implementation | // 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.Bindables;
using osu.Game.Configuration;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Osu.Obje... | // 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.Bindables;
using osu.Game.Configuration;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Osu.Obje... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.