doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
f540f2f3-fb7a-4644-a01e-d49b62020c12
{ "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.Game.Rulesets.Judgements; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Mania.Judgements { public class ManiaJudgement : Judgement ...
```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.Game.Rulesets.Judgements; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Mania.Judgements { public class ManiaJudgement : Judgement ...
90d9fee9-db30-45a8-b9e9-b97d75674710
{ "language": "C#" }
```c# using System; using System.IO; using System.Reflection; using System.Windows.Forms; namespace VigilantCupcake.SubForms { partial class AboutBox : Form { public AboutBox() { InitializeComponent(); this.Text = String.Format("About {0}", AssemblyTitle); this.labelP...
```c# using System; using System.IO; using System.Reflection; using System.Windows.Forms; namespace VigilantCupcake.SubForms { partial class AboutBox : Form { public AboutBox() { InitializeComponent(); this.Text = String.Format("About {0}", AssemblyTitle); this.labelP...
7abe9e92-1120-4705-a6b3-d7e8432b3760
{ "language": "C#" }
```c# using System; using System.Net.Http; using System.Windows; using SwitchClient.Classic; using SwitchClient.Hyper; namespace WpfSwitchClient { public partial class App : Application { protected override void OnStartup(StartupEventArgs e) { var client = new HttpClient() ...
```c# using System; using System.Net.Http; using System.Windows; using SwitchClient.Classic; using SwitchClient.Hyper; namespace WpfSwitchClient { public partial class App : Application { protected override void OnStartup(StartupEventArgs e) { var client = new HttpClient() ...
d399fbb3-3b8e-4f5f-9b53-26e950e4513e
{ "language": "C#" }
```c# using System; using System.Security.Claims; using System.Web.Helpers; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; using FluentValidation.Mvc; using Microsoft.ApplicationInsights; using Microsoft.ApplicationInsights.Extensibility; using Microsoft.Azure; using NLog; using NLog.Ta...
```c# using System; using System.Security.Claims; using System.Web; using System.Web.Helpers; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; using FluentValidation.Mvc; using Microsoft.ApplicationInsights; using Microsoft.ApplicationInsights.Extensibility; using Microsoft.Azure; using N...
4c4ca10e-8093-4247-bf1d-8222efcd2649
{ "language": "C#" }
```c# @inherits UmbracoViewPage<BlockListModel> @using Umbraco.Core.Models.Blocks @{ if (Model?.Layout == null || !Model.Layout.Any()) { return; } } <div class="umb-block-list"> @foreach (var layout in Model.Layout) { if (layout?.Udi == null) { continue; } var data = layout.Data; ...
```c# @inherits UmbracoViewPage<BlockListModel> @using Umbraco.Core.Models.Blocks @{ if (!Model.Any()) { return; } } <div class="umb-block-list"> @foreach (var block in Model) { if (block?.ContentUdi == null) { continue; } var data = block.Content; @Html.Partial("BlockList...
4052077c-9a3f-47bf-9d3c-65daa43a1687
{ "language": "C#" }
```c# using System; namespace PcscDotNet { public class PcscContext : IDisposable { private SCardContext _context; private readonly Pcsc _pcsc; private readonly IPcscProvider _provider; public bool IsDisposed { get; private set; } = false; public bool IsEstablished =...
```c# using System; namespace PcscDotNet { public class PcscContext : IDisposable { private SCardContext _handle; private readonly Pcsc _pcsc; private readonly IPcscProvider _provider; public bool IsDisposed { get; private set; } = false; public bool IsEstablished =>...
a097d0be-8ce4-45ca-bbad-e84906ce07eb
{ "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.Cursor; using osu.Framework.Localisation; using osu.Game.Graphics.UserIn...
```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.Cursor; using osu.Framework.Localisation; using osu.Game.Graphics.UserIn...
fd182449-d7c2-47ff-bc17-9e363d1a05fa
{ "language": "C#" }
```c# namespace GitFlowVersion { using System.IO; public class GitDirFinder { public static string TreeWalkForGitDir(string currentDirectory) { while (true) { var gitDir = Path.Combine(currentDirectory, @".git"); if (Directory.Exists...
```c# namespace GitFlowVersion { using System.IO; using LibGit2Sharp; public class GitDirFinder { public static string TreeWalkForGitDir(string currentDirectory) { string gitDir = Repository.Discover(currentDirectory); if (gitDir != null) { ...
d49e3da0-af2c-4739-84bf-8d941d14bb70
{ "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 Android.App; using Android.Content.PM; using Android.OS; using Android.Views; using osu.Framework.Android; namespace osu.Android { [Activity(Theme = "@a...
```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 Android.App; using Android.Content.PM; using Android.OS; using Android.Views; using osu.Framework.Android; namespace osu.Android { [Activity(Theme = "@a...
97d6fab5-8982-4a7c-a992-66600d0c5437
{ "language": "C#" }
```c# using WootzJs.Mvc.Mvc.Views.Css; using WootzJs.Web; namespace WootzJs.Mvc.Mvc.Views { public class Image : InlineControl { public Image() { } public Image(string source) { Source = source; } public Image(string defaultSource, string h...
```c# using WootzJs.Mvc.Mvc.Views.Css; using WootzJs.Web; namespace WootzJs.Mvc.Mvc.Views { public class Image : InlineControl { public Image() { } public Image(string source, int? width = null, int? height = null) { Source = source; if (width !...
aba52c69-175a-4a86-a265-a15ff7c45e84
{ "language": "C#" }
```c# using System.Threading.Tasks; using Microsoft.AspNet.SignalR; using Microsoft.Owin; using Foundation.Api.Middlewares.SignalR.Contracts; namespace Foundation.Api.Middlewares.SignalR { public class MessagesHub : Hub { public override async Task OnConnected() { IOwinContext cont...
```c# using System.Threading.Tasks; using Microsoft.AspNet.SignalR; using Microsoft.Owin; using Foundation.Api.Middlewares.SignalR.Contracts; namespace Foundation.Api.Middlewares.SignalR { public class MessagesHub : Hub { public override async Task OnConnected() { try {...
d8b764e0-ddbe-475f-b84f-b41c11fec66c
{ "language": "C#" }
```c# using System.Runtime.InteropServices; namespace RebirthTracker { /// <summary> /// Class to keep track of OS-specific configuration settings /// </summary> public static class Configuration { /// <summary> /// Get the folder where files should be stored /// </summary>...
```c# using System.Runtime.InteropServices; namespace RebirthTracker { /// <summary> /// Class to keep track of OS-specific configuration settings /// </summary> public static class Configuration { /// <summary> /// Get the folder where files should be stored /// </summary>...
81ddaedb-09d4-4ddc-94e9-4c6fdd9f9e78
{ "language": "C#" }
```c# using System; using System.Text; using P2E.Interfaces.Services; namespace P2E.Services { public class UserCredentialsService : IUserCredentialsService { // Syncs console output/input between instance so that only one // instance can request user credentials at any time. private ...
```c# using System; using System.Text; using P2E.Interfaces.Services; namespace P2E.Services { public class UserCredentialsService : IUserCredentialsService { // TODO - revert that stuipd locking idea and introduce a Credentials class instead. // Syncs console output/input between instance so...
45fc3a36-2681-4338-b3d8-46fd25d0cf7c
{ "language": "C#" }
```c# // Copyright 2019 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using JetBrains.Annotations; using Nuke.Common.OutputSinks; using Nuke.Common.Utilities; namespace Nuke....
```c# // Copyright 2019 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using JetBrains.Annotations; using Nuke.Common.OutputSinks; using Nuke.Common.U...
16bbe3a0-7a7b-4dab-b3d6-a4a6c541cf59
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using Windows.UI.StartScreen; using ParkenDD.Api.Models; namespace ParkenDD.Services { public class JumpListService { private readonly ResourceService _resources; private const string ArgumentFormat = "city={0}...
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using Windows.UI.StartScreen; using ParkenDD.Api.Models; namespace ParkenDD.Services { public class JumpListService { private readonly ResourceService _resources; private const string ArgumentFormat = "city={0}...
23a7d1bc-3739-4c4a-81c5-6fee12bf5d55
{ "language": "C#" }
```c# using System; using System.Drawing; using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; using Eto.Forms; namespace Eto.Test.Mac { class Startup { static void Main (string [] args) { AddStyles (); var generator = new Eto.Platform.Mac.Generator (); var app = new TestAp...
```c# using System; using System.Drawing; using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; using Eto.Forms; namespace Eto.Test.Mac { class Startup { static void Main (string [] args) { AddStyles (); var generator = new Eto.Platform.Mac.Generator (); var app = new TestAp...
9602ade7-f4cc-406b-9581-2ff534ae7eec
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using System.Web; using System.Web.Http; using System.Web.Http.Controllers; using DragonContracts.Models; using Raven.Client; using Raven.Client.Document; using Raven.Cl...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using System.Web; using System.Web.Http; using System.Web.Http.Controllers; using DragonContracts.Models; using Raven.Client; using Raven.Client.Document; using Raven.Cl...
768448be-58ff-4f41-ba7d-dd649f516717
{ "language": "C#" }
```c# #region Usings using System.Linq; using System.Web.Mvc; using NUnit.Framework; using WebApplication.Controllers; using WebApplication.Models; #endregion namespace UnitTests { [TestFixture] public class UnitTest1 { [Test] public void TestMethod1() { var formColle...
```c# #region Usings using NUnit.Framework; #endregion namespace UnitTests { [TestFixture] public class UnitTest1 { [Test] public void TestMethod1() { Assert.True(true); } } }```
5a9ddeb7-38e2-4775-8812-9e019e12c939
{ "language": "C#" }
```c# using System; using System.Diagnostics; namespace NuGetConsole.Implementation.PowerConsole { /// <summary> /// Represents a host with extra info. /// </summary> class HostInfo : ObjectWithFactory<PowerConsoleWindow> { Lazy<IHostProvider, IHostMetadata> HostProvider { get; set; } ...
```c# using System; using System.Diagnostics; namespace NuGetConsole.Implementation.PowerConsole { /// <summary> /// Represents a host with extra info. /// </summary> class HostInfo : ObjectWithFactory<PowerConsoleWindow> { Lazy<IHostProvider, IHostMetadata> HostProvider { get; set; } ...
8c3d7083-af2f-499c-a78d-859c3bcd3f22
{ "language": "C#" }
```c# using UnityEngine; using UnityEditor; namespace UnityBuild { public abstract class BuildSettings { public abstract string binName { get; } public abstract string binPath { get; } public abstract string[] scenesInBuild { get; } public abstract string[] copyToBuild { get; } //// The name of ...
```c# using UnityEngine; using UnityEditor; namespace UnityBuild { public abstract class BuildSettings { public abstract string binName { get; } public abstract string binPath { get; } public abstract string[] scenesInBuild { get; } public abstract string[] copyToBuild { get; } public virtual vo...
6a486fcc-08ec-494b-84f0-2b5fb0aa9681
{ "language": "C#" }
```c# using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LBD2OBJLib.Types { class FixedPoint { public int IntegralPart { get; set; } public int DecimalPart { get; set; } public FixedPoint(byte[] data) { ...
```c# using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LBD2OBJLib.Types { class FixedPoint { public int IntegralPart { get; set; } public int DecimalPart { get; set; } const byte SIGN_MASK = 128; const by...
679e4fd3-9ec0-44b4-882c-8f87d983dbbc
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Platform; using osu.Framework; namespace SampleGame.Desktop { public static class Program { [STAThread] ...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Linq; using osu.Framework; using osu.Framework.Platform; namespace SampleGame.Desktop { public static class Program { [...
ac607b1a-ed02-46d3-b8e3-0f5180ce5e7b
{ "language": "C#" }
```c# using System.Windows.Forms; namespace Palaso.UI.WindowsForms.WritingSystems { public partial class WSPropertiesTabControl : UserControl { private WritingSystemSetupModel _model; public WSPropertiesTabControl() { InitializeComponent(); } public void BindToModel(WritingSystemSetupModel model) { ...
```c# using System; using System.Windows.Forms; namespace Palaso.UI.WindowsForms.WritingSystems { public partial class WSPropertiesTabControl : UserControl { private WritingSystemSetupModel _model; public WSPropertiesTabControl() { InitializeComponent(); } public void BindToModel(WritingSystemSetupMod...
974c170e-726c-489b-9898-9d6c5b40ab82
{ "language": "C#" }
```c# namespace TensorSharp.Operations { using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MultiplyIntegerIntegerOperation : IBinaryOperation<int, int, int> { public Tensor<int> Evaluate(Tensor<int> tensor1, Tensor<int> tensor2)...
```c# namespace TensorSharp.Operations { using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MultiplyIntegerIntegerOperation : IBinaryOperation<int, int, int> { public Tensor<int> Evaluate(Tensor<int> tensor1, Tensor<int> tensor2)...
81d3ce9a-d959-40b6-906f-5f4d2a20cda1
{ "language": "C#" }
```c# using System; using System.Linq; using System.Threading; using Moq; using SignalR.Client.Transports; using SignalR.Hosting.Memory; using Xunit; namespace SignalR.Client.Tests { public class ConnectionFacts { public class Start { [Fact] public void FailsIfProtocolV...
```c# using System; using System.Linq; using System.Threading; using Moq; using SignalR.Client.Transports; using SignalR.Hosting.Memory; using Xunit; namespace SignalR.Client.Tests { public class ConnectionFacts { public class Start { [Fact] public void FailsIfProtocolV...
9d2b1fef-47ef-4cf0-8186-bd3ac32161b9
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Baseline; using Confluent.Kafka; using Jasper.Configuration; using Jasper.Runtime.Routing; namespace Jasper.ConfluentKafka.Internal { public class KafkaTopicRouter : TopicRouter<KafkaSubscriberConfiguration> { //Dictionary<Uri, ProducerConfig>...
```c# using System; using Baseline; using Jasper.Configuration; using Jasper.Runtime.Routing; namespace Jasper.ConfluentKafka.Internal { public class KafkaTopicRouter : TopicRouter<KafkaSubscriberConfiguration> { public override Uri BuildUriForTopic(string topicName) { var endpoint ...
b1592876-e366-49e9-b3e2-a879527b7fb8
{ "language": "C#" }
```c# using System.IO; using MiniCover.Model; using Newtonsoft.Json; namespace MiniCover.CommandLine.Options { class CoverageLoadedFileOption : CoverageFileOption { public InstrumentationResult Result { get; private set; } protected override FileInfo PrepareValue(string value) { ...
```c# using System.IO; using MiniCover.Exceptions; using MiniCover.Model; using Newtonsoft.Json; namespace MiniCover.CommandLine.Options { class CoverageLoadedFileOption : CoverageFileOption { public InstrumentationResult Result { get; private set; } protected override FileInfo PrepareValue(...
121be4dd-b641-4de6-9edd-a2239a6c6d77
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; using Zenject; public class FollowTarget : MonoBehaviour { [Inject] public ForceSelector ForceSelector { get; set; } public Rigidbody targetRb; public float distanceToReset = 0.1f; public float velocityThresh; ...
```c# using System; using System.Collections; using System.Collections.Generic; using UniRx; using UnityEngine; using Zenject; public class FollowTarget : MonoBehaviour { [Inject] public ForceSelector ForceSelector { get; set; } public Rigidbody targetRb; public float velocityThresh; public float...
ea52fb27-fdd3-44ee-b16e-88de70efa435
{ "language": "C#" }
```c# using Bands.Output; using System; namespace Bands.GettingStarted { class Program { static void Main(string[] args) { Console.WriteLine("Getting started with Bands!"); var payload = new CounterPayload(); var innerConsoleBand = new ConsoleWriterBand<Coun...
```c# using Bands.Output; using System; namespace Bands.GettingStarted { class Program { static void Main(string[] args) { Console.WriteLine("Getting started with Bands!"); var payload = new CounterPayload(); var innerConsoleBand = new ConsoleWriterBand<Coun...
ba41e364-8f21-4bd3-af07-8a29122d2a37
{ "language": "C#" }
```c# using NUnit.Framework; using System; using System.Linq.Expressions; using TestStack.FluentMVCTesting.Internal; namespace TestStack.FluentMVCTesting.Tests.Internal { [TestFixture] public class ExpressionInspectorShould { [Test] public void Correctly_parse_equality_comparison_with_stri...
```c# using NUnit.Framework; using System; using System.Linq.Expressions; using TestStack.FluentMVCTesting.Internal; namespace TestStack.FluentMVCTesting.Tests.Internal { [TestFixture] public class ExpressionInspectorShould { [Test] public void Correctly_parse_equality_comparison_with_stri...
4c6beeb3-da89-420f-9e36-ef902dc2e791
{ "language": "C#" }
```c# using indice.Edi.Serialization; using System; using System.Collections.Generic; namespace indice.Edi.Tests.Models { public class Interchange_ORDRSP { public Message_ORDRSP Message { get; set; } } [EdiMessage] public class Message_ORDRSP { [EdiCondition("Z01", Path = "I...
```c# using indice.Edi.Serialization; using System; using System.Collections.Generic; namespace indice.Edi.Tests.Models { public class Interchange_ORDRSP { public Message_ORDRSP Message { get; set; } } [EdiMessage] public class Message_ORDRSP { [EdiCondition("Z01", "Z10", Pa...
be52240b-712b-4776-91d3-a62ed933e0eb
{ "language": "C#" }
```c# using System; using System.Diagnostics; using Serilog; using Topshelf; namespace Thinktecture.Relay.OnPremiseConnectorService { internal static class Program { private static void Main(string[] args) { Log.Logger = new LoggerConfiguration() .ReadFrom.AppSettings() .CreateLogger(); try { ...
```c# using System; using System.Diagnostics; using Serilog; using Topshelf; namespace Thinktecture.Relay.OnPremiseConnectorService { internal static class Program { private static void Main(string[] args) { Log.Logger = new LoggerConfiguration() .ReadFrom.AppSettings() .CreateLogger(); try { ...
85a471eb-481b-49f8-a807-515732dd8abf
{ "language": "C#" }
```c# namespace Suriyun.UnityIAP { public class IAPNetworkMessageId { public const short ToServerBuyProductMsgId = 3000; public const short ToServerRequestProducts = 3001; public const short ToClientResponseProducts = 3002; } } ``` Set message id by official's highest
```c# using UnityEngine.Networking; namespace Suriyun.UnityIAP { public class IAPNetworkMessageId { // Developer can changes these Ids to avoid hacking while hosting public const short ToServerBuyProductMsgId = MsgType.Highest + 201; public const short ToServerRequestProducts = MsgType...
9786ad76-9d42-4044-9ca3-a3c85077cae5
{ "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.Graphics; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Mania.Objects.Drawabl...
```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.Graphics; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Mania.Objects.Drawabl...
6bfee597-c197-4717-b182-2e8eb38c2aae
{ "language": "C#" }
```c# using RimWorld; using Verse; namespace PrepareLanding.Defs { /// <summary> /// This class is called from a definition file when clicking the "World" button on the bottom menu bar while playing /// (see "PrepareLanding/Defs/Misc/MainButtonDefs/MainButtons.xml"). /// </summary> public class M...
```c# using RimWorld; using Verse; namespace PrepareLanding.Defs { /// <summary> /// This class is called from a definition file when clicking the "World" button on the bottom menu bar while playing /// (see "PrepareLanding/Defs/Misc/MainButtonDefs/MainButtons.xml"). /// </summary> public class M...
1c83a4f4-09a4-481b-a0c9-9290aaf9228c
{ "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.Configuration; namespace osu.Game.Overlays.Settings.Sections.Gameplay { public 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.Configuration; namespace osu.Game.Overlays.Settings.Sections.Gameplay { public c...
c7e5a9bf-9c19-4257-bb15-b5117b430255
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using Mirage.Urbanization.ZoneStatisticsQuerying; using System.Collections.Immutable; namespace Mirage.Urbanization.Simulation.Persistence { public class PersistedCityStatisticsCollection { private ImmutableQueue<PersistedCityStatisticsWithFina...
```c# using System.Collections.Generic; using System.Linq; using Mirage.Urbanization.ZoneStatisticsQuerying; using System.Collections.Immutable; namespace Mirage.Urbanization.Simulation.Persistence { public class PersistedCityStatisticsCollection { private ImmutableQueue<PersistedCityStatisticsWithFina...
a3b22100-9c6a-4218-a711-e8057b39dfa2
{ "language": "C#" }
```c# using FlaUI.Core.Definitions; using FlaUI.Core.Patterns; namespace FlaUI.Core.AutomationElements.PatternElements { /// <summary> /// An element that supports the <see cref="IExpandCollapsePattern"/>. /// </summary> public class ExpandCollapseAutomationElement : AutomationElement { pu...
```c# using FlaUI.Core.Definitions; using FlaUI.Core.Patterns; namespace FlaUI.Core.AutomationElements.PatternElements { /// <summary> /// An element that supports the <see cref="IExpandCollapsePattern"/>. /// </summary> public class ExpandCollapseAutomationElement : AutomationElement { pu...
19511e59-5d64-46e6-8054-a8296028c6ee
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Core.Logging; using DAL; using Serilog.Events; using Telegram.Bot; namespace Core.Services.Crosspost { public class TelegramCrosspostService : ICrossPostService { private readonly Core.Logging.I...
```c# using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Core.Logging; using DAL; using Serilog.Events; using Telegram.Bot; namespace Core.Services.Crosspost { public class TelegramCrosspostService : ICrossPostService { private readonly Core.Logging.I...
dd4d8b5e-06b9-4cbb-a9a7-402bea098c5a
{ "language": "C#" }
```c# using System.IO; namespace OmniSharp.DotNetTest.Helpers { internal class ProjectPathResolver { public static string GetProjectPathFromFile(string filepath) { // TODO: revisit this logic, too clumsy var projectFolder = Path.GetDirectoryName(filepath); w...
```c# using System.IO; namespace OmniSharp.DotNetTest.Helpers { internal class ProjectPathResolver { public static string GetProjectPathFromFile(string filepath) { // TODO: revisit this logic, too clumsy var projectFolder = Path.GetDirectoryName(filepath); w...
b02fb6b7-48a1-4967-be4a-ddd9570a3104
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using NUnit.Framework; using osu.Framework.Graphics; using osu.Game.Rulesets; using osu.Game.Rulesets.Osu; namespace osu.Game.Tests.Visual.Gamep...
```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.Graphics; using osu.Game.Rulesets; using osu.Game.Rulesets.Osu; using osu.Game.Skinning; namespace osu.Game.Tests.Visual...
1918cbac-47d9-4a42-a440-8ad94e4e0d41
{ "language": "C#" }
```c# using AutoMapper; using Umbraco.Core.Models; using Umbraco.Web.Composing; using Umbraco.Web.Models.ContentEditing; using Umbraco.Web.Routing; namespace Umbraco.Web.Models.Mapping { internal class RedirectUrlMapperProfile : Profile { public RedirectUrlMapperProfile(IUmbracoContextAccessor umbrac...
```c# using AutoMapper; using Umbraco.Core.Models; using Umbraco.Web.Composing; using Umbraco.Web.Models.ContentEditing; using Umbraco.Web.Routing; namespace Umbraco.Web.Models.Mapping { internal class RedirectUrlMapperProfile : Profile { public RedirectUrlMapperProfile(IUmbracoContextAccessor umbrac...
edcc8ea2-d9df-49fb-861d-b33ca444de67
{ "language": "C#" }
```c# using CommandLine; using CSharpLLVM.Compilation; using System.IO; namespace CSharpLLVM { class Program { /// <summary> /// Entrypoint. /// </summary> /// <param name="args">Arguments.</param> static void Main(string[] args) { Options options = ...
```c# using CommandLine; using CSharpLLVM.Compilation; using System; using System.IO; namespace CSharpLLVM { class Program { /// <summary> /// Entrypoint. /// </summary> /// <param name="args">Arguments.</param> static void Main(string[] args) { Opti...
a6ff90d6-e878-4eb7-80e0-a36f6d9d6d06
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace Snowflake.Ajax { public class JSResponse : IJSResponse { public IJSRequest Request { get; private set; } public dynamic Payload { get; priv...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace Snowflake.Ajax { public class JSResponse : IJSResponse { public IJSRequest Request { get; private set; } public dynamic Payload { get; priv...
7f819f54-bed7-4bc0-ad9f-f423e0a7e8d7
{ "language": "C#" }
```c# using System.Web.Mvc; using System.Net; using Newtonsoft.Json; using System.IO; using System.Collections.Generic; using Newtonsoft.Json.Linq; using System.Linq; using System.Web.Caching; using System; namespace Website.Controllers { public class HomeController : Controller { public...
```c# using System; using System.Collections.Generic; using System.Net; using System.Web.Caching; using System.Web.Mvc; using Newtonsoft.Json; namespace Website.Controllers { public class HomeController : Controller { public ActionResult Index() { return View(); ...
1422cd7f-6d91-4c60-a832-ddee7558e141
{ "language": "C#" }
```c# using System.Reflection; // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision [assembly: AssemblyVersion("6.1.*")] [assembly: AssemblyFileVersion("6.1.*")]``` Change version number for breaking chang...
```c# using System.Reflection; // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision [assembly: AssemblyVersion("6.2.*")] [assembly: AssemblyFileVersion("6.2.*")]```
5329131a-51e8-4a92-88b2-0ca082507fef
{ "language": "C#" }
```c# // ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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://w...
```c# // ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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://w...
66d45c09-a57a-4e0e-be53-05f70199af1b
{ "language": "C#" }
```c# @using CkanDotNet.Api.Model @using CkanDotNet.Web.Models @using CkanDotNet.Web.Models.Helpers @model Package @{ bool editable = Convert.ToBoolean(ViewData["editable"]); string ratingId = GuidHelper.GetUniqueKey(16); } @if (Model.RatingsAverage.HasValue || editable) { <div id="@ratingId" class="rating">...
```c# @using CkanDotNet.Api.Model @using CkanDotNet.Web.Models @using CkanDotNet.Web.Models.Helpers @model Package @{ bool editable = Convert.ToBoolean(ViewData["editable"]); string ratingId = GuidHelper.GetUniqueKey(16); } @if (Model.RatingsAverage.HasValue || editable) { <div id="@ratingId" class="rating">...
6a0cdc8b-a28e-447e-b727-eeb92ed695ff
{ "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 EOLib; using Microsoft.Xna.Framework; using XNAControls; namespace EndlessClient.UIControls { public class StatusB...
```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 EOLib; using Microsoft.Xna.Framework; using XNAControls; namespace EndlessClient.UIControls { public class StatusB...
469f8328-d7d7-47ab-9e91-a7e4176aeba9
{ "language": "C#" }
```c# using System; using System.ServiceModel.Channels; namespace Microsoft.ApplicationInsights.Wcf.Implementation { internal static class WcfExtensions { public static HttpRequestMessageProperty GetHttpRequestHeaders(this IOperationContext operation) { if ( operation.HasIncomingMe...
```c# using System; using System.ServiceModel.Channels; namespace Microsoft.ApplicationInsights.Wcf.Implementation { internal static class WcfExtensions { public static HttpRequestMessageProperty GetHttpRequestHeaders(this IOperationContext operation) { try { ...
7e6bbcb4-6f6c-4439-87be-75d12991c0ff
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Arf.Services; using Microsoft.ProjectOxford.Vision.Contract; namespace Arf.Console { class Program { public static bool IsProcessing; public static void Main(string[]...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Arf.Services; using Microsoft.ProjectOxford.Vision.Contract; namespace Arf.Console { class Program { public static bool IsProcessing; public static void Main(string[]...
3117b6df-8003-493d-8583-7097f95d4786
{ "language": "C#" }
```c# using System; namespace DarkMultiPlayerServer { public class DarkLog { public static void Debug(string message) { #if DEBUG float currentTime = Server.serverClock.ElapsedMilliseconds / 1000f; Console.WriteLine("[" + currentTime + "] Debug: " + message); #endif ...
```c# using System; namespace DarkMultiPlayerServer { public class DarkLog { public static void Debug(string message) { float currentTime = Server.serverClock.ElapsedMilliseconds / 1000f; Console.WriteLine("[" + currentTime + "] Debug: " + message); } pub...
e3880579-cef5-460c-b3e2-f7aa7e10b8b9
{ "language": "C#" }
```c# using static System.Console; using CIV.Ccs; using CIV.Interfaces; namespace CIV { class Program { static void Main(string[] args) { var text = System.IO.File.ReadAllText(args[0]); var processes = CcsFacade.ParseAll(text); var trace = CcsFacade.RandomTrace(proce...
```c# using static System.Console; using CIV.Ccs; using CIV.Hml; namespace CIV { class Program { static void Main(string[] args) { var text = System.IO.File.ReadAllText(args[0]); var processes = CcsFacade.ParseAll(text); var hmlText = "[[ack]][[ack]][[ack]](<<ack>>tt and [[fre...
021ea8ff-0a3d-4dbc-a0a0-91e991f0b5d4
{ "language": "C#" }
```c# To: @Model.To From: example@website.com Reply-To: another@website.com Subject: @Model.Subject @* NOTE: There MUST be a blank like after the headers and before the content. *@ Hello, This email was generated using Postal for asp.net mvc on @Model.Date.ToShortDateString() Message follows: @Model.Message ...
```c# To: @Model.To From: example@website.com Reply-To: another@website.com Subject: @Model.Subject @* NOTE: There MUST be a blank line after the headers and before the content. *@ Hello, This email was generated using Postal for asp.net mvc on @Model.Date.ToShortDateString() Message follows: @Model.Message ...
825bab8d-541b-440a-92af-4f7f82cdf50c
{ "language": "C#" }
```c# // Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; using System.Linq; /// <summary> /// A class representing t...
```c# // Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; /// <summary> /// A class representing the solution to <c>https...
0d7c078e-c0cf-438c-84c1-3f5dc28f50eb
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml.Data; namespace TramlineFive.Common.Converters { public class TimingConverter : IValueConverter { public object Convert(object value, Type targetType, object ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml.Data; namespace TramlineFive.Common.Converters { public class TimingConverter : IValueConverter { public object Convert(object value, Type targetType, object ...
19cf9e0f-ddf6-4ef1-9563-9da6b47bd0cf
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Metrics.Reporters.GoogleAnalytics.Tracker.Model.MeasurementProtocol; using Metrics.Reporters.GoogleAnalytics.Tracker.Model.MeasurementProtocol.Values; namespace Metrics.Reporters.GoogleAnaly...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Metrics.Reporters.GoogleAnalytics.Tracker.Model.MeasurementProtocol; using Metrics.Reporters.GoogleAnalytics.Tracker.Model.MeasurementProtocol.Values; namespace Metrics.Reporters.GoogleAnaly...
cf8da6b6-75b2-4aa8-9299-d7dcf8c84c7f
{ "language": "C#" }
```c# using System; using System.Reflection; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using SilentHunter.FileFormats.Dat.Controllers; using SilentHunter.FileFormats.DependencyInjection; namespace SilentHunter.Controllers.Compiler.DependencyInjection { ...
```c# using System; using System.Reflection; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using SilentHunter.FileFormats.Dat.Controllers; using SilentHunter.FileFormats.DependencyInjection; namespace SilentHunter.Controllers.Compiler.DependencyInjection { ...
8e5c10d8-07fc-4fe0-96cd-79e9764fa257
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace LSDStay { public static class PSX { public static Process FindPSX() { Process psx = Process.GetProcessesByName("psxfin").FirstOrDefault(); return ps...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace LSDStay { public static class PSX { public static Process PSXProcess; public static IntPtr PSXHandle; public static bool FindPSX() { PSXProcess ...
fe7f23b3-9357-412e-9ffa-5b3185783332
{ "language": "C#" }
```c# using Xunit; namespace VulkanCore.Tests { public class SizeTest { [Fact] public void ImplicitConversions() { const int intVal = 1; const long longVal = 2; Size intSize = intVal; Size longSize = longVal; Assert.Equal(in...
```c# using Xunit; namespace VulkanCore.Tests { public class SizeTest { [Fact] public void ImplicitConversions() { const int intVal = 1; const long longVal = 2; Size intSize = intVal; Size longSize = longVal; Assert.Equal(in...
0b87e5cc-458f-46e6-ac56-7fd4f7a904c4
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArtificialNeuralNetwork { [Serializable] public class Neuron : INeuron { private readonly ISoma _soma; private readonly IAxon _axon; public Neuron(IS...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArtificialNeuralNetwork { [Serializable] public class Neuron : INeuron { private readonly ISoma _soma; private readonly IAxon _axon; private Neuron(I...
ef09f37c-739a-4e7a-a6cf-e9e163664d47
{ "language": "C#" }
```c# namespace Discore { public enum DiscordMessageType { Default = 0, RecipientAdd = 1, RecipientRemove = 2, Call = 3, ChannelNameChange = 4, ChannelIconChange = 5, ChannelPinnedMessage = 6, GuildMemberJoin = 7 } } ``` Add message types for...
```c# namespace Discore { public enum DiscordMessageType { Default = 0, RecipientAdd = 1, RecipientRemove = 2, Call = 3, ChannelNameChange = 4, ChannelIconChange = 5, ChannelPinnedMessage = 6, GuildMemberJoin = 7, UserPremiumGuildSubscript...
913d1ecd-b169-4cb9-ba14-763ceff57a3e
{ "language": "C#" }
```c# using NUnit.Framework; using Rivet.Operations; namespace Rivet.Test.Operations { [TestFixture] public sealed class NewUserDefinedFunctionTestFixture { const string SchemaName = "schemaName"; const string FunctionName = "functionName"; const string Definition = "as definition"; [SetUp] ...
```c# using NUnit.Framework; using Rivet.Operations; namespace Rivet.Test.Operations { [TestFixture] public sealed class NewUserDefinedFunctionTestFixture { const string SchemaName = "schemaName"; const string FunctionName = "functionName"; const string Definition = "as definition"; [SetUp] ...
721a59b5-e079-4a8c-9ae8-feeda035243a
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; using Grpc.Core; using Hello; namespace HelloServer { class HelloServerImpl : HelloService.HelloServiceBase { public override Task<HelloResp> SayHello(HelloReq request, ServerCallContext context) { return Task.FromResult(new HelloResp { Result = "Hey " + requ...
```c# using System; using System.Threading.Tasks; using Grpc.Core; using Hello; namespace HelloServer { class HelloServerImpl : HelloService.HelloServiceBase { public override Task<HelloResp> SayHello(HelloReq request, ServerCallContext context) { return Task.FromResult(new HelloResp { Result = "Hey, " + req...
f30ab874-be8c-4915-b3db-fe76b6e30e87
{ "language": "C#" }
```c# namespace Stripe { using Newtonsoft.Json; using Stripe.Infrastructure; public class ChargePaymentMethodDetailsCardThreeDSecure : StripeEntity { } } ``` Add basic fields in Charge's PMD 3DS field
```c# namespace Stripe { using Newtonsoft.Json; using Stripe.Infrastructure; public class ChargePaymentMethodDetailsCardThreeDSecure : StripeEntity { [JsonProperty("succeeded")] public bool Succeeded { get; set; } [JsonProperty("version")] public string Version { get; s...
899ab7fa-f2f5-4c55-899d-601eae7de593
{ "language": "C#" }
```c# using System.Text; using AzureStorage.Blob; using Common; namespace CompetitionPlatform.Data.AzureRepositories.Settings { public static class GeneralSettingsReader { public static T ReadGeneralSettings<T>(string connectionString, string container, string fileName) { var setti...
```c# using System.Net.Http; using System.Text; using AzureStorage.Blob; using Common; using Newtonsoft.Json; namespace CompetitionPlatform.Data.AzureRepositories.Settings { public static class GeneralSettingsReader { public static T ReadGeneralSettings<T>(string connectionString, string container, st...
e24dd198-a7b6-42c5-b5eb-9d7e2c12e890
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Configuration; using osu.Framework.Platform; namespace os...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Configuration; using osu.Framework.Platform; using osu.Fra...
447fda0b-8fbb-4c3b-b680-5da8ef98404e
{ "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.Objects.Drawables { public class DrawableSpinnerTick : DrawableOsuHitObject { public override bool DisplayResult => ...
```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; namespace osu.Game.Rulesets.Osu.Objects.Drawables { public class DrawableSpinnerTick : DrawableOsuHitObject { public ...
fa797716-2775-4894-880d-87cb32f6fe01
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace BlueprintBaseName._1 { public class Progra...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace BlueprintB...
f67090e6-f46a-4fbb-83e7-2bdc919f2216
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Data; using System.Linq; namespace NBi.GenbiL { class GenerationState { public DataTable TestCases { get; set; } public IEnumerable<string> Variables { get; set; } public string Template { get; set; } } ...
```c# using System; using System.Collections.Generic; using System.Linq; using NBi.Service; namespace NBi.GenbiL { public class GenerationState { public TestCasesManager TestCases { get; private set; } public TemplateManager Template { get; private set; } public SettingsMana...
14bf4a03-4f19-4cdb-8218-9e0696fa092b
{ "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.Linq; using osu.Framework.Development; using osu.Framework.Extensions.TypeExtensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Contai...
```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.Linq; using osu.Framework.Development; using osu.Framework.Extensions.TypeExtensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Contai...
8168667c-c7e7-4e47-803e-8c2c694109fd
{ "language": "C#" }
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Game.Online.Multiplayer; using osu.Game.Screens.Multi; namespace osu.Game.Screens.Select { public class MatchSongSelect : SongSelect,...
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Game.Online.Multiplayer; using osu.Game.Screens.Multi; namespace osu.Game.Screens.Select { public class MatchSongSelect : SongSelect,...
62f2930e-b171-4a3a-9630-d66e65cb9036
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FreecraftCore.Serializer; namespace Booma.Proxy { /// <summary> /// Payload sent when a client is begining a warp to a new area. /// Contains client ID information and information about t...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FreecraftCore.Serializer; namespace Booma.Proxy { /// <summary> /// Payload sent when a client is begining a warp to a new area. /// Contains client ID information and information about t...
c00b8d71-aef3-4088-b499-324efc3e4baf
{ "language": "C#" }
```c# using System; using System.Windows.Forms; using osu_StreamCompanion.Code.Core; using osu_StreamCompanion.Code.Helpers; namespace osu_StreamCompanion.Code.Modules.ModParser { public partial class ModParserSettings : UserControl { private Settings _settings; private bool init = true; ...
```c# using System; using System.Windows.Forms; using osu_StreamCompanion.Code.Core; using osu_StreamCompanion.Code.Helpers; namespace osu_StreamCompanion.Code.Modules.ModParser { public partial class ModParserSettings : UserControl { private Settings _settings; private bool init = true; ...
1bb1db1e-28b6-4ace-aab1-db8b8462c5c2
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; using Anagrams.Models; namespace Anagrams { // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visit http://go.microsoft.com/?LinkId=9394801 public class Mvc...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; using Anagrams.Models; namespace Anagrams { // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visit http://go.microsoft.com/?LinkId=9394801 public class Mvc...
189fc47f-ed39-4789-977d-7c6a66441f5d
{ "language": "C#" }
```c# using Avalonia.Data.Converters; using Avalonia.Media; using System; using System.Collections.Generic; using System.Globalization; using System.Text; using WalletWasabi.Gui.Controls.WalletExplorer; using WalletWasabi.Gui.Models; using WalletWasabi.Models.ChaumianCoinJoin; namespace WalletWasabi.Gui.Converters { ...
```c# using Avalonia.Data.Converters; using Avalonia.Media; using System; using System.Collections.Generic; using System.Globalization; using System.Text; using WalletWasabi.Gui.Controls.WalletExplorer; using WalletWasabi.Gui.Models; using WalletWasabi.Models.ChaumianCoinJoin; namespace WalletWasabi.Gui.Converters { ...
69b30aa3-839a-454b-bbfe-9b7f0033698c
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Threading.Tasks; namespace Mond.Libraries.Async { internal class Scheduler : TaskScheduler { private List<Task> _tasks; public Scheduler() { _tasks = new List<Task>(); } public void Run() { ...
```c# using System.Collections.Generic; using System.Threading.Tasks; namespace Mond.Libraries.Async { internal class Scheduler : TaskScheduler { private List<Task> _tasks; public Scheduler() { _tasks = new List<Task>(); } public void Run() { ...
6ead92aa-da3d-4990-92b2-2eb0e50b4265
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Resources; // 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...
dce25e08-a69b-4058-9b3f-62183ccdea97
{ "language": "C#" }
```c# using RimWorld; using UnityEngine; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MTW_AncestorSpirits { public static class AncestorUtils { public static int DaysToTicks(float days) { return Mathf.RoundToInt(days * GenDate.Tic...
```c# using Verse; using RimWorld; using UnityEngine; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MTW_AncestorSpirits { public static class AncestorUtils { public static int DaysToTicks(float days) { return Mathf.RoundToInt(days ...
30757074-2672-4132-9481-664e423a2c32
{ "language": "C#" }
```c# namespace Hypermedia.Client.Reader.ProblemJson { using System; using System.Net.Http; using global::Hypermedia.Client.Exceptions; using global::Hypermedia.Client.Resolver; using Newtonsoft.Json; public static class ProblemJsonReader { public static bool TryReadProblemJson(H...
```c# namespace Hypermedia.Client.Reader.ProblemJson { using System; using System.Net.Http; using global::Hypermedia.Client.Exceptions; using global::Hypermedia.Client.Resolver; using Newtonsoft.Json; public static class ProblemJsonReader { public static bool TryReadProblemJson(H...
93f24fba-9396-4118-ba17-39d8a37fe070
{ "language": "C#" }
```c# // // Program.cs // // Author: // Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com> // // Copyright (c) 2015 Benito Palacios Sánchez (c) 2015 // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // ...
```c# // // Program.cs // // Author: // Benito Palacios Sánchez (aka pleonex) <benito356@gmail.com> // // Copyright (c) 2015 Benito Palacios Sánchez (c) 2015 // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // ...
6aae15ff-30cd-404d-8869-3996a11b23f5
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTit...
1a80e0cb-a2ec-4eae-a705-47060ca174b4
{ "language": "C#" }
```c# using System.Diagnostics; using Sitecore.Configuration; using Sitecore.DataBlaster.Load.Sql; namespace Sitecore.DataBlaster.Load.Processors { public class SyncHistoryTable : ISyncInTransaction { public void Process(BulkLoadContext loadContext, BulkLoadSqlContext sqlContext) { ...
```c# using System.Diagnostics; using Sitecore.Configuration; using Sitecore.DataBlaster.Load.Sql; namespace Sitecore.DataBlaster.Load.Processors { public class SyncHistoryTable : ISyncInTransaction { public void Process(BulkLoadContext loadContext, BulkLoadSqlContext sqlContext) { ...
00cdffa9-9d83-4cfd-b368-0202316195ea
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Drawing; using System.IO; namespace GUI.Utils { internal static class Settings { public static List<string> GameSearchPaths { get; } = new List<string>(); public static Color BackgroundColor { get; set; } = Color.Black; public stat...
```c# using System.Collections.Generic; using System.Drawing; using System.IO; namespace GUI.Utils { internal static class Settings { public static List<string> GameSearchPaths { get; } = new List<string>(); public static Color BackgroundColor { get; set; } public static void Load() ...
2671dfb9-17bc-4989-a08f-210b3786cd06
{ "language": "C#" }
```c# using System.Collections.Generic; using System; namespace MicroORM.Entity { internal sealed class EntityInfo { internal EntityInfo() { this.EntityState = EntityState.None; this.EntityHashSet = new Dictionary<string, string>(); this.LastCallTime = DateT...
```c# using System; using System.Collections.Generic; using System.Linq; using MicroORM.Materialization; using MicroORM.Reflection; using MicroORM.Mapping; namespace MicroORM.Entity { internal sealed class EntityInfo { internal EntityInfo() { this.EntityState = EntityState.None; ...
4a42c728-aaad-4b24-9dfe-c1df3ce89a5e
{ "language": "C#" }
```c# using System; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; namespace Sawczyn.EFDesigner.EFModel { internal static class Messages { private static readonly string MessagePaneTitle = "Entity Framework Designer"; private static IVsOutputWindow _outputWindow; ...
```c# using System; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; namespace Sawczyn.EFDesigner.EFModel { internal static class Messages { private static readonly string MessagePaneTitle = "Entity Framework Designer"; private static IVsOutputWindow _outputWindow; ...
1926c1d5-9ffd-44d2-b07a-37ef9446dc67
{ "language": "C#" }
```c# using System; using System.Web; using System.Web.Mvc; using Orchard.DisplayManagement; using Orchard.DisplayManagement.Descriptors; using Orchard.Localization; using Orchard.Mvc.Html; namespace Orchard.Core.Common { public class Shapes : IShapeTableProvider { public Shapes() { T = NullLoc...
```c# using System; using System.Web; using System.Web.Mvc; using Orchard.DisplayManagement; using Orchard.DisplayManagement.Descriptors; using Orchard.Localization; using Orchard.Mvc.Html; namespace Orchard.Core.Common { public class Shapes : IShapeTableProvider { public Shapes() { T = NullLoc...
b33731c3-4274-4999-9842-615401e03704
{ "language": "C#" }
```c# using Arduino; using ArduinoWindowsRemoteControl.Repositories; using Core.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArduinoWindowsRemoteControl.Services { /// <summary> /// Service that returns parsers for di...
```c# using Arduino; using ArduinoWindowsRemoteControl.Repositories; using Core.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ArduinoWindowsRemoteControl.Services { /// <summary> /// Service that returns parsers for di...
5fa2ed5b-7093-4c01-95fa-7f7ab1089642
{ "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.Bindables; using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Scoring; namespace osu.Game.Rulesets.Os...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Bindables; using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Osu.Judgements; using osu.Game.Rulesets....
e24712a7-bc62-4b7e-ae7f-b2115cb849e6
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Statistics; using System; using System.Collections.Generic; using osu.Framework.Audio; namespace osu.Framework.Threading { public class Au...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Statistics; using System; using System.Collections.Generic; using osu.Framework.Audio; namespace osu.Framework.Threading { public class Au...
139f6c1a-5ed6-400d-80ee-bb3c25ec9b0d
{ "language": "C#" }
```c# // <copyright file="RavenDBViewModelHelper.cs" company="Cognisant"> // Copyright (c) Cognisant. All rights reserved. // </copyright> namespace CR.ViewModels.Persistence.RavenDB { /// <summary> /// Helper class used for code shared between <see cref="RavenDBViewModelReader"/> and <see cref="RavenDBViewMo...
```c# // <copyright file="RavenDBViewModelHelper.cs" company="Cognisant"> // Copyright (c) Cognisant. All rights reserved. // </copyright> namespace CR.ViewModels.Persistence.RavenDB { /// <summary> /// Helper class used for code shared between <see cref="RavenDBViewModelReader"/> and <see cref="RavenDBViewMo...
f477ec5f-538c-441f-b648-5216d64c80ae
{ "language": "C#" }
```c# @using CkanDotNet.Web.Models.Helpers <div class="container"> <h2 class="container-title">Comments</h2> <div class="container-content"> <div id="disqus_thread"></div> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var di...
```c# @using CkanDotNet.Web.Models.Helpers <div class="container"> <h2 class="container-title">Comments</h2> <div class="container-content"> <div id="disqus_thread"></div> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var di...
98ca1803-e614-487d-9007-50dfb5ed98db
{ "language": "C#" }
```c# /* * Copyright (C) 2011 uhttpsharp project - http://github.com/raistlinthewiz/uhttpsharp * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License...
```c# /* * Copyright (C) 2011 uhttpsharp project - http://github.com/raistlinthewiz/uhttpsharp * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License...
3afba943-ccd0-4a3f-9f48-a3c1d1f47017
{ "language": "C#" }
```c# namespace ExcelX.AddIn.Command { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ExcelX.AddIn.Config; using Excel = Microsoft.Office.Interop.Excel; /// <summary> /// 「方眼紙」コマンド /// </summary> pub...
```c# namespace ExcelX.AddIn.Command { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ExcelX.AddIn.Config; using Excel = Microsoft.Office.Interop.Excel; /// <summary> /// 「方眼紙」コマンド /// </summary> pub...
0abe8b08-cdbc-40be-9e52-fd534ef37bff
{ "language": "C#" }
```c# using System.Text.RegularExpressions; namespace Sep.Git.Tfs { public static class GitTfsConstants { public static readonly Regex Sha1 = new Regex("[a-f\\d]{40}", RegexOptions.IgnoreCase); public static readonly Regex Sha1Short = new Regex("[a-f\\d]{4,40}", RegexOptions.IgnoreCase); ...
```c# using System.Text.RegularExpressions; namespace Sep.Git.Tfs { public static class GitTfsConstants { public static readonly Regex Sha1 = new Regex("[a-f\\d]{40}", RegexOptions.IgnoreCase); public static readonly Regex Sha1Short = new Regex("[a-f\\d]{4,40}", RegexOptions.IgnoreCase); ...
f8bbec11-39c7-447c-87eb-6511a0075346
{ "language": "C#" }
```c# using VkNet.Utils; namespace VkNet.Model { /// <summary> /// Информация об аудиоальбоме. /// </summary> /// <remarks> /// Страница документации ВКонтакте <see href="http://vk.com/dev/audio.getAlbums"/>. /// </remarks> public class AudioAlbum { /// <summary> ...
```c# using VkNet.Utils; namespace VkNet.Model { /// <summary> /// Информация об аудиоальбоме. /// </summary> /// <remarks> /// Страница документации ВКонтакте <see href="http://vk.com/dev/audio.getAlbums"/>. /// </remarks> public class AudioAlbum { /// <summary> ...
5fe6c34a-c42f-46d3-ac47-4a4541196de2
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using NQuery.Syntax; namespace NQuery.Authoring.Completion.Providers { internal sealed class TypeCompletionProvider : ICompletionProvider { public IEnumerable<CompletionItem> GetItems(SemanticModel semanticModel, int position) ...
```c# using System; using System.Collections.Generic; using System.Linq; using NQuery.Syntax; namespace NQuery.Authoring.Completion.Providers { internal sealed class TypeCompletionProvider : ICompletionProvider { public IEnumerable<CompletionItem> GetItems(SemanticModel semanticModel, int position) ...
b116ab44-8b49-4d78-9740-716c9863e0f2
{ "language": "C#" }
```c# using Microsoft.Office365.ReportingWebServiceClient.Utils; using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Xml.Serialization; namespace Microsoft.Office365.ReportingWebServiceClient { /// <summary> /// This is representing an object of the RWS Report re...
```c# using Microsoft.Office365.ReportingWebServiceClient.Utils; using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Xml.Serialization; namespace Microsoft.Office365.ReportingWebServiceClient { /// <summary> /// This is representing an object of the RWS Report re...
adfcd70e-a9af-4495-987b-667d013ed6c1
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Text; namespace Csla.Test.LazyLoad { [Serializable] public class AParent : Csla.BusinessBase<AParent> { private Guid _id; public Guid Id { get { return _id; } set { _id = value; PropertyHasChanged(); ...
```c# using System; using System.Collections.Generic; using System.Text; namespace Csla.Test.LazyLoad { [Serializable] public class AParent : Csla.BusinessBase<AParent> { private Guid _id; public Guid Id { get { return _id; } set { _id = value; PropertyHasChanged(); ...
8b45afb2-559a-45ce-acc5-eb5f1522b3b9
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; namespace ExoWeb.Templates.MicrosoftAjax { /// <summary> /// Microsoft AJAX specific implementation of <see cref="ExoWeb.Templates.Page"/> that supports /// parsing and loading templates using the Microsof...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; namespace ExoWeb.Templates.MicrosoftAjax { /// <summary> /// Microsoft AJAX specific implementation of <see cref="ExoWeb.Templates.Page"/> that supports /// parsing and loading templates using the Microsof...