doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
b3b99a7b-10d0-4cea-a9c2-39e50a4300d0
{ "language": "C#" }
```c# using System.Collections.Generic; namespace RockLib.Encryption.Symmetric { /// <summary> /// Defines an xml-serializable object that contains the information needed to configure an /// instance of <see cref="SymmetricCrypto"/>. /// </summary> public class CryptoConfiguration { //...
```c# using System.Collections.Generic; namespace RockLib.Encryption.Symmetric { /// <summary> /// Defines an xml-serializable object that contains the information needed to configure an /// instance of <see cref="SymmetricCrypto"/>. /// </summary> public class CryptoConfiguration { //...
cf92004c-075f-4b42-ab5e-ca3cac500785
{ "language": "C#" }
```c# //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Cursor; using osu.Framework.Graphics.Drawables...
```c# //Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>. //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Cursor; using osu.Framework.Graphics.Drawables...
65760b0a-6234-41d5-8967-103eb6f7824d
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Linq; using osu.Game.Beatmaps; using osu.Game.Rulesets.Mania.Beatmaps; using osu.Game.Rulesets.Mods; namespace osu.Game.Rulesets.Mania....
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Linq; using osu.Game.Beatmaps; using osu.Game.Rulesets.Mania.Beatmaps; using osu.Game.Rulesets.Mods; namespace osu.Game.Rulesets.Mania....
f8f1f561-681e-4f33-b145-6aaa4660dc98
{ "language": "C#" }
```c# using System; using System.Web.Mvc; namespace NuGetGallery { public class HttpHeaderValueProviderFactory : ValueProviderFactory { public override IValueProvider GetValueProvider(ControllerContext controllerContext) { var request = controllerContext.RequestContext.HttpContext....
```c# using System; using System.Web.Mvc; namespace NuGetGallery { public class HttpHeaderValueProviderFactory : ValueProviderFactory { public override IValueProvider GetValueProvider(ControllerContext controllerContext) { var request = controllerContext.RequestContext.HttpContext....
75f14ef7-aff6-4601-bae5-f236fc037bab
{ "language": "C#" }
```c# namespace Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing { using System; #if !NET40 using System.Diagnostics.Tracing; #endif using System.Linq; #if NET40 using Microsoft.Diagnostics.Tracing; #endif internal class DiagnosticsEventListener : EventListener { priv...
```c# namespace Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing { using System; #if !NET40 using System.Diagnostics.Tracing; #endif using System.Linq; #if NET40 using Microsoft.Diagnostics.Tracing; #endif internal class DiagnosticsEventListener : EventListener { priv...
839a773a-cfb0-4e2a-bb40-529c56e9e805
{ "language": "C#" }
```c# // Copyright (C) 2017, The Duplicati Team // http://www.duplicati.com, info@duplicati.com // // This library is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 2.1 of the ...
```c# // Copyright (C) 2017, The Duplicati Team // http://www.duplicati.com, info@duplicati.com // // This library is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 2.1 of the ...
3ba6e397-f8b8-48d1-8360-4a228ea0b586
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace com.techphernalia.MyPersonalAccounts.Model.Inventory { public class StockItem { public int StockItemId { get; set; } public string StockItemName { get; set; } public int StockGroupId {...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace com.techphernalia.MyPersonalAccounts.Model.Inventory { public class StockItem { public int StockItemId { get; set; } public string StockItemName { get; set; } public int StockGroupId {...
7f37916a-b1d0-436e-9e69-bd651e37504c
{ "language": "C#" }
```c# using Foundatio.Repositories.Models; namespace Exceptionless.Web.Models; public class ViewToken : IIdentity, IHaveDates { public string Id { get; set; } public string OrganizationId { get; set; } public string ProjectId { get; set; } public string UserId { get; set; } public string DefaultP...
```c# using Foundatio.Repositories.Models; namespace Exceptionless.Web.Models; public class ViewToken : IIdentity, IHaveDates { public string Id { get; set; } public string OrganizationId { get; set; } public string ProjectId { get; set; } public string UserId { get; set; } public string DefaultP...
7217d45e-6482-432f-b49a-2da7c1712d59
{ "language": "C#" }
```c# using System; using Newtonsoft.Json; using Oocx.ACME.Jose; using Oocx.ACME.Protocol; using Xunit; namespace Oocx.ACME.Tests { public class RegistrationTests { [Fact] public void Can_serialize() { var request = new NewRegistrationRequest { C...
```c# using System; using Newtonsoft.Json; using Oocx.ACME.Jose; using Oocx.ACME.Protocol; using Xunit; namespace Oocx.ACME.Tests { public class RegistrationTests { [Fact] public void Can_serialize() { var request = new NewRegistrationRequest { C...
16c8d7b5-2b3b-467f-ad0a-9a9150b88b59
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Devices.I2c; namespace AM2320Demo { public struct AM2320Data { public double Temperature; public double Humidity; } public ...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.Devices.I2c; namespace AM2320Demo { public struct AM2320Data { public double Temperature; public double Humidity; } public ...
7a950252-1bd6-443a-bf8e-0f98938afced
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using GitVersion.Logging; using GitVersion.OutputVariables; namespace GitVersion { public abstract class BuildAgentBase : ICurrentBuildAgent { protected readonly ILog Log; protected IEnvironment Environment { get; } protected BuildA...
```c# using System; using System.Collections.Generic; using GitVersion.Logging; using GitVersion.OutputVariables; namespace GitVersion { public abstract class BuildAgentBase : ICurrentBuildAgent { protected readonly ILog Log; protected IEnvironment Environment { get; } protected BuildA...
34052104-c509-438d-96b3-28fa983607e7
{ "language": "C#" }
```c# using System; namespace FluentConsole.Library { /// <summary> /// Optionial configuration for FluentConsole /// </summary> public class FluentConsoleSettings { /// <summary> /// Gets or sets a value indicating how long lines of text should be displayed in the console window. ...
```c# using System; namespace FluentConsole.Library { /// <summary> /// Optionial configuration for FluentConsole /// </summary> public class FluentConsoleSettings { /// <summary> /// Gets or sets a value indicating how long lines of text should be displayed in the console window. ...
fd399a86-d855-4c61-aac6-f8f3dd4e11d0
{ "language": "C#" }
```c# using System; using System.Diagnostics; using System.Threading.Tasks; namespace ConsoleWritePrettyOneDay { public static class Spinner { private static char[] _chars = new[] { '|', '/', '-', '\\', '|', '/', '-', '\\' }; public static void Wait(Action action, string message = n...
```c# using System; using System.Diagnostics; using System.Threading.Tasks; namespace ConsoleWritePrettyOneDay { public static class Spinner { private static char[] _chars = new[] { '|', '/', '-', '\\', '|', '/', '-', '\\' }; /// <summary> /// Displays a spinner while the p...
019c893d-d1f0-4b42-95e3-4579315ec07f
{ "language": "C#" }
```c# //================================================================================================= // Copyright 2013-2016 Dirk Lemstra <https://magick.codeplex.com/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a ...
```c# //================================================================================================= // Copyright 2013-2016 Dirk Lemstra <https://magick.codeplex.com/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a ...
424e9ea4-9af5-4552-93f3-0f9c75eb4d9b
{ "language": "C#" }
```c# // // Copyright (c) 2017-2019 the rbfx project. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modif...
```c# // // Copyright (c) 2017-2019 the rbfx project. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modif...
35b86def-ec8d-4985-881f-67206410a2fd
{ "language": "C#" }
```c# using Avalonia.Controls; using Avalonia.Input; using Avalonia.Interactivity; using Avalonia.Xaml.Interactivity; namespace Avalonia.Xaml.Interactions.Custom; /// <summary> /// A behavior that allows to show control on double tapped event. /// </summary> public class ShowOnDoubleTappedBehavior : Behavior<Control...
```c# using Avalonia.Controls; using Avalonia.Input; using Avalonia.Interactivity; using Avalonia.Xaml.Interactivity; namespace Avalonia.Xaml.Interactions.Custom; /// <summary> /// A behavior that allows to show control on double tapped event. /// </summary> public class ShowOnDoubleTappedBehavior : Behavior<Control...
99d583f0-757d-4d92-a034-2d528f1bef0d
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprites; using osu.Framework.Gr...
```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.Sprites; using osu.Framework.Gr...
56a7f48c-19a6-4206-a9e2-7857a05d7656
{ "language": "C#" }
```c# using System; namespace XamarinLifeGameXAML.Logic { public class CellUtils { public static int GetIndex(Tuple<int, int> point) { return GetIndex(point.Item1, point.Item2); } public static int GetIndex(int x, int y) { return (y + x * CellSi...
```c# using System; namespace XamarinLifeGameXAML.Logic { public class CellUtils { public static int GetIndex(Tuple<int, int> point) { return GetIndex(point.Item1, point.Item2); } public static int GetIndex(int x, int y) { return (y + x * CellSi...
88b73b19-f730-4d98-b716-7a480caf1953
{ "language": "C#" }
```c# namespace Iterator.Performance.Tests.NotConst { using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Attributes.Columns; using RangeIt.Iterators; using System; using System.Collections; [MinColumn, MaxColumn] public class ArrayList_Iterator_Vs_Enumerator_Tests { privat...
```c# namespace Iterator.Performance.Tests.NotConst { using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Attributes.Columns; using RangeIt.Iterators; using System; using System.Collections; [MinColumn, MaxColumn] public class ArrayList_Iterator_Vs_Enumerator_Tests { privat...
120b4c03-82b1-42e2-86c2-a90046fda5f7
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Reactive.Disposables; using System.Text; namespace SolidworksAddinFramework { public static class DisposableExtensions { public static IDisposable ToCompositeDisposable(this IEnumerable<IDisposable> d) { return new ...
```c# using System; using System.Collections.Generic; using System.Reactive.Disposables; using System.Text; namespace SolidworksAddinFramework { public static class DisposableExtensions { public static IDisposable ToCompositeDisposable(this IEnumerable<IDisposable> d) { return new ...
408de966-5b86-49f8-84e2-a80688f9dcfe
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Ploeh.AutoFixture.Xunit { internal class CustomizeAttributeComparer : Comparer<CustomizeAttribute> { public override int Compare(CustomizeAttribute x, CustomizeAttribute y) { if (x is FrozenAttribute && !(y is FrozenAttribute)) ...
```c# using System.Collections.Generic; namespace Ploeh.AutoFixture.Xunit { internal class CustomizeAttributeComparer : Comparer<CustomizeAttribute> { public override int Compare(CustomizeAttribute x, CustomizeAttribute y) { var xfrozen = x is FrozenAttribute; var yfroz...
03524351-ccaf-44da-a9f2-50641efd79f2
{ "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: AssemblyTitle("TOTD.Mailer.Html")] [assembly: Asse...
```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: AssemblyTitle("TOTD.Mailer.Templates")] [assembly:...
d9b82d00-d436-4be1-a379-4748c11718d4
{ "language": "C#" }
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Consul.Test { [TestClass] public class CoordinateTest { [TestMethod] public void TestCoordinate_Datacenters() { var client = new Client(); var datacenters = client.Coordinate....
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Consul.Test { [TestClass] public class CoordinateTest { [TestMethod] public void TestCoordinate_Datacenters() { var client = new Client(); var info = client.Agent.Self(); ...
4a6e2066-257a-4729-9b1a-adbb0b536aa6
{ "language": "C#" }
```c# // XMLDataSaver.cs // <copyright file="XMLDataSaver.cs"> This code is protected under the MIT License. </copyright> using System.Collections.Generic; using System.IO; using System.Xml.Serialization; namespace Todo_List { /// <summary> /// A static class for reading and writing to XML files. /// </su...
```c# // XMLDataSaver.cs // <copyright file="XMLDataSaver.cs"> This code is protected under the MIT License. </copyright> using System.Collections.Generic; using System.IO; using System.Xml.Serialization; namespace Todo_List { /// <summary> /// A static class for reading and writing to XML files. /// </su...
86091f79-938f-467a-a746-70b54caf2a29
{ "language": "C#" }
```c# namespace TestAppUWP.Samples.Map { public class MapServiceSettings { public static string Token="Pippo"; } }``` Add bing map keys with fake default
```c# namespace TestAppUWP.Samples.Map { public class MapServiceSettings { public static string Token = string.Empty; } }```
44bd52a0-8518-4ad9-a604-46629091d7d9
{ "language": "C#" }
```c# using UnityEditor; namespace SuperSystems.UnityBuild { [System.Serializable] public class BuildLinux : BuildPlatform { #region Constants private const string _name = "Linux"; private const string _dataDirNameFormat = "{0}_Data"; private const BuildTargetGroup _targetGroup = BuildTargetGroup.St...
```c# using UnityEditor; namespace SuperSystems.UnityBuild { [System.Serializable] public class BuildLinux : BuildPlatform { #region Constants private const string _name = "Linux"; private const string _dataDirNameFormat = "{0}_Data"; private const BuildTargetGroup _targetGroup = BuildTargetGroup.St...
051b0d7b-04df-436a-98a6-550d91bee21d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Wycademy { class Program { static void Main(string[] args) { } } } ``` Set up client, settings, logging, and connection
```c# using Discord; using Discord.Commands; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Wycademy { class Program { //Call Start() so that the bot runs in a non static method static void Main(string[] args) => ne...
a13a39e7-cc10-4606-9dee-c8cb6e73b571
{ "language": "C#" }
```c# #region Usings using System.Collections.Generic; using System.Linq; using System.Reactive.Linq; using System.Threading; using System.Threading.Tasks; using ReactiveUI; #endregion namespace UI.WPF.Modules.Installation.ViewModels.Installation { public class InstallationItemParent : InstallationItem { ...
```c# #region Usings using System.Collections.Generic; using System.Linq; using System.Reactive.Linq; using System.Threading; using System.Threading.Tasks; using ReactiveUI; #endregion namespace UI.WPF.Modules.Installation.ViewModels.Installation { public class InstallationItemParent : InstallationItem { ...
2698240f-f37c-4b09-bb7f-a9fb8f828acf
{ "language": "C#" }
```c# using Microsoft.EntityFrameworkCore; using Pomelo.EntityFrameworkCore.MySql.FunctionalTests.TestUtilities; using Pomelo.EntityFrameworkCore.MySql.Tests; using Xunit; namespace Pomelo.EntityFrameworkCore.MySql.FunctionalTests { public class TwoDatabasesMySqlTest : TwoDatabasesTestBase, IClassFixture<MySqlFix...
```c# using Microsoft.EntityFrameworkCore; using Pomelo.EntityFrameworkCore.MySql.FunctionalTests.TestUtilities; using Pomelo.EntityFrameworkCore.MySql.Tests; using Xunit; namespace Pomelo.EntityFrameworkCore.MySql.FunctionalTests { public class TwoDatabasesMySqlTest : TwoDatabasesTestBase, IClassFixture<MySqlFix...
2f977460-d5cb-47c8-b284-6c371f6e9ee9
{ "language": "C#" }
```c# using System; using System.IO; using Arkivverket.Arkade.Core.Base; namespace Arkivverket.Arkade.Core.Util { public static class SystemInfo { public static long GetAvailableDiskSpaceInBytes() { return GetAvailableDiskSpaceInBytes(ArkadeProcessingArea.RootDirectory.FullName); ...
```c# using System; using System.IO; using System.Linq; using Arkivverket.Arkade.Core.Base; namespace Arkivverket.Arkade.Core.Util { public static class SystemInfo { public static long GetAvailableDiskSpaceInBytes() { return GetAvailableDiskSpaceInBytes(ArkadeProcessingArea.RootDire...
2198ccf1-50a3-4339-88d1-bcad31b70da3
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using anime_downloader.Models; using anime_downloader.Models.Configurations; using anime_downloader.Services.Interfaces; namespace anime_downloader.Tests.Services { public class MockXmlSettingsService: ISettingsService { public PathConfiguration Pa...
```c# using System; using System.Collections.Generic; using anime_downloader.Models; using anime_downloader.Models.Configurations; using anime_downloader.Services.Interfaces; namespace anime_downloader.Tests.Services { public class MockXmlSettingsService: ISettingsService { public PathConfiguration Pa...
ace3b785-e2bc-403d-ad4c-19e9ea449a9a
{ "language": "C#" }
```c# namespace SFA.DAS.EmployerUsers.Web.Models { public class RegisterViewModel :ViewModelBase { public string FirstName { get; set; } public string LastName { get; set; } public string Email { get; set; } public string Password { get; set; } public string ConfirmPassw...
```c# using System.Web.Mvc; namespace SFA.DAS.EmployerUsers.Web.Models { public class RegisterViewModel :ViewModelBase { public string FirstName { get; set; } public string LastName { get; set; } public string Email { get; set; } [AllowHtml] public string Password { ...
006b6dc4-b6ee-4173-a2d1-7387b75e9bef
{ "language": "C#" }
```c# using UnityEngine; using UnityEngine.UI; using System.Collections; public class LoadTest : MonoBehaviour { public void SignInButtonClicked() { GameJolt.UI.Manager.Instance.ShowSignIn((bool success) => { if (success) { Debug.Log("Logged In"); } else { Debug.Log("Dismissed"); } });...
```c# using UnityEngine; using UnityEngine.UI; using System.Collections; public class LoadTest : MonoBehaviour { public void SignInButtonClicked() { GameJolt.UI.Manager.Instance.ShowSignIn((bool success) => { if (success) { Debug.Log("Logged In"); } else { Debug.Log("Dismissed"); } });...
e61e1529-1e28-48cc-ae09-3da537fc9171
{ "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.Runtime.Serialization; using Microsoft.CodeAnalysis.Remote; namespace Microsoft.CodeAnalysis.Ex...
```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.Runtime.Serialization; using Microsoft.CodeAnalysis.Remote; namespace Microsoft.CodeAnalysis.Ex...
6b453161-801a-433a-8378-6ef9b69d20f0
{ "language": "C#" }
```c# using System.Threading.Tasks; using SFA.DAS.EmployerUsers.Application.Validation; namespace SFA.DAS.EmployerUsers.Application.Commands.RequestChangeEmail { public class RequestChangeEmailCommandValidator : IValidator<RequestChangeEmailCommand> { public Task<ValidationResult> ValidateAsync...
```c# using System.Threading.Tasks; using SFA.DAS.EmployerUsers.Application.Validation; namespace SFA.DAS.EmployerUsers.Application.Commands.RequestChangeEmail { public class RequestChangeEmailCommandValidator : BaseValidator, IValidator<RequestChangeEmailCommand> { public Task<ValidationResult...
33513c17-749e-494b-90b6-72e687d5508d
{ "language": "C#" }
```c# using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Quobject.SocketIoClientDotNet.Client; namespace KafkaHttp.Net { public interface IKafkaProducer { Task CreateTopic(string name); void Publish(params Message<string>[] payload); } public class K...
```c# using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Quobject.SocketIoClientDotNet.Client; namespace KafkaHttp.Net { public interface IKafkaProducer { Task CreateTopic(string name); void Publish(params Message<string>[] payload); } public class K...
1c48770d-56f9-4701-93cf-a0dc0e130c68
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using Newtonsoft.Json; using System; using System.Collections.Generic; namespace osu.Game.Online.API.Requests.Responses { public class APIChangelogBuild : IEq...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using Newtonsoft.Json; using System; using System.Collections.Generic; namespace osu.Game.Online.API.Requests.Responses { public class APIChangelogBuild : IEq...
1271deb4-f2fc-4941-b13c-faf3ac7e797b
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; #nullable enable namespace osu.Framework.Localisation { public static class LocalisableStringExtensions { /// <summary> /// ...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; #nullable enable namespace osu.Framework.Localisation { public static class LocalisableStringExtensions { /// <summary> /// ...
00653bf4-d74a-4783-adfb-8730a9d6bda7
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Infrastructure.Annotations; using System.Data.Entity.ModelConfiguration.Configuration; using System.Linq; namespace TOTD.EntityFramework { public static class ConfigurationExtensions ...
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Infrastructure.Annotations; using System.Data.Entity.ModelConfiguration.Configuration; using System.Linq; namespace TOTD.EntityFramework { public static class ConfigurationExtensions ...
d1e28d6a-b92c-40ce-baa7-3d16c9691feb
{ "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.Online.API.Requests.Responses; namespace osu.Game.Overlays.Changelog { public class ChangelogUpdateStreamControl : OverlayStreamControl<APIUpda...
```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.Online.API.Requests.Responses; namespace osu.Game.Overlays.Changelog { public class ChangelogUpdateStreamControl : OverlayStreamControl<APIUpda...
ec222aa3-1788-4c0e-ba8c-ab9158ac0245
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; public class Herp { public Herp(int X) { this.X = X; } public int X { get; private set; } } public static class HerpExtensions { public static void PrintX(this Herp Value) { Console.WriteLine(Value.X); ...
```c# using System; using System.Collections.Generic; using System.Linq; public class Herp { public Herp(int X) { this.X = X; } public int X { get; private set; } } public static class HerpExtensions { public static void PrintX(this Herp Value) { Console.WriteLine(Value.X); ...
14a342dc-d5d8-4106-8f84-2ebc2994177c
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Game.Online.Multiplayer; using osu.Game.Screens.OnlinePlay.Match.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.Framework.Allocation; using osu.Framework.Bindables; using osu.Game.Online.Multiplayer; using osu.Game.Screens.OnlinePlay.Match.Components; namespace osu...
90228552-1df1-459d-ab39-5250bdc0f5b4
{ "language": "C#" }
```c# using Newtonsoft.Json; namespace BitFlyer.Apis { public class SendChildOrderParameter { [JsonProperty("product_code")] public ProductCode ProductCode { get; set; } [JsonProperty("child_order_type")] public ChildOrderType ChildOrderType { get; set; } [JsonPropert...
```c# using Newtonsoft.Json; namespace BitFlyer.Apis { public class SendChildOrderParameter { [JsonProperty("product_code")] public ProductCode ProductCode { get; set; } [JsonProperty("child_order_type")] public ChildOrderType ChildOrderType { get; set; } [JsonPropert...
65f233b1-65e4-412f-8285-63db9f6d6f61
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace Sitecore.Linqpad.Server { public class CookieAwareWebClient : WebClient { public CookieAwareWebClient(CookieContainer cookies = null) { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace Sitecore.Linqpad.Server { public class CookieAwareWebClient : WebClient { public CookieAwareWebClient(CookieContainer cookies = null) { ...
82b762d4-b7f2-4078-a9ea-d529eee1c32c
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Humanizer.Localisation.NumberToWords { internal class FrenchNumberToWordsConverter : FrenchNumberToWordsConverterBase { protected override void CollectPartsUnderAHundred(ICollection<string> parts, ref int number, GrammaticalGender gender, bool pluralize...
```c# using System.Collections.Generic; namespace Humanizer.Localisation.NumberToWords { internal class FrenchNumberToWordsConverter : FrenchNumberToWordsConverterBase { protected override void CollectPartsUnderAHundred(ICollection<string> parts, ref int number, GrammaticalGender gender, bool pluraliz...
9f031065-2d9e-4d35-9ef5-fe303604e23d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace kynnaugh { class StringUtils { // By Hans Passant // http://stackoverflow.com/a/10773988 public static IntPtr Native...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace kynnaugh { class StringUtils { // By Hans Passant // http://stackoverflow.com/a/10773988 public static IntPtr Native...
233a8e15-513c-49a2-bd68-d2e1a93e65a5
{ "language": "C#" }
```c# using System.Collections.Generic; using Squirrel.Nodes; namespace Squirrel { public class Environment { private readonly Environment _parent; private readonly Dictionary<string, INode> _definitions = new Dictionary<string, INode>(); public Environment(Environment parent) ...
```c# using System.Collections.Generic; using Squirrel.Nodes; namespace Squirrel { public class Environment { private readonly Environment _parent; private readonly Dictionary<string, INode> _definitions = new Dictionary<string, INode>(); public Environment(Environment parent) ...
d7d0ffe4-f612-44ca-bf82-d0b36175fe80
{ "language": "C#" }
```c# using System.IO; using Newtonsoft.Json; namespace TfsHipChat.Configuration { public class ConfigurationProvider : IConfigurationProvider { private TfsHipChatConfig _tfsHipChatConfig; public TfsHipChatConfig Config { get { if (...
```c# using System.IO; using Newtonsoft.Json; using TfsHipChat.Properties; namespace TfsHipChat.Configuration { public class ConfigurationProvider : IConfigurationProvider { public ConfigurationProvider() { using (var reader = new JsonTextReader(new StreamReader(Settings....
e4d4bc64-5fdf-44ff-9dbb-a0e11e642471
{ "language": "C#" }
```c# using System; using System.IO; using System.Text; using Microsoft.TemplateEngine.Core.Contracts; using Xunit; namespace Microsoft.TemplateEngine.Core.UnitTests { public abstract class TestBase { protected static void RunAndVerify(string originalValue, string expectedValue, IProcessor processor, ...
```c# using System; using System.IO; using System.Text; using Microsoft.TemplateEngine.Core.Contracts; using Microsoft.TemplateEngine.Utils; using Xunit; namespace Microsoft.TemplateEngine.Core.UnitTests { public abstract class TestBase { protected TestBase() { EngineEnvironmentSet...
06fc3c0a-1129-46f2-9c36-65c693e968c3
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AutoMapper; using GeoToast.Data; using GeoToast.Data.Models; using GeoToast.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace GeoToast.Controllers { //[Authorize] [Route("api...
```c# using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AutoMapper; using GeoToast.Data; using GeoToast.Data.Models; using GeoToast.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace GeoToast.Controller...
4fb98f19-6d01-4006-97be-114e781c8b00
{ "language": "C#" }
```c# using System.Web.UI; using Sitecore.Web.UI; using Blade.Razor; using Blade.Utility; using Sitecore.Diagnostics; namespace Blade.Views { /// <summary> /// Allows statically binding a Razor template as if it were a WebControl /// </summary> public class RazorTemplate : WebControl { /// <summary> /// Virt...
```c# using System.Web.UI; using Sitecore.Web.UI; using Blade.Razor; using Blade.Utility; using Sitecore.Diagnostics; namespace Blade.Views { /// <summary> /// Allows statically binding a Razor template as if it were a WebControl /// </summary> public class RazorTemplate : WebControl { /// <summary> /// Virt...
4a937f64-d963-4c21-b065-6cdb444743ea
{ "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.CommandLine; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namesp...
```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.CommandLine; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namesp...
f7592bfd-aead-4f7d-8c53-61ba25cf2364
{ "language": "C#" }
```c# using System; using Xunit; using Zuehlke.Eacm.Web.Backend.CQRS; namespace Zuehlke.Eacm.Web.Backend.Tests.DomainModel { public class EventAggregatorExtensionsFixture { [Fact] public void PublishEvent_() { // arrange // act // as...
```c# using System; using Xunit; using Zuehlke.Eacm.Web.Backend.CQRS; using Zuehlke.Eacm.Web.Backend.Utils.PubSubEvents; namespace Zuehlke.Eacm.Web.Backend.Tests.DomainModel { public class EventAggregatorExtensionsFixture { [Fact] public void PublishEvent_EventAggregatorIsNull_ThrowsE...
bcef9b77-36b0-4b87-a853-1babea7ae35a
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Net.Mail; using Composite.C1Console.Workflow; namespace CompositeC1Contrib.Email.C1Console.Workflows { [AllowPersistingWorkflow(WorkflowPersistingType.Idle)] public sealed class EditConfigurableSystemNetMailClientQueueWorkflow : EditM...
```c# using System; using System.Collections.Generic; using System.Net.Mail; namespace CompositeC1Contrib.Email.C1Console.Workflows { public sealed class EditConfigurableSystemNetMailClientQueueWorkflow : EditMailQueueWorkflow { public EditConfigurableSystemNetMailClientQueueWorkflow() : base("...
4c7a5717-78fb-47b6-b6d5-404c9865892a
{ "language": "C#" }
```c#  namespace Glimpse.Agent.AspNet.Mvc.Messages { public class ActionInvokedMessage { public string ActionId { get; set; } public Timing Timing { get; set; } } }``` Update class that was missed in the last commit
```c#  namespace Glimpse.Agent.AspNet.Mvc.Messages { public class AfterActionMessage { public string ActionId { get; set; } public Timing Timing { get; set; } } }```
a3c2a5b8-ed42-4df5-b1f7-ec777bd70528
{ "language": "C#" }
```c# namespace Mappy.Data { using Mappy.Util; using TAUtil.Tdf; public class FeatureRecord { public string Name { get; set; } public string World { get; set; } public string Category { get; set; } public int FootprintX { get; set; } public ...
```c# namespace Mappy.Data { using Mappy.Util; using TAUtil.Tdf; public class FeatureRecord { public string Name { get; set; } public string World { get; set; } public string Category { get; set; } public int FootprintX { get; set; } public ...
4ad7f56d-f3df-4415-b7dd-07a7ce4f5a7a
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="ErrorController.cs" company="https://martincostello.com/"> // Martin Costello (c) 2016 // </copyright> // <summary> // ErrorController.cs // </summary> // --------------...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="ErrorController.cs" company="https://martincostello.com/"> // Martin Costello (c) 2016 // </copyright> // <summary> // ErrorController.cs // </summary> // --------------...
3238cf64-b123-405f-8869-a6c1316437b5
{ "language": "C#" }
```c# using System; namespace AppHarbor.Commands { public class LoginCommand : ICommand { private readonly AppHarborApi _appHarborApi; private readonly EnvironmentVariableConfiguration _environmentVariableConfiguration; public LoginCommand(AppHarborApi appHarborApi, EnvironmentVariableConfiguration environme...
```c# using System; namespace AppHarbor.Commands { public class LoginCommand : ICommand { private readonly AppHarborApi _appHarborApi; private readonly EnvironmentVariableConfiguration _environmentVariableConfiguration; public LoginCommand(AppHarborApi appHarborApi, EnvironmentVariableConfiguration environme...
3fc812cc-8bef-45d4-802f-dbdbaa80aa0b
{ "language": "C#" }
```c# // Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Nerdbank.Streams.Benchmark { using BenchmarkDotNet.Configs; using BenchmarkDotNet.Diagnosers; using BenchmarkDotNet.Jobs; internal...
```c# // Copyright (c) Andrew Arnott. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Nerdbank.Streams.Benchmark { using BenchmarkDotNet.Configs; using BenchmarkDotNet.Diagnosers; using BenchmarkDotNet.Jobs; internal...
446f736d-875f-4a2c-bc37-136953f94b01
{ "language": "C#" }
```c# namespace SignalR.Abstractions { public static class HostContextExtensions { public static T GetValue<T>(this HostContext context, string key) { object value; if (context.Items.TryGetValue(key, out value)) { return (T)value; ...
```c# namespace SignalR.Abstractions { public static class HostContextExtensions { public static T GetValue<T>(this HostContext context, string key) { object value; if (context.Items.TryGetValue(key, out value)) { return (T)value; ...
cc8c11d6-3433-45a1-9c97-bf0d7cc01c10
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class JoshKing : IAmACommunityMember, IFilterMyBlogPosts { public string FirstName => "Josh"; ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class JoshKing : IAmACommunityMember { public string FirstName => "Josh"; public string La...
5754ac67-6de0-4084-9aa0-74f6e0053998
{ "language": "C#" }
```c# namespace Mitternacht.Common { public class TimeConstants { public const int WaitForForum = 500; public const int TeamUpdate = 3 * 60 * 1000; public const int Birthday = 60 * 1000; public const int ForumNotification = 1 * 60 * 1000; } } ``` Check for forum notifications more often.
```c# namespace Mitternacht.Common { public class TimeConstants { public const int WaitForForum = 500; public const int TeamUpdate = 3 * 60 * 1000; public const int Birthday = 60 * 1000; public const int ForumNotification = 30 * 1000; } } ```
79578725-01ad-40ca-bb55-8da18ea89125
{ "language": "C#" }
```c# using System; using System.IO; using Cxxi; using Cxxi.Types; namespace Generator.Tests { public class HeaderTestFixture { protected Library library; protected TypeMapDatabase database; private const string TestsDirectory = @"..\..\..\tests\Native"; protected void ParseL...
```c# using System; using System.IO; using Cxxi; using Cxxi.Types; namespace Generator.Tests { public class HeaderTestFixture { protected Library library; protected TypeMapDatabase database; private const string TestsDirectory = @"..\..\..\tests\Native"; protected void ParseL...
c86ce6dd-fbb8-4359-ae31-0266faf1cd45
{ "language": "C#" }
```c# using System; using NUnit.Framework; namespace FindRandomNumber.Common { [TestFixture] public class RangeTests { [TestFixture] public class Construction : RangeTests { [Test] public void GivenMaximumLessThanMinimum_Throws() { Assert.Throws<ArgumentOutOfRangeException>(() => new R...
```c# using System; using NUnit.Framework; namespace FindRandomNumber.Common { [TestFixture] public class RangeTests { [TestFixture] public class Construction : RangeTests { [Test] public void GivenMaximumLessThanMinimum_Throws() { Assert.Throws<ArgumentOutOfRangeException>(() => new R...
8d22d031-c09f-4b89-856e-147df8090980
{ "language": "C#" }
```c# using System; using System.Linq; using System.Threading.Tasks; using System.Web.Mvc; namespace NuGetGallery { public partial class PagesController : Controller { public IContentService ContentService { get; protected set; } protected PagesController() { } public PagesController(...
```c# using System; using System.Linq; using System.Threading.Tasks; using System.Web.Mvc; namespace NuGetGallery { public partial class PagesController : Controller { public IContentService ContentService { get; protected set; } protected PagesController() { } public PagesController(...
25a2156d-5e2c-4a64-97a9-66a9927c09d0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cheers { class Program { static void Main(string[] args) { Console.WriteLine("Hello there! What's your name?"); string name = Console.Read...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cheers { class Program { static void Main(string[] args) { Console.WriteLine("Hello there! What's your name?"); string name = Console.Read...
cd340a83-c784-477a-9fd3-607a8b0d3c60
{ "language": "C#" }
```c# @model CompetitionPlatform.Models.ProjectViewModels.ProjectCommentPartialViewModel <form asp-controller="ProjectDetails" asp-action="AddComment" enctype="multipart/form-data"> <div class="form-group"> @Html.Hidden("projectId", Model.ProjectId) <input asp-for="@Model.ProjectId" type="hidden" /...
```c# @using System.Threading.Tasks @using CompetitionPlatform.Helpers @model CompetitionPlatform.Models.ProjectViewModels.ProjectCommentPartialViewModel <form asp-controller="ProjectDetails" asp-action="AddComment" enctype="multipart/form-data"> @if (ClaimsHelper.GetUser(User.Identity).Email != null) { ...
95a392ae-4c6d-4da6-b748-d1acf9ba9b93
{ "language": "C#" }
```c# using Microsoft.VisualStudio.TestTools.UnitTesting; namespace VersionOne.Bugzilla.BugzillaAPI.Testss { [TestClass()] public class given_a_Bug { private IBug _bug; private string _expectedReassignToPayload; [TestInitialize()] public void SetContext() { ...
```c# using Microsoft.VisualStudio.TestTools.UnitTesting; namespace VersionOne.Bugzilla.BugzillaAPI.Testss { [TestClass()] public class Given_A_Bug { private IBug _bug; private string _expectedReassignToPayload; [TestInitialize()] public void SetContext() { ...
a3f1e41e-3e06-4e57-85f1-e7d6053a34ff
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Bindables; using osu.Framework.Graphics.Textures; using osu.Game.Rulesets.Catch.Objects.Drawables; namespace osu.Game.Rulesets.Catch.Skinning.L...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Bindables; using osu.Game.Rulesets.Catch.Objects.Drawables; namespace osu.Game.Rulesets.Catch.Skinning.Legacy { internal class LegacyFruitP...
3a5f5f40-dde3-4de7-baae-0c944f6da91a
{ "language": "C#" }
```c# namespace Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.Implementation { using System.Runtime.Serialization; [DataContract] internal class BackendResponse { [DataMember(Name = "itemsReceived")] public int ItemsReceived { get; set; } [DataMember(Name = "ite...
```c# namespace Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.Implementation { using System.Runtime.Serialization; [DataContract] internal class BackendResponse { [DataMember(Name = "itemsReceived")] public int ItemsReceived { get; set; } [DataMember(Name = "ite...
7bc18bcc-90b4-4b6e-b98b-7624bb870817
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using NUnit.Framework; using osu.Framework.Testing; using osu.Game.Rulesets.Osu; using osu.Game.Screens.OnlinePlay.Multiplayer; namespace osu.Ga...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Linq; using NUnit.Framework; using osu.Framework.Screens; using osu.Framework.Testing; using osu.Game.Online.Multiplayer; using osu.Game.Rulesets.Osu; ...
3d229615-581a-4e64-8e71-dca9fe259599
{ "language": "C#" }
```c# using System; using Amazon.DynamoDBv2; namespace Quartz.DynamoDB.Tests { public class DynamoClientFactory { private static JobStore _store; private static string InstanceName; public static DynamoDB.JobStore CreateTestJobStore() { _store = new JobStore(); ...
```c# using System; using Amazon.DynamoDBv2; namespace Quartz.DynamoDB.Tests { public class DynamoClientFactory { private static JobStore _store; private static string InstanceName = Guid.NewGuid().ToString(); public static DynamoDB.JobStore CreateTestJobStore() { ...
e0e08d28-3a9c-43f5-b9ce-3f9652b9354b
{ "language": "C#" }
```c# namespace Nest { /// <summary> /// Marker interface for alias operation /// </summary> public interface IAliasAction { } } ``` Fix bulk alias unit tests
```c# using Utf8Json; using Utf8Json.Internal; namespace Nest { /// <summary> /// Marker interface for alias operation /// </summary> [JsonFormatter(typeof(AliasActionFormatter))] public interface IAliasAction { } public class AliasActionFormatter : IJsonFormatter<IAliasAction> { private static readonly Aut...
93c56d21-bec6-4954-b4b3-4f3ca64829d8
{ "language": "C#" }
```c# using Fixie.Execution; using Fixie.Internal; namespace Fixie.Tests.Execution { public class RunnerAppDomainCommunicationTests { public void ShouldAllowRunnersInOtherAppDomainsToProvideTheirOwnListeners() { typeof(Listener).ShouldBeSafeAppDomainCommunicationInterface(); ...
```c# using Fixie.Execution; using Fixie.Internal; namespace Fixie.Tests.Execution { public class RunnerAppDomainCommunicationTests { public void ShouldAllowRunnersInOtherAppDomainsToProvideTheirOwnListeners() { typeof(Listener).ShouldBeSafeAppDomainCommunicationInterface(); ...
d9d0b24f-6a7a-48a5-aff0-2059086575aa
{ "language": "C#" }
```c# namespace GeekLearning.Test.Integration.Helpers { using System; using System.Net.Http; using System.Text.RegularExpressions; using System.Threading.Tasks; // http://www.stefanhendriks.com/2016/05/11/integration-testing-your-asp-net-core-app-dealing-with-anti-request-forgery-csrf-formdata-and...
```c# namespace GeekLearning.Test.Integration.Helpers { using System; using System.Net.Http; using System.Text.RegularExpressions; using System.Threading.Tasks; // http://www.stefanhendriks.com/2016/05/11/integration-testing-your-asp-net-core-app-dealing-with-anti-request-forgery-csrf-formdata-and...
8e35b719-d9aa-461d-9fcf-0a1c5181ddc9
{ "language": "C#" }
```c# using Avalonia.Controls; using Avalonia.Input; using Avalonia.Interactivity; using Avalonia.Xaml.Interactivity; namespace Avalonia.Xaml.Interactions.Custom; /// <summary> /// A behavior that allows to hide control on lost focus event. /// </summary> public class HideOnLostFocusBehavior : Behavior<Control> { ...
```c# using Avalonia.Controls; using Avalonia.Input; using Avalonia.Interactivity; using Avalonia.Xaml.Interactivity; namespace Avalonia.Xaml.Interactions.Custom; /// <summary> /// A behavior that allows to hide control on lost focus event. /// </summary> public class HideOnLostFocusBehavior : Behavior<Control> { ...
be3e0c6d-514b-4edc-8ea1-bc33394025d1
{ "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...
261e0ebf-073e-4a30-a91f-dbda66543c73
{ "language": "C#" }
```c# using CloudConfVarnaEdition4._0.Entities; using CloudConfVarnaEdition4._0.Repositories; using System.Collections.Generic; using System.Web.Http; using System.Web.Http.Cors; namespace CloudConfVarnaEdition4._0_RestAPI.Controllers { [EnableCors(origins: "http://cloudconfvarnamicroservices.azurewebsites.net", ...
```c# using CloudConfVarnaEdition4._0.Entities; using CloudConfVarnaEdition4._0.Repositories; using System.Collections.Generic; using System.Web.Http; using System.Web.Http.Cors; namespace CloudConfVarnaEdition4._0_RestAPI.Controllers { // Allow CORS for all origins. (Caution!) [EnableCors(origins: "*", heade...
df9caaa7-9c6e-47d9-9971-b0bf1e39fe15
{ "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.Shared.TestHooks; using Microsoft.VisualStudio.IntegrationTest.Utilities.Input; namespace Microsoft.VisualStudio.Integrat...
```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.Editor.Implementation.InlineRename.HighlightTags; using Microsoft.CodeAnalysis.Shared.TestHooks; using Microsoft.VisualStu...
13353b05-1fc8-4a75-9e86-de8533c15cc7
{ "language": "C#" }
```c# using System; using System.Runtime.InteropServices; namespace Eavesdrop { internal static class NativeMethods { [DllImport("wininet.dll")] public static extern bool InternetSetOption(IntPtr hInternet, int dwOption, IntPtr lpBuffer, int dwBufferLength); } }``` Make sure there is an e...
```c# using System; using System.Runtime.InteropServices; namespace Eavesdrop { internal static class NativeMethods { [DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool InternetSetOption(IntPtr hInte...
782d7b27-bb6e-4ad1-9678-0160a780653e
{ "language": "C#" }
```c# using System.Collections.Generic; using BoDi; using Coypu; using Coypu.Drivers; using TechTalk.SpecFlow; namespace WebSpecs.Support { [Binding] public class Hooks { private readonly IObjectContainer objectContainer; private BrowserSession browser; private readonly...
```c# using System.Collections.Generic; using BoDi; using Coypu; using Coypu.Drivers; using TechTalk.SpecFlow; namespace WebSpecs.Support { [Binding] public class Hooks { private readonly IObjectContainer objectContainer; private BrowserSession browser; private readonly...
874341f9-ea75-4da5-9b39-70210d6c7274
{ "language": "C#" }
```c# using System.Reflection; [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.1.1.1")] [assembly: AssemblyInformationalVersion("1.0.0")] ``` Set sink version to match Serilog version.
```c# using System.Reflection; [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.4.204.0")] [assembly: AssemblyInformationalVersion("1.0.0")] ```
07519dbb-856b-4ebc-8aba-b438213cc7c5
{ "language": "C#" }
```c# /* Copyright © 2018 Jeremy Herbison This file is part of AudioWorks. AudioWorks is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versio...
```c# /* Copyright © 2018 Jeremy Herbison This file is part of AudioWorks. AudioWorks is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versio...
40d87542-4d06-46df-8a69-367c0708ab1b
{ "language": "C#" }
```c# using System; using Amazon.CloudWatchLogs; using Amazon.Lambda.Core; namespace LogParser { //--- Classes --- public class CloudWatchLogsEvent { //--- Properties --- public Awslogs awslogs { get; set; } } public class Awslogs { //--- Properties --- ...
```c# using System; using System.IO; using System.IO.Compression; using System.Linq; using System.Text.RegularExpressions; using Amazon.CloudWatchLogs; using Amazon.Lambda.Core; using LogParser.Model; using Newtonsoft.Json; namespace LogParser { public class Function { //--- Fields --- privat...
36008bf3-85ad-49ce-b497-56fa2716a444
{ "language": "C#" }
```c# using NUnit.Framework; using ServiceStack.Common.Tests.Models; namespace ServiceStack.Redis.Tests.Support { public class CustomTypeFactory : ModelFactoryBase<CustomType> { public CustomTypeFactory() { ModelConfig<CustomType>.Id(x => x.CustomId); } public override void AssertIsEqual(CustomType actua...
```c# using NUnit.Framework; using ServiceStack.Common.Tests.Models; namespace ServiceStack.Redis.Tests.Support { public class CustomTypeFactory : ModelFactoryBase<CustomType> { public CustomTypeFactory() { ModelConfig<CustomType>.Id(x => x.CustomId); } public override void AssertIsEqual(CustomType actua...
c638d45b-f829-4e95-9a4c-f03429a73c01
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Pooling; using osu.Game.Rulesets.Judgements; using osu...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Pooling; using osu.Game.Rulesets.Judgements; using osu...
e133b4cc-a46f-4cba-8ec7-082a7e7c8394
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.IO.Stores; using osu.Game.Rulesets; using osu.Game.Skinning; namespace osu.Game.Tests.Vi...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using NUnit.Framework; using osu.Framework.Allocation; using osu.Framework.IO.Stores; using osu.Game.Rulesets; using osu.Game.Skinning; namespace osu.Game.Tests.Vi...
f5e509ab-4b33-47b8-91f5-ebe83d7f9a8f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using LibGit2Sharp; using static GitNStats.Core.Tooling; namespace GitNStats.Core { /// <summary> /// Walks the commit graph back to the beginning of time. /// Guaranteed to only visit a commit once. /// </summary> ...
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using LibGit2Sharp; using static GitNStats.Core.Tooling; namespace GitNStats.Core { /// <summary> /// Walks the commit graph back to the beginning of time. /// Guaranteed to only visit a commit once. /// </summary> ...
2b2dc38a-fd2a-4fe6-8e0b-def9d1dab017
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Rollbar { public abstract class HasArbitraryKeys { protected HasArbitraryKeys(Dictionary<string, object> additionalKeys) { AdditionalKeys = additionalKeys ?? new Dictionary<string, object>(); } public abstract void Normalize(); ...
```c# using System.Collections; using System.Collections.Generic; namespace Rollbar { public abstract class HasArbitraryKeys : IEnumerable<KeyValuePair<string, object>> { protected HasArbitraryKeys(Dictionary<string, object> additionalKeys) { AdditionalKeys = additionalKeys ?? new Dictionary<st...
5f9a5273-b91c-4677-9ebe-cefe7174a94f
{ "language": "C#" }
```c# <div class="span7"> <div id="button" class="tile quadro triple-vertical bg-lightPink bg-active-lightBlue" style="padding:10px; text-align: center;"> Your number is... <br /><br /> <span class="COUNT">@(Model)!!!</span><br /><br /> Click this pink square to record a three second vi...
```c# <div class="span7"> <div id="button" class="tile quadro triple-vertical bg-lightPink bg-active-lightBlue" style="padding:10px; text-align: center;"> Your number is... <br /><br /> <span class="COUNT">@(Model)!!!</span><br /><br /> Click this pink square to record a three second vi...
6cf23cd6-a6f4-418d-bf0a-1da84409c166
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Text; namespace PixelPet { /// <summary> /// PixelPet workbench instance. /// </summary> public class Workbench { public IList<Color> Palette { get; } publ...
```c# using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; using System.Text; namespace PixelPet { /// <summary> /// PixelPet workbench instance. /// </summary> public class Workbench { public IList<Color> Palette { get; } publ...
7d7f4d8f-2ce3-427a-9d9a-5f1a40a43428
{ "language": "C#" }
```c# using System; using Exceptionless.Core; using Exceptionless.Core.Queues; using StackExchange.Redis; namespace Exceptionless.Api.Tests.Queue { public class RedisQueueTests : InMemoryQueueTests { private ConnectionMultiplexer _muxer; protected override IQueue<SimpleWorkItem> GetQueue(int retr...
```c# //using System; //using Exceptionless.Core; //using Exceptionless.Core.Queues; //using StackExchange.Redis; //namespace Exceptionless.Api.Tests.Queue { // public class RedisQueueTests : InMemoryQueueTests { // private ConnectionMultiplexer _muxer; // protected override IQueue<SimpleWorkItem> G...
552c885c-3020-472f-8c1d-d7e4bd4ba9a8
{ "language": "C#" }
```c# using Arkivverket.Arkade.Core; using Arkivverket.Arkade.Identify; using Autofac; namespace Arkivverket.Arkade.Util { public class ArkadeAutofacModule : Module { protected override void Load(ContainerBuilder builder) { builder.RegisterType<ArchiveExtractor>().As<IArchiveExtract...
```c# using Arkivverket.Arkade.Core; using Arkivverket.Arkade.Identify; using Autofac; namespace Arkivverket.Arkade.Util { public class ArkadeAutofacModule : Module { protected override void Load(ContainerBuilder builder) { builder.RegisterType<ArchiveExtractor>().As<IArchiveExtract...
93fa0af5-ee52-4d21-abc7-782298a1d929
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CasualMeter.Common.Helpers; using Tera.DamageMeter; namespace CasualMeter.Common.Formatters { public class DamageTrackerFormatter : Formatter { public DamageTrackerFormatter(...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CasualMeter.Common.Helpers; using Tera.DamageMeter; namespace CasualMeter.Common.Formatters { public class DamageTrackerFormatter : Formatter { public DamageTrackerFormatter(...
c8cd999b-440c-435d-b58d-5751df2b8a77
{ "language": "C#" }
```c# using System; using System.Threading.Tasks; namespace Kazyx.RemoteApi.System { public class SystemApiClient : ApiClient { /// <summary> /// /// </summary> /// <param name="endpoint">Endpoint URL of system service.</param> public SystemApiClient(Uri endpoint) ...
```c# using System; using System.Threading.Tasks; namespace Kazyx.RemoteApi.System { public class SystemApiClient : ApiClient { /// <summary> /// /// </summary> /// <param name="endpoint">Endpoint URL of system service.</param> public SystemApiClient(Uri endpoint) ...
e7d87ac5-94db-4444-bdfa-6e4a25ca94d9
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Web.Http; using AutoMapper; using Umbraco.Core.Models; using Umbraco.Web.Models.ContentEditing; using Umbraco.Web.Models.Mapping; using Umbraco.Web.Mvc; using Umbraco.Web.Editors; namespace Archetype.Umbraco.Api { ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Web.Http; using AutoMapper; using Umbraco.Core.Models; using Umbraco.Web.Models.ContentEditing; using Umbraco.Web.Models.Mapping; using Umbraco.Web.Mvc; using Umbraco.Web.Editors; namespace Archetype.Umbraco.Api { ...
69103fd1-cbd4-429f-8daa-a0b44126151f
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using Foundation; using UIKit; using Xunit.Runner; using Xunit.Runners.UI; using Xunit.Sdk; namespace Couchbase.Lite.Tests.iOS { // The UIApplicationDelegate for the application. This class is resp...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using Foundation; using UIKit; using Xunit.Runner; using Xunit.Runners.UI; using Xunit.Sdk; namespace Couchbase.Lite.Tests.iOS { // The UIApplicationDelegate for the application. This class is resp...
2e427c4a-db53-4c01-9593-1ff58124ee40
{ "language": "C#" }
```c# using FilterLists.Api.DependencyInjection.Extensions; using FilterLists.Data.DependencyInjection.Extensions; using FilterLists.Services.DependencyInjection.Extensions; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Depe...
```c# using FilterLists.Api.DependencyInjection.Extensions; using FilterLists.Data.DependencyInjection.Extensions; using FilterLists.Services.DependencyInjection.Extensions; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Depe...
3a9bd3d5-6b90-440e-9eab-4e423928eb44
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Collections.Generic; using System.Linq; using osu.Framework.Input; using osu.Game.Rulesets.Mania.UI; using osu.Game.Rulesets.Replays; names...
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Collections.Generic; using System.Linq; using osu.Framework.Input; using osu.Game.Rulesets.Mania.UI; using osu.Game.Rulesets.Replays; names...
05985fcc-bcc9-4479-87c3-e7383c9a77c4
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Data.Services.Client; using System.Linq; using System.Threading.Tasks; namespace PackageExplorerViewModel { internal abstract class QueryContextBase<T> { private int? _totalItemCount; public int TotalItemCount { ...
```c# using System; using System.Collections.Generic; using System.Data.Services.Client; using System.Linq; using System.Threading.Tasks; namespace PackageExplorerViewModel { internal abstract class QueryContextBase<T> { private int? _totalItemCount; public int TotalItemCount { ...