Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Add a comment about when the MoE calculation will be wrong. | using System;
using System.Collections.Generic;
using System.Linq;
using MathNet.Numerics.Statistics;
namespace VstsMetrics.Commands.CycleTime
{
public static class WorkItemCycleTimeExtensions
{
public static IEnumerable<WorkItemCycleTimeSummary> Summarise(this IEnumerable<WorkItemCycleTime> cycleTimes... | using System;
using System.Collections.Generic;
using System.Linq;
using MathNet.Numerics.Statistics;
namespace VstsMetrics.Commands.CycleTime
{
public static class WorkItemCycleTimeExtensions
{
public static IEnumerable<WorkItemCycleTimeSummary> Summarise(this IEnumerable<WorkItemCycleTime> cycleTimes... |
Move musig class in the musig namespace | #if HAS_SPAN
#nullable enable
using NBitcoin.Secp256k1.Musig;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Text;
namespace NBitcoin.Secp256k1
{
#if SECP256K1_LIB
public
#endif
class MusigPartialSi... | #if HAS_SPAN
#nullable enable
using NBitcoin.Secp256k1.Musig;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Text;
namespace NBitcoin.Secp256k1.Musig
{
#if SECP256K1_LIB
public
#endif
class MusigPar... |
Fix native AdjustImei class path | using System;
using System.Runtime.InteropServices;
using UnityEngine;
namespace com.adjust.sdk.imei
{
#if UNITY_ANDROID
public class AdjustImeiAndroid
{
private static AndroidJavaClass ajcAdjustImei = new AndroidJavaClass("com.adjust.sdk.imei.AdjustImei");
public static void ReadImei()
... | using System;
using System.Runtime.InteropServices;
using UnityEngine;
namespace com.adjust.sdk.imei
{
#if UNITY_ANDROID
public class AdjustImeiAndroid
{
private static AndroidJavaClass ajcAdjustImei = new AndroidJavaClass("com.adjust.sdk.imei.AdjustImei");
public static void ReadImei()
... |
Include git information in json file | namespace StyleCop.Analyzers.Status.Generator
{
using System;
using System.IO;
using LibGit2Sharp;
using Newtonsoft.Json;
/// <summary>
/// The starting point of this application.
/// </summary>
internal class Program
{
/// <summary>
/// The starting point of this a... | namespace StyleCop.Analyzers.Status.Generator
{
using System;
using System.IO;
using System.Linq;
using LibGit2Sharp;
using Newtonsoft.Json;
/// <summary>
/// The starting point of this application.
/// </summary>
internal class Program
{
/// <summary>
/// The s... |
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 the assembly version that remains at the major. | using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Integration.Wcf")]
[assembly: AssemblyDescription("Autofac WCF Integration")]
[assembly: InternalsVisibleTo("Autofac.Tests.Integration.Wcf, PublicKey=00240000048... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Autofac.Integration.Wcf")]
[assembly: InternalsVisibleTo("Autofac.Tests.Integration.Wcf, PublicKey=00240000048000009400000006020000002400005253413100040000010001008728425885ef385e049261... |
Add data contract attributes to ComparisionReport.cs | using System.Collections.Generic;
namespace Gigobyte.Daterpillar.Compare
{
public class ComparisonReport
{
public Counter Counters;
public Outcome Summary { get; set; }
public IList<Discrepancy> Discrepancies { get; set; }
public struct Counter
{
public in... | using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Gigobyte.Daterpillar.Compare
{
[DataContract]
public class ComparisonReport : IEnumerable<Discrepancy>
{
public Counter Counters;
[DataMember]
public Outcome Summary { get; se... |
Fix metaData JSON property name case. | using System;
using Newtonsoft.Json;
using Toggl.Phoebe.Bugsnag.Json;
using System.Collections.Generic;
namespace Toggl.Phoebe.Bugsnag.Data
{
[JsonObject (MemberSerialization.OptIn)]
public class Event
{
[JsonProperty ("user", DefaultValueHandling = DefaultValueHandling.Ignore)]
public User... | using System;
using Newtonsoft.Json;
using Toggl.Phoebe.Bugsnag.Json;
using System.Collections.Generic;
namespace Toggl.Phoebe.Bugsnag.Data
{
[JsonObject (MemberSerialization.OptIn)]
public class Event
{
[JsonProperty ("user", DefaultValueHandling = DefaultValueHandling.Ignore)]
public User... |
Make sure MercuryId do not get serialized. | using System.Runtime.Serialization;
namespace Plexo
{
[DataContract]
public class Currency
{
[DataMember]
public int CurrencyId { get; set; }
[DataMember]
public string Name { get; set; }
[DataMember]
public string Plural { get; set; }
[DataMember]
... | using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace Plexo
{
[DataContract]
public class Currency
{
[DataMember]
public int CurrencyId { get; set; }
[DataMember]
public string Name { get; set; }
[DataMember]
public string Plural { get; set; }
... |
Fix registration of tooltip only highlighter | using JetBrains.TextControl.DocumentMarkup;
namespace JetBrains.ReSharper.Plugins.Unity.AsmDef.Feature.Services.Daemon.Attributes
{
[RegisterHighlighter(GUID_REFERENCE_TOOLTIP, EffectType = EffectType.TEXT)]
public static class AsmDefHighlightingAttributeIds
{
public const string GUID_REFERENCE_TOO... | using JetBrains.TextControl.DocumentMarkup;
namespace JetBrains.ReSharper.Plugins.Unity.AsmDef.Feature.Services.Daemon.Attributes
{
// Rider doesn't support an empty set of attributes (all the implementations of IRiderHighlighterModelCreator
// return null), so we must define something. If we define an EffectT... |
Fix metadata key, its the aggregate sequence number not the global one | // The MIT License (MIT)
//
// Copyright (c) 2015 Rasmus Mikkelsen
// https://github.com/rasmus/EventFlow
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including... | // The MIT License (MIT)
//
// Copyright (c) 2015 Rasmus Mikkelsen
// https://github.com/rasmus/EventFlow
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including... |
Fix catch selection blueprint not displayed after copy-pasted | // 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.Game.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.UI;
using osu.Game.Rulesets.UI.Scrolling;
usi... | // 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.Game.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.UI;
using osu.Game.Rulesets.UI.Scrolling;
usi... |
Fix flags (Mac shouldn't be 0 based) | using System;
namespace Cake.Xamarin.Build
{
[Flags]
public enum BuildPlatforms
{
Mac = 0,
Windows = 1,
Linux = 2
}
}
| using System;
namespace Cake.Xamarin.Build
{
[Flags]
public enum BuildPlatforms
{
Mac = 1,
Windows = 2,
Linux = 4
}
}
|
Use bufferless stream to improve perf and resource usage | using System.IO;
using System.IO.Compression;
using System.Web;
namespace Kudu.Services
{
public static class HttpRequestExtensions
{
public static Stream GetInputStream(this HttpRequestBase request)
{
var contentEncoding = request.Headers["Content-Encoding"];
if (cont... | using System.IO;
using System.IO.Compression;
using System.Web;
namespace Kudu.Services
{
public static class HttpRequestExtensions
{
public static Stream GetInputStream(this HttpRequestBase request)
{
var contentEncoding = request.Headers["Content-Encoding"];
if (cont... |
Remove need for function test to register telemetry source | using System.Diagnostics.Tracing;
using Glimpse.Agent.AspNet.Mvc;
using Glimpse.Agent.Web;
using Glimpse.Server.Web;
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;
namespace Glimpse.FunctionalTest.Website
{
public class Startup
{
public void ConfigureServices(IServiceCo... | using System.Diagnostics.Tracing;
using Glimpse.Agent.AspNet.Mvc;
using Glimpse.Agent.Web;
using Glimpse.Server.Web;
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;
namespace Glimpse.FunctionalTest.Website
{
public class Startup
{
public void ConfigureServices(IServiceCo... |
Allow substituting of internal types. | // Copyright (c) Samuel Cragg.
//
// Licensed under the MIT license. See LICENSE file in the project root for
// full license information.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Samuel Cra... | // Copyright (c) Samuel Cragg.
//
// Licensed under the MIT license. See LICENSE file in the project root for
// full license information.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Samuel Cra... |
Reset the counter for the next playthrough - BH | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class DestroyEnemy : MonoBehaviour {
public static int kills = 0;
void OnCollisionEnter (Collision col) {
if(col.gameObject.name.Contains("Monster")) {
kills += 1;
Destroy(col.gameObjec... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class DestroyEnemy : MonoBehaviour {
public static int kills = 0;
void OnCollisionEnter (Collision col) {
if(col.gameObject.name.Contains("Monster")) {
kills += 1;
Destroy(col.gameObjec... |
Allow configure to be null | using System;
using Microsoft.Extensions.DependencyInjection;
using MR.Augmenter.Internal;
namespace MR.Augmenter
{
public static class AugmenterServiceCollectionExtensions
{
public static IAugmenterBuilder AddAugmenter(
this IServiceCollection services,
Action<AugmenterConfiguration> configure)
{
serv... | using System;
using Microsoft.Extensions.DependencyInjection;
using MR.Augmenter.Internal;
namespace MR.Augmenter
{
public static class AugmenterServiceCollectionExtensions
{
/// <summary>
/// Adds augmenter to services.
/// </summary>
/// <param name="services"></param>
/// <param name="configure">Can be... |
Set a default value for MP3 recording preset for new config files | using System;
using System.Collections.Generic;
using System.IO;
using System.Windows.Input;
using AudioSharp.Utils;
namespace AudioSharp.Config
{
public class ConfigHandler
{
public static void SaveConfig(Configuration config)
{
string json = JsonUtils.SerializeObject(config);
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Windows.Input;
using AudioSharp.Utils;
namespace AudioSharp.Config
{
public class ConfigHandler
{
public static void SaveConfig(Configuration config)
{
string json = JsonUtils.SerializeObject(config);
... |
Update assembly and file version | 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("Ex... | 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("Ex... |
Use safe cast for readability | using System.Linq;
using BobTheBuilder.ArgumentStore.Queries;
using JetBrains.Annotations;
namespace BobTheBuilder.Activation
{
internal class InstanceCreator
{
private readonly IArgumentStoreQuery constructorArgumentsQuery;
public InstanceCreator([NotNull]IArgumentStoreQuery constructorArgum... | using System.Linq;
using BobTheBuilder.ArgumentStore.Queries;
using JetBrains.Annotations;
namespace BobTheBuilder.Activation
{
internal class InstanceCreator
{
private readonly IArgumentStoreQuery constructorArgumentsQuery;
public InstanceCreator([NotNull]IArgumentStoreQuery constructorArgum... |
Change Copyright page to License page. | using System;
using System.Web.Mvc;
using TeacherPouch.Models;
using TeacherPouch.Web.ViewModels;
namespace TeacherPouch.Web.Controllers
{
public partial class PagesController : ControllerBase
{
// GET: /
public virtual ViewResult Home()
{
return View(Views.Home);
... | using System;
using System.Web.Mvc;
using TeacherPouch.Models;
using TeacherPouch.Web.ViewModels;
namespace TeacherPouch.Web.Controllers
{
public partial class PagesController : ControllerBase
{
// GET: /
public virtual ViewResult Home()
{
return View(Views.Home);
... |
Remove IScriptExtent.Translate method from extensions | using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation.Language;
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.Extensions
{
// TODO Add documentation
public static class Extensions
{
public static IEnumerable<string> GetLines(this string text)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation.Language;
namespace Microsoft.Windows.PowerShell.ScriptAnalyzer.Extensions
{
// TODO Add documentation
public static class Extensions
{
public static IEnumerable<string> GetLines(this string text)... |
Revert "Try to use SampleData instead of real data in the meantime" | using GitHub.Exports;
using GitHub.UI;
using GitHub.ViewModels;
using System.ComponentModel.Composition;
using System.Windows.Controls;
using ReactiveUI;
namespace GitHub.VisualStudio.UI.Views
{
public class GenericPullRequestCreationView : SimpleViewUserControl<IPullRequestCreationViewModel, GenericPullRequestCr... | using GitHub.Exports;
using GitHub.UI;
using GitHub.ViewModels;
using System.ComponentModel.Composition;
using System.Windows.Controls;
using ReactiveUI;
namespace GitHub.VisualStudio.UI.Views
{
public class GenericPullRequestCreationView : SimpleViewUserControl<IPullRequestCreationViewModel, GenericPullRequestCr... |
Simplify release title with version selector | using System.Linq;
using System.Net;
using AngleSharp;
using AngleSharp.Parser.Html;
namespace WebDriverManager.DriverConfigs.Impl
{
public class OperaConfig : IDriverConfig
{
public virtual string GetName()
{
return "Opera";
}
public virtual string GetUrl32()
... | using System.Linq;
using System.Net;
using AngleSharp;
using AngleSharp.Parser.Html;
namespace WebDriverManager.DriverConfigs.Impl
{
public class OperaConfig : IDriverConfig
{
public virtual string GetName()
{
return "Opera";
}
public virtual string GetUrl32()
... |
Add get best id method for season ids. | namespace TraktApiSharp.Objects.Get.Shows.Seasons
{
using Newtonsoft.Json;
/// <summary>A collection of ids for various web services, including the Trakt id, for a Trakt season.</summary>
public class TraktSeasonIds
{
/// <summary>Gets or sets the Trakt numeric id.</summary>
[JsonPrope... | namespace TraktApiSharp.Objects.Get.Shows.Seasons
{
using Newtonsoft.Json;
/// <summary>A collection of ids for various web services, including the Trakt id, for a Trakt season.</summary>
public class TraktSeasonIds
{
/// <summary>Gets or sets the Trakt numeric id.</summary>
[JsonPrope... |
Test that all accounts decrypt correctly | using System.Linq;
using NUnit.Framework;
namespace LastPass.Test
{
[TestFixture]
class VaultTest
{
[Test]
public void Create_returns_vault_with_correct_accounts()
{
var vault = Vault.Create(new Blob(TestData.Blob, 1));
Assert.AreEqual(TestData.Accounts.Lengt... | using System.Linq;
using NUnit.Framework;
namespace LastPass.Test
{
[TestFixture]
class VaultTest
{
[Test]
public void Create_returns_vault_with_correct_accounts()
{
var vault = Vault.Create(new Blob(TestData.Blob, 1));
Assert.AreEqual(TestData.Accounts.Lengt... |
Remove "Portable" from namespace name in CoreAssets | using Urho.Gui;
using Urho.Resources;
namespace Urho.Portable
{
//TODO: generate this class using T4 from CoreData folder
public static class CoreAssets
{
public static ResourceCache Cache => Application.Current.ResourceCache;
public static class Models
{
public static Model Box => Cache.GetModel("Models... | using Urho.Gui;
using Urho.Resources;
namespace Urho
{
//TODO: generate this class using T4 from CoreData folder
public static class CoreAssets
{
public static ResourceCache Cache => Application.Current.ResourceCache;
public static class Models
{
public static Model Box => Cache.GetModel("Models/Box.mdl"... |
Replace main with top-level statements | using System;
using Microsoft.EntityFrameworkCore;
using SupportManager.Telegram.DAL;
using Topshelf;
namespace SupportManager.Telegram
{
class Program
{
static void Main(string[] args)
{
if (args.Length == 2 && args[0].Equals("migrate", StringComparison.InvariantCultureIgnoreCase)... | using System;
using Microsoft.EntityFrameworkCore;
using SupportManager.Telegram;
using SupportManager.Telegram.Infrastructure;
using Topshelf;
if (args.Length == 2 && args[0].Equals("migrate", StringComparison.InvariantCultureIgnoreCase))
{
var db = DbContextFactory.Create(args[1]);
db.Database.Migrate();
... |
Remove Id from storable object | using System;
using System.Collections.Generic;
namespace LazyStorage
{
public class StorableObject : IEquatable<StorableObject>
{
public int LazyStorageInternalId { get; set; }
public Dictionary<string, string> Info { get; }
public StorableObject()
{
Info = new Dic... | using System;
using System.Collections.Generic;
namespace LazyStorage
{
public class StorableObject
{
public Dictionary<string, string> Info { get; }
public StorableObject()
{
Info = new Dictionary<string, string>();
}
}
} |
Allow anonymous on password reset requests | using System;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Core.DomainModel;
using Core.DomainServices;
using Presentation.Web.Models;
namespace Presentation.Web.Controllers.API
{
public class PasswordResetRequestController : BaseApiController
{
private readonly IUserService _... | using System;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Core.DomainModel;
using Core.DomainServices;
using Presentation.Web.Models;
namespace Presentation.Web.Controllers.API
{
[AllowAnonymous]
public class PasswordResetRequestController : BaseApiController
{
private re... |
Use the AppSettings 'NuGetPackagePath' if exists and the default ~/Packages otherwise | using System;
using System.Web;
using System.Web.Hosting;
namespace NuGet.Server.Infrastructure {
public class PackageUtility {
internal static string PackagePhysicalPath = HostingEnvironment.MapPath("~/Packages");
public static Uri GetPackageUrl(string path, Uri baseUri) {
re... | using System;
using System.Web;
using System.Web.Hosting;
using System.Configuration;
namespace NuGet.Server.Infrastructure
{
public class PackageUtility
{
internal static string PackagePhysicalPath;
private static string DefaultPackagePhysicalPath = HostingEnvironment.MapPath("~/Pa... |
Add capacity and time window data to route events. | using System;
using System.Collections.Generic;
namespace NFleet.Data
{
public class RouteEventData : IResponseData, IVersioned
{
public static string MIMEType = "application/vnd.jyu.nfleet.routeevent";
public static string MIMEVersion = "2.0";
int IVersioned.VersionNumber { get; set;... | using System;
using System.Collections.Generic;
namespace NFleet.Data
{
public class RouteEventData : IResponseData, IVersioned
{
public static string MIMEType = "application/vnd.jyu.nfleet.routeevent";
public static string MIMEVersion = "2.0";
int IVersioned.VersionNumber { get; set;... |
Change the method to expression body definition | using System;
using System.Linq;
using System.Text;
namespace SCPI
{
public class IDN : ICommand
{
public string Description => "Query the ID string of the instrument";
public string Manufacturer { get; private set; }
public string Model { get; private set; }
public string Ser... | using System.Linq;
using System.Text;
namespace SCPI
{
public class IDN : ICommand
{
public string Description => "Query the ID string of the instrument";
public string Manufacturer { get; private set; }
public string Model { get; private set; }
public string SerialNumber { ge... |
Add note about reusing of tooltips and the new behaviour | // 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.
namespace osu.Framework.Graphics.Cursor
{
/// <summary>
/// Implementing this interface allows the implementing <see cref="Drawable"/> to display a custom toolti... | // 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.
namespace osu.Framework.Graphics.Cursor
{
/// <summary>
/// Implementing this interface allows the implementing <see cref="Drawable"/> to display a custom toolti... |
Fix not null constraint failed exception | using NPoco;
using System;
namespace Dalian.Models
{
[PrimaryKey("SiteId")]
public class Sites
{
public string SiteId { get; set; }
public string Name { get; set; }
public string Url { get; set; }
public string Note { get; set; }
public string Source { get; set; }
... | using NPoco;
using System;
namespace Dalian.Models
{
[PrimaryKey("SiteId", AutoIncrement = false)]
public class Sites
{
public string SiteId { get; set; }
public string Name { get; set; }
public string Url { get; set; }
public string Note { get; set; }
public string... |
Check if registered before trying. | using System;
using System.Collections.Generic;
using Autofac;
using Autofac.Core;
namespace ServiceStack.DependencyInjection
{
public class DependencyResolver : IDisposable
{
private readonly ILifetimeScope _lifetimeScope;
public DependencyResolver(ILifetimeScope lifetimeScope)
{
... | using System;
using System.Collections.Generic;
using Autofac;
using Autofac.Core;
namespace ServiceStack.DependencyInjection
{
public class DependencyResolver : IDisposable
{
private readonly ILifetimeScope _lifetimeScope;
public DependencyResolver(ILifetimeScope lifetimeScope)
{
... |
Change expanded card content height to 200 | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Input.Events;
using osu.Framework.Utils;
using osu.Game.Graphics.Containers;
namespace osu.Game.Beatmaps.Drawables.Cards
{
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;
using osu.Framework.Input.Events;
using osu.Framework.Utils;
using osu.Game.Graphics.Containers;
namespace osu.Game.Beatmaps.Drawables.Cards
{
public c... |
Change message in register success | @model dynamic
@{
ViewBag.Title = "Регистрация успешна";
}
<h2>@ViewBag.Title</h2>
<p>Остался всего один клик! Проверьте свою почту, там лежит письмо от нас с просьбой подтвердить email...</p>
| @model dynamic
@{
ViewBag.Title = "Регистрация успешна";
}
<h2>@ViewBag.Title</h2>
<p>Остался всего один клик! Проверьте свою почту, там лежит письмо от нас с просьбой подтвердить email.</p>
|
Add --port option to samples | using System;
using Ooui;
namespace Samples
{
class Program
{
static void Main (string[] args)
{
new ButtonSample ().Publish ();
new TodoSample ().Publish ();
Console.ReadLine ();
}
}
}
| using System;
using Ooui;
namespace Samples
{
class Program
{
static void Main (string[] args)
{
for (var i = 0; i < args.Length; i++) {
var a = args[i];
switch (args[i]) {
case "-p" when i + 1 < args.Length:
c... |
Rename arguments to match base names | using Hangfire.Common;
using Hangfire.Console.Serialization;
using Hangfire.Console.Storage;
using Hangfire.Server;
using Hangfire.States;
using System;
namespace Hangfire.Console.Server
{
/// <summary>
/// Server filter to initialize and cleanup console environment.
/// </summary>
internal class Cons... | using Hangfire.Common;
using Hangfire.Console.Serialization;
using Hangfire.Console.Storage;
using Hangfire.Server;
using Hangfire.States;
using System;
namespace Hangfire.Console.Server
{
/// <summary>
/// Server filter to initialize and cleanup console environment.
/// </summary>
internal class Cons... |
Destroy obstacles disabled at scene start | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DarkRoomObstacleEnable : MonoBehaviour
{
[SerializeField]
private float maxXDistance = 11f;
void Start ()
{
}
void Update ()
{
for (int i = 0; i < transform.childCount; i++)
{
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
public class DarkRoomObstacleEnable : MonoBehaviour
{
[SerializeField]
private float maxXDistance = 11f;
void Start ()
{
for (int i = 0; i < transform.childCount; i++)
{
var ... |
Allow verb name to be optional. | using System;
namespace clipr
{
/// <summary>
/// Mark the property as a subcommand. (cf. 'svn checkout')
/// </summary>
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class VerbAttribute : Attribute
{
/// <summary>
/// Name of the subcommand. If provi... | using System;
namespace clipr
{
/// <summary>
/// Mark the property as a subcommand. (cf. 'svn checkout')
/// </summary>
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class VerbAttribute : Attribute
{
/// <summary>
/// Name of the subcommand. If provi... |
Remove explicit build addin dependency version | #tool nuget:?package=XamarinComponent&version=1.1.0.32
#addin nuget:?package=Cake.Xamarin.Build&version=1.0.14.0
#addin nuget:?package=Cake.Xamarin
#addin nuget:?package=Cake.XCode
| #tool nuget:?package=XamarinComponent&version=1.1.0.32
#addin nuget:?package=Cake.Xamarin.Build
#addin nuget:?package=Cake.Xamarin
#addin nuget:?package=Cake.XCode
|
Fix video player tooltip going outside Form bounds | using System;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace TweetDuck.Video.Controls{
sealed class LabelTooltip : Label{
public LabelTooltip(){
Visible = false;
}
public void AttachTooltip(Control control, bool followCursor, string toolt... | using System;
using System.Drawing;
using System.Windows.Forms;
namespace TweetDuck.Video.Controls{
sealed class LabelTooltip : Label{
public LabelTooltip(){
Visible = false;
}
public void AttachTooltip(Control control, bool followCursor, string tooltip){
AttachToo... |
Fix tax rule to be double not int | // Licensed under the GPL License, Version 3.0. See LICENSE in the git repository root for license information.
using Newtonsoft.Json;
namespace Ecwid.Models
{
/// <summary>
/// </summary>
public class TaxRule
{
/// <summary>
/// Gets or sets the tax in %.
/// </summary>
... | // Licensed under the GPL License, Version 3.0. See LICENSE in the git repository root for license information.
using Newtonsoft.Json;
namespace Ecwid.Models
{
/// <summary>
/// </summary>
public class TaxRule
{
/// <summary>
/// Gets or sets the tax in %.
/// </summary>
... |
Add PostgresException on postgresExceptionNames fixing select for NoWait locking exceptions | using System;
using System.Data;
using System.Data.Common;
namespace Rebus.AdoNet.Dialects
{
public class PostgreSql82Dialect : PostgreSqlDialect
{
protected override Version MinimumDatabaseVersion => new Version("8.2");
public override ushort Priority => 82;
public override bool SupportsReturningClause => t... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
namespace Rebus.AdoNet.Dialects
{
public class PostgreSql82Dialect : PostgreSqlDialect
{
private static readonly IEnumerable<string> _postgresExceptionNames = new[] { "NpgsqlException", "PostgresExceptio... |
Add preprocessor to prevent compilation error | using UnityEditor;
using UnityEngine;
namespace Tactosy.Unity
{
[CustomEditor(typeof(Manager_Tactosy))]
public class TactosyEditor : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();
Manager_Tactosy tactosyManager = (Manager_Tactosy) target... | #if UNITY_EDITOR
using UnityEditor;
#endif
using UnityEngine;
namespace Tactosy.Unity
{
#if UNITY_EDITOR
[CustomEditor(typeof(Manager_Tactosy))]
public class TactosyEditor : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();
Manager_Tactosy t... |
Add registration options for signaturehelp request | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
{
public class Sign... | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
{
public class Sign... |
Add another mapping test, non-auto inc Pk | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace Biggy.SqlCe.Tests {
[Trait("SQL CE Compact column mapping", "")]
public class SqlCEColumnMapping {
public string _connectionStringName = "chinook";
[Fact(DisplayName ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace Biggy.SqlCe.Tests {
[Trait("SQL CE Compact column mapping", "")]
public class SqlCEColumnMapping {
public string _connectionStringName = "chinook";
[Fact(DisplayName ... |
Disable 2 s/r tests that demonstrate known chorus problems | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using Bloom.Publish;
using BloomTemp;
using Chorus.VcsDrivers.Mercurial;
using LibChorus.TestUtilities;
using NUnit.Framework;
using Palaso.IO;
using Palaso.Progress.LogBox;
namespace Bl... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using Bloom.Publish;
using BloomTemp;
using Chorus.VcsDrivers.Mercurial;
using LibChorus.TestUtilities;
using NUnit.Framework;
using Palaso.IO;
using Palaso.Progress.LogBox;
namespace Bl... |
Fix reset ball ui for local and multiplayer | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
public class ResetBallUI : NetworkBehaviour {
private void OnGUI()
{
GUILayout.BeginArea(new Rect(Screen.width - 150, 10, 140, 40));
if (GUILayout.Button("Reset Ball Posi... | using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.Networking.NetworkSystem;
public class ResetBallUI : NetworkBehaviour {
// Message handle for the client id message
private short RESPAWN_MESSAGE = 1003;
void OnServerStart... |
Change still image capture parameters. | using System;
using System.Timers;
using Shell.Execute;
namespace PiDashcam
{
public class StillCam
{
Timer timer;
int imgcounter;
public StillCam()
{
timer = new Timer(10000);
timer.Elapsed += Timer_Elapsed;
timer.Start();
imgcounter = 1;
}
public void Stop()
{
timer.Stop();
}
v... | using System;
using System.Timers;
using Shell.Execute;
namespace PiDashcam
{
public class StillCam
{
Timer timer;
int imgcounter;
public StillCam()
{
timer = new Timer(6000);
timer.Elapsed += Timer_Elapsed;
timer.Start();
imgcounter = 1;
}
public void Stop()
{
timer.Stop();
}
vo... |
Tweak tests to reflect new interface for log timing | using CertiPay.Common.Logging;
using NUnit.Framework;
using System;
using System.Threading;
namespace CertiPay.Common.Tests.Logging
{
public class MetricLoggingExtensionsTests
{
private static readonly ILog Log = LogManager.GetLogger<MetricLoggingExtensionsTests>();
[Test]
public void... | using CertiPay.Common.Logging;
using NUnit.Framework;
using System;
using System.Threading;
namespace CertiPay.Common.Tests.Logging
{
public class MetricLoggingExtensionsTests
{
private static readonly ILog Log = LogManager.GetLogger<MetricLoggingExtensionsTests>();
[Test]
public void... |
Set targetGameObject = null on ReturnToHive state exit as this target was overriding the target position when the boids switched back to exploring | using UnityEngine;
public class ReturnToHiveState : State
{
Arrive arrive;
public ReturnToHiveState(GameObject gameObject) : base(gameObject)
{
this.gameObject = gameObject;
}
public override void Enter()
{
arrive = gameObject.GetComponent<Arrive>();
arrive.targetGame... | using UnityEngine;
public class ReturnToHiveState : State
{
Arrive arrive;
public ReturnToHiveState(GameObject gameObject) : base(gameObject)
{
this.gameObject = gameObject;
}
public override void Enter()
{
arrive = gameObject.GetComponent<Arrive>();
arrive.targetGame... |
Tidy up error handling in WriteExpression | namespace Veil.Compiler
{
internal partial class VeilTemplateCompiler
{
private static void EmitWriteExpression<T>(VeilCompilerState<T> state, SyntaxTreeNode.WriteExpressionNode node)
{
state.Emitter.LoadWriterToStack();
state.PushExpressionScopeOnStack(node.Expression);... | using System.Reflection;
namespace Veil.Compiler
{
internal partial class VeilTemplateCompiler
{
private static MethodInfo htmlEncodeMethod = typeof(Helpers).GetMethod("HtmlEncode");
private static void EmitWriteExpression<T>(VeilCompilerState<T> state, SyntaxTreeNode.WriteExpressionNode node... |
Add short term caching to sandbox html response to avoid repeated download by the browser. | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Witness.Controllers
{
public class SandboxController : Controller
{
public ActionResult Index()
{
return View();
}
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Witness.Controllers
{
public class SandboxController : Controller
{
public ActionResult Index()
{
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(1)... |
Make the generic type self-documenting. | namespace Sep.Git.Tfs.Core.TfsInterop
{
public class WrapperFor<T>
{
private readonly T _wrapped;
public WrapperFor(T wrapped)
{
_wrapped = wrapped;
}
public T Unwrap()
{
return _wrapped;
}
public static T Unwrap(object ... | namespace Sep.Git.Tfs.Core.TfsInterop
{
public class WrapperFor<TFS_TYPE>
{
private readonly TFS_TYPE _wrapped;
public WrapperFor(TFS_TYPE wrapped)
{
_wrapped = wrapped;
}
public TFS_TYPE Unwrap()
{
return _wrapped;
}
pu... |
Disable logging for shutdown of dotnet process by default | // Copyright 2020 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using JetBrains.Annotations;
using Nuke.Common.Execution;
using Nuke.Common.Tools.DotNet;
namespace Nuke.Common.CI
{
[PublicAPI]
[AttributeUsa... | // Copyright 2020 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using JetBrains.Annotations;
using Nuke.Common.Execution;
using Nuke.Common.Tools.DotNet;
namespace Nuke.Common.CI
{
[PublicAPI]
[AttributeUsa... |
Split WCF functionality out of Autofac.Extras.Multitenant into a separate assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned 3.1.0. | //------------------------------------------------------------------------------
// <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-generate... | //------------------------------------------------------------------------------
// <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-generate... |
Set only Razor view Engine | namespace WarehouseSystem.Web
{
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using WarehouseSystem.Web.App_Start;
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.Regis... | namespace WarehouseSystem.Web
{
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using WarehouseSystem.Web.App_Start;
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
ViewEngines.Engines.Cl... |
Make numeric_resolution on date mapping nullable | using System.Collections.Generic;
using Newtonsoft.Json;
using System;
using Newtonsoft.Json.Converters;
namespace Nest
{
[JsonObject(MemberSerialization.OptIn)]
public class DateMapping : MultiFieldMapping, IElasticType, IElasticCoreType
{
public DateMapping():base("date")
{
}
/// <summary>
/// The name... | using System.Collections.Generic;
using Newtonsoft.Json;
using System;
using Newtonsoft.Json.Converters;
namespace Nest
{
[JsonObject(MemberSerialization.OptIn)]
public class DateMapping : MultiFieldMapping, IElasticType, IElasticCoreType
{
public DateMapping():base("date")
{
}
/// <summary>
/// The name... |
Remove nested div to fix style issue | @model SFA.DAS.EmployerAccounts.Web.ViewModels.AccountDashboardViewModel
<div class="das-panel das-panel--featured">
@if (Model.ReservedFundingToShow != null)
{
<h3 class="das-panel__heading">Apprenticeship funding secured</h3>
<dl class="das-definition-list das-definition-list--with-separ... | @model SFA.DAS.EmployerAccounts.Web.ViewModels.AccountDashboardViewModel
@if (Model.ReservedFundingToShow != null)
{
<h3 class="das-panel__heading">Apprenticeship funding secured</h3>
<dl class="das-definition-list das-definition-list--with-separator">
<dt class="das-definition-list__title">Legal enti... |
Add basic GET & POST methods into the MatchServices. | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Azure.Mobile.Server;
using DailySoccer.Shared.Models;
namespace DailySoccerAppService.Controllers
{
public class MatchesController : ApiController
{
public... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Azure.Mobile.Server;
using DailySoccer.Shared.Models;
namespace DailySoccerAppService.Controllers
{
public class MatchesController : ApiController
{
public... |
Fix bug where Smaller wouldn't exit properly | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Threading;
namespace Smaller
{
public class RunJobController
{
private static readonly EventWaitHandle _showSignal =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Threading;
namespace Smaller
{
public class RunJobController
{
private static readonly EventWaitHandle _showSignal =... |
Fix path to local key file | using System;
using System.IO;
namespace Cake.AppVeyor.Tests
{
public static class Keys
{
const string YOUR_APPVEYOR_API_TOKEN = "{APPVEYOR_APITOKEN}";
static string appVeyorApiToken;
public static string AppVeyorApiToken {
get
{
if (appVe... | using System;
using System.IO;
namespace Cake.AppVeyor.Tests
{
public static class Keys
{
const string YOUR_APPVEYOR_API_TOKEN = "{APPVEYOR_APITOKEN}";
static string appVeyorApiToken;
public static string AppVeyorApiToken {
get
{
if (appVe... |
Add a test with a specific writer. | using System;
using NUnit.Framework;
using FbxSharp;
namespace FbxSharpTests
{
[TestFixture]
public class ObjectPrinterTest
{
[Test]
public void QuoteQuotesAndEscapeStrings()
{
Assert.AreEqual("\"abcdefghijklmnopqrstuvwxyz\"", ObjectPrinter.quote("abcdefghijklmnopqrstuv... | using System;
using NUnit.Framework;
using FbxSharp;
using System.IO;
namespace FbxSharpTests
{
[TestFixture]
public class ObjectPrinterTest
{
[Test]
public void QuoteQuotesAndEscapeStrings()
{
Assert.AreEqual("\"abcdefghijklmnopqrstuvwxyz\"", ObjectPrinter.quote("abcde... |
Revert "Bump WebApi version to 5.10.3" | using System.Reflection;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [asse... | using System.Reflection;
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [asse... |
Fix a forest crash in ZZT. | using System;
using Roton.Emulation.Core;
using Roton.Emulation.Data;
using Roton.Emulation.Data.Impl;
using Roton.Infrastructure.Impl;
namespace Roton.Emulation.Interactions.Impl
{
[Context(Context.Original, 0x14)]
[Context(Context.Super, 0x14)]
public sealed class ForestInteraction : IInteraction
{
... | using System;
using Roton.Emulation.Core;
using Roton.Emulation.Data;
using Roton.Emulation.Data.Impl;
using Roton.Infrastructure.Impl;
namespace Roton.Emulation.Interactions.Impl
{
[Context(Context.Original, 0x14)]
[Context(Context.Super, 0x14)]
public sealed class ForestInteraction : IInteraction
{
... |
Enable configuration of Json Serializer | //-------------------------------------------------------------------------------
// <copyright file="NewtonsoftJsonMessageSerializer.cs" company="MMS AG">
// Copyright (c) MMS AG, 2008-2015
// </copyright>
//-------------------------------------------------------------------------------
namespace MMS.ServiceBus.Pip... | //-------------------------------------------------------------------------------
// <copyright file="NewtonsoftJsonMessageSerializer.cs" company="MMS AG">
// Copyright (c) MMS AG, 2008-2015
// </copyright>
//-------------------------------------------------------------------------------
namespace MMS.ServiceBus.Pip... |
Allow context to be null when querying for initial data. | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ContextExtensions.cs" company="Quartz Software SRL">
// Copyright (c) Quartz Software SRL. All rights reserved.
// </copyright>
// <summary>
// Implements the context extensio... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ContextExtensions.cs" company="Quartz Software SRL">
// Copyright (c) Quartz Software SRL. All rights reserved.
// </copyright>
// <summary>
// Implements the context extensio... |
Change GetService call to GetRequiredService | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNet.Security.DataProtection.KeyManagement;
using Microsoft.Framework.DependencyInjection;
using Micro... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNet.Security.DataProtection.KeyManagement;
using Microsoft.Framework.DependencyInjection;
using Micro... |
Remove name from assembly info; this looks silly on NuGet. | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("DanTup's DartAnalysis.NET: A .NET wrapper around Google's Analysis Server for Dart.")]
[assembly: AssemblyProduct("DanTup's DartAnalysis.NET: A .NET wrapper around Google's Analysis Server f... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("DartAnalysis.NET: A .NET wrapper around Google's Analysis Server for Dart.")]
[assembly: AssemblyProduct("DartAnalysis.NET: A .NET wrapper around Google's Analysis Server for Dart.")]
[assem... |
Add some test tracing to Index action | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Mvc52Application.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Mvc52Application.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
Trace.T... |
Support driver constructor standing parameter for season list request | using ErgastApi.Client.Attributes;
using ErgastApi.Responses;
namespace ErgastApi.Requests
{
public class SeasonListRequest : StandardRequest<SeasonResponse>
{
// Value not used
// ReSharper disable once UnassignedGetOnlyAutoProperty
[UrlTerminator, UrlSegment("seasons")]
protec... | using ErgastApi.Client.Attributes;
using ErgastApi.Responses;
namespace ErgastApi.Requests
{
public class SeasonListRequest : StandardRequest<SeasonResponse>
{
[UrlSegment("constructorStandings")]
public int? ConstructorStanding { get; set; }
[UrlSegment("driverStandings")]
pub... |
Remove API route trailing slash to avoid AWS API Gateway modification | using System.Threading.Tasks;
using Sinch.ServerSdk.Callouts;
using Sinch.WebApiClient;
public interface ICalloutApiEndpoints
{
[HttpPost("calling/v1/callouts/")]
Task<CalloutResponse> Callout([ToBody] CalloutRequest request);
} | using System.Threading.Tasks;
using Sinch.ServerSdk.Callouts;
using Sinch.WebApiClient;
public interface ICalloutApiEndpoints
{
[HttpPost("calling/v1/callouts")]
Task<CalloutResponse> Callout([ToBody] CalloutRequest request);
} |
Add DebugBox for debugging issues in popup windows | namespace ImGui.Development
{
public class GUIDebug
{
public static void SetWindowPosition(string windowName, Point position)
{
var possibleWindow = Application.ImGuiContext.WindowManager.Windows.Find(window => window.Name == windowName);
if (possibleWindow != null)
... | using ImGui.Rendering;
namespace ImGui.Development
{
public class GUIDebug
{
public static void SetWindowPosition(string windowName, Point position)
{
var possibleWindow = Application.ImGuiContext.WindowManager.Windows.Find(window => window.Name == windowName);
if (poss... |
Change legal entity to include the CompanyNumber, RegisteredAddress and DateOfIncorporation | namespace SFA.DAS.EmployerApprenticeshipsService.Domain.Entities.Account
{
public class LegalEntity
{
public long Id { get; set; }
public string Name { get; set; }
}
} | using System;
namespace SFA.DAS.EmployerApprenticeshipsService.Domain.Entities.Account
{
public class LegalEntity
{
public long Id { get; set; }
public string CompanyNumber { get; set; }
public string Name { get; set; }
public string RegisteredAddress { get; set; }
... |
Set a more sensible default for the screen mode. | namespace Akiba.Core
{
using System.IO;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;
internal class Configuration
{
public const string ConfigurationName = "configuration.yaml";
public enum ScreenModes : ushort
{
Windowed,
... | namespace Akiba.Core
{
using System.IO;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;
internal class Configuration
{
public const string ConfigurationName = "configuration.yaml";
public enum ScreenModes : ushort
{
Windowed,
... |
Fix FxCop warning CA1018 (attributes should have AttributeUsage) | // 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.Runtime.CompilerServices
{
// Custom attribute to indicating a TypeDef is a discardable attribu... | // 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.Runtime.CompilerServices
{
// Custom attribute to indicating a TypeDef is a discardable attribu... |
Add some changes to UI to make spacing equal for components | using Gtk;
using NLog;
using SlimeSimulation.Controller.WindowController.Templates;
namespace SlimeSimulation.View.WindowComponent.SimulationControlComponent
{
class AdaptionPhaseControlBox : AbstractSimulationControlBox
{
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
... | using Gtk;
using NLog;
using SlimeSimulation.Controller.WindowController.Templates;
namespace SlimeSimulation.View.WindowComponent.SimulationControlComponent
{
class AdaptionPhaseControlBox : AbstractSimulationControlBox
{
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
... |
Move test component to bottom of class | // 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;
using NUnit.Framework;
using osu.Framework.Audio;
namespace osu.Framework.Tests.Audio
{
[TestFixture]
public class AudioCollectionManage... | // 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;
using NUnit.Framework;
using osu.Framework.Audio;
namespace osu.Framework.Tests.Audio
{
[TestFixture]
public class AudioCollectionManage... |
Add quick check for attached domain | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ERMine.Core.Modeling
{
public class Attribute : IEntityRelationship
{
public string Label { get; set; }
public string DataType { get; set; }
public Domain Domai... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ERMine.Core.Modeling
{
public class Attribute : IEntityRelationship
{
public string Label { get; set; }
public string DataType { get; set; }
public Domain Domai... |
Use the Query property of the Uri | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
namespace Bex.Extensions
{
internal static class UriExtensions
{
internal static IEnumerable<KeyValuePair<string, string>> QueryString(this Uri uri)
{
var uriString = uri.IsAbsoluteUri ? uri.Absolu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
namespace Bex.Extensions
{
internal static class UriExtensions
{
internal static IEnumerable<KeyValuePair<string, string>> QueryString(this Uri uri)
{
if (string.IsNullOrEmpty(uri.Query))
... |
Add GPG Keys API preview header | namespace Octokit
{
public static class AcceptHeaders
{
public const string StableVersion = "application/vnd.github.v3";
public const string StableVersionHtml = "application/vnd.github.html";
public const string RedirectsPreviewThenStableVersionJson = "application/vnd.github.quicksilv... | using System.Diagnostics.CodeAnalysis;
namespace Octokit
{
public static class AcceptHeaders
{
public const string StableVersion = "application/vnd.github.v3";
public const string StableVersionHtml = "application/vnd.github.html";
public const string RedirectsPreviewThenStableVersion... |
Add button to access latency comparer from game | // 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.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Localisation;
using osu.Framework.Screens;
using osu... | // 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.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Localisation;
using osu.Framework.Screens;
using osu... |
Add "plan" to StripSubscriptionUpdateOptions so we can change plans. | using System;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Stripe
{
public class StripeSubscriptionUpdateOptions : StripeSubscriptionCreateOptions
{
[JsonProperty("prorate")]
public bool? Prorate { get; set; }
}
} | using System;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Stripe
{
public class StripeSubscriptionUpdateOptions : StripeSubscriptionCreateOptions
{
[JsonProperty("prorate")]
public bool? Prorate { get; set; }
[JsonProperty("plan")]
public string PlanId { get; set; }
}
... |
Remove debugging line. Sorry RockyTV! | using System;
using System.IO;
namespace DarkMultiPlayerServer
{
public class LogExpire
{
private static string logDirectory
{
get
{
return Path.Combine(Server.universeDirectory, DarkLog.LogFolder);
}
}
public static void Exp... | using System;
using System.IO;
namespace DarkMultiPlayerServer
{
public class LogExpire
{
private static string logDirectory
{
get
{
return Path.Combine(Server.universeDirectory, DarkLog.LogFolder);
}
}
public static void Exp... |
Switch to using LocalApplicationData folder | // 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;
using System.Composition;
using System.IO;
using Microsoft.CodeAnalysis.Host.Mef;
using Microsoft.CodeAnalysis.Serialization;
namespace Micros... | // 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;
using System.Composition;
using System.IO;
using Microsoft.CodeAnalysis.Host.Mef;
using Microsoft.CodeAnalysis.Serialization;
namespace Micros... |
Allow call to action banner to be optional | using System.Collections.Generic;
using StockportContentApi.ContentfulModels;
using StockportContentApi.Model;
namespace StockportContentApi.ContentfulFactories
{
public class CommsContentfulFactory : IContentfulFactory<ContentfulCommsHomepage, CommsHomepage>
{
private readonly IContentfulFactory<Cont... | using System.Collections.Generic;
using StockportContentApi.ContentfulModels;
using StockportContentApi.Model;
namespace StockportContentApi.ContentfulFactories
{
public class CommsContentfulFactory : IContentfulFactory<ContentfulCommsHomepage, CommsHomepage>
{
private readonly IContentfulFactory<Cont... |
Update assembly version to 2.0.0 | using System.Reflection;
using System.Resources;
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.
[ass... | using System.Reflection;
using System.Resources;
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.
[ass... |
Use correct path to MSBuild Roslyn folder on Mono | using System;
using System.Collections.Immutable;
using System.IO;
using Microsoft.Extensions.Logging;
using OmniSharp.Utilities;
namespace OmniSharp.MSBuild.Discovery.Providers
{
internal class MonoInstanceProvider : MSBuildInstanceProvider
{
public MonoInstanceProvider(ILoggerFactory loggerFactory)
... | using System;
using System.Collections.Immutable;
using System.IO;
using Microsoft.Extensions.Logging;
using OmniSharp.Utilities;
namespace OmniSharp.MSBuild.Discovery.Providers
{
internal class MonoInstanceProvider : MSBuildInstanceProvider
{
public MonoInstanceProvider(ILoggerFactory loggerFactory)
... |
Update the systemclock to use UtcNow. This is because some of code use Month, Year properties of DateTimeOffset | // 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.Diagnostics;
namespace Microsoft.Its.Domain
{
/// <summary>
/// Provides access to system time.
/// </summary>
[DebuggerSte... | // 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.Diagnostics;
namespace Microsoft.Its.Domain
{
/// <summary>
/// Provides access to system time.
/// </summary>
[DebuggerSte... |
Revert "Gary changed wording per content request" | @model string
@{
ViewData["Title"] = "Thank you";
ViewData["og:title"] = "Thank you";
Layout = "../Shared/_Layout.cshtml";
}
<div class="grid-container-full-width">
<div class="grid-container grid-100">
<div class="l-body-section-filled l-short-content mobile-grid-100 tablet-grid-100 grid-10... | @model string
@{
ViewData["Title"] = "Thank you";
ViewData["og:title"] = "Thank you";
Layout = "../Shared/_Layout.cshtml";
}
<div class="grid-container-full-width">
<div class="grid-container grid-100">
<div class="l-body-section-filled l-short-content mobile-grid-100 tablet-grid-100 grid-10... |
Change Sensor level to 100 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Net;
using System.Net.Mail;
using SendGrid;
using TapBoxCommon.Models;
using Microsoft.Azure;
namespace TapBoxWebjob
{
class MailSender
{
public static void SendMailToOwner(Device NotifierDevi... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Net;
using System.Net.Mail;
using SendGrid;
using TapBoxCommon.Models;
using Microsoft.Azure;
namespace TapBoxWebjob
{
class MailSender
{
public static void SendMailToOwner(Device NotifierDevi... |
Add missing comment block. bugid: 812 | using System;
namespace Csla
{
internal class BrowsableAttribute : Attribute
{
public BrowsableAttribute(bool flag)
{ }
}
internal class DisplayAttribute : Attribute
{
public string Name { get; set; }
public bool AutoGenerateField { get; set; }
public DisplayAttribute(bool... | //-----------------------------------------------------------------------
// <copyright file="PortedAttributes.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: http://www.lhotka.net/cslanet/
// </copyright>
// <summary>Dummy implementations of .NET attributes missi... |
Fix bug: Ensure CacheTimeout is actually set when extending cache. | using System;
using FeatureSwitcher.AwsConfiguration.Behaviours;
namespace FeatureSwitcher.AwsConfiguration.Models
{
internal class BehaviourCacheItem
{
public IBehaviour Behaviour { get; }
public DateTime CacheTimeout { get; }
public bool IsExpired => this.CacheTimeout < Da... | using System;
using FeatureSwitcher.AwsConfiguration.Behaviours;
namespace FeatureSwitcher.AwsConfiguration.Models
{
internal class BehaviourCacheItem
{
public IBehaviour Behaviour { get; }
public DateTime CacheTimeout { get; private set; }
public bool IsExpired => this.Cach... |
Remove code that unconditionally enable https redirects and authorization | using TruckRouter.Models;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
build... | using TruckRouter.Models;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
build... |
Add logging in case of null response from Syncthing | using NLog;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace SyncTrayzor.Syncthing.ApiClient
{
public class SyncthingHttpClientHandler : WebRequestHandler
{
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
public SyncthingHttpCl... | using NLog;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace SyncTrayzor.Syncthing.ApiClient
{
public class SyncthingHttpClientHandler : WebRequestHandler
{
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
public SyncthingHttpCl... |
Document why null is ok here | using System.Runtime.Remoting.Channels;
namespace RedGate.AppHost.Remoting
{
internal class ClientChannelSinkProviderForParticularServer : IClientChannelSinkProvider
{
private readonly IClientChannelSinkProvider m_Upstream;
private readonly string m_Url;
internal ClientChanne... | using System;
using System.Runtime.Remoting.Channels;
namespace RedGate.AppHost.Remoting
{
internal class ClientChannelSinkProviderForParticularServer : IClientChannelSinkProvider
{
private readonly IClientChannelSinkProvider m_Upstream;
private readonly string m_Url;
intern... |
Add a display property for cadet rank | using System.ComponentModel.DataAnnotations;
namespace BatteryCommander.Common.Models
{
public enum Rank
{
[Display(Name = "PVT")]
E1 = 1,
[Display(Name = "PV2")]
E2 = 2,
[Display(Name = "PFC")]
E3 = 3,
[Display(Name = "SPC")]
E4 = 4,
... | using System.ComponentModel.DataAnnotations;
namespace BatteryCommander.Common.Models
{
public enum Rank
{
[Display(Name = "PVT")]
E1 = 1,
[Display(Name = "PV2")]
E2 = 2,
[Display(Name = "PFC")]
E3 = 3,
[Display(Name = "SPC")]
E4 = 4,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.