Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Annotate return value for consumers | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable enable
using System.Diagnostics;
namespace osu.Framework.Extensions.ObjectExtensions
{
/// <summary>
/// Extensions that apply to all objects.
///... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable enable
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
namespace osu.Framework.Extensions.ObjectExtensions
{
/// <summary>
/// Extens... |
Correct error message for missing test connection string | using System;
using Baseline;
namespace Marten.Testing
{
public class ConnectionSource : ConnectionFactory
{
public static readonly string ConnectionString = Environment.GetEnvironmentVariable("marten_testing_database");
static ConnectionSource()
{
if (ConnectionString.IsE... | using System;
namespace Marten.Testing
{
public class ConnectionSource : ConnectionFactory
{
public static readonly string ConnectionString = Environment.GetEnvironmentVariable("marten_testing_database");
static ConnectionSource()
{
if (ConnectionString.IsEmpty())
... |
Fix find vessels landed at | using Harmony;
using LunaClient.Systems.Lock;
using LunaCommon.Enums;
using System.Collections.Generic;
// ReSharper disable All
namespace LunaClient.Harmony
{
/// <summary>
/// This harmony patch is intended to override the "FindVesselsLandedAt" that sometimes is called to check if there are vessels in a lau... | using Harmony;
using LunaClient.Systems.Lock;
using LunaCommon.Enums;
using System.Collections.Generic;
// ReSharper disable All
namespace LunaClient.Harmony
{
/// <summary>
/// This harmony patch is intended to override the "FindVesselsLandedAt" that sometimes is called to check if there are vessels in a lau... |
Mark IsDirty property as internal | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace Draw2D.Core
{
public abstract class ObservableObject : INotifyPropertyChanged
... | // Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace Draw2D.Core
{
public abstract class ObservableObject : INotifyPropertyChanged
... |
Change back to use the default database name. | using System.Data.Entity;
namespace food_tracker {
public class TrackerContext : DbContext {
public TrackerContext() : base("name=NutritionTrackerContext") {
Configuration.LazyLoadingEnabled = false;
this.Database.Log = s => System.Diagnostics.Debug.WriteLine(s);
}
... | using System.Data.Entity;
namespace food_tracker {
public class TrackerContext : DbContext {
public TrackerContext() : base() {
Configuration.LazyLoadingEnabled = false;
this.Database.Log = s => System.Diagnostics.Debug.WriteLine(s);
}
public DbSet<WholeDay> Days... |
Update tests re: process builder, etc. | namespace Bakery.Processes
{
using Specification.Builder;
using System;
using System.Text;
using System.Threading.Tasks;
using Xunit;
public class SystemDiagnosticsProcessTests
{
[Fact]
public async Task EchoWithCombinedOutput()
{
var processSpecification =
ProcessSpecificationBuilde... | namespace Bakery.Processes
{
using System;
using System.Text;
using System.Threading.Tasks;
using Xunit;
public class SystemDiagnosticsProcessTests
{
[Fact]
public async Task EchoWithCombinedOutput()
{
var process = await new ProcessFactory().RunAsync(builder =>
{
return builder
... |
Add invariant IFormatterProvider to avoid issues based on user local | using System;
using System.Collections.Generic;
using Cake.Core.Diagnostics;
namespace Cake.Arguments
{
/// <summary>
/// Responsible for parsing <see cref="Verbosity"/>.
/// </summary>
internal sealed class VerbosityParser
{
private readonly Dictionary<string, Verbosity> _lookup;
... | using System;
using System.Collections.Generic;
using System.Globalization;
using Cake.Core.Diagnostics;
namespace Cake.Arguments
{
/// <summary>
/// Responsible for parsing <see cref="Verbosity"/>.
/// </summary>
internal sealed class VerbosityParser
{
private readonly Dictionary<string, ... |
Add implementation for serializing TraktAuthorization. | namespace TraktApiSharp.Services
{
using Authentication;
using System;
/// <summary>Provides helper methods for serializing and deserializing Trakt objects.</summary>
public static class TraktSerializationService
{
public static string Serialize(TraktAuthorization authorization)
{
... | namespace TraktApiSharp.Services
{
using Authentication;
using Extensions;
using System;
using Utils;
/// <summary>Provides helper methods for serializing and deserializing Trakt objects.</summary>
public static class TraktSerializationService
{
/// <summary>Serializes an <see cref... |
Remove not needed IoC registrations | using IIUWr.Fereol.Common;
using IIUWr.Fereol.Interface;
using IIUWr.ViewModels.Fereol;
using LionCub.Patterns.DependencyInjection;
using System;
using HTMLParsing = IIUWr.Fereol.HTMLParsing;
namespace IIUWr
{
public static class ConfigureIoC
{
public static void All()
{
#if DEBUG
... | using IIUWr.Fereol.Common;
using IIUWr.Fereol.Interface;
using IIUWr.ViewModels.Fereol;
using LionCub.Patterns.DependencyInjection;
using System;
using HTMLParsing = IIUWr.Fereol.HTMLParsing;
namespace IIUWr
{
public static class ConfigureIoC
{
public static void All()
{
#if DEBUG
... |
Fix category for a test about tabular structure | using NBi.Core.Structure;
using NBi.Core.Structure.Olap;
using NBi.Core.Structure.Relational;
using NBi.Core.Structure.Tabular;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
name... | using NBi.Core.Structure;
using NBi.Core.Structure.Olap;
using NBi.Core.Structure.Relational;
using NBi.Core.Structure.Tabular;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
name... |
Change user accounts view model to use the new viewmodel for displaying SuccessMessage | using SFA.DAS.EmployerApprenticeshipsService.Domain.Entities.Account;
namespace SFA.DAS.EmployerApprenticeshipsService.Web.Models
{
public class UserAccountsViewModel
{
public Accounts Accounts;
public int Invitations;
public string SuccessMessage;
}
} | using SFA.DAS.EmployerApprenticeshipsService.Domain.Entities.Account;
namespace SFA.DAS.EmployerApprenticeshipsService.Web.Models
{
public class UserAccountsViewModel
{
public Accounts Accounts;
public int Invitations;
public SuccessMessageViewModel SuccessMessage;
}
} |
Fix to dispose when the specified object is Icon. | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, 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.... | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, 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.... |
Change the order Loaders are disposed | using System;
using System.ComponentModel.Composition.Hosting;
using System.Reflection;
using MuffinFramework.Muffin;
using MuffinFramework.Platform;
using MuffinFramework.Service;
namespace MuffinFramework
{
public class MuffinClient : IDisposable
{
private readonly object _lockObj = new object();
... | using System;
using System.ComponentModel.Composition.Hosting;
using System.Reflection;
using MuffinFramework.Muffin;
using MuffinFramework.Platform;
using MuffinFramework.Service;
namespace MuffinFramework
{
public class MuffinClient : IDisposable
{
private readonly object _lockObj = new object();
... |
Fix timeline sizes being updated potentially before the track has a length | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using OpenTK;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System;
using OpenTK;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
... |
Fix failing test due to project rename | using System;
using Xunit;
namespace DnxFlash.Test
{
public class MessageTest
{
private Message sut;
public class Constructor : MessageTest
{
[Fact]
public void Should_set_message()
{
sut = new Message("test message");
... | using System;
using Xunit;
namespace DnxFlash.Test
{
public class MessageTest
{
private Message sut;
public class Constructor : MessageTest
{
[Fact]
public void Should_set_message()
{
sut = new Message("test message");
... |
Adjust mania scoring to be 95% based on accuracy | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Mania.Scoring
{
internal class ManiaScoreProcessor : ScoreProcessor
{
protected override do... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Mania.Scoring
{
internal class ManiaScoreProcessor : ScoreProcessor
{
protected override do... |
Add description at top of new template | // 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.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using Microsoft.CodeAnalysis;
us... | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
/*This tutorial is going to guide you to write a diagnostic analyzer that enforces the placement of one space between the if keyword of an if statement and th... |
Update assemblyinfo & strong name version to 4.0.0.0 | 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.
#if DNX
[assembly: AssemblyTi... | 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.
#if DNX
[assembly: AssemblyTi... |
Fix test in Release mode. | // Copyright (c) The Perspex Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Reactive.Linq;
using Perspex.Markup.Data;
using Xunit;
namespace Perspex.Markup.UnitTests.Bi... | // Copyright (c) The Perspex Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Reactive.Linq;
using Perspex.Markup.Data;
using Xunit;
namespace Perspex.Markup.UnitTests.Bi... |
Fix wrong timescale being forced on win/loss | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
public class YoumuSlashTimingEffectsController : MonoBehaviour
{
[SerializeField]
private AudioSource musicSource;
[SerializeField]
private float pitchMult = 1f;
[SerializeField]
private float tim... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
public class YoumuSlashTimingEffectsController : MonoBehaviour
{
[SerializeField]
private AudioSource musicSource;
[SerializeField]
private float pitchMult = 1f;
[SerializeField]
private float tim... |
Change type in error from of to or | #load "LogHelper.csx"
using System.Configuration;
public static class AppSettingsHelper
{
public static string GetAppSetting(string SettingName, bool LogValue = true )
{
string SettingValue = "";
try
{
SettingValue = ConfigurationManager.AppSettings[SettingName].ToString(... | #load "LogHelper.csx"
using System.Configuration;
public static class AppSettingsHelper
{
public static string GetAppSetting(string SettingName, bool LogValue = true )
{
string SettingValue = "";
try
{
SettingValue = ConfigurationManager.AppSettings[SettingName].ToString(... |
Update copyright data and assembly description. | 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("ServerHost")]
[assembly: AssemblyDescript... | 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("ServerHost")]
[assembly: AssemblyDescript... |
Fix so that SPARQL query test works | using System;
using System.Collections.Generic;
using System.Text;
using BrightstarDB.EntityFramework;
namespace BrightstarDB.PerformanceBenchmarks.Models
{
[Entity("http://xmlns.com/foaf/0.1/Person")]
public interface IFoafPerson
{
string Id { get; }
[PropertyType("http://xmlns.com/foaf/... | using System;
using System.Collections.Generic;
using System.Text;
using BrightstarDB.EntityFramework;
namespace BrightstarDB.PerformanceBenchmarks.Models
{
[Entity("http://xmlns.com/foaf/0.1/Person")]
public interface IFoafPerson
{
[Identifier("http://www.brightstardb.com/people/")]
strin... |
Implement TypeConverter CanConvertTo() and ConvertTo() methods for Uuid. | namespace Bakery
{
using System;
using System.ComponentModel;
using System.Globalization;
public class UuidTypeConverter
: TypeConverter
{
public override Boolean CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
{
return sourceType == typeof(String);
}
public override O... | namespace Bakery
{
using System;
using System.ComponentModel;
using System.Globalization;
public class UuidTypeConverter
: TypeConverter
{
public override Boolean CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
{
return sourceType == typeof(String);
}
public override B... |
Fix start of week calculation | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumModels
{
public static class Helpers
{
public static DateTimeOffset GetStartOfWeek(string date)
{
var dt = DateTimeOffset.Now;
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumModels
{
public static class Helpers
{
public static DateTimeOffset GetStartOfWeek(string date)
{
var dt = DateTimeOffset.Now;
... |
Make use of asynchronous methods | using System;
using System.Net.Http;
using Newtonsoft.Json;
namespace PexelsNet
{
public class PexelsClient
{
private readonly string _apiKey;
private const string BaseUrl = "http://api.pexels.com/v1/";
public PexelsClient(string apiKey)
{
_apiKey = apiKey;
... | using System;
using System.Net.Http;
using Newtonsoft.Json;
using System.Threading.Tasks;
namespace PexelsNet
{
public class PexelsClient
{
private readonly string _apiKey;
private const string BaseUrl = "http://api.pexels.com/v1/";
public PexelsClient(string apiKey)
{
... |
Disable test debug logging in appveyor. | using System.Collections.Generic;
using System.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Console;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Slp.Evi.Storage;
using Slp.Evi.Storage.Bootstrap;
using Slp.Evi.Storage.Database;
using Slp.Evi.Storage.Database.Vendor... | using System;
using System.Collections.Generic;
using System.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Console;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Slp.Evi.Storage;
using Slp.Evi.Storage.Bootstrap;
using Slp.Evi.Storage.Database;
using Slp.Evi.Storage.D... |
Add one more unit test | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DiffbotClientTest.cs" company="KriaSoft LLC">
// Copyright © 2014 Konstantin Tarkus, KriaSoft LLC. See LICENSE.txt
// </copyright>
// ------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="DiffbotClientTest.cs" company="KriaSoft LLC">
// Copyright © 2014 Konstantin Tarkus, KriaSoft LLC. See LICENSE.txt
// </copyright>
// ------------------------------------------... |
Support all particle vector providers that have m_vLiteralValue | using System;
using System.Numerics;
using ValveResourceFormat.Serialization;
namespace GUI.Types.ParticleRenderer
{
public interface IVectorProvider
{
Vector3 NextVector();
}
public class LiteralVectorProvider : IVectorProvider
{
private readonly Vector3 value;
public Lit... | using System;
using System.Numerics;
using ValveResourceFormat.Serialization;
namespace GUI.Types.ParticleRenderer
{
public interface IVectorProvider
{
Vector3 NextVector();
}
public class LiteralVectorProvider : IVectorProvider
{
private readonly Vector3 value;
public Lit... |
Fix bug where drawn objects are also transparent, and add pen variable. | using System;
using System.Drawing;
using System.Windows.Forms;
namespace vuwall_motion {
public partial class TransparentForm : Form {
public TransparentForm() {
InitializeComponent();
DoubleBuffered = true;
ShowInTaskbar = false;
}
private void Transp... | using System;
using System.Drawing;
using System.Windows.Forms;
namespace vuwall_motion {
public partial class TransparentForm : Form {
private Pen pen = new Pen(Color.Red, 5);
public TransparentForm() {
InitializeComponent();
DoubleBuffered = true;
SetStyle(Co... |
Add journals and self relations. | using System.ComponentModel.DataAnnotations;
namespace LibrarySystem.Models
{
public class Subject
{
public int Id { get; set; }
[Required]
[MaxLength(50)]
public string Name { get; set; }
}
} | // <copyright file="Subject.cs" company="YAGNI">
// All rights reserved.
// </copyright>
// <summary>Holds implementation of Book model.</summary>
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace LibrarySystem.Models
{
//... |
Fix bug in IQuickInfoModelProvider for SELECT column aliases | using System;
using System.ComponentModel.Composition;
using NQuery.Syntax;
namespace NQuery.Authoring.QuickInfo
{
[Export(typeof(IQuickInfoModelProvider))]
internal sealed class ExpressionSelectColumnQuickInfoModelProvider : QuickInfoModelProvider<ExpressionSelectColumnSyntax>
{
protected overri... | using System;
using System.ComponentModel.Composition;
using NQuery.Syntax;
namespace NQuery.Authoring.QuickInfo
{
[Export(typeof(IQuickInfoModelProvider))]
internal sealed class ExpressionSelectColumnQuickInfoModelProvider : QuickInfoModelProvider<ExpressionSelectColumnSyntax>
{
protected overri... |
Update test suite for latest changes | using System;
using System.Globalization;
namespace MultiMiner.Win.Extensions
{
public static class DateTimeExtensions
{
public static string ToReallyShortDateString(this DateTime dateTime)
{
//short date no year
string shortDateString = dateTime.ToShortDateString();
... | using System;
using System.Globalization;
namespace MultiMiner.Win.Extensions
{
public static class DateTimeExtensions
{
private static string ToReallyShortDateString(this DateTime dateTime)
{
//short date no year
string shortDateString = dateTime.ToShortDateString();
... |
Remove dead line from autocomplete | using WootzJs.Web;
namespace WootzJs.Mvc.Views
{
public class AutocompleteTextBox<T> : Control
{
private Control content;
private Control overlay;
private Element contentNode;
private Element overlayContainer;
private DropDownAlignment alignment;
private T selec... | using WootzJs.Web;
namespace WootzJs.Mvc.Views
{
public class AutocompleteTextBox<T> : Control
{
private Control content;
private Control overlay;
private Element contentNode;
private Element overlayContainer;
private DropDownAlignment alignment;
private T selec... |
Fix app always showing the login page after orientation change | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Disposables;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Support.V4.App;
using Android.Views;
using Android.Widget;
using ReactiveUI.Routing.Android;
using R... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Disposables;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Support.V4.App;
using Android.Views;
using Android.Widget;
using ReactiveUI.Routing.Android;
using R... |
Add filter property to popular movies request. | namespace TraktApiSharp.Requests.WithoutOAuth.Movies.Common
{
using Base.Get;
using Objects.Basic;
using Objects.Get.Movies;
internal class TraktMoviesPopularRequest : TraktGetRequest<TraktPaginationListResult<TraktMovie>, TraktMovie>
{
internal TraktMoviesPopularRequest(TraktClient client... | namespace TraktApiSharp.Requests.WithoutOAuth.Movies.Common
{
using Base;
using Base.Get;
using Objects.Basic;
using Objects.Get.Movies;
internal class TraktMoviesPopularRequest : TraktGetRequest<TraktPaginationListResult<TraktMovie>, TraktMovie>
{
internal TraktMoviesPopularRequest(Tr... |
Fix exception if Keys is null | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Radosgw.AdminAPI
{
public class User
{
[JsonProperty(PropertyName = "display_name")]
public string DisplayName { get; set; }
[JsonProperty(PropertyName = "user_id")]
public string UserId { get; se... | using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Radosgw.AdminAPI
{
public class User
{
[JsonProperty(PropertyName = "display_name")]
public string DisplayName { get; set; }
[JsonProperty(PropertyName = "user_id")]
public string UserId { get; se... |
Add comment that design time data does not work with {x:Bind} | using Jbe.NewsReader.Applications.ViewModels;
using Jbe.NewsReader.Applications.Views;
namespace Jbe.NewsReader.Presentation.DesignData
{
public class SampleFeedItemListViewModel : FeedItemListViewModel
{
public SampleFeedItemListViewModel() : base(new MockFeedItemListView(), null)
{
... | using Jbe.NewsReader.Applications.ViewModels;
using Jbe.NewsReader.Applications.Views;
namespace Jbe.NewsReader.Presentation.DesignData
{
public class SampleFeedItemListViewModel : FeedItemListViewModel
{
public SampleFeedItemListViewModel() : base(new MockFeedItemListView(), null)
{
... |
Fix follow point transforms not working after rewind | // 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 osuTK;
using osuTK.Graphics;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Fram... | // 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 osuTK;
using osuTK.Graphics;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Fram... |
Add registration to the serive | using Glimpse;
using Microsoft.Framework.ConfigurationModel;
using Microsoft.Framework.DependencyInjection;
using System.Collections.Generic;
namespace Glimpse
{
public class GlimpseServices
{
public static IEnumerable<IServiceDescriptor> GetDefaultServices()
{
return GetDefaultSer... | using Glimpse;
using Microsoft.Framework.ConfigurationModel;
using Microsoft.Framework.DependencyInjection;
using System.Collections.Generic;
namespace Glimpse
{
public class GlimpseServices
{
public static IEnumerable<IServiceDescriptor> GetDefaultServices()
{
return GetDefaultSer... |
Remove reference to old library name. | using ArduinoUploader;
namespace ArduinoSketchUploader
{
/// <summary>
/// The ArduinoLibCSharp SketchUploader can upload a compiled (Intel) HEX file directly to an attached Arduino.
/// </summary>
internal class Program
{
private static void Main(string[] args)
{
var c... | using ArduinoUploader;
namespace ArduinoSketchUploader
{
/// <summary>
/// The ArduinoSketchUploader can upload a compiled (Intel) HEX file directly to an attached Arduino.
/// </summary>
internal class Program
{
private static void Main(string[] args)
{
var commandLine... |
Add flag 0x20 to PacketFlags | using System;
using System.Runtime.InteropServices;
using PolarisServer.Models;
namespace PolarisServer.Models
{
public struct PacketHeader
{
public UInt32 Size;
public byte Type;
public byte Subtype;
public byte Flags1;
public byte Flags2;
public PacketHeader(... | using System;
using System.Runtime.InteropServices;
using PolarisServer.Models;
namespace PolarisServer.Models
{
public struct PacketHeader
{
public UInt32 Size;
public byte Type;
public byte Subtype;
public byte Flags1;
public byte Flags2;
public PacketHeader(... |
Remove EN-us culture from assembly attributes. | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Provision.AspNet.Identity.PlainSql")]
[assembly: AssemblyDescription("ASP.NET Identity provider for SQL databases")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Provision Data Systems Inc.")]
[assembly: Asse... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Provision.AspNet.Identity.PlainSql")]
[assembly: AssemblyDescription("ASP.NET Identity provider for SQL databases")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Provision Data Systems Inc.")]
[assembly: Asse... |
Rework extension to spend less time on UI thread | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#if WINDOWS_UWP
using Microsoft.MixedReality.Toolkit.Windows.Utilities;
using System;
using System.Collections.Generic;
using UnityEngine.XR.WSA.Input;
using Windows... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#if WINDOWS_UWP
using Microsoft.MixedReality.Toolkit.Windows.Utilities;
using System;
using System.Collections.Generic;
using UnityEngine.XR.WSA.Input;
using Windows... |
Make sure Issues are at correct index | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hl7.Fhir.Model;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Spark.Engine.Extensions;
namespace Spark.Engine.Test.Extensions
{
[TestClass]
public class OperationOutcomeInnerEr... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hl7.Fhir.Model;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Spark.Engine.Extensions;
namespace Spark.Engine.Test.Extensions
{
[TestClass]
public class OperationOutcomeInnerEr... |
Use TryParseExact instead of ParseExact. Better performance. | using System;
using System.Collections.Generic;
using System.Globalization;
namespace Arkivverket.Arkade.Core.Addml.Definitions.DataTypes
{
public class DateDataType : DataType
{
private readonly string _dateTimeFormat;
private readonly string _fieldFormat;
public DateDataType(string ... | using System;
using System.Collections.Generic;
using System.Globalization;
namespace Arkivverket.Arkade.Core.Addml.Definitions.DataTypes
{
public class DateDataType : DataType
{
private readonly string _dateTimeFormat;
private readonly string _fieldFormat;
public DateDataType(string ... |
Fix fallback to default combo colours not working | // 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.Audio.Sample;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
using osu.Game.Audio;
namespace os... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using osu.Framework.Audio.Sample;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
u... |
Add a HTML title to error view | @model AtomicChessPuzzles.HttpErrors.HttpError
<h1>@Model.StatusCode - @Model.StatusText</h1>
<p>@Model.Description</p> | @model AtomicChessPuzzles.HttpErrors.HttpError
@section Title{@Model.StatusCode @Model.StatusText}
<h1>@Model.StatusCode - @Model.StatusText</h1>
<p>@Model.Description</p> |
Modify case handling of entry types | using System;
using System.IO;
namespace Flirper
{
public class ImageListEntry
{
public string uri;
public string title;
public string author;
public string extraInfo;
public ImageListEntry (string uri, string title, string author, string extraInfo)
{
... | using System;
using System.IO;
namespace Flirper
{
public class ImageListEntry
{
public string uri;
public string title;
public string author;
public string extraInfo;
public ImageListEntry (string uri, string title, string author, string extraInfo)
{
... |
Add Bigsby Gates was here | using System;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World, I was created by my father, Bigsby, in an unidentified evironment!");
}
}
}
| using System;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World, I was created by my father, Bigsby, in an unidentified evironment!");
Console.WriteLine("Bigsby Gates was here!");
}
... |
Return 400 instead of 500 if no login/password | using System.Data.Entity;
using System.Threading.Tasks;
using JoinRpg.Web.Helpers;
using Microsoft.Owin.Security.OAuth;
namespace JoinRpg.Web
{
internal class ApiSignInProvider : OAuthAuthorizationServerProvider
{
private ApplicationUserManager Manager { get; }
public ApiSignInProvider(ApplicationUserMan... | using System.Threading.Tasks;
using JoinRpg.Web.Helpers;
using Microsoft.Owin.Security.OAuth;
namespace JoinRpg.Web
{
internal class ApiSignInProvider : OAuthAuthorizationServerProvider
{
private ApplicationUserManager Manager { get; }
public ApiSignInProvider(ApplicationUserManager manager)
{
... |
Fix The GlowWindow in the taskmanager | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Interactivity;
using MahApps.Metro.Controls;
namespace MahApps.Metro.Behaviours
{
public class GlowWindowBehavior : Behavior<Window>
{
private GlowWindow left, right, top, b... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Interactivity;
using MahApps.Metro.Controls;
namespace MahApps.Metro.Behaviours
{
public class GlowWindowBehavior : Behavior<Window>
{
private GlowWindow left, right, top, b... |
Fix broken redirect when restoring game on mobile | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
namespace WebPlayer.Mobile
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, Event... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
namespace WebPlayer.Mobile
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, Event... |
Revert "Revert "LoginTest is completed"" | using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Support.UI;
using NUnit.Framework;
namespace SeleniumTasksProject1._1
{
[TestFixture]
public class InternetExplorer
... | using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Support.UI;
using NUnit.Framework;
namespace SeleniumTasksProject1._1
{
[TestFixture]
public class InternetExplorer
... |
Fix for disposing DataContext object. | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, 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.... | /* ------------------------------------------------------------------------- */
//
// Copyright (c) 2010 CubeSoft, 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.... |
Add missing field to FinishedWarp | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
/// <summary>
/// Payload that tells the server we've finsihed loading/bursting/warping.
/// We should have sent a warp request to the server b... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FreecraftCore.Serializer;
namespace Booma.Proxy
{
/// <summary>
/// Payload that tells the server we've finsihed loading/bursting/warping.
/// We should have sent a warp request to the server b... |
Increase project version number to 0.8 | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("0... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("0... |
Add a foreach induction variable cast test | using System;
using System.Collections.Generic;
public class Enumerator
{
public Enumerator() { }
public int Current { get; private set; } = 10;
public bool MoveNext()
{
Current--;
return Current > 0;
}
public void Dispose()
{
Console.WriteLine("Hi!");
}
}
pu... | using System;
using System.Collections.Generic;
public class Enumerator
{
public Enumerator() { }
public int Current { get; private set; } = 10;
public bool MoveNext()
{
Current--;
return Current > 0;
}
public void Dispose()
{
Console.WriteLine("Hi!");
}
}
pu... |
Adjust repeat/tail fade in to match stable closer | // 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.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Osu.Objects
{
/// <summar... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Osu.Objects
{
/// <summary>
/// A h... |
Fix issue with precision in assertions | using System;
using System.Collections.Generic;
using System.Linq;
using SFA.DAS.Payments.AcceptanceTests.Contexts;
using SFA.DAS.Payments.AcceptanceTests.ReferenceDataModels;
using SFA.DAS.Payments.AcceptanceTests.ResultsDataModels;
namespace SFA.DAS.Payments.AcceptanceTests.Assertions.TransactionTypeRules
{... | using System;
using System.Collections.Generic;
using System.Linq;
using SFA.DAS.Payments.AcceptanceTests.Contexts;
using SFA.DAS.Payments.AcceptanceTests.ReferenceDataModels;
using SFA.DAS.Payments.AcceptanceTests.ResultsDataModels;
namespace SFA.DAS.Payments.AcceptanceTests.Assertions.TransactionTypeRules
{... |
Fix `SynchronizationContext` to match correctly implementation structure | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Threading;
#nullable enable
namespace osu.Framework.Threading
{
/// <summary>
/// A synchronisation context which posts all continuatiuons to a sch... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Diagnostics;
using System.Threading;
#nullable enable
namespace osu.Framework.Threading
{
/// <summary>
/// A synchronisation context which posts a... |
Add optional dotnet new arguments | namespace Boilerplate.Templates.Test
{
using System;
using System.IO;
using System.Threading.Tasks;
public static class TempDirectoryExtensions
{
public static async Task<Project> DotnetNew(
this TempDirectory tempDirectory,
string templateName,
string na... | namespace Boilerplate.Templates.Test
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
public static class TempDirectoryExtensions
{
public static async Task<Project> DotnetNew(
this TempDirectory tempDire... |
Create only 1 hit file per running process | using System;
using System.IO;
namespace MiniCover.HitServices
{
public static class HitService
{
public static MethodContext EnterMethod(
string hitsPath,
string assemblyName,
string className,
string methodName)
{
return new MethodC... | using System;
using System.Collections.Concurrent;
using System.IO;
namespace MiniCover.HitServices
{
public static class HitService
{
public static MethodContext EnterMethod(
string hitsPath,
string assemblyName,
string className,
string methodName)
... |
Add tutorials to blog categories. | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CompetitionPlatform.Data.BlogCategory
{
public class BlogCategoriesRepository : IBlogCategoriesRepository
{
public List<string> GetCategories()
{
return new List<string>
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CompetitionPlatform.Data.BlogCategory
{
public class BlogCategoriesRepository : IBlogCategoriesRepository
{
public List<string> GetCategories()
{
return new List<string>
... |
Replace helper implementation with DateOffset members | using System;
namespace LibGit2Sharp.Core
{
/// <summary>
/// Provides helper methods to help converting between Epoch (unix timestamp) and <see cref="DateTimeOffset"/>.
/// </summary>
internal static class Epoch
{
private static readonly DateTimeOffset epochDateTimeOffset = new DateTimeOf... | using System;
namespace LibGit2Sharp.Core
{
/// <summary>
/// Provides helper methods to help converting between Epoch (unix timestamp) and <see cref="DateTimeOffset"/>.
/// </summary>
internal static class Epoch
{
/// <summary>
/// Builds a <see cref="DateTimeOffset"/> from a Unix... |
Fix RadioButtons, need to use Active insted of Activate. | using System;
namespace Views
{
[System.ComponentModel.ToolboxItem(true)]
public partial class BooleanRadioButton : Gtk.Bin, IEditable
{
String[] labels;
bool isEditable;
public BooleanRadioButton ()
{
this.Build ();
}
public String[] Labels {
... | using System;
namespace Views
{
[System.ComponentModel.ToolboxItem(true)]
public partial class BooleanRadioButton : Gtk.Bin, IEditable
{
String[] labels;
bool isEditable;
public BooleanRadioButton ()
{
this.Build ();
}
public String[] Labels {
... |
Update server side API for single multiple answer question | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... | using System.Collections.Generic;
using Promact.Trappist.DomainModel.Models.Question;
using System.Linq;
using Promact.Trappist.DomainModel.DbContext;
namespace Promact.Trappist.Repository.Questions
{
public class QuestionRepository : IQuestionRespository
{
private readonly TrappistDbContext _dbContex... |
Use localized content for cookies disabled message | <article id="cookies-disabled-panel" class="panel-inverse">
<h1>Cookies are disabled</h1>
<section>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliq... | <article id="cookies-disabled-panel" class="panel-inverse">
<h1>@Text.Content.CookiesDisabledHeading</h1>
<section>
@Text.Content.CookiesDisabledDetails
</section>
</br>
</br>
</article>
|
Make project comvisible explicitly set to false to meet compliance requirements. | using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Microsoft.ApplicationInsights.AspNetCore.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0... | using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: InternalsVisibleTo("Microsoft.ApplicationInsights.AspNetCore.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131... |
Support nullable properties on authorization_controls | namespace Stripe.Issuing
{
using System.Collections.Generic;
using Newtonsoft.Json;
public class AuthorizationControls : StripeEntity
{
[JsonProperty("allowed_categories")]
public List<string> AllowedCategories { get; set; }
[JsonProperty("blocked_categories")]
public L... | namespace Stripe.Issuing
{
using System.Collections.Generic;
using Newtonsoft.Json;
public class AuthorizationControls : StripeEntity
{
[JsonProperty("allowed_categories")]
public List<string> AllowedCategories { get; set; }
[JsonProperty("blocked_categories")]
public L... |
Change exception type for null argument to ArgumentNullException. | using System;
using NUnit.Framework;
using DevTyr.Gullap;
namespace DevTyr.Gullap.Tests.With_Converter.For_SetParser
{
[TestFixture]
public class When_argument_is_null
{
[Test]
public void Should_throw_argument_exception ()
{
var converter = new Converter (new ConverterOptions {
SitePath = "any"
})... | using System;
using NUnit.Framework;
using DevTyr.Gullap;
namespace DevTyr.Gullap.Tests.With_Converter.For_SetParser
{
[TestFixture]
public class When_argument_is_null
{
[Test]
public void Should_throw_argument_null_exception ()
{
var converter = new Converter (new ConverterOptions {
SitePath = "any"
... |
Change statusbar errors to yellow | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Avalonia.Data.Converters;
using Avalonia.Media;
using AvalonStudio.Extensibility.Theme;
using WalletWasabi.Models;
namespace WalletWasabi.Gui.Converters
{
public class StatusColorConvertor : IValueConverter
{
publ... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Avalonia.Data.Converters;
using Avalonia.Media;
using AvalonStudio.Extensibility.Theme;
using WalletWasabi.Models;
namespace WalletWasabi.Gui.Converters
{
public class StatusColorConvertor : IValueConverter
{
publ... |
Increase the estinated cost for the text file property store to 10 to avoid fetching all dead properties | // <copyright file="TextFilePropertyStoreOptions.cs" company="Fubar Development Junker">
// Copyright (c) Fubar Development Junker. All rights reserved.
// </copyright>
namespace FubarDev.WebDavServer.Props.Store.TextFile
{
public class TextFilePropertyStoreOptions
{
public int EstimatedCost { get; se... | // <copyright file="TextFilePropertyStoreOptions.cs" company="Fubar Development Junker">
// Copyright (c) Fubar Development Junker. All rights reserved.
// </copyright>
namespace FubarDev.WebDavServer.Props.Store.TextFile
{
public class TextFilePropertyStoreOptions
{
public int EstimatedCost { get; se... |
Fix decimal property value converter to work on non EN-US cultures | using Umbraco.Core.Models.PublishedContent;
namespace Umbraco.Core.PropertyEditors.ValueConverters
{
[PropertyValueType(typeof(decimal))]
[PropertyValueCache(PropertyCacheValue.All, PropertyCacheLevel.Content)]
public class DecimalValueConverter : PropertyValueConverterBase
{
public override b... | using System.Globalization;
using Umbraco.Core.Models.PublishedContent;
namespace Umbraco.Core.PropertyEditors.ValueConverters
{
[PropertyValueType(typeof(decimal))]
[PropertyValueCache(PropertyCacheValue.All, PropertyCacheLevel.Content)]
public class DecimalValueConverter : PropertyValueConverterBase
... |
Fix bitmap serialization with indexed format bitmaps | namespace TAUtil.Gdi.Bitmap
{
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using TAUtil.Gdi.Palette;
/// <summary>
/// Serializes a 32-bit Bitmap instance into raw 8-bit indexed color data.
/// The mapping from color to index is done according to the given... | namespace TAUtil.Gdi.Bitmap
{
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using TAUtil.Gdi.Palette;
/// <summary>
/// Serializes a 32-bit Bitmap instance into raw 8-bit indexed color data.
/// The mapping from color to index is done according to the given... |
Revert "TEMP: test env vars on prod" | using System;
using System.Threading.Tasks;
using FilterLists.Agent.AppSettings;
using FilterLists.Agent.Extensions;
using FilterLists.Agent.Features.Lists;
using FilterLists.Agent.Features.Urls;
using FilterLists.Agent.Features.Urls.Models.DataFileUrls;
using MediatR;
using Microsoft.Extensions.DependencyInjection;
u... | using System;
using System.Threading.Tasks;
using FilterLists.Agent.Extensions;
using FilterLists.Agent.Features.Lists;
using FilterLists.Agent.Features.Urls;
using MediatR;
using Microsoft.Extensions.DependencyInjection;
namespace FilterLists.Agent
{
public static class Program
{
private static IServ... |
Fix Repository's `createGitHubDeployments` not being returned in API responses | using System.ComponentModel.DataAnnotations;
using Tgstation.Server.Api.Models;
namespace Tgstation.Server.Host.Models
{
/// <inheritdoc />
public sealed class RepositorySettings : Api.Models.Internal.RepositorySettings
{
/// <summary>
/// The row Id
/// </summary>
public long Id { get; set; }
/// <summ... | using System.ComponentModel.DataAnnotations;
using Tgstation.Server.Api.Models;
namespace Tgstation.Server.Host.Models
{
/// <inheritdoc />
public sealed class RepositorySettings : Api.Models.Internal.RepositorySettings
{
/// <summary>
/// The row Id
/// </summary>
public long Id { get; set; }
/// <summa... |
Update OData assembly versions to 5.3.1.0 | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if !BUILD_GENERATED_VERSION
[assembly: AssemblyCompany("Microsoft Open Technologie... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
#if !BUILD_GENERATED_VERSION
[assembly: AssemblyCompany("Microsoft Open Technologie... |
Write BrightstarDB log output if a log file is specified | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BrightstarDB.ReadWriteBenchmark
{
internal class Program
{
private static void Main(string[] args)
{
var opts = n... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BrightstarDB.ReadWriteBenchmark
{
internal class Program
{
public static TraceListener BrightstarListener;
private static voi... |
Revert to method LINQ syntax. | using System;
using System.Linq;
using System.Reflection;
using StructureMap.Graph;
using StructureMap.Pipeline;
namespace StructureMap
{
internal class AspNetConstructorSelector : IConstructorSelector
{
// ASP.NET expects registered services to be considered when selecting a ctor, SM doesn't by defaul... | using System;
using System.Linq;
using System.Reflection;
using StructureMap.Graph;
using StructureMap.Pipeline;
namespace StructureMap
{
internal class AspNetConstructorSelector : IConstructorSelector
{
// ASP.NET expects registered services to be considered when selecting a ctor, SM doesn't by defaul... |
Use scriptureforge database to get project data | // Copyright (c) 2015 SIL International
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
using System;
using System.Linq;
using MongoDB.Bson;
using MongoDB.Driver;
using MongoDB.Driver.Core.Clusters;
namespace LfMerge
{
public class LanguageDepotProject
{
public LanguageDepo... | // Copyright (c) 2015 SIL International
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
using System;
using System.Linq;
using MongoDB.Bson;
using MongoDB.Driver;
using MongoDB.Driver.Core.Clusters;
namespace LfMerge
{
public class LanguageDepotProject
{
public LanguageDepo... |
Improve packet sender seralize codes | using LiteNetLib;
using LiteNetLib.Utils;
using LiteNetLibManager;
public static class LiteNetLibPacketSender
{
public static readonly NetDataWriter Writer = new NetDataWriter();
public static void SendPacket(NetDataWriter writer, SendOptions options, NetPeer peer, short msgType, System.Action<NetDataWriter>... | using LiteNetLib;
using LiteNetLib.Utils;
using LiteNetLibManager;
public static class LiteNetLibPacketSender
{
public static readonly NetDataWriter Writer = new NetDataWriter();
public static void SendPacket(NetDataWriter writer, SendOptions options, NetPeer peer, short msgType, System.Action<NetDataWriter>... |
Make the sandbox example even more complex | using System;
using System.Net;
using System.Net.Http;
using Knapcode.SocketToMe.Http;
using Knapcode.SocketToMe.Socks;
namespace Knapcode.SocketToMe.Sandbox
{
public class Program
{
private static void Main()
{
var endpoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 9150);
... | using System;
using System.Net;
using System.Net.Http;
using Knapcode.SocketToMe.Http;
using Knapcode.SocketToMe.Socks;
namespace Knapcode.SocketToMe.Sandbox
{
public class Program
{
private static void Main()
{
var endpoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 9150);
... |
Update benchmark and add worst case scenario | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Framework.Text;
na... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Framework.Text;
na... |
Change private setter to public. | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lezen.Core.Entity
{
public class Document
{
public Document()
{
this.Authors = new HashSet<Author>();
}
public int ID { get; set; }
public string Title { get; se... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lezen.Core.Entity
{
public class Document
{
public Document()
{
this.Authors = new HashSet<Author>();
}
public int ID { get; set; }
public string Title { get; se... |
Fix wrong method name, causing a build error | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CardsAgainstIRC3.Game.Bots
{
[Bot("rando")]
public class Rando : IBot
{
public GameManager Manager
{
get;
private set;
}
pu... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CardsAgainstIRC3.Game.Bots
{
[Bot("rando")]
public class Rando : IBot
{
public GameManager Manager
{
get;
private set;
}
pu... |
Correct default paste behaviour for IMDb textbox | using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace Subtle.UI.Controls
{
public class ImdbTextBox : TextBox
{
// ReSharper disable once InconsistentNaming
private const int WM_PASTE = 0x0302;
private static readonly Regex ImdbRegex = new Regex(@"tt(\d{7})");
... | using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace Subtle.UI.Controls
{
public class ImdbTextBox : TextBox
{
// ReSharper disable once InconsistentNaming
private const int WM_PASTE = 0x0302;
private static readonly Regex ImdbRegex = new Regex(@"tt(\d{7})");
... |
Remove <br> from select in checkin | @model JoinRpg.Web.Models.CheckIn.CheckInIndexViewModel
@{
ViewBag.Title = "Регистрация";
}
<h2>Регистрация</h2>
@using (Html.BeginForm())
{
@Html.HiddenFor(model => model.ProjectId)
@Html.AntiForgeryToken()
@Html.SearchableDropdownFor(model => model.ClaimId, Model.Claims.Select(
claim =>
new ImprovedS... | @model JoinRpg.Web.Models.CheckIn.CheckInIndexViewModel
@{
ViewBag.Title = "Регистрация";
}
<h2>Регистрация</h2>
@using (Html.BeginForm())
{
@Html.HiddenFor(model => model.ProjectId)
@Html.AntiForgeryToken()
@Html.SearchableDropdownFor(model => model.ClaimId, Model.Claims.Select(
claim =>
new ImprovedS... |
Improve server wait and disconnect after each msg | using System;
using System.Collections.Generic;
using System.Net;
using System.Threading;
namespace Syndll2
{
public class SynelServer : IDisposable
{
private readonly IConnection _connection;
private bool _disposed;
private SynelServer(IConnection connection)
{
_c... | using System;
using System.Collections.Generic;
using System.Net;
using System.Threading;
namespace Syndll2
{
public class SynelServer : IDisposable
{
private readonly IConnection _connection;
private bool _disposed;
private SynelServer(IConnection connection)
{
_c... |
Add test to check that Unicode languages work (testing Chinese). | namespace ForecastPCL.Test
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ForecastIOPortable;
using NUnit.Framework;
[TestFixture]
public class LanguageTests
{
[Test]
public void All... | namespace ForecastPCL.Test
{
using System;
using System.Configuration;
using ForecastIOPortable;
using NUnit.Framework;
[TestFixture]
public class LanguageTests
{
// These coordinates came from the Forecast API documentation,
// and should return forecasts with all blocks... |
Implement Enabled flag to be able to run sorts separately | using System;
using System.Diagnostics;
using Basics.Algorithms.Sorts;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Basics.Algorithms.Tests
{
[TestClass]
public class SortingPerformanceTests
{
private const int size = 10000;
private class SortInfo
{
pu... | using System;
using System.Diagnostics;
using System.Linq;
using Basics.Algorithms.Sorts;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Basics.Algorithms.Tests
{
[TestClass]
public class SortingPerformanceTests
{
private const int size = 1000000;
private class SortInfo
... |
Add continue time entry on recent list view click. | using System;
using System.Linq;
using Android.App;
using Android.OS;
using Android.Views;
using Toggl.Joey.UI.Adapters;
namespace Toggl.Joey.UI.Fragments
{
public class RecentTimeEntriesListFragment : ListFragment
{
public override void OnViewCreated (View view, Bundle savedInstanceState)
{
... | using System;
using System.Linq;
using Android.App;
using Android.OS;
using Android.Views;
using Android.Widget;
using Toggl.Joey.UI.Adapters;
namespace Toggl.Joey.UI.Fragments
{
public class RecentTimeEntriesListFragment : ListFragment
{
public override void OnViewCreated (View view, Bundle savedInst... |
Add IsFilterActive; remove unneeded parameters to filter (pass it on ctor) | using System;
using System.Collections.Generic;
namespace PrepareLanding.Filters
{
public enum FilterHeaviness
{
Light = 0,
Medium = 1,
Heavy = 2
}
public interface ITileFilter
{
string SubjectThingDef { get; }
string RunningDescription { get; }
... | using System;
using System.Collections.Generic;
namespace PrepareLanding.Filters
{
public enum FilterHeaviness
{
Light = 0,
Medium = 1,
Heavy = 2
}
public interface ITileFilter
{
string SubjectThingDef { get; }
string RunningDescription { get; }
... |
Change test code to repro issue in old code and prove new code doesn't crash | using Microsoft.ServiceFabric.Actors;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SoCreate.ServiceFabric.PubSub.Events;
using SoCreate.ServiceFabric.PubSub.State;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace SoCreate.ServiceFabric.PubSub.Tests
{
[TestClass]
public cl... | using Microsoft.ServiceFabric.Actors;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SoCreate.ServiceFabric.PubSub.Events;
using SoCreate.ServiceFabric.PubSub.State;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace SoCreate.ServiceFabric.PubSub.Tests
{
[TestClass]
publi... |
Make class public and all methods virtual so that it can be used as a base class for interceptors. | using System;
using System.Collections;
using NHibernate.Type;
namespace NHibernate.Cfg
{
[Serializable]
internal class EmptyInterceptor : IInterceptor
{
public EmptyInterceptor()
{
}
public void OnDelete( object entity, object id, object[ ] state, string[ ] propertyNames, IType[ ] types )
{
}
pub... | using System;
using System.Collections;
using NHibernate.Type;
namespace NHibernate.Cfg
{
[Serializable]
public class EmptyInterceptor : IInterceptor
{
public virtual void OnDelete( object entity, object id, object[ ] state, string[ ] propertyNames, IType[ ] types )
{
}
public virtual bool OnFlushDirty( ob... |
Fix for resend confirmation button | <div ng-app="GVA.Manage" ng-controller="ConfirmRegistrationController">
<div class="manage-area centered">
<h2>
Thank you for registering!
</h2>
<p class="text-centered">
You should receive an Email confirmation shortly.
</p>
<p class="text-centered">... | <div ng-app="GVA.Manage" ng-controller="ConfirmRegistrationController">
<div class="manage-area centered">
<h2>
Thank you for registering!
</h2>
<p class="text-centered">
You should receive an Email confirmation shortly.
</p>
<p class="text-centered">... |
Move ordering if types around |
namespace Glimpse.Agent.AspNet.Mvc.Messages
{
public class BeforeActionMessage : IActionRouteFoundMessage
{
public string ActionId { get; set; }
public string DisplayName { get; set; }
public RouteData RouteData { get; set; }
public string ActionName { get; set; }
p... |
namespace Glimpse.Agent.AspNet.Mvc.Messages
{
public class BeforeActionMessage : IActionRouteFoundMessage
{
public string ActionId { get; set; }
public string DisplayName { get; set; }
public string ActionName { get; set; }
public string ControllerName { get; set; }
... |
Cover case-insensitive child component parameter names in E2E test | <h1>Counter</h1>
<p>Current count: <MessageComponent Message=@currentCount.ToString() /></p>
<button @onclick(IncrementCount)>Click me</button>
@functions {
int currentCount = 0;
void IncrementCount()
{
currentCount++;
}
}
| <h1>Counter</h1>
<!-- Note: passing 'Message' parameter with lowercase name to show it's case insensitive -->
<p>Current count: <MessageComponent message=@currentCount.ToString() /></p>
<button @onclick(IncrementCount)>Click me</button>
@functions {
int currentCount = 0;
void IncrementCount()
{
... |
Add cleandatabase call in global steps | using Moq;
using SFA.DAS.EAS.TestCommon.DbCleanup;
using SFA.DAS.EAS.TestCommon.DependencyResolution;
using SFA.DAS.EAS.Web;
using SFA.DAS.EAS.Web.Authentication;
using SFA.DAS.Messaging;
using StructureMap;
using TechTalk.SpecFlow;
namespace SFA.DAS.EAS.Transactions.AcceptanceTests.Steps.CommonSteps
{
[Binding]
... | using Moq;
using SFA.DAS.EAS.TestCommon.DbCleanup;
using SFA.DAS.EAS.TestCommon.DependencyResolution;
using SFA.DAS.EAS.Web;
using SFA.DAS.EAS.Web.Authentication;
using SFA.DAS.Messaging;
using StructureMap;
using TechTalk.SpecFlow;
namespace SFA.DAS.EAS.Transactions.AcceptanceTests.Steps.CommonSteps
{
[Binding]
... |
Add graduate flag as additional property | namespace SEEK.AdPostingApi.Client.Models
{
public enum AdditionalPropertyType
{
ResidentsOnly = 1
}
}
| namespace SEEK.AdPostingApi.Client.Models
{
public enum AdditionalPropertyType
{
ResidentsOnly = 1,
Graduate
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.