doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
ab8eb183-0e29-4fa3-9bda-e334c9ce93b6
{ "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: AssemblyTitl...
```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: AssemblyTitl...
1076ab50-e764-4c4c-94fa-1b91c2f82052
{ "language": "C#" }
```c# using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; namespace Nest.Tests.Unit { public static class JsonExtensions { internal static bool JsonEquals(this string json, string otherjson) { var nJson = JObject.Parse(json).ToString(); var nOtherJson = JObject.P...
```c# using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; namespace Nest.Tests.Unit { public static class JsonExtensions { internal static bool JsonEquals(this string json, string otherjson) { var nJson = JObject.Parse(json); var nOtherJson = JObject.Parse(otherj...
d04b9a15-2033-4432-a2c2-9b02049cdc04
{ "language": "C#" }
```c# using Newtonsoft.Json; namespace MessageBird.Objects { public class Error { [JsonProperty("code")] public int Code { get; set; } [JsonProperty("description")] public string Description { get; set; } [JsonProperty("parameter")] public string Parameter { g...
```c# using System.Runtime.Serialization; using Newtonsoft.Json; namespace MessageBird.Objects { public enum ErrorCode { RequestNotAllowed = 2, MissingParameters = 9, InvalidParameters = 10, NotFound = 20, NotEnoughBalance = 25, ApiNotFound = 98, Interna...
6268bc8d-00c9-4870-a864-3369722f63c9
{ "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.ComponentModel; namespace osu.Game.Configuration { public enum HUDVisibilityMode { Never, [Description("Hide during gameplay"...
```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.ComponentModel; namespace osu.Game.Configuration { public enum HUDVisibilityMode { Never, [Description("Hide during gameplay"...
50f1d787-d41c-4a9e-816d-2278ade95f7b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using Fitbit.Models; using Newtonsoft.Json.Linq; namespace Fitbit.Api.Portable { internal static class JsonDotNetSerializerExtensions { /// <summary> /// GetFriends has to do some custom manipulation with the returned rep...
```c# using System; using System.Collections.Generic; using System.Linq; using Fitbit.Models; using Newtonsoft.Json.Linq; namespace Fitbit.Api.Portable { internal static class JsonDotNetSerializerExtensions { /// <summary> /// GetFriends has to do some custom manipulation with the returned rep...
2d4636bb-e11f-45ac-8090-845489732141
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("CloudSearch")] [assembly: ...
```c# using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("CloudSearch")] [assembly: ...
674fc945-68ab-4c1c-a287-22ec56af3dd0
{ "language": "C#" }
```c# using System; using TagLib; public class SetPictures { public static void Main(string [] args) { if(args.Length < 2) { Console.Error.WriteLine("USAGE: mono SetPictures.exe AUDIO_PATH IMAGE_PATH_1[...IMAGE_PATH_N]"); return; } TagLib.File file = TagLib....
```c# using System; using TagLib; public class SetPictures { public static void Main(string [] args) { if(args.Length < 2) { Console.Error.WriteLine("USAGE: mono SetPictures.exe AUDIO_PATH IMAGE_PATH_1[...IMAGE_PATH_N]"); return; } TagLib.File file = TagLib....
4d69392b-cf70-4c18-9948-5a27fd0d3d18
{ "language": "C#" }
```c# using AxosoftAPI.NET.Core.Interfaces; using AxosoftAPI.NET.Models; namespace AxosoftAPI.NET.Interfaces { public interface IWorkLogs : IGetAllResource<WorkLog>, ICreateResource<WorkLog>, IDeleteResource<WorkLog> { } } ``` Support full API available for worklogs
```c# using AxosoftAPI.NET.Core.Interfaces; using AxosoftAPI.NET.Models; namespace AxosoftAPI.NET.Interfaces { public interface IWorkLogs : IResource<WorkLog> { } } ```
260274b7-4c93-44b8-8ad2-02ea5a553c20
{ "language": "C#" }
```c# // Copyright 2015 Palm Stone Games, Inc. All Rights Reserved. using System.IO; namespace UnrealBuildTool.Rules { public class ue4czmq : ModuleRules { public ue4czmq(TargetInfo Target) { // Include paths //PublicIncludePaths.AddRange(new string[] {}); //PrivateIncl...
```c# // Copyright 2015 Palm Stone Games, Inc. All Rights Reserved. using System.IO; namespace UnrealBuildTool.Rules { public class ue4czmq : ModuleRules { public ue4czmq(TargetInfo Target) { // Include paths //PublicIncludePaths.AddRange(new string[] {}); //PrivateIncl...
321d4774-f5ae-4e59-9992-0f1a548e6c34
{ "language": "C#" }
```c# using System; using NBi.Xml; using NUnit.Framework; namespace NBi.Testing.Unit.Xml { [TestFixture] public class XmlManagerTest { [Test] public void Load_ValidFile_Success() { var filename = DiskOnFile.CreatePhysicalFile("TestSuite.xml", "NBi.Testing.Un...
```c# using System; using NBi.Xml; using NUnit.Framework; namespace NBi.Testing.Unit.Xml { [TestFixture] public class XmlManagerTest { [Test] public void Load_ValidFile_Success() { var filename = DiskOnFile.CreatePhysicalFile("TestSuite.xml", "NBi.Testing.Un...
4c8f7511-8c5c-44c7-9f50-f3a4f378cf4c
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Android.App; // 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. [as...
```c# using System.Reflection; using System.Runtime.InteropServices; using Android; [assembly: AssemblyTitle("Binding")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Binding")] [assembly: AssemblyCopyright("Copyright © 2017")] [...
8df89c5b-02dc-44e0-98c8-a62c6c292f68
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design; using System.Linq; using System.Text; using System.Windows.Forms; namespace poshsecframework.PShell { class psfilenameeditor : System.Drawing.Design.UITypeEditor { public override Sys...
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design; using System.Linq; using System.Text; using System.Windows.Forms; namespace poshsecframework.PShell { class psfilenameeditor : System.Drawing.Design.UITypeEditor { public override Sys...
09ea333b-b922-43dd-a469-8ade510a8045
{ "language": "C#" }
```c# using System; using Villermen.RuneScapeCacheTools.Cache; using Villermen.RuneScapeCacheTools.Cache.RuneTek5; using Xunit; using Xunit.Abstractions; namespace RuneScapeCacheToolsTests { public class RuneTek5CacheTests : IDisposable { private ITestOutputHelper _output; private RuneTek5Cac...
```c# using System; using Villermen.RuneScapeCacheTools.Cache; using Villermen.RuneScapeCacheTools.Cache.RuneTek5; using Xunit; using Xunit.Abstractions; namespace RuneScapeCacheToolsTests { public class RuneTek5CacheTests : IDisposable { private readonly ITestOutputHelper _output; private re...
f6a48206-fd0d-4825-a668-8ebe92b62a7d
{ "language": "C#" }
```c# // Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. using System; using System.Linq; using PInvoke; using Xunit; using Xunit.Abstractions; u...
```c# // Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. using System; using System.Linq; using PInvoke; using Xunit; using Xunit.Abstractions; u...
46b1a2d4-7818-41c8-bf2a-7d01c5c7fbff
{ "language": "C#" }
```c# using System; using Microsoft.SPOT; namespace IntervalTimer { public delegate void IntervalEventHandler(object sender, EventArgs e); public class IntervalTimer { public TimeSpan ShortDuration { get; set; } public TimeSpan LongDuration { get; set; } public Interv...
```c# using System; using Microsoft.SPOT; namespace IntervalTimer { public delegate void IntervalEventHandler(object sender, IntervalReachedEventArgs e); public class IntervalTimer { public TimeSpan ShortDuration { get; set; } public TimeSpan LongDuration { get; set; } ...
2bf07d20-6a6a-4a09-9cfc-f6522ed2a436
{ "language": "C#" }
```c# using System; using System.Web; using System.Web.Configuration; using ZMQ; namespace Nohros.Toolkit.RestQL { public class Global : HttpApplication { static readonly Context zmq_context_; #region .ctor static Global() { zmq_context_ = new Context(ZMQ.Context.DefaultIOThreads);...
```c# using System; using System.Web; using System.Web.Configuration; using ZMQ; namespace Nohros.Toolkit.RestQL { public class Global : HttpApplication { static readonly Context zmq_context_; #region .ctor static Global() { zmq_context_ = new Context(ZMQ.Context.DefaultIOThreads);...
b85ed1e5-ca78-4a75-9413-fae02cc4e579
{ "language": "C#" }
```c# using UnityEngine; public class Settings { public static Player p1 = new RandomAI(null, 1, Color.red, Resources.Load<Sprite>("Sprites/x"), "X"), p2 = new RandomAI(null, 2, Color.blue, Resources.Load<Sprite>("Sprites/o"), "O"); } ``` Add RandomAI() method for fast generation of simple random...
```c# using UnityEngine; public class Settings { public static Player p1 = RandomAI(true), p2 = RandomAI(false); public static RandomAI RandomAI(bool firstPlayer) { int turn = firstPlayer ? 1 : 2; Color color = firstPlayer ? Color.red : Color.blue; Sprite sprite = Res...
8d9a5927-d829-4a5f-9fc5-81a8ad2e154c
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AvsAnLib; using ExpressionToCodeLib; using NUnit.Framework; namespace AvsAn_Test { public class StandardCasesWork { [TestCase("an", "unanticipated result")] [...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AvsAnLib; using ExpressionToCodeLib; using NUnit.Framework; namespace AvsAn_Test { public class StandardCasesWork { [TestCase("an", "unanticipated result")] [...
8980a20c-27e6-4a2c-b40d-166e236a59aa
{ "language": "C#" }
```c# namespace NHasher { internal static class HashExtensions { public static ulong RotateLeft(this ulong original, int bits) { return (original << bits) | (original >> (64 - bits)); } public static uint RotateLeft(this uint original, int bits) { ...
```c# using System.Runtime.CompilerServices; namespace NHasher { internal static class HashExtensions { [MethodImpl(MethodImplOptions.AggressiveInlining)] public static ulong RotateLeft(this ulong original, int bits) { return (original << bits) | (original >> (64 - bits)); ...
3daa8b59-579e-430f-9f2a-f3b5533d3a38
{ "language": "C#" }
```c# using Telerik.TestingFramework.Controls.KendoUI; using Telerik.WebAii.Controls.Html; using Telerik.WebAii.Controls.Xaml; using System; using System.Collections.Generic; using System.Text; using System.Linq; using ArtOfTest.Common.UnitTesting; using ArtOfTest.WebAii.Core; using ArtOfTest.WebAii.Controls.HtmlContr...
```c# using Telerik.TestingFramework.Controls.KendoUI; using Telerik.WebAii.Controls.Html; using Telerik.WebAii.Controls.Xaml; using System; using System.Collections.Generic; using System.Text; using System.Linq; using ArtOfTest.Common.UnitTesting; using ArtOfTest.WebAii.Core; using ArtOfTest.WebAii.Controls.HtmlContr...
499796f7-2e84-4a0a-abcd-e4fc64b74815
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public class LightManager { Material LightOnMaterial; Material LightOffMaterial; public bool IsOn = true; // Use this for initialization public void UpdateLights() { GameObject[] allLights = GameObject.FindGameObjectsWithTag ("Light"); foreach (GameObject i...
```c# using UnityEngine; using System.Collections; public class LightManager { Material LightOnMaterial; Material LightOffMaterial; public bool IsOn = true; // Use this for initialization public void UpdateLights() { bool lightOn = IsOn; if (!Application.loadedLevelName.StartsWith ("Level")) lightOn = fal...
c91a6c22-97b1-4b9c-b2b9-3b7c9cbbba26
{ "language": "C#" }
```c# using Avalonia.Controls; using System.Reactive.Disposables; namespace WalletWasabi.Gui.Behaviors { public class CommandOnDoubleClickBehavior : CommandBasedBehavior<Control> { private CompositeDisposable _disposables; protected override void OnAttached() { _disposable...
```c# using Avalonia.Controls; using System.Reactive.Disposables; namespace WalletWasabi.Gui.Behaviors { public class CommandOnDoubleClickBehavior : CommandBasedBehavior<Control> { private CompositeDisposable Disposables { get; set; } protected override void OnAttached() { Disposables = new CompositeDispo...
e6406fba-842f-495b-9d2b-598234224e92
{ "language": "C#" }
```c# using Mond.Binding; namespace Mond.Libraries.Console { [MondClass("")] internal class ConsoleOutputClass { private ConsoleOutputLibrary _consoleOutput; public static MondValue Create(ConsoleOutputLibrary consoleOutput) { MondValue prototype; MondClass...
```c# using Mond.Binding; namespace Mond.Libraries.Console { [MondClass("")] internal class ConsoleOutputClass { private ConsoleOutputLibrary _consoleOutput; public static MondValue Create(ConsoleOutputLibrary consoleOutput) { MondValue prototype; MondClass...
747ddece-a7e4-4a1f-8d38-6299150eabfc
{ "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...
1abf436e-26e7-400d-aa08-ae7d8c965e6f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using Android.App; using Android.Content; using Android.Content.PM; using Android.Database; using Android.Graphics; using Android.OS; using Android.Runtime; using Android.Support.Design.Widget; using Android.Support.V4.Widget; using Android.Supp...
```c# using System; using System.Collections.Generic; using System.Linq; using Android.App; using Android.Content; using Android.Content.PM; using Android.Database; using Android.Graphics; using Android.OS; using Android.Runtime; using Android.Support.Design.Widget; using Android.Support.V4.Widget; using Android.Supp...
fa37d59d-53ba-40d2-aba0-91f9c505ffa8
{ "language": "C#" }
```c# namespace SimpSim.NET { public class Registers { public delegate void ValueWrittenToOutputRegisterHandler(char output); public event ValueWrittenToOutputRegisterHandler ValueWrittenToOutputRegister; private readonly byte[] _array; public Registers() { ...
```c# namespace SimpSim.NET { public class Registers { public delegate void ValueWrittenToOutputRegisterHandler(char output); public event ValueWrittenToOutputRegisterHandler ValueWrittenToOutputRegister; private readonly byte[] _array; public Registers() { ...
2a346ddb-14c5-4c9b-a5b0-394bbd388a7a
{ "language": "C#" }
```c# using System; namespace Utils { public static class Strings { public static Tuple<string, string> SplitString(this string str, char separator) { var index = str.IndexOf(separator); var str2 = str.Length > index?str.Substring(index + 1):string.Empty; va...
```c# using System; namespace Utils { public static class Strings { public static Tuple<string, string> SplitString(this string str, char separator) { var index = str.IndexOf(separator); var str2 = str.Length > index?str.Substring(index + 1):string.Empty; va...
613dca3b-d511-4f52-a6a8-18211c19c43a
{ "language": "C#" }
```c# using NUnit.Framework; namespace ZimmerBot.Core.Tests.BotTests { [TestFixture] public class ContinueTests : TestHelper { [Test] public void CanContinueWithEmptyTarget() { BuildBot(@" > Hello : Hi ! continue > * ! weight 0.5 : What can I help you with? "); Assert...
```c# using NUnit.Framework; namespace ZimmerBot.Core.Tests.BotTests { [TestFixture] public class ContinueTests : TestHelper { [Test] public void CanContinueWithEmptyTarget() { BuildBot(@" > Hello : Hi ! continue > * ! weight 0.5 : What can I help you with? "); Assert...
b6253ac4-b210-499f-bf99-dd370d83fba0
{ "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. namespace osu.Game.Skinning { public class LegacySkinConfiguration : DefaultSkinConfiguration { public const decimal LATEST_VERSION = 2.7m; ...
```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. namespace osu.Game.Skinning { public class LegacySkinConfiguration : DefaultSkinConfiguration { public const decimal LATEST_VERSION = 2.7m; ...
c4a0a776-50bc-4ee0-a242-65e2c8b5515b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LaunchNumbering { public class LNSettings : GameParameters.CustomParameterNode { public override GameParameters.GameMode GameMode => GameParameters.GameMode.ANY; public override bool HasPresets => false; pu...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LaunchNumbering { public class LNSettings : GameParameters.CustomParameterNode { public override GameParameters.GameMode GameMode => GameParameters.GameMode.ANY; public override bool HasPresets => false; pu...
77132644-60e8-40bf-b952-228cbf01f3a8
{ "language": "C#" }
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Assignment2Application; namespace UnitTestProject1 { [TestClass] public class UnitTest1 { FibonacciGenerator _gen = new FibonacciGenerator(); [TestMethod] public void FibonacciGeneratorBasic() { ...
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Assignment2Application; namespace UnitTestProject1 { [TestClass] public class UnitTest1 { FibonacciGenerator _gen = new FibonacciGenerator(); [TestMethod] public void FibonacciGeneratorBasic() { ...
944fb0bd-d70f-430d-9788-9846ccec5a33
{ "language": "C#" }
```c# using System; using dnlib.DotNet; namespace Confuser.Core.Project.Patterns { /// <summary> /// A function that compare the namespace of definition. /// </summary> public class NamespaceFunction : PatternFunction { internal const string FnName = "namespace"; /// <inheritdoc /> public override stri...
```c# using System; using System.Text.RegularExpressions; using dnlib.DotNet; namespace Confuser.Core.Project.Patterns { /// <summary> /// A function that compare the namespace of definition. /// </summary> public class NamespaceFunction : PatternFunction { internal const string FnName = "namespace"; ///...
bb3ca773-ed73-47d2-9f9b-3755dda1e649
{ "language": "C#" }
```c# using System; using System.Linq; using LinqToDB; using NUnit.Framework; namespace Tests.UserTests { [TestFixture] public class Issue1556Tests : TestBase { [Test] public void Issue1556Test([DataSources(ProviderName.Sybase, ProviderName.OracleNative)] string context) { using (var db = GetDataContext...
```c# using System; using System.Linq; using LinqToDB; using NUnit.Framework; namespace Tests.UserTests { [TestFixture] public class Issue1556Tests : TestBase { [Test] public void Issue1556Test( [DataSources(ProviderName.Sybase, ProviderName.OracleNative, ProviderName.Access)] string context) { using...
78814593-bd12-4018-b023-b89650cc31a0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; namespace InfinniPlatform.Core.Metadata { public class MetadataUniqueName : IEquatable<MetadataUniqueName> { private const char NamespaceSeparator = '.'; public MetadataUniqueName(string ns, string name) { ...
```c# using System; using System.Collections.Generic; using System.Linq; namespace InfinniPlatform.Core.Metadata { public class MetadataUniqueName : IEquatable<MetadataUniqueName> { private const char NamespaceSeparator = '.'; public MetadataUniqueName(string ns, string name) { ...
de70a51d-6bf2-4a93-90ef-49b46ebcc9cd
{ "language": "C#" }
```c# using System.IO; using System.Text; using Antlr4.Runtime; using GraphQL.Language; using GraphQL.Parsing; namespace GraphQL.Execution { public class AntlrDocumentBuilder : IDocumentBuilder { public Document Build(string data) { var stream = new MemoryStream(Encoding.UTF8.GetByt...
```c# using System.IO; using System.Text; using Antlr4.Runtime; using GraphQL.Language; using GraphQL.Parsing; namespace GraphQL.Execution { public class AntlrDocumentBuilder : IDocumentBuilder { public Document Build(string data) { using (var stream = new MemoryStream(Encoding.UTF8...
544965c3-2e64-4f24-a793-4bb9aaf216d8
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; using NServiceBus; using NServiceBus.Logging; class ChaosHandler : IHandleMessages<object> { readonly ILog Log = LogManager.GetLogger<ChaosHandler>(); readonly double Thresshold = ThreadLocalRandom.NextDouble() * 0.50; public Task Handle(object message, IM...
```c# using System; using System.Threading.Tasks; using NServiceBus; using NServiceBus.Logging; class ChaosHandler : IHandleMessages<object> { readonly ILog Log = LogManager.GetLogger<ChaosHandler>(); readonly double Thresshold = ThreadLocalRandom.NextDouble() * 0.05; public Task Handle(object m...
557e8c15-e487-4077-b1cb-ff7cae11f2c2
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using PhotoLife.Data.Contracts; using PhotoLife.Models; using PhotoLife.Models.Enums; using PhotoLife.Services.Contracts; namespace PhotoLife.Services { public class CategoryService : ICategoryService { private readonly IReposito...
```c# using System; using System.Collections.Generic; using System.Linq; using PhotoLife.Data.Contracts; using PhotoLife.Models; using PhotoLife.Models.Enums; using PhotoLife.Services.Contracts; namespace PhotoLife.Services { public class CategoryService : ICategoryService { private readonly IReposito...
f06a4913-06e2-4e83-94cb-c67d07ffbaf7
{ "language": "C#" }
```c# namespace SyncTrayzor.SyncThing.ApiClient { public class GenericEvent : Event { public override void Visit(IEventVisitor visitor) { visitor.Accept(this); } public override string ToString() { return $"<GenericEvent ID={this.Id} Type={this.T...
```c# using System; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace SyncTrayzor.SyncThing.ApiClient { public class GenericEvent : Event { public override void Visit(IEventVisitor visitor) { visitor.Accept(this); ...
5a817f44-83e1-4886-bfbb-788c1aa67207
{ "language": "C#" }
```c# // Copyright 2017-2018 Dirk Lemstra (https://github.com/dlemstra/line-bot-sdk-dotnet) // // Dirk Lemstra licenses this file to you under the Apache License, // version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at: // // https:/...
```c# // Copyright 2017-2018 Dirk Lemstra (https://github.com/dlemstra/line-bot-sdk-dotnet) // // Dirk Lemstra licenses this file to you under the Apache License, // version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at: // // https:/...
1983d5c5-1398-46a5-abac-163d3eb41cc1
{ "language": "C#" }
```c# using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace NRules.RuleModel { /// <summary> /// Sorted readonly map of named expressions. /// </summary> public class ExpressionMap : IEnumerable<NamedExpressionElement> { private readonly Sort...
```c# using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace NRules.RuleModel { /// <summary> /// Sorted readonly map of named expressions. /// </summary> public class ExpressionMap : IEnumerable<NamedExpressionElement> { private readonly Sort...
6a9b5b97-bbe0-4ecf-ae18-89bfa77b49cd
{ "language": "C#" }
```c# using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Mono.Cecil; using System; using System.IO; namespace AspectInjector.BuildTask { public class AspectInjectorBuildTask : Task { [Required] public string Assembly { get; set; } [Required] ...
```c# using Microsoft.Build.Framework; using Microsoft.Build.Utilities; using Mono.Cecil; using System; using System.IO; namespace AspectInjector.BuildTask { public class AspectInjectorBuildTask : Task { [Required] public string Assembly { get; set; } [Required] ...
6843a8cb-18c9-4589-bb67-635f0e8d4070
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace AllReady.Models { public class Activity { public Activity() { Tasks = new List<AllReadyTask>(); UsersSignedUp...
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace AllReady.Models { public class Activity { public int Id { get; set; } [Display(Name = "Tenant")] public int TenantId { get; ...
86fee7b3-212f-4b85-b29d-8707f4cac8ce
{ "language": "C#" }
```c# /* * SqlServerHelpers * SqlConnectionExtensions - Extension methods for SqlConnection * Authors: * Josh Keegan 26/05/2015 */ using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SqlServerHelpers.Extensi...
```c# /* * SqlServerHelpers * SqlConnectionExtensions - Extension methods for SqlConnection * Authors: * Josh Keegan 26/05/2015 */ using System; using System.Collections.Generic; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SqlServerHelpers.Extensi...
68ffb953-026f-42a2-9278-20f2dd127669
{ "language": "C#" }
```c# using NUnit.Framework; using UnityEngine.Formats.Alembic.Sdk; namespace UnityEditor.Formats.Alembic.Exporter.UnitTests { class EditorTests { [Test] public void MarshalTests() { Assert.AreEqual(72,System.Runtime.InteropServices.Marshal.SizeOf(typeof(aePolyMeshData))); ...
```c# using NUnit.Framework; using UnityEngine.Formats.Alembic.Sdk; namespace UnityEditor.Formats.Alembic.Exporter.UnitTests { class EditorTests { [Test] public void MarshalTests() { Assert.AreEqual(72,System.Runtime.InteropServices.Marshal.SizeOf(typeof(aePolyMeshData))); ...
d2fd1dea-7f87-4292-9dcf-c24fc075b687
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; using TFG.Model; namespace TFG.Logic { public class SintromLogic { private static SintromLogic _instance; public static SintromLogic Instance() { if (_instance == null) { _instance = new Sintrom...
```c# using System; using System.Collections.Generic; using System.Text; using TFG.Model; namespace TFG.Logic { public class SintromLogic { private static SintromLogic _instance; public static SintromLogic Instance() { if (_instance == null) { _instance = new Sintrom...
403d3981-150c-4ef3-842d-7499451f81ad
{ "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: AssemblyTitl...
```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: AssemblyTitl...
7d93d2ad-7cc7-4140-bf1e-e4825a517ef6
{ "language": "C#" }
```c# /* * ****************************************************************************** * Copyright 2014 Spectra Logic Corporation. 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. A copy of the License ...
```c# /* * ****************************************************************************** * Copyright 2014 Spectra Logic Corporation. 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. A copy of the License ...
8e99f9ac-606e-40e5-bcdd-b12b05d7e4b8
{ "language": "C#" }
```c# using SRPCommon.Interfaces; using SRPCommon.Util; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SRPTests.TestRenderer { // Implementation of IWorkspace that finds test files. class TestWorkspace : IWorkspace { ...
```c# using SRPCommon.Interfaces; using SRPCommon.Util; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SRPTests.TestRenderer { // Implementation of IWorkspace that finds test files. class TestWorkspace : IWorkspace { ...
febaeb15-93c4-4d18-9580-13387e5def3b
{ "language": "C#" }
```c# using System.Collections.Generic; using System.IO; using System.Linq; using ICSharpCode.SharpZipLib.Tar; namespace AppHarbor { public static class CompressionExtensions { public static void ToTar(this DirectoryInfo sourceDirectory, Stream output, string[] excludedDirectoryNames) { var archive = TarArch...
```c# using System.Collections.Generic; using System.IO; using System.Linq; using ICSharpCode.SharpZipLib.Tar; namespace AppHarbor { public static class CompressionExtensions { public static void ToTar(this DirectoryInfo sourceDirectory, Stream output, string[] excludedDirectoryNames) { var archive = TarArch...
38c50b34-4ef3-409d-85a7-808a3f8a5b12
{ "language": "C#" }
```c# // dnlib: See LICENSE.txt for more info using System; using System.IO; namespace dnlib.IO { static class DataReaderFactoryFactory { static readonly bool isUnix; static DataReaderFactoryFactory() { // See http://mono-project.com/FAQ:_Technical#Mono_Platforms for platform detection. int p = (int)Envir...
```c# // dnlib: See LICENSE.txt for more info using System; using System.IO; using System.Runtime.InteropServices; namespace dnlib.IO { static class DataReaderFactoryFactory { static readonly bool isUnix; static DataReaderFactoryFactory() { // See http://mono-project.com/FAQ:_Technical#Mono_Platforms for pla...
08355e13-0250-44f8-be1c-e997f37f8f8e
{ "language": "C#" }
```c# using System.Web; using System.Web.Routing; namespace ConsolR.Hosting { public static class HttpHandlerExtensions { public static void MapHttpHandler<THandler>(this RouteCollection routes, string url) where THandler : IHttpHandler, new() { routes.MapHttpHandler<THandler>(null, url, null, null); } ...
```c# using System.Web; using System.Web.Routing; namespace ConsolR.Hosting { public static class HttpHandlerExtensions { public static void MapHttpHandler<THandler>(this RouteCollection routes, string url) where THandler : IHttpHandler, new() { routes.MapHttpHandler<THandler>(null, url, null, null); } ...
8a19af7a-5dd9-489a-a2c2-5208172b6b93
{ "language": "C#" }
```c# using System.Collections.Generic; namespace RazorLight.Templating { public class PageLookupResult { public PageLookupResult() { this.Success = false; } public PageLookupResult(PageLookupItem item, IReadOnlyList<PageLookupItem> viewStartEntries) { this.ViewEntry = it...
```c# using System.Collections.Generic; namespace RazorLight.Templating { public class PageLookupResult { public static PageLookupResult Failed => new PageLookupResult(); private PageLookupResult() { this.Success = false; } public PageLookupResult(PageLookupItem item, IRead...
d4bbc011-6b68-45a3-819f-56de5ca5411d
{ "language": "C#" }
```c# using System; namespace Microsoft.Build.Logging.StructuredLogger { public class TimedNode : NamedNode { public int Id { get; set; } public int NodeId { get; set; } /// <summary> /// Unique index of the node in the build tree, can be used as a /// "URL...
```c# using System; namespace Microsoft.Build.Logging.StructuredLogger { public class TimedNode : NamedNode { /// <summary> /// The Id of a Project, ProjectEvaluation, Target and Task. /// Corresponds to ProjectStartedEventsArgs.ProjectId, TargetStartedEventArgs.TargetId, etc. ...
a878d9d9-5b9e-49e7-8ace-9b2cf102f499
{ "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 osu.Framework.Allocation; using osu.Framework.Configuration; using osu.Framework.Graphics; namespace osu.Game.Overlays.Settings.Sections.Debug { ...
```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 osu.Framework.Allocation; using osu.Framework.Configuration; using osu.Framework.Graphics; namespace osu.Game.Overlays.Settings.Sections.Debug { ...
cd37bf3c-3106-4c72-9916-09dedc229913
{ "language": "C#" }
```c# #pragma warning disable CS1591 using System; using Newtonsoft.Json; namespace Discord.API { internal class Embed { [JsonProperty("title")] public string Title { get; set; } [JsonProperty("description")] public string Description { get; set; } [JsonProperty("url")]...
```c# #pragma warning disable CS1591 using System; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Discord.API { internal class Embed { [JsonProperty("title")] public string Title { get; set; } [JsonProperty("description")] public string Description { get; se...
f6a52a02-c351-4e6a-b815-057a4f429390
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; using Microsoft.Framework.DependencyInjection; using Microsoft.AspNet.FileProviders; using Microsoft.Dnx.Runtime; using MakingSense.AspNet.Documen...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Builder; using Microsoft.AspNet.Http; using Microsoft.Framework.DependencyInjection; using Microsoft.AspNet.FileProviders; using Microsoft.Dnx.Runtime; using MakingSense.AspNet.Documen...
e521da76-7d44-458f-a847-dd65b888f835
{ "language": "C#" }
```c# using CupCake.Core.Log; using CupCake.Messages.Receive; using CupCake.Players; namespace CupCake.Server.Muffins { public class LogMuffin : CupCakeMuffin { protected override void Enable() { this.Events.Bind<SayPlayerEvent>(this.OnSay); this.Events.Bind<WriteReceiv...
```c# using CupCake.Core.Log; using CupCake.Messages.Receive; using CupCake.Players; namespace CupCake.Server.Muffins { public class LogMuffin : CupCakeMuffin { protected override void Enable() { this.Events.Bind<SayPlayerEvent>(this.OnSay); this.Events.Bind<WriteReceiv...
0832b508-ebab-4997-98e7-7a4aa5b09945
{ "language": "C#" }
```c# using UnityEngine; using System.Collections.Generic; using System; [RequireComponent(typeof(RoomGenerator))] public class MainRoomSelector : MonoBehaviour { public float aboveMeanWidthFactor = 1.25f; public float aboveMeanLengthFactor = 1.25f; [HideInInspector] public List<Room> mainRooms; [HideInInspect...
```c# using UnityEngine; using System.Collections.Generic; using System; [RequireComponent(typeof(RoomGenerator))] public class MainRoomSelector : MonoBehaviour { public float aboveMeanWidthFactor = 1.25f; public float aboveMeanLengthFactor = 1.25f; [HideInInspector] public List<Room> mainRooms; [HideInInspect...
9a4b3c06-f67c-48ba-9075-dd6c7d3b4e2d
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Mollie.Api.Models.Order { public class OrderRefundRequest { /// <summary> /// An array of objects containing the order line details you want to create a refund for. If you send /// an empty array, the entire order will be refunded. ...
```c# using System.Collections.Generic; namespace Mollie.Api.Models.Order { public class OrderRefundRequest { /// <summary> /// An array of objects containing the order line details you want to create a refund for. If you send /// an empty array, the entire order will be refunded. ...
c621e421-b84b-4c4a-bfc9-7f78f5571f44
{ "language": "C#" }
```c# namespace TraktApiSharp.Example.UWP { using Services.SettingsServices; using System.Threading.Tasks; using Template10.Controls; using Windows.ApplicationModel.Activation; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; [Bindable] sealed partial class App : Template10.Common.Boo...
```c# namespace TraktApiSharp.Example.UWP { using Services.SettingsServices; using Services.TraktService; using System.Threading.Tasks; using Template10.Controls; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.UI.Xaml; using Windows.UI.Xaml.Data;...
424a262f-d1ce-4742-9019-1577fef06acc
{ "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.Collections.Specialized; namespace CefSharp { public interface IRequest { string Url { get; set; } str...
```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.Collections.Specialized; namespace CefSharp { public interface IRequest { string Url { get; set; } str...
7acdefdd-1997-4777-8bc0-6414b005dc5d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using live.asp.net.Data; using live.asp.net.Services; using live.asp.net.ViewModels; using Microsoft.AspNet.Authorization; using Microsoft.AspNet.Mvc; using Microsoft.Data.Entity; namespace live.asp.net.Controllers ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using live.asp.net.Data; using live.asp.net.Services; using live.asp.net.ViewModels; using Microsoft.AspNet.Authorization; using Microsoft.AspNet.Mvc; using Microsoft.Data.Entity; namespace live.asp.net.Controllers ...
3be54806-f01b-480a-8e37-e2812f15b95a
{ "language": "C#" }
```c# using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace T4TS.Tests { [TestClass] public class MemberOutputAppenderTests { [TestMethod] public void MemberOutputApp...
```c# using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace T4TS.Tests { [TestClass] public class MemberOutputAppenderTests { [TestMethod] public void TypescriptVersi...
b376d506-2a51-4d0d-92e7-fb043effe066
{ "language": "C#" }
```c# namespace TestMoya.Runner.Runners { using System; using System.Reflection; using System.Threading; using Moq; using Moya.Models; using Moya.Runner.Runners; using Xunit; public class TimerDecoratorTests { private readonly Mock<ITestRunner> testRunnerMock; priva...
```c# namespace TestMoya.Runner.Runners { using System; using System.Reflection; using Moq; using Moya.Attributes; using Moya.Models; using Moya.Runner.Runners; using Xunit; public class TimerDecoratorTests { private readonly Mock<ITestRunner> testRunnerMock; privat...
60f6ba81-5b48-4c0d-a97e-a38fe4afda22
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using CupCake.Protocol; namespace CupCake.Client.Settings { public class Settings { public Settings() : this(false) { } public Settings(bool isNew) { this.Accounts = new List<Account>(); ...
```c# using System; using System.Collections.Generic; using CupCake.Protocol; namespace CupCake.Client.Settings { public class Settings { public Settings() : this(false) { } public Settings(bool isNew) { this.Accounts = new List<Account>(); ...
436c8b76-3662-4d09-9c1c-a64d7e32f6e6
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("DNSAgent")] [assembly: AssemblyDes...
```c# using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("DNSAgent")] [assembly: AssemblyDes...
e2919fa4-ce4d-43f7-9e68-924c228ac82f
{ "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; using osu.Framework.Platform; using osu.Game.Graphics; 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 osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Platform; using osu.Game.Graphics; using...
56baac4a-d5a4-4c55-9831-1703284785e9
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using CK.Glouton.Lucene; using Microsoft.AspNetCore.Mvc; namespace CK.Glouton.Web.Controllers { [Route("api/stats")] public class StatisticsController : Controller { LuceneStatistics luceneStatis...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using CK.Glouton.Lucene; using CK.Glouton.Model.Lucene; using Microsoft.AspNetCore.Mvc; namespace CK.Glouton.Web.Controllers { [Route("api/stats")] public class StatisticsController : Controller { ...
c95c6e09-fd4f-4d2d-b076-11d0960ee2c2
{ "language": "C#" }
```c# using NSubstitute; using Ploeh.AutoFixture.Xunit; using TeamCityApi.Domain; using TeamCityConsole.Tests.Helpers; using TeamCityConsole.Utils; using Xunit.Extensions; namespace TeamCityConsole.Tests.Utils { public class FileDownloaderTests { [Theory] [AutoNSubstituteData] public v...
```c# using NSubstitute; using Ploeh.AutoFixture.Xunit; using TeamCityApi.Domain; using TeamCityConsole.Tests.Helpers; using TeamCityConsole.Utils; using Xunit.Extensions; namespace TeamCityConsole.Tests.Utils { public class FileDownloaderTests { [Theory] [AutoNSubstituteData] public v...
64903b2c-e6da-49d2-b941-2d77176f8a8b
{ "language": "C#" }
```c# using System.ComponentModel; using DesktopWidgets.Classes; namespace DesktopWidgets.Widgets.Search { public class Settings : WidgetSettingsBase { public Settings() { Width = 150; } [Category("General")] [DisplayName("Base URL")] public string ...
```c# using System.ComponentModel; using DesktopWidgets.Classes; namespace DesktopWidgets.Widgets.Search { public class Settings : WidgetSettingsBase { public Settings() { Width = 150; } [Category("General")] [DisplayName("URL Prefix")] public strin...
1ac1ec53-747e-42f6-9df9-deaaa2bdc8c5
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public class TriggerSound : MonoBehaviour { public string tagName1=""; public string tagName2 = ""; public AudioClip triggerSound; public float soundVolume = 1.0f; private AudioSource triggerAudioSource; void Awake() { InitSound(o...
```c# using UnityEngine; using System.Collections; public class TriggerSound : MonoBehaviour { public string tagName1 = ""; public string tagName2 = ""; public AudioClip triggerSound; public float soundVolume = 1.0f; private AudioSource triggerAudioSource; void Awake() { InitSound(out ...
df0e4a09-f9e3-4a9c-b26a-599c723b870d
{ "language": "C#" }
```c# // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ using System.Management.Automation.Host; using System.Xml.Schema; using Pash.Implementation; namespace System.Management.Automation.Internal { public abstract class InternalCommand { internal CommandI...
```c# // Copyright (C) Pash Contributors. License: GPL/BSD. See https://github.com/Pash-Project/Pash/ using System.Management.Automation.Host; using System.Xml.Schema; using Pash.Implementation; namespace System.Management.Automation.Internal { public abstract class InternalCommand { internal CommandI...
72573ea0-09bd-4207-949d-b4b28de0916a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using RepoZ.Api.IO; namespace RepoZ.Api.Mac { public class MacPathActionProvider : IPathActionProvider { public IEnumerable<PathAction> GetFor(string path) { yield return createPathAction("Open", "nil"); } private PathAction createPathAction(string n...
```c# using System.Diagnostics; using System.Collections.Generic; using RepoZ.Api.IO; namespace RepoZ.Api.Mac { public class MacPathActionProvider : IPathActionProvider { public IEnumerable<PathAction> GetFor(string path) { yield return createDefaultPathAction("Open in Finder", path); } private PathActi...
16bdafb6-674d-4728-b66b-83c56c0065ff
{ "language": "C#" }
```c# namespace Nancy.AttributeRouting { using System; using System.Reflection; /// <summary> /// The View attribute indicates the view path to render from request. /// </summary> /// <example> /// The following code will render <c>View/index.html</c> with routing instance. /// <code> ...
```c# namespace Nancy.AttributeRouting { using System; using System.Reflection; /// <summary> /// The View attribute indicates the view path to render from request. /// </summary> /// <example> /// The following code will render <c>View/index.html</c> with routing instance. /// <code> ...
7e6e048b-b52d-44c4-bc76-bd77936f8f03
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Im...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Im...
051cfe61-7495-4c4a-b6fd-50c1f4cdab93
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using AgateLib; namespace Tests { class Launcher { [STAThread] public static void Main(string[] args) { AgateFileProvider.Assemblies.AddPath("../Drivers"); AgateFileProv...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using AgateLib; namespace Tests { class Launcher { [STAThread] public static void Main(string[] args) { AgateFileProvider.Images.AddPath("Data"); Application.EnableVis...
5c8b43c3-5c73-46bc-bd00-4eed54268b22
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace Schedutalk.Logic { class HttpRequestor { public async Task<string> getHttpRequestAsString(Func<string, HttpRequestMessage> requestTask, string inpu...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace Schedutalk.Logic { class HttpRequestor { public async Task<string> getHttpRequestAsString(Func<string, HttpRequestMessage> requestTask, string inpu...
960cf93c-fbd0-4536-9f27-94cb94426f97
{ "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.Net.Http { /// <summary> /// Defines default values for http handler properties which is meant to be re-used across WinHttp & UnixHttp Ha...
```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.Net.Http { /// <summary> /// Defines default values for http handler properties which is meant to be re-used across WinHttp and UnixHttp ...
4bdd3a71-f026-495a-a7a3-70278d526bc7
{ "language": "C#" }
```c# //****************************************************************************************************** // Setting.cs - Gbtc // // Copyright © 2021, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // t...
```c# //****************************************************************************************************** // Setting.cs - Gbtc // // Copyright © 2021, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // t...
dfb0fa2b-b977-4caa-a4eb-d4c1815aa1be
{ "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 osu.Framework.Configuration; using osu.Game.Rulesets.Mania.Configuration; using osu.Game.Rulesets.UI.Scrolling; namespace osu.Game.Rulesets.Mania.UI { p...
```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 osu.Framework.Configuration; using osu.Game.Rulesets.Mania.Configuration; using osu.Game.Rulesets.UI.Scrolling; namespace osu.Game.Rulesets.Mania.UI { p...
894bdf66-2415-447f-a834-09baf8678164
{ "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 System; using osu.Game.Rulesets.Osu.Difficulty.Preprocessing; namespace osu.Game.Rulesets.Osu.Difficulty.Skills { /// <summary> /// Represents the ...
```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 System; using osu.Game.Rulesets.Osu.Difficulty.Preprocessing; namespace osu.Game.Rulesets.Osu.Difficulty.Skills { /// <summary> /// Represents the ...
14741a3e-f074-4c6e-b0d2-907a7787d52c
{ "language": "C#" }
```c# using System; using UnityEngine; using System.Collections; public class GroundCheck : MonoBehaviour { public bool IsOnGround { get; private set; } public void OnTriggerEnter(Collider other) { var geometry = other.gameObject.GetComponent<LevelGeometry>(); if (geometry != null) ...
```c# using System; using UnityEngine; using System.Collections; public class GroundCheck : MonoBehaviour { public bool IsOnGround { get; private set; } public void OnTriggerStay(Collider other) { var geometry = other.gameObject.GetComponent<LevelGeometry>(); if (geometry != null) ...
3c1e8039-0e85-4fee-a96a-0c4cab244420
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using osu.Framework.Platform; using osu.Game.Database; namespace osu.G...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using osu.Framework.Platform; using osu.Game.Database; namespace osu.G...
ced1e394-29ec-412a-a915-c385b384c238
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using osu.Framework.Allocation; using osu.Game.Rulesets; using osu.Game.Screens.Edit; using osu.Game.Tests.Beatmaps...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using osu.Framework.Allocation; using osu.Game.Rulesets; using osu.Game.Screens.Edit; using osu.Game.Tests.Beatmaps...
87268c8e-611b-4d23-8b3d-7767e5f27039
{ "language": "C#" }
```c# // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; using Microsoft.AspNetCore.Routin...
```c# // Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved. // The Apache v2. See License.txt in the project root for license information. using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Routing; using Microsoft.AspNetCore.Routin...
21ef8863-71f4-49d6-a6fa-fc7d6acca1b3
{ "language": "C#" }
```c# using System; namespace StateMechanic { /// <summary> /// Exception thrown when a transition could not be created from a state on an event, because the state and event do not belong to the same state machine /// </summary> public class InvalidEventTransitionException : Exception { //...
```c# using System; namespace StateMechanic { /// <summary> /// Exception thrown when a transition could not be created from a state on an event, because the state and event do not belong to the same state machine /// </summary> public class InvalidEventTransitionException : Exception { //...
9d0e0490-4164-4136-8078-07070bf5bb2a
{ "language": "C#" }
```c# using System.IO; using System.Linq; using FluentAssertions; using NUnit.Framework; using SlothUnitParser; /* TODO */ namespace SlothUnit.Parser.Test { [TestFixture] class ClangWrapperShould : FileSystemTest { [Test] public void retrieve_the_name_of_a_cursor() { var filePath = Path.Combine(TestPr...
```c# using System.IO; using System.Linq; using ClangSharp; using FluentAssertions; using NUnit.Framework; using SlothUnitParser; /* TODO */ namespace SlothUnit.Parser.Test { [TestFixture] class ClangWrapperShould : FileSystemTest { private CXCursor ClassCursor { get; set; } private string FilePath { get; ...
bd6060a4-9831-41bc-9124-48a07de13172
{ "language": "C#" }
```c# using System; using System.Linq; using Android.App; using Android.OS; using Android.Views; using Android.Widget; using Toggl.Joey.UI.Adapters; namespace Toggl.Joey.UI.Fragments { public class LogTimeEntriesListFragment : ListFragment { public override void OnViewCreated (View view, Bundle savedI...
```c# using System; using System.Linq; using Android.App; using Android.OS; using Android.Views; using Android.Widget; using Toggl.Joey.UI.Adapters; namespace Toggl.Joey.UI.Fragments { public class LogTimeEntriesListFragment : ListFragment { public override void OnViewCreated (View view, Bundle savedI...
0319073d-5b72-4703-9188-89091fa47902
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Cosmos.Build.Common; using Cosmos.TestRunner.Core; namespace Cosmos.TestRunner.Full { public class DefaultEngineConfiguration : IEngineConfiguration { public virtual int AllowedSecondsInKernel => 6000; public virtual IEnumerable<Run...
```c# using System; using System.Collections.Generic; using Cosmos.Build.Common; using Cosmos.TestRunner.Core; namespace Cosmos.TestRunner.Full { public class DefaultEngineConfiguration : IEngineConfiguration { public virtual int AllowedSecondsInKernel => 6000; public virtual IEnumerable<Run...
bd12f5c3-e672-4784-a477-cc6daae0d18f
{ "language": "C#" }
```c# using System; using System.Diagnostics; using System.Globalization; namespace Octokit { /// <summary> /// Describes a new deployment key to create. /// </summary> [DebuggerDisplay("{DebuggerDisplay,nq}")] public class NewDeployKey { public string Title { get; set; } publ...
```c# using System; using System.Diagnostics; using System.Globalization; namespace Octokit { /// <summary> /// Describes a new deployment key to create. /// </summary> [DebuggerDisplay("{DebuggerDisplay,nq}")] public class NewDeployKey { public string Title { get; set; } publ...
91b578a8-cd7b-47cd-ab36-971dd90302c4
{ "language": "C#" }
```c# using System.Linq; using System.ServiceModel.Syndication; namespace Firehose.Web.Extensions { public static class SyndicationItemExtensions { public static bool ApplyDefaultFilter(this SyndicationItem item) { if (item == null) return false; var has...
```c# using System.Linq; using System.ServiceModel.Syndication; namespace Firehose.Web.Extensions { public static class SyndicationItemExtensions { public static bool ApplyDefaultFilter(this SyndicationItem item) { if (item == null) return false; var has...
7fcf3f9d-0ac9-4b2b-8814-96ab8952d675
{ "language": "C#" }
```c# using SkiResort.XamarinApp.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace SkiResort.XamarinApp { public static class Config { public const string API_URL = "__SERVERURI__/api"; p...
```c# using SkiResort.XamarinApp.Entities; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace SkiResort.XamarinApp { public static class Config { public const string API_URL = "__SERVERURI__"; publi...
9ea21164-639e-4112-bb58-1b32e10a19ba
{ "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; ...
30ba2867-9e8e-4ca9-996f-8d9482072dfd
{ "language": "C#" }
```c# @{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@wech...
```c# @{ ViewBag.Title = "Contact"; } <h2>@ViewBag.Title.</h2> <h3>@ViewBag.Message</h3> <address> One Microsoft Way<br /> Redmond, WA 98052-6399<br /> <abbr title="Phone">P:</abbr> 425.555.0100 </address> <address> <strong>Support:</strong> <a href="mailto:Support@example.com">Support@wech...
71901d4a-ba5f-4c0d-99cd-025c98d2295c
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using CommandLine.OptParse; using Sep.Git.Tfs.Core; using Sep.Git.Tfs.Core.TfsInterop; using StructureMap; namespace Sep.Git.Tfs.Commands { [Pluggable("unshelve")] [Description("unshelve [options] (-l | shelv...
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Text.RegularExpressions; using CommandLine.OptParse; using Sep.Git.Tfs.Core; using StructureMap; namespace Sep.Git.Tfs.Commands { [Pluggable("unshel...
558d49e8-c9ab-4921-8706-bf0295dfe0f7
{ "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.Collections.Generic; using System.Linq; using osu.Game.Beatmaps; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Edit.Checks.Components; using os...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using osu.Game.Beatmaps; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Edit.Checks.Components; using os...
caa9ca0c-f5c7-451e-870c-7a40df1f2fbb
{ "language": "C#" }
```c# #load nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease Environment.SetVariableNames(); BuildParameters.SetParameters(context: Context, buildSystem: BuildSystem, sourceDirectoryPath: "./", title: "...
```c# #load nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease Environment.SetVariableNames(); BuildParameters.SetParameters(context: Context, buildSystem: BuildSystem, sourceDirectoryPath: Context.Environment.WorkingDirectory, ...
5fc132bd-8728-4d54-96bc-f88e9c7dfb85
{ "language": "C#" }
```c# using System; namespace xFunc.Library.Maths.Expressions { public class AssignMathExpression : IMathExpression { private VariableMathExpression variable; private IMathExpression value; public AssignMathExpression() : this(null, null) { } pu...
```c# using System; namespace xFunc.Library.Maths.Expressions { public class AssignMathExpression : IMathExpression { private VariableMathExpression variable; private IMathExpression value; public AssignMathExpression() : this(null, null) { } pu...
2e1b3ef4-bcbc-430c-81d6-9324a9f59c58
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq.Expressions; namespace LiteNetLibManager.Utils { public class Reflection { private static readonly Dictionary<string, ObjectActivator> objectActivators = new Dictionary<string, ObjectActivator>(); private static string tem...
```c# using System; using System.Collections.Generic; using System.Linq.Expressions; namespace LiteNetLibManager.Utils { public class Reflection { private static readonly Dictionary<string, ObjectActivator> objectActivators = new Dictionary<string, ObjectActivator>(); private static string tem...
b7bd8ded-5f17-4172-8d81-7ed8f5874131
{ "language": "C#" }
```c# using System.Linq; using NUnit.Framework; namespace Ploeh.AutoFixture.NUnit3.UnitTest { [TestFixture] public class DependencyConstraints { [TestCase("Moq")] [TestCase("Rhino.Mocks")] public void AutoFixtureNUnit3DoesNotReference(string assemblyName) { // F...
```c# using System.Linq; using NUnit.Framework; namespace Ploeh.AutoFixture.NUnit3.UnitTest { [TestFixture] public class DependencyConstraints { [TestCase("FakeItEasy")] [TestCase("Foq")] [TestCase("FsCheck")] [TestCase("Moq")] [TestCase("NSubstitute")] [Tes...