Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Fix test for 64-bit platforms | // 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.
// Passing a very large struct by value on the stack, on arm32 and x86,
// can cause it to be copied from a temp to ... | // 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.
// Passing a very large struct by value on the stack, on arm32 and x86,
// can cause it to be copied from a temp to ... |
Check for Fixie library reference | using System;
using JetBrains.Application;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.Tree;
using JetBrains.ReSharper.UnitTestFramework;
namespace ReSharperFixieRunner.UnitTestProvider
{
[FileUnitTestExplorer]
public class FixieTestFileExplorer : IUnitTestFileExplorer
{
private ... | using System;
using System.Linq;
using JetBrains.Application;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.Tree;
using JetBrains.ReSharper.UnitTestFramework;
namespace ReSharperFixieRunner.UnitTestProvider
{
[FileUnitTestExplorer]
public class FixieTestFileExplor... |
Switch to the memory repository | using Bootstrap.StructureMap;
using Manufacturing.DataCollector.Datasources.Simulation;
using StructureMap;
using StructureMap.Configuration.DSL;
using StructureMap.Graph;
using StructureMap.Pipeline;
namespace Manufacturing.DataPusher
{
public class DataPusherContainer : IStructureMapRegistration
{
p... | using Bootstrap.StructureMap;
using Manufacturing.DataCollector;
using Manufacturing.DataCollector.Datasources.Simulation;
using StructureMap;
using StructureMap.Configuration.DSL;
using StructureMap.Graph;
using StructureMap.Pipeline;
namespace Manufacturing.DataPusher
{
public class DataPusherContainer : IStruc... |
Check early for commit on current branch | using System;
using System.Collections.Generic;
using GitVersion.Common;
using LibGit2Sharp;
namespace GitVersion.VersionCalculation
{
/// <summary>
/// Version is 0.1.0.
/// BaseVersionSource is the "root" commit reachable from the current commit.
/// Does not increment.
/// </summary>
public ... | using System;
using System.Collections.Generic;
using GitVersion.Common;
using LibGit2Sharp;
namespace GitVersion.VersionCalculation
{
/// <summary>
/// Version is 0.1.0.
/// BaseVersionSource is the "root" commit reachable from the current commit.
/// Does not increment.
/// </summary>
public ... |
Remove all network operation codes | using System;
using System.Collections.Generic;
using System.Text;
namespace Rs317.Extended
{
/// <summary>
/// Operation codes for the RS317 packets.
/// </summary>
public enum RsNetworkOperationCode : byte
{
/// <summary>
/// Operation code for packet type that indicates a login
/// success.
/// </summ... | using System;
using System.Collections.Generic;
using System.Text;
namespace Rs317.Extended
{
/// <summary>
/// Operation codes for the RS317 packets.
/// </summary>
public enum RsNetworkOperationCode : byte
{
}
}
|
Make the constraint on RestfulHttpMethodConstraint, so the match will work. | using System.Web.Routing;
namespace RestfulRouting
{
public abstract class Mapper
{
private readonly IRouteHandler _routeHandler;
protected Mapper(IRouteHandler routeHandler)
{
_routeHandler = routeHandler;
}
protected Route GenerateRoute(string path, string controller, string action, string[] httpMe... | using System.Web.Routing;
namespace RestfulRouting
{
public abstract class Mapper
{
private readonly IRouteHandler _routeHandler;
protected Mapper(IRouteHandler routeHandler)
{
_routeHandler = routeHandler;
}
protected Route GenerateRoute(string path, string controller, string action, string[] httpMe... |
Replace string queries with GUID for DummyAlembic.abc | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.Formats.Alembic.Importer;
namespace UnityEditor.Formats.Alembic.Exporter.UnitTests
{
public class AssetRenameTests
{
readonly List<string> deleteFileList = new... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using NUnit.Framework;
using UnityEngine;
using UnityEngine.Formats.Alembic.Importer;
namespace UnityEditor.Formats.Alembic.Exporter.UnitTests
{
public class AssetRenameTests
{
readonly List<string> deleteFileList = new... |
Return if input is null or empty | using System;
using System.Text.RegularExpressions;
namespace InternetSeparationAdapter
{
public static class UtilsExtension
{
// http://stackoverflow.com/a/33113820
public static string Base64UrlEncode(this byte[] arg)
{
var s = Convert.ToBase64String(arg); // Regular base64 encoder
s = s... | using System;
using System.Text.RegularExpressions;
namespace InternetSeparationAdapter
{
public static class UtilsExtension
{
// http://stackoverflow.com/a/33113820
public static string Base64UrlEncode(this byte[] arg)
{
var s = Convert.ToBase64String(arg); // Regular base64 encoder
s = s... |
Change wrong values used to form target URL | // 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.Online.Chat;
namespace osu.Game.Online.API.Requests
{
public class MarkChannelAsReadRequest : APIRequest
{
private readonly Channel chann... | // 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.Online.Chat;
namespace osu.Game.Online.API.Requests
{
public class MarkChannelAsReadRequest : APIRequest
{
private readonly Channel chann... |
Switch RequestProfiler consumers over to using provider | using Glimpse.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Glimpse.Agent.Web
{
public class MasterRequestProfiler : IRequestRuntime
{
private readonly IDiscoverableCollection<IRequestProfiler> _requestProfiliers;
private readon... | using Glimpse.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Glimpse.Agent.Web
{
public class MasterRequestProfiler : IRequestRuntime
{
private readonly IEnumerable<IRequestProfiler> _requestProfiliers;
private readonly IEnumerab... |
Change "Weather" "Font Size" default value | using System;
using System.ComponentModel;
using DesktopWidgets.WidgetBase.Settings;
namespace DesktopWidgets.Widgets.Weather
{
public class Settings : WidgetSettingsBase
{
[Category("Style")]
[DisplayName("Unit Type")]
public TemperatureUnitType UnitType { get; set; }
[Catego... | using System;
using System.ComponentModel;
using DesktopWidgets.WidgetBase.Settings;
namespace DesktopWidgets.Widgets.Weather
{
public class Settings : WidgetSettingsBase
{
public Settings()
{
Style.FontSettings.FontSize = 16;
}
[Category("Style")]
[Display... |
Add ticker and period information to partial candle tokenizer | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Finance
{
public class PartialCandleTokenizer : AbstractCandleTokenizer
{
private AbstractCandleTokenizer ct;
private int start;
private int length;
pu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Finance
{
public class PartialCandleTokenizer : AbstractCandleTokenizer
{
private AbstractCandleTokenizer ct;
private int start;
private int length;
pu... |
Fix cookie middleware name for interop package | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Interop;
nam... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Interop;
nam... |
Fix assembly name in Client.net40 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("In... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("In... |
Use intValue instead of enumValueIndex | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using UnityEditor;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Audio.Editor
{
[CustomEditor(typeof(TextToSpeech))]
public class TextToSpeechInspector : UnityEditor.Editor
{
private SerializedProperty voiceP... | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using UnityEditor;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Audio.Editor
{
[CustomEditor(typeof(TextToSpeech))]
public class TextToSpeechInspector : UnityEditor.Editor
{
private SerializedProperty voiceP... |
Disable hanging OSX NetworkInformation test | // 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 Xunit;
namespace System.Net.NetworkInformation.Tests
{
public class NetworkChangeTest
{
[Fact... | // 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 Xunit;
namespace System.Net.NetworkInformation.Tests
{
public class NetworkChangeTest
{
[Fact... |
Add other rollbar client tests | using Newtonsoft.Json;
using Xunit;
namespace Rollbar.Test {
public class RollbarClientFixture {
private readonly RollbarClient _rollbarClient;
public RollbarClientFixture() {
this._rollbarClient= new RollbarClient();
}
[Fact]
public void Client_rendered_as_di... | using Newtonsoft.Json;
using Xunit;
namespace Rollbar.Test {
public class RollbarClientFixture {
private readonly RollbarClient _rollbarClient;
public RollbarClientFixture() {
this._rollbarClient= new RollbarClient();
}
[Fact]
public void Client_rendered_as_di... |
Remove length object from all JSON messages | using System;
using System.Linq;
using Newtonsoft.Json;
namespace BmpListener.Bgp
{
public abstract class BgpMessage
{
protected BgpMessage(ref ArraySegment<byte> data)
{
var bgpHeader = new BgpHeader(data);
Type = bgpHeader.Type;
var offset = data.Offset + ... | using System;
using System.Linq;
using Newtonsoft.Json;
namespace BmpListener.Bgp
{
public abstract class BgpMessage
{
protected BgpMessage(ref ArraySegment<byte> data)
{
var bgpHeader = new BgpHeader(data);
Type = bgpHeader.Type;
var offset = data.Offset + ... |
Make StateChanged action more verbose in its arguments. | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
namespace osu.Framework.Graphics.Containers
{
/// <summary>
/// An element which starts hidden and can be toggled to visible.
... | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
namespace osu.Framework.Graphics.Containers
{
/// <summary>
/// An element which starts hidden and can be toggled to visible.
... |
Test for checking Fork update | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MailTest
{
public partial class LogOut : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
} | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MailTest
{
public partial class LogOut : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// Modifying fil... |
Fix bools not being parsed correctly from config (case sensitivity). | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
namespace osu.Framework.Configuration
{
public class BindableBool : Bindable<bool>
{
public BindableBool(bool value = false)
... | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
namespace osu.Framework.Configuration
{
public class BindableBool : Bindable<bool>
{
public BindableBool(bool value = false)
... |
Update TestCaseActiveState to cover Window.CursorInWindow state | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Platform;
using osuT... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Platform;
using osuT... |
Add comment about Exclusive tracks. | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Linq;
using osu.Framework.IO.Stores;
namespace osu.Framework.Audio.Track
{
public class TrackManager : AudioCollectio... | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using System.Linq;
using osu.Framework.IO.Stores;
namespace osu.Framework.Audio.Track
{
public class TrackManager : AudioCollectio... |
Make tests for delete collection methods. | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Arango.Test
{
[TestClass]
public class CollectionTests
{
[TestMethod]
public void TestMethod1()
{
}
}
}
| using System;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Arango.Client;
namespace Arango.Test
{
[TestClass]
public class CollectionTests
{
private ArangoDatabase _database;
public CollectionTests()
{
string alias = "test";
... |
Fix error when items had invariant language versions (versions compared could be incorrectly the default language instead of the invariant language) | using System;
using System.Linq;
using Sitecore.Data.Managers;
using Sitecore.Globalization;
namespace Unicorn.Data
{
public static class SourceItemExtensions
{
/// <summary>
/// Helper method to get a specific version from a source item, if it exists
/// </summary>
/// <returns>Null if the version does not... | using System;
using System.Linq;
namespace Unicorn.Data
{
public static class SourceItemExtensions
{
/// <summary>
/// Helper method to get a specific version from a source item, if it exists
/// </summary>
/// <returns>Null if the version does not exist or the version if it exists</returns>
public static... |
Add DetailedErrorPolicy in global configuration | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace Samesound
{
public class WebApiApplication : System.Web.HttpApplication
{
protected void Application_Star... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace Samesound
{
public class WebApiApplication : System.Web.HttpApplication
{
protected void Application_Star... |
Build SMA with version 0.0.0.0 | using System.Runtime.CompilerServices;
using System.Reflection;
[assembly:InternalsVisibleTo("Microsoft.PowerShell.Commands.Management")]
[assembly:InternalsVisibleTo("Microsoft.PowerShell.Commands.Utility")]
[assembly:InternalsVisibleTo("Microsoft.PowerShell.Security")]
[assembly:InternalsVisibleTo("Microsoft.PowerSh... | using System.Runtime.CompilerServices;
using System.Reflection;
[assembly:InternalsVisibleTo("Microsoft.PowerShell.Commands.Management")]
[assembly:InternalsVisibleTo("Microsoft.PowerShell.Commands.Utility")]
[assembly:InternalsVisibleTo("Microsoft.PowerShell.Security")]
[assembly:InternalsVisibleTo("Microsoft.PowerSh... |
Refactor to use linq expression | using System.Collections.Generic;
using System.IO;
using System.Linq;
using ICSharpCode.SharpZipLib.Tar;
namespace AppHarbor
{
public static class CompressionExtensions
{
public static void ToTar(this DirectoryInfo sourceDirectory, Stream output, string[] excludedDirectoryNames)
{
var archive = TarArchive.Cr... | using System.Collections.Generic;
using System.IO;
using System.Linq;
using ICSharpCode.SharpZipLib.Tar;
namespace AppHarbor
{
public static class CompressionExtensions
{
public static void ToTar(this DirectoryInfo sourceDirectory, Stream output, string[] excludedDirectoryNames)
{
var archive = TarArchive.Cr... |
Update Fun token image URL. | using Discord;
using Discord.Commands;
using System;
namespace CoinBot.Discord.Commands
{
public abstract class CommandBase : ModuleBase
{
protected static void AddAuthor(EmbedBuilder builder)
{
builder.WithAuthor(new EmbedAuthorBuilder
{
Name = "FunFair CoinBot - right click above to block",
Url ... | using Discord;
using Discord.Commands;
using System;
namespace CoinBot.Discord.Commands
{
public abstract class CommandBase : ModuleBase
{
protected static void AddAuthor(EmbedBuilder builder)
{
builder.WithAuthor(new EmbedAuthorBuilder
{
Name = "FunFair CoinBot - right click above to block",
Url ... |
Select first item by default in "Select Item" window | using System.Collections.Generic;
using System.Collections.ObjectModel;
using GalaSoft.MvvmLight;
namespace DesktopWidgets.WindowViewModels
{
public class SelectItemViewModel : ViewModelBase
{
private object _selectedItem;
public SelectItemViewModel(IEnumerable<object> items)
{
... | using System.Collections.Generic;
using System.Collections.ObjectModel;
using GalaSoft.MvvmLight;
namespace DesktopWidgets.WindowViewModels
{
public class SelectItemViewModel : ViewModelBase
{
private object _selectedItem;
public SelectItemViewModel(IEnumerable<object> items)
{
... |
Allow XR Plug-in Management settings to be configured post-build | using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.XR.Management;
using UnityEngine;
using UnityEngine.XR.Management;
namespace SuperSystems.UnityBuild
{
public class XRPluginManagement : BuildAction, IPreBuildAction, IPreBuildPerPlatformAction
{
[Header("XR Settings")... | using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.XR.Management;
using UnityEngine;
using UnityEngine.XR.Management;
namespace SuperSystems.UnityBuild
{
public class XRPluginManagement : BuildAction, IPreBuildPerPlatformAction, IPostBuildPerPlatformAction
{
[Header("X... |
Support responses for collectors, and commonise | using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using SurveyMonkey.Containers;
using SurveyMonkey.RequestSettings;
namespace SurveyMonkey
{
public partial class SurveyMonkeyApi
{
public List<Response> GetResponseOverviews(int id)
{
string endPoint = Stri... | using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using SurveyMonkey.Containers;
using SurveyMonkey.RequestSettings;
namespace SurveyMonkey
{
public partial class SurveyMonkeyApi
{
private enum SurveyOrCollector
{
Survey,
Collector
}
... |
Add connection pruning test (currently just fails) | using Medallion.Threading.Postgres;
using Microsoft.Data.SqlClient;
using Npgsql;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Medallion.Threading.Tests.Tests.Postg... | using Medallion.Threading.Postgres;
using Microsoft.Data.SqlClient;
using Npgsql;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Medallion.Threading.Tests.Tests.Postg... |
Write the top-level function for checking for updates | using System;
using System.IO;
namespace NSync.Client
{
public class UpdateManager
{
Func<string, Stream> openPath;
Func<string, IObservable<string>> downloadUrl;
public UpdateManager(string url,
Func<string, Stream> openPathMock = null,
Func<string, IObservabl... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using NSync.Core;
namespace NSync.Client
{
public class UpdateManager
{
Func<string, Stream> openPath;
Func<string, IObservable<string>> downloadUrl;
... |
Update namespace reference in unit comments | using System;
#pragma warning disable 1591
namespace E247.Fun
{
public struct Unit : IEquatable<Unit>
{
public static readonly Unit Value = new Unit();
public override int GetHashCode() =>
0;
public override bool Equals(object obj) =>
obj is Unit;
pu... | using System;
#pragma warning disable 1591
namespace E247.Fun
{
public struct Unit : IEquatable<Unit>
{
public static readonly Unit Value = new Unit();
public override int GetHashCode() =>
0;
public override bool Equals(object obj) =>
obj is Unit;
pu... |
Change AsNonNull to NotNull return | // 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... | // 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... |
Fix test failing after BDL -> `[Test]` 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.Linq;
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Game.Tournament.Screens.TeamWin;
namespace osu.Game.Tournament.Tests.Screens
{
publ... | // 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;
using osu.Game.Tournament.Screens.TeamWin;
namespace osu.Game.Tournament.Tests.Screens
{
publ... |
Add Email Setting Seed Items | using Portal.CMS.Entities.Entities.Settings;
using System.Collections.Generic;
using System.Linq;
namespace Portal.CMS.Entities.Seed
{
public static class SettingSeed
{
public static void Seed(PortalEntityModel context)
{
var settingList = context.Settings.ToList();
va... | using Portal.CMS.Entities.Entities.Settings;
using System.Collections.Generic;
using System.Linq;
namespace Portal.CMS.Entities.Seed
{
public static class SettingSeed
{
public static void Seed(PortalEntityModel context)
{
var settingList = context.Settings.ToList();
va... |
Add logging capability to serviceaware | using WebApiToTypeScript.Enums;
using WebApiToTypeScript.Interfaces;
using WebApiToTypeScript.Types;
namespace WebApiToTypeScript
{
public abstract class ServiceAware
{
protected string IHaveQueryParams = WebApiToTypeScript.IHaveQueryParams;
protected string IEndpoint = WebApiToTypeScript.IEndp... | using WebApiToTypeScript.Enums;
using WebApiToTypeScript.Interfaces;
using WebApiToTypeScript.Types;
namespace WebApiToTypeScript
{
public abstract class ServiceAware
{
protected string IHaveQueryParams = WebApiToTypeScript.IHaveQueryParams;
protected string IEndpoint = WebApiToTypeScript.IEndp... |
Add groups to the serialization | using System.Net;
using System.Threading.Tasks;
using FlatBuffers;
using InWorldz.Arbiter.Serialization;
using InWorldz.Chrysalis.Util;
namespace InWorldz.Chrysalis.Controllers
{
/// <summary>
/// Handles incoming requests related to geometry
/// </summary>
internal class GeometryController
{
... | using System.Net;
using System.Threading.Tasks;
using FlatBuffers;
using InWorldz.Arbiter.Serialization;
using InWorldz.Chrysalis.Util;
namespace InWorldz.Chrysalis.Controllers
{
/// <summary>
/// Handles incoming requests related to geometry
/// </summary>
internal class GeometryController
{
... |
Fix assert hit during OnInstantiated validation | using System;
using ModestTree;
namespace Zenject
{
[NoReflectionBaking]
public class InstantiateCallbackConditionCopyNonLazyBinder : ConditionCopyNonLazyBinder
{
public InstantiateCallbackConditionCopyNonLazyBinder(BindInfo bindInfo)
: base(bindInfo)
{
}
public... | using System;
using ModestTree;
namespace Zenject
{
[NoReflectionBaking]
public class InstantiateCallbackConditionCopyNonLazyBinder : ConditionCopyNonLazyBinder
{
public InstantiateCallbackConditionCopyNonLazyBinder(BindInfo bindInfo)
: base(bindInfo)
{
}
public... |
Remove a redundant UpdateLayout invocation | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;
namespace DotNetKit.Windows.Documents
{
/// <summary>
/... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;
namespace DotNetKit.Windows.Documents
{
/// <summary>
/... |
Reword taiko easy mod description to fit others better | // 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.Rulesets.Mods;
namespace osu.Game.Rulesets.Taiko.Mods
{
public class TaikoModEasy : ModEasy
{
public override string Description => @"Bea... | // 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.Rulesets.Mods;
namespace osu.Game.Rulesets.Taiko.Mods
{
public class TaikoModEasy : ModEasy
{
public override string Description => @"Bea... |
Add LayeredHitSamples skin config lookup | // 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.
namespace osu.Game.Skinning
{
public enum GlobalSkinConfiguration
{
AnimationFramerate
}
}
| // 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.
namespace osu.Game.Skinning
{
public enum GlobalSkinConfiguration
{
AnimationFramerate,
LayeredHitSounds,
}
}
|
Fix the order of the connect section | using GitHub.Api;
using GitHub.Models;
using GitHub.Services;
using Microsoft.TeamFoundation.Controls;
using System.ComponentModel.Composition;
namespace GitHub.VisualStudio.TeamExplorer.Connect
{
[TeamExplorerSection(GitHubConnectSection1Id, TeamExplorerPageIds.Connect, 11)]
[PartCreationPolicy(CreationPolic... | using GitHub.Api;
using GitHub.Models;
using GitHub.Services;
using Microsoft.TeamFoundation.Controls;
using System.ComponentModel.Composition;
namespace GitHub.VisualStudio.TeamExplorer.Connect
{
[TeamExplorerSection(GitHubConnectSection1Id, TeamExplorerPageIds.Connect, 10)]
[PartCreationPolicy(CreationPolic... |
Make it harder to accidentally reset prod database | using System;
using AnlabMvc.Models.Roles;
using AnlabMvc.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace AnlabMvc.Controllers
{
[Authorize(Roles = RoleCodes.Admin)]
public class SystemController : ApplicationController
... | using System;
using AnlabMvc.Models.Roles;
using AnlabMvc.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
namespace AnlabMvc.Controllers
{
[Authorize(Roles = RoleCodes.Admin)]
public class SystemController : ApplicationController
... |
Use HTML helper extension method for outputting an <input type="hidden"/> element | using System.Web.Mvc;
namespace RestfulRouting
{
public static class HtmlHelperExtensions
{
public static MvcHtmlString PutOverrideTag(this HtmlHelper html)
{
return MvcHtmlString.Create("<input type=\"hidden\" name=\"_method\" value=\"put\" />");
}
publ... | using System.Web.Mvc;
using System.Web.Mvc.Html;
namespace RestfulRouting
{
public static class HtmlHelperExtensions
{
public static MvcHtmlString PutOverrideTag(this HtmlHelper html)
{
return html.Hidden("_method", "put");
}
public static MvcHtmlString... |
Downgrade version to 0.6.0 again -- only update version upon actual release | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SQ... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SQ... |
Change Paddle direction to a float. | using UnityEngine;
public class PaddleController : MonoBehaviour {
[SerializeField]
private float _speed;
[SerializeField]
private Planet _planet;
[SerializeField]
private float _orbitAngle;
[SerializeField]
private float _orbitDistance;
public enum MoveDirection {
Left... | using UnityEngine;
public class PaddleController : MonoBehaviour {
[SerializeField]
private float _speed;
[SerializeField]
private Planet _planet;
[SerializeField]
private float _orbitAngle;
[SerializeField]
private float _orbitDistance;
[SerializeField, Range( -1, 1 )]
pri... |
Add API to get a user's active consultations. | // Copyright 2015 SnapMD, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or ag... | // Copyright 2015 SnapMD, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or ag... |
Use msbuild path from config.json if present | using System.IO;
using OmniSharp.Solution;
namespace OmniSharp.Build
{
public class BuildCommandBuilder
{
private readonly ISolution _solution;
public BuildCommandBuilder(ISolution solution)
{
_solution = solution;
}
public string Executable
{
... | using System.IO;
using OmniSharp.Solution;
namespace OmniSharp.Build
{
public class BuildCommandBuilder
{
private readonly ISolution _solution;
private readonly OmniSharpConfiguration _config;
public BuildCommandBuilder(
ISolution solution,
OmniSharpConfigurati... |
Fix typo in data object cloning. | using System;
using SQLite;
namespace Toggl.Phoebe.Data.DataObjects
{
[Table ("Project")]
public class ProjectData : CommonData
{
public ProjectData ()
{
}
public ProjectData (ProjectData other) : base (other)
{
Name = other.Name;
Color = oth... | using System;
using SQLite;
namespace Toggl.Phoebe.Data.DataObjects
{
[Table ("Project")]
public class ProjectData : CommonData
{
public ProjectData ()
{
}
public ProjectData (ProjectData other) : base (other)
{
Name = other.Name;
Color = oth... |
Refactor pagination to a common base class |
namespace Acme.Helpers
{
/// <summary>
/// Horizontal alignment options.
/// </summary>
public enum HorizontalAlignment { Left, Right, }
public enum PagerVerticalAlignment { Top, Bottom, Both }
}
|
namespace Acme.Helpers
{
/// <summary>
/// Horizontal alignment options.
/// </summary>
public enum HorizontalAlignment { Left, Right, }
}
|
Set improved ThreadPool values for nancy | using System;
using System.Collections.Generic;
using System.Web;
using Nancy;
using Nancy.ErrorHandling;
namespace NancyBenchmark
{
public class Global : HttpApplication
{
protected void Application_Start()
{
}
}
} | using System;
using System.Collections.Generic;
using System.Web;
using Nancy;
using Nancy.ErrorHandling;
using System.Threading;
namespace NancyBenchmark
{
public class Global : HttpApplication
{
protected void Application_Start()
{
var threads = 40 * Environment.ProcessorCount;
... |
Add new type of devices | // Copyright (c) 2018 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
namespace Wangkanai.Detection
{
public enum DeviceType
{
Desktop,
Tablet,
Mobile
}
} | // Copyright (c) 2018 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
namespace Wangkanai.Detection
{
public enum DeviceType
{
Desktop,
Tablet,
Mobile,
Tv,
Console,
Car
}
}
|
Make accuracy formatting more consistent | // 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.
namespace osu.Game.Utils
{
public static class FormatUtils
{
/// <summary>
/// Turns the provided accuracy into a percentage with 2 decimal places... | // 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.
namespace osu.Game.Utils
{
public static class FormatUtils
{
/// <summary>
/// Turns the provided accuracy into a percentage with 2 decimal places... |
Make power status properties abstract | // 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.
namespace osu.Game.Utils
{
/// <summary>
/// Provides access to the system's power status.
/// Currently implemented on iOS and Android only.
/// </summar... | // 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.
namespace osu.Game.Utils
{
/// <summary>
/// Provides access to the system's power status.
/// Currently implemented on iOS and Android only.
/// </summar... |
Add New Exception *() saftynet | using RestSharp;
using jRace.PrivateClass.Main;
Namespace Inject {
public class Inject {
file = new jRace.PrivateClass.Main();
brows = new jRace.PrivateClass.Brows();
private main() {
var browser = brows.runproc(get());
brows.getID(browser);
brows.Select(ID);
return(load);
... | using RestSharp;
using jRace.PrivateClass.Main;
Namespace Inject {
public class Inject {
file = new jRace.PrivateClass.Main();
brows = new jRace.PrivateClass.Brows();
private main() {
var browser = brows.runproc(get());
var bID = brows.getID(browser());
brows.Select(bID, int);
i... |
Fix async behavior of console program. | using System;
using System.Net.Http;
using System.Threading.Tasks;
using PortableWordPressApi;
namespace ApiConsole
{
class Program
{
static void Main(string[] args)
{
Task.WhenAll(AsyncMain());
Console.WriteLine("Press any key to close.");
Console.Read();
}
private static async Task AsyncMain()
... | using System;
using System.Net.Http;
using System.Threading.Tasks;
using PortableWordPressApi;
namespace ApiConsole
{
class Program
{
static void Main(string[] args)
{
Task.WaitAll(AsyncMain());
Console.WriteLine("Press any key to close.");
Console.Read();
}
private static async Task AsyncMain()
... |
Raise incoming event on the ThreadPool | using System;
using System.ServiceModel;
namespace Nvents.Services.Network
{
[ServiceBehavior(
InstanceContextMode = InstanceContextMode.Single,
ConcurrencyMode = ConcurrencyMode.Multiple)]
public class EventService : IEventService
{
public event EventHandler<EventPublishedEventArgs> EventPublished;... | using System;
using System.ServiceModel;
using System.Threading;
namespace Nvents.Services.Network
{
[ServiceBehavior(
InstanceContextMode = InstanceContextMode.Single,
ConcurrencyMode = ConcurrencyMode.Multiple)]
public class EventService : IEventService
{
public event EventHandler<EventPublishedE... |
Add NET Standard 1.6 API dependency | using Android.App;
using Android.Widget;
using Android.OS;
namespace MatXiTest.Droid
{
[Activity(Label = "MatXiTest", MainLauncher = true, Icon = "@mipmap/icon")]
public class MainActivity : Activity
{
int count = 1;
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanc... | using Android.App;
using Android.Widget;
using Android.OS;
using System.Security.Cryptography;
namespace MatXiTest.Droid
{
[Activity(Label = "MatXiTest", MainLauncher = true, Icon = "@mipmap/icon")]
public class MainActivity : Activity
{
int count = 1;
protected override void OnCreate(Bundle savedInstanceStat... |
Add Enabled = true, Exported = false | using System.Collections.Generic;
using Android.Content;
namespace Plugin.FirebasePushNotification
{
[BroadcastReceiver]
public class PushNotificationDeletedReceiver : BroadcastReceiver
{
public override void OnReceive(Context context, Intent intent)
{
IDictionary<string, objec... | using System.Collections.Generic;
using Android.Content;
namespace Plugin.FirebasePushNotification
{
[BroadcastReceiver(Enabled = true, Exported = false)]
public class PushNotificationDeletedReceiver : BroadcastReceiver
{
public override void OnReceive(Context context, Intent intent)
{
... |
Fix logic fail with IsNoFlip | using System;
namespace FezEngine.Structure {
public class Level {
public static bool IsNoFlat = false;
public bool orig_get_Flat() {
return false;
}
public bool get_Flat() {
return orig_get_Flat() || !IsNoFlat;
}
}
}
| using System;
namespace FezEngine.Structure {
public class Level {
public static bool IsNoFlat = false;
public bool orig_get_Flat() {
return false;
}
public bool get_Flat() {
return orig_get_Flat() && !IsNoFlat;
}
}
}
|
Include email possibility on server error page | @{
ViewBag.Title = "Er is iets fout gegaan";
}
<div id="top"></div>
<div class="row">
<div class="col-lg-4 col-md-3 col-sm-2 col-xs-2"></div>
<div class="col-lg-4 col-md-6 col-sm-8 col-xs-8">
<div class="panel panel-default dark">
<div class="panel-heading">
<h1 class... | @{
ViewBag.Title = "Er is iets fout gegaan";
}
<div id="top"></div>
<div class="row">
<div class="col-lg-4 col-md-3 col-sm-2 col-xs-2"></div>
<div class="col-lg-4 col-md-6 col-sm-8 col-xs-8">
<div class="panel panel-default dark">
<div class="panel-heading">
<h1 class... |
Check if the project names (new and old one) are the same. | using System;
using System.IO;
using System.Windows;
using System.Windows.Forms;
using EnvDTE;
using MessageBox = System.Windows.Forms.MessageBox;
namespace Twainsoft.SolutionRenamer.VSPackage.GUI
{
public partial class RenameProjectDialog
{
private Project CurrentProject { get; set; }
public... | using System;
using System.IO;
using System.Windows;
using System.Windows.Forms;
using EnvDTE;
using MessageBox = System.Windows.Forms.MessageBox;
namespace Twainsoft.SolutionRenamer.VSPackage.GUI
{
public partial class RenameProjectDialog
{
private Project CurrentProject { get; set; }
public... |
Fix an issue Tooltip does not show on the bottom right edge of the primary display | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CreviceApp.Core.Config
{
public class UserInterfaceConfig
{
public Func<Point, Point> TooltipPositionBinding;
public i... | using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace CreviceApp.Core.Config
{
public class UserInterfaceConfig
{
public Func<Point, Point> TooltipPositionBinding;
public i... |
Use GoogleCredential.CreateScoped to create test credentials | //
// Copyright 2019 Google LLC
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Ver... | //
// Copyright 2019 Google LLC
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Ver... |
Move to the new StripeBasicService instead of StripeService | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Stripe.Infrastructure;
namespace Stripe
{
public class StripeEphemeralKeyService : StripeService
{
public StripeEphemeralKeyService(string apiKey = null) : base(apiKey) { }
//Sync
public vir... | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Stripe.Infrastructure;
namespace Stripe
{
public class StripeEphemeralKeyService : StripeBasicService<StripeEphemeralKey>
{
public StripeEphemeralKeyService(string apiKey = null) : base(apiKey) { }
//... |
Add PlayerSpaceship to a level | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LevelManager : MonoBehaviour {
public EnemySpaceShip enemy;
public void SetupLevel() {
LayoutObject();
}
private void LayoutObject() {
Instantiate(enemy, new Vector3(9f, 0f, 0f)... | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LevelManager : MonoBehaviour {
public EnemySpaceShip enemy;
public PlayerSpaceShip player;
public void SetupLevel() {
LayoutObject();
}
private void LayoutObject() {
Instant... |
Build script now creates individual zip file packages to align with the NuGet packages and semantic versioning. | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18033
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... |
Set JSON as the default (and only) formatter | using System.Web.Http;
namespace Nora
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API configuration and services
// Web API routes
config.MapHttpAttributeRoutes();
config.Rout... | using System.Web.Http;
namespace Nora
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API configuration and services
// Web API routes
config.MapHttpAttributeRoutes();
config.Routes... |
Add implementation of enumerable interface for list responses. | namespace TraktApiSharp.Experimental.Responses
{
using Exceptions;
using System.Collections.Generic;
public class TraktListResponse<TContentType> : ATraktResponse<List<TContentType>>, ITraktResponseHeaders
{
public string SortBy { get; set; }
public string SortHow { get; set; }
... | namespace TraktApiSharp.Experimental.Responses
{
using Exceptions;
using System.Collections;
using System.Collections.Generic;
public class TraktListResponse<TContentType> : ATraktResponse<List<TContentType>>, ITraktResponseHeaders, IEnumerable<TContentType>
{
public string SortBy { get; s... |
Remove request HTTP method from logging | // © Alexander Kozlenko. Licensed under the MIT License.
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
using Serilog;
using Serilog.Events;
namespace Anemonis.MicrosoftOffice.AddinHost.Middleware
{
/// <summary>Represents request tracking... | // © Alexander Kozlenko. Licensed under the MIT License.
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
using Serilog;
using Serilog.Events;
namespace Anemonis.MicrosoftOffice.AddinHost.Middleware
{
/// <summary>Represents request tracking... |
Fix test assembly load path | using System.Collections.Generic;
using System.Reflection;
using Shouldly;
using Xunit;
namespace libpolyglot.Tests
{
public class Assembly_tests
{
public static IEnumerable<object[]> TestAssemblies()
{
yield return new object[] { "EmptyVB.dll", Language.Vb };
yield ret... | using System.Collections.Generic;
using System.IO;
using System.Reflection;
using Shouldly;
using Xunit;
namespace libpolyglot.Tests
{
public class Assembly_tests
{
public static IEnumerable<object[]> TestAssemblies()
{
yield return new object[] { "EmptyVB.dll", Language.Vb };
... |
Change http request total name to match Prometheus guidelines | namespace Prometheus.HttpExporter.AspNetCore.HttpRequestCount
{
public class HttpRequestCountOptions : HttpExporterOptionsBase
{
public Counter Counter { get; set; } =
Metrics.CreateCounter(DefaultName, DefaultHelp, HttpRequestLabelNames.All);
private const string DefaultNam... | namespace Prometheus.HttpExporter.AspNetCore.HttpRequestCount
{
public class HttpRequestCountOptions : HttpExporterOptionsBase
{
public Counter Counter { get; set; } =
Metrics.CreateCounter(DefaultName, DefaultHelp, HttpRequestLabelNames.All);
private const string DefaultNam... |
Order elements in some classes | using System;
namespace Gma.QrCodeNet.Encoding.Positioning.Stencils
{
internal abstract class PatternStencilBase : BitMatrix
{
protected const bool O = false;
protected const bool X = true;
internal PatternStencilBase(int version)
{
Version = version;
}
public int Version { get; private set; }
pu... | using System;
namespace Gma.QrCodeNet.Encoding.Positioning.Stencils
{
internal abstract class PatternStencilBase : BitMatrix
{
protected const bool O = false;
protected const bool X = true;
internal PatternStencilBase(int version)
{
Version = version;
}
public int Version { get; private set; }
pu... |
Fix point skipped during get points issue | namespace HelixToolkit.Wpf.SharpDX
{
using System;
using System.Collections.Generic;
using HelixToolkit.SharpDX.Shared.Utilities;
[Serializable]
public class PointGeometry3D : Geometry3D
{
public IEnumerable<Geometry3D.Point> Points
{
get
{
... | namespace HelixToolkit.Wpf.SharpDX
{
using System;
using System.Collections.Generic;
using HelixToolkit.SharpDX.Shared.Utilities;
[Serializable]
public class PointGeometry3D : Geometry3D
{
public IEnumerable<Geometry3D.Point> Points
{
get
{
... |
Allow to define host address in client | using System;
using System.ServiceModel;
using Service;
namespace Client
{
class Program
{
static void Main(string[] args)
{
var address = new EndpointAddress(new Uri("http://localhost:9000/MyService"));
var binding = new BasicHttpBinding();
var factory = n... | using System;
using System.ServiceModel;
using Service;
namespace Client
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter server address: ");
var hostAddress = Console.ReadLine();
var address = new EndpointAddress(new Uri(string.For... |
Add PrepaymentID to bank transaction | using System;
namespace XeroApi.Model
{
public class BankTransaction : EndpointModelBase
{
[ItemId]
public Guid? BankTransactionID { get; set; }
public Account BankAccount { get; set; }
public string Type { get; set; }
public string Reference { get; set; ... | using System;
namespace XeroApi.Model
{
public class BankTransaction : EndpointModelBase
{
[ItemId]
public Guid? BankTransactionID { get; set; }
public Account BankAccount { get; set; }
public string Type { get; set; }
public string Reference { get; set; ... |
Fix compilation after sdk api changes | using System;
using JetBrains.ReSharper.Plugins.Yaml.Psi.Tree;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.ExtensionsAPI.Tree;
using JetBrains.ReSharper.Psi.Parsing;
using JetBrains.ReSharper.Psi.Tree;
using JetBrains.Text;
using JetBrains.Util;
namespace JetBrains.ReSharper.Plugins.Yaml.Psi.Parsing
... | using System;
using JetBrains.ReSharper.Plugins.Yaml.Psi.Tree;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.ExtensionsAPI.Tree;
using JetBrains.ReSharper.Psi.Parsing;
using JetBrains.ReSharper.Psi.Tree;
using JetBrains.Text;
using JetBrains.Util;
namespace JetBrains.ReSharper.Plugins.Yaml.Psi.Parsing
... |
Allow logger and serializer to be set to null | using System;
using Foundatio.Serializer;
using Microsoft.Extensions.Logging;
namespace Foundatio {
public class SharedOptions {
public ISerializer Serializer { get; set; }
public ILoggerFactory LoggerFactory { get; set; }
}
public class SharedOptionsBuilder<TOption, TBuilder> : OptionsBui... | using System;
using Foundatio.Serializer;
using Microsoft.Extensions.Logging;
namespace Foundatio {
public class SharedOptions {
public ISerializer Serializer { get; set; }
public ILoggerFactory LoggerFactory { get; set; }
}
public class SharedOptionsBuilder<TOption, TBuilder> : OptionsBui... |
Update score manager to use UI's text | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
namespace WhoaAlgebraic
{
public class ScoreManager : MonoBehaviour
{
public static int score; // The player's score.
Text text; // Reference to the Text component.
void Awake()
{... | using UnityEngine;
using UnityEngine.UI;
namespace WhoaAlgebraic
{
public class ScoreManager : MonoBehaviour
{
public static int score; // The player's score.
public Text text; // Reference to the Text component.
void Awake()
{
// Res... |
Update the sample to listen on root addresses instead of a specific path. | using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.ServiceModel;
using System.ServiceModel.Web;
namespace Samples.Glitter
{
[ServiceContract]
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
publ... | using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.ServiceModel;
using System.ServiceModel.Web;
namespace Samples.Glitter
{
[ServiceContract]
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
publ... |
Fix test which is incorrect under x64, highlighted by previous commit | using System;
using ClrSpy.Native;
using NUnit.Framework;
namespace ClrSpy.UnitTests.Native
{
[TestFixture]
public class PointerUtilsTests
{
[TestCase(0x07fffffffL, Int32.MaxValue)]
[TestCase(0x080000000L, Int32.MinValue)]
[TestCase(0x000000001L, 1)]
[TestCase(0... | using System;
using System.Collections.Generic;
using ClrSpy.Native;
using NUnit.Framework;
namespace ClrSpy.UnitTests.Native
{
[TestFixture]
public class PointerUtilsTests
{
public static IEnumerable<LongToIntPtrCase> LongToIntPtrCases
{
get
{
... |
Add debugger display attributes for repository actions | using Newtonsoft.Json;
using System.Collections.Generic;
namespace RepoZ.Api.Common.Git
{
public class RepositoryActionConfiguration
{
[JsonProperty("repository-actions")]
public List<RepositoryAction> RepositoryActions { get; set; } = new List<RepositoryAction>();
[JsonProperty("file-assoc... | using Newtonsoft.Json;
using System.Collections.Generic;
namespace RepoZ.Api.Common.Git
{
public class RepositoryActionConfiguration
{
[JsonProperty("repository-actions")]
public List<RepositoryAction> RepositoryActions { get; set; } = new List<RepositoryAction>();
[JsonProperty("file-assoc... |
Rearrange order of ignoreroutes call | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace NServiceMVC.Examples.Todomvc
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801
publ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace NServiceMVC.Examples.Todomvc
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801
publ... |
Remove unused text transform helpers | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Transforms;
namespace osu.Game.Graphics.Sprites
{
public class OsuS... | // 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.Sprites;
namespace osu.Game.Graphics.Sprites
{
public class OsuSpriteText : SpriteText
{
public OsuSpriteText()
{
... |
Fix error when launching missing files | #region
using System.Diagnostics;
using System.IO;
using DesktopWidgets.Classes;
#endregion
namespace DesktopWidgets.Helpers
{
internal static class ProcessHelper
{
public static void Launch(string path, string args = "", string startIn = "",
ProcessWindowStyle style = ProcessWindowStyle... | #region
using System.Diagnostics;
using System.IO;
using DesktopWidgets.Classes;
#endregion
namespace DesktopWidgets.Helpers
{
internal static class ProcessHelper
{
public static void Launch(string path, string args = "", string startIn = "",
ProcessWindowStyle style = ProcessWindowStyle... |
Add setter to Proxy property. | #region
using System.Net;
using Tabster.Core.Data.Processing;
using Tabster.Core.Types;
#endregion
namespace Tabster.Core.Searching
{
/// <summary>
/// Tab service which enables searching.
/// </summary>
public interface ISearchService
{
/// <summary>
/// Serv... | #region
using System.Net;
using Tabster.Core.Data.Processing;
using Tabster.Core.Types;
#endregion
namespace Tabster.Core.Searching
{
/// <summary>
/// Tab service which enables searching.
/// </summary>
public interface ISearchService
{
/// <summary>
/// Serv... |
Fix test assertion for hostname to ip resolver | using System.Net.Sockets;
using System.Threading.Tasks;
using RapidCore.Network;
using Xunit;
namespace RapidCore.UnitTests.Network
{
public class HostnameToIpResolverTest
{
[Fact]
public async Task HostnameToIpResolver_can_resolveAsync()
{
var resolver = new HostnameToIpRe... | using System.Net.Sockets;
using System.Threading.Tasks;
using RapidCore.Network;
using Xunit;
namespace RapidCore.UnitTests.Network
{
public class HostnameToIpResolverTest
{
[Fact]
public async Task HostnameToIpResolver_can_resolveAsync()
{
var resolver = new HostnameToIpRe... |
Add bundle optimization on release | using System.Web;
using System.Web.Optimization;
namespace Borderlands2GoldendKeys
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.A... | using System.Web;
using System.Web.Optimization;
namespace Borderlands2GoldendKeys
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.A... |
Add CanManagePlots on project creation | using System;
namespace JoinRpg.DataModel
{
// ReSharper disable once ClassWithVirtualMembersNeverInherited.Global (required by LINQ)
public class ProjectAcl
{
public int ProjectAclId { get; set; }
public int ProjectId { get; set; }
public virtual Project Project { get; set; }
public int User... | using System;
namespace JoinRpg.DataModel
{
// ReSharper disable once ClassWithVirtualMembersNeverInherited.Global (required by LINQ)
public class ProjectAcl
{
public int ProjectAclId { get; set; }
public int ProjectId { get; set; }
public virtual Project Project { get; set; }
public int User... |
Change raycast provider tests to use PlaymodeTestUtilities instead of TestUtilities | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#if !WINDOWS_UWP
using Microsoft.MixedReality.Toolkit.Input;
using Microsoft.MixedReality.Toolkit.Physics;
using NUnit.Framework;
using System.Collections;
using Uni... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#if !WINDOWS_UWP
using Microsoft.MixedReality.Toolkit.Input;
using Microsoft.MixedReality.Toolkit.Physics;
using NUnit.Framework;
using System.Collections;
using Uni... |
Fix build error after merge | using System;
using System.Collections.Generic;
using NSaga;
namespace Benchmarking
{
/// <summary>
/// Saga repository only for benchmarking.
/// Does not really store anything
/// </summary>
internal class FastSagaRepository : ISagaRepository
{
private readonly ISagaFactory sagaFact... | using System;
using System.Collections.Generic;
using NSaga;
namespace Benchmarking
{
/// <summary>
/// Saga repository only for benchmarking.
/// Does not really store anything
/// </summary>
internal class FastSagaRepository : ISagaRepository
{
private readonly ISagaFactory sagaFact... |
Add action "Show Error" option | using System;
using System.ComponentModel;
using System.Windows;
using DesktopWidgets.Classes;
namespace DesktopWidgets.Actions
{
public abstract class ActionBase
{
[DisplayName("Delay")]
public TimeSpan Delay { get; set; } = TimeSpan.FromSeconds(0);
public void Execute()
{
... | using System;
using System.ComponentModel;
using System.Windows;
using DesktopWidgets.Classes;
namespace DesktopWidgets.Actions
{
public abstract class ActionBase
{
[DisplayName("Delay")]
public TimeSpan Delay { get; set; } = TimeSpan.FromSeconds(0);
[DisplayName("Show Errors")]
... |
Clean up some use of Approval tests. | using ApprovalTests.Reporters;
using Gibberish.AST._1_Bare;
using Gibberish.Parsing;
using Gibberish.Tests.ZzTestHelpers;
using NUnit.Framework;
namespace Gibberish.Tests.RecognizeBlockSyntax
{
[TestFixture]
public class InterpretWholeFile
{
[Test, UseReporter(typeof(QuietReporter))]
public void should_accept_... | using ApprovalTests.Reporters;
using Gibberish.AST._1_Bare;
using Gibberish.Parsing;
using Gibberish.Tests.ZzTestHelpers;
using NUnit.Framework;
namespace Gibberish.Tests.RecognizeBlockSyntax
{
[TestFixture]
public class InterpretWholeFile
{
[Test]
public void should_accept_multiple_language_constructs()
{
... |
Add CommandDate so it is deserialized from the JSON response | namespace MultiMiner.MobileMiner.Api
{
public class RemoteCommand
{
public int Id { get; set; }
public string CommandText { get; set; }
}
}
| using System;
namespace MultiMiner.MobileMiner.Api
{
public class RemoteCommand
{
public int Id { get; set; }
public string CommandText { get; set; }
public DateTime CommandDate { get; set; }
}
}
|
Test discovery skips over abstract base classes. | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace PCLTesting.Infrastructure
{
public class TestDiscoverer
{
public IEnumerable<Test> DiscoverTests(Assembly assembly)
{
List<Test> ret = new List<Test>();
foreach (Type type in assembly... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace PCLTesting.Infrastructure
{
public class TestDiscoverer
{
public IEnumerable<Test> DiscoverTests(Assembly assembly)
{
List<Test> ret = new List<Test>();
foreach (Type type in assembly... |
Remove unused code from quick-start guide example project. | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using LearnositySDK.Request;
using LearnositySDK.Utils;
// static LearnositySDK.Credentials;
namespace LearnosityDemo.Pages
{
public class Ite... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using LearnositySDK.Request;
using LearnositySDK.Utils;
// static LearnositySDK.Credentials;
namespace LearnosityDemo.Pages
{
public class Ite... |
Fix memory patterns saving when not playing. | using osu_StreamCompanion.Code.Core.DataTypes;
using osu_StreamCompanion.Code.Interfaces;
namespace osu_StreamCompanion.Code.Modules.MapDataGetters.FileMap
{
public class FileMapDataGetter : IModule, IMapDataGetter
{
public bool Started { get; set; }
private readonly FileMapManager _fileMapMan... | using osu_StreamCompanion.Code.Core.DataTypes;
using osu_StreamCompanion.Code.Interfaces;
namespace osu_StreamCompanion.Code.Modules.MapDataGetters.FileMap
{
public class FileMapDataGetter : IModule, IMapDataGetter
{
public bool Started { get; set; }
private readonly FileMapManager _fileMapMan... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.