Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Set incoming webhook usename to /todo.
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using SlashTodo.Core; using SlashTodo.Infrastructure.Slack; namespace SlashTodo.Web.Api { public class DefaultSlashCommandHandler : ISlashCommandHandler { private readonly IRepository<Cor...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using SlashTodo.Core; using SlashTodo.Infrastructure.Slack; namespace SlashTodo.Web.Api { public class DefaultSlashCommandHandler : ISlashCommandHandler { private readonly IRepository<Cor...
Use parallelism for puzzle 10
// Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; /// <summary> /// A class representing the solution to <c>https://pro...
// Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; using System.Linq; /// <summary> /// A class representing the sol...
Add ikey placeholder to setup() call
using System; using Xamarin.Forms; using AI.XamarinSDK.Abstractions; namespace XamarinTest { public class App : Application { public App () { var mainNav = new NavigationPage (new XamarinTestMasterView ()); MainPage = mainNav; } protected override void OnStart () { ApplicationInsights.Setup ("")...
using System; using Xamarin.Forms; using AI.XamarinSDK.Abstractions; namespace XamarinTest { public class App : Application { public App () { var mainNav = new NavigationPage (new XamarinTestMasterView ()); MainPage = mainNav; } protected override void OnStart () { ApplicationInsights.Setup ("<Y...
Use IDtoModelMapper instead of IMapper in change sets controller
using System.Linq; using BitChangeSetManager.DataAccess; using BitChangeSetManager.Dto; using BitChangeSetManager.Model; using Foundation.Api.ApiControllers; using AutoMapper; using AutoMapper.QueryableExtensions; namespace BitChangeSetManager.Api { public class ChangeSetsController : DefaultDtoSetController<Chan...
using System.Linq; using BitChangeSetManager.DataAccess; using BitChangeSetManager.Dto; using BitChangeSetManager.Model; using Foundation.Api.ApiControllers; namespace BitChangeSetManager.Api { public class ChangeSetsController : DefaultDtoSetController<ChangeSet, ChangeSetDto> { private readonly IBit...
Change properties to getters only
using System; using System.Collections.Generic; using System.Net.Http; using System.Text; namespace Skarp.HubSpotClient { [Serializable] public class HubSpotException : Exception { private HttpResponseMessage response; public string RawJsonResponse { get; set; } public HubSpotExce...
using System; using System.Collections.Generic; using System.Net.Http; using System.Text; namespace Skarp.HubSpotClient { [Serializable] public class HubSpotException : Exception { public HttpResponseMessage Response { get; } public string RawJsonResponse { get; } public HubSpotE...
Remove pointless line from functionality test
using CSharpTo2600.Framework; using static CSharpTo2600.Framework.TIARegisters; namespace CSharpTo2600.FunctionalitySamples { [Atari2600Game] static class SingleChangeBkColor { [SpecialMethod(MethodType.Initialize)] [System.Obsolete(CSharpTo2600.Framework.Assembly.Symbols.AUDC0, true)] ...
using CSharpTo2600.Framework; using static CSharpTo2600.Framework.TIARegisters; namespace CSharpTo2600.FunctionalitySamples { [Atari2600Game] static class SingleChangeBkColor { [SpecialMethod(MethodType.Initialize)] static void Initialize() { BackgroundColor = 0x5E; ...
Revert "Created the Regex outside of the method, with a MatchTimeout property."
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using BlogTemplate._1.Models; namespace BlogTemplate._1.Services { public class SlugGenerator { private BlogDataStore _...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using BlogTemplate._1.Models; namespace BlogTemplate._1.Services { public class SlugGenerator { private BlogDataStore _...
Fix not disposing frame object when handling key events
using System.Windows.Forms; using CefSharp; using TweetDuck.Utils; namespace TweetDuck.Browser.Handling { class KeyboardHandlerBase : IKeyboardHandler { protected virtual bool HandleRawKey(IWebBrowser browserControl, Keys key, CefEventFlags modifiers) { if (modifiers == (CefEventFlags.ControlDown | CefEventFlag...
using System.Windows.Forms; using CefSharp; using TweetDuck.Utils; namespace TweetDuck.Browser.Handling { class KeyboardHandlerBase : IKeyboardHandler { protected virtual bool HandleRawKey(IWebBrowser browserControl, Keys key, CefEventFlags modifiers) { if (modifiers == (CefEventFlags.ControlDown | CefEventFlag...
Update GetEnumerator binding for more one run support.
using System.Collections.Generic; using System.Data.Entity; using System.Linq; using Moq; namespace Mox { public static class DbSetMockingExtensions { public static DbSet<T> MockWithList<T>(this DbSet<T> dbSet, IList<T> data) where T : class { var queryable = data.AsQueryable(); ...
using System.Collections.Generic; using System.Data.Entity; using System.Linq; using Moq; namespace Mox { public static class DbSetMockingExtensions { public static DbSet<T> MockWithList<T>(this DbSet<T> dbSet, IList<T> data) where T : class { var queryable = data.AsQuer...
Set interaction priority of PlacableSurfaceComponent to 1
using Content.Server.GameObjects.Components.GUI; using Content.Shared.GameObjects.Components; using Content.Shared.Interfaces.GameObjects.Components; using Robust.Shared.GameObjects; using Robust.Shared.Serialization; namespace Content.Server.GameObjects.Components { [RegisterComponent] public class PlaceableS...
using Content.Server.GameObjects.Components.GUI; using Content.Shared.GameObjects.Components; using Content.Shared.Interfaces.GameObjects.Components; using Robust.Shared.GameObjects; using Robust.Shared.Serialization; namespace Content.Server.GameObjects.Components { [RegisterComponent] public class Placeable...
Use `Unknown` instead of `default`
// 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.Game.Database; using osu.Game.Users; using osu.Game.Utils; using Realms; namespace osu.Game.Models { public class RealmUser : EmbeddedObject,...
// 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.Game.Database; using osu.Game.Users; using osu.Game.Utils; using Realms; namespace osu.Game.Models { public class RealmUser : EmbeddedObject,...
Allow formatted telephone numbers on iOS (e.g. 1800 111 222 333 instead of 1800111222333)
using System; #if __UNIFIED__ using Foundation; using UIKit; #else using MonoTouch.Foundation; using MonoTouch.UIKit; #endif namespace Plugin.Messaging { internal class PhoneCallTask : IPhoneCallTask { public PhoneCallTask() { } #region IPhoneCallTask Members public bo...
using System; #if __UNIFIED__ using Foundation; using UIKit; #else using MonoTouch.Foundation; using MonoTouch.UIKit; #endif namespace Plugin.Messaging { internal class PhoneCallTask : IPhoneCallTask { public PhoneCallTask() { } #region IPhoneCallTask Members public bo...
Add id of slave to slave configuration.
using System.Runtime.Serialization; namespace Orationi.CommunicationCore.Model { /// <summary> /// Provide information about slave configuration. /// </summary> [DataContract] public class SlaveConfiguration { /// <summary> /// Versions of slave-assigned modules. /// </summary> [DataMember] public Mod...
using System; using System.Runtime.Serialization; namespace Orationi.CommunicationCore.Model { /// <summary> /// Provide information about slave configuration. /// </summary> [DataContract] public class SlaveConfiguration { /// <summary> /// Global slave Id. /// </summa...
Change to AddOrUpdate for the feature to make it visible what the method is doing
using AutoMapper.Configuration; using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; namespace AutoMapper.Internal { public class FeatureCollectionBase<TValue> : IEnumerable<KeyValuePair<Type, TValue>> { private IDictionary<Type, TValue> _feat...
using AutoMapper.Configuration; using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; namespace AutoMapper.Internal { public class FeatureCollectionBase<TValue> : IEnumerable<KeyValuePair<Type, TValue>> { private IDictionary<Type, TValue> _feat...
Add ToSlug and ToFileNameSlug string extensions
using System; using System.Linq; using System.Security.Cryptography; using System.Text; namespace JabbR.Infrastructure { public static class StringExtensions { public static string ToMD5(this string value) { if (String.IsNullOrEmpty(value)) { return null...
using System; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; namespace JabbR.Infrastructure { public static class StringExtensions { public static string ToMD5(this string value) { if (String.IsNullOrEmpty(value)) ...
Remove NUnit.Framework.Constraint (unused - accident)
using System.Web.Mvc; using NUnit.Framework.Constraints; namespace MvcRouteTester.Test.Areas.SomeArea { public class SomeAreaAreaRegistration : AreaRegistration { public override string AreaName { get { return "SomeArea"; } } public override void RegisterArea(AreaRegistrationContext context) ...
using System.Web.Mvc; namespace MvcRouteTester.Test.Areas.SomeArea { public class SomeAreaAreaRegistration : AreaRegistration { public override string AreaName { get { return "SomeArea"; } } public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( "...
Include app info in legal notice and privacy page
<h1>Legal Notice &amp; Privacy</h1> <p>Dangl.<strong>Docu</strong> hosts all documentation and help pages for products and services offered by Dangl<strong>IT</strong> as well as for multiple open source projects.</p> <p> This website is operated and hosted by <a href="https://www.dangl-it.com/legal-notice/">Dan...
<h1>Legal Notice &amp; Privacy</h1> <p>Dangl.<strong>Docu</strong> hosts all documentation and help pages for products and services offered by Dangl<strong>IT</strong> as well as for multiple open source projects.</p> <p> This website is operated and hosted by <a href="https://www.dangl-it.com/legal-notice/">Dan...
Check before trying to deserialize transform
using System.Collections; using System.Collections.Generic; using System.Net; using UnityEngine; using UnityEngine.Networking; public class Autopilot : NetworkBehaviour { public string serverUrl; public float smoothing; private SerializableTransform targetTransform; private void Start () { if (isLocalPlayer...
using System.Collections; using System.Collections.Generic; using System.Net; using UnityEngine; using UnityEngine.Networking; public class Autopilot : NetworkBehaviour { public string serverUrl; public float smoothing; private SerializableTransform targetTransform; private void Start () { if (isLocalPlayer...
Make "add account" button nonexecutable when running.
// Copyright (c) 2016 The btcsuite developers // Copyright (c) 2016 The Decred developers // Licensed under the ISC license. See LICENSE file in the project root for full license information. using Paymetheus.Framework; using System; using System.Windows; using System.Windows.Input; namespace Paymetheus.ViewModels ...
// Copyright (c) 2016 The btcsuite developers // Copyright (c) 2016 The Decred developers // Licensed under the ISC license. See LICENSE file in the project root for full license information. using Grpc.Core; using Paymetheus.Framework; using System; using System.Threading.Tasks; using System.Windows; using System.W...
Change default find country code
using System.Configuration; using System.Linq; using System.Web.Mvc; namespace MAB.PCAPredictCapturePlus.TestHarness.Controllers { public class HomeController : Controller { private CapturePlusClient _client = new CapturePlusClient( apiVersion: "2.10", key: ConfigurationManager...
using System.Configuration; using System.Linq; using System.Web.Mvc; namespace MAB.PCAPredictCapturePlus.TestHarness.Controllers { public class HomeController : Controller { private CapturePlusClient _client = new CapturePlusClient( apiVersion: "2.10", key: ConfigurationManager...
Allow player to walk through unlocked doors
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Game_Algo { class Tile { /// <summary> /// 0 - Floor /// 1 - Wall /// </summary> public int TypeId { get; set; } public Tile(int MapCellId) { thi...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Game_Algo { class Tile { /// <summary> /// 0 - Floor /// 1 - Wall /// </summary> public int TypeId { get; set; } public Tile(int MapCellId) { thi...
Make logging configurable by external consumers
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace QuantConnect.ToolBox { /// <summary> /// Provides time stamped writing to the console /// </summary> public static class Log { /// <summary> /// Writes the ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace QuantConnect.ToolBox { /// <summary> /// Provides time stamped writing to the console /// </summary> public static class Log { /// <summary> /// Defines the...
Remove properties from interface as they are no longer needed
// The MIT License (MIT) // // Copyright (c) 2015 Rasmus Mikkelsen // https://github.com/rasmus/EventFlow // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including...
// The MIT License (MIT) // // Copyright (c) 2015 Rasmus Mikkelsen // https://github.com/rasmus/EventFlow // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including...
Update the appdelegate to make sure FreshEssentials is deployed
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace ExcelFormsTest.iOS { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding...
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace ExcelFormsTest.iOS { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding...
Use net4+ validation API on SimpleConfig, so we have detailed error messages.
using System; using System.ComponentModel.DataAnnotations; using System.Configuration; using System.Linq; using System.Text; namespace HermaFx.SimpleConfig { internal class CompositeConfigurationValidator : ConfigurationValidatorBase { private readonly ValidationAttribute[] _validationAttributes; ...
using System; using System.ComponentModel.DataAnnotations; using System.Configuration; using System.Linq; using System.Text; namespace HermaFx.SimpleConfig { internal class CompositeConfigurationValidator : ConfigurationValidatorBase { private readonly ValidationAttribute[] _validationAttributes; ...
Add fields related to 5b3c493
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace Schedutalk.Logic.KTHPlaces { [DataContract] public class RoomDataContract { [DataMember(Name = "floorUid")] public string FloorU...
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace Schedutalk.Logic.KTHPlaces { [DataContract] public class RoomDataContract { [DataMember(Name = "floorUid")] public string FloorU...
Fix for persisting the known devices.
using ChromeCast.Desktop.AudioStreamer.Application; namespace ChromeCast.Desktop.AudioStreamer.Discover { public class DiscoveredDevice { private const string GroupIdentifier = "\"md=Google Cast Group\""; public string Name { get; set; } public string IPAddress { get; set; } p...
using ChromeCast.Desktop.AudioStreamer.Application; using System.Xml.Serialization; namespace ChromeCast.Desktop.AudioStreamer.Discover { public class DiscoveredDevice { private const string GroupIdentifier = "\"md=Google Cast Group\""; public string Name { get; set; } public string I...
Change the padding on the exception message
using StructuredXmlEditor.View; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace StructuredXmlEditor { /// <summary> /// Interaction logic f...
using StructuredXmlEditor.View; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace StructuredXmlEditor { /// <summary> /// Interaction logic f...
Add a link to "about trac" on the trac version number at the end
<script type="text/javascript">searchHighlight()</script> <?cs if:len(links.alternate) ?> <div id="altlinks"> <h3>Download in other formats:</h3> <ul><?cs each:link = links.alternate ?> <li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>> <a href="<?cs var:link.href ?>"<?cs if:link.cla...
<script type="text/javascript">searchHighlight()</script> <?cs if:len(links.alternate) ?> <div id="altlinks"> <h3>Download in other formats:</h3> <ul><?cs each:link = links.alternate ?> <li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>> <a href="<?cs var:link.href ?>"<?cs if:link.cla...
Add HTTP request verb and url to echo response
using System; using System.Collections.Specialized; using System.IO; using System.Web; using Newtonsoft.Json; namespace WebServer { public class RequestInformation { public NameValueCollection Headers { get; private set; } public string BodyContent { get; private set; } public int B...
using System; using System.Collections.Specialized; using System.IO; using System.Web; using Newtonsoft.Json; namespace WebServer { public class RequestInformation { public string Verb { get; private set; } public string Url { get; private set; } public NameValueCollection Headers {...
Add sending of all http header values
using System.Collections.Generic; namespace DotVVM.Framework.Diagnostics.Models { public class HttpHeaderItem { public string Key { get; set; } public string Value { get; set; } public static HttpHeaderItem FromKeyValuePair(KeyValuePair<string, string[]> pair) { re...
using System.Collections.Generic; namespace DotVVM.Framework.Diagnostics.Models { public class HttpHeaderItem { public string Key { get; set; } public string Value { get; set; } public static HttpHeaderItem FromKeyValuePair(KeyValuePair<string, string[]> pair) { re...
Fix up menu for IE
 @if (Request.IsAuthenticated) { <div class="btn-group"> <a class="btn btn-inverse" href="#"><i class="icon-user icon-white"></i> @User.Identity.Name</a> <a class="btn btn-inverse dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a> <ul class="dropdown-menu"> ...
 @if (Request.IsAuthenticated) { <li> <div class="btn-group"> <a class="btn btn-inverse" href="#"><i class="icon-user icon-white"></i> @User.Identity.Name</a> <a class="btn btn-inverse dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a> <ul c...
Fix some spacing in class
using System; using System.Collections.Generic; namespace Glimpse.Agent.AspNet.Mvc { internal class ActionSelectedMessage : IMessage { public Guid Id { get; } = Guid.NewGuid(); public DateTime Time { get; } = DateTime.Now; public string ActionId { get; set; } public string D...
using System; using System.Collections.Generic; namespace Glimpse.Agent.AspNet.Mvc { internal class ActionSelectedMessage : IMessage { public Guid Id { get; } = Guid.NewGuid(); public DateTime Time { get; } = DateTime.Now; public string ActionId { get; set; } public string D...
Add more tests for get by id
using Moq; using NUnit.Framework; using PhotoLife.Data.Contracts; using PhotoLife.Models; namespace PhotoLife.Services.Tests.UserServiceTests { [TestFixture] public class GetById_Should { [TestCase("some id")] [TestCase("other id")] public void _CallRepository_GetByIdMethod(string ...
using Moq; using NUnit.Framework; using PhotoLife.Data.Contracts; using PhotoLife.Models; namespace PhotoLife.Services.Tests.UserServiceTests { [TestFixture] public class GetById_Should { [TestCase("some id")] [TestCase("other id")] public void _CallRepository_GetByIdMethod(string ...
Fix issue to throw exception when wallpaper isn't set.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.IO; using System.Linq; using System.Windows; using System.Windows.Data; using System.Windows.Media.Imaging; using SylphyHorn.Services; namespace SylphyHorn.UI.Controls { public class UnlockImageConve...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using System.IO; using System.Linq; using System.Windows; using System.Windows.Data; using System.Windows.Media.Imaging; using SylphyHorn.Services; namespace SylphyHorn.UI.Controls { public class UnlockImageConve...
Add regex for associating work items
using System.Text.RegularExpressions; namespace Sep.Git.Tfs { public static class GitTfsConstants { public static readonly Regex Sha1 = new Regex("[a-f\\d]{40}", RegexOptions.IgnoreCase); public static readonly Regex Sha1Short = new Regex("[a-f\\d]{4,40}", RegexOptions.IgnoreCase); publ...
using System.Text.RegularExpressions; namespace Sep.Git.Tfs { public static class GitTfsConstants { public static readonly Regex Sha1 = new Regex("[a-f\\d]{40}", RegexOptions.IgnoreCase); public static readonly Regex Sha1Short = new Regex("[a-f\\d]{4,40}", RegexOptions.IgnoreCase); publ...
Use proper input instead of log message to request manual DNS change
using PKISharp.WACS.Services; namespace PKISharp.WACS.Plugins.ValidationPlugins.Dns { class Manual : DnsValidation<ManualOptions, Manual> { private IInputService _input; public Manual(ILogService log, IInputService input, ManualOptions options, string identifier) : base(log, options, identif...
using PKISharp.WACS.Services; namespace PKISharp.WACS.Plugins.ValidationPlugins.Dns { class Manual : DnsValidation<ManualOptions, Manual> { private IInputService _input; public Manual(ILogService log, IInputService input, ManualOptions options, string identifier) : base(log, options, identif...
Fix compiler warning and rename test to be more clear.
using System; using NUnit.Framework; namespace MongoDB.Driver.Connections { [TestFixture] public class TestConnectionFactory { [TearDown] public void TearDown (){ ConnectionFactory.Shutdown (); } [Test] public void TestGetConnection (){ ...
using System; using NUnit.Framework; namespace MongoDB.Driver.Connections { [TestFixture] public class TestConnectionFactory { [TearDown] public void TearDown (){ ConnectionFactory.Shutdown (); } [Test] public void TestGetConnection (){ ...
Use UserName instead of UserDomainName
using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Text; using System.Threading.Tasks; using OneWayMirror.Core; namespace OneWayMirror { internal sealed class ReportingConsoleHost : ConsoleHost { private readonly string _reportEmailAddress; ...
using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Text; using System.Threading.Tasks; using OneWayMirror.Core; namespace OneWayMirror { internal sealed class ReportingConsoleHost : ConsoleHost { private readonly string _reportEmailAddress; ...
Disable commands while they are executing
using System; using System.Diagnostics; using System.Threading.Tasks; using System.Windows.Input; namespace Fotografix { public sealed class DelegateCommand : ICommand { private readonly Func<bool> canExecute; private readonly Func<Task> execute; private bool executing; public...
using System; using System.Diagnostics; using System.Threading.Tasks; using System.Windows.Input; namespace Fotografix { public sealed class DelegateCommand : ICommand { private readonly Func<bool> canExecute; private readonly Func<Task> execute; private bool executing; public...
Add description indicating retrieval method
// 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.TypeExtensions; namespace osu.Framework.Localisation { /// <summary> /// Indicates that the members of an enum can b...
// 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.Extensions.TypeExtensions; namespace osu.Framework.Localisation { /// <summary> /// Indicates t...
Load the service in the main thread, once more.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Linq; using System.ServiceProcess; using System.Text; using System.Threading.Tasks; using Hadouken.Common; using Hadouken.Hosting; namespace Hadouken.Hosts.WindowsService ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Linq; using System.ServiceProcess; using System.Text; using System.Threading.Tasks; using Hadouken.Common; using Hadouken.Hosting; using System.Threading; namespace Hadou...
Create Display/Editor location settings for Parts and Fields
using JetBrains.Annotations; using Orchard.ContentManagement; using Orchard.ContentManagement.Drivers; using Orchard.Core.Common.Fields; namespace Orchard.Core.Common.Drivers { [UsedImplicitly] public class TextFieldDriver : ContentFieldDriver<TextField> { public IOrchardServices Services { ge...
using JetBrains.Annotations; using Orchard.ContentManagement; using Orchard.ContentManagement.Drivers; using Orchard.Core.Common.Fields; using Orchard.Core.Common.Settings; namespace Orchard.Core.Common.Drivers { [UsedImplicitly] public class TextFieldDriver : ContentFieldDriver<TextField> { ...
Fix intermittent Style unit test failures.
// Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System.Reflection; [assembly: AssemblyTitle("Perspex.Styling.UnitTests")]
// Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System.Reflection; using Xunit; [assembly: AssemblyTitle("Perspex.Styling.UnitTests")] // Don't run tests in parallel. [assembly: CollectionBehavi...
Fix dumb in torch mod
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sandbox.ModAPI; using VRage.Game.Components; namespace Torch.Mod { [MySessionComponentDescriptor(MyUpdateOrder.AfterSimulation)] public class TorchModCore : MySessionComponentBase { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sandbox.ModAPI; using VRage.Game.Components; namespace Torch.Mod { [MySessionComponentDescriptor(MyUpdateOrder.AfterSimulation)] public class TorchModCore : MySessionComponentBase { ...
Add slider test step for visual inspection purposes
// 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.Graphics; using osu.Framework.Utils; using osu.Game.Graphics.Sprites; using osu.Game.Graphics.UserInterface; using osuTK; name...
// 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.Graphics; using osu.Framework.Utils; using osu.Game.Graphics.Sprites; using osu.Game.Graphics.UserInterface; using osuTK; name...
Check if _soundData is null before attempting to play the sound
using System; using System.Runtime.InteropServices; using System.Resources; using System.IO; namespace Win32 { public static class Winmm { public static void PlayMessageNotify() { if (_soundData == null) { using (UnmanagedMemoryStream sound ...
using System; using System.Runtime.InteropServices; using System.Resources; using System.IO; namespace Win32 { public static class Winmm { public static void PlayMessageNotify() { if (_soundData == null) { using (UnmanagedMemoryStream sound ...
Use local definition of ArchiveTypes to validate metadata systemtypes
using System; namespace Arkivverket.Arkade.Metadata { public static class MetsTranslationHelper { public static bool IsValidSystemType(string systemType) { // TODO: Use Enum ExternalModels.Mets.type (not ExternalModels.Info.type) when/if supported in built in mets schema ...
using System; using Arkivverket.Arkade.Core; namespace Arkivverket.Arkade.Metadata { public static class MetsTranslationHelper { public static bool IsValidSystemType(string systemType) { return Enum.IsDefined(typeof(ArchiveType), systemType); } public static bool I...
Remove userGuid on ValidateUser method
using System; using System.Collections.Generic; using System.ServiceModel; using PS.Mothership.Core.Common.Dto; namespace PS.Mothership.Core.Common.Contracts { [ServiceContract(Name = "DiallerService")] public interface IDiallerService { [OperationContract] ValidUserInfoDto Vali...
using System; using System.Collections.Generic; using System.ServiceModel; using PS.Mothership.Core.Common.Dto; namespace PS.Mothership.Core.Common.Contracts { [ServiceContract(Name = "DiallerService")] public interface IDiallerService { [OperationContract] ValidUserInfoDto Vali...
Fix a niggle from the wiki: display donation amounts to two decimal places. Also format them as a currency, and respect the current culture.
@model IEnumerable<GiveCRM.Models.Donation> @{ Layout = null; } <table> <tr> <th>Date</th><th>Amount</th> </tr> @foreach (var donation in Model) { <tr> <td>@donation.Date.ToLongDateString()</td> <td>@donation.Amount</td> </tr> } </table>
@using System.Globalization @model IEnumerable<GiveCRM.Models.Donation> @{ Layout = null; } <table> <tr> <th>Date</th><th>Amount</th> </tr> @foreach (var donation in Model) { <tr> <td>@donation.Date.ToLongDateString()</td> <td>@donation.Amount.ToString("C2", NumberFormatInfo.CurrentInfo)...
Remove CoreCLR pull 6423, run msbuild System.ObjectModel.Tests.csproj /t:BuildAndTest, succeeded.
// 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.Collections.Generic; using System.Runtime.Serialization.Formatters.Tests; using Xunit; namespace Syste...
// 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.Collections.Generic; using System.Runtime.Serialization.Formatters.Tests; using Xunit; namespace Syste...
Remove JsonProperty Mapping for "file"
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; namespace Contentful.Core.Models { /// <summary> /// Represents a single asset of a <see cref="Space"/>. /// </summary> public class Asset : IContentfulResource { /// <su...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; namespace Contentful.Core.Models { /// <summary> /// Represents a single asset of a <see cref="Space"/>. /// </summary> public class Asset : IContentfulResource { /// <su...
Add throw error on Neo exception in ExecuteCore
namespace CypherTwo.Core { using System; using System.Linq; using System.Threading.Tasks; public class NeoClient : INeoClient { private readonly ISendRestCommandsToNeo neoApi; public NeoClient(string baseUrl) : this(new ApiClientFactory(baseUrl, new JsonHttpClientWrapper())) ...
namespace CypherTwo.Core { using System; using System.Linq; using System.Threading.Tasks; public class NeoClient : INeoClient { private readonly ISendRestCommandsToNeo neoApi; public NeoClient(string baseUrl) : this(new ApiClientFactory(baseUrl, new JsonHttpClientWrapper())) ...
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); } } }
Add client method for notifying about host changes
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading.Tasks; namespace osu.Game.Online.RealtimeMultiplayer { /// <summary> /// An interface defining a spectator client instance. /// </summ...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Threading.Tasks; namespace osu.Game.Online.RealtimeMultiplayer { /// <summary> /// An interface defining a spectator client instance. /// </summ...
Add parameter-less defaults for Start, Toggle, Reset.
using System; using System.Threading; using Microsoft.SPOT; namespace AgentIntervals { public delegate void HeartBeatEventHandler(object sender, EventArgs e); public class HeartBeat { private Timer _timer; private int _period; public event HeartBeatEventHandler On...
using System; using System.Threading; using Microsoft.SPOT; namespace AgentIntervals { public delegate void HeartBeatEventHandler(object sender, EventArgs e); public class HeartBeat { private Timer _timer; private int _period; public event HeartBeatEventHandler On...
Use the defined max value
using System; using System.Linq; namespace FibCSharp { class Program { static void Main(string[] args) { var max = 50; Enumerable.Range(0, int.MaxValue) .Select(Fib) .TakeWhile(x => x <= 50) .ToList() .ForE...
using System; using System.Linq; namespace FibCSharp { class Program { static void Main(string[] args) { var max = 50; Enumerable.Range(0, int.MaxValue) .Select(Fib) .TakeWhile(x => x <= max) .ToList() .For...
Add the option of specifying a comparer.
using System; using System.Collections.Generic; namespace IvionSoft { public class History<T> { int length; HashSet<T> hashes; Queue<T> queue; object _locker; public History(int length) { if (length < 1) throw new ArgumentException("...
using System; using System.Collections.Generic; namespace IvionSoft { public class History<T> { public int Length { get; private set; } HashSet<T> hashes; Queue<T> queue; object _locker = new object(); public History(int length) : this(length, null) {} ...
Update colour of spotlights playlist to match new specs
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Sprites; using osu.Game.Graphics; using osu.Game.Graphics.Sprites; using osuTK....
// 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.Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Sprites; using osu.Game.Graphics; using osu.Gam...
Add blocks not in order
namespace PegSharp.External { using System; using System.Collections.Generic; using System.Linq; using System.Text; public class BlockChain { private List<BlockData> blocks = new List<BlockData>(); private List<BlockData> others = new List<BlockData>(); pub...
namespace PegSharp.External { using System; using System.Collections.Generic; using System.Linq; using System.Text; public class BlockChain { private List<BlockData> blocks = new List<BlockData>(); private List<BlockData> others = new List<BlockData>(); pub...
Use one way function protocol for bit commitment
using System; namespace BitCommitment { /// <summary> /// A class to perform bit commitment. It does not care what the input is; it's just a /// facility for exchanging bit commitment messages. /// </summary> public class BitCommitmentEngine { #region properties public byte[]...
using System; namespace BitCommitment { /// <summary> /// A class to perform bit commitment. It does not care what the input is; it's just a /// facility for exchanging bit commitment messages. Based on Bruce Schneier's one-way /// function method for committing bits /// </summary> public cl...
Make a proper view model
/* * Created by SharpDevelop. * User: Lars Magnus * Date: 12.06.2014 * Time: 20:54 * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; using System.Text; using Nancy; using SubmittedData; namespace Modules { /// <summary> /// Description of WebService. /// </s...
/* * Created by SharpDevelop. * User: Lars Magnus * Date: 12.06.2014 * Time: 20:54 * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ using System; using System.Text; using Nancy; using SubmittedData; namespace Modules { /// <summary> /// Description of WebService. /// </s...
Change some intro settings property names
using System.ComponentModel; using Xceed.Wpf.Toolkit.PropertyGrid.Attributes; namespace DesktopWidgets.Classes { [ExpandableObject] [DisplayName("Intro Settings")] public class IntroData { [DisplayName("Duration")] public int Duration { get; set; } = -1; [DisplayName("Reversab...
using System.ComponentModel; using Xceed.Wpf.Toolkit.PropertyGrid.Attributes; namespace DesktopWidgets.Classes { [ExpandableObject] [DisplayName("Intro Settings")] public class IntroData { [DisplayName("Duration")] public int Duration { get; set; } = -1; [DisplayName("Reversab...
Use timer rather than blocking sleep
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Web; using Microsoft.AspNet.SignalR; namespace SignalRDemo.Hubs { public class Chat : Hub { public void SayHello() { while (true) { Clients.All.addMes...
using System; using System.Collections.Generic; using System.Linq; using System.Timers; using System.Web; using Microsoft.AspNet.SignalR; using Timer = System.Timers.Timer; namespace SignalRDemo.Hubs { public class Chat : Hub { static string messageToSend = DateTime.Now.ToString(); Timer t = n...
Switch to not serialize the full embed object
using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers.API { public class EmbedsController : ApiController { public EmbedsContr...
using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers.API { public class EmbedsController : ApiController { public EmbedsContr...
Add a 5% chance for attacks to be critical hits, which ignore defense.
using Roguelike.UI; using System; namespace Roguelike.Entities.Components { public class FighterComponent : Component { public int MaximumHealth { get; set; } public int CurrentHealth { get; set; } public int Power { get; set; } public int Defense { get; set; } public ...
using Roguelike.UI; using System; namespace Roguelike.Entities.Components { public class FighterComponent : Component { public const float CriticalHitChance = 0.05f; public int MaximumHealth { get; set; } public int CurrentHealth { get; set; } public int Power { get; set; } ...
Change model and EF errors with schema change
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CodeFirstMigrations { public class Address { public Int32 Id { get; set; } public Int32 HouseNumber { get; set; } public String Street { get; set; } pub...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CodeFirstMigrations { public class Address { public Int32 Id { get; set; } public Int32 HouseNumber { get; set; } public String Street { get; set; } pub...
Change the order of the columns in CSV export
using BSParser.Data; using CsvHelper; using System.IO; using System.Text; namespace BSParser.Writers { public class StrictCSVWriter : Writer { private string _fileName; public StrictCSVWriter(string fileName) { _fileName = fileName; } public override bool ...
using BSParser.Data; using CsvHelper; using System.IO; using System.Linq; using System.Text; namespace BSParser.Writers { public class StrictCSVWriter : Writer { private string _fileName; public StrictCSVWriter(string fileName) { _fileName = fileName; } pu...
Add game version to the results (for e.g. heavy rain)
using CompatApiClient.Utils; using DSharpPlus.Entities; using IrdLibraryClient; using IrdLibraryClient.POCOs; namespace CompatBot.Utils.ResultFormatters { public static class IrdSearchResultFormattercs { public static DiscordEmbedBuilder AsEmbed(this SearchResult searchResult) { va...
using CompatApiClient.Utils; using DSharpPlus.Entities; using IrdLibraryClient; using IrdLibraryClient.POCOs; namespace CompatBot.Utils.ResultFormatters { public static class IrdSearchResultFormattercs { public static DiscordEmbedBuilder AsEmbed(this SearchResult searchResult) { va...
Add test for ListaAutores method
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Livraria; namespace LivrariaTest { [TestClass] public class AutorTest { [TestMethod] public void TestProperties() { Autor autor = new Autor(); autor.CodAutor = 999; ...
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Livraria; using System.Collections.Generic; namespace LivrariaTest { [TestClass] public class AutorTest { [TestMethod] public void TestProperties() { Autor autor = new Autor(); ...
Use correct TBT_LINEAR_TARGET shader feature keyword.
// Copyright 2016 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
// Copyright 2016 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
Allow bass sample channels to overwrite older ones by default.
// 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 ManagedBass; using System; using System.Collections.Concurrent; namespace osu.Framework.Audio.Sample { internal class SampleBass : Sample,...
// 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 ManagedBass; using System; using System.Collections.Concurrent; namespace osu.Framework.Audio.Sample { internal class SampleBass : Sample,...
Fix - Modificata notifica delete utente
using Microsoft.AspNetCore.SignalR; using SO115App.Models.Servizi.CQRS.Commands.GestioneUtenti.CancellazioneUtente; using SO115App.Models.Servizi.Infrastruttura.GestioneUtenti.GetUtenti; using SO115App.Models.Servizi.Infrastruttura.Notification.GestioneUtenti; using System; using System.Threading.Tasks; namespace SO1...
using Microsoft.AspNetCore.SignalR; using SO115App.Models.Servizi.CQRS.Commands.GestioneUtenti.CancellazioneUtente; using SO115App.Models.Servizi.Infrastruttura.GestioneUtenti.GetUtenti; using SO115App.Models.Servizi.Infrastruttura.Notification.GestioneUtenti; using System; using System.Threading.Tasks; namespace SO1...
Add explanation of why having 2 yield return
// Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Razor; using Microsoft.AspNetCore.Mvc.RazorPages; name...
// Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Razor; using Microsoft.AspNetCore.Mvc.RazorPages; name...
Remove Seq compact flag, default now
namespace BatteryCommander.Web { using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Serilog; using Serilog.Core; public class Program { public static LoggingLevelSwitch LogLevel { get; } = new LoggingLevelSwitch(Se...
namespace BatteryCommander.Web { using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Serilog; using Serilog.Core; public class Program { public static LoggingLevelSwitch LogLevel { get; } = new LoggingLevelSwitch(Se...
Allow reading numbers from strings in JSON
using System; using System.Data; using System.Text.Json; using Dapper; namespace Dommel.Json { internal class JsonObjectTypeHandler : SqlMapper.ITypeHandler { private static readonly JsonSerializerOptions JsonOptions = new JsonSerializerOptions { AllowTrailingCommas = true, ...
using System; using System.Data; using System.Text.Json; using System.Text.Json.Serialization; using Dapper; namespace Dommel.Json { internal class JsonObjectTypeHandler : SqlMapper.ITypeHandler { private static readonly JsonSerializerOptions JsonOptions = new() { AllowTrailingComm...
Fix plugin script generator causing JS syntax error
using System.Text; namespace TweetDck.Plugins{ static class PluginScriptGenerator{ public static string GenerateConfig(PluginConfig config){ return config.AnyDisabled ? "window.TD_PLUGINS.disabled = [\""+string.Join("\",\"",config.DisabledPlugins)+"\"];" : string.Empty; } publ...
using System.Text; namespace TweetDck.Plugins{ static class PluginScriptGenerator{ public static string GenerateConfig(PluginConfig config){ return config.AnyDisabled ? "window.TD_PLUGINS.disabled = [\""+string.Join("\",\"",config.DisabledPlugins)+"\"];" : string.Empty; } publ...
Add empty to null check
using FreecraftCore.Serializer.KnownTypes; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FreecraftCore.Serializer.Tests { [TestFixture] public class StringTests { [Test] public static void Test_String_Seriali...
using FreecraftCore.Serializer.KnownTypes; using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FreecraftCore.Serializer.Tests { [TestFixture] public class StringTests { [Test] public static void Test_String_Seriali...
Resolve binding exception on netfx.
using System; using System.Composition.Hosting; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.Loader; namespace AudioWorks.Extensions { abstract class ExtensionContainerBase { static readonly DirectoryInfo _extensionRoot = new DirectoryInfo(Path.Combine( ...
using System; using System.Composition.Hosting; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.Loader; namespace AudioWorks.Extensions { abstract class ExtensionContainerBase { static readonly DirectoryInfo _extensionRoot = new D...
Add link to Markdown help
@model JoinRpg.DataModel.MarkdownString @{ var requiredMsg = new MvcHtmlString(""); var validation = false; foreach (var attr in @Html.GetUnobtrusiveValidationAttributes(@ViewData.TemplateInfo.HtmlFieldPrefix, @ViewData.ModelMetadata)) { if (attr.Key == "data-val-required") { requiredMs...
@model JoinRpg.DataModel.MarkdownString @{ var requiredMsg = new MvcHtmlString(""); var validation = false; foreach (var attr in @Html.GetUnobtrusiveValidationAttributes(@ViewData.TemplateInfo.HtmlFieldPrefix, @ViewData.ModelMetadata)) { if (attr.Key == "data-val-required") { requiredMs...
Switch to OrdinalIgnoreCase comparison for PackageReference deduplication
using Microsoft.Build.Framework; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; namespace Microsoft.NET.Build.Tasks { public class CheckForImplicitPackageReferenceOverrides : TaskBase { const string MetadataKeyForItemsToRemove = "IsImp...
using Microsoft.Build.Framework; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; namespace Microsoft.NET.Build.Tasks { public class CheckForImplicitPackageReferenceOverrides : TaskBase { const string MetadataKeyForItemsToRemove = "IsImp...
Remove extra tab in the script template.
using OpenTK; using OpenTK.Graphics; using StorybrewCommon.Mapset; using StorybrewCommon.Scripting; using StorybrewCommon.Storyboarding; using StorybrewCommon.Storyboarding.Util; using StorybrewCommon.Subtitles; using StorybrewCommon.Util; using System; using System.Collections.Generic; using System.Linq; namespace S...
using OpenTK; using OpenTK.Graphics; using StorybrewCommon.Mapset; using StorybrewCommon.Scripting; using StorybrewCommon.Storyboarding; using StorybrewCommon.Storyboarding.Util; using StorybrewCommon.Subtitles; using StorybrewCommon.Util; using System; using System.Collections.Generic; using System.Linq; namespace S...
Fix closing tag on iframe
namespace Ooui { public class Iframe : Element { public string Source { get => GetStringAttribute ("src", null); set => SetAttributeProperty ("src", value); } public Iframe () : base ("iframe") { } } }
namespace Ooui { public class Iframe : Element { public string Source { get => GetStringAttribute ("src", null); set => SetAttributeProperty ("src", value); } public Iframe () : base ("iframe") { } protected override ...
Make decal on despawn script use void.
using UnityEngine; namespace Weapons.Projectiles.Behaviours { /// <summary> /// Identical to ProjectileDecal.cs, but creates a decal upon despawning instead of on hitting something. /// </summary> public class ProjectileDecalOnDespawn : MonoBehaviour, IOnDespawn { [SerializeField] private GameObject decal = nu...
using UnityEngine; namespace Weapons.Projectiles.Behaviours { /// <summary> /// Identical to ProjectileDecal.cs, but creates a decal upon despawning instead of on hitting something. /// </summary> public class ProjectileDecalOnDespawn : MonoBehaviour, IOnDespawn { [SerializeField] private GameObject decal = nu...
Fix search result when returning multiple results
@using Hops.Models; @model ListModel<HopModel> @{ Layout = "~/Views/Shared/_Layout.cshtml"; } @{ ViewBag.Title = "Search results - Hops"; } @if (!string.IsNullOrEmpty(Model.Pagination.SearchTerm)) { <h3>Search results for "@Model.Pagination.SearchTerm":</h3> } @Html.Partial("~/Views/Hop/List", Model)
@using Hops.Models; @model ListModel<HopModel> @{ Layout = "~/Views/Shared/_Layout.cshtml"; } @{ ViewBag.Title = "Search results - Hops"; } @if (!string.IsNullOrEmpty(Model.Pagination.SearchTerm)) { <h3>Search results for "@Model.Pagination.SearchTerm":</h3> } @Html.Partial("~/Views/Hop/List.cshtml", M...
Return an empty string for / on markdig webapi
using System; using System.Text; using Microsoft.AspNetCore.Mvc; namespace Markdig.WebApp { public class ApiController : Controller { // GET api/to_html?text=xxx&extensions=advanced [Route("api/to_html")] [HttpGet()] public object Get([FromQuery] string text, [FromQuery] string...
using System; using System.Text; using Microsoft.AspNetCore.Mvc; namespace Markdig.WebApp { public class ApiController : Controller { [HttpGet()] [Route("")] public string Empty() { return string.Empty; } // GET api/to_html?text=xxx&extensions=advanc...
Allow conversion of UInt64 based enums
using System; namespace Python.Runtime.Codecs { [Obsolete] public sealed class EnumPyIntCodec : IPyObjectEncoder, IPyObjectDecoder { public static EnumPyIntCodec Instance { get; } = new EnumPyIntCodec(); public bool CanDecode(PyType objectType, Type targetType) { return...
using System; namespace Python.Runtime.Codecs { [Obsolete] public sealed class EnumPyIntCodec : IPyObjectEncoder, IPyObjectDecoder { public static EnumPyIntCodec Instance { get; } = new EnumPyIntCodec(); public bool CanDecode(PyType objectType, Type targetType) { return...
Remove DebuggerDisplay attribute not applicable anymore
using System; using System.Diagnostics; namespace Nett { [DebuggerDisplay("{FromType} -> {ToType}")] internal sealed class TomlConverter<TFrom, TTo> : TomlConverterBase<TFrom, TTo> { private readonly Func<TFrom, TTo> convert; public TomlConverter(Func<TFrom, TTo> convert) { ...
using System; namespace Nett { internal sealed class TomlConverter<TFrom, TTo> : TomlConverterBase<TFrom, TTo> { private readonly Func<TFrom, TTo> convert; public TomlConverter(Func<TFrom, TTo> convert) { if (convert == null) { throw new ArgumentNullException(nameof(conver...
Make all strings in loaded TdfNodes lowercase
namespace TAUtil.Tdf { using System.Collections.Generic; public class TdfNodeAdapter : ITdfNodeAdapter { private readonly Stack<TdfNode> nodeStack = new Stack<TdfNode>(); public TdfNodeAdapter() { this.RootNode = new TdfNode(); this.nodeStack.Pus...
namespace TAUtil.Tdf { using System.Collections.Generic; public class TdfNodeAdapter : ITdfNodeAdapter { private readonly Stack<TdfNode> nodeStack = new Stack<TdfNode>(); public TdfNodeAdapter() { this.RootNode = new TdfNode(); this.nodeStack.Pus...
Update UI look and feel
@model ChatApp.Controllers.ChatMessagesViewModel @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" @using ChatApp.Models <!DOCTYPE html> <html> <head> <title>ChatApp</title> </head> <body> <table> @foreach (Message msg in Model.OldMessages) { <tr> <td class="aut...
@model ChatApp.Controllers.ChatMessagesViewModel @addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers" @using ChatApp.Models <!DOCTYPE html> <html> <head> <title>ChatApp</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://www.w3schools.com/lib/w...
Align XSD Doc version number with SHFB
using System; using System.Reflection; using System.Reflection.Emit; using System.Resources; using System.Runtime.InteropServices; [assembly: AssemblyCopyright(XsdDocMetadata.Copyright)] [assembly: AssemblyCompany("Immo Landwerth")] [assembly: AssemblyProduct("XML Schema Documenter")] [assembly: CLSComplian...
using System; using System.Reflection; using System.Reflection.Emit; using System.Resources; using System.Runtime.InteropServices; [assembly: AssemblyCopyright(XsdDocMetadata.Copyright)] [assembly: AssemblyCompany("Immo Landwerth")] [assembly: AssemblyProduct("XML Schema Documenter")] [assembly: CLSComplian...
Increment copyright year of projects to 2019
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Yevgeniy Shunevych")] [assembly: AssemblyProduct("Atata Framework")] [assembly: AssemblyCopyright("© Yevgeniy Shunevych 2018")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: AssemblyVersion("1...
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Yevgeniy Shunevych")] [assembly: AssemblyProduct("Atata Framework")] [assembly: AssemblyCopyright("© Yevgeniy Shunevych 2019")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: AssemblyVersion("1...
Add support for XOR in PostgreSQL
using SimpleStack.Orm.Expressions; namespace SimpleStack.Orm.PostgreSQL { /// <summary>A postgre SQL expression visitor.</summary> /// <typeparam name="T">Generic type parameter.</typeparam> public class PostgreSQLExpressionVisitor<T>:SqlExpressionVisitor<T> { public PostgreSQLExpressionVisitor(IDialect...
using System.Linq.Expressions; using SimpleStack.Orm.Expressions; namespace SimpleStack.Orm.PostgreSQL { /// <summary>A postgre SQL expression visitor.</summary> /// <typeparam name="T">Generic type parameter.</typeparam> public class PostgreSQLExpressionVisitor<T>:SqlExpressionVisitor<T> { public Postg...
Update to Problem 3. Check for a Play Card
/*Problem 3. Check for a Play Card Classical play cards use the following signs to designate the card face: `2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K and A. Write a program that enters a string and prints “yes” if it is a valid card sign or “no” otherwise. Examples: character Valid card sign? 5 yes 1 ...
/*Problem 3. Check for a Play Card Classical play cards use the following signs to designate the card face: `2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K and A. Write a program that enters a string and prints “yes” if it is a valid card sign or “no” otherwise. Examples: character Valid card sign? 5 yes 1 ...
Use AndroidClientHandler for android & NSUrlSessionHandler for iOS by default in bit cs client
using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Xamarin.Forms; namespace Bit.ViewModel.Implementations { public class BitHttpClientHandler : HttpClientHandler { protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, Can...
using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Xamarin.Forms; namespace Bit.ViewModel.Implementations { public class BitHttpClientHandler : #if Android Xamarin.Android.Net.AndroidClientHandler #elif iOS NSUrlSessionHandler #else HttpClientH...
Make sure GetIdValue returns a unique value per object.
using System; using System.Collections.Generic; using System.Text; using Csla.Core; using Csla; namespace DataBindingApp { [Serializable()] public class ListObject : BusinessListBase<ListObject, ListObject.DataObject> { [Serializable()] public class DataObject : BusinessBase<DataObject> ...
using System; using System.Collections.Generic; using System.Text; using Csla.Core; using Csla; namespace DataBindingApp { [Serializable()] public class ListObject : BusinessListBase<ListObject, ListObject.DataObject> { [Serializable()] public class DataObject : BusinessBase<DataObject> ...
Fix namespace & class name
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace ConsoleApp { public class Table { private readonly string tableName; private readonly IEnumerable<Column> columns; public Table(string tableName, IEnumerable<Column> columns) { ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace ConsoleApp { public class Table { private readonly string tableName; private readonly IEnumerable<Column> columns; public Table(string tableName, IEnumerable<Column> columns) { ...
Bring back integration test for CosmosDb.
using System; using System.Linq; using ExRam.Gremlinq.Core.Tests; using FluentAssertions; using Xunit; using static ExRam.Gremlinq.Core.GremlinQuerySource; namespace ExRam.Gremlinq.Providers.CosmosDb.Tests { public class GroovySerializationTest : GroovySerializationTest<CosmosDbGroovyGremlinQueryElementVisitor> ...
using System; using System.Linq; using ExRam.Gremlinq.Core.Tests; using FluentAssertions; using Xunit; using static ExRam.Gremlinq.Core.GremlinQuerySource; namespace ExRam.Gremlinq.Providers.CosmosDb.Tests { public class GroovySerializationTest : GroovySerializationTest<CosmosDbGroovyGremlinQueryElementVisitor> ...
Add back in the reflection namespace
using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using Octokit.Internal; namespace Octokit { static class EnumExtensions { [SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase")] internal static string ToParameter(this Enum prop) { ...
using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; using Octokit.Internal; namespace Octokit { static class EnumExtensions { [SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase")] internal static string ToParameter(this ...
Update default encoding to utf8 for supporting non-us symbols
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace MailChimp.Net.Api { class PostHelpers { public static string PostJson(string url, string data) { var bytes = Encoding.Default.GetBytes(dat...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace MailChimp.Net.Api { class PostHelpers { public static string PostJson(string url, string data) { var bytes = Encoding.UTF8.GetBytes(data);...