doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
05aa3d77-a843-41e2-b937-0d66d9b3eba8
{ "language": "C#" }
```c# using System; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Server.HttpSys; using Microsoft.Extensions.Configuration; namespace MusicStore { public static class Program { public static void Main(string[] args) { var config = new ConfigurationBuilder() ...
```c# using System; using System.IO; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Server.HttpSys; using Microsoft.Extensions.Configuration; namespace MusicStore { public static class Program { public static void Main(string[] args) { var config = new ConfigurationB...
595cf47c-a7f7-4696-8c6e-904dce04ed61
{ "language": "C#" }
```c# namespace Alexa.NET.Request.Type { public class DefaultRequestTypeConverter : IRequestTypeConverter { public bool CanConvert(string requestType) { return requestType == "IntentRequest" || requestType == "LaunchRequest" || requestType == "SessionEndedRequest"; } ...
```c# namespace Alexa.NET.Request.Type { public class DefaultRequestTypeConverter : IRequestTypeConverter { public bool CanConvert(string requestType) { return requestType == "IntentRequest" || requestType == "LaunchRequest" || requestType == "SessionEndedRequest" || requestType == ...
da010d9b-0a52-4198-8c82-d2ee630fb2c5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Treehopper.Demos.SoftPwm { class Program { static void Main(string[] args) { Run(); } static TreehopperUsb b...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Treehopper.Demos.SoftPwm { class Program { static void Main(string[] args) { Run(); } static TreehopperUsb b...
88292eca-895e-4dd3-b5ca-78b1c14b8f8b
{ "language": "C#" }
```c# using ServiceStack.ServiceHost; using Rainy.Db; using ServiceStack.OrmLite; using System; using ServiceStack.Common.Web; namespace Rainy.WebService.Admin { [Route("/api/admin/status/","GET, OPTIONS", Summary = "Get status information about the server.")] [AdminPasswordRequired] public class StatusRequ...
```c# using ServiceStack.ServiceHost; using Rainy.Db; using ServiceStack.OrmLite; using System; using ServiceStack.Common.Web; using Tomboy.Db; namespace Rainy.WebService.Admin { [Route("/api/admin/status/","GET, OPTIONS", Summary = "Get status information about the server.")] [AdminPasswordRequired] public...
b4abfc36-7ab2-4a4c-b1b7-8370eaa5052b
{ "language": "C#" }
```c# using System; using System.Net; using System.Net.Sockets; namespace Abc.Zebus.Util { internal static class TcpUtil { public static int GetRandomUnusedPort() { var listener = new TcpListener(IPAddress.Any, 0); listener.Start(); var port = ((IPEndPoint)l...
```c# using System.Linq; using System.Net; using System.Net.NetworkInformation; using System.Net.Sockets; namespace Abc.Zebus.Util { internal static class TcpUtil { public static int GetRandomUnusedPort() { var listener = new TcpListener(IPAddress.Any, 0); listener.Star...
499a558a-9757-40cc-91c5-6c313d1b4cae
{ "language": "C#" }
```c# using CommentEverythingCryptography.Encryption; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Twilio; namespace CEComms.Communications.Twilio.User { public class Usage { public double GetUsageThisMonth() { IEncry...
```c# using CommentEverythingCryptography.Encryption; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Twilio; namespace CEComms.Communications.Twilio.User { public class Usage { public decimal GetUsageThisMonth() { IEncr...
f5ffdf74-763d-4719-afa1-a8bee540aa3e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; namespace osu.Game.Rulesets.Mods { public interface IApplicableToAudio : IApplicableToTrack, IApplicableToSample { } } ``` Add missing license header and remove unused usings
```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.Mods { public interface IApplicableToAudio : IApplicableToTrack, IApplicableToSample { } } ```
4e972862-56d1-42a4-b1f7-646d89e5fe07
{ "language": "C#" }
```c# using System; using System.Collections; using System.Collections.Generic; namespace Glimpse { public class ReflectionDiscoverableCollection<T> : List<T>, IDiscoverableCollection<T> { private readonly ITypeService _typeService; public ReflectionDiscoverableCollection(ITypeService typeSer...
```c# using System; using System.Collections; using System.Collections.Generic; namespace Glimpse { public class ReflectionDiscoverableCollection<T> : List<T>, IDiscoverableCollection<T> { private readonly ITypeService _typeService; public ReflectionDiscoverableCollection(ITypeService typeSer...
d71a0ff9-e793-4aa8-bbd0-12e86b65c77b
{ "language": "C#" }
```c# using System; namespace NFig { [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)] public abstract class DefaultSettingValueAttribute : Attribute { public object DefaultValue { get; protected set; } public object SubApp { get; protected set; } public object Tier...
```c# using System; namespace NFig { /// <summary> /// This is the base class for all NFig attributes which specify default values, except for the <see cref="SettingAttribute"/> itself. This attribute is /// abstract because you should provide the attributes which make sense for your individual setup. The...
98efba93-8594-43a4-aa12-c430a2f879be
{ "language": "C#" }
```c# using System; namespace SteamShutdown { public class App { public int ID { get; set; } public string Name { get; set; } public int State { get; set; } /// <summary> /// Returns a value indicating whether the game is being downloaded. Includes games in ...
```c# namespace SteamShutdown { public class App { public int ID { get; set; } public string Name { get; set; } public int State { get; set; } /// <summary> /// Returns a value indicating whether the game is being downloaded. /// </summary> pu...
5ac67f14-645f-4121-aa48-cfb49ffa1aa9
{ "language": "C#" }
```c# using System.Diagnostics; using System.IO; namespace Microsoft.Build.Logging.StructuredLogger { public class BinaryLog { public static Build ReadBuild(string filePath) { var eventSource = new BinaryLogReplayEventSource(); byte[] sourceArchive = null; ...
```c# using System.Diagnostics; using System.IO; namespace Microsoft.Build.Logging.StructuredLogger { public class BinaryLog { public static Build ReadBuild(string filePath) { var eventSource = new BinaryLogReplayEventSource(); byte[] sourceArchive = null; ...
25355a78-bd59-4f43-adff-6ce7e53a9420
{ "language": "C#" }
```c# /* Copyright 2014 Jonathan Holland. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
```c# /* Copyright 2014 Jonathan Holland. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
8b87a64c-0b34-4e0a-8492-1f5df0b10efc
{ "language": "C#" }
```c# namespace JustCli.Commands { public class CommandLineHelpCommand : ICommand { public ICommandRepository CommandRepository { get; set; } public IOutput Output { get; set; } public CommandLineHelpCommand(ICommandRepository commandRepository, IOutput output) { Com...
```c# namespace JustCli.Commands { public class CommandLineHelpCommand : ICommand { public ICommandRepository CommandRepository { get; set; } public IOutput Output { get; set; } public CommandLineHelpCommand(ICommandRepository commandRepository, IOutput output) { Com...
d4586b6a-7102-46c3-a4a1-f8435097b945
{ "language": "C#" }
```c# using System; using Newtonsoft.Json.Linq; namespace DevLab.JmesPath.Utils { public static class JTokens { public static JToken Null = JToken.Parse("null"); public static JToken True = JToken.Parse("true"); public static JToken False = JToken.Parse("false"); pub...
```c# using System; using Newtonsoft.Json.Linq; namespace DevLab.JmesPath.Utils { public static class JTokens { public static JToken Null = JToken.Parse("null"); public static JToken True = JToken.Parse("true"); public static JToken False = JToken.Parse("false"); pub...
20e9bb6b-53e3-4627-9ff3-55bfbadf94e3
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Hadouken.Framework.Rpc; using Hadouken.Plugins.Torrents.BitTorrent; namespace Hadouken.Plugins.Torrents.Rpc { public class TorrentsServices : IJsonRpcService { pr...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Hadouken.Framework.Rpc; using Hadouken.Plugins.Torrents.BitTorrent; namespace Hadouken.Plugins.Torrents.Rpc { public class TorrentsServices : IJsonRpcService { pr...
6c04e7af-fb06-4512-9b51-c086a3efd483
{ "language": "C#" }
```c# namespace NuGet.VisualStudio { public class PowerShellScripts { public static readonly string Install = "install.ps1"; public static readonly string Uninstall = "uninstall.ps1"; public static readonly string Init = "init.ps1"; } } ``` Make PowerShellScripts class static pe...
```c# namespace NuGet.VisualStudio { public static class PowerShellScripts { public static readonly string Install = "install.ps1"; public static readonly string Uninstall = "uninstall.ps1"; public static readonly string Init = "init.ps1"; } } ```
163bfb2f-3b1a-4669-9d93-eed83cbebdd9
{ "language": "C#" }
```c# // Copyright(c) 2015 Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in ...
```c# // Copyright(c) 2015 Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in ...
783f2775-5eba-4743-9a8c-6eab4896f951
{ "language": "C#" }
```c# using System.Threading.Tasks; namespace Discord.Commands { public abstract class ModuleBase { public CommandContext Context { get; internal set; } protected virtual async Task ReplyAsync(string message, bool isTTS = false, RequestOptions options = null) { await Conte...
```c# using System.Threading.Tasks; namespace Discord.Commands { public abstract class ModuleBase { public CommandContext Context { get; internal set; } protected virtual async Task<IUserMessage> ReplyAsync(string message, bool isTTS = false, RequestOptions options = null) { ...
e327a79d-9958-4f41-aa74-d3a5bfe32394
{ "language": "C#" }
```c# using UnityEngine; using UnityEngine.UI; public class SceneSelector : MonoBehaviour { [SerializeField] private Text _levelName; [SerializeField] private string[] _levels; [SerializeField] private Button _leftArrow; [SerializeField] private Button _rightArrow; private int pos = 0; private...
```c# using System; using UnityEngine; using UnityEngine.UI; public class SceneSelector : MonoBehaviour { [SerializeField] private Text _levelName; [SerializeField] private string[] _levels; [SerializeField] private Button _leftArrow; [SerializeField] private Button _rightArrow; private int pos = ...
6b5930c0-7eee-4a3d-8862-3d9c66729a8d
{ "language": "C#" }
```c# namespace AngleSharp { using System.Collections.Generic; using System.Threading.Tasks; /// <summary> /// Simple wrapper for static methods of Task, which are missing in older /// versions of the .NET-Framework. /// </summary> static class TaskEx { /// <summary> //...
```c# namespace System.Threading.Tasks { using System.Collections.Generic; /// <summary> /// Simple wrapper for static methods of Task, which are missing in older /// versions of the .NET-Framework. /// </summary> static class TaskEx { /// <summary> /// Wrapper for Task.Whe...
955326a2-958e-4ee7-bdd1-d3dfc7b92d67
{ "language": "C#" }
```c# using BatteryCommander.Web.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Services { public class UnitService { public static async Task<Unit> Get(Database db, int unitId...
```c# using BatteryCommander.Web.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace BatteryCommander.Web.Services { public class UnitService { public static async Task<Unit> Get(Database db, int unitId...
e38af311-1aa7-48e4-bd0b-ff487499d6da
{ "language": "C#" }
```c# using System; using System.Windows.Controls; namespace PackageExplorer { public class PublishUrlValidationRule : ValidationRule { public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo) { string stringValue = (string)value; ...
```c# using System; using System.Windows.Controls; namespace PackageExplorer { public class PublishUrlValidationRule : ValidationRule { public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo) { string stringValue = (string)value; ...
183c73ff-3ac5-4945-a8cb-6d1b3feddf19
{ "language": "C#" }
```c# using System; namespace DDSReader.Console { class Program { static void Main(string[] args) { var dds = new DDSImage(args[0]); dds.Save(args[1]); } } } ``` Add exception handling to console
```c# using System; using System.IO; namespace DDSReader.Console { class Program { static void Main(string[] args) { if (args.Length != 2) { System.Console.WriteLine("ERROR: input and output file required\n"); Environment.Exit(1); } var input = args[0]; var output = args[...
eab764bb-9433-477f-809b-bed8c96aaf17
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using CIV.Common; namespace CIV.Ccs { class PrefixProcess : CcsProcess { public String Label { get; set; } public CcsProcess Inner { get; set; } protected override IEnumerable<Transition> EnumerateTransitions() { return new...
```c# using System; using System.Collections.Generic; using CIV.Common; namespace CIV.Ccs { class PrefixProcess : CcsProcess { public String Label { get; set; } public CcsProcess Inner { get; set; } protected override IEnumerable<Transition> EnumerateTransitions() { yield r...
e16095f6-f90e-4da7-a52e-5c296bbe331f
{ "language": "C#" }
```c# using System.Net.Http; using System.Threading.Tasks; namespace FluentMetacritic.Net { public class HttpClientWrapper : IHttpClient { private static readonly HttpClient Client = new HttpClient(); public async Task<string> GetContentAsync(string address) { return await...
```c# using System.Net.Http; using System.Threading.Tasks; namespace FluentMetacritic.Net { public class HttpClientWrapper : IHttpClient { private static readonly HttpClient Client; static HttpClientWrapper() { Client = new HttpClient(); Client.DefaultRequestHe...
481b6d5b-8f57-4289-82d7-0456ffa30545
{ "language": "C#" }
```c# namespace AgileObjects.AgileMapper.ObjectPopulation { using System.Linq.Expressions; using DataSources; using Extensions; using Members; internal class ExistingOrDefaultValueDataSourceFactory : IDataSourceFactory { public static readonly IDataSourceFactory Instance = new ExistingO...
```c# namespace AgileObjects.AgileMapper.ObjectPopulation { using System.Linq.Expressions; using DataSources; using Members; internal class ExistingOrDefaultValueDataSourceFactory : IDataSourceFactory { public static readonly IDataSourceFactory Instance = new ExistingOrDefaultValueDataSourc...
6f88636f-3242-4481-8dde-dd2808761dd5
{ "language": "C#" }
```c# using BeekmanLabs.UnitTesting; using IntegrationEngine.JobProcessor; using NUnit.Framework; using Moq; using System; using System.Threading; namespace IntegrationEngine.Tests.JobProcessor { public class MessageQueueListenerManagerTest : TestBase<MessageQueueListenerManager> { public Mock<Message...
```c# using BeekmanLabs.UnitTesting; using IntegrationEngine.JobProcessor; using NUnit.Framework; using Moq; using System; using System.Threading; namespace IntegrationEngine.Tests.JobProcessor { public class MessageQueueListenerManagerTest : TestBase<MessageQueueListenerManager> { public Mock<Message...
da82f734-4a35-473b-8042-ec6afb84da59
{ "language": "C#" }
```c# namespace TraktApiSharp.Objects.Get.Shows.Seasons { using Basic; using Newtonsoft.Json; /// <summary> /// A collection of images for a Trakt season. /// </summary> public class TraktSeasonImages { /// <summary> /// A poster image set for various sizes. /// </s...
```c# namespace TraktApiSharp.Objects.Get.Shows.Seasons { using Basic; using Newtonsoft.Json; /// <summary>A collection of images and image sets for a Trakt season.</summary> public class TraktSeasonImages { /// <summary>Gets or sets the screenshot image set.</summary> [JsonPropert...
4a564c13-e926-408b-814e-ecc04384cc5e
{ "language": "C#" }
```c# using JetBrains.Application.BuildScript.Application.Zones; using JetBrains.ReSharper.TestFramework; using JetBrains.TestFramework; using JetBrains.TestFramework.Application.Zones; using NUnit.Framework; [assembly: RequiresSTA] namespace JetBrains.ReSharper.Plugins.Yaml.Tests { [ZoneDefinition] public i...
```c# using JetBrains.Application.BuildScript.Application.Zones; using JetBrains.ReSharper.TestFramework; using JetBrains.TestFramework; using JetBrains.TestFramework.Application.Zones; using NUnit.Framework; [assembly: RequiresSTA] // This attribute is marked obsolete but is still supported. Use is discouraged in p...
196f0b52-e29d-4f7d-b09e-7ac6b5374a4a
{ "language": "C#" }
```c# using Newtonsoft.Json; namespace SurveyMonkey.Containers { [JsonConverter(typeof(TolerantJsonConverter))] public class ResponseAnswer { public long? ChoiceId { get; set; } public long? RowId { get; set; } public long? ColId { get; set; } public long? OtherId { get; se...
```c# using Newtonsoft.Json; namespace SurveyMonkey.Containers { [JsonConverter(typeof(TolerantJsonConverter))] public class ResponseAnswer { public long? ChoiceId { get; set; } public long? RowId { get; set; } public long? ColId { get; set; } public long? OtherId { get; se...
3af1b7c7-d7ee-40c6-abb9-44098bf089c9
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using WPAppStudio.Services.Interfaces; namespace WPAppStudio.Services { public class WordWrapService { private readonly ITextMeasurementService _tms; public WordWrapService(ITextMeasurementService text...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using WPAppStudio.Services.Interfaces; namespace WPAppStudio.Services { public class WordWrapService { private readonly ITextMeasurementService _tms; public WordWrapService(ITextMeasurementService text...
257d15f7-0adb-4084-8345-2eee90343275
{ "language": "C#" }
```c# using System; using System.Linq; namespace Smartrak.Collections.Paging { public static class PagingHelpers { /// <summary> /// Gets a paged list of entities with the total appended to each row in the resultset. This is a faster way of doing things than using 2 seperate queries /// </summary> /// <type...
```c# using System; using System.Linq; namespace Smartrak.Collections.Paging { public static class PagingHelpers { /// <summary> /// Gets a paged list of entities with the total appended to each row in the resultset. This is a faster way of doing things than using 2 seperate queries /// </summary> /// <type...
5306f397-f65f-4c6b-8bae-862a8444a962
{ "language": "C#" }
```c# using System; using System.Diagnostics; using System.Threading; namespace ProcessRelauncher { public class ProcessMonitor : IDisposable { private Timer _timer; private readonly int _monitoringPollingIntervalMs; private readonly ProcessStartInfo _processStartInfo; ...
```c# using System; using System.Diagnostics; using System.Threading; namespace ProcessRelauncher { public class ProcessMonitor : IDisposable { private Timer _timer; private readonly int _monitoringPollingIntervalMs; private readonly ProcessStartInfo _processStartInfo; ...
4381353f-e70d-4dee-a433-8cce843eeb5c
{ "language": "C#" }
```c# using System; namespace Hangman { public class Hangman { public static void Main(string[] args) { Table table = new Table(2, 3); string output = table.Draw(); Console.WriteLine(output); } } } ``` Comment out the code in Hangman that uses Table
```c# using System; namespace Hangman { public class Hangman { public static void Main(string[] args) { // Table table = new Table(2, 3); // string output = table.Draw(); // Console.WriteLine(output); } } } ```
1a26ebde-fa5e-491f-af93-f8fe4bd37028
{ "language": "C#" }
```c# namespace BaiduHiCrawler { using System; static class Constants { public const string CommentRetrivalUrlPattern = "http://hi.baidu.com/qcmt/data/cmtlist?qing_request_source=new_request&thread_id_enc={0}&start={1}&count={2}&orderby_type=0&favor=2&type=smblog"; pu...
```c# namespace BaiduHiCrawler { using System; static class Constants { public const string CommentRetrivalUrlPattern = "http://hi.baidu.com/qcmt/data/cmtlist?qing_request_source=new_request&thread_id_enc={0}&start={1}&count={2}&orderby_type=0&favor=2&type=smblog"; pu...
0f3c9caf-de65-41b4-9c89-de1a027bfe55
{ "language": "C#" }
```c# using System.Collections.Generic; using Rocket.API; using RocketRegions.Model; namespace RocketRegions { public class RegionsConfiguration : IRocketPluginConfiguration { public int UpdateFrameCount; public List<Region> Regions; public string UrlOpenMessage; public void L...
```c# using System.Collections.Generic; using Rocket.API; using RocketRegions.Model; namespace RocketRegions { public class RegionsConfiguration : IRocketPluginConfiguration { public int UpdateFrameCount; public List<Region> Regions; public string UrlOpenMessage; public void L...
506b077c-af1e-48fc-860d-1c5433c70cb5
{ "language": "C#" }
```c# using System.ComponentModel; using System.Windows; namespace DesktopWidgets.Actions { internal class PopupAction : ActionBase { [DisplayName("Text")] public string Text { get; set; } = ""; [DisplayName("Title")] public string Title { get; set; } = ""; [DisplayNa...
```c# using System.ComponentModel; using System.IO; using System.Windows; using DesktopWidgets.Classes; namespace DesktopWidgets.Actions { internal class PopupAction : ActionBase { public FilePath FilePath { get; set; } = new FilePath(); [DisplayName("Text")] public string Text { get;...
c0c4ccc5-e1f2-46d2-a7f3-7e3554648696
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Newtonsoft.Json; namespace GarrysMod.AddonCreator { public class AddonJson { [JsonProperty("title")] public string Title { get; set; } [JsonProperty("description")] ...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Newtonsoft.Json; namespace GarrysMod.AddonCreator { public class AddonJson { [JsonProperty("title")] public string Title { get; set; } [JsonProperty("description")] ...
d6ebcb63-f7f6-4fb4-8991-1a6c5db9ad27
{ "language": "C#" }
```c# using System; using System.Diagnostics; using Xamarin.Forms; using InteractApp; namespace InteractApp { public class EventListPageBase : ViewPage<EventListPageViewModel> { } public partial class EventListPage : EventListPageBase { public EventListPage () { InitializeComponent (); this.Title ...
```c# using System; using System.Diagnostics; using Xamarin.Forms; using InteractApp; namespace InteractApp { public class EventListPageBase : ViewPage<EventListPageViewModel> { } public partial class EventListPage : EventListPageBase { public EventListPage () { InitializeComponent (); this.Title ...
51d48ead-eace-4797-8499-cc04fe7833de
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using PolarisServer.Packets; namespace PolarisServer.Models { public class PSOObject { public struct PSOObjectThing { public UInt32 data; } public EntityHea...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using PolarisServer.Packets; namespace PolarisServer.Models { public class PSOObject { public struct PSOObjectThing { public UInt32 data; } public EntityHea...
95daf8ad-59ba-4afd-b5b2-bbe4851182d0
{ "language": "C#" }
```c# using System; using System.IO; using System.Linq; using Villermen.RuneScapeCacheTools.Audio.Vorbis; using Xunit; using Xunit.Abstractions; namespace RuneScapeCacheToolsTests { public class VorbisTests : IDisposable { private ITestOutputHelper Output { get; } private VorbisReader Reader1...
```c# using System; using System.IO; using System.Linq; using Villermen.RuneScapeCacheTools.Audio.Vorbis; using Xunit; using Xunit.Abstractions; namespace RuneScapeCacheToolsTests { public class VorbisTests : IDisposable { private ITestOutputHelper Output { get; } private VorbisReader Reader1...
1454f84f-b7fa-49f7-b6b8-e76644de4139
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; using DAQ.Environment; namespace DAQ.HAL { public class Agilent53131A : FrequencyCounter { public Agilent53131A(String visaAddress) : base(visaAddress) {} public override double Frequency { ...
```c# using System; using System.Collections.Generic; using System.Text; using DAQ.Environment; namespace DAQ.HAL { public class Agilent53131A : FrequencyCounter { public Agilent53131A(String visaAddress) : base(visaAddress) {} public override double Frequency { ...
b8fe2462-cbf3-4760-bbca-442712f82ffe
{ "language": "C#" }
```c# @model Vaskelista.Models.Household @{ ViewBag.Title = "Create"; } <h2>Velkommen til vaskelista</h2> <p>Her kan du velge hva vaskelisten din skal hete:</p> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-12"><label>@Request.Url.ToString()</label></di...
```c# @model Vaskelista.Models.Household @{ ViewBag.Title = "Create"; } <h2>Velkommen til vaskelista</h2> <p>Her kan du velge hva vaskelisten din skal hete:</p> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-2"><label>@Request.Url.ToString()</label></div...
f47f4a53-f9a4-4e11-b32b-fcc31fb6a936
{ "language": "C#" }
```c# namespace TAUtil.Gaf.Structures { using System.IO; public struct GafFrameData { public ushort Width; public ushort Height; public ushort XPos; public ushort YPos; public byte Unknown1; public bool Compressed; public ushort FramePoin...
```c# namespace TAUtil.Gaf.Structures { using System.IO; public struct GafFrameData { public ushort Width; public ushort Height; public ushort XPos; public ushort YPos; public byte TransparencyIndex; public bool Compressed; public ushort ...
636ec65b-d8c8-4561-961a-4e8f6e6899e1
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Graphics.UserInte...
```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.Game.Beatmaps.ControlPoints; using osu.Game.Graphics.UserInte...
3aa374ad-f819-4c8e-aeef-fe8e153702b8
{ "language": "C#" }
```c# using System; using NServiceBus; using SFA.DAS.AutoConfiguration; using SFA.DAS.EmployerFinance.Messages.Commands; using SFA.DAS.Notifications.Messages.Commands; using SFA.DAS.NServiceBus.Configuration.AzureServiceBus; using StructureMap; namespace SFA.DAS.EmployerAccounts.Extensions { public static class ...
```c# using System; using NServiceBus; using SFA.DAS.AutoConfiguration; using SFA.DAS.EmployerFinance.Messages.Commands; using SFA.DAS.Notifications.Messages.Commands; using SFA.DAS.NServiceBus.Configuration.AzureServiceBus; using StructureMap; namespace SFA.DAS.EmployerAccounts.Extensions { public static class ...
7f0d8016-f7aa-4a6b-bef2-dc35dce8f13b
{ "language": "C#" }
```c# using System; using System.Threading; using Flood.Editor.Server; namespace Flood.Editor { public class ServerManager { public EditorServer Server { get; private set; } private ManualResetEventSlim serverCreatedEvent; private void RunBuiltinServer() { serverCre...
```c# using System; using System.Threading; using Flood.Editor.Server; namespace Flood.Editor { public class ServerManager { public EditorServer Server { get; private set; } private ManualResetEventSlim serverCreatedEvent; private void RunBuiltinServer() { serverCre...
5da5e280-9de5-4071-906f-6bf709829087
{ "language": "C#" }
```c# using System; using System.Globalization; using System.Windows; using System.Windows.Media.Imaging; namespace WPFConverters { public class BitmapImageConverter : BaseConverter { protected override object OnConvert(object value, Type targetType, object parameter, CultureInfo culture) { ...
```c# using System; using System.Globalization; using System.Windows; using System.Windows.Media.Imaging; namespace WPFConverters { public class BitmapImageConverter : BaseConverter { protected override object OnConvert(object value, Type targetType, object parameter, CultureInfo culture) { ...
ae00883a-00db-4864-b51c-005c15285546
{ "language": "C#" }
```c# using System.Linq; using Geocoding.Google; using Xunit; using Xunit.Extensions; namespace Geocoding.Tests { public class GoogleAsyncGeocoderTest : AsyncGeocoderTest { GoogleGeocoder geoCoder; protected override IAsyncGeocoder CreateAsyncGeocoder() { geoCoder = new GoogleGeocoder(); return geoCode...
```c# using System.Configuration; using System.Linq; using Geocoding.Google; using Xunit; using Xunit.Extensions; namespace Geocoding.Tests { public class GoogleAsyncGeocoderTest : AsyncGeocoderTest { GoogleGeocoder geoCoder; protected override IAsyncGeocoder CreateAsyncGeocoder() { geoCoder = new GoogleG...
188d602b-5dda-4c23-9dd4-1deafaef0b6e
{ "language": "C#" }
```c# using System.Configuration; namespace StackExchange.Redis.Extensions.Core.Configuration { /// <summary> /// Configuration Element Collection for <see cref="RedisHost"/> /// </summary> public class RedisHostCollection : ConfigurationElementCollection { /// <summary> /// Gets or sets the <see c...
```c# using System.Configuration; namespace StackExchange.Redis.Extensions.Core.Configuration { /// <summary> /// Configuration Element Collection for <see cref="RedisHost"/> /// </summary> public class RedisHostCollection : ConfigurationElementCollection { /// <summary> /// Gets or sets the <see c...
54194c13-9cd1-411b-bffb-0703779e861e
{ "language": "C#" }
```c# using System; using System.Diagnostics; using System.Linq.Expressions; using LINQToTTreeLib.Expressions; using Microsoft.Pex.Framework; using Microsoft.Pex.Framework.Validation; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace LINQToTTreeLib.Tests.ResultOperators { [TestClass] [Pe...
```c# using LINQToTTreeLib.Expressions; using Microsoft.Pex.Framework; using Microsoft.Pex.Framework.Validation; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Diagnostics; using System.Linq.Expressions; namespace LINQToTTreeLib.Tests.ResultOperators { [TestClass] [Pe...
ec5d0d11-ba22-4b2b-a54a-b00647047d19
{ "language": "C#" }
```c# using System.Reflection; // 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("CakeMail.RestClient")] [assembly: AssemblyDescription("CakeMail.RestClien...
```c# using System.Reflection; // 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("CakeMail.RestClient")] [assembly: AssemblyDescription("CakeMail.RestClien...
3f2f7e43-f3fa-48f3-8e35-6cb8e4d3bedc
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace MediaCentreServer.Controllers { // Controller for running an application. public class RunController : ApiController { // POST /api/run?path...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace MediaCentreServer.Controllers { // Controller for running an application. public class RunController : ApiController { // POST /api/run?path...
be33ee59-5f09-44ab-b41b-2324116fc7c1
{ "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.Graphics; using osu.Framework.Graphics.Pooling; using osuTK; namespace osu.Game.Rulesets.Catch.UI { /// <summary> /// A trail of the ca...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Pooling; using osu.Framework.Timing; using osuTK; namespace osu.Game.Rulesets.Catch.UI { /// <summar...
ac7dc100-3245-43ff-bfed-1459d1e50114
{ "language": "C#" }
```c# // Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using System; using EndlessClient.HUD; using EndlessClient.Rendering; using EOLib; using Microsoft.Xna.Framework; using XNAControls; namespace EndlessClient.UICont...
```c# // Original Work Copyright (c) Ethan Moffat 2014-2016 // This file is subject to the GPL v2 License // For additional details, see the LICENSE file using System; using EndlessClient.HUD; using EndlessClient.Rendering; using EOLib; using Microsoft.Xna.Framework; using XNAControls; namespace EndlessClient.UICont...
0f5ab736-be24-438c-a7e1-f2c11723f99e
{ "language": "C#" }
```c# using System.Drawing; namespace DanTup.DaNES.Emulation { class Ppu { public Memory Ram { get; } public Bitmap Screen { get; } public Ppu(Memory ram, Bitmap screen) { Ram = ram; Screen = screen; for (var x = 0; x < 256; x++) { for (var y = 0; y < 240; y++) { Screen.SetPixel(x...
```c# using System.Drawing; namespace DanTup.DaNES.Emulation { class Ppu { public Memory Ram { get; } public Bitmap Screen { get; } // PPU Control bool NmiEnable; bool PpuMasterSlave; bool SpriteHeight; bool BackgroundTileSelect; bool SpriteTileSelect; bool IncrementMode; bool NameTableSelect1;...
9ebf78d2-a596-42fb-821a-c0a7572dca85
{ "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 Newtonsoft.Json; namespace osu.Game.IO.Serialization { public interface IJsonSerializable { } public static class JsonSerializableExtension...
```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 Newtonsoft.Json; using osu.Framework.IO.Serialization; namespace osu.Game.IO.Serialization { public interface IJsonSer...
994ab4bb-e995-4eee-a9ad-14a0d007f6df
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace NetBotsHostProject.Models { public static class Secrets { private static readonly Dictionary<string,string> _secrets = new Dictionary<string, string>() { {"gitHubClientIdDev", "plac...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace NetBotsHostProject.Models { public static class Secrets { private static readonly Dictionary<string,string> _secrets = new Dictionary<string, string>() { {"gitHubClientIdDev", "plac...
375247dd-b491-413c-82dc-421da40f8460
{ "language": "C#" }
```c# using UnityEngine; using System.Reflection; [assembly: AssemblyVersion("1.1.0.*")] public class Loader : MonoBehaviour { /// <summary> /// DebugUI prefab to instantiate. /// </summary> [SerializeField] private GameObject _debugUI; /// <summary> /// ModalDialog prefab to...
```c# using UnityEngine; using System.Reflection; [assembly: AssemblyVersion("1.1.1.*")] public class Loader : MonoBehaviour { /// <summary> /// DebugUI prefab to instantiate. /// </summary> [SerializeField] private GameObject _debugUI; /// <summary> /// ModalDialog prefab to...
ce8f55b8-058f-4908-a81b-b65b2ff7b8e0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using Grobid.PdfToXml; namespace Grobid.NET { public class PdfBlockExtractor<T> { private readonly BlockStateFactory factory; public PdfBlockExtractor() { this.factory = new BlockStateF...
```c# using System; using System.Collections.Generic; using System.Linq; using Grobid.PdfToXml; namespace Grobid.NET { public class PdfBlockExtractor<T> { private readonly BlockStateFactory factory; public PdfBlockExtractor() { this.factory = new BlockStateF...
b0cb184e-2d44-408a-910e-b3fd31ab2649
{ "language": "C#" }
```c# using CertiPay.Common.Logging; using System; using System.Threading.Tasks; using Twilio; namespace CertiPay.Common.Notifications { /// <summary> /// Send an SMS message to the given recipient. /// </summary> /// <remarks> /// Implementation may be sent into background processing. /// </r...
```c# using CertiPay.Common.Logging; using System; using System.Threading.Tasks; using Twilio; namespace CertiPay.Common.Notifications { /// <summary> /// Send an SMS message to the given recipient. /// </summary> /// <remarks> /// Implementation may be sent into background processing. /// </r...
758770b7-6fb7-4974-a644-484c06e69204
{ "language": "C#" }
```c# using Windows.System.Profile; using Windows.UI.ViewManagement; namespace DigiTransit10.Helpers { public static class DeviceTypeHelper { public static DeviceFormFactorType GetDeviceFormFactorType() { switch (AnalyticsInfo.VersionInfo.DeviceFamily) { ...
```c# using Windows.System.Profile; using Windows.UI.ViewManagement; namespace DigiTransit10.Helpers { public static class DeviceTypeHelper { public static DeviceFormFactorType GetDeviceFormFactorType() { switch (AnalyticsInfo.VersionInfo.DeviceFamily) { ...
bb30286d-aa76-4b52-a196-a1f1da436919
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Mvc.ViewComponents; using Microsoft.Data.Entity; using Microsoft.Extensions.DependencyInjection; using MusicStore.Models; using Xunit; namespace MusicStore.Components { public class GenreMe...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Mvc.ViewComponents; using Microsoft.Data.Entity; using Microsoft.Extensions.DependencyInjection; using MusicStore.Models; using Xunit; namespace MusicStore.Components { public class GenreMe...
50f54d80-5b76-45c3-a52d-b555f8a51358
{ "language": "C#" }
```c# using System.Linq; using EPiServer.Core; using EPiServer.Find; using EPiServer.Find.Framework; using EPiServer.ServiceLocation; using Vro.FindExportImport.Models; namespace Vro.FindExportImport.Stores { public interface ISearchService { ContentReference FindMatchingContent(BestBetEntity bestBetEn...
```c# using System; using System.Linq; using EPiServer; using EPiServer.Core; using EPiServer.Find; using EPiServer.Find.Framework; using EPiServer.ServiceLocation; using Vro.FindExportImport.Models; namespace Vro.FindExportImport.Stores { public interface ISearchService { ContentReference FindMatching...
c9988c2b-68a3-4bd1-9f3e-9064b6ebc435
{ "language": "C#" }
```c# namespace TrackTv.Updater { using System; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; using TrackTv.Data; public class ApiResultRepository { public ApiResultRepository(IDbService dbService) { this.DbService = dbService; ...
```c# namespace TrackTv.Updater { using System; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; using TrackTv.Data; public class ApiResultRepository { public ApiResultRepository(IDbService dbService) { this.DbService = dbService; ...
60a4c977-dcdf-4bd2-8034-7cba553495a3
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; using osu.Framework.Screens.Testing; namespa...
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; using osu.Framework.Platform; using osu.Framew...
2dc26693-b705-4cf3-ae66-1daf79056496
{ "language": "C#" }
```c# using System.Text; using Microsoft.AspNet.Razor.Runtime.TagHelpers; using Microsoft.AspNet.Mvc.Rendering; namespace Glimpse.Web.Common { [TargetElement("body")] public class ScriptInjector : TagHelper { public override int Order => int.MaxValue; public override void Process(TagHelper...
```c# using System.Text; using Microsoft.AspNet.Razor.Runtime.TagHelpers; using Microsoft.AspNet.Mvc.Rendering; namespace Glimpse.Web.Common { [TargetElement("body")] public class ScriptInjector : TagHelper { public override int Order => int.MaxValue; public override void Process(TagHelper...
a923d9b7-9f58-4457-9f7e-ce88b2c44672
{ "language": "C#" }
```c# using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace CertiPay.Payroll.Common { [ComplexType] public class Address { // Warning: This is marked as a complex type, and used in several projects, so any changes will trickle down...
```c# using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace CertiPay.Payroll.Common { /// <summary> /// Represents a basic address format for the United States /// </summary> [ComplexType] public class Address { // Warn...
4a5ccee4-b957-4e2f-abc3-34aba9bf0120
{ "language": "C#" }
```c# @model alert_roster.web.Models.Message @{ ViewBag.Title = "Post New Message"; } <h2>@ViewBag.Title</h2> @using (Html.BeginForm("New", "Home", FormMethod.Post)) { @Html.AntiForgeryToken() <div class="form-horizontal"> <hr /> @Html.ValidationSummary(true) <div class="alert ...
```c# @model alert_roster.web.Models.Message @{ ViewBag.Title = "Post New Message"; } <h2>@ViewBag.Title</h2> @using (Html.BeginForm("New", "Home", FormMethod.Post)) { @Html.AntiForgeryToken() <div class="form-horizontal"> <hr /> @Html.ValidationSummary(true) <div class="alert ...
dbb359f7-6331-41d3-b498-3f5da6d94bd4
{ "language": "C#" }
```c# using System.Threading.Tasks; using EE.FutureProof; using JetBrains.Annotations; using PlayerIOClient; namespace BotBits { public class FutureProofLoginClient : LoginClient { private const int CurrentVersion = 218; public FutureProofLoginClient([NotNull] ConnectionManager connec...
```c# using System.Threading.Tasks; using EE.FutureProof; using JetBrains.Annotations; using PlayerIOClient; namespace BotBits { public class FutureProofLoginClient : LoginClient { private const int CurrentVersion = 218; public FutureProofLoginClient([NotNull] ConnectionManager connec...
a9b891eb-30d5-4f04-b378-48ec4d613b07
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CasualMeter.Common.Helpers; using Tera.DamageMeter; namespace CasualMeter.Common.Formatters { public class DamageTrackerFormatter : Formatter { public DamageTrackerFormatter(...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CasualMeter.Common.Helpers; using Tera.DamageMeter; namespace CasualMeter.Common.Formatters { public class DamageTrackerFormatter : Formatter { public DamageTrackerFormatter(...
cdc0c9c1-3ca3-4263-a7d6-7af318f2f919
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Okanshi.Dashboard.Models; namespace Okanshi.Dashboard { public interface IGetMetrics { IEnumerable<Metric> Execute(string instanceName); } public class GetMetrics ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Okanshi.Dashboard.Models; namespace Okanshi.Dashboard { public interface IGetMetrics { IEnumerable<Metric> Execute(string instanceName); } public class GetMetrics ...
0a212f57-9e45-461a-bac8-163d5336a659
{ "language": "C#" }
```c# using Basic.Azure.Storage.Communications.Core; using Basic.Azure.Storage.Communications.Core.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Basic.Azure.Storage.Communications.QueueService.MessageOperations { /// <summ...
```c# using Basic.Azure.Storage.Communications.Core; using Basic.Azure.Storage.Communications.Core.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Basic.Azure.Storage.Communications.QueueService.MessageOperations { /// <summ...
3243601b-4421-4d43-83d4-8c00340805a5
{ "language": "C#" }
```c# using System; using System.Linq; using System.Runtime.InteropServices; using Windows.Security.Credentials; using TimesheetParser.Business.Services; namespace TimesheetParser.Win10.Services { internal class PasswordService : IPasswordService { private readonly string pluginName; private r...
```c# using System; using System.Linq; using Windows.Security.Credentials; using TimesheetParser.Business.Services; namespace TimesheetParser.Win10.Services { internal class PasswordService : IPasswordService { private readonly string pluginName; private readonly PasswordVault vault = new Pass...
f14e4cd8-a5ac-40e5-96d8-a8ce83dba044
{ "language": "C#" }
```c# using UnityEngine; namespace LiteNetLibManager { [System.Serializable] public class LiteNetLibScene { [SerializeField] public Object sceneAsset; [SerializeField] public string sceneName = string.Empty; public string SceneName { get { retur...
```c# using UnityEngine; namespace LiteNetLibManager { [System.Serializable] public class LiteNetLibScene { [SerializeField] private Object sceneAsset; [SerializeField] private string sceneName = string.Empty; public string SceneName { get { ret...
0e725bab-4fcc-4c5d-9397-518254857542
{ "language": "C#" }
```c# using System.Buffers; using System.Diagnostics; using System.Runtime.InteropServices; using System.Text; namespace Avalonia.FreeDesktop { internal static class NativeMethods { [DllImport("libc", SetLastError = true)] private static extern long readlink([MarshalAs(UnmanagedType.LPArray)] b...
```c# using System.Buffers; using System.Diagnostics; using System.Runtime.InteropServices; using System.Text; namespace Avalonia.FreeDesktop { internal static class NativeMethods { [DllImport("libc", SetLastError = true)] private static extern long readlink([MarshalAs(UnmanagedType.LPArray)] b...
4bf3954f-23df-43fc-9ef7-77566bc9df57
{ "language": "C#" }
```c# using Hyena; using TagLib; using System; using GLib; namespace FSpot.Utils { public static class Metadata { public static TagLib.Image.File Parse (SafeUri uri) { // Detect mime-type var gfile = FileFactory.NewForUri (uri); var info = gfile.QueryInfo ("s...
```c# using Hyena; using TagLib; using System; using GLib; namespace FSpot.Utils { public static class Metadata { public static TagLib.Image.File Parse (SafeUri uri) { // Detect mime-type var gfile = FileFactory.NewForUri (uri); var info = gfile.QueryInfo ("s...
977d1330-34e5-405b-8d9f-4630ddcad9bd
{ "language": "C#" }
```c# using Content.Server.Administration; using Content.Server.Atmos.Components; using Content.Shared.Administration; using Robust.Shared.Console; namespace Content.Server.Atmos.Commands { [AdminCommand(AdminFlags.Debug)] public sealed class AddAtmosCommand : IConsoleCommand { [Dependency] private...
```c# using Content.Server.Administration; using Content.Server.Atmos.Components; using Content.Shared.Administration; using Robust.Shared.Console; namespace Content.Server.Atmos.Commands { [AdminCommand(AdminFlags.Debug)] public sealed class AddAtmosCommand : IConsoleCommand { [Dependency] private...
64d3c01a-e511-4b1d-90d1-a148791d0f09
{ "language": "C#" }
```c# using System; using System.Threading; using System.Threading.Tasks; using Lime.Protocol; using Takenet.MessagingHub.Client; using Takenet.MessagingHub.Client.Listener; using Takenet.MessagingHub.Client.Sender; using System.Diagnostics; using FaqTemplate.Core.Services; using FaqTemplate.Core.Domain; namespace Faq...
```c# using System; using System.Threading; using System.Threading.Tasks; using Lime.Protocol; using Takenet.MessagingHub.Client; using Takenet.MessagingHub.Client.Listener; using Takenet.MessagingHub.Client.Sender; using System.Diagnostics; using FaqTemplate.Core.Services; using FaqTemplate.Core.Domain; namespace Faq...
ef2418f9-a706-4115-9286-c24774658c44
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.EnterpriseServices.Internal; using System.Linq; using System.Runtime.Serialization; using System.Web; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace SimpleWAWS.Models { public class WebsiteTemplate : BaseTemplate { ...
```c# using System; using System.Collections.Generic; using System.EnterpriseServices.Internal; using System.Linq; using System.Runtime.Serialization; using System.Web; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace SimpleWAWS.Models { public class WebsiteTemplate : BaseTemplate { ...
a8435d08-7f70-4e36-bd23-b6c364e6fe69
{ "language": "C#" }
```c# using System; namespace Telegram.Bot.Helpers { /// <summary> /// Extension Methods /// </summary> public static class Extensions { private static readonly DateTime UnixStart = new DateTime(1970, 1, 1); /// <summary> /// Convert a long into a DateTime /// </s...
```c# using System; namespace Telegram.Bot.Helpers { /// <summary> /// Extension Methods /// </summary> public static class Extensions { private static readonly DateTime UnixStart = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); /// <summary> /// Convert a long into...
8e203241-e355-4802-8113-88fece31a108
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Linq; namespace osu.Game.Online.API.Requests { public class GetUsersRequest : APIRequest<GetUsersResponse> { private rea...
```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; namespace osu.Game.Online.API.Requests { public class GetUsersRequest : APIRequest<GetUsersResponse> { private readonly int[] userIds...
090edcdc-ab51-47c3-ae56-e5d6e26d23e6
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; namespace Bonobo.Git.Server.Configuration { public class AuthenticationSettings { public static string MembershipService { get; private set; } public static string RoleProvide...
```c# using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Web; namespace Bonobo.Git.Server.Configuration { public class AuthenticationSettings { public static string MembershipService { get; private set; } static AuthenticationSettings()...
df64149a-69c8-4e21-84ef-cbec79bacb19
{ "language": "C#" }
```c# using System.Net; using FluentAssertions; using NUnit.Framework; namespace Durwella.UrlShortening.Tests { public class WebClientUrlUnwrapperTest { [Test] public void ShouldGetResourceLocation() { var wrappedUrl = "http://goo.gl/mSkqOi"; var subject = new W...
```c# using System.Net; using FluentAssertions; using NUnit.Framework; namespace Durwella.UrlShortening.Tests { public class WebClientUrlUnwrapperTest { [Test] public void ShouldGetResourceLocation() { var wrappedUrl = "http://goo.gl/mSkqOi"; var subject = new W...
dfbc0f2a-c3d4-4a43-b59f-6ca30d650b25
{ "language": "C#" }
```c# using FluentAssertions; using System; using System.Collections.Generic; using System.Text; using Workstation.ServiceModel.Ua; using Xunit; namespace Workstation.UaClient.UnitTests { public class UaApplicationOptionsTests { [Fact] public void UaTcpTransportChannelOptionsDefaults() ...
```c# using FluentAssertions; using System; using System.Collections.Generic; using System.Text; using Workstation.ServiceModel.Ua; using Xunit; namespace Workstation.UaClient.UnitTests { public class UaApplicationOptionsTests { [Fact] public void UaTcpTransportChannelOptionsDefaults() ...
f5b3bbb2-3041-45a5-9bd5-5f2586194484
{ "language": "C#" }
```c# using System.Linq; using System.Windows; using System.Windows.Forms; using DesktopWidgets.Classes; namespace DesktopWidgets.Helpers { internal static class FullScreenHelper { private static bool DoesMonitorHaveFullscreenApp(Screen screen) => Win32Helper.GetForegroundApp() .IsFullScre...
```c# using System.Linq; using System.Windows; using System.Windows.Forms; using DesktopWidgets.Classes; namespace DesktopWidgets.Helpers { internal static class FullScreenHelper { private static bool DoesMonitorHaveFullscreenApp(Screen screen) => Win32Helper.GetForegroundApp() .IsFullScre...
71b5591a-932f-46b0-bd3c-41e2c04b70f2
{ "language": "C#" }
```c# using System; namespace SharpHaven.Resources { public struct ResourceRef { public ResourceRef(string name, ushort version) { if (name == null) throw new ArgumentNullException(nameof(name)); this.Name = name; this.Version = version; } public string Name { get; } public ushort Version ...
```c# using System; namespace SharpHaven.Resources { public struct ResourceRef { public ResourceRef(string name, ushort version) { if (name == null) throw new ArgumentNullException(nameof(name)); Name = name; Version = version; } public string Name { get; } public ushort Version { get; } ...
55a69496-61ab-4d52-a12d-9d7713b46d3e
{ "language": "C#" }
```c# namespace Gu.Wpf.Geometry.Tests { using System; using System.Linq; using System.Reflection; using System.Windows.Markup; using NUnit.Framework; public class NamespacesTests { private const string Uri = "http://gu.se/Geometry"; private readonly Assembly assembly; ...
```c# namespace Gu.Wpf.Geometry.Tests { using System; using System.Linq; using System.Reflection; using System.Windows.Markup; using NUnit.Framework; public class NamespacesTests { private const string Uri = "http://gu.se/Geometry"; private readonly Assembly assembly; ...
d62d9b88-b2f5-4560-b8c1-40b121e60cf6
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace OMF { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace OMF { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] ...
045514b7-52b2-4cfa-8acc-181a548a7f4c
{ "language": "C#" }
```c# namespace PS.Mothership.Core.Common.SignalRConnectionHandling { public interface IClientsCollection { ISignalRUser Get(string machineName, string username); ISignalRUser GetOrAdd(string machineName, string username); void AddOrReplace(ISignalRUser inputUser); } } ``` Remove m...
```c# namespace PS.Mothership.Core.Common.SignalRConnectionHandling { public interface IClientsCollection { ISignalRUser Get(string username); ISignalRUser GetOrAdd(string username); void AddOrReplace(ISignalRUser inputUser); } } ```
c844faac-5b0d-4b8a-9538-aaf14eb2f5c3
{ "language": "C#" }
```c# namespace AjErl.Console { using System; using System.Collections.Generic; using System.Linq; using System.Text; using AjErl.Compiler; using AjErl.Expressions; public class Program { public static void Main(string[] args) { Console.WriteLin...
```c# namespace AjErl.Console { using System; using System.Collections.Generic; using System.Linq; using System.Text; using AjErl.Compiler; using AjErl.Expressions; public class Program { public static void Main(string[] args) { Console.WriteLin...
9d96a69b-962e-4125-b21c-4b0c8488f52b
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Game.Graphics; using osu.Game.Overlays.Dialog; namespace osu.Game.Screens.Select { public class ImportFromStablePopup : Popu...
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Game.Graphics; using osu.Game.Overlays.Dialog; namespace osu.Game.Screens.Select { public class ImportFromStablePopup : Popu...
1bd08109-efe9-4a61-bb3a-84dcc9aa3a17
{ "language": "C#" }
```c# using System.Reflection; // common assembly attributes [assembly: AssemblyDescription("Lean Engine is an open-source, plataform agnostic C# and Python algorithmic trading engine. " + "Allows strategy research, backtesting and live trading with Equities, FX, CFD, Crypto, Options an...
```c# using System.Reflection; // common assembly attributes [assembly: AssemblyDescription("Lean Engine is an open-source, platform agnostic C# and Python algorithmic trading engine. " + "Allows strategy research, backtesting and live trading with Equities, FX, CFD, Crypto, Options and...
7461acec-afe6-477e-ae3e-4b79164bfed0
{ "language": "C#" }
```c# namespace OmniSharp { internal static class Configuration { public static bool ZeroBasedIndices = false; public const string RoslynVersion = "2.1.0.0"; public const string RoslynPublicKeyToken = "31bf3856ad364e35"; public readonly static string RoslynFeatures = GetRoslynA...
```c# namespace OmniSharp { internal static class Configuration { public static bool ZeroBasedIndices = false; public const string RoslynVersion = "2.3.0.0"; public const string RoslynPublicKeyToken = "31bf3856ad364e35"; public readonly static string RoslynFeatures = GetRoslynA...
b018ab84-a108-4f8d-a3ec-a1eb84be9b42
{ "language": "C#" }
```c# //----------------------------------------------------------------------- // <copyright file="Program.cs" company="Brian Rogers"> // Copyright (c) Brian Rogers. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace ProcessSample { us...
```c# //----------------------------------------------------------------------- // <copyright file="Program.cs" company="Brian Rogers"> // Copyright (c) Brian Rogers. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace ProcessSample { us...
f20dec8b-841a-4c39-b643-06ae747ff3af
{ "language": "C#" }
```c# @{ ViewData["Title"] = "Home Page"; } .<div class="row"> <div class="col-xs-12"> <div bs-progress-min="1" bs-progress-max="5" bs-progress-value="4"> </div> </div> </div> ``` Use updated TagHelper on home page
```c# @{ ViewData["Title"] = "Home Page"; } <div class="row"> <div class="col-xs-6 col-md-4"> <div href="#" class="thumbnail"> <h3>Progress Bar Default</h3> <p> <code>progress-bar</code> </p> <div bs-progress-min="1" bs-progress-max="100" bs-pr...
00002c4a-fcd3-4aef-a481-6ec27b365477
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; namespace Hangman { public class Game { public string Word; private List<char> GuessedLetters; private string StatusMessage; public Game(string word) { Word = word; GuessedLetters = new List<char>(); StatusMes...
```c# using System; using System.Collections.Generic; using System.Text; namespace Hangman { public class Game { public string Word; private List<char> GuessedLetters; private string StatusMessage; public Game(string word) { Word = word; GuessedLetters = new List<char>(); StatusMes...
1e3c7e2f-98da-40cf-919b-2efe79c00ab1
{ "language": "C#" }
```c# namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Post; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Objects.Get.Users.Lists...
```c# namespace TraktApiSharp.Tests.Experimental.Requests.Users.OAuth { using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using TraktApiSharp.Experimental.Requests.Base.Post; using TraktApiSharp.Experimental.Requests.Users.OAuth; using TraktApiSharp.Objects.Get.Users.Lists...
1939462c-2a30-43b5-829c-771e43e500cb
{ "language": "C#" }
```c# using System.Linq; using NUnit.Framework; using Shouldly; using StructureMap; namespace JustSaying.IntegrationTests.WhenRegisteringHandlersViaResolver { public class WhenRegisteringABlockingHandlerViaContainer : GivenAPublisher { private BlockingOrderProcessor _resolvedHandler; protected...
```c# using System.Linq; using JustSaying.Messaging.MessageHandling; using NUnit.Framework; using Shouldly; using StructureMap; namespace JustSaying.IntegrationTests.WhenRegisteringHandlersViaResolver { public class WhenRegisteringABlockingHandlerViaContainer : GivenAPublisher { private BlockingOrderPr...
e95a036c-07b0-4415-a698-b9d8f047393a
{ "language": "C#" }
```c# using System; namespace ReadLine { public static class ReadLine { private static KeyHandler _keyHandler; static ReadLine() { _keyHandler = new KeyHandler(); } public static string Read() { ConsoleKeyInfo keyInfo = Console.ReadKey(...
```c# using System; namespace ReadLine { public static class ReadLine { private static KeyHandler _keyHandler; public static string Read() { _keyHandler = new KeyHandler(); ConsoleKeyInfo keyInfo = Console.ReadKey(true); while (keyInfo.Key != Consol...