doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
a16afcd2-2101-4ac6-8cd3-4501270ea245
{ "language": "C#" }
```c# using System.IO; using BenchmarkDotNet.Attributes; using FreeImageAPI; using ImageMagick; using DS = DevILSharp; namespace Pfim.Benchmarks { public class TargaBenchmark { [Params("true-32-rle-large.tga", "true-24-large.tga", "true-24.tga", "true-32-rle.tga")] public string Payload { get;...
```c# using System.IO; using BenchmarkDotNet.Attributes; using FreeImageAPI; using ImageMagick; using DS = DevILSharp; namespace Pfim.Benchmarks { public class TargaBenchmark { [Params("true-32-rle-large.tga", "true-24-large.tga", "true-24.tga", "true-32-rle.tga", "rgb24_top_left")] public str...
8ab895c9-fbf4-42da-8749-496fd708ea1b
{ "language": "C#" }
```c#  using MetroOverhaul.Detours; using MetroOverhaul.OptionsFramework.Attibutes; namespace MetroOverhaul { [Options("MetroOverhaul")] public class Options { private const string UNSUBPREP = "Unsubscribe Prep"; private const string STYLES = "Additional styles"; private const stri...
```c#  using MetroOverhaul.Detours; using MetroOverhaul.OptionsFramework.Attibutes; namespace MetroOverhaul { [Options("MetroOverhaul")] public class Options { private const string UNSUBPREP = "Unsubscribe Prep"; private const string GENERAL = "General settings"; public Options() ...
b86886d7-4d34-44f6-aab9-85e400a031c4
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PS.Mothership.Core.Common.Dto.Merchant { public class AddProspectDto { public string CompanyName { get; set; } public string LocatorId { get ...
```c# using System; namespace PS.Mothership.Core.Common.Dto.Merchant { public class AddProspectDto { public string CompanyName { get; set; } public string LocatorId { get; set; } public long MainPhoneCountryKey { get; set; } public string MainPhoneNumber { get; set; } ...
1840309c-8b9d-46e6-8f7b-c83abcadf6e0
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using NDesk.Options; namespace make { public class CommandLine { public string Program { get; set; } public string OutputFile { get; set; } public string InputFile { get; set; } public string[] A...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using NDesk.Options; namespace make { public class CommandLine { public string Program { get; set; } public string OutputFile { get; set; } public string InputFile { get; set; } ...
1280c5ce-cffb-401d-a2d3-cfe78a84665a
{ "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 OpenTK.Graphics; using osu.Framework.Screens; using osu.Game.Beatmaps; using osu.Game.Screens.Backgrounds; namespace osu.Game.Screens.Edit { ...
```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 OpenTK.Graphics; using osu.Framework.Screens; using osu.Game.Beatmaps; using osu.Game.Screens.Backgrounds; namespace osu.Game.Screens.Edit { ...
d5ab6a06-5bf6-40b9-b64e-85e9a2b98ebe
{ "language": "C#" }
```c# using System.Collections.Generic; using TirkxDownloader.Models; namespace TirkxDownloader.Framework.Interface { public delegate void DownloadCompleteHandler(GeneralDownloadItem downloadInfo); /// <summary> /// Implementation that implement this interface should implement PropertyChanged Event for d...
```c# using System.Collections.Generic; using TirkxDownloader.Models; namespace TirkxDownloader.Framework.Interface { public delegate void DownloadCompleteHandler(GeneralDownloadItem downloadInfo); /// <summary> /// Implementation that implement this interface should implement PropertyChanged Event for d...
5e5e0c65-14b4-4b31-a812-565ad5a1948e
{ "language": "C#" }
```c# using System; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Queue; using Microsoft.Extensions.Configuration; namespace QueueGettingStarted { public class Program { public static void Main(string[] args) { // configuration var builder = ...
```c# using System; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Queue; using Microsoft.Extensions.Configuration; namespace QueueGettingStarted { public class Program { public static void Main(string[] args) { // configuration var builder = ...
76f61dfc-3714-4562-8b50-890773c682f6
{ "language": "C#" }
```c# using LogBook.Services; using LogBook.Services.Models; using Portal.CMS.Web.Architecture.ViewEngines; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Razor; using System.Web.Routing; using System.Web.WebPages; namespace Portal.CMS.Web { public class MvcApplication : System.Web.HttpAppl...
```c# using LogBook.Services; using LogBook.Services.Models; using Portal.CMS.Web.Architecture.Helpers; using Portal.CMS.Web.Architecture.ViewEngines; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Razor; using System.Web.Routing; using System.Web.WebPages; namespace Portal.CMS.Web { public...
fd34fb6d-3665-4f19-a8d9-f28b7351e58a
{ "language": "C#" }
```c# namespace SnappyMap.IO { using System; using System.Collections.Generic; using System.Linq; using SnappyMap.Data; [Serializable] public struct SectionMapping { public SectionMapping(SectionType type, params string[] sections) : this() { ...
```c# namespace SnappyMap.IO { using System; using System.Collections.Generic; using System.Linq; using SnappyMap.Data; [Serializable] public struct SectionMapping { public SectionMapping(SectionType type, params string[] sections) : this() { ...
0b8f0300-506a-4a5d-9494-8b0a861fa4fe
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace elbgb.gameboy { class Timer { public static class Registers { public const ushort DIV = 0xFF04; public const ushort TIMA = 0xFF05; public const ushort TMA = 0xFF06; p...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace elbgb.gameboy { class Timer { public static class Registers { public const ushort DIV = 0xFF04; public const ushort TIMA = 0xFF05; public const ushort TMA = 0xFF06; p...
c1981c1b-3305-4dd9-93ff-3e97e9ab21f9
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MeDaUmFilme { public class Movie { public string Title { get; set; } public string Year { get; set; } } public class OmdbResult { public List<Movie> Search { ge...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MeDaUmFilme { public class Movie { public string Title { get; set; } public string Year { get; set; } public string Poster { get; set; } public string Type { get; se...
791b2599-91ca-454d-ae12-c0368f76409f
{ "language": "C#" }
```c# using Microsoft.EntityFrameworkCore; using Mitternacht.Services.Database; namespace Mitternacht.Services { public class DbService { private readonly DbContextOptions _options; public DbService(IBotCredentials creds) { var optionsBuilder = new DbContextOptionsBuilder()...
```c# using Microsoft.EntityFrameworkCore; using Mitternacht.Services.Database; namespace Mitternacht.Services { public class DbService { private readonly DbContextOptions _options; public DbService(IBotCredentials creds) { var optionsBuilder = new DbContextOptionsBuilder(); optionsBuilder.UseSqlite(creds....
2e5041ee-728d-4664-9830-6bffc7a79c99
{ "language": "C#" }
```c# // Copyright 2007-2011 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use // this file except in compliance with the License. You may obtain a copy of the // License at // // http://www.apache.org/licenses/LICE...
```c# // Copyright 2007-2011 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use // this file except in compliance with the License. You may obtain a copy of the // License at // // http://www.apache.org/licenses/LICE...
5014f385-b21a-46af-b7f0-4099914e7ef6
{ "language": "C#" }
```c# // TokenList.cs // Script#/Libraries/Web // This source code is subject to terms and conditions of the Apache License, Version 2.0. // using System; using System.Runtime.CompilerServices; namespace System.Html { [IgnoreNamespace] [Imported] public class TokenList { internal ...
```c# // TokenList.cs // Script#/Libraries/Web // This source code is subject to terms and conditions of the Apache License, Version 2.0. // using System; using System.Runtime.CompilerServices; namespace System.Html { [IgnoreNamespace] [Imported] public sealed class TokenList { pr...
1e50fa1d-6342-4598-aac2-018f260aaaef
{ "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 System; using osu.Framework; using osu.Framework.Platform; namespace osu.Game.Tests { public static class VisualTestRunner { ...
```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 System; using osu.Framework; using osu.Framework.Platform; namespace osu.Game.Tests { public static class VisualTestRunner { ...
627ebf99-042c-41c6-b45a-466a20c0c584
{ "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...
b260e21b-534d-41db-b9bd-292432319ca8
{ "language": "C#" }
```c# using System.IO; using JetBrains.Annotations; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace Wox.Plugin.WebSearch { public class WebSearch { public const string DefaultIcon = "web_search.png"; public string Title { get; set; } public string ActionKeyword { ...
```c# using System.IO; using JetBrains.Annotations; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace Wox.Plugin.WebSearch { public class WebSearch { public const string DefaultIcon = "web_search.png"; public string Title { get; set; } public string ActionKeyword { ...
71213c53-c4b6-4a7c-9189-a600c467fe33
{ "language": "C#" }
```c# using MultiMiner.Blockchain.Data; using MultiMiner.ExchangeApi; using MultiMiner.ExchangeApi.Data; using MultiMiner.Utility.Net; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Net; using System.Text; namespace MultiMiner.Blockchain { public class ApiContext : IApiContext...
```c# using MultiMiner.Blockchain.Data; using MultiMiner.ExchangeApi; using MultiMiner.ExchangeApi.Data; using MultiMiner.Utility.Net; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace MultiMiner.Blockchain { public class ApiContext : IApiContext { pub...
af3ef207-f075-493e-ac64-e4680655a22c
{ "language": "C#" }
```c# // Copyright 2014 The Noda Time Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using System; namespace NodaTime.Annotations { /// <summary> /// Indicates that a value-type field which would otherwise by <c>read...
```c# // Copyright 2014 The Noda Time Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using System; namespace NodaTime.Annotations { /// <summary> /// Indicates that a value-type field which would otherwise by <c>read...
abafac8f-318d-4c65-9d44-1c1edb6e85aa
{ "language": "C#" }
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Training.CSharpWorkshop.Tests { [TestClass] public class ProgramTests { [Ignore] [TestMethod] public void IgnoreTest() { Assert.Fail(); } [TestMethod()] pu...
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Training.CSharpWorkshop.Tests { [TestClass] public class ProgramTests { [Ignore] [TestMethod] public void IgnoreTest() { Assert.Fail(); } [TestMethod()] pu...
39d58d9e-1208-41ec-84d7-36fa2bfd5f5c
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml.Data; namespace TramlineFive.Converters { public class TimingConverter : IValueConverter { public object Convert(object value, Type targetType, object paramet...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml.Data; namespace TramlineFive.Converters { public class TimingConverter : IValueConverter { public object Convert(object value, Type targetType, object paramet...
2a793ab2-86be-4c25-a300-5c388fb7b2aa
{ "language": "C#" }
```c# using System.Linq; using MongoDB.Bson; using MongoDB.Driver; namespace Hangfire.Mongo.Migration.Steps.Version11 { /// <summary> /// Create signal capped collection /// </summary> internal class UseObjectIdForJob : IMongoMigrationStep { public MongoSchema TargetSchema => MongoSchema.V...
```c# using System.Linq; using MongoDB.Bson; using MongoDB.Driver; namespace Hangfire.Mongo.Migration.Steps.Version11 { /// <summary> /// Create signal capped collection /// </summary> internal class UseObjectIdForJob : IMongoMigrationStep { public MongoSchema TargetSchema => MongoSchema.V...
2f4207b8-4307-4dcc-94b2-7de1e9bd3c46
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Hjson; namespace HjsonSample { class Program { static void Main(string[] args) { var data=HjsonValue.Load("test.hjson").Qo(); Console.W...
```c# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Hjson; namespace HjsonSample { class Program { static void Main(string[] args) { var data=HjsonValue.Load("test.hjson").Qo(); Console.W...
2180bf70-cde7-467f-9b71-334e8021735c
{ "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 ...
01e4eb65-1ee8-400e-8003-41648d473e49
{ "language": "C#" }
```c# // ----------------------------------------------------------------------- // <copyright file="MenuStyle.cs" company="Steven Kirk"> // Copyright 2015 MIT Licence. See licence.md for more information. // </copyright> // ----------------------------------------------------------------------- namespace Perspex.The...
```c# // ----------------------------------------------------------------------- // <copyright file="MenuStyle.cs" company="Steven Kirk"> // Copyright 2015 MIT Licence. See licence.md for more information. // </copyright> // ----------------------------------------------------------------------- namespace Perspex.The...
9512f6ae-cf76-486e-a25c-eaee25b855e9
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace Bugsnag.Common { public class BugsnagClient : IClient { static Uri _uri = new Uri("http://notify.bugsnag.com"); stat...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace Bugsnag.Common { public class BugsnagClient : IClient { static Uri _uri = new Uri("http://notify.bugsnag.com"); stat...
29179b78-8666-4b53-aba9-f68b2ce6b6f2
{ "language": "C#" }
```c# using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using System.Linq; namespace StackExchange.Profiling.Mvc { /// <summary> /// Extension methods for configuring MiniProfiler for MVC /// </summary> public static class MvcExtensions...
```c# using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using System.Linq; namespace StackExchange.Profiling.Mvc { /// <summary> /// Extension methods for configuring MiniProfiler for MVC /// </summary> public static class MvcExtensions...
fe23914d-4a59-45f4-b306-d04a4cc6f691
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; usin...
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using System.Threading.Tasks; usin...
0be32616-c2b0-4ec6-bfe9-4aee1d89d63c
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="StrikeMarkdownProvider.cs" company="PicklesDoc"> // Copyright 2011 Jeffrey Cameron // Copyright 2012-present PicklesDoc team and community contributors // // // License...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="StrikeMarkdownProvider.cs" company="PicklesDoc"> // Copyright 2011 Jeffrey Cameron // Copyright 2012-present PicklesDoc team and community contributors // // // License...
45b1f569-3569-4919-846a-04fac1f0be75
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using MonoTorrent.BEncoding; namespace MonoTorrent.Client.Tracker { public abstract class TrackerResponseEventArgs : EventArgs { private bool successful; private Tracker tracker; /// <summary> /// True if the request complet...
```c# using System; using System.Collections.Generic; using MonoTorrent.BEncoding; namespace MonoTorrent.Client.Tracker { public abstract class TrackerResponseEventArgs : EventArgs { private bool successful; private Tracker tracker; /// <summary> /// True if the request complet...
daa79ef2-957c-4ea8-9ddb-70fb99016cfc
{ "language": "C#" }
```c# using System; using System.Reflection; using System.Reflection.Emit; namespace ILGeneratorExtensions { public static class MethodFlow { public static void JumpTo(this ILGenerator generator, MethodInfo method) => generator.Emit(OpCodes.Jmp, method); public static void Call(this ILGenerat...
```c# using System; using System.Reflection; using System.Reflection.Emit; namespace ILGeneratorExtensions { public static class MethodFlow { public static void JumpTo(this ILGenerator generator, MethodInfo method) => generator.Emit(OpCodes.Jmp, method); public static void Call(this ILGenerat...
5b22f309-c456-4f97-81a3-c769f224f761
{ "language": "C#" }
```c# using UnityEngine; using Animator = ATP.AnimationPathTools.AnimatorComponent.Animator; namespace ATP.AnimationPathTools.AudioSourceControllerComponent { /// <summary> /// Allows controlling <c>AudioSource</c> component from inspector /// and with keyboard shortcuts. /// </summary> // todo a...
```c# using UnityEngine; using Animator = ATP.AnimationPathTools.AnimatorComponent.Animator; namespace ATP.AnimationPathTools.AudioSourceControllerComponent { /// <summary> /// Allows controlling <c>AudioSource</c> component from inspector /// and with keyboard shortcuts. /// </summary> // todo a...
28442832-9d0d-4d4a-8773-f0abec09cff4
{ "language": "C#" }
```c# using System; using Cake.Core; using Microsoft.Azure.Documents.Client; using Microsoft.Azure.Documents.Client.TransientFaultHandling; using Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling; namespace Cake.DocumentDb.Factories { public class ClientFactory { private readonly Connection...
```c# using System; using Cake.Core; using Microsoft.Azure.Documents; using Microsoft.Azure.Documents.Client; using Microsoft.Azure.Documents.Client.TransientFaultHandling; using Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling; namespace Cake.DocumentDb.Factories { public class ClientFactory { ...
5816f76a-356e-4a69-94c5-730d898d00a6
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.W...
```c# using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.W...
119305cb-4546-4e55-8976-6f7af99bcf29
{ "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...
b7878206-102a-432b-9b58-3e977cabd881
{ "language": "C#" }
```c# using Microsoft.TemplateEngine.Abstractions; using Newtonsoft.Json.Linq; namespace Microsoft.TemplateEngine.Orchestrator.RunnableProjects { public class DerivedSymbol : BaseValueSymbol { public const string TypeName = "derived"; public string ValueTransform { get; set; } public ...
```c# using Microsoft.TemplateEngine.Abstractions; using Newtonsoft.Json.Linq; namespace Microsoft.TemplateEngine.Orchestrator.RunnableProjects { public class DerivedSymbol : BaseValueSymbol { internal const string TypeName = "derived"; public string ValueTransform { get; set; } publi...
fadafa0d-69c1-4609-a429-66327c0ed33c
{ "language": "C#" }
```c# Task("DevBuild") .IsDependentOn("Build") .IsDependentOn("Octopus-Packaging") .IsDependentOn("Octopus-Deployment"); Task("PrBuild") .IsDependentOn("Build") .IsDependentOn("Test-NUnit"); Task("KpiBuild") .IsDependentOn("Build") .IsDependentOn("Test-NUnit") .IsDependentOn("Octopus-P...
```c# Task("DevBuild") .IsDependentOn("Build") .IsDependentOn("Octopus-Packaging") .IsDependentOn("Octopus-Deployment"); Task("KpiBuild") .IsDependentOn("Build") .IsDependentOn("Test-NUnit") .IsDependentOn("Upload-Coverage-Report") .IsDependentOn("Octopus-Packaging") .IsDependentOn("Oct...
6b495240-3dfc-4cfb-9103-8058c8aba868
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace EntryPoint { /// <summary> /// Used to mark a method as a Command, in a CliCommands class /// </summary> [AttributeUsage( AttributeTargets.Method, AllowMultiple = false, ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace EntryPoint { /// <summary> /// Used to mark a method as a Command, in a CliCommands class /// </summary> [AttributeUsage( AttributeTargets.Method, AllowMultiple = false, ...
d57deb5c-b5f5-4769-8cd7-2e5e16cde2ca
{ "language": "C#" }
```c# using System; using System.IO; using System.Reflection; namespace AIMP.SDK { internal static class CustomAssemblyResolver { private static string curPath; private static bool isInited; /// <summary> /// Initializes the specified path. /// </summary> /// ...
```c# using System; using System.IO; using System.Linq; using System.Reflection; namespace AIMP.SDK { internal static class CustomAssemblyResolver { private static string curPath; private static bool isInited; /// <summary> /// Initializes the specified path. /// </su...
ce3d4013-38fe-4788-85d6-f5bdfa8631ff
{ "language": "C#" }
```c# /* * Copyright (c) 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
```c# /* * Copyright (c) 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
a4443465-c2f9-4100-aa62-9c5b9d189d64
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Xml.Serialization; namespace SevenDigital.Api.Schema.Playlists.Response { [Serializable] public class PlaylistLocation : UserBasedUpdatableItem { [XmlAttribute("id")] public string Id { get; set; } [XmlElement("name")] public ...
```c# using System; using System.Collections.Generic; using System.Xml.Serialization; namespace SevenDigital.Api.Schema.Playlists.Response { [Serializable] public class PlaylistLocation : UserBasedUpdatableItem { [XmlAttribute("id")] public string Id { get; set; } [XmlElement("name")] public ...
797458e1-a507-4dd7-b6cd-0d047121d4bf
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="BundleConfig.cs" company="KriaSoft LLC"> // Copyright © 2013 Konstantin Tarkus, KriaSoft LLC. See LICENSE.txt // </copyright> // ------------------------------------------...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="BundleConfig.cs" company="KriaSoft LLC"> // Copyright © 2013 Konstantin Tarkus, KriaSoft LLC. See LICENSE.txt // </copyright> // ------------------------------------------...
e4625109-b5cc-496a-8ca5-6cb09ceaafc0
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Elasticsearch.Net { internal class DynamicBodyFormatter : IJsonFormatter<DynamicBody> { private static readonly DictionaryFormatter<string, object> DictionaryFormatter = new DictionaryFormatter<string, object>(); public void Serialize(ref JsonWriter writer, D...
```c# using System.Collections.Generic; namespace Elasticsearch.Net { internal class DynamicBodyFormatter : IJsonFormatter<DynamicBody> { private static readonly DictionaryFormatter<string, object> DictionaryFormatter = new DictionaryFormatter<string, object>(); public void Serialize(ref JsonWriter writer, D...
05a53c31-15e8-451f-9406-049c6d529d65
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Harmony { internal static class PatchTools { static readonly Dictionary<object, object> objectReferences = new Dictionary<object, object>(); internal static void RememberObject(object key, object value) ...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Harmony { internal static class PatchTools { static readonly Dictionary<object, object> objectReferences = new Dictionary<object, object>(); internal static void RememberObject(object key, object value) ...
b618a22b-7175-42fd-994b-fe64f2972182
{ "language": "C#" }
```c# using System; using Newtonsoft.Json; namespace Stranne.VasttrafikNET.Models { internal class Token { private DateTimeOffset _createDate = DateTimeOffset.Now; [JsonProperty("Expires_In")] public int ExpiresIn { get; set; } [JsonProperty("Access_Token")] public st...
```c# using System; using Newtonsoft.Json; namespace Stranne.VasttrafikNET.Models { internal class Token { private DateTimeOffset _createDate = DateTimeOffset.Now; [JsonProperty("Expires_In")] public int ExpiresIn { get; set; } [JsonProperty("Access_Token")] public st...
543b90dd-3105-4ada-921b-f9dde5d3cb1f
{ "language": "C#" }
```c# namespace awesome_bot.Giphy { public static partial class GiphyEndPoints { public class RandomEndPoint { private const string RandomPath = "/v1/gifs/random"; public string Build(string searchText, Rating rating = null) => string.Join(string.Empty, R...
```c# namespace awesome_bot.Giphy { public static partial class GiphyEndPoints { public class RandomEndPoint { private const string RandomPath = "/v1/gifs/random"; public string Build(string searchText, Rating rating = null) => string.Join(string.Empty, R...
00b99b51-7640-4600-abac-c7163d38928d
{ "language": "C#" }
```c# namespace Aliencube.ReCaptcha.Wrapper.Mvc.Parameters { /// <summary> /// This represents the parameters entity to render api.js. /// </summary> /// <remarks>More details: https://developers.google.com/recaptcha/docs/display#js_param</remarks> public partial class ResourceParameters { ...
```c# using Newtonsoft.Json; namespace Aliencube.ReCaptcha.Wrapper.Mvc.Parameters { /// <summary> /// This represents the parameters entity to render api.js. /// </summary> /// <remarks>More details: https://developers.google.com/recaptcha/docs/display#js_param</remarks> public partial class Resour...
c8f1991f-e118-477e-b4da-b393de5fc75b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Windows.Media.Imaging; namespace DesktopWidgets.Helpers { public static class ImageHelper { public static readonly List<string> SupportedExtensions = new List<string> { ".bmp", ".gif", ".ico"...
```c# using System; using System.Collections.Generic; using System.Windows.Media.Imaging; namespace DesktopWidgets.Helpers { public static class ImageHelper { // https://msdn.microsoft.com/en-us/library/ee719654(v=VS.85).aspx#wpfc_codecs. public static readonly List<string> SupportedExtensions...
e1f2ced9-459c-472f-b89f-826c57cf5781
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; public class PhysicsHelper2D { /// <summary> /// Ignores collision for every single GameObject with a particular tag /// </summary> /// <param name="object1"></param> /// <param name="tag"></param> /// <param name="ignore"></param> public static void ignoreCol...
```c# using UnityEngine; using System.Collections; public class PhysicsHelper2D { /// <summary> /// Ignores collision for every single GameObject with a particular tag /// </summary> /// <param name="object1"></param> /// <param name="tag"></param> /// <param name="ignore"></param> public static void ignoreCol...
9191cf53-7d9b-4c6d-8ca5-e3b46d872b92
{ "language": "C#" }
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="HarnessTests.cs" company="LunchBox corp"> // Copyright 2014 The Lunch-Box mob: // Ozgur DEVELIOGLU (@Zgurrr) // Cyrille DUPUYDAUBY (@Cyrdup) // ...
```c# // -------------------------------------------------------------------------------------------------------------------- // <copyright file="HarnessTests.cs" company="LunchBox corp"> // Copyright 2014 The Lunch-Box mob: // Ozgur DEVELIOGLU (@Zgurrr) // Cyrille DUPUYDAUBY (@Cyrdup) // ...
d213100a-d043-4185-bf4c-ad3aadc4dec8
{ "language": "C#" }
```c# using System; using System.IO; using Kudu.Core.Infrastructure; namespace Kudu.Core.Deployment { public class DeploymentConfiguration { internal const string DeployConfigFile = ".deployment"; private readonly IniFile _iniFile; private readonly string _path; public Deploym...
```c# using System; using System.IO; using Kudu.Core.Infrastructure; namespace Kudu.Core.Deployment { public class DeploymentConfiguration { internal const string DeployConfigFile = ".deployment"; private readonly IniFile _iniFile; private readonly string _path; public Deploym...
04948e71-fe5a-42e1-a171-499b2f77f4be
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Owin; namespace JabbR.Middleware { using Microsoft.Owin.Security; using Microsoft.Owin.Security.DataHandler; using AppFunc = Func<IDictionary<string, object>, Task>; public class FixCookieHandler {...
```c# using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Microsoft.Owin; using Microsoft.Owin.Security; using Microsoft.Owin.Security.DataHandler; namespace JabbR.Middleware { using AppFunc = Func<IDictionary<string, object>, Task>; public class FixCookieHa...
47a4c0bf-956d-460b-95b2-8749b16ba77c
{ "language": "C#" }
```c# using BlackFox.Roslyn.TestDiagnostics.NoNewGuid; using BlackFox.Roslyn.TestDiagnostics.NoStringEmpty; using Microsoft.VisualStudio.TestTools.UnitTesting; using NFluent; using TestDiagnosticsUnitTests.Helpers.DiagnosticTestHelpers; namespace TestDiagnosticsUnitTests { [TestClass] public class NoNewGuidAn...
```c# using BlackFox.Roslyn.TestDiagnostics.NoNewGuid; using Microsoft.VisualStudio.TestTools.UnitTesting; using NFluent; using TestDiagnosticsUnitTests.Helpers.DiagnosticTestHelpers; namespace TestDiagnosticsUnitTests { [TestClass] public class NoNewGuidAnalyzerTests { [TestMethod] public...
b7fb0211-4749-4401-9d43-7264413e9a68
{ "language": "C#" }
```c# using System.Web; namespace FeatureSwitcher.DebugConsole.Behaviours { public class DebugConsoleBehaviour { private readonly bool _isForced = false; private DebugConsoleBehaviour(bool isForced) { this._isForced = isForced; } internal static FeatureSwi...
```c# using System.Web; namespace FeatureSwitcher.DebugConsole.Behaviours { public class DebugConsoleBehaviour { private readonly bool _isForced = false; private DebugConsoleBehaviour(bool isForced) { this._isForced = isForced; } internal static FeatureSwi...
2b34eb0b-81e6-4680-ad77-f42d13d7b430
{ "language": "C#" }
```c# // Copyright 2011 The Noda Time Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using System; using NUnit.Framework; namespace NodaTime.Test { public class SystemClockTest { [Test] public void InstanceNo...
```c# // Copyright 2011 The Noda Time Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using System; using NUnit.Framework; namespace NodaTime.Test { public class SystemClockTest { [Test] public void InstanceNo...
00267792-7ede-452d-8fd9-eef2d3f5f869
{ "language": "C#" }
```c# using SsrsDeploy; using SsrsDeploy.ReportingService; using SsrsDeploy.Execution; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SsrDeploy.Factory { class ServiceFactory { private readonly ReportingService2010 rs; ...
```c# using SsrsDeploy; using SsrsDeploy.ReportingService; using SsrsDeploy.Execution; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SsrsDeploy.Factory { class ServiceFactory { private readonly ReportingService2010 rs; ...
c3ef6b3e-43c7-48e3-a2c7-6ee72438ccf7
{ "language": "C#" }
```c# using System; using System.Collections.Concurrent; using System.Threading; using System.Threading.Tasks; namespace Verdeler { internal class ConcurrencyLimiter<TSubject> { private readonly Func<TSubject, object> _subjectReductionMap; private readonly int _concurrencyLimit; priv...
```c# using System; using System.Collections.Concurrent; using System.Threading; using System.Threading.Tasks; namespace Verdeler { internal class ConcurrencyLimiter<TSubject> { private readonly Func<TSubject, object> _subjectReductionMap; private readonly int _concurrencyLimit; priv...
371ff056-c960-48b8-8178-e0fcf8c8f0f4
{ "language": "C#" }
```c# using System.Collections.Generic; namespace Bibliotheca.Server.Depository.FileSystem.Core.DataTransferObjects { public class ProjectDto { public ProjectDto() { Tags = new List<string>(); VisibleBranches = new List<string>(); EditLinks = new List<EditLin...
```c# using System.Collections.Generic; namespace Bibliotheca.Server.Depository.FileSystem.Core.DataTransferObjects { public class ProjectDto { public ProjectDto() { Tags = new List<string>(); VisibleBranches = new List<string>(); EditLinks = new List<EditLin...
f36171ef-e497-490e-ace1-627867762335
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Duality; using Duality.Editor; namespace RockyTV.Duality.Plugins.IronPython.Resources { [EditorHintCategory(Properties.ResNames.CategoryScripts)] [EditorHintImage(Pr...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using Duality; using Duality.Editor; namespace RockyTV.Duality.Plugins.IronPython.Resources { [EditorHintCategory(Properties.ResNames.CategoryScripts)] [EditorHintImage(Pr...
5e73bda3-1016-433e-871f-c723b71cac4c
{ "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 System; using NUnit.Framework; namespace osu.Game.Tests { /// <summary> /// An attribute to mark any flaky tests. /// Will add ...
```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 System; using NUnit.Framework; namespace osu.Game.Tests { /// <summary> /// An attribute to mark any flaky tests. /// Will add ...
a4521c93-aaa6-4480-a069-106dc2087425
{ "language": "C#" }
```c# using UnityEngine; using System.Collections; using Fungus; public class SpritesRoom : Room { public Room menuRoom; public Animator blueAlienAnim; public SpriteController blueAlienSprite; void OnEnter() { Say("Pink Alien says to Blue Alien..."); Say("...'Show me your funky moves!'"); SetAnimatorT...
```c# using UnityEngine; using System.Collections; using Fungus; public class SpritesRoom : Room { public Room menuRoom; public Animator blueAlienAnim; public SpriteController blueAlienSprite; void OnEnter() { ShowSprite(blueAlienSprite); Say("Pink Alien says to Blue Alien..."); Say("...'Show me your ...
89c7e673-151d-46b8-8e2b-430b15363709
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Graphics.OpenGL.Buffers; using osu.Framework.Graphics.OpenGL.Textures; using osu.Framework.Graphics.OpenGL.Vertices; using osuTK.G...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Graphics.OpenGL.Buffers; using osu.Framework.Graphics.OpenGL.Textures; using osu.Framework.Graphics.OpenGL.Vertices; using osuTK.G...
6f41bb5f-2f5f-411b-be95-806c7d475e21
{ "language": "C#" }
```c# /* AssemblyInfo.cs This file is part of Morgan's CLR Advanced Runtime (MCART) Author(s): César Andrés Morgan <xds_xps_ivx@hotmail.com> Copyright (c) 2011 - 2018 César Andrés Morgan Morgan's CLR Advanced Runtime (MCART) is free software: you can redistribute it and/or modify it under the terms of the GNU...
```c# /* AssemblyInfo.cs This file is part of Morgan's CLR Advanced Runtime (MCART) Author(s): César Andrés Morgan <xds_xps_ivx@hotmail.com> Copyright (c) 2011 - 2018 César Andrés Morgan Morgan's CLR Advanced Runtime (MCART) is free software: you can redistribute it and/or modify it under the terms of the GNU...
7795a23b-76dd-4f6a-b0ed-a510b6aab41d
{ "language": "C#" }
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. namespace osu.Framework.Timing { /// <summary> /// A clock which will only update its current time when a frame proces is triggered. /// Useful for kee...
```c# // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. namespace osu.Framework.Timing { /// <summary> /// A clock which will only update its current time when a frame process is triggered. /// Useful for ke...
eb91e1b9-1d08-49cc-9cc6-eaf3620c1d54
{ "language": "C#" }
```c# using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ComponentPool<T> where T : MonoBehaviour { private Func<T> _instantiateAction; private Action<T> _getComponentAction; private Action<T> _returnComponentAction; private Stack<T> _pooledObject...
```c# using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ComponentPool<T> where T : MonoBehaviour { private Func<T> _instantiateAction; private Action<T> _getComponentAction; private Action<T> _returnComponentAction; private Stack<T> _pooledObject...
7f1f5b5b-5fa3-4f8b-8c30-80cff3498479
{ "language": "C#" }
```c# using System.Xml.Serialization; namespace Gigobyte.Daterpillar { /// <summary> /// Represents a database indexed column. /// </summary> public struct IndexColumn { /// <summary> /// Gets or sets the column's name. /// </summary> /// <value>The name.</value> ...
```c# using System.Xml.Serialization; namespace Gigobyte.Daterpillar { /// <summary> /// Represents a database indexed column. /// </summary> public struct IndexColumn { /// <summary> /// Initializes a new instance of the <see cref="IndexColumn"/> struct. /// </summary> ...
42531735-691a-4e79-9b41-559cdc1a3322
{ "language": "C#" }
```c# using CodeHub.Helpers; using CodeHub.ViewModels; using Octokit; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Con...
```c# using CodeHub.Helpers; using CodeHub.ViewModels; using Octokit; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Con...
3d84a94f-e9ff-41d5-acde-fdaf027f11b3
{ "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 Newtonsoft.Json; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; namespace osu.Game.Skinning { /// <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; using Newtonsoft.Json; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; namespace osu.Game.Skinning { /// <summary> ///...
f8b55ae2-6584-4138-91ac-32f4db4daa8d
{ "language": "C#" }
```c# // Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; using System.Linq; /// <summary> /// A class representing t...
```c# // Copyright (c) Martin Costello, 2015. All rights reserved. // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information. namespace MartinCostello.ProjectEuler.Puzzles { using System; using System.Linq; /// <summary> /// A class representing t...
5eea338c-a42e-4021-bd34-2c52e6905e68
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("AngleSharp")] [assembly: AssemblyDescription("AngleSharp is the ultimate angle brackets parser library. It parses HTML5, MathML, SVG, XML and CSS to construct a DOM based on the offici...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("AngleSharp")] [assembly: AssemblyDescription("AngleSharp is the ultimate angle brackets parser library. It parses HTML5, MathML, SVG, XML and CSS to construct a DOM based on the offici...
9870d861-9bd8-46b2-a52c-c7cdebbbd5cd
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Net.Mime; namespace Mvc.Mailer { /// <summary> /// This class is a utility class for instantiating LinkedResource objects /// </summary> public class LinkedResourceProvider : ILinkedResourceProvider { ...
```c# using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Net.Mime; namespace Mvc.Mailer { /// <summary> /// This class is a utility class for instantiating LinkedResource objects /// </summary> public class LinkedResourceProvider : ILinkedResourceProvider { ...
f5d689c6-219d-4dec-a99b-ec077534e55c
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.Utilities.Editor; using System.IO; using UnityEditor; namespace Microsoft.MixedReality.Toolkit.WindowsMixedReality { /// <summary> /// Class to perform checks for configuration checks for th...
```c# // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.Utilities.Editor; using System.IO; using UnityEditor; namespace Microsoft.MixedReality.Toolkit.WindowsMixedReality { /// <summary> /// Class to perform checks for configuration checks for th...
229e65b4-b1f5-4eaf-8340-7e21138bffe4
{ "language": "C#" }
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; using osu.Framework.Platform; using osu.Framew...
```c# // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Cursor; using osu.Framework.IO.Stores; using osu.Frame...
df490eb1-67bb-4aad-92c5-60139bb60abf
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.Content.PM; using Android.OS; using Android.Runtime; using Android.Views; using Android.Webkit; using Android.Widget; namespace webscripthook_android { [Activity(Label...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.Content.PM; using Android.OS; using Android.Runtime; using Android.Views; using Android.Webkit; using Android.Widget; namespace webscripthook_android { [Activity(Label...
a34d20ed-0dd1-4dcb-bd12-09aeb6a7eaaa
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Xamarin; namespace Espera.Core.Analytics { internal class XamarinAnalyticsEndpoint : IAnalyticsEndpoint { private Guid id; public void Dispose() { // Xamarin Insights can only be terminated if it has been started ...
```c# using System; using System.Collections.Generic; using Xamarin; namespace Espera.Core.Analytics { internal class XamarinAnalyticsEndpoint : IAnalyticsEndpoint { private Guid id; public void Dispose() { // Xamarin Insights can only be terminated if it has been started ...
2d6e9587-566a-4f7a-bdf9-6cc9fa77136c
{ "language": "C#" }
```c# using System; using Avalonia; using Avalonia.Logging.Serilog; using $safeprojectname$.ViewModels; using $safeprojectname$.Views; namespace $safeprojectname$ { class Program { // Initialization code. Don't use any Avalonia, third-party APIs or any // SynchronizationContext-reliant code be...
```c# using System; using Avalonia; using Avalonia.Logging.Serilog; using $safeprojectname$.ViewModels; using $safeprojectname$.Views; namespace $safeprojectname$ { class Program { // Initialization code. Don't use any Avalonia, third-party APIs or any // SynchronizationContext-reliant code be...
821fa3c4-2169-420e-a04d-f1e9b56f027a
{ "language": "C#" }
```c# namespace TestStack.ConventionTests.ConventionData { using System; using System.Collections.Generic; using System.Linq; /// <summary> /// This is where we set what our convention is all about. /// </summary> public class Types : IConventionData { public Typ...
```c# namespace TestStack.ConventionTests.ConventionData { using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; /// <summary> /// This is where we set what our convention is all about. /// </summary> public class Types ...
e9ee342e-f87b-4c7c-a957-e110914871a1
{ "language": "C#" }
```c# using StackExchange.Redis; using System; using System.Collections.Concurrent; using System.Threading.Tasks; namespace Redists.Core { internal class TimeSeriesWriter : ITimeSeriesWriter { private readonly IDatabaseAsync dbAsync; private TimeSpan? ttl; private IDataPointParser pars...
```c# using StackExchange.Redis; using System; using System.Collections.Concurrent; using System.Threading.Tasks; namespace Redists.Core { internal class TimeSeriesWriter : ITimeSeriesWriter { private readonly IDatabaseAsync dbAsync; private TimeSpan? ttl; private IDataPointParser pars...
318fdcde-9c0c-4a6c-bc1f-51c038e1f4e3
{ "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...
24f4088c-63aa-4128-9f99-5093262ca717
{ "language": "C#" }
```c# /* * Copyright 2014 Dominick Baier, Brock Allen * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
```c# /* * Copyright 2014 Dominick Baier, Brock Allen * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
8465e366-2999-4de9-8380-fd0398530d4e
{ "language": "C#" }
```c# using System; namespace Xamarin.Forms.GoogleMaps.Internals { internal class ProductInformation { public const string Author = "amay077"; public const string Name = "Xamarin.Forms.GoogleMaps"; public const string Copyright = "Copyright © amay077. 2016 - 2018"; public const ...
```c# using System; namespace Xamarin.Forms.GoogleMaps.Internals { internal class ProductInformation { public const string Author = "amay077"; public const string Name = "Xamarin.Forms.GoogleMaps"; public const string Copyright = "Copyright © amay077. 2016 - 2018"; public const ...
02df28b9-45f5-4db5-94e7-59f867d498ce
{ "language": "C#" }
```c# using System.Linq; using System.Net.NetworkInformation; using System.Net.Sockets; using System.Security; namespace HttpMock.Integration.Tests { internal static class PortHelper { internal static int FindLocalAvailablePortForTesting () { for (var i = 1025; i <= 65000; i++) { if (!Con...
```c# using System; using System.Linq; using System.Net.NetworkInformation; using System.Security; namespace HttpMock.Integration.Tests { internal static class PortHelper { internal static int FindLocalAvailablePortForTesting () { IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalPrope...
119ab464-3042-40f2-98c2-4f62bf8f26be
{ "language": "C#" }
```c# //------------------------------------------------------------------------------ // Revenge Of The Cats: Ethernet // Copyright (C) 2008, mEthLab Interactive //------------------------------------------------------------------------------ //-------------------------------------------------------------------------...
```c# //------------------------------------------------------------------------------ // Revenge Of The Cats: Ethernet // Copyright (C) 2008, mEthLab Interactive //------------------------------------------------------------------------------ //-------------------------------------------------------------------------...
e5870913-fe25-44c8-a720-ed335a1c16c5
{ "language": "C#" }
```c# // Copyright 2015 Renaud Paquay All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless re...
```c# // Copyright 2015 Renaud Paquay All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless re...
202025f8-0e1a-44f0-b3f5-27512b819d4d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Diploms.Core; namespace Diploms.DataLayer { public class DiplomContext : DbContext { public DbSet<Department> Departments { get; set; } public DbSet...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Diploms.Core; namespace Diploms.DataLayer { public class DiplomContext : DbContext { public DbSet<Department> Departments { get; set; } public DbSet...
95a849e8-dd55-4e88-8504-509832aed1d2
{ "language": "C#" }
```c# using UnityEngine; public class LookAtSpeaker : MonoBehaviour { public bool active = false; public float speed; public float jitterFreq; public float jitterLerp; public float jitterScale; public float blankGazeDistance; public Transform trackedTransform; public float lerp; p...
```c# using UnityEngine; public class LookAtSpeaker : MonoBehaviour { public bool active = false; public float speed; public float jitterFreq; public float jitterLerp; public float jitterScale; public float blankGazeDistance; public Transform trackedTransform; public float lerp; p...
c8930da2-b7e6-46a9-a8f0-961e5213d250
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using NDesk.DBus; namespace Palaso.UsbDrive.Linux { public class UDisks { private readonly IUDisks _udisks; public UDisks() { _udisks = Bus.System.GetObject<IUDisks>("org.freedesktop.UDisks", new ObjectPath("/org/f...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using NDesk.DBus; namespace Palaso.UsbDrive.Linux { public class UDisks { private readonly IUDisks _udisks; public UDisks() { _udisks = Bus.System.GetObject<IUDisks>("org.freedesktop.UDisks", new ObjectPath("/org/f...
c4e1835d-05a9-4609-b911-96bfcfd4e87b
{ "language": "C#" }
```c# using System.Threading.Tasks; using ToDoList.Automation.Api.ApiActions; using Tranquire; namespace ToDoList.Automation.Api { public static class Remove { public static IAction<Task> ToDoItem(string title) => Get.TheToDoItem(title) ...
```c# using System.Threading.Tasks; using ToDoList.Automation.Api.ApiActions; using Tranquire; namespace ToDoList.Automation.Api { public static class Remove { public static IAction<Task> ToDoItem(string title) => Get.TheToDoItem(title) ...
dbdee024-66f4-4d84-af45-a826dd5dd303
{ "language": "C#" }
```c# using System.ComponentModel.DataAnnotations; namespace Tgstation.Server.Api.Models { /// <summary> /// Parameters for creating a <see cref="TestMerge"/> /// </summary> public class TestMergeParameters { /// <summary> /// The number of the pull request /// </summary> public int? Number { get; set; }...
```c# using System.ComponentModel.DataAnnotations; namespace Tgstation.Server.Api.Models { /// <summary> /// Parameters for creating a <see cref="TestMerge"/> /// </summary> public class TestMergeParameters { /// <summary> /// The number of the pull request /// </summary> [Required] public int? Number ...
74a435ef-51ba-4b38-918b-5e566519cae4
{ "language": "C#" }
```c# using BittrexSharp; using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace Tests.IntegrationTests { [TestClass] public class BittrexTests { [TestMethod] pub...
```c# using BittrexSharp; using BittrexSharp.Domain; using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace Tests.IntegrationTests { [TestClass] public class BittrexTests { ...
e28d85de-1500-412b-a160-360014cc70b3
{ "language": "C#" }
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; using OpenQA.Selenium.Firefox; using OpenQA.Selenium.Support.UI; using Toolkit.Utils; namespace Toolkit { [TestClass] public class AlertHandlerTest { FirefoxDriver _driver; [Te...
```c# using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; using OpenQA.Selenium.Firefox; using OpenQA.Selenium.Support.UI; using Toolkit.Utils; namespace Toolkit { [TestClass] public class AlertHandlerTest { FirefoxDriver _driver; [Test...
f71bd1d7-d122-4d9f-bbcd-afe0462f4165
{ "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; namespace System { [Serializable] [System.Runtime.CompilerService...
```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; namespace System { [Serializable] [System.Runtime.CompilerService...
43fbd9eb-b64c-4d75-8f68-ed97c607aa80
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NBi.Core.Etl.IntegrationService { class SsisEtlRunnerFactory { public IEtlRunner Get(IEtl etl) { if (string.IsNullOrEmpty(etl.Server)) return new EtlFil...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NBi.Core.Etl.IntegrationService { class SsisEtlRunnerFactory { public IEtlRunner Get(IEtl etl) { if (string.IsNullOrEmpty(etl.Server)) return new EtlFil...
c6d20931-88a8-4473-a2a8-a593a204ea67
{ "language": "C#" }
```c# // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.WindowsMixedReality; using System; #if WMR_ENABLED using UnityEngine.XR.WindowsMR; #endif // WMR_ENABLED namespace Microsoft.MixedReality.Toolkit.XRSDK.WindowsMixedReality { /// <summary> //...
```c# // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Microsoft.MixedReality.Toolkit.WindowsMixedReality; using System; #if WMR_ENABLED using UnityEngine.XR.WindowsMR; #endif // WMR_ENABLED namespace Microsoft.MixedReality.Toolkit.XRSDK.WindowsMixedReality { /// <summary> //...
29063455-35e3-465f-b0be-58ee3760271d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Web.Http; using AutoMapper; using GeoChallenger.Services.Interfaces; using GeoChallenger.Web.Api.Models; namespace GeoChallenger.Web.Api.Controllers { /// <summary> /// Geo tags controller /// </summary> ...
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Web.Http; using AutoMapper; using GeoChallenger.Services.Interfaces; using GeoChallenger.Web.Api.Models; namespace GeoChallenger.Web.Api.Controllers { /// <summary> /// Point of Interests controller /// </...
6ddf87df-3ba2-45eb-8243-2dd8b97beed3
{ "language": "C#" }
```c# using System; using System.IO; using System.Text; using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace MCloud.Linode { internal class LinodeResponse { public LinodeResponse () { } public string Action { get; set; } public JObject [] Data { ...
```c# using System; using System.IO; using System.Text; using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace MCloud.Linode { internal class LinodeResponse { public LinodeResponse () { } public string Action { get; set; } public JObject [] Data { ...
c9b51a97-f71a-4bce-b994-9f9d5bb0f0af
{ "language": "C#" }
```c# using System.Diagnostics; namespace Cams { public static class VideoConverter { public static bool CodecCopy(string inputFile, string outputFile) { return Run($"-y -i {inputFile} -codec copy {outputFile}"); } public static bool Concat(string listFilePath, string outputFile) { return Run($"-y ...
```c# using System.Diagnostics; namespace Cams { public static class VideoConverter { public static bool CodecCopy(string inputFile, string outputFile) { return Run($"-y -i {inputFile} -codec copy {outputFile}"); } public static bool Concat(string listFilePath, string outputFile) { return Run($"-y ...
3ee9a27c-cc40-4706-a9d2-568e781e29ce
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.InteropServices; using System; [assembly: AssemblyCompany("Connective DX")] [assembly: AssemblyProduct("Synthesis")] [assembly: ComVisible(false)] [assembly: AssemblyVersion("8.1.1.0")] [assembly: AssemblyFileVersion("8.1.1.0")] [assembly: AssemblyInformationalVersi...
```c# using System.Reflection; using System.Runtime.InteropServices; using System; [assembly: AssemblyCompany("Connective DX")] [assembly: AssemblyProduct("Synthesis")] [assembly: ComVisible(false)] [assembly: AssemblyVersion("8.2.0.0")] [assembly: AssemblyFileVersion("8.2.0.0")] [assembly: AssemblyInformationalVersi...
53edc9c3-a326-4c63-a149-747478efb53a
{ "language": "C#" }
```c# namespace Linterhub.Cli.Strategy { using System.IO; using System.Linq; using Runtime; using Engine; using Engine.Exceptions; using Linterhub.Engine.Extensions; public class ActivateStrategy : IStrategy { public object Run(RunContext context, LinterEngine engine, LogManager...
```c# namespace Linterhub.Cli.Strategy { using System.IO; using System.Linq; using Runtime; using Engine; using Engine.Exceptions; using Linterhub.Engine.Extensions; public class ActivateStrategy : IStrategy { public object Run(RunContext context, LinterEngine engine, LogManager...
3aef63d7-a849-4335-b143-b4111d38e3de
{ "language": "C#" }
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System.Threading.Tasks; using osu.Framework.IO.Stores; namespace osu.Framework.Graphics.Textures { public class RawTextureLoaderStore : Resou...
```c# // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE using System.Threading.Tasks; using osu.Framework.IO.Stores; namespace osu.Framework.Graphics.Textures { public class RawTextureLoaderStore : Resou...