doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
1b29e693-996b-4020-b7d8-97c36132c3e5
{ "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 Xunit; namespace System.Reflection.Context { public class CustomReflectionContextTests { ...
```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 Xunit; namespace System.Reflection.Context { public class CustomReflectionContextTests { ...
f093030c-7b91-4ade-ac66-c88a3c2da395
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using Arkivverket.Arkade.Util; namespace Arkivverket.Arkade.Core.Addml.Definitions { public class Separator { private static readonly Dictionary<string, string> SpecialSeparators = new Dictionary<string, string> { {"CRLF...
```c# using System; using System.Collections.Generic; using Arkivverket.Arkade.Util; namespace Arkivverket.Arkade.Core.Addml.Definitions { public class Separator { private static readonly Dictionary<string, string> SpecialSeparators = new Dictionary<string, string> { {"CRLF...
bcc706e5-cfdd-474f-9612-cbce9bc724c7
{ "language": "C#" }
```c# using Espera.Core; using Espera.Core.Management; using Newtonsoft.Json.Linq; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Threading.Tasks; namespace Espera.Services { public static class MobileHelper { public static async Task<by...
```c# using Espera.Core; using Espera.Core.Management; using Newtonsoft.Json.Linq; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Threading.Tasks; namespace Espera.Services { public static class MobileHelper { public static async Task<by...
01d44fc7-081a-4bec-97a6-22f03b27ffce
{ "language": "C#" }
```c# using SubMapper.EnumerableMapping; using System; using System.Collections.Generic; using System.Linq; namespace SubMapper.EnumerableMapping.Adders { public static partial class PartialEnumerableMappingExtensions { public static PartialEnumerableMapping<TSubA, TSubB, IEnumerable<TSubIItem>, TSubJ...
```c# using SubMapper.EnumerableMapping; using System; using System.Collections.Generic; using System.Linq; namespace SubMapper.EnumerableMapping.Adders { public static partial class PartialEnumerableMappingExtensions { public static PartialEnumerableMapping<TSubA, TSubB, IEnumerable<TSubIItem>, TSubJ...
63c4f505-c982-4750-ad5b-09119899245c
{ "language": "C#" }
```c# using CSharpMath.Apple; namespace CSharpMath.Ios { static class IosMathLabels { public static AppleLatexView LatexView(string latex) { var typesettingContext = AppleTypesetters.CreateTypesettingContext() var view = new AppleLatexView(); view.SetLatex(latex); return view; ...
```c# using CSharpMath.Apple; namespace CSharpMath.Ios { static class IosMathLabels { public static AppleLatexView LatexView(string latex) { var typesettingContext = AppleTypesetters.CreateLatinMath(); var view = new AppleLatexView(typesettingContext); view.SetLatex(latex); return ...
304e3312-3485-44e7-8b80-043e5f9278db
{ "language": "C#" }
```c# using GalaSoft.MvvmLight; namespace twitch_tv_viewer.ViewModels.Components { internal class MessageDisplayViewModel : ViewModelBase { private string _message; public string Message { get { return _message; } set { _message = va...
```c# using GalaSoft.MvvmLight; namespace twitch_tv_viewer.ViewModels.Components { internal class MessageDisplayViewModel : ViewModelBase { private string _message; public string Message { get { return _message; } set { _message = va...
f2c01d5d-375c-493b-baac-9090606fe0d1
{ "language": "C#" }
```c# using System; using UnityEngine; namespace FullSerializer { /// <summary> /// Enables some top-level customization of Full Serializer. /// </summary> public static class fsConfig { /// <summary> /// The attributes that will force a field or property to be serialized. /// ...
```c# using System; using UnityEngine; namespace FullSerializer { /// <summary> /// Enables some top-level customization of Full Serializer. /// </summary> public static class fsConfig { /// <summary> /// The attributes that will force a field or property to be serialized. /// ...
2953a370-b4a5-4672-96ce-bc88d2a26807
{ "language": "C#" }
```c# namespace TraktApiSharp.Objects.Post.Scrobbles { using Newtonsoft.Json; using System; public abstract class TraktScrobblePost : IValidatable { [JsonProperty(PropertyName = "progress")] public float Progress { get; set; } [JsonProperty(PropertyName = "app_version")] ...
```c# namespace TraktApiSharp.Objects.Post.Scrobbles { using Newtonsoft.Json; using System; public abstract class TraktScrobblePost : IValidatable { [JsonProperty(PropertyName = "progress")] public float Progress { get; set; } [JsonProperty(PropertyName = "app_version")] ...
e09e8606-8b43-44e3-b659-0882ba83d92f
{ "language": "C#" }
```c# using System.Net.Http; using SFA.DAS.CommitmentPayments.WebJob.Configuration; using SFA.DAS.Http; using SFA.DAS.Http.TokenGenerators; using SFA.DAS.NLog.Logger.Web.MessageHandlers; using SFA.DAS.Provider.Events.Api.Client; using SFA.DAS.Provider.Events.Api.Client.Configuration; using StructureMap; namespace SFA...
```c# using System.Net.Http; using SFA.DAS.CommitmentPayments.WebJob.Configuration; using SFA.DAS.Http; using SFA.DAS.Http.TokenGenerators; using SFA.DAS.NLog.Logger.Web.MessageHandlers; using SFA.DAS.Provider.Events.Api.Client; using SFA.DAS.Provider.Events.Api.Client.Configuration; using StructureMap; namespace SFA...
77e6bc62-4723-422b-8877-7b33e76baed6
{ "language": "C#" }
```c# // Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unle...
```c# // Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/> // // Licensed under the ImageMagick License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the License at // // https://www.imagemagick.org/script/license.php // // Unle...
b759eafc-0c1e-4c81-83ce-aaa911a103f2
{ "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; using System.Runtime.InteropServices; namespace osu.Framework.Platform.Linux.Native { public static class Library { [DllImp...
```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; using System.Runtime.InteropServices; namespace osu.Framework.Platform.Linux.Native { public static class Library { [DllImp...
c3610d5a-a21c-47df-85ef-1ec325f938a0
{ "language": "C#" }
```c# // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
```c# // Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
7ed4edf6-33bc-4fc8-801d-a5f0643d1d51
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace PogoLocationFeeder.Helper { public class JsonSerializerSettingsCultureInvariant : JsonSerializerSettings { public JsonS...
```c# using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace PogoLocationFeeder.Helper { public class JsonSerializerSettingsCu...
80a20934-52d4-4eab-b256-cbfaabf0cce1
{ "language": "C#" }
```c# namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common { using Base.Get; using Objects.Basic; using Objects.Get.Shows.Common; internal class TraktShowsMostAnticipatedRequest : TraktGetRequest<TraktPaginationListResult<TraktMostAnticipatedShow>, TraktMostAnticipatedShow> { interna...
```c# namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common { using Base; using Base.Get; using Objects.Basic; using Objects.Get.Shows.Common; internal class TraktShowsMostAnticipatedRequest : TraktGetRequest<TraktPaginationListResult<TraktMostAnticipatedShow>, TraktMostAnticipatedShow> {...
9745d96d-db1a-4890-87b0-b31b5993e9fa
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Composition; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; namespace Microsoft.CodeAnalysis.Experiments { ...
```c# // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Composition; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; namespace Microsoft.CodeAnalysis.Experiments { ...
e8b22311-24e7-441c-9be2-8a2d16bf06ff
{ "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.ComponentModel; using osu.Framework.Localisation; using osu.Game.Resources.Localisation.Web; namespace osu.Game.Overlays.BeatmapListing { public e...
```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.ComponentModel; using osu.Framework.Localisation; using osu.Game.Resources.Localisation.Web; namespace osu.Game.Overlays.BeatmapListing { public e...
6bcbd3a2-5767-4d6a-9efb-9ac483b18d52
{ "language": "C#" }
```c# using System; using Shuttle.Core.Infrastructure; namespace Shuttle.Esb { public class DefaultMessageHandlerInvoker : IMessageHandlerInvoker { public MessageHandlerInvokeResult Invoke(IPipelineEvent pipelineEvent) { Guard.AgainstNull(pipelineEvent, "pipelineEvent"); var state = pipelineEvent.Pipelin...
```c# using System; using System.Linq; using Shuttle.Core.Infrastructure; namespace Shuttle.Esb { public class DefaultMessageHandlerInvoker : IMessageHandlerInvoker { public MessageHandlerInvokeResult Invoke(IPipelineEvent pipelineEvent) { Guard.AgainstNull(pipelineEvent, "pipelineEvent"); var state = pi...
dbc6037e-657d-47c1-82aa-bab99f46abbd
{ "language": "C#" }
```c# using System; using ExRam.Gremlinq.Providers.Neptune; using Microsoft.Extensions.Configuration; namespace ExRam.Gremlinq.Core.AspNet { public static class GremlinqSetupExtensions { public static GremlinqSetup UseNeptune(this GremlinqSetup setup, Func<INeptuneConfigurator, IConfiguration, INeptun...
```c# using System; using ExRam.Gremlinq.Providers.Neptune; using Microsoft.Extensions.Configuration; namespace ExRam.Gremlinq.Core.AspNet { public static class GremlinqSetupExtensions { public static GremlinqSetup UseNeptune(this GremlinqSetup setup, Func<INeptuneConfigurator, IConfiguration, INeptun...
a81c71ff-de62-4469-a6e1-fb519e0afc4b
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using Dapper.FastCrud; using Dapper.FastCrud.Configuration.StatementOptions.Builders; using Smooth.IoC.Dapper.Repository.UnitOfWork.Data; namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo { public abstract partial class Repos...
```c# using System; using System.Collections.Generic; using System.Threading.Tasks; using Dapper.FastCrud; using Dapper.FastCrud.Configuration.StatementOptions.Builders; using Smooth.IoC.Dapper.Repository.UnitOfWork.Data; namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Repo { public abstract partial class Repos...
bbeb1a43-be70-4bec-831b-aa3337246f06
{ "language": "C#" }
```c# using System; namespace Arango.Client { [AttributeUsage(AttributeTargets.Property)] public class ArangoProperty : Attribute { public string Alias { get; set; } public bool Serializable { get; set; } public ArangoProperty() { Serializab...
```c# using System; namespace Arango.Client { [AttributeUsage(AttributeTargets.Property)] public class ArangoProperty : Attribute { public bool Serializable { get; set; } public bool Identity { get; set; } public bool Key { get; set; } public bool Revision { get; ...
4cb3544f-c637-4a84-ba96-f43fb41cea40
{ "language": "C#" }
```c# using System; using System.Collections.Concurrent; using System.Threading; namespace Serilog.Sinks.PeriodicBatching { class BoundedConcurrentQueue<T> { const int NON_BOUNDED = -1; readonly ConcurrentQueue<T> _queue = new ConcurrentQueue<T>(); readonly int _queueLimit; ...
```c# using System; using System.Collections.Concurrent; using System.Threading; namespace Serilog.Sinks.PeriodicBatching { class BoundedConcurrentQueue<T> { const int NON_BOUNDED = -1; readonly ConcurrentQueue<T> _queue = new ConcurrentQueue<T>(); readonly int _queueLimit; ...
394e3f62-be64-4b3e-9853-63ce5d33616d
{ "language": "C#" }
```c# using System.Linq; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; namespace Dangl.WebDocumentation.Models { public static class DatabaseInitialization { public static void Initialize(ApplicationDbContext Context) { SetUpRoles(Context); } private sta...
```c# using System.Linq; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; namespace Dangl.WebDocumentation.Models { public static class DatabaseInitialization { public static void Initialize(ApplicationDbContext Context) { SetUpRoles(Context); } private sta...
4e605dd3-1cad-4cfb-ae5f-dbcf47cd9268
{ "language": "C#" }
```c# using System.Web; using System.Web.UI; namespace Unicorn.ControlPanel { public class AccessDenied : IControlPanelControl { public void Render(HtmlTextWriter writer) { writer.Write("<h2>Access Denied</h2>"); writer.Write("<p>You need to <a href=\"/sitecore/admin/login.aspx?ReturnUrl={0}\">sign in to ...
```c# using System.Web; using System.Web.UI; namespace Unicorn.ControlPanel { public class AccessDenied : IControlPanelControl { public void Render(HtmlTextWriter writer) { writer.Write("<h2>Access Denied</h2>"); writer.Write("<p>You need to <a href=\"/sitecore/admin/login.aspx?ReturnUrl={0}\">sign in to ...
59a12a95-3262-4f45-b4ff-9ac6db67188e
{ "language": "C#" }
```c# using System; namespace KnckoutBindingGenerater { public class KnockoutProxy { private readonly string m_ViewModelName; private readonly string m_PrimitiveObservables; private readonly string m_MethodProxies; private readonly string m_CollectionObservables; ...
```c# using System; namespace KnckoutBindingGenerater { public class KnockoutProxy { private readonly string m_ViewModelName; private readonly string m_PrimitiveObservables; private readonly string m_MethodProxies; private readonly string m_CollectionObservables; ...
6dc2d6ca-2481-4431-9e82-318fd239bae1
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using hw.UnitTest; namespace Reni.FeatureTest.Reference { [TestFixture] [ArrayElementType] [TargetSet(@" text: 'abcdefghijklmnopqrstuvwxyz'; pointer: ((text type >>)*1) array_reference instance (text); (pointer >> 7) dump_print; (poin...
```c# using System; using System.Collections.Generic; using System.Linq; using hw.UnitTest; namespace Reni.FeatureTest.Reference { [TestFixture] [ArrayElementType] [TargetSet(@" text: 'abcdefghijklmnopqrstuvwxyz'; pointer: ((text type item)*1) array_reference instance (text); pointer item(7) dump_print; po...
460e4d75-c5fd-481e-b4a9-31950b02f2ce
{ "language": "C#" }
```c# using System.Threading; using System.Threading.Tasks; using SFA.DAS.CommitmentsV2.Api.Types.Requests; using SFA.DAS.CommitmentsV2.Api.Types.Responses; namespace SFA.DAS.CommitmentsV2.Api.Client { public interface ICommitmentsApiClient { Task<bool> HealthCheck(); Task<AccountLegalEntityR...
```c# using System.Threading; using System.Threading.Tasks; using SFA.DAS.CommitmentsV2.Api.Types.Requests; using SFA.DAS.CommitmentsV2.Api.Types.Responses; namespace SFA.DAS.CommitmentsV2.Api.Client { public interface ICommitmentsApiClient { Task<bool> HealthCheck(); Task<AccountLegalEntityR...
a3038da3-2bb1-4871-89d1-56e1aece763e
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using System.Threading; namespace ProjectExtensions.Azure.ServiceBus.Tests.Unit { [TestFixture] public class SampleTest { [Test] public void Test() { Thread.Slee...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using System.Threading; namespace ProjectExtensions.Azure.ServiceBus.Tests.Unit { [TestFixture] public class SampleTest { [Test] public void Test() { Thread.Slee...
ef3f080c-abe2-4669-b080-16f121d6faf8
{ "language": "C#" }
```c# using Subtle.Model; using System.Collections; using System.ComponentModel; using System.Configuration.Install; using System.IO; namespace Subtle.Registry { [RunInstaller(true)] public partial class Installer : System.Configuration.Install.Installer { public Installer() { ...
```c# using Subtle.Model; using System.Collections; using System.ComponentModel; using System.Configuration.Install; using System.IO; namespace Subtle.Registry { [RunInstaller(true)] public partial class Installer : System.Configuration.Install.Installer { private const string TargetDirKey = "targ...
a2f5130d-c040-4297-a261-50809041e60e
{ "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; using osu.Framework.Graphics.Cursor; #nullable enable namespace osu.Framework.Extensions { public static class Pop...
```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; using osu.Framework.Graphics.Cursor; #nullable enable namespace osu.Framework.Extensions { public static class Pop...
54e028c4-a1a5-472b-a1cd-75b7692fb815
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Roton.Emulation { internal class ExecuteCodeContext : ICodeSeekable { private ICodeSeekable _instructionSource; public ExecuteCodeContext(int index, ICodeSeekable instructionSource, string na...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Roton.Emulation { internal class ExecuteCodeContext : ICodeSeekable { private ICodeSeekable _instructionSource; public ExecuteCodeContext(int index, ICodeSeekable instructionSource, string na...
dc288467-4015-4656-a4fb-bb4b920d02ed
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; public class YuukaWaterController : MonoBehaviour { public int requiredCompletion = 3; int completionCounter = 0; public delegate void VictoryAction(); public static event VictoryAction OnVictory; public void Noti...
```c# using System.Collections; using System.Collections.Generic; using UnityEngine; public class YuukaWaterController : MonoBehaviour { public int requiredCompletion = 3; int completionCounter = 0; public delegate void VictoryAction(); public static event VictoryAction OnVictory; private void ...
67601983-1606-4c92-8d0e-4022a484c727
{ "language": "C#" }
```c# #r "Newtonsoft.Json" using System; using Red_Folder.WebCrawl; using Red_Folder.WebCrawl.Data; using Red_Folder.Logging; using Newtonsoft.Json; public static void Run(string request, out object outputDocument, TraceWriter log) { log.Info($"C# Queue trigger function processed: {crawlRequest.Id}"); var a...
```c# #r "Newtonsoft.Json" using System; using Red_Folder.WebCrawl; using Red_Folder.WebCrawl.Data; using Red_Folder.Logging; using Newtonsoft.Json; public static void Run(string request, out object outputDocument, TraceWriter log) { var crawlRequest = JsonConvert.DeserializeObject<CrawlRequest>(request); log.In...
752cbcb9-3fbc-440d-9eb3-31d56cb95e60
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using Dapper; using SampleProject.Domain.Products; using SampleProject.Domain.SharedKernel; namespace SampleProject.Application.Orders.PlaceCustomerOrder { public static class ProductPriceProv...
```c# using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Threading.Tasks; using Dapper; using SampleProject.Domain.Products; using SampleProject.Domain.SharedKernel; namespace SampleProject.Application.Orders.PlaceCustomerOrder { public static class ProductPriceProv...
41f9784e-3c20-4b57-aed3-6baf645927fe
{ "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; using osu.Framework.Configuration; using osu.Framework.IO.Stores; namespace osu.Framework.Localisation { public partial class Localisa...
```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; using osu.Framework.Configuration; using osu.Framework.IO.Stores; namespace osu.Framework.Localisation { public partial class Localisa...
4c9d59cb-2a62-41a4-ae94-6c7f0816d733
{ "language": "C#" }
```c# using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRepository { private readonly TrappistDbContext _dbC...
```c# using System.Collections.Generic; using Promact.Trappist.DomainModel.Models.Question; using System.Linq; using Promact.Trappist.DomainModel.DbContext; namespace Promact.Trappist.Repository.Questions { public class QuestionRepository : IQuestionRepository { private readonly TrappistDbContext _dbC...
3c8018e4-1a19-4c5f-aa4e-f4b9ea764fad
{ "language": "C#" }
```c# namespace TraktApiSharp.Requests.WithoutOAuth.Movies.Common { using Base.Get; using Objects.Basic; using Objects.Get.Movies.Common; internal class TraktMoviesTrendingRequest : TraktGetRequest<TraktPaginationListResult<TraktTrendingMovie>, TraktTrendingMovie> { internal TraktMoviesTre...
```c# namespace TraktApiSharp.Requests.WithoutOAuth.Movies.Common { using Base; using Base.Get; using Objects.Basic; using Objects.Get.Movies.Common; internal class TraktMoviesTrendingRequest : TraktGetRequest<TraktPaginationListResult<TraktTrendingMovie>, TraktTrendingMovie> { interna...
98bac33e-303c-4fe3-9d53-4d58d89398e8
{ "language": "C#" }
```c# using System; using System.Web; namespace Canonicalize { internal static class HttpRequestBaseExtensions { public static Uri GetOriginalUrl(this HttpRequestBase request) { if (request.Url == null || request.Headers == null) { return requ...
```c# using System; using System.Web; namespace Canonicalize { /// <summary> /// Adds extension methods on <see cref="HttpRequestBase"/>. /// </summary> public static class HttpRequestBaseExtensions { /// <summary> /// Gets the original URL requested by the client, witho...
9630eb4a-3899-4d3a-8136-254787dc6fd1
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace JabberBCIT { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo...
```c# using System.Web.Mvc; using System.Web.Routing; namespace JabberBCIT { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "EditProfile", ...
643e77b1-c463-4d13-9a37-c72bf666876f
{ "language": "C#" }
```c# namespace Htc.Vita.Core.Diagnostics { public partial class LocationManager { /// <summary> /// Class LocationInfo. /// </summary> public class LocationInfo { /// <summary> /// Gets or sets the country code alpha2. /// </summary> ...
```c# namespace Htc.Vita.Core.Diagnostics { public partial class LocationManager { /// <summary> /// Class LocationInfo. /// </summary> public class LocationInfo { /// <summary> /// Gets or sets the country code alpha2. /// </summary> ...
bb55d98d-4334-4c6d-8265-5a8ecdf81af3
{ "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.Collections.Generic; using Xunit; namespace System.Globalization.Tests { public class DateTi...
```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.Collections.Generic; using Xunit; namespace System.Globalization.Tests { public class DateTi...
32974cea-b640-4e4b-b1b6-dc1157a83fbe
{ "language": "C#" }
```c# using System; using FullSerializer.Internal; using NUnit.Framework; using System.Collections.Generic; namespace FullSerializer.Tests { [fsObject(Converter = typeof(MyConverter))] public class MyModel { } public class MyConverter : fsConverter { public static bool DidSerialize = false; ...
```c# using System; using FullSerializer.Internal; using NUnit.Framework; using System.Collections.Generic; namespace FullSerializer.Tests { [fsObject(Converter = typeof(MyConverter))] public class MyModel { } public class MyConverter : fsConverter { public static bool DidSerialize = false; ...
87b4ccd0-3205-4ca6-8b56-c4b6445f6db0
{ "language": "C#" }
```c# namespace Stripe { using Newtonsoft.Json; public class CreditNoteListOptions : ListOptions { /// <summary> /// ID of the invoice. /// </summary> [JsonProperty("invoice")] public string InvoiceId { get; set; } } } ``` Add Customer filter when listing Credit...
```c# namespace Stripe { using Newtonsoft.Json; public class CreditNoteListOptions : ListOptions { /// <summary> /// ID of the customer. /// </summary> [JsonProperty("customer")] public string CustomerId { get; set; } /// <summary> /// ID of the invo...
e38dfcaa-9525-42b9-9416-4c1716a56713
{ "language": "C#" }
```c# using System; namespace MQTTnet.Core.Diagnostics { public static class MqttTrace { public static event EventHandler<MqttTraceMessagePublishedEventArgs> TraceMessagePublished; public static void Verbose(string source, string message) { Publish(source, MqttTraceLevel.V...
```c# using System; namespace MQTTnet.Core.Diagnostics { public static class MqttTrace { public static event EventHandler<MqttTraceMessagePublishedEventArgs> TraceMessagePublished; public static void Verbose(string source, string message) { Publish(source, MqttTraceLevel.V...
09b7e553-b37c-476b-865a-1350be5980e3
{ "language": "C#" }
```c# using System; namespace Sep.Git.Tfs { public static class GitTfsExitCodes { public const int OK = 0; public const int Help = 1; public const int InvalidArguments = 2; public const int ForceRequired = 3; public const int ExceptionThrown = Byte.MaxValue - 1; } ...
```c# using System; namespace Sep.Git.Tfs { /// <summary> /// Collection of exit codes used by git-tfs. /// </summary> /// <remarks> /// For consistency across all running environments, both various /// Windows - shells (powershell.exe, cmd.exe) and UNIX - like environments ...
90cb53b1-0070-415d-aa73-0734d0f366b4
{ "language": "C#" }
```c# using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using CroquetAustralia.Domain.Data; using CroquetAustralia.Domain.Features.TournamentEntry.Commands; namespace CroquetAustralia.DownloadTournamentEntries.ReadModels { [SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Local")] ...
```c# using System; using System.Diagnostics.CodeAnalysis; using System.Linq; using CroquetAustralia.Domain.Data; using CroquetAustralia.Domain.Features.TournamentEntry.Commands; namespace CroquetAustralia.DownloadTournamentEntries.ReadModels { [SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Local")] ...
41a2c421-5ad3-48c0-9635-b8f52ba0a078
{ "language": "C#" }
```c# using Microsoft.Extensions.Options; using Umbraco.Core.Composing; using Umbraco.Core.Configuration.Models; using Umbraco.Core.IO; namespace Umbraco.Core.Runtime { public class CoreInitialComponent : IComponent { private readonly IIOHelper _ioHelper; private readonly GlobalSettings _globa...
```c# using Microsoft.Extensions.Options; using Umbraco.Core.Composing; using Umbraco.Core.Configuration.Models; using Umbraco.Core.Hosting; using Umbraco.Core.IO; namespace Umbraco.Core.Runtime { public class CoreInitialComponent : IComponent { private readonly IIOHelper _ioHelper; private re...
741afb93-ee29-4bd3-b461-bab49fd0f0e3
{ "language": "C#" }
```c# namespace BlockchainSharp.Tests.Processors { using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using BlockchainSharp.Stores; using BlockchainSharp.Processors; using BlockchainSharp.Tests.TestUtils; using BlockchainSharp.Core; [TestClass] public class Min...
```c# namespace BlockchainSharp.Tests.Processors { using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using BlockchainSharp.Stores; using BlockchainSharp.Processors; using BlockchainSharp.Tests.TestUtils; using BlockchainSharp.Core; [TestClass] public class Min...
9213915c-ecd7-407e-aaf9-fdd2827632cd
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Windows.Data; namespace NuGet.Dialog.PackageManagerUI { public class StringCollectionsToStringConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureI...
```c# using System; using System.Collections.Generic; using System.Windows.Data; namespace NuGet.Dialog.PackageManagerUI { public class StringCollectionsToStringConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo ...
8eae0a5e-e4a4-4cf6-a3c6-b252d9108ce7
{ "language": "C#" }
```c# using MongoDB.Driver; using Persistence.MongoDB; using SO115App.API.Models.Classi.Soccorso; using SO115App.API.Models.Classi.Soccorso.Eventi; using SO115App.API.Models.Servizi.CQRS.Queries.ListaEventi; using SO115App.Models.Servizi.Infrastruttura.GetListaEventi; using System; using System.Collections.Generic; us...
```c# using MongoDB.Driver; using Persistence.MongoDB; using SO115App.API.Models.Classi.Soccorso; using SO115App.API.Models.Classi.Soccorso.Eventi; using SO115App.API.Models.Servizi.CQRS.Queries.ListaEventi; using SO115App.Models.Servizi.Infrastruttura.GetListaEventi; using System; using System.Collections.Generic; us...
1619f8dd-c14d-4439-affe-239b584f644b
{ "language": "C#" }
```c# using NUnit.Framework; using System; namespace Sailthru.Tests { [TestFixture()] public class Test { [Test()] public void TestCase() { Assert.Fail(); } } } ``` Revert "[DEVOPS-245] verify test failure"
```c# using NUnit.Framework; using System; namespace Sailthru.Tests { [TestFixture()] public class Test { [Test()] public void TestCase() { } } } ```
41a6c0c8-7bcb-48fa-8e46-ec841d141c02
{ "language": "C#" }
```c# using System; using NUnit.Framework; namespace NHibernate.Test.NHSpecificTest.NH315 { /// <summary> /// Summary description for Fixture. /// </summary> [TestFixture] [Ignore("Not working, see http://jira.nhibernate.org/browse/NH-315")] public class Fixture : TestCase { protected override string Mapping...
```c# using System; using NUnit.Framework; namespace NHibernate.Test.NHSpecificTest.NH315 { /// <summary> /// Summary description for Fixture. /// </summary> [TestFixture] public class Fixture : BugTestCase { public override string BugNumber { get { return "NH315"; } } [Test] public void SaveClien...
7d38e589-d6e4-4509-b350-8e2ac8848d56
{ "language": "C#" }
```c# using RealEstateAgencyFranchise.Database; using Starcounter; using System.Linq; namespace RealEstateAgencyFranchise.Controllers { internal class OfficeController { public Json Get(ulong officeObjectNo) { return Db.Scope(() => { var offices = Db.SQL...
```c# using RealEstateAgencyFranchise.Database; using RealEstateAgencyFranchise.ViewModels; using Starcounter; using System.Linq; namespace RealEstateAgencyFranchise.Controllers { internal class OfficeController { public Json Get(ulong officeObjectNo) { return Db.Scope(() => ...
a4e2a3e6-2e0a-41f7-b17f-34da1968bd8e
{ "language": "C#" }
```c# using System.Collections; using System.Collections.Generic; using LiteNetLib.Utils; namespace LiteNetLibManager { public struct ServerTimeMessage : INetSerializable { public int serverUnixTime; public void Deserialize(NetDataReader reader) { serverUnixTime = reader.G...
```c# using System.Collections; using System.Collections.Generic; using LiteNetLib.Utils; namespace LiteNetLibManager { public struct ServerTimeMessage : INetSerializable { public long serverUnixTime; public void Deserialize(NetDataReader reader) { serverUnixTime = reader....
dbfa7470-f573-408e-af64-d58877ae8d7c
{ "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 UIKit; namespace TemplateGame.iOS { public static class Application { public static void Main(string[] args) { UIApplica...
```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.iOS; using UIKit; namespace TemplateGame.iOS { public static class Application { public static void Main(string[] args) ...
883e187e-e90e-4c64-89f7-df3753007368
{ "language": "C#" }
```c# using System; using System.Globalization; namespace Avalonia.Utilities { #if !BUILDTASK public #endif static class StyleClassParser { public static ReadOnlySpan<char> ParseStyleClass(this ref CharacterReader r) { if (IsValidIdentifierStart(r.Peek)) { ...
```c# using System; using System.Globalization; namespace Avalonia.Utilities { #if !BUILDTASK public #endif static class StyleClassParser { public static ReadOnlySpan<char> ParseStyleClass(this ref CharacterReader r) { if (IsValidIdentifierStart(r.PeekOneOrThrow)) {...
ce109a82-4631-459b-9bb1-fd2b7582ce2b
{ "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 System; using System.Runtime.InteropServices; namespace osu.Framework.Desktop.Platform { internal static class Architecture { ...
```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 System; using System.Runtime.InteropServices; namespace osu.Framework.Desktop.Platform { internal static class Architecture { ...
43d85f46-00d1-4543-8203-bf30881af98d
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Reactive.Linq; using System.Linq; using System.Text; using System.Linq.Expressions; using System.Windows; namespace ReactiveUIMicro { public static class WhenAnyShim { public static IObservable<TVal> WhenAny<TSender, TTarget, TVal>(thi...
```c# using System; using System.Collections.Generic; using System.Reactive.Linq; using System.Linq; using System.Text; using System.Linq.Expressions; using System.Windows; namespace ReactiveUIMicro { public static class WhenAnyShim { public static IObservable<TVal> WhenAny<TSender, TTarget, TVal>(thi...
0ec06b0b-74fd-4420-886d-4548641a4f63
{ "language": "C#" }
```c# namespace WindowsUniversalAppDriver.InnerServer.Commands { using System.Reflection; using WindowsUniversalAppDriver.Common; internal class GetElementAttributeCommand : CommandBase { #region Public Properties public string ElementId { get; set; } #endregion #re...
```c# namespace WindowsUniversalAppDriver.InnerServer.Commands { using System; using System.Reflection; using WindowsUniversalAppDriver.Common; internal class GetElementAttributeCommand : CommandBase { #region Public Properties public string ElementId { get; set; } #endr...
db6f1a5d-77c2-4b96-b5ad-9d566ab52684
{ "language": "C#" }
```c# @using StackExchange.DataExplorer @{this.SetPageTitle("Page not found - Stack Exchange Data Explorer");} <div class="subheader"> <h2>Page Not Found</h2> </div> <div style="width:400px; float:left;"> <p>Sorry we could not find the page requested. However, we did find a picture of <a href="http://e...
```c# @using StackExchange.DataExplorer @{this.SetPageTitle("Page not found - Stack Exchange Data Explorer");} <div class="subheader"> <h2>Page Not Found</h2> </div> <div style="width:400px; float:left;"> <p>Sorry we could not find the page requested. However, we did find a picture of <a href="http://e...
179b7a80-c2c0-4347-b9de-e264e14a703c
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace JabbR.Models { public class ChatRoom { [Key] public int Key { get; set; } public DateTime LastActivity { get; set; } public DateTime? LastNudged { get; set; } p...
```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace JabbR.Models { public class ChatRoom { [Key] public int Key { get; set; } public DateTime LastActivity { get; set; } public DateTime? LastNudged { get; set; } p...
c5c0ba54-de17-49a0-a0aa-b347d9ddae67
{ "language": "C#" }
```c# using System; namespace BitCommitment { /// <summary> /// A class to perform bit commitment. It does not care what the input is; it's just a /// facility for exchanging bit commitment messages. Based on Bruce Schneier's RandBytes1-way /// function method for committing bits /// </summary> ...
```c# using System; namespace BitCommitment { /// <summary> /// A class to perform bit commitment. It does not care what the input is; it's just a /// facility for exchanging bit commitment messages. Based on Bruce Schneier's one-way /// function method for committing bits. See p.87 of `Applied Cryp...
51538c77-3259-48d2-9b95-5834eb635f93
{ "language": "C#" }
```c# using System.Collections.Generic; using System.Linq; using TeaCommerce.Api.Infrastructure.Caching; using Umbraco.Core; namespace TeaCommerce.Umbraco.Configuration.Compatibility { public static class Domain { private const string CacheKey = "Domains"; public static umbraco.cms.businesslogic.web.Domai...
```c# using System.Collections.Generic; using System.Linq; using TeaCommerce.Api.Infrastructure.Caching; using Umbraco.Core; namespace TeaCommerce.Umbraco.Configuration.Compatibility { public static class Domain { private const string CacheKey = "Domains"; public static umbraco.cms.businesslogic.web.Domai...
e3bbb3d4-57e4-452b-ae95-43d508009566
{ "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("Crosscutter")] [assembly: AssemblyD...
```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("Crosscutter")] [assembly: AssemblyD...
58c2f219-cbbb-4ca8-8a3b-9fb88b39cdf3
{ "language": "C#" }
```c# using System.Runtime.Serialization; namespace PS.Mothership.Core.Common.Rellaid.Dto { [DataContract] public class InboundQueueDistributorDto { [DataMember] public string FilterNumber { get; set; } [DataMember] public int RungCount { get; set; } } } ...
```c# using System.Runtime.Serialization; namespace PS.Mothership.Core.Common.Rellaid.Dto { [DataContract] public class InboundQueueDistributorDto { [DataMember] public string PhoneNumber { get; set; } [DataMember] public int RungCount { get; set; } } } `...
6452293b-99ca-445c-a579-5a694ed83257
{ "language": "C#" }
```c# using System.Collections.Generic; using Rocket.Unturned.Player; using RocketRegions.Util; using SDG.Unturned; using UnityEngine; namespace RocketRegions.Model.Flag.Impl { public class NoVehiclesUsageFlag : BoolFlag { public override string Description => "Allow/Disallow usage of vehicles in regi...
```c# using System.Collections.Generic; using Rocket.Unturned.Player; using RocketRegions.Util; using SDG.Unturned; using UnityEngine; namespace RocketRegions.Model.Flag.Impl { public class NoVehiclesUsageFlag : BoolFlag { public override string Description => "Allow/Disallow usage of vehicles in regi...
c0f37117-3c7d-46bc-b0e0-7df74e368b61
{ "language": "C#" }
```c# using System.Collections.Generic; using UnityEngine; namespace LiteNetLibManager { public class DefaultInterestManager : BaseInterestManager { [Tooltip("Update every ? seconds")] public float updateInterval = 1f; private float updateCountDown = 0f; private void Update()...
```c# using System.Collections.Generic; using UnityEngine; namespace LiteNetLibManager { public class DefaultInterestManager : BaseInterestManager { [Tooltip("Update every ? seconds")] public float updateInterval = 1f; private float updateCountDown = 0f; private void Update()...
f744c967-38b4-4af6-9e8c-b882ffca42c6
{ "language": "C#" }
```c# using Machine.Specifications; namespace TestingFxTests { [Subject("Booleans")] public class When_comparing_booleans { private static bool Subject; private Establish context = () => Subject = false; private Because of = () => Subject = true; private It should_be_true ...
```c# using Machine.Specifications; namespace TestingFxTests { [Subject("Mspec")] public class MspecExample { private static bool Subject; private Establish context = () => Subject = false; private Because of = () => Subject = true; private It should_be_true = () => Subjec...
dd7bfcd2-d107-47b5-9c7c-0c8f24e61c16
{ "language": "C#" }
```c# using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; namespace Tiesmaster.Dcc { public class Startup { public void Configure(IApplicationBuilder app, IHostingEnvironment env, IL...
```c# using System; using System.Net.Http; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; namespace Tiesmaster.Dcc { public class Startup { public void Configure(IApplicationBui...
30a8829a-c934-4c14-84f3-9ebc763fd1e1
{ "language": "C#" }
```c# // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using IdentityModel.Client; using IdentityServer4.IntegrationTests.Clients; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNet...
```c# // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using FluentAssertions; using IdentityModel.Client; using IdentityServer4.IntegrationTests.Clients; using Microsoft.AspNetCore.Hosting...
05d672a2-6587-43e8-9607-fc2db60a51e1
{ "language": "C#" }
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sync.IRC.MessageFilter.Filters { class DefaultFormat : FilterBase, IDanmaku, IOsu { public override void onMsg(ref MessageBase msg) { msg.user.setPerf...
```c# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sync.IRC.MessageFilter.Filters { class DefaultFormat : FilterBase, IDanmaku, IOsu { public override void onMsg(ref MessageBase msg) { msg.user.setPerf...
c1e9b6ba-4a06-4622-9dcd-b82bfa7ec05e
{ "language": "C#" }
```c# using System.Threading.Tasks; using AzureStorage.Tables; using Microsoft.WindowsAzure.Storage.Table; namespace CompetitionPlatform.Data.AzureRepositories.Project { public class ProjectFileInfoEntity : TableEntity, IProjectFileInfoData { public static string GeneratePartitionKey() { ...
```c# using System.Threading.Tasks; using AzureStorage.Tables; using Microsoft.WindowsAzure.Storage.Table; namespace CompetitionPlatform.Data.AzureRepositories.Project { public class ProjectFileInfoEntity : TableEntity, IProjectFileInfoData { public static string GeneratePartitionKey() { ...
32391c56-0d1d-448b-84ed-5e674d9ae06e
{ "language": "C#" }
```c# using NUnit.Framework; namespace Smooth.IoC.Dapper.FastCRUD.Repository.UnitOfWork.Tests.TestHelpers { public class MyDatabaseSettings : IMyDatabaseSettings { public string ConnectionString { get; } = $@"Data Source={TestContext.CurrentContext.TestDirectory}\Tests.db;Version=3;New=True;BinaryGUID...
```c# using NUnit.Framework; namespace Smooth.IoC.Dapper.FastCRUD.Repository.UnitOfWork.Tests.TestHelpers { public class MyDatabaseSettings : IMyDatabaseSettings { public string ConnectionString { get; } = $@"Data Source={TestContext.CurrentContext.TestDirectory}\IoCTests.db;Version=3;New=True;BinaryG...
72c7629a-3417-4f18-9a12-7c35296b2c8c
{ "language": "C#" }
```c# using Mono.Cecil; using Mono.Cecil.Cil; using System.Linq; namespace Injector { public class InstructionRemover { public InstructionRemover(ModuleDefinition targetModule) { _targetModule = targetModule; } ModuleDefinition _targetModule; public void R...
```c# using Mono.Cecil; using Mono.Cecil.Cil; using System.Linq; namespace Injector { public class InstructionRemover { public InstructionRemover(ModuleDefinition targetModule) { _targetModule = targetModule; } ModuleDefinition _targetModule; public void R...
77f2fe74-2d1e-4468-9aee-e6112e86e37a
{ "language": "C#" }
```c# using Microsoft.Data.Tools.Schema.Sql.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Data; using System.Data.SqlClient; using System.Transactions; namespace Daves.DeepDataDuplicator.IntegrationTests { [TestClass] public class SqlDatabaseSetup { public static re...
```c# using Microsoft.Data.Tools.Schema.Sql.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Data; using System.Data.SqlClient; using System.Transactions; namespace Daves.DeepDataDuplicator.IntegrationTests { [TestClass] public class SqlDatabaseSetup { [AssemblyInitial...
1a93b36c-2bfb-4a04-a5d4-2cdb68190d71
{ "language": "C#" }
```c# using Aspose.Words.Fields; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Fields { class InsertIncludeFieldWithoutDocumentBuilder { public static void Ru...
```c# using Aspose.Words.Fields; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Fields { class InsertIncludeFieldWithoutDocumentBuilder { public static void Ru...
8aa1fc3f-fa94-4716-b2ab-0fd26df924a6
{ "language": "C#" }
```c# using System; namespace Espera.Network { public class NetworkSong { public string Album { get; set; } public string Artist { get; set; } public TimeSpan Duration { get; set; } public string Genre { get; set; } public Guid Guid { get; set; } public Net...
```c# using System; namespace Espera.Network { public class NetworkSong { public string Album { get; set; } public string Artist { get; set; } public TimeSpan Duration { get; set; } public string Genre { get; set; } public Guid Guid { get; set; } public Net...
449bfe08-0bad-4387-9a83-f125a4c43312
{ "language": "C#" }
```c# namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common { using Base.Get; using Enums; using Objects.Basic; using Objects.Get.Shows.Common; using System.Collections.Generic; internal class TraktShowsMostPlayedRequest : TraktGetRequest<TraktPaginationListResult<TraktMostPlayedShow>, Tr...
```c# namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common { using Base; using Base.Get; using Enums; using Objects.Basic; using Objects.Get.Shows.Common; using System.Collections.Generic; internal class TraktShowsMostPlayedRequest : TraktGetRequest<TraktPaginationListResult<TraktMos...
740fed2e-a711-4edd-b36d-80efa5b6a107
{ "language": "C#" }
```c# using Orchard.Layouts.Helpers; using Orchard.Layouts.Elements; namespace Orchard.DynamicForms.Elements { public class Fieldset : Container { public override string Category { get { return "Forms"; } } public string Legend { get { return this.Retrieve(f => f.L...
```c# using Orchard.Layouts.Helpers; using Orchard.Layouts.Elements; namespace Orchard.DynamicForms.Elements { public class Fieldset : Container { public override string Category { get { return "Forms"; } } public override bool HasEditor { get { return false; } ...
aa1cad87-0528-47f0-acb2-56e8a01e4853
{ "language": "C#" }
```c# using System; using System.IO; using System.Management.Automation; namespace Microsoft.PowerShell.CrossCompatibility.Commands { internal static class CommandUtilities { private const string COMPATIBILITY_ERROR_ID = "CompatibilityAnalysisError"; public const string MODULE_PREFIX = "PSComp...
```c# using System; using System.IO; using System.Management.Automation; namespace Microsoft.PowerShell.CrossCompatibility.Commands { internal static class CommandUtilities { private const string COMPATIBILITY_ERROR_ID = "CompatibilityAnalysisError"; public const string MODULE_PREFIX = "PSComp...
e08dac05-c80c-4877-8503-195d18dca26f
{ "language": "C#" }
```c# // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Windows.UI.Xaml; namespace Microsoft.Xaml.Interactivity { /// <summary> /// A base class for behaviors, implementing the basic plumbing of IBehavio...
```c# // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using Windows.UI.Xaml; namespace Microsoft.Xaml.Interactivity { /// <summary> /// A base class for behaviors, implementing the basic plumb...
57c4d9a2-028b-4cff-a75e-069805c6d1b3
{ "language": "C#" }
```c# using Fiddler; using System; using System.ComponentModel; using System.Runtime.CompilerServices; namespace VCSJones.FiddlerCert { public class SettingsModel : INotifyPropertyChanged { private bool _checkForUpdates; private RelayCommand _saveCommand, _cancelCommand; p...
```c# using Fiddler; using System; using System.ComponentModel; using System.Runtime.CompilerServices; namespace VCSJones.FiddlerCert { public class SettingsModel : INotifyPropertyChanged { private bool _checkForUpdates; private RelayCommand _saveCommand, _cancelCommand; p...
15acb991-0280-452e-9c1a-f734157ad867
{ "language": "C#" }
```c# using System.IO; using NServiceBus.Persistence.Sql.ScriptBuilder; class SubscriptionWriter { public static void WriteSubscriptionScript(string scriptPath, BuildSqlDialect sqlDialect) { var createPath = Path.Combine(scriptPath, "Subscription_Create.sql"); File.Delete(createPath); ...
```c# using System.IO; using NServiceBus.Persistence.Sql.ScriptBuilder; class SubscriptionWriter { public static void WriteSubscriptionScript(string scriptPath, BuildSqlDialect sqlDialect) { var createPath = Path.Combine(scriptPath, "Subscription_Create.sql"); File.Delete(createPath); ...
a0ccb534-dd5b-45be-af58-189386b7446f
{ "language": "C#" }
```c# using Mono.Addins; using Mono.Addins.Description; [assembly: Addin( Id = "jzeferino.XSAddin", Namespace = "jzeferino.XSAddin", Version = "0.0.1" )] [assembly: AddinName("jzeferino.XSAddin")] [assembly: AddinCategory("IDE extensions")] [assembly: AddinDescription("This add-in let you create a Xamari...
```c# using Mono.Addins; using Mono.Addins.Description; [assembly: Addin( Id = "jzeferino.XSAddin", Namespace = "jzeferino.XSAddin", Version = "0.1" )] [assembly: AddinName("jzeferino.XSAddin")] [assembly: AddinCategory("IDE extensions")] [assembly: AddinDescription("This add-in let you create a Xamarin ...
30570a97-063b-4129-810b-bbfa500efb2f
{ "language": "C#" }
```c# using System; using System.Collections; using System.Collections.Generic; using JSIL.Meta; using JSIL.Proxy; namespace JSIL.Proxies { [JSProxy( new[] { "System.Collections.ArrayList", "System.Collections.Hashtable", "System.Collections.Generic.List`1", ...
```c# using System; using System.Collections; using System.Collections.Generic; using JSIL.Meta; using JSIL.Proxy; namespace JSIL.Proxies { [JSProxy( new[] { "System.Collections.ArrayList", "System.Collections.Hashtable", "System.Collections.Generic.List`1", ...
0efba6a3-45fb-4162-b36e-04bd671f4223
{ "language": "C#" }
```c# using System.Linq; using NUnit.Framework; using SevenDigital.Api.Schema.Tags; namespace SevenDigital.Api.Wrapper.Integration.Tests.EndpointTests.TagsEndpoint { [TestFixture] public class ArtistTagsTests { [Test] public void Can_hit_endpoint() { ArtistTags tags = Api<ArtistTags>.Create .With...
```c# using System.Linq; using NUnit.Framework; using SevenDigital.Api.Schema.Tags; namespace SevenDigital.Api.Wrapper.Integration.Tests.EndpointTests.TagsEndpoint { [TestFixture] public class ArtistTagsTests { [Test] public void Can_hit_endpoint() { ArtistTags tags = Api<ArtistTags>.Create .With...
29724003-ad1d-48bb-99ff-d3329b37ffae
{ "language": "C#" }
```c# using Photosphere.Mapping.Static; namespace Photosphere.Mapping.Extensions { public static class MappingObjectExtensions { /// <summary> Map from source to existent object target</summary> public static void MapTo<TSource, TTarget>(this TSource source, TTarget target) where T...
```c# using Photosphere.Mapping.Static; namespace Photosphere.Mapping.Extensions { public static class MappingObjectExtensions { /// <summary> Map from source to existent object target</summary> public static void MapTo<TSource, TTarget>(this TSource source, TTarget target) where T...
8b22acdd-cbba-4839-b1a0-aac852f98207
{ "language": "C#" }
```c# using FluentValidation; using SFA.DAS.ProviderApprenticeshipsService.Web.Models; namespace SFA.DAS.ProviderApprenticeshipsService.Web.Validation { public sealed class ApprenticeshipViewModelValidator : AbstractValidator<ApprenticeshipViewModel> { public ApprenticeshipViewModelValidator() ...
```c# using FluentValidation; using SFA.DAS.ProviderApprenticeshipsService.Web.Models; namespace SFA.DAS.ProviderApprenticeshipsService.Web.Validation { public sealed class ApprenticeshipViewModelValidator : AbstractValidator<ApprenticeshipViewModel> { public ApprenticeshipViewModelValidator() ...
a0813fca-ba5f-461a-b2ac-22346adbae6b
{ "language": "C#" }
```c# using System; namespace Toggl.Phoebe { public static class Build { #warning Please fill in build settings and make git assume this file is unchanged. #region Phoebe build config public static readonly Uri ApiUrl = new Uri ("https://toggl.com/api/"); public static readonly Uri Rep...
```c# using System; namespace Toggl.Phoebe { public static class Build { #warning Please fill in build settings and make git assume this file is unchanged. #region Phoebe build config public static readonly Uri ApiUrl = new Uri ("https://toggl.com/api/"); public static readonly Uri Rep...
8d931658-9c30-4c07-9bf0-cdec2a6e0fea
{ "language": "C#" }
```c# using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace GRA.Data.Model { public class AvatarLayer : Abstract.BaseDbEntity { [Required] public int SiteId { get; set; } [Required] [MaxLength(255)] public string Name { get; set; } ...
```c# using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace GRA.Data.Model { public class AvatarLayer : Abstract.BaseDbEntity { [Required] public int SiteId { get; set; } [Required] [MaxLeng...
5baead60-16fb-4cad-961d-b9aa073f4fb2
{ "language": "C#" }
```c# using System; using Amazon.SQS.Model; using JustEat.Testing; using NSubstitute; using NUnit.Framework; namespace AwsTools.UnitTests.SqsNotificationListener { public class WhenThereAreExceptionsInSqsCalling : BaseQueuePollingTest { private int _sqsCallCounter; protected override void Give...
```c# using System; using Amazon.SQS.Model; using JustEat.Testing; using NSubstitute; using NUnit.Framework; namespace AwsTools.UnitTests.SqsNotificationListener { public class WhenThereAreExceptionsInSqsCalling : BaseQueuePollingTest { private int _sqsCallCounter; protected override void Give...
24b83563-ca29-4bb0-86b1-3b56bd34a97e
{ "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.Collections.Generic; using System.Linq; using JetBrains.Annotations; using osu.Framework.Extensions.LocalisationExtensions; using osu.Fr...
```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.Collections.Generic; using System.Linq; using JetBrains.Annotations; using osu.Framework.Extensions.LocalisationExtensions; using osu.Fr...
e4b74041-c12f-41bb-bb1d-78cb37adc8f2
{ "language": "C#" }
```c# using Microsoft.AspNetCore.Mvc; namespace SFA.DAS.CommitmentsV2.Api.Types.Requests { public class GetApprenticeshipRequest { [FromQuery] public long? AccountId { get; set; } [FromQuery] public long? ProviderId { get; set; } [FromQuery] public int PageNumbe...
```c#  namespace SFA.DAS.CommitmentsV2.Api.Types.Requests { public class GetApprenticeshipRequest { public long? AccountId { get; set; } public long? ProviderId { get; set; } public int PageNumber { get; set; } public int PageItemCount { get; set; } public string SortFie...
fa7099de-63f0-49f5-a864-c8d85bf1a25c
{ "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 UnityEngine; /// <summary> /// RectTransforms do not scale 3d objects (such as unit cubes) to fit within their bounds. /// This helper class will apply ...
```c# // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Utilities { /// <summary> /// RectTransforms do not scale 3d objects (such as unit cubes) ...
c990649f-1af2-454e-9659-ee6750df8a52
{ "language": "C#" }
```c# using System; using System.Linq; using System.Threading.Tasks; using ArangoDB.Client; using EventSourced.Net.ReadModel.Users.Internal.Documents; namespace EventSourced.Net.ReadModel.Users.Internal.Queries { public class UserDocumentByContactChallengeCorrelationId : IQuery<Task<UserDocument>> { public Gu...
```c# using System; using System.Linq; using System.Threading.Tasks; using ArangoDB.Client; using EventSourced.Net.ReadModel.Users.Internal.Documents; namespace EventSourced.Net.ReadModel.Users.Internal.Queries { public class UserDocumentByContactChallengeCorrelationId : IQuery<Task<UserDocument>> { public Gu...
d9c8828c-b107-4d35-8137-a571debcc10a
{ "language": "C#" }
```c# using Newtonsoft.Json; namespace SyncTrayzor.Syncthing.ApiClient { [JsonConverter(typeof(DefaultingStringEnumConverter))] public enum EventType { Unknown, Starting, StartupComplete, Ping, DeviceDiscovered, DeviceConnected, DeviceDisconnected, ...
```c# using Newtonsoft.Json; namespace SyncTrayzor.Syncthing.ApiClient { [JsonConverter(typeof(DefaultingStringEnumConverter))] public enum EventType { Unknown, Starting, StartupComplete, Ping, DeviceDiscovered, DeviceConnected, DeviceDisconnected, ...
f6a397fd-20c3-4ad8-beae-f596ff7bbcf1
{ "language": "C#" }
```c# namespace Gigobyte.Mockaroo.Fields { public partial class JSONArrayField { public int Min { get; set; } = 1; public int Max { get; set; } = 5; public override string ToJson() { return $"{base.BaseJson()},\"minItems\":{Min},\"maxItems\":{Max}}}"; } ...
```c# namespace Gigobyte.Mockaroo.Fields { public partial class JSONArrayField { public int Min { get { return _min; } set { _min = value.Between(0, 100); } } public int Max { get { return _max; } set { _max = value.Betwee...
40f9624b-c387-4181-9973-abfddb3da9b2
{ "language": "C#" }
```c# @model Badges.Models.Shared.ExperienceViewModel <div id="work-container" class="container work"> <div class="row"> @foreach (var work in @Model.SupportingWorks) { @* <div class="col-md-4"> *@ <div class="@work.Type work-item-box"> @Html.Partial(...
```c# @model Badges.Models.Shared.ExperienceViewModel <div id="work-container" class="container work"> <div class="row"> @foreach (var work in @Model.SupportingWorks) { @* <div class="col-md-4"> *@ <div class="@work.Type work-item-box"> @Html.Partial(...
ba39b467-eb7d-4833-b129-f284b8866355
{ "language": "C#" }
```c# // // ShuffleExtensions.cs // // Copyright (c) 2017 Takashi OTSUKI // // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php // using System; using System.Collections.Generic; using System.Linq; namespace AIWolf.Lib { #if JHELP /// <summary> /// IEnumerabl...
```c# // // ShuffleExtensions.cs // // Copyright (c) 2017 Takashi OTSUKI // // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php // using System; using System.Collections.Generic; using System.Linq; namespace AIWolf.Lib { #if JHELP /// <summary> /// IEnumerabl...
32aabb04-36c5-49b2-8b4a-2ec452c6785d
{ "language": "C#" }
```c# #region -- License Terms -- // // MessagePack for CLI // // Copyright (C) 2010 FUJIWARA, Yusuke // // 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.apac...
```c# #region -- License Terms -- // // MessagePack for CLI // // Copyright (C) 2010 FUJIWARA, Yusuke // // 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.apac...
8e3b7094-a764-4953-a9c5-c04cdf0cb0c7
{ "language": "C#" }
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Eco; // 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: ...
```c# using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Eco; // 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: ...