Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Simplify check and fix for new DynamicGetter
using System; using Structurizer.Extensions; namespace Structurizer.Schemas { public class StructureProperty : IStructureProperty { private readonly DynamicGetter _getter; public string Name { get; } public string Path { get; } public Type DataType { get; } public IStr...
using System; using Structurizer.Extensions; namespace Structurizer.Schemas { public class StructureProperty : IStructureProperty { private readonly DynamicGetter _getter; public string Name { get; } public string Path { get; } public Type DataType { get; } public IStr...
Fix for the NotEmpty method.
// Copyright 2009 Jeffrey Cameron // // 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 ag...
// Copyright 2009 Jeffrey Cameron // // 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 ag...
Add messageBack to action types.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.Bot.Connector { public class ActionTypes { /// <summary> /// Client will open given url in the built-in browser. /// </summary> public const s...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Microsoft.Bot.Connector { public class ActionTypes { /// <summary> /// Client will open given url in the built-in browser. /// </summary> public const s...
Enable nullable and don't bother null checking at every read.
// 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.IO; namespace osu.Framework.Audio.Callbacks { /// <summary> /// Implementation of <see cref="IFileProcedures"/> that supports reading...
// 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.IO; #nullable enable namespace osu.Framework.Audio.Callbacks { /// <summary> /// Implementation of <see cref="IFileProcedures"/> tha...
Add an error message if opening the log file fails.
using System.Diagnostics; namespace Microsoft.Build.Logging.StructuredLogger { public class BinaryLog { public static Build ReadBuild(string filePath) { var eventSource = new BinaryLogReplayEventSource(); byte[] sourceArchive = null; eventSourc...
using System.Diagnostics; namespace Microsoft.Build.Logging.StructuredLogger { public class BinaryLog { public static Build ReadBuild(string filePath) { var eventSource = new BinaryLogReplayEventSource(); byte[] sourceArchive = null; eventSourc...
Add diagnostic try-catch blocks to MorphInto()
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Zermelo.App.UWP.Helpers { static class ObservableCollectionExtensions { public static void MorphInto<TSource>(this ObservableCollection<TS...
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Zermelo.App.UWP.Helpers { static class ObservableCollectionExtensions { public static void MorphInto<TSource>(this ObservableCollection<TS...
Add giftcard method to list of methods
namespace Mollie.Api.Models { /// <summary> /// Payment method /// </summary> public enum Method { ideal, creditcard, mistercash, sofort, banktransfer, directdebit, belfius, kbc, bitcoin, paypal, paysafecard, ...
namespace Mollie.Api.Models { /// <summary> /// Payment method /// </summary> public enum Method { ideal, creditcard, mistercash, sofort, banktransfer, directdebit, belfius, kbc, bitcoin, paypal, paysafecard, ...
Make the shuffle more noticable.
using System; using System.Collections.ObjectModel; using ReactiveUI; namespace BindingTest.ViewModels { public class MainWindowViewModel : ReactiveObject { private string _simpleBinding = "Simple Binding"; public MainWindowViewModel() { Items = new ObservableCollection<Te...
using System; using System.Collections.ObjectModel; using ReactiveUI; namespace BindingTest.ViewModels { public class MainWindowViewModel : ReactiveObject { private string _simpleBinding = "Simple Binding"; public MainWindowViewModel() { Items = new ObservableCollection<Te...
Set size for the fields on contact form
using System.ComponentModel.DataAnnotations; using Newtonsoft.Json.Linq; namespace CmsEngine.Application.Helpers.Email { public class ContactForm { [Required] [DataType(DataType.EmailAddress)] public string From { get; set; } [DataType(DataType.EmailAddress)] public stri...
using System.ComponentModel.DataAnnotations; using Newtonsoft.Json.Linq; namespace CmsEngine.Application.Helpers.Email { public class ContactForm { [Required] [DataType(DataType.EmailAddress)] public string From { get; set; } [DataType(DataType.EmailAddress)] public stri...
Disable 2nd sandbox test by default
using System; namespace ClosedXML_Sandbox { internal class Program { private static void Main(string[] args) { Console.WriteLine("Running {0}", nameof(PerformanceRunner.OpenTestFile)); PerformanceRunner.TimeAction(PerformanceRunner.OpenTestFile); Console.Writ...
using System; namespace ClosedXML_Sandbox { internal static class Program { private static void Main(string[] args) { Console.WriteLine("Running {0}", nameof(PerformanceRunner.OpenTestFile)); PerformanceRunner.TimeAction(PerformanceRunner.OpenTestFile); Conso...
Increment version number to 1.3.5.0
namespace formulate.meta { /// <summary> /// Constants relating to Formulate itself (i.e., does not /// include constants used by Formulate). /// </summary> public class Constants { /// <summary> /// This is the version of Formulate. It is used on /// assemblies and du...
namespace formulate.meta { /// <summary> /// Constants relating to Formulate itself (i.e., does not /// include constants used by Formulate). /// </summary> public class Constants { /// <summary> /// This is the version of Formulate. It is used on /// assemblies and du...
Revert "Make all strings in loaded TdfNodes lowercase"
namespace TAUtil.Tdf { using System.Collections.Generic; public class TdfNodeAdapter : ITdfNodeAdapter { private readonly Stack<TdfNode> nodeStack = new Stack<TdfNode>(); public TdfNodeAdapter() { this.RootNode = new TdfNode(); this.nodeStack.Pus...
namespace TAUtil.Tdf { using System.Collections.Generic; public class TdfNodeAdapter : ITdfNodeAdapter { private readonly Stack<TdfNode> nodeStack = new Stack<TdfNode>(); public TdfNodeAdapter() { this.RootNode = new TdfNode(); this.nodeStack.Pus...
Add private constructor to singleton class
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; namespace tweetz5.Utilities.Translate { public class TranslationService { public readonly static TranslationService Instance = new TranslationService(); public ITra...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; namespace tweetz5.Utilities.Translate { public class TranslationService { public readonly static TranslationService Instance = new TranslationService(); public ITra...
Add null checks for MethodReplacer
using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace Harmony { public static class Transpilers { public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to, OpCode? callOpcode = null) { ...
using System; using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace Harmony { public static class Transpilers { public static IEnumerable<CodeInstruction> MethodReplacer(this IEnumerable<CodeInstruction> instructions, MethodBase from, MethodBase to, OpCode? callOpcode =...
Correct detection of scrape requests
using System; using System.Collections.Generic; using System.Text; using MonoTorrent.BEncoding; using System.Net; namespace MonoTorrent.Tracker.Listeners { public class ManualListener : ListenerBase { private bool running; public override bool Running { get { return running; } } pub...
using System; using System.Collections.Generic; using System.Text; using MonoTorrent.BEncoding; using System.Net; namespace MonoTorrent.Tracker.Listeners { public class ManualListener : ListenerBase { private bool running; public override bool Running { get { return running; } } pub...
Add square matrix multiplication test case.
using NUnit.Framework; namespace Algorithms.Collections.Tests { [TestFixture] public class SquareMatrixTests { } }
using System.Collections.Generic; using System.Globalization; using System.Text; using NUnit.Framework; namespace Algorithms.Collections.Tests { [TestFixture] public class SquareMatrixTests { [TestCaseSource("GetTestCases")] public void Multiply(TestCase testCase) { int[,] result = SquareMatr...
Convert seconds to actual minutes (works up to an hour...)
using UnityEngine; using UnityEngine.UI; public class LeaderboardEntry : MonoBehaviour { [SerializeField] private Text _name; [SerializeField] private Text _time; [SerializeField] private Text _penality; public void SetInfo(Score score) { _name.text = score.Name; _ti...
using UnityEngine; using UnityEngine.UI; public class LeaderboardEntry : MonoBehaviour { [SerializeField] private Text _name; [SerializeField] private Text _time; [SerializeField] private Text _penality; public void SetInfo(Score score) { _name.text = score.Name; var...
Revert "Something new from Peter"
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestingApplication { class Program { static void Main(string[] args) { Console.WriteLine("Hello World\nPress any key to close...")...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestingApplication { class Program { static void Main(string[] args) { Console.WriteLine("Hello World\nPress any key to close...")...
Add support for listing invoice items via invoice and pending
namespace Stripe { using Newtonsoft.Json; public class InvoiceItemListOptions : ListOptionsWithCreated { [JsonProperty("customer")] public string CustomerId { get; set; } } }
namespace Stripe { using Newtonsoft.Json; public class InvoiceItemListOptions : ListOptionsWithCreated { [JsonProperty("customer")] public string CustomerId { get; set; } [JsonProperty("invoice")] public string InvoiceId { get; set; } [JsonProperty("pending")] ...
Set adminModeTriggerer back to 180 seconds
using UnityEngine; using System.Collections; using System.Collections.Generic; public class AdminModeTriggerer : MonoBehaviour { private const float WAIT_TIME = 10f; public ActionBase AdminModeAction; public void Initialize() { StartCoroutine(WaitThenEnterAdminMode()); } public IEnumerato...
using UnityEngine; using System.Collections; using System.Collections.Generic; public class AdminModeTriggerer : MonoBehaviour { private const float WAIT_TIME = 180f; public ActionBase AdminModeAction; public void Initialize() { StartCoroutine(WaitThenEnterAdminMode()); } public IEnumerat...
Save ip after recording, check ip on index, version 1.0
<div class="span7"> <div id="button" class="tile quadro triple-vertical bg-lightPink bg-active-lightBlue" style="padding:10px; text-align: center;"> Your number is... <br /><br /> <span class="COUNT">@(Model)!!!</span><br /><br /> Click this pink square to record a three second video of...
<div class="span7"> <div id="button" class="tile quadro triple-vertical bg-lightPink bg-active-lightBlue" style="padding:10px; text-align: center;"> Your number is... <br /><br /> <span class="COUNT">@(Model)!!!</span><br /><br /> Click this pink square to record a three second video of...
Fix new object was added into collection instead of the one we made just above.
using System.Collections.ObjectModel; using System.ComponentModel; namespace ProjectCDA.Data { public class DataSource : INotifyPropertyChanged { private ObservableCollection<TwoPages> _Schedule; public DataSource() { AddSomeDummyData(); } public Observabl...
using System.Collections.ObjectModel; using System.ComponentModel; namespace ProjectCDA.Data { public class DataSource : INotifyPropertyChanged { private ObservableCollection<TwoPages> _Schedule; public DataSource() { AddSomeDummyData(); } public Observabl...
Enable suggestions for types in reference assemblies by default
// 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 Microsoft.CodeAnalysis.Options; namespace Microsoft.CodeAnalysis.SymbolSearch { internal static class SymbolSearchOptions { private co...
// 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 Microsoft.CodeAnalysis.Options; namespace Microsoft.CodeAnalysis.SymbolSearch { internal static class SymbolSearchOptions { private co...
Add autofocus to AccessCode entry so invalid entry will force focus onto the input field
@model SFA.DAS.EmployerUsers.Web.Models.AccessCodeViewModel <h1 class="heading-large">Register</h1> @if (!Model.Valid) { <div class="error" style="margin-bottom: 10px;"> <p class="error-message"> Invalid Code </p> </div> } <form method="post"> <fieldset> <legend class...
@model SFA.DAS.EmployerUsers.Web.Models.AccessCodeViewModel @{ var invalidAttributes = Model.Valid ? "aria-invalid=\"true\" aria-labeledby=\"invalidMessage\"" : ""; } <h1 class="heading-large">Register</h1> @if (!Model.Valid) { <div id="invalidMessage" class="error" style="margin-bottom: 10px;"> <p...
Use CloudFlare CF-Connecting-IP to access user ip address
using Infra.Authentications; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Net; using System.Security.Claims; using System.Threading; using Infra.Events; namespace Infra.Authentications.Identity.Services { public class Authenticator : IAuthenticator { ...
using Infra.Authentications; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Net; using System.Security.Claims; using System.Threading; using Infra.Events; namespace Infra.Authentications.Identity.Services { public class Authenticator : IAuthenticator { ...
Add extension method for StatefulModel.MultipleDisposable.
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MetroTrilithon.Lifetime { public static class DisposableExtensions { /// <summary> /// <see cref="IDisposable"/> オブジェクトを、指定した <see cref="IDisposableHolder.CompositeDisposable"/> に追加します。 /// </summary> ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using StatefulModel; namespace MetroTrilithon.Lifetime { public static class DisposableExtensions { /// <summary> /// <see cref="IDisposable"/> オブジェクトを、指定した <see cref="IDisposableHolder.CompositeDisposable"/> に追加しま...
Add check if a file supports animations
using System.Globalization; namespace Agens.Stickers { public static class StickerEditorUtility { /// <summary> /// Checks the file extension of a filename /// </summary> /// <param name="fileName">filename with extension or full path of a file</param> /// <returns>True...
using System.Globalization; namespace Agens.Stickers { public static class StickerEditorUtility { /// <summary> /// Checks the file extension of a filename /// </summary> /// <param name="fileName">filename with extension or full path of a file</param> /// <returns>True...
Fix catch block in Main
using System; using System.Diagnostics; using CIV.Formats; using static System.Console; namespace CIV { [Flags] enum ExitCodes : int { Success = 0, FileNotFound = 1, ParsingFailed = 2, VerificationFailed = 4 } class Program { static void Main(string[] args) { ...
using System; using System.Diagnostics; using CIV.Formats; using CIV.Common; using static System.Console; namespace CIV { [Flags] enum ExitCodes : int { Success = 0, FileNotFound = 1, ParsingFailed = 2, VerificationFailed = 4 } class Program { static void Main(string[] a...
Use `&times;` for close button
@if (ViewData.ModelState.Any(x => x.Value.Errors.Any())) { <div class="alert alert-error"> <a class="close" data-dismiss="alert">�</a> @Html.ValidationSummary(true) </div> }
@if (ViewData.ModelState.Any(x => x.Value.Errors.Any())) { <div class="alert alert-error"> <a class="close" data-dismiss="alert">&times;/a> @Html.ValidationSummary(true) </div> }
Work on copy periodic wizard
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using LifeTimeV3.BL.LifeTimeDiagram; namespace LifeTimeV3.LifeTimeDiagram.CopyPeriodicDialog ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using LifeTimeV3.BL.LifeTimeDiagram; namespace LifeTimeV3.LifeTimeDiagram.CopyPeriodicDialog ...
Add hold note tail judgement.
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE namespace osu.Game.Rulesets.Mania.Judgements { public class HoldNoteTailJudgement : ManiaJudgement { /// <summary> /// Whether the hold n...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE namespace osu.Game.Rulesets.Mania.Judgements { public class HoldNoteTailJudgement : ManiaJudgement { /// <summary> /// Whether the hold n...
Fix two properties to be string as expected on PaymentMethodDetails
namespace Stripe { using Newtonsoft.Json; using Stripe.Infrastructure; public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity { [JsonProperty("application_cryptogram")] public string ApplicationCryptogram { get; set; } [JsonProperty("application_preferred_name...
namespace Stripe { using Newtonsoft.Json; using Stripe.Infrastructure; public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity { [JsonProperty("application_cryptogram")] public string ApplicationCryptogram { get; set; } [JsonProperty("application_preferred_name...
Document nullability of seasonal backgrounds
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Online.API.Requests.Responses; namespace osu.Game.Configuration { /// <summary> /// Stores global per-session statics. These will not be stored a...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Online.API.Requests.Responses; namespace osu.Game.Configuration { /// <summary> /// Stores global per-session statics. These will not be stored a...
Revert assembly info change in uwp project

using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("ValueConverters.UWP")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Thomas Galliker")] [assembly: AssemblyProduct("ValueConverters.UW...
Implement realtime match song select
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Screens.Select; namespace osu.Game.Screens.Multi.RealtimeMultiplayer { public class RealtimeMatchSongSelect : SongSelect { protected overr...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using Humanizer; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Screens; using osu.Game.Online.Multiplayer; using o...
Change max supported version constants
namespace Pdelvo.Minecraft.Protocol.Helper { /// <summary> /// /// </summary> /// <remarks></remarks> public static class ProtocolInformation { /// <summary> /// /// </summary> public const int MinSupportedClientVersion = 22; /// <summary> /// ...
namespace Pdelvo.Minecraft.Protocol.Helper { /// <summary> /// /// </summary> /// <remarks></remarks> public static class ProtocolInformation { /// <summary> /// /// </summary> public const int MinSupportedClientVersion = 22; /// <summary> /// ...
Fix issue where Security Scheme responses are not parsed correctly.
using System.Collections.Generic; using Raml.Parser.Expressions; namespace Raml.Parser.Builders { public class SecuritySchemeDescriptorBuilder { public SecuritySchemeDescriptor Build(IDictionary<string, object> dynamicRaml, string defaultMediaType) { var descriptor = new SecuritySchemeDescriptor(); ...
using System.Collections.Generic; using System.Dynamic; using System.Linq; using Raml.Parser.Expressions; namespace Raml.Parser.Builders { public class SecuritySchemeDescriptorBuilder { public SecuritySchemeDescriptor Build(IDictionary<string, object> dynamicRaml, string defaultMediaType) { var descri...
Use 'nameof' when throwing ArgumentOutOfRangeException
using System; using UnityEngine; using UnityEngine.Assertions; namespace Alensia.Core.Common { public enum Axis { X, Y, Z, InverseX, InverseY, InverseZ } public static class AxisExtensions { public static Vector3 Of(this Axis axis, Transform...
using System; using UnityEngine; using UnityEngine.Assertions; namespace Alensia.Core.Common { public enum Axis { X, Y, Z, InverseX, InverseY, InverseZ } public static class AxisExtensions { public static Vector3 Of(this Axis axis, Transform...
Replace Theory with multiple Fact tests
using Xunit; public class AcronymTest { [Fact] public void Empty_string_abbreviated_to_empty_string() { Assert.Equal(string.Empty, Acronym.Abbreviate(string.Empty)); } [Theory(Skip = "Remove to run test")] [InlineData("Portable Network Graphics", "PNG")] [InlineData("Ruby on Rails"...
using Xunit; public class AcronymTest { [Fact] public void Basic() { Assert.Equal("PNG", Acronym.Abbreviate("Portable Network Graphics")); } [Fact(Skip = "Remove to run test")] public void Lowercase_words() { Assert.Equal("ROR", Acronym.Abbreviate("Ruby on Rails")); } ...
Fix parent child index type
using System; namespace Foundatio.Repositories.Elasticsearch.Configuration { public interface IChildIndexType : IIndexType { string ParentPath { get; } } public interface IChildIndexType<T> : IChildIndexType { string GetParentId(T document); } public class ChildIndexType<T> : Ind...
using System; namespace Foundatio.Repositories.Elasticsearch.Configuration { public interface IChildIndexType : IIndexType { string ParentPath { get; } } public interface IChildIndexType<T> : IChildIndexType { string GetParentId(T document); } public class ChildIndexType<T> : Ind...
Disable .sav tests for now
using System; using System.Collections.Generic; using System.IO; using OpenSage.Data; using OpenSage.Data.Sav; using OpenSage.Mods.Generals; using Veldrid; using Xunit; namespace OpenSage.Tests.Data.Sav { public class SaveFileTests { private static readonly string RootFolder = Path.Combine(Environment...
using System; using System.Collections.Generic; using System.IO; using OpenSage.Data; using OpenSage.Data.Sav; using OpenSage.Mods.Generals; using Veldrid; using Xunit; namespace OpenSage.Tests.Data.Sav { public class SaveFileTests { private static readonly string RootFolder = Path.Combine(Environment...
Change IMapper visibility from private to protected
using System.Linq; using AutoMapper; using IObjectMapper = Abp.ObjectMapping.IObjectMapper; namespace Abp.AutoMapper { public class AutoMapperObjectMapper : IObjectMapper { private readonly IMapper _mapper; public AutoMapperObjectMapper(IMapper mapper) { _mapper = mapper; ...
using System.Linq; using AutoMapper; using IObjectMapper = Abp.ObjectMapping.IObjectMapper; namespace Abp.AutoMapper { public class AutoMapperObjectMapper : IObjectMapper { protected readonly IMapper _mapper; public AutoMapperObjectMapper(IMapper mapper) { _mapper = mapper...
Change log timestamps to utc for better performance
/* Copyright (c) 2017 Marcin Szeniak (https://github.com/Klocman/) Apache License Version 2.0 */ using System; using System.Diagnostics; using System.IO; using System.Text; namespace BulkCrapUninstaller { internal sealed class LogWriter : StreamWriter { public LogWriter(string pa...
/* Copyright (c) 2017 Marcin Szeniak (https://github.com/Klocman/) Apache License Version 2.0 */ using System; using System.Diagnostics; using System.IO; using System.Text; namespace BulkCrapUninstaller { internal sealed class LogWriter : StreamWriter { public LogWriter(string pa...
Test broker listens on all IPs
using System; using WampSharp.Binding; using WampSharp.Fleck; using WampSharp.V2; using WampSharp.V2.MetaApi; namespace Adaptive.ReactiveTrader.MessageBroker { public class MessageBroker : IDisposable { private WampHost _router; public void Dispose() { _router.Dispose(); ...
using System; using WampSharp.Binding; using WampSharp.Fleck; using WampSharp.V2; using WampSharp.V2.MetaApi; namespace Adaptive.ReactiveTrader.MessageBroker { public class MessageBroker : IDisposable { private WampHost _router; public void Dispose() { _router.Dispose(); ...
Reorder to have video settings next to renderer
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Sprites; using osu.Framework.Localisation; using osu.Game.Localisation; using osu.Game.Overlays.Settings.Secti...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Sprites; using osu.Framework.Localisation; using osu.Game.Localisation; using osu.Game.Overlays.Settings.Secti...
Add a touch more detail to the unsupported skin component exception
// 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; namespace osu.Game.Skinning { public class UnsupportedSkinComponentException : Exception { public UnsupportedSkinComponentException(ISkinCo...
// 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; namespace osu.Game.Skinning { public class UnsupportedSkinComponentException : Exception { public UnsupportedSkinComponentException(ISkinCo...
Hide F rank from beatmap overlay
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System.Collections.Generic; using System.Linq; using osu.Framework.Extensions; using osu.Framework.Localisation; using osu.Game.Resources.Locali...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using System.Collections.Generic; using System.Linq; using osu.Framework.Extensions; using osu.Framework.Localisation; using osu.Game.Resources.Locali...
Use predefined default size for embedded windows
// Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using Perspex.Win32.Interop; namespace Perspex.Win32 { public class EmbeddedWindowImpl : WindowImpl { private static readon...
// Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using Perspex.Win32.Interop; namespace Perspex.Win32 { public class EmbeddedWindowImpl : WindowImpl { private static readon...
Add the return date, and change the long time string to short date string.
@model IEnumerable<MMLibrarySystem.Models.BorrowRecord> @{ ViewBag.Title = "Borrowed Books"; } <table id="bookList"> <tr> <td> Book Number </td> <td> Title </td> <td> Borrowed By </td> <td> Borrowed Start ...
@model IEnumerable<MMLibrarySystem.Models.BorrowRecord> @{ ViewBag.Title = "Borrowed Books"; } <table id="bookList"> <tr> <td> Book Number </td> <td> Title </td> <td> Borrowed By </td> <td> Borrowed Start ...
Print the texts of each row
using System; namespace Hangman { public class Table { public int Width; public int Spacing; public Row[] Rows; public Table(int width, int spacing, Row[] rows) { Width = width; Spacing = spacing; Rows = rows; } public string Draw() { return "Hello World"; } } ...
using System; using System.Collections.Generic; using System.Text; namespace Hangman { public class Table { public int Width; public int Spacing; public Row[] Rows; public Table(int width, int spacing, Row[] rows) { Width = width; Spacing = spacing; Rows = rows; } public s...
Remove DisableTestParallelization on CI due to the same reason.
using Xunit; // This is a work-around for #11. // https://github.com/CXuesong/WikiClientLibrary/issues/11 [assembly:CollectionBehavior(DisableTestParallelization = true)]
using Xunit; // This is a work-around for #11. // https://github.com/CXuesong/WikiClientLibrary/issues/11 // We are using Bot Password on CI, which may naturally evade the issue. #if ENV_CI_BUILD [assembly:CollectionBehavior(DisableTestParallelization = true)] #endif
Modify DepartmentService to use new CrudService
using System; using System.Threading.Tasks; using AutoMapper; using Diploms.Core; using Diploms.Dto; using Diploms.Dto.Departments; namespace Diploms.Services.Departments { public class DepartmentsService { private readonly IRepository<Department> _repository; private readonly IMapper _mapper;...
using System; using System.Threading.Tasks; using AutoMapper; using Diploms.Core; using Diploms.Dto; using Diploms.Dto.Departments; namespace Diploms.Services.Departments { public class DepartmentsService : CrudService<Department, DepartmentEditDto, DepartmentEditDto, DepartmentEditDto> { public Depart...
Allow redirect to returnUrl from login part
using System.Web.Mvc; using System.Web.Security; using N2.Templates.Mvc.Models.Parts; using N2.Templates.Mvc.Models; using N2.Web; namespace N2.Templates.Mvc.Controllers { [Controls(typeof(LoginItem))] public class LoginController : TemplatesControllerBase<LoginItem> { public override ActionResult Inde...
using System.Web.Mvc; using System.Web.Security; using N2.Templates.Mvc.Models.Parts; using N2.Templates.Mvc.Models; using N2.Web; namespace N2.Templates.Mvc.Controllers { [Controls(typeof(LoginItem))] public class LoginController : TemplatesControllerBase<LoginItem> { public override ActionResult Inde...
Kill projectiles after 2 seconds
using UnityEngine; using System.Collections; public class Projectile : MonoBehaviour { public float damage = 10; public float speed = 30; public Vector3 direction; // Use this for initialization void Start() { direction = direction.normalized * speed; } // Update is called o...
using UnityEngine; using System.Collections; public class Projectile : MonoBehaviour { public float lifetime = 2; private float age = 0; public float damage = 10; public float speed = 30; public Vector3 direction; // Use this for initialization void Start() { direction = dire...
Support watching of arbitrary connections
// Copyright 2006 Alp Toker <alp@atoker.com> // This software is made available under the MIT License // See COPYING for details using System; //using GLib; //using Gtk; using NDesk.DBus; using NDesk.GLib; using org.freedesktop.DBus; namespace NDesk.DBus { //FIXME: this API needs review and de-unixification. It is h...
// Copyright 2006 Alp Toker <alp@atoker.com> // This software is made available under the MIT License // See COPYING for details using System; //using GLib; //using Gtk; using NDesk.DBus; using NDesk.GLib; using org.freedesktop.DBus; namespace NDesk.DBus { //FIXME: this API needs review and de-unixification. It is h...
Paste in some more CEF docs.
// 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. namespace CefSharp { public interface ILifeSpanHandler { bool OnBeforePopup(IWebBrowser browser, string sourceUrl, string targetUr...
// 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. namespace CefSharp { public interface ILifeSpanHandler { /// <summary> /// Called before a popup window is created. ...
Add a null check to FlatProgressBar.brush
namespace TweetDick.Core.Controls { partial class FlatProgressBar { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary>...
namespace TweetDick.Core.Controls { partial class FlatProgressBar { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary>...
Update library version to 1.3.6
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("GoogleMeasurementProtocol")] [assembly: A...
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("GoogleMeasurementProtocol")] [assembly: A...
Fix HitCircleLongCombo test stacking off-screen
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Tests.Visual; using osuTK; namespace osu.Game.Rulesets.Osu.Tests { ...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Tests.Visual; using osuTK; namespace osu.Game.Rulesets.Osu.Tests { ...
Add support for command line arguments to configuration
using System; using System.Text.RegularExpressions; namespace KillrVideo.Host.Config { /// <summary> /// Gets configuration values from environment variables. /// </summary> public class EnvironmentConfigurationSource : IHostConfigurationSource { private static readonly Regex MatchCaps = n...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace KillrVideo.Host.Config { /// <summary> /// Gets configuration values from command line args and environment variables. /// </summary> public class EnvironmentConfigurationSource : IHostCo...
Remove unnecessary point type check
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Harlow { public class VectorPoint : VectorFeature { public VectorPoint(int numOfPoints, ShapeType shapeType) : base (numOfPoints, shapeType) { i...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Harlow { public class VectorPoint : VectorFeature { public VectorPoint(int numOfPoints, ShapeType shapeType) : base (numOfPoints, shapeType) { t...
Increment assembly version for new Nuget build.
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("MonoGameUtils")] [assembly: AssemblyDescri...
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("MonoGameUtils")] [assembly: AssemblyDescri...
Make explicit marker font semi-bold
// 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.Shapes; using osu.Game.Graphics; using...
// 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.Shapes; using osu.Game.Graphics; using...
Use new array indexing syntax
using System; using System.Collections.Generic; using System.IO; using System.Net; namespace PlaylistGrabber { public class Downloader { public string State { get; private set; } public int DownloadedFiles { get; private set; } public int TotalFiles { get; private set; } pub...
using System; using System.Collections.Generic; using System.IO; using System.Net; namespace PlaylistGrabber { public class Downloader { public string State { get; private set; } public int DownloadedFiles { get; private set; } public int TotalFiles { get; private set; } pub...
Revert "Quarantine all ProjectTemplate tests until dotnet new lock issue is resolved."
// 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 Microsoft.AspNetCore.E2ETesting; using Microsoft.AspNetCore.Testing; using Templates.Test.Helpers; using Xunit; [assembly: TestFramework("Microso...
// 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 Microsoft.AspNetCore.E2ETesting; using Microsoft.AspNetCore.Testing; using Templates.Test.Helpers; using Xunit; [assembly: TestFramework("Microso...
Fix regression due to starting in Part view without printer selection
using System.Threading; using System.Threading.Tasks; using MatterHackers.Agg.UI; using NUnit.Framework; namespace MatterHackers.MatterControl.Tests.Automation { [TestFixture, Category("MatterControl.UI.Automation"), RunInApplicationDomain] public class ShowTerminalButtonClickedOpensTerminal { [Test, Apartment(A...
using System.Threading; using System.Threading.Tasks; using MatterHackers.Agg.UI; using NUnit.Framework; namespace MatterHackers.MatterControl.Tests.Automation { [TestFixture, Category("MatterControl.UI.Automation"), RunInApplicationDomain] public class ShowTerminalButtonClickedOpensTerminal { [Test, Apartment(A...
Fix bug where factory name hadn't been udpated
using Glimpse.Agent.Connection.Stream.Connection; using System; using System.Threading.Tasks; namespace Glimpse.Agent { public class WebSocketChannelSender : IChannelSender { private readonly IMessageConverter _messageConverter; private readonly IStreamHubProxyFactory _streamHubProxyFactory; ...
using Glimpse.Agent.Connection.Stream.Connection; using System; using System.Threading.Tasks; namespace Glimpse.Agent { public class WebSocketChannelSender : IChannelSender { private readonly IMessageConverter _messageConverter; private readonly IStreamHubProxyFactory _streamHubProxyFactory; ...
Fix tiny droplet scale factor
// 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; namespace osu.Game.Rulesets.Catch.Objects.Drawables { public class DrawableTinyDroplet : DrawableDroplet { public Drawab...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. namespace osu.Game.Rulesets.Catch.Objects.Drawables { public class DrawableTinyDroplet : DrawableDroplet { protected override float ScaleFactor => base.S...
Tidy up Start() function comment
using UnityEngine; using System.Collections; namespace Fungus { // Defines a camera view point. // The position and rotation are specified using the game object's transform, so this class // only specifies the ortographic view size. [ExecuteInEditMode] public class View : MonoBehaviour { public float viewSize...
using UnityEngine; using System.Collections; namespace Fungus { // Defines a camera view point. // The position and rotation are specified using the game object's transform, so this class // only specifies the ortographic view size. [ExecuteInEditMode] public class View : MonoBehaviour { public float viewSize...
Check if argument in projection provider attribute is a valid type
using System; namespace EnjoyCQRS.Attributes { [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public class ProjectionProviderAttribute : Attribute { public Type Provider { get; } public ProjectionProviderAttribute(Type provider) { Provider = provider; ...
using System; using System.Reflection; using EnjoyCQRS.EventSource.Projections; namespace EnjoyCQRS.Attributes { [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public class ProjectionProviderAttribute : Attribute { public Type Provider { get; } public ProjectionProviderAtt...
Remove changes done to unrelated unit test
using Baseline; using Marten.Schema; using Marten.Services; using Marten.Testing.Documents; using Shouldly; using Xunit; namespace Marten.Testing { public class duplicate_fields_in_table_and_upsert_Tests : IntegratedFixture { [Fact] public void end_to_end() { theStore.Stora...
using Baseline; using Marten.Schema; using Marten.Services; using Marten.Testing.Documents; using Shouldly; using Xunit; namespace Marten.Testing { public class duplicate_fields_in_table_and_upsert_Tests : IntegratedFixture { [Fact] public void end_to_end() { theStore.Stora...
Fix more race conditions between tests
using System; using GitHub.Api; using GitHub.Primitives; using GitHub.Services; using GitHub.VisualStudio; using NSubstitute; using Xunit; public class SimpleApiClientFactoryTests { public class TheCreateMethod { [Fact] public void CreatesNewInstanceOfSimpleApiClient() { va...
using System; using GitHub.Api; using GitHub.Primitives; using GitHub.Services; using GitHub.VisualStudio; using NSubstitute; using Xunit; public class SimpleApiClientFactoryTests { public class TheCreateMethod { [Fact] public void CreatesNewInstanceOfSimpleApiClient() { co...
Replace default script methods with Update & FixedUpdate methods
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { // Update is called before rendering a frame void Update () { } // FixedUpdate is called just before performing any physics calculations void FixedUpdate () { } }
Set default result count of a recipe to 1
using FactorioModBuilder.Models.Base; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FactorioModBuilder.Models.ProjectItems.Prototype { public class Recipe : TreeItem<Recipe> { public bool Enabled { get; set; } publ...
using FactorioModBuilder.Models.Base; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FactorioModBuilder.Models.ProjectItems.Prototype { public class Recipe : TreeItem<Recipe> { public bool Enabled { get; set; } publ...
Update Assembly properties to version 2.0
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("HacknetPathfinder")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [...
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("HacknetPathfinder")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [...
Add test trace output to webforms page
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WingtipToys { public partial class _Default : Page { protected void Page_Load(object sender, EventArgs e) { } private void Page...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WingtipToys { public partial class _Default : Page { protected void Page_Load(object sender, EventArgs e) { HttpContext.Current.Trace...
Update version from 1.0.0.1 to 2.0.0.0
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("Op...
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("Op...
Fix a bug in array extension
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace System { public static class ArrayExtension { public static int IndexOf<T>(this T[] me, T item) { for (int i = 0; i < me.Length; i++) if (me[i].Equals(item)) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace System { public static class ArrayExtension { public static int IndexOf<T>(this T[] me, T item) { for (int i = 0; i < me.Length; i++) if (me[i]?.Equals(item) == true) ...
Simplify usage of the solver
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SketchSolve { public class Parameter { public double Value = 0; // true if the parameter is free to be adjusted by the // solver public bool free; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SketchSolve { public class Parameter { public double Value = 0; public double Max = 1000; public double Min = -1000; // true if the parameter is free to...
Put in placeholders instead of a real username and password.
using System.Xml; using PropertyFeedSampleApp.PropertyFeed; namespace PropertyFeedSampleApp { class Program { static void Main(string[] args) { const string userName = "VACATION11"; const string password = "f33der1!"; using (var client = new DataReceiverSer...
using System.Xml; using PropertyFeedSampleApp.PropertyFeed; namespace PropertyFeedSampleApp { class Program { static void Main(string[] args) { //You should have been provided values for the following const string userName = "YOUR_USER_NAME"; const string pa...
Add error handling for auth response
using System.Collections.Specialized; using System.Web; using Microsoft.IdentityModel.Protocols; namespace Owin.Security.Keycloak.Models { internal class AuthorizationResponse : OidcBaseResponse { public string Code { get; private set; } public string State { get; private set; } publi...
using System; using System.Collections.Specialized; using System.Web; using Microsoft.IdentityModel.Protocols; namespace Owin.Security.Keycloak.Models { internal class AuthorizationResponse : OidcBaseResponse { public string Code { get; private set; } public string State { get; private set; } ...
Hide .sln file from project tree
using System; using System.IO; using System.Linq; using Microsoft.VisualStudio.ProjectSystem.FileSystemMirroring.IO; namespace Microsoft.VisualStudio.R.Package.ProjectSystem { internal sealed class RMsBuildFileSystemFilter : IMsBuildFileSystemFilter { public bool IsFileAllowed(string relativePath, FileAttributes a...
using System; using System.IO; using System.Linq; using Microsoft.VisualStudio.ProjectSystem.FileSystemMirroring.IO; namespace Microsoft.VisualStudio.R.Package.ProjectSystem { internal sealed class RMsBuildFileSystemFilter : IMsBuildFileSystemFilter { public bool IsFileAllowed(string relativePath, FileAttributes a...
Fix infinite loop when retrying a failing build number
#tool "nuget:?package=GitVersion.CommandLine" #addin "Cake.Yaml" public class ContextInfo { public string NugetVersion { get; set; } public string AssemblyVersion { get; set; } public GitVersion Git { get; set; } public string BuildVersion { get { return NugetVersion + "-" + Git.Sha; } ...
#tool "nuget:?package=GitVersion.CommandLine" #addin "Cake.Yaml" public class ContextInfo { public string NugetVersion { get; set; } public string AssemblyVersion { get; set; } public GitVersion Git { get; set; } public string BuildVersion { get { return NugetVersion + "-" + Git.Sha; } ...
Fix improper container configuration for service locator
namespace OctoHook { using Autofac; using Autofac.Extras.CommonServiceLocator; using Autofac.Integration.WebApi; using Microsoft.Practices.ServiceLocation; using OctoHook.CommonComposition; using Octokit; using Octokit.Internal; using System.Configuration; using System.Reflection; using System.Web; using Sy...
namespace OctoHook { using Autofac; using Autofac.Extras.CommonServiceLocator; using Autofac.Integration.WebApi; using Microsoft.Practices.ServiceLocation; using OctoHook.CommonComposition; using Octokit; using Octokit.Internal; using System.Configuration; using System.Reflection; using System.Web; using Sy...
Verify exception message when application is not configured
using System.IO; using System.Text; using Moq; using Xunit; namespace AppHarbor.Tests { public class ApplicationConfigurationTest { public static string ConfigurationFile = Path.GetFullPath(".appharbor"); [Fact] public void ShouldReturnApplicationIdIfConfigurationFileExists() { var fileSystem = new Mock...
using System.IO; using System.Text; using Moq; using Xunit; namespace AppHarbor.Tests { public class ApplicationConfigurationTest { public static string ConfigurationFile = Path.GetFullPath(".appharbor"); [Fact] public void ShouldReturnApplicationIdIfConfigurationFileExists() { var fileSystem = new Mock...
Change Russian to Русский for the language selector
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Wox.Core.i18n { internal static class AvailableLanguages { public static Language English = new Language("en", "English"); public static Language Chinese = new Language("zh-cn", "中文"); publi...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Wox.Core.i18n { internal static class AvailableLanguages { public static Language English = new Language("en", "English"); public static Language Chinese = new Language("zh-cn", "中文"); publi...
Add ability to set loggerFactory for the ExceptionHandlerMiddleware
using System; using Microsoft.AspNetCore.Builder; namespace GlobalExceptionHandler.WebApi { public static class WebApiExceptionHandlingExtensions { [Obsolete("UseWebApiGlobalExceptionHandler is obsolete, use app.UseExceptionHandler().WithConventions(..) instead", true)] public static IApplicat...
using System; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Diagnostics; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace GlobalExceptionHandler.WebApi { public static class WebApiExceptionHandlingExtensions { [Obsolete("UseWebApiGlobalExceptionHandler...
Test for conversion to dynamic objects again
namespace AngleSharp.Scripting.CSharp.Tests { using NUnit.Framework; using System; using System.Threading.Tasks; [TestFixture] public class ConversionTests { [Test] [ExpectedException(typeof(ArgumentNullException))] public void ConvertCurrentDocumentOfFreshBrowsingConte...
namespace AngleSharp.Scripting.CSharp.Tests { using NUnit.Framework; using System; using System.Threading.Tasks; [TestFixture] public class ConversionTests { [Test] [ExpectedException(typeof(ArgumentNullException))] public void ConvertCurrentDocumentOfFreshBrowsingConte...
Fix bugs in windows phone forms renderer
using System; using Xamarin.Forms; using ZXing.Net.Mobile.Forms; using System.ComponentModel; using System.Reflection; using Xamarin.Forms.Platform.WinPhone; using ZXing.Net.Mobile.Forms.WindowsPhone; [assembly: ExportRenderer(typeof(ZXingScannerView), typeof(ZXingScannerViewRenderer))] namespace ZXing.Net.Mobile.For...
using System; using Xamarin.Forms; using ZXing.Net.Mobile.Forms; using System.ComponentModel; using System.Reflection; using Xamarin.Forms.Platform.WinPhone; using ZXing.Net.Mobile.Forms.WindowsPhone; [assembly: ExportRenderer(typeof(ZXingScannerView), typeof(ZXingScannerViewRenderer))] namespace ZXing.Net.Mobile.For...
Set position in MemoryStream to 0, to ensure it can be read from later.
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OfficeDevPnP.Core.Extensions { public static class StreamExtensions { public static MemoryStream ToMemoryStream(this Stream source) { var s...
using System.IO; namespace OfficeDevPnP.Core.Extensions { public static class StreamExtensions { public static MemoryStream ToMemoryStream(this Stream source) { var stream = source as MemoryStream; if (stream != null) return stream; var target = new MemorySt...
Remove cert-test action to help diagnose issues in azure
using System; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Web.Mvc; using Microsoft.Azure; using SFA.DAS.EmployerUsers.WebClientComponents; namespace SFA.DAS.EmployerUsers.Web.Controllers { public class HomeController : ControllerBase { public ActionR...
using System; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Web.Mvc; using Microsoft.Azure; using SFA.DAS.EmployerUsers.WebClientComponents; namespace SFA.DAS.EmployerUsers.Web.Controllers { public class HomeController : ControllerBase { public ActionR...
Add seed methods with test data
namespace App.Data.Migrations { using System.Data.Entity.Migrations; public sealed class Configuration : DbMigrationsConfiguration<AppDbContext> { public Configuration() { this.AutomaticMigrationsEnabled = true; this.AutomaticMigrationDataLossAllowed = true; // TODO:...
namespace App.Data.Migrations { using System; using System.Collections.Generic; using System.Data.Entity.Migrations; using System.Linq; using Microsoft.AspNet.Identity; using App.Data.Models; public sealed class Configuration : DbMigrationsConfiguration<AppDbContext> { public ...
Create server side API for single multiple answer question
using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRespository { private readonly TrappistDbContext _dbContex...
using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRespository { private readonly TrappistDbContext _dbContex...
Fix launch fleet command validator
using System; using Conreign.Contracts.Gameplay.Data; using Conreign.Core; using FluentValidation; namespace Conreign.Server.Gameplay.Validators { internal class LaunchFleetValidator : AbstractValidator<FleetData> { private readonly Map _map; private readonly Guid _senderId; public La...
using System; using Conreign.Contracts.Gameplay.Data; using Conreign.Core; using FluentValidation; namespace Conreign.Server.Gameplay.Validators { internal class LaunchFleetValidator : AbstractValidator<FleetData> { private readonly Map _map; private readonly Guid _senderId; public La...
Revert "make Doors list private, add getter"
using System.Collections.Generic; using UnityEngine; public class RoomDetails : MonoBehaviour { public int HorizontalSize; public int VerticalSize; private List<GameObject> Doors; void Start() { int doorIndex = 0; for(int i = 0; i < transform.childCount; i++) { GameObject...
using System.Collections.Generic; using UnityEngine; public class RoomDetails : MonoBehaviour { public int HorizontalSize; public int VerticalSize; public List<GameObject> Doors; void Start() { int doorIndex = 0; for(int i = 0; i < transform.childCount; i++) { GameObject ...
Add back missing OnHelpInvoked implementation which was removed
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using EntryPoint; using EntryPointTests.Helpers; namespace EntryPointTests.AppOptionModels { public class HelpWithRequiredArgsModel : BaseCliArguments { public HelpWithRequiredArgsModel() : base("APP_NAME") {...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using EntryPoint; using EntryPointTests.Helpers; namespace EntryPointTests.AppOptionModels { public class HelpWithRequiredArgsModel : BaseCliArguments { public HelpWithRequiredArgsModel() : base("APP_NAME") {...
Change link to point to recruit dashboard
@model SFA.DAS.EmployerAccounts.Web.ViewModels.VacancyViewModel <section class="dashboard-section"> <h2 class="section-heading heading-large"> Your apprenticeship advert </h2> <p>You have created a vacancy for your apprenticeship.</p> <table class="responsive"> <tr> <th sc...
@model SFA.DAS.EmployerAccounts.Web.ViewModels.VacancyViewModel <section class="dashboard-section"> <h2 class="section-heading heading-large"> Your apprenticeship advert </h2> <p>You have created a vacancy for your apprenticeship.</p> <table class="responsive"> <tr> <th sc...
Create hangfire sql objects extension method for ef core migration builder
using Bit.Data.Implementations; using System; namespace Microsoft.EntityFrameworkCore.Migrations { public static class MigrationBuilderExtensions { /// <summary> /// <seealso cref="SqlServerJsonLogStore"/> /// </summary> public static void CreateSqlServerJsonLogStoreTable(this ...
using Bit.Data.Implementations; using System; using System.IO; using System.Reflection; namespace Microsoft.EntityFrameworkCore.Migrations { public static class MigrationBuilderExtensions { /// <summary> /// <seealso cref="SqlServerJsonLogStore"/> /// </summary> public static v...
Update file version to 3.0.0.0
using System; namespace Xamarin.Forms.GoogleMaps.Internals { internal class ProductInformation { public const string Author = "amay077"; public const string Name = "Xamarin.Forms.GoogleMaps"; public const string Copyright = "Copyright © amay077. 2016 - 2018"; public const string...
using System; namespace Xamarin.Forms.GoogleMaps.Internals { internal class ProductInformation { public const string Author = "amay077"; public const string Name = "Xamarin.Forms.GoogleMaps"; public const string Copyright = "Copyright © amay077. 2016 - 2018"; public const string...
Store Tetris DS player name as string.
using System; using System.Collections.Generic; using System.Linq; using System.Web; using GamestatsBase; namespace Sample.tetrisds { /// <summary> /// Summary description for store /// </summary> public class store : GamestatsHandler { public store() : base("Wo3vqrDoL56sAdveYeC1", 0x00000...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using GamestatsBase; namespace Sample.tetrisds { /// <summary> /// Summary description for store /// </summary> public class store : GamestatsHandler { public store() : base("Wo3vqrDoL56sAdveYeC1", 0x00000...