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 |
|---|---|---|---|---|---|---|---|---|---|
cbc6d82a85ee412a85088324287ce5da365814c7 | Tabster.Core/Searching/ISearchService.cs | Tabster.Core/Searching/ISearchService.cs | #region
using System.Net;
using Tabster.Core.Data.Processing;
using Tabster.Core.Types;
#endregion
namespace Tabster.Core.Searching
{
/// <summary>
/// Tab service which enables searching.
/// </summary>
public interface ISearchService
{
/// <summary>
/// Serv... | #region
using System.Net;
using Tabster.Core.Data.Processing;
using Tabster.Core.Types;
#endregion
namespace Tabster.Core.Searching
{
/// <summary>
/// Tab service which enables searching.
/// </summary>
public interface ISearchService
{
/// <summary>
/// Serv... | Add setter to Proxy property. | Add setter to Proxy property.
| C# | apache-2.0 | GetTabster/Tabster |
bc89764a7235f80a24a28eb9064a100be33076a1 | test/unit/Network/HostnameToIpResolverTest.cs | test/unit/Network/HostnameToIpResolverTest.cs | using System.Net.Sockets;
using System.Threading.Tasks;
using RapidCore.Network;
using Xunit;
namespace RapidCore.UnitTests.Network
{
public class HostnameToIpResolverTest
{
[Fact]
public async Task HostnameToIpResolver_can_resolveAsync()
{
var resolver = new HostnameToIpRe... | using System.Net.Sockets;
using System.Threading.Tasks;
using RapidCore.Network;
using Xunit;
namespace RapidCore.UnitTests.Network
{
public class HostnameToIpResolverTest
{
[Fact]
public async Task HostnameToIpResolver_can_resolveAsync()
{
var resolver = new HostnameToIpRe... | Fix test assertion for hostname to ip resolver | Fix test assertion for hostname to ip resolver
Rather than testing that the caught exception is _of_ type SocketException
we test that it is assignable to this type - the exception thrown on niX
variants inherit from the SocketException but are not that actual type.
Stupid...
| C# | mit | rapidcore/rapidcore,rapidcore/rapidcore |
3980f84a540a341924408d03b1fb9af40422882a | Borderlands2GoldendKeys/Borderlands2GoldendKeys/App_Start/BundleConfig.cs | Borderlands2GoldendKeys/Borderlands2GoldendKeys/App_Start/BundleConfig.cs | using System.Web;
using System.Web.Optimization;
namespace Borderlands2GoldendKeys
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.A... | using System.Web;
using System.Web.Optimization;
namespace Borderlands2GoldendKeys
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.A... | Add bundle optimization on release | Add bundle optimization on release
| C# | apache-2.0 | laedit/Borderlands2-Golden-Keys,laedit/Borderlands2-Golden-Keys |
6a9681b955e3b26ea7d2fc89b5b5de4105434df9 | JoinRpg.DataModel/ProjectAcl.cs | JoinRpg.DataModel/ProjectAcl.cs | using System;
namespace JoinRpg.DataModel
{
// ReSharper disable once ClassWithVirtualMembersNeverInherited.Global (required by LINQ)
public class ProjectAcl
{
public int ProjectAclId { get; set; }
public int ProjectId { get; set; }
public virtual Project Project { get; set; }
public int User... | using System;
namespace JoinRpg.DataModel
{
// ReSharper disable once ClassWithVirtualMembersNeverInherited.Global (required by LINQ)
public class ProjectAcl
{
public int ProjectAclId { get; set; }
public int ProjectId { get; set; }
public virtual Project Project { get; set; }
public int User... | Add CanManagePlots on project creation | Add CanManagePlots on project creation
| C# | mit | leotsarev/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,kirillkos/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net |
80783f66bc6c241e3206b358d7bfec81f20f075f | Assets/MixedRealityToolkit.Tests/PlayModeTests/InputSystem/DefaultRaycastProviderTest.cs | Assets/MixedRealityToolkit.Tests/PlayModeTests/InputSystem/DefaultRaycastProviderTest.cs | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#if !WINDOWS_UWP
using Microsoft.MixedReality.Toolkit.Input;
using Microsoft.MixedReality.Toolkit.Physics;
using NUnit.Framework;
using System.Collections;
using Uni... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#if !WINDOWS_UWP
using Microsoft.MixedReality.Toolkit.Input;
using Microsoft.MixedReality.Toolkit.Physics;
using NUnit.Framework;
using System.Collections;
using Uni... | Change raycast provider tests to use PlaymodeTestUtilities instead of TestUtilities | Change raycast provider tests to use PlaymodeTestUtilities instead of TestUtilities
| C# | mit | killerantz/HoloToolkit-Unity,DDReaper/MixedRealityToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity,killerantz/HoloToolkit-Unity |
b669d6ed960a5077edd2ed3375cf6f5bcedd5b4f | src/Tests.Benchmarking/FastSagaRepository.cs | src/Tests.Benchmarking/FastSagaRepository.cs | using System;
using System.Collections.Generic;
using NSaga;
namespace Benchmarking
{
/// <summary>
/// Saga repository only for benchmarking.
/// Does not really store anything
/// </summary>
internal class FastSagaRepository : ISagaRepository
{
private readonly ISagaFactory sagaFact... | using System;
using System.Collections.Generic;
using NSaga;
namespace Benchmarking
{
/// <summary>
/// Saga repository only for benchmarking.
/// Does not really store anything
/// </summary>
internal class FastSagaRepository : ISagaRepository
{
private readonly ISagaFactory sagaFact... | Fix build error after merge | Fix build error after merge
| C# | mit | AMVSoftware/NSaga |
4cf52c7d6e81590f000904997404afa203de08b2 | DesktopWidgets/Actions/ActionBase.cs | DesktopWidgets/Actions/ActionBase.cs | using System;
using System.ComponentModel;
using System.Windows;
using DesktopWidgets.Classes;
namespace DesktopWidgets.Actions
{
public abstract class ActionBase
{
[DisplayName("Delay")]
public TimeSpan Delay { get; set; } = TimeSpan.FromSeconds(0);
public void Execute()
{
... | using System;
using System.ComponentModel;
using System.Windows;
using DesktopWidgets.Classes;
namespace DesktopWidgets.Actions
{
public abstract class ActionBase
{
[DisplayName("Delay")]
public TimeSpan Delay { get; set; } = TimeSpan.FromSeconds(0);
[DisplayName("Show Errors")]
... | Add action "Show Error" option | Add action "Show Error" option
| C# | apache-2.0 | danielchalmers/DesktopWidgets |
14f020c8ac946e36a3be2ecf3d4fc3215ee0cc30 | src/Core/Gibberish.Tests/RecognizeBlockSyntax/InterpretWholeFile.cs | src/Core/Gibberish.Tests/RecognizeBlockSyntax/InterpretWholeFile.cs | using ApprovalTests.Reporters;
using Gibberish.AST._1_Bare;
using Gibberish.Parsing;
using Gibberish.Tests.ZzTestHelpers;
using NUnit.Framework;
namespace Gibberish.Tests.RecognizeBlockSyntax
{
[TestFixture]
public class InterpretWholeFile
{
[Test, UseReporter(typeof(QuietReporter))]
public void should_accept_... | using ApprovalTests.Reporters;
using Gibberish.AST._1_Bare;
using Gibberish.Parsing;
using Gibberish.Tests.ZzTestHelpers;
using NUnit.Framework;
namespace Gibberish.Tests.RecognizeBlockSyntax
{
[TestFixture]
public class InterpretWholeFile
{
[Test]
public void should_accept_multiple_language_constructs()
{
... | Clean up some use of Approval tests. | Clean up some use of Approval tests.
| C# | bsd-3-clause | Minions/Fools.net,arlobelshee/Fools.net,JayBazuzi/Fools.net |
327604fb4c67c12f656c6a27cd4211931cb0ac83 | MultiMiner.MobileMiner.Api/RemoteCommand.cs | MultiMiner.MobileMiner.Api/RemoteCommand.cs | namespace MultiMiner.MobileMiner.Api
{
public class RemoteCommand
{
public int Id { get; set; }
public string CommandText { get; set; }
}
}
| using System;
namespace MultiMiner.MobileMiner.Api
{
public class RemoteCommand
{
public int Id { get; set; }
public string CommandText { get; set; }
public DateTime CommandDate { get; set; }
}
}
| Add CommandDate so it is deserialized from the JSON response | Add CommandDate so it is deserialized from the JSON response
| C# | mit | nwoolls/MultiMiner,IWBWbiz/MultiMiner,nwoolls/MultiMiner,IWBWbiz/MultiMiner |
dba86467ceb0fbe29763ac64403398b02f58eb05 | PCLTesting/Infrastructure/TestDiscoverer.cs | PCLTesting/Infrastructure/TestDiscoverer.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace PCLTesting.Infrastructure
{
public class TestDiscoverer
{
public IEnumerable<Test> DiscoverTests(Assembly assembly)
{
List<Test> ret = new List<Test>();
foreach (Type type in assembly... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace PCLTesting.Infrastructure
{
public class TestDiscoverer
{
public IEnumerable<Test> DiscoverTests(Assembly assembly)
{
List<Test> ret = new List<Test>();
foreach (Type type in assembly... | Test discovery skips over abstract base classes. | Test discovery skips over abstract base classes.
Fixes #1
| C# | mit | AArnott/pcltesting,dsplaisted/pcltesting |
8b8de12a339bf67a3deba7d80c5e566dec198552 | RocketGPSMath/GPSMath/RegionTriangulator.cs | RocketGPSMath/GPSMath/RegionTriangulator.cs | using RocketGPS.GPSMath;
using RocketGPS.Model;
using RocketGPSMath.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RocketGPSMath.GPSMath
{
public class RegionTriangulator
{
public List<GPSCoordinateBearing> reports;
... | using RocketGPS.GPSMath;
using RocketGPS.Model;
using RocketGPSMath.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RocketGPSMath.GPSMath
{
public class RegionTriangulator
{
public List<GPSCoordinateBearing> reports;
... | Update triangulator to accept point if at certain distance from reporters | Update triangulator to accept point if at certain distance from reporters
| C# | apache-2.0 | RocketHax/Web,RocketHax/Web,RocketHax/Web |
16f8089acbb802bb65d7077daaede7ea20cc6ba5 | LearnosityDemo/Pages/ItemsAPIDemo.cshtml.cs | LearnosityDemo/Pages/ItemsAPIDemo.cshtml.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using LearnositySDK.Request;
using LearnositySDK.Utils;
// static LearnositySDK.Credentials;
namespace LearnosityDemo.Pages
{
public class Ite... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using LearnositySDK.Request;
using LearnositySDK.Utils;
// static LearnositySDK.Credentials;
namespace LearnosityDemo.Pages
{
public class Ite... | Remove unused code from quick-start guide example project. | [DOC] Remove unused code from quick-start guide example project.
| C# | apache-2.0 | Learnosity/learnosity-sdk-asp.net,Learnosity/learnosity-sdk-asp.net,Learnosity/learnosity-sdk-asp.net |
e12e32ec946cb84c24278b591063e8265f2ed287 | osu!StreamCompanion/Code/Modules/MapDataGetters/FileMap/FileMapDataGetter.cs | osu!StreamCompanion/Code/Modules/MapDataGetters/FileMap/FileMapDataGetter.cs | using osu_StreamCompanion.Code.Core.DataTypes;
using osu_StreamCompanion.Code.Interfaces;
namespace osu_StreamCompanion.Code.Modules.MapDataGetters.FileMap
{
public class FileMapDataGetter : IModule, IMapDataGetter
{
public bool Started { get; set; }
private readonly FileMapManager _fileMapMan... | using osu_StreamCompanion.Code.Core.DataTypes;
using osu_StreamCompanion.Code.Interfaces;
namespace osu_StreamCompanion.Code.Modules.MapDataGetters.FileMap
{
public class FileMapDataGetter : IModule, IMapDataGetter
{
public bool Started { get; set; }
private readonly FileMapManager _fileMapMan... | Fix memory patterns saving when not playing. | Fix memory patterns saving when not playing.
| C# | mit | Piotrekol/StreamCompanion,Piotrekol/StreamCompanion |
37b49a4c45843c85c36dfec419825b28342326be | src/Swashbuckle.AspNetCore.Filters/Extensions/SwaggerGenOptionsExtensions.cs | src/Swashbuckle.AspNetCore.Filters/Extensions/SwaggerGenOptionsExtensions.cs | using Swashbuckle.AspNetCore.SwaggerGen;
namespace Swashbuckle.AspNetCore.Filters
{
public static class SwaggerGenOptionsExtensions
{
public static void ExampleFilters(this SwaggerGenOptions swaggerGenOptions)
{
swaggerGenOptions.OperationFilter<ExamplesOperationFilter>();
... | using Microsoft.Extensions.DependencyInjection;
using Swashbuckle.AspNetCore.SwaggerGen;
namespace Swashbuckle.AspNetCore.Filters
{
public static class SwaggerGenOptionsExtensions
{
public static void ExampleFilters(this SwaggerGenOptions swaggerGenOptions)
{
swaggerGenOptions.Opera... | Add using statement for Swashbuckle 4.0 | Add using statement for Swashbuckle 4.0
| C# | mit | mattfrear/Swashbuckle.AspNetCore.Examples |
a6b130e8436ce33ba9a6844ee3da94fe36748c26 | src/Hops/Controllers/SearchController.cs | src/Hops/Controllers/SearchController.cs | using Hops.Repositories;
using Microsoft.AspNet.Mvc;
using System.Collections.Generic;
using System.Linq;
namespace Hops.Controllers
{
[Route("[controller]")]
public class SearchController : Controller
{
private ISqliteRepository sqliteRepository;
public SearchController(ISqliteRepository... | using Hops.Repositories;
using Microsoft.AspNet.Mvc;
using System.Collections.Generic;
using System.Linq;
namespace Hops.Controllers
{
[Route("[controller]")]
public class SearchController : Controller
{
private ISqliteRepository sqliteRepository;
public SearchController(ISqliteRepository... | Use slug for single search result | Use slug for single search result
| C# | mit | sboulema/Hops,sboulema/Hops,sboulema/Hops |
0797e144c42eb96fd81db6d9d436dc430b86d0d9 | Parser/Resolver/LocaleIdAllocator.cs | Parser/Resolver/LocaleIdAllocator.cs | using System.Collections.Generic;
namespace Parser
{
// Assigns each locale an ID from 0 to n - 1
internal static class LocaleIdAllocator
{
public static void Run(ParserContext parser, IList<CompilationScope> scopes)
{
foreach (CompilationScope scope in scopes)
... | using System.Collections.Generic;
namespace Parser
{
// Assigns each locale an ID from 0 to n - 1
internal static class LocaleIdAllocator
{
// TODO: merge this with the current ID allocator in ParserContext.
public static void Run(ParserContext parser, IList<CompilationScope> scope... | Fix compilation error introduced with last minute cleanup added when looking at the diff. | Fix compilation error introduced with last minute cleanup added when looking at the diff.
| C# | mit | blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon |
794e0aeaf4f0d97d9d22a3e7f20ffec40dfcb7f2 | GUtils.Testing/DelegateInvocationCounter.cs | GUtils.Testing/DelegateInvocationCounter.cs | using System;
using System.Runtime.CompilerServices;
using System.Threading;
namespace GUtils.Testing
{
/// <summary>
/// A class that tracks the amount of times its <see cref="WrappedDelegate" /> was invoked.
/// </summary>
/// <typeparam name="T"></typeparam>
public class DelegateInvocationCount... | using System;
using System.Runtime.CompilerServices;
using System.Threading;
namespace GUtils.Testing
{
/// <summary>
/// A class that tracks the amount of times its <see cref="WrappedDelegate" /> was invoked.
/// </summary>
/// <typeparam name="T"></typeparam>
public class DelegateInvocationCount... | Remove explicit default value initialization. | Remove explicit default value initialization.
| C# | mit | GGG-KILLER/GUtils.NET |
0b7802a58ffbc3181a91a93c1262fe5515b649d8 | src/MobileApps/MyDriving/MyDriving.iOS/GettingStartedContentViewController.cs | src/MobileApps/MyDriving/MyDriving.iOS/GettingStartedContentViewController.cs | using Foundation;
using System;
using UIKit;
namespace MyDriving.iOS
{
public partial class GettingStartedContentViewController : UIViewController
{
public UIImage Image { get; set; }
public int PageIndex { get; set; }
public GettingStartedContentViewController (IntPtr handle) : base (handle)
{
... | using Foundation;
using System;
using UIKit;
namespace MyDriving.iOS
{
public partial class GettingStartedContentViewController : UIViewController
{
public UIImage Image { get; set; }
public int PageIndex { get; set; }
public GettingStartedContentViewController (IntPtr handle) : base (handle)
{
... | Use login/getting started background image. | [iOS] Use login/getting started background image.
| C# | mit | Azure-Samples/MyDriving,Azure-Samples/MyDriving,Azure-Samples/MyDriving |
80834ed4d4cddbc48da21ba7b4b6c0e037f6e45e | src/Wukong/Services/Storage.cs | src/Wukong/Services/Storage.cs | using System;
using System.Linq;
using System.Collections.Generic;
using Wukong.Models;
namespace Wukong.Services
{
public sealed class Storage
{
static readonly Lazy<Storage> instance =
new Lazy<Storage>(() => new Storage());
IDictionary<string, User> userMap = new Dictionary<str... | using System;
using System.Linq;
using System.Collections.Generic;
using Wukong.Models;
namespace Wukong.Services
{
public sealed class Storage
{
static readonly Lazy<Storage> instance =
new Lazy<Storage>(() => new Storage());
volatile IDictionary<string, User> userMap = new Dicti... | Add volatile keyword accroding to the doc | Add volatile keyword accroding to the doc
| C# | mit | gyrosworkshop/Wukong,gyrosworkshop/Wukong |
a5a13f1e5c52e306ac6a0bc9ea575e53624df4ab | osu.Framework.Android/AndroidGameView.cs | osu.Framework.Android/AndroidGameView.cs | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using Android.Content;
using Android.Runtime;
using Android.Util;
using osuTK.Graphics;
namespace osu.Framework.Android
{
public class Andr... | // Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using System;
using Android.Content;
using Android.Runtime;
using Android.Util;
using osuTK.Graphics;
namespace osu.Framework.Android
{
public class Andr... | Make the private field readonly. | Make the private field readonly.
| C# | mit | smoogipooo/osu-framework,DrabWeb/osu-framework,EVAST9919/osu-framework,DrabWeb/osu-framework,DrabWeb/osu-framework,ZLima12/osu-framework,ppy/osu-framework,EVAST9919/osu-framework,ZLima12/osu-framework,smoogipooo/osu-framework,peppy/osu-framework,EVAST9919/osu-framework,EVAST9919/osu-framework,ppy/osu-framework,peppy/os... |
5736b7d978521ebc2010f295ee238f55b1d78356 | osu.Game/Extensions/WebRequestExtensions.cs | osu.Game/Extensions/WebRequestExtensions.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.IO.Network;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Game.Online.API.Requests;
namespace osu.Game.Extensions
{
public sta... | // 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.Globalization;
using Newtonsoft.Json.Linq;
using osu.Framework.IO.Network;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Game.Online.API.R... | Fix cursors sent to osu-web being potentially string formatted in incorrect culture | Fix cursors sent to osu-web being potentially string formatted in incorrect culture
Fixed as per solution at https://github.com/JamesNK/Newtonsoft.Json/issues/874.
Note that due to the use of `JsonExtensionDataAttribute` it's not
feasible to change the actual specification to `JValue` in the
`Dictionary`.
In discuss... | C# | mit | NeoAdonis/osu,peppy/osu,peppy/osu,NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu,ppy/osu,NeoAdonis/osu |
a1ba1f0f862f37910944f6cfe49bd3fb9fb6c431 | test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/FIleThumbPrint.cs | test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/FIleThumbPrint.cs | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.IO;
using System.Security.Cryptography;
namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
{
public class File... | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.IO;
using System.Security.Cryptography;
namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests
{
public class File... | Add more diagnostics to FileThumbPrint | Add more diagnostics to FileThumbPrint
| C# | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore |
b272559b285d87393beeeb918f7e87ad8feb95f6 | AllReadyApp/Web-App/AllReady/Hangfire/Jobs/SendRequestStatusToGetASmokeAlarm.cs | AllReadyApp/Web-App/AllReady/Hangfire/Jobs/SendRequestStatusToGetASmokeAlarm.cs | using System;
using System.Net.Http;
using System.Net.Http.Headers;
using Microsoft.Extensions.Options;
namespace AllReady.Hangfire.Jobs
{
public class SendRequestStatusToGetASmokeAlarm : ISendRequestStatusToGetASmokeAlarm
{
private readonly IOptions<GetASmokeAlarmApiSettings> getASmokeAlarmA... | using System;
using System.Net.Http;
using System.Net.Http.Headers;
using Microsoft.Extensions.Options;
namespace AllReady.Hangfire.Jobs
{
public class SendRequestStatusToGetASmokeAlarm : ISendRequestStatusToGetASmokeAlarm
{
private static HttpClient httpClient;
public SendRequestS... | Fix broken implementation of static HttpClient | Fix broken implementation of static HttpClient
| C# | mit | stevejgordon/allReady,dpaquette/allReady,mipre100/allReady,arst/allReady,mipre100/allReady,bcbeatty/allReady,mgmccarthy/allReady,bcbeatty/allReady,c0g1t8/allReady,stevejgordon/allReady,GProulx/allReady,mipre100/allReady,arst/allReady,jonatwabash/allReady,gitChuckD/allReady,anobleperson/allReady,HamidMosalla/allReady,mg... |
786935e4bcfee46fd23d2d16486d2e1baab952b6 | Plugins/Wox.Plugin.WebSearch/WebSearch.cs | Plugins/Wox.Plugin.WebSearch/WebSearch.cs | using System.IO;
using JetBrains.Annotations;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Wox.Plugin.WebSearch
{
public class WebSearch
{
public const string DefaultIcon = "web_search.png";
public string Title { get; set; }
public string ActionKeyword { get; s... | using System.IO;
using JetBrains.Annotations;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Wox.Plugin.WebSearch
{
public class WebSearch
{
public const string DefaultIcon = "web_search.png";
public string Title { get; set; }
public string ActionKeyword { get; s... | Fix default icon path when add new web search | Fix default icon path when add new web search
| C# | mit | Megasware128/Wox,JohnTheGr8/Wox,jondaniels/Wox,zlphoenix/Wox,yozora-hitagi/Saber,danisein/Wox,Launchify/Launchify,danisein/Wox,JohnTheGr8/Wox,medoni/Wox,zlphoenix/Wox,Launchify/Launchify,yozora-hitagi/Saber,jondaniels/Wox,medoni/Wox,Megasware128/Wox |
7a3f6e24dd839acebf2a883a0f4f98aaa87fb282 | OfficeDevPnP.Core/OfficeDevPnP.Core.Tests/Utilities/UrlUtilityTests.cs | OfficeDevPnP.Core/OfficeDevPnP.Core.Tests/Utilities/UrlUtilityTests.cs | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OfficeDevPnP.Core.Utilities;
using System.Collections.Generic;
namespace OfficeDevPnP.Core.Tests.AppModelExtensions
{
[TestClass]
public class UrlUtilityTests
{
[TestMethod]
public void ContainsInvalidCharsReturnsFalse... | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OfficeDevPnP.Core.Utilities;
using System.Collections.Generic;
namespace OfficeDevPnP.Core.Tests.AppModelExtensions
{
[TestClass]
public class UrlUtilityTests
{
[TestMethod]
public void ContainsInvalidCharsReturnsFalse... | Align url invalid char unit tests with changes done to the validation logic | Align url invalid char unit tests with changes done to the validation logic
| C# | mit | vnathalye/PnP,ebbypeter/PnP,rroman81/PnP,hildabarbara/PnP,vman/PnP,jlsfernandez/PnP,lamills1/PnP,OzMakka/PnP,timothydonato/PnP,gavinbarron/PnP,Anil-Lakhagoudar/PnP,OneBitSoftware/PnP,timschoch/PnP,darei-fr/PnP,rbarten/PnP,ebbypeter/PnP,GSoft-SharePoint/PnP,Claire-Hindhaugh/PnP,joaopcoliveira/PnP,yagoto/PnP,vman/PnP,edr... |
bec833e7c3bbdc00a13476290ae47fba5346c26e | src/Okanshi.Dashboard/IConfiguration.cs | src/Okanshi.Dashboard/IConfiguration.cs | using System.Collections.Generic;
namespace Okanshi.Dashboard
{
public interface IConfiguration
{
void Add(OkanshiServer server);
IEnumerable<OkanshiServer> GetAll();
}
} | using System.Collections.Generic;
namespace Okanshi.Dashboard
{
public interface IConfiguration
{
void Add(OkanshiServer server);
IEnumerable<OkanshiServer> GetAll();
void Remove(string name);
}
} | Add support for removing okanshi instances | Add support for removing okanshi instances
| C# | mit | mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard,mvno/Okanshi.Dashboard |
ce030e23f72f9908183e7c65f0f3bd2dd54a74ef | Mond.Tests/MondStateTests.cs | Mond.Tests/MondStateTests.cs | using NUnit.Framework;
namespace Mond.Tests
{
[TestFixture]
public class MondStateTests
{
[Test]
public void MultiplePrograms()
{
const string source1 = @"
hello = fun (x) {
return 'hi ' + x;
};
a = he... | using NUnit.Framework;
namespace Mond.Tests
{
[TestFixture]
public class MondStateTests
{
[Test]
public void MultiplePrograms()
{
const string source1 = @"
global.hello = fun (x) {
return 'hi ' + x;
};
... | Update tests to use explicit globals | Update tests to use explicit globals
| C# | mit | Rohansi/Mond,SirTony/Mond,Rohansi/Mond,Rohansi/Mond,SirTony/Mond,SirTony/Mond |
080c8ac947390e7dbc6f4989d40d00fc12a7cd4a | NavigationMvc/RouteConfig.cs | NavigationMvc/RouteConfig.cs | using System.Web.Mvc;
using System.Web.Routing;
namespace Navigation.Mvc
{
public class RouteConfig
{
public static void AddStateRoutes()
{
if (StateInfoConfig.Dialogs == null)
return;
ValueProviderFactories.Factories.Insert(0, new NavigationDataValueProviderFactory());
string controlle... | using System.Web.Mvc;
using System.Web.Routing;
namespace Navigation.Mvc
{
public class RouteConfig
{
public static void AddStateRoutes()
{
if (StateInfoConfig.Dialogs == null)
return;
ValueProviderFactories.Factories.Insert(0, new NavigationDataValueProviderFactory());
string controlle... | Allow blank/root route to be configured | Allow blank/root route to be configured
| C# | apache-2.0 | grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation |
7baf5aa067a91ceac505b2067ffc3672bfd0d3bb | Assets/Scripts/SelfLevelingController.cs | Assets/Scripts/SelfLevelingController.cs | using System.Linq;
using Assets.Scripts.Helpers;
using UnityEngine;
public class SelfLevelingController : MonoBehaviour
{
public float MaxRotateAngle = 0.25f;
void Start()
{
}
void Update()
{
var body = GetComponent<Rigidbody2D>();
var force = Environment.GetAverageGravitati... | using Assets.Scripts.Helpers;
using UnityEngine;
public class SelfLevelingController : MonoBehaviour
{
private Rigidbody2D body;
void Start()
{
body = GetComponent<Rigidbody2D>();
}
void Update()
{
var force = Environment.GetAverageGravitationalForce(body);
transform.... | Fix camera flip bug at x=0 | Fix camera flip bug at x=0
| C# | mit | Divegato/small-world |
5cbd45fa4af7fe6303615898114f46238e0698b2 | Source/Lib/TraktApiSharp/Services/TraktSerializationService.cs | Source/Lib/TraktApiSharp/Services/TraktSerializationService.cs | namespace TraktApiSharp.Services
{
using Authentication;
/// <summary>Provides helper methods for serializing and deserializing Trakt objects.</summary>
public static class TraktSerializationService
{
public static string Serialize(TraktAuthorization authorization)
{
return... | namespace TraktApiSharp.Services
{
using Authentication;
using System;
/// <summary>Provides helper methods for serializing and deserializing Trakt objects.</summary>
public static class TraktSerializationService
{
public static string Serialize(TraktAuthorization authorization)
{
... | Add implementation for argument exceptions for serializing. | Add implementation for argument exceptions for serializing.
| C# | mit | henrikfroehling/TraktApiSharp |
c1e36065a14bd356a120df5d7566516e326edbda | source/CourtesyFlush/HtmlHelperExtension.cs | source/CourtesyFlush/HtmlHelperExtension.cs | using System.Web.Mvc;
using System.Web.Mvc.Html;
using CourtesyFlush;
namespace System.Web.WebPages
{
public static class HtmlHelperExtension
{
public static MvcHtmlString FlushHead(this HtmlHelper html)
{
return FlushHead(html, null);
}
public static MvcHtmlString... | using System.Web.Mvc;
using System.Web.Mvc.Html;
using CourtesyFlush;
namespace System.Web.WebPages
{
public static class HtmlHelperExtension
{
public static MvcHtmlString FlushHead(this HtmlHelper html)
{
return FlushHead(html, null);
}
public static MvcHtmlString... | Update to make hidden input for token self-closing | Update to make hidden input for token self-closing | C# | apache-2.0 | nikmd23/CourtesyFlush,nikmd23/CourtesyFlush,nikmd23/CourtesyFlush |
1697dd786e617997236c23a928b9bf3b7b284631 | src/Hangfire.MemoryStorage/MemoryStorage.cs | src/Hangfire.MemoryStorage/MemoryStorage.cs | using System.Collections.Generic;
using Hangfire.MemoryStorage.Database;
using Hangfire.Server;
using Hangfire.Storage;
namespace Hangfire.MemoryStorage
{
public class MemoryStorage : JobStorage
{
private readonly MemoryStorageOptions _options;
private readonly Data _data;
public Memo... | using System.Collections.Generic;
using Hangfire.MemoryStorage.Database;
using Hangfire.Server;
using Hangfire.Storage;
namespace Hangfire.MemoryStorage
{
public class MemoryStorage : JobStorage
{
private readonly MemoryStorageOptions _options;
public Data Data { get; }
public Memory... | Allow access to the Data object | Allow access to the Data object
| C# | apache-2.0 | perrich/Hangfire.MemoryStorage |
089d8bfc1b8cf8a7f1f3f790b8288cfabfb3c3b4 | src/dotnet/commands/dotnet-internal-reportinstallsuccess/InternalReportinstallsuccessCommandParser.cs | src/dotnet/commands/dotnet-internal-reportinstallsuccess/InternalReportinstallsuccessCommandParser.cs | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Linq;
using Microsoft.DotNet.Cli.CommandLine;
namespace Microsoft.DotNet.Cli
{
internal static class InternalReportinstallsucce... | // Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Linq;
using Microsoft.DotNet.Cli.CommandLine;
namespace Microsoft.DotNet.Cli
{
internal static class InternalReportinstallsucce... | Remove `internal-reportinstallsuccess` from `dotnet complete`. | Remove `internal-reportinstallsuccess` from `dotnet complete`.
This commit removes `internal-reportinstallsuccess` from `dotnet complete` by
changing the command's help text to an empty string. This causes the parser to
treat the command as hidden and does not match the command name for
suggestions.
Fixes #9111.
| C# | mit | dasMulli/cli,livarcocc/cli-1,johnbeisner/cli,dasMulli/cli,livarcocc/cli-1,johnbeisner/cli,livarcocc/cli-1,johnbeisner/cli,dasMulli/cli |
f4d6d9ac3ad8ac7eba2a0dafb8a33f54c38167b9 | Orleans.Providers.MongoDB/StorageProviders/Serializers/JsonGrainStateSerializer.cs | Orleans.Providers.MongoDB/StorageProviders/Serializers/JsonGrainStateSerializer.cs | using Microsoft.Extensions.Options;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Orleans.Providers.MongoDB.Configuration;
using Orleans.Runtime;
using Orleans.Serialization;
namespace Orleans.Providers.MongoDB.StorageProviders.Serializers
{
public class JsonGrainStateSerializer : IGrainStateSerializer... | using Microsoft.Extensions.Options;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Orleans.Providers.MongoDB.Configuration;
using Orleans.Runtime;
using Orleans.Serialization;
namespace Orleans.Providers.MongoDB.StorageProviders.Serializers
{
public class JsonGrainStateSerializer : IGrainStateSerializer... | Replace order of default settings | Replace order of default settings
| C# | mit | OrleansContrib/Orleans.Providers.MongoDB |
11ea56b77633abdc3ce4f94fc44b18fdab29a879 | Src/AutoFixtureUnitTest/DataAnnotations/StringLengthArgumentSupportTests.cs | Src/AutoFixtureUnitTest/DataAnnotations/StringLengthArgumentSupportTests.cs | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using Ploeh.AutoFixture;
using Xunit;
namespace Ploeh.AutoFixtureUnitTest.DataAnnotations
{
public class StringLengthArgumentSupportTests
{
[Fact]
public void Fixt... | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using Ploeh.AutoFixture;
using Xunit;
namespace Ploeh.AutoFixtureUnitTest.DataAnnotations
{
public class StringLengthArgumentSupportTests
{
[Fact]
public void Fixt... | Add scenario test to check the minimum string length constraint is ignored | Add scenario test to check the minimum string length constraint is ignored
| C# | mit | Pvlerick/AutoFixture,sean-gilliam/AutoFixture,sergeyshushlyapin/AutoFixture,adamchester/AutoFixture,zvirja/AutoFixture,AutoFixture/AutoFixture,adamchester/AutoFixture,sergeyshushlyapin/AutoFixture |
77977f47fa6d2caec3a89c2e8ab07d80b44b53d6 | Siftables/MainWindow.xaml.cs | Siftables/MainWindow.xaml.cs | namespace Siftables
{
public partial class MainWindowView
{
public MainWindowView()
{
InitializeComponent();
DoSomething();
}
}
}
| namespace Siftables
{
public partial class MainWindowView
{
public MainWindowView()
{
InitializeComponent();
DoAllOfTheThings();
}
}
}
| Break build again for TeamCity email notify test. | Break build again for TeamCity email notify test.
Signed-off-by: Alexander J Mullans <60c6d277a8bd81de7fdde19201bf9c58a3df08f4@alexmullans.com>
| C# | bsd-2-clause | alexmullans/Siftables-Emulator |
c512eda5ab0af2bb1af6c22880d579f0b2cacb9d | source/Nuke.Common/CI/GitHubActions/Configuration/GitHubActionsScheduledTrigger.cs | source/Nuke.Common/CI/GitHubActions/Configuration/GitHubActionsScheduledTrigger.cs | // Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using Nuke.Common.Utilities;
namespace Nuke.Common.CI.GitHubActions.Configuration
{
public class GitHubActionsScheduledTrigger : GitHubActionsDeta... | // Copyright 2019 Maintainers of NUKE.
// Distributed under the MIT License.
// https://github.com/nuke-build/nuke/blob/master/LICENSE
using System;
using System.Linq;
using Nuke.Common.Utilities;
namespace Nuke.Common.CI.GitHubActions.Configuration
{
public class GitHubActionsScheduledTrigger : GitHubActionsDeta... | Fix indentation for scheduled triggers | Fix indentation for scheduled triggers
| C# | mit | nuke-build/nuke,nuke-build/nuke,nuke-build/nuke,nuke-build/nuke |
b2f9ae509c2c6ab84d5156cde18c044e5f3390ae | KerbalPackageManager/dotVersion.cs | KerbalPackageManager/dotVersion.cs | using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace KerbalPackageManager
{
internal class dotVersion
{
public dotVersion(string toFilename)
{
var jObj = JObject.Parse(File.ReadAllText(toFilenam... | using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace KerbalPackageManager
{
internal class dotVersion
{
public dotVersion(string toFilename)
{
var jObj = JObject.Parse(File.ReadAllText(toFilenam... | Check dVers versions for null (version numbers such as 1, 1.2 and 1.3) | Check dVers versions for null (version numbers such as 1, 1.2 and 1.3)
| C# | mit | sundhaug92/kspMan2 |
5ffc278912ea5f62b8089852d2b4f19a4c3886b7 | IntUITive.Selenium.Tests/IntuitivelyTests.cs | IntUITive.Selenium.Tests/IntuitivelyTests.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace IntUITive.Selenium.Tests
{
[TestFixture]
public class IntuitivelyTests
{
[Test]
public void Find_WithNoTerm_Fails()
{
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
namespace IntUITive.Selenium.Tests
{
[TestFixture]
public class EdgeCaseTests
{
[Test]
public void Find_WithNoTerm_Fails()
{
... | Refactor - rename test class | Refactor - rename test class
| C# | apache-2.0 | stoneass/IntUITive,stoneass/IntUITive |
6b45708de087e6fed54ecbf7ac72a9a3b60e2ac4 | Assets/ObjectTest/Sandbox2.cs | Assets/ObjectTest/Sandbox2.cs | using UnityEngine;
using UniRx;
using UniRx.Triggers;
using System.Collections;
using System.Linq;
using System;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class MyEventClass
{
public event Action<int> Hoge;
public void Push(int x)
{
Hoge(x);
... | using UnityEngine;
using UniRx;
using UniRx.Triggers;
using System.Collections;
using System.Linq;
using System;
using System.Collections.Generic;
using UnityEngine.UI;
// using UnityEngine.SceneManagement;
public class MyEventClass
{
public event Action<int> Hoge;
public void Push(int x)
{
Hoge(x... | Fix Sandbox occurs compile error under 5.3 | Fix Sandbox occurs compile error under 5.3
| C# | mit | ataihei/UniRx,cruwel/UniRx,ufcpp/UniRx,saruiwa/UniRx,cruwel/UniRx,OC-Leon/UniRx,neuecc/UniRx,kimsama/UniRx,endo0407/UniRx,m-ishikawa/UniRx,TORISOUP/UniRx,ppcuni/UniRx,cruwel/UniRx,OrangeCube/UniRx |
6e0db31a528fae2fbbf953a6dab7f7e1bd766428 | Rant.Tests/Expressions/Loops.cs | Rant.Tests/Expressions/Loops.cs | using NUnit.Framework;
namespace Rant.Tests.Expressions
{
[TestFixture]
public class Loops
{
private readonly RantEngine rant = new RantEngine();
[Test]
public void StringBuildingWhileLoop()
{
var output = rant.Do(@"
[@
var parts = (""this"", ""is"", ""a"",... | using NUnit.Framework;
namespace Rant.Tests.Expressions
{
[TestFixture]
public class Loops
{
private readonly RantEngine rant = new RantEngine();
[Test]
public void StringBuildingWhileLoop()
{
var output = rant.Do(@"
[@
(function()
{
var parts ... | Put loop test's variables in a local scope | Put loop test's variables in a local scope
| C# | mit | TheBerkin/Rant |
9609520a53b3f91d722b68bbe189cc419f2491b9 | docs/guides/samples/dependency_module.cs | docs/guides/samples/dependency_module.cs | using Discord;
using Discord.Commands;
using Discord.WebSocket;
public class ModuleA : ModuleBase
{
private readonly DatabaseService _database;
// Dependencies can be injected via the constructor
public ModuleA(DatabaseService database)
{
_database = database;
}
public async Task Read... | using Discord;
using Discord.Commands;
using Discord.WebSocket;
public class ModuleA : ModuleBase
{
private readonly DatabaseService _database;
// Dependencies can be injected via the constructor
public ModuleA(DatabaseService database)
{
_database = database;
}
public async Task Read... | Remove "Get" statement from example docs | Remove "Get" statement from example docs
| C# | mit | Confruggy/Discord.Net,RogueException/Discord.Net,AntiTcb/Discord.Net,LassieME/Discord.Net |
bc0872c3585f2e2cb11ad9f32e33a0acee5c9105 | WebBrowserEngine/ChromiumFX/HTMEngine.ChromiumFX/ChromiumFxWebBrowserApp.cs | WebBrowserEngine/ChromiumFX/HTMEngine.ChromiumFX/ChromiumFxWebBrowserApp.cs | using Chromium;
using Chromium.Event;
using Neutronium.Core;
using Neutronium.WPF;
namespace Neutronium.WebBrowserEngine.ChromiumFx
{
public abstract class ChromiumFxWebBrowserApp : HTMLApp
{
protected virtual bool DisableWebSecurity => true;
protected override IWPFWebWindowFactory GetWindowF... | using Chromium;
using Chromium.Event;
using Neutronium.Core;
using Neutronium.WPF;
namespace Neutronium.WebBrowserEngine.ChromiumFx
{
public abstract class ChromiumFxWebBrowserApp : HTMLApp
{
protected virtual bool DisableWebSecurity => false;
protected override IWPFWebWindowFactory GetWindow... | Improve cfx default settings (removing hack switch) | Improve cfx default settings (removing hack switch)
| C# | mit | David-Desmaisons/Neutronium,David-Desmaisons/Neutronium,NeutroniumCore/Neutronium,NeutroniumCore/Neutronium,NeutroniumCore/Neutronium,David-Desmaisons/Neutronium |
60f1bd51a6c995f902419c9f1acaeb6313b3e92d | JabbR/ContentProviders/AudioContentProvider.cs | JabbR/ContentProviders/AudioContentProvider.cs | using System;
using System.Threading.Tasks;
using JabbR.ContentProviders.Core;
namespace JabbR.ContentProviders
{
public class AudioContentProvider : IContentProvider
{
public bool IsValidContent(Uri uri)
{
return uri.AbsolutePath.EndsWith(".mp3", StringComparison.OrdinalIgnoreCase... | using System;
using System.Threading.Tasks;
using JabbR.ContentProviders.Core;
using Microsoft.Security.Application;
namespace JabbR.ContentProviders
{
public class AudioContentProvider : IContentProvider
{
public bool IsValidContent(Uri uri)
{
return uri.AbsolutePath.EndsWith(".mp... | Fix for audio URIs to prevent onerror javascript being introduced via percent encoding. | Fix for audio URIs to prevent onerror javascript being introduced via percent encoding.
Signed-off-by: cmaish <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@christophermaish.com>
| C# | mit | lukehoban/JabbR,lukehoban/JabbR,ajayanandgit/JabbR,e10/JabbR,borisyankov/JabbR,timgranstrom/JabbR,CrankyTRex/JabbRMirror,yadyn/JabbR,yadyn/JabbR,M-Zuber/JabbR,huanglitest/JabbRTest2,18098924759/JabbR,AAPT/jean0226case1322,fuzeman/vox,borisyankov/JabbR,18098924759/JabbR,huanglitest/JabbRTest2,huanglitest/JabbRTest2,Jabb... |
add99f2234f0babfa790187ee813d1718f763f9e | src/Auth0.ManagementApi/Models/DeviceCredentialCreateRequest.cs | src/Auth0.ManagementApi/Models/DeviceCredentialCreateRequest.cs | using Auth0.Core;
using Newtonsoft.Json;
namespace Auth0.ManagementApi.Models
{
/// <summary>
///
/// </summary>
public class DeviceCredentialCreateRequest : DeviceCredentialBase
{
/// <summary>
/// Gets or sets the ID of the client for which the credential will be created.
... | using System;
using Auth0.Core;
using Newtonsoft.Json;
namespace Auth0.ManagementApi.Models
{
/// <summary>
///
/// </summary>
public class DeviceCredentialCreateRequest : DeviceCredentialBase
{
/// <summary>
/// Gets or sets the ID of the client for which the credential will be ... | Remove User ID from device credential creation payload | Remove User ID from device credential creation payload
| C# | mit | jerriep/auth0.net,auth0/auth0.net,auth0/auth0.net,jerriep/auth0.net,jerriep/auth0.net |
1e5b400499177cbf5025b9e3006549b4ed172829 | PortoGameJam2016/Assets/Scripts/GameManager.cs | PortoGameJam2016/Assets/Scripts/GameManager.cs | using UnityEngine;
using System.Collections;
public class GameManager : MonoBehaviour
{
public static GameManager Instance;
public Mode CurrentMode = Mode.TopDown;
CameraController cameraController;
void Awake()
{
if (Instance == null)
{
Instance = this;
} els... | using UnityEngine;
using System.Collections;
public class GameManager : MonoBehaviour
{
public static GameManager Instance;
public Mode CurrentMode = Mode.TopDown;
public bool AllowTwisting = true;
CameraController cameraController;
void Awake()
{
if (Instance == null)
{
... | Add option to control whether player can use twisting | Add option to control whether player can use twisting
| C# | mit | NamefulTeam/PortoGameJam2016 |
cae6e02ceb8b427e03e268e17195ac2f9d441fc4 | src/Umbraco.Core/Migrations/Upgrade/V_8_16_0/AddPropertyTypeGroupColumns.cs | src/Umbraco.Core/Migrations/Upgrade/V_8_16_0/AddPropertyTypeGroupColumns.cs | using System.Linq;
using Umbraco.Core.Persistence.Dtos;
namespace Umbraco.Core.Migrations.Upgrade.V_8_16_0
{
public class AddPropertyTypeGroupColumns : MigrationBase
{
public AddPropertyTypeGroupColumns(IMigrationContext context)
: base(context)
{ }
public override void Mi... | using System.Linq;
using Umbraco.Core.Logging;
using Umbraco.Core.Persistence.Dtos;
namespace Umbraco.Core.Migrations.Upgrade.V_8_16_0
{
public class AddPropertyTypeGroupColumns : MigrationBase
{
public AddPropertyTypeGroupColumns(IMigrationContext context)
: base(context)
{ }
... | Fix migration to handle identical aliases for different group names and write error to log | Fix migration to handle identical aliases for different group names and write error to log
| C# | mit | arknu/Umbraco-CMS,mattbrailsford/Umbraco-CMS,dawoe/Umbraco-CMS,marcemarc/Umbraco-CMS,arknu/Umbraco-CMS,dawoe/Umbraco-CMS,abryukhov/Umbraco-CMS,abjerner/Umbraco-CMS,KevinJump/Umbraco-CMS,bjarnef/Umbraco-CMS,arknu/Umbraco-CMS,abryukhov/Umbraco-CMS,dawoe/Umbraco-CMS,mattbrailsford/Umbraco-CMS,robertjf/Umbraco-CMS,mattbrai... |
ad6b637aca2fe6ad9758f943ea450f4970a777c8 | src/MySqlConnector/ValueTaskExtensions.cs | src/MySqlConnector/ValueTaskExtensions.cs | using System;
using System.Threading.Tasks;
namespace MySql.Data
{
internal static class ValueTaskExtensions
{
public static ValueTask<TResult> ContinueWith<T, TResult>(this ValueTask<T> valueTask, Func<T, ValueTask<TResult>> continuation)
{
return valueTask.IsCompleted ? continuation(valueTask.Result) :
... | using System;
using System.Threading.Tasks;
namespace MySql.Data
{
internal static class ValueTaskExtensions
{
public static async ValueTask<TResult> ContinueWith<T, TResult>(this ValueTask<T> valueTask, Func<T, ValueTask<TResult>> continuation) => await continuation(await valueTask);
public static ValueTask<T>... | Use await instead of hand-written continuation. | Use await instead of hand-written continuation.
The compiler-generated state machine reduces allocations and performs better in benchmarks.
| C# | mit | mysql-net/MySqlConnector,mysql-net/MySqlConnector |
c6275650696dd6c6da1e756d3599dd6f8c1d021f | Joinrpg/Views/Plot/ShowElementPartial.cshtml | Joinrpg/Views/Plot/ShowElementPartial.cshtml | @using JoinRpg.Web.App_Code
@using JoinRpg.Web.Models.Plot
@model PlotElementViewModel
@if (!Model.Visible)
{
return;
}
@{
var hideClass = Model.Status == PlotStatus.InWork ? "world-object-hidden" : "";
}
@if (Model.HasEditAccess)
{
<div>
@Html.DisplayFor(model => model.Status)
@Html.ActionLink(... | @using JoinRpg.Web.App_Code
@using JoinRpg.Web.Models.Plot
@model PlotElementViewModel
@if (!Model.Visible)
{
return;
}
@{
var hideClass = Model.Status == PlotStatus.InWork ? "world-object-hidden" : "";
}
@if (Model.HasEditAccess)
{
<div>
@Html.DisplayFor(model => model.Status)
@Html.ActionLink(... | Fix missing plot in claims | Fix missing plot in claims
| C# | mit | leotsarev/joinrpg-net,joinrpg/joinrpg-net,kirillkos/joinrpg-net,kirillkos/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net,joinrpg/joinrpg-net,leotsarev/joinrpg-net,leotsarev/joinrpg-net,joinrpg/joinrpg-net |
2e2a8591462b3e8634e34203ad30211701d503e3 | Scripts/LiteNetLibGameManager.cs | Scripts/LiteNetLibGameManager.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace LiteNetLibHighLevel
{
[RequireComponent(typeof(LiteNetLibAssets))]
public class LiteNetLibGameManager : LiteNetLibManager
{
private LiteNetLibAssets assets;
public LiteNetLibAssets Assets
{
... | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace LiteNetLibHighLevel
{
[RequireComponent(typeof(LiteNetLibAssets))]
public class LiteNetLibGameManager : LiteNetLibManager
{
private LiteNetLibAssets assets;
public LiteNetLibAssets Assets
{
... | Fix invalid logic when start server | Fix invalid logic when start server
| C# | mit | insthync/LiteNetLibManager,insthync/LiteNetLibManager |
7ccd3d5b5075ee08b5af727247ac25184f69ee9c | JabbR/Views/Account/_username.cshtml | JabbR/Views/Account/_username.cshtml | @using JabbR;
<form class="form-horizontal" action="@Url.Content("~/account/login")" method="post">
@Html.ValidationSummary()
<div class="control-group">
<div class="controls">
<div class="input-prepend">
<span class="add-on"><i class="icon-user"></i>... | @using JabbR;
<form class="form-horizontal" action="@Url.Content("~/account/login")" method="post">
@Html.ValidationSummary()
<div class="control-group">
<div class="controls">
<div class="input-prepend">
<span class="add-on"><i class="icon-user"></i>... | Make username password fields fit on Mac Chrome | Make username password fields fit on Mac Chrome
| C# | mit | yadyn/JabbR,borisyankov/JabbR,fuzeman/vox,LookLikeAPro/JabbR,fuzeman/vox,borisyankov/JabbR,LookLikeAPro/JabbR,18098924759/JabbR,CrankyTRex/JabbRMirror,lukehoban/JabbR,18098924759/JabbR,CrankyTRex/JabbRMirror,SonOfSam/JabbR,lukehoban/JabbR,timgranstrom/JabbR,ajayanandgit/JabbR,M-Zuber/JabbR,mzdv/JabbR,JabbR/JabbR,e10/Ja... |
5d2fe8733997295bbbecee0cdbc947440e305d06 | osu.Game.Rulesets.Osu/Objects/SpinnerTick.cs | osu.Game.Rulesets.Osu/Objects/SpinnerTick.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.Game.Audio;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Osu.Judgements;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Osu.Object... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Audio;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Osu.Judgements;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Osu.Object... | Use empty hit windows for spinner ticks | Use empty hit windows for spinner ticks
| C# | mit | NeoAdonis/osu,NeoAdonis/osu,peppy/osu,ppy/osu,UselessToucan/osu,smoogipoo/osu,peppy/osu,ppy/osu,NeoAdonis/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,peppy/osu,smoogipoo/osu,UselessToucan/osu,peppy/osu-new |
c0c8448f385483479f7e75a52255c10c7b7b9951 | ATL.test/FactoryTest.cs | ATL.test/FactoryTest.cs | using System;
using ATL.AudioReaders;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Text;
namespace ATL.test
{
[TestClass]
public class FactoryTest
{
[TestMethod]
public void TestGetPlaylistFormats()
{
StringBuilder filter = new StringBuilder("");
... | using System;
using ATL.AudioReaders;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Text;
namespace ATL.test
{
[TestClass]
public class FactoryTest
{
[TestMethod]
public void TestGetPlaylistFormats()
{
StringBuilder filter = new StringBuilder("");
... | Fix TestGetPlaylistFormats after adding more extensions to the PlaylistReaderFactory | Fix TestGetPlaylistFormats after adding more extensions to the PlaylistReaderFactory
| C# | mit | Zeugma440/atldotnet |
af30275d6e61dfff6c3579d63218955f8104f760 | SimpleCache.iOS/SqliteObjectCache.cs | SimpleCache.iOS/SqliteObjectCache.cs | using System;
using System.IO;
namespace Amica.vNext
{
public class SqliteObjectCache : SqliteObjectCacheBase
{
protected override string GetDatabasePath()
{
const string sqliteFilename = "cache.db3";
var cacheFolder = Path.Combine(ApplicationName, "SimpleCache");
... | using System;
using System.IO;
using Amica.vNext;
[assembly: Xamarin.Forms.Dependency(typeof(SqliteObjectCache))]
namespace Amica.vNext
{
public class SqliteObjectCache : SqliteObjectCacheBase
{
protected override string GetDatabasePath()
{
const string sqliteFilename = "cache.db3... | Fix iOS cache folder path | Fix iOS cache folder path
| C# | bsd-3-clause | CIR2000/Amica.vNext.SimpleCache |
9c7f2f0a8dcb0bad68c33ddb1348b064743618bf | src/UnityAutoMoq/UnityAutoMoqExtension.cs | src/UnityAutoMoq/UnityAutoMoqExtension.cs | using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.ObjectBuilder;
namespace UnityAutoMoq
{
public class UnityAutoMoqExtension : UnityContainerExtension
{
private readonly UnityAutoMoqContainer autoMoqContainer;
public UnityAutoMoqExtension(UnityAutoMoqContainer autoMoqCo... | using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.ObjectBuilder;
namespace UnityAutoMoq
{
/// <summary>
/// Provide extensions for Unity Auto Moq
/// </summary>
public class UnityAutoMoqExtension : UnityContainerExtension
{
private readonly UnityAutoMoqContainer aut... | Add API comments for Git Testing ;) | Add API comments for Git Testing ;)
| C# | mit | thedersen/UnityAutoMoq,thedersen/UnityAutoMoq,Henadz/UnityAutoMoq,Henadz/UnityAutoMoq,thedersen/UnityAutoMoq,azarkevich/UnityAutoMoq,azarkevich/UnityAutoMoq,azarkevich/UnityAutoMoq,Henadz/UnityAutoMoq |
018aad234d1ac9c7605fffd73e222f4bf150065b | src/core/main/Configuration/ConfigBase.cs | src/core/main/Configuration/ConfigBase.cs | #if NETSTANDARD1_6
using System;
using Microsoft.Extensions.Configuration;
namespace RapidCore.Configuration
{
/// <summary>
/// Base class for strongly typed configuration classes.
///
/// The idea is to allow you to define a config class specific
/// for your project, but gain easy access to rea... | #if NETSTANDARD1_6
using System;
using Microsoft.Extensions.Configuration;
namespace RapidCore.Configuration
{
/// <summary>
/// Base class for strongly typed configuration classes.
///
/// The idea is to allow you to define a config class specific
/// for your project, but gain easy access to rea... | Switch to the less restrictive IConfiguration | Switch to the less restrictive IConfiguration
| C# | mit | rapidcore/rapidcore,rapidcore/rapidcore |
cc1da561878dfb6ffb8b5e320837017214292f45 | ZirMed.TrainingSandbox/Views/Home/Contact.cshtml | ZirMed.TrainingSandbox/Views/Home/Contact.cshtml | @{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.co... | @{
ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.co... | Add Travis to contact list. | Add Travis to contact list.
| C# | mit | jpfultonzm/trainingsandbox,jpfultonzm/trainingsandbox,jpfultonzm/trainingsandbox |
fc2c96fb921aa32d0b8c52a99434fdcaf895ddd8 | Flirper/AssemblyInfo.cs | Flirper/AssemblyInfo.cs | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Flirper1.0")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly... | using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Flirper1.1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly... | Change assembly version for release | Change assembly version for release
| C# | mit | githubpermutation/Flirper |
96de9d15e5be2b0586c5546482626fe87193b520 | Rocket_Safezone/Model/Safezone/SafeZoneType.cs | Rocket_Safezone/Model/Safezone/SafeZoneType.cs | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
using Rocket.Unturned.Player;
namespace Safezone.Model
{
[XmlInclude(typeof(RectangleType))]
public abstract class SafeZoneType
{
private static readonly Dictionary<String, Type> R... | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
using Rocket.Unturned.Player;
namespace Safezone.Model
{
[XmlInclude(typeof(RectangleType))]
[XmlInclude(typeof(CircleType))]
public abstract class SafeZoneType
{
private stati... | Add missing Include for CircleType | Add missing Include for CircleType
| C# | agpl-3.0 | Trojaner25/Rocket-Safezone,Trojaner25/Rocket-Regions |
9ddc9f724d1898ca1c5d33b48a965abb30958ed7 | src/AzureRepositories/Notifiers/SlackNotifier.cs | src/AzureRepositories/Notifiers/SlackNotifier.cs | using AzureStorage.Queue;
using Core;
using Core.Notifiers;
using Lykke.JobTriggers.Abstractions;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace AzureRepositories.Notifiers
{
public class SlackNotifier : ISlackNotifier, IPoisionQue... | using AzureStorage.Queue;
using Core;
using Core.Notifiers;
using Lykke.JobTriggers.Abstractions;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace AzureRepositories.Notifiers
{
public class SlackNotifier : ISlackNotifier, IPoisionQue... | Change destination for slack notifications | Change destination for slack notifications
| C# | mit | LykkeCity/EthereumApiDotNetCore,LykkeCity/EthereumApiDotNetCore,LykkeCity/EthereumApiDotNetCore |
d13cf5d3e2060b8a7715ceff5dde02bb7a5363ce | PixelPet/Commands/DeserializeTilemapCmd.cs | PixelPet/Commands/DeserializeTilemapCmd.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PixelPet.Commands {
internal class DeserializeTilemapCmd : CliCommand {
public DeserializeTilemapCmd()
: base("Deserialize-Tilemap") { }
public override void Run(Workbench workbench, Cli cli) {
cli.Log("Deseria... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PixelPet.Commands {
internal class DeserializeTilemapCmd : CliCommand {
public DeserializeTilemapCmd()
: base("Deserialize-Tilemap", new Parameter[] {
new Parameter("base-tile", "bt", false, new ParameterValue("i... | Add --base-tile option to Deserialize-Tilemap. | Add --base-tile option to Deserialize-Tilemap.
| C# | mit | Prof9/PixelPet |
757b41f2e5584080583579bd7664eca687936ce7 | common/Storyboarding/OsbAnimation.cs | common/Storyboarding/OsbAnimation.cs | using System;
using System.IO;
namespace StorybrewCommon.Storyboarding
{
public class OsbAnimation : OsbSprite
{
public int FrameCount;
public double FrameDelay;
public OsbLoopType LoopType;
public override string GetTexturePathAt(double time)
{
var dotInde... | using System;
using System.IO;
namespace StorybrewCommon.Storyboarding
{
public class OsbAnimation : OsbSprite
{
public int FrameCount;
public double FrameDelay;
public OsbLoopType LoopType;
public override string GetTexturePathAt(double time)
{
var dotInde... | Fix animation FrameDelay not being locale independent. | Fix animation FrameDelay not being locale independent.
| C# | mit | Damnae/storybrew |
94102ca525e37ba03d0cfba45261069b66c93c52 | src/BugsnagUnity/DictionaryExtensions.cs | src/BugsnagUnity/DictionaryExtensions.cs | using System;
using System.Collections.Generic;
using BugsnagUnity.Payload;
using UnityEngine;
namespace BugsnagUnity
{
static class DictionaryExtensions
{
private static IntPtr Arrays { get; } = AndroidJNI.FindClass("java/util/Arrays");
private static IntPtr ToStringMethod { get; } = AndroidJNIHelper.Get... | using System;
using System.Collections.Generic;
using BugsnagUnity.Payload;
using UnityEngine;
namespace BugsnagUnity
{
static class DictionaryExtensions
{
internal static void PopulateDictionaryFromAndroidData(this IDictionary<string, object> dictionary, AndroidJavaObject source)
{
using (var set = ... | Convert this in a different way | Convert this in a different way
| C# | mit | bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity,bugsnag/bugsnag-unity |
f260156fabd28268b185da0ee751cf38c3703390 | Src/MaintainableSelenium/MaintainableSelenium.MvcPages/Utils/ImageExtensions.cs | Src/MaintainableSelenium/MaintainableSelenium.MvcPages/Utils/ImageExtensions.cs | using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
namespace MaintainableSelenium.MvcPages.Utils
{
public static class ImageExtensions
{
public static Bitmap ToBitmap(this byte[] screenshot)
{
using (MemoryStream memoryStream = new MemoryStream(screenshot))
... | using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
namespace MaintainableSelenium.MvcPages.Utils
{
public static class ImageExtensions
{
public static Bitmap ToBitmap(this byte[] screenshot)
{
using (MemoryStream memoryStream = new MemoryStream(screenshot))
... | Fix image hash computing (PNG gives different results on different ms windows versions) | Fix image hash computing (PNG gives different results on different ms windows versions)
| C# | mit | cezarypiatek/MaintainableSelenium,cezarypiatek/MaintainableSelenium,cezarypiatek/Tellurium,cezarypiatek/Tellurium,cezarypiatek/Tellurium,cezarypiatek/MaintainableSelenium |
3ba7426e0f3be1695f97fc99dee6e9593d13b13c | src/Xablu.WebApiClient/CrossRestApiClient.cs | src/Xablu.WebApiClient/CrossRestApiClient.cs | using System;
using Xablu.WebApiClient.Exceptions;
namespace Xablu.WebApiClient
{
public class CrossRestApiClient
{
private static Action<RestApiClientOptions> _configureRestApiClient;
private static Lazy<IRestApiClient> _restApiClientImplementation = new Lazy<IRestApiClient>(() => CreateRestAp... | using System;
using Xablu.WebApiClient.Exceptions;
namespace Xablu.WebApiClient
{
public class CrossRestApiClient
{
private static Action<RestApiClientOptions> _configureRestApiClient;
private static Lazy<IRestApiClient> _restApiClientImplementation = new Lazy<IRestApiClient>(() => CreateRestAp... | Remove obsolete ifdefs and property | Remove obsolete ifdefs and property
| C# | mit | Xablu/Xablu.WebApiClient |
bb706e0aef53188c2deb41bc9135d75f77b998d1 | src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs | src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs | namespace Stripe
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
public class PaymentIntentPaymentMethodOptionsCard : StripeEntity<PaymentIntentPaymentMethodOptionsCard>
{
/// <summary>
/// Installment details for this payment (Mexico only).
/// </summary... | namespace Stripe
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
public class PaymentIntentPaymentMethodOptionsCard : StripeEntity<PaymentIntentPaymentMethodOptionsCard>
{
/// <summary>
/// Installment details for this payment (Mexico only).
/// </summary... | Fix installments to use the correct type | Fix installments to use the correct type
| C# | apache-2.0 | stripe/stripe-dotnet |
f747956026d74f02bd6dd59c4ee7e86752c76805 | Views/Parts/Product.PriceTiers.cshtml | Views/Parts/Product.PriceTiers.cshtml | @using System.Linq;
@using Nwazet.Commerce.Models;
@{
var priceTiers = new List<PriceTier>(Model.PriceTiers);
var discountedPriceTiers = new List<PriceTier>(Model.DiscountedPriceTiers);
}
@if (Model.PriceTiers != null && Enumerable.Count(Model.PriceTiers) > 0) {
<table class="tiered-prices">
<tr>
... | @using System.Linq;
@using Nwazet.Commerce.Models;
@{
var priceTiers = new List<PriceTier>(Model.PriceTiers);
var discountedPriceTiers = new List<PriceTier>(Model.DiscountedPriceTiers);
}
@if (Model.PriceTiers != null && Enumerable.Count(Model.PriceTiers) > 0) {
<table class="tiered-prices">
<tr>
... | Use {0:c} rather than ToString("c") where possible. | Use {0:c} rather than ToString("c") where possible.
--HG--
branch : currency_string_format
| C# | bsd-3-clause | bleroy/Nwazet.Commerce,bleroy/Nwazet.Commerce |
b4a244041e42b5fd889635eb0602791291606099 | Assets/Scripts/GameController.cs | Assets/Scripts/GameController.cs | using UnityEngine;
using System.Collections;
public class GameController : MonoBehaviour {
public GameObject towerBase;
public GameObject gameField;
void Start () {
Debug.Log ("GameController: Game Started");
this.initGamePlatform ();
}
void Update () {
}
void initGamePlatform() {
for (int x = 0; x <... | using UnityEngine;
using System.Collections;
public class GameController : MonoBehaviour {
public GameObject towerBase;
public GameObject gameField;
private GameObject[,] towerBases;
private int gameFieldWidth = 0;
private int gameFieldHeight = 0;
void Start () {
this.gameFieldWidth = (int)(gameField.trans... | Save created towers in an array | Save created towers in an array
| C# | mit | emazzotta/unity-tower-defense |
9a09ca84f90b1bb7e3fab30b4a498552323cd04c | src/Media.Plugin.Android/IntentExtraExtensions.cs | src/Media.Plugin.Android/IntentExtraExtensions.cs | using Android.Content;
using Android.Hardware;
namespace Plugin.Media
{
internal static class IntentExtraExtensions
{
private const string extraFrontPre25 = "android.intent.extras.CAMERA_FACING";
private const string extraFrontPost25 = "android.intent.extras.LENS_FACING_FRONT";
private const string extraBackP... | using Android.Content;
using Android.Hardware;
namespace Plugin.Media
{
internal static class IntentExtraExtensions
{
private const string extraFrontPre25 = "android.intent.extras.CAMERA_FACING";
private const string extraFrontPost25 = "android.intent.extras.LENS_FACING_FRONT";
private const string extraBackP... | Fix for always using front | Fix for always using front
| C# | mit | jamesmontemagno/MediaPlugin,jamesmontemagno/MediaPlugin |
7e3d1511c67d620ba2dc63059c6cec86ed25d244 | osu.Game/Screens/Select/Filter/SortMode.cs | osu.Game/Screens/Select/Filter/SortMode.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.ComponentModel;
using osu.Framework.Localisation;
using osu.Game.Resources.Localisation.Web;
namespace osu.Game.Screens.Select.Filter
{
public enum Sor... | // 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.ComponentModel;
using osu.Framework.Localisation;
using osu.Game.Resources.Localisation.Web;
namespace osu.Game.Screens.Select.Filter
{
public enum Sor... | Hide "Rank Achieved" sorting mode until it's supported | Hide "Rank Achieved" sorting mode until it's supported
| C# | mit | ppy/osu,NeoAdonis/osu,ppy/osu,ppy/osu,peppy/osu,peppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu |
6b33ebf8e012d66217e11dfd1e6ff79804ad9caf | src/VsConsole/Console/PowerConsole/HostInfo.cs | src/VsConsole/Console/PowerConsole/HostInfo.cs | using System;
using System.Diagnostics;
namespace NuGetConsole.Implementation.PowerConsole {
/// <summary>
/// Represents a host with extra info.
/// </summary>
class HostInfo : ObjectWithFactory<PowerConsoleWindow> {
Lazy<IHostProvider, IHostMetadata> HostProvider { get; set; }
... | using System;
using System.Diagnostics;
namespace NuGetConsole.Implementation.PowerConsole {
/// <summary>
/// Represents a host with extra info.
/// </summary>
class HostInfo : ObjectWithFactory<PowerConsoleWindow> {
Lazy<IHostProvider, IHostMetadata> HostProvider { get; set; }
... | Revert accidental change of async flag . | Revert accidental change of async flag .
--HG--
branch : 1.1
| C# | apache-2.0 | mdavid/nuget,mdavid/nuget |
a1a90ae46e02ec09d96896da83800a043404c4bf | docs/guides/commands/samples/require_owner.cs | docs/guides/commands/samples/require_owner.cs | // (Note: This precondition is obsolete, it is recommended to use the RequireOwnerAttribute that is bundled with Discord.Commands)
using Discord.Commands;
using Discord.WebSocket;
using System.Threading.Tasks;
// Inherit from PreconditionAttribute
public class RequireOwnerAttribute : PreconditionAttribute
{
// Ov... | // (Note: This precondition is obsolete, it is recommended to use the RequireOwnerAttribute that is bundled with Discord.Commands)
using Discord.Commands;
using Discord.WebSocket;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Threading.Tasks;
// Inherit from PreconditionAttribute
public c... | Update the example precondition to use IServiceProvider | Update the example precondition to use IServiceProvider | C# | mit | RogueException/Discord.Net,Confruggy/Discord.Net,AntiTcb/Discord.Net |
b017e8690acf5025a2182fd05302e8d04edfcf67 | src/umbraco.editorControls/DefaultDataKeyValue.cs | src/umbraco.editorControls/DefaultDataKeyValue.cs | using System;
using umbraco.DataLayer;
namespace umbraco.editorControls
{
/// <summary>
/// Summary description for cms.businesslogic.datatype.DefaultDataKeyValue.
/// </summary>
public class DefaultDataKeyValue : cms.businesslogic.datatype.DefaultData
{
public DefaultDataKeyValue(cms.businesslogic... | using System;
using umbraco.DataLayer;
namespace umbraco.editorControls
{
/// <summary>
/// Summary description for cms.businesslogic.datatype.DefaultDataKeyValue.
/// </summary>
public class DefaultDataKeyValue : cms.businesslogic.datatype.DefaultData
{
public DefaultDataKeyValue(cms.businesslogic... | Fix errors in log caused by no prevalues beind selected. | Fix errors in log caused by no prevalues beind selected.
| C# | mit | mattbrailsford/Umbraco-CMS,dampee/Umbraco-CMS,rasmuseeg/Umbraco-CMS,Nicholas-Westby/Umbraco-CMS,sargin48/Umbraco-CMS,NikRimington/Umbraco-CMS,Door3Dev/HRI-Umbraco,tcmorris/Umbraco-CMS,Spijkerboer/Umbraco-CMS,abryukhov/Umbraco-CMS,ehornbostel/Umbraco-CMS,nvisage-gf/Umbraco-CMS,sargin48/Umbraco-CMS,PeteDuncanson/Umbraco-... |
bf19b23bf9e1c619cdc69ff39ed70509fed8227d | RxExamplesWPF/MainWindow.xaml.cs | RxExamplesWPF/MainWindow.xaml.cs | using System;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Windows;
namespace RxExamplesWPF
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow
{
public MainWindow()
{
InitializeComponent... | using System;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Windows;
namespace RxExamplesWPF
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow
{
public MainWindow()
{
InitializeComponent... | Refactor to common AddToLogBox function | Refactor to common AddToLogBox function
| C# | unlicense | TimothyK/RxExamples |
afb91626835e82b0211ef19dc6ca97ecf9b07dd7 | Samples/ProjectTracker/ProjectTracker.Ui.Xamarin/ProjectTracker.Ui.Xamarin/App.xaml.cs | Samples/ProjectTracker/ProjectTracker.Ui.Xamarin/ProjectTracker.Ui.Xamarin/App.xaml.cs | using Csla.Configuration;
using ProjectTracker.Library;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace ProjectTracker.Ui.Xamarin
{
public partial class App : Application
{
public static Page RootPage { get; priva... | using Csla.Configuration;
using ProjectTracker.Library;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace ProjectTracker.Ui.Xamarin
{
public partial class App : Application
{
public static Page RootPage { get; priva... | Configure data portal before using data portal | Configure data portal before using data portal
| C# | mit | JasonBock/csla,rockfordlhotka/csla,JasonBock/csla,MarimerLLC/csla,MarimerLLC/csla,JasonBock/csla,rockfordlhotka/csla,rockfordlhotka/csla,MarimerLLC/csla |
6307c79da41058521bba8056d3ecfa5c1d968e78 | Akeneo/Model/AttributeType.cs | Akeneo/Model/AttributeType.cs | namespace Akeneo.Model
{
public class AttributeType
{
public const string Date = "pim_catalog_date";
public const string Metric = "pim_catalog_metric";
public const string Price = "pim_catalog_price_collection";
public const string Number = "pim_catalog_number";
public const string Text = "pim_catalog_text... | namespace Akeneo.Model
{
public class AttributeType
{
/// <summary>
/// It is the unique product’s identifier. The catalog can contain only one.
/// </summary>
public const string Identifier = "pim_catalog_identifier";
/// <summary>
/// Text
/// </summary>
public const string Text = "pim_catalog_tex... | Sort attribute types as documentation | Sort attribute types as documentation
| C# | mit | pardahlman/akeneo-csharp |
d9d25b72656d2b88f69d0707006ea44434c54415 | src/MultiStepDeployment.cs | src/MultiStepDeployment.cs |
using System;
using System.Collections;
using System.Collections.Generic;
namespace MCloud {
public class MultiStepDeployment : Deployment, IEnumerable {
public MultiStepDeployment ()
{
Steps = new List<Deployment> ();
}
public List<Deployment> Steps {
get;
private set;
}
public void Add (D... |
using System;
using System.Collections;
using System.Collections.Generic;
namespace MCloud {
public class MultiStepDeployment : Deployment, IEnumerable {
public MultiStepDeployment ()
{
Steps = new List<Deployment> ();
}
public List<Deployment> Steps {
get;
private set;
}
public void Add (D... | Make the deployments wait until the server is ready. | Make the deployments wait until the server is ready.
| C# | mit | jacksonh/MCloud,jacksonh/MCloud |
f4479808ac4f50ca9ab8ce608ab9f2176067a09c | src/SmugMugModel.v2/Types/SmugMugEntity.cs | src/SmugMugModel.v2/Types/SmugMugEntity.cs | // Copyright (c) Alex Ghiondea. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace SmugMug.v2.Types
{
public class SmugMugEntity
{
protected void NotifyPropertyValueChanged(string name, object value)
{
}... | // Copyright (c) Alex Ghiondea. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Collections.Generic;
using System.Diagnostics;
namespace SmugMug.v2.Types
{
public class SmugMugEntity
{
private Dictionary<string, ob... | Add implementation for change tracking. | Add implementation for change tracking.
The code will keep track of the changes to a property after the first time the value is set.
If the value is set back to that original value, then we consider the property reset to the initial state and remove it from tracking.
| C# | mit | AlexGhiondea/SmugMug.NET |
20409615cccbf1a041d422ade05ca77f32abeace | Naos.Deployment.Contract/Package.cs | Naos.Deployment.Contract/Package.cs | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Package.cs" company="Naos">
// Copyright 2015 Naos
// </copyright>
// -----------------------------------------------------------------------------------------------------------... | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Package.cs" company="Naos">
// Copyright 2015 Naos
// </copyright>
// -----------------------------------------------------------------------------------------------------------... | Add flag to know if the package is bundled or not. | Add flag to know if the package is bundled or not.
| C# | mit | NaosFramework/Naos.Deployment,NaosProject/Naos.Deployment |
bf83bdbc95c2c534c9bf15ec2a895802d48684e2 | Dcc/Startup.cs | Dcc/Startup.cs | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
namespace Tiesmaster.Dcc
{
public class Startup
{
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
loggerFactory.AddCon... | using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
namespace Tiesmaster.Dcc
{
public class Startup
{
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF... | Switch back to hello world example, | Switch back to hello world example,
extracted to separate method.
| C# | mit | tiesmaster/DCC,tiesmaster/DCC |
793ef33e27ec19b4e153ed3441c178af1d5000fe | src/Glimpse.Agent.AspNet.Sample/Startup.cs | src/Glimpse.Agent.AspNet.Sample/Startup.cs | using Microsoft.AspNet.Builder;
using Glimpse.Host.Web.AspNet;
using Microsoft.Framework.DependencyInjection;
namespace Glimpse.Agent.AspNet.Sample
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddGlimpse()
.RunningAg... | using Glimpse.Agent.Web;
using Microsoft.AspNet.Builder;
using Glimpse.Host.Web.AspNet;
using Microsoft.Framework.DependencyInjection;
namespace Glimpse.Agent.AspNet.Sample
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddGlimpse()
... | Add placeholder for agent config | Add placeholder for agent config
| C# | mit | zanetdev/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Glimpse.Prototype,Glimpse/Glimpse.Prototype,peterblazejewicz/Glimpse.Prototype,Glimpse/Glimpse.Prototype,Glimpse/Glimpse.Prototype,zanetdev/Glimpse.Prototype,zanetdev/Glimpse.Prototype,Glimpse/Glimpse.Prototype,mike-kaufman/Glimpse.Prototype,pranavkm/Gl... |
bf3c8c71cc08a040b77578bb061784d96062ed47 | FenixLib/FenixLib/IO/DivFilePaletteDecoder.cs | FenixLib/FenixLib/IO/DivFilePaletteDecoder.cs | /* Copyright 2016 Daro Cutillas Carrillo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | /* Copyright 2016 Daro Cutillas Carrillo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Fix Missing magic extension and max version of decoder | Fix Missing magic extension and max version of decoder
| C# | apache-2.0 | dacucar/fenixlib |
e6f9009549980b185913b5c9fcd6bc9fffbd51da | HiddenWallet/Extensions/NBitcoinExtensions.cs | HiddenWallet/Extensions/NBitcoinExtensions.cs | using HiddenWallet.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace NBitcoin
{
public static class NBitcoinExtensions
{
public static ChainedBlock GetBlock(this ConcurrentChain me, Height height)
=> me.GetBlock(height.Value);
public static string ToHe... | using HiddenWallet.Models;
using System;
using System.Collections.Generic;
using System.Text;
namespace NBitcoin
{
public static class NBitcoinExtensions
{
public static ChainedBlock GetBlock(this ConcurrentChain me, Height height)
=> me.GetBlock(height.Value);
public static string ToHe... | Remove VerifyMessage extension (implemented in NBitcoin) | Remove VerifyMessage extension (implemented in NBitcoin)
| C# | mit | nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet,nopara73/HiddenWallet |
8367e58500937241b0a4738216b35e8c8757efb1 | Nocto.Tests.Integration/UsersEndpointTests.cs | Nocto.Tests.Integration/UsersEndpointTests.cs | using System;
using System.Threading.Tasks;
using Xunit;
namespace Nocto.Tests.Integration
{
public class UsersEndpointTests
{
public class TheGetUserAsyncMethod
{
[Fact]
public async Task ReturnsSpecifiedUser()
{
var github = new GitHubClien... | using System;
using System.Threading.Tasks;
using Xunit;
namespace Nocto.Tests.Integration
{
public class UsersEndpointTests
{
public class TheGetMethod
{
[Fact]
public async Task ReturnsSpecifiedUser()
{
var github = new GitHubClient { Login... | Rename tests to reflect recent naming changes. | Rename tests to reflect recent naming changes.
| C# | mit | hahmed/octokit.net,shana/octokit.net,M-Zuber/octokit.net,SamTheDev/octokit.net,forki/octokit.net,shiftkey/octokit.net,gabrielweyer/octokit.net,cH40z-Lord/octokit.net,ivandrofly/octokit.net,chunkychode/octokit.net,yonglehou/octokit.net,takumikub/octokit.net,khellang/octokit.net,ChrisMissal/octokit.net,daukantas/octokit.... |
213a43af220679a9562e0909c6739feddaa961cb | EngineType.cs | EngineType.cs | using System;
using System.Reflection;
namespace AttachToolbar
{
public enum EngineType
{
[EngineName("Native")]
Native = 1,
[EngineName("Managed")]
Managed = 2,
[EngineName("Managed/Native")]
Both = 3
}
public static class AttachEngineTypeConverter
... | using System;
using System.Reflection;
namespace AttachToolbar
{
public enum EngineType
{
[EngineName("Native")]
Native = 1,
[EngineName("Managed")]
Managed = 2,
[EngineName("Managed/Native")]
Both = 3
}
public static class AttachEngineTypeConverter
... | Fix warning CA2208: provide a message to exception | Fix warning CA2208: provide a message to exception
| C# | mit | fareloz/AttachToolbar |
cd343a7a727c58faa6dc71adb10aa31756ca2867 | services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs | services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs | using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Serilog;
namespace FilterLists.SharedKernel.Logging
{
public static class HostRunner
{
public static async Task TryRunWithLogg... | using System;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Serilog;
namespace FilterLists.SharedKernel.Logging
{
public static class HostRunner
{
... | Revert "fix(logging): 🐛 try alt AppInsights IKey init" | Revert "fix(logging): 🐛 try alt AppInsights IKey init"
This reverts commit cd9cdcd53870f5e3bd39cb982809a5ffcd8e8c85.
| C# | mit | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists |
01ca9ea40599dd478cbb352465e8c81af3bb6435 | src/SourceBrowser.Samples/Program.cs | src/SourceBrowser.Samples/Program.cs | using System;
using System.IO;
using SourceBrowser.Generator;
namespace SourceBrowser.Samples
{
class Program
{
static void Main(string[] args)
{
// Combined with, or replaced by, provided paths to create absolute paths
string userProfilePath = Environment.GetFolderPath... | using System;
using System.IO;
using SourceBrowser.Generator;
namespace SourceBrowser.Samples
{
class Program
{
static void Main(string[] args)
{
// Combined with, or replaced by, provided paths to create absolute paths
string userProfilePath = Environment.GetFolderPath... | Remove specific references to .sln files. | Remove specific references to .sln files.
| C# | mit | AmadeusW/SourceBrowser,CodeConnect/SourceBrowser,AmadeusW/SourceBrowser,AmadeusW/SourceBrowser,CodeConnect/SourceBrowser |
0d0179cb476450b4c580efb95f5c6b785270e3e1 | src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSevenFourteenZero/UpdateMemberGroupPickerData.cs | src/Umbraco.Core/Persistence/Migrations/Upgrades/TargetVersionSevenFourteenZero/UpdateMemberGroupPickerData.cs | using Umbraco.Core.Logging;
using Umbraco.Core.Persistence.SqlSyntax;
namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSevenFourteenZero
{
/// <summary>
/// Migrates member group picker properties from NVarchar to NText. See https://github.com/umbraco/Umbraco-CMS/issues/3268.
/// </summ... | using Umbraco.Core.Logging;
using Umbraco.Core.Persistence.SqlSyntax;
namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSevenFourteenZero
{
/// <summary>
/// Migrates member group picker properties from NVarchar to NText. See https://github.com/umbraco/Umbraco-CMS/issues/3268.
/// </summ... | Use constants in upgrade migration | Use constants in upgrade migration
| C# | mit | abryukhov/Umbraco-CMS,madsoulswe/Umbraco-CMS,abjerner/Umbraco-CMS,marcemarc/Umbraco-CMS,dawoe/Umbraco-CMS,abjerner/Umbraco-CMS,rasmuseeg/Umbraco-CMS,WebCentrum/Umbraco-CMS,tcmorris/Umbraco-CMS,tompipe/Umbraco-CMS,arknu/Umbraco-CMS,dawoe/Umbraco-CMS,robertjf/Umbraco-CMS,NikRimington/Umbraco-CMS,KevinJump/Umbraco-CMS,mar... |
b33411e3345ec0cd25c32749a172c2cdaacc7096 | ValueConverters.Shared/ValueConverterGroup.cs | ValueConverters.Shared/ValueConverterGroup.cs | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
#if (NETFX || WINDOWS_PHONE)
using System.Windows.Data;
using System.Windows.Markup;
#elif (NETFX_CORE)
using Windows.UI.Xaml;
using Windows.UI.Xaml.Markup;
#elif (XAMARIN)
using Xamarin.Forms;
#endif
namespace ValueConver... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
#if (NETFX || WINDOWS_PHONE)
using System.Windows;
using System.Windows.Data;
using System.Windows.Markup;
#elif (NETFX_CORE)
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
#elif (XAMARIN)
using Xamarin.Forms;
#endif
n... | Add missing using for UWP | Add missing using for UWP
| C# | mit | thomasgalliker/ValueConverters.NET |
f2f180090ee723979d15f624f1b5f11204f87a07 | src/SmugMugTest.v2/Program.cs | src/SmugMugTest.v2/Program.cs | using SmugMug.v2.Authentication;
using SmugMug.v2.Authentication.Tokens;
using System.Diagnostics;
namespace SmugMugTest
{
class Program
{
private static OAuthToken s_oauthToken;
static void Main(string[] args)
{
s_oauthToken = ConsoleAuthentication.GetOAuthTokenFromProvid... | using SmugMug.v2.Authentication;
using SmugMug.v2.Authentication.Tokens;
using SmugMug.v2.Types;
using System.Diagnostics;
namespace SmugMugTest
{
class Program
{
private static OAuthToken s_oauthToken;
static void Main(string[] args)
{
s_oauthToken = ConsoleAuthentication... | Add sample code to get the authenticated user from the site. | Add sample code to get the authenticated user from the site.
| C# | mit | AlexGhiondea/SmugMug.NET |
04cb099429cf054535e63dfa6c93df481826dbf0 | csharp/Program.cs | csharp/Program.cs | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConComp
{
class Program
{
static void Main(string[] args)
{
var fname1 = args[0];
var fname2 = args[1];
var task1 = ... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace ConComp
{
internal class Program
{
private static void Main(string[] args)
{
var tasks = new Dictionary<string, Task<long>>();
foreach (var arg in... | Make it work with any number of arguments | Make it work with any number of arguments
| C# | apache-2.0 | sfinnie/concomp,sfinnie/concomp,sfinnie/concomp,sfinnie/concomp,sfinnie/concomp |
85395a6555945b4018405a4415f7f853761dac1e | src/Pather.CSharp/Resolver.cs | src/Pather.CSharp/Resolver.cs | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Reflection;
using Pather.CSharp.PathElements;
namespace Pather.CSharp
{
public class Resolver
{
private IList<Type> pathElementTypes;
public Resolver()
{
pathEleme... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Reflection;
using Pather.CSharp.PathElements;
namespace Pather.CSharp
{
public class Resolver
{
private IList<Type> pathElementTypes;
public Resolver()
{
pathEleme... | Add a method to create an instance of the applicable path element type to resolver | Add a method to create an instance of the applicable path element type to resolver
| C# | mit | Domysee/Pather.CSharp |
ff9f6192390338de9187acf102d6763c0e5fc79b | src/SparkPost/Transmission.cs | src/SparkPost/Transmission.cs | using System.Collections.Generic;
using System.Net.Mail;
using SparkPost.Utilities;
namespace SparkPost
{
public class Transmission
{
public Transmission()
{
Recipients = new List<Recipient>();
Metadata = new Dictionary<string, object>();
SubstitutionData = ... | using System.Collections.Generic;
using System.Net.Mail;
using SparkPost.Utilities;
namespace SparkPost
{
public class Transmission
{
public Transmission()
{
Recipients = new List<Recipient>();
Metadata = new Dictionary<string, object>();
SubstitutionData = ... | Bring back the LoadFrom method. | Bring back the LoadFrom method.
| C# | apache-2.0 | SparkPost/csharp-sparkpost,kirilsi/csharp-sparkpost,darrencauthon/csharp-sparkpost,kirilsi/csharp-sparkpost,darrencauthon/csharp-sparkpost |
4eb03f91bfdac6a9780eb4a2c8ec664820a42f96 | src/ApiPorter.Patterns/ArgumentMatcher.cs | src/ApiPorter.Patterns/ArgumentMatcher.cs | using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace ApiPorter.Patterns
{
internal sealed class ArgumentMatcher : Matcher
{
private readonly ArgumentVariable _variable;
private readonly int _following;
p... | using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace ApiPorter.Patterns
{
internal sealed class ArgumentMatcher : Matcher
{
private readonly ArgumentVariable _variable;
private readonly int _following;
p... | Fix bug argument matcher would cause index out of range | Fix bug argument matcher would cause index out of range
| C# | mit | terrajobst/apiporter |
41597efdf71b7c65827de5fe7ec4bae5a110f809 | osu.Game/Rulesets/Mods/ModNoFail.cs | osu.Game/Rulesets/Mods/ModNoFail.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;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
namespace osu.Game.Rulesets.Mods
{
public abstract class ModNoFail : Mod, IApplicableFai... | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Screens.Play;
namespace osu.Game.Rulesets.Mods
{
public abstract class Mo... | Hide health bar in no fail | Hide health bar in no fail
| C# | mit | 2yangk23/osu,ZLima12/osu,smoogipoo/osu,johnneijzen/osu,peppy/osu,ZLima12/osu,ppy/osu,peppy/osu,UselessToucan/osu,smoogipooo/osu,UselessToucan/osu,ppy/osu,smoogipoo/osu,UselessToucan/osu,NeoAdonis/osu,NeoAdonis/osu,ppy/osu,smoogipoo/osu,NeoAdonis/osu,EVAST9919/osu,2yangk23/osu,peppy/osu-new,EVAST9919/osu,peppy/osu,johnn... |
a8215734845dc091b9c18575ac27c6b126d3ec29 | dotnet/Vernacular/Persistence.nHibernate/dev/PPWCode.Vernacular.nHibernate.I/src/PPWCode.Vernacular.nHibernate.I.Test/NHConfigurator.cs | dotnet/Vernacular/Persistence.nHibernate/dev/PPWCode.Vernacular.nHibernate.I/src/PPWCode.Vernacular.nHibernate.I.Test/NHConfigurator.cs | using System.Collections.Generic;
using NHibernate;
using NHibernate.Cfg;
using NHibernate.Dialect;
using NHibernate.Driver;
namespace PPWCode.Vernacular.NHibernate.I.Test
{
public static class NhConfigurator
{
private const string ConnectionString = "Data Source=:memory:;Version=3;New=Tru... | using System.Collections.Generic;
using NHibernate;
using NHibernate.Cfg;
using NHibernate.Dialect;
using NHibernate.Driver;
namespace PPWCode.Vernacular.NHibernate.I.Test
{
public static class NhConfigurator
{
private const string ConnectionString = "Data Source=:memory:;Version=3;New=Tru... | Use static properties instead of static constructor ==> if exception is thrown, detailed information is available, else TypeInitialiser exception is thrown | Use static properties instead of static constructor
==> if exception is thrown, detailed information is available, else TypeInitialiser exception is thrown | C# | apache-2.0 | jandockx/ppwcode-recovered-from-google-code,jandppw/ppwcode-recovered-from-google-code,jandppw/ppwcode-recovered-from-google-code,jandppw/ppwcode-recovered-from-google-code,jandockx/ppwcode-recovered-from-google-code,jandockx/ppwcode-recovered-from-google-code,jandockx/ppwcode-recovered-from-google-code,jandppw/ppwcode... |
6e60aa17dc6be66b1c8b93c4dcc67db67cef5a7d | src/Umbraco.Core/PropertyEditors/EmailValidator.cs | src/Umbraco.Core/PropertyEditors/EmailValidator.cs | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Umbraco.Core.Models;
namespace Umbraco.Core.PropertyEditors
{
/// <summary>
/// A validator that validates an email address
/// </summary>
[ValueValidator("Email")]
internal sealed class EmailValidator :... | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Umbraco.Core.Models;
namespace Umbraco.Core.PropertyEditors
{
/// <summary>
/// A validator that validates an email address
/// </summary>
[ValueValidator("Email")]
internal sealed class EmailValidator :... | Fix for issue U4-5364 without trying to fix the localization of the error text. | Fix for issue U4-5364 without trying to fix the localization of the error text.
| C# | mit | KevinJump/Umbraco-CMS,dawoe/Umbraco-CMS,rajendra1809/Umbraco-CMS,leekelleher/Umbraco-CMS,qizhiyu/Umbraco-CMS,abjerner/Umbraco-CMS,jchurchley/Umbraco-CMS,abryukhov/Umbraco-CMS,rajendra1809/Umbraco-CMS,timothyleerussell/Umbraco-CMS,hfloyd/Umbraco-CMS,gregoriusxu/Umbraco-CMS,neilgaietto/Umbraco-CMS,lars-erik/Umbraco-CMS,S... |
537cc53eca44647fa8e916f0b000e19b404e8518 | DynThings.Data.Repositories/Core/UnitOfWork.cs | DynThings.Data.Repositories/Core/UnitOfWork.cs | /////////////////////////////////////////////////////////////////
// Created by : Caesar Moussalli //
// TimeStamp : 31-1-2016 //
// Content : Associate Repositories to the Unit of Work //
// Notes : Send DB context to repositories to redu... | /////////////////////////////////////////////////////////////////
// Created by : Caesar Moussalli //
// TimeStamp : 31-1-2016 //
// Content : Associate Repositories to the Unit of Work //
// Notes : Send DB context to repositories to redu... | Add Commands repo to unit of work | Add Commands repo to unit of work
| C# | mit | MagedAlNaamani/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings,cmoussalli/DynThings,cmoussalli/DynThings,MagedAlNaamani/DynThings |
9f98311adaed46346b11aa2d396b8e0087bf1997 | Mvc52Application/Controllers/HomeController.cs | Mvc52Application/Controllers/HomeController.cs | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MyCoolLib;
namespace Mvc52Application.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
... | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MyCoolLib;
namespace Mvc52Application.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
... | Add trace with some quotes | Add trace with some quotes
| C# | apache-2.0 | davidebbo-test/Mvc52Application,davidebbo-test/Mvc52Application,davidebbo-test/Mvc52Application |
bc0be409e69fe8c7d26780bd9fbb5898b3dfbb69 | src/Fixie.Cli/Dotnet.cs | src/Fixie.Cli/Dotnet.cs | #if !NET452
namespace Fixie.Cli
{
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
class Dotnet
{
public static readonly string Path = FindDotnet();
static string FindDotnet()
{
var fileName = RuntimeInformation... | #if !NET452
namespace Fixie.Cli
{
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
class Dotnet
{
public static readonly string Path = FindDotnet();
static string FindDotnet()
{
var fileName = RuntimeInformation... | Remove usage of FX_DEPS_FILE as a fallback for locating `dotnet`, since that can find the wrong result when a newer patch is installed to the global dotnet location than the one installed into the folder containing Process.MainModule. | Remove usage of FX_DEPS_FILE as a fallback for locating `dotnet`, since that can find the wrong result when a newer patch is installed to the global dotnet location than the one installed into the folder containing Process.MainModule.
See https://github.com/aspnet/Extensions/pull/299
See https://github.com/aspnet/Scaf... | C# | mit | fixie/fixie |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.