Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Handle dir separator better for Mono
using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using NutzCode.Libraries.Web.StreamProvider; namespace NutzCode.CloudFileSystem { p...
using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using NutzCode.Libraries.Web.StreamProvider; namespace NutzCode.CloudFileSystem { p...
Make demo script comply with guidelines
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ReturnToBounds : MonoBehaviour { [SerializeField] Transform frontBounds = null; [SerializeField] Transform backBounds = null; [SerializeField] Transform leftBounds = null; [SerializeField] Tr...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Examples.Experimental.Demos { public cla...
Change ctor parameter to byte array
using System; using System.Linq; using System.Net; namespace BmpListener.Bgp { public class IPAddrPrefix { public IPAddrPrefix(ArraySegment<byte> data, AddressFamily afi = AddressFamily.IP) { DecodeFromBytes(data, afi); } public byte Length { get; private set; } ...
using System; using System.Net; namespace BmpListener.Bgp { public class IPAddrPrefix { public IPAddrPrefix(byte[] data, AddressFamily afi = AddressFamily.IP) { DecodeFromBytes(data, afi); } public byte Length { get; private set; } public IPAddress Prefix {...
Use current principal if provided for auth
using System; using System.Net.Http; using System.Threading.Tasks; namespace Archon.WebApi { public abstract class Link { public Authorization Authorization { get; set; } public HttpRequestMessage CreateRequest() { var req = CreateRequestInternal(); if (Authorization != null) req.Headers.Authoriza...
using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; namespace Archon.WebApi { public abstract class Link { public Authorization Authorization { get; set; } public HttpRequestMessage CreateRequest() { var req = CreateRequestInternal(); var authToken = GetAuthToken...
Update Bootstrap package in v5 test pages to v5.2.2
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>@ViewBag.Title - Atata.Bootstrap.TestApp v5</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HM...
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>@ViewBag.Title - Atata.Bootstrap.TestApp v5</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet"> @RenderSection("styles", false) </hea...
Test to run gui on STA thread
using System; using System.Threading; using Microsoft.VisualStudio.TestTools.UnitTesting; using AdmoInstallerCustomAction; using System.Windows; namespace AdmoTests.CustomActionTests { [TestClass] public class CustomActionTests { [TestMethod] public void TestMethod1() { ...
using System; using System.Threading; using Admo; using Microsoft.VisualStudio.TestTools.UnitTesting; using AdmoInstallerCustomAction; using System.Windows; namespace AdmoTests.CustomActionTests { [TestClass] public class CustomActionTests { [TestMethod] public void TestRunWPFOnSTAThread...
Implement first step of automation layer
using System; using System.Collections.Generic; using System.Linq; using System.Text; using TechTalk.SpecFlow; namespace FizzBuzz.Specification.AutomationLayer { [Binding] public class StepDefinitions { [Given(@"the current number is '(.*)'")] public void GivenTheCurrentNumberIs(int p0) { Scen...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using TechTalk.SpecFlow; namespace FizzBuzz.Specification.AutomationLayer { [Binding] public class StepDefinitions { private int currentNumber; [Given(@"the current number is '(.*)'")] public void GivenTheCurrentN...
Set expires header to max when response is intented to be cached, so browsers will not use try-get pattern for those resources next time.
using System.Threading.Tasks; using Microsoft.Owin; using System.Linq; using System; using Foundation.Api.Implementations; using System.Threading; namespace Foundation.Api.Middlewares { public class OwinCacheResponseMiddleware : DefaultOwinActionFilterMiddleware { public OwinCacheResponseMiddleware() ...
using System.Threading.Tasks; using Microsoft.Owin; using System.Linq; using System; using Foundation.Api.Implementations; namespace Foundation.Api.Middlewares { public class OwinCacheResponseMiddleware : DefaultOwinActionFilterMiddleware { public OwinCacheResponseMiddleware() { } ...
Set line ending according to the enviroment in ReFormatXML
using System.IO; using System.Xml; namespace VanillaTransformer.PostTransformations.XML { public class ReFormatXMLTransformation:IPostTransformation { public string Name { get { return "ReFormatXML"; } } public string Execute(string configContent) { var settings = new XmlWr...
using System; using System.IO; using System.Xml; namespace VanillaTransformer.PostTransformations.XML { public class ReFormatXMLTransformation:IPostTransformation { public string Name { get { return "ReFormatXML"; } } public string Execute(string configContent) { var settin...
Revert "Fix potential crash in tests when attempting to lookup key bindings in cases the lookup is not available"
// 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.Platform; using osu.Framework.Testing; namespace osu.Game.Configuration { [ExcludeFromDynamicCompile] public class DevelopmentOsuConfigManage...
// 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.Platform; using osu.Framework.Testing; namespace osu.Game.Configuration { [ExcludeFromDynamicCompile] public class DevelopmentOsuConfigManage...
Append new line at EOF
namespace PcscDotNet { /// <summary> /// Indicates whether other applications may form connections to the card. /// </summary> public enum SCardShare { /// <summary> /// This application demands direct control of the reader, so it is not available to other applications. /// <...
namespace PcscDotNet { /// <summary> /// Indicates whether other applications may form connections to the card. /// </summary> public enum SCardShare { /// <summary> /// This application demands direct control of the reader, so it is not available to other applications. /// <...
Increase AuthorBage.HoverText db table column length
using System.ComponentModel.DataAnnotations; namespace TM.Shared { public class AuthorBadge { [StringLength(400)] public string ImageSiteUrl { get; set; } [StringLength(100)] public string ImageName { get; set; } [StringLength(400)] public string Link { get; set; } [...
using System.ComponentModel.DataAnnotations; namespace TM.Shared { public class AuthorBadge { [StringLength(400)] public string ImageSiteUrl { get; set; } [StringLength(100)] public string ImageName { get; set; } [StringLength(400)] public string Link { get; set; } [...
Fix time bug with scrobbles
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace IF.Lastfm.Core.Api.Helpers { public static class ApiExtensions { public static T GetAttribute<T>(this Enum enumValue) where T : Attribute { return...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace IF.Lastfm.Core.Api.Helpers { public static class ApiExtensions { public static T GetAttribute<T>(this Enum enumValue) where T : Attribute { return...
Fix issue with nulll image icon in tabbed navigation container
using System; using Xamarin.Forms; using System.Collections.Generic; namespace FreshMvvm { public class FreshTabbedNavigationContainer : TabbedPage, IFreshNavigationService { public FreshTabbedNavigationContainer () { RegisterNavigation (); } protected void Reg...
using System; using Xamarin.Forms; using System.Collections.Generic; namespace FreshMvvm { public class FreshTabbedNavigationContainer : TabbedPage, IFreshNavigationService { public FreshTabbedNavigationContainer () { RegisterNavigation (); } protected void Reg...
Implement supported parts of Spn/UpnEndpointIdentity
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.IdentityModel.Claims; using System.Runtime; using System.Security.Principal; namespace System.ServiceModel { public class SpnEndpointIdentity : Endpo...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.IdentityModel.Claims; using System.Runtime; using System.Security.Principal; namespace System.ServiceModel { public class SpnEndpointIdentity : Endpo...
Add an overload of `AddSystemFonts`
// Copyright (c) Six Labors. // Licensed under the Apache License, Version 2.0. namespace SixLabors.Fonts { /// <summary> /// Extension methods for <see cref="IFontCollection"/>. /// </summary> public static class FontCollectionExtensions { /// <summary> /// Adds the fonts from the ...
// Copyright (c) Six Labors. // Licensed under the Apache License, Version 2.0. using System; namespace SixLabors.Fonts { /// <summary> /// Extension methods for <see cref="IFontCollection"/>. /// </summary> public static class FontCollectionExtensions { /// <summary> /// Adds the ...
Remove ViewLogic Validation on Edit Settings Screen
@model Portal.CMS.Web.Areas.Admin.ViewModels.Settings.EditViewModel @{ Layout = ""; } @using (Html.BeginForm("Edit", "Settings", FormMethod.Post)) { @Html.AntiForgeryToken() @Html.HiddenFor(x => x.SettingId) @Html.ValidationMessage("SettingName") <div class="control-group float-container"> ...
@model Portal.CMS.Web.Areas.Admin.ViewModels.Settings.EditViewModel @{ Layout = ""; } @using (Html.BeginForm("Edit", "Settings", FormMethod.Post)) { @Html.AntiForgeryToken() @Html.HiddenFor(x => x.SettingId) @Html.ValidationMessage("SettingName") <div class="control-group float-container"> ...
Exclude test utility from coverage
using System; using System.Collections; using System.Collections.Generic; using TSQLLint.Lib.Rules.RuleViolations; namespace TSQLLint.Tests.Helpers { public class RuleViolationComparer : IComparer, IComparer<RuleViolation> { public int Compare(object x, object y) { if (!(x is RuleVi...
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using TSQLLint.Lib.Rules.RuleViolations; namespace TSQLLint.Tests.Helpers { [ExcludeFromCodeCoverage] public class RuleViolationComparer : IComparer, IComparer<RuleViolation> { public in...
Fix for previous minor refactoring.
using System; using System.Linq; using Abp.Dependency; using Castle.Core; using Castle.MicroKernel; namespace Abp.Auditing { internal class AuditingInterceptorRegistrar { private readonly IAuditingConfiguration _auditingConfiguration; private readonly IIocManager _iocManager; public A...
using System; using System.Linq; using Abp.Dependency; using Castle.Core; using Castle.MicroKernel; namespace Abp.Auditing { internal class AuditingInterceptorRegistrar { private readonly IIocManager _iocManager; private readonly IAuditingConfiguration _auditingConfiguration; public A...
Load only if the file given exists
// vimage - http://torrunt.net/vimage // Corey Zeke Womack (Torrunt) - me@torrunt.net using System; namespace vimage { class Program { static void Main(string[] args) { string file; if (args.Length == 0) { #if DEBUG //file = @"C:\Users\Corey...
// vimage - http://torrunt.net/vimage // Corey Zeke Womack (Torrunt) - me@torrunt.net using System; namespace vimage { class Program { static void Main(string[] args) { string file; if (args.Length == 0) return; else file = a...
Patch delegates.xml for non Windows platform.
// Copyright 2013-2021 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unless req...
// Copyright 2013-2021 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unless req...
Add text/html as first content type, should possible detect IE..
#region using System.Collections.Generic; #endregion namespace Snooze { public static class ResourceFormatters { static readonly IList<IResourceFormatter> _formatters = new List<IResourceFormatter>(); static ResourceFormatters() { // The order of formatters...
#region using System.Collections.Generic; #endregion namespace Snooze { public static class ResourceFormatters { static readonly IList<IResourceFormatter> _formatters = new List<IResourceFormatter>(); static ResourceFormatters() { // The order of formatters...
Make griddly defaults and parameters case insensitive
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Griddly.Mvc { public class GriddlyContext { public string Name { get; set; } public bool IsDefaultSkipped { get; set; } public bool IsDeepLink { get; set; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Griddly.Mvc { public class GriddlyContext { public string Name { get; set; } public bool IsDefaultSkipped { get; set; } public bool IsDeepLink { get; set; } ...
Add field for error responses
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SlackAPI { [RequestPath("conversations.open")] public class ConversationsOpenResponse : Response { public string no_op; public string already_open; public C...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SlackAPI { [RequestPath("conversations.open")] public class ConversationsOpenResponse : Response { public string no_op; public string already_open; public C...
Add license disclaimer Cleanup formatting
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CefSharp.Wpf.Example.Handlers { public class MenuHandler : IMenuHandler { public bool OnBeforeContextMenu(IWebBrowser browser, IContextMenuParams parameters) { Console.WriteLine("Cont...
// Copyright © 2010-2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; namespace CefSharp.Wpf.Example.Handlers { public class MenuHandler : IMenuHandler { public bool OnBeforeContextMenu...
Add property 'Descricao' to class 'DetalheCurso'
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Fatec.Treinamento.Model.DTO { public class DetalhesCurso { public int Id { get; set; } public string Nome { get; set; } public string Assunto { get; set; } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Fatec.Treinamento.Model.DTO { public class DetalhesCurso { public int Id { get; set; } public string Nome { get; set; } public string Assunto { get; set; } ...
Add Peter Parker to contact page.
@{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@wechangedt...
@{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@wechangedt...
Fix default name for images
// // Image.cs // // Author: // Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com> // // Copyright (c) 2015 Benito Palacios Sánchez (c) 2015 // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Fre...
// // Image.cs // // Author: // Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com> // // Copyright (c) 2015 Benito Palacios Sánchez (c) 2015 // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Fre...
Fix html enconded characters in plain text
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace AppStudio.Uwp.Html { public sealed class HtmlText : HtmlFragment { public string Content { get; set; } public HtmlText() { ...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace AppStudio.Uwp.Html { public sealed class HtmlText : HtmlFragment { private string _content; public string Content { ...
Allow model config to be modified
namespace Halcyon.HAL { public interface IHALModelConfig { string LinkBase { get; } bool ForceHAL { get; } } }
namespace Halcyon.HAL { public interface IHALModelConfig { string LinkBase { get; set; } bool ForceHAL { get; set; } } }
Change the behavior of the object serializer so that objects are initialized with values instead of Nulls
using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; namespace LoveSeat { public interface IObjectSerializer<T> { T Deserialize(string json); string Serialize(object obj); } public class ObjectSerializer<T> : IO...
using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; namespace LoveSeat { public interface IObjectSerializer<T> { T Deserialize(string json); string Serialize(object obj); } public class ObjectSerializer<T> : IO...
Add test for 2000 (MM) - this should have been done before adding loop for M.
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using VasysRomanNumeralsKata; namespace VasysRomanNumeralsKataTest { [TestClass] public class ToRomanNumeralsTest { [TestMethod] public void WhenRomanNumeralExtensionIsPassedTenItReturnsX() { int ten = 10;...
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using VasysRomanNumeralsKata; namespace VasysRomanNumeralsKataTest { [TestClass] public class ToRomanNumeralsTest { [TestMethod] public void WhenRomanNumeralExtensionIsPassedTenItReturnsX() { int ten = 10;...
Include GogoKit version in User-Agent header
using System; using System.Collections.Generic; using System.Globalization; using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; namespace GogoKit.Http { public class UserAgentHandler : DelegatingHandler { private readonly IReadOnlyList<ProductInf...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Net.Http; using System.Net.Http.Headers; using System.Reflection; using System.Threading; using System.Threading.Tasks; namespace GogoKit.Http { public class UserAgentHandler : DelegatingHandler ...
Make MethodReplacer change opcode to CALL as default
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) { foreach (var instruction in...
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) { ...
Update agent name to only allow 18 characters so that it looks good on the screen
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FluentValidation; using PlanetWars.Shared; namespace PlanetWars.Validators { public class LogonRequestValidator : AbstractValidator<LogonRequest> { public LogonRequestValidator() ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FluentValidation; using PlanetWars.Shared; namespace PlanetWars.Validators { public class LogonRequestValidator : AbstractValidator<LogonRequest> { public LogonRequestValidator() ...
Change this to a double so that we don't have to always cast.
using System; using engine.core; namespace engine.rules { public class PercentageDiscount : Rule { private readonly string m_ApplicableItemName; private readonly int m_Percentage; public PercentageDiscount(string applicableItemName, int percentage) { m_ApplicableIt...
using System; using engine.core; namespace engine.rules { public class PercentageDiscount : Rule { private readonly string m_ApplicableItemName; private readonly double m_Percentage; public PercentageDiscount(string applicableItemName, int percentage) { m_Applicabl...
Make telemetry break execution if debugger is attached instead of pushing report
using AxoCover.Models.Extensions; using AxoCover.Properties; using System; using System.Threading.Tasks; using System.Windows; using System.Windows.Threading; namespace AxoCover.Models { public abstract class TelemetryManager : ITelemetryManager { protected IEditorContext _editorContext; public bool IsTe...
using AxoCover.Models.Extensions; using AxoCover.Properties; using System; using System.Diagnostics; using System.Threading.Tasks; using System.Windows; using System.Windows.Threading; namespace AxoCover.Models { public abstract class TelemetryManager : ITelemetryManager { protected IEditorContext _editorCont...
Fix a null ref error submitting MobileMiner stats without Network Devices
using MultiMiner.Engine; using MultiMiner.Utility.Serialization; using System.Collections.Generic; using System.IO; namespace MultiMiner.Win.Data.Configuration { public class NetworkDevices { public class NetworkDevice { public string IPAddress { get; set; } public int ...
using MultiMiner.Engine; using MultiMiner.Utility.Serialization; using System.Collections.Generic; using System.IO; namespace MultiMiner.Win.Data.Configuration { public class NetworkDevices { public class NetworkDevice { public string IPAddress { get; set; } public int ...
Change Order of Loading Styles
<!DOCTYPE html> <html lang="en-gb"> <head> <title>@SettingHelper.Get("Website Name"): @ViewBag.Title</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" /> <meta name="description" content="@SettingHelper.Get("Description Meta Tag")"> @RenderSe...
<!DOCTYPE html> <html lang="en-gb"> <head> <title>@SettingHelper.Get("Website Name"): @ViewBag.Title</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" /> <meta name="description" content="@SettingHelper.Get("Description Meta Tag")"> @RenderSe...
Allow syntax like "hex 56"
using static MyOwnSearchEngine.HtmlFactory; namespace MyOwnSearchEngine { public class Hex : IProcessor { public string GetResult(Query query) { var integer = query.TryGetStructure<Integer>(); if (integer != null) { return GetResul...
using static MyOwnSearchEngine.HtmlFactory; namespace MyOwnSearchEngine { public class Hex : IProcessor { public string GetResult(Query query) { var integer = query.TryGetStructure<Integer>(); if (integer != null) { return GetResul...
Change "Countdown" widget default "TimeFormat"
using System; using DesktopWidgets.Classes; namespace DesktopWidgets.Widgets.CountdownClock { public class Settings : WidgetClockSettingsBase { public DateTime EndDateTime { get; set; } = DateTime.Now; } }
using System; using DesktopWidgets.Classes; namespace DesktopWidgets.Widgets.CountdownClock { public class Settings : WidgetClockSettingsBase { public Settings() { TimeFormat = "dd:hh:mm:ss"; } public DateTime EndDateTime { get; set; } = DateTime.Now; } }
Change conditional from decorator to a task
public class Conditional : DecoratorTask { private ConditionalDelegate conditionalDelegate; public Conditional(string name, ConditionalDelegate conditionalDelegate) : base(name) { this.conditionalDelegate = conditionalDelegate; } public override ReturnCode Update() { var value...
public class Conditional : Task { private ConditionalDelegate conditionalDelegate; public Conditional(string name, ConditionalDelegate conditionalDelegate) : base(name) { this.conditionalDelegate = conditionalDelegate; } public override ReturnCode Update() { var value = condit...
Add type string converter documentation.
using System; using System.Collections.Generic; using System.Text; namespace SharpConfig { public interface ITypeStringConverter { string ConvertToString(object value); object ConvertFromString(string value, Type hint); Type ConvertibleType { get; } } public abstract class Typ...
using System; using System.Collections.Generic; using System.Text; namespace SharpConfig { /// <summary> /// Defines a type-to-string and string-to-type converter /// that is used for the conversion of setting values. /// </summary> public interface ITypeStringConverter { /// <summary>...
Fix isAuthenticated -> authenticated to get it working - Camunda docs error
using System; using System.Collections.Generic; using System.Text; namespace Camunda.Api.Client.Identity { public class IdentityVerifiedUser { /// <summary> /// The id of the user /// </summary> public string AuthenticatedUser; /// <summary> /// Verification suc...
using System; using System.Collections.Generic; using System.Text; namespace Camunda.Api.Client.Identity { public class IdentityVerifiedUser { /// <summary> /// The id of the user /// </summary> public string AuthenticatedUser; /// <summary> /// Verification suc...
Fix namespace function not using top level types
using dnlib.DotNet; namespace Confuser.Core.Project.Patterns { /// <summary> /// A function that compare the namespace of definition. /// </summary> public class NamespaceFunction : PatternFunction { internal const string FnName = "namespace"; /// <inheritdoc /> public override string Name { get { r...
using dnlib.DotNet; namespace Confuser.Core.Project.Patterns { /// <summary> /// A function that compare the namespace of definition. /// </summary> public class NamespaceFunction : PatternFunction { internal const string FnName = "namespace"; /// <inheritdoc /> public override string Name { get { r...
Fix Dic2 lexer regexes to work properly on Linux
using System.Collections.Generic; using System.Text.RegularExpressions; using Rant.Stringes; using Rant.Stringes.Tokens; namespace Rant.Vocabulary { internal static class Dic2Lexer { private const RegexOptions DicRegexOptions = RegexOptions.Compiled; private static readonly LexerRules<DicToke...
using System.Collections.Generic; using System.Text.RegularExpressions; using Rant.Stringes; using Rant.Stringes.Tokens; namespace Rant.Vocabulary { internal static class Dic2Lexer { private const RegexOptions DicRegexOptions = RegexOptions.Compiled; private static readonly LexerRules<DicToke...
Add test coverage for score counter alignment
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using NUnit.Framework; using osu.Framework.Testing; using osu.Game.Rulesets; using osu.Game.Rulesets.Osu; using osu.G...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using NUnit.Framework; using osu.Framework.Extensions.IEnumerableExtensions; using osu.Framework.Testing; using osu.G...
Add test for day 18 part 2
// Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.AdventOfCode.Puzzles.Y2016 { using Xunit; /// <summary> /// A class containing tests for the <see cref="Da...
// Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.AdventOfCode.Puzzles.Y2016 { using Xunit; /// <summary> /// A class containing tests for the <see cref="Da...
Fix saving changes when seeding data
using System; using System.Linq; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Diploms.Core; using System.Collections.Generic; namespace Diploms.DataLayer { public static class DiplomContentSystemExtensions { public static void EnsureSeedData(...
using System; using System.Linq; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Diploms.Core; using System.Collections.Generic; namespace Diploms.DataLayer { public static class DiplomContentSystemExtensions { public static void EnsureSeedData(...
Set to 0 if null
#region using System.Linq; using System.Management; using UlteriusServer.TaskServer.Api.Models; using UlteriusServer.TaskServer.Api.Serialization; using vtortola.WebSockets; #endregion namespace UlteriusServer.TaskServer.Api.Controllers.Impl { internal class GpuController : ApiController { private r...
#region using System.Linq; using System.Management; using UlteriusServer.TaskServer.Api.Models; using UlteriusServer.TaskServer.Api.Serialization; using vtortola.WebSockets; #endregion namespace UlteriusServer.TaskServer.Api.Controllers.Impl { internal class GpuController : ApiController { private r...
Update plateformer gravity at fixed update
using UnityEngine; using System.Collections; public class PlateformerManager : MonoBehaviour { public float MoveSpeed; public float JumpForce; public float Gravity; public float TimerForDifficulty; float timeUntilEndGame; public static PlateformerManager Instance; void Awake () { PlateformerManager.Insta...
using UnityEngine; using System.Collections; public class PlateformerManager : MonoBehaviour { public float MoveSpeed; public float JumpForce; public float Gravity; public float TimerForDifficulty; float timeUntilEndGame; public static PlateformerManager Instance; void Awake () { PlateformerManager.Insta...
Remove IO dependency; expect contents of private key and not path to key
using System; using System.Collections.Generic; using System.IO; using System.Security.Cryptography; using Jose; namespace Nexmo.Api { internal class Jwt { internal static string CreateToken(string appId, string privateKeyFile) { var tokenData = new byte[64]; var rng = ...
using System; using System.Collections.Generic; using System.Security.Cryptography; using Jose; namespace Nexmo.Api { internal class Jwt { internal static string CreateToken(string appId, string privateKey) { var tokenData = new byte[64]; var rng = RandomNumberGenerator...
Add support for update property
using System; using System.Xml.Linq; namespace Buildalyzer.Construction { public class PackageReference : IPackageReference { public string Name { get; } public string Version { get; } internal PackageReference(XElement packageReferenceElement) { this.N...
using System; using System.Xml.Linq; namespace Buildalyzer.Construction { public class PackageReference : IPackageReference { public string Name { get; } public string Version { get; } internal PackageReference(XElement packageReferenceElement) { this.N...
Use floor for better file sizes
using System; namespace GUtils.IO { public static class FileSizes { public const UInt64 B = 1024; public const UInt64 KiB = 1024 * B; public const UInt64 MiB = 1024 * KiB; public const UInt64 GiB = 1024 * MiB; public const UInt64 TiB = 1024 * GiB; public const U...
using System; namespace GUtils.IO { public static class FileSizes { public const UInt64 B = 1024; public const UInt64 KiB = 1024 * B; public const UInt64 MiB = 1024 * KiB; public const UInt64 GiB = 1024 * MiB; public const UInt64 TiB = 1024 * GiB; public const U...
Add our own Vertices method
namespace Mapsui; public class MRect2 { public MPoint Max { get; } public MPoint Min { get; } public double MaxX => Max.X; public double MaxY => Max.Y; public double MinX => Min.X; public double MinY => Min.Y; public MPoint Centroid => new MPoint(Max.X - Min.X, Max.Y - Min.Y); publi...
using System.Collections.Generic; namespace Mapsui; public class MRect2 { public MPoint Max { get; } public MPoint Min { get; } public double MaxX => Max.X; public double MaxY => Max.Y; public double MinX => Min.X; public double MinY => Min.Y; public MPoint Centroid => new MPoint(Max.X ...
Use settings repository in twitch channel service
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using twitch_tv_viewer.Models; namespace twitch_tv_viewer.Services { public class TwitchChannelService : ITwitchChannelService { public async Task<string> PlayV...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using twitch_tv_viewer.Models; using twitch_tv_viewer.Repositories; namespace twitch_tv_viewer.Services { public class TwitchChannelService : ITwitchChannelService { ...
Order by start date by default
using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using BatteryCommander.Web.Models; using MediatR; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace BatteryCommander.Web.Queries { public class GetSUTARequests : IRequest<IEnumer...
using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using BatteryCommander.Web.Models; using MediatR; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace BatteryCommander.Web.Queries { public class GetSUTARequests : IRequest<IEnumer...
Implement third step of automation layer
using System; using System.Collections.Generic; using System.Linq; using System.Text; using FizzBuzz.ConsoleApp; using TechTalk.SpecFlow; namespace FizzBuzz.Specification.AutomationLayer { [Binding] public class StepDefinitions { private int currentNumber; private string currentResult; [Given(@"the...
using System; using FizzBuzz.ConsoleApp; using NFluent; using TechTalk.SpecFlow; namespace FizzBuzz.Specification.AutomationLayer { [Binding] public class StepDefinitions { private int currentNumber; private string currentResult; [Given(@"the current number is '(.*)'")] public void GivenTheCurr...
Test for CRLF line ending bug
using UnityEngine; using System.Collections; [SelectionBase] [DisallowMultipleComponent] public class Unit : MonoBehaviour { [SerializeField] string faction; [SerializeField] int maxHeath = 100; [SerializeField] int health; // This function is called on Component Placement/Replacement ...
using UnityEngine; using System.Collections; [SelectionBase] [DisallowMultipleComponent] public class Unit : MonoBehaviour { [SerializeField] string faction; [SerializeField] int maxHeath = 100; [SerializeField] int health; // This function is called on Component Placement/Replacement ...
Add it to the job log too.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Serilog; namespace Commencement.Jobs.Common.Logging { public static class LogHelper { private static bool _loggingSetup = false; public static void ConfigureL...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Serilog; using Serilog.Exceptions.Destructurers; namespace Commencement.Jobs.Common.Logging { public static class LogHelper { private static bool _loggingSetup = false;...
Fix unprivileged file symlink creation
using System; using System.ComponentModel; using System.IO; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace Tgstation.Server.Host.IO { /// <summary> /// <see cref="ISymlinkFactory"/> for windows systems /// </summary> sealed class WindowsSymlinkFactory : ISyml...
using System; using System.ComponentModel; using System.IO; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace Tgstation.Server.Host.IO { /// <summary> /// <see cref="ISymlinkFactory"/> for windows systems /// </summary> sealed class WindowsSymlinkFactory : ISyml...
Remove whitespace and add using
using System; using System.Collections.Generic; namespace FisherYates { public static class FisherYates { /* ** http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle */ static readonly Random Rand = new Random(); public static IEnumerable<T> Shuffle<T>(this IEnumerable<T...
using System; using System.Collections.Generic; using System.Linq; namespace FisherYates { public static class FisherYates { /* ** http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle */ static readonly Random Rand = new Random(); public static IEnumerable<T> Shuffle<T>...
Move the ExprSMTLIB test cases (there's only one right now) into their own namespace.
using NUnit.Framework; using System; using Microsoft.Boogie; using Microsoft.Basetypes; using System.IO; using symbooglix; namespace SymbooglixLibTests { [TestFixture()] public class Literal { public Literal() { SymbooglixTest.setupDebug(); } [Test()] pu...
using NUnit.Framework; using System; using Microsoft.Boogie; using Microsoft.Basetypes; using System.IO; using symbooglix; namespace ExprSMTLIBTest { [TestFixture()] public class Literal { public Literal() { SymbooglixLibTests.SymbooglixTest.setupDebug(); } [Tes...
Add Guid as name for workspace registration
using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; using Microsoft.Practices.Unity; using UI.AddComponent; namespace UI { /// <summary> /// Interaction logic for App....
using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; using Microsoft.Practices.Unity; using UI.AddComponent; namespace UI { /// <summary> /// Interaction logic for App....
Update now actually does things in EvoCommand
using EvoSim; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace EvoCommand { class Program { static void Main(string[] args) { Simulation sim = new Simulation(); ...
using EvoSim; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace EvoCommand { class Program { static void Main(string[] args) { Simulation sim = new Simulation(); ...
Add Value object with Id and Text
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace netcore.Controllers { [Route("api/[controller]")] public class ValuesController : Controller { // GET api/values [HttpGet] public IEnumerable<s...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace netcore.Controllers { [Route("api/[controller]")] public class ValuesController : Controller { // GET api/values [HttpGet] public IEnumerable<V...
Set TTL for prefix to infinity rn
using System; using System.Threading.Tasks; using SoraBot.Data.Repositories.Interfaces; using SoraBot.Services.Cache; namespace SoraBot.Services.Guilds { public class PrefixService : IPrefixService { public const string CACHE_PREFIX = "prfx:"; public const short CACHE_TTL_MINS = 60; ...
using System; using System.Threading.Tasks; using SoraBot.Data.Repositories.Interfaces; using SoraBot.Services.Cache; namespace SoraBot.Services.Guilds { public class PrefixService : IPrefixService { public const string CACHE_PREFIX = "prfx:"; // public const short CACHE_TTL_MINS = 60; ...
Use generic host in sample
using System.Threading.Tasks; using Basic.Models; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using MR.AspNetCore.Jobs; namespace Basic { public class Program { public static async Task Main(string[] args) {...
using System.Threading.Tasks; using Basic.Models; using Microsoft.AspNetCore.Hosting; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using MR.AspNetCore.Jobs; namespace Basic { public class Program { public static async Task Main(string[] a...
Check if the specified path is a physical or a virtual path
using System; using System.Web; using System.Web.Hosting; using System.Configuration; namespace NuGet.Server.Infrastructure { public class PackageUtility { internal static string PackagePhysicalPath; private static string DefaultPackagePhysicalPath = HostingEnvironment.MapPath("~/Pa...
using System; using System.Web; using System.Web.Hosting; using System.Configuration; using System.IO; namespace NuGet.Server.Infrastructure { public class PackageUtility { internal static string PackagePhysicalPath; private static string DefaultPackagePhysicalPath = HostingEnviron...
Change id type from uint to ulong
namespace NTwitch { public interface IEntity { ITwitchClient Client { get; } uint Id { get; } } }
namespace NTwitch { public interface IEntity { ITwitchClient Client { get; } ulong Id { get; } } }
Remove uneeded player collection methods
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Booma.Proxy { /// <summary> /// The collection of network players that are known about. /// </summary> public interface INetworkPlayerCollection : IEnumerable<INetworkPlayer> { /// <sum...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Booma.Proxy { /// <summary> /// The collection of network players that are known about. /// </summary> public interface INetworkPlayerCollection : IEnumerable<INetworkPlayer> { /// <sum...
Comment out non-compiling test while we don't flatten ListGroups
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
Add execute method overload with ordering
// // Query.cs // // Author: // Roman M. Yagodin <roman.yagodin@gmail.com> // // Copyright (c) 2016 Roman M. Yagodin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either ver...
// // Query.cs // // Author: // Roman M. Yagodin <roman.yagodin@gmail.com> // // Copyright (c) 2016 Roman M. Yagodin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either ver...
Reduce footer height to match back button
// 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.Allocation; using osu.Framework.Bindables; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using osu.Fram...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using osu.Fram...
Change hello world implementation to using the
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; namespace Tiesmaster.Dcc { public class Startup { public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) {...
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Logging; namespace Tiesmaster.Dcc { public class Startup { public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { loggerFactory.AddCon...
Add implementation details to MySQLScheamAggregator.cs
using System; using System.Data; namespace Gigobyte.Daterpillar.Data { public class MySQLSchemaAggregator : SchemaAggregatorBase { public MySQLSchemaAggregator(IDbConnection connection) : base(connection) { } protected override string GetColumnInfoQuery(string tableName) ...
using System; using System.Data; namespace Gigobyte.Daterpillar.Data { public class MySQLSchemaAggregator : SchemaAggregatorBase { public MySQLSchemaAggregator(IDbConnection connection) : base(connection) { } protected override string GetColumnInfoQuery(string tableName) ...
Add image and description to playlist location
using System; using System.Collections.Generic; using System.Xml.Serialization; namespace SevenDigital.Api.Schema.Playlists.Response { [Serializable] public class PlaylistLocation : UserBasedUpdatableItem { [XmlAttribute("id")] public string Id { get; set; } [XmlElement("name")] public string...
using System; using System.Collections.Generic; using System.Xml.Serialization; namespace SevenDigital.Api.Schema.Playlists.Response { [Serializable] public class PlaylistLocation : UserBasedUpdatableItem { [XmlAttribute("id")] public string Id { get; set; } [XmlElement("name")] public string...
Rename Wallets group to Managers group
using AvalonStudio.MainMenu; using AvalonStudio.Menus; using System; using System.Collections.Generic; using System.Composition; using System.Text; namespace WalletWasabi.Gui.Shell.MainMenu { internal class ToolsMainMenuItems { private IMenuItemFactory _menuItemFactory; [ImportingConstructor] public ToolsMai...
using AvalonStudio.MainMenu; using AvalonStudio.Menus; using System; using System.Collections.Generic; using System.Composition; using System.Text; namespace WalletWasabi.Gui.Shell.MainMenu { internal class ToolsMainMenuItems { private IMenuItemFactory _menuItemFactory; [ImportingConstructor] public ToolsMai...
Remove the label as you can not see it when running the app
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using Android.App; using Android.OS; using Android.Content.PM; using Android.Views; namespace SampleGame.Android { [Activity(Label = "SampleGame", Config...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using Android.App; using Android.OS; using Android.Content.PM; using Android.Views; namespace SampleGame.Android { [Activity(ConfigurationChanges = Confi...
Bump the protocol version to 0x1343
#if !DEBUG using System; using System.IO; #endif using System.Threading; using YGOSharp.OCGWrapper; namespace YGOSharp { public class Program { public static uint ClientVersion = 0x133D; public static void Main(string[] args) { #if !DEBUG try {...
#if !DEBUG using System; using System.IO; #endif using System.Threading; using YGOSharp.OCGWrapper; namespace YGOSharp { public class Program { public static uint ClientVersion = 0x1343; public static void Main(string[] args) { #if !DEBUG try {...
Reduce unit test logger verbosity
using System; using NUnit.Framework; using RethinkDb; using System.Net; using System.Linq; using System.Threading.Tasks; using RethinkDb.Configuration; namespace RethinkDb.Test { public class TestBase { protected IConnection connection; [TestFixtureSetUp] public virtual void TestFixtur...
using System; using NUnit.Framework; using RethinkDb; using System.Net; using System.Linq; using System.Threading.Tasks; using RethinkDb.Configuration; namespace RethinkDb.Test { public class TestBase { protected IConnection connection; [TestFixtureSetUp] public virtual void TestFixtur...
Fix offset samples for GetData
using System.Linq; using UniRx; using UniRx.Triggers; using UnityEngine; public class WaveformRenderer : MonoBehaviour { [SerializeField] Color color; void Awake() { var model = NotesEditorModel.Instance; var waveData = new float[500000]; var skipSamples = 50; var line...
using System.Linq; using UniRx; using UniRx.Triggers; using UnityEngine; public class WaveformRenderer : MonoBehaviour { [SerializeField] Color color; void Awake() { var model = NotesEditorModel.Instance; var waveData = new float[500000]; var skipSamples = 50; var line...
Fix UI scale; add Canvas property
using System; using System.Collections.Generic; using ContractsWindow.Unity.Unity; using UnityEngine; using UnityEngine.UI; namespace ContractsWindow.Unity.Interfaces { public interface ICW_Window { bool HideTooltips { get; set; } bool BlizzyAvailable { get; } bool StockToolbar { get; set; } bool Replace...
using System; using System.Collections.Generic; using ContractsWindow.Unity.Unity; using UnityEngine; using UnityEngine.UI; namespace ContractsWindow.Unity.Interfaces { public interface ICW_Window { bool HideTooltips { get; set; } bool BlizzyAvailable { get; } bool StockToolbar { get; set; } bool Replace...
Destroy factory items when moving them to stockpile
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(GridPositionComponent))] [RequireComponent(typeof(ResourceSink))] public class GridOutput : MonoBehaviour { private ResourceStorage ItemDestination; private ResourceSink ItemSource; // Use this for initia...
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(GridPositionComponent))] [RequireComponent(typeof(ResourceSink))] public class GridOutput : MonoBehaviour { private ResourceStorage ItemDestination; private ResourceSink ItemSource; // Use this for initia...
Fix bug where test mode wouldn't launch
// Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using EndlessClient.GameExecution; using EndlessClient.Rendering.Factories; using EOLib.IO.Repositories; namespace EndlessClient { //todo: move this to a different n...
// Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using EndlessClient.GameExecution; using EndlessClient.Rendering.Factories; using EOLib.IO.Repositories; namespace EndlessClient { //todo: move this to a different n...
Split WCF functionality out of Autofac.Extras.Multitenant into a separate assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned 3.1.0.
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34003 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18051 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generate...
Make Range report invalid arguments when throwing
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ItemCollage { public static class Helper { public static IEnumerable<int> Range(int start, int end, int step = 1) { if (start > end && step > 0 || start < end && step < 0...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ItemCollage { public static class Helper { public static IEnumerable<int> Range(int start, int end, int step = 1) { if (start > end && step > 0 || start < end && step < 0...
Change assembly version for release
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("ChangeLoadingImage_beta")] [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("ChangeLoadingImage1.0")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")...
Store sent date in UTC
using System; using System.Runtime.Serialization; [DataContract] class TellEntry { [DataMember] public readonly string From; [DataMember] public readonly string Message; [DataMember] public readonly DateTimeOffset SentDate; public TimeSpan ElapsedTime { get { ...
using System; using System.Runtime.Serialization; [DataContract] class TellEntry { [DataMember] public readonly string From; [DataMember] public readonly string Message; [DataMember] public readonly DateTime SentDateUtc; public TimeSpan ElapsedTime { get { ...
Enumerate once, make it readonly
using System; using System.Collections.Generic; using System.Linq; using NuGet.Packaging.Core; using NuGet.Versioning; namespace NuKeeper.RepositoryInspection { public class PackageUpdateSet { public PackageUpdateSet(PackageIdentity newPackage, IEnumerable<PackageInProject> currentPackages) { ...
using System; using System.Collections.Generic; using System.Linq; using NuGet.Packaging.Core; using NuGet.Versioning; namespace NuKeeper.RepositoryInspection { public class PackageUpdateSet { public PackageUpdateSet(PackageIdentity newPackage, IEnumerable<PackageInProject> currentPackages) { ...
Increment and Decrement with 0 does not send any data.
using System; using LandauMedia.Telemetry.Internal; namespace LandauMedia.Telemetry { public class Counter : ITelemeter { readonly Lazy<string> _lazyName; Action<Lazy<string>, int> _decrement; Action<Lazy<string>> _decrementByOne; Action<Lazy<string>, int> _icnremnent; A...
using System; using LandauMedia.Telemetry.Internal; namespace LandauMedia.Telemetry { public class Counter : ITelemeter { readonly Lazy<string> _lazyName; Action<Lazy<string>, int> _decrement; Action<Lazy<string>> _decrementByOne; Action<Lazy<string>, int> _icnremnent;...
Change instance from Motor to Object in test case
using System; using CSharpTraining; using MonoBrickFirmware.Movement; namespace XUnitSample.Tests { /// <summary> /// Sample test class /// </summary> /// <remarks> /// It was described below URL how to use XUnit /// https://xunit.github.io/docs/comparisons.html /// </remarks> public class MainClassTests { ...
using System; using CSharpTraining; using MonoBrickFirmware.Movement; namespace XUnitSample.Tests { /// <summary> /// Sample test class /// </summary> /// <remarks> /// It was described below URL how to use XUnit /// https://xunit.github.io/docs/comparisons.html /// </remarks> public class MainClassTests { ...
Fix zip download to be non-blocking
#region Copyright (c) 2016 Atif Aziz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
#region Copyright (c) 2016 Atif Aziz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
Fix KeyCounter M1 M2 display.
// 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.Framework.Input; using OpenTK; using OpenTK.Input; namespace osu.Game.Screens.Play { public class KeyCounterMouse : KeyCounter { p...
// 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.Framework.Input; using OpenTK; using OpenTK.Input; namespace osu.Game.Screens.Play { public class KeyCounterMouse : KeyCounter { p...
Add platform init calls for UWP
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xam...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xam...
Fix async warning in toggle block comment.
// 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; using System.ComponentModel.Composition; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CommentSelection; u...
// 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; using System.ComponentModel.Composition; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CommentSelection; u...
Add override to fix left/right arrow control
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK.Graphics; using OpenTK.Input; using osu.Framework.Input; using System; namespace osu.Game.Graphics.UserInterface { /// <summary> /// A ...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK.Graphics; using OpenTK.Input; using osu.Framework.Input; using System; namespace osu.Game.Graphics.UserInterface { /// <summary> /// A ...
Change assembly version to be major version
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
Handle change to cookie parser.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http.Core; using Microsoft.AspNet.Http.Core.Collections; using Xunit; namespace MusicStore.Models { public class ShoppingCartTest { [Fact] public void GetCartId_ReturnsCartIdFromCookies() { // Arrange var cartI...
using System.Collections.Generic; using Microsoft.AspNet.Http; using Microsoft.AspNet.Http.Core; using Microsoft.AspNet.Http.Core.Collections; using Xunit; namespace MusicStore.Models { public class ShoppingCartTest { [Fact] public void GetCartId_ReturnsCartIdFromCookies() { ...
Add short link to Service
using System; namespace KpdApps.Common.MsCrm2015 { public class BasePluginAction { public PluginState State { get; set; } public BasePluginAction(PluginState state) { State = state; } public virtual void Execute() { throw new NotImpleme...
using System; using Microsoft.Xrm.Sdk; namespace KpdApps.Common.MsCrm2015 { public class BasePluginAction { public PluginState State { get; set; } public IOrganizationService Service => State.Service; public BasePluginAction(PluginState state) { State = state; ...