doc_id stringlengths 36 36 | metadata dict | input stringlengths 28 4.3k | output stringlengths 11 5.45k |
|---|---|---|---|
53be2ee9-0200-4adc-ac6d-a4593747ea59 | {
"language": "C#"
} | ```c#
using System;
using System.Linq;
using Nuke.Common;
using Nuke.Common.Git;
using Nuke.Common.Tools.GitVersion;
using Nuke.Core;
using static Nuke.Common.Tools.DotNet.DotNetTasks;
using static Nuke.Core.IO.FileSystemTasks;
using static Nuke.Core.IO.PathConstruction;
using static Nuke.Core.EnvironmentInfo;
class ... | ```c#
using System;
using System.Linq;
using Nuke.Common;
using Nuke.Common.Git;
using Nuke.Common.Tools.GitVersion;
using Nuke.Core;
using static Nuke.Common.Tools.DotNet.DotNetTasks;
using static Nuke.Core.IO.FileSystemTasks;
using static Nuke.Core.IO.PathConstruction;
using static Nuke.Core.EnvironmentInfo;
class ... |
d349e795-cd08-4e1b-9439-189a0d14efb6 | {
"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;
namespace osu.Framework.Configuration
{
public abstract class BindableNumberWithPrecision<T> : BindableNumber<T>
wher... | ```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;
namespace osu.Framework.Configuration
{
public abstract class BindableNumberWithPrecision<T> : BindableNumber<T>
wher... |
3c1617d3-c0ca-4305-b334-295f572ef81b | {
"language": "C#"
} | ```c#
using System;
using ServiceStack.ServiceHost;
using ServiceStack.FluentValidation;
using ServiceStack.ServiceInterface.ServiceModel;
using ServiceStack.Validation;
using ServiceStack.WebHost.Endpoints;
using ServiceStack.WebHost.Endpoints.Extensions;
namespace ServiceStack.ServiceInterface.Validation
{... | ```c#
using System;
using ServiceStack.ServiceHost;
using ServiceStack.FluentValidation;
using ServiceStack.ServiceInterface.ServiceModel;
using ServiceStack.Validation;
using ServiceStack.WebHost.Endpoints;
using ServiceStack.WebHost.Endpoints.Extensions;
namespace ServiceStack.ServiceInterface.Validation
{... |
573ad26a-0465-4a95-a64b-ff845f2f94df | {
"language": "C#"
} | ```c#
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
namespace Codenesium.DataConversionExtensions
{
public static class HTTPResponseHelper
{
public static ... | ```c#
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
namespace Codenesium.DataConversionExtensions
{
public static class HTTPResponseHelper
{
public static ... |
2b9bd0a3-fa5a-4499-af55-a9fc81b3e1fb | {
"language": "C#"
} | ```c#
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.CompilerServices;
namespace System
{
// MathF emulation on platforms which don't su... | ```c#
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.CompilerServices;
namespace System
{
// MathF emulation on platforms which don't su... |
671fb243-1f85-49b9-814c-0f6865dfca99 | {
"language": "C#"
} | ```c#
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Spacecraft : MonoBehaviour {
}
SYNTAX ERROR :D```
Fix the syntax error Travis works :D | ```c#
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Spacecraft : MonoBehaviour {
}``` |
038ec6b1-cb12-4e93-87b0-954483daab80 | {
"language": "C#"
} | ```c#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SkillTree_Manager : MonoBehaviour
{
// Use this for initialization
void Start ()
{
}
// Update is called once per frame
void Update ()
{
}
}
```
Update XP in skills page | ```c#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SkillTree_Manager : MonoBehaviour
{
public GameObject amountXPObject;
Text amountXPText;
// Use this for initialization
void Start ()
{
amountXPText = amountXPObject.GetCompo... |
97692a87-447c-46eb-9b54-2a0ea6fcf850 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace IceBuilder
{
public interface UpgradeProgressCallback
{
bool Canceled {... | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace IceBuilder
{
public interface UpgradeProgressCallback
{
bool Canceled {... |
46c0e26a-7d7f-4e26-a785-2d83095f4b5b | {
"language": "C#"
} | ```c#
// stylecop.header
using Strinken.Parser;
namespace Strinken.Filters
{
/// <summary>
/// This filter takes some couples of arguments, and replace each occurrence of each first argument by the second.
/// </summary>
public class ReplaceFilter : IFilter
{
/// <inheritdoc/>
publ... | ```c#
// stylecop.header
using Strinken.Parser;
namespace Strinken.Filters
{
/// <summary>
/// This filter takes some couples of arguments, and replace each occurrence of each first argument by the second.
/// </summary>
internal class ReplaceFilter : IFilter
{
/// <inheritdoc/>
pu... |
50a639f6-d799-4f6c-8837-8476b021a879 | {
"language": "C#"
} | ```c#
namespace NuGet.VisualStudio {
public class PowerShellScripts {
public static readonly string Install = "install.ps1";
public static readonly string Uninstall = "uninstall.ps1";
public static readonly string Init = "init.ps1";
}
}
```
Make PowerShellScripts class static pe... | ```c#
namespace NuGet.VisualStudio {
public static class PowerShellScripts {
public static readonly string Install = "install.ps1";
public static readonly string Uninstall = "uninstall.ps1";
public static readonly string Init = "init.ps1";
}
}
``` |
3dff10a5-d1a1-4f4a-aafd-32210ce187f8 | {
"language": "C#"
} | ```c#
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Microsoft Azure Traffic Manager Management... | ```c#
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Microsoft Azure Traffic Manager Management... |
eabdd729-8492-494f-8ad0-e0f190a92c88 | {
"language": "C#"
} | ```c#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Rulesets.Mania.Judgements
{
public class HoldNoteTickJudgement : ManiaJudgement
{
}
}```
Add hold note tick judgement. | ```c#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
namespace osu.Game.Rulesets.Mania.Judgements
{
public class HoldNoteTickJudgement : ManiaJudgement
{
public override int NumericResultForSco... |
97daa566-36ac-4a2a-a0c8-5048ba4a3981 | {
"language": "C#"
} | ```c#
namespace TraktApiSharp.Tests.Experimental.Requests.Calendars.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Calendars.OAuth;
using TraktApiSharp.Objects.Get.Calendars;
[TestClass]
public class TraktCalendarUs... | ```c#
namespace TraktApiSharp.Tests.Experimental.Requests.Calendars.OAuth
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Experimental.Requests.Calendars.OAuth;
using TraktApiSharp.Objects.Get.Calendars;
using TraktApiSharp.Requests;
[TestClass... |
f94ec2e5-e70e-400c-bfe2-d96e82471a31 | {
"language": "C#"
} | ```c#
using System;
using Agiil.Domain.Auth;
using Agiil.Web.Models.Shared;
using CSF.ORM;
namespace Agiil.Web.Services.Auth
{
public class LoginStateReader
{
readonly IIdentityReader userReader;
readonly IEntityData data;
public LoginStateModel GetLoginState()
{
v... | ```c#
using System;
using Agiil.Domain.Auth;
using Agiil.Web.Models.Shared;
using CSF.ORM;
namespace Agiil.Web.Services.Auth
{
public class LoginStateReader
{
readonly IIdentityReader userReader;
readonly IEntityData data;
public LoginStateModel GetLoginState()
{
v... |
ffdef1ee-bbde-484f-b702-1720d45b6c10 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Wheeels
{
static class Program
{
/// <summary>
/// Point d'entrée principal de l'application.
/// </summary>
[STAThread]
static void Main()
{
... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Wheeels
{
static class Program
{
/// <summary>
/// Point d'entrée principal de l'application.
/// </summary>
[STAThread]
static void Main()
{
... |
63a050aa-7f29-4077-9c21-02cc078700bd | {
"language": "C#"
} | ```c#
<div class="sticky-notes">
</div>```
Add sticky note 'GC Handicapping System' | ```c#
<div class="sticky-notes">
<div class="sticky-note">
<i class="pin"></i>
<div class="content green">
<h1>
GC Handicapping System
</h1>
<p>
New <a href="/disciplines/golf-croquet/resources">GC Handicapping System</a> comes int... |
068a7006-ec8b-4782-bc75-dbfe1d610911 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WebApp.Tests
{
static class WebAppUrl
{
public const string EnsureBasicUser = "/app/ensureBasicUser";
public const string StartLoginUri = "/.webfront/c/startLogi... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WebApp.Tests
{
static class WebAppUrl
{
public const string EnsureBasicUser = "/ensureBasicUser";
public const string StartLoginUri = "/.webfront/c/startLogin";
... |
93239534-8148-4a7d-ad05-9974e1679bb4 | {
"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;
// GitHub 20040: operand ordering bug with GT_INDEX_ADDR
// Requires minopts/tier0 to repro
na... | ```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;
using System.Runtime.CompilerServices;
// GitHub 20040: operand ordering bug with GT_INDEX_ADDR... |
a300ca2b-c285-4fbb-b813-f6a7c86ce76d | {
"language": "C#"
} | ```c#
using Data;
using Ninject;
using Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace LCAToolAPI.API
{
public class FragmentTraversalController : ApiController
{
[Inject]
private readonly IF... | ```c#
using Data;
using Ninject;
using Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace LCAToolAPI.API
{
public class FragmentTraversalController : ApiController
{
[Inject]
private readonly IF... |
c51aa0eb-0050-46f4-a6de-656c6085644b | {
"language": "C#"
} | ```c#
#if !NO_UNITY
using System;
using UnityEngine;
using UnityEngine.Events;
namespace FullSerializer {
partial class fsConverterRegistrar {
// Disable the converter for the time being. Unity's JsonUtility API cannot be called from
// within a C# ISerializationCallbackReceiver callback.
... | ```c#
#if !NO_UNITY && UNITY_5_3_OR_NEWER
using System;
using UnityEngine;
using UnityEngine.Events;
namespace FullSerializer {
partial class fsConverterRegistrar {
// Disable the converter for the time being. Unity's JsonUtility API cannot be called from
// within a C# ISerializationCallbackReceiv... |
d367532d-2ca9-4dae-9a45-3bfbdc4fc0dc | {
"language": "C#"
} | ```c#
using Newtonsoft.Json;
using System.Net.Http;
using System.Threading.Tasks;
namespace Line.Messaging
{
internal static class HttpResponseMessageExtensions
{
/// <summary>
/// Validate the response status.
/// </summary>
/// <param name="response">HttpResponseMessage</para... | ```c#
using Newtonsoft.Json;
using System.Net.Http;
using System.Threading.Tasks;
namespace Line.Messaging
{
internal static class HttpResponseMessageExtensions
{
/// <summary>
/// Validate the response status.
/// </summary>
/// <param name="response">HttpResponseMessage</para... |
ce6aa573-5963-40e8-a219-c955258ec4c4 | {
"language": "C#"
} | ```c#
//*********************************************************//
// Copyright (c) Microsoft. All rights reserved.
//
// Apache 2.0 License
//
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | ```c#
//*********************************************************//
// Copyright (c) Microsoft. All rights reserved.
//
// Apache 2.0 License
//
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... |
c432751a-faee-4e1d-8e24-c37ff48bdc52 | {
"language": "C#"
} | ```c#
// Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using OpenTK;
using osu.Framework.Graphics.Sprites;
namespace osu.Framework... | ```c#
// Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using OpenTK;
using osu.Framework.Graphics.Sprites;
using OpenTK.Graphics;
... |
27345bc5-7264-4aeb-b1ee-a58df9369d94 | {
"language": "C#"
} | ```c#
using System.Web.Mvc;
using Cake.Web.Core.Content;
namespace Cake.Web.Controllers
{
public class DownloadController : Controller
{
private readonly PackagesConfigContent _content;
public DownloadController(PackagesConfigContent content)
{
_content = content;
... | ```c#
using System.Web.Mvc;
using Cake.Web.Core.Content;
namespace Cake.Web.Controllers
{
public class DownloadController : Controller
{
private readonly PackagesConfigContent _content;
public DownloadController(PackagesConfigContent content)
{
_content = content;
... |
6db0addd-bdfa-4e29-82e8-5f0a7c554638 | {
"language": "C#"
} | ```c#
/// <summary>
/// Used by the ModuleInit. All code inside the Initialize method is ran as soon as the assembly is loaded.
/// </summary>
public static class ModuleInitializer
{
/// <summary>
/// Initializes the module.
/// </summary>
public static void Initialize()
{
}
}```
Make sure th... | ```c#
using System.Reactive.Concurrency;
using ReactiveUI;
/// <summary>
/// Used by the ModuleInit. All code inside the Initialize method is ran as soon as the assembly is loaded.
/// </summary>
public static class ModuleInitializer
{
/// <summary>
/// Initializes the module.
/// </summary>
public st... |
c39fa0db-6e83-4c29-a909-02a7acaa0847 | {
"language": "C#"
} | ```c#
using System;
using Exceptionless.Core.Extensions;
using Exceptionless.Core.Utility;
using Foundatio.ServiceProvider;
using SimpleInjector;
namespace Exceptionless.Core.Jobs {
public class JobBootstrapper : BootstrappedServiceProviderBase {
public override IServiceProvider Bootstrap() {
... | ```c#
using System;
using System.Reflection;
using Exceptionless.Core.Extensions;
using Exceptionless.Core.Utility;
using Foundatio.ServiceProvider;
using NLog.Fluent;
using SimpleInjector;
namespace Exceptionless.Core.Jobs {
public class JobBootstrapper : BootstrappedServiceProviderBase {
public override... |
1c2355d9-f193-4e2f-98b5-21294611681c | {
"language": "C#"
} | ```c#
using System;
using System.Threading;
using System.Threading.Tasks;
using Docker.DotNet;
using Docker.DotNet.Models;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.Metrics;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace SharpLab.Container.Man... | ```c#
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Docker.DotNet;
using Docker.DotNet.Models;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.Metrics;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
... |
3c280079-4cee-4a29-a8be-7315211d3f0c | {
"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("Chrome Developer Tools")]
[assembly... | ```c#
using System;
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Chrome Developer Tool... |
56f78948-6bf0-474b-a5f4-700a196ed0be | {
"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.Database;
#nullable enable
namespace osu.Game.Rulesets
{
/// <summary>
/// A representation of a ruleset's metadata.
/// ... | ```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.Database;
#nullable enable
namespace osu.Game.Rulesets
{
/// <summary>
/// A representation of a ruleset's metadata.
/// ... |
f1bea438-660d-4ff1-9868-b8f98e45fe5e | {
"language": "C#"
} | ```c#
using Microsoft.AspNet.SignalR;
using Microsoft.Owin;
using Microsoft.Owin.Cors;
using Owin;
[assembly: OwinStartup(typeof(SignInCheckIn.Startup))]
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)]
namespace SignInCheckIn
{
public class Startup
{
public void... | ```c#
using Microsoft.AspNet.SignalR;
using Microsoft.Owin;
using Microsoft.Owin.Cors;
using Owin;
[assembly: OwinStartup(typeof(SignInCheckIn.Startup))]
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)]
namespace SignInCheckIn
{
public class Startup
{
public void... |
d232ac44-be74-412c-a199-cc08f134dff8 | {
"language": "C#"
} | ```c#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Linq;
using System.Reflection;
using Microsoft.Framework.DependencyInjection;
namespace Microsoft.As... | ```c#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Linq;
using System.Reflection;
using Microsoft.Framework.DependencyInjection;
namespace Microsoft.As... |
e53c4265-ddb4-424f-ba9b-5704c54102d6 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using AppHarbor.Commands;
using Xunit;
namespace AppHarbor.Tests.Commands
{
public class HelpCommandTest
{
private static Type FooCommandType = typeof(FooCommand);
private static Type FooBarCommandType = typeof(FooBarCommand);
private stat... | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using AppHarbor.Commands;
using Xunit;
namespace AppHarbor.Tests.Commands
{
public class HelpCommandTest
{
private static Type FooCommandType = typeof(FooCommand);
private static Type FooBarCommandType = typeof(FooBarCommand);
private stat... |
0e77c14f-e31b-4c5e-9a60-73a4604ffbbf | {
"language": "C#"
} | ```c#
using System;
using System.Collections;
using System.Collections.Generic;
namespace Mindscape.Raygun4Net.Parsers
{
public class RaygunRequestDataJsonParser : IRaygunRequestDataParser
{
public IDictionary ToDictionary(string data)
{
try
{
return SimpleJson.DeserializeObject<Dictio... | ```c#
using System;
using System.Collections;
using System.Collections.Generic;
namespace Mindscape.Raygun4Net.Parsers
{
public class RaygunRequestDataJsonParser : IRaygunRequestDataParser
{
public IDictionary ToDictionary(string data)
{
try
{
return SimpleJson.DeserializeObject<Dictio... |
85802f3b-1c9a-4e93-a2b7-0dd186134300 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Couchbase.Linq.QueryGeneration
{
/// <summary>
/// Helpers for N1QL query generation
/// </summary>
public static class N1QlHelpers
{
/// <summary>
/... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Couchbase.Linq.QueryGeneration
{
/// <summary>
/// Helpers for N1QL query generation
/// </summary>
public static class N1QlHelpers
{
/// <summary>
/... |
ad783628-3c56-4068-8625-9d78a2206e6d | {
"language": "C#"
} | ```c#
using System.Web;
using System.Web.Optimization;
namespace TwitterWebApplication
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundl... | ```c#
using System.Web;
using System.Web.Optimization;
namespace TwitterWebApplication
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundl... |
28929ace-7888-4e80-9967-6925bff12d14 | {
"language": "C#"
} | ```c#
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Modules.JsonNet
{
/// <summary>
/// IFormatter implementation based on Newtonsoft.Json serialization.
/// Requires the Serializabl... | ```c#
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Modules.JsonNet
{
/// <summary>
/// IFormatter implementation based on Newtonsoft.Json serialization.
/// Requires the Serializabl... |
25e66d36-913c-444f-8402-8dc0c756bb10 | {
"language": "C#"
} | ```c#
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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://w... | ```c#
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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://w... |
6a5ab178-f891-43d5-92ef-1011476eb3ed | {
"language": "C#"
} | ```c#
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using TweetDuck;
// 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.
[assemb... | ```c#
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using TweetDuck;
// 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.
[assembl... |
4b30c458-e845-432b-8c24-fc5d72f632e3 | {
"language": "C#"
} | ```c#
@{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@exam... | ```c#
@{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@exam... |
7b679981-9835-40e8-96d4-2ed7c6d6464e | {
"language": "C#"
} | ```c#
using System;
using FFImageLoading.Drawables;
namespace FFImageLoading.Cache
{
public class LRUCache : Android.Util.LruCache
{
public LRUCache(int maxSize) : base(maxSize)
{
}
public event EventHandler<EntryRemovedEventArgs<Java.Lang.Object>> OnEntryRemoved;
pro... | ```c#
using System;
using FFImageLoading.Drawables;
namespace FFImageLoading.Cache
{
public class LRUCache : Android.Util.LruCache
{
public LRUCache(int maxSize) : base(maxSize)
{
}
public event EventHandler<EntryRemovedEventArgs<Java.Lang.Object>> OnEntryRemoved;
pro... |
aae95f0b-dfe9-4e2b-b9cc-a99368e1746e | {
"language": "C#"
} | ```c#
using UnityEngine;
using System.Collections;
public class Menus : MonoBehaviour {
public enum MenuState
{
Starting = 0,
Playing = 1,
GameOver = 2
}
public GameLoopManager gameLoopManager;
public SpriteRenderer titleSprite;
public SpriteRenderer gameOver... | ```c#
using UnityEngine;
using System.Collections;
public class Menus : MonoBehaviour {
public enum MenuState
{
Starting = 0,
Playing = 1,
GameOver = 2
}
public GameLoopManager gameLoopManager;
public SpriteRenderer titleSprite;
public SpriteRenderer gameO... |
1f2ebfb6-42d0-497b-9332-82b67eb17488 | {
"language": "C#"
} | ```c#
using System;
using MonoTouch.ObjCRuntime;
[assembly: LinkWith ("libTTTAttributedLabel.a", LinkTarget.Simulator | LinkTarget.ArmV7, ForceLoad = true)]
```
Update with LinkTarget.ArmV7s and frameworks. | ```c#
using System;
using MonoTouch.ObjCRuntime;
[assembly: LinkWith ("libTTTAttributedLabel.a", LinkTarget.Simulator | LinkTarget.ArmV7 | LinkTarget.ArmV7s, Frameworks = "CoreGraphics CoreText QuartzCore", ForceLoad = true)]
``` |
b239982a-76cd-4c83-ba0c-e0d7fefebeba | {
"language": "C#"
} | ```c#
using System;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Windows;
namespace Mahapps.Metro.Tests
{
/// <summary>
/// This class is the ultimate hack to work around that we can't
/// create more than one application in the same AppDomain
///
/// It is o... | ```c#
using System;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using System.Windows;
namespace Mahapps.Metro.Tests
{
/// <summary>
/// This class is the ultimate hack to work around that we can't
/// create more than one application in the same AppDomain
///
/// It is i... |
7a16862a-cedb-490e-95ea-16585c0efe90 | {
"language": "C#"
} | ```c#
using System.Threading.Tasks;
using System.Web.Mvc;
using SFA.DAS.Authorization.Mvc.Attributes;
using SFA.DAS.EmployerFinance.Web.Orchestrators;
namespace SFA.DAS.EmployerFinance.Web.Controllers
{
[DasAuthorize("EmployerFeature.TransfersMatching")]
[RoutePrefix("accounts/{HashedAccountId}")]
... | ```c#
using System.Threading.Tasks;
using System.Web.Mvc;
using SFA.DAS.Authorization.Mvc.Attributes;
using SFA.DAS.EmployerFinance.Web.Orchestrators;
namespace SFA.DAS.EmployerFinance.Web.Controllers
{
[RoutePrefix("accounts/{HashedAccountId}")]
public class TransfersController : Controller
{
... |
2036e24e-80a8-42f7-a00e-f2a94663983e | {
"language": "C#"
} | ```c#
using System;
using System.IO;
using System.Net;
using System.Reflection;
using System.Security.Cryptography.X509Certificates;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.FileProviders;
namespace SocialSample
{
public static class Program
{
... | ```c#
using System;
using System.IO;
using System.Net;
using System.Reflection;
using System.Security.Cryptography.X509Certificates;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.FileProviders;
namespace SocialSample
{
public static class Program
{
... |
e5adb68f-dec5-426f-ae44-af7bb43bd12e | {
"language": "C#"
} | ```c#
using System;
using System.IO;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
var game = new Game("HANG THE MAN");
string titleText = File.ReadAllText("title.txt");
object[] titleCell = {titleText, Cell.CentreAlign};
object[] titleRow = {titleC... | ```c#
using System;
using System.IO;
namespace Hangman {
public class Hangman {
public static void Main(string[] args) {
var game = new Game("HANG THE MAN");
string titleText = File.ReadAllText("title.txt");
object[] titleCell = {titleText, Cell.CentreAlign};
object[] titleRow = {titleC... |
7b96161c-7d7e-4b1b-93a1-5f5bdea6ede8 | {
"language": "C#"
} | ```c#
using System;
using System.Windows.Forms;
using VigilantCupcake.OperatingSystemUtilities;
namespace VigilantCupcake {
internal static class Program {
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main() {
... | ```c#
using System;
using System.Windows.Forms;
using VigilantCupcake.OperatingSystemUtilities;
namespace VigilantCupcake {
internal static class Program {
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main() {
... |
744e5105-6ba4-4b8d-b1a2-a2977e353482 | {
"language": "C#"
} | ```c#
using Albatross.Expression;
using System;
namespace RollGen.Domain
{
public class RandomDice : Dice
{
private readonly Random random;
public RandomDice(Random random)
{
this.random = random;
}
public override PartialRoll Roll(int quantity = 1)
... | ```c#
using Albatross.Expression;
using System;
namespace RollGen.Domain
{
public class RandomDice : Dice
{
private readonly Random random;
public RandomDice(Random random)
{
this.random = random;
}
public override PartialRoll Roll(int quantity = 1)
... |
3641b3be-8eb2-453a-829f-437994ed2402 | {
"language": "C#"
} | ```c#
using SRPCommon.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using System.Diagnostics.CodeAnalysis;
namespace SRPCommon.Scene
{
public class MeshInstancePrimitive : Primitive
{
public override PrimitiveType Type => PrimitiveType.MeshInstance;
public Scen... | ```c#
using SRPCommon.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using System.Diagnostics.CodeAnalysis;
namespace SRPCommon.Scene
{
public class MeshInstancePrimitive : Primitive
{
public override PrimitiveType Type => PrimitiveType.MeshInstance;
public Scen... |
e18430c2-565b-4264-a2d4-ed3beb2cae4b | {
"language": "C#"
} | ```c#
using System;
namespace CertiPay.Common.WorkQueue
{
public class CompletedWorkItem<T>
{
public T WorkItem { get; set; }
public String Server { get; set; }
public DateTime CompletedAt { get; set; }
// TODO Version?
public CompletedWorkItem()
{
... | ```c#
using System;
namespace CertiPay.Common.WorkQueue
{
public class CompletedWorkItem<T>
{
public T WorkItem { get; set; }
public String Server { get; set; }
public DateTime CompletedAt { get; set; }
public String Version { get; set; }
public EnvUtil.Environment ... |
06bff205-3dbe-42fa-a912-fe29d7cf5721 | {
"language": "C#"
} | ```c#
@using CkanDotNet.Web.Models.Helpers
@using System.Configuration
<!--v Denvergov:1of3(head) v-->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="Stylesheet" type="text/css" href="http://dgqa.denvergov.org/dgskin1/Scripts/Denvergov.style.sk... | ```c#
@using CkanDotNet.Web.Models.Helpers
@using System.Configuration
<!--v Denvergov:1of3(head) v-->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="Stylesheet" type="text/css" href="@Url.Content(ConfigurationManager.AppSettings["Catalog.SkinL... |
5089911d-9105-4b6e-aadc-6013df3346af | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using UsageSampleMvc.AspNetCore.Models;
namespace UsageSampleMvc.AspNetCore.Controllers
{
public class HomeController : Controller
{
public I... | ```c#
using System.Diagnostics;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using UsageSampleMvc.AspNetCore.Models;
namespace UsageSampleMvc.AspNetCore.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View()... |
d835f7e2-5994-4c14-b924-9ec56e7f667d | {
"language": "C#"
} | ```c#
using System.Net;
using System.Net.Http;
using System.Web.Http.ExceptionHandling;
using FluentValidation;
using NLog;
using SFA.DAS.Commitments.Application.Exceptions;
namespace SFA.DAS.Commitments.Api
{
public class CustomExceptionHandler : ExceptionHandler
{
private static readonly ILogger Log... | ```c#
using System.Net;
using System.Net.Http;
using System.Web.Http.ExceptionHandling;
using FluentValidation;
using NLog;
using SFA.DAS.Commitments.Application.Exceptions;
namespace SFA.DAS.Commitments.Api
{
public class CustomExceptionHandler : ExceptionHandler
{
private static readonly ILogger _lo... |
d9b52c6a-ee49-4082-be3a-947c19e030d6 | {
"language": "C#"
} | ```c#
@model Vaskelista.Models.Household
@{
ViewBag.Title = "Create";
}
<h2>Velkommen til vaskelista</h2>
<p>Her kan du velge hva vaskelisten din skal hete:</p>
<div class="form-horizontal">
<div class="form-group">
<div class="col-md-2"><label>@Request.Url.ToString()</label></div... | ```c#
@model Vaskelista.Models.Household
@{
ViewBag.Title = "Create";
}
<h2>Velkommen til vaskelista</h2>
<p>Her kan du velge hva vaskelisten din skal hete:</p>
<div class="form-horizontal">
<div class="form-group">
<div class="col-md-4"><label>@Request.Url.ToString()</label></div... |
fe7a794f-8c57-45d0-8857-a4c6cae70632 | {
"language": "C#"
} | ```c#
namespace NRules.Fluent.Dsl
{
/// <summary>
/// Root of the query method chain.
/// </summary>
public interface IQuery
{
/// <summary>
/// Internal query builder.
/// This method is intended for framework use only.
/// </summary>
IQueryBuilder Builder {... | ```c#
using System.ComponentModel;
namespace NRules.Fluent.Dsl
{
/// <summary>
/// Root of the query method chain.
/// </summary>
public interface IQuery
{
/// <summary>
/// Internal query builder.
/// This method is intended for framework use only.
/// </summary>
... |
3c94b9d0-43fc-417d-a318-fe5c7f82d14d | {
"language": "C#"
} | ```c#
using System;
using Flood.GUI.Controls;
using Flood.GUI.Renderers;
using Flood.GUI.Skins;
namespace Flood.Editor.Client.Gui
{
public abstract class GuiWindow : IDisposable
{
/// <summary>
/// Native GUI window.
/// </summary>
public Window NativeWindow { get; set; }
... | ```c#
using System;
using Flood.GUI.Controls;
using Flood.GUI.Renderers;
using Flood.GUI.Skins;
namespace Flood.Editor.Client.Gui
{
public abstract class GuiWindow : IDisposable
{
/// <summary>
/// Native GUI window.
/// </summary>
public Window NativeWindow { get; set; }
... |
b74c1d88-fff5-4e7c-94a0-67f3a22aa6d5 | {
"language": "C#"
} | ```c#
namespace FlatBuffers
{
public static class FieldTypeMetaData
{
public const string Index = "id";
public const string Required = "required";
}
}```
Build fix? (not sure why travis doesn't see this file) | ```c#
namespace FlatBuffers
{
public static class FieldTypeMetaData
{
public const string Index = "id";
public const string Required = "required";
}
}``` |
5e41213e-82ca-447a-9aff-326edd40dee9 | {
"language": "C#"
} | ```c#
using System;
using System.ComponentModel;
using System.Windows;
using DesktopWidgets.Classes;
namespace DesktopWidgets.Actions
{
public abstract class ActionBase
{
[DisplayName("Delay")]
public TimeSpan Delay { get; set; } = TimeSpan.FromSeconds(0);
[DisplayName("Show Errors")]... | ```c#
using System;
using System.ComponentModel;
using System.Windows;
using DesktopWidgets.Classes;
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
namespace DesktopWidgets.Actions
{
public abstract class ActionBase
{
[PropertyOrder(0)]
[DisplayName("Delay")]
public TimeSpan Delay { ... |
33d1bfaa-2c86-4d33-b4bb-96922af46936 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SharpDX.Direct2D1
{
public partial class SvgDocument
{
/// <summary>
/// Finds an svg element by id
/// </summary>
/// <param name="id">Id to lookup for</param>
/// <re... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SharpDX.Direct2D1
{
public partial class SvgDocument
{
/// <summary>
/// Finds an svg element by id
/// </summary>
/// <param name="id">Id to lookup for</param>
/// <re... |
c5310092-364f-4b93-9618-077c9b446b98 | {
"language": "C#"
} | ```c#
namespace ChessDotNet
{
public abstract class ChessPiece
{
public abstract Player Owner
{
get;
set;
}
public override bool Equals(object obj)
{
if (ReferenceEquals(this, obj))
return true;
if (obj == ... | ```c#
namespace ChessDotNet
{
public abstract class ChessPiece
{
public abstract Player Owner
{
get;
set;
}
public override bool Equals(object obj)
{
if (ReferenceEquals(this, obj))
return true;
if (obj == ... |
24ea5220-48ff-4f66-8b81-deb738a7d9e2 | {
"language": "C#"
} | ```c#
using System;
using System.IO;
using System.Linq;
namespace AutoHeader.Options
{
public class RemoveHeaderOption : Option
{
public override void Execute()
{
Console.WriteLine("Execute \'RemoveHeaderOption\': {0}", Arg);
if (!Directory.Exists(Arg))
{
... | ```c#
using System;
using System.IO;
using System.Linq;
namespace AutoHeader.Options
{
public class RemoveHeaderOption : Option
{
public override void Execute()
{
Console.WriteLine("Execute \'RemoveHeaderOption\': {0}", Arg);
if (!Directory.Exists(Arg))
{
... |
66ba094e-37af-44fc-bccc-0267d30ef43d | {
"language": "C#"
} | ```c#
using System.Drawing;
using MonoHaven.Graphics;
using MonoHaven.Graphics.Text;
namespace MonoHaven.UI.Widgets
{
public class Progress : Widget
{
private readonly TextLine textLine;
private int value;
public Progress(Widget parent) : base(parent)
{
textLine = new TextLine(Fonts.LabelText);
textL... | ```c#
using System.Drawing;
using MonoHaven.Graphics;
using MonoHaven.Graphics.Text;
namespace MonoHaven.UI.Widgets
{
public class Progress : Widget
{
private readonly TextLine textLine;
private int value;
public Progress(Widget parent) : base(parent)
{
textLine = new TextLine(Fonts.LabelText);
textL... |
818917bc-ded9-4e91-9faa-6b64d07c6364 | {
"language": "C#"
} | ```c#
using System;
using SQLite;
namespace Amica.vNext.SimpleCache
{
class CacheElement
{
[PrimaryKey]
public string Key { get; set; }
[Indexed]
public string TypeName { get; set; }
public byte[] Value { get; set; }
public DateTime? Expiration { get; set; }
public DateTimeOffset CreatedAt { get... | ```c#
using System;
using SQLite;
namespace Amica.vNext.SimpleCache
{
class CacheElement
{
[PrimaryKey]
public string Key { get; set; }
[Indexed]
public string TypeName { get; set; }
public byte[] Value { get; set; }
[Indexed]
public DateTime? Expiration { get; set; }
public DateTimeOffset Crea... |
1663b615-1780-4d25-a574-a227e90c4ae8 | {
"language": "C#"
} | ```c#
namespace Sitecore.FakeDb.Tests.Data
{
using System;
using FluentAssertions;
using NSubstitute;
using global::AutoFixture.Xunit2;
using Sitecore.Data;
using Sitecore.Data.Fields;
using Sitecore.FakeDb.Data;
using Sitecore.FakeDb.Data.Engines;
using Sitecore.FakeDb.Data.Items;
... | ```c#
namespace Sitecore.FakeDb.Tests.Data
{
using System;
using FluentAssertions;
using NSubstitute;
using global::AutoFixture.Xunit2;
using Sitecore.Abstractions;
using Sitecore.Data;
using Sitecore.Data.Fields;
using Sitecore.FakeDb.Data;
using Sitecore.FakeDb.Data.Engines;
us... |
ab3a1f3c-1242-4195-a82e-e24a1425ffa4 | {
"language": "C#"
} | ```c#
using Hangfire.Mongo.Database;
using MongoDB.Driver;
using System;
using Hangfire.Mongo.Helpers;
using MongoDB.Bson;
namespace Hangfire.Mongo.MongoUtils
{
/// <summary>
/// Helper utilities to work with Mongo database
/// </summary>
public static class MongoExtensions
{
... | ```c#
using Hangfire.Mongo.Database;
using MongoDB.Driver;
using System;
using Hangfire.Mongo.Helpers;
using MongoDB.Bson;
namespace Hangfire.Mongo.MongoUtils
{
/// <summary>
/// Helper utilities to work with Mongo database
/// </summary>
public static class MongoExtensions
{
... |
41206424-1ab8-4526-9770-7fcf918fa374 | {
"language": "C#"
} | ```c#
using Xamarin.UITest;
namespace Xtc101.UITest
{
public class AppInitializer
{
public static IApp StartApp(Platform platform)
{
if (platform == Platform.Android)
{
return ConfigureApp
.Android
.PreferIdeSettin... | ```c#
using Xamarin.UITest;
namespace Xtc101.UITest
{
public class AppInitializer
{
public static IApp StartApp(Platform platform)
{
if (platform == Platform.Android)
{
return ConfigureApp
.Android
// Run Release A... |
5d60ef1f-f23c-44a3-8f4e-f24ffd2e594c | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Caliburn.Micro;
using MundlTransit.WP8.ViewModels.LineInfo;
namespace MundlTransit.WP8.StorageHandlers
{
public class LineInfoPageViewModelStorage : StorageHandler<LineInfoPageViewModel>... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Caliburn.Micro;
using MundlTransit.WP8.ViewModels.LineInfo;
namespace MundlTransit.WP8.StorageHandlers
{
public class LineInfoPageViewModelStorage : StorageHandler<LineInfoPageViewModel>... |
0b89881a-da27-43fb-bf25-c975d2d2cc7a | {
"language": "C#"
} | ```c#
using System.Net;
using LtiLibrary.Core.Outcomes.v2;
namespace LtiLibrary.AspNet.Outcomes.v2
{
public class PutResultContext
{
public PutResultContext(LisResult result)
{
Result = result;
StatusCode = HttpStatusCode.OK;
}
public LisResult Result {... | ```c#
using System.Net;
using LtiLibrary.Core.Outcomes.v2;
namespace LtiLibrary.AspNet.Outcomes.v2
{
public class PutResultContext
{
public PutResultContext(string contextId, string lineItemId, string id, LisResult result)
{
ContextId = contextId;
LineItemId = lineItemI... |
c1a219ac-eb59-4ce2-9408-2f39bbf2e470 | {
"language": "C#"
} | ```c#
using System;
using SevenDigital.Api.Wrapper.Exceptions;
namespace SevenDigital.Api.Wrapper.Utility.Serialization
{
public class ApiXmlDeSerializer<T> : IDeSerializer<T> where T : class
{
private readonly IDeSerializer<T> _deSerializer;
private readonly IXmlErrorHandler _xmlErrorHandler;
publ... | ```c#
namespace SevenDigital.Api.Wrapper.Utility.Serialization
{
public class ApiXmlDeSerializer<T> : IDeSerializer<T> where T : class
{
private readonly IDeSerializer<T> _deSerializer;
private readonly IXmlErrorHandler _xmlErrorHandler;
public ApiXmlDeSerializer(IDeSerializer<T> deSerializer, IXmlErro... |
0b0585c4-cc4c-4e14-b894-5e2e5fa24b78 | {
"language": "C#"
} | ```c#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Users
{
/// <summary>
/// An avatar which can update t... | ```c#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Users
{
/// <summary>
/// An avatar which can update t... |
51a0f8b4-cb3a-4dc3-8eb6-40374c2f87d4 | {
"language": "C#"
} | ```c#
using System.Linq;
using UnityEngine;
using UnityEditor;
namespace EasyButtons
{
/// <summary>
/// Custom inspector for Object including derived classes.
/// </summary>
[CanEditMultipleObjects]
[CustomEditor(typeof(Object), true)]
public class ObjectEditor : Editor
{
public o... | ```c#
using System.Linq;
using UnityEngine;
using UnityEditor;
namespace EasyButtons
{
/// <summary>
/// Custom inspector for Object including derived classes.
/// </summary>
[CanEditMultipleObjects]
[CustomEditor(typeof(Object), true)]
public class ObjectEditor : Editor
{
public ... |
551f056e-aede-42ec-8ccf-3fdcf771f862 | {
"language": "C#"
} | ```c#
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace Shariff.Backend
{
public class Startup
{
public Startup(IHostingEnvironment env)
... | ```c#
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace Shariff.Backend
{
public class Startup
{
public Startup(
IHostingEnvironment... |
2dd8daf8-a4f7-4afe-9ffa-366b9f9cc840 | {
"language": "C#"
} | ```c#
using Glimpse.Core.Extensibility;
namespace Glimpse.Knockout
{
public sealed class ClientScript : IStaticClientScript
{
public ScriptOrder Order { get { return ScriptOrder.IncludeAfterClientInterfaceScript; } }
public string GetUri(string version)
{
return "/... | ```c#
using Glimpse.Core.Extensibility;
namespace Glimpse.Knockout
{
public sealed class ClientScript : IStaticClientScript
{
public ScriptOrder Order { get { return ScriptOrder.IncludeAfterClientInterfaceScript; } }
public string GetUri(string version)
{
return Sy... |
63cab5bb-ffc7-49f2-8816-8d4162450777 | {
"language": "C#"
} | ```c#
namespace Microsoft.eShopOnContainers.WebMVC.Controllers
{
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.eShopOnContainers.WebMVC.Services;
using Microsoft.eShopOnContainers.WebMVC.ViewModels;
using System;
using System.Collections.Generic;
u... | ```c#
namespace Microsoft.eShopOnContainers.WebMVC.Controllers
{
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.eShopOnContainers.WebMVC.Models;
using Microsoft.eShopOnContainers.WebMVC.Services;
using Microsoft.eShopOnContainers.WebMVC.ViewModels;
usin... |
7e4534df-a221-4fe4-a83b-099b4fc3698d | {
"language": "C#"
} | ```c#
using Mycroft.App;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mycroft.Cmd.App
{
class AppCommand : Command
{
/// <summary>
/// Parses JSON into App command objects
/// </summary>
/// <param... | ```c#
using Mycroft.App;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mycroft.Cmd.App
{
class AppCommand : Command
{
/// <summary>
/// Parses JSON into App command objects
/// </summary>
/// <param... |
f5aed6b4-9c1b-4f2e-85f8-12fb11d7a3aa | {
"language": "C#"
} | ```c#
using UnityEngine;
using System;
namespace Starstrider42.CustomAsteroids {
/// <summary>Standard implementation of <see cref="ReferencePlane"/>.</summary>
internal class SimplePlane : ReferencePlane {
public string name { get; private set; }
/// <summary>Rotation used to implement toDefaultFrame.</summary... | ```c#
using UnityEngine;
namespace Starstrider42.CustomAsteroids {
/// <summary>Standard implementation of <see cref="ReferencePlane"/>.</summary>
internal class SimplePlane : ReferencePlane {
public string name { get; private set; }
/// <summary>Rotation used to implement toDefaultFrame.</summary>
private re... |
d437174b-c724-491a-93d6-2336ed21e12a | {
"language": "C#"
} | ```c#
using Android.App;
using Android.Content;
using Android.OS;
using Android.Views;
using Android.Webkit;
using Uri = Android.Net.Uri;
namespace MonoDroid.Dialog
{
public class HtmlElement : StringElement
{
// public string Value;
public HtmlElement(string caption, string url)
... | ```c#
using Android.App;
using Android.Content;
using Android.OS;
using Android.Views;
using Android.Webkit;
using Uri = Android.Net.Uri;
namespace MonoDroid.Dialog
{
public class HtmlElement : StringElement
{
// public string Value;
public HtmlElement(string caption, string url)
... |
890da25b-66aa-4e36-88f8-2fd78a6374ff | {
"language": "C#"
} | ```c#
using System;
using System.IO;
using System.Timers;
using Shell.Execute;
namespace PiDashcam
{
public class StillCam
{
Timer timer;
int imgcounter;
string folder;
public StillCam(string imageFolder)
{
folder = imageFolder;
if (!Directory.Exists(folder))
{
Directory.CreateDirectory(fold... | ```c#
using System;
using System.IO;
using System.Timers;
using Shell.Execute;
namespace PiDashcam
{
public class StillCam
{
Timer timer;
int imgcounter;
string folder;
public StillCam(string imageFolder)
{
imgcounter = 1;
folder = imageFolder;
if (!Directory.Exists(folder))
{
Directory.C... |
695ee7e0-b544-4fb3-85cb-bf5b09c99c60 | {
"language": "C#"
} | ```c#
using LiteNetLib.Utils;
namespace LiteNetLibHighLevel
{
public abstract class LiteNetLibMessageBase
{
public virtual void Deserialize(NetDataReader reader) { }
public virtual void Serialize(NetDataWriter writer) { }
}
}
```
Change serialize/deserialize functions to abstract | ```c#
using LiteNetLib.Utils;
namespace LiteNetLibHighLevel
{
public abstract class LiteNetLibMessageBase
{
public abstract void Deserialize(NetDataReader reader);
public abstract void Serialize(NetDataWriter writer);
}
}
``` |
a3168f76-819e-498b-8a9e-1335ba3e07ee | {
"language": "C#"
} | ```c#
// Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System.Reflection;
using System.Runtime.CompilerServices;
//[assembly: AssemblyVersion("0.0.0.*")]
[assembly: AssemblyTitle ("NDesk.DBus")]
[assembly: AssemblyDescription ("D-Bu... | ```c#
// Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details
using System.Reflection;
using System.Runtime.CompilerServices;
//[assembly: AssemblyVersion("0.0.0.*")]
[assembly: AssemblyTitle ("NDesk.DBus")]
[assembly: AssemblyDescription ("D-Bu... |
6e61bf34-e7c1-4d8c-ae40-6773c4495ab0 | {
"language": "C#"
} | ```c#
using System.Runtime.Serialization;
namespace PushbulletSharp.Models.Requests
{
[DataContract]
public abstract class PushRequestBase
{
/// <summary>
/// Gets or sets the device iden.
/// </summary>
/// <value>
/// The device iden.
/// </value>
... | ```c#
using System.Runtime.Serialization;
namespace PushbulletSharp.Models.Requests
{
[DataContract]
public abstract class PushRequestBase
{
/// <summary>
/// Gets or sets the device iden.
/// </summary>
/// <value>
/// The device iden.
/// </value>
... |
df220201-28a5-4ee9-bea2-9af74e1511b9 | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Extensions;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Mania.Sco... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Extensions;
using osu.Framework.Graphics;
using osu.Framework.Testing;
using osu.Game.Rulesets.Judgements;
usin... |
af184da2-5cbb-4c85-943f-7815e2335b3b | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Snowflake.Scraping
{
internal class GameScrapeContextAsyncEnumerator : IAsyncEnumerator<IEnumerable<ISeed>>
{
public GameScrapeContextAsyncEnumera... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Snowflake.Scraping
{
internal class GameScrapeContextAsyncEnumerator : IAsyncEnumerator<IEnumerable<ISeed>>
{
public GameScrapeContextAsyncEnumera... |
8af4c753-a4fd-4d7e-8e23-88bb81c43238 | {
"language": "C#"
} | ```c#
using System;
using System.Reflection;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Data.HashFunction Developers")]
[assembly: AssemblyCopyright("Copyright 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: CLSCompliant(false)]
[assembly: AssemblyVersion(... | ```c#
using System;
using System.Reflection;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Data.HashFunction Developers")]
[assembly: AssemblyCopyright("Copyright 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: CLSCompliant(false)]
[assembly: AssemblyVersion(... |
2ab7158a-0a5d-47e0-a524-00bb76395c92 | {
"language": "C#"
} | ```c#
using System;
using System.Linq.Expressions;
using RimDev.Descriptor.Generic;
namespace RimDev.Descriptor
{
public class HttpDescriptor<TClass> : Descriptor<TClass>
where TClass : class, new()
{
public HttpDescriptor<TClass> Action<TModel>(
Expression<Func<TClass, Func<TModel... | ```c#
using System;
using System.Linq.Expressions;
using RimDev.Descriptor.Generic;
namespace RimDev.Descriptor
{
public class HttpDescriptor<TClass> : Descriptor<TClass>
where TClass : class, new()
{
public HttpDescriptor(
string name = null,
string description = null,... |
7404a083-2dd5-4280-a958-fd1c4db2bd0f | {
"language": "C#"
} | ```c#
using System.ComponentModel;
using System.Windows;
namespace DesktopWidgets.Actions
{
internal class PopupAction : ActionBase
{
[DisplayName("Text")]
public string Text { get; set; }
[DisplayName("Title")]
public string Title { get; set; }
[DisplayName("Image")]... | ```c#
using System.ComponentModel;
using System.Windows;
namespace DesktopWidgets.Actions
{
internal class PopupAction : ActionBase
{
[DisplayName("Text")]
public string Text { get; set; } = "";
[DisplayName("Title")]
public string Title { get; set; } = "";
[DisplayNa... |
05e5be5c-c645-4673-a7c8-953338b2abef | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Messaging;
using System.Security.Cryptography;
using GistClient.FileSystem;
using RestSharp;
using RestSharp.Deserializers;
namespace GistClient.Client
{
public static class GistClient
{
private stat... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Messaging;
using System.Security.Cryptography;
using GistClient.FileSystem;
using RestSharp;
using RestSharp.Deserializers;
namespace GistClient.Client
{
public static class GistClient
{
private stat... |
e6a67359-e46c-4631-bdf5-c7549d96f4a3 | {
"language": "C#"
} | ```c#
/*
* 由SharpDevelop创建。
* 用户: imknown
* 日期: 2015/12/3 周四
* 时间: 上午 11:22
*
* 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
*/
using System;
using System.Windows.Forms;
namespace KeyFingerprintLooker
{
/// <summary>
/// Class with program entry point.
/// </summary>
internal sealed class Program
{
/// <summary>
//... | ```c#
/*
* 由SharpDevelop创建。
* 用户: imknown
* 日期: 2015/12/3 周四
* 时间: 上午 11:22
*
* 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
*/
using System;
using System.Windows.Forms;
namespace KeyFingerprintLooker
{
/// <summary>
/// Class with program entry point.
/// </summary>
internal sealed class Program
{
/// <summary>
//... |
93577999-2531-4287-8b28-8453dc3dd78e | {
"language": "C#"
} | ```c#
namespace AgileObjects.AgileMapper.UnitTests.Configuration
{
using System;
using TestClasses;
using Xunit;
public class WhenConfiguringStringFormatting
{
// See https://github.com/agileobjects/AgileMapper/issues/23
[Fact]
public void ShouldFormatDateTimesGlobally()
... | ```c#
namespace AgileObjects.AgileMapper.UnitTests.Configuration
{
using System;
using TestClasses;
using Xunit;
public class WhenConfiguringStringFormatting
{
// See https://github.com/agileobjects/AgileMapper/issues/23
[Fact]
public void ShouldFormatDateTimesMapperWide()
... |
004be256-b83b-4f08-89e5-4ba9e1745f15 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CodeGeneration.Debugging
{
class Program
{
static void Main(string[] args)
{
// This app is a dummy. But when it is debugged within VS, it builds the ... | ```c#
// Copyright (c) to owners found in https://github.com/AArnott/pinvoke/blob/master/COPYRIGHT.md. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
namespace CodeGeneration.Debugging
{
using System;
using System.Collections.Gene... |
3a52e436-3614-41dc-9521-35cba008c68e | {
"language": "C#"
} | ```c#
using ColorProvider;
using Common;
namespace BoxBuilder
{
public sealed class BoxBuilderFactory
{
internal static IBoxPointGenerator GetBoxPointGenerator(ILogger Logger)
{
IPiecePointGenerator piecePointGen = new PiecePointGenerator();
IBoxPointGenerator pointGen ... | ```c#
using ColorProvider;
using Common;
namespace BoxBuilder
{
public sealed class BoxBuilderFactory
{
internal static IBoxPointGenerator GetBoxPointGenerator(ILogger Logger)
{
IPiecePointGenerator piecePointGen = new PiecePointGenerator();
IBoxPointGenerator pointGen ... |
776d87f4-6175-41bd-8f06-5a584be30ced | {
"language": "C#"
} | ```c#
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Index</title>
</head>
<body>
<div>
Hello people!
</div>
</body>
</html>
```
Add "now im in the cloud" | ```c#
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Index</title>
</head>
<body>
<div>
Hello people!<br />
Now I'm in the CLOUDDDD
</div>
</body>
</html>
``` |
a7b61383-7dcf-4207-bbb4-c8d55ed04ae2 | {
"language": "C#"
} | ```c#
@model QuestionIndexViewModel
@{
ViewBag.Title = "Question Index";
}
<h2>Question Index</h2>
@if (Model.Questions.SafeAny())
{
<table class="index">
<thead>
<tr>
<th>ID</th>
<th>Photo ID</th>
<th>Question</th>
<th>Sent... | ```c#
@model QuestionIndexViewModel
@{
ViewBag.Title = "Question Index";
}
<h2>Question Index</h2>
@if (Model.Questions.SafeAny())
{
<table class="index">
<thead>
<tr>
<th>ID</th>
<th>Photo ID</th>
<th>Question</th>
<th>Sent... |
efe117e1-5a13-4695-bade-64930aa31393 | {
"language": "C#"
} | ```c#
using System.Data;
namespace NHibernate.Engine.Transaction
{
/// <summary>
/// Represents work that needs to be performed in a manner
/// which isolates it from any current application unit of
/// work transaction.
/// </summary>
public interface IIsolatedWork
{
/// <summary>
/// Perform t... | ```c#
using System.Data;
namespace NHibernate.Engine.Transaction
{
/// <summary>
/// Represents work that needs to be performed in a manner
/// which isolates it from any current application unit of
/// work transaction.
/// </summary>
public interface IIsolatedWork
{
/// <summary>
/// Perform t... |
ba1f255d-16d0-4e92-98c8-8a6979e21c64 | {
"language": "C#"
} | ```c#
using System.Xml;
namespace UDBase.EditorTools {
public static class CSProjUpdater {
public static void UpdateCsprojFile(string fileName) {
var doc = new XmlDocument();
doc.Load(fileName);
// <PropertyGroup>
// <DocumentationFile>$(OutputPath)Assembly-CSharp.xml</DocumentationFile>
// <... | ```c#
using System.Xml;
namespace UDBase.EditorTools {
public static class CSProjUpdater {
public static void UpdateCsprojFile(string fileName) {
var doc = new XmlDocument();
doc.Load(fileName);
// <PropertyGroup>
// <DocumentationFile>$(OutputPath)Assembly-CSharp.xml</DocumentationFile>
// <... |
216bc88a-be36-4858-bc2f-20699eed3ea0 | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.CompilerServices;
using ObjCRuntime;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("CartoMobileSDK.iOS")]
[assembly: AssemblyDescription ("Carto Mobile SDK... | ```c#
using System.Reflection;
using System.Runtime.CompilerServices;
using ObjCRuntime;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("CartoMobileSDK.iOS")]
[assembly: AssemblyDescription ("Carto Mobile SDK... |
60ea1b06-2365-42f4-9669-b9e44d3555ae | {
"language": "C#"
} | ```c#
using System;
using System.Net;
namespace Arango.Client
{
public class ArangoException : Exception
{
/// <summary>
/// HTTP status code which caused the exception.
/// </summary>
public HttpStatusCode HttpStatusCode { get; set; }
/// <summary>
... | ```c#
using System;
using System.Net;
namespace Arango.Client
{
public class ArangoException : Exception
{
/// <summary>
/// HTTP status code which caused the exception.
/// </summary>
public HttpStatusCode HttpStatusCode { get; set; }
/// <summary>
... |
b7328017-cc9e-4a82-af9c-12faf2163ff4 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Aggregates.Contracts;
using Aggregates.Extensions;
using EventStore.ClientAPI;
using Newtonsoft.Json;
using NServiceBus;
using NServiceBus.Features;
using NServiceBus.Logging;
using NServiceB... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Aggregates.Contracts;
using Aggregates.Extensions;
using EventStore.ClientAPI;
using Newtonsoft.Json;
using NServiceBus;
using NServiceBus.Features;
using NServiceBus.Logging;
using NServiceB... |
9902f61b-d714-48ff-a12a-5386f5ea980b | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TestObjectBuilder;
namespace TestObjectBuilderTests
{
public class ProductTestObjectBuilder : TestObjBuilder<Product>
{
public ProductTestObjectBuilder()
{
this.FirstDependency = new D... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TestObjectBuilder;
namespace TestObjectBuilderTests
{
public class ProductTestObjectBuilder : TestObjBuilder<Product>
{
public ProductTestObjectBuilder()
{
this.FirstDependency = new D... |
d50e809d-c9e6-4982-a58f-d861416ccfa6 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using Owin;
namespace JabbR.Infrastructure
{
public static class AppBuilderExtensions
{
private static readonly string SystemWebHostName = "System.Web 4.5, Microsoft.Owin.Host.SystemWeb 1.0.0.0";
public static bool IsRunningUnderSystemWeb(... | ```c#
using System;
using System.Collections.Generic;
using Owin;
namespace JabbR.Infrastructure
{
public static class AppBuilderExtensions
{
private static readonly string SystemWebHostName = "System.Web 4.5, Microsoft.Owin.Host.SystemWeb 1.0.0.0";
public static bool IsRunningUnderSystemWeb(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.