doc_id stringlengths 36 36 | metadata dict | input stringlengths 28 4.3k | output stringlengths 11 5.45k |
|---|---|---|---|
6b798028-c4f0-4c32-8fbc-5816afdd789f | {
"language": "C#"
} | ```c#
@model SFA.DAS.EmployerAccounts.Web.ViewModels.AccountDashboardViewModel
<h3 class="das-panel__heading">@Model.AccountViewModel.Providers.First().Name</h3>
<dl class="das-definition-list das-definition-list--inline das-definition-list--muted govuk-!-font-size-16">
<dt class="das-definition-... | ```c#
@model SFA.DAS.EmployerAccounts.Web.ViewModels.AccountDashboardViewModel
<h3 class="das-panel__heading">@Model.AccountViewModel.Providers.First().Name</h3>
<dl class="das-definition-list das-definition-list--inline das-definition-list--muted govuk-!-font-size-16">
<dt class="das-definition-list__title">UK ... |
75b4ac89-ffe4-4213-ac56-708b2c1d57c8 | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
using System.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Console;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Slp.Evi.Storage;
using Slp.Evi.Storage.Bootstrap;
using Slp.Evi.Storage.Database;
using Slp.Evi.Storage.Database.... | ```c#
using System;
using System.Collections.Generic;
using System.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Console;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Slp.Evi.Storage;
using Slp.Evi.Storage.Bootstrap;
using Slp.Evi.Storage.Database;
using Slp.Evi.Sto... |
1e88e7f4-5c08-4fd6-8761-0e34cb2bcbab | {
"language": "C#"
} | ```c#
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DiffbotClientTest.cs" company="KriaSoft LLC">
// Copyright © 2014 Konstantin Tarkus, KriaSoft LLC. See LICENSE.txt
// </copyright>
// ------------------------------------... | ```c#
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DiffbotClientTest.cs" company="KriaSoft LLC">
// Copyright © 2014 Konstantin Tarkus, KriaSoft LLC. See LICENSE.txt
// </copyright>
// ------------------------------------... |
4294b612-5e3f-452e-9033-7c9adb627a44 | {
"language": "C#"
} | ```c#
using System;
using System.Numerics;
using ValveResourceFormat.Serialization;
namespace GUI.Types.ParticleRenderer
{
public interface IVectorProvider
{
Vector3 NextVector();
}
public class LiteralVectorProvider : IVectorProvider
{
private readonly Vector3 value;
publ... | ```c#
using System;
using System.Numerics;
using ValveResourceFormat.Serialization;
namespace GUI.Types.ParticleRenderer
{
public interface IVectorProvider
{
Vector3 NextVector();
}
public class LiteralVectorProvider : IVectorProvider
{
private readonly Vector3 value;
publ... |
63b5cf18-6277-4240-8129-301c43eab633 | {
"language": "C#"
} | ```c#
using System;
using System.Drawing;
using System.Windows.Forms;
namespace vuwall_motion {
public partial class TransparentForm : Form {
public TransparentForm() {
InitializeComponent();
DoubleBuffered = true;
ShowInTaskbar = false;
}
private void ... | ```c#
using System;
using System.Drawing;
using System.Windows.Forms;
namespace vuwall_motion {
public partial class TransparentForm : Form {
private Pen pen = new Pen(Color.Red, 5);
public TransparentForm() {
InitializeComponent();
DoubleBuffered = true;
SetSt... |
1247dc57-5c92-4207-9591-c68da1b49f68 | {
"language": "C#"
} | ```c#
using System.ComponentModel.DataAnnotations;
namespace LibrarySystem.Models
{
public class Subject
{
public int Id { get; set; }
[Required]
[MaxLength(50)]
public string Name { get; set; }
}
}```
Add journals and self relations. | ```c#
// <copyright file="Subject.cs" company="YAGNI">
// All rights reserved.
// </copyright>
// <summary>Holds implementation of Book model.</summary>
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace LibrarySystem.Models
{
... |
69ccdc7e-379c-46cc-86bc-16bc8906c280 | {
"language": "C#"
} | ```c#
using System;
using System.ComponentModel.Composition;
using NQuery.Syntax;
namespace NQuery.Authoring.QuickInfo
{
[Export(typeof(IQuickInfoModelProvider))]
internal sealed class ExpressionSelectColumnQuickInfoModelProvider : QuickInfoModelProvider<ExpressionSelectColumnSyntax>
{
protected ... | ```c#
using System;
using System.ComponentModel.Composition;
using NQuery.Syntax;
namespace NQuery.Authoring.QuickInfo
{
[Export(typeof(IQuickInfoModelProvider))]
internal sealed class ExpressionSelectColumnQuickInfoModelProvider : QuickInfoModelProvider<ExpressionSelectColumnSyntax>
{
protected ... |
f051b176-1576-4996-92a5-474c3fd4e873 | {
"language": "C#"
} | ```c#
using System;
namespace SparklrLib.Objects.Responses.Work
{
public class Username : IEquatable<Username>
{
public string username { get; set; }
public string displayname { get; set; }
public int id { get; set; }
public override string ToString()
{
ret... | ```c#
using System;
namespace SparklrLib.Objects.Responses.Work
{
public class Username : IEquatable<Username>
{
public string username { get; set; }
public string displayname { get; set; }
public int id { get; set; }
public override string ToString()
{
ret... |
6c5fbe59-378c-4bab-8ad5-f5c6c81cc0cf | {
"language": "C#"
} | ```c#
using System;
using System.Globalization;
namespace MultiMiner.Win.Extensions
{
public static class DateTimeExtensions
{
public static string ToReallyShortDateString(this DateTime dateTime)
{
//short date no year
string shortDateString = dateTime.ToShortDateString... | ```c#
using System;
using System.Globalization;
namespace MultiMiner.Win.Extensions
{
public static class DateTimeExtensions
{
private static string ToReallyShortDateString(this DateTime dateTime)
{
//short date no year
string shortDateString = dateTime.ToShortDateStrin... |
4fa2e9d4-cc3c-4089-bc87-ce4d7095d78b | {
"language": "C#"
} | ```c#
using WootzJs.Web;
namespace WootzJs.Mvc.Views
{
public class AutocompleteTextBox<T> : Control
{
private Control content;
private Control overlay;
private Element contentNode;
private Element overlayContainer;
private DropDownAlignment alignment;
private T... | ```c#
using WootzJs.Web;
namespace WootzJs.Mvc.Views
{
public class AutocompleteTextBox<T> : Control
{
private Control content;
private Control overlay;
private Element contentNode;
private Element overlayContainer;
private DropDownAlignment alignment;
private T... |
78f2e77a-ebdd-417a-9d19-d3b201084bbc | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Disposables;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Support.V4.App;
using Android.Views;
using Android.Widget;
using ReactiveUI.Routing.Android;
u... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Disposables;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Support.V4.App;
using Android.Views;
using Android.Widget;
using ReactiveUI.Routing.Android;
u... |
c0a18e5d-6704-48b5-83bf-d9d3a297ceac | {
"language": "C#"
} | ```c#
namespace TraktApiSharp.Requests.WithoutOAuth.Movies.Common
{
using Base.Get;
using Objects.Basic;
using Objects.Get.Movies;
internal class TraktMoviesPopularRequest : TraktGetRequest<TraktPaginationListResult<TraktMovie>, TraktMovie>
{
internal TraktMoviesPopularRequest(TraktClient ... | ```c#
namespace TraktApiSharp.Requests.WithoutOAuth.Movies.Common
{
using Base;
using Base.Get;
using Objects.Basic;
using Objects.Get.Movies;
internal class TraktMoviesPopularRequest : TraktGetRequest<TraktPaginationListResult<TraktMovie>, TraktMovie>
{
internal TraktMoviesPopularRequ... |
052de503-4326-4091-b7ac-36480069a697 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Radosgw.AdminAPI
{
public class User
{
[JsonProperty(PropertyName = "display_name")]
public string DisplayName { get; set; }
[JsonProperty(PropertyName = "user_id")]
public string UserId { g... | ```c#
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Radosgw.AdminAPI
{
public class User
{
[JsonProperty(PropertyName = "display_name")]
public string DisplayName { get; set; }
[JsonProperty(PropertyName = "user_id")]
public string UserId { g... |
54bb74a5-4326-49d7-873e-4df8d5db8524 | {
"language": "C#"
} | ```c#
using Jbe.NewsReader.Applications.ViewModels;
using Jbe.NewsReader.Applications.Views;
namespace Jbe.NewsReader.Presentation.DesignData
{
public class SampleFeedItemListViewModel : FeedItemListViewModel
{
public SampleFeedItemListViewModel() : base(new MockFeedItemListView(), null)
... | ```c#
using Jbe.NewsReader.Applications.ViewModels;
using Jbe.NewsReader.Applications.Views;
namespace Jbe.NewsReader.Presentation.DesignData
{
public class SampleFeedItemListViewModel : FeedItemListViewModel
{
public SampleFeedItemListViewModel() : base(new MockFeedItemListView(), null)
... |
2878ee7b-24f5-418a-8b32-838821ddaad6 | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osuTK;
using osuTK.Graphics;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using os... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osuTK;
using osuTK.Graphics;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using os... |
4b419206-1129-4bc4-b602-ea9d56fa1c7e | {
"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... |
284bcbfa-66a3-4178-beb7-0b3d4d240776 | {
"language": "C#"
} | ```c#
using Glimpse;
using Microsoft.Framework.ConfigurationModel;
using Microsoft.Framework.DependencyInjection;
using System.Collections.Generic;
namespace Glimpse
{
public class GlimpseServices
{
public static IEnumerable<IServiceDescriptor> GetDefaultServices()
{
return GetDefa... | ```c#
using Glimpse;
using Microsoft.Framework.ConfigurationModel;
using Microsoft.Framework.DependencyInjection;
using System.Collections.Generic;
namespace Glimpse
{
public class GlimpseServices
{
public static IEnumerable<IServiceDescriptor> GetDefaultServices()
{
return GetDefa... |
e9c61d8a-a27d-40b3-b6a9-fe74914647e2 | {
"language": "C#"
} | ```c#
using ArduinoUploader;
namespace ArduinoSketchUploader
{
/// <summary>
/// The ArduinoLibCSharp SketchUploader can upload a compiled (Intel) HEX file directly to an attached Arduino.
/// </summary>
internal class Program
{
private static void Main(string[] args)
{
... | ```c#
using ArduinoUploader;
namespace ArduinoSketchUploader
{
/// <summary>
/// The ArduinoSketchUploader can upload a compiled (Intel) HEX file directly to an attached Arduino.
/// </summary>
internal class Program
{
private static void Main(string[] args)
{
var comma... |
a11eefe0-3762-4d7a-b3f8-d471088f4403 | {
"language": "C#"
} | ```c#
using System;
using System.Runtime.InteropServices;
using PolarisServer.Models;
namespace PolarisServer.Models
{
public struct PacketHeader
{
public UInt32 Size;
public byte Type;
public byte Subtype;
public byte Flags1;
public byte Flags2;
public PacketH... | ```c#
using System;
using System.Runtime.InteropServices;
using PolarisServer.Models;
namespace PolarisServer.Models
{
public struct PacketHeader
{
public UInt32 Size;
public byte Type;
public byte Subtype;
public byte Flags1;
public byte Flags2;
public PacketH... |
59a8c4a1-dffc-4743-8b12-6b315d289f90 | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Provision.AspNet.Identity.PlainSql")]
[assembly: AssemblyDescription("ASP.NET Identity provider for SQL databases")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Provision Data Systems Inc.")]
[assembly... | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Provision.AspNet.Identity.PlainSql")]
[assembly: AssemblyDescription("ASP.NET Identity provider for SQL databases")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Provision Data Systems Inc.")]
[assembly... |
400aa2e1-8d7d-4e86-b3d2-c374c3e1b8fa | {
"language": "C#"
} | ```c#
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#if WINDOWS_UWP
using Microsoft.MixedReality.Toolkit.Windows.Utilities;
using System;
using System.Collections.Generic;
using UnityEngine.XR.WSA.Input;
using W... | ```c#
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#if WINDOWS_UWP
using Microsoft.MixedReality.Toolkit.Windows.Utilities;
using System;
using System.Collections.Generic;
using UnityEngine.XR.WSA.Input;
using W... |
07494d07-4a96-4c8f-a775-f2cd3ab60f4b | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hl7.Fhir.Model;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Spark.Engine.Extensions;
namespace Spark.Engine.Test.Extensions
{
[TestClass]
public class OperationOutcomeI... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hl7.Fhir.Model;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Spark.Engine.Extensions;
namespace Spark.Engine.Test.Extensions
{
[TestClass]
public class OperationOutcomeI... |
d68b206c-51e2-438e-8d56-6892a331c127 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Globalization;
namespace Arkivverket.Arkade.Core.Addml.Definitions.DataTypes
{
public class DateDataType : DataType
{
private readonly string _dateTimeFormat;
private readonly string _fieldFormat;
public DateDataType(s... | ```c#
using System;
using System.Collections.Generic;
using System.Globalization;
namespace Arkivverket.Arkade.Core.Addml.Definitions.DataTypes
{
public class DateDataType : DataType
{
private readonly string _dateTimeFormat;
private readonly string _fieldFormat;
public DateDataType(s... |
ed527985-0e28-4451-a5a3-a5c6de27f98c | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Audio.Sample;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
using osu.Game.Audio;
namesp... | ```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.Collections.Generic;
using osu.Framework.Audio.Sample;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textu... |
e171f040-66f0-46ed-bfa3-23f5f7767c86 | {
"language": "C#"
} | ```c#
@model AtomicChessPuzzles.HttpErrors.HttpError
<h1>@Model.StatusCode - @Model.StatusText</h1>
<p>@Model.Description</p>```
Add a HTML title to error view | ```c#
@model AtomicChessPuzzles.HttpErrors.HttpError
@section Title{@Model.StatusCode @Model.StatusText}
<h1>@Model.StatusCode - @Model.StatusText</h1>
<p>@Model.Description</p>``` |
43aa1a68-db89-4f7a-b4a5-4e60eeb296e2 | {
"language": "C#"
} | ```c#
using System;
using System.IO;
namespace Flirper
{
public class ImageListEntry
{
public string uri;
public string title;
public string author;
public string extraInfo;
public ImageListEntry (string uri, string title, string author, string extraInfo)
{
... | ```c#
using System;
using System.IO;
namespace Flirper
{
public class ImageListEntry
{
public string uri;
public string title;
public string author;
public string extraInfo;
public ImageListEntry (string uri, string title, string author, string extraInfo)
{
... |
f7f17b9b-1428-4236-8e35-5a0079e0244e | {
"language": "C#"
} | ```c#
using System;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World, I was created by my father, Bigsby, in an unidentified evironment!");
}
}
}
```
Add Bigsby Gates was here | ```c#
using System;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World, I was created by my father, Bigsby, in an unidentified evironment!");
Console.WriteLine("Bigsby Gates was here!");
... |
35475a2e-0f27-496c-88a0-5a0cb3964e8b | {
"language": "C#"
} | ```c#
using System.Data.Entity;
using System.Threading.Tasks;
using JoinRpg.Web.Helpers;
using Microsoft.Owin.Security.OAuth;
namespace JoinRpg.Web
{
internal class ApiSignInProvider : OAuthAuthorizationServerProvider
{
private ApplicationUserManager Manager { get; }
public ApiSignInProvider(ApplicationU... | ```c#
using System.Threading.Tasks;
using JoinRpg.Web.Helpers;
using Microsoft.Owin.Security.OAuth;
namespace JoinRpg.Web
{
internal class ApiSignInProvider : OAuthAuthorizationServerProvider
{
private ApplicationUserManager Manager { get; }
public ApiSignInProvider(ApplicationUserManager manager)
{
... |
9cb17e93-5262-4319-b1b7-5788fb2eb591 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Interactivity;
using MahApps.Metro.Controls;
namespace MahApps.Metro.Behaviours
{
public class GlowWindowBehavior : Behavior<Window>
{
private GlowWindow left, right, ... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Interactivity;
using MahApps.Metro.Controls;
namespace MahApps.Metro.Behaviours
{
public class GlowWindowBehavior : Behavior<Window>
{
private GlowWindow left, right, ... |
f104656d-6455-4291-b7b3-eb73e2f735dc | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
namespace WebPlayer.Mobile
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender,... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
namespace WebPlayer.Mobile
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender,... |
3aed1b3a-c56a-4697-a151-cdcb2b235751 | {
"language": "C#"
} | ```c#
using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Support.UI;
using NUnit.Framework;
namespace SeleniumTasksProject1._1
{
[TestFixture]
public class InternetExplore... | ```c#
using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Support.UI;
using NUnit.Framework;
namespace SeleniumTasksProject1._1
{
[TestFixture]
public class InternetExplore... |
a6fb8a96-c82d-4b27-9e0d-326e2d475cb8 | {
"language": "C#"
} | ```c#
/* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, 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:... | ```c#
/* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, 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:... |
ab21d451-680b-4623-9c61-275265daee98 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
/// <summary>
/// Payload that tells the server we've finsihed loading/bursting/warping.
/// We should have sent a warp request to the se... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
/// <summary>
/// Payload that tells the server we've finsihed loading/bursting/warping.
/// We should have sent a warp request to the se... |
776d44ec-dac9-4f19-8d21-cae5325a5d8b | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVers... | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVers... |
50a31614-9571-43e3-a080-3c3bc5bdc33d | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics.UserInterface;
using osu.Game.Online.Rooms;
namespace osu.Game.... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics.UserInterface;
using osu.Game.Online.Rooms;
namespace osu.Game.... |
61657bc7-00bf-45d5-a608-a1b772467dc0 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
public class Enumerator
{
public Enumerator() { }
public int Current { get; private set; } = 10;
public bool MoveNext()
{
Current--;
return Current > 0;
}
public void Dispose()
{
Console.WriteLine("Hi!");
}... | ```c#
using System;
using System.Collections.Generic;
public class Enumerator
{
public Enumerator() { }
public int Current { get; private set; } = 10;
public bool MoveNext()
{
Current--;
return Current > 0;
}
public void Dispose()
{
Console.WriteLine("Hi!");
}... |
3b9ef198-2568-4ed0-a318-76991e0ee875 | {
"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.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Osu.Objects
{
/// <... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Osu.Objects
{
/// <summary>
/... |
fd5f70f5-13a3-4113-80f6-e00cb7cf24a8 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using SFA.DAS.Payments.AcceptanceTests.Contexts;
using SFA.DAS.Payments.AcceptanceTests.ReferenceDataModels;
using SFA.DAS.Payments.AcceptanceTests.ResultsDataModels;
namespace SFA.DAS.Payments.AcceptanceTests.Assertions.TransactionTypeRu... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using SFA.DAS.Payments.AcceptanceTests.Contexts;
using SFA.DAS.Payments.AcceptanceTests.ReferenceDataModels;
using SFA.DAS.Payments.AcceptanceTests.ResultsDataModels;
namespace SFA.DAS.Payments.AcceptanceTests.Assertions.TransactionTypeRu... |
b7192f2f-f722-4ca0-8ae7-13062920f7f2 | {
"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.Threading;
#nullable enable
namespace osu.Framework.Threading
{
/// <summary>
/// A synchronisation context which posts all continuatiuons to... | ```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.Diagnostics;
using System.Threading;
#nullable enable
namespace osu.Framework.Threading
{
/// <summary>
/// A synchronisation context which p... |
3947e612-75a5-4c35-8c92-71952f77672d | {
"language": "C#"
} | ```c#
namespace Boilerplate.Templates.Test
{
using System;
using System.IO;
using System.Threading.Tasks;
public static class TempDirectoryExtensions
{
public static async Task<Project> DotnetNew(
this TempDirectory tempDirectory,
string templateName,
str... | ```c#
namespace Boilerplate.Templates.Test
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
public static class TempDirectoryExtensions
{
public static async Task<Project> DotnetNew(
this TempDirectory te... |
94bbcf29-08b5-457f-b14c-915bb507107c | {
"language": "C#"
} | ```c#
using System;
using System.IO;
namespace MiniCover.HitServices
{
public static class HitService
{
public static MethodContext EnterMethod(
string hitsPath,
string assemblyName,
string className,
string methodName)
{
return new M... | ```c#
using System;
using System.Collections.Concurrent;
using System.IO;
namespace MiniCover.HitServices
{
public static class HitService
{
public static MethodContext EnterMethod(
string hitsPath,
string assemblyName,
string className,
string methodNam... |
fe54d887-dc72-41ea-a081-296df455ddd4 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CompetitionPlatform.Data.BlogCategory
{
public class BlogCategoriesRepository : IBlogCategoriesRepository
{
public List<string> GetCategories()
{
return new List<string>... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CompetitionPlatform.Data.BlogCategory
{
public class BlogCategoriesRepository : IBlogCategoriesRepository
{
public List<string> GetCategories()
{
return new List<string>... |
494861e7-f601-4953-9e64-09d6262708a7 | {
"language": "C#"
} | ```c#
using System;
namespace LibGit2Sharp.Core
{
/// <summary>
/// Provides helper methods to help converting between Epoch (unix timestamp) and <see cref="DateTimeOffset"/>.
/// </summary>
internal static class Epoch
{
private static readonly DateTimeOffset epochDateTimeOffset = new Date... | ```c#
using System;
namespace LibGit2Sharp.Core
{
/// <summary>
/// Provides helper methods to help converting between Epoch (unix timestamp) and <see cref="DateTimeOffset"/>.
/// </summary>
internal static class Epoch
{
/// <summary>
/// Builds a <see cref="DateTimeOffset"/> from ... |
3fb07bbb-07a5-46a0-8891-0517a0f4d72a | {
"language": "C#"
} | ```c#
using System;
namespace Views
{
[System.ComponentModel.ToolboxItem(true)]
public partial class BooleanRadioButton : Gtk.Bin, IEditable
{
String[] labels;
bool isEditable;
public BooleanRadioButton ()
{
this.Build ();
}
public String[] Labe... | ```c#
using System;
namespace Views
{
[System.ComponentModel.ToolboxItem(true)]
public partial class BooleanRadioButton : Gtk.Bin, IEditable
{
String[] labels;
bool isEditable;
public BooleanRadioButton ()
{
this.Build ();
}
public String[] Labe... |
0e7f3b96-1664-485d-af33-8e175e3e236e | {
"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 : IQuestionRespository
{
private readonly TrappistDbContext _db... | ```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 : IQuestionRespository
{
private readonly TrappistDbContext _db... |
a7bea8d4-1478-4db5-8522-a10779d5d908 | {
"language": "C#"
} | ```c#
<article id="cookies-disabled-panel" class="panel-inverse">
<h1>Cookies are disabled</h1>
<section>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi u... | ```c#
<article id="cookies-disabled-panel" class="panel-inverse">
<h1>@Text.Content.CookiesDisabledHeading</h1>
<section>
@Text.Content.CookiesDisabledDetails
</section>
</br>
</br>
</article>
``` |
2fb12a0e-602c-4cc9-9360-5b655188eee3 | {
"language": "C#"
} | ```c#
using System;
using System.IO;
namespace GitHub.Unity
{
class DefaultEnvironment : IEnvironment
{
public string GetSpecialFolder(Environment.SpecialFolder folder)
{
return Environment.GetFolderPath(folder);
}
public string ExpandEnvironmentVariables(string nam... | ```c#
using System;
using System.IO;
namespace GitHub.Unity
{
class DefaultEnvironment : IEnvironment
{
public string GetSpecialFolder(Environment.SpecialFolder folder)
{
return Environment.GetFolderPath(folder);
}
public string ExpandEnvironmentVariables(string nam... |
c35cd754-a5ea-4675-b644-d76c03fb4f69 | {
"language": "C#"
} | ```c#
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Microsoft.ApplicationInsights.AspNetCore.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8ae... | ```c#
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: InternalsVisibleTo("Microsoft.ApplicationInsights.AspNetCore.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53f... |
5a1d1b26-12ca-48d0-b4ba-07a44e43f042 | {
"language": "C#"
} | ```c#
namespace Stripe.Issuing
{
using System.Collections.Generic;
using Newtonsoft.Json;
public class AuthorizationControls : StripeEntity
{
[JsonProperty("allowed_categories")]
public List<string> AllowedCategories { get; set; }
[JsonProperty("blocked_categories")]
pu... | ```c#
namespace Stripe.Issuing
{
using System.Collections.Generic;
using Newtonsoft.Json;
public class AuthorizationControls : StripeEntity
{
[JsonProperty("allowed_categories")]
public List<string> AllowedCategories { get; set; }
[JsonProperty("blocked_categories")]
pu... |
a9d22b11-49e3-4f79-ab2b-bbb1c3fe3f66 | {
"language": "C#"
} | ```c#
@using System.Web.Mvc.Html
@using Sitecore.Feature.FAQ.Repositories
@using Sitecore.Feature.FAQ
@using Sitecore.Data.Items
@model Sitecore.Mvc.Presentation.RenderingModel
@{
var elements = GroupMemberRepository.Get(Model.Item).ToArray();
int i = 1;
}
@foreach (Item item in elements)
{
var ID = Guid... | ```c#
@using System.Web.Mvc.Html
@using Sitecore.Feature.FAQ.Repositories
@using Sitecore.Feature.FAQ
@using Sitecore.Data.Items
@model Sitecore.Mvc.Presentation.RenderingModel
@{
var elements = GroupMemberRepository.Get(Model.Item).ToArray();
}
@foreach (Item item in elements)
{
var ID = Guid.NewGuid().ToSt... |
69ae5912-7e11-458a-9d53-7c04a1de8972 | {
"language": "C#"
} | ```c#
using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Integration.Wcf")]
[assembly: AssemblyDescription("")]
```
Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the... | ```c#
using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Integration.Wcf")]
``` |
c7d769ad-8cf7-4328-a5f8-bbd5a9bf2228 | {
"language": "C#"
} | ```c#
using System;
using NUnit.Framework;
using DevTyr.Gullap;
namespace DevTyr.Gullap.Tests.With_Converter.For_SetParser
{
[TestFixture]
public class When_argument_is_null
{
[Test]
public void Should_throw_argument_exception ()
{
var converter = new Converter (new ConverterOptions {
SitePath = "any"... | ```c#
using System;
using NUnit.Framework;
using DevTyr.Gullap;
namespace DevTyr.Gullap.Tests.With_Converter.For_SetParser
{
[TestFixture]
public class When_argument_is_null
{
[Test]
public void Should_throw_argument_null_exception ()
{
var converter = new Converter (new ConverterOptions {
SitePath = ... |
fef4d734-2eac-4815-bb4e-f0dd3a29e717 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Avalonia.Data.Converters;
using Avalonia.Media;
using AvalonStudio.Extensibility.Theme;
using WalletWasabi.Models;
namespace WalletWasabi.Gui.Converters
{
public class StatusColorConvertor : IValueConverter
{
... | ```c#
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Avalonia.Data.Converters;
using Avalonia.Media;
using AvalonStudio.Extensibility.Theme;
using WalletWasabi.Models;
namespace WalletWasabi.Gui.Converters
{
public class StatusColorConvertor : IValueConverter
{
... |
f0553a18-d59a-4747-9efa-746cd15b4cde | {
"language": "C#"
} | ```c#
// <copyright file="TextFilePropertyStoreOptions.cs" company="Fubar Development Junker">
// Copyright (c) Fubar Development Junker. All rights reserved.
// </copyright>
namespace FubarDev.WebDavServer.Props.Store.TextFile
{
public class TextFilePropertyStoreOptions
{
public int EstimatedCost { g... | ```c#
// <copyright file="TextFilePropertyStoreOptions.cs" company="Fubar Development Junker">
// Copyright (c) Fubar Development Junker. All rights reserved.
// </copyright>
namespace FubarDev.WebDavServer.Props.Store.TextFile
{
public class TextFilePropertyStoreOptions
{
public int EstimatedCost { g... |
5d82bf3a-88f2-4c4f-b3e3-fff9250d6cd9 | {
"language": "C#"
} | ```c#
using Umbraco.Core.Models.PublishedContent;
namespace Umbraco.Core.PropertyEditors.ValueConverters
{
[PropertyValueType(typeof(decimal))]
[PropertyValueCache(PropertyCacheValue.All, PropertyCacheLevel.Content)]
public class DecimalValueConverter : PropertyValueConverterBase
{
public over... | ```c#
using System.Globalization;
using Umbraco.Core.Models.PublishedContent;
namespace Umbraco.Core.PropertyEditors.ValueConverters
{
[PropertyValueType(typeof(decimal))]
[PropertyValueCache(PropertyCacheValue.All, PropertyCacheLevel.Content)]
public class DecimalValueConverter : PropertyValueConverterBa... |
bcfcf1e0-95a6-4342-aef9-07c150b3f22f | {
"language": "C#"
} | ```c#
namespace TAUtil.Gdi.Bitmap
{
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using TAUtil.Gdi.Palette;
/// <summary>
/// Serializes a 32-bit Bitmap instance into raw 8-bit indexed color data.
/// The mapping from color to index is done according to the... | ```c#
namespace TAUtil.Gdi.Bitmap
{
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using TAUtil.Gdi.Palette;
/// <summary>
/// Serializes a 32-bit Bitmap instance into raw 8-bit indexed color data.
/// The mapping from color to index is done according to the... |
82984b09-0e9b-4e2b-8183-2abdebfa26a3 | {
"language": "C#"
} | ```c#
using System;
using System.Threading.Tasks;
using FilterLists.Agent.AppSettings;
using FilterLists.Agent.Extensions;
using FilterLists.Agent.Features.Lists;
using FilterLists.Agent.Features.Urls;
using FilterLists.Agent.Features.Urls.Models.DataFileUrls;
using MediatR;
using Microsoft.Extensions.DependencyInject... | ```c#
using System;
using System.Threading.Tasks;
using FilterLists.Agent.Extensions;
using FilterLists.Agent.Features.Lists;
using FilterLists.Agent.Features.Urls;
using MediatR;
using Microsoft.Extensions.DependencyInjection;
namespace FilterLists.Agent
{
public static class Program
{
private static... |
3c5fb21b-48fd-4eea-9a69-b673e5d20a94 | {
"language": "C#"
} | ```c#
using System.ComponentModel.DataAnnotations;
using Tgstation.Server.Api.Models;
namespace Tgstation.Server.Host.Models
{
/// <inheritdoc />
public sealed class RepositorySettings : Api.Models.Internal.RepositorySettings
{
/// <summary>
/// The row Id
/// </summary>
public long Id { get; set; }
///... | ```c#
using System.ComponentModel.DataAnnotations;
using Tgstation.Server.Api.Models;
namespace Tgstation.Server.Host.Models
{
/// <inheritdoc />
public sealed class RepositorySettings : Api.Models.Internal.RepositorySettings
{
/// <summary>
/// The row Id
/// </summary>
public long Id { get; set; }
/// ... |
af2cfb80-69bc-43be-98ea-2c799cfb98bd | {
"language": "C#"
} | ```c#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if !BUILD_GENERATED_VERSION
[assembly: AssemblyCompany("Microsoft Open Techn... | ```c#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if !BUILD_GENERATED_VERSION
[assembly: AssemblyCompany("Microsoft Open Techn... |
ad632ada-ceae-4e39-b5e1-70b3636543ae | {
"language": "C#"
} | ```c#
using UnityEngine;
using System.Collections;
public class Birdy : MonoBehaviour
{
public bool IsAlive;
public float DropDeadTime = 0.5f;
public MoveForward Mover;
public ScriptSwitch FlyToFallSwitch;
public FallDown FallDown;
public MonoBehaviour[] Feeders;
// Use this for initialization
void Star... | ```c#
using UnityEngine;
using System.Collections;
public class Birdy : MonoBehaviour
{
public bool IsAlive;
public float DropDeadTime = 0.5f;
public MoveForward Mover;
public ScriptSwitch FlyToFallSwitch;
public FallDown FallDown;
public MonoBehaviour[] Feeders;
// Use this for initialization
void Star... |
bdc852b6-250f-43de-9aa5-6293a02c621d | {
"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;
namespace BrightstarDB.ReadWriteBenchmark
{
internal class Program
{
private static void Main(string[] args)
{
var op... | ```c#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BrightstarDB.ReadWriteBenchmark
{
internal class Program
{
public static TraceListener BrightstarListener;
private stat... |
a9065b1d-db5c-4a86-9b1c-d0f169a5c798 | {
"language": "C#"
} | ```c#
using System;
using System.Linq;
using System.Reflection;
using StructureMap.Graph;
using StructureMap.Pipeline;
namespace StructureMap
{
internal class AspNetConstructorSelector : IConstructorSelector
{
// ASP.NET expects registered services to be considered when selecting a ctor, SM doesn't by ... | ```c#
using System;
using System.Linq;
using System.Reflection;
using StructureMap.Graph;
using StructureMap.Pipeline;
namespace StructureMap
{
internal class AspNetConstructorSelector : IConstructorSelector
{
// ASP.NET expects registered services to be considered when selecting a ctor, SM doesn't by ... |
3a8b657b-b237-4c7a-8f84-ed8b0a2e6f94 | {
"language": "C#"
} | ```c#
// Copyright (c) 2015 SIL International
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
using System;
using System.Linq;
using MongoDB.Bson;
using MongoDB.Driver;
using MongoDB.Driver.Core.Clusters;
namespace LfMerge
{
public class LanguageDepotProject
{
public Langua... | ```c#
// Copyright (c) 2015 SIL International
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
using System;
using System.Linq;
using MongoDB.Bson;
using MongoDB.Driver;
using MongoDB.Driver.Core.Clusters;
namespace LfMerge
{
public class LanguageDepotProject
{
public Langua... |
093cf2fd-dc0b-4882-b968-0d09d329430d | {
"language": "C#"
} | ```c#
using LiteNetLib;
using LiteNetLib.Utils;
using LiteNetLibManager;
public static class LiteNetLibPacketSender
{
public static readonly NetDataWriter Writer = new NetDataWriter();
public static void SendPacket(NetDataWriter writer, SendOptions options, NetPeer peer, short msgType, System.Action<NetDataW... | ```c#
using LiteNetLib;
using LiteNetLib.Utils;
using LiteNetLibManager;
public static class LiteNetLibPacketSender
{
public static readonly NetDataWriter Writer = new NetDataWriter();
public static void SendPacket(NetDataWriter writer, SendOptions options, NetPeer peer, short msgType, System.Action<NetDataW... |
2bcfe959-a371-4d4c-b54a-4fbad9e04375 | {
"language": "C#"
} | ```c#
using System;
using System.Net;
using System.Net.Http;
using Knapcode.SocketToMe.Http;
using Knapcode.SocketToMe.Socks;
namespace Knapcode.SocketToMe.Sandbox
{
public class Program
{
private static void Main()
{
var endpoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 9150... | ```c#
using System;
using System.Net;
using System.Net.Http;
using Knapcode.SocketToMe.Http;
using Knapcode.SocketToMe.Socks;
namespace Knapcode.SocketToMe.Sandbox
{
public class Program
{
private static void Main()
{
var endpoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 9150... |
d8b8b602-0c91-4e3d-8511-0215222a4df0 | {
"language": "C#"
} | ```c#
using System;
using System.Diagnostics.Tracing;
namespace tracelogging
{
public sealed class MySource : EventSource
{
MySource()
: base(EventSourceSettings.EtwSelfDescribingEventFormat)
{
}
public static MySource Logger = new MySource();
}
class Prog... | ```c#
using System;
using System.Diagnostics.Tracing;
namespace tracelogging
{
public sealed class MySource : EventSource
{
MySource()
: base(EventSourceSettings.EtwSelfDescribingEventFormat)
{
}
[Event(1)]
public void TestEventMethod(int i, string s)
... |
ee8eb333-1d26-4b86-ab4e-4938937f076a | {
"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.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Framework.Tex... | ```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.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Framework.Tex... |
888ee85b-97d7-46a4-8d9e-aab76f2eec22 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lezen.Core.Entity
{
public class Document
{
public Document()
{
this.Authors = new HashSet<Author>();
}
public int ID { get; set; }
public string Title { g... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lezen.Core.Entity
{
public class Document
{
public Document()
{
this.Authors = new HashSet<Author>();
}
public int ID { get; set; }
public string Title { g... |
87e18a4e-2fd0-48bf-9294-f989a8c6584e | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CardsAgainstIRC3.Game.Bots
{
[Bot("rando")]
public class Rando : IBot
{
public GameManager Manager
{
get;
private set;
}
... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CardsAgainstIRC3.Game.Bots
{
[Bot("rando")]
public class Rando : IBot
{
public GameManager Manager
{
get;
private set;
}
... |
f95e0a53-afac-489b-bc3d-93ef2d0f2484 | {
"language": "C#"
} | ```c#
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace Subtle.UI.Controls
{
public class ImdbTextBox : TextBox
{
// ReSharper disable once InconsistentNaming
private const int WM_PASTE = 0x0302;
private static readonly Regex ImdbRegex = new Regex(@"tt(\d{7})... | ```c#
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace Subtle.UI.Controls
{
public class ImdbTextBox : TextBox
{
// ReSharper disable once InconsistentNaming
private const int WM_PASTE = 0x0302;
private static readonly Regex ImdbRegex = new Regex(@"tt(\d{7})... |
1acd3701-cd24-4115-ae36-84dfc96881a6 | {
"language": "C#"
} | ```c#
@model JoinRpg.Web.Models.CheckIn.CheckInIndexViewModel
@{
ViewBag.Title = "Регистрация";
}
<h2>Регистрация</h2>
@using (Html.BeginForm())
{
@Html.HiddenFor(model => model.ProjectId)
@Html.AntiForgeryToken()
@Html.SearchableDropdownFor(model => model.ClaimId, Model.Claims.Select(
claim =>
new Imp... | ```c#
@model JoinRpg.Web.Models.CheckIn.CheckInIndexViewModel
@{
ViewBag.Title = "Регистрация";
}
<h2>Регистрация</h2>
@using (Html.BeginForm())
{
@Html.HiddenFor(model => model.ProjectId)
@Html.AntiForgeryToken()
@Html.SearchableDropdownFor(model => model.ClaimId, Model.Claims.Select(
claim =>
new Imp... |
26af8753-d6f2-49d7-8dd1-42a4598e75da | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Net;
using System.Threading;
namespace Syndll2
{
public class SynelServer : IDisposable
{
private readonly IConnection _connection;
private bool _disposed;
private SynelServer(IConnection connection)
{
... | ```c#
using System;
using System.Collections.Generic;
using System.Net;
using System.Threading;
namespace Syndll2
{
public class SynelServer : IDisposable
{
private readonly IConnection _connection;
private bool _disposed;
private SynelServer(IConnection connection)
{
... |
c2f333b0-fb9e-494c-9c65-4e1e34c9fcc9 | {
"language": "C#"
} | ```c#
namespace ForecastPCL.Test
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ForecastIOPortable;
using NUnit.Framework;
[TestFixture]
public class LanguageTests
{
[Test]
public vo... | ```c#
namespace ForecastPCL.Test
{
using System;
using System.Configuration;
using ForecastIOPortable;
using NUnit.Framework;
[TestFixture]
public class LanguageTests
{
// These coordinates came from the Forecast API documentation,
// and should return forecasts with all ... |
6e20e97a-fa99-44c2-81fc-fd4c6266984f | {
"language": "C#"
} | ```c#
using System;
using System.Diagnostics;
using Basics.Algorithms.Sorts;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Basics.Algorithms.Tests
{
[TestClass]
public class SortingPerformanceTests
{
private const int size = 10000;
private class SortInfo
{
... | ```c#
using System;
using System.Diagnostics;
using System.Linq;
using Basics.Algorithms.Sorts;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Basics.Algorithms.Tests
{
[TestClass]
public class SortingPerformanceTests
{
private const int size = 1000000;
private class SortIn... |
0111b861-5905-4523-87b9-09e08d4307b9 | {
"language": "C#"
} | ```c#
using System;
using System.Linq;
using Android.App;
using Android.OS;
using Android.Views;
using Toggl.Joey.UI.Adapters;
namespace Toggl.Joey.UI.Fragments
{
public class RecentTimeEntriesListFragment : ListFragment
{
public override void OnViewCreated (View view, Bundle savedInstanceState)
... | ```c#
using System;
using System.Linq;
using Android.App;
using Android.OS;
using Android.Views;
using Android.Widget;
using Toggl.Joey.UI.Adapters;
namespace Toggl.Joey.UI.Fragments
{
public class RecentTimeEntriesListFragment : ListFragment
{
public override void OnViewCreated (View view, Bundle sav... |
394fe7e6-b69c-4c6a-b1d5-418f66af8fcb | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
namespace PrepareLanding.Filters
{
public enum FilterHeaviness
{
Light = 0,
Medium = 1,
Heavy = 2
}
public interface ITileFilter
{
string SubjectThingDef { get; }
string RunningDescription { get; }
... | ```c#
using System;
using System.Collections.Generic;
namespace PrepareLanding.Filters
{
public enum FilterHeaviness
{
Light = 0,
Medium = 1,
Heavy = 2
}
public interface ITileFilter
{
string SubjectThingDef { get; }
string RunningDescription { get; }
... |
b77399fd-b81d-486a-b691-90c889e3f88b | {
"language": "C#"
} | ```c#
using Microsoft.ServiceFabric.Actors;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SoCreate.ServiceFabric.PubSub.Events;
using SoCreate.ServiceFabric.PubSub.State;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace SoCreate.ServiceFabric.PubSub.Tests
{
[TestClass]
pub... | ```c#
using Microsoft.ServiceFabric.Actors;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SoCreate.ServiceFabric.PubSub.Events;
using SoCreate.ServiceFabric.PubSub.State;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace SoCreate.ServiceFabric.PubSub.Tests
{
[TestClass]
... |
49108617-7314-4337-acfd-d84788c0f1cd | {
"language": "C#"
} | ```c#
using System;
using System.Collections;
using NHibernate.Type;
namespace NHibernate.Cfg
{
[Serializable]
internal class EmptyInterceptor : IInterceptor
{
public EmptyInterceptor()
{
}
public void OnDelete( object entity, object id, object[ ] state, string[ ] propertyNames, IType[ ] types )
{
}
... | ```c#
using System;
using System.Collections;
using NHibernate.Type;
namespace NHibernate.Cfg
{
[Serializable]
public class EmptyInterceptor : IInterceptor
{
public virtual void OnDelete( object entity, object id, object[ ] state, string[ ] propertyNames, IType[ ] types )
{
}
public virtual bool OnFlushDir... |
a8164c97-a2de-4dd1-99f2-250a50bbb052 | {
"language": "C#"
} | ```c#
<div ng-app="GVA.Manage" ng-controller="ConfirmRegistrationController">
<div class="manage-area centered">
<h2>
Thank you for registering!
</h2>
<p class="text-centered">
You should receive an Email confirmation shortly.
</p>
<p class="text-cent... | ```c#
<div ng-app="GVA.Manage" ng-controller="ConfirmRegistrationController">
<div class="manage-area centered">
<h2>
Thank you for registering!
</h2>
<p class="text-centered">
You should receive an Email confirmation shortly.
</p>
<p class="text-cent... |
8c78c0d5-ea65-4728-86e6-571e831696f8 | {
"language": "C#"
} | ```c#
namespace Glimpse.Agent.AspNet.Mvc.Messages
{
public class BeforeActionMessage : IActionRouteFoundMessage
{
public string ActionId { get; set; }
public string DisplayName { get; set; }
public RouteData RouteData { get; set; }
public string ActionName { get; set; }
... | ```c#
namespace Glimpse.Agent.AspNet.Mvc.Messages
{
public class BeforeActionMessage : IActionRouteFoundMessage
{
public string ActionId { get; set; }
public string DisplayName { get; set; }
public string ActionName { get; set; }
public string ControllerName { get; set; }
... |
e0cdc7e0-08c5-496a-bc0c-caa348f4afc1 | {
"language": "C#"
} | ```c#
<h1>Counter</h1>
<p>Current count: <MessageComponent Message=@currentCount.ToString() /></p>
<button @onclick(IncrementCount)>Click me</button>
@functions {
int currentCount = 0;
void IncrementCount()
{
currentCount++;
}
}
```
Cover case-insensitive child component parameter names in E... | ```c#
<h1>Counter</h1>
<!-- Note: passing 'Message' parameter with lowercase name to show it's case insensitive -->
<p>Current count: <MessageComponent message=@currentCount.ToString() /></p>
<button @onclick(IncrementCount)>Click me</button>
@functions {
int currentCount = 0;
void IncrementCount()
{
... |
065f5a96-0e56-4046-816f-19c14071d10a | {
"language": "C#"
} | ```c#
using Moq;
using SFA.DAS.EAS.TestCommon.DbCleanup;
using SFA.DAS.EAS.TestCommon.DependencyResolution;
using SFA.DAS.EAS.Web;
using SFA.DAS.EAS.Web.Authentication;
using SFA.DAS.Messaging;
using StructureMap;
using TechTalk.SpecFlow;
namespace SFA.DAS.EAS.Transactions.AcceptanceTests.Steps.CommonSteps
{
[Bin... | ```c#
using Moq;
using SFA.DAS.EAS.TestCommon.DbCleanup;
using SFA.DAS.EAS.TestCommon.DependencyResolution;
using SFA.DAS.EAS.Web;
using SFA.DAS.EAS.Web.Authentication;
using SFA.DAS.Messaging;
using StructureMap;
using TechTalk.SpecFlow;
namespace SFA.DAS.EAS.Transactions.AcceptanceTests.Steps.CommonSteps
{
[Bin... |
451015a9-5534-4849-a250-8b289da3a3dc | {
"language": "C#"
} | ```c#
namespace SEEK.AdPostingApi.Client.Models
{
public enum AdditionalPropertyType
{
ResidentsOnly = 1
}
}
```
Add graduate flag as additional property | ```c#
namespace SEEK.AdPostingApi.Client.Models
{
public enum AdditionalPropertyType
{
ResidentsOnly = 1,
Graduate
}
}``` |
b5f7dd35-56e9-4f66-bb34-bba80987bc93 | {
"language": "C#"
} | ```c#
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Integration.Mef")]
[assembly: AssemblyDescription("Autofac MEF Integration")]
[assembly: InternalsVisibleTo("Autofac.Tests.Integration.Mef, PublicKey=00240... | ```c#
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Integration.Mef")]
[assembly: InternalsVisibleTo("Autofac.Tests.Integration.Mef, PublicKey=00240000048000009400000006020000002400005253413100040000010001008728425885ef385e... |
c8e7fe14-ab88-45b1-8f7c-1c4695c5e7cf | {
"language": "C#"
} | ```c#
using Template10.Mvvm;
using Template10.Services.SettingsService;
namespace Zermelo.App.UWP.Services
{
public class SettingsService : BindableBase, ISettingsService
{
ISettingsHelper _helper;
public SettingsService(ISettingsHelper settingsHelper)
{
_helper = settings... | ```c#
using Template10.Mvvm;
using Template10.Services.SettingsService;
using Windows.Storage;
namespace Zermelo.App.UWP.Services
{
public class SettingsService : BindableBase, ISettingsService
{
ApplicationDataContainer _settings;
public SettingsService()
{
_settings = Ap... |
0d45ac9c-905d-4b3b-8529-b03b2619f481 | {
"language": "C#"
} | ```c#
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
namespace ServiceStack.IntroSpec.Services
{
using System.Linq;
using DTO;
public class ApiSpecMe... | ```c#
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
namespace ServiceStack.IntroSpec.Services
{
using System.Linq;
using DTO;
public class ApiSpecMe... |
691565a4-6577-4c40-9b98-447fa8cff03c | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StrangerData.Utils
{
internal static class RandomValues
{
public static object ForColumn(TableColumnInfo columnInfo)
{
switch (columnInfo.ColumnType)
... | ```c#
using System;
namespace StrangerData.Utils
{
internal static class RandomValues
{
public static object ForColumn(TableColumnInfo columnInfo)
{
switch (columnInfo.ColumnType)
{
case ColumnType.String:
// generates a random string... |
421f6629-8c80-44a1-a93d-eb2a1d2c026b | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using NDesk.Options;
namespace LessMsi.Cli
{
internal class OpenGuiCommand : LessMsiCommand
{
public override void Run(List<string> args)
{
if (args.Count < 2)
throw new OptionException("You must specify the ... | ```c#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using NDesk.Options;
namespace LessMsi.Cli
{
internal class OpenGuiCommand : LessMsiCommand
{
public override void Run(List<string> args)
{
if (args.Count < 2)
throw new OptionException("You must specify the ... |
d3523b78-3aaf-4ba7-9d90-f2156b6434d2 | {
"language": "C#"
} | ```c#
// Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Collections.Generic;
using System.Linq;
using Nuke.Common.IO;
namespace Nuke.Common.Execution
{
[AttributeUsage(AttributeTargets.Class)]
inter... | ```c#
// Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Collections.Generic;
using System.Linq;
using Nuke.Common.IO;
using static Nuke.Common.Constants;
namespace Nuke.Common.Execution
{
[AttributeUsag... |
3c74c709-8844-41e0-be53-8fa7a77b1fb1 | {
"language": "C#"
} | ```c#
using NUnit.Framework;
using Shouldly.DifferenceHighlighting2;
using System;
namespace Shouldly.Tests.InternalTests
{
[TestFixture]
public static class StringDiffHighlighterTests
{
private static IStringDifferenceHighlighter _sut;
[SetUp]
public static void Setup()
{
... | ```c#
using NUnit.Framework;
using Shouldly.DifferenceHighlighting2;
using System;
namespace Shouldly.Tests.InternalTests
{
[TestFixture]
public static class StringDiffHighlighterTests
{
private static IStringDifferenceHighlighter _sut;
[SetUp]
public static void Setup()
{
... |
7611c715-367b-4478-905e-8ba2ab2ff0ca | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tracer;
namespace Tester
{
class SingleThreadTest : ITest
{
private ITracer tracer = new Tracer.Tracer();
public void Run()
{
tracer.StartTrace();
... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tracer;
using System.Threading;
namespace Tester
{
class SingleThreadTest : ITest
{
private ITracer tracer = new Tracer.Tracer();
public void Run()
{
... |
b6b5cf51-5693-4f69-a71c-81b563d06ecc | {
"language": "C#"
} | ```c#
using System.IO;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Taxjar.Tests
{
public class TaxjarFixture
{
public static string GetJSON(string fixturePath)
{
using (StreamReader file = File.OpenText(Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "..... | ```c#
using System.IO;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Taxjar.Tests
{
public class TaxjarFixture
{
public static string GetJSON(string fixturePath)
{
using (StreamReader file = File.OpenText(Path.Combine("../../../", "Fixtures", fixturePath)))
... |
3491f75a-bac0-47ad-ab79-f65dbc933cc5 | {
"language": "C#"
} | ```c#
using System.Threading.Tasks;
namespace ForecastPCL.Test
{
using System;
using System.Configuration;
using ForecastIOPortable;
using NUnit.Framework;
[TestFixture]
public class LanguageTests
{
// These coordinates came from the Forecast API documentation,
// and sh... | ```c#
using System.Threading.Tasks;
namespace ForecastPCL.Test
{
using System;
using System.Configuration;
using ForecastIOPortable;
using NUnit.Framework;
[TestFixture]
public class LanguageTests
{
// These coordinates came from the Forecast API documentation,
// and sh... |
9a869ad1-fd2e-483c-807c-70389c0f3ab2 | {
"language": "C#"
} | ```c#
using Microsoft.Extensions.DependencyInjection;
using ISTS.Application.Rooms;
using ISTS.Application.Studios;
using ISTS.Domain.Rooms;
using ISTS.Domain.Studios;
using ISTS.Infrastructure.Repository;
namespace ISTS.Api
{
public static class DependencyInjectionConfiguration
{
public static void C... | ```c#
using Microsoft.Extensions.DependencyInjection;
using ISTS.Application.Rooms;
using ISTS.Application.Schedules;
using ISTS.Application.Studios;
using ISTS.Domain.Rooms;
using ISTS.Domain.Schedules;
using ISTS.Domain.Studios;
using ISTS.Infrastructure.Repository;
namespace ISTS.Api
{
public static class Depe... |
42cfb339-b777-462e-9915-a8ee582eb346 | {
"language": "C#"
} | ```c#
using UnityEditor;
using UnityEngine;
namespace Alensia.Core.UI
{
public static class ComponentFactory
{
[MenuItem("GameObject/UI/Alensia/Button", false, 10)]
public static Button CreateButton(MenuCommand command)
{
var button = Button.CreateInstance();
Ga... | ```c#
using System;
using UnityEditor;
using UnityEngine;
namespace Alensia.Core.UI
{
public static class ComponentFactory
{
[MenuItem("GameObject/UI/Alensia/Button", false, 10)]
public static Button CreateButton(MenuCommand command) => CreateComponent(command, Button.CreateInstance);
... |
e9d5f52a-4166-4ddb-950d-659d8f152409 | {
"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... |
1529ff73-c7f3-479a-9e88-7251c59838e9 | {
"language": "C#"
} | ```c#
<section class="container">
<div id="our-jumbotron" class="jumbotron">
<h1>Welcome!</h1>
<p>We are Sweet Water Revolver. This is our website. Please look around and check out our...</p>
<p><a class="btn btn-primary btn-lg" role="button">... showtimes.</a></p>
</div>
</section>
... | ```c#
<section class="container">
<div id="our-jumbotron" class="jumbotron">
<h1>Welcome!</h1>
<p>We are Sweet Water Revolver. This is our website. Please look around.</p>
</div>
</section>
``` |
84b2dc43-c0df-4e0e-9685-08f64a9434b8 | {
"language": "C#"
} | ```c#
// Copyright 2016 Google Inc. All Rights Reserved.
// Licensed under the Apache License Version 2.0.
using Google.Apis.Dns.v1;
using Google.PowerShell.Common;
namespace Google.PowerShell.Dns
{
/// <summary>
/// Base class for Google DNS-based cmdlets.
/// </summary>
public abstract class GcdC... | ```c#
// Copyright 2016 Google Inc. All Rights Reserved.
// Licensed under the Apache License Version 2.0.
using Google.Apis.Dns.v1;
using Google.PowerShell.Common;
namespace Google.PowerShell.Dns
{
/// <summary>
/// Base class for Google DNS-based cmdlets.
/// </summary>
public abstract class GcdC... |
0836c116-26a0-44fd-8445-d61e45d21bc2 | {
"language": "C#"
} | ```c#
// Copyright 2015-2017 Directive Games Limited - All Rights Reserved
using UnrealBuildTool;
public class RapidJson : ModuleRules
{
public RapidJson(TargetInfo Target)
{
bFasterWithoutUnity = true;
PCHUsage = PCHUsageMode.NoSharedPCHs;
PublicIncludePaths.AddRange(
... | ```c#
// Copyright 2015-2017 Directive Games Limited - All Rights Reserved
using UnrealBuildTool;
public class RapidJson : ModuleRules
{
public RapidJson(TargetInfo Target)
{
bFasterWithoutUnity = true;
PCHUsage = PCHUsageMode.NoSharedPCHs;
PublicIncludePaths.AddRange(
... |
868318e0-3d67-4956-a9b3-ba46c56e1a9f | {
"language": "C#"
} | ```c#
using KeePassLib;
using System;
using System.Linq;
namespace HaveIBeenPwned
{
public static class PwEntryExtension
{
public static DateTime GetPasswordLastModified(this PwEntry entry)
{
if(entry.History != null && entry.History.Any())
{
var sortedE... | ```c#
using KeePass.Plugins;
using KeePassLib;
using System;
using System.Linq;
namespace HaveIBeenPwned
{
public static class PwEntryExtension
{
public static DateTime GetPasswordLastModified(this PwEntry entry)
{
if(entry.History != null && entry.History.Any())
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.