doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
20c964de-05b7-4044-9e20-d22bf952a982
{ "language": "C#" }
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK.Graphics; using OpenTK.Input; using osu.Framework.Input; using System; namespace osu.Game.Graphics.UserInterface { /// <summary> ...
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK.Graphics; using OpenTK.Input; using osu.Framework.Input; using System; namespace osu.Game.Graphics.UserInterface { /// <summary> ...
05ca8f27-dd7c-48cb-b3c3-8b877272520d
{ "language": "C#" }
```c# // // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
```c# // // Copyright (c) Microsoft. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
b48d2e9f-4bbd-41d2-a2b2-c6fe7caf63c1
{ "language": "C#" }
```c# using Microsoft.AspNet.Http; using Microsoft.AspNet.Http.Core; using Microsoft.AspNet.Http.Core.Collections; using Xunit; namespace MusicStore.Models { public class ShoppingCartTest { [Fact] public void GetCartId_ReturnsCartIdFromCookies() { // Arrange var...
```c# using System.Collections.Generic; using Microsoft.AspNet.Http; using Microsoft.AspNet.Http.Core; using Microsoft.AspNet.Http.Core.Collections; using Xunit; namespace MusicStore.Models { public class ShoppingCartTest { [Fact] public void GetCartId_ReturnsCartIdFromCookies() { ...
97fbb17e-9f22-443f-b323-040c254ef06f
{ "language": "C#" }
```c# using System; using System.Threading; using UnityEngine; using UnityEngine.UI; namespace PatchKit.Unity.Patcher.Licensing { public class KeyLicenseObtainer : MonoBehaviour, ILicenseObtainer { private State _state = State.None; private KeyLicense _keyLicense; private Animator _a...
```c# using System; using System.Threading; using UnityEngine; using UnityEngine.UI; namespace PatchKit.Unity.Patcher.Licensing { public class KeyLicenseObtainer : MonoBehaviour, ILicenseObtainer { private State _state = State.None; private KeyLicense _keyLicense; private Animator _a...
d50d3fb5-d57b-4ce2-b450-722638ef74e7
{ "language": "C#" }
```c# using System; namespace WorkshopManager.Forms.RequestsDatabaseView { public class RequestsDatabasePresenter { private IRequestsDatabaseView _view; public RequestsDatabasePresenter(IRequestsDatabaseView view) { _view = view; _view.Presenter = this; ...
```c# namespace WorkshopManager.Forms.RequestsDatabaseView { public class RequestsDatabasePresenter { public RequestsDatabasePresenter(IRequestsDatabaseView view) { } } } ```
d0c751c0-46b2-4fad-bcb4-7d5b5c648490
{ "language": "C#" }
```c# using System; namespace KpdApps.Common.MsCrm2015 { public class BasePluginAction { public PluginState State { get; set; } public BasePluginAction(PluginState state) { State = state; } public virtual void Execute() { throw new NotI...
```c# using System; using Microsoft.Xrm.Sdk; namespace KpdApps.Common.MsCrm2015 { public class BasePluginAction { public PluginState State { get; set; } public IOrganizationService Service => State.Service; public BasePluginAction(PluginState state) { State = stat...
ddaf311b-0fef-47de-bc21-30e136c3b110
{ "language": "C#" }
```c# namespace Cassette.Configuration { public interface IFileSearchModifier<T> { void Modify(FileSearch fileSearch); } }``` Clarify the apparently unused generic type parameter.
```c# namespace Cassette.Configuration { // ReSharper disable UnusedTypeParameter // The T type parameter makes it easy to distinguish between file search modifiers for the different type of bundles public interface IFileSearchModifier<T> where T : Bundle // ReSharper restore UnusedTypeParameter ...
552a62d5-fe57-4cbb-a847-ccb65ff6e57e
{ "language": "C#" }
```c# using System; namespace Glimpse.Server { public class GlimpseServerWebOptions { public bool AllowRemote { get; set; } } }``` Add option for allowed user roles
```c# using System; using System.Collections.Generic; namespace Glimpse.Server { public class GlimpseServerWebOptions { public GlimpseServerWebOptions() { AllowedUserRoles = new List<string>(); } public bool AllowRemote { get; set; } public IList<string> A...
897c1f02-572b-4603-a9e3-32ecbc952300
{ "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.Game.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.Game.Benchmarks { public static class Program { public static void Mai...
38f00fea-b7c2-46a1-80bc-da99156d8d48
{ "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.Game.Beatmaps; using osu.Game.Database; using osu.Game.Rulesets; using osu.Game.Users; namespace osu.Game.Scoring { public interface IS...
```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.Game.Beatmaps; using osu.Game.Database; using osu.Game.Rulesets; using osu.Game.Users; namespace osu.Game.Scoring { public interface IS...
5979dfa1-d081-4323-886a-954f8cded790
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Runtime.CompilerServices; // We publish our internal attributes to other sub-projects of the framework. // Note, that we omit visual tests as they ar...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Runtime.CompilerServices; using Android.App; // We publish our internal attributes to other sub-projects of the framework. // Note, that we omit visu...
a6d3e824-27a7-4fcf-9d5a-744bafd92cf0
{ "language": "C#" }
```c# using System; namespace CSF.Screenplay.Scenarios { /// <summary> /// Builder service which assists in the creation of service registrations. /// </summary> public interface IServiceRegistryBuilder { /// <summary> /// Registers a service which will be used across all scenarios within a test run....
```c# using System; namespace CSF.Screenplay.Scenarios { /// <summary> /// Builder service which assists in the creation of service registrations. /// </summary> public interface IServiceRegistryBuilder { /// <summary> /// Registers a service which will be used across all scenarios within a test run....
d5111f7a-c686-45a0-9a0f-fbcdfad05db4
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; #if !BUILD_GENERATED_VERSION [assembly: AssemblyCom...
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Reflection; using System.Resources; using System.Runtime.InteropServices; #if !BUILD_GENERATED_VERSION [assembly: AssemblyCom...
0c0ecaf4-9ab1-4c08-a9ae-02e4b721a9d9
{ "language": "C#" }
```c# using System; using CoreGraphics; using Foundation; using UIKit; namespace TextKitDemo { public partial class CollectionViewCell : UICollectionViewCell { public CollectionViewCell (IntPtr handle) : base (handle) { BackgroundColor = UIColor.DarkGray; Layer.CornerRadius = 5; UIApplication.Notifica...
```c# using System; using CoreGraphics; using Foundation; using UIKit; namespace TextKitDemo { public partial class CollectionViewCell : UICollectionViewCell { public CollectionViewCell (IntPtr handle) : base (handle) { Initialize (); } [Export ("initWithCoder:")] public CollectionViewCell (NSCoder co...
c0729660-4929-47eb-b937-bbeb5a2ea3b7
{ "language": "C#" }
```c# using System.Threading.Tasks; using MediatR; using SFA.DAS.EmployerAccounts.Configuration; using SFA.DAS.EmployerAccounts.Interfaces; namespace SFA.DAS.EmployerAccounts.Commands.UnsubscribeProviderEmail { public class UnsubscribeProviderEmailQueryHandler : AsyncRequestHandler<UnsubscribeProviderEmailQuery> ...
```c# using System.Threading.Tasks; using MediatR; using SFA.DAS.EmployerAccounts.Configuration; using SFA.DAS.EmployerAccounts.Interfaces; namespace SFA.DAS.EmployerAccounts.Commands.UnsubscribeProviderEmail { public class UnsubscribeProviderEmailQueryHandler : AsyncRequestHandler<UnsubscribeProviderEmailQuery> ...
089d94cf-bd9c-44b9-b2f1-6c73ba1fe6c6
{ "language": "C#" }
```c# using System; namespace Dotnet.Microservice.Health { /// <summary> /// Represents a health check response /// </summary> public struct HealthResponse { public readonly bool IsHealthy; public readonly string Message; private HealthResponse(bool isHealthy, string statu...
```c# using System; namespace Dotnet.Microservice.Health { /// <summary> /// Represents a health check response /// </summary> public struct HealthResponse { public readonly bool IsHealthy; public readonly object Response; private HealthResponse(bool isHealthy, object stat...
fdb36d20-055f-419c-90e3-9c0431eb1bb1
{ "language": "C#" }
```c# using System.IO; using NUnit.Framework; namespace BrightstarDB.InternalTests { internal static class TestPaths { public static string DataPath => Path.Combine(TestContext.CurrentContext.TestDirectory, "..\\..\\..\\BrightstarDB.Tests\\Data\\"); } } ``` Fix path to SPARQL test suite files
```c# using System.IO; using NUnit.Framework; namespace BrightstarDB.InternalTests { internal static class TestPaths { public static string DataPath => Path.Combine(TestContext.CurrentContext.TestDirectory, "..\\..\\..\\..\\BrightstarDB.Tests\\Data\\"); } } ```
f14e14ad-123a-4fe0-ac98-b2039a81b143
{ "language": "C#" }
```c# using System; using Newtonsoft.Json; namespace BmpListener.Bmp { public class BmpHeader { public BmpHeader(byte[] data) { ParseBytes(data); } public byte Version { get; private set; } [JsonIgnore] public uint Length { get; private set; } ...
```c# using System; using Newtonsoft.Json; using System.Linq; using BmpListener; namespace BmpListener.Bmp { public class BmpHeader { public BmpHeader(byte[] data) { Version = data.First(); //if (Version != 3) //{ // throw new Exception("inval...
c895d7e6-3462-4aca-834c-d0762512d7eb
{ "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. #nullable enable namespace osu.Game.Database { public interface IHasOnlineID { /// <summary> /// The server-side ID representing this insta...
```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. #nullable enable namespace osu.Game.Database { public interface IHasOnlineID { /// <summary> /// The server-side ID representing this insta...
9adcb3b8-1f47-498b-9a43-fb4c9b2460b0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NSuperTest.Registration { public class RegistrationDiscoverer { public IEnumerable<IRegisterServers> FindRegistrations() { var type = typeof(IRegisterServers); ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; namespace NSuperTest.Registration { public static class AssemblyExtensions { public static IEnumerable<Type> GetLoadableTypes(this Assembly assembly) { t...
1d2eb55f-16b1-4ee9-807e-8d405674e070
{ "language": "C#" }
```c# //using System; using System.Collections.Generic; using System.Dynamic; namespace Arango.Client { public class ArangoDocument { public string Handle { get; set; } public string Revision { get; set; } public dynamic JsonObject { get; set; } public ArangoDocume...
```c# //using System; using System.Collections.Generic; using System.Dynamic; namespace Arango.Client { public class ArangoDocument { public string ID { get; set; } public string Revision { get; set; } public dynamic JsonObject { get; set; } public ArangoDocument()...
68166aa1-d48d-460e-8fa9-90b15b13f195
{ "language": "C#" }
```c# namespace LibGit2Sharp { /// <summary> /// Git specific modes for entries. /// </summary> public enum Mode { // Inspired from http://stackoverflow.com/a/8347325/335418 /// <summary> /// 000000 file mode (the entry doesn't exist) /// </summary> None...
```c# namespace LibGit2Sharp { /// <summary> /// Git specific modes for entries. /// </summary> public enum Mode { // Inspired from http://stackoverflow.com/a/8347325/335418 /// <summary> /// 000000 file mode (the entry doesn't exist) /// </summary> None...
7d71db2f-71fe-47c1-a8bc-3f8226bf84ab
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; using PrintNodeNet.Http; namespace PrintNodeNet { public sealed class PrintNodeComputer { [JsonProperty("id")] public long Id { get; set; } [Json...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; using PrintNodeNet.Http; namespace PrintNodeNet { public sealed class PrintNodeComputer { [JsonProperty("id")] public long Id { get; set; } [Json...
420bcdb2-5986-4737-a5cc-3054c515e733
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Thinktecture.IdentityServer.Web.ViewModels { public class RelyingPartyViewModel { public int ID { get; set; } public string DisplayName { get; set; } } }``` Build edit page for enabled RPs
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Thinktecture.IdentityServer.Web.ViewModels { public class RelyingPartyViewModel { public string ID { get; set; } public string DisplayName { get; set; } public bool Enabled { get; set; ...
6e228d03-fc08-4429-8e72-ef539b339fda
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace dbms_objects_data { class Table { public DataTable table = new DataTable(); public Table() { } public bool insertRo...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace dbms_objects_data { class Table { public DataTable table = new DataTable(); public Table() { } public bool insertRo...
ec0f9e90-4c9d-4967-9e28-4e673f232a56
{ "language": "C#" }
```c# /* * Copyright 2014 Dominick Baier, Brock Allen * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
```c# /* * Copyright 2014 Dominick Baier, Brock Allen * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
45042c82-1553-47f6-b6f9-d8cc2b77125b
{ "language": "C#" }
```c# using UnityEngine; namespace NaughtyAttributes.Test { public class ValidateInputTest : MonoBehaviour { [ValidateInput("NotZero0", "int0 must not be zero")] public int int0; private bool NotZero0(int value) { return value != 0; } public ValidateInputNest1 nest1; } [System.S...
```c# using UnityEngine; namespace NaughtyAttributes.Test { public class ValidateInputTest : MonoBehaviour { [ValidateInput("NotZero0", "int0 must not be zero")] public int int0; private bool NotZero0(int value) { return value != 0; } public ValidateInputNest1 nest1; public Valid...
695e31a5-0370-4698-bf2d-c8e5665b3518
{ "language": "C#" }
```c# using static System.Console; public class Counter { public Counter() { } public int Count; public Counter Increment() { Count++; return this; } } public static class Program { public static readonly Counter printCounter = new Counter(); public static void Main() ...
```c# using static System.Console; public class Counter { public Counter() { } public int Count; public Counter Increment() { Count++; return this; } } public static class Program { public static readonly Counter printCounter = new Counter(); public static void Main() ...
35d21971-0727-48e6-ad3d-7741535bc113
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace Xtrmstep.Extractor.Core.Tests { public class FileReaderTests { const string testDataFolder = @"f:\TestData\"; [Fact(DisplayName = "Read JSON Files /...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace Xtrmstep.Extractor.Core.Tests { public class FileReaderTests { const string testDataFolder = @"c:\TestData\"; [Fact(DisplayName = "Read JSON Files /...
e1c5e888-2c99-48d1-98da-ba385df1fdc4
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Threading; using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; using Newtonsoft.Json; using VotingApplication.Data.Context; using VotingApp...
```c# using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Threading; using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; using Newtonsoft.Json; using VotingApplication.Data.Context; using VotingApp...
5aa5547f-d5cc-4eb9-949b-d5e8b4acd89e
{ "language": "C#" }
```c# using Hangfire; using StructureMap; using SupportManager.Control.Infrastructure; using Topshelf; namespace SupportManager.Control { public class SupportManagerService : ServiceControl { private readonly IContainer container; private BackgroundJobServer jobServer; public SupportMa...
```c# using Hangfire; using StructureMap; using SupportManager.Contracts; using SupportManager.Control.Infrastructure; using Topshelf; namespace SupportManager.Control { public class SupportManagerService : ServiceControl { private readonly IContainer container; private BackgroundJobServer jobS...
ade1e05c-9911-4749-9db1-989823cde2a1
{ "language": "C#" }
```c# using NUnit.Framework; using OpenQA.Selenium; using System.Linq; namespace Vidyano.Test { [TestFixture("chrome")] [TestFixture("safari")] [TestFixture("firefox")] [TestFixture("edge")] [TestFixture("ie")] [Parallelizable(ParallelScope.Fixtures)] public class GlobalSearch: BrowserStac...
```c# using NUnit.Framework; using OpenQA.Selenium; using System.Linq; namespace Vidyano.Test { [TestFixture("chrome")] [TestFixture("safari")] [TestFixture("firefox")] [TestFixture("edge")] [TestFixture("ie")] [Parallelizable(ParallelScope.Fixtures)] public class GlobalSearch: BrowserStac...
b37fed42-cf98-475b-92d3-5fd6c73405b1
{ "language": "C#" }
```c# using DocumentFormat.OpenXml; namespace ClosedXML.Utils { internal static class OpenXmlHelper { public static BooleanValue GetBooleanValue(bool value, bool defaultValue) { return value == defaultValue ? null : new BooleanValue(value); } public static bool Get...
```c# using DocumentFormat.OpenXml; namespace ClosedXML.Utils { internal static class OpenXmlHelper { public static BooleanValue GetBooleanValue(bool value, bool defaultValue) { return value == defaultValue ? null : new BooleanValue(value); } public static bool Get...
cccb4ccb-3c10-4875-b8d5-a51b02183541
{ "language": "C#" }
```c# using UIKit; namespace CSharpMath.Ios.Example { public class IosMathViewController : UIViewController { public override void ViewDidLoad() { View.BackgroundColor = UIColor.White; var latexView = IosMathLabels.MathView(Rendering.Tests.MathData.ColorBox, 50); // WJWJWJ latex here latexView...
```c# using UIKit; namespace CSharpMath.Ios.Example { public class IosMathViewController : UIViewController { public override void ViewDidLoad() { View.BackgroundColor = UIColor.White; var latexView = IosMathLabels.MathView(Rendering.Tests.MathData.IntegralColorBoxCorrect, 50); // WJWJWJ latex here ...
9ae04181-c3b2-4b18-886b-e369f2dae05d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sketchball.Elements { public class Ball : PinballElement, IPhysics { private Vector2 v; private Vector2 v0; long t = 0; pu...
```c# using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sketchball.Elements { public class Ball : PinballElement, IPhysics { public Vector2 Velocity { get; set; } ...
4f76238a-61f9-468a-bbd0-350bd728f021
{ "language": "C#" }
```c#  using System; using Mono.Addins; using Mono.Addins.Description; [assembly:Addin ("TypeScript", Namespace = "MonoDevelop", Version = "0.6", Category = "Web Development")] [assembly:AddinName ("TypeScript")] [assembly:AddinDescription ("Adds TypeScript support. Updated to use TypeScript 1.4")] [assembly:Add...
```c#  using System; using Mono.Addins; using Mono.Addins.Description; [assembly:Addin ("TypeScript", Namespace = "MonoDevelop", Version = "0.6", Category = "Web Development")] [assembly:AddinName ("TypeScript")] [assembly:AddinDescription ("Adds TypeScript support. Updated to use TypeScript 1.5.3")] [assembly:A...
fff30445-7332-4b6e-8659-8ab2133a4c3c
{ "language": "C#" }
```c# using System; using Microsoft.Deployment.WindowsInstaller; namespace Wix.CustomActions { using System.IO; using System.Diagnostics; public class CustomActions { [CustomAction] public static ActionResult CloseIt(Session session) { try { ...
```c# using Microsoft.Deployment.WindowsInstaller; using System; using System.IO; namespace Wix.CustomActions { public class CustomActions { [CustomAction] public static ActionResult CloseIt(Session session) { try { string fileFullPath = Path.Com...
dcbd457f-d200-4495-bf8e-4b55d2df1b7f
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Screens.Edit.Timing { internal class D...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Game.Beatmaps.ControlPoints; namespace osu.Game.Screens.Edit.Timing { internal class D...
c387f4d9-f011-4ae1-bf75-4314eea72acd
{ "language": "C#" }
```c# namespace NEventStore { using FluentAssertions; using NEventStore.Persistence.AcceptanceTests; using NEventStore.Persistence.AcceptanceTests.BDD; using System; using Xunit; public class DefaultSerializationWireupTests { public class when_building_an_event_store_without_an_exp...
```c# namespace NEventStore { using FluentAssertions; using NEventStore.Persistence.AcceptanceTests; using NEventStore.Persistence.AcceptanceTests.BDD; using System; using Xunit; public class DefaultSerializationWireupTests { public class when_building_an_event_store_without_an_exp...
68a33ae6-803b-48dc-94dd-7d43013c8b82
{ "language": "C#" }
```c# namespace SnappyMap.CommandLine { using System.Collections.Generic; using global::CommandLine; using global::CommandLine.Text; public class Options { [Option('s', "size", DefaultValue = "8x8", HelpText = "Set the size of the output map.")] public string Size { get;...
```c# namespace SnappyMap.CommandLine { using System.Collections.Generic; using global::CommandLine; using global::CommandLine.Text; public class Options { [Option('s', "size", DefaultValue = "8x8", HelpText = "Set the size of the output map.")] public string Size { get;...
f0096155-60b9-47bf-a165-d43513d6bf2a
{ "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...
28ddbd62-c60b-4dca-82cf-7b027ed4d114
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using TodoPad.Models; using TodoPad.Task_Parser; namespace TodoPad.Views { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> publ...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using TodoPad.Models; using TodoPad.Task_Parser; namespace TodoPad.Views { /// <summary> /// Interaction logic for MainWindow.xaml ...
dad074d7-6a80-477c-aa69-5346d8c6a839
{ "language": "C#" }
```c# using System.Linq; using NUnit.Framework; using Xamarin.UITest; namespace MvvmLightBindings.UITest { [TestFixture(Platform.Android)] [TestFixture(Platform.iOS)] public class Tests { IApp app; Platform platform; public Tests(Platform platform) { this.p...
```c# using System.Linq; using NUnit.Framework; using Xamarin.UITest; namespace MvvmLightBindings.UITest { [TestFixture(Platform.Android)] [TestFixture(Platform.iOS)] public class Tests { IApp app; Platform platform; public Tests(Platform platform) { this.p...
0cbdb002-0bbc-4a0b-8cd1-379735c4ad52
{ "language": "C#" }
```c# using System; namespace SPAD.neXt.Interfaces.SimConnect { public interface IDataItemAttributeBase { int ItemIndex { get; set; } int ItemSize { get; set; } float ItemEpsilon { get; ...
```c# using System; namespace SPAD.neXt.Interfaces.SimConnect { public interface IDataItemAttributeBase { int ItemIndex { get; set; } int ItemSize { get; set; } float ItemEpsilon { get; ...
0a23bb46-3400-4cde-a589-eac4b290d378
{ "language": "C#" }
```c# using System; using Digipost.Api.Client.Domain.Enums; namespace Digipost.Api.Client.Domain.Identify { public class IdentificationById : IIdentification { public IdentificationById(IdentificationType identificationType, string value) { IdentificationType = identificationType; ...
```c# using System; using Digipost.Api.Client.Domain.Enums; namespace Digipost.Api.Client.Domain.Identify { public class IdentificationById : IIdentification { public IdentificationById(IdentificationType identificationType, string value) { IdentificationType = identificationType; ...
90e4fae9-eb2a-4daa-b5d3-ca71d6f19256
{ "language": "C#" }
```c# @model SendLogInLinkModel @{ ViewBag.Title = "Send Log In Link"; } <div class="jumbotron"> <div class="row"> <div class="col-lg-6"> <h1>Welcome to Secret Santa!</h1> @using (Html.BeginForm("LogIn", "Account", FormMethod.Post, new { role = "form", @class = "form-horizonta...
```c# @model SendLogInLinkModel @{ ViewBag.Title = "Send Log In Link"; } <div class="jumbotron"> <div class="row"> <div class="col-lg-6"> <h1>Welcome to Secret Santa!</h1> @using (Html.BeginForm("SendLogInLink", "Account", FormMethod.Post, new { role = "form", @class = "form-h...
ec1da6e4-4cf4-4ddc-b89b-47eb708022f8
{ "language": "C#" }
```c# using System; using FluentAssertions; using NUnit.Framework; using Withings.NET.Client; namespace Withings.Specifications { [TestFixture] public class DateTimeExtensionsTests { [Test] public void DoubleFromUnixTimeTest() { ((double)1491934309).FromUnixTime().Date.S...
```c# using System; using FluentAssertions; using NUnit.Framework; using Withings.NET.Client; namespace Withings.Specifications { [TestFixture] public class DateTimeExtensionsTests { [Test] public void DoubleFromUnixTimeTest() { ((double)1491934309).FromUnixTime().Date.S...
3469871b-052b-49df-b9d4-3e0564ab521d
{ "language": "C#" }
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Threading; using NUnit.Framework; using osu.Framework.Platform; namespace osu.Framework.Tests.Platform { [TestFixture] ...
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System; using System.Threading; using System.Threading.Tasks; using NUnit.Framework; using osu.Framework.Platform; namespace osu.Framework.Tests....
a234b6e8-407e-4fe9-8336-10cd26c20128
{ "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 NUnit.Framework; using osu.Framework.Screens; using osu.Game.Screens.Menu; namespace osu.Game.Tests.Visual.Menus { [TestFixture] public class TestSc...
```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 NUnit.Framework; using osu.Framework.Audio.Track; using osu.Framework.Screens; using osu.Game.Screens.Menu; namespace osu.Game.Tests.Visual.Menus { [Tes...
431606cd-2c1e-4e23-9a87-7cfbe758d055
{ "language": "C#" }
```c# using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Security.Permissions; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("MongoDBDriver")] [assembly: AssemblyDes...
```c# using System; using System.Reflection; using System.Runtime.CompilerServices; using System.Security.Permissions; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("MongoDBDriver")] [assembly: AssemblyDes...
9f461bff-b33b-4944-9f16-0227145ed4e6
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; namespace SGEnviro.Utilities { public class NumberParseException : Exception { public NumberParseException(string message) { } } public class Parsing { public st...
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; namespace SGEnviro.Utilities { public class NumberParseException : Exception { public NumberParseException(string message) { } } public class Parsing { public st...
f5172c12-01e7-42d8-93e2-54c297f49676
{ "language": "C#" }
```c# using System; using System.Collections.Generic; namespace WendySharp { class Parrot : Command { public Parrot() { Match = new List<string> { "parrot" }; Usage = "<text>"; ArgumentMatch = "(?<text>.+)$"; ...
```c# using System; using System.Collections.Generic; namespace WendySharp { class Parrot : Command { public Parrot() { Match = new List<string> { "parrot" }; Usage = "<text>"; ArgumentMatch = "(?<text>.+)$"; ...
f337cc88-81bd-4bae-9f31-42ebfade230b
{ "language": "C#" }
```c# using Ninject; using Ninject.Modules; using Ninject.Web.Common; using Raven.Client; using Raven.Client.Embedded; namespace CGO.Web.NinjectModules { public class RavenModule : NinjectModule { public override void Load() { Kernel.Bind<IDocumentStore>().ToMethod(_ => Initialise...
```c# using Ninject; using Ninject.Modules; using Ninject.Web.Common; using Raven.Client; using Raven.Client.Embedded; namespace CGO.Web.NinjectModules { public class RavenModule : NinjectModule { public override void Load() { Kernel.Bind<IDocumentStore>().ToMethod(_ => Initialise...
c94df11e-eb7f-42c9-b93e-b27c1dcecda8
{ "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.Statistics; using System; using System.Collections.Generic; using osu.Framework.Audio; namespace osu.Framework.Threading { public class Au...
```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.Statistics; using System; using System.Collections.Generic; using osu.Framework.Audio; namespace osu.Framework.Threading { public class Au...
8db72dfc-d640-4453-acc4-6c18fc185565
{ "language": "C#" }
```c# using System.Collections.Generic; namespace BmpListener.Serialization.Models { public class UpdateModel { public PeerHeaderModel Peer { get; set; } public string Origin { get; set; } public IList<int> AsPath { get; set; } public IList<AnnounceModel> Announce { get; set; }...
```c# using System.Collections.Generic; namespace BmpListener.Serialization.Models { public class UpdateModel { public int BmpMsgLength { get; set; } public int BgpMsgLength { get; set; } public PeerHeaderModel Peer { get; set; } public string Origin { get; set; } publi...
75869e56-a377-43bc-98bb-40edd6100aa0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Raven.Contrib.AspNet.Demo.Extensions { public static class UriExtensions { public static Uri AddQueryParameter(this Uri uri, KeyValuePair<string, string> pair) { return uri.AddQuery...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Raven.Contrib.AspNet.Demo.Extensions { public static class UriExtensions { public static Uri AddQueryParameter(this Uri uri, KeyValuePair<string, string> pair) { return uri.AddQuery...
0e02de8a-cf1c-4cf6-b8b7-a7a84bea93ed
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using QuantConnect.Data; namespace QuantConnect.Algorithm.CSharp.Benchmarks { public class EmptyMinute400EquityAlgorithm : QCAlgorithm { public override void Initialize() { SetStartDate(2015, 09, 28); SetEndDate...
```c# using System.Collections.Generic; using System.Linq; using QuantConnect.Data; namespace QuantConnect.Algorithm.CSharp.Benchmarks { public class EmptyMinute400EquityAlgorithm : QCAlgorithm { public override void Initialize() { SetStartDate(2015, 09, 28); SetEndDate...
a3ab3837-c6c9-471f-b28b-de99b87794fe
{ "language": "C#" }
```c# <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title type="text"><?cs var:title ?></title> <subtitle type="text"><?cs var:title ?></subtitle> <id><?cs var:url ?>/</id> <link rel="self" href="<?cs var:url ?><?cs var:CGI.RequestURI ?>" /> <link rel="alternate" type="text/htm...
```c# <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title type="text"><?cs var:title ?></title> <subtitle type="text"><?cs var:title ?></subtitle> <id><?cs var:url ?>/</id> <link rel="self" href="<?cs var:url ?><?cs var:CGI.RequestURI ?>" /> <link rel="alternate" type="text/htm...
71c12b2b-26f3-4db0-8ab1-2b5b30d47f1e
{ "language": "C#" }
```c# using System; using Prism.Mvvm; using Prism.Navigation; using Reactive.Bindings; namespace BlueMonkey.ViewModels { /// <summary> /// ViewModel for MainPage. /// </summary> public class MainPageViewModel : BindableBase { /// <summary> /// NavigationService /// </summar...
```c# using System; using Prism.Mvvm; using Prism.Navigation; using Prism.Services; using Reactive.Bindings; namespace BlueMonkey.ViewModels { /// <summary> /// ViewModel for MainPage. /// </summary> public class MainPageViewModel : BindableBase { /// <summary> /// NavigationServic...
36644811-bf20-45aa-a406-9ee88dfb8906
{ "language": "C#" }
```c# using System; using System.Linq; using System.Collections.Generic; using Realms; using System.IO; namespace Tasky.Shared { /// <summary> /// TaskDatabase uses ADO.NET to create the [Items] table and create,read,update,delete data /// </summary> public class TodoDatabase { private Re...
```c# using System; using System.Linq; using System.Collections.Generic; using Realms; using System.IO; namespace Tasky.Shared { /// <summary> /// TaskDatabase uses ADO.NET to create the [Items] table and create,read,update,delete data /// </summary> public class TodoDatabase { private Re...
1513eb8a-edc1-4289-b612-faca17057236
{ "language": "C#" }
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool // Changes to this file will be lost if the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ ...
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool // Changes to this file will be lost if the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ ...
6a6ba08a-4288-40e4-9779-12da30c32e3f
{ "language": "C#" }
```c# using System; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace ZendeskApi_v2.Models.Targets { public class BaseTarget { [JsonProperty("id")] public long? Id { get; set; } [JsonProperty("title")] public string Title { get; set; } [JsonProperty("...
```c# using System; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace ZendeskApi_v2.Models.Targets { public class BaseTarget { [JsonProperty("id")] public long? Id { get; set; } [JsonProperty("title")] public string Title { get; set; } [JsonProperty("...
6514f98b-3f18-482a-877c-90204db19138
{ "language": "C#" }
```c# using System; using System.Drawing; using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; using NLog; using Radish.Support; using System.IO; namespace Radish { public partial class AppDelegate : NSApplicationDelegate { private static Logger logger = LogManager.GetCurrentClassLogger(); ...
```c# using System; using System.Drawing; using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; using NLog; using Radish.Support; using System.IO; namespace Radish { public partial class AppDelegate : NSApplicationDelegate { private static Logger logger = LogManager.GetCurrentClassLogger(); ...
48a1c8ed-f869-46e7-9b18-87225c879275
{ "language": "C#" }
```c# using System.Xml.Serialization; namespace DevelopmentInProgress.DipState { public enum DipStateActionType { [XmlEnum("1")] Entry, [XmlEnum("2")] Exit } } ``` Add action type for status
```c# using System.Xml.Serialization; namespace DevelopmentInProgress.DipState { public enum DipStateActionType { [XmlEnum("1")] Status, [XmlEnum("2")] Entry, [XmlEnum("3")] Exit } } ```
a4fad133-4535-4bfa-845e-e0d921d302de
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Moq; using NuGet.Common; using NuGet.Extensions.Nuspec; using NUnit.Framework; namespace NuGet.Extensions.Tests.Nuspec { [TestFixture] public class NuspecBuilderTests { [Test] ...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Moq; using NuGet.Common; using NuGet.Extensions.Nuspec; using NuGet.Extensions.Tests.MSBuild; using NUnit.Framework; namespace NuGet.Extensions.Tests.Nuspec { [TestFixture] public class NuspecBui...
b4d07ed7-e3f9-47c9-9b96-4f5dfece75cb
{ "language": "C#" }
```c# using System; using System.Linq; using Telegram.Bot.Types; using Telegram.Bot.Types.Enums; namespace Telegram.Bot.Tests.Integ.Framework { internal static class Extensions { public static User GetUser(this Update update) { switch (update.Type) { case...
```c# using System; using System.Linq; using Telegram.Bot.Types; using Telegram.Bot.Types.Enums; namespace Telegram.Bot.Tests.Integ.Framework { internal static class Extensions { public static User GetUser(this Update update) { switch (update.Type) { case...
0f1fb1a0-925f-4dd4-a3f8-d668c6f09a15
{ "language": "C#" }
```c# using UnityEngine; using UnityEngine.Rendering; using UnityEngine.Networking; public static class UnityUtils { public static bool IsAnyKeyUp(KeyCode[] keys) { foreach (KeyCode key in keys) { if (Input.GetKeyUp(key)) return true; } return false; ...
```c# using UnityEngine; using UnityEngine.Rendering; using UnityEngine.Networking; public static class UnityUtils { public static bool IsAnyKeyUp(KeyCode[] keys) { foreach (KeyCode key in keys) { if (Input.GetKeyUp(key)) return true; } return false; ...
227ff12b-4dae-4ce4-a3ab-28976c7d3a09
{ "language": "C#" }
```c# using System; using System.Diagnostics; using System.Threading; using System.Web.Routing; using SignalR.Hosting.AspNet.Routing; using SignalR.Samples.App_Start; using SignalR.Samples.Hubs.DemoHub; [assembly: WebActivator.PreApplicationStartMethod(typeof(Startup), "Start")] namespace SignalR.Samples.App_Start {...
```c# using System; using System.Diagnostics; using System.Threading; using System.Web.Routing; using SignalR.Hosting.AspNet.Routing; using SignalR.Samples.App_Start; using SignalR.Samples.Hubs.DemoHub; [assembly: WebActivator.PostApplicationStartMethod(typeof(Startup), "Start")] namespace SignalR.Samples.App_Start ...
1b94d9a6-a9eb-4869-8ed7-e022e1350fdf
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JLChnToZ.LuckyPlayer { public class DestinyTuner<T> { static DestinyTuner<T> defaultInstance; public static DestinyTuner<T> Default { get { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JLChnToZ.LuckyPlayer { public class DestinyTuner<T> { static DestinyTuner<T> defaultInstance; public static DestinyTuner<T> Default { get { ...
164cb3e9-7456-4972-9689-cdbaf833fdac
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using UnityEngine; using CNTK; using UnityEngine.Events; using System.Threading; using UnityEngine.Assertions; namespace UnityCNTK { /// <summary> /// the non-generic base class for all model /// only meant to be used for model management and...
```c# using System; using System.Collections.Generic; using UnityEngine; using CNTK; using UnityEngine.Events; using System.Threading; using UnityEngine.Assertions; namespace UnityCNTK { /// <summary> /// the non-generic base class for all model /// only meant to be used for model management and...
359b595b-bbe5-485f-8513-f66164f2b113
{ "language": "C#" }
```c# public class BuildConfig { private const string Version = "0.3.0"; public readonly string SrcDir = "./src/"; public readonly string OutDir = "./build/"; public string Target { get; private set; } public string SemVer { get; private set; } public string BuildProfile { get; private...
```c# public class BuildConfig { private const string Version = "0.4.0"; private const bool IsPreRelease = true; public readonly string SrcDir = "./src/"; public readonly string OutDir = "./build/"; public string Target { get; private set; } public string SemVer { get; private set; } ...
2967b7a2-988b-4a74-83dd-de509b34aadf
{ "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.Audio.Track; using osu.Framework.Graphics; using osu.Framework.Graphics.Shapes; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Graphics.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.Audio.Track; using osu.Framework.Graphics; using osu.Framework.Graphics.Shapes; using osu.Game.Beatmaps.ControlPoints; using osu.G...
ac86dbfb-32f6-4ae6-8158-c1d96450b339
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Net.Mail; namespace StressMeasurementSystem.Models { public class Patient { #region Structs public struct Name { public string Prefix { get; set; } public string First { get; set; } public string ...
```c# using System.Collections.Generic; using System.Net.Mail; namespace StressMeasurementSystem.Models { public class Patient { #region Structs public struct Name { public string Prefix { get; set; } public string First { get; set; } public string ...
a334d7fe-0d91-4f9e-ba1e-18f18cd1f643
{ "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; namespace osu.Framework.Graphics.Transformations { public interface ITransform { double Duration { get; } ...
```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; namespace osu.Framework.Graphics.Transformations { public interface ITransform { double Duration { get; } ...
673611e9-70fc-4141-907b-3604c9c949d4
{ "language": "C#" }
```c# namespace CommonDomain.Core { using System.Globalization; internal static class ExtensionMethods { public static string FormatWith(this string format, params object[] args) { return string.Format(CultureInfo.InvariantCulture, format ?? string.Empty, args); } public static void ThrowHandlerNotFound...
```c# namespace CommonDomain.Core { using System.Globalization; internal static class ExtensionMethods { public static string FormatWith(this string format, params object[] args) { return string.Format(CultureInfo.InvariantCulture, format ?? string.Empty, args); } public static void ThrowHandlerNotFound...
8866888a-4376-44ab-a062-f0d663237e87
{ "language": "C#" }
```c# using System; using System.IO; using System.Linq; using System.Reflection; namespace PCSBingMapKeyManager { class Program { private const string NewKeySwitch = "/a:"; static void Main(string[] args) { if (args.Length > 1 || args.Any() && !args[0].StartsWith(NewKeySwi...
```c# using System; using System.IO; using System.Linq; using System.Reflection; namespace PCSBingMapKeyManager { class Program { private const string NewKeySwitch = "/newkey:"; static void Main(string[] args) { if (args.Length > 1 || args.Any() && !args[0].StartsWith(NewK...
16121589-c640-40be-916c-26efa7c880c4
{ "language": "C#" }
```c# using NMaier.sdlna.Server; namespace NMaier.sdlna.FileMediaServer.Comparers { class TitleComparer : IItemComparer { public virtual string Description { get { return "Sort alphabetically"; } } public virtual string Name { get { return "title"; } } public virtual i...
```c# using System; using System.Collections; using NMaier.sdlna.Server; using NMaier.sdlna.Util; namespace NMaier.sdlna.FileMediaServer.Comparers { class TitleComparer : IItemComparer, IComparer { private static StringComparer comp = new NaturalStringComparer(); public virtual string Description { ...
eefea407-bbce-4a26-9f29-03ae66768e48
{ "language": "C#" }
```c# // // EnumerableExtensions.cs // // Author: // Roman M. Yagodin <roman.yagodin@gmail.com> // // Copyright (c) 2016 Roman M. Yagodin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Soft...
```c# // // EnumerableExtensions.cs // // Author: // Roman M. Yagodin <roman.yagodin@gmail.com> // // Copyright (c) 2016 Roman M. Yagodin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Soft...
3a598556-1765-4c59-98c3-e13c6662d388
{ "language": "C#" }
```c# using MarkdownSnippets; using Xunit; public class DocoUpdater { [Fact] public void Run() { GitHubMarkdownProcessor.RunForFilePath(); } }``` Update MarkdownSnippets API to use new DirectoryMarkdownProcessor
```c# using MarkdownSnippets; using Xunit; public class DocoUpdater { [Fact] public void Run() { DirectoryMarkdownProcessor.RunForFilePath(); } }```
f0be8e0b-83ba-4749-a9ff-4e1dc7fef9e5
{ "language": "C#" }
```c# using Bartender.Tests.Context; using Moq; using Xunit; namespace Bartender.Tests { public class AsyncCommandDispatcherTests : DispatcherTests { [Fact] public async void ShouldHandleCommandOnce_WhenCallDispatchAsyncMethod() { await AsyncCommandDispatcher.DispatchAsync<C...
```c# using Bartender.Tests.Context; using Moq; using Shouldly; using Xunit; namespace Bartender.Tests { public class AsyncCommandDispatcherTests : DispatcherTests { [Fact] public async void ShouldHandleCommandOnce_WhenCallDispatchAsyncMethod() { await AsyncCommandDispatcher...
9acc589b-b5bf-4f74-b2db-a3dd2fcf8dae
{ "language": "C#" }
```c# using System; using System.IO; using System.Reflection; namespace Blueprint41.Modeller.Schemas { public abstract class DatastoreModelComparer { static public DatastoreModelComparer Instance { get { return instance.Value; } } static private Lazy<DatastoreModelComparer> instance = new Lazy...
```c# using System; using System.IO; using System.Linq; using System.Reflection; namespace Blueprint41.Modeller.Schemas { public abstract class DatastoreModelComparer { public static DatastoreModelComparer Instance { get { return instance.Value; } } private static Lazy<DatastoreModelComparer> ...
48c53bad-1a9c-4782-a3e3-8f4ffdcae98b
{ "language": "C#" }
```c# using System.Xml.Linq; var target = Argument<string>("target", "Default"); var configuration = Argument<string>("configuration", "Release"); var projectName = "WeakEvent"; var libraryProject = $"./{projectName}/{projectName}.csproj"; var testProject = $"./{projectName}.Tests/{projectName}.Tests.csproj"; var out...
```c# using System.Xml.Linq; var target = Argument<string>("target", "Default"); var configuration = Argument<string>("configuration", "Release"); var projectName = "WeakEvent"; var solution = $"{projectName}.sln"; var libraryProject = $"./{projectName}/{projectName}.csproj"; var testProject = $"./{projectName}.Tests...
c7b0d9b9-9b6b-46e1-aa06-6a13e91a157e
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Configuration; using osu.Framework.Platform; namespace osu.Framework.Tests.Visua...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Platform; namespace osu.Framework.Tests.Visual.Platform { public class TestS...
bc61014c-2dd1-4c51-ae38-aa243cace3c3
{ "language": "C#" }
```c# namespace Interapp.Services.Common { public class FilterModel { public string OrderBy { get; set; } public string Order { get; set; } public int Page { get; set; } public int PageSize { get; set; } public string Filter { get; set; } } } ``` Set default val...
```c# namespace Interapp.Services.Common { public class FilterModel { public FilterModel() { this.Page = 1; this.PageSize = 10; } public string OrderBy { get; set; } public string Order { get; set; } public int Page { get; set; ...
8d425a5a-82c1-414e-9771-7965041b4466
{ "language": "C#" }
```c# #tool "nuget:?package=xunit.runners&version=1.9.2" var config = Argument("configuration", "Release"); var runEnvironment = Argument("runenv", "local"); var buildDir = Directory("./Titan/bin/") + Directory(config); var testDir = Directory("./TitanTest/bin/") + Directory(config); Task("Clean") .Does(() => { ...
```c# #tool "nuget:?package=xunit.runner.console" var config = Argument("configuration", "Release"); var runEnvironment = Argument("runenv", "local"); var buildDir = Directory("./Titan/bin/") + Directory(config); var testDir = Directory("./TitanTest/bin/") + Directory(config); Task("Clean") .Does(() => { Cle...
69170f54-85bf-4093-b3db-cd0cbf4fb303
{ "language": "C#" }
```c# using System; using System.Threading; using NUnit.Framework; namespace Atata.WebDriverExtras.Tests { [TestFixture] [Parallelizable(ParallelScope.None)] public class SafeWaitTests { private SafeWait<object> wait; [SetUp] public void SetUp() { wait = ne...
```c# using System; using System.Threading; using NUnit.Framework; namespace Atata.WebDriverExtras.Tests { [TestFixture] [Parallelizable(ParallelScope.None)] public class SafeWaitTests { private SafeWait<object> wait; [SetUp] public void SetUp() { wait = ne...
133ff214-eb6b-4367-859a-6c0ccc679b37
{ "language": "C#" }
```c# #region Copyright // Copyright 2016 SnapMD, Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required...
```c# #region Copyright // Copyright 2016 SnapMD, Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required...
bdda7fd3-dfd0-4c41-bb50-d50a8817daaa
{ "language": "C#" }
```c# using osu.Framework.Graphics.Containers; using osu.Framework.Graphics; using osu.Framework.Input; using OpenTK; using osu.Framework; using osu.Framework.Allocation; namespace osu.Game.Graphics.Containers { class ParallaxContainer : Container { public float ParallaxAmount = 0.02f; ...
```c# using osu.Framework.Graphics.Containers; using osu.Framework.Graphics; using osu.Framework.Input; using OpenTK; using osu.Framework; using osu.Framework.Allocation; namespace osu.Game.Graphics.Containers { class ParallaxContainer : Container { public float ParallaxAmount = 0.02f; ...
937dff38-1396-44d0-aaaf-a5d4549e2618
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.ComponentModel; namespace osu.Game.Screens.Edit.Screens { public enum EditorScreenMode { [Description("compose")] ...
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.ComponentModel; namespace osu.Game.Screens.Edit.Screens { public enum EditorScreenMode { [Description("setup")] So...
c8d94c30-1833-4629-9d10-4950575412b8
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using Glimpse.Core2.Extensibility; using Glimpse.Core2.Framework; using Glimpse.Core2.ResourceResult; namespace Glimpse.Core2.Resource { public class Metadata : IResource { internal const string InternalName = "metadata.js"; private con...
```c# using System.Collections.Generic; using System.Linq; using Glimpse.Core2.Extensibility; using Glimpse.Core2.Framework; using Glimpse.Core2.ResourceResult; namespace Glimpse.Core2.Resource { public class Metadata : IResource { internal const string InternalName = "metadata.js"; private con...
d921985d-44cc-489e-a782-b7217234a059
{ "language": "C#" }
```c# using System; using DesktopWidgets.Classes; namespace DesktopWidgets.Widgets.CountdownClock { public class Settings : WidgetClockSettingsBase { public DateTime EndDateTime { get; } = DateTime.Now; } }``` Fix "Countdown" widget "EndDateTime" read only
```c# using System; using DesktopWidgets.Classes; namespace DesktopWidgets.Widgets.CountdownClock { public class Settings : WidgetClockSettingsBase { public DateTime EndDateTime { get; set; } = DateTime.Now; } }```
44a02fe2-d11b-4ecc-a697-3cf19f25ee0e
{ "language": "C#" }
```c# using System; using System.Data; using System.IO; namespace Tests.Daterpillar.Helper { public static class ConnectionFactory { public static IDbConnection CreateMySQLConnection(string database = null) { var connStr = new MySql.Data.MySqlClient.MySqlConnectionStringBuilder("")...
```c# using System; using System.Data; using System.IO; namespace Tests.Daterpillar.Helper { public static class ConnectionFactory { public static IDbConnection CreateSQLiteConnection(string filePath = "") { if (!File.Exists(filePath)) { filePath = Path....
5a60b11e-7d88-4b53-93c9-19a6e676e38a
{ "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 NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Testing; using osu.Game.Audio; using osu.Game.Beatmaps; using osu.Game.IO.Archives; using...
```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 NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Testing; using osu.Game.Audio; using osu.Game.Beatmaps; using osu.Game.IO.Archives; using...
ac2fdba0-0909-472a-92f2-a32dc03589db
{ "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.Platform; using osu.Framework.Testing; namespace osu.Game.Configuration { [ExcludeFromDynamicCompile] public class DevelopmentOsuConfig...
```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.Platform; using osu.Framework.Testing; namespace osu.Game.Configuration { [ExcludeFromDynamicCompile] public class DevelopmentOsuConfig...
493aed94-2560-4441-92e2-8b8d14ae94cd
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Common.Log; using CompetitionPlatform.Data.AzureRepositories.Log; using Quartz; using Quartz.Impl; namespace CompetitionPlatform.ScheduledJobs { public static class JobScheduler { public static...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Common.Log; using CompetitionPlatform.Data.AzureRepositories.Log; using Quartz; using Quartz.Impl; namespace CompetitionPlatform.ScheduledJobs { public static class JobScheduler { public static...
df63a623-3e12-4791-b0ee-ae6fba9c2bfa
{ "language": "C#" }
```c# using RealEstateAgencyFranchise.Database; using Starcounter; namespace RealEstateAgencyFranchise { partial class CorporationJson : Json { static CorporationJson() { DefaultTemplate.Offices.ElementType.InstanceType = typeof(AgencyOfficeJson); } void Handle(Inpu...
```c# using RealEstateAgencyFranchise.Database; using Starcounter; namespace RealEstateAgencyFranchise { partial class CorporationJson : Json { static CorporationJson() { DefaultTemplate.Offices.ElementType.InstanceType = typeof(AgencyOfficeJson); } void Handle(Inpu...
e6bee11b-9c51-4e70-a49e-250672a69af2
{ "language": "C#" }
```c# using System; namespace Silverpop.Client { public class TransactClientException : Exception { public TransactClientException() { } public TransactClientException(string message) : base(message) { } public TransactClientException(strin...
```c# using System; namespace Silverpop.Client { [Serializable] public class TransactClientException : Exception { public TransactClientException() { } public TransactClientException(string message) : base(message) { } public TransactCl...
c99b9f6e-9d58-4cd5-9d2a-7bdd24fc4aa5
{ "language": "C#" }
```c# using System; using System.Diagnostics; using Dependencies.ClrPh; namespace Dependencies { namespace Test { class Program { static void Main(string[] args) { // always the first call to make Phlib.InitializePhLib(); ...
```c# using System; using System.Diagnostics; using System.Collections.Generic; using Dependencies.ClrPh; using NDesk.Options; namespace Dependencies { namespace Test { class Program { static void ShowHelp(OptionSet p) { Console.WriteLine("Usage: binary...
2db39feb-f57c-4f56-9385-5320a21e70a7
{ "language": "C#" }
```c# using System.Collections.Generic; using CuttingEdge.Conditions; namespace ZimmerBot.Core { public class Request { public enum EventEnum { Welcome } public string Input { get; set; } public Dictionary<string, string> State { get; set; } public string SessionId { get; set; } ...
```c# using System.Collections.Generic; using CuttingEdge.Conditions; namespace ZimmerBot.Core { public class Request { public enum EventEnum { Welcome } public string Input { get; set; } public Dictionary<string, string> State { get; set; } public string SessionId { get; set; } ...
6ecf7a69-4ae5-42b2-aeb1-7f01478c186c
{ "language": "C#" }
```c# WoWUnit unit = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(questObjective.Entry, questObjective.IsDead), questObjective.IgnoreNotSelectable, questObjective.IgnoreBlackList, questObjective.AllowPlayerControlled); if (unit.IsValid && unit.Position.DistanceTo(questObjective.Position) <=8) { M...
```c# WoWUnit unit = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitByEntry(questObjective.Entry, questObjective.IsDead), questObjective.IgnoreNotSelectable, questObjective.IgnoreBlackList, questObjective.AllowPlayerControlled); ObjectManager.Me.UnitAura(115191).TryCancel(); //Remove Stealth from rogue if ...