doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
b80d828d-d454-42c7-a7f0-c02c07d65b90
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Halodi.Physics.Interfaces { public abstract class IPhysicsEngine : MonoBehaviour { public abstract IRevoluteJointPhysics AddRevoluteJoint(ArticulationRevoluteJoint joint); public abstract IP...
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Halodi.Physics.Interfaces { public abstract class IPhysicsEngine : MonoBehaviour { public abstract IRevoluteJointPhysics AddRevoluteJoint(ArticulationRevoluteJoint joint); public abstract IP...
b52423d8-6169-4aac-87de-f7b6d2ae2b70
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Bugsnag.Sample.AspNet35 { public partial class Index : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { AspNet.Client.C...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Bugsnag.AspNet; namespace Bugsnag.Sample.AspNet35 { public partial class Index : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {...
1ddc8e89-98d5-4124-9463-cb86ae5f14b7
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Runtime.Serialization; using PS.Mothership.Core.Common.Template.Gen; namespace PS.Mothership.Core.Common.Dto.Application { [DataContract] public class ApplicationDetailsMetadataDto { [DataMember] public IList<GenBusinessLegalType> Busine...
```c# using System.Collections.Generic; using System.Runtime.Serialization; using PS.Mothership.Core.Common.Template.App; using PS.Mothership.Core.Common.Template.Gen; namespace PS.Mothership.Core.Common.Dto.Application { [DataContract] public class ApplicationDetailsMetadataDto { [DataMember] ...
033113f4-9d31-4f2e-bfe5-60276b392445
{ "language": "C#" }
```c# // Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using AutomaticTypeMapper; namespace EOLib { #if LINUX [AutoMappedType] public class HDSerialNumberServiceLinux : IHDSerialNumberService { publ...
```c# // Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using System.Diagnostics; using System.Linq; using System.Text.RegularExpressions; using AutomaticTypeMapper; namespace EOLib { #if LINUX [AutoMappedType] ...
061f02bf-ba41-41d2-bdad-1ad64f7ea218
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Hosting; using Newtonsoft.Json; using System.Net.Http; using Newtonsoft.Json.Linq; using GeoIP.Models; using GeoIP.Executers; // For more information on ena...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Hosting; using Newtonsoft.Json; using System.Net.Http; using Newtonsoft.Json.Linq; using GeoIP.Models; using GeoIP.Executers; // For more information on ena...
0f42a014-c8fc-48ae-a8f9-83006bb65006
{ "language": "C#" }
```c# namespace DynamixelServo.Quadruped { public struct Vector3 { public readonly float X; public readonly float Y; public readonly float Z; public Vector3(float x, float y, float z) { X = x; Y = y; Z = z; } public s...
```c# namespace DynamixelServo.Quadruped { public struct Vector3 { public readonly float X; public readonly float Y; public readonly float Z; public Vector3(float x, float y, float z) { X = x; Y = y; Z = z; } public s...
7f2d0048-91dd-440f-b5d9-c1f83739637f
{ "language": "C#" }
```c# using System; using Table; public class Hangman { public static void Main(string[] args) { Console.WriteLine("Hello, World!"); Console.WriteLine("You entered the following {0} command line arguments:", args.Length ); for (int i=0; i < args.Length; i++) { Console.WriteLine("{0}", args...
```c# using System; using Table; public class Hangman { public static void Main(string[] args) { Table.Table t = new Table.Table(); Console.WriteLine("Hello, World!"); Console.WriteLine("You entered the following {0} command line arguments:", args.Length ); for (int i=0; i < args.Length; i++...
94057b6f-0875-4076-8cf6-c14c2605cc51
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace System.Runtime.CompilerServices { // When applied to a type this custom attribute will cause it's cctor to be executed during startup // rathe...
```c# // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace System.Runtime.CompilerServices { // When applied to a type this custom attribute will cause it's cctor to be executed during startup // rathe...
56fa1dab-a023-47f1-badf-ddf7fdd44144
{ "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.Collections.Immutable; using System.Composition; using Microsoft.CodeAnalysis.AddObsoleteAttribute; using Microsoft.CodeAnalysis.CodeFixes...
```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.Collections.Immutable; using System.Composition; using Microsoft.CodeAnalysis.AddObsoleteAttribute; using Microsoft.CodeAnalysis.CodeFixes...
78b8f095-9d2d-4ec1-ba8d-f6515c41ba5b
{ "language": "C#" }
```c# using OpenTK; using OpenTK.Graphics; using StorybrewCommon.Scripting; using StorybrewCommon.Storyboarding; using StorybrewCommon.Storyboarding.Util; using StorybrewCommon.Mapset; using StorybrewCommon.Util; using System; using System.Collections.Generic; namespace StorybrewScripts { public class %CLASSNAME%...
```c# using OpenTK; using OpenTK.Graphics; using StorybrewCommon.Mapset; using StorybrewCommon.Scripting; using StorybrewCommon.Storyboarding; using StorybrewCommon.Storyboarding.Util; using StorybrewCommon.Subtitles; using StorybrewCommon.Mapset; using StorybrewCommon.Util; using System; using System.Collections.Gene...
919740a3-e812-4f32-a681-1c34ea556d4e
{ "language": "C#" }
```c# using System.Diagnostics; using Cuemon.Extensions.Xunit; using Xunit; using Xunit.Abstractions; namespace Cuemon.Extensions.Diagnostics { public class FileVersionInfoExtensionsTest : Test { public FileVersionInfoExtensionsTest(ITestOutputHelper output) : base(output) { } ...
```c# using System.Diagnostics; using Cuemon.Extensions.Xunit; using Xunit; using Xunit.Abstractions; namespace Cuemon.Extensions.Diagnostics { public class FileVersionInfoExtensionsTest : Test { public FileVersionInfoExtensionsTest(ITestOutputHelper output) : base(output) { } ...
76209e6e-66b1-4739-a1eb-fc584498df13
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; using MediatR; using SFA.DAS.EmployerApprenticeshipsService.Application.Messages; using SFA.DAS.EmployerApprenticeshipsService.Domain.Data; using SFA.DAS.Messaging; namespace SFA.DAS.EmployerApprenticeshipsService.Application.Commands.CreateEmployerAccount { publi...
```c# using System; using System.Threading.Tasks; using MediatR; using SFA.DAS.EmployerApprenticeshipsService.Application.Messages; using SFA.DAS.EmployerApprenticeshipsService.Domain.Attributes; using SFA.DAS.EmployerApprenticeshipsService.Domain.Data; using SFA.DAS.Messaging; namespace SFA.DAS.EmployerApprenticeshi...
11def7bb-1a1e-473b-8175-109beab60092
{ "language": "C#" }
```c# <script type="text/javascript">searchHighlight()</script> <?cs if:len(links.alternate) ?> <div id="altlinks"> <h3>Download in other formats:</h3> <ul><?cs each:link = links.alternate ?> <li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>> <a href="<?cs var:link.href ?>"<?cs if:li...
```c# <script type="text/javascript">searchHighlight()</script> <?cs if:len(links.alternate) ?> <div id="altlinks"> <h3>Download in other formats:</h3> <ul><?cs each:link = links.alternate ?> <li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>> <a href="<?cs var:link.href ?>"<?cs if:li...
26c9dae2-0631-4fd9-8677-d02cfdc47f21
{ "language": "C#" }
```c# <script type="text/javascript">searchHighlight()</script> <?cs if:len(links.alternate) ?> <div id="altlinks"> <h3>Download in other formats:</h3> <ul><?cs each:link = links.alternate ?> <li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>> <a href="<?cs var:link.href ?>"<?cs if:li...
```c# <script type="text/javascript">searchHighlight()</script> <?cs if:len(links.alternate) ?> <div id="altlinks"> <h3>Download in other formats:</h3> <ul><?cs each:link = links.alternate ?> <li<?cs if:name(link) == len(links.alternate) - #1 ?> class="last"<?cs /if ?>> <a href="<?cs var:link.href ?>"<?cs if:li...
71b54760-28dc-4bcf-a1c5-118c3ffaac7f
{ "language": "C#" }
```c# using System.Runtime.Serialization; namespace Omise.Models { public enum OffsiteTypes { [EnumMember(Value = null)] None, [EnumMember(Value = "internet_banking_scb")] InternetBankingSCB, [EnumMember(Value = "internet_banking_bbl")] InternetBankingBBL, ...
```c# using System.Runtime.Serialization; namespace Omise.Models { public enum OffsiteTypes { [EnumMember(Value = null)] None, [EnumMember(Value = "internet_banking_scb")] InternetBankingSCB, [EnumMember(Value = "internet_banking_bbl")] InternetBankingBBL, ...
1338858e-a25e-43a4-9e3c-d0511f5dca13
{ "language": "C#" }
```c# /* * Programmed by Umut Celenli umut@celenli.com */ using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace MimeBank { /// <summary> /// This is the main class to check the file mime type /// Header list is loaded once /// </summary> publ...
```c# /* * Programmed by Umut Celenli umut@celenli.com */ using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace MimeBank { /// <summary> /// This is the main class to check the file mime type /// Header list is loaded once /// </summary> publ...
47fd1102-53d5-4e7e-9c74-4d01eef56e68
{ "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.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; namespace Sy...
```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.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; namespace Sy...
4684bb12-ad4e-4a15-a00e-c82c1a6959e3
{ "language": "C#" }
```c# namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Episodes { using Enums; using Objects.Basic; using Objects.Get.Shows.Episodes; using System.Collections.Generic; internal class TraktEpisodeCommentsRequest : TraktGetByIdEpisodeRequest<TraktPaginationListResult<TraktEpisodeComment>, TraktEp...
```c# namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Episodes { using Enums; using Objects.Basic; using Objects.Get.Shows.Episodes; using System.Collections.Generic; internal class TraktEpisodeCommentsRequest : TraktGetByIdEpisodeRequest<TraktPaginationListResult<TraktEpisodeComment>, TraktEp...
66c07310-d7f2-498b-9924-55ecbed6a156
{ "language": "C#" }
```c# using System; using System.Diagnostics; namespace Fixie.Behaviors { public class ExecuteCases : InstanceBehavior { public void Execute(Fixture fixture) { foreach (var @case in fixture.Cases) { var result = @case.Execution; using (v...
```c# using System; using System.Diagnostics; namespace Fixie.Behaviors { public class ExecuteCases : InstanceBehavior { public void Execute(Fixture fixture) { foreach (var @case in fixture.Cases) { var execution = @case.Execution; using...
dac4c813-ed5d-45c9-9830-de8bb2cf87f0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; namespace CertManager.Test.AcmeTests { [TestFixture] public class WhenInitializing : WithAcmeClient { public override async Task BecauseOf() { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; namespace CertManager.Test.AcmeTests { [TestFixture] public class WhenInitializing : WithAcmeClient { public override async Task BecauseOf() { ...
359e8f74-c6f1-47b9-a5b4-911e9a3efc51
{ "language": "C#" }
```c# using System; using DrClockwork.Domain.Logic; using DrClockwork.Domain.Models; using DrClockwork.Nancy.ViewModels; using Microsoft.AspNet.SignalR; using Nancy; using Nancy.ModelBinding; using Nancy.Validation; using Raven.Client; namespace DrClockwork.Nancy.Modules { public class AskModule : NancyModule ...
```c# using System; using DrClockwork.Domain.Logic; using DrClockwork.Domain.Models; using DrClockwork.Nancy.ViewModels; using Microsoft.AspNet.SignalR; using Nancy; using Nancy.ModelBinding; using Nancy.Validation; using Raven.Client; namespace DrClockwork.Nancy.Modules { public class AskModule : NancyModule ...
f68de220-659b-4559-8c67-85d72b596ead
{ "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.Threading.Tasks; using Microsoft.AspNetCore.Server.IntegrationTesting; using Microsoft.AspNetCore.Testing.xunit; using Xunit; names...
```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.Threading.Tasks; using Microsoft.AspNetCore.Server.IntegrationTesting; using Microsoft.AspNetCore.Testing.xunit; using Xunit; names...
680db18c-70d3-4eaa-8b2e-f096ca86d477
{ "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.Game.Rulesets.Edit; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Osu.Edit.Blueprints.HitCircles.Components; us...
```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.Game.Rulesets.Edit; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Osu.Edit.Blueprints.HitCircles.Components; us...
5400b3aa-533c-4f46-b3a9-cd67e27cd484
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Yio.Utilities; namespace Yio { pu...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Yio.Utilities; namespace Yio { pu...
b4d0aac8-9439-41b4-a7b7-e2ddfc9c5c7b
{ "language": "C#" }
```c# using System; using System.Linq; using FluentAssertions; using NSaga; using Xunit; namespace Tests { public class NamespaceTests { [Fact] public void NSaga_Contains_Only_One_Namespace() { //Arrange var assembly = typeof(ISagaMediator).Assembly; ...
```c# using System; using System.Linq; using FluentAssertions; using NSaga; using PetaPoco; using Xunit; namespace Tests { public class NamespaceTests { [Fact] public void NSaga_Contains_Only_One_Namespace() { //Arrange var assembly = typeof(ISagaMediator).Assem...
b96c7f74-a2eb-40bc-984f-48918f5d8490
{ "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.Linq; using NUnit.Framework; using osu.Game.Beatmaps.Legacy; using osu.Game.Rulesets; namespace osu.Game.Tests.Beatmaps { /// <summ...
```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.Linq; using NUnit.Framework; using osu.Game.Beatmaps.Legacy; using osu.Game.Rulesets; namespace osu.Game.Tests.Beatmaps { /// <summ...
74112e04-6898-401b-ace9-fa3238ca081b
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; namespace Glimpse.Web { public class FixedRequestAuthorizerProvider : IRequestAuthorizerProvider { public FixedRequestAuthorizerProvider() : this(Enumerable.Empty<IRequestAuthorizer>()) { } public FixedRequ...
```c# using System.Collections.Generic; using System.Linq; namespace Glimpse.Web { public class FixedRequestAuthorizerProvider : IRequestAuthorizerProvider { public FixedRequestAuthorizerProvider() : this(Enumerable.Empty<IRequestAuthorizer>()) { } public FixedRequ...
cb247cd2-db16-4a3e-b1e5-511f655f3dcb
{ "language": "C#" }
```c# using Glimpse.Agent; using Microsoft.Framework.DependencyInjection; using Glimpse.Server.Web; using Microsoft.Framework.OptionsModel; namespace Glimpse { public class GlimpseServerWebServices { public static IServiceCollection GetDefaultServices() { var services = new Service...
```c# using Glimpse.Agent; using Microsoft.Framework.DependencyInjection; using Glimpse.Server.Web; using Microsoft.Framework.OptionsModel; namespace Glimpse { public class GlimpseServerWebServices { public static IServiceCollection GetDefaultServices() { var services = new Service...
6defa854-7b61-4a9a-8e93-14886009bbac
{ "language": "C#" }
```c# using System; using NUnit.Framework; using MonoTorrent.BEncoding; namespace MonoTorrent.Common { [TestFixture] public class TorrentEditorTests { [Test] public void EditingCreatesCopy () { var d = Create ("comment", "a"); var editor = new TorrentEditor ...
```c# using System; using NUnit.Framework; using MonoTorrent.BEncoding; namespace MonoTorrent.Common { [TestFixture] public class TorrentEditorTests { [Test] public void EditingCreatesCopy () { var d = Create ("comment", "a"); var editor = new TorrentEditor ...
f65b2d14-59ad-418a-a0d2-c3280ef8c4b1
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace GoldenTicket { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}....
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace GoldenTicket { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}....
5ef35865-4d0f-40c4-bfac-b63b0f1b2675
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace SO115.ApiGateway.Controllers { [Route("api/[controller]")] [ApiController] public class PersonaleController : ControllerBase ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using SO115App.ApiGateway.Classi; using SO115App.ApiGateway.Servizi; namespace SO115.ApiGateway.Controllers { [Route("api/[controller]")] [Api...
2b9fee75-0b48-47d5-9d68-0f7c78a6a948
{ "language": "C#" }
```c# using System.Collections.Generic; using osu.Framework.Input; // 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.Replays; namespace osu.Game.Rulesets.Mania.Replays { internal 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.Collections.Generic; using osu.Framework.Input; using osu.Game.Rulesets.Replays; namespace osu.Game.Rulesets.Mania.Replays { internal c...
174f7b39-9dfe-432a-b668-21f0d7632168
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using MMLibrarySystem.Models; namespace MMLibrarySystem.Controllers { public class BookListController : Controller { public ActionResult Index(string searchTerm = null) { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using MMLibrarySystem.Models; namespace MMLibrarySystem.Controllers { public class BookListController : Controller { public ActionResult Index(string searchTerm = null) { ...
a1e3daf7-0b25-4b31-9f66-b54778e71560
{ "language": "C#" }
```c# using RTS.MIDI; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace RTS { public partial class ViewTone : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ...
```c# using RTS.MIDI; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace RTS { public partial class ViewTone : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ...
86db127e-c4cc-4401-b963-f661ff991519
{ "language": "C#" }
```c# namespace Microsoft.AspNetCore.Hosting { using System.Diagnostics; using System.Globalization; using Microsoft.ApplicationInsights.AspNetCore.Extensions; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; /// ...
```c# namespace Microsoft.AspNetCore.Hosting { using System.Diagnostics; using System.Globalization; using System.IO; using Microsoft.ApplicationInsights.AspNetCore.Extensions; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensio...
a0a342c7-6c2d-4a60-a1cd-b0319bc4dbee
{ "language": "C#" }
```c# using System; using System.Security.Cryptography; namespace THNETII.Security.JOSE { public static class JsonWebRsaExtensions { public static JsonRsaWebKey ExportJsonWebKey(this RSA rsa, bool includePrivateParameters) { if (rsa == null) throw new ArgumentNullEx...
```c# using Newtonsoft.Json; using System; using System.Security.Cryptography; namespace THNETII.Security.JOSE { public static class JsonWebRsaExtensions { public static JsonRsaWebKey ExportJsonWebKey(this RSA rsa, bool includePrivateParameters) { if (rsa == null) t...
669de740-c0c0-40d5-9b75-6f5e79049f21
{ "language": "C#" }
```c# using PickupMailViewer.Helpers; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; namespace PickupMailViewer.Models { public class MailModel { private readonly CDO.Message mail; private readonly string mailPath; public MailModel...
```c# using PickupMailViewer.Helpers; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; namespace PickupMailViewer.Models { public class MailModel { private readonly CDO.Message mail; private readonly string mailPath; public MailModel...
4420cc31-3a26-42c8-866f-7040c8017fc2
{ "language": "C#" }
```c# using System.ComponentModel.Composition; using Microsoft.VisualStudio.ProjectSystem; namespace Cosmos.VS.ProjectSystem { [Export(typeof(IProjectTreePropertiesProvider))] [AppliesTo(ProjectCapability.Cosmos)] [Order(Order.OverrideManaged)] internal class ProjectTreePropertiesProvider : IProjectTr...
```c# using System.ComponentModel.Composition; using Microsoft.VisualStudio.Imaging; using Microsoft.VisualStudio.ProjectSystem; namespace Cosmos.VS.ProjectSystem { [Export(typeof(IProjectTreePropertiesProvider))] [AppliesTo(ProjectCapability.Cosmos)] [Order(Order.OverrideManaged)] internal class Proj...
f17e4121-7db2-4c4e-b1bf-b04b7e183fd0
{ "language": "C#" }
```c# using System; namespace Leaf { /// <summary> /// Handles serialization and meta-data of nodes in a container. /// </summary> public abstract class Engine { /// <summary> /// Numerical version used to distinguish this engine from others. /// </summary> public a...
```c# using System.IO; using Leaf.Nodes; namespace Leaf { /// <summary> /// Handles serialization and meta-data of nodes in a container. /// </summary> public abstract class Engine { /// <summary> /// Numerical version used to distinguish this engine from others. /// </summ...
92c54fe2-d6ce-481f-a085-977b8ce0bcc8
{ "language": "C#" }
```c# namespace Albireo.Otp { using System; using System.Diagnostics.Contracts; public static class Hotp { public static int GetCode(string secret, long counter, int digits = Otp.DefaultDigits) { Contract.Requires<ArgumentNullException>(secret != null); Contract...
```c# namespace Albireo.Otp { using System; using System.Diagnostics.Contracts; public static class Hotp { public static int GetCode(string secret, long counter, int digits = Otp.DefaultDigits) { Contract.Requires<ArgumentNullException>(secret != null); Contract...
6194e39e-da1f-461f-8767-33d068c3bd37
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; namespace SimpleToggle { public class Toggle { public class Config { static Config() { NoToggleBehaviour = DefaultNoToggleBehaviour; } private static bool De...
```c# using System; using System.Collections.Generic; using System.Linq; namespace SimpleToggle { public class Toggle { public class Config { static Config() { NoToggleBehaviour = DefaultNoToggleBehaviour; } private static bool De...
6411b70f-1d92-4d6b-8f1d-efa077649ee6
{ "language": "C#" }
```c# using System; namespace LiteDB.Shell { internal class ShellException : Exception { public ShellException(string message) : base(message) { } public static ShellException NoDatabase() { return new ShellException("No open database"); ...
```c# using System; namespace LiteDB.Shell { [Serializable] internal class ShellException : Exception { public ShellException(string message) : base(message) { } public static ShellException NoDatabase() { return new ShellException("No open ...
13f0d33b-4764-4751-afcd-c5b268303b78
{ "language": "C#" }
```c# using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media.Animation; namespace clipman.Views { /// <summary> /// Interaction logic for ClipList.xaml /// </summary> public partial class ClipList : UserControl { public ClipList() { Initia...
```c# using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media.Animation; namespace clipman.Views { /// <summary> /// Interaction logic for ClipList.xaml /// </summary> public partial class ClipList : UserControl { public ClipList() { Initia...
66af8204-0a11-4544-a358-5413916195ae
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; namespace Marcello.Transactions { internal class Transaction { Marcello Session { get; set; } internal bool Running { get; set; } internal bool IsCommitting { get; set; } int Enlisted { get; set; } internal Transacti...
```c# using System; using System.Threading.Tasks; namespace Marcello.Transactions { internal class Transaction { Marcello Session { get; set; } internal bool Running { get; set; } internal bool IsCommitting { get; set; } int Enlisted { get; set; } internal Transacti...
8f766a3b-cb5d-44cd-899b-e0dc73a817ab
{ "language": "C#" }
```c# using LibPixelPet; using System; namespace PixelPet.CLI.Commands { internal class PadTilesetCmd : CliCommand { public PadTilesetCmd() : base("Pad-Tileset", new Parameter(true, new ParameterValue("width")) ) { } public override void Run(Workbench workbench, ILogger logger) { int width = FindUn...
```c# using LibPixelPet; using System; namespace PixelPet.CLI.Commands { internal class PadTilesetCmd : CliCommand { public PadTilesetCmd() : base("Pad-Tileset", new Parameter(true, new ParameterValue("width")) ) { } public override void Run(Workbench workbench, ILogger logger) { int width = FindUn...
78ec1a08-7212-48d4-8fdb-25ad9f1dcb65
{ "language": "C#" }
```c# using CommandLine; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IdunnSql.Console { [Verb("generate", HelpText = "Generate a file")] public class GenerateOptions { [Option('s', "source", Required = true, ...
```c# using CommandLine; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IdunnSql.Console { [Verb("generate", HelpText = "Generate a file")] public class GenerateOptions { [Option('s', "source", Required = true, ...
484f665b-b613-4d5e-8992-28608ed28e82
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; using UnityEngine; namespace IllusionInjector { class PluginComponent : MonoBehaviour { private CompositePlugin plugins; private bool freshlyLoaded = false; void Awake() { DontDestroyOnLoad(th...
```c# using System; using System.Collections.Generic; using System.Text; using UnityEngine; namespace IllusionInjector { class PluginComponent : MonoBehaviour { private CompositePlugin plugins; private bool freshlyLoaded = false; void Awake() { DontDestroyOnLoad(th...
4725cea5-d21b-402d-8366-af8fe9bba180
{ "language": "C#" }
```c# using System; using System.Runtime.InteropServices; namespace NFluidsynth.Native { internal static partial class LibFluidsynth { public const string LibraryName = "fluidsynth"; public const int FluidOk = 0; public const int FluidFailed = -1; #if NETCOREAPP static LibFlu...
```c# using System; using System.Runtime.InteropServices; namespace NFluidsynth.Native { internal static partial class LibFluidsynth { public const string LibraryName = "fluidsynth"; public const int FluidOk = 0; public const int FluidFailed = -1; #if NETCOREAPP static LibFlu...
c5024fdd-6b0b-4dbd-a0a7-8001e85c2a9f
{ "language": "C#" }
```c# // Copyright © 2010-2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Windows.Forms; using CefSharp.Example; namespace CefSharp.WinForms.Example { class Program { [ST...
```c# // Copyright © 2010-2014 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Windows.Forms; using CefSharp.Example; using CefSharp.WinForms.Example.Minimal; namespace CefSharp.WinForms.Exam...
5a9063c4-bc0a-4856-ae0d-21fdf3e03d54
{ "language": "C#" }
```c# <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com...
```c# <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window, document, 'script', '//cdn.owlcdn.com/google/analy...
8f5e4efe-94f7-49ac-8069-a27027659d71
{ "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 BenchmarkDotNet.Running; namespace osu.Framework.Benchmarks { public static class Program { public static void Main(string[] args) { ...
```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 BenchmarkDotNet.Configs; using BenchmarkDotNet.Running; namespace osu.Framework.Benchmarks { public static class Program { public static void...
a595077e-a474-4595-94fc-42f11d05cd6b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; namespace SadConsole { /// <summary> /// The old value and the value it changed to. /// </summary> public class ValueChangedEventArgs<T> : EventArgs { /// <summary> /// The previous object. /// </summa...
```c# using System; using System.Collections.Generic; using System.Text; namespace SadConsole { /// <summary> /// The old value and the value it changed to. /// </summary> public class ValueChangedEventArgs<T> : EventArgs { /// <summary> /// The previous object. /// </summa...
fad6f417-0c1e-4396-8d5c-bee8c467ab76
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using KenticoInspector.Core.Models; using KenticoInspector.Core.Services; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json.Linq; namespace KenticoInspector.WebApplication.Contro...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using KenticoInspector.Core.Models; using KenticoInspector.Core.Services; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json.Linq; namespace KenticoInspector.WebApplication.Contro...
a60b778a-79bf-4f3d-82f1-e41d48e13c7f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Examine; namespace Umbraco.Examine { /// <summary> /// Utility to rebuild all indexes ensuring minimal data queries /// </summary> public class IndexRebuilder { private readonly...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Examine; namespace Umbraco.Examine { /// <summary> /// Utility to rebuild all indexes ensuring minimal data queries /// </summary> public class IndexRebuilder { private readonly...
b118d141-0f06-4ada-9b07-b4b6364a882a
{ "language": "C#" }
```c#  namespace Xunit { /// <summary> /// Suggested values for the Visual Studio Version to run tests against. /// </summary> public static class VisualStudioVersion { /// <summary> /// Specifies that the test should be run against all installed /// Visual Studio versions ...
```c#  namespace Xunit { /// <summary> /// Suggested values for the Visual Studio Version to run tests against. /// </summary> public static class VisualStudioVersion { /// <summary> /// Specifies that the test should be run against all installed /// Visual Studio versions ...
d13a7ec4-e2e5-4113-8015-dcb267039bb2
{ "language": "C#" }
```c# using Antagonists; using UnityEngine; namespace Messages.Server.LocalGuiMessages { public class AntagBannerMessage: ServerMessage { public string AntagName; public string AntagSound; public Color TextColor; public Color BackgroundColor; private bool playSound; public static AntagBannerMessage Sen...
```c# using Antagonists; using Audio.Managers; using Mirror; using UnityEngine; namespace Messages.Server.LocalGuiMessages { public class AntagBannerMessage: ServerMessage { public string AntagName; public string AntagSound; public Color TextColor; public Color BackgroundColor; private bool PlaySound; ...
f216f8d4-e21c-47e5-b462-1cecb3b6665c
{ "language": "C#" }
```c# using Portal.CMS.Entities.Entities; using System.Collections.Generic; using System.Linq; namespace Portal.CMS.Entities.Seed { public static class MenuSeed { public static void Seed(PortalEntityModel context) { if (!context.Menus.Any(x => x.MenuName == "Main Menu")) ...
```c# using Portal.CMS.Entities.Entities; using System.Collections.Generic; using System.Linq; namespace Portal.CMS.Entities.Seed { public static class MenuSeed { public static void Seed(PortalEntityModel context) { if (!context.Menus.Any(x => x.MenuName == "Main Menu")) ...
0818269f-e57f-4a8c-9d13-240099893da7
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.MSBuild; using Microsoft.VisualStudio.TestTools.UnitTesting; using...
```c# namespace StyleCop.Analyzers.Test { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using StyleCop.Analyzers.ReadabilityRules; using Xunit; public class ExportCod...
84dbcc49-255c-4043-9140-f822159c2714
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace EventLogDataSource { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace EventLogDataSource { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] ...
87edf21d-bda6-4e3f-828a-d129aa9266ea
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public class Movement : MonoBehaviour { public float speed = 6.0F; private Animator animator; private Vector3 moveDirection = Vector3.zero; public float lookSpeed = 10; private Vector3 curLoc; private Vector3 prevLoc; void Start(){ animator = GetComponent...
```c# using UnityEngine; using System.Collections; public class Movement : MonoBehaviour { public float speed = 6.0F; private Animator animator; private Vector3 moveDirection = Vector3.zero; public float lookSpeed = 10; private Vector3 curLoc; private Vector3 prevLoc; void Start(){ animator = GetComponent...
02cd9feb-8ae9-45ab-8ab1-87a4b9df0180
{ "language": "C#" }
```c# using System; using IvionWebSoft; public class Site { public readonly Uri SiteUrl; public readonly int DisplayMax; public string GoogleSiteDeclaration { get { return "site:" + SiteUrl.Host; } } public static readonly Site None; public static readonly Site YouTube; pub...
```c# using System; using IvionWebSoft; public class Site { public readonly Uri SiteUrl; public readonly int DisplayMax; public string GoogleSiteDeclaration { get { return "site:" + SiteUrl.Host; } } public static readonly Site None; public static readonly Site YouTube; pub...
5abeacb5-1df1-42dd-a537-94f503262de5
{ "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.Containers; namespace osu.Game.Screens.Edit { /// <summary> /// ...
```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.Containers; using osu.Framework.Graphics.Cursor; namespace osu.Game.Scre...
72953df9-894c-4eba-8b21-b480a514dffb
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExpressRunner.DesignerMocks { public class TestExplorerViewModel { private readonly TestGroup selectedTestGroup; public TestGroup SelectedTestGroup { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExpressRunner.DesignerMocks { public class TestExplorerViewModel { private readonly TestGroup selectedTestGroup; public TestGroup SelectedTestGroup { ...
a88ced34-7207-4ffd-868a-2230eef6dd4f
{ "language": "C#" }
```c# using System; using System.Linq; using System.Threading.Tasks; using CommandLine; using VstsMetrics.Abstractions; using VstsMetrics.Extensions; using VstsMetrics.Renderers; namespace VstsMetrics.Commands.Throughput { public class ThroughputCommand : Command { [Option('d', "doneState", DefaultValu...
```c# using System; using System.Linq; using System.Threading.Tasks; using CommandLine; using VstsMetrics.Abstractions; using VstsMetrics.Extensions; using VstsMetrics.Renderers; namespace VstsMetrics.Commands.Throughput { public class ThroughputCommand : Command { [Option('d', "doneState", DefaultValu...
e69d06e4-4a0c-4925-ba9e-cea0c584448f
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
2da86027-df51-447f-a48b-a47fb1420956
{ "language": "C#" }
```c# using Chalmers.ILL.Models; using Examine; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Web; using Chalmers.ILL.Extensions; using Chalmers.ILL.OrderItems; namespace Chalmers.ILL.Providers { public class ProviderService : IProviderService { ...
```c# using Chalmers.ILL.Models; using Examine; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Web; using Chalmers.ILL.Extensions; using Chalmers.ILL.OrderItems; namespace Chalmers.ILL.Providers { public class ProviderService : IProviderService { ...
e6fa60b7-59da-4385-9c68-2ac24ecbf6b3
{ "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 osu.Framework.Graphics.Textures; using osuTK.Graphics.ES30; using FFmpeg.AutoGen; using osu.Framework.Graphics.Primitives; using SixLabors.Imag...
```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 osu.Framework.Graphics.Textures; using osuTK.Graphics.ES30; using FFmpeg.AutoGen; using osu.Framework.Graphics.Primitives; using SixLabors.Imag...
91c0d4e3-146e-4908-b2cf-fecd93a394ee
{ "language": "C#" }
```c# using System; using Sitecore.Data; namespace AutoSitecore { [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)] public class ItemDataAttribute : Attribute { public static readonly ItemDataAttribute Null = new ItemDataAttribute(); public ItemDataAttribute(string name=null, string i...
```c# using System; using Sitecore.Data; namespace AutoSitecore { [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)] public class ItemDataAttribute : Attribute { public static readonly ItemDataAttribute Null = new ItemDataAttribute(); public ItemDataAttribute(string name=null, string i...
935f27de-f4b5-489d-8f34-83c484a29688
{ "language": "C#" }
```c# namespace Parsley; public static class ReadOnlySpanExtensions { public static ReadOnlySpan<char> Peek(this ref ReadOnlySpan<char> input, int length) => length >= input.Length ? input.Slice(0) : input.Slice(0, length); public static void Advance(this ref ReadOnlySpan<char>...
```c# namespace Parsley; public static class ReadOnlySpanExtensions { public static ReadOnlySpan<char> Peek(this ref ReadOnlySpan<char> input, int length) => length >= input.Length ? input.Slice(0) : input.Slice(0, length); public static void Advance(this ref ReadOnlySpan<char>...
128ebeb8-2945-410a-be89-c2287b9eb06e
{ "language": "C#" }
```c# namespace Internal.ReadLine.Abstractions { internal interface IConsole { int CursorLeft { get; } int CursorTop { get; } int BufferWidth { get; } int BufferHeight { get; } bool PasswordMode { get; set; } char PasswordChar { get; set; } void SetCursorP...
```c# namespace Internal.ReadLine.Abstractions { internal interface IConsole { int CursorLeft { get; } int CursorTop { get; } int BufferWidth { get; } int BufferHeight { get; } void SetCursorPosition(int left, int top); void SetBufferSize(int width, int height); ...
3d979719-8aa6-4aff-a0b0-06a8c08a0ae3
{ "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.Reflection; using System.Runtime.CompilerServices; //[assembly: AssemblyVersion("0.0.0.*")] [assembly: AssemblyTitle ("NDesk.DBus")] [assembly: AssemblyDescription ("D-Bu...
```c# // Copyright 2006 Alp Toker <alp@atoker.com> // This software is made available under the MIT License // See COPYING for details using System.Reflection; using System.Runtime.CompilerServices; //[assembly: AssemblyVersion("0.0.0.*")] [assembly: AssemblyTitle ("NDesk.DBus")] [assembly: AssemblyDescription ("D-Bu...
80f835ef-2e38-43c3-bcb2-4ffac6155be4
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CompetitionPlatform.Models { public class AuthenticateModel { public string FullName { get; set; } public string Password { get; set; } } } ``` Add CompetitionPlatformUser to I...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CompetitionPlatform.Models { public class AuthenticateModel { public string FullName { get; set; } public string Password { get; set; } } public class CompetitionPlatformUs...
e706a86c-7a0c-4afa-92a4-aff07e62d1a5
{ "language": "C#" }
```c# // IPAddressType.cs // Script#/Libraries/Node/Core // This source code is subject to terms and conditions of the Apache License, Version 2.0. // using System; using System.Runtime.CompilerServices; namespace NodeApi.Network { [ScriptImport] [ScriptIgnoreNamespace] [ScriptConstants(UseNames = true)]...
```c# // IPAddressType.cs // Script#/Libraries/Node/Core // This source code is subject to terms and conditions of the Apache License, Version 2.0. // using System; using System.Runtime.CompilerServices; namespace NodeApi.Network { [ScriptImport] [ScriptIgnoreNamespace] [ScriptConstants(UseNames = true)]...
a290985f-5bd5-4a9b-95ba-d7f0e5d36c79
{ "language": "C#" }
```c# using System; using NUnit.Framework; using DevTyr.Gullap; namespace DevTyr.Gullap.Tests.With_Guard.For_NotNull { [TestFixture] public class When_argument_is_null { [Test] public void Should_throw_argumentnullexception () { Assert.Throws<ArgumentNullException> (() => Guard.NotNull (null, null)); } ...
```c# using System; using NUnit.Framework; using DevTyr.Gullap; namespace DevTyr.Gullap.Tests.With_Guard.For_NotNull { [TestFixture] public class When_argument_is_null { [Test] public void Should_throw_argumentnullexception () { Assert.Throws<ArgumentNullException> (() => Guard.NotNull (null, null)); } ...
d13ea6bd-82a9-4fdf-bceb-5334994c36af
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using System.Linq; using Xunit; namespace CSharp.Functional.Tests { public class RangeTests { [Theory] [InlineData(0, 1)] public void RangeProvidesAnIEnumerable(int start, int end) { var result = F.Ra...
```c# using System.Collections; using System.Collections.Generic; using System.Linq; using Xunit; namespace CSharp.Functional.Tests { public class RangeTests { [Theory] [InlineData(0, 1)] public void RangeProvidesAnIEnumerable(int start, int end) { var result = F.Ra...
6d3f1fa5-f883-4c3c-ab3d-bfe6a34367fe
{ "language": "C#" }
```c# using System; namespace LiveSplit.TimeFormatters { public class PossibleTimeSaveFormatter : ITimeFormatter { public TimeAccuracy Accuracy { get; set; } public string Format(TimeSpan? time) { var formatter = new ShortTimeFormatter(); if (time == null) ...
```c# using System; namespace LiveSplit.TimeFormatters { public class PossibleTimeSaveFormatter : ITimeFormatter { public TimeAccuracy Accuracy { get; set; } public string Format(TimeSpan? time) { var formatter = new ShortTimeFormatter(); if (time == null) ...
0553ecf3-1364-4dac-be2f-f7055175000e
{ "language": "C#" }
```c# // Copyright(c) 2016 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
```c# // Copyright(c) 2016 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
6b4bfe23-394f-4cc9-9a50-b6dd2fc4bec3
{ "language": "C#" }
```c# using MyDocs.Common.Contract.Service; using MyDocs.Common.Contract.Storage; using MyDocs.Common.Model; using MyDocs.WindowsStore.Storage; using System; using System.Threading.Tasks; using Windows.Media.Capture; namespace MyDocs.WindowsStore.Service { public class CameraService : ICameraService ...
```c# using MyDocs.Common.Contract.Service; using MyDocs.Common.Contract.Storage; using MyDocs.Common.Model; using MyDocs.WindowsStore.Storage; using System; using System.Threading.Tasks; using Windows.Media.Capture; namespace MyDocs.WindowsStore.Service { public class CameraService : ICameraService ...
dc1eeb46-3133-4d16-8e89-6e38c4e80391
{ "language": "C#" }
```c# using AppHarbor.Commands; using Moq; using Ploeh.AutoFixture; using Ploeh.AutoFixture.AutoMoq; using Xunit; namespace AppHarbor.Tests.Commands { public class CreateCommandTest { private readonly IFixture _fixture; public CreateCommandTest() { _fixture = new Fixture().Customize(new AutoMoqCustomizati...
```c# using AppHarbor.Commands; using Moq; using Ploeh.AutoFixture; using Ploeh.AutoFixture.AutoMoq; using Ploeh.AutoFixture.Xunit; using Xunit.Extensions; namespace AppHarbor.Tests.Commands { public class CreateCommandTest { private readonly IFixture _fixture; public CreateCommandTest() { _fixture = new ...
883c3b2a-7344-4287-a9e9-bb4d3d8201b3
{ "language": "C#" }
```c# using System.ComponentModel.DataAnnotations; using API.WindowsService.Validators; using Contract; using FluentValidation.Attributes; namespace API.WindowsService.Models { [Validator(typeof(AudioRequestValidator))] public class AudioJobRequestModel : JobRequestModel { [Required] publi...
```c# using System.ComponentModel.DataAnnotations; using API.WindowsService.Validators; using Contract; using FluentValidation.Attributes; namespace API.WindowsService.Models { [Validator(typeof(AudioRequestValidator))] public class AudioJobRequestModel : JobRequestModel { [Required] publi...
24da44db-d8a6-47f6-8e29-f9acc0641d6c
{ "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.Localisation; using osu.Game.Configuration; using osu.Game.Graphics.UserInterface...
```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.Localisation; using osu.Game.Configuration; using osu.Game.Graphics.UserInterface...
8bc5d79a-bbf5-4a7f-bce4-c5e724feb6d4
{ "language": "C#" }
```c# using System; using System.Windows.Input; namespace OutlookMatters.Settings { public class SaveCommand : ICommand { private readonly ISettingsSaveService _saveService; private readonly IClosableWindow _window; public SaveCommand(ISettingsSaveService saveService, IClosableWindow ...
```c# using System; using System.Windows.Input; namespace OutlookMatters.Settings { public class SaveCommand : ICommand { private readonly ISettingsSaveService _saveService; private readonly IClosableWindow _window; public SaveCommand(ISettingsSaveService saveService, IClosableWindow ...
b286c7e6-a2d0-4432-915f-cddbb7c165f7
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public abstract class ConsoleAction : ActionBase { public abstract void Activate(); } ``` Fix exception when including this in a project without TriggerAction
```c# using UnityEngine; using System.Collections; public abstract class ConsoleAction : MonoBehaviour { public abstract void Activate(); } ```
9f221e4b-b454-440f-a11d-b7dd506c3a4c
{ "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.Reflection; using System.Runtime.CompilerServices; //[assembly: AssemblyVersion("0.0.0.*")] [assembly: AssemblyTitle ("NDesk.DBus")] [assembly: AssemblyDescription ("D-Bu...
```c# // Copyright 2006 Alp Toker <alp@atoker.com> // This software is made available under the MIT License // See COPYING for details using System.Reflection; using System.Runtime.CompilerServices; //[assembly: AssemblyVersion("0.0.0.*")] [assembly: AssemblyTitle ("NDesk.DBus")] [assembly: AssemblyDescription ("D-Bu...
b484bcce-046a-4357-b646-9d729b144784
{ "language": "C#" }
```c# using System; using System.Collections.Generic; namespace NValidate { public class BaseEnviron : Environ { readonly Dictionary<Type, Func<Environ, object>> _modelExtractors; readonly Dictionary<Type, object> _models; public BaseEnviron(Dictionary<Type, Func<Environ,...
```c# using System; using System.Collections.Generic; namespace NValidate { public class BaseEnviron : Environ { readonly Dictionary<Type, Func<Environ, object>> _modelExtractors; readonly Dictionary<Type, object> _models; public BaseEnviron(Dictionary<Type, Func<Environ,...
f47e70f2-ae48-4d5c-b23c-1499b1d52b68
{ "language": "C#" }
```c# // Copyright 2015 Apcera Inc. All rights reserved. using System; namespace NATS.Client { // Tracks individual backend servers. internal class Srv { internal Uri url = null; internal bool didConnect = false; internal int reconnects = 0; internal DateTime l...
```c# // Copyright 2015 Apcera Inc. All rights reserved. using System; namespace NATS.Client { // Tracks individual backend servers. internal class Srv { internal Uri url = null; internal bool didConnect = false; internal int reconnects = 0; internal DateTime l...
d3ecacb0-4cea-4524-b1df-190d73a84f99
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EddiDataDefinitions { /// <summary> /// A star or planet /// </summary> public class Body { /// <summary>The ID of this body in EDDB</summary> public ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EddiDataDefinitions { /// <summary> /// A star or planet /// </summary> public class Body { /// <summary>The ID of this body in EDDB</summary> public ...
dc8b4354-0d18-4a05-8b56-39d3576b10b8
{ "language": "C#" }
```c# using NSubstitute; using NUnit.Framework; namespace DependencyKata.Tests { [TestFixture] public class DoItAllTests { [Test, Category("Integration")] public void DoItAll_Does_ItAll() { var expected = "The passwords don't match"; var io = Substitute.For<...
```c# using NSubstitute; using NUnit.Framework; namespace DependencyKata.Tests { [TestFixture] public class DoItAllTests { [Test, Category("Integration")] public void DoItAll_Does_ItAll() { var expected = "The passwords don't match"; var io = Substitute.For<...
554e1355-a9d0-497d-a6bb-7ee006f7026e
{ "language": "C#" }
```c# using System.Collections.Generic; using MeidoCommon; namespace MeidoBot { public static class PluginExtensions { public static string Name(this IMeidoHook plugin) { string name = plugin.Name.Trim(); switch (name) { case "": ...
```c# using System; using System.Collections.Generic; using System.Collections.ObjectModel; using MeidoCommon; namespace MeidoBot { public static class PluginExtensions { public static string Name(this IMeidoHook plugin) { string name = plugin.Name.Trim(); switch (name...
cab52f3f-95c0-450d-b639-c7363ce6291b
{ "language": "C#" }
```c# using Sloth.Interfaces.Core; using System; namespace Sloth.Core { public class WinUtilities : IWinUtilities { public IntPtr FindControlHandle(IntPtr windowsHandle, string controlName) { throw new NotImplementedException(); } public IntPtr FindWindowsHandle(st...
```c# using Sloth.Interfaces.Core; using System; using System.Runtime.InteropServices; using System.Text; namespace Sloth.Core { public class WinUtilities : IWinUtilities { public IntPtr FindControlHandle(IntPtr windowsHandle, string controlName) { throw new NotImplementedException...
da7f94d8-972d-47ce-8400-58f2dfd5f920
{ "language": "C#" }
```c# namespace Framework.Cli.Command { /// <summary> /// Cli start command. /// </summary> public class CommandStart : CommandBase { public CommandStart(AppCli appCli) : base(appCli, "start", "Start server and open browser") { } protected internal over...
```c# namespace Framework.Cli.Command { using System.Runtime.InteropServices; /// <summary> /// Cli start command. /// </summary> public class CommandStart : CommandBase { public CommandStart(AppCli appCli) : base(appCli, "start", "Start server and open browser") { ...
fa8d7d74-b5bd-441c-9469-6a5998d28d80
{ "language": "C#" }
```c# // Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Dependencies; namespace Core2D.Sam...
```c# // Copyright (c) Wiesław Šoltés. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Dependencies; namespace Core2D.Sam...
d74067a2-a2bd-424f-aa6d-22e8d6d8facc
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Newtonsoft.Json; namespace Shippo { [JsonObject (MemberSerialization.OptIn)] public class BatchShipment : ShippoId { [JsonProperty (PropertyName = "object_status")] public string ObjectStatus; [JsonProperty (PropertyName ...
```c# using System; using System.Collections.Generic; using Newtonsoft.Json; namespace Shippo { [JsonObject (MemberSerialization.OptIn)] public class BatchShipment : ShippoId { [JsonProperty (PropertyName = "object_status")] public string ObjectStatus; [JsonProperty (PropertyName ...
fde47d1e-12c5-4f0e-ba96-b91cbf1afde3
{ "language": "C#" }
```c# using System; using System.Threading; using System.Windows.Threading; using Throttle; using Xunit; using TomsToolbox.Desktop; public class ThrottleSample { int throttledCalls; [Fact] public void Run() { var dispatcher = Dispatcher.CurrentDispatcher; dispatcher.BeginInvoke(() =>...
```c# using System; using System.Threading; using System.Windows.Threading; using Throttle; using Xunit; using TomsToolbox.Desktop; public class ThrottleSample { int throttledCalls; [Fact] public void Run() { var dispatcher = Dispatcher.CurrentDispatcher; dispatcher.BeginInvoke(() =>...
45174146-6c1c-4fa2-9661-92bb142f93ca
{ "language": "C#" }
```c# using System; using Treehopper; using System.Threading.Tasks; using System.Diagnostics; using System.Collections.Generic; using System.Threading; namespace Blink { /// <summary> /// This demo blinks the built-in LED using async programming. /// </summary> class Program { static Tree...
```c# using System; using Treehopper; using System.Threading.Tasks; using System.Diagnostics; using System.Collections.Generic; using System.Threading; namespace Blink { /// <summary> /// This demo blinks the built-in LED using async programming. /// </summary> class Program { static Tree...
0292022d-3742-42f0-a75c-0a2560689e83
{ "language": "C#" }
```c# @model biz.dfch.CS.Appclusive.UI.Models.Core.Acl @using biz.dfch.CS.Appclusive.UI.App_LocalResources @if (Model != null && !string.IsNullOrEmpty(Model.Name)) { if (biz.dfch.CS.Appclusive.UI.Navigation.PermissionDecisions.Current.HasPermission(Model.GetType(), "CanRead")) { string id = (string)Vi...
```c# @model biz.dfch.CS.Appclusive.UI.Models.Core.Acl @using biz.dfch.CS.Appclusive.UI.App_LocalResources @if (Model != null && !string.IsNullOrEmpty(Model.Name)) { if (biz.dfch.CS.Appclusive.UI.Navigation.PermissionDecisions.Current.HasPermission(Model.GetType(), "CanRead")) { string id = (string)Vi...
0c5c13d6-225a-4fd4-9550-15b652073a1c
{ "language": "C#" }
```c# <header class="main-header"> <div class="row"> <div class="column"> <ul class="menu"> <li class="mobile-expand" id="mobile-expand"> <a href="#"> <i class="fa fa-align-justify"></i> </a> </li> ...
```c# <header class="main-header"> <div class="row"> <div class="column"> <ul class="menu"> <li class="mobile-expand" id="mobile-expand"> <a href="#"> <i class="fa fa-align-justify"></i> </a> </li> ...
7d08880c-32b3-47fc-b8b0-16adcfcee866
{ "language": "C#" }
```c# using System.Collections.Generic; using Hacknet; using HarmonyLib; using Pathfinder.Event; using Pathfinder.Event.Loading; using Pathfinder.Util; namespace Pathfinder.BaseGameFixes.Performance { [HarmonyPatch] internal static class NodeLookup { [HarmonyPostfix] [HarmonyPatch(typeof(L...
```c# using System.Collections.Generic; using Hacknet; using HarmonyLib; using Pathfinder.Event; using Pathfinder.Event.Loading; using Pathfinder.Util; namespace Pathfinder.BaseGameFixes.Performance { [HarmonyPatch] internal static class NodeLookup { [HarmonyPostfix] [HarmonyPatch(typeof(L...
d259bfcd-ba0c-43d7-82c4-5206b7d0da2a
{ "language": "C#" }
```c# using System; using System.Linq; namespace SSLLWrapper.ConsoleAppTester { class Program { private const string apiUrl = "https://api.dev.ssllabs.com/api/fa78d5a4"; static void Main(string[] args) { AnalyzeTester(); } static void AnalyzeTester() { var apiService = new ApiService(apiUrl); ...
```c# using System; using System.Linq; namespace SSLLWrapper.ConsoleAppTester { class Program { private const string ApiUrl = "https://api.dev.ssllabs.com/api/fa78d5a4"; static readonly ApiService ApiService = new ApiService(ApiUrl); static void Main(string[] args) { //AnalyzeTester(); //InfoTester()...
37c0311e-0d8f-4ccb-95bb-5d0266afa1ae
{ "language": "C#" }
```c# using Mono.Cecil; using Mono.Cecil.Cil; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace MonoMod.DebugIL { public static class DebugILGeneratorExt { public readonly static...
```c# using Mono.Cecil; using Mono.Cecil.Cil; using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace MonoMod.DebugIL { public static class DebugILGeneratorExt { public readonly static...