Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Fix test data path when building in Unity plugin
using JetBrains.Application.BuildScript.Application.Zones; using JetBrains.ReSharper.TestFramework; using JetBrains.TestFramework; using JetBrains.TestFramework.Application.Zones; using NUnit.Framework; [assembly: RequiresSTA] namespace JetBrains.ReSharper.Plugins.Yaml.Tests { [ZoneDefinition] public interfa...
using JetBrains.Application.BuildScript.Application.Zones; using JetBrains.ReSharper.TestFramework; using JetBrains.TestFramework; using JetBrains.TestFramework.Application.Zones; using NUnit.Framework; [assembly: RequiresSTA] // This attribute is marked obsolete but is still supported. Use is discouraged in prefere...
Add download_url and content_type for file upload questions
using Newtonsoft.Json; namespace SurveyMonkey.Containers { [JsonConverter(typeof(TolerantJsonConverter))] public class ResponseAnswer { public long? ChoiceId { get; set; } public long? RowId { get; set; } public long? ColId { get; set; } public long? OtherId { get; set; } ...
using Newtonsoft.Json; namespace SurveyMonkey.Containers { [JsonConverter(typeof(TolerantJsonConverter))] public class ResponseAnswer { public long? ChoiceId { get; set; } public long? RowId { get; set; } public long? ColId { get; set; } public long? OtherId { get; set; } ...
Revert "And we have the medium line working!"
using System; using System.Collections.Generic; using System.Linq; using System.Text; using WPAppStudio.Services.Interfaces; namespace WPAppStudio.Services { public class WordWrapService { private readonly ITextMeasurementService _tms; public WordWrapService(ITextMeasurementService textMeasur...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using WPAppStudio.Services.Interfaces; namespace WPAppStudio.Services { public class WordWrapService { private readonly ITextMeasurementService _tms; public WordWrapService(ITextMeasurementService textMeasur...
Revert "Removing 'zzz' from method name"
using System; using System.Linq; namespace Smartrak.Collections.Paging { public static class PagingHelpers { /// <summary> /// Gets a paged list of entities with the total appended to each row in the resultset. This is a faster way of doing things than using 2 seperate queries /// </summary> /// <typeparam ...
using System; using System.Linq; namespace Smartrak.Collections.Paging { public static class PagingHelpers { /// <summary> /// Gets a paged list of entities with the total appended to each row in the resultset. This is a faster way of doing things than using 2 seperate queries /// </summary> /// <typeparam ...
Enable the GC to clean up the process list immediately. Fixed potential null reference when disposing before starting.
using System; using System.Diagnostics; using System.Threading; namespace ProcessRelauncher { public class ProcessMonitor : IDisposable { private Timer _timer; private readonly int _monitoringPollingIntervalMs; private readonly ProcessStartInfo _processStartInfo; pri...
using System; using System.Diagnostics; using System.Threading; namespace ProcessRelauncher { public class ProcessMonitor : IDisposable { private Timer _timer; private readonly int _monitoringPollingIntervalMs; private readonly ProcessStartInfo _processStartInfo; pri...
Comment out the code in Hangman that uses Table
using System; namespace Hangman { public class Hangman { public static void Main(string[] args) { Table table = new Table(2, 3); string output = table.Draw(); Console.WriteLine(output); } } }
using System; namespace Hangman { public class Hangman { public static void Main(string[] args) { // Table table = new Table(2, 3); // string output = table.Draw(); // Console.WriteLine(output); } } }
Set LogLevel in master branch to Warning
namespace BaiduHiCrawler { using System; static class Constants { public const string CommentRetrivalUrlPattern = "http://hi.baidu.com/qcmt/data/cmtlist?qing_request_source=new_request&thread_id_enc={0}&start={1}&count={2}&orderby_type=0&favor=2&type=smblog"; public c...
namespace BaiduHiCrawler { using System; static class Constants { public const string CommentRetrivalUrlPattern = "http://hi.baidu.com/qcmt/data/cmtlist?qing_request_source=new_request&thread_id_enc={0}&start={1}&count={2}&orderby_type=0&favor=2&type=smblog"; public c...
Set default <UpdateFrameCount> to 10
using System.Collections.Generic; using Rocket.API; using RocketRegions.Model; namespace RocketRegions { public class RegionsConfiguration : IRocketPluginConfiguration { public int UpdateFrameCount; public List<Region> Regions; public string UrlOpenMessage; public void LoadDef...
using System.Collections.Generic; using Rocket.API; using RocketRegions.Model; namespace RocketRegions { public class RegionsConfiguration : IRocketPluginConfiguration { public int UpdateFrameCount; public List<Region> Regions; public string UrlOpenMessage; public void LoadDef...
Add "Input Mode", "File" options to "Popup" action
using System.ComponentModel; using System.Windows; namespace DesktopWidgets.Actions { internal class PopupAction : ActionBase { [DisplayName("Text")] public string Text { get; set; } = ""; [DisplayName("Title")] public string Title { get; set; } = ""; [DisplayName("Im...
using System.ComponentModel; using System.IO; using System.Windows; using DesktopWidgets.Classes; namespace DesktopWidgets.Actions { internal class PopupAction : ActionBase { public FilePath FilePath { get; set; } = new FilePath(); [DisplayName("Text")] public string Text { get; set; ...
Add version field and make CheckForErrors less accessible from outside.
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Newtonsoft.Json; namespace GarrysMod.AddonCreator { public class AddonJson { [JsonProperty("title")] public string Title { get; set; } [JsonProperty("description")] pub...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Newtonsoft.Json; namespace GarrysMod.AddonCreator { public class AddonJson { [JsonProperty("title")] public string Title { get; set; } [JsonProperty("description")] pub...
Remove unused Toolbar options until we actually make use of them
using System; using System.Diagnostics; using Xamarin.Forms; using InteractApp; namespace InteractApp { public class EventListPageBase : ViewPage<EventListPageViewModel> { } public partial class EventListPage : EventListPageBase { public EventListPage () { InitializeComponent (); this.Title = "Eve...
using System; using System.Diagnostics; using Xamarin.Forms; using InteractApp; namespace InteractApp { public class EventListPageBase : ViewPage<EventListPageViewModel> { } public partial class EventListPage : EventListPageBase { public EventListPage () { InitializeComponent (); this.Title = "Eve...
Write Position using the Position Writer Function
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using PolarisServer.Packets; namespace PolarisServer.Models { public class PSOObject { public struct PSOObjectThing { public UInt32 data; } public EntityHeader He...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using PolarisServer.Packets; namespace PolarisServer.Models { public class PSOObject { public struct PSOObjectThing { public UInt32 data; } public EntityHeader He...
Change comment test to reflect changed samples
using System; using System.IO; using System.Linq; using Villermen.RuneScapeCacheTools.Audio.Vorbis; using Xunit; using Xunit.Abstractions; namespace RuneScapeCacheToolsTests { public class VorbisTests : IDisposable { private ITestOutputHelper Output { get; } private VorbisReader Reader1 { get...
using System; using System.IO; using System.Linq; using Villermen.RuneScapeCacheTools.Audio.Vorbis; using Xunit; using Xunit.Abstractions; namespace RuneScapeCacheToolsTests { public class VorbisTests : IDisposable { private ITestOutputHelper Output { get; } private VorbisReader Reader1 { get...
Fix a little bug with the new counter. The rf frequency measurement is now tested and works.
using System; using System.Collections.Generic; using System.Text; using DAQ.Environment; namespace DAQ.HAL { public class Agilent53131A : FrequencyCounter { public Agilent53131A(String visaAddress) : base(visaAddress) {} public override double Frequency { ...
using System; using System.Collections.Generic; using System.Text; using DAQ.Environment; namespace DAQ.HAL { public class Agilent53131A : FrequencyCounter { public Agilent53131A(String visaAddress) : base(visaAddress) {} public override double Frequency { ...
Decrease bootstrap column sizes to improve mobile experience
@model Vaskelista.Models.Household @{ ViewBag.Title = "Create"; } <h2>Velkommen til vaskelista</h2> <p>Her kan du velge hva vaskelisten din skal hete:</p> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-12"><label>@Request.Url.ToString()</label></div> ...
@model Vaskelista.Models.Household @{ ViewBag.Title = "Create"; } <h2>Velkommen til vaskelista</h2> <p>Her kan du velge hva vaskelisten din skal hete:</p> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-2"><label>@Request.Url.ToString()</label></div> ...
Rename previously unknown GAF field
namespace TAUtil.Gaf.Structures { using System.IO; public struct GafFrameData { public ushort Width; public ushort Height; public ushort XPos; public ushort YPos; public byte Unknown1; public bool Compressed; public ushort FramePointers; ...
namespace TAUtil.Gaf.Structures { using System.IO; public struct GafFrameData { public ushort Width; public ushort Height; public ushort XPos; public ushort YPos; public byte TransparencyIndex; public bool Compressed; public ushort FrameP...
Add change handling for sample section
// 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.Bindables; using osu.Framework.Graphics; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Graphics.UserInterfaceV...
// 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.Bindables; using osu.Framework.Graphics; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Graphics.UserInterfaceV...
Tweak conventions for nservicebus messages to work in unobtrusive and normal mode
using System; using NServiceBus; using SFA.DAS.AutoConfiguration; using SFA.DAS.EmployerFinance.Messages.Commands; using SFA.DAS.Notifications.Messages.Commands; using SFA.DAS.NServiceBus.Configuration.AzureServiceBus; using StructureMap; namespace SFA.DAS.EmployerAccounts.Extensions { public static class Endpoi...
using System; using NServiceBus; using SFA.DAS.AutoConfiguration; using SFA.DAS.EmployerFinance.Messages.Commands; using SFA.DAS.Notifications.Messages.Commands; using SFA.DAS.NServiceBus.Configuration.AzureServiceBus; using StructureMap; namespace SFA.DAS.EmployerAccounts.Extensions { public static class Endpoi...
Use the logger for writing to the console.
using System; using System.Threading; using Flood.Editor.Server; namespace Flood.Editor { public class ServerManager { public EditorServer Server { get; private set; } private ManualResetEventSlim serverCreatedEvent; private void RunBuiltinServer() { serverCreatedEv...
using System; using System.Threading; using Flood.Editor.Server; namespace Flood.Editor { public class ServerManager { public EditorServer Server { get; private set; } private ManualResetEventSlim serverCreatedEvent; private void RunBuiltinServer() { serverCreatedEv...
Make bitmap loading cache the image
using System; using System.Globalization; using System.Windows; using System.Windows.Media.Imaging; namespace WPFConverters { public class BitmapImageConverter : BaseConverter { protected override object OnConvert(object value, Type targetType, object parameter, CultureInfo culture) { ...
using System; using System.Globalization; using System.Windows; using System.Windows.Media.Imaging; namespace WPFConverters { public class BitmapImageConverter : BaseConverter { protected override object OnConvert(object value, Type targetType, object parameter, CultureInfo culture) { ...
Use google API key in async test.
using System.Linq; using Geocoding.Google; using Xunit; using Xunit.Extensions; namespace Geocoding.Tests { public class GoogleAsyncGeocoderTest : AsyncGeocoderTest { GoogleGeocoder geoCoder; protected override IAsyncGeocoder CreateAsyncGeocoder() { geoCoder = new GoogleGeocoder(); return geoCoder; }...
using System.Configuration; using System.Linq; using Geocoding.Google; using Xunit; using Xunit.Extensions; namespace Geocoding.Tests { public class GoogleAsyncGeocoderTest : AsyncGeocoderTest { GoogleGeocoder geoCoder; protected override IAsyncGeocoder CreateAsyncGeocoder() { geoCoder = new GoogleGeocode...
Allow for multiple instances of redis running on the same server but different ports.
using System.Configuration; namespace StackExchange.Redis.Extensions.Core.Configuration { /// <summary> /// Configuration Element Collection for <see cref="RedisHost"/> /// </summary> public class RedisHostCollection : ConfigurationElementCollection { /// <summary> /// Gets or sets the <see cref="R...
using System.Configuration; namespace StackExchange.Redis.Extensions.Core.Configuration { /// <summary> /// Configuration Element Collection for <see cref="RedisHost"/> /// </summary> public class RedisHostCollection : ConfigurationElementCollection { /// <summary> /// Gets or sets the <see cref="R...
Fix up badly spelled test
using System; using System.Diagnostics; using System.Linq.Expressions; using LINQToTTreeLib.Expressions; using Microsoft.Pex.Framework; using Microsoft.Pex.Framework.Validation; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace LINQToTTreeLib.Tests.ResultOperators { [TestClass] [PexClass...
using LINQToTTreeLib.Expressions; using Microsoft.Pex.Framework; using Microsoft.Pex.Framework.Validation; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Diagnostics; using System.Linq.Expressions; namespace LINQToTTreeLib.Tests.ResultOperators { [TestClass] [PexClass...
Use shell execute for run action.
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace MediaCentreServer.Controllers { // Controller for running an application. public class RunController : ApiController { // POST /api/run?path=... ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace MediaCentreServer.Controllers { // Controller for running an application. public class RunController : ApiController { // POST /api/run?path=... ...
Use a frozen clock for catcher trails
// 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.Pooling; using osuTK; namespace osu.Game.Rulesets.Catch.UI { /// <summary> /// A trail of the catcher....
// 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.Pooling; using osu.Framework.Timing; using osuTK; namespace osu.Game.Rulesets.Catch.UI { /// <summary> ...
Fix status label updating (update method not called if control is not visible)
// Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using System; using EndlessClient.HUD; using EndlessClient.Rendering; using EOLib; using Microsoft.Xna.Framework; using XNAControls; namespace EndlessClient.UIControls {...
// Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using System; using EndlessClient.HUD; using EndlessClient.Rendering; using EOLib; using Microsoft.Xna.Framework; using XNAControls; namespace EndlessClient.UIControls {...
Add fields for PPU registers.
using System.Drawing; namespace DanTup.DaNES.Emulation { class Ppu { public Memory Ram { get; } public Bitmap Screen { get; } public Ppu(Memory ram, Bitmap screen) { Ram = ram; Screen = screen; for (var x = 0; x < 256; x++) { for (var y = 0; y < 240; y++) { Screen.SetPixel(x, y, C...
using System.Drawing; namespace DanTup.DaNES.Emulation { class Ppu { public Memory Ram { get; } public Bitmap Screen { get; } // PPU Control bool NmiEnable; bool PpuMasterSlave; bool SpriteHeight; bool BackgroundTileSelect; bool SpriteTileSelect; bool IncrementMode; bool NameTableSelect1; boo...
Add back the default json converter locally to ensure it's actually used
// 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 Newtonsoft.Json; namespace osu.Game.IO.Serialization { public interface IJsonSerializable { } public static class JsonSerializableExtensions ...
// 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 Newtonsoft.Json; using osu.Framework.IO.Serialization; namespace osu.Game.IO.Serialization { public interface IJsonSerializa...
Set Secret.cs so it will not be modified by default. This means we can put sensitive information in it, and it won't go into source control
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace NetBotsHostProject.Models { public static class Secrets { private static readonly Dictionary<string,string> _secrets = new Dictionary<string, string>() { {"gitHubClientIdDev", "placeholde...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace NetBotsHostProject.Models { public static class Secrets { private static readonly Dictionary<string,string> _secrets = new Dictionary<string, string>() { {"gitHubClientIdDev", "placeHolde...
Change version up to 1.1.1
using UnityEngine; using System.Reflection; [assembly: AssemblyVersion("1.1.0.*")] public class Loader : MonoBehaviour { /// <summary> /// DebugUI prefab to instantiate. /// </summary> [SerializeField] private GameObject _debugUI; /// <summary> /// ModalDialog prefab to insta...
using UnityEngine; using System.Reflection; [assembly: AssemblyVersion("1.1.1.*")] public class Loader : MonoBehaviour { /// <summary> /// DebugUI prefab to instantiate. /// </summary> [SerializeField] private GameObject _debugUI; /// <summary> /// ModalDialog prefab to insta...
Simplify foreach'es to a LINQ expression
using System; using System.Collections.Generic; using System.Linq; using Grobid.PdfToXml; namespace Grobid.NET { public class PdfBlockExtractor<T> { private readonly BlockStateFactory factory; public PdfBlockExtractor() { this.factory = new BlockStateFactory...
using System; using System.Collections.Generic; using System.Linq; using Grobid.PdfToXml; namespace Grobid.NET { public class PdfBlockExtractor<T> { private readonly BlockStateFactory factory; public PdfBlockExtractor() { this.factory = new BlockStateFactory...
Add timer for email sending
using CertiPay.Common.Logging; using System; using System.Threading.Tasks; using Twilio; namespace CertiPay.Common.Notifications { /// <summary> /// Send an SMS message to the given recipient. /// </summary> /// <remarks> /// Implementation may be sent into background processing. /// </remarks...
using CertiPay.Common.Logging; using System; using System.Threading.Tasks; using Twilio; namespace CertiPay.Common.Notifications { /// <summary> /// Send an SMS message to the given recipient. /// </summary> /// <remarks> /// Implementation may be sent into background processing. /// </remarks...
Make Tablet and Desktop device types report as Desktop
using Windows.System.Profile; using Windows.UI.ViewManagement; namespace DigiTransit10.Helpers { public static class DeviceTypeHelper { public static DeviceFormFactorType GetDeviceFormFactorType() { switch (AnalyticsInfo.VersionInfo.DeviceFamily) { case ...
using Windows.System.Profile; using Windows.UI.ViewManagement; namespace DigiTransit10.Helpers { public static class DeviceTypeHelper { public static DeviceFormFactorType GetDeviceFormFactorType() { switch (AnalyticsInfo.VersionInfo.DeviceFamily) { case ...
Fix bug in test where key value was not being set.
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Mvc.ViewComponents; using Microsoft.Data.Entity; using Microsoft.Extensions.DependencyInjection; using MusicStore.Models; using Xunit; namespace MusicStore.Components { public class GenreMenuComp...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Mvc.ViewComponents; using Microsoft.Data.Entity; using Microsoft.Extensions.DependencyInjection; using MusicStore.Models; using Xunit; namespace MusicStore.Components { public class GenreMenuComp...
Use type filtering when searching matching content for BestBets
using System.Linq; using EPiServer.Core; using EPiServer.Find; using EPiServer.Find.Framework; using EPiServer.ServiceLocation; using Vro.FindExportImport.Models; namespace Vro.FindExportImport.Stores { public interface ISearchService { ContentReference FindMatchingContent(BestBetEntity bestBetEntity);...
using System; using System.Linq; using EPiServer; using EPiServer.Core; using EPiServer.Find; using EPiServer.Find.Framework; using EPiServer.ServiceLocation; using Vro.FindExportImport.Models; namespace Vro.FindExportImport.Stores { public interface ISearchService { ContentReference FindMatchingConten...
Set cursor invisible in visual test game
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; using osu.Framework.Screens.Testing; namespace osu...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; using osu.Framework.Platform; using osu.Framework.Sc...
Update tag helper usage from upstream breaking change
using System.Text; using Microsoft.AspNet.Razor.Runtime.TagHelpers; using Microsoft.AspNet.Mvc.Rendering; namespace Glimpse.Web.Common { [TargetElement("body")] public class ScriptInjector : TagHelper { public override int Order => int.MaxValue; public override void Process(TagHelperContex...
using System.Text; using Microsoft.AspNet.Razor.Runtime.TagHelpers; using Microsoft.AspNet.Mvc.Rendering; namespace Glimpse.Web.Common { [TargetElement("body")] public class ScriptInjector : TagHelper { public override int Order => int.MaxValue; public override void Process(TagHelperContex...
Add API comments for address
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace CertiPay.Payroll.Common { [ComplexType] public class Address { // Warning: This is marked as a complex type, and used in several projects, so any changes will trickle down into ...
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace CertiPay.Payroll.Common { /// <summary> /// Represents a basic address format for the United States /// </summary> [ComplexType] public class Address { // Warning: T...
Add warning about no edit/delete
@model alert_roster.web.Models.Message @{ ViewBag.Title = "Post New Message"; } <h2>@ViewBag.Title</h2> @using (Html.BeginForm("New", "Home", FormMethod.Post)) { @Html.AntiForgeryToken() <div class="form-horizontal"> <hr /> @Html.ValidationSummary(true) <div class="alert alert-...
@model alert_roster.web.Models.Message @{ ViewBag.Title = "Post New Message"; } <h2>@ViewBag.Title</h2> @using (Html.BeginForm("New", "Home", FormMethod.Post)) { @Html.AntiForgeryToken() <div class="form-horizontal"> <hr /> @Html.ValidationSummary(true) <div class="alert alert-...
Optimize FutureProof to not load when the version is up to date
using System.Threading.Tasks; using EE.FutureProof; using JetBrains.Annotations; using PlayerIOClient; namespace BotBits { public class FutureProofLoginClient : LoginClient { private const int CurrentVersion = 218; public FutureProofLoginClient([NotNull] ConnectionManager connectionMa...
using System.Threading.Tasks; using EE.FutureProof; using JetBrains.Annotations; using PlayerIOClient; namespace BotBits { public class FutureProofLoginClient : LoginClient { private const int CurrentVersion = 218; public FutureProofLoginClient([NotNull] ConnectionManager connectionMa...
Fix not pasting stats with no boss name available.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CasualMeter.Common.Helpers; using Tera.DamageMeter; namespace CasualMeter.Common.Formatters { public class DamageTrackerFormatter : Formatter { public DamageTrackerFormatter(Damage...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CasualMeter.Common.Helpers; using Tera.DamageMeter; namespace CasualMeter.Common.Formatters { public class DamageTrackerFormatter : Formatter { public DamageTrackerFormatter(Damage...
Throw exception on unsupported exception
using System; using System.Collections.Generic; using System.Linq; using System.Net; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Okanshi.Dashboard.Models; namespace Okanshi.Dashboard { public interface IGetMetrics { IEnumerable<Metric> Execute(string instanceName); } public class GetMetrics : IGet...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Okanshi.Dashboard.Models; namespace Okanshi.Dashboard { public interface IGetMetrics { IEnumerable<Metric> Execute(string instanceName); } public class GetMetrics : IGet...
Update comment for ClearMessages request
using Basic.Azure.Storage.Communications.Core; using Basic.Azure.Storage.Communications.Core.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Basic.Azure.Storage.Communications.QueueService.MessageOperations { /// <summary> ...
using Basic.Azure.Storage.Communications.Core; using Basic.Azure.Storage.Communications.Core.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Basic.Azure.Storage.Communications.QueueService.MessageOperations { /// <summary> ...
Make scene asset / scene name deprecated
using UnityEngine; namespace LiteNetLibManager { [System.Serializable] public class LiteNetLibScene { [SerializeField] public Object sceneAsset; [SerializeField] public string sceneName = string.Empty; public string SceneName { get { return scen...
using UnityEngine; namespace LiteNetLibManager { [System.Serializable] public class LiteNetLibScene { [SerializeField] private Object sceneAsset; [SerializeField] private string sceneName = string.Empty; public string SceneName { get { return sc...
Use the correct size for the symlink path buffer
using System.Buffers; using System.Diagnostics; using System.Runtime.InteropServices; using System.Text; namespace Avalonia.FreeDesktop { internal static class NativeMethods { [DllImport("libc", SetLastError = true)] private static extern long readlink([MarshalAs(UnmanagedType.LPArray)] byte[] ...
using System.Buffers; using System.Diagnostics; using System.Runtime.InteropServices; using System.Text; namespace Avalonia.FreeDesktop { internal static class NativeMethods { [DllImport("libc", SetLastError = true)] private static extern long readlink([MarshalAs(UnmanagedType.LPArray)] byte[] ...
Work around broken mime-type detection.
using Hyena; using TagLib; using System; using GLib; namespace FSpot.Utils { public static class Metadata { public static TagLib.Image.File Parse (SafeUri uri) { // Detect mime-type var gfile = FileFactory.NewForUri (uri); var info = gfile.QueryInfo ("standar...
using Hyena; using TagLib; using System; using GLib; namespace FSpot.Utils { public static class Metadata { public static TagLib.Image.File Parse (SafeUri uri) { // Detect mime-type var gfile = FileFactory.NewForUri (uri); var info = gfile.QueryInfo ("standar...
Add multiple response handling for diferente score levels
using System; using System.Threading; using System.Threading.Tasks; using Lime.Protocol; using Takenet.MessagingHub.Client; using Takenet.MessagingHub.Client.Listener; using Takenet.MessagingHub.Client.Sender; using System.Diagnostics; using FaqTemplate.Core.Services; using FaqTemplate.Core.Domain; namespace FaqTempla...
using System; using System.Threading; using System.Threading.Tasks; using Lime.Protocol; using Takenet.MessagingHub.Client; using Takenet.MessagingHub.Client.Listener; using Takenet.MessagingHub.Client.Sender; using System.Diagnostics; using FaqTemplate.Core.Services; using FaqTemplate.Core.Domain; namespace FaqTempla...
Move 'Empty Website' template to Default language
using System; using System.Collections.Generic; using System.EnterpriseServices.Internal; using System.Linq; using System.Runtime.Serialization; using System.Web; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace SimpleWAWS.Models { public class WebsiteTemplate : BaseTemplate { [JsonP...
using System; using System.Collections.Generic; using System.EnterpriseServices.Internal; using System.Linq; using System.Runtime.Serialization; using System.Web; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace SimpleWAWS.Models { public class WebsiteTemplate : BaseTemplate { [JsonP...
Fix minor issue with unix time calculation.
using System; namespace Telegram.Bot.Helpers { /// <summary> /// Extension Methods /// </summary> public static class Extensions { private static readonly DateTime UnixStart = new DateTime(1970, 1, 1); /// <summary> /// Convert a long into a DateTime /// </summary...
using System; namespace Telegram.Bot.Helpers { /// <summary> /// Extension Methods /// </summary> public static class Extensions { private static readonly DateTime UnixStart = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); /// <summary> /// Convert a long into a Dat...
Remove unused RoleProvider setting from authentication configuration
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; namespace Bonobo.Git.Server.Configuration { public class AuthenticationSettings { public static string MembershipService { get; private set; } public static string RoleProvider { ge...
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; namespace Bonobo.Git.Server.Configuration { public class AuthenticationSettings { public static string MembershipService { get; private set; } static AuthenticationSettings() ...
Update tests for new url resolution behavior
using System.Net; using FluentAssertions; using NUnit.Framework; namespace Durwella.UrlShortening.Tests { public class WebClientUrlUnwrapperTest { [Test] public void ShouldGetResourceLocation() { var wrappedUrl = "http://goo.gl/mSkqOi"; var subject = new WebClie...
using System.Net; using FluentAssertions; using NUnit.Framework; namespace Durwella.UrlShortening.Tests { public class WebClientUrlUnwrapperTest { [Test] public void ShouldGetResourceLocation() { var wrappedUrl = "http://goo.gl/mSkqOi"; var subject = new WebClie...
Use 8192u as lowestBufferSize; Remove tests for LocalMaxChunkCount and MaxMessageSize
using FluentAssertions; using System; using System.Collections.Generic; using System.Text; using Workstation.ServiceModel.Ua; using Xunit; namespace Workstation.UaClient.UnitTests { public class UaApplicationOptionsTests { [Fact] public void UaTcpTransportChannelOptionsDefaults() { ...
using FluentAssertions; using System; using System.Collections.Generic; using System.Text; using Workstation.ServiceModel.Ua; using Xunit; namespace Workstation.UaClient.UnitTests { public class UaApplicationOptionsTests { [Fact] public void UaTcpTransportChannelOptionsDefaults() { ...
Revert "Fix mono compilation error"
using System; namespace SharpHaven.Resources { public struct ResourceRef { public ResourceRef(string name, ushort version) { if (name == null) throw new ArgumentNullException(nameof(name)); this.Name = name; this.Version = version; } public string Name { get; } public ushort Version { get;...
using System; namespace SharpHaven.Resources { public struct ResourceRef { public ResourceRef(string name, ushort version) { if (name == null) throw new ArgumentNullException(nameof(name)); Name = name; Version = version; } public string Name { get; } public ushort Version { get; } publ...
Remove test that is checked by analyzer.
namespace Gu.Wpf.Geometry.Tests { using System; using System.Linq; using System.Reflection; using System.Windows.Markup; using NUnit.Framework; public class NamespacesTests { private const string Uri = "http://gu.se/Geometry"; private readonly Assembly assembly; p...
namespace Gu.Wpf.Geometry.Tests { using System; using System.Linq; using System.Reflection; using System.Windows.Markup; using NUnit.Framework; public class NamespacesTests { private const string Uri = "http://gu.se/Geometry"; private readonly Assembly assembly; p...
Make test file path OS-agnostic
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace OMF { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] stati...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace OMF { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] stati...
Remove machine name from method calls since it is no longer needed after refactoring implementation
namespace PS.Mothership.Core.Common.SignalRConnectionHandling { public interface IClientsCollection { ISignalRUser Get(string machineName, string username); ISignalRUser GetOrAdd(string machineName, string username); void AddOrReplace(ISignalRUser inputUser); } }
namespace PS.Mothership.Core.Common.SignalRConnectionHandling { public interface IClientsCollection { ISignalRUser Get(string username); ISignalRUser GetOrAdd(string username); void AddOrReplace(ISignalRUser inputUser); } }
Expand delayed calls in console interpreter
namespace AjErl.Console { using System; using System.Collections.Generic; using System.Linq; using System.Text; using AjErl.Compiler; using AjErl.Expressions; public class Program { public static void Main(string[] args) { Console.WriteLine("AjE...
namespace AjErl.Console { using System; using System.Collections.Generic; using System.Linq; using System.Text; using AjErl.Compiler; using AjErl.Expressions; public class Program { public static void Main(string[] args) { Console.WriteLine("AjE...
Fix typo in assembly description
using System.Reflection; // common assembly attributes [assembly: AssemblyDescription("Lean Engine is an open-source, plataform agnostic C# and Python algorithmic trading engine. " + "Allows strategy research, backtesting and live trading with Equities, FX, CFD, Crypto, Options and Futu...
using System.Reflection; // common assembly attributes [assembly: AssemblyDescription("Lean Engine is an open-source, platform agnostic C# and Python algorithmic trading engine. " + "Allows strategy research, backtesting and live trading with Equities, FX, CFD, Crypto, Options and Futur...
Update Roslyn version number for assembly loading
namespace OmniSharp { internal static class Configuration { public static bool ZeroBasedIndices = false; public const string RoslynVersion = "2.1.0.0"; public const string RoslynPublicKeyToken = "31bf3856ad364e35"; public readonly static string RoslynFeatures = GetRoslynAssembl...
namespace OmniSharp { internal static class Configuration { public static bool ZeroBasedIndices = false; public const string RoslynVersion = "2.3.0.0"; public const string RoslynPublicKeyToken = "31bf3856ad364e35"; public readonly static string RoslynFeatures = GetRoslynAssembl...
Use updated TagHelper on home page
@{ ViewData["Title"] = "Home Page"; } .<div class="row"> <div class="col-xs-12"> <div bs-progress-min="1" bs-progress-max="5" bs-progress-value="4"> </div> </div> </div>
@{ ViewData["Title"] = "Home Page"; } <div class="row"> <div class="col-xs-6 col-md-4"> <div href="#" class="thumbnail"> <h3>Progress Bar Default</h3> <p> <code>progress-bar</code> </p> <div bs-progress-min="1" bs-progress-max="100" bs-progress...
Update status message for last guess
using System; using System.Collections.Generic; using System.Text; namespace Hangman { public class Game { public string Word; private List<char> GuessedLetters; private string StatusMessage; public Game(string word) { Word = word; GuessedLetters = new List<char>(); StatusMessage =...
using System; using System.Collections.Generic; using System.Text; namespace Hangman { public class Game { public string Word; private List<char> GuessedLetters; private string StatusMessage; public Game(string word) { Word = word; GuessedLetters = new List<char>(); StatusMessage =...
Add test for authorization requirement in TraktUserCustomListAddRequest
namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Post; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Objects.Get.Users.Lists; ...
namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Post; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Objects.Get.Users.Lists; ...
Create new instance of KeyHandler on every call to Read method
using System; namespace ReadLine { public static class ReadLine { private static KeyHandler _keyHandler; static ReadLine() { _keyHandler = new KeyHandler(); } public static string Read() { ConsoleKeyInfo keyInfo = Console.ReadKey(true);...
using System; namespace ReadLine { public static class ReadLine { private static KeyHandler _keyHandler; public static string Read() { _keyHandler = new KeyHandler(); ConsoleKeyInfo keyInfo = Console.ReadKey(true); while (keyInfo.Key != ConsoleKey.E...
Add missing constructor for derived tracking events
using System; namespace Totem.Tracking { /// <summary> /// A timeline event tracked by an index /// </summary> public class TrackedEvent { public TrackedEvent(string eventType, long eventPosition, Id userId, DateTime eventWhen, string keyType, string keyValue) { EventType = eventType; EventPosition =...
using System; namespace Totem.Tracking { /// <summary> /// A timeline event tracked by an index /// </summary> public class TrackedEvent { protected TrackedEvent() {} public TrackedEvent(string eventType, long eventPosition, Id userId, DateTime eventWhen, string keyType, string keyValue) { ...
Move log files to local application data.
using NLog; using NLog.Config; using NLog.Targets; namespace CoCo { internal static class NLog { internal static void Initialize() { LoggingConfiguration config = new LoggingConfiguration(); FileTarget fileTarget = new FileTarget("File"); FileTarget fileDebu...
using System; using System.IO; using NLog; using NLog.Config; using NLog.Targets; namespace CoCo { internal static class NLog { internal static void Initialize() { string appDataLocal = $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\CoCo"; ...
Update grubconfig according to osdev.org
using System.Diagnostics; using System.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; namespace Cosmos.Build.Tasks { public class CreateGrubConfig: Task { [Required] public string TargetDirectory { get; set; } [Required] public string BinName { get; set;...
using System.Diagnostics; using System.IO; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; namespace Cosmos.Build.Tasks { public class CreateGrubConfig: Task { [Required] public string TargetDirectory { get; set; } [Required] public string BinName { get; set;...
Simplify Hosting's shutdown handling. Don't require a TTY on Unix.
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.IO; using System.Threading; using System.Threading.Tasks; using Microsoft.AspNet.Hosting.Internal; using Microsoft.Framework....
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.IO; using Microsoft.AspNet.Hosting.Internal; using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.Dependen...
Simplify ternary operation (not !)
using System; using Serilog.Events; namespace Serilog { /// <summary> /// Extension method 'ForContext' for ILogger. /// </summary> public static class ForContextExtension { /// <summary> /// Create a logger that enriches log events with the specified property based on log event le...
using System; using Serilog.Events; namespace Serilog { /// <summary> /// Extension method 'ForContext' for ILogger. /// </summary> public static class ForContextExtension { /// <summary> /// Create a logger that enriches log events with the specified property based on log event le...
Fix text input for SDL
// 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.Extensions; using osu.Framework.Platform; namespace osu.Framework.Input { public class GameWindowTextInput : ITextInputSource ...
// 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.Extensions; using osu.Framework.Platform; namespace osu.Framework.Input { public class GameWindowTextInput : ITextInputSource ...
Fix console application window title
namespace Albireo.Otp.ConsoleApplication { using System; public static class Program { public static void Main() { Console.Title = "One-Time Password Generator"; } } }
namespace Albireo.Otp.ConsoleApplication { using System; public static class Program { public static void Main() { Console.Title = "C# One-Time Password"; } } }
Fix the bug in the binary search
using System; using System.Security.Cryptography; using Algorithms.Utils; namespace Algorithms.Search { public class BinarySearch { public static int IndexOf<T>(T[] a, T v) where T: IComparable<T> { var lo = 0; var hi = a.Length - 1; int comparison(T a1, T a...
using System; using System.Security.Cryptography; using Algorithms.Utils; namespace Algorithms.Search { public class BinarySearch { public static int IndexOf<T>(T[] a, T v) where T: IComparable<T> { var lo = 0; var hi = a.Length - 1; int comparison(T a1, T a...
Read reviews from the database.
// ----------------------------------------------------------------------- // <copyright file="ReviewController.cs" company="(none)"> // Copyright © 2015 John Gietzen. All Rights Reserved. // This source is subject to the MIT license. // Please see license.md for more information. // </copyright> // -----------...
// ----------------------------------------------------------------------- // <copyright file="ReviewController.cs" company="(none)"> // Copyright © 2015 John Gietzen. All Rights Reserved. // This source is subject to the MIT license. // Please see license.md for more information. // </copyright> // -----------...
Set DoubleBuffered property via reflection
using System; using System.Windows.Forms; namespace CSharpEx.Forms { /// <summary> /// Control extensions /// </summary> public static class ControlEx { /// <summary> /// Invoke action if Invoke is requiered. /// </summary> public static void InvokeIfRequired<T>(thi...
using System; using System.Windows.Forms; namespace CSharpEx.Forms { /// <summary> /// Control extensions /// </summary> public static class ControlEx { /// <summary> /// Invoke action if Invoke is requiered. /// </summary> public static void InvokeIfRequired<T>(thi...
Add remote rf enable function
using System; using DAQ.Environment; namespace DAQ.HAL { /// <summary> /// This class represents a GPIB controlled Gigatronics 7100 arbitrary waveform generator. It conforms to the Synth /// interface. /// </summary> class Gigatronics7100Synth : Synth { public Gigatronics7...
using System; using DAQ.Environment; namespace DAQ.HAL { /// <summary> /// This class represents a GPIB controlled Gigatronics 7100 arbitrary waveform generator. It conforms to the Synth /// interface. /// </summary> public class Gigatronics7100Synth : Synth { public Gigat...
Select Bundle dialog looks for zip files
using System; using System.Windows.Forms; namespace ProtoScript.Dialogs { class SelectBundleDialog : IDisposable { private const string kResourceBundleExtension = ".bun"; private readonly OpenFileDialog m_fileDialog; public SelectBundleDialog() { m_fileDialog = new OpenFileDialog { InitialDirecto...
using System; using System.Windows.Forms; namespace ProtoScript.Dialogs { class SelectBundleDialog : IDisposable { private const string kResourceBundleExtension = ".zip"; private readonly OpenFileDialog m_fileDialog; public SelectBundleDialog() { m_fileDialog = new OpenFileDialog { InitialDirecto...
Fix example that caused exception
namespace ExampleGenerator { using OxyPlot; public static class BindingExamples { [Export(@"BindingExamples\Example1")] public static PlotModel Example1() { return null; } } }
namespace ExampleGenerator { using OxyPlot; public static class BindingExamples { [Export(@"BindingExamples\Example1")] public static PlotModel Example1() { return new PlotModel { Title = "TODO" }; } } }
Add AsReadOnlyList; Remove obsolete method
using System.Collections.Generic; using System.Linq; namespace GoldenAnvil.Utility { public static class EnumerableUtility { public static IEnumerable<T> Append<T>(this IEnumerable<T> items, T value) { foreach (T item in items) yield return item; yield return value; } public static IEnumerable<T>...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace GoldenAnvil.Utility { public static class EnumerableUtility { public static IEnumerable<T> EmptyIfNull<T>(this IEnumerable<T> items) { return items ?? Enumerable.Empty<T>(); } public static IEnumerable...
Check for empty array on food record
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 EvoNet.Controls; using Graph; using EvoNet.Map; namespace EvoNet.Forms { public partial class ...
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 EvoNet.Controls; using Graph; using EvoNet.Map; namespace EvoNet.Forms { public partial class ...
Replace the polling with an event handler
using System; using System.Diagnostics; using System.Threading; namespace RedGate.AppHost.Client { internal class ParentProcessMonitor { private readonly Action m_OnParentMissing; private readonly int m_PollingIntervalInSeconds; private Thread m_PollingThread; public ParentPro...
using System; using System.Diagnostics; using System.Runtime.Remoting.Channels; using System.Threading; namespace RedGate.AppHost.Client { internal class ParentProcessMonitor { private readonly Action m_OnParentMissing; public ParentProcessMonitor(Action onParentMissing) { ...
Tweak some of the list page formatting
@model IEnumerable<alert_roster.web.Models.Message> @{ ViewBag.Title = "Messages"; } <div class="jumbotron"> <h1>@ViewBag.Title</h1> </div> @foreach (var message in Model) { <div class="row"> <div class="col-md-4"> <fieldset> <legend> <script>var d...
@model IEnumerable<alert_roster.web.Models.Message> @{ ViewBag.Title = "Notices"; } <h2>@ViewBag.Title</h2> @foreach (var message in Model) { <div class="row"> <div class="col-md-5"> <fieldset> <legend> Posted <script>var d = moment.utc('@message.Poste...
Use null-conditional operator when checking against UpdateManager
// 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; using osu.Framework.Allocation; using osu.Framework.Platform; using osu.Game.Configuration; using osu.Game.Updater; namespace osu.Game.Overlays.Set...
// 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; using osu.Framework.Allocation; using osu.Framework.Platform; using osu.Game.Configuration; using osu.Game.Updater; namespace osu.Game.Overlays.Set...
Tidy of the login page
@model dynamic @{ ViewBag.Title = "login"; } <h2>Log in!</h2> <form method="POST"> @Html.AntiForgeryToken() Username: @Html.TextBox("Username")<br/> Password: @Html.Password("Password")<br/> Remember me @Html.CheckBox("RememberMe")<br /> <input type="submit" value="Log in"/> </form>
@model dynamic @{ ViewBag.Title = "login"; } <h2>Log in!</h2> <form method="POST" role="form" id="loginForm" name="loginForm"> @Html.AntiForgeryToken() <div class="form-group" ng-class="{'has-error': addForm.name.$invalid && addForm.name.$pristine && submitted}"> <label class="col-sm-2 control-l...
Use AttributeNullException instead of an InvalidOperationException.
using System; using Premotion.Mansion.Core; using Premotion.Mansion.Core.Scripting.TagScript; using Premotion.Mansion.Web.Portal.Service; namespace Premotion.Mansion.Web.Portal.ScriptTags { /// <summary> /// Renders the specified block. /// </summary> [ScriptTag(Constants.TagNamespaceUri, "renderBlock")] public ...
using System; using Premotion.Mansion.Core; using Premotion.Mansion.Core.Scripting.TagScript; using Premotion.Mansion.Web.Portal.Service; namespace Premotion.Mansion.Web.Portal.ScriptTags { /// <summary> /// Renders the specified block. /// </summary> [ScriptTag(Constants.TagNamespaceUri, "renderBlock")] public ...
Change back to use EF initializer to drop db
namespace Tools.Test.Database.Model.Tasks { public class DropDatabaseTask : DatabaseTask { private readonly string _connectionString; public DropDatabaseTask(string connectionString) : base(connectionString) { _connectionString = connectionString; } ...
using System.Data.Entity; using Infrastructure.DataAccess; namespace Tools.Test.Database.Model.Tasks { public class DropDatabaseTask : DatabaseTask { private readonly string _connectionString; public DropDatabaseTask(string connectionString) : base(connectionString) { ...
Add Save method. bugid: 928
//----------------------------------------------------------------------- // <copyright file="ViewModelBase.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: http://www.lhotka.net/cslanet/ // </copyright> // <summary>Base class used to create ViewModel objects that ...
//----------------------------------------------------------------------- // <copyright file="ViewModelBase.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: http://www.lhotka.net/cslanet/ // </copyright> // <summary>Base class used to create ViewModel objects that ...
Use nameof on argument check in the template project.
 using System; using XPNet; namespace XPNet.CLR.Template { [XPlanePlugin( name: "My Plugin", signature: "you.plugins.name", description: "Describe your plugin here." )] public class Plugin : IXPlanePlugin { private readonly IXPlaneApi m_api; publ...
 using System; using XPNet; namespace XPNet.CLR.Template { [XPlanePlugin( name: "My Plugin", signature: "you.plugins.name", description: "Describe your plugin here." )] public class Plugin : IXPlanePlugin { private readonly IXPlaneApi m_api; publ...
Comment removal in prep for newer commenting
using Newtonsoft.Json; namespace Alexa.NET.Response { public class PlainTextOutputSpeech : IOutputSpeech { /// <summary> /// A string containing the type of output speech to render. Valid types are: /// - "PlainText" - Indicates that the output speech is defined as plain text. /...
using Newtonsoft.Json; namespace Alexa.NET.Response { public class PlainTextOutputSpeech : IOutputSpeech { [JsonProperty("type")] [JsonRequired] public string Type { get { return "PlainText"; } } [JsonRequired] [JsonProperty("text")] ...
Use an array of directories instead of just one.
using System.IO; namespace Nustache.Core { public class FileSystemTemplateLocator { private readonly string _extension; private readonly string _directory; public FileSystemTemplateLocator(string extension, string directory) { _extension = extension; ...
using System.IO; namespace Nustache.Core { public class FileSystemTemplateLocator { private readonly string _extension; private readonly string[] _directories; public FileSystemTemplateLocator(string extension, params string[] directories) { _extension =...
Remove the nullable disable annotation in the mania ruleset.
// 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 osu.Game.Beatmaps; using osu.Game.Rulesets.Filter; using osu.Game.Rulesets.Mania.Beatmaps; using osu.Game.Screens.Select; using osu.Game.Screens....
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Beatmaps; using osu.Game.Rulesets.Filter; using osu.Game.Rulesets.Mania.Beatmaps; using osu.Game.Screens.Select; using osu.Game.Screens.Select.Filter; nam...
Fix SchedulerAutorRemove to work correctly.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using CocosSharp; namespace tests { public class SchedulerAutoremove : SchedulerTestLayer { public virtual void onEnter() { base.OnEnter(); Schedule(autoremove, 0.5f); Sche...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using CocosSharp; namespace tests { public class SchedulerAutoremove : SchedulerTestLayer { private float accum; public override void OnEnter () { base.OnEnter(); Schedule(autoremove, 0.5f); ...
Simplify debug view prop body
/* Copyright (C) 2018 de4dot@gmail.com This file is part of Iced. Iced is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any lat...
/* Copyright (C) 2018 de4dot@gmail.com This file is part of Iced. Iced is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any lat...
Apply a saving option only at it needed.
using System; using System.Runtime.InteropServices; using System.Windows; using CoCo.UI; using CoCo.UI.ViewModels; using Microsoft.VisualStudio.Shell; namespace CoCo { [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading =true)] [ProvideOptionPage(typeof(DialogOption), "CoCo", "CoCo", ...
using System; using System.Runtime.InteropServices; using System.Windows; using CoCo.UI; using CoCo.UI.ViewModels; using Microsoft.VisualStudio.Shell; namespace CoCo { [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)] [ProvideOptionPage(typeof(DialogOption), "CoCo", "CoCo",...
Fix wrong render order key bit shift
using System; using System.Runtime.CompilerServices; #if NETFX_CORE namespace HelixToolkit.UWP.Model #else namespace HelixToolkit.Wpf.SharpDX.Model #endif { /// <summary> /// Render order key /// </summary> public struct OrderKey : IComparable<OrderKey> { public uint Key; public O...
using System; using System.Runtime.CompilerServices; #if NETFX_CORE namespace HelixToolkit.UWP.Model #else namespace HelixToolkit.Wpf.SharpDX.Model #endif { /// <summary> /// Render order key /// </summary> public struct OrderKey : IComparable<OrderKey> { public uint Key; public O...
Add placeholder for testing retrieving POs
using BatteryCommander.Web.Models; using BatteryCommander.Web.Services; using Microsoft.Extensions.Options; using System; using System.Threading.Tasks; using Xunit; namespace BatteryCommander.Tests { public class AirTableServiceTests { private const String AppKey = ""; private const String Ba...
using BatteryCommander.Web.Models; using BatteryCommander.Web.Services; using Microsoft.Extensions.Options; using System; using System.Threading.Tasks; using Xunit; namespace BatteryCommander.Tests { public class AirTableServiceTests { private const String AppKey = ""; private const String Ba...
Address PR feedback and add 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. namespace Microsoft.CodeAnalysis.Test.Extensions { public static class SemanticModelExtensions { public static IOperation GetOperationInterna...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.CodeAnalysis.Test.Extensions { public static class SemanticModelExtensions { public static IOperation GetOperationInterna...
Fix category of revision log RSS feeds.
<?xml version="1.0"?> <!-- RSS generated by Trac v<?cs var:trac.version ?> on <?cs var:trac.time ?> --> <rss version="2.0"> <channel><?cs if:project.name_encoded ?> <title><?cs var:project.name_encoded ?>: Revisions of <?cs var:log.path ?></title><?cs else ?> <title>Revisions of <?cs var:log.path ?></title...
<?xml version="1.0"?> <!-- RSS generated by Trac v<?cs var:trac.version ?> on <?cs var:trac.time ?> --> <rss version="2.0"> <channel><?cs if:project.name_encoded ?> <title><?cs var:project.name_encoded ?>: Revisions of <?cs var:log.path ?></title><?cs else ?> <title>Revisions of <?cs var:log.path ?></title...
Update nuget package version to beta02
using System.Reflection; // 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("CakeMail.RestClient")] [assembly: AssemblyDescription("CakeMail.RestClient is a...
using System.Reflection; // 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("CakeMail.RestClient")] [assembly: AssemblyDescription("CakeMail.RestClient is a...
Update visual style to match new notes
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Graphics; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Mania.Objects.Drawables; us...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Allocation; using osu.Game.Graphics; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Mania.Objects.Drawables; using osu.Game.Rulesets.Mania.Ob...
Switch around registration order for signalr
using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.DependencyInjection; using System; namespace Glimpse { public static class GlimpseServerServiceCollectionExtensions { public static IServiceCollection RunningServer(this IServiceCollection services) { UseSignal...
using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.DependencyInjection; using System; namespace Glimpse { public static class GlimpseServerServiceCollectionExtensions { public static IServiceCollection RunningServer(this IServiceCollection services) { services....
Swap out IgnoreLayerCollisions for new custom version.
using UnityEngine; using System.Collections; using DG.Tweening; public class GameInit : MonoBehaviour { void Awake() { // seed Random with current seconds; Random.seed = (int)System.DateTime.Now.Ticks; // initialize DOTween before first use. DOTween.Init(true, true, LogBehaviour.Verbose).SetCapacity(200, 1...
using UnityEngine; using System.Collections; using DG.Tweening; using Matcha.Lib; public class GameInit : MonoBehaviour { void Awake() { // seed Random with current seconds; Random.seed = (int)System.DateTime.Now.Ticks; // initialize DOTween before first use. DOTween.Init(true, true, LogBehaviour.Verbose)....