doc_id stringlengths 36 36 | metadata dict | input stringlengths 28 4.3k | output stringlengths 11 5.45k |
|---|---|---|---|
7aa947a8-c190-4c67-9677-6c4c37b14aaf | {
"language": "C#"
} | ```c#
using System;
using System.ComponentModel.DataAnnotations;
namespace VotingApplication.Web.Api.Models.DBViewModels
{
public class PollCreationRequestModel
{
[Required]
public string Name { get; set; }
[Required]
public string Creator { get; set; }
[Required]
... | ```c#
using System;
using System.ComponentModel.DataAnnotations;
namespace VotingApplication.Web.Api.Models.DBViewModels
{
public class PollCreationRequestModel
{
[Required]
public string Name { get; set; }
[Required]
public string Creator { get; set; }
[Required]
... |
fecdb4d6-ec72-4839-baea-00f535293abd | {
"language": "C#"
} | ```c#
#region
using System;
using Tabster.Core.Plugins;
#endregion
namespace TextFile
{
public class TextFilePlugin : ITabsterPlugin
{
#region Implementation of ITabsterPlugin
public string Author
{
get { return "Nate Shoffner"; }
}
pub... | ```c#
#region
using System;
using Tabster.Core.Plugins;
#endregion
namespace TextFile
{
public class TextFilePlugin : ITabsterPlugin
{
#region Implementation of ITabsterPlugin
public string Author
{
get { return "Nate Shoffner"; }
}
pub... |
9eb403d2-0ef2-4b2f-a891-f4b09747f238 | {
"language": "C#"
} | ```c#
using Core;
using StructureMap;
using System;
using Xunit;
namespace Tests
{
public class ValidationTests
{
[Fact]
public void VerifyValidConfiguration()
{
var container = new Container(x =>
{
x.For<IService>().Use<Service>();
}... | ```c#
using Core;
using StructureMap;
using System;
using Xunit;
namespace Tests
{
public class ValidationTests
{
[Fact]
public void MissingRequiredConstructorArgument()
{
var container = new Container(x =>
{
x.For<IService>().Use<ServiceWithCtor... |
828a8a90-e2aa-42db-92b7-ac4d5a6b0efa | {
"language": "C#"
} | ```c#
@page
@model Disable2faModel
@{
ViewData["Title"] = "Disable two-factor authentication (2FA)";
ViewData["ActivePage"] = "TwoFactorAuthentication";
}
<h2>@ViewData["Title"]</h2>
<div class="alert alert-warning" role="alert">
<p>
<span class="glyphicon glyphicon-warning-sign"></span>
... | ```c#
@page
@model Disable2faModel
@{
ViewData["Title"] = "Disable two-factor authentication (2FA)";
ViewData["ActivePage"] = "TwoFactorAuthentication";
}
<h2>@ViewData["Title"]</h2>
<div class="alert alert-warning" role="alert">
<p>
<span class="glyphicon glyphicon-warning-sign"></span>
... |
241dbe5f-219f-47d4-a8e7-6c0ced08eaa9 | {
"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.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Settings
{
public class SettingsCheckbox : SettingsItem<bool>
... | ```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.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Settings
{
public class SettingsCheckbox : SettingsItem<bool>
... |
24ba7c6c-bb2b-4efe-9cba-edd103f8e019 | {
"language": "C#"
} | ```c#
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.IO;
using YaTools.Yaml;
using Raven;
using Raven.Client;
using Raven.Client.Document;
using Raven.Client.Embedded;
using Raven.Storage;
using Raven.Data... | ```c#
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.IO;
using YaTools.Yaml;
using Raven;
using Raven.Client;
using Raven.Client.Document;
using Raven.Client.Embedded;
using Raven.Storage;
using Raven.Data... |
216defd9-956e-43ea-b8c5-44845c77b6db | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Engine.Mappings
{
public interface IMapping<T>
{
void print();
T get_pos(ICoordinate coord);
bool pos_exists(ICoordinate coord);
bool add_to_pos(T... | ```c#
using Engine.Mappings.Coordinates;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Engine.Mappings
{
public interface IMapWriteable<T>
{
bool can_move(ICoordinate<T> startCoord, ICoordinate<T> endCoord);
bool ... |
34435ce6-987d-46d6-b1a4-51dce4001e06 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceModel;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace WinSerHost
{
public partial class Service1 : Service... | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceModel;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace WinSerHost
{
// For this service to work correctly,
... |
179c9b29-e6ab-4754-95d1-8b6d89e461b8 | {
"language": "C#"
} | ```c#
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("ZeroLog.Tests")]
[assembly: InternalsVisibleTo("ZeroLog.Benchmarks")]
```
Use SkipLocalsInit on .NET 5 | ```c#
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("ZeroLog.Tests")]
[assembly: InternalsVisibleTo("ZeroLog.Benchmarks")]
#if NETCOREAPP && !NETCOREAPP2_1
[module: SkipLocalsInit]
#endif
``` |
2a206e31-01d3-41de-9905-30981ae228ca | {
"language": "C#"
} | ```c#
using SnakeApp.Graphics;
using System;
namespace SnakeApp.Models
{
public class Food
{
public Food()
{
DateCreated = DateTime.Now;
}
public Food(byte score, Point position, byte secondsToLive) : this()
{
Score = score;
Position = position;
SecondsToLive = secondsToLive;
}
public Poi... | ```c#
using SnakeApp.Graphics;
using System;
namespace SnakeApp.Models
{
public class Food
{
public Food()
{
DateCreated = DateTime.Now;
}
public Food(byte score, Point position, byte secondsToLive) : this()
{
Score = score;
Position = position;
SecondsToLive = secondsToLive;
}
public Poi... |
ed306984-395c-47b9-9972-97e0fd9d40c2 | {
"language": "C#"
} | ```c#
namespace Gu.Wpf.Geometry.UiTests
{
using Gu.Wpf.UiAutomation;
using NUnit.Framework;
public class MainWindowTests
{
[Test]
public void ClickAllTabs()
{
// Just a smoke test so that we do not explode.
using (var app = Application.Launch("Gu.Wpf.Geom... | ```c#
namespace Gu.Wpf.Geometry.UiTests
{
using System;
using Gu.Wpf.UiAutomation;
using NUnit.Framework;
public class MainWindowTests
{
[Test]
public void ClickAllTabs()
{
// Just a smoke test so that we do not explode.
using (var app = Application.L... |
b351d2af-5220-4844-8dd8-b1828f9d29c3 | {
"language": "C#"
} | ```c#
//-----------------------------------------------------------------------
// <copyright file="ListaOperatoriResult.cs" company="CNVVF">
// Copyright (C) 2017 - CNVVF
//
// This file is part of SOVVF.
// SOVVF is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General ... | ```c#
//-----------------------------------------------------------------------
// <copyright file="ListaOperatoriResult.cs" company="CNVVF">
// Copyright (C) 2017 - CNVVF
//
// This file is part of SOVVF.
// SOVVF is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General ... |
be0371c8-0f73-4b08-af29-0137a8e36ffd | {
"language": "C#"
} | ```c#
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | ```c#
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
d85a8dc8-4c90-4cbc-8698-9fb7a4fa82c9 | {
"language": "C#"
} | ```c#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MouthOfEvilController : MonoBehaviour {
public List<EvilEyeScript> evilEyes;
public int mouthOfEvilHealth = 12;
private int hitsLeftInPhase;
public int maxHitsPerPhase = 4;
public bool isInPhase = false;
void Awa... | ```c#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MouthOfEvilController : MonoBehaviour {
public List<EvilEyeScript> evilEyes;
public int mouthOfEvilHealth = 12;
private int hitsLeftInPhase;
public int maxHitsPerPhase = 4;
public bool isInPhase = false;
public in... |
741c3db9-508e-441e-8fb4-9b5dfec02205 | {
"language": "C#"
} | ```c#
using System;
namespace PropertyChanged
{
/// <summary>
/// Include a <see cref="Type"/> for notification.
/// The INotifyPropertyChanged interface is added to the type.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class Impleme... | ```c#
using System;
namespace PropertyChanged
{
/// <summary>
/// Specifies that PropertyChanged Notification will be added to a class.
/// PropertyChanged.Fody will weave the <c>INotifyPropertyChanged</c> interface and implementation into the class.
/// When the value of a property changes, the Prope... |
b5fa5026-e5be-4830-9f50-68eac6aa3ec8 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using NBi.Xml.Constraints;
using NBi.Xml.Systems;
using NBi.NUnit.Builder.Helper;
using NBi.Core.Configuration;
using NBi.Core.Injection;
using NBi.Core.Variable;
using NBi.Core.Scalar.Resolver;
namespace NBi.NUnit.Builder
{
abstract class AbstractScalarBuilde... | ```c#
using System;
using System.Collections.Generic;
using NBi.Xml.Constraints;
using NBi.Xml.Systems;
using NBi.NUnit.Builder.Helper;
using NBi.Core.Configuration;
using NBi.Core.Injection;
using NBi.Core.Variable;
using NBi.Core.Scalar.Resolver;
using NBi.Xml.Settings;
namespace NBi.NUnit.Builder
{
abstract cl... |
0aa431be-c925-497d-8044-007ba6330845 | {
"language": "C#"
} | ```c#
using System.ComponentModel;
using System.Text;
using SharpLab.Runtime.Internal;
public static class SharpLabObjectExtensions {
// LinqPad/etc compatibility only
[EditorBrowsable(EditorBrowsableState.Never)]
public static void Dump<T>(this T value) {
value.Inspect(title: "Dump");
... | ```c#
using System.ComponentModel;
using System.Text;
using SharpLab.Runtime.Internal;
public static class SharpLabObjectExtensions {
// LinqPad/etc compatibility only
[EditorBrowsable(EditorBrowsableState.Never)]
public static T Dump<T>(this T value)
=> value.Inspect(title: "Dump");
... |
3c94e2c7-6e1b-4c44-8e37-568f42524869 | {
"language": "C#"
} | ```c#
using System;
namespace AppHarbor.Commands
{
public class AddConfigCommand : ICommand
{
public AddConfigCommand()
{
}
public void Execute(string[] arguments)
{
throw new NotImplementedException();
}
}
}
```
Initialize AppConfigCommand with an IApplicationConfiguration | ```c#
using System;
namespace AppHarbor.Commands
{
public class AddConfigCommand : ICommand
{
private readonly IApplicationConfiguration _applicationConfiguration;
public AddConfigCommand(IApplicationConfiguration applicationConfiguration)
{
_applicationConfiguration = applicationConfiguration;
}
pub... |
6ec9523b-4d41-4f3a-86c9-bb129220f302 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using FluentNHibernate.Mapping;
namespace FluentNHibernate.AutoMap
{
public class AutoMapper
{
private readonly List<IAutoMapper> _mappingRules;
public AutoMapper(Conventions conventio... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using FluentNHibernate.Mapping;
namespace FluentNHibernate.AutoMap
{
public class AutoMapper
{
private readonly List<IAutoMapper> _mappingRules;
public AutoMapper(Conventions conventio... |
5a4c02e2-0cf7-44bd-b916-f57d31f85ef0 | {
"language": "C#"
} | ```c#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObjectPool : MonoBehaviour
{
[SerializeField]
private GameObject _prefab;
private Stack<GameObject> _pool;
public GameObject prefab
{
set {
_prefab = value;
}
}
... | ```c#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObjectPool : MonoBehaviour
{
[SerializeField]
private GameObject _defaultPrefab;
#region Public methods and properties
public GameObject defaultPrefab
{
set
{
_defaultPre... |
b9d6808e-972e-408d-bb41-f7594db46f2d | {
"language": "C#"
} | ```c#
using System;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using Mono.Options;
namespace Menora
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string... | ```c#
using System;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using Mono.Options;
namespace Menora
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string... |
05fe798e-2443-4195-bfc7-2f6fdff34a30 | {
"language": "C#"
} | ```c#
namespace Playground.Leetcode
{
using System;
using System.Collections.Generic;
public static class CombinationSum
{
// Problem number 377. https://leetcode.com/problems/combination-sum-iv/
public static int CombinationSum4(int[] nums, int target)
{
//Array.Sor... | ```c#
namespace Playground.Leetcode
{
using System.Collections.Generic;
public static class CombinationSum
{
// Problem number 377. https://leetcode.com/problems/combination-sum-iv/
public static int CombinationSum4(int[] nums, int target)
{
var count = 0;
va... |
a655ef21-14a2-4f5c-932c-dfbd3e1d300f | {
"language": "C#"
} | ```c#
using System;
namespace RepositoryExceptions.Persistence
{
/// <summary>
/// New exception introduced
/// </summary>
public class UserNotFoundException : Exception
{
public UserNotFoundException() : base()
{
}
public UserNotFoundException(string message) : ba... | ```c#
using System;
namespace RepositoryExceptions.Persistence
{
/// <summary>
/// New exception introduced
/// </summary>
public class UserNotFoundException : EntityNotFoundException
{
public UserNotFoundException() : base()
{
}
public UserNotFoundException(string... |
6288ea38-40b2-40d2-8f9c-0949f7c1c633 | {
"language": "C#"
} | ```c#
namespace Paydock_dotnet_sdk.Models
{
public class ChargeRequestStripeConnect : ChargeRequestBase
{
public MetaData meta;
}
public class MetaData
{
public string stripe_direct_account_id;
public string stripe_destination_account_id;
public string stripe_transfer_group;
public Transfer[] stripe... | ```c#
namespace Paydock_dotnet_sdk.Models
{
public class ChargeRequestStripeConnect : ChargeRequestBase
{
public MetaData meta;
public Transfer[] transfer;
}
public class MetaData
{
public string stripe_direct_account_id;
public decimal stripe_application_fee;
public string stripe_destination_accoun... |
55fe7586-2bdf-4d9e-873f-fbdde8eea342 | {
"language": "C#"
} | ```c#
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Html.Abstractions
{
/// <summary>
/// A builder for HTML content.
/// </summary>
public interface IHtm... | ```c#
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Html.Abstractions
{
/// <summary>
/// A builder for HTML content.
/// </summary>
public interface IHtm... |
478aa15b-16d8-4aee-ab07-604b989d8b10 | {
"language": "C#"
} | ```c#
using SOVND.Client.ViewModels;
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... | ```c#
using SOVND.Client.ViewModels;
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... |
f6878f96-69fb-4f57-8125-161ebaaf7884 | {
"language": "C#"
} | ```c#
namespace Downlink.GitHub
{
public class GitHubCredentials
{
public GitHubCredentials(string apiToken, string repoId)
{
Token = apiToken;
var segs = repoId.Split('/');
if (segs.Length != 2) throw new System.InvalidOperationException("Could not parse repo... | ```c#
namespace Downlink.GitHub
{
public class GitHubCredentials
{
public GitHubCredentials(string apiToken, string repoId)
{
Token = apiToken;
var segs = repoId.Split('/');
if (segs.Length != 0) return;
if (segs.Length != 2) throw new System.Inval... |
6824db6b-1a05-4d92-818c-ef3bb214dcdb | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTit... | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Obvs.RabbitMQ")]
[assembly: Assembl... |
c84c941d-327f-4aa6-8543-b20d0ce83f06 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace AspNetCoreMvc
{
public class P... | ```c#
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace AspNetCoreMvc
{
public class P... |
694ff2e7-6a1c-493f-b00e-51e2884aaf99 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace LSDStay
{
public static class PSXFinder
{
public static Process FindPSX()
{
Process psx = Process.GetProcessesByName("psxfin").FirstOrDefault();
}
... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace LSDStay
{
public static class PSXFinder
{
public static Process FindPSX()
{
Process psx = Process.GetProcessesByName("psxfin").FirstOrDefault();
ret... |
063a3780-fd2b-4dfb-8556-721233799c44 | {
"language": "C#"
} | ```c#
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-ge... | ```c#
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-ge... |
c95af5e7-89f0-4c4e-85b9-44128f1339d0 | {
"language": "C#"
} | ```c#
using MailKit.Net.Smtp;
using MimeKit;
using System;
using System.Threading.Tasks;
namespace Blogifier.Core.Services
{
public class MailKitService : IEmailService
{
private readonly IDataService _db;
public MailKitService(IDataService db)
{
_db = db;
}
... | ```c#
using MailKit.Net.Smtp;
using MimeKit;
using System;
using System.Threading.Tasks;
namespace Blogifier.Core.Services
{
public class MailKitService : IEmailService
{
private readonly IDataService _db;
public MailKitService(IDataService db)
{
_db = db;
}
... |
ec676187-6ffb-4c03-a265-264abb6a1d04 | {
"language": "C#"
} | ```c#
using System;
using Bit.Core.Domains;
using System.Collections.Generic;
using Newtonsoft.Json;
using Bit.Core.Enums;
namespace Bit.Api.Models
{
public class DomainsResponseModel : ResponseModel
{
public DomainsResponseModel(User user)
: base("domains")
{
if(user =... | ```c#
using System;
using Bit.Core.Domains;
using System.Collections.Generic;
using Newtonsoft.Json;
using Bit.Core.Enums;
using System.Linq;
namespace Bit.Api.Models
{
public class DomainsResponseModel : ResponseModel
{
public DomainsResponseModel(User user)
: base("domains")
{
... |
978e4215-0515-4f25-a89b-07704d1d7015 | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AxosoftAPI.NET")]
[assembly: Assemb... | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AxosoftAPI.NET")]
[assembly: Assemb... |
71820d2e-42ee-4094-83af-277606e45df8 | {
"language": "C#"
} | ```c#
namespace CertiPay.Common.Testing
{
using ApprovalTests;
using Newtonsoft.Json;
using Ploeh.AutoFixture;
public static class TestExtensions
{
private static readonly Fixture _fixture = new Fixture { };
/// <summary>
/// Runs ApprovalTests's VerifyJson against a JSON.... | ```c#
namespace CertiPay.Common.Testing
{
using ApprovalTests;
using Newtonsoft.Json;
using Ploeh.AutoFixture;
public static class TestExtensions
{
private static readonly Fixture _fixture = new Fixture { };
/// <summary>
/// Runs ApprovalTests's VerifyJson against a JSON.... |
868de19e-9d03-48a9-b173-2a9761aa671a | {
"language": "C#"
} | ```c#
using MyDocs.Common.Contract.Storage;
using MyDocs.Common.Model;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyDocs.Common.Contract.Service
{
public interface IPageExtractor
{
IEnumerable<string> S... | ```c#
using MyDocs.Common.Contract.Storage;
using MyDocs.Common.Model;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyDocs.Common.Contract.Service
{
public interface IPageExtractor
{
IEnumerable<string> S... |
ae9aafad-1856-4d55-ae3b-1b10339147dc | {
"language": "C#"
} | ```c#
using System;
namespace ExtensionMethods
{
public static class MyExtensionMethods
{
public static DateTime Tomorrow(this DateTime date)
{
return date.AddDays(1);
}
public static DateTime Yesterday(this DateTime date)
{
return da... | ```c#
using System;
namespace ExtensionMethods
{
public static class MyExtensionMethods
{
public static DateTime Tomorrow(this DateTime date)
{
return date.AddDays(1);
}
public static DateTime Yesterday(this DateTime date)
{
return da... |
4bda7af5-9a2f-470b-9444-19f0bb521def | {
"language": "C#"
} | ```c#
using UnityEngine;
using System.Collections;
public class TriggerDestroy : MonoBehaviour
{
public Transform owner;
public float ensureDestroyAfter = 5f;
void Update()
{
ensureDestroyAfter -= Time.deltaTime;
}
void OnTriggerEnter(Collider other)
{
if (other.transform.name != owner.name)
{
retu... | ```c#
using UnityEngine;
using System.Collections;
public class TriggerDestroy : MonoBehaviour
{
public Transform owner;
public float ensureDestroyAfter = 2f;
void Update()
{
ensureDestroyAfter -= Time.deltaTime;
if (ensureDestroyAfter <= 0) {
Destroy(gameObject);
}
}
void OnTriggerEnter(Collider o... |
62f443ad-bece-4311-b618-2b024f29c283 | {
"language": "C#"
} | ```c#
#region Apache License 2.0
// Copyright 2015 Thaddeus Ryker
//
// 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
//
//... | ```c#
#region Apache License 2.0
// Copyright 2015 Thaddeus Ryker
//
// 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
//
//... |
12763ca0-c733-49ca-bc22-4ef395120c47 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using ClearMeasure.NumberCruncher;
using ClearMeasure.NumberCruncher.PrinterFormatters;
namespace TheTesst
{
class Program
{
static void Main(string[] args)
{
var formatter = new DefaultPrinterFormatter(() => new File... | ```c#
using System;
using System.Collections.Generic;
using ClearMeasure.NumberCruncher;
using ClearMeasure.NumberCruncher.PrinterFormatters;
namespace TheTesst
{
class Program
{
static void Main(string[] args)
{
var formatter = new DefaultPrinterFormatter(() => new Stri... |
16cd1e1c-f112-4e2e-a347-ebdc4eb6e41b | {
"language": "C#"
} | ```c#
namespace Moya.Exceptions
{
using System;
public class MoyaException : Exception
{
public MoyaException(String message) : base(message)
{
}
}
}```
Add xml documentation to moya exceptions | ```c#
namespace Moya.Exceptions
{
using System;
/// <summary>
/// Represents errors that occur during execution of Moya.
/// </summary>
public class MoyaException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="MoyaException"/> class
/// wit... |
55c65060-6cc0-4099-b5c1-3eb8a6641de3 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
namespace ExtendedControls
{
public class StatusStripCustom : StatusStrip
{
public const int WM_NCHITTEST = 0x84;
public const int WM_NCLBUTTONDOWN = 0x... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
namespace ExtendedControls
{
public class StatusStripCustom : StatusStrip
{
public const int WM_NCHITTEST = 0x84;
public const int WM_NCLBUTTONDOWN = 0x... |
e0bc4629-9386-4da0-84eb-72e2121de5ee | {
"language": "C#"
} | ```c#
namespace ErikLieben.Data.Repository
{
using System.Collections.Generic;
public interface IRepository<T> : IEnumerable<T>
where T : class
{
/// <summary>
/// Adds the specified item.
/// </summary>
/// <param name="item">The item to add.</param>
void A... | ```c#
namespace ErikLieben.Data.Repository
{
using System.Collections.Generic;
public interface IRepository<T> : IEnumerable<T>
where T : class
{
/// <summary>
/// Adds the specified item.
/// </summary>
/// <param name="item">The item to add.</param>
void A... |
9eeb168f-c27b-4839-9a9f-b2e4d1571deb | {
"language": "C#"
} | ```c#
using MobileKidsIdApp.ViewModels;
using Xamarin.Forms;
namespace MobileKidsIdApp.Views
{
public class MainPage : TabbedPage
{
private ApplicationBase CurrentApp => Application.Current as ApplicationBase;
public MainPage()
{
Page childListPage = CurrentApp.CreatePage<... | ```c#
using MobileKidsIdApp.ViewModels;
using Xamarin.Forms.PlatformConfiguration;
using Xamarin.Forms.PlatformConfiguration.AndroidSpecific;
namespace MobileKidsIdApp.Views
{
public class MainPage : Xamarin.Forms.TabbedPage
{
private ApplicationBase CurrentApp => Xamarin.Forms.Application.Current as ... |
aac2fff3-7538-422f-a897-bfc27db1768f | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using Microsoft.Framework.DependencyInjection;
using System.Threading.Tasks;
namespace Glimpse.Web
{
public class MasterRequestRuntime
{
private readonly IDiscoverableCollection<IRequestRuntime> _requestRuntimes;
private readonly IDiscovera... | ```c#
using System;
using System.Collections.Generic;
using Microsoft.Framework.DependencyInjection;
using System.Threading.Tasks;
namespace Glimpse.Web
{
public class MasterRequestRuntime
{
private readonly IDiscoverableCollection<IRequestRuntime> _requestRuntimes;
private readonly IDiscovera... |
d057a1cf-b2bc-4bc4-a501-08cb0606830e | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
using System.IO;
using System.Text;
using CsvHelper;
using CsvHelper.Configuration;
using DereTore.Applications.StarlightDirector.Components;
using DereTore.Applications.StarlightDirector.Entities.Serialization;
namespace DereTore.Applications.StarlightDirector.Entities {
p... | ```c#
using System.Collections.Generic;
using System.IO;
using System.Text;
using CsvHelper;
using CsvHelper.Configuration;
using DereTore.Applications.StarlightDirector.Components;
using DereTore.Applications.StarlightDirector.Entities.Serialization;
namespace DereTore.Applications.StarlightDirector.Entities {
p... |
ca67616c-06d6-4a8f-b769-be98df2c0625 | {
"language": "C#"
} | ```c#
// Plugboard.cs
// <copyright file="Plugboard.cs"> This code is protected under the MIT License. </copyright>
using System.Collections.Generic;
using System.Linq;
namespace EnigmaUtilities.Components
{
/// <summary>
/// An implementation of the plug board component for the enigma machine.
/// </summ... | ```c#
// Plugboard.cs
// <copyright file="Plugboard.cs"> This code is protected under the MIT License. </copyright>
using System.Collections.Generic;
using System.Linq;
namespace EnigmaUtilities.Components
{
/// <summary>
/// An implementation of the plug board component for the enigma machine.
/// </summ... |
eae841ed-c6cb-415d-827b-0db3777a5c09 | {
"language": "C#"
} | ```c#
using System;
using System.Threading;
namespace JetBrains.ReSharper.Plugins.Unity.Rider.iOS.ListUsbDevices
{
internal static class Program
{
private static bool ourFinished;
private static int Main(string[] args)
{
if (args.Length != 2)
{
... | ```c#
using System;
using System.Net.Sockets;
using System.Threading;
namespace JetBrains.ReSharper.Plugins.Unity.Rider.iOS.ListUsbDevices
{
internal static class Program
{
private static bool ourFinished;
private static int Main(string[] args)
{
if (args.Length != 2)
... |
cf2a3fe3-3192-4dab-b80a-620c976d7c0d | {
"language": "C#"
} | ```c#
using System;
using System.Diagnostics;
using System.Text;
using System.Windows.Forms;
namespace Daisy.SaveAsDAISY.Addins.Word2007 {
public partial class ExceptionReport : Form {
private Exception ExceptionRaised { get; }
public ExceptionReport(Exception raised) {
InitializeComp... | ```c#
using System;
using System.Diagnostics;
using System.Text;
using System.Windows.Forms;
namespace Daisy.SaveAsDAISY.Addins.Word2007 {
public partial class ExceptionReport : Form {
private Exception ExceptionRaised { get; }
public ExceptionReport(Exception raised) {
InitializeComp... |
71888530-c9e9-402d-9d08-74a4954788de | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
namespace kafka4net.Metadata
{
class BrokerMeta
{
public int NodeId;
public string Host;
public int Port;
// Not serialized, just a link to connection associated with this broker
internal Connection Conn;
pu... | ```c#
using System;
using System.Collections.Generic;
namespace kafka4net.Metadata
{
class BrokerMeta
{
public int NodeId;
public string Host;
public int Port;
// Not serialized, just a link to connection associated with this broker
internal Connection Conn... |
4449401c-fe2e-4b14-a7ae-3025824a4987 | {
"language": "C#"
} | ```c#
using System.Drawing;
public struct FBAdSize {
SizeF size;
}
public struct FBAdStarRating {
float value;
int scale;
}
```
Fix the access level on the size and rating structs | ```c#
using System.Drawing;
public struct FBAdSize {
public SizeF size;
}
public struct FBAdStarRating {
public float value;
public int scale;
}
``` |
d807e20b-01bd-4be0-b7a3-bd24ab749d28 | {
"language": "C#"
} | ```c#
using System;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World, I was created by my father, Bigsby, in an unidentified evironment!");
Console.WriteLine("Bigsby Gates was here!");
... | ```c#
using System;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World, I was created by my father, Bigsby, in an unidentified evironment!");
Console.WriteLine("Bigsby Gates was here!");
... |
6a241cc0-4ad4-43aa-b259-27acf5f020e0 | {
"language": "C#"
} | ```c#
using System;
using Microsoft.SPOT;
namespace IntervalTimer
{
public class IntervalReachedEventArgs : EventArgs
{
public String Message { get; set; }
public IntervalReachedEventArgs(String message)
{
Message = message;
}
}
}
```
Change Inte... | ```c#
using System;
using Microsoft.SPOT;
namespace IntervalTimer
{
public class IntervalReachedEventArgs : EventArgs
{
public int DurationNumber { get; set; }
public IntervalReachedEventArgs(int durationNumber)
{
DurationNumber = durationNumber;
}
... |
14ae9e70-4d87-4019-a051-3f2fbcca0d66 | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Game.Configuration;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.UI;
namespace osu.Game.Rulesets.Osu.Mods
{
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 osu.Framework.Bindables;
using osu.Game.Configuration;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Rulesets.Osu.UI;
usin... |
2a233803-ecfc-4241-adc2-46cd87389700 | {
"language": "C#"
} | ```c#
using System.Dynamic;
using System.Xml.Serialization;
using com.esendex.sdk.core;
using com.esendex.sdk.messaging;
using com.esendex.sdk.utilities;
using NUnit.Framework;
namespace com.esendex.sdk.test.messaging
{
[TestFixture]
public class SmsMessageSerializationTests
{
[Test]
... | ```c#
using com.esendex.sdk.core;
using com.esendex.sdk.messaging;
using com.esendex.sdk.utilities;
using NUnit.Framework;
namespace com.esendex.sdk.test.messaging
{
[TestFixture]
public class SmsMessageSerializationTests
{
[TestCase(CharacterSet.Auto, @"<?xml version=""1.0"" encoding=""... |
3124b1f1-368a-42b7-b467-930de3c55080 | {
"language": "C#"
} | ```c#
using UnityEngine;
using System.Collections;
/**
* Use Keyboard to switch between all scenes in build
* Wraps from last Scene back to first and vice versa
*/
namespace mmm {
public class SceneSwitcher : MonoBehaviour {
public KeyCode keyNext = KeyCode.Equals;
public KeyCode keyPrevious... | ```c#
using UnityEngine;
using System.Collections;
/**
* Use Keyboard to switch between all scenes in build
* Wraps from last Scene back to first and vice versa
*/
namespace mmm {
public class SceneSwitcher : MonoBehaviour {
public KeyCode keyNext = KeyCode.Equals;
public KeyCode keyPrevious... |
8d18df48-a158-4185-933d-3bcd7d8e96a7 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace QueueDataGraphic
{
public partial class Form1 : Form
{
public Form1()
{
Initial... | ```c#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace QueueDataGraphic
{
public partial class Form1 : Form
{
public Form1()
{
Initial... |
57aa22e0-d018-4419-8177-79d7695bb482 | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyDescription ("Clide.Vsix")]
[assembly: InternalsVisibleTo ("Clide.IntegrationTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d9776e258bdf5f7c38f3c880404b9861ebbd235d8198315cdfda0f0c25b18608bdfd03e... | ```c#
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo ("Clide.IntegrationTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d9776e258bdf5f7c38f3c880404b9861ebbd235d8198315cdfda0f0c25b18608bdfd03e34bac9d0ec95766e8c3928140c6eda581a9448066af7dfa... |
66c098cc-cdb0-42c8-93e6-347861965cbf | {
"language": "C#"
} | ```c#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ControlDisplay : MonoBehaviour
{
#pragma warning disable 0649 //Serialized Fields
[SerializeField]
private SpriteRenderer controlRenderer;
[SerializeField]
private Text controlTex... | ```c#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ControlDisplay : MonoBehaviour
{
#pragma warning disable 0649 //Serialized Fields
[SerializeField]
private SpriteRenderer controlRenderer;
[SerializeField]
private Text controlTex... |
50aad3e6-1eb3-4685-b959-bf34e328e01c | {
"language": "C#"
} | ```c#
// <copyright file="ViewResolver.cs" company="Stormpath, Inc.">
// Copyright (c) 2016 Stormpath, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.o... | ```c#
// <copyright file="ViewResolver.cs" company="Stormpath, Inc.">
// Copyright (c) 2016 Stormpath, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.o... |
0fd0e5f5-080c-473c-a72f-4220e03fe56d | {
"language": "C#"
} | ```c#
/*********************************************************************************
* SettingsTextBox.UIActions.cs
*
* Copyright (c) 2004-2018 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... | ```c#
/*********************************************************************************
* SettingsTextBox.UIActions.cs
*
* Copyright (c) 2004-2018 Henk Nicolai
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... |
c178cb7d-6f5c-4378-b52b-72709522ee84 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
namespace Glimpse.Server
{
public class GlimpseServerWebOptions
{
public GlimpseServerWebOptions()
{
AllowedUserRoles = new List<string>();
}
public bool AllowRemote { get; set; }
public IList<string> A... | ```c#
using System;
namespace Glimpse.Server
{
public class GlimpseServerWebOptions
{
public bool AllowRemote { get; set; }
}
}``` |
9df26a28-135f-455b-9f81-49773d7b8f0a | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using UniProgramGen.Data;
namespace UniProgramGen
{
public partial class ResultsTab : UserControl
{
public ResultsTab()
{
InitializeComponent();
}
private List<Teacher> teachers;
... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using UniProgramGen.Data;
namespace UniProgramGen
{
public partial class ResultsTab : UserControl
{
public ResultsTab()
{
InitializeComponent();
}
private List<Teac... |
dd439e87-8ccf-4990-9f35-382e89215a08 | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
namespace template_designer
{
public class JsonToDictionaryConverter
{
public static Dictionary<string, object> DeserializeJsonToDictionary(string json)
{
var jObject = JObject.Parse(json);
var dict =... | ```c#
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json.Linq;
namespace template_designer
{
public class JsonToDictionaryConverter
{
public static Dictionary<string, object> DeserializeJsonToDictionary(string json)
{
var jObject = JObject.Parse(json);
... |
e83a693a-51a3-47b9-afd4-c1bc64efd8ab | {
"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.
namespace Microsoft.CodeAnalysis.CodeStyle
{
internal partial class CodeStyleOption2<T>
{
pub... | ```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.
namespace Microsoft.CodeAnalysis.CodeStyle
{
internal partial class CodeStyleOption2<T>
{
pub... |
f1c9ee28-2e97-40cf-bbcf-965f4cab1c1a | {
"language": "C#"
} | ```c#
using Plantain;
using System.Collections.Generic;
using UnityEngine;
[AddComponentMenu("Plantain/Trigger/Propagator")]
public class TriggerPropagator : Trigger {
/// <summary>
/// A list of GameObjects that will have the current GameObject's triggers passed on to.
/// </summary>
public List<GameO... | ```c#
using Plantain;
using System.Collections.Generic;
using UnityEngine;
[AddComponentMenu("Plantain/Trigger/Propagator")]
public class TriggerPropagator : Trigger {
/// <summary>
/// Prevent a trigger from hopping any further than the targeted objects.
/// </summary>
public bool preventPropigation =... |
88c50921-bbd2-416f-b199-7d010726f352 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace Samesound
{
public class WebApiApplication : System.Web.HttpApplication
{
protected void Applicatio... | ```c#
using Samesound.Data;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace Samesound
{
public class WebApiApplication : System.Web.HttpApp... |
3167526a-9bef-439a-a8e4-13d8c6129820 | {
"language": "C#"
} | ```c#
@using Microsoft.AspNet.Identity
<div class="row">
<div class="col-md-6">
<h1>
@ViewBag.Title
<small>
@ViewBag.Lead
</small>
</h1>
</div>
<div class="col-md-6">
<ul class="nav nav-pills pull-right">
... | ```c#
@using Microsoft.AspNet.Identity
@using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
{
@Html.AntiForgeryToken()
}
<div class="row">
<div class="col-md-6">
<h1>
@ViewBag.Title
<small>
... |
3c591329-cac9-45cf-b282-ed4fd8a026db | {
"language": "C#"
} | ```c#
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
namespace TcpSocketDataSender
{
public class TcpSocketManager : IDisposable
{
private TcpClient _tcpClient;
BinaryWriter _writer = null;
public int ServerPort = 7839;
public string ServerIp = "127... | ```c#
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
namespace TcpSocketDataSender
{
public class TcpSocketManager : IDisposable
{
private TcpClient _tcpClient;
BinaryWriter _writer = null;
public int Se... |
9e76347a-06d1-423d-8063-47624a31c6f4 | {
"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.Allocation;
using osu.Framework.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osu.Game.Screens.Play;
u... | ```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.Allocation;
using osu.Framework.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osu.Game.Screens.Play;
u... |
7a62e3b8-f301-4248-8aad-7eba1e565681 | {
"language": "C#"
} | ```c#
using System;
using System.IO;
using System.Linq;
namespace Cams
{
class Program
{
static void Main(string[] args)
{
string rawDir = Path.Combine(Settings.Path, "raw");
string processedDir = Path.Combine(Settings.Path, "processed");
var cameras = Directory.GetDirectories(rawDir).Select(BuildCame... | ```c#
using System;
using System.IO;
using System.Linq;
namespace Cams
{
class Program
{
static void Main(string[] args)
{
string rawDir = Path.Combine(Settings.Path, "raw");
string processedDir = Path.Combine(Settings.Path, "processed");
var cameras = Directory.GetDirectories(rawDir).Select(BuildCame... |
ef4b144b-2269-4c55-9ac9-58980aa3f6aa | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("GitHubFeeds")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Bradley Grainger")]
[assembly: AssemblyProduct("GitHubFeeds")]
[assembly: AssemblyCopyright("Copyr... | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("GitHubFeeds")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Bradley Grainger")]
[assembly: AssemblyProduct("GitHubFeeds")]
[assembly: AssemblyCopyright("Copyr... |
5e37ed81-d363-49eb-961f-1fe63d8f25d3 | {
"language": "C#"
} | ```c#
<div ng-controller="CreateBasicPageController">
<div>
<h2>Regular Poller?</h2>
Register for more config options. It's free!
</div>
<form name="quickPollForm">
<div id="question-block">
Your Question <br />
<input id="question" placeholder="E.g. Where s... | ```c#
<div ng-controller="CreateBasicPageController">
<div>
<h2>Regular Poller?</h2>
Register for more config options. It's free!
</div>
<form name="quickPollForm" ng-submit="createPoll(pollQuestion)">
<div id="question-block">
Your Question <br />
<input id... |
0cd521e8-70ce-4680-a1d9-5451cd55042a | {
"language": "C#"
} | ```c#
```
Add UserVoice widget to global footer. | ```c#
@using GiveCRM.Web.Infrastructure
@if (ConfigurationSettings.IsUserVoiceIntegrationEnabled)
{
<script type="text/javascript">
var uvOptions = { };
(function() {
var uv = document.createElement('script');
uv.type = 'text/javascript';
uv.async = true;... |
2a65f6ef-28e7-4f2c-b867-9c8c7a0bd7ae | {
"language": "C#"
} | ```c#
@if (Request.IsAuthenticated) {
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-user" style="color: #f2105c"></i> @Session["DisplayName"]<span class="caret"></span></a>
<ul class="dropdown-menu">
<li>@Html.ActionLink("Profile", "Profile", "User")</li>
<li class="... | ```c#
@if (Request.IsAuthenticated) {
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-user" style="color: #f2105c"></i> @Session["DisplayName"]<span class="caret"></span></a>
<ul class="dropdown-menu">
<li>@Html.ActionLink("Profile", "Profile", "User")</li>
<li class="... |
35529edf-6a03-4730-96d0-67ba69ad1b9f | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using fitSharp.Machine.Engine;
using fitSharp.Machine.Model;
using NUnit.Framework;
using fitSharp.Samples.Fit;
using fitSharp.Fit.Operators;
namespace fitSharp.Test.NUnit.Fit {
public class ParseOperatorTest<ParseOperatorT... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using fitSharp.Machine.Engine;
using fitSharp.Machine.Model;
using NUnit.Framework;
using fitSharp.Samples.Fit;
using fitSharp.Fit.Operators;
namespace fitSharp.Test.NUnit.Fit {
public class ParseOperatorTest<ParseOperatorT... |
8dd34303-c537-4925-bf73-a480f1b1bd9f | {
"language": "C#"
} | ```c#
using System;
using System.Data;
namespace Gigobyte.Daterpillar.Data
{
public class SQLiteSchemaAggregator : SchemaAggregatorBase
{
public SQLiteSchemaAggregator(IDbConnection connection) : base(connection)
{
}
protected override string GetColumnInfoQuery(string tableNam... | ```c#
using System;
using System.Data;
using Gigobyte.Daterpillar.Transformation;
using System.Text.RegularExpressions;
namespace Gigobyte.Daterpillar.Data
{
public class SQLiteSchemaAggregator : SchemaAggregatorBase
{
public SQLiteSchemaAggregator(IDbConnection connection) : base(connection)
... |
ce114dea-337c-4671-ae9e-c6391414ce9b | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Forms;
namespace Psistats.App
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
... | ```c#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Forms;
namespace Psistats.App
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
... |
c1033523-9cfa-4472-a1e3-a77967dbce92 | {
"language": "C#"
} | ```c#
using System.Reflection;
using Xunit;
namespace System.Text.Utf8.Tests
{
public class TypeConstraintsTests
{
[Fact]
public void Utf8StringIsAStruct()
{
var utf8String = "anyString"u8;
Assert.True(utf8String.GetType().GetTypeInfo().IsValueType);
}
... | ```c#
using System.Reflection;
using Xunit;
namespace System.Text.Utf8.Tests
{
public class TypeConstraintsTests
{
private Utf8String _anyUtf8String;
public TypeConstraintsTests()
{
_anyUtf8String = "anyString"u8;
}
[Fact]
public void Utf8StringIsA... |
1d7fb0dd-f827-4b11-9514-e7844bbad392 | {
"language": "C#"
} | ```c#
using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Integration.SignalR")]
[assembly: AssemblyDescription("")]
```
Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with... | ```c#
using System.Reflection;
[assembly: AssemblyTitle("Autofac.Tests.Integration.SignalR")]
``` |
ce5b3d18-1ca3-43d7-b1ac-770399741b18 | {
"language": "C#"
} | ```c#
using Cake.Core;
using Cake.Core.IO;
using Cake.Core.Tooling;
namespace Cake.Terraform
{
public class TerraformApplyRunner : TerraformRunner<TerraformApplySettings>
{
public TerraformApplyRunner(IFileSystem fileSystem, ICakeEnvironment environment, IProcessRunner processRunner, IToolLocat... | ```c#
using Cake.Core;
using Cake.Core.IO;
using Cake.Core.Tooling;
namespace Cake.Terraform
{
public class TerraformApplyRunner : TerraformRunner<TerraformApplySettings>
{
public TerraformApplyRunner(IFileSystem fileSystem, ICakeEnvironment environment, IProcessRunner processRunner, IToolLocat... |
2e1ce52d-8af7-43e3-b923-5ed1c3e9d6d5 | {
"language": "C#"
} | ```c#
using System;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;
namespace IronAHK.Scripting
{
partial class Parser : ICodeParser
{
Dictionary<string, CodeMemberMethod> methods;
Type core;
const string mainScope = "";
C... | ```c#
using System;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;
namespace IronAHK.Scripting
{
partial class Parser : ICodeParser
{
Dictionary<string, CodeMemberMethod> methods;
Type core;
const string mainScope = "";
C... |
e67cec48-3963-4d00-9905-87e9438f25bc | {
"language": "C#"
} | ```c#
@using CkanDotNet.Api.Model
@model Package
<div class="container">
<h2 class="container-title">Rate this Package</h2>
<div class="container-content">
@Html.Partial("~/Views/Shared/_Rating.cshtml", Model, new ViewDataDictionary { { "editable", true } })
</div>
</div>
```
Change ui text "Packa... | ```c#
@using CkanDotNet.Api.Model
@model Package
<div class="container">
<h2 class="container-title">Rate this Dataset</h2>
<div class="container-content">
@Html.Partial("~/Views/Shared/_Rating.cshtml", Model, new ViewDataDictionary { { "editable", true } })
</div>
</div>
``` |
7dea68db-16b7-4d35-92ad-26ae74f51b73 | {
"language": "C#"
} | ```c#
using CommonMarkSharp.Blocks;
using CommonMarkSharp.Inlines;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CommonMarkSharp.InlineParsers
{
public class LineBreakParser : IParser<LineBreak>
{
public string... | ```c#
using CommonMarkSharp.Blocks;
using CommonMarkSharp.Inlines;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace CommonMarkSharp.InlineParsers
{
public class LineBreakParser : IParser<L... |
7a2b630e-4a9a-40eb-b2ca-4ec9fefde8b1 | {
"language": "C#"
} | ```c#
using Newtonsoft.Json;
namespace Stripe
{
public class StripeCustomerListOptions : StripeListOptions
{
[JsonProperty("created")]
public StripeDateFilter Created { get; set; }
}
}```
Add the ability to list customers via email address | ```c#
using Newtonsoft.Json;
namespace Stripe
{
public class StripeCustomerListOptions : StripeListOptions
{
[JsonProperty("created")]
public StripeDateFilter Created { get; set; }
[JsonProperty("email")]
public string Email { get; set; }
}
}``` |
708a57b1-d974-4fad-b714-2bd36fd7a9ac | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
using System.Linq;
using Arango.Client.Protocol;
namespace Arango.Client
{
public static class ArangoClient
{
private static List<Connection> _connections = new List<Connection>();
public static string DriverName
{
get { r... | ```c#
using System.Collections.Generic;
using System.Linq;
using Arango.Client.Protocol;
namespace Arango.Client
{
public static class ArangoClient
{
private static Dictionary<string, Connection> _connections = new Dictionary<string, Connection>();
public const string DriverName = "A... |
22b7f25d-5d9b-4d88-bb7a-ebc801710b61 | {
"language": "C#"
} | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.RazorPages;
using BlogTemplate.Models;
namespace BlogTemplate.Pages
{
public class PostModel : PageModel
{
private Blog _blog;
public PostModel(Blog blog)
... | ```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.RazorPages;
using BlogTemplate.Models;
namespace BlogTemplate.Pages
{
public class PostModel : PageModel
{
private Blog _blog;
public PostModel(Blog blog)
... |
33c3690d-e145-4730-a26b-303115ffd01d | {
"language": "C#"
} | ```c#
namespace food_tracker {
public class NutritionItem {
public string name { get; set; }
public double calories { get; set; }
public double carbohydrates { get; set; }
public double sugars { get; set; }
public double fats { get; set; }
public double saturatedFats... | ```c#
using System.ComponentModel.DataAnnotations;
namespace food_tracker {
public class NutritionItem {
[Key]
public int NutritionItemId { get; set; }
public string name { get; set; }
public string dayId { get; set; }
public double calories { get; set; }
public dou... |
71143900-13ba-411e-b377-b81d318b1ec5 | {
"language": "C#"
} | ```c#
using Bugsnag.Payload;
namespace Bugsnag
{
public interface IClient
{
void Notify(System.Exception exception, Request request = null);
void Notify(System.Exception exception, Severity severity, Request request = null);
void Notify(System.Exception exception, HandledState severity, Request request... | ```c#
using Bugsnag.Payload;
namespace Bugsnag
{
public interface IClient
{
void Notify(System.Exception exception, Request request = null);
void Notify(System.Exception exception, Severity severity, Request request = null);
void Notify(System.Exception exception, HandledState severity, Request request... |
d6a4720f-f6cc-41bb-a08b-270da3e26a4e | {
"language": "C#"
} | ```c#
using System;
using System.Threading;
namespace SPAD.neXt.Interfaces.Base
{
public interface ISPADBackgroundThread
{
string WorkerName { get; }
bool IsRunning { get; }
TimeSpan Interval { get; }
bool ScheduleOnTimeout { get; }
EventWaitHandle SignalHandle { get; }
... | ```c#
using System;
using System.Threading;
namespace SPAD.neXt.Interfaces.Base
{
public interface ISPADBackgroundThread
{
string WorkerName { get; }
bool IsRunning { get; }
TimeSpan Interval { get; }
bool ScheduleOnTimeout { get; }
EventWaitHandle SignalHandle { get; }
... |
564d84db-dc6e-4b6e-83a7-9de447ef40b9 | {
"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.Game.Beatmaps;
using osu.Game.Rulesets.Difficulty;
using osu.Game.Rulesets.Mania.Difficulty;
using osu.Game.Rulesets.Mania.Mods;
us... | ```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.Game.Beatmaps;
using osu.Game.Rulesets.Difficulty;
using osu.Game.Rulesets.Mania.Difficulty;
using osu.Game.Rulesets.Mania.Mods;
us... |
14073370-cdde-4a2c-a3d3-65054bb9142e | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTit... | ```c#
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTit... |
898aa0ee-b14e-4d45-ba60-dc020404f8ca | {
"language": "C#"
} | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OWLib")]
[assembly: AssemblyDescrip... | ```c#
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OWLib")]
[assembly: AssemblyDescrip... |
e6386ac2-791a-4263-bd13-e054b42413d5 | {
"language": "C#"
} | ```c#
using System.Threading.Tasks;
using System.Web;
using SignalR.Abstractions;
namespace SignalR.AspNet
{
public class AspNetResponse : IResponse
{
private readonly HttpRequestBase _request;
private readonly HttpResponseBase _response;
public AspNetResponse(HttpRequestBase request,... | ```c#
using System.Threading.Tasks;
using System.Web;
using SignalR.Abstractions;
namespace SignalR.AspNet
{
public class AspNetResponse : IResponse
{
private readonly HttpRequestBase _request;
private readonly HttpResponseBase _response;
public AspNetResponse(HttpRequestBase request,... |
2ea23c41-0a34-4f00-9073-3d88447bd60b | {
"language": "C#"
} | ```c#
using System.Collections.Generic;
namespace DevelopmentInProgress.DipState
{
public interface IDipState
{
int Id { get; }
string Name { get; }
bool IsDirty { get; }
bool InitialiseWithParent { get; }
DipStateType Type { get; }
DipStateStatus Status { get; ... | ```c#
using System;
using System.Collections.Generic;
namespace DevelopmentInProgress.DipState
{
public interface IDipState
{
int Id { get; }
string Name { get; }
bool IsDirty { get; }
bool InitialiseWithParent { get; }
DipStateType Type { get; }
DipStateStatus ... |
d35dc049-1720-468e-ae6e-1df4bdcf6698 | {
"language": "C#"
} | ```c#
using System.IO;
namespace LINQToTreeHelpers.FutureUtils
{
/// <summary>
/// Future TFile - really just a normal TFile, but gets written out in the future...
/// </summary>
public class FutureTFile : FutureTDirectory
{
private static ROOTNET.Interface.NTFile CreateOpenFile(s... | ```c#
using System;
using System.IO;
namespace LINQToTreeHelpers.FutureUtils
{
/// <summary>
/// Future TFile - really just a normal TFile, but gets written out in the future...
/// </summary>
public class FutureTFile : FutureTDirectory
{
private static ROOTNET.Interface.NTFile C... |
501afef9-8721-411f-b02b-e9f9385c46f2 | {
"language": "C#"
} | ```c#
using Discord;
using Discord.Commands;
using Discord.Rest;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using SoraBot.Data.Configurations;
namespace SoraBot.Bot.Extensions
{
public static class ServiceCollectionExtensions
{
public s... | ```c#
using Discord;
using Discord.Commands;
using Discord.Rest;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using SoraBot.Data.Configurations;
namespace SoraBot.Bot.Extensions
{
public static class ServiceCollectionExtensions
{
public s... |
f70a5a2a-b207-4535-9c23-0a3893a1f21e | {
"language": "C#"
} | ```c#
namespace MyStudio.ViewModels
{
using Catel;
using Catel.MVVM;
using MyStudio.Models;
using MyStudio.Services;
public class RibbonViewModel : ViewModelBase
{
private StudioStateModel model;
private ICommandsService commandsService;
public RibbonViewModel(Studio... | ```c#
namespace MyStudio.ViewModels
{
using Catel;
using Catel.MVVM;
using MyStudio.Models;
using MyStudio.Services;
public class RibbonViewModel : ViewModelBase
{
private StudioStateModel model;
private ICommandsService commandsService;
public RibbonViewModel(Studio... |
8b9b8d51-3ff4-4491-9191-e61c812cd4c8 | {
"language": "C#"
} | ```c#
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Azure.EventHubs;
using ServiceFabric.Utilities;
namespace SceneSkope.ServiceFabric.EventHubs
{
public static class EventHubConfiguration
{
public static async Task<EventHubClient> GetEventHubClientAsync(string se... | ```c#
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Azure.EventHubs;
using ServiceFabric.Utilities;
namespace SceneSkope.ServiceFabric.EventHubs
{
public static class EventHubConfiguration
{
public static async Task<EventHubClient> GetEventHubClientAsync(string se... |
8710af52-5c00-4ab0-aa58-0ccbe7f112a9 | {
"language": "C#"
} | ```c#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Threading.Tasks;
using NUnit.Framework;
using osu.Framework.IO.Stores;
using osu.Framework.Tests.Visual;
namespace osu.Framework.Tests.IO
{
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 System.Threading.Tasks;
using NUnit.Framework;
using osu.Framework.IO.Stores;
using osu.Framework.Tests.Visual;
namespace osu.Framework.Tests.IO
{
public... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.