Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Disable autocomplete for payment amount | @using Mollie.WebApplicationCoreExample.Framework.Extensions
@model CreatePaymentModel
@{
ViewData["Title"] = "Create payment";
}
<div class="container">
<h2>Create new payment</h2>
<form method="post">
<div asp-validation-summary="All"></div>
<div class="row">
<div ... | @using Mollie.WebApplicationCoreExample.Framework.Extensions
@model CreatePaymentModel
@{
ViewData["Title"] = "Create payment";
}
<div class="container">
<h2>Create new payment</h2>
<form method="post">
<div asp-validation-summary="All"></div>
<div class="row">
<div ... |
Declare the nullability of parsed command line arguments. | namespace Fixie.Console
{
public class Options
{
public Options(
string configuration,
bool noBuild,
string framework,
string report)
{
Configuration = configuration ?? "Debug";
NoBuild = noBuild;
Framework = fr... | namespace Fixie.Console
{
public class Options
{
public Options(
string? configuration,
bool noBuild,
string? framework,
string? report)
{
Configuration = configuration ?? "Debug";
NoBuild = noBuild;
Framework =... |
Fix and re-enable the canvas mock. | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="CanvasMock.cs" company="Helix Toolkit">
// Copyright (c) 2014 Helix Toolkit contributors
// </copyright>
// ---------------------------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="CanvasMock.cs" company="Helix Toolkit">
// Copyright (c) 2014 Helix Toolkit contributors
// </copyright>
// ---------------------------------------------------------------------... |
Make sure GPU accel. in web view is disabled even if default cefsharp settings change | using CefSharp;
using CefSharp.Wpf;
using Playnite.Common;
using Playnite.Settings;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Playnite
{
public class CefTools
{
public static bool IsInit... | using CefSharp;
using CefSharp.Wpf;
using Playnite.Common;
using Playnite.Settings;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Playnite
{
public class CefTools
{
public static bool IsInit... |
Update the version to 1.2.2 | /*
* ******************************************************************************
* Copyright 2014 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License is loc... | /*
* ******************************************************************************
* Copyright 2014 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License is loc... |
Fix copying of markdown result. | // ReSharper disable UnusedMember.Local
namespace Gu.State.Benchmarks
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using BenchmarkDotNet.Reports;
using BenchmarkDotNet.Running;
public static class Program
{
public static void Main()
... | // ReSharper disable UnusedMember.Local
namespace Gu.State.Benchmarks
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using BenchmarkDotNet.Reports;
using BenchmarkDotNet.Running;
public static class Program
{
public static void Main()
... |
Add expression indicating if a post is published | using System;
namespace Blog.Data
{
public class Post
{
public int Id { get; set; }
public string Url { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string ComputedDescription
{
get
{
... | using System;
using System.Linq.Expressions;
namespace Blog.Data
{
public class Post
{
public int Id { get; set; }
public string Url { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string ComputedDescription
{
... |
Fix process of requesting access to a room | using log4net;
using RightpointLabs.ConferenceRoom.Services.Attributes;
using System.Net.Http;
using System.ServiceModel.Channels;
using System.Web;
using System.Web.Http;
namespace RightpointLabs.ConferenceRoom.Services.Controllers
{
/// <summary>
/// Operations dealing with client log messages
/// </sum... | using log4net;
using RightpointLabs.ConferenceRoom.Services.Attributes;
using System.Net.Http;
using System.ServiceModel.Channels;
using System.Web;
using System.Web.Http;
namespace RightpointLabs.ConferenceRoom.Services.Controllers
{
/// <summary>
/// Operations dealing with client log messages
/// </sum... |
Fix game inline query result | using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System.ComponentModel;
using Telegram.Bot.Types.InputMessageContents;
namespace Telegram.Bot.Types.InlineQueryResults
{
/// <summary>
/// Represents a <see cref="Game"/>.
/// </summary>
/// <seealso cref="InlineQueryResultNew" />
[Js... | using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Telegram.Bot.Types.InlineQueryResults
{
/// <summary>
/// Represents a <see cref="Game"/>.
/// </summary>
/// <seealso cref="InlineQueryResult" />
[JsonObject(MemberSerialization = MemberSerialization.OptIn,
Namin... |
Update to use CSLA configuration | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Dependenc... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Dependenc... |
Implement AddressSpaceComplianceTestTool - added top level exception handling. |
using System;
using System.IO;
namespace UAOOI.SemanticData.AddressSpaceTestTool
{
class Program
{
internal static void Main(string[] args)
{
FileInfo _fileToRead = GetFileToRead(args);
ValidateFile(_fileToRead);
}
internal static void ValidateFile(FileInfo _fileToRead)
{
th... |
using System;
using System.IO;
namespace UAOOI.SemanticData.AddressSpaceTestTool
{
class Program
{
internal static void Main(string[] args)
{
try
{
FileInfo _fileToRead = GetFileToRead(args);
ValidateFile(_fileToRead);
}
catch (Exception ex)
{
Consol... |
Add (intentionally) broken Lazy ORM Employee service | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataAccessExamples.Core.Actions;
using DataAccessExamples.Core.ViewModels;
namespace DataAccessExamples.Core.Services.Employee
{
public class LazyOrmEmployeeService : IEmployeeServic... | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;
using DataAccessExamples.Core.Actions;
using DataAccessExamples.Core.Data;
using DataAccessExamples.Core.ViewModels;
namespace DataAccessExamples.C... |
Update garbage spewing client to use test doubles namespace. | using System.Threading.Tasks;
using Version = Msg.Domain.Version;
using System;
using System.Net.Sockets;
using System.Net;
namespace Msg.Acceptance.Tests
{
class GarbageSpewingClient
{
TcpClient client;
public async Task<byte[]> ConnectAsync() {
client = new TcpClient ();
await client.ConnectAsync (IPAd... | using System.Threading.Tasks;
using Version = Msg.Domain.Version;
using System;
using System.Net.Sockets;
using System.Net;
namespace Msg.Acceptance.Tests.TestDoubles
{
class GarbageSpewingClient
{
TcpClient client;
public async Task<byte[]> ConnectAsync() {
client = new TcpClient ();
await client.Connect... |
Update to use correct ISO code | using System;
using JabbR.Models;
using JabbR.Services;
namespace JabbR.Commands
{
[Command("flag", "Flag_CommandInfo", "Iso 3366-2 Code", "user")]
public class FlagCommand : UserCommand
{
public override void Execute(CommandContext context, CallerContext callerContext, ChatUser callingUser, strin... | using System;
using JabbR.Models;
using JabbR.Services;
namespace JabbR.Commands
{
[Command("flag", "Flag_CommandInfo", "Iso 3166-2 Code", "user")]
public class FlagCommand : UserCommand
{
public override void Execute(CommandContext context, CallerContext callerContext, ChatUser callingUser, strin... |
Add get best id method for user images. | namespace TraktApiSharp.Objects.Get.Users
{
using Basic;
using Newtonsoft.Json;
public class TraktUserImages
{
[JsonProperty(PropertyName = "avatar")]
public TraktImage Avatar { get; set; }
}
}
| namespace TraktApiSharp.Objects.Get.Users
{
using Basic;
using Newtonsoft.Json;
/// <summary>A collection of images and image sets for a Trakt user.</summary>
public class TraktUserImages
{
/// <summary>Gets or sets the avatar image.</summary>
[JsonProperty(PropertyName = "avatar")... |
Add binding mode and comment. | using Avalonia;
using Avalonia.Controls;
using Avalonia.Data;
using Avalonia.Markup.Xaml;
using ReactiveUI;
using System;
namespace WalletWasabi.Gui.Controls.WalletExplorer
{
public class CoinListView : UserControl
{
public static readonly StyledProperty<bool> SelectAllNonPrivateVisibleProperty =
AvaloniaProper... | using Avalonia;
using Avalonia.Controls;
using Avalonia.Data;
using Avalonia.Markup.Xaml;
using ReactiveUI;
using System;
using System.Reactive.Linq;
namespace WalletWasabi.Gui.Controls.WalletExplorer
{
public class CoinListView : UserControl
{
public static readonly StyledProperty<bool> SelectAllNonPrivateVisible... |
Remove title and date from product item page | @using Site.App_Code
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = "SW_Master.cshtml";
}
<div class="clearfix">
@Html.Partial("LeftNavigation",@Model.Content)
<div class="" style="float: left;width: 75%;padding-left: 30px;">
<h3>
@Model.Content.GetTitle... | @using Site.App_Code
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@{
Layout = "SW_Master.cshtml";
}
<div class="clearfix">
@Html.Partial("LeftNavigation",@Model.Content)
<div class="" style="float: left;width: 75%;padding-left: 30px;">
@*<h3>
@Model.Content.GetTit... |
Add "Press any key to exit." | #if DNX451
using System;
using System.IO;
namespace BuildSpritesheet {
class Program {
static void Main(string[] args) {
PrepareOutputDirectory();
SpritePreparer.PrepareSprites();
Console.WriteLine();
Console.WriteLine("Done processing individual files");
Console.WriteLine();
SpritesheetBuilder... | #if DNX451
using System;
using System.IO;
namespace BuildSpritesheet {
class Program {
static void Main(string[] args) {
PrepareOutputDirectory();
SpritePreparer.PrepareSprites();
Console.WriteLine();
Console.WriteLine("Done processing individual files");
Console.WriteLine();
SpritesheetBuilder... |
Hide irrelevant options from build action configuration | using JetBrains.IDE.RunConfig;
namespace AlexPovar.ReSharperHelpers.Build
{
public class RunConfigProjectWithSolutionBuild : RunConfigBase
{
public override void Execute(RunConfigContext context)
{
context.ExecutionProvider.Execute(null);
}
}
} | using System.Windows;
using JetBrains.DataFlow;
using JetBrains.IDE.RunConfig;
using JetBrains.ProjectModel;
using JetBrains.VsIntegration.IDE.RunConfig;
namespace AlexPovar.ReSharperHelpers.Build
{
public class RunConfigProjectWithSolutionBuild : RunConfigBase
{
public override void Execute(RunConfigContext ... |
Add the built-in properties to the Properties collection. | using System;
namespace FbxSharp
{
public class AnimStack : Collection
{
#region Public Attributes
public readonly PropertyT<string> Description = new PropertyT<string>( "Description");
public readonly PropertyT<FbxTime> LocalStart = new PropertyT<FbxTime>("LocalStart");
... | using System;
namespace FbxSharp
{
public class AnimStack : Collection
{
public AnimStack(String name="")
: base(name)
{
Properties.Add(Description);
Properties.Add(LocalStart);
Properties.Add(LocalStop);
Properties.Add(ReferenceStart... |
Update reCaptcha API js rendering script | @using Aliencube.ReCaptcha.Wrapper.Mvc
@model Aliencube.ReCaptcha.Wrapper.WebApp.Models.HomeIndexViewModel
@{
ViewBag.Title = "Index";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm(MVC.Home.ActionNames.Index, MVC.Home.Name, FormMethod.Post))
{
<div class="form-group">
@Html.LabelFor(m => m.Name)
... | @using Aliencube.ReCaptcha.Wrapper.Mvc
@model Aliencube.ReCaptcha.Wrapper.WebApp.Models.HomeIndexViewModel
@{
ViewBag.Title = "Index";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm(MVC.Home.ActionNames.Index, MVC.Home.Name, FormMethod.Post))
{
<div class="form-group">
@Html.LabelFor(m => m.Name)
... |
Increase move the version number to 2.1.3 | 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("Html2Markdown")]
[assembly: AssemblyDescr... | 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("Html2Markdown")]
[assembly: AssemblyDescr... |
Update normalize extension method to use the built in hardware accelerated static method | using System.Numerics;
namespace DynamixelServo.Quadruped
{
public static class Vector3Extensions
{
public static Vector3 Normal(this Vector3 vector)
{
float len = vector.Length();
return new Vector3(vector.X / len, vector.Y / len, vector.Z / len);
}
pu... | using System.Numerics;
namespace DynamixelServo.Quadruped
{
public static class Vector3Extensions
{
public static Vector3 Normal(this Vector3 vector)
{
return Vector3.Normalize(vector);
}
public static bool Similar(this Vector3 a, Vector3 b, float marginOfError = f... |
Test Fixup for a Line Normalization Issue. | // 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.Linq;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Organizing;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Mi... | // 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.Linq;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Organizing;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Mi... |
Remove requirement for dependency nodes to have a version. | using Microsoft.Build.Framework;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
namespace Microsoft.DotNet.Build.Tasks
{
public class UpdatePackageDependencyVersion : VisitProjectDependencies
{
[Required]
public string PackageId { get; set; }
[Required]
publi... | using Microsoft.Build.Framework;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
namespace Microsoft.DotNet.Build.Tasks
{
public class UpdatePackageDependencyVersion : VisitProjectDependencies
{
[Required]
public string PackageId { get; set; }
[Required]
publi... |
Add CreatedUTC to Created Thing | using System;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
namespace RedditSharp
{
public class CreatedThing : Thing
{
private Reddit Reddit { get; set; }
public CreatedThing(Reddit reddit, JToken json) : base(json)
{
Reddit = reddit;
JsonConvert.Populate... | using System;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
namespace RedditSharp
{
public class CreatedThing : Thing
{
private Reddit Reddit { get; set; }
public CreatedThing(Reddit reddit, JToken json) : base(json)
{
Reddit = reddit;
JsonConvert.Populate... |
Refactor collider name for attack behaviour | using UnityEngine;
using System.Collections;
public class AttackBuilding : MonoBehaviour
{
BuildingProperties properties;
SphereCollider collider;
void Start () {
properties = GetComponent<BuildingProperties> ();
collider = gameObject.AddComponent<SphereCollider> ();
collider.isTrigger = true;
collider.... | using UnityEngine;
using System.Collections;
public class AttackBuilding : MonoBehaviour
{
BuildingProperties properties;
SphereCollider attackZone;
void Start () {
properties = GetComponent<BuildingProperties> ();
attackZone = gameObject.AddComponent<SphereCollider> ();
attackZone.isTrigger = true;
att... |
Add namespace alias for Gherkin3.Ast | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="MapperTestsForDocString.cs" company="PicklesDoc">
// Copyright 2011 Jeffrey Cameron
// Copyright 2012-present PicklesDoc team and community contributors
//
//
// Licensed und... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="MapperTestsForDocString.cs" company="PicklesDoc">
// Copyright 2011 Jeffrey Cameron
// Copyright 2012-present PicklesDoc team and community contributors
//
//
// Licensed und... |
Fix up 32 bit constants. | namespace ShellHookLauncher
{
internal static partial class ShellHookHelper
{
public const string DllFileName = "ShellHook64.dll";
public const string PanelessNamedPipe = "PanelessHookId64-5b4f1ea2-c775-11e2-8888-47c85008ead5";
}
}
| namespace ShellHookLauncher
{
internal static partial class ShellHookHelper
{
public const string DllFileName = "ShellHook32.dll";
public const string PanelessNamedPipe = "PanelessHookId32-5b4f1ea2-c775-11e2-8888-47c85008ead5";
}
}
|
Fix for missing multiple image uploads checkbox on image upload field type. | using PerplexUmbraco.Forms.Code.Configuration;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using static PerplexUmbraco.Forms.Code.Constants;
using Umbraco.Forms.Core;
namespace PerplexUmbraco.Forms.FieldTypes
{
public class PerplexImageUpload : PerplexBase... | using PerplexUmbraco.Forms.Code.Configuration;
using System;
using System.Collections.Generic;
using Umbraco.Forms.Core;
using Umbraco.Forms.Core.Attributes;
namespace PerplexUmbraco.Forms.FieldTypes
{
public class PerplexImageUpload : PerplexBaseFileFieldType
{
protected override PerplexBaseFileConfi... |
Remove special case for odd numbers | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.ProjectEuler.Puzzles
{
using System;
using System.Linq;
/// <summary>
/// A class representing the sol... | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.ProjectEuler.Puzzles
{
using System;
using System.Linq;
/// <summary>
/// A class representing the sol... |
Revert to fixed versioning scheme used by build | using System.Reflection;
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.1.0.0")]
[assembly: AssemblyInformationalVersion("2.1.0")]
| using System.Reflection;
// These "special" version numbers are found and replaced at build time.
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.1.1.1")]
[assembly: AssemblyInformationalVersion("1.0.0")]
|
Allow passing port number to test setup | using Jasper.Util;
using TestingSupport.Compliance;
using Xunit;
namespace Jasper.Testing.Transports.Tcp
{
public class Sender : JasperOptions
{
public Sender()
{
Endpoints.ListenForMessagesFrom($"tcp://localhost:2289/incoming".ToUri());
}
}
public class Receiver : ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using Jasper.Util;
using TestingSupport.Compliance;
using Xunit;
namespace Jasper.Testing.Transports.Tcp
{
public class Sender : JasperOptions
{
public Sen... |
Add Untyped Getter for EngineScriptComponent | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Testity.EngineComponents;
namespace Testity.EngineComponents.Unity3D
{
public interface ITestityBehaviour<out TScriptComponentType> : ITestityBehaviour
where TScriptComponentType : EngineScriptComponent
{
TScriptComponen... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Testity.EngineComponents;
namespace Testity.EngineComponents.Unity3D
{
public interface ITestityBehaviour<out TScriptComponentType> : ITestityBehaviour
where TScriptComponentType : EngineScriptComponent
{
TScriptComponen... |
Fix thread safety issue in TransactionManager. The depth should be per-thread. | using System;
using System.Threading;
using log4net;
namespace SharpArchContrib.Data.NHibernate {
[Serializable]
public abstract class TransactionManagerBase : ITransactionManager {
private static readonly ILog logger = LogManager.GetLogger(typeof(TransactionManagerBase));
private static int t... | using System;
using System.Threading;
using log4net;
namespace SharpArchContrib.Data.NHibernate {
[Serializable]
public abstract class TransactionManagerBase : ITransactionManager {
private static readonly ILog logger = LogManager.GetLogger(typeof(TransactionManagerBase));
[ThreadStatic]
... |
Refactor and add ExecuteScalar to SQLite wrapper | using Microsoft.Data.Sqlite;
using System.Collections.Generic;
namespace Business.Core.SQLite
{
public class Command : ICommand
{
IReader Reader { get; set; }
public SqliteConnection SQLiteConnection { get; set; }
public SqliteCommand SQLiteCommand { get; set; }
public SqliteDataReader SQLiteReader { get; se... | using Microsoft.Data.Sqlite;
using System.Collections.Generic;
namespace Business.Core.SQLite
{
public class Command : ICommand
{
IReader Reader { get; set; }
public SqliteConnection SQLiteConnection { get; set; }
public SqliteCommand SQLiteCommand { get; set; }
public SqliteDataReader SQLiteReader { get; se... |
Make test of @page/@model whitespace | @page
@model RazorPagesWebSite.HelloWorldWithPageModelHandler
Hello, @Model.Message!
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
} | @page
@model RazorPagesWebSite.HelloWorldWithPageModelHandler
Hello, @Model.Message!
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
} |
Remove registry entries on uninstall + refactor | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32;
namespace Rawr.LaunchPad.Installer
{
public class RegistryEditor
{
readonly string targetPath;
readonly List<string> keyNames = new List<string>
{... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32;
namespace Rawr.LaunchPad.Installer
{
public class RegistryEditor
{
readonly List<string> keyNames = new List<string>
{
"Excel.CSV",
... |
Change authentication failed error message. | @{
ViewData["Title"] = "Access Denied";
}
<div class="container">
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">Authentication Failed.</h2>
<p>
You have denied Competition Platform access to your resources.
</p>
</div> | @{
ViewData["Title"] = "Access Denied";
}
<div class="container">
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">Authentication Failed.</h2>
<p>
There was a remote failure during Authentication.
</p>
</div> |
Add cancel token variant for FromMethod | using System;
using System.Threading.Tasks;
#if EXTENJECT_INCLUDE_ADDRESSABLE_BINDINGS
using UnityEngine.ResourceManagement.AsyncOperations;
using UnityEngine.AddressableAssets;
#endif
namespace Zenject
{
[NoReflectionBaking]
public class AsyncFromBinderGeneric<TContract, TConcrete> : AsyncFromBinderBase wher... | using System;
using System.Threading;
using System.Threading.Tasks;
namespace Zenject
{
[NoReflectionBaking]
public class AsyncFromBinderGeneric<TContract, TConcrete> : AsyncFromBinderBase where TConcrete : TContract
{
public AsyncFromBinderGeneric(
DiContainer container, BindInfo bind... |
Fix for three bugs in three lines. | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using dbticket;
namespace db_pdftest
{
class Program
{
static void Main(string[] args)
{
if (args.Length < 2)
{
Console.WriteLine("Invalid... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using dbticket;
namespace db_pdftest
{
class Program
{
static void Main(string[] args)
{
if (args.Length < 1)
{
Console.WriteLine("Invalid... |
Fix issue "Unexpected RegexStringValidator failure in Configuration Property" | using System;
using System.Configuration;
namespace AspNet.Identity.MongoDB {
public class MongoDBIdentitySettings : ConfigurationSection {
private static MongoDBIdentitySettings settings = ConfigurationManager.GetSection("mongoDBIdentitySettings") as MongoDBIdentitySettings;
private const String userC... | using System;
using System.Configuration;
namespace AspNet.Identity.MongoDB {
public class MongoDBIdentitySettings : ConfigurationSection {
private static MongoDBIdentitySettings settings = ConfigurationManager.GetSection("mongoDBIdentitySettings") as MongoDBIdentitySettings;
private const String userC... |
Address AssemblyVersion issue as suggested. | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Reflection;
using System.Resources;
[assembly: AssemblyTitle("Microsoft Cognitive Services ComputerVision SDK")]
[assembly: AssemblyDescription("Pro... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Reflection;
using System.Resources;
[assembly: AssemblyTitle("Microsoft Cognitive Services ComputerVision SDK")]
[assembly: AssemblyDescription("Pro... |
Fix issue related to task execution Website-Create. | #addin "Cake.IIS"
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
//////////////////////////////////////... | #addin "Cake.IIS"
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
//////////////////////////////////////... |
Add NancyDashboardPassword setting used to enable dashboard | using Microsoft.Extensions.Configuration;
using Nancy;
using Nancy.TinyIoc;
namespace Silverpop.Client.WebTester.Infrastructure
{
public class CustomBootstrapper : DefaultNancyBootstrapper
{
public CustomBootstrapper()
{
var builder = new ConfigurationBuilder()
.Set... | using Microsoft.Extensions.Configuration;
using Nancy;
using Nancy.Configuration;
using Nancy.Diagnostics;
using Nancy.TinyIoc;
namespace Silverpop.Client.WebTester.Infrastructure
{
public class CustomBootstrapper : DefaultNancyBootstrapper
{
public CustomBootstrapper()
{
var build... |
Add overloads for configuring options when adding services | // Any comments, input: @KevinDockx
// Any issues, requests: https://github.com/KevinDockx/HttpCacheHeaders
using Marvin.Cache.Headers;
using Marvin.Cache.Headers.Interfaces;
using Marvin.Cache.Headers.Stores;
using Microsoft.Extensions.DependencyInjection;
using System;
namespace Microsoft.Extensions.DependencyInje... | // Any comments, input: @KevinDockx
// Any issues, requests: https://github.com/KevinDockx/HttpCacheHeaders
using Marvin.Cache.Headers;
using Marvin.Cache.Headers.Interfaces;
using Marvin.Cache.Headers.Stores;
using Microsoft.Extensions.DependencyInjection;
using System;
namespace Microsoft.Extensions.DependencyInje... |
Fix the name of DLL in DllImport. | // 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.Runtime.CompilerServices;
using System.Runtime.InteropServices;
internal static partial class Interop
{
private static class Libraries
... | // 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.Runtime.CompilerServices;
using System.Runtime.InteropServices;
internal static partial class Interop
{
private static class Libraries
... |
Add xml docs to collection operations. | using Arango.Client.Protocol;
namespace Arango.Client
{
public class ArangoCollectionOperation
{
private CollectionOperation _collectionOperation;
internal ArangoCollectionOperation(CollectionOperation collectionOperation)
{
_collectionOperation = collectionOpera... | using Arango.Client.Protocol;
namespace Arango.Client
{
public class ArangoCollectionOperation
{
private CollectionOperation _collectionOperation;
internal ArangoCollectionOperation(CollectionOperation collectionOperation)
{
_collectionOperation = collectionOpera... |
Remove Unecessary region in Grade Summary | using System.ComponentModel;
using System.Runtime.CompilerServices;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
namespace Ets.Mobile.Content.Grade
{
public sealed partial class GradeSummary : UserControl, INotifyPropertyChanged
{
public GradeSummary()
{
... | using System.ComponentModel;
using System.Runtime.CompilerServices;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
namespace Ets.Mobile.Content.Grade
{
public sealed partial class GradeSummary : UserControl, INotifyPropertyChanged
{
public GradeSummary()
{
... |
Remove unnecessary '@' before arg name | using System;
using System.Diagnostics;
using System.Numerics;
using ReactiveUI;
namespace SolidworksAddinFramework.OpenGl.Animation
{
public class LinearAnimation<T> : ReactiveObject, IAnimationSection
where T : IInterpolatable<T>
{
public T From { get; }
public T To { get; }
... | using System;
using System.Diagnostics;
using System.Numerics;
using ReactiveUI;
namespace SolidworksAddinFramework.OpenGl.Animation
{
public class LinearAnimation<T> : ReactiveObject, IAnimationSection
where T : IInterpolatable<T>
{
public T From { get; }
public T To { get; }
... |
Add dispose for session if the session is not null. This means that the session is created with the uow | using System;
using System.Data;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Data
{
public abstract class DbTransaction : IDbTransaction
{
private readonly IDbFactory _factory;
protected bool Disposed;
public IDbTransaction Transaction { get; set; }
public IDbConnection C... | using System;
using System.Data;
namespace Smooth.IoC.Dapper.Repository.UnitOfWork.Data
{
public abstract class DbTransaction : IDbTransaction
{
private readonly IDbFactory _factory;
protected bool Disposed;
protected ISession Session;
public IDbTransaction Transaction { get; s... |
Test for different named for bool | namespace Gu.Analyzers.Test.GU0009UseNamedParametersForBooleansTests
{
using System.Threading.Tasks;
using NUnit.Framework;
internal class Diagnostics : DiagnosticVerifier<Analyzers.GU0009UseNamedParametersForBooleans>
{
[Test]
public async Task UnnamedBooleanParameters()
{
... | namespace Gu.Analyzers.Test.GU0009UseNamedParametersForBooleansTests
{
using System.Threading.Tasks;
using NUnit.Framework;
internal class Diagnostics : DiagnosticVerifier<Analyzers.GU0009UseNamedParametersForBooleans>
{
[Test]
public async Task UnnamedBooleanParameters()
{
... |
Convert time received from Robinhood to local before charting it. | 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;
using BasicallyMe.RobinhoodNet;
namespace RobinhoodDesktop.HomePage
{
public partial cl... | 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;
using BasicallyMe.RobinhoodNet;
namespace RobinhoodDesktop.HomePage
{
public partial class HomePageF... |
Fix RavenConfiguration for Embedded mode. | using Ninject;
using Ninject.Modules;
using Ninject.Web.Common;
using Raven.Client;
using Raven.Client.Embedded;
namespace CGO.Web.NinjectModules
{
public class RavenModule : NinjectModule
{
public override void Load()
{
Kernel.Bind<IDocumentStore>().ToMethod(_ => InitialiseDocume... | using Ninject;
using Ninject.Modules;
using Ninject.Web.Common;
using Raven.Client;
using Raven.Client.Embedded;
namespace CGO.Web.NinjectModules
{
public class RavenModule : NinjectModule
{
public override void Load()
{
Kernel.Bind<IDocumentStore>().ToMethod(_ => InitialiseDocume... |
Correct Administrators Role (set IsAdministrator to false) | using System;
using Tralus.Framework.BusinessModel.Entities;
namespace Tralus.Framework.Migration.Migrations
{
using System.Data.Entity.Migrations;
public sealed class Configuration : TralusDbMigrationConfiguration<Data.FrameworkDbContext>
{
public Configuration()
{
AutomaticM... | using System;
using Tralus.Framework.BusinessModel.Entities;
namespace Tralus.Framework.Migration.Migrations
{
using System.Data.Entity.Migrations;
public sealed class Configuration : TralusDbMigrationConfiguration<Data.FrameworkDbContext>
{
public Configuration()
{
AutomaticM... |
Add new option so anyone who set the option value in 17.0 doesn't forever disable async lightbulbs in 17.1 and onwards | // 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 Microsoft.CodeAnalysis.Options;
namespace Microsoft.CodeAnalysis.Editor.Implementation.Suggestions
{
int... | // 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 Microsoft.CodeAnalysis.Options;
namespace Microsoft.CodeAnalysis.Editor.Implementation.Suggestions
{
int... |
Test was expecting ordered data without order by. | // Copyright 2020 Google 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.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | // Copyright 2020 Google 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.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
Add option to enforce placement even if turned off | using SPAD.neXt.Interfaces.Profile;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace SPAD.neXt.Interfaces.Configuration
{
public interface ISettingsProvider : IProfileOptionsProvider, IWindowPlacementProvider
{ ... | using SPAD.neXt.Interfaces.Profile;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace SPAD.neXt.Interfaces.Configuration
{
public interface ISettingsProvider : IProfileOptionsProvider, IWindowPlacementProvider
{ ... |
Revert tournament beatmap panel test change with comment | // 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.Online.API.Requests;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Tournament.... | // 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.Online.API;
using osu.Game.Online.API.Requests;
using osu.Game.Online.API.Requests.Responses;... |
Trim double full-stop in xmldoc | // 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 JetBrains.Annotations;
using osu.Game.Audio;
namespace osu.Game.Skinning
{
/// <summary>
/// Provides pooled samples to be used by <see cref="SkinnableSoun... | // 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 JetBrains.Annotations;
using osu.Game.Audio;
namespace osu.Game.Skinning
{
/// <summary>
/// Provides pooled samples to be used by <see cref="SkinnableSoun... |
Exclude debug extensions from coverage | #if DEBUG
using System;
using System.IO;
using System.Reflection;
using SilentHunter.FileFormats.IO;
namespace SilentHunter.FileFormats.Extensions
{
internal static class DebugExtensions
{
internal static string GetBaseStreamName(this Stream s)
{
Stream baseStream = s;
if (baseStream is RegionStream)
{... | #if DEBUG
using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Reflection;
using SilentHunter.FileFormats.IO;
namespace SilentHunter.FileFormats.Extensions
{
[ExcludeFromCodeCoverage]
internal static class DebugExtensions
{
internal static string GetBaseStreamName(this Stream s)
{... |
Update how the 401 status code is returned when authenticating | using Microsoft.Owin;
using System.Linq;
using System.Security.Principal;
using System.Threading.Tasks;
namespace CompleteSample.Authentication
{
public class AuthenticationMiddleware : OwinMiddleware
{
public AuthenticationMiddleware(OwinMiddleware next)
: base(next)
{
}
... | using Microsoft.Owin;
using System.Linq;
using System.Security.Principal;
using System.Threading.Tasks;
namespace CompleteSample.Authentication
{
public class AuthenticationMiddleware : OwinMiddleware
{
public AuthenticationMiddleware(OwinMiddleware next)
: base(next)
{
}
... |
Use string.PadRight to be more explicit with what we are doing with the Log4Net level property enricher | using Serilog.Core;
using Serilog.Events;
namespace Umbraco.Core.Logging.SerilogExtensions
{
/// <summary>
/// This is used to create a new property in Logs called 'Log4NetLevel'
/// So that we can map Serilog levels to Log4Net levels - so log files stay consistent
/// </summary>
public class Log4... | using Serilog.Core;
using Serilog.Events;
namespace Umbraco.Core.Logging.SerilogExtensions
{
/// <summary>
/// This is used to create a new property in Logs called 'Log4NetLevel'
/// So that we can map Serilog levels to Log4Net levels - so log files stay consistent
/// </summary>
public class Log4... |
Return some error if we fuck up hard | using System;
using System.Collections.Generic;
using System.Net;
using System.Threading.Tasks;
using Apollo.Converters;
using Branch.Packages.Exceptions;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
... | using System;
using System.Collections.Generic;
using System.Net;
using System.Threading.Tasks;
using Apollo.Converters;
using Branch.Packages.Exceptions;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
... |
Add log statement to track outdated links | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CatchAllRule.Controllers
{
public class EverythingController : Controller
{
// GET: Everything
public ActionResult Index()
{
return View();
}
}
} | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CatchAllRule.Controllers
{
public class EverythingController : Controller
{
// GET: Everything
public ActionResult Index()
{
// use your logger to track outd... |
Fix for text-changed selector in tests | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FluentAutomation.Tests.Pages
{
public class InputsPage : PageObject<InputsPage>
{
public InputsPage(FluentTest test)
: base(test)
{
this.Url = "/Inputs";
}
p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FluentAutomation.Tests.Pages
{
public class InputsPage : PageObject<InputsPage>
{
public InputsPage(FluentTest test)
: base(test)
{
this.Url = "/Inputs";
}
p... |
Throw exception if access token is null | using System;
using RestSharp;
using RestSharp.Contrib;
namespace AppHarbor.Commands
{
[CommandHelp("Login to AppHarbor")]
public class LoginAuthCommand : ICommand
{
private readonly IAccessTokenConfiguration _accessTokenConfiguration;
public LoginAuthCommand(IAccessTokenConfiguration accessTokenConfiguration... | using System;
using RestSharp;
using RestSharp.Contrib;
namespace AppHarbor.Commands
{
[CommandHelp("Login to AppHarbor")]
public class LoginAuthCommand : ICommand
{
private readonly IAccessTokenConfiguration _accessTokenConfiguration;
public LoginAuthCommand(IAccessTokenConfiguration accessTokenConfiguration... |
Make test resource more specific | using Glimpse.Web;
using System;
using System.Text;
using System.Threading.Tasks;
namespace Glimpse.Server.Web.Resources
{
public class HelloGlimpseResource : IRequestHandler
{
public bool WillHandle(IContext context)
{
return context.Request.Path.StartsWith("/Glimpse");
}
... | using Glimpse.Web;
using System;
using System.Text;
using System.Threading.Tasks;
namespace Glimpse.Server.Web.Resources
{
public class HelloGlimpseResource : IRequestHandler
{
public bool WillHandle(IContext context)
{
return context.Request.Path == "/Glimpse";
}
... |
Update the version to 3.2.1. | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("lozanotek")]
[assembly: AssemblyProduct("MvcTurbine")]
[assembly: AssemblyCopyright("Copyright © lozanotek, inc. 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("lozanotek")]
[assembly: AssemblyProduct("MvcTurbine")]
[assembly: AssemblyCopyright("Copyright © lozanotek, inc. 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false... |
Move using where it belongs | using System.Collections.Generic;
using System.Linq;
namespace NMaier.SimpleDlna.Utilities
{
using Attribute = KeyValuePair<string, string>;
using System;
public sealed class AttributeCollection : IEnumerable<Attribute>
{
private readonly IList<Attribute> list = new List<Attribute>();
public int Co... | using System;
using System.Collections.Generic;
using System.Linq;
namespace NMaier.SimpleDlna.Utilities
{
using Attribute = KeyValuePair<string, string>;
public sealed class AttributeCollection : IEnumerable<Attribute>
{
private readonly IList<Attribute> list = new List<Attribute>();
public int Coun... |
Add implementation for oauth authentication example. | namespace TraktOAuthAuthenticationExample
{
class Program
{
static void Main(string[] args)
{
}
}
}
| namespace TraktOAuthAuthenticationExample
{
using System;
using System.Threading.Tasks;
using TraktApiSharp;
using TraktApiSharp.Authentication;
using TraktApiSharp.Exceptions;
class Program
{
private const string CLIENT_ID = "ENTER_CLIENT_ID_HERE";
private const string CLI... |
Remove the test for the situation whree all the parameters are valid. | namespace NBench.VisualStudio.TestAdapter
{
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
public class NBenchTestDiscoverer : ITestDiscoverer
{
... | namespace NBench.VisualStudio.TestAdapter
{
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
public class NBenchTestDiscoverer : ITestDiscoverer
{
... |
Set initialized to false in OnCreated | using System;
using ColossalFramework;
using ICities;
namespace ModTools
{
public class LoadingExtension : LoadingExtensionBase
{
public override void OnCreated(ILoading loading)
{
base.OnCreated(loading);
ModToolsBootstrap.inMainMenu = false;
ModToolsBootst... | using System;
using ColossalFramework;
using ICities;
namespace ModTools
{
public class LoadingExtension : LoadingExtensionBase
{
public override void OnCreated(ILoading loading)
{
base.OnCreated(loading);
ModToolsBootstrap.inMainMenu = false;
ModToolsBootst... |
Add missing return when creating Answer | namespace Qvision.Umbraco.PollIt.Controllers.ApiControllers
{
using System.Net;
using System.Net.Http;
using System.Web.Http;
using global::Umbraco.Web.Editors;
using Qvision.Umbraco.PollIt.Attributes;
using Qvision.Umbraco.PollIt.CacheRefresher;
using Qvision.Umbraco.PollIt.Models.Pocos;... | namespace Qvision.Umbraco.PollIt.Controllers.ApiControllers
{
using System.Net;
using System.Net.Http;
using System.Web.Http;
using global::Umbraco.Web.Editors;
using Qvision.Umbraco.PollIt.Attributes;
using Qvision.Umbraco.PollIt.CacheRefresher;
using Qvision.Umbraco.PollIt.Models.Pocos;... |
Update status enum to match current data base setup | using System.Runtime.Serialization;
namespace GogoKit.Models.Response
{
[DataContract]
public class Seating
{
[DataMember(Name = "section")]
public string Section { get; set; }
[DataMember(Name = "row")]
public string Row { get; set; }
[DataMember(Name = "seat_fro... | using System.Runtime.Serialization;
namespace GogoKit.Models.Response
{
[DataContract]
public class Seating
{
[DataMember(Name = "section")]
public string Section { get; set; }
[DataMember(Name = "row")]
public string Row { get; set; }
[DataMember(Name = "seat_fro... |
Check of XML file existance | using System.Web.Http;
using Swashbuckle.Application;
using System;
namespace WebHost
{
internal static class SwaggerConfig
{
public static void Register(HttpConfiguration httpConfigurations)
{
var thisAssembly = typeof(SwaggerConfig).Assembly;
httpConfigurations
... | using System.Web.Http;
using Swashbuckle.Application;
using System;
using System.IO;
namespace WebHost
{
internal static class SwaggerConfig
{
public static void Register(HttpConfiguration httpConfigurations)
{
var thisAssembly = typeof(SwaggerConfig).Assembly;
var core... |
Update page title to ampersand | <title>Hearts and Bones Dog Rescue - Pet Adoption - @ViewBag.Title</title>
@* Recommended meta tags for bootstrap *@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Hearts & Bones Rescue is a 501(c)3 non-profit or... | <title>Hearts & Bones Dog Rescue - Pet Adoption - @ViewBag.Title</title>
@* Recommended meta tags for bootstrap *@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Hearts & Bones Rescue is a 501(c)3 non-profit ... |
Fix for scene context editor crash | #if !ODIN_INSPECTOR
using UnityEditor;
namespace Zenject
{
[CanEditMultipleObjects]
[CustomEditor(typeof(SceneContext))]
public class SceneContextEditor : RunnableContextEditor
{
SerializedProperty _contractNameProperty;
SerializedProperty _parentNamesProperty;
SerializedProper... | #if !ODIN_INSPECTOR
using UnityEditor;
namespace Zenject
{
[CanEditMultipleObjects]
[CustomEditor(typeof(SceneContext))]
public class SceneContextEditor : RunnableContextEditor
{
SerializedProperty _contractNameProperty;
SerializedProperty _parentNamesProperty;
SerializedProper... |
Add option to throw an exception without logging it. | using System;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace Cimpress.Extensions.Http
{
public static class HttpResponseMessageExtensions
{
public static async Task LogAndThrowIfNotSuccessStatusCode(this HttpResponseMessage message, ILogger logger)
... | using System;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace Cimpress.Extensions.Http
{
public static class HttpResponseMessageExtensions
{
public static async Task LogAndThrowIfNotSuccessStatusCode(this HttpResponseMessage message, ILogger logger)
... |
Add the query for capability | // 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 System.Data.Common
{
public static class DbDataReaderExtension
{
public static System.Coll... | // 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 System.Data.Common
{
public static class DbDataReaderExtension
{
public static System.Coll... |
Clear connection pool so that an actual connection is created always | using System;
using Npgsql;
namespace Dotnet.Microservice.Health.Checks
{
public class PostgresqlHealthCheck
{
/// <summary>
/// Check that a connection can be established to Postgresql and return the server version
/// </summary>
/// <param name="connectionString">An Npgsql co... | using System;
using Npgsql;
namespace Dotnet.Microservice.Health.Checks
{
public class PostgresqlHealthCheck
{
/// <summary>
/// Check that a connection can be established to Postgresql and return the server version
/// </summary>
/// <param name="connectionString">An Npgsql co... |
Use lock for in-memory store | using System.Collections.Generic;
using System.Threading.Tasks;
using SocialToolBox.Core.Database;
using SocialToolBox.Core.Database.Projection;
using SocialToolBox.Core.Database.Serialization;
namespace SocialToolBox.Core.Mocks.Database.Projections
{
/// <summary>
/// An in-memory implementation of <see cref... | using System.Collections.Generic;
using System.Threading.Tasks;
using SocialToolBox.Core.Async;
using SocialToolBox.Core.Database;
using SocialToolBox.Core.Database.Projection;
using SocialToolBox.Core.Database.Serialization;
namespace SocialToolBox.Core.Mocks.Database.Projections
{
/// <summary>
/// An in-me... |
Allow to run build even if git repo informations are not available | #tool "nuget:?package=GitVersion.CommandLine"
#addin "Cake.Yaml"
public class ContextInfo
{
public string NugetVersion { get; set; }
public string AssemblyVersion { get; set; }
public GitVersion Git { get; set; }
public string BuildVersion
{
get { return NugetVersion + "-" + Git.Sha; }
... | #tool "nuget:?package=GitVersion.CommandLine"
#addin "Cake.Yaml"
public class ContextInfo
{
public string NugetVersion { get; set; }
public string AssemblyVersion { get; set; }
public GitVersion Git { get; set; }
public string BuildVersion
{
get { return NugetVersion + "-" + Git.Sha; }
... |
Make internals visible to the test assembly | 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: AssemblyTitle("Ce... | 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: AssemblyTitle("Ce... |
Use th esupplied access mappign instead of looking it up a second time. | #if TFS2015u2
using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.TeamFoundation.Framework.Server;
using Microsoft.VisualStudio.Services.Location;
using Microsoft.VisualStudio.Services.Location.Server;
namespace Aggregator.Core.Extensions
{
public static class LocationServiceExtensions
{
... | #if TFS2015u2
using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.TeamFoundation.Framework.Server;
using Microsoft.VisualStudio.Services.Location;
using Microsoft.VisualStudio.Services.Location.Server;
namespace Aggregator.Core.Extensions
{
public static class LocationServiceExtensions
{
... |
Fix incorrect clearing of room | // 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.Framework.Graphics.Containers;
using osu.Game.Online.Rooms;
using osu.Game.Screens.OnlinePlay.Multiplayer.M... | // 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.Framework.Graphics.Containers;
using osu.Game.Screens.OnlinePlay.Multiplayer.Match;
namespace osu.Game.Tes... |
Handle for multiple picked media relations | using System.Collections.Generic;
using Umbraco.Core;
using Umbraco.Core.Logging;
using Umbraco.Core.Models.Editors;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.PropertyEditors
{
/// <summary>
/// Represents a media picker property editor.
/// </summary>
[DataEditor(
Constants.Pr... | using System.Collections.Generic;
using Umbraco.Core;
using Umbraco.Core.Logging;
using Umbraco.Core.Models.Editors;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.PropertyEditors
{
/// <summary>
/// Represents a media picker property editor.
/// </summary>
[DataEditor(
Constants.Pr... |
Adjust the MapOverView map scale | using Esri.ArcGISRuntime;
using Esri.ArcGISRuntime.Controls;
using Esri.ArcGISRuntime.Geometry;
using Esri.ArcGISRuntime.Layers;
using System.Linq;
using Windows.UI.Xaml.Controls;
namespace ArcGISRuntimeSDKDotNet_StoreSamples.Samples
{
/// <summary>
///
/// </summary>
/// <category>Mapping</category>
public ... | using Esri.ArcGISRuntime;
using Esri.ArcGISRuntime.Controls;
using Esri.ArcGISRuntime.Geometry;
using Esri.ArcGISRuntime.Layers;
using System.Linq;
using Windows.UI.Xaml.Controls;
namespace ArcGISRuntimeSDKDotNet_StoreSamples.Samples
{
/// <summary>
///
/// </summary>
/// <category>Mapping</category>
public ... |
Fix pixels poking out of the top edge of editor setup screen | // 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.Containers;
namespace osu.Game.Screens.Edit.Setup
{
public class SetupScreen :... | // 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.Containers;
namespace osu.Game.Screens.Edit.Setup
{
public class SetupScreen :... |
Move MitternachtBot instance to a static variable. | using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
using Mitternacht;
using System.Threading.Tasks;
namespace MitternachtWeb {
public class Program {
public static async Task Main(string[] args) {
await new MitternachtBot(0, 0).RunAsync(args);
await CreateHostBuilder(args).Build().Run... | using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
using Mitternacht;
using System.Threading.Tasks;
namespace MitternachtWeb {
public class Program {
public static MitternachtBot MitternachtBot;
public static async Task Main(string[] args) {
MitternachtBot = new MitternachtBot(0, 0);
a... |
Add CanPerformAction condition to bluebottle broom | using HarryPotterUnity.Cards.BasicBehavior;
using JetBrains.Annotations;
namespace HarryPotterUnity.Cards.Quidditch.Items
{
[UsedImplicitly]
public class BluebottleBroom : ItemLessonProvider
{
public override void OnSelectedAction()
{
var card = Player.Discard.GetHealableCards(... | using HarryPotterUnity.Cards.BasicBehavior;
using JetBrains.Annotations;
namespace HarryPotterUnity.Cards.Quidditch.Items
{
[UsedImplicitly]
public class BluebottleBroom : ItemLessonProvider
{
public override void OnSelectedAction()
{
var card = Player.Discard.GetHealableCards(... |
Return a shared contract resolver | // 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.
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Microsoft.AspNetCore.Mvc.Formatters
{
/// <summary>
/// Helper class whic... | // 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.
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Microsoft.AspNetCore.Mvc.Formatters
{
/// <summary>
/// Helper class whic... |
Allow TypeName to be used as Dictionary key | using Utf8Json;
namespace Nest
{
internal class TypeNameFormatter : IJsonFormatter<TypeName>
{
public TypeName Deserialize(ref JsonReader reader, IJsonFormatterResolver formatterResolver)
{
if (reader.GetCurrentJsonToken() == JsonToken.String)
{
TypeName typeName = reader.ReadString();
return type... | using Utf8Json;
namespace Nest
{
internal class TypeNameFormatter : IJsonFormatter<TypeName>, IObjectPropertyNameFormatter<TypeName>
{
public TypeName Deserialize(ref JsonReader reader, IJsonFormatterResolver formatterResolver)
{
if (reader.GetCurrentJsonToken() == JsonToken.String)
{
TypeName typeNam... |
Fix file location for build server | namespace Tests
{
using System;
using System.IO;
using System.Reflection;
using System.Xml.Linq;
using JetBrains.Annotations;
using Tests.Properties;
using Xunit;
public class IntegrationTests
{
[NotNull]
private readonly Assembly _assembly;
public Integ... | namespace Tests
{
using System;
using System.IO;
using System.Reflection;
using System.Xml.Linq;
using JetBrains.Annotations;
using Tests.Properties;
using Xunit;
public class IntegrationTests
{
[NotNull]
private readonly string _targetFolder = AppDomain.CurrentD... |
Update Home Controller to send message - and log it | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Talks.C2DF.Interfaces;
namespace Talks.C2DF.Web.Controllers
{
public class HomeController: Controller
{
//ICostCalculator calculator;
//public HomeController(ICostCalculator calculator)
//{
// th... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Talks.C2DF.BetterApp.Lib.Logging;
using Talks.C2DF.Interfaces;
namespace Talks.C2DF.Web.Controllers
{
public class HomeController: Controller
{
ISendingMicroApp sendingApp;
IAppLogger _logger;
pu... |
Fix lurking wife mode on transaction id in details | using WalletWasabi.Gui.Controls.TransactionDetails.ViewModels;
using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Gui.Controls.WalletExplorer
{
public class TransactionInfoTabViewModel : WasabiDocumentTabViewModel
{
public TransactionInfoTabViewModel(TransactionDetailsViewModel transaction) : base("")
{
... | using System;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using ReactiveUI;
using Splat;
using WalletWasabi.Gui.Controls.TransactionDetails.ViewModels;
using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Gui.Controls.WalletExplorer
{
public class TransactionInfoTabViewModel : WasabiDocumentTa... |
Fix breaking change in SDK | using System;
using System.Collections.Generic;
using JetBrains.Application;
using JetBrains.DataFlow;
using JetBrains.Lifetimes;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Plugins.Yaml.ProjectModel;
using JetBrains.Util;
namespace JetBrains.ReSharper.Plugins.Yaml.Tests
{
[ShellComponent]
public clas... | using System;
using System.Collections.Generic;
using JetBrains.Application;
using JetBrains.Lifetimes;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Plugins.Yaml.ProjectModel;
using JetBrains.Util;
namespace JetBrains.ReSharper.Plugins.Yaml.Tests
{
[ShellComponent]
public class UnityTestsSpecificYamlFi... |
Work around incomatibility in SGMiner 4.0 with the CGMiner RPC API | using System;
using System.Collections.Generic;
using System.Linq;
namespace MultiMiner.Xgminer.Api.Parsers
{
class VersionInformationParser : ResponseTextParser
{
public static void ParseTextForVersionInformation(string text, MultiMiner.Xgminer.Api.Data.VersionInformation versionInformation)
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace MultiMiner.Xgminer.Api.Parsers
{
class VersionInformationParser : ResponseTextParser
{
public static void ParseTextForVersionInformation(string text, MultiMiner.Xgminer.Api.Data.VersionInformation versionInformation)
... |
Check database name input parameter | using System;
using System.Data;
using System.Data.SqlClient;
using Microsoft.SqlServer.Server;
namespace DeviceHive.Setup.Actions
{
class SqlDatabaseValidator
{
private SqlConnection _connection;
public SqlDatabaseValidator(SqlConnection connection)
{
if (connection == nu... | using System;
using System.Data;
using System.Data.SqlClient;
using Microsoft.SqlServer.Server;
namespace DeviceHive.Setup.Actions
{
class SqlDatabaseValidator
{
private SqlConnection _connection;
public SqlDatabaseValidator(SqlConnection connection)
{
if (connection == nu... |
Fix docfixed to work with iOS5 | //
// MonoTouch defines for docfixer
//
using System;
using System.IO;
using System.Reflection;
using MonoTouch.Foundation;
public partial class DocGenerator {
static Assembly assembly = typeof (MonoTouch.Foundation.NSObject).Assembly;
const string BaseNamespace = "MonoTouch";
static string GetMostRecentDocBase ()... | //
// MonoTouch defines for docfixer
//
using System;
using System.IO;
using System.Reflection;
using MonoTouch.Foundation;
public partial class DocGenerator {
static Assembly assembly = typeof (MonoTouch.Foundation.NSObject).Assembly;
const string BaseNamespace = "MonoTouch";
static string GetMostRecentDocBase ()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.