doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
7b773e7f-cefc-451c-bac5-202d5dc2582e
{ "language": "C#" }
```c# using System.ComponentModel.DataAnnotations; namespace BatteryCommander.Common.Models { public enum Rank { [Display(Name = "PVT")] E1 = 1, [Display(Name = "PV2")] E2 = 2, [Display(Name = "PFC")] E3 = 3, [Display(Name = "SPC")] E4 = 4, ...
```c# using System.ComponentModel.DataAnnotations; namespace BatteryCommander.Common.Models { public enum Rank { [Display(Name = "PVT")] E1 = 1, [Display(Name = "PV2")] E2 = 2, [Display(Name = "PFC")] E3 = 3, [Display(Name = "SPC")] E4 = 4, ...
0567770c-8fb0-45be-bf62-0bf844a4f005
{ "language": "C#" }
```c# using System.Reflection; [assembly: AssemblyCompany("Immo Landwerth")] [assembly: AssemblyProduct("NuProj")] [assembly: AssemblyCopyright("Copyright © Immo Landwerth")] [assembly: AssemblyTrademark("")] [assembly : AssemblyMetadata("PreRelease", "Beta")] [assembly : AssemblyMetadata("ProjectUrl", "http://nupro...
```c# using System.Reflection; [assembly: AssemblyCompany("Immo Landwerth")] [assembly: AssemblyProduct("NuProj")] [assembly: AssemblyCopyright("Copyright © Immo Landwerth")] [assembly: AssemblyTrademark("")] [assembly : AssemblyMetadata("PreRelease", "Beta")] [assembly : AssemblyMetadata("ProjectUrl", "http://githu...
a9db13df-d165-446a-90ed-31d370bd36bb
{ "language": "C#" }
```c# using System.Reflection; using Castle.MicroKernel.Registration; using Castle.MicroKernel.Resolvers.SpecializedResolvers; using Castle.MicroKernel.SubSystems.Configuration; using Castle.Windsor; namespace AppHarbor { public class AppHarborInstaller : IWindsorInstaller { public void Install(IWindsorContainer ...
```c# using System.Reflection; using Castle.MicroKernel.Registration; using Castle.MicroKernel.Resolvers.SpecializedResolvers; using Castle.MicroKernel.SubSystems.Configuration; using Castle.Windsor; namespace AppHarbor { public class AppHarborInstaller : IWindsorInstaller { public void Install(IWindsorContainer ...
73fdc460-6aaa-49af-89ad-08aa48cf6928
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using System.Net.Http.Formatting; using Umbraco.Core; using Umbraco.Web.Models.Trees; using Umbraco.Web.WebApi.Filters; namespace Umbraco.Web.Trees { [CoreTree(TreeGroup =Constants.Trees.Groups.Settings)] [UmbracoTreeAuthorize(Constants.Trees.MemberTy...
```c# using System.Collections.Generic; using System.Linq; using System.Net.Http.Formatting; using Umbraco.Core; using Umbraco.Web.Models.Trees; using Umbraco.Web.WebApi.Filters; namespace Umbraco.Web.Trees { [CoreTree(TreeGroup = Constants.Trees.Groups.Settings)] [UmbracoTreeAuthorize(Constants.Trees.MemberT...
12894359-bada-4e53-808f-22749c798399
{ "language": "C#" }
```c# using CupCake.Command; using CupCake.Command.Source; using CupCake.Permissions; using CupCake.Players; namespace CupCake.DefaultCommands.Commands.User { public sealed class KickCommand : UserCommandBase { [MinGroup(Group.Trusted)] [Label("kick", "kickplayer")] [CorrectUsage("[pla...
```c# using System.Runtime.InteropServices; using CupCake.Command; using CupCake.Command.Source; using CupCake.Permissions; using CupCake.Players; namespace CupCake.DefaultCommands.Commands.User { public sealed class KickCommand : UserCommandBase { [MinGroup(Group.Trusted)] [Label("kick", "kic...
69ebe4a1-8eff-43ea-b0aa-911bfc77f476
{ "language": "C#" }
```c# using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Text; namespace IntelliTect.Coalesce.Tests.TargetClasses.TestDbContext { [Coalesce] public class TestDbContext : DbContext { public DbSet<Person> People { get; set; } public DbSet<Case> ...
```c# using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Diagnostics; using System; using System.Collections.Generic; using System.Text; namespace IntelliTect.Coalesce.Tests.TargetClasses.TestDbContext { [Coalesce] public class TestDbContext : DbContext { public DbSet<Person>...
10e88f6b-7721-473d-bfce-82545f09e880
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.ComponentModel.Design; using System.Diagnostics; using Microsoft.VisualStudio.R.Package.Commands; using Microsoft.VisualStudio.R.Pac...
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.ComponentModel.Design; using System.Diagnostics; using Microsoft.VisualStudio.R.Package.Commands; using Microsoft.VisualStudio.R.Pac...
7dd883be-84d0-4278-9a39-34f7de83f64d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.Xml.Serialization; namespace Pequot { [XmlRoot("settings")] public class SerializableSettings : Dictionary<string, string>, IXmlSerializable { #region IXmlSe...
```c# using System; using System.Collections.Generic; using System.Xml; using System.Xml.Serialization; namespace Pequot { [XmlRoot("settings")] public class SerializableSettings : Dictionary<string, string>, IXmlSerializable { #region IXmlSerializable Members public Syst...
c05b3211-d076-445d-b7ce-67928d5b1652
{ "language": "C#" }
```c# namespace Nine.Application.WindowsStore.Test { using System; using System.Reflection; using Windows.UI.Xaml.Controls; using Xunit; using Xunit.Abstractions; public sealed partial class MainPage : Page, IMessageSink { public MainPage() { InitializeComponent...
```c# namespace Nine.Application.WindowsStore.Test { using System; using System.Reflection; using Windows.UI.Xaml.Controls; using Xunit; using Xunit.Abstractions; public sealed partial class MainPage : Page, IMessageSink { public MainPage() { InitializeComponent...
109f9e04-8b23-4d3f-a750-7f6300b2de0e
{ "language": "C#" }
```c# using Xunit; using System.Globalization; using System.Threading; namespace CronExpressionDescriptor.Test.Support { public abstract class BaseTestFormats { protected virtual string GetLocale() { return "en-US"; } protected string GetDescription(st...
```c# using Xunit; using System.Globalization; using System.Threading; namespace CronExpressionDescriptor.Test.Support { public abstract class BaseTestFormats { protected virtual string GetLocale() { return "en-US"; } protected string GetDescription(string expressi...
ccecc674-20e9-4e0a-8d09-9dc8393605ed
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public class Trampoline : MonoBehaviour { public float velocityX; public float velocityY; public Input button; void OnTriggerStay2D(Collider2D other) { if (other.gameObject.tag == "Player") { if(button){ other.rigidbody2D.AddForce(new Vector2(velocity...
```c# using UnityEngine; using System.Collections; public class Trampoline : MonoBehaviour { public float velocityX; public float velocityY; void OnTriggerStay2D(Collider2D other) { if (other.gameObject.tag == "Player") { other.rigidbody2D.AddForce(new Vector2(velocityX,velocityY)); //other.rigidbody2D.v...
9d5f1919-d486-4746-9063-210674cf25aa
{ "language": "C#" }
```c# using System; using Microsoft.SPOT; using MicroTweet; using System.Net; using System.Threading; namespace SampleApplication { public class Program { public static void Main() { // Wait for DHCP while (IPAddress.GetDefaultLocalAddress() == IPAddress.Any) ...
```c# using System; using Microsoft.SPOT; using MicroTweet; using System.Net; using System.Threading; namespace SampleApplication { public class Program { public static void Main() { // Wait for DHCP while (IPAddress.GetDefaultLocalAddress() == IPAddress.Any) ...
5edb851e-8a95-4948-959e-b0a328fbbeed
{ "language": "C#" }
```c# using System; using System.ComponentModel; using Ooui.Forms.Extensions; using Xamarin.Forms; namespace Ooui.Forms.Renderers { public class ScrollViewRenderer : ViewRenderer<ScrollView, Div> { protected override void OnElementChanged (ElementChangedEventArgs<ScrollView> e) { b...
```c# using System; using System.ComponentModel; using Ooui.Forms.Extensions; using Xamarin.Forms; namespace Ooui.Forms.Renderers { public class ScrollViewRenderer : VisualElementRenderer<ScrollView> { bool disposed = false; protected override void OnElementChanged (ElementChangedEventArgs<Sc...
ff1c9c59-242e-43d6-a3e9-346f251ac2b5
{ "language": "C#" }
```c# using System; using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Autofac.Extras.Multitenant")] [assembly: AssemblyDescription("Autofac multitenancy support library.")] [assembly: ComVisible(false)]``` Build script now writes the package name and version into the Asse...
```c# using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Autofac.Extras.Multitenant")] [assembly: ComVisible(false)]```
1f578dca-0ab8-4a15-8686-03334f88fbab
{ "language": "C#" }
```c# using System.Web.Http.Controllers; using System.Web.Http.ModelBinding; using WebAPI.API.ModelBindings.Providers; namespace WebAPI.API { public class ModelBindingConfig { public static void RegisterModelBindings(ServicesContainer services) { services.Add(typeof (ModelBinderPro...
```c# using System.Web.Http.Controllers; using System.Web.Http.ModelBinding; using WebAPI.API.ModelBindings.Providers; namespace WebAPI.API { public class ModelBindingConfig { public static void RegisterModelBindings(ServicesContainer services) { services.Add(typeof (ModelBinderPro...
ef387ef6-da31-4b29-bd1c-c2cd68328de0
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudio.Editor; using Microsoft.VisualStu...
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudio.Editor; using Microsoft.VisualStu...
f2cf49cf-747f-4ca3-aca7-5ba3ad0ee28e
{ "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.Graphics.Shapes; using osu.Game.Rulesets....
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.S...
269ad338-0a37-41e4-a1d4-2ad85b2557cb
{ "language": "C#" }
```c# using System; using System.Collections.Generic; namespace Fixie { public class ClassExecution { public ClassExecution(ExecutionPlan executionPlan, Type testClass, CaseExecution[] caseExecutions) { ExecutionPlan = executionPlan; TestClass = testClass; C...
```c# using System; using System.Collections.Generic; namespace Fixie { public class ClassExecution { public ClassExecution(ExecutionPlan executionPlan, Type testClass, IReadOnlyList<CaseExecution> caseExecutions) { ExecutionPlan = executionPlan; TestClass = testClass; ...
9430bd8f-59c0-4dcb-beb5-d6d0d143e4f4
{ "language": "C#" }
```c# using System; using RSB; using RSB.Diagnostics; using RSB.Transports.RabbitMQ; namespace SampleDiscoverableModule { class Program { static void Main(string[] args) { var bus = new Bus(RabbitMqTransport.FromConfigurationFile()); var diagnostics = new BusDiagnostic...
```c# using System; using System.Threading; using RSB; using RSB.Diagnostics; using RSB.Transports.RabbitMQ; namespace SampleDiscoverableModule { class Program { static void Main(string[] args) { var bus = new Bus(RabbitMqTransport.FromConfigurationFile()); bus.UseBusD...
164d0d1c-b7ad-48e2-95d8-4a42ece396fe
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Windows.Input; using AudioSharp.Utils; using Newtonsoft.Json; namespace AudioSharp.Config { public class ConfigHandler { public static void SaveConfig(Configuration config) { string json = JsonConver...
```c# using System; using System.Collections.Generic; using System.IO; using System.Windows.Input; using AudioSharp.Utils; using Newtonsoft.Json; namespace AudioSharp.Config { public class ConfigHandler { public static void SaveConfig(Configuration config) { string json = JsonConver...
4d038892-798b-4896-b586-e18dbe27c96c
{ "language": "C#" }
```c# using JoinRpg.Domain; using JoinRpg.Services.Interfaces; using JoinRpg.TestHelpers; using JoinRpg.Web.Models; using Xunit; namespace JoinRpg.Web.Test { public class EnumTests { [Fact] public void ProblemEnum() { EnumerationTestHelper.CheckEnums<UserExtensions.AccessRe...
```c# using JoinRpg.Domain; using JoinRpg.Services.Interfaces; using JoinRpg.TestHelpers; using JoinRpg.Web.Models; using Xunit; namespace JoinRpg.Web.Test { public class EnumTests { [Fact] public void AccessReason() => EnumerationTestHelper.CheckEnums<UserExtensions.AccessReason, AccessReason...
47cdff25-8da1-414f-b82f-2b3d2ed7750c
{ "language": "C#" }
```c# using System; using System.Net; namespace BmpListener.Bgp { public class IPAddrPrefix { public IPAddrPrefix(byte[] data, int offset, AddressFamily afi = AddressFamily.IP) { DecodeFromBytes(data, offset, afi); } internal int ByteLength { get { return 1 + (Leng...
```c# using System; using System.Linq; using System.Net; namespace BmpListener.Bgp { public class IPAddrPrefix { // RFC 4721 4.3 // The Type field indicates the length in bits of the IP address prefix. public int Length { get; private set; } public IPAddress Prefix { get; priva...
f7800527-9cc8-4eb8-bc20-4cceddc192ec
{ "language": "C#" }
```c# @{ ViewData["Title"] = "Data sources"; } <h2>@ViewData["Title"]</h2> <h3>@ViewData["Message"]</h3> ``` Add FutureEmployment to data sources.
```c# @{ ViewData["Title"] = "Data sources"; } <h2>@ViewData["Title"]</h2> <h3>@ViewData["Message"]</h3> http://www.oxfordmartin.ox.ac.uk/downloads/academic/The_Future_of_Employment.pdf ```
02fd0dc6-7c08-4742-8b3f-692823eac81f
{ "language": "C#" }
```c# @{ Layout = null; @using ISWebTest.ExtensionMethods; @using ISWebTest.Controllers; } <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title></title> </head> <body> <div> <a href="@{Url.Action<HomeController>(nameof(HomeController.Analyze))}">TEST<...
```c#  @using ISWebTest.ExtensionMethods; @using ISWebTest.Controllers; <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title></title> </head> <body> <div> <a href="@(Url.Action<HomeController>(nameof(HomeController.Analyze)))">TEST</a> </div> </body> </html> ...
bf9bd5ba-3683-4204-9357-d00531770d92
{ "language": "C#" }
```c# using IFVM.Core; namespace IFVM.Execution { public partial class Interpreter { public static uint Execute(Function function) { return 0; } } } ``` Add interpreter with skeleton game loop
```c# using System; using IFVM.Ast; using IFVM.Collections; using IFVM.Core; using IFVM.FlowAnalysis; namespace IFVM.Execution { public partial class Interpreter { public static uint Execute(Function function, Machine machine) { var cfg = ControlFlowGraph.Compute(function.Body); ...
4db8ab36-637d-4a98-8ba4-a419a78c708b
{ "language": "C#" }
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.AspNet.Http; using Microsoft.Framework.DependencyInjection; using Microsoft.Framew...
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.AspNet.Http; using Microsoft.Framework.DependencyInjection; using Microsoft.Framew...
2d041e3a-9e2c-41f8-9121-eb9e6d06bf34
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Dbot.Utility { public static class Settings { public const int MessageLogSize = 200; // aka context size public static readonly TimeSpan UserCommandInterval = TimeSpan.FromSeco...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Dbot.Utility { public static class Settings { public const int MessageLogSize = 200; // aka context size public static readonly TimeSpan UserCommandInterval = TimeSpan.FromSeco...
f76d04a4-d48a-413d-90a3-a0112bd3c2b1
{ "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.Screens; using osu.Game.Overlays.FirstRunSetup; namespace osu.Game.Tests.Visual.UserInterface { public class TestSceneFirstRunScreenUIScale...
```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.Screens; using osu.Game.Overlays; using osu.Game.Overlays.FirstRunSetup; namespace osu.Game.Tests.Visual.UserIn...
6488edf8-ae59-4a2a-b893-de3b38f95817
{ "language": "C#" }
```c# using Xunit; namespace Farity.Tests { public class AlwaysTests { [Fact] public void AlwaysReturnsAFunctionThatReturnsTheSameValueAlways() { var answerToLifeUniverseAndEverything = F.Always(42); var answer = answerToLifeUniverseAndEverything(); ...
```c# using Xunit; namespace Farity.Tests { public class AlwaysTests { [Fact] public void AlwaysReturnsAFunctionThatReturnsTheSameValueAlways() { const int expected = 42; var answerToLifeUniverseAndEverything = F.Always(expected); Assert.Equal(expect...
d22b5797-0e4c-40e9-869d-fc0994f9d407
{ "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.Graphics; using osu.Game.Beatmaps; using osu.Game.Online.API; using osu.Game.Online.API.Requests; using osu.Gam...
```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 System.Collections.Generic; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Beatmaps; using osu.Game.Online.API; u...
7b1b15ee-e2a5-4bfb-a443-ab96cdd59fda
{ "language": "C#" }
```c# #region (c) 2010-2011 Lokad - CQRS for Windows Azure - New BSD License // Copyright (c) Lokad 2010-2011, http://www.lokad.com // This code is released as Open Source under the terms of the New BSD Licence #endregion using System; using System.IO; using Lokad.Cqrs.Core.Outbox; namespace Lokad.Cqrs.Feature.Fi...
```c# #region (c) 2010-2011 Lokad - CQRS for Windows Azure - New BSD License // Copyright (c) Lokad 2010-2011, http://www.lokad.com // This code is released as Open Source under the terms of the New BSD Licence #endregion using System; using System.IO; using System.Threading; using Lokad.Cqrs.Core.Outbox; namespa...
9f4c0b71-2aa3-4e91-985e-b11f9f5c28f3
{ "language": "C#" }
```c# using System; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace Glimpse.Agent { public class RemoteHttpMessagePublisher : IMessagePublisher, IDisposable { private readonly HttpClient _httpClient; private readonly HttpClientHandler _httpHandler;...
```c# using System; using System.Net.Http; namespace Glimpse.Agent { public class RemoteHttpMessagePublisher : IMessagePublisher, IDisposable { private readonly HttpClient _httpClient; private readonly HttpClientHandler _httpHandler; public RemoteHttpMessagePublisher() { ...
7e81928a-7d51-4284-9cf5-f9e40bb1ebde
{ "language": "C#" }
```c# using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Collections.Generic; using System.IO; namespace AntlrGrammarEditor { public class Grammar { public const string AntlrDotExt = ".g4"; public const string ProjectDotExt = ".age"; public const string LexerPostfix ...
```c# using System.Collections.Generic; namespace AntlrGrammarEditor { public enum CaseInsensitiveType { None, lower, UPPER } public class Grammar { public const string AntlrDotExt = ".g4"; public const string LexerPostfix = "Lexer"; public const st...
0ce1d37b-b118-4d8b-8a1f-0d98d890009d
{ "language": "C#" }
```c# using System; using System.Threading; namespace Lurchsoft.ParallelWorkshop.Ex08DiyReaderWriterLock.PossibleSolution { /// <summary> /// A scary low-level reader-writer lock implementation. /// <para> /// This one does not block, though it does yield. It will spin the CPU until the lock is availa...
```c# using System.Threading; namespace Lurchsoft.ParallelWorkshop.Ex08DiyReaderWriterLock.PossibleSolution { /// <summary> /// A scary low-level reader-writer lock implementation. /// <para> /// This one does not block, though it does yield. It will spin the CPU until the lock is available. However, ...
d976eb7b-b5f3-4362-9825-b5aa82ce0eed
{ "language": "C#" }
```c# using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; [RequireComponent(typeof(GridLayoutGroup))] public class TabletUI : MonoBehaviour, ITablet { public ITabletCell TopLeft { get { return topLeft; } set { to...
```c# using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; [RequireComponent(typeof(GridLayoutGroup))] public class TabletUI : MonoBehaviour, ITablet { public ITabletCell TopLeft { get { return topLeft; } set { to...
30491f2d-5438-4951-9014-5969f428354b
{ "language": "C#" }
```c# using System; namespace Atata { public static class JsonConfigMapper { public static AtataContextBuilder Map<TConfig>(TConfig config, AtataContextBuilder builder) where TConfig : JsonConfig<TConfig> { if (config.BaseUrl != null) builder.UseBaseUrl(...
```c# using System; namespace Atata { public static class JsonConfigMapper { public static AtataContextBuilder Map<TConfig>(TConfig config, AtataContextBuilder builder) where TConfig : JsonConfig<TConfig> { if (config.BaseUrl != null) builder.UseBaseUrl(...
14b9b738-681f-4bf1-bf2c-0b99b6451613
{ "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 NUnit.Framework; using osu.Framework.Allocation; using osu.Game.Beatmaps; using osu.Game.Rulesets.Taiko.Objects; using osu....
```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.Graphics; using osu.Framework.Testing; using osu.Game.Rulesets.Taiko.UI; using osu.Game....
c2ac4b56-c732-4a70-82be-1a03d7d3e01d
{ "language": "C#" }
```c# using Common; using Exporter; using System.Linq; namespace Crayon { // cmdLineFlags = Crayon::RunCbxFlagBuilder(command, buildContext) class RunCbxFlagBuilderWorker : AbstractCrayonWorker { public override CrayonWorkerResult DoWorkImpl(CrayonWorkerResult[] args) { ...
```c# using Common; using Exporter; using System.Linq; namespace Crayon { // cmdLineFlags = Crayon::RunCbxFlagBuilder(command, buildContext) class RunCbxFlagBuilderWorker : AbstractCrayonWorker { public override CrayonWorkerResult DoWorkImpl(CrayonWorkerResult[] args) { ...
5d68f986-5cc7-41f2-8256-3d377e101e1f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Rs317.Sharp { public static class Program { public static async Task Main(string[] args) { try { Console.WriteLine($"RS2 use...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Rs317.Sharp { public static class Program { public static async Task Main(string[] args) { try { Console.WriteLine($"RS2 use...
9874985c-47f0-4186-91f1-a55cf6176849
{ "language": "C#" }
```c# /* ------------------------------------------------------------------------- */ // // Copyright (c) 2010 CubeSoft, 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:...
```c# /* ------------------------------------------------------------------------- */ // // Copyright (c) 2010 CubeSoft, 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:...
41c020c6-bcd3-4fc9-927c-07f4741b4dd2
{ "language": "C#" }
```c# using Flood.Tools.RPCGen; using NUnit.Framework; using System; using System.IO; using System.Reflection; namespace RPCGen.Tests { [TestFixture] class RPCGenTests { [Test] public void MainTest() { string genDirectory = Path.Combine("..", "..", "gen", "RPCGen.Tests...
```c# using Flood.Tools.RPCGen; using NUnit.Framework; using System; using System.IO; using System.Reflection; namespace RPCGen.Tests { [TestFixture] class RPCGenTests { [Test] public void MainTest() { string genDirectory = Path.Combine("..", "..", "gen", "RPCGen.Tests...
3dd7d2b6-2197-4297-b8a0-ff7829dcaffc
{ "language": "C#" }
```c# using Dapper; using System; using System.Collections.Generic; using System.Data; using System.Text; using WordHunt.Data.Connection; namespace WordHunt.Games.Create.Repository { public interface IGameRepository { void SaveGame(string name); } public class GameRepository : IGameRepository...
```c# using Dapper; using System; using System.Collections.Generic; using System.Data; using System.Text; using WordHunt.Data.Connection; namespace WordHunt.Games.Create.Repository { public interface IGameRepository { void SaveGame(string name); } public class GameRepository : IGameRepository...
ad5d2f36-c5cb-428a-acc7-06e7ffa92238
{ "language": "C#" }
```c# using System; using System.Collections.Generic; namespace Elasticsearch.Net { internal static class ErrorCauseExtensions { public static void FillValues(this ErrorCause rootCause, IDictionary<string, object> dict) { if (dict == null) return; if (dict.TryGetValue("reason", out var reason)) rootCause...
```c# using System; using System.Collections.Generic; namespace Elasticsearch.Net { internal static class ErrorCauseExtensions { public static void FillValues(this ErrorCause rootCause, IDictionary<string, object> dict) { if (dict == null) return; if (dict.TryGetValue("reason", out var reason) && reason ...
c138b284-c7f3-4ecf-9592-fb954c142196
{ "language": "C#" }
```c# using System.Collections.Concurrent; namespace CircuitBreaker { public class CircuitBreakerStateStoreFactory { private static ConcurrentDictionary<string, ICircuitBreakerStateStore> _stateStores = new ConcurrentDictionary<string, ICircuitBreakerStateStore>(); internal static...
```c# using System; using System.Collections.Concurrent; namespace CircuitBreaker { public class CircuitBreakerStateStoreFactory { private static ConcurrentDictionary<Type, ICircuitBreakerStateStore> _stateStores = new ConcurrentDictionary<Type, ICircuitBreakerStateStore>(); inter...
549d4af7-9cc1-452f-a2a3-56c7eb8428ce
{ "language": "C#" }
```c# using System; using Mono.Terminal; namespace School.REPL { public class REPL { public REPL() { } public void Run() { Evaluator evaluator = new Evaluator(); LineEditor editor = new LineEditor("School"); Console.WriteLine("Schoo...
```c# using System; using Mono.Terminal; namespace School.REPL { public class REPL { public REPL() { } public void Run() { Evaluator evaluator = new Evaluator(); LineEditor editor = new LineEditor("School"); Console.WriteLine("Schoo...
553b26be-5306-4123-a988-a2703375af24
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; namespace Company.Application1 { public class Program { public static void Main(string[] args) { ...
```c# using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Company.Application1; using IHost host = Host.CreateDefaultBuilder(args) .ConfigureServices(services => { services.AddHostedService<Worker>(); }) .Build(); await host.RunAsync(); ```
2f5197fc-7b08-4d37-afac-d9a7f0feb83b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace elbgb.gameboy.Memory.Mappers { class RomOnly : Cartridge { public RomOnly(CartridgeHeader header, byte[] romData) : base(header, romData) { } ...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace elbgb.gameboy.Memory.Mappers { class RomOnly : Cartridge { public RomOnly(CartridgeHeader header, byte[] romData) : base(header, romData) { } ...
b0cf3a58-80fa-46f0-9fbc-188d18f86471
{ "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.Game.Rulesets.Mania.UI; using osuTK.Graphics; name...
```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.Game.Rulesets.Mania.Beatmaps; using osu.Game.Rulese...
b5ab7ef1-2c56-44ad-8979-f8355057977f
{ "language": "C#" }
```c# using Machine.Specifications; namespace Quarks.Tests { [Subject(typeof(Inflector))] public class When_using_pluralize_for_count { It should_pluralize_when_count_is_greater_than_two = () => "item".PluralizeForCount(2).ShouldEqual("items"); It should_pluralize_when_count_is_zero = () => "...
```c# using Machine.Specifications; namespace Quarks.Tests { [Subject(typeof(Inflector))] class When_using_pluralize_for_count { It should_pluralize_when_count_is_greater_than_two = () => "item".PluralizeForCount(2).ShouldEqual("items"); It should_pluralize_when_count_is_zero = () => "item".P...
6001d683-ed39-42d8-b221-9bc0f2c47660
{ "language": "C#" }
```c# using System; using System.Collections.Generic; namespace Foundatio.Messaging { public interface IMessage { string Type { get; } Type ClrType { get; } byte[] Data { get; } object GetBody(); IReadOnlyDictionary<string, string> Properties { get; } } public class...
```c# using System; using System.Collections.Generic; using System.Diagnostics; namespace Foundatio.Messaging { public interface IMessage { string Type { get; } Type ClrType { get; } byte[] Data { get; } object GetBody(); IReadOnlyDictionary<string, string> Properties { get...
38ee63c7-dd94-4da1-b179-6e894c5c1c83
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; namespace HoloToolkit.Unity { /// <summary> /// A simplified version of the Singleton class which doesn't depend on the Instance be...
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; namespace HoloToolkit.Unity { /// <summary> /// A simplified version of the Singleton class which doesn't depend on the Instance be...
12c7fa37-667a-4411-b520-85b06deb0137
{ "language": "C#" }
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.ComponentModel.Composition; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft....
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Composition; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; namespace Microsoft.VisualStud...
53a97b39-da7f-4ae8-bffa-ad61a7e5caec
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DotNetOpen.PrerenderModule { public static class Constants { #region Const public const string PrerenderIOServiceUrl = "http://service.prerender.io/"; pub...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DotNetOpen.PrerenderModule { public static class Constants { #region Const public const string PrerenderIOServiceUrl = "http://service.prerender.io/"; pub...
65381f7a-728f-44b6-9599-5a44d4d54562
{ "language": "C#" }
```c# using System; namespace Mitternacht.Modules.Verification.Exceptions { public class UserAlreadyVerifyingException : Exception {} public class UserAlreadyVerifiedException : Exception {} public class UserCannotVerifyException : Exception { } //public class Exception : Exception { } } ``` Remove unnecessary c...
```c# using System; namespace Mitternacht.Modules.Verification.Exceptions { public class UserAlreadyVerifyingException : Exception { } public class UserAlreadyVerifiedException : Exception { } public class UserCannotVerifyException : Exception { } } ```
ac0df414-fc6a-4fc3-8b14-727b02bea53d
{ "language": "C#" }
```c# <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> @Styles.Render("~/Content/bootstrap.min.css") </head> <body> <div> @RenderBody() </div> @RenderSection("Scripts", false) ...
```c# <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width" /> <title>@ViewBag.Title</title> @Styles.Render("~/Content/bootstrap.min.css") @Styles.Render("~/Content/bootstrap-responsive.min.css") @Styles.Render("~/bundles/font-awes...
67299e58-eecc-421a-a678-99b475c133a5
{ "language": "C#" }
```c# using System.Reflection; [assembly: AssemblyCompany("Yin-Chun Wang")] [assembly: AssemblyCopyright("Copyright © Yin-Chun Wang 2014")] [assembly: AssemblyVersion(_ModernWPFVersionString.Release)] [assembly: AssemblyFileVersion(_ModernWPFVersionString.Build)] [assembly: AssemblyInformationalVersion(_ModernWPFVer...
```c# using System.Reflection; [assembly: AssemblyCompany("Yin-Chun Wang")] [assembly: AssemblyCopyright("Copyright © Yin-Chun Wang 2014")] [assembly: AssemblyVersion(ModernWPF._ModernWPFVersionString.Release)] [assembly: AssemblyFileVersion(ModernWPF._ModernWPFVersionString.Build)] [assembly: AssemblyInformationalV...
9a18e112-b0d5-48cc-b996-fef1c794dc4f
{ "language": "C#" }
```c# using Devkoes.JenkinsManager.Model.Contract; using Devkoes.JenkinsManager.UI; using Devkoes.JenkinsManager.UI.Views; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; using System; namespace Devkoes.JenkinsManager.VSPackage.ExposedServices { public class VisualStudioWindowHandl...
```c# using Devkoes.JenkinsManager.Model.Contract; using Devkoes.JenkinsManager.UI; using Devkoes.JenkinsManager.UI.Views; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; using System; namespace Devkoes.JenkinsManager.VSPackage.ExposedServices { public class VisualStudioWindowHandl...
2a2736ad-a02e-48f6-8693-c81316dd0c68
{ "language": "C#" }
```c# using UnityEngine; namespace PJEI.Invaders { public class Level : MonoBehaviour { public Alien[] lines; public int width = 11; public int pixelsBetweenAliens = 48; private Alien[] aliens; void Start() { StartCoroutine(InitGame()); } pri...
```c# using UnityEngine; namespace PJEI.Invaders { public class Level : MonoBehaviour { public Alien[] lines; public int width = 11; public int pixelsBetweenAliens = 48; private Alien[] aliens; void Start() { StartCoroutine(InitGame()); } pri...
caa114cd-6c82-46c7-a81c-c4e5127eea44
{ "language": "C#" }
```c# using System; using NUnit.Framework; namespace Cronofy.Test.CronofyEnterpriseConnectAccountClientTests { internal sealed class AuthorizeUser : Base { [Test] public void CanAuthorizeUser() { const string email = "test@cronofy.com"; const string callbackUrl ...
```c# using System; using NUnit.Framework; namespace Cronofy.Test.CronofyEnterpriseConnectAccountClientTests { internal sealed class AuthorizeUser : Base { [Test] public void CanAuthorizeUser() { const string email = "test@cronofy.com"; const string callbackUrl ...
b55cc5bf-ebac-4073-9ec1-f9febb72c8bc
{ "language": "C#" }
```c# using System; using Mongo.Migration.Documents; using Mongo.Migration.Documents.Serializers; using Mongo.Migration.Services.Interceptors; using MongoDB.Bson; using MongoDB.Bson.Serialization; namespace Mongo.Migration.Services.MongoDB { internal class MongoRegistrator : IMongoRegistrator { privat...
```c# using System; using Mongo.Migration.Documents; using Mongo.Migration.Documents.Serializers; using Mongo.Migration.Services.Interceptors; using MongoDB.Bson; using MongoDB.Bson.Serialization; namespace Mongo.Migration.Services.MongoDB { internal class MongoRegistrator : IMongoRegistrator { privat...
e06d4b11-96e3-4edc-8c1a-fcced2387c44
{ "language": "C#" }
```c# using Sitecore.Data; using Sitecore.Data.Fields; using Sitecore.Data.Items; namespace Propeller.Mvc.Model.Adapters { public class Image : IFieldAdapter { public string Url { get; set; } public string Alt { get; set; } public void InitAdapter(Item item, ID propId) { ...
```c# using Sitecore; using Sitecore.Data; using Sitecore.Data.Fields; using Sitecore.Data.Items; namespace Propeller.Mvc.Model.Adapters { public class Image : IFieldAdapter { public string Url { get; set; } public string Alt { get; set; } public void InitAdapter(Item item, ID propId)...
c5f1d2ef-5beb-4ef1-b5c9-00a6856a3a07
{ "language": "C#" }
```c# using System.ComponentModel.DataAnnotations; using System; using asp_net_mvc_localization.Utils; using Newtonsoft.Json.Serialization; namespace asp_net_mvc_localization.Models { public class User { [Required] public string Username { get; set; } [Display] [Required] ...
```c# using System.ComponentModel.DataAnnotations; using System; using asp_net_mvc_localization.Utils; using Newtonsoft.Json.Serialization; namespace asp_net_mvc_localization.Models { public class User { [Required] public string Username { get; set; } [Required] [MyEmailAddres...
24217b12-7203-4a87-a1e4-2a4c4f92fe26
{ "language": "C#" }
```c# using System.Linq; using JabbR.Services; using Nancy; using Nancy.ErrorHandling; using Nancy.ViewEngines; namespace JabbR.Nancy { public class ErrorPageHandler : DefaultViewRenderer, IStatusCodeHandler { private readonly IJabbrRepository _repository; public ErrorPageHandler(IViewFacto...
```c# using System.Text.RegularExpressions; using JabbR.Services; using Nancy; using Nancy.ErrorHandling; using Nancy.ViewEngines; namespace JabbR.Nancy { public class ErrorPageHandler : DefaultViewRenderer, IStatusCodeHandler { private readonly IJabbrRepository _repository; public ErrorPag...
8fcbeb63-77a1-4b0c-a91f-02b733b50b07
{ "language": "C#" }
```c# @inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<dynamic> @{ Layout = "razor-layout.cshtml"; } <h1>You're here based on ther German culture set in HomeModule however the HomeModule only calls return View["CultureView"]. It uses View Location Conventions therefore there must be a file called Cultu...
```c# @inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<dynamic> @{ Layout = "razor-layout.cshtml"; } <h1>You're here based on the German culture set in HomeModule however the HomeModule only calls return View["CultureView"]. It uses View Location Conventions therefore there must be a file called Cultur...
2c24569a-8427-42ac-9482-61293225759e
{ "language": "C#" }
```c# // Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unle...
```c# // Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unle...
530a17eb-3f29-45e3-a060-988585d2b858
{ "language": "C#" }
```c# using NUnit.Framework; using RestSharp; namespace TempoDB.Tests { [TestFixture] public class TempoDBTests { [Test] public void Defaults() { var tempodb = new TempoDB("key", "secret"); Assert.AreEqual("key", tempodb.Key); Assert.AreEqual("se...
```c# using NUnit.Framework; using RestSharp; namespace TempoDB.Tests { [TestFixture] public class TempoDBTests { [Test] public void Defaults() { var tempodb = new TempoDB("key", "secret"); Assert.AreEqual("key", tempodb.Key); Assert.AreEqual("se...
41bf8f1b-6c6b-4335-9955-d451f324ded0
{ "language": "C#" }
```c# using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.IO; namespace StorageAzure.Tests { [TestClass()] public class BlobTests { public Boolean Exist(string fileName) { var container = new BlobContanier().Create(); var blob = container....
```c# using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.IO; namespace StorageAzure.Tests { [TestClass()] public class BlobTests { public Boolean Exist(string fileName) { var container = new BlobContanier().Create(); var blob = container....
c7e7f0f1-4bf8-4fa0-8742-f6eb6b6b6c75
{ "language": "C#" }
```c# namespace SkypeSharp { public enum UserStatus { OnlineStatus, BuddyStatus, ReceivedAuthRequest } public interface IUser : ISkypeObject { string FullName { get; } string Language { get; } string Country { get; } string City { get; } voi...
```c# namespace SkypeSharp { public enum UserStatus { OnlineStatus, BuddyStatus, ReceivedAuthRequest, IsAuthorized, IsBlocked, Timezone, NROF_AUTHED_BUDDIES } public interface IUser : ISkypeObject { string FullName { get; } string Lan...
77845cf9-6e10-4406-a7a5-e86bf7919d48
{ "language": "C#" }
```c# using System; using System.Linq; using Nuke.Common; using Nuke.Common.Tools.MSBuild; using Nuke.Core; using static Nuke.Common.FileSystem.FileSystemTasks; using static Nuke.Common.Tools.MSBuild.MSBuildTasks; using static Nuke.Common.Tools.NuGet.NuGetTasks; using static Nuke.Core.EnvironmentInfo; // ReSharper di...
```c# using System; using System.Linq; using Nuke.Common; using Nuke.Common.Tools.MSBuild; using Nuke.Core; using static Nuke.Common.FileSystem.FileSystemTasks; using static Nuke.Common.Tools.MSBuild.MSBuildTasks; using static Nuke.Common.Tools.NuGet.NuGetTasks; using static Nuke.Core.EnvironmentInfo; class DefaultBu...
59474783-68d9-4c7e-b0dc-6b6e526613dd
{ "language": "C#" }
```c# using System; using Cake.Core.IO; namespace Cake.Core.Scripting.Processors { /// <summary> /// Processor for using statements. /// </summary> public sealed class UsingStatementProcessor : LineProcessor { /// <summary> /// Initializes a new instance of the <see cref="UsingState...
```c# using System; using Cake.Core.IO; namespace Cake.Core.Scripting.Processors { /// <summary> /// Processor for using statements. /// </summary> public sealed class UsingStatementProcessor : LineProcessor { /// <summary> /// Initializes a new instance of the <see cref="UsingState...
0e168ff6-b717-4906-90d7-7568ae4db36f
{ "language": "C#" }
```c# using System; using System.Threading; using FluentAssertions; using Moq; using NUnit.Framework; using PacManGame; namespace PacManGameTests { [TestFixture] public class GameTimerTest { [Test] public void GivenABoard3x4WithPacmanLookingUpAt1x2_When500msPass_ThenPacmanIsAt1x1() ...
```c# using System; using System.Threading; using FluentAssertions; using Moq; using NUnit.Framework; using PacManGame; namespace PacManGameTests { [TestFixture] public class GameTimerTest { [Test] public void GivenABoard3x4WithPacmanLookingUpAt1x2_When500msPass_ThenPacmanIsAt1x1() ...
6be835e9-65ab-4e4a-bf6a-a2e27b0241db
{ "language": "C#" }
```c# using CommandLineParser.Exceptions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LSTools.DebuggerFrontend { class Program { static void Main(string[] args) { var logFile = new Fi...
```c# using CommandLineParser.Exceptions; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LSTools.DebuggerFrontend { class Program { static void Main(string[] args) { var currentPath = Ap...
71591571-3227-4a88-953b-cf8834d1e426
{ "language": "C#" }
```c# using System; using Eto.Forms; using Eto.Drawing; namespace Eto.Platform.GtkSharp { public class PixelLayoutHandler : GtkLayout<Gtk.Fixed, PixelLayout>, IPixelLayout { public PixelLayoutHandler() { Control = new Gtk.Fixed(); } public void Add(Control child, int x, int y) { IGtkControl ctl...
```c# using System; using Eto.Forms; using Eto.Drawing; namespace Eto.Platform.GtkSharp { public class PixelLayoutHandler : GtkLayout<Gtk.Fixed, PixelLayout>, IPixelLayout { public PixelLayoutHandler () { Control = new Gtk.Fixed (); } public void Add (Control child, int x, int y) { var ctl = ((IGt...
b28b7ef6-d7c1-42fc-a06d-ed5df792f11d
{ "language": "C#" }
```c# namespace WizardFramework.HTML { partial class HtmlWizardPage<TM> { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; #region Windows Form Designer generated code /// <summary> ...
```c# namespace WizardFramework.HTML { partial class HtmlWizardPage<TM> { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; #region Windows Form Designer generated code /// <summary> ...
4619bb0e-1f04-4e00-acae-8bdcb16d187e
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; namespace Azuria.Community { /// <summary> /// </summary> public class MessageEnumerable : IEnumerable<Message> { private readonly int _conferenceId; private readonly bool _markAsRead; private readonly Senpai _se...
```c# using System.Collections; using System.Collections.Generic; namespace Azuria.Community { /// <summary> /// </summary> public class MessageEnumerable : IEnumerable<Message> { private readonly int _conferenceId; private readonly Senpai _senpai; internal MessageEnumerable(i...
d81ffb34-5fce-498c-a37f-bee5eec3449f
{ "language": "C#" }
```c# using System; namespace Avalonia.Styling { public class Styler : IStyler { public void ApplyStyles(IStyleable target) { _ = target ?? throw new ArgumentNullException(nameof(target)); // If the control has a themed templated parent then first apply the styles from ...
```c# using System; namespace Avalonia.Styling { public class Styler : IStyler { public void ApplyStyles(IStyleable target) { _ = target ?? throw new ArgumentNullException(nameof(target)); // Apply the control theme. target.GetEffectiveTheme()?.TryAttach(tar...
a650dd98-53fb-43f7-8b23-1757e0d0726d
{ "language": "C#" }
```c# using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ZobShop.Models { public class ProductRating { public ProductRating(int rating, string content, int productId, User author) { this.Rating = rating; this.Conte...
```c# using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ZobShop.Models { public class ProductRating { public ProductRating() { } public ProductRating(int rating, string content, Product product, User author) { ...
d7fb01be-f04d-4872-a6a6-b3be8b6b3a3c
{ "language": "C#" }
```c# @inherits DotNetNuke.Web.Mvc.Framework.DnnWebViewPage<ContingentViewModel> @using DotNetNuke.Web.Mvc.Helpers @using R7.University.EduProgramProfiles.ViewModels <td itemprop="eduCode">@Model.EduProfile.EduProgram.Code</td> <td itemprop="eduName">@Model.EduProfileTitle</td> <td itemprop="eduLevel">@Model.EduProfil...
```c# @inherits DotNetNuke.Web.Mvc.Framework.DnnWebViewPage<ContingentViewModel> @using DotNetNuke.Web.Mvc.Helpers @using R7.University.EduProgramProfiles.ViewModels <td itemprop="eduCode">@Model.EduProfile.EduProgram.Code</td> <td itemprop="eduName">@Model.EduProfileTitle</td> <td itemprop="eduLevel">@Model.EduProfil...
09938248-7be8-47a1-9d4d-447e486d308e
{ "language": "C#" }
```c# // // ShuffleExtensions.cs // // Copyright (c) 2017 Takashi OTSUKI // // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php // using System; using System.Collections.Generic; using System.Linq; namespace AIWolf.Lib { #if JHELP /// <summary> /// IEnumerabl...
```c# // // ShuffleExtensions.cs // // Copyright (c) 2017 Takashi OTSUKI // // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php // using System; using System.Collections.Generic; using System.Linq; namespace AIWolf.Lib { #if JHELP /// <summary> /// IEnumerabl...
aa0bb313-afc1-4bb0-9a25-f2d931786cd6
{ "language": "C#" }
```c# using UnityEngine; using UnityEngine.UI; using System.Collections; /// <summary> /// UIController holds references to GUI widgets and acts as data receiver for them. /// </summary> public class UIController : MonoBehaviour, IGUIUpdateTarget { public Text SpeedText; public Slider ThrottleSlider; public Slider ...
```c# using UnityEngine; using UnityEngine.UI; using System.Collections; /// <summary> /// UIController holds references to GUI widgets and acts as data receiver for them. /// </summary> public class UIController : MonoBehaviour, IGUIUpdateTarget { [SerializeField] private Text m_SpeedText; [SerializeField] privat...
66f4145b-fae3-4903-8188-27531d84d68a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; namespace Eco { public class UserVariables : IVariableProvider { static readonly Dictionary<string, Func<string>> _variables = new Dictionary<string, Func<string>...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; namespace Eco { public class UserVariables : IVariableProvider { static readonly Dictionary<string, Func<string>> _variables = new Dictionary<string, Func<string>...
1bcfd15b-7874-45d5-a828-1a1726549965
{ "language": "C#" }
```c# namespace Samples { using System; using OpenQA.Selenium; using OpenQA.Selenium.Remote; public class WpDriver : RemoteWebDriver, IHasTouchScreen { public WpDriver(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) : base(commandExecutor, desiredCapabilit...
```c# namespace Samples { #region using System; using OpenQA.Selenium; using OpenQA.Selenium.Remote; #endregion public class WpDriver : RemoteWebDriver, IHasTouchScreen { #region Fields private ITouchScreen touchScreen; #endregion #region Constructors ...
8b4ec02a-6059-458f-aeaa-00f1ff136366
{ "language": "C#" }
```c# using System; using System.ComponentModel.Composition; using System.Net.Http; namespace NVika { internal sealed class AppVeyorBuildServer : IBuildServer { private readonly Logger _logger; public string Name { get { return "AppVeyor"; } } [ImportingCo...
```c# using System; using System.ComponentModel.Composition; using System.Net.Http; namespace NVika { internal sealed class AppVeyorBuildServer : IBuildServer { private readonly Logger _logger; private readonly string _appVeyorAPIUrl; public string Name { get { ret...
f2c4078a-66f2-441d-8598-80e439270882
{ "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.Primitives; namespace osu.Framework.Graphics.Containers { public class SnapTargetContainer : Snap...
```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.Primitives; namespace osu.Framework.Graphics.Containers { public class SnapTargetContainer : Snap...
52642a59-27ef-4ade-8ca2-501e3831ad08
{ "language": "C#" }
```c# using System.Diagnostics.CodeAnalysis; using Microsoft.R.Editor.Application.Test.TestShell; using Microsoft.R.Editor.ContentType; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Microsoft.R.Editor.Application.Test.Validation { [ExcludeFromCodeCoverage] [TestClass] public class ErrorTag...
```c# using System.Diagnostics.CodeAnalysis; using Microsoft.R.Editor.Application.Test.TestShell; using Microsoft.R.Editor.ContentType; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Microsoft.R.Editor.Application.Test.Validation { [ExcludeFromCodeCoverage] [TestClass] public class ErrorTag...
29c23013-8bb3-4341-a931-cc7deb676b6e
{ "language": "C#" }
```c#  namespace LinqToTTreeInterfacesLib { /// <summary> /// Interface for implementing an object that will contain a complete single query /// </summary> public interface IGeneratedCode { /// <summary> /// Add a new statement to the current spot where the "writing" currso...
```c#  namespace LinqToTTreeInterfacesLib { /// <summary> /// Interface for implementing an object that will contain a complete single query /// </summary> public interface IGeneratedCode { /// <summary> /// Add a new statement to the current spot where the "writing" currso...
a10280ff-6cbd-486d-b081-a9f8c509d87e
{ "language": "C#" }
```c# using System; using NUnit.Framework; namespace SIL.Windows.Forms.Tests.Progress.LogBox { [TestFixture] public class LogBoxTests { private Windows.Forms.Progress.LogBox progress; [Test] public void ShowLogBox() { Console.WriteLine("Showing LogBox"); using (var e = new LogBoxFormForTest()) { ...
```c# using System; using NUnit.Framework; namespace SIL.Windows.Forms.Tests.Progress.LogBox { [TestFixture] public class LogBoxTests { private Windows.Forms.Progress.LogBox progress; [Test] [Category("KnownMonoIssue")] // this test hangs on TeamCity for Linux public void ShowLogBox() { Console.WriteLi...
645cda51-90b8-421c-b429-17fa77d1bd4e
{ "language": "C#" }
```c# using System; using System.Reactive.Linq; using System.Threading.Tasks; namespace Stampsy.ImageSource { internal static class Extensions { public static IObservable<T> SurroundWith<T> (this IObservable<T> a, IObservable<T> b) { return b.Concat (a).Concat (b); } ...
```c# using System; using System.Reactive.Linq; using System.Threading.Tasks; namespace Stampsy.ImageSource { public static class Extensions { public static Task<TRequest> Fetch<TRequest> (this IDestination<TRequest> destination, Uri url) where TRequest : Request { retur...
b57c0f1f-bde7-46ca-b868-92217671765f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using hw.UnitTest; namespace Reni.FeatureTest.Reference { [TestFixture] [ArrayElementType1] [Target(@" a: 'Text'; t: a type >>; t dump_print ")] [Output("(bit)*8[text_item]")] public sealed class ArrayElementType : CompilerTes...
```c# using System; using System.Collections.Generic; using System.Linq; using hw.UnitTest; namespace Reni.FeatureTest.Reference { [TestFixture] [ArrayElementType1] [Target(@" a: 'Text'; t: a type item; t dump_print ")] [Output("(bit)*8[text_item]")] public sealed class ArrayElementType : CompilerT...
d07945b4-2030-45b7-a936-43db26ad1d8e
{ "language": "C#" }
```c# // <auto-generated/> using System.Reflection; [assembly: AssemblyTitleAttribute("Elders.Cronus")] [assembly: AssemblyDescriptionAttribute("Elders.Cronus")] [assembly: AssemblyProductAttribute("Elders.Cronus")] [assembly: AssemblyVersionAttribute("2.0.0")] [assembly: AssemblyInformationalVersionAttribute("2.0.0"...
```c# // <auto-generated/> using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitleAttribute("Elders.Cronus")] [assembly: AssemblyDescriptionAttribute("Elders.Cronus")] [assembly: ComVisibleAttribute(false)] [assembly: AssemblyProductAttribute("Elders.Cronus")] [assembly: AssemblyCopyri...
9d1a9a57-4667-4a7f-a5c6-37b23a4e7702
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using BlogTemplate.Models; namespace BlogTemplate.Services { public class SlugGenerator { private BlogDataStore _dataStore; public SlugGenera...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using BlogTemplate.Models; namespace BlogTemplate.Services { public class SlugGenerator { private BlogDataStore _dataStore; public SlugGenera...
d44c1f7d-8dd9-47cc-bf6c-e0bf6e58676e
{ "language": "C#" }
```c# using RainbowMage.OverlayPlugin; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace Cactbot { public class CactbotOverlayConfig : OverlayConfigBase { public static string CactbotAssemblyUri { g...
```c# using RainbowMage.OverlayPlugin; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace Cactbot { public class CactbotOverlayConfig : OverlayConfigBase { public static string CactbotAssemblyUri { g...
d473a771-68cb-4e03-b3f7-ff375bca3ce5
{ "language": "C#" }
```c# using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; namespace Pingu.Tests { class ToolHelper { public static ProcessResult RunPngCheck(string path) { var asm = typeof(ToolHelper).GetTypeInfo().Assembly; var assemblyDir = Path.Get...
```c# using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; namespace Pingu.Tests { class ToolHelper { public static ProcessResult RunPngCheck(string path) { var asm = typeof(ToolHelper).GetTypeInfo().Assembly; var assemblyDir = Path.Get...
42e807be-6e1e-4bf3-ae9c-ca86b75495e6
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RandomGen.Fluent { public interface IRandom : IFluentInterface { INumbers Numbers { get; } INames Names { get; } ITime Time { get; } IText Text { get; } IInternet Inter...
```c# using System; using System.Collections.Generic; namespace RandomGen.Fluent { public interface IRandom : IFluentInterface { INumbers Numbers { get; } INames Names { get; } ITime Time { get; } IText Text { get; } IInternet Internet { get; } IPhoneNumbers Pho...
5a6ef1f4-d7ad-44ce-998a-3639008d1e86
{ "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.Rulesets.Osu.Skinning { public enum OsuSkinConfiguration { HitCirclePrefix, HitCircleOverlap, SliderBorderSize, ...
```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.Rulesets.Osu.Skinning { public enum OsuSkinConfiguration { HitCirclePrefix, HitCircleOverlap, SliderBorderSize, ...
fac98122-c7b2-43b3-a612-fef4541535e3
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; using UnityEngine.UI; using UnityEngine.SceneManagement; public class GameScreen : MonoBehaviour { bool allowLevelLoad = true; void OnEnable() { allowLevelLoad = true; } public void LoadScene(string sceneName) { if (allowLevelLoa...
```c# using UnityEngine; using System.Collections; using UnityEngine.UI; using UnityEngine.SceneManagement; public class GameScreen : MonoBehaviour { bool allowLevelLoad = true; string nextLevel; void OnEnable() { allowLevelLoad = true; } public void LoadScene(string sceneName) { ...
0540e434-f7f7-4d4f-8c73-7cbacddcd4fa
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Markdig { /// <summary> /// Provides a context that can be used as part of parsing Markdown documents. /// </summary> public sealed class MarkdownParserContext { /// <summary> /// Gets or sets the context property collection. ...
```c# using System.Collections.Generic; namespace Markdig { /// <summary> /// Provides a context that can be used as part of parsing Markdown documents. /// </summary> public sealed class MarkdownParserContext { /// <summary> /// Gets or sets the context property collection. ...
b7c10c36-6737-4d79-946a-eb49054fd70d
{ "language": "C#" }
```c# // Copyright © 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Threading; namespace CefSharp.Example { public class AsyncBoundObject { public void Error() ...
```c# // Copyright © 2010-2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; using System.Diagnostics; using System.Threading; namespace CefSharp.Example { public class AsyncBoundObject { ...
3edc2b01-7427-4dc6-8121-45ec3a576ca5
{ "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.Diagnostics; using osu.Game.Online.API; using osu.Game.Online.Rooms; using osu.Game.Online.Solo; using osu.Game.Rulesets; using osu.Game....
```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.Diagnostics; using osu.Game.Online.API; using osu.Game.Online.Rooms; using osu.Game.Online.Solo; using osu.Game.Rulesets; using osu.Game....
715ee602-4f76-4f77-8613-3106bf012053
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using Sy...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using Sy...