commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
dd93fc3bcd309b873c17f2427bd6df1b023d2ca7 | UnityUtilities/Scripts/Misc/UnityUtils.cs | UnityUtilities/Scripts/Misc/UnityUtils.cs | using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Networking;
public static class UnityUtils
{
/// <summary>
/// Is any of the keys UP?
/// </summary>
/// <param name="keys"></param>
/// <returns></returns>
public static bool IsAnyKeyUp(KeyCode[] keys)
{
foreach (Key... | using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Networking;
public static class UnityUtils
{
public static bool IsAnyKeyUp(KeyCode[] keys)
{
foreach (KeyCode key in keys)
{
if (Input.GetKeyUp(key))
return true;
}
return false;
}
... | Remove some hints, function name is clear enough | Remove some hints, function name is clear enough
| C# | mit | insthync/unity-utilities |
c8b4a798da67571c19461a151ee78c55c4109517 | src/SFA.DAS.EmployerUsers.Web/Views/Account/ConfirmChangeEmail.cshtml | src/SFA.DAS.EmployerUsers.Web/Views/Account/ConfirmChangeEmail.cshtml | <h1 class="heading-xlarge">Enter your security code</h1>
<form method="post">
@Html.AntiForgeryToken()
<fieldset>
<legend class="visuallyhidden">Enter your security code</legend>
<div class="form-group">
<label class="form-label-bold" for="SecurityCode">Enter security co... | @model SFA.DAS.EmployerUsers.Web.Models.OrchestratorResponse<SFA.DAS.EmployerUsers.Web.Models.ConfirmChangeEmailViewModel>
<h1 class="heading-xlarge">Enter your security code</h1>
<form method="post">
@Html.AntiForgeryToken()
<fieldset>
<legend class="visuallyhidden">Enter your security co... | Add view elements for resending Confirm code | Add view elements for resending Confirm code
| C# | mit | SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers |
e51b296796b36b819372d1b1c53fe1acbd576d3a | test/Serilog.Sinks.MSSqlServer.Tests/TestPropertiesColumnFiltering.cs | test/Serilog.Sinks.MSSqlServer.Tests/TestPropertiesColumnFiltering.cs | using System;
using System.Collections.Generic;
using System.Text;
namespace Serilog.Sinks.MSSqlServer.Tests
{
class TestPropertiesColumnFiltering
{
}
}
| using Dapper;
using FluentAssertions;
using System.Data.SqlClient;
using Xunit;
namespace Serilog.Sinks.MSSqlServer.Tests
{
[Collection("LogTest")]
public class TestPropertiesColumnFiltering
{
internal class PropertiesColumns
{
public string Properties { get; set; }
}
... | Test for properties column filtering | Test for properties column filtering
| C# | apache-2.0 | serilog/serilog-sinks-mssqlserver |
795f5dfa2d483cf36f0f17299700d1a80ac8037e | src/NerdBank.GitVersioning/CloudBuildServices/GitHubActions.cs | src/NerdBank.GitVersioning/CloudBuildServices/GitHubActions.cs | namespace NerdBank.GitVersioning.CloudBuildServices
{
using System;
using System.Collections.Generic;
using System.IO;
using Nerdbank.GitVersioning;
internal class GitHubActions : ICloudBuild
{
public bool IsApplicable => Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true";
... | namespace NerdBank.GitVersioning.CloudBuildServices
{
using System;
using System.Collections.Generic;
using System.IO;
using Nerdbank.GitVersioning;
internal class GitHubActions : ICloudBuild
{
public bool IsApplicable => Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true";
... | Add Newline at String Start | Add Newline at String Start
| C# | mit | AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning,AArnott/Nerdbank.GitVersioning |
34b3e5c06c955737d3ce41c1d8a6548bbc867c2a | test/Openchain.SqlServer.Tests/SqlServerStorageEngineTests.cs | test/Openchain.SqlServer.Tests/SqlServerStorageEngineTests.cs | // 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... | // 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... | Make sure SQL Server tests don't run in parallel | Make sure SQL Server tests don't run in parallel
| C# | apache-2.0 | openchain/openchain |
a6a4628885b60981cb3d96d4d883e350ae15d2c3 | Dependencies/ScriptEngine.Roslyn/Roslyn/RoslynScriptGlobals.cs | Dependencies/ScriptEngine.Roslyn/Roslyn/RoslynScriptGlobals.cs | // 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Test2d;
namespace Test2d
{
/// <summ... | // 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Test2d;
namespace Test2d
{
/// <summ... | Use ShapeFactory as base class | Use ShapeFactory as base class
| C# | mit | Core2D/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D,wieslawsoltes/Core2D |
50202d3e47835138d79519bf51278285e37f6b68 | osu.Framework/Input/Handlers/Keyboard/Sdl2KeyboardHandler.cs | osu.Framework/Input/Handlers/Keyboard/Sdl2KeyboardHandler.cs | // 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.StateChanges;
using osu.Framework.Input.States;
using osu.Framework.Platform;
using osu.Framework.Statistics;
using Veldrid;
using TKKey = osuTK... | // 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.StateChanges;
using osu.Framework.Input.States;
using osu.Framework.Platform;
using osu.Framework.Statistics;
using Veldrid;
using TKKey = osuTK... | Abort key handling if SDL2 passes us an unknown key | Abort key handling if SDL2 passes us an unknown key
| C# | mit | EVAST9919/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,smoogipooo/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ppy/osu-framework |
bab454068c8805bc302a375e9ae3a6536493ff50 | CertiPay.Common.Notifications/Notifications/QueuedSender.cs | CertiPay.Common.Notifications/Notifications/QueuedSender.cs | using CertiPay.Common.Logging;
using CertiPay.Common.WorkQueue;
using System.Threading;
using System.Threading.Tasks;
namespace CertiPay.Common.Notifications
{
/// <summary>
/// Sends notifications to the background worker queue for async processing and retries
/// </summary>
public partial class Queu... | using CertiPay.Common.Logging;
using CertiPay.Common.WorkQueue;
using System.Threading;
using System.Threading.Tasks;
namespace CertiPay.Common.Notifications
{
/// <summary>
/// Sends notifications to the background worker queue for async processing and retries
/// </summary>
public partial class Queu... | Fix formatting on queued sender | :lipstick: Fix formatting on queued sender
| C# | mit | mattgwagner/CertiPay.Common |
072fbe5f6648a77584804f93f91ff01285c5075e | src/Atata.Tests/ControlTests.cs | src/Atata.Tests/ControlTests.cs | using NUnit.Framework;
namespace Atata.Tests
{
public class ControlTests : UITestFixture
{
[Test]
public void Control_DragAndDrop_UsingDragAndDropUsingScriptBehavior()
{
Go.To<DragAndDropPage>().
DropContainer.Items.Should.BeEmpty().
... | using NUnit.Framework;
namespace Atata.Tests
{
public class ControlTests : UITestFixture
{
[Test]
public void Control_DragAndDrop_UsingDomEvents()
{
Go.To<DragAndDropPage>().
DropContainer.Items.Should.BeEmpty().
DragItems.Items.Sh... | Rename Control_DragAndDrop_UsingDragAndDropUsingScriptBehavior test to Control_DragAndDrop_UsingDomEvents | Rename Control_DragAndDrop_UsingDragAndDropUsingScriptBehavior test to Control_DragAndDrop_UsingDomEvents
| C# | apache-2.0 | YevgeniyShunevych/Atata,atata-framework/atata,YevgeniyShunevych/Atata,atata-framework/atata |
a492810715bfac6200ca526ada9e241977de9575 | Src/TensorSharp/Operations/DivideIntegerIntegerOperation.cs | Src/TensorSharp/Operations/DivideIntegerIntegerOperation.cs | namespace TensorSharp.Operations
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class DivideIntegerIntegerOperation : IBinaryOperation<int, int, int>
{
public Tensor<int> Evaluate(Tensor<int> tensor1, Tensor<int> tensor2)
... | namespace TensorSharp.Operations
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class DivideIntegerIntegerOperation : IBinaryOperation<int, int, int>
{
public Tensor<int> Evaluate(Tensor<int> tensor1, Tensor<int> tensor2)
... | Refactor Divide Integers Operation to use GetValujes and CloneWithValues | Refactor Divide Integers Operation to use GetValujes and CloneWithValues
| C# | mit | ajlopez/TensorSharp |
2fc5004623e90dca345ccede6b57f3fd0afe60ae | Modules/AppBrix.Web.Client/Configuration/WebClientConfig.cs | Modules/AppBrix.Web.Client/Configuration/WebClientConfig.cs | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
using AppBrix.Configuration;
using System;
using System.Linq;
using System.Threading;
namespace AppBrix.Web.Client.Configuration
{
public sealed class WebCli... | // Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
//
using AppBrix.Configuration;
using System;
using System.Linq;
using System.Threading;
namespace AppBrix.Web.Client.Configuration
{
public sealed class WebCli... | Set max connections per server to 1024 by default. | Set max connections per server to 1024 by default.
| C# | mit | MarinAtanasov/AppBrix,MarinAtanasov/AppBrix.NetCore |
14bb602cef7e4a71d3e899a7160c22c5fd5c0a4c | src/Tools/ExternalAccess/Razor/RazorSpanMappingServiceWrapper.cs | src/Tools/ExternalAccess/Razor/RazorSpanMappingServiceWrapper.cs | // 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;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;
using S... | // 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;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;
using S... | Enable default mapped span results for Razor. | Enable default mapped span results for Razor.
- Default mapped span results are used to indicate that a dynamic file could not map a particular location. Prior to this change we'd always reconstruct the span mapping full-sale which would explode during mapping construction because null filepaths weren't allowed. There... | C# | mit | mgoertz-msft/roslyn,tmat/roslyn,ErikSchierboom/roslyn,KirillOsenkov/roslyn,weltkante/roslyn,AmadeusW/roslyn,KevinRansom/roslyn,KevinRansom/roslyn,tannergooding/roslyn,dotnet/roslyn,heejaechang/roslyn,physhi/roslyn,panopticoncentral/roslyn,sharwell/roslyn,panopticoncentral/roslyn,genlu/roslyn,tannergooding/roslyn,Kirill... |
53c7ca414865cb97c3773fe3d65e906f1abcec58 | source/NuGet.Lucene.Web/Controllers/PackagesODataController.cs | source/NuGet.Lucene.Web/Controllers/PackagesODataController.cs | using System.Linq;
using System.Web.Http;
using System.Web.Http.OData;
using NuGet.Lucene.Web.Models;
using NuGet.Lucene.Web.Util;
namespace NuGet.Lucene.Web.Controllers
{
/// <summary>
/// OData provider for Lucene based NuGet package repository.
/// </summary>
public class PackagesODataController : ... | using System.Linq;
using System.Net.Http;
using System.Web.Http;
using System.Web.Http.OData;
using NuGet.Lucene.Web.Models;
using NuGet.Lucene.Web.Util;
namespace NuGet.Lucene.Web.Controllers
{
/// <summary>
/// OData provider for Lucene based NuGet package repository.
/// </summary>
public class Pac... | Set more specific return type to enable application/atom+xml response formatting. | Set more specific return type to enable application/atom+xml response formatting.
| C# | apache-2.0 | Stift/NuGet.Lucene,googol/NuGet.Lucene,themotleyfool/NuGet.Lucene |
ad8aa65e8317ad22d8185226577a31e49e6c7416 | Framework/Lokad.Cqrs.Azure.Tests/BasicClientConfigurationTests.cs | Framework/Lokad.Cqrs.Azure.Tests/BasicClientConfigurationTests.cs | using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Threading;
using Lokad.Cqrs.Build.Client;
using Lokad.Cqrs.Build.Engine;
using Lokad.Cqrs.Core.Dispatch.Events;
using Microsoft.WindowsAzure;
using NUnit.Framework;
using System.Linq;
namespace Lokad.Cqrs
{
... | using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Threading;
using Lokad.Cqrs.Build.Client;
using Lokad.Cqrs.Build.Engine;
using Lokad.Cqrs.Core.Dispatch.Events;
using Microsoft.WindowsAzure;
using NUnit.Framework;
using System.Linq;
namespace Lokad.Cqrs
{
... | Correct basic client config test | Correct basic client config test
| C# | bsd-3-clause | modulexcite/lokad-cqrs |
c00f4511b4ece5e5cb420c4c79ec55b9fed0f3dd | Properties/VersionAssemblyInfo.cs | Properties/VersionAssemblyInfo.cs | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | Split WCF functionality out of Autofac.Extras.Multitenant into a separate assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned 3.1.0. | Split WCF functionality out of Autofac.Extras.Multitenant into a separate
assembly/package, Autofac.Extras.Multitenant.Wcf. Both packages are versioned
3.1.0.
| C# | mit | jango2015/Autofac.Configuration,autofac/Autofac.Configuration |
c5c75025c652b55db6dc1f660e5db43bcb918efd | Assets/BCP/Scripts/PlayMaker/SendBCPInputHighScoreComplete.cs | Assets/BCP/Scripts/PlayMaker/SendBCPInputHighScoreComplete.cs | using UnityEngine;
using System;
using HutongGames.PlayMaker;
using TooltipAttribute = HutongGames.PlayMaker.TooltipAttribute;
using BCP.SimpleJSON;
/// <summary>
/// Custom PlayMaker action for MPF that sends a Trigger BCP command to MPF.
/// </summary>
[ActionCategory("BCP")]
[Tooltip("Sends 'text_input_high_score_... | using UnityEngine;
using System;
using HutongGames.PlayMaker;
using TooltipAttribute = HutongGames.PlayMaker.TooltipAttribute;
using BCP.SimpleJSON;
/// <summary>
/// Custom PlayMaker action for MPF that sends a Trigger BCP command to MPF.
/// </summary>
[ActionCategory("BCP")]
[Tooltip("Sends 'text_input_high_score_... | Add Fsm variable for text/initials | Add Fsm variable for text/initials
| C# | mit | missionpinball/unity-bcp-server |
30c5c4e7b417045728b4089c61d7978da6fa89bf | Assets/Scripts/PointSource/AbstractPointSource.cs | Assets/Scripts/PointSource/AbstractPointSource.cs | using Nito;
using System.Collections;
using System.Net.NetworkInformation;
using UnityEngine;
namespace TrailAdvanced.PointSource {
public abstract class AbstractPointSource : MonoBehaviour {
public int maxPoints = 1000;
protected Deque<Vector3> points;
protected int minimumFreeCapacity = 10;
public Deque... | using Nito;
using System.Collections;
using System.Net.NetworkInformation;
using UnityEngine;
namespace TrailAdvanced.PointSource {
public abstract class AbstractPointSource : MonoBehaviour {
public int maxPoints = 1000;
protected Deque<Vector3> points;
protected int minimumFreeCapacity = 10;
public Deque... | Remove old points from back | Remove old points from back
| C# | mit | petereichinger/unity-trail-advanced |
09eaa0a9aa02439c53050d2fea9a95619ba1705d | Pigeon.Zipper/Pipelines/SetEmailSubject.cs | Pigeon.Zipper/Pipelines/SetEmailSubject.cs | namespace Pigeon.Pipelines
{
using System;
using Sitecore.Diagnostics;
public class SetEmailSubject:PigeonPipelineProcessor
{
public override void Process(PigeonPipelineArgs args)
{
Assert.IsNotNull(args,"args != null");
args.Subject = $"[Pigeon] {System.Web.Ho... | namespace Pigeon.Pipelines
{
using System;
using Sitecore.Diagnostics;
public class SetEmailSubject:PigeonPipelineProcessor
{
public override void Process(PigeonPipelineArgs args)
{
Assert.IsNotNull(args,"args != null");
args.Subject = $"[Pigeon] {System.Web.Ho... | Reduce the date size for the email subject | Reduce the date size for the email subject
| C# | mit | deeja/Pigeon |
30dde364ba71cb8e86a4521fb6a2d06e7c7888bf | QDMSServer/Windows/AddInstrumentInteractiveBrokersWindow.xaml.cs | QDMSServer/Windows/AddInstrumentInteractiveBrokersWindow.xaml.cs | // -----------------------------------------------------------------------
// <copyright file="AddInstrumentInteractiveBrokersWindow.xaml.cs" company="">
// Copyright 2016 Alexander Soffronow Pagonidis
// </copyright>
// -----------------------------------------------------------------------
using MahApps.Metro.Contr... | // -----------------------------------------------------------------------
// <copyright file="AddInstrumentInteractiveBrokersWindow.xaml.cs" company="">
// Copyright 2016 Alexander Soffronow Pagonidis
// </copyright>
// -----------------------------------------------------------------------
using MahApps.Metro.Contr... | Fix bug with IB instrument addition window | Fix bug with IB instrument addition window
| C# | bsd-3-clause | leo90skk/qdms,Jumaga2015/qdms,qusma/qdms,leo90skk/qdms,underwater/qdms,qusma/qdms,underwater/qdms |
fedc68bad2fb399a5c9a742cbcdfbcb2c626957a | StyleCop.Analyzers/StyleCop.Analyzers/Helpers/SpecializedTasks.cs | StyleCop.Analyzers/StyleCop.Analyzers/Helpers/SpecializedTasks.cs | namespace StyleCop.Analyzers.Helpers
{
using System.Threading.Tasks;
internal static class SpecializedTasks
{
internal static Task CompletedTask { get; } = Task.FromResult(default(VoidResult));
private sealed class VoidResult
{
private VoidResult()
{
... | namespace StyleCop.Analyzers.Helpers
{
using System.Threading.Tasks;
internal static class SpecializedTasks
{
internal static Task CompletedTask { get; } = Task.FromResult(default(VoidResult));
private struct VoidResult
{
}
}
}
| Simplify VoidResult to a value type | Simplify VoidResult to a value type
| C# | mit | DotNetAnalyzers/StyleCopAnalyzers |
52ba2fa75298ce27b6a2c9724b1f168b7c5f08c0 | InfiniMap/Map.cs | InfiniMap/Map.cs | using System;
using System.Collections.Generic;
namespace InfiniMap
{
public class Map
{
public IDictionary<Tuple<int, int>, Chunk> Chunks;
private int _chunkWidth;
private int _chunkHeight;
public Map(int chunkHeight, int chunkWidth)
{
_chunkHeight = chunk... | using System;
using System.Collections.Generic;
namespace InfiniMap
{
public class Map
{
public IDictionary<Tuple<int, int>, Chunk> Chunks;
private int _chunkWidth;
private int _chunkHeight;
public Map(int chunkHeight, int chunkWidth)
{
_chunkHeight = chunk... | Fix chunk loading for negative co-ordinates. | Fix chunk loading for negative co-ordinates.
A negative number divided by a negative number is negative, except
when it's an integer and rounds upwards.
Given the x co-ordinate of -64 and a chunkHeight of 128
-64 / 128 == 0
-64 / 128.0 == -0.5
Floor(-64/128.0) == -1
The fix is to floor a division by a floating poin... | C# | mit | LambdaSix/InfiniMap,LambdaSix/InfiniMap |
372010684d7d4dfa305f7e3e3cd56f9bda41ac79 | src/Orchard.Web/Modules/Orchard.MultiTenancy/Extensions/UrlHelperExtensions.cs | src/Orchard.Web/Modules/Orchard.MultiTenancy/Extensions/UrlHelperExtensions.cs | using System.Web.Mvc;
using Orchard.Environment.Configuration;
namespace Orchard.MultiTenancy.Extensions {
public static class UrlHelperExtensions {
public static string Tenant(this UrlHelper urlHelper, ShellSettings tenantShellSettings) {
return string.Format(
"http://{... | using System.Web.Mvc;
using Orchard.Environment.Configuration;
namespace Orchard.MultiTenancy.Extensions {
public static class UrlHelperExtensions {
public static string Tenant(this UrlHelper urlHelper, ShellSettings tenantShellSettings) {
//info: (heskew) might not keep the port inserti... | Change port of urls in multi tenant admin | Change port of urls in multi tenant admin
--HG--
branch : dev
| C# | bsd-3-clause | huoxudong125/Orchard,spraiin/Orchard,escofieldnaxos/Orchard,ericschultz/outercurve-orchard,AndreVolksdorf/Orchard,Codinlab/Orchard,jaraco/orchard,KeithRaven/Orchard,AndreVolksdorf/Orchard,jchenga/Orchard,alejandroaldana/Orchard,enspiral-dev-academy/Orchard,armanforghani/Orchard,geertdoornbos/Orchard,LaserSrl/Orchard,as... |
e94aa47040e874a14a350fc5b60606f0fc736d92 | src/DeepEquals/DeepComparison.cs | src/DeepEquals/DeepComparison.cs | namespace DeepEquals
{
using System.Collections;
public class DeepComparison
{
public static IEqualityComparer CreateComparer()
{
return new ComparisonComparer(Create());
}
public static CompositeComparison Create()
{
var root = new CompositeComparison();
root.AddRange(
new DefaultComparis... | namespace DeepEquals
{
using System.Collections;
public class DeepComparison
{
public static IEqualityComparer CreateComparer()
{
return new ComparisonComparer(Create());
}
public static CompositeComparison Create()
{
var root = new CompositeComparison();
root.AddRange(
new DefaultComparis... | Add SetComparison to the default build | Add SetComparison to the default build
| C# | mit | jamesfoster/DeepEqual |
5fc473e33c518b151135c8ce8f5673e62d4ebe45 | src/SparkPost/IRecipientLists.cs | src/SparkPost/IRecipientLists.cs | using System.Collections.Generic;
using System.Threading.Tasks;
namespace SparkPost
{
public interface IRecipientLists
{
/// <summary>
/// Creates a recipient list.
/// </summary>
/// <param name="recipientList">The properties of the recipientList to create.</param>
///... | using System.Collections.Generic;
using System.Threading.Tasks;
namespace SparkPost
{
public interface IRecipientLists
{
/// <summary>
/// Creates a recipient list.
/// </summary>
/// <param name="recipientList">The properties of the recipientList to create.</param>
///... | Update the docs here, too. | Update the docs here, too.
| C# | apache-2.0 | kirilsi/csharp-sparkpost,darrencauthon/csharp-sparkpost,darrencauthon/csharp-sparkpost,SparkPost/csharp-sparkpost,kirilsi/csharp-sparkpost |
ed0aa7f14ab30035ac2f7e642e59bb7061e57ed3 | src/Umbraco.Web.UI/Views/Partials/Grid/Editors/Embed.cshtml | src/Umbraco.Web.UI/Views/Partials/Grid/Editors/Embed.cshtml | @model dynamic
@using Umbraco.Web.Templates
@{
var embedValue = string.Empty;
try {
embedValue = Model.value.preview;
} catch(Exception ex) {
embedValue = Model.value;
}
}
<div class="video-wrapper">
@Html.Raw(embedValue)
</div>
| @model dynamic
@using Umbraco.Web.Templates
@{
string embedValue = Convert.ToString(Model.value);
embedValue = embedValue.DetectIsJson() ? Model.value.preview : Model.value;
}
<div class="video-wrapper">
@Html.Raw(embedValue)
</div>
| Use DetectIsJson string extension as opposed to a horrible try/catch | Use DetectIsJson string extension as opposed to a horrible try/catch
| C# | mit | robertjf/Umbraco-CMS,umbraco/Umbraco-CMS,arknu/Umbraco-CMS,robertjf/Umbraco-CMS,bjarnef/Umbraco-CMS,robertjf/Umbraco-CMS,madsoulswe/Umbraco-CMS,marcemarc/Umbraco-CMS,KevinJump/Umbraco-CMS,hfloyd/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,tcmorris/Umbraco-CMS,KevinJump/Umbraco-CMS,dawoe/Umbraco-CMS,leekelleh... |
b89486410113d4d8e45b30d6c64fff0ee150e5a2 | osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs | osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs | // 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.Diagnostics.CodeAnalysis;
namespace osu.Framework.Extensions.ObjectExtensions
{
/// <summary>
/// Extensions that apply to... | // 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.Diagnostics.CodeAnalysis;
using NUnit.Framework;
namespace osu.Framework.Extensions.ObjectExtensions
{
/// <summary>
/// E... | Fix `AsNonNull` not working on release configuration | Fix `AsNonNull` not working on release configuration
| C# | mit | ppy/osu-framework,peppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework |
3628797c73e26dae6e8070e88b0ebdd77e31068c | DapperTesting/Core/Data/IUserRepository.cs | DapperTesting/Core/Data/IUserRepository.cs | using System.Collections.Generic;
using DapperTesting.Core.Model;
namespace DapperTesting.Core.Data
{
public interface IUserRepository
{
void Create(User user);
void Delete(User user);
User Get(int id);
User Get(string email);
List<User> GetAll();
void Update(U... | using System.Collections.Generic;
using DapperTesting.Core.Model;
namespace DapperTesting.Core.Data
{
public interface IUserRepository
{
void Create(User user);
void Delete(int id);
User Get(int id);
User Get(string email);
List<User> GetAll();
void Update(User... | Update delete signature to use only id | Update delete signature to use only id
| C# | mit | tvanfosson/dapper-integration-testing |
c4a7383349dfe0c47c5ae18f7828f12113c389a5 | Assets/Editor/Alensia/Core/I18n/TranslatableTextPropertyDrawer.cs | Assets/Editor/Alensia/Core/I18n/TranslatableTextPropertyDrawer.cs | using UnityEditor;
using UnityEngine;
namespace Alensia.Core.I18n
{
[CustomPropertyDrawer(typeof(TranslatableText))]
public class TranslatableTextPropertyDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
var tex... | using UnityEditor;
using UnityEngine;
using static UnityEditor.EditorGUI;
namespace Alensia.Core.I18n
{
[CustomPropertyDrawer(typeof(TranslatableText))]
public class TranslatableTextPropertyDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent ... | Use static import for repeated EditorGUI.* calls | Use static import for repeated EditorGUI.* calls
| C# | apache-2.0 | mysticfall/Alensia |
6fd18d1cec8b3162a0e700ad8afefbf5e09de100 | OSVR-Unity/Assets/Editor/OSVRUnityBuild.cs | OSVR-Unity/Assets/Editor/OSVRUnityBuild.cs | using UnityEditor;
using System.Collections;
public class OSVRUnityBuild {
static void build() {
string[] assets = {
"Assets/OSVRUnity",
"Assets/Plugins"
};
AssetDatabase.ExportPackage(assets,
"OSVR-Unity.unitypackage",
ExportPackageOptions.Inc... | using UnityEditor;
using System.Collections;
public class OSVRUnityBuild {
static void build() {
string[] assets = {
"Assets/OSVRUnity",
"Assets/Plugins"
};
AssetDatabase.ExportPackage(assets,
"OSVR-Unity.unitypackage",
ExportPackageOptions.Inc... | Remove the second Unitypackage being generated, since it's now unneeded. | Remove the second Unitypackage being generated, since it's now unneeded.
| C# | apache-2.0 | grobm/OSVR-Unity,JeroMiya/OSVR-Unity,DuFF14/OSVR-Unity,grobm/OSVR-Unity,OSVR/OSVR-Unity |
dfe41f09118996474addae842da666f690e9c8b5 | Src/ImplicitNullability.Plugin.Tests/ZoneMarkerAndSetUpFixture.cs | Src/ImplicitNullability.Plugin.Tests/ZoneMarkerAndSetUpFixture.cs | using ImplicitNullability.Plugin.Tests;
using JetBrains.Application.BuildScript.Application.Zones;
using JetBrains.ReSharper.TestFramework;
using JetBrains.TestFramework;
using JetBrains.TestFramework.Application.Zones;
using NUnit.Framework;
[assembly: RequiresSTA]
namespace ImplicitNullability.Plugin.Tests
{
[... | using JetBrains.Application.BuildScript.Application.Zones;
using JetBrains.ReSharper.TestFramework;
using JetBrains.TestFramework;
using JetBrains.TestFramework.Application.Zones;
using NUnit.Framework;
[assembly: RequiresSTA]
namespace ImplicitNullability.Plugin.Tests
{
[ZoneDefinition]
public interface IIm... | Move TestEnvironmentSetUpFixture into project root namespace | Move TestEnvironmentSetUpFixture into project root namespace
| C# | mit | ulrichb/ImplicitNullability,ulrichb/ImplicitNullability,ulrichb/ImplicitNullability |
a20cd1413a2ef5b8d0881b164a973401e1d35da6 | test/Evolve.Core.Test.Driver/CoreReflectionBasedDriverTest.cs | test/Evolve.Core.Test.Driver/CoreReflectionBasedDriverTest.cs | using System.Data;
using System.Threading;
using Evolve.Driver;
using Xunit;
namespace Evolve.Core.Test.Driver
{
public class CoreReflectionBasedDriverTest
{
[Fact(DisplayName = "MicrosoftDataSqliteDriver_works")]
public void MicrosoftDataSqliteDriver_works()
{
var driver = ... | using System.Data;
using System.Threading;
using Evolve.Driver;
using Xunit;
namespace Evolve.Core.Test.Driver
{
public class CoreReflectionBasedDriverTest
{
[Fact(DisplayName = "MicrosoftDataSqliteDriver_works")]
public void MicrosoftDataSqliteDriver_works()
{
var driver = ... | Add a 60 sec pause before SQL Server connection | Add a 60 sec pause before SQL Server connection
| C# | mit | lecaillon/Evolve |
36e0410fb373a9a9cc84be3acdb0652524a33edf | Chronological/DataType.cs | Chronological/DataType.cs | using System;
using Newtonsoft.Json.Linq;
namespace Chronological
{
public class DataType
{
public string TimeSeriesInsightsType { get; }
internal DataType(string dataType)
{
TimeSeriesInsightsType = dataType;
}
internal JProperty ToJProperty()
{
... | using System;
using Newtonsoft.Json.Linq;
namespace Chronological
{
public class DataType
{
public string TimeSeriesInsightsType { get; }
internal DataType(string dataType)
{
TimeSeriesInsightsType = dataType;
}
internal JProperty ToJProperty()
{
... | Fix for nullable doubles in entities | Fix for nullable doubles in entities
| C# | mit | colethecoder/chronological |
548ac8a8dc7f483c1eb8903ce9daebecffe5613a | tests/cs/interface/Interface.cs | tests/cs/interface/Interface.cs | using System;
interface IFlyable
{
void Fly();
string Name { get; }
}
class Bird : IFlyable
{
public Bird() { }
public string Name => "Bird";
public void Fly()
{
Console.WriteLine("Chirp");
}
}
class Plane : IFlyable
{
public Plane() { }
public string Name => "Plane";
... | using System;
interface IFlyable
{
void Fly();
string Name { get; }
}
class Bird : IFlyable
{
public Bird()
{
Name = "Bird";
}
public string Name { get; private set; }
public void Fly()
{
Console.WriteLine("Chirp");
}
}
class Plane : IFlyable
{
public Plane()... | Make interface test more interesting | Make interface test more interesting
| C# | mit | jonathanvdc/ecsc |
7ec405f87e44b59fe825ec330d2abaafcdacefa0 | tooling/Microsoft.VisualStudio.BlazorExtension/Properties/AssemblyInfo.cs | tooling/Microsoft.VisualStudio.BlazorExtension/Properties/AssemblyInfo.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.VisualStudio.Shell;
// Add binding redirects for each assembly we ship in VS. This is required so that these assemblies show
// up in ... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.VisualStudio.Shell;
// Add binding redirects for each assembly we ship in VS. This is required so that these assemblies show
// up in ... | Update binding redirects for 0.3.0 builds | Update binding redirects for 0.3.0 builds
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
948dac8af429d91f9c6a6a6e491a2ce04fbf5443 | IronAHK/Debug.cs | IronAHK/Debug.cs | using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
namespace IronAHK
{
partial class Program
{
const bool debug =
#if DEBUG
true
#else
false
#endif
;
[Conditional("DEBUG"), DllImport("kernel32.dll")]
static extern void AllocConsole();
... | using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
namespace IronAHK
{
partial class Program
{
const bool debug =
#if DEBUG
true
#else
false
#endif
;
[Conditional("DEBUG"), DllImport("kernel32.dll")]
static extern void AllocConsole();
... | Use cross platform compatible paths for debug run. | Use cross platform compatible paths for debug run.
| C# | bsd-2-clause | polyethene/IronAHK,michaltakac/IronAHK,michaltakac/IronAHK,yatsek/IronAHK,michaltakac/IronAHK,yatsek/IronAHK,michaltakac/IronAHK,yatsek/IronAHK,yatsek/IronAHK,michaltakac/IronAHK,polyethene/IronAHK,polyethene/IronAHK,polyethene/IronAHK,yatsek/IronAHK |
c3bf6a0287c16682e71a750728c40cfc2a99b06f | osu.Game/Skinning/LegacyScoreCounter.cs | osu.Game/Skinning/LegacyScoreCounter.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Screens.Play.HUD;
using osuTK;
namespace osu.Game.Skinning
{... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Screens.Play.HUD;
using osuTK;
namespace osu.Game.Skinning
{
public class LegacyScoreCo... | Remove weird vestigial `Current` reimplementation | Remove weird vestigial `Current` reimplementation
Has no functional purpose anymore since the changes in the HUD element
data binding flow.
| C# | mit | smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,ppy/osu,UselessToucan/osu,peppy/osu-new,ppy/osu,peppy/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,UselessToucan/osu,smoogipooo/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu |
277e925239e7d9a27e977970f1d33b227dac4f73 | samples/Samples/Embedded/EntityFramework/FoafCore/IPerson.cs | samples/Samples/Embedded/EntityFramework/FoafCore/IPerson.cs | using System.Collections.Generic;
using BrightstarDB.EntityFramework;
namespace BrightstarDB.Samples.EntityFramework.FoafCore
{
[Entity("http://xmlns.com/foaf/0.1/Person")]
public interface IPerson
{
[Identifier("http://www.brightstardb.com/people/")]
string Id { get; }
[PropertyT... | using System.Collections.Generic;
using BrightstarDB.EntityFramework;
namespace BrightstarDB.Samples.EntityFramework.FoafCore
{
[Entity("http://xmlns.com/foaf/0.1/Person")]
public interface IPerson
{
[Identifier("http://www.brightstardb.com/people/")]
string Id { get; }
[PropertyT... | Use full URI rather than CURIE for property type | Use full URI rather than CURIE for property type
| C# | mit | BrightstarDB/BrightstarDB,BrightstarDB/BrightstarDB,BrightstarDB/BrightstarDB,BrightstarDB/BrightstarDB |
f0625fb55adff57e75e30d74dfd8cfc5156635cf | src/Nancy.Testing.Tests/BrowserResponseBodyWrapperFixture.cs | src/Nancy.Testing.Tests/BrowserResponseBodyWrapperFixture.cs | namespace Nancy.Testing.Tests
{
using System.IO;
using System.Linq;
using System.Text;
using Nancy;
using Nancy.Tests;
using Xunit;
public class BrowserResponseBodyWrapperFixture
{
[Fact]
public void Should_contain_response_body()
{
// ... | namespace Nancy.Testing.Tests
{
using System.IO;
using System.Linq;
using System.Text;
using Nancy;
using Nancy.Tests;
using Xunit;
public class BrowserResponseBodyWrapperFixture
{
[Fact]
public void Should_contain_response_body()
{
// ... | Test broken by QueryWrapper.ShouldContain issue | Test broken by QueryWrapper.ShouldContain issue
Due to the incorrect id value written to the stream, the QueryWrapper
could not find the element required, but ShouldContain was passing the
test anyway.
| C# | mit | Novakov/Nancy,EIrwin/Nancy,horsdal/Nancy,fly19890211/Nancy,AlexPuiu/Nancy,cgourlay/Nancy,khellang/Nancy,asbjornu/Nancy,phillip-haydon/Nancy,kekekeks/Nancy,phillip-haydon/Nancy,sloncho/Nancy,jongleur1983/Nancy,phillip-haydon/Nancy,jongleur1983/Nancy,tparnell8/Nancy,sroylance/Nancy,anton-gogolev/Nancy,AcklenAvenue/Nancy,... |
4a4bf7a546906a99ed4aacae09c197c69679adb7 | PortableExtensions.Testing/System.String/String.SubstringRightSafe.Test.cs | PortableExtensions.Testing/System.String/String.SubstringRightSafe.Test.cs | #region Using
using System;
using NUnit.Framework;
#endregion
namespace PortableExtensions.Testing
{
[TestFixture]
public partial class StringExTest
{
[TestCase]
public void SubstringRightSafeTestCase()
{
var actual = "testabc".SubstringRightSafe( 3 );
Ass... | #region Using
using System;
using NUnit.Framework;
#endregion
namespace PortableExtensions.Testing
{
[TestFixture]
public partial class StringExTest
{
[TestCase]
public void SubstringRightSafeTestCase()
{
var actual = "testabc".SubstringRightSafe( 3 );
Ass... | Add new test for String.SubstringRightSafe | Add new test for String.SubstringRightSafe
| C# | mit | DaveSenn/Extend |
eb95322b8596a92b5bb77d1330da4b881efb73ad | tests/jmespath.net.tests/Expressions/JmesPathSubExpressionTest.cs | tests/jmespath.net.tests/Expressions/JmesPathSubExpressionTest.cs | using Newtonsoft.Json.Linq;
using Xunit;
using DevLab.JmesPath.Expressions;
using DevLab.JmesPath.Utils;
namespace jmespath.net.tests.Expressions
{
public class JmesPathSubExpressionTest
{
[Fact]
public void JmesPathSubExpression_identifier()
{
const string json ... | using Newtonsoft.Json.Linq;
using Xunit;
using DevLab.JmesPath.Expressions;
using DevLab.JmesPath.Utils;
namespace jmespath.net.tests.Expressions
{
public class JmesPathSubExpressionTest
{
/*
* http://jmespath.org/specification.html#subexpressions
*
* search(foo.... | Change - Consolidated sub-expressions unit-tests. | Change - Consolidated sub-expressions unit-tests.
| C# | apache-2.0 | jdevillard/JmesPath.Net |
76260e5d58f2bea558810ee261c208dab9cb1b51 | WalletWasabi/Crypto/Extensions.cs | WalletWasabi/Crypto/Extensions.cs | using System.Collections.Generic;
using WalletWasabi.Crypto.Groups;
namespace System.Linq
{
public static class Extensions
{
public static GroupElement Sum(this IEnumerable<GroupElement> groupElements) =>
groupElements.Aggregate(GroupElement.Infinity, (ge, acc) => ge + acc);
}
}
| using System.Collections.Generic;
using WalletWasabi.Helpers;
using WalletWasabi.Crypto.Groups;
namespace System.Linq
{
public static class Extensions
{
public static GroupElement Sum(this IEnumerable<GroupElement> groupElements) =>
groupElements.Aggregate(GroupElement.Infinity, (ge, acc) => ge + acc);
publi... | Add triple variant of Zip as IEnumerable<> extension | Add triple variant of Zip as IEnumerable<> extension
Co-Authored-By: lontivero <2c08b3ef3b969de06ed74d5e6afdb1b168de30c3@gmail.com>
| C# | mit | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet |
577c057ce4f5a37ad161bd3cfa8de5c55e64e3fb | src/Catel.BenchmarkCombiner/Models/Extensions/MeasurementGroupExtensions.cs | src/Catel.BenchmarkCombiner/Models/Extensions/MeasurementGroupExtensions.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="MeasurementGroupExtensions.cs" company="Catel development team">
// Copyright (c) 2008 - 2016 Catel development team. All rights reserved.
// </copyright>
// -------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="MeasurementGroupExtensions.cs" company="Catel development team">
// Copyright (c) 2008 - 2016 Catel development team. All rights reserved.
// </copyright>
// -------------------... | Fix Slowest() and Fastest() extension methods | Fix Slowest() and Fastest() extension methods
| C# | mit | Catel/Catel.Benchmarks |
001f5a59f521433bd20fc0bde9bfaac5b7e077cc | Joey/UI/Fragments/RecentTimeEntriesListFragment.cs | Joey/UI/Fragments/RecentTimeEntriesListFragment.cs | using System;
using System.Linq;
using Android.OS;
using Android.Util;
using Android.Views;
using Android.Widget;
using Toggl.Joey.UI.Adapters;
using ListFragment = Android.Support.V4.App.ListFragment;
namespace Toggl.Joey.UI.Fragments
{
public class RecentTimeEntriesListFragment : ListFragment
{
publ... | using System;
using System.Linq;
using Android.OS;
using Android.Util;
using Android.Views;
using Android.Widget;
using Toggl.Joey.UI.Adapters;
using ListFragment = Android.Support.V4.App.ListFragment;
namespace Toggl.Joey.UI.Fragments
{
public class RecentTimeEntriesListFragment : ListFragment
{
publ... | Fix model position translation for header views. | Fix model position translation for header views.
| C# | bsd-3-clause | ZhangLeiCharles/mobile,eatskolnikov/mobile,ZhangLeiCharles/mobile,eatskolnikov/mobile,masterrr/mobile,masterrr/mobile,eatskolnikov/mobile,peeedge/mobile,peeedge/mobile |
9bea5791efcfaec68758609fe45abd9c46fbd942 | AzureStorage/Queue/AzureQueue.cs | AzureStorage/Queue/AzureQueue.cs | using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Queue;
namespace AzureStorage.Queue
{
public class AzureQueue<T> : IAzureQueue<T> where T : class
{
private readonly CloudQueue _queue;
public AzureQueue(string conectionString, string qu... | using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Queue;
namespace AzureStorage.Queue
{
public class AzureQueue<T> : IAzureQueue<T> where T : class
{
private readonly CloudQueue _queue;
public AzureQueue(string conectionString, string qu... | Change putMessage function to prevent double serialization. | Change putMessage function to prevent double serialization.
| C# | mit | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform |
e9cb3337b31e39372f3905405366d45d3372bded | osu.Game.Rulesets.Osu/Objects/Drawables/Pieces/NumberPiece.cs | osu.Game.Rulesets.Osu/Objects/Drawables/Pieces/NumberPiece.cs | // 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.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Effects;
using osu.G... | // 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.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Effects;
using osu.G... | Fix 1x1 white pixel appearing in the centre of hitcircles on default skin | Fix 1x1 white pixel appearing in the centre of hitcircles on default skin
| C# | mit | EVAST9919/osu,2yangk23/osu,peppy/osu,ppy/osu,2yangk23/osu,UselessToucan/osu,johnneijzen/osu,NeoAdonis/osu,EVAST9919/osu,smoogipoo/osu,peppy/osu,ppy/osu,smoogipooo/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,johnneijzen/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu-new |
d667d4eb93e22d1f76c3d712cdfe45ceef9fff1d | Bonobo.Git.Server/UsernameUrl.cs | Bonobo.Git.Server/UsernameUrl.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
namespace Bonobo.Git.Server
{
public class UsernameUrl
{
//to allow support for email addresses as user names, only encode/decode user name if it is no... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
namespace Bonobo.Git.Server
{
public class UsernameUrl
{
//to allow support for email addresses as user names, only encode/decode user name if it is no... | Fix bug with edit/view non-domain users with enabled domain integration | Fix bug with edit/view non-domain users with enabled domain integration
| C# | mit | KiritoStudio/Bonobo-Git-Server,KiritoStudio/Bonobo-Git-Server,crowar/Bonobo-Git-Server,NipponSysits/IIS.Git-Connector,hakim89/Bonobo-Git-Server,Ollienator/Bonobo-Git-Server,Acute-sales-ltd/Bonobo-Git-Server,igoryok-zp/Bonobo-Git-Server,lkho/Bonobo-Git-Server,anyeloamt1/Bonobo-Git-Server,Acute-sales-ltd/Bonobo-Git-Serve... |
b4986225d578d0f2e546a72fb70e9c2772470c12 | JustPressPlay/JustPressPlay/Views/Admin/ManageUserCards.cshtml | JustPressPlay/JustPressPlay/Views/Admin/ManageUserCards.cshtml | @{
ViewBag.Title = "ManageUserCards";
}
@model JustPressPlay.ViewModels.ManageUserCardsViewModel
<div id="adminBody">
<div class="row wide">
<div class="large-3 columns">
@{ Html.RenderPartial("_AdminNavigation"); }
</div>
<div class="large-9 columns">
<d... | @{
ViewBag.Title = "ManageUserCards";
}
@model JustPressPlay.ViewModels.ManageUserCardsViewModel
<div id="adminBody">
<div class="row wide">
<div class="large-3 columns">
@{ Html.RenderPartial("_AdminNavigation"); }
</div>
<div class="large-9 columns">
<d... | Manage User Cards is now in a nice table | Manage User Cards is now in a nice table
| C# | apache-2.0 | RIT-MAGIC/JustPressPlay,RIT-MAGIC/JustPressPlay |
7910e4c04c9f576739c862cdb23a9a2692ad8370 | TitanTest/ShareCodeDecoderTest.cs | TitanTest/ShareCodeDecoderTest.cs | using Titan.Sharecode;
using Xunit;
namespace TitanTest
{
public class ShareCodeDecoderTest
{
[Fact]
public void TestDecoder()
{
if(ShareCode.Decode("CSGO-727c4-5oCG3-PurVX-sJkdn-LsXfE").MatchID == 3208347562318757960)
{
Assert.True(true, "The d... | using Titan.MatchID.Sharecode;
using Xunit;
namespace TitanTest
{
public class ShareCodeDecoderTest
{
[Fact]
public void TestDecoder()
{
if(ShareCode.Decode("CSGO-727c4-5oCG3-PurVX-sJkdn-LsXfE").MatchID == 3208347562318757960)
{
Assert.True(true... | Fix wrong namespace beeing used in TitanTest | Fix wrong namespace beeing used in TitanTest
| C# | mit | Marc3842h/Titan,Marc3842h/Titan,Marc3842h/Titan |
4dc99f2846e92e89d332c7c509776a6ca9226445 | src/Eurofurence.App.Server.Services/Lassie/LassieApiClient.cs | src/Eurofurence.App.Server.Services/Lassie/LassieApiClient.cs | using Eurofurence.App.Server.Services.Abstractions.Lassie;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
namespace Eurofurence.App.Server.Services.Lassie
{
public class LassieApiClient : ILassieApiClient
{
private class DataResponseWrappe... | using Eurofurence.App.Server.Services.Abstractions.Lassie;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
namespace Eurofurence.App.Server.Services.Lassie
{
public class LassieApiClient : ILassieApiClient
{
private class DataResponseWrappe... | Handle "null" data values from Lassie API | Handle "null" data values from Lassie API
| C# | mit | eurofurence/ef-app_backend-dotnet-core,eurofurence/ef-app_backend-dotnet-core |
93b616af6fb208715016869c28ada5a953d70471 | Source/Tests/TraktApiSharp.Tests/Enums/TraktAccessTokenGrantTypeTests.cs | Source/Tests/TraktApiSharp.Tests/Enums/TraktAccessTokenGrantTypeTests.cs | namespace TraktApiSharp.Tests.Enums
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TraktApiSharp.Enums;
[TestClass]
public class TraktAccessTokenGrantTypeTests
{
[TestMethod]
public void TestTraktAccessTokenGrantTypeHasMembers()
{
... | namespace TraktApiSharp.Tests.Enums
{
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
using TraktApiSharp.Enums;
[TestClass]
public class TraktAccessTokenGrantTypeTests
{
class TestObject
{
[JsonConverter(typeof... | Add unit tests for enum access token grant type read and write. | Add unit tests for enum access token grant type read and write.
| C# | mit | henrikfroehling/TraktApiSharp |
8f4bea432e0e32739faa073b5b10860339dd05df | src/NServiceMVC.Examples.HelloWorld/Controllers/ArraySampleController.cs | src/NServiceMVC.Examples.HelloWorld/Controllers/ArraySampleController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AttributeRouting;
namespace NServiceMVC.Examples.HelloWorld.Controllers
{
public class ArraySampleController : ServiceController
{
//
// GET: /ArraySample/
[G... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AttributeRouting;
namespace NServiceMVC.Examples.HelloWorld.Controllers
{
public class ArraySampleController : ServiceController
{
//
// GET: /ArraySample/
[G... | Add more complex array test to hello app | Add more complex array test to hello app
| C# | mit | gregmac/NServiceMVC,gregmac/NServiceMVC,gregmac/NServiceMVC,ManuelRin/NServiceMVC,ManuelRin/NServiceMVC |
1eefe32c8c0797b6351b6ac78a9903c9851001d9 | src/NTwitch.Rest/TwitchRestClientConfig.cs | src/NTwitch.Rest/TwitchRestClientConfig.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Twitch.Rest
{
public class TwitchRestClientConfig
{
public string BaseUrl { get; set; } = "https://api.twitch.tv/kraken/";
public uint ClientId { get; set; }
}
}
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace NTwitch.Rest
{
public class TwitchRestClientConfig
{
public string BaseUrl { get; set; } = "https://api.twitch.tv/kraken/";
}
}
| Remove ClientId option from RestConfig | Remove ClientId option from RestConfig
| C# | mit | Aux/NTwitch,Aux/NTwitch |
a782904b23ba42cf19a84a83e5e5d9c2560d48e1 | test/Microsoft.TemplateEngine.Cli.UnitTests/PrecedenceSelectionTests.cs | test/Microsoft.TemplateEngine.Cli.UnitTests/PrecedenceSelectionTests.cs | using Xunit;
namespace Microsoft.TemplateEngine.Cli.UnitTests
{
public class PrecedenceSelectionTests : EndToEndTestBase
{
[Theory(DisplayName = nameof(VerifyTemplateContent))]
[InlineData("mvc", "MvcNoAuthTest.json", "MvcFramework20Test.json")]
[InlineData("mvc -au individual", "MvcInd... | using Xunit;
namespace Microsoft.TemplateEngine.Cli.UnitTests
{
public class PrecedenceSelectionTests : EndToEndTestBase
{
[Theory(DisplayName = nameof(VerifyTemplateContent))]
[InlineData("mvc -f netcoreapp2.0", "MvcNoAuthTest.json", "MvcFramework20Test.json")]
[InlineData("mvc -au ind... | Make the MVC content verification test explicitly pass the framework | Make the MVC content verification test explicitly pass the framework
| C# | mit | mlorbetske/templating,mlorbetske/templating,seancpeters/templating,seancpeters/templating,seancpeters/templating,seancpeters/templating |
28f6a5ce8e2ee72eb1620b81644f6470cacb5a2d | AggregateMetrics/AggregateMetrics/MetricTelemetryExtensions.cs | AggregateMetrics/AggregateMetrics/MetricTelemetryExtensions.cs | namespace Microsoft.ApplicationInsights.Extensibility.AggregateMetrics
{
using System.Globalization;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility.Implementation;
internal static class MetricTelemetryExtensions
{
internal static void ... | namespace Microsoft.ApplicationInsights.Extensibility.AggregateMetrics
{
using System.Globalization;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility.Implementation;
internal static class MetricTelemetryExtensions
{
internal static void ... | Fix bug where property names were always named the p1 name. | Fix bug where property names were always named the p1 name.
| C# | mit | Microsoft/ApplicationInsights-SDK-Labs,frackleton/ApplicationInsights-SDK-Labs |
5a6c1baf7463e85cb4c2e8344a518aeda94de600 | ClosedXML_Tests/Excel/Saving/SavingTests.cs | ClosedXML_Tests/Excel/Saving/SavingTests.cs | using ClosedXML.Excel;
using NUnit.Framework;
using System.IO;
namespace ClosedXML_Tests.Excel.Saving
{
[TestFixture]
public class SavingTests
{
[Test]
public void CanSuccessfullySaveFileMultipleTimes()
{
using (var wb = new XLWorkbook())
{
v... | using ClosedXML.Excel;
using NUnit.Framework;
using System.Globalization;
using System.IO;
using System.Threading;
namespace ClosedXML_Tests.Excel.Saving
{
[TestFixture]
public class SavingTests
{
[Test]
public void CanSuccessfullySaveFileMultipleTimes()
{
using (var wb... | Add unit test to save and VALIDATE file in given non-en-US culture. | Add unit test to save and VALIDATE file in given non-en-US culture.
| C# | mit | jongleur1983/ClosedXML,JavierJJJ/ClosedXML,ClosedXML/ClosedXML,igitur/ClosedXML,b0bi79/ClosedXML,clinchergt/ClosedXML |
86aa3b1cf425756873d1b25b3283415b3363c4cb | Assets/Microgames/DatingSim/Scripts/DatingSimDialogueController.cs | Assets/Microgames/DatingSim/Scripts/DatingSimDialogueController.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class DatingSimDialogueController : MonoBehaviour
{
public float introTextDelay;
[Tooltip("If set to >0 will slow down or speed up text advance to complete it in this time")]
public float introTextForceCompl... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class DatingSimDialogueController : MonoBehaviour
{
public float introTextDelay;
[Tooltip("If set to >0 will slow down or speed up text advance to complete it in this time")]
public float introTextForceCompl... | Fix font not loading in initial dialogue | DatingSim: Fix font not loading in initial dialogue
| C# | mit | Barleytree/NitoriWare,NitorInc/NitoriWare,Barleytree/NitoriWare,NitorInc/NitoriWare |
84fa6e0abf1c015e1a657a5aee89e52fcc067600 | SimControl.Reactive/StateMachineObserver.cs | SimControl.Reactive/StateMachineObserver.cs | // Copyright (c) SimControl e.U. - Wilhelm Medetz. See LICENSE.txt in the project root for more information.
#if false
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
// TODO: CR
namespace SimControl.Reactive
{
//public class ObservedState: INo... | // Copyright (c) SimControl e.U. - Wilhelm Medetz. See LICENSE.txt in the project root for more information.
#if false
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
// TODO: CR
namespace SimControl.Reactive
{
//public class ObservedState: INo... | Convert to new Visual Studio project types | Convert to new Visual Studio project types
| C# | mit | SimControl/SimControl.Reactive |
f0e91ba43188c7cc3f7a0e660c13477551082f71 | osu.Game.Tests/Visual/Multiplayer/TestSceneOverlinedPlaylist.cs | osu.Game.Tests/Visual/Multiplayer/TestSceneOverlinedPlaylist.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Game.Online.Multiplayer;
using osu.Game.Rulesets.Osu;
using osu.Game.Screens.Multi;
using osu.Game.Tests.Be... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Game.Online.Multiplayer;
using osu.Game.Rulesets.Osu;
using osu.Game.Screens.Multi;
using osu.Game.Tests.Be... | Fix overlined playlist test scene not working | Fix overlined playlist test scene not working
| C# | mit | smoogipoo/osu,ppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,peppy/osu,NeoAdonis/osu,UselessToucan/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu,peppy/osu-new,ppy/osu |
89b8977f7daf4c0f44dc6540e814a4d693c87041 | Browser/Adapters/CefSchemeResourceVisitor.cs | Browser/Adapters/CefSchemeResourceVisitor.cs | using System.IO;
using System.Net;
using System.Text;
using CefSharp;
using TweetLib.Browser.Interfaces;
using TweetLib.Browser.Request;
namespace TweetDuck.Browser.Adapters {
internal sealed class CefSchemeResourceVisitor : ISchemeResourceVisitor<IResourceHandler> {
public static CefSchemeResourceVisitor Instance ... | using System;
using System.IO;
using System.Net;
using CefSharp;
using TweetLib.Browser.Interfaces;
using TweetLib.Browser.Request;
namespace TweetDuck.Browser.Adapters {
internal sealed class CefSchemeResourceVisitor : ISchemeResourceVisitor<IResourceHandler> {
public static CefSchemeResourceVisitor Instance { get... | Fix not setting custom scheme response status text correctly | Fix not setting custom scheme response status text correctly
| C# | mit | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck |
a2d95cb8f78d38a1ffccbf4b200bfee74b6b0a20 | CQRS.Light.Core/JsonSerializationStrategy.cs | CQRS.Light.Core/JsonSerializationStrategy.cs | using System;
using CQRS.Light.Contracts;
using Newtonsoft.Json;
namespace CQRS.Light.Core
{
public class JsonSerializationStrategy : ISerializationStrategy
{
public string Serialize(object @object)
{
return JsonConvert.SerializeObject(@object);
}
public object Des... | using System;
using CQRS.Light.Contracts;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace CQRS.Light.Core
{
public class JsonSerializationStrategy : ISerializationStrategy
{
private readonly JsonSeriali... | Fix for Deserialization of complex objects | Fix for Deserialization of complex objects
| C# | mit | wallaceiam/CQRS.Light,wallaceiam/CQRS.Light,wallaceiam/CQRS.Light,wallaceiam/DDD.Light |
b4417e3bd6275b84e188cbe438ba6e9c50bbe95a | src/Markup/Perspex.Markup.Xaml/Converters/BitmapTypeConverter.cs | src/Markup/Perspex.Markup.Xaml/Converters/BitmapTypeConverter.cs | // 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.Globalization;
using OmniXaml.TypeConversion;
using Perspex.Media.Imaging;
namespace Perspex.Markup.Xaml.Converters
{
publi... | // 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.Globalization;
using OmniXaml.TypeConversion;
using Perspex.Media.Imaging;
using Perspex.Platform;
namespace Perspex.Markup.Xam... | Support loading bitmaps from resources. | Support loading bitmaps from resources.
Closes #358.
| C# | mit | SuperJMN/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,punker76/Perspex,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,MrDaedra/Avalonia,MrDaedra/Avalonia,jazzay/Perspex,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,OronDF... |
5bba8c6053361348ece9abe262aeb677ff1e7854 | examples/NetCore2/ConsoleExample/Program.cs | examples/NetCore2/ConsoleExample/Program.cs | using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using NLog.Extensions.Logging;
namespace ConsoleExample
{
class Program
{
static void Main(string[] args)
{
var servicesProvider = BuildDi();
var runner = servicesProvider.... | using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using NLog.Extensions.Logging;
namespace ConsoleExample
{
class Program
{
static void Main(string[] args)
{
var servicesProvider = BuildDi();
var runner = servicesProvider.... | Update NetCore2 ConsoleExample with LogManager.Shutdown() | Update NetCore2 ConsoleExample with LogManager.Shutdown()
| C# | bsd-2-clause | NLog/NLog.Framework.Logging,NLog/NLog.Framework.Logging,NLog/NLog.Extensions.Logging |
de7ea3af01c7fcdb44f207588a56c6efdd9ed075 | OSVRUnreal/Plugins/OSVR/Source/OSVRClientKit/OSVRClientKit.Build.cs | OSVRUnreal/Plugins/OSVR/Source/OSVRClientKit/OSVRClientKit.Build.cs | using UnrealBuildTool;
using System.IO;
public class OSVRClientKit : ModuleRules
{
private string ModulePath
{
get { return Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name)); }
}
public OSVRClientKit(TargetInfo Target)
{
Type = ModuleType.Ext... | using UnrealBuildTool;
using System.IO;
public class OSVRClientKit : ModuleRules
{
private string ModulePath
{
get { return Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name)); }
}
public OSVRClientKit(TargetInfo Target)
{
Type = ModuleType.Ext... | Use new "RuntimeDependencies" UBT feature to get our DLLs in place. | Use new "RuntimeDependencies" UBT feature to get our DLLs in place.
| C# | apache-2.0 | OSVR/OSVR-Unreal,OSVR/OSVR-Unreal,OSVR/OSVR-Unreal,OSVR/OSVR-Unreal |
5d768c136655c81ebba8387ef50295abde521571 | Source/Lib/TraktApiSharp/Objects/Basic/TraktPaginationListResult.cs | Source/Lib/TraktApiSharp/Objects/Basic/TraktPaginationListResult.cs | namespace TraktApiSharp.Objects.Basic
{
using System.Collections.Generic;
public class TraktPaginationListResult<ListItem>
{
public IEnumerable<ListItem> Items { get; set; }
public int? Page { get; set; }
public int? Limit { get; set; }
public int? PageCount { get; set; ... | namespace TraktApiSharp.Objects.Basic
{
using System.Collections.Generic;
/// <summary>
/// Represents results of requests supporting pagination.<para />
/// Contains the current page, the item limitation per page, the total page count, the total item count
/// and can also contain the total user ... | Add documentation for pagination list results. | Add documentation for pagination list results.
| C# | mit | henrikfroehling/TraktApiSharp |
41078384e6c92418e61242dd8d5ce2083f0eec63 | tests/Nether.Web.IntegrationTests/Identity/UserApiTests.cs | tests/Nether.Web.IntegrationTests/Identity/UserApiTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Xunit;
namespace Nether.Web.IntegrationTests.Identity
{
public class UserApiTests : WebTestBase
{
private HttpClient _client;
//[Fact]
//publ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Xunit;
namespace Nether.Web.IntegrationTests.Identity
{
public class UserApiTests : WebTestBase
{
private HttpClient _client;
[Fact]
public a... | Add Initial User API tests | Add Initial User API tests
| C# | mit | navalev/nether,stuartleeks/nether,oliviak/nether,vflorusso/nether,navalev/nether,stuartleeks/nether,ankodu/nether,ankodu/nether,navalev/nether,MicrosoftDX/nether,brentstineman/nether,stuartleeks/nether,vflorusso/nether,ankodu/nether,stuartleeks/nether,brentstineman/nether,ankodu/nether,brentstineman/nether,krist00fer/n... |
679aa2165dbb8f39434d985de8595301c8f65b8f | NadekoBot.Core/Modules/Games/Common/Trivia/TriviaOptions.cs | NadekoBot.Core/Modules/Games/Common/Trivia/TriviaOptions.cs | using CommandLine;
using NadekoBot.Core.Common;
namespace NadekoBot.Core.Modules.Games.Common.Trivia
{
public class TriviaOptions : INadekoCommandOptions
{
[Option('p', "pokemon", Required = false, Default = false, HelpText = "Whether it's 'Who's that pokemon?' trivia.")]
public bool IsPokemon... | using CommandLine;
using NadekoBot.Core.Common;
namespace NadekoBot.Core.Modules.Games.Common.Trivia
{
public class TriviaOptions : INadekoCommandOptions
{
[Option('p', "pokemon", Required = false, Default = false, HelpText = "Whether it's 'Who's that pokemon?' trivia.")]
public bool IsPokemon... | Set default trivia timeout to match help text. | Set default trivia timeout to match help text. | C# | mit | Nielk1/NadekoBot,ShadowNoire/NadekoBot,ScarletKuro/NadekoBot |
0602f5448bc19f206212516a456836521947ae23 | src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs | src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs | namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;
public class PaymentIntentCreateOptions : PaymentIntentSharedOptions
{
[JsonProperty("capture_method")]
public string CaptureMethod { get; set; }
[JsonProperty("confirm")]
public bool? Confirm {... | namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;
public class PaymentIntentCreateOptions : PaymentIntentSharedOptions
{
[JsonProperty("capture_method")]
public string CaptureMethod { get; set; }
[JsonProperty("confirm")]
public bool? Confirm {... | Add support for `confirmation_method` on `PaymentIntent` | Add support for `confirmation_method` on `PaymentIntent`
| C# | apache-2.0 | stripe/stripe-dotnet,richardlawley/stripe.net |
82717f2441bb3f081d0f29d8802efebbdb1a1e53 | Source/Orleankka.Runtime/Cluster/ServiceCollectionExtensions.cs | Source/Orleankka.Runtime/Cluster/ServiceCollectionExtensions.cs | using System;
using System.Linq;
namespace Orleankka.Cluster
{
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
static class ServiceCollectionExtensions
{
public static void Decorate<T>(this IServiceCollection services, Func<T, T> deco... | using System;
using System.Linq;
namespace Orleankka.Cluster
{
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
static class ServiceCollectionExtensions
{
public static void Decorate<T>(this IServiceCollection services, Func<T, T> deco... | Fix bug when pre-registered activator is instance | Fix bug when pre-registered activator is instance
| C# | apache-2.0 | OrleansContrib/Orleankka,OrleansContrib/Orleankka,mhertis/Orleankka,mhertis/Orleankka |
57c79ced2f70579662a229052f22012472cec015 | src/Humanizer/ByteSizeExtensions.cs | src/Humanizer/ByteSizeExtensions.cs | using Humanizer.Bytes;
namespace Humanizer
{
public static class ByteSizeExtensions
{
public static ByteSize Bits(this long val)
{
return ByteSize.FromBits(val);
}
public static ByteSize Bytes(this double val)
{
return ByteSize.FromBytes(val);
... | using Humanizer.Bytes;
namespace Humanizer
{
public static class ByteSizeExtensions
{
/// <summary>
/// Use value as a quantity of bits
/// </summary>
/// <param name="val"></param>
/// <returns></returns>
public static ByteSize Bits(this long val)
{
... | Add XML docs + remove code todo | Add XML docs + remove code todo
| C# | mit | HalidCisse/Humanizer,mexx/Humanizer,schalpat/Humanizer,thunsaker/Humanizer,hazzik/Humanizer,micdenny/Humanizer,nigel-sampson/Humanizer,llehouerou/Humanizer,kikoanis/Humanizer,jaxx-rep/Humanizer,mexx/Humanizer,micdenny/Humanizer,preetksingh80/Humanizer,henriksen/Humanizer,aloisdg/Humanizer,mrchief/Humanizer,CodeFromJord... |
7ba533b7a4a47cf7b2d61b4453b1cd329e7fef51 | osu.Game.Rulesets.Mania/UI/ManiaPlayfieldAdjustmentContainer.cs | osu.Game.Rulesets.Mania/UI/ManiaPlayfieldAdjustmentContainer.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Game.Rulesets.UI;
using osuTK;
namespace osu.Game.Rulesets.Mania.UI
{
public class ManiaPlayfieldAdjustmentContainer : Playfi... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Game.Rulesets.UI;
namespace osu.Game.Rulesets.Mania.UI
{
public class ManiaPlayfieldAdjustmentContainer : PlayfieldAdjustment... | Expand mania to fit vertical screen bounds | Expand mania to fit vertical screen bounds
| C# | mit | ppy/osu,NeoAdonis/osu,NeoAdonis/osu,smoogipooo/osu,NeoAdonis/osu,peppy/osu,UselessToucan/osu,ppy/osu,peppy/osu-new,ppy/osu,EVAST9919/osu,smoogipoo/osu,EVAST9919/osu,peppy/osu,peppy/osu,UselessToucan/osu,smoogipoo/osu,UselessToucan/osu,smoogipoo/osu |
30111d07946f7e41e465eca267beb82d3765531c | WebSocket.Portable/WebSocket.Portable/Internal/DataLayerExtensions.cs | WebSocket.Portable/WebSocket.Portable/Internal/DataLayerExtensions.cs | using System;
using System.Threading;
using System.Threading.Tasks;
using WebSocket.Portable.Interfaces;
namespace WebSocket.Portable.Internal
{
internal static class DataLayerExtensions
{
public static Task<byte[]> ReadAsync(this IDataLayer layer, int length, CancellationToken cancellationToken)
... | using System.Threading;
using System.Threading.Tasks;
using WebSocket.Portable.Interfaces;
namespace WebSocket.Portable.Internal
{
internal static class DataLayerExtensions
{
public static Task<byte[]> ReadAsync(this IDataLayer layer, int length, CancellationToken cancellationToken)
{
... | Read data from underlying stream in chunks if it does not return everything to us in one go. | Read data from underlying stream in chunks if it does not return everything to us in one go.
| C# | apache-2.0 | NVentimiglia/WebSocket.Portable |
904a7e7a12cd7e703b5d128ec738ac216597a04f | WootzJs.Runtime/Runtime/WootzJs/JsRegExp.cs | WootzJs.Runtime/Runtime/WootzJs/JsRegExp.cs | #region License
//-----------------------------------------------------------------------
// <copyright>
// The MIT License (MIT)
//
// Copyright (c) 2014 Kirk S Woll
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Softwar... | #region License
//-----------------------------------------------------------------------
// <copyright>
// The MIT License (MIT)
//
// Copyright (c) 2014 Kirk S Woll
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Softwar... | Add exec method to js regexp | Add exec method to js regexp
| C# | mit | kswoll/WootzJs,x335/WootzJs,kswoll/WootzJs,x335/WootzJs,kswoll/WootzJs,x335/WootzJs |
85949867ecb0a3140c75ed9a541241d447c1ef9f | Moya/Utility/Guard.cs | Moya/Utility/Guard.cs | namespace Moya.Utility
{
using System;
using Exceptions;
using Extensions;
using Runners;
public class Guard
{
public static void IsMoyaAttribute(Type type)
{
if (!Reflection.TypeIsMoyaAttribute(type))
{
throw new MoyaException("{0} is no... | namespace Moya.Utility
{
using System;
using Exceptions;
using Extensions;
using Runners;
public class Guard
{
public static void IsMoyaAttribute(Type type)
{
if (!Reflection.TypeIsMoyaAttribute(type))
{
throw new MoyaException("{0} is no... | Fix IsMoyaTestRunner to check for correct interface to implement. | Fix IsMoyaTestRunner to check for correct interface to implement.
| C# | mit | Hammerstad/Moya |
e75146e0f1c63bfb963d0750217c67179a99248b | Scraper/Scraper.cs | Scraper/Scraper.cs | using LegoSharp;
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace Scraper
{
class Scraper
{
static async Task Main(string[] args)
{
foreach (var entry in await (new FacetScraper<ProductSearchQuery, ProductSearchResult>(new List<ProductSearchQu... | using LegoSharp;
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace Scraper
{
class Scraper
{
static async Task Main(string[] args)
{
foreach (var entry in await (new FacetScraper<ProductSearchQuery, ProductSearchResult>(new List<ProductSearchQu... | Fix scraper to scrape pick a brick facets correctly | Fix scraper to scrape pick a brick facets correctly
| C# | mit | rolledback/LegoSharp |
11c59a141f24aebf68f21fb7d79f88980b1233f1 | osu.Game/Overlays/Rankings/RankingsOverlayHeader.cs | osu.Game/Overlays/Rankings/RankingsOverlayHeader.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Bindables;
using osu.Game.Graphics.UserInterface;
using osu.Game.Rulesets;
using osu.Game.Users;
namespace osu.Game.Ov... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Bindables;
using osu.Game.Graphics.UserInterface;
using osu.Game.Rulesets;
using osu.Game.Users;
namespace osu.Game.Ov... | Add background to rankings header | Add background to rankings header
| C# | mit | ppy/osu,smoogipoo/osu,johnneijzen/osu,peppy/osu,2yangk23/osu,smoogipoo/osu,smoogipooo/osu,EVAST9919/osu,NeoAdonis/osu,UselessToucan/osu,UselessToucan/osu,NeoAdonis/osu,peppy/osu-new,peppy/osu,peppy/osu,UselessToucan/osu,2yangk23/osu,smoogipoo/osu,ppy/osu,ppy/osu,NeoAdonis/osu,johnneijzen/osu,EVAST9919/osu |
eb407ee00f581dd16cb91b9df46d6941047492e2 | Client/Systems/VesselFlightStateSys/VesselFlightStateMessageHandler.cs | Client/Systems/VesselFlightStateSys/VesselFlightStateMessageHandler.cs | using System.Collections.Concurrent;
using LunaClient.Base;
using LunaClient.Base.Interface;
using LunaCommon.Message.Data.Vessel;
using LunaCommon.Message.Interface;
namespace LunaClient.Systems.VesselFlightStateSys
{
public class VesselFlightStateMessageHandler : SubSystem<VesselFlightStateSystem>, IMessageHand... | using System.Collections.Concurrent;
using LunaClient.Base;
using LunaClient.Base.Interface;
using LunaCommon.Message.Data.Vessel;
using LunaCommon.Message.Interface;
namespace LunaClient.Systems.VesselFlightStateSys
{
public class VesselFlightStateMessageHandler : SubSystem<VesselFlightStateSystem>, IMessageHand... | Fix compile error by commenting out offending code. | Fix compile error by commenting out offending code.
| C# | mit | DaggerES/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer |
44392270f649e35d7ef2b7291619317229569379 | src/Workspaces/Core/Portable/Experiments/IExperimentationService.cs | src/Workspaces/Core/Portable/Experiments/IExperimentationService.cs | // 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.Composition;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Host.Mef;
namespace Microsoft.CodeAnalysis.Experiments
{
inter... | // 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.Composition;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Host.Mef;
namespace Microsoft.CodeAnalysis.Experiments
{
inter... | Delete unused experiment names added in merge. | Delete unused experiment names added in merge.
| C# | mit | diryboy/roslyn,jasonmalinowski/roslyn,agocke/roslyn,sharwell/roslyn,KevinRansom/roslyn,davkean/roslyn,mgoertz-msft/roslyn,KirillOsenkov/roslyn,physhi/roslyn,physhi/roslyn,abock/roslyn,dotnet/roslyn,stephentoub/roslyn,agocke/roslyn,tannergooding/roslyn,aelij/roslyn,AmadeusW/roslyn,gafter/roslyn,mgoertz-msft/roslyn,eriaw... |
6d91ca5fcf11e462756305cf5949182efc1910b5 | CefSharp/DragOperationsMask.cs | CefSharp/DragOperationsMask.cs | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp
{
[Flags]
public enum DragOperationsMask : uint
{
None = 0,
Copy = 1,
Link ... | // Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp
{
[Flags]
public enum DragOperationsMask : uint
{
None = 0,
Copy = 1,
Link ... | Use uint instead of Uint32 for consistency (even though they're exactly the same) | Use uint instead of Uint32 for consistency (even though they're exactly the same)
| C# | bsd-3-clause | windygu/CefSharp,rlmcneary2/CefSharp,VioletLife/CefSharp,illfang/CefSharp,twxstar/CefSharp,ruisebastiao/CefSharp,VioletLife/CefSharp,twxstar/CefSharp,windygu/CefSharp,Octopus-ITSM/CefSharp,wangzheng888520/CefSharp,AJDev77/CefSharp,ruisebastiao/CefSharp,Livit/CefSharp,zhangjingpu/CefSharp,zhangjingpu/CefSharp,twxstar/Ce... |
0737ea392f9747f80ebc0854cb29b544958994a1 | src/Microsoft.AspNet.Http.Core/Extensions/MapWhenOptions.cs | src/Microsoft.AspNet.Http.Core/Extensions/MapWhenOptions.cs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Builder.Extensions
{
/// <summ... | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNe... | Add NotNull to Predicate setter. | Add NotNull to Predicate setter.
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
c291e7550354a5ecb1b795d7544cd3eef695c8bd | StudentSystem/Data/StudentSystem.Data/Migrations/Configuration.cs | StudentSystem/Data/StudentSystem.Data/Migrations/Configuration.cs | namespace StudentSystem.Data.Migrations
{
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
public sealed class Configuration : DbMigrationsConfiguration<ApplicationDbContext>
{
public Configuration()
{
this.AutomaticMigr... | namespace StudentSystem.Data.Migrations
{
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using StudentSystem.Models;
public sealed class Configuration : DbM... | Add Admin user in Seed method | Add Admin user in Seed method
| C# | mit | pacho10/Student-System-Project,pacho10/Student-System-Project,pacho10/Student-System-Project |
afb2111caf04aafead70647d8c544914478625d9 | PlexServiceCommon/PlexDirHelper.cs | PlexServiceCommon/PlexDirHelper.cs | using System;
using Microsoft.Win32;
namespace PlexServiceCommon {
public static class PlexDirHelper {
/// <summary>
/// Returns the full path and filename of the plex media server executable
/// </summary>
/// <returns></returns>
public static string GetPlexDataDir()
{
var result = string.Empty;
/... | using System;
using System.IO;
using Microsoft.Win32;
namespace PlexServiceCommon {
public static class PlexDirHelper {
/// <summary>
/// Returns the full path and filename of the plex media server executable
/// </summary>
/// <returns></returns>
public static string GetPlexDataDir()
{
var result = En... | Test for default plex path before checking for registry key. | Test for default plex path before checking for registry key.
| C# | mit | cjmurph/PmsService,cjmurph/PmsService |
a54a8737a882b76d6ac13114f5d3e5eed1f1c0d1 | GoldenAnvil.Utility/StringUtility.cs | GoldenAnvil.Utility/StringUtility.cs | using System.Globalization;
namespace GoldenAnvil.Utility
{
public static class StringUtility
{
public static string FormatInvariant(this string format, params object[] args)
{
return string.Format(CultureInfo.InvariantCulture, format, args);
}
}
}
| using System.Collections.Generic;
using System.Globalization;
using System.Text;
namespace GoldenAnvil.Utility
{
public static class StringUtility
{
public static string FormatInvariant(this string format, params object[] args)
{
return string.Format(CultureInfo.InvariantCulture, format, args);
}
public... | Add Join extension for strings | Add Join extension for strings
| C# | mit | SaberSnail/GoldenAnvil.Utility |
dac98a73118fa5354d0b6f820d8be4d3d33b21a5 | src/System.ServiceModel.Security/tests/ServiceModel/UpnEndpointIdentityTest.cs | src/System.ServiceModel.Security/tests/ServiceModel/UpnEndpointIdentityTest.cs | // 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;
using System.ServiceModel;
using Infrastructure.Common;
using Xunit;
public static class UpnEndpoin... | // 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;
using System.ServiceModel;
using Infrastructure.Common;
using Xunit;
public static class UpnEndpoin... | Enable UpnEndpointIdentity tests on UWP | Enable UpnEndpointIdentity tests on UWP
| C# | mit | dotnet/wcf,imcarolwang/wcf,MattGal/wcf,MattGal/wcf,hongdai/wcf,imcarolwang/wcf,shmao/wcf,zhenlan/wcf,KKhurin/wcf,ericstj/wcf,ElJerry/wcf,StephenBonikowsky/wcf,ElJerry/wcf,dotnet/wcf,dotnet/wcf,StephenBonikowsky/wcf,iamjasonp/wcf,hongdai/wcf,mconnew/wcf,mconnew/wcf,mconnew/wcf,KKhurin/wcf,ericstj/wcf,shmao/wcf,iamjasonp... |
36aa4a3bbe8ebc56fb082a399c2614611cc6c295 | src/Dotnet.Script.Core/ScriptDownloader.cs | src/Dotnet.Script.Core/ScriptDownloader.cs | using System;
using System.IO;
using System.Net.Http;
using System.Net.Mime;
using System.Threading.Tasks;
namespace Dotnet.Script.Core
{
public class ScriptDownloader
{
public async Task<string> Download(string uri)
{
const string plainTextMediaType = "text/plain";
usi... | using System;
using System.IO;
using System.Net.Http;
using System.Net.Mime;
using System.Threading.Tasks;
namespace Dotnet.Script.Core
{
public class ScriptDownloader
{
public async Task<string> Download(string uri)
{
const string plainTextMediaType = "text/plain";
usi... | Validate remote script MIME type early | Validate remote script MIME type early
| C# | mit | filipw/dotnet-script,filipw/dotnet-script |
1edbca6e6552f6c5a148ea30f31b3530cb7d9656 | osu.Framework/Input/Bindings/IKeyBinding.cs | osu.Framework/Input/Bindings/IKeyBinding.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Framework.Input.Bindings
{
/// <summary>
/// A binding of a <see cref="Bindings.KeyCombination"/> to an action.
/// </summary>
public interf... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Framework.Input.Bindings
{
/// <summary>
/// A binding of a <see cref="Bindings.KeyCombination"/> to an action.
/// </summary>
public interf... | Add note about action type | Add note about action type
| C# | mit | peppy/osu-framework,ZLima12/osu-framework,ppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,peppy/osu-framework,ppy/osu-framework |
3c5673f5285d5c116a4eccd580ca3f1619074050 | Auth0.Owin/Provider/Auth0CustomizeTokenExchangeRedirectUriContext.cs | Auth0.Owin/Provider/Auth0CustomizeTokenExchangeRedirectUriContext.cs | using Microsoft.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Provider;
namespace Auth0.Owin
{
/// <summary>
/// Context passed when the redirect_uri is generated during the token exchange.
/// </summary>
public class Auth0CustomizeTokenExchangeRedirectUriContext : BaseContext<Au... | using Microsoft.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Provider;
namespace Auth0.Owin
{
/// <summary>
/// Context passed when the redirect_uri is generated during the token exchange.
/// </summary>
public class Auth0CustomizeTokenExchangeRedirectUriContext : BaseContext<Au... | Fix issue with readonly RedirectUri | Fix issue with readonly RedirectUri
| C# | mit | Amialc/auth0-aspnet-owin,auth0/auth0-aspnet-owin,jerriep/auth0-aspnet-owin,jerriep/auth0-aspnet-owin,jerriep/auth0-aspnet-owin,auth0/auth0-aspnet-owin,Amialc/auth0-aspnet-owin,auth0/auth0-aspnet-owin,Amialc/auth0-aspnet-owin |
07dfb7b7530528a065a2eccb09b6df560e2547c5 | src/System.Reflection.Metadata/tests/PortableExecutable/PEHeaderBuilderTests.cs | src/System.Reflection.Metadata/tests/PortableExecutable/PEHeaderBuilderTests.cs | // 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 Xunit;
namespace System.Reflection.PortableExecutable.Tests
{
public class PEHeaderBuilderTests
{
... | // 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 Xunit;
namespace System.Reflection.PortableExecutable.Tests
{
public class PEHeaderBuilderTests
{
... | Add unit tests for PEHeaderBuilder factory methods | Add unit tests for PEHeaderBuilder factory methods
See: #35758
| C# | mit | shimingsg/corefx,wtgodbe/corefx,shimingsg/corefx,shimingsg/corefx,wtgodbe/corefx,wtgodbe/corefx,ptoonen/corefx,BrennanConroy/corefx,shimingsg/corefx,ericstj/corefx,ViktorHofer/corefx,ViktorHofer/corefx,ViktorHofer/corefx,ptoonen/corefx,shimingsg/corefx,ericstj/corefx,wtgodbe/corefx,ptoonen/corefx,ptoonen/corefx,ptoonen... |
7b5aef553026cbc2c0f2b745145d268b6f95d3ca | src/Dolstagis.Web/CoreServices.cs | src/Dolstagis.Web/CoreServices.cs | using Dolstagis.Web.Auth;
using Dolstagis.Web.Lifecycle;
using Dolstagis.Web.Lifecycle.ResultProcessors;
using Dolstagis.Web.Sessions;
using Dolstagis.Web.Static;
using Dolstagis.Web.Views;
namespace Dolstagis.Web
{
internal class CoreServices : Feature
{
public CoreServices()
{
... | using Dolstagis.Web.Auth;
using Dolstagis.Web.Http;
using Dolstagis.Web.Lifecycle;
using Dolstagis.Web.Lifecycle.ResultProcessors;
using Dolstagis.Web.Sessions;
using Dolstagis.Web.Static;
using Dolstagis.Web.Views;
namespace Dolstagis.Web
{
internal class CoreServices : Feature
{
public C... | Make components of IRequestContext independently injectable. | Make components of IRequestContext independently injectable.
| C# | mit | jammycakes/dolstagis.web,jammycakes/dolstagis.web,jammycakes/dolstagis.web |
4b31a98812f7db6877382d54a3ba4a5b94ab5ffe | src/Umbraco.Tests/Web/AngularIntegration/JsInitializationTests.cs | src/Umbraco.Tests/Web/AngularIntegration/JsInitializationTests.cs | using System.Linq;
using NUnit.Framework;
using Umbraco.Core;
using Umbraco.Web.UI.JavaScript;
namespace Umbraco.Tests.Web.AngularIntegration
{
[TestFixture]
public class JsInitializationTests
{
[Test]
public void Get_Default_Init()
{
var init = JsInitialization.GetDef... | using System.Linq;
using NUnit.Framework;
using Umbraco.Core;
using Umbraco.Web.UI.JavaScript;
namespace Umbraco.Tests.Web.AngularIntegration
{
[TestFixture]
public class JsInitializationTests
{
[Test]
public void Get_Default_Init()
{
var init = JsInitialization.GetDef... | Fix test broken by e771e78 | Fix test broken by e771e78
| C# | mit | rasmuseeg/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,hfloyd/Umbraco-CMS,marcemarc/Umbraco-CMS,dawoe/Umbraco-CMS,hfloyd/Umbraco-CMS,marcemarc/Umbraco-CMS,dawoe/Umbraco-CMS,mattbrailsford/Umbraco-CMS,bjarnef/Umbraco-CMS,tompipe/Umbraco-CMS,WebCentrum/Umbraco-CMS,NikRimington/Umbraco-CMS,tcmorris/Umbraco-CMS,leekelleher/Um... |
ad448cbbea8b960d006af5478f06b5b0e36e53ea | src/web/App_Start/BundleConfig.cs | src/web/App_Start/BundleConfig.cs | using System.Web;
using System.Web.Optimization;
using wwwplatform.Models;
using wwwplatform.Models.Support;
namespace wwwplatform
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCol... | using System.Web;
using System.Web.Optimization;
using wwwplatform.Models;
using wwwplatform.Models.Support;
namespace wwwplatform
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCol... | Allow mixed path references and url transforms | Allow mixed path references and url transforms
| C# | apache-2.0 | brondavies/wwwplatform.net,brondavies/wwwplatform.net,brondavies/wwwplatform.net |
dd5b90cf6cde83e0b59f282f0bdb1aa75e30a6d5 | osu.Game.Tests/Visual/Gameplay/TestSceneParticleExplosion.cs | osu.Game.Tests/Visual/Gameplay/TestSceneParticleExplosion.cs | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
using osu.Game.Graphics;
using osuTK;
namespa... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Textures;
using osu.Game.Graphics;
using osuTK;
namespa... | Add test coverage of animation restarting | Add test coverage of animation restarting
| C# | mit | ppy/osu,smoogipoo/osu,smoogipooo/osu,UselessToucan/osu,peppy/osu,peppy/osu-new,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,ppy/osu,peppy/osu,smoogipoo/osu,peppy/osu,ppy/osu,NeoAdonis/osu,NeoAdonis/osu,UselessToucan/osu |
5a5693958110a9cba4ed77d47073c0255480183a | src/SFA.DAS.EmployerApprenticeshipsService.Infrastructure/Data/UserRepository.cs | src/SFA.DAS.EmployerApprenticeshipsService.Infrastructure/Data/UserRepository.cs | using System;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using Dapper;
using SFA.DAS.EAS.Domain.Configuration;
using SFA.DAS.EAS.Domain.Data.Repositories;
using SFA.DAS.EAS.Domain.Models.UserProfile;
using SFA.DAS.Sql.Client;
using SFA.DAS.NLog.Logger;
na... | using System;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using Dapper;
using SFA.DAS.EAS.Domain.Configuration;
using SFA.DAS.EAS.Domain.Data.Repositories;
using SFA.DAS.EAS.Domain.Models.UserProfile;
using SFA.DAS.Sql.Client;
using SFA.DAS.NLog.Logger;
na... | Fix for missing correlationId preventing startup of EAS | [CON-1384] Fix for missing correlationId preventing startup of EAS
| C# | mit | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice |
72d296f4128066787bf0c098d52422aefe363622 | osu.Game/Online/Spectator/FrameHeader.cs | osu.Game/Online/Spectator/FrameHeader.cs | // 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;
using System.Collections.Generic;
using Newtonsoft.Json;
using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring;
namespace osu.Game.Onli... | // 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;
using System.Collections.Generic;
using Newtonsoft.Json;
using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring;
namespace osu.Game.Onli... | Add received timestamp and basic xmldoc for header class | Add received timestamp and basic xmldoc for header class
| C# | mit | UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,ppy/osu,ppy/osu,smoogipoo/osu,peppy/osu-new,NeoAdonis/osu,UselessToucan/osu,ppy/osu,smoogipooo/osu,peppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,smoogipoo/osu,smoogipoo/osu |
7a35f6806485f6ba6beadf9005b0855eda013af5 | EarTrumpet/Services/WhatsNewDisplayService.cs | EarTrumpet/Services/WhatsNewDisplayService.cs | using System;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.System;
namespace EarTrumpet.Services
{
public static class WhatsNewDisplayService
{
internal static void ShowIfAppropriate()
{
if (App.HasIdentity())
{
var current... | using System;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.System;
namespace EarTrumpet.Services
{
public static class WhatsNewDisplayService
{
internal static void ShowIfAppropriate()
{
if (App.HasIdentity())
{
var current... | Use version parser instead of string.split | Use version parser instead of string.split
| C# | mit | File-New-Project/EarTrumpet |
57274a4ad2132f34357afe7eb958a0acde49a4b1 | CIV.Hml/HmlFormula/BoxFormula.cs | CIV.Hml/HmlFormula/BoxFormula.cs | using System;
using System.Collections.Generic;
using System.Linq;
using CIV.Ccs;
using CIV.Common;
namespace CIV.Hml
{
class BoxFormula : HmlLabelFormula
{
protected override string BuildRepr() => $"[{String.Join(",", Label)}]{Inner}";
protected override bool CheckStrategy(IEnumerable<IProce... | using System;
using System.Collections.Generic;
using System.Linq;
using CIV.Common;
namespace CIV.Hml
{
class BoxFormula : HmlLabelFormula
{
protected override string BuildRepr() => $"[{String.Join(",", Label)}]{Inner}";
protected override bool CheckStrategy(IEnumerable<IProcess> processes)
... | Remove CIV.Ccs reference from CIV.Hml | Remove CIV.Ccs reference from CIV.Hml
| C# | mit | lou1306/CIV,lou1306/CIV |
c28186561dcd56f44a785094172e539fed4d914f | RightpointLabs.Pourcast.Infrastructure/Persistence/Repositories/UserRepository.cs | RightpointLabs.Pourcast.Infrastructure/Persistence/Repositories/UserRepository.cs | using System;
namespace RightpointLabs.Pourcast.Infrastructure.Persistence.Repositories
{
using System.Collections.Generic;
using System.Linq;
using RightpointLabs.Pourcast.Domain.Models;
using RightpointLabs.Pourcast.Domain.Repositories;
using RightpointLabs.Pourcast.Infrastructure.Persistence.C... | using System;
namespace RightpointLabs.Pourcast.Infrastructure.Persistence.Repositories
{
using System.Collections.Generic;
using System.Linq;
using RightpointLabs.Pourcast.Domain.Models;
using RightpointLabs.Pourcast.Domain.Repositories;
using RightpointLabs.Pourcast.Infrastructure.Persistence.C... | Use a fix that's closer to the Mongo 2.0 driver's way of doing things | Use a fix that's closer to the Mongo 2.0 driver's way of doing things
| C# | mit | RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast,RightpointLabs/Pourcast |
a09260ab41b46c0c2a43b6207ce8a26ae9be21bd | AstroPhotoGallery/AstroPhotoGallery/Views/Home/ListCategories.cshtml | AstroPhotoGallery/AstroPhotoGallery/Views/Home/ListCategories.cshtml | @model PagedList.IPagedList<AstroPhotoGallery.Models.Category>
@using PagedList.Mvc;
@using System.Linq;
@{
ViewBag.Title = "List";
}
<link href="~/Content/PagedList.css" rel="stylesheet" />
<div class="container">
<h2 class="text-center">Browse by categories</h2>
<br/>
@foreach (var category in Model... | @model PagedList.IPagedList<AstroPhotoGallery.Models.Category>
@using PagedList.Mvc;
@using System.Linq;
@{
ViewBag.Title = "List";
}
<link href="~/Content/PagedList.css" rel="stylesheet" />
<div class="container">
<h2 class="text-center">Browse by categories</h2>
<br/>
@foreach (var category in Model... | Add pictures count of category | Add pictures count of category
| C# | mit | SoftwareFans/AstroPhotoGallery,SoftwareFans/AstroPhotoGallery,SoftwareFans/AstroPhotoGallery |
1e1c954faae8f97cd8d8c1104372ad14f192f1b9 | SourceCodes/Tests/EntityContextLibrary.Tests/DbContextFactoryTest.cs | SourceCodes/Tests/EntityContextLibrary.Tests/DbContextFactoryTest.cs | using System;
using Aliencube.EntityContextLibrary.Interfaces;
using FluentAssertions;
using NUnit.Framework;
namespace Aliencube.EntityContextLibrary.Tests
{
[TestFixture]
public class DbContextFactoryTest
{
private IDbContextFactory _factory;
[SetUp]
public void Init()
{... | using System;
using Aliencube.EntityContextLibrary.Interfaces;
using FluentAssertions;
using NUnit.Framework;
namespace Aliencube.EntityContextLibrary.Tests
{
/// <summary>
/// This represents the test entity for the <see cref="DbContextFactory{TContext}" /> class.
/// </summary>
[TestFixture]
... | Update test methods for DbContextFactory | Update test methods for DbContextFactory
| C# | mit | aliencube/Entity-Context-Library,aliencube/Entity-Context-Library,aliencube/Entity-Context-Library |
98b12383af4e3986294be3cd73b39febb79e15d5 | src/SFA.DAS.EmployerApprenticeshipsService.Web/Views/Shared/_SuccessMessage.cshtml | src/SFA.DAS.EmployerApprenticeshipsService.Web/Views/Shared/_SuccessMessage.cshtml | @using SFA.DAS.EmployerApprenticeshipsService.Web
@using SFA.DAS.EmployerApprenticeshipsService.Web.Models
@model dynamic
@{
var viewModel = Model as OrchestratorResponse;
}
@if (viewModel?.FlashMessage != null)
{
<div class="grid-row">
<div class="column-full">
<div class="@viewModel... | @using SFA.DAS.EmployerApprenticeshipsService.Web
@using SFA.DAS.EmployerApprenticeshipsService.Web.Models
@model dynamic
@{
var viewModel = Model as OrchestratorResponse;
}
@if (!string.IsNullOrEmpty(viewModel?.FlashMessage?.Message))
{
<div class="grid-row">
<div class="column-full">
... | Check we have a message as well when checking the flashmessage view model | Check we have a message as well when checking the flashmessage view model
| C# | mit | SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice,SkillsFundingAgency/das-employerapprenticeshipsservice |
24d3f5c126bc92013e7164da51aaf406f8923a2a | Src/AutoFixture/LambdaExpressionGenerator.cs | Src/AutoFixture/LambdaExpressionGenerator.cs | namespace Ploeh.AutoFixture
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Kernel;
public class LambdaExpressionGenerator : ISpecimenBuilder
{
public object Create(object request, ISpecimenContext context)
{
... | namespace Ploeh.AutoFixture
{
using System;
using System.Linq;
using System.Linq.Expressions;
using Kernel;
public class LambdaExpressionGenerator : ISpecimenBuilder
{
public object Create(object request, ISpecimenContext context)
{
var requestType = request as Type... | Simplify the Expression<Func<>> specimen building | Simplify the Expression<Func<>> specimen building
| C# | mit | zvirja/AutoFixture,sergeyshushlyapin/AutoFixture,sbrockway/AutoFixture,sbrockway/AutoFixture,dcastro/AutoFixture,AutoFixture/AutoFixture,adamchester/AutoFixture,sean-gilliam/AutoFixture,adamchester/AutoFixture,Pvlerick/AutoFixture,sergeyshushlyapin/AutoFixture,dcastro/AutoFixture |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.