Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Make way for the extended information which can be requested using the Show Droplet request.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DigitalOcean.Structs { public class Droplet { public int id { get; set; } public string name { get; set; } public int image_id { get; set; }...
using System.Collections.Generic; namespace DigitalOcean.Structs { public class Droplet { public int id { get; set; } public int image_id { get; set; } public string name { get; set; } public int region_id { get; set; } public int size_id { get; set; } public bo...
Use Uri's for subdocument file and photos
using MyDocs.Common; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Windows.Storage; using Logic = MyDocs.Common.Model.Logic; namespace JsonNetDal { public class SubDocument { public string Title { get; set; } public string File { get; s...
using MyDocs.Common; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Windows.Storage; using Logic = MyDocs.Common.Model.Logic; namespace JsonNetDal { public class SubDocument { public string Title { get; set; } public Uri File { g...
Fix major bug when getting event handlers
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Threading.Tasks; namespace Cronus.Core.Eventing { /// <summary> /// Represents an in memory event messaging destribution /// </summary> public class InMemo...
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace Cronus.Core.Eventing { /// <summary> /// Represents an in memory event messaging destribution /// </summary> public class InMemoryEventBus : AbstractEventBus { /// <summary> /// Publ...
Print hello world for k10 project.
#if NET45 using System; using Microsoft.Owin.Hosting; namespace MvcSample { public class Program { const string baseUrl = "http://localhost:9001/"; public static void Main() { using (WebApp.Start<Startup>(new StartOptions(baseUrl))) { Console.Wr...
using System; #if NET45 using Microsoft.Owin.Hosting; #endif namespace MvcSample { public class Program { const string baseUrl = "http://localhost:9001/"; public static void Main() { #if NET45 using (WebApp.Start<Startup>(new StartOptions(baseUrl))) { ...
Add classes for prime numbers
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Azure.WebJobs; namespace TaskWebJob { // To learn more about Microsoft Azure WebJobs SDK, please see http://go.microsoft.com/fwlink/?LinkID=320976 class Program { // Please set the following connection str...
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Azure.WebJobs; namespace TaskWebJob { // To learn more about Microsoft Azure WebJobs SDK, please see http://go.microsoft.com/fwlink/?LinkID=320976 class Program { // Please set the following connection str...
Add resets when reloading level
/* ---------------------------------------------------------------------- Numenta Platform for Intelligent Computing (NuPIC) Copyright (C) 2015, Numenta, Inc. Unless you have an agreement with Numenta, Inc., for a separate license for this software code, the following terms and conditions apply: This pro...
/* ---------------------------------------------------------------------- Numenta Platform for Intelligent Computing (NuPIC) Copyright (C) 2015, Numenta, Inc. Unless you have an agreement with Numenta, Inc., for a separate license for this software code, the following terms and conditions apply: This pro...
Fix huge bug related to instantiation of tolerance
using NBi.Core.ResultSet; using System; using System.Globalization; using System.Linq; namespace NBi.Core.Scalar.Comparer { public class ToleranceFactory { public static Tolerance Instantiate(IColumnDefinition columnDefinition) { if (columnDefinition.Role != ColumnRole.Value) ...
using NBi.Core.ResultSet; using System; using System.Globalization; using System.Linq; namespace NBi.Core.Scalar.Comparer { public class ToleranceFactory { public static Tolerance Instantiate(IColumnDefinition columnDefinition) { if (string.IsNullOrEmpty(columnDefinition.Tolerance...
Fix Actipro language to construct the correct set of language services
using System; using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; using System.ComponentModel.Composition.Primitives; using ActiproSoftware.Text.Implementation; using NQuery.Language.Services.BraceMatching; namespace NQuery.Language.ActiproWpf { public sealed class NQueryLan...
using System; using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; using System.ComponentModel.Composition.Primitives; using ActiproSoftware.Text.Implementation; using NQuery.Language.Services.BraceMatching; using NQuery.Language.Wpf; namespace NQuery.Language.ActiproWpf { pu...
Make settings textboxes commit on focus lost
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.Settings { public class SettingsTextBox : SettingsItem<string> ...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.Settings { public class SettingsTextBox : SettingsItem<string> ...
Simplify the .pro file names
// <copyright file="QtCreatorBuilder.cs" company="Mark Final"> // Opus package // </copyright> // <summary>QtCreator package</summary> // <author>Mark Final</author> [assembly: Opus.Core.DeclareBuilder("QtCreator", typeof(QtCreatorBuilder.QtCreatorBuilder))] // Automatically generated by Opus v0.20 namespace ...
// <copyright file="QtCreatorBuilder.cs" company="Mark Final"> // Opus package // </copyright> // <summary>QtCreator package</summary> // <author>Mark Final</author> [assembly: Opus.Core.DeclareBuilder("QtCreator", typeof(QtCreatorBuilder.QtCreatorBuilder))] // Automatically generated by Opus v0.20 namespace ...
Add instanceperrequest lifetime scope to all services
using System.Web.Mvc; using Autofac; using Autofac.Integration.Mvc; using Zk.Models; using Zk.Services; using Zk.Repositories; namespace Zk { public static class IocConfig { public static void RegisterDependencies() { var builder = new ContainerBuilder(); builder.Regist...
using System.Web.Mvc; using Autofac; using Autofac.Integration.Mvc; using Zk.Models; using Zk.Services; using Zk.Repositories; namespace Zk { public static class IocConfig { public static void RegisterDependencies() { var builder = new ContainerBuilder(); builder.Regist...
Fix incorrect assumption that a workspace is a Visual Studio workspace
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Composition; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.VisualStudi...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Composition; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.VisualStudi...
Fix for U4-10821, render alt text attribute from grid image editor, or empty string if null (for screen readers)
@model dynamic @using Umbraco.Web.Templates @if (Model.value != null) { var url = Model.value.image; if(Model.editor.config != null && Model.editor.config.size != null){ url += "?width=" + Model.editor.config.size.width; url += "&height=" + Model.editor.config.size.height; if(Model...
@model dynamic @using Umbraco.Web.Templates @if (Model.value != null) { var url = Model.value.image; if(Model.editor.config != null && Model.editor.config.size != null){ url += "?width=" + Model.editor.config.size.width; url += "&height=" + Model.editor.config.size.height; if(Model...
Handle content pages as well
using System; using Sancho.DOM.XamarinForms; using Sancho.XAMLParser; using TabletDesigner.Helpers; using Xamarin.Forms; namespace TabletDesigner { public interface ILogAccess { void Clear(); string Log { get; } } public partial class TabletDesignerPage : ContentPage { ILo...
using System; using Sancho.DOM.XamarinForms; using Sancho.XAMLParser; using TabletDesigner.Helpers; using Xamarin.Forms; namespace TabletDesigner { public interface ILogAccess { void Clear(); string Log { get; } } public partial class TabletDesignerPage : ContentPage { ILo...
Fix hoisting of null initializers
using System; using System.Collections.Generic; using ICSharpCode.Decompiler; using ICSharpCode.Decompiler.Ast.Transforms; using ICSharpCode.NRefactory.CSharp; namespace JSIL { public class DeclarationHoister : ContextTrackingVisitor<object> { public readonly BlockStatement Output; public Variable...
using System; using System.Collections.Generic; using ICSharpCode.Decompiler; using ICSharpCode.Decompiler.Ast.Transforms; using ICSharpCode.NRefactory.CSharp; namespace JSIL { public class DeclarationHoister : ContextTrackingVisitor<object> { public readonly BlockStatement Output; public Variable...
Fix codepath where the property is a value type but the weakreference has been collected.
using Avalonia.Data; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Avalonia.Data.Core { internal abstract class SettableNode : ExpressionNode { public bool SetTargetValue(object value, BindingPriority priority) { ...
using Avalonia.Data; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Avalonia.Data.Core { internal abstract class SettableNode : ExpressionNode { public bool SetTargetValue(object value, BindingPriority priority) { ...
Revert "fix(logging): 🐛 try yet another AppInsights config"
using System; using System.Threading.Tasks; using Microsoft.ApplicationInsights.Extensibility; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Serilog; namespace FilterLists.SharedKernel.Logging { public static class HostRunner ...
using System; using System.Threading.Tasks; using Microsoft.ApplicationInsights.Extensibility; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Serilog; namespace FilterLists.SharedKernel.Logging { public static class HostRunner { public static async Task TryRu...
Fix import tag to have correct namespace
using System; using System.Xml; namespace FluentNHibernate.Mapping { public class ImportPart : IMappingPart { private readonly Cache<string, string> attributes = new Cache<string, string>(); private readonly Type importType; public ImportPart(Type importType) { ...
using System; using System.Xml; namespace FluentNHibernate.Mapping { public class ImportPart : IMappingPart { private readonly Cache<string, string> attributes = new Cache<string, string>(); private readonly Type importType; public ImportPart(Type importType) { ...
Modify PropertyMetadata for correct overloading
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using Microsoft.Xaml.Behaviors; namespace Monitorian.Core.Views.Behaviors { public class FocusElementAction : TriggerAction<DependencyObject> { public UIElement Tar...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using Microsoft.Xaml.Behaviors; namespace Monitorian.Core.Views.Behaviors { public class FocusElementAction : TriggerAction<DependencyObject> { public UIElement Tar...
Disable UnityEvent workaround since it is broken in Full Inspector
#if !NO_UNITY using System; using UnityEngine; using UnityEngine.Events; namespace FullSerializer { partial class fsConverterRegistrar { public static Internal.Converters.UnityEvent_Converter Register_UnityEvent_Converter; } } namespace FullSerializer.Internal.Converters { // The standard FS refle...
#if !NO_UNITY using System; using UnityEngine; using UnityEngine.Events; namespace FullSerializer { partial class fsConverterRegistrar { // Disable the converter for the time being. Unity's JsonUtility API cannot be called from // within a C# ISerializationCallbackReceiver callback. // pub...
Include first & last names for recipients
using System.Collections.Generic; using Newtonsoft.Json; using SurveyMonkey.Enums; namespace SurveyMonkey.Containers { [JsonConverter(typeof(TolerantJsonConverter))] public class Recipient : IPageableContainer { public long? Id { get; set; } public long? SurveyId { get; set; } inte...
using System.Collections.Generic; using Newtonsoft.Json; using SurveyMonkey.Enums; namespace SurveyMonkey.Containers { [JsonConverter(typeof(TolerantJsonConverter))] public class Recipient : IPageableContainer { public long? Id { get; set; } public long? SurveyId { get; set; } inte...
Make brstm instead of dsp. Encode adpcm channels in parallel
using System; using System.Diagnostics; using System.IO; using DspAdpcm.Encode.Adpcm; using DspAdpcm.Encode.Adpcm.Formats; using DspAdpcm.Encode.Pcm; using DspAdpcm.Encode.Pcm.Formats; namespace DspAdpcm.Cli { public static class DspAdpcmCli { public static int Main(string[] args) { ...
using System; using System.Diagnostics; using System.IO; using DspAdpcm.Encode.Adpcm; using DspAdpcm.Encode.Adpcm.Formats; using DspAdpcm.Encode.Pcm; using DspAdpcm.Encode.Pcm.Formats; namespace DspAdpcm.Cli { public static class DspAdpcmCli { public static int Main(string[] args) { ...
Add raw message sending, requires xdotool
using System.Collections.Generic; using System.Linq; namespace SkypeSharp { /// <summary> /// Class representing a Skype CHAT object /// </summary> public class Chat : SkypeObject { /// <summary> /// List of users in this chat /// </summary> public IEnumerable<U...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace SkypeSharp { /// <summary> /// Class representing a Skype CHAT object /// </summary> public class Chat : SkypeObject { /// <summary> /// List of users in this chat ///...
Change the target to get working on build server
using System; namespace SeleniumExtension.SauceLabs { public class SauceDriverKeys { public static string SAUCELABS_USERNAME { get { var userName = Environment.GetEnvironmentVariable("SAUCELABS_USERNAME", EnvironmentVariableTarget.User); ...
using System; namespace SeleniumExtension.SauceLabs { public class SauceDriverKeys { public static string SAUCELABS_USERNAME { get { var userName = Environment.GetEnvironmentVariable("SAUCELABS_USERNAME"); if(string.IsNullOrEmpty(userNam...
Add clock Face and Window classes. Draw a line. Setting FG color is TODO.
using System; using Gtk; namespace gtksharp_clock { class MainClass { public static void Main(string[] args) { Application.Init(); MainWindow win = new MainWindow(); win.Show(); Application.Run(); } } }
using System; using Gtk; // http://www.mono-project.com/docs/gui/gtksharp/widgets/widget-colours/ namespace gtksharp_clock { class MainClass { public static void Main(string[] args) { Application.Init(); ClockWindow win = new ClockWindow (); win.Show(); Application.Run(); } } class ClockWindow...
Document and clean up the binding code
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RabidWarren.Collections.Generic { public static class Enumerable { public static Multimap<TKey, TElement> ToMultimap<TSource, TKey, TElement>( this IEnumerable<TSource> source, Func<...
// ----------------------------------------------------------------------- // <copyright file="Enumerable.cs" company="Ron Parker"> // Copyright 2014 Ron Parker // </copyright> // <summary> // Provides an extension method for converting IEnumerables to Multimaps. // </summary> // ------------------------------...
Remove semicolons from poll page
<!DOCTYPE html> <html ng-app="VoteOn-Poll"> <head> <title>Vote On</title> <meta name="viewport" content="initial-scale=1"> @Styles.Render("~/Bundles/StyleLib/AngularMaterial") @Styles.Render("~/Bundles/StyleLib/FontAwesome") @Styles.Render("~/Bundles/VotingStyle") </head> <body> <div layout=...
<!DOCTYPE html> <html ng-app="VoteOn-Poll"> <head> <title>Vote On</title> <meta name="viewport" content="initial-scale=1"> @Styles.Render("~/Bundles/StyleLib/AngularMaterial") @Styles.Render("~/Bundles/StyleLib/FontAwesome") @Styles.Render("~/Bundles/VotingStyle") </head> <body> <div layout=...
Fix taiko difficulty adjust scroll speed being shown with too low precision
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using osu.Game.Beatmaps; using osu.Game.Configuration; using osu.Game.Rulesets.Mods; namespace osu.Game.Rulesets.Taiko.Mods { public class TaikoMo...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using osu.Game.Beatmaps; using osu.Game.Configuration; using osu.Game.Rulesets.Mods; namespace osu.Game.Rulesets.Taiko.Mods { public class TaikoMo...
Add startup value for the slider
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Timing; using osu.Framework.Configuration; namespace osu.Game.Screens.Play.ReplaySettings { public class PlaybackSettings : ReplayGroup...
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Timing; using osu.Framework.Configuration; namespace osu.Game.Screens.Play.ReplaySettings { public class PlaybackSettings : ReplayGroup...
Change name of the property for the status transition to match the API too
using System; using Newtonsoft.Json; using Stripe.Infrastructure; namespace Stripe { public class StripeStatusTransitions : StripeEntity { [JsonConverter(typeof(StripeDateTimeConverter))] [JsonProperty("canceled")] public DateTime? Canceled { get; set; } [JsonConverter(typeof(...
using System; using Newtonsoft.Json; using Stripe.Infrastructure; namespace Stripe { public class StripeStatusTransitions : StripeEntity { [JsonConverter(typeof(StripeDateTimeConverter))] [JsonProperty("canceled")] public DateTime? Canceled { get; set; } [JsonConverter(typeof(...
Add new createInstance overloads to scriptbuilderfactory.cs to support scriptbuildersettings args
using System; using System.Collections.Generic; using System.Reflection; namespace Acklann.Daterpillar.TextTransformation { public class ScriptBuilderFactory { public ScriptBuilderFactory() { LoadAssemblyTypes(); } public IScriptBuilder CreateInstance(string name) ...
using System; using System.Collections.Generic; using System.Reflection; namespace Acklann.Daterpillar.TextTransformation { public class ScriptBuilderFactory { public ScriptBuilderFactory() { LoadAssemblyTypes(); } public IScriptBuilder CreateInstance(string name) ...
Fix EOI emails are not sent
using System.Threading.Tasks; using System.Web.Http; using CroquetAustralia.Domain.Features.TournamentEntry.Commands; using CroquetAustralia.Domain.Features.TournamentEntry.Events; using CroquetAustralia.Domain.Services.Queues; namespace CroquetAustralia.WebApi.Controllers { [RoutePrefix("tournament-entry...
using System; using System.Threading.Tasks; using System.Web.Http; using CroquetAustralia.Domain.Features.TournamentEntry; using CroquetAustralia.Domain.Features.TournamentEntry.Commands; using CroquetAustralia.Domain.Features.TournamentEntry.Events; using CroquetAustralia.Domain.Services.Queues; namespace Cr...
Add a root state type
using System.Xml.Serialization; namespace DevelopmentInProgress.DipState { public enum DipStateType { [XmlEnum("1")] Standard = 1, [XmlEnum("2")] Auto = 3 } }
using System.Xml.Serialization; namespace DevelopmentInProgress.DipState { public enum DipStateType { [XmlEnum("1")] Standard = 1, [XmlEnum("2")] Auto = 2, [XmlEnum("3")] Root = 3 } }
Fix broken tests getting items from the valid root
namespace Sitecore.FakeDb.Serialization.Tests.Deserialize { using System.Linq; using Xunit; [Trait("Deserialize", "Deserializing a tree of items")] public class DeserializeTree : DeserializeTestBase { public DeserializeTree() { this.Db.Add(new DsDbItem(SerializationId.SampleTemplateFolder, tru...
namespace Sitecore.FakeDb.Serialization.Tests.Deserialize { using System.Linq; using Xunit; [Trait("Deserialize", "Deserializing a tree of items")] public class DeserializeTree : DeserializeTestBase { public DeserializeTree() { this.Db.Add(new DsDbItem(SerializationId.SampleTemplateFolder, tru...
Change the plugin library load path
using PluginContracts; using System; using System.Collections.Generic; using Xunit; namespace PluginLoader.Tests { public class Plugins_Tests { [Fact] public void PluginsFoundFromLibsFolder() { // Arrange var path = @"..\..\..\..\LAN\bin\Debug\netstandard1.3"; ...
using PluginContracts; using System; using System.Collections.Generic; using Xunit; namespace PluginLoader.Tests { public class Plugins_Tests { [Fact] public void PluginsFoundFromLibsFolder() { // Arrange var path = @"..\..\..\..\Libs"; // Act ...
Remove trailing slash from base URL
using System.Web; using System.Web.Mvc; namespace SimpleMvcSitemap { class BaseUrlProvider : IBaseUrlProvider { public string GetBaseUrl(HttpContextBase httpContext) { //http://stackoverflow.com/a/1288383/205859 HttpRequestBase request = httpContext.Request; ...
using System.Web; using System.Web.Mvc; namespace SimpleMvcSitemap { class BaseUrlProvider : IBaseUrlProvider { public string GetBaseUrl(HttpContextBase httpContext) { //http://stackoverflow.com/a/1288383/205859 HttpRequestBase request = httpContext.Request; ...
Test Fetcher.Login POSTs with correct values
using System.Collections.Specialized; using System.Text; using Moq; using NUnit.Framework; namespace LastPass.Test { [TestFixture] class FetcherTest { [Test] public void Login() { var webClient = new Mock<IWebClient>(); webClient .Setup(x => x...
using System.Collections.Specialized; using System.Linq; using System.Text; using Moq; using NUnit.Framework; namespace LastPass.Test { [TestFixture] class FetcherTest { [Test] public void Login() { const string url = "https://lastpass.com/login.php"; const s...
Use range check for floating point
using System; using NUnit.Framework; using FluentAssertions; using SketchSolve; using System.Linq; namespace SketchSolve.Spec { [TestFixture()] public class Solver { [Test()] public void HorizontalConstraintShouldWork () { var parameters = new Parameter[]{ new Parameter(0), new Parameter(1), n...
using System; using NUnit.Framework; using FluentAssertions; using SketchSolve; using System.Linq; namespace SketchSolve.Spec { [TestFixture()] public class Solver { [Test()] public void HorizontalConstraintShouldWork () { var parameters = new Parameter[]{ new Parameter(0), new Parameter(1), n...
Add reference to source of debug lookup method
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Diagnostics; using System.Linq; using System.Reflection; namespace osu.Framework.Development { public static class DebugUtils ...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Diagnostics; using System.Linq; using System.Reflection; namespace osu.Framework.Development { public static class DebugUtils ...
Use string in stead of HashSet - much faster
using CommonMarkSharp.Blocks; using CommonMarkSharp.Inlines; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CommonMarkSharp.InlineParsers { public class AnyParser : IParser<InlineString> { public AnyParser(strin...
using CommonMarkSharp.Blocks; using CommonMarkSharp.Inlines; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace CommonMarkSharp.InlineParsers { public class AnyParser : IParser<InlineString>...
Add settings buttons to allow temporarily blocking realm access
// 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.Localisation; using osu.Framework.Platform; using osu.Game.Database; using osu.Game.Loc...
// 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; using System.Threading.Tasks; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Localisation; using osu.Framework...
Add ignore_case and expand properties to synonym filter
using Newtonsoft.Json; using System.Collections.Generic; namespace Nest { public class SynonymTokenFilter : TokenFilterSettings { public SynonymTokenFilter() : base("synonym") { } [JsonProperty("synonyms_path", NullValueHandling = NullValueHandling.Ignore)] ...
using Newtonsoft.Json; using System.Collections.Generic; namespace Nest { public class SynonymTokenFilter : TokenFilterSettings { public SynonymTokenFilter() : base("synonym") { } [JsonProperty("synonyms_path", NullValueHandling = NullValueHandling.Ignore)] ...
Fix missing object reference error.
/* Copyright (c) 2016 Kevin Fischer * * This Source Code Form is subject to the terms of the MIT License. * If a copy of the license was not distributed with this file, * You can obtain one at https://opensource.org/licenses/MIT. */ using UnityEngine; using System.Collections.Generic; using System.Collections.Obj...
/* Copyright (c) 2016 Kevin Fischer * * This Source Code Form is subject to the terms of the MIT License. * If a copy of the license was not distributed with this file, * You can obtain one at https://opensource.org/licenses/MIT. */ using UnityEngine; using System.Collections.Generic; using System.Collections.Obj...
Set IsBusy immediately, so there is no chance to run the command more than once.
using AvalonStudio.Extensibility; using ReactiveUI; using Splat; using System; using System.Linq; using System.Reactive; using System.Reactive.Linq; using System.Threading; using WalletWasabi.Gui.Helpers; using WalletWasabi.Logging; using WalletWasabi.Wallets; namespace WalletWasabi.Gui.Controls.WalletExplorer { publ...
using AvalonStudio.Extensibility; using ReactiveUI; using Splat; using System; using System.Linq; using System.Reactive; using System.Reactive.Linq; using System.Threading; using WalletWasabi.Gui.Helpers; using WalletWasabi.Logging; using WalletWasabi.Wallets; namespace WalletWasabi.Gui.Controls.WalletExplorer { publ...
Add support for creating a bounded channel in helper
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Reactive.Linq; using System.Threading.Channels; namespace SignalRSamples { public static class ObservableExtensions ...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Reactive.Linq; using System.Threading.Channels; namespace SignalRSamples { public static class ObservableExtensions ...
Add scheduling of events to occur later on the timeline
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Totem.Runtime.Timeline { /// <summary> /// Describes a series of domain events /// </summary> public interface ITimeline : IFluent { void Append(TimelinePosition cause, IReadOnlyList<Event> events); Ta...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Totem.Runtime.Timeline { /// <summary> /// Describes a series of domain events /// </summary> public interface ITimeline : IFluent { void Append(TimelinePosition cause, Many<Event> events); void Append...
Enable JS in the browser so the user can authorize the app
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Webkit; using Android.Widget; using Repository.Internal; using static Repository.Internal.Verify; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Webkit; using Android.Widget; using Repository.Internal; using static Repository.Internal.Verify; ...
Update Setting Values for OAuth2 setting
using System; using UnityEngine; namespace CloudBread.OAuth { public class OAuth2Setting : ScriptableObject { static bool _useFacebook; static public string FaceBookRedirectAddress; static bool _useGooglePlay; public static string GooglePlayRedirectAddress; static bool _useKaKao; public static...
using System; using System.Collections.Generic; using System.IO; using UnityEngine; using UnityEditor; namespace CloudBread.OAuth { public class OAuth2Setting : ScriptableObject { private const string SettingAssetName = "CBOAuth2Setting"; private const string SettingsPath = "CloudBread/Resources"; private con...
Fix invalid JSON caused by localized decimal mark
using System; using Newtonsoft.Json; namespace Glimpse.Internal { public class TimeSpanConverter : JsonConverter { public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { var result = 0.0; var convertedNullable = value a...
using System; using System.Globalization; using Newtonsoft.Json; namespace Glimpse.Internal { public class TimeSpanConverter : JsonConverter { public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { var result = 0.0; var...
Add members property to collection
using Newtonsoft.Json; namespace Digirati.IIIF.Model.Types { public class Collection : IIIFPresentationBase { [JsonProperty(Order = 100, PropertyName = "collections")] public Collection[] Collections { get; set; } [JsonProperty(Order = 101, PropertyName = "manifests")] public ...
using Newtonsoft.Json; namespace Digirati.IIIF.Model.Types { public class Collection : IIIFPresentationBase { [JsonProperty(Order = 100, PropertyName = "collections")] public Collection[] Collections { get; set; } [JsonProperty(Order = 101, PropertyName = "manifests")] public ...
Remove unnecessary using's, add comment
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NutPackerLib { public class OriginalNameAttribute : Attribute { public string Name { get; private set; } public OriginalNameAttribute(string name) { ...
using System; namespace NutPackerLib { /// <summary> /// Original name of something. /// </summary> public class OriginalNameAttribute : Attribute { public string Name { get; private set; } public OriginalNameAttribute(string name) { Name = name; } ...
Increase project version number to 0.14.0
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Yevgeniy Shunevych")] [assembly: AssemblyProduct("Atata Framework")] [assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2017")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: Assembly...
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Yevgeniy Shunevych")] [assembly: AssemblyProduct("Atata Framework")] [assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2017")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: Assembly...
Add spaces into displayed Palette Insight Agent service name
using Topshelf; namespace PaletteInsightAgentService { /// <summary> /// Service layer that wraps the PaletteInsightAgentLib. Topshelf keeps this pretty thin for us. /// </summary> internal class PaletteInsightAgentService { // Service name & description. private const string Serv...
using Topshelf; namespace PaletteInsightAgentService { /// <summary> /// Service layer that wraps the PaletteInsightAgentLib. Topshelf keeps this pretty thin for us. /// </summary> internal class PaletteInsightAgentService { // Service name & description. private const string Serv...
Fix for buildtypeid case mismatch
using System.Linq; using System.Text; using TeamCitySharp; using TeamCitySharp.Locators; namespace DTMF.Logic { public class TeamCity { public static bool IsRunning(StringBuilder sb, string appName) { //remove prefix and suffixes from app names so same app can go to multiple places...
using System.Linq; using System.Text; using TeamCitySharp; using TeamCitySharp.Locators; namespace DTMF.Logic { public class TeamCity { public static bool IsRunning(StringBuilder sb, string appName) { //remove prefix and suffixes from app names so same app can go to multiple places...
Add `AssemblyCompany`, `AssemblyCopyright` and `AssemblyProduct` attributes to the assembly.
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; [assembly: AssemblyMetadata("Serviceable", "True")] [assembly: ...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; [assembly: AssemblyMetadata("Serviceable", "True")] [assembly: ...
Replace Xna's Clamp method with our own.
using System; namespace ChamberLib { public static class MathHelper { public static int RoundToInt(this float x) { return (int)Math.Round(x); } public static float ToRadians(this float degrees) { return degrees * 0.01745329251994f; // pi / 180 ...
using System; namespace ChamberLib { public static class MathHelper { public static int RoundToInt(this float x) { return (int)Math.Round(x); } public static float ToRadians(this float degrees) { return degrees * 0.01745329251994f; // pi / 180 ...
Fix Zap mod dedicated server.
//------------------------------------------------------------------------------ // Revenge Of The Cats: Ethernet // Copyright (C) 2009, mEthLab Interactive //------------------------------------------------------------------------------ //----------------------------------------------------------------------------- /...
//------------------------------------------------------------------------------ // Revenge Of The Cats: Ethernet // Copyright (C) 2009, mEthLab Interactive //------------------------------------------------------------------------------ //----------------------------------------------------------------------------- /...
Use DomainCustomization rather than AutoMoqCustomization directly
using Ploeh.AutoFixture; using Ploeh.AutoFixture.AutoMoq; using Ploeh.AutoFixture.Xunit; namespace AppHarbor.Tests { public class AutoCommandDataAttribute : AutoDataAttribute { public AutoCommandDataAttribute() : base(new Fixture().Customize(new AutoMoqCustomization())) { } } }
using Ploeh.AutoFixture; using Ploeh.AutoFixture.AutoMoq; using Ploeh.AutoFixture.Xunit; namespace AppHarbor.Tests { public class AutoCommandDataAttribute : AutoDataAttribute { public AutoCommandDataAttribute() : base(new Fixture().Customize(new DomainCustomization())) { } } }
Fix SliderTest.SlideHorizontally on Win 10
namespace Gu.Wpf.UiAutomation { using System.Windows.Automation; public class Thumb : UiElement { public Thumb(AutomationElement automationElement) : base(automationElement) { } public TransformPattern TransformPattern => this.AutomationElement.TransformPattern(...
namespace Gu.Wpf.UiAutomation { using System.Windows; using System.Windows.Automation; public class Thumb : UiElement { private const int DragSpeed = 500; public Thumb(AutomationElement automationElement) : base(automationElement) { } public Transfo...
Use less confusing placeholder icon for YAML
using JetBrains.ProjectModel; using JetBrains.ReSharper.Plugins.Yaml.ProjectModel; using JetBrains.ReSharper.Plugins.Yaml.Settings; using JetBrains.ReSharper.Psi; using JetBrains.ReSharper.Psi.CSharp.Resources; using JetBrains.ReSharper.Psi.Parsing; using JetBrains.Text; using JetBrains.UI.Icons; namespace JetBrains....
using JetBrains.Application.UI.Icons.Special.ThemedIcons; using JetBrains.ProjectModel; using JetBrains.ReSharper.Plugins.Yaml.ProjectModel; using JetBrains.ReSharper.Plugins.Yaml.Settings; using JetBrains.ReSharper.Psi; using JetBrains.ReSharper.Psi.Parsing; using JetBrains.Text; using JetBrains.UI.Icons; namespace ...
Add registration options for definition request
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol; namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer { public class Defi...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol; namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer { public class Defi...
Fix having the wrong Index name in migration CuratedFeedPackageUniqueness.Down()
namespace NuGetGallery.Migrations { using System.Data.Entity.Migrations; public partial class CuratedFeedPackageUniqueness : DbMigration { public override void Up() { // ADD uniqueness constraint - as an Index, since it seems reasonable to look up curated package entries by ...
namespace NuGetGallery.Migrations { using System.Data.Entity.Migrations; public partial class CuratedFeedPackageUniqueness : DbMigration { public override void Up() { // ADD uniqueness constraint - as an Index, since it seems reasonable to look up curated package entries by ...
Add an implementation IEqualityComparer<Type> to ensure the .Distinct call in the Locate() method works as expected.
using System; using System.Linq; using System.Reflection; using Mongo.Migration.Extensions; using Mongo.Migration.Migrations.Adapters; namespace Mongo.Migration.Migrations.Locators { internal class TypeMigrationDependencyLocator<TMigrationType> : MigrationLocator<TMigrationType> where TMigrationType: clas...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Mongo.Migration.Extensions; using Mongo.Migration.Migrations.Adapters; namespace Mongo.Migration.Migrations.Locators { internal class TypeMigrationDependencyLocator<TMigrationType> : MigrationLocator<TMigrationType> ...
Fix bug where prop was not serialized
using System; using OpenStardriveServer.Domain.Systems.Standard; namespace OpenStardriveServer.Domain.Systems.Propulsion.Engines; public record EnginesState : StandardSystemBaseState { public int CurrentSpeed { get; init; } public EngineSpeedConfig SpeedConfig { get; init; } public int CurrentHeat { get; ...
using System; using OpenStardriveServer.Domain.Systems.Standard; namespace OpenStardriveServer.Domain.Systems.Propulsion.Engines; public record EnginesState : StandardSystemBaseState { public int CurrentSpeed { get; init; } public EngineSpeedConfig SpeedConfig { get; init; } public int CurrentHeat { get; ...
Add overloads to exception to take in the Reason
using System; namespace RapidCore.Locking { public class DistributedAppLockException : Exception { public DistributedAppLockException() { } public DistributedAppLockException(string message) : base(message) { } public DistributedAppLockExcep...
using System; namespace RapidCore.Locking { public class DistributedAppLockException : Exception { public DistributedAppLockException() { } public DistributedAppLockException(string message) : base(message) { } public DistributedAppLockExcep...
Use floats across the camera calculations /2 > 0.5f
using UnityEngine; namespace HoloToolkit.Unity { public static class CameraExtensions { /// <summary> /// Get the horizontal FOV from the stereo camera /// </summary> /// <returns></returns> public static float GetHorizontalFieldOfViewRadians(this Camera camera) ...
using UnityEngine; namespace HoloToolkit.Unity { public static class CameraExtensions { /// <summary> /// Get the horizontal FOV from the stereo camera /// </summary> /// <returns></returns> public static float GetHorizontalFieldOfViewRadians(this Camera camera) ...
Fix Dictionary type to be more useful
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace compiler.middleend.ir { class ParseResult { public Operand Operand { get; set; } public List<Instruction> Instructions { get; set; } public Dictionary<SsaVaria...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace compiler.middleend.ir { class ParseResult { public Operand Operand { get; set; } public List<Instruction> Instructions { get; set; } public Dictionary<int, Ssa...
Fix random power use when cooldown
using UnityEngine; using System.Collections; using System.Collections.Generic; public class PowerRandom : BaseSpecialPower { [SerializeField] private List<BaseSpecialPower> powers; private BaseSpecialPower activePower = null; protected override void Start() { base.Start(); activePower = ...
using UnityEngine; using System.Collections; using System.Collections.Generic; public class PowerRandom : BaseSpecialPower { [SerializeField] private List<BaseSpecialPower> powers; private BaseSpecialPower activePower = null; protected override void Start() { base.Start(); activePower = ...
Improve ToString when Id is null
using System.Collections.Generic; using System.Xml.Linq; using JetBrains.Annotations; namespace Dasher.Schemata { public interface IWriteSchema { /// <summary> /// Creates a deep copy of this schema within <paramref name="collection"/>. /// </summary> /// <param name="collection...
using System.Collections.Generic; using System.Xml.Linq; using JetBrains.Annotations; namespace Dasher.Schemata { public interface IWriteSchema { /// <summary> /// Creates a deep copy of this schema within <paramref name="collection"/>. /// </summary> /// <param name="collection...
Support full range of comparison operators instead of IndexOf
namespace Sitecore.SharedSource.MobileDeviceDetector.Rules.Conditions { using System; using System.Web; using Sitecore.Diagnostics; using Sitecore.Rules; using Sitecore.Rules.Conditions; /// <summary> /// UserAgentCondition /// </summary> /// <typeparam name="T"></typeparam> public class UserAgent...
namespace Sitecore.SharedSource.MobileDeviceDetector.Rules.Conditions { using System; using System.Web; using Sitecore.Diagnostics; using Sitecore.Rules; using Sitecore.Rules.Conditions; /// <summary> /// UserAgentCondition /// </summary> /// <typeparam name="T"></typeparam> public class UserAgent...
Revert "Rewrite folder write permission check to hopefully make it more reliable"
using System.Diagnostics; using System.IO; using System.Security.AccessControl; using System.Security.Principal; namespace TweetDck.Core.Utils{ static class WindowsUtils{ public static bool CheckFolderPermission(string path, FileSystemRights right){ try{ AuthorizationRuleCollec...
using System.Diagnostics; using System.IO; using System.Linq; using System.Security.AccessControl; using System.Security.Principal; namespace TweetDck.Core.Utils{ static class WindowsUtils{ public static bool CheckFolderPermission(string path, FileSystemRights right){ try{ Auth...
Fix typo in OnboardingRead and add SettlementsRead
namespace Mollie.Api.Models.Connect { public static class AppPermissions { public const string PaymentsRead = "payments.read"; public const string PaymentsWrite = "payments.write"; public const string RefundsRead = "refunds.read"; public const string RefundsWrite = "refunds.write"; ...
namespace Mollie.Api.Models.Connect { public static class AppPermissions { public const string PaymentsRead = "payments.read"; public const string PaymentsWrite = "payments.write"; public const string RefundsRead = "refunds.read"; public const string RefundsWrite = "refunds.write"; ...
Add warning message to ensure user is running the Azure Emulator
namespace Endjin.Cancelable.Demo { #region Using Directives using System; using System.Threading; using System.Threading.Tasks; using Endjin.Contracts; using Endjin.Core.Composition; using Endjin.Core.Container; #endregion public class Program { public static void Ma...
namespace Endjin.Cancelable.Demo { #region Using Directives using System; using System.Threading; using System.Threading.Tasks; using Endjin.Contracts; using Endjin.Core.Composition; using Endjin.Core.Container; #endregion public class Program { public static void Ma...
Add input param. logger and get test string from cmd line
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Diagnostics; using System.IO; using System.Net.Mail; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions; using Microsof...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Collections.Generic; using System.IO; using Microsoft.Azure.WebJobs; using OutgoingHttpRequestWebJobsExtension; namespace ExtensionsSample { public s...
Tweak skybox rotation direction and speed
/* ** Project ShiftDrive ** (C) Mika Molenkamp, 2016. */ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace ShiftDrive { /// <summary> /// Contains static utilities to render a skybox. /// </summary> internal static class Skybox { private static float rotation;...
/* ** Project ShiftDrive ** (C) Mika Molenkamp, 2016. */ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace ShiftDrive { /// <summary> /// Contains static utilities to render a skybox. /// </summary> internal static class Skybox { private static float rotation;...
Update nullable annotations in Experiments folder
// 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; using System.Composition; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; ...
// 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. #nullable enable using System; using System.Composition; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAn...
Throw a CommandException if no hostname is specified
using System; namespace AppHarbor.Commands { public class AddHostnameCommand : ICommand { private readonly IApplicationConfiguration _applicationConfiguration; private readonly IAppHarborClient _appharborClient; public AddHostnameCommand(IApplicationConfiguration applicationConfiguration, IAppHarborClient ap...
using System; namespace AppHarbor.Commands { public class AddHostnameCommand : ICommand { private readonly IApplicationConfiguration _applicationConfiguration; private readonly IAppHarborClient _appharborClient; public AddHostnameCommand(IApplicationConfiguration applicationConfiguration, IAppHarborClient ap...
Fix for wrong keys when using python binding
namespace Winium.Desktop.Driver.CommandExecutors { internal class SendKeysToElementExecutor : CommandExecutorBase { #region Methods protected override string DoImpl() { var registeredKey = this.ExecutedCommand.Parameters["ID"].ToString(); var text = this.Execute...
namespace Winium.Desktop.Driver.CommandExecutors { internal class SendKeysToElementExecutor : CommandExecutorBase { #region Methods protected override string DoImpl() { var registeredKey = this.ExecutedCommand.Parameters["ID"].ToString(); var text = string.Join(...
Update RobotName name test to be more restrictive
using Xunit; public class RobotNameTest { private readonly Robot robot = new Robot(); [Fact] public void Robot_has_a_name() { Assert.Matches(@"[A-Z]{2}\d{3}", robot.Name); } [Fact(Skip = "Remove to run test")] public void Name_is_the_same_each_time() { Assert.Equal(rob...
using Xunit; public class RobotNameTest { private readonly Robot robot = new Robot(); [Fact] public void Robot_has_a_name() { Assert.Matches(@"^[A-Z]{2}\d{3}$", robot.Name); } [Fact(Skip = "Remove to run test")] public void Name_is_the_same_each_time() { Assert.Equal(r...
Fix bug in album gain calculation.
using System; using System.Linq; namespace NReplayGain { /// <summary> /// Contains ReplayGain data for an album. /// </summary> public class AlbumGain { private GainData albumData; public AlbumGain() { this.albumData = new GainData(); } /// <s...
using System; using System.Linq; namespace NReplayGain { /// <summary> /// Contains ReplayGain data for an album. /// </summary> public class AlbumGain { private GainData albumData; public AlbumGain() { this.albumData = new GainData(); } /// <s...
Fix route matching for typed-in urls
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Web; using System.Web.Routing; namespace wwwplatform.Extensions { public class SitePageRouteConstraint : IRouteConstraint { public bool Match(HttpCo...
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Web; using System.Web.Routing; namespace wwwplatform.Extensions { public class SitePageRouteConstraint : IRouteConstraint { public bool Match(HttpCo...
Add a constructor that only requires messages.
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; namespace Qowaiv.ComponentModel { /// <summary>Represents a result of a validation, executed command, etcetera.</summary> public class Result<T> : Result { /// <summary>Creates a new ins...
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; namespace Qowaiv.ComponentModel { /// <summary>Represents a result of a validation, executed command, etcetera.</summary> public class Result<T> : Result { /// <summary>Creates a new instance of a <se...
Update break colour to not look like kiai time
// 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.Game.Beatmaps.Timing; using osu.Game.Graphics; using osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations; namespa...
// 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.Game.Beatmaps.Timing; using osu.Game.Graphics; using osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations; namespa...
Remove no longer necessary comment
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System.Collections.Generic; namespace osu.Framework.Graphics.Shaders { /// <summary> /// A mapping of a global uniform to many shaders which ne...
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System.Collections.Generic; namespace osu.Framework.Graphics.Shaders { /// <summary> /// A mapping of a global uniform to many shaders which ne...
Document a promise to reintroduce the DocumentText get
// Copyright (c) 2014 SIL International // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System; using System.Windows.Forms; namespace Palaso.UI.WindowsForms.HtmlBrowser { public interface IWebBrowser { bool CanGoBack { get; } bool CanGoForward { get; } string Docu...
// Copyright (c) 2014 SIL International // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System; using System.Windows.Forms; namespace Palaso.UI.WindowsForms.HtmlBrowser { public interface IWebBrowser { bool CanGoBack { get; } bool CanGoForward { get; } /// <summar...
Test coverage for viewing a simple type member conversion in a mapping plan
namespace AgileObjects.AgileMapper.UnitTests { using System.Collections.Generic; using Shouldly; using TestClasses; using Xunit; public class WhenViewingMappingPlans { [Fact] public void ShouldIncludeASimpleTypeMemberMapping() { var plan = Mapper ...
namespace AgileObjects.AgileMapper.UnitTests { using System; using System.Collections.Generic; using Shouldly; using TestClasses; using Xunit; public class WhenViewingMappingPlans { [Fact] public void ShouldIncludeASimpleTypeMemberMapping() { var plan = ...
Refactor to make steps of protocol clearer
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...
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 RandBytes1-way /// function method for committing bits /// </summary> pu...
Implement IParser on method syntax builder.
using System.Dynamic; using BobTheBuilder.ArgumentStore; namespace BobTheBuilder.Syntax { public class DynamicBuilder<T> : DynamicBuilderBase<T> where T: class { public DynamicBuilder(IArgumentStore argumentStore) : base(argumentStore) { } public override bool InvokeBuilderMethod(InvokeMember...
using System.Dynamic; using BobTheBuilder.ArgumentStore; namespace BobTheBuilder.Syntax { public class DynamicBuilder<T> : DynamicBuilderBase<T>, IParser where T: class { public DynamicBuilder(IArgumentStore argumentStore) : base(argumentStore) { } public override bool InvokeBuilderMethod(Inv...
Make send try policy more aggressive
using System; using Abc.Zebus.Util; namespace Abc.Zebus.Transport { public class ZmqSocketOptions : IZmqSocketOptions { public ZmqSocketOptions() { ReadTimeout = 300.Milliseconds(); SendHighWaterMark = 20000; SendTimeout = 1000.Milliseconds(); Se...
using System; using Abc.Zebus.Util; namespace Abc.Zebus.Transport { public class ZmqSocketOptions : IZmqSocketOptions { public ZmqSocketOptions() { ReadTimeout = 300.Milliseconds(); SendHighWaterMark = 20000; SendTimeout = 100.Milliseconds(); Sen...
Fix popups for Google & Apple sign-in
using CefSharp; using CefSharp.Handler; using TweetDuck.Controls; using TweetDuck.Utils; namespace TweetDuck.Browser.Handling.General { sealed class CustomLifeSpanHandler : LifeSpanHandler { private static bool IsPopupAllowed(string url) { return url.StartsWith("https://twitter.com/teams/authorize?"); } pu...
using System; using CefSharp; using CefSharp.Handler; using TweetDuck.Controls; using TweetDuck.Utils; namespace TweetDuck.Browser.Handling.General { sealed class CustomLifeSpanHandler : LifeSpanHandler { private static bool IsPopupAllowed(string url) { return url.StartsWith("https://twitter.com/teams/authorize...
Remove use of obsolete property.
using System; using Faithlife.Build; internal static class Build { public static int Main(string[] args) => BuildRunner.Execute(args, build => { build.AddDotNetTargets( new DotNetBuildSettings { NuGetApiKey = Environment.GetEnvironmentVariable("NUGET_API_KEY"), DocsSettings = new DotNetDocsSettings ...
using System; using Faithlife.Build; internal static class Build { public static int Main(string[] args) => BuildRunner.Execute(args, build => { build.AddDotNetTargets( new DotNetBuildSettings { NuGetApiKey = Environment.GetEnvironmentVariable("NUGET_API_KEY"), DocsSettings = new DotNetDocsSettings ...
Set auto-incrementing file version, starting with 0.1, since we're at alpha stage
using System.Resources; 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 assembl...
using System.Resources; 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 assembl...
Fix fault with subcommand server attribute
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using FreecraftCore.Serializer; using JetBrains.Annotations; namespace Booma.Proxy { /// <summary> /// Marks the 0x60 command server payload with the associated operation ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using FreecraftCore.Serializer; using JetBrains.Annotations; namespace Booma.Proxy { /// <summary> /// Marks the 0x60 command server payload with the associated operation ...
Use full path to source folder
using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Xml.Linq; using Microsoft.Web.Deployment; namespace WAWSDeploy { public class WebDeployHelper { public DeploymentChangeSummary DeployContentToOneSite(string contentPath, string publishSettingsFile) { ...
using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Xml.Linq; using Microsoft.Web.Deployment; namespace WAWSDeploy { public class WebDeployHelper { public DeploymentChangeSummary DeployContentToOneSite(string contentPath, string publishSettingsFile) { ...
Allow access to standalone queue storage
using System; using System.IO; using System.Linq; namespace LightBlue.Standalone { public class StandaloneAzureStorage : IAzureStorage { public const string DevelopmentAccountName = "dev"; private readonly string _storageAccountDirectory; public StandaloneAzureStorage(string connecti...
using System; using System.IO; using System.Linq; namespace LightBlue.Standalone { public class StandaloneAzureStorage : IAzureStorage { public const string DevelopmentAccountName = "dev"; private readonly string _storageAccountDirectory; public StandaloneAzureStorage(string connecti...
Add failing test for get paused trigger groups
using System; using Quartz.Simpl; using Quartz.Spi; namespace Quartz.DynamoDB.Tests { public class TriggerGroupGetTests { IJobStore _sut; public TriggerGroupGetTests() { _sut = new JobStore(); var signaler = new Quartz.DynamoDB.Tests.Integration.RamJobStoreTest...
using System; using Quartz.Simpl; using Quartz.Spi; using Xunit; namespace Quartz.DynamoDB.Tests { public class TriggerGroupGetTests { IJobStore _sut; public TriggerGroupGetTests() { _sut = new JobStore(); var signaler = new Quartz.DynamoDB.Tests.Integration.Ra...
Hide the form in the taskbar
using System; using System.Drawing; using System.Windows.Forms; namespace vuwall_motion { public partial class TransparentForm : Form { public TransparentForm() { InitializeComponent(); DoubleBuffered = true; } private void TransparentForm_Load(object sender, Event...
using System; using System.Drawing; using System.Windows.Forms; namespace vuwall_motion { public partial class TransparentForm : Form { public TransparentForm() { InitializeComponent(); DoubleBuffered = true; ShowInTaskbar = false; } private void Transp...
Add "+" to attributes to fetch since ApacheDS doesn't return all on * and AD doesn't return anything on +
namespace Novell.Directory.Ldap { /// <summary> /// Extension Methods for <see cref="ILdapConnection"/> to /// avoid bloating that interface. /// </summary> public static class LdapConnectionExtensionMethods { /// <summary> /// Get some common Attributes from the Root DSE. ...
namespace Novell.Directory.Ldap { /// <summary> /// Extension Methods for <see cref="ILdapConnection"/> to /// avoid bloating that interface. /// </summary> public static class LdapConnectionExtensionMethods { /// <summary> /// Get some common Attributes from the Root DSE. ...
Update the 'name' field description
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Eco { /// <summary> /// Eco configuration library supports string varibales. /// You can enable variables in your configuration file by adding 'public variable[] variables;' /...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Eco { /// <summary> /// Eco configuration library supports string varibales. /// You can enable variables in your configuration file by adding 'public variable[] variables;' /...
Deal with case of removing a Subscription that has been previously removed (06624d)
using System; using System.Collections.Generic; using System.Linq; namespace Adaptive.Aeron { internal class ActiveSubscriptions : IDisposable { private readonly Dictionary<int, List<Subscription>> _subscriptionsByStreamIdMap = new Dictionary<int, List<Subscription>>(); public void ForEach(in...
using System; using System.Collections.Generic; using System.Linq; namespace Adaptive.Aeron { internal class ActiveSubscriptions : IDisposable { private readonly Dictionary<int, List<Subscription>> _subscriptionsByStreamIdMap = new Dictionary<int, List<Subscription>>(); public void ForEach(in...