doc_id stringlengths 36 36 | metadata dict | input stringlengths 28 4.3k | output stringlengths 11 5.45k |
|---|---|---|---|
4b76b0ce-d99f-4c9b-b60b-711e515afbc9 | {
"language": "C#"
} | ```c#
namespace WorkoutWotch.UI.Android
{
using Services.ExerciseDocument;
using WorkoutWotch.Services.Contracts.Audio;
using WorkoutWotch.Services.Contracts.ExerciseDocument;
using WorkoutWotch.Services.Contracts.Speech;
using WorkoutWotch.Services.Android.Audio;
using WorkoutWotch.Services.An... | ```c#
namespace WorkoutWotch.UI.Android
{
using Services.ExerciseDocument;
using WorkoutWotch.Services.Contracts.Audio;
using WorkoutWotch.Services.Contracts.ExerciseDocument;
using WorkoutWotch.Services.Contracts.Speech;
using WorkoutWotch.Services.Android.Audio;
using WorkoutWotch.Services.An... |
f729a337-32ab-45cc-8abb-949268f70e58 | {
"language": "C#"
} | ```c#
using System;
namespace AppHarbor.Commands
{
public class LoginCommand : ICommand
{
private readonly AccessTokenFetcher _accessTokenFetcher;
private readonly EnvironmentVariableConfiguration _environmentVariableConfiguration;
public LoginCommand(AccessTokenFetcher accessTokenFetcher, EnvironmentVariabl... | ```c#
using System;
namespace AppHarbor.Commands
{
public class LoginCommand : ICommand
{
private const string TokenEnvironmentVariable = "AppHarborToken";
private readonly AccessTokenFetcher _accessTokenFetcher;
private readonly EnvironmentVariableConfiguration _environmentVariableConfiguration;
public Lo... |
0051fbc5-e41f-4b00-909b-d9c7e0f9f175 | {
"language": "C#"
} | ```c#
using OpenTK;
using OpenTK.Graphics;
using StorybrewCommon.Mapset;
using StorybrewCommon.Scripting;
using StorybrewCommon.Storyboarding;
using StorybrewCommon.Storyboarding.Util;
using StorybrewCommon.Subtitles;
using StorybrewCommon.Util;
using System;
using System.Collections.Generic;
namespace StorybrewScrip... | ```c#
using OpenTK;
using OpenTK.Graphics;
using StorybrewCommon.Mapset;
using StorybrewCommon.Scripting;
using StorybrewCommon.Storyboarding;
using StorybrewCommon.Storyboarding.Util;
using StorybrewCommon.Subtitles;
using StorybrewCommon.Util;
using System;
using System.Collections.Generic;
using System.Linq;
names... |
a4e8bfac-8237-413f-9b41-f058022c8b68 | {
"language": "C#"
} | ```c#
using Arkivverket.Arkade.Core;
using Arkivverket.Arkade.Tests;
using FluentAssertions;
using Xunit;
namespace Arkivverket.Arkade.Test.Core
{
public class TestSuiteTest
{
[Fact]
public void ShouldReturnOneError()
{
var testSuite = new TestSuite();
var testR... | ```c#
using Arkivverket.Arkade.Core;
using Arkivverket.Arkade.Tests;
using FluentAssertions;
using Xunit;
namespace Arkivverket.Arkade.Test.Core
{
public class TestSuiteTest
{
private readonly TestResult _testResultWithError = new TestResult(ResultType.Error, new Location(""), "feil");
private ... |
b7e655c2-783a-41cb-af3f-8cff5b1d687e | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using Oxide.Core.Libraries;
using Oxide.Core.Plugins;
namespace Oxide.Rust.Libraries
{
/// <summary>
/// A library containing utility shortcut functions for rust
/// </summary>
public class Rust : Library
{
/// <summ... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using Oxide.Core.Libraries;
using Oxide.Core.Plugins;
namespace Oxide.Rust.Libraries
{
/// <summary>
/// A library containing utility shortcut functions for rust
/// </summary>
public class Rust : Library
{
/// <summ... |
cafe1d03-2569-4be0-8d91-d6144141b7fd | {
"language": "C#"
} | ```c#
using UniRx;
using UnityEngine;
using UnityEngine.UI;
public class CanvasWidthScalePresenter : MonoBehaviour
{
[SerializeField]
CanvasEvents canvasEvents;
[SerializeField]
Slider canvasWidthScaleController;
NotesEditorModel model;
void Awake()
{
model = NotesEditorModel.Ins... | ```c#
using UniRx;
using UniRx.Triggers;
using UnityEngine;
using UnityEngine.UI;
public class CanvasWidthScalePresenter : MonoBehaviour
{
[SerializeField]
CanvasEvents canvasEvents;
[SerializeField]
Slider canvasWidthScaleController;
NotesEditorModel model;
void Awake()
{
model ... |
fb9926b0-f015-45e9-8503-25a7bca4b2e9 | {
"language": "C#"
} | ```c#
using UnityEngine;
namespace Tetris
{
public class Block : MonoBehaviour
{
public Color Color
{
get { return _spriteRenderer.color; }
set { _spriteRenderer.color = value; }
}
private SpriteRenderer _spriteRenderer;
private void Awake()
... | ```c#
using UnityEngine;
namespace Tetris
{
public class Block : MonoBehaviour
{
public bool IsSolid = true;
public Color Color
{
get { return _spriteRenderer.color; }
set { _spriteRenderer.color = value; }
}
private SpriteRenderer _spri... |
1d7e17e6-f7cf-49f1-b299-15d506952ed8 | {
"language": "C#"
} | ```c#
namespace SqlStreamStore.Infrastructure
{
using SqlStreamStore.Imports.Ensure.That;
internal static class EnsureThatExtensions
{
internal static Param<string> DoesNotStartWith(this Param<string> param, string s)
{
if (!Ensure.IsActive)
{
return... | ```c#
namespace SqlStreamStore.Infrastructure
{
using SqlStreamStore.Imports.Ensure.That;
internal static class EnsureThatExtensions
{
internal static Param<string> DoesNotStartWith(this Param<string> param, string s)
{
if (!Ensure.IsActive)
{
return... |
36bd072a-2808-4158-8593-02bba2d742c2 | {
"language": "C#"
} | ```c#
// -----------------------------------------------------------------------
// <copyright file="GridSplitterStyle.cs" company="Steven Kirk">
// Copyright 2014 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Per... | ```c#
// -----------------------------------------------------------------------
// <copyright file="GridSplitterStyle.cs" company="Steven Kirk">
// Copyright 2014 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Per... |
4086c840-94f3-40be-b244-12b153014ee8 | {
"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.Collections.Generic;
using osu.Framework.Graphics;
using osu.Game.Audio;
using osu.Game.Storyboards.Drawables;
namespace osu.Game.Storyboards
{
p... | ```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.Graphics;
using osu.Game.Audio;
using osu.Game.Storyboards.Drawables;
namespace osu.Game.Storyboards
{
p... |
5791c9b4-8fe7-4878-b68a-4f6aa7e538da | {
"language": "C#"
} | ```c#
using System;
using System.IO;
namespace test
{
class Program
{
static void Main(string[] args)
{
var path = args[0];
// var json = File.ReadAllText(path);
// var qt = QuickType.TopLevel.FromJson(json);
}
}
}
```
Revert "Only test that the... | ```c#
using System;
using System.IO;
namespace test
{
class Program
{
static void Main(string[] args)
{
var path = args[0];
var json = File.ReadAllText(path);
var qt = QuickType.TopLevel.FromJson(json);
}
}
}
``` |
0f882865-b262-48d4-b3b0-0dc49b5575e8 | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("LibSlyBroadcast")]
[assembly: AssemblyProduct("LibSlyBroadcast")]
[assembly: AssemblyCopyright("Copyright © ACAXLabs 2016")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersio... | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("LibSlyBroadcast")]
[assembly: AssemblyProduct("LibSlyBroadcast")]
[assembly: AssemblyCopyright("Copyright © ACAExpress.com, Inc 2016")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: Assembl... |
77ca216f-5fa0-4d50-97a9-29d1636a8058 | {
"language": "C#"
} | ```c#
using LogicalShift.Reason.Api;
using LogicalShift.Reason.Unification;
using System;
using System.Collections.Generic;
using System.Linq;
namespace LogicalShift.Reason
{
/// <summary>
/// Helper methods for performing unification
/// </summary>
public static class BasicUnification
{
/... | ```c#
using LogicalShift.Reason.Api;
using LogicalShift.Reason.Unification;
using System;
using System.Collections.Generic;
using System.Linq;
namespace LogicalShift.Reason
{
/// <summary>
/// Helper methods for performing unification
/// </summary>
public static class BasicUnification
{
/... |
36fe1e8b-c73a-4744-936a-ff1af37c4c37 | {
"language": "C#"
} | ```c#
@using Anlab.Core.Domain
@using Microsoft.AspNetCore.Http
@inject SignInManager<User> SignInManager
@inject UserManager<User> UserManager
@if (User.Identity.IsAuthenticated)
{
var user = await UserManager.GetUserAsync(User);
<form class="flexer" asp-area="" asp-controller="Account" asp-action="Logout"... | ```c#
@using Anlab.Core.Domain
@using Microsoft.AspNetCore.Http
@inject SignInManager<User> SignInManager
@inject UserManager<User> UserManager
@if (User.Identity.IsAuthenticated)
{
var user = await UserManager.GetUserAsync(User);
<form class="flexer" asp-area="" asp-controller="Account" asp-action="Logout" ... |
c599dece-2f80-49e5-872c-7c8af25c2dc5 | {
"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.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.Game.Screens.Ranking.Expanded;
namespace osu.Game.Tests.V... | ```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.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.Game.Screens.Ranking.Expanded;
namespace osu.Game.Tests.V... |
41a99679-52cf-492e-9726-9aa4b452718f | {
"language": "C#"
} | ```c#
using UnityEngine;
using System.Collections;
public class FileChooser : MonoBehaviour {
FileBrowser fb = new FileBrowser();
void OnGUI(){
fb.searchPattern = "*.xml";
FileLoaderXML fl = new FileLoaderXML();
if(fb.draw()){
if(fb.outputFile == null){
Debug.Log("Cancel hit");
}else{
Debug... | ```c#
using UnityEngine;
using System.Collections;
public class FileChooser : MonoBehaviour {
FileBrowser fb = new FileBrowser();
FileLoaderXML fl = new FileLoaderXML();
// Use this for initialization
void Start () {
fb.searchPattern = "*.xml";
}
void OnGUI(){
if (fb.draw()) {
if (fb.outputFile == nu... |
3467aa1d-426a-4562-91a5-ff4f5e1e65cc | {
"language": "C#"
} | ```c#
/*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using System;
using Microsoft.Xna.Framework;
namespace ShiftDrive {
/// <summary>
/// Represents the maximum weapon size that a mount can hold.
/// </summary>
internal enum MountSize {
Small = 1,
Medium = 2,
Large... | ```c#
/*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using System;
using Microsoft.Xna.Framework;
namespace ShiftDrive {
/// <summary>
/// Represents the maximum weapon size that a mount can hold.
/// </summary>
internal enum MountSize {
Small = 1,
Medium = 2,
Large... |
3783cb7f-a194-4741-b874-ce621c276e8d | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using GitVersion.VersionCalculation.BaseVersionCalculators;
namespace GitVersion.VersionFilters
{
public class ShaVersionFilter : IVersionFilter
{
private readonly IEnumerable<string> shas;
public ShaVersionFilter(IEnume... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using GitVersion.VersionCalculation.BaseVersionCalculators;
namespace GitVersion.VersionFilters
{
public class ShaVersionFilter : IVersionFilter
{
private readonly IEnumerable<string> shas;
public ShaVersionFilter(IEnume... |
9dbbce07-7e4e-41c2-b3bd-10b527a0af9b | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GTPWrapper {
public class GTPWrapper {
public GTPWrapper() {
}
public string Command(string input) {
return "";
}
}
}
```
Test comm... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GTPWrapper {
public class GTPWrapper {
public GTPWrapper() {
}
public string Command(string input) {
return "=";
}
}
}
``` |
0f3e90e6-b902-451c-b27e-f1330a928bf8 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
namespace IronFoundry.Container
{
public class ContainerHostDependencyHelper
{
const string ContainerHostAssemblyName = "IronFoundry.Container.Host";
readonly Assembly containerH... | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
namespace IronFoundry.Container
{
public class ContainerHostDependencyHelper
{
const string ContainerHostAssemblyName = "IronFoundry.Container.Host";
readonly Assembly containerH... |
ab519bbc-1aa5-44b8-a315-fcf2e3a6b8f1 | {
"language": "C#"
} | ```c#
using System;
using System.Buffers;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using SuperSocket.ProtoBase;
namespace SuperSocket.Channel
{
public class UdpPipeChannel<TPackageInfo> : VirtualChannel<TPackageInfo>, IChannelWithSessionIdentifier
{
... | ```c#
using System;
using System.Buffers;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using SuperSocket.ProtoBase;
namespace SuperSocket.Channel
{
public class UdpPipeChannel<TPackageInfo> : VirtualChannel<TPackageInfo>, IChannelWithSessionIdentifier
{
... |
cc48de15-8f0f-42bd-92b9-30fc5ecb627c | {
"language": "C#"
} | ```c#
using System;
namespace WeifenLuo.WinFormsUI.Docking
{
using System.ComponentModel;
public partial class DockPanel
{
private DockPanelSkin m_dockPanelSkin = VS2005Theme.CreateVisualStudio2005();
[LocalizedCategory("Category_Docking")]
[LocalizedDescription("DockPanel_DockPan... | ```c#
using System;
namespace WeifenLuo.WinFormsUI.Docking
{
using System.ComponentModel;
public partial class DockPanel
{
private DockPanelSkin m_dockPanelSkin = VS2005Theme.CreateVisualStudio2005();
[LocalizedCategory("Category_Docking")]
[LocalizedDescription("DockPanel_DockPan... |
4b5f94bf-b331-43f7-ac8e-231fd2bf26e6 | {
"language": "C#"
} | ```c#
using Mazzimo.Models;
using Mazzimo.Repositories;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Mazzimo.Controllers
{
public class HomeController : Controller
{
IPostRepository _postRepo;
IResum... | ```c#
using Mazzimo.Models;
using Mazzimo.Repositories;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Mazzimo.Controllers
{
public class HomeController : Controller
{
IPostRepository _postRepo;
IResum... |
5643f89e-59a9-41aa-aa64-0f4fb2b152c7 | {
"language": "C#"
} | ```c#
extern alias pcl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;
namespace MetroLog
{
public static class GlobalCrashHandler
{
public static void Configure()
{
Application.Current.Unh... | ```c#
extern alias pcl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;
namespace MetroLog
{
public static class GlobalCrashHandler
{
public static void Configure()
{
Application.Current.Unh... |
03804c57-1298-4563-8e8b-50d812f1bdeb | {
"language": "C#"
} | ```c#
using NUnit.Framework;
namespace ConvNetSharp.Tests
{
[TestFixture]
public class ConvLayerTests
{
[Test]
public void GradientWrtInputCheck()
{
const int inputWidth = 10;
const int inputHeight = 10;
const int inputDepth = 2;
// ... | ```c#
using NUnit.Framework;
namespace ConvNetSharp.Tests
{
[TestFixture]
public class ConvLayerTests
{
[Test]
public void GradientWrtInputCheck()
{
const int inputWidth = 30;
const int inputHeight = 30;
const int inputDepth = 2;
// ... |
75eaa02d-3b4d-4b3d-8fab-7fbf18bc0051 | {
"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.Threading;
#nullable enable
namespace osu.Framework.Threading
{
/// <summary>
/// A synchronisation context which posts all continuatiuons to... |
8fec73d7-597e-4efe-b8ce-6b9d5282cc54 | {
"language": "C#"
} | ```c#
using System;
using System.Web.UI.WebControls;
namespace R7.HelpDesk
{
public partial class AdminSettings
{
protected Panel pnlAdminSettings;
protected Panel pnlAdministratorRole;
protected Panel pnlUploFilesPath;
protected Panel pnlTagsAdmin;
protected Panel pnlRoles;
protected Butto... | ```c#
using System;
using System.Web.UI.WebControls;
namespace R7.HelpDesk
{
public partial class AdminSettings
{
protected Panel pnlAdminSettings;
protected Panel pnlAdministratorRole;
protected Panel pnlUploFilesPath;
protected Panel pnlTagsAdmin;
protected Panel pnlRoles;
protected Butto... |
dee4a59e-382c-4c72-873b-cf56459a5d50 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CodeBreaker.Core;
using CodeBreaker.Core.Storage;
using Microsoft.EntityFrameworkCore;
namespace CodeBreaker.WebApp.Storage
{
public class ScoreStore : IScoreStore
{
private readonly CodeBreaker... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CodeBreaker.Core;
using CodeBreaker.Core.Storage;
using Microsoft.EntityFrameworkCore;
namespace CodeBreaker.WebApp.Storage
{
public class ScoreStore : IScoreStore
{
private readonly CodeBreaker... |
664e486a-5c03-435e-9b61-b0f8d3ac5ee6 | {
"language": "C#"
} | ```c#
using System;
using System.Linq;
using System.Net.NetworkInformation;
namespace HttpMock.Integration.Tests
{
internal static class PortHelper
{
internal static int FindLocalAvailablePortForTesting()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
var activeTc... | ```c#
using System;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
namespace HttpMock.Integration.Tests
{
internal static class PortHelper
{
internal static int FindLocalAvailablePortForTesting()
{
const int minPort = 1024;
var random = new Random();
var m... |
e21e8bf7-0108-4069-bce1-5a61602e662a | {
"language": "C#"
} | ```c#
using System.Data;
using System.Linq;
namespace ZocMonLib
{
public class StorageCommandsSupport : IStorageCommandsSupport
{
public string SelectCurrentReduceStatus(IDbConnection conn)
{
var result = DatabaseSqlHelper.CreateListWithConnection<bool>(conn, StorageCommandsSqlServe... | ```c#
using System.Data;
using System.Linq;
namespace ZocMonLib
{
public class StorageCommandsSupport : IStorageCommandsSupport
{
public string SelectCurrentReduceStatus(IDbConnection conn)
{
const string sql = @"SELECT TOP(1) IsReducing FROM Settings";
var result = Dat... |
bf1ed1f3-7169-4d51-8486-82a9bc4dab14 | {
"language": "C#"
} | ```c#
// Copyright 2013 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
namespace NodaTime.Annotations
{
/// <summary>
/// Indicates that a type is immutable. Some members of this type
... | ```c#
// Copyright 2013 The Noda Time Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0,
// as found in the LICENSE.txt file.
using System;
namespace NodaTime.Annotations
{
/// <summary>
/// Indicates that a type is mutable. Some members of this type
/// allow ... |
26756d69-01b3-4d83-a3d2-2eb6ac54f4ce | {
"language": "C#"
} | ```c#
// Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
using Wangkanai.Detection.Extensions;
using Wangkanai.Detection.Models;
namespace Wangkanai.Detection.Services
{
public class PlatformService : IPlatformService
... | ```c#
// Copyright (c) 2014-2020 Sarin Na Wangkanai, All Rights Reserved.
// The Apache v2. See License.txt in the project root for license information.
using Wangkanai.Detection.Extensions;
using Wangkanai.Detection.Models;
namespace Wangkanai.Detection.Services
{
public class PlatformService : IPlatformService
... |
b1240b9a-3cca-44bd-9d8e-0ee1a73ce1f6 | {
"language": "C#"
} | ```c#
// Automatically generated by Opus v0.50
namespace CopyTest1
{
class CopySingleFileTest : FileUtilities.CopyFile
{
public CopySingleFileTest()
{
this.SetRelativePath(this, "data", "testfile.txt");
this.UpdateOptions += delegate(Opus.Core.IModule module, Opus... | ```c#
// Automatically generated by Opus v0.50
namespace CopyTest1
{
class CopySingleFileTest : FileUtilities.CopyFile
{
public CopySingleFileTest()
{
this.SetRelativePath(this, "data", "testfile.txt");
this.UpdateOptions += delegate(Opus.Core.IModule module, Opus... |
aae9346a-f426-4f2f-9634-0ae1c4f3f322 | {
"language": "C#"
} | ```c#
using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("EVE-O Preview")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("EVE-O Preview")]
[assembly: AssemblyCopyright("")... | ```c#
using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("EVE-O Preview")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("EVE-O Preview")]
[assembly: AssemblyCopyright("")... |
331597bd-907d-4b89-80c4-f98f4ffc1da4 | {
"language": "C#"
} | ```c#
using System;
using Diskordia.Columbus.Bots.FareDeals;
using Diskordia.Columbus.Bots.FareDeals.SingaporeAirlines;
using Diskordia.Columbus.Common;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Diskordia.Columbus.Bots
{
public static class BotsExtensions
{
... | ```c#
using System;
using Diskordia.Columbus.Bots.FareDeals;
using Diskordia.Columbus.Bots.FareDeals.SingaporeAirlines;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Diskordia.Columbus.Bots
{
public static class BotsExtensions
{
public static IServiceCollectio... |
b9925836-1f3a-4009-924c-e8d984068cb1 | {
"language": "C#"
} | ```c#
using System;
using System.Linq;
namespace FibCSharp
{
class Program
{
static void Main(string[] args)
{
var max = 50;
Enumerable.Range(0, int.MaxValue)
.Select(Fib)
.TakeWhile(x => x <= max)
.ToList()
... | ```c#
using System;
using System.Linq;
namespace FibCSharp
{
class Program
{
static void Main(string[] args)
{
var max = 50;
Enumerable.Range(0, int.MaxValue)
.Select(Fib)
.TakeWhile(x => x <= max)
.ToList()
... |
acb3f8b4-6867-4720-a19d-22d9c10a2850 | {
"language": "C#"
} | ```c#
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace T4TS.Tests
{
[TestClass]
public class ModuleOutputAppenderTests
{
[TestMethod]
public void ModuleOutputApp... | ```c#
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace T4TS.Tests
{
[TestClass]
public class ModuleOutputAppenderTests
{
[TestMethod]
public void TypescriptVersi... |
abf76a9e-8e8f-40d9-b1eb-96b4ab914521 | {
"language": "C#"
} | ```c#
using UnityEngine;
using System.Reflection;
[assembly: AssemblyVersion("0.5.0.*")]
public class Loader : MonoBehaviour
{
/// <summary>
/// DebugUI prefab to instantiate.
/// </summary>
[SerializeField]
private GameObject _debugUI;
/// <summary>
/// ModalDialog prefab to... | ```c#
using UnityEngine;
using System.Reflection;
[assembly: AssemblyVersion("0.5.1.*")]
public class Loader : MonoBehaviour
{
/// <summary>
/// DebugUI prefab to instantiate.
/// </summary>
[SerializeField]
private GameObject _debugUI;
/// <summary>
/// ModalDialog prefab to... |
d7ac8034-26cf-4e92-8dd1-8932d8cb5d60 | {
"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 CoreGraphics;
using UIKit;
namespace osu.Framework.iOS
{
internal class GameViewController : UIViewController
{
public override bool Prefers... | ```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 CoreGraphics;
using UIKit;
namespace osu.Framework.iOS
{
internal class GameViewController : UIViewController
{
public override bool Prefers... |
3f1731df-99ae-40ad-be0c-c9ecd306b4a4 | {
"language": "C#"
} | ```c#
// Copyright 2021 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;
namespace Nuke.Common.Execution
{
internal class HandleHelpRequestsAttribute : BuildExtensionAttributeBase... | ```c#
// Copyright 2021 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;
namespace Nuke.Common.Execution
{
internal class HandleHelpRequestsAttribute : BuildExtensionAttributeBase... |
31a9b38c-43d4-4886-a332-e4ef5ced202d | {
"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.IO.Stores;
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
using osu.Game.Scoring.Legacy;
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 System;
using System.Linq;
using osu.Framework.IO.Stores;
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
using osu.Game.Scoring.Legacy;
namespace osu.Game... |
4f07f0bc-ad59-4189-85b1-95a9d38c33a0 | {
"language": "C#"
} | ```c#
using Nancy;
using Okanshi.Dashboard.Models;
namespace Okanshi.Dashboard
{
public class DashboardModule : NancyModule
{
private readonly IGetHealthChecks _getHealthChecks;
public DashboardModule(IConfiguration configuration, IGetMetrics getMetrics, IGetHealthChecks getHealthChecks)
{
_getHealthCheck... | ```c#
using Nancy;
using Okanshi.Dashboard.Models;
namespace Okanshi.Dashboard
{
public class DashboardModule : NancyModule
{
private readonly IGetHealthChecks _getHealthChecks;
public DashboardModule(IConfiguration configuration, IGetMetrics getMetrics, IGetHealthChecks getHealthChecks)
{
_getHealthCheck... |
249f9ec8-aad3-4493-8d15-b0a8e97abe15 | {
"language": "C#"
} | ```c#
using System;
using System.Threading;
#if PORTABLE
using System.Threading.Tasks;
#endif
namespace Polly.Utilities
{
/// <summary>
/// Time related delegates used to improve testability of the code
/// </summary>
public static class SystemClock
{
/// <summary>
/// Allows the ... | ```c#
using System;
using System.Threading;
namespace Polly.Utilities
{
/// <summary>
/// Time related delegates used to improve testability of the code
/// </summary>
public static class SystemClock
{
#if !PORTABLE
/// <summary>
/// Allows the setting of a custom Thread.Sleep impl... |
13cdae53-0a5c-4c66-a51f-dea4d451ae0e | {
"language": "C#"
} | ```c#
using System;
using System.Text;
using Microsoft.AspNetCore.Http;
namespace Hellang.Middleware.SpaFallback
{
public class SpaFallbackException : Exception
{
private const string Fallback = nameof(SpaFallbackExtensions.UseSpaFallback);
private const string StaticFiles = "UseStaticFiles";... | ```c#
using System;
using System.Text;
using Microsoft.AspNetCore.Http;
namespace Hellang.Middleware.SpaFallback
{
public class SpaFallbackException : Exception
{
private const string Fallback = nameof(SpaFallbackExtensions.UseSpaFallback);
private const string StaticFiles = "UseStaticFiles";... |
800bb099-312e-4604-8999-5599ccbb24e7 | {
"language": "C#"
} | ```c#
@*
* Copyright (c) gestaoaju.com.br - All rights reserved.
* Licensed under MIT (https://github.com/gestaoaju/commerce/blob/master/LICENSE).
*@
@{ Layout = "~/Views/Shared/_AppLayout.cshtml"; }
@section scripts
{
<script type="text/javascript" src="/js/overview.min.js" asp-append-version="true"></script>... | ```c#
@*
* Copyright (c) gestaoaju.com.br - All rights reserved.
* Licensed under MIT (https://github.com/gestaoaju/commerce/blob/master/LICENSE).
*@
@{ Layout = "~/Views/Shared/_AppLayout.cshtml"; }
@section scripts
{
<script type="text/javascript" src="/js/overview.min.js" asp-append-version="true"></script>... |
6556e103-b472-47fa-9337-e050bef0c461 | {
"language": "C#"
} | ```c#
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<div class="container body-content">
... | ```c#
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<div class="container body-content">
... |
dfc85c56-fc06-48c6-95f5-67acabf9e899 | {
"language": "C#"
} | ```c#
using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Logos.Git")]
[assembly: AssemblyDescription("Utility code for working with local git repos and the GitHub web API.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Logos Bible Software")]
[... | ```c#
using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Logos.Git")]
[assembly: AssemblyDescription("Utility code for working with local git repos and the GitHub web API.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Logos Bible Software")]
[... |
050f262b-3e7f-4e6a-bf9b-2e78abd200d4 | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
using System.Linq;
using Fake;
using Machine.Specifications;
namespace Test.FAKECore
{
public class when_encapsuting_strings
{
It should_encapsulate_without_special_chars =
() => TeamCityHelper.EncapsulateSpecialChars("Total 47, Failures 1, NotRun 0,... | ```c#
using System.Collections.Generic;
using System.Linq;
using Fake;
using Machine.Specifications;
namespace Test.FAKECore
{
public class when_encapsuting_strings
{
It should_encapsulate_without_special_chars =
() => TeamCityHelper.EncapsulateSpecialChars("Total 47, Failures 1, NotRun 0,... |
3c85db40-21b6-4682-8bc5-4b7d707ce0b9 | {
"language": "C#"
} | ```c#
---
Title: Documentation
---
<p>
We gladly accept your contributions. If there is something that you would like to add then you can edit the content directly on GitHub.
</p>
@foreach(IDocument child in Model.DocumentList(Keys.Children).OrderBy(x => x.Get<int>(DocsKeys.Order, 1000)))
{
<h1>@(child.String(... | ```c#
---
Title: Documentation
---
<div class="alert alert-info">
<p>
We gladly accept your contributions. If there is something that you would like to add then you can edit the content directly on GitHub.
</p>
</div>
@foreach(IDocument child in Model.DocumentList(Keys.Children).OrderBy(x => x.Get<int... |
f151745b-eb6c-4be4-9869-55131fabb440 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Bugsnag.Unity.Tests
{
public class TestConfiguration : IConfiguration
{
public TimeSpan MaximumLogsTimePeriod { get; set; }
public Dictionary<LogType, int> MaximumTypePerTimePeriod { get; set; }
public TimeSpan Unique... | ```c#
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Bugsnag.Unity.Tests
{
public class TestConfiguration : IConfiguration
{
public TimeSpan MaximumLogsTimePeriod { get; set; } = TimeSpan.FromSeconds(1);
public Dictionary<LogType, int> MaximumTypePerTimePeriod { get; set; }
... |
a4b8280e-ebff-49f8-aa96-2edd6d03f1a6 | {
"language": "C#"
} | ```c#
#region
using System;
using System.Drawing;
using Novacode;
using Tabster.Data;
using Tabster.Data.Processing;
#endregion
namespace WordDoc
{
public class WordDocExporter : ITablatureFileExporter
{
public WordDocExporter()
{
FileType = new FileType("Microsof... | ```c#
#region
using System;
using System.Drawing;
using Novacode;
using Tabster.Data;
using Tabster.Data.Processing;
#endregion
namespace WordDoc
{
public class WordDocExporter : ITablatureFileExporter
{
public WordDocExporter()
{
FileType = new FileType("Microsof... |
700861c9-d217-4855-bfbb-624f754f0306 | {
"language": "C#"
} | ```c#
using System;
using CIV.Formats;
using static System.Console;
namespace CIV
{
[Flags]
enum ExitCodes : int
{
Success = 0,
FileNotFound = 1,
ParsingFailed = 2,
VerificationFailed = 4
}
class Program
{
static void Main(string[] args)
{
try
... | ```c#
using System;
using System.Diagnostics;
using CIV.Formats;
using static System.Console;
namespace CIV
{
[Flags]
enum ExitCodes : int
{
Success = 0,
FileNotFound = 1,
ParsingFailed = 2,
VerificationFailed = 4
}
class Program
{
static void Main(string[] args)
... |
3b7c86f4-7757-49b1-bba3-9be4dfe9f614 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
namespace Graph
{
/// <summary>
/// Represents a graph.
/// </summary>
/// <typeparam name="V">The vertex type.</typeparam>
/// <typeparam name="E">The edge type.</typeparam>
public interface IGraph<V, E> : IEquatable<IGraph<V, E>> where E:... | ```c#
using System;
using System.Collections.Generic;
namespace Graph
{
/// <summary>
/// Represents a graph.
/// </summary>
/// <typeparam name="V">The vertex type.</typeparam>
/// <typeparam name="E">The edge type.</typeparam>
public interface IGraph<V, E> : IEquatable<IGraph<V, E>> where E:... |
10600de4-e450-46df-bfd9-b776bae111ae | {
"language": "C#"
} | ```c#
@using CkanDotNet.Api.Model
@using CkanDotNet.Web.Models
@using CkanDotNet.Web.Models.Helpers
@using System.Collections.Specialized
@model PackageSearchResultsModel
@{
var routeValues = RouteHelper.RouteFromParameters(Html.ViewContext);
// Remove the page number from the route values since we are doing client-... | ```c#
@using CkanDotNet.Api.Model
@using CkanDotNet.Web.Models
@using CkanDotNet.Web.Models.Helpers
@using System.Collections.Specialized
@model PackageSearchResultsModel
@{
var routeValues = RouteHelper.RouteFromParameters(Html.ViewContext);
// Remove the page number from the route values since we are doing client-... |
ac02c367-75b5-4bad-97bf-361a68a77f30 | {
"language": "C#"
} | ```c#
namespace Raccoon.Components {
public class Alarm : Component {
public Alarm(uint interval, System.Action action) {
NextActivationTimer = Interval = interval;
Action = action;
}
public System.Action Action { get; set; }
public uint Timer { get;... | ```c#
namespace Raccoon.Components {
public class Alarm : Component {
public Alarm(uint interval, System.Action action) {
NextActivationTimer = Interval = interval;
Action = action;
}
public System.Action Action { get; set; }
public uint Timer { get;... |
ee83ce97-91e1-44b6-a6e1-a7d542df3cc2 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlackAPI
{
[RequestPath("oauth.access")]
public class AccessTokenResponse : Response
{
public string access_token;
public string scope;
public string ... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SlackAPI
{
[RequestPath("oauth.access")]
public class AccessTokenResponse : Response
{
public string access_token;
public string scope;
public string ... |
3d809fad-cb3e-40a8-9785-640b3dbcdd5b | {
"language": "C#"
} | ```c#
using System;
using Mastodot.Entities;
using Mastodot.Exceptions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Mastodot.Utils.JsonConverters
{
internal class ErrorThrowJsonConverter<T> : JsonConverter
{
public override bool CanConvert(Type objectType)
{
return... | ```c#
using System;
using Mastodot.Entities;
using Mastodot.Exceptions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Mastodot.Utils.JsonConverters
{
internal class ErrorThrowJsonConverter<T> : JsonConverter
{
public override bool CanConvert(Type objectType)
{
return... |
453425ee-2932-450f-aee1-ba0ec1f0a0f6 | {
"language": "C#"
} | ```c#
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xunit.Performance;
using Xunit;
namespace SimplePerfTests
{
public class Document
{... | ```c#
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Xunit.Performance;
using Xunit;
namespace SimplePerfTests
{
... |
f301e2c2-ea18-43bc-a1df-944fbe412d4c | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Containers;
using osu.Game.Overlays;
namespace osu.Game.Tests.Visual.Settings
... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Containers;
using osu.Framework.Testing;
using osu.Game.Overlays;
namespace os... |
ec23aaa5-d200-482a-968c-6d54399aff5f | {
"language": "C#"
} | ```c#
using System;
namespace Glimpse.Agent.Web
{
public class IIgnoredRequestPolicy
{
}
}```
Update interface for ignored request policy | ```c#
using System;
namespace Glimpse.Agent.Web
{
public interface IIgnoredRequestPolicy
{
bool ShouldIgnore(IContext context);
}
}``` |
c0b77bb1-25c6-4da7-9cad-fbb4fe9acb4f | {
"language": "C#"
} | ```c#
using LibPixelPet;
using System;
namespace PixelPet.CLI.Commands {
internal class ClearTilesetCmd : CliCommand {
public ClearTilesetCmd()
: base("Clear-Tileset") { }
public override void Run(Workbench workbench, ILogger logger) {
int w = 8;
int h = 8;
workbench.Tileset = new Tileset(w, h);
... | ```c#
using LibPixelPet;
using System;
namespace PixelPet.CLI.Commands {
internal class ClearTilesetCmd : CliCommand {
public ClearTilesetCmd()
: base("Clear-Tileset",
new Parameter("tile-size", "s", false, new ParameterValue("width", "8"), new ParameterValue("height", "8"))
) { }
public override void... |
c0fca3e7-4215-4d2c-9150-823dd573f085 | {
"language": "C#"
} | ```c#
using System;
using Microsoft.BizTalk.Message.Interop;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Winterdom.BizTalk.PipelineTesting;
namespace BizTalkComponents.Utils.Tests.UnitTests
{
[TestClass]
public class ContextExtensionTests
{
private IBaseMessage _testMessage;
... | ```c#
using System;
using Microsoft.BizTalk.Message.Interop;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Winterdom.BizTalk.PipelineTesting;
namespace BizTalkComponents.Utils.Tests.UnitTests
{
[TestClass]
public class ContextExtensionTests
{
private IBaseMessage _testMessage;
... |
092c99e8-552c-4afd-a5a3-5722e07b3e38 | {
"language": "C#"
} | ```c#
// <copyright file="TJException.cs" company="Autonomic Systems, Quamotion">
// Copyright (c) Autonomic Systems. All rights reserved.
// Copyright (c) Quamotion. All rights reserved.
// </copyright>
using System;
namespace TurboJpegWrapper
{
// ReSharper disable once InconsistentNaming
/// <... | ```c#
// <copyright file="TJException.cs" company="Autonomic Systems, Quamotion">
// Copyright (c) Autonomic Systems. All rights reserved.
// Copyright (c) Quamotion. All rights reserved.
// </copyright>
using System;
namespace TurboJpegWrapper
{
// ReSharper disable once InconsistentNaming
/// <... |
fb69c8a7-322d-4807-92c0-1e81c9ac8adf | {
"language": "C#"
} | ```c#
using MobileKidsIdApp.Services;
using System.Threading.Tasks;
using System.Windows.Input;
using Xamarin.Forms;
using MobileKidsIdApp.Models;
namespace MobileKidsIdApp.ViewModels
{
public class BasicDetails : ViewModelBase<Models.ChildDetails>
{
private ContactInfo _contact;
public IComm... | ```c#
using MobileKidsIdApp.Services;
using System.Threading.Tasks;
using System.Windows.Input;
using Xamarin.Forms;
using MobileKidsIdApp.Models;
namespace MobileKidsIdApp.ViewModels
{
public class BasicDetails : ViewModelBase<Models.ChildDetails>
{
private ContactInfo _contact;
public IComm... |
a08d9ed4-802a-4ceb-95a0-5c7532b8f88c | {
"language": "C#"
} | ```c#
<!DOCTYPE html>
<html>
<head>
<title>@ViewData["Title"]</title>
<link rel="icon" type="image/png" href="favicon.png">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="~/style.css"/>
</head>
<body>
<div class="conta... | ```c#
<!DOCTYPE html>
<html>
<head>
<title>@ViewData["Title"]</title>
<link rel="icon" type="image/png" href="favicon.png">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="~/style.css"/>
</head>
<body>
<div class="conta... |
a646cf62-23a4-45a0-93fe-eefe105486de | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Framework.Graphics.Containers;
using osu.Framework.Screens... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using NUnit.Framework;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Framework.Graphics.Containers;
using osu.Framework.Screens... |
3e742c75-2c32-4a7c-a8df-fa20f5a54ff1 | {
"language": "C#"
} | ```c#
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace JemlemlacuLemjakarbabo
{
class Program
{
static void Main(string[] args)
{
CheckHResult(UnsafeNativeMethods.WICCodec.CreateImagingFactory(UnsafeNativeMethods.WICCodec.WINCODEC_SDK_VERSION,
... | ```c#
using System;
using System.IO;
using System.Runtime.InteropServices;
using Microsoft.Win32.SafeHandles;
namespace JemlemlacuLemjakarbabo
{
class Program
{
static void Main(string[] args)
{
CheckHResult(UnsafeNativeMethods.WICCodec.CreateImagingFactory(UnsafeNativeMethods.WICC... |
a61f38df-2372-426b-ad86-e3ed429c6b11 | {
"language": "C#"
} | ```c#
using System.Linq;
using ITCO.SboAddon.Framework.Helpers;
using SAPbobsCOM;
namespace ITCO.SboAddon.Framework.Extensions
{
public static class UserQueryExtensions
{
public static string GetOrCreateUserQuery(this Company company, string userQueryName, string userQueryDefaultQuery)
{
... | ```c#
using System.Linq;
using System.Text.RegularExpressions;
using ITCO.SboAddon.Framework.Helpers;
using SAPbobsCOM;
namespace ITCO.SboAddon.Framework.Extensions
{
public static class UserQueryExtensions
{
/// <summary>
/// Get or create User Query
/// </summary>
/// <param... |
8e03b361-a182-42c9-b494-2192718b6684 | {
"language": "C#"
} | ```c#
using System.Runtime.InteropServices;
using System.Windows.Forms;
using ExcelDna.Integration.CustomUI;
namespace Ribbon
{
[ComVisible(true)]
public class RibbonController : ExcelRibbon
{
public override string GetCustomUI(string RibbonID)
{
return @"
<customUI xmlns... | ```c#
using System.Runtime.InteropServices;
using System.Windows.Forms;
using ExcelDna.Integration.CustomUI;
namespace Ribbon
{
[ComVisible(true)]
public class RibbonController : ExcelRibbon
{
public override string GetCustomUI(string RibbonID)
{
return @"
<customUI xmlns... |
ec2608c9-65d4-46a8-92db-c654c6f2eaa6 | {
"language": "C#"
} | ```c#
namespace ClojSharp.Core.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClojSharp.Core.Compiler;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class EvaluateTests
{
private Machi... | ```c#
namespace ClojSharp.Core.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClojSharp.Core.Compiler;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class EvaluateTests
{
private Machi... |
9cdd79bb-2d1d-4bb6-8058-a7567bc79614 | {
"language": "C#"
} | ```c#
using System;
using System.Diagnostics;
using StreamCompanionTypes.DataTypes;
using StreamCompanionTypes.Enums;
namespace OsuMemoryEventSource
{
public class LiveToken
{
public IToken Token { get; set; }
public Func<object> Updater;
public bool IsLazy { get; set; }
protect... | ```c#
using System;
using System.Diagnostics;
using StreamCompanionTypes.DataTypes;
using StreamCompanionTypes.Enums;
namespace OsuMemoryEventSource
{
public class LiveToken
{
public IToken Token { get; set; }
public Func<object> Updater;
public bool IsLazy { get; set; }
protect... |
7a7737b6-99bd-425b-a9a3-6e419019e257 | {
"language": "C#"
} | ```c#
// Copyright 2007-2010 The Apache Software Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unle... | ```c#
// Copyright 2007-2010 The Apache Software Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unle... |
99129791-0638-4077-8dc0-fb3356741474 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using Arango.Client;
using Arango.fastJSON;
namespace Arango.ConsoleTests
{
class Program
{
public static void Main(string[] args)
{
var performance = new Performance();
//performance.TestSi... | ```c#
using System;
using System.Collections.Generic;
using Arango.Client;
using Arango.fastJSON;
namespace Arango.ConsoleTests
{
class Program
{
public static void Main(string[] args)
{
//PerformanceTests();
Console.Write("Press any key to con... |
ed994af6-9fab-4864-bfa5-f001c5236a44 | {
"language": "C#"
} | ```c#
// Copyright (c) PocketCampus.Org 2014-15
// See LICENSE file for more details
// File author: Solal Pirelli
using System;
using Windows.ApplicationModel;
using Windows.System;
namespace PocketCampus.Main.Services
{
public sealed class AppRatingService : IAppRatingService
{
public a... | ```c#
// Copyright (c) PocketCampus.Org 2014-15
// See LICENSE file for more details
// File author: Solal Pirelli
using System;
using Windows.System;
namespace PocketCampus.Main.Services
{
public sealed class AppRatingService : IAppRatingService
{
private const string AppId = "28f8300e-8a... |
20149ce1-a923-4b8c-92bc-7eb2006a2c0f | {
"language": "C#"
} | ```c#
@model BatteryCommander.Web.Commands.UpdateSUTARequest
@using (Html.BeginForm("Edit", "SUTA", new { Model.Id }, FormMethod.Post, true, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary()
<div class="form-group form-group-lg">
@Htm... | ```c#
@model BatteryCommander.Web.Commands.UpdateSUTARequest
@using (Html.BeginForm("Edit", "SUTA", new { Model.Id }, FormMethod.Post, true, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary()
<div class="form-group form-group-lg">
@Htm... |
c6192ef4-db77-42b2-ba6c-09f01a31488e | {
"language": "C#"
} | ```c#
using UnityEngine;
using System.Collections;
namespace UDBase.Components.Log {
public class LogTags {
public const int Common = 1;
public const int UI = 2;
string[] _names = new string[]{"Common", "UI"};
public virtual string GetName(int index) {
switch( index ) {
case Common: {
retu... | ```c#
using UnityEngine;
using System.Collections;
namespace UDBase.Components.Log {
public class LogTags {
public const int Common = 1;
public const int UI = 2;
public const int Scene = 3;
string[] _names = new string[]{"Common", "UI", "Scene"};
public virtual string GetName(int index) {
switch(... |
abf8c265-e146-4230-8366-2599074d03e1 | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
namespace Nowin
{
public class IpIsLocalChecker : IIpIsLocalChecker
{
readonly Dictionary<IPAddress, bool> _dict;
public IpIsLocalChecker()
{
var host = Dns.GetHostEntry(D... | ```c#
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
namespace Nowin
{
public class IpIsLocalChecker : IIpIsLocalChecker
{
readonly Dictionary<IPAddress, bool> _dict;
public IpIsLocalChecker()
{
var host = Dns.GetHostEntry(D... |
c5f73a5c-cfc9-4a96-8995-8d844fd17d37 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using FubuCore;
using FubuCore.Descriptions;
using FubuCore.Logging;
using FubuCore.Util;
using NLog;
using Logger = NLog.Logger;
namespace FubuMVC.NLog
{
public class NLogListener : ILogListener
{
private re... | ```c#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using FubuCore;
using FubuCore.Descriptions;
using FubuCore.Logging;
using FubuCore.Util;
using NLog;
using Logger = NLog.Logger;
namespace FubuMVC.NLog
{
public class NLogListener : ILogListener
{
private re... |
d8306c8c-8c0b-4e55-8026-01a760e3eae9 | {
"language": "C#"
} | ```c#
namespace Moya.Runner.Factories
{
using System;
using System.Collections.Generic;
using Attributes;
using Exceptions;
using Extensions;
using Moya.Utility;
using Runners;
public class TestRunnerFactory : ITestRunnerFactory
{
private readonly IDictionary<Type, Type> at... | ```c#
namespace Moya.Runner.Factories
{
using System;
using System.Collections.Generic;
using Attributes;
using Exceptions;
using Extensions;
using Moya.Utility;
using Runners;
public class TestRunnerFactory : ITestRunnerFactory
{
private readonly IDictionary<Type, Type> at... |
4f0260bc-b707-4da1-8119-9dcb30810d13 | {
"language": "C#"
} | ```c#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using osu.Game.Online.Multiplayer;
using osu.Game.Screens.Multi;
namespace osu.Game.Screens.Select
{
public class MatchSongSelect : SongSelect,... | ```c#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using Humanizer;
using osu.Game.Online.Multiplayer;
using osu.Game.Screens.Multi;
namespace osu.Game.Screens.Select
{
public class MatchSongSel... |
ed3fbad2-f107-4615-bd55-988b9ab462d5 | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Users;
using osu.Game.Rulesets;
namespace osu.Game.Online.API.Requests
{
public class GetUserRequest : APIRequest<User>
{
private r... | ```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.Users;
using osu.Game.Rulesets;
namespace osu.Game.Online.API.Requests
{
public class GetUserRequest : APIRequest<User>
{
private r... |
5edc234c-faa9-4276-b925-a757110f9ed6 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ploeh.AutoFixture.Kernel;
namespace Ploeh.AutoFixture
{
/// <summary>
/// Decorates an <see cref="ISpecimenBuilder" /> with a
/// <see cref="OmitOnRecursionGuard" />.
/// </summary>
public... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ploeh.AutoFixture.Kernel;
namespace Ploeh.AutoFixture
{
/// <summary>
/// Decorates an <see cref="ISpecimenBuilder" /> with a
/// <see cref="RecursionGuard" />.
/// </summary>
public class... |
b47ffc2a-6c33-49cd-9210-c03a66d5b02c | {
"language": "C#"
} | ```c#
using System;
using System.Threading.Tasks;
namespace DanTup.DartAnalysis
{
class VersionRequest : Request<Response<VersionResponse>>
{
public string method = "server.getVersion";
}
class VersionResponse
{
public string version = null;
}
public static class VersionRequestImplementation
{
public s... | ```c#
using System;
using System.Threading.Tasks;
namespace DanTup.DartAnalysis
{
class ServerVersionRequest : Request<Response<ServerVersionResponse>>
{
public string method = "server.getVersion";
}
class ServerVersionResponse
{
public string version = null;
}
public static class ServerVersionRequestImpl... |
b41a2c9c-2826-4317-a7c8-73e126fd0869 | {
"language": "C#"
} | ```c#
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace LiteDB.Tests
{
public class LargeDoc
{
public ObjectId Id { get; set; }
... | ```c#
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace LiteDB.Tests
{
public class LargeDoc
{
public ObjectId Id { get; set; }
... |
7e4b4957-0834-486f-b9d4-c762838b927d | {
"language": "C#"
} | ```c#
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Threading.Tasks;
namespace Microsoft.Fx.Portability
{
public interface IObjectCache<TObject> : IDisposable
{
TObject ... | ```c#
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Threading.Tasks;
namespace Microsoft.Fx.Portability
{
public interface IObjectCache : IDisposable
{
Task UpdateAsync(... |
9e99bd5f-f028-40dd-bbec-1ea07f3686b5 | {
"language": "C#"
} | ```c#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour {
public float movementSpeed = 1.0f;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
var x = Input.GetAxis("Hori... | ```c#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour {
public float movementSpeed = 1.0f;
private bool isMovementLocked = false;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Up... |
a1f9afad-26fd-40cc-a210-1bd9af9e0456 | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Backend.Models;
using WalletWasabi.Interfaces;
namespace WalletWasabi.WebClients.SmartBit
{
public class SmartBitExchangeRateProvider : IExchangeRateProvider
{
private SmartBitClient... | ```c#
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Backend.Models;
using WalletWasabi.Interfaces;
namespace WalletWasabi.WebClients.SmartBit
{
public class SmartBitExchangeRateProvider : IExchangeRateProvider
{
private SmartBitClient... |
0e5c1ade-c783-48c0-a704-46067e48126b | {
"language": "C#"
} | ```c#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Timing;
namespace osu.Framework.Audio.Track
{
public class TrackVirtual : Track
{
private readonly Stopwatc... | ```c#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using osu.Framework.Timing;
namespace osu.Framework.Audio.Track
{
public class TrackVirtual : Track
{
private readonly Stopwatc... |
74fc05fb-0e45-44ab-85cb-da8999432ed4 | {
"language": "C#"
} | ```c#
namespace Adaptive.ReactiveTrader.Client.UI.SpotTiles
{
public static class PriceFormatter
{
public static FormattedPrice GetFormattedPrice(decimal rate, int precision, int pipsPosition)
{
var rateAsString = rate.ToString("0." + new string('0', precision));
var do... | ```c#
using System.Globalization;
namespace Adaptive.ReactiveTrader.Client.UI.SpotTiles
{
public static class PriceFormatter
{
public static FormattedPrice GetFormattedPrice(decimal rate, int precision, int pipsPosition)
{
var rateAsString = rate.ToString("0." + new string('0', pre... |
3b107c9b-054c-47ec-b0d8-5062bd6e518c | {
"language": "C#"
} | ```c#
using System.Windows;
using System.Windows.Shell;
using GitMind.ApplicationHandling.SettingsHandling;
namespace GitMind.Common
{
public class JumpListService
{
private static readonly int MaxTitleLength = 25;
public void Add(string workingFolder)
{
JumpList jumpList = JumpList.GetJumpList(Applicat... | ```c#
using System.IO;
using System.Windows;
using System.Windows.Shell;
using GitMind.ApplicationHandling.SettingsHandling;
namespace GitMind.Common
{
public class JumpListService
{
private static readonly int MaxTitleLength = 25;
public void Add(string workingFolder)
{
JumpList jumpList = JumpList.Get... |
67922e29-691a-4823-a7b0-45b2ea88d071 | {
"language": "C#"
} | ```c#
@inherits UmbracoViewPage<BlockListModel>
@using ContentModels = Umbraco.Web.PublishedModels;
@using Umbraco.Core.Models.Blocks
@{
if (Model?.Layout == null || !Model.Layout.Any()) { return; }
}
<div class="umb-block-list">
@foreach (var layout in Model.Layout)
{
if (layout?.Udi == null) { co... | ```c#
@inherits UmbracoViewPage<BlockListModel>
@using ContentModels = Umbraco.Web.PublishedModels;
@using Umbraco.Core.Models.Blocks
@{
if (Model?.Layout == null || !Model.Layout.Any()) { return; }
}
<div class="umb-block-list">
@foreach (var layout in Model.Layout)
{
if (layout?.Udi == null) { co... |
99200047-d73f-4d34-81b4-5799289d37fd | {
"language": "C#"
} | ```c#
@model InfinysBreakfastOrders.Web.InputModels.Orders.OrderInputModel
@{
ViewBag.Title = "Post New Order";
}
<h1>@ViewBag.Title</h1>
@using (Html.BeginForm("NewOrder", "Orders", FormMethod.Post))
{
<div class="row">
@Html.LabelFor(model => model.OrderDate)
@Html.TextBoxFor(model => model... | ```c#
@model InfinysBreakfastOrders.Web.InputModels.Orders.OrderInputModel
@{
ViewBag.Title = "Post New Order";
}
<h1>@ViewBag.Title</h1>
@using (Html.BeginForm("NewOrder", "Orders", FormMethod.Post))
{
<div class="row">
@Html.LabelFor(model => model.OrderDate)
@Html.TextBoxFor(model => model... |
c55539f2-632d-4ff5-b2aa-40b337d99122 | {
"language": "C#"
} | ```c#
@model WuzlStats.ViewModels.Player.TeamPlayerStats
<div class="panel panel-default">
<div class="panel-heading">Teams</div>
<div class="panel-body">
<div class="row">
<div class="col-sm-4">
<label>Games played:</label>
</div>
<div class="col-s... | ```c#
@model WuzlStats.ViewModels.Player.TeamPlayerStats
<div class="panel panel-default">
<div class="panel-heading">Teams</div>
<div class="panel-body">
<div class="row">
<div class="col-sm-4">
<label>Games played:</label>
</div>
<div class="col-s... |
fdec9ef8-b314-4247-9f90-3a699a5a56f2 | {
"language": "C#"
} | ```c#
using System.Web;
using Newtonsoft.Json;
using System;
namespace TropoCSharp.Tropo
{
/// <summary>
/// A utility class to render a Tropo object as JSON.
/// </summary>
public static class TropoJSONExtensions
{
public static void RenderJSON(this Tropo tropo, HttpResponse response)
... | ```c#
using System.Web;
using Newtonsoft.Json;
using System;
namespace TropoCSharp.Tropo
{
/// <summary>
/// A utility class to render a Tropo object as JSON.
/// </summary>
public static class TropoJSONExtensions
{
public static void RenderJSON(this Tropo tropo, HttpResponse response)
... |
2ad4fbb6-b999-4760-ab47-c24109a8cf80 | {
"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.Platform;
namespace osu.Game.Tests
{
/// <summary>
/// A headless host which cleans up before running (removing any remnants from a pr... | ```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.Platform;
namespace osu.Game.Tests
{
/// <summary>
/// A headless host which cleans up before running (removing any remnants from a pr... |
d5ddb1b9-b072-442f-b8dd-4291b50c67c6 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Windows;
using Microsoft.Owin.Builder;
using Owin;
namespace CefSharp.Owin.Example.Wpf
{
//Shorthand for Owin pipeline func
using AppFunc = Func<IDictionary<string, object>, Task>;
/// <summary>
/// Inter... | ```c#
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Windows;
using Microsoft.Owin.Builder;
using Owin;
namespace CefSharp.Owin.Example.Wpf
{
//Shorthand for Owin pipeline func
using AppFunc = Func<IDictionary<string, object>, Task>;
/// <summary>
/// Inter... |
d95fd48d-6772-4ecb-960f-cfff06b9d525 | {
"language": "C#"
} | ```c#
namespace LibGit2Sharp.Core
{
internal enum GitErrorCategory
{
Unknown = -1,
NoMemory,
Os,
Invalid,
Reference,
Zlib,
Repository,
Config,
Regex,
Odb,
Index,
Object,
Net,
Tag,
Tree,
... | ```c#
namespace LibGit2Sharp.Core
{
internal enum GitErrorCategory
{
Unknown = -1,
None,
NoMemory,
Os,
Invalid,
Reference,
Zlib,
Repository,
Config,
Regex,
Odb,
Index,
Object,
Net,
Tag,
... |
d591e866-5394-4fbf-9c19-e756b4a5f690 | {
"language": "C#"
} | ```c#
using BatteryCommander.Web.Models;
using System;
using System.Collections.Generic;
using Xunit;
namespace BatteryCommander.Tests
{
public class FiscalYearTests
{
[Fact]
public void Check_FY_2017_Start()
{
}
}
}```
Add tests for FY handling | ```c#
using BatteryCommander.Web.Models;
using System;
using System.Collections.Generic;
using Xunit;
using BatteryCommander.Web.Services;
namespace BatteryCommander.Tests
{
public class FiscalYearTests
{
[Fact]
public void Check_FY_2017_Start()
{
Assert.Equal(new DateTime... |
0f5ea092-478a-4298-a2f5-0fe9edafbd17 | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using osu.Framework.Localisation;
using osu.Game.Resources.Localisation.Web;
namespace osu.Game.Overlays.BeatmapListing
{
public enum SortCr... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using osu.Framework.Localisation;
using osu.Game.Resources.Localisation.Web;
namespace osu.Game.Overlays.BeatmapListing
{
public enum SortCr... |
ec4f3c19-6f46-4465-8e98-00fad349dc40 | {
"language": "C#"
} | ```c#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
// TODO: Hide header when no items in dropdown
namespace osu.Framework.Graphics.UserInterface.Tab
{
public abstract class TabDropDownMenu<T> :... | ```c#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System.Linq;
namespace osu.Framework.Graphics.UserInterface.Tab
{
public abstract class TabDropDownMenu<T> : DropDownMenu<T>
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.