doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
e8ebf73e-945b-4602-8193-759c25812539
{ "language": "C#" }
```c# using System; using OpenStardriveServer.Domain.Systems.Standard; namespace OpenStardriveServer.Domain.Systems.Propulsion.Engines; public record EnginesState : StandardSystemBaseState { public int CurrentSpeed { get; init; } public EngineSpeedConfig SpeedConfig { get; init; } public int CurrentHeat {...
```c# using System; using OpenStardriveServer.Domain.Systems.Standard; namespace OpenStardriveServer.Domain.Systems.Propulsion.Engines; public record EnginesState : StandardSystemBaseState { public int CurrentSpeed { get; init; } public EngineSpeedConfig SpeedConfig { get; init; } public int CurrentHeat {...
f1b20a04-f7ab-41f6-a2ca-2e7919264d51
{ "language": "C#" }
```c# using System; namespace RapidCore.Locking { public class DistributedAppLockException : Exception { public DistributedAppLockException() { } public DistributedAppLockException(string message) : base(message) { } public DistributedAppLoc...
```c# using System; namespace RapidCore.Locking { public class DistributedAppLockException : Exception { public DistributedAppLockException() { } public DistributedAppLockException(string message) : base(message) { } public DistributedAppLoc...
0c5a032f-5ee1-4bb7-b020-eed4dad3070a
{ "language": "C#" }
```c# using UnityEngine; namespace HoloToolkit.Unity { public static class CameraExtensions { /// <summary> /// Get the horizontal FOV from the stereo camera /// </summary> /// <returns></returns> public static float GetHorizontalFieldOfViewRadians(this Camera camera) ...
```c# using UnityEngine; namespace HoloToolkit.Unity { public static class CameraExtensions { /// <summary> /// Get the horizontal FOV from the stereo camera /// </summary> /// <returns></returns> public static float GetHorizontalFieldOfViewRadians(this Camera camera) ...
ae072c52-8b25-4ce1-8f1b-40123915f782
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace compiler.middleend.ir { class ParseResult { public Operand Operand { get; set; } public List<Instruction> Instructions { get; set; } public Dictionary<Ss...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace compiler.middleend.ir { class ParseResult { public Operand Operand { get; set; } public List<Instruction> Instructions { get; set; } public Dictionary<in...
bee4210a-16e4-44db-b530-074098a938c1
{ "language": "C#" }
```c# namespace SimpleOrderRouting.Journey1 { public class ExecutionState { public ExecutionState(InvestorInstruction investorInstruction) { this.Quantity = investorInstruction.Quantity; this.Price = investorInstruction.Price; this.Way = investorInstruction.Wa...
```c# namespace SimpleOrderRouting.Journey1 { public class ExecutionState { public ExecutionState(InvestorInstruction investorInstruction) { this.Quantity = investorInstruction.Quantity; this.Price = investorInstruction.Price; this.Way = investorInstruction.Wa...
28d636f7-6dbf-4ca1-8f47-0b87f70eee49
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; using System.Collections.Generic; public class PowerRandom : BaseSpecialPower { [SerializeField] private List<BaseSpecialPower> powers; private BaseSpecialPower activePower = null; protected override void Start() { base.Start(); activePo...
```c# using UnityEngine; using System.Collections; using System.Collections.Generic; public class PowerRandom : BaseSpecialPower { [SerializeField] private List<BaseSpecialPower> powers; private BaseSpecialPower activePower = null; protected override void Start() { base.Start(); activePo...
7bbad602-6066-4411-bc7b-4bd647961e69
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Xml.Linq; using JetBrains.Annotations; namespace Dasher.Schemata { public interface IWriteSchema { /// <summary> /// Creates a deep copy of this schema within <paramref name="collection"/>. /// </summary> /// <param name="coll...
```c# using System.Collections.Generic; using System.Xml.Linq; using JetBrains.Annotations; namespace Dasher.Schemata { public interface IWriteSchema { /// <summary> /// Creates a deep copy of this schema within <paramref name="collection"/>. /// </summary> /// <param name="coll...
3e07343c-eba4-4ebe-b49d-35b56aa12115
{ "language": "C#" }
```c# namespace Sitecore.SharedSource.MobileDeviceDetector.Rules.Conditions { using System; using System.Web; using Sitecore.Diagnostics; using Sitecore.Rules; using Sitecore.Rules.Conditions; /// <summary> /// UserAgentCondition /// </summary> /// <typeparam name="T"></typeparam> public class Use...
```c# namespace Sitecore.SharedSource.MobileDeviceDetector.Rules.Conditions { using System; using System.Web; using Sitecore.Diagnostics; using Sitecore.Rules; using Sitecore.Rules.Conditions; /// <summary> /// UserAgentCondition /// </summary> /// <typeparam name="T"></typeparam> public class Use...
0ee04e87-7941-4fb9-8d7a-463790ced450
{ "language": "C#" }
```c# using System.Diagnostics; using System.IO; using System.Security.AccessControl; using System.Security.Principal; namespace TweetDck.Core.Utils{ static class WindowsUtils{ public static bool CheckFolderPermission(string path, FileSystemRights right){ try{ AuthorizationRule...
```c# using System.Diagnostics; using System.IO; using System.Linq; using System.Security.AccessControl; using System.Security.Principal; namespace TweetDck.Core.Utils{ static class WindowsUtils{ public static bool CheckFolderPermission(string path, FileSystemRights right){ try{ ...
c45950e9-fb47-438f-94a7-fc81d0e0b8e0
{ "language": "C#" }
```c# namespace Mollie.Api.Models.Connect { public static class AppPermissions { public const string PaymentsRead = "payments.read"; public const string PaymentsWrite = "payments.write"; public const string RefundsRead = "refunds.read"; public const string RefundsWrite = "refunds.wr...
```c# namespace Mollie.Api.Models.Connect { public static class AppPermissions { public const string PaymentsRead = "payments.read"; public const string PaymentsWrite = "payments.write"; public const string RefundsRead = "refunds.read"; public const string RefundsWrite = "refunds.wr...
4792eb86-5c99-48ab-a8b9-dde1d64b3639
{ "language": "C#" }
```c# namespace Endjin.Cancelable.Demo { #region Using Directives using System; using System.Threading; using System.Threading.Tasks; using Endjin.Contracts; using Endjin.Core.Composition; using Endjin.Core.Container; #endregion public class Program { public static v...
```c# namespace Endjin.Cancelable.Demo { #region Using Directives using System; using System.Threading; using System.Threading.Tasks; using Endjin.Contracts; using Endjin.Core.Composition; using Endjin.Core.Container; #endregion public class Program { public static v...
850f510c-510e-401b-ace6-165ec3fb1613
{ "language": "C#" }
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Diagnostics; using System.IO; using System.Net.Mail; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions; using Mi...
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Collections.Generic; using System.IO; using Microsoft.Azure.WebJobs; using OutgoingHttpRequestWebJobsExtension; namespace ExtensionsSample { pu...
20a2786a-4f56-433f-9448-6b08123829c6
{ "language": "C#" }
```c# /* ** Project ShiftDrive ** (C) Mika Molenkamp, 2016. */ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace ShiftDrive { /// <summary> /// Contains static utilities to render a skybox. /// </summary> internal static class Skybox { private static float rot...
```c# /* ** Project ShiftDrive ** (C) Mika Molenkamp, 2016. */ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace ShiftDrive { /// <summary> /// Contains static utilities to render a skybox. /// </summary> internal static class Skybox { private static float rot...
9afc7ef7-d6ad-4389-97bd-5cad8111f1f7
{ "language": "C#" }
```c# // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Composition; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host....
```c# // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable enable using System; using System.Composition; using Microsoft.CodeAnalysis.Host; using Microsoft....
a497a0a7-202a-41ab-ab96-7c830e4ed18a
{ "language": "C#" }
```c# using System; namespace AppHarbor.Commands { public class AddHostnameCommand : ICommand { private readonly IApplicationConfiguration _applicationConfiguration; private readonly IAppHarborClient _appharborClient; public AddHostnameCommand(IApplicationConfiguration applicationConfiguration, IAppHarborCli...
```c# using System; namespace AppHarbor.Commands { public class AddHostnameCommand : ICommand { private readonly IApplicationConfiguration _applicationConfiguration; private readonly IAppHarborClient _appharborClient; public AddHostnameCommand(IApplicationConfiguration applicationConfiguration, IAppHarborCli...
65dc058e-014d-4550-a319-701db339e1ae
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Platform; using osu.Framework.Testing; namespace osu.Game.Configuration { [ExcludeFromDynamicCompile] public class DevelopmentOsuConfig...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Platform; using osu.Framework.Testing; namespace osu.Game.Configuration { [ExcludeFromDynamicCompile] public class DevelopmentOsuConfig...
b946bd19-9464-4c52-95f5-973c87078272
{ "language": "C#" }
```c# namespace Winium.Desktop.Driver.CommandExecutors { internal class SendKeysToElementExecutor : CommandExecutorBase { #region Methods protected override string DoImpl() { var registeredKey = this.ExecutedCommand.Parameters["ID"].ToString(); var text = this.E...
```c# namespace Winium.Desktop.Driver.CommandExecutors { internal class SendKeysToElementExecutor : CommandExecutorBase { #region Methods protected override string DoImpl() { var registeredKey = this.ExecutedCommand.Parameters["ID"].ToString(); var text = string...
6690e38e-35c9-4699-b186-3ddc0922c98f
{ "language": "C#" }
```c# using Xunit; public class RobotNameTest { private readonly Robot robot = new Robot(); [Fact] public void Robot_has_a_name() { Assert.Matches(@"[A-Z]{2}\d{3}", robot.Name); } [Fact(Skip = "Remove to run test")] public void Name_is_the_same_each_time() { Assert.Equ...
```c# using Xunit; public class RobotNameTest { private readonly Robot robot = new Robot(); [Fact] public void Robot_has_a_name() { Assert.Matches(@"^[A-Z]{2}\d{3}$", robot.Name); } [Fact(Skip = "Remove to run test")] public void Name_is_the_same_each_time() { Assert.E...
d308cd69-4f02-4d99-aabd-f7ef155763c8
{ "language": "C#" }
```c# using System; using System.Linq; namespace NReplayGain { /// <summary> /// Contains ReplayGain data for an album. /// </summary> public class AlbumGain { private GainData albumData; public AlbumGain() { this.albumData = new GainData(); } ...
```c# using System; using System.Linq; namespace NReplayGain { /// <summary> /// Contains ReplayGain data for an album. /// </summary> public class AlbumGain { private GainData albumData; public AlbumGain() { this.albumData = new GainData(); } ...
aaf4a9f0-80ed-486f-90a3-4274af491ba2
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Web; using System.Web.Routing; namespace wwwplatform.Extensions { public class SitePageRouteConstraint : IRouteConstraint { public bool Match(...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Web; using System.Web.Routing; namespace wwwplatform.Extensions { public class SitePageRouteConstraint : IRouteConstraint { public bool Match(...
af722f8d-3ced-431e-9668-e8725556ae0f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; namespace Qowaiv.ComponentModel { /// <summary>Represents a result of a validation, executed command, etcetera.</summary> public class Result<T> : Result { /// <summary>Creates a n...
```c# using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; namespace Qowaiv.ComponentModel { /// <summary>Represents a result of a validation, executed command, etcetera.</summary> public class Result<T> : Result { /// <summary>Creates a new instance of...
e587d7d3-760d-4ddc-b3d7-715c069818f6
{ "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.Game.Beatmaps.Timing; using osu.Game.Graphics; using osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations; n...
```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.Game.Beatmaps.Timing; using osu.Game.Graphics; using osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations; n...
b156c46b-684a-4225-8f64-73f5c8be4a9e
{ "language": "C#" }
```c# using System; using System.Linq; using Cqrs.Configuration; using Ninject; using Ninject.Parameters; namespace Cqrs.Ninject.Configuration { public class NinjectDependencyResolver : IServiceLocator { public static IServiceLocator Current { get; private set; } static NinjectDependencyResolver() ...
```c# using System; using System.Linq; using Cqrs.Configuration; using Ninject; using Ninject.Parameters; namespace Cqrs.Ninject.Configuration { public class NinjectDependencyResolver : IServiceLocator { public static IServiceLocator Current { get; protected set; } static NinjectDependencyResolver(...
d78bf231-1126-4dd5-80c5-08dc3b004b94
{ "language": "C#" }
```c# @model int? @{ ViewBag.Title = "Error"; ViewBag.Message = ViewBag.Message ?? "An error occurred while processing your request."; } <h1 class="text-danger">Error (HTTP @(Model ?? 500))</h1> <h2 class="text-danger">@ViewBag.Message</h2> ``` Add NOINDEX to error pages
```c# @model int? @{ ViewBag.MetaDescription = string.Empty; ViewBag.MetaRobots = "NOINDEX"; ViewBag.Title = "Error"; ViewBag.Message = ViewBag.Message ?? "An error occurred while processing your request."; } <h1 class="text-danger">Error (HTTP @(Model ?? 500))</h1> <h2 class="text-danger">@ViewBag.Mes...
f29bf58e-09bb-449a-97c2-71c6c583576a
{ "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.Containers; using osu.Framework.Graphics.UserInterface; using osu.Game.Rulesets; using osuTK; namespace...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.UserInterface; using osu.Game.O...
9b138f84-f316-42c4-a5ff-47b49add5d79
{ "language": "C#" }
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System.Collections.Generic; namespace osu.Framework.Graphics.Shaders { /// <summary> /// A mapping of a global uniform to many shaders wh...
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System.Collections.Generic; namespace osu.Framework.Graphics.Shaders { /// <summary> /// A mapping of a global uniform to many shaders wh...
3cdcc2c7-422d-43d4-9e47-229d6dd99fb8
{ "language": "C#" }
```c# // Copyright (c) 2014 SIL International // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System; using System.Windows.Forms; namespace Palaso.UI.WindowsForms.HtmlBrowser { public interface IWebBrowser { bool CanGoBack { get; } bool CanGoForward { get; } strin...
```c# // Copyright (c) 2014 SIL International // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System; using System.Windows.Forms; namespace Palaso.UI.WindowsForms.HtmlBrowser { public interface IWebBrowser { bool CanGoBack { get; } bool CanGoForward { get; } /// <...
122ed4eb-f2eb-44ad-afbf-fb67c7ef1d49
{ "language": "C#" }
```c# namespace AgileObjects.AgileMapper.UnitTests { using System.Collections.Generic; using Shouldly; using TestClasses; using Xunit; public class WhenViewingMappingPlans { [Fact] public void ShouldIncludeASimpleTypeMemberMapping() { var plan = Mapper ...
```c# namespace AgileObjects.AgileMapper.UnitTests { using System; using System.Collections.Generic; using Shouldly; using TestClasses; using Xunit; public class WhenViewingMappingPlans { [Fact] public void ShouldIncludeASimpleTypeMemberMapping() { var p...
fe84c03f-15d2-42b1-98b2-373f693ff635
{ "language": "C#" }
```c# using System; namespace BitCommitment { /// <summary> /// A class to perform bit commitment. It does not care what the input is; it's just a /// facility for exchanging bit commitment messages. Based on Bruce Schneier's one-way /// function method for committing bits /// </summary> pub...
```c# using System; namespace BitCommitment { /// <summary> /// A class to perform bit commitment. It does not care what the input is; it's just a /// facility for exchanging bit commitment messages. Based on Bruce Schneier's RandBytes1-way /// function method for committing bits /// </summary> ...
342ac524-62ea-4d29-9a3e-0f2630e98974
{ "language": "C#" }
```c# using System.Dynamic; using BobTheBuilder.ArgumentStore; namespace BobTheBuilder.Syntax { public class DynamicBuilder<T> : DynamicBuilderBase<T> where T: class { public DynamicBuilder(IArgumentStore argumentStore) : base(argumentStore) { } public override bool InvokeBuilderMethod(Invoke...
```c# using System.Dynamic; using BobTheBuilder.ArgumentStore; namespace BobTheBuilder.Syntax { public class DynamicBuilder<T> : DynamicBuilderBase<T>, IParser where T: class { public DynamicBuilder(IArgumentStore argumentStore) : base(argumentStore) { } public override bool InvokeBuilderMeth...
b2732dc1-30f9-4c02-b2a4-06493af1c5cb
{ "language": "C#" }
```c# using System; using Abc.Zebus.Util; namespace Abc.Zebus.Transport { public class ZmqSocketOptions : IZmqSocketOptions { public ZmqSocketOptions() { ReadTimeout = 300.Milliseconds(); SendHighWaterMark = 20000; SendTimeout = 1000.Milliseconds(); ...
```c# using System; using Abc.Zebus.Util; namespace Abc.Zebus.Transport { public class ZmqSocketOptions : IZmqSocketOptions { public ZmqSocketOptions() { ReadTimeout = 300.Milliseconds(); SendHighWaterMark = 20000; SendTimeout = 100.Milliseconds(); ...
59f4c2ae-f433-4648-8b57-2972e168b75a
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Screens; using osu.Game.Overlays.FirstRunSetup; namespace osu.Game.Tests.Visual.UserInterface { public class TestSceneFirstRunScreenBehavio...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Screens; using osu.Game.Overlays; using osu.Game.Overlays.FirstRunSetup; namespace osu.Game.Tests.Visual.UserIn...
6af4a984-f719-4fac-bb4f-ced38d0807e8
{ "language": "C#" }
```c# using CefSharp; using CefSharp.Handler; using TweetDuck.Controls; using TweetDuck.Utils; namespace TweetDuck.Browser.Handling.General { sealed class CustomLifeSpanHandler : LifeSpanHandler { private static bool IsPopupAllowed(string url) { return url.StartsWith("https://twitter.com/teams/authorize?"); }...
```c# using System; using CefSharp; using CefSharp.Handler; using TweetDuck.Controls; using TweetDuck.Utils; namespace TweetDuck.Browser.Handling.General { sealed class CustomLifeSpanHandler : LifeSpanHandler { private static bool IsPopupAllowed(string url) { return url.StartsWith("https://twitter.com/teams/aut...
0a429aa8-0465-4c7a-b28d-9e3b20e54768
{ "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 osuTK; namespace osu.Game.Rulesets.Edit { /// <summary> /// A snap provider which given the position of a hit object, offers a more correct position ...
```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 osuTK; namespace osu.Game.Rulesets.Edit { /// <summary> /// A snap provider which given a proposed position for a hit object, potentially offers a mo...
6a314062-1474-40b9-8eb1-22fdf265185a
{ "language": "C#" }
```c# using System; using Faithlife.Build; internal static class Build { public static int Main(string[] args) => BuildRunner.Execute(args, build => { build.AddDotNetTargets( new DotNetBuildSettings { NuGetApiKey = Environment.GetEnvironmentVariable("NUGET_API_KEY"), DocsSettings = new DotNetDocsSett...
```c# using System; using Faithlife.Build; internal static class Build { public static int Main(string[] args) => BuildRunner.Execute(args, build => { build.AddDotNetTargets( new DotNetBuildSettings { NuGetApiKey = Environment.GetEnvironmentVariable("NUGET_API_KEY"), DocsSettings = new DotNetDocsSett...
22e032bb-815b-4632-9a4b-2532da78dd05
{ "language": "C#" }
```c# using System.Resources; 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 a...
```c# using System.Resources; 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 a...
cb6a701a-2348-472d-aced-290b561e0bbb
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using FreecraftCore.Serializer; using JetBrains.Annotations; namespace Booma.Proxy { /// <summary> /// Marks the 0x60 command server payload with the associated oper...
```c# using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using FreecraftCore.Serializer; using JetBrains.Annotations; namespace Booma.Proxy { /// <summary> /// Marks the 0x60 command server payload with the associated oper...
a2e6cd75-2456-426d-8cfa-2ce48712e924
{ "language": "C#" }
```c# using System.Linq; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Diploms.Core; namespace Diploms.DataLayer { public static class DiplomContentSystemExtensions { public static void EnsureSeedData(this DiplomContext context) { ...
```c# using System; using System.Linq; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Diploms.Core; using System.Collections.Generic; namespace Diploms.DataLayer { public static class DiplomContentSystemExtensions { public static void EnsureSee...
76ad1b84-e82a-4c18-984c-75febdf0c211
{ "language": "C#" }
```c# using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Xml.Linq; using Microsoft.Web.Deployment; namespace WAWSDeploy { public class WebDeployHelper { public DeploymentChangeSummary DeployContentToOneSite(string contentPath, string publishSettingsFile) {...
```c# using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Xml.Linq; using Microsoft.Web.Deployment; namespace WAWSDeploy { public class WebDeployHelper { public DeploymentChangeSummary DeployContentToOneSite(string contentPath, string publishSettingsFile) {...
429d0016-b96e-4ed6-84b5-47f2b864e31f
{ "language": "C#" }
```c# using System; using System.IO; using System.Linq; namespace LightBlue.Standalone { public class StandaloneAzureStorage : IAzureStorage { public const string DevelopmentAccountName = "dev"; private readonly string _storageAccountDirectory; public StandaloneAzureStorage(string co...
```c# using System; using System.IO; using System.Linq; namespace LightBlue.Standalone { public class StandaloneAzureStorage : IAzureStorage { public const string DevelopmentAccountName = "dev"; private readonly string _storageAccountDirectory; public StandaloneAzureStorage(string co...
8cf2a61c-99ae-4792-9612-a56c273dc5ff
{ "language": "C#" }
```c# using System; using Quartz.Simpl; using Quartz.Spi; namespace Quartz.DynamoDB.Tests { public class TriggerGroupGetTests { IJobStore _sut; public TriggerGroupGetTests() { _sut = new JobStore(); var signaler = new Quartz.DynamoDB.Tests.Integration.RamJobSto...
```c# using System; using Quartz.Simpl; using Quartz.Spi; using Xunit; namespace Quartz.DynamoDB.Tests { public class TriggerGroupGetTests { IJobStore _sut; public TriggerGroupGetTests() { _sut = new JobStore(); var signaler = new Quartz.DynamoDB.Tests.Integrat...
e2d68765-84e7-47c4-8244-2f3eea27d468
{ "language": "C#" }
```c# using System; using System.Drawing; using System.Windows.Forms; namespace vuwall_motion { public partial class TransparentForm : Form { public TransparentForm() { InitializeComponent(); DoubleBuffered = true; } private void TransparentForm_Load(object sender,...
```c# using System; using System.Drawing; using System.Windows.Forms; namespace vuwall_motion { public partial class TransparentForm : Form { public TransparentForm() { InitializeComponent(); DoubleBuffered = true; ShowInTaskbar = false; } private void ...
06d8525b-98e4-4394-a6a5-43eac5485bd7
{ "language": "C#" }
```c# namespace Novell.Directory.Ldap { /// <summary> /// Extension Methods for <see cref="ILdapConnection"/> to /// avoid bloating that interface. /// </summary> public static class LdapConnectionExtensionMethods { /// <summary> /// Get some common Attributes from the Root DSE....
```c# namespace Novell.Directory.Ldap { /// <summary> /// Extension Methods for <see cref="ILdapConnection"/> to /// avoid bloating that interface. /// </summary> public static class LdapConnectionExtensionMethods { /// <summary> /// Get some common Attributes from the Root DSE....
c0189e01-659c-4a8c-89b2-46749ad8e732
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Eco { /// <summary> /// Eco configuration library supports string varibales. /// You can enable variables in your configuration file by adding 'public variable[] variables;'...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Eco { /// <summary> /// Eco configuration library supports string varibales. /// You can enable variables in your configuration file by adding 'public variable[] variables;'...
34e91d16-1cd9-4ed5-acef-1f1b6ee59f2e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; namespace Adaptive.Aeron { internal class ActiveSubscriptions : IDisposable { private readonly Dictionary<int, List<Subscription>> _subscriptionsByStreamIdMap = new Dictionary<int, List<Subscription>>(); public void ForE...
```c# using System; using System.Collections.Generic; using System.Linq; namespace Adaptive.Aeron { internal class ActiveSubscriptions : IDisposable { private readonly Dictionary<int, List<Subscription>> _subscriptionsByStreamIdMap = new Dictionary<int, List<Subscription>>(); public void ForE...
170e8505-d160-4716-8079-d4885dc62992
{ "language": "C#" }
```c# using System.Collections.Generic; using Wox.Plugin; namespace Wox.Infrastructure.UserSettings { public class PluginsSettings : BaseModel { public string PythonDirectory { get; set; } public Dictionary<string, Plugin> Plugins { get; set; } = new Dictionary<string, Plugin>(); publ...
```c# using System.Collections.Generic; using Wox.Plugin; namespace Wox.Infrastructure.UserSettings { public class PluginsSettings : BaseModel { public string PythonDirectory { get; set; } public Dictionary<string, Plugin> Plugins { get; set; } = new Dictionary<string, Plugin>(); publ...
25765835-399f-4c0a-85b1-f49a12ae058f
{ "language": "C#" }
```c# using Microsoft.EntityFrameworkCore; using Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.OrderAggregate; using Microsoft.eShopOnContainers.Services.Ordering.Domain.Seedwork; using System; using System.Threading.Tasks; namespace Microsoft.eShopOnContainers.Services.Ordering.Infrastructure....
```c# using Microsoft.EntityFrameworkCore; using Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.OrderAggregate; using Microsoft.eShopOnContainers.Services.Ordering.Domain.Seedwork; using Ordering.Domain.Exceptions; using System; using System.Threading.Tasks; namespace Microsoft.eShopOnContainers...
3e728f4d-8ea4-4189-b3d3-1b58a92ec7d0
{ "language": "C#" }
```c# using System; class Node { public Node(int val, Node left, Node right) { Value = val; Left = left; Right = right; } public int Value { get; private set; } public Node Left { get; private set; } public Node Right { get; private set; } } class Program{ static bool IsMirror(Node le...
```c# using System; class Node { public Node(int val, Node left, Node right) { Value = val; Left = left; Right = right; } public int Value { get; private set; } public Node Left { get; private set; } public Node Right { get; private set; } } class Program{ static bool IsMirror(Node le...
b2b11d03-c256-40ef-876a-0b0c8d269415
{ "language": "C#" }
```c# namespace CSharpMath.Xaml.Tests.NuGet { using Avalonia; using SkiaSharp; using Forms; public class Program { static string File(string platform, [System.Runtime.CompilerServices.CallerFilePath] string thisDir = "") => System.IO.Path.Combine(thisDir, "..", $"Test.{platform}.png"); [Xunit...
```c# namespace CSharpMath.Xaml.Tests.NuGet { using Avalonia; using SkiaSharp; using Forms; public class Program { static string File(string platform, [System.Runtime.CompilerServices.CallerFilePath] string thisDir = "") => System.IO.Path.Combine(thisDir, "..", $"Test.{platform}.png"); [Xu...
69255dd1-1826-42aa-a591-1d75c6dc66e5
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.CodeAnalysis.ExternalAccess.UnitTesting; using Microsoft.CodeAnalysis.Options; namespace Microsoft.CodeAnalysis.SolutionCrawler { ...
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.CodeAnalysis.ExternalAccess.UnitTesting; using Microsoft.CodeAnalysis.Options; namespace Microsoft.CodeAnalysis.SolutionCrawler { ...
b263fe6d-eacc-4364-a49e-5d15880cd1dc
{ "language": "C#" }
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated...
```c# //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated...
aa604bb8-7a00-4de5-98e7-610829fb6862
{ "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.Objects.Types; namespace osu.Game.Rulesets.Objects.Legacy.Catch { /// <summary> /// Legacy osu!catch Spinner-type, used for parsin...
```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.Objects.Types; namespace osu.Game.Rulesets.Objects.Legacy.Catch { /// <summary> /// Legacy osu!catch Spinner-type, used for parsin...
202b8d55-5a1c-4d80-993d-f8a2ba9cd66e
{ "language": "C#" }
```c# namespace InfoCarrier.Core.Client.Query.Internal { using System; using Microsoft.EntityFrameworkCore.ChangeTracking.Internal; using Microsoft.EntityFrameworkCore.Internal; using Microsoft.EntityFrameworkCore.Query; using Microsoft.EntityFrameworkCore.Query.Internal; public class InfoCarr...
```c# namespace InfoCarrier.Core.Client.Query.Internal { using System; using Common; using Microsoft.EntityFrameworkCore.ChangeTracking.Internal; using Microsoft.EntityFrameworkCore.Internal; using Microsoft.EntityFrameworkCore.Query; using Microsoft.EntityFrameworkCore.Query.Internal; pub...
0a7b5203-2fa8-4955-a077-bc4e24d8a56a
{ "language": "C#" }
```c# using System; using System.Data.Entity; using System.Data.Entity.ModelConfiguration.Conventions; namespace SQLite.CodeFirst { public abstract class SqliteInitializerBase<TContext> : IDatabaseInitializer<TContext> where TContext : DbContext { protected readonly DbModelBuilder ModelBuilder;...
```c# using System; using System.Data.Entity; using System.Data.Entity.ModelConfiguration.Conventions; using SQLite.CodeFirst.Convention; namespace SQLite.CodeFirst { public abstract class SqliteInitializerBase<TContext> : IDatabaseInitializer<TContext> where TContext : DbContext { protected ...
d777cca9-b3ff-453f-a096-d299c62c9188
{ "language": "C#" }
```c# using JetBrains.Annotations; using JetBrains.ProjectModel; using JetBrains.ReSharper.Plugins.Unity.UnityEditorIntegration; using JetBrains.ReSharper.Plugins.Yaml.ProjectModel; #nullable enable namespace JetBrains.ReSharper.Plugins.Unity.Yaml.ProjectModel { [ProjectFileTypeDefinition(Name)] public class ...
```c# using JetBrains.Annotations; using JetBrains.ProjectModel; using JetBrains.ReSharper.Plugins.Unity.UnityEditorIntegration; using JetBrains.ReSharper.Plugins.Yaml.ProjectModel; #nullable enable namespace JetBrains.ReSharper.Plugins.Unity.Yaml.ProjectModel { [ProjectFileTypeDefinition(Name)] public class ...
600e2c29-7de2-4900-b372-88d107a6a5c4
{ "language": "C#" }
```c# @inject BTCPayServer.Security.ContentSecurityPolicies csp @{ Layout = null; csp.Add("script-src", "https://cdn.jsdelivr.net"); csp.Add("worker-src", "blob:"); } <!DOCTYPE html> <html> <head> <title>BTCPay Server Greenfield API</title> <!-- needed for adaptive design --> <meta charset="utf-...
```c# @inject BTCPayServer.Security.ContentSecurityPolicies csp @{ Layout = null; csp.Add("script-src", "https://cdn.jsdelivr.net"); csp.Add("worker-src", "blob: self"); } <!DOCTYPE html> <html> <head> <title>BTCPay Server Greenfield API</title> <!-- needed for adaptive design --> <meta charset=...
4e4bdf0f-e743-4386-87be-4476835a24ed
{ "language": "C#" }
```c# using BroadbandSpeedStats.Database.Schema; using FluentMigrator; namespace BroadbandSpeedTests.Database.Migrations.Migrations { [Migration(20170228)] public class TodaysTestResultsView : Migration { public override void Up() { Execute.Sql($@" CREATE VIEW [{Views.TodaysTes...
```c# using BroadbandSpeedStats.Database.Schema; using FluentMigrator; namespace BroadbandSpeedTests.Database.Migrations.Migrations { [Migration(20170228)] public class TodaysTestResultsView : Migration { public override void Up() { Execute.Sql($@" CREATE VIEW [{Views.TodaysTes...
1acbb819-edfc-45a5-bf1a-df2c46beb85e
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Overlays; using osu.Game.Overlays.Settings; using osu.Game.Rulesets.Edit.Checks.Compone...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Game.Overlays; using osu.Game.Overlays.Settings; using osu.Game.Rulesets.Edit.Checks.Compone...
1260ca81-059e-4f33-9df6-81b0d5869ed0
{ "language": "C#" }
```c# namespace SoxSharp.Effects { public interface IBaseEffect { string Name { get; } bool IsValid(); string ToString(); } } ``` Revert "Added method to perform validity check for effect parameters"
```c# namespace SoxSharp.Effects { public interface IBaseEffect { string Name { get; } string ToString(); } } ```
3b9da6cc-c9ce-4ed1-9229-f12570c2ffdd
{ "language": "C#" }
```c# using StreamCompanionTypes.DataTypes; using StreamCompanionTypes.Enums; using StreamCompanionTypes.Interfaces; using StreamCompanionTypes.Interfaces.Sources; namespace PlaysReplacements { public class PlaysReplacements : IPlugin, ITokensSource { private int Plays, Retrys; private Tokens....
```c# using StreamCompanionTypes.DataTypes; using StreamCompanionTypes.Enums; using StreamCompanionTypes.Interfaces; using StreamCompanionTypes.Interfaces.Sources; namespace PlaysReplacements { public class PlaysReplacements : IPlugin, ITokensSource { private int Plays, Retrys; private Tokens....
3b24a386-f760-4b65-b5a5-8432027a59c2
{ "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 osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Textures; using osuTK; names...
```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.Graphics.Sprites; using osu.Framework.Graphics.Textures; using osuTK; names...
8357b005-32df-4889-bb0d-fc94ff3cf77d
{ "language": "C#" }
```c# using System; using FluentAssertions; using Microsoft.Practices.Unity; using Unity.Interception.Serilog.Tests.Support; using Xunit; namespace Unity.Interception.Serilog.Tests { public class NullTests { [Fact] public void NullMembersShouldThrow() { var container = new U...
```c# using System; using FluentAssertions; using Microsoft.Practices.Unity; using Unity.Interception.Serilog.Tests.Support; using Xunit; namespace Unity.Interception.Serilog.Tests { public class NullTests { [Fact] public void NullMembersShouldThrow() { var container = new U...
2ad0c001-96ff-4c7a-8698-6a9ee1abdd5f
{ "language": "C#" }
```c# namespace SIM.Client.Commands { using CommandLine; using JetBrains.Annotations; using SIM.Core.Commands; public class InstallCommandFacade : InstallCommand { [UsedImplicitly] public InstallCommandFacade() { } [Option('n', "name", Required = true)] public override string Name {...
```c# namespace SIM.Client.Commands { using CommandLine; using JetBrains.Annotations; using SIM.Core.Commands; public class InstallCommandFacade : InstallCommand { [UsedImplicitly] public InstallCommandFacade() { } [Option('n', "name", Required = true)] public override string Name {...
39ef758c-383f-4ff0-94cb-caec6967125a
{ "language": "C#" }
```c# using System; namespace Marten.Services { public class ConcurrentUpdateException : Exception { public ConcurrentUpdateException(Exception innerException) : base("Write collission detected while commiting the transaction.", innerException) { } } }``` Fix spelling mistake, 'col...
```c# using System; namespace Marten.Services { public class ConcurrentUpdateException : Exception { public ConcurrentUpdateException(Exception innerException) : base("Write collision detected while commiting the transaction.", innerException) { } } } ```
ba4dddc9-16b3-4e7b-965d-658fe258d374
{ "language": "C#" }
```c# using Microsoft.Extensions.DependencyInjection; using System; namespace THNETII.DependencyInjection.Nesting { public static class NestedServicesServiceCollectionExtensions { public static IServiceCollection AddNestedServices( this IServiceCollection rootServices, string k...
```c# using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; namespace THNETII.DependencyInjection.Nesting { public static class NestedServicesServiceCollectionExtensions { public static IServiceCollection AddNestedServices( this IServiceCollection ...
47e733bd-6cea-4ef1-9bd7-8295620909b6
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Ext.NET { class IntegerExtension { public static void Times(this int n, Action<int> action) { for (int i = 0; i < n; ++i) { action(i); } ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Ext.NET { class IntegerExtension { public static void Times(this int n, Action<int> action) { for (int i = 0; i < n; ++i) { action(i); } ...
057f3ffd-fd09-4655-a762-abe627625957
{ "language": "C#" }
```c# @model Portal.CMS.Entities.Entities.Copy.Copy @using Portal.CMS.Web.Areas.Admin.Helpers; @{ Layout = ""; var isAdmin = UserHelper.IsAdmin; } <script type="text/javascript"> $(document).ready(function () { tinymce.init({ selector: '#copy-@(Model.CopyId).admin', inline: true, plug...
```c# @model Portal.CMS.Entities.Entities.Copy.Copy @using Portal.CMS.Web.Areas.Admin.Helpers; @{ Layout = ""; var isAdmin = UserHelper.IsAdmin; } <script type="text/javascript"> $(document).ready(function () { tinymce.init({ selector: '.copy-@(Model.CopyId).admin', inline: true, plug...
f63f9aa6-3e8f-49a5-a780-24c6648c629f
{ "language": "C#" }
```c# #tool "nuget:?package=xunit.runner.console" var target = Argument("target", "Default"); var outputDir = "./bin"; Task("Default") .IsDependentOn("Xunit") .Does(() => { }); Task("Xunit") .IsDependentOn("Build") .Does(()=> { DotNetCoreTest("./src/FibonacciHeap.Tests/FibonacciHeap.Tests.csproj"); }...
```c# #tool "nuget:?package=xunit.runner.console" var target = Argument("target", "Default"); var outputDir = "./bin"; Task("Default") .IsDependentOn("Xunit") .Does(() => { }); Task("Xunit") .IsDependentOn("Build") .Does(()=> { DotNetCoreTest("./src/FibonacciHeap.Tests/FibonacciHeap.Tests.csproj"); }...
42ca8215-c6d1-4cc6-b2ef-2d3d38e80228
{ "language": "C#" }
```c# using Serilog.Configuration; using Serilog.Core; using Serilog.Events; using Serilog.Sinks.Graylog.Helpers; using Serilog.Sinks.Graylog.Transport; namespace Serilog.Sinks.Graylog { public static class LoggerConfigurationGrayLogExtensions { public static LoggerConfiguration Graylog(this LoggerSin...
```c# using Serilog.Configuration; using Serilog.Core; using Serilog.Events; using Serilog.Sinks.Graylog.Helpers; using Serilog.Sinks.Graylog.Transport; namespace Serilog.Sinks.Graylog { public static class LoggerConfigurationGrayLogExtensions { public static LoggerConfiguration Graylog(this LoggerSin...
608126c2-d187-484d-ba93-a6763e8d293d
{ "language": "C#" }
```c# using Veil.Parser; namespace Veil.Compiler { internal partial class VeilTemplateCompiler<T> { private void EmitWriteLiteral(SyntaxTreeNode.WriteLiteralNode node) { LoadWriterToStack(); emitter.LoadConstant(node.LiteralContent); CallWriteFor(typeof(stri...
```c# using Veil.Parser; namespace Veil.Compiler { internal partial class VeilTemplateCompiler<T> { private void EmitWriteLiteral(SyntaxTreeNode.WriteLiteralNode node) { if (string.IsNullOrEmpty(node.LiteralContent)) return; LoadWriterToStack(); emitter.Loa...
250471a3-dad5-43ee-935b-970428c2ce9c
{ "language": "C#" }
```c# using ArduinoWindowsRemoteControl.Helpers; using ArduinoWindowsRemoteControl.Interfaces; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace...
```c# using ArduinoWindowsRemoteControl.Helpers; using ArduinoWindowsRemoteControl.Interfaces; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace...
960f4afa-d549-45e7-beed-f6542645ed2c
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Linq.Expressions; namespace ExRam.Gremlinq { public sealed class ValuesGremlinStep<TSource, TTarget> : NonTerminalGremlinStep { private readonly Expression<Func<TSource, TTarget>>[]...
```c# using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Linq.Expressions; namespace ExRam.Gremlinq { public sealed class ValuesGremlinStep<TSource, TTarget> : NonTerminalGremlinStep { private readonly Expression<Func<TSource, TTarget>>[]...
6cf765df-cf8d-4b44-8fbe-baeb886db1f7
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IPOCS_Programmer.ObjectTypes { public class PointsMotor_Pulse : PointsMotor { public override byte motorTypeId { get { return 1; } } public byte ThrowLeftOutput {...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IPOCS_Programmer.ObjectTypes { public class PointsMotor_Pulse : PointsMotor { public override byte motorTypeId { get { return 1; } } public byte ThrowLeftOutput {...
122f3c20-a773-49a7-87e3-c0bdfa0313ab
{ "language": "C#" }
```c# using UnityEngine; using UnityEngine.UI; /// <summary> /// Attach this to the status text game object /// </summary> public class StatusText : MonoBehaviour { Text text; GlobalGame game; public GlobalGame Game { get { return game; } set { if (game != ...
```c# using UnityEngine; using UnityEngine.UI; /// <summary> /// Attach this to the status text game object /// </summary> public class StatusText : MonoBehaviour { Text text; GlobalGame game; public GlobalGame Game { get { return game; } set { if (game != ...
2c53a0cc-ddd9-49e9-a8df-14ebe73da75a
{ "language": "C#" }
```c# using UnityEngine; using UnityEngine.UI; /// <summary> /// Attach this to the status text game object /// </summary> public class StatusText : MonoBehaviour { Text text; GlobalGame game; public GlobalGame Game { get { return game; } set { if (game != ...
```c# using UnityEngine; using UnityEngine.UI; /// <summary> /// Attach this to the status text game object /// </summary> public class StatusText : MonoBehaviour { GlobalGame game; public GlobalGame Game { get { return game; } set { if (game != null) ...
4a14bfe8-d025-40ca-9020-3f5496c65b26
{ "language": "C#" }
```c# using System; using System.Linq; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using CorvallisBus.Core.Models; using HtmlAgilityPack; namespace CorvallisBus.Core.WebClients { public static class ServiceAlertsClient { static readonly Uri FEED_URL = new Uri...
```c# using System; using System.Linq; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; using CorvallisBus.Core.Models; using HtmlAgilityPack; namespace CorvallisBus.Core.WebClients { public static class ServiceAlertsClient { static readonly Uri FEED_URL = new Uri...
0a737e64-0b89-42f5-a2db-be80e54c8608
{ "language": "C#" }
```c# using System; using DesktopWidgets.Properties; namespace DesktopWidgets.Helpers { public static class DoubleHelper { public static bool IsEqual(this double val1, double val2) => double.IsNaN(val1) || double.IsNaN(val1) || (Math.Abs(val1 - val2) > Settings.Default.DoubleCo...
```c# using System; using DesktopWidgets.Properties; namespace DesktopWidgets.Helpers { public static class DoubleHelper { public static bool IsEqual(this double val1, double val2) => double.IsNaN(val1) || double.IsNaN(val2) || (Math.Abs(val1 - val2) > Settings.Default.DoubleCo...
4643a05a-46b9-4ddc-aec4-dabe53548b7b
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Specialized; using System.Text; namespace TweetDuck.Core.Other.Analytics{ sealed class AnalyticsReport : IEnumerable{ private OrderedDictionary data = new OrderedDictionary(32); private int separators; public void Add(int ignored){ ...
```c# using System.Collections; using System.Collections.Specialized; using System.Text; namespace TweetDuck.Core.Other.Analytics{ sealed class AnalyticsReport : IEnumerable{ private OrderedDictionary data = new OrderedDictionary(32); private int separators; public void Add(int ignored){ ...
898027dd-0c77-4147-a51d-9c6e349d207b
{ "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.Online { public class ProductionEndpointConfiguration : EndpointConfiguration { public ProductionEndpointConfiguration() ...
```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.Online { public class ProductionEndpointConfiguration : EndpointConfiguration { public ProductionEndpointConfiguration() ...
53d90c2b-e11e-4779-97b8-db00418a8f87
{ "language": "C#" }
```c# @using JoinRpg.Web.Models @model CharacterDetailsViewModel <div> @Html.Partial("CharacterNavigation", Model.Navigation) @* TODO: Жесточайше причесать эту страницу*@ <dl class="dl-horizontal"> <dt>Игрок</dt> <dd>@Html.DisplayFor(model => model, "IPlayerCharacter")</dd> <dt>@Ht...
```c# @using JoinRpg.Web.Models @model CharacterDetailsViewModel <div> @Html.Partial("CharacterNavigation", Model.Navigation) @* TODO: Жесточайше причесать эту страницу*@ <dl class="dl-horizontal"> <dt>Игрок</dt> <dd>@Html.DisplayFor(model => model, "IPlayerCharacter")</dd> <dt>@Ht...
1b22e336-8c37-4649-8401-40b983eddcd5
{ "language": "C#" }
```c# using static System.Console; using CIV.Ccs; 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(processes["Prison"], 450); ...
```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...
0c656b80-d038-4e63-a1a5-52ab9cb4f594
{ "language": "C#" }
```c# using System.Web.Http; using Autofac; using Autofac.Integration.WebApi; namespace ReSharperTnT { public class Bootstrapper { static Bootstrapper() { Init(); } public static void Init() { var bootstrapper = new Bootstrapper(); v...
```c# using System.Reflection; using System.Web.Http; using Autofac; using Autofac.Integration.WebApi; namespace ReSharperTnT { public class Bootstrapper { public static void Init() { var bootstrapper = new Bootstrapper(); var container = bootstrapper.CreateContainer();...
174d7620-9654-4008-a66e-30641c23f1b6
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RecurringDates { public static class Extensions { public static SetUnionRule Or(this IRule first, params IRule[] otherRules) { return new SetUnionRule...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RecurringDates { public static class Extensions { public static SetUnionRule Or(this IRule first, params IRule[] otherRules) { return new SetUnionRule...
abc3908a-f4c3-4d29-9a98-15a14e8794a4
{ "language": "C#" }
```c# using Arkivverket.Arkade.Core; using Arkivverket.Arkade.Core.Noark5; using Arkivverket.Arkade.Identify; using Arkivverket.Arkade.Logging; using Arkivverket.Arkade.Tests; using Arkivverket.Arkade.Tests.Noark5; using Autofac; namespace Arkivverket.Arkade.Util { public class ArkadeAutofacModule : Module { ...
```c# using Arkivverket.Arkade.Core; using Arkivverket.Arkade.Core.Addml; using Arkivverket.Arkade.Core.Noark5; using Arkivverket.Arkade.Identify; using Arkivverket.Arkade.Logging; using Arkivverket.Arkade.Tests; using Arkivverket.Arkade.Tests.Noark5; using Autofac; namespace Arkivverket.Arkade.Util { public class...
586b5629-e2b4-4632-ad6d-e0c07ec7ef48
{ "language": "C#" }
```c# // // Copyright 2019 Google LLC // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache Licens...
```c# // // Copyright 2019 Google LLC // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache Licens...
b79dc0ac-ff86-40be-93b1-060b82a84bad
{ "language": "C#" }
```c# using Blogifier.Core.Common; using Blogifier.Core.Data.Domain; using Blogifier.Core.Data.Interfaces; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Blogifier.Core.Services.Social { public class SocialService : ISocialService { IUnitOfWork _db; ...
```c# using Blogifier.Core.Common; using Blogifier.Core.Data.Domain; using Blogifier.Core.Data.Interfaces; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Blogifier.Core.Services.Social { public class SocialService : ISocialService { IUnitOfWork _db; ...
328db394-7d12-4dea-968f-1ed874ff3423
{ "language": "C#" }
```c# // SampSharp // Copyright 2022 Tim Potze // // 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...
```c# // SampSharp // Copyright 2022 Tim Potze // // 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...
a04ec86f-847d-421c-a58b-8959252df8b8
{ "language": "C#" }
```c# using System; using MonoTouch.ObjCRuntime; [assembly: LinkWith ("PSPDFKit.a", LinkTarget.ArmV7s | LinkTarget.ArmV7 | LinkTarget.Simulator, ForceLoad = true, IsCxx = true, Frameworks = "MediaPlayer CoreText QuartzCore MessageUI ImageIO CoreMedia CoreGraphics AVFoundation", LinkerFlags = "-lz -ObjC")] ``` Add mis...
```c# using System; using MonoTouch.ObjCRuntime; [assembly: LinkWith ("PSPDFKit.a", LinkTarget.ArmV7s | LinkTarget.ArmV7 | LinkTarget.Simulator, ForceLoad = true, IsCxx = true, Frameworks = "MediaPlayer CoreText QuartzCore MessageUI ImageIO CoreMedia CoreGraphics AVFoundation", LinkerFlags = "-lz -ObjC -fobjc-arc")] `...
636e9253-b556-4277-909c-2448bc932823
{ "language": "C#" }
```c# using System.Reflection; using Funq; using ServiceStack.Common.Web; using ServiceStack.ServiceHost; using ServiceStack.Text; using ServiceStack.WebHost.Endpoints; using SimpleEventMonitor.Core; namespace SimpleEventMonitor.Web { public class AppHostSimpleEventMonitor : AppHostBase { public AppHo...
```c# using System.Reflection; using Funq; using ServiceStack.Common.Web; using ServiceStack.ServiceHost; using ServiceStack.Text; using ServiceStack.WebHost.Endpoints; using SimpleEventMonitor.Core; namespace SimpleEventMonitor.Web { public class AppHostSimpleEventMonitor : AppHostBase { public AppHo...
1df3f9af-f811-455f-b538-7e9bbc395809
{ "language": "C#" }
```c# using System; using System.Drawing.Imaging; using System.IO; using OpenQA.Selenium; namespace Selenium.WebDriver.Equip { public class TestCapture { private IWebDriver _browser = null; private string fileName; public TestCapture(IWebDriver iWebDriver, string type = "Failed") ...
```c# using OpenQA.Selenium; using System; using System.IO; using System.Reflection; namespace Selenium.WebDriver.Equip { public class TestCapture { private IWebDriver _browser = null; private string fileName; public TestCapture(IWebDriver iWebDriver, string type = "Failed") { ...
9632c550-5977-4489-99c2-470563332e6f
{ "language": "C#" }
```c# namespace JsonDiffPatchDotNet { public sealed class Options { public Options() { ArrayDiff = ArrayDiffMode.Efficient; TextDiff = TextDiffMode.Efficient; MinEfficientTextDiffLength = 50; } public ArrayDiffMode ArrayDiff { get; set; } public TextDiffMode TextDiff { get; se...
```c# namespace JsonDiffPatchDotNet { public sealed class Options { public Options() { ArrayDiff = ArrayDiffMode.Simple; TextDiff = TextDiffMode.Efficient; MinEfficientTextDiffLength = 50; } public ArrayDiffMode ArrayDiff { get; set; } public TextDiffMode TextDiff { get; set; } ...
8921a5d9-33ae-4a35-ac40-85c004b929ea
{ "language": "C#" }
```c# using System.Drawing; using System.Windows.Forms; namespace TweetDuck.Video.Controls{ sealed class SeekBar : ProgressBar{ private readonly SolidBrush brush; public SeekBar(){ brush = new SolidBrush(Color.White); SetStyle(ControlStyles.UserPaint, true); S...
```c# using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace TweetDuck.Video.Controls{ sealed class SeekBar : ProgressBar{ private readonly SolidBrush brushFore; private readonly SolidBrush brushHover; private readonly SolidBrush brushOver...
8dd35e2f-62a6-46b8-a45d-4bedc6afc3be
{ "language": "C#" }
```c# using System; using System.Diagnostics; using NUnit.Framework; using Rhino.Mocks; namespace NServiceKit.Logging.Tests.Support { public class TestBase { private MockRepository mocks; protected virtual MockRepository Mocks { get { return mocks; } } [Set...
```c# using System; using System.Diagnostics; using NUnit.Framework; using Rhino.Mocks; namespace NServiceKit.Logging.Tests.Support { public class TestBase { private MockRepository mocks; protected virtual MockRepository Mocks { get { return mocks; } } [Set...
95faef24-e879-47d2-9975-5a872fe4e0c9
{ "language": "C#" }
```c# using System.IO; using BruTile.MbTiles; using Mapsui.Layers; using Mapsui.UI; using SQLite; namespace Mapsui.Samples.Common.Maps { public class MbTilesSample : ISample { // This is a hack used for iOS/Android deployment public static string MbTilesLocation { get; set; } = @"." + Path.Dir...
```c# using System.IO; using BruTile.MbTiles; using Mapsui.Layers; using Mapsui.UI; using SQLite; namespace Mapsui.Samples.Common.Maps { public class MbTilesSample : ISample { // This is a hack used for iOS/Android deployment public static string MbTilesLocation { get; set; } = @"." + Path.Dir...
4929b3e3-3c77-4c92-9372-80256c851421
{ "language": "C#" }
```c# // Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
```c# // Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
45e873c7-0f3b-4c75-b341-33f7ad582b51
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Common.Logging; using GladNet; namespace Booma.Proxy { [SceneTypeCreate(GameSceneType.ServerSelectionScreen)] [SceneTypeCreate(GameSceneType.PreShipSelectionScene)] [SceneTypeCreate(GameS...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Common.Logging; using GladNet; namespace Booma.Proxy { [SceneTypeCreate(GameSceneType.PreBlockBurstingScene)] [SceneTypeCreate(GameSceneType.ServerSelectionScreen)] [SceneTypeCreate(GameS...
0770f9fe-99e8-4ac6-9369-d0d36abffc56
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; [CustomEditor(typeof(MicrogameCollection))] public class MicrogameCollectionEditor : Editor { public override void OnInspectorGUI() { MicrogameCollection collection = (MicrogameCollection)target; if (GUILayou...
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; [CustomEditor(typeof(MicrogameCollection))] public class MicrogameCollectionEditor : Editor { public override void OnInspectorGUI() { MicrogameCollection collection = (MicrogameCollection)target; if (GUILayou...
96f0e22a-422b-4b7b-940c-cac125a9c833
{ "language": "C#" }
```c# @using Microsoft.Web.Mvc @model CRP.Controllers.ViewModels.PaymentConfirmationViewModel @{ ViewBag.Title = "Confirmation"; } <div class="boundary"> <h2>Registration Confirmation</h2> <p>You have successfully registered for the following event:</p> <div> <label>Item: </label> @Mo...
```c# @using Microsoft.Web.Mvc @model CRP.Controllers.ViewModels.PaymentConfirmationViewModel @{ ViewBag.Title = "Confirmation"; } <div class="boundary"> <h2>Registration Confirmation</h2> <p>You have successfully registered for the following event:</p> <div> <label>Item: </label> @Mo...
ac562005-39f6-469b-9e3f-2126d185b6a1
{ "language": "C#" }
```c# namespace Reaper.SharpBattleNet.Framework.DiabloIIRealmServer.Details { using System; using System.Linq; using System.Text; using System.Collections; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Nini; using Nini.Config; usi...
```c# namespace Reaper.SharpBattleNet.Framework.DiabloIIRealmServer.Details { using System; using System.Linq; using System.Text; using System.Collections; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Nini; using Nini.Config; usi...
44ebdb1d-1237-4612-a133-e997cd2da13c
{ "language": "C#" }
```c# @model LETS.ViewModels.MemberNoticesViewModel <h1>@string.Format("{0}'s {1}", @Model.Member.FirstLastName, T("notices"))</h1> @if (Model.Notices.Count().Equals(0)) { <p>@T("This member doesn't have any active notices")</p> } @foreach (var notice in Model.Notices) { @Display(notice) } @{ <div id="arc...
```c# @using LETS.Helpers; @model LETS.ViewModels.MemberNoticesViewModel <h1>@string.Format("{0}'s {1}", @Model.Member.FirstLastName, T("notices"))</h1> @if (Model.Notices.Count().Equals(0)) { <p>@T("This member doesn't have any active notices")</p> } @foreach (var notice in Model.Notices) { var id = notice.C...