Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Fix d'un bug qui faisait en sorte que le showDialog ne fonctionnait pas | using MahApps.Metro.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using... | using MahApps.Metro.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using... |
Change how constants are defined | using System;
namespace ZocMonLib
{
public class Constant
{
public static readonly DateTime MinDbDateTime = new DateTime(1753, 1, 1);
public const long TicksInMillisecond = 10000;
public const long MinResolutionForDbWrites = 60 * 1000;
public const long MsPerDay = 24... | using System;
using System.Data.SqlTypes;
namespace ZocMonLib
{
public class Constant
{
public static readonly DateTime MinDbDateTime = SqlDateTime.MinValue.Value;
public const long TicksInMillisecond = TimeSpan.TicksPerMillisecond;
public const long MinResolutionForDbWrite... |
Add a new Paused mode. | using System;
using System.Collections.Generic;
using System.Text;
using MonoTorrent.Common;
namespace MonoTorrent.Client
{
class PausedMode : Mode
{
public override TorrentState State
{
get { return TorrentState.Paused; }
}
public PausedMode(TorrentManager manager)
: base(manage... | |
Change the MSI version to 1.8 | //
// Copyright 2012 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | //
// Copyright 2012 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
Add test coverage of `SettingsCheckbox` | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.G... | |
Add unit tests for Users API controller | using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Moq;
using Xunit;
using ISTS.Api.Controllers;
using ISTS.Api.Helpers;
using ISTS.Application.Users;
namespace ISTS.Api.Test.Controllers
{
public class UsersControllerTests
{
private M... | |
Split out test for combo counter specifically | // 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 System.Linq;
using NUnit.Framework;
using osu.Framework.Testing;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Osu;
using osu.G... | |
Add test for racecondition issue | using System.IO;
using Microsoft.Extensions.Configuration;
using NUnit.Framework;
using Tiver.Fowl.Drivers.Configuration;
using Tiver.Fowl.Drivers.DriverBinaries;
using Tiver.Fowl.Drivers.DriverDownloaders;
namespace Tiver.Fowl.Drivers.Tests
{
[TestFixture]
public class DownloadersParallel
{
priva... | |
Set Horizontal And Vertical Image Resolution | using Aspose.Words.Saving;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Aspose.Words.Examples.CSharp.Rendering_Printing
{
class SetHorizontalAndVerticalImageResolution
{
public static void Run()
{
// The path to the documents direc... | |
Add interface for content validation | using Microsoft.AspNetCore.Http;
using System.Threading.Tasks;
namespace Porthor.ContentValidation
{
public interface IContentValidator
{
Task<bool> Validate(HttpRequest request);
}
}
| |
Create view model for user | namespace DevelopmentInProgress.AuthorisationManager.ASP.Net.Core.ViewModels
{
public class UserViewModel
{
public string Id { get; set; }
public string Name { get; set; }
public string DisplayName { get; set; }
}
}
| |
Add new parser test base | using System;
using System.Linq;
using JetBrains.Annotations;
using JetBrains.Application.Components;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.ExtensionsAPI;
using JetBrains.ReSharper.Psi.ExtensionsAPI.Tree;
using JetBrains.ReSharper.Psi.Files;
using JetBrains.ReSharper... | |
Add AutoSave on run feature - toggle | using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
[InitializeOnLoad]
public class AutoSaveOnRunMenuItem
{
public const string MenuName = "Tools/Autosave On Run";
private static bool isToggled;
static AutoSaveOnRunMenuItem()
{
EditorApplication.delayCall += () =>
... | |
Add vehicleType into Command Parameter Types. | // SampSharp
// Copyright 2017 Tim Potze
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | |
Create server side API for single multiple answer question | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | |
Add useful extensions for tree operations | using System.Linq;
namespace slang.Lexing.Trees
{
public static class TreeExtensions
{
public static Tree AttachChild(this Tree parent, Tree child)
{
var parentLeaves = parent.Leaves.ToList ();
var childTransitions = child.Root.Transitions.ToList ();
parentL... | |
Increase version number to 1.1 | //-----------------------------------------------------------------------
// <copyright file="AssemblyInfo.Shared.cs" company="SonarSource SA and Microsoft Corporation">
// Copyright (c) SonarSource SA and Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the projec... | //-----------------------------------------------------------------------
// <copyright file="AssemblyInfo.Shared.cs" company="SonarSource SA and Microsoft Corporation">
// Copyright (c) SonarSource SA and Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the projec... |
Add extension method to prepend content to a TagHelperContent | namespace BootstrapTagHelpers {
using Microsoft.AspNet.Razor.Runtime.TagHelpers;
public static class TagHelperContentExtensions {
public static void Prepend(this TagHelperContent content, string value) {
if (content.IsEmpty)
content.SetContent(value);
else
... | |
Fix hang in host tests due to test parallelization | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Xunit;
// Disable test parallelization to avoid port reuse issues
[assembly: CollectionBehavior(DisableTestParallelization = true)]
| |
Validate Tag Helper registration system functionality. | // 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.Linq;
using Microsoft.AspNet.Razor.TagHelpers;
using Xunit;
namespace Microsoft.AspNet.Razor.Test.TagHelpers
{
publi... | |
Add test for catch hidden mod | // 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 System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Testing;
using osu.Game.Beatmaps;
using os... | |
Add a new interface for the JobService. | // ***********************************************************************
// Copyright (c) 2017 Dominik Lachance
//
// 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, i... | |
Add simple user state 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.
namespace osu.Game.Online.RealtimeMultiplayer
{
public class MultiplayerClientState
{
public MultiplayerClientState(in long roomId)
{
... | |
Create abstract report to simplify creating reports | using KenticoInspector.Core.Models;
using System;
using System.Collections.Generic;
namespace KenticoInspector.Core
{
public abstract class AbstractReport : IReport
{
public string Codename => GetCodename(this.GetType());
public static string GetCodename(Type reportType) {
return ... | |
Add new document extensions file | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.CodeAnalysis.Editor.Shared.Utilities;
namespace Microsoft.CodeAnalysis.Editor.Shared.Extensions
{
... | |
Add metadata class for the compilation root. | namespace slang.Compilation
{
public class CompilationMetadata
{
public CompilationMetadata(string projectName)
{
ProjectName = projectName;
}
public string ProjectName { get; set; }
}
}
| |
Revert "moving error view to Shared from Home" | @model System.Exception
@{
ViewBag.Title = "Error :)";
}
<section class="container">
<div class="row area">
<div class="col-xs-12">
<h1>@ViewBag.Title</h1>
<p>
Rats, something unfortunate happened. Below you can find some additional, technical information which ... | |
Add default LSP initialize handler (for diagnostics). | // 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.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.VisualStudio.LiveShare.LanguageServices;
using Microsoft.... | |
Fix U4-2286 - IFilteredControllerFactory classes are not resolved by Umbraco | using System;
using System.Collections.Generic;
using Umbraco.Core.ObjectResolution;
namespace Umbraco.Web.Mvc
{
/// <summary>
/// A resolver for storing IFilteredControllerFactories
/// </summary>
internal sealed class FilteredControllerFactoriesResolver : ManyObjectsResolverBase<FilteredControllerFactor... | using System;
using System.Collections.Generic;
using Umbraco.Core.ObjectResolution;
namespace Umbraco.Web.Mvc
{
/// <summary>
/// A resolver for storing IFilteredControllerFactories
/// </summary>
public sealed class FilteredControllerFactoriesResolver : ManyObjectsResolverBase<FilteredControllerFactorie... |
Add a unit test for the LedgerQueriesExtensions class | // Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | |
Fix crashing when OK button is pressed and no subtitle file is selected | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SubtitleRenamer
{
public partial class ZipFilesForm : Form
{
private List<stri... | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SubtitleRenamer
{
public partial class ZipFilesForm : Form
{
private List<stri... |
Add a very basic data adapter for building the grid cell views to show those SimpleItem objects. | using Android.Content;
using Android.Views;
using Android.Widget;
namespace GridViewInfiniteScroll
{
public class MyGridViewAdapter : BaseAdapter<SimpleItem>
{
private readonly SimpleItemLoader _simpleItemLoader;
private readonly Context _context;
public MyGridViewAdapter(Context context, ... | |
Remove tests which are not actual tests but rather stress tests/means to type files automatically | using System.Diagnostics.CodeAnalysis;
using System.IO;
using FluentAssertions;
using Microsoft.R.Editor.Application.Test.TestShell;
using Microsoft.R.Editor.ContentType;
using Microsoft.R.Support.RD.ContentTypes;
using Microsoft.UnitTests.Core.XUnit;
using Xunit;
namespace Microsoft.R.Editor.Application.Test.Typing ... | using System.Diagnostics.CodeAnalysis;
using FluentAssertions;
using Microsoft.R.Editor.Application.Test.TestShell;
using Microsoft.R.Editor.ContentType;
using Microsoft.R.Support.RD.ContentTypes;
using Microsoft.UnitTests.Core.XUnit;
using Xunit;
namespace Microsoft.R.Editor.Application.Test.Typing {
[ExcludeFro... |
Add models for user profile. | using CompetitionPlatform.Data.AzureRepositories.Project;
using CompetitionPlatform.Models.ProjectViewModels;
using System;
using System.Collections.Generic;
namespace CompetitionPlatform.Models.UserProfile
{
public class UserProfile
{
public string Id { get; set; }
public string UserId { get;... | |
Add integration test for entity deletion. | using System.Threading.Tasks;
using Content.Server.GameObjects.Components.GUI;
using Content.Server.GameObjects.Components.Items.Clothing;
using NUnit.Framework;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.Interfaces.Map;
using Robust.Shared.IoC;
using Robust.Shared.Map;
using static Content.Shared... | |
Introduce generic base movement command handler | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Logging;
using GladNet;
using SceneJect.Common;
using UnityEngine;
namespace Booma.Proxy
{
/// <summary>
/// Base <see cref="BaseSubCommand60"/> handler for default movement generator
//... | |
Move reflection initialization eager cctor order above McgModuleManager as it turns out to have a dependency on it in debug mode | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System.Runtime.CompilerServices
{
// When applied to a type this custom attribute will cause it's cctor to be executed during startup
// rather bein... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System.Runtime.CompilerServices
{
// When applied to a type this custom attribute will cause it's cctor to be executed during startup
// rather bein... |
Add policy for local only requests | using System;
using Glimpse.Server.Options;
using Glimpse.Web;
namespace Glimpse.Server.Framework
{
public class AllowRemoteSecureRequestPolicy : ISecureRequestPolicy
{
private readonly IAllowRemoteProvider _allowRemoteProvider;
public AllowRemoteSecureRequestPolicy(IAllowRemoteProvider allow... | |
Add tests for multiple calls | using System;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using RawRabbit.Client;
using RawRabbit.IntegrationTests.TestMessages;
using Xunit;
namespace RawRabbit.IntegrationTests.SimpleUse
{
public class MultipleRequestsTests
{
[Fact]
publ... | |
Remove DocValues numeric fielddata format | using System.Runtime.Serialization;
namespace Nest
{
public enum NumericFielddataFormat
{
[EnumMember(Value = "array")]
Array,
[EnumMember(Value = "doc_values")]
DocValues,
[EnumMember(Value = "disabled")]
Disabled
}
}
| using System.Runtime.Serialization;
namespace Nest
{
public enum NumericFielddataFormat
{
[EnumMember(Value = "array")]
Array,
[EnumMember(Value = "disabled")]
Disabled
}
}
|
Add beatmap availability tracker component for multiplayer | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Bindables;
using osu.Game.Beatmaps;
namespace osu.Game.Online.Rooms
{
public class MultiplayerBeatmapTracker : D... | |
Add base class for path elements that has a good default implementation for Apply on Selection | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Pather.CSharp.PathElements
{
public abstract class PathElementBase : IPathElement
{
public Selection Apply(Selection target)
{
var results = new List<object>();
fo... | |
Add AutoQueryable extension on top of Iqueryable<T> | using System;
using System.Linq;
using AutoQueryable.Helpers;
using AutoQueryable.Models;
namespace AutoQueryable.Extensions
{
public static class QueryableExtension
{
public static dynamic AutoQueryable(this IQueryable<object> query, string queryString, AutoQueryableProfile profile)
{
... | |
Add the prim count interfaces | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | |
Add basic unit test for SecurityProtocolManager | using Htc.Vita.Core.Net;
using Xunit;
using Xunit.Abstractions;
namespace Htc.Vita.Core.Tests
{
public class SecurityProtocolManagerTest
{
private readonly ITestOutputHelper _output;
public SecurityProtocolManagerTest(ITestOutputHelper output)
{
_output = output;
}... | |
Add test case covering regression | // 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 System.Linq;
using NUnit.Framework;
using osu.Framework.Testing;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Catch.Mods;
usin... | |
Remove attribute since this is no longer a test code | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Diagnostics.CodeAnalysis;
using System.Windows;
using System.Windows.Media;
namespace Microsoft.Common.Wpf.Extensions {
[ExcludeFromCodeCoverage]
... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Diagnostics.CodeAnalysis;
using System.Windows;
using System.Windows.Media;
namespace Microsoft.Common.Wpf.Extensions {
public static class VisualT... |
Fix incorrect title on edit page | @using Orchard.Mvc.Html;
@{
Layout.Title = T("New Blog");
}
<div class="edit-item">
<div class="edit-item-primary">
@if (Model.Content != null) {
<div class="edit-item-content">
@Display(Model.Content)
</div>
}
</div>
<div class="edit-item-secondar... | @using Orchard.Mvc.Html;
<div class="edit-item">
<div class="edit-item-primary">
@if (Model.Content != null) {
<div class="edit-item-content">
@Display(Model.Content)
</div>
}
</div>
<div class="edit-item-secondary group">
@if (Model.Actions !=... |
Create Message Context Factory interface | using Lidgren.Network;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GladNet.Lidgren.Engine.Common
{
/// <summary>
/// Factory that generates <see cref="LidgrenMessageContext"/>s.
/// </summary>
public interface ILidgrenMessageContextFactory
{
/// <summary>
/... | |
Update server side API for single multiple answer question | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | |
Add base class for auth tests. | using System;
using System.Text;
namespace Rnwood.SmtpServer.Tests.Extensions.Auth
{
public class AuthMechanismTest
{
protected static bool VerifyBase64Response(string base64, string expectedString)
{
string decodedString = Encoding.ASCII.GetString(Convert.FromBase64String(base64));... | |
Add failing test for issue GH-837 | using System;
using System.Linq;
using Marten.Schema;
using Marten.Testing.Documents;
using Xunit;
namespace Marten.Testing.Bugs
{
public class Bug_837_missing_func_mt_immutable_timestamp_when_initializing_with_new_Schema : IntegratedFixture
{
[Fact]
public void missing_func_mt_immutable_times... | |
Add missing unit test file | using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using compiler.middleend.ir;
namespace NUnit.Tests.Middle_End
{
[TestFixture]
public class InstructionTests
{
[Test]
public void ToStringTest()
... | |
Add Extension Methods for WebSocket->IGuild | using System.Collections.Generic;
using System.Linq;
namespace Discord.WebSocket.Extensions
{
// TODO: Docstrings
public static class GuildExtensions
{
// Channels
public static IGuildChannel GetChannel(this IGuild guild, ulong id) =>
(guild as SocketGuild).GetChannel(id);
... | |
Revert "Pack nuget on build" | 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("Se... | |
Add test for persisting cached value under different culture. | using ClosedXML.Excel;
using NUnit.Framework;
using System.IO;
using System.Threading;
namespace ClosedXML_Tests.Excel.Globalization
{
[TestFixture]
public class GlobalizationTests
{
[Test]
[TestCase("A1*10", "1230")]
[TestCase("A1/10", "12.3")]
[TestCase("A1&\" cells\"", "... | |
Add integration test for sitemap.xml | // Copyright (c) Martin Costello, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.LondonTravel.Site.Integration
{
using System;
using System.Globalization;
using System.Net;
using Syste... | |
Read file from osz archive. | using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
namespace Meowtrix.osuAMT.Training.DataGenerator
{
class OszArchive : Archive, IDisposable
{
public ZipArchive archive;
public OszArchive(Stream stream)
{
archi... | |
Add foundation of integration test runner | using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace SimplifiedProtocolTestWpfCore
{
internal static class IntegrationTest
{
public static Task<IntegrationTestResult[]> RunAsync(CancellationToken ct)
{
return Task<Inte... | |
Fix EventSource test to be aware of ArrayPoolEventSource | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Diagnostics.Tracing;
using System.Diagnostics;
using Xunit;
using System;
namespace BasicEventSourceTe... | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Diagnostics.Tracing;
using System.Diagnostics;
using Xunit;
using System;
namespace BasicEventSourceTe... |
Use using when creating game/host. | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using osu.Framework.Desktop;
using osu.Framework.OS;
namespace SampleGame
{
public static class Program
{
[STAThread... | // Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using osu.Framework.Desktop;
using osu.Framework.OS;
using osu.Framework;
namespace SampleGame
{
public static class Program
... |
Debug view now displays the camera position and speed. | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using MonoGame.Extended.BitmapFonts;
namespace Citysim.... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using MonoGame.Extended.BitmapFonts;
namespace Citysim.... |
Add readonly in ContextKey property | using System.Web;
using MvcMusicStore.Data.Context.Interfaces;
namespace MvcMusicStore.Data.Context
{
public class ContextManager<TContext> : IContextManager<TContext>
where TContext : IDbContext, new()
{
private string ContextKey = "ContextManager.Context";
public ContextMana... | using System.Web;
using MvcMusicStore.Data.Context.Interfaces;
namespace MvcMusicStore.Data.Context
{
public class ContextManager<TContext> : IContextManager<TContext>
where TContext : IDbContext, new()
{
private readonly string ContextKey;
public ContextManager()
{
... |
Use Collection instead of List for consistency | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
namespace Anabi.DataAccess.Ef.DbModels
{
public class AssetDb : BaseEntity
{
public string Name { get; set; }
public int? AddressId { get; set; }
public virtual AddressDb ... | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
namespace Anabi.DataAccess.Ef.DbModels
{
public class AssetDb : BaseEntity
{
public string Name { get; set; }
public int? AddressId { get; set; }
public virtual AddressDb ... |
Set default time zone to UTC | using System;
namespace IntegrationEngine.Model
{
public class CronTrigger : IHasStringId, IIntegrationJobTrigger
{
public string Id { get; set; }
public string JobType { get; set; }
public string CronExpressionString { get; set; }
public TimeZoneInfo TimeZone { get; set; }
... | using System;
namespace IntegrationEngine.Model
{
public class CronTrigger : IHasStringId, IIntegrationJobTrigger
{
public string Id { get; set; }
public string JobType { get; set; }
public string CronExpressionString { get; set; }
TimeZoneInfo _timeZone { get; set; }
p... |
Use ReflectionOnlyLoad() in the remote proxy reference prober | #if !CORE
namespace Nancy.Helpers
{
using System;
using System.Reflection;
using Nancy.Extensions;
internal class ProxyNancyReferenceProber : MarshalByRefObject
{
public bool HasReference(AssemblyName assemblyNameForProbing, AssemblyName referenceAssemblyName)
{
... | #if !CORE
namespace Nancy.Helpers
{
using System;
using System.Reflection;
using Nancy.Extensions;
internal class ProxyNancyReferenceProber : MarshalByRefObject
{
public bool HasReference(AssemblyName assemblyNameForProbing, AssemblyName referenceAssemblyName)
{
... |
Improve pipeline interface so that StartWith is now static and actually creates the pipeline for us | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using BulkWriter.Pipeline.Internal;
using BulkWriter.Pipeline.Steps;
namespace BulkWriter.Pipeline
{
public class EtlPipeline : IEtlPipeline
{
private readonly Stack<IEtlPipelineStep> _pipelineSteps = new Stack<IEt... | using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using BulkWriter.Pipeline.Internal;
using BulkWriter.Pipeline.Steps;
namespace BulkWriter.Pipeline
{
public sealed class EtlPipeline : IEtlPipeline
{
private readonly Stack<IEtlPipelineStep> _pipelineSteps = new St... |
Address an issue blocks query provider parameters being sent. | using Moegirlpedia.MediaWikiInterop.Primitives.Action.Models;
using Moegirlpedia.MediaWikiInterop.Primitives.Foundation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace Moegirlpedia.MediaWikiInterop.Primitives.Tr... | using Moegirlpedia.MediaWikiInterop.Primitives.Action.Models;
using Moegirlpedia.MediaWikiInterop.Primitives.Foundation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Reflection;
using Moegirlpedia.MediaWikiI... |
Make the intent clearer to accept bodyless PROPFIND | using Microsoft.AspNetCore.Mvc.Formatters;
namespace FubarDev.WebDavServer.AspNetCore.Formatters
{
public class WebDavXmlSerializerInputFormatter : XmlSerializerInputFormatter
{
public override bool CanRead(InputFormatterContext context)
{
var request = context.HttpContext.Request;... | using Microsoft.AspNetCore.Mvc.Formatters;
namespace FubarDev.WebDavServer.AspNetCore.Formatters
{
public class WebDavXmlSerializerInputFormatter : XmlSerializerInputFormatter
{
public override bool CanRead(InputFormatterContext context)
{
var request = context.HttpContext.Request;... |
CHANGE CONFIG TO PRODUCTION !!! | using ApiApp.Models;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Configuration;
namespace ApiApp.MongoAccess
{
static class MongoUtil
{
#region Fields
private static IMongoClient _cl... | using ApiApp.Models;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Configuration;
namespace ApiApp.MongoAccess
{
static class MongoUtil
{
#region Fields
private static IMongoClient _cl... |
Remove "register for more config choices" | <div ng-controller="UnregisteredDashboardController">
<div>
<h2>Regular Poller?</h2>
Register for more config choices. It's free!
</div>
<form name="quickPollForm" ng-submit="createPoll(pollQuestion)">
<div id="question-block">
Your Question <br />
<input id... | <div ng-controller="UnregisteredDashboardController">
<form name="quickPollForm" ng-submit="createPoll(pollQuestion)">
<div id="question-block">
Your Question <br />
<input id="question" placeholder="E.g. Where should we go for lunch?" ng-model="pollQuestion" required />
</d... |
Correct regex to match only full words | using System;
using System.Reflection;
using System.Text.RegularExpressions;
using InfluxData.Net.Common;
using System.Linq;
namespace InfluxData.Net.InfluxDb.Helpers
{
public static class QueryHelpers
{
public static string BuildParameterizedQuery(string query, object param)
{
var... | using System;
using System.Reflection;
using System.Text.RegularExpressions;
using InfluxData.Net.Common;
using System.Linq;
namespace InfluxData.Net.InfluxDb.Helpers
{
public static class QueryHelpers
{
public static string BuildParameterizedQuery(string query, object param)
{
Typ... |
Add test to prove that OnActivation is syncronous | namespace FunWithNinject.Initialization
{
using Ninject;
using NUnit.Framework;
[TestFixture]
public class Tests
{
[Test]
public void OnActivation_CanCallMethodOnImplementation()
{
// Assemble
var k = new StandardKernel();
k.Bind<IInitial... | namespace FunWithNinject.Initialization
{
using Ninject;
using NUnit.Framework;
using System.Threading;
[TestFixture]
public class Tests
{
[Test]
public void OnActivation_CanCallMethodOnImplementation()
{
// Assemble
var k = new StandardKernel();... |
Add same type twices adds 2 operations to pending | //-----------------------------------------------------------------------
// <copyright file="EventWindowTest.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace TraceAnalysisSample.Te... | //-----------------------------------------------------------------------
// <copyright file="EventWindowTest.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace TraceAnalysisSample.Te... |
Copy changes and companies house link on the company search page | @{ViewBag.Title = "Search for your organisation"; }
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-xlarge">Search for your organisation</h1>
<p>Use the companies house number for an organisation that your apprentices will be employed through.</p>
<form method=... | @{ViewBag.Title = "Search for your organisation"; }
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-xlarge">Enter Companies House number</h1>
<p>Use the Companies House number for an organisation that your apprentices will be employed through.</p>
<p><a href="https... |
Change bar chart type to bar instead of pie | using ChartJS.NET.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ChartJS.NET.Charts.Bar
{
public class BarChart : BaseChart<BarDataSet, BarChartOptions>
{
private readonly BarChartOptions _barChartOptions = ... | using ChartJS.NET.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ChartJS.NET.Charts.Bar
{
public class BarChart : BaseChart<BarDataSet, BarChartOptions>
{
private readonly BarChartOptions _barChartOptions = ... |
Revert "new capabilites, minor version" | 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("MonJobs")]
[assembly: AssemblyDescription... | 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("MonJobs")]
[assembly: AssemblyDescription... |
Fix zero being interpreted as 1/1/1970 instead of DateTime.MinValue | using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Curse.NET
{
internal class MillisecondEpochConverter : DateTimeConverterBase
{
private static readonly DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
public override void WriteJson(JsonWriter writer, object ... | using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Curse.NET
{
internal class MillisecondEpochConverter : DateTimeConverterBase
{
private static readonly DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
public override void WriteJson(JsonWriter writer, object ... |
Add better exceptions for invalid keys | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Audio;
namespace ShiftDrive {
/// <summary>
/// A simple static container, for holding game assets like textures and meshes.
/// </summary>
... | /*
** Project ShiftDrive
** (C) Mika Molenkamp, 2016.
*/
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Audio;
namespace ShiftDrive {
/// <summary>
/// A simple static container, for holding game assets like textures and meshes.
/// </summary>
... |
Change color of tank for debug purposes | namespace Game
{
using UnityEngine;
[RequireComponent(typeof(Collider))]
public class Tank : MonoBehaviour
{
public PlayerController player;
[Range(10f, 1000f)]
public float max = 100f;
[Range(0.1f, 20f)]
public float leakRatePerSecond = 2f;
[ReadOnly... | namespace Game
{
using UnityEngine;
[RequireComponent(typeof(Collider))]
public class Tank : MonoBehaviour
{
public PlayerController player;
[Range(10f, 1000f)]
public float max = 100f;
[Range(0.1f, 20f)]
public float leakRatePerSecond = 2f;
[ReadOnly... |
Add caching to the GetBudgetsAsync method | using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using YnabApi.Files;
using YnabApi.Helpers;
namespace YnabApi
{
public class YnabApi
{
private readonly IFileSystem _fileSystem;
public YnabApi(... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using YnabApi.Files;
using YnabApi.Helpers;
namespace YnabApi
{
public class YnabApi
{
private readonly IFileSystem _fileSystem;
p... |
Add filter property to popular shows request. | namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common
{
using Base.Get;
using Objects.Basic;
using Objects.Get.Shows;
internal class TraktShowsPopularRequest : TraktGetRequest<TraktPaginationListResult<TraktShow>, TraktShow>
{
internal TraktShowsPopularRequest(TraktClient client) : ba... | namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common
{
using Base;
using Base.Get;
using Objects.Basic;
using Objects.Get.Shows;
internal class TraktShowsPopularRequest : TraktGetRequest<TraktPaginationListResult<TraktShow>, TraktShow>
{
internal TraktShowsPopularRequest(TraktCli... |
Revert "NR Improve display of version number" | using Waf.NewsReader.Applications.Services;
using Xamarin.Essentials;
namespace Waf.NewsReader.Presentation.Services
{
public class AppInfoService : IAppInfoService
{
public AppInfoService()
{
AppName = AppInfo.Name;
VersionString = AppInfo.VersionString + "." + AppInfo... | using Waf.NewsReader.Applications.Services;
using Xamarin.Essentials;
namespace Waf.NewsReader.Presentation.Services
{
public class AppInfoService : IAppInfoService
{
public AppInfoService()
{
AppName = AppInfo.Name;
VersionString = AppInfo.VersionString;
}
... |
Add additional test case for package versions | using NUnit.Framework;
using Rant.Resources;
namespace Rant.Tests
{
[TestFixture]
public class PackageVersions
{
[TestCase("1.2.5", "1.2.4", true)]
[TestCase("0.2.5", "0.2.4", true)]
[TestCase("0.0.3", "0.0.4", false)]
[TestCase("0.3.1", "0.4.0", false)]
public void VersionGreaterThan(string v1, string ... | using NUnit.Framework;
using Rant.Resources;
namespace Rant.Tests
{
[TestFixture]
public class PackageVersions
{
[TestCase("1.2.5", "1.2.4", true)]
[TestCase("0.2.5", "0.2.4", true)]
[TestCase("0.0.3", "0.0.4", false)]
[TestCase("0.3.1", "0.4.0", false)]
public void VersionGreaterThan(string v1, string ... |
FIX logger variable in PS scripts | using System.Collections.Generic;
using System.Management.Automation.Runspaces;
using Aggregator.Core.Interfaces;
using Aggregator.Core.Monitoring;
namespace Aggregator.Core
{
/// <summary>
/// Invokes Powershell scripting engine
/// </summary>
public class PsScriptEngine : ScriptEngine
{
... | using System.Collections.Generic;
using System.Management.Automation.Runspaces;
using Aggregator.Core.Interfaces;
using Aggregator.Core.Monitoring;
namespace Aggregator.Core
{
/// <summary>
/// Invokes Powershell scripting engine
/// </summary>
public class PsScriptEngine : ScriptEngine
{
... |
Make statically typed numeric generation distinct | using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace FreecraftCore.Serializer
{
public class RootSerializationMethodBlockEmitter<TSerializableType> : IMethodBlockEmittable, INestedClassesEmittable
where TSerializableType :... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace FreecraftCore.Serializer
{
public class RootSerializationMethodBlockEmitter<TSerializableType> : IMethodBlockEmittable, INestedClassesEmittable
where ... |
Change force emulation IE10 to IE11 Изменена принудительная эмуляция IE10 на IE11 | using System;
using System.IO;
using System.Windows.Forms;
using Microsoft.Win32;
namespace KryBot
{
internal static class Program
{
/// <summary>
/// Главная точка входа для приложения.
/// </summary>
[STAThread]
private static void Main()
{
Reg... | using System;
using System.IO;
using System.Windows.Forms;
using Microsoft.Win32;
namespace KryBot
{
internal static class Program
{
/// <summary>
/// Главная точка входа для приложения.
/// </summary>
[STAThread]
private static void Main()
{
Reg... |
Add to the details page too | @model AnlabMvc.Models.Analysis.AnalysisMethodViewModel
@{
ViewBag.Title = @Model.AnalysisMethod.Title;
}
<div class="col-md-8">
<h2>@Model.AnalysisMethod.Id</h2>
<h5>@Model.AnalysisMethod.Title</h5>
@Html.Raw(Model.HtmlContent)
</div>
<div class="col-md-4">
<ul>
@foreach (var metho... | @model AnlabMvc.Models.Analysis.AnalysisMethodViewModel
@{
ViewBag.Title = @Model.AnalysisMethod.Title;
}
<div class="col-md-8">
<h2>@Model.AnalysisMethod.Id</h2>
<h5>@Model.AnalysisMethod.Title</h5>
@Html.Raw(Model.HtmlContent)
</div>
<div class="col-md-4">
<ul>
@foreach (var method... |
Use cell.Value instead of cell.Value2 to allow for Date formatting | using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Office.Interop.Excel;
namespace XtabFileOpener.TableContainer.SpreadsheetTableContainer.ExcelTableContainer
{
/// <summary>
/// Implementation of Table, that manages an Excel table
/// </summary>
internal... | using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Office.Interop.Excel;
namespace XtabFileOpener.TableContainer.SpreadsheetTableContainer.ExcelTableContainer
{
/// <summary>
/// Implementation of Table, that manages an Excel table
/// </summary>
internal... |
Add torque to launched planets | using UnityEngine;
using System.Collections;
public class PlanetSpawner : MonoBehaviour {
public GameObject camera;
public GameObject planetPrefab;
public GravityAttractor blackHole;
// public GravityAttractor blackHole1;
// public GravityAttractor blackHole2;
public float force = 100f;
void Start()
{
}
... | using UnityEngine;
using System.Collections;
public class PlanetSpawner : MonoBehaviour {
public GameObject camera;
public GameObject planetPrefab;
public GravityAttractor blackHole;
// public GravityAttractor blackHole1;
// public GravityAttractor blackHole2;
public float thrust = 100f;
public float torque = 2... |
Add stretchblt for copy and resize | using System;
using System.Runtime.InteropServices;
namespace Mamesaver.Windows
{
// This class contains the GDI32 APIs used...
public class PlatformInvokeGdi32
{
public const int SRCOPY = 13369376;
[DllImport("gdi32.dll", EntryPoint = "DeleteDC")]
public static extern IntPtr Dele... | using System;
using System.Runtime.InteropServices;
namespace Mamesaver.Windows
{
// This class contains the GDI32 APIs used...
public class PlatformInvokeGdi32
{
public const int SRCOPY = 13369376;
[DllImport("gdi32.dll", EntryPoint = "DeleteDC")]
public static extern IntPtr Dele... |
Write command exception message to the console | using System;
using System.Linq;
using System.Collections.Generic;
namespace AppHarbor
{
public class CommandDispatcher
{
private readonly IEnumerable<ICommand> _commands;
public CommandDispatcher(IEnumerable<ICommand> commands)
{
_commands = commands;
}
public void Dispatch(string[] args)
{
var... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AppHarbor
{
public class CommandDispatcher
{
private readonly IEnumerable<ICommand> _commands;
public CommandDispatcher(IEnumerable<ICommand> commands)
{
_commands = commands;
}
public void Dispatch(string[] args)
{
var... |
Rename `Option` to `Opt` in key combination output | // 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.Input.Bindings;
using osu.Framework.Platform.SDL2;
using SDL2;
namespace osu.Framework.Platform.MacOS
{
public class MacOSReadableKeyCombinationP... | // 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.Input.Bindings;
using osu.Framework.Platform.SDL2;
using SDL2;
namespace osu.Framework.Platform.MacOS
{
public class MacOSReadableKeyCombinationP... |
Expand p tag on about screen. | @{
ViewBag.Title = "About";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<p>Use this area to provide additional information.</p>
| @{
ViewBag.Title = "About";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<p>Use this area to provide additional information. Here is more groovy info.</p>
|
Add filter property to most watched shows request. | namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common
{
using Base.Get;
using Enums;
using Objects.Basic;
using Objects.Get.Shows.Common;
using System.Collections.Generic;
internal class TraktShowsMostWatchedRequest : TraktGetRequest<TraktPaginationListResult<TraktMostWatchedShow>, TraktM... | namespace TraktApiSharp.Requests.WithoutOAuth.Shows.Common
{
using Base;
using Base.Get;
using Enums;
using Objects.Basic;
using Objects.Get.Shows.Common;
using System.Collections.Generic;
internal class TraktShowsMostWatchedRequest : TraktGetRequest<TraktPaginationListResult<TraktMostWatc... |
Add async/await based pattern execution | using System;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Queue;
using Microsoft.Extensions.Configuration;
using System.Diagnostics;
namespace QueueGettingStarted
{
public class Program
{
public static void Main(string[] args)
{
// configuration
... | using System;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Queue;
using Microsoft.Extensions.Configuration;
using System.Diagnostics;
using System.Threading.Tasks;
namespace QueueGettingStarted
{
public class Program
{
public static void Main(string[] args)
{
... |
Update the version for migration project | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DotNet.ProjectJsonMigration
{
internal class ConstantPackageVersions
{
public const string AspNetToolsVersion... | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DotNet.ProjectJsonMigration
{
internal class ConstantPackageVersions
{
public const string AspNetToolsVersion... |
Set title of root controller (sample app) | using Foundation;
using System;
using System.CodeDom.Compiler;
using UIKit;
namespace SampleApp
{
partial class ExampleTableViewController : UITableViewController
{
public ExampleTableViewController (IntPtr handle) : base (handle)
{
}
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
Tabl... | using Foundation;
using System;
using System.CodeDom.Compiler;
using UIKit;
namespace SampleApp
{
partial class ExampleTableViewController : UITableViewController
{
public ExampleTableViewController (IntPtr handle) : base (handle)
{
}
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
Titl... |
Remove unused namespace which caused a build failure | using NUnit.Framework;
namespace Kekiri.IoC.Autofac
{
public class AutofacFluentScenario : IoCFluentScenario
{
public AutofacFluentScenario() : base(new AutofacContainer())
{
}
}
public class AutofacFluentScenario<TContext> : IoCFluentScenario<TContext> where TContext : new()
... | namespace Kekiri.IoC.Autofac
{
public class AutofacFluentScenario : IoCFluentScenario
{
public AutofacFluentScenario() : base(new AutofacContainer())
{
}
}
public class AutofacFluentScenario<TContext> : IoCFluentScenario<TContext> where TContext : new()
{
public Aut... |
Rename variable to make more sense | using Nancy;
using Nancy.ModelBinding;
using Schedules.API.Models;
using Simpler;
using Schedules.API.Tasks.Reminders;
namespace Schedules.API.Modules
{
public class RemindersModule : NancyModule
{
public RemindersModule ()
{
Post["/reminders/sms"] = _ => {
var createSMSReminder = CreateARem... | using Nancy;
using Nancy.ModelBinding;
using Schedules.API.Models;
using Simpler;
using Schedules.API.Tasks.Reminders;
namespace Schedules.API.Modules
{
public class RemindersModule : NancyModule
{
public RemindersModule ()
{
Post["/reminders/sms"] = _ => {
var createSMSReminder = CreateARem... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.