doc_id stringlengths 36 36 | metadata dict | input stringlengths 28 4.3k | output stringlengths 11 5.45k |
|---|---|---|---|
e2332db9-c5ca-4272-bc59-491bf09f646b | {
"language": "C#"
} | ```c#
#define DEBUG
using System;
using System.Threading.Tasks;
using Bit.Core.Contracts;
using Bit.Core.Models;
using System.Diagnostics;
namespace Bit.Owin.Implementations
{
public class DebugLogStore : ILogStore
{
private readonly IContentFormatter _formatter;
public DebugLogStore(IContent... | ```c#
#define DEBUG
using System;
using System.Threading.Tasks;
using Bit.Core.Contracts;
using Bit.Core.Models;
using System.Diagnostics;
namespace Bit.Owin.Implementations
{
public class DebugLogStore : ILogStore
{
private readonly IContentFormatter _formatter;
public DebugLogStore(IContent... |
e1fbf260-e474-473d-a499-e42f8999f036 | {
"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.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using NUnit.Framework;
namespace osu.Framework.Extensions.ObjectExtensions
{
/// <summary>
... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Diagnostics.CodeAnalysis;
namespace osu.Framework.Extensions.ObjectExtensions
{
/// <summary>
/// Extensions that apply to all objects.
//... |
eff92874-7260-4e7f-9c0f-8ade9c4e0be2 | {
"language": "C#"
} | ```c#
using System;
using System.Runtime.InteropServices;
namespace Sodium
{
/// <summary>
/// libsodium core information.
/// </summary>
public static class SodiumCore
{
static SodiumCore()
{
SodiumLibrary.init();
}
/// <summary>Gets random bytes</summary>
/// <param name="count">... | ```c#
using System;
using System.Runtime.InteropServices;
namespace Sodium
{
/// <summary>
/// libsodium core information.
/// </summary>
public static class SodiumCore
{
static SodiumCore()
{
SodiumLibrary.init();
}
/// <summary>Gets random bytes</summary>
/// <param name="count">... |
3d634c51-05ae-4235-bafc-d9e09fb8fea8 | {
"language": "C#"
} | ```c#
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using System.Linq;
namespace YesAndEditor {
// Static class packed to the brim with helpful Unity editor utilities.
public static class YesAndEditorUtil {
// Forcefully mark open loaded scenes dirty and save them.
[MenuItem ("File/... | ```c#
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using System.Linq;
namespace YesAndEditor {
// Static class packed to the brim with helpful Unity editor utilities.
public static class YesAndEditorUtil {
// Forcefully mark open loaded scenes dirty and save them.
[MenuItem ("File/... |
c91eac40-6f2c-4792-b978-354b86ce0b09 | {
"language": "C#"
} | ```c#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.VisualStudio.TemplateWizard;
namespace Microsoft.NodejsTools.ProjectWizard
... | ```c#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using Microsoft.VisualStudio.TemplateWizard;
namespace Microsoft.NodejsToo... |
f2f8f3c4-a852-4b5a-90a7-4b7f0e9d6f0d | {
"language": "C#"
} | ```c#
using Microsoft.VisualStudio.ConnectedServices;
using System;
using System.ComponentModel.Composition;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace Salesforce.VisualStudio.Services.ConnectedService
{
[Export(typeof(Connected... | ```c#
using Microsoft.VisualStudio.ConnectedServices;
using System;
using System.ComponentModel.Composition;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;
namespace Salesforce.VisualStudio.Services.ConnectedService
{
[Export(typeof(ConnectedServiceProvider))]
[Expo... |
0c3a315d-f9cb-4089-9969-be6236e1df63 | {
"language": "C#"
} | ```c#
using Newtonsoft.Json;
using System.Collections.Generic;
namespace SurveyMonkey.Containers
{
[JsonConverter(typeof(TolerantJsonConverter))]
public class QuestionDisplayOptionsCustomOptions
{
public List<string> OptionSet { get; set; }
public int StartingPosition { get; set; }
... | ```c#
using Newtonsoft.Json;
using System.Collections.Generic;
namespace SurveyMonkey.Containers
{
[JsonConverter(typeof(TolerantJsonConverter))]
public class QuestionDisplayOptionsCustomOptions
{
public List<string> OptionSet { get; set; }
public int StartingPosition { get; set; } //slide... |
f02f616f-2b5a-4fac-b220-8770924dc08a | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using CSharpViaTest.Collections.Annotations;
using CSharpViaTest.Collections.Helpers;
using Xunit;
namespace CSharpViaTest.Collections._30_MapReducePractices
{
[SuperEasy]
public class CountNumberOfWordsInMultipleTextFil... | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using CSharpViaTest.Collections.Annotations;
using CSharpViaTest.Collections.Helpers;
using Xunit;
namespace CSharpViaTest.Collections._30_MapReducePractices
{
[SuperEasy]
public class CountNumberOfWordsInMultipleTextFil... |
bd0ed7e3-ff52-43e7-81ec-c258eb0aeb98 | {
"language": "C#"
} | ```c#
using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public class CatIndicesRecord : ICatRecord
{
[JsonProperty("docs.count")]
public string DocsCount { get; set; }
[JsonProperty("docs.deleted")]
public string DocsDeleted { get; set; }
[JsonProperty("health")]
public string Health { get; set; }... | ```c#
using Newtonsoft.Json;
namespace Nest
{
[JsonObject]
public class CatIndicesRecord : ICatRecord
{
[JsonProperty("docs.count")]
public string DocsCount { get; set; }
[JsonProperty("docs.deleted")]
public string DocsDeleted { get; set; }
[JsonProperty("health")]
public string Health { get; set; }... |
f1cc2338-8c08-49ed-b6b4-3f4ce82bde56 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
namespace Rs317.Sharp
{
public static class RsUnityPlatform
{
public static bool isWebGLBuild => true;
public static bool isPlaystationBuild => Application.platform == RuntimePlatform.PS4 || Application.platform == Runt... | ```c#
using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
namespace Rs317.Sharp
{
public static class RsUnityPlatform
{
public static bool isWebGLBuild => Application.platform == RuntimePlatform.WebGLPlayer;
public static bool isPlaystationBuild => Application.platform == Runt... |
d9375ae0-15d3-4d97-b858-f44dd0aaaa46 | {
"language": "C#"
} | ```c#
namespace DW.ELA.Interfaces.Events
{
using Newtonsoft.Json;
public class ModuleEngineering
{
[JsonProperty("Engineer")]
public string Engineer { get; set; }
[JsonProperty("EngineerID")]
public ulong EngineerId { get; set; }
[JsonProperty("BlueprintID")]
... | ```c#
namespace DW.ELA.Interfaces.Events
{
using Newtonsoft.Json;
public class ModuleEngineering
{
[JsonProperty("Engineer")]
public string Engineer { get; set; }
[JsonProperty("EngineerID")]
public ulong EngineerId { get; set; }
[JsonProperty("BlueprintID")]
... |
c0bdf3fd-4735-4e96-9982-a7816afbba78 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using Awesomium.Core;
using ProjectMarkdown.Annotations;
namespace ProjectMarkdown.Model
{
public class DocumentModel : INot... | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using Awesomium.Core;
using ProjectMarkdown.Annotations;
namespace ProjectMarkdown.Model
{
public class DocumentModel : INot... |
52925b95-70d9-4f28-9562-c743ad14a2b2 | {
"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.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests
{
public class GetUserRecentActivitiesR... | ```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.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests
{
public class GetUserRecentActivitiesR... |
c11b305d-6436-47d2-8015-88d8c8627f5d | {
"language": "C#"
} | ```c#
//-----------------------------------------------------------------------
// <copyright file="ShareListingDetails.cs" company="Microsoft">
// Copyright 2013 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with ... | ```c#
//-----------------------------------------------------------------------
// <copyright file="ShareListingDetails.cs" company="Microsoft">
// Copyright 2013 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with ... |
442e38d9-4faa-4070-bafc-e7bc3f3a5656 | {
"language": "C#"
} | ```c#
// <auto-generated/>
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitleAttribute("Elders.Multithreading.Scheduler")]
[assembly: AssemblyDescriptionAttribute("The idea is to create a dedicated threads for a particular work. The WorkPool class does not use the standard .NET th... | ```c#
// <auto-generated/>
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitleAttribute("Elders.Multithreading.Scheduler")]
[assembly: AssemblyDescriptionAttribute("The idea is to create a dedicated threads for a particular work. The WorkPool class does not use the standard .NET th... |
0107df51-72e5-49df-a8eb-b9f7ccb24bd6 | {
"language": "C#"
} | ```c#
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Tgstation.Server.Host.Core.Tests
{
[TestClass]
public sealed class TestAsyncDelayer
{
[TestMethod]
public async Task TestDelay()
{
var delayer = new AsyncDelayer();
va... | ```c#
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Tgstation.Server.Host.Core.Tests
{
[TestClass]
public sealed class TestAsyncDelayer
{
[TestMethod]
public async Task TestDelay()
{
var delayer = new AsyncDelayer();
va... |
1981cf8e-cea9-44ff-9e23-34e9addfd7b8 | {
"language": "C#"
} | ```c#
using Models;
using Services.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Services
{
public class AdminService : IAdmin
{
private readonly IDataService dataService;
public AdminService(IDataServ... | ```c#
using Models;
using Services.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Services
{
public class AdminService : IAdmin
{
private readonly IDataService dataService;
public AdminSer... |
6487facf-f97b-4a74-a3d9-87fb86c8ed84 | {
"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;
using System.Collections.Immutable;
using System.Composition;
using Microsoft.CodeAnalysis.Host... | ```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.
#nullable enable
using System;
using System.Collections.Immutable;
using System.Composition;
using Microsoft... |
09308f54-d1ec-48dc-84fa-e570f255fc94 | {
"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.Beatmaps.Formats;
using System;
using System.Globalization;
namespace osu.Game.Skinning
{
public class LegacySkinDecoder : LegacyDecoder<SkinCo... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Beatmaps.Formats;
using System;
using System.Globalization;
namespace osu.Game.Skinning
{
public class LegacySkinDecoder : LegacyDecoder<SkinCon... |
406fdbd4-58e0-4c50-bc0d-8799125a00ad | {
"language": "C#"
} | ```c#
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace core.Extensions.Data
{
public class AppDbContext : DbContext
{
static AppDbContext()
{
... | ```c#
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace core.Extensions.Data
{
public class AppDbContext : DbContext
{
static AppDbContext()
{
... |
799e575b-70b0-449d-90e6-95cff41a1414 | {
"language": "C#"
} | ```c#
using JetBrains.Application.BuildScript.Application.Zones;
using JetBrains.ReSharper.Psi.CSharp;
using JetBrains.ReSharper.TestFramework;
using JetBrains.TestFramework;
using JetBrains.TestFramework.Application.Zones;
using NUnit.Framework;
using ReSharperExtensionsShared.Tests;
[assembly: RequiresSTA]
namespa... | ```c#
using JetBrains.Application.BuildScript.Application.Zones;
using JetBrains.ReSharper.Psi.CSharp;
using JetBrains.ReSharper.TestFramework;
using JetBrains.TestFramework;
using JetBrains.TestFramework.Application.Zones;
using NUnit.Framework;
[assembly: RequiresSTA]
namespace ReSharperExtensionsShared.Tests
{
... |
62ec5da3-2dc8-409c-9d39-ef287895f9ec | {
"language": "C#"
} | ```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.
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System... | ```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.
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System... |
8d34720b-6531-4edb-bc55-509396581e7f | {
"language": "C#"
} | ```c#
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Grades.Tests
{
[TestClass]
public class GradeBookTests
{
private GradeStatistics _stats;
public GradeBookTests()
{
var book = new GradeBook();
book.AddGrade(90f);
book.AddGrade... | ```c#
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Grades.Tests
{
[TestClass]
public class GradeBookTests
{
private GradeStatistics _stats;
public GradeBookTests()
{
var book = new GradeBook();
book.AddGrade(90f);
book.AddGrade... |
3a398c06-086c-435a-9b7f-4e9918843dd7 | {
"language": "C#"
} | ```c#
using ruibarbo.core.ElementFactory;
using ruibarbo.core.Wpf.Invoker;
namespace ruibarbo.core.Wpf.Base
{
public class WpfWindowBase<TNativeElement> : WpfFrameworkElementBase<TNativeElement>
where TNativeElement : System.Windows.Window
{
public WpfWindowBase(ISearchSourceElement sea... | ```c#
using ruibarbo.core.ElementFactory;
using ruibarbo.core.Wpf.Invoker;
namespace ruibarbo.core.Wpf.Base
{
public class WpfWindowBase<TNativeElement> : WpfFrameworkElementBase<TNativeElement>
where TNativeElement : System.Windows.Window
{
public WpfWindowBase(ISearchSourceElement sea... |
3cb7254c-cfc2-4abb-b1fb-881a957e1f99 | {
"language": "C#"
} | ```c#
@using System.Dynamic;
@using System.Linq;
@using Orchard.ContentManagement;
@using Orchard.Utility.Extensions;
@functions
{
dynamic GetMainPartFromContentItem(ContentItem item)
{
// get the ContentPart that has the same name as the item's ContentType
// so that we can access the item fi... | ```c#
@using System.Dynamic;
@using System.Linq;
@using Orchard.ContentManagement;
@using Orchard.Utility.Extensions;
@functions
{
dynamic GetMainPartFromContentItem(ContentItem item)
{
// get the ContentPart that has the same name as the item's ContentType
// so that we can access the item fi... |
1059f408-554d-4194-a147-aa8475dd6bef | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using EZLibrary;
using TodotxtTouch.WindowsPhone.ViewModel;
namespace TodotxtTouch.WindowsPhone.Tasks
{
public class TaskFilterFactory
{
private const char Delimiter = ',';
public static TaskFilter CreateTaskFilterFromString(string filter... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using EZLibrary;
using TodotxtTouch.WindowsPhone.ViewModel;
namespace TodotxtTouch.WindowsPhone.Tasks
{
public class TaskFilterFactory
{
private const char Delimiter = ',';
public static TaskFilter CreateTaskFilterFromString(string filter... |
66ee4a77-d7c3-4fd7-a143-2d4224a66d28 | {
"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;
namespace osu.Framework.Tests.Audio
{
[TestFixture]
public class DevicelessAudioTest : AudioThreadTest
{
public overrid... | ```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;
namespace osu.Framework.Tests.Audio
{
[TestFixture]
public class DevicelessAudioTest : AudioThreadTest
{
public overrid... |
12032de7-014d-48c1-856b-9f58a3a1e671 | {
"language": "C#"
} | ```c#
using Nito.AsyncEx;
using Octokit;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Alteridem.GetChanges
{
class Program
{
static int Main(string[] args)
{
var options = new Options();
if (!CommandLine.Parser.Default.ParseArguments(args... | ```c#
using Nito.AsyncEx;
using Octokit;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Alteridem.GetChanges
{
class Program
{
static int Main(string[] args)
{
var options = new Options();
if (!CommandLine.Parser.Default.ParseArguments(args... |
740d59b7-15e1-45a0-948b-611aeab090ed | {
"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.Graphics.Containers;
using osu.Framework.Testing;
using osu.Game.Overlays.Mods;
using osu.Game.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.Graphics.Containers;
using osu.Framework.Testing;
using osu.Game.Overlays.Mods;
using osu.Game.Screens... |
ba22254c-488a-42f9-a907-852f2db0286a | {
"language": "C#"
} | ```c#
using System;
namespace Hangman {
public class Row {
public Cell[] Cells;
public Row(Cell[] cells) {
Cells = cells;
}
public string Draw(int width) {
// return new String(' ', width - Text.Length) + Text;
return "I have many cells!";
}
}
}
```
Join up hardcoded lines ... | ```c#
using System;
namespace Hangman {
public class Row {
public Cell[] Cells;
public Row(Cell[] cells) {
Cells = cells;
}
public string Draw(int width) {
// return new String(' ', width - Text.Length) + Text;
return String.Join("\n", Lines());
}
public string[] Lines() ... |
26106830-2778-4bd9-8bb7-523ca76ea894 | {
"language": "C#"
} | ```c#
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
using System.Reflection;
using System.Collections.Generic;
namespace Microsoft.Extensions.DependencyModel
... | ```c#
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.IO;
using System.Reflection;
using System.Collections.Generic;
namespace Microsoft.Extensions.DependencyModel
... |
14908de5-478c-467a-9b12-10eeddba8394 | {
"language": "C#"
} | ```c#
using System.Numerics;
using ImGuiNET;
namespace OpenSage.Viewer.UI.Views
{
internal abstract class GameView : AssetView
{
private readonly AssetViewContext _context;
protected GameView(AssetViewContext context)
{
_context = context;
}
public overrid... | ```c#
using System.Numerics;
using ImGuiNET;
namespace OpenSage.Viewer.UI.Views
{
internal abstract class GameView : AssetView
{
private readonly AssetViewContext _context;
protected GameView(AssetViewContext context)
{
_context = context;
}
public overrid... |
e3a20cef-0d05-468e-9374-cd776290e2c1 | {
"language": "C#"
} | ```c#
using MoneyEntry.DataAccess.EFCore.Expenses.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace MoneyEntry.ExpensesAPI.Models
{
public class TransactionModel
{
public int TransactionId { g... | ```c#
using MoneyEntry.DataAccess.EFCore.Expenses.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace MoneyEntry.ExpensesAPI.Models
{
public class TransactionModel
{
public int TransactionId { g... |
e3c79e8d-9867-40f1-929f-e745b2cc77b8 | {
"language": "C#"
} | ```c#
@model IEnumerable<Oogstplanner.Models.Crop>
@{
ViewBag.Title = "Gewassen";
}
<div id="top"></div>
<div id="yearCalendar">
<h1>Dit zijn de gewassen in onze database:</h1>
<table class="table table-striped">
<tr>
<th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th>
<th>Opp. per zak... | ```c#
@model IEnumerable<Crop>
@{
ViewBag.Title = "Gewassen";
}
<div id="top"></div>
<div id="yearCalendar">
<h1>Dit zijn de gewassen in onze database:</h1>
<table class="table table-striped">
<tr>
<th>Naam</th><th>Ras</th><th>Categorie</th><th>Opp. per 1</th>
<th>Opp. per zak</th><th>Prijs per z... |
8a4b93ae-111e-4c9e-8431-034be31330d2 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WienerLinien.Api.Routing
{
public static class RoutingUrlBuilder
{
private const string BaseUrl = "http://www.wienerlinien.at/ogd_routing/XML_TR... | ```c#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WienerLinien.Api.Routing
{
public static class RoutingUrlBuilder
{
private const string BaseUrl = "http://www.wienerlinien.at/ogd_routing/XML_TR... |
f61f350b-c615-4d86-8f20-023a42c09db4 | {
"language": "C#"
} | ```c#
using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
using NuGet.VisualStudio;
namespace NuGet.Options {
public partial class GeneralOptionControl : UserControl {
private IRecentPackageRepository _recentPackageRepository;
private IProductUpdateSetti... | ```c#
using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
using NuGet.VisualStudio;
namespace NuGet.Options {
public partial class GeneralOptionControl : UserControl {
private IRecentPackageRepository _recentPackageRepository;
private IProductUpdateSetti... |
4493e6a5-b091-4813-887e-aa20fcc32683 | {
"language": "C#"
} | ```c#
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace GUtils.MVVM
{
/// <summary>
/// Implements a few utility functions for a ViewModel base
/// </summary>
public abstract class ViewModelBase : INotifyPropertyChanged
{
/// <inheritdoc/>
... | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace GUtils.MVVM
{
/// <summary>
/// Implements a few utility functions for a ViewModel base
/// </summary>
public abstract class ViewModelBase : INotifyPropertyChanged
{
... |
ea5502f2-aed8-4515-9f15-49c14da95886 | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: ComVisible(false)]
[assembly: AssemblyProduct("Fixie")]
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyCopyright("Copyright (c) 2013 Patrick Lioi")]
[assembly: AssemblyCompany("Patrick ... | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: ComVisible(false)]
[assembly: AssemblyProduct("Fixie")]
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyCopyright("Copyright (c) 2013-2014 Patrick Lioi")]
[assembly: AssemblyCompany("Pat... |
4575a1ce-47c9-4949-9d96-e1ab360350e2 | {
"language": "C#"
} | ```c#
using System;
namespace Alexa.NET.Response
{
public static class RequestedPermission
{
public const string ReadHouseholdList = "read::alexa:household:list";
public const string WriteHouseholdList = "write::alexa:household:list";
}
}
```
Add address permission constants for permissio... | ```c#
using System;
namespace Alexa.NET.Response
{
public static class RequestedPermission
{
public const string ReadHouseholdList = "read::alexa:household:list";
public const string WriteHouseholdList = "write::alexa:household:list";
public const string FullAddress = "read::alexa:devi... |
7abcd0eb-92c0-414c-94a6-1e867581f9d9 | {
"language": "C#"
} | ```c#
using System;
using System.IO;
using System.Linq;
using LibGit2Sharp;
namespace GitIStage
{
internal static class Program
{
private static void Main()
{
var repositoryPath = ResolveRepositoryPath();
if (!Repository.IsValid(repositoryPath))
{
... | ```c#
using System;
using System.IO;
using System.Linq;
using LibGit2Sharp;
namespace GitIStage
{
internal static class Program
{
private static void Main()
{
var repositoryPath = ResolveRepositoryPath();
if (!Repository.IsValid(repositoryPath))
{
... |
35a7caa4-0d3d-4030-899a-aaded2a138a7 | {
"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.Graphics;
using osu.Game.Screens.Multi.Components;
using osuTK;
namespace osu.Game.Tests.Visual.Multiplayer
{
public... | ```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.Graphics;
using osu.Game.Screens.Multi.Components;
using osu.Game.Users;
namespace osu.Game.Tests.Visual.Multiplayer
{
... |
4d3e1593-faea-4f38-8ae7-ea7632bb7624 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Im... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
u... |
493f4da0-a616-4575-8861-5989169e58a4 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Abstractspoon.Tdl.PluginHelpers;
namespace SampleImpExp
{
public class SampleImpExpCore
{
public bool Export(TaskList srcTasks, string sDestFilePath, bool bSilent, Preferences prefs, string sKey... | ```c#
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Abstractspoon.Tdl.PluginHelpers;
namespace SampleImpExp
{
public class SampleImpExpCore
{
public bool Export(TaskList srcTasks, string sDestFilePath, bool bSilent, Preferences prefs, string sKey... |
e762f6f9-6584-446d-aa00-7dd3fbf16f21 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace RealmNet
{
public class Transaction : IDisposable
{
private SharedRealmHandle _sharedRealmHandle;
private bool _isOpen;
internal Transaction(SharedRealmHandle share... | ```c#
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace RealmNet
{
public class Transaction : IDisposable
{
private SharedRealmHandle _sharedRealmHandle;
private bool _isOpen;
internal Transaction(SharedRealmHandle share... |
1057214e-685e-40c2-9b3b-66beb6c56362 | {
"language": "C#"
} | ```c#
using System;
using System.Text.Json.Serialization;
namespace SFA.DAS.CommitmentsV2.Types
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum DeliveryModel : byte
{
Regular = 0,
PortableFlexiJob = 1,
[Obsolete("Use `Regular` instead of `Normal`", true)]
... | ```c#
using System.Text.Json.Serialization;
namespace SFA.DAS.CommitmentsV2.Types
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum DeliveryModel : byte
{
Regular = 0,
PortableFlexiJob = 1,
}
}``` |
ea5432ad-dc1e-491b-9a91-1b8af7d0b864 | {
"language": "C#"
} | ```c#
using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Outercurve Foundation")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyConfiguration("")]
// If you change this version, make sure to change Build\build.proj according... | ```c#
using System;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany(".NET Foundation")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyConfiguration("")]
// If you change this version, make sure to change Build\build.proj accordingly
[as... |
7cb115db-e00b-4135-b487-8c8d48b65749 | {
"language": "C#"
} | ```c#
using System;
using HtmlAgilityPack;
namespace ReverseMarkdown.Converters
{
public class Br
: ConverterBase
{
public Br(Converter converter)
: base(converter)
{
this.Converter.Register("br", this);
}
public override string Convert(HtmlNode node)
{
return " " + Environment.NewLine;
}... | ```c#
using System;
using HtmlAgilityPack;
namespace ReverseMarkdown.Converters
{
public class Br
: ConverterBase
{
public Br(Converter converter)
: base(converter)
{
this.Converter.Register("br", this);
}
public override string Convert(HtmlNode node)
{
return Environment.NewLine;
}
}
}
`... |
b59d9da6-6d42-4563-ade5-c723cde6941c | {
"language": "C#"
} | ```c#
using System;
using System.Reflection;
using System.Runtime.Remoting.Messaging;
using System.Runtime.Remoting.Proxies;
namespace Unit.Tests
{
/// <summary>
/// Proxy that records method invocations.
/// </summary>
public class MethodRecorder<T> : RealProxy
{
/// <summary>
/// Creates a new interceptor ... | ```c#
using System;
using System.Reflection;
using System.Runtime.Remoting.Messaging;
using System.Runtime.Remoting.Proxies;
using Utilities.Reflection;
namespace Unit.Tests
{
/// <summary>
/// Proxy that records method invocations.
/// </summary>
public class MethodRecorder<T> : RealProxy
{
/// <summary>
//... |
9d7b0cc8-ef68-4a14-a499-459c33d73217 | {
"language": "C#"
} | ```c#
<div class="user-display">
@if (!User.Identity.IsAuthenticated)
{
<span class="welcome"><a href="@Url.LogOn()">Log On</a></span>
<a href="@Url.Action(MVC.Users.Register())" class="register">Register</a>
}
else
{
<span class="welcome"><a href="@Url.Action(MVC.Users.Acco... | ```c#
<div class="user-display">
@if (!User.Identity.IsAuthenticated)
{
<span class="welcome">@Html.ActionLink("Log On", "LogOn", "Authentication", new { returnUrl = Request.RequestContext.HttpContext.Request.RawUrl }, null)</span>
<a href="@Url.Action(MVC.Users.Register())" class="register">Re... |
3f19ca6b-59f6-4be0-b7bc-9c9223bed3be | {
"language": "C#"
} | ```c#
using System;
using System.Windows.Forms;
namespace elbsms_ui
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
App... | ```c#
using System;
using System.Windows.Forms;
using elb_utilities.NativeMethods;
namespace elbsms_ui
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// set timer r... |
77c384ca-94da-4f0d-94da-df1210e6f81d | {
"language": "C#"
} | ```c#
using Urho.Resources;
namespace Urho.Shapes
{
public abstract class Shape : StaticModel
{
Material material;
public override void OnAttachedToNode(Node node)
{
Model = Application.ResourceCache.GetModel(ModelResource);
Color = color;
}
protected abstract string ModelResource { get; }
Colo... | ```c#
using Urho.Resources;
namespace Urho.Shapes
{
public abstract class Shape : StaticModel
{
Material material;
public override void OnAttachedToNode(Node node)
{
Model = Application.ResourceCache.GetModel(ModelResource);
Color = color;
}
protected abstract string ModelResource { get; }
Colo... |
5e8cacb8-cd23-40c0-9b30-968e82baedaa | {
"language": "C#"
} | ```c#
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Xaml.Interactivity;
namespace Avalonia.Xaml.Interactions.Custom;
/// <summary>
/// A behavior that displays cursor position on <see cref="InputElement.PointerMoved"/> event for the <see cref="Behavior{T}.AssociatedObject"/> using <see cref="TextBloc... | ```c#
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Xaml.Interactivity;
namespace Avalonia.Xaml.Interactions.Custom;
/// <summary>
/// A behavior that displays cursor position on <see cref="InputElement.PointerMoved"/> event for the <see cref="Behavior{T}.AssociatedObject"/> using <see cref="TextBloc... |
417b4243-3a3a-4541-b666-23d6c9bb4c89 | {
"language": "C#"
} | ```c#
using Opten.Umbraco.ListView.Extensions;
using System;
using System.Linq;
using Umbraco.Core;
using Umbraco.Web.Trees;
namespace ClassLibrary1
{
public class TreeEventHandler : ApplicationEventHandler
{
protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationCon... | ```c#
using AutoMapper;
using Opten.Umbraco.ListView.Extensions;
using System.Linq;
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Web.Models.ContentEditing;
using Umbraco.Web.Trees;
namespace ClassLibrary1
{
public class TreeEventHandler : ApplicationEventHandler
{
protected override void Appli... |
517e12fc-6581-4bd3-b753-e3d7de94aea1 | {
"language": "C#"
} | ```c#
namespace Moya.Runner.Runners
{
using System.Diagnostics;
using System.Reflection;
using Models;
using Statistics;
public class TimerDecorator : ITestRunner
{
private readonly IDurationManager duration;
public ITestRunner DecoratedTestRunner { get; set; }
... | ```c#
namespace Moya.Runner.Runners
{
using System.Diagnostics;
using System.Reflection;
using Models;
public class TimerDecorator : ITestRunner
{
public ITestRunner DecoratedTestRunner { get; set; }
public TimerDecorator(ITestRunner testRunner)
{
Decor... |
cfb69362-878e-468f-9d9e-a57b3ae7511b | {
"language": "C#"
} | ```c#
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Owin;
using Foundation.Api.Contracts;
using Foundation.Core.Contracts;
namespace Foundation.Api.Middlewares
{
public class DefaultPageMiddleware : OwinMiddleware
{
public DefaultPageMiddleware(OwinMiddleware next)
... | ```c#
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Owin;
using Foundation.Api.Contracts;
using Foundation.Core.Contracts;
namespace Foundation.Api.Middlewares
{
public class DefaultPageMiddleware : OwinMiddleware
{
public DefaultPageMiddleware(OwinMiddleware next)
... |
882f90d3-a7e6-469d-98b3-4ed0afa48592 | {
"language": "C#"
} | ```c#
using System.ComponentModel.DataAnnotations;
namespace BatteryCommander.Web.Models
{
public enum MilitaryEducationLevel : byte
{
Unknown,
[Display(Name = "(AIT) Advanced Individual Training", ShortName = "AIT")]
AIT = 1,
[Display(Name = "(BLC) Basic Leader Course", Shor... | ```c#
using System.ComponentModel.DataAnnotations;
namespace BatteryCommander.Web.Models
{
public enum MilitaryEducationLevel : byte
{
Unknown,
[Display(Name = "(AIT) Advanced Individual Training", ShortName = "AIT")]
AIT = 1,
[Display(Name = "(BLC) Basic Leader Course", Shor... |
b24a3233-f96f-4aca-9045-b47e8af3e347 | {
"language": "C#"
} | ```c#
using System;
using System.Reactive.Disposables;
using SolidWorks.Interop.sldworks;
namespace SolidworksAddinFramework
{
public static class ModelViewManagerExtensions
{
public static IDisposable CreateSectionView(this IModelViewManager modelViewManager, Action<SectionViewData> config)
{
... | ```c#
using System;
using System.Reactive.Disposables;
using SolidWorks.Interop.sldworks;
namespace SolidworksAddinFramework
{
public static class ModelViewManagerExtensions
{
public static IDisposable CreateSectionView(this IModelViewManager modelViewManager, Action<SectionViewData> config)
{
... |
debc267f-db08-47ca-ba97-e6dc2446be53 | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("Library")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[as... | ```c#
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("Intercom.Dotnet.Client")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfigur... |
4f3f4436-52ac-40ed-b9b5-737dc0e35247 | {
"language": "C#"
} | ```c#
using Microsoft.Cci;
using Microsoft.Cci.Extensions;
namespace Terrajobst.Cci
{
public static class MemberExtensions
{
public static string GetNamespaceName(this ITypeDefinitionMember member)
{
return member.ContainingTypeDefinition.GetNamespaceName();
}
publ... | ```c#
using Microsoft.Cci;
using Microsoft.Cci.Extensions;
namespace Terrajobst.Cci
{
public static class MemberExtensions
{
public static string GetNamespaceName(this IDefinition definition)
{
if (definition is ITypeDefinitionMember member)
return member.Containing... |
3749e815-1dff-4040-bdd8-dbb5a18da8aa | {
"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.Buffers;
using osu.Framework.Graphics.Primitives;
using osuTK.Graphics.ES30;
using SixLabors.ImageSharp.PixelFormats;
namespace osu.Fram... | ```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.Buffers;
using osu.Framework.Graphics.Primitives;
using osuTK.Graphics.ES30;
using SixLabors.ImageSharp.PixelFormats;
namespace osu.Fram... |
c3189aee-f39b-4003-a4c6-dc424e646d62 | {
"language": "C#"
} | ```c#
using System.Linq;
using Sitecore.Configuration;
using Sitecore.Data;
using Sitecore.Data.Serialization;
using Sitecore.Diagnostics;
using Sitecore.Eventing;
using Unicorn.Predicates;
namespace Unicorn.Pipelines.UnicornSyncEnd
{
public class SendSerializationCompleteEvent : IUnicornSyncEndProcessor
{
public... | ```c#
using System.Linq;
using Sitecore.Configuration;
using Sitecore.Data;
using Sitecore.Data.Serialization;
using Sitecore.Diagnostics;
using Sitecore.Eventing;
using Sitecore.Jobs;
using Unicorn.Predicates;
namespace Unicorn.Pipelines.UnicornSyncEnd
{
public class SendSerializationCompleteEvent : IUnicornSyncEnd... |
1ef7ed61-4032-4856-8ad8-e081f9322718 | {
"language": "C#"
} | ```c#
namespace PastaPricer.Tests.Acceptance
{
using NSubstitute;
using NUnit.Framework;
[TestFixture]
public class PastaPricerAcceptanceTests
{
[Test]
public void Should_PublishPastaPriceOnceStartedAndMarketDataIsAvailable()
{
// Mocks instantiation
... | ```c#
namespace PastaPricer.Tests.Acceptance
{
using NSubstitute;
using NUnit.Framework;
[TestFixture]
public class PastaPricerAcceptanceTests
{
[Test]
public void Should_Publish_Pasta_Price_Once_Started_And_MarketData_Is_Available()
{
// Mocks instantiation
... |
68caf6f3-1b56-43de-9257-65fb57ce2d34 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
namespace LazerTagHostLibrary
{
public class LazerTagSerial
{
public LazerTagSerial ()
{
}
static public List<string> GetSerialPorts()
{
List<string> result = new List<string>();
System.IO... | ```c#
using System;
using System.Collections.Generic;
using System.IO.Ports;
namespace LazerTagHostLibrary
{
public class LazerTagSerial
{
public LazerTagSerial ()
{
}
static public List<string> GetSerialPorts()
{
List<string> result = new List<string>()... |
ce61246e-91a8-44be-8286-4c1db4664dfe | {
"language": "C#"
} | ```c#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if !BUILD_GENERATED_VERSION
[assembly: AssemblyCompany("Microsoft Open Techn... | ```c#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if !BUILD_GENERATED_VERSION
[assembly: AssemblyCompany("Microsoft Open Techn... |
316bad79-5822-4721-b884-597e86eda036 | {
"language": "C#"
} | ```c#
using System;
using System.IO;
using Microsoft.Win32;
namespace FreenetTray.Browsers {
class Edge: Browser {
private static string NTVersionRegistryKey = @"SOFTWARE\Microsoft\Windows NT\CurrentVersion";
public Edge() {
// for this key we want registry redirection enabled, so no... | ```c#
using System;
using System.IO;
using Microsoft.Win32;
namespace FreenetTray.Browsers {
class Edge: Browser {
private static string NTVersionRegistryKey = @"SOFTWARE\Microsoft\Windows NT\CurrentVersion";
public Edge() {
RegistryKey reg = null;
if (Environment.Is64Bi... |
331e6eb5-abc2-44e5-9e2e-4bef55f49d79 | {
"language": "C#"
} | ```c#
using System;
using System.Xml.Linq;
namespace Project {
public abstract class Item: IEquatable<Item>, IConflictableItem {
public abstract override int GetHashCode();
public virtual string Action { get { return GetType().Name; } }
public abstract string Key { get; }
public bool IsResolveOptio... | ```c#
using System;
using System.Xml.Linq;
namespace Project {
public abstract class Item: IEquatable<Item>, IConflictableItem {
public abstract override int GetHashCode();
public virtual string Action { get { return GetType().Name; } }
public abstract string Key { get; }
public bool IsResolveOptio... |
0126b52e-1ab1-419d-8921-484b27037aef | {
"language": "C#"
} | ```c#
/* Copyright © 2018 Jeremy Herbison
This file is part of AudioWorks.
AudioWorks is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public
License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
versio... | ```c#
/* Copyright © 2018 Jeremy Herbison
This file is part of AudioWorks.
AudioWorks is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public
License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
versio... |
4bb961f9-2501-46d7-8c07-14709a2ed30a | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVers... | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVers... |
1ee03843-ee54-45c1-8954-e2e06f682376 | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.ComponentModel;
namespace osu.Game.Localisation
{
public enum Language
{
[Description(@"English")]
en,
[Description(@... | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.ComponentModel;
namespace osu.Game.Localisation
{
public enum Language
{
[Description(@"English")]
en,
// TODO: Requi... |
9553beb5-c6c9-4387-a07f-0cea31688289 | {
"language": "C#"
} | ```c#
using System;
using System.Threading.Tasks;
using Octokit;
namespace MangaRipper.Helpers
{
public class UpdateNotification
{
public static async Task<string> GetLatestVersion()
{
var client = new GitHubClient(new ProductHeaderValue("MyAmazingApp"));
var release = ... | ```c#
using System;
using System.Threading.Tasks;
using Octokit;
using System.Net;
namespace MangaRipper.Helpers
{
public class UpdateNotification
{
public static async Task<string> GetLatestVersion()
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
... |
69b1b851-a76d-4b98-be78-bea1ee2bafb0 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ProjectTracker.Library;
namespace PTWin
{
public partial class ProjectSelect : Form
{
private Guid _projectId;
public Guid Proje... | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ProjectTracker.Library;
using System.Linq;
namespace PTWin
{
public partial class ProjectSelect : Form
{
private Guid _projectId;
... |
58cc9516-daba-413c-b5a1-7b5c3bdee536 | {
"language": "C#"
} | ```c#
namespace TraktSerializeAuthorizationExample
{
class Program
{
static void Main(string[] args)
{
}
}
}
```
Add implementation for authorization serialization example. | ```c#
namespace TraktSerializeAuthorizationExample
{
using System;
using TraktApiSharp;
using TraktApiSharp.Authentication;
using TraktApiSharp.Enums;
using TraktApiSharp.Services;
class Program
{
private const string CLIENT_ID = "FAKE_CLIENT_ID";
private const string CLIEN... |
ad4b066d-904b-4c7c-8ca2-e3cac89e0ff9 | {
"language": "C#"
} | ```c#
using System.Reflection;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft Corporation")]
[assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: ... | ```c#
using System.Reflection;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft Corporation")]
[assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: ... |
1454a5e2-ae29-46a1-8651-d739633433da | {
"language": "C#"
} | ```c#
using System;
using System.IO;
using System.Net;
using System.Text;
namespace PreMailer.Net.Downloaders
{
public class WebDownloader : IWebDownloader
{
private static IWebDownloader _sharedDownloader;
public static IWebDownloader SharedDownloader
{
get
{
if (_sharedDownloader == null)
{
... | ```c#
using System;
using System.IO;
using System.Net;
using System.Text;
namespace PreMailer.Net.Downloaders
{
public class WebDownloader : IWebDownloader
{
private static IWebDownloader _sharedDownloader;
public static IWebDownloader SharedDownloader
{
get
{
if (_sharedDownloader == null)
{
... |
0290b1ac-30cd-454a-9575-6721e1ab2b26 | {
"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.ComponentModel;
using Xunit;
namespace Test
{
public class ComponentModelTests
{
[Fact]
public static void Tes... | ```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.ComponentModel;
using Xunit;
namespace Test
{
public class ComponentModelTests
{
[Fact]
public static void Tes... |
506b11c0-b40b-41e8-aca4-79209b5cdcdc | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using MagicOnion.Server.Glue;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.AspNetCore.Routing
{
public static class MagicO... | ```c#
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using MagicOnion.Server.Glue;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.AspNetCore.Builder
{
public static class MagicOnionEndpointRouteBuilderExtensions
... |
365a47a9-e501-4a02-b1bb-cf61ba5df3f2 | {
"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 CoreGraphics;
using osu.Framework.Platform;
using UIKit;
namespace osu.Framework.iOS
{
internal class GameViewController : UIViewControlle... | ```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 CoreGraphics;
using osu.Framework.Platform;
using UIKit;
namespace osu.Framework.iOS
{
internal class GameViewController : UIViewControlle... |
cd6cd5ba-355a-4c6b-8b63-22d864dee04b | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using Microsoft.Framework.DependencyInjection;
namespace Glimpse.Web
{
public class MasterRequestRuntime
{
private readonly IEnumerable<IRequestRuntime> _requestRuntimes;
public MasterRequestRuntime(IServiceProvider serviceProvider)
... | ```c#
using System;
using System.Collections.Generic;
using Microsoft.Framework.DependencyInjection;
namespace Glimpse.Web
{
public class MasterRequestRuntime
{
private readonly IDiscoverableCollection<IRequestRuntime> _requestRuntimes;
public MasterRequestRuntime(IServiceProvider serviceProv... |
89a8ef51-8ec4-4453-85fa-c6fd0fe50cfe | {
"language": "C#"
} | ```c#
using System.Globalization;
using System.Reflection;
using Jint.Native;
namespace Jint.Runtime.Descriptors.Specialized
{
public sealed class IndexDescriptor : PropertyDescriptor
{
private readonly Engine _engine;
private readonly object _key;
private readonly object _it... | ```c#
using System;
using System.Globalization;
using System.Linq;
using System.Reflection;
using Jint.Native;
namespace Jint.Runtime.Descriptors.Specialized
{
public sealed class IndexDescriptor : PropertyDescriptor
{
private readonly Engine _engine;
private readonly object _key;
... |
3716747c-af0a-4689-a65e-c4c024724417 | {
"language": "C#"
} | ```c#
using Microsoft.AspNetCore.SignalR;
using SO115App.Models.Servizi.CQRS.Commands.GestioneUtenti.CancellazioneUtente;
using SO115App.Models.Servizi.Infrastruttura.GestioneUtenti.GetUtenti;
using SO115App.Models.Servizi.Infrastruttura.Notification.GestioneUtenti;
using System;
using System.Threading.Tasks;
namespa... | ```c#
using Microsoft.AspNetCore.SignalR;
using SO115App.Models.Servizi.CQRS.Commands.GestioneUtenti.CancellazioneUtente;
using SO115App.Models.Servizi.Infrastruttura.GestioneUtenti.GetUtenti;
using SO115App.Models.Servizi.Infrastruttura.Notification.GestioneUtenti;
using System;
using System.Threading.Tasks;
namespa... |
72f3ff25-4c6c-42d5-bcc2-080f0ecfbaea | {
"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.Threading;
using System.Threading.Tasks;
namespace osu.Framework.Extensions
{
public static class TaskExtensions
{
/// <... | ```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.Threading;
using System.Threading.Tasks;
namespace osu.Framework.Extensions
{
public static class TaskExtensions
{
/// <... |
e84a18bc-b268-4df6-a3ce-cdffb0a5c37b | {
"language": "C#"
} | ```c#
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using OpenTK.Graphics;
using osu.Game.Beatmaps.Timing;
using osu.Game.Database;
using osu.Game.Modes.Objects;
namespace o... | ```c#
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using OpenTK.Graphics;
using osu.Game.Beatmaps.Timing;
using osu.Game.Database;
using osu.Game.Modes.Objects;
namespace o... |
186c7456-816d-463e-99bc-f5cf855f3579 | {
"language": "C#"
} | ```c#
using Serilog.Events;
namespace Serilog
{
/// <summary>
/// Extension method 'ForContext' for ILogger.
/// </summary>
public static class ForContextExtension
{
/// <summary>
/// Create a logger that enriches log events with the specified property based on log event level.
... | ```c#
using System;
using Serilog.Events;
namespace Serilog
{
/// <summary>
/// Extension method 'ForContext' for ILogger.
/// </summary>
public static class ForContextExtension
{
/// <summary>
/// Create a logger that enriches log events with the specified property based on log ev... |
02b671e6-dff2-4a9b-bcd9-eb713bda5fc0 | {
"language": "C#"
} | ```c#
using System;
using System.Threading;
using NUnit.Framework;
namespace JustSaying.TestingFramework
{
public static class Patiently
{
public static void VerifyExpectation(Action expression)
{
VerifyExpectation(expression, 5.Seconds());
}
public st... | ```c#
using System;
using System.Threading;
using NUnit.Framework;
namespace JustSaying.TestingFramework
{
public static class Patiently
{
public static void VerifyExpectation(Action expression)
{
VerifyExpectation(expression, 5.Seconds());
}
public st... |
fd137c8f-e8ad-4768-b0ba-f42b3b13bea9 | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Mvc;
using PdfAutofill.Model;
using PdfAutofill.Service;
using PdfAutofill.Service.Impl;
namespace PdfAutofill.Controllers
{
[Route("api/[controller]")]
public class PdfController : Controller
{
private readonly ... | ```c#
using System.Linq;
using Microsoft.AspNetCore.Mvc;
using PdfAutofill.Model;
using PdfAutofill.Service;
using PdfAutofill.Service.Impl;
namespace PdfAutofill.Controllers
{
[Route("api/[controller]")]
public class PdfController : Controller
{
private readonly IPdfService _service = new PdfServ... |
60122256-4236-4148-b02f-5d1b520d5056 | {
"language": "C#"
} | ```c#
namespace BigEgg.Tools.PowerMode.Settings
{
public enum ParticlesColorType
{
Cursor,
Random,
Fixed
}
}
```
Remove cursor color type for now | ```c#
namespace BigEgg.Tools.PowerMode.Settings
{
public enum ParticlesColorType
{
Random,
Fixed
}
}
``` |
043b0061-6fa6-4c20-8b94-73cfa8acb3bf | {
"language": "C#"
} | ```c#
using dotless.Infrastructure;
namespace dotless.Tree
{
public class Quoted : Node
{
public string Value { get; set; }
public string Contents { get; set; }
public Quoted(string value, string contents)
{
Value = value;
Contents = contents;
}
public override string ToCSS(E... | ```c#
using System.Text.RegularExpressions;
using dotless.Infrastructure;
namespace dotless.Tree
{
public class Quoted : Node
{
public string Value { get; set; }
public string Contents { get; set; }
public Quoted(string value, string contents)
{
Value = value;
Contents = contents;
... |
84f54bcf-cbf5-43ca-884d-de8edc1fc063 | {
"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.IO;
#nullable enable
namespace osu.Framework.Audio.Callbacks
{
/// <summary>
/// Implementation of <see cref="IFileProcedures"... | ```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.IO;
#nullable enable
namespace osu.Framework.Audio.Callbacks
{
/// <summary>
/// Implementation of <see cref="IFileProcedures"... |
13430fb3-5925-44bf-bb79-af0b21c906fd | {
"language": "C#"
} | ```c#
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class LoadTest : MonoBehaviour
{
public void SignInButtonClicked()
{
GameJolt.UI.Manager.Instance.ShowSignIn((bool success) => {
if (success)
{
Debug.Log("Logged In");
}
else
{
Debug.Log("Dismissed");
}
});... | ```c#
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class LoadTest : MonoBehaviour
{
public void SignInButtonClicked()
{
GameJolt.UI.Manager.Instance.ShowSignIn((bool success) => {
if (success)
{
GameJolt.UI.Manager.Instance.QueueNotification("Welcome");
}
else
{
... |
c2afd4c8-85f5-4b71-b7c3-676508ed9650 | {
"language": "C#"
} | ```c#
namespace GeneratorAPI {
/// <summary>
/// Represents a generic generator which can generate any ammount of elements.
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IGenerator<out T> : IGenerator {
/// <summary>
/// Generate next element.
... | ```c#
namespace GeneratorAPI {
/// <summary>
/// Represents a generic generator which can generate any ammount of elements.
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IGenerator<out T> : IGenerator {
/// <summary>
/// Generate next element.
... |
faadf47e-b9dc-4b2a-8e17-4243630d971d | {
"language": "C#"
} | ```c#
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class Ball : NetworkBehaviour {
private Rigidbody rigidBody = null;
private Vector3 startingPosition = Vector3.zero;
float minimumVelocity = 5;
float startingMinVeloc... | ```c#
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class Ball : NetworkBehaviour {
private Rigidbody rigidBody = null;
private Vector3 startingPosition = Vector3.zero;
float minimumVelocity = 5;
float startingMinVeloc... |
9f03de0d-ea69-4f7a-99a1-dcdbdac51a18 | {
"language": "C#"
} | ```c#
using NuGet.OutputWindowConsole;
using NuGetConsole;
namespace NuGet.Dialog.PackageManagerUI {
internal class SmartOutputConsoleProvider : IOutputConsoleProvider {
private readonly IOutputConsoleProvider _baseProvider;
private bool _isFirstTime = true;
public SmartOutputCo... | ```c#
using NuGet.OutputWindowConsole;
using NuGetConsole;
namespace NuGet.Dialog.PackageManagerUI {
internal class SmartOutputConsoleProvider : IOutputConsoleProvider {
private readonly IOutputConsoleProvider _baseProvider;
private bool _isFirstTime = true;
public SmartOutputCo... |
16d5df22-4635-4e78-b271-a98fbb7741c4 | {
"language": "C#"
} | ```c#
namespace SuperPutty
{
partial class ToolWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary... | ```c#
namespace SuperPutty
{
partial class ToolWindow
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary... |
5cf6fcbf-e3de-4bbd-8c0f-100d9e42fbcc | {
"language": "C#"
} | ```c#
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/themes/base/css", "~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
@RenderBody()
@Scr... | ```c#
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
@Styles.Render("~/Content/themes/base/css", "~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
@RenderBody()
@Scrip... |
5657d09c-df10-42ab-a0c9-63402060430f | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Slapshot
{
public partial class Slapshot : Form
{
public Slapshot()
... | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Slapshot
{
public partial class Slapshot : Form
{
private string SaveDi... |
7f081afe-52b4-41bc-8c34-76c33058be79 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
public class MattBobke : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Matt";
public string LastName => "Bobke... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
public class MattBobke : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Matt";
public string LastName => "Bobke... |
d504b653-6f30-4182-bef7-f4bf6eee2830 | {
"language": "C#"
} | ```c#
<li>@Html.ActionLink("Courses", "Index", "Race")</li>
<li>@Html.ActionLink("Catégories", "Index", "Category")</li>
@if (User.IsInRole("Administrateur"))
{
<li>@Html.ActionLink("Liste des points", "Index", "Point")</li>
<li>@Html.ActionLink("Importer les résultats", "Import", "Resultat")</li>
}
@if (Use... | ```c#
<li>@Html.ActionLink("Courses", "Index", "Race")</li>
@if (User.IsInRole("Administrateur"))
{
<li>@Html.ActionLink("Liste des points", "Index", "Point")</li>
<li>@Html.ActionLink("Importer les résultats", "Import", "Resultat")</li>
}
@if (User.IsInRole("Administrateur"))
{
<li>@Html.ActionLink("Typ... |
f1b0c2bd-f36a-4a18-a4e9-644e61509bd6 | {
"language": "C#"
} | ```c#
using System;
using GitHub.Unity;
using NUnit.Framework;
namespace IntegrationTests
{
[SetUpFixture]
public class SetUpFixture
{
[SetUp]
public void Setup()
{
Logging.TracingEnabled = true;
Logging.LogAdapter = new MultipleLogAdapter(
n... | ```c#
using System;
using GitHub.Unity;
using NUnit.Framework;
namespace IntegrationTests
{
[SetUpFixture]
public class SetUpFixture
{
[SetUp]
public void Setup()
{
Logging.TracingEnabled = true;
Logging.LogAdapter = new MultipleLogAdapter(
n... |
6ca700f9-da89-4dcf-b35d-9c6eb37c104e | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
namespace Silverpop.Core.Performance
{
internal class Program
{
private static void Main(string[] args)
{
var tagValue = new string(
Enumerable.Repeat("ABC", 1000)
.SelectMa... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
namespace Silverpop.Core.Performance
{
internal class Program
{
private static IEnumerable<int> TestRecipientCounts = new List<int>()
{
1000000,
5000000,
};
private static int Test... |
26743211-b8cb-4556-86e8-de09f1860bf3 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Alexa.NET.Request
{
public class SupportedInterfaces
{
}
}
```
Add SupportedInterface strings to allow discovery. Including VideoApp for new directive. | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Alexa.NET.Request
{
public static class SupportedInterfaces
{
public const string Display = "Display";
public const string AudioPlayer = "AudioPlayer";
public const string V... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.