Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Fix issue where ratio was always returning "1"
using System; namespace Satrabel.OpenContent.Components.TemplateHelpers { public class Ratio { private readonly float _ratio; public int Width { get; private set; } public int Height { get; private set; } public float AsFloat { get { return Width / Height; ...
using System; namespace Satrabel.OpenContent.Components.TemplateHelpers { public class Ratio { private readonly float _ratio; public int Width { get; private set; } public int Height { get; private set; } public float AsFloat { get { return (float)Width / (...
Allow empty semver components to be deserialised as this might be an archived component
using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace OctopusPuppet.DeploymentPlanner { public class SemVerJsonConverter : JsonConverter { public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { writer.WriteValue(value.ToStr...
using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace OctopusPuppet.DeploymentPlanner { public class SemVerJsonConverter : JsonConverter { public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { writer.WriteValue(value.ToStr...
Fix filename not being populated
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class PullRequestFile { public PullRequestFile() { } ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using Octokit.Internal; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class PullRequestFile { public Pull...
Fix a ref to FinnAngelo.PomoFish
using Common.Logging; using FinnAngelo.Utilities; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System.Diagnostics; namespace FinnAngelo.PomoFishTests { [TestClass] public class IconTests { [TestMethod] //[Ignore] public void GivenDestroyMethod_WhenGet10000Ic...
using Common.Logging; using FinnAngelo.PomoFish; using FinnAngelo.Utilities; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System.Diagnostics; namespace FinnAngelo.PomoFishTests { [TestClass] public class IconTests { [TestMethod] //[Ignore] public void GivenD...
Change Check tests to restore default behaviour
using System; using EdlinSoftware.Verifier.Tests.Support; using Xunit; namespace EdlinSoftware.Verifier.Tests { public class CheckTests : IDisposable { private readonly StringVerifier _verifier; private static readonly Action<string> DefaultAssertionFailed = Verifier.AssertionFailed; ...
using System; using EdlinSoftware.Verifier.Tests.Support; using Xunit; namespace EdlinSoftware.Verifier.Tests { public class CheckTests : IDisposable { private readonly StringVerifier _verifier; private static readonly Action<string> DefaultAssertionFailed = Verifier.AssertionFailed; ...
Implement property converter for XPath
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Umbraco.Core.Models; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Models.PublishedContent; using Zbu.Blocks.PropertyEditors; namespace Zbu.Blocks.DataType { // note: can cache the co...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Umbraco.Core.Models; using Umbraco.Core.PropertyEditors; using Umbraco.Core.Models.PublishedContent; using Zbu.Blocks.PropertyEditors; namespace Zbu.Blocks.DataType { // note: can cache the co...
Fix error when substituting arguments
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace Parsel { internal static class ReplaceParameter { public static Expression Apply<S, T>(this Expression<Func<S, T>> f, Expression s) { return f.Body.Replace...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace Parsel { internal static class ReplaceParameter { public static Expression Apply<S, T>(this Expression<Func<S, T>> f, Expression s) { return f.Body.Replace...
Update location of env vars
using System; using NUnit.Framework; using Centroid; namespace Schedules.API.Tests { [TestFixture, Category("System")] public class SystemTests { [Test] public void CheckThatEnvironmentVariablesExist() { dynamic config = Config.FromFile("config.json"); foreach (var variable in config.var...
using System; using NUnit.Framework; using Centroid; namespace Schedules.API.Tests { [TestFixture, Category("System")] public class SystemTests { [Test] public void CheckThatEnvironmentVariablesExist() { dynamic config = Config.FromFile("config.json"); foreach (var variable in config.all...
Update use agent for v2
namespace MultiMiner.Win { public static class UserAgent { public const string AgentString = "MultiMiner/V1"; } }
namespace MultiMiner.Win { public static class UserAgent { public const string AgentString = "MultiMiner/V2"; } }
Remove unneeded reference to PrismApplication base class.
using System.Windows; using Prism.DryIoc; using Prism.Ioc; using SimpSim.NET.WPF.ViewModels; using SimpSim.NET.WPF.Views; namespace SimpSim.NET.WPF { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : PrismApplication { protected override Window Crea...
using System.Windows; using Prism.Ioc; using SimpSim.NET.WPF.ViewModels; using SimpSim.NET.WPF.Views; namespace SimpSim.NET.WPF { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App { protected override Window CreateShell() { return ...
Change TODO comments to reference current issue on Sockets perf counters.
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Threading; namespace System.Net { internal enum SocketPerfCounterName { SocketConnecti...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Threading; namespace System.Net { internal enum SocketPerfCounterName { SocketConnecti...
Use && instead of & to perform AND operation
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Oberon0.Compiler.Expressions.Operations { using JetBrains.Annotations; using Oberon0.Compiler.Definitions; using Oberon0.Compiler.Expressions.Constant; using Oberon0.Compiler....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Oberon0.Compiler.Expressions.Operations { using JetBrains.Annotations; using Oberon0.Compiler.Definitions; using Oberon0.Compiler.Expressions.Constant; using Oberon0.Compiler....
Copy list before iterating to prevent modifications during iteration
using System; using System.Collections; using System.Collections.Generic; namespace NHotkey.Wpf { class WeakReferenceCollection<T> : IEnumerable<T> where T : class { private readonly List<WeakReference> _references = new List<WeakReference>(); public IEnumerator<T> GetEnumerat...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace NHotkey.Wpf { class WeakReferenceCollection<T> : IEnumerable<T> where T : class { private readonly List<WeakReference> _references = new List<WeakReference>(); public IEnumer...
Update comment about this Interface usage - maybe we can remove this later on
namespace Umbraco.Web.UI { /// <summary> /// This is used for anything that is assigned to an app /// </summary> /// <remarks> /// Currently things that need to be assigned to an app in order for user security to work are: /// dialogs, ITasks, editors /// </remarks> public interface IAs...
namespace Umbraco.Web.UI { /// <summary> /// This is used for anything that is assigned to an app /// </summary> /// <remarks> /// Currently things that need to be assigned to an app in order for user security to work are: /// LegacyDialogTask /// </remarks> public interface IAssignedAp...
Fix issue where test writer was writing when nothing was listening.
using System; using System.IO; using System.Text; using Xunit.Abstractions; namespace Foundatio.Tests.Utility { public class TestOutputWriter : TextWriter { private readonly ITestOutputHelper _output; public TestOutputWriter(ITestOutputHelper output) { _output = output; } ...
using System; using System.Diagnostics; using System.IO; using System.Text; using Xunit.Abstractions; namespace Foundatio.Tests.Utility { public class TestOutputWriter : TextWriter { private readonly ITestOutputHelper _output; public TestOutputWriter(ITestOutputHelper output) { _outpu...
Move Shipeditor tests to the Voxelgon.Shipeditor.Tests namespace
using System.Collections.Generic; using NUnit.Framework; using UnityEngine; using Voxelgon.ShipEditor; namespace Voxelgon.Tests { public class WallTests { [Test] public void WallCannotHaveDuplicateVertices() { //Arrange var editor = new ShipEditor.ShipEditor(); ...
using System.Collections.Generic; using NUnit.Framework; using UnityEngine; using Voxelgon.ShipEditor; namespace Voxelgon.ShipEditor.Tests { public class WallTests { [Test] public void WallCannotHaveDuplicateVertices() { //Arrange var editor = new ShipEditor(); ...
Add LogLevel option to restclient config
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace NTwitch.Rest { public class TwitchRestClientConfig { public string BaseUrl { get; set; } = "https://api.twitch.tv/kraken/"; } }
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace NTwitch.Rest { public class TwitchRestClientConfig { public string BaseUrl { get; set; } = "https://api.twitch.tv/kraken/"; public LogLevel LogLevel { get; set; } = LogLevel.Errors; }...
Add test coverage for per-ruleset setup 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 NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Graphics.Containers; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Osu.Beatmaps; using ...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Graphics.Containers; using osu.Game.Rulesets; using osu.Game.Rulesets.Catch; using osu.Game.Rul...
Add missing function to interface
namespace TheCollection.Business { using System.Collections.Generic; using System.Threading.Tasks; public interface ISearchRepository<T> where T : class { Task<IEnumerable<T>> SearchAsync(string searchterm, int top = 0); } }
namespace TheCollection.Business { using System.Collections.Generic; using System.Threading.Tasks; public interface ISearchRepository<T> where T : class { Task<IEnumerable<T>> SearchAsync(string searchterm, int top = 0); Task<long> SearchRowCountAsync(string searchterm); } }
Prepend debug messages in the web chat example.
@{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; } <input type="text" id="msg" /> <a id="broadcast" href="#">Send message</a> <p>Messages : </p> <ul id="messages"> </ul> <script type="text/javascript"> $(function () { // Proxy created on the fly var...
@{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; } <input type="text" id="msg" /> <a id="broadcast" href="#">Send message</a> <p>Messages : </p> <ul id="messages"> </ul> <script type="text/javascript"> $(function () { // Proxy created on the fly var...
Check if appharbour will trigger a build
@{ ViewBag.Title = "GAMES"; } <h2>GAMES:</h2> <p>list all games here</p>
@{ ViewBag.Title = "GAMES"; } <h2>GAMES:</h2> <p>list all games here!!!</p>
Test file output using char name and total level.
using System; using FG5eXmlToPDF; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace FG5eXmlToPdf.Tests { [TestClass] public class UnitTest1 { [TestMethod] public void ReadWriteTest() { var currentDirectory = System.IO.Directory.GetCurrentDirectory...
using System; using System.Linq; using FG5eXmlToPDF; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace FG5eXmlToPdf.Tests { [TestClass] public class UnitTest1 { [TestMethod] public void ReadWriteTest() { var currentDirectory = System.IO.Directory....
Add text for debug purposes to see if the job has been running
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TvShowReminderWorker { class Program { static void Main(string[] args) { } } }
using System; namespace TvShowReminderWorker { class Program { static void Main(string[] args) { Console.WriteLine("I am the web job, I ran at {0}", DateTime.Now); } } }
Reset page number to 1 when perform a new search. Work items: 569
using System; using System.Linq; using Microsoft.VisualStudio.ExtensionsExplorer; namespace NuGet.Dialog.Providers { internal class PackagesSearchNode : PackagesTreeNodeBase { private string _searchText; private readonly PackagesTreeNodeBase _baseNode; public PackagesTreeNodeB...
using System; using System.Linq; using Microsoft.VisualStudio.ExtensionsExplorer; namespace NuGet.Dialog.Providers { internal class PackagesSearchNode : PackagesTreeNodeBase { private string _searchText; private readonly PackagesTreeNodeBase _baseNode; public PackagesTreeNodeB...
Add additional comparison methods for string establisher
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Establishment { public class StringEstablisher : BaseClassEstablisher<string> { public bool IsNullOrEmpty(string value) { if (!string.IsNullOrEmpty(value)) { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Establishment { public class StringEstablisher : BaseClassEstablisher<string> { public bool IsNullOrEmpty(string value) { if (!string.IsNullOrEmpty(value)) { ...
Make catch provide some HP at DrainRate=10
// 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.Catch.Objects; using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Scoring; usi...
// 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.Catch.Objects; using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Scoring; usi...
Fix default log level filter
using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; namespace Gelf.Extensions.Logging { public class GelfLoggerOptions { public GelfLoggerOptions() { Filter = (name, level) => level > LogLevel; } /// <summary> /// GELF server...
using System; using System.Collections.Generic; using Microsoft.Extensions.Logging; namespace Gelf.Extensions.Logging { public class GelfLoggerOptions { public GelfLoggerOptions() { Filter = (name, level) => level >= LogLevel; } /// <summary> /// GELF serve...
Add object's IsNull & IsNotNull extentions
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataGenExtensions { public static class ObjectExtensions { } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataGenExtensions { public static class ObjectExtensions { public static bool IsNull(this object objectInstance) { return objectInstance == null; } public static bool IsNotNull(t...
Remove limit check on data extraction queries
using Slicer.Utils.Exceptions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Slicer.Utils.Validators { // Validates data extraction queries public class DataExtractionQueryValidator { Dictionary<string, dynamic> Query;...
using Slicer.Utils.Exceptions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Slicer.Utils.Validators { // Validates data extraction queries public class DataExtractionQueryValidator { Dictionary<string, dynamic> Query;...
Use types instead of fully qualified names.
namespace Tabster.Core.Plugins { public interface ITabsterPlugin { string Name { get; } string Description { get; } string Author { get; } string Version { get; } string[] PluginClasses { get; } } }
using System; namespace Tabster.Core.Plugins { public interface ITabsterPlugin { string Name { get; } string Description { get; } string Author { get; } string Version { get; } Type[] Types { get; } } }
Add possibility to register events on App, like we do on HTML DOM
using UnityEngine; public class Application : MonoBehaviour { public ModelContainer Model; public ControllerContainer Controller; public ViewContainer View; }
using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class Application : MonoBehaviour { public ModelContainer Model; public ControllerContainer Controller; public ViewContainer View; private Dictionary<string, UnityEvent> eventDictionary = new Dictionary<string, Unit...
Fix out of sync bugs
using System.Collections; using System.Collections.Generic; using LiteNetLib; namespace LiteNetLibHighLevel { public class LiteNetLibPlayer { public LiteNetLibGameManager Manager { get; protected set; } public NetPeer Peer { get; protected set; } public long ConnectId { get { return Pe...
using System.Collections; using System.Collections.Generic; using LiteNetLib; namespace LiteNetLibHighLevel { public class LiteNetLibPlayer { public LiteNetLibGameManager Manager { get; protected set; } public NetPeer Peer { get; protected set; } public long ConnectId { get { return Pe...
Fix string format in error message
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ZocBuild.Database.Errors { public class MismatchedSchemaError : BuildErrorBase { public MismatchedSchemaError(string objectName, string expected, string actual) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ZocBuild.Database.Errors { public class MismatchedSchemaError : BuildErrorBase { public MismatchedSchemaError(string objectName, string expected, string actual) ...
Allow to disable the application-starter
using System.Web; using Microsoft.Web.Infrastructure; namespace BoC.Web { public class ApplicationStarterHttpModule : IHttpModule { private static object lockObject = new object(); private static bool startWasCalled = false; public static void StartApplication() { if (startWasCalled...
using System; using System.Configuration; using System.Web; using System.Web.Configuration; using Microsoft.Web.Infrastructure; namespace BoC.Web { public class ApplicationStarterHttpModule : IHttpModule { private static object lockObject = new object(); private static bool startWasCalled = ...
Add simple mechanism to fetch JSON and display it
using Android.App; using Android.Widget; using Android.OS; namespace TwitterMonkey { [Activity (Label = "TwitterMonkey", MainLauncher = true, Icon = "@drawable/icon")] public class MainActivity : Activity { int count = 1; protected override void OnCreate (Bundle bundle) { base.OnCreate (bundl...
using System; using System.IO; using System.Net; using System.Threading.Tasks; using Android.App; using Android.OS; using Android.Widget; using TwitterMonkey.Portable; namespace TwitterMonkey { [Activity(Label = "TwitterMonkey", MainLauncher = true, Icon = "@drawable/icon")] public class MainActivity : Activity ...
Update IAdapter registration in Droid example project
using System; using Android.App; using Android.Content; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; using Xamarin.Forms; namespace BluetoothLE.Example.Droid { [Activity(Label = "BluetoothLE.Example.Droid", Icon = "@drawable/icon", MainLauncher = true...
using System; using Android.App; using Android.Content; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; using Xamarin.Forms; namespace BluetoothLE.Example.Droid { [Activity(Label = "BluetoothLE.Example.Droid", Icon = "@drawable/icon", MainLauncher = true...
Fix slider repeat points appearing far too late
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Rulesets.Osu.Objects { public class RepeatPoint : OsuHitObject ...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Rulesets.Osu.Objects { public class RepeatPoint : OsuHitObject ...
Apply naming suppression to allow build to build.
namespace Octokit { public interface IActivitiesClient { IEventsClient Event { get; } } }
namespace Octokit { public interface IActivitiesClient { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Event")] IEventsClient Event { get; } } }
Fix exception when dumping a null parameter
using System; namespace Mios.Localization.Localizers { public class NullLocalizer { public static LocalizedString Instance(string key, params object[] args) { return new LocalizedString(String.Format(key,args), null); } } }
using System; using System.Linq; namespace Mios.Localization.Localizers { public class NullLocalizer { public static LocalizedString Instance(string key, params object[] args) { var parameters = args.Any() ? "["+String.Join(",",args.Select(t=>(t??String.Empty).ToString()).ToArray())+"]" ...
Change naming in test and add one
namespace Nancy.Linker.Tests { using System.Runtime.InteropServices; using Testing; using Xunit; public class ResourceLinkerTests { private Browser app; public class TestModule : NancyModule { public static ResourceLinker linker; public TestModule(ResourceLinker linker) { ...
namespace Nancy.Linker.Tests { using System; using System.Runtime.InteropServices; using Testing; using Xunit; public class ResourceLinker_Should { private Browser app; public class TestModule : NancyModule { public static ResourceLinker linker; public TestModule(ResourceLinker l...
Fix bugs that native functions with parameters are not instantiable due to parsing mistakes
using NBi.Core.Transformation.Transformer.Native; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBi.Core.Transformation.Transformer { public class NativeTransformationFactory { public INativeTra...
using NBi.Core.Transformation.Transformer.Native; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBi.Core.Transformation.Transformer { public class NativeTransformationFactory { public INativeTra...
Fix PartialView Tree Controller to display a folder icon as opposed to an article icon for nested folders - looks odd/broken to me otherwise
using umbraco; using Umbraco.Core.IO; using Umbraco.Web.Composing; using Umbraco.Web.Models.Trees; using Umbraco.Web.Mvc; using Umbraco.Web.WebApi.Filters; using Constants = Umbraco.Core.Constants; namespace Umbraco.Web.Trees { /// <summary> /// Tree for displaying partial views in the settings app /// </...
using umbraco; using Umbraco.Core.IO; using Umbraco.Web.Composing; using Umbraco.Web.Models.Trees; using Umbraco.Web.Mvc; using Umbraco.Web.WebApi.Filters; using Constants = Umbraco.Core.Constants; namespace Umbraco.Web.Trees { /// <summary> /// Tree for displaying partial views in the settings app /// </...
Mark IPublisher<> descriptor as overrider
using System.Collections.Generic; using Elders.Cronus.Discoveries; using Microsoft.Extensions.DependencyInjection; using RabbitMQ.Client; namespace Elders.Cronus.Transport.RabbitMQ { public class RabbitMqPublisherDiscovery : DiscoveryBasedOnExecutingDirAssemblies<IPublisher<IMessage>> { protected over...
using System.Collections.Generic; using Elders.Cronus.Discoveries; using Microsoft.Extensions.DependencyInjection; using RabbitMQ.Client; namespace Elders.Cronus.Transport.RabbitMQ { public class RabbitMqPublisherDiscovery : DiscoveryBasedOnExecutingDirAssemblies<IPublisher<IMessage>> { protected over...
Write JSON as prettified string to file for better readability.
using Newtonsoft.Json; namespace TicketTimer.Core.Infrastructure { public class JsonWorkItemStore : WorkItemStore { private readonly FileStore _fileStore; private const string FileName = "timer.state"; private TimerState _state; public JsonWorkItemStore(FileStore fileStore) ...
using Newtonsoft.Json; namespace TicketTimer.Core.Infrastructure { public class JsonWorkItemStore : WorkItemStore { private readonly FileStore _fileStore; private const string FileName = "timer.state"; private TimerState _state; public JsonWorkItemStore(FileStore fileStore) ...
Increase assembly version to 'beta01'
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...
Improve comparison order to avoid reading blob values by mistake
using Rainbow.Model; namespace Rainbow.Diff.Fields { public class DefaultComparison : IFieldComparer { public bool CanCompare(IItemFieldValue field1, IItemFieldValue field2) { return field1 != null && field2 != null; } public bool AreEqual(IItemFieldValue field1, IItemFieldValue field2) { if (field...
using Rainbow.Model; namespace Rainbow.Diff.Fields { public class DefaultComparison : IFieldComparer { public bool CanCompare(IItemFieldValue field1, IItemFieldValue field2) { return field1 != null && field2 != null; } public bool AreEqual(IItemFieldValue field1, IItemFieldValue field2) { if (field...
Check InputStream on when seekable.
namespace Simple.Web.Behaviors.Implementations { using MediaTypeHandling; using Behaviors; using Http; /// <summary> /// This type supports the framework directly and should not be used from your code. /// </summary> public static class SetInput { /// <summary> ...
namespace Simple.Web.Behaviors.Implementations { using MediaTypeHandling; using Behaviors; using Http; /// <summary> /// This type supports the framework directly and should not be used from your code. /// </summary> public static class SetInput { /// <summary> ...
Fix bug with require token field in register page
namespace Application.Business.Models { using System.ComponentModel.DataAnnotations; public class ResetPasswordFromMailModel { [Required] [DataType(DataType.EmailAddress)] [Display(Name = "Email")] public string Email { get; set; } [Required] [StringLength(...
namespace Application.Business.Models { using System.ComponentModel.DataAnnotations; public class ResetPasswordFromMailModel { [Required] [DataType(DataType.EmailAddress)] [Display(Name = "Email")] public string Email { get; set; } [Required] [StringLength(...
Remove box surrounding close 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. #nullable enable using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Sprites; using osu.Game.Graphics; using osu.Game.Graphics.Us...
// 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 enable using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Sprites; using osu.Framework.Input.Events; using osu.Game.Gr...
Add support for searching beatmap author at song select
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Linq; using SQLite.Net.Attributes; namespace osu.Game.Database { public class BeatmapMetadata { [PrimaryKey, AutoIncrement] ...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Linq; using SQLite.Net.Attributes; namespace osu.Game.Database { public class BeatmapMetadata { [PrimaryKey, AutoIncrement] ...
Fix bug when hitting Enter on last row (PG-234)
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using SIL.Windows.Forms.Widgets.BetterGrid; namespace Glyssen.Controls { //DataGridView with Enter moving to right (instead of down) public class DataGridViewOverrideEnter ...
using System.Windows.Forms; using SIL.Windows.Forms.Widgets.BetterGrid; namespace Glyssen.Controls { /// <summary> /// DataGridView with Enter moving to right (instead of down) /// </summary> public class DataGridViewOverrideEnter : BetterGrid { public DataGridViewOverrideEnter() { AllowUserToAddRows = tr...
Fix press space to start game launch bomb
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SpecialPower : MonoBehaviour { public float manaCost; public float coolDownDuration; public string button; public bool isBomb = false; //tmp [HideInInspector] public float mana; public float maxMa...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SpecialPower : MonoBehaviour { public float manaCost; public float coolDownDuration; public string button; public bool isBomb = false; //tmp [HideInInspector] public float mana; public float maxMa...
Fix overlay hide animation playing at the wrong point in time.
// Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using osu.Framework.Graphics.Containers; using System.Linq; namespace osu.Framework.Graphics.Performance { class PerformanceOverla...
// Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using osu.Framework.Graphics.Containers; using System.Linq; namespace osu.Framework.Graphics.Performance { class PerformanceOverla...
Add annotation to DHtml enum
#region License /* Copyright [2011] [Jeffrey Cameron] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required...
#region License /* Copyright [2011] [Jeffrey Cameron] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required...
Fix text translations 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...
Make the example html.cshtml a little more relevant
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CefSharp.Own.Example.Wpf</title> </head> <body> <header> <h1>@Model.Text</h1> </header> <section> <h2>Backlog</h2> <ul class="bugs" id="backlog"> <li>a bug</li> </ul> </section> ...
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CefSharp.Own.Example.Wpf</title> </head> <body> <header> <h1>@Model.Text</h1> </header> <section> <h2>CefSharp + OWIN + Nancy + Razor</h2> <ul> <li>No network requests are made, just in memory ...
Include URI in DataPackage when sharing a skin
using DataDragon; using LolHandbook.ViewModels; using System; using System.Collections.Generic; using Windows.ApplicationModel.DataTransfer; using Windows.Storage.Streams; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace LolHandbook.Pages { public sealed partial c...
using DataDragon; using LolHandbook.ViewModels; using System; using System.Collections.Generic; using Windows.ApplicationModel.DataTransfer; using Windows.Storage.Streams; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Navigation; namespace LolHandbook.Pages { public sealed partial c...
Update test case to suit test data
using NUnit.Framework; using System; using System.IO; using Time_Table_Arranging_Program; using Time_Table_Arranging_Program.Class; namespace NUnit.Tests2 { [TestFixture] public class Test_StartDateEndDateFinder { string input = Helper.RawStringOfTestFile("SampleData-FAM-2017-2ndSem.html"); [...
using NUnit.Framework; using System; using System.IO; using Time_Table_Arranging_Program; using Time_Table_Arranging_Program.Class; namespace NUnit.Tests2 { [TestFixture] public class Test_StartDateEndDateFinder { string input = Helper.RawStringOfTestFile("SampleData-FAM-2017-2ndSem.html"); [...
Improve test to avoid potential race condition
using Microsoft.ApplicationInsights.DataContracts; using Microsoft.ApplicationInsights.Wcf.Tests.Channels; using Microsoft.ApplicationInsights.Wcf.Tests.Service; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Linq; namespace Microsoft.ApplicationInsights.Wcf.Tests.Integration { [Te...
using Microsoft.ApplicationInsights.DataContracts; using Microsoft.ApplicationInsights.Wcf.Tests.Channels; using Microsoft.ApplicationInsights.Wcf.Tests.Service; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Linq; namespace Microsoft.ApplicationInsights.Wcf.Tests.Integration { [Te...
Throw an exception if InnerResolve returns null
using System; using System.Collections.Generic; using Mono.Cecil; public partial class ModuleWeaver { Dictionary<string, TypeDefinition> definitions = new Dictionary<string, TypeDefinition>(); public TypeDefinition Resolve(TypeReference reference) { TypeDefinition definition; if (definiti...
using System; using System.Collections.Generic; using Mono.Cecil; public partial class ModuleWeaver { Dictionary<string, TypeDefinition> definitions = new Dictionary<string, TypeDefinition>(); public TypeDefinition Resolve(TypeReference reference) { TypeDefinition definition; if (definiti...
Increase size since we add something to the max. 20 chars coming from the request.
using System; using System.ComponentModel.DataAnnotations; namespace HelloCoreClrApp.Data.Entities { public class Greeting { [Key] public Guid GreetingId { get; set; } [Required] [MaxLength(20)] public string Name { get; set; } [Required] public DateTim...
using System; using System.ComponentModel.DataAnnotations; namespace HelloCoreClrApp.Data.Entities { public class Greeting { [Key] public Guid GreetingId { get; set; } [Required] [MaxLength(30)] public string Name { get; set; } [Required] public DateTim...
Work begin on program to test different algorithms for shifting arrays
// Program for rotating arrays using different Algorithms using System; using System.Linq; public class RotateArray { public static void Main() { // Reads ints from the Console and converts them to an array of ints Console.WriteLine("Please enter array of integers (integers separated by spaces)"); ...
// Program for rotating arrays using different Algorithms using System; using System.Linq; public class RotateArray { public static void Main() { // Reads ints from the Console and converts them to an array of ints Console.WriteLine("Please enter array of integers (integers separated by spac...
Remove Account from the filter state persistence
using System; using BudgetAnalyser.Engine.BankAccount; using Rees.UserInteraction.Contracts; namespace BudgetAnalyser.Engine.Statement { public class PersistentFiltersV1 : IPersistent { public Account Account { get; set; } public DateTime? BeginDate { get; set; } public DateTime? EndDa...
using System; using Rees.UserInteraction.Contracts; namespace BudgetAnalyser.Engine.Statement { public class PersistentFiltersV1 : IPersistent { public DateTime? BeginDate { get; set; } public DateTime? EndDate { get; set; } public int LoadSequence => 50; } }
Add target property for InvokeMethod markup extension
using Sakuno.UserInterface.ObjectOperations; using System; using System.Windows.Data; using System.Windows.Markup; namespace Sakuno.UserInterface.Commands { public class InvokeMethodExtension : MarkupExtension { string r_Method; object r_Parameter; public InvokeMethodExtension(string...
using Sakuno.UserInterface.ObjectOperations; using System; using System.Windows.Data; using System.Windows.Markup; namespace Sakuno.UserInterface.Commands { public class InvokeMethodExtension : MarkupExtension { string r_Method; object r_Parameter; public object Target { get; set; } ...
Add possible (insecure) fix for anti forgery token error: suppress identity heuristics
using System; using System.Threading; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Security; using System.Web.Routing; using WebMatrix.WebData; using Zk.Models; namespace Zk { public class MvcApplication : HttpApplication { public static void RegisterRoutes...
using System.Web; using System.Web.Helpers; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; using WebMatrix.WebData; namespace Zk { public class MvcApplication : HttpApplication { public static void RegisterRoutes(RouteCollection routes) { routes.Ig...
Fix version number 2.0.3.0 => 2.0.3
using System.Resources; 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("Configgy")] [assembly: AssemblyDescription("Configgy: C...
using System.Resources; 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("Configgy")] [assembly: AssemblyDescription("Configgy: C...
Switch to kanban by status
@{ ViewBag.Title = "Purchase Order Tracker"; } <div class="page-header"> <h1>@ViewBag.Title</h1> </div> <div class="btn-group"> @Html.ActionLink("Add New", "Create", "PurchaseOrders", null, new { @class = "btn btn-default" }) </div> <!-- AirTable Embed Script for List --> <iframe class="airtable-embed" ...
@{ ViewBag.Title = "Purchase Order Tracker"; } <div class="page-header"> <h1>@ViewBag.Title</h1> </div> <div class="btn-group"> @Html.ActionLink("Add New", "Create", "PurchaseOrders", null, new { @class = "btn btn-default" }) </div> <!-- AirTable Embed Script for List --> <iframe class="airtable-embed" ...
Fix ChildrenOfType<> early exit for matching types
// 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 osu.Framework.Graphics; using osu.Framework.Graphics.Containers; namespace osu.Framework.Testing { public static class Testin...
// 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 osu.Framework.Graphics; using osu.Framework.Graphics.Containers; namespace osu.Framework.Testing { public static class Testin...
Put link on the product view for subscription.
@model ICollection<CountryFood.Web.ViewModels.ProductViewModel> <h3>Products</h3> @foreach (var product in Model) { <div class="panel panel-body"> <div> <a href="">@product.Name</a> </div> <div> <span>Votes: </span> @(int.Parse(product.PositiveVotes) + int.Parse(prod...
@model ICollection<CountryFood.Web.ViewModels.ProductViewModel> <h3>Products</h3> @foreach (var product in Model) { <div class="panel panel-body"> <div> <a href="">@product.Name</a> </div> <div> <span>Votes: </span> @(int.Parse(product.PositiveVotes) + int.Parse(prod...
Adjust polymorphism rules for base class
using System; using System.Collections.Generic; using System.IdentityModel.Tokens; using System.Security.Claims; namespace SnapMD.VirtualCare.LeopardonSso { public abstract class AbstractJwt { protected readonly JwtSecurityTokenHandler SecurityTokenHandler = new JwtSecurityTokenHandler(); pro...
using System; using System.Collections.Generic; using System.IdentityModel.Tokens; using System.Security.Claims; namespace SnapMD.VirtualCare.LeopardonSso { public abstract class AbstractJwt { protected readonly JwtSecurityTokenHandler SecurityTokenHandler = new JwtSecurityTokenHandler(); pro...
Allow tracking from old Discord domain in the app (discordapp.com)
using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization; using DHT.Server.Database; using DHT.Server.Endpoints; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http.Json; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace DHT.Server.Service ...
using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization; using DHT.Server.Database; using DHT.Server.Endpoints; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http.Json; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace DHT.Server.Service ...
Make mania scroll downwards by default
// 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.Configuration.Tracking; using osu.Game.Configuration; using osu.Game.Rulesets.Configuration; using osu.Game.Rulesets.Mania.UI; namespace osu.Game.R...
// 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.Configuration.Tracking; using osu.Game.Configuration; using osu.Game.Rulesets.Configuration; using osu.Game.Rulesets.Mania.UI; namespace osu.Game.R...
Fix problem when setting WebGL build to fullscreen
using UnityEngine; using System.Collections; public class CameraAspectAdjuster : MonoBehaviour { public Camera mainCamera; public float targetAspectRatio; // Use this for initialization void Awake () { float windowAspectRatio = (float)Screen.width / (float)Screen.height; float scale = windowAspectRatio / ta...
using UnityEngine; using System.Collections; public class CameraAspectAdjuster : MonoBehaviour { public Camera mainCamera; public float targetAspectRatio; private float latestWindowAspectRatio; void Awake () { latestWindowAspectRatio = targetAspectRatio; AdjustIfNeeded (); } void Update () { AdjustIf...
Use TLS 1.2 for test suite
using System.Collections.Generic; namespace YouTrackSharp.Tests.Infrastructure { public class Connections { public static string ServerUrl => "https://ytsharp.myjetbrains.com/youtrack/"; public static Connection UnauthorizedConnection => new BearerTokenConnect...
using System.Collections.Generic; using System.Net.Http; using System.Security.Authentication; namespace YouTrackSharp.Tests.Infrastructure { public class Connections { public static string ServerUrl => "https://ytsharp.myjetbrains.com/youtrack/"; public static Connection...
Revert back strategy for ImageSource - ApplicationBundle
using System; using Android.Graphics.Drawables; using System.IO; using FFImageLoading.Work; using Android.Content; using Android.Content.Res; using System.Threading.Tasks; namespace FFImageLoading { public class ApplicationBundleStreamResolver : IStreamResolver { private Context Context { get { return glo...
using System; using Android.Graphics.Drawables; using System.IO; using FFImageLoading.Work; using Android.Content; using Android.Content.Res; using System.Threading.Tasks; namespace FFImageLoading { public class ApplicationBundleStreamResolver : IStreamResolver { private Context Context { get { return glo...
Add company name to assembly.
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Mo...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Mo...
Rework resolvers DI registration (automatic)
using System; using Agiil.ObjectMaps; using Autofac; namespace Agiil.Bootstrap.ObjectMaps { public class AutomapperResolversModule : Module { protected override void Load(ContainerBuilder builder) { builder.RegisterType<IdentityValueResolver>(); builder.RegisterGeneric(typeof(GetEntityByIdenti...
using System; using System.Collections.Generic; using System.Linq; using Agiil.ObjectMaps.Resolvers; using Autofac; namespace Agiil.Bootstrap.ObjectMaps { public class AutomapperResolversModule : Module { protected override void Load(ContainerBuilder builder) { var types = GetCandidateTypes(); ...
Move using directives outside of namespace
namespace FluentAssertions.Specs.Execution { using System.Collections.Generic; using FluentAssertions.Execution; internal class IgnoringFailuresAssertionStrategy : IAssertionStrategy { public IEnumerable<string> FailureMessages => new string[0]; public void HandleFailure(string message...
using System.Collections.Generic; using FluentAssertions.Execution; namespace FluentAssertions.Specs.Execution { internal class IgnoringFailuresAssertionStrategy : IAssertionStrategy { public IEnumerable<string> FailureMessages => new string[0]; public void HandleFailure(string message) ...
Set current directory to the executable directory, since windows services execute from system32.
using log4net; using spectator.Configuration; using spectator.Metrics; using spectator.Sources; using StatsdClient; using Topshelf; namespace spectator { public class Program { private static readonly ILog Log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); ...
using log4net; using spectator.Configuration; using spectator.Metrics; using spectator.Sources; using StatsdClient; using Topshelf; namespace spectator { public class Program { private static readonly ILog Log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); ...
Add curly braces around the nested statement in if block
using AVKit; namespace MediaManager.Platforms.Ios.Video { public class PlayerViewController : AVPlayerViewController { protected MediaManagerImplementation MediaManager => CrossMediaManager.Apple; public override void ViewWillDisappear(bool animated) { base.ViewWillDisappe...
using AVKit; namespace MediaManager.Platforms.Ios.Video { public class PlayerViewController : AVPlayerViewController { protected MediaManagerImplementation MediaManager => CrossMediaManager.Apple; public override void ViewWillDisappear(bool animated) { base.ViewWillDisappe...
Add Serialization test category to aid CI configuration.
using Duplicati.Library.Modules.Builtin; using Duplicati.Library.Modules.Builtin.ResultSerialization; using NUnit.Framework; namespace Duplicati.UnitTest { [TestFixture] public class ResultFormatSerializerProviderTest { [Test] public void TestGetSerializerGivenDuplicatiReturnsDuplicatiSeri...
using Duplicati.Library.Modules.Builtin; using Duplicati.Library.Modules.Builtin.ResultSerialization; using NUnit.Framework; namespace Duplicati.UnitTest { [TestFixture] public class ResultFormatSerializerProviderTest { [Test] [Category("Serialization")] public void TestGetSerializ...
Detach VideoView on disappearing (iOS)
using AVKit; namespace MediaManager.Platforms.Ios.Video { public class PlayerViewController : AVPlayerViewController { public override void ViewWillDisappear(bool animated) { base.ViewWillDisappear(animated); Player = null; } } }
using AVKit; namespace MediaManager.Platforms.Ios.Video { public class PlayerViewController : AVPlayerViewController { protected MediaManagerImplementation MediaManager => CrossMediaManager.Apple; public override void ViewWillDisappear(bool animated) { base.ViewWillDisappe...
Remove editorbrowsable attribute from Configure
#region License // Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk) // // 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...
#region License // Copyright (c) Jeremy Skinner (http://www.jeremyskinner.co.uk) // // 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...
Copy basic Boogie parser stuff from Adam's DynamicAnalysis tool. Things are still broken. The type checker throws an exception when trying to resolve()
using System; using Microsoft; using System.Linq; using Microsoft.Boogie; using System.Diagnostics; namespace symbooglix { public class driver { public static int Main(String[] args) { if (args.Length == 0) { Console.WriteLine ("Pass boogie file as first arg!"); ...
using System; using Microsoft; using System.Linq; using Microsoft.Boogie; using System.Diagnostics; using System.Collections.Generic; namespace symbooglix { public class driver { public static int Main(String[] args) { if (args.Length == 0) { Console.WriteLine ("Pas...
Add json ignor to brave
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Dapper.FastCrud; using Smooth.IoC.Cqrs.Query; using Smooth.IoC.Cqrs.Requests; namespace Rik.Codecamp.Entities { public class Brave : IRequest, IQuery { [Key, DatabaseGeneratedDefaultVal...
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Dapper.FastCrud; using Newtonsoft.Json; using Smooth.IoC.Cqrs.Query; using Smooth.IoC.Cqrs.Requests; namespace Rik.Codecamp.Entities { public class Brave : IRequest, IQuery { [Key, Data...
Add link to PDF Download to make it more discoverable
@{ ViewBag.Title = "Home Page"; } <h2>Demo Start Page</h2>
@{ ViewBag.Title = "Home Page"; } <h2>Demo Start Page</h2> @Html.ActionLink("Download PDF","ContributorsList")
Fix typo that don't compile.
// // ReadRegisters.cs // // Author: // Benito Palacios Sánchez <benito356@gmail.com> // // Copyright (c) 2015 Benito Palacios Sánchez // // 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 Foun...
// // ReadRegisters.cs // // Author: // Benito Palacios Sánchez <benito356@gmail.com> // // Copyright (c) 2015 Benito Palacios Sánchez // // 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 Foun...
Revert "Change levy run date to 24th"
using System.Threading.Tasks; using Microsoft.Azure.WebJobs; using Microsoft.Extensions.Logging; using NServiceBus; using SFA.DAS.EmployerFinance.Messages.Commands; namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs { public class ImportLevyDeclarationsJob { private readonly IMessageSession _message...
using System.Threading.Tasks; using Microsoft.Azure.WebJobs; using Microsoft.Extensions.Logging; using NServiceBus; using SFA.DAS.EmployerFinance.Messages.Commands; namespace SFA.DAS.EmployerFinance.Jobs.ScheduledJobs { public class ImportLevyDeclarationsJob { private readonly IMessageSession _message...
Add notes editing only when over auxiliary line
using UnityEngine; public class NoteObject : MonoBehaviour { public NotePosition notePosition; public int noteType; NotesEditorModel model; RectTransform rectTransform; void Awake() { model = NotesEditorModel.Instance; rectTransform = GetComponent<RectTransform>(); rec...
using UnityEngine; public class NoteObject : MonoBehaviour { public NotePosition notePosition; public int noteType; NotesEditorModel model; RectTransform rectTransform; void Awake() { model = NotesEditorModel.Instance; rectTransform = GetComponent<RectTransform>(); rec...
Fix for duplicate type in assembly error
using System; using System.Collections.Generic; using Microsoft.Extensions.DiagnosticAdapter.Internal; namespace Glimpse.Agent.Internal.Inspectors.Mvc.Proxies { public class ProxyAdapter { private static readonly ProxyTypeCache _cache = new ProxyTypeCache(); public ProxyAdapter() { ...
using System; using System.Collections.Generic; using Microsoft.Extensions.DiagnosticAdapter.Internal; namespace Glimpse.Agent.Internal.Inspectors.Mvc.Proxies { public class ProxyAdapter { private static readonly ProxyTypeCache _cache = new ProxyTypeCache(); public ProxyAdapter() { ...
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...
Improve MultiMiner Remoting compatibility on Linux+Mono
using System; using System.ServiceModel; namespace MultiMiner.Remoting.Server { public class RemotingServer { private bool serviceStarted = false; private ServiceHost myServiceHost = null; public void Startup() { Uri baseAddress = new Uri("net.tcp://localho...
using System; using System.Net; using System.ServiceModel; namespace MultiMiner.Remoting.Server { public class RemotingServer { private bool serviceStarted = false; private ServiceHost myServiceHost = null; public void Startup() { //use Dns.GetHostName() in...
Add null check to cache refresher
using Autofac; using Newtonsoft.Json; using System; using System.Collections.Concurrent; using TeaCommerce.Api.Dependency; using TeaCommerce.Api.Infrastructure.Caching; using umbraco.interfaces; using Umbraco.Core.Cache; namespace TeaCommerce.Umbraco.Application.Caching { public abstract class TeaCommerceCacheRef...
using Autofac; using Newtonsoft.Json; using System; using System.Collections.Concurrent; using TeaCommerce.Api.Dependency; using TeaCommerce.Api.Infrastructure.Caching; using umbraco.interfaces; using Umbraco.Core.Cache; namespace TeaCommerce.Umbraco.Application.Caching { public abstract class TeaCommerceCacheRef...
Create an empty Home controller.
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace Tigwi.UI.Controllers { public class HomeController : Controller { public ActionResult Index() { throw new NotImplementedException("HomeController.Index"); } ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace Tigwi.UI.Controllers { public class HomeController : Controller { public ActionResult Index() { this.ViewBag.CurrentUser = "Zak"; return this.View(); ...
Remove unnecessary object creation of IAnnotation
using System.Net; using Criteo.Profiling.Tracing.Annotation; namespace Criteo.Profiling.Tracing { /// <summary> /// Factory for annotations /// </summary> public static class Annotations { public static IAnnotation ClientRecv() { return new ClientRecv(); } ...
using System.Net; using Criteo.Profiling.Tracing.Annotation; namespace Criteo.Profiling.Tracing { /// <summary> /// Factory for annotations /// </summary> public static class Annotations { private static readonly IAnnotation AnnClientReceive = new ClientRecv(); private static read...
Allow base master page to be overridden
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.UI.WebControls; using System.Reflection; using System.Web.UI; namespace CodeTorch.Web.MasterPages { public class BaseMasterPage : System.Web.UI.MasterPage { protected Label currentYear; prote...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.UI.WebControls; using System.Reflection; using System.Web.UI; namespace CodeTorch.Web.MasterPages { public class BaseMasterPage : System.Web.UI.MasterPage { protected Label currentYear; prote...
Add a unified method to make an editor-only object
using UnityEditor; using UnityEditor.SceneManagement; namespace YesAndEditor { // Static class packed to the brim with helpful Unity editor utilities. public static class YesAndEditorUtil { // Forcefully mark open loaded scenes dirty and save them. [MenuItem ("File/Force Save")] public static void ForceSave...
using UnityEditor; using UnityEditor.SceneManagement; using UnityEngine; using System.Linq; namespace YesAndEditor { // Static class packed to the brim with helpful Unity editor utilities. public static class YesAndEditorUtil { // Forcefully mark open loaded scenes dirty and save them. [MenuItem ("File/Force ...
Remove 100sec boot screen =D
using System; using System.Threading.Tasks; using Windows.ApplicationModel.Activation; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Media; namespace FridgeShoppingList.Views { public sealed partial class Splash : UserControl { public Task SplashInProgress { get; private ...
using System; using System.Threading.Tasks; using Windows.ApplicationModel.Activation; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Media; namespace FridgeShoppingList.Views { public sealed partial class Splash : UserControl { public Task SplashInProgress { get; private ...
Rename variable in Automapper config to match its type (Job instead of JobDTO)
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- // This file reused from: https://code.msdn.microsoft.com/Field-Engineer-501df99d using AutoMapper...
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- // This file reused from: https://code.msdn.microsoft.com/Field-Engineer-501df99d using AutoMapper...
Update todo message to explain what is the issue
using System.Threading.Tasks; using Microsoft.AspNet.Builder; using Glimpse.Web; using System; namespace Glimpse.Host.Web.AspNet { public class GlimpseMiddleware { private readonly RequestDelegate _innerNext; private readonly MasterRequestRuntime _runtime; private readonly ISettings _s...
using System.Threading.Tasks; using Microsoft.AspNet.Builder; using Glimpse.Web; using System; namespace Glimpse.Host.Web.AspNet { public class GlimpseMiddleware { private readonly RequestDelegate _innerNext; private readonly MasterRequestRuntime _runtime; private readonly ISettings _s...