doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
d6ce95b7-8fa9-4513-9e85-db3a26c223ce
{ "language": "C#" }
```c# using NuGetGallery.FunctionTests.Helpers; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NuGetGallery.FunctionalTests { internal static class Constants { #region FormFields internal const string ConfirmPasswor...
```c# using NuGetGallery.FunctionTests.Helpers; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NuGetGallery.FunctionalTests { internal static class Constants { #region FormFields internal const string ConfirmPasswor...
4a7ceaa1-735e-42a9-9c41-94db1878a440
{ "language": "C#" }
```c# using System; using System.Threading; using System.Reflection; using System.Diagnostics; using NLog; namespace Bifrost { public class Utilities { private static Logger Log = LogManager.GetCurrentClassLogger(); /// <summary> /// Starts a new thread with the given delegate. Usefu...
```c# using System; using System.Threading; using System.Reflection; using System.Diagnostics; using NLog; namespace Bifrost { public class Utilities { private static Logger Log = LogManager.GetCurrentClassLogger(); /// <summary> /// Starts a new thread with the given delegate. Usefu...
eb01e9c2-6953-4860-b397-9556f99f94b9
{ "language": "C#" }
```c# // 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. namespace Microsoft.CodeAnalysis.FindUsages { /// <summary> /// Information about a symbol's referenc...
```c# // 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. namespace Microsoft.CodeAnalysis.FindUsages { /// <summary> /// Information about a symbol's referenc...
b592038a-db28-46eb-bd6a-00e33de32526
{ "language": "C#" }
```c# using System; using CanoePoloLeagueOrganiser; using System.Collections.Generic; using System.Linq; using Xunit; namespace CanoePoloLeagueOrganiserTests { public class RubyInspiredListFunctionsTests { [Fact] public void EachCons2() { var list = new List<int> { 1, 2, 3,...
```c# using System; using CanoePoloLeagueOrganiser; using System.Collections.Generic; using System.Linq; using Xunit; namespace CanoePoloLeagueOrganiserTests { public class RubyInspiredListFunctionsTests { [Fact] public void EachCons2() { var list = new List<int> { 1, 2, 3,...
2227ffd3-da84-4ff1-a884-eaa9c8a8a06b
{ "language": "C#" }
```c# // 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.Runtime; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; namespace osu.Game.Performance { public clas...
```c# // 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; namespace osu.Game.Performance { public class HighPerformanceSessi...
15dd5adc-ce16-4875-8bed-3e66ee7d5b64
{ "language": "C#" }
```c# using System; using System.Linq.Expressions; using System.Web.Mvc; using BForms.Grid; using BForms.Models; namespace BForms.Html { public static class BsPagerExtensions { public static BsGridPagerBuilder BsPager(this HtmlHelper html, BsPagerModel model, BsPagerSettings pagerSettings) { ...
```c# using System; using System.Linq.Expressions; using System.Web.Mvc; using BForms.Grid; using BForms.Models; namespace BForms.Html { public static class BsPagerExtensions { public static BsGridPagerBuilder BsPager(this HtmlHelper html, BsPagerModel model) { var builder = new Bs...
e1ebed75-526b-411a-b2f2-644ff6617b75
{ "language": "C#" }
```c# // Copyright 2006 Alp Toker <alp@atoker.com> // This software is made available under the MIT License // See COPYING for details using System; using NDesk.DBus; using org.freedesktop.DBus; public class ManagedDBusTest { public static void Main (string[] args) { string addr; if (args.Length == 0) addr =...
```c# // Copyright 2006 Alp Toker <alp@atoker.com> // This software is made available under the MIT License // See COPYING for details using System; using NDesk.DBus; using org.freedesktop.DBus; public class ManagedDBusTest { public static void Main (string[] args) { Connection conn; if (args.Length == 0) c...
b40b085f-7823-4d5f-89f6-f58885778e49
{ "language": "C#" }
```c# // 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; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; namespace Microsoft.VisualStudio.IntegrationTest.Utiliti...
```c# // 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; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; namespace Microsoft.VisualStudio.IntegrationTest.Utiliti...
17ae7a7f-5ab3-404e-894a-fd341eea78bb
{ "language": "C#" }
```c# namespace Microsoft.AspNetCore.Hosting { using Microsoft.ApplicationInsights.AspNetCore.Extensions; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; internal class DefaultApplicationInsightsServiceConfigureOptions :...
```c# namespace Microsoft.AspNetCore.Hosting { using System.Diagnostics; using Microsoft.ApplicationInsights.AspNetCore.Extensions; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; internal class DefaultApplicationIns...
a8165463-ad87-4be9-988a-c96ccfc07192
{ "language": "C#" }
```c# using System; namespace it.unifi.dsi.stlab.networkreasoner.gas.system.terranova { public class VersioningInfo { /// <summary> /// Gets the version number. /// /// Here are the stack of versions with a brief description: /// /// v1.1.0: introduce pressure regulator gadget for edges. /// /// v...
```c# using System; namespace it.unifi.dsi.stlab.networkreasoner.gas.system.terranova { public class VersioningInfo { /// <summary> /// Gets the version number. /// /// Here are the stack of versions with a brief description: /// /// v1.1.1: tuning computational parameter to handle middle and low press...
c5b5b566-ed52-4444-8075-c89c3e0a6e8f
{ "language": "C#" }
```c# namespace Saule { /// <summary> /// Represents a related resource (to-one or to-many). /// </summary> public abstract class ResourceRelationship { /// <summary> /// Initializes a new instance of the <see cref="ResourceRelationship"/> class. /// </summary> ///...
```c# namespace Saule { /// <summary> /// Represents a related resource (to-one or to-many). /// </summary> public abstract class ResourceRelationship { /// <summary> /// Initializes a new instance of the <see cref="ResourceRelationship"/> class. /// </summary> ///...
2bd9a070-5537-4ae3-b58a-a04d3a08ed5e
{ "language": "C#" }
```c# @model SFA.DAS.EmployerAccounts.Web.ViewModels.VacancyViewModel <section class="dashboard-section"> <h2 class="section-heading heading-large"> Your apprenticeship advert </h2> <p>You have created a vacancy for your apprenticeship.</p> <table class="responsive"> <tr> ...
```c# @model SFA.DAS.EmployerAccounts.Web.ViewModels.VacancyViewModel <section class="dashboard-section"> <h2 class="section-heading heading-large"> Your apprenticeship advert </h2> <p>You have created a vacancy for your apprenticeship.</p> <table class="responsive"> <tr> ...
261d9c73-d3fc-4825-bc74-4e7a440b0694
{ "language": "C#" }
```c# // 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.Scoring; namespace osu.Game.Rulesets.Taiko.Judgements { public class TaikoDrumRollTickJudgement : TaikoJudgement { public ...
```c# // 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.Scoring; namespace osu.Game.Rulesets.Taiko.Judgements { public class TaikoDrumRollTickJudgement : TaikoJudgement { public ...
d5df636e-0450-4975-a6ab-15da710b83f2
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using OpenTK; using OpenTK.Graphics; using osu.Framework.Configuration; using osu.Framework.Graphics; using osu.Framework.Graphics.Container...
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using OpenTK; using OpenTK.Graphics; using osu.Framework.Configuration; using osu.Framework.Graphics; using osu.Framework.Graphics.Container...
c070e678-c5b4-45e6-b1a5-645733d44b0d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Autofac; using GeoChallenger.Commands.Commands; using GeoChallenger.Commands.Config; using NLog; namespace GeoChallenger.Commands { class Program { private static readonly L...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Autofac; using GeoChallenger.Commands.Commands; using GeoChallenger.Commands.Config; using NLog; using NLog.Fluent; namespace GeoChallenger.Commands { class Program { privat...
c81d8dc6-9ffc-4404-90b6-dd73070a93b4
{ "language": "C#" }
```c# namespace Stripe { using Newtonsoft.Json; public class SubscriptionListOptions : ListOptionsWithCreated { /// <summary> /// The billing mode of the subscriptions to retrieve. One of <see cref="Billing" />. /// </summary> [JsonProperty("billing")] public Billing...
```c# namespace Stripe { using System; using Newtonsoft.Json; public class SubscriptionListOptions : ListOptionsWithCreated { /// <summary> /// The billing mode of the subscriptions to retrieve. One of <see cref="Billing" />. /// </summary> [JsonProperty("billing")] ...
a13c2893-d93c-4a9d-a379-2b2f2460e682
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using Swashbuckle.AspNetCore.Swagger; using Swashbuckle.AspNetCore.SwaggerGen; using Abp.Authorization; namespace AbpCompanyName.AbpProjectName.Web.Host.Startup { public class SecurityRequirementsOperationFilter : IOperationFilter { public void...
```c# using System.Collections.Generic; using System.Linq; using Swashbuckle.AspNetCore.Swagger; using Swashbuckle.AspNetCore.SwaggerGen; using Abp.Authorization; namespace AbpCompanyName.AbpProjectName.Web.Host.Startup { public class SecurityRequirementsOperationFilter : IOperationFilter { public void...
023cd7a1-18de-428b-8bca-f4caa2063aca
{ "language": "C#" }
```c# // Copyright 2018 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
```c# // Copyright 2018 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
21c588b3-81c3-4aaa-bbec-f11988044eba
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Glimpse.Core.Framework { public class GlimpseMetadata { public GlimpseMetadata() { Plugins = new Dictionary<string, PluginMetadata>(); Resources = new Dictionary<string, string>//TODO: once the resources below are implem...
```c# using System.Collections.Generic; namespace Glimpse.Core.Framework { public class GlimpseMetadata { public GlimpseMetadata() { Plugins = new Dictionary<string, PluginMetadata>(); Resources = new Dictionary<string, string>//TODO: once the resources below are implem...
73e4037c-1449-4bf9-ad0f-7777740a3f83
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.CodeAnalysis.Editor { internal static class ContentTypeNames { public const string CSharpContentType = "CSharp"; ...
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.CodeAnalysis.Editor { internal static class ContentTypeNames { public const string CSharpContentType = "CSharp"; ...
070c85d0-5f81-4b86-b385-bbc7ca5801b2
{ "language": "C#" }
```c# // 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.Game.Overlays; using osu.Game.Overlays.Settings; using osu.Ga...
```c# // 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.Game.Overlays; using osu.Game.Overlays.Settings; using osu.Ga...
dc0be36a-ae6a-4e5c-b2f3-764b0f93cfcb
{ "language": "C#" }
```c# using System; using System.ComponentModel; using Windows.ApplicationModel; #if WINDOWS_UWP namespace Xamarin.Forms.Platform.UWP #else namespace Xamarin.Forms.Platform.WinRT #endif { public abstract class WindowsBasePage : Windows.UI.Xaml.Controls.Page { public WindowsBasePage() { Windows.UI.Xaml.Appl...
```c# using System; using System.ComponentModel; using Windows.ApplicationModel; #if WINDOWS_UWP namespace Xamarin.Forms.Platform.UWP #else namespace Xamarin.Forms.Platform.WinRT #endif { public abstract class WindowsBasePage : Windows.UI.Xaml.Controls.Page { public WindowsBasePage() { if (!DesignMode.Desi...
97349667-4f58-4cbb-a2f9-4a3b1dc53e10
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Chq.OAuth.Credentials; namespace Chq.OAuth { public sealed class Client { private OAuthContext _context; public OAuthContext Context { get { retur...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Chq.OAuth.Credentials; using System.Reflection; namespace Chq.OAuth { public sealed class Client { private OAuthContext _context; public OAuthContext Context ...
6723243d-7386-41c3-935c-67487cea6f12
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Scoring; using osu.Game.Rulesets.UI; namespace osu.Game.Rulesets.Catch.Scoring { inte...
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Beatmaps; using osu.Game.Rulesets.Catch.Judgements; using osu.Game.Rulesets.Catch.Objects; using osu.Game.Rulesets.Objects.Drawables; using ...
0d2919d4-c669-425b-a0c6-8db944f438b3
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Hosting; using MQTTnet.Adapter; using MQTTnet.Diagnostics; using MQTTnet.Server; namespace MQTTnet.AspNetCore { public class MqttHostedServer : MqttServer, IHostedService { ...
```c# using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Hosting; using MQTTnet.Adapter; using MQTTnet.Diagnostics; using MQTTnet.Server; namespace MQTTnet.AspNetCore { public class MqttHostedServer : MqttServer, IHostedService { ...
5628c902-c95a-4e4c-806b-418554e3c64b
{ "language": "C#" }
```c# @model PickupMailViewer.Models.MailModel <div> <div>From: @Model.FromAddress</div> <div>To: @Model.ToAddress</div> <div>Sent date: @Html.DisplayFor(m => m.SentOn)</div> <div>Subject: @Model.Subject</div> <hr /> <div class="mail-body">@Model.Body</div> <hr /> @Html.ActionLink("Dow...
```c# @model PickupMailViewer.Models.MailModel <div> @Html.ActionLink("Download mail", "DownloadMail", new { mailId = @Model.MailId }) <hr /> <div>From: @Model.FromAddress</div> <div>To: @Model.ToAddress</div> <div>Sent date: @Html.DisplayFor(m => m.SentOn)</div> <div>Subject: @Model.Subject</...
f85996e1-8271-4802-a190-8c5cb558e4d1
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace War { class VesselSetter { private List<Vessel> _Vessels; private int _ProcessorsNumber; public VesselSetter(List<Instruction> i...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections; namespace War { class VesselSetter { private List<Vessel> _Vessels; private int _ProcessorsNumber; public VesselSetter(List<Instruction> i...
18936f7d-221f-4fa8-940a-a2ee0116c4fc
{ "language": "C#" }
```c# using Discord.Commands; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace portalbot.Commands { public class AskModule : ModuleBase { private List<string> _answers = new List<string> { "It is certain.", "It is decid...
```c# using Discord.Commands; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace portalbot.Commands { public class AskModule : ModuleBase { private List<string> _answers = new List<string> { "It is certain.", "It is decid...
7f0d3b4d-89d8-43ac-ba63-a42c13d27dc6
{ "language": "C#" }
```c# using Moq; using SFA.DAS.EAS.TestCommon.DbCleanup; using SFA.DAS.EAS.TestCommon.DependencyResolution; using SFA.DAS.EAS.Web; using SFA.DAS.EAS.Web.Authentication; using SFA.DAS.Messaging; using StructureMap; using TechTalk.SpecFlow; namespace SFA.DAS.EAS.Transactions.AcceptanceTests.Steps.CommonSteps { [Bin...
```c# using Moq; using SFA.DAS.EAS.TestCommon.DbCleanup; using SFA.DAS.EAS.TestCommon.DependencyResolution; using SFA.DAS.EAS.Web; using SFA.DAS.EAS.Web.Authentication; using SFA.DAS.Messaging; using StructureMap; using TechTalk.SpecFlow; namespace SFA.DAS.EAS.Transactions.AcceptanceTests.Steps.CommonSteps { [Bin...
470a4cab-7b9e-4cbb-9623-877a50e6c799
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using Spk.Common.Helpers.Guard; namespace Spk.Common.Helpers.Service { public class ServiceResult { public IEnumerable<string> Errors => _internalErrors; private readonly List<string> _internalErrors = new List<string>(); publi...
```c# using System.Collections.Generic; using System.Linq; using Spk.Common.Helpers.Guard; namespace Spk.Common.Helpers.Service { public class ServiceResult { public IEnumerable<string> Errors => _internalErrors; private readonly List<string> _internalErrors = new List<string>(); publi...
937b8cf7-278f-42c8-bb1e-ca3b5105c5ea
{ "language": "C#" }
```c# //------------------------------------------------------------------------------ // <copyright // file="Generator.cs" // company="Schley Andrew Kutz"> // Copyright (c) Schley Andrew Kutz. All rights reserved. // </copyright> // <authors> // <author>Schley Andrew Kutz</author> // </authors> //--------------...
```c# //------------------------------------------------------------------------------ // <copyright // file="FileRunner.cs" // company="enckse"> // Copyright (c) All rights reserved. // </copyright> //------------------------------------------------------------------------------ namespace StyleCopCmd.Core { /...
5644fff2-3ec1-4690-b121-6824c472d88d
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK.Graphics; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics....
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK.Graphics; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics....
7e046151-92d7-415a-a1de-c8a88af73a68
{ "language": "C#" }
```c# // 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.IO.Network; using osu.Game.Beatmaps; namespace osu.Game.Online.API.Requests { public class DownloadBeatmapSetRequest : ArchiveDownloadRequ...
```c# // 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.IO.Network; using osu.Game.Beatmaps; namespace osu.Game.Online.API.Requests { public class DownloadBeatmapSetRequest : ArchiveDownloadRequ...
bc273d92-ddfa-4a9f-8bf1-fe35b81127b3
{ "language": "C#" }
```c# using System.Linq; using System.Threading.Tasks; using TeamCityApi.Helpers; using TeamCityApi.Logging; namespace TeamCityApi.UseCases { public class DeleteClonedBuildChainUseCase { private static readonly ILog Log = LogProvider.GetLogger(typeof(DeleteClonedBuildChainUseCase)); private r...
```c# using System.Linq; using System.Threading.Tasks; using TeamCityApi.Helpers; using TeamCityApi.Logging; namespace TeamCityApi.UseCases { public class DeleteClonedBuildChainUseCase { private static readonly ILog Log = LogProvider.GetLogger(typeof(DeleteClonedBuildChainUseCase)); private r...
c0ec5796-1034-4adb-a575-13b308f6ad62
{ "language": "C#" }
```c# using System; using System.Web; namespace Stampsy.ImageSource { public class AssetDescription : IDescription { public enum AssetImageKind { Thumbnail, FullResolution } public AssetImageKind Kind { get; private set; } public string AssetUrl ...
```c# using System; using System.Web; namespace Stampsy.ImageSource { public class AssetDescription : IDescription { public enum AssetImageKind { Thumbnail, FullResolution } public AssetImageKind Kind { get; private set; } public string AssetUrl ...
3cd8ab7f-35a9-4694-be5a-d852812d0049
{ "language": "C#" }
```c# //----------------------------------------------------------------------- // <copyright file="WebConfiguration.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: https://cslanet.com // </copyright> // <summary>Implement extension methods for .NET Core configuration<...
```c# //----------------------------------------------------------------------- // <copyright file="WebConfiguration.cs" company="Marimer LLC"> // Copyright (c) Marimer LLC. All rights reserved. // Website: https://cslanet.com // </copyright> // <summary>Implement extension methods for .NET Core configuration<...
edbc1cc1-6a70-471f-b041-a4ab467d75bc
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Oxide.Core.Libraries.Covalence { /// <summary> /// Represents a generic player manager /// </summary> public interface IPlayerManager { #region Player Finding /// <summary> /// Gets all players /// </summary> ...
```c# using System.Collections.Generic; namespace Oxide.Core.Libraries.Covalence { /// <summary> /// Represents a generic player manager /// </summary> public interface IPlayerManager { #region Player Finding /// <summary> /// Gets all players /// </summary> ...
091760d1-45ed-40a0-a935-f304bd4b0a00
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; namespace Glimpse.Agent { public interface IAgentBroker { IObservable<MessageListenerOptions> Listen<T>(); IObservable<MessageListenerOptions> ListenIncludeLatest<T>(); void SendMessage(object message); } }``` Add some extra opti...
```c# using System; using System.Threading.Tasks; namespace Glimpse.Agent { public interface IAgentBroker { IObservable<MessageListenerOptions> Listen<T>(); IObservable<MessageListenerOptions> ListenIncludeLatest<T>(); IObservable<MessageListenerOptions> ListenAll(); IObserv...
536bd92e-9c87-45cb-bad4-ae2e156e71b0
{ "language": "C#" }
```c# namespace Curse.NET.SocketModel { public enum RequestType { Login = -2101997347, } public enum ResponseType { UserActivityChange = 1260535191, ChannelReference = -695526586, ChatMessage = -635182161, Login = -815187584, UnknownChange = 149631008 } } //``` Add some more message types
```c# namespace Curse.NET.SocketModel { public enum RequestType { Login = -2101997347, } public enum ResponseType { ChannelStatusChanged = 72981382, UserActivityChange = 1260535191, ChannelMarkedRead = -695526586, ChatMessage = -635182161, Login = -815187584, MessageChanged = 149631008, Unknown1 ...
0b0c7c89-60f8-4cbd-af15-5389d45be55e
{ "language": "C#" }
```c# @using SFA.DAS.EmployerAccounts.Web.Extensions <script type="text/javascript"> window.zESettings = { webWidget: { contactForm: { attachments: false }, chat: { menuOptions: { emailTranscript: false ...
```c# @using SFA.DAS.EmployerAccounts.Web.Extensions <script type="text/javascript"> window.zESettings = { webWidget: { contactForm: { attachments: false }, chat: { menuOptions: { emailTranscript: false ...
4ea9d0e1-75b8-4961-9f58-157d1d7c751d
{ "language": "C#" }
```c# namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Post.Bodyless; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Objects.Get.Us...
```c# namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Post.Bodyless; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Objects.Get.Us...
a422d596-f151-4f55-a6f8-e86ceda78449
{ "language": "C#" }
```c# using System.Threading.Tasks; using TTMouseclickSimulator.Core.Environment; namespace TTMouseclickSimulator.Core.ToontownRewritten.Actions { public class MouseHelpers { public static readonly Size ReferenceWindowSize = new Size(1600, 1151); public static async Task DoSimpleMouseClickAsy...
```c# using System.Threading.Tasks; using TTMouseclickSimulator.Core.Environment; namespace TTMouseclickSimulator.Core.ToontownRewritten.Actions { public class MouseHelpers { public static readonly Size ReferenceWindowSize = new Size(1600, 1151); public static async Task DoSimpleMouseClickAsy...
ae30d584-ed27-4e81-9446-3703f670c7e8
{ "language": "C#" }
```c#  using System.Collections; using System.Collections.Generic; using UnityEngine; using NitorInc.Utility; namespace NitorInc.YuukaWater { public class YuukaWaterWaterdrop : MonoBehaviour { public float scaleSpeed = 1.0f; public GameObject sprayEffect; Rigidbody2D rigid; pri...
```c#  using System.Collections; using System.Collections.Generic; using UnityEngine; using NitorInc.Utility; namespace NitorInc.YuukaWater { public class YuukaWaterWaterdrop : MonoBehaviour { public float scaleSpeed = 1.0f; public GameObject sprayEffect; Rigidbody2D rigid; pri...
e64aef0f-06d2-40b7-b746-c2f69a186ed9
{ "language": "C#" }
```c# using System.IO; using Microsoft.AspNetCore.Hosting; using NLog; namespace HelloWorldApp { public class Program { // Entry point for the application. public static void Main(string[] args) { SetupNLog(); var host = new WebHostBuilder() .Use...
```c# using System.IO; using Microsoft.AspNetCore.Hosting; using NLog; namespace HelloWorldApp { public class Program { // Entry point for the application. public static void Main(string[] args) { SetupNLog(); var host = new WebHostBuilder() .Use...
d52de768-7b61-4883-a906-30b7129d4149
{ "language": "C#" }
```c# using AutoMapper; using Baskerville.App.App_Start; 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 Baskerville.App { public class MvcApplication : HttpApplicat...
```c# using AutoMapper; using Baskerville.App.App_Start; using Baskerville.Services; 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 Baskerville.App { public class M...
e987b486-3364-4f38-a1b1-2be025177708
{ "language": "C#" }
```c# using System; using System.Collections.Generic; public class CircularBuffer<T> { private readonly Queue<T> _buffer; private readonly int _capacity; public CircularBuffer(int capacity) { _buffer = new Queue<T>(capacity); _capacity = capacity; } public T Read() { ...
```c# using System; using System.Collections.Generic; public class CircularBuffer<T> { private readonly Queue<T> _buffer; private readonly int _capacity; public CircularBuffer(int capacity) { _buffer = new Queue<T>(capacity); _capacity = capacity; } public T Read() => _buffer....
9f36ba05-7ea0-47d2-9ce4-75eace55dd6a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using MongoDB.Bson.Serialization; using MongoFramework.Attributes; namespace MongoFramework.Infrastructure.Mapping.Processors { public class IndexProcessor : IMappingProcessor { public void ApplyMa...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using MongoDB.Bson.Serialization; using MongoFramework.Attributes; namespace MongoFramework.Infrastructure.Mapping.Processors { public class IndexProcessor : IMappingProcessor { public void ApplyMa...
a093d491-4ae6-487c-b386-bcf8fd5fc277
{ "language": "C#" }
```c# using System; using Platform.Validation; using Shaolinq; namespace IdentityServer3.Shaolinq.DataModel { [DataAccessObject(Name = "Scope")] public abstract class DbScope : DataAccessObject<Guid> { [PersistedMember] public abstract bool Enabled { get; set; } [PersistedMember] [ValueRequired] [SizeCon...
```c# using System; using IdentityServer3.Core.Models; using Platform.Validation; using Shaolinq; namespace IdentityServer3.Shaolinq.DataModel { [DataAccessObject(Name = "Scope")] public abstract class DbScope : DataAccessObject<Guid> { [PersistedMember] public abstract bool Enabled { get; set; } [PersistedM...
f695ce32-5881-4b06-9615-d56aa46a698f
{ "language": "C#" }
```c# // // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
```c# // // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
a07eb552-e852-4754-8dcb-93e96b267779
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using PEPlugin; namespace WeightedOffsetBlend { public class Plugin : PEPluginClass { private static MainForm FormInstance { get; set; } public override string Name { get { return "重み付きオフセット付加"; } ...
```c# using System; using System.Collections.Generic; using System.Linq; using PEPlugin; namespace WeightedOffsetBlend { public class Plugin : PEPluginClass { private static MainForm FormInstance { get; set; } public override string Name { get { return "重み付きオフセット付加"; } ...
98312528-c716-4c88-a3e7-e3f0818fd2dc
{ "language": "C#" }
```c# // Copyright © 2006 Paul Welter 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...
```c# // Copyright © 2006 Paul Welter 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...
acd77b46-2d2a-46d2-8d6b-31a5c6ab8740
{ "language": "C#" }
```c# // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.CSharp7.MaintainabilityRules { using StyleCop.Analyzers.Test.MaintainabilityRules; public ...
```c# // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. namespace StyleCop.Analyzers.Test.CSharp7.MaintainabilityRules { using System.Threading; using System.Threading.Tasks; us...
38322404-7c16-4476-b4ad-b6aa37783cf3
{ "language": "C#" }
```c# // Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
```c# // Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
4de873fb-465a-4ed6-bae3-44b16c104869
{ "language": "C#" }
```c# using System; namespace Clarius.TransformOnBuild.MSBuild.Task { public class TransformOnBuildTask : Microsoft.Build.Utilities.Task { public override bool Execute() { throw new NotImplementedException(); } } } ``` Move GetProjectInstance to the task
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Microsoft.Build.Execution; namespace Clarius.TransformOnBuild.MSBuild.Task { public class TransformOnBuildTask : Microsoft.Build.Utilities.Task { private ProjectInstance _projectInstance; ...
f797fa1e-7522-49df-989a-088e96e72289
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DotVVM.Samples.BasicSamples.ViewModels.ControlSamples.CheckBox { public class CheckedItemsRepeaterViewModel { public Outer Data { get; set; } public class Outer ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DotVVM.Samples.BasicSamples.ViewModels.ControlSamples.CheckBox { public class CheckedItemsRepeaterViewModel { public Outer Data { get; set; } = new Outer(); publ...
9307c9b8-f74c-4782-a9e8-b770aa7ea27e
{ "language": "C#" }
```c# using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers { [Authorize, ApiExplorerSettings(IgnoreApi = true)] public class AdminController : Controller { // Admin Task...
```c# using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers { [Authorize, ApiExplorerSettings(IgnoreApi = true)] public class AdminController : Controller { ...
d0a537e4-0d2a-430e-a815-29c724a9a435
{ "language": "C#" }
```c# using System; using System.Windows.Forms; namespace HospitalAutomation.GUI { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); ...
```c# using System; using System.Windows.Forms; namespace HospitalAutomation.GUI { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); ...
218e34fc-e863-4a43-ae71-da0dec0e7ba1
{ "language": "C#" }
```c# using System; using UIKit; namespace FFImageLoading.Extensions { public static class UnitsExtensions { private static nfloat _screenScale; static UnitsExtensions() { UIScreen.MainScreen.InvokeOnMainThread(() => { _screenScale = _screenScale; }); } public static int PointsToPixels(t...
```c# using System; using UIKit; namespace FFImageLoading.Extensions { public static class UnitsExtensions { private static nfloat _screenScale; static UnitsExtensions() { UIScreen.MainScreen.InvokeOnMainThread(() => { _screenScale = UIScreen.MainScreen.Scale; }); } public static int Poi...
0023fff8-9544-4336-92c4-bafcfc1ec3af
{ "language": "C#" }
```c# using System.Collections; /// <summary>Contains commands for holdables (including the freeplay case and the missions binder).</summary> public static class HoldableCommands { #region Commands [Command("help")] public static bool Help(TwitchHoldable holdable, string user, bool isWhisper) => holdable.PrintHelp...
```c# using System.Collections; /// <summary>Contains commands for holdables (including the freeplay case and the missions binder).</summary> public static class HoldableCommands { #region Commands [Command("help")] public static bool Help(TwitchHoldable holdable, string user, bool isWhisper) => holdable.PrintHelp...
c958bf2b-a196-4085-b825-1264de98e432
{ "language": "C#" }
```c# using UnityEditor; using UnityEngine; public class PlayerPrefsEditor { [MenuItem("Tools/PlayerPrefs/DeleteAll")] static void DeleteAll(){ PlayerPrefs.DeleteAll(); Debug.Log("Delete All Data Of PlayerPrefs!!"); } } ``` Add PlayerPrefs Value Search Func
```c# using UnityEditor; using UnityEngine; public class PlayerPrefsEditor : EditorWindow { string stringKey = ""; string intKey = ""; string floatKey = ""; [MenuItem("Tools/PlayerPrefs/DeleteAll")] static void DeleteAll(){ PlayerPrefs.DeleteAll(); Debug.Log("Delete All Data Of P...
50804344-fd65-40af-9452-c1b512c3b58d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using NugetAuditor; namespace NugetAuditor.Tests { [TestClass] public class NugetAuditorLibTests { [TestMethod] public void CanAuditFiles() ...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using NugetAuditor; namespace NugetAuditor.Tests { [TestClass] public class NugetAuditorLibTests { [TestMethod] public void CanAuditFiles() ...
ace0a953-2bf6-48ab-89a7-b7b6c0b0fa20
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBi.Core.Scalar.Presentation { public class DateTimePresenter : BasePresenter { protected override string PresentNotNull(object value) ...
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NBi.Core.Scalar.Presentation { public class DateTimePresenter : BasePresenter { protected override string PresentNotNull(object value) ...
7c968385-a569-4f1d-97d4-3d0dad2cbe71
{ "language": "C#" }
```c# using CertiPay.Common.Logging; using System; using System.Threading.Tasks; using Twilio; namespace CertiPay.Common.Notifications { /// <summary> /// Send an SMS message to the given recipient. /// </summary> /// <remarks> /// Implementation may be sent into background processing. /// </r...
```c# using CertiPay.Common.Logging; using System; using System.Threading.Tasks; using Twilio; namespace CertiPay.Common.Notifications { /// <summary> /// Send an SMS message to the given recipient. /// </summary> /// <remarks> /// Implementation may be sent into background processing. /// </r...
dd9da064-855c-4772-a7e0-285a227e54c9
{ "language": "C#" }
```c# // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using System; namespace Wangkanai.Detection.Models { [Flags] public enum Device { Desktop = 0, // Windows, Mac, Linux Tablet = 1 <<...
```c# // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using System; namespace Wangkanai.Detection.Models { [Flags] public enum Device { Desktop = 0, // Windows, Mac, Linux Tablet = 1 <<...
b85450dd-08d6-4702-8255-9c4bd0784bec
{ "language": "C#" }
```c# using EnvDTE; using System; using System.Linq; namespace T4TS { public class ProjectTraverser { public Action<CodeNamespace> WithNamespace { get; private set; } public ProjectTraverser(Project project, Action<CodeNamespace> withNamespace) { if (project == null) ...
```c# using EnvDTE; using System; using System.Linq; namespace T4TS { public class ProjectTraverser { public Action<CodeNamespace> WithNamespace { get; private set; } public ProjectTraverser(Project project, Action<CodeNamespace> withNamespace) { if (project == null) ...
7b72adef-b610-4d63-b048-d2b34a4dbc08
{ "language": "C#" }
```c# using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; using System.Security.Permissions; [assembly: AssemblyProduct("Python for .NET")] [assembly: AssemblyVersion("2.4.2.7")] [assembly: AssemblyTitle("Python Console")] [assembly: AssemblyDefaultAlias("python.exe")] ...
```c# using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; using System.Security.Permissions; [assembly: AssemblyProduct("Python for .NET")] [assembly: AssemblyVersion("2.4.2.7")] [assembly: AssemblyTitle("Python Console")] [assembly: AssemblyDefaultAlias("python.exe")] ...
887aadbb-cedf-4cd5-b6e8-12479fc44d1e
{ "language": "C#" }
```c# using System; using System.Diagnostics; using System.Linq; using System.Linq.Expressions; using System.Reflection; using Machine.Fakes.Sdk; using NSubstitute; namespace Machine.Fakes.Adapters.NSubstitute { internal class NSubstituteMethodCallOccurance<TFake> : IMethodCallOccurance where TFake : class { ...
```c# using System; using System.Linq; using System.Linq.Expressions; using Machine.Fakes.Sdk; using NSubstitute; using NSubstitute.Exceptions; namespace Machine.Fakes.Adapters.NSubstitute { internal class NSubstituteMethodCallOccurance<TFake> : IMethodCallOccurance where TFake : class { private reado...
4a67b9f3-2a3e-460e-bfc3-aae4dd9be9eb
{ "language": "C#" }
```c# using System.Text; using DesktopWidgets.Classes; using DesktopWidgets.Properties; namespace DesktopWidgets.Helpers { public static class AboutHelper { public static string AboutText { get { var stringBuilder = new StringBuilder(); ...
```c# using System.Collections.Generic; using System.Linq; using System.Text; using DesktopWidgets.Classes; using DesktopWidgets.Properties; namespace DesktopWidgets.Helpers { public static class AboutHelper { public static string AboutText { get { var s...
08b12984-33b1-44b9-ad72-d1ec2502afde
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ClipPlane : MonoBehaviour { // input objects public Slider slider; public Material clipPlaneMaterial; // private objects private Renderer cube; private float clipX; voi...
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ClipPlane : MonoBehaviour { // input objects public Slider slider; public Material clipPlaneMaterial; // private objects private Renderer cube; private float clipX; voi...
d3f37a0f-d753-4b85-9f94-068c51e187a0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; namespace CreateXMLFile { internal static class Program { private static void Main() { const string fileName = "quotes.txt"; Dictionary<string, string> dicoQuotes = new Dictionary<string, string>(); List<string> quote...
```c# using System; using System.Collections.Generic; using System.IO; namespace CreateXMLFile { internal static class Program { private static void Main() { const string fileName = "quotes-cleaned.txt"; const string XmlFileName = "quotes-XML.txt"; Dictionary<string, string> dicoQuotes =...
183588ae-16a2-47cf-9edc-59333a2cd4fc
{ "language": "C#" }
```c# using ESISharp.Web; namespace ESISharp.ESIPath.Character { /// <summary>Authenticated Character Wallet paths</summary> public class CharacterWallet { protected ESIEve EasyObject; internal CharacterWallet(ESIEve EasyEve) { EasyObject = EasyEve; } ...
```c# using ESISharp.Web; namespace ESISharp.ESIPath.Character { /// <summary>Authenticated Character Wallet paths</summary> public class CharacterWallet { protected ESIEve EasyObject; internal CharacterWallet(ESIEve EasyEve) { EasyObject = EasyEve; } ...
d516bb07-0694-41be-8556-739963aca7dd
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using StackExchange.DataExplorer.Helpers; using System.Text; namespace StackExchange.DataExplorer.Models { public partial class Query { public string BodyWithoutComments { get { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using StackExchange.DataExplorer.Helpers; using System.Text; namespace StackExchange.DataExplorer.Models { public partial class Query { public string BodyWithoutComments { get { ...
bcb295c4-f2fc-4ade-b89d-2ab3e11db567
{ "language": "C#" }
```c# namespace RangeIt.Tests.Ranges { using FluentAssertions; using RangeIt.Ranges; using Xunit; [Collection("Range.Ints.Tests")] public class Range_Ints_Tests { [Fact] public void Test_Range_Ints() { var range = Range.Ints(10); range.Should()....
```c# namespace RangeIt.Tests.Ranges { using FluentAssertions; using RangeIt.Ranges; using Xunit; [Collection("Range.Ints.Tests")] public class Range_Ints_Tests { [Fact] public void Test_Range_Ints() { var range = Range.Ints(10); range.Should()....
b61f49d0-8c8e-47f5-b1e0-4d6f879198d7
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Nancy; using Nancy.Hosting.Self; namespace ChildProcessUtil { public class Program { private const string HttpAddress = "http://localhost:"; private static NancyHost host; private static void Main(string[] args) { ...
```c# using System; using System.Collections.Generic; using System.Threading; using Nancy; using Nancy.Hosting.Self; namespace ChildProcessUtil { public class Program { private const string HttpAddress = "http://localhost:"; private static NancyHost host; private static void Main(strin...
5bb9c16a-a98d-4a5d-9fb2-648674d06bf0
{ "language": "C#" }
```c# using System.Linq; namespace PinSharp.Api { internal class PathBuilder { public static string BuildPath(string basePath, RequestOptions options) { var path = basePath; if (!path.EndsWith("/")) path += "/"; if (options?.SearchQuery != ...
```c# using System.Linq; namespace PinSharp.Api { internal class PathBuilder { public static string BuildPath(string basePath, RequestOptions options) { var path = basePath; if (!path.EndsWith("/")) path += "/"; if (options?.SearchQuery != ...
ef78e6eb-7113-4e92-b38a-e7bcdba1a2de
{ "language": "C#" }
```c# namespace ControlzEx.Internal { using System.Reflection; using System.Windows.Automation.Peers; using System.Windows.Controls; internal static class SelectorAutomationPeerExtensions { private static readonly MethodInfo RaiseSelectionEventsMethodInfo = typeof(SelectorAutomationPeer).G...
```c# namespace ControlzEx.Internal { using System.Reflection; using System.Windows.Automation.Peers; using System.Windows.Controls; internal static class SelectorAutomationPeerExtensions { private static readonly MethodInfo RaiseSelectionEventsMethodInfo = typeof(SelectorAutomationPeer).G...
b853054f-9334-4b0c-8f36-674035106ae6
{ "language": "C#" }
```c# // 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.Collections.Generic; using System.Threading.Tasks; namespace osu.Framework.Allocation { /// <summary> /// A queue which batches ...
```c# // 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.Collections.Generic; using System.Threading.Tasks; using osu.Framework.Statistics; namespace osu.Framework.Allocation { /// <summary...
c1b72bb4-3ceb-4cd2-a492-186a4f5ff52c
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.ComponentModel; using osu.Framework.Allocation; using osu.Framework.Audio; using osu.Framework.Audio.Sample; using osu.Framework.Extensions; ...
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.ComponentModel; using osu.Framework.Allocation; using osu.Framework.Audio; using osu.Framework.Audio.Sample; using osu.Framework.Extensions; ...
4a9e8741-702e-494e-a77a-f0fd3ca24516
{ "language": "C#" }
```c# using Hearts.Model; using System; using System.Collections.Generic; using System.Linq; using Hearts.Scoring; namespace Hearts.Extensions { public static class CardListExtensions { public static void Log(this IEnumerable<Card> self, string name) { int padToLength = 38; ...
```c# using Hearts.Model; using System; using System.Collections.Generic; using System.Linq; using Hearts.Scoring; namespace Hearts.Extensions { public static class CardListExtensions { public static void Log(this IEnumerable<Card> self, string name) { int padToLength = 38; ...
e6438e9c-f788-4249-b498-3a064e6930b9
{ "language": "C#" }
```c# using NUnit.Framework; using Pash.ParserIntrinsics; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ParserTests { [TestFixture] public class ParserTests { [Test] public void IfTest() { var parseTree = PowerShellGramm...
```c# using NUnit.Framework; using Pash.ParserIntrinsics; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ParserTests { [TestFixture] public class ParserTests { [Test] [TestCase(@"if ($true) {} else {}")] [TestCase(@"if ($true) {} els...
d2400258-781c-4414-a0ed-228eec7ed34c
{ "language": "C#" }
```c# @page "{id}" @model SessionModel <ol class="breadcrumb"> <li><a asp-page="/Index">Agenda</a></li> <li><a asp-page="/Index" asp-route-day="@Model.DayOffset">Day @(Model.DayOffset + 1)</a></li> <li class="active">@Model.Session.Title</li> </ol> <h1>@Model.Session.Title</h1> <span class="label label-de...
```c# @page "{id}" @model SessionModel <ol class="breadcrumb"> <li><a asp-page="/Index">Agenda</a></li> <li><a asp-page="/Index" asp-route-day="@Model.DayOffset">Day @(Model.DayOffset + 1)</a></li> <li class="active">@Model.Session.Title</li> </ol> <h1>@Model.Session.Title</h1> <span class="label label-de...
8ee53691-30aa-4172-a689-b8fcf48272fa
{ "language": "C#" }
```c# using System.Linq; using System.Reflection; using NSpec; using NSpec.Domain; using NSpec.Domain.Formatters; using Microsoft.VisualStudio.TestTools.UnitTesting; /* * Howdy, * * This is NSpec's DebuggerShim. It will allow you to use TestDriven.Net or Resharper's test runner to run * NSpec tests that are in ...
```c# using System.Linq; using System.Reflection; using NSpec; using NSpec.Domain; using NSpec.Domain.Formatters; using Microsoft.VisualStudio.TestTools.UnitTesting; /* * Howdy, * * This is NSpec's DebuggerShim. It will allow you to use TestDriven.Net or Resharper's test runner to run * NSpec tests that are in ...
22fef9cd-a0ef-497d-8eb0-84fdabea3a71
{ "language": "C#" }
```c# using System; using System.Reflection; using Microsoft.AspNetCore.StaticFiles; using Microsoft.Extensions.FileProviders; using Swashbuckle.AspNetCore.SwaggerUi; namespace Microsoft.AspNetCore.Builder { public static class SwaggerUiBuilderExtensions { public static IApplicationBuilder UseSwaggerU...
```c# using System; using System.Reflection; using Microsoft.AspNetCore.StaticFiles; using Microsoft.Extensions.FileProviders; using Swashbuckle.AspNetCore.SwaggerUi; namespace Microsoft.AspNetCore.Builder { public static class SwaggerUiBuilderExtensions { public static IApplicationBuilder UseSwaggerU...
59b6788d-7ed9-474b-802e-bac6a18b6ccb
{ "language": "C#" }
```c# #region (c) 2010-2011 Lokad - CQRS for Windows Azure - New BSD License // Copyright (c) Lokad 2010-2011, http://www.lokad.com // This code is released as Open Source under the terms of the New BSD Licence #endregion using System; namespace Lokad.Cqrs.Feature.StreamingStorage { [Flags] pu...
```c# #region (c) 2010-2011 Lokad - CQRS for Windows Azure - New BSD License // Copyright (c) Lokad 2010-2011, http://www.lokad.com // This code is released as Open Source under the terms of the New BSD Licence #endregion using System; namespace Lokad.Cqrs.Feature.StreamingStorage { [Flags] pu...
327acdcc-edb9-44bf-a6a2-1ef024476ea5
{ "language": "C#" }
```c# #region Copyright and license // // <copyright file="NullTests.cs" company="Oliver Zick"> // // Copyright (c) 2016 Oliver Zick. All rights reserved. // // </copyright> // // <author>Oliver Zick</author> // // <license> // // Licensed under the Apache License, Version 2.0 (the "License"); // // you ma...
```c# #region Copyright and license // // <copyright file="NullTests.cs" company="Oliver Zick"> // // Copyright (c) 2016 Oliver Zick. All rights reserved. // // </copyright> // // <author>Oliver Zick</author> // // <license> // // Licensed under the Apache License, Version 2.0 (the "License"); // // you ma...
ff4f36da-29b6-490a-a2f1-1e5b3ff90dc7
{ "language": "C#" }
```c# using System; public class Herp { public Herp(int X) { this.X = X; } public int X { get; private set; } } public static class HerpExtensions { public static void PrintX(this Herp Value) { Console.WriteLine(Value.X); } } public static class Program { public stati...
```c# using System; using System.Collections.Generic; using System.Linq; public class Herp { public Herp(int X) { this.X = X; } public int X { get; private set; } } public static class HerpExtensions { public static void PrintX(this Herp Value) { Console.WriteLine(Value.X); ...
8d3608e3-edad-487f-b3b1-056d2785759f
{ "language": "C#" }
```c# using System; using System.Reactive; using System.Reactive.Linq; using ReactiveUI; using WalletWasabi.Gui.ViewModels; namespace WalletWasabi.Fluent.ViewModels.Dialogs { public class DialogScreenViewModel : ViewModelBase, IScreen { private bool _isClosing; private bool _isDialogVisible; public DialogScre...
```c# using System; using System.Reactive; using System.Reactive.Linq; using ReactiveUI; using WalletWasabi.Gui.ViewModels; namespace WalletWasabi.Fluent.ViewModels.Dialogs { public class DialogScreenViewModel : ViewModelBase, IScreen { private bool _isClosing; private bool _isDialogVisible; public DialogScre...
f30ac2c7-60e7-4e33-bd63-3eb611f76fdd
{ "language": "C#" }
```c# using kh.kh2; using System.Windows.Media; using System.Windows.Media.Imaging; using Xe.Tools; using Xe.Tools.Wpf; namespace kh.tools.imgz.Models { public class ImageModel : BaseNotifyPropertyChanged { private Imgd imgd; public ImageModel(Imgd imgd) { Imgd = imgd; } public Imgd Imgd { get =...
```c# using kh.Imaging; using kh.kh2; using System.Windows.Media; using System.Windows.Media.Imaging; using Xe.Tools; using Xe.Tools.Wpf; namespace kh.tools.imgz.Models { public class ImageModel : BaseNotifyPropertyChanged { private Imgd imgd; public ImageModel(Imgd imgd) { Imgd = imgd; } public Imgd...
00b4afa7-0c68-4f27-b1ef-9ff7d949e462
{ "language": "C#" }
```c# using System; using System.Linq; namespace Gherkin.AstGenerator { class Program { static int Main(string[] args) { if (args.Length < 1) { Console.WriteLine("Usage: Gherkin.AstGenerator.exe test-feature-file.feature"); re...
```c# using System; using System.Linq; namespace Gherkin.AstGenerator { class Program { static int Main(string[] args) { if (args.Length < 1) { Console.WriteLine("Usage: Gherkin.AstGenerator.exe test-feature-file.feature"); re...
619d93fd-557d-4e8e-977a-4747c4f94035
{ "language": "C#" }
```c# // 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.Judgements; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Mania.Judgements { public class ManiaJudgement : Judgement ...
```c# // 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.Judgements; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Mania.Judgements { public class ManiaJudgement : Judgement ...
f3edb8d7-3ab7-49b1-96a7-f5c26ced5455
{ "language": "C#" }
```c# namespace ClojSharp.Core.Forms { using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using ClojSharp.Core.Language; public class Seq : BaseUnaryForm { public override object EvaluateForm(IContext conte...
```c# namespace ClojSharp.Core.Forms { using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using ClojSharp.Core.Language; public class Seq : BaseUnaryForm { public override object EvaluateForm(IContext conte...
aedd1ddf-98e0-4dcc-8d20-fcab451c1e86
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace N2.Web.Mvc { /// <remarks>This code is here since it has dependencies on ASP.NET 3.0 which isn't a requirement for N2 in general.</remarks> public abstract class ContentWebViewPage<TMo...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace N2.Web.Mvc { /// <remarks>This code is here since it has dependencies on ASP.NET 3.0 which isn't a requirement for N2 in general.</remarks> public abstract class ContentWebViewPage<TMo...
ec80134d-ecc0-41e1-bbba-813827a5d2c0
{ "language": "C#" }
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; namespace Microsoft.AspNetCore.Razor.Language { public abstract class Raz...
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; namespace Microsoft.AspNetCore.Razor.Language { public abstract class Raz...
a0139739-743e-4d98-b436-aa523fcafb15
{ "language": "C#" }
```c# using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text.RegularExpressions; using Abp.Auditing; using Abp.Authorization.Users; using Abp.Extensions; namespace AbpCompanyName.AbpProjectName.Web.Models.Account { public class RegisterViewModel : IValidatableObject { ...
```c# using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Abp.Auditing; using Abp.Authorization.Users; using Abp.Extensions; using AbpCompanyName.AbpProjectName.Validation; namespace AbpCompanyName.AbpProjectName.Web.Models.Account { public class RegisterViewModel : IValidatableObj...
1183db9d-ba3c-49af-8117-2063f6dd67ae
{ "language": "C#" }
```c# using System; namespace AppHarbor.Commands { public class LoginCommand : ICommand { private const string TokenEnvironmentVariable = "AppHarborToken"; private readonly AccessTokenFetcher _accessTokenFetcher; private readonly EnvironmentVariableConfiguration _environmentVariableConfiguration; public Lo...
```c# using System; namespace AppHarbor.Commands { public class LoginCommand : ICommand { private const string TokenEnvironmentVariable = "AppHarborToken"; private const EnvironmentVariableTarget TokenEnvironmentVariableTarget = EnvironmentVariableTarget.User; private readonly AccessTokenFetcher _accessToken...
af2bfe5c-882a-453c-a807-13895da5074d
{ "language": "C#" }
```c# // 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 Android.App; using Android.Content.PM; using osu.Framework.Android; namespace osu.Framework.Tests.Android { [Activity(MainLauncher = true, Configuration...
```c# // 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 Android.App; using Android.Content.PM; using Android.OS; using Android.Views; using osu.Framework.Android; namespace osu.Framework.Tests.Android { [Acti...
c3199a50-0519-4dd0-ab9e-c57120898d29
{ "language": "C#" }
```c# using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace BatteryCommander.Web.Controllers { [Authorize] public class APFTController : Controller { private readonly Database db; public APFTController(Database db) {...
```c# using BatteryCommander.Web.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System; using System.Threading.Tasks; namespace BatteryCommander.Web.Controllers { [Authorize] public class APFTController : Controller { private readonly Database db; ...
82d4171a-1f8f-401e-b26a-62ea632938e3
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using SlashTodo.Core; using SlashTodo.Infrastructure.Slack; namespace SlashTodo.Web.Api { public class DefaultSlashCommandHandler : ISlashCommandHandler { private readonly IReposito...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using SlashTodo.Core; using SlashTodo.Infrastructure.Slack; namespace SlashTodo.Web.Api { public class DefaultSlashCommandHandler : ISlashCommandHandler { private readonly IReposito...
3fc1d060-77f8-450c-8cf2-d6ea588a6ce1
{ "language": "C#" }
```c# // 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.Database; namespace osu.Game.Users { public interface IUser : IHasOnlineID<int> { string Username { get; set; } bool IsBot ...
```c# // 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.Database; namespace osu.Game.Users { public interface IUser : IHasOnlineID<int> { string Username { get; } bool IsBot { get...
c8a253aa-a857-47a1-b52d-1de4b1e1c735
{ "language": "C#" }
```c# // 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...
```c# // Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; using System.Linq; /// <summary> /// A class representing t...