Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Make sure to assign concatted value to variable
using System.Collections.Generic; using System.IO; using System.Linq; using ICSharpCode.SharpZipLib.Tar; namespace AppHarbor { public static class CompressionExtensions { public static void ToTar(this DirectoryInfo sourceDirectory, Stream output) { var archive = TarArchive.CreateOutputTarArchive(output); ...
using System.Collections.Generic; using System.IO; using System.Linq; using ICSharpCode.SharpZipLib.Tar; namespace AppHarbor { public static class CompressionExtensions { public static void ToTar(this DirectoryInfo sourceDirectory, Stream output) { var archive = TarArchive.CreateOutputTarArchive(output); ...
Remove startup delay from project template.
using Windows.UI.Xaml; using System.Threading.Tasks; using TraktApiSharp.Example.UWP.Services.SettingsServices; using Windows.ApplicationModel.Activation; using Template10.Controls; using Template10.Common; using System; using System.Linq; using Windows.UI.Xaml.Data; namespace TraktApiSharp.Example.UWP { /// Docum...
using System.Threading.Tasks; using Template10.Controls; using TraktApiSharp.Example.UWP.Services.SettingsServices; using Windows.ApplicationModel.Activation; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; namespace TraktApiSharp.Example.UWP { /// Documentation on APIs used in this page: /// https://github...
Add skipCertVerify back to options
using CommandLine; using CommandLine.Text; namespace Builder { public enum OptionBool { False, True } public class Options { [Option("buildDir", Required = true)] public string BuildDir { get; set; } [Option("buildArtifactsCacheDir", Required = false)] ...
using CommandLine; using CommandLine.Text; namespace Builder { public enum OptionBool { False, True } public class Options { [Option("buildDir", Required = true)] public string BuildDir { get; set; } [Option("buildArtifactsCacheDir", Required = false)] ...
Update change user, don't update if same val.
using System; using System.Collections.Generic; using System.IO; using UnityEngine; public class ProfileKeys { public static string login_count = "login_count"; } public class Profile : DataObject { public virtual int login_count { get { return Get<int>(ProfileKeys.login_count); ...
using System; using System.Collections.Generic; using System.IO; using UnityEngine; public class ProfileKeys { public static string login_count = "login_count"; } public class Profile : DataObject { public virtual int login_count { get { return Get<int>(ProfileKeys.login_count); ...
Use Array.Empty instead of list.
using System; using System.Collections.Generic; using Avalonia.Native.Interop; using Avalonia.Platform; namespace Avalonia.Native { class ScreenImpl : IScreenImpl, IDisposable { private IAvnScreens _native; public ScreenImpl(IAvnScreens native) { _native = native; }...
using System; using System.Collections.Generic; using Avalonia.Native.Interop; using Avalonia.Platform; namespace Avalonia.Native { class ScreenImpl : IScreenImpl, IDisposable { private IAvnScreens _native; public ScreenImpl(IAvnScreens native) { _native = native; }...
Update test utility class for new ILibrary interface.
using System.IO; using CppSharp.Generators; namespace CppSharp.Utils { public abstract class LibraryTest : ILibrary { readonly string name; readonly LanguageGeneratorKind kind; public LibraryTest(string name, LanguageGeneratorKind kind) { this.name = name; ...
using System.IO; using CppSharp.Generators; namespace CppSharp.Utils { public abstract class LibraryTest : ILibrary { readonly string name; readonly LanguageGeneratorKind kind; public LibraryTest(string name, LanguageGeneratorKind kind) { this.name = name; ...
Set compatibility version to 2.2 in simple API test project
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using ExplicitlyImpl.AspNetCore.Mvc.FluentActions; namespace SimpleApi { public class Startup { public void ConfigureServices(IServiceCollection services) { servi...
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; using ExplicitlyImpl.AspNetCore.Mvc.FluentActions; using Microsoft.AspNetCore.Mvc; namespace SimpleApi { public class Startup { public void ConfigureServices(IServiceCollection servi...
Remove refs to "ShowPager" that isn't relevant any more
@model PagedMemberListViewModel @using GiveCRM.Web.Models.Members @using PagedList.Mvc @{ Layout = null; } <script src="@Url.Content("~/Scripts/ViewScripts/MemberList.js")" type="text/javascript"></script> <script type="text/javascript"> $(function () { MemberList.Initialise(); }); </script> @i...
@model PagedMemberListViewModel @using GiveCRM.Web.Models.Members @using PagedList.Mvc @{ Layout = null; } <script src="@Url.Content("~/Scripts/ViewScripts/MemberList.js")" type="text/javascript"></script> <script type="text/javascript"> $(function () { MemberList.Initialise(); }); </script> @i...
Add - Aggiunta la registrazione nella composition root della ricerca della richiesta di assistenza
using Microsoft.Extensions.Configuration; using Persistence.MongoDB; using SimpleInjector; using SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso; using SO115App.Persistence.MongoDB; namespace SO115App.CompositionRoot { internal static class PersistenceServicesConfigurator_MongoDB { interna...
using Microsoft.Extensions.Configuration; using Persistence.MongoDB; using SimpleInjector; using SO115App.API.Models.Servizi.Infrastruttura.GestioneSoccorso; using SO115App.Models.Servizi.Infrastruttura.GestioneSoccorso; using SO115App.Persistence.MongoDB; namespace SO115App.CompositionRoot { internal static clas...
Switch Conduit to use rift.lol
using System; using System.IO; namespace Conduit { class Program { public static string APP_NAME = "Mimic Conduit"; public static string VERSION = "2.0.0"; public static string HUB_WS = "ws://127.0.0.1:51001/conduit"; public static string HUB = "http://127.0.0.1:510...
using System; using System.IO; namespace Conduit { class Program { public static string APP_NAME = "Mimic Conduit"; public static string VERSION = "2.0.0"; public static string HUB_WS = "ws://rift.mimic.lol/conduit"; public static string HUB = "https://rift.mimic.lo...
Enable shutdown and set reset period.
using Topshelf; using Topshelf.HostConfigurators; namespace Cogito.Components.Server { public static class Program { /// <summary> /// Main application entry point. /// </summary> /// <param name="args"></param> /// <returns></returns> public static int Main(s...
using Topshelf; using Topshelf.HostConfigurators; namespace Cogito.Components.Server { public static class Program { /// <summary> /// Main application entry point. /// </summary> /// <param name="args"></param> /// <returns></returns> public static int Main(s...
Create the log file if it doesn't already exist
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UKParliData.BPTweets { public class TweetLog : ITweetLog { private string filename; public TweetLog(string filename) { this.filena...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UKParliData.BPTweets { public class TweetLog : ITweetLog { private string filename; public TweetLog(string filename) { this.filena...
Use using() for Ninject kernel.
using System; using System.Linq; using CommandLine; using Ninject; using P2E.ExtensionMethods; using P2E.Interfaces.AppLogic; using P2E.Interfaces.CommandLine; namespace P2EApp { internal static class Program { static void Main(string[] args) { try { var...
using System; using System.Linq; using CommandLine; using Ninject; using P2E.ExtensionMethods; using P2E.Interfaces.AppLogic; using P2E.Interfaces.CommandLine; namespace P2EApp { internal static class Program { static void Main(string[] args) { try { // ...
Fix threading issue on initialisation
using EPiServer.Framework.Localization; using EPiServer.ServiceLocation; using EPiServer.Web; namespace AlloyDemoKit.Business.Channels { /// <summary> /// Base class for all resolution definitions /// </summary> public abstract class DisplayResolutionBase : IDisplayResolution { private Inje...
using System; using EPiServer.Framework.Localization; using EPiServer.ServiceLocation; using EPiServer.Web; namespace AlloyDemoKit.Business.Channels { /// <summary> /// Base class for all resolution definitions /// </summary> public abstract class DisplayResolutionBase : IDisplayResolution { ...
Add missing RotateZ helper function.
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace ModGL.Numerics { public static class MatrixExtensions { public static Matrix4f Translate(this Matrix4f mat, Vector3f offset) { return...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; namespace ModGL.Numerics { public static class MatrixExtensions { public static Matrix4f Translate(this Matrix4f mat, Vector3f offset) { return...
Add help text when incorrect args passed in
namespace Sitecore.Courier.Runner { using Sitecore.Update; using Sitecore.Update.Engine; using System; /// <summary> /// Defines the program class. /// </summary> internal class Program { /// <summary> /// Mains the specified args. /// </summary> /// <pa...
namespace Sitecore.Courier.Runner { using Sitecore.Update; using Sitecore.Update.Engine; using System; /// <summary> /// Defines the program class. /// </summary> internal class Program { /// <summary> /// Mains the specified args. /// </summary> /// <pa...
Apply a ReadTimeout/WriteTimeout to serialport stream
using System; using System.IO.Ports; using MYCroes.ATCommands; using MYCroes.ATCommands.Forwarding; namespace SupportManager.Control { public class ATHelper : IDisposable { private readonly SerialPort serialPort; public ATHelper(string port) { serialPort = new SerialPort(po...
using System; using System.IO.Ports; using MYCroes.ATCommands; using MYCroes.ATCommands.Forwarding; namespace SupportManager.Control { public class ATHelper : IDisposable { private readonly SerialPort serialPort; public ATHelper(string port) { serialPort = new SerialPort(po...
Test that a non thrown exception produces a report
using Bugsnag.Payload; using Xunit; namespace Bugsnag.Tests { public class ReportTests { [Fact] public void BasicTest() { System.Exception exception = null; var configuration = new Configuration("123456"); try { throw new System.Exception("test"); } catch (S...
using Bugsnag.Payload; using Xunit; namespace Bugsnag.Tests { public class ReportTests { [Fact] public void BasicTest() { System.Exception exception = null; var configuration = new Configuration("123456"); try { throw new System.Exception("test"); } catch (S...
Fix CppCodegen build break and hook up CppCodegen to TFS build
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using ILCompiler.DependencyAnalysisFramework; using Internal.TypeSystem; namespace ILCompiler.Depend...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using ILCompiler.DependencyAnalysisFramework; using Internal.TypeSystem; namespace ILCompiler.Depend...
Fix huge oops in test scene (we actually want ConfigureAwait(true) here)
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading; using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Shapes; using osuTK; namespace osu.Framework.Tests.Visual.Drawa...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading; using NUnit.Framework; using osu.Framework.Graphics; using osu.Framework.Graphics.Shapes; using osuTK; namespace osu.Framework.Tests.Visual.Drawa...
Add extension method with environment string
// // Copyright 2017 the original author or authors. // // 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 ...
// // Copyright 2017 the original author or authors. // // 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 ...
Add support for ctm model format
// // //------------------------------------------------------------------------------------------------- // // // <copyright file="ModelFormats.cs" company="Microsoft Corporation"> // // // Copyright (c) Microsoft Corporation. All rights reserved. // // // </copyright> // // //---------------------------------------...
// // //------------------------------------------------------------------------------------------------- // // // <copyright file="ModelFormats.cs" company="Microsoft Corporation"> // // // Copyright (c) Microsoft Corporation. All rights reserved. // // // </copyright> // // //---------------------------------------...
Use informational attribute for version
using System; using System.Deployment.Application; using System.Globalization; using System.Windows; using System.Windows.Documents; using StringResources = PackageExplorer.Resources.Resources; namespace PackageExplorer { /// <summary> /// Interaction logic for AboutWindow.xaml /// </summary> public p...
using System; using System.Deployment.Application; using System.Globalization; using System.Reflection; using System.Windows; using System.Windows.Documents; using StringResources = PackageExplorer.Resources.Resources; namespace PackageExplorer { /// <summary> /// Interaction logic for AboutWindow.xaml //...
Test 1st commit from explorer to GitHub.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace NativeWiFiApi_TestWinForm { public partial class Form1 : Form { public Form1() { ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace NativeWiFiApi_TestWinForm { public partial class Form1 : Form { public Form1() { ...
Enforce an exception when the ETL has failed
using System; using System.Collections.Generic; using System.Linq; using Microsoft.SqlServer.Dts.Runtime; namespace NBi.Core.Etl.IntegrationService { abstract class EtlRunner: IEtlRunner { public IEtl Etl { get; private set; } public EtlRunner(IEtl etl) { Etl ...
using System; using System.Collections.Generic; using System.Linq; using Microsoft.SqlServer.Dts.Runtime; namespace NBi.Core.Etl.IntegrationService { abstract class EtlRunner: IEtlRunner { public IEtl Etl { get; private set; } public EtlRunner(IEtl etl) { Etl ...
Allow passing fields to next/previous page filters
using ShopifySharp.Filters; using ShopifySharp.Infrastructure; using System.Collections.Generic; using System.Linq; namespace ShopifySharp.Lists { public class ListResult<T> { public IEnumerable<T> Items { get; } public LinkHeaderParseResult<T> LinkHeader { get; } public bool HasNextP...
using ShopifySharp.Filters; using ShopifySharp.Infrastructure; using System.Collections.Generic; using System.Linq; namespace ShopifySharp.Lists { public class ListResult<T> { public IEnumerable<T> Items { get; } public LinkHeaderParseResult<T> LinkHeader { get; } public bool HasNextP...
Fix Dialoguer using a deprecated Unity feature
using UnityEngine; using UnityEditor; using System.Collections; using DialoguerEditor; public class DialogueEditorAssetModificationProcessor : UnityEditor.AssetModificationProcessor { public static string[] OnWillSaveAssets(string[] paths){ //DialogueEditorWindow window = (DialogueEditorWindow)EditorWindow.GetWind...
using UnityEngine; using UnityEditor; using System.Collections; using DialoguerEditor; public class DialogueEditorAssetModificationProcessor : UnityEditor.AssetModificationProcessor { public static string[] OnWillSaveAssets(string[] paths){ //DialogueEditorWindow window = (DialogueEditorWindow)EditorWindow.GetWind...
Add simulate call to robot
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Halodi.Physics.Interfaces { public abstract class IPhysicsEngine : MonoBehaviour { public abstract IRevoluteJointPhysics AddRevoluteJoint(ArticulationRevoluteJoint joint); public abstract IPrismat...
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Halodi.Physics.Interfaces { public abstract class IPhysicsEngine : MonoBehaviour { public abstract IRevoluteJointPhysics AddRevoluteJoint(ArticulationRevoluteJoint joint); public abstract IPrismat...
Use the new extension method
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Bugsnag.Sample.AspNet35 { public partial class Index : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { AspNet.Client.Current...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Bugsnag.AspNet; namespace Bugsnag.Sample.AspNet35 { public partial class Index : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ...
Add missing property, needed in web
using System.Collections.Generic; using System.Runtime.Serialization; using PS.Mothership.Core.Common.Template.Gen; namespace PS.Mothership.Core.Common.Dto.Application { [DataContract] public class ApplicationDetailsMetadataDto { [DataMember] public IList<GenBusinessLegalType> BusinessLega...
using System.Collections.Generic; using System.Runtime.Serialization; using PS.Mothership.Core.Common.Template.App; using PS.Mothership.Core.Common.Template.Gen; namespace PS.Mothership.Core.Common.Dto.Application { [DataContract] public class ApplicationDetailsMetadataDto { [DataMember] p...
Update linux HD serial number to pull a real value
// 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 AutomaticTypeMapper; namespace EOLib { #if LINUX [AutoMappedType] public class HDSerialNumberServiceLinux : IHDSerialNumberService { public str...
// 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 System.Diagnostics; using System.Linq; using System.Text.RegularExpressions; using AutomaticTypeMapper; namespace EOLib { #if LINUX [AutoMappedType] public...
Set geoip webservice to port 4000
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Hosting; using Newtonsoft.Json; using System.Net.Http; using Newtonsoft.Json.Linq; using GeoIP.Models; using GeoIP.Executers; // For more information on enabling ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Hosting; using Newtonsoft.Json; using System.Net.Http; using Newtonsoft.Json.Linq; using GeoIP.Models; using GeoIP.Executers; // For more information on enabling ...
Add vector scaling method to vector3
namespace DynamixelServo.Quadruped { public struct Vector3 { public readonly float X; public readonly float Y; public readonly float Z; public Vector3(float x, float y, float z) { X = x; Y = y; Z = z; } public static ...
namespace DynamixelServo.Quadruped { public struct Vector3 { public readonly float X; public readonly float Y; public readonly float Z; public Vector3(float x, float y, float z) { X = x; Y = y; Z = z; } public static ...
Define unused instance of Table
using System; using Table; public class Hangman { public static void Main(string[] args) { Console.WriteLine("Hello, World!"); Console.WriteLine("You entered the following {0} command line arguments:", args.Length ); for (int i=0; i < args.Length; i++) { Console.WriteLine("{0}", args[i]); ...
using System; using Table; public class Hangman { public static void Main(string[] args) { Table.Table t = new Table.Table(); Console.WriteLine("Hello, World!"); Console.WriteLine("You entered the following {0} command line arguments:", args.Length ); for (int i=0; i < args.Length; i++) { ...
Add EagerStaticConstructorOrder.ReflectionExecution, fix the typo EagerStaticConstructorOrder.TypeLoaderEnvirnoment -> TypeLoaderEnvironment
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace System.Runtime.CompilerServices { // When applied to a type this custom attribute will cause it's cctor to be executed during startup // rather bein...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace System.Runtime.CompilerServices { // When applied to a type this custom attribute will cause it's cctor to be executed during startup // rather bein...
Add support for obsolete collection initializers.
// 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.Collections.Immutable; using System.Composition; using Microsoft.CodeAnalysis.AddObsoleteAttribute; using Microsoft.CodeAnalysis.CodeFixes; nam...
// 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.Collections.Immutable; using System.Composition; using Microsoft.CodeAnalysis.AddObsoleteAttribute; using Microsoft.CodeAnalysis.CodeFixes; nam...
Add more default usings to new scripts.
using OpenTK; using OpenTK.Graphics; using StorybrewCommon.Scripting; using StorybrewCommon.Storyboarding; using StorybrewCommon.Storyboarding.Util; using StorybrewCommon.Mapset; using StorybrewCommon.Util; using System; using System.Collections.Generic; namespace StorybrewScripts { public class %CLASSNAME% : Sto...
using OpenTK; using OpenTK.Graphics; using StorybrewCommon.Mapset; using StorybrewCommon.Scripting; using StorybrewCommon.Storyboarding; using StorybrewCommon.Storyboarding.Util; using StorybrewCommon.Subtitles; using StorybrewCommon.Mapset; using StorybrewCommon.Util; using System; using System.Collections.Generic; ...
Fix for changes to default fileversion (00000).
using System.Diagnostics; using Cuemon.Extensions.Xunit; using Xunit; using Xunit.Abstractions; namespace Cuemon.Extensions.Diagnostics { public class FileVersionInfoExtensionsTest : Test { public FileVersionInfoExtensionsTest(ITestOutputHelper output) : base(output) { } [Fact...
using System.Diagnostics; using Cuemon.Extensions.Xunit; using Xunit; using Xunit.Abstractions; namespace Cuemon.Extensions.Diagnostics { public class FileVersionInfoExtensionsTest : Test { public FileVersionInfoExtensionsTest(ITestOutputHelper output) : base(output) { } [Fact...
Add property to use to determine the queue name to be used, and applied QueueName attribute to the property
using System; using System.Threading.Tasks; using MediatR; using SFA.DAS.EmployerApprenticeshipsService.Application.Messages; using SFA.DAS.EmployerApprenticeshipsService.Domain.Data; using SFA.DAS.Messaging; namespace SFA.DAS.EmployerApprenticeshipsService.Application.Commands.CreateEmployerAccount { public clas...
using System; using System.Threading.Tasks; using MediatR; using SFA.DAS.EmployerApprenticeshipsService.Application.Messages; using SFA.DAS.EmployerApprenticeshipsService.Domain.Attributes; using SFA.DAS.EmployerApprenticeshipsService.Domain.Data; using SFA.DAS.Messaging; namespace SFA.DAS.EmployerApprenticeshipsServ...
Add a link to "about trac" on the trac version number at the end
<script type="text/javascript">searchHighlight()</script> <?cs if:len(links.alternate) ?> <div id="altlinks"> <h3>Download in other formats:</h3> <ul><?cs each:link = links.alternate ?> <li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>> <a href="<?cs var:link.href ?>"<?cs if:link.cla...
<script type="text/javascript">searchHighlight()</script> <?cs if:len(links.alternate) ?> <div id="altlinks"> <h3>Download in other formats:</h3> <ul><?cs each:link = links.alternate ?> <li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>> <a href="<?cs var:link.href ?>"<?cs if:link.cla...
Add a link to "about trac" on the trac version number at the end
<script type="text/javascript">searchHighlight()</script> <?cs if:len(links.alternate) ?> <div id="altlinks"> <h3>Download in other formats:</h3> <ul><?cs each:link = links.alternate ?> <li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>> <a href="<?cs var:link.href ?>"<?cs if:link.cla...
<script type="text/javascript">searchHighlight()</script> <?cs if:len(links.alternate) ?> <div id="altlinks"> <h3>Download in other formats:</h3> <ul><?cs each:link = links.alternate ?> <li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>> <a href="<?cs var:link.href ?>"<?cs if:link.cla...
Add new payment sources (e.g. paynow etc)
using System.Runtime.Serialization; namespace Omise.Models { public enum OffsiteTypes { [EnumMember(Value = null)] None, [EnumMember(Value = "internet_banking_scb")] InternetBankingSCB, [EnumMember(Value = "internet_banking_bbl")] InternetBankingBBL, [En...
using System.Runtime.Serialization; namespace Omise.Models { public enum OffsiteTypes { [EnumMember(Value = null)] None, [EnumMember(Value = "internet_banking_scb")] InternetBankingSCB, [EnumMember(Value = "internet_banking_bbl")] InternetBankingBBL, [En...
Remove unnecessary check and throw (already throws)
/* * Programmed by Umut Celenli umut@celenli.com */ using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace MimeBank { /// <summary> /// This is the main class to check the file mime type /// Header list is loaded once /// </summary> public cla...
/* * Programmed by Umut Celenli umut@celenli.com */ using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace MimeBank { /// <summary> /// This is the main class to check the file mime type /// Header list is loaded once /// </summary> public cla...
Fix null-ref exception when doing get request
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; namespace System.S...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; namespace System.S...
Fix uri templates in episode requests.
namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Episodes { using Enums; using Objects.Basic; using Objects.Get.Shows.Episodes; using System.Collections.Generic; internal class TraktEpisodeCommentsRequest : TraktGetByIdEpisodeRequest<TraktPaginationListResult<TraktEpisodeComment>, TraktEpisodeC...
namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Episodes { using Enums; using Objects.Basic; using Objects.Get.Shows.Episodes; using System.Collections.Generic; internal class TraktEpisodeCommentsRequest : TraktGetByIdEpisodeRequest<TraktPaginationListResult<TraktEpisodeComment>, TraktEpisodeC...
Rename local variable for accuracy.
using System; using System.Diagnostics; namespace Fixie.Behaviors { public class ExecuteCases : InstanceBehavior { public void Execute(Fixture fixture) { foreach (var @case in fixture.Cases) { var result = @case.Execution; using (var con...
using System; using System.Diagnostics; namespace Fixie.Behaviors { public class ExecuteCases : InstanceBehavior { public void Execute(Fixture fixture) { foreach (var @case in fixture.Cases) { var execution = @case.Execution; using (var ...
Test that the initial nonce is set.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; namespace CertManager.Test.AcmeTests { [TestFixture] public class WhenInitializing : WithAcmeClient { public override async Task BecauseOf() { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; namespace CertManager.Test.AcmeTests { [TestFixture] public class WhenInitializing : WithAcmeClient { public override async Task BecauseOf() { ...
Change verb from get to post
using System; using DrClockwork.Domain.Logic; using DrClockwork.Domain.Models; using DrClockwork.Nancy.ViewModels; using Microsoft.AspNet.SignalR; using Nancy; using Nancy.ModelBinding; using Nancy.Validation; using Raven.Client; namespace DrClockwork.Nancy.Modules { public class AskModule : NancyModule { ...
using System; using DrClockwork.Domain.Logic; using DrClockwork.Domain.Models; using DrClockwork.Nancy.ViewModels; using Microsoft.AspNet.SignalR; using Nancy; using Nancy.ModelBinding; using Nancy.Validation; using Raven.Client; namespace DrClockwork.Nancy.Modules { public class AskModule : NancyModule { ...
Use ConditionalFact to not run tests on xplat
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; using Microsoft.AspNetCore.Server.IntegrationTesting; using Microsoft.AspNetCore.Testing.xunit; using Xunit; namespace M...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; using Microsoft.AspNetCore.Server.IntegrationTesting; using Microsoft.AspNetCore.Testing.xunit; using Xunit; namespace M...
Fix incorrect alive criteria causing clicking future objects to be too greedy
// 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.Game.Rulesets.Edit; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Osu.Edit.Blueprints.HitCircles.Components; using os...
// 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.Game.Rulesets.Edit; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Osu.Edit.Blueprints.HitCircles.Components; using os...
Fix server not starting on correct URL
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Yio.Utilities; namespace Yio { public c...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Yio.Utilities; namespace Yio { public c...
Test for petapoco to stay internal
using System; using System.Linq; using FluentAssertions; using NSaga; using Xunit; namespace Tests { public class NamespaceTests { [Fact] public void NSaga_Contains_Only_One_Namespace() { //Arrange var assembly = typeof(ISagaMediator).Assembly; // A...
using System; using System.Linq; using FluentAssertions; using NSaga; using PetaPoco; using Xunit; namespace Tests { public class NamespaceTests { [Fact] public void NSaga_Contains_Only_One_Namespace() { //Arrange var assembly = typeof(ISagaMediator).Assembly; ...
Add base method for testing conversion in other direction
// 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.Linq; using NUnit.Framework; using osu.Game.Beatmaps.Legacy; using osu.Game.Rulesets; namespace osu.Game.Tests.Beatmaps { /// <summary> ...
// 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.Linq; using NUnit.Framework; using osu.Game.Beatmaps.Legacy; using osu.Game.Rulesets; namespace osu.Game.Tests.Beatmaps { /// <summary> ...
Update field name change that got missed
using System.Collections.Generic; using System.Linq; namespace Glimpse.Web { public class FixedRequestAuthorizerProvider : IRequestAuthorizerProvider { public FixedRequestAuthorizerProvider() : this(Enumerable.Empty<IRequestAuthorizer>()) { } public FixedRequestAut...
using System.Collections.Generic; using System.Linq; namespace Glimpse.Web { public class FixedRequestAuthorizerProvider : IRequestAuthorizerProvider { public FixedRequestAuthorizerProvider() : this(Enumerable.Empty<IRequestAuthorizer>()) { } public FixedRequestAut...
Remove IClientPublisher service as it doesn't exist before
using Glimpse.Agent; using Microsoft.Framework.DependencyInjection; using Glimpse.Server.Web; using Microsoft.Framework.OptionsModel; namespace Glimpse { public class GlimpseServerWebServices { public static IServiceCollection GetDefaultServices() { var services = new ServiceCollec...
using Glimpse.Agent; using Microsoft.Framework.DependencyInjection; using Glimpse.Server.Web; using Microsoft.Framework.OptionsModel; namespace Glimpse { public class GlimpseServerWebServices { public static IServiceCollection GetDefaultServices() { var services = new ServiceCollec...
Add more tests to ensure secure properties are kept secure
using System; using NUnit.Framework; using MonoTorrent.BEncoding; namespace MonoTorrent.Common { [TestFixture] public class TorrentEditorTests { [Test] public void EditingCreatesCopy () { var d = Create ("comment", "a"); var editor = new TorrentEditor (d); ...
using System; using NUnit.Framework; using MonoTorrent.BEncoding; namespace MonoTorrent.Common { [TestFixture] public class TorrentEditorTests { [Test] public void EditingCreatesCopy () { var d = Create ("comment", "a"); var editor = new TorrentEditor (d); ...
Add - Aggiunto controller adibito alla gestione dei dati del Personale
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace SO115.ApiGateway.Controllers { [Route("api/[controller]")] [ApiController] public class PersonaleController : ControllerBase { ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using SO115App.ApiGateway.Classi; using SO115App.ApiGateway.Servizi; namespace SO115.ApiGateway.Controllers { [Route("api/[controller]")] [ApiContro...
Fix ordering of license header.
using System.Collections.Generic; using osu.Framework.Input; // 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.Replays; namespace osu.Game.Rulesets.Mania.Replays { internal class M...
// 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.Collections.Generic; using osu.Framework.Input; using osu.Game.Rulesets.Replays; namespace osu.Game.Rulesets.Mania.Replays { internal class M...
Change The Detail of the ajax Search
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using MMLibrarySystem.Models; namespace MMLibrarySystem.Controllers { public class BookListController : Controller { public ActionResult Index(string searchTerm = null) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using MMLibrarySystem.Models; namespace MMLibrarySystem.Controllers { public class BookListController : Controller { public ActionResult Index(string searchTerm = null) { ...
Set base path to current directory if ContentRootPath is null on hosting environment. This path is where AI would look for appsettings.json file for ikey, endpoint etc.
namespace Microsoft.AspNetCore.Hosting { using System.Diagnostics; using System.Globalization; using Microsoft.ApplicationInsights.AspNetCore.Extensions; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; /// <summa...
namespace Microsoft.AspNetCore.Hosting { using System.Diagnostics; using System.Globalization; using System.IO; using Microsoft.ApplicationInsights.AspNetCore.Extensions; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Opt...
Add general JWK to JWK (RSA) conversion
using System; using System.Security.Cryptography; namespace THNETII.Security.JOSE { public static class JsonWebRsaExtensions { public static JsonRsaWebKey ExportJsonWebKey(this RSA rsa, bool includePrivateParameters) { if (rsa == null) throw new ArgumentNullExceptio...
using Newtonsoft.Json; using System; using System.Security.Cryptography; namespace THNETII.Security.JOSE { public static class JsonWebRsaExtensions { public static JsonRsaWebKey ExportJsonWebKey(this RSA rsa, bool includePrivateParameters) { if (rsa == null) throw n...
Replace by other icon (temporary)
using System.ComponentModel.Composition; using Microsoft.VisualStudio.ProjectSystem; namespace Cosmos.VS.ProjectSystem { [Export(typeof(IProjectTreePropertiesProvider))] [AppliesTo(ProjectCapability.Cosmos)] [Order(Order.OverrideManaged)] internal class ProjectTreePropertiesProvider : IProjectTreeProp...
using System.ComponentModel.Composition; using Microsoft.VisualStudio.Imaging; using Microsoft.VisualStudio.ProjectSystem; namespace Cosmos.VS.ProjectSystem { [Export(typeof(IProjectTreePropertiesProvider))] [AppliesTo(ProjectCapability.Cosmos)] [Order(Order.OverrideManaged)] internal class ProjectTre...
Add HOTP key URI implementation
namespace Albireo.Otp { using System; using System.Diagnostics.Contracts; public static class Hotp { public static int GetCode(string secret, long counter, int digits = Otp.DefaultDigits) { Contract.Requires<ArgumentNullException>(secret != null); Contract.Requi...
namespace Albireo.Otp { using System; using System.Diagnostics.Contracts; public static class Hotp { public static int GetCode(string secret, long counter, int digits = Otp.DefaultDigits) { Contract.Requires<ArgumentNullException>(secret != null); Contract.Requi...
Use full type name to allow multiple toggles with same name but different namespace.
using System; using System.Collections.Generic; using System.Linq; namespace SimpleToggle { public class Toggle { public class Config { static Config() { NoToggleBehaviour = DefaultNoToggleBehaviour; } private static bool DefaultN...
using System; using System.Collections.Generic; using System.Linq; namespace SimpleToggle { public class Toggle { public class Config { static Config() { NoToggleBehaviour = DefaultNoToggleBehaviour; } private static bool DefaultN...
Mark class [Serializable] to address warning
using System; namespace LiteDB.Shell { internal class ShellException : Exception { public ShellException(string message) : base(message) { } public static ShellException NoDatabase() { return new ShellException("No open database"); } ...
using System; namespace LiteDB.Shell { [Serializable] internal class ShellException : Exception { public ShellException(string message) : base(message) { } public static ShellException NoDatabase() { return new ShellException("No open databa...
Disable echo effect on double click copy
using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media.Animation; namespace clipman.Views { /// <summary> /// Interaction logic for ClipList.xaml /// </summary> public partial class ClipList : UserControl { public ClipList() { InitializeCo...
using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media.Animation; namespace clipman.Views { /// <summary> /// Interaction logic for ClipList.xaml /// </summary> public partial class ClipList : UserControl { public ClipList() { InitializeCo...
Apply transaction in same thread
using System; using System.Threading.Tasks; namespace Marcello.Transactions { internal class Transaction { Marcello Session { get; set; } internal bool Running { get; set; } internal bool IsCommitting { get; set; } int Enlisted { get; set; } internal Transaction(Mar...
using System; using System.Threading.Tasks; namespace Marcello.Transactions { internal class Transaction { Marcello Session { get; set; } internal bool Running { get; set; } internal bool IsCommitting { get; set; } int Enlisted { get; set; } internal Transaction(Mar...
Change Pad-Tileset behavior to be similar to Pad-Palettes.
using LibPixelPet; using System; namespace PixelPet.CLI.Commands { internal class PadTilesetCmd : CliCommand { public PadTilesetCmd() : base("Pad-Tileset", new Parameter(true, new ParameterValue("width")) ) { } public override void Run(Workbench workbench, ILogger logger) { int width = FindUnnamedP...
using LibPixelPet; using System; namespace PixelPet.CLI.Commands { internal class PadTilesetCmd : CliCommand { public PadTilesetCmd() : base("Pad-Tileset", new Parameter(true, new ParameterValue("width")) ) { } public override void Run(Workbench workbench, ILogger logger) { int width = FindUnnamedP...
Add an option to provide a template name
using CommandLine; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IdunnSql.Console { [Verb("generate", HelpText = "Generate a file")] public class GenerateOptions { [Option('s', "source", Required = true, HelpTe...
using CommandLine; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IdunnSql.Console { [Verb("generate", HelpText = "Generate a file")] public class GenerateOptions { [Option('s', "source", Required = true, HelpTe...
Fix typo for LateUpdate calls
using System; using System.Collections.Generic; using System.Text; using UnityEngine; namespace IllusionInjector { class PluginComponent : MonoBehaviour { private CompositePlugin plugins; private bool freshlyLoaded = false; void Awake() { DontDestroyOnLoad(this); ...
using System; using System.Collections.Generic; using System.Text; using UnityEngine; namespace IllusionInjector { class PluginComponent : MonoBehaviour { private CompositePlugin plugins; private bool freshlyLoaded = false; void Awake() { DontDestroyOnLoad(this); ...
Fix issues with specifying manual resolve paths and with-application shipped fluidsynth libraries
using System; using System.Runtime.InteropServices; namespace NFluidsynth.Native { internal static partial class LibFluidsynth { public const string LibraryName = "fluidsynth"; public const int FluidOk = 0; public const int FluidFailed = -1; #if NETCOREAPP static LibFluidsynt...
using System; using System.Runtime.InteropServices; namespace NFluidsynth.Native { internal static partial class LibFluidsynth { public const string LibraryName = "fluidsynth"; public const int FluidOk = 0; public const int FluidFailed = -1; #if NETCOREAPP static LibFluidsynt...
Fix benchmarks not running due to unoptimised nunit
// 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 BenchmarkDotNet.Running; namespace osu.Framework.Benchmarks { public static class Program { public static void Main(string[] args) { ...
// 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 BenchmarkDotNet.Configs; using BenchmarkDotNet.Running; namespace osu.Framework.Benchmarks { public static class Program { public static void Main(...
Add cancel/handle for value changed eventargs
using System; using System.Collections.Generic; using System.Text; namespace SadConsole { /// <summary> /// The old value and the value it changed to. /// </summary> public class ValueChangedEventArgs<T> : EventArgs { /// <summary> /// The previous object. /// </summary> ...
using System; using System.Collections.Generic; using System.Text; namespace SadConsole { /// <summary> /// The old value and the value it changed to. /// </summary> public class ValueChangedEventArgs<T> : EventArgs { /// <summary> /// The previous object. /// </summary> ...
Remove old testing code in instance controller
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using KenticoInspector.Core.Models; using KenticoInspector.Core.Services; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json.Linq; namespace KenticoInspector.WebApplication.Controllers ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using KenticoInspector.Core.Models; using KenticoInspector.Core.Services; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json.Linq; namespace KenticoInspector.WebApplication.Controllers ...
Remove the usage of Parallel to run the populators
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Examine; namespace Umbraco.Examine { /// <summary> /// Utility to rebuild all indexes ensuring minimal data queries /// </summary> public class IndexRebuilder { private readonly IEnum...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Examine; namespace Umbraco.Examine { /// <summary> /// Utility to rebuild all indexes ensuring minimal data queries /// </summary> public class IndexRebuilder { private readonly IEnum...
Add VS2017 and VS2019 as known versions
 namespace Xunit { /// <summary> /// Suggested values for the Visual Studio Version to run tests against. /// </summary> public static class VisualStudioVersion { /// <summary> /// Specifies that the test should be run against all installed /// Visual Studio versions that h...
 namespace Xunit { /// <summary> /// Suggested values for the Visual Studio Version to run tests against. /// </summary> public static class VisualStudioVersion { /// <summary> /// Specifies that the test should be run against all installed /// Visual Studio versions that h...
Rewrite message serialization to fix PlaySound missing flag
using Antagonists; using UnityEngine; namespace Messages.Server.LocalGuiMessages { public class AntagBannerMessage: ServerMessage { public string AntagName; public string AntagSound; public Color TextColor; public Color BackgroundColor; private bool playSound; public static AntagBannerMessage Send( ...
using Antagonists; using Audio.Managers; using Mirror; using UnityEngine; namespace Messages.Server.LocalGuiMessages { public class AntagBannerMessage: ServerMessage { public string AntagName; public string AntagSound; public Color TextColor; public Color BackgroundColor; private bool PlaySound; public...
Remove Contact Page from Menu Seed
using Portal.CMS.Entities.Entities; using System.Collections.Generic; using System.Linq; namespace Portal.CMS.Entities.Seed { public static class MenuSeed { public static void Seed(PortalEntityModel context) { if (!context.Menus.Any(x => x.MenuName == "Main Menu")) { ...
using Portal.CMS.Entities.Entities; using System.Collections.Generic; using System.Linq; namespace Portal.CMS.Entities.Seed { public static class MenuSeed { public static void Seed(PortalEntityModel context) { if (!context.Menus.Any(x => x.MenuName == "Main Menu")) { ...
Test if ExportCodeFixProviderAttribute is applied correctly - adjusted/corrected
using System; using System.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.MSBuild; using Microsoft.VisualStudio.TestTools.UnitTesting; using Style...
namespace StyleCop.Analyzers.Test { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using StyleCop.Analyzers.ReadabilityRules; using Xunit; public class ExportCodeFixPr...
Implement the simplest possible 'Hello World' DAE
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace EventLogDataSource { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] stat...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace EventLogDataSource { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] stat...
Revert "Revert "AI detects when player is close""
using UnityEngine; using System.Collections; public class Movement : MonoBehaviour { public float speed = 6.0F; private Animator animator; private Vector3 moveDirection = Vector3.zero; public float lookSpeed = 10; private Vector3 curLoc; private Vector3 prevLoc; void Start(){ animator = GetComponent<Anima...
using UnityEngine; using System.Collections; public class Movement : MonoBehaviour { public float speed = 6.0F; private Animator animator; private Vector3 moveDirection = Vector3.zero; public float lookSpeed = 10; private Vector3 curLoc; private Vector3 prevLoc; void Start(){ animator = GetComponent<Anima...
Add VNDB as possible search site
using System; using IvionWebSoft; public class Site { public readonly Uri SiteUrl; public readonly int DisplayMax; public string GoogleSiteDeclaration { get { return "site:" + SiteUrl.Host; } } public static readonly Site None; public static readonly Site YouTube; public st...
using System; using IvionWebSoft; public class Site { public readonly Uri SiteUrl; public readonly int DisplayMax; public string GoogleSiteDeclaration { get { return "site:" + SiteUrl.Host; } } public static readonly Site None; public static readonly Site YouTube; public st...
Add local popover container to editor screens
// 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; namespace osu.Game.Screens.Edit { /// <summary> /// TODO: ...
// 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.Graphics.Cursor; namespace osu.Game.Screens.Ed...
Add test data to mock view-model
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExpressRunner.DesignerMocks { public class TestExplorerViewModel { private readonly TestGroup selectedTestGroup; public TestGroup SelectedTestGroup { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExpressRunner.DesignerMocks { public class TestExplorerViewModel { private readonly TestGroup selectedTestGroup; public TestGroup SelectedTestGroup { ...
Order the throughput data by newest to oldest.
using System; using System.Linq; using System.Threading.Tasks; using CommandLine; using VstsMetrics.Abstractions; using VstsMetrics.Extensions; using VstsMetrics.Renderers; namespace VstsMetrics.Commands.Throughput { public class ThroughputCommand : Command { [Option('d', "doneState", DefaultValue = "D...
using System; using System.Linq; using System.Threading.Tasks; using CommandLine; using VstsMetrics.Abstractions; using VstsMetrics.Extensions; using VstsMetrics.Renderers; namespace VstsMetrics.Commands.Throughput { public class ThroughputCommand : Command { [Option('d', "doneState", DefaultValue = "D...
Set the same delivery time for Reprints Desk as for Subito
using Chalmers.ILL.Models; using Examine; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Web; using Chalmers.ILL.Extensions; using Chalmers.ILL.OrderItems; namespace Chalmers.ILL.Providers { public class ProviderService : IProviderService { IOrde...
using Chalmers.ILL.Models; using Examine; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Web; using Chalmers.ILL.Extensions; using Chalmers.ILL.OrderItems; namespace Chalmers.ILL.Providers { public class ProviderService : IProviderService { IOrde...
Tidy up class xmldoc and naming
// 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.Textures; using osuTK.Graphics.ES30; using FFmpeg.AutoGen; using osu.Framework.Graphics.Primitives; using SixLabors.ImageSharp...
// 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.Textures; using osuTK.Graphics.ES30; using FFmpeg.AutoGen; using osu.Framework.Graphics.Primitives; using SixLabors.ImageSharp...
Improve error messages for invalid Guids in ItemData
using System; using Sitecore.Data; namespace AutoSitecore { [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)] public class ItemDataAttribute : Attribute { public static readonly ItemDataAttribute Null = new ItemDataAttribute(); public ItemDataAttribute(string name=null, string id = nu...
using System; using Sitecore.Data; namespace AutoSitecore { [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)] public class ItemDataAttribute : Attribute { public static readonly ItemDataAttribute Null = new ItemDataAttribute(); public ItemDataAttribute(string name=null, string itemId ...
Remove PasswordMode and PasswordChar from interface definition
namespace Internal.ReadLine.Abstractions { internal interface IConsole { int CursorLeft { get; } int CursorTop { get; } int BufferWidth { get; } int BufferHeight { get; } bool PasswordMode { get; set; } char PasswordChar { get; set; } void SetCursorPositio...
namespace Internal.ReadLine.Abstractions { internal interface IConsole { int CursorLeft { get; } int CursorTop { get; } int BufferWidth { get; } int BufferHeight { get; } void SetCursorPosition(int left, int top); void SetBufferSize(int width, int height); ...
Add dbus-sharp-glib to friend assemblies
// Copyright 2006 Alp Toker <alp@atoker.com> // This software is made available under the MIT License // See COPYING for details using System.Reflection; using System.Runtime.CompilerServices; //[assembly: AssemblyVersion("0.0.0.*")] [assembly: AssemblyTitle ("NDesk.DBus")] [assembly: AssemblyDescription ("D-Bus IPC ...
// Copyright 2006 Alp Toker <alp@atoker.com> // This software is made available under the MIT License // See COPYING for details using System.Reflection; using System.Runtime.CompilerServices; //[assembly: AssemblyVersion("0.0.0.*")] [assembly: AssemblyTitle ("NDesk.DBus")] [assembly: AssemblyDescription ("D-Bus IPC ...
Add CompetitionPlatformUser to Identity models.
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CompetitionPlatform.Models { public class AuthenticateModel { public string FullName { get; set; } public string Password { get; set; } } }
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CompetitionPlatform.Models { public class AuthenticateModel { public string FullName { get; set; } public string Password { get; set; } } public class CompetitionPlatformUser ...
Add PATCH to http verbs enumeration
// IPAddressType.cs // Script#/Libraries/Node/Core // This source code is subject to terms and conditions of the Apache License, Version 2.0. // using System; using System.Runtime.CompilerServices; namespace NodeApi.Network { [ScriptImport] [ScriptIgnoreNamespace] [ScriptConstants(UseNames = true)] p...
// IPAddressType.cs // Script#/Libraries/Node/Core // This source code is subject to terms and conditions of the Apache License, Version 2.0. // using System; using System.Runtime.CompilerServices; namespace NodeApi.Network { [ScriptImport] [ScriptIgnoreNamespace] [ScriptConstants(UseNames = true)] p...
Add new test for NotNull with provided message.
using System; using NUnit.Framework; using DevTyr.Gullap; namespace DevTyr.Gullap.Tests.With_Guard.For_NotNull { [TestFixture] public class When_argument_is_null { [Test] public void Should_throw_argumentnullexception () { Assert.Throws<ArgumentNullException> (() => Guard.NotNull (null, null)); } [Te...
using System; using NUnit.Framework; using DevTyr.Gullap; namespace DevTyr.Gullap.Tests.With_Guard.For_NotNull { [TestFixture] public class When_argument_is_null { [Test] public void Should_throw_argumentnullexception () { Assert.Throws<ArgumentNullException> (() => Guard.NotNull (null, null)); } [Te...
Add test for invalid range
using System.Collections; using System.Collections.Generic; using System.Linq; using Xunit; namespace CSharp.Functional.Tests { public class RangeTests { [Theory] [InlineData(0, 1)] public void RangeProvidesAnIEnumerable(int start, int end) { var result = F.Range(st...
using System.Collections; using System.Collections.Generic; using System.Linq; using Xunit; namespace CSharp.Functional.Tests { public class RangeTests { [Theory] [InlineData(0, 1)] public void RangeProvidesAnIEnumerable(int start, int end) { var result = F.Range(st...
Simplify login docs region & only show action
// Copyright(c) 2016 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 agree...
// Copyright(c) 2016 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 agree...
Use type inference in type definition
using MyDocs.Common.Contract.Service; using MyDocs.Common.Contract.Storage; using MyDocs.Common.Model; using MyDocs.WindowsStore.Storage; using System; using System.Threading.Tasks; using Windows.Media.Capture; namespace MyDocs.WindowsStore.Service { public class CameraService : ICameraService { ...
using MyDocs.Common.Contract.Service; using MyDocs.Common.Contract.Storage; using MyDocs.Common.Model; using MyDocs.WindowsStore.Storage; using System; using System.Threading.Tasks; using Windows.Media.Capture; namespace MyDocs.WindowsStore.Service { public class CameraService : ICameraService { ...
Refactor test to use AutoCommandData
using AppHarbor.Commands; using Moq; using Ploeh.AutoFixture; using Ploeh.AutoFixture.AutoMoq; using Xunit; namespace AppHarbor.Tests.Commands { public class CreateCommandTest { private readonly IFixture _fixture; public CreateCommandTest() { _fixture = new Fixture().Customize(new AutoMoqCustomization());...
using AppHarbor.Commands; using Moq; using Ploeh.AutoFixture; using Ploeh.AutoFixture.AutoMoq; using Ploeh.AutoFixture.Xunit; using Xunit.Extensions; namespace AppHarbor.Tests.Commands { public class CreateCommandTest { private readonly IFixture _fixture; public CreateCommandTest() { _fixture = new Fixtur...
Change DestinationFilenamePrefix to be a required field
using System.ComponentModel.DataAnnotations; using API.WindowsService.Validators; using Contract; using FluentValidation.Attributes; namespace API.WindowsService.Models { [Validator(typeof(AudioRequestValidator))] public class AudioJobRequestModel : JobRequestModel { [Required] public Audi...
using System.ComponentModel.DataAnnotations; using API.WindowsService.Validators; using Contract; using FluentValidation.Attributes; namespace API.WindowsService.Models { [Validator(typeof(AudioRequestValidator))] public class AudioJobRequestModel : JobRequestModel { [Required] public Audi...
Add keyword "delay" to hold-to-confirm activation time setting
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Localisation; using osu.Game.Configuration; using osu.Game.Graphics.UserInterface; 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 osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Localisation; using osu.Game.Configuration; using osu.Game.Graphics.UserInterface; usin...
Refactor to build on Visual Studio 2013
using System; using System.Windows.Input; namespace OutlookMatters.Settings { public class SaveCommand : ICommand { private readonly ISettingsSaveService _saveService; private readonly IClosableWindow _window; public SaveCommand(ISettingsSaveService saveService, IClosableWindow window...
using System; using System.Windows.Input; namespace OutlookMatters.Settings { public class SaveCommand : ICommand { private readonly ISettingsSaveService _saveService; private readonly IClosableWindow _window; public SaveCommand(ISettingsSaveService saveService, IClosableWindow window...