Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Add xmldoc to mem layout attributes.
using System; namespace AsmResolver.DotNet.Memory { [Flags] public enum MemoryLayoutAttributes { Is32Bit = 0b0, Is64Bit = 0b1, BitnessMask = 0b1, IsPlatformDependent = 0b10, } }
using System; namespace AsmResolver.DotNet.Memory { /// <summary> /// Defines members for all possible attributes that can be assigned to a <see cref="TypeMemoryLayout"/> instance. /// </summary> [Flags] public enum MemoryLayoutAttributes { /// <summary> /// Indicates the layout...
Test Server-side function called in transaction fails
using System; using NUnit.Framework; namespace Business.Core.Test { [TestFixture] public class TestDBFunctions { [Test] public void Book() { var profile = new Profile.Profile(); var database = new Fake.Database(profile); database.Connect(); var bookName = "Sales"; float bookAmount = 111.11F; ...
using System; using NUnit.Framework; namespace Business.Core.Test { [TestFixture] public class TestDBFunctions { [Test] public void Book() { var profile = new Profile.Profile(); var database = new Fake.Database(profile); database.Connect(); var bookName = "Sales"; float bookAmount = 111.11F; ...
Comment out game logic and replace table code
using System; namespace Hangman { public class Hangman { public static void Main(string[] args) { char key = Console.ReadKey(true).KeyChar; var game = new Game("HANG THE MAN"); bool wasCorrect = game.GuessLetter(key); Console.WriteLine(wasCorrect.ToString()); var output = game.Sho...
using System; namespace Hangman { public class Hangman { public static void Main(string[] args) { // char key = Console.ReadKey(true).KeyChar; // var game = new Game("HANG THE MAN"); // bool wasCorrect = game.GuessLetter(key); // Console.WriteLine(wasCorrect.ToString()); // var ou...
Exclude files that can not be accessed
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace FileReplacer { public static class FileHelper { public static readonly Encoding UTF8N = new UTF8Encoding(); public static void ReplaceContent(FileInfo file, string oldV...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace FileReplacer { public static class FileHelper { public static readonly Encoding UTF8N = new UTF8Encoding(); public static void ReplaceContent(FileInfo file, string oldV...
Add caching option when downloading package.
namespace NuPack { using System; using System.IO; using System.Net; using System.Net.Cache; // REVIEW: This class isn't super clean. Maybe this object should be passed around instead // of being static public static class HttpWebRequestor { [System.Diagnostics.CodeAnalysis...
namespace NuPack { using System; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Net; using System.Net.Cache; // REVIEW: This class isn't super clean. Maybe this object should be passed around instead // of being static public static class HttpWebRequestor...
Add map from view model to db model.
namespace CountryFood.Web.Infrastructure.Mappings { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using AutoMapper; public class AutoMapperConfig { private Assembly assembly; public AutoMapperConfig(Assembly assembly) ...
namespace CountryFood.Web.Infrastructure.Mappings { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using AutoMapper; public class AutoMapperConfig { private Assembly assembly; public AutoMapperConfig(Assembly assembly) ...
Rename unit test function to be more explicit on its purpose.
using System.IO; using System.Text; using System.Threading.Tasks; using Shouldly; using Xunit; namespace MediatR.Tests { public class NotificationHandlerTests { public class Ping : INotification { public string Message { get; set; } } public class PongChildHandler :...
using System.IO; using System.Text; using System.Threading.Tasks; using Shouldly; using Xunit; namespace MediatR.Tests { public class NotificationHandlerTests { public class Ping : INotification { public string Message { get; set; } } public class PongChildHandler :...
Use ObservableCollection for ComboBox item source so that the ComboBox updates when the list changes.
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using System.Text.RegularExpressions; using Common.Logging; namespace GesturesViewer { class ModelSelector : INotifyPropertyChanged { static readonly...
using System; using System.IO; using System.ComponentModel; using System.Text.RegularExpressions; using System.Collections.ObjectModel; using Common.Logging; namespace GesturesViewer { class ModelSelector : INotifyPropertyChanged { static readonly ILog Log = LogManager.GetCurrentClassLogger(); static reado...
Fix regression in 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; /// <summary> /// A class representing the solution to <c>https://pro...
Fix category of revision log RSS feeds.
<?xml version="1.0"?> <!-- RSS generated by Trac v<?cs var:trac.version ?> on <?cs var:trac.time ?> --> <rss version="2.0"> <channel><?cs if:project.name_encoded ?> <title><?cs var:project.name_encoded ?>: Revisions of <?cs var:log.path ?></title><?cs else ?> <title>Revisions of <?cs var:log.path ?></title...
<?xml version="1.0"?> <!-- RSS generated by Trac v<?cs var:trac.version ?> on <?cs var:trac.time ?> --> <rss version="2.0"> <channel><?cs if:project.name_encoded ?> <title><?cs var:project.name_encoded ?>: Revisions of <?cs var:log.path ?></title><?cs else ?> <title>Revisions of <?cs var:log.path ?></title...
Enumerate via self instead of directly
using System.Collections; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Pingu.Chunks; namespace Pingu { public class PngFile : IEnumerable<Chunk> { List<Chunk> chunksToWrite = new List<Chunk>(); static readonly byte[] magic = new byte[] { 0x89, 0x50, ...
using System.Collections; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Pingu.Chunks; namespace Pingu { public class PngFile : IEnumerable<Chunk> { List<Chunk> chunksToWrite = new List<Chunk>(); static readonly byte[] magic = new byte[] { 0x89, 0x50, ...
Debug log store saves logs only when debugger is attached
#define DEBUG using System; using System.Threading.Tasks; using Bit.Core.Contracts; using Bit.Core.Models; using System.Diagnostics; namespace Bit.Owin.Implementations { public class DebugLogStore : ILogStore { private readonly IContentFormatter _formatter; public DebugLogStore(IContentFormat...
#define DEBUG using System; using System.Threading.Tasks; using Bit.Core.Contracts; using Bit.Core.Models; using System.Diagnostics; namespace Bit.Owin.Implementations { public class DebugLogStore : ILogStore { private readonly IContentFormatter _formatter; public DebugLogStore(IContentFormat...
Use null-forgiving operator rather than assertion
// 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.Diagnostics; using System.Diagnostics.CodeAnalysis; using NUnit.Framework; namespace osu.Framework.Extensions.ObjectExtensions { /// <summary> /// E...
// 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.Diagnostics.CodeAnalysis; namespace osu.Framework.Extensions.ObjectExtensions { /// <summary> /// Extensions that apply to all objects. /// </su...
Add obsolete wrappers for compatability
using System; using System.Runtime.InteropServices; namespace Sodium { /// <summary> /// libsodium core information. /// </summary> public static class SodiumCore { static SodiumCore() { SodiumLibrary.init(); } /// <summary>Gets random bytes</summary> /// <param name="count">The co...
using System; using System.Runtime.InteropServices; namespace Sodium { /// <summary> /// libsodium core information. /// </summary> public static class SodiumCore { static SodiumCore() { SodiumLibrary.init(); } /// <summary>Gets random bytes</summary> /// <param name="count">The co...
Attach SetEditorOnly function to GameObjects rather than MonoBehaviors
using UnityEditor; using UnityEditor.SceneManagement; using UnityEngine; using System.Linq; namespace YesAndEditor { // Static class packed to the brim with helpful Unity editor utilities. public static class YesAndEditorUtil { // Forcefully mark open loaded scenes dirty and save them. [MenuItem ("File/Force ...
using UnityEditor; using UnityEditor.SceneManagement; using UnityEngine; using System.Linq; namespace YesAndEditor { // Static class packed to the brim with helpful Unity editor utilities. public static class YesAndEditorUtil { // Forcefully mark open loaded scenes dirty and save them. [MenuItem ("File/Force ...
Create node_modules/@types after project creation
// 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.Collections.Generic; using System.Diagnostics; using Microsoft.VisualStudio.TemplateWizard; namespace Microsoft.NodejsTools.ProjectWizard { ...
// 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.Collections.Generic; using System.Diagnostics; using System.IO; using Microsoft.VisualStudio.TemplateWizard; namespace Microsoft.NodejsTools.Pro...
Remove unused field from previous commit
using Microsoft.VisualStudio.ConnectedServices; using System; using System.ComponentModel.Composition; using System.Reflection; using System.Threading.Tasks; using System.Windows.Media; using System.Windows.Media.Imaging; namespace Salesforce.VisualStudio.Services.ConnectedService { [Export(typeof(ConnectedServic...
using Microsoft.VisualStudio.ConnectedServices; using System; using System.ComponentModel.Composition; using System.Reflection; using System.Threading.Tasks; using System.Windows.Media.Imaging; namespace Salesforce.VisualStudio.Services.ConnectedService { [Export(typeof(ConnectedServiceProvider))] [ExportMeta...
Comment on custom display option properties
using Newtonsoft.Json; using System.Collections.Generic; namespace SurveyMonkey.Containers { [JsonConverter(typeof(TolerantJsonConverter))] public class QuestionDisplayOptionsCustomOptions { public List<string> OptionSet { get; set; } public int StartingPosition { get; set; } publi...
using Newtonsoft.Json; using System.Collections.Generic; namespace SurveyMonkey.Containers { [JsonConverter(typeof(TolerantJsonConverter))] public class QuestionDisplayOptionsCustomOptions { public List<string> OptionSet { get; set; } public int StartingPosition { get; set; } //slider ques...
Add comment to count word number.
using System; using System.Collections.Generic; using System.IO; using System.Linq; using CSharpViaTest.Collections.Annotations; using CSharpViaTest.Collections.Helpers; using Xunit; namespace CSharpViaTest.Collections._30_MapReducePractices { [SuperEasy] public class CountNumberOfWordsInMultipleTextFiles ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using CSharpViaTest.Collections.Annotations; using CSharpViaTest.Collections.Helpers; using Xunit; namespace CSharpViaTest.Collections._30_MapReducePractices { [SuperEasy] public class CountNumberOfWordsInMultipleTextFiles ...
Add total memory to cat indices response
using Newtonsoft.Json; namespace Nest { [JsonObject] public class CatIndicesRecord : ICatRecord { [JsonProperty("docs.count")] public string DocsCount { get; set; } [JsonProperty("docs.deleted")] public string DocsDeleted { get; set; } [JsonProperty("health")] public string Health { get; set; } [J...
using Newtonsoft.Json; namespace Nest { [JsonObject] public class CatIndicesRecord : ICatRecord { [JsonProperty("docs.count")] public string DocsCount { get; set; } [JsonProperty("docs.deleted")] public string DocsDeleted { get; set; } [JsonProperty("health")] public string Health { get; set; } [J...
Remove forced WebGL test code
using System; using System.Collections.Generic; using System.Text; using UnityEngine; namespace Rs317.Sharp { public static class RsUnityPlatform { public static bool isWebGLBuild => true; public static bool isPlaystationBuild => Application.platform == RuntimePlatform.PS4 || Application.platform == RuntimePla...
using System; using System.Collections.Generic; using System.Text; using UnityEngine; namespace Rs317.Sharp { public static class RsUnityPlatform { public static bool isWebGLBuild => Application.platform == RuntimePlatform.WebGLPlayer; public static bool isPlaystationBuild => Application.platform == RuntimePla...
Fix for serialization errors with Loadout events caused by game bug
namespace DW.ELA.Interfaces.Events { using Newtonsoft.Json; public class ModuleEngineering { [JsonProperty("Engineer")] public string Engineer { get; set; } [JsonProperty("EngineerID")] public ulong EngineerId { get; set; } [JsonProperty("BlueprintID")] pu...
namespace DW.ELA.Interfaces.Events { using Newtonsoft.Json; public class ModuleEngineering { [JsonProperty("Engineer")] public string Engineer { get; set; } [JsonProperty("EngineerID")] public ulong EngineerId { get; set; } [JsonProperty("BlueprintID")] pu...
Document model updated as per save document changes.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using Awesomium.Core; using ProjectMarkdown.Annotations; namespace ProjectMarkdown.Model { public class DocumentModel : INotifyPro...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using Awesomium.Core; using ProjectMarkdown.Annotations; namespace ProjectMarkdown.Model { public class DocumentModel : INotifyPro...
Add Snapshots option to listing shares
//----------------------------------------------------------------------- // <copyright file="ShareListingDetails.cs" company="Microsoft"> // Copyright 2013 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Li...
//----------------------------------------------------------------------- // <copyright file="ShareListingDetails.cs" company="Microsoft"> // Copyright 2013 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Li...
Replace log4net dependency with LibLog
// <auto-generated/> using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitleAttribute("Elders.Multithreading.Scheduler")] [assembly: AssemblyDescriptionAttribute("The idea is to create a dedicated threads for a particular work. The WorkPool class does not use the standard .NET thread p...
// <auto-generated/> using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitleAttribute("Elders.Multithreading.Scheduler")] [assembly: AssemblyDescriptionAttribute("The idea is to create a dedicated threads for a particular work. The WorkPool class does not use the standard .NET thread p...
Fix a minor async delayer issue
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Threading; using System.Threading.Tasks; namespace Tgstation.Server.Host.Core.Tests { [TestClass] public sealed class TestAsyncDelayer { [TestMethod] public async Task TestDelay() { var delayer = new AsyncDelayer(); var star...
using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Threading; using System.Threading.Tasks; namespace Tgstation.Server.Host.Core.Tests { [TestClass] public sealed class TestAsyncDelayer { [TestMethod] public async Task TestDelay() { var delayer = new AsyncDelayer(); var star...
Update nullable annotations in TodoComments 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.Collections.Immutable; using System.Composition; 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.Collections.Immutable; using System.Composition; using Microsoft.CodeA...
Use more standard parsing 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 osu.Game.Beatmaps.Formats; using System; using System.Globalization; namespace osu.Game.Skinning { public class LegacySkinDecoder : LegacyDecoder<SkinConfigur...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Beatmaps.Formats; using System; using System.Globalization; namespace osu.Game.Skinning { public class LegacySkinDecoder : LegacyDecoder<SkinConfigura...
Move TestEnvironmentSetUpFixture into project root namespace
using JetBrains.Application.BuildScript.Application.Zones; using JetBrains.ReSharper.Psi.CSharp; using JetBrains.ReSharper.TestFramework; using JetBrains.TestFramework; using JetBrains.TestFramework.Application.Zones; using NUnit.Framework; using ReSharperExtensionsShared.Tests; [assembly: RequiresSTA] namespace ReS...
using JetBrains.Application.BuildScript.Application.Zones; using JetBrains.ReSharper.Psi.CSharp; using JetBrains.ReSharper.TestFramework; using JetBrains.TestFramework; using JetBrains.TestFramework.Application.Zones; using NUnit.Framework; [assembly: RequiresSTA] namespace ReSharperExtensionsShared.Tests { [Zon...
Add test for INPUT union
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Runti...
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Runti...
Support for Title on Windows.
using ruibarbo.core.ElementFactory; using ruibarbo.core.Wpf.Invoker; namespace ruibarbo.core.Wpf.Base { public class WpfWindowBase<TNativeElement> : WpfFrameworkElementBase<TNativeElement> where TNativeElement : System.Windows.Window { public WpfWindowBase(ISearchSourceElement searchPar...
using ruibarbo.core.ElementFactory; using ruibarbo.core.Wpf.Invoker; namespace ruibarbo.core.Wpf.Base { public class WpfWindowBase<TNativeElement> : WpfFrameworkElementBase<TNativeElement> where TNativeElement : System.Windows.Window { public WpfWindowBase(ISearchSourceElement searchPar...
Fix attempting to filter by project filtered by context instead
using System; using System.Collections.Generic; using System.Linq; using EZLibrary; using TodotxtTouch.WindowsPhone.ViewModel; namespace TodotxtTouch.WindowsPhone.Tasks { public class TaskFilterFactory { private const char Delimiter = ','; public static TaskFilter CreateTaskFilterFromString(string filter) { ...
using System; using System.Collections.Generic; using System.Linq; using EZLibrary; using TodotxtTouch.WindowsPhone.ViewModel; namespace TodotxtTouch.WindowsPhone.Tasks { public class TaskFilterFactory { private const char Delimiter = ','; public static TaskFilter CreateTaskFilterFromString(string filter) { ...
Fix potential test failure due to not waiting long enough on track start
// 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; namespace osu.Framework.Tests.Audio { [TestFixture] public class DevicelessAudioTest : AudioThreadTest { public override void...
// 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; namespace osu.Framework.Tests.Audio { [TestFixture] public class DevicelessAudioTest : AudioThreadTest { public override void...
Update Markdown output to match linter now used in NUnit docs
using Nito.AsyncEx; using Octokit; using System; using System.Collections.Generic; using System.Linq; namespace Alteridem.GetChanges { class Program { static int Main(string[] args) { var options = new Options(); if (!CommandLine.Parser.Default.ParseArguments(args, opti...
using Nito.AsyncEx; using Octokit; using System; using System.Collections.Generic; using System.Linq; namespace Alteridem.GetChanges { class Program { static int Main(string[] args) { var options = new Options(); if (!CommandLine.Parser.Default.ParseArguments(args, opti...
Fix flaky test in free mod select test scene
// 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 NUnit.Framework; using osu.Framework.Graphics.Containers; using osu.Framework.Testing; using osu.Game.Overlays.Mods; using osu.Game.Screens.Onlin...
// 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 NUnit.Framework; using osu.Framework.Graphics.Containers; using osu.Framework.Testing; using osu.Game.Overlays.Mods; using osu.Game.Screens.Onlin...
Join up hardcoded lines in a Row
using System; namespace Hangman { public class Row { public Cell[] Cells; public Row(Cell[] cells) { Cells = cells; } public string Draw(int width) { // return new String(' ', width - Text.Length) + Text; return "I have many cells!"; } } }
using System; namespace Hangman { public class Row { public Cell[] Cells; public Row(Cell[] cells) { Cells = cells; } public string Draw(int width) { // return new String(' ', width - Text.Length) + Text; return String.Join("\n", Lines()); } public string[] Lines() { ...
Fix dependency context bug and add load overload
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.IO; using System.Reflection; using System.Collections.Generic; namespace Microsoft.Extensions.DependencyModel { ...
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.IO; using System.Reflection; using System.Collections.Generic; namespace Microsoft.Extensions.DependencyModel { ...
Fix mouse position in game view
using System.Numerics; using ImGuiNET; namespace OpenSage.Viewer.UI.Views { internal abstract class GameView : AssetView { private readonly AssetViewContext _context; protected GameView(AssetViewContext context) { _context = context; } public override void...
using System.Numerics; using ImGuiNET; namespace OpenSage.Viewer.UI.Views { internal abstract class GameView : AssetView { private readonly AssetViewContext _context; protected GameView(AssetViewContext context) { _context = context; } public override void...
Update model for transaction to not need the person id as it will get set from the jwt later
using MoneyEntry.DataAccess.EFCore.Expenses.Models; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace MoneyEntry.ExpensesAPI.Models { public class TransactionModel { public int TransactionId { get; se...
using MoneyEntry.DataAccess.EFCore.Expenses.Models; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace MoneyEntry.ExpensesAPI.Models { public class TransactionModel { public int TransactionId { get; se...
Change model reference with old namespace to new
@model IEnumerable<Oogstplanner.Models.Crop> @{ ViewBag.Title = "Gewassen"; } <div id="top"></div> <div id="yearCalendar"> <h1>Dit zijn de gewassen in onze database:</h1> <table class="table table-striped"> <tr> <th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th> <th>Opp. per zak</th><...
@model IEnumerable<Crop> @{ ViewBag.Title = "Gewassen"; } <div id="top"></div> <div id="yearCalendar"> <h1>Dit zijn de gewassen in onze database:</h1> <table class="table table-striped"> <tr> <th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th> <th>Opp. per zak</th><th>Prijs per zakje</...
Fix last bug in parameters
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WienerLinien.Api.Routing { public static class RoutingUrlBuilder { private const string BaseUrl = "http://www.wienerlinien.at/ogd_routing/XML_TRIP_REQ...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WienerLinien.Api.Routing { public static class RoutingUrlBuilder { private const string BaseUrl = "http://www.wienerlinien.at/ogd_routing/XML_TRIP_REQ...
Fix bug: Clearing the cache says "All items have been cleared from the recent packages list." Work items: 986
using System; using System.Diagnostics; using System.IO; using System.Windows.Forms; using NuGet.VisualStudio; namespace NuGet.Options { public partial class GeneralOptionControl : UserControl { private IRecentPackageRepository _recentPackageRepository; private IProductUpdateSettings _p...
using System; using System.Diagnostics; using System.IO; using System.Windows.Forms; using NuGet.VisualStudio; namespace NuGet.Options { public partial class GeneralOptionControl : UserControl { private IRecentPackageRepository _recentPackageRepository; private IProductUpdateSettings _p...
Fix the possibility of a NullReferenceException
using System; using System.ComponentModel; using System.Runtime.CompilerServices; namespace GUtils.MVVM { /// <summary> /// Implements a few utility functions for a ViewModel base /// </summary> public abstract class ViewModelBase : INotifyPropertyChanged { /// <inheritdoc/> public...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.CompilerServices; namespace GUtils.MVVM { /// <summary> /// Implements a few utility functions for a ViewModel base /// </summary> public abstract class ViewModelBase : INotifyPropertyChanged { ...
Update copyright year span to include 2014. This change was generated by the build script.
using System.Reflection; using System.Runtime.InteropServices; [assembly: ComVisible(false)] [assembly: AssemblyProduct("Fixie")] [assembly: AssemblyVersion("0.0.1.0")] [assembly: AssemblyFileVersion("0.0.1.0")] [assembly: AssemblyCopyright("Copyright (c) 2013 Patrick Lioi")] [assembly: AssemblyCompany("Patrick Lioi")...
using System.Reflection; using System.Runtime.InteropServices; [assembly: ComVisible(false)] [assembly: AssemblyProduct("Fixie")] [assembly: AssemblyVersion("0.0.1.0")] [assembly: AssemblyFileVersion("0.0.1.0")] [assembly: AssemblyCopyright("Copyright (c) 2013-2014 Patrick Lioi")] [assembly: AssemblyCompany("Patrick L...
Add address permission constants for permissions card
using System; namespace Alexa.NET.Response { public static class RequestedPermission { public const string ReadHouseholdList = "read::alexa:household:list"; public const string WriteHouseholdList = "write::alexa:household:list"; } }
using System; namespace Alexa.NET.Response { public static class RequestedPermission { public const string ReadHouseholdList = "read::alexa:household:list"; public const string WriteHouseholdList = "write::alexa:household:list"; public const string FullAddress = "read::alexa:device:all...
Fix probing for git on non-Windows machines
using System; using System.IO; using System.Linq; using LibGit2Sharp; namespace GitIStage { internal static class Program { private static void Main() { var repositoryPath = ResolveRepositoryPath(); if (!Repository.IsValid(repositoryPath)) { ...
using System; using System.IO; using System.Linq; using LibGit2Sharp; namespace GitIStage { internal static class Program { private static void Main() { var repositoryPath = ResolveRepositoryPath(); if (!Repository.IsValid(repositoryPath)) { ...
Fix overlined participants test scene not working
// 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.Game.Screens.Multi.Components; using osuTK; namespace osu.Game.Tests.Visual.Multiplayer { public class...
// 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.Game.Screens.Multi.Components; using osu.Game.Users; namespace osu.Game.Tests.Visual.Multiplayer { pub...
Implement mouse drag event as IObservable
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
using System; using System.Collections.Generic; using System.Linq; using System.Reactive.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using S...
Make sample app more helpful
 using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using Abstractspoon.Tdl.PluginHelpers; namespace SampleImpExp { public class SampleImpExpCore { public bool Export(TaskList srcTasks, string sDestFilePath, bool bSilent, Preferences prefs, string sKey) ...
 using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using Abstractspoon.Tdl.PluginHelpers; namespace SampleImpExp { public class SampleImpExpCore { public bool Export(TaskList srcTasks, string sDestFilePath, bool bSilent, Preferences prefs, string sKey) ...
Make transaction roll back per default until we figure out what to do
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; namespace RealmNet { public class Transaction : IDisposable { private SharedRealmHandle _sharedRealmHandle; private bool _isOpen; internal Transaction(SharedRealmHandle sharedRealm...
using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; namespace RealmNet { public class Transaction : IDisposable { private SharedRealmHandle _sharedRealmHandle; private bool _isOpen; internal Transaction(SharedRealmHandle sharedRealm...
Remove obsolete delivery model names
using System; using System.Text.Json.Serialization; namespace SFA.DAS.CommitmentsV2.Types { [JsonConverter(typeof(JsonStringEnumConverter))] public enum DeliveryModel : byte { Regular = 0, PortableFlexiJob = 1, [Obsolete("Use `Regular` instead of `Normal`", true)] ...
using System.Text.Json.Serialization; namespace SFA.DAS.CommitmentsV2.Types { [JsonConverter(typeof(JsonStringEnumConverter))] public enum DeliveryModel : byte { Regular = 0, PortableFlexiJob = 1, } }
Change AssemblyCompany to .NET Foundation
using System; using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Outercurve Foundation")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: AssemblyConfiguration("")] // If you change this version, make sure to change Build\build.proj accordingly [as...
using System; using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany(".NET Foundation")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: AssemblyConfiguration("")] // If you change this version, make sure to change Build\build.proj accordingly [assembly...
Remove trailing spaces from <br>
 using System; using HtmlAgilityPack; namespace ReverseMarkdown.Converters { public class Br : ConverterBase { public Br(Converter converter) : base(converter) { this.Converter.Register("br", this); } public override string Convert(HtmlNode node) { return " " + Environment.NewLine; } } }
 using System; using HtmlAgilityPack; namespace ReverseMarkdown.Converters { public class Br : ConverterBase { public Br(Converter converter) : base(converter) { this.Converter.Register("br", this); } public override string Convert(HtmlNode node) { return Environment.NewLine; } } }
Use existing extension method to get default value for a type.
using System; using System.Reflection; using System.Runtime.Remoting.Messaging; using System.Runtime.Remoting.Proxies; namespace Unit.Tests { /// <summary> /// Proxy that records method invocations. /// </summary> public class MethodRecorder<T> : RealProxy { /// <summary> /// Creates a new interceptor that r...
using System; using System.Reflection; using System.Runtime.Remoting.Messaging; using System.Runtime.Remoting.Proxies; using Utilities.Reflection; namespace Unit.Tests { /// <summary> /// Proxy that records method invocations. /// </summary> public class MethodRecorder<T> : RealProxy { /// <summary> /// Crea...
Support ReturnUrl to public pages
<div class="user-display"> @if (!User.Identity.IsAuthenticated) { <span class="welcome"><a href="@Url.LogOn()">Log On</a></span> <a href="@Url.Action(MVC.Users.Register())" class="register">Register</a> } else { <span class="welcome"><a href="@Url.Action(MVC.Users.Account())...
<div class="user-display"> @if (!User.Identity.IsAuthenticated) { <span class="welcome">@Html.ActionLink("Log On", "LogOn", "Authentication", new { returnUrl = Request.RequestContext.HttpContext.Request.RawUrl }, null)</span> <a href="@Url.Action(MVC.Users.Register())" class="register">Register...
Set system timer resolution for the sleep call in the wait loop
using System; using System.Windows.Forms; namespace elbsms_ui { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Applicati...
using System; using System.Windows.Forms; using elb_utilities.NativeMethods; namespace elbsms_ui { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { // set timer resolut...
Set Magenta as a default color for shapes
using Urho.Resources; namespace Urho.Shapes { public abstract class Shape : StaticModel { Material material; public override void OnAttachedToNode(Node node) { Model = Application.ResourceCache.GetModel(ModelResource); Color = color; } protected abstract string ModelResource { get; } Color colo...
using Urho.Resources; namespace Urho.Shapes { public abstract class Shape : StaticModel { Material material; public override void OnAttachedToNode(Node node) { Model = Application.ResourceCache.GetModel(ModelResource); Color = color; } protected abstract string ModelResource { get; } Color colo...
Add ResolveByName attribute to TargetTextBlock property
using Avalonia.Controls; using Avalonia.Input; using Avalonia.Xaml.Interactivity; namespace Avalonia.Xaml.Interactions.Custom; /// <summary> /// A behavior that displays cursor position on <see cref="InputElement.PointerMoved"/> event for the <see cref="Behavior{T}.AssociatedObject"/> using <see cref="TextBlock.Text...
using Avalonia.Controls; using Avalonia.Input; using Avalonia.Xaml.Interactivity; namespace Avalonia.Xaml.Interactions.Custom; /// <summary> /// A behavior that displays cursor position on <see cref="InputElement.PointerMoved"/> event for the <see cref="Behavior{T}.AssociatedObject"/> using <see cref="TextBlock.Text...
Update ContentItemDisplay mapper to set IsContainer and IsChildOfListView correctly
using Opten.Umbraco.ListView.Extensions; using System; using System.Linq; using Umbraco.Core; using Umbraco.Web.Trees; namespace ClassLibrary1 { public class TreeEventHandler : ApplicationEventHandler { protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext a...
using AutoMapper; using Opten.Umbraco.ListView.Extensions; using System.Linq; using Umbraco.Core; using Umbraco.Core.Models; using Umbraco.Web.Models.ContentEditing; using Umbraco.Web.Trees; namespace ClassLibrary1 { public class TreeEventHandler : ApplicationEventHandler { protected override void Application...
Remove reference to statistic manager from timerdecorator.
namespace Moya.Runner.Runners { using System.Diagnostics; using System.Reflection; using Models; using Statistics; public class TimerDecorator : ITestRunner { private readonly IDurationManager duration; public ITestRunner DecoratedTestRunner { get; set; } publ...
namespace Moya.Runner.Runners { using System.Diagnostics; using System.Reflection; using Models; public class TimerDecorator : ITestRunner { public ITestRunner DecoratedTestRunner { get; set; } public TimerDecorator(ITestRunner testRunner) { DecoratedTe...
Use owinContext.Request.CallCancelled in default page middleware
using System.Threading; using System.Threading.Tasks; using Microsoft.Owin; using Foundation.Api.Contracts; using Foundation.Core.Contracts; namespace Foundation.Api.Middlewares { public class DefaultPageMiddleware : OwinMiddleware { public DefaultPageMiddleware(OwinMiddleware next) : base...
using System.Threading; using System.Threading.Tasks; using Microsoft.Owin; using Foundation.Api.Contracts; using Foundation.Core.Contracts; namespace Foundation.Api.Middlewares { public class DefaultPageMiddleware : OwinMiddleware { public DefaultPageMiddleware(OwinMiddleware next) : base...
Add MLC and SMC to education levels
using System.ComponentModel.DataAnnotations; namespace BatteryCommander.Web.Models { public enum MilitaryEducationLevel : byte { Unknown, [Display(Name = "(AIT) Advanced Individual Training", ShortName = "AIT")] AIT = 1, [Display(Name = "(BLC) Basic Leader Course", ShortName ...
using System.ComponentModel.DataAnnotations; namespace BatteryCommander.Web.Models { public enum MilitaryEducationLevel : byte { Unknown, [Display(Name = "(AIT) Advanced Individual Training", ShortName = "AIT")] AIT = 1, [Display(Name = "(BLC) Basic Leader Course", ShortName ...
Rename assembly to proper name
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("Library")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConfiguration ("")] [assembly...
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("Intercom.Dotnet.Client")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConfiguration ...
Fix incorrect array pool usage
// 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 System.Buffers; using osu.Framework.Graphics.Primitives; using osuTK.Graphics.ES30; using SixLabors.ImageSharp.PixelFormats; namespace osu.Framework....
// 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 System.Buffers; using osu.Framework.Graphics.Primitives; using osuTK.Graphics.ES30; using SixLabors.ImageSharp.PixelFormats; namespace osu.Framework....
Rename acceptance test with proper underscores.
namespace PastaPricer.Tests.Acceptance { using NSubstitute; using NUnit.Framework; [TestFixture] public class PastaPricerAcceptanceTests { [Test] public void Should_PublishPastaPriceOnceStartedAndMarketDataIsAvailable() { // Mocks instantiation var p...
namespace PastaPricer.Tests.Acceptance { using NSubstitute; using NUnit.Framework; [TestFixture] public class PastaPricerAcceptanceTests { [Test] public void Should_Publish_Pasta_Price_Once_Started_And_MarketData_Is_Available() { // Mocks instantiation ...
Add enumerated ports to the list of serial ports, this currently causes duplicates but meh.
using System; using System.Collections.Generic; namespace LazerTagHostLibrary { public class LazerTagSerial { public LazerTagSerial () { } static public List<string> GetSerialPorts() { List<string> result = new List<string>(); System.IO.Direc...
using System; using System.Collections.Generic; using System.IO.Ports; namespace LazerTagHostLibrary { public class LazerTagSerial { public LazerTagSerial () { } static public List<string> GetSerialPorts() { List<string> result = new List<string>(); ...
Update OData assembly version to 5.4.0.0
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; #if !BUILD_GENERATED_VERSION [assembly: AssemblyCompany("Microsoft Open Technologie...
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; #if !BUILD_GENERATED_VERSION [assembly: AssemblyCompany("Microsoft Open Technologie...
Check native registry view for Windows version
using System; using System.IO; using Microsoft.Win32; namespace FreenetTray.Browsers { class Edge: Browser { private static string NTVersionRegistryKey = @"SOFTWARE\Microsoft\Windows NT\CurrentVersion"; public Edge() { // for this key we want registry redirection enabled, so no regis...
using System; using System.IO; using Microsoft.Win32; namespace FreenetTray.Browsers { class Edge: Browser { private static string NTVersionRegistryKey = @"SOFTWARE\Microsoft\Windows NT\CurrentVersion"; public Edge() { RegistryKey reg = null; if (Environment.Is64BitOpera...
Improve user question when node conflict is not auto-resolved
using System; using System.Xml.Linq; namespace Project { public abstract class Item: IEquatable<Item>, IConflictableItem { public abstract override int GetHashCode(); public virtual string Action { get { return GetType().Name; } } public abstract string Key { get; } public bool IsResolveOption { ge...
using System; using System.Xml.Linq; namespace Project { public abstract class Item: IEquatable<Item>, IConflictableItem { public abstract override int GetHashCode(); public virtual string Action { get { return GetType().Name; } } public abstract string Key { get; } public bool IsResolveOption { ge...
Use a fixed size buffer rather than marshalling
/* Copyright © 2018 Jeremy Herbison This file is part of AudioWorks. AudioWorks is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Au...
/* Copyright © 2018 Jeremy Herbison This file is part of AudioWorks. AudioWorks is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Au...
Increase project version number to 0.9.0
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Yevgeniy Shunevych")] [assembly: AssemblyProduct("Atata")] [assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: AssemblyVersion("0...
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyCompany("Yevgeniy Shunevych")] [assembly: AssemblyProduct("Atata")] [assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: AssemblyVersion("0...
Add more languages to settings dropdown
// 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.ComponentModel; namespace osu.Game.Localisation { public enum Language { [Description(@"English")] en, [Description(@"日本語")...
// 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.ComponentModel; namespace osu.Game.Localisation { public enum Language { [Description(@"English")] en, // TODO: Requires Ar...
Fix SSL/TLS exception during application startup
using System; using System.Threading.Tasks; using Octokit; namespace MangaRipper.Helpers { public class UpdateNotification { public static async Task<string> GetLatestVersion() { var client = new GitHubClient(new ProductHeaderValue("MyAmazingApp")); var release = await ...
using System; using System.Threading.Tasks; using Octokit; using System.Net; namespace MangaRipper.Helpers { public class UpdateNotification { public static async Task<string> GetLatestVersion() { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; var cl...
Use LINQ to sort results.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using ProjectTracker.Library; namespace PTWin { public partial class ProjectSelect : Form { private Guid _projectId; public Guid ProjectId ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using ProjectTracker.Library; using System.Linq; namespace PTWin { public partial class ProjectSelect : Form { private Guid _projectId; publ...
Add implementation for authorization serialization example.
namespace TraktSerializeAuthorizationExample { class Program { static void Main(string[] args) { } } }
namespace TraktSerializeAuthorizationExample { using System; using TraktApiSharp; using TraktApiSharp.Authentication; using TraktApiSharp.Enums; using TraktApiSharp.Services; class Program { private const string CLIENT_ID = "FAKE_CLIENT_ID"; private const string CLIENT_SECR...
Update assembly version to 1.2 to match the version set in Microsoft.Web.Xdt package.
using System.Reflection; [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft Corporation")] [assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: Assemb...
using System.Reflection; [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft Corporation")] [assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: AssemblyVersion("1.2.0.0")] [assembly: Assemb...
Add support on fetching Uri with local filepath like "file:///C:/website/style.css"
using System; using System.IO; using System.Net; using System.Text; namespace PreMailer.Net.Downloaders { public class WebDownloader : IWebDownloader { private static IWebDownloader _sharedDownloader; public static IWebDownloader SharedDownloader { get { if (_sharedDownloader == null) { _sh...
using System; using System.IO; using System.Net; using System.Text; namespace PreMailer.Net.Downloaders { public class WebDownloader : IWebDownloader { private static IWebDownloader _sharedDownloader; public static IWebDownloader SharedDownloader { get { if (_sharedDownloader == null) { _sh...
Improve test / code coverage of System.ComponentModel
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.ComponentModel; using Xunit; namespace Test { public class ComponentModelTests { [Fact] public static void TestCompo...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.ComponentModel; using Xunit; namespace Test { public class ComponentModelTests { [Fact] public static void TestCompo...
Move namespace Microsoft.AspNetCore.Routing -> Microsoft.AspNetCore.Builder
using System; using System.Collections.Generic; using System.Reflection; using System.Text; using MagicOnion.Server.Glue; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; namespace Microsoft.AspNetCore.Routing { public static class MagicOnionEn...
using System; using System.Collections.Generic; using System.Reflection; using System.Text; using MagicOnion.Server.Glue; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; namespace Microsoft.AspNetCore.Builder { public static class MagicOnionEndpointRouteBuilderExtensions { ...
Fix iOS nullref on orientation change
// 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 CoreGraphics; using osu.Framework.Platform; using UIKit; namespace osu.Framework.iOS { internal class GameViewController : UIViewController ...
// 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 CoreGraphics; using osu.Framework.Platform; using UIKit; namespace osu.Framework.iOS { internal class GameViewController : UIViewController ...
Set MasterReqRuntime to discover types
using System; using System.Collections.Generic; using Microsoft.Framework.DependencyInjection; namespace Glimpse.Web { public class MasterRequestRuntime { private readonly IEnumerable<IRequestRuntime> _requestRuntimes; public MasterRequestRuntime(IServiceProvider serviceProvider) { ...
using System; using System.Collections.Generic; using Microsoft.Framework.DependencyInjection; namespace Glimpse.Web { public class MasterRequestRuntime { private readonly IDiscoverableCollection<IRequestRuntime> _requestRuntimes; public MasterRequestRuntime(IServiceProvider serviceProvider) ...
Fix AmbiguousMatchException in multiple indexers, make getters and setters invocation consistent
using System.Globalization; using System.Reflection; using Jint.Native; namespace Jint.Runtime.Descriptors.Specialized { public sealed class IndexDescriptor : PropertyDescriptor { private readonly Engine _engine; private readonly object _key; private readonly object _item; ...
using System; using System.Globalization; using System.Linq; using System.Reflection; using Jint.Native; namespace Jint.Runtime.Descriptors.Specialized { public sealed class IndexDescriptor : PropertyDescriptor { private readonly Engine _engine; private readonly object _key; ...
Fix - Notifica cancellazione 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...
Fix slider velocity not being applied.
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Collections.Generic; using OpenTK.Graphics; using osu.Game.Beatmaps.Timing; using osu.Game.Database; using osu.Game.Modes.Objects; namespace osu.Gam...
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Collections.Generic; using OpenTK.Graphics; using osu.Game.Beatmaps.Timing; using osu.Game.Database; using osu.Game.Modes.Objects; namespace osu.Gam...
Check if logger is null and throw
using Serilog.Events; namespace Serilog { /// <summary> /// Extension method 'ForContext' for ILogger. /// </summary> public static class ForContextExtension { /// <summary> /// Create a logger that enriches log events with the specified property based on log event level. /...
using System; using Serilog.Events; namespace Serilog { /// <summary> /// Extension method 'ForContext' for ILogger. /// </summary> public static class ForContextExtension { /// <summary> /// Create a logger that enriches log events with the specified property based on log event le...
Increase the maximum time we wait for long running tests from 5 to 10.
using System; using System.Threading; using NUnit.Framework; namespace JustSaying.TestingFramework { public static class Patiently { public static void VerifyExpectation(Action expression) { VerifyExpectation(expression, 5.Seconds()); } public static v...
using System; using System.Threading; using NUnit.Framework; namespace JustSaying.TestingFramework { public static class Patiently { public static void VerifyExpectation(Action expression) { VerifyExpectation(expression, 5.Seconds()); } public static v...
Remove cursor color type for now
namespace BigEgg.Tools.PowerMode.Settings { public enum ParticlesColorType { Cursor, Random, Fixed } }
namespace BigEgg.Tools.PowerMode.Settings { public enum ParticlesColorType { Random, Fixed } }
Add method to unescape string.
using dotless.Infrastructure; namespace dotless.Tree { public class Quoted : Node { public string Value { get; set; } public string Contents { get; set; } public Quoted(string value, string contents) { Value = value; Contents = contents; } public override string ToCSS(Env env...
using System.Text.RegularExpressions; using dotless.Infrastructure; namespace dotless.Tree { public class Quoted : Node { public string Value { get; set; } public string Contents { get; set; } public Quoted(string value, string contents) { Value = value; Contents = contents; } ...
Revert visibility change and add null check
// 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 System.IO; #nullable enable namespace osu.Framework.Audio.Callbacks { /// <summary> /// Implementation of <see cref="IFileProcedures"/> tha...
// 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 System.IO; #nullable enable namespace osu.Framework.Audio.Callbacks { /// <summary> /// Implementation of <see cref="IFileProcedures"/> tha...
Use notification instead of debug to allow testing outside of editor
using UnityEngine; using UnityEngine.UI; using System.Collections; public class LoadTest : MonoBehaviour { public void SignInButtonClicked() { GameJolt.UI.Manager.Instance.ShowSignIn((bool success) => { if (success) { Debug.Log("Logged In"); } else { Debug.Log("Dismissed"); } }); } ...
using UnityEngine; using UnityEngine.UI; using System.Collections; public class LoadTest : MonoBehaviour { public void SignInButtonClicked() { GameJolt.UI.Manager.Instance.ShowSignIn((bool success) => { if (success) { GameJolt.UI.Manager.Instance.QueueNotification("Welcome"); } else { GameJ...
Add comments for none generic generator
namespace GeneratorAPI { /// <summary> /// Represents a generic generator which can generate any ammount of elements. /// </summary> /// <typeparam name="T"></typeparam> public interface IGenerator<out T> : IGenerator { /// <summary> /// Generate next element. /// </...
namespace GeneratorAPI { /// <summary> /// Represents a generic generator which can generate any ammount of elements. /// </summary> /// <typeparam name="T"></typeparam> public interface IGenerator<out T> : IGenerator { /// <summary> /// Generate next element. /// </...
Set velocity and forward vector when resetting ball position
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Networking; public class Ball : NetworkBehaviour { private Rigidbody rigidBody = null; private Vector3 startingPosition = Vector3.zero; float minimumVelocity = 5; float startingMinVelocity = ...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Networking; public class Ball : NetworkBehaviour { private Rigidbody rigidBody = null; private Vector3 startingPosition = Vector3.zero; float minimumVelocity = 5; float startingMinVelocity = ...
Fix the wrong conditional statement.
using NuGet.OutputWindowConsole; using NuGetConsole; namespace NuGet.Dialog.PackageManagerUI { internal class SmartOutputConsoleProvider : IOutputConsoleProvider { private readonly IOutputConsoleProvider _baseProvider; private bool _isFirstTime = true; public SmartOutputConsoleP...
using NuGet.OutputWindowConsole; using NuGetConsole; namespace NuGet.Dialog.PackageManagerUI { internal class SmartOutputConsoleProvider : IOutputConsoleProvider { private readonly IOutputConsoleProvider _baseProvider; private bool _isFirstTime = true; public SmartOutputConsoleP...
Update b/c of new dockpanel
namespace SuperPutty { partial class ToolWindow { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
namespace SuperPutty { partial class ToolWindow { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
Set the document language to English
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> @Styles.Render("~/Content/themes/base/css", "~/Content/css") @Scripts.Render("~/bundles/modernizr") </head> <body> @RenderBody() @Scripts.R...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> @Styles.Render("~/Content/themes/base/css", "~/Content/css") @Scripts.Render("~/bundles/modernizr") </head> <body> @RenderBody() @Scripts.Ren...
Update website URI to root domain
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; public class MattBobke : IAmACommunityMember, IFilterMyBlogPosts { public string FirstName => "Matt"; public string LastName => "Bobke"; ...
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; public class MattBobke : IAmACommunityMember, IFilterMyBlogPosts { public string FirstName => "Matt"; public string LastName => "Bobke"; ...
Remove Category link in menu
<li>@Html.ActionLink("Courses", "Index", "Race")</li> <li>@Html.ActionLink("Catégories", "Index", "Category")</li> @if (User.IsInRole("Administrateur")) { <li>@Html.ActionLink("Liste des points", "Index", "Point")</li> <li>@Html.ActionLink("Importer les résultats", "Import", "Resultat")</li> } @if (User.IsIn...
<li>@Html.ActionLink("Courses", "Index", "Race")</li> @if (User.IsInRole("Administrateur")) { <li>@Html.ActionLink("Liste des points", "Index", "Point")</li> <li>@Html.ActionLink("Importer les résultats", "Import", "Resultat")</li> } @if (User.IsInRole("Administrateur")) { <li>@Html.ActionLink("Type de P...
Disable ConsoleLogAdapter in test output
using System; using GitHub.Unity; using NUnit.Framework; namespace IntegrationTests { [SetUpFixture] public class SetUpFixture { [SetUp] public void Setup() { Logging.TracingEnabled = true; Logging.LogAdapter = new MultipleLogAdapter( new Fil...
using System; using GitHub.Unity; using NUnit.Framework; namespace IntegrationTests { [SetUpFixture] public class SetUpFixture { [SetUp] public void Setup() { Logging.TracingEnabled = true; Logging.LogAdapter = new MultipleLogAdapter( new Fil...
Move hardcoded values into static fields
using System; using System.Collections.Generic; using System.Linq; namespace Silverpop.Core.Performance { internal class Program { private static void Main(string[] args) { var tagValue = new string( Enumerable.Repeat("ABC", 1000) .SelectMany(x =...
using System; using System.Collections.Generic; using System.Linq; namespace Silverpop.Core.Performance { internal class Program { private static IEnumerable<int> TestRecipientCounts = new List<int>() { 1000000, 5000000, }; private static int TestRecipi...
Add SupportedInterface strings to allow discovery. Including VideoApp for new directive.
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Alexa.NET.Request { public class SupportedInterfaces { } }
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Alexa.NET.Request { public static class SupportedInterfaces { public const string Display = "Display"; public const string AudioPlayer = "AudioPlayer"; public const string VideoAp...