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 |
|---|---|---|---|---|---|---|---|---|---|
52e34048a1024f5a16aa449528c7a5221294dd19 | src/Workspaces/Core/Portable/LanguageServices/DeclaredSymbolFactoryService/ArityUtilities.cs | src/Workspaces/Core/Portable/LanguageServices/DeclaredSymbolFactoryService/ArityUtilities.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.
#nullable disable
using System.Diagnostics;
using System.Globalization;
namespace Microsoft.CodeAnalysis.Language... | // 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.Collections.Immutable;
using System.Diagnostics;
using System.Globalization;
namespace Microsoft.Code... | Switch to ImmutableArray to prevent accidental mutation | Switch to ImmutableArray to prevent accidental mutation
| C# | mit | mavasani/roslyn,diryboy/roslyn,CyrusNajmabadi/roslyn,KevinRansom/roslyn,dotnet/roslyn,KevinRansom/roslyn,diryboy/roslyn,weltkante/roslyn,sharwell/roslyn,bartdesmet/roslyn,jasonmalinowski/roslyn,KevinRansom/roslyn,bartdesmet/roslyn,diryboy/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,weltkante/roslyn,weltkante/roslyn,... |
18a254c3fa955a6ddf241722272f3a021b9417a6 | Tests/Cosmos.TestRunner.Core/DefaultEngineConfiguration.cs | Tests/Cosmos.TestRunner.Core/DefaultEngineConfiguration.cs | using System;
namespace Cosmos.TestRunner.Core
{
public static class DefaultEngineConfiguration
{
public static void Apply(Engine engine)
{
if (engine == null)
{
throw new ArgumentNullException("engine");
}
engine.AddKernel(type... | using System;
namespace Cosmos.TestRunner.Core
{
public static class DefaultEngineConfiguration
{
public static void Apply(Engine engine)
{
if (engine == null)
{
throw new ArgumentNullException("engine");
}
engine.AddKernel(type... | Enable all kernel tests again. | Enable all kernel tests again.
| C# | bsd-3-clause | MyvarHD/Cosmos,tgiphil/Cosmos,CosmosOS/Cosmos,zdimension/Cosmos,trivalik/Cosmos,MetSystem/Cosmos,sgetaz/Cosmos,Cyber4/Cosmos,zhangwenquan/Cosmos,zdimension/Cosmos,tgiphil/Cosmos,fanoI/Cosmos,MyvarHD/Cosmos,zdimension/Cosmos,sgetaz/Cosmos,MetSystem/Cosmos,Cyber4/Cosmos,MyvarHD/Cosmos,MetSystem/Cosmos,tgiphil/Cosmos,Cosm... |
3c025b3b56fabe9db1eb9bac8e473d05c4bd6c42 | src/mscorlib/corefx/System/Globalization/TextInfo.Unix.cs | src/mscorlib/corefx/System/Globalization/TextInfo.Unix.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Diagnostics.Contracts;
using System.Text;
namespace System.Globalization
{
public partial class TextInfo
{
////////////////////////////////... | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Diagnostics.Contracts;
using System.Text;
namespace System.Globalization
{
public partial class TextInfo
{
////////////////////////////////... | Fix string.ToUpper/ToLower to use the computed result | Fix string.ToUpper/ToLower to use the computed result
Amazing the difference a single character can make :)
| C# | mit | tijoytom/coreclr,ramarag/coreclr,chrishaly/coreclr,botaberg/coreclr,lzcj4/coreclr,sagood/coreclr,apanda/coreclr,cshung/coreclr,vinnyrom/coreclr,naamunds/coreclr,misterzik/coreclr,jakesays/coreclr,ruben-ayrapetyan/coreclr,josteink/coreclr,cydhaselton/coreclr,shahid-pk/coreclr,Alcaro/coreclr,russellhadley/coreclr,tijoyto... |
e91e377753bdd873b82defc2879d25ab4f8ad448 | test/Serilog.Tests/Support/ClassHierarchy.cs | test/Serilog.Tests/Support/ClassHierarchy.cs | namespace Serilog.Tests.Support
{
public abstract class DummyAbstractClass
{
}
public class DummyConcreteClassWithDefaultConstructor
{
// ReSharper disable once UnusedParameter.Local
public DummyConcreteClassWithDefaultConstructor(string param = "")
{
}
}
p... | namespace Serilog.Tests.Support
{
public abstract class DummyAbstractClass
{
}
public class DummyConcreteClassWithDefaultConstructor : DummyAbstractClass
{
// ReSharper disable once UnusedParameter.Local
public DummyConcreteClassWithDefaultConstructor(string param = "")
{
... | Fix wrong class hierarchy in Abstract class test cases | Fix wrong class hierarchy in Abstract class test cases
| C# | apache-2.0 | merbla/serilog,CaioProiete/serilog,merbla/serilog,serilog/serilog,serilog/serilog |
d37afda980cfb6efa61015b62460669277424b64 | src/dotnetCloudantWebstarter/Models/ToDoItemModel.cs | src/dotnetCloudantWebstarter/Models/ToDoItemModel.cs | namespace CloudantDotNet.Models
{
public class ToDoItem
{
public string id { get; set; }
public string rev { get; set; }
public string text { get; set; }
}
public class VREntryItem
{
public string id { get; set; }
public string rev { get; set; }
publi... | namespace CloudantDotNet.Models
{
public class ToDoItem
{
public string id { get; set; }
public string rev { get; set; }
public string text { get; set; }
}
public class VREntryItem
{
public string id { get; set; }
public string rev { get; set; }
publi... | Change string to int for mark | Change string to int for mark | C# | apache-2.0 | jacquesweidig/DBVRMONS,jacquesweidig/DBVRMONS |
8b836a74f9a25f49469659c17efec7a25ec175cd | src/Reactive.Config.StructureMap/ContainerExtensions.cs | src/Reactive.Config.StructureMap/ContainerExtensions.cs | using System;
using StructureMap;
namespace Reactive.Config.StructureMap
{
public static class ContainerExtensions
{
public static void ReactiveConfig(this ConfigurationExpression config, Action<IReactiveConfigRegistry> action)
{
config.For<IKeyPathProvider>().Use<NamespaceKeyPathP... | using System;
using StructureMap;
namespace Reactive.Config.StructureMap
{
public static class ContainerExtensions
{
public static void ReactiveConfig(this ConfigurationExpression config, Action<IReactiveConfigRegistry> action)
{
config.Scan(s =>
{
s.Ass... | Fix StructureMap missing default convention for React.Config | Fix StructureMap missing default convention for React.Config
| C# | mit | KevM/Reactive.Config |
f39092540e766f17d14719f97945d84858dff1e6 | src/Workspaces/Remote/ServiceHub/Services/NavigationBar/RemoteNavigationBarItemService.cs | src/Workspaces/Remote/ServiceHub/Services/NavigationBar/RemoteNavigationBarItemService.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.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnaly... | // 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.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnaly... | Support computing navigation bar items for source generated files | Support computing navigation bar items for source generated files
| C# | mit | jasonmalinowski/roslyn,sharwell/roslyn,mavasani/roslyn,KevinRansom/roslyn,shyamnamboodiripad/roslyn,eriawan/roslyn,mavasani/roslyn,AmadeusW/roslyn,diryboy/roslyn,shyamnamboodiripad/roslyn,jasonmalinowski/roslyn,physhi/roslyn,diryboy/roslyn,weltkante/roslyn,eriawan/roslyn,CyrusNajmabadi/roslyn,wvdd007/roslyn,KevinRansom... |
d41a3065bd11bed66f4fe786fb1b58f37c4a13c2 | src/FluentMigrator.Tests/Unit/AutoReversingMigrationTests.cs | src/FluentMigrator.Tests/Unit/AutoReversingMigrationTests.cs | using NUnit.Framework;
using FluentMigrator.Infrastructure;
namespace FluentMigrator.Tests.Unit
{
using System.Collections.ObjectModel;
using System.Linq;
using FluentMigrator.Expressions;
using Moq;
[TestFixture]
public class AutoReversingMigrationTests
{
private Mock<IMigrationCo... | using NUnit.Framework;
using FluentMigrator.Infrastructure;
namespace FluentMigrator.Tests.Unit
{
using System.Collections.ObjectModel;
using System.Linq;
using FluentMigrator.Expressions;
using Moq;
[TestFixture]
public class AutoReversingMigrationTests
{
private Mock<IMigrationCo... | Update class name to reflect additional test | Update class name to reflect additional test
| C# | apache-2.0 | FabioNascimento/fluentmigrator,lcharlebois/fluentmigrator,stsrki/fluentmigrator,lcharlebois/fluentmigrator,fluentmigrator/fluentmigrator,amroel/fluentmigrator,itn3000/fluentmigrator,schambers/fluentmigrator,eloekset/fluentmigrator,fluentmigrator/fluentmigrator,FabioNascimento/fluentmigrator,itn3000/fluentmigrator,igitu... |
1094d88fd05c0ec2c8041a0cc6e3d3e275374fee | Web/Infrastructure/DependencyInjection/RedisModule.cs | Web/Infrastructure/DependencyInjection/RedisModule.cs | using Autofac;
using BookSleeve;
using Compilify.Web.Services;
namespace Compilify.Web.Infrastructure.DependencyInjection
{
public class RedisModule : Module
{
protected override void Load(ContainerBuilder builder)
{
builder.Register(x => RedisConnectionGateway.Current)
... | using Autofac;
using BookSleeve;
using Compilify.Web.Services;
namespace Compilify.Web.Infrastructure.DependencyInjection
{
public class RedisModule : Module
{
protected override void Load(ContainerBuilder builder)
{
builder.Register(x => RedisConnectionGateway.Current)
... | Change RedisSubscriberConnection externally owned in Autofac registration | Change RedisSubscriberConnection externally owned in Autofac registration
| C# | mit | appharbor/ConsolR,jrusbatch/compilify,vendettamit/compilify,appharbor/ConsolR,vendettamit/compilify,jrusbatch/compilify |
db515fe3d591eca4277ce2c46a689a3a18f2b483 | src/xunit.netcore.extensions/TargetFrameworkMonikers.cs | src/xunit.netcore.extensions/TargetFrameworkMonikers.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;
namespace Xunit
{
[Flags]
public enum TargetFrameworkMonikers
{
Net45 = 0x1,
... | // 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;
namespace Xunit
{
[Flags]
public enum TargetFrameworkMonikers
{
Net45 = 0x1,
... | Fix Uap TFM to include Aot | Fix Uap TFM to include Aot
| C# | mit | ChadNedzlek/buildtools,MattGal/buildtools,ChadNedzlek/buildtools,stephentoub/buildtools,AlexGhiondea/buildtools,nguerrera/buildtools,MattGal/buildtools,crummel/dotnet_buildtools,weshaggard/buildtools,nguerrera/buildtools,ericstj/buildtools,JeremyKuhne/buildtools,joperezr/buildtools,ericstj/buildtools,tarekgh/buildtools... |
7fe8c4e04189a821cbeb6f17e7a9747776816691 | tests/AdventOfCode.Tests/Puzzles/PuzzleTestHelpers.cs | tests/AdventOfCode.Tests/Puzzles/PuzzleTestHelpers.cs | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.AdventOfCode.Puzzles
{
using Xunit;
/// <summary>
/// A class containing methods for helping to test puzzl... | // Copyright (c) Martin Costello, 2015. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
namespace MartinCostello.AdventOfCode.Puzzles
{
using Xunit;
/// <summary>
/// A class containing methods for helping to test puzzle... | Support params usage as input for tests | Support params usage as input for tests
Change SolvePuzzle<T> to support using params for arguments.
| C# | apache-2.0 | martincostello/adventofcode,martincostello/adventofcode,martincostello/adventofcode,martincostello/adventofcode |
9611a30c37d8f9c782f46efebac2f4a5efdff7aa | Assets/Scripts/AIController.cs | Assets/Scripts/AIController.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AIController : MonoBehaviour
{
public UnityEngine.AI.NavMeshAgent agent { get; private set; } // the navmesh agent required for the path finding
public Transform target; // tar... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AIController : MonoBehaviour
{
public UnityEngine.AI.NavMeshAgent agent { get; private set; } // the navmesh agent required for the path finding
public Transform target; // tar... | Test Commit for Slack Integration | Test Commit for Slack Integration
| C# | mit | benthroop/Frankenweapon |
bbc860a24afaeb66681351ba8633832d17677dde | src/Web/Infrastructure/AppHarborCompatibilityExtensions.cs | src/Web/Infrastructure/AppHarborCompatibilityExtensions.cs | namespace Tanka.Web.Infrastructure
{
using System;
using System.Linq;
using global::Nancy;
using global::Nancy.Responses;
public static class AppHarborCompatibilityExtensions
{
public static void RequiresHttpsOrXProto(this INancyModule module, bool redirect = true)
{
... | namespace Tanka.Web.Infrastructure
{
using System;
using System.Linq;
using global::Nancy;
using global::Nancy.Responses;
public static class AppHarborCompatibilityExtensions
{
public static void RequiresHttpsOrXProto(this INancyModule module, bool redirect = true)
{
... | Fix issue with checking header value | bugfix: Fix issue with checking header value
Fix the issue and handle the case of missing header value
| C# | mit | pekkah/tanka,pekkah/tanka,pekkah/tanka |
784d6db0554393973975387fab8fa97bed492de2 | src/AspNet.Identity.OracleProvider/Properties/AssemblyInfo.cs | src/AspNet.Identity.OracleProvider/Properties/AssemblyInfo.cs | // Copyright (c) Timm Krause. All rights reserved. See LICENSE file in the project root for license information.
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("AspNet.Identity.OracleProvider")]
[assembly: AssemblyDescription("ASP.NET Id... | // Copyright (c) Timm Krause. All rights reserved. See LICENSE file in the project root for license information.
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("AspNet.Identity.OracleProvider")]
[assembly: AssemblyDescription("ASP.NET Id... | Fix an issue with assembly binding which prevents the tests from running by removing the AssemblyCulture. | Fix an issue with assembly binding which prevents the tests from running by removing the AssemblyCulture.
| C# | mit | timmkrause/AspNet.Identity.OracleProvider |
20fc4272a093b75ff80cb93910637442e47cb15a | src/Framework/PropellerMvcModel/Properties/AssemblyInfo.cs | src/Framework/PropellerMvcModel/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Pr... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Pr... | Update model project to minor version 11 | Update model project to minor version 11
| C# | mit | galtrold/propeller.mvc,galtrold/propeller.mvc,galtrold/propeller.mvc,galtrold/propeller.mvc,galtrold/propeller.mvc |
5f67135c6139e08bbf860053048cc9dd66a8a8fb | src/Assets/Plugins/PatchKit/Scripts/UI/UIApiComponent.cs | src/Assets/Plugins/PatchKit/Scripts/UI/UIApiComponent.cs | using System.Collections;
using PatchKit.Api;
using UnityEngine;
namespace PatchKit.Unity.UI
{
public abstract class UIApiComponent : MonoBehaviour
{
private Coroutine _loadCoroutine;
private bool _isDirty;
private ApiConnection _apiConnection;
public bool LoadOnAwake = true... | using System.Collections;
using PatchKit.Api;
using UnityEngine;
namespace PatchKit.Unity.UI
{
public abstract class UIApiComponent : MonoBehaviour
{
private Coroutine _loadCoroutine;
private bool _isDirty;
private ApiConnection _apiConnection;
public bool LoadOnStart = true... | Change load event of UI component to from Awake to Start | Change load event of UI component to from Awake to Start
| C# | mit | patchkit-net/patchkit-integration-unity |
6c4bf1fef555d60426176a104cfaa2859db6d2e5 | TorSharp/Tools/Tor/TorConfigurationDictionary.cs | TorSharp/Tools/Tor/TorConfigurationDictionary.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
namespace Knapcode.TorSharp.Tools.Tor
{
public class TorConfigurationDictionary : IConfigurationDictionary
{
private readonly string _torDirectoryPath;
public TorConfigurationDictionary(string torDire... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
namespace Knapcode.TorSharp.Tools.Tor
{
public class TorConfigurationDictionary : IConfigurationDictionary
{
private readonly string _torDirectoryPath;
public TorConfigurationDictionary(string torDire... | Use Path.Combine instead of Windows-specific directory separators | Use Path.Combine instead of Windows-specific directory separators
| C# | mit | joelverhagen/TorSharp |
6ab1678aea05e5fd15787e83d4504f94df840435 | src/Telegram.Bot/Helpers/Extensions.cs | src/Telegram.Bot/Helpers/Extensions.cs | using System;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
namespace Telegram.Bot.Helpers
{
/// <summary>
/// Extension Methods
/// </summary>
internal static class Extensions
{
static string EncodeUt... | using System;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
namespace Telegram.Bot.Helpers
{
/// <summary>
/// Extension Methods
/// </summary>
internal static class Extensions
{
static string EncodeUt... | Add nullability for helper extensions | Add nullability for helper extensions
| C# | mit | MrRoundRobin/telegram.bot |
c6d2e2ce6c0aa817e0ae510abda9e887db89324d | Vsxmd/Properties/AssemblyInfo.cs | Vsxmd/Properties/AssemblyInfo.cs | //-----------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="Junle Li">
// Copyright (c) Junle Li. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System.Reflection;
using System.Runtime... | //-----------------------------------------------------------------------
// <copyright file="AssemblyInfo.cs" company="Junle Li">
// Copyright (c) Junle Li. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System.Reflection;
using System.Runtime... | Add necessary assembly info to project. | Add necessary assembly info to project.
| C# | mit | lijunle/Vsxmd |
388721300611431886c245247a490233b3f3724d | GridMaps/GridMaps/Render/gridmapsgrideditor.cshtml | GridMaps/GridMaps/Render/gridmapsgrideditor.cshtml | @using System.Web.Mvc.Html
@inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic>
@if (Model.value != null)
{
string value = Model.value.ToString();
var id = Guid.NewGuid().ToString() + "_map";
var js_id = id.Replace('-', '_');
<div class="map gridmaps" id="@id" style="width:100%;"></div>
<script t... | @inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic>
@if (Model.value != null)
{
string value = Model.value.ToString();
var id = string.Format("{0}_map", Guid.NewGuid());
<div class="map gridmaps" id="@id" style="width:100%;"></div>
<script type="text/javascript">
function initializeMap() {
... | Change code to use async defer call for Google Maps | Change code to use async defer call for Google Maps
Changed the map code so it uses the callback function of Google Maps. This way the google maps API can be called async.
<script src="https://maps.googleapis.com/maps/api/js?key=YOURAPIKEY&callback=initializeMap" async defer></script> | C# | mit | Mantus667/GridMaps,Mantus667/GridMaps,Mantus667/GridMaps |
0094c4cf8741dba0f21e95a7aa865d7c6650a124 | tests/Avalonia.RenderTests/Controls/TextBlockTests.cs | tests/Avalonia.RenderTests/Controls/TextBlockTests.cs | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Threading.Tasks;
using Avalonia.Controls;
using Avalonia.Layout;
using Avalonia.Media;
using Xunit;
#if AVALONIA_SKIA
namespace Avalonia.Ski... | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Threading.Tasks;
using Avalonia.Controls;
using Avalonia.Layout;
using Avalonia.Media;
using Xunit;
#if AVALONIA_SKIA
namespace Avalonia.Ski... | Fix unit test by specifying the font in the test image. | Fix unit test by specifying the font in the test image.
| C# | mit | jkoritzinsky/Avalonia,SuperJMN/Avalonia,AvaloniaUI/Avalonia,AvaloniaUI/Avalonia,jkoritzinsky/Avalonia,SuperJMN/Avalonia,wieslawsoltes/Perspex,SuperJMN/Avalonia,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,wieslawsoltes/Perspex,jkoritzinsky/Avalonia,Perspex/Perspex,AvaloniaUI/A... |
5e3bd31862c2a754c8b3e5873ddb3988b529de93 | lib/TweetLib.Core/Utils/WebUtils.cs | lib/TweetLib.Core/Utils/WebUtils.cs | using System;
using System.ComponentModel;
using System.IO;
using System.Net;
namespace TweetLib.Core.Utils{
public static class WebUtils{
private static bool HasMicrosoftBeenBroughtTo2008Yet;
private static void EnsureTLS12(){
if (!HasMicrosoftBeenBroughtTo2008Yet){
S... | using System;
using System.ComponentModel;
using System.IO;
using System.Net;
namespace TweetLib.Core.Utils{
public static class WebUtils{
private static bool HasMicrosoftBeenBroughtTo2008Yet;
private static void EnsureTLS12(){
if (!HasMicrosoftBeenBroughtTo2008Yet){
S... | Delete corrupted downloads after an error | Delete corrupted downloads after an error
| C# | mit | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck |
8a79781842a4d566c064aa844242b2448f4327ee | frameworks/CSharp/aspnet/src/Views/Fortunes.cshtml | frameworks/CSharp/aspnet/src/Views/Fortunes.cshtml | @model IEnumerable<Benchmarks.AspNet.Models.Fortune>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Fortunes</title>
</head>
<body>
<table>
<tr>
<th>id</th>
<th>message</th>
</tr>
@foreach (var fortune in Model)
{
<tr>
<td>@fortune.ID</td>
<td>@fortune.Message</td>
</tr>
}
</table... | @model IEnumerable<Benchmarks.AspNet.Models.Fortune>
<!DOCTYPE html>
<html>
<head>
<title>Fortunes</title>
</head>
<body>
<table>
<tr>
<th>id</th>
<th>message</th>
</tr>
@foreach (var fortune in Model)
{
<tr>
<td>@fortune.ID</td>
<td>@fortune.Message</td>
</tr>
}
</table>
</body>
</html>
| Remove meta charset from fortunes in ASP.NET | Remove meta charset from fortunes in ASP.NET
| C# | bsd-3-clause | Rayne/FrameworkBenchmarks,markkolich/FrameworkBenchmarks,sxend/FrameworkBenchmarks,zapov/FrameworkBenchmarks,zane-techempower/FrameworkBenchmarks,Jesterovskiy/FrameworkBenchmarks,alubbe/FrameworkBenchmarks,k-r-g/FrameworkBenchmarks,raziel057/FrameworkBenchmarks,stefanocasazza/FrameworkBenchmarks,mfirry/FrameworkBenchma... |
7dde2f1f4c8e5f2b06d67a362752bb529a816b68 | Source/MQTTnet/Adapter/MqttConnectingFailedException.cs | Source/MQTTnet/Adapter/MqttConnectingFailedException.cs | using MQTTnet.Client.Connecting;
using MQTTnet.Exceptions;
namespace MQTTnet.Adapter
{
public class MqttConnectingFailedException : MqttCommunicationException
{
public MqttConnectingFailedException(MqttClientAuthenticateResult resultCode)
: base($"Connecting with MQTT server failed ({resul... | using MQTTnet.Client.Connecting;
using MQTTnet.Exceptions;
namespace MQTTnet.Adapter
{
public class MqttConnectingFailedException : MqttCommunicationException
{
public MqttConnectingFailedException(MqttClientAuthenticateResult result)
: base($"Connecting with MQTT server failed ({result.Re... | Change variable name per review request | Change variable name per review request
Change the name of the variable from requestCode to request
| C# | mit | chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet,chkr1011/MQTTnet |
45da435a076a96d8fdf974a6b680e6ff84335c3a | BlogApp/BlogApp.Accessors/BlogCacheAccessor.cs | BlogApp/BlogApp.Accessors/BlogCacheAccessor.cs | using System;
using System.Threading.Tasks;
using BlogApp.Common.Contracts.Accessors;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using StackExchange.Redis;
namespace BlogApp.Accessors
{
public sealed class BlogCacheAccessor : ICacheAccessor
{
#region Constructor and private membe... | using System;
using System.Threading.Tasks;
using BlogApp.Common.Contracts.Accessors;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using StackExchange.Redis;
namespace BlogApp.Accessors
{
public sealed class BlogCacheAccessor : ICacheAccessor
{
#region Constructor and private membe... | Update accessor constructor used for tests | Update accessor constructor used for tests
| C# | mit | tburnett80/blogApp,tburnett80/blogApp |
d28912db04965ed1128fa38eb9a56d25021d996c | Framework.Core/System/Runtime/CompilerServices/IsReadOnlyAttribute.cs | Framework.Core/System/Runtime/CompilerServices/IsReadOnlyAttribute.cs | #if LESSTHAN_NET471 || LESSTHAN_NETCOREAPP20 || LESSTHAN_NETSTANDARD21
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.ComponentModel;
namespace System.Runtime.CompilerServices
{
/// <summary>
/// Reserved ... | #if LESSTHAN_NET471 || LESSTHAN_NETCOREAPP20 || LESSTHAN_NETSTANDARD21
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.ComponentModel;
namespace System.Runtime.CompilerServices
{
/// <summary>
/// Reserved ... | Comment should be // not /// | Comment should be // not ///
| C# | mit | theraot/Theraot |
2ffe4deec319bd9dcd81d3dd4a5bb47b38f472ae | src/Nethereum.RPC/ModelFactories/BlockHeaderRPCFactory.cs | src/Nethereum.RPC/ModelFactories/BlockHeaderRPCFactory.cs | using Nethereum.Hex.HexConvertors.Extensions;
using Nethereum.Model;
using Nethereum.RPC.Eth.DTOs;
namespace Nethereum.RPC.ModelFactories
{
public class BlockHeaderRPCFactory
{
public static BlockHeader FromRPC(Block rpcBlock)
{
var blockHeader = new BlockHeader();
bloc... | using Nethereum.Hex.HexConvertors.Extensions;
using Nethereum.Model;
using Nethereum.RPC.Eth.DTOs;
namespace Nethereum.RPC.ModelFactories
{
public class BlockHeaderRPCFactory
{
public static BlockHeader FromRPC(Block rpcBlock, bool mixHasAndhNonceInSealFields = false)
{
var blockHe... | Support for parity clique mixhash and nonce in SealFields | Support for parity clique mixhash and nonce in SealFields
| C# | mit | Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum,Nethereum/Nethereum |
75dcc28f0e9c2313689b0b5be9744a4d6e048596 | ReadableExpressions.UnitTests/WhenTranslatingBlockExpressions.cs | ReadableExpressions.UnitTests/WhenTranslatingBlockExpressions.cs | namespace AgileObjects.ReadableExpressions.UnitTests
{
using System;
using System.Linq.Expressions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class WhenTranslatingBlockExpressions
{
[TestMethod]
public void ShouldTranslateANoVariableNoReturnValueBlo... | namespace AgileObjects.ReadableExpressions.UnitTests
{
using System;
using System.Linq.Expressions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class WhenTranslatingBlockExpressions
{
[TestMethod]
public void ShouldTranslateANoVariableBlockWithNoRetur... | Test coverage for simple void blocks with a variable | Test coverage for simple void blocks with a variable
| C# | mit | agileobjects/ReadableExpressions |
db56e45032488c1c15025c90d198c9a924818a17 | src/GitHub.App/Factories/ViewViewModelFactory.cs | src/GitHub.App/Factories/ViewViewModelFactory.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Windows;
using GitHub.Exports;
using GitHub.Services;
using GitHub.ViewModels;
namespace GitHub.Factories
{
/// <summary>
/// Factory for creating views and view models.
/// </summary>
... | using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Windows;
using GitHub.Exports;
using GitHub.Services;
using GitHub.ViewModels;
namespace GitHub.Factories
{
/// <summary>
/// Factory for creating views and view models.
/// </summary>
... | Remove redundant call to SatisfyImportsOnce | Remove redundant call to SatisfyImportsOnce
| C# | mit | github/VisualStudio,github/VisualStudio,github/VisualStudio |
dcf3148d23578776ecb8f484b1abb551935cb037 | osu.Game.Rulesets.Mania/Scoring/ManiaScoreProcessor.cs | osu.Game.Rulesets.Mania/Scoring/ManiaScoreProcessor.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Rulesets.Mania.Judgements;
using osu.Game.Rulesets.Mania.Objects;
using osu.Game.Rulesets.Scoring;
using osu.Game.Rulesets.UI;
namespace osu.Gam... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Rulesets.Mania.Judgements;
using osu.Game.Rulesets.Mania.Objects;
using osu.Game.Rulesets.Scoring;
using osu.Game.Rulesets.UI;
namespace osu.Gam... | Fix osu!mania failing due to 0 hp. | Fix osu!mania failing due to 0 hp.
| C# | mit | peppy/osu-new,naoey/osu,EVAST9919/osu,EVAST9919/osu,2yangk23/osu,peppy/osu,smoogipoo/osu,smoogipoo/osu,smoogipooo/osu,NeoAdonis/osu,ZLima12/osu,johnneijzen/osu,DrabWeb/osu,Damnae/osu,johnneijzen/osu,smoogipoo/osu,Frontear/osuKyzer,DrabWeb/osu,UselessToucan/osu,ppy/osu,DrabWeb/osu,Nabile-Rahmani/osu,Drezi126/osu,peppy/o... |
b0ee0383f334b080cb512da69df0ce5f62bff4ae | src/Arkivverket.Arkade.CLI/ArchiveProcessingOptions.cs | src/Arkivverket.Arkade.CLI/ArchiveProcessingOptions.cs | using CommandLine;
namespace Arkivverket.Arkade.CLI
{
public abstract class ArchiveProcessingOptions : OutputOptions
{
[Option('t', "type", HelpText = "Optional. Archive type, valid values: noark3, noark5 or fagsystem")]
public string ArchiveType { get; set; }
[Option('a', "archive", H... | using CommandLine;
namespace Arkivverket.Arkade.CLI
{
public abstract class ArchiveProcessingOptions : OutputOptions
{
[Option('t', "type", HelpText = "Optional. Archive type, valid values: noark3, noark4, noark5 or fagsystem")]
public string ArchiveType { get; set; }
[Option('a', "arc... | Update information about valid archive types | Update information about valid archive types
ARKADE-608 | C# | agpl-3.0 | arkivverket/arkade5,arkivverket/arkade5,arkivverket/arkade5 |
a23901c07a748dce1d2e1ef372447b4ed1950cb5 | src/Umbraco.Web/PropertyEditors/EmailAddressPropertyEditor.cs | src/Umbraco.Web/PropertyEditors/EmailAddressPropertyEditor.cs | using Umbraco.Core;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.PropertyEditors
{
[PropertyEditor(Constants.PropertyEditors.EmailAddressAlias, "Email address", "email", Icon="icon-message")]
public class EmailAddressPropertyEditor : PropertyEditor
{
protected override Property... | using Umbraco.Core;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.PropertyEditors
{
[PropertyEditor(Constants.PropertyEditors.EmailAddressAlias, "Email address", "email", IsParameterEditor = true, Icon ="icon-message")]
public class EmailAddressPropertyEditor : PropertyEditor
{
... | Enable email address as macro parameter editor | Enable email address as macro parameter editor
| C# | mit | umbraco/Umbraco-CMS,lars-erik/Umbraco-CMS,lars-erik/Umbraco-CMS,KevinJump/Umbraco-CMS,marcemarc/Umbraco-CMS,rasmuseeg/Umbraco-CMS,aaronpowell/Umbraco-CMS,tcmorris/Umbraco-CMS,tompipe/Umbraco-CMS,arknu/Umbraco-CMS,KevinJump/Umbraco-CMS,WebCentrum/Umbraco-CMS,abryukhov/Umbraco-CMS,robertjf/Umbraco-CMS,robertjf/Umbraco-CM... |
b43b84afce38dd4a9aeefa847e6a2096f93b59b0 | test/AsmResolver.DotNet.Tests/Bundles/BundleFileTest.cs | test/AsmResolver.DotNet.Tests/Bundles/BundleFileTest.cs | using System.Linq;
using System.Text;
using AsmResolver.DotNet.Bundles;
using AsmResolver.PE.DotNet.Metadata.Strings;
using AsmResolver.PE.DotNet.Metadata.Tables;
using AsmResolver.PE.DotNet.Metadata.Tables.Rows;
using Xunit;
namespace AsmResolver.DotNet.Tests.Bundles
{
public class BundleFileTest
{
[F... | using System.Linq;
using System.Text;
using AsmResolver.DotNet.Bundles;
using AsmResolver.PE.DotNet.Metadata.Strings;
using AsmResolver.PE.DotNet.Metadata.Tables;
using AsmResolver.PE.DotNet.Metadata.Tables.Rows;
using Xunit;
namespace AsmResolver.DotNet.Tests.Bundles
{
public class BundleFileTest
{
[F... | Normalize newlines in json test. | Normalize newlines in json test.
| C# | mit | Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver,Washi1337/AsmResolver |
35edef1aef0bad8360f203848a07d23c46e72180 | CkanDotNet.Web/Views/Theme/CastleRock/_HomeHeader.cshtml | CkanDotNet.Web/Views/Theme/CastleRock/_HomeHeader.cshtml | @using CkanDotNet.Web.Models.Helpers
<p>As part of an initiative to improve the accessibility, transparency, and
accountability of the Town of Castle Rock, this catalog provides open access to City-managed data.
</p>
@if (SettingsHelper.GetUserVoiceEnabled()) {
<p>We invite you to actively participate in shapin... | @using CkanDotNet.Web.Models.Helpers
<p>As part of an initiative to improve the accessibility, transparency, and
accountability of the Town of Castle Rock, this catalog provides open access to town-managed data.
</p>
@if (SettingsHelper.GetUserVoiceEnabled()) {
<p>We invite you to actively participate in shapin... | Update to Castle Rock header text | Update to Castle Rock header text
| C# | apache-2.0 | opencolorado/.NET-Wrapper-for-CKAN-API,DenverDev/.NET-Wrapper-for-CKAN-API,opencolorado/.NET-Wrapper-for-CKAN-API,DenverDev/.NET-Wrapper-for-CKAN-API,opencolorado/.NET-Wrapper-for-CKAN-API |
2a5a3f5992663ce45a0e4080f03514eb4946ee5c | Tiver.Fowl.Drivers/Configuration/DriversConfiguration.cs | Tiver.Fowl.Drivers/Configuration/DriversConfiguration.cs | using System.IO;
using System.Reflection;
namespace Tiver.Fowl.Drivers.Configuration
{
public class DriversConfiguration
{
/// <summary>
/// Location for binaries to be saved
/// Defaults to assembly location
/// </summary>
public string DownloadLocation { get; set; } =... | using System.IO;
using System.Reflection;
namespace Tiver.Fowl.Drivers.Configuration
{
public class DriversConfiguration
{
/// <summary>
/// Location for binaries to be saved
/// Defaults to assembly location
/// </summary>
public string DownloadLocation { get; set; } =... | Change default HttpTimeout to 120 seconds | Change default HttpTimeout to 120 seconds
| C# | mit | MrHant/tiver-fowl.Drivers,MrHant/tiver-fowl.Drivers |
eda7b081fa0b91c1dd41a647e647d65438823196 | src/Arkivverket.Arkade/Core/Addml/Definitions/Separator.cs | src/Arkivverket.Arkade/Core/Addml/Definitions/Separator.cs | using System;
using System.Collections.Generic;
using Arkivverket.Arkade.Util;
namespace Arkivverket.Arkade.Core.Addml.Definitions
{
public class Separator
{
private static readonly Dictionary<string, string> SpecialSeparators = new Dictionary<string, string>
{
{"CRLF", "\r... | using System;
using System.Collections.Generic;
using Arkivverket.Arkade.Util;
namespace Arkivverket.Arkade.Core.Addml.Definitions
{
public class Separator
{
private static readonly Dictionary<string, string> SpecialSeparators = new Dictionary<string, string>
{
{"CRLF", "\r... | Support complex field- and record separators | Support complex field- and record separators
| C# | agpl-3.0 | arkivverket/arkade5,arkivverket/arkade5,arkivverket/arkade5 |
5a32e601417afa8943cdb097652e0e17ad15c956 | CotcSdk/Internal/CotcSettings.cs | CotcSdk/Internal/CotcSettings.cs | using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
namespace CotcSdk {
/** @cond private */
[Serializable]
public class CotcSettings : ScriptableObject {
public const string AssetPath = "Assets/Resources/CotcSettings.asset";
public static CotcSettings Instance {
get {
... | using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
namespace CotcSdk {
/** @cond private */
[Serializable]
public class CotcSettings : ScriptableObject {
public const string AssetPath = "Assets/Resources/CotcSettings.asset";
public static CotcSettings Instance {
get {
... | Use of UnityWebRequest for default http client. | Use of UnityWebRequest for default http client.
| C# | mit | clanofthecloud/unity-sdk,clanofthecloud/unity-sdk,xtralifecloud/unity-sdk,xtralifecloud/unity-sdk,clanofthecloud/unity-sdk,clanofthecloud/unity-sdk,xtralifecloud/unity-sdk,clanofthecloud/unity-sdk,xtralifecloud/unity-sdk,clanofthecloud/unity-sdk |
e03c3f31a41f7f00e13ebc9fb45be763c303e3cc | core/Piranha.Local.FileStorage/FileStorageExtensions.cs | core/Piranha.Local.FileStorage/FileStorageExtensions.cs | /*
* Copyright (c) 2018 Håkan Edling
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*
* https://github.com/piranhacms/piranha.core
*
*/
using Microsoft.Extensions.DependencyInjection;
using Piranha;
using Piranha.Local;
public stati... | /*
* Copyright (c) 2018 Håkan Edling
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*
* https://github.com/piranhacms/piranha.core
*
*/
using Microsoft.Extensions.DependencyInjection;
using Piranha;
using Piranha.Local;
... | Add basePath and baseUrl parameters at AddPiranhaFileStorage extension method. | Add basePath and baseUrl parameters at AddPiranhaFileStorage extension method.
| C# | mit | PiranhaCMS/piranha.core,PiranhaCMS/piranha.core,PiranhaCMS/piranha.core,PiranhaCMS/piranha.core |
45cbc8d55a830be9f076457349ae5defa4f6bfed | CollAction/Helpers/InputSanitizer.cs | CollAction/Helpers/InputSanitizer.cs | using Ganss.XSS;
namespace CollAction.Helpers
{
public static class InputSanitizer
{
public static string Sanitize(string input)
{
var saniziter = new HtmlSanitizer(
allowedTags: new[] { "p", "br", "strong", "em", "i", "u", "a", "ol", "ul", "li" },
al... | using Ganss.XSS;
namespace CollAction.Helpers
{
public static class InputSanitizer
{
public static string Sanitize(string input)
{
var saniziter = new HtmlSanitizer(
allowedTags: new[] { "p", "br", "strong", "em", "i", "u", "a", "ol", "ul", "li" },
al... | Allow only http/https schemes, and href attribute to contain an uri. | Allow only http/https schemes, and href attribute to contain an uri.
| C# | agpl-3.0 | CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction,CollActionteam/CollAction |
0ec6a1b3e6e32f62c5441a3514d2933afb7edd32 | src/Dialog/PackageManagerUI/BaseProvider/PackagesSearchNode.cs | src/Dialog/PackageManagerUI/BaseProvider/PackagesSearchNode.cs | using System;
using System.Linq;
using Microsoft.VisualStudio.ExtensionsExplorer;
namespace NuGet.Dialog.Providers {
internal class PackagesSearchNode : PackagesTreeNodeBase {
private string _searchText;
private readonly PackagesTreeNodeBase _baseNode;
public PackagesTreeNodeB... | using System;
using System.Linq;
using Microsoft.VisualStudio.ExtensionsExplorer;
namespace NuGet.Dialog.Providers {
internal class PackagesSearchNode : PackagesTreeNodeBase {
private string _searchText;
private readonly PackagesTreeNodeBase _baseNode;
public PackagesTreeNodeB... | Fix bug: Searching too fast in dialog returns no results when enter is pressed Work items: 598 | Fix bug: Searching too fast in dialog returns no results when enter is pressed
Work items: 598
--HG--
branch : 1.1
| C# | apache-2.0 | OneGet/nuget,zskullz/nuget,oliver-feng/nuget,mrward/NuGet.V2,GearedToWar/NuGet2,RichiCoder1/nuget-chocolatey,ctaggart/nuget,rikoe/nuget,OneGet/nuget,pratikkagda/nuget,GearedToWar/NuGet2,indsoft/NuGet2,OneGet/nuget,chester89/nugetApi,jholovacs/NuGet,mrward/nuget,mono/nuget,akrisiun/NuGet,dolkensp/node.net,rikoe/nuget,mr... |
f0a2be5c7f49ae178be4f917239410b2e8d7f927 | OpenOrderFramework/Controllers/JsonNetResult.cs | OpenOrderFramework/Controllers/JsonNetResult.cs | using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace OpenOrderFramework.Controllers
{
public class JsonNetResult : JsonResult
{
public override void ExecuteResult(ControllerConte... | using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace OpenOrderFramework.Controllers
{
public class JsonNetResult : JsonResult
{
public override void ExecuteResult(ControllerConte... | Use camelCase for new widgets | Use camelCase for new widgets
| C# | mit | ParcelForMe/p4m-demo-shop,ParcelForMe/p4m-demo-shop,ParcelForMe/p4m-demo-shop,ParcelForMe/p4m-demo-shop |
c70473f762a86f02d57f3ed9396aedbf7e886c60 | tests/Auth0.ManagementApi.IntegrationTests/StatsTests.cs | tests/Auth0.ManagementApi.IntegrationTests/StatsTests.cs | using System;
using System.Threading.Tasks;
using FluentAssertions;
using Xunit;
using Auth0.Tests.Shared;
namespace Auth0.ManagementApi.IntegrationTests
{
public class StatsTests : TestBase
{
[Fact(Skip = "Inactivity causes these to fail")]
public async Task Test_stats_sequence()
{
... | using System;
using System.Threading.Tasks;
using FluentAssertions;
using Xunit;
using Auth0.Tests.Shared;
using System.Linq;
namespace Auth0.ManagementApi.IntegrationTests
{
public class StatsTests : TestBase
{
[Fact]
public async Task Daily_Stats_Returns_Values()
{
string... | Break failing test into working & non-working parts | Break failing test into working & non-working parts
| C# | mit | auth0/auth0.net,auth0/auth0.net |
24f372619f061086ffacd7370041d85b037f586d | Gibe.DittoProcessors/Processors/ParentAttribute.cs | Gibe.DittoProcessors/Processors/ParentAttribute.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Gibe.DittoProcessors.Processors
{
public class ParentAttribute : TestableDittoProcessorAttribute
{
private readonly uint _parentDepth;
public ParentAttribute(uint parentDepth = 1)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Gibe.DittoProcessors.Processors
{
public class ParentAttribute : TestableDittoProcessorAttribute
{
public override object ProcessValue()
{
return Context.Content.Parent;
}
}
}
| Revert "Navigate up many parents" | Revert "Navigate up many parents"
This reverts commit f430cc765b43b22d56ce20dae47a331401f0dbd3.
| C# | mit | Gibe/Gibe.DittoProcessors |
b68c1fa810d8d248d504d706dd48c28a342af487 | src/PublicApiGenerator/AttributeFilter.RequiredAttributeNames.cs | src/PublicApiGenerator/AttributeFilter.RequiredAttributeNames.cs | using System.Collections.Generic;
namespace PublicApiGenerator
{
partial class AttributeFilter
{
private static readonly HashSet<string> RequiredAttributeNames = new HashSet<string>
{
"System.Diagnostics.CodeAnalysis.AllowNullAttribute",
"System.Diagnostics.CodeAnalysis.... | using System.Collections.Generic;
namespace PublicApiGenerator
{
partial class AttributeFilter
{
private static readonly HashSet<string> RequiredAttributeNames = new HashSet<string>
{
"System.Diagnostics.CodeAnalysis.AllowNullAttribute",
"System.Diagnostics.CodeAnalysis.... | Add attributes that can't be easily tested due to being public in the current target framework | Add attributes that can't be easily tested due to being public in the current target framework
| C# | mit | JakeGinnivan/ApiApprover |
5c86f56ff2a10390af5039956a788ec083034aef | Tests/Noesis.Javascript.Tests/JavascriptFunctionTests.cs | Tests/Noesis.Javascript.Tests/JavascriptFunctionTests.cs | using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Noesis.Javascript.Tests
{
[TestClass]
public class JavascriptFunctionTests
{
private JavascriptContext _context;
[TestInitialize]
public void SetUp()
{
_context = new Javascri... | using System.Collections.Generic;
using System.Linq;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Noesis.Javascript.Tests
{
[TestClass]
public class JavascriptFunctionTests
{
private JavascriptContext _context;
[TestInitialize]
public void ... | Add more tests for function passing and managed object interop | Add more tests for function passing and managed object interop
| C# | bsd-2-clause | JavascriptNet/Javascript.Net,JavascriptNet/Javascript.Net |
5c13200c75d581b796306b04e5d21ad3082beb3b | osu.Game/Online/ProductionEndpointConfiguration.cs | osu.Game/Online/ProductionEndpointConfiguration.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.Game.Online
{
public class ProductionEndpointConfiguration : EndpointConfiguration
{
public ProductionEndpointConfiguration()
{
... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Online
{
public class ProductionEndpointConfiguration : EndpointConfiguration
{
public ProductionEndpointConfiguration()
{
... | Update production endpoint to new version | Update production endpoint to new version
| C# | mit | ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,ppy/osu,NeoAdonis/osu |
6951ebc0c3e848ec964062ed2cdb8758d94b1b8b | src/FluentMigrator/VersionTableInfo/DefaultVersionTableMetaData.cs | src/FluentMigrator/VersionTableInfo/DefaultVersionTableMetaData.cs | #region License
//
// Copyright (c) 2007-2009, Sean Chambers <schambers80@gmail.com>
//
// 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
/... | #region License
//
// Copyright (c) 2007-2009, Sean Chambers <schambers80@gmail.com>
//
// 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
/... | Make default version table meta data virtual | Make default version table meta data virtual
| C# | apache-2.0 | wolfascu/fluentmigrator,dealproc/fluentmigrator,lcharlebois/fluentmigrator,eloekset/fluentmigrator,lcharlebois/fluentmigrator,KaraokeStu/fluentmigrator,drmohundro/fluentmigrator,bluefalcon/fluentmigrator,mstancombe/fluentmig,vgrigoriu/fluentmigrator,daniellee/fluentmigrator,schambers/fluentmigrator,barser/fluentmigrato... |
c113704f55ebd45828935fefbcd712f6ed47ea8c | src/Cassette.Views/HtmlString.cs | src/Cassette.Views/HtmlString.cs | namespace Cassette.Views
{
#if NET35
public interface IHtmlString
{
string ToHtmlString();
}
public class HtmlString : IHtmlString
{
string _htmlString;
public HtmlString(string htmlString)
{
this._htmlString = htmlString;
}
public stri... | #if NET35
namespace Cassette.Views
{
public interface IHtmlString
{
string ToHtmlString();
}
public class HtmlString : IHtmlString
{
string _htmlString;
public HtmlString(string htmlString)
{
this._htmlString = htmlString;
}
public stri... | Move conditional compilation around namespace. | Move conditional compilation around namespace.
| C# | mit | BluewireTechnologies/cassette,honestegg/cassette,BluewireTechnologies/cassette,honestegg/cassette,damiensawyer/cassette,andrewdavey/cassette,andrewdavey/cassette,damiensawyer/cassette,damiensawyer/cassette,andrewdavey/cassette,honestegg/cassette |
f992a119ace73ea52a1874d066ecd9bd28dd5c4b | src/backend/SO115App.API.Oracle/Controllers/MezziController.cs | src/backend/SO115App.API.Oracle/Controllers/MezziController.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace SO115App.API.Oracle.Controllers
{
public class MezziController : ApiController
{
// GET: api/Mezzi
public IEnumerable<string> Get()
{
... | using SO115App.Persistence.Oracle.Classi;
using SO115App.Persistence.Oracle.Servizi.Mezzi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace SO115App.API.Oracle.Controllers
{
public class MezziController : ApiController
... | ADD - Aggiunto controller per il reperimento dei mezzi utilizzabili | ADD - Aggiunto controller per il reperimento dei mezzi utilizzabili
| C# | agpl-3.0 | vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf,vvfosprojects/sovvf |
7b1f28d33dae0ed7a33d0db28014fd61ca47f4ea | ExtraLINQ.Tests/Extensions/NameValueCollection/ToDictionaryTests.cs | ExtraLINQ.Tests/Extensions/NameValueCollection/ToDictionaryTests.cs | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using ExtraLinq;
using FluentAssertions;
using NUnit.Framework;
namespace ExtraLINQ.Tests
{
[TestFixture]
public class ToDictionaryTests
{
[ExpectedException(typeof(ArgumentNullException))]
[Test]
... | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using ExtraLinq;
using FluentAssertions;
using NUnit.Framework;
namespace ExtraLINQ.Tests
{
[TestFixture]
public class ToDictionaryTests
{
[ExpectedException(typeof(ArgumentNullException))]
[Test]
... | Test for converting an empty NameValueCollection | Test for converting an empty NameValueCollection
| C# | mit | JBTech/ExtraLINQ,modulexcite/ExtraLINQ,mariusschulz/ExtraLINQ |
4503596cc478345f10a60528fa6b118d27d6e9f1 | src/GitHub.InlineReviews/PullRequestStatusPackage.cs | src/GitHub.InlineReviews/PullRequestStatusPackage.cs | using System;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.ComponentModelHost;
using GitHub.VisualStudio;
using GitHub.InlineReviews.Services;
namespace GitHub.InlineReviews
{
[PackageRegistration(UseManagedResou... | using System;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.ComponentModelHost;
using GitHub.VisualStudio;
using GitHub.InlineReviews.Services;
namespace GitHub.InlineReviews
{
[PackageRegistration(UseManagedResourcesOnly = true)]
[Guid(Guids.PullReques... | Make PR status visible when GitSccProvider is loaded | Make PR status visible when GitSccProvider is loaded
| C# | mit | github/VisualStudio,github/VisualStudio,github/VisualStudio |
e682ca4fd9a17cf90ac083ec5ff8faf317606b59 | osu.Game.Rulesets.Mania/Configuration/ManiaRulesetConfigManager.cs | osu.Game.Rulesets.Mania/Configuration/ManiaRulesetConfigManager.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.Configuration.Tracking;
using osu.Game.Configuration;
using osu.Game.Rulesets.Configuration;
using osu.Game.Rulesets.Mania.UI;
namespace osu.Game.Ru... | // 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.Configuration.Tracking;
using osu.Game.Configuration;
using osu.Game.Rulesets.Configuration;
using osu.Game.Rulesets.Mania.UI;
namespace osu.Game.Ru... | Adjust osu!mania scroll speed defaults to be more sane | Adjust osu!mania scroll speed defaults to be more sane
| C# | mit | UselessToucan/osu,smoogipoo/osu,johnneijzen/osu,ppy/osu,EVAST9919/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,smoogipoo/osu,ZLima12/osu,ZLima12/osu,EVAST9919/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,johnneijzen/osu,ppy/osu,smoogipoo/osu,2yangk23/osu,2yangk23/osu,smoo... |
4a7f84772593b7843682d3ecdec980c373ef97e0 | Assets/Microgames/SuikaShake/Scripts/SuikaShakeSparkleSpawner.cs | Assets/Microgames/SuikaShake/Scripts/SuikaShakeSparkleSpawner.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SuikaShakeSparkleSpawner : MonoBehaviour
{
[SerializeField]
private float spanwStartTime = .05f;
[SerializeField]
private float spawnFrequency = .25f;
[SerializeField]
private GameObject sparklePrefab;
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SuikaShakeSparkleSpawner : MonoBehaviour
{
[SerializeField]
private float spanwStartTime = .05f;
[SerializeField]
private float spawnFrequency = .25f;
[SerializeField]
private GameObject sparklePrefab;
... | Remove star creation debug printing | Remove star creation debug printing
| C# | mit | Barleytree/NitoriWare,NitorInc/NitoriWare,NitorInc/NitoriWare,Barleytree/NitoriWare |
ba18a98fd4f915f6ffb69db1d8d021b984860909 | csharp-github-api.IntegrationTests/IntegrationTestBase.cs | csharp-github-api.IntegrationTests/IntegrationTestBase.cs | using System;
using Kayak;
using Kayak.Framework;
namespace csharp_github_api.IntegrationTests
{
public abstract class IntegrationTestBase : IDisposable
{
protected readonly KayakServer WebServer = new KayakServer();
protected string BaseUrl = "http://localhost:8080";
protected Integr... | using System;
using System.Linq;
using System.Text;
using Kayak;
using Kayak.Framework;
namespace csharp_github_api.IntegrationTests
{
public abstract class IntegrationTestBase : IDisposable
{
protected readonly KayakServer WebServer = new KayakServer();
protected string BaseUrl = "http://loca... | Handle Kayak framwork's Invoking event - here we can catch the total number of requests made, as well as do some basic authentication. | Handle Kayak framwork's Invoking event - here we can catch the total number of requests made, as well as do some basic authentication.
| C# | apache-2.0 | sgrassie/csharp-github-api,bmroberts1987/csharp-github-api |
8b71f642cce900ffd5123956d334f458d93d186d | src/ZBuildLightsUpdater/ZBuildLightsUpdaterService.cs | src/ZBuildLightsUpdater/ZBuildLightsUpdaterService.cs | using System;
using System.Configuration;
using System.IO;
using System.Net;
using System.ServiceProcess;
using System.Timers;
using NLog;
namespace ZBuildLightsUpdater
{
public partial class ZBuildLightsUpdaterService : ServiceBase
{
private static readonly Logger Log = LogManager.GetCurrentClassLogg... | using System;
using System.Configuration;
using System.Net;
using System.ServiceProcess;
using System.Timers;
using NLog;
namespace ZBuildLightsUpdater
{
public partial class ZBuildLightsUpdaterService : ServiceBase
{
private static readonly Logger Log = LogManager.GetCurrentClassLogger();
pri... | Remove old logging line. Causes an exception if the directory doesn't exist. | Remove old logging line. Causes an exception if the directory doesn't exist.
| C# | mit | mhinze/ZBuildLights,Vector241-Eric/ZBuildLights,mhinze/ZBuildLights,Vector241-Eric/ZBuildLights,mhinze/ZBuildLights,Vector241-Eric/ZBuildLights |
e740deb9c38f3b742bf5ae165cdcb13e716f6749 | CSharp/Tests/Microsoft.Bot.Builder.Tests/ActivityExTests.cs | CSharp/Tests/Microsoft.Bot.Builder.Tests/ActivityExTests.cs | using System.Linq;
using Microsoft.Bot.Connector;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Microsoft.Bot.Builder.Tests
{
[TestClass]
public class ActivityExTests
{
[TestMethod]
public void HasContent_Test()
{
IMessageActivity activity = DialogTestBa... | using System.Collections.Generic;
using System.Linq;
using Microsoft.Bot.Connector;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json;
namespace Microsoft.Bot.Builder.Tests
{
[TestClass]
public class ActivityExTests
{
[TestMethod]
public void HasContent_Test()
... | Fix getmentions tests and add missing TestMethod attribute | Fix getmentions tests and add missing TestMethod attribute
| C# | mit | msft-shahins/BotBuilder,stevengum97/BotBuilder,stevengum97/BotBuilder,yakumo/BotBuilder,msft-shahins/BotBuilder,yakumo/BotBuilder,stevengum97/BotBuilder,yakumo/BotBuilder,stevengum97/BotBuilder,yakumo/BotBuilder,msft-shahins/BotBuilder,msft-shahins/BotBuilder |
24cd425d42211dd9784e05370bda9b1bd42f020c | DemoPrograms/ReaderHaskellDocsExample1/Program.cs | DemoPrograms/ReaderHaskellDocsExample1/Program.cs | using System;
using System.Collections.Generic;
using System.Linq;
using MonadLib;
namespace ReaderHaskellDocsExample1
{
using Bindings = IDictionary<string, int>;
internal class Program
{
private static void Main()
{
var sampleBindings = new Dictionary<string, int>
... | using System;
using System.Collections.Generic;
using System.Linq;
using MonadLib;
namespace ReaderHaskellDocsExample1
{
using Bindings = IDictionary<string, int>;
internal class Program
{
private static void Main()
{
var sampleBindings = new Dictionary<string, int>
... | Tweak to one of the demo programs | Tweak to one of the demo programs
| C# | mit | taylorjg/Monads |
db4a585b265416e8cd3d4107a0ef85a5b5e03b8d | Source/Eto.Platform.iOS/EtoAppDelegate.cs | Source/Eto.Platform.iOS/EtoAppDelegate.cs | using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using Eto.Platform.iOS.Forms;
using Eto.Forms;
namespace Eto.Platform.iOS
{
[MonoTouch.Foundation.Register("EtoAppDelegate")]
public class EtoAppDelegate : UIApplicationDelegate
{
public EtoAppDelegate ()
{
}
public override bool WillFinishLa... | using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using Eto.Platform.iOS.Forms;
using Eto.Forms;
namespace Eto.Platform.iOS
{
[MonoTouch.Foundation.Register("EtoAppDelegate")]
public class EtoAppDelegate : UIApplicationDelegate
{
public EtoAppDelegate ()
{
}
public override bool FinishedLaun... | Fix running on < iOS 6.0 | iOS: Fix running on < iOS 6.0
| C# | bsd-3-clause | PowerOfCode/Eto,l8s/Eto,bbqchickenrobot/Eto-1,bbqchickenrobot/Eto-1,l8s/Eto,l8s/Eto,PowerOfCode/Eto,bbqchickenrobot/Eto-1,PowerOfCode/Eto |
bb6ffdfd52423765a63eb7aa19d90b4f94f4b5b1 | src/CommandLine/Common/CommandLineRepositoryFactory.cs | src/CommandLine/Common/CommandLineRepositoryFactory.cs |
namespace NuGet.Common
{
public class CommandLineRepositoryFactory : PackageRepositoryFactory
{
public static readonly string UserAgent = "NuGet Command Line";
private readonly IConsole _console;
public CommandLineRepositoryFactory(IConsole console)
{
_... |
using System.Windows;
namespace NuGet.Common
{
public class CommandLineRepositoryFactory : PackageRepositoryFactory, IWeakEventListener
{
public static readonly string UserAgent = "NuGet Command Line";
private readonly IConsole _console;
public CommandLineRepositoryFactor... | Fix the problem that the web request is displayed twice when -Verbosity is set to detailed. | Fix the problem that the web request is displayed twice when -Verbosity is set to detailed.
The cause of the duplicate output is the change to fix issue 3801 (which
was caused by incorrect use of the weak event handler pattern). With
that fix, the SendingRequest handler will be called twice. The fix is to
use the wea... | C# | apache-2.0 | oliver-feng/nuget,GearedToWar/NuGet2,pratikkagda/nuget,mono/nuget,oliver-feng/nuget,mrward/nuget,OneGet/nuget,mrward/nuget,akrisiun/NuGet,oliver-feng/nuget,jmezach/NuGet2,pratikkagda/nuget,mrward/NuGet.V2,chocolatey/nuget-chocolatey,RichiCoder1/nuget-chocolatey,xoofx/NuGet,pratikkagda/nuget,antiufo/NuGet2,antiufo/NuGet... |
1220f2718bb545d5ff2ec06dd496b89877417f01 | src/DependencyInjection.Console/OddEvenPatternGenerator.cs | src/DependencyInjection.Console/OddEvenPatternGenerator.cs | namespace DependencyInjection.Console
{
internal class OddEvenPatternGenerator : IPatternGenerator
{
public Pattern Generate(int width, int height)
{
var generate = new Pattern(width, height);
var squares = generate.Squares;
for (var i = 0; i < squares.GetLe... | namespace DependencyInjection.Console
{
internal class OddEvenPatternGenerator : IPatternGenerator
{
public Pattern Generate(int width, int height)
{
var generate = new Pattern(width, height);
var squares = generate.Squares;
for (var i = 0; i < squares.GetLe... | Use bitwise operator (review by Clive) | Use bitwise operator (review by Clive)
| C# | mit | mjac/dependency-injection-kata-series,jcrang/dependency-injection-kata-series |
df6a755c3653a4c473c9031eea52198158cdf304 | osu.Game/Screens/Play/PlayerSettings/InputSettings.cs | osu.Game/Screens/Play/PlayerSettings/InputSettings.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.Allocation;
using osu.Framework.Graphics;
using osu.Game.Configuration;
namespace osu.Game.Screens.Play.PlayerSettings
{
public class InputSetti... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Configuration;
using osu.Game.Localisation;
namespace osu.Game.Screens.Play.PlayerSettings
... | Update player loader screen mouse disable text to use localised version | Update player loader screen mouse disable text to use localised version
| C# | mit | peppy/osu,peppy/osu,ppy/osu,peppy/osu,NeoAdonis/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,ppy/osu |
f06af4da99a86f54aab4c9a9c61a3049b4050a3e | src/SFA.DAS.Reservations.Api.Types/ReservationAllocationStatusResult.cs | src/SFA.DAS.Reservations.Api.Types/ReservationAllocationStatusResult.cs | using System.Collections.Generic;
using System.Linq;
namespace SFA.DAS.Reservations.Api.Types
{
public class ReservationAllocationStatusResult
{
public bool AutoReservations { get; set; }
}
} | namespace SFA.DAS.Reservations.Api.Types
{
public class ReservationAllocationStatusResult
{
public bool CanAutoCreateReservations { get; set; }
}
} | Update automatic reservations flag to match what has been implemented | Update automatic reservations flag to match what has been implemented
| C# | mit | SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments,SkillsFundingAgency/das-commitments |
039c51ae332b9f6146df36fd40ce48d2071cc7e4 | Kudu.Client/Infrastructure/HttpResponseMessageExtensions.cs | Kudu.Client/Infrastructure/HttpResponseMessageExtensions.cs | using System;
using System.Net;
using System.Net.Http;
namespace Kudu.Client
{
public static class HttpResponseMessageExtensions
{
/// <summary>
/// Determines if the HttpResponse is successful, throws otherwise.
/// </summary>
public static HttpResponseMessage EnsureSuccessful... | using System;
using System.Net;
using System.Net.Http;
namespace Kudu.Client
{
public static class HttpResponseMessageExtensions
{
/// <summary>
/// Determines if the HttpResponse is successful, throws otherwise.
/// </summary>
public static HttpResponseMessage EnsureSuccessful... | Print out the response as a string when the exception is not JSON | Print out the response as a string when the exception is not JSON
| C# | apache-2.0 | projectkudu/kudu,puneet-gupta/kudu,juoni/kudu,uQr/kudu,shanselman/kudu,bbauya/kudu,MavenRain/kudu,dev-enthusiast/kudu,barnyp/kudu,shibayan/kudu,MavenRain/kudu,uQr/kudu,kali786516/kudu,projectkudu/kudu,EricSten-MSFT/kudu,shibayan/kudu,duncansmart/kudu,badescuga/kudu,shrimpy/kudu,uQr/kudu,chrisrpatterson/kudu,sitereactor... |
3601a9825ae70abcf1cc6cc345c65dab2fd9db27 | Cogito.Core/ExceptionExtensions.cs | Cogito.Core/ExceptionExtensions.cs | using System;
using System.Diagnostics.Contracts;
namespace Cogito
{
public static class ExceptionExtensions
{
/// <summary>
/// Traces the exception to the default trace source as an error.
/// </summary>
/// <param name="self"></param>
public static void Trace(this ... | using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
namespace Cogito
{
public static class ExceptionExtensions
{
/// <summary>
/// Traces the exception to the default trace source as an error.
/// </summary>
/// <param name="self"></param>
... | Make sure to expand out exceptions. | Make sure to expand out exceptions.
| C# | mit | wasabii/Cogito,wasabii/Cogito |
036be86ba0114d9185a91a1eefd985bbd8532eb5 | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | Trappist/src/Promact.Trappist.Core/Controllers/QuestionsController.cs | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | using Microsoft.AspNetCore.Mvc;
using Promact.Trappist.DomainModel.Models.Question;
using Promact.Trappist.Repository.Questions;
using System;
namespace Promact.Trappist.Core.Controllers
{
[Route("api/question")]
public class QuestionsController : Controller
{
private readonly IQuestionRepository ... | Update server side API for single multiple answer question | Update server side API for single multiple answer question
| C# | mit | Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist,Promact/trappist |
07b8cfc15783b802d6dc8e2931f4fbac9d20550c | Equality/StructEqualityComparer.cs | Equality/StructEqualityComparer.cs | using System;
using System.Collections.Generic;
namespace Equality {
public struct StructEqualityComparer<T> : IEqualityComparer<T> where T : struct {
public static StructEqualityComparer<T> Default = new StructEqualityComparer<T>();
public Boolean Equals(T x, T y) => Struct.Equals(ref x, ref y);
public Int32 ... | using System;
using System.Collections.Generic;
namespace Equality {
public struct StructEqualityComparer<T> : IEqualityComparer<T> where T : struct {
public static StructEqualityComparer<T> Default = new StructEqualityComparer<T>();
public Boolean Equals(T x, T y) => Struct.Equals(ref x, ref y);
public Int32 ... | Make the two extra ByRef value-type equality comparer methods static | Make the two extra ByRef value-type equality comparer methods static
| C# | mit | NickStrupat/Equality |
52c7ed99607028bef24a0f13073638866e09931f | osu.Game/Online/API/APIDownloadRequest.cs | osu.Game/Online/API/APIDownloadRequest.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.IO;
using osu.Framework.IO.Network;
namespace osu.Game.Online.API
{
public abstract class APIDownloadRequest : APIRequest
{
private string ... | // 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.IO;
using osu.Framework.IO.Network;
namespace osu.Game.Online.API
{
public abstract class APIDownloadRequest : APIRequest
{
private string ... | Add ability to change the flie extension of API download requests | Add ability to change the flie extension of API download requests
| C# | mit | 2yangk23/osu,NeoAdonis/osu,johnneijzen/osu,EVAST9919/osu,ZLima12/osu,UselessToucan/osu,EVAST9919/osu,peppy/osu-new,smoogipoo/osu,peppy/osu,UselessToucan/osu,ppy/osu,ZLima12/osu,UselessToucan/osu,NeoAdonis/osu,johnneijzen/osu,2yangk23/osu,peppy/osu,NeoAdonis/osu,smoogipooo/osu,ppy/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu... |
8322a7ed6a2797bc8c537ed3cefb2e78ada1a963 | osu.Framework.Tests/Audio/AudioCollectionManagerTest.cs | osu.Framework.Tests/Audio/AudioCollectionManagerTest.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.Threading;
using NUnit.Framework;
using osu.Framework.Audio;
namespace osu.Framework.Tests.Audio
{
[TestFixture]
public class AudioCollectionManage... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Threading;
using NUnit.Framework;
using osu.Framework.Audio;
namespace osu.Framework.Tests.Audio
{
[TestFixture]
public class AudioCollectionManage... | Improve reliability of test by using semaphores | Improve reliability of test by using semaphores
| C# | mit | ppy/osu-framework,ZLima12/osu-framework,peppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework,smoogipooo/osu-framework,ppy/osu-framework,peppy/osu-framework,ZLima12/osu-framework |
fba9428efb8627ae077889b2f170e232b0bdba47 | src/Additio.Configuration/Node.cs | src/Additio.Configuration/Node.cs | using System;
using System.Collections.Generic;
namespace Additio.Configuration
{
public class Node
{
public const string IncludeFolderPath = @"App_Config\Include";
public string FilePath { get; set; }
public string RelativePath => FilePath.Remove(0, FilePath.IndexOf(IncludeFolderPat... | using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace Additio.Configuration
{
[DebuggerDisplay("{RelativePath}")]
public class Node
{
private string Root { get; }
public Node(string root)
{
if (!root.EndsWith("\\"))
root +=... | Make node root path variable and add debugger display | Make node root path variable and add debugger display
| C# | unlicense | Krusen/Additio.Sitecore.DependencyConfigReader |
e3bdaafd46bf53d3cd9339a0abbc74a49c4d5288 | SupportManager.Control/ATHelper.cs | SupportManager.Control/ATHelper.cs | using System;
using System.IO.Ports;
using MYCroes.ATCommands;
using MYCroes.ATCommands.Forwarding;
namespace SupportManager.Control
{
public class ATHelper : IDisposable
{
private readonly SerialPort serialPort;
public ATHelper(string port)
{
serialPort = new SerialPort(po... | using System;
using System.IO.Ports;
using MYCroes.ATCommands;
using MYCroes.ATCommands.Forwarding;
namespace SupportManager.Control
{
public class ATHelper : IDisposable
{
private readonly SerialPort serialPort;
public ATHelper(string portConnectionString)
{
serialPort = S... | Replace SerialPort construction with factory invocation | Replace SerialPort construction with factory invocation
Allows properties to be set on the SerialPort while preserving backward
compatibility (i.e. "COM3" is still valid).
| C# | mit | mycroes/SupportManager,mycroes/SupportManager,mycroes/SupportManager |
61bc0351a6cb706ba9b64c1b25b52c2f907c45c0 | src/EndlessAges.LauncherService/Controllers/ContentManager.cs | src/EndlessAges.LauncherService/Controllers/ContentManager.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace EndlessAges.LauncherService.Controllers
{
/// <summary>
/// Emulated controller ContentManager.aspx from the Endless Ages backend.
/// </summary>
[Route("Con... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace EndlessAges.LauncherService.Controllers
{
/// <summary>
/// Emulated controller ContentManager.aspx from the Endless Ages backend.
/// </summary>
[Route("Con... | Add installer_patcher get controller method | Add installer_patcher get controller method
ContentManager.aspx?installer_patcher=ENDLESS
| C# | mit | Endlessages/EndlessAges.LauncherService |
e4780abdfddf1642ff454e2fcad4e882adbe58e7 | osu.Game/Overlays/Wiki/Markdown/WikiMarkdownContainer.cs | osu.Game/Overlays/Wiki/Markdown/WikiMarkdownContainer.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 Markdig.Extensions.Yaml;
using Markdig.Syntax;
using Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Containers.Markdo... | // 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 Markdig.Extensions.Yaml;
using Markdig.Syntax;
using Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Containers.Markdo... | Split out `base` call from `switch` statement | Split out `base` call from `switch` statement
| C# | mit | smoogipooo/osu,ppy/osu,peppy/osu,UselessToucan/osu,NeoAdonis/osu,UselessToucan/osu,peppy/osu,smoogipoo/osu,NeoAdonis/osu,smoogipoo/osu,peppy/osu-new,NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu |
be9d6bcad9892fc6f4a6dc41b8375f2faa8884a0 | Zk.Tests/Helpers/UrlHelperExtensionTest.cs | Zk.Tests/Helpers/UrlHelperExtensionTest.cs | using NUnit.Framework;
using System.Web.Mvc;
using System.Web.Routing;
using Zk.Helpers;
namespace Zk.Tests
{
[TestFixture]
public class UrlHelperExtensionTest
{
[Test]
public void UrlHelper_CreatePartialViewName()
{
// ARRANGE
var httpContext = MvcMockHel... | using NUnit.Framework;
using System.Web.Mvc;
using System.Web.Routing;
using Zk.Helpers;
namespace Zk.Tests
{
[Ignore]
[TestFixture]
public class UrlHelperExtensionTest
{
[Test]
public void UrlHelper_CreatePartialViewName()
{
// ARRANGE
var httpContext... | Add ignore attribute to test which for some reason fails when it is run together with other tests | Add ignore attribute to test which for some reason fails when it is run together with other tests
| C# | mit | erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner,erooijak/oogstplanner |
3efb97e307b38d9d5f1868133958855ee461e05b | 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.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 : ... | Use MirroringPackageRepository to auto-mirror packages in OData lookup. | Use MirroringPackageRepository to auto-mirror packages in OData lookup.
| C# | apache-2.0 | googol/NuGet.Lucene,Stift/NuGet.Lucene,themotleyfool/NuGet.Lucene |
03d07ad80384d7e30f2c8f4ec81fe8701401f4c8 | MalApi.IntegrationTests/GetRecentOnlineUsersTest.cs | MalApi.IntegrationTests/GetRecentOnlineUsersTest.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
namespace MalApi.IntegrationTests
{
public class GetRecentOnlineUsersTest
{
public void GetRecentOnlineUsers()
{
using (MyAnimeListApi api = new MyAnimeListApi())
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
namespace MalApi.IntegrationTests
{
public class GetRecentOnlineUsersTest
{
[Fact]
public void GetRecentOnlineUsers()
{
using (MyAnimeListApi api = new MyAnimeListApi())
... | Add [Fact] attribute to a test that was missing it, regaining coverage. | Add [Fact] attribute to a test that was missing it, regaining coverage.
| C# | apache-2.0 | LHCGreg/mal-api,LHCGreg/mal-api |
7835076aec203474c110d5ba4427a476a1801004 | src/System.Private.StackTraceGenerator/src/Internal/Dia/Guids.cs | src/System.Private.StackTraceGenerator/src/Internal/Dia/Guids.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.Diagnostics;
using System.Collections.Generic;
namespace Internal.StackGenerator.Dia
{
... | // 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.Diagnostics;
using System.Collections.Generic;
namespace Internal.StackGenerator.Dia
{
... | Add support for MSDIA140 to DIA-based CoreRT/.NETNative StackTraceGenerator on Windows | Add support for MSDIA140 to DIA-based CoreRT/.NETNative StackTraceGenerator on Windows
Include the CLSID of MSDIA140 in the lookup for IDiaSource to enable DIA-based symbolic exception stack traces on machines with new VS installation that only include msdia140.
[tfs-changeset: 1650741]
| C# | mit | botaberg/corert,shrah/corert,tijoytom/corert,botaberg/corert,tijoytom/corert,krytarowski/corert,shrah/corert,gregkalapos/corert,shrah/corert,botaberg/corert,gregkalapos/corert,yizhang82/corert,gregkalapos/corert,botaberg/corert,gregkalapos/corert,yizhang82/corert,krytarowski/corert,krytarowski/corert,yizhang82/corert,k... |
22648d3f437934156b59113d5576d79c79e72b0a | MultiMiner.WhatMine/Extensions/CoinInformationExtensions.cs | MultiMiner.WhatMine/Extensions/CoinInformationExtensions.cs | using MultiMiner.CoinApi.Data;
using MultiMiner.Xgminer.Data;
using Newtonsoft.Json.Linq;
using System.Linq;
namespace MultiMiner.WhatMine.Extensions
{
public static class CoinInformationExtensions
{
public static void PopulateFromJson(this CoinInformation coinInformation, JToken jToken)
{
... | using MultiMiner.CoinApi.Data;
using MultiMiner.Xgminer.Data;
using Newtonsoft.Json.Linq;
using System;
using System.Linq;
namespace MultiMiner.WhatMine.Extensions
{
public static class CoinInformationExtensions
{
public static void PopulateFromJson(this CoinInformation coinInformation, JToken jToken)... | Use SingleOrDefault as we may not know all WhatMine.com algorithms | Use SingleOrDefault as we may not know all WhatMine.com algorithms
| C# | mit | nwoolls/MultiMiner,nwoolls/MultiMiner,IWBWbiz/MultiMiner,IWBWbiz/MultiMiner |
b3d1e1bfac791496690261dddba6f8ea2dd61ebd | Core/Notification/Example/FormNotificationExample.cs | Core/Notification/Example/FormNotificationExample.cs | using System.Windows.Forms;
using TweetDuck.Core.Controls;
using TweetDuck.Plugins;
using TweetDuck.Resources;
namespace TweetDuck.Core.Notification.Example{
sealed class FormNotificationExample : FormNotificationMain{
public override bool RequiresResize => true;
protected override bool CanDragWin... | using System.Windows.Forms;
using TweetDuck.Core.Controls;
using TweetDuck.Plugins;
using TweetDuck.Resources;
namespace TweetDuck.Core.Notification.Example{
sealed class FormNotificationExample : FormNotificationMain{
public override bool RequiresResize => true;
protected override bool CanDragWin... | Fix example notification timer breaking on skip (forward mouse button or Enter) | Fix example notification timer breaking on skip (forward mouse button or Enter)
| C# | mit | chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck,chylex/TweetDuck |
1255ac03ac799e6be91af0103c627d7eb0b53d10 | src/AlloyDemoKit/Business/Channels/DisplayResolutionBase.cs | src/AlloyDemoKit/Business/Channels/DisplayResolutionBase.cs | using System;
using EPiServer.Framework.Localization;
using EPiServer.ServiceLocation;
using EPiServer.Web;
namespace AlloyDemoKit.Business.Channels
{
/// <summary>
/// Base class for all resolution definitions
/// </summary>
public abstract class DisplayResolutionBase : IDisplayResolution
{
... | using EPiServer.Framework.Localization;
using EPiServer.ServiceLocation;
using EPiServer.Web;
namespace AlloyDemoKit.Business.Channels
{
/// <summary>
/// Base class for all resolution definitions
/// </summary>
public abstract class DisplayResolutionBase : IDisplayResolution
{
private Inje... | Revert "Fix threading issue on initialisation" | Revert "Fix threading issue on initialisation"
This reverts commit b7dc99206b36c34ddc5d10607edc315e6d7bf5f8.
| C# | apache-2.0 | episerver/AlloyDemoKit,episerver/AlloyDemoKit,episerver/AlloyDemoKit |
beab534a4524b439eb62b9418b16bed6cea00c35 | src/System.Collections/tests/Generic/Dictionary/HashCollisionScenarios/OutOfBoundsRegression.cs | src/System.Collections/tests/Generic/Dictionary/HashCollisionScenarios/OutOfBoundsRegression.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.Collections.Generic;
using Xunit;
namespace System.Collections.Tests
{
public class InternalHashC... | // 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.Collections.Generic;
using Xunit;
namespace System.Collections.Tests
{
public class InternalHashC... | Mark System.Collections HashCollisionScenario test as OuterLoop | Mark System.Collections HashCollisionScenario test as OuterLoop
Takes a long time: any changes to Dictionary's hashing algorithm are
likely to be checked very very carefully anyway, as this has the
potential to cause breaking changes
| C# | mit | yizhang82/corefx,Jiayili1/corefx,tijoytom/corefx,krytarowski/corefx,tijoytom/corefx,ravimeda/corefx,Ermiar/corefx,seanshpark/corefx,seanshpark/corefx,nbarbettini/corefx,weltkante/corefx,ptoonen/corefx,gkhanna79/corefx,dotnet-bot/corefx,stone-li/corefx,mazong1123/corefx,wtgodbe/corefx,tijoytom/corefx,Jiayili1/corefx,nch... |
35d1122d035ddb93f91c404d2cc0907a4ba48964 | Source/Lib/TraktApiSharp/Modules/TraktSearchModule.cs | Source/Lib/TraktApiSharp/Modules/TraktSearchModule.cs | namespace TraktApiSharp.Modules
{
using Enums;
using Objects.Basic;
using Requests;
using Requests.WithoutOAuth.Search;
using System.Threading.Tasks;
public class TraktSearchModule : TraktBaseModule
{
public TraktSearchModule(TraktClient client) : base(client) { }
public a... | namespace TraktApiSharp.Modules
{
using Enums;
using Objects.Basic;
using Requests;
using Requests.WithoutOAuth.Search;
using System;
using System.Threading.Tasks;
public class TraktSearchModule : TraktBaseModule
{
public TraktSearchModule(TraktClient client) : base(client) { }... | Add validation implementation in search module. | Add validation implementation in search module.
| C# | mit | henrikfroehling/TraktApiSharp |
2201fc745e4514cc9eff3104aa8f8e16e0585e86 | osu.Game/Storyboards/CommandLoop.cs | osu.Game/Storyboards/CommandLoop.cs | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
namespace osu.Game.Storyboards
{
public class CommandLoop : CommandTimelineGroup
{
public double LoopStartTi... | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
namespace osu.Game.Storyboards
{
public class CommandLoop : CommandTimelineGroup
{
public double LoopStartTi... | Fix storyboard loops start time when none of their commands start at 0. | Fix storyboard loops start time when none of their commands start at 0.
| C# | mit | UselessToucan/osu,johnneijzen/osu,ppy/osu,UselessToucan/osu,2yangk23/osu,NeoAdonis/osu,Nabile-Rahmani/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,EVAST9919/osu,ZLima12/osu,smoogipoo/osu,ppy/osu,smoogipoo/osu,peppy/osu,smoogipooo/osu,johnneijzen/osu,DrabWeb/osu,ZLima12/osu,peppy/osu-new,UselessToucan/osu,EVAST9919/osu... |
3cfb2f779df1a56df99883e2bbd5d66a56c32562 | TestAppUWP/Samples/InterControlAnimation/InterControlAnimation.xaml.cs | TestAppUWP/Samples/InterControlAnimation/InterControlAnimation.xaml.cs | using Windows.UI.Xaml;
namespace TestAppUWP.Samples.InterControlAnimation
{
public sealed partial class InterControlAnimation
{
private static Control2 _control2;
private static Control1 _control1;
public InterControlAnimation()
{
InitializeComponent();
... | using Windows.UI.Xaml;
namespace TestAppUWP.Samples.InterControlAnimation
{
public sealed partial class InterControlAnimation
{
private static Control2 _control2;
private static Control1 _control1;
public InterControlAnimation()
{
InitializeComponent();
... | Add some empty code to InterControlAnimation | Add some empty code to InterControlAnimation
| C# | mit | DanieleScipioni/TestApp |
0fbddd4e1c11c38d308f436631006960bca08976 | TicTacToe/ViewModels/TurnResultViewModel.cs | TicTacToe/ViewModels/TurnResultViewModel.cs | using TicTacToe.Core.Enums;
namespace TicTacToe.Web.ViewModels
{
public class TurnResultViewModel
{
public string Status { get; set; }
public string ErrorText { get; set; }
public bool IsGameDone { get; set; }
public PlayerCode Winner { get; set; }
public byte OpponentM... | using TicTacToe.Core.Enums;
namespace TicTacToe.Web.ViewModels
{
public class TurnResultViewModel
{
public string status { get; set; }
public string errorText { get; set; }
public bool isGameDone { get; set; }
public PlayerCode winner { get; set; }
public int opponentMo... | Change case for capability with js code. | Change case for capability with js code.
| C# | mit | beta-tank/TicTacToe,beta-tank/TicTacToe,beta-tank/TicTacToe |
d5f1d94b517703f202bfcf6dfe695eb46ee02f33 | osu.Game.Rulesets.Taiko/Skinning/LegacyHitExplosion.cs | osu.Game.Rulesets.Taiko/Skinning/LegacyHitExplosion.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.Graphics.Containers;
namespace osu.Game.Rulesets.Taiko.Skinning
{
public class LegacyHitExplosion : CompositeDrawab... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Rulesets.Taiko.Skinning
{
public class Lega... | Allow specifying two sprites for legacy hit explosions | Allow specifying two sprites for legacy hit explosions
| C# | mit | smoogipooo/osu,smoogipoo/osu,NeoAdonis/osu,ppy/osu,UselessToucan/osu,UselessToucan/osu,peppy/osu-new,NeoAdonis/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu,smoogipoo/osu,ppy/osu,peppy/osu |
8083c9c083933fa4ea7ffda95714480c69e37245 | TestEDITOR/Serializers/ProjectContractResolver.cs | TestEDITOR/Serializers/ProjectContractResolver.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 Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
us... | // 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 Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
usin... | Use ImmutableArray for IList interface | Use ImmutableArray for IList interface
| C# | mit | wieslawsoltes/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D,Core2D/Core2D,wieslawsoltes/Core2D |
1509ad3ba5d65197bf5ad09a37490f1ea8aacd7a | MusicXml/Domain/Note.cs | MusicXml/Domain/Note.cs | namespace MusicXml.Domain
{
public class Note
{
internal Note()
{
Type = string.Empty;
Duration = -1;
Voice = -1;
Staff = -1;
IsChordTone = false;
}
public string Type { get; internal set; }
public int Voice { get; internal set; }
public int Duration { get; internal set; }
public Ly... | namespace MusicXml.Domain
{
public class Note
{
internal Note()
{
Type = string.Empty;
Duration = -1;
Voice = -1;
Staff = -1;
IsChordTone = false;
Lyric = new Lyric();
Pitch = new Pitch();
}
public string Type { get; internal set; }
public int Voice { get; internal set; }
public ... | Add default values for lyric and pitch | Add default values for lyric and pitch
| C# | bsd-3-clause | reznet/MusicXml.Net,vdaron/MusicXml.Net,gerryaobrien/MusicXml.Net |
f3472fa363a7bfba85c89de6b62407b6c10bbfcd | Games/Unity/Oxide.Game.Rust/Libraries/Server.cs | Games/Unity/Oxide.Game.Rust/Libraries/Server.cs | using Oxide.Core.Libraries;
namespace Oxide.Game.Rust.Libraries
{
public class Server : Library
{
#region Chat and Commands
/// <summary>
/// Broadcasts a chat message to all players
/// </summary>
/// <param name="message"></param>
/// <param name="userId"></p... | using Oxide.Core.Libraries;
namespace Oxide.Game.Rust.Libraries
{
public class Server : Library
{
#region Chat and Commands
/// <summary>
/// Broadcasts a chat message to all players
/// </summary>
/// <param name="message"></param>
/// <param name="userId"></p... | Fix rust.BroadcastChat using wrong Broadcast method | [Rust] Fix rust.BroadcastChat using wrong Broadcast method
| C# | mit | Visagalis/Oxide,Visagalis/Oxide,LaserHydra/Oxide,LaserHydra/Oxide |
74ceb4f1cf2f6ff86300bd89578abb119cbe00b0 | src/CompetitionPlatform/Views/Project/AddResult.cshtml | src/CompetitionPlatform/Views/Project/AddResult.cshtml | @model CompetitionPlatform.Models.ProjectViewModels.AddResultViewModel
@*<form asp-controller="ProjectDetails" asp-action="SaveResult" enctype="multipart/form-data">
<div class="form-group col-md-10">
<input asp-for="@Model.ProjectId" type="hidden"/>
<input asp-for="@Model.ParticipantId... | @model CompetitionPlatform.Models.ProjectViewModels.AddResultViewModel
<br />
<br />
<br />
<section class="section section--competition_edit">
<div class="container">
<div class="content__left">
<form asp-controller="ProjectDetails" asp-action="SaveResult" enctype="multipart/form-data" class="... | Fix add result form styles. Remove Comments. | Fix add result form styles. Remove Comments.
| C# | mit | LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform,LykkeCity/CompetitionPlatform |
ff963f8c98fc4cda688b1a58486c446d89adeadf | 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.CodeAnalysis;
namespace osu.Framework.Extensions.ObjectExtensions
{
/// <summary>
/// Extensions that apply to all objects.
/// </su... | // 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.CodeAnalysis;
namespace osu.Framework.Extensions.ObjectExtensions
{
/// <summary>
/// Extensions that apply to all objects.
/// </su... | Remove class constraint on AsNonNull() | Remove class constraint on AsNonNull()
| C# | mit | peppy/osu-framework,ppy/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,ppy/osu-framework,ppy/osu-framework,peppy/osu-framework,smoogipooo/osu-framework |
46865075e7bd9203020be76bc8cfba1a4774ba1b | Properties/AssemblyInfo.cs | Properties/AssemblyInfo.cs | using System;
using System.Reflection;
[assembly: AssemblyTitle("Autofac.Extras.CommonServiceLocator")]
[assembly: AssemblyDescription("Autofac Adapter for the Microsoft CommonServiceLocator")]
| using System.Reflection;
[assembly: AssemblyTitle("Autofac.Extras.CommonServiceLocator")]
| Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major. | Build script now writes the package name and version into the AssemblyDescription attibute. This allows the package information to be seen in Visual Studio avoiding confusion with the assembly version that remains at the major.
| C# | mit | autofac/Autofac.Extras.CommonServiceLocator |
83becc06c6393afdb974375e30542211f01f9d5f | src/GitVersionCore/Helpers/OperationWithExponentialBackoff.cs | src/GitVersionCore/Helpers/OperationWithExponentialBackoff.cs | using System;
using System.Collections.Generic;
namespace GitVersion.Helpers
{
internal class OperationWithExponentialBackoff<T> where T : Exception
{
private IThreadSleep ThreadSleep;
private Action Operation;
private int MaxRetries;
public OperationWithExponentialBackoff(ITh... | using System;
using System.Collections.Generic;
namespace GitVersion.Helpers
{
internal class OperationWithExponentialBackoff<T> where T : Exception
{
private IThreadSleep ThreadSleep;
private Action Operation;
private int MaxRetries;
public OperationWithExponentialBackoff(ITh... | Write to log when retrying | Write to log when retrying
| C# | mit | DanielRose/GitVersion,dpurge/GitVersion,ermshiperete/GitVersion,GitTools/GitVersion,dazinator/GitVersion,asbjornu/GitVersion,ermshiperete/GitVersion,gep13/GitVersion,ermshiperete/GitVersion,onovotny/GitVersion,pascalberger/GitVersion,onovotny/GitVersion,onovotny/GitVersion,pascalberger/GitVersion,DanielRose/GitVersion,... |
9c3124346635161c806528002499c155a19b86be | crisischeckin/crisicheckinweb/Views/Volunteer/_FilterResults.cshtml | crisischeckin/crisicheckinweb/Views/Volunteer/_FilterResults.cshtml | @model IEnumerable<Models.Person>
@{
ViewBag.Title = "_FilterResults";
}
<style>
table, tr, th, td {
padding: 7px;
border: 1px solid grey;
}
</style>
<table>
<tr>
<th>Volunteer Name</th>
<th>Email</th>
<th>Phone</th>
<th>Cluster</th>
... | @model IEnumerable<Models.Person>
@{
ViewBag.Title = "_FilterResults";
}
<style>
table, tr, th, td {
padding: 7px;
border: 1px solid grey;
}
</style>
<table>
<tr>
<th>Volunteer Name</th>
<th>Email</th>
<th>Phone</th>
<th>Cluster</th... | Fix for the volunteer results page. Not finished. | Fix for the volunteer results page. Not finished.
| C# | apache-2.0 | andrewhart098/crisischeckin,jsucupira/crisischeckin,RyanBetker/crisischeckin,pottereric/crisischeckin,HTBox/crisischeckin,RyanBetker/crisischeckin,lloydfaulkner/crisischeckin,mjmilan/crisischeckin,djjlewis/crisischeckin,HTBox/crisischeckin,brunck/crisischeckin,mjmilan/crisischeckin,jsucupira/crisischeckin,lloydfaulkner... |
3f4e5d1dca41270d547ccbc3c328bcafba490315 | test/Microsoft.ApplicationInsights.AspNetCore.Tests/JavaScript/ApplicationInsightsJavaScriptTest.cs | test/Microsoft.ApplicationInsights.AspNetCore.Tests/JavaScript/ApplicationInsightsJavaScriptTest.cs | namespace Microsoft.Framework.DependencyInjection.Test
{
using Microsoft.ApplicationInsights.AspNetCore;
using Microsoft.ApplicationInsights.Extensibility;
using Xunit;
public static class ApplicationInsightsJavaScriptTest
{
[Fact]
public static void SnippetWillBeEmptyWhenInstrumen... | namespace Microsoft.Framework.DependencyInjection.Test
{
using Microsoft.ApplicationInsights.AspNetCore;
using Microsoft.ApplicationInsights.Extensibility;
using Xunit;
public static class ApplicationInsightsJavaScriptTest
{
[Fact]
public static void SnippetWillBeEmptyWhenInstrumen... | Improve JS Snippet unit test | Improve JS Snippet unit test
| C# | mit | Microsoft/ApplicationInsights-aspnetcore,Microsoft/ApplicationInsights-aspnetcore,Microsoft/ApplicationInsights-aspnet5,gzepeda/ApplicationInsights-aspnetcore,Microsoft/ApplicationInsights-aspnet5,gzepeda/ApplicationInsights-aspnetcore,Microsoft/ApplicationInsights-aspnet5,Microsoft/ApplicationInsights-aspnetcore,gzepe... |
1db53d2e60aed1ebcc09bee5892838155676acaa | Vaskelista/Migrations/201409021138021_RoomHouseholdRelation.cs | Vaskelista/Migrations/201409021138021_RoomHouseholdRelation.cs | namespace Vaskelista.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class RoomHouseholdRelation : DbMigration
{
public override void Up()
{
AddColumn("dbo.Rooms", "HouseHold_HouseholdId", c => c.Int(nullable: false));
... | namespace Vaskelista.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class RoomHouseholdRelation : DbMigration
{
public override void Up()
{
Sql("TRUNCATE TABLE dbo.Rooms");
AddColumn("dbo.Rooms", "HouseHold_HouseholdId", c => c... | Fix migration by truncating rooms table | Fix migration by truncating rooms table
| C# | mit | johanhelsing/vaskelista,johanhelsing/vaskelista |
4b74cc8bbc01dcb3673669fe52270d78652fdf99 | bench/Alice/BenchResult.cs | bench/Alice/BenchResult.cs | using System;
using System.Linq;
using System.Collections.Generic;
namespace Alice
{
public class BenchResult
{
public BenchResult(string name, List<long> ticks)
{
Name = name;
_ticks = ticks;
Mean = _ticks.Sum() / _ticks.Count;
Median = _ticks[_t... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Alice
{
public class BenchResult
{
public BenchResult(string name, List<long> ticks)
{
Name = name;
_ticks = ticks;
_ticks.Sort();
Mean = _ticks.Sum() / _ticks.Count;
... | Fix Error in Median Calculation | Fix Error in Median Calculation
Sort the array of tick samples before calculating the median. | C# | mit | iwillspeak/IronRure,iwillspeak/IronRure |
27c9139d0dfd8925e864537c3e6faf7a71f9db52 | elbgb_core/ClockedComponent.cs | elbgb_core/ClockedComponent.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace elbgb_core
{
public abstract class ClockedComponent
{
protected GameBoy _gb;
protected ulong _lastUpdate;
public ClockedComponent(GameBoy gameBoy)
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace elbgb_core
{
public abstract class ClockedComponent
{
protected GameBoy _gb;
private SystemClock _clock;
protected ulong _lastUpdate;
public ClockedCom... | Remove unnecessary cycle check from SynchroniseWithSystemClock | Remove unnecessary cycle check from SynchroniseWithSystemClock
The update check was causing more overhead than it saved given the usage pattern of the method
| C# | mit | eightlittlebits/elbgb |
bbcfc715fef35ab74d2cbcbf01d313cb360fa752 | starter-kit/Edument.CQRS.EntityFramework/Properties/AssemblyInfo.cs | starter-kit/Edument.CQRS.EntityFramework/Properties/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ed... | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Edu... | Fix version number in assembly | Fix version number in assembly
| C# | bsd-3-clause | GoodSoil/cqrs-starter-kit,GoodSoil/cqrs-starter-kit |
aa83fbbe215ac3c0d1c27f974db7d331e2d04d83 | src/Firehose.Web/Authors/MattBobke.cs | src/Firehose.Web/Authors/MattBobke.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
public class MattBobke : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Matt";
public string LastName => "Bobke";
public stri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Syndication;
using System.Web;
using Firehose.Web.Infrastructure;
namespace Firehose.Web.Authors
{
public class MattBobke : IAmACommunityMember, IFilterMyBlogPosts
{
public string FirstName => "Matt";
public string Las... | Fix Matt in name space | Fix Matt in name space
| C# | mit | planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell,planetpowershell/planetpowershell |
68cc8ce92c034c4d54172ff5dc1db277d5afd0af | src/SFA.DAS.EmployerUsers.Web/Views/Account/ChangeEmail.cshtml | src/SFA.DAS.EmployerUsers.Web/Views/Account/ChangeEmail.cshtml | @{
ViewBag.PageID = "page-change-email-address";
ViewBag.Title = "Change your email address";
}
@if (!Model.Valid)
{
<div class="error-summary" role="group" tabindex="-1">
<h1 class="heading-medium error-summary-heading" id="error-summary-heading"> Errors to fix </h1>
<p>Check the... |
@model SFA.DAS.EmployerUsers.Web.Models.ChangeEmailViewModel
@{
ViewBag.PageID = "page-change-email-address";
ViewBag.Title = "Change your email address";
}
@if (!Model.Valid)
{
<div class="error-summary" role="group" tabindex="-1">
<h1 class="heading-medium error-summary-heading" id=... | Add model to change email view | Add model to change email view
Model has been added to the change email view.
| C# | mit | SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers,SkillsFundingAgency/das-employerusers |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.