doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
efdfc9cb-c4bc-4dc7-a029-cba14c136f42
{ "language": "C#" }
```c# @Html.Partial("_AccountTypeLinks") <h2>All Accounts</h2> <table id="accountsTable" class="table table-bordered table-hover"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Balance</th> </tr> </thead> </table> @section scripts { <script> $(document).ready(function() { $(...
```c# @Html.Partial("_AccountTypeLinks") <h2>All Accounts</h2> <table id="accountsTable" class="table table-bordered table-hover"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Balance</th> </tr> </thead> </table> @section scripts { <script> $(document).ready(function() { $(...
a1bb88e4-8c56-4ed9-8d5d-9e8130accbd2
{ "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.Linq; using osu.Framework.Graphics; using osu.Framework.Input.Events; using osu.Game.Graphics.Containers; using osuTK; namespace osu.Game.Rulesets.Edi...
```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.Graphics; using osu.Framework.Input.Events; using osu.Game.Graphics.Containers; using osuTK; namespace osu.Game.Rulesets.Edit { public clas...
7f72a026-fd68-40b8-81a7-d5764691ef93
{ "language": "C#" }
```c# namespace Stripe { using Newtonsoft.Json; public class ProductListOptions : ListOptionsWithCreated { [JsonProperty("active")] public bool? Active { get; set; } [JsonProperty("ids")] public string[] Ids { get; set; } [JsonProperty("shippable")] public ...
```c# namespace Stripe { using Newtonsoft.Json; public class ProductListOptions : ListOptionsWithCreated { [JsonProperty("active")] public bool? Active { get; set; } [JsonProperty("ids")] public string[] Ids { get; set; } [JsonProperty("shippable")] public ...
44e5cb9f-a77c-411c-b7c6-2d884ae68ce1
{ "language": "C#" }
```c# using System.IO; using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; using System.Web.Http; namespace DSCPullServerWeb.Helpers { public class FileActionResult : IHttpActionResult { private FileInfo _file; public FileActionResult(Fi...
```c# using System.IO; using System.Net.Http; using System.Net.Http.Headers; using System.Threading; using System.Threading.Tasks; using System.Web.Http; namespace DSCPullServerWeb.Helpers { public class FileActionResult : IHttpActionResult { private FileInfo _file; public FileActionResult(Fi...
236f9c46-ba0c-480f-8ff7-cf70547a317b
{ "language": "C#" }
```c# // 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.IO; using SQLite.Net; namespace osu.Framework.Platform { public abstract class BasicStorage { pub...
```c# // 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.IO; using osu.Framework.IO.File; using SQLite.Net; namespace osu.Framework.Platform { public abstract class BasicStorage ...
59ab0baa-2a9e-4f8c-8b8b-8583541f5759
{ "language": "C#" }
```c# using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Rulesets.Catch.Objects; namespace osu.Game.Rulesets.Catch.Tests { [TestFixture] [Ignore("getting CI working")] public class TestCaseHyperdash : Game.Tests.Visual.TestCasePlayer { public TestCaseHyperdash() ...
```c# using NUnit.Framework; using osu.Game.Beatmaps; using osu.Game.Rulesets.Catch.Objects; namespace osu.Game.Rulesets.Catch.Tests { [TestFixture] [Ignore("getting CI working")] public class TestCaseHyperdash : Game.Tests.Visual.TestCasePlayer { public TestCaseHyperdash() ...
ff2b9946-c907-4149-b1f9-1b1566c84fcd
{ "language": "C#" }
```c# using System; using System.Linq; using System.Reflection; namespace AssemblyVersionFromGit { public static class AssemblyVersionReader { /// <summary> /// Formats the assembly version from the specified assembly. /// Requires that the AssemblyInfo.cs file contains the AssemblyInf...
```c# using System; using System.Linq; using System.Reflection; namespace AssemblyVersionFromGit { public static class AssemblyVersionReader { /// <summary> /// Formats the assembly version from the specified assembly. /// Requires that <paramref name="assembly"/> contains an AssemblyI...
299fea14-284d-45c6-805f-800578f5fca2
{ "language": "C#" }
```c# using System.Data.Entity; using MyPersonalShortner.Lib.Domain.Url; namespace MyPersonalShortner.Lib.Infrastructure.EntityFramework { public class EFContext : DbContext { public EFContext() : base("MyPersonalShortner") { // TODO: Remove In Prod Database...
```c# using System.Data.Entity; using MyPersonalShortner.Lib.Domain.Url; namespace MyPersonalShortner.Lib.Infrastructure.EntityFramework { public class EFContext : DbContext { public EFContext() : base("MyPersonalShortner") { Database.SetInitializer(new MyPersonalSHortn...
7acbc6ea-1625-4496-b0a6-4affc28afc1a
{ "language": "C#" }
```c# using OttoMail.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; namespace OttoMail.Tests { public class EmailTest { [Fact] public void GetSubjectTest() { //Arrange var emai...
```c# using OttoMail.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Xunit; namespace OttoMail.Tests { public class EmailTest { [Fact] public void GetSubjectTest() { //Arrange var emai...
f0dc6059-62de-48fd-8d0d-ecfa5af23b93
{ "language": "C#" }
```c# <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> @Styles.Render("~/Content/bootstrap.min.css") </head> <body> <div> @RenderBody() </div> @RenderSection("Scripts", false) ...
```c# <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> @Styles.Render("~/Content/bootstrap.min.css") @Styles.Render("~/Content/bootstrap-responsive.min.css") @Styles.Render("~/bundles/font-awes...
e5b73425-458d-4f14-88f2-88e0605474b8
{ "language": "C#" }
```c# namespace dotless.Test.Specs.Functions { using NUnit.Framework; public class ExtractFixture : SpecFixtureBase { [Test] public void TestExtractFromCommaSeparatedList() { var input = @" @list: ""Arial"", ""Helvetica""; .someClass { fon...
```c# namespace dotless.Test.Specs.Functions { using NUnit.Framework; public class ExtractFixture : SpecFixtureBase { [Test] public void TestExtractFromCommaSeparatedList() { var input = @" @list: ""Arial"", ""Helvetica""; .someClass { fon...
546d0857-c6b7-4fc5-bbb8-9bcc8afa3f62
{ "language": "C#" }
```c# namespace ClojSharp.Core { using System; using System.Collections.Generic; using System.Linq; using System.Text; using ClojSharp.Core.Language; public class Context : ClojSharp.Core.IContext { private IDictionary<string, object> values = new Dictionary<string, objec...
```c# namespace ClojSharp.Core { using System; using System.Collections.Generic; using System.Linq; using System.Text; using ClojSharp.Core.Language; public class Context : ClojSharp.Core.IContext { private IDictionary<string, object> values = new Dictionary<string, objec...
51edcb08-4c44-4882-90ea-c4d65becbb5d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SamSeifert.Utilities { public static class Logger { public static Action<String> WriteLine = (String s) => { Console.WriteLine(s); }; } } ...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SamSeifert.Utilities { public static class Logger { public static Action<String> WriteLine = (String s) => { Trace.WriteLine...
6c0ed9ee-fd70-4102-9c08-7329f7064347
{ "language": "C#" }
```c# using System; using System.Net; namespace PatchKit.Api { public class WrapHttpWebRequest : IHttpWebRequest { private readonly HttpWebRequest _httpWebRequest; public int Timeout { get { return _httpWebRequest.Timeout; } set { _httpWebRequest.Timeout = valu...
```c# using System; using System.Net; namespace PatchKit.Api { public class WrapHttpWebRequest : IHttpWebRequest { private readonly HttpWebRequest _httpWebRequest; public int Timeout { get { return _httpWebRequest.Timeout; } set { _httpWebRequest.Timeout = valu...
203d7251-27ef-4eaa-b9e6-d2c7aab3c8ab
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace hihapi.Models.Library { [Table("T_LIB_BOOK_BORROW_RECORD")] public class LibraryBookBorrowRecord: BaseModel { [Key] ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace hihapi.Models.Library { [Table("T_LIB_BOOK_BORROW_RECORD")] public class LibraryBookBorrowRecord: BaseModel { [Key] ...
2f8cb2f1-ef9a-4989-8140-8521072194f3
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace EventSourcingTodo.Domain { public interface ITodoListRepository { IList<Event> Events { get; } TodoList Get(); void PostChanges(TodoList todoList); } public class T...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace EventSourcingTodo.Domain { public interface ITodoListRepository { IList<Event> Events { get; } TodoList Get(); void PostChanges(TodoList todoList); } public class T...
a1e491a7-5795-42da-b89c-0bed43a2cf22
{ "language": "C#" }
```c# //----------------------------------------------------------------------- // <copyright file="LoopingScheduler.cs" company="Brian Rogers"> // Copyright (c) Brian Rogers. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace EventHandlerSample { ...
```c# //----------------------------------------------------------------------- // <copyright file="LoopingScheduler.cs" company="Brian Rogers"> // Copyright (c) Brian Rogers. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace EventHandlerSample { ...
9ba0635e-12c2-47ba-b471-04a3fb71b65d
{ "language": "C#" }
```c# namespace DarkSky.Services { using System; using System.Threading.Tasks; using Newtonsoft.Json; /// <summary> /// Interface to use for handling JSON serialization via Json.NET /// </summary> public class JsonNetJsonSerializerService : IJsonSerializerService { JsonSeri...
```c# namespace DarkSky.Services { using System; using System.Threading.Tasks; using Newtonsoft.Json; /// <summary> /// Interface to use for handling JSON serialization via Json.NET /// </summary> public class JsonNetJsonSerializerService : IJsonSerializerService { JsonSeri...
98f94164-6833-4183-ac00-534d7d39da88
{ "language": "C#" }
```c# namespace EventStore.Persistence.AcceptanceTests { using System; using System.Data; using System.Data.Common; using System.Diagnostics; using SqlPersistence; public class EnviromentConnectionFactory : IConnectionFactory { private readonly string providerInvariantName; ...
```c# namespace EventStore.Persistence.AcceptanceTests { using System; using System.Data; using System.Data.Common; using System.Diagnostics; using SqlPersistence; public class EnviromentConnectionFactory : IConnectionFactory { private readonly string providerInvariantName; ...
66cb003f-04ec-4fe3-bbc5-c2d2d825545c
{ "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. using System.IO; namespace System.Security.Cryptography.Xml.Tests { internal static class TestHelpers ...
```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. using System.IO; namespace System.Security.Cryptography.Xml.Tests { internal static class TestHelpers ...
0bb139a5-736c-43cb-80ba-ab597a35c824
{ "language": "C#" }
```c# using System; using System.Collections; using System.Collections.Generic; namespace Okanshi.Observers { public class InfluxDbObserverOptions { public string DatabaseName { get; } public string RetentionPolicy { get; set; } public Func<Tag, bool> TagToFieldSelector { get; set; } ...
```c# using System; using System.Collections.Generic; using System.Linq; namespace Okanshi.Observers { public class InfluxDbObserverOptions { public string DatabaseName { get; } public string RetentionPolicy { get; set; } public Func<Tag, bool> TagToFieldSelector { get; set; } = x => fal...
0f351109-d0fc-469b-9b03-61b6497a0d48
{ "language": "C#" }
```c# using Umbraco.Web.Install.Models; namespace Umbraco.Web.Install.InstallSteps { /// <summary> /// This step is purely here to show the button to commence the upgrade /// </summary> [InstallSetupStep(InstallationType.Upgrade, "Upgrade", "upgrade", 1, "Upgrading Umbraco to the latest and gre...
```c# using Semver; using Umbraco.Core; using Umbraco.Core.Configuration; using Umbraco.Web.Install.Models; namespace Umbraco.Web.Install.InstallSteps { /// <summary> /// This step is purely here to show the button to commence the upgrade /// </summary> [InstallSetupStep(InstallationType.Upgrade, ...
e5ec9b7d-156f-4963-bd22-0176c95ee0d5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Admo.classes.lib.commands; using NLog; using Newtonsoft.Json; namespace Admo.classes.lib { class CommandFactory { private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); private static readonly Dictionary<string, ...
```c# using System; using System.Collections.Generic; using Admo.classes.lib.commands; using NLog; using Newtonsoft.Json; namespace Admo.classes.lib { class CommandFactory { private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); private static readonly Dictionary<string, ...
007e8569-803f-4329-aea2-c2b3fadc8f05
{ "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.Graphics; using osu.Framework.Graphics.Sprites; using osu.Framework.Input.Events; using osu.Game.Overlays; nam...
```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.Graphics; using osu.Framework.Graphics.Sprites; using osu.Framework.Input.Events; using osu.Game.Overlays; nam...
5ed79afb-9f8b-42d2-b831-eb841a98d9c6
{ "language": "C#" }
```c# using Glimpse.Server; using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.DependencyInjection; using System.Collections.Generic; namespace Glimpse { public class GlimpseServerServices { public static IEnumerable<IServiceDescriptor> GetDefaultServices() { r...
```c# using Glimpse.Agent; using Glimpse.Server; using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.DependencyInjection; using System.Collections.Generic; namespace Glimpse { public class GlimpseServerServices { public static IEnumerable<IServiceDescriptor> GetDefaultServices() ...
2809215e-44d2-4598-beb3-1396d8334285
{ "language": "C#" }
```c# namespace Nancy.Demo.Authentication.Basic { using Nancy.Authentication.Basic; using Nancy.Security; public class UserValidator : IUserValidator { public IUserIdentity Validate(string username, string password) { if (username == "demo" && password == "demo") return new DemoUs...
```c# namespace Nancy.Demo.Authentication.Basic { using Nancy.Authentication.Basic; using Nancy.Security; public class UserValidator : IUserValidator { public IUserIdentity Validate(string username, string password) { if (username == "demo" && password == "demo") ...
70aee9b3-03b4-4b4a-9e57-e136c60adf77
{ "language": "C#" }
```c# namespace ApiTemplate.Controllers { using ApiTemplate.Constants; using Microsoft.AspNetCore.Mvc; [Route("")] [ApiExplorerSettings(IgnoreApi = true)] public class HomeController : ControllerBase { /// <summary> /// Redirects to the swagger page. /// </summary> ...
```c# namespace ApiTemplate.Controllers { using ApiTemplate.Constants; using Microsoft.AspNetCore.Mvc; [Route("")] [ApiExplorerSettings(IgnoreApi = true)] public class HomeController : ControllerBase { /// <summary> /// Redirects to the swagger page. /// </summary> ...
077c73dd-a130-4eb9-9e00-2faa45c76474
{ "language": "C#" }
```c# using System; using System.Composition; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CodeActions; using Microsoft.Co...
```c# using System; using System.Composition; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CodeActions; using Microsoft.Co...
8a1d9f37-93fa-4a8b-9817-ecb959f20daa
{ "language": "C#" }
```c# // Copyright // ---------------------------------------------------------------------------------------------------------- // <copyright file="AssemblyInfo.cs" company="https://github.com/safakgur/Dawn.SocketAwaitable"> // MIT // </copyright> // <license> // This source code is subject to terms and ...
```c# // Copyright // ---------------------------------------------------------------------------------------------------------- // <copyright file="AssemblyInfo.cs" company="https://github.com/safakgur/Dawn.SocketAwaitable"> // MIT // </copyright> // <license> // This source code is subject to terms and ...
d85ce373-8db6-4b51-bec9-c6f46eb84c89
{ "language": "C#" }
```c# using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; namespace MR.AspNetCore.Jobs { public static class JobsWebHostExtensions { public static Task StartJobsAsync(this IWebHost host) { var bootstrapper = host.Services.GetRequiredService<IBoots...
```c# using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace MR.AspNetCore.Jobs { public static class JobsWebHostExtensions { public static Task StartJobsAsync(this IHost host) { var bootstrapper = host.Services.GetRequiredService<IBootstra...
95a1827b-024a-4f29-b490-74258078ae5f
{ "language": "C#" }
```c# using LiveSplit.Options; using System; using System.Windows.Forms; namespace LiveSplit.Web.Share { public partial class SpeedrunComOAuthForm : Form, ISpeedrunComAuthenticator { private string accessToken; public SpeedrunComOAuthForm() { InitializeComponent(); ...
```c# using LiveSplit.Options; using System; using System.Windows.Forms; namespace LiveSplit.Web.Share { public partial class SpeedrunComOAuthForm : Form, ISpeedrunComAuthenticator { private string accessToken; public SpeedrunComOAuthForm() { InitializeComponent(); ...
fb730698-2ca4-4e23-a6d0-9b592270fb31
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; namespace Mindscape.Raygun4Net.Messages { public class RaygunMessageDetails { public string MachineName { get; set; } public string GroupingKey { get; set; } public string Version { get; set; } public RaygunErrorMessage Error { ge...
```c# using System.Collections; using System.Collections.Generic; namespace Mindscape.Raygun4Net.Messages { public class RaygunMessageDetails { public string MachineName { get; set; } public string GroupingKey { get; set; } public string Version { get; set; } public string CorrelationId { get; s...
070fa072-1cc1-4433-a80e-36e6e00aac14
{ "language": "C#" }
```c# using System.IO; using AppHarbor.Commands; using Moq; using Xunit; namespace AppHarbor.Tests.Commands { public class LogoutAuthCommandTest { [Fact] public void ShouldLogoutUser() { var accessTokenConfigurationMock = new Mock<AccessTokenConfiguration>(); var writer = new Mock<TextWriter>(); var ...
```c# using System.IO; using AppHarbor.Commands; using Moq; using Ploeh.AutoFixture.Xunit; using Xunit.Extensions; namespace AppHarbor.Tests.Commands { public class LogoutAuthCommandTest { [Theory, AutoCommandData] public void ShouldLogoutUser([Frozen]Mock<IAccessTokenConfiguration> accessTokenConfigurationMock...
39551445-d65a-4550-9808-db653eac68df
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web.Http; namespace TokenAuthentification { public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API configuration and services // Web API...
```c# using Newtonsoft.Json.Serialization; using System.Linq; using System.Net.Http.Formatting; using System.Web.Http; namespace TokenAuthentification { public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API configuration and services ...
1352d609-c4c3-4e17-b2fa-abac4dc4f452
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using TrueCraft.Core.TerrainGen.Noise; using TrueCraft.Core.Logic.Blocks; using TrueCraft.API.World; using TrueCraft.API; namespace TrueCraft.Core.TerrainGen.Biomes { public class TundraBiome : BiomeProvider { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using TrueCraft.Core.TerrainGen.Noise; using TrueCraft.Core.Logic.Blocks; using TrueCraft.API.World; using TrueCraft.API; namespace TrueCraft.Core.TerrainGen.Biomes { public class TundraBiome : BiomeProvider { ...
68c59f0f-98e0-454c-8c53-96dec5736ae9
{ "language": "C#" }
```c# @inject Microsoft.AspNetCore.Identity.SignInManager<LondonTravelUser> SignInManager @{ var providers = SignInManager.GetExternalAuthenticationSchemes() .OrderBy((p) => p.DisplayName) .ThenBy((p) => p.AuthenticationScheme) .ToList(); var schemesToShow = ViewData["AuthenticationSch...
```c# @inject Microsoft.AspNetCore.Identity.SignInManager<LondonTravelUser> SignInManager @{ var providers = SignInManager.GetExternalAuthenticationSchemes() .OrderBy((p) => p.DisplayName) .ThenBy((p) => p.AuthenticationScheme) .ToList(); /* var schemesToShow = ViewData["Authentica...
0fc9f47a-0365-43ed-a860-d4bbd1e884f3
{ "language": "C#" }
```c# using NUnit.Framework; namespace IntUITive.Selenium.Tests { [TestFixture] public class IntuitivelyFindByIdTests : BaseIntuitivelyTests { [Test] public void Find_WithIdAsTerm_ReturnsSingleElement() { var element = Intuitively.Find("uniqueId"); ...
```c# using NUnit.Framework; namespace IntUITive.Selenium.Tests { [TestFixture] public class IntuitivelyFindByIdTests : BaseIntuitivelyTests { [Test] public void Find_WithIdAsTerm_ReturnsElement() { var element = Intuitively.Find("uniqueId"); Ass...
4da0eefe-3da1-4cc3-8366-aeb903f5eb40
{ "language": "C#" }
```c# namespace Nancy.Json { using System.Collections.Generic; using Converters; /// <summary> /// Json serializer settings /// </summary> public static class JsonSettings { /// <summary> /// Max length of json output /// </summary> public static...
```c# namespace Nancy.Json { using System.Collections.Generic; using Converters; /// <summary> /// Json serializer settings /// </summary> public static class JsonSettings { /// <summary> /// Max length of json output /// </summary> public static...
27a1560c-ce31-4720-8f66-a2e9563332aa
{ "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.Online.Chat; namespace osu.Game.Online.API.Requests { public class MarkChannelAsReadRequest : APIRequest { private readonly Channel...
```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.Online.Chat; namespace osu.Game.Online.API.Requests { public class MarkChannelAsReadRequest : APIRequest { private readonly Channel...
4fd117a3-c0ac-47e8-a362-bf36c6411a9f
{ "language": "C#" }
```c# namespace Serilog.Exceptions.Core { using System; using System.Collections.Generic; using Serilog.Exceptions.Filters; internal class ExceptionPropertiesBag : IExceptionPropertiesBag { private readonly Type exceptionType; private readonly IExceptionPropertyFilter filter; ...
```c# namespace Serilog.Exceptions.Core { using System; using System.Collections.Generic; using Serilog.Exceptions.Filters; internal class ExceptionPropertiesBag : IExceptionPropertiesBag { private readonly Type exceptionType; private readonly IExceptionPropertyFilter filter; ...
d44fd517-7238-46f1-a47c-2d5cc07162d2
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; namespace kh.kh2.Messages { public partial class MsgSerializer { public static string SerializeText(IEnumerable<MessageCommandModel> entries) { var sb = new StringBuilder(); foreach (var entry in e...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace kh.kh2.Messages { public partial class MsgSerializer { public static string SerializeText(IEnumerable<MessageCommandModel> entries) { var sb = new StringBuilder(); ...
3955caca-c59d-41ff-b46b-b41348931caa
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; namespace osu.Framework.Graphics.Containers { public class CircularContainer : Container { public override float...
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; namespace osu.Framework.Graphics.Containers { /// <summary> /// A container which come with masking and automatic corner ...
cd7be1b7-be80-40b1-8d93-da8d235b0882
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Windows.Forms; namespace KeepOn { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] st...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Windows.Forms; namespace KeepOn { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] st...
afd09b8a-eb9d-42e6-97c5-b50bdba8e786
{ "language": "C#" }
```c# using Microsoft.Extensions.Configuration; using Newtonsoft.Json; using SO115App.ExternalAPI.Client; using SO115App.Models.Classi.ServiziEsterni.OPService; using SO115App.Models.Servizi.Infrastruttura.SistemiEsterni.OPService; using System; using System.Net.Http; using System.Text.Json; using System.Threading.Tas...
```c# using Microsoft.Extensions.Configuration; using Newtonsoft.Json; using SO115App.ExternalAPI.Client; using SO115App.Models.Classi.ServiziEsterni.OPService; using SO115App.Models.Servizi.Infrastruttura.SistemiEsterni.OPService; using System; using System.Net.Http; using System.Text.Json; using System.Threading.Tas...
c7550ec5-4269-4a10-bf5c-ee90a1edbc07
{ "language": "C#" }
```c# using System; using System.Linq; using System.Net; namespace BmpListener.Bgp { public class IPAddrPrefix { public IPAddrPrefix(ArraySegment<byte> data, Bgp.AddressFamily afi = Bgp.AddressFamily.IP) { DecodeFromBytes(data, afi); } public byte Length { get; pri...
```c# using System; using System.Linq; using System.Net; namespace BmpListener.Bgp { public class IPAddrPrefix { //TODO add offset to ctor public IPAddrPrefix(ArraySegment<byte> data, int offset = 0, AddressFamily afi = AddressFamily.IP) { DecodeFromBytes(data, afi); ...
cc9e4438-a45e-4f86-9362-4845c0e03dbc
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Cats.Data.UnitWork; using Ninject; using Cats.Services.EarlyWarning; namespace Cats.Infrastructure { public class NinjectDependencyResolver : IDependencyResolver { private IKernel ker...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Cats.Data.UnitWork; using Ninject; using Cats.Services.EarlyWarning; namespace Cats.Infrastructure { public class NinjectDependencyResolver : IDependencyResolver { private IKernel ker...
286474a1-dba3-4a52-9837-9aaf8ee97e9b
{ "language": "C#" }
```c# using System.Collections.Generic; using JetBrains.Application.UI.Controls.GotoByName; using JetBrains.ProjectModel; using JetBrains.ReSharper.Host.Features.CodeInsights.Providers; using JetBrains.Rider.Model; namespace JetBrains.ReSharper.Plugins.Unity.Rider.CodeInsights { [SolutionComponent] public...
```c# using System.Collections.Generic; using JetBrains.Application.UI.Controls.GotoByName; using JetBrains.Platform.RdFramework.Util; using JetBrains.ProjectModel; using JetBrains.ReSharper.Host.Features.CodeInsights.Providers; using JetBrains.Rider.Model; namespace JetBrains.ReSharper.Plugins.Unity.Rider.CodeInsight...
6745be83-7028-45bc-a186-4263979279ea
{ "language": "C#" }
```c# // Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.IO; using System.Linq; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.NET.TestFramework.Commands { p...
```c# // Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.IO; using System.Linq; using Microsoft.DotNet.Cli.Utils; namespace Microsoft.NET.TestFramework.Commands { p...
24e1a580-787f-4d28-932d-1a12783e7697
{ "language": "C#" }
```c# using System.Runtime.Serialization; using Elasticsearch.Net; namespace Nest { [ReadAs(typeof(PutWatchResponse))] public class PutWatchResponse : ResponseBase { [DataMember(Name = "created")] public bool Created { get; internal set; } [DataMember(Name = "_id")] public string Id { get; internal set; }...
```c# using System.Runtime.Serialization; using Elasticsearch.Net; namespace Nest { public class PutWatchResponse : ResponseBase { [DataMember(Name = "created")] public bool Created { get; internal set; } [DataMember(Name = "_id")] public string Id { get; internal set; } [DataMember(Name = "_version")] ...
c3879a6e-a8e6-49cf-ab44-4362209aa90a
{ "language": "C#" }
```c# namespace Stripe { using System; using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; public class StripeBalanceTransaction : StripeEntityWithId { [JsonProperty("object")] public string Object { get; set; } [JsonProperty("amount")...
```c# namespace Stripe { using System; using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; public class StripeBalanceTransaction : StripeEntityWithId { [JsonProperty("object")] public string Object { get; set; } [JsonProperty("amount")...
e077febc-aefa-416a-b20e-aabf3e7c1956
{ "language": "C#" }
```c# using System.Collections.Generic; using StressMeasurementSystem.Models; namespace StressMeasurementSystem.ViewModels { public class PatientViewModel { private Patient _patient; public PatientViewModel() { _patient = null; } public PatientViewModel(Pa...
```c# using System.Collections.Generic; using StressMeasurementSystem.Models; namespace StressMeasurementSystem.ViewModels { public class PatientViewModel { private Patient _patient; public PatientViewModel() { _patient = new Patient(); } public PatientVie...
d510532e-18ea-405e-a0ba-52f2a4ed535f
{ "language": "C#" }
```c# using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace Archetype.Models { [JsonObject] public class ArchetypeModel : IEnumerable<ArchetypeFieldsetModel> { [JsonProperty("fieldsets")] pu...
```c# using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace Archetype.Models { [JsonObject] public class ArchetypeModel : IEnumerable<ArchetypeFieldsetModel> { [JsonProperty("fieldsets")] pu...
8000a511-e51a-4105-828f-f50d73194034
{ "language": "C#" }
```c# using System.IO; using System.Web.Optimization; namespace Bundlr { public static class BundleExtensions { public static TBundle IncludePath<TBundle>(this TBundle bundle, string root, params string[] files) where TBundle : Bundle { foreach (string file in files) ...
```c# using System.IO; using System.Web.Optimization; namespace Bundlr { public static class BundleExtensions { public static TBundle AddTo<TBundle>(this TBundle bundle, BundleCollection collection) where TBundle : Bundle { collection.Add(bundle); return bun...
ece5af53-9744-4e75-99f3-f991c3969f0c
{ "language": "C#" }
```c# using System.Web.Optimization; namespace Listy.Web { public class BundleConfig { public class BootstrapResourcesTransform : IItemTransform { public string Process(string includedVirtualPath, string input) { return input.Replace(@"../fonts/", @"/Con...
```c# using System.Web.Optimization; namespace Listy.Web { public class BundleConfig { public class BootstrapResourcesTransform : IItemTransform { public string Process(string includedVirtualPath, string input) { return input.Replace(@"../fonts/", @"/Con...
d588cdc7-3d5f-4b2c-975c-fcf3dd55f625
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using Trek.BalihooApiClient; namespace ConsoleApplication1 { class Program { static void Main() { // https://github.com/balihoo/local-connect-client var client = new BalihooApiClient(); ...
```c# using System; using System.Collections.Generic; using System.Linq; namespace Trek.BalihooApiClient.Sample { class Program { static void Main() { // https://github.com/balihoo/local-connect-client var client = new BalihooApiClient(); //client.GenerateC...
0ddb0446-bec6-4d77-8a3e-63635644a541
{ "language": "C#" }
```c# using NBi.Xml.Settings; using NBi.Xml.Variables; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace NBi.Xml { [XmlInclude(typeof(InstanceUnique))] public class InstanceSettlingXml { [Xm...
```c# using NBi.Xml.Settings; using NBi.Xml.Variables; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace NBi.Xml { [XmlInclude(typeof(InstanceUnique))] public class InstanceSettlingXml { [Xm...
a622dd50-b21d-4770-9af1-e6600c67aeb4
{ "language": "C#" }
```c# using Microsoft.MSBuildProjectBuilder; using NUnit.Framework; using Shouldly; namespace MSBuildProjectBuilder.UnitTest { [TestFixture] public class ProjectTest { private ProjectBuilder _project; [OneTimeSetUp] public void TestInitialize() { _project = new...
```c# using Microsoft.MSBuildProjectBuilder; using NUnit.Framework; using Shouldly; namespace MSBuildProjectBuilder.UnitTest { [TestFixture] public class ProjectTest { private ProjectBuilder _project; [OneTimeSetUp] public void TestInitialize() { _project = new...
148be746-b38e-4375-a4cf-61c434ef1ddd
{ "language": "C#" }
```c# using System; using Autofac.Core; using Autofac.Core.Registration; using Autofac.Features.Metadata; using Autofac.Test.Features.Metadata.TestTypes; using Autofac.Util; using Xunit; namespace Autofac.Test.Features.Metadata { public class StronglyTypedMeta_WhenNoMatchingMetadataIsSupplied { private...
```c# using Autofac.Core; using Autofac.Features.Metadata; using Autofac.Test.Features.Metadata.TestTypes; using Autofac.Util; using Xunit; namespace Autofac.Test.Features.Metadata { public class StronglyTypedMeta_WhenNoMatchingMetadataIsSupplied { private readonly IContainer _container; publi...
f8504932-cbe4-4581-bbbf-d1d8196f3283
{ "language": "C#" }
```c# using System; using Newtonsoft.Json; using System.Collections.Generic; using Stripe.Infrastructure; namespace Stripe { public class StripeSubscriptionItem : StripeEntityWithId, ISupportMetadata { [JsonProperty("object")] public string Object { get; set; } [JsonProperty("created"...
```c# using System; using Newtonsoft.Json; using System.Collections.Generic; using Stripe.Infrastructure; namespace Stripe { public class StripeSubscriptionItem : StripeEntityWithId, ISupportMetadata { [JsonProperty("object")] public string Object { get; set; } [JsonProperty("created"...
9ea5a432-ad10-4362-91d4-da5be2f12eb5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Threading; using SimpleScale.HeadNode; namespace TestApp { public class Member { public string Name; ...
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Threading; using SimpleScale.HeadNode; namespace TestApp { public partial class Form1 : Form { pu...
a40c352e-d549-49d6-b62f-b11d7eef5208
{ "language": "C#" }
```c# using ChessDotNet; using ChessDotNet.Variants.Crazyhouse; using System.Collections.Generic; namespace ChessVariantsTraining.Extensions { public static class ChessGameExtensions { public static Dictionary<string, int> GenerateJsonPocket(this ChessGame game) { CrazyhouseChessGa...
```c# using ChessDotNet; using ChessDotNet.Variants.Crazyhouse; using System.Collections.Generic; namespace ChessVariantsTraining.Extensions { public static class ChessGameExtensions { public static Dictionary<string, int> GenerateJsonPocket(this ChessGame game) { CrazyhouseChessGa...
55f9d933-fde6-46ee-9923-e70657bdc0a7
{ "language": "C#" }
```c# using System; using MonoTouch.ObjCRuntime; [assembly: LinkWith ("libPayPalMobile.a", LinkTarget.ArmV7 | LinkTarget.ArmV7s | LinkTarget.Simulator, ForceLoad = true, Frameworks="AVFoundation CoreMedia CoreVideo SystemConfiguration Security MessageUI Op...
```c# using System; using MonoTouch.ObjCRuntime; [assembly: LinkWith ("libPayPalMobile.a", LinkTarget.ArmV7 | LinkTarget.ArmV7s | LinkTarget.Simulator, ForceLoad = true, Frameworks="AVFoundation CoreMedia CoreVideo SystemConfiguration Security MessageUI Op...
e824a712-f900-49e8-98d4-9b16a2a81d86
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; namespace Totem.Runtime { /// <summary> /// A user or process establishing a security context with a runtime service /// </summary> public class Client { public Client() { Id = Id.Unassigned;...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; namespace Totem.Runtime { /// <summary> /// A user or process establishing a security context with a runtime service /// </summary> public class Client { public Client() { Id = Id.Unassigned;...
11c33252-64f9-4e24-8072-34f8347abbc7
{ "language": "C#" }
```c# namespace NEventSocket.Tests.Sockets { using System; using System.Threading; using System.Threading.Tasks; using Common.Logging; using Common.Logging.Simple; using Xunit; public class OutboundSocketTests { public OutboundSocketTests() { ...
```c# namespace NEventSocket.Tests.Sockets { using System; using System.Threading; using System.Threading.Tasks; using Common.Logging; using Common.Logging.Simple; using Xunit; public class OutboundSocketTests { public OutboundSocketTests() { ...
b5ca6a7e-de12-41ba-9dc2-ca10fdbaeabf
{ "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.Overlays.Profile.Sections; using System; using System.Collections.Generic; using osu.Framework.Graphics; namespace osu.Game.Tests.Visual.Online { ...
```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.Overlays.Profile.Sections; using System; using System.Collections.Generic; using osu.Framework.Graphics; namespace osu.Game.Tests.Visual.Online { ...
5ad6338c-dbf1-4b6d-b6f6-3371e5b52964
{ "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.Threading.Tasks; namespace osu.Game.Online.RealtimeMultiplayer { /// <summary> /// An interface defining a spectator client instance. /// ...
```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.Threading.Tasks; namespace osu.Game.Online.RealtimeMultiplayer { /// <summary> /// An interface defining a spectator client instance. /// ...
26a89a8d-3ceb-43ff-8b94-477d01a28e86
{ "language": "C#" }
```c# using System; using System.Text.RegularExpressions; using System.Web; namespace Cassette.Aspnet { public class RawFileRequestRewriter { readonly HttpContextBase context; readonly IFileAccessAuthorization fileAccessAuthorization; readonly HttpRequestBase request; ...
```c# using System; using System.Text.RegularExpressions; using System.Web; namespace Cassette.Aspnet { public class RawFileRequestRewriter { readonly HttpContextBase context; readonly IFileAccessAuthorization fileAccessAuthorization; readonly HttpRequestBase request; ...
1a9d9aa0-caf7-47fc-a572-7a237ea31107
{ "language": "C#" }
```c# using System; namespace Lime.Protocol.Network { public class EnvelopeTooLargeException : Exception { public EnvelopeTooLargeException() : base() { } public EnvelopeTooLargeException(string message) : base(message) { } publ...
```c# using System; namespace Lime.Protocol.Network { public class EnvelopeTooLargeException : Exception { public EnvelopeTooLargeException() : base() { } public EnvelopeTooLargeException(string message) : base(message) { } publ...
c1a493f5-ba1c-410f-bb50-ad307bcda287
{ "language": "C#" }
```c# @model Devworx.CodePrettify.ViewModels.CodePrettifySettingsViewModel <fieldset> <legend>@T("Code Prettify")</legend> <div> @Html.EditorFor(m => m.PrettifySettingsPart.UseAutoLoader) <label for="@Html.FieldIdFor(m => m.PrettifySettingsPart.UseAutoLoader)" class="forcheckbox">@T("Use defau...
```c# @model Devworx.CodePrettify.ViewModels.CodePrettifySettingsViewModel <fieldset> <legend>@T("Code Prettify")</legend> <div> @Html.CheckBox("UseAutoLoader", Model.PrettifySettingsPart.UseAutoLoader) <label for="CodePrettifySettings_UseAutoLoader" class="forcheckbox">@T("Use default async a...
8eb80712-16ff-42bf-b764-da2043699d13
{ "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.Linq; using osu.Framework.Graphics; using osu.Framework.Testing; using osu.Game.Rulesets.Edit; using osu.Game.Screens.Edit.Compose.Components; using os...
```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.Linq; using osu.Framework.Graphics; using osu.Framework.Testing; using osu.Game.Rulesets.Edit; using osu.Game.Screens.Edit.Compose.Components; using os...
3d0b355f-39ba-4e62-8cb9-b6a55c56e8ab
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using Avalonia.VisualTree; namespace Avalonia.Rendering { /// <summary> /// An interface to allow non-templated controls to customize their hit-testing /// when using a renderer with a simple hit-testing algorithm without a scene graph, /// suc...
```c# using System.Collections.Generic; using System.Linq; using Avalonia.VisualTree; namespace Avalonia.Rendering { /// <summary> /// An interface to allow non-templated controls to customize their hit-testing /// when using a renderer with a simple hit-testing algorithm without a scene graph, /// suc...
52ded1bc-63ad-4883-92a9-cc6c7e67bffd
{ "language": "C#" }
```c# // https://leetcode.com/submissions/detail/52724586/ // // // Submission Details // 164 / 164 test cases passed. // Status: Accepted // Runtime: 160 ms // // Submitted: 0 minutes ago // /** * Definition for singly-linked list. * public class ListNode { * public int val; ...
```c# // https://leetcode.com/submissions/detail/52724586/ // // // Submission Details // 164 / 164 test cases passed. // Status: Accepted // Runtime: 160 ms // // Submitted: 0 minutes ago // /** * Definition for singly-linked list. * public class ListNode { * public int val; ...
69389e2a-4262-481d-b38c-1f51215aa2bb
{ "language": "C#" }
```c# using PluginContracts; using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading.Tasks; namespace LAN { public class LANInterface : IPluginV1 { public string Name { get; } = "LAN"; public string Description { get; } = "LAN communication interface ...
```c# using PluginContracts; using System; using System.IO; using System.Net; using System.Net.Sockets; using System.Threading.Tasks; namespace LAN { public class LANInterface : IPluginV1 { public string Name { get; } = "LAN"; public string Description { get; } = "LAN communication interface ...
6d39333e-ee10-4aec-8a56-f03216c4eddf
{ "language": "C#" }
```c# using System; namespace Evolve.Test.Utilities { public class CassandraDockerContainer { private DockerContainer _container; public string Id => _container.Id; public string ExposedPort => "9042"; public string HostPort => "9042"; public string ClusterName => "evo...
```c# using System; namespace Evolve.Test.Utilities { public class CassandraDockerContainer { private DockerContainer _container; public string Id => _container.Id; public string ExposedPort => "9042"; public string HostPort => "9042"; public string ClusterName => "evo...
6b9fcc38-65cd-4809-a600-79542e003bfb
{ "language": "C#" }
```c# using System; using System.IO; using System.Runtime.InteropServices; using Microsoft.Deployment.WindowsInstaller; namespace IndexerSetup.RegisterProperties { public class RegisterAction { [CustomAction] public static ActionResult RegisterPropDescFile(Session session) { ...
```c# using System; using System.IO; using System.Runtime.InteropServices; using Microsoft.Deployment.WindowsInstaller; namespace IndexerSetup.RegisterProperties { public class RegisterAction { [CustomAction] public static ActionResult RegisterPropDescFile(Session session) { ...
61c1498d-d54e-425a-b8f2-d94775f08e2e
{ "language": "C#" }
```c# namespace Stripe { using Newtonsoft.Json; /// <summary> /// The optional arguments you can pass. <a href="https://stripe.com/docs/api#list_disputes">Stripe Documentation</a>. /// </summary> public class DisputeListOptions : ListOptionsWithCreated { /// <summary> /// Only r...
```c# namespace Stripe { using Newtonsoft.Json; /// <summary> /// The optional arguments you can pass. <a href="https://stripe.com/docs/api#list_disputes">Stripe Documentation</a>. /// </summary> public class DisputeListOptions : ListOptionsWithCreated { /// <summary> /// Only r...
166f63b4-415e-45e4-8524-3348f153a8dc
{ "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.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using osu.Framework.Platform; using osu.Game.Database; namespace osu.G...
```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.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using osu.Framework.Platform; using osu.Game.Database; namespace osu.G...
eb692830-93b3-45c5-bc66-3d6fc8aa0367
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace PracticeGit.Controllers { public class HomeController : Controller { public ActionResult Index() { ViewBag.Title = "Home Page"; return View(); ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; // ADDED FIRST LINE namespace PracticeGit.Controllers { public class HomeController : Controller { public ActionResult Index() { ViewBag.Title = "Home Page"; ...
9e3235ba-891d-431a-b8b2-ba400a4bc77b
{ "language": "C#" }
```c# using System; using System.Diagnostics; namespace Toppler.Tests.Integration.TestHelpers { public class TestBase { private static Random Generator = new Random(); protected string TestEventSource { get; private set; } protected string TestDimension { get; private set; } ...
```c# using System; using System.Diagnostics; namespace Toppler.Tests.Integration.TestHelpers { public class TestBase { private static Random Generator = new Random(); protected string TestEventSource { get; private set; } protected string TestDimension { get; private set; } ...
71e36ec4-1b0e-4a98-9d79-e19ac5be100c
{ "language": "C#" }
```c# using System; using System.Diagnostics; using System.IO; using System.Windows.Forms; using Palaso.IO; namespace Palaso.UI.WindowsForms.ReleaseNotes { /// <summary> /// Shows a dialog for release notes; accepts html and markdown /// </summary> public partial class ShowReleaseNotesDialog : Form { private r...
```c# using System; using System.Drawing; using System.IO; using System.Windows.Forms; using Palaso.IO; namespace Palaso.UI.WindowsForms.ReleaseNotes { /// <summary> /// Shows a dialog for release notes; accepts html and markdown /// </summary> public partial class ShowReleaseNotesDialog : Form { private reado...
8d38a568-eb5c-4d4c-96aa-a45609db27b2
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Xml.Linq; using Ionic.Zip; namespace ThreeDXMLLoader.Implementation.Model { /// <summary> /// In memory archive implementation for the IThreeDArchive interface. /// </summary> class ThreeDR...
```c# using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Xml; using System.Xml.Linq; using Ionic.Zip; namespace ThreeDXMLLoader.Implementation.Model { /// <summary> /// In memory archive implementation for the IThreeDArchive interface....
0ae48ecd-0116-4991-9ba2-d3f4a8160496
{ "language": "C#" }
```c# using System; using FezGame.Mod; namespace FezGame { public class patch_Fez { public void orig_Exit() { } public void Exit() { orig_Exit(); FEZMod.Exit(); } } } ``` Change when FEZMod.Exit gets called. Either LiveSplit doesn't crash on my PC o...
```c# using System; using FezGame.Mod; namespace FezGame { public class patch_Fez { public void OnExiting(Object sender, EventArgs args) { //It's possible that FEZ doesn't contain this method and thus orig_OnExiting won't exist. FEZMod.Exit(); } } } ```
8eeb85ab-eac9-47eb-a230-f21a5999a929
{ "language": "C#" }
```c# namespace SpotfireDomViewer { using System.Reflection; public class MethodNode : DomNode { private object parentObject; private MethodInfo method; public MethodNode(object parentObj, MethodInfo m) : base(null, NodeTypes.Method, m.ToString()) { ...
```c# namespace SpotfireDomViewer { using System.Reflection; public class MethodNode : DomNode { private object parentObject; private MethodInfo method; public MethodNode(object parentObj, MethodInfo m) : base(null, NodeTypes.Method, m.ToString()) { ...
820ad416-b890-42c1-8f40-a26936ebe39d
{ "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.Skinning; #nullable enable namespace osu.Game.Screens.Edit { /// <summary> /// A <see cref="SkinProvidingContainer"/> that fires <see cref=...
```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.Skinning; #nullable enable namespace osu.Game.Screens.Edit { /// <summary> /// A <see cref="SkinProvidingContainer"/> that fires <see cref=...
edb11a03-46d3-488f-8f51-2e1a89426108
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Training.CSharpWorkshop { public class User { public int Id { get; set; } public string Name { get; set; } public RoleEnum Role { get; set; } } n...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Training.CSharpWorkshop { public class User { public int Id { get; set; } public string Name { get; set; } public RoleEnum Role { get; set; } } }```
a37c862b-2cb8-4c27-9d3b-6d8b31f1cd1f
{ "language": "C#" }
```c# using System; using System.ComponentModel.Composition; using System.Diagnostics; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.Options; using Microsoft.Internal.VisualStudio.Shell.Interop; using Microsoft.VisualStudio.ComponentModelHost; using Microsof...
```c# using System; using System.ComponentModel.Composition; using System.Diagnostics; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.Options; using Microsoft.Internal.VisualStudio.Shell.Interop; using Microsoft.VisualStudio.ComponentModelHost; using Microsof...
57821917-1800-4ca7-a774-289f5e90cb17
{ "language": "C#" }
```c# namespace CurrencyRates.Tests.Base.Extensions { using System; using CurrencyRates.Base.Extensions; using NUnit.Framework; [TestFixture] public class StringUtilsTest { private static readonly object[] TruncateTestCases = { new object[] { string.E...
```c# namespace CurrencyRates.Tests.Base.Extensions { using System; using CurrencyRates.Base.Extensions; using NUnit.Framework; [TestFixture] public class StringUtilsTest { private static readonly object[] TruncateTestCases = { new object[] { string.E...
64256895-f2b3-45b4-a9e2-056e61009110
{ "language": "C#" }
```c# using System; using Microsoft.Owin; using Owin; using ReferenceApiWeblessUmbraco.Application; using ReferenceApiWeblessUmbraco.App_Start; [assembly: OwinStartup(typeof(OwinStartup))] namespace ReferenceApiWeblessUmbraco.App_Start { public class OwinStartup { public void Configuration(IAppBuilde...
```c# using System; using Microsoft.Owin; using Owin; using ReferenceApiWeblessUmbraco.Application; using ReferenceApiWeblessUmbraco.App_Start; using UmbracoVault; [assembly: OwinStartup(typeof(OwinStartup))] namespace ReferenceApiWeblessUmbraco.App_Start { public class OwinStartup { public void Conf...
a257014c-4744-4229-bd21-368e47b6ccda
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ScooterController { class HardwareController { public HardwareController() { if (UsbRelayDevice.Init() != 0) { Console.Wri...
```c#  using System; namespace ScooterController { class HardwareController { private readonly int deviceHandle; public static void LogError(string message) { throw new Exception(message); } public HardwareController(string serialNumber = "FDP2R") ...
8f3bcaf0-bf1b-4727-8075-8aaeb66f6c7a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PseudoInternationalization { class ProcessorFactory { private static readonly Dictionary<string, Type> _extensionMap = new Dictionary<string, Type> { ...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PseudoInternationalization { class ProcessorFactory { private static readonly Dictionary<string, Type> _extensionMap = new Dictionary<string, Type> { ...
37904675-0517-4381-bafd-bc072b1739e1
{ "language": "C#" }
```c# //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.Drawing; using OpenTK.Graphics.ES20; namespace osu.Framework.Graphics.OpenGL.Textures { public class TextureUploa...
```c# //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.Drawing; using OpenTK.Graphics.ES20; namespace osu.Framework.Graphics.OpenGL.Textures { public class TextureUploa...
ce46160f-ab1b-43e3-9990-8ca98dbe4910
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace WebApplicationFireAndForget.Controllers { public class HomeController : Controller { public ActionResult Index() { return View(); } public Act...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; namespace WebApplicationFireAndForget.Controllers { public class HomeController : Controller { public async Task<ActionResult> Index() { aw...
d912e879-c1b1-4c2d-9ed8-c7888793a0bb
{ "language": "C#" }
```c#  using System; using System.Diagnostics; using System.ServiceModel; using NUnit.Framework; using TechTalk.SpecFlow; namespace Host.Specs { /// <summary> /// An **copy** of the interface specifying the contract for this service. /// </summary> [ServiceContract( Namespace = "http://www.tha...
```c#  using System; using System.Diagnostics; using System.ServiceModel; using NUnit.Framework; using TechTalk.SpecFlow; namespace Host.Specs { /// <summary> /// An **copy** of the interface specifying the contract for this service. /// </summary> [ServiceContract( Namespace = "http://www.tha...
21724c6e-f89b-4f92-955b-dc7a3f30004c
{ "language": "C#" }
```c# /** * This file is part of the MarkdownSharp package * For the full copyright and license information, * view the LICENSE file that was distributed with this source code. */ using System; using System.Text.RegularExpressions; namespace MarkdownSharp.Extensions.Mal { /// <summary> /// Create short ...
```c# /** * This file is part of the MarkdownSharp package * For the full copyright and license information, * view the LICENSE file that was distributed with this source code. */ using System; using System.Text.RegularExpressions; namespace MarkdownSharp.Extensions.Mal { /// <summary> /// Create short ...
743a4f2f-382a-441f-9881-844bb9845a77
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using EnvDTE; using EnvDTE80; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell.Interop; namespace Sln2CMake { internal class SolutionConverter { static public void ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using EnvDTE; using EnvDTE80; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Shell.Interop; namespace Sln2CMake { internal class SolutionConverter { static public void ...
d785ca0e-8600-484a-9232-f2786a02850e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TwitchLib; using TwitchLib.Models.Client; using System.Speech.Synthesis; namespace TwitchBot2002 { class Program { static SpeechSynthesizer synth; static void Main(...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TwitchLib; using TwitchLib.Models.Client; using System.Speech.Synthesis; namespace TwitchBot2002 { class Program { static SpeechSynthesizer synth; static void Main(...
68b10476-c0f8-4667-83d7-0795967b0d13
{ "language": "C#" }
```c# using Microsoft.Extensions.Configuration; using Nancy; using Nancy.TinyIoc; using NancyAzureFileUpload.Services; namespace NancyAzureFileUpload.Helpers { public class CustomBootstrapper : DefaultNancyBootstrapper { public IConfigurationRoot Configuration; public CustomBootstrapper() ...
```c# using Microsoft.Extensions.Configuration; using Nancy; using Nancy.TinyIoc; using NancyAzureFileUpload.Services; namespace NancyAzureFileUpload.Helpers { public class CustomBootstrapper : DefaultNancyBootstrapper { public IConfigurationRoot Configuration; public CustomBootstrapper() ...
3a02dc35-bbc2-4c75-b17c-670ec85782f9
{ "language": "C#" }
```c# using System; using System.Text; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Support.UI; using NUnit.Framework; namespace SeleniumTasksProject1._1 { [TestFixture] public class Chrome ...
```c# using System; using System.Text; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Support.UI; using NUnit.Framework; namespace SeleniumTasksProject1._1 { [TestFixture] public class Chrome ...
efdf8349-1d48-407c-9da6-66ae513bbf3e
{ "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 Humanizer; using osu.Game.Online.API.Requests.Responses; using osuTK.Graphics; namespace osu.Game.Overlays.Changelog { public class ChangelogUpdateStrea...
```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 Humanizer; using osu.Game.Online.API.Requests.Responses; using osuTK.Graphics; namespace osu.Game.Overlays.Changelog { public class ChangelogUpdateStrea...
791f0134-df16-4bab-bc51-ade69b0a1cd2
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using TramlineFive.Common; using TramlineFive.Common.Models; using TramlineFive.Views.Dialogs; namespace TramlineFive.ViewModels { public class ArrivalVie...
```c# using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using TramlineFive.Common; using TramlineFive.Common.Models; using TramlineFive.Views.Dialogs; namespace TramlineFive.ViewModels { public class ArrivalVie...