doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
d7f23ee9-c3b5-480a-8b5c-83df9bdc8ab4
{ "language": "C#" }
```c# using System.IO; using System.Net; using System.Text.RegularExpressions; namespace LMP.MasterServer { public class Helper { public static string GetOwnIpAddress() { var currentIpAddress = TryGetIpAddress("http://ip.42.pl/raw"); if (string.IsNullOrEmpty(currentIpA...
```c# using System.IO; using System.Net; using System.Text.RegularExpressions; namespace LMP.MasterServer { public class Helper { public static string GetOwnIpAddress() { var currentIpAddress = TryGetIpAddress("http://ip.42.pl/raw"); if (string.IsNullOrEmpty(currentIpA...
3388e9c2-4e76-4b11-ab21-d322551e8345
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; using Newtonsoft.Json.Linq; using Umbraco.Core.Manifest; using Umbraco.Web.UI.JavaScript; namespace Umbraco.Tests.AngularIntegration { [TestFixture] pub...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; using Newtonsoft.Json.Linq; using Umbraco.Core.Manifest; using Umbraco.Web.UI.JavaScript; namespace Umbraco.Tests.AngularIntegration { [TestFixture] pub...
ec6c4909-bd34-4318-aaad-7d4c27bf38e5
{ "language": "C#" }
```c# using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using static Content.Shared.GameObjects.Components.SharedWiresComponent; namespace Content.Client.GameObjects.Components.Wires { public class WiresVisualizer : AppearanceVisualizer { public override void OnCha...
```c# using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using static Content.Shared.GameObjects.Components.SharedWiresComponent; namespace Content.Client.GameObjects.Components.Wires { public class WiresVisualizer : AppearanceVisualizer { public override void OnCha...
8ec3f87a-6ea3-41b8-bd2f-d92e8a80d140
{ "language": "C#" }
```c# #region using System.Diagnostics; using System.IO; using System.Threading; using SteamAccountSwitcher.Properties; #endregion namespace SteamAccountSwitcher { internal class SteamClient { public static void LogIn(Account account) { Process.Start(Settings.Default.SteamPath, ...
```c# #region using System.Diagnostics; using System.IO; using System.Threading; using SteamAccountSwitcher.Properties; #endregion namespace SteamAccountSwitcher { internal class SteamClient { public static void LogIn(Account account) { Process.Start(Settings.Default.SteamPath, ...
f88d35d9-a2b7-4282-ab32-3272488fdaea
{ "language": "C#" }
```c# // Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using System.Globalization; using System.IO; using System.Reflection; using System.Resources; using Perspex.Platform; namespace Persp...
```c# // Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using System.Globalization; using System.IO; using System.Reflection; using System.Resources; using Perspex.Platform; namespace Persp...
a6bdcb63-f3a4-450a-a703-908ebd4c6e46
{ "language": "C#" }
```c# <div class="sticky-notes"> <div class="sticky-note"> <i class="pin"></i> <div class="content yellow"> <h1> Patron's Trophy </h1> <p> Entries for Parton's Trophy close Thursday, 2nd June 2016. <a href="/tournaments">Learn more...
```c# <div class="sticky-notes"> <div class="sticky-note"> <i class="pin"></i> <div class="content green"> <h1> Recent Updates </h1> <ul> <li>Link to Association Croquet World Rankings added to <a href="/disciplines/association-cro...
54e8c48a-c60b-4bef-a9aa-bb953f488c43
{ "language": "C#" }
```c# using Microsoft.Extensions.Configuration; using RockLib.Messaging; namespace RockLib.Configuration.MessagingProvider { public static class RockLibMessagingProviderExtensions { public static IConfigurationBuilder AddRockLibMessagingProvider(this IConfigurationBuilder builder, string scenarioName)...
```c# using Microsoft.Extensions.Configuration; using RockLib.Messaging; namespace RockLib.Configuration.MessagingProvider { public static class RockLibMessagingProviderExtensions { public static IConfigurationBuilder AddRockLibMessagingProvider(this IConfigurationBuilder builder, string scenarioName)...
85200cc2-ea36-44c0-84c9-1856ca03c9f6
{ "language": "C#" }
```c# @model IEnumerable<Zk.Models.Crop> @{ ViewBag.Title = "Gewassen"; } <h2>Dit zijn de gewassen in de database:</h2> <table class="table table-striped"> <tr> <th>Id</th><th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th> <th>Opp. per zak</th><th>Prijs per zakje</th><th>Zaaimaanden</t...
```c# @model IEnumerable<Zk.Models.Crop> @{ ViewBag.Title = "Gewassen"; } <h2>Dit zijn de gewassen in de database:</h2> <table style="font-size: 12px;"> <tr> <th>Id</th><th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th> <th>Opp. per zak</th><th>Prijs per zakje</th><th>Zaaimaanden</th><...
14bd007a-ea20-4c5d-be7e-b108ccc9951e
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="SerializationDummyFactory.cs" company="OBeautifulCode"> // Copyright (c) OBeautifulCode 2018. All rights reserved. // </copyright> // <auto-generated> // Sourced from NuG...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="SerializationDummyFactory.cs" company="OBeautifulCode"> // Copyright (c) OBeautifulCode 2018. All rights reserved. // </copyright> // <auto-generated> // Sourced from NuG...
3f8f0dcb-7eda-4350-8e77-127e19cd19aa
{ "language": "C#" }
```c# using NUnit.Framework; namespace TagLib.Tests.Images.Validators { /// <summary> /// This class tests the modification of the Comment field, /// regardless of which metadata format is used. /// </summary> public class CommentModificationValidator : IMetadataModificationValidator { string orig_commen...
```c# using System; using NUnit.Framework; namespace TagLib.Tests.Images.Validators { /// <summary> /// This class tests the modification of the Comment field, /// regardless of which metadata format is used. /// </summary> public class CommentModificationValidator : IMetadataModificationValidator { stri...
1984468d-4b45-46de-bd85-29e316487d93
{ "language": "C#" }
```c# // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Threading; namespace RazorWebSite { public class WaitService { private static readon...
```c# // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Threading; namespace RazorWebSite { public class WaitService { private static readon...
f5de59a6-ba44-4856-903c-27eeaeae2adf
{ "language": "C#" }
```c# /* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distri...
```c# /* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distri...
51cf7c70-c0a8-4d84-8fb9-77e512e2a432
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Shared.Ext...
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Shared.Ext...
b9f24824-f613-414e-8d7e-23aa4ad86c6a
{ "language": "C#" }
```c# using FBCore.Concurrency; using ImagePipeline.Image; using ImagePipeline.Memory; using ImagePipeline.Request; using System.IO; using System.Threading.Tasks; namespace ImagePipeline.Producers { /// <summary> /// Represents a local file fetch producer. /// </summary> public class LocalFileFetchPro...
```c# using FBCore.Concurrency; using ImagePipeline.Image; using ImagePipeline.Memory; using ImagePipeline.Request; using System; using System.IO; using System.Threading.Tasks; using Windows.Foundation; using Windows.Storage; namespace ImagePipeline.Producers { /// <summary> /// Represents a local file fetch ...
519384ff-08ef-4608-9c42-88bc3597d5e4
{ "language": "C#" }
```c# using System.Collections.Generic; using System.IO; using System.Text.Encodings.Web; using System.Threading.Tasks; using Fluid.Ast; namespace Fluid { public class BaseFluidTemplate<T> : IFluidTemplate where T : IFluidTemplate, new() { static BaseFluidTemplate() { // Necessary ...
```c# using System.Collections.Generic; using System.IO; using System.Text.Encodings.Web; using System.Threading.Tasks; using Fluid.Ast; namespace Fluid { public class BaseFluidTemplate<T> : IFluidTemplate where T : IFluidTemplate, new() { static BaseFluidTemplate() { // Necessary ...
89c4a84a-48b3-4d18-9e05-e046cc1911eb
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _10.PythagoreanNumbers { class PythagoreanNumbers { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] nums = ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _10.PythagoreanNumbers { class PythagoreanNumbers { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int[] nums = ...
d41a2697-8941-4954-a315-e10ebdc25473
{ "language": "C#" }
```c# using System; using System.Threading; namespace ProcessTest_ConsoleApp { class Program { static int Main(string[] args) { try { if (args.Length > 0) { if (args[0].Equals("infinite")) { ...
```c# using System; using System.Threading; namespace ProcessTest_ConsoleApp { class Program { static int Main(string[] args) { try { if (args.Length > 0) { if (args[0].Equals("infinite")) { ...
cd574619-010e-4e74-8354-a2847c24662f
{ "language": "C#" }
```c# using System; using System.Reflection; using System.Reflection.Emit; namespace AspectCore.Lite.Abstractions.Generator { public abstract class PropertyGenerator : AbstractGenerator<TypeBuilder, PropertyBuilder> { public abstract string PropertyName { get; } public abstract PropertyAttrib...
```c# using System; using System.Reflection; using System.Reflection.Emit; namespace AspectCore.Lite.Abstractions.Generator { public abstract class PropertyGenerator : AbstractGenerator<TypeBuilder, PropertyBuilder> { public abstract string PropertyName { get; } public abstract PropertyAttrib...
4b3eb0db-680b-42cd-844f-bd83f91cc1de
{ "language": "C#" }
```c# namespace NSec.Cryptography { public enum KeyBlobFormat { None = 0, // --- Secret Key Formats --- RawSymmetricKey = -1, RawPrivateKey = -2, NSecSymmetricKey = -101, NSecPrivateKey = -102, // --- Public Key Formats --- RawPublicKey = 1, ...
```c# namespace NSec.Cryptography { public enum KeyBlobFormat { None = 0, // --- Secret Key Formats --- RawSymmetricKey = -1, RawPrivateKey = -2, NSecSymmetricKey = -101, NSecPrivateKey = -102, PkixPrivateKey = -202, PkixPrivateKeyText = -203, ...
2ea33b91-c6b6-4f57-a2dc-a7cec7f1df04
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Security.Cryptography; namespace LanguageExt { public static partial class Prelude { readonly static RNGCryptoServiceProvider rnd = new RNGCryptoServiceProvider(); readonly static byte[] target = new byte[4096]; /// <s...
```c# using System; using System.Collections.Generic; using System.Security.Cryptography; namespace LanguageExt { public static partial class Prelude { readonly static RNGCryptoServiceProvider rnd = new RNGCryptoServiceProvider(); readonly static byte[] inttarget = new byte[4]; /// <s...
fd8f161a-f2b1-4f08-be7c-eadfb4c77eb6
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyConfiguration("")] // Setting ComVisible ...
```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: AssemblyCon...
212f03df-1b1e-42db-bc58-c0a695950d24
{ "language": "C#" }
```c# namespace Microsoft.Build.Logging.StructuredLogger { public class BinaryLog { public static Build ReadBuild(string filePath) { var eventSource = new BinaryLogReplayEventSource(); byte[] sourceArchive = null; eventSource.OnBlobRead += (kind, ...
```c# using System.Diagnostics; namespace Microsoft.Build.Logging.StructuredLogger { public class BinaryLog { public static Build ReadBuild(string filePath) { var eventSource = new BinaryLogReplayEventSource(); byte[] sourceArchive = null; even...
ded24919-70ba-4f6d-b3e0-be659afa1985
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace IntelliTect.Coalesce.TypeDefinition { public static class ReflectionExtensions { /// <summary> /// Returns the attributed requested if it exists or null if ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace IntelliTect.Coalesce.TypeDefinition { public static class ReflectionExtensions { /// <summary> /// Returns the attributed requested if it exists or null if ...
06a9f6b3-5cbc-43ff-9097-bde73f85e4cd
{ "language": "C#" }
```c# namespace Nine.Storage { using System; using System.Collections.Generic; using Xunit; public class PersistedStorageTest : StorageSpec<PersistedStorageTest> { public override IEnumerable<ITestFactory<IStorage<TestStorageObject>>> GetData() { return new[] ...
```c# namespace Nine.Storage { using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Threading.Tasks; using Xunit; public class PersistedStorageTest : StorageSpec<PersistedStorageTest> { public override IEnumerable<ITestFactory<IStorage<T...
865ec228-42e8-462d-b178-a4baf1b35827
{ "language": "C#" }
```c# using System; using System.Reflection; using slang.Compiler.Clr.Compilation.Definitions; namespace slang.Tests.IL { static class AssemblyDefinitionExtensions { public static Type [] GetTypes (this AssemblyDefinition assemblyDefinition) { return assemblyDefinition.LoadAssembly...
```c# using System; using System.Reflection; using slang.Compiler.Clr.Compilation.Definitions; namespace slang.Tests.IL { static class AssemblyDefinitionExtensions { public static Type [] GetTypes (this AssemblyDefinition assemblyDefinition) { return assemblyDefinition.LoadAssembl...
93b940d7-ec24-4d84-a766-e942e4a44546
{ "language": "C#" }
```c# @model Wangkanai.Detection.Services.IDetectionService @{ ViewData["Title"] = "Detection"; } <h3>UserAgent</h3> <code>@Model.UserAgent</code> <h3>Results</h3> <table> <thead> <tr> <th>Resolver</th> <th>Type</th> <th>Version</th> </tr> </thead> ...
```c# @model Wangkanai.Detection.Services.IDetectionService @{ ViewData["Title"] = "Detection"; } <h3>UserAgent</h3> <code>@Model.UserAgent</code> <h3>Results</h3> <table> <thead> <tr> <th>Resolver</th> <th>Type</th> <th>Version</th> </tr> </thead> ...
8da654dc-0a2d-4cef-bdff-648bb38ef4da
{ "language": "C#" }
```c# @functions { private string GetCssClass(string actionName, string controllerName) { var currentControllerName = ViewContext.RouteData.Values["controller"].ToString(); var isCurrentController = currentControllerName == controllerName; if (currentControllerName == "Home") {...
```c# @functions { private string GetCssClass(string actionName, string controllerName) { var currentControllerName = ViewContext.RouteData.Values["controller"].ToString(); var isCurrentController = currentControllerName == controllerName; if (currentControllerName == "Home") {...
fdc35581-fd9e-4488-9710-67376abc1de9
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq.Expressions; using Jokenizer.Net; namespace System.Linq.Dynamic { public static partial class DynamicQueryable { public static IQueryable<T> As<T>(this IQueryable source) { return (IQueryable<T>)source; } public static...
```c# using System.Collections.Generic; using System.Linq.Expressions; using Jokenizer.Net; namespace System.Linq.Dynamic { public static partial class DynamicQueryable { public static IQueryable<T> As<T>(this IQueryable source) { return (IQueryable<T>)source; } public static...
13149498-b49c-4729-bcd3-d74d5d3c7c93
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; namespace BTCPayServer.Services { public class PoliciesSettings { [Display(Name = "Requires a confirmation mail for registering")] ...
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; using Newtonsoft.Json; namespace BTCPayServer.Services { public class PoliciesSettings { [Display(Name = "Requires a confirmation mail for registering")] ...
461277ef-36eb-430b-a48e-8d674f547ea4
{ "language": "C#" }
```c# // <copyright file="TextToPythonScript.cs" company="Mark Final"> // Opus package // </copyright> // <summary>XmlUtilities package</summary> // <author>Mark Final</author> namespace XmlUtilities { public static class TextToPythonScript { public static void Write( System.Text.St...
```c# // <copyright file="TextToPythonScript.cs" company="Mark Final"> // Opus package // </copyright> // <summary>XmlUtilities package</summary> // <author>Mark Final</author> namespace XmlUtilities { public static class TextToPythonScript { public static void Write( System.Text.St...
e63e7501-362e-4890-a128-7649c0c18b6c
{ "language": "C#" }
```c# using System; using System.ComponentModel; using System.Windows; using DesktopWidgets.Classes; using DesktopWidgets.Helpers; using Xceed.Wpf.Toolkit.PropertyGrid.Attributes; namespace DesktopWidgets.Actions { public abstract class ActionBase { [PropertyOrder(0)] [DisplayName("Delay")] ...
```c# using System; using System.ComponentModel; using System.Windows; using DesktopWidgets.Classes; using DesktopWidgets.Helpers; using Xceed.Wpf.Toolkit.PropertyGrid.Attributes; namespace DesktopWidgets.Actions { public abstract class ActionBase { [PropertyOrder(0)] [DisplayName("Delay")] ...
c5dc7cb8-e403-4b23-8d16-5125afcbb97b
{ "language": "C#" }
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNetCore.Server.IntegrationTesting { public static class Tfm { public const string Net461 = ...
```c# // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNetCore.Server.IntegrationTesting { public static class Tfm { public const string Net461 = ...
2e9544d4-21c8-45e9-b810-cec71396b1d0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using TeamTasker.Web.Domain; namespace TeamTasker.Web.Controllers { public class TasksController : Controller { private TaskerContext db = new TaskerContext(); [HttpPost] p...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using TeamTasker.Web.Domain; namespace TeamTasker.Web.Controllers { public class TasksController : Controller { private TaskerContext db = new TaskerContext(); [HttpPost] p...
86295010-dac0-42f4-87fa-fc4ad0f3a5e6
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; [ExecuteInEditMode] public class ShaderBlit : MonoBehaviour { public bool Dirty = true; public bool AlwaysDirtyInEditor = true; public Texture Input; public Shader BlitShader; public Material BlitMaterial; public RenderTexture ...
```c# using UnityEngine; using System.Collections; [ExecuteInEditMode] public class ShaderBlit : MonoBehaviour { [InspectorButton("Execute")] public bool Dirty = true; public bool AlwaysDirtyInEditor = true; public Texture Input; public Shader BlitShader; public Material BlitMat...
29ff9dee-6f13-4651-87dc-bccdec76a320
{ "language": "C#" }
```c# // Copyright 2020 Jon Skeet. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using Google.Protobuf; using VDrumExplorer.Model; namespace VDrumExplorer.Proto { internal partial class InstrumentAudio { internal Model.Audi...
```c# // Copyright 2020 Jon Skeet. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using Google.Protobuf; using VDrumExplorer.Model; namespace VDrumExplorer.Proto { internal partial class InstrumentAudio { internal Model.Audi...
491cb98a-f39e-4854-a848-f1682f45c861
{ "language": "C#" }
```c# using Common; using NUnit.Framework; namespace Tests.Common { [TestFixture] public class TourTest { private Tour testee; [SetUp] public void Init() { testee = new Tour(); testee.AddGift(new Gift(1, 500, 0, 0)); testee.AddGift(new G...
```c# using Common; using NUnit.Framework; namespace Tests.Common { [TestFixture] public class TourTest { private Tour testee; [SetUp] public void Init() { testee = new Tour(); testee.AddGift(new Gift(1, 500, 0, 0)); testee.AddGift(new G...
c300c6ba-0784-4da6-8174-afc9787f32fd
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="DataMigrationAppSettings.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. // </copyright> // ------------------------------------------------------------...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="DataMigrationAppSettings.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. // </copyright> // ------------------------------------------------------------...
a573765d-20ce-49f0-a416-2e730efae7dd
{ "language": "C#" }
```c# namespace NFig.Tests.Common { public enum Tier { Any = 0, Local = 1, Dev = 2, Prod = 3, } public enum DataCenter { Any = 0, Local = 1, Dev = 2, Prod = 3, } }``` Fix DataCenter enum in tests project
```c# namespace NFig.Tests.Common { public enum Tier { Any = 0, Local = 1, Dev = 2, Prod = 3, } public enum DataCenter { Any = 0, Local = 1, East = 2, West = 3, } }```
e30d5153-e141-4673-8d8c-f40fa3430d8a
{ "language": "C#" }
```c# @{ Layout = "_Layout"; ViewData["Title"] = "Analysen"; } <div class="row"> <nav class="col-md-3 col-xl-2"> <ul class="nav"> <li class="nav-item"> <a class="nav-link text-dark" asp-area="Analysis" asp-controller="UnknownKeyRequests" asp-action="Index">Unbekannte Translationkeys</a> </li> </ul> ...
```c# @using System.Linq @inject MitternachtWeb.Areas.Analysis.Services.UnknownKeyRequestsService UnknownKeyRequestsService @{ Layout = "_Layout"; ViewData["Title"] = "Analysen"; } <div class="row"> <nav class="col-md-3 col-xl-2"> <ul class="nav"> <li class="nav-item"> <a class="nav-link text-dark d-flex ...
6e404315-92b4-44a0-a0a2-fda778fa66b2
{ "language": "C#" }
```c# using System; namespace TAPCfg { public class EthernetFrame { private byte[] data; private byte[] src = new byte[6]; private byte[] dst = new byte[6]; private int etherType; public EthernetFrame(byte[] data) { this.data = data; Array.Copy(data, 0, dst, 0, 6); Array.Copy(data, 6, src, 0, 6);...
```c# using System; namespace TAPCfg { public enum EtherType : int { InterNetwork = 0x0800, ARP = 0x0806, RARP = 0x8035, AppleTalk = 0x809b, AARP = 0x80f3, InterNetworkV6 = 0x86dd, CobraNet = 0x8819, } public class EthernetFrame { private byte[] data; ...
bccdb8c4-aaf1-4e6a-86fc-11e46d985d36
{ "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 osuTK; using osuTK.Graphics; namespace osu.Game.Rulesets.Catch.Objects.Drawables { /// <summary> /// Provides a visual...
```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 osuTK; using osuTK.Graphics; namespace osu.Game.Rulesets.Catch.Objects.Drawables { /// <summary> /// Provides a visual...
e95c356a-26e8-42bf-8929-eaef8069f2bc
{ "language": "C#" }
```c# using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace IdentitySample { public static class Program { public static void Main(string[] args) => BuildWebHost(args).Run(); public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args...
```c# using System.IO; using Microsoft.AspNetCore.Hosting; namespace IdentitySample { public static class Program { public static void Main(string[] args) { var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory())...
ab3d4a30-296a-42ae-828a-77060c4be7b5
{ "language": "C#" }
```c# //------------------------------------------------------------------------------ // <copyright // file="CommonAssemblyInfo.cs" // company="enckse"> // Copyright (c) All rights reserved. // </copyright> //------------------------------------------------------------------------------ using System.Reflection; u...
```c# //------------------------------------------------------------------------------ // <copyright // file="CommonAssemblyInfo.cs" // company="enckse"> // Copyright (c) All rights reserved. // </copyright> //------------------------------------------------------------------------------ using System.Reflection; u...
1563f5df-f740-4ab1-b7c8-167d31234099
{ "language": "C#" }
```c# using System; using Abp.AspNetCore.Configuration; using Abp.Configuration.Startup; using Microsoft.AspNet.OData.Builder; using Microsoft.AspNet.OData.Extensions; namespace Abp.AspNetCore.OData.Configuration { internal class AbpAspNetCoreODataModuleConfiguration : IAbpAspNetCoreODataModuleConfiguration {...
```c# using System; using Abp.AspNetCore.Configuration; using Abp.Configuration.Startup; using Microsoft.AspNet.OData; using Microsoft.AspNet.OData.Builder; using Microsoft.AspNet.OData.Extensions; namespace Abp.AspNetCore.OData.Configuration { internal class AbpAspNetCoreODataModuleConfiguration : IAbpAspNetCore...
a125973b-d5d2-4953-b848-2a4d78b661bc
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace Assent.Reporters.DiffPrograms { public abstract class DiffProgramBase : IDiffProgram { protected static IReadOnlyList<string> WindowsProgramFilePaths => new[] { ...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; namespace Assent.Reporters.DiffPrograms { public abstract class DiffProgramBase : IDiffProgram { protected static IReadOnlyList<string> WindowsProgramFilePaths => new[] { ...
c0c7fad3-7225-464e-8a4e-89a05b5e471a
{ "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; using Yio.Utilities; namespace Yio { pu...
```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; using Yio.Utilities; namespace Yio { pu...
e00ea92c-8519-4d31-b450-40c69748a4c1
{ "language": "C#" }
```c# using Bit.Signalr; using Bit.Signalr.Implementations; using BitChangeSetManager.DataAccess; using BitChangeSetManager.Model; using System; using System.Threading; using System.Threading.Tasks; using Bit.Data.Contracts; using BitChangeSetManager.DataAccess.Contracts; namespace BitChangeSetManager.Api.Implementat...
```c# using Bit.Signalr; using Bit.Signalr.Implementations; using BitChangeSetManager.DataAccess.Contracts; using BitChangeSetManager.Model; using Microsoft.Owin; using System; using System.Threading.Tasks; namespace BitChangeSetManager.Api.Implementations { public class BitChangeSetManagerAppMessageHubEvents : D...
f68bff64-bbfe-4e3e-ab7e-bb95585623bd
{ "language": "C#" }
```c# using System; using HtmlAgilityPack; namespace ReverseMarkdown.Converters { public class Div : ConverterBase { public Div(Converter converter) : base(converter) { Converter.Register("div", this); } public override string Convert(HtmlNode node) { ...
```c# using System; using HtmlAgilityPack; namespace ReverseMarkdown.Converters { public class Div : ConverterBase { public Div(Converter converter) : base(converter) { Converter.Register("div", this); } public override string Convert(HtmlNode node) { ...
4aef8f93-4a84-4ac7-a00f-ffb07848b8c4
{ "language": "C#" }
```c# using System; using System.Numerics; namespace CSGL.Math { public struct Rectanglei { public int X { get; set; } public int Y { get; set; } public int Width { get; set; } public int Height { get; set; } public Rectanglei(int x, int y, int width, int height) { ...
```c# using System; using System.Numerics; namespace CSGL.Math { public struct Rectanglei { public int X { get; set; } public int Y { get; set; } public int Width { get; set; } public int Height { get; set; } public Rectanglei(int x, int y, int width, int height) { ...
d281cfd9-a2aa-499f-ac95-3ec54354cdb5
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace DirectoryHash.Tests { public class RecomputeTests { [Fact] public void RecomputeOnEmptyDirectory() { using (var temporaryDirector...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace DirectoryHash.Tests { public class RecomputeTests : IDisposable { private readonly TemporaryDirectory temporaryDirectory = new TemporaryDirectory(); ...
ebe2c437-b7bc-4e60-8fdc-c8eac7b81eb9
{ "language": "C#" }
```c# using Kata.GildedRose.CSharp.Domain; namespace Kata.GildedRose.CSharp.Unit.Tests.Factories.UpdateStockItemStrategy { public class UpdateItemStrategyFactory : IUpdateItemStrategyFactory { public IStockItemUpdateStrategy Create(Item stockItem) { return new AgedBrieUpdateStrateg...
```c# using Kata.GildedRose.CSharp.Domain; namespace Kata.GildedRose.CSharp.Unit.Tests.Factories.UpdateStockItemStrategy { public class UpdateItemStrategyFactory : IUpdateItemStrategyFactory { public IStockItemUpdateStrategy Create(Item stockItem) { switch (item.Name) {...
26a4dcc0-8067-42c7-b7ee-062c734fea9a
{ "language": "C#" }
```c# using System.Threading; using System.Threading.Tasks; using Nimbus.ConcurrentCollections; using Nimbus.Configuration.Settings; using Nimbus.Infrastructure; using Nimbus.Infrastructure.MessageSendersAndReceivers; using Nimbus.Transports.InProcess.QueueManagement; namespace Nimbus.Transports.InProcess.MessageSende...
```c# using System.Threading; using System.Threading.Tasks; using Nimbus.ConcurrentCollections; using Nimbus.Configuration.Settings; using Nimbus.Infrastructure; using Nimbus.Infrastructure.MessageSendersAndReceivers; using Nimbus.Transports.InProcess.QueueManagement; namespace Nimbus.Transports.InProcess.MessageSende...
468b7801-9cc5-4123-b1a4-6148213c9489
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; using Microsoft.UI.Xaml; using Windows.Storage.Pickers; namespace ModelViewer.Services; public sealed class FilePickerService { public async Task<string> StartFilePicker(string filters) { var tokens = filters.Split(';', StringSplitOptions.TrimEntries ...
```c# using System; using System.Threading.Tasks; using Microsoft.UI.Xaml; using Windows.Storage.Pickers; namespace ModelViewer.Services; public sealed class FilePickerService { public async Task<string> StartFilePicker(string filters) { var tokens = filters.Split(';', StringSplitOptions.TrimEntries ...
e70eb9c2-e3d6-44b6-88dc-bff53f72c352
{ "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.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Screens.Edit.Compose.Components; namespace osu....
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Beatmaps; using osu.Game.Beatmaps.ControlPoints; using osu.Game.Rulesets.Osu.Objects; using osu.Game.Screens.Edit.Compose.Components; namespace osu....
1744ebe8-8806-4ffe-abdf-ac0b918c283b
{ "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...
91882a21-caff-4d2f-9bf2-353dfded262a
{ "language": "C#" }
```c# using System; using Cirrious.CrossCore; using Cirrious.CrossCore.Droid.Platform; using Cirrious.CrossCore.Plugins; using Acr.UserDialogs; namespace Acr.MvvmCross.Plugins.UserDialogs.Droid { public class Plugin : IMvxPlugin { public void Load() { Mvx.CallbackWhenRegistered<IMvxAndroidCu...
```c# using System; using Cirrious.CrossCore; using Cirrious.CrossCore.Droid.Platform; using Cirrious.CrossCore.Plugins; using Acr.UserDialogs; namespace Acr.MvvmCross.Plugins.UserDialogs.Droid { public class Plugin : IMvxPlugin { public void Load() { Acr.UserDialogs.UserDialogs.Instance = n...
98d47132-ee37-4c9b-be2f-1b72c687e05e
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; public class Sequence : CompositeTask { private int taskIndex = 0; public Sequence(string name) : base(name) { } override public ReturnCode Update() { var returnCode = tasks[taskIndex].Update(); if ...
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; public class Sequence : CompositeTask { private int taskIndex = 0; public Sequence(string name) : base(name) { } override public ReturnCode Update() { var returnCode = tasks[taskIndex].Update(); if ...
e8983d74-3a11-4bd2-851d-1c74df8322ad
{ "language": "C#" }
```c# using System.IO; using Ionic.Zip; namespace UnityBuildServer { public class ZipArchiveStep : ArchiveStep { ZipArchiveConfig config; public ZipArchiveStep(ZipArchiveConfig config) { this.config = config; } public override string TypeName { ...
```c# using System.IO; using Ionic.Zip; namespace UnityBuildServer { public class ZipArchiveStep : ArchiveStep { ZipArchiveConfig config; public ZipArchiveStep(ZipArchiveConfig config) { this.config = config; } public override string TypeName { ...
5023bd2b-2237-46e8-94a9-c04f9130d247
{ "language": "C#" }
```c# using ICities; using BuildingThemes.GUI; using UnityEngine; namespace BuildingThemes { public class BuildingThemesMod : IUserMod { // we'll use this variable to pass the building position to GetRandomBuildingInfo method. It's here to make possible 81 Tiles compatibility public static Vec...
```c# using ICities; using BuildingThemes.GUI; using UnityEngine; namespace BuildingThemes { public class BuildingThemesMod : IUserMod { // we'll use this variable to pass the building position to GetRandomBuildingInfo method. It's here to make possible 81 Tiles compatibility public static Vec...
2d268979-cb58-4fb3-8461-5ce1f0e811e2
{ "language": "C#" }
```c# using Newtonsoft.Json; using ShopifySharp.Enums; namespace ShopifySharp.Filters { /// <summary> /// Options for filtering <see cref="OrderService.CountAsync(OrderFilter)"/> and /// <see cref="OrderService.ListAsync(OrderFilter)"/> results. /// </summary> public class OrderFilter : ListFilter...
```c# using System; using Newtonsoft.Json; using ShopifySharp.Enums; namespace ShopifySharp.Filters { /// <summary> /// Options for filtering <see cref="OrderService.CountAsync(OrderFilter)"/> and /// <see cref="OrderService.ListAsync(OrderFilter)"/> results. /// </summary> public class OrderFilte...
ac56d378-0e2f-4e75-b705-7a33df031f69
{ "language": "C#" }
```c# using System; using Xunit; using ISTS.Domain.Users; namespace ISTS.Domain.Tests.Users { public class UserTests { [Fact] public void Create_Returns_New_User() { var user = User.Create("myemail@company.com", "Person", "12345", "password1"); Assert.NotNull(...
```c# using System; using Moq; using Xunit; using ISTS.Domain.Common; using ISTS.Domain.Users; namespace ISTS.Domain.Tests.Users { public class UserTests { private readonly Mock<IUserValidator> _userValidator; public UserTests() { _userValidator = new Mock<IUserValidator>...
c173d930-d0bf-4bbd-92d0-ed9e65c3d9bc
{ "language": "C#" }
```c# namespace Glimpse.Server.Web { public class MessageStreamResource : IResourceStartup { private readonly IServerBroker _serverBroker; public MessageStreamResource(IServerBroker serverBroker) { _serverBroker = serverBroker; } public void Configure(IReso...
```c# using System.Reactive.Concurrency; using System.Reactive.Linq; using System.Reactive.Subjects; using System.Threading.Tasks; using Microsoft.AspNet.Http.Features; using Microsoft.AspNet.Http; using System; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace Glimpse.Server.Web { public clas...
ca0bcb6f-535a-41e7-8170-b7927c485cb2
{ "language": "C#" }
```c# using System.Collections.ObjectModel; using System.ComponentModel; using App2Night.Model.Enum; namespace App2Night.Model.Model { public class User { public string Name { get; set; } public int Age { get; set; } public Gender Gender { get; set; } = Gender.Unkown; public string ...
```c# using System.Collections.ObjectModel; using System.ComponentModel; using App2Night.Model.Enum; namespace App2Night.Model.Model { public class User { public string Name { get; set; } public string Email { get; set; } public ObservableCollection<Party> Events { get; set; } ...
763619e5-31b7-425a-808a-04b75fc7ef52
{ "language": "C#" }
```c# using System; using System.Net; namespace DevDefined.OAuth.Consumer { public interface IConsumerRequestRunner { IConsumerResponse Run(IConsumerRequest consumerRequest); } public class DefaultConsumerRequestRunner : IConsumerRequestRunner { public IConsumerResponse ...
```c# using System; using System.Net; namespace DevDefined.OAuth.Consumer { public interface IConsumerRequestRunner { IConsumerResponse Run(IConsumerRequest consumerRequest); } public class DefaultConsumerRequestRunner : IConsumerRequestRunner { public IConsumerResponse ...
2d359aba-b488-474d-83a1-4bc8f672bf0b
{ "language": "C#" }
```c# using GalaSoft.MvvmLight.Messaging; using KAGTools.Helpers; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Contr...
```c# using GalaSoft.MvvmLight.Messaging; using KAGTools.Helpers; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Contr...
6f1418e1-b5b1-40c3-a9f3-37bb8c71c963
{ "language": "C#" }
```c# using System; using System.Collections.Generic; namespace GIDX.SDK.Models.CustomerIdentity { public class CustomerRegistrationResponse : ResponseBase, IReasonCodes { public string MerchantCustomerID { get; set; } public decimal IdentityConfidenceScore { get; set; } public decimal...
```c# using System; using System.Collections.Generic; namespace GIDX.SDK.Models.CustomerIdentity { public class CustomerRegistrationResponse : ResponseBase, IReasonCodes { public string MerchantCustomerID { get; set; } public decimal IdentityConfidenceScore { get; set; } public decimal...
3e892965-7995-45d3-a81e-b73d2c5d1a79
{ "language": "C#" }
```c# /* ** Project ShiftDrive ** (C) Mika Molenkamp, 2016. */ using Microsoft.Xna.Framework; namespace ShiftDrive { /// <summary> /// A <seealso cref="GameObject"/> representing a single asteroid. /// </summary> internal sealed class Asteroid : GameObject { public Asteroid() { ...
```c# /* ** Project ShiftDrive ** (C) Mika Molenkamp, 2016. */ using Microsoft.Xna.Framework; namespace ShiftDrive { /// <summary> /// A <seealso cref="GameObject"/> representing a single asteroid. /// </summary> internal sealed class Asteroid : GameObject { public Asteroid() { ...
206f2324-e10c-4043-ba31-140107735bf0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DigiTransit10.ExtensionMethods { public static class TaskExtensions { public static void DoNotAwait(this Task task) { } public static void DoNotAwait<T>(this Tas...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Foundation; namespace DigiTransit10.ExtensionMethods { public static class TaskExtensions { public static void DoNotAwait(this Task task) { } public static v...
2a87dce0-8087-44eb-8b07-4887824c3353
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Globalization; using Xunit; namespace System.Globalization.Tests { public class Test { [Fact] public void Test...
```c# // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Globalization; using Xunit; namespace System.Globalization.Tests { public class Test { [Fact] public void Test...
ebed67df-b5fa-4320-953f-83d463bd018e
{ "language": "C#" }
```c# using System; using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("StyleCop.Analyzers.Tes...
```c# using System; using System.Reflection; using System.Runtime.InteropServices; using Xunit; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("StyleCop....
7f48880b-64d6-42f0-84fb-933a4566b0d2
{ "language": "C#" }
```c# using JetBrains.ReSharper.FeaturesTestFramework.Completion; using NUnit.Framework; namespace JetBrains.ReSharper.Plugins.Unity.Tests.Feature.Services.CodeCompletion { // TODO: This doesn't test automatic completion // The AutomaticCodeCompletionTestBase class is not in the SDK [TestUnity] public...
```c# using JetBrains.ReSharper.FeaturesTestFramework.Completion; using NUnit.Framework; namespace JetBrains.ReSharper.Plugins.Unity.Tests.Feature.Services.CodeCompletion { // TODO: This doesn't test automatic completion // The AutomaticCodeCompletionTestBase class is not in the SDK [TestUnity] public...
3a4769fd-5120-4e77-b59c-7ee2b91f2d4e
{ "language": "C#" }
```c# using System.Diagnostics; using System.IO; using System.Linq; namespace grr.Messages { [System.Diagnostics.DebuggerDisplay("{GetRemoteCommand()}")] public class OpenDirectoryMessage : DirectoryMessage { public OpenDirectoryMessage(RepositoryFilterOptions filter) : base(filter) { } protected overr...
```c# using System.Diagnostics; using System.IO; using System.Linq; namespace grr.Messages { [System.Diagnostics.DebuggerDisplay("{GetRemoteCommand()}")] public class OpenDirectoryMessage : DirectoryMessage { public OpenDirectoryMessage(RepositoryFilterOptions filter) : base(filter) { } protected overr...
bdb5ddad-eee1-4618-afb6-48d8764bcfe6
{ "language": "C#" }
```c# using UnityEngine; using SocketIOClient; public class ServoControllerClient : AbstractSocketioClient { private static readonly string SOCKETIO_SERVER = "http://192.168.1.51:5000"; private static readonly string SOCKETIO_NAMESPACE = "/servo"; public ServoControllerClient() : base(SOCKETIO_SERVER, S...
```c# using UnityEngine; using SocketIOClient; public class ServoControllerClient : AbstractSocketioClient { private static readonly string SOCKETIO_SERVER = "http://192.168.1.51:5000"; private static readonly string SOCKETIO_NAMESPACE = "/servo"; public ServoControllerClient() : base(SOCKETIO_SERVER, S...
ef0246f9-5a59-481a-8209-0522ba8e99a0
{ "language": "C#" }
```c# using System; using EventStore.ClientAPI; using System.Net; namespace EventStorePlayConsole { public class BookedInFact:Fact { public BookedInFact(string atValue, string someValue) { this.BookedInAtValue = atValue; this.PreviousBookingValue = someValue; } ...
```c# using System; using EventStore.ClientAPI; using System.Net; namespace EventStorePlayConsole { public class BookedInFact:Fact { public BookedInFact(string atValue, string someValue) { this.OccurredAt = DateTime.UtcNow; this.BookedInAtValue = atValue; thi...
ea8fdbde-fe66-4b0e-8d96-bea289c144e8
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SlackAPI { public class TeamPreferences { public AuthMode auth_mode; public string[] default_channels; public bool display_real_names; public bool...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SlackAPI { public class TeamPreferences { public AuthMode auth_mode; public string[] default_channels; public bool display_real_names; public bool...
00d335ee-eda5-4a66-a8e1-84511858de0f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using TramlineFive.ViewModels.Wrappers; namespace TramlineFive.ViewModels { public class StopsViewModel { public IList<StopViewModel> LineStop...
```c# using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using TramlineFive.ViewModels.Wrappers; namespace TramlineFive.ViewModels { public class StopsViewModel { public IList<StopViewModel> LineStop...
3f007804-47dd-4d2a-872a-514627fa323c
{ "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.Globalization; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; using Mic...
```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.Globalization; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; using Mic...
e699b02d-0bff-4bcd-bb90-68df6e2396db
{ "language": "C#" }
```c#  // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Sty...
```c#  // This file is used by Code Analysis to maintain SuppressMessage // attributes that are applied to this project. // Project-level suppressions either have no target or are given // a specific target and scoped to a namespace, type, member, etc. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Sty...
65a83ded-b0c9-4991-ba8a-253918bb7691
{ "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 Xunit; /// <summary> /// A class containing tests for the <see cref="Pu...
```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 Xunit; /// <summary> /// A class containing tests for the <see cref="Pu...
a9478dd1-f4e1-4ee3-9b80-05c42eaa790f
{ "language": "C#" }
```c# using LiveSplit.Options; using System; using System.Linq; namespace LiveSplit.Model.Comparisons { public class LastFinishedRunComparisonGenerator : IComparisonGenerator { public IRun Run { get; set; } public const string ComparisonName = "Last Finished Run"; public const string S...
```c# using LiveSplit.Options; using System; using System.Linq; namespace LiveSplit.Model.Comparisons { public class LastFinishedRunComparisonGenerator : IComparisonGenerator { public IRun Run { get; set; } public const string ComparisonName = "Last Finished Run"; public const string S...
451989e5-6287-4e05-8371-83c401d1b37a
{ "language": "C#" }
```c# using Robust.Shared.Animations; namespace Content.Shared.Follower.Components; [RegisterComponent] public sealed class OrbitVisualsComponent : Component { /// <summary> /// How long should the orbit animation last in seconds, before being randomized? /// </summary> public float OrbitLength =...
```c# using Robust.Shared.Animations; using Robust.Shared.GameStates; namespace Content.Shared.Follower.Components; [RegisterComponent] [NetworkedComponent] public sealed class OrbitVisualsComponent : Component { /// <summary> /// How long should the orbit animation last in seconds, before being randomiz...
175fd75d-bf95-4162-82dc-2af7e63ba538
{ "language": "C#" }
```c# using JetBrains.Application.BuildScript.Application.Zones; namespace JetBrains.ReSharper.Plugins.CyclomaticComplexity { [ZoneMarker] public class ZoneMarker { } }``` Add PsiFeaturesImplZone for parent settings key.
```c# using JetBrains.Application.BuildScript.Application.Zones; using JetBrains.ReSharper.Resources.Shell; namespace JetBrains.ReSharper.Plugins.CyclomaticComplexity { [ZoneMarker] public class ZoneMarker : IRequire<PsiFeaturesImplZone> { } }```
6022b6a4-aadf-4cfa-8de0-5745f6f0e2ec
{ "language": "C#" }
```c# using System; public class Year { public static Boolean IsLeap(int i) { if (i % 4 != 0) { return false; } if (i % 100 == 0) { if (i % 400 != 0) { return false; } } return true; } ...
```c# public class Year { public static bool IsLeap(int i) { if (i % 4 != 0) { return false; } if (i % 100 == 0) { if (i % 400 != 0) { return false; } } return true; } }```
31fd2712-1970-43d1-8987-656fc0d4f810
{ "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 enable using osu.Framework.Allocation; using osu.Framework.Audio.Track; using osu.Framework.Timing; using osu.Game.Beatmaps.ControlPoints; using osu.Game...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable enable using osu.Framework.Allocation; using osu.Framework.Audio.Track; using osu.Framework.Timing; using osu.Game.Beatmaps.ControlPoints; using osu.Game...
a8e13cdb-d395-4d8b-b125-912a81a60396
{ "language": "C#" }
```c# using System; using System.Reflection; using System.Web.Hosting; using BitCodeAnalyzer.SystemAnalyzers.WebAnalyzers; using BitCodeAnalyzer.Test.Helpers; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.VisualStudio.TestTools.UnitTesti...
```c# using System; using System.Reflection; using BitCodeAnalyzer.SystemAnalyzers.WebAnalyzers; using BitCodeAnalyzer.Test.Helpers; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading...
803abf2b-4cd7-4c42-ad97-ad2accdc9202
{ "language": "C#" }
```c# using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; using System; using System.Collections.Generic; using System.Linq; namespace HttpMock { public class RequestCacheKey { public string Scheme { get; private set; } public string Host { get; private set; } publi...
```c# using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Primitives; using System; using System.Collections.Generic; using System.Linq; namespace HttpMock { public class RequestCacheKey { public string Method { get; private set; } public string Scheme { get; private set; } pub...
ab76118e-af6f-42c0-89d2-d9da3cecec2c
{ "language": "C#" }
```c# // Copyright // ---------------------------------------------------------------------------------------------------------- // <copyright file="AssemblyInfo.cs" company="https://github.com/safakgur/Dawn.SocketAwaitable"> // MIT // </copyright> // <license> // This source code is subject to terms and ...
```c# // Copyright // ---------------------------------------------------------------------------------------------------------- // <copyright file="AssemblyInfo.cs" company="https://github.com/safakgur/Dawn.SocketAwaitable"> // MIT // </copyright> // <license> // This source code is subject to terms and ...
e5ce89a2-5036-4a63-8054-567bd01dd223
{ "language": "C#" }
```c# using System; namespace AsmResolver.DotNet.Memory { [Flags] public enum MemoryLayoutAttributes { Is32Bit = 0b0, Is64Bit = 0b1, BitnessMask = 0b1, IsPlatformDependent = 0b10, } } ``` Add xmldoc to mem layout attributes.
```c# using System; namespace AsmResolver.DotNet.Memory { /// <summary> /// Defines members for all possible attributes that can be assigned to a <see cref="TypeMemoryLayout"/> instance. /// </summary> [Flags] public enum MemoryLayoutAttributes { /// <summary> /// Indicates the ...
a17d9129-c2aa-4795-8f58-6d49ef5f99b7
{ "language": "C#" }
```c# using System; using NUnit.Framework; namespace Business.Core.Test { [TestFixture] public class TestDBFunctions { [Test] public void Book() { var profile = new Profile.Profile(); var database = new Fake.Database(profile); database.Connect(); var bookName = "Sales"; float bookAmount = 111.1...
```c# using System; using NUnit.Framework; namespace Business.Core.Test { [TestFixture] public class TestDBFunctions { [Test] public void Book() { var profile = new Profile.Profile(); var database = new Fake.Database(profile); database.Connect(); var bookName = "Sales"; float bookAmount = 111.1...
c5bb3cf2-0d7a-4ab4-8d70-fdf293322bb7
{ "language": "C#" }
```c# using System; namespace Hangman { public class Hangman { public static void Main(string[] args) { char key = Console.ReadKey(true).KeyChar; var game = new Game("HANG THE MAN"); bool wasCorrect = game.GuessLetter(key); Console.WriteLine(wasCorrect.ToString()); var output = ga...
```c# using System; namespace Hangman { public class Hangman { public static void Main(string[] args) { // char key = Console.ReadKey(true).KeyChar; // var game = new Game("HANG THE MAN"); // bool wasCorrect = game.GuessLetter(key); // Console.WriteLine(wasCorrect.ToString()); // ...
58e12234-f076-46ee-a36d-6872894a4a17
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace FileReplacer { public static class FileHelper { public static readonly Encoding UTF8N = new UTF8Encoding(); public static void ReplaceContent(FileInfo file, strin...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; namespace FileReplacer { public static class FileHelper { public static readonly Encoding UTF8N = new UTF8Encoding(); public static void ReplaceContent(FileInfo file, strin...
39d7fedc-dafe-403b-a1a2-6225e7fae80b
{ "language": "C#" }
```c# namespace NuPack { using System; using System.IO; using System.Net; using System.Net.Cache; // REVIEW: This class isn't super clean. Maybe this object should be passed around instead // of being static public static class HttpWebRequestor { [System.Diagnostics.CodeAn...
```c# namespace NuPack { using System; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Net; using System.Net.Cache; // REVIEW: This class isn't super clean. Maybe this object should be passed around instead // of being static public static class HttpWebReq...
9d8c3165-d8c7-4386-bf42-f618b5d99536
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using NUnit.Framework; namespace MaxMind.MaxMindDb.Test { [TestFixture] public class ThreadingTest { [Test] public void TestParallelFor() { var reade...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using NUnit.Framework; namespace MaxMind.MaxMindDb.Test { [TestFixture] public class ThreadingTest { [Test] public void TestParallelFor() { var reade...
98af6fbb-e4da-4289-830f-5abd31dae51f
{ "language": "C#" }
```c# namespace CountryFood.Web.Infrastructure.Mappings { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using AutoMapper; public class AutoMapperConfig { private Assembly assembly; public AutoMapperConfig(Assembly assembly) ...
```c# namespace CountryFood.Web.Infrastructure.Mappings { using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using AutoMapper; public class AutoMapperConfig { private Assembly assembly; public AutoMapperConfig(Assembly assembly) ...
440de5f4-159f-42db-9f59-68ddd2ec12f8
{ "language": "C#" }
```c# using System.IO; using System.Text; using System.Threading.Tasks; using Shouldly; using Xunit; namespace MediatR.Tests { public class NotificationHandlerTests { public class Ping : INotification { public string Message { get; set; } } public class PongChildHan...
```c# using System.IO; using System.Text; using System.Threading.Tasks; using Shouldly; using Xunit; namespace MediatR.Tests { public class NotificationHandlerTests { public class Ping : INotification { public string Message { get; set; } } public class PongChildHan...
8eaadbd3-c8ea-4745-8cc9-0f6435a69bc6
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using System.Text.RegularExpressions; using Common.Logging; namespace GesturesViewer { class ModelSelector : INotifyPropertyChanged { static re...
```c# using System; using System.IO; using System.ComponentModel; using System.Text.RegularExpressions; using System.Collections.ObjectModel; using Common.Logging; namespace GesturesViewer { class ModelSelector : INotifyPropertyChanged { static readonly ILog Log = LogManager.GetCurrentClassLogger(); static...
772e0d11-7439-402c-a6b8-892e50bf9e3c
{ "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; /// <summary> /// A class representing the solution to <c>https...
```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...
8ac47bf2-82be-46f4-a489-4aac3f0f630e
{ "language": "C#" }
```c# using PS.Mothership.Core.Common.Template.Gen; using Quartz; using System; using System.Collections.Generic; namespace PS.Mothership.Core.Common.Dto.SchedulerManagement { public class TriggerProfileDto { public string Name { get; set; } public TriggerState State { get; set; } publ...
```c# using PS.Mothership.Core.Common.Template.Gen; using Quartz; using System; using System.Collections.Generic; namespace PS.Mothership.Core.Common.Dto.SchedulerManagement { public class TriggerProfileDto { public string Name { get; set; } public TriggerState State { get; set; } publ...
beff8973-18e8-4e79-8ea8-eca266476c4a
{ "language": "C#" }
```c# <?xml version="1.0"?> <!-- RSS generated by Trac v<?cs var:trac.version ?> on <?cs var:trac.time ?> --> <rss version="2.0"> <channel><?cs if:project.name_encoded ?> <title><?cs var:project.name_encoded ?>: Revisions of <?cs var:log.path ?></title><?cs else ?> <title>Revisions of <?cs var:log.path ?><...
```c# <?xml version="1.0"?> <!-- RSS generated by Trac v<?cs var:trac.version ?> on <?cs var:trac.time ?> --> <rss version="2.0"> <channel><?cs if:project.name_encoded ?> <title><?cs var:project.name_encoded ?>: Revisions of <?cs var:log.path ?></title><?cs else ?> <title>Revisions of <?cs var:log.path ?><...
39fcac6d-9d35-4510-9ca2-2e2d1194a814
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Pingu.Chunks; namespace Pingu { public class PngFile : IEnumerable<Chunk> { List<Chunk> chunksToWrite = new List<Chunk>(); static readonly byte[] magic = new byte[] { 0x89, ...
```c# using System.Collections; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Pingu.Chunks; namespace Pingu { public class PngFile : IEnumerable<Chunk> { List<Chunk> chunksToWrite = new List<Chunk>(); static readonly byte[] magic = new byte[] { 0x89, ...